1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089 |
- (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
- /***/ 1:
- /*!************************************************************!*\
- !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* 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);
- 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;}
- var realAtob;
- var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
- var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
- if (typeof atob !== 'function') {
- realAtob = function realAtob(str) {
- str = String(str).replace(/[\t\n\f\r ]+/g, '');
- if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
- // Adding the padding if missing, for semplicity
- str += '=='.slice(2 - (str.length & 3));
- var bitmap;var result = '';var r1;var r2;var i = 0;
- for (; i < str.length;) {
- bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
- (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
- result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
- r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
- String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
- }
- return result;
- };
- } else {
- // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
- realAtob = atob;
- }
- function b64DecodeUnicode(str) {
- return decodeURIComponent(realAtob(str).split('').map(function (c) {
- return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
- }).join(''));
- }
- function getCurrentUserInfo() {
- var token = wx.getStorageSync('uni_id_token') || '';
- var tokenArr = token.split('.');
- if (!token || tokenArr.length !== 3) {
- return {
- uid: null,
- role: [],
- permission: [],
- tokenExpired: 0 };
- }
- var userInfo;
- try {
- userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
- } catch (error) {
- throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
- }
- userInfo.tokenExpired = userInfo.exp * 1000;
- delete userInfo.exp;
- delete userInfo.iat;
- return userInfo;
- }
- function uniIdMixin(Vue) {
- Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
- getCurrentUserInfo(),role = _getCurrentUserInfo.role;
- return role.indexOf(roleId) > -1;
- };
- Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
- getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
- return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
- };
- Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
- getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
- return tokenExpired > Date.now();
- };
- }
- var _toString = Object.prototype.toString;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- function isFn(fn) {
- return typeof fn === 'function';
- }
- function isStr(str) {
- return typeof str === 'string';
- }
- function isPlainObject(obj) {
- return _toString.call(obj) === '[object Object]';
- }
- function hasOwn(obj, key) {
- return hasOwnProperty.call(obj, key);
- }
- function noop() {}
- /**
- * Create a cached version of a pure function.
- */
- function cached(fn) {
- var cache = Object.create(null);
- return function cachedFn(str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str));
- };
- }
- /**
- * Camelize a hyphen-delimited string.
- */
- var camelizeRE = /-(\w)/g;
- var camelize = cached(function (str) {
- return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
- });
- function sortObject(obj) {
- var sortObj = {};
- if (isPlainObject(obj)) {
- Object.keys(obj).sort().forEach(function (key) {
- sortObj[key] = obj[key];
- });
- }
- return !Object.keys(sortObj) ? obj : sortObj;
- }
- var HOOKS = [
- 'invoke',
- 'success',
- 'fail',
- 'complete',
- 'returnValue'];
- var globalInterceptors = {};
- var scopedInterceptors = {};
- function mergeHook(parentVal, childVal) {
- var res = childVal ?
- parentVal ?
- parentVal.concat(childVal) :
- Array.isArray(childVal) ?
- childVal : [childVal] :
- parentVal;
- return res ?
- dedupeHooks(res) :
- res;
- }
- function dedupeHooks(hooks) {
- var res = [];
- for (var i = 0; i < hooks.length; i++) {
- if (res.indexOf(hooks[i]) === -1) {
- res.push(hooks[i]);
- }
- }
- return res;
- }
- function removeHook(hooks, hook) {
- var index = hooks.indexOf(hook);
- if (index !== -1) {
- hooks.splice(index, 1);
- }
- }
- function mergeInterceptorHook(interceptor, option) {
- Object.keys(option).forEach(function (hook) {
- if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
- interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
- }
- });
- }
- function removeInterceptorHook(interceptor, option) {
- if (!interceptor || !option) {
- return;
- }
- Object.keys(option).forEach(function (hook) {
- if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
- removeHook(interceptor[hook], option[hook]);
- }
- });
- }
- function addInterceptor(method, option) {
- if (typeof method === 'string' && isPlainObject(option)) {
- mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
- } else if (isPlainObject(method)) {
- mergeInterceptorHook(globalInterceptors, method);
- }
- }
- function removeInterceptor(method, option) {
- if (typeof method === 'string') {
- if (isPlainObject(option)) {
- removeInterceptorHook(scopedInterceptors[method], option);
- } else {
- delete scopedInterceptors[method];
- }
- } else if (isPlainObject(method)) {
- removeInterceptorHook(globalInterceptors, method);
- }
- }
- function wrapperHook(hook) {
- return function (data) {
- return hook(data) || data;
- };
- }
- function isPromise(obj) {
- return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
- }
- function queue(hooks, data) {
- var promise = false;
- for (var i = 0; i < hooks.length; i++) {
- var hook = hooks[i];
- if (promise) {
- promise = Promise.resolve(wrapperHook(hook));
- } else {
- var res = hook(data);
- if (isPromise(res)) {
- promise = Promise.resolve(res);
- }
- if (res === false) {
- return {
- then: function then() {} };
- }
- }
- }
- return promise || {
- then: function then(callback) {
- return callback(data);
- } };
- }
- function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- ['success', 'fail', 'complete'].forEach(function (name) {
- if (Array.isArray(interceptor[name])) {
- var oldCallback = options[name];
- options[name] = function callbackInterceptor(res) {
- queue(interceptor[name], res).then(function (res) {
- /* eslint-disable no-mixed-operators */
- return isFn(oldCallback) && oldCallback(res) || res;
- });
- };
- }
- });
- return options;
- }
- function wrapperReturnValue(method, returnValue) {
- var returnValueHooks = [];
- if (Array.isArray(globalInterceptors.returnValue)) {
- returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
- }
- var interceptor = scopedInterceptors[method];
- if (interceptor && Array.isArray(interceptor.returnValue)) {
- returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
- }
- returnValueHooks.forEach(function (hook) {
- returnValue = hook(returnValue) || returnValue;
- });
- return returnValue;
- }
- function getApiInterceptorHooks(method) {
- var interceptor = Object.create(null);
- Object.keys(globalInterceptors).forEach(function (hook) {
- if (hook !== 'returnValue') {
- interceptor[hook] = globalInterceptors[hook].slice();
- }
- });
- var scopedInterceptor = scopedInterceptors[method];
- if (scopedInterceptor) {
- Object.keys(scopedInterceptor).forEach(function (hook) {
- if (hook !== 'returnValue') {
- interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
- }
- });
- }
- return interceptor;
- }
- 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];}
- var interceptor = getApiInterceptorHooks(method);
- if (interceptor && Object.keys(interceptor).length) {
- if (Array.isArray(interceptor.invoke)) {
- var res = queue(interceptor.invoke, options);
- return res.then(function (options) {
- return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
- });
- } else {
- return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
- }
- }
- return api.apply(void 0, [options].concat(params));
- }
- var promiseInterceptor = {
- returnValue: function returnValue(res) {
- if (!isPromise(res)) {
- return res;
- }
- return new Promise(function (resolve, reject) {
- res.then(function (res) {
- if (res[0]) {
- reject(res[0]);
- } else {
- resolve(res[1]);
- }
- });
- });
- } };
- var SYNC_API_RE =
- /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting/;
- var CONTEXT_API_RE = /^create|Manager$/;
- // Context例外情况
- var CONTEXT_API_RE_EXC = ['createBLEConnection'];
- // 同步例外情况
- var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
- var CALLBACK_API_RE = /^on|^off/;
- function isContextApi(name) {
- return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
- }
- function isSyncApi(name) {
- return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
- }
- function isCallbackApi(name) {
- return CALLBACK_API_RE.test(name) && name !== 'onPush';
- }
- function handlePromise(promise) {
- return promise.then(function (data) {
- return [null, data];
- }).
- catch(function (err) {return [err];});
- }
- function shouldPromise(name) {
- if (
- isContextApi(name) ||
- isSyncApi(name) ||
- isCallbackApi(name))
- {
- return false;
- }
- return true;
- }
- /* eslint-disable no-extend-native */
- if (!Promise.prototype.finally) {
- Promise.prototype.finally = function (callback) {
- var promise = this.constructor;
- return this.then(
- function (value) {return promise.resolve(callback()).then(function () {return value;});},
- function (reason) {return promise.resolve(callback()).then(function () {
- throw reason;
- });});
- };
- }
- function promisify(name, api) {
- if (!shouldPromise(name)) {
- return api;
- }
- 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];}
- if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
- return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
- }
- return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
- invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
- success: resolve,
- fail: reject })].concat(
- params));
- })));
- };
- }
- var EPS = 1e-4;
- var BASE_DEVICE_WIDTH = 750;
- var isIOS = false;
- var deviceWidth = 0;
- var deviceDPR = 0;
- function checkDeviceWidth() {var _wx$getSystemInfoSync =
- wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
- deviceWidth = windowWidth;
- deviceDPR = pixelRatio;
- isIOS = platform === 'ios';
- }
- function upx2px(number, newDeviceWidth) {
- if (deviceWidth === 0) {
- checkDeviceWidth();
- }
- number = Number(number);
- if (number === 0) {
- return 0;
- }
- var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
- if (result < 0) {
- result = -result;
- }
- result = Math.floor(result + EPS);
- if (result === 0) {
- if (deviceDPR === 1 || !isIOS) {
- result = 1;
- } else {
- result = 0.5;
- }
- }
- return number < 0 ? -result : result;
- }
- var LOCALE_ZH_HANS = 'zh-Hans';
- var LOCALE_ZH_HANT = 'zh-Hant';
- var LOCALE_EN = 'en';
- var LOCALE_FR = 'fr';
- var LOCALE_ES = 'es';
- var messages = {};
- var locale;
- {
- locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
- }
- function initI18nMessages() {
- if (!isEnableLocale()) {
- return;
- }
- var localeKeys = Object.keys(__uniConfig.locales);
- if (localeKeys.length) {
- localeKeys.forEach(function (locale) {
- var curMessages = messages[locale];
- var userMessages = __uniConfig.locales[locale];
- if (curMessages) {
- Object.assign(curMessages, userMessages);
- } else {
- messages[locale] = userMessages;
- }
- });
- }
- }
- initI18nMessages();
- var i18n = (0, _uniI18n.initVueI18n)(
- locale,
- {});
- var t = i18n.t;
- var i18nMixin = i18n.mixin = {
- beforeCreate: function beforeCreate() {var _this = this;
- var unwatch = i18n.i18n.watchLocale(function () {
- _this.$forceUpdate();
- });
- this.$once('hook:beforeDestroy', function () {
- unwatch();
- });
- },
- methods: {
- $$t: function $$t(key, values) {
- return t(key, values);
- } } };
- var setLocale = i18n.setLocale;
- var getLocale = i18n.getLocale;
- function initAppLocale(Vue, appVm, locale) {
- var state = Vue.observable({
- locale: locale || i18n.getLocale() });
- var localeWatchers = [];
- appVm.$watchLocale = function (fn) {
- localeWatchers.push(fn);
- };
- Object.defineProperty(appVm, '$locale', {
- get: function get() {
- return state.locale;
- },
- set: function set(v) {
- state.locale = v;
- localeWatchers.forEach(function (watch) {return watch(v);});
- } });
- }
- function isEnableLocale() {
- return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
- }
- function include(str, parts) {
- return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
- }
- function startsWith(str, parts) {
- return parts.find(function (part) {return str.indexOf(part) === 0;});
- }
- function normalizeLocale(locale, messages) {
- if (!locale) {
- return;
- }
- locale = locale.trim().replace(/_/g, '-');
- if (messages && messages[locale]) {
- return locale;
- }
- locale = locale.toLowerCase();
- if (locale === 'chinese') {
- // 支付宝
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf('zh') === 0) {
- if (locale.indexOf('-hans') > -1) {
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf('-hant') > -1) {
- return LOCALE_ZH_HANT;
- }
- if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
- return LOCALE_ZH_HANT;
- }
- return LOCALE_ZH_HANS;
- }
- var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
- if (lang) {
- return lang;
- }
- }
- // export function initI18n() {
- // const localeKeys = Object.keys(__uniConfig.locales || {})
- // if (localeKeys.length) {
- // localeKeys.forEach((locale) =>
- // i18n.add(locale, __uniConfig.locales[locale])
- // )
- // }
- // }
- function getLocale$1() {
- // 优先使用 $locale
- var app = getApp({
- allowDefault: true });
- if (app && app.$vm) {
- return app.$vm.$locale;
- }
- return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
- }
- function setLocale$1(locale) {
- var app = getApp();
- if (!app) {
- return false;
- }
- var oldLocale = app.$vm.$locale;
- if (oldLocale !== locale) {
- app.$vm.$locale = locale;
- onLocaleChangeCallbacks.forEach(function (fn) {return fn({
- locale: locale });});
- return true;
- }
- return false;
- }
- var onLocaleChangeCallbacks = [];
- function onLocaleChange(fn) {
- if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
- onLocaleChangeCallbacks.push(fn);
- }
- }
- if (typeof global !== 'undefined') {
- global.getLocale = getLocale$1;
- }
- var interceptors = {
- promiseInterceptor: promiseInterceptor };
- var baseApi = /*#__PURE__*/Object.freeze({
- __proto__: null,
- upx2px: upx2px,
- getLocale: getLocale$1,
- setLocale: setLocale$1,
- onLocaleChange: onLocaleChange,
- addInterceptor: addInterceptor,
- removeInterceptor: removeInterceptor,
- interceptors: interceptors });
- function findExistsPageIndex(url) {
- var pages = getCurrentPages();
- var len = pages.length;
- while (len--) {
- var page = pages[len];
- if (page.$page && page.$page.fullPath === url) {
- return len;
- }
- }
- return -1;
- }
- var redirectTo = {
- name: function name(fromArgs) {
- if (fromArgs.exists === 'back' && fromArgs.delta) {
- return 'navigateBack';
- }
- return 'redirectTo';
- },
- args: function args(fromArgs) {
- if (fromArgs.exists === 'back' && fromArgs.url) {
- var existsPageIndex = findExistsPageIndex(fromArgs.url);
- if (existsPageIndex !== -1) {
- var delta = getCurrentPages().length - 1 - existsPageIndex;
- if (delta > 0) {
- fromArgs.delta = delta;
- }
- }
- }
- } };
- var previewImage = {
- args: function args(fromArgs) {
- var currentIndex = parseInt(fromArgs.current);
- if (isNaN(currentIndex)) {
- return;
- }
- var urls = fromArgs.urls;
- if (!Array.isArray(urls)) {
- return;
- }
- var len = urls.length;
- if (!len) {
- return;
- }
- if (currentIndex < 0) {
- currentIndex = 0;
- } else if (currentIndex >= len) {
- currentIndex = len - 1;
- }
- if (currentIndex > 0) {
- fromArgs.current = urls[currentIndex];
- fromArgs.urls = urls.filter(
- function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
- } else {
- fromArgs.current = urls[0];
- }
- return {
- indicator: false,
- loop: false };
- } };
- var UUID_KEY = '__DC_STAT_UUID';
- var deviceId;
- function useDeviceId(result) {
- deviceId = deviceId || wx.getStorageSync(UUID_KEY);
- if (!deviceId) {
- deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
- wx.setStorage({
- key: UUID_KEY,
- data: deviceId });
- }
- result.deviceId = deviceId;
- }
- function addSafeAreaInsets(result) {
- if (result.safeArea) {
- var safeArea = result.safeArea;
- result.safeAreaInsets = {
- top: safeArea.top,
- left: safeArea.left,
- right: result.windowWidth - safeArea.right,
- bottom: result.screenHeight - safeArea.bottom };
- }
- }
- function populateParameters(result) {var _result$brand =
- 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;
- // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
- // osName osVersion
- var osName = '';
- var osVersion = '';
- {
- osName = system.split(' ')[0] || '';
- osVersion = system.split(' ')[1] || '';
- }
- var hostVersion = version;
- // deviceType
- var deviceType = getGetDeviceType(result, model);
- // deviceModel
- var deviceBrand = getDeviceBrand(brand);
- // hostName
- var _hostName = getHostName(result);
- // deviceOrientation
- var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
- // devicePixelRatio
- var _devicePixelRatio = pixelRatio;
- // SDKVersion
- var _SDKVersion = SDKVersion;
- // hostLanguage
- var hostLanguage = language.replace(/_/g, '-');
- // wx.getAccountInfoSync
- var parameters = {
- appId: "__UNI__4A2871E",
- appName: "kuailaiyou",
- appVersion: "1.0.0",
- appVersionCode: "100",
- appLanguage: getAppLanguage(hostLanguage),
- uniCompileVersion: "3.5.3",
- uniRuntimeVersion: "3.5.3",
- uniPlatform: undefined || "mp-weixin",
- deviceBrand: deviceBrand,
- deviceModel: model,
- deviceType: deviceType,
- devicePixelRatio: _devicePixelRatio,
- deviceOrientation: _deviceOrientation,
- osName: osName.toLocaleLowerCase(),
- osVersion: osVersion,
- hostTheme: theme,
- hostVersion: hostVersion,
- hostLanguage: hostLanguage,
- hostName: _hostName,
- hostSDKVersion: _SDKVersion,
- hostFontSizeSetting: fontSizeSetting,
- windowTop: 0,
- windowBottom: 0,
- // TODO
- osLanguage: undefined,
- osTheme: undefined,
- ua: undefined,
- hostPackageName: undefined,
- browserName: undefined,
- browserVersion: undefined };
- Object.assign(result, parameters);
- }
- function getGetDeviceType(result, model) {
- var deviceType = result.deviceType || 'phone';
- {
- var deviceTypeMaps = {
- ipad: 'pad',
- windows: 'pc',
- mac: 'pc' };
- var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
- var _model = model.toLocaleLowerCase();
- for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
- var _m = deviceTypeMapsKeys[index];
- if (_model.indexOf(_m) !== -1) {
- deviceType = deviceTypeMaps[_m];
- break;
- }
- }
- }
- return deviceType;
- }
- function getDeviceBrand(brand) {
- var deviceBrand = brand;
- if (deviceBrand) {
- deviceBrand = brand.toLocaleLowerCase();
- }
- return deviceBrand;
- }
- function getAppLanguage(defaultLanguage) {
- return getLocale$1 ?
- getLocale$1() :
- defaultLanguage;
- }
- function getHostName(result) {
- var _platform = 'WeChat';
- var _hostName = result.hostName || _platform; // mp-jd
- {
- if (result.environment) {
- _hostName = result.environment;
- } else if (result.host && result.host.env) {
- _hostName = result.host.env;
- }
- }
- return _hostName;
- }
- var getSystemInfo = {
- returnValue: function returnValue(result) {
- useDeviceId(result);
- addSafeAreaInsets(result);
- populateParameters(result);
- } };
- var showActionSheet = {
- args: function args(fromArgs) {
- if (typeof fromArgs === 'object') {
- fromArgs.alertText = fromArgs.title;
- }
- } };
- var getAppBaseInfo = {
- returnValue: function returnValue(result) {var _result =
- result,version = _result.version,language = _result.language,SDKVersion = _result.SDKVersion,theme = _result.theme;
- var _hostName = getHostName(result);
- var hostLanguage = language.replace('_', '-');
- result = sortObject(Object.assign(result, {
- appId: "__UNI__4A2871E",
- appName: "kuailaiyou",
- appVersion: "1.0.0",
- appVersionCode: "100",
- appLanguage: getAppLanguage(hostLanguage),
- hostVersion: version,
- hostLanguage: hostLanguage,
- hostName: _hostName,
- hostSDKVersion: SDKVersion,
- hostTheme: theme }));
- } };
- var getDeviceInfo = {
- returnValue: function returnValue(result) {var _result2 =
- result,brand = _result2.brand,model = _result2.model;
- var deviceType = getGetDeviceType(result, model);
- var deviceBrand = getDeviceBrand(brand);
- useDeviceId(result);
- result = sortObject(Object.assign(result, {
- deviceType: deviceType,
- deviceBrand: deviceBrand,
- deviceModel: model }));
- } };
- var getWindowInfo = {
- returnValue: function returnValue(result) {
- addSafeAreaInsets(result);
- result = sortObject(Object.assign(result, {
- windowTop: 0,
- windowBottom: 0 }));
- } };
- var getAppAuthorizeSetting = {
- returnValue: function returnValue(result) {var
- locationReducedAccuracy = result.locationReducedAccuracy;
- result.locationAccuracy = 'unsupported';
- if (locationReducedAccuracy === true) {
- result.locationAccuracy = 'reduced';
- } else if (locationReducedAccuracy === false) {
- result.locationAccuracy = 'full';
- }
- } };
- // import navigateTo from 'uni-helpers/navigate-to'
- var protocols = {
- redirectTo: redirectTo,
- // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
- previewImage: previewImage,
- getSystemInfo: getSystemInfo,
- getSystemInfoSync: getSystemInfo,
- showActionSheet: showActionSheet,
- getAppBaseInfo: getAppBaseInfo,
- getDeviceInfo: getDeviceInfo,
- getWindowInfo: getWindowInfo,
- getAppAuthorizeSetting: getAppAuthorizeSetting };
- var todos = [
- 'vibrate',
- 'preloadPage',
- 'unPreloadPage',
- 'loadSubPackage'];
- var canIUses = [];
- var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
- function processCallback(methodName, method, returnValue) {
- return function (res) {
- return method(processReturnValue(methodName, res, returnValue));
- };
- }
- 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;
- if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
- var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
- if (isFn(argsOption)) {
- argsOption = argsOption(fromArgs, toArgs) || {};
- }
- for (var key in fromArgs) {
- if (hasOwn(argsOption, key)) {
- var keyOption = argsOption[key];
- if (isFn(keyOption)) {
- keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
- }
- if (!keyOption) {// 不支持的参数
- console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
- } else if (isStr(keyOption)) {// 重写参数 key
- toArgs[keyOption] = fromArgs[key];
- } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
- toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
- }
- } else if (CALLBACKS.indexOf(key) !== -1) {
- if (isFn(fromArgs[key])) {
- toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
- }
- } else {
- if (!keepFromArgs) {
- toArgs[key] = fromArgs[key];
- }
- }
- }
- return toArgs;
- } else if (isFn(fromArgs)) {
- fromArgs = processCallback(methodName, fromArgs, returnValue);
- }
- return fromArgs;
- }
- function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
- if (isFn(protocols.returnValue)) {// 处理通用 returnValue
- res = protocols.returnValue(methodName, res);
- }
- return processArgs(methodName, res, returnValue, {}, keepReturnValue);
- }
- function wrapper(methodName, method) {
- if (hasOwn(protocols, methodName)) {
- var protocol = protocols[methodName];
- if (!protocol) {// 暂不支持的 api
- return function () {
- console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
- };
- }
- return function (arg1, arg2) {// 目前 api 最多两个参数
- var options = protocol;
- if (isFn(protocol)) {
- options = protocol(arg1);
- }
- arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
- var args = [arg1];
- if (typeof arg2 !== 'undefined') {
- args.push(arg2);
- }
- if (isFn(options.name)) {
- methodName = options.name(arg1);
- } else if (isStr(options.name)) {
- methodName = options.name;
- }
- var returnValue = wx[methodName].apply(wx, args);
- if (isSyncApi(methodName)) {// 同步 api
- return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
- }
- return returnValue;
- };
- }
- return method;
- }
- var todoApis = Object.create(null);
- var TODOS = [
- 'onTabBarMidButtonTap',
- 'subscribePush',
- 'unsubscribePush',
- 'onPush',
- 'offPush',
- 'share'];
- function createTodoApi(name) {
- return function todoApi(_ref)
- {var fail = _ref.fail,complete = _ref.complete;
- var res = {
- errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
- isFn(fail) && fail(res);
- isFn(complete) && complete(res);
- };
- }
- TODOS.forEach(function (name) {
- todoApis[name] = createTodoApi(name);
- });
- var providers = {
- oauth: ['weixin'],
- share: ['weixin'],
- payment: ['wxpay'],
- push: ['weixin'] };
- function getProvider(_ref2)
- {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
- var res = false;
- if (providers[service]) {
- res = {
- errMsg: 'getProvider:ok',
- service: service,
- provider: providers[service] };
- isFn(success) && success(res);
- } else {
- res = {
- errMsg: 'getProvider:fail service not found' };
- isFn(fail) && fail(res);
- }
- isFn(complete) && complete(res);
- }
- var extraApi = /*#__PURE__*/Object.freeze({
- __proto__: null,
- getProvider: getProvider });
- var getEmitter = function () {
- var Emitter;
- return function getUniEmitter() {
- if (!Emitter) {
- Emitter = new _vue.default();
- }
- return Emitter;
- };
- }();
- function apply(ctx, method, args) {
- return ctx[method].apply(ctx, args);
- }
- function $on() {
- return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
- }
- function $off() {
- return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
- }
- function $once() {
- return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
- }
- function $emit() {
- return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
- }
- var eventApi = /*#__PURE__*/Object.freeze({
- __proto__: null,
- $on: $on,
- $off: $off,
- $once: $once,
- $emit: $emit });
- /**
- * 框架内 try-catch
- */
- /**
- * 开发者 try-catch
- */
- function tryCatch(fn) {
- return function () {
- try {
- return fn.apply(fn, arguments);
- } catch (e) {
- // TODO
- console.error(e);
- }
- };
- }
- function getApiCallbacks(params) {
- var apiCallbacks = {};
- for (var name in params) {
- var param = params[name];
- if (isFn(param)) {
- apiCallbacks[name] = tryCatch(param);
- delete params[name];
- }
- }
- return apiCallbacks;
- }
- var cid;
- var cidErrMsg;
- var enabled;
- function normalizePushMessage(message) {
- try {
- return JSON.parse(message);
- } catch (e) {}
- return message;
- }
- function invokePushCallback(
- args)
- {
- if (args.type === 'enabled') {
- enabled = true;
- } else if (args.type === 'clientId') {
- cid = args.cid;
- cidErrMsg = args.errMsg;
- invokeGetPushCidCallbacks(cid, args.errMsg);
- } else if (args.type === 'pushMsg') {
- var message = {
- type: 'receive',
- data: normalizePushMessage(args.message) };
- for (var i = 0; i < onPushMessageCallbacks.length; i++) {
- var callback = onPushMessageCallbacks[i];
- callback(message);
- // 该消息已被阻止
- if (message.stopped) {
- break;
- }
- }
- } else if (args.type === 'click') {
- onPushMessageCallbacks.forEach(function (callback) {
- callback({
- type: 'click',
- data: normalizePushMessage(args.message) });
- });
- }
- }
- var getPushCidCallbacks = [];
- function invokeGetPushCidCallbacks(cid, errMsg) {
- getPushCidCallbacks.forEach(function (callback) {
- callback(cid, errMsg);
- });
- getPushCidCallbacks.length = 0;
- }
- function getPushClientId(args) {
- if (!isPlainObject(args)) {
- args = {};
- }var _getApiCallbacks =
- getApiCallbacks(args),success = _getApiCallbacks.success,fail = _getApiCallbacks.fail,complete = _getApiCallbacks.complete;
- var hasSuccess = isFn(success);
- var hasFail = isFn(fail);
- var hasComplete = isFn(complete);
- Promise.resolve().then(function () {
- if (typeof enabled === 'undefined') {
- enabled = false;
- cid = '';
- cidErrMsg = 'unipush is not enabled';
- }
- getPushCidCallbacks.push(function (cid, errMsg) {
- var res;
- if (cid) {
- res = {
- errMsg: 'getPushClientId:ok',
- cid: cid };
- hasSuccess && success(res);
- } else {
- res = {
- errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '') };
- hasFail && fail(res);
- }
- hasComplete && complete(res);
- });
- if (typeof cid !== 'undefined') {
- invokeGetPushCidCallbacks(cid, cidErrMsg);
- }
- });
- }
- var onPushMessageCallbacks = [];
- // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
- var onPushMessage = function onPushMessage(fn) {
- if (onPushMessageCallbacks.indexOf(fn) === -1) {
- onPushMessageCallbacks.push(fn);
- }
- };
- var offPushMessage = function offPushMessage(fn) {
- if (!fn) {
- onPushMessageCallbacks.length = 0;
- } else {
- var index = onPushMessageCallbacks.indexOf(fn);
- if (index > -1) {
- onPushMessageCallbacks.splice(index, 1);
- }
- }
- };
- var api = /*#__PURE__*/Object.freeze({
- __proto__: null,
- getPushClientId: getPushClientId,
- onPushMessage: onPushMessage,
- offPushMessage: offPushMessage,
- invokePushCallback: invokePushCallback });
- var MPPage = Page;
- var MPComponent = Component;
- var customizeRE = /:/g;
- var customize = cached(function (str) {
- return camelize(str.replace(customizeRE, '-'));
- });
- function initTriggerEvent(mpInstance) {
- var oldTriggerEvent = mpInstance.triggerEvent;
- 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];}
- return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
- };
- try {
- // 京东小程序 triggerEvent 为只读
- mpInstance.triggerEvent = newTriggerEvent;
- } catch (error) {
- mpInstance._triggerEvent = newTriggerEvent;
- }
- }
- function initHook(name, options, isComponent) {
- var oldHook = options[name];
- if (!oldHook) {
- options[name] = function () {
- initTriggerEvent(this);
- };
- } else {
- options[name] = function () {
- initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
- return oldHook.apply(this, args);
- };
- }
- }
- if (!MPPage.__$wrappered) {
- MPPage.__$wrappered = true;
- Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- initHook('onLoad', options);
- return MPPage(options);
- };
- Page.after = MPPage.after;
- Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- initHook('created', options);
- return MPComponent(options);
- };
- }
- var PAGE_EVENT_HOOKS = [
- 'onPullDownRefresh',
- 'onReachBottom',
- 'onAddToFavorites',
- 'onShareTimeline',
- 'onShareAppMessage',
- 'onPageScroll',
- 'onResize',
- 'onTabItemTap'];
- function initMocks(vm, mocks) {
- var mpInstance = vm.$mp[vm.mpType];
- mocks.forEach(function (mock) {
- if (hasOwn(mpInstance, mock)) {
- vm[mock] = mpInstance[mock];
- }
- });
- }
- function hasHook(hook, vueOptions) {
- if (!vueOptions) {
- return true;
- }
- if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
- return true;
- }
- vueOptions = vueOptions.default || vueOptions;
- if (isFn(vueOptions)) {
- if (isFn(vueOptions.extendOptions[hook])) {
- return true;
- }
- if (vueOptions.super &&
- vueOptions.super.options &&
- Array.isArray(vueOptions.super.options[hook])) {
- return true;
- }
- return false;
- }
- if (isFn(vueOptions[hook])) {
- return true;
- }
- var mixins = vueOptions.mixins;
- if (Array.isArray(mixins)) {
- return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
- }
- }
- function initHooks(mpOptions, hooks, vueOptions) {
- hooks.forEach(function (hook) {
- if (hasHook(hook, vueOptions)) {
- mpOptions[hook] = function (args) {
- return this.$vm && this.$vm.__call_hook(hook, args);
- };
- }
- });
- }
- function initVueComponent(Vue, vueOptions) {
- vueOptions = vueOptions.default || vueOptions;
- var VueComponent;
- if (isFn(vueOptions)) {
- VueComponent = vueOptions;
- } else {
- VueComponent = Vue.extend(vueOptions);
- }
- vueOptions = VueComponent.options;
- return [VueComponent, vueOptions];
- }
- function initSlots(vm, vueSlots) {
- if (Array.isArray(vueSlots) && vueSlots.length) {
- var $slots = Object.create(null);
- vueSlots.forEach(function (slotName) {
- $slots[slotName] = true;
- });
- vm.$scopedSlots = vm.$slots = $slots;
- }
- }
- function initVueIds(vueIds, mpInstance) {
- vueIds = (vueIds || '').split(',');
- var len = vueIds.length;
- if (len === 1) {
- mpInstance._$vueId = vueIds[0];
- } else if (len === 2) {
- mpInstance._$vueId = vueIds[0];
- mpInstance._$vuePid = vueIds[1];
- }
- }
- function initData(vueOptions, context) {
- var data = vueOptions.data || {};
- var methods = vueOptions.methods || {};
- if (typeof data === 'function') {
- try {
- data = data.call(context); // 支持 Vue.prototype 上挂的数据
- } catch (e) {
- if (Object({"VUE_APP_NAME":"kuailaiyou","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
- console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
- }
- }
- } else {
- try {
- // 对 data 格式化
- data = JSON.parse(JSON.stringify(data));
- } catch (e) {}
- }
- if (!isPlainObject(data)) {
- data = {};
- }
- Object.keys(methods).forEach(function (methodName) {
- if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
- data[methodName] = methods[methodName];
- }
- });
- return data;
- }
- var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
- function createObserver(name) {
- return function observer(newVal, oldVal) {
- if (this.$vm) {
- this.$vm[name] = newVal; // 为了触发其他非 render watcher
- }
- };
- }
- function initBehaviors(vueOptions, initBehavior) {
- var vueBehaviors = vueOptions.behaviors;
- var vueExtends = vueOptions.extends;
- var vueMixins = vueOptions.mixins;
- var vueProps = vueOptions.props;
- if (!vueProps) {
- vueOptions.props = vueProps = [];
- }
- var behaviors = [];
- if (Array.isArray(vueBehaviors)) {
- vueBehaviors.forEach(function (behavior) {
- behaviors.push(behavior.replace('uni://', "wx".concat("://")));
- if (behavior === 'uni://form-field') {
- if (Array.isArray(vueProps)) {
- vueProps.push('name');
- vueProps.push('value');
- } else {
- vueProps.name = {
- type: String,
- default: '' };
- vueProps.value = {
- type: [String, Number, Boolean, Array, Object, Date],
- default: '' };
- }
- }
- });
- }
- if (isPlainObject(vueExtends) && vueExtends.props) {
- behaviors.push(
- initBehavior({
- properties: initProperties(vueExtends.props, true) }));
- }
- if (Array.isArray(vueMixins)) {
- vueMixins.forEach(function (vueMixin) {
- if (isPlainObject(vueMixin) && vueMixin.props) {
- behaviors.push(
- initBehavior({
- properties: initProperties(vueMixin.props, true) }));
- }
- });
- }
- return behaviors;
- }
- function parsePropType(key, type, defaultValue, file) {
- // [String]=>String
- if (Array.isArray(type) && type.length === 1) {
- return type[0];
- }
- return type;
- }
- 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;
- var properties = {};
- if (!isBehavior) {
- properties.vueId = {
- type: String,
- value: '' };
- {
- if (options.virtualHost) {
- properties.virtualHostStyle = {
- type: null,
- value: '' };
- properties.virtualHostClass = {
- type: null,
- value: '' };
- }
- }
- // scopedSlotsCompiler auto
- properties.scopedSlotsCompiler = {
- type: String,
- value: '' };
- properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
- type: null,
- value: [],
- observer: function observer(newVal, oldVal) {
- var $slots = Object.create(null);
- newVal.forEach(function (slotName) {
- $slots[slotName] = true;
- });
- this.setData({
- $slots: $slots });
- } };
- }
- if (Array.isArray(props)) {// ['title']
- props.forEach(function (key) {
- properties[key] = {
- type: null,
- observer: createObserver(key) };
- });
- } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
- Object.keys(props).forEach(function (key) {
- var opts = props[key];
- if (isPlainObject(opts)) {// title:{type:String,default:''}
- var value = opts.default;
- if (isFn(value)) {
- value = value();
- }
- opts.type = parsePropType(key, opts.type);
- properties[key] = {
- type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
- value: value,
- observer: createObserver(key) };
- } else {// content:String
- var type = parsePropType(key, opts);
- properties[key] = {
- type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
- observer: createObserver(key) };
- }
- });
- }
- return properties;
- }
- function wrapper$1(event) {
- // TODO 又得兼容 mpvue 的 mp 对象
- try {
- event.mp = JSON.parse(JSON.stringify(event));
- } catch (e) {}
- event.stopPropagation = noop;
- event.preventDefault = noop;
- event.target = event.target || {};
- if (!hasOwn(event, 'detail')) {
- event.detail = {};
- }
- if (hasOwn(event, 'markerId')) {
- event.detail = typeof event.detail === 'object' ? event.detail : {};
- event.detail.markerId = event.markerId;
- }
- if (isPlainObject(event.detail)) {
- event.target = Object.assign({}, event.target, event.detail);
- }
- return event;
- }
- function getExtraValue(vm, dataPathsArray) {
- var context = vm;
- dataPathsArray.forEach(function (dataPathArray) {
- var dataPath = dataPathArray[0];
- var value = dataPathArray[2];
- if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
- var propPath = dataPathArray[1];
- var valuePath = dataPathArray[3];
- var vFor;
- if (Number.isInteger(dataPath)) {
- vFor = dataPath;
- } else if (!dataPath) {
- vFor = context;
- } else if (typeof dataPath === 'string' && dataPath) {
- if (dataPath.indexOf('#s#') === 0) {
- vFor = dataPath.substr(3);
- } else {
- vFor = vm.__get_value(dataPath, context);
- }
- }
- if (Number.isInteger(vFor)) {
- context = value;
- } else if (!propPath) {
- context = vFor[value];
- } else {
- if (Array.isArray(vFor)) {
- context = vFor.find(function (vForItem) {
- return vm.__get_value(propPath, vForItem) === value;
- });
- } else if (isPlainObject(vFor)) {
- context = Object.keys(vFor).find(function (vForKey) {
- return vm.__get_value(propPath, vFor[vForKey]) === value;
- });
- } else {
- console.error('v-for 暂不支持循环数据:', vFor);
- }
- }
- if (valuePath) {
- context = vm.__get_value(valuePath, context);
- }
- }
- });
- return context;
- }
- function processEventExtra(vm, extra, event) {
- var extraObj = {};
- if (Array.isArray(extra) && extra.length) {
- /**
- *[
- * ['data.items', 'data.id', item.data.id],
- * ['metas', 'id', meta.id]
- *],
- *[
- * ['data.items', 'data.id', item.data.id],
- * ['metas', 'id', meta.id]
- *],
- *'test'
- */
- extra.forEach(function (dataPath, index) {
- if (typeof dataPath === 'string') {
- if (!dataPath) {// model,prop.sync
- extraObj['$' + index] = vm;
- } else {
- if (dataPath === '$event') {// $event
- extraObj['$' + index] = event;
- } else if (dataPath === 'arguments') {
- if (event.detail && event.detail.__args__) {
- extraObj['$' + index] = event.detail.__args__;
- } else {
- extraObj['$' + index] = [event];
- }
- } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
- extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
- } else {
- extraObj['$' + index] = vm.__get_value(dataPath);
- }
- }
- } else {
- extraObj['$' + index] = getExtraValue(vm, dataPath);
- }
- });
- }
- return extraObj;
- }
- function getObjByArray(arr) {
- var obj = {};
- for (var i = 1; i < arr.length; i++) {
- var element = arr[i];
- obj[element[0]] = element[1];
- }
- return obj;
- }
- 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;
- var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
- if (isCustom) {// 自定义事件
- isCustomMPEvent = event.currentTarget &&
- event.currentTarget.dataset &&
- event.currentTarget.dataset.comType === 'wx';
- if (!args.length) {// 无参数,直接传入 event 或 detail 数组
- if (isCustomMPEvent) {
- return [event];
- }
- return event.detail.__args__ || event.detail;
- }
- }
- var extraObj = processEventExtra(vm, extra, event);
- var ret = [];
- args.forEach(function (arg) {
- if (arg === '$event') {
- if (methodName === '__set_model' && !isCustom) {// input v-model value
- ret.push(event.target.value);
- } else {
- if (isCustom && !isCustomMPEvent) {
- ret.push(event.detail.__args__[0]);
- } else {// wxcomponent 组件或内置组件
- ret.push(event);
- }
- }
- } else {
- if (Array.isArray(arg) && arg[0] === 'o') {
- ret.push(getObjByArray(arg));
- } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
- ret.push(extraObj[arg]);
- } else {
- ret.push(arg);
- }
- }
- });
- return ret;
- }
- var ONCE = '~';
- var CUSTOM = '^';
- function isMatchEventType(eventType, optType) {
- return eventType === optType ||
- optType === 'regionchange' && (
- eventType === 'begin' ||
- eventType === 'end');
- }
- function getContextVm(vm) {
- var $parent = vm.$parent;
- // 父组件是 scoped slots 或者其他自定义组件时继续查找
- while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
- $parent = $parent.$parent;
- }
- return $parent && $parent.$parent;
- }
- function handleEvent(event) {var _this2 = this;
- event = wrapper$1(event);
- // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
- var dataset = (event.currentTarget || event.target).dataset;
- if (!dataset) {
- return console.warn('事件信息不存在');
- }
- var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
- if (!eventOpts) {
- return console.warn('事件信息不存在');
- }
- // [['handle',[1,2,a]],['handle1',[1,2,a]]]
- var eventType = event.type;
- var ret = [];
- eventOpts.forEach(function (eventOpt) {
- var type = eventOpt[0];
- var eventsArray = eventOpt[1];
- var isCustom = type.charAt(0) === CUSTOM;
- type = isCustom ? type.slice(1) : type;
- var isOnce = type.charAt(0) === ONCE;
- type = isOnce ? type.slice(1) : type;
- if (eventsArray && isMatchEventType(eventType, type)) {
- eventsArray.forEach(function (eventArray) {
- var methodName = eventArray[0];
- if (methodName) {
- var handlerCtx = _this2.$vm;
- if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
- handlerCtx = getContextVm(handlerCtx) || handlerCtx;
- }
- if (methodName === '$emit') {
- handlerCtx.$emit.apply(handlerCtx,
- processEventArgs(
- _this2.$vm,
- event,
- eventArray[1],
- eventArray[2],
- isCustom,
- methodName));
- return;
- }
- var handler = handlerCtx[methodName];
- if (!isFn(handler)) {
- var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
- var path = _this2.route || _this2.is;
- throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
- }
- if (isOnce) {
- if (handler.once) {
- return;
- }
- handler.once = true;
- }
- var params = processEventArgs(
- _this2.$vm,
- event,
- eventArray[1],
- eventArray[2],
- isCustom,
- methodName);
- params = Array.isArray(params) ? params : [];
- // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
- if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
- // eslint-disable-next-line no-sparse-arrays
- params = params.concat([,,,,,,,,,, event]);
- }
- ret.push(handler.apply(handlerCtx, params));
- }
- });
- }
- });
- if (
- eventType === 'input' &&
- ret.length === 1 &&
- typeof ret[0] !== 'undefined')
- {
- return ret[0];
- }
- }
- var eventChannels = {};
- var eventChannelStack = [];
- function getEventChannel(id) {
- if (id) {
- var eventChannel = eventChannels[id];
- delete eventChannels[id];
- return eventChannel;
- }
- return eventChannelStack.shift();
- }
- var hooks = [
- 'onShow',
- 'onHide',
- 'onError',
- 'onPageNotFound',
- 'onThemeChange',
- 'onUnhandledRejection'];
- function initEventChannel() {
- _vue.default.prototype.getOpenerEventChannel = function () {
- // 微信小程序使用自身getOpenerEventChannel
- {
- return this.$scope.getOpenerEventChannel();
- }
- };
- var callHook = _vue.default.prototype.__call_hook;
- _vue.default.prototype.__call_hook = function (hook, args) {
- if (hook === 'onLoad' && args && args.__id__) {
- this.__eventChannel__ = getEventChannel(args.__id__);
- delete args.__id__;
- }
- return callHook.call(this, hook, args);
- };
- }
- function initScopedSlotsParams() {
- var center = {};
- var parents = {};
- _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
- var has = center[vueId];
- if (!has) {
- parents[vueId] = this;
- this.$on('hook:destroyed', function () {
- delete parents[vueId];
- });
- }
- return has;
- };
- _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
- var data = center[vueId];
- if (data) {
- var object = data[name] || {};
- return key ? object[key] : object;
- } else {
- parents[vueId] = this;
- this.$on('hook:destroyed', function () {
- delete parents[vueId];
- });
- }
- };
- _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
- var vueIds = this.$options.propsData.vueId;
- if (vueIds) {
- var vueId = vueIds.split(',')[0];
- var object = center[vueId] = center[vueId] || {};
- object[name] = value;
- if (parents[vueId]) {
- parents[vueId].$forceUpdate();
- }
- }
- };
- _vue.default.mixin({
- destroyed: function destroyed() {
- var propsData = this.$options.propsData;
- var vueId = propsData && propsData.vueId;
- if (vueId) {
- delete center[vueId];
- delete parents[vueId];
- }
- } });
- }
- function parseBaseApp(vm, _ref3)
- {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
- initEventChannel();
- {
- initScopedSlotsParams();
- }
- if (vm.$options.store) {
- _vue.default.prototype.$store = vm.$options.store;
- }
- uniIdMixin(_vue.default);
- _vue.default.prototype.mpHost = "mp-weixin";
- _vue.default.mixin({
- beforeCreate: function beforeCreate() {
- if (!this.$options.mpType) {
- return;
- }
- this.mpType = this.$options.mpType;
- this.$mp = _defineProperty({
- data: {} },
- this.mpType, this.$options.mpInstance);
- this.$scope = this.$options.mpInstance;
- delete this.$options.mpType;
- delete this.$options.mpInstance;
- if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
- var app = getApp();
- if (app.$vm && app.$vm.$i18n) {
- this._i18n = app.$vm.$i18n;
- }
- }
- if (this.mpType !== 'app') {
- initRefs(this);
- initMocks(this, mocks);
- }
- } });
- var appOptions = {
- onLaunch: function onLaunch(args) {
- if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
- return;
- }
- {
- if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
- console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
- }
- }
- this.$vm = vm;
- this.$vm.$mp = {
- app: this };
- this.$vm.$scope = this;
- // vm 上也挂载 globalData
- this.$vm.globalData = this.globalData;
- this.$vm._isMounted = true;
- this.$vm.__call_hook('mounted', args);
- this.$vm.__call_hook('onLaunch', args);
- } };
- // 兼容旧版本 globalData
- appOptions.globalData = vm.$options.globalData || {};
- // 将 methods 中的方法挂在 getApp() 中
- var methods = vm.$options.methods;
- if (methods) {
- Object.keys(methods).forEach(function (name) {
- appOptions[name] = methods[name];
- });
- }
- initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
- initHooks(appOptions, hooks);
- return appOptions;
- }
- var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
- function findVmByVueId(vm, vuePid) {
- var $children = vm.$children;
- // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
- for (var i = $children.length - 1; i >= 0; i--) {
- var childVm = $children[i];
- if (childVm.$scope._$vueId === vuePid) {
- return childVm;
- }
- }
- // 反向递归查找
- var parentVm;
- for (var _i = $children.length - 1; _i >= 0; _i--) {
- parentVm = findVmByVueId($children[_i], vuePid);
- if (parentVm) {
- return parentVm;
- }
- }
- }
- function initBehavior(options) {
- return Behavior(options);
- }
- function isPage() {
- return !!this.route;
- }
- function initRelation(detail) {
- this.triggerEvent('__l', detail);
- }
- function selectAllComponents(mpInstance, selector, $refs) {
- var components = mpInstance.selectAllComponents(selector);
- components.forEach(function (component) {
- var ref = component.dataset.ref;
- $refs[ref] = component.$vm || component;
- {
- if (component.dataset.vueGeneric === 'scoped') {
- component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
- selectAllComponents(scopedComponent, selector, $refs);
- });
- }
- }
- });
- }
- function initRefs(vm) {
- var mpInstance = vm.$scope;
- Object.defineProperty(vm, '$refs', {
- get: function get() {
- var $refs = {};
- selectAllComponents(mpInstance, '.vue-ref', $refs);
- // TODO 暂不考虑 for 中的 scoped
- var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
- forComponents.forEach(function (component) {
- var ref = component.dataset.ref;
- if (!$refs[ref]) {
- $refs[ref] = [];
- }
- $refs[ref].push(component.$vm || component);
- });
- return $refs;
- } });
- }
- function handleLink(event) {var _ref4 =
- event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
- var parentVm;
- if (vuePid) {
- parentVm = findVmByVueId(this.$vm, vuePid);
- }
- if (!parentVm) {
- parentVm = this.$vm;
- }
- vueOptions.parent = parentVm;
- }
- function parseApp(vm) {
- return parseBaseApp(vm, {
- mocks: mocks,
- initRefs: initRefs });
- }
- function createApp(vm) {
- App(parseApp(vm));
- return vm;
- }
- var encodeReserveRE = /[!'()*]/g;
- var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
- var commaRE = /%2C/g;
- // fixed encodeURIComponent which is more conformant to RFC3986:
- // - escapes [!'()*]
- // - preserve commas
- var encode = function encode(str) {return encodeURIComponent(str).
- replace(encodeReserveRE, encodeReserveReplacer).
- replace(commaRE, ',');};
- function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
- var res = obj ? Object.keys(obj).map(function (key) {
- var val = obj[key];
- if (val === undefined) {
- return '';
- }
- if (val === null) {
- return encodeStr(key);
- }
- if (Array.isArray(val)) {
- var result = [];
- val.forEach(function (val2) {
- if (val2 === undefined) {
- return;
- }
- if (val2 === null) {
- result.push(encodeStr(key));
- } else {
- result.push(encodeStr(key) + '=' + encodeStr(val2));
- }
- });
- return result.join('&');
- }
- return encodeStr(key) + '=' + encodeStr(val);
- }).filter(function (x) {return x.length > 0;}).join('&') : null;
- return res ? "?".concat(res) : '';
- }
- function parseBaseComponent(vueComponentOptions)
- {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
- initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
- var options = _objectSpread({
- multipleSlots: true,
- addGlobalClass: true },
- vueOptions.options || {});
- {
- // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
- if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
- Object.assign(options, vueOptions['mp-weixin'].options);
- }
- }
- var componentOptions = {
- options: options,
- data: initData(vueOptions, _vue.default.prototype),
- behaviors: initBehaviors(vueOptions, initBehavior),
- properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
- lifetimes: {
- attached: function attached() {
- var properties = this.properties;
- var options = {
- mpType: isPage.call(this) ? 'page' : 'component',
- mpInstance: this,
- propsData: properties };
- initVueIds(properties.vueId, this);
- // 处理父子关系
- initRelation.call(this, {
- vuePid: this._$vuePid,
- vueOptions: options });
- // 初始化 vue 实例
- this.$vm = new VueComponent(options);
- // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
- initSlots(this.$vm, properties.vueSlots);
- // 触发首次 setData
- this.$vm.$mount();
- },
- ready: function ready() {
- // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
- // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
- if (this.$vm) {
- this.$vm._isMounted = true;
- this.$vm.__call_hook('mounted');
- this.$vm.__call_hook('onReady');
- }
- },
- detached: function detached() {
- this.$vm && this.$vm.$destroy();
- } },
- pageLifetimes: {
- show: function show(args) {
- this.$vm && this.$vm.__call_hook('onPageShow', args);
- },
- hide: function hide() {
- this.$vm && this.$vm.__call_hook('onPageHide');
- },
- resize: function resize(size) {
- this.$vm && this.$vm.__call_hook('onPageResize', size);
- } },
- methods: {
- __l: handleLink,
- __e: handleEvent } };
- // externalClasses
- if (vueOptions.externalClasses) {
- componentOptions.externalClasses = vueOptions.externalClasses;
- }
- if (Array.isArray(vueOptions.wxsCallMethods)) {
- vueOptions.wxsCallMethods.forEach(function (callMethod) {
- componentOptions.methods[callMethod] = function (args) {
- return this.$vm[callMethod](args);
- };
- });
- }
- if (isPage) {
- return componentOptions;
- }
- return [componentOptions, VueComponent];
- }
- function parseComponent(vueComponentOptions) {
- return parseBaseComponent(vueComponentOptions, {
- isPage: isPage,
- initRelation: initRelation });
- }
- var hooks$1 = [
- 'onShow',
- 'onHide',
- 'onUnload'];
- hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
- function parseBasePage(vuePageOptions, _ref6)
- {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
- var pageOptions = parseComponent(vuePageOptions);
- initHooks(pageOptions.methods, hooks$1, vuePageOptions);
- pageOptions.methods.onLoad = function (query) {
- this.options = query;
- var copyQuery = Object.assign({}, query);
- delete copyQuery.__id__;
- this.$page = {
- fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
- this.$vm.$mp.query = query; // 兼容 mpvue
- this.$vm.__call_hook('onLoad', query);
- };
- return pageOptions;
- }
- function parsePage(vuePageOptions) {
- return parseBasePage(vuePageOptions, {
- isPage: isPage,
- initRelation: initRelation });
- }
- function createPage(vuePageOptions) {
- {
- return Component(parsePage(vuePageOptions));
- }
- }
- function createComponent(vueOptions) {
- {
- return Component(parseComponent(vueOptions));
- }
- }
- function createSubpackageApp(vm) {
- var appOptions = parseApp(vm);
- var app = getApp({
- allowDefault: true });
- vm.$scope = app;
- var globalData = app.globalData;
- if (globalData) {
- Object.keys(appOptions.globalData).forEach(function (name) {
- if (!hasOwn(globalData, name)) {
- globalData[name] = appOptions.globalData[name];
- }
- });
- }
- Object.keys(appOptions).forEach(function (name) {
- if (!hasOwn(app, name)) {
- app[name] = appOptions[name];
- }
- });
- if (isFn(appOptions.onShow) && wx.onAppShow) {
- wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
- vm.__call_hook('onShow', args);
- });
- }
- if (isFn(appOptions.onHide) && wx.onAppHide) {
- wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
- vm.__call_hook('onHide', args);
- });
- }
- if (isFn(appOptions.onLaunch)) {
- var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
- vm.__call_hook('onLaunch', args);
- }
- return vm;
- }
- function createPlugin(vm) {
- var appOptions = parseApp(vm);
- if (isFn(appOptions.onShow) && wx.onAppShow) {
- wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
- vm.__call_hook('onShow', args);
- });
- }
- if (isFn(appOptions.onHide) && wx.onAppHide) {
- wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
- vm.__call_hook('onHide', args);
- });
- }
- if (isFn(appOptions.onLaunch)) {
- var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
- vm.__call_hook('onLaunch', args);
- }
- return vm;
- }
- todos.forEach(function (todoApi) {
- protocols[todoApi] = false;
- });
- canIUses.forEach(function (canIUseApi) {
- var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
- canIUseApi;
- if (!wx.canIUse(apiName)) {
- protocols[canIUseApi] = false;
- }
- });
- var uni = {};
- if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
- uni = new Proxy({}, {
- get: function get(target, name) {
- if (hasOwn(target, name)) {
- return target[name];
- }
- if (baseApi[name]) {
- return baseApi[name];
- }
- if (api[name]) {
- return promisify(name, api[name]);
- }
- {
- if (extraApi[name]) {
- return promisify(name, extraApi[name]);
- }
- if (todoApis[name]) {
- return promisify(name, todoApis[name]);
- }
- }
- if (eventApi[name]) {
- return eventApi[name];
- }
- if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
- return;
- }
- return promisify(name, wrapper(name, wx[name]));
- },
- set: function set(target, name, value) {
- target[name] = value;
- return true;
- } });
- } else {
- Object.keys(baseApi).forEach(function (name) {
- uni[name] = baseApi[name];
- });
- {
- Object.keys(todoApis).forEach(function (name) {
- uni[name] = promisify(name, todoApis[name]);
- });
- Object.keys(extraApi).forEach(function (name) {
- uni[name] = promisify(name, todoApis[name]);
- });
- }
- Object.keys(eventApi).forEach(function (name) {
- uni[name] = eventApi[name];
- });
- Object.keys(api).forEach(function (name) {
- uni[name] = promisify(name, api[name]);
- });
- Object.keys(wx).forEach(function (name) {
- if (hasOwn(wx, name) || hasOwn(protocols, name)) {
- uni[name] = promisify(name, wrapper(name, wx[name]));
- }
- });
- }
- wx.createApp = createApp;
- wx.createPage = createPage;
- wx.createComponent = createComponent;
- wx.createSubpackageApp = createSubpackageApp;
- wx.createPlugin = createPlugin;
- var uni$1 = uni;var _default =
- uni$1;exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
- /***/ }),
- /***/ 10:
- /*!*************************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/lib/goeasy-2.2.4.min.js ***!
- \*************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(uni) {!function (e, t) { true ? module.exports = t() : undefined;}(window, function () {return function (e) {var t = {};function n(o) {if (t[o]) return t[o].exports;var r = t[o] = { i: o, l: !1, exports: {} };return e[o].call(r.exports, r, r.exports, n), r.l = !0, r.exports;}return n.m = e, n.c = t, n.d = function (e, t, o) {n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: o });}, n.r = function (e) {"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });}, n.t = function (e, t) {if (1 & t && (e = n(e)), 8 & t) return e;if (4 & t && "object" == typeof e && e && e.__esModule) return e;var o = Object.create(null);if (n.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e) for (var r in e) {n.d(o, r, function (t) {return e[t];}.bind(null, r));}return o;}, n.n = function (e) {var t = e && e.__esModule ? function () {return e["default"];} : function () {return e;};return n.d(t, "a", t), t;}, n.o = function (e, t) {return Object.prototype.hasOwnProperty.call(e, t);}, n.p = "", n(n.s = 32);}([function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.noop = t.GoEasyDomainNumber = t.goEasyArray = t.UUID = t.calibrator = undefined;var o = n(35),r = n(61),i = n(65),s = n(36);t.calibrator = o.calibrator, t.UUID = r.UUID, t.goEasyArray = i.goEasyArray, t.GoEasyDomainNumber = s.GoEasyDomainNumber, t.noop = function () {};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t["default"] = { WRITE: "WRITE", READ: "READ", NONE: "NONE" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t["default"] = { "default": "default", text: "text", image: "image", video: "video", audio: "audio", emoji: "emoji", file: "file" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(0),s = n(1),a = (o = s) && o.__esModule ? o : { "default": o };var u = function () {function e(t) {var n = this;!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.uuid = null, this.name = "", this.params = null, this.success = null, this.fail = null, this.permission = a["default"].NONE, this.singleTimeout = 0, this.totalTimeout = 0, this.startTime = 0, this.complete = !1, this.retried = 0, this.uuid = i.UUID.get(), this.name = t.name, this.params = t.params, this.permission = t.permission, this.totalTimeout = t.totalTimeout, this.singleTimeout = t.singleTimeout, this.success = function (e) {n.complete || (n.complete = !0, t.success(e));}, this.fail = function (e) {n.complete || (n.complete = !0, t.fail(e));};}return r(e, [{ key: "start", value: function value() {this.startTime = Date.now();} }, { key: "isTimeout", value: function value() {return this.startTime + this.totalTimeout < Date.now();} }]), e;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.SocketTimeout = { connect: 1500, reconnectionDelayMax: 3e3, commonQuerySingle: 2500, commonQueryTotal: 12e3, commonRequestSingle: 1700, commonRequestTotal: 12e3, commonInfiniteSingle: 1700, commonInfiniteTotal: 864e5 };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.EmitType = { authorize: "authorize", manualDisconnect: "manualDisconnect", subscribe: "subscribe", unsubscribe: "unsubscribe", publish: "publish", ack: "ack", historyMessages: "historyMessages", hereNow: "hereNow", hereNowByUserIds: "hereNowByUserIds", imLastConversations: "imLastConversations", markPrivateMessageAsRead: "markPrivateMessageAsRead", markGroupMessageAsRead: "markGroupMessageAsRead", imGroupOnlineCount: "imGroupOnlineCount", imHereNow: "imHereNow", imGroupHereNow: "imGroupHereNow", publishIM: "publishIM", imHistory: "imHistory", subscribeUserPresence: "subscribeUserPresence", unsubscribeUserPresence: "unsubscribeUserPresence", subscribeGroupPresence: "subscribeGroupPresence", unsubscribeGroupPresence: "unsubscribeGroupPresence", removeConversation: "removeConversation", topConversation: "topConversation", imData: "imData", subscribeGroups: "subscribeGroups", unsubscribeGroup: "unsubscribeGroup" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.str = t.noop = t.GoEasyDomainNumber = t.goEasyArray = t.UUID = t.calibrator = undefined;var o = n(69),r = n(0);t.calibrator = r.calibrator, t.UUID = r.UUID, t.goEasyArray = r.goEasyArray, t.GoEasyDomainNumber = r.GoEasyDomainNumber, t.noop = r.noop, t.str = o.str;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.Conversion = t.ConversationType = t.Conversations = undefined;var o = n(38),r = n(23),i = n(107);t.Conversations = i.Conversations, t.ConversationType = r.ConversationType, t.Conversion = o.Conversion;}, function (e, t, n) {"use strict";e.exports = function () {return function () {};};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t["default"] = { DISCONNECTED: "disconnected", DISCONNECTING: "disconnecting", CONNECTING: "connecting", CONNECTED: "connected", RECONNECTING: "reconnecting", RECONNECTED: "reconnected", EXPIRED_RECONNECTED: "reconnected", CONNECT_FAILED: "connect_failed" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.ImEventType = t.eventCenter = undefined;var o = n(33),r = n(34);t.eventCenter = o.eventCenter, t.ImEventType = r.ImEventType;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.im = t.IM = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(7),i = n(68),s = w(n(2)),a = w(n(80)),u = w(n(96)),c = w(n(43)),l = w(n(97)),f = w(n(98)),p = w(n(99)),d = w(n(100)),h = w(n(101)),y = w(n(102)),v = w(n(103)),b = w(n(104)),m = w(n(106)),g = n(33);function w(e) {return e && e.__esModule ? e : { "default": e };}var _ = t.IM = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this._event = g.eventCenter, this._goEasyUploader = null, this._goEasySocket = null, this._dataCache = null, this._messageSender = null, this._history = null, this._conversations = null, this._iMReceiver = null, this._groupMessageReceive = null, this._groupPresenceSubscriber = null, this._groupOnlineCount = null, this._groupHereNow = null, this._privateMessageReceive = null, this._userPresenceSubscriber = null, this._userHereNow = null;}return o(e, [{ key: "on", value: function value(e, t) {this._event.on(e, t);} }, { key: "initialBeforeConnect", value: function value(t) {e.userId = t.id, e.userData = t.data, this._dataCache = new m["default"](this, t), this._messageSender = new a["default"](this), this._history = new u["default"](this), this._goEasyUploader = new c["default"](this), this._userHereNow = new y["default"](this), this._groupHereNow = new v["default"](this), this._groupOnlineCount = new p["default"](this);} }, { key: "initialAfterConnect", value: function value() {this._iMReceiver = new b["default"](this), this._conversations = new r.Conversations(this), this._groupPresenceSubscriber = new d["default"](this), this._groupMessageReceive = new l["default"](this), this._userPresenceSubscriber = new h["default"](this), this._privateMessageReceive = new f["default"](this);} }, { key: "initialGoEasySocket", value: function value(e) {this._goEasySocket = e;} }, { key: "createTextMessage", value: function value(e) {return i.messageCreator.create(s["default"].text, e);} }, { key: "createImageMessage", value: function value(e) {return i.messageCreator.create(s["default"].image, e);} }, { key: "createFileMessage", value: function value(e) {return i.messageCreator.create(s["default"].file, e);} }, { key: "createAudioMessage", value: function value(e) {return i.messageCreator.create(s["default"].audio, e);} }, { key: "createVideoMessage", value: function value(e) {return i.messageCreator.create(s["default"].video, e);} }, { key: "createCustomMessage", value: function value(e) {return i.messageCreator.create(e.type, e);} }, { key: "latestConversations", value: function value() {return this._conversations ? this._conversations.latestConversations() : Promise.reject({ code: 500, content: "Please connect GoEasyIM first." });} }, { key: "groupMarkAsRead", value: function value(e, t) {return this._conversations.groupMarkAsRead(e, t);} }, { key: "privateMarkAsRead", value: function value(e, t) {return this._conversations.privateMarkAsRead(e, t);} }, { key: "removePrivateConversation", value: function value(e) {return this._conversations.removeConversation(e, r.ConversationType.PRIVATE);} }, { key: "removeGroupConversation", value: function value(e) {return this._conversations.removeConversation(e, r.ConversationType.GROUP);} }, { key: "topPrivateConversation", value: function value(e, t) {return this._conversations.topConversation(e, t, r.ConversationType.PRIVATE);} }, { key: "topGroupConversation", value: function value(e, t) {return this._conversations.topConversation(e, t, r.ConversationType.GROUP);} }, { key: "history", value: function value(e) {return this._history.history(e);} }, { key: "upload", value: function value(e, t, n) {return this._goEasyUploader.upload(e, t, n);} }, { key: "sendSystemMessage", value: function value(e, t) {return this._messageSender.send(e, t, r.ConversationType.SYSTEM);} }, { key: "sendMessage", value: function value(e) {return this._messageSender.sendMessage(e);} }, { key: "sendPrivateMessage", value: function value(e, t) {return this._messageSender.send(e, t, r.ConversationType.PRIVATE);} }, { key: "subscribeUserPresence", value: function value(e) {return this._userPresenceSubscriber.presence(e);} }, { key: "unsubscribeUserPresence", value: function value(e) {return this._userPresenceSubscriber.unPresence(e);} }, { key: "hereNow", value: function value(e) {return this._userHereNow.hereNow(e, r.ConversationType.PRIVATE);} }, { key: "sendGroupMessage", value: function value(e, t) {return this._messageSender.send(e, t, r.ConversationType.GROUP);} }, { key: "subscribeGroup", value: function value(e) {return this._groupMessageReceive.subscribe(e);} }, { key: "unsubscribeGroup", value: function value(e) {return this._groupMessageReceive.unsubscribe(e);} }, { key: "subscribeGroupPresence", value: function value(e) {return this._groupPresenceSubscriber.presence(e);} }, { key: "unsubscribeGroupPresence", value: function value(e) {return this._groupPresenceSubscriber.unPresence(e);} }, { key: "groupHereNow", value: function value(e) {return this._groupHereNow.hereNow(e);} }, { key: "groupOnlineCount", value: function value(e) {return this._groupOnlineCount.get(e);} }]), e;}();_.version = null, _.userId = undefined, _.userData = null;var E = new _();t.im = E;}, function (e, t, n) {function o(e) {if (e) return function (e) {for (var t in o.prototype) {e[t] = o.prototype[t];}return e;}(e);}e.exports = o, o.prototype.on = o.prototype.addEventListener = function (e, t) {return this._callbacks = this._callbacks || {}, (this._callbacks["$" + e] = this._callbacks["$" + e] || []).push(t), this;}, o.prototype.once = function (e, t) {function n() {this.off(e, n), t.apply(this, arguments);}return n.fn = t, this.on(e, n), this;}, o.prototype.off = o.prototype.removeListener = o.prototype.removeAllListeners = o.prototype.removeEventListener = function (e, t) {if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;var n,o = this._callbacks["$" + e];if (!o) return this;if (1 == arguments.length) return delete this._callbacks["$" + e], this;for (var r = 0; r < o.length; r++) {if ((n = o[r]) === t || n.fn === t) {o.splice(r, 1);break;}}return this;}, o.prototype.emit = function (e) {this._callbacks = this._callbacks || {};var t = [].slice.call(arguments, 1),n = this._callbacks["$" + e];if (n) for (var o = 0, r = (n = n.slice(0)).length; o < r; ++o) {n[o].apply(this, t);}return this;}, o.prototype.listeners = function (e) {return this._callbacks = this._callbacks || {}, this._callbacks["$" + e] || [];}, o.prototype.hasListeners = function (e) {return !!this.listeners(e).length;};}, function (e, t, n) {"use strict";var o = n(116),r = n(52),i = n(120),s = n(121);"undefined" != typeof navigator && /Android/i.test(navigator.userAgent), "undefined" != typeof navigator && /PhantomJS/i.test(navigator.userAgent);t.protocol = 3;var a = t.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 },u = o(a),c = { type: "error", data: "parser error" },l = n(122);t.encodePacket = function (e, t, n, o) {"function" == typeof t && (o = t, t = !1), "function" == typeof n && (o = n, n = null);e.data === undefined ? undefined : e.data.buffer || e.data;var r = a[e.type];return undefined !== e.data && (r += n ? s.encode(String(e.data), { strict: !1 }) : String(e.data)), o("" + r);}, t.decodePacket = function (e, t, n) {if (e === undefined) return c;if ("string" == typeof e) {if (n && !1 === (e = function (e) {try {e = s.decode(e, { strict: !1 });} catch (t) {return !1;}return e;}(e))) return c;var o = e.charAt(0);return Number(o) == o && u[o] ? e.length > 1 ? { type: u[o], data: e.substring(1) } : { type: u[o] } : c;}o = new Uint8Array(e)[0];var r = sliceBuffer(e, 1);return l && "blob" === t && (r = new l([r])), { type: u[o], data: r };}, t.encodePayload = function (e, n, o) {"function" == typeof n && (o = n, n = null);var s = r(e);if (!e.length) return o("0:");!function (e, t, n) {for (var o = new Array(e.length), r = i(e.length, n), s = function s(e, n, r) {t(n, function (t, n) {o[e] = n, r(t, o);});}, a = 0; a < e.length; a++) {s(a, e[a], r);}}(e, function (e, o) {t.encodePacket(e, !!s && n, !0, function (e) {o(null, function (e) {return e.length + ":" + e;}(e));});}, function (e, t) {return o(t.join(""));});}, t.decodePayload = function (e, n, o) {var r;if ("function" == typeof n && (o = n, n = null), "" === e) return o(c, 0, 1);for (var i, s, a = "", u = 0, l = e.length; u < l; u++) {var f = e.charAt(u);if (":" === f) {if ("" === a || a != (i = Number(a))) return o(c, 0, 1);if (a != (s = e.substr(u + 1, i)).length) return o(c, 0, 1);if (s.length) {if (r = t.decodePacket(s, n, !0), c.type === r.type && c.data === r.data) return o(c, 0, 1);if (!1 === o(r, u + i, l)) return;}u += i, a = "";} else a += f;}return "" !== a ? o(c, 0, 1) : void 0;};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(11),i = n(0),s = (u(n(2)), u(n(19))),a = n(7);function u(e) {return e && e.__esModule ? e : { "default": e };}var c = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.type = "", this.to = { type: null, id: null, data: null }, this.timestamp = Date.now(), this.senderId = null, this.payload = null, this.messageId = i.UUID.get(), this.status = s["default"]["new"], this.validate(t), this.setSenderId(), this.setType(t), this.setNotification(t), this.setPayload(t), this.setTo(t), this.setData();}return o(e, [{ key: "validate", value: function value(e) {if (!i.calibrator.isObject(e)) throw Error("it is an empty message.");} }, { key: "setType", value: function value(e) {throw Error("Abstract method");} }, { key: "setNotification", value: function value(e) {if (e.notification) {if (!i.calibrator.isObject(e.notification)) throw Error("notification require an object.");if (i.calibrator.isEmpty(e.notification.title)) throw Error("notification's title is empty.");if (i.calibrator.isEmpty(e.notification.body)) throw Error("notification's body is empty.");if (e.notification.title.length > 32) throw Error("notification's title over max length 32");if (e.notification.body.length > 50) throw Error("notification's body over max length 50");this.notification = e.notification;}} }, { key: "setPayload", value: function value(e) {this.payload = Object.create(null);} }, { key: "setSenderId", value: function value() {if (!r.IM.userId) throw Error("please call connect() first.");this.senderId = r.IM.userId;} }, { key: "setTo", value: function value(e) {this.to = e.to;} }, { key: "setData", value: function value() {this.to && this.to.type == a.ConversationType.GROUP && (this.senderData = r.IM.userData);} }]), e;}();t["default"] = c;}, function (e, t, n) {"use strict";(function (e) {var n,o = this && this.__values || function (e) {var t = "function" == typeof Symbol && Symbol.iterator,n = t && e[t],o = 0;if (n) return n.call(e);if (e && "number" == typeof e.length) return { next: function next() {return e && o >= e.length && (e = void 0), { value: e && e[o++], done: !e };} };throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");};t.__esModule = !0, t.FrameworkDetector = t.Framework = void 0, function (e) {e.UNIAPP = "UNIAPP", e.REACT_NATIVE = "REACT_NATIVE", e.TARO = "TARO", e.IONIC = "IONIC", e.NATIVE_APPLET_WX = "NATIVE_APPLET_WX", e.NATIVE_APPLET_ALIPAY = "NATIVE_APPLET_ALIPAY", e.UNKNOWN = "UNKNOWN";}(n = t.Framework || (t.Framework = {}));var r = function () {function t() {var e, t, r;this.framework = null, this.methods = ((e = {})[n.UNIAPP] = this.isUniApp, e[n.REACT_NATIVE] = this.isReactNative, e[n.NATIVE_APPLET_WX] = this.isWXApplet, e);var i = this.methods,s = Object.keys(i);try {for (var a = o(s), u = a.next(); !u.done; u = a.next()) {var c = u.value;if ((0, i[c])()) {this.framework = c;break;}}} catch (l) {t = { error: l };} finally {try {u && !u.done && (r = a["return"]) && r.call(a);} finally {if (t) throw t.error;}}this.framework = this.framework || n.UNKNOWN, this.framework;}return t.currentFramework = function () {return this.instance.framework;}, t.prototype.isUniApp = function () {return "object" == typeof uni && !!uni.getSystemInfoSync;}, t.prototype.isReactNative = function () {return void 0 !== e && e.__fbGenNativeModule;}, t.prototype.isTaro = function () {return !1;}, t.prototype.isWXApplet = function () {return "undefined" != typeof wx && wx.getLocation && "undefined" == typeof uni;}, t.instance = new t(), t;}();t.FrameworkDetector = r;}).call(this, n(25));}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(0),s = n(7),a = n(19),u = (o = a) && o.__esModule ? o : { "default": o };var c = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return r(e, null, [{ key: "assemble", value: function value(e) {if (!i.calibrator.isDef(e)) return null;try {var t = Object.create(null);return t.type = e.mt, t.timestamp = e.ts, t.senderId = e.s, t.payload = JSON.parse(e.p), t.messageId = e.i, t.status = u["default"].success, e.t == s.ConversationType.GROUP ? (t.groupId = e.r, t.senderData = e.d ? JSON.parse(e.d) : {}) : t.receiverId = e.r, t;} catch (n) {throw Error(n);}} }]), e;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t["default"] = { message: "message", imMessage: "imMessage", userPresence: "userPresence", groupPresence: "groupPresence" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = function l(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : l(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},s = n(24),a = (o = s) && o.__esModule ? o : { "default": o },u = n(6);var c = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, a["default"]), r(t, [{ key: "validate", value: function value(e) {if (i(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e), !u.calibrator.isDef(e.file)) throw Error("file is empty.");} }, { key: "setPayload", value: function value(e) {i(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t["default"] = { "new": "new", sending: "sending", success: "success", fail: "fail" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = function l(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : l(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},s = n(6),a = n(24),u = (o = a) && o.__esModule ? o : { "default": o };var c = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, u["default"]), r(t, [{ key: "validate", value: function value(e) {if (i(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e), !s.calibrator.isDef(e.file)) throw Error("file is empty.");} }, { key: "setPayload", value: function value(e) {i(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = function c(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : c(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},s = n(24),a = (o = s) && o.__esModule ? o : { "default": o };var u = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, a["default"]), r(t, [{ key: "validate", value: function value(e) {if (i(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e), !(e.file instanceof File)) throw Error("wrong file type.");if (0 == e.file.size) throw Error("File size is 0.");if (e.file.size > 31457280) throw Error("message-length limit 30mib");} }, { key: "setPayload", value: function value(e) {i(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e), this.payload.contentType = e.file.type, this.payload.name = e.file.name, this.payload.size = e.file.size;var n = (window.URL || window.webkitURL).createObjectURL(e.file);this.payload.url = n;} }]), t;}();t["default"] = u;}, function (e, t) {t.encode = function (e) {var t = "";for (var n in e) {e.hasOwnProperty(n) && (t.length && (t += "&"), t += encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));}return t;}, t.decode = function (e) {for (var t = {}, n = e.split("&"), o = 0, r = n.length; o < r; o++) {var i = n[o].split("=");t[decodeURIComponent(i[0])] = decodeURIComponent(i[1]);}return t;};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.ConversationType = { GROUP: "group", PRIVATE: "private" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function c(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : c(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = a(n(14)),s = a(n(2));function a(e) {return e && e.__esModule ? e : { "default": e };}var u = function (e) {function t(e) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t);var n = function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));return n.file = null, n.onProgress = null, n.setFile(e.file), n.setOnProgress(e.onProgress), n;}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "validate", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);} }, { key: "setPayload", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e), this.payload.size = "", this.payload.contentType = "", this.payload.name = "", this.payload.url = "";} }, { key: "setType", value: function value(e) {this.type = s["default"].file;} }, { key: "setFile", value: function value(e) {this.file = e;} }, { key: "setOnProgress", value: function value(e) {this.onProgress = e;} }]), t;}();t["default"] = u;}, function (e, t) {var n;n = function () {return this;}();try {n = n || new Function("return this")();} catch (o) {"object" == typeof window && (n = window);}e.exports = n;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}();var r = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return o(e, [{ key: "upload", value: function value(e) {throw Error("Not implementation yet.");} }]), e;}();t["default"] = r;}, function (e, t, n) {"use strict";t.__esModule = !0, t.GoEasyEventCenter = void 0;var o = n(105),r = function () {function e() {}return e.on = function (t, n) {e.eventDriver.on(t, n);}, e.fire = function (t, n) {e.eventDriver.fire(t, n);}, e.eventDriver = new o.EmitterEventDriver(), e;}();t.GoEasyEventCenter = r;}, function (e, t, n) {"use strict";n(8)("socket.io-parser");var o = n(12),r = n(49);function i() {}t.protocol = 4, t.types = ["CONNECT", "DISCONNECT", "EVENT", "ACK", "ERROR", "BINARY_EVENT", "BINARY_ACK"], t.CONNECT = 0, t.DISCONNECT = 1, t.EVENT = 2, t.ACK = 3, t.ERROR = 4, t.BINARY_EVENT = 5, t.BINARY_ACK = 6, t.Encoder = i, t.Decoder = a;var s = t.ERROR + '"encode error"';function a() {this.reconstructor = null;}function u(e) {this.reconPack = e, this.buffers = [];}function c(e) {return { type: t.ERROR, data: "parser error: " + e };}i.prototype.encode = function (e, n) {n([function (e) {var n = "" + e.type;t.BINARY_EVENT !== e.type && t.BINARY_ACK !== e.type || (n += e.attachments + "-");e.nsp && "/" !== e.nsp && (n += e.nsp + ",");null != e.id && (n += e.id);if (null != e.data) {var o = function (e) {try {return JSON.stringify(e);} catch (t) {return !1;}}(e.data);if (!1 === o) return s;n += o;}return n;}(e)]);}, o(a.prototype), a.prototype.add = function (e) {var n;if ("string" != typeof e) throw new Error("Unknown type: " + e);n = function (e) {var n = 0,o = { type: Number(e.charAt(0)) };if (null == t.types[o.type]) return c("unknown packet type " + o.type);if (t.BINARY_EVENT === o.type || t.BINARY_ACK === o.type) {for (var i = ""; "-" !== e.charAt(++n) && (i += e.charAt(n), n != e.length);) {;}if (i != Number(i) || "-" !== e.charAt(n)) throw new Error("Illegal attachments");o.attachments = Number(i);}if ("/" === e.charAt(n + 1)) for (o.nsp = ""; ++n;) {var s = e.charAt(n);if ("," === s) break;if (o.nsp += s, n === e.length) break;} else o.nsp = "/";var a = e.charAt(n + 1);if ("" !== a && Number(a) == a) {for (o.id = ""; ++n;) {var s = e.charAt(n);if (null == s || Number(s) != s) {--n;break;}if (o.id += e.charAt(n), n === e.length) break;}o.id = Number(o.id);}if (e.charAt(++n)) {var u = function (e) {try {return JSON.parse(e);} catch (t) {return !1;}}(e.substr(n)),l = !1 !== u && (o.type === t.ERROR || r(u));if (!l) return c("invalid payload");o.data = u;}return o;}(e), this.emit("decoded", n);}, a.prototype.destroy = function () {this.reconstructor && this.reconstructor.finishedReconstruction();}, u.prototype.takeBinaryData = function (e) {if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {var t = binary.reconstructPacket(this.reconPack, this.buffers);return this.finishedReconstruction(), t;}return null;}, u.prototype.finishedReconstruction = function () {this.reconPack = null, this.buffers = [];};}, function (e, t, n) {"use strict";var o = n(13),r = n(12);function i(e) {this.path = e.path, this.hostname = e.hostname, this.port = e.port, this.secure = e.secure, this.query = e.query, this.timestampParam = e.timestampParam, this.timestampRequests = e.timestampRequests, this.readyState = "", this.agent = e.agent || !1, this.socket = e.socket, this.enablesXDR = e.enablesXDR, this.pfx = e.pfx, this.key = e.key, this.passphrase = e.passphrase, this.cert = e.cert, this.ca = e.ca, this.ciphers = e.ciphers, this.rejectUnauthorized = e.rejectUnauthorized, this.forceNode = e.forceNode, this.isReactNative = e.isReactNative, this.extraHeaders = e.extraHeaders, this.localAddress = e.localAddress;}e.exports = i, r(i.prototype), i.prototype.onError = function (e, t) {var n = new Error(e);return n.type = "TransportError", n.description = t, this.emit("error", n), this;}, i.prototype.open = function () {return "closed" !== this.readyState && "" !== this.readyState || (this.readyState = "opening", this.doOpen()), this;}, i.prototype.close = function () {return "opening" !== this.readyState && "open" !== this.readyState || (this.doClose(), this.onClose()), this;}, i.prototype.send = function (e) {if ("open" !== this.readyState) throw new Error("Transport not open");this.write(e);}, i.prototype.onOpen = function () {this.readyState = "open", this.writable = !0, this.emit("open");}, i.prototype.onData = function (e) {var t = o.decodePacket(e, this.socket.binaryType);this.onPacket(t);}, i.prototype.onPacket = function (e) {this.emit("packet", e);}, i.prototype.onClose = function () {this.readyState = "closed", this.emit("close");};}, function (e, t) {e.exports = function (e, t) {var n = function n() {};n.prototype = t.prototype, e.prototype = new n(), e.prototype.constructor = e;};}, function (e, t, n) {"use strict";var o,r = this && this.__values || function (e) {var t = "function" == typeof Symbol && Symbol.iterator,n = t && e[t],o = 0;if (n) return n.call(e);if (e && "number" == typeof e.length) return { next: function next() {return e && o >= e.length && (e = void 0), { value: e && e[o++], done: !e };} };throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");};t.__esModule = !0, t.PlatformDetector = t.Platform = void 0, function (e) {e.BROWSER = "BROWSER", e.UNKNOWN = "UNKNOWN", e.APP_IOS = "APP_IOS", e.APP_ANDROID = "APP_ANDROID", e.APPLET_WX = "APPLET_WX", e.APPLET_ALIPAY = "APPLET_ALIPAY", e.APPLET_BYTEDANCE = "APPLET_BYTEDANCE";}(o = t.Platform || (t.Platform = {}));var i = function () {function e() {var e, t, n;this.platform = null, this.methods = ((e = {})[o.BROWSER] = this.isBrowser, e[o.APP_IOS] = this.isAppiOS, e[o.APP_ANDROID] = this.isAppAndroid, e[o.APPLET_WX] = this.isWXApplet, e);var i = this.methods,s = Object.keys(i);try {for (var a = r(s), u = a.next(); !u.done; u = a.next()) {var c = u.value;if ((0, i[c])()) {this.platform = c;break;}}} catch (l) {t = { error: l };} finally {try {u && !u.done && (n = a["return"]) && n.call(a);} finally {if (t) throw t.error;}}this.platform = this.platform || o.UNKNOWN, this.platform;}return e.currentPlatform = function () {return e.instance.platform;}, e.prototype.isBrowser = function () {return "undefined" != typeof navigator && "undefined" != typeof document && !!document.getElementById;}, e.prototype.isAppiOS = function () {return "object" == typeof uni && !!uni.getSystemInfoSync && "ios" === uni.getSystemInfoSync().platform && "object" == typeof plus;}, e.prototype.isAppAndroid = function () {return "object" == typeof uni && !!uni.getSystemInfoSync && "android" === uni.getSystemInfoSync().platform && "object" == typeof plus;}, e.prototype.isWXApplet = function () {return "object" == typeof wx && !!wx.getSystemInfoSync && "undefined" == typeof WebSocket && "undefined" == typeof XMLHttpRequest && "undefined" == typeof plus;}, e.prototype.isAlipayApplet = function () {return !1;}, e.prototype.isBytedanceApplet = function () {return !1;}, e.prototype.isQQApplet = function () {return !1;}, e.prototype.isBaiduApplet = function () {return !1;}, e.instance = new e(), e;}();t.PlatformDetector = i;}, function (e, t, n) {"use strict";t.__esModule = !0, t.GoEasyIM = t.PubSub = t.MessageStatus = void 0;var o = n(10),r = n(7),i = n(9),s = n(108),a = n(0),u = n(133),c = n(11),l = n(134),f = n(135),p = n(136),d = n(137),h = n(139),y = n(141);!function (e) {e["new"] = "new", e.sending = "sending", e.success = "success", e.fail = "fail";}(t.MessageStatus || (t.MessageStatus = {}));var v = function () {function e(e) {this.options = null, this.goEasySocket = null, this.publisher = null, this.subscriber = null, this.presence = null, this.histories = null, this.hereNows = null, this.neverConnect = !0, this.options = e;}return e.prototype.initialGoEasySocket = function (e) {this.goEasySocket = e, this.subscriber.initialGoEasySocket(), this.presence.initialGoEasySocket();}, e.prototype.initialBeforeConnect = function () {this.neverConnect = !1, this.publisher = new p["default"](this), this.subscriber = new d["default"](this), this.histories = new l["default"](this), this.presence = new h["default"](this), this.hereNows = new f["default"](this);}, e.prototype.validateOptions = function () {var e = this.options;if (!e.modules || !e.modules.includes(u.ModuleType.PUBSUB)) throw Error("Invalid options: module '" + u.ModuleType.PUBSUB + "' is not enabled");}, e.prototype.publish = function (e) {this.validateOptions(), this.publisher.publish(e);}, e.prototype.subscribe = function (e) {this.validateOptions(), this.subscriber.subscribe(e);}, e.prototype.unsubscribe = function (e) {this.validateOptions(), this.subscriber.unsubscribe(e);}, e.prototype.subscribePresence = function (e) {this.validateOptions(), this.presence.subscribePresence(e);}, e.prototype.unsubscribePresence = function (e) {this.validateOptions(), this.presence.unsubscribePresence(e);}, e.prototype.history = function (e) {this.validateOptions(), this.histories.get(e);}, e.prototype.hereNow = function (e) {this.validateOptions(), this.hereNows.byChannel(e);}, e.prototype.hereNowByUserIds = function (e) {this.validateOptions(), this.hereNows.byUserId(e);}, e.instance = null, e;}();t.PubSub = v;var b = function () {function e(e) {this.options = e;}return e.prototype.initialBeforeConnect = function (e) {c.im.initialBeforeConnect(e);}, e.prototype.initialAfterConnect = function () {c.im.initialAfterConnect();}, e.prototype.initialGoEasySocket = function (e) {c.im.initialGoEasySocket(e);}, e.prototype.validateOptions = function () {var e = this.options;if (!e.modules || !e.modules.includes(u.ModuleType.IM)) throw Error("Invalid options: module '" + u.ModuleType.IM + "' is not enabled");}, e.prototype.validateMessageToData = function (e) {if (!a.calibrator.isObject(e.to)) throw { code: 400, content: "TypeError: to requires an object." };if (!a.calibrator.isObject(e.to.data)) throw { code: 400, content: "TypeError: to.data requires an object." };}, e.prototype.on = function (e, t) {this.validateOptions(), c.im.on(e, t);}, e.prototype.createTextMessage = function (e) {if (this.validateOptions(), this.validateMessageToData(e), !a.calibrator.isString(e.text)) throw { code: 400, content: "TypeError: text requires string." };return c.im.createTextMessage(e);}, e.prototype.createImageMessage = function (e) {return this.validateOptions(), this.validateMessageToData(e), c.im.createImageMessage(e);}, e.prototype.createFileMessage = function (e) {return this.validateOptions(), this.validateMessageToData(e), c.im.createFileMessage(e);}, e.prototype.createAudioMessage = function (e) {return this.validateOptions(), this.validateMessageToData(e), c.im.createAudioMessage(e);}, e.prototype.createVideoMessage = function (e) {return this.validateOptions(), this.validateMessageToData(e), c.im.createVideoMessage(e);}, e.prototype.createCustomMessage = function (e) {if (this.validateOptions(), this.validateMessageToData(e), !a.calibrator.isObject(e.payload)) throw { code: 400, content: "TypeError: payload requires an object." };return c.im.createCustomMessage(e);}, e.prototype.latestConversations = function (e) {this.validateOptions(), c.im.latestConversations().then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.removePrivateConversation = function (e) {this.validateOptions(), c.im.removePrivateConversation(e.userId).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess();})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.removeGroupConversation = function (e) {this.validateOptions(), c.im.removeGroupConversation(e.groupId).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess();})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.history = function (e) {this.validateOptions();var t = Object.assign(e, { friendId: e.userId });c.im.history(t).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.upload = function (e) {this.validateOptions(), c.im.upload(e.file, e.name, e.onProgress).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.sendMessage = function (e) {this.validateOptions(), c.im.sendMessage(e).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.markGroupMessageAsRead = function (e) {this.validateOptions(), c.im.groupMarkAsRead(e.groupId, e.timestamp).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.markPrivateMessageAsRead = function (e) {this.validateOptions(), c.im.privateMarkAsRead(e.userId, e.timestamp).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.topPrivateConversation = function (e) {this.validateOptions(), c.im.topPrivateConversation(e.userId, e.top).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess();})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.topGroupConversation = function (e) {this.validateOptions(), c.im.topGroupConversation(e.groupId, e.top).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess();})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.subscribeUserPresence = function (e) {this.validateOptions(), c.im.subscribeUserPresence(e.userIds).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.unsubscribeUserPresence = function (e) {this.validateOptions(), c.im.unsubscribeUserPresence(e.userId).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.hereNow = function (e) {this.validateOptions(), c.im.hereNow(e).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.subscribeGroup = function (e) {this.validateOptions(), c.im.subscribeGroup(e).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.unsubscribeGroup = function (e) {this.validateOptions(), c.im.unsubscribeGroup(e.groupId).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.subscribeGroupPresence = function (e) {this.validateOptions(), c.im.subscribeGroupPresence(e.groupIds).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.unsubscribeGroupPresence = function (e) {this.validateOptions(), c.im.unsubscribeGroupPresence(e.groupId).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.groupHereNow = function (e) {this.validateOptions(), c.im.groupHereNow(e.groupId).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.groupOnlineCount = function (e) {this.validateOptions(), c.im.groupOnlineCount(e.groupId).then(function (t) {a.calibrator.isFunction(e.onSuccess) && e.onSuccess(t);})["catch"](function (t) {a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e;}();t.GoEasyIM = b;var m = function () {function e(t) {if (this.im = null, this.pubsub = null, this.goEasySocket = null, this.notification = null, null !== e.instance && e.instance.getConnectionStatus() !== i["default"].DISCONNECTED) return e.instance;this.validateOptions(t), this.options = t, this.pubsub = new v(this.options), this.im = new b(this.options), this.notification = new y.GoEasyNotification(this.options.allowNotification);}return e.getInstance = function (t) {return null === e.instance && (e.instance = new e(t)), e.instance;}, e.prototype.connect = function (e) {this.getConnectionStatus() !== i["default"].DISCONNECTED && a.calibrator.isObject(e) && a.calibrator.isFunction(e.onFailed) ? e.onFailed({ code: 408, content: "It is already connected, don't try again until disconnect() is called. " }) : (this.confirmUserId(e), this.pubsub.initialBeforeConnect(), this.im.initialBeforeConnect({ id: e.id, data: e.data }), this.goEasySocket = new s["default"](this.options, e), this.im.initialGoEasySocket(this.goEasySocket), this.goEasySocket.connect(this.notification), this.pubsub.initialGoEasySocket(this.goEasySocket), this.im.initialAfterConnect());}, e.prototype.disconnect = function (e) {this.goEasySocket.disconnect(e).then(function () {a.calibrator.isObject(e) && a.calibrator.isFunction(e.onSuccess) && e.onSuccess();})["catch"](function (t) {a.calibrator.isObject(e) && a.calibrator.isFunction(e.onFailed) && e.onFailed(t);});}, e.prototype.getConnectionStatus = function () {return this.goEasySocket ? this.goEasySocket.getStatus() : i["default"].DISCONNECTED;}, e.prototype.validateOptions = function (e) {var t = "";if (!a.calibrator.isObject(e)) throw t = "options is require an object.", Error(t);if (!a.calibrator.isPrimitive(e.appkey) || 0 == e.appkey.length) throw t = "Invalid options:'host' is empty.", Error(t);if (!a.calibrator.isPrimitive(e.host) || 0 == e.host.length) throw t = "Invalid options:'host' is empty.", Error(t);if (!a.calibrator.isArray(e.modules)) throw t = "Invalid options: 'modules' must be nonempty array", Error(t);var n = [u.ModuleType.IM, u.ModuleType.PUBSUB],o = e.modules.map(function (e) {var o = e.toUpperCase();if (!n.includes(o)) throw t = "Invalid options: module '" + e + "' is not support", Error(t);return o;});e.modules = o;}, e.prototype.onClickNotification = function (e) {this.notification.onClickNotification(e);}, e.prototype.confirmUserId = function (e) {if (this.options.modules.includes(u.ModuleType.IM) && (a.calibrator.isEmpty(e.id) || !a.calibrator.isStringOrNumber(e.id))) throw { code: 400, content: "TypeError: id requires number or string." };}, e.instance = null, e.version = "2.2.4", e.IM_EVENT = o.ImEventType, e.IM_SCENE = r.ConversationType, e;}();t["default"] = m;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.eventCenter = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(34),i = n(0);var s = new (function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.subs = null, this.subs = Object.create(null);}return o(e, [{ key: "on", value: function value(e, t) {if (!i.calibrator.isString(e)) throw Error("eventType require a string.");if (!i.calibrator.isDef(r.ImEventType[e])) throw Error("event not found.");if (!i.calibrator.isFunction(t)) throw Error("event require a callback.");this.subs[e] = t;} }, { key: "notify", value: function value(e, t) {var n = this.subs[e];n && n(t);} }]), e;}())();t.eventCenter = s;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.ImEventType = { PRIVATE_MESSAGE_RECEIVED: "PRIVATE_MESSAGE_RECEIVED", GROUP_MESSAGE_RECEIVED: "GROUP_MESSAGE_RECEIVED", SYSTEM_MESSAGE_RECEIVED: "SYSTEM_MESSAGE_RECEIVED", CONVERSATIONS_UPDATED: "CONVERSATIONS_UPDATED", CONNECTED: "CONNECTED", CONNECTING: "CONNECTING", DISCONNECTED: "DISCONNECTED", USER_PRESENCE: "USER_PRESENCE", GROUP_PRESENCE: "GROUP_PRESENCE" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {return typeof e;} : function (e) {return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;},r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}();var i = new (function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return r(e, [{ key: "isUndef", value: function value(e) {return e === undefined || null === e;} }, { key: "isTrue", value: function value(e) {return !0 === e;} }, { key: "isFalse", value: function value(e) {return !1 === e;} }, { key: "isPrimitive", value: function value(e) {return "string" == typeof e || "number" == typeof e || "symbol" === (void 0 === e ? "undefined" : o(e)) || "boolean" == typeof e;} }, { key: "isDef", value: function value(e) {return e !== undefined && null !== e;} }, { key: "isObject", value: function value(e) {return null !== e && "object" === (void 0 === e ? "undefined" : o(e));} }, { key: "isPlainObject", value: function value(e) {return "[object Object]" === Object.prototype.toString.call(e);} }, { key: "isRegExp", value: function value(e) {return "[object RegExp]" === Object.prototype.toString.call(e);} }, { key: "isValidArrayIndex", value: function value(e) {var t = parseFloat(String(e));return t >= 0 && Math.floor(t) === t && isFinite(e);} }, { key: "isStringOrNumber", value: function value(e) {return "string" == typeof e || "number" == typeof e;} }, { key: "isString", value: function value(e) {return "string" == typeof e;} }, { key: "isNumber", value: function value(e) {return "number" == typeof e;} }, { key: "isArray", value: function value(e) {return "[object Array]" == Object.prototype.toString.call(e);} }, { key: "isEmpty", value: function value(e) {return this.isArray(e) ? 0 == e.length : this.isObject(e) ? !this.isDef(e) : !this.isNumber(e) && (this.isString(e) ? "" == e.trim() : !this.isDef(e));} }, { key: "isNative", value: function value(e) {return "function" == typeof e && /native code/.test(e.toString());} }, { key: "isFunction", value: function value(e) {return "function" == typeof e;} }]), e;}())();t.calibrator = i;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.GoEasyDomainNumber = undefined;var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(66),s = (o = i) && o.__esModule ? o : { "default": o },a = n(37);var u = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return r(e, null, [{ key: "refreshNumber", value: function value() {var t = e.GOEASY_DOMAIN_NUMBER,n = a.LocalStorageDispatcher.localStorage(),o = Math.floor(Math.random() * (s["default"].maxNumber - 1) + 1);return null !== n && (o = parseInt(n.get(t)) || o), o > 0 && o < s["default"].maxNumber ? o += 1 : o == s["default"].maxNumber && (o = 1), null !== n && n.put(t, o), o;} }]), e;}();u.GOEASY_DOMAIN_NUMBER = "GOEASY_DOMAIN_NUMBER", t.GoEasyDomainNumber = u;}, function (e, t, n) {"use strict";var o = this && this.__values || function (e) {var t = "function" == typeof Symbol && Symbol.iterator,n = t && e[t],o = 0;if (n) return n.call(e);if (e && "number" == typeof e.length) return { next: function next() {return e && o >= e.length && (e = void 0), { value: e && e[o++], done: !e };} };throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");};t.__esModule = !0, t.LocalStorageDispatcher = void 0;var r = n(67),i = function () {function e() {this.domain = null;this.domain = "undefined" != typeof location && /^(?:[A-za-z0-9-]+\.)+[A-za-z]{2,4}(?:[\/\?#][\/=\?%\-&~`@[\]\':+!\.#\w]*)?$/.test(location.host) ? location.host.split(".").slice(-2).join(".") : null;}return e.prototype.get = function (e) {var t = r.Cookie.get(e) || null;return JSON.parse(t);}, e.prototype.put = function (e, t) {var n = new Date(2030, 12, 31, 0, 0, 0, 0),o = this.domain;r.Cookie.set(e, JSON.stringify(t), n, o);}, e.prototype.remove = function (e) {var t = this.domain;r.Cookie.remove(e, t);}, e.prototype.support = function () {return navigator && !0 === navigator.cookieEnabled;}, e;}(),s = function () {function e() {}return e.prototype.get = function (e) {var t = localStorage.getItem(e);return JSON.parse(t);}, e.prototype.put = function (e, t) {var n = localStorage.setItem(e, JSON.stringify(t));JSON.stringify(n);}, e.prototype.remove = function (e) {localStorage.removeItem(e);}, e.prototype.support = function () {return !("undefined" == typeof localStorage || !localStorage.setItem);}, e;}(),a = function () {function e() {}return e.prototype.get = function (e) {var t = uni.getStorageSync(e) || null;return JSON.parse(t);}, e.prototype.put = function (e, t) {uni.setStorageSync(e, JSON.stringify(t));}, e.prototype.remove = function (e) {uni.removeStorageSync(e);}, e.prototype.support = function () {return !("object" != typeof uni || !uni.getStorageSync);}, e;}(),u = function () {function e() {}return e.prototype.get = function (e) {var t = wx.getStorageSync(e) || null;return JSON.parse(t);}, e.prototype.put = function (e, t) {wx.setStorageSync(e, JSON.stringify(t));}, e.prototype.remove = function (e) {wx.removeStorageSync(e);}, e.prototype.support = function () {return !("object" != typeof wx || !wx.getStorageSync);}, e;}(),c = (function () {function e() {}e.prototype.get = function (e) {var t = my.getStorageSync(e) || null;return JSON.parse(t);}, e.prototype.put = function (e, t) {my.setStorageSync(e, JSON.stringify(t));}, e.prototype.remove = function (e) {my.removeStorageSync(e);}, e.prototype.support = function () {return !("undefined" == typeof my || !my.getStorageSync);};}(), function () {function e() {}e.prototype.get = function (e) {var t = qq.getStorageSync(e) || null;return JSON.parse(t);}, e.prototype.put = function (e, t) {qq.setStorageSync(e, JSON.stringify(t));}, e.prototype.remove = function (e) {qq.removeStorageSync(e);}, e.prototype.support = function () {return !("undefined" == typeof qq || !qq.getStorageSync);};}(), function () {function e() {}e.prototype.get = function (e) {var t = tt.getStorageSync(e) || null;return JSON.parse(t);}, e.prototype.put = function (e, t) {tt.setStorageSync(e, JSON.stringify(t));}, e.prototype.remove = function (e) {tt.removeStorageSync(e);}, e.prototype.support = function () {return !("object" != typeof tt || !tt.getStorageSync);};}(), function () {function e() {}e.prototype.get = function (e) {var t = swan.getStorageSync(e) || null;return JSON.parse(t);}, e.prototype.put = function (e, t) {swan.setStorageSync(e, JSON.stringify(t));}, e.prototype.remove = function (e) {swan.removeStorageSync(e);}, e.prototype.support = function () {return !("undefined" == typeof swan || !swan.getStorageSync);};}(), function () {function e() {this.api = e.dispatch(), this.api;}e.dispatch = function () {var e = new s(),t = new i();return e.support() ? e : t;}, e.prototype.get = function (e) {return this.api.get(e);}, e.prototype.put = function (e, t) {this.api.put(e, t);}, e.prototype.remove = function (e) {this.api.remove(e);}, e.prototype.support = function () {return "undefined" != typeof localStorage;};}(), function () {function e() {this.supportedStorage = null;var t = e.storages;t.push(new a()), t.push(new s()), t.push(new u()), t.push(new i()), this.dispatch(), this.supportedStorage;}return e.localStorage = function () {return this.instance.supportedStorage;}, e.prototype.dispatch = function () {var t, n;try {for (var r = o(e.storages), i = r.next(); !i.done; i = r.next()) {var s = i.value;if (s.support()) {this.supportedStorage = s;break;}}} catch (a) {t = { error: a };} finally {try {i && !i.done && (n = r["return"]) && n.call(r);} finally {if (t) throw t.error;}}}, e.storages = new Array(), e.instance = new e(), e;}());t.LocalStorageDispatcher = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.Conversion = undefined;var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(23),s = n(11),a = n(16),u = (o = a) && o.__esModule ? o : { "default": o };t.Conversion = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.type = "", this.lastMessage = null, this.unread = 0, this.top = !1, this.data = null, this.lc = 0, this.lm = 0;}return r(e, null, [{ key: "buildByInMessage", value: function value(t) {var n = new e();return n.data = {}, n.type = t.t, n.lastMessage = u["default"].assemble(t), n.lc = n.lastMessage.timestamp - 1, n.lm = n.lastMessage.timestamp, n.unread = 0, t.t == i.ConversationType.GROUP ? n.groupId = t.r : s.IM.userId == t.r ? n.userId = t.s : n.userId = t.r, n;} }, { key: "buildByOutMessage", value: function value(t, n, o, r) {var s = new e();return s.type = n, s.lastMessage = t, s.lm = s.lastMessage.timestamp, s.lc = s.lm, s.unread = 0, n == i.ConversationType.GROUP ? (s.groupId = o, s.lastMessage.groupId = o) : (s.userId = o, s.lastMessage.receiverId = o), s;} }, { key: "buildByConversation", value: function value(t, n) {var o = new e();o.type = n.t, n.lmsg.t = n.t, o.lastMessage = u["default"].assemble(n.lmsg), o.unread = 0, o.lc = n.lcts, o.lm = o.lastMessage.timestamp, o.top = n.top || !1;var r = n.d ? JSON.parse(n.d) : {};return o.data = r, n.t == i.ConversationType.GROUP ? (o.groupId = n.g, t.putGroupData(o.groupId, r)) : (o.userId = n.uid, t.putUserData(o.userId, r), s.IM.userId == n.lmsg.s ? o.lastMessage.senderData = s.IM.userData : o.lastMessage.senderData = r), o;} }]), e;}();}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = a(n(14)),i = a(n(2)),s = n(0);function a(e) {return e && e.__esModule ? e : { "default": e };}var u = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, r["default"]), o(t, [{ key: "validate", value: function value(e) {if (s.calibrator.isEmpty(e.text) || "" == e.text.trim()) throw Error("text is empty");} }, { key: "setType", value: function value(e) {this.type = i["default"].text;} }, { key: "setPayload", value: function value(e) {(function n(e, t, o) {null === e && (e = Function.prototype);var r = Object.getOwnPropertyDescriptor(e, t);if (r === undefined) {var i = Object.getPrototypeOf(e);return null === i ? undefined : n(i, t, o);}if ("value" in r) return r.value;var s = r.get;return s === undefined ? undefined : s.call(o);})(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e), this.payload.text = e.text;} }]), t;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}();var r = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return o(e, [{ key: "build", value: function value() {throw Error("Not implementation yet.");} }]), e;}();t["default"] = r;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = u(n(42)),i = u(n(2)),s = u(n(43)),a = u(n(40));function u(e) {return e && e.__esModule ? e : { "default": e };}var c = function (e) {function t(e) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t);var n = function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));return n.im = null, n.goEasyUploader = new s["default"](e), n;}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, a["default"]), o(t, [{ key: "build", value: function value(e) {var t = this;return new Promise(function (n, o) {var i = new r["default"]();t.upload(e).then(function (t) {var o = t.content,r = o === undefined ? {} : o;(i = e.payload).url = r.url, i.name = r.newFileName, n(i);})["catch"](function (e) {o(e);});});} }, { key: "upload", value: function value(e) {var t = e.type == i["default"].video ? e.payload.video.name : e.payload.name;return this.goEasyUploader.upload(e.file, t, e.onProgress, e.type);} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t["default"] = function o(e) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, o);};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(86),s = n(90),a = (o = s) && o.__esModule ? o : { "default": o };var u = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.requestBuilder = null, this.fileUploader = i.fileUploader, this.requestBuilder = new a["default"](t);}return r(e, [{ key: "upload", value: function value(e, t, n, o) {var r = this;return new Promise(function (i, s) {r.requestBuilder.build(e, t, o).then(function (e) {i(r.doUpload(e, n));})["catch"](function (e) {s(e);});});} }, { key: "customizeUpload", value: function value(e, t) {this.doUpload(e, t);} }, { key: "doUpload", value: function value(e, t) {return this.fileUploader.upload(e, t);} }]), e;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t["default"] = function o(e, t, n, r, i) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, o), this.host = "", this.headers = {}, this.parameters = {}, this.file = {}, this.payload = {}, this.host = e, this.headers = t, this.parameters = n, this.file = r, this.payload = i;};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}();var r = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return o(e, [{ key: "build", value: function value(e, t) {} }, { key: "newFileName", value: function value(e) {return e && e.newFilename || "";} }]), e;}();t["default"] = r;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.IM_INTERNAL_EVENTS = { IM_INTERNAL: "IM_INTERNAL_", MESSAGE_RECEIVED: "IM_INTERNAL_MESSAGE_RECEIVED" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = c(n(9)),i = c(n(1)),s = c(n(109)),a = c(n(110)),u = n(0);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.io = a["default"], this.status = r["default"].DISCONNECTED, this.permissions = [i["default"].NONE], this.emitter = null, this.connectedObservers = [], this.disconnectedObservers = [], this.emitter = new s["default"](this);}return o(e, [{ key: "connect", value: function value() {this.status = r["default"].CONNECTING;} }, { key: "emit", value: function value(e) {this.emitter.emit(e);} }, { key: "doEmit", value: function value(e, t, n) {} }, { key: "on", value: function value(e, t) {this.io.on(e, t);} }, { key: "disconnect", value: function value() {this.io.disconnect();} }, { key: "getStatus", value: function value() {return this.status;} }, { key: "addConnectedObserver", value: function value(e) {u.calibrator.isFunction(e) && this.connectedObservers.push(e);} }, { key: "addDisconnectedObserver", value: function value(e) {u.calibrator.isFunction(e) && this.disconnectedObservers.push(e);} }, { key: "notify", value: function value(e, t) {for (var n = 0; n < e.length; n++) {e[n](t);}} }]), e;}();t["default"] = l;}, function (e, t) {var n = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o = ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"];e.exports = function (e) {var t = e,r = e.indexOf("["),i = e.indexOf("]");-1 != r && -1 != i && (e = e.substring(0, r) + e.substring(r, i).replace(/:/g, ";") + e.substring(i, e.length));for (var s = n.exec(e || ""), a = {}, u = 14; u--;) {a[o[u]] = s[u] || "";}return -1 != r && -1 != i && (a.source = t, a.host = a.host.substring(1, a.host.length - 1).replace(/;/g, ":"), a.authority = a.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), a.ipv6uri = !0), a;};}, function (e, t) {var n = {}.toString;e.exports = Array.isArray || function (e) {return "[object Array]" == n.call(e);};}, function (e, t, n) {"use strict";var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {return typeof e;} : function (e) {return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;},r = n(112),i = n(56),s = n(12),a = n(28),u = n(57),c = n(58),l = (n(8)("socket.io-client:manager"), n(55)),f = n(128),p = n(36).GoEasyDomainNumber,d = Object.prototype.hasOwnProperty;function h(e, t) {if (!(this instanceof h)) return new h(e, t);e && "object" === (void 0 === e ? "undefined" : o(e)) && (t = e, e = undefined), (t = t || {}).path = t.path || "/socket.io", this.nsps = {}, this.subs = [], this.opts = t, this.reconnection(!1 !== t.reconnection), this.reconnectionAttempts(t.reconnectionAttempts || Infinity), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor(t.randomizationFactor || .5), this.backoff = new f({ min: this.reconnectionDelay(), max: this.reconnectionDelayMax(), jitter: this.randomizationFactor() }), this.timeout(null == t.timeout ? 2e4 : t.timeout), this.readyState = "closed", this.uri = e, this.connecting = [], this.lastPing = null, this.encoding = !1, this.packetBuffer = [];var n = t.parser || a;this.encoder = new n.Encoder(), this.decoder = new n.Decoder(), this.autoConnect = !1 !== t.autoConnect, this.autoConnect && this.open();}function y() {var e = !1;return "object" === ("undefined" == typeof uni ? "undefined" : o(uni)) && uni.getSystemInfo && (e = !0), e && !0 === getApp().uniAppRunningBackend;}e.exports = h, h.prototype.emitAll = function () {for (var e in this.emit.apply(this, arguments), this.nsps) {d.call(this.nsps, e) && this.nsps[e].emit.apply(this.nsps[e], arguments);}}, h.prototype.updateSocketIds = function () {for (var e in this.nsps) {d.call(this.nsps, e) && (this.nsps[e].id = this.generateId(e));}}, h.prototype.generateId = function (e) {return ("/" === e ? "" : e + "#") + this.engine.id;}, s(h.prototype), h.prototype.reconnection = function (e) {return arguments.length ? (this._reconnection = !!e, this) : this._reconnection;}, h.prototype.reconnectionAttempts = function (e) {return arguments.length ? (this._reconnectionAttempts = e, this) : this._reconnectionAttempts;}, h.prototype.reconnectionDelay = function (e) {return arguments.length ? (this._reconnectionDelay = e, this.backoff && this.backoff.setMin(e), this) : this._reconnectionDelay;}, h.prototype.randomizationFactor = function (e) {return arguments.length ? (this._randomizationFactor = e, this.backoff && this.backoff.setJitter(e), this) : this._randomizationFactor;}, h.prototype.reconnectionDelayMax = function (e) {return arguments.length ? (this._reconnectionDelayMax = e, this.backoff && this.backoff.setMax(e), this) : this._reconnectionDelayMax;}, h.prototype.timeout = function (e) {return arguments.length ? (this._timeout = e, this) : this._timeout;}, h.prototype.maybeReconnectOnOpen = function () {!this.reconnecting && this._reconnection && 0 === this.backoff.attempts && this.reconnect();}, h.prototype.open = h.prototype.connect = function (e, t) {if (this.readyState, ~this.readyState.indexOf("open")) return this;this.uri, this.engine = r(this.uri, this.opts);var n = this.engine,o = this;this.readyState = "opening", this.skipReconnect = !1;var i = u(n, "open", function () {o.onopen(), e && e();}),s = u(n, "error", function (t) {if ("undefined" != typeof window) {var n = parseInt(o.uri.match(/[1-9][0-9]*/g)[0]),r = p.refreshNumber();o.uri = o.uri.replace(n, r);}if (o.cleanup(), o.readyState = "closed", o.emitAll("connect_error", t), e) {var i = new Error("Connection error");i.data = t, e(i);} else o.maybeReconnectOnOpen();});if (!1 !== this._timeout) {var a = this._timeout,c = setTimeout(function () {i.destroy(), n.close(), n.emit("error", "timeout"), o.emitAll("connect_timeout", a);}, a);this.subs.push({ destroy: function destroy() {clearTimeout(c);} });}return this.subs.push(i), this.subs.push(s), this;}, h.prototype.onopen = function () {this.cleanup(), this.readyState = "open", this.emit("open");var e = this.engine;this.subs.push(u(e, "data", c(this, "ondata"))), this.subs.push(u(e, "ping", c(this, "onping"))), this.subs.push(u(e, "pong", c(this, "onpong"))), this.subs.push(u(e, "error", c(this, "onerror"))), this.subs.push(u(e, "close", c(this, "onclose"))), this.subs.push(u(this.decoder, "decoded", c(this, "ondecoded")));}, h.prototype.onping = function () {this.lastPing = new Date(), this.emitAll("ping");}, h.prototype.onpong = function () {this.emitAll("pong", new Date() - this.lastPing);}, h.prototype.ondata = function (e) {this.decoder.add(e);}, h.prototype.ondecoded = function (e) {this.emit("packet", e);}, h.prototype.onerror = function (e) {this.emitAll("error", e);}, h.prototype.socket = function (e, t) {var n = this.nsps[e];if (!n) {n = new i(this, e, t), this.nsps[e] = n;var o = this;n.on("connecting", r), n.on("connect", function () {n.id = o.generateId(e);}), this.autoConnect && r();}function r() {~l(o.connecting, n) || o.connecting.push(n);}return n;}, h.prototype.destroy = function (e) {var t = l(this.connecting, e);~t && this.connecting.splice(t, 1), this.connecting.length || this.close();}, h.prototype.packet = function (e) {var t = this;e.query && 0 === e.type && (e.nsp += "?" + e.query), t.encoding ? t.packetBuffer.push(e) : (t.encoding = !0, this.encoder.encode(e, function (n) {for (var o = 0; o < n.length; o++) {t.engine.write(n[o], e.options);}t.encoding = !1, t.processPacketQueue();}));}, h.prototype.processPacketQueue = function () {if (this.packetBuffer.length > 0 && !this.encoding) {var e = this.packetBuffer.shift();this.packet(e);}}, h.prototype.cleanup = function () {for (var e = this.subs.length, t = 0; t < e; t++) {this.subs.shift().destroy();}this.packetBuffer = [], this.encoding = !1, this.lastPing = null, this.decoder.destroy();}, h.prototype.close = h.prototype.disconnect = function () {this.skipReconnect = !0, this.reconnecting = !1, "opening" === this.readyState && this.cleanup(), this.backoff.reset(), this.readyState = "closed", this.engine && this.engine.close();}, h.prototype.onclose = function (e) {this.cleanup(), this.backoff.reset(), this.readyState = "closed", this.emit("close", e), this._reconnection && !this.skipReconnect && this.reconnect();}, h.prototype.reconnect = function () {if (y(), this.reconnecting || this.skipReconnect) return this;var e = this;if (this.backoff.attempts >= this._reconnectionAttempts) this.backoff.reset(), this.emitAll("reconnect_failed"), this.reconnecting = !1;else {var t = this.backoff.duration();this.reconnecting = !0;var n = setTimeout(function () {e.skipReconnect || (e.emitAll("reconnect_attempt", e.backoff.attempts), e.emitAll("reconnecting", e.backoff.attempts), e.skipReconnect || (y() ? (e.reconnecting = !1, e.reconnect(), e.emitAll("reconnect_error", "Uniapp running backend, skipped reconnect...")) : e.open(function (t) {t ? (e.reconnecting = !1, e.reconnect(), e.emitAll("reconnect_error", t.data)) : e.onreconnect();})));}, t);this.subs.push({ destroy: function destroy() {clearTimeout(n);} });}}, h.prototype.onreconnect = function () {var e = this.backoff.attempts;this.reconnecting = !1, this.backoff.reset(), this.updateSocketIds(), this.emitAll("reconnect", e);};}, function (e, t, n) {"use strict";var o = n(114),r = n(125);t.polling = function (e) {var t = !1,n = !1;e.jsonp;if ("undefined" != typeof location) {var r = "https:" === location.protocol,i = location.port;i || (i = r ? 443 : 80), t = e.hostname !== location.hostname || i !== e.port, n = e.secure !== r;}return e.xdomain = t, e.xscheme = n, new o(e);}, t.websocket = r;}, function (e, t, n) {(function (t) {var o = n(49),r = Object.prototype.toString,i = "function" == typeof Blob || "undefined" != typeof Blob && "[object BlobConstructor]" === r.call(Blob),s = "function" == typeof File || "undefined" != typeof File && "[object FileConstructor]" === r.call(File);e.exports = function a(e) {if (!e || "object" != typeof e) return !1;if (o(e)) {for (var n = 0, r = e.length; n < r; n++) {if (a(e[n])) return !0;}return !1;}if ("function" == typeof t && t.isBuffer && t.isBuffer(e) || "function" == typeof ArrayBuffer && e instanceof ArrayBuffer || i && e instanceof Blob || s && e instanceof File) return !0;if (e.toJSON && "function" == typeof e.toJSON && 1 === arguments.length) return a(e.toJSON(), !0);for (var u in e) {if (Object.prototype.hasOwnProperty.call(e, u) && a(e[u])) return !0;}return !1;};}).call(this, n(53).Buffer);}, function (e, t, n) {"use strict";(function (e) {
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var o = n(117),r = n(118),i = n(119);function s() {return u.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;}function a(e, t) {if (s() < t) throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = u.prototype : (null === e && (e = new u(t)), e.length = t), e;}function u(e, t, n) {if (!(u.TYPED_ARRAY_SUPPORT || this instanceof u)) return new u(e, t, n);if ("number" == typeof e) {if ("string" == typeof t) throw new Error("If encoding is specified then the first argument must be a string");return f(this, e);}return c(this, e, t, n);}function c(e, t, n, o) {if ("number" == typeof t) throw new TypeError('"value" argument must not be a number');return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? function (e, t, n, o) {if (t.byteLength, n < 0 || t.byteLength < n) throw new RangeError("'offset' is out of bounds");if (t.byteLength < n + (o || 0)) throw new RangeError("'length' is out of bounds");t = n === undefined && o === undefined ? new Uint8Array(t) : o === undefined ? new Uint8Array(t, n) : new Uint8Array(t, n, o);u.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = u.prototype : e = p(e, t);return e;}(e, t, n, o) : "string" == typeof t ? function (e, t, n) {"string" == typeof n && "" !== n || (n = "utf8");if (!u.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');var o = 0 | h(t, n),r = (e = a(e, o)).write(t, n);r !== o && (e = e.slice(0, r));return e;}(e, t, n) : function (e, t) {if (u.isBuffer(t)) {var n = 0 | d(t.length);return 0 === (e = a(e, n)).length ? e : (t.copy(e, 0, 0, n), e);}if (t) {if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length" in t) return "number" != typeof t.length || (o = t.length) != o ? a(e, 0) : p(e, t);if ("Buffer" === t.type && i(t.data)) return p(e, t.data);}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}(e, t);}function l(e) {if ("number" != typeof e) throw new TypeError('"size" argument must be a number');if (e < 0) throw new RangeError('"size" argument must not be negative');}function f(e, t) {if (l(t), e = a(e, t < 0 ? 0 : 0 | d(t)), !u.TYPED_ARRAY_SUPPORT) for (var n = 0; n < t; ++n) {e[n] = 0;}return e;}function p(e, t) {var n = t.length < 0 ? 0 : 0 | d(t.length);e = a(e, n);for (var o = 0; o < n; o += 1) {e[o] = 255 & t[o];}return e;}function d(e) {if (e >= s()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s().toString(16) + " bytes");return 0 | e;}function h(e, t) {if (u.isBuffer(e)) return e.length;if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)) return e.byteLength;"string" != typeof e && (e = "" + e);var n = e.length;if (0 === n) return 0;for (var o = !1;;) {switch (t) {case "ascii":case "latin1":case "binary":return n;case "utf8":case "utf-8":case undefined:return q(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2 * n;case "hex":return n >>> 1;case "base64":return L(e).length;default:if (o) return q(e).length;t = ("" + t).toLowerCase(), o = !0;}}}function y(e, t, n) {var o = e[t];e[t] = e[n], e[n] = o;}function v(e, t, n, o, r) {if (0 === e.length) return -1;if ("string" == typeof n ? (o = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = r ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {if (r) return -1;n = e.length - 1;} else if (n < 0) {if (!r) return -1;n = 0;}if ("string" == typeof t && (t = u.from(t, o)), u.isBuffer(t)) return 0 === t.length ? -1 : b(e, t, n, o, r);if ("number" == typeof t) return t &= 255, u.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? r ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : b(e, [t], n, o, r);throw new TypeError("val must be string, number or Buffer");}function b(e, t, n, o, r) {var i,s = 1,a = e.length,u = t.length;if (o !== undefined && ("ucs2" === (o = String(o).toLowerCase()) || "ucs-2" === o || "utf16le" === o || "utf-16le" === o)) {if (e.length < 2 || t.length < 2) return -1;s = 2, a /= 2, u /= 2, n /= 2;}function c(e, t) {return 1 === s ? e[t] : e.readUInt16BE(t * s);}if (r) {var l = -1;for (i = n; i < a; i++) {if (c(e, i) === c(t, -1 === l ? 0 : i - l)) {if (-1 === l && (l = i), i - l + 1 === u) return l * s;} else -1 !== l && (i -= i - l), l = -1;}} else for (n + u > a && (n = a - u), i = n; i >= 0; i--) {for (var f = !0, p = 0; p < u; p++) {if (c(e, i + p) !== c(t, p)) {f = !1;break;}}if (f) return i;}return -1;}function m(e, t, n, o) {n = Number(n) || 0;var r = e.length - n;o ? (o = Number(o)) > r && (o = r) : o = r;var i = t.length;if (i % 2 != 0) throw new TypeError("Invalid hex string");o > i / 2 && (o = i / 2);for (var s = 0; s < o; ++s) {var a = parseInt(t.substr(2 * s, 2), 16);if (isNaN(a)) return s;e[n + s] = a;}return s;}function g(e, t, n, o) {return G(q(t, e.length - n), e, n, o);}function w(e, t, n, o) {return G(function (e) {for (var t = [], n = 0; n < e.length; ++n) {t.push(255 & e.charCodeAt(n));}return t;}(t), e, n, o);}function _(e, t, n, o) {return w(e, t, n, o);}function E(e, t, n, o) {return G(L(t), e, n, o);}function O(e, t, n, o) {return G(function (e, t) {for (var n, o, r, i = [], s = 0; s < e.length && !((t -= 2) < 0); ++s) {n = e.charCodeAt(s), o = n >> 8, r = n % 256, i.push(r), i.push(o);}return i;}(t, e.length - n), e, n, o);}function k(e, t, n) {return 0 === t && n === e.length ? o.fromByteArray(e) : o.fromByteArray(e.slice(t, n));}function S(e, t, n) {n = Math.min(e.length, n);for (var o = [], r = t; r < n;) {var i,s,a,u,c = e[r],l = null,f = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;if (r + f <= n) switch (f) {case 1:c < 128 && (l = c);break;case 2:128 == (192 & (i = e[r + 1])) && (u = (31 & c) << 6 | 63 & i) > 127 && (l = u);break;case 3:i = e[r + 1], s = e[r + 2], 128 == (192 & i) && 128 == (192 & s) && (u = (15 & c) << 12 | (63 & i) << 6 | 63 & s) > 2047 && (u < 55296 || u > 57343) && (l = u);break;case 4:i = e[r + 1], s = e[r + 2], a = e[r + 3], 128 == (192 & i) && 128 == (192 & s) && 128 == (192 & a) && (u = (15 & c) << 18 | (63 & i) << 12 | (63 & s) << 6 | 63 & a) > 65535 && u < 1114112 && (l = u);}null === l ? (l = 65533, f = 1) : l > 65535 && (l -= 65536, o.push(l >>> 10 & 1023 | 55296), l = 56320 | 1023 & l), o.push(l), r += f;}return function (e) {var t = e.length;if (t <= P) return String.fromCharCode.apply(String, e);var n = "",o = 0;for (; o < t;) {n += String.fromCharCode.apply(String, e.slice(o, o += P));}return n;}(o);}t.Buffer = u, t.SlowBuffer = function (e) {+e != e && (e = 0);return u.alloc(+e);}, t.INSPECT_MAX_BYTES = 50, u.TYPED_ARRAY_SUPPORT = e.TYPED_ARRAY_SUPPORT !== undefined ? e.TYPED_ARRAY_SUPPORT : function () {try {var e = new Uint8Array(1);return e.__proto__ = { __proto__: Uint8Array.prototype, foo: function foo() {return 42;} }, 42 === e.foo() && "function" == typeof e.subarray && 0 === e.subarray(1, 1).byteLength;} catch (t) {return !1;}}(), t.kMaxLength = s(), u.poolSize = 8192, u._augment = function (e) {return e.__proto__ = u.prototype, e;}, u.from = function (e, t, n) {return c(null, e, t, n);}, u.TYPED_ARRAY_SUPPORT && (u.prototype.__proto__ = Uint8Array.prototype, u.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && u[Symbol.species] === u && Object.defineProperty(u, Symbol.species, { value: null, configurable: !0 })), u.alloc = function (e, t, n) {return function (e, t, n, o) {return l(t), t <= 0 ? a(e, t) : n !== undefined ? "string" == typeof o ? a(e, t).fill(n, o) : a(e, t).fill(n) : a(e, t);}(null, e, t, n);}, u.allocUnsafe = function (e) {return f(null, e);}, u.allocUnsafeSlow = function (e) {return f(null, e);}, u.isBuffer = function (e) {return !(null == e || !e._isBuffer);}, u.compare = function (e, t) {if (!u.isBuffer(e) || !u.isBuffer(t)) throw new TypeError("Arguments must be Buffers");if (e === t) return 0;for (var n = e.length, o = t.length, r = 0, i = Math.min(n, o); r < i; ++r) {if (e[r] !== t[r]) {n = e[r], o = t[r];break;}}return n < o ? -1 : o < n ? 1 : 0;}, u.isEncoding = function (e) {switch (String(e).toLowerCase()) {case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return !0;default:return !1;}}, u.concat = function (e, t) {if (!i(e)) throw new TypeError('"list" argument must be an Array of Buffers');if (0 === e.length) return u.alloc(0);var n;if (t === undefined) for (t = 0, n = 0; n < e.length; ++n) {t += e[n].length;}var o = u.allocUnsafe(t),r = 0;for (n = 0; n < e.length; ++n) {var s = e[n];if (!u.isBuffer(s)) throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o, r), r += s.length;}return o;}, u.byteLength = h, u.prototype._isBuffer = !0, u.prototype.swap16 = function () {var e = this.length;if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");for (var t = 0; t < e; t += 2) {y(this, t, t + 1);}return this;}, u.prototype.swap32 = function () {var e = this.length;if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");for (var t = 0; t < e; t += 4) {y(this, t, t + 3), y(this, t + 1, t + 2);}return this;}, u.prototype.swap64 = function () {var e = this.length;if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");for (var t = 0; t < e; t += 8) {y(this, t, t + 7), y(this, t + 1, t + 6), y(this, t + 2, t + 5), y(this, t + 3, t + 4);}return this;}, u.prototype.toString = function () {var e = 0 | this.length;return 0 === e ? "" : 0 === arguments.length ? S(this, 0, e) : function (e, t, n) {var o = !1;if ((t === undefined || t < 0) && (t = 0), t > this.length) return "";if ((n === undefined || n > this.length) && (n = this.length), n <= 0) return "";if ((n >>>= 0) <= (t >>>= 0)) return "";for (e || (e = "utf8");;) {switch (e) {case "hex":return I(this, t, n);case "utf8":case "utf-8":return S(this, t, n);case "ascii":return T(this, t, n);case "latin1":case "binary":return C(this, t, n);case "base64":return k(this, t, n);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return N(this, t, n);default:if (o) throw new TypeError("Unknown encoding: " + e);e = (e + "").toLowerCase(), o = !0;}}}.apply(this, arguments);}, u.prototype.equals = function (e) {if (!u.isBuffer(e)) throw new TypeError("Argument must be a Buffer");return this === e || 0 === u.compare(this, e);}, u.prototype.inspect = function () {var e = "",n = t.INSPECT_MAX_BYTES;return this.length > 0 && (e = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (e += " ... ")), "<Buffer " + e + ">";}, u.prototype.compare = function (e, t, n, o, r) {if (!u.isBuffer(e)) throw new TypeError("Argument must be a Buffer");if (t === undefined && (t = 0), n === undefined && (n = e ? e.length : 0), o === undefined && (o = 0), r === undefined && (r = this.length), t < 0 || n > e.length || o < 0 || r > this.length) throw new RangeError("out of range index");if (o >= r && t >= n) return 0;if (o >= r) return -1;if (t >= n) return 1;if (t >>>= 0, n >>>= 0, o >>>= 0, r >>>= 0, this === e) return 0;for (var i = r - o, s = n - t, a = Math.min(i, s), c = this.slice(o, r), l = e.slice(t, n), f = 0; f < a; ++f) {if (c[f] !== l[f]) {i = c[f], s = l[f];break;}}return i < s ? -1 : s < i ? 1 : 0;}, u.prototype.includes = function (e, t, n) {return -1 !== this.indexOf(e, t, n);}, u.prototype.indexOf = function (e, t, n) {return v(this, e, t, n, !0);}, u.prototype.lastIndexOf = function (e, t, n) {return v(this, e, t, n, !1);}, u.prototype.write = function (e, t, n, o) {if (t === undefined) o = "utf8", n = this.length, t = 0;else if (n === undefined && "string" == typeof t) o = t, n = this.length, t = 0;else {if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t |= 0, isFinite(n) ? (n |= 0, o === undefined && (o = "utf8")) : (o = n, n = undefined);}var r = this.length - t;if ((n === undefined || n > r) && (n = r), e.length > 0 && (n < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");o || (o = "utf8");for (var i = !1;;) {switch (o) {case "hex":return m(this, e, t, n);case "utf8":case "utf-8":return g(this, e, t, n);case "ascii":return w(this, e, t, n);case "latin1":case "binary":return _(this, e, t, n);case "base64":return E(this, e, t, n);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return O(this, e, t, n);default:if (i) throw new TypeError("Unknown encoding: " + o);o = ("" + o).toLowerCase(), i = !0;}}}, u.prototype.toJSON = function () {return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };};var P = 4096;function T(e, t, n) {var o = "";n = Math.min(e.length, n);for (var r = t; r < n; ++r) {o += String.fromCharCode(127 & e[r]);}return o;}function C(e, t, n) {var o = "";n = Math.min(e.length, n);for (var r = t; r < n; ++r) {o += String.fromCharCode(e[r]);}return o;}function I(e, t, n) {var o = e.length;(!t || t < 0) && (t = 0), (!n || n < 0 || n > o) && (n = o);for (var r = "", i = t; i < n; ++i) {r += B(e[i]);}return r;}function N(e, t, n) {for (var o = e.slice(t, n), r = "", i = 0; i < o.length; i += 2) {r += String.fromCharCode(o[i] + 256 * o[i + 1]);}return r;}function j(e, t, n) {if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");if (e + t > n) throw new RangeError("Trying to access beyond buffer length");}function M(e, t, n, o, r, i) {if (!u.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');if (t > r || t < i) throw new RangeError('"value" argument is out of bounds');if (n + o > e.length) throw new RangeError("Index out of range");}function R(e, t, n, o) {t < 0 && (t = 65535 + t + 1);for (var r = 0, i = Math.min(e.length - n, 2); r < i; ++r) {e[n + r] = (t & 255 << 8 * (o ? r : 1 - r)) >>> 8 * (o ? r : 1 - r);}}function A(e, t, n, o) {t < 0 && (t = 4294967295 + t + 1);for (var r = 0, i = Math.min(e.length - n, 4); r < i; ++r) {e[n + r] = t >>> 8 * (o ? r : 3 - r) & 255;}}function D(e, t, n, o, r, i) {if (n + o > e.length) throw new RangeError("Index out of range");if (n < 0) throw new RangeError("Index out of range");}function F(e, t, n, o, i) {return i || D(e, 0, n, 4), r.write(e, t, n, o, 23, 4), n + 4;}function U(e, t, n, o, i) {return i || D(e, 0, n, 8), r.write(e, t, n, o, 52, 8), n + 8;}u.prototype.slice = function (e, t) {var n,o = this.length;if (e = ~~e, t = t === undefined ? o : ~~t, e < 0 ? (e += o) < 0 && (e = 0) : e > o && (e = o), t < 0 ? (t += o) < 0 && (t = 0) : t > o && (t = o), t < e && (t = e), u.TYPED_ARRAY_SUPPORT) (n = this.subarray(e, t)).__proto__ = u.prototype;else {var r = t - e;n = new u(r, undefined);for (var i = 0; i < r; ++i) {n[i] = this[i + e];}}return n;}, u.prototype.readUIntLE = function (e, t, n) {e |= 0, t |= 0, n || j(e, t, this.length);for (var o = this[e], r = 1, i = 0; ++i < t && (r *= 256);) {o += this[e + i] * r;}return o;}, u.prototype.readUIntBE = function (e, t, n) {e |= 0, t |= 0, n || j(e, t, this.length);for (var o = this[e + --t], r = 1; t > 0 && (r *= 256);) {o += this[e + --t] * r;}return o;}, u.prototype.readUInt8 = function (e, t) {return t || j(e, 1, this.length), this[e];}, u.prototype.readUInt16LE = function (e, t) {return t || j(e, 2, this.length), this[e] | this[e + 1] << 8;}, u.prototype.readUInt16BE = function (e, t) {return t || j(e, 2, this.length), this[e] << 8 | this[e + 1];}, u.prototype.readUInt32LE = function (e, t) {return t || j(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3];}, u.prototype.readUInt32BE = function (e, t) {return t || j(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);}, u.prototype.readIntLE = function (e, t, n) {e |= 0, t |= 0, n || j(e, t, this.length);for (var o = this[e], r = 1, i = 0; ++i < t && (r *= 256);) {o += this[e + i] * r;}return o >= (r *= 128) && (o -= Math.pow(2, 8 * t)), o;}, u.prototype.readIntBE = function (e, t, n) {e |= 0, t |= 0, n || j(e, t, this.length);for (var o = t, r = 1, i = this[e + --o]; o > 0 && (r *= 256);) {i += this[e + --o] * r;}return i >= (r *= 128) && (i -= Math.pow(2, 8 * t)), i;}, u.prototype.readInt8 = function (e, t) {return t || j(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e];}, u.prototype.readInt16LE = function (e, t) {t || j(e, 2, this.length);var n = this[e] | this[e + 1] << 8;return 32768 & n ? 4294901760 | n : n;}, u.prototype.readInt16BE = function (e, t) {t || j(e, 2, this.length);var n = this[e + 1] | this[e] << 8;return 32768 & n ? 4294901760 | n : n;}, u.prototype.readInt32LE = function (e, t) {return t || j(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;}, u.prototype.readInt32BE = function (e, t) {return t || j(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];}, u.prototype.readFloatLE = function (e, t) {return t || j(e, 4, this.length), r.read(this, e, !0, 23, 4);}, u.prototype.readFloatBE = function (e, t) {return t || j(e, 4, this.length), r.read(this, e, !1, 23, 4);}, u.prototype.readDoubleLE = function (e, t) {return t || j(e, 8, this.length), r.read(this, e, !0, 52, 8);}, u.prototype.readDoubleBE = function (e, t) {return t || j(e, 8, this.length), r.read(this, e, !1, 52, 8);}, u.prototype.writeUIntLE = function (e, t, n, o) {(e = +e, t |= 0, n |= 0, o) || M(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);var r = 1,i = 0;for (this[t] = 255 & e; ++i < n && (r *= 256);) {this[t + i] = e / r & 255;}return t + n;}, u.prototype.writeUIntBE = function (e, t, n, o) {(e = +e, t |= 0, n |= 0, o) || M(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);var r = n - 1,i = 1;for (this[t + r] = 255 & e; --r >= 0 && (i *= 256);) {this[t + r] = e / i & 255;}return t + n;}, u.prototype.writeUInt8 = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = 255 & e, t + 1;}, u.prototype.writeUInt16LE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : R(this, e, t, !0), t + 2;}, u.prototype.writeUInt16BE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : R(this, e, t, !1), t + 2;}, u.prototype.writeUInt32LE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : A(this, e, t, !0), t + 4;}, u.prototype.writeUInt32BE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : A(this, e, t, !1), t + 4;}, u.prototype.writeIntLE = function (e, t, n, o) {if (e = +e, t |= 0, !o) {var r = Math.pow(2, 8 * n - 1);M(this, e, t, n, r - 1, -r);}var i = 0,s = 1,a = 0;for (this[t] = 255 & e; ++i < n && (s *= 256);) {e < 0 && 0 === a && 0 !== this[t + i - 1] && (a = 1), this[t + i] = (e / s >> 0) - a & 255;}return t + n;}, u.prototype.writeIntBE = function (e, t, n, o) {if (e = +e, t |= 0, !o) {var r = Math.pow(2, 8 * n - 1);M(this, e, t, n, r - 1, -r);}var i = n - 1,s = 1,a = 0;for (this[t + i] = 255 & e; --i >= 0 && (s *= 256);) {e < 0 && 0 === a && 0 !== this[t + i + 1] && (a = 1), this[t + i] = (e / s >> 0) - a & 255;}return t + n;}, u.prototype.writeInt8 = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1;}, u.prototype.writeInt16LE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : R(this, e, t, !0), t + 2;}, u.prototype.writeInt16BE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : R(this, e, t, !1), t + 2;}, u.prototype.writeInt32LE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : A(this, e, t, !0), t + 4;}, u.prototype.writeInt32BE = function (e, t, n) {return e = +e, t |= 0, n || M(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), u.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : A(this, e, t, !1), t + 4;}, u.prototype.writeFloatLE = function (e, t, n) {return F(this, e, t, !0, n);}, u.prototype.writeFloatBE = function (e, t, n) {return F(this, e, t, !1, n);}, u.prototype.writeDoubleLE = function (e, t, n) {return U(this, e, t, !0, n);}, u.prototype.writeDoubleBE = function (e, t, n) {return U(this, e, t, !1, n);}, u.prototype.copy = function (e, t, n, o) {if (n || (n = 0), o || 0 === o || (o = this.length), t >= e.length && (t = e.length), t || (t = 0), o > 0 && o < n && (o = n), o === n) return 0;if (0 === e.length || 0 === this.length) return 0;if (t < 0) throw new RangeError("targetStart out of bounds");if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");if (o < 0) throw new RangeError("sourceEnd out of bounds");o > this.length && (o = this.length), e.length - t < o - n && (o = e.length - t + n);var r,i = o - n;if (this === e && n < t && t < o) for (r = i - 1; r >= 0; --r) {e[r + t] = this[r + n];} else if (i < 1e3 || !u.TYPED_ARRAY_SUPPORT) for (r = 0; r < i; ++r) {e[r + t] = this[r + n];} else Uint8Array.prototype.set.call(e, this.subarray(n, n + i), t);return i;}, u.prototype.fill = function (e, t, n, o) {if ("string" == typeof e) {if ("string" == typeof t ? (o = t, t = 0, n = this.length) : "string" == typeof n && (o = n, n = this.length), 1 === e.length) {var r = e.charCodeAt(0);r < 256 && (e = r);}if (o !== undefined && "string" != typeof o) throw new TypeError("encoding must be a string");if ("string" == typeof o && !u.isEncoding(o)) throw new TypeError("Unknown encoding: " + o);} else "number" == typeof e && (e &= 255);if (t < 0 || this.length < t || this.length < n) throw new RangeError("Out of range index");if (n <= t) return this;var i;if (t >>>= 0, n = n === undefined ? this.length : n >>> 0, e || (e = 0), "number" == typeof e) for (i = t; i < n; ++i) {this[i] = e;} else {var s = u.isBuffer(e) ? e : q(new u(e, o).toString()),a = s.length;for (i = 0; i < n - t; ++i) {this[i + t] = s[i % a];}}return this;};var x = /[^+\/0-9A-Za-z-_]/g;function B(e) {return e < 16 ? "0" + e.toString(16) : e.toString(16);}function q(e, t) {var n;t = t || Infinity;for (var o = e.length, r = null, i = [], s = 0; s < o; ++s) {if ((n = e.charCodeAt(s)) > 55295 && n < 57344) {if (!r) {if (n > 56319) {(t -= 3) > -1 && i.push(239, 191, 189);continue;}if (s + 1 === o) {(t -= 3) > -1 && i.push(239, 191, 189);continue;}r = n;continue;}if (n < 56320) {(t -= 3) > -1 && i.push(239, 191, 189), r = n;continue;}n = 65536 + (r - 55296 << 10 | n - 56320);} else r && (t -= 3) > -1 && i.push(239, 191, 189);if (r = null, n < 128) {if ((t -= 1) < 0) break;i.push(n);} else if (n < 2048) {if ((t -= 2) < 0) break;i.push(n >> 6 | 192, 63 & n | 128);} else if (n < 65536) {if ((t -= 3) < 0) break;i.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);} else {if (!(n < 1114112)) throw new Error("Invalid code point");if ((t -= 4) < 0) break;i.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);}}return i;}function L(e) {return o.toByteArray(function (e) {if ((e = function (e) {return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "");}(e).replace(x, "")).length < 2) return "";for (; e.length % 4 != 0;) {e += "=";}return e;}(e));}function G(e, t, n, o) {for (var r = 0; r < o && !(r + n >= t.length || r >= e.length); ++r) {t[r + n] = e[r];}return r;}}).call(this, n(25));}, function (e, t, n) {"use strict";var o,r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i = 64,s = {},a = 0,u = 0;function c(e) {var t = "";do {t = r[e % i] + t, e = Math.floor(e / i);} while (e > 0);return t;}function l() {var e = c(+new Date());return e !== o ? (a = 0, o = e) : e + "." + c(a++);}for (; u < i; u++) {s[r[u]] = u;}l.encode = c, l.decode = function (e) {var t = 0;for (u = 0; u < e.length; u++) {t = t * i + s[e.charAt(u)];}return t;}, e.exports = l;}, function (e, t) {var n = [].indexOf;e.exports = function (e, t) {if (n) return e.indexOf(t);for (var o = 0; o < e.length; ++o) {if (e[o] === t) return o;}return -1;};}, function (e, t, n) {"use strict";var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {return typeof e;} : function (e) {return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;},r = n(28),i = n(12),s = n(127),a = n(57),u = n(58),c = (n(8)("socket.io-client:socket"), n(22)),l = n(52);e.exports = d;var f = { connect: 1, connect_error: 1, connect_timeout: 1, connecting: 1, disconnect: 1, error: 1, reconnect: 1, reconnect_attempt: 1, reconnect_failed: 1, reconnect_error: 1, reconnecting: 1, ping: 1, pong: 1 },p = i.prototype.emit;function d(e, t, n) {this.io = e, this.nsp = t, this.json = this, this.ids = 0, this.acks = {}, this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0, this.flags = {}, n && n.query && (this.query = n.query), this.io.autoConnect && this.open();}i(d.prototype), d.prototype.subEvents = function () {if (!this.subs) {var e = this.io;this.subs = [a(e, "open", u(this, "onopen")), a(e, "packet", u(this, "onpacket")), a(e, "close", u(this, "onclose"))];}}, d.prototype.open = d.prototype.connect = function () {return this.connected ? this : (this.subEvents(), this.io.open(), "open" === this.io.readyState && this.onopen(), this.emit("connecting"), this);}, d.prototype.send = function () {var e = s(arguments);return e.unshift("message"), this.emit.apply(this, e), this;}, d.prototype.emit = function (e) {if (f.hasOwnProperty(e)) return p.apply(this, arguments), this;var t = s(arguments),n = { type: (this.flags.binary !== undefined ? this.flags.binary : l(t)) ? r.BINARY_EVENT : r.EVENT, data: t, options: {} };return n.options.compress = !this.flags || !1 !== this.flags.compress, "function" == typeof t[t.length - 1] && (this.ids, this.acks[this.ids] = t.pop(), n.id = this.ids++), this.connected ? this.packet(n) : this.sendBuffer.push(n), this.flags = {}, this;}, d.prototype.packet = function (e) {e.nsp = this.nsp, this.io.packet(e);}, d.prototype.onopen = function () {if ("/" !== this.nsp) if (this.query) {var e = "object" === o(this.query) ? c.encode(this.query) : this.query;this.packet({ type: r.CONNECT, query: e });} else this.packet({ type: r.CONNECT });}, d.prototype.onclose = function (e) {this.connected = !1, this.disconnected = !0, delete this.id, this.emit("disconnect", e);}, d.prototype.onpacket = function (e) {var t = e.nsp === this.nsp,n = e.type === r.ERROR && "/" === e.nsp;if (t || n) switch (e.type) {case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error", e.data);}}, d.prototype.onevent = function (e) {var t = e.data || [];null != e.id && t.push(this.ack(e.id)), this.connected ? p.apply(this, t) : this.receiveBuffer.push(t);}, d.prototype.ack = function (e) {var t = this,n = !1;return function () {if (!n) {n = !0;var o = s(arguments);t.packet({ type: l(o) ? r.BINARY_ACK : r.ACK, id: e, data: o });}};}, d.prototype.onack = function (e) {var t = this.acks[e.id];"function" == typeof t ? (e.id, e.data, t.apply(this, e.data), delete this.acks[e.id]) : e.id;}, d.prototype.onconnect = function () {this.connected = !0, this.disconnected = !1, this.emit("connect"), this.emitBuffered();}, d.prototype.emitBuffered = function () {var e;for (e = 0; e < this.receiveBuffer.length; e++) {p.apply(this, this.receiveBuffer[e]);}for (this.receiveBuffer = [], e = 0; e < this.sendBuffer.length; e++) {this.packet(this.sendBuffer[e]);}this.sendBuffer = [];}, d.prototype.ondisconnect = function () {this.nsp, this.destroy(), this.onclose("io server disconnect");}, d.prototype.destroy = function () {if (this.subs) {for (var e = 0; e < this.subs.length; e++) {this.subs[e].destroy();}this.subs = null;}this.io.destroy(this);}, d.prototype.close = d.prototype.disconnect = function () {return this.connected && (this.nsp, this.packet({ type: r.DISCONNECT })), this.destroy(), this.connected && this.onclose("io client disconnect"), this;}, d.prototype.compress = function (e) {return this.flags.compress = e, this;}, d.prototype.binary = function (e) {return this.flags.binary = e, this;};}, function (e, t, n) {"use strict";e.exports = function (e, t, n) {return e.on(t, n), { destroy: function destroy() {e.removeListener(t, n);} };};}, function (e, t) {var n = [].slice;e.exports = function (e, t) {if ("string" == typeof t && (t = e[t]), "function" != typeof t) throw new Error("bind() requires a function");var o = n.call(arguments, 2);return function () {return t.apply(e, o.concat(n.call(arguments)));};};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.uniApp = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(15);var i = new (function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.overrided = !1;}return o(e, [{ key: "overrideUniShowHideMethods", value: function value() {if (r.FrameworkDetector.currentFramework() === r.Framework.UNIAPP && !this.overrided && getApp() && "undefined" != typeof getApp().$options) {this.overrided = !0;var e = getApp().$options;if ("undefined" != typeof e.onShow) {var t = e.onShow[0];e.onShow[0] = function () {getApp().uniAppRunningBackend = !1, t && t.call(e);};}if ("undefined" != typeof e.onHide) {var n = e.onHide[0];e.onHide[0] = function () {getApp().uniAppRunningBackend = !0, n && n.call(e);};}}} }, { key: "runningBackend", value: function value() {return getApp().uniAppRunningBackend;} }]), e;}())();t.uniApp = i;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.PUBSUB_INTERNAL_EVENTS = { MESSAGE_RECEIVED: "PUBSUB_INTERNAL_MESSAGE_RECEIVED" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.UUID = undefined;var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(62),s = (o = i) && o.__esModule ? o : { "default": o };var a = function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return r(e, null, [{ key: "get", value: function value() {return (0, s["default"])().replace(/-/g, "");} }]), e;}();t.UUID = a;}, function (e, t, n) {var o,r,i = n(63),s = n(64),a = 0,u = 0;e.exports = function (e, t, n) {var c = t && n || 0,l = t || [],f = (e = e || {}).node || o,p = e.clockseq !== undefined ? e.clockseq : r;if (null == f || null == p) {var d = i();null == f && (f = o = [1 | d[0], d[1], d[2], d[3], d[4], d[5]]), null == p && (p = r = 16383 & (d[6] << 8 | d[7]));}var h = e.msecs !== undefined ? e.msecs : new Date().getTime(),y = e.nsecs !== undefined ? e.nsecs : u + 1,v = h - a + (y - u) / 1e4;if (v < 0 && e.clockseq === undefined && (p = p + 1 & 16383), (v < 0 || h > a) && e.nsecs === undefined && (y = 0), y >= 1e4) throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a = h, u = y, r = p;var b = (1e4 * (268435455 & (h += 122192928e5)) + y) % 4294967296;l[c++] = b >>> 24 & 255, l[c++] = b >>> 16 & 255, l[c++] = b >>> 8 & 255, l[c++] = 255 & b;var m = h / 4294967296 * 1e4 & 268435455;l[c++] = m >>> 8 & 255, l[c++] = 255 & m, l[c++] = m >>> 24 & 15 | 16, l[c++] = m >>> 16 & 255, l[c++] = p >>> 8 | 128, l[c++] = 255 & p;for (var g = 0; g < 6; ++g) {l[c + g] = f[g];}return t || s(l);};}, function (e, t) {var n = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || "undefined" != typeof msCrypto && "function" == typeof window.msCrypto.getRandomValues && msCrypto.getRandomValues.bind(msCrypto);if (n) {var o = new Uint8Array(16);e.exports = function () {return n(o), o;};} else {var r = new Array(16);e.exports = function () {for (var e, t = 0; t < 16; t++) {0 == (3 & t) && (e = 4294967296 * Math.random()), r[t] = e >>> ((3 & t) << 3) & 255;}return r;};}}, function (e, t) {for (var n = [], o = 0; o < 256; ++o) {n[o] = (o + 256).toString(16).substr(1);}e.exports = function (e, t) {var o = t || 0,r = n;return [r[e[o++]], r[e[o++]], r[e[o++]], r[e[o++]], "-", r[e[o++]], r[e[o++]], "-", r[e[o++]], r[e[o++]], "-", r[e[o++]], r[e[o++]], "-", r[e[o++]], r[e[o++]], r[e[o++]], r[e[o++]], r[e[o++]], r[e[o++]]].join("");};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}();var r = new (function (e) {function t() {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, Array), o(t, [{ key: "deleteByKey", value: function value(e, t, n) {var o = e.findIndex(function (e) {return e[t] == n;});o > -1 && e.splice(o, 1);} }, { key: "unshiftGuid", value: function value(e) {var t = !1,n = this.findIndex(function (t) {return t == e;});for (n > -1 && (t = !0, this.splice(n, 1)), this.unshift(e); this.length > 300;) {this.pop();}return t;} }]), t;}())();t.goEasyArray = r;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t["default"] = { maxNumber: 5 };}, function (e, t, n) {"use strict";var o = this && this.__values || function (e) {var t = "function" == typeof Symbol && Symbol.iterator,n = t && e[t],o = 0;if (n) return n.call(e);if (e && "number" == typeof e.length) return { next: function next() {return e && o >= e.length && (e = void 0), { value: e && e[o++], done: !e };} };throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");};t.__esModule = !0, t.Cookie = void 0;var r = function () {function e() {}return e.get = function (e) {var t,n,r = encodeURIComponent(e) + "=",i = document.cookie.split("; ");try {for (var s = o(i), a = s.next(); !a.done; a = s.next()) {var u = a.value;if (u.startsWith(r)) return decodeURIComponent(u.substring(r.length));}} catch (c) {t = { error: c };} finally {try {a && !a.done && (n = s["return"]) && n.call(s);} finally {if (t) throw t.error;}}return null;}, e.set = function (e, t, n, o, r, i) {void 0 === r && (r = "/"), void 0 === i && (i = !1);var s = encodeURIComponent(e) + "=" + encodeURIComponent(t);n instanceof Date && (s += "; expires=" + n.toGMTString()), r && (s += "; path=" + r), o && (s += "; domain=" + o), i && (s += "; secure"), document.cookie = s;}, e.remove = function (t, n, o, r) {void 0 === o && (o = "/"), void 0 === r && (r = !1), e.set(t, "", new Date(0), n, o, r);}, e;}();t.Cookie = r;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.messageCreator = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = g(n(18)),i = g(n(70)),s = g(n(71)),a = g(n(72)),u = g(n(20)),c = g(n(73)),l = g(n(74)),f = g(n(75)),p = g(n(76)),d = g(n(77)),h = g(n(78)),y = g(n(39)),v = g(n(21)),b = g(n(79)),m = n(15);function g(e) {return e && e.__esModule ? e : { "default": e };}function w(e, t, n) {return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;}var _ = new (function () {function e() {var t;!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.messageTypes = (w(t = {}, m.Framework.NATIVE_APPLET_WX, { image: i["default"], file: r["default"], audio: s["default"], video: a["default"], text: y["default"] }), w(t, m.Framework.UNIAPP, { image: f["default"], file: u["default"], audio: c["default"], video: l["default"], text: y["default"] }), w(t, m.Framework.UNKNOWN, { image: p["default"], file: v["default"], audio: d["default"], video: h["default"], text: y["default"] }), t);}return o(e, [{ key: "create", value: function value(e, t) {var n = m.FrameworkDetector.currentFramework(),o = this.messageTypes[n][e];return o ? new o(t) : new b["default"](t);} }]), e;}())();t.messageCreator = _;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.str = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(35);var i = new (function () {function e() {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e);}return o(e, [{ key: "fileExtension", value: function value(e, t) {if (r.calibrator.isString(e)) try {var n = e.split(t);return n[n.length - 1];} catch (o) {throw Error(o);}} }]), e;}())();t.str = i;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function l(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : l(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = u(n(18)),s = u(n(2)),a = n(6);function u(e) {return e && e.__esModule ? e : { "default": e };}var c = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "validate", value: function value(e) {if (r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e), !a.calibrator.isDef(e.file.tempFiles) || 0 == e.file.tempFiles[0].length) throw Error("tempFiles is empty.");} }, { key: "setType", value: function value(e) {this.type = s["default"].image;} }, { key: "setFile", value: function value(e) {var t = "chooseMedia:ok" == e.errMsg ? e.tempFiles[0].tempFilePath : e.tempFiles[0].path;e.tempFiles[0].path = t, this.file = e;} }, { key: "setPayload", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);var n = this,o = e.file.tempFiles[0],i = "chooseMedia:ok" == e.file.errMsg ? o.tempFilePath : o.path;this.payload.url = i, this.payload.size = o.size, this.payload.width = "", this.payload.height = "", this.payload.contentType = "";var s = a.calibrator.isEmpty(o.name) || o.name == undefined ? i : o.name;this.payload.name = "wx-image." + a.str.fileExtension(s, "."), this.payload.contentType = "image/" + a.str.fileExtension(s, "."), wx.getImageInfo({ src: i, success: function success(e) {n.payload.width = e.width, n.payload.height = e.height;} });} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function l(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : l(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = u(n(18)),s = u(n(2)),a = n(6);function u(e) {return e && e.__esModule ? e : { "default": e };}var c = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "validate", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);} }, { key: "setType", value: function value(e) {this.type = s["default"].audio;} }, { key: "setPayload", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);var n = e.file.tempFilePath;this.payload.url = n, this.payload.duration = e.file.duration / 1e3, this.payload.size = e.file.fileSize;var o = a.calibrator.isEmpty(e.file.name) || e.file.name == undefined ? n : e.file.name;this.payload.contentType = "audio/" + a.str.fileExtension(o, "."), this.payload.name = "wx-audio." + a.str.fileExtension(o, ".");} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = u(n(18)),i = u(n(2)),s = n(0),a = n(6);function u(e) {return e && e.__esModule ? e : { "default": e };}var c = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, r["default"]), o(t, [{ key: "validate", value: function value(e) {(function n(e, t, o) {null === e && (e = Function.prototype);var r = Object.getOwnPropertyDescriptor(e, t);if (r === undefined) {var i = Object.getPrototypeOf(e);return null === i ? undefined : n(i, t, o);}if ("value" in r) return r.value;var s = r.get;return s === undefined ? undefined : s.call(o);})(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);} }, { key: "setType", value: function value(e) {this.type = i["default"].video;} }, { key: "setFile", value: function value(e) {this.file = "chooseMedia:ok" == e.errMsg ? e.tempFiles[0] : e;} }, { key: "setPayload", value: function value(e) {this.payload = Object.create(null);var t = Object.create(null),n = Object.create(null),o = "chooseMedia:ok" == e.file.errMsg ? e.file.tempFiles[0] : e.file,r = o.duration,i = o.height,u = o.size,c = o.tempFilePath,l = o.thumbTempFilePath,f = o.width,p = o.name,d = p === undefined ? "" : p,h = s.calibrator.isEmpty(d) ? c : d;t.contentType = "video/" + a.str.fileExtension(h, "."), t.name = "wx-video." + a.str.fileExtension(h, "."), t.url = c, t.width = n.width = f, t.height = n.height = i, t.size = u, t.duration = r, n.url = l, n.contentType = "image/jpg", n.name = "wx-thumbnail.jpg", this.payload.video = t, this.payload.thumbnail = n;} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function l(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : l(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = u(n(20)),s = u(n(2)),a = n(6);function u(e) {return e && e.__esModule ? e : { "default": e };}var c = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "validate", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);} }, { key: "setType", value: function value(e) {this.type = s["default"].audio;} }, { key: "setPayload", value: function value(e) {var n = this;r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);var o = this,i = e.file.tempFilePath;this.payload.url = i;var s = a.calibrator.isEmpty(e.file.name) || e.file.name == undefined ? i : e.file.name;if (this.payload.contentType = "audio/" + a.str.fileExtension(s, "."), this.payload.name = "uni-audio." + a.str.fileExtension(s, "."), a.calibrator.isDef(e.file.duration)) this.payload.duration = e.file.duration / 1e3;else {this.payload.duration = 0;var u = uni.createInnerAudioContext();u.src = i, u.onCanplay(function (e) {o.payload.duration = u.duration, u.destroy();});}uni.getFileInfo({ filePath: i, success: function success(e) {n.payload.size = e.size;} });} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = a(n(20)),i = a(n(2)),s = n(6);function a(e) {return e && e.__esModule ? e : { "default": e };}var u = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, r["default"]), o(t, [{ key: "validate", value: function value(e) {(function n(e, t, o) {null === e && (e = Function.prototype);var r = Object.getOwnPropertyDescriptor(e, t);if (r === undefined) {var i = Object.getPrototypeOf(e);return null === i ? undefined : n(i, t, o);}if ("value" in r) return r.value;var s = r.get;return s === undefined ? undefined : s.call(o);})(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);} }, { key: "setType", value: function value(e) {this.type = i["default"].video;} }, { key: "setPayload", value: function value(e) {var t = Object.create(null),n = Object.create(null);this.payload = Object.create(null);var o = e.file,r = o.duration,i = o.height,a = o.size,u = o.tempFilePath,c = o.width,l = o.name,f = l === undefined ? "" : l,p = s.calibrator.isEmpty(f) ? u : f;t.contentType = "video/" + s.str.fileExtension(p, "."), t.name = "uni-video." + s.str.fileExtension(p, "."), t.size = a, t.duration = r, t.url = n.url = u, t.width = n.width = c, t.height = n.height = i, n.contentType = "image/jpg", n.name = "wx-thumbnail.jpg", this.payload.video = t, this.payload.thumbnail = n;} }]), t;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function l(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : l(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = u(n(20)),s = n(6),a = u(n(2));function u(e) {return e && e.__esModule ? e : { "default": e };}var c = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "validate", value: function value(e) {if (r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e), !s.calibrator.isDef(e.file.tempFiles) || 0 == e.file.tempFiles[0].length) throw Error("tempFiles is empty.");} }, { key: "setType", value: function value(e) {this.type = a["default"].image;} }, { key: "setPayload", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);var n = this,o = e.file.tempFiles[0];this.payload.url = o.path, this.payload.size = o.size, this.payload.width = "", this.payload.height = "";var i = s.calibrator.isEmpty(o.name) || o.name == undefined ? o.path : o.name;this.payload.contentType = "image/" + s.str.fileExtension(i, "."), this.payload.name = "uni-image." + s.str.fileExtension(i, "."), uni.getImageInfo({ src: o.path, success: function success(e) {n.payload.width = e.width, n.payload.height = e.height;} });} }]), t;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function c(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : c(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = a(n(21)),s = a(n(2));function a(e) {return e && e.__esModule ? e : { "default": e };}var u = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "validate", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);var n = ["gif", "jpg", "png", "jpeg"];if (!n.find(function (t) {return t == e.file.type.split("/")[1].toLowerCase();})) throw Error("Only " + n.join(",") + " is supported image.");} }, { key: "setType", value: function value(e) {this.type = s["default"].image;} }, { key: "setPayload", value: function value(e) {var n = this;r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);var o = window.URL || window.webkitURL,i = new Image();i.src = o.createObjectURL(e.file), i.onload = function () {n.payload.width = i.width, n.payload.height = i.height, o.revokeObjectURL(i.src);};} }]), t;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function c(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : c(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = a(n(21)),s = a(n(2));function a(e) {return e && e.__esModule ? e : { "default": e };}var u = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "validate", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);var n = ["mp3", "ogg", "wav", "wma", "ape", "acc", "mpeg"];if (!n.find(function (t) {return t == e.file.type.split("/")[1].toLowerCase();})) throw Error("Only " + n.join(",") + " is supported audio.");} }, { key: "setType", value: function value(e) {this.type = s["default"].audio;} }, { key: "setPayload", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "setPayload", this).call(this, e);var n = this,o = window.URL || window.webkitURL,i = document.createElement("audio");i.src = o.createObjectURL(e.file), i.onloadedmetadata = function () {n.payload.duration = i.duration, o.revokeObjectURL(i.src);};} }]), t;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = s(n(21)),i = s(n(2));function s(e) {return e && e.__esModule ? e : { "default": e };}var a = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, r["default"]), o(t, [{ key: "validate", value: function value(e) {(function o(e, t, n) {null === e && (e = Function.prototype);var r = Object.getOwnPropertyDescriptor(e, t);if (r === undefined) {var i = Object.getPrototypeOf(e);return null === i ? undefined : o(i, t, n);}if ("value" in r) return r.value;var s = r.get;return s === undefined ? undefined : s.call(n);})(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "validate", this).call(this, e);var n = ["avi", "mov", "rmvb", "rm", "flv", "mp4", "3gp", "quicktime"];if (!n.find(function (t) {return t == e.file.type.split("/")[1].toLowerCase();})) throw Error("Only " + n.join(",") + " is supported video.");} }, { key: "setType", value: function value(e) {this.type = i["default"].video;} }, { key: "setPayload", value: function value(e) {this.payload = Object.create(null);var t = Object.create(null),n = Object.create(null);t.contentType = e.file.type, t.size = e.file.size, t.duration = 0, t.url = n.url = "", t.name = e.file.name, t.width = n.width = 0, t.height = n.height = 0, n.contentType = "image/jpg", this.payload.video = t, this.payload.thumbnail = n;var o = this,r = window.URL || window.webkitURL,i = document.createElement("video"),s = r.createObjectURL(e.file);i.src = s, i.onloadedmetadata = function () {o.payload.video.duration = i.duration, o.payload.video.width = o.payload.thumbnail.width = i.videoWidth, o.payload.video.height = o.payload.thumbnail.height = i.videoHeight, o.payload.video.url = s, o.payload.thumbnail.url = function (e) {var t = document.createElement("canvas");return t.width = e.videoWidth, t.height = e.videoHeight, t.getContext("2d").drawImage(e, 0, 0, t.width, t.height), t.toDataURL("image/png");}(i), r.revokeObjectURL(i.src);};} }]), t;}();t["default"] = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(14),s = (o = i) && o.__esModule ? o : { "default": o },a = n(0);var u = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, s["default"]), r(t, [{ key: "setType", value: function value(e) {if (!a.calibrator.isStringOrNumber(e.type)) throw Error("type require a string or number.");if (a.calibrator.isEmpty(e.type)) throw Error("type is empty.");this.type = e.type;} }, { key: "setPayload", value: function value(e) {if (a.calibrator.isEmpty(e.payload)) throw Error("payload is empty.");if (!a.calibrator.isPlainObject(e.payload) && !a.calibrator.isStringOrNumber(e.payload)) throw Error("payload require object | string | number.");this.payload = e.payload;} }]), t;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = d(n(81)),i = d(n(3)),s = d(n(1)),a = n(5),u = d(n(19)),c = n(7),l = d(n(14)),f = n(0),p = n(4);function d(e) {return e && e.__esModule ? e : { "default": e };}var h = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.bulletMessageBuilder = null, this.im = t, this.bulletMessageBuilder = new r["default"](t);}return o(e, [{ key: "send", value: function value(e, t, n) {var o = this;return new Promise(function (r, c) {t.status === u["default"]["new"] ? (t.status = u["default"].sending, o.bulletMessageBuilder.build(e, t, n).then(function (e) {var n = new i["default"]({ name: a.EmitType.publishIM, params: e, permission: s["default"].WRITE, singleTimeout: p.SocketTimeout.commonRequestSingle, totalTimeout: p.SocketTimeout.commonRequestTotal, fail: function fail(e) {t.status = u["default"].fail, c({ code: e.resultCode || 408, content: e.content || "Failed to send private message." });}, success: function success(e) {t.status = u["default"].success, 200 == e.resultCode ? r({ code: 200, content: e.content }) : c(e);} });o.im._goEasySocket.emit(n);})["catch"](function (e) {c({ code: e.code || 400, content: e.content || e });})) : c({ code: 400, content: "Please create a new message, a message can only be sent once" });});} }, { key: "sendMessage", value: function value(e) {var t = this,n = this.im,o = e.message;return new Promise(function (r, d) {if (o instanceof l["default"]) {if (o.status === u["default"]["new"]) {o.status = u["default"].sending;var h = o.to;if (delete o.to, h) {if (!h.type || h.type != c.ConversationType.GROUP && h.type != c.ConversationType.PRIVATE) d({ code: 400, content: "message require property to.type" });else if (h.id) {if (h.data && f.calibrator.isFunction(h.data)) d({ code: 400, content: "to.data can not be function" });else {var y = o.notification;if (y) if (f.calibrator.isObject(y)) {if (f.calibrator.isEmpty(y.title)) return void d({ code: 400, content: "notification title is required" });if (!f.calibrator.isString(y.title)) return void d({ code: 400, content: "notification title must be string" });if (f.calibrator.isEmpty(o.notification.body)) return void d({ code: 400, content: "notification body is required" });if (!f.calibrator.isString(o.notification.body)) return void d({ code: 400, content: "notification body must be string" });} else if (f.calibrator.isPrimitive(o.notification)) return void d({ code: 400, content: "notification must be an json object" });h.data || (h.data = {}), n._conversations.updateByOutMessage(o, h.type, h.id, h.data), t.bulletMessageBuilder.build(h.id, o, h.type, e.accessToken).then(function (e) {e.d = JSON.stringify(h.data);var t = new i["default"]({ name: a.EmitType.publishIM, params: e, permission: s["default"].WRITE, singleTimeout: p.SocketTimeout.commonRequestSingle, totalTimeout: p.SocketTimeout.commonRequestTotal, fail: function fail(e) {o.status = u["default"].fail, d({ code: e.resultCode || 408, content: e.content || "Failed to send private message." });}, success: function success(e) {o.status = u["default"].success, o.timestamp = e.content.timestamp, r(o), n._conversations.updateByOutMessage(o, h.type, h.id, h.data);} });n._goEasySocket.emit(t);})["catch"](function (e) {o.status = u["default"].fail, d({ code: e.code || 400, content: e.content || e });});}} else d({ code: 400, content: "message require property to.id" });} else d({ code: 400, content: "message require property to." });} else d({ code: 400, content: "Please create a new message, a message can only be sent once" });} else d({ code: 400, content: "it is invalid message" });});} }]), e;}();t["default"] = h;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = s(n(82)),i = s(n(83));s(n(2));function s(e) {return e && e.__esModule ? e : { "default": e };}var a = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t;}return o(e, [{ key: "build", value: function value(e, t, n, o) {var s = this;return new Promise(function (a, u) {var c = new r["default"]({ to: e, message: t, conversationType: n, accessToken: o }),l = t.type;new i["default"](l, s.im).build(t).then(function (e) {c.p = JSON.stringify(e), a(c);})["catch"](function (e) {u(e);});});} }]), e;}();t["default"] = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(6),i = c(n(14)),s = c(n(39)),a = c(n(2)),u = n(11);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.mt = null, this.to = null, this.p = null, this.t = null, this.guid = null, this.nt = null, this.at = null, this.validate(t.to, t.message), this.mt = t.message.type, this.to = t.to, this.t = t.conversationType, this.guid = t.message.messageId, this.p = t.message.payload, this.nt = t.message.notification, this.at = t.accessToken;}return o(e, [{ key: "validate", value: function value(e, t) {if (!(t instanceof i["default"])) throw Error("createMessage first.");if (r.calibrator.isEmpty(e)) throw Error("userId is empty.");if (!r.calibrator.isStringOrNumber(e)) throw Error("userId should be a string or number.");if (u.IM.userId == e) throw Error("userId can not be the same as your id.");if (t.type == a["default"].text) {if (!(t instanceof s["default"])) throw Error("it is not textMessage");if (JSON.stringify(t.payload).length > 3072) throw Error("message-length limit 3kb");}} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = n(84),r = a(n(85)),i = a(n(41)),s = a(n(2));function a(e) {return e && e.__esModule ? e : { "default": e };}t["default"] = function u(e, t) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, u), e == s["default"].video ? new r["default"](t) : e == s["default"].audio || e == s["default"].image || e == s["default"].file ? new i["default"](t) : o.simplePayloadBuilder;};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.simplePayloadBuilder = undefined;var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(40),s = (o = i) && o.__esModule ? o : { "default": o };var a = new (function (e) {function t() {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, s["default"]), r(t, [{ key: "build", value: function value(e) {return new Promise(function (t, n) {try {t(e.payload);} catch (o) {n(o);}});} }]), t;}())();t.simplePayloadBuilder = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = s(n(41)),i = s(n(42));function s(e) {return e && e.__esModule ? e : { "default": e };}var a = function (e) {function t(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, r["default"]), o(t, [{ key: "build", value: function value(e) {var t = this;return new Promise(function (n, o) {var r = new i["default"]();t.upload(e).then(function (t) {var o = t.content;undefined;r = e.payload;var i = "?x-oss-process=video/snapshot,t_0000,f_jpg,w_" + e.payload.video.width + ",m_fast,ar_auto";r.video.url = t.content.url, r.thumbnail.url = t.content.url + i, r.video.name = t.content.newFileName, n(r);})["catch"](function (e) {o(e);});});} }]), t;}();t["default"] = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.fileUploader = t.FileUploader = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(87),i = n(88),s = n(89),a = n(15);function u(e, t, n) {return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;}var c = new (t.FileUploader = function () {function e() {var t;!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.uploader = (u(t = {}, a.Framework.UNIAPP, r.uniAppFileUploader), u(t, a.Framework.NATIVE_APPLET_WX, i.wxFileUploader), u(t, a.Framework.UNKNOWN, s.htmlFileUploader), t);}return o(e, [{ key: "upload", value: function value(e, t) {var n = a.FrameworkDetector.currentFramework();return this.uploader[n].upload(e, t);} }]), e;}())();t.fileUploader = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.uniAppFileUploader = undefined;var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(26),s = (o = i) && o.__esModule ? o : { "default": o };var a = new (function (e) {function t() {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, s["default"]), r(t, [{ key: "upload", value: function value(e, t) {var n = this;try {return new Promise(function (o, r) {uni.uploadFile({ url: e.host, filePath: n.getTempFilePath(e), name: "file", formData: e.parameters, success: function success(t) {if (200 === t.statusCode) {var n = e.payload;n.message = t.errMsg, o({ code: 200, content: n });} else r({ code: t.statusCode, content: t.errMsg });}, fail: function fail(e) {r({ code: 500, content: e.errMsg });} }).onProgressUpdate(function (e) {t && t(e);});});} catch (o) {return new Promise(function (e, t) {t({ code: 500, content: o });});}} }, { key: "getTempFilePath", value: function value(e) {var t = e.file || e.fileRes;return Array.isArray(t.tempFiles) ? t.tempFiles[0].path : t.tempFilePath;} }]), t;}())();t.uniAppFileUploader = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.wxFileUploader = undefined;var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(26),s = (o = i) && o.__esModule ? o : { "default": o };var a = new (function (e) {function t() {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, s["default"]), r(t, [{ key: "upload", value: function value(e, t) {var n = this;try {return new Promise(function (o, r) {wx.uploadFile({ url: e.host, filePath: n.getTempFilePath(e), name: "file", formData: e.parameters, success: function success(t) {if (200 === t.statusCode) {var n = e.payload;n.message = t.errMsg, o({ code: 200, content: n });} else r({ code: t.statusCode, content: t.errMsg });}, fail: function fail(e) {r({ code: 500, content: e.errMsg });} }).onProgressUpdate(function (e) {t && t(e);});});} catch (o) {return new Promise(function (e, t) {t({ code: 500, content: o });});}} }, { key: "getTempFilePath", value: function value(e) {var t = e.file || e.fileRes;return Array.isArray(t.tempFiles) ? t.tempFiles[0].path : t.tempFilePath;} }]), t;}())();t.wxFileUploader = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.htmlFileUploader = undefined;var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(26),s = (o = i) && o.__esModule ? o : { "default": o };var a = new (function (e) {function t() {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, s["default"]), r(t, [{ key: "upload", value: function value(e, t) {try {return new Promise(function (n, o) {var r = new XMLHttpRequest();for (var i in r.open("post", e.host, !0), e.headers) {r.setRequestHeader(i, e.headers[i]);}r.upload.onprogress = function (e) {t && t(e);}, r.upload.onloadstart = function (e) {t && t(e);}, r.upload.onloadend = function (e) {t && t(e);};var s = new FormData();for (var a in e.parameters) {"fileRes" == a ? s.append("file", e.parameters[a]) : s.append(a, e.parameters[a]);}r.send(s), r.onreadystatechange = function () {if (4 == r.readyState) if (r.status >= 200 && r.status < 300 || 304 == r.status) {var t = e.payload;t.message = r.responseText, n({ code: 200, content: t });} else o({ code: r.status, content: r.responseText });};});} catch (n) {return new Promise(function (e, t) {t({ code: 500, content: n });});}} }]), t;}())();t.htmlFileUploader = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = s(n(91)),i = s(n(95));function s(e) {return e && e.__esModule ? e : { "default": e };}var a = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.uploadTokenResolver = null, this.uploadTokenResolver = new i["default"](t);}return o(e, [{ key: "build", value: function value(e, t, n) {var o = this;return new Promise(function (i, s) {o.uploadTokenResolver.resolve(t).then(function (t) {var o = t.content;i(new r["default"](o.vendor).build(o, e, n));})["catch"](function (e) {s(e);});});} }]), e;}();t["default"] = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = n(92),r = n(93),i = n(94);t["default"] = function s(e) {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, s), e == o.OssType.aliYun ? r.aliYunOSSRequestBuilder : i.qiNiuYunOSSRequestBuilder;};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.OssType = { aliYun: "ALI", qiNiu: "QN" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.aliYunOSSRequestBuilder = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = a(n(44)),i = a(n(45)),s = a(n(2));function a(e) {return e && e.__esModule ? e : { "default": e };}var u = function (e) {function t() {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "url", value: function value(e) {return e.host + "/" + e.dir + "/" + this.newFileName(e);} }, { key: "build", value: function value(e, t, n) {var o = { key: e.dir + "/" + this.newFileName(e), OSSAccessKeyId: e.accessKeyId, policy: e.policy, signature: e.signature, success_action_status: "200", fileRes: t };s["default"].file === n && (o = { key: e.dir + "/" + this.newFileName(e), OSSAccessKeyId: e.accessKeyId, policy: e.policy, signature: e.signature, success_action_status: "200", "Content-Disposition": "attachment;filename=" + t.name, fileRes: t });var i = { newFileName: this.newFileName(e), url: this.url(e) };return new r["default"](e.host, null, o, t, i);} }]), t;}();t["default"] = u;var c = new u();t.aliYunOSSRequestBuilder = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.qiNiuYunOSSRequestBuilder = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = s(n(45)),i = s(n(44));function s(e) {return e && e.__esModule ? e : { "default": e };}var a = new (function (e) {function t() {return function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t), function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, r["default"]), o(t, [{ key: "url", value: function value(e) {return e.downloadUrl;} }, { key: "build", value: function value(e, t) {var n = { key: this.newFileName(e), token: e.token, file: t },o = { newFileName: this.newFileName(e), url: this.url(e) };return new i["default"](e.host, null, n, t, o);} }]), t;}())();t.qiNiuYunOSSRequestBuilder = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = a(n(3)),i = a(n(1)),s = n(4);function a(e) {return e && e.__esModule ? e : { "default": e };}var u = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t;}return o(e, [{ key: "resolve", value: function value(e) {var t = this;return new Promise(function (n, o) {var a = new r["default"]({ name: "uploadToken", params: { filename: e }, permission: i["default"].WRITE, singleTimeout: s.SocketTimeout.commonRequestSingle, totalTimeout: s.SocketTimeout.commonRequestTotal, fail: function fail(e) {o(e);}, success: function success(e) {200 == e.code ? n(e) : o(e);} });t.im._goEasySocket.emit(a);});} }]), e;}();t["default"] = u;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(6),i = c(n(3)),s = c(n(1)),a = n(5),u = n(4);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t;}return o(e, [{ key: "history", value: function value(e) {var t = this;return new Promise(function (n, o) {t.transformOptions(e);var r = new i["default"]({ name: a.EmitType.imHistory, params: e, permission: s["default"].READ, singleTimeout: u.SocketTimeout.commonQuerySingle, totalTimeout: u.SocketTimeout.commonQueryTotal, fail: function fail(e) {o({ code: e.code || 408, content: e.content || "Failed to query message" });}, success: function success(r) {if (200 == r.code) {var i = t.transformHistories(r, e);n({ code: 200, content: i });} else o(r);} });t.im._goEasySocket.emit(r);});} }, { key: "transformOptions", value: function value(e) {if (!r.calibrator.isObject(e) || !r.calibrator.isDef(e.friendId) && !r.calibrator.isDef(e.groupId)) throw Error("friendId or groupId is not define.");if (r.calibrator.isDef(e.friendId) && r.calibrator.isDef(e.groupId)) throw Error("only contain friendId or groupId.");if (r.calibrator.isDef(e.limit) || (e.limit = 10), e.limit > 30 && (e.limit = 30), r.calibrator.isDef(e.friendId)) {if (!r.calibrator.isStringOrNumber(e.friendId)) throw Error("TypeError: friendId require string or number.");r.calibrator.isNumber(e.friendId) && (e.friendId = e.friendId.toString());} else {if (!r.calibrator.isStringOrNumber(e.groupId)) throw Error("TypeError: groupId require string or number.");r.calibrator.isNumber(e.groupId) && (e.groupId = e.groupId.toString());}return e;} }, { key: "transformHistories", value: function value(e, t) {var n = [];return e && e.content && e.content.map(function (e) {var o = Object.create(null);o.messageId = e.i, o.timestamp = e.ts, o.senderId = e.s, o.type = e.mt, o.payload = JSON.parse(e.p), t.groupId && e.d && (o.senderData = JSON.parse(e.d)), n.push(o);}), n;} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = p(n(3)),i = n(5),s = p(n(1)),a = n(4),u = n(7),c = p(n(16)),l = n(0),f = n(10);function p(e) {return e && e.__esModule ? e : { "default": e };}var d = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t, t._iMReceiver.addIMMessageObserver(this.newNewMessageReceived.bind(this));}return o(e, [{ key: "newNewMessageReceived", value: function value(e) {if (e.t === u.ConversationType.GROUP) {var t = c["default"].assemble(e);this.im._event.notify(f.ImEventType.GROUP_MESSAGE_RECEIVED, t);}} }, { key: "subscribe", value: function value(e) {var t = this,n = e.groupIds;return new Promise(function (o, u) {if (Array.isArray(n) && 0 != n.length) {for (var c = 0; c < n.length; c++) {if (!l.calibrator.isStringOrNumber(n[c])) return void u({ code: 400, content: "TypeError: groups item require string or number." });l.calibrator.isNumber(n[c]) && (n[c] = n[c].toString());}var f = new r["default"]({ name: i.EmitType.subscribeGroups, params: { groupIds: n, at: e.accessToken }, permission: s["default"].WRITE, singleTimeout: a.SocketTimeout.commonInfiniteSingle, totalTimeout: a.SocketTimeout.commonInfiniteTotal, success: function success() {o({ code: 200, content: "ok" });}, fail: function fail(e) {u({ code: e.resultCode || 408, content: e.content || "Failed to subscribe group message" });} });t.im._goEasySocket.emit(f);} else u({ code: 400, content: "TypeError: groups require array." });});} }, { key: "unsubscribe", value: function value(e) {var t = this;return new Promise(function (n, o) {if (l.calibrator.isStringOrNumber(e)) {e = e.toString();var u = new r["default"]({ name: i.EmitType.unsubscribeGroup, params: { groupId: e }, permission: s["default"].READ, singleTimeout: a.SocketTimeout.commonRequestSingle, totalTimeout: a.SocketTimeout.commonRequestTotal, success: function success() {n({ code: 200, content: "ok" });}, fail: function fail(e) {o({ code: e.resultCode || 408, content: e.content || "Failed to unsubscribe group message" });} });t.im._goEasySocket.emit(u);} else o({ code: 400, content: "TypeError: channel require string or number." });});} }]), e;}();t["default"] = d;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(16),s = (o = i) && o.__esModule ? o : { "default": o },a = n(7),u = n(10);var c = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t, t._iMReceiver.addIMMessageObserver(this.onNewMessageReceived.bind(this));}return r(e, [{ key: "onNewMessageReceived", value: function value(e) {if (e.t === a.ConversationType.PRIVATE) {var t = s["default"].assemble(e);this.im._event.notify(u.ImEventType.PRIVATE_MESSAGE_RECEIVED, t);}} }]), e;}();t["default"] = c;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = c(n(3)),i = n(5),s = c(n(1)),a = n(4),u = n(0);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t;}return o(e, [{ key: "get", value: function value(e) {var t = this;return new Promise(function (n, o) {if (u.calibrator.isStringOrNumber(e)) {u.calibrator.isNumber(e) && (e = e.toString());var c = new r["default"]({ name: i.EmitType.imGroupOnlineCount, params: { groupId: e }, permission: s["default"].READ, singleTimeout: a.SocketTimeout.commonQuerySingle, totalTimeout: a.SocketTimeout.commonQueryTotal, fail: function fail(e) {o(e || { code: 408, content: "Failed to query online group users" });}, success: function success(e) {200 == e.code ? n(e) : o(e);} });t.im._goEasySocket.emit(c);} else o({ code: 400, content: "TypeError: groupId require string or number." });});} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = f(n(3)),i = f(n(1)),s = n(4),a = n(5),u = n(0),c = n(10),l = f(n(17));function f(e) {return e && e.__esModule ? e : { "default": e };}var p = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t, t._goEasySocket.addMessageObserver(l["default"].groupPresence, this.newMessageReceived.bind(this));}return o(e, [{ key: "presence", value: function value(e) {var t = this;return new Promise(function (n, o) {if (Array.isArray(e) && 0 != e.length) {for (var r = 0; r < e.length; r++) {if (!u.calibrator.isStringOrNumber(e[r])) return void o({ code: 400, content: "TypeError: groupIds item require string or number." });if (u.calibrator.isNumber(e[r]) && (e[r] = e[r].toString()), 0 == e[r].length) return void o({ code: 400, content: "TypeError: groupIds has empty item." });}var i = { groupIds: e };t.emitRocket(a.EmitType.subscribeGroupPresence, i, function () {n({ code: 200, content: "ok" });}, function (e) {o({ code: e.code || 408, content: e.content || "Failed to subscribe group message" });}, s.SocketTimeout.commonInfiniteSingle, s.SocketTimeout.commonInfiniteTotal);} else o({ code: 400, content: "TypeError: groupIds require array." });});} }, { key: "unPresence", value: function value(e) {var t = this;return new Promise(function (n, o) {if (u.calibrator.isStringOrNumber(e)) {u.calibrator.isNumber(e) && (e = e.toString());var r = { groupId: e };t.emitRocket(a.EmitType.unsubscribeGroupPresence, r, function () {n({ code: 200, content: "ok" });}, function (e) {o({ code: e.code || 408, content: e.content || "Failed to unsubscribe presence" });}, s.SocketTimeout.commonRequestSingle, s.SocketTimeout.commonRequestTotal);} else o({ code: 400, content: "TypeError: groupId require string or number." });});} }, { key: "emitRocket", value: function value(e, t, n, o, s, a) {var u = new r["default"]({ name: e, params: t, singleTimeout: s, totalTimeout: a, permission: i["default"].WRITE, success: n, fail: o });this.im._goEasySocket.emit(u);} }, { key: "newMessageReceived", value: function value(e) {var t = this,n = null;e.c && (n = JSON.parse(e.c)), n && n.events && n.events.map(function (e) {var o = e.userData ? JSON.parse(e.userData) : {},r = { time: e.time, action: e.action, groupOnlineCount: n.userAmount, groupId: n.groupId, id: e.userId, data: o };t.im._event.notify(c.ImEventType.GROUP_PRESENCE, r);});} }]), e;}();t["default"] = p;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = f(n(3)),i = f(n(1)),s = n(4),a = n(5),u = n(0),c = n(10),l = f(n(17));function f(e) {return e && e.__esModule ? e : { "default": e };}var p = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t, this.im._goEasySocket.addMessageObserver(l["default"].userPresence, this.newMessageReceived.bind(this));}return o(e, [{ key: "presence", value: function value(e) {var t = this;return new Promise(function (n, o) {if (Array.isArray(e) && 0 != e.length) {for (var r = 0; r < e.length; r++) {if (!u.calibrator.isStringOrNumber(e[r])) return void o({ code: 400, content: "TypeError: userIds item require string or number." });if (u.calibrator.isNumber(e[r]) && (e[r] = e[r].toString()), 0 == e[r].length) return void o({ code: 400, content: "TypeError: userIds has empty item." });}var i = { userIds: e };t.emitRocket(a.EmitType.subscribeUserPresence, i, function () {n({ code: 200, content: "ok" });}, function (e) {o({ code: e.code || 408, content: e.content || "Failed to subscribe group message" });}, s.SocketTimeout.commonInfiniteSingle, s.SocketTimeout.commonInfiniteTotal);} else o({ code: 400, content: "TypeError: userIds require array." });});} }, { key: "unPresence", value: function value(e) {var t = this;return new Promise(function (n, o) {if (u.calibrator.isStringOrNumber(e)) {u.calibrator.isNumber(e) && (e = e.toString());var r = { userId: e };t.emitRocket(a.EmitType.unsubscribeUserPresence, r, function () {n({ code: 200, content: "ok" });}, function (e) {o({ code: e.code || 408, content: e.content || "Failed to unsubscribe presence" });}, s.SocketTimeout.commonRequestSingle, s.SocketTimeout.commonRequestTotal);} else o({ code: 400, content: "TypeError: id require string or number." });});} }, { key: "emitRocket", value: function value(e, t, n, o, s, a) {var u = new r["default"]({ name: e, params: t, singleTimeout: s, totalTimeout: a, permission: i["default"].WRITE, success: n, fail: o });this.im._goEasySocket.emit(u);} }, { key: "newMessageReceived", value: function value(e) {var t = this,n = [];e.c && (n = JSON.parse(e.c).events || []), n.map(function (e) {var n = e.userData ? JSON.parse(e.userData) : {},o = { time: e.time, action: e.action, id: e.userId, data: n };t.im._event.notify(c.ImEventType.USER_PRESENCE, o);});} }]), e;}();t["default"] = p;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(5),i = c(n(3)),s = c(n(1)),a = n(4),u = n(0);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t;}return o(e, [{ key: "hereNow", value: function value(e) {var t = this;return new Promise(function (n, o) {if (e.userIds && Array.isArray(e.userIds) && 0 != e.userIds.length) {for (var c = 0; c < e.userIds.length; c++) {if (!u.calibrator.isStringOrNumber(e.userIds[c])) return void o({ code: 400, content: "TypeError: userIds item require string or number." });if (u.calibrator.isNumber(e.userIds[c]) && (e.userIds[c] = e.userIds[c].toString()), 0 == e.userIds[c].length) return void o({ code: 400, content: "TypeError: userIds has empty item." });}var l = new i["default"]({ name: r.EmitType.imHereNow, params: e, permission: s["default"].READ, singleTimeout: a.SocketTimeout.commonQuerySingle, totalTimeout: a.SocketTimeout.commonQueryTotal, fail: function fail(e) {o({ code: e.resultCode || 408, content: e.content || "Failed to query online users" });}, success: function success(e) {if (200 == e.code) {var t = e.content;e.content = t.map(function (e) {var t = e.userData ? JSON.parse(e.userData) : {};return { id: e.userId, data: t };}), n(e);} else o(e);} });t.im._goEasySocket.emit(l);} else o({ code: 400, content: "TypeError: userIds require array." });});} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(5),i = c(n(3)),s = c(n(1)),a = n(4),u = n(6);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.im = t;}return o(e, [{ key: "hereNow", value: function value(e) {var t = this;return new Promise(function (n, o) {if (u.calibrator.isStringOrNumber(e)) {u.calibrator.isNumber(e) && (e = e.toString());var c = new i["default"]({ name: r.EmitType.imGroupHereNow, params: { groupId: e }, permission: s["default"].READ, singleTimeout: a.SocketTimeout.commonQuerySingle, totalTimeout: a.SocketTimeout.commonQueryTotal, fail: function fail(e) {o({ code: e.resultCode || 408, content: e.content || "Failed to query online group users" });}, success: function success(e) {if (200 == e.code) {var t = e.content;e.content = t.map(function (e) {var t = e.userData ? JSON.parse(e.userData) : {};return { id: e.userId, data: t };}), n(e);} else o(e);} });t.im._goEasySocket.emit(c);} else o({ code: 400, content: "TypeError: groupId require string or number." });});} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(17),s = (o = i) && o.__esModule ? o : { "default": o },a = n(46),u = n(27);var c = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.observers = [], this.im = t, t._goEasySocket.addMessageObserver(s["default"].imMessage, this.newNewMessageReceived.bind(this));}return r(e, [{ key: "newNewMessageReceived", value: function value(e) {this.sendAck(e), this.notify(e), u.GoEasyEventCenter.fire(a.IM_INTERNAL_EVENTS.MESSAGE_RECEIVED, e);} }, { key: "addIMMessageObserver", value: function value(e) {this.observers.push(e);} }, { key: "sendAck", value: function value(e) {this.im._goEasySocket.sendAck("imAck", { publishGuid: e.i });} }, { key: "notify", value: function value(e) {for (var t = 0; t < this.observers.length; t++) {this.observers[t](e);}} }]), e;}();t["default"] = c;}, function (e, t, n) {"use strict";t.__esModule = !0, t.EmitterEventDriver = void 0;var o = n(12),r = function () {function e() {this.emitter = new o();}return e.prototype.on = function (e, t) {return this.emitter.on(e, t), this;}, e.prototype.once = function (e, t) {return this.emitter.once(e, t), this;}, e.prototype.off = function (e, t) {return this.emitter.off(e, t), this;}, e.prototype.fire = function (e, t) {return this.emitter.emit(e, t), this;}, e;}();t.EmitterEventDriver = r;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = c(n(3)),i = n(5),s = c(n(1)),a = n(4),u = n(7);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t, n) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.userData = {}, this.groupData = {}, this.im = t, this.putUserData(n.id, n.data);}return o(e, [{ key: "putData", value: function value(e, t, n) {n || (n = {}), e == u.ConversationType.PRIVATE ? this.userData[t] = n : this.groupData[t] = n;} }, { key: "putUserData", value: function value(e, t) {this.userData[e] = t;} }, { key: "putGroupData", value: function value(e, t) {this.groupData[e] = t;} }, { key: "loadData", value: function value(e, t) {var n = this;return new Promise(function (o, c) {var l = void 0;if ((l = u.ConversationType.PRIVATE === t ? n.userData : n.groupData)[e] && 0 != Object.keys(l[e]).length) o(l[e]);else {var f = { targetId: e, type: t },p = new r["default"]({ name: i.EmitType.imData, params: f, permission: s["default"].READ, singleTimeout: a.SocketTimeout.commonQuerySingle, totalTimeout: a.SocketTimeout.commonQueryTotal, success: function success(t) {t.content ? l[e] = JSON.parse(t.content) : l[e] = {}, o(l[e]);}, fail: function fail(e) {c(e);} });n.im._goEasySocket.emit(p);}});} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 }), t.Conversations = undefined;var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(38),i = n(11),s = n(10),a = n(23),u = y(n(3)),c = y(n(1)),l = n(4),f = n(5),p = n(0),d = y(n(16)),h = y(n(19));function y(e) {return e && e.__esModule ? e : { "default": e };}t.Conversations = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.im = null, this.list = [], this.synchronized = !1, this.im = t, t._iMReceiver.addIMMessageObserver(this.updateByInMessage.bind(this));}return o(e, [{ key: "onUpdated", value: function value() {var e = this;this.latestConversations().then(function () {e.im._event.notify(s.ImEventType.CONVERSATIONS_UPDATED, { unreadTotal: e.getUnreadTotal(e.list), conversations: e.list.slice(0) });});} }, { key: "latestConversations", value: function value() {return this.synchronized ? this.loadLocalConversations() : this.loadServerConversations();} }, { key: "updateByInMessage", value: function value(e) {var t = this,n = null;n = e.t == a.ConversationType.GROUP ? e.r : i.IM.userId == e.r ? e.s : e.r;var o = this.list.findIndex(function (t) {return e.t == a.ConversationType.GROUP && n == t.groupId || e.t == a.ConversationType.PRIVATE && n == t.userId;}),s = void 0;function u(e) {e.type === a.ConversationType.PRIVATE && (i.IM.userId === e.lastMessage.senderId ? e.lastMessage.senderData = i.IM.userData : e.lastMessage.senderData = e.data);}o > -1 ? (s = this.list[o], this.list.splice(o, 1), s.lc < e.ts && (s.lastMessage = d["default"].assemble(e), s.lm = e.ts), i.IM.userId != e.senderId && (s.unread += 1), u(s), this.insertOne(s), this.onUpdated()) : (s = r.Conversion.buildByInMessage(e), i.IM.userId != e.senderId && (s.unread += 1), this.insertOne(s), this.im._dataCache.loadData(n, e.t).then(function (e) {s.data = e, u(s), t.onUpdated();})["catch"](function (t) {e.t;}));} }, { key: "updateByOutMessage", value: function value(e, t, n, o) {var s = {};Object.assign(s, e), delete s.file;var u = this.list.findIndex(function (e) {return e.type == a.ConversationType.GROUP && n == e.groupId || e.type == a.ConversationType.PRIVATE && n == e.userId;}),c = void 0;u > -1 ? (c = this.list[u], this.list.splice(u, 1), c.unread = 0, c.lc = c.lm, c.lastMessage = s, e.status === h["default"].success && (c.lc = e.timestamp, c.lm = e.timestamp)) : c = r.Conversion.buildByOutMessage(s, t, n, o), c.data = o;var l = this.im._dataCache;t === a.ConversationType.GROUP ? l.putGroupData(c.groupId, o) : (l.putUserData(c.userId, o), c.lastMessage.senderData = i.IM.userData), this.insertOne(c), this.onUpdated();} }, { key: "imLastConversations", value: function value(e, t) {var n = new u["default"]({ name: f.EmitType.imLastConversations, params: {}, permission: c["default"].READ, singleTimeout: l.SocketTimeout.commonQuerySingle, totalTimeout: l.SocketTimeout.commonQueryTotal, fail: t, success: e });this.im._goEasySocket.emit(n);} }, { key: "loadServerConversations", value: function value() {var e = this,t = this.im;return new Promise(function (n, o) {e.imLastConversations(function (i) {if (200 == i.code) {for (var s = i.content, u = function u(n, o) {var i = s[n],u = e.list.find(function (e) {return i.t == a.ConversationType.GROUP && i.g == e.groupId || i.t == a.ConversationType.PRIVATE && i.uid == e.userId;});p.calibrator.isDef(u) ? u.top = i.top : (u = r.Conversion.buildByConversation(t._dataCache, i), e.insertOne(u));}, c = 0, l = s.length; c < l; c++) {u(c);}e.synchronized = !0, n({ code: 200, content: { unreadTotal: e.getUnreadTotal(e.list), conversations: e.list.slice(0) } });} else o(i);}, function (e) {o({ code: e.resultCode, content: e.content });});});} }, { key: "loadLocalConversations", value: function value() {var e = this,t = [];return this.list.map(function (n) {if (!n.data) {var o = "private" == n.t ? n.userId : n.groupId,r = e.im._dataCache.loadData(o, n.t);r.then(function (e) {n.data = e;})["catch"](function (e) {n.type;}), t.push(r);}}), 0 != t.length ? new Promise(function (n, o) {Promise.all(t).then(function () {n({ code: 200, content: { unreadTotal: e.getUnreadTotal(e.list), conversations: e.list.slice(0) } });})["catch"](function (e) {o({ code: 408, content: e.message });});}) : Promise.resolve({ code: 200, content: { unreadTotal: this.getUnreadTotal(this.list), conversations: this.list } });} }, { key: "privateMarkAsRead", value: function value(e) {var t = this.list.find(function (t) {return t.userId == e;}),n = { friendId: e };return this.markAsRead(n, t);} }, { key: "groupMarkAsRead", value: function value(e) {var t = this.list.find(function (t) {return t.groupId === e;}),n = { groupId: e };return this.markAsRead(n, t);} }, { key: "markAsRead", value: function value(e, t) {var n = this;if (!t || t.unread <= 0) return Promise.resolve({ code: 200, content: "OK" });var o = t.unread,r = t.lm;return t.mt = r, e.lastTimestamp = r, e.lastConsumedTimestamp = t.lc, new Promise(function (i, s) {var u = t.type == a.ConversationType.PRIVATE ? f.EmitType.markPrivateMessageAsRead : f.EmitType.markGroupMessageAsRead;n.requestEmit(u, e, function (e) {200 == e.code ? (r === t.mt && n.resetConversation(t, t.lm, o), i({ code: 200, content: "OK" })) : s(e);}, function (e) {s(e || { code: e.code || 408, content: e.content || "Failed to query message" });});});} }, { key: "resetConversation", value: function value(e, t, n) {t <= e.lc || (e.unread -= n, e.lc = t, this.onUpdated());} }, { key: "getUnreadTotal", value: function value(e) {for (var t = 0, n = 0, o = e.length; n < o; n++) {t += e[n].unread;}return t;} }, { key: "insertOne", value: function value(e) {var t = this.getPosIndex(e);this.list.splice(t + 1, 0, e);} }, { key: "getPosIndex", value: function value(e) {if (0 == this.list.length) return -1;for (var t, n, o = 0, r = this.list.length; r - o > 1;) {t = Math.floor((o + r) / 2), n = this.list[t];var i = this.compares(e, n);if (0 == i) return t;i > 0 ? o = t : r = t;}return 0 == o && this.compares(this.list[0], e) > 0 ? -1 : o;} }, { key: "compares", value: function value(e, t) {var n = void 0;return (n = e.top == t.top ? t.lastMessage.timestamp - e.lastMessage.timestamp : e.top ? -1 : 1) > 0 ? 1 : 0 === n ? 0 : -1;} }, { key: "removeConversation", value: function value(e, t) {var n = this,o = t == a.ConversationType.PRIVATE ? "userId" : "groupId";return p.calibrator.isStringOrNumber(e) ? (p.calibrator.isNumber(e) && (e = e.toString()), -1 == this.findConversationIndex(t, e) ? Promise.reject({ code: 400, content: "Failed to remove conversation, " + o + " does not exists." }) : new Promise(function (o, r) {var i = { targetId: e, type: t };n.requestEmit(f.EmitType.removeConversation, i, function (i) {var s = n.findConversationIndex(t, e);s > -1 && n.list.splice(s, 1), n.onUpdated(), 200 == i.code ? o({}) : r({ code: i.code || 408, content: i.content || "Failed to remove conversation" });}, function (e) {r({ code: e.code || 408, content: e.content || "Failed to remove conversation" });});})) : Promise.reject({ code: 400, content: "Failed to remove conversation, " + o + " must be a string or integer." });} }, { key: "topConversation", value: function value(e, t, n) {var o = this,r = n == a.ConversationType.PRIVATE ? "userId" : "groupId";if (!p.calibrator.isStringOrNumber(e)) return Promise.reject({ code: 400, content: "Failed to top conversation, " + r + " must be a string or integer." });p.calibrator.isNumber(e) && (e = e.toString());var i = this.findConversationIndex(n, e);return -1 == i || this.list[i].top == t ? Promise.reject({ code: 400, content: "Failed to top conversation, " + r + " does not exists." }) : new Promise(function (r, i) {var s = { targetId: e, top: t, type: n };o.requestEmit(f.EmitType.topConversation, s, function () {var i = o.findConversationIndex(n, e),s = o.list[i];s.top = t, o.list.splice(i, 1), o.insertOne(s), o.onUpdated(), r({});}, function (e) {i({ code: e.code || 408, content: e.content || "Failed to top Conversation" });});});} }, { key: "requestEmit", value: function value(e, t, n, o) {var r = new u["default"]({ name: e, params: t, permission: c["default"].WRITE, singleTimeout: l.SocketTimeout.commonRequestSingle, totalTimeout: l.SocketTimeout.commonRequestTotal, success: n, fail: o });this.im._goEasySocket.emit(r);} }, { key: "findConversationIndex", value: function value(e, t) {return this.list.findIndex(function (n) {return e == a.ConversationType.PRIVATE ? n.type == e && n.userId == t : n.type == e && n.groupId == t;});} }]), e;}();}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = function _(e, t, n) {null === e && (e = Function.prototype);var o = Object.getOwnPropertyDescriptor(e, t);if (o === undefined) {var r = Object.getPrototypeOf(e);return null === r ? undefined : _(r, t, n);}if ("value" in o) return o.value;var i = o.get;return i === undefined ? undefined : i.call(n);},i = g(n(47)),s = n(5),a = g(n(129)),u = g(n(3)),c = g(n(1)),l = g(n(9)),f = g(n(130)),p = n(0),d = n(59),h = n(4),y = g(n(32)),v = n(31),b = n(131),m = n(132);function g(e) {return e && e.__esModule ? e : { "default": e };}var w = function (e) {function t(e, n) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t);var o = function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));return o.ioSocket = null, o.sid = null, o.appKey = null, o.anonymous = !1, o.userId = null, o.userData = null, o.otp = null, o.artifactVersion = "0.0.0", o.uri = null, o.ioOpts = null, o.allowNotification = !1, o.reconnectingTimes = 0, o.messageObservers = {}, o.connectFailedObservers = [], o.connectingObservers = [], o.expiredReconnectedObservers = [], o.onConnectSuccess = p.noop, o.onConnectFailed = p.noop, o.onConnectProgress = p.noop, o.setUriAndOpts(e), o.extendOptions(n), o.ioSocket = new a["default"]({ onDisconnected: o.onIoDisconnected.bind(o), onReconnecting: o.onIoReconnecting.bind(o) }), o.ioSocket.addConnectedObserver(o.onIoReconnected.bind(o)), o.appKey = e.appkey, o.allowNotification = e.allowNotification, o.modules = e.modules, p.calibrator.isEmpty(n.id) ? (o.anonymous = !0, o.userId = b.AnonymousUserIdRepository.get()) : o.userId = n.id, o.artifactVersion = y["default"].version, o.addConnectedObserver(o.onConnectSuccess), o.addConnectFailedObserver(o.onConnectFailed), o.addConnectingObserver(o.onConnectProgress), o;}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, i["default"]), o(t, [{ key: "extendOptions", value: function value(e) {if (p.calibrator.isFunction(e.onSuccess) && (this.onConnectSuccess = e.onSuccess), p.calibrator.isFunction(e.onFailed) && (this.onConnectFailed = e.onFailed), p.calibrator.isFunction(e.onProgress) && (this.onConnectProgress = e.onProgress), p.calibrator.isDef(e.data) && !p.calibrator.isObject(e.data)) throw { code: 400, content: "TypeError: data requires an object." };if ((p.calibrator.isDef(e.data) ? String(e.data).length : 0) > 300) {if (p.calibrator.isObject(e) && p.calibrator.isFunction(e.onFailed)) throw { code: 400, content: "user.data-length limit 300 byte." };} else this.userData = e.data;this.otp = e.otp || null;} }, { key: "setUriAndOpts", value: function value(e) {var t = "://" + p.GoEasyDomainNumber.refreshNumber() + e.host,n = !0;if (v.PlatformDetector.currentPlatform() === v.Platform.BROWSER) {var o = void 0;!0 === e.supportOldBrowser ? (o = ["polling", "websocket"], n = !1) : o = ["websocket"], !1 !== e.forceTLS && n ? this.uri = "https" + t + ":443" : this.uri = "http" + t + ":80", this.ioOpts = { transports: o, timeout: h.SocketTimeout.connect };} else this.uri = "https://wx-" + e.host + ":443", this.ioOpts = { transports: ["websocket"], reconnectionDelayMax: h.SocketTimeout.reconnectionDelayMax };} }, { key: "onIoReconnected", value: function value() {this.status === l["default"].RECONNECTING && this.authorize();} }, { key: "emit", value: function value(e) {r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "emit", this).call(this, e);} }, { key: "doEmit", value: function value(e, t, n) {d.uniApp.overrideUniShowHideMethods(), t.sid = this.sid, this.ioSocket.doEmit(e, t, n);} }, { key: "sendAck", value: function value(e, t) {this.ioSocket.io.emit(e, t);} }, { key: "connect", value: function value(e) {var n = this;r(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "connect", this).call(this), this.onConnecting(this.reconnectingTimes), this.ioSocket.connect({ uri: this.uri, opts: this.ioOpts }), e && e.supportNotification() && e.getRegIdPromise() ? e.getRegIdPromise().then(function (e) {n.regId = e, n.authorize();})["catch"](function (e) {console.warn("Failed to register the Manufacturers Push service:" + JSON.stringify(e)), n.authorize();}) : this.authorize();} }, { key: "disconnect", value: function value() {var e = this;return new Promise(function (t, n) {var o = function o() {e.status = l["default"].DISCONNECTED, e.ioSocket.disconnect(), t();};if (e.allowNotification) {var r = new u["default"]({ name: s.EmitType.manualDisconnect, params: {}, permission: c["default"].READ, singleTimeout: h.SocketTimeout.commonInfiniteSingle, totalTimeout: h.SocketTimeout.commonInfiniteTotal, fail: function fail(e) {n(e);}, success: o });e.emit(r);} else o();});} }, { key: "authorize", value: function value() {var e = { appkey: this.appKey, userId: this.userId, userData: JSON.stringify(this.userData), otp: this.otp, artifactVersion: this.artifactVersion, sid: this.sid, allowNT: this.allowNotification, regId: this.regId, modules: this.modules, a: this.anonymous, z: m.clientInfo.z };JSON.stringify(e);var t = new u["default"]({ name: s.EmitType.authorize, params: e, permission: c["default"].NONE, singleTimeout: h.SocketTimeout.commonInfiniteSingle, totalTimeout: h.SocketTimeout.commonInfiniteTotal, success: this.onAuthorizeSuccess.bind(this), fail: this.onAuthorizeFailed.bind(this) });this.ioSocket.emit(t);} }, { key: "onConnecting", value: function value() {this.notify(this.connectingObservers, this.reconnectingTimes);} }, { key: "onIoReconnecting", value: function value() {d.uniApp.overrideUniShowHideMethods(), this.reconnectingTimes++, this.status == l["default"].CONNECTED || this.status == l["default"].EXPIRED_RECONNECTED || this.status == l["default"].RECONNECTING ? this.status = l["default"].RECONNECTING : this.status = l["default"].CONNECTING, this.onConnecting();} }, { key: "onIoDisconnected", value: function value() {this.status == l["default"].DISCONNECTING && (this.status = l["default"].DISCONNECTED, this.notify(this.disconnectedObservers));} }, { key: "onAuthorizeSuccess", value: function value(e) {(!0 === this.anonymous && e.u && (b.AnonymousUserIdRepository.put(e.u), this.userId = e.u), this.status === l["default"].RECONNECTING) ? this.sid !== e.sid ? (this.status = l["default"].EXPIRED_RECONNECTED, this.notify(this.expiredReconnectedObservers)) : this.status = l["default"].RECONNECTED : (this.status = l["default"].CONNECTED, this.sid = e.sid);e.enablePublish && (this.permissions.find(function (e) {return e == c["default"].WRITE;}) || this.permissions.push(c["default"].WRITE)), e.enableSubscribe && (this.permissions.find(function (e) {return e == c["default"].READ;}) || this.permissions.push(c["default"].READ)), this.reconnectingTimes = 0, this.notify(this.connectedObservers);} }, { key: "onAuthorizeFailed", value: function value(e) {this.ioSocket.disconnect(), this.status = l["default"].CONNECT_FAILED;var t = { code: e.resultCode || 408, content: e.content || "Host unreachable or timeout" };this.notify(this.connectFailedObservers, t);} }, { key: "addConnectingObserver", value: function value(e) {p.calibrator.isFunction(e) && this.connectingObservers.push(e);} }, { key: "addConnectFailedObserver", value: function value(e) {p.calibrator.isFunction(e) && this.connectFailedObservers.push(e);} }, { key: "addExpiredReconnectedObserver", value: function value(e) {p.calibrator.isFunction(e) && this.expiredReconnectedObservers.push(e);} }, { key: "addMessageObserver", value: function value(e, t) {var n = this;this.ioSocket.io.on(e, function (t) {n.notifyMessageObservers(e, t);}), this.messageObservers[e] || (this.messageObservers[e] = []), this.messageObservers[e].push(new f["default"](t));} }, { key: "notifyMessageObservers", value: function value(e, t) {for (var n = this.messageObservers[e], o = 0; o < n.length; o++) {n[o].onMessage(e, t);}} }]), t;}();t["default"] = w;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o,r = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),i = n(9),s = (o = i) && o.__esModule ? o : { "default": o };var a = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.socket = null, this.socket = t;}return r(e, [{ key: "emit", value: function value(e) {this.socket.status !== s["default"].CONNECT_FAILED && this.socket.status !== s["default"].DISCONNECTED ? (e.start(), this.doEmit(e)) : e.fail({ resultCode: "409", content: "Please connect first" });} }, { key: "doEmit", value: function value(e) {var t = this;if (e.isTimeout()) e.fail({ resultCode: 408, content: "Host unreachable or timeout" });else if (this.socket.status !== s["default"].CONNECT_FAILED) {if (this.authenticated()) {if (this.hasPermission(e)) {if (this.socket.status === s["default"].CONNECTED || this.socket.status === s["default"].RECONNECTED || this.socket.status === s["default"].EXPIRED_RECONNECTED) {if (!e.complete) {var n = setTimeout(function () {t.doEmit(e);}, e.singleTimeout);this.socket.doEmit(e.name, e.params, function (t) {clearTimeout(n), 200 === t.resultCode || 200 == t.code ? e.success(t) : e.fail(t);}), e.retried++;}} else setTimeout(function () {t.doEmit(e);}, 500);} else e.fail({ resultCode: 401, content: "No permission" });} else setTimeout(function () {t.doEmit(e);}, 500);} else e.fail({ resultCode: 408, content: "Failed to connect GoEasy." });} }, { key: "hasPermission", value: function value(e) {return !!this.socket.permissions.find(function (t) {return t === e.permission;});} }, { key: "authenticated", value: function value() {return this.socket.status === s["default"].CONNECTED || this.socket.status === s["default"].RECONNECTING || this.socket.status === s["default"].RECONNECTED || this.socket.status === s["default"].EXPIRED_RECONNECTED;} }]), e;}();t["default"] = a;}, function (e, t, n) {"use strict";var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {return typeof e;} : function (e) {return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;},r = n(111),i = n(28),s = n(50);n(8)("socket.io-client");e.exports = t = u;var a = t.managers = {};function u(e, t) {"object" === (void 0 === e ? "undefined" : o(e)) && (t = e, e = undefined), t = t || {};var n,i = r(e),u = i.source,c = i.id,l = i.path,f = a[c] && l in a[c].nsps;return t.forceNew || t["force new connection"] || !1 === t.multiplex || f ? n = s(u, t) : (a[c] || (a[c] = s(u, t)), n = a[c]), i.query && !t.query && (t.query = i.query), n.socket(i.path, t);}t.protocol = i.protocol, t.connect = u, t.Manager = n(50), t.Socket = n(56);}, function (e, t, n) {"use strict";var o = n(48);n(8)("socket.io-client:url");e.exports = function (e, t) {var n = e;t = t || "undefined" != typeof location && location, null == e && (e = t.protocol + "//" + t.host);"string" == typeof e && ("/" === e.charAt(0) && (e = "/" === e.charAt(1) ? t.protocol + e : t.host + e), /^(https?|wss?):\/\//.test(e) || (e = void 0 !== t ? t.protocol + "//" + e : "https://" + e), n = o(e));n.port || (/^(http|ws)$/.test(n.protocol) ? n.port = "80" : /^(http|ws)s$/.test(n.protocol) && (n.port = "443"));n.path = n.path || "/";var r = -1 !== n.host.indexOf(":") ? "[" + n.host + "]" : n.host;return n.id = n.protocol + "://" + r + ":" + n.port, n.href = n.protocol + "://" + r + (t && t.port === n.port ? "" : ":" + n.port), n;};}, function (e, t, n) {"use strict";e.exports = n(113), e.exports.parser = n(13);}, function (e, t, n) {"use strict";var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {return typeof e;} : function (e) {return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;},r = n(51),i = n(12),s = (n(8)("engine.io-client:socket"), n(55)),a = n(13),u = n(48),c = n(22);function l(e, t) {if (!(this instanceof l)) return new l(e, t);t = t || {}, e && "object" === (void 0 === e ? "undefined" : o(e)) && (t = e, e = null), e ? (e = u(e), t.hostname = e.host, t.secure = "https" === e.protocol || "wss" === e.protocol, t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = u(t.host).host), this.secure = null != t.secure ? t.secure : "undefined" != typeof location && "https:" === location.protocol, t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.agent = t.agent || !1, this.hostname = t.hostname || ("undefined" != typeof location ? location.hostname : "localhost"), this.port = t.port || ("undefined" != typeof location && location.port ? location.port : this.secure ? 443 : 80), this.query = t.query || {}, "string" == typeof this.query && (this.query = c.decode(this.query)), this.upgrade = !1 !== t.upgrade, this.path = (t.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!t.forceJSONP, this.jsonp = !1 !== t.jsonp, this.forceBase64 = !!t.forceBase64, this.enablesXDR = !!t.enablesXDR, this.timestampParam = t.timestampParam || "t", this.timestampRequests = t.timestampRequests, this.transports = t.transports || ["polling", "websocket"], this.transportOptions = t.transportOptions || {}, this.readyState = "", this.writeBuffer = [], this.prevBufferLen = 0, this.policyPort = t.policyPort || 843, this.rememberUpgrade = t.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = t.onlyBinaryUpgrades, this.perMessageDeflate = !1 !== t.perMessageDeflate && (t.perMessageDeflate || {}), !0 === this.perMessageDeflate && (this.perMessageDeflate = {}), this.perMessageDeflate && null == this.perMessageDeflate.threshold && (this.perMessageDeflate.threshold = 1024), this.pfx = t.pfx || null, this.key = t.key || null, this.passphrase = t.passphrase || null, this.cert = t.cert || null, this.ca = t.ca || null, this.ciphers = t.ciphers || null, this.rejectUnauthorized = t.rejectUnauthorized === undefined || t.rejectUnauthorized, this.forceNode = !!t.forceNode, this.isReactNative = "undefined" != typeof navigator && "string" == typeof navigator.product && "reactnative" === navigator.product.toLowerCase(), ("undefined" == typeof self || this.isReactNative) && (t.extraHeaders && Object.keys(t.extraHeaders).length > 0 && (this.extraHeaders = t.extraHeaders), t.localAddress && (this.localAddress = t.localAddress)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingIntervalTimer = null, this.pingTimeoutTimer = null, this.open();}e.exports = l, l.priorWebsocketSuccess = !1, i(l.prototype), l.protocol = a.protocol, l.Socket = l, l.Transport = n(29), l.transports = n(51), l.parser = n(13), l.prototype.createTransport = function (e) {var t = function (e) {var t = {};for (var n in e) {e.hasOwnProperty(n) && (t[n] = e[n]);}return t;}(this.query);t.EIO = a.protocol, t.transport = e;var n = this.transportOptions[e] || {};return this.id && (t.sid = this.id), new r[e]({ query: t, socket: this, agent: n.agent || this.agent, hostname: n.hostname || this.hostname, port: n.port || this.port, secure: n.secure || this.secure, path: n.path || this.path, forceJSONP: n.forceJSONP || this.forceJSONP, jsonp: n.jsonp || this.jsonp, forceBase64: n.forceBase64 || this.forceBase64, enablesXDR: n.enablesXDR || this.enablesXDR, timestampRequests: n.timestampRequests || this.timestampRequests, timestampParam: n.timestampParam || this.timestampParam, policyPort: n.policyPort || this.policyPort, pfx: n.pfx || this.pfx, key: n.key || this.key, passphrase: n.passphrase || this.passphrase, cert: n.cert || this.cert, ca: n.ca || this.ca, ciphers: n.ciphers || this.ciphers, rejectUnauthorized: n.rejectUnauthorized || this.rejectUnauthorized, perMessageDeflate: n.perMessageDeflate || this.perMessageDeflate, extraHeaders: n.extraHeaders || this.extraHeaders, forceNode: n.forceNode || this.forceNode, localAddress: n.localAddress || this.localAddress, requestTimeout: n.requestTimeout || this.requestTimeout, protocols: n.protocols || void 0, isReactNative: this.isReactNative });}, l.prototype.open = function () {var e;if (this.rememberUpgrade && l.priorWebsocketSuccess && -1 !== this.transports.indexOf("websocket")) e = "websocket";else {if (0 === this.transports.length) {var t = this;return void setTimeout(function () {t.emit("error", "No transports available");}, 0);}e = this.transports[0];}this.readyState = "opening";try {e = this.createTransport(e);} catch (n) {return this.transports.shift(), void this.open();}e.open(), this.setTransport(e);}, l.prototype.setTransport = function (e) {e.name;var t = this;this.transport && (this.transport.name, this.transport.removeAllListeners()), this.transport = e, e.on("drain", function () {t.onDrain();}).on("packet", function (e) {t.onPacket(e);}).on("error", function (e) {t.onError(e);}).on("close", function () {t.onClose("transport close");});}, l.prototype.probe = function (e) {var t = this.createTransport(e, { probe: 1 }),n = !1,o = this;function r() {if (o.onlyBinaryUpgrades) {var e = !this.supportsBinary && o.transport.supportsBinary;n = n || e;}n || (t.send([{ type: "ping", data: "probe" }]), t.once("packet", function (e) {if (!n) if ("pong" === e.type && "probe" === e.data) {if (o.upgrading = !0, o.emit("upgrading", t), !t) return;l.priorWebsocketSuccess = "websocket" === t.name, o.transport.name, o.transport.pause(function () {n || "closed" !== o.readyState && (f(), o.setTransport(t), t.send([{ type: "upgrade" }]), o.emit("upgrade", t), t = null, o.upgrading = !1, o.flush());});} else {var r = new Error("probe error");r.transport = t.name, o.emit("upgradeError", r);}}));}function i() {n || (n = !0, f(), t.close(), t = null);}function s(e) {var n = new Error("probe error: " + e);n.transport = t.name, i(), o.emit("upgradeError", n);}function a() {s("transport closed");}function u() {s("socket closed");}function c(e) {t && e.name !== t.name && (e.name, t.name, i());}function f() {t.removeListener("open", r), t.removeListener("error", s), t.removeListener("close", a), o.removeListener("close", u), o.removeListener("upgrading", c);}l.priorWebsocketSuccess = !1, t.once("open", r), t.once("error", s), t.once("close", a), this.once("close", u), this.once("upgrading", c), t.open();}, l.prototype.onOpen = function () {if (this.readyState = "open", l.priorWebsocketSuccess = "websocket" === this.transport.name, this.emit("open"), this.flush(), "open" === this.readyState && this.upgrade && this.transport.pause) for (var e = 0, t = this.upgrades.length; e < t; e++) {this.probe(this.upgrades[e]);}}, l.prototype.onPacket = function (e) {if ("opening" === this.readyState || "open" === this.readyState || "closing" === this.readyState) switch (e.type, e.data, this.emit("packet", e), this.emit("heartbeat"), e.type) {case "open":this.onHandshake(JSON.parse(e.data));break;case "pong":this.setPing(), this.emit("pong");break;case "error":var t = new Error("server error");t.code = e.data, this.onError(t);break;case "message":this.emit("data", e.data), this.emit("message", e.data);} else this.readyState;}, l.prototype.onHandshake = function (e) {this.emit("handshake", e), this.id = e.sid, this.transport.query.sid = e.sid, this.upgrades = this.filterUpgrades(e.upgrades), this.pingInterval = e.pingInterval, this.pingTimeout = e.pingTimeout, this.onOpen(), "closed" !== this.readyState && (this.setPing(), this.removeListener("heartbeat", this.onHeartbeat), this.on("heartbeat", this.onHeartbeat));}, l.prototype.onHeartbeat = function (e) {clearTimeout(this.pingTimeoutTimer);var t = this;t.pingTimeoutTimer = setTimeout(function () {"closed" !== t.readyState && t.onClose("ping timeout");}, e || t.pingInterval + t.pingTimeout);}, l.prototype.setPing = function () {var e = this;clearTimeout(e.pingIntervalTimer), e.pingIntervalTimer = setTimeout(function () {e.pingTimeout, e.ping(), e.onHeartbeat(e.pingTimeout);}, e.pingInterval);}, l.prototype.ping = function () {var e = this;this.sendPacket("ping", function () {e.emit("ping");});}, l.prototype.onDrain = function () {this.writeBuffer.splice(0, this.prevBufferLen), this.prevBufferLen = 0, 0 === this.writeBuffer.length ? this.emit("drain") : this.flush();}, l.prototype.flush = function () {"closed" !== this.readyState && this.transport.writable && !this.upgrading && this.writeBuffer.length && (this.writeBuffer.length, this.transport.send(this.writeBuffer), this.prevBufferLen = this.writeBuffer.length, this.emit("flush"));}, l.prototype.write = l.prototype.send = function (e, t, n) {return this.sendPacket("message", e, t, n), this;}, l.prototype.sendPacket = function (e, t, n, o) {if ("function" == typeof t && (o = t, t = undefined), "function" == typeof n && (o = n, n = null), "closing" !== this.readyState && "closed" !== this.readyState) {(n = n || {}).compress = !1 !== n.compress;var r = { type: e, data: t, options: n };this.emit("packetCreate", r), this.writeBuffer.push(r), o && this.once("flush", o), this.flush();}}, l.prototype.close = function () {if ("opening" === this.readyState || "open" === this.readyState) {this.readyState = "closing";var e = this;this.writeBuffer.length ? this.once("drain", function () {this.upgrading ? o() : t();}) : this.upgrading ? o() : t();}function t() {e.onClose("forced close"), e.transport.close();}function n() {e.removeListener("upgrade", n), e.removeListener("upgradeError", n), t();}function o() {e.once("upgrade", n), e.once("upgradeError", n);}return this;}, l.prototype.onError = function (e) {l.priorWebsocketSuccess = !1, this.emit("error", e), this.onClose("transport error", e);}, l.prototype.onClose = function (e, t) {if ("opening" === this.readyState || "open" === this.readyState || "closing" === this.readyState) {clearTimeout(this.pingIntervalTimer), clearTimeout(this.pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), this.readyState = "closed", this.id = null, this.emit("close", e, t), this.writeBuffer = [], this.prevBufferLen = 0;}}, l.prototype.filterUpgrades = function (e) {for (var t = [], n = 0, o = e.length; n < o; n++) {~s(this.transports, e[n]) && t.push(e[n]);}return t;};}, function (e, t, n) {"use strict";(function (t) {var o = n(115),r = n(30);e.exports = l;var i,s = /\n/g,a = /\\n/g;function u() {}function c() {return "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== t ? t : {};}function l(e) {if (o.call(this, e), this.query = this.query || {}, !i) {var t = c();i = t.___eio = t.___eio || [];}this.index = i.length;var n = this;i.push(function (e) {n.onData(e);}), this.query.j = this.index, "function" == typeof addEventListener && addEventListener("beforeunload", function () {n.script && (n.script.onerror = u);}, !1);}r(l, o), l.prototype.supportsBinary = !1, l.prototype.doClose = function () {this.script && (this.script.parentNode.removeChild(this.script), this.script = null), this.form && (this.form.parentNode.removeChild(this.form), this.form = null, this.iframe = null), o.prototype.doClose.call(this);}, l.prototype.doPoll = function () {var e = this,t = document.createElement("script");this.script && (this.script.parentNode.removeChild(this.script), this.script = null), t.async = !0, t.src = this.uri(), t.onerror = function (t) {e.onError("jsonp poll error", t);};var n = document.getElementsByTagName("script")[0];n ? n.parentNode.insertBefore(t, n) : (document.head || document.body).appendChild(t), this.script = t, "undefined" != typeof navigator && /gecko/i.test(navigator.userAgent) && setTimeout(function () {var e = document.createElement("iframe");document.body.appendChild(e), document.body.removeChild(e);}, 100);}, l.prototype.doWrite = function (e, t) {var n = this;if (!this.form) {var o,r = document.createElement("form"),i = document.createElement("textarea"),u = this.iframeId = "eio_iframe_" + this.index;r.className = "socketio", r.style.position = "absolute", r.style.top = "-1000px", r.style.left = "-1000px", r.target = u, r.method = "POST", r.setAttribute("accept-charset", "utf-8"), i.name = "d", r.appendChild(i), document.body.appendChild(r), this.form = r, this.area = i;}function c() {l(), t();}function l() {if (n.iframe) try {n.form.removeChild(n.iframe);} catch (t) {n.onError("jsonp polling iframe removal error", t);}try {var e = '<iframe src="javascript:0" name="' + n.iframeId + '">';o = document.createElement(e);} catch (t) {(o = document.createElement("iframe")).name = n.iframeId, o.src = "javascript:0";}o.id = n.iframeId, n.form.appendChild(o), n.iframe = o;}this.form.action = this.uri(), l(), e = e.replace(a, "\\\n"), this.area.value = e.replace(s, "\\n");try {this.form.submit();} catch (f) {}this.iframe.attachEvent ? this.iframe.onreadystatechange = function () {"complete" === n.iframe.readyState && c();} : this.iframe.onload = c;};}).call(this, n(25));}, function (e, t, n) {"use strict";var o = n(29),r = n(22),i = n(13),s = n(30),a = n(54);n(8)("engine.io-client:polling");e.exports = c;var u = null != new (n(123))({ xdomain: !1 }).responseType;function c(e) {var t = e && e.forceBase64;u && !t || (this.supportsBinary = !1), o.call(this, e);}s(c, o), c.prototype.name = "polling", c.prototype.doOpen = function () {this.poll();}, c.prototype.pause = function (e) {var t = this;function n() {t.readyState = "paused", e();}if (this.readyState = "pausing", this.polling || !this.writable) {var o = 0;this.polling && (o++, this.once("pollComplete", function () {--o || n();})), this.writable || (o++, this.once("drain", function () {--o || n();}));} else n();}, c.prototype.poll = function () {this.polling = !0, this.doPoll(), this.emit("poll");}, c.prototype.onData = function (e) {var t = this;i.decodePayload(e, this.socket.binaryType, function (e, n, o) {if ("opening" === t.readyState && t.onOpen(), "close" === e.type) return t.onClose(), !1;t.onPacket(e);}), "closed" !== this.readyState && (this.polling = !1, this.emit("pollComplete"), "open" === this.readyState ? this.poll() : this.readyState);}, c.prototype.doClose = function () {var e = this;function t() {e.write([{ type: "close" }]);}"open" === this.readyState ? t() : this.once("open", t);}, c.prototype.write = function (e) {var t = this;this.writable = !1;var n = function n() {t.writable = !0, t.emit("drain");};i.encodePayload(e, this.supportsBinary, function (e) {t.doWrite(e, n);});}, c.prototype.uri = function () {var e = this.query || {},t = this.secure ? "https" : "http",n = "";return !1 !== this.timestampRequests && (e[this.timestampParam] = a()), this.supportsBinary || e.sid || (e.b64 = 1), e = r.encode(e), this.port && ("https" === t && 443 !== Number(this.port) || "http" === t && 80 !== Number(this.port)) && (n = ":" + this.port), e.length && (e = "?" + e), t + "://" + (-1 !== this.hostname.indexOf(":") ? "[" + this.hostname + "]" : this.hostname) + n + this.path + e;};}, function (e, t, n) {"use strict";e.exports = Object.keys || function (e) {var t = [],n = Object.prototype.hasOwnProperty;for (var o in e) {n.call(e, o) && t.push(o);}return t;};}, function (e, t, n) {"use strict";t.byteLength = function (e) {var t = c(e),n = t[0],o = t[1];return 3 * (n + o) / 4 - o;}, t.toByteArray = function (e) {var t,n,o = c(e),s = o[0],a = o[1],u = new i(function (e, t, n) {return 3 * (t + n) / 4 - n;}(0, s, a)),l = 0,f = a > 0 ? s - 4 : s;for (n = 0; n < f; n += 4) {t = r[e.charCodeAt(n)] << 18 | r[e.charCodeAt(n + 1)] << 12 | r[e.charCodeAt(n + 2)] << 6 | r[e.charCodeAt(n + 3)], u[l++] = t >> 16 & 255, u[l++] = t >> 8 & 255, u[l++] = 255 & t;}2 === a && (t = r[e.charCodeAt(n)] << 2 | r[e.charCodeAt(n + 1)] >> 4, u[l++] = 255 & t);1 === a && (t = r[e.charCodeAt(n)] << 10 | r[e.charCodeAt(n + 1)] << 4 | r[e.charCodeAt(n + 2)] >> 2, u[l++] = t >> 8 & 255, u[l++] = 255 & t);return u;}, t.fromByteArray = function (e) {for (var t, n = e.length, r = n % 3, i = [], s = 0, a = n - r; s < a; s += 16383) {i.push(l(e, s, s + 16383 > a ? a : s + 16383));}1 === r ? (t = e[n - 1], i.push(o[t >> 2] + o[t << 4 & 63] + "==")) : 2 === r && (t = (e[n - 2] << 8) + e[n - 1], i.push(o[t >> 10] + o[t >> 4 & 63] + o[t << 2 & 63] + "="));return i.join("");};for (var o = [], r = [], i = "undefined" != typeof Uint8Array ? Uint8Array : Array, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, u = s.length; a < u; ++a) {o[a] = s[a], r[s.charCodeAt(a)] = a;}function c(e) {var t = e.length;if (t % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");var n = e.indexOf("=");return -1 === n && (n = t), [n, n === t ? 0 : 4 - n % 4];}function l(e, t, n) {for (var r, i, s = [], a = t; a < n; a += 3) {r = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (255 & e[a + 2]), s.push(o[(i = r) >> 18 & 63] + o[i >> 12 & 63] + o[i >> 6 & 63] + o[63 & i]);}return s.join("");}r["-".charCodeAt(0)] = 62, r["_".charCodeAt(0)] = 63;}, function (e, t) {
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- t.read = function (e, t, n, o, r) {var i,s,a = 8 * r - o - 1,u = (1 << a) - 1,c = u >> 1,l = -7,f = n ? r - 1 : 0,p = n ? -1 : 1,d = e[t + f];for (f += p, i = d & (1 << -l) - 1, d >>= -l, l += a; l > 0; i = 256 * i + e[t + f], f += p, l -= 8) {;}for (s = i & (1 << -l) - 1, i >>= -l, l += o; l > 0; s = 256 * s + e[t + f], f += p, l -= 8) {;}if (0 === i) i = 1 - c;else {if (i === u) return s ? NaN : (d ? -1 : 1) * Infinity;s += Math.pow(2, o), i -= c;}return (d ? -1 : 1) * s * Math.pow(2, i - o);}, t.write = function (e, t, n, o, r, i) {var s,a,u,c = 8 * i - r - 1,l = (1 << c) - 1,f = l >> 1,p = 23 === r ? Math.pow(2, -24) - Math.pow(2, -77) : 0,d = o ? 0 : i - 1,h = o ? 1 : -1,y = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;for (t = Math.abs(t), isNaN(t) || t === Infinity ? (a = isNaN(t) ? 1 : 0, s = l) : (s = Math.floor(Math.log(t) / Math.LN2), t * (u = Math.pow(2, -s)) < 1 && (s--, u *= 2), (t += s + f >= 1 ? p / u : p * Math.pow(2, 1 - f)) * u >= 2 && (s++, u /= 2), s + f >= l ? (a = 0, s = l) : s + f >= 1 ? (a = (t * u - 1) * Math.pow(2, r), s += f) : (a = t * Math.pow(2, f - 1) * Math.pow(2, r), s = 0)); r >= 8; e[n + d] = 255 & a, d += h, a /= 256, r -= 8) {;}for (s = s << r | a, c += r; c > 0; e[n + d] = 255 & s, d += h, s /= 256, c -= 8) {;}e[n + d - h] |= 128 * y;};}, function (e, t) {var n = {}.toString;e.exports = Array.isArray || function (e) {return "[object Array]" == n.call(e);};}, function (e, t) {function n() {}e.exports = function (e, t, o) {var r = !1;return o = o || n, i.count = e, 0 === e ? t() : i;function i(e, n) {if (i.count <= 0) throw new Error("after called too many times");--i.count, e ? (r = !0, t(e), t = o) : 0 !== i.count || r || t(null, n);}};}, function (e, t, n) {"use strict";
- /*! https://mths.be/utf8js v2.1.2 by @mathias */var o,r,i,s = String.fromCharCode;function a(e) {for (var t, n, o = [], r = 0, i = e.length; r < i;) {(t = e.charCodeAt(r++)) >= 55296 && t <= 56319 && r < i ? 56320 == (64512 & (n = e.charCodeAt(r++))) ? o.push(((1023 & t) << 10) + (1023 & n) + 65536) : (o.push(t), r--) : o.push(t);}return o;}function u(e, t) {if (e >= 55296 && e <= 57343) {if (t) throw Error("Lone surrogate U+" + e.toString(16).toUpperCase() + " is not a scalar value");return !1;}return !0;}function c(e, t) {return s(e >> t & 63 | 128);}function l(e, t) {if (0 == (4294967168 & e)) return s(e);var n = "";return 0 == (4294965248 & e) ? n = s(e >> 6 & 31 | 192) : 0 == (4294901760 & e) ? (u(e, t) || (e = 65533), n = s(e >> 12 & 15 | 224), n += c(e, 6)) : 0 == (4292870144 & e) && (n = s(e >> 18 & 7 | 240), n += c(e, 12), n += c(e, 6)), n += s(63 & e | 128);}function f() {if (i >= r) throw Error("Invalid byte index");var e = 255 & o[i];if (i++, 128 == (192 & e)) return 63 & e;throw Error("Invalid continuation byte");}function p(e) {var t, n;if (i > r) throw Error("Invalid byte index");if (i == r) return !1;if (t = 255 & o[i], i++, 0 == (128 & t)) return t;if (192 == (224 & t)) {if ((n = (31 & t) << 6 | f()) >= 128) return n;throw Error("Invalid continuation byte");}if (224 == (240 & t)) {if ((n = (15 & t) << 12 | f() << 6 | f()) >= 2048) return u(n, e) ? n : 65533;throw Error("Invalid continuation byte");}if (240 == (248 & t) && (n = (7 & t) << 18 | f() << 12 | f() << 6 | f()) >= 65536 && n <= 1114111) return n;throw Error("Invalid UTF-8 detected");}e.exports = { version: "2.1.2", encode: function encode(e, t) {for (var n = !1 !== (t = t || {}).strict, o = a(e), r = o.length, i = -1, s = ""; ++i < r;) {s += l(o[i], n);}return s;}, decode: function decode(e, t) {var n = !1 !== (t = t || {}).strict;o = a(e), r = o.length, i = 0;for (var u, c = []; !1 !== (u = p(n));) {c.push(u);}return function (e) {for (var t, n = e.length, o = -1, r = ""; ++o < n;) {(t = e[o]) > 65535 && (r += s((t -= 65536) >>> 10 & 1023 | 55296), t = 56320 | 1023 & t), r += s(t);}return r;}(c);} };}, function (e, t) {var n = void 0 !== n ? n : "undefined" != typeof WebKitBlobBuilder ? WebKitBlobBuilder : "undefined" != typeof MSBlobBuilder ? MSBlobBuilder : "undefined" != typeof MozBlobBuilder && MozBlobBuilder,o = function () {try {return 2 === new Blob(["hi"]).size;} catch (e) {return !1;}}(),r = o && function () {try {return 2 === new Blob([new Uint8Array([1, 2])]).size;} catch (e) {return !1;}}(),i = n && n.prototype.append && n.prototype.getBlob;function s(e) {return e.map(function (e) {if (e.buffer instanceof ArrayBuffer) {var t = e.buffer;if (e.byteLength !== t.byteLength) {var n = new Uint8Array(e.byteLength);n.set(new Uint8Array(t, e.byteOffset, e.byteLength)), t = n.buffer;}return t;}return e;});}function a(e, t) {t = t || {};var o = new n();return s(e).forEach(function (e) {o.append(e);}), t.type ? o.getBlob(t.type) : o.getBlob();}function u(e, t) {return new Blob(s(e), t || {});}"undefined" != typeof Blob && (a.prototype = Blob.prototype, u.prototype = Blob.prototype), e.exports = o ? r ? Blob : u : i ? a : undefined;}, function (e, t, n) {"use strict";var o = n(124);e.exports = function (e) {var t = e.xdomain,n = e.xscheme,r = e.enablesXDR;try {if ("undefined" != typeof XMLHttpRequest && (!t || o)) return new XMLHttpRequest();} catch (i) {}try {if ("undefined" != typeof XDomainRequest && !n && r) return new XDomainRequest();} catch (i) {}if (!t) try {return new self[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");} catch (i) {}};}, function (e, t) {try {e.exports = "undefined" != typeof XMLHttpRequest && "withCredentials" in new XMLHttpRequest();} catch (n) {e.exports = !1;}}, function (e, t, n) {"use strict";(function (t) {var o,r,i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {return typeof e;} : function (e) {return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;},s = n(29),a = n(13),u = n(22),c = n(30),l = n(54);n(8)("engine.io-client:websocket");if ("undefined" == typeof uni && "undefined" == typeof wx || "undefined" != typeof WebSocket) if ("undefined" != typeof WebSocket) o = WebSocket;else if ("undefined" != typeof self) o = self.WebSocket || self.MozWebSocket;else try {r = n(126);} catch (d) {}var f = o || r;function p(e) {e && e.forceBase64 && (this.supportsBinary = !1), ("undefined" == typeof uni && "undefined" == typeof wx || "undefined" != typeof WebSocket) && (this.perMessageDeflate = e.perMessageDeflate, this.usingBrowserWebSocket = o && !e.forceNode, this.protocols = e.protocols, this.usingBrowserWebSocket || (f = r)), s.call(this, e);}"undefined" == typeof uni && "undefined" == typeof wx || "undefined" != typeof WebSocket || (f = function f(e) {var t = this;if (t.onopen = function () {}, t.onclose = function () {}, t.onmessage = function (e) {}, t.onerror = function (e) {}, "object" === ("undefined" == typeof tt ? "undefined" : i(tt)) && tt.getSystemInfo) {var n = tt.connectSocket({ url: e });t.send = function (e) {n.send({ data: e });}, t.close = function () {n.close();}, n.onOpen(function () {t.onopen();}), n.onError(function (e) {t.onerror(e);}), n.onMessage(function (e) {t.onmessage(e);}), n.onClose(function () {t.onclose();});} else if ("undefined" != typeof uni) {var o = uni.connectSocket({ url: e, complete: function complete() {} });t.send = function (e) {o.send({ data: e });}, t.close = function () {o.close();}, o.onOpen(function (e) {t.onopen();}), o.onError(function (e) {t.onerror(e);}), o.onMessage(function (e) {t.onmessage(e);}), o.onClose(function (e) {t.onclose();});} else {var r = wx.connectSocket({ url: e });t.send = function (e) {r.send({ data: e });}, t.close = function (e) {r.close({ code: 1e3 });}, r.onOpen(function () {t.onopen();}), r.onError(function (e) {t.onerror(e);}), r.onMessage(function (e) {t.onmessage(e);}), r.onClose(function (e) {t.onclose(e);});}}), e.exports = p, c(p, s), p.prototype.name = "websocket", p.prototype.supportsBinary = !1, p.prototype.doOpen = function () {if (this.check()) {var e,t,n = this.uri();("undefined" == typeof uni && "undefined" == typeof wx || "undefined" != typeof WebSocket) && (e = this.protocols), (t = "undefined" == typeof uni && "undefined" == typeof wx || "undefined" != typeof WebSocket ? { agent: this.agent, perMessageDeflate: this.perMessageDeflate } : { agent: this.agent }).pfx = this.pfx, t.key = this.key, t.passphrase = this.passphrase, t.cert = this.cert, t.ca = this.ca, t.ciphers = this.ciphers, t.rejectUnauthorized = this.rejectUnauthorized, this.extraHeaders && (t.headers = this.extraHeaders), this.localAddress && (t.localAddress = this.localAddress);try {"undefined" == typeof uni && "undefined" == typeof wx || "undefined" != typeof WebSocket ? this.ws = this.usingBrowserWebSocket && !this.isReactNative ? e ? new f(n, e) : new f(n) : new f(n, e, t) : this.ws = new f(n);} catch (o) {return this.emit("error", o);}this.ws.binaryType === undefined && (this.supportsBinary = !1), this.ws.supports && this.ws.supports.binary ? (this.supportsBinary = !0, this.ws.binaryType = "nodebuffer") : this.ws.binaryType = "arraybuffer", this.addEventListeners();}}, p.prototype.addEventListeners = function () {var e = this;this.ws.onopen = function () {e.onOpen();}, this.ws.onclose = function () {e.onClose();}, this.ws.onmessage = function (t) {e.onData(t.data);}, this.ws.onerror = function (t) {e.onError("websocket error", t);};}, p.prototype.write = function (e) {var n = this;this.writable = !1;for (var o = e.length, r = 0, i = o; r < i; r++) {!function (e) {a.encodePacket(e, n.supportsBinary, function (r) {if ("undefined" == typeof uni && "undefined" == typeof wx || "undefined" != typeof WebSocket) {if (!n.usingBrowserWebSocket) {var i = {};if (e.options && (i.compress = e.options.compress), n.perMessageDeflate) ("string" == typeof r ? t.byteLength(r) : r.length) < n.perMessageDeflate.threshold && (i.compress = !1);}try {n.usingBrowserWebSocket ? n.ws.send(r) : n.ws.send(r, i);} catch (d) {}} else try {n.ws.send(r);} catch (d) {}--o || s();});}(e[r]);}function s() {n.emit("flush"), setTimeout(function () {n.writable = !0, n.emit("drain");}, 0);}}, p.prototype.onClose = function () {s.prototype.onClose.call(this);}, p.prototype.doClose = function () {"undefined" != typeof this.ws && this.ws.close();}, p.prototype.uri = function () {var e = this.query || {},t = this.secure ? "wss" : "ws",n = "";return this.port && ("wss" === t && 443 !== Number(this.port) || "ws" === t && 80 !== Number(this.port)) && (n = ":" + this.port), this.timestampRequests && (e[this.timestampParam] = l()), this.supportsBinary || (e.b64 = 1), (e = u.encode(e)).length && (e = "?" + e), t + "://" + (-1 !== this.hostname.indexOf(":") ? "[" + this.hostname + "]" : this.hostname) + n + this.path + e;}, p.prototype.check = function () {return !(!f || "__initialize" in f && this.name === p.prototype.name);};}).call(this, n(53).Buffer);}, function (e, t) {}, function (e, t) {e.exports = function (e, t) {for (var n = [], o = (t = t || 0) || 0; o < e.length; o++) {n[o - t] = e[o];}return n;};}, function (e, t) {function n(e) {e = e || {}, this.ms = e.min || 100, this.max = e.max || 1e4, this.factor = e.factor || 2, this.jitter = e.jitter > 0 && e.jitter <= 1 ? e.jitter : 0, this.attempts = 0;}e.exports = n, n.prototype.duration = function () {var e = this.ms * Math.pow(this.factor, this.attempts++);if (this.jitter) {var t = Math.random(),n = Math.floor(t * this.jitter * e);e = 0 == (1 & Math.floor(10 * t)) ? e - n : e + n;}return 0 | Math.min(e, this.max);}, n.prototype.reset = function () {this.attempts = 0;}, n.prototype.setMin = function (e) {this.ms = e;}, n.prototype.setMax = function (e) {this.max = e;}, n.prototype.setJitter = function (e) {this.jitter = e;};}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = s(n(47)),i = s(n(9));function s(e) {return e && e.__esModule ? e : { "default": e };}var a = function (e) {function t(e) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, t);var n = function (e, t) {if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e : t;}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));return n.reconnectingObservers = [], n.addReconnectingObserver(e.onReconnecting), n.addDisconnectedObserver(e.onDisconnected), n;}return function (e, t) {if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);}(t, r["default"]), o(t, [{ key: "connect", value: function value(e) {(function n(e, t, o) {null === e && (e = Function.prototype);var r = Object.getOwnPropertyDescriptor(e, t);if (r === undefined) {var i = Object.getPrototypeOf(e);return null === i ? undefined : n(i, t, o);}if ("value" in r) return r.value;var s = r.get;return s === undefined ? undefined : s.call(o);})(t.prototype.__proto__ || Object.getPrototypeOf(t.prototype), "connect", this).call(this), this.io = this.io.connect(e.uri, e.opts), this.initListener();} }, { key: "doEmit", value: function value(e, t, n) {this.io.emit(e, t, n);} }, { key: "initListener", value: function value() {var e = this;this.io.on("reconnecting", function (t) {e.status = i["default"].CONNECTING, e.notify(e.reconnectingObservers, t);}), this.io.on("connect", function () {e.status = i["default"].CONNECTED, e.notify(e.connectedObservers);}), this.io.on("disconnect", function () {e.status = i["default"].DISCONNECTED, e.notify(e.disconnectedObservers);}), this.io.on("connect_error", function (e) {});} }, { key: "addReconnectingObserver", value: function value(e) {this.reconnectingObservers.push(e);} }]), t;}();t["default"] = a;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(0);var i = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.callback = r.noop, this.guidList = [], this.callback = t;}return o(e, [{ key: "onMessage", value: function value(e, t) {"string" == typeof t && (t = JSON.parse(t)), this.guidList.findIndex(function (e) {return e === t.i;}) > -1 || (this.guidList.unshift(t.i), this.guidList.length > 300 && this.guidList.pop(), this.callback(t));} }]), e;}();t["default"] = i;}, function (e, t, n) {"use strict";t.__esModule = !0, t.AnonymousUserIdRepository = void 0;var o = n(0),r = n(37),i = function () {function e() {}return e.get = function () {var t = e.storage;if (null !== t) {var n = t.get(e.ANONYMOUS_USER_ID_KEY);if (!o.calibrator.isEmpty(n)) return n;}return null;}, e.put = function (t) {var n = e.storage;null !== n && n.put(e.ANONYMOUS_USER_ID_KEY, t);}, e.storage = r.LocalStorageDispatcher.localStorage(), e.ANONYMOUS_USER_ID_KEY = "goeasy-anonymous-user-id", e;}();t.AnonymousUserIdRepository = i;}, function (e, t, n) {"use strict";t.__esModule = !0, t.clientInfo = void 0;var o = n(31),r = n(15),i = new (function () {function e() {this.platform = o.PlatformDetector.currentPlatform(), this.framework = r.FrameworkDetector.currentFramework(), this.z = this.toZ();}return e.prototype.toZ = function () {for (var e = JSON.stringify({ platform: this.platform, framework: this.framework }), t = "", n = 0; n < e.length; n++) {var o = e.charCodeAt(n);t += String.fromCharCode(o + 5);}return t;}, e;}())();t.clientInfo = i;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });t.ModuleType = { IM: "IM", PUBSUB: "PUBSUB" };}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(0),i = n(5),s = c(n(3)),a = c(n(1)),u = n(4);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.pubSub = null, this.pubSub = t;}return o(e, [{ key: "get", value: function value(e, t) {if (r.calibrator.isFunction(e.onSuccess) || (e.onSuccess = r.noop), r.calibrator.isFunction(e.onFailed) || (e.onFailed = r.noop), r.calibrator.isDef(e.channel)) {r.calibrator.isNumber(e.channel) && (e.channel = e.channel.toString());var n = new s["default"]({ name: i.EmitType.historyMessages, permission: a["default"].READ, params: e, singleTimeout: u.SocketTimeout.commonQuerySingle, totalTimeout: u.SocketTimeout.commonQueryTotal, success: function success(t) {e.onSuccess({ code: t.resultCode || t.code || 200, content: t.content });}, fail: function fail(t) {e.onFailed({ code: t.resultCode || t.code, content: t.content });} });this.pubSub.goEasySocket.emit(n);} else e.onFailed(res);} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(0),i = n(5),s = c(n(3)),a = c(n(1)),u = n(4);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.pubSub = null, this.pubSub = t;}return o(e, [{ key: "byChannel", value: function value(e) {var t = { channels: [], includeUsers: !1, distinct: !1 };if (r.calibrator.isFunction(e.onSuccess) || (e.onSuccess = r.noop), r.calibrator.isFunction(e.onFailed) || (e.onFailed = r.noop), Array.isArray(e.channels)) for (var n = 0; n < e.channels.length; n++) {var o = e.channels[n];r.calibrator.isNumber(o) && (o = o.toString()), t.channels.push(o);}if (0 != t.channels.length) {1 == e.includeUsers && (t.includeUsers = !0), 1 == e.distinct && (t.distinct = !0);var c = new s["default"]({ name: i.EmitType.hereNow, permission: a["default"].READ, params: t, singleTimeout: u.SocketTimeout.commonQuerySingle, totalTimeout: u.SocketTimeout.commonQueryTotal, success: function success(t) {var n = t.content,o = n.channels;for (var r in o) {if (o.hasOwnProperty(r)) {var i = o[r];i.users = i.users.map(function (e) {return e.data = JSON.parse(e.data), e;});}}e.onSuccess({ code: t.resultCode || t.code || 200, content: n });}, fail: function fail(t) {e.onFailed({ code: t.resultCode || t.code || 200, content: t.content });} });this.pubSub.goEasySocket.emit(c);} else e.onFailed({ code: 408, content: "channels is required." });} }, { key: "byUserId", value: function value(e) {var t = { userIds: [], distinct: !0 };if (r.calibrator.isFunction(e.onSuccess) || (e.onSuccess = r.noop), r.calibrator.isFunction(e.onFailed) || (e.onFailed = r.noop), r.calibrator.isDef(e.userIds) && (t.userIds = e.userIds), 0 == e.distinct && (t.distinct = !1), 0 === t.userIds.length) e.onFailed({ code: 400, content: "userIds is required" });else if (t.userIds.length > 500) e.onFailed({ code: 400, content: "userIds is over max length 500" });else {var n = new s["default"]({ name: i.EmitType.hereNowByUserIds, permission: a["default"].READ, params: t, singleTimeout: u.SocketTimeout.commonQuerySingle, totalTimeout: u.SocketTimeout.commonQueryTotal, success: function success(t) {var n = t.content;n = n.map(function (e) {var t = {};return t.id = e.userId, t.data = e.userData ? JSON.parse(e.userData) : {}, t;}), e.onSuccess({ code: t.resultCode || t.code || 200, content: n });}, fail: function fail(t) {e.onFailed({ code: t.resultCode || t.code || 200, content: t.content });} });this.pubSub.goEasySocket.emit(n);}} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(0),i = c(n(3)),s = n(5),a = c(n(1)),u = n(4);function c(e) {return e && e.__esModule ? e : { "default": e };}var l = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.pubSub = null, this.pubSub = t;}return o(e, [{ key: "publish", value: function value(e) {if (r.calibrator.isFunction(e.onFailed) || (e.onFailed = r.noop), r.calibrator.isFunction(e.onSuccess) || (e.onSuccess = r.noop), r.calibrator.isEmpty(e.channel)) throw { code: 400, content: "channel is required." };if (r.calibrator.isNumber(e.channel) && (e.channel = e.channel.toString()), r.calibrator.isEmpty(e.message)) throw { code: 400, content: "message is required." };if (r.calibrator.isNumber(e.message) && (e.message = e.message.toString()), !r.calibrator.isString(e.message)) throw { code: 400, content: "TypeError: message requires string." };if (r.calibrator.isObject(e.notification)) {if (r.calibrator.isEmpty(e.notification.title)) throw { code: 400, content: "notification.title is required." };if (!r.calibrator.isString(e.notification.title)) throw { code: 400, content: "TypeError: notification.title requires string." };if (e.notification.title.length > 32) throw { code: 400, content: "TypeError: notification.title over max length 32." };if (r.calibrator.isEmpty(e.notification.body)) throw { code: 400, content: "notification.body is required." };if (!r.calibrator.isString(e.notification.body)) throw { code: 400, content: "TypeError: notification.body must be string." };if (e.notification.body.length > 50) throw { code: 400, content: "notification.body over max length 50." };} else if (r.calibrator.isPrimitive(e.notification)) throw { code: 400, content: "TypeError: notification requires an object." };var t = { channel: e.channel, content: e.message, nt: e.notification, at: e.accessToken, guid: r.UUID.get() },n = new i["default"]({ name: s.EmitType.publish, params: t, singleTimeout: u.SocketTimeout.commonRequestSingle, totalTimeout: u.SocketTimeout.commonRequestTotal, permission: a["default"].WRITE, success: function success(t) {e.onSuccess({ code: 200, content: "ok" });}, fail: function fail(t) {e.onFailed({ code: t.resultCode, content: t.content });} });this.pubSub.goEasySocket.emit(n);} }]), e;}();t["default"] = l;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(0),i = h(n(3)),s = n(5),a = h(n(1)),u = h(n(138)),c = h(n(17)),l = n(4),f = h(n(9)),p = n(27),d = n(60);function h(e) {return e && e.__esModule ? e : { "default": e };}var y = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.subscriptions = [], this.pubSub = null, this.pubSub = t;}return o(e, [{ key: "initialGoEasySocket", value: function value() {var e = this.pubSub.goEasySocket;e.addMessageObserver(c["default"].message, this.onNewMessage.bind(this)), e.addExpiredReconnectedObserver(this.onExpiredReconnected.bind(this)), e.addConnectedObserver(this.onReconnected.bind(this));} }, { key: "resubscribe", value: function value() {var e = this.subscriptions.slice(0);this.subscriptions = [];for (var t = 0; t < e.length; t++) {0 != e[t].channels.length && this.subscribe(e[t]);}} }, { key: "onExpiredReconnected", value: function value() {this.resubscribe();} }, { key: "onReconnected", value: function value() {this.pubSub.neverConnect || this.pubSub.goEasySocket.status == f["default"].RECONNECTED || this.resubscribe();} }, { key: "onNewMessage", value: function value(e) {if (!(e.n.indexOf("_presence") > -1)) {e.a && this.pubSub.goEasySocket.sendAck("ack", { publishGuid: e.i });var t = { time: e.t, channel: e.n, content: e.c };p.GoEasyEventCenter.fire(d.PUBSUB_INTERNAL_EVENTS.MESSAGE_RECEIVED, e), this.findSubscriptionByChannel(t.channel).onMessage(t);}} }, { key: "formatOptions", value: function value(e) {var t = !r.calibrator.isEmpty(e.channel),n = !r.calibrator.isEmpty(e.channels);if (this.formatCallback(e), r.calibrator.isFunction(e.onMessage) || (e.onMessage = r.noop), !t && !n) return e.onFailed({ code: 400, content: "channel is required" }), !1;if (!t || !n) {if (t && (r.calibrator.isNumber(e.channel) && (e.channel = e.channel.toString()), e.channels = [e.channel]), n) {if (!Array.isArray(e.channels) || 0 == e.channels.length) return void e.onFailed({ code: 400, content: "channels must be an array" });if (e.channels.length > 500) return e.onFailed({ code: 400, content: "channels over max length:500" }), !1;for (var o = 0, i = e.channels.length; o < i; o++) {if (r.calibrator.isNumber(e.channels[o]) && (e.channels[o] = e.channels[o].toString()), r.calibrator.isEmpty(e.channels[o])) return e.onFailed({ code: 400, content: "Channels array contains empty channel" }), !1;}}return !0;}e.onFailed({ code: 400, content: "subscribe to either channel or channels, not both" });} }, { key: "formatCallback", value: function value(e) {r.calibrator.isFunction(e.onSuccess) || (e.onSuccess = r.noop), r.calibrator.isFunction(e.onFailed) || (e.onFailed = r.noop);} }, { key: "subscribe", value: function value(e) {var t = this;if (this.formatOptions(e)) {var n = new i["default"]({ name: s.EmitType.subscribe, permission: a["default"].READ, singleTimeout: l.SocketTimeout.commonInfiniteSingle, totalTimeout: l.SocketTimeout.commonInfiniteTotal, params: { channels: e.channels, accessToken: e.accessToken }, success: function success() {var n = new u["default"]({ channels: e.channels, accessToken: e.accessToken, onSuccess: e.onSuccess, onFailed: e.onFailed, onMessage: e.onMessage });t.subscriptions.push(n), e.onSuccess({ code: 200, content: "ok" });}, fail: function fail(t) {e.onFailed({ code: t.resultCode, content: t.content });} });this.pubSub.goEasySocket.emit(n);}} }, { key: "unsubscribe", value: function value(e) {var t = this;if (this.formatCallback(e), r.calibrator.isDef(e.channel)) {if (r.calibrator.isNumber(e.channel) && (e.channel = e.channel.toString()), this.findSubscriptionByChannel(e.channel)) {var n = new i["default"]({ name: s.EmitType.unsubscribe, params: { channel: e.channel }, permission: a["default"].READ, singleTimeout: l.SocketTimeout.commonRequestSingle, totalTimeout: l.SocketTimeout.commonRequestTotal, success: function success() {e.onSuccess({ code: 200, content: "ok" }), t.removeChannel(e.channel);}, fail: function fail(t) {e.onFailed({ code: t.resultCode, content: t.content });} });this.pubSub.goEasySocket.emit(n);} else e.onFailed({ code: 400, content: "channel[" + e.channel + "] is not subscribed" });} else e.onFailed({ code: 400, content: "channel is required" });} }, { key: "removeChannel", value: function value(e) {for (var t = 0; t < this.subscriptions.length; t++) {for (var n = this.subscriptions[t].channels, o = 0; o < n.length; o++) {if (n[o] == e) {this.subscriptions[t].channels.splice(o, 1);break;}}}} }, { key: "findSubscriptionByChannel", value: function value(e) {for (var t = !1, n = null, o = this.subscriptions.length - 1; o >= 0; o--) {for (var r = this.subscriptions[o].channels, i = 0; i < r.length; i++) {if (r[i] == e) {t = !0, n = this.subscriptions[o];break;}}if (t) break;}return n;} }]), e;}();t["default"] = y;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}();var r = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.channels = [], this.accessToken = null, this.onSuccess = null, this.onFailed = null, this.onMessage = null, this.channels = t.channels, this.accessToken = t.accessToken, this.onSuccess = t.onSuccess, this.onFailed = t.onFailed, this.onMessage = t.onMessage;}return o(e, [{ key: "empty", value: function value() {} }]), e;}();t["default"] = r;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}(),r = n(0),i = p(n(3)),s = n(5),a = p(n(1)),u = n(4),c = p(n(17)),l = p(n(140)),f = p(n(9));function p(e) {return e && e.__esModule ? e : { "default": e };}var d = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.presenters = [], this.pubSub = null, this.pubSub = t;}return o(e, [{ key: "initialGoEasySocket", value: function value() {var e = this.pubSub.goEasySocket;e.addMessageObserver(c["default"].message, this.onNewMessage.bind(this)), e.addExpiredReconnectedObserver(this.onExpiredReconnected.bind(this)), e.addConnectedObserver(this.onReconnected.bind(this));} }, { key: "resubscribe", value: function value() {var e = this.presenters.slice(0);this.presenters = [];for (var t = 0; t < e.length; t++) {for (var n = 0; n < e[t].channels.length; n++) {var o = e[t].channels[n].split("_presence");e[t].channels[n] = o[0];}0 != e[t].channels.length && this.subscribePresence(e[t]);}} }, { key: "onExpiredReconnected", value: function value() {this.resubscribe();} }, { key: "onReconnected", value: function value() {this.pubSub.neverConnect || this.pubSub.goEasySocket.status == f["default"].RECONNECTED || this.resubscribe();} }, { key: "onNewMessage", value: function value(e) {if (-1 != e.n.indexOf("_presence")) {var t = this.findPresenceByChannel(e.n);if (t) {var n = JSON.parse(e.c);n.events = n.events.map(function (e) {var t = e.userData ? JSON.parse(e.userData) : {};return { time: e.time, action: e.action, id: e.userId, data: t };}), t.onPresence(n);}}} }, { key: "formatOptions", value: function value(e) {var t = !r.calibrator.isEmpty(e.channel),n = !r.calibrator.isEmpty(e.channels);if (this.formatCallback(e), r.calibrator.isFunction(e.onPresence) || (e.onPresence = r.noop), !t && !n) return e.onFailed({ code: 400, content: "channel is required" }), !1;if (!t || !n) {if (t && (r.calibrator.isNumber(e.channel) && (e.channel = e.channel.toString()), e.channels = [e.channel]), n) {if (!Array.isArray(e.channels) || 0 == e.channels.length) return void e.onFailed({ code: 400, content: "channels must be an array" });if (e.channels.length > 500) return e.onFailed({ code: 400, content: "channels over max length:500" }), !1;for (var o = 0, i = e.channels.length; o < i; o++) {if (r.calibrator.isNumber(e.channels[o]) && (e.channels[o] = e.channels[o].toString()), r.calibrator.isEmpty(e.channels[o])) return e.onFailed({ code: 400, content: "Channels array contains empty channel" }), !1;}}return !0;}e.onFailed({ code: 400, content: "subscribe to either channel or channels, not both" });} }, { key: "formatCallback", value: function value(e) {r.calibrator.isFunction(e.onSuccess) || (e.onSuccess = r.noop), r.calibrator.isFunction(e.onFailed) || (e.onFailed = r.noop);} }, { key: "subscribePresence", value: function value(e) {var t = this;if (this.formatOptions(e)) {Array.isArray(e.channels) && (e.channels = e.channels.map(function (e) {return e += "_presence";}));var n = new i["default"]({ name: s.EmitType.subscribe, permission: a["default"].READ, singleTimeout: u.SocketTimeout.commonInfiniteSingle, totalTimeout: u.SocketTimeout.commonInfiniteTotal, params: { channels: e.channels }, success: function success() {var n = new l["default"]({ channels: e.channels, onSuccess: e.onSuccess, onFailed: e.onFailed, onPresence: e.onPresence });t.presenters.push(n), e.onSuccess({ code: 200, content: "ok" });}, fail: function fail(t) {e.onFailed({ code: t.resultCode, content: t.content });} });this.pubSub.goEasySocket.emit(n);}} }, { key: "unsubscribePresence", value: function value(e) {var t = this;if (this.formatCallback(e), r.calibrator.isDef(e.channel)) {if (e.channel += "_presence", this.findPresenceByChannel(e.channel)) {var n = new i["default"]({ name: s.EmitType.unsubscribe, params: { channel: e.channel }, permission: a["default"].READ, singleTimeout: u.SocketTimeout.commonRequestSingle, totalTimeout: u.SocketTimeout.commonRequestTotal, success: function success() {e.onSuccess({ code: 200, content: "ok" }), t.removeChannel(e.channel);}, fail: function fail(t) {e.onFailed({ code: t.resultCode, content: t.content });} });this.pubSub.goEasySocket.emit(n);} else e.onFailed({ code: 400, content: "channel[" + e.channel + "] is not subscribed" });} else e.onFailed({ code: 400, content: "channel is required" });} }, { key: "removeChannel", value: function value(e) {for (var t = 0; t < this.presenters.length; t++) {for (var n = this.presenters[t].channels, o = 0; o < n.length; o++) {if (n[o] == e) {this.presenters[t].channels.splice(o, 1);break;}}}} }, { key: "findPresenceByChannel", value: function value(e) {for (var t = !1, n = null, o = this.presenters.length - 1; o >= 0; o--) {for (var r = this.presenters[o].channels, i = 0; i < r.length; i++) {if (r[i] == e) {t = !0, n = this.presenters[o];break;}}if (t) break;}return n;} }]), e;}();t["default"] = d;}, function (e, t, n) {"use strict";Object.defineProperty(t, "__esModule", { value: !0 });var o = function () {function e(e, t) {for (var n = 0; n < t.length; n++) {var o = t[n];o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);}}return function (t, n, o) {return n && e(t.prototype, n), o && e(t, o), t;};}();var r = function () {function e(t) {!function (e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}(this, e), this.channels = [], this.onSuccess = null, this.onFailed = null, this.onPresence = null, this.channels = t.channels, this.onSuccess = t.onSuccess, this.onFailed = t.onFailed, this.onPresence = t.onPresence;}return o(e, [{ key: "empty", value: function value() {} }]), e;}();t["default"] = r;}, function (e, t, n) {"use strict";var o = this && this.__read || function (e, t) {var n = "function" == typeof Symbol && e[Symbol.iterator];if (!n) return e;var o,r,i = n.call(e),s = [];try {for (; (void 0 === t || t-- > 0) && !(o = i.next()).done;) {s.push(o.value);}} catch (a) {r = { error: a };} finally {try {o && !o.done && (n = i["return"]) && n.call(i);} finally {if (r) throw r.error;}}return s;};t.__esModule = !0, t.GoEasyNotification = void 0;var r = n(59),i = n(0),s = n(27),a = n(46),u = n(60),c = n(15),l = n(31),f = n(16),p = n(11),d = n(7),h = function () {function e(e) {this.uniappPlugin = null, this.regIdPromise = null, this.onClickNotificationCallback = null, this.allowNotification = e, this.supportNotification() && (this.uniappPlugin = uni.requireNativePlugin("GoEasy-Uniapp"), this.uniappPlugin ? this.regIdPromise = this.askRegId() : console.warn("No GoEasy-Uniapp Native Plugin."), this.listenNewMessage());}return e.prototype.listenNewMessage = function () {var e = this;s.GoEasyEventCenter.on(a.IM_INTERNAL_EVENTS.MESSAGE_RECEIVED, function (t) {return e.onReceivedIMMessage(t);}), s.GoEasyEventCenter.on(u.PUBSUB_INTERNAL_EVENTS.MESSAGE_RECEIVED, function (t) {return e.onReceivedPubSubMessage(t);});}, e.prototype.onReceivedIMMessage = function (e) {var t = this;if (i.calibrator.isObject(e.nt) && r.uniApp.runningBackend()) {var n = f["default"].assemble(e),s = { id: n.messageId, tm: n.timestamp, t: n.type, sid: n.senderId, rid: n.receiverId, gid: n.groupId, tt: e.t, nt: e.nt, sd: null, gd: null };e.t === d.ConversationType.PRIVATE ? p.im._dataCache.loadData(n.senderId, d.ConversationType.PRIVATE).then(function (e) {s.sd = JSON.stringify(e), t.createLocalNotification(s);})["catch"](function (e) {t.createLocalNotification(s);}) : e.t === d.ConversationType.GROUP ? Promise.all([p.im._dataCache.loadData(n.senderId, d.ConversationType.PRIVATE), p.im._dataCache.loadData(n.groupId, d.ConversationType.GROUP)]).then(function (e) {var n = o(e, 2),r = n[0],i = n[1];s.sd = JSON.stringify(r), s.gd = JSON.stringify(i), t.createLocalNotification(s);})["catch"](function (e) {t.createLocalNotification(s);}) : this.createLocalNotification(s);}}, e.prototype.onReceivedPubSubMessage = function (e) {if (i.calibrator.isObject(e.nt) && r.uniApp.runningBackend()) {var t = { ch: e.n, ctt: e.c, nt: e.nt };this.createLocalNotification(t);}}, e.prototype.createLocalNotification = function (e) {var t = e.nt.t,n = e.nt.c,o = Object.assign({ title: t, body: n }, e, { g: 1 });delete o.nt, i.calibrator.isObject(o) && o.body && o.title ? this.uniappPlugin ? this.uniappPlugin.createLocalNotification(o) : "undefined" != typeof plus && plus.push.createMessage(o.body, JSON.stringify(o), { title: o.title }) : console.warn("The notification message must contain the <title> and <body> fields");}, e.prototype.askRegId = function () {var e = this,t = null,n = 0,o = function o() {return new Promise(function (r, i) {e.uniappPlugin.regId(function (e) {r(e);}, function (r) {if (!(1e6 === r.data.code && n <= 10)) return clearTimeout(t), i(r);t = setTimeout(function () {n++, e.regIdPromise = o();}, 3500);});});};return o();}, e.prototype.getRegIdPromise = function () {return this.regIdPromise;}, e.prototype.supportNotification = function () {var e = l.PlatformDetector.currentPlatform(),t = c.FrameworkDetector.currentFramework();return this.allowNotification && t === c.Framework.UNIAPP && (e === l.Platform.APP_ANDROID || e === l.Platform.APP_IOS);}, e.prototype.parseMessage = function (e) {return e.ch ? { channel: e.ch, content: e.ctt } : { messageId: e.id, timestamp: e.tm, type: e.t, senderId: e.sid, senderData: e.sd ? JSON.parse(e.sd) : undefined, toType: e.tt, groupId: e.gid, groupData: e.gd ? JSON.parse(e.gd) : undefined };}, e.prototype.listenIOSUserNotificationClick = function () {var e = this;this.uniappPlugin.onClickNotification(function (t) {if (e.availableIntent(t)) {var n = e.parseMessage(t);e.onClickNotificationCallback(n);}});}, e.prototype.listenAndroidNewIntent = function () {var e = this;plus.globalEvent.addEventListener("newintent", function () {var t = plus.runtime.arguments;try {var n = JSON.parse(t);if (n = e.extactIntentIfXiaoMi(n), !e.availableIntent(n)) return;var o = e.parseMessage(n);e.onClickNotificationCallback(o);} catch (r) {}}, !1);}, e.prototype.listenPlusClickNotification = function () {var e = this;plus.push.addEventListener("click", function (t) {if (t && t.payload) try {var n = "string" == typeof t.payload ? JSON.parse(t.payload) : t.payload,o = e.parseMessage(n);e.onClickNotificationCallback(o);} catch (r) {}});}, e.prototype.listenGoEasyClickNotification = function () {var e = l.PlatformDetector.currentPlatform();e === l.Platform.APP_IOS ? this.listenIOSUserNotificationClick() : e === l.Platform.APP_ANDROID && this.listenAndroidNewIntent(), this.getIntentData();}, e.prototype.availableIntent = function (e) {return e && Object.keys(e).length && e.g && 1 === parseInt(e.g);}, e.prototype.extactIntentIfXiaoMi = function (e) {var t = /content=\{(\{.*\})\},/;if (e.key_message && t.exec(e.key_message)) {var n = e.key_message.match(t);e = n.length ? JSON.parse(n[1]) : null;}return e;}, e.prototype.getIntentData = function () {var e = this;this.uniappPlugin.getIntentData(function (t) {if (e.availableIntent(t)) {var n = e.parseMessage(t);e.onClickNotificationCallback(n);}});}, e.prototype.onClickNotification = function (e) {if (this.supportNotification()) {if (!i.calibrator.isFunction(e)) throw new Error("The arguments must be a function.");null === this.onClickNotificationCallback ? (this.onClickNotificationCallback = e, this.uniappPlugin ? this.listenGoEasyClickNotification() : this.listenPlusClickNotification()) : console.warn("The onClickNotification event has been listened on. Please do not listen to it more than once.");} else console.warn("The current environment doesn't support or allowNotification is false.");}, e;}();t.GoEasyNotification = h;}])["default"];});
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
- /***/ }),
- /***/ 11:
- /*!******************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/lib/imservice.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _restapi = _interopRequireDefault(__webpack_require__(/*! ./restapi */ 12));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
- function Friend(uuid, name, avatar) {
- this.uuid = uuid;
- this.name = name;
- this.avatar = avatar;
- }
- function Group(uuid, name, avatar) {
- this.uuid = uuid;
- this.name = name;
- this.avatar = avatar;
- }
- function IMService(goEasy, GoEasy) {
- //当前用户
- this.currentUser = null;
- //我的群
- this.groups = {};
- // GoEasy 模块
- this.GoEasy = GoEasy;
- //goEasy 实例对象
- this.goEasy = goEasy;
- //私聊消息记录,map格式,每个好友对应一个数组
- this.privateMessages = {};
- //群聊消息记录,map格式,每个群对应一个数组
- this.groupMessages = {};
- /*
- * 监听器们
- *
- * 可以在页面里,根据需求,重写以下监听器,
- * 便于当各种事件触发时,页面能够执行对应的响应
- *
- */
- //收到一条私聊消息
- this.onNewPrivateMessageReceive = function (friendId, message) {};
- //收到一条群聊消息
- this.onNewGroupMessageReceive = function (groupId, message) {};
- }
- //获取群成员
- IMService.prototype.getGroupMembers = function (groupId) {
- var members = _restapi.default.findGroupMembers(groupId);
- var membersMap = {};
- members.map(function (item) {
- membersMap[item.uuid] = item;
- });
- return membersMap;
- };
- IMService.prototype.findGroupById = function (groupId) {
- var group = _restapi.default.findGroupById(groupId);
- return new Group(group.uuid, group.name, group.avatar);
- };
- IMService.prototype.findFriendById = function (userId) {
- var user = _restapi.default.findUserById(userId);
- return new Friend(user.uuid, user.name, user.avatar);
- };
- IMService.prototype.getGroupMessages = function (groupId) {
- if (!this.groupMessages[groupId]) {
- this.groupMessages[groupId] = [];
- }
- return this.groupMessages[groupId];
- };
- IMService.prototype.getPrivateMessages = function (friendId) {
- if (!this.privateMessages[friendId]) {
- this.privateMessages[friendId] = [];
- }
- return this.privateMessages[friendId];
- };
- //连接GoEasy
- IMService.prototype.connect = function (currentUser) {
- this.currentUser = currentUser;
- var userData = {
- name: this.currentUser.name,
- avatar: this.currentUser.avatar };
- //初始化相关的监听器
- this.initialListeners();
- this.goEasy.connect({
- id: this.currentUser.uuid,
- data: userData,
- onSuccess: function onSuccess() {
- //连接成功
- console.log("GoEasy connect successfully.");
- },
- onFailed: function onFailed(error) {
- //连接失败
- console.log("Failed to connect GoEasy, code:" + error.code + ",error:" + error.content);
- },
- onProgress: function onProgress(attempts) {//连接或自动重连中
- console.log("GoEasy is connecting", attempts);
- } });
- // this.subscribeGroupMessage(currentUser);
- };
- IMService.prototype.subscribeGroupMessage = function () {
- var groups = _restapi.default.findGroups(this.currentUser);
- var groupIds = groups.map(function (item) {return item.uuid;});
- this.goEasy.im.subscribeGroup({
- groupIds: groupIds,
- onSuccess: function onSuccess() {
- //订阅成功
- console.log('订阅群消息成功');
- },
- onFailed: function onFailed(error) {
- //订阅失败
- console.log('订阅群消息失败');
- } });
- };
- //初始化监听器
- IMService.prototype.initialListeners = function () {var _this = this;
- //监听私聊消息
- this.goEasy.im.on(this.GoEasy.IM_EVENT.PRIVATE_MESSAGE_RECEIVED, function (message) {
- //更新私聊消息记录
- var friendId;
- if (_this.currentUser.uuid === message.senderId) {
- friendId = message.receiverId;
- } else {
- friendId = message.senderId;
- }
- var friendMessages = _this.getPrivateMessages(friendId);
- friendMessages.push(message);
- //如果页面传入了相应的listener,执行listener
- _this.onNewPrivateMessageReceive(friendId, message);
- });
- //监听群聊消息
- this.goEasy.im.on(this.GoEasy.IM_EVENT.GROUP_MESSAGE_RECEIVED, function (message) {
- var groupId = message.groupId;
- //更新群聊消息记录
- var groupMessages = _this.getGroupMessages(groupId);
- groupMessages.push(message);
- //如果页面传入了相应的listener,执行listener
- _this.onNewGroupMessageReceive(groupId, message);
- });
- };var _default =
- IMService;exports.default = _default;
- /***/ }),
- /***/ 12:
- /*!****************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/lib/restapi.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //用户数据示例
- var users = [
- {
- "uuid": "08c0a6ec-a42b-47b2-bb1e-15e0f5f9a19a",
- "name": "Mattie",
- "password": "123",
- "avatar": '../static/images_go/Avatar-1.png' },
- {
- "uuid": "3bb179af-bcc5-4fe0-9dac-c05688484649",
- "name": "Wallace",
- "password": "123",
- "avatar": '../static/images_go/Avatar-2.png' },
- {
- "uuid": "fdee46b0-4b01-4590-bdba-6586d7617f95",
- "name": "Tracy",
- "password": "123",
- "avatar": '/static/images/Avatar-3.png' },
- {
- "uuid": "33c3693b-dbb0-4bc9-99c6-fa77b9eb763f",
- "name": "Juanita",
- "password": "123",
- "avatar": '/static/images/Avatar-4.png' }];
- //群数据示例
- var groups = [
- {
- "uuid": "group-a42b-47b2-bb1e-15e0f5f9a19a",
- "name": "小程序交流群",
- "avatar": '/static/images/wx.png',
- "userList": ['08c0a6ec-a42b-47b2-bb1e-15e0f5f9a19a', '3bb179af-bcc5-4fe0-9dac-c05688484649', 'fdee46b0-4b01-4590-bdba-6586d7617f95', '33c3693b-dbb0-4bc9-99c6-fa77b9eb763f'] },
- {
- "uuid": "group-4b01-4590-bdba-6586d7617f95",
- "name": "UniApp交流群",
- "avatar": '/static/images/uniapp.png',
- "userList": ['08c0a6ec-a42b-47b2-bb1e-15e0f5f9a19a', 'fdee46b0-4b01-4590-bdba-6586d7617f95', '33c3693b-dbb0-4bc9-99c6-fa77b9eb763f'] },
- {
- "uuid": "group-dbb0-4bc9-99c6-fa77b9eb763f",
- "name": "GoEasy交流群",
- "avatar": '/static/images/goeasy.jpeg',
- "userList": ['08c0a6ec-a42b-47b2-bb1e-15e0f5f9a19a', '3bb179af-bcc5-4fe0-9dac-c05688484649'] }];
- function RestApi() {
- }
- RestApi.prototype.findFriends = function (user) {
- var friendList = users.filter(function (v) {return v.uuid != user.uuid;});
- return friendList;
- };
- RestApi.prototype.findGroups = function (user) {
- var groupList = groups.filter(function (v) {return v.userList.find(function (id) {return id == user.uuid;});});
- return groupList;
- };
- RestApi.prototype.findUser = function (username, password) {
- var user = users.find(function (user) {return user.name === username && user.password === password;});
- if (user) {
- return {
- uuid: user.uuid,
- avatar: user.avatar,
- name: user.name };
- }
- return user;
- };
- RestApi.prototype.findGroupById = function (groupId) {
- var group = groups.find(function (group) {return group.uuid == groupId;});
- return group;
- };
- RestApi.prototype.findUserById = function (userId) {
- var user = users.find(function (user) {return user.uuid == userId;});
- return user;
- };
- RestApi.prototype.findGroupMembers = function (groupId) {
- var members = [];
- var group = groups.find(function (v) {return v.uuid == groupId;});
- users.map(function (user) {
- if (group.userList.find(function (v) {return v == user.uuid;})) {
- members.push(user);
- }
- });
- return members;
- };var _default =
- new RestApi();exports.default = _default;
- /***/ }),
- /***/ 13:
- /*!***************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/commonData.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
- var _commonUserTest = _interopRequireDefault(__webpack_require__(/*! ./commonUserTest.js */ 14));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // 公共数据
- var _default =
- {
- //角色,0代表普通用户,1代表商家(两个小程序,在此设定即可)
- // data_token: commonUserTest.data_token_data,
- // sys_role: commonUserTest.data_token_data['role'],
- //sys_role: 1, //0为非商家
- sys_role: 1,
- //sys_role: 0,
- // 招聘信息发布字段
- releaseInfo: {
- sub_arr0: [{
- key: 'title',
- name: '标题',
- type: 'text' },
- // {
- // key: 'feetotal',
- // name: '总金额/人',
- // type: 'number',
- // mention: '平台会因供需情况收取相应的服务费再支付给应聘者。'
- // },
- // {
- // key: 'linker_name',
- // name: '联系人',
- // type: 'text',
- // },
- {
- key: 'linker_phone',
- name: '联系电话',
- type: 'text' }],
- sub_arr1: [{
- key: 'need_total',
- name: '需求人数',
- type: 'number' }],
- sub_arr1_s: [{
- key: 'need_total',
- name: '需求总人数',
- type: 'number' },
- {
- key: 'need_perday',
- name: '每天发布人数',
- type: 'number' }],
- sub_arr2: [{
- key: 'work_desc',
- name: '岗位详情',
- type: 'text' },
- {
- key: 'requirements',
- name: '工作要求',
- type: 'text' }] },
- // 隐私政策
- policy: '使用协议及隐私条款详情使用协议及隐私条款详情使用协议及隐私条款详情使用协议及隐私条款详情',
- // 企业信息textarea字段
- resume_info_item_edit_merchant: [{
- key: 'company_desc',
- name: '公司简介' }],
- // 个人简历textarea字段
- resume_info_item_edit: [{
- key: 'nowaddr',
- name: '详细地址' },
- {
- key: 'work_history',
- name: '工作经历' },
- {
- key: 'work_skills',
- name: '特长技能' },
- {
- key: 'self_evaluation',
- name: '自我评价' }],
- // 企业信息input字段
- user_info_item_merchant: [{
- key: 'linker_name',
- name: '联系人',
- type: 'text' },
- {
- key: 'company_addr',
- name: '公司地址',
- type: 'text' }],
- // 个人简历input字段
- user_info_item: [{
- key: 'linker_phone',
- name: '联系电话',
- type: 'text' },
- {
- key: 'nickname',
- name: '昵称',
- type: 'text' },
- {
- key: 'nowaddr',
- name: '住址',
- type: 'text' },
- {
- key: 'nation_name',
- name: '民族',
- type: 'text' },
- {
- key: 'birthaddr',
- name: '籍贯',
- type: 'text' },
- {
- key: 'body_weight',
- name: '体重(kg)',
- type: 'number' },
- {
- key: 'body_height',
- name: '身高(cm)',
- type: 'number' }],
- // 个人我的竖向菜单
- my_menu_collect: [{
- key: 'resumeCheck?allow=1',
- name: '我的简历',
- name_mer: '公司信息',
- icon: 'menu_resume',
- need_login: true },
- {
- key: 'appraisal',
- name: '我的评价',
- name_mer: '我的评价',
- icon: 'menu_eva',
- need_login: true },
- {
- key: 'activity',
- name: '活动订单',
- icon: 'menu_act',
- need_login: true },
- {
- key: 'myGroups',
- name: '我的组队',
- icon: 'menu_group',
- need_login: true },
- {
- key: 'toRecruit',
- name: '我要招聘',
- icon: 'menu_recruit',
- need_login: false },
- {
- key: 'makeMoney',
- name: '分享赚钱',
- icon: 'recruit_share',
- need_login: true },
- {
- key: 'about',
- name: '关于平台',
- icon: 'menu_about',
- need_login: false },
- {
- key: 'service/index',
- name: '服务中心',
- icon: 'menu_service',
- need_login: false },
- {
- key: 'quit',
- name: '退出登录',
- icon: 'menu_exit',
- need_login: false },
- {
- key: '../merchant/personal/completeOrderList',
- name: '已完成订单',
- icon: 'menu_evaluate',
- need_login: true },
- {
- key: 'grant',
- name: '已授权经理',
- icon: 'menu_check',
- need_login: true },
- {
- key: 'verify',
- name: '扫码核销',
- icon: 'menu_check',
- need_login: true },
- {
- key: 'toMember',
- name: '进入用户端',
- icon: 'menu_user',
- need_login: false }],
- // 钱包过程处理
- todo_wal_title_obj: {
- buyPrepay: {
- bizCatalog: 'NAccountEntity',
- handleMode: 'buyPrepay',
- title: '充值人数' },
- wxRecharge: {
- bizCatalog: 'WorkerEntity',
- handleMode: 'wxRecharge',
- title: '充值金额' },
- withdraw: {
- bizCatalog: 'AccountEntity',
- handleMode: 'withdraw',
- title: '提现金额' } },
- // 评价模式
- appraisal_query_arr: function appraisal_query_arr(id) {return [{
- index: 0,
- title_show: '此商家的评价',
- name: '会员查看商家被评价',
- toTraderId: id,
- bizCatalog: 2 },
- {
- index: 1,
- title_show: '此会员的评价',
- name: '商家查看会员被评价',
- toWorkerId: id,
- bizCatalog: 3 },
- {
- index: 2,
- title_show: '我收到的评价',
- name: '商家查看自己的被评价',
- toTraderId: id,
- bizCatalog: 2 },
- {
- index: 3,
- title_show: '我收到的评价',
- name: '会员查看自己的被评价',
- toWorkerId: id,
- bizCatalog: 3 },
- {
- index: 4,
- title_show: '我的评价',
- name: '会员查看自己的评价',
- fromWorkerId: id,
- bizCatalog: 2 },
- {
- index: 5,
- title_show: '我的评价',
- name: '商家查看自己的评价',
- fromTraderId: id,
- bizCatalog: 3 }];},
- // 订单过程处理
- todo_title_obj: {
- enrollCancel: {
- title: '取消报名',
- remarks: '请填写取消原因',
- is_require: true,
- handleMode: 'enrollCancel',
- todo: '' },
- //会员
- startWork: {
- title: '开始工作',
- remarks: '操作备注',
- handleMode: 'processControl',
- todo: 'start' },
- //会员
- finishWork: {
- title: '完成工作',
- remarks: '操作备注',
- handleMode: 'processControl',
- todo: 'finish' },
- //会员
- refuseSign: {
- title: '拒绝录用',
- remarks: '请填写拒绝原因',
- is_require: true,
- handleMode: 'auditEnroll',
- todo: 'refuse' },
- //商家
- allowSign: {
- title: '录用',
- remarks: '操作备注',
- handleMode: 'auditEnroll',
- todo: 'allow' },
- //商家
- refusePay: {
- title: '拒绝支付',
- remarks: '请填写拒绝支付的原因',
- is_require: true,
- handleMode: 'denyPay',
- todo: 'refuse' },
- //商家
- allowPay: {
- title: '支付',
- remarks: '操作备注',
- handleMode: 'paySettle',
- todo: 'refuse' },
- //商家
- appraise: {
- title: '评价',
- remarks: '评价内容',
- handleMode: 'appraise',
- todo: '' }
- //商家
- },
- //会员端订单状态列
- order_status_arr_merchant: [{
- name: '待录用',
- color: '#089D96',
- wkstatus: 2 },
- {
- name: '进行中',
- color: '#FF8111',
- wkstatus: 91,
- children: [{
- name: '已审核待开工',
- wkstatus: 3 },
- {
- name: '已开始工作',
- wkstatus: 5 }] },
- {
- name: '待结算',
- color: '#DB1B14',
- wkstatus: 6 },
- {
- name: '已结算',
- color: '#089D96',
- wkstatus: 7 },
- {
- name: '其他工单',
- color: '#DB1B14',
- wkstatus: 92,
- key: 'ss_exceptTotal',
- children: [{
- name: '全部',
- name_mer: '全部',
- wkstatus: '',
- key: 'all' },
- {
- name: '被驳回',
- name_mer: '已驳回',
- wkstatus: 4,
- key: 'ss_unreadWKTotal_1' },
- {
- name: '已取消',
- name_mer: '取消报名',
- wkstatus: 8,
- key: 'ss_unreadWKTotal_2' },
- {
- name: '商家违约',
- name_mer: '已违约',
- wkstatus: 9,
- key: 'ss_unreadWKTotal_3' },
- {
- name: '被动取消',
- name_mer: '被动取消',
- wkstatus: 10,
- key: 'ss_unreadWKTotal_4' },
- {
- name: '未结算',
- name_mer: '未结算',
- wkstatus: 11,
- key: 'ss_unreadWKTotal_5' },
- {
- name: '其他',
- name_mer: '其他',
- wkstatus: 14,
- key: 'ss_unreadWKTotal_Other' }] }],
- // 需要提交的招聘测试数据
- fake_sub_data: {
- settle_catalog: 1, //是否批量招聘
- title: '测试标题1127', //标题
- profile_photo: 'http://youxinpin.oss-cn-beijing.aliyuncs.com/zskp/userHead/20211126/1637896282220.jpg', //招聘头图
- feeper: 99.99, //每人金额 单位元 保留2位小数
- meals_providing: 0, //是否管饭 0-不管;1-管饭;
- begin_datetime: '2021-10-10 20:12:11', //起始日期
- finish_datetime: '2021-10-15 20:12:11', //截至日期
- begin_hour: "早8", //上班时间
- finish_hour: "18:30", //下班时间
- need_total: 100, //需求总人数
- need_perday: 10, //每天需求人数
- linker_name: "王启", //联系人姓名
- linker_phone: "18612345678", //联系人电话
- age_mode: 1, //年龄, 0-不限;1-限制
- age_min: 16, //最小年龄
- age_max: 36, //最大年龄
- gender_mode: 0, //性别, 0-不限;1-限男;2-限女;
- work_addr: '豪威大厦', //工作地点
- work_addr_lng: "117.33", //经度117.333
- work_addr_lat: "39.99", //纬度39.33
- work_desc: "工作内容工作内容", //工作内容
- requirements: "能歌善舞", //工作要求
- enroll_audit: 0, //是否需要审核
- settle_mode: 1 //核销模式
- } };exports.default = _default;
- /***/ }),
- /***/ 14:
- /*!*******************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/commonUserTest.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 测试账号
- // console.log('系统信息')
- // console.log(uni.getSystemInfoSync())
- var device = '';
- if (uni.getSystemInfoSync()['platform'] == 'android') {
- if (uni.getSystemInfoSync()['windowWidth'] ==
- 360 && uni.getSystemInfoSync()['windowHeight'] == 640) {
- device = 'galaxyS5';
- }
- if (uni.getSystemInfoSync()['windowWidth'] ==
- 411 && uni.getSystemInfoSync()['windowHeight'] == 731) {
- device = 'Pixel2';
- }
- if (uni.getSystemInfoSync()['windowWidth'] ==
- 411 && uni.getSystemInfoSync()['windowHeight'] == 823) {
- device = 'Pixel2XL';
- }
- } else {
- if (uni.getSystemInfoSync()['windowWidth'] ==
- 320 && uni.getSystemInfoSync()['windowHeight'] == 568) {
- device = 'iphone5';
- }
- if (uni.getSystemInfoSync()['windowWidth'] ==
- 375 && uni.getSystemInfoSync()['windowHeight'] == 667) {
- device = 'iphone6';
- }
- if (uni.getSystemInfoSync()['windowWidth'] == 414 &&
- uni.getSystemInfoSync()['windowHeight'] == 736) {
- device = 'iphone6Plus';
- }
- if (uni.getSystemInfoSync()['windowWidth'] ==
- 375 && uni.getSystemInfoSync()['windowHeight'] == 812) {
- device = 'iphoneX';
- }
- if (uni.getSystemInfoSync()['windowWidth'] ==
- 768 && uni.getSystemInfoSync()['windowHeight'] == 1024) {
- device = 'iPad';
- }
- }
- // console.log(device)
- var data_token = {
- // 商家安卓
- galaxyS5: { //商家/王启利
- FOREND_TOKEN: '0_16410285003b52483389fff69b346aded3cb2fd7c3',
- phone: '17640181459',
- role: 1 },
- Pixel2: { //商家/刘丽丽
- FOREND_TOKEN: '0_1641708193e465a78a2001815048b7578d5b0c522c',
- phone: '15620638138',
- role: 1 },
- Pixel2XL: { //商家/郑丹
- FOREND_TOKEN: '0_1641029086bdd9a0a3eee33a57599c1190551af157',
- phone: '18920787806',
- role: 1 },
- // 非商家苹果
- iphone5: { //非商家/郑丹
- FOREND_TOKEN: '0_16410286940877303e14d960c9531ad3ed30ad1893',
- phone: '18920787806',
- role: 0 },
- iPad: { //非商家/刘丽丽
- FOREND_TOKEN: '0_16410286321c07727beb9b333892b76df64888134b',
- phone: '15620638138',
- role: 0 },
- iphone6: { //非商家/王启利
- FOREND_TOKEN: '0_16411115964c58fe94cc824e171ab1c737c5b0ff3b',
- phone: '17640181459',
- role: 0 },
- iphone6Plus: { //非商家/尤
- FOREND_TOKEN: '0_1641708193abc2303e086db9de0b09f541eeb9b6b0',
- phone: '18920407769',
- role: 0 },
- iphoneX: { //非商家/庞亚静
- FOREND_TOKEN: '0_1641708193101e6c433fb28188718dc8b672527dbe',
- phone: '18222906683',
- role: 0 } };var _default =
- {
- data_token_data: data_token[device] };exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
- /***/ }),
- /***/ 17:
- /*!**********************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
- \**********************************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode, /* vue-cli only */
- components, // fixed by xxxxxx auto components
- renderjs // fixed by xxxxxx renderjs
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // fixed by xxxxxx auto components
- if (components) {
- if (!options.components) {
- options.components = {}
- }
- var hasOwn = Object.prototype.hasOwnProperty
- for (var name in components) {
- if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
- options.components[name] = components[name]
- }
- }
- }
- // fixed by xxxxxx renderjs
- if (renderjs) {
- (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
- this[renderjs.__module] = this
- });
- (options.mixins || (options.mixins = [])).push(renderjs)
- }
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /***/ 174:
- /*!*********************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/lib/EmojiDecoder.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- 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;} /*
- * @Author: jack.lu
- * @Date: 2020/9/11
- * @Last Modified by: jack.lu
- * @Last Modified time: 2020/9/11 4:35 下午
- */var
- EmojiDecoder = /*#__PURE__*/function () {
- function EmojiDecoder(url, emojiMap) {_classCallCheck(this, EmojiDecoder);_defineProperty(this, "emojiMap", null);_defineProperty(this, "url", "");_defineProperty(this, "patterns", []);_defineProperty(this, "metaChars", /[[\]{}()*+?.\\|^$\-,&#\s]/g);
- this.url = url || '';
- this.emojiMap = emojiMap || {};
- for (var i in this.emojiMap) {
- if (this.emojiMap.hasOwnProperty(i)) {
- this.patterns.push('(' + i.replace(this.metaChars, "\\$&") + ')');
- }
- }
- }_createClass(EmojiDecoder, [{ key: "decode", value: function decode(
- text) {var _this = this;
- return text.replace(new RegExp(this.patterns.join('|'), 'g'), function (match) {
- return typeof _this.emojiMap[match] != 'undefined' ? '<img height="20rpx" width="20rpx" src="' + _this.url + _this.emojiMap[match] + '" />' : match;
- });
- } }]);return EmojiDecoder;}();var _default =
- EmojiDecoder;exports.default = _default;
- /***/ }),
- /***/ 2:
- /*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var g;
- // This works in non-strict mode
- g = (function() {
- return this;
- })();
- try {
- // This works if eval is allowed (see CSP)
- g = g || new Function("return this")();
- } catch (e) {
- // This works if the window reference is available
- if (typeof window === "object") g = window;
- }
- // g can still be undefined, but nothing to do about it...
- // We return undefined, instead of nothing here, so it's
- // easier to handle this case. if(!global) { ...}
- module.exports = g;
- /***/ }),
- /***/ 211:
- /*!****************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/common/city.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- // 所有城市
- var cityObj = [{
- 'id': '35',
- 'provincecode': '150000',
- 'city': "\u963F\u62C9\u5584\u76DF",
- 'code': '152900',
- 'initial': 'A' },
- {
- 'id': '38',
- 'provincecode': '210000',
- 'city': "\u978D\u5C71\u5E02",
- 'code': '210300',
- 'initial': 'A' },
- {
- 'id': '105',
- 'provincecode': '340000',
- 'city': "\u5B89\u5E86\u5E02",
- 'code': '340800',
- 'initial': 'A' },
- {
- 'id': '156',
- 'provincecode': '410000',
- 'city': "\u5B89\u9633\u5E02",
- 'code': '410500',
- 'initial': 'A' },
- {
- 'id': '256',
- 'provincecode': '510000',
- 'city': "\u963F\u575D\u85CF\u65CF\u7F8C\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '513200',
- 'initial': 'A' },
- {
- 'id': '262',
- 'provincecode': '520000',
- 'city': "\u5B89\u987A\u5E02",
- 'code': '520400',
- 'initial': 'A' },
- {
- 'id': '289',
- 'provincecode': '540000',
- 'city': "\u963F\u91CC\u5730\u533A",
- 'code': '542500',
- 'initial': 'A' },
- {
- 'id': '299',
- 'provincecode': '610000',
- 'city': "\u5B89\u5EB7\u5E02",
- 'code': '610900',
- 'initial': 'A' },
- {
- 'id': '335',
- 'provincecode': '650000',
- 'city': "\u963F\u514B\u82CF\u5730\u533A",
- 'code': '652900',
- 'initial': 'A' },
- {
- 'id': '341',
- 'provincecode': '650000',
- 'city': "\u963F\u52D2\u6CF0\u5730\u533A",
- 'code': '654300',
- 'initial': 'A' },
- {
- 'id': '1',
- 'provincecode': '110100',
- 'city': "\u5317\u4EAC\u5E02",
- 'code': '110100',
- 'initial': 'B' },
- {
- 'id': '7',
- 'provincecode': '130000',
- 'city': "\u4FDD\u5B9A\u5E02",
- 'code': '130600',
- 'initial': 'B' },
- {
- 'id': '25',
- 'provincecode': '150000',
- 'city': "\u5305\u5934\u5E02",
- 'code': '150200',
- 'initial': 'B' },
- {
- 'id': '31',
- 'provincecode': '150000',
- 'city': "\u5DF4\u5F66\u6DD6\u5C14\u5E02",
- 'code': '150800',
- 'initial': 'B' },
- {
- 'id': '40',
- 'provincecode': '210000',
- 'city': "\u672C\u6EAA\u5E02",
- 'code': '210500',
- 'initial': 'B' },
- {
- 'id': '55',
- 'provincecode': '220000',
- 'city': "\u767D\u5C71\u5E02",
- 'code': '220600',
- 'initial': 'B' },
- {
- 'id': '57',
- 'provincecode': '220000',
- 'city': "\u767D\u57CE\u5E02",
- 'code': '220800',
- 'initial': 'B' },
- {
- 'id': '100',
- 'provincecode': '340000',
- 'city': "\u868C\u57E0\u5E02",
- 'code': '340300',
- 'initial': 'B' },
- {
- 'id': '150',
- 'provincecode': '370000',
- 'city': "\u6EE8\u5DDE\u5E02",
- 'code': '371600',
- 'initial': 'B' },
- {
- 'id': '222',
- 'provincecode': '450000',
- 'city': "\u5317\u6D77\u5E02",
- 'code': '450500',
- 'initial': 'B' },
- {
- 'id': '227',
- 'provincecode': '450000',
- 'city': "\u767E\u8272\u5E02",
- 'code': '451000',
- 'initial': 'B' },
- {
- 'id': '254',
- 'provincecode': '510000',
- 'city': "\u5DF4\u4E2D\u5E02",
- 'code': '511900',
- 'initial': 'B' },
- {
- 'id': '265',
- 'provincecode': '520000',
- 'city': "\u6BD5\u8282\u5730\u533A",
- 'code': '522400',
- 'initial': 'B' },
- {
- 'id': '271',
- 'provincecode': '530000',
- 'city': "\u4FDD\u5C71\u5E02",
- 'code': '530500',
- 'initial': 'B' },
- {
- 'id': '293',
- 'provincecode': '610000',
- 'city': "\u5B9D\u9E21\u5E02",
- 'code': '610300',
- 'initial': 'B' },
- {
- 'id': '304',
- 'provincecode': '620000',
- 'city': "\u767D\u94F6\u5E02",
- 'code': '620400',
- 'initial': 'B' },
- {
- 'id': '333',
- 'provincecode': '650000',
- 'city': "\u535A\u5C14\u5854\u62C9\u8499\u53E4\u81EA\u6CBB\u5DDE",
- 'code': '652700',
- 'initial': 'B' },
- {
- 'id': '334',
- 'provincecode': '650000',
- 'city': "\u5DF4\u97F3\u90ED\u695E\u8499\u53E4\u81EA\u6CBB\u5DDE",
- 'code': '652800',
- 'initial': 'B' },
- {
- 'id': '',
- 'provincecode': '500100',
- 'city': "\u91CD\u5E86\u5E02",
- 'code': '500100',
- 'initial': 'C' },
- {
- 'id': '9',
- 'provincecode': '130000',
- 'city': "\u627F\u5FB7\u5E02",
- 'code': '130800',
- 'initial': 'C' },
- {
- 'id': '10',
- 'provincecode': '130000',
- 'city': "\u6CA7\u5DDE\u5E02",
- 'code': '130900',
- 'initial': 'C' },
- {
- 'id': '16',
- 'provincecode': '140000',
- 'city': "\u957F\u6CBB\u5E02",
- 'code': '140400',
- 'initial': 'C' },
- {
- 'id': '27',
- 'provincecode': '150000',
- 'city': "\u8D64\u5CF0\u5E02",
- 'code': '150400',
- 'initial': 'C' },
- {
- 'id': '48',
- 'provincecode': '210000',
- 'city': "\u671D\u9633\u5E02",
- 'code': '211300',
- 'initial': 'C' },
- {
- 'id': '50',
- 'provincecode': '220000',
- 'city': "\u957F\u6625\u5E02",
- 'code': '220100',
- 'initial': 'C' },
- {
- 'id': '77',
- 'provincecode': '320000',
- 'city': "\u5E38\u5DDE\u5E02",
- 'code': '320400',
- 'initial': 'C' },
- {
- 'id': '107',
- 'provincecode': '340000',
- 'city': "\u6EC1\u5DDE\u5E02",
- 'code': '341100',
- 'initial': 'C' },
- {
- 'id': '110',
- 'provincecode': '340000',
- 'city': "\u5DE2\u6E56\u5E02",
- 'code': '341400',
- 'initial': 'C' },
- {
- 'id': '113',
- 'provincecode': '340000',
- 'city': "\u6C60\u5DDE\u5E02",
- 'code': '341700',
- 'initial': 'C' },
- {
- 'id': '183',
- 'provincecode': '430000',
- 'city': "\u957F\u6C99\u5E02",
- 'code': '430100',
- 'initial': 'C' },
- {
- 'id': '189',
- 'provincecode': '430000',
- 'city': "\u5E38\u5FB7\u5E02",
- 'code': '430700',
- 'initial': 'C' },
- {
- 'id': '192',
- 'provincecode': '430000',
- 'city': "\u90F4\u5DDE\u5E02",
- 'code': '431000',
- 'initial': 'C' },
- {
- 'id': '215',
- 'provincecode': '440000',
- 'city': "\u6F6E\u5DDE\u5E02",
- 'code': '445100',
- 'initial': 'C' },
- {
- 'id': '231',
- 'provincecode': '450000',
- 'city': "\u5D07\u5DE6\u5E02",
- 'code': '451400',
- 'initial': 'C' },
- {
- 'id': '238',
- 'provincecode': '510000',
- 'city': "\u6210\u90FD\u5E02",
- 'code': '510100',
- 'initial': 'C' },
- {
- 'id': '276',
- 'provincecode': '530000',
- 'city': "\u695A\u96C4\u5F5D\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '532300',
- 'initial': 'C' },
- {
- 'id': '285',
- 'provincecode': '540000',
- 'city': "\u660C\u90FD\u5730\u533A",
- 'code': '542100',
- 'initial': 'C' },
- {
- 'id': '332',
- 'provincecode': '650000',
- 'city': "\u660C\u5409\u56DE\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '652300',
- 'initial': 'C' },
- {
- 'id': '14',
- 'provincecode': '140000',
- 'city': "\u5927\u540C\u5E02",
- 'code': '140200',
- 'initial': 'D' },
- {
- 'id': '37',
- 'provincecode': '210000',
- 'city': "\u5927\u8FDE\u5E02",
- 'code': '210200',
- 'initial': 'D' },
- {
- 'id': '41',
- 'provincecode': '210000',
- 'city': "\u4E39\u4E1C\u5E02",
- 'code': '210600',
- 'initial': 'D' },
- {
- 'id': '64',
- 'provincecode': '230000',
- 'city': "\u5927\u5E86\u5E02",
- 'code': '230600',
- 'initial': 'D' },
- {
- 'id': '71',
- 'provincecode': '230000',
- 'city': "\u5927\u5174\u5B89\u5CAD\u5730\u533A",
- 'code': '232700',
- 'initial': 'D' },
- {
- 'id': '139',
- 'provincecode': '370000',
- 'city': "\u4E1C\u8425\u5E02",
- 'code': '370500',
- 'initial': 'D' },
- {
- 'id': '148',
- 'provincecode': '370000',
- 'city': "\u5FB7\u5DDE\u5E02",
- 'code': '371400',
- 'initial': 'D' },
- {
- 'id': '213',
- 'provincecode': '440000',
- 'city': "\u4E1C\u839E\u5E02",
- 'code': '441900',
- 'initial': 'D' },
- {
- 'id': '242',
- 'provincecode': '510000',
- 'city': "\u5FB7\u9633\u5E02",
- 'code': '510600',
- 'initial': 'D' },
- {
- 'id': '252',
- 'provincecode': '510000',
- 'city': "\u8FBE\u5DDE\u5E02",
- 'code': '511700',
- 'initial': 'D' },
- {
- 'id': '280',
- 'provincecode': '530000',
- 'city': "\u5927\u7406\u767D\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '532900',
- 'initial': 'D' },
- {
- 'id': '281',
- 'provincecode': '530000',
- 'city': "\u5FB7\u5B8F\u50A3\u65CF\u666F\u9887\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '533100',
- 'initial': 'D' },
- {
- 'id': '283',
- 'provincecode': '530000',
- 'city': "\u8FEA\u5E86\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '533400',
- 'initial': 'D' },
- {
- 'id': '311',
- 'provincecode': '620000',
- 'city': "\u5B9A\u897F\u5E02",
- 'code': '621100',
- 'initial': 'D' },
- {
- 'id': '29',
- 'provincecode': '150000',
- 'city': "\u9102\u5C14\u591A\u65AF\u5E02",
- 'code': '150600',
- 'initial': 'E' },
- {
- 'id': '174',
- 'provincecode': '420000',
- 'city': "\u9102\u5DDE\u5E02",
- 'code': '420700',
- 'initial': 'E' },
- {
- 'id': '181',
- 'provincecode': '420000',
- 'city': "\u6069\u65BD\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '422800',
- 'initial': 'E' },
- {
- 'id': '39',
- 'provincecode': '210000',
- 'city': "\u629A\u987A\u5E02",
- 'code': '210400',
- 'initial': 'F' },
- {
- 'id': '44',
- 'provincecode': '210000',
- 'city': "\u961C\u65B0\u5E02",
- 'code': '210900',
- 'initial': 'F' },
- {
- 'id': '108',
- 'provincecode': '340000',
- 'city': "\u961C\u9633\u5E02",
- 'code': '341200',
- 'initial': 'F' },
- {
- 'id': '115',
- 'provincecode': '350000',
- 'city': "\u798F\u5DDE\u5E02",
- 'code': '350100',
- 'initial': 'F' },
- {
- 'id': '133',
- 'provincecode': '360000',
- 'city': "\u629A\u5DDE\u5E02",
- 'code': '361000',
- 'initial': 'F' },
- {
- 'id': '202',
- 'provincecode': '440000',
- 'city': "\u4F5B\u5C71\u5E02",
- 'code': '440600',
- 'initial': 'F' },
- {
- 'id': '223',
- 'provincecode': '450000',
- 'city': "\u9632\u57CE\u6E2F\u5E02",
- 'code': '450600',
- 'initial': 'F' },
- {
- 'id': '130',
- 'provincecode': '360000',
- 'city': "\u8D63\u5DDE\u5E02",
- 'code': '360700',
- 'initial': 'G' },
- {
- 'id': '197',
- 'provincecode': '440000',
- 'city': "\u5E7F\u5DDE\u5E02",
- 'code': '440100',
- 'initial': 'G' },
- {
- 'id': '220',
- 'provincecode': '450000',
- 'city': "\u6842\u6797\u5E02",
- 'code': '450300',
- 'initial': 'G' },
- {
- 'id': '225',
- 'provincecode': '450000',
- 'city': "\u8D35\u6E2F\u5E02",
- 'code': '450800',
- 'initial': 'G' },
- {
- 'id': '244',
- 'provincecode': '510000',
- 'city': "\u5E7F\u5143\u5E02",
- 'code': '510800',
- 'initial': 'G' },
- {
- 'id': '251',
- 'provincecode': '510000',
- 'city': "\u5E7F\u5B89\u5E02",
- 'code': '511600',
- 'initial': 'G' },
- {
- 'id': '257',
- 'provincecode': '510000',
- 'city': "\u7518\u5B5C\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '513300',
- 'initial': 'G' },
- {
- 'id': '259',
- 'provincecode': '520000',
- 'city': "\u8D35\u9633\u5E02",
- 'code': '520100',
- 'initial': 'G' },
- {
- 'id': '314',
- 'provincecode': '620000',
- 'city': "\u7518\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '623000',
- 'initial': 'G' },
- {
- 'id': '320',
- 'provincecode': '630000',
- 'city': "\u679C\u6D1B\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '632600',
- 'initial': 'G' },
- {
- 'id': '326',
- 'provincecode': '640000',
- 'city': "\u56FA\u539F\u5E02",
- 'code': '640400',
- 'initial': 'G' },
- {
- 'id': '5',
- 'provincecode': '130000',
- 'city': "\u90AF\u90F8\u5E02",
- 'code': '130400',
- 'initial': 'H' },
- {
- 'id': '12',
- 'provincecode': '130000',
- 'city': "\u8861\u6C34\u5E02",
- 'code': '131100',
- 'initial': 'H' },
- {
- 'id': '24',
- 'provincecode': '150000',
- 'city': "\u547C\u548C\u6D69\u7279\u5E02",
- 'code': '150100',
- 'initial': 'H' },
- {
- 'id': '30',
- 'provincecode': '150000',
- 'city': "\u547C\u4F26\u8D1D\u5C14\u5E02",
- 'code': '150700',
- 'initial': 'H' },
- {
- 'id': '49',
- 'provincecode': '210000',
- 'city': "\u846B\u82A6\u5C9B\u5E02",
- 'code': '211400',
- 'initial': 'H' },
- {
- 'id': '59',
- 'provincecode': '230000',
- 'city': "\u54C8\u5C14\u6EE8\u5E02",
- 'code': '230100',
- 'initial': 'H' },
- {
- 'id': '62',
- 'provincecode': '230000',
- 'city': "\u9E64\u5C97\u5E02",
- 'code': '230400',
- 'initial': 'H' },
- {
- 'id': '69',
- 'provincecode': '230000',
- 'city': "\u9ED1\u6CB3\u5E02",
- 'code': '231100',
- 'initial': 'H' },
- {
- 'id': '81',
- 'provincecode': '320000',
- 'city': "\u6DEE\u5B89\u5E02",
- 'code': '320800',
- 'initial': 'H' },
- {
- 'id': '87',
- 'provincecode': '330000',
- 'city': "\u676D\u5DDE\u5E02",
- 'code': '330100',
- 'initial': 'H' },
- {
- 'id': '91',
- 'provincecode': '330000',
- 'city': "\u6E56\u5DDE\u5E02",
- 'code': '330500',
- 'initial': 'H' },
- {
- 'id': '98',
- 'provincecode': '340000',
- 'city': "\u5408\u80A5\u5E02",
- 'code': '340100',
- 'initial': 'H' },
- {
- 'id': '101',
- 'provincecode': '340000',
- 'city': "\u6DEE\u5357\u5E02",
- 'code': '340400',
- 'initial': 'H' },
- {
- 'id': '103',
- 'provincecode': '340000',
- 'city': "\u6DEE\u5317\u5E02",
- 'code': '340600',
- 'initial': 'H' },
- {
- 'id': '106',
- 'provincecode': '340000',
- 'city': "\u9EC4\u5C71\u5E02",
- 'code': '341000',
- 'initial': 'H' },
- {
- 'id': '112',
- 'provincecode': '340000',
- 'city': "\u4EB3\u5DDE\u5E02",
- 'code': '341600',
- 'initial': 'H' },
- {
- 'id': '151',
- 'provincecode': '370000',
- 'city': "\u8377\u6CFD\u5E02",
- 'code': '371700',
- 'initial': 'H' },
- {
- 'id': '157',
- 'provincecode': '410000',
- 'city': "\u9E64\u58C1\u5E02",
- 'code': '410600',
- 'initial': 'H' },
- {
- 'id': '170',
- 'provincecode': '420000',
- 'city': "\u9EC4\u77F3\u5E02",
- 'code': '420200',
- 'initial': 'H' },
- {
- 'id': '178',
- 'provincecode': '420000',
- 'city': "\u9EC4\u5188\u5E02",
- 'code': '421100',
- 'initial': 'H' },
- {
- 'id': '186',
- 'provincecode': '430000',
- 'city': "\u8861\u9633\u5E02",
- 'code': '430400',
- 'initial': 'H' },
- {
- 'id': '194',
- 'provincecode': '430000',
- 'city': "\u6000\u5316\u5E02",
- 'code': '431200',
- 'initial': 'H' },
- {
- 'id': '207',
- 'provincecode': '440000',
- 'city': "\u60E0\u5DDE\u5E02",
- 'code': '441300',
- 'initial': 'H' },
- {
- 'id': '210',
- 'provincecode': '440000',
- 'city': "\u6CB3\u6E90\u5E02",
- 'code': '441600',
- 'initial': 'H' },
- {
- 'id': '228',
- 'provincecode': '450000',
- 'city': "\u8D3A\u5DDE\u5E02",
- 'code': '451100',
- 'initial': 'H' },
- {
- 'id': '229',
- 'provincecode': '450000',
- 'city': "\u6CB3\u6C60\u5E02",
- 'code': '451200',
- 'initial': 'H' },
- {
- 'id': '232',
- 'provincecode': '460000',
- 'city': "\u6D77\u53E3\u5E02",
- 'code': '460100',
- 'initial': 'H' },
- {
- 'id': '277',
- 'provincecode': '530000',
- 'city': "\u7EA2\u6CB3\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '532500',
- 'initial': 'H' },
- {
- 'id': '297',
- 'provincecode': '610000',
- 'city': "\u6C49\u4E2D\u5E02",
- 'code': '610700',
- 'initial': 'H' },
- {
- 'id': '316',
- 'provincecode': '630000',
- 'city': "\u6D77\u4E1C\u5730\u533A",
- 'code': '632100',
- 'initial': 'H' },
- {
- 'id': '317',
- 'provincecode': '630000',
- 'city': "\u6D77\u5317\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '632200',
- 'initial': 'H' },
- {
- 'id': '318',
- 'provincecode': '630000',
- 'city': "\u9EC4\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '632300',
- 'initial': 'H' },
- {
- 'id': '319',
- 'provincecode': '630000',
- 'city': "\u6D77\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '632500',
- 'initial': 'H' },
- {
- 'id': '322',
- 'provincecode': '630000',
- 'city': "\u6D77\u897F\u8499\u53E4\u65CF\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '632800',
- 'initial': 'H' },
- {
- 'id': '331',
- 'provincecode': '650000',
- 'city': "\u54C8\u5BC6\u5730\u533A",
- 'code': '652200',
- 'initial': 'H' },
- {
- 'id': '338',
- 'provincecode': '650000',
- 'city': "\u548C\u7530\u5730\u533A",
- 'code': '653200',
- 'initial': 'H' },
- {
- 'id': '17',
- 'provincecode': '140000',
- 'city': "\u664B\u57CE\u5E02",
- 'code': '140500',
- 'initial': 'J' },
- {
- 'id': '19',
- 'provincecode': '140000',
- 'city': "\u664B\u4E2D\u5E02",
- 'code': '140700',
- 'initial': 'J' },
- {
- 'id': '42',
- 'provincecode': '210000',
- 'city': "\u9526\u5DDE\u5E02",
- 'code': '210700',
- 'initial': 'J' },
- {
- 'id': '51',
- 'provincecode': '220000',
- 'city': "\u5409\u6797\u5E02",
- 'code': '220200',
- 'initial': 'J' },
- {
- 'id': '61',
- 'provincecode': '230000',
- 'city': "\u9E21\u897F\u5E02",
- 'code': '230300',
- 'initial': 'J' },
- {
- 'id': '66',
- 'provincecode': '230000',
- 'city': "\u4F73\u6728\u65AF\u5E02",
- 'code': '230800',
- 'initial': 'J' },
- {
- 'id': '90',
- 'provincecode': '330000',
- 'city': "\u5609\u5174\u5E02",
- 'code': '330400',
- 'initial': 'J' },
- {
- 'id': '93',
- 'provincecode': '330000',
- 'city': "\u91D1\u534E\u5E02",
- 'code': '330700',
- 'initial': 'J' },
- {
- 'id': '125',
- 'provincecode': '360000',
- 'city': "\u666F\u5FB7\u9547\u5E02",
- 'code': '360200',
- 'initial': 'J' },
- {
- 'id': '127',
- 'provincecode': '360000',
- 'city': "\u4E5D\u6C5F\u5E02",
- 'code': '360400',
- 'initial': 'J' },
- {
- 'id': '131',
- 'provincecode': '360000',
- 'city': "\u5409\u5B89\u5E02",
- 'code': '360800',
- 'initial': 'J' },
- {
- 'id': '135',
- 'provincecode': '370000',
- 'city': "\u6D4E\u5357\u5E02",
- 'code': '370100',
- 'initial': 'J' },
- {
- 'id': '142',
- 'provincecode': '370000',
- 'city': "\u6D4E\u5B81\u5E02",
- 'code': '370800',
- 'initial': 'J' },
- {
- 'id': '159',
- 'provincecode': '410000',
- 'city': "\u7126\u4F5C\u5E02",
- 'code': '410800',
- 'initial': 'J' },
- {
- 'id': '175',
- 'provincecode': '420000',
- 'city': "\u8346\u95E8\u5E02",
- 'code': '420800',
- 'initial': 'J' },
- {
- 'id': '177',
- 'provincecode': '420000',
- 'city': "\u8346\u5DDE\u5E02",
- 'code': '421000',
- 'initial': 'J' },
- {
- 'id': '203',
- 'provincecode': '440000',
- 'city': "\u6C5F\u95E8\u5E02",
- 'code': '440700',
- 'initial': 'J' },
- {
- 'id': '216',
- 'provincecode': '440000',
- 'city': "\u63ED\u9633\u5E02",
- 'code': '445200',
- 'initial': 'J' },
- {
- 'id': '302',
- 'provincecode': '620000',
- 'city': "\u5609\u5CEA\u5173\u5E02",
- 'code': '620200',
- 'initial': 'J' },
- {
- 'id': '303',
- 'provincecode': '620000',
- 'city': "\u91D1\u660C\u5E02",
- 'code': '620300',
- 'initial': 'J' },
- {
- 'id': '309',
- 'provincecode': '620000',
- 'city': "\u9152\u6CC9\u5E02",
- 'code': '620900',
- 'initial': 'J' },
- {
- 'id': '153',
- 'provincecode': '410000',
- 'city': "\u5F00\u5C01\u5E02",
- 'code': '410200',
- 'initial': 'K' },
- {
- 'id': '268',
- 'provincecode': '530000',
- 'city': "\u6606\u660E\u5E02",
- 'code': '530100',
- 'initial': 'K' },
- {
- 'id': '329',
- 'provincecode': '650000',
- 'city': "\u514B\u62C9\u739B\u4F9D\u5E02",
- 'code': '650200',
- 'initial': 'K' },
- {
- 'id': '336',
- 'provincecode': '650000',
- 'city': "\u514B\u5B5C\u52D2\u82CF\u67EF\u5C14\u514B\u5B5C\u81EA\u6CBB\u5DDE",
- 'code': '653000',
- 'initial': 'K' },
- {
- 'id': '337',
- 'provincecode': '650000',
- 'city': "\u5580\u4EC0\u5730\u533A",
- 'code': '653100',
- 'initial': 'K' },
- {
- 'id': '11',
- 'provincecode': '130000',
- 'city': "\u5ECA\u574A\u5E02",
- 'code': '131000',
- 'initial': 'L' },
- {
- 'id': '22',
- 'provincecode': '140000',
- 'city': "\u4E34\u6C7E\u5E02",
- 'code': '141000',
- 'initial': 'L' },
- {
- 'id': '23',
- 'provincecode': '140000',
- 'city': "\u5415\u6881\u5E02",
- 'code': '141100',
- 'initial': 'L' },
- {
- 'id': '45',
- 'provincecode': '210000',
- 'city': "\u8FBD\u9633\u5E02",
- 'code': '211000',
- 'initial': 'L' },
- {
- 'id': '53',
- 'provincecode': '220000',
- 'city': "\u8FBD\u6E90\u5E02",
- 'code': '220400',
- 'initial': 'L' },
- {
- 'id': '80',
- 'provincecode': '320000',
- 'city': "\u8FDE\u4E91\u6E2F\u5E02",
- 'code': '320700',
- 'initial': 'L' },
- {
- 'id': '97',
- 'provincecode': '330000',
- 'city': "\u4E3D\u6C34\u5E02",
- 'code': '331100',
- 'initial': 'L' },
- {
- 'id': '111',
- 'provincecode': '340000',
- 'city': "\u516D\u5B89\u5E02",
- 'code': '341500',
- 'initial': 'L' },
- {
- 'id': '122',
- 'provincecode': '350000',
- 'city': "\u9F99\u5CA9\u5E02",
- 'code': '350800',
- 'initial': 'L' },
- {
- 'id': '146',
- 'provincecode': '370000',
- 'city': "\u83B1\u829C\u5E02",
- 'code': '371200',
- 'initial': 'L' },
- {
- 'id': '147',
- 'provincecode': '370000',
- 'city': "\u4E34\u6C82\u5E02",
- 'code': '371300',
- 'initial': 'L' },
- {
- 'id': '149',
- 'provincecode': '370000',
- 'city': "\u804A\u57CE\u5E02",
- 'code': '371500',
- 'initial': 'L' },
- {
- 'id': '154',
- 'provincecode': '410000',
- 'city': "\u6D1B\u9633\u5E02",
- 'code': '410300',
- 'initial': 'L' },
- {
- 'id': '162',
- 'provincecode': '410000',
- 'city': "\u6F2F\u6CB3\u5E02",
- 'code': '411100',
- 'initial': 'L' },
- {
- 'id': '195',
- 'provincecode': '430000',
- 'city': "\u5A04\u5E95\u5E02",
- 'code': '431300',
- 'initial': 'L' },
- {
- 'id': '219',
- 'provincecode': '450000',
- 'city': "\u67F3\u5DDE\u5E02",
- 'code': '450200',
- 'initial': 'L' },
- {
- 'id': '230',
- 'provincecode': '450000',
- 'city': "\u6765\u5BBE\u5E02",
- 'code': '451300',
- 'initial': 'L' },
- {
- 'id': '241',
- 'provincecode': '510000',
- 'city': "\u6CF8\u5DDE\u5E02",
- 'code': '510500',
- 'initial': 'L' },
- {
- 'id': '247',
- 'provincecode': '510000',
- 'city': "\u4E50\u5C71\u5E02",
- 'code': '511100',
- 'initial': 'L' },
- {
- 'id': '258',
- 'provincecode': '510000',
- 'city': "\u51C9\u5C71\u5F5D\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '513400',
- 'initial': 'L' },
- {
- 'id': '260',
- 'provincecode': '520000',
- 'city': "\u516D\u76D8\u6C34\u5E02",
- 'code': '520200',
- 'initial': 'L' },
- {
- 'id': '273',
- 'provincecode': '530000',
- 'city': "\u4E3D\u6C5F\u5E02",
- 'code': '530700',
- 'initial': 'L' },
- {
- 'id': '275',
- 'provincecode': '530000',
- 'city': "\u4E34\u6CA7\u5E02",
- 'code': '530900',
- 'initial': 'L' },
- {
- 'id': '284',
- 'provincecode': '540000',
- 'city': "\u62C9\u8428\u5E02",
- 'code': '540100',
- 'initial': 'L' },
- {
- 'id': '290',
- 'provincecode': '540000',
- 'city': "\u6797\u829D\u5730\u533A",
- 'code': '542600',
- 'initial': 'L' },
- {
- 'id': '301',
- 'provincecode': '620000',
- 'city': "\u5170\u5DDE\u5E02",
- 'code': '620100',
- 'initial': 'L' },
- {
- 'id': '312',
- 'provincecode': '620000',
- 'city': "\u9647\u5357\u5E02",
- 'code': '621200',
- 'initial': 'L' },
- {
- 'id': '313',
- 'provincecode': '620000',
- 'city': "\u4E34\u590F\u56DE\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '622900',
- 'initial': 'L' },
- {
- 'id': '68',
- 'provincecode': '230000',
- 'city': "\u7261\u4E39\u6C5F\u5E02",
- 'code': '231000',
- 'initial': 'M' },
- {
- 'id': '102',
- 'provincecode': '340000',
- 'city': "\u9A6C\u978D\u5C71\u5E02",
- 'code': '340500',
- 'initial': 'M' },
- {
- 'id': '205',
- 'provincecode': '440000',
- 'city': "\u8302\u540D\u5E02",
- 'code': '440900',
- 'initial': 'M' },
- {
- 'id': '208',
- 'provincecode': '440000',
- 'city': "\u6885\u5DDE\u5E02",
- 'code': '441400',
- 'initial': 'M' },
- {
- 'id': '243',
- 'provincecode': '510000',
- 'city': "\u7EF5\u9633\u5E02",
- 'code': '510700',
- 'initial': 'M' },
- {
- 'id': '249',
- 'provincecode': '510000',
- 'city': "\u7709\u5C71\u5E02",
- 'code': '511400',
- 'initial': 'M' },
- {
- 'id': '74',
- 'provincecode': '320000',
- 'city': "\u5357\u4EAC\u5E02",
- 'code': '320100',
- 'initial': 'N' },
- {
- 'id': '79',
- 'provincecode': '320000',
- 'city': "\u5357\u901A\u5E02",
- 'code': '320600',
- 'initial': 'N' },
- {
- 'id': '88',
- 'provincecode': '330000',
- 'city': "\u5B81\u6CE2\u5E02",
- 'code': '330200',
- 'initial': 'N' },
- {
- 'id': '121',
- 'provincecode': '350000',
- 'city': "\u5357\u5E73\u5E02",
- 'code': '350700',
- 'initial': 'N' },
- {
- 'id': '123',
- 'provincecode': '350000',
- 'city': "\u5B81\u5FB7\u5E02",
- 'code': '350900',
- 'initial': 'N' },
- {
- 'id': '124',
- 'provincecode': '360000',
- 'city': "\u5357\u660C\u5E02",
- 'code': '360100',
- 'initial': 'N' },
- {
- 'id': '164',
- 'provincecode': '410000',
- 'city': "\u5357\u9633\u5E02",
- 'code': '411300',
- 'initial': 'N' },
- {
- 'id': '218',
- 'provincecode': '450000',
- 'city': "\u5357\u5B81\u5E02",
- 'code': '450100',
- 'initial': 'N' },
- {
- 'id': '246',
- 'provincecode': '510000',
- 'city': "\u5185\u6C5F\u5E02",
- 'code': '511000',
- 'initial': 'N' },
- {
- 'id': '248',
- 'provincecode': '510000',
- 'city': "\u5357\u5145\u5E02",
- 'code': '511300',
- 'initial': 'N' },
- {
- 'id': '282',
- 'provincecode': '530000',
- 'city': "\u6012\u6C5F\u5088\u50F3\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '533300',
- 'initial': 'N' },
- {
- 'id': '288',
- 'provincecode': '540000',
- 'city': "\u90A3\u66F2\u5730\u533A",
- 'code': '542400',
- 'initial': 'N' },
- {
- 'id': '46',
- 'provincecode': '210000',
- 'city': "\u76D8\u9526\u5E02",
- 'code': '211100',
- 'initial': 'P' },
- {
- 'id': '117',
- 'provincecode': '350000',
- 'city': "\u8386\u7530\u5E02",
- 'code': '350300',
- 'initial': 'P' },
- {
- 'id': '126',
- 'provincecode': '360000',
- 'city': "\u840D\u4E61\u5E02",
- 'code': '360300',
- 'initial': 'P' },
- {
- 'id': '155',
- 'provincecode': '410000',
- 'city': "\u5E73\u9876\u5C71\u5E02",
- 'code': '410400',
- 'initial': 'P' },
- {
- 'id': '160',
- 'provincecode': '410000',
- 'city': "\u6FEE\u9633\u5E02",
- 'code': '410900',
- 'initial': 'P' },
- {
- 'id': '240',
- 'provincecode': '510000',
- 'city': "\u6500\u679D\u82B1\u5E02",
- 'code': '510400',
- 'initial': 'P' },
- {
- 'id': '308',
- 'provincecode': '620000',
- 'city': "\u5E73\u51C9\u5E02",
- 'code': '620800',
- 'initial': 'P' },
- {
- 'id': '4',
- 'provincecode': '130000',
- 'city': "\u79E6\u7687\u5C9B\u5E02",
- 'code': '130300',
- 'initial': 'Q' },
- {
- 'id': '60',
- 'provincecode': '230000',
- 'city': "\u9F50\u9F50\u54C8\u5C14\u5E02",
- 'code': '230200',
- 'initial': 'Q' },
- {
- 'id': '67',
- 'provincecode': '230000',
- 'city': "\u4E03\u53F0\u6CB3\u5E02",
- 'code': '230900',
- 'initial': 'Q' },
- {
- 'id': '94',
- 'provincecode': '330000',
- 'city': "\u8862\u5DDE\u5E02",
- 'code': '330800',
- 'initial': 'Q' },
- {
- 'id': '119',
- 'provincecode': '350000',
- 'city': "\u6CC9\u5DDE\u5E02",
- 'code': '350500',
- 'initial': 'Q' },
- {
- 'id': '136',
- 'provincecode': '370000',
- 'city': "\u9752\u5C9B\u5E02",
- 'code': '370200',
- 'initial': 'Q' },
- {
- 'id': '212',
- 'provincecode': '440000',
- 'city': "\u6E05\u8FDC\u5E02",
- 'code': '441800',
- 'initial': 'Q' },
- {
- 'id': '224',
- 'provincecode': '450000',
- 'city': "\u94A6\u5DDE\u5E02",
- 'code': '450700',
- 'initial': 'Q' },
- {
- 'id': '264',
- 'provincecode': '520000',
- 'city': "\u9ED4\u897F\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '522300',
- 'initial': 'Q' },
- {
- 'id': '266',
- 'provincecode': '520000',
- 'city': "\u9ED4\u4E1C\u5357\u82D7\u65CF\u4F97\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '522600',
- 'initial': 'Q' },
- {
- 'id': '267',
- 'provincecode': '520000',
- 'city': "\u9ED4\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '522700',
- 'initial': 'Q' },
- {
- 'id': '269',
- 'provincecode': '530000',
- 'city': "\u66F2\u9756\u5E02",
- 'code': '530300',
- 'initial': 'Q' },
- {
- 'id': '310',
- 'provincecode': '620000',
- 'city': "\u5E86\u9633\u5E02",
- 'code': '621000',
- 'initial': 'Q' },
- {
- 'id': '145',
- 'provincecode': '370000',
- 'city': "\u65E5\u7167\u5E02",
- 'code': '371100',
- 'initial': 'R' },
- {
- 'id': '287',
- 'provincecode': '540000',
- 'city': "\u65E5\u5580\u5219\u5730\u533A",
- 'code': '542300',
- 'initial': 'R' },
- {
- 'id': '2',
- 'provincecode': '130000',
- 'city': "\u77F3\u5BB6\u5E84\u5E02",
- 'code': '130100',
- 'initial': 'S' },
- {
- 'id': '',
- 'provincecode': '310100',
- 'city': "\u4E0A\u6D77\u5E02",
- 'code': '310100',
- 'initial': 'S' },
- {
- 'id': '18',
- 'provincecode': '140000',
- 'city': "\u6714\u5DDE\u5E02",
- 'code': '140600',
- 'initial': 'S' },
- {
- 'id': '36',
- 'provincecode': '210000',
- 'city': "\u6C88\u9633\u5E02",
- 'code': '210100',
- 'initial': 'S' },
- {
- 'id': '52',
- 'provincecode': '220000',
- 'city': "\u56DB\u5E73\u5E02",
- 'code': '220300',
- 'initial': 'S' },
- {
- 'id': '56',
- 'provincecode': '220000',
- 'city': "\u677E\u539F\u5E02",
- 'code': '220700',
- 'initial': 'S' },
- {
- 'id': '63',
- 'provincecode': '230000',
- 'city': "\u53CC\u9E2D\u5C71\u5E02",
- 'code': '230500',
- 'initial': 'S' },
- {
- 'id': '70',
- 'provincecode': '230000',
- 'city': "\u7EE5\u5316\u5E02",
- 'code': '231200',
- 'initial': 'S' },
- {
- 'id': '78',
- 'provincecode': '320000',
- 'city': "\u82CF\u5DDE\u5E02",
- 'code': '320500',
- 'initial': 'S' },
- {
- 'id': '86',
- 'provincecode': '320000',
- 'city': "\u5BBF\u8FC1\u5E02",
- 'code': '321300',
- 'initial': 'S' },
- {
- 'id': '92',
- 'provincecode': '330000',
- 'city': "\u7ECD\u5174\u5E02",
- 'code': '330600',
- 'initial': 'S' },
- {
- 'id': '109',
- 'provincecode': '340000',
- 'city': "\u5BBF\u5DDE\u5E02",
- 'code': '341300',
- 'initial': 'S' },
- {
- 'id': '118',
- 'provincecode': '350000',
- 'city': "\u4E09\u660E\u5E02",
- 'code': '350400',
- 'initial': 'S' },
- {
- 'id': '134',
- 'provincecode': '360000',
- 'city': "\u4E0A\u9976\u5E02",
- 'code': '361100',
- 'initial': 'S' },
- {
- 'id': '163',
- 'provincecode': '410000',
- 'city': "\u4E09\u95E8\u5CE1\u5E02",
- 'code': '411200',
- 'initial': 'S' },
- {
- 'id': '165',
- 'provincecode': '410000',
- 'city': "\u5546\u4E18\u5E02",
- 'code': '411400',
- 'initial': 'S' },
- {
- 'id': '171',
- 'provincecode': '420000',
- 'city': "\u5341\u5830\u5E02",
- 'code': '420300',
- 'initial': 'S' },
- {
- 'id': '180',
- 'provincecode': '420000',
- 'city': "\u968F\u5DDE\u5E02",
- 'code': '421300',
- 'initial': 'S' },
- {
- 'id': '187',
- 'provincecode': '430000',
- 'city': "\u90B5\u9633\u5E02",
- 'code': '430500',
- 'initial': 'S' },
- {
- 'id': '198',
- 'provincecode': '440000',
- 'city': "\u97F6\u5173\u5E02",
- 'code': '440200',
- 'initial': 'S' },
- {
- 'id': '199',
- 'provincecode': '440000',
- 'city': "\u6DF1\u5733\u5E02",
- 'code': '440300',
- 'initial': 'S' },
- {
- 'id': '201',
- 'provincecode': '440000',
- 'city': "\u6C55\u5934\u5E02",
- 'code': '440500',
- 'initial': 'S' },
- {
- 'id': '209',
- 'provincecode': '440000',
- 'city': "\u6C55\u5C3E\u5E02",
- 'code': '441500',
- 'initial': 'S' },
- {
- 'id': '233',
- 'provincecode': '460000',
- 'city': "\u4E09\u4E9A\u5E02",
- 'code': '460200',
- 'initial': 'S' },
- {
- 'id': '245',
- 'provincecode': '510000',
- 'city': "\u9042\u5B81\u5E02",
- 'code': '510900',
- 'initial': 'S' },
- {
- 'id': '274',
- 'provincecode': '530000',
- 'city': "\u666E\u6D31\u5E02",
- 'code': '530800',
- 'initial': 'P' },
- {
- 'id': '286',
- 'provincecode': '540000',
- 'city': "\u5C71\u5357\u5730\u533A",
- 'code': '542200',
- 'initial': 'S' },
- {
- 'id': '300',
- 'provincecode': '610000',
- 'city': "\u5546\u6D1B\u5E02",
- 'code': '611000',
- 'initial': 'S' },
- {
- 'id': '324',
- 'provincecode': '640000',
- 'city': "\u77F3\u5634\u5C71\u5E02",
- 'code': '640200',
- 'initial': 'S' },
- {
- 'id': '3',
- 'provincecode': '130000',
- 'city': "\u5510\u5C71\u5E02",
- 'code': '130200',
- 'initial': 'T' },
- {
- 'id': '13',
- 'provincecode': '140000',
- 'city': "\u592A\u539F\u5E02",
- 'code': '140100',
- 'initial': 'T' },
- {
- 'id': '28',
- 'provincecode': '150000',
- 'city': "\u901A\u8FBD\u5E02",
- 'code': '150500',
- 'initial': 'T' },
- {
- 'id': '47',
- 'provincecode': '210000',
- 'city': "\u94C1\u5CAD\u5E02",
- 'code': '211200',
- 'initial': 'T' },
- {
- 'id': '54',
- 'provincecode': '220000',
- 'city': "\u901A\u5316\u5E02",
- 'code': '220500',
- 'initial': 'T' },
- {
- 'id': '85',
- 'provincecode': '320000',
- 'city': "\u6CF0\u5DDE\u5E02",
- 'code': '321200',
- 'initial': 'T' },
- {
- 'id': '96',
- 'provincecode': '330000',
- 'city': "\u53F0\u5DDE\u5E02",
- 'code': '331000',
- 'initial': 'T' },
- {
- 'id': '104',
- 'provincecode': '340000',
- 'city': "\u94DC\u9675\u5E02",
- 'code': '340700',
- 'initial': 'T' },
- {
- 'id': '143',
- 'provincecode': '370000',
- 'city': "\u6CF0\u5B89\u5E02",
- 'code': '370900',
- 'initial': 'T' },
- {
- 'id': '263',
- 'provincecode': '520000',
- 'city': "\u94DC\u4EC1\u5730\u533A",
- 'code': '522200',
- 'initial': 'T' },
- {
- 'id': '292',
- 'provincecode': '610000',
- 'city': "\u94DC\u5DDD\u5E02",
- 'code': '610200',
- 'initial': 'T' },
- {
- 'id': '305',
- 'provincecode': '620000',
- 'city': "\u5929\u6C34\u5E02",
- 'code': '620500',
- 'initial': 'T' },
- {
- 'id': '330',
- 'provincecode': '650000',
- 'city': "\u5410\u9C81\u756A\u5730\u533A",
- 'code': '652100',
- 'initial': 'T' },
- {
- 'id': '340',
- 'provincecode': '650000',
- 'city': "\u5854\u57CE\u5730\u533A",
- 'code': '654200',
- 'initial': 'T' },
- {
- 'id': '343',
- 'provincecode': '120100',
- 'city': "\u5929\u6D25\u5E02",
- 'code': '120100',
- 'initial': 'T' },
- {
- 'id': '26',
- 'provincecode': '150000',
- 'city': "\u4E4C\u6D77\u5E02",
- 'code': '150300',
- 'initial': 'W' },
- {
- 'id': '32',
- 'provincecode': '150000',
- 'city': "\u4E4C\u5170\u5BDF\u5E03\u5E02",
- 'code': '150900',
- 'initial': 'W' },
- {
- 'id': '75',
- 'provincecode': '320000',
- 'city': "\u65E0\u9521\u5E02",
- 'code': '320200',
- 'initial': 'W' },
- {
- 'id': '89',
- 'provincecode': '330000',
- 'city': "\u6E29\u5DDE\u5E02",
- 'code': '330300',
- 'initial': 'W' },
- {
- 'id': '99',
- 'provincecode': '340000',
- 'city': "\u829C\u6E56\u5E02",
- 'code': '340200',
- 'initial': 'W' },
- {
- 'id': '141',
- 'provincecode': '370000',
- 'city': "\u6F4D\u574A\u5E02",
- 'code': '370700',
- 'initial': 'W' },
- {
- 'id': '144',
- 'provincecode': '370000',
- 'city': "\u5A01\u6D77\u5E02",
- 'code': '371000',
- 'initial': 'W' },
- {
- 'id': '169',
- 'provincecode': '420000',
- 'city': "\u6B66\u6C49\u5E02",
- 'code': '420100',
- 'initial': 'W' },
- {
- 'id': '221',
- 'provincecode': '450000',
- 'city': "\u68A7\u5DDE\u5E02",
- 'code': '450400',
- 'initial': 'W' },
- {
- 'id': '278',
- 'provincecode': '530000',
- 'city': "\u6587\u5C71\u58EE\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '532600',
- 'initial': 'W' },
- {
- 'id': '295',
- 'provincecode': '610000',
- 'city': "\u6E2D\u5357\u5E02",
- 'code': '610500',
- 'initial': 'W' },
- {
- 'id': '306',
- 'provincecode': '620000',
- 'city': "\u6B66\u5A01\u5E02",
- 'code': '620600',
- 'initial': 'W' },
- {
- 'id': '325',
- 'provincecode': '640000',
- 'city': "\u5434\u5FE0\u5E02",
- 'code': '640300',
- 'initial': 'W' },
- {
- 'id': '328',
- 'provincecode': '650000',
- 'city': "\u4E4C\u9C81\u6728\u9F50\u5E02",
- 'code': '650100',
- 'initial': 'W' },
- {
- 'id': '6',
- 'provincecode': '130000',
- 'city': "\u90A2\u53F0\u5E02",
- 'code': '130500',
- 'initial': 'X' },
- {
- 'id': '21',
- 'provincecode': '140000',
- 'city': "\u5FFB\u5DDE\u5E02",
- 'code': '140900',
- 'initial': 'X' },
- {
- 'id': '33',
- 'provincecode': '150000',
- 'city': "\u5174\u5B89\u76DF",
- 'code': '152200',
- 'initial': 'X' },
- {
- 'id': '34',
- 'provincecode': '150000',
- 'city': "\u9521\u6797\u90ED\u52D2\u76DF",
- 'code': '152500',
- 'initial': 'X' },
- {
- 'id': '76',
- 'provincecode': '320000',
- 'city': "\u5F90\u5DDE\u5E02",
- 'code': '320300',
- 'initial': 'X' },
- {
- 'id': '114',
- 'provincecode': '340000',
- 'city': "\u5BA3\u57CE\u5E02",
- 'code': '341800',
- 'initial': 'X' },
- {
- 'id': '116',
- 'provincecode': '350000',
- 'city': "\u53A6\u95E8\u5E02",
- 'code': '350200',
- 'initial': 'X' },
- {
- 'id': '128',
- 'provincecode': '360000',
- 'city': "\u65B0\u4F59\u5E02",
- 'code': '360500',
- 'initial': 'X' },
- {
- 'id': '158',
- 'provincecode': '410000',
- 'city': "\u65B0\u4E61\u5E02",
- 'code': '410700',
- 'initial': 'X' },
- {
- 'id': '161',
- 'provincecode': '410000',
- 'city': "\u8BB8\u660C\u5E02",
- 'code': '411000',
- 'initial': 'X' },
- {
- 'id': '166',
- 'provincecode': '410000',
- 'city': "\u4FE1\u9633\u5E02",
- 'code': '411500',
- 'initial': 'X' },
- {
- 'id': '173',
- 'provincecode': '420000',
- 'city': "\u8944\u6A0A\u5E02",
- 'code': '420600',
- 'initial': 'X' },
- {
- 'id': '176',
- 'provincecode': '420000',
- 'city': "\u5B5D\u611F\u5E02",
- 'code': '420900',
- 'initial': 'X' },
- {
- 'id': '179',
- 'provincecode': '420000',
- 'city': "\u54B8\u5B81\u5E02",
- 'code': '421200',
- 'initial': 'X' },
- {
- 'id': '185',
- 'provincecode': '430000',
- 'city': "\u6E58\u6F6D\u5E02",
- 'code': '430300',
- 'initial': 'X' },
- {
- 'id': '196',
- 'provincecode': '430000',
- 'city': "\u6E58\u897F\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '433100',
- 'initial': 'X' },
- {
- 'id': '279',
- 'provincecode': '530000',
- 'city': "\u897F\u53CC\u7248\u7EB3\u50A3\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '532800',
- 'initial': 'X' },
- {
- 'id': '291',
- 'provincecode': '610000',
- 'city': "\u897F\u5B89\u5E02",
- 'code': '610100',
- 'initial': 'X' },
- {
- 'id': '294',
- 'provincecode': '610000',
- 'city': "\u54B8\u9633\u5E02",
- 'code': '610400',
- 'initial': 'X' },
- {
- 'id': '315',
- 'provincecode': '630000',
- 'city': "\u897F\u5B81\u5E02",
- 'code': '630100',
- 'initial': 'X' },
- {
- 'id': '15',
- 'provincecode': '140000',
- 'city': "\u9633\u6CC9\u5E02",
- 'code': '140300',
- 'initial': 'Y' },
- {
- 'id': '20',
- 'provincecode': '140000',
- 'city': "\u8FD0\u57CE\u5E02",
- 'code': '140800',
- 'initial': 'Y' },
- {
- 'id': '43',
- 'provincecode': '210000',
- 'city': "\u8425\u53E3\u5E02",
- 'code': '210800',
- 'initial': 'Y' },
- {
- 'id': '58',
- 'provincecode': '220000',
- 'city': "\u5EF6\u8FB9\u671D\u9C9C\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '222400',
- 'initial': 'Y' },
- {
- 'id': '65',
- 'provincecode': '230000',
- 'city': "\u4F0A\u6625\u5E02",
- 'code': '230700',
- 'initial': 'Y' },
- {
- 'id': '82',
- 'provincecode': '320000',
- 'city': "\u76D0\u57CE\u5E02",
- 'code': '320900',
- 'initial': 'Y' },
- {
- 'id': '83',
- 'provincecode': '320000',
- 'city': "\u626C\u5DDE\u5E02",
- 'code': '321000',
- 'initial': 'Y' },
- {
- 'id': '129',
- 'provincecode': '360000',
- 'city': "\u9E70\u6F6D\u5E02",
- 'code': '360600',
- 'initial': 'Y' },
- {
- 'id': '132',
- 'provincecode': '360000',
- 'city': "\u5B9C\u6625\u5E02",
- 'code': '360900',
- 'initial': 'Y' },
- {
- 'id': '140',
- 'provincecode': '370000',
- 'city': "\u70DF\u53F0\u5E02",
- 'code': '370600',
- 'initial': 'Y' },
- {
- 'id': '172',
- 'provincecode': '420000',
- 'city': "\u5B9C\u660C\u5E02",
- 'code': '420500',
- 'initial': 'Y' },
- {
- 'id': '188',
- 'provincecode': '430000',
- 'city': "\u5CB3\u9633\u5E02",
- 'code': '430600',
- 'initial': 'Y' },
- {
- 'id': '191',
- 'provincecode': '430000',
- 'city': "\u76CA\u9633\u5E02",
- 'code': '430900',
- 'initial': 'Y' },
- {
- 'id': '193',
- 'provincecode': '430000',
- 'city': "\u6C38\u5DDE\u5E02",
- 'code': '431100',
- 'initial': 'Y' },
- {
- 'id': '211',
- 'provincecode': '440000',
- 'city': "\u9633\u6C5F\u5E02",
- 'code': '441700',
- 'initial': 'Y' },
- {
- 'id': '217',
- 'provincecode': '440000',
- 'city': "\u4E91\u6D6E\u5E02",
- 'code': '445300',
- 'initial': 'Y' },
- {
- 'id': '226',
- 'provincecode': '450000',
- 'city': "\u7389\u6797\u5E02",
- 'code': '450900',
- 'initial': 'Y' },
- {
- 'id': '250',
- 'provincecode': '510000',
- 'city': "\u5B9C\u5BBE\u5E02",
- 'code': '511500',
- 'initial': 'Y' },
- {
- 'id': '253',
- 'provincecode': '510000',
- 'city': "\u96C5\u5B89\u5E02",
- 'code': '511800',
- 'initial': 'Y' },
- {
- 'id': '270',
- 'provincecode': '530000',
- 'city': "\u7389\u6EAA\u5E02",
- 'code': '530400',
- 'initial': 'Y' },
- {
- 'id': '296',
- 'provincecode': '610000',
- 'city': "\u5EF6\u5B89\u5E02",
- 'code': '610600',
- 'initial': 'Y' },
- {
- 'id': '298',
- 'provincecode': '610000',
- 'city': "\u6986\u6797\u5E02",
- 'code': '610800',
- 'initial': 'Y' },
- {
- 'id': '321',
- 'provincecode': '630000',
- 'city': "\u7389\u6811\u85CF\u65CF\u81EA\u6CBB\u5DDE",
- 'code': '632700',
- 'initial': 'Y' },
- {
- 'id': '323',
- 'provincecode': '640000',
- 'city': "\u94F6\u5DDD\u5E02",
- 'code': '640100',
- 'initial': 'Y' },
- {
- 'id': '339',
- 'provincecode': '650000',
- 'city': "\u4F0A\u7281\u54C8\u8428\u514B\u81EA\u6CBB\u5DDE",
- 'code': '654000',
- 'initial': 'Y' },
- {
- 'id': '8',
- 'provincecode': '130000',
- 'city': "\u5F20\u5BB6\u53E3\u5E02",
- 'code': '130700',
- 'initial': 'Z' },
- {
- 'id': '84',
- 'provincecode': '320000',
- 'city': "\u9547\u6C5F\u5E02",
- 'code': '321100',
- 'initial': 'Z' },
- {
- 'id': '95',
- 'provincecode': '330000',
- 'city': "\u821F\u5C71\u5E02",
- 'code': '330900',
- 'initial': 'Z' },
- {
- 'id': '120',
- 'provincecode': '350000',
- 'city': "\u6F33\u5DDE\u5E02",
- 'code': '350600',
- 'initial': 'Z' },
- {
- 'id': '137',
- 'provincecode': '370000',
- 'city': "\u6DC4\u535A\u5E02",
- 'code': '370300',
- 'initial': 'Z' },
- {
- 'id': '138',
- 'provincecode': '370000',
- 'city': "\u67A3\u5E84\u5E02",
- 'code': '370400',
- 'initial': 'Z' },
- {
- 'id': '152',
- 'provincecode': '410000',
- 'city': "\u90D1\u5DDE\u5E02",
- 'code': '410100',
- 'initial': 'Z' },
- {
- 'id': '167',
- 'provincecode': '410000',
- 'city': "\u5468\u53E3\u5E02",
- 'code': '411600',
- 'initial': 'Z' },
- {
- 'id': '168',
- 'provincecode': '410000',
- 'city': "\u9A7B\u9A6C\u5E97\u5E02",
- 'code': '411700',
- 'initial': 'Z' },
- {
- 'id': '184',
- 'provincecode': '430000',
- 'city': "\u682A\u6D32\u5E02",
- 'code': '430200',
- 'initial': 'Z' },
- {
- 'id': '190',
- 'provincecode': '430000',
- 'city': "\u5F20\u5BB6\u754C\u5E02",
- 'code': '430800',
- 'initial': 'Z' },
- {
- 'id': '200',
- 'provincecode': '440000',
- 'city': "\u73E0\u6D77\u5E02",
- 'code': '440400',
- 'initial': 'Z' },
- {
- 'id': '204',
- 'provincecode': '440000',
- 'city': "\u6E5B\u6C5F\u5E02",
- 'code': '440800',
- 'initial': 'Z' },
- {
- 'id': '206',
- 'provincecode': '440000',
- 'city': "\u8087\u5E86\u5E02",
- 'code': '441200',
- 'initial': 'Z' },
- {
- 'id': '214',
- 'provincecode': '440000',
- 'city': "\u4E2D\u5C71\u5E02",
- 'code': '442000',
- 'initial': 'Z' },
- {
- 'id': '239',
- 'provincecode': '510000',
- 'city': "\u81EA\u8D21\u5E02",
- 'code': '510300',
- 'initial': 'Z' },
- {
- 'id': '255',
- 'provincecode': '510000',
- 'city': "\u8D44\u9633\u5E02",
- 'code': '512000',
- 'initial': 'Z' },
- {
- 'id': '261',
- 'provincecode': '520000',
- 'city': "\u9075\u4E49\u5E02",
- 'code': '520300',
- 'initial': 'Z' },
- {
- 'id': '272',
- 'provincecode': '530000',
- 'city': "\u662D\u901A\u5E02",
- 'code': '530600',
- 'initial': 'Z' },
- {
- 'id': '307',
- 'provincecode': '620000',
- 'city': "\u5F20\u6396\u5E02",
- 'code': '620700',
- 'initial': 'Z' },
- {
- 'id': '327',
- 'provincecode': '640000',
- 'city': "\u4E2D\u536B\u5E02",
- 'code': '640500',
- 'initial': 'Z' }];
- var cityObjs = [{
- 'id': '35',
- 'provincecode': '150000',
- 'city': '阿拉善盟',
- 'code': '152900',
- 'initial': 'A',
- 'short': 'Alashanmeng' },
- {
- 'id': '38',
- 'provincecode': '210000',
- 'city': '鞍山市',
- 'code': '210300',
- 'initial': 'A',
- 'short': 'Anshan' },
- {
- 'id': '105',
- 'provincecode': '340000',
- 'city': '安庆市',
- 'code': '340800',
- 'initial': 'A',
- 'short': 'Anqing' },
- {
- 'id': '156',
- 'provincecode': '410000',
- 'city': '安阳市',
- 'code': '410500',
- 'initial': 'A',
- 'short': 'Anyang' },
- {
- 'id': '256',
- 'provincecode': '510000',
- 'city': '阿坝藏族羌族自治州',
- 'code': '513200',
- 'initial': 'A',
- 'short': 'Aba' },
- {
- 'id': '262',
- 'provincecode': '520000',
- 'city': '安顺市',
- 'code': '520400',
- 'initial': 'A',
- 'short': 'Anshun' },
- {
- 'id': '289',
- 'provincecode': '540000',
- 'city': '阿里地区',
- 'code': '542500',
- 'initial': 'A',
- 'short': 'Ali' },
- {
- 'id': '299',
- 'provincecode': '610000',
- 'city': '安康市',
- 'code': '610900',
- 'initial': 'A',
- 'short': 'Ankang' },
- {
- 'id': '335',
- 'provincecode': '650000',
- 'city': '阿克苏地区',
- 'code': '652900',
- 'initial': 'A',
- 'short': 'Akesu' },
- {
- 'id': '341',
- 'provincecode': '650000',
- 'city': '阿勒泰地区',
- 'code': '654300',
- 'initial': 'A',
- 'short': 'Aletai' },
- {
- 'id': '1',
- 'provincecode': '110100',
- 'city': '北京市',
- 'code': '110100',
- 'initial': 'B',
- 'short': 'Beijing' },
- {
- 'id': '7',
- 'provincecode': '130000',
- 'city': '保定市',
- 'code': '130600',
- 'initial': 'B',
- 'short': 'Baoding' },
- {
- 'id': '25',
- 'provincecode': '150000',
- 'city': '包头市',
- 'code': '150200',
- 'initial': 'B',
- 'short': 'Baotou' },
- {
- 'id': '31',
- 'provincecode': '150000',
- 'city': '巴彦淖尔市',
- 'code': '150800',
- 'initial': 'B',
- 'short': 'Bayannaoer' },
- {
- 'id': '40',
- 'provincecode': '210000',
- 'city': '本溪市',
- 'code': '210500',
- 'initial': 'B',
- 'short': 'Benxi' },
- {
- 'id': '55',
- 'provincecode': '220000',
- 'city': '白山市',
- 'code': '220600',
- 'initial': 'B',
- 'short': 'Baishan' },
- {
- 'id': '57',
- 'provincecode': '220000',
- 'city': '白城市',
- 'code': '220800',
- 'initial': 'B',
- 'short': 'Baicheng' },
- {
- 'id': '100',
- 'provincecode': '340000',
- 'city': '蚌埠市',
- 'code': '340300',
- 'initial': 'B',
- 'short': 'Bangbu' },
- {
- 'id': '150',
- 'provincecode': '370000',
- 'city': '滨州市',
- 'code': '371600',
- 'initial': 'B',
- 'short': 'Binzhou' },
- {
- 'id': '222',
- 'provincecode': '450000',
- 'city': '北海市',
- 'code': '450500',
- 'initial': 'B',
- 'short': 'Beihai' },
- {
- 'id': '227',
- 'provincecode': '450000',
- 'city': '百色市',
- 'code': '451000',
- 'initial': 'B',
- 'short': 'Baise' },
- {
- 'id': '254',
- 'provincecode': '510000',
- 'city': '巴中市',
- 'code': '511900',
- 'initial': 'B',
- 'short': 'Bazhong' },
- {
- 'id': '265',
- 'provincecode': '520000',
- 'city': '毕节地区',
- 'code': '522400',
- 'initial': 'B',
- 'short': 'Bijie' },
- {
- 'id': '271',
- 'provincecode': '530000',
- 'city': '保山市',
- 'code': '530500',
- 'initial': 'B',
- 'short': 'Baoshan' },
- {
- 'id': '293',
- 'provincecode': '610000',
- 'city': '宝鸡市',
- 'code': '610300',
- 'initial': 'B',
- 'short': 'Baoji' },
- {
- 'id': '304',
- 'provincecode': '620000',
- 'city': '白银市',
- 'code': '620400',
- 'initial': 'B',
- 'short': 'Baiyin' },
- {
- 'id': '333',
- 'provincecode': '650000',
- 'city': '博尔塔拉蒙古自治州',
- 'code': '652700',
- 'initial': 'B',
- 'short': 'Boertala' },
- {
- 'id': '334',
- 'provincecode': '650000',
- 'city': '巴音郭楞蒙古自治州',
- 'code': '652800',
- 'initial': 'B',
- 'short': 'Bayinguoleng' },
- {
- 'id': '',
- 'provincecode': '500100',
- 'city': '重庆市',
- 'code': '500100',
- 'initial': 'C',
- 'short': 'Chongqing' },
- {
- 'id': '9',
- 'provincecode': '130000',
- 'city': '承德市',
- 'code': '130800',
- 'initial': 'C',
- 'short': 'Chengde' },
- {
- 'id': '10',
- 'provincecode': '130000',
- 'city': '沧州市',
- 'code': '130900',
- 'initial': 'C',
- 'short': 'Cangzhou' },
- {
- 'id': '16',
- 'provincecode': '140000',
- 'city': '长治市',
- 'code': '140400',
- 'initial': 'C',
- 'short': 'Changzhi' },
- {
- 'id': '27',
- 'provincecode': '150000',
- 'city': '赤峰市',
- 'code': '150400',
- 'initial': 'C',
- 'short': 'Chifeng' },
- {
- 'id': '48',
- 'provincecode': '210000',
- 'city': '朝阳市',
- 'code': '211300',
- 'initial': 'C',
- 'short': 'Chaoyang' },
- {
- 'id': '50',
- 'provincecode': '220000',
- 'city': '长春市',
- 'code': '220100',
- 'initial': 'C',
- 'short': 'Changchun' },
- {
- 'id': '77',
- 'provincecode': '320000',
- 'city': '常州市',
- 'code': '320400',
- 'initial': 'C',
- 'short': 'Changzhou' },
- {
- 'id': '107',
- 'provincecode': '340000',
- 'city': '滁州市',
- 'code': '341100',
- 'initial': 'C',
- 'short': 'Chuzhou' },
- {
- 'id': '110',
- 'provincecode': '340000',
- 'city': '巢湖市',
- 'code': '341400',
- 'initial': 'C',
- 'short': 'Chaohu' },
- {
- 'id': '113',
- 'provincecode': '340000',
- 'city': '池州市',
- 'code': '341700',
- 'initial': 'C',
- 'short': 'Chizhou' },
- {
- 'id': '183',
- 'provincecode': '430000',
- 'city': '长沙市',
- 'code': '430100',
- 'initial': 'C',
- 'short': 'Changsha' },
- {
- 'id': '189',
- 'provincecode': '430000',
- 'city': '常德市',
- 'code': '430700',
- 'initial': 'C',
- 'short': 'Changde' },
- {
- 'id': '192',
- 'provincecode': '430000',
- 'city': '郴州市',
- 'code': '431000',
- 'initial': 'C',
- 'short': 'Chenzhou' },
- {
- 'id': '215',
- 'provincecode': '440000',
- 'city': '潮州市',
- 'code': '445100',
- 'initial': 'C',
- 'short': 'Chaozhou' },
- {
- 'id': '231',
- 'provincecode': '450000',
- 'city': '崇左市',
- 'code': '451400',
- 'initial': 'C',
- 'short': 'Chongzuo' },
- {
- 'id': '238',
- 'provincecode': '510000',
- 'city': '成都市',
- 'code': '510100',
- 'initial': 'C',
- 'short': 'Chengdu' },
- {
- 'id': '276',
- 'provincecode': '530000',
- 'city': '楚雄彝族自治州',
- 'code': '532300',
- 'initial': 'C',
- 'short': 'Chuxiong' },
- {
- 'id': '285',
- 'provincecode': '540000',
- 'city': '昌都地区',
- 'code': '542100',
- 'initial': 'C',
- 'short': 'Changdu' },
- {
- 'id': '332',
- 'provincecode': '650000',
- 'city': '昌吉回族自治州',
- 'code': '652300',
- 'initial': 'C',
- 'short': 'Changji' },
- {
- 'id': '14',
- 'provincecode': '140000',
- 'city': '大同市',
- 'code': '140200',
- 'initial': 'D',
- 'short': 'Datong' },
- {
- 'id': '37',
- 'provincecode': '210000',
- 'city': '大连市',
- 'code': '210200',
- 'initial': 'D',
- 'short': 'Dalian' },
- {
- 'id': '41',
- 'provincecode': '210000',
- 'city': '丹东市',
- 'code': '210600',
- 'initial': 'D',
- 'short': 'Dandong' },
- {
- 'id': '64',
- 'provincecode': '230000',
- 'city': '大庆市',
- 'code': '230600',
- 'initial': 'D',
- 'short': 'Daqing' },
- {
- 'id': '71',
- 'provincecode': '230000',
- 'city': '大兴安岭地区',
- 'code': '232700',
- 'initial': 'D',
- 'short': 'Daxinganling' },
- {
- 'id': '139',
- 'provincecode': '370000',
- 'city': '东营市',
- 'code': '370500',
- 'initial': 'D',
- 'short': 'Dongying' },
- {
- 'id': '148',
- 'provincecode': '370000',
- 'city': '德州市',
- 'code': '371400',
- 'initial': 'D',
- 'short': 'Dezhou' },
- {
- 'id': '213',
- 'provincecode': '440000',
- 'city': '东莞市',
- 'code': '441900',
- 'initial': 'D',
- 'short': 'Dongguan' },
- {
- 'id': '242',
- 'provincecode': '510000',
- 'city': '德阳市',
- 'code': '510600',
- 'initial': 'D',
- 'short': 'Deyang' },
- {
- 'id': '252',
- 'provincecode': '510000',
- 'city': '达州市',
- 'code': '511700',
- 'initial': 'D',
- 'short': 'Dazhou' },
- {
- 'id': '280',
- 'provincecode': '530000',
- 'city': '大理白族自治州',
- 'code': '532900',
- 'initial': 'D',
- 'short': 'Dali' },
- {
- 'id': '281',
- 'provincecode': '530000',
- 'city': '德宏傣族景颇族自治州',
- 'code': '533100',
- 'initial': 'D',
- 'short': 'Dehong' },
- {
- 'id': '283',
- 'provincecode': '530000',
- 'city': '迪庆藏族自治州',
- 'code': '533400',
- 'initial': 'D',
- 'short': 'Diqing' },
- {
- 'id': '311',
- 'provincecode': '620000',
- 'city': '定西市',
- 'code': '621100',
- 'initial': 'D',
- 'short': 'Dingxi' },
- {
- 'id': '29',
- 'provincecode': '150000',
- 'city': '鄂尔多斯市',
- 'code': '150600',
- 'initial': 'E',
- 'short': 'Eerduosi' },
- {
- 'id': '174',
- 'provincecode': '420000',
- 'city': '鄂州市',
- 'code': '420700',
- 'initial': 'E',
- 'short': 'Ezhou' },
- {
- 'id': '181',
- 'provincecode': '420000',
- 'city': '恩施土家族苗族自治州',
- 'code': '422800',
- 'initial': 'E',
- 'short': 'Enshi' },
- {
- 'id': '39',
- 'provincecode': '210000',
- 'city': '抚顺市',
- 'code': '210400',
- 'initial': 'F',
- 'short': 'Fushun' },
- {
- 'id': '44',
- 'provincecode': '210000',
- 'city': '阜新市',
- 'code': '210900',
- 'initial': 'F',
- 'short': 'Fuxin' },
- {
- 'id': '108',
- 'provincecode': '340000',
- 'city': '阜阳市',
- 'code': '341200',
- 'initial': 'F',
- 'short': 'Fuyang' },
- {
- 'id': '115',
- 'provincecode': '350000',
- 'city': '福州市',
- 'code': '350100',
- 'initial': 'F',
- 'short': 'Fuzhou' },
- {
- 'id': '133',
- 'provincecode': '360000',
- 'city': '抚州市',
- 'code': '361000',
- 'initial': 'F',
- 'short': 'Fuzhou' },
- {
- 'id': '202',
- 'provincecode': '440000',
- 'city': '佛山市',
- 'code': '440600',
- 'initial': 'F',
- 'short': 'Foshan' },
- {
- 'id': '223',
- 'provincecode': '450000',
- 'city': '防城港市',
- 'code': '450600',
- 'initial': 'F',
- 'short': 'Fangchenggang' },
- {
- 'id': '130',
- 'provincecode': '360000',
- 'city': '赣州市',
- 'code': '360700',
- 'initial': 'G',
- 'short': 'Ganzhou' },
- {
- 'id': '197',
- 'provincecode': '440000',
- 'city': '广州市',
- 'code': '440100',
- 'initial': 'G',
- 'short': 'Guangzhou' },
- {
- 'id': '220',
- 'provincecode': '450000',
- 'city': '桂林市',
- 'code': '450300',
- 'initial': 'G',
- 'short': 'Guilin' },
- {
- 'id': '225',
- 'provincecode': '450000',
- 'city': '贵港市',
- 'code': '450800',
- 'initial': 'G',
- 'short': 'Guigang' },
- {
- 'id': '244',
- 'provincecode': '510000',
- 'city': '广元市',
- 'code': '510800',
- 'initial': 'G',
- 'short': 'Guangyuan' },
- {
- 'id': '251',
- 'provincecode': '510000',
- 'city': '广安市',
- 'code': '511600',
- 'initial': 'G',
- 'short': 'Guangan' },
- {
- 'id': '257',
- 'provincecode': '510000',
- 'city': '甘孜藏族自治州',
- 'code': '513300',
- 'initial': 'G',
- 'short': 'Ganzi' },
- {
- 'id': '259',
- 'provincecode': '520000',
- 'city': '贵阳市',
- 'code': '520100',
- 'initial': 'G',
- 'short': 'Guiyang' },
- {
- 'id': '314',
- 'provincecode': '620000',
- 'city': '甘南藏族自治州',
- 'code': '623000',
- 'initial': 'G',
- 'short': 'Gannan' },
- {
- 'id': '320',
- 'provincecode': '630000',
- 'city': '果洛藏族自治州',
- 'code': '632600',
- 'initial': 'G',
- 'short': 'Guoluo' },
- {
- 'id': '326',
- 'provincecode': '640000',
- 'city': '固原市',
- 'code': '640400',
- 'initial': 'G',
- 'short': 'Guyuan' },
- {
- 'id': '5',
- 'provincecode': '130000',
- 'city': '邯郸市',
- 'code': '130400',
- 'initial': 'H',
- 'short': 'Handan' },
- {
- 'id': '12',
- 'provincecode': '130000',
- 'city': '衡水市',
- 'code': '131100',
- 'initial': 'H',
- 'short': 'Hengshui' },
- {
- 'id': '',
- 'provincecode': '370000',
- 'city': '菏泽市',
- 'code': '371700',
- 'initial': 'H',
- 'short': 'Heze' },
- {
- 'id': '24',
- 'provincecode': '150000',
- 'city': '呼和浩特市',
- 'code': '150100',
- 'initial': 'H',
- 'short': 'Huhehaote' },
- {
- 'id': '30',
- 'provincecode': '150000',
- 'city': '呼伦贝尔市',
- 'code': '150700',
- 'initial': 'H',
- 'short': 'Hulunbeier' },
- {
- 'id': '49',
- 'provincecode': '210000',
- 'city': '葫芦岛市',
- 'code': '211400',
- 'initial': 'H',
- 'short': 'Huludao' },
- {
- 'id': '59',
- 'provincecode': '230000',
- 'city': '哈尔滨市',
- 'code': '230100',
- 'initial': 'H',
- 'short': 'Haerbin' },
- {
- 'id': '62',
- 'provincecode': '230000',
- 'city': '鹤岗市',
- 'code': '230400',
- 'initial': 'H',
- 'short': 'Hegang' },
- {
- 'id': '69',
- 'provincecode': '230000',
- 'city': '黑河市',
- 'code': '231100',
- 'initial': 'H',
- 'short': 'Heihe' },
- {
- 'id': '81',
- 'provincecode': '320000',
- 'city': '淮安市',
- 'code': '320800',
- 'initial': 'H',
- 'short': 'Huaian' },
- {
- 'id': '87',
- 'provincecode': '330000',
- 'city': '杭州市',
- 'code': '330100',
- 'initial': 'H',
- 'short': 'Hangzhou' },
- {
- 'id': '91',
- 'provincecode': '330000',
- 'city': '湖州市',
- 'code': '330500',
- 'initial': 'H',
- 'short': 'Huzhou' },
- {
- 'id': '98',
- 'provincecode': '340000',
- 'city': '合肥市',
- 'code': '340100',
- 'initial': 'H',
- 'short': 'Hefei' },
- {
- 'id': '101',
- 'provincecode': '340000',
- 'city': '淮南市',
- 'code': '340400',
- 'initial': 'H',
- 'short': 'Huainan' },
- {
- 'id': '103',
- 'provincecode': '340000',
- 'city': '淮北市',
- 'code': '340600',
- 'initial': 'H',
- 'short': 'Huaibei' },
- {
- 'id': '106',
- 'provincecode': '340000',
- 'city': '黄山市',
- 'code': '341000',
- 'initial': 'H',
- 'short': 'Huangshan' },
- {
- 'id': '112',
- 'provincecode': '340000',
- 'city': '亳州市',
- 'code': '341600',
- 'initial': 'H',
- 'short': 'Bozhou' },
- {
- 'id': '157',
- 'provincecode': '410000',
- 'city': '鹤壁市',
- 'code': '410600',
- 'initial': 'H',
- 'short': 'Hebi' },
- {
- 'id': '170',
- 'provincecode': '420000',
- 'city': '黄石市',
- 'code': '420200',
- 'initial': 'H',
- 'short': 'Huangshi' },
- {
- 'id': '178',
- 'provincecode': '420000',
- 'city': '黄冈市',
- 'code': '421100',
- 'initial': 'H',
- 'short': 'Huanggang' },
- {
- 'id': '186',
- 'provincecode': '430000',
- 'city': '衡阳市',
- 'code': '430400',
- 'initial': 'H',
- 'short': 'Hengyang' },
- {
- 'id': '194',
- 'provincecode': '430000',
- 'city': '怀化市',
- 'code': '431200',
- 'initial': 'H',
- 'short': 'Huaihua' },
- {
- 'id': '207',
- 'provincecode': '440000',
- 'city': '惠州市',
- 'code': '441300',
- 'initial': 'H',
- 'short': 'Huizhou' },
- {
- 'id': '210',
- 'provincecode': '440000',
- 'city': '河源市',
- 'code': '441600',
- 'initial': 'H',
- 'short': 'Heyuan' },
- {
- 'id': '228',
- 'provincecode': '450000',
- 'city': '贺州市',
- 'code': '451100',
- 'initial': 'H',
- 'short': 'Hezhou' },
- {
- 'id': '229',
- 'provincecode': '450000',
- 'city': '河池市',
- 'code': '451200',
- 'initial': 'H',
- 'short': 'Hechi' },
- {
- 'id': '232',
- 'provincecode': '460000',
- 'city': '海口市',
- 'code': '460100',
- 'initial': 'H',
- 'short': 'Haikou' },
- {
- 'id': '277',
- 'provincecode': '530000',
- 'city': '红河哈尼族彝族自治州',
- 'code': '532500',
- 'initial': 'H',
- 'short': 'Honghe' },
- {
- 'id': '297',
- 'provincecode': '610000',
- 'city': '汉中市',
- 'code': '610700',
- 'initial': 'H',
- 'short': 'Hanzhong' },
- {
- 'id': '316',
- 'provincecode': '630000',
- 'city': '海东地区',
- 'code': '632100',
- 'initial': 'H',
- 'short': 'Haidong' },
- {
- 'id': '317',
- 'provincecode': '630000',
- 'city': '海北藏族自治州',
- 'code': '632200',
- 'initial': 'H',
- 'short': 'Haibei' },
- {
- 'id': '318',
- 'provincecode': '630000',
- 'city': '黄南藏族自治州',
- 'code': '632300',
- 'initial': 'H',
- 'short': 'Huangnan' },
- {
- 'id': '319',
- 'provincecode': '630000',
- 'city': '海南藏族自治州',
- 'code': '632500',
- 'initial': 'H',
- 'short': 'Hainan' },
- {
- 'id': '322',
- 'provincecode': '630000',
- 'city': '海西蒙古族藏族自治州',
- 'code': '632800',
- 'initial': 'H',
- 'short': 'Haixi' },
- {
- 'id': '331',
- 'provincecode': '650000',
- 'city': '哈密地区',
- 'code': '652200',
- 'initial': 'H',
- 'short': 'Hami' },
- {
- 'id': '338',
- 'provincecode': '650000',
- 'city': '和田地区',
- 'code': '653200',
- 'initial': 'H',
- 'short': 'Hetiandi' },
- {
- 'id': '17',
- 'provincecode': '140000',
- 'city': '晋城市',
- 'code': '140500',
- 'initial': 'J',
- 'short': 'Jincheng' },
- {
- 'id': '19',
- 'provincecode': '140000',
- 'city': '晋中市',
- 'code': '140700',
- 'initial': 'J',
- 'short': 'Jinzhong' },
- {
- 'id': '42',
- 'provincecode': '210000',
- 'city': '锦州市',
- 'code': '210700',
- 'initial': 'J',
- 'short': 'Jinzhou' },
- {
- 'id': '51',
- 'provincecode': '220000',
- 'city': '吉林市',
- 'code': '220200',
- 'initial': 'J',
- 'short': 'Jilin' },
- {
- 'id': '61',
- 'provincecode': '230000',
- 'city': '鸡西市',
- 'code': '230300',
- 'initial': 'J',
- 'short': 'Jixi' },
- {
- 'id': '66',
- 'provincecode': '230000',
- 'city': '佳木斯市',
- 'code': '230800',
- 'initial': 'J',
- 'short': 'Jiamusi' },
- {
- 'id': '90',
- 'provincecode': '330000',
- 'city': '嘉兴市',
- 'code': '330400',
- 'initial': 'J',
- 'short': 'Jiaxing' },
- {
- 'id': '93',
- 'provincecode': '330000',
- 'city': '金华市',
- 'code': '330700',
- 'initial': 'J',
- 'short': 'Jinhua' },
- {
- 'id': '125',
- 'provincecode': '360000',
- 'city': '景德镇市',
- 'code': '360200',
- 'initial': 'J',
- 'short': 'Jingdezhen' },
- {
- 'id': '127',
- 'provincecode': '360000',
- 'city': '九江市',
- 'code': '360400',
- 'initial': 'J',
- 'short': 'Jiujiang' },
- {
- 'id': '131',
- 'provincecode': '360000',
- 'city': '吉安市',
- 'code': '360800',
- 'initial': 'J',
- 'short': 'Jian' },
- {
- 'id': '135',
- 'provincecode': '370000',
- 'city': '济南市',
- 'code': '370100',
- 'initial': 'J',
- 'short': 'Jinan' },
- {
- 'id': '142',
- 'provincecode': '370000',
- 'city': '济宁市',
- 'code': '370800',
- 'initial': 'J',
- 'short': 'Jining' },
- {
- 'id': '159',
- 'provincecode': '410000',
- 'city': '焦作市',
- 'code': '410800',
- 'initial': 'J',
- 'short': 'Jiaozuo' },
- {
- 'id': '175',
- 'provincecode': '420000',
- 'city': '荆门市',
- 'code': '420800',
- 'initial': 'J',
- 'short': 'Jingmen' },
- {
- 'id': '177',
- 'provincecode': '420000',
- 'city': '荆州市',
- 'code': '421000',
- 'initial': 'J',
- 'short': 'Jingzhou' },
- {
- 'id': '203',
- 'provincecode': '440000',
- 'city': '江门市',
- 'code': '440700',
- 'initial': 'J',
- 'short': 'Jiangmen' },
- {
- 'id': '216',
- 'provincecode': '440000',
- 'city': '揭阳市',
- 'code': '445200',
- 'initial': 'J',
- 'short': 'Jieyang' },
- {
- 'id': '302',
- 'provincecode': '620000',
- 'city': '嘉峪关市',
- 'code': '620200',
- 'initial': 'J',
- 'short': 'Jiayuguan' },
- {
- 'id': '303',
- 'provincecode': '620000',
- 'city': '金昌市',
- 'code': '620300',
- 'initial': 'J',
- 'short': 'Jinchang' },
- {
- 'id': '309',
- 'provincecode': '620000',
- 'city': '酒泉市',
- 'code': '620900',
- 'initial': 'J',
- 'short': 'Jiuquan' },
- {
- 'id': '153',
- 'provincecode': '410000',
- 'city': '开封市',
- 'code': '410200',
- 'initial': 'K',
- 'short': 'Kaifeng' },
- {
- 'id': '268',
- 'provincecode': '530000',
- 'city': '昆明市',
- 'code': '530100',
- 'initial': 'K',
- 'short': 'Kunming' },
- {
- 'id': '329',
- 'provincecode': '650000',
- 'city': '克拉玛依市',
- 'code': '650200',
- 'initial': 'K',
- 'short': 'Kelamayi' },
- {
- 'id': '336',
- 'provincecode': '650000',
- 'city': '克孜勒苏柯尔克孜自治州',
- 'code': '653000',
- 'initial': 'K',
- 'short': 'Kezile' },
- {
- 'id': '337',
- 'provincecode': '650000',
- 'city': '喀什地区',
- 'code': '653100',
- 'initial': 'K',
- 'short': 'Kashidi' },
- {
- 'id': '11',
- 'provincecode': '130000',
- 'city': '廊坊市',
- 'code': '131000',
- 'initial': 'L',
- 'short': 'Langfang' },
- {
- 'id': '22',
- 'provincecode': '140000',
- 'city': '临汾市',
- 'code': '141000',
- 'initial': 'L',
- 'short': 'Linfen' },
- {
- 'id': '23',
- 'provincecode': '140000',
- 'city': '吕梁市',
- 'code': '141100',
- 'initial': 'L',
- 'short': 'Lvliang' },
- {
- 'id': '45',
- 'provincecode': '210000',
- 'city': '辽阳市',
- 'code': '211000',
- 'initial': 'L',
- 'short': 'Liaoyang' },
- {
- 'id': '53',
- 'provincecode': '220000',
- 'city': '辽源市',
- 'code': '220400',
- 'initial': 'L',
- 'short': 'Liaoyuan' },
- {
- 'id': '80',
- 'provincecode': '320000',
- 'city': '连云港市',
- 'code': '320700',
- 'initial': 'L',
- 'short': 'Lianyungang' },
- {
- 'id': '97',
- 'provincecode': '330000',
- 'city': '丽水市',
- 'code': '331100',
- 'initial': 'L',
- 'short': 'Lishui' },
- {
- 'id': '111',
- 'provincecode': '340000',
- 'city': '六安市',
- 'code': '341500',
- 'initial': 'L',
- 'short': 'Liuan' },
- {
- 'id': '122',
- 'provincecode': '350000',
- 'city': '龙岩市',
- 'code': '350800',
- 'initial': 'L',
- 'short': 'Longyan' },
- {
- 'id': '146',
- 'provincecode': '370000',
- 'city': '莱芜市',
- 'code': '371200',
- 'initial': 'L',
- 'short': 'Laiwu' },
- {
- 'id': '147',
- 'provincecode': '370000',
- 'city': '临沂市',
- 'code': '371300',
- 'initial': 'L',
- 'short': 'Linyi' },
- {
- 'id': '149',
- 'provincecode': '370000',
- 'city': '聊城市',
- 'code': '371500',
- 'initial': 'L',
- 'short': 'Liaocheng' },
- {
- 'id': '154',
- 'provincecode': '410000',
- 'city': '洛阳市',
- 'code': '410300',
- 'initial': 'L',
- 'short': 'Luoyang' },
- {
- 'id': '162',
- 'provincecode': '410000',
- 'city': '漯河市',
- 'code': '411100',
- 'initial': 'L',
- 'short': 'Luohe' },
- {
- 'id': '195',
- 'provincecode': '430000',
- 'city': '娄底市',
- 'code': '431300',
- 'initial': 'L',
- 'short': 'Loudi' },
- {
- 'id': '219',
- 'provincecode': '450000',
- 'city': '柳州市',
- 'code': '450200',
- 'initial': 'L',
- 'short': 'Liuzhou' },
- {
- 'id': '230',
- 'provincecode': '450000',
- 'city': '来宾市',
- 'code': '451300',
- 'initial': 'L',
- 'short': 'Laibin' },
- {
- 'id': '241',
- 'provincecode': '510000',
- 'city': '泸州市',
- 'code': '510500',
- 'initial': 'L',
- 'short': 'Luzhou' },
- {
- 'id': '247',
- 'provincecode': '510000',
- 'city': '乐山市',
- 'code': '511100',
- 'initial': 'L',
- 'short': 'Leshan' },
- {
- 'id': '258',
- 'provincecode': '510000',
- 'city': '凉山彝族自治州',
- 'code': '513400',
- 'initial': 'L',
- 'short': 'Liangshan' },
- {
- 'id': '260',
- 'provincecode': '520000',
- 'city': '六盘水市',
- 'code': '520200',
- 'initial': 'L',
- 'short': 'Liupanshui' },
- {
- 'id': '273',
- 'provincecode': '530000',
- 'city': '丽江市',
- 'code': '530700',
- 'initial': 'L',
- 'short': 'Lijiang' },
- {
- 'id': '275',
- 'provincecode': '530000',
- 'city': '临沧市',
- 'code': '530900',
- 'initial': 'L',
- 'short': 'Lincang' },
- {
- 'id': '284',
- 'provincecode': '540000',
- 'city': '拉萨市',
- 'code': '540100',
- 'initial': 'L',
- 'short': 'Lasa' },
- {
- 'id': '290',
- 'provincecode': '540000',
- 'city': '林芝地区',
- 'code': '542600',
- 'initial': 'L',
- 'short': 'Linzhi' },
- {
- 'id': '301',
- 'provincecode': '620000',
- 'city': '兰州市',
- 'code': '620100',
- 'initial': 'L',
- 'short': 'Lanzhou' },
- {
- 'id': '312',
- 'provincecode': '620000',
- 'city': '陇南市',
- 'code': '621200',
- 'initial': 'L',
- 'short': 'Longnan' },
- {
- 'id': '313',
- 'provincecode': '620000',
- 'city': '临夏回族自治州',
- 'code': '622900',
- 'initial': 'L',
- 'short': 'Linxia' },
- {
- 'id': '68',
- 'provincecode': '230000',
- 'city': '牡丹江市',
- 'code': '231000',
- 'initial': 'M',
- 'short': 'Mudanjiang' },
- {
- 'id': '102',
- 'provincecode': '340000',
- 'city': '马鞍山市',
- 'code': '340500',
- 'initial': 'M',
- 'short': 'Maanshan' },
- {
- 'id': '205',
- 'provincecode': '440000',
- 'city': '茂名市',
- 'code': '440900',
- 'initial': 'M',
- 'short': 'Maoming' },
- {
- 'id': '208',
- 'provincecode': '440000',
- 'city': '梅州市',
- 'code': '441400',
- 'initial': 'M',
- 'short': 'Meizhou' },
- {
- 'id': '243',
- 'provincecode': '510000',
- 'city': '绵阳市',
- 'code': '510700',
- 'initial': 'M',
- 'short': 'Mianyang' },
- {
- 'id': '249',
- 'provincecode': '510000',
- 'city': '眉山市',
- 'code': '511400',
- 'initial': 'M',
- 'short': 'Meishan' },
- {
- 'id': '74',
- 'provincecode': '320000',
- 'city': '南京市',
- 'code': '320100',
- 'initial': 'N',
- 'short': 'Nanjing' },
- {
- 'id': '79',
- 'provincecode': '320000',
- 'city': '南通市',
- 'code': '320600',
- 'initial': 'N',
- 'short': 'Nantong' },
- {
- 'id': '88',
- 'provincecode': '330000',
- 'city': '宁波市',
- 'code': '330200',
- 'initial': 'N',
- 'short': 'Ningbo' },
- {
- 'id': '121',
- 'provincecode': '350000',
- 'city': '南平市',
- 'code': '350700',
- 'initial': 'N',
- 'short': 'Nanping' },
- {
- 'id': '123',
- 'provincecode': '350000',
- 'city': '宁德市',
- 'code': '350900',
- 'initial': 'N',
- 'short': 'Ningde' },
- {
- 'id': '124',
- 'provincecode': '360000',
- 'city': '南昌市',
- 'code': '360100',
- 'initial': 'N',
- 'short': 'Nanchang' },
- {
- 'id': '164',
- 'provincecode': '410000',
- 'city': '南阳市',
- 'code': '411300',
- 'initial': 'N',
- 'short': 'Nanyang' },
- {
- 'id': '218',
- 'provincecode': '450000',
- 'city': '南宁市',
- 'code': '450100',
- 'initial': 'N',
- 'short': 'Nanning' },
- {
- 'id': '246',
- 'provincecode': '510000',
- 'city': '内江市',
- 'code': '511000',
- 'initial': 'N',
- 'short': 'Neijiang' },
- {
- 'id': '248',
- 'provincecode': '510000',
- 'city': '南充市',
- 'code': '511300',
- 'initial': 'N',
- 'short': 'Nanchong' },
- {
- 'id': '282',
- 'provincecode': '530000',
- 'city': '怒江傈僳族自治州',
- 'code': '533300',
- 'initial': 'N',
- 'short': 'Nujiang' },
- {
- 'id': '288',
- 'provincecode': '540000',
- 'city': '那曲地区',
- 'code': '542400',
- 'initial': 'N',
- 'short': 'Naqu' },
- {
- 'id': '46',
- 'provincecode': '210000',
- 'city': '盘锦市',
- 'code': '211100',
- 'initial': 'P',
- 'short': 'Panjin' },
- {
- 'id': '117',
- 'provincecode': '350000',
- 'city': '莆田市',
- 'code': '350300',
- 'initial': 'P',
- 'short': 'Putian' },
- {
- 'id': '126',
- 'provincecode': '360000',
- 'city': '萍乡市',
- 'code': '360300',
- 'initial': 'P',
- 'short': 'Pingxiang' },
- {
- 'id': '155',
- 'provincecode': '410000',
- 'city': '平顶山市',
- 'code': '410400',
- 'initial': 'P',
- 'short': 'Pingdingshan' },
- {
- 'id': '160',
- 'provincecode': '410000',
- 'city': '濮阳市',
- 'code': '410900',
- 'initial': 'P',
- 'short': 'Puyang' },
- {
- 'id': '240',
- 'provincecode': '510000',
- 'city': '攀枝花市',
- 'code': '510400',
- 'initial': 'P',
- 'short': 'Panzhihua' },
- {
- 'id': '308',
- 'provincecode': '620000',
- 'city': '平凉市',
- 'code': '620800',
- 'initial': 'P',
- 'short': 'Pingliang' },
- {
- 'id': '4',
- 'provincecode': '130000',
- 'city': '秦皇岛市',
- 'code': '130300',
- 'initial': 'Q',
- 'short': 'Qinhuangdao' },
- {
- 'id': '60',
- 'provincecode': '230000',
- 'city': '齐齐哈尔市',
- 'code': '230200',
- 'initial': 'Q',
- 'short': 'Qiqihaer' },
- {
- 'id': '67',
- 'provincecode': '230000',
- 'city': '七台河市',
- 'code': '230900',
- 'initial': 'Q',
- 'short': 'Qitaihe' },
- {
- 'id': '94',
- 'provincecode': '330000',
- 'city': '衢州市',
- 'code': '330800',
- 'initial': 'Q',
- 'short': 'Quzhou' },
- {
- 'id': '119',
- 'provincecode': '350000',
- 'city': '泉州市',
- 'code': '350500',
- 'initial': 'Q',
- 'short': 'Quanzhou' },
- {
- 'id': '136',
- 'provincecode': '370000',
- 'city': '青岛市',
- 'code': '370200',
- 'initial': 'Q',
- 'short': 'Qingdao' },
- {
- 'id': '212',
- 'provincecode': '440000',
- 'city': '清远市',
- 'code': '441800',
- 'initial': 'Q',
- 'short': 'Qingyuan' },
- {
- 'id': '224',
- 'provincecode': '450000',
- 'city': '钦州市',
- 'code': '450700',
- 'initial': 'Q',
- 'short': 'Qinzhou' },
- {
- 'id': '264',
- 'provincecode': '520000',
- 'city': '黔西南布依族苗族自治州',
- 'code': '522300',
- 'initial': 'Q',
- 'short': 'Qianxinan' },
- {
- 'id': '266',
- 'provincecode': '520000',
- 'city': '黔东南苗族侗族自治州',
- 'code': '522600',
- 'initial': 'Q',
- 'short': 'Qiandong' },
- {
- 'id': '267',
- 'provincecode': '520000',
- 'city': '黔南布依族苗族自治州',
- 'code': '522700',
- 'initial': 'Q',
- 'short': 'Qiannan' },
- {
- 'id': '269',
- 'provincecode': '530000',
- 'city': '曲靖市',
- 'code': '530300',
- 'initial': 'Q',
- 'short': 'Qujing' },
- {
- 'id': '310',
- 'provincecode': '620000',
- 'city': '庆阳市',
- 'code': '621000',
- 'initial': 'Q',
- 'short': 'Qingyang' },
- {
- 'id': '145',
- 'provincecode': '370000',
- 'city': '日照市',
- 'code': '371100',
- 'initial': 'R',
- 'short': 'Rizhao' },
- {
- 'id': '287',
- 'provincecode': '540000',
- 'city': '日喀则地区',
- 'code': '542300',
- 'initial': 'R',
- 'short': 'Rikaze' },
- {
- 'id': '2',
- 'provincecode': '130000',
- 'city': '石家庄市',
- 'code': '130100',
- 'initial': 'S',
- 'short': 'Shijiazhuang' },
- {
- 'id': '',
- 'provincecode': '310100',
- 'city': '上海市',
- 'code': '310100',
- 'initial': 'S',
- 'short': 'Shanghai' },
- {
- 'id': '18',
- 'provincecode': '140000',
- 'city': '朔州市',
- 'code': '140600',
- 'initial': 'S',
- 'short': 'Shuozhou' },
- {
- 'id': '36',
- 'provincecode': '210000',
- 'city': '沈阳市',
- 'code': '210100',
- 'initial': 'S',
- 'short': 'Shenyang' },
- {
- 'id': '',
- 'provincecode': '530000',
- 'city': '普洱市',
- 'code': '530800',
- 'initial': 'P',
- 'short': 'Puer' },
- {
- 'id': '52',
- 'provincecode': '220000',
- 'city': '四平市',
- 'code': '220300',
- 'initial': 'S',
- 'short': 'Siping' },
- {
- 'id': '56',
- 'provincecode': '220000',
- 'city': '松原市',
- 'code': '220700',
- 'initial': 'S',
- 'short': 'Songyuan' },
- {
- 'id': '63',
- 'provincecode': '230000',
- 'city': '双鸭山市',
- 'code': '230500',
- 'initial': 'S',
- 'short': 'Shuangyashan' },
- {
- 'id': '70',
- 'provincecode': '230000',
- 'city': '绥化市',
- 'code': '231200',
- 'initial': 'S',
- 'short': 'Suihua' },
- {
- 'id': '78',
- 'provincecode': '320000',
- 'city': '苏州市',
- 'code': '320500',
- 'initial': 'S',
- 'short': 'Suzhou' },
- {
- 'id': '86',
- 'provincecode': '320000',
- 'city': '宿迁市',
- 'code': '321300',
- 'initial': 'S',
- 'short': 'Suqian' },
- {
- 'id': '92',
- 'provincecode': '330000',
- 'city': '绍兴市',
- 'code': '330600',
- 'initial': 'S',
- 'short': 'Shaoxing' },
- {
- 'id': '109',
- 'provincecode': '340000',
- 'city': '宿州市',
- 'code': '341300',
- 'initial': 'S',
- 'short': 'Suzhou' },
- {
- 'id': '118',
- 'provincecode': '350000',
- 'city': '三明市',
- 'code': '350400',
- 'initial': 'S',
- 'short': 'Sanming' },
- {
- 'id': '134',
- 'provincecode': '360000',
- 'city': '上饶市',
- 'code': '361100',
- 'initial': 'S',
- 'short': 'Shangrao' },
- {
- 'id': '163',
- 'provincecode': '410000',
- 'city': '三门峡市',
- 'code': '411200',
- 'initial': 'S',
- 'short': 'Sanmenxia' },
- {
- 'id': '165',
- 'provincecode': '410000',
- 'city': '商丘市',
- 'code': '411400',
- 'initial': 'S',
- 'short': 'Shangqiu' },
- {
- 'id': '171',
- 'provincecode': '420000',
- 'city': '十堰市',
- 'code': '420300',
- 'initial': 'S',
- 'short': 'Shiyan' },
- {
- 'id': '180',
- 'provincecode': '420000',
- 'city': '随州市',
- 'code': '421300',
- 'initial': 'S',
- 'short': 'Suizhou' },
- {
- 'id': '187',
- 'provincecode': '430000',
- 'city': '邵阳市',
- 'code': '430500',
- 'initial': 'S',
- 'short': 'Shaoyang' },
- {
- 'id': '198',
- 'provincecode': '440000',
- 'city': '韶关市',
- 'code': '440200',
- 'initial': 'S',
- 'short': 'Shaoguan' },
- {
- 'id': '199',
- 'provincecode': '440000',
- 'city': '深圳市',
- 'code': '440300',
- 'initial': 'S',
- 'short': 'Shenzhen' },
- {
- 'id': '201',
- 'provincecode': '440000',
- 'city': '汕头市',
- 'code': '440500',
- 'initial': 'S',
- 'short': 'Shantou' },
- {
- 'id': '209',
- 'provincecode': '440000',
- 'city': '汕尾市',
- 'code': '441500',
- 'initial': 'S',
- 'short': 'Shanwei' },
- {
- 'id': '233',
- 'provincecode': '460000',
- 'city': '三亚市',
- 'code': '460200',
- 'initial': 'S',
- 'short': 'Sanya' },
- {
- 'id': '245',
- 'provincecode': '510000',
- 'city': '遂宁市',
- 'code': '510900',
- 'initial': 'S',
- 'short': 'Suining' },
- {
- 'id': '286',
- 'provincecode': '540000',
- 'city': '山南地区',
- 'code': '542200',
- 'initial': 'S',
- 'short': 'Shannan' },
- {
- 'id': '300',
- 'provincecode': '610000',
- 'city': '商洛市',
- 'code': '611000',
- 'initial': 'S',
- 'short': 'Shangluo' },
- {
- 'id': '324',
- 'provincecode': '640000',
- 'city': '石嘴山市',
- 'code': '640200',
- 'initial': 'S',
- 'short': 'Shizuishan' },
- {
- 'id': '3',
- 'provincecode': '130000',
- 'city': '唐山市',
- 'code': '130200',
- 'initial': 'T',
- 'short': 'Tangshan' },
- {
- 'id': '13',
- 'provincecode': '140000',
- 'city': '太原市',
- 'code': '140100',
- 'initial': 'T',
- 'short': 'Taiyuan' },
- {
- 'id': '28',
- 'provincecode': '150000',
- 'city': '通辽市',
- 'code': '150500',
- 'initial': 'T',
- 'short': 'Tongliao' },
- {
- 'id': '47',
- 'provincecode': '210000',
- 'city': '铁岭市',
- 'code': '211200',
- 'initial': 'T',
- 'short': 'Tieling' },
- {
- 'id': '54',
- 'provincecode': '220000',
- 'city': '通化市',
- 'code': '220500',
- 'initial': 'T',
- 'short': 'Tonghua' },
- {
- 'id': '85',
- 'provincecode': '320000',
- 'city': '泰州市',
- 'code': '321200',
- 'initial': 'T',
- 'short': 'Taizhou' },
- {
- 'id': '96',
- 'provincecode': '330000',
- 'city': '台州市',
- 'code': '331000',
- 'initial': 'T',
- 'short': 'Taizhou' },
- {
- 'id': '104',
- 'provincecode': '340000',
- 'city': '铜陵市',
- 'code': '340700',
- 'initial': 'T',
- 'short': 'Tongling' },
- {
- 'id': '143',
- 'provincecode': '370000',
- 'city': '泰安市',
- 'code': '370900',
- 'initial': 'T',
- 'short': 'Taian' },
- {
- 'id': '263',
- 'provincecode': '520000',
- 'city': '铜仁地区',
- 'code': '522200',
- 'initial': 'T',
- 'short': 'Tongren' },
- {
- 'id': '292',
- 'provincecode': '610000',
- 'city': '铜川市',
- 'code': '610200',
- 'initial': 'T',
- 'short': 'Tongchuan' },
- {
- 'id': '305',
- 'provincecode': '620000',
- 'city': '天水市',
- 'code': '620500',
- 'initial': 'T',
- 'short': 'Tianshui' },
- {
- 'id': '330',
- 'provincecode': '650000',
- 'city': '吐鲁番地区',
- 'code': '652100',
- 'initial': 'T',
- 'short': 'Tulufan' },
- {
- 'id': '340',
- 'provincecode': '650000',
- 'city': '塔城地区',
- 'code': '654200',
- 'initial': 'T',
- 'short': 'Tachengdi' },
- {
- 'id': '343',
- 'provincecode': '120100',
- 'city': '天津市',
- 'code': '120100',
- 'initial': 'T',
- 'short': 'Tianjin' },
- {
- 'id': '26',
- 'provincecode': '150000',
- 'city': '乌海市',
- 'code': '150300',
- 'initial': 'W',
- 'short': 'Wuhai' },
- {
- 'id': '32',
- 'provincecode': '150000',
- 'city': '乌兰察布市',
- 'code': '150900',
- 'initial': 'W',
- 'short': 'Wulanchabu' },
- {
- 'id': '75',
- 'provincecode': '320000',
- 'city': '无锡市',
- 'code': '320200',
- 'initial': 'W',
- 'short': 'Wuxi' },
- {
- 'id': '89',
- 'provincecode': '330000',
- 'city': '温州市',
- 'code': '330300',
- 'initial': 'W',
- 'short': 'Wenzhou' },
- {
- 'id': '99',
- 'provincecode': '340000',
- 'city': '芜湖市',
- 'code': '340200',
- 'initial': 'W',
- 'short': 'Wuhu' },
- {
- 'id': '141',
- 'provincecode': '370000',
- 'city': '潍坊市',
- 'code': '370700',
- 'initial': 'W',
- 'short': 'Weifang' },
- {
- 'id': '144',
- 'provincecode': '370000',
- 'city': '威海市',
- 'code': '371000',
- 'initial': 'W',
- 'short': 'Weihai' },
- {
- 'id': '169',
- 'provincecode': '420000',
- 'city': '武汉市',
- 'code': '420100',
- 'initial': 'W',
- 'short': 'Wuhan' },
- {
- 'id': '221',
- 'provincecode': '450000',
- 'city': '梧州市',
- 'code': '450400',
- 'initial': 'W',
- 'short': 'Wuzhou' },
- {
- 'id': '278',
- 'provincecode': '530000',
- 'city': '文山壮族苗族自治州',
- 'code': '532600',
- 'initial': 'W',
- 'short': 'Wenshan' },
- {
- 'id': '295',
- 'provincecode': '610000',
- 'city': '渭南市',
- 'code': '610500',
- 'initial': 'W',
- 'short': 'Weinan' },
- {
- 'id': '306',
- 'provincecode': '620000',
- 'city': '武威市',
- 'code': '620600',
- 'initial': 'W',
- 'short': 'Wuwei' },
- {
- 'id': '325',
- 'provincecode': '640000',
- 'city': '吴忠市',
- 'code': '640300',
- 'initial': 'W',
- 'short': 'Wuzhong' },
- {
- 'id': '328',
- 'provincecode': '650000',
- 'city': '乌鲁木齐市',
- 'code': '650100',
- 'initial': 'W',
- 'short': 'Wulumuqi' },
- {
- 'id': '6',
- 'provincecode': '130000',
- 'city': '邢台市',
- 'code': '130500',
- 'initial': 'X',
- 'short': 'Xingtai' },
- {
- 'id': '21',
- 'provincecode': '140000',
- 'city': '忻州市',
- 'code': '140900',
- 'initial': 'X',
- 'short': 'Xinzhou' },
- {
- 'id': '33',
- 'provincecode': '150000',
- 'city': '兴安盟',
- 'code': '152200',
- 'initial': 'X',
- 'short': 'Xinganmeng' },
- {
- 'id': '34',
- 'provincecode': '150000',
- 'city': '锡林郭勒盟',
- 'code': '152500',
- 'initial': 'X',
- 'short': 'Xilinguolemeng' },
- {
- 'id': '76',
- 'provincecode': '320000',
- 'city': '徐州市',
- 'code': '320300',
- 'initial': 'X',
- 'short': 'Xuzhou' },
- {
- 'id': '114',
- 'provincecode': '340000',
- 'city': '宣城市',
- 'code': '341800',
- 'initial': 'X',
- 'short': 'Xuancheng' },
- {
- 'id': '116',
- 'provincecode': '350000',
- 'city': '厦门市',
- 'code': '350200',
- 'initial': 'X',
- 'short': 'Xiamen' },
- {
- 'id': '128',
- 'provincecode': '360000',
- 'city': '新余市',
- 'code': '360500',
- 'initial': 'X',
- 'short': 'Xinyu' },
- {
- 'id': '158',
- 'provincecode': '410000',
- 'city': '新乡市',
- 'code': '410700',
- 'initial': 'X',
- 'short': 'Xinxiang' },
- {
- 'id': '161',
- 'provincecode': '410000',
- 'city': '许昌市',
- 'code': '411000',
- 'initial': 'X',
- 'short': 'Xuchang' },
- {
- 'id': '166',
- 'provincecode': '410000',
- 'city': '信阳市',
- 'code': '411500',
- 'initial': 'X',
- 'short': 'Xinyang' },
- {
- 'id': '173',
- 'provincecode': '420000',
- 'city': '襄樊市',
- 'code': '420600',
- 'initial': 'X',
- 'short': 'Xiangfan' },
- {
- 'id': '176',
- 'provincecode': '420000',
- 'city': '孝感市',
- 'code': '420900',
- 'initial': 'X',
- 'short': 'Xiaogan' },
- {
- 'id': '179',
- 'provincecode': '420000',
- 'city': '咸宁市',
- 'code': '421200',
- 'initial': 'X',
- 'short': 'Xianning' },
- {
- 'id': '185',
- 'provincecode': '430000',
- 'city': '湘潭市',
- 'code': '430300',
- 'initial': 'X',
- 'short': 'Xiangtan' },
- {
- 'id': '196',
- 'provincecode': '430000',
- 'city': '湘西土家族苗族自治州',
- 'code': '433100',
- 'initial': 'X',
- 'short': 'Xiangxi' },
- {
- 'id': '279',
- 'provincecode': '530000',
- 'city': '西双版纳傣族自治州',
- 'code': '532800',
- 'initial': 'X',
- 'short': 'Xishuangbanna' },
- {
- 'id': '291',
- 'provincecode': '610000',
- 'city': '西安市',
- 'code': '610100',
- 'initial': 'X',
- 'short': 'Xian' },
- {
- 'id': '294',
- 'provincecode': '610000',
- 'city': '咸阳市',
- 'code': '610400',
- 'initial': 'X',
- 'short': 'Xianyang' },
- {
- 'id': '315',
- 'provincecode': '630000',
- 'city': '西宁市',
- 'code': '630100',
- 'initial': 'X',
- 'short': 'Xining' },
- {
- 'id': '15',
- 'provincecode': '140000',
- 'city': '阳泉市',
- 'code': '140300',
- 'initial': 'Y',
- 'short': 'Yangquan' },
- {
- 'id': '20',
- 'provincecode': '140000',
- 'city': '运城市',
- 'code': '140800',
- 'initial': 'Y',
- 'short': 'Yuncheng' },
- {
- 'id': '43',
- 'provincecode': '210000',
- 'city': '营口市',
- 'code': '210800',
- 'initial': 'Y',
- 'short': 'Yingkou' },
- {
- 'id': '58',
- 'provincecode': '220000',
- 'city': '延边朝鲜族自治州',
- 'code': '222400',
- 'initial': 'Y',
- 'short': 'Yanbian' },
- {
- 'id': '65',
- 'provincecode': '230000',
- 'city': '伊春市',
- 'code': '230700',
- 'initial': 'Y',
- 'short': 'Yichun' },
- {
- 'id': '82',
- 'provincecode': '320000',
- 'city': '盐城市',
- 'code': '320900',
- 'initial': 'Y',
- 'short': 'Yancheng' },
- {
- 'id': '83',
- 'provincecode': '320000',
- 'city': '扬州市',
- 'code': '321000',
- 'initial': 'Y',
- 'short': 'Yangzhou' },
- {
- 'id': '129',
- 'provincecode': '360000',
- 'city': '鹰潭市',
- 'code': '360600',
- 'initial': 'Y',
- 'short': 'Yingtan' },
- {
- 'id': '132',
- 'provincecode': '360000',
- 'city': '宜春市',
- 'code': '360900',
- 'initial': 'Y',
- 'short': 'Yichun' },
- {
- 'id': '140',
- 'provincecode': '370000',
- 'city': '烟台市',
- 'code': '370600',
- 'initial': 'Y',
- 'short': 'Yantai' },
- {
- 'id': '172',
- 'provincecode': '420000',
- 'city': '宜昌市',
- 'code': '420500',
- 'initial': 'Y',
- 'short': 'Yichang' },
- {
- 'id': '188',
- 'provincecode': '430000',
- 'city': '岳阳市',
- 'code': '430600',
- 'initial': 'Y',
- 'short': 'Yueyang' },
- {
- 'id': '191',
- 'provincecode': '430000',
- 'city': '益阳市',
- 'code': '430900',
- 'initial': 'Y',
- 'short': 'Yiyang' },
- {
- 'id': '193',
- 'provincecode': '430000',
- 'city': '永州市',
- 'code': '431100',
- 'initial': 'Y',
- 'short': 'Yongzhou' },
- {
- 'id': '211',
- 'provincecode': '440000',
- 'city': '阳江市',
- 'code': '441700',
- 'initial': 'Y',
- 'short': 'Yangjiang' },
- {
- 'id': '217',
- 'provincecode': '440000',
- 'city': '云浮市',
- 'code': '445300',
- 'initial': 'Y',
- 'short': 'Yunfu' },
- {
- 'id': '226',
- 'provincecode': '450000',
- 'city': '玉林市',
- 'code': '450900',
- 'initial': 'Y',
- 'short': 'Yulin' },
- {
- 'id': '250',
- 'provincecode': '510000',
- 'city': '宜宾市',
- 'code': '511500',
- 'initial': 'Y',
- 'short': 'Yibin' },
- {
- 'id': '253',
- 'provincecode': '510000',
- 'city': '雅安市',
- 'code': '511800',
- 'initial': 'Y',
- 'short': 'Yaan' },
- {
- 'id': '270',
- 'provincecode': '530000',
- 'city': '玉溪市',
- 'code': '530400',
- 'initial': 'Y',
- 'short': 'Yuxi' },
- {
- 'id': '296',
- 'provincecode': '610000',
- 'city': '延安市',
- 'code': '610600',
- 'initial': 'Y',
- 'short': 'Yanan' },
- {
- 'id': '298',
- 'provincecode': '610000',
- 'city': '榆林市',
- 'code': '610800',
- 'initial': 'Y',
- 'short': 'Yulin' },
- {
- 'id': '321',
- 'provincecode': '630000',
- 'city': '玉树藏族自治州',
- 'code': '632700',
- 'initial': 'Y',
- 'short': 'Yushu' },
- {
- 'id': '323',
- 'provincecode': '640000',
- 'city': '银川市',
- 'code': '640100',
- 'initial': 'Y',
- 'short': 'Yinchuan' },
- {
- 'id': '339',
- 'provincecode': '650000',
- 'city': '伊犁哈萨克自治州',
- 'code': '654000',
- 'initial': 'Y',
- 'short': 'Yilihasake' },
- {
- 'id': '8',
- 'provincecode': '130000',
- 'city': '张家口市',
- 'code': '130700',
- 'initial': 'Z',
- 'short': 'Zhangjiakou' },
- {
- 'id': '84',
- 'provincecode': '320000',
- 'city': '镇江市',
- 'code': '321100',
- 'initial': 'Z',
- 'short': 'Zhenjiang' },
- {
- 'id': '95',
- 'provincecode': '330000',
- 'city': '舟山市',
- 'code': '330900',
- 'initial': 'Z',
- 'short': 'Zhoushan' },
- {
- 'id': '120',
- 'provincecode': '350000',
- 'city': '漳州市',
- 'code': '350600',
- 'initial': 'Z',
- 'short': 'Zhangzhou' },
- {
- 'id': '137',
- 'provincecode': '370000',
- 'city': '淄博市',
- 'code': '370300',
- 'initial': 'Z',
- 'short': 'Zibo' },
- {
- 'id': '138',
- 'provincecode': '370000',
- 'city': '枣庄市',
- 'code': '370400',
- 'initial': 'Z',
- 'short': 'Zaozhuang' },
- {
- 'id': '152',
- 'provincecode': '410000',
- 'city': '郑州市',
- 'code': '410100',
- 'initial': 'Z',
- 'short': 'Zhengzhou' },
- {
- 'id': '167',
- 'provincecode': '410000',
- 'city': '周口市',
- 'code': '411600',
- 'initial': 'Z',
- 'short': 'Zhoukou' },
- {
- 'id': '168',
- 'provincecode': '410000',
- 'city': '驻马店市',
- 'code': '411700',
- 'initial': 'Z',
- 'short': 'Zhumadian' },
- {
- 'id': '184',
- 'provincecode': '430000',
- 'city': '株洲市',
- 'code': '430200',
- 'initial': 'Z',
- 'short': 'Zhuzhou' },
- {
- 'id': '190',
- 'provincecode': '430000',
- 'city': '张家界市',
- 'code': '430800',
- 'initial': 'Z',
- 'short': 'Zhangjiajie' },
- {
- 'id': '200',
- 'provincecode': '440000',
- 'city': '珠海市',
- 'code': '440400',
- 'initial': 'Z',
- 'short': 'Zhuhai' },
- {
- 'id': '204',
- 'provincecode': '440000',
- 'city': '湛江市',
- 'code': '440800',
- 'initial': 'Z',
- 'short': 'Zhanjiang' },
- {
- 'id': '206',
- 'provincecode': '440000',
- 'city': '肇庆市',
- 'code': '441200',
- 'initial': 'Z',
- 'short': 'Zhaoqing' },
- {
- 'id': '214',
- 'provincecode': '440000',
- 'city': '中山市',
- 'code': '442000',
- 'initial': 'Z',
- 'short': 'Zhongshan' },
- {
- 'id': '239',
- 'provincecode': '510000',
- 'city': '自贡市',
- 'code': '510300',
- 'initial': 'Z',
- 'short': 'Zigong' },
- {
- 'id': '255',
- 'provincecode': '510000',
- 'city': '资阳市',
- 'code': '512000',
- 'initial': 'Z',
- 'short': 'Ziyang' },
- {
- 'id': '261',
- 'provincecode': '520000',
- 'city': '遵义市',
- 'code': '520300',
- 'initial': 'Z',
- 'short': 'Zunyi' },
- {
- 'id': '272',
- 'provincecode': '530000',
- 'city': '昭通市',
- 'code': '530600',
- 'initial': 'Z',
- 'short': 'Zhaotong' },
- {
- 'id': '307',
- 'provincecode': '620000',
- 'city': '张掖市',
- 'code': '620700',
- 'initial': 'Z',
- 'short': 'Zhangye' },
- {
- 'id': '327',
- 'provincecode': '640000',
- 'city': '中卫市',
- 'code': '640500',
- 'initial': 'Z',
- 'short': 'Zhongwei' }];
- // 城市检索的首字母
- var searchLetter = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'W', 'X',
- 'Y', 'Z'];
- // function searchLetter() {
- // return searchLetter;
- // }
- // 对城市信息进行分组
- function cityList() {
- var tempArr = [];
- searchLetter.map(
- function (initial) {
- var tempObj = {};
- // let cityInfo = [];
- tempObj.initial = initial;
- tempObj.cityInfo = cityObj.filter(
- function (city) {return city.initial === initial;});
- tempArr.push(tempObj);
- });
- // console.log(JSON.stringify(tempArr));
- return tempArr;
- }
- // function pushCity() {
- // }
- module.exports = {
- searchLetter: searchLetter,
- cityList: cityList,
- cityObjs: cityObjs };
- /***/ }),
- /***/ 212:
- /*!********************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/common/district.js ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 所有区县县级市
- var _default =
- {
- "0": {
- "110000": "北京",
- "120000": "天津",
- "130000": "河北省",
- "140000": "山西省",
- "150000": "内蒙古自治区",
- "210000": "辽宁省",
- "220000": "吉林省",
- "230000": "黑龙江省",
- "310000": "上海",
- "320000": "江苏省",
- "330000": "浙江省",
- "340000": "安徽省",
- "350000": "福建省",
- "360000": "江西省",
- "370000": "山东省",
- "410000": "河南省",
- "420000": "湖北省",
- "430000": "湖南省",
- "440000": "广东省",
- "450000": "广西壮族自治区",
- "460000": "海南省",
- "500000": "重庆",
- "510000": "四川省",
- "520000": "贵州省",
- "530000": "云南省",
- "540000": "西藏自治区",
- "610000": "陕西省",
- "620000": "甘肃省",
- "630000": "青海省",
- "640000": "宁夏回族自治区",
- "650000": "新疆维吾尔自治区",
- "710000": "台湾省",
- "810000": "香港特别行政区",
- "820000": "澳门特别行政区",
- "990000": "海外" },
- "0,110000": {
- "110100": "北京市" },
- "0,110000,110100": {
- "110101": "东城区",
- "110102": "西城区",
- "110105": "朝阳区",
- "110106": "丰台区",
- "110107": "石景山区",
- "110108": "海淀区",
- "110109": "门头沟区",
- "110111": "房山区",
- "110112": "通州区",
- "110113": "顺义区",
- "110114": "昌平区",
- "110115": "大兴区",
- "110116": "怀柔区",
- "110117": "平谷区",
- "110228": "密云区",
- "110229": "延庆区" },
- "0,120000": {
- "120100": "天津市" },
- "0,120000,120100": {
- "120101": "和平区",
- "120102": "河东区",
- "120103": "河西区",
- "120104": "南开区",
- "120105": "河北区",
- "120106": "红桥区",
- "120110": "东丽区",
- "120111": "西青区",
- "120112": "津南区",
- "120113": "北辰区",
- "120114": "武清区",
- "120115": "宝坻区",
- "120116": "滨海新区",
- "120221": "宁河区",
- "120223": "静海区",
- "120225": "蓟州区" },
- "0,130000": {
- "130100": "石家庄市",
- "130200": "唐山市",
- "130300": "秦皇岛市",
- "130400": "邯郸市",
- "130500": "邢台市",
- "130600": "保定市",
- "130700": "张家口市",
- "130800": "承德市",
- "130900": "沧州市",
- "131000": "廊坊市",
- "131100": "衡水市" },
- "0,130000,130100": {
- "130102": "长安区",
- "130103": "桥东区",
- "130104": "桥西区",
- "130105": "新华区",
- "130107": "井陉矿区",
- "130108": "裕华区",
- "130121": "井陉县",
- "130123": "正定县",
- "130124": "栾城县",
- "130125": "行唐县",
- "130126": "灵寿县",
- "130127": "高邑县",
- "130128": "深泽县",
- "130129": "赞皇县",
- "130130": "无极县",
- "130131": "平山县",
- "130132": "元氏县",
- "130133": "赵县",
- "130181": "辛集市",
- "130182": "藁城市",
- "130183": "晋州市",
- "130184": "新乐市",
- "130185": "鹿泉市",
- "130186": "其它区" },
- "0,130000,130200": {
- "130202": "路南区",
- "130203": "路北区",
- "130204": "古冶区",
- "130205": "开平区",
- "130207": "丰南区",
- "130208": "丰润区",
- "130223": "滦县",
- "130224": "滦南县",
- "130225": "乐亭县",
- "130227": "迁西县",
- "130229": "玉田县",
- "130230": "唐海县",
- "130281": "遵化市",
- "130283": "迁安市",
- "130284": "其它区" },
- "0,130000,130300": {
- "130302": "海港区",
- "130303": "山海关区",
- "130304": "北戴河区",
- "130321": "青龙满族自治县",
- "130322": "昌黎县",
- "130323": "抚宁县",
- "130324": "卢龙县",
- "130398": "其它区",
- "130399": "经济技术开发区" },
- "0,130000,130400": {
- "130402": "邯山区",
- "130403": "丛台区",
- "130404": "复兴区",
- "130406": "峰峰矿区",
- "130421": "邯郸县",
- "130423": "临漳县",
- "130424": "成安县",
- "130425": "大名县",
- "130426": "涉县",
- "130427": "磁县",
- "130428": "肥乡县",
- "130429": "永年县",
- "130430": "邱县",
- "130431": "鸡泽县",
- "130432": "广平县",
- "130433": "馆陶县",
- "130434": "魏县",
- "130435": "曲周县",
- "130481": "武安市",
- "130482": "其它区" },
- "0,130000,130500": {
- "130502": "桥东区",
- "130503": "桥西区",
- "130521": "邢台县",
- "130522": "临城县",
- "130523": "内丘县",
- "130524": "柏乡县",
- "130525": "隆尧县",
- "130526": "任县",
- "130527": "南和县",
- "130528": "宁晋县",
- "130529": "巨鹿县",
- "130530": "新河县",
- "130531": "广宗县",
- "130532": "平乡县",
- "130533": "威县",
- "130534": "清河县",
- "130535": "临西县",
- "130581": "南宫市",
- "130582": "沙河市",
- "130583": "其它区" },
- "0,130000,130600": {
- "130602": "新市区",
- "130603": "北市区",
- "130604": "南市区",
- "130621": "满城县",
- "130622": "清苑县",
- "130623": "涞水县",
- "130624": "阜平县",
- "130625": "徐水县",
- "130626": "定兴县",
- "130627": "唐县",
- "130628": "高阳县",
- "130629": "容城县",
- "130630": "涞源县",
- "130631": "望都县",
- "130632": "安新县",
- "130633": "易县",
- "130634": "曲阳县",
- "130635": "蠡县",
- "130636": "顺平县",
- "130637": "博野县",
- "130638": "雄县",
- "130681": "涿州市",
- "130682": "定州市",
- "130683": "安国市",
- "130684": "高碑店市",
- "130698": "高开区",
- "130699": "其它区" },
- "0,130000,130700": {
- "130702": "桥东区",
- "130703": "桥西区",
- "130705": "宣化区",
- "130706": "下花园区",
- "130721": "宣化县",
- "130722": "张北县",
- "130723": "康保县",
- "130724": "沽源县",
- "130725": "尚义县",
- "130726": "蔚县",
- "130727": "阳原县",
- "130728": "怀安县",
- "130729": "万全县",
- "130730": "怀来县",
- "130731": "涿鹿县",
- "130732": "赤城县",
- "130733": "崇礼县",
- "130734": "其它区" },
- "0,130000,130800": {
- "130802": "双桥区",
- "130803": "双滦区",
- "130804": "鹰手营子矿区",
- "130821": "承德县",
- "130822": "兴隆县",
- "130823": "平泉县",
- "130824": "滦平县",
- "130825": "隆化县",
- "130826": "丰宁满族自治县",
- "130827": "宽城满族自治县",
- "130828": "围场满族蒙古族自治县",
- "130829": "其它区" },
- "0,130000,130900": {
- "130902": "新华区",
- "130903": "运河区",
- "130921": "沧县",
- "130922": "青县",
- "130923": "东光县",
- "130924": "海兴县",
- "130925": "盐山县",
- "130926": "肃宁县",
- "130927": "南皮县",
- "130928": "吴桥县",
- "130929": "献县",
- "130930": "孟村回族自治县",
- "130981": "泊头市",
- "130982": "任丘市",
- "130983": "黄骅市",
- "130984": "河间市",
- "130985": "其它区" },
- "0,130000,131000": {
- "131002": "安次区",
- "131003": "广阳区",
- "131022": "固安县",
- "131023": "永清县",
- "131024": "香河县",
- "131025": "大城县",
- "131026": "文安县",
- "131028": "大厂回族自治县",
- "131051": "开发区",
- "131052": "燕郊经济技术开发区",
- "131081": "霸州市",
- "131082": "三河市",
- "131083": "其它区" },
- "0,130000,131100": {
- "131102": "桃城区",
- "131121": "枣强县",
- "131122": "武邑县",
- "131123": "武强县",
- "131124": "饶阳县",
- "131125": "安平县",
- "131126": "故城县",
- "131127": "景县",
- "131128": "阜城县",
- "131181": "冀州市",
- "131182": "深州市",
- "131183": "其它区" },
- "0,140000": {
- "140100": "太原市",
- "140200": "大同市",
- "140300": "阳泉市",
- "140400": "长治市",
- "140500": "晋城市",
- "140600": "朔州市",
- "140700": "晋中市",
- "140800": "运城市",
- "140900": "忻州市",
- "141000": "临汾市",
- "141100": "吕梁市" },
- "0,140000,140100": {
- "140105": "小店区",
- "140106": "迎泽区",
- "140107": "杏花岭区",
- "140108": "尖草坪区",
- "140109": "万柏林区",
- "140110": "晋源区",
- "140121": "清徐县",
- "140122": "阳曲县",
- "140123": "娄烦县",
- "140181": "古交市",
- "140182": "其它区" },
- "0,140000,140200": {
- "140202": "城区",
- "140203": "矿区",
- "140211": "南郊区",
- "140212": "新荣区",
- "140221": "阳高县",
- "140222": "天镇县",
- "140223": "广灵县",
- "140224": "灵丘县",
- "140225": "浑源县",
- "140226": "左云县",
- "140227": "大同县",
- "140228": "其它区" },
- "0,140000,140300": {
- "140302": "城区",
- "140303": "矿区",
- "140311": "郊区",
- "140321": "平定县",
- "140322": "盂县",
- "140323": "其它区" },
- "0,140000,140400": {
- "140421": "长治县",
- "140423": "襄垣县",
- "140424": "屯留县",
- "140425": "平顺县",
- "140426": "黎城县",
- "140427": "壶关县",
- "140428": "长子县",
- "140429": "武乡县",
- "140430": "沁县",
- "140431": "沁源县",
- "140481": "潞城市",
- "140482": "城区",
- "140483": "郊区",
- "140484": "高新区",
- "140485": "其它区" },
- "0,140000,140500": {
- "140502": "城区",
- "140521": "沁水县",
- "140522": "阳城县",
- "140524": "陵川县",
- "140525": "泽州县",
- "140581": "高平市",
- "140582": "其它区" },
- "0,140000,140600": {
- "140602": "朔城区",
- "140603": "平鲁区",
- "140621": "山阴县",
- "140622": "应县",
- "140623": "右玉县",
- "140624": "怀仁县",
- "140625": "其它区" },
- "0,140000,140700": {
- "140702": "榆次区",
- "140721": "榆社县",
- "140722": "左权县",
- "140723": "和顺县",
- "140724": "昔阳县",
- "140725": "寿阳县",
- "140726": "太谷县",
- "140727": "祁县",
- "140728": "平遥县",
- "140729": "灵石县",
- "140781": "介休市",
- "140782": "其它区" },
- "0,140000,140800": {
- "140802": "盐湖区",
- "140821": "临猗县",
- "140822": "万荣县",
- "140823": "闻喜县",
- "140824": "稷山县",
- "140825": "新绛县",
- "140826": "绛县",
- "140827": "垣曲县",
- "140828": "夏县",
- "140829": "平陆县",
- "140830": "芮城县",
- "140881": "永济市",
- "140882": "河津市",
- "140883": "其它区" },
- "0,140000,140900": {
- "140902": "忻府区",
- "140921": "定襄县",
- "140922": "五台县",
- "140923": "代县",
- "140924": "繁峙县",
- "140925": "宁武县",
- "140926": "静乐县",
- "140927": "神池县",
- "140928": "五寨县",
- "140929": "岢岚县",
- "140930": "河曲县",
- "140931": "保德县",
- "140932": "偏关县",
- "140981": "原平市",
- "140982": "其它区" },
- "0,140000,141000": {
- "141002": "尧都区",
- "141021": "曲沃县",
- "141022": "翼城县",
- "141023": "襄汾县",
- "141024": "洪洞县",
- "141025": "古县",
- "141026": "安泽县",
- "141027": "浮山县",
- "141028": "吉县",
- "141029": "乡宁县",
- "141030": "大宁县",
- "141031": "隰县",
- "141032": "永和县",
- "141033": "蒲县",
- "141034": "汾西县",
- "141081": "侯马市",
- "141082": "霍州市",
- "141083": "其它区" },
- "0,140000,141100": {
- "141102": "离石区",
- "141121": "文水县",
- "141122": "交城县",
- "141123": "兴县",
- "141124": "临县",
- "141125": "柳林县",
- "141126": "石楼县",
- "141127": "岚县",
- "141128": "方山县",
- "141129": "中阳县",
- "141130": "交口县",
- "141181": "孝义市",
- "141182": "汾阳市",
- "141183": "其它区" },
- "0,150000": {
- "150100": "呼和浩特市",
- "150200": "包头市",
- "150300": "乌海市",
- "150400": "赤峰市",
- "150500": "通辽市",
- "150600": "鄂尔多斯市",
- "150700": "呼伦贝尔市",
- "150800": "巴彦淖尔市",
- "150900": "乌兰察布市",
- "152200": "兴安盟",
- "152500": "锡林郭勒盟",
- "152900": "阿拉善盟" },
- "0,150000,150100": {
- "150102": "新城区",
- "150103": "回民区",
- "150104": "玉泉区",
- "150105": "赛罕区",
- "150121": "土默特左旗",
- "150122": "托克托县",
- "150123": "和林格尔县",
- "150124": "清水河县",
- "150125": "武川县",
- "150126": "其它区" },
- "0,150000,150200": {
- "150202": "东河区",
- "150203": "昆都仑区",
- "150204": "青山区",
- "150205": "石拐区",
- "150206": "白云矿区",
- "150207": "九原区",
- "150221": "土默特右旗",
- "150222": "固阳县",
- "150223": "达尔罕茂明安联合旗",
- "150224": "其它区" },
- "0,150000,150300": {
- "150302": "海勃湾区",
- "150303": "海南区",
- "150304": "乌达区",
- "150305": "其它区" },
- "0,150000,150400": {
- "150402": "红山区",
- "150403": "元宝山区",
- "150404": "松山区",
- "150421": "阿鲁科尔沁旗",
- "150422": "巴林左旗",
- "150423": "巴林右旗",
- "150424": "林西县",
- "150425": "克什克腾旗",
- "150426": "翁牛特旗",
- "150428": "喀喇沁旗",
- "150429": "宁城县",
- "150430": "敖汉旗",
- "150431": "其它区" },
- "0,150000,150500": {
- "150502": "科尔沁区",
- "150521": "科尔沁左翼中旗",
- "150522": "科尔沁左翼后旗",
- "150523": "开鲁县",
- "150524": "库伦旗",
- "150525": "奈曼旗",
- "150526": "扎鲁特旗",
- "150581": "霍林郭勒市",
- "150582": "其它区" },
- "0,150000,150600": {
- "150602": "东胜区",
- "150621": "达拉特旗",
- "150622": "准格尔旗",
- "150623": "鄂托克前旗",
- "150624": "鄂托克旗",
- "150625": "杭锦旗",
- "150626": "乌审旗",
- "150627": "伊金霍洛旗",
- "150628": "其它区" },
- "0,150000,150700": {
- "150702": "海拉尔区",
- "150721": "阿荣旗",
- "150722": "莫力达瓦达斡尔族自治旗",
- "150723": "鄂伦春自治旗",
- "150724": "鄂温克族自治旗",
- "150725": "陈巴尔虎旗",
- "150726": "新巴尔虎左旗",
- "150727": "新巴尔虎右旗",
- "150781": "满洲里市",
- "150782": "牙克石市",
- "150783": "扎兰屯市",
- "150784": "额尔古纳市",
- "150785": "根河市",
- "150786": "其它区" },
- "0,150000,150800": {
- "150802": "临河区",
- "150821": "五原县",
- "150822": "磴口县",
- "150823": "乌拉特前旗",
- "150824": "乌拉特中旗",
- "150825": "乌拉特后旗",
- "150826": "杭锦后旗",
- "150827": "其它区" },
- "0,150000,150900": {
- "150902": "集宁区",
- "150921": "卓资县",
- "150922": "化德县",
- "150923": "商都县",
- "150924": "兴和县",
- "150925": "凉城县",
- "150926": "察哈尔右翼前旗",
- "150927": "察哈尔右翼中旗",
- "150928": "察哈尔右翼后旗",
- "150929": "四子王旗",
- "150981": "丰镇市",
- "150982": "其它区" },
- "0,150000,152200": {
- "152201": "乌兰浩特市",
- "152202": "阿尔山市",
- "152221": "科尔沁右翼前旗",
- "152222": "科尔沁右翼中旗",
- "152223": "扎赉特旗",
- "152224": "突泉县",
- "152225": "其它区" },
- "0,150000,152500": {
- "152501": "二连浩特市",
- "152502": "锡林浩特市",
- "152522": "阿巴嘎旗",
- "152523": "苏尼特左旗",
- "152524": "苏尼特右旗",
- "152525": "东乌珠穆沁旗",
- "152526": "西乌珠穆沁旗",
- "152527": "太仆寺旗",
- "152528": "镶黄旗",
- "152529": "正镶白旗",
- "152530": "正蓝旗",
- "152531": "多伦县",
- "152532": "其它区" },
- "0,150000,152900": {
- "152921": "阿拉善左旗",
- "152922": "阿拉善右旗",
- "152923": "额济纳旗",
- "152924": "其它区" },
- "0,210000": {
- "210100": "沈阳市",
- "210200": "大连市",
- "210300": "鞍山市",
- "210400": "抚顺市",
- "210500": "本溪市",
- "210600": "丹东市",
- "210700": "锦州市",
- "210800": "营口市",
- "210900": "阜新市",
- "211000": "辽阳市",
- "211100": "盘锦市",
- "211200": "铁岭市",
- "211300": "朝阳市",
- "211400": "葫芦岛市" },
- "0,210000,210100": {
- "210102": "和平区",
- "210103": "沈河区",
- "210104": "大东区",
- "210105": "皇姑区",
- "210106": "铁西区",
- "210111": "苏家屯区",
- "210112": "东陵区",
- "210113": "新城子区",
- "210114": "于洪区",
- "210122": "辽中县",
- "210123": "康平县",
- "210124": "法库县",
- "210181": "新民市",
- "210182": "浑南新区",
- "210183": "张士开发区",
- "210184": "沈北新区",
- "210185": "其它区" },
- "0,210000,210200": {
- "210202": "中山区",
- "210203": "西岗区",
- "210204": "沙河口区",
- "210211": "甘井子区",
- "210212": "旅顺口区",
- "210213": "金州区",
- "210224": "长海县",
- "210251": "开发区",
- "210281": "瓦房店市",
- "210282": "普兰店市",
- "210283": "庄河市",
- "210297": "岭前区",
- "210298": "其它区" },
- "0,210000,210300": {
- "210302": "铁东区",
- "210303": "铁西区",
- "210304": "立山区",
- "210311": "千山区",
- "210321": "台安县",
- "210323": "岫岩满族自治县",
- "210351": "高新区",
- "210381": "海城市",
- "210382": "其它区" },
- "0,210000,210400": {
- "210402": "新抚区",
- "210403": "东洲区",
- "210404": "望花区",
- "210411": "顺城区",
- "210421": "抚顺县",
- "210422": "新宾满族自治县",
- "210423": "清原满族自治县",
- "210424": "其它区" },
- "0,210000,210500": {
- "210502": "平山区",
- "210503": "溪湖区",
- "210504": "明山区",
- "210505": "南芬区",
- "210521": "本溪满族自治县",
- "210522": "桓仁满族自治县",
- "210523": "其它区" },
- "0,210000,210600": {
- "210602": "元宝区",
- "210603": "振兴区",
- "210604": "振安区",
- "210624": "宽甸满族自治县",
- "210681": "东港市",
- "210682": "凤城市",
- "210683": "其它区" },
- "0,210000,210700": {
- "210702": "古塔区",
- "210703": "凌河区",
- "210711": "太和区",
- "210726": "黑山县",
- "210727": "义县",
- "210781": "凌海市",
- "210782": "北镇市",
- "210783": "其它区" },
- "0,210000,210800": {
- "210802": "站前区",
- "210803": "西市区",
- "210804": "鲅鱼圈区",
- "210811": "老边区",
- "210881": "盖州市",
- "210882": "大石桥市",
- "210883": "其它区" },
- "0,210000,210900": {
- "210902": "海州区",
- "210903": "新邱区",
- "210904": "太平区",
- "210905": "清河门区",
- "210911": "细河区",
- "210921": "阜新蒙古族自治县",
- "210922": "彰武县",
- "210923": "其它区" },
- "0,210000,211000": {
- "211002": "白塔区",
- "211003": "文圣区",
- "211004": "宏伟区",
- "211005": "弓长岭区",
- "211011": "太子河区",
- "211021": "辽阳县",
- "211081": "灯塔市",
- "211082": "其它区" },
- "0,210000,211100": {
- "211102": "双台子区",
- "211103": "兴隆台区",
- "211121": "大洼县",
- "211122": "盘山县",
- "211123": "其它区" },
- "0,210000,211200": {
- "211202": "银州区",
- "211204": "清河区",
- "211221": "铁岭县",
- "211223": "西丰县",
- "211224": "昌图县",
- "211281": "调兵山市",
- "211282": "开原市",
- "211283": "其它区" },
- "0,210000,211300": {
- "211302": "双塔区",
- "211303": "龙城区",
- "211321": "朝阳县",
- "211322": "建平县",
- "211324": "喀喇沁左翼蒙古族自治县",
- "211381": "北票市",
- "211382": "凌源市",
- "211383": "其它区" },
- "0,210000,211400": {
- "211402": "连山区",
- "211403": "龙港区",
- "211404": "南票区",
- "211421": "绥中县",
- "211422": "建昌县",
- "211481": "兴城市",
- "211482": "其它区" },
- "0,220000": {
- "220100": "长春市",
- "220200": "吉林市",
- "220300": "四平市",
- "220400": "辽源市",
- "220500": "通化市",
- "220600": "白山市",
- "220700": "松原市",
- "220800": "白城市",
- "222400": "延边朝鲜族自治州" },
- "0,220000,220100": {
- "220102": "南关区",
- "220103": "宽城区",
- "220104": "朝阳区",
- "220105": "二道区",
- "220106": "绿园区",
- "220112": "双阳区",
- "220122": "农安县",
- "220181": "九台市",
- "220182": "榆树市",
- "220183": "德惠市",
- "220184": "高新技术产业开发区",
- "220185": "汽车产业开发区",
- "220186": "经济技术开发区",
- "220187": "净月旅游开发区",
- "220188": "其它区" },
- "0,220000,220200": {
- "220202": "昌邑区",
- "220203": "龙潭区",
- "220204": "船营区",
- "220211": "丰满区",
- "220221": "永吉县",
- "220281": "蛟河市",
- "220282": "桦甸市",
- "220283": "舒兰市",
- "220284": "磐石市",
- "220285": "其它区" },
- "0,220000,220300": {
- "220302": "铁西区",
- "220303": "铁东区",
- "220322": "梨树县",
- "220323": "伊通满族自治县",
- "220381": "公主岭市",
- "220382": "双辽市",
- "220383": "其它区" },
- "0,220000,220400": {
- "220402": "龙山区",
- "220403": "西安区",
- "220421": "东丰县",
- "220422": "东辽县",
- "220423": "其它区" },
- "0,220000,220500": {
- "220502": "东昌区",
- "220503": "二道江区",
- "220521": "通化县",
- "220523": "辉南县",
- "220524": "柳河县",
- "220581": "梅河口市",
- "220582": "集安市",
- "220583": "其它区" },
- "0,220000,220600": {
- "220602": "八道江区",
- "220621": "抚松县",
- "220622": "靖宇县",
- "220623": "长白朝鲜族自治县",
- "220625": "江源市",
- "220681": "临江市",
- "220682": "其它区" },
- "0,220000,220700": {
- "220702": "宁江区",
- "220721": "前郭尔罗斯蒙古族自治县",
- "220722": "长岭县",
- "220723": "乾安县",
- "220724": "扶余县",
- "220725": "其它区" },
- "0,220000,220800": {
- "220802": "洮北区",
- "220821": "镇赉县",
- "220822": "通榆县",
- "220881": "洮南市",
- "220882": "大安市",
- "220883": "其它区" },
- "0,220000,222400": {
- "222401": "延吉市",
- "222402": "图们市",
- "222403": "敦化市",
- "222404": "珲春市",
- "222405": "龙井市",
- "222406": "和龙市",
- "222424": "汪清县",
- "222426": "安图县",
- "222427": "其它区" },
- "0,230000": {
- "230100": "哈尔滨市",
- "230200": "齐齐哈尔市",
- "230300": "鸡西市",
- "230400": "鹤岗市",
- "230500": "双鸭山市",
- "230600": "大庆市",
- "230700": "伊春市",
- "230800": "佳木斯市",
- "230900": "七台河市",
- "231000": "牡丹江市",
- "231100": "黑河市",
- "231200": "绥化市",
- "232700": "大兴安岭地区" },
- "0,230000,230100": {
- "230102": "道里区",
- "230103": "南岗区",
- "230104": "道外区",
- "230106": "香坊区",
- "230107": "动力区",
- "230108": "平房区",
- "230109": "松北区",
- "230111": "呼兰区",
- "230123": "依兰县",
- "230124": "方正县",
- "230125": "宾县",
- "230126": "巴彦县",
- "230127": "木兰县",
- "230128": "通河县",
- "230129": "延寿县",
- "230181": "阿城市",
- "230182": "双城市",
- "230183": "尚志市",
- "230184": "五常市",
- "230185": "阿城市",
- "230186": "其它区" },
- "0,230000,230200": {
- "230202": "龙沙区",
- "230203": "建华区",
- "230204": "铁锋区",
- "230205": "昂昂溪区",
- "230206": "富拉尔基区",
- "230207": "碾子山区",
- "230208": "梅里斯达斡尔族区",
- "230221": "龙江县",
- "230223": "依安县",
- "230224": "泰来县",
- "230225": "甘南县",
- "230227": "富裕县",
- "230229": "克山县",
- "230230": "克东县",
- "230231": "拜泉县",
- "230281": "讷河市",
- "230282": "其它区" },
- "0,230000,230300": {
- "230302": "鸡冠区",
- "230303": "恒山区",
- "230304": "滴道区",
- "230305": "梨树区",
- "230306": "城子河区",
- "230307": "麻山区",
- "230321": "鸡东县",
- "230381": "虎林市",
- "230382": "密山市",
- "230383": "其它区" },
- "0,230000,230400": {
- "230402": "向阳区",
- "230403": "工农区",
- "230404": "南山区",
- "230405": "兴安区",
- "230406": "东山区",
- "230407": "兴山区",
- "230421": "萝北县",
- "230422": "绥滨县",
- "230423": "其它区" },
- "0,230000,230500": {
- "230502": "尖山区",
- "230503": "岭东区",
- "230505": "四方台区",
- "230506": "宝山区",
- "230521": "集贤县",
- "230522": "友谊县",
- "230523": "宝清县",
- "230524": "饶河县",
- "230525": "其它区" },
- "0,230000,230600": {
- "230602": "萨尔图区",
- "230603": "龙凤区",
- "230604": "让胡路区",
- "230605": "红岗区",
- "230606": "大同区",
- "230621": "肇州县",
- "230622": "肇源县",
- "230623": "林甸县",
- "230624": "杜尔伯特蒙古族自治县",
- "230625": "其它区" },
- "0,230000,230700": {
- "230702": "伊春区",
- "230703": "南岔区",
- "230704": "友好区",
- "230705": "西林区",
- "230706": "翠峦区",
- "230707": "新青区",
- "230708": "美溪区",
- "230709": "金山屯区",
- "230710": "五营区",
- "230711": "乌马河区",
- "230712": "汤旺河区",
- "230713": "带岭区",
- "230714": "乌伊岭区",
- "230715": "红星区",
- "230716": "上甘岭区",
- "230722": "嘉荫县",
- "230781": "铁力市",
- "230782": "其它区" },
- "0,230000,230800": {
- "230802": "永红区",
- "230803": "向阳区",
- "230804": "前进区",
- "230805": "东风区",
- "230811": "郊区",
- "230822": "桦南县",
- "230826": "桦川县",
- "230828": "汤原县",
- "230833": "抚远县",
- "230881": "同江市",
- "230882": "富锦市",
- "230883": "其它区" },
- "0,230000,230900": {
- "230902": "新兴区",
- "230903": "桃山区",
- "230904": "茄子河区",
- "230921": "勃利县",
- "230922": "其它区" },
- "0,230000,231000": {
- "231002": "东安区",
- "231003": "阳明区",
- "231004": "爱民区",
- "231005": "西安区",
- "231024": "东宁县",
- "231025": "林口县",
- "231081": "绥芬河市",
- "231083": "海林市",
- "231084": "宁安市",
- "231085": "穆棱市",
- "231086": "其它区" },
- "0,230000,231100": {
- "231102": "爱辉区",
- "231121": "嫩江县",
- "231123": "逊克县",
- "231124": "孙吴县",
- "231181": "北安市",
- "231182": "五大连池市",
- "231183": "其它区" },
- "0,230000,231200": {
- "231202": "北林区",
- "231221": "望奎县",
- "231222": "兰西县",
- "231223": "青冈县",
- "231224": "庆安县",
- "231225": "明水县",
- "231226": "绥棱县",
- "231281": "安达市",
- "231282": "肇东市",
- "231283": "海伦市",
- "231284": "其它区" },
- "0,230000,232700": {
- "232721": "呼玛县",
- "232722": "塔河县",
- "232723": "漠河县",
- "232724": "加格达奇区",
- "232725": "其它区" },
- "0,310000": {
- "310100": "上海市" },
- "0,310000,310100": {
- "310101": "黄浦区",
- "310103": "卢湾区",
- "310104": "徐汇区",
- "310105": "长宁区",
- "310106": "静安区",
- "310107": "普陀区",
- "310108": "闸北区",
- "310109": "虹口区",
- "310110": "杨浦区",
- "310112": "闵行区",
- "310113": "宝山区",
- "310114": "嘉定区",
- "310115": "浦东新区",
- "310116": "金山区",
- "310117": "松江区",
- "310118": "青浦区",
- "310119": "南汇区",
- "310120": "奉贤区",
- "310152": "川沙区",
- "310230": "崇明县",
- "310231": "其它区" },
- "0,320000": {
- "320100": "南京市",
- "320200": "无锡市",
- "320300": "徐州市",
- "320400": "常州市",
- "320500": "苏州市",
- "320600": "南通市",
- "320700": "连云港市",
- "320800": "淮安市",
- "320900": "盐城市",
- "321000": "扬州市",
- "321100": "镇江市",
- "321200": "泰州市",
- "321300": "宿迁市" },
- "0,320000,320100": {
- "320102": "玄武区",
- "320103": "白下区",
- "320104": "秦淮区",
- "320105": "建邺区",
- "320106": "鼓楼区",
- "320107": "下关区",
- "320111": "浦口区",
- "320113": "栖霞区",
- "320114": "雨花台区",
- "320115": "江宁区",
- "320116": "六合区",
- "320124": "溧水县",
- "320125": "高淳县",
- "320126": "其它区" },
- "0,320000,320200": {
- "320202": "崇安区",
- "320203": "南长区",
- "320204": "北塘区",
- "320205": "锡山区",
- "320206": "惠山区",
- "320211": "滨湖区",
- "320281": "江阴市",
- "320282": "宜兴市",
- "320296": "新区",
- "320297": "其它区" },
- "0,320000,320300": {
- "320302": "鼓楼区",
- "320303": "云龙区",
- "320304": "九里区",
- "320305": "贾汪区",
- "320311": "泉山区",
- "320321": "丰县",
- "320322": "沛县",
- "320323": "铜山县",
- "320324": "睢宁县",
- "320381": "新沂市",
- "320382": "邳州市",
- "320383": "其它区" },
- "0,320000,320400": {
- "320402": "天宁区",
- "320404": "钟楼区",
- "320405": "戚墅堰区",
- "320411": "新北区",
- "320412": "武进区",
- "320481": "溧阳市",
- "320482": "金坛市",
- "320483": "其它区" },
- "0,320000,320500": {
- "320502": "沧浪区",
- "320503": "平江区",
- "320504": "金阊区",
- "320505": "虎丘区",
- "320506": "吴中区",
- "320507": "相城区",
- "320581": "常熟市",
- "320582": "张家港市",
- "320583": "昆山市",
- "320584": "吴江市",
- "320585": "太仓市",
- "320594": "新区",
- "320595": "园区",
- "320596": "其它区" },
- "0,320000,320600": {
- "320602": "崇川区",
- "320611": "港闸区",
- "320612": "通州区",
- "320621": "海安县",
- "320623": "如东县",
- "320681": "启东市",
- "320682": "如皋市",
- "320683": "通州市",
- "320684": "海门市",
- "320693": "开发区",
- "320694": "其它区" },
- "0,320000,320700": {
- "320703": "连云区",
- "320705": "新浦区",
- "320706": "海州区",
- "320721": "赣榆县",
- "320722": "东海县",
- "320723": "灌云县",
- "320724": "灌南县",
- "320725": "其它区" },
- "0,320000,320800": {
- "320802": "清河区",
- "320803": "楚州区",
- "320804": "淮阴区",
- "320811": "清浦区",
- "320826": "涟水县",
- "320829": "洪泽县",
- "320830": "盱眙县",
- "320831": "金湖县",
- "320832": "其它区" },
- "0,320000,320900": {
- "320902": "亭湖区",
- "320903": "盐都区",
- "320921": "响水县",
- "320922": "滨海县",
- "320923": "阜宁县",
- "320924": "射阳县",
- "320925": "建湖县",
- "320981": "东台市",
- "320982": "大丰市",
- "320983": "其它区" },
- "0,320000,321000": {
- "321002": "广陵区",
- "321003": "邗江区",
- "321011": "维扬区",
- "321023": "宝应县",
- "321081": "仪征市",
- "321084": "高邮市",
- "321088": "江都市",
- "321092": "经济开发区",
- "321093": "其它区" },
- "0,320000,321100": {
- "321102": "京口区",
- "321111": "润州区",
- "321112": "丹徒区",
- "321181": "丹阳市",
- "321182": "扬中市",
- "321183": "句容市",
- "321184": "其它区" },
- "0,320000,321200": {
- "321202": "海陵区",
- "321203": "高港区",
- "321281": "兴化市",
- "321282": "靖江市",
- "321283": "泰兴市",
- "321284": "姜堰市",
- "321285": "其它区" },
- "0,320000,321300": {
- "321302": "宿城区",
- "321311": "宿豫区",
- "321322": "沭阳县",
- "321323": "泗阳县",
- "321324": "泗洪县",
- "321325": "其它区" },
- "0,330000": {
- "330100": "杭州市",
- "330200": "宁波市",
- "330300": "温州市",
- "330400": "嘉兴市",
- "330500": "湖州市",
- "330600": "绍兴市",
- "330700": "金华市",
- "330800": "衢州市",
- "330900": "舟山市",
- "331000": "台州市",
- "331100": "丽水市" },
- "0,330000,330100": {
- "330102": "上城区",
- "330103": "下城区",
- "330104": "江干区",
- "330105": "拱墅区",
- "330106": "西湖区",
- "330108": "滨江区",
- "330109": "萧山区",
- "330110": "余杭区",
- "330122": "桐庐县",
- "330127": "淳安县",
- "330182": "建德市",
- "330183": "富阳市",
- "330185": "临安市",
- "330186": "其它区" },
- "0,330000,330200": {
- "330203": "海曙区",
- "330204": "江东区",
- "330205": "江北区",
- "330206": "北仑区",
- "330211": "镇海区",
- "330212": "鄞州区",
- "330225": "象山县",
- "330226": "宁海县",
- "330281": "余姚市",
- "330282": "慈溪市",
- "330283": "奉化市",
- "330284": "其它区" },
- "0,330000,330300": {
- "330302": "鹿城区",
- "330303": "龙湾区",
- "330304": "瓯海区",
- "330322": "洞头县",
- "330324": "永嘉县",
- "330326": "平阳县",
- "330327": "苍南县",
- "330328": "文成县",
- "330329": "泰顺县",
- "330381": "瑞安市",
- "330382": "乐清市",
- "330383": "其它区" },
- "0,330000,330400": {
- "330402": "南湖区",
- "330411": "秀洲区",
- "330421": "嘉善县",
- "330424": "海盐县",
- "330481": "海宁市",
- "330482": "平湖市",
- "330483": "桐乡市",
- "330484": "其它区" },
- "0,330000,330500": {
- "330502": "吴兴区",
- "330503": "南浔区",
- "330521": "德清县",
- "330522": "长兴县",
- "330523": "安吉县",
- "330524": "其它区" },
- "0,330000,330600": {
- "330602": "越城区",
- "330621": "绍兴县",
- "330624": "新昌县",
- "330681": "诸暨市",
- "330682": "上虞市",
- "330683": "嵊州市",
- "330684": "其它区" },
- "0,330000,330700": {
- "330702": "婺城区",
- "330703": "金东区",
- "330723": "武义县",
- "330726": "浦江县",
- "330727": "磐安县",
- "330781": "兰溪市",
- "330782": "义乌市",
- "330783": "东阳市",
- "330784": "永康市",
- "330785": "其它区" },
- "0,330000,330800": {
- "330802": "柯城区",
- "330803": "衢江区",
- "330822": "常山县",
- "330824": "开化县",
- "330825": "龙游县",
- "330881": "江山市",
- "330882": "其它区" },
- "0,330000,330900": {
- "330902": "定海区",
- "330903": "普陀区",
- "330921": "岱山县",
- "330922": "嵊泗县",
- "330923": "其它区" },
- "0,330000,331000": {
- "331002": "椒江区",
- "331003": "黄岩区",
- "331004": "路桥区",
- "331021": "玉环县",
- "331022": "三门县",
- "331023": "天台县",
- "331024": "仙居县",
- "331081": "温岭市",
- "331082": "临海市",
- "331083": "其它区" },
- "0,330000,331100": {
- "331102": "莲都区",
- "331121": "青田县",
- "331122": "缙云县",
- "331123": "遂昌县",
- "331124": "松阳县",
- "331125": "云和县",
- "331126": "庆元县",
- "331127": "景宁畲族自治县",
- "331181": "龙泉市",
- "331182": "其它区" },
- "0,340000": {
- "340100": "合肥市",
- "340200": "芜湖市",
- "340300": "蚌埠市",
- "340400": "淮南市",
- "340500": "马鞍山市",
- "340600": "淮北市",
- "340700": "铜陵市",
- "340800": "安庆市",
- "341000": "黄山市",
- "341100": "滁州市",
- "341200": "阜阳市",
- "341300": "宿州市",
- "341500": "六安市",
- "341600": "亳州市",
- "341700": "池州市",
- "341800": "宣城市" },
- "0,340000,340100": {
- "340102": "瑶海区",
- "340103": "庐阳区",
- "340104": "蜀山区",
- "340111": "包河区",
- "340121": "长丰县",
- "340122": "肥东县",
- "340123": "肥西县",
- "340151": "高新区",
- "340191": "中区",
- "340192": "其它区",
- "341400": "巢湖市",
- "341402": "居巢区",
- "341421": "庐江县" },
- "0,340000,340200": {
- "340202": "镜湖区",
- "340203": "弋江区",
- "340207": "鸠江区",
- "340208": "三山区",
- "340221": "芜湖县",
- "340222": "繁昌县",
- "340223": "南陵县",
- "340224": "其它区",
- "341422": "无为县" },
- "0,340000,340300": {
- "340302": "龙子湖区",
- "340303": "蚌山区",
- "340304": "禹会区",
- "340311": "淮上区",
- "340321": "怀远县",
- "340322": "五河县",
- "340323": "固镇县",
- "340324": "其它区" },
- "0,340000,340400": {
- "340402": "大通区",
- "340403": "田家庵区",
- "340404": "谢家集区",
- "340405": "八公山区",
- "340406": "潘集区",
- "340421": "凤台县",
- "340422": "其它区" },
- "0,340000,340500": {
- "340502": "金家庄区",
- "340503": "花山区",
- "340504": "雨山区",
- "340521": "当涂县",
- "340522": "其它区",
- "341423": "含山县",
- "341424": "和县" },
- "0,340000,340600": {
- "340602": "杜集区",
- "340603": "相山区",
- "340604": "烈山区",
- "340621": "濉溪县",
- "340622": "其它区" },
- "0,340000,340700": {
- "340702": "铜官山区",
- "340703": "狮子山区",
- "340711": "郊区",
- "340721": "铜陵县",
- "340722": "其它区" },
- "0,340000,340800": {
- "340802": "迎江区",
- "340803": "大观区",
- "340811": "宜秀区",
- "340822": "怀宁县",
- "340823": "枞阳县",
- "340824": "潜山县",
- "340825": "太湖县",
- "340826": "宿松县",
- "340827": "望江县",
- "340828": "岳西县",
- "340881": "桐城市",
- "340882": "其它区" },
- "0,340000,341000": {
- "341002": "屯溪区",
- "341003": "黄山区",
- "341004": "徽州区",
- "341021": "歙县",
- "341022": "休宁县",
- "341023": "黟县",
- "341024": "祁门县",
- "341025": "其它区" },
- "0,340000,341100": {
- "341102": "琅琊区",
- "341103": "南谯区",
- "341122": "来安县",
- "341124": "全椒县",
- "341125": "定远县",
- "341126": "凤阳县",
- "341181": "天长市",
- "341182": "明光市",
- "341183": "其它区" },
- "0,340000,341200": {
- "341202": "颍州区",
- "341203": "颍东区",
- "341204": "颍泉区",
- "341221": "临泉县",
- "341222": "太和县",
- "341225": "阜南县",
- "341226": "颍上县",
- "341282": "界首市",
- "341283": "其它区" },
- "0,340000,341300": {
- "341302": "埇桥区",
- "341321": "砀山县",
- "341322": "萧县",
- "341323": "灵璧县",
- "341324": "泗县",
- "341325": "其它区" },
- "0,340000,341500": {
- "341502": "金安区",
- "341503": "裕安区",
- "341521": "寿县",
- "341522": "霍邱县",
- "341523": "舒城县",
- "341524": "金寨县",
- "341525": "霍山县",
- "341526": "其它区" },
- "0,340000,341600": {
- "341602": "谯城区",
- "341621": "涡阳县",
- "341622": "蒙城县",
- "341623": "利辛县",
- "341624": "其它区" },
- "0,340000,341700": {
- "341702": "贵池区",
- "341721": "东至县",
- "341722": "石台县",
- "341723": "青阳县",
- "341724": "其它区" },
- "0,340000,341800": {
- "341802": "宣州区",
- "341821": "郎溪县",
- "341822": "广德县",
- "341823": "泾县",
- "341824": "绩溪县",
- "341825": "旌德县",
- "341881": "宁国市",
- "341882": "其它区" },
- "0,350000": {
- "350100": "福州市",
- "350200": "厦门市",
- "350300": "莆田市",
- "350400": "三明市",
- "350500": "泉州市",
- "350600": "漳州市",
- "350700": "南平市",
- "350800": "龙岩市",
- "350900": "宁德市" },
- "0,350000,350100": {
- "350102": "鼓楼区",
- "350103": "台江区",
- "350104": "仓山区",
- "350105": "马尾区",
- "350111": "晋安区",
- "350121": "闽侯县",
- "350122": "连江县",
- "350123": "罗源县",
- "350124": "闽清县",
- "350125": "永泰县",
- "350128": "平潭县",
- "350181": "福清市",
- "350182": "长乐市",
- "350183": "其它区" },
- "0,350000,350200": {
- "350203": "思明区",
- "350205": "海沧区",
- "350206": "湖里区",
- "350211": "集美区",
- "350212": "同安区",
- "350213": "翔安区",
- "350214": "其它区" },
- "0,350000,350300": {
- "350302": "城厢区",
- "350303": "涵江区",
- "350304": "荔城区",
- "350305": "秀屿区",
- "350322": "仙游县",
- "350323": "其它区" },
- "0,350000,350400": {
- "350402": "梅列区",
- "350403": "三元区",
- "350421": "明溪县",
- "350423": "清流县",
- "350424": "宁化县",
- "350425": "大田县",
- "350426": "尤溪县",
- "350427": "沙县",
- "350428": "将乐县",
- "350429": "泰宁县",
- "350430": "建宁县",
- "350481": "永安市",
- "350482": "其它区" },
- "0,350000,350500": {
- "350502": "鲤城区",
- "350503": "丰泽区",
- "350504": "洛江区",
- "350505": "泉港区",
- "350521": "惠安县",
- "350524": "安溪县",
- "350525": "永春县",
- "350526": "德化县",
- "350527": "金门县",
- "350581": "石狮市",
- "350582": "晋江市",
- "350583": "南安市",
- "350584": "其它区" },
- "0,350000,350600": {
- "350602": "芗城区",
- "350603": "龙文区",
- "350622": "云霄县",
- "350623": "漳浦县",
- "350624": "诏安县",
- "350625": "长泰县",
- "350626": "东山县",
- "350627": "南靖县",
- "350628": "平和县",
- "350629": "华安县",
- "350681": "龙海市",
- "350682": "其它区" },
- "0,350000,350700": {
- "350702": "延平区",
- "350721": "顺昌县",
- "350722": "浦城县",
- "350723": "光泽县",
- "350724": "松溪县",
- "350725": "政和县",
- "350781": "邵武市",
- "350782": "武夷山市",
- "350783": "建瓯市",
- "350784": "建阳市",
- "350785": "其它区" },
- "0,350000,350800": {
- "350802": "新罗区",
- "350821": "长汀县",
- "350822": "永定县",
- "350823": "上杭县",
- "350824": "武平县",
- "350825": "连城县",
- "350881": "漳平市",
- "350882": "其它区" },
- "0,350000,350900": {
- "350902": "蕉城区",
- "350921": "霞浦县",
- "350922": "古田县",
- "350923": "屏南县",
- "350924": "寿宁县",
- "350925": "周宁县",
- "350926": "柘荣县",
- "350981": "福安市",
- "350982": "福鼎市",
- "350983": "其它区" },
- "0,360000": {
- "360100": "南昌市",
- "360200": "景德镇市",
- "360300": "萍乡市",
- "360400": "九江市",
- "360500": "新余市",
- "360600": "鹰潭市",
- "360700": "赣州市",
- "360800": "吉安市",
- "360900": "宜春市",
- "361000": "抚州市",
- "361100": "上饶市" },
- "0,360000,360100": {
- "360102": "东湖区",
- "360103": "西湖区",
- "360104": "青云谱区",
- "360105": "湾里区",
- "360111": "青山湖区",
- "360121": "南昌县",
- "360122": "新建县",
- "360123": "安义县",
- "360124": "进贤县",
- "360125": "红谷滩新区",
- "360126": "经济技术开发区",
- "360127": "昌北区",
- "360128": "其它区" },
- "0,360000,360200": {
- "360202": "昌江区",
- "360203": "珠山区",
- "360222": "浮梁县",
- "360281": "乐平市",
- "360282": "其它区" },
- "0,360000,360300": {
- "360302": "安源区",
- "360313": "湘东区",
- "360321": "莲花县",
- "360322": "上栗县",
- "360323": "芦溪县",
- "360324": "其它区" },
- "0,360000,360400": {
- "360402": "庐山区",
- "360403": "浔阳区",
- "360421": "九江县",
- "360423": "武宁县",
- "360424": "修水县",
- "360425": "永修县",
- "360426": "德安县",
- "360427": "星子县",
- "360428": "都昌县",
- "360429": "湖口县",
- "360430": "彭泽县",
- "360481": "瑞昌市",
- "360482": "其它区" },
- "0,360000,360500": {
- "360502": "渝水区",
- "360521": "分宜县",
- "360522": "其它区" },
- "0,360000,360600": {
- "360602": "月湖区",
- "360622": "余江县",
- "360681": "贵溪市",
- "360682": "其它区" },
- "0,360000,360700": {
- "360702": "章贡区",
- "360721": "赣县",
- "360722": "信丰县",
- "360723": "大余县",
- "360724": "上犹县",
- "360725": "崇义县",
- "360726": "安远县",
- "360727": "龙南县",
- "360728": "定南县",
- "360729": "全南县",
- "360730": "宁都县",
- "360731": "于都县",
- "360732": "兴国县",
- "360733": "会昌县",
- "360734": "寻乌县",
- "360735": "石城县",
- "360751": "黄金区",
- "360781": "瑞金市",
- "360782": "南康市",
- "360783": "其它区" },
- "0,360000,360800": {
- "360802": "吉州区",
- "360803": "青原区",
- "360821": "吉安县",
- "360822": "吉水县",
- "360823": "峡江县",
- "360824": "新干县",
- "360825": "永丰县",
- "360826": "泰和县",
- "360827": "遂川县",
- "360828": "万安县",
- "360829": "安福县",
- "360830": "永新县",
- "360881": "井冈山市",
- "360882": "其它区" },
- "0,360000,360900": {
- "360902": "袁州区",
- "360921": "奉新县",
- "360922": "万载县",
- "360923": "上高县",
- "360924": "宜丰县",
- "360925": "靖安县",
- "360926": "铜鼓县",
- "360981": "丰城市",
- "360982": "樟树市",
- "360983": "高安市",
- "360984": "其它区" },
- "0,360000,361000": {
- "361002": "临川区",
- "361021": "南城县",
- "361022": "黎川县",
- "361023": "南丰县",
- "361024": "崇仁县",
- "361025": "乐安县",
- "361026": "宜黄县",
- "361027": "金溪县",
- "361028": "资溪县",
- "361029": "东乡县",
- "361030": "广昌县",
- "361031": "其它区" },
- "0,360000,361100": {
- "361102": "信州区",
- "361121": "上饶县",
- "361122": "广丰县",
- "361123": "玉山县",
- "361124": "铅山县",
- "361125": "横峰县",
- "361126": "弋阳县",
- "361127": "余干县",
- "361128": "鄱阳县",
- "361129": "万年县",
- "361130": "婺源县",
- "361181": "德兴市",
- "361182": "其它区" },
- "0,370000": {
- "370100": "济南市",
- "370200": "青岛市",
- "370300": "淄博市",
- "370400": "枣庄市",
- "370500": "东营市",
- "370600": "烟台市",
- "370700": "潍坊市",
- "370800": "济宁市",
- "370900": "泰安市",
- "371000": "威海市",
- "371100": "日照市",
- "371200": "莱芜市",
- "371300": "临沂市",
- "371400": "德州市",
- "371500": "聊城市",
- "371600": "滨州市",
- "371700": "菏泽市" },
- "0,370000,370100": {
- "370102": "历下区",
- "370103": "市中区",
- "370104": "槐荫区",
- "370105": "天桥区",
- "370112": "历城区",
- "370113": "长清区",
- "370124": "平阴县",
- "370125": "济阳县",
- "370126": "商河县",
- "370181": "章丘市",
- "370182": "其它区" },
- "0,370000,370200": {
- "370202": "市南区",
- "370203": "市北区",
- "370205": "四方区",
- "370211": "黄岛区",
- "370212": "崂山区",
- "370213": "李沧区",
- "370214": "城阳区",
- "370251": "开发区",
- "370281": "胶州市",
- "370282": "即墨市",
- "370283": "平度市",
- "370284": "胶南市",
- "370285": "莱西市",
- "370286": "其它区" },
- "0,370000,370300": {
- "370302": "淄川区",
- "370303": "张店区",
- "370304": "博山区",
- "370305": "临淄区",
- "370306": "周村区",
- "370321": "桓台县",
- "370322": "高青县",
- "370323": "沂源县",
- "370324": "其它区" },
- "0,370000,370400": {
- "370402": "市中区",
- "370403": "薛城区",
- "370404": "峄城区",
- "370405": "台儿庄区",
- "370406": "山亭区",
- "370481": "滕州市",
- "370482": "其它区" },
- "0,370000,370500": {
- "370502": "东营区",
- "370503": "河口区",
- "370521": "垦利县",
- "370522": "利津县",
- "370523": "广饶县",
- "370589": "西城区",
- "370590": "东城区",
- "370591": "其它区" },
- "0,370000,370600": {
- "370602": "芝罘区",
- "370611": "福山区",
- "370612": "牟平区",
- "370613": "莱山区",
- "370634": "长岛县",
- "370681": "龙口市",
- "370682": "莱阳市",
- "370683": "莱州市",
- "370684": "蓬莱市",
- "370685": "招远市",
- "370686": "栖霞市",
- "370687": "海阳市",
- "370688": "其它区" },
- "0,370000,370700": {
- "370702": "潍城区",
- "370703": "寒亭区",
- "370704": "坊子区",
- "370705": "奎文区",
- "370724": "临朐县",
- "370725": "昌乐县",
- "370751": "开发区",
- "370781": "青州市",
- "370782": "诸城市",
- "370783": "寿光市",
- "370784": "安丘市",
- "370785": "高密市",
- "370786": "昌邑市",
- "370787": "其它区" },
- "0,370000,370800": {
- "370802": "市中区",
- "370811": "任城区",
- "370826": "微山县",
- "370827": "鱼台县",
- "370828": "金乡县",
- "370829": "嘉祥县",
- "370830": "汶上县",
- "370831": "泗水县",
- "370832": "梁山县",
- "370881": "曲阜市",
- "370882": "兖州市",
- "370883": "邹城市",
- "370884": "其它区" },
- "0,370000,370900": {
- "370902": "泰山区",
- "370903": "岱岳区",
- "370921": "宁阳县",
- "370923": "东平县",
- "370982": "新泰市",
- "370983": "肥城市",
- "370984": "其它区" },
- "0,370000,371000": {
- "371002": "环翠区",
- "371081": "文登市",
- "371082": "荣成市",
- "371083": "乳山市",
- "371084": "其它区" },
- "0,370000,371100": {
- "371102": "东港区",
- "371103": "岚山区",
- "371121": "五莲县",
- "371122": "莒县",
- "371123": "其它区" },
- "0,370000,371200": {
- "371202": "莱城区",
- "371203": "钢城区",
- "371204": "其它区" },
- "0,370000,371300": {
- "371302": "兰山区",
- "371311": "罗庄区",
- "371312": "河东区",
- "371321": "沂南县",
- "371322": "郯城县",
- "371323": "沂水县",
- "371324": "苍山县",
- "371325": "费县",
- "371326": "平邑县",
- "371327": "莒南县",
- "371328": "蒙阴县",
- "371329": "临沭县",
- "371330": "其它区" },
- "0,370000,371400": {
- "371402": "德城区",
- "371421": "陵县",
- "371422": "宁津县",
- "371423": "庆云县",
- "371424": "临邑县",
- "371425": "齐河县",
- "371426": "平原县",
- "371427": "夏津县",
- "371428": "武城县",
- "371451": "开发区",
- "371481": "乐陵市",
- "371482": "禹城市",
- "371483": "其它区" },
- "0,370000,371500": {
- "371502": "东昌府区",
- "371521": "阳谷县",
- "371522": "莘县",
- "371523": "茌平县",
- "371524": "东阿县",
- "371525": "冠县",
- "371526": "高唐县",
- "371581": "临清市",
- "371582": "其它区" },
- "0,370000,371600": {
- "371602": "滨城区",
- "371621": "惠民县",
- "371622": "阳信县",
- "371623": "无棣县",
- "371624": "沾化县",
- "371625": "博兴县",
- "371626": "邹平县",
- "371627": "其它区" },
- "0,370000,371700": {
- "371702": "牡丹区",
- "371721": "曹县",
- "371722": "单县",
- "371723": "成武县",
- "371724": "巨野县",
- "371725": "郓城县",
- "371726": "鄄城县",
- "371727": "定陶县",
- "371728": "东明县",
- "371729": "其它区" },
- "0,410000": {
- "410100": "郑州市",
- "410200": "开封市",
- "410300": "洛阳市",
- "410400": "平顶山市",
- "410500": "安阳市",
- "410600": "鹤壁市",
- "410700": "新乡市",
- "410800": "焦作市",
- "410881": "济源市",
- "410900": "濮阳市",
- "411000": "许昌市",
- "411100": "漯河市",
- "411200": "三门峡市",
- "411300": "南阳市",
- "411400": "商丘市",
- "411500": "信阳市",
- "411600": "周口市",
- "411700": "驻马店市" },
- "0,410000,410100": {
- "410102": "中原区",
- "410103": "二七区",
- "410104": "管城回族区",
- "410105": "金水区",
- "410106": "上街区",
- "410108": "惠济区",
- "410122": "中牟县",
- "410181": "巩义市",
- "410182": "荥阳市",
- "410183": "新密市",
- "410184": "新郑市",
- "410185": "登封市",
- "410186": "郑东新区",
- "410187": "高新区",
- "410188": "其它区" },
- "0,410000,410200": {
- "410202": "龙亭区",
- "410203": "顺河回族区",
- "410204": "鼓楼区",
- "410205": "禹王台区",
- "410211": "金明区",
- "410221": "杞县",
- "410222": "通许县",
- "410223": "尉氏县",
- "410224": "开封县",
- "410225": "兰考县",
- "410226": "其它区" },
- "0,410000,410300": {
- "410302": "老城区",
- "410303": "西工区",
- "410304": "廛河回族区",
- "410305": "涧西区",
- "410306": "吉利区",
- "410307": "洛龙区",
- "410322": "孟津县",
- "410323": "新安县",
- "410324": "栾川县",
- "410325": "嵩县",
- "410326": "汝阳县",
- "410327": "宜阳县",
- "410328": "洛宁县",
- "410329": "伊川县",
- "410381": "偃师市",
- "471004": "高新区",
- "471005": "其它区" },
- "0,410000,410400": {
- "410402": "新华区",
- "410403": "卫东区",
- "410404": "石龙区",
- "410411": "湛河区",
- "410421": "宝丰县",
- "410422": "叶县",
- "410423": "鲁山县",
- "410425": "郏县",
- "410481": "舞钢市",
- "410482": "汝州市",
- "410483": "其它区" },
- "0,410000,410500": {
- "410502": "文峰区",
- "410503": "北关区",
- "410505": "殷都区",
- "410506": "龙安区",
- "410522": "安阳县",
- "410523": "汤阴县",
- "410526": "滑县",
- "410527": "内黄县",
- "410581": "林州市",
- "410582": "其它区" },
- "0,410000,410600": {
- "410602": "鹤山区",
- "410603": "山城区",
- "410611": "淇滨区",
- "410621": "浚县",
- "410622": "淇县",
- "410623": "其它区" },
- "0,410000,410700": {
- "410702": "红旗区",
- "410703": "卫滨区",
- "410704": "凤泉区",
- "410711": "牧野区",
- "410721": "新乡县",
- "410724": "获嘉县",
- "410725": "原阳县",
- "410726": "延津县",
- "410727": "封丘县",
- "410728": "长垣县",
- "410781": "卫辉市",
- "410782": "辉县市",
- "410783": "其它区" },
- "0,410000,410800": {
- "410802": "解放区",
- "410803": "中站区",
- "410804": "马村区",
- "410811": "山阳区",
- "410821": "修武县",
- "410822": "博爱县",
- "410823": "武陟县",
- "410825": "温县",
- "410882": "沁阳市",
- "410883": "孟州市",
- "410884": "其它区" },
- "0,410000,410881": [],
- "0,410000,410900": {
- "410902": "华龙区",
- "410922": "清丰县",
- "410923": "南乐县",
- "410926": "范县",
- "410927": "台前县",
- "410928": "濮阳县",
- "410929": "其它区" },
- "0,410000,411000": {
- "411002": "魏都区",
- "411023": "许昌县",
- "411024": "鄢陵县",
- "411025": "襄城县",
- "411081": "禹州市",
- "411082": "长葛市",
- "411083": "其它区" },
- "0,410000,411100": {
- "411102": "源汇区",
- "411103": "郾城区",
- "411104": "召陵区",
- "411121": "舞阳县",
- "411122": "临颍县",
- "411123": "其它区" },
- "0,410000,411200": {
- "411202": "湖滨区",
- "411221": "渑池县",
- "411222": "陕县",
- "411224": "卢氏县",
- "411281": "义马市",
- "411282": "灵宝市",
- "411283": "其它区" },
- "0,410000,411300": {
- "411302": "宛城区",
- "411303": "卧龙区",
- "411321": "南召县",
- "411322": "方城县",
- "411323": "西峡县",
- "411324": "镇平县",
- "411325": "内乡县",
- "411326": "淅川县",
- "411327": "社旗县",
- "411328": "唐河县",
- "411329": "新野县",
- "411330": "桐柏县",
- "411381": "邓州市",
- "411382": "其它区" },
- "0,410000,411400": {
- "411402": "梁园区",
- "411403": "睢阳区",
- "411421": "民权县",
- "411422": "睢县",
- "411423": "宁陵县",
- "411424": "柘城县",
- "411425": "虞城县",
- "411426": "夏邑县",
- "411481": "永城市",
- "411482": "其它区" },
- "0,410000,411500": {
- "411502": "浉河区",
- "411503": "平桥区",
- "411521": "罗山县",
- "411522": "光山县",
- "411523": "新县",
- "411524": "商城县",
- "411525": "固始县",
- "411526": "潢川县",
- "411527": "淮滨县",
- "411528": "息县",
- "411529": "其它区" },
- "0,410000,411600": {
- "411602": "川汇区",
- "411621": "扶沟县",
- "411622": "西华县",
- "411623": "商水县",
- "411624": "沈丘县",
- "411625": "郸城县",
- "411626": "淮阳县",
- "411627": "太康县",
- "411628": "鹿邑县",
- "411681": "项城市",
- "411682": "其它区" },
- "0,410000,411700": {
- "411702": "驿城区",
- "411721": "西平县",
- "411722": "上蔡县",
- "411723": "平舆县",
- "411724": "正阳县",
- "411725": "确山县",
- "411726": "泌阳县",
- "411727": "汝南县",
- "411728": "遂平县",
- "411729": "新蔡县",
- "411730": "其它区" },
- "0,420000": {
- "420100": "武汉市",
- "420200": "黄石市",
- "420300": "十堰市",
- "420500": "宜昌市",
- "420600": "襄阳市",
- "420700": "鄂州市",
- "420800": "荆门市",
- "420900": "孝感市",
- "421000": "荆州市",
- "421100": "黄冈市",
- "421200": "咸宁市",
- "421300": "随州市",
- "422800": "恩施土家族苗族自治州",
- "429004": "仙桃市",
- "429005": "潜江市",
- "429006": "天门市",
- "429021": "神农架林区" },
- "0,420000,420100": {
- "420102": "江岸区",
- "420103": "江汉区",
- "420104": "硚口区",
- "420105": "汉阳区",
- "420106": "武昌区",
- "420107": "青山区",
- "420111": "洪山区",
- "420112": "东西湖区",
- "420113": "汉南区",
- "420114": "蔡甸区",
- "420115": "江夏区",
- "420116": "黄陂区",
- "420117": "新洲区",
- "420118": "其它区" },
- "0,420000,420200": {
- "420202": "黄石港区",
- "420203": "西塞山区",
- "420204": "下陆区",
- "420205": "铁山区",
- "420222": "阳新县",
- "420281": "大冶市",
- "420282": "其它区" },
- "0,420000,420300": {
- "420302": "茅箭区",
- "420303": "张湾区",
- "420321": "郧县",
- "420322": "郧西县",
- "420323": "竹山县",
- "420324": "竹溪县",
- "420325": "房县",
- "420381": "丹江口市",
- "420382": "城区",
- "420383": "其它区" },
- "0,420000,420500": {
- "420502": "西陵区",
- "420503": "伍家岗区",
- "420504": "点军区",
- "420505": "猇亭区",
- "420506": "夷陵区",
- "420525": "远安县",
- "420526": "兴山县",
- "420527": "秭归县",
- "420528": "长阳土家族自治县",
- "420529": "五峰土家族自治县",
- "420551": "葛洲坝区",
- "420552": "开发区",
- "420581": "宜都市",
- "420582": "当阳市",
- "420583": "枝江市",
- "420584": "其它区" },
- "0,420000,420600": {
- "420602": "襄城区",
- "420606": "樊城区",
- "420607": "襄州区",
- "420624": "南漳县",
- "420625": "谷城县",
- "420626": "保康县",
- "420682": "老河口市",
- "420683": "枣阳市",
- "420684": "宜城市",
- "420685": "其它区" },
- "0,420000,420700": {
- "420702": "梁子湖区",
- "420703": "华容区",
- "420704": "鄂城区",
- "420705": "其它区" },
- "0,420000,420800": {
- "420802": "东宝区",
- "420804": "掇刀区",
- "420821": "京山县",
- "420822": "沙洋县",
- "420881": "钟祥市",
- "420882": "其它区" },
- "0,420000,420900": {
- "420902": "孝南区",
- "420921": "孝昌县",
- "420922": "大悟县",
- "420923": "云梦县",
- "420981": "应城市",
- "420982": "安陆市",
- "420984": "汉川市",
- "420985": "其它区" },
- "0,420000,421000": {
- "421002": "沙市区",
- "421003": "荆州区",
- "421022": "公安县",
- "421023": "监利县",
- "421024": "江陵县",
- "421081": "石首市",
- "421083": "洪湖市",
- "421087": "松滋市",
- "421088": "其它区" },
- "0,420000,421100": {
- "421102": "黄州区",
- "421121": "团风县",
- "421122": "红安县",
- "421123": "罗田县",
- "421124": "英山县",
- "421125": "浠水县",
- "421126": "蕲春县",
- "421127": "黄梅县",
- "421181": "麻城市",
- "421182": "武穴市",
- "421183": "其它区" },
- "0,420000,421200": {
- "421202": "咸安区",
- "421221": "嘉鱼县",
- "421222": "通城县",
- "421223": "崇阳县",
- "421224": "通山县",
- "421281": "赤壁市",
- "421282": "温泉城区",
- "421283": "其它区" },
- "0,420000,421300": {
- "421302": "曾都区",
- "421321": "随县",
- "421381": "广水市",
- "421382": "其它区" },
- "0,420000,422800": {
- "422801": "恩施市",
- "422802": "利川市",
- "422822": "建始县",
- "422823": "巴东县",
- "422825": "宣恩县",
- "422826": "咸丰县",
- "422827": "来凤县",
- "422828": "鹤峰县",
- "422829": "其它区" },
- "0,420000,429004": [],
- "0,420000,429005": [],
- "0,420000,429006": [],
- "0,420000,429021": [],
- "0,430000": {
- "430100": "长沙市",
- "430200": "株洲市",
- "430300": "湘潭市",
- "430400": "衡阳市",
- "430500": "邵阳市",
- "430600": "岳阳市",
- "430700": "常德市",
- "430800": "张家界市",
- "430900": "益阳市",
- "431000": "郴州市",
- "431100": "永州市",
- "431200": "怀化市",
- "431300": "娄底市",
- "433100": "湘西土家族苗族自治州" },
- "0,430000,430100": {
- "430102": "芙蓉区",
- "430103": "天心区",
- "430104": "岳麓区",
- "430105": "开福区",
- "430111": "雨花区",
- "430121": "长沙县",
- "430122": "望城县",
- "430124": "宁乡县",
- "430181": "浏阳市",
- "430182": "其它区" },
- "0,430000,430200": {
- "430202": "荷塘区",
- "430203": "芦淞区",
- "430204": "石峰区",
- "430211": "天元区",
- "430221": "株洲县",
- "430223": "攸县",
- "430224": "茶陵县",
- "430225": "炎陵县",
- "430281": "醴陵市",
- "430282": "其它区" },
- "0,430000,430300": {
- "430302": "雨湖区",
- "430304": "岳塘区",
- "430321": "湘潭县",
- "430381": "湘乡市",
- "430382": "韶山市",
- "430383": "其它区" },
- "0,430000,430400": {
- "430405": "珠晖区",
- "430406": "雁峰区",
- "430407": "石鼓区",
- "430408": "蒸湘区",
- "430412": "南岳区",
- "430421": "衡阳县",
- "430422": "衡南县",
- "430423": "衡山县",
- "430424": "衡东县",
- "430426": "祁东县",
- "430481": "耒阳市",
- "430482": "常宁市",
- "430483": "其它区" },
- "0,430000,430500": {
- "430502": "双清区",
- "430503": "大祥区",
- "430511": "北塔区",
- "430521": "邵东县",
- "430522": "新邵县",
- "430523": "邵阳县",
- "430524": "隆回县",
- "430525": "洞口县",
- "430527": "绥宁县",
- "430528": "新宁县",
- "430529": "城步苗族自治县",
- "430581": "武冈市",
- "430582": "其它区" },
- "0,430000,430600": {
- "430602": "岳阳楼区",
- "430603": "云溪区",
- "430611": "君山区",
- "430621": "岳阳县",
- "430623": "华容县",
- "430624": "湘阴县",
- "430626": "平江县",
- "430681": "汨罗市",
- "430682": "临湘市",
- "430683": "其它区" },
- "0,430000,430700": {
- "430702": "武陵区",
- "430703": "鼎城区",
- "430721": "安乡县",
- "430722": "汉寿县",
- "430723": "澧县",
- "430724": "临澧县",
- "430725": "桃源县",
- "430726": "石门县",
- "430781": "津市市",
- "430782": "其它区" },
- "0,430000,430800": {
- "430802": "永定区",
- "430811": "武陵源区",
- "430821": "慈利县",
- "430822": "桑植县",
- "430823": "其它区" },
- "0,430000,430900": {
- "430902": "资阳区",
- "430903": "赫山区",
- "430921": "南县",
- "430922": "桃江县",
- "430923": "安化县",
- "430981": "沅江市",
- "430982": "其它区" },
- "0,430000,431000": {
- "431002": "北湖区",
- "431003": "苏仙区",
- "431021": "桂阳县",
- "431022": "宜章县",
- "431023": "永兴县",
- "431024": "嘉禾县",
- "431025": "临武县",
- "431026": "汝城县",
- "431027": "桂东县",
- "431028": "安仁县",
- "431081": "资兴市",
- "431082": "其它区" },
- "0,430000,431100": {
- "431102": "零陵区",
- "431103": "冷水滩区",
- "431121": "祁阳县",
- "431122": "东安县",
- "431123": "双牌县",
- "431124": "道县",
- "431125": "江永县",
- "431126": "宁远县",
- "431127": "蓝山县",
- "431128": "新田县",
- "431129": "江华瑶族自治县",
- "431130": "其它区" },
- "0,430000,431200": {
- "431202": "鹤城区",
- "431221": "中方县",
- "431222": "沅陵县",
- "431223": "辰溪县",
- "431224": "溆浦县",
- "431225": "会同县",
- "431226": "麻阳苗族自治县",
- "431227": "新晃侗族自治县",
- "431228": "芷江侗族自治县",
- "431229": "靖州苗族侗族自治县",
- "431230": "通道侗族自治县",
- "431281": "洪江市",
- "431282": "其它区" },
- "0,430000,431300": {
- "431302": "娄星区",
- "431321": "双峰县",
- "431322": "新化县",
- "431381": "冷水江市",
- "431382": "涟源市",
- "431383": "其它区" },
- "0,430000,433100": {
- "433101": "吉首市",
- "433122": "泸溪县",
- "433123": "凤凰县",
- "433124": "花垣县",
- "433125": "保靖县",
- "433126": "古丈县",
- "433127": "永顺县",
- "433130": "龙山县",
- "433131": "其它区" },
- "0,440000": {
- "440100": "广州市",
- "440200": "韶关市",
- "440300": "深圳市",
- "440400": "珠海市",
- "440500": "汕头市",
- "440600": "佛山市",
- "440700": "江门市",
- "440800": "湛江市",
- "440900": "茂名市",
- "441200": "肇庆市",
- "441300": "惠州市",
- "441400": "梅州市",
- "441500": "汕尾市",
- "441600": "河源市",
- "441700": "阳江市",
- "441800": "清远市",
- "441900": "东莞市",
- "442000": "中山市",
- "445100": "潮州市",
- "445200": "揭阳市",
- "445300": "云浮市" },
- "0,440000,440100": {
- "440103": "荔湾区",
- "440104": "越秀区",
- "440105": "海珠区",
- "440106": "天河区",
- "440111": "白云区",
- "440112": "黄埔区",
- "440113": "番禺区",
- "440114": "花都区",
- "440115": "南沙区",
- "440116": "萝岗区",
- "440183": "增城市",
- "440184": "从化市",
- "440188": "东山区",
- "440189": "其它区" },
- "0,440000,440200": {
- "440203": "武江区",
- "440204": "浈江区",
- "440205": "曲江区",
- "440222": "始兴县",
- "440224": "仁化县",
- "440229": "翁源县",
- "440232": "乳源瑶族自治县",
- "440233": "新丰县",
- "440281": "乐昌市",
- "440282": "南雄市",
- "440283": "其它区" },
- "0,440000,440300": {
- "1032697": "光明新区",
- "1032698": "坪山新区",
- "1032699": "大鹏新区",
- "1032700": "龙华新区",
- "440303": "罗湖区",
- "440304": "福田区",
- "440305": "南山区",
- "440306": "宝安区",
- "440307": "龙岗区",
- "440308": "盐田区",
- "440309": "其它区" },
- "0,440000,440400": {
- "440402": "香洲区",
- "440403": "斗门区",
- "440404": "金湾区",
- "440486": "金唐区",
- "440487": "南湾区",
- "440488": "其它区" },
- "0,440000,440500": {
- "440507": "龙湖区",
- "440511": "金平区",
- "440512": "濠江区",
- "440513": "潮阳区",
- "440514": "潮南区",
- "440515": "澄海区",
- "440523": "南澳县",
- "440524": "其它区" },
- "0,440000,440600": {
- "440604": "禅城区",
- "440605": "南海区",
- "440606": "顺德区",
- "440607": "三水区",
- "440608": "高明区",
- "440609": "其它区" },
- "0,440000,440700": {
- "440703": "蓬江区",
- "440704": "江海区",
- "440705": "新会区",
- "440781": "台山市",
- "440783": "开平市",
- "440784": "鹤山市",
- "440785": "恩平市",
- "440786": "其它区" },
- "0,440000,440800": {
- "440802": "赤坎区",
- "440803": "霞山区",
- "440804": "坡头区",
- "440811": "麻章区",
- "440823": "遂溪县",
- "440825": "徐闻县",
- "440881": "廉江市",
- "440882": "雷州市",
- "440883": "吴川市",
- "440884": "其它区" },
- "0,440000,440900": {
- "440902": "茂南区",
- "440903": "茂港区",
- "440923": "电白县",
- "440981": "高州市",
- "440982": "化州市",
- "440983": "信宜市",
- "440984": "其它区" },
- "0,440000,441200": {
- "441202": "端州区",
- "441203": "鼎湖区",
- "441223": "广宁县",
- "441224": "怀集县",
- "441225": "封开县",
- "441226": "德庆县",
- "441283": "高要市",
- "441284": "四会市",
- "441285": "其它区" },
- "0,440000,441300": {
- "441302": "惠城区",
- "441303": "惠阳区",
- "441322": "博罗县",
- "441323": "惠东县",
- "441324": "龙门县",
- "441325": "其它区" },
- "0,440000,441400": {
- "441402": "梅江区",
- "441421": "梅县",
- "441422": "大埔县",
- "441423": "丰顺县",
- "441424": "五华县",
- "441426": "平远县",
- "441427": "蕉岭县",
- "441481": "兴宁市",
- "441482": "其它区" },
- "0,440000,441500": {
- "441502": "城区",
- "441521": "海丰县",
- "441523": "陆河县",
- "441581": "陆丰市",
- "441582": "其它区" },
- "0,440000,441600": {
- "441602": "源城区",
- "441621": "紫金县",
- "441622": "龙川县",
- "441623": "连平县",
- "441624": "和平县",
- "441625": "东源县",
- "441626": "其它区" },
- "0,440000,441700": {
- "441702": "江城区",
- "441721": "阳西县",
- "441723": "阳东县",
- "441781": "阳春市",
- "441782": "其它区" },
- "0,440000,441800": {
- "441802": "清城区",
- "441821": "佛冈县",
- "441823": "阳山县",
- "441825": "连山壮族瑶族自治县",
- "441826": "连南瑶族自治县",
- "441827": "清新县",
- "441881": "英德市",
- "441882": "连州市",
- "441883": "其它区" },
- "0,440000,441900": [],
- "0,440000,442000": [],
- "0,440000,445100": {
- "445102": "湘桥区",
- "445121": "潮安县",
- "445122": "饶平县",
- "445185": "枫溪区",
- "445186": "其它区" },
- "0,440000,445200": {
- "445202": "榕城区",
- "445221": "揭东县",
- "445222": "揭西县",
- "445224": "惠来县",
- "445281": "普宁市",
- "445284": "东山区",
- "445285": "其它区" },
- "0,440000,445300": {
- "445302": "云城区",
- "445321": "新兴县",
- "445322": "郁南县",
- "445323": "云安县",
- "445381": "罗定市",
- "445382": "其它区" },
- "0,450000": {
- "450100": "南宁市",
- "450200": "柳州市",
- "450300": "桂林市",
- "450400": "梧州市",
- "450500": "北海市",
- "450600": "防城港市",
- "450700": "钦州市",
- "450800": "贵港市",
- "450900": "玉林市",
- "451000": "百色市",
- "451100": "贺州市",
- "451200": "河池市",
- "451300": "来宾市",
- "451400": "崇左市" },
- "0,450000,450100": {
- "450102": "兴宁区",
- "450103": "青秀区",
- "450105": "江南区",
- "450107": "西乡塘区",
- "450108": "良庆区",
- "450109": "邕宁区",
- "450122": "武鸣县",
- "450123": "隆安县",
- "450124": "马山县",
- "450125": "上林县",
- "450126": "宾阳县",
- "450127": "横县",
- "450128": "其它区" },
- "0,450000,450200": {
- "450202": "城中区",
- "450203": "鱼峰区",
- "450204": "柳南区",
- "450205": "柳北区",
- "450221": "柳江县",
- "450222": "柳城县",
- "450223": "鹿寨县",
- "450224": "融安县",
- "450225": "融水苗族自治县",
- "450226": "三江侗族自治县",
- "450227": "其它区" },
- "0,450000,450300": {
- "450302": "秀峰区",
- "450303": "叠彩区",
- "450304": "象山区",
- "450305": "七星区",
- "450311": "雁山区",
- "450321": "阳朔县",
- "450322": "临桂县",
- "450323": "灵川县",
- "450324": "全州县",
- "450325": "兴安县",
- "450326": "永福县",
- "450327": "灌阳县",
- "450328": "龙胜各族自治县",
- "450329": "资源县",
- "450330": "平乐县",
- "450331": "荔浦县",
- "450332": "恭城瑶族自治县",
- "450333": "其它区" },
- "0,450000,450400": {
- "450403": "万秀区",
- "450404": "蝶山区",
- "450405": "长洲区",
- "450421": "苍梧县",
- "450422": "藤县",
- "450423": "蒙山县",
- "450481": "岑溪市",
- "450482": "其它区" },
- "0,450000,450500": {
- "450502": "海城区",
- "450503": "银海区",
- "450512": "铁山港区",
- "450521": "合浦县",
- "450522": "其它区" },
- "0,450000,450600": {
- "450602": "港口区",
- "450603": "防城区",
- "450621": "上思县",
- "450681": "东兴市",
- "450682": "其它区" },
- "0,450000,450700": {
- "450702": "钦南区",
- "450703": "钦北区",
- "450721": "灵山县",
- "450722": "浦北县",
- "450723": "其它区" },
- "0,450000,450800": {
- "450802": "港北区",
- "450803": "港南区",
- "450804": "覃塘区",
- "450821": "平南县",
- "450881": "桂平市",
- "450882": "其它区" },
- "0,450000,450900": {
- "450902": "玉州区",
- "450921": "容县",
- "450922": "陆川县",
- "450923": "博白县",
- "450924": "兴业县",
- "450981": "北流市",
- "450982": "其它区" },
- "0,450000,451000": {
- "451002": "右江区",
- "451021": "田阳县",
- "451022": "田东县",
- "451023": "平果县",
- "451024": "德保县",
- "451025": "靖西县",
- "451026": "那坡县",
- "451027": "凌云县",
- "451028": "乐业县",
- "451029": "田林县",
- "451030": "西林县",
- "451031": "隆林各族自治县",
- "451032": "其它区" },
- "0,450000,451100": {
- "451102": "八步区",
- "451121": "昭平县",
- "451122": "钟山县",
- "451123": "富川瑶族自治县",
- "451124": "其它区" },
- "0,450000,451200": {
- "451202": "金城江区",
- "451221": "南丹县",
- "451222": "天峨县",
- "451223": "凤山县",
- "451224": "东兰县",
- "451225": "罗城仫佬族自治县",
- "451226": "环江毛南族自治县",
- "451227": "巴马瑶族自治县",
- "451228": "都安瑶族自治县",
- "451229": "大化瑶族自治县",
- "451281": "宜州市",
- "451282": "其它区" },
- "0,450000,451300": {
- "451302": "兴宾区",
- "451321": "忻城县",
- "451322": "象州县",
- "451323": "武宣县",
- "451324": "金秀瑶族自治县",
- "451381": "合山市",
- "451382": "其它区" },
- "0,450000,451400": {
- "451402": "江洲区",
- "451421": "扶绥县",
- "451422": "宁明县",
- "451423": "龙州县",
- "451424": "大新县",
- "451425": "天等县",
- "451481": "凭祥市",
- "451482": "其它区" },
- "0,460000": {
- "460100": "海口市",
- "460200": "三亚市",
- "469001": "五指山市",
- "469002": "琼海市",
- "469003": "儋州市",
- "469005": "文昌市",
- "469006": "万宁市",
- "469007": "东方市",
- "469025": "定安县",
- "469026": "屯昌县",
- "469027": "澄迈县",
- "469028": "临高县",
- "469030": "白沙黎族自治县",
- "469031": "昌江黎族自治县",
- "469033": "乐东黎族自治县",
- "469034": "陵水黎族自治县",
- "469035": "保亭黎族苗族自治县",
- "469036": "琼中黎族苗族自治县",
- "469037": "西沙群岛",
- "469038": "南沙群岛",
- "469039": "中沙群岛的岛礁及其海域" },
- "0,460000,460100": {
- "460105": "秀英区",
- "460106": "龙华区",
- "460107": "琼山区",
- "460108": "美兰区",
- "460109": "其它区" },
- "0,460000,460200": [],
- "0,460000,469001": [],
- "0,460000,469002": [],
- "0,460000,469003": [],
- "0,460000,469005": [],
- "0,460000,469006": [],
- "0,460000,469007": [],
- "0,460000,469025": [],
- "0,460000,469026": [],
- "0,460000,469027": [],
- "0,460000,469028": [],
- "0,460000,469030": [],
- "0,460000,469031": [],
- "0,460000,469033": [],
- "0,460000,469034": [],
- "0,460000,469035": [],
- "0,460000,469036": [],
- "0,460000,469037": [],
- "0,460000,469038": [],
- "0,460000,469039": [],
- "0,500000": {
- "500100": "重庆市" },
- "0,500000,500100": {
- "500101": "万州区",
- "500102": "涪陵区",
- "500103": "渝中区",
- "500104": "大渡口区",
- "500105": "江北区",
- "500106": "沙坪坝区",
- "500107": "九龙坡区",
- "500108": "南岸区",
- "500109": "北碚区",
- "500110": "万盛区",
- "500111": "双桥区",
- "500112": "渝北区",
- "500113": "巴南区",
- "500114": "黔江区",
- "500115": "长寿区",
- "500222": "綦江县",
- "500223": "潼南县",
- "500224": "铜梁县",
- "500225": "大足县",
- "500226": "荣昌县",
- "500227": "璧山县",
- "500228": "梁平县",
- "500229": "城口县",
- "500230": "丰都县",
- "500231": "垫江县",
- "500232": "武隆县",
- "500233": "忠县",
- "500234": "开县",
- "500235": "云阳县",
- "500236": "奉节县",
- "500237": "巫山县",
- "500238": "巫溪县",
- "500240": "石柱土家族自治县",
- "500241": "秀山土家族苗族自治县",
- "500242": "酉阳土家族苗族自治县",
- "500243": "彭水苗族土家族自治县",
- "500381": "江津区",
- "500382": "合川区",
- "500383": "永川区",
- "500384": "南川区",
- "500385": "其它区" },
- "0,510000": {
- "510100": "成都市",
- "510300": "自贡市",
- "510400": "攀枝花市",
- "510500": "泸州市",
- "510600": "德阳市",
- "510700": "绵阳市",
- "510800": "广元市",
- "510900": "遂宁市",
- "511000": "内江市",
- "511100": "乐山市",
- "511300": "南充市",
- "511400": "眉山市",
- "511500": "宜宾市",
- "511600": "广安市",
- "511700": "达州市",
- "511800": "雅安市",
- "511900": "巴中市",
- "512000": "资阳市",
- "513200": "阿坝藏族羌族自治州",
- "513300": "甘孜藏族自治州",
- "513400": "凉山彝族自治州" },
- "0,510000,510100": {
- "510104": "锦江区",
- "510105": "青羊区",
- "510106": "金牛区",
- "510107": "武侯区",
- "510108": "成华区",
- "510112": "龙泉驿区",
- "510113": "青白江区",
- "510114": "新都区",
- "510115": "温江区",
- "510121": "金堂县",
- "510122": "双流县",
- "510124": "郫县",
- "510129": "大邑县",
- "510131": "蒲江县",
- "510132": "新津县",
- "510181": "都江堰市",
- "510182": "彭州市",
- "510183": "邛崃市",
- "510184": "崇州市",
- "510185": "其它区" },
- "0,510000,510300": {
- "510302": "自流井区",
- "510303": "贡井区",
- "510304": "大安区",
- "510311": "沿滩区",
- "510321": "荣县",
- "510322": "富顺县",
- "510323": "其它区" },
- "0,510000,510400": {
- "510402": "东区",
- "510403": "西区",
- "510411": "仁和区",
- "510421": "米易县",
- "510422": "盐边县",
- "510423": "其它区" },
- "0,510000,510500": {
- "510502": "江阳区",
- "510503": "纳溪区",
- "510504": "龙马潭区",
- "510521": "泸县",
- "510522": "合江县",
- "510524": "叙永县",
- "510525": "古蔺县",
- "510526": "其它区" },
- "0,510000,510600": {
- "510603": "旌阳区",
- "510623": "中江县",
- "510626": "罗江县",
- "510681": "广汉市",
- "510682": "什邡市",
- "510683": "绵竹市",
- "510684": "其它区" },
- "0,510000,510700": {
- "510703": "涪城区",
- "510704": "游仙区",
- "510722": "三台县",
- "510723": "盐亭县",
- "510724": "安县",
- "510725": "梓潼县",
- "510726": "北川羌族自治县",
- "510727": "平武县",
- "510751": "高新区",
- "510781": "江油市",
- "510782": "其它区" },
- "0,510000,510800": {
- "510802": "利州区",
- "510811": "元坝区",
- "510812": "朝天区",
- "510821": "旺苍县",
- "510822": "青川县",
- "510823": "剑阁县",
- "510824": "苍溪县",
- "510825": "其它区" },
- "0,510000,510900": {
- "510903": "船山区",
- "510904": "安居区",
- "510921": "蓬溪县",
- "510922": "射洪县",
- "510923": "大英县",
- "510924": "其它区" },
- "0,510000,511000": {
- "511002": "市中区",
- "511011": "东兴区",
- "511024": "威远县",
- "511025": "资中县",
- "511028": "隆昌县",
- "511029": "其它区" },
- "0,510000,511100": {
- "511102": "市中区",
- "511111": "沙湾区",
- "511112": "五通桥区",
- "511113": "金口河区",
- "511123": "犍为县",
- "511124": "井研县",
- "511126": "夹江县",
- "511129": "沐川县",
- "511132": "峨边彝族自治县",
- "511133": "马边彝族自治县",
- "511181": "峨眉山市",
- "511182": "其它区" },
- "0,510000,511300": {
- "511302": "顺庆区",
- "511303": "高坪区",
- "511304": "嘉陵区",
- "511321": "南部县",
- "511322": "营山县",
- "511323": "蓬安县",
- "511324": "仪陇县",
- "511325": "西充县",
- "511381": "阆中市",
- "511382": "其它区" },
- "0,510000,511400": {
- "511402": "东坡区",
- "511421": "仁寿县",
- "511422": "彭山县",
- "511423": "洪雅县",
- "511424": "丹棱县",
- "511425": "青神县",
- "511426": "其它区" },
- "0,510000,511500": {
- "511502": "翠屏区",
- "511521": "宜宾县",
- "511522": "南溪县",
- "511523": "江安县",
- "511524": "长宁县",
- "511525": "高县",
- "511526": "珙县",
- "511527": "筠连县",
- "511528": "兴文县",
- "511529": "屏山县",
- "511530": "其它区" },
- "0,510000,511600": {
- "511602": "广安区",
- "511621": "岳池县",
- "511622": "武胜县",
- "511623": "邻水县",
- "511681": "华蓥市",
- "511682": "市辖区",
- "511683": "其它区" },
- "0,510000,511700": {
- "511702": "通川区",
- "511721": "达县",
- "511722": "宣汉县",
- "511723": "开江县",
- "511724": "大竹县",
- "511725": "渠县",
- "511781": "万源市",
- "511782": "其它区" },
- "0,510000,511800": {
- "511802": "雨城区",
- "511821": "名山县",
- "511822": "荥经县",
- "511823": "汉源县",
- "511824": "石棉县",
- "511825": "天全县",
- "511826": "芦山县",
- "511827": "宝兴县",
- "511828": "其它区" },
- "0,510000,511900": {
- "511902": "巴州区",
- "511921": "通江县",
- "511922": "南江县",
- "511923": "平昌县",
- "511924": "其它区" },
- "0,510000,512000": {
- "512002": "雁江区",
- "512021": "安岳县",
- "512022": "乐至县",
- "512081": "简阳市",
- "512082": "其它区" },
- "0,510000,513200": {
- "513221": "汶川县",
- "513222": "理县",
- "513223": "茂县",
- "513224": "松潘县",
- "513225": "九寨沟县",
- "513226": "金川县",
- "513227": "小金县",
- "513228": "黑水县",
- "513229": "马尔康县",
- "513230": "壤塘县",
- "513231": "阿坝县",
- "513232": "若尔盖县",
- "513233": "红原县",
- "513234": "其它区" },
- "0,510000,513300": {
- "513321": "康定县",
- "513322": "泸定县",
- "513323": "丹巴县",
- "513324": "九龙县",
- "513325": "雅江县",
- "513326": "道孚县",
- "513327": "炉霍县",
- "513328": "甘孜县",
- "513329": "新龙县",
- "513330": "德格县",
- "513331": "白玉县",
- "513332": "石渠县",
- "513333": "色达县",
- "513334": "理塘县",
- "513335": "巴塘县",
- "513336": "乡城县",
- "513337": "稻城县",
- "513338": "得荣县",
- "513339": "其它区" },
- "0,510000,513400": {
- "513401": "西昌市",
- "513422": "木里藏族自治县",
- "513423": "盐源县",
- "513424": "德昌县",
- "513425": "会理县",
- "513426": "会东县",
- "513427": "宁南县",
- "513428": "普格县",
- "513429": "布拖县",
- "513430": "金阳县",
- "513431": "昭觉县",
- "513432": "喜德县",
- "513433": "冕宁县",
- "513434": "越西县",
- "513435": "甘洛县",
- "513436": "美姑县",
- "513437": "雷波县",
- "513438": "其它区" },
- "0,520000": {
- "520100": "贵阳市",
- "520200": "六盘水市",
- "520300": "遵义市",
- "520400": "安顺市",
- "522200": "铜仁地区",
- "522300": "黔西南布依族苗族自治州",
- "522400": "毕节地区",
- "522600": "黔东南苗族侗族自治州",
- "522700": "黔南布依族苗族自治州" },
- "0,520000,520100": {
- "520102": "南明区",
- "520103": "云岩区",
- "520111": "花溪区",
- "520112": "乌当区",
- "520113": "白云区",
- "520114": "小河区",
- "520121": "开阳县",
- "520122": "息烽县",
- "520123": "修文县",
- "520151": "金阳开发区",
- "520181": "清镇市",
- "520182": "其它区" },
- "0,520000,520200": {
- "520201": "钟山区",
- "520203": "六枝特区",
- "520221": "水城县",
- "520222": "盘县",
- "520223": "其它区" },
- "0,520000,520300": {
- "520302": "红花岗区",
- "520303": "汇川区",
- "520321": "遵义县",
- "520322": "桐梓县",
- "520323": "绥阳县",
- "520324": "正安县",
- "520325": "道真仡佬族苗族自治县",
- "520326": "务川仡佬族苗族自治县",
- "520327": "凤冈县",
- "520328": "湄潭县",
- "520329": "余庆县",
- "520330": "习水县",
- "520381": "赤水市",
- "520382": "仁怀市",
- "520383": "其它区" },
- "0,520000,520400": {
- "520402": "西秀区",
- "520421": "平坝县",
- "520422": "普定县",
- "520423": "镇宁布依族苗族自治县",
- "520424": "关岭布依族苗族自治县",
- "520425": "紫云苗族布依族自治县",
- "520426": "其它区" },
- "0,520000,522200": {
- "522201": "铜仁市",
- "522222": "江口县",
- "522223": "玉屏侗族自治县",
- "522224": "石阡县",
- "522225": "思南县",
- "522226": "印江土家族苗族自治县",
- "522227": "德江县",
- "522228": "沿河土家族自治县",
- "522229": "松桃苗族自治县",
- "522230": "万山特区",
- "522231": "其它区" },
- "0,520000,522300": {
- "522301": "兴义市",
- "522322": "兴仁县",
- "522323": "普安县",
- "522324": "晴隆县",
- "522325": "贞丰县",
- "522326": "望谟县",
- "522327": "册亨县",
- "522328": "安龙县",
- "522329": "其它区" },
- "0,520000,522400": {
- "522401": "毕节市",
- "522422": "大方县",
- "522423": "黔西县",
- "522424": "金沙县",
- "522425": "织金县",
- "522426": "纳雍县",
- "522427": "威宁彝族回族苗族自治县",
- "522428": "赫章县",
- "522429": "其它区" },
- "0,520000,522600": {
- "522601": "凯里市",
- "522622": "黄平县",
- "522623": "施秉县",
- "522624": "三穗县",
- "522625": "镇远县",
- "522626": "岑巩县",
- "522627": "天柱县",
- "522628": "锦屏县",
- "522629": "剑河县",
- "522630": "台江县",
- "522631": "黎平县",
- "522632": "榕江县",
- "522633": "从江县",
- "522634": "雷山县",
- "522635": "麻江县",
- "522636": "丹寨县",
- "522637": "其它区" },
- "0,520000,522700": {
- "522701": "都匀市",
- "522702": "福泉市",
- "522722": "荔波县",
- "522723": "贵定县",
- "522725": "瓮安县",
- "522726": "独山县",
- "522727": "平塘县",
- "522728": "罗甸县",
- "522729": "长顺县",
- "522730": "龙里县",
- "522731": "惠水县",
- "522732": "三都水族自治县",
- "522733": "其它区" },
- "0,530000": {
- "530100": "昆明市",
- "530300": "曲靖市",
- "530400": "玉溪市",
- "530500": "保山市",
- "530600": "昭通市",
- "530700": "丽江市",
- "530800": "普洱市",
- "530900": "临沧市",
- "532300": "楚雄彝族自治州",
- "532500": "红河哈尼族彝族自治州",
- "532600": "文山壮族苗族自治州",
- "532800": "西双版纳傣族自治州",
- "532900": "大理白族自治州",
- "533100": "德宏傣族景颇族自治州",
- "533300": "怒江傈僳族自治州",
- "533400": "迪庆藏族自治州" },
- "0,530000,530100": {
- "530102": "五华区",
- "530103": "盘龙区",
- "530111": "官渡区",
- "530112": "西山区",
- "530113": "东川区",
- "530121": "呈贡县",
- "530122": "晋宁县",
- "530124": "富民县",
- "530125": "宜良县",
- "530126": "石林彝族自治县",
- "530127": "嵩明县",
- "530128": "禄劝彝族苗族自治县",
- "530129": "寻甸回族彝族自治县",
- "530181": "安宁市",
- "530182": "其它区" },
- "0,530000,530300": {
- "530302": "麒麟区",
- "530321": "马龙县",
- "530322": "陆良县",
- "530323": "师宗县",
- "530324": "罗平县",
- "530325": "富源县",
- "530326": "会泽县",
- "530328": "沾益县",
- "530381": "宣威市",
- "530382": "其它区" },
- "0,530000,530400": {
- "530402": "红塔区",
- "530421": "江川县",
- "530422": "澄江县",
- "530423": "通海县",
- "530424": "华宁县",
- "530425": "易门县",
- "530426": "峨山彝族自治县",
- "530427": "新平彝族傣族自治县",
- "530428": "元江哈尼族彝族傣族自治县",
- "530429": "其它区" },
- "0,530000,530500": {
- "530502": "隆阳区",
- "530521": "施甸县",
- "530522": "腾冲县",
- "530523": "龙陵县",
- "530524": "昌宁县",
- "530525": "其它区" },
- "0,530000,530600": {
- "530602": "昭阳区",
- "530621": "鲁甸县",
- "530622": "巧家县",
- "530623": "盐津县",
- "530624": "大关县",
- "530625": "永善县",
- "530626": "绥江县",
- "530627": "镇雄县",
- "530628": "彝良县",
- "530629": "威信县",
- "530630": "水富县",
- "530631": "其它区" },
- "0,530000,530700": {
- "530702": "古城区",
- "530721": "玉龙纳西族自治县",
- "530722": "永胜县",
- "530723": "华坪县",
- "530724": "宁蒗彝族自治县",
- "530725": "其它区" },
- "0,530000,530800": {
- "530802": "思茅区",
- "530821": "宁洱哈尼族彝族自治县",
- "530822": "墨江哈尼族自治县",
- "530823": "景东彝族自治县",
- "530824": "景谷傣族彝族自治县",
- "530825": "镇沅彝族哈尼族拉祜族自治县",
- "530826": "江城哈尼族彝族自治县",
- "530827": "孟连傣族拉祜族佤族自治县",
- "530828": "澜沧拉祜族自治县",
- "530829": "西盟佤族自治县",
- "530830": "其它区" },
- "0,530000,530900": {
- "530902": "临翔区",
- "530921": "凤庆县",
- "530922": "云县",
- "530923": "永德县",
- "530924": "镇康县",
- "530925": "双江拉祜族佤族布朗族傣族自治县",
- "530926": "耿马傣族佤族自治县",
- "530927": "沧源佤族自治县",
- "530928": "其它区" },
- "0,530000,532300": {
- "532301": "楚雄市",
- "532322": "双柏县",
- "532323": "牟定县",
- "532324": "南华县",
- "532325": "姚安县",
- "532326": "大姚县",
- "532327": "永仁县",
- "532328": "元谋县",
- "532329": "武定县",
- "532331": "禄丰县",
- "532332": "其它区" },
- "0,530000,532500": {
- "532501": "个旧市",
- "532502": "开远市",
- "532522": "蒙自县",
- "532523": "屏边苗族自治县",
- "532524": "建水县",
- "532525": "石屏县",
- "532526": "弥勒县",
- "532527": "泸西县",
- "532528": "元阳县",
- "532529": "红河县",
- "532530": "金平苗族瑶族傣族自治县",
- "532531": "绿春县",
- "532532": "河口瑶族自治县",
- "532533": "其它区" },
- "0,530000,532600": {
- "532621": "文山县",
- "532622": "砚山县",
- "532623": "西畴县",
- "532624": "麻栗坡县",
- "532625": "马关县",
- "532626": "丘北县",
- "532627": "广南县",
- "532628": "富宁县",
- "532629": "其它区" },
- "0,530000,532800": {
- "532801": "景洪市",
- "532822": "勐海县",
- "532823": "勐腊县",
- "532824": "其它区" },
- "0,530000,532900": {
- "532901": "大理市",
- "532922": "漾濞彝族自治县",
- "532923": "祥云县",
- "532924": "宾川县",
- "532925": "弥渡县",
- "532926": "南涧彝族自治县",
- "532927": "巍山彝族回族自治县",
- "532928": "永平县",
- "532929": "云龙县",
- "532930": "洱源县",
- "532931": "剑川县",
- "532932": "鹤庆县",
- "532933": "其它区" },
- "0,530000,533100": {
- "533102": "瑞丽市",
- "533103": "潞西市",
- "533122": "梁河县",
- "533123": "盈江县",
- "533124": "陇川县",
- "533125": "其它区" },
- "0,530000,533300": {
- "533321": "泸水县",
- "533323": "福贡县",
- "533324": "贡山独龙族怒族自治县",
- "533325": "兰坪白族普米族自治县",
- "533326": "其它区" },
- "0,530000,533400": {
- "533421": "香格里拉县",
- "533422": "德钦县",
- "533423": "维西傈僳族自治县",
- "533424": "其它区" },
- "0,540000": {
- "540100": "拉萨市",
- "542100": "昌都地区",
- "542200": "山南地区",
- "542300": "日喀则地区",
- "542400": "那曲地区",
- "542500": "阿里地区",
- "542600": "林芝地区" },
- "0,540000,540100": {
- "540102": "城关区",
- "540121": "林周县",
- "540122": "当雄县",
- "540123": "尼木县",
- "540124": "曲水县",
- "540125": "堆龙德庆县",
- "540126": "达孜县",
- "540127": "墨竹工卡县",
- "540128": "其它区" },
- "0,540000,542100": {
- "542121": "昌都县",
- "542122": "江达县",
- "542123": "贡觉县",
- "542124": "类乌齐县",
- "542125": "丁青县",
- "542126": "察雅县",
- "542127": "八宿县",
- "542128": "左贡县",
- "542129": "芒康县",
- "542132": "洛隆县",
- "542133": "边坝县",
- "542134": "其它区" },
- "0,540000,542200": {
- "542221": "乃东县",
- "542222": "扎囊县",
- "542223": "贡嘎县",
- "542224": "桑日县",
- "542225": "琼结县",
- "542226": "曲松县",
- "542227": "措美县",
- "542228": "洛扎县",
- "542229": "加查县",
- "542231": "隆子县",
- "542232": "错那县",
- "542233": "浪卡子县",
- "542234": "其它区" },
- "0,540000,542300": {
- "542301": "日喀则市",
- "542322": "南木林县",
- "542323": "江孜县",
- "542324": "定日县",
- "542325": "萨迦县",
- "542326": "拉孜县",
- "542327": "昂仁县",
- "542328": "谢通门县",
- "542329": "白朗县",
- "542330": "仁布县",
- "542331": "康马县",
- "542332": "定结县",
- "542333": "仲巴县",
- "542334": "亚东县",
- "542335": "吉隆县",
- "542336": "聂拉木县",
- "542337": "萨嘎县",
- "542338": "岗巴县",
- "542339": "其它区" },
- "0,540000,542400": {
- "542421": "那曲县",
- "542422": "嘉黎县",
- "542423": "比如县",
- "542424": "聂荣县",
- "542425": "安多县",
- "542426": "申扎县",
- "542427": "索县",
- "542428": "班戈县",
- "542429": "巴青县",
- "542430": "尼玛县",
- "542431": "其它区" },
- "0,540000,542500": {
- "542521": "普兰县",
- "542522": "札达县",
- "542523": "噶尔县",
- "542524": "日土县",
- "542525": "革吉县",
- "542526": "改则县",
- "542527": "措勤县",
- "542528": "其它区" },
- "0,540000,542600": {
- "542621": "林芝县",
- "542622": "工布江达县",
- "542623": "米林县",
- "542624": "墨脱县",
- "542625": "波密县",
- "542626": "察隅县",
- "542627": "朗县",
- "542628": "其它区" },
- "0,610000": {
- "610100": "西安市",
- "610200": "铜川市",
- "610300": "宝鸡市",
- "610400": "咸阳市",
- "610500": "渭南市",
- "610600": "延安市",
- "610700": "汉中市",
- "610800": "榆林市",
- "610900": "安康市",
- "611000": "商洛市" },
- "0,610000,610100": {
- "610102": "新城区",
- "610103": "碑林区",
- "610104": "莲湖区",
- "610111": "灞桥区",
- "610112": "未央区",
- "610113": "雁塔区",
- "610114": "阎良区",
- "610115": "临潼区",
- "610116": "长安区",
- "610122": "蓝田县",
- "610124": "周至县",
- "610125": "户县",
- "610126": "高陵县",
- "610127": "其它区" },
- "0,610000,610200": {
- "610202": "王益区",
- "610203": "印台区",
- "610204": "耀州区",
- "610222": "宜君县",
- "610223": "其它区" },
- "0,610000,610300": {
- "610302": "渭滨区",
- "610303": "金台区",
- "610304": "陈仓区",
- "610322": "凤翔县",
- "610323": "岐山县",
- "610324": "扶风县",
- "610326": "眉县",
- "610327": "陇县",
- "610328": "千阳县",
- "610329": "麟游县",
- "610330": "凤县",
- "610331": "太白县",
- "610332": "其它区" },
- "0,610000,610400": {
- "610402": "秦都区",
- "610403": "杨陵区",
- "610404": "渭城区",
- "610422": "三原县",
- "610423": "泾阳县",
- "610424": "乾县",
- "610425": "礼泉县",
- "610426": "永寿县",
- "610427": "彬县",
- "610428": "长武县",
- "610429": "旬邑县",
- "610430": "淳化县",
- "610431": "武功县",
- "610481": "兴平市",
- "610482": "其它区" },
- "0,610000,610500": {
- "610502": "临渭区",
- "610521": "华县",
- "610522": "潼关县",
- "610523": "大荔县",
- "610524": "合阳县",
- "610525": "澄城县",
- "610526": "蒲城县",
- "610527": "白水县",
- "610528": "富平县",
- "610581": "韩城市",
- "610582": "华阴市",
- "610583": "其它区" },
- "0,610000,610600": {
- "610602": "宝塔区",
- "610621": "延长县",
- "610622": "延川县",
- "610623": "子长县",
- "610624": "安塞县",
- "610625": "志丹县",
- "610626": "吴起县",
- "610627": "甘泉县",
- "610628": "富县",
- "610629": "洛川县",
- "610630": "宜川县",
- "610631": "黄龙县",
- "610632": "黄陵县",
- "610633": "其它区" },
- "0,610000,610700": {
- "610702": "汉台区",
- "610721": "南郑县",
- "610722": "城固县",
- "610723": "洋县",
- "610724": "西乡县",
- "610725": "勉县",
- "610726": "宁强县",
- "610727": "略阳县",
- "610728": "镇巴县",
- "610729": "留坝县",
- "610730": "佛坪县",
- "610731": "其它区" },
- "0,610000,610800": {
- "610802": "榆阳区",
- "610821": "神木县",
- "610822": "府谷县",
- "610823": "横山县",
- "610824": "靖边县",
- "610825": "定边县",
- "610826": "绥德县",
- "610827": "米脂县",
- "610828": "佳县",
- "610829": "吴堡县",
- "610830": "清涧县",
- "610831": "子洲县",
- "610832": "其它区" },
- "0,610000,610900": {
- "610902": "汉滨区",
- "610921": "汉阴县",
- "610922": "石泉县",
- "610923": "宁陕县",
- "610924": "紫阳县",
- "610925": "岚皋县",
- "610926": "平利县",
- "610927": "镇坪县",
- "610928": "旬阳县",
- "610929": "白河县",
- "610930": "其它区" },
- "0,610000,611000": {
- "611002": "商州区",
- "611021": "洛南县",
- "611022": "丹凤县",
- "611023": "商南县",
- "611024": "山阳县",
- "611025": "镇安县",
- "611026": "柞水县",
- "611027": "其它区" },
- "0,620000": {
- "620100": "兰州市",
- "620200": "嘉峪关市",
- "620300": "金昌市",
- "620400": "白银市",
- "620500": "天水市",
- "620600": "武威市",
- "620700": "张掖市",
- "620800": "平凉市",
- "620900": "酒泉市",
- "621000": "庆阳市",
- "621100": "定西市",
- "621200": "陇南市",
- "622900": "临夏回族自治州",
- "623000": "甘南藏族自治州" },
- "0,620000,620100": {
- "620102": "城关区",
- "620103": "七里河区",
- "620104": "西固区",
- "620105": "安宁区",
- "620111": "红古区",
- "620121": "永登县",
- "620122": "皋兰县",
- "620123": "榆中县",
- "620124": "其它区" },
- "0,620000,620200": [],
- "0,620000,620300": {
- "620302": "金川区",
- "620321": "永昌县",
- "620322": "其它区" },
- "0,620000,620400": {
- "620402": "白银区",
- "620403": "平川区",
- "620421": "靖远县",
- "620422": "会宁县",
- "620423": "景泰县",
- "620424": "其它区" },
- "0,620000,620500": {
- "620502": "秦州区",
- "620503": "麦积区",
- "620521": "清水县",
- "620522": "秦安县",
- "620523": "甘谷县",
- "620524": "武山县",
- "620525": "张家川回族自治县",
- "620526": "其它区" },
- "0,620000,620600": {
- "620602": "凉州区",
- "620621": "民勤县",
- "620622": "古浪县",
- "620623": "天祝藏族自治县",
- "620624": "其它区" },
- "0,620000,620700": {
- "620702": "甘州区",
- "620721": "肃南裕固族自治县",
- "620722": "民乐县",
- "620723": "临泽县",
- "620724": "高台县",
- "620725": "山丹县",
- "620726": "其它区" },
- "0,620000,620800": {
- "620802": "崆峒区",
- "620821": "泾川县",
- "620822": "灵台县",
- "620823": "崇信县",
- "620824": "华亭县",
- "620825": "庄浪县",
- "620826": "静宁县",
- "620827": "其它区" },
- "0,620000,620900": {
- "620902": "肃州区",
- "620921": "金塔县",
- "620922": "安西县",
- "620923": "肃北蒙古族自治县",
- "620924": "阿克塞哈萨克族自治县",
- "620981": "玉门市",
- "620982": "敦煌市",
- "620983": "其它区" },
- "0,620000,621000": {
- "621002": "西峰区",
- "621021": "庆城县",
- "621022": "环县",
- "621023": "华池县",
- "621024": "合水县",
- "621025": "正宁县",
- "621026": "宁县",
- "621027": "镇原县",
- "621028": "其它区" },
- "0,620000,621100": {
- "621102": "安定区",
- "621121": "通渭县",
- "621122": "陇西县",
- "621123": "渭源县",
- "621124": "临洮县",
- "621125": "漳县",
- "621126": "岷县",
- "621127": "其它区" },
- "0,620000,621200": {
- "621202": "武都区",
- "621221": "成县",
- "621222": "文县",
- "621223": "宕昌县",
- "621224": "康县",
- "621225": "西和县",
- "621226": "礼县",
- "621227": "徽县",
- "621228": "两当县",
- "621229": "其它区" },
- "0,620000,622900": {
- "622901": "临夏市",
- "622921": "临夏县",
- "622922": "康乐县",
- "622923": "永靖县",
- "622924": "广河县",
- "622925": "和政县",
- "622926": "东乡族自治县",
- "622927": "积石山保安族东乡族撒拉族自治县",
- "622928": "其它区" },
- "0,620000,623000": {
- "623001": "合作市",
- "623021": "临潭县",
- "623022": "卓尼县",
- "623023": "舟曲县",
- "623024": "迭部县",
- "623025": "玛曲县",
- "623026": "碌曲县",
- "623027": "夏河县",
- "623028": "其它区" },
- "0,630000": {
- "630100": "西宁市",
- "632100": "海东地区",
- "632200": "海北藏族自治州",
- "632300": "黄南藏族自治州",
- "632500": "海南藏族自治州",
- "632600": "果洛藏族自治州",
- "632700": "玉树藏族自治州",
- "632800": "海西蒙古族藏族自治州" },
- "0,630000,630100": {
- "630102": "城东区",
- "630103": "城中区",
- "630104": "城西区",
- "630105": "城北区",
- "630121": "大通回族土族自治县",
- "630122": "湟中县",
- "630123": "湟源县",
- "630124": "其它区" },
- "0,630000,632100": {
- "632121": "平安县",
- "632122": "民和回族土族自治县",
- "632123": "乐都县",
- "632126": "互助土族自治县",
- "632127": "化隆回族自治县",
- "632128": "循化撒拉族自治县",
- "632129": "其它区" },
- "0,630000,632200": {
- "632221": "门源回族自治县",
- "632222": "祁连县",
- "632223": "海晏县",
- "632224": "刚察县",
- "632225": "其它区" },
- "0,630000,632300": {
- "632321": "同仁县",
- "632322": "尖扎县",
- "632323": "泽库县",
- "632324": "河南蒙古族自治县",
- "632325": "其它区" },
- "0,630000,632500": {
- "632521": "共和县",
- "632522": "同德县",
- "632523": "贵德县",
- "632524": "兴海县",
- "632525": "贵南县",
- "632526": "其它区" },
- "0,630000,632600": {
- "632621": "玛沁县",
- "632622": "班玛县",
- "632623": "甘德县",
- "632624": "达日县",
- "632625": "久治县",
- "632626": "玛多县",
- "632627": "其它区" },
- "0,630000,632700": {
- "632721": "玉树县",
- "632722": "杂多县",
- "632723": "称多县",
- "632724": "治多县",
- "632725": "囊谦县",
- "632726": "曲麻莱县",
- "632727": "其它区" },
- "0,630000,632800": {
- "632801": "格尔木市",
- "632802": "德令哈市",
- "632821": "乌兰县",
- "632822": "都兰县",
- "632823": "天峻县",
- "632824": "其它区" },
- "0,640000": {
- "640100": "银川市",
- "640200": "石嘴山市",
- "640300": "吴忠市",
- "640400": "固原市",
- "640500": "中卫市" },
- "0,640000,640100": {
- "640104": "兴庆区",
- "640105": "西夏区",
- "640106": "金凤区",
- "640121": "永宁县",
- "640122": "贺兰县",
- "640181": "灵武市",
- "640182": "其它区" },
- "0,640000,640200": {
- "640202": "大武口区",
- "640205": "惠农区",
- "640221": "平罗县",
- "640222": "其它区" },
- "0,640000,640300": {
- "640302": "利通区",
- "640303": "红寺堡区",
- "640323": "盐池县",
- "640324": "同心县",
- "640381": "青铜峡市",
- "640382": "其它区" },
- "0,640000,640400": {
- "640402": "原州区",
- "640422": "西吉县",
- "640423": "隆德县",
- "640424": "泾源县",
- "640425": "彭阳县",
- "640426": "其它区" },
- "0,640000,640500": {
- "640502": "沙坡头区",
- "640521": "中宁县",
- "640522": "海原县",
- "640523": "其它区" },
- "0,650000": {
- "650100": "乌鲁木齐市",
- "650200": "克拉玛依市",
- "652100": "吐鲁番地区",
- "652200": "哈密地区",
- "652300": "昌吉回族自治州",
- "652700": "博尔塔拉蒙古自治州",
- "652800": "巴音郭楞蒙古自治州",
- "652900": "阿克苏地区",
- "653000": "克孜勒苏柯尔克孜自治州",
- "653100": "喀什地区",
- "653200": "和田地区",
- "654000": "伊犁哈萨克自治州",
- "654200": "塔城地区",
- "654300": "阿勒泰地区",
- "659001": "石河子市",
- "659002": "阿拉尔市",
- "659003": "图木舒克市",
- "659004": "五家渠市" },
- "0,650000,650100": {
- "650102": "天山区",
- "650103": "沙依巴克区",
- "650104": "新市区",
- "650105": "水磨沟区",
- "650106": "头屯河区",
- "650107": "达坂城区",
- "650108": "东山区",
- "650109": "米东区",
- "650121": "乌鲁木齐县",
- "650122": "其它区" },
- "0,650000,650200": {
- "650202": "独山子区",
- "650203": "克拉玛依区",
- "650204": "白碱滩区",
- "650205": "乌尔禾区",
- "650206": "其它区" },
- "0,650000,652100": {
- "652101": "吐鲁番市",
- "652122": "鄯善县",
- "652123": "托克逊县",
- "652124": "其它区" },
- "0,650000,652200": {
- "652201": "哈密市",
- "652222": "巴里坤哈萨克自治县",
- "652223": "伊吾县",
- "652224": "其它区" },
- "0,650000,652300": {
- "652301": "昌吉市",
- "652302": "阜康市",
- "652303": "米泉市",
- "652323": "呼图壁县",
- "652324": "玛纳斯县",
- "652325": "奇台县",
- "652327": "吉木萨尔县",
- "652328": "木垒哈萨克自治县",
- "652329": "其它区" },
- "0,650000,652700": {
- "652701": "博乐市",
- "652722": "精河县",
- "652723": "温泉县",
- "652724": "其它区" },
- "0,650000,652800": {
- "652801": "库尔勒市",
- "652822": "轮台县",
- "652823": "尉犁县",
- "652824": "若羌县",
- "652825": "且末县",
- "652826": "焉耆回族自治县",
- "652827": "和静县",
- "652828": "和硕县",
- "652829": "博湖县",
- "652830": "其它区" },
- "0,650000,652900": {
- "652901": "阿克苏市",
- "652922": "温宿县",
- "652923": "库车县",
- "652924": "沙雅县",
- "652925": "新和县",
- "652926": "拜城县",
- "652927": "乌什县",
- "652928": "阿瓦提县",
- "652929": "柯坪县",
- "652930": "其它区" },
- "0,650000,653000": {
- "653001": "阿图什市",
- "653022": "阿克陶县",
- "653023": "阿合奇县",
- "653024": "乌恰县",
- "653025": "其它区" },
- "0,650000,653100": {
- "653101": "喀什市",
- "653121": "疏附县",
- "653122": "疏勒县",
- "653123": "英吉沙县",
- "653124": "泽普县",
- "653125": "莎车县",
- "653126": "叶城县",
- "653127": "麦盖提县",
- "653128": "岳普湖县",
- "653129": "伽师县",
- "653130": "巴楚县",
- "653131": "塔什库尔干塔吉克自治县",
- "653132": "其它区" },
- "0,650000,653200": {
- "653201": "和田市",
- "653221": "和田县",
- "653222": "墨玉县",
- "653223": "皮山县",
- "653224": "洛浦县",
- "653225": "策勒县",
- "653226": "于田县",
- "653227": "民丰县",
- "653228": "其它区" },
- "0,650000,654000": {
- "654002": "伊宁市",
- "654003": "奎屯市",
- "654021": "伊宁县",
- "654022": "察布查尔锡伯自治县",
- "654023": "霍城县",
- "654024": "巩留县",
- "654025": "新源县",
- "654026": "昭苏县",
- "654027": "特克斯县",
- "654028": "尼勒克县",
- "654029": "其它区" },
- "0,650000,654200": {
- "654201": "塔城市",
- "654202": "乌苏市",
- "654221": "额敏县",
- "654223": "沙湾县",
- "654224": "托里县",
- "654225": "裕民县",
- "654226": "和布克赛尔蒙古自治县",
- "654227": "其它区" },
- "0,650000,654300": {
- "654301": "阿勒泰市",
- "654321": "布尔津县",
- "654322": "富蕴县",
- "654323": "福海县",
- "654324": "哈巴河县",
- "654325": "青河县",
- "654326": "吉木乃县",
- "654327": "其它区" },
- "0,650000,659001": [],
- "0,650000,659002": [],
- "0,650000,659003": [],
- "0,650000,659004": [],
- "0,710000": {
- "710100": "台北市",
- "710200": "高雄市",
- "710300": "台南市",
- "710400": "台中市",
- "710500": "金门县",
- "710600": "南投县",
- "710700": "基隆市",
- "710800": "新竹市",
- "710900": "嘉义市",
- "711100": "新北市",
- "711200": "宜兰县",
- "711300": "新竹县",
- "711400": "桃园县",
- "711500": "苗栗县",
- "711700": "彰化县",
- "711900": "嘉义县",
- "712100": "云林县",
- "712400": "屏东县",
- "712500": "台东县",
- "712600": "花莲县",
- "712700": "澎湖县" },
- "0,710000,710100": {
- "710101": "中正区",
- "710102": "大同区",
- "710103": "中山区",
- "710104": "松山区",
- "710105": "大安区",
- "710106": "万华区",
- "710107": "信义区",
- "710108": "士林区",
- "710109": "北投区",
- "710110": "内湖区",
- "710111": "南港区",
- "710112": "文山区",
- "710113": "其它区" },
- "0,710000,710200": {
- "710201": "新兴区",
- "710202": "前金区",
- "710203": "芩雅区",
- "710204": "盐埕区",
- "710205": "鼓山区",
- "710206": "旗津区",
- "710207": "前镇区",
- "710208": "三民区",
- "710209": "左营区",
- "710210": "楠梓区",
- "710211": "小港区",
- "710212": "其它区" },
- "0,710000,710300": {
- "710301": "中西区",
- "710302": "东区",
- "710303": "南区",
- "710304": "北区",
- "710305": "安平区",
- "710306": "安南区",
- "710307": "其它区" },
- "0,710000,710400": {
- "710401": "中区",
- "710402": "东区",
- "710403": "南区",
- "710404": "西区",
- "710405": "北区",
- "710406": "北屯区",
- "710407": "西屯区",
- "710408": "南屯区",
- "710409": "其它区" },
- "0,710000,710500": [],
- "0,710000,710600": [],
- "0,710000,710700": {
- "710701": "仁爱区",
- "710702": "信义区",
- "710703": "中正区",
- "710704": "中山区",
- "710705": "安乐区",
- "710706": "暖暖区",
- "710707": "七堵区",
- "710708": "其它区" },
- "0,710000,710800": {
- "710801": "东区",
- "710802": "北区",
- "710803": "香山区",
- "710804": "其它区" },
- "0,710000,710900": {
- "710901": "东区",
- "710902": "西区",
- "710903": "其它区" },
- "0,710000,711100": [],
- "0,710000,711200": [],
- "0,710000,711300": [],
- "0,710000,711400": [],
- "0,710000,711500": [],
- "0,710000,711700": [],
- "0,710000,711900": [],
- "0,710000,712100": [],
- "0,710000,712400": [],
- "0,710000,712500": [],
- "0,710000,712600": [],
- "0,710000,712700": [],
- "0,810000": {
- "810100": "香港岛",
- "810200": "九龙",
- "810300": "新界" },
- "0,810000,810100": {
- "810101": "中西区",
- "810102": "湾仔",
- "810103": "东区",
- "810104": "南区" },
- "0,810000,810200": {
- "810201": "九龙城区",
- "810202": "油尖旺区",
- "810203": "深水埗区",
- "810204": "黄大仙区",
- "810205": "观塘区" },
- "0,810000,810300": {
- "810301": "北区",
- "810302": "大埔区",
- "810303": "沙田区",
- "810304": "西贡区",
- "810305": "元朗区",
- "810306": "屯门区",
- "810307": "荃湾区",
- "810308": "葵青区",
- "810309": "离岛区" },
- "0,820000": {
- "820100": "澳门半岛",
- "820200": "离岛" },
- "0,820000,820100": [],
- "0,820000,820200": [],
- "0,990000": {
- "990100": "海外" },
- "0,990000,990100": [] };exports.default = _default;
- /***/ }),
- /***/ 3:
- /*!*************************************************************!*\
- !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* 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;
- var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
- var defaultDelimiters = ['{', '}'];var
- BaseFormatter = /*#__PURE__*/function () {
- function BaseFormatter() {_classCallCheck(this, BaseFormatter);
- this._caches = Object.create(null);
- }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
- message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
- if (!values) {
- return [message];
- }
- var tokens = this._caches[message];
- if (!tokens) {
- tokens = parse(message, delimiters);
- this._caches[message] = tokens;
- }
- return compile(tokens, values);
- } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
- var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
- var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
- function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
- var tokens = [];
- var position = 0;
- var text = '';
- while (position < format.length) {
- var char = format[position++];
- if (char === startDelimiter) {
- if (text) {
- tokens.push({ type: 'text', value: text });
- }
- text = '';
- var sub = '';
- char = format[position++];
- while (char !== undefined && char !== endDelimiter) {
- sub += char;
- char = format[position++];
- }
- var isClosed = char === endDelimiter;
- var type = RE_TOKEN_LIST_VALUE.test(sub) ?
- 'list' :
- isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
- 'named' :
- 'unknown';
- tokens.push({ value: sub, type: type });
- }
- // else if (char === '%') {
- // // when found rails i18n syntax, skip text capture
- // if (format[position] !== '{') {
- // text += char
- // }
- // }
- else {
- text += char;
- }
- }
- text && tokens.push({ type: 'text', value: text });
- return tokens;
- }
- function compile(tokens, values) {
- var compiled = [];
- var index = 0;
- var mode = isArray(values) ?
- 'list' :
- isObject(values) ?
- 'named' :
- 'unknown';
- if (mode === 'unknown') {
- return compiled;
- }
- while (index < tokens.length) {
- var token = tokens[index];
- switch (token.type) {
- case 'text':
- compiled.push(token.value);
- break;
- case 'list':
- compiled.push(values[parseInt(token.value, 10)]);
- break;
- case 'named':
- if (mode === 'named') {
- compiled.push(values[token.value]);
- } else
- {
- if (true) {
- console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
- }
- }
- break;
- case 'unknown':
- if (true) {
- console.warn("Detect 'unknown' type of token!");
- }
- break;}
- index++;
- }
- return compiled;
- }
- var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
- var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
- var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
- var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
- var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
- var defaultFormatter = new BaseFormatter();
- function include(str, parts) {
- return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
- }
- function startsWith(str, parts) {
- return parts.find(function (part) {return str.indexOf(part) === 0;});
- }
- function normalizeLocale(locale, messages) {
- if (!locale) {
- return;
- }
- locale = locale.trim().replace(/_/g, '-');
- if (messages && messages[locale]) {
- return locale;
- }
- locale = locale.toLowerCase();
- if (locale.indexOf('zh') === 0) {
- if (locale.indexOf('-hans') > -1) {
- return LOCALE_ZH_HANS;
- }
- if (locale.indexOf('-hant') > -1) {
- return LOCALE_ZH_HANT;
- }
- if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
- return LOCALE_ZH_HANT;
- }
- return LOCALE_ZH_HANS;
- }
- var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
- if (lang) {
- return lang;
- }
- }var
- I18n = /*#__PURE__*/function () {
- function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
- this.locale = LOCALE_EN;
- this.fallbackLocale = LOCALE_EN;
- this.message = {};
- this.messages = {};
- this.watchers = [];
- if (fallbackLocale) {
- this.fallbackLocale = fallbackLocale;
- }
- this.formater = formater || defaultFormatter;
- this.messages = messages || {};
- this.setLocale(locale || LOCALE_EN);
- if (watcher) {
- this.watchLocale(watcher);
- }
- }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
- locale) {var _this = this;
- var oldLocale = this.locale;
- this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
- if (!this.messages[this.locale]) {
- // 可能初始化时不存在
- this.messages[this.locale] = {};
- }
- this.message = this.messages[this.locale];
- // 仅发生变化时,通知
- if (oldLocale !== this.locale) {
- this.watchers.forEach(function (watcher) {
- watcher(_this.locale, oldLocale);
- });
- }
- } }, { key: "getLocale", value: function getLocale()
- {
- return this.locale;
- } }, { key: "watchLocale", value: function watchLocale(
- fn) {var _this2 = this;
- var index = this.watchers.push(fn) - 1;
- return function () {
- _this2.watchers.splice(index, 1);
- };
- } }, { key: "add", value: function add(
- locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- var curMessages = this.messages[locale];
- if (curMessages) {
- if (override) {
- Object.assign(curMessages, message);
- } else
- {
- Object.keys(message).forEach(function (key) {
- if (!hasOwn(curMessages, key)) {
- curMessages[key] = message[key];
- }
- });
- }
- } else
- {
- this.messages[locale] = message;
- }
- } }, { key: "f", value: function f(
- message, values, delimiters) {
- return this.formater.interpolate(message, values, delimiters).join('');
- } }, { key: "t", value: function t(
- key, locale, values) {
- var message = this.message;
- if (typeof locale === 'string') {
- locale = normalizeLocale(locale, this.messages);
- locale && (message = this.messages[locale]);
- } else
- {
- values = locale;
- }
- if (!hasOwn(message, key)) {
- console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
- return key;
- }
- return this.formater.interpolate(message[key], values).join('');
- } }]);return I18n;}();exports.I18n = I18n;
- function watchAppLocale(appVm, i18n) {
- // 需要保证 watch 的触发在组件渲染之前
- if (appVm.$watchLocale) {
- // vue2
- appVm.$watchLocale(function (newLocale) {
- i18n.setLocale(newLocale);
- });
- } else
- {
- appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
- i18n.setLocale(newLocale);
- });
- }
- }
- function getDefaultLocale() {
- if (typeof uni !== 'undefined' && uni.getLocale) {
- return uni.getLocale();
- }
- // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
- if (typeof global !== 'undefined' && global.getLocale) {
- return global.getLocale();
- }
- return LOCALE_EN;
- }
- 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;
- // 兼容旧版本入参
- if (typeof locale !== 'string') {var _ref4 =
- [
- messages,
- locale];locale = _ref4[0];messages = _ref4[1];
- }
- if (typeof locale !== 'string') {
- // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
- locale = getDefaultLocale();
- }
- if (typeof fallbackLocale !== 'string') {
- fallbackLocale =
- typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
- LOCALE_EN;
- }
- var i18n = new I18n({
- locale: locale,
- fallbackLocale: fallbackLocale,
- messages: messages,
- watcher: watcher });
- var _t = function t(key, values) {
- if (typeof getApp !== 'function') {
- // app view
- /* eslint-disable no-func-assign */
- _t = function t(key, values) {
- return i18n.t(key, values);
- };
- } else
- {
- var isWatchedAppLocale = false;
- _t = function t(key, values) {
- var appVm = getApp().$vm;
- // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
- // options: {
- // type: Array,
- // default () {
- // return [{
- // icon: 'shop',
- // text: t("uni-goods-nav.options.shop"),
- // }, {
- // icon: 'cart',
- // text: t("uni-goods-nav.options.cart")
- // }]
- // }
- // },
- if (appVm) {
- // 触发响应式
- appVm.$locale;
- if (!isWatchedAppLocale) {
- isWatchedAppLocale = true;
- watchAppLocale(appVm, i18n);
- }
- }
- return i18n.t(key, values);
- };
- }
- return _t(key, values);
- };
- return {
- i18n: i18n,
- f: function f(message, values, delimiters) {
- return i18n.f(message, values, delimiters);
- },
- t: function t(key, values) {
- return _t(key, values);
- },
- add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- return i18n.add(locale, message, override);
- },
- watch: function watch(fn) {
- return i18n.watchLocale(fn);
- },
- getLocale: function getLocale() {
- return i18n.getLocale();
- },
- setLocale: function setLocale(newLocale) {
- return i18n.setLocale(newLocale);
- } };
- }
- var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
- var formater;
- function hasI18nJson(jsonObj, delimiters) {
- if (!formater) {
- formater = new BaseFormatter();
- }
- return walkJsonObj(jsonObj, function (jsonObj, key) {
- var value = jsonObj[key];
- if (isString(value)) {
- if (isI18nStr(value, delimiters)) {
- return true;
- }
- } else
- {
- return hasI18nJson(value, delimiters);
- }
- });
- }
- function parseI18nJson(jsonObj, values, delimiters) {
- if (!formater) {
- formater = new BaseFormatter();
- }
- walkJsonObj(jsonObj, function (jsonObj, key) {
- var value = jsonObj[key];
- if (isString(value)) {
- if (isI18nStr(value, delimiters)) {
- jsonObj[key] = compileStr(value, values, delimiters);
- }
- } else
- {
- parseI18nJson(value, values, delimiters);
- }
- });
- return jsonObj;
- }
- function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
- if (!isI18nStr(jsonStr, delimiters)) {
- return jsonStr;
- }
- if (!formater) {
- formater = new BaseFormatter();
- }
- var localeValues = [];
- Object.keys(locales).forEach(function (name) {
- if (name !== locale) {
- localeValues.push({
- locale: name,
- values: locales[name] });
- }
- });
- localeValues.unshift({ locale: locale, values: locales[locale] });
- try {
- return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
- }
- catch (e) {}
- return jsonStr;
- }
- function isI18nStr(value, delimiters) {
- return value.indexOf(delimiters[0]) > -1;
- }
- function compileStr(value, values, delimiters) {
- return formater.interpolate(value, values, delimiters).join('');
- }
- function compileValue(jsonObj, key, localeValues, delimiters) {
- var value = jsonObj[key];
- if (isString(value)) {
- // 存在国际化
- if (isI18nStr(value, delimiters)) {
- jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
- if (localeValues.length > 1) {
- // 格式化国际化语言
- var valueLocales = jsonObj[key + 'Locales'] = {};
- localeValues.forEach(function (localValue) {
- valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
- });
- }
- }
- } else
- {
- compileJsonObj(value, localeValues, delimiters);
- }
- }
- function compileJsonObj(jsonObj, localeValues, delimiters) {
- walkJsonObj(jsonObj, function (jsonObj, key) {
- compileValue(jsonObj, key, localeValues, delimiters);
- });
- return jsonObj;
- }
- function walkJsonObj(jsonObj, walk) {
- if (isArray(jsonObj)) {
- for (var i = 0; i < jsonObj.length; i++) {
- if (walk(jsonObj, i)) {
- return true;
- }
- }
- } else
- if (isObject(jsonObj)) {
- for (var key in jsonObj) {
- if (walk(jsonObj, key)) {
- return true;
- }
- }
- }
- return false;
- }
- function resolveLocale(locales) {
- return function (locale) {
- if (!locale) {
- return locale;
- }
- locale = normalizeLocale(locale) || locale;
- return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
- };
- }
- function resolveLocaleChain(locale) {
- var chain = [];
- var tokens = locale.split('-');
- while (tokens.length) {
- chain.push(tokens.join('-'));
- tokens.pop();
- }
- return chain;
- }
- /* 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)))
- /***/ }),
- /***/ 304:
- /*!*************************************************************************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/uni_modules/uni-transition/components/uni-transition/createAnimation.js ***!
- \*************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.createAnimation = createAnimation;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;} // const defaultOption = {
- // duration: 300,
- // timingFunction: 'linear',
- // delay: 0,
- // transformOrigin: '50% 50% 0'
- // }
- var
- MPAnimation = /*#__PURE__*/function () {
- function MPAnimation(options, _this) {_classCallCheck(this, MPAnimation);
- this.options = options;
- this.animation = uni.createAnimation(options);
- this.currentStepAnimates = {};
- this.next = 0;
- this.$ = _this;
- }_createClass(MPAnimation, [{ key: "_nvuePushAnimates", value: function _nvuePushAnimates(
- type, args) {
- var aniObj = this.currentStepAnimates[this.next];
- var styles = {};
- if (!aniObj) {
- styles = {
- styles: {},
- config: {} };
- } else {
- styles = aniObj;
- }
- if (animateTypes1.includes(type)) {
- if (!styles.styles.transform) {
- styles.styles.transform = '';
- }
- var unit = '';
- if (type === 'rotate') {
- unit = 'deg';
- }
- styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
- } else {
- styles.styles[type] = "".concat(args);
- }
- this.currentStepAnimates[this.next] = styles;
- } }, { key: "_animateRun", value: function _animateRun()
- {var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var ref = this.$.$refs['ani'].ref;
- if (!ref) return;
- return new Promise(function (resolve, reject) {
- nvueAnimation.transition(ref, _objectSpread({
- styles: styles },
- config),
- function (res) {
- resolve();
- });
- });
- } }, { key: "_nvueNextAnimate", value: function _nvueNextAnimate(
- animates) {var _this2 = this;var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var fn = arguments.length > 2 ? arguments[2] : undefined;
- var obj = animates[step];
- if (obj) {var
- styles =
- obj.styles,config = obj.config;
- this._animateRun(styles, config).then(function () {
- step += 1;
- _this2._nvueNextAnimate(animates, step, fn);
- });
- } else {
- this.currentStepAnimates = {};
- typeof fn === 'function' && fn();
- this.isEnd = true;
- }
- } }, { key: "step", value: function step()
- {var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- this.animation.step(config);
- return this;
- } }, { key: "run", value: function run(
- fn) {
- this.$.animationData = this.animation.export();
- this.$.timer = setTimeout(function () {
- typeof fn === 'function' && fn();
- }, this.$.durationTime);
- } }]);return MPAnimation;}();
- var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d',
- 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY',
- 'translateZ'];
- var animateTypes2 = ['opacity', 'backgroundColor'];
- var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
- animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
- MPAnimation.prototype[type] = function () {var _this$animation;
- (_this$animation = this.animation)[type].apply(_this$animation, arguments);
- return this;
- };
- });
- function createAnimation(option, _this) {
- if (!_this) return;
- clearTimeout(_this.timer);
- return new MPAnimation(option, _this);
- }
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
- /***/ }),
- /***/ 310:
- /*!*****************************************************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/uni_modules/uni-icons/components/uni-icons/icons.js ***!
- \*****************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
- "pulldown": "\uE588",
- "refreshempty": "\uE461",
- "back": "\uE471",
- "forward": "\uE470",
- "more": "\uE507",
- "more-filled": "\uE537",
- "scan": "\uE612",
- "qq": "\uE264",
- "weibo": "\uE260",
- "weixin": "\uE261",
- "pengyouquan": "\uE262",
- "loop": "\uE565",
- "refresh": "\uE407",
- "refresh-filled": "\uE437",
- "arrowthindown": "\uE585",
- "arrowthinleft": "\uE586",
- "arrowthinright": "\uE587",
- "arrowthinup": "\uE584",
- "undo-filled": "\uE7D6",
- "undo": "\uE406",
- "redo": "\uE405",
- "redo-filled": "\uE7D9",
- "bars": "\uE563",
- "chatboxes": "\uE203",
- "camera": "\uE301",
- "chatboxes-filled": "\uE233",
- "camera-filled": "\uE7EF",
- "cart-filled": "\uE7F4",
- "cart": "\uE7F5",
- "checkbox-filled": "\uE442",
- "checkbox": "\uE7FA",
- "arrowleft": "\uE582",
- "arrowdown": "\uE581",
- "arrowright": "\uE583",
- "smallcircle-filled": "\uE801",
- "arrowup": "\uE580",
- "circle": "\uE411",
- "eye-filled": "\uE568",
- "eye-slash-filled": "\uE822",
- "eye-slash": "\uE823",
- "eye": "\uE824",
- "flag-filled": "\uE825",
- "flag": "\uE508",
- "gear-filled": "\uE532",
- "reload": "\uE462",
- "gear": "\uE502",
- "hand-thumbsdown-filled": "\uE83B",
- "hand-thumbsdown": "\uE83C",
- "hand-thumbsup-filled": "\uE83D",
- "heart-filled": "\uE83E",
- "hand-thumbsup": "\uE83F",
- "heart": "\uE840",
- "home": "\uE500",
- "info": "\uE504",
- "home-filled": "\uE530",
- "info-filled": "\uE534",
- "circle-filled": "\uE441",
- "chat-filled": "\uE847",
- "chat": "\uE263",
- "mail-open-filled": "\uE84D",
- "email-filled": "\uE231",
- "mail-open": "\uE84E",
- "email": "\uE201",
- "checkmarkempty": "\uE472",
- "list": "\uE562",
- "locked-filled": "\uE856",
- "locked": "\uE506",
- "map-filled": "\uE85C",
- "map-pin": "\uE85E",
- "map-pin-ellipse": "\uE864",
- "map": "\uE364",
- "minus-filled": "\uE440",
- "mic-filled": "\uE332",
- "minus": "\uE410",
- "micoff": "\uE360",
- "mic": "\uE302",
- "clear": "\uE434",
- "smallcircle": "\uE868",
- "close": "\uE404",
- "closeempty": "\uE460",
- "paperclip": "\uE567",
- "paperplane": "\uE503",
- "paperplane-filled": "\uE86E",
- "person-filled": "\uE131",
- "contact-filled": "\uE130",
- "person": "\uE101",
- "contact": "\uE100",
- "images-filled": "\uE87A",
- "phone": "\uE200",
- "images": "\uE87B",
- "image": "\uE363",
- "image-filled": "\uE877",
- "location-filled": "\uE333",
- "location": "\uE303",
- "plus-filled": "\uE439",
- "plus": "\uE409",
- "plusempty": "\uE468",
- "help-filled": "\uE535",
- "help": "\uE505",
- "navigate-filled": "\uE884",
- "navigate": "\uE501",
- "mic-slash-filled": "\uE892",
- "search": "\uE466",
- "settings": "\uE560",
- "sound": "\uE590",
- "sound-filled": "\uE8A1",
- "spinner-cycle": "\uE465",
- "download-filled": "\uE8A4",
- "personadd-filled": "\uE132",
- "videocam-filled": "\uE8AF",
- "personadd": "\uE102",
- "upload": "\uE402",
- "upload-filled": "\uE8B1",
- "starhalf": "\uE463",
- "star-filled": "\uE438",
- "star": "\uE408",
- "trash": "\uE401",
- "phone-filled": "\uE230",
- "compose": "\uE400",
- "videocam": "\uE300",
- "trash-filled": "\uE8DC",
- "download": "\uE403",
- "chatbubble-filled": "\uE232",
- "chatbubble": "\uE202",
- "cloud-download": "\uE8E4",
- "cloud-upload-filled": "\uE8E5",
- "cloud-upload": "\uE8E6",
- "cloud-download-filled": "\uE8E9",
- "headphones": "\uE8BF",
- "shop": "\uE609" };exports.default = _default;
- /***/ }),
- /***/ 318:
- /*!************************************************************************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
- \************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _calendar = _interopRequireDefault(__webpack_require__(/*! ./calendar.js */ 319));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
- Calendar = /*#__PURE__*/function () {
- function Calendar()
- {var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},date = _ref.date,selected = _ref.selected,startDate = _ref.startDate,endDate = _ref.endDate,range = _ref.range;_classCallCheck(this, Calendar);
- // 当前日期
- this.date = this.getDate(new Date()); // 当前初入日期
- // 打点信息
- this.selected = selected || [];
- // 范围开始
- this.startDate = startDate;
- // 范围结束
- this.endDate = endDate;
- this.range = range;
- // 多选状态
- this.cleanMultipleStatus();
- // 每周日期
- this.weeks = {};
- // this._getWeek(this.date.fullDate)
- // this.multipleStatus = multipleStatus
- this.lastHover = false;
- }
- /**
- * 设置日期
- * @param {Object} date
- */_createClass(Calendar, [{ key: "setDate", value: function setDate(
- date) {
- this.selectDate = this.getDate(date);
- this._getWeek(this.selectDate.fullDate);
- }
- /**
- * 清理多选状态
- */ }, { key: "cleanMultipleStatus", value: function cleanMultipleStatus()
- {
- this.multipleStatus = {
- before: '',
- after: '',
- data: [] };
- }
- /**
- * 重置开始日期
- */ }, { key: "resetSatrtDate", value: function resetSatrtDate(
- startDate) {
- // 范围开始
- this.startDate = startDate;
- }
- /**
- * 重置结束日期
- */ }, { key: "resetEndDate", value: function resetEndDate(
- endDate) {
- // 范围结束
- this.endDate = endDate;
- }
- /**
- * 获取任意时间
- */ }, { key: "getDate", value: function getDate(
- date) {var AddDayCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var str = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
- if (!date) {
- date = new Date();
- }
- if (typeof date !== 'object') {
- date = date.replace(/-/g, '/');
- }
- var dd = new Date(date);
- switch (str) {
- case 'day':
- dd.setDate(dd.getDate() + AddDayCount); // 获取AddDayCount天后的日期
- break;
- case 'month':
- if (dd.getDate() === 31) {
- dd.setDate(dd.getDate() + AddDayCount);
- } else {
- dd.setMonth(dd.getMonth() + AddDayCount); // 获取AddDayCount天后的日期
- }
- break;
- case 'year':
- dd.setFullYear(dd.getFullYear() + AddDayCount); // 获取AddDayCount天后的日期
- break;}
- var y = dd.getFullYear();
- var m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1; // 获取当前月份的日期,不足10补0
- var d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate(); // 获取当前几号,不足10补0
- return {
- fullDate: y + '-' + m + '-' + d,
- year: y,
- month: m,
- date: d,
- day: dd.getDay() };
- }
- /**
- * 获取上月剩余天数
- */ }, { key: "_getLastMonthDays", value: function _getLastMonthDays(
- firstDay, full) {
- var dateArr = [];
- for (var i = firstDay; i > 0; i--) {
- var beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate();
- dateArr.push({
- date: beforeDate,
- month: full.month - 1,
- lunar: this.getlunar(full.year, full.month - 1, beforeDate),
- disable: true });
- }
- return dateArr;
- }
- /**
- * 获取本月天数
- */ }, { key: "_currentMonthDys", value: function _currentMonthDys(
- dateData, full) {var _this = this;
- var dateArr = [];
- var fullDate = this.date.fullDate;var _loop = function _loop(
- i) {
- var isinfo = false;
- var nowDate = full.year + '-' + (full.month < 10 ?
- full.month : full.month) + '-' + (i < 10 ?
- '0' + i : i);
- // 是否今天
- var isDay = fullDate === nowDate;
- // 获取打点信息
- var info = _this.selected && _this.selected.find(function (item) {
- if (_this.dateEqual(nowDate, item.date)) {
- return item;
- }
- });
- // 日期禁用
- var disableBefore = true;
- var disableAfter = true;
- if (_this.startDate) {
- // let dateCompBefore = this.dateCompare(this.startDate, fullDate)
- // disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate)
- disableBefore = _this.dateCompare(_this.startDate, nowDate);
- }
- if (_this.endDate) {
- // let dateCompAfter = this.dateCompare(fullDate, this.endDate)
- // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate)
- disableAfter = _this.dateCompare(nowDate, _this.endDate);
- }
- var multiples = _this.multipleStatus.data;
- var checked = false;
- var multiplesStatus = -1;
- if (_this.range) {
- if (multiples) {
- multiplesStatus = multiples.findIndex(function (item) {
- return _this.dateEqual(item, nowDate);
- });
- }
- if (multiplesStatus !== -1) {
- checked = true;
- }
- }
- var data = {
- fullDate: nowDate,
- year: full.year,
- date: i,
- multiple: _this.range ? checked : false,
- beforeMultiple: _this.dateEqual(_this.multipleStatus.before, nowDate),
- afterMultiple: _this.dateEqual(_this.multipleStatus.after, nowDate),
- month: full.month,
- lunar: _this.getlunar(full.year, full.month, i),
- disable: !(disableBefore && disableAfter),
- isDay: isDay };
- if (info) {
- data.extraInfo = info;
- }
- dateArr.push(data);};for (var i = 1; i <= dateData; i++) {_loop(i);
- }
- return dateArr;
- }
- /**
- * 获取下月天数
- */ }, { key: "_getNextMonthDays", value: function _getNextMonthDays(
- surplus, full) {
- var dateArr = [];
- for (var i = 1; i < surplus + 1; i++) {
- dateArr.push({
- date: i,
- month: Number(full.month) + 1,
- lunar: this.getlunar(full.year, Number(full.month) + 1, i),
- disable: true });
- }
- return dateArr;
- }
- /**
- * 获取当前日期详情
- * @param {Object} date
- */ }, { key: "getInfo", value: function getInfo(
- date) {var _this2 = this;
- if (!date) {
- date = new Date();
- }
- var dateInfo = this.canlender.find(function (item) {return item.fullDate === _this2.getDate(date).fullDate;});
- return dateInfo;
- }
- /**
- * 比较时间大小
- */ }, { key: "dateCompare", value: function dateCompare(
- startDate, endDate) {
- // 计算截止时间
- startDate = new Date(startDate.replace('-', '/').replace('-', '/'));
- // 计算详细项的截止时间
- endDate = new Date(endDate.replace('-', '/').replace('-', '/'));
- if (startDate <= endDate) {
- return true;
- } else {
- return false;
- }
- }
- /**
- * 比较时间是否相等
- */ }, { key: "dateEqual", value: function dateEqual(
- before, after) {
- // 计算截止时间
- before = new Date(before.replace('-', '/').replace('-', '/'));
- // 计算详细项的截止时间
- after = new Date(after.replace('-', '/').replace('-', '/'));
- if (before.getTime() - after.getTime() === 0) {
- return true;
- } else {
- return false;
- }
- }
- /**
- * 获取日期范围内所有日期
- * @param {Object} begin
- * @param {Object} end
- */ }, { key: "geDateAll", value: function geDateAll(
- begin, end) {
- var arr = [];
- var ab = begin.split('-');
- var ae = end.split('-');
- var db = new Date();
- db.setFullYear(ab[0], ab[1] - 1, ab[2]);
- var de = new Date();
- de.setFullYear(ae[0], ae[1] - 1, ae[2]);
- var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
- var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
- for (var k = unixDb; k <= unixDe;) {
- k = k + 24 * 60 * 60 * 1000;
- arr.push(this.getDate(new Date(parseInt(k))).fullDate);
- }
- return arr;
- }
- /**
- * 计算阴历日期显示
- */ }, { key: "getlunar", value: function getlunar(
- year, month, date) {
- return _calendar.default.solar2lunar(year, month, date);
- }
- /**
- * 设置打点
- */ }, { key: "setSelectInfo", value: function setSelectInfo(
- data, value) {
- this.selected = value;
- this._getWeek(data);
- }
- /**
- * 获取多选状态
- */ }, { key: "setMultiple", value: function setMultiple(
- fullDate) {var _this$multipleStatus =
- this.multipleStatus,before = _this$multipleStatus.before,after = _this$multipleStatus.after;
- if (!this.range) return;
- if (before && after) {
- if (!this.lastHover) {
- this.lastHover = true;
- return;
- }
- this.multipleStatus.before = '';
- this.multipleStatus.after = '';
- this.multipleStatus.data = [];
- this.multipleStatus.fulldate = '';
- this.lastHover = false;
- } else {
- this.lastHover = false;
- if (!before) {
- this.multipleStatus.before = fullDate;
- } else {
- this.multipleStatus.after = fullDate;
- if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.
- after);
- } else {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.
- before);
- }
- }
- }
- this._getWeek(fullDate);
- }
- /**
- * 鼠标 hover 更新多选状态
- */ }, { key: "setHoverMultiple", value: function setHoverMultiple(
- fullDate) {var _this$multipleStatus2 =
- this.multipleStatus,before = _this$multipleStatus2.before,after = _this$multipleStatus2.after;
- if (!this.range) return;
- if (this.lastHover) return;
- if (!before) {
- this.multipleStatus.before = fullDate;
- } else {
- this.multipleStatus.after = fullDate;
- if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
- } else {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
- }
- }
- this._getWeek(fullDate);
- }
- /**
- * 更新默认值多选状态
- */ }, { key: "setDefaultMultiple", value: function setDefaultMultiple(
- before, after) {
- this.multipleStatus.before = before;
- this.multipleStatus.after = after;
- if (before && after) {
- if (this.dateCompare(before, after)) {
- this.multipleStatus.data = this.geDateAll(before, after);
- this._getWeek(after);
- } else {
- this.multipleStatus.data = this.geDateAll(after, before);
- this._getWeek(before);
- }
- }
- }
- /**
- * 获取每周数据
- * @param {Object} dateData
- */ }, { key: "_getWeek", value: function _getWeek(
- dateData) {var _this$getDate =
- this.getDate(dateData),fullDate = _this$getDate.fullDate,year = _this$getDate.year,month = _this$getDate.month,date = _this$getDate.date,day = _this$getDate.day;
- var firstDay = new Date(year, month - 1, 1).getDay();
- var currentDay = new Date(year, month, 0).getDate();
- var dates = {
- lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)), // 上个月末尾几天
- currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)), // 本月天数
- nextMonthDays: [], // 下个月开始几天
- weeks: [] };
- var canlender = [];
- var surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length);
- dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData));
- canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays);
- var weeks = {};
- // 拼接数组 上个月开始几天 + 本月天数+ 下个月开始几天
- for (var i = 0; i < canlender.length; i++) {
- if (i % 7 === 0) {
- weeks[parseInt(i / 7)] = new Array(7);
- }
- weeks[parseInt(i / 7)][i % 7] = canlender[i];
- }
- this.canlender = canlender;
- this.weeks = weeks;
- }
- //静态方法
- // static init(date) {
- // if (!this.instance) {
- // this.instance = new Calendar(date);
- // }
- // return this.instance;
- // }
- }]);return Calendar;}();var _default =
- Calendar;exports.default = _default;
- /***/ }),
- /***/ 319:
- /*!****************************************************************************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js ***!
- \****************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
- * @1900-2100区间内的公历、农历互转
- * @charset UTF-8
- * @github https://github.com/jjonline/calendar.js
- * @Author Jea杨(JJonline@JJonline.Cn)
- * @Time 2014-7-21
- * @Time 2016-8-13 Fixed 2033hex、Attribution Annals
- * @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
- * @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year
- * @Version 1.0.3
- * @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0]
- * @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0]
- */
- /* eslint-disable */
- var calendar = {
- /**
- * 农历1900-2100的润大小信息表
- * @Array Of Property
- * @return Hex
- */
- lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909
- 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919
- 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929
- 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939
- 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949
- 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959
- 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969
- 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979
- 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989
- 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999
- 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009
- 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019
- 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029
- 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039
- 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049
- /** Add By JJonline@JJonline.Cn**/
- 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059
- 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069
- 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079
- 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089
- 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099
- 0x0d520], // 2100
- /**
- * 公历每个月份的天数普通表
- * @Array Of Property
- * @return Number
- */
- solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- /**
- * 天干地支之天干速查表
- * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"]
- * @return Cn string
- */
- Gan: ["\u7532", "\u4E59", "\u4E19", "\u4E01", "\u620A", "\u5DF1", "\u5E9A", "\u8F9B", "\u58EC", "\u7678"],
- /**
- * 天干地支之地支速查表
- * @Array Of Property
- * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"]
- * @return Cn string
- */
- Zhi: ["\u5B50", "\u4E11", "\u5BC5", "\u536F", "\u8FB0", "\u5DF3", "\u5348", "\u672A", "\u7533", "\u9149", "\u620C", "\u4EA5"],
- /**
- * 天干地支之地支速查表<=>生肖
- * @Array Of Property
- * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"]
- * @return Cn string
- */
- Animals: ["\u9F20", "\u725B", "\u864E", "\u5154", "\u9F99", "\u86C7", "\u9A6C", "\u7F8A", "\u7334", "\u9E21", "\u72D7", "\u732A"],
- /**
- * 24节气速查表
- * @Array Of Property
- * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"]
- * @return Cn string
- */
- solarTerm: ["\u5C0F\u5BD2", "\u5927\u5BD2", "\u7ACB\u6625", "\u96E8\u6C34", "\u60CA\u86F0", "\u6625\u5206", "\u6E05\u660E", "\u8C37\u96E8", "\u7ACB\u590F", "\u5C0F\u6EE1", "\u8292\u79CD", "\u590F\u81F3", "\u5C0F\u6691", "\u5927\u6691", "\u7ACB\u79CB", "\u5904\u6691", "\u767D\u9732", "\u79CB\u5206", "\u5BD2\u9732", "\u971C\u964D", "\u7ACB\u51AC", "\u5C0F\u96EA", "\u5927\u96EA", "\u51AC\u81F3"],
- /**
- * 1900-2100各年的24节气日期速查表
- * @Array Of Property
- * @return 0x string For splice
- */
- sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f',
- '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f',
- 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f',
- '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa',
- '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f',
- '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f',
- '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f',
- '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
- '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722',
- '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
- '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2',
- '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd',
- '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5',
- '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722',
- '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35',
- '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd',
- '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35',
- '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5',
- '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35',
- '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35',
- '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'],
- /**
- * 数字转中文速查表
- * @Array Of Property
- * @trans ['日','一','二','三','四','五','六','七','八','九','十']
- * @return Cn string
- */
- nStr1: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341"],
- /**
- * 日期转农历称呼速查表
- * @Array Of Property
- * @trans ['初','十','廿','卅']
- * @return Cn string
- */
- nStr2: ["\u521D", "\u5341", "\u5EFF", "\u5345"],
- /**
- * 月份转农历称呼速查表
- * @Array Of Property
- * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊']
- * @return Cn string
- */
- nStr3: ["\u6B63", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341", "\u51AC", "\u814A"],
- /**
- * 返回农历y年一整年的总天数
- * @param lunar Year
- * @return Number
- * @eg:var count = calendar.lYearDays(1987) ;//count=387
- */
- lYearDays: function lYearDays(y) {
- var i;var sum = 348;
- for (i = 0x8000; i > 0x8; i >>= 1) {sum += this.lunarInfo[y - 1900] & i ? 1 : 0;}
- return sum + this.leapDays(y);
- },
- /**
- * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0
- * @param lunar Year
- * @return Number (0-12)
- * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
- */
- leapMonth: function leapMonth(y) {// 闰字编码 \u95f0
- return this.lunarInfo[y - 1900] & 0xf;
- },
- /**
- * 返回农历y年闰月的天数 若该年没有闰月则返回0
- * @param lunar Year
- * @return Number (0、29、30)
- * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
- */
- leapDays: function leapDays(y) {
- if (this.leapMonth(y)) {
- return this.lunarInfo[y - 1900] & 0x10000 ? 30 : 29;
- }
- return 0;
- },
- /**
- * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法
- * @param lunar Year
- * @return Number (-1、29、30)
- * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
- */
- monthDays: function monthDays(y, m) {
- if (m > 12 || m < 1) {return -1;} // 月份参数从1至12,参数错误返回-1
- return this.lunarInfo[y - 1900] & 0x10000 >> m ? 30 : 29;
- },
- /**
- * 返回公历(!)y年m月的天数
- * @param solar Year
- * @return Number (-1、28、29、30、31)
- * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
- */
- solarDays: function solarDays(y, m) {
- if (m > 12 || m < 1) {return -1;} // 若参数错误 返回-1
- var ms = m - 1;
- if (ms == 1) {// 2月份的闰平规律测算后确认返回28或29
- return y % 4 == 0 && y % 100 != 0 || y % 400 == 0 ? 29 : 28;
- } else {
- return this.solarMonth[ms];
- }
- },
- /**
- * 农历年份转换为干支纪年
- * @param lYear 农历年的年份数
- * @return Cn string
- */
- toGanZhiYear: function toGanZhiYear(lYear) {
- var ganKey = (lYear - 3) % 10;
- var zhiKey = (lYear - 3) % 12;
- if (ganKey == 0) ganKey = 10; // 如果余数为0则为最后一个天干
- if (zhiKey == 0) zhiKey = 12; // 如果余数为0则为最后一个地支
- return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1];
- },
- /**
- * 公历月、日判断所属星座
- * @param cMonth [description]
- * @param cDay [description]
- * @return Cn string
- */
- toAstro: function toAstro(cMonth, cDay) {
- var s = "\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF";
- var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22];
- return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + "\u5EA7"; // 座
- },
- /**
- * 传入offset偏移量返回干支
- * @param offset 相对甲子的偏移量
- * @return Cn string
- */
- toGanZhi: function toGanZhi(offset) {
- return this.Gan[offset % 10] + this.Zhi[offset % 12];
- },
- /**
- * 传入公历(!)y年获得该年第n个节气的公历日期
- * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起
- * @return day Number
- * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春
- */
- getTerm: function getTerm(y, n) {
- if (y < 1900 || y > 2100) {return -1;}
- if (n < 1 || n > 24) {return -1;}
- var _table = this.sTermInfo[y - 1900];
- var _info = [
- parseInt('0x' + _table.substr(0, 5)).toString(),
- parseInt('0x' + _table.substr(5, 5)).toString(),
- parseInt('0x' + _table.substr(10, 5)).toString(),
- parseInt('0x' + _table.substr(15, 5)).toString(),
- parseInt('0x' + _table.substr(20, 5)).toString(),
- parseInt('0x' + _table.substr(25, 5)).toString()];
- var _calday = [
- _info[0].substr(0, 1),
- _info[0].substr(1, 2),
- _info[0].substr(3, 1),
- _info[0].substr(4, 2),
- _info[1].substr(0, 1),
- _info[1].substr(1, 2),
- _info[1].substr(3, 1),
- _info[1].substr(4, 2),
- _info[2].substr(0, 1),
- _info[2].substr(1, 2),
- _info[2].substr(3, 1),
- _info[2].substr(4, 2),
- _info[3].substr(0, 1),
- _info[3].substr(1, 2),
- _info[3].substr(3, 1),
- _info[3].substr(4, 2),
- _info[4].substr(0, 1),
- _info[4].substr(1, 2),
- _info[4].substr(3, 1),
- _info[4].substr(4, 2),
- _info[5].substr(0, 1),
- _info[5].substr(1, 2),
- _info[5].substr(3, 1),
- _info[5].substr(4, 2)];
- return parseInt(_calday[n - 1]);
- },
- /**
- * 传入农历数字月份返回汉语通俗表示法
- * @param lunar month
- * @return Cn string
- * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月'
- */
- toChinaMonth: function toChinaMonth(m) {// 月 => \u6708
- if (m > 12 || m < 1) {return -1;} // 若参数错误 返回-1
- var s = this.nStr3[m - 1];
- s += "\u6708"; // 加上月字
- return s;
- },
- /**
- * 传入农历日期数字返回汉字表示法
- * @param lunar day
- * @return Cn string
- * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一'
- */
- toChinaDay: function toChinaDay(d) {// 日 => \u65e5
- var s;
- switch (d) {
- case 10:
- s = "\u521D\u5341";break;
- case 20:
- s = "\u4E8C\u5341";break;
- break;
- case 30:
- s = "\u4E09\u5341";break;
- break;
- default:
- s = this.nStr2[Math.floor(d / 10)];
- s += this.nStr1[d % 10];}
- return s;
- },
- /**
- * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春”
- * @param y year
- * @return Cn string
- * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔'
- */
- getAnimal: function getAnimal(y) {
- return this.Animals[(y - 4) % 12];
- },
- /**
- * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON
- * @param y solar year
- * @param m solar month
- * @param d solar day
- * @return JSON object
- * @eg:console.log(calendar.solar2lunar(1987,11,01));
- */
- solar2lunar: function solar2lunar(y, m, d) {// 参数区间1900.1.31~2100.12.31
- // 年份限定、上限
- if (y < 1900 || y > 2100) {
- return -1; // undefined转换为数字变为NaN
- }
- // 公历传参最下限
- if (y == 1900 && m == 1 && d < 31) {
- return -1;
- }
- // 未传参 获得当天
- if (!y) {
- var objDate = new Date();
- } else {
- var objDate = new Date(y, parseInt(m) - 1, d);
- }
- var i;var leap = 0;var temp = 0;
- // 修正ymd参数
- var y = objDate.getFullYear();
- var m = objDate.getMonth() + 1;
- var d = objDate.getDate();
- var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000;
- for (i = 1900; i < 2101 && offset > 0; i++) {
- temp = this.lYearDays(i);
- offset -= temp;
- }
- if (offset < 0) {
- offset += temp;i--;
- }
- // 是否今天
- var isTodayObj = new Date();
- var isToday = false;
- if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) {
- isToday = true;
- }
- // 星期几
- var nWeek = objDate.getDay();
- var cWeek = this.nStr1[nWeek];
- // 数字表示周几顺应天朝周一开始的惯例
- if (nWeek == 0) {
- nWeek = 7;
- }
- // 农历年
- var year = i;
- var leap = this.leapMonth(i); // 闰哪个月
- var isLeap = false;
- // 效验闰月
- for (i = 1; i < 13 && offset > 0; i++) {
- // 闰月
- if (leap > 0 && i == leap + 1 && isLeap == false) {
- --i;
- isLeap = true;temp = this.leapDays(year); // 计算农历闰月天数
- } else {
- temp = this.monthDays(year, i); // 计算农历普通月天数
- }
- // 解除闰月
- if (isLeap == true && i == leap + 1) {isLeap = false;}
- offset -= temp;
- }
- // 闰月导致数组下标重叠取反
- if (offset == 0 && leap > 0 && i == leap + 1) {
- if (isLeap) {
- isLeap = false;
- } else {
- isLeap = true;--i;
- }
- }
- if (offset < 0) {
- offset += temp;--i;
- }
- // 农历月
- var month = i;
- // 农历日
- var day = offset + 1;
- // 天干地支处理
- var sm = m - 1;
- var gzY = this.toGanZhiYear(year);
- // 当月的两个节气
- // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year`
- var firstNode = this.getTerm(y, m * 2 - 1); // 返回当月「节」为几日开始
- var secondNode = this.getTerm(y, m * 2); // 返回当月「节」为几日开始
- // 依据12节气修正干支月
- var gzM = this.toGanZhi((y - 1900) * 12 + m + 11);
- if (d >= firstNode) {
- gzM = this.toGanZhi((y - 1900) * 12 + m + 12);
- }
- // 传入的日期的节气与否
- var isTerm = false;
- var Term = null;
- if (firstNode == d) {
- isTerm = true;
- Term = this.solarTerm[m * 2 - 2];
- }
- if (secondNode == d) {
- isTerm = true;
- Term = this.solarTerm[m * 2 - 1];
- }
- // 日柱 当月一日与 1900/1/1 相差天数
- var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10;
- var gzD = this.toGanZhi(dayCyclical + d - 1);
- // 该日期所属的星座
- var astro = this.toAstro(m, d);
- return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? "\u95F0" : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': "\u661F\u671F" + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro };
- },
- /**
- * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON
- * @param y lunar year
- * @param m lunar month
- * @param d lunar day
- * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可]
- * @return JSON object
- * @eg:console.log(calendar.lunar2solar(1987,9,10));
- */
- lunar2solar: function lunar2solar(y, m, d, isLeapMonth) {// 参数区间1900.1.31~2100.12.1
- var isLeapMonth = !!isLeapMonth;
- var leapOffset = 0;
- var leapMonth = this.leapMonth(y);
- var leapDay = this.leapDays(y);
- if (isLeapMonth && leapMonth != m) {return -1;} // 传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同
- if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) {return -1;} // 超出了最大极限值
- var day = this.monthDays(y, m);
- var _day = day;
- // bugFix 2016-9-25
- // if month is leap, _day use leapDays method
- if (isLeapMonth) {
- _day = this.leapDays(y, m);
- }
- if (y < 1900 || y > 2100 || d > _day) {return -1;} // 参数合法性效验
- // 计算农历的时间差
- var offset = 0;
- for (var i = 1900; i < y; i++) {
- offset += this.lYearDays(i);
- }
- var leap = 0;var isAdd = false;
- for (var i = 1; i < m; i++) {
- leap = this.leapMonth(y);
- if (!isAdd) {// 处理闰月
- if (leap <= i && leap > 0) {
- offset += this.leapDays(y);isAdd = true;
- }
- }
- offset += this.monthDays(y, i);
- }
- // 转换闰月农历 需补充该年闰月的前一个月的时差
- if (isLeapMonth) {offset += day;}
- // 1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点)
- var stmap = Date.UTC(1900, 1, 30, 0, 0, 0);
- var calObj = new Date((offset + d - 31) * 86400000 + stmap);
- var cY = calObj.getUTCFullYear();
- var cM = calObj.getUTCMonth() + 1;
- var cD = calObj.getUTCDate();
- return this.solar2lunar(cY, cM, cD);
- } };var _default =
- calendar;exports.default = _default;
- /***/ }),
- /***/ 4:
- /*!******************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
- \******************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* WEBPACK VAR INJECTION */(function(global) {/*!
- * Vue.js v2.6.11
- * (c) 2014-2022 Evan You
- * Released under the MIT License.
- */
- /* */
- var emptyObject = Object.freeze({});
- // These helpers produce better VM code in JS engines due to their
- // explicitness and function inlining.
- function isUndef (v) {
- return v === undefined || v === null
- }
- function isDef (v) {
- return v !== undefined && v !== null
- }
- function isTrue (v) {
- return v === true
- }
- function isFalse (v) {
- return v === false
- }
- /**
- * Check if value is primitive.
- */
- function isPrimitive (value) {
- return (
- typeof value === 'string' ||
- typeof value === 'number' ||
- // $flow-disable-line
- typeof value === 'symbol' ||
- typeof value === 'boolean'
- )
- }
- /**
- * Quick object check - this is primarily used to tell
- * Objects from primitive values when we know the value
- * is a JSON-compliant type.
- */
- function isObject (obj) {
- return obj !== null && typeof obj === 'object'
- }
- /**
- * Get the raw type string of a value, e.g., [object Object].
- */
- var _toString = Object.prototype.toString;
- function toRawType (value) {
- return _toString.call(value).slice(8, -1)
- }
- /**
- * Strict object type check. Only returns true
- * for plain JavaScript objects.
- */
- function isPlainObject (obj) {
- return _toString.call(obj) === '[object Object]'
- }
- function isRegExp (v) {
- return _toString.call(v) === '[object RegExp]'
- }
- /**
- * Check if val is a valid array index.
- */
- function isValidArrayIndex (val) {
- var n = parseFloat(String(val));
- return n >= 0 && Math.floor(n) === n && isFinite(val)
- }
- function isPromise (val) {
- return (
- isDef(val) &&
- typeof val.then === 'function' &&
- typeof val.catch === 'function'
- )
- }
- /**
- * Convert a value to a string that is actually rendered.
- */
- function toString (val) {
- return val == null
- ? ''
- : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
- ? JSON.stringify(val, null, 2)
- : String(val)
- }
- /**
- * Convert an input value to a number for persistence.
- * If the conversion fails, return original string.
- */
- function toNumber (val) {
- var n = parseFloat(val);
- return isNaN(n) ? val : n
- }
- /**
- * Make a map and return a function for checking if a key
- * is in that map.
- */
- function makeMap (
- str,
- expectsLowerCase
- ) {
- var map = Object.create(null);
- var list = str.split(',');
- for (var i = 0; i < list.length; i++) {
- map[list[i]] = true;
- }
- return expectsLowerCase
- ? function (val) { return map[val.toLowerCase()]; }
- : function (val) { return map[val]; }
- }
- /**
- * Check if a tag is a built-in tag.
- */
- var isBuiltInTag = makeMap('slot,component', true);
- /**
- * Check if an attribute is a reserved attribute.
- */
- var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
- /**
- * Remove an item from an array.
- */
- function remove (arr, item) {
- if (arr.length) {
- var index = arr.indexOf(item);
- if (index > -1) {
- return arr.splice(index, 1)
- }
- }
- }
- /**
- * Check whether an object has the property.
- */
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- function hasOwn (obj, key) {
- return hasOwnProperty.call(obj, key)
- }
- /**
- * Create a cached version of a pure function.
- */
- function cached (fn) {
- var cache = Object.create(null);
- return (function cachedFn (str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str))
- })
- }
- /**
- * Camelize a hyphen-delimited string.
- */
- var camelizeRE = /-(\w)/g;
- var camelize = cached(function (str) {
- return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
- });
- /**
- * Capitalize a string.
- */
- var capitalize = cached(function (str) {
- return str.charAt(0).toUpperCase() + str.slice(1)
- });
- /**
- * Hyphenate a camelCase string.
- */
- var hyphenateRE = /\B([A-Z])/g;
- var hyphenate = cached(function (str) {
- return str.replace(hyphenateRE, '-$1').toLowerCase()
- });
- /**
- * Simple bind polyfill for environments that do not support it,
- * e.g., PhantomJS 1.x. Technically, we don't need this anymore
- * since native bind is now performant enough in most browsers.
- * But removing it would mean breaking code that was able to run in
- * PhantomJS 1.x, so this must be kept for backward compatibility.
- */
- /* istanbul ignore next */
- function polyfillBind (fn, ctx) {
- function boundFn (a) {
- var l = arguments.length;
- return l
- ? l > 1
- ? fn.apply(ctx, arguments)
- : fn.call(ctx, a)
- : fn.call(ctx)
- }
- boundFn._length = fn.length;
- return boundFn
- }
- function nativeBind (fn, ctx) {
- return fn.bind(ctx)
- }
- var bind = Function.prototype.bind
- ? nativeBind
- : polyfillBind;
- /**
- * Convert an Array-like object to a real Array.
- */
- function toArray (list, start) {
- start = start || 0;
- var i = list.length - start;
- var ret = new Array(i);
- while (i--) {
- ret[i] = list[i + start];
- }
- return ret
- }
- /**
- * Mix properties into target object.
- */
- function extend (to, _from) {
- for (var key in _from) {
- to[key] = _from[key];
- }
- return to
- }
- /**
- * Merge an Array of Objects into a single Object.
- */
- function toObject (arr) {
- var res = {};
- for (var i = 0; i < arr.length; i++) {
- if (arr[i]) {
- extend(res, arr[i]);
- }
- }
- return res
- }
- /* eslint-disable no-unused-vars */
- /**
- * Perform no operation.
- * Stubbing args to make Flow happy without leaving useless transpiled code
- * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
- */
- function noop (a, b, c) {}
- /**
- * Always return false.
- */
- var no = function (a, b, c) { return false; };
- /* eslint-enable no-unused-vars */
- /**
- * Return the same value.
- */
- var identity = function (_) { return _; };
- /**
- * Check if two values are loosely equal - that is,
- * if they are plain objects, do they have the same shape?
- */
- function looseEqual (a, b) {
- if (a === b) { return true }
- var isObjectA = isObject(a);
- var isObjectB = isObject(b);
- if (isObjectA && isObjectB) {
- try {
- var isArrayA = Array.isArray(a);
- var isArrayB = Array.isArray(b);
- if (isArrayA && isArrayB) {
- return a.length === b.length && a.every(function (e, i) {
- return looseEqual(e, b[i])
- })
- } else if (a instanceof Date && b instanceof Date) {
- return a.getTime() === b.getTime()
- } else if (!isArrayA && !isArrayB) {
- var keysA = Object.keys(a);
- var keysB = Object.keys(b);
- return keysA.length === keysB.length && keysA.every(function (key) {
- return looseEqual(a[key], b[key])
- })
- } else {
- /* istanbul ignore next */
- return false
- }
- } catch (e) {
- /* istanbul ignore next */
- return false
- }
- } else if (!isObjectA && !isObjectB) {
- return String(a) === String(b)
- } else {
- return false
- }
- }
- /**
- * Return the first index at which a loosely equal value can be
- * found in the array (if value is a plain object, the array must
- * contain an object of the same shape), or -1 if it is not present.
- */
- function looseIndexOf (arr, val) {
- for (var i = 0; i < arr.length; i++) {
- if (looseEqual(arr[i], val)) { return i }
- }
- return -1
- }
- /**
- * Ensure a function is called only once.
- */
- function once (fn) {
- var called = false;
- return function () {
- if (!called) {
- called = true;
- fn.apply(this, arguments);
- }
- }
- }
- var ASSET_TYPES = [
- 'component',
- 'directive',
- 'filter'
- ];
- var LIFECYCLE_HOOKS = [
- 'beforeCreate',
- 'created',
- 'beforeMount',
- 'mounted',
- 'beforeUpdate',
- 'updated',
- 'beforeDestroy',
- 'destroyed',
- 'activated',
- 'deactivated',
- 'errorCaptured',
- 'serverPrefetch'
- ];
- /* */
- var config = ({
- /**
- * Option merge strategies (used in core/util/options)
- */
- // $flow-disable-line
- optionMergeStrategies: Object.create(null),
- /**
- * Whether to suppress warnings.
- */
- silent: false,
- /**
- * Show production mode tip message on boot?
- */
- productionTip: "development" !== 'production',
- /**
- * Whether to enable devtools
- */
- devtools: "development" !== 'production',
- /**
- * Whether to record perf
- */
- performance: false,
- /**
- * Error handler for watcher errors
- */
- errorHandler: null,
- /**
- * Warn handler for watcher warns
- */
- warnHandler: null,
- /**
- * Ignore certain custom elements
- */
- ignoredElements: [],
- /**
- * Custom user key aliases for v-on
- */
- // $flow-disable-line
- keyCodes: Object.create(null),
- /**
- * Check if a tag is reserved so that it cannot be registered as a
- * component. This is platform-dependent and may be overwritten.
- */
- isReservedTag: no,
- /**
- * Check if an attribute is reserved so that it cannot be used as a component
- * prop. This is platform-dependent and may be overwritten.
- */
- isReservedAttr: no,
- /**
- * Check if a tag is an unknown element.
- * Platform-dependent.
- */
- isUnknownElement: no,
- /**
- * Get the namespace of an element
- */
- getTagNamespace: noop,
- /**
- * Parse the real tag name for the specific platform.
- */
- parsePlatformTagName: identity,
- /**
- * Check if an attribute must be bound using property, e.g. value
- * Platform-dependent.
- */
- mustUseProp: no,
- /**
- * Perform updates asynchronously. Intended to be used by Vue Test Utils
- * This will significantly reduce performance if set to false.
- */
- async: true,
- /**
- * Exposed for legacy reasons
- */
- _lifecycleHooks: LIFECYCLE_HOOKS
- });
- /* */
- /**
- * unicode letters used for parsing html tags, component names and property paths.
- * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
- * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
- */
- 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/;
- /**
- * Check if a string starts with $ or _
- */
- function isReserved (str) {
- var c = (str + '').charCodeAt(0);
- return c === 0x24 || c === 0x5F
- }
- /**
- * Define a property.
- */
- function def (obj, key, val, enumerable) {
- Object.defineProperty(obj, key, {
- value: val,
- enumerable: !!enumerable,
- writable: true,
- configurable: true
- });
- }
- /**
- * Parse simple path.
- */
- var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
- function parsePath (path) {
- if (bailRE.test(path)) {
- return
- }
- var segments = path.split('.');
- return function (obj) {
- for (var i = 0; i < segments.length; i++) {
- if (!obj) { return }
- obj = obj[segments[i]];
- }
- return obj
- }
- }
- /* */
- // can we use __proto__?
- var hasProto = '__proto__' in {};
- // Browser environment sniffing
- var inBrowser = typeof window !== 'undefined';
- var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
- var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
- var UA = inBrowser && window.navigator.userAgent.toLowerCase();
- var isIE = UA && /msie|trident/.test(UA);
- var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
- var isEdge = UA && UA.indexOf('edge/') > 0;
- var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
- var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
- var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
- var isPhantomJS = UA && /phantomjs/.test(UA);
- var isFF = UA && UA.match(/firefox\/(\d+)/);
- // Firefox has a "watch" function on Object.prototype...
- var nativeWatch = ({}).watch;
- if (inBrowser) {
- try {
- var opts = {};
- Object.defineProperty(opts, 'passive', ({
- get: function get () {
- }
- })); // https://github.com/facebook/flow/issues/285
- window.addEventListener('test-passive', null, opts);
- } catch (e) {}
- }
- // this needs to be lazy-evaled because vue may be required before
- // vue-server-renderer can set VUE_ENV
- var _isServer;
- var isServerRendering = function () {
- if (_isServer === undefined) {
- /* istanbul ignore if */
- if (!inBrowser && !inWeex && typeof global !== 'undefined') {
- // detect presence of vue-server-renderer and avoid
- // Webpack shimming the process
- _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
- } else {
- _isServer = false;
- }
- }
- return _isServer
- };
- // detect devtools
- var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
- /* istanbul ignore next */
- function isNative (Ctor) {
- return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
- }
- var hasSymbol =
- typeof Symbol !== 'undefined' && isNative(Symbol) &&
- typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
- var _Set;
- /* istanbul ignore if */ // $flow-disable-line
- if (typeof Set !== 'undefined' && isNative(Set)) {
- // use native Set when available.
- _Set = Set;
- } else {
- // a non-standard Set polyfill that only works with primitive keys.
- _Set = /*@__PURE__*/(function () {
- function Set () {
- this.set = Object.create(null);
- }
- Set.prototype.has = function has (key) {
- return this.set[key] === true
- };
- Set.prototype.add = function add (key) {
- this.set[key] = true;
- };
- Set.prototype.clear = function clear () {
- this.set = Object.create(null);
- };
- return Set;
- }());
- }
- /* */
- var warn = noop;
- var tip = noop;
- var generateComponentTrace = (noop); // work around flow check
- var formatComponentName = (noop);
- if (true) {
- var hasConsole = typeof console !== 'undefined';
- var classifyRE = /(?:^|[-_])(\w)/g;
- var classify = function (str) { return str
- .replace(classifyRE, function (c) { return c.toUpperCase(); })
- .replace(/[-_]/g, ''); };
- warn = function (msg, vm) {
- var trace = vm ? generateComponentTrace(vm) : '';
- if (config.warnHandler) {
- config.warnHandler.call(null, msg, vm, trace);
- } else if (hasConsole && (!config.silent)) {
- console.error(("[Vue warn]: " + msg + trace));
- }
- };
- tip = function (msg, vm) {
- if (hasConsole && (!config.silent)) {
- console.warn("[Vue tip]: " + msg + (
- vm ? generateComponentTrace(vm) : ''
- ));
- }
- };
- formatComponentName = function (vm, includeFile) {
- if (vm.$root === vm) {
- if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
- return ('') + vm.$options.__file
- }
- return '<Root>'
- }
- var options = typeof vm === 'function' && vm.cid != null
- ? vm.options
- : vm._isVue
- ? vm.$options || vm.constructor.options
- : vm;
- var name = options.name || options._componentTag;
- var file = options.__file;
- if (!name && file) {
- var match = file.match(/([^/\\]+)\.vue$/);
- name = match && match[1];
- }
- return (
- (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
- (file && includeFile !== false ? (" at " + file) : '')
- )
- };
- var repeat = function (str, n) {
- var res = '';
- while (n) {
- if (n % 2 === 1) { res += str; }
- if (n > 1) { str += str; }
- n >>= 1;
- }
- return res
- };
- generateComponentTrace = function (vm) {
- if (vm._isVue && vm.$parent) {
- var tree = [];
- var currentRecursiveSequence = 0;
- while (vm && vm.$options.name !== 'PageBody') {
- if (tree.length > 0) {
- var last = tree[tree.length - 1];
- if (last.constructor === vm.constructor) {
- currentRecursiveSequence++;
- vm = vm.$parent;
- continue
- } else if (currentRecursiveSequence > 0) {
- tree[tree.length - 1] = [last, currentRecursiveSequence];
- currentRecursiveSequence = 0;
- }
- }
- !vm.$options.isReserved && tree.push(vm);
- vm = vm.$parent;
- }
- return '\n\nfound in\n\n' + tree
- .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
- ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
- : formatComponentName(vm))); })
- .join('\n')
- } else {
- return ("\n\n(found in " + (formatComponentName(vm)) + ")")
- }
- };
- }
- /* */
- var uid = 0;
- /**
- * A dep is an observable that can have multiple
- * directives subscribing to it.
- */
- var Dep = function Dep () {
- this.id = uid++;
- this.subs = [];
- };
- Dep.prototype.addSub = function addSub (sub) {
- this.subs.push(sub);
- };
- Dep.prototype.removeSub = function removeSub (sub) {
- remove(this.subs, sub);
- };
- Dep.prototype.depend = function depend () {
- if (Dep.SharedObject.target) {
- Dep.SharedObject.target.addDep(this);
- }
- };
- Dep.prototype.notify = function notify () {
- // stabilize the subscriber list first
- var subs = this.subs.slice();
- if ( true && !config.async) {
- // subs aren't sorted in scheduler if not running async
- // we need to sort them now to make sure they fire in correct
- // order
- subs.sort(function (a, b) { return a.id - b.id; });
- }
- for (var i = 0, l = subs.length; i < l; i++) {
- subs[i].update();
- }
- };
- // The current target watcher being evaluated.
- // This is globally unique because only one watcher
- // can be evaluated at a time.
- // fixed by xxxxxx (nvue shared vuex)
- /* eslint-disable no-undef */
- Dep.SharedObject = {};
- Dep.SharedObject.target = null;
- Dep.SharedObject.targetStack = [];
- function pushTarget (target) {
- Dep.SharedObject.targetStack.push(target);
- Dep.SharedObject.target = target;
- Dep.target = target;
- }
- function popTarget () {
- Dep.SharedObject.targetStack.pop();
- Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
- Dep.target = Dep.SharedObject.target;
- }
- /* */
- var VNode = function VNode (
- tag,
- data,
- children,
- text,
- elm,
- context,
- componentOptions,
- asyncFactory
- ) {
- this.tag = tag;
- this.data = data;
- this.children = children;
- this.text = text;
- this.elm = elm;
- this.ns = undefined;
- this.context = context;
- this.fnContext = undefined;
- this.fnOptions = undefined;
- this.fnScopeId = undefined;
- this.key = data && data.key;
- this.componentOptions = componentOptions;
- this.componentInstance = undefined;
- this.parent = undefined;
- this.raw = false;
- this.isStatic = false;
- this.isRootInsert = true;
- this.isComment = false;
- this.isCloned = false;
- this.isOnce = false;
- this.asyncFactory = asyncFactory;
- this.asyncMeta = undefined;
- this.isAsyncPlaceholder = false;
- };
- var prototypeAccessors = { child: { configurable: true } };
- // DEPRECATED: alias for componentInstance for backwards compat.
- /* istanbul ignore next */
- prototypeAccessors.child.get = function () {
- return this.componentInstance
- };
- Object.defineProperties( VNode.prototype, prototypeAccessors );
- var createEmptyVNode = function (text) {
- if ( text === void 0 ) text = '';
- var node = new VNode();
- node.text = text;
- node.isComment = true;
- return node
- };
- function createTextVNode (val) {
- return new VNode(undefined, undefined, undefined, String(val))
- }
- // optimized shallow clone
- // used for static nodes and slot nodes because they may be reused across
- // multiple renders, cloning them avoids errors when DOM manipulations rely
- // on their elm reference.
- function cloneVNode (vnode) {
- var cloned = new VNode(
- vnode.tag,
- vnode.data,
- // #7975
- // clone children array to avoid mutating original in case of cloning
- // a child.
- vnode.children && vnode.children.slice(),
- vnode.text,
- vnode.elm,
- vnode.context,
- vnode.componentOptions,
- vnode.asyncFactory
- );
- cloned.ns = vnode.ns;
- cloned.isStatic = vnode.isStatic;
- cloned.key = vnode.key;
- cloned.isComment = vnode.isComment;
- cloned.fnContext = vnode.fnContext;
- cloned.fnOptions = vnode.fnOptions;
- cloned.fnScopeId = vnode.fnScopeId;
- cloned.asyncMeta = vnode.asyncMeta;
- cloned.isCloned = true;
- return cloned
- }
- /*
- * not type checking this file because flow doesn't play well with
- * dynamically accessing methods on Array prototype
- */
- var arrayProto = Array.prototype;
- var arrayMethods = Object.create(arrayProto);
- var methodsToPatch = [
- 'push',
- 'pop',
- 'shift',
- 'unshift',
- 'splice',
- 'sort',
- 'reverse'
- ];
- /**
- * Intercept mutating methods and emit events
- */
- methodsToPatch.forEach(function (method) {
- // cache original method
- var original = arrayProto[method];
- def(arrayMethods, method, function mutator () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- var result = original.apply(this, args);
- var ob = this.__ob__;
- var inserted;
- switch (method) {
- case 'push':
- case 'unshift':
- inserted = args;
- break
- case 'splice':
- inserted = args.slice(2);
- break
- }
- if (inserted) { ob.observeArray(inserted); }
- // notify change
- ob.dep.notify();
- return result
- });
- });
- /* */
- var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
- /**
- * In some cases we may want to disable observation inside a component's
- * update computation.
- */
- var shouldObserve = true;
- function toggleObserving (value) {
- shouldObserve = value;
- }
- /**
- * Observer class that is attached to each observed
- * object. Once attached, the observer converts the target
- * object's property keys into getter/setters that
- * collect dependencies and dispatch updates.
- */
- var Observer = function Observer (value) {
- this.value = value;
- this.dep = new Dep();
- this.vmCount = 0;
- def(value, '__ob__', this);
- if (Array.isArray(value)) {
- if (hasProto) {
- {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
- if(value.push !== value.__proto__.push){
- copyAugment(value, arrayMethods, arrayKeys);
- } else {
- protoAugment(value, arrayMethods);
- }
- }
- } else {
- copyAugment(value, arrayMethods, arrayKeys);
- }
- this.observeArray(value);
- } else {
- this.walk(value);
- }
- };
- /**
- * Walk through all properties and convert them into
- * getter/setters. This method should only be called when
- * value type is Object.
- */
- Observer.prototype.walk = function walk (obj) {
- var keys = Object.keys(obj);
- for (var i = 0; i < keys.length; i++) {
- defineReactive$$1(obj, keys[i]);
- }
- };
- /**
- * Observe a list of Array items.
- */
- Observer.prototype.observeArray = function observeArray (items) {
- for (var i = 0, l = items.length; i < l; i++) {
- observe(items[i]);
- }
- };
- // helpers
- /**
- * Augment a target Object or Array by intercepting
- * the prototype chain using __proto__
- */
- function protoAugment (target, src) {
- /* eslint-disable no-proto */
- target.__proto__ = src;
- /* eslint-enable no-proto */
- }
- /**
- * Augment a target Object or Array by defining
- * hidden properties.
- */
- /* istanbul ignore next */
- function copyAugment (target, src, keys) {
- for (var i = 0, l = keys.length; i < l; i++) {
- var key = keys[i];
- def(target, key, src[key]);
- }
- }
- /**
- * Attempt to create an observer instance for a value,
- * returns the new observer if successfully observed,
- * or the existing observer if the value already has one.
- */
- function observe (value, asRootData) {
- if (!isObject(value) || value instanceof VNode) {
- return
- }
- var ob;
- if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
- ob = value.__ob__;
- } else if (
- shouldObserve &&
- !isServerRendering() &&
- (Array.isArray(value) || isPlainObject(value)) &&
- Object.isExtensible(value) &&
- !value._isVue
- ) {
- ob = new Observer(value);
- }
- if (asRootData && ob) {
- ob.vmCount++;
- }
- return ob
- }
- /**
- * Define a reactive property on an Object.
- */
- function defineReactive$$1 (
- obj,
- key,
- val,
- customSetter,
- shallow
- ) {
- var dep = new Dep();
- var property = Object.getOwnPropertyDescriptor(obj, key);
- if (property && property.configurable === false) {
- return
- }
- // cater for pre-defined getter/setters
- var getter = property && property.get;
- var setter = property && property.set;
- if ((!getter || setter) && arguments.length === 2) {
- val = obj[key];
- }
- var childOb = !shallow && observe(val);
- Object.defineProperty(obj, key, {
- enumerable: true,
- configurable: true,
- get: function reactiveGetter () {
- var value = getter ? getter.call(obj) : val;
- if (Dep.SharedObject.target) { // fixed by xxxxxx
- dep.depend();
- if (childOb) {
- childOb.dep.depend();
- if (Array.isArray(value)) {
- dependArray(value);
- }
- }
- }
- return value
- },
- set: function reactiveSetter (newVal) {
- var value = getter ? getter.call(obj) : val;
- /* eslint-disable no-self-compare */
- if (newVal === value || (newVal !== newVal && value !== value)) {
- return
- }
- /* eslint-enable no-self-compare */
- if ( true && customSetter) {
- customSetter();
- }
- // #7981: for accessor properties without setter
- if (getter && !setter) { return }
- if (setter) {
- setter.call(obj, newVal);
- } else {
- val = newVal;
- }
- childOb = !shallow && observe(newVal);
- dep.notify();
- }
- });
- }
- /**
- * Set a property on an object. Adds the new property and
- * triggers change notification if the property doesn't
- * already exist.
- */
- function set (target, key, val) {
- if ( true &&
- (isUndef(target) || isPrimitive(target))
- ) {
- warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
- }
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.length = Math.max(target.length, key);
- target.splice(key, 1, val);
- return val
- }
- if (key in target && !(key in Object.prototype)) {
- target[key] = val;
- return val
- }
- var ob = (target).__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- true && warn(
- 'Avoid adding reactive properties to a Vue instance or its root $data ' +
- 'at runtime - declare it upfront in the data option.'
- );
- return val
- }
- if (!ob) {
- target[key] = val;
- return val
- }
- defineReactive$$1(ob.value, key, val);
- ob.dep.notify();
- return val
- }
- /**
- * Delete a property and trigger change if necessary.
- */
- function del (target, key) {
- if ( true &&
- (isUndef(target) || isPrimitive(target))
- ) {
- warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
- }
- if (Array.isArray(target) && isValidArrayIndex(key)) {
- target.splice(key, 1);
- return
- }
- var ob = (target).__ob__;
- if (target._isVue || (ob && ob.vmCount)) {
- true && warn(
- 'Avoid deleting properties on a Vue instance or its root $data ' +
- '- just set it to null.'
- );
- return
- }
- if (!hasOwn(target, key)) {
- return
- }
- delete target[key];
- if (!ob) {
- return
- }
- ob.dep.notify();
- }
- /**
- * Collect dependencies on array elements when the array is touched, since
- * we cannot intercept array element access like property getters.
- */
- function dependArray (value) {
- for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
- e = value[i];
- e && e.__ob__ && e.__ob__.dep.depend();
- if (Array.isArray(e)) {
- dependArray(e);
- }
- }
- }
- /* */
- /**
- * Option overwriting strategies are functions that handle
- * how to merge a parent option value and a child option
- * value into the final value.
- */
- var strats = config.optionMergeStrategies;
- /**
- * Options with restrictions
- */
- if (true) {
- strats.el = strats.propsData = function (parent, child, vm, key) {
- if (!vm) {
- warn(
- "option \"" + key + "\" can only be used during instance " +
- 'creation with the `new` keyword.'
- );
- }
- return defaultStrat(parent, child)
- };
- }
- /**
- * Helper that recursively merges two data objects together.
- */
- function mergeData (to, from) {
- if (!from) { return to }
- var key, toVal, fromVal;
- var keys = hasSymbol
- ? Reflect.ownKeys(from)
- : Object.keys(from);
- for (var i = 0; i < keys.length; i++) {
- key = keys[i];
- // in case the object is already observed...
- if (key === '__ob__') { continue }
- toVal = to[key];
- fromVal = from[key];
- if (!hasOwn(to, key)) {
- set(to, key, fromVal);
- } else if (
- toVal !== fromVal &&
- isPlainObject(toVal) &&
- isPlainObject(fromVal)
- ) {
- mergeData(toVal, fromVal);
- }
- }
- return to
- }
- /**
- * Data
- */
- function mergeDataOrFn (
- parentVal,
- childVal,
- vm
- ) {
- if (!vm) {
- // in a Vue.extend merge, both should be functions
- if (!childVal) {
- return parentVal
- }
- if (!parentVal) {
- return childVal
- }
- // when parentVal & childVal are both present,
- // we need to return a function that returns the
- // merged result of both functions... no need to
- // check if parentVal is a function here because
- // it has to be a function to pass previous merges.
- return function mergedDataFn () {
- return mergeData(
- typeof childVal === 'function' ? childVal.call(this, this) : childVal,
- typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
- )
- }
- } else {
- return function mergedInstanceDataFn () {
- // instance merge
- var instanceData = typeof childVal === 'function'
- ? childVal.call(vm, vm)
- : childVal;
- var defaultData = typeof parentVal === 'function'
- ? parentVal.call(vm, vm)
- : parentVal;
- if (instanceData) {
- return mergeData(instanceData, defaultData)
- } else {
- return defaultData
- }
- }
- }
- }
- strats.data = function (
- parentVal,
- childVal,
- vm
- ) {
- if (!vm) {
- if (childVal && typeof childVal !== 'function') {
- true && warn(
- 'The "data" option should be a function ' +
- 'that returns a per-instance value in component ' +
- 'definitions.',
- vm
- );
- return parentVal
- }
- return mergeDataOrFn(parentVal, childVal)
- }
- return mergeDataOrFn(parentVal, childVal, vm)
- };
- /**
- * Hooks and props are merged as arrays.
- */
- function mergeHook (
- parentVal,
- childVal
- ) {
- var res = childVal
- ? parentVal
- ? parentVal.concat(childVal)
- : Array.isArray(childVal)
- ? childVal
- : [childVal]
- : parentVal;
- return res
- ? dedupeHooks(res)
- : res
- }
- function dedupeHooks (hooks) {
- var res = [];
- for (var i = 0; i < hooks.length; i++) {
- if (res.indexOf(hooks[i]) === -1) {
- res.push(hooks[i]);
- }
- }
- return res
- }
- LIFECYCLE_HOOKS.forEach(function (hook) {
- strats[hook] = mergeHook;
- });
- /**
- * Assets
- *
- * When a vm is present (instance creation), we need to do
- * a three-way merge between constructor options, instance
- * options and parent options.
- */
- function mergeAssets (
- parentVal,
- childVal,
- vm,
- key
- ) {
- var res = Object.create(parentVal || null);
- if (childVal) {
- true && assertObjectType(key, childVal, vm);
- return extend(res, childVal)
- } else {
- return res
- }
- }
- ASSET_TYPES.forEach(function (type) {
- strats[type + 's'] = mergeAssets;
- });
- /**
- * Watchers.
- *
- * Watchers hashes should not overwrite one
- * another, so we merge them as arrays.
- */
- strats.watch = function (
- parentVal,
- childVal,
- vm,
- key
- ) {
- // work around Firefox's Object.prototype.watch...
- if (parentVal === nativeWatch) { parentVal = undefined; }
- if (childVal === nativeWatch) { childVal = undefined; }
- /* istanbul ignore if */
- if (!childVal) { return Object.create(parentVal || null) }
- if (true) {
- assertObjectType(key, childVal, vm);
- }
- if (!parentVal) { return childVal }
- var ret = {};
- extend(ret, parentVal);
- for (var key$1 in childVal) {
- var parent = ret[key$1];
- var child = childVal[key$1];
- if (parent && !Array.isArray(parent)) {
- parent = [parent];
- }
- ret[key$1] = parent
- ? parent.concat(child)
- : Array.isArray(child) ? child : [child];
- }
- return ret
- };
- /**
- * Other object hashes.
- */
- strats.props =
- strats.methods =
- strats.inject =
- strats.computed = function (
- parentVal,
- childVal,
- vm,
- key
- ) {
- if (childVal && "development" !== 'production') {
- assertObjectType(key, childVal, vm);
- }
- if (!parentVal) { return childVal }
- var ret = Object.create(null);
- extend(ret, parentVal);
- if (childVal) { extend(ret, childVal); }
- return ret
- };
- strats.provide = mergeDataOrFn;
- /**
- * Default strategy.
- */
- var defaultStrat = function (parentVal, childVal) {
- return childVal === undefined
- ? parentVal
- : childVal
- };
- /**
- * Validate component names
- */
- function checkComponents (options) {
- for (var key in options.components) {
- validateComponentName(key);
- }
- }
- function validateComponentName (name) {
- if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
- warn(
- 'Invalid component name: "' + name + '". Component names ' +
- 'should conform to valid custom element name in html5 specification.'
- );
- }
- if (isBuiltInTag(name) || config.isReservedTag(name)) {
- warn(
- 'Do not use built-in or reserved HTML elements as component ' +
- 'id: ' + name
- );
- }
- }
- /**
- * Ensure all props option syntax are normalized into the
- * Object-based format.
- */
- function normalizeProps (options, vm) {
- var props = options.props;
- if (!props) { return }
- var res = {};
- var i, val, name;
- if (Array.isArray(props)) {
- i = props.length;
- while (i--) {
- val = props[i];
- if (typeof val === 'string') {
- name = camelize(val);
- res[name] = { type: null };
- } else if (true) {
- warn('props must be strings when using array syntax.');
- }
- }
- } else if (isPlainObject(props)) {
- for (var key in props) {
- val = props[key];
- name = camelize(key);
- res[name] = isPlainObject(val)
- ? val
- : { type: val };
- }
- } else if (true) {
- warn(
- "Invalid value for option \"props\": expected an Array or an Object, " +
- "but got " + (toRawType(props)) + ".",
- vm
- );
- }
- options.props = res;
- }
- /**
- * Normalize all injections into Object-based format
- */
- function normalizeInject (options, vm) {
- var inject = options.inject;
- if (!inject) { return }
- var normalized = options.inject = {};
- if (Array.isArray(inject)) {
- for (var i = 0; i < inject.length; i++) {
- normalized[inject[i]] = { from: inject[i] };
- }
- } else if (isPlainObject(inject)) {
- for (var key in inject) {
- var val = inject[key];
- normalized[key] = isPlainObject(val)
- ? extend({ from: key }, val)
- : { from: val };
- }
- } else if (true) {
- warn(
- "Invalid value for option \"inject\": expected an Array or an Object, " +
- "but got " + (toRawType(inject)) + ".",
- vm
- );
- }
- }
- /**
- * Normalize raw function directives into object format.
- */
- function normalizeDirectives (options) {
- var dirs = options.directives;
- if (dirs) {
- for (var key in dirs) {
- var def$$1 = dirs[key];
- if (typeof def$$1 === 'function') {
- dirs[key] = { bind: def$$1, update: def$$1 };
- }
- }
- }
- }
- function assertObjectType (name, value, vm) {
- if (!isPlainObject(value)) {
- warn(
- "Invalid value for option \"" + name + "\": expected an Object, " +
- "but got " + (toRawType(value)) + ".",
- vm
- );
- }
- }
- /**
- * Merge two option objects into a new one.
- * Core utility used in both instantiation and inheritance.
- */
- function mergeOptions (
- parent,
- child,
- vm
- ) {
- if (true) {
- checkComponents(child);
- }
- if (typeof child === 'function') {
- child = child.options;
- }
- normalizeProps(child, vm);
- normalizeInject(child, vm);
- normalizeDirectives(child);
- // Apply extends and mixins on the child options,
- // but only if it is a raw options object that isn't
- // the result of another mergeOptions call.
- // Only merged options has the _base property.
- if (!child._base) {
- if (child.extends) {
- parent = mergeOptions(parent, child.extends, vm);
- }
- if (child.mixins) {
- for (var i = 0, l = child.mixins.length; i < l; i++) {
- parent = mergeOptions(parent, child.mixins[i], vm);
- }
- }
- }
- var options = {};
- var key;
- for (key in parent) {
- mergeField(key);
- }
- for (key in child) {
- if (!hasOwn(parent, key)) {
- mergeField(key);
- }
- }
- function mergeField (key) {
- var strat = strats[key] || defaultStrat;
- options[key] = strat(parent[key], child[key], vm, key);
- }
- return options
- }
- /**
- * Resolve an asset.
- * This function is used because child instances need access
- * to assets defined in its ancestor chain.
- */
- function resolveAsset (
- options,
- type,
- id,
- warnMissing
- ) {
- /* istanbul ignore if */
- if (typeof id !== 'string') {
- return
- }
- var assets = options[type];
- // check local registration variations first
- if (hasOwn(assets, id)) { return assets[id] }
- var camelizedId = camelize(id);
- if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
- var PascalCaseId = capitalize(camelizedId);
- if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
- // fallback to prototype chain
- var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
- if ( true && warnMissing && !res) {
- warn(
- 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
- options
- );
- }
- return res
- }
- /* */
- function validateProp (
- key,
- propOptions,
- propsData,
- vm
- ) {
- var prop = propOptions[key];
- var absent = !hasOwn(propsData, key);
- var value = propsData[key];
- // boolean casting
- var booleanIndex = getTypeIndex(Boolean, prop.type);
- if (booleanIndex > -1) {
- if (absent && !hasOwn(prop, 'default')) {
- value = false;
- } else if (value === '' || value === hyphenate(key)) {
- // only cast empty string / same name to boolean if
- // boolean has higher priority
- var stringIndex = getTypeIndex(String, prop.type);
- if (stringIndex < 0 || booleanIndex < stringIndex) {
- value = true;
- }
- }
- }
- // check default value
- if (value === undefined) {
- value = getPropDefaultValue(vm, prop, key);
- // since the default value is a fresh copy,
- // make sure to observe it.
- var prevShouldObserve = shouldObserve;
- toggleObserving(true);
- observe(value);
- toggleObserving(prevShouldObserve);
- }
- if (
- true
- ) {
- assertProp(prop, key, value, vm, absent);
- }
- return value
- }
- /**
- * Get the default value of a prop.
- */
- function getPropDefaultValue (vm, prop, key) {
- // no default, return undefined
- if (!hasOwn(prop, 'default')) {
- return undefined
- }
- var def = prop.default;
- // warn against non-factory defaults for Object & Array
- if ( true && isObject(def)) {
- warn(
- 'Invalid default value for prop "' + key + '": ' +
- 'Props with type Object/Array must use a factory function ' +
- 'to return the default value.',
- vm
- );
- }
- // the raw prop value was also undefined from previous render,
- // return previous default value to avoid unnecessary watcher trigger
- if (vm && vm.$options.propsData &&
- vm.$options.propsData[key] === undefined &&
- vm._props[key] !== undefined
- ) {
- return vm._props[key]
- }
- // call factory function for non-Function types
- // a value is Function if its prototype is function even across different execution context
- return typeof def === 'function' && getType(prop.type) !== 'Function'
- ? def.call(vm)
- : def
- }
- /**
- * Assert whether a prop is valid.
- */
- function assertProp (
- prop,
- name,
- value,
- vm,
- absent
- ) {
- if (prop.required && absent) {
- warn(
- 'Missing required prop: "' + name + '"',
- vm
- );
- return
- }
- if (value == null && !prop.required) {
- return
- }
- var type = prop.type;
- var valid = !type || type === true;
- var expectedTypes = [];
- if (type) {
- if (!Array.isArray(type)) {
- type = [type];
- }
- for (var i = 0; i < type.length && !valid; i++) {
- var assertedType = assertType(value, type[i]);
- expectedTypes.push(assertedType.expectedType || '');
- valid = assertedType.valid;
- }
- }
- if (!valid) {
- warn(
- getInvalidTypeMessage(name, value, expectedTypes),
- vm
- );
- return
- }
- var validator = prop.validator;
- if (validator) {
- if (!validator(value)) {
- warn(
- 'Invalid prop: custom validator check failed for prop "' + name + '".',
- vm
- );
- }
- }
- }
- var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
- function assertType (value, type) {
- var valid;
- var expectedType = getType(type);
- if (simpleCheckRE.test(expectedType)) {
- var t = typeof value;
- valid = t === expectedType.toLowerCase();
- // for primitive wrapper objects
- if (!valid && t === 'object') {
- valid = value instanceof type;
- }
- } else if (expectedType === 'Object') {
- valid = isPlainObject(value);
- } else if (expectedType === 'Array') {
- valid = Array.isArray(value);
- } else {
- valid = value instanceof type;
- }
- return {
- valid: valid,
- expectedType: expectedType
- }
- }
- /**
- * Use function string name to check built-in types,
- * because a simple equality check will fail when running
- * across different vms / iframes.
- */
- function getType (fn) {
- var match = fn && fn.toString().match(/^\s*function (\w+)/);
- return match ? match[1] : ''
- }
- function isSameType (a, b) {
- return getType(a) === getType(b)
- }
- function getTypeIndex (type, expectedTypes) {
- if (!Array.isArray(expectedTypes)) {
- return isSameType(expectedTypes, type) ? 0 : -1
- }
- for (var i = 0, len = expectedTypes.length; i < len; i++) {
- if (isSameType(expectedTypes[i], type)) {
- return i
- }
- }
- return -1
- }
- function getInvalidTypeMessage (name, value, expectedTypes) {
- var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
- " Expected " + (expectedTypes.map(capitalize).join(', '));
- var expectedType = expectedTypes[0];
- var receivedType = toRawType(value);
- var expectedValue = styleValue(value, expectedType);
- var receivedValue = styleValue(value, receivedType);
- // check if we need to specify expected value
- if (expectedTypes.length === 1 &&
- isExplicable(expectedType) &&
- !isBoolean(expectedType, receivedType)) {
- message += " with value " + expectedValue;
- }
- message += ", got " + receivedType + " ";
- // check if we need to specify received value
- if (isExplicable(receivedType)) {
- message += "with value " + receivedValue + ".";
- }
- return message
- }
- function styleValue (value, type) {
- if (type === 'String') {
- return ("\"" + value + "\"")
- } else if (type === 'Number') {
- return ("" + (Number(value)))
- } else {
- return ("" + value)
- }
- }
- function isExplicable (value) {
- var explicitTypes = ['string', 'number', 'boolean'];
- return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
- }
- function isBoolean () {
- var args = [], len = arguments.length;
- while ( len-- ) args[ len ] = arguments[ len ];
- return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
- }
- /* */
- function handleError (err, vm, info) {
- // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
- // See: https://github.com/vuejs/vuex/issues/1505
- pushTarget();
- try {
- if (vm) {
- var cur = vm;
- while ((cur = cur.$parent)) {
- var hooks = cur.$options.errorCaptured;
- if (hooks) {
- for (var i = 0; i < hooks.length; i++) {
- try {
- var capture = hooks[i].call(cur, err, vm, info) === false;
- if (capture) { return }
- } catch (e) {
- globalHandleError(e, cur, 'errorCaptured hook');
- }
- }
- }
- }
- }
- globalHandleError(err, vm, info);
- } finally {
- popTarget();
- }
- }
- function invokeWithErrorHandling (
- handler,
- context,
- args,
- vm,
- info
- ) {
- var res;
- try {
- res = args ? handler.apply(context, args) : handler.call(context);
- if (res && !res._isVue && isPromise(res) && !res._handled) {
- res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
- // issue #9511
- // avoid catch triggering multiple times when nested calls
- res._handled = true;
- }
- } catch (e) {
- handleError(e, vm, info);
- }
- return res
- }
- function globalHandleError (err, vm, info) {
- if (config.errorHandler) {
- try {
- return config.errorHandler.call(null, err, vm, info)
- } catch (e) {
- // if the user intentionally throws the original error in the handler,
- // do not log it twice
- if (e !== err) {
- logError(e, null, 'config.errorHandler');
- }
- }
- }
- logError(err, vm, info);
- }
- function logError (err, vm, info) {
- if (true) {
- warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
- }
- /* istanbul ignore else */
- if ((inBrowser || inWeex) && typeof console !== 'undefined') {
- console.error(err);
- } else {
- throw err
- }
- }
- /* */
- var callbacks = [];
- var pending = false;
- function flushCallbacks () {
- pending = false;
- var copies = callbacks.slice(0);
- callbacks.length = 0;
- for (var i = 0; i < copies.length; i++) {
- copies[i]();
- }
- }
- // Here we have async deferring wrappers using microtasks.
- // In 2.5 we used (macro) tasks (in combination with microtasks).
- // However, it has subtle problems when state is changed right before repaint
- // (e.g. #6813, out-in transitions).
- // Also, using (macro) tasks in event handler would cause some weird behaviors
- // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
- // So we now use microtasks everywhere, again.
- // A major drawback of this tradeoff is that there are some scenarios
- // where microtasks have too high a priority and fire in between supposedly
- // sequential events (e.g. #4521, #6690, which have workarounds)
- // or even between bubbling of the same event (#6566).
- var timerFunc;
- // The nextTick behavior leverages the microtask queue, which can be accessed
- // via either native Promise.then or MutationObserver.
- // MutationObserver has wider support, however it is seriously bugged in
- // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
- // completely stops working after triggering a few times... so, if native
- // Promise is available, we will use it:
- /* istanbul ignore next, $flow-disable-line */
- if (typeof Promise !== 'undefined' && isNative(Promise)) {
- var p = Promise.resolve();
- timerFunc = function () {
- p.then(flushCallbacks);
- // In problematic UIWebViews, Promise.then doesn't completely break, but
- // it can get stuck in a weird state where callbacks are pushed into the
- // microtask queue but the queue isn't being flushed, until the browser
- // needs to do some other work, e.g. handle a timer. Therefore we can
- // "force" the microtask queue to be flushed by adding an empty timer.
- if (isIOS) { setTimeout(noop); }
- };
- } else if (!isIE && typeof MutationObserver !== 'undefined' && (
- isNative(MutationObserver) ||
- // PhantomJS and iOS 7.x
- MutationObserver.toString() === '[object MutationObserverConstructor]'
- )) {
- // Use MutationObserver where native Promise is not available,
- // e.g. PhantomJS, iOS7, Android 4.4
- // (#6466 MutationObserver is unreliable in IE11)
- var counter = 1;
- var observer = new MutationObserver(flushCallbacks);
- var textNode = document.createTextNode(String(counter));
- observer.observe(textNode, {
- characterData: true
- });
- timerFunc = function () {
- counter = (counter + 1) % 2;
- textNode.data = String(counter);
- };
- } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
- // Fallback to setImmediate.
- // Technically it leverages the (macro) task queue,
- // but it is still a better choice than setTimeout.
- timerFunc = function () {
- setImmediate(flushCallbacks);
- };
- } else {
- // Fallback to setTimeout.
- timerFunc = function () {
- setTimeout(flushCallbacks, 0);
- };
- }
- function nextTick (cb, ctx) {
- var _resolve;
- callbacks.push(function () {
- if (cb) {
- try {
- cb.call(ctx);
- } catch (e) {
- handleError(e, ctx, 'nextTick');
- }
- } else if (_resolve) {
- _resolve(ctx);
- }
- });
- if (!pending) {
- pending = true;
- timerFunc();
- }
- // $flow-disable-line
- if (!cb && typeof Promise !== 'undefined') {
- return new Promise(function (resolve) {
- _resolve = resolve;
- })
- }
- }
- /* */
- /* not type checking this file because flow doesn't play well with Proxy */
- var initProxy;
- if (true) {
- var allowedGlobals = makeMap(
- 'Infinity,undefined,NaN,isFinite,isNaN,' +
- 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
- 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
- 'require' // for Webpack/Browserify
- );
- var warnNonPresent = function (target, key) {
- warn(
- "Property or method \"" + key + "\" is not defined on the instance but " +
- 'referenced during render. Make sure that this property is reactive, ' +
- 'either in the data option, or for class-based components, by ' +
- 'initializing the property. ' +
- 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
- target
- );
- };
- var warnReservedPrefix = function (target, key) {
- warn(
- "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
- 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
- 'prevent conflicts with Vue internals. ' +
- 'See: https://vuejs.org/v2/api/#data',
- target
- );
- };
- var hasProxy =
- typeof Proxy !== 'undefined' && isNative(Proxy);
- if (hasProxy) {
- var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
- config.keyCodes = new Proxy(config.keyCodes, {
- set: function set (target, key, value) {
- if (isBuiltInModifier(key)) {
- warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
- return false
- } else {
- target[key] = value;
- return true
- }
- }
- });
- }
- var hasHandler = {
- has: function has (target, key) {
- var has = key in target;
- var isAllowed = allowedGlobals(key) ||
- (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
- if (!has && !isAllowed) {
- if (key in target.$data) { warnReservedPrefix(target, key); }
- else { warnNonPresent(target, key); }
- }
- return has || !isAllowed
- }
- };
- var getHandler = {
- get: function get (target, key) {
- if (typeof key === 'string' && !(key in target)) {
- if (key in target.$data) { warnReservedPrefix(target, key); }
- else { warnNonPresent(target, key); }
- }
- return target[key]
- }
- };
- initProxy = function initProxy (vm) {
- if (hasProxy) {
- // determine which proxy handler to use
- var options = vm.$options;
- var handlers = options.render && options.render._withStripped
- ? getHandler
- : hasHandler;
- vm._renderProxy = new Proxy(vm, handlers);
- } else {
- vm._renderProxy = vm;
- }
- };
- }
- /* */
- var seenObjects = new _Set();
- /**
- * Recursively traverse an object to evoke all converted
- * getters, so that every nested property inside the object
- * is collected as a "deep" dependency.
- */
- function traverse (val) {
- _traverse(val, seenObjects);
- seenObjects.clear();
- }
- function _traverse (val, seen) {
- var i, keys;
- var isA = Array.isArray(val);
- if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
- return
- }
- if (val.__ob__) {
- var depId = val.__ob__.dep.id;
- if (seen.has(depId)) {
- return
- }
- seen.add(depId);
- }
- if (isA) {
- i = val.length;
- while (i--) { _traverse(val[i], seen); }
- } else {
- keys = Object.keys(val);
- i = keys.length;
- while (i--) { _traverse(val[keys[i]], seen); }
- }
- }
- var mark;
- var measure;
- if (true) {
- var perf = inBrowser && window.performance;
- /* istanbul ignore if */
- if (
- perf &&
- perf.mark &&
- perf.measure &&
- perf.clearMarks &&
- perf.clearMeasures
- ) {
- mark = function (tag) { return perf.mark(tag); };
- measure = function (name, startTag, endTag) {
- perf.measure(name, startTag, endTag);
- perf.clearMarks(startTag);
- perf.clearMarks(endTag);
- // perf.clearMeasures(name)
- };
- }
- }
- /* */
- var normalizeEvent = cached(function (name) {
- var passive = name.charAt(0) === '&';
- name = passive ? name.slice(1) : name;
- var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
- name = once$$1 ? name.slice(1) : name;
- var capture = name.charAt(0) === '!';
- name = capture ? name.slice(1) : name;
- return {
- name: name,
- once: once$$1,
- capture: capture,
- passive: passive
- }
- });
- function createFnInvoker (fns, vm) {
- function invoker () {
- var arguments$1 = arguments;
- var fns = invoker.fns;
- if (Array.isArray(fns)) {
- var cloned = fns.slice();
- for (var i = 0; i < cloned.length; i++) {
- invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
- }
- } else {
- // return handler return value for single handlers
- return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
- }
- }
- invoker.fns = fns;
- return invoker
- }
- function updateListeners (
- on,
- oldOn,
- add,
- remove$$1,
- createOnceHandler,
- vm
- ) {
- var name, def$$1, cur, old, event;
- for (name in on) {
- def$$1 = cur = on[name];
- old = oldOn[name];
- event = normalizeEvent(name);
- if (isUndef(cur)) {
- true && warn(
- "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
- vm
- );
- } else if (isUndef(old)) {
- if (isUndef(cur.fns)) {
- cur = on[name] = createFnInvoker(cur, vm);
- }
- if (isTrue(event.once)) {
- cur = on[name] = createOnceHandler(event.name, cur, event.capture);
- }
- add(event.name, cur, event.capture, event.passive, event.params);
- } else if (cur !== old) {
- old.fns = cur;
- on[name] = old;
- }
- }
- for (name in oldOn) {
- if (isUndef(on[name])) {
- event = normalizeEvent(name);
- remove$$1(event.name, oldOn[name], event.capture);
- }
- }
- }
- /* */
- /* */
- // fixed by xxxxxx (mp properties)
- function extractPropertiesFromVNodeData(data, Ctor, res, context) {
- var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
- if (isUndef(propOptions)) {
- return res
- }
- var externalClasses = Ctor.options.mpOptions.externalClasses || [];
- var attrs = data.attrs;
- var props = data.props;
- if (isDef(attrs) || isDef(props)) {
- for (var key in propOptions) {
- var altKey = hyphenate(key);
- var result = checkProp(res, props, key, altKey, true) ||
- checkProp(res, attrs, key, altKey, false);
- // externalClass
- if (
- result &&
- res[key] &&
- externalClasses.indexOf(altKey) !== -1 &&
- context[camelize(res[key])]
- ) {
- // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
- res[key] = context[camelize(res[key])];
- }
- }
- }
- return res
- }
- function extractPropsFromVNodeData (
- data,
- Ctor,
- tag,
- context// fixed by xxxxxx
- ) {
- // we are only extracting raw values here.
- // validation and default values are handled in the child
- // component itself.
- var propOptions = Ctor.options.props;
- if (isUndef(propOptions)) {
- // fixed by xxxxxx
- return extractPropertiesFromVNodeData(data, Ctor, {}, context)
- }
- var res = {};
- var attrs = data.attrs;
- var props = data.props;
- if (isDef(attrs) || isDef(props)) {
- for (var key in propOptions) {
- var altKey = hyphenate(key);
- if (true) {
- var keyInLowerCase = key.toLowerCase();
- if (
- key !== keyInLowerCase &&
- attrs && hasOwn(attrs, keyInLowerCase)
- ) {
- tip(
- "Prop \"" + keyInLowerCase + "\" is passed to component " +
- (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
- " \"" + key + "\". " +
- "Note that HTML attributes are case-insensitive and camelCased " +
- "props need to use their kebab-case equivalents when using in-DOM " +
- "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
- );
- }
- }
- checkProp(res, props, key, altKey, true) ||
- checkProp(res, attrs, key, altKey, false);
- }
- }
- // fixed by xxxxxx
- return extractPropertiesFromVNodeData(data, Ctor, res, context)
- }
- function checkProp (
- res,
- hash,
- key,
- altKey,
- preserve
- ) {
- if (isDef(hash)) {
- if (hasOwn(hash, key)) {
- res[key] = hash[key];
- if (!preserve) {
- delete hash[key];
- }
- return true
- } else if (hasOwn(hash, altKey)) {
- res[key] = hash[altKey];
- if (!preserve) {
- delete hash[altKey];
- }
- return true
- }
- }
- return false
- }
- /* */
- // The template compiler attempts to minimize the need for normalization by
- // statically analyzing the template at compile time.
- //
- // For plain HTML markup, normalization can be completely skipped because the
- // generated render function is guaranteed to return Array<VNode>. There are
- // two cases where extra normalization is needed:
- // 1. When the children contains components - because a functional component
- // may return an Array instead of a single root. In this case, just a simple
- // normalization is needed - if any child is an Array, we flatten the whole
- // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
- // because functional components already normalize their own children.
- function simpleNormalizeChildren (children) {
- for (var i = 0; i < children.length; i++) {
- if (Array.isArray(children[i])) {
- return Array.prototype.concat.apply([], children)
- }
- }
- return children
- }
- // 2. When the children contains constructs that always generated nested Arrays,
- // e.g. <template>, <slot>, v-for, or when the children is provided by user
- // with hand-written render functions / JSX. In such cases a full normalization
- // is needed to cater to all possible types of children values.
- function normalizeChildren (children) {
- return isPrimitive(children)
- ? [createTextVNode(children)]
- : Array.isArray(children)
- ? normalizeArrayChildren(children)
- : undefined
- }
- function isTextNode (node) {
- return isDef(node) && isDef(node.text) && isFalse(node.isComment)
- }
- function normalizeArrayChildren (children, nestedIndex) {
- var res = [];
- var i, c, lastIndex, last;
- for (i = 0; i < children.length; i++) {
- c = children[i];
- if (isUndef(c) || typeof c === 'boolean') { continue }
- lastIndex = res.length - 1;
- last = res[lastIndex];
- // nested
- if (Array.isArray(c)) {
- if (c.length > 0) {
- c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
- // merge adjacent text nodes
- if (isTextNode(c[0]) && isTextNode(last)) {
- res[lastIndex] = createTextVNode(last.text + (c[0]).text);
- c.shift();
- }
- res.push.apply(res, c);
- }
- } else if (isPrimitive(c)) {
- if (isTextNode(last)) {
- // merge adjacent text nodes
- // this is necessary for SSR hydration because text nodes are
- // essentially merged when rendered to HTML strings
- res[lastIndex] = createTextVNode(last.text + c);
- } else if (c !== '') {
- // convert primitive to vnode
- res.push(createTextVNode(c));
- }
- } else {
- if (isTextNode(c) && isTextNode(last)) {
- // merge adjacent text nodes
- res[lastIndex] = createTextVNode(last.text + c.text);
- } else {
- // default key for nested array children (likely generated by v-for)
- if (isTrue(children._isVList) &&
- isDef(c.tag) &&
- isUndef(c.key) &&
- isDef(nestedIndex)) {
- c.key = "__vlist" + nestedIndex + "_" + i + "__";
- }
- res.push(c);
- }
- }
- }
- return res
- }
- /* */
- function initProvide (vm) {
- var provide = vm.$options.provide;
- if (provide) {
- vm._provided = typeof provide === 'function'
- ? provide.call(vm)
- : provide;
- }
- }
- function initInjections (vm) {
- var result = resolveInject(vm.$options.inject, vm);
- if (result) {
- toggleObserving(false);
- Object.keys(result).forEach(function (key) {
- /* istanbul ignore else */
- if (true) {
- defineReactive$$1(vm, key, result[key], function () {
- warn(
- "Avoid mutating an injected value directly since the changes will be " +
- "overwritten whenever the provided component re-renders. " +
- "injection being mutated: \"" + key + "\"",
- vm
- );
- });
- } else {}
- });
- toggleObserving(true);
- }
- }
- function resolveInject (inject, vm) {
- if (inject) {
- // inject is :any because flow is not smart enough to figure out cached
- var result = Object.create(null);
- var keys = hasSymbol
- ? Reflect.ownKeys(inject)
- : Object.keys(inject);
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- // #6574 in case the inject object is observed...
- if (key === '__ob__') { continue }
- var provideKey = inject[key].from;
- var source = vm;
- while (source) {
- if (source._provided && hasOwn(source._provided, provideKey)) {
- result[key] = source._provided[provideKey];
- break
- }
- source = source.$parent;
- }
- if (!source) {
- if ('default' in inject[key]) {
- var provideDefault = inject[key].default;
- result[key] = typeof provideDefault === 'function'
- ? provideDefault.call(vm)
- : provideDefault;
- } else if (true) {
- warn(("Injection \"" + key + "\" not found"), vm);
- }
- }
- }
- return result
- }
- }
- /* */
- /**
- * Runtime helper for resolving raw children VNodes into a slot object.
- */
- function resolveSlots (
- children,
- context
- ) {
- if (!children || !children.length) {
- return {}
- }
- var slots = {};
- for (var i = 0, l = children.length; i < l; i++) {
- var child = children[i];
- var data = child.data;
- // remove slot attribute if the node is resolved as a Vue slot node
- if (data && data.attrs && data.attrs.slot) {
- delete data.attrs.slot;
- }
- // named slots should only be respected if the vnode was rendered in the
- // same context.
- if ((child.context === context || child.fnContext === context) &&
- data && data.slot != null
- ) {
- var name = data.slot;
- var slot = (slots[name] || (slots[name] = []));
- if (child.tag === 'template') {
- slot.push.apply(slot, child.children || []);
- } else {
- slot.push(child);
- }
- } else {
- // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
- if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
- (slots['page'] || (slots['page'] = [])).push(child);
- }else{
- (slots.default || (slots.default = [])).push(child);
- }
- }
- }
- // ignore slots that contains only whitespace
- for (var name$1 in slots) {
- if (slots[name$1].every(isWhitespace)) {
- delete slots[name$1];
- }
- }
- return slots
- }
- function isWhitespace (node) {
- return (node.isComment && !node.asyncFactory) || node.text === ' '
- }
- /* */
- function normalizeScopedSlots (
- slots,
- normalSlots,
- prevSlots
- ) {
- var res;
- var hasNormalSlots = Object.keys(normalSlots).length > 0;
- var isStable = slots ? !!slots.$stable : !hasNormalSlots;
- var key = slots && slots.$key;
- if (!slots) {
- res = {};
- } else if (slots._normalized) {
- // fast path 1: child component re-render only, parent did not change
- return slots._normalized
- } else if (
- isStable &&
- prevSlots &&
- prevSlots !== emptyObject &&
- key === prevSlots.$key &&
- !hasNormalSlots &&
- !prevSlots.$hasNormal
- ) {
- // fast path 2: stable scoped slots w/ no normal slots to proxy,
- // only need to normalize once
- return prevSlots
- } else {
- res = {};
- for (var key$1 in slots) {
- if (slots[key$1] && key$1[0] !== '$') {
- res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
- }
- }
- }
- // expose normal slots on scopedSlots
- for (var key$2 in normalSlots) {
- if (!(key$2 in res)) {
- res[key$2] = proxyNormalSlot(normalSlots, key$2);
- }
- }
- // avoriaz seems to mock a non-extensible $scopedSlots object
- // and when that is passed down this would cause an error
- if (slots && Object.isExtensible(slots)) {
- (slots)._normalized = res;
- }
- def(res, '$stable', isStable);
- def(res, '$key', key);
- def(res, '$hasNormal', hasNormalSlots);
- return res
- }
- function normalizeScopedSlot(normalSlots, key, fn) {
- var normalized = function () {
- var res = arguments.length ? fn.apply(null, arguments) : fn({});
- res = res && typeof res === 'object' && !Array.isArray(res)
- ? [res] // single vnode
- : normalizeChildren(res);
- return res && (
- res.length === 0 ||
- (res.length === 1 && res[0].isComment) // #9658
- ) ? undefined
- : res
- };
- // this is a slot using the new v-slot syntax without scope. although it is
- // compiled as a scoped slot, render fn users would expect it to be present
- // on this.$slots because the usage is semantically a normal slot.
- if (fn.proxy) {
- Object.defineProperty(normalSlots, key, {
- get: normalized,
- enumerable: true,
- configurable: true
- });
- }
- return normalized
- }
- function proxyNormalSlot(slots, key) {
- return function () { return slots[key]; }
- }
- /* */
- /**
- * Runtime helper for rendering v-for lists.
- */
- function renderList (
- val,
- render
- ) {
- var ret, i, l, keys, key;
- if (Array.isArray(val) || typeof val === 'string') {
- ret = new Array(val.length);
- for (i = 0, l = val.length; i < l; i++) {
- ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
- }
- } else if (typeof val === 'number') {
- ret = new Array(val);
- for (i = 0; i < val; i++) {
- ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
- }
- } else if (isObject(val)) {
- if (hasSymbol && val[Symbol.iterator]) {
- ret = [];
- var iterator = val[Symbol.iterator]();
- var result = iterator.next();
- while (!result.done) {
- ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
- result = iterator.next();
- }
- } else {
- keys = Object.keys(val);
- ret = new Array(keys.length);
- for (i = 0, l = keys.length; i < l; i++) {
- key = keys[i];
- ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
- }
- }
- }
- if (!isDef(ret)) {
- ret = [];
- }
- (ret)._isVList = true;
- return ret
- }
- /* */
- /**
- * Runtime helper for rendering <slot>
- */
- function renderSlot (
- name,
- fallback,
- props,
- bindObject
- ) {
- var scopedSlotFn = this.$scopedSlots[name];
- var nodes;
- if (scopedSlotFn) { // scoped slot
- props = props || {};
- if (bindObject) {
- if ( true && !isObject(bindObject)) {
- warn(
- 'slot v-bind without argument expects an Object',
- this
- );
- }
- props = extend(extend({}, bindObject), props);
- }
- // fixed by xxxxxx app-plus scopedSlot
- nodes = scopedSlotFn(props, this, props._i) || fallback;
- } else {
- nodes = this.$slots[name] || fallback;
- }
- var target = props && props.slot;
- if (target) {
- return this.$createElement('template', { slot: target }, nodes)
- } else {
- return nodes
- }
- }
- /* */
- /**
- * Runtime helper for resolving filters
- */
- function resolveFilter (id) {
- return resolveAsset(this.$options, 'filters', id, true) || identity
- }
- /* */
- function isKeyNotMatch (expect, actual) {
- if (Array.isArray(expect)) {
- return expect.indexOf(actual) === -1
- } else {
- return expect !== actual
- }
- }
- /**
- * Runtime helper for checking keyCodes from config.
- * exposed as Vue.prototype._k
- * passing in eventKeyName as last argument separately for backwards compat
- */
- function checkKeyCodes (
- eventKeyCode,
- key,
- builtInKeyCode,
- eventKeyName,
- builtInKeyName
- ) {
- var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
- if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
- return isKeyNotMatch(builtInKeyName, eventKeyName)
- } else if (mappedKeyCode) {
- return isKeyNotMatch(mappedKeyCode, eventKeyCode)
- } else if (eventKeyName) {
- return hyphenate(eventKeyName) !== key
- }
- }
- /* */
- /**
- * Runtime helper for merging v-bind="object" into a VNode's data.
- */
- function bindObjectProps (
- data,
- tag,
- value,
- asProp,
- isSync
- ) {
- if (value) {
- if (!isObject(value)) {
- true && warn(
- 'v-bind without argument expects an Object or Array value',
- this
- );
- } else {
- if (Array.isArray(value)) {
- value = toObject(value);
- }
- var hash;
- var loop = function ( key ) {
- if (
- key === 'class' ||
- key === 'style' ||
- isReservedAttribute(key)
- ) {
- hash = data;
- } else {
- var type = data.attrs && data.attrs.type;
- hash = asProp || config.mustUseProp(tag, type, key)
- ? data.domProps || (data.domProps = {})
- : data.attrs || (data.attrs = {});
- }
- var camelizedKey = camelize(key);
- var hyphenatedKey = hyphenate(key);
- if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
- hash[key] = value[key];
- if (isSync) {
- var on = data.on || (data.on = {});
- on[("update:" + key)] = function ($event) {
- value[key] = $event;
- };
- }
- }
- };
- for (var key in value) loop( key );
- }
- }
- return data
- }
- /* */
- /**
- * Runtime helper for rendering static trees.
- */
- function renderStatic (
- index,
- isInFor
- ) {
- var cached = this._staticTrees || (this._staticTrees = []);
- var tree = cached[index];
- // if has already-rendered static tree and not inside v-for,
- // we can reuse the same tree.
- if (tree && !isInFor) {
- return tree
- }
- // otherwise, render a fresh tree.
- tree = cached[index] = this.$options.staticRenderFns[index].call(
- this._renderProxy,
- null,
- this // for render fns generated for functional component templates
- );
- markStatic(tree, ("__static__" + index), false);
- return tree
- }
- /**
- * Runtime helper for v-once.
- * Effectively it means marking the node as static with a unique key.
- */
- function markOnce (
- tree,
- index,
- key
- ) {
- markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
- return tree
- }
- function markStatic (
- tree,
- key,
- isOnce
- ) {
- if (Array.isArray(tree)) {
- for (var i = 0; i < tree.length; i++) {
- if (tree[i] && typeof tree[i] !== 'string') {
- markStaticNode(tree[i], (key + "_" + i), isOnce);
- }
- }
- } else {
- markStaticNode(tree, key, isOnce);
- }
- }
- function markStaticNode (node, key, isOnce) {
- node.isStatic = true;
- node.key = key;
- node.isOnce = isOnce;
- }
- /* */
- function bindObjectListeners (data, value) {
- if (value) {
- if (!isPlainObject(value)) {
- true && warn(
- 'v-on without argument expects an Object value',
- this
- );
- } else {
- var on = data.on = data.on ? extend({}, data.on) : {};
- for (var key in value) {
- var existing = on[key];
- var ours = value[key];
- on[key] = existing ? [].concat(existing, ours) : ours;
- }
- }
- }
- return data
- }
- /* */
- function resolveScopedSlots (
- fns, // see flow/vnode
- res,
- // the following are added in 2.6
- hasDynamicKeys,
- contentHashKey
- ) {
- res = res || { $stable: !hasDynamicKeys };
- for (var i = 0; i < fns.length; i++) {
- var slot = fns[i];
- if (Array.isArray(slot)) {
- resolveScopedSlots(slot, res, hasDynamicKeys);
- } else if (slot) {
- // marker for reverse proxying v-slot without scope on this.$slots
- if (slot.proxy) {
- slot.fn.proxy = true;
- }
- res[slot.key] = slot.fn;
- }
- }
- if (contentHashKey) {
- (res).$key = contentHashKey;
- }
- return res
- }
- /* */
- function bindDynamicKeys (baseObj, values) {
- for (var i = 0; i < values.length; i += 2) {
- var key = values[i];
- if (typeof key === 'string' && key) {
- baseObj[values[i]] = values[i + 1];
- } else if ( true && key !== '' && key !== null) {
- // null is a special value for explicitly removing a binding
- warn(
- ("Invalid value for dynamic directive argument (expected string or null): " + key),
- this
- );
- }
- }
- return baseObj
- }
- // helper to dynamically append modifier runtime markers to event names.
- // ensure only append when value is already string, otherwise it will be cast
- // to string and cause the type check to miss.
- function prependModifier (value, symbol) {
- return typeof value === 'string' ? symbol + value : value
- }
- /* */
- function installRenderHelpers (target) {
- target._o = markOnce;
- target._n = toNumber;
- target._s = toString;
- target._l = renderList;
- target._t = renderSlot;
- target._q = looseEqual;
- target._i = looseIndexOf;
- target._m = renderStatic;
- target._f = resolveFilter;
- target._k = checkKeyCodes;
- target._b = bindObjectProps;
- target._v = createTextVNode;
- target._e = createEmptyVNode;
- target._u = resolveScopedSlots;
- target._g = bindObjectListeners;
- target._d = bindDynamicKeys;
- target._p = prependModifier;
- }
- /* */
- function FunctionalRenderContext (
- data,
- props,
- children,
- parent,
- Ctor
- ) {
- var this$1 = this;
- var options = Ctor.options;
- // ensure the createElement function in functional components
- // gets a unique context - this is necessary for correct named slot check
- var contextVm;
- if (hasOwn(parent, '_uid')) {
- contextVm = Object.create(parent);
- // $flow-disable-line
- contextVm._original = parent;
- } else {
- // the context vm passed in is a functional context as well.
- // in this case we want to make sure we are able to get a hold to the
- // real context instance.
- contextVm = parent;
- // $flow-disable-line
- parent = parent._original;
- }
- var isCompiled = isTrue(options._compiled);
- var needNormalization = !isCompiled;
- this.data = data;
- this.props = props;
- this.children = children;
- this.parent = parent;
- this.listeners = data.on || emptyObject;
- this.injections = resolveInject(options.inject, parent);
- this.slots = function () {
- if (!this$1.$slots) {
- normalizeScopedSlots(
- data.scopedSlots,
- this$1.$slots = resolveSlots(children, parent)
- );
- }
- return this$1.$slots
- };
- Object.defineProperty(this, 'scopedSlots', ({
- enumerable: true,
- get: function get () {
- return normalizeScopedSlots(data.scopedSlots, this.slots())
- }
- }));
- // support for compiled functional template
- if (isCompiled) {
- // exposing $options for renderStatic()
- this.$options = options;
- // pre-resolve slots for renderSlot()
- this.$slots = this.slots();
- this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
- }
- if (options._scopeId) {
- this._c = function (a, b, c, d) {
- var vnode = createElement(contextVm, a, b, c, d, needNormalization);
- if (vnode && !Array.isArray(vnode)) {
- vnode.fnScopeId = options._scopeId;
- vnode.fnContext = parent;
- }
- return vnode
- };
- } else {
- this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
- }
- }
- installRenderHelpers(FunctionalRenderContext.prototype);
- function createFunctionalComponent (
- Ctor,
- propsData,
- data,
- contextVm,
- children
- ) {
- var options = Ctor.options;
- var props = {};
- var propOptions = options.props;
- if (isDef(propOptions)) {
- for (var key in propOptions) {
- props[key] = validateProp(key, propOptions, propsData || emptyObject);
- }
- } else {
- if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
- if (isDef(data.props)) { mergeProps(props, data.props); }
- }
- var renderContext = new FunctionalRenderContext(
- data,
- props,
- children,
- contextVm,
- Ctor
- );
- var vnode = options.render.call(null, renderContext._c, renderContext);
- if (vnode instanceof VNode) {
- return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
- } else if (Array.isArray(vnode)) {
- var vnodes = normalizeChildren(vnode) || [];
- var res = new Array(vnodes.length);
- for (var i = 0; i < vnodes.length; i++) {
- res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
- }
- return res
- }
- }
- function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
- // #7817 clone node before setting fnContext, otherwise if the node is reused
- // (e.g. it was from a cached normal slot) the fnContext causes named slots
- // that should not be matched to match.
- var clone = cloneVNode(vnode);
- clone.fnContext = contextVm;
- clone.fnOptions = options;
- if (true) {
- (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
- }
- if (data.slot) {
- (clone.data || (clone.data = {})).slot = data.slot;
- }
- return clone
- }
- function mergeProps (to, from) {
- for (var key in from) {
- to[camelize(key)] = from[key];
- }
- }
- /* */
- /* */
- /* */
- /* */
- // inline hooks to be invoked on component VNodes during patch
- var componentVNodeHooks = {
- init: function init (vnode, hydrating) {
- if (
- vnode.componentInstance &&
- !vnode.componentInstance._isDestroyed &&
- vnode.data.keepAlive
- ) {
- // kept-alive components, treat as a patch
- var mountedNode = vnode; // work around flow
- componentVNodeHooks.prepatch(mountedNode, mountedNode);
- } else {
- var child = vnode.componentInstance = createComponentInstanceForVnode(
- vnode,
- activeInstance
- );
- child.$mount(hydrating ? vnode.elm : undefined, hydrating);
- }
- },
- prepatch: function prepatch (oldVnode, vnode) {
- var options = vnode.componentOptions;
- var child = vnode.componentInstance = oldVnode.componentInstance;
- updateChildComponent(
- child,
- options.propsData, // updated props
- options.listeners, // updated listeners
- vnode, // new parent vnode
- options.children // new children
- );
- },
- insert: function insert (vnode) {
- var context = vnode.context;
- var componentInstance = vnode.componentInstance;
- if (!componentInstance._isMounted) {
- callHook(componentInstance, 'onServiceCreated');
- callHook(componentInstance, 'onServiceAttached');
- componentInstance._isMounted = true;
- callHook(componentInstance, 'mounted');
- }
- if (vnode.data.keepAlive) {
- if (context._isMounted) {
- // vue-router#1212
- // During updates, a kept-alive component's child components may
- // change, so directly walking the tree here may call activated hooks
- // on incorrect children. Instead we push them into a queue which will
- // be processed after the whole patch process ended.
- queueActivatedComponent(componentInstance);
- } else {
- activateChildComponent(componentInstance, true /* direct */);
- }
- }
- },
- destroy: function destroy (vnode) {
- var componentInstance = vnode.componentInstance;
- if (!componentInstance._isDestroyed) {
- if (!vnode.data.keepAlive) {
- componentInstance.$destroy();
- } else {
- deactivateChildComponent(componentInstance, true /* direct */);
- }
- }
- }
- };
- var hooksToMerge = Object.keys(componentVNodeHooks);
- function createComponent (
- Ctor,
- data,
- context,
- children,
- tag
- ) {
- if (isUndef(Ctor)) {
- return
- }
- var baseCtor = context.$options._base;
- // plain options object: turn it into a constructor
- if (isObject(Ctor)) {
- Ctor = baseCtor.extend(Ctor);
- }
- // if at this stage it's not a constructor or an async component factory,
- // reject.
- if (typeof Ctor !== 'function') {
- if (true) {
- warn(("Invalid Component definition: " + (String(Ctor))), context);
- }
- return
- }
- // async component
- var asyncFactory;
- if (isUndef(Ctor.cid)) {
- asyncFactory = Ctor;
- Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
- if (Ctor === undefined) {
- // return a placeholder node for async component, which is rendered
- // as a comment node but preserves all the raw information for the node.
- // the information will be used for async server-rendering and hydration.
- return createAsyncPlaceholder(
- asyncFactory,
- data,
- context,
- children,
- tag
- )
- }
- }
- data = data || {};
- // resolve constructor options in case global mixins are applied after
- // component constructor creation
- resolveConstructorOptions(Ctor);
- // transform component v-model data into props & events
- if (isDef(data.model)) {
- transformModel(Ctor.options, data);
- }
- // extract props
- var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
- // functional component
- if (isTrue(Ctor.options.functional)) {
- return createFunctionalComponent(Ctor, propsData, data, context, children)
- }
- // extract listeners, since these needs to be treated as
- // child component listeners instead of DOM listeners
- var listeners = data.on;
- // replace with listeners with .native modifier
- // so it gets processed during parent component patch.
- data.on = data.nativeOn;
- if (isTrue(Ctor.options.abstract)) {
- // abstract components do not keep anything
- // other than props & listeners & slot
- // work around flow
- var slot = data.slot;
- data = {};
- if (slot) {
- data.slot = slot;
- }
- }
- // install component management hooks onto the placeholder node
- installComponentHooks(data);
- // return a placeholder vnode
- var name = Ctor.options.name || tag;
- var vnode = new VNode(
- ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
- data, undefined, undefined, undefined, context,
- { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
- asyncFactory
- );
- return vnode
- }
- function createComponentInstanceForVnode (
- vnode, // we know it's MountedComponentVNode but flow doesn't
- parent // activeInstance in lifecycle state
- ) {
- var options = {
- _isComponent: true,
- _parentVnode: vnode,
- parent: parent
- };
- // check inline-template render functions
- var inlineTemplate = vnode.data.inlineTemplate;
- if (isDef(inlineTemplate)) {
- options.render = inlineTemplate.render;
- options.staticRenderFns = inlineTemplate.staticRenderFns;
- }
- return new vnode.componentOptions.Ctor(options)
- }
- function installComponentHooks (data) {
- var hooks = data.hook || (data.hook = {});
- for (var i = 0; i < hooksToMerge.length; i++) {
- var key = hooksToMerge[i];
- var existing = hooks[key];
- var toMerge = componentVNodeHooks[key];
- if (existing !== toMerge && !(existing && existing._merged)) {
- hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
- }
- }
- }
- function mergeHook$1 (f1, f2) {
- var merged = function (a, b) {
- // flow complains about extra args which is why we use any
- f1(a, b);
- f2(a, b);
- };
- merged._merged = true;
- return merged
- }
- // transform component v-model info (value and callback) into
- // prop and event handler respectively.
- function transformModel (options, data) {
- var prop = (options.model && options.model.prop) || 'value';
- var event = (options.model && options.model.event) || 'input'
- ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
- var on = data.on || (data.on = {});
- var existing = on[event];
- var callback = data.model.callback;
- if (isDef(existing)) {
- if (
- Array.isArray(existing)
- ? existing.indexOf(callback) === -1
- : existing !== callback
- ) {
- on[event] = [callback].concat(existing);
- }
- } else {
- on[event] = callback;
- }
- }
- /* */
- var SIMPLE_NORMALIZE = 1;
- var ALWAYS_NORMALIZE = 2;
- // wrapper function for providing a more flexible interface
- // without getting yelled at by flow
- function createElement (
- context,
- tag,
- data,
- children,
- normalizationType,
- alwaysNormalize
- ) {
- if (Array.isArray(data) || isPrimitive(data)) {
- normalizationType = children;
- children = data;
- data = undefined;
- }
- if (isTrue(alwaysNormalize)) {
- normalizationType = ALWAYS_NORMALIZE;
- }
- return _createElement(context, tag, data, children, normalizationType)
- }
- function _createElement (
- context,
- tag,
- data,
- children,
- normalizationType
- ) {
- if (isDef(data) && isDef((data).__ob__)) {
- true && warn(
- "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
- 'Always create fresh vnode data objects in each render!',
- context
- );
- return createEmptyVNode()
- }
- // object syntax in v-bind
- if (isDef(data) && isDef(data.is)) {
- tag = data.is;
- }
- if (!tag) {
- // in case of component :is set to falsy value
- return createEmptyVNode()
- }
- // warn against non-primitive key
- if ( true &&
- isDef(data) && isDef(data.key) && !isPrimitive(data.key)
- ) {
- {
- warn(
- 'Avoid using non-primitive value as key, ' +
- 'use string/number value instead.',
- context
- );
- }
- }
- // support single function children as default scoped slot
- if (Array.isArray(children) &&
- typeof children[0] === 'function'
- ) {
- data = data || {};
- data.scopedSlots = { default: children[0] };
- children.length = 0;
- }
- if (normalizationType === ALWAYS_NORMALIZE) {
- children = normalizeChildren(children);
- } else if (normalizationType === SIMPLE_NORMALIZE) {
- children = simpleNormalizeChildren(children);
- }
- var vnode, ns;
- if (typeof tag === 'string') {
- var Ctor;
- ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
- if (config.isReservedTag(tag)) {
- // platform built-in elements
- if ( true && isDef(data) && isDef(data.nativeOn)) {
- warn(
- ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
- context
- );
- }
- vnode = new VNode(
- config.parsePlatformTagName(tag), data, children,
- undefined, undefined, context
- );
- } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
- // component
- vnode = createComponent(Ctor, data, context, children, tag);
- } else {
- // unknown or unlisted namespaced elements
- // check at runtime because it may get assigned a namespace when its
- // parent normalizes children
- vnode = new VNode(
- tag, data, children,
- undefined, undefined, context
- );
- }
- } else {
- // direct component options / constructor
- vnode = createComponent(tag, data, context, children);
- }
- if (Array.isArray(vnode)) {
- return vnode
- } else if (isDef(vnode)) {
- if (isDef(ns)) { applyNS(vnode, ns); }
- if (isDef(data)) { registerDeepBindings(data); }
- return vnode
- } else {
- return createEmptyVNode()
- }
- }
- function applyNS (vnode, ns, force) {
- vnode.ns = ns;
- if (vnode.tag === 'foreignObject') {
- // use default namespace inside foreignObject
- ns = undefined;
- force = true;
- }
- if (isDef(vnode.children)) {
- for (var i = 0, l = vnode.children.length; i < l; i++) {
- var child = vnode.children[i];
- if (isDef(child.tag) && (
- isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
- applyNS(child, ns, force);
- }
- }
- }
- }
- // ref #5318
- // necessary to ensure parent re-render when deep bindings like :style and
- // :class are used on slot nodes
- function registerDeepBindings (data) {
- if (isObject(data.style)) {
- traverse(data.style);
- }
- if (isObject(data.class)) {
- traverse(data.class);
- }
- }
- /* */
- function initRender (vm) {
- vm._vnode = null; // the root of the child tree
- vm._staticTrees = null; // v-once cached trees
- var options = vm.$options;
- var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
- var renderContext = parentVnode && parentVnode.context;
- vm.$slots = resolveSlots(options._renderChildren, renderContext);
- vm.$scopedSlots = emptyObject;
- // bind the createElement fn to this instance
- // so that we get proper render context inside it.
- // args order: tag, data, children, normalizationType, alwaysNormalize
- // internal version is used by render functions compiled from templates
- vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
- // normalization is always applied for the public version, used in
- // user-written render functions.
- vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
- // $attrs & $listeners are exposed for easier HOC creation.
- // they need to be reactive so that HOCs using them are always updated
- var parentData = parentVnode && parentVnode.data;
- /* istanbul ignore else */
- if (true) {
- defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
- !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
- }, true);
- defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
- !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
- }, true);
- } else {}
- }
- var currentRenderingInstance = null;
- function renderMixin (Vue) {
- // install runtime convenience helpers
- installRenderHelpers(Vue.prototype);
- Vue.prototype.$nextTick = function (fn) {
- return nextTick(fn, this)
- };
- Vue.prototype._render = function () {
- var vm = this;
- var ref = vm.$options;
- var render = ref.render;
- var _parentVnode = ref._parentVnode;
- if (_parentVnode) {
- vm.$scopedSlots = normalizeScopedSlots(
- _parentVnode.data.scopedSlots,
- vm.$slots,
- vm.$scopedSlots
- );
- }
- // set parent vnode. this allows render functions to have access
- // to the data on the placeholder node.
- vm.$vnode = _parentVnode;
- // render self
- var vnode;
- try {
- // There's no need to maintain a stack because all render fns are called
- // separately from one another. Nested component's render fns are called
- // when parent component is patched.
- currentRenderingInstance = vm;
- vnode = render.call(vm._renderProxy, vm.$createElement);
- } catch (e) {
- handleError(e, vm, "render");
- // return error render result,
- // or previous vnode to prevent render error causing blank component
- /* istanbul ignore else */
- if ( true && vm.$options.renderError) {
- try {
- vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
- } catch (e) {
- handleError(e, vm, "renderError");
- vnode = vm._vnode;
- }
- } else {
- vnode = vm._vnode;
- }
- } finally {
- currentRenderingInstance = null;
- }
- // if the returned array contains only a single node, allow it
- if (Array.isArray(vnode) && vnode.length === 1) {
- vnode = vnode[0];
- }
- // return empty vnode in case the render function errored out
- if (!(vnode instanceof VNode)) {
- if ( true && Array.isArray(vnode)) {
- warn(
- 'Multiple root nodes returned from render function. Render function ' +
- 'should return a single root node.',
- vm
- );
- }
- vnode = createEmptyVNode();
- }
- // set parent
- vnode.parent = _parentVnode;
- return vnode
- };
- }
- /* */
- function ensureCtor (comp, base) {
- if (
- comp.__esModule ||
- (hasSymbol && comp[Symbol.toStringTag] === 'Module')
- ) {
- comp = comp.default;
- }
- return isObject(comp)
- ? base.extend(comp)
- : comp
- }
- function createAsyncPlaceholder (
- factory,
- data,
- context,
- children,
- tag
- ) {
- var node = createEmptyVNode();
- node.asyncFactory = factory;
- node.asyncMeta = { data: data, context: context, children: children, tag: tag };
- return node
- }
- function resolveAsyncComponent (
- factory,
- baseCtor
- ) {
- if (isTrue(factory.error) && isDef(factory.errorComp)) {
- return factory.errorComp
- }
- if (isDef(factory.resolved)) {
- return factory.resolved
- }
- var owner = currentRenderingInstance;
- if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
- // already pending
- factory.owners.push(owner);
- }
- if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
- return factory.loadingComp
- }
- if (owner && !isDef(factory.owners)) {
- var owners = factory.owners = [owner];
- var sync = true;
- var timerLoading = null;
- var timerTimeout = null
- ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
- var forceRender = function (renderCompleted) {
- for (var i = 0, l = owners.length; i < l; i++) {
- (owners[i]).$forceUpdate();
- }
- if (renderCompleted) {
- owners.length = 0;
- if (timerLoading !== null) {
- clearTimeout(timerLoading);
- timerLoading = null;
- }
- if (timerTimeout !== null) {
- clearTimeout(timerTimeout);
- timerTimeout = null;
- }
- }
- };
- var resolve = once(function (res) {
- // cache resolved
- factory.resolved = ensureCtor(res, baseCtor);
- // invoke callbacks only if this is not a synchronous resolve
- // (async resolves are shimmed as synchronous during SSR)
- if (!sync) {
- forceRender(true);
- } else {
- owners.length = 0;
- }
- });
- var reject = once(function (reason) {
- true && warn(
- "Failed to resolve async component: " + (String(factory)) +
- (reason ? ("\nReason: " + reason) : '')
- );
- if (isDef(factory.errorComp)) {
- factory.error = true;
- forceRender(true);
- }
- });
- var res = factory(resolve, reject);
- if (isObject(res)) {
- if (isPromise(res)) {
- // () => Promise
- if (isUndef(factory.resolved)) {
- res.then(resolve, reject);
- }
- } else if (isPromise(res.component)) {
- res.component.then(resolve, reject);
- if (isDef(res.error)) {
- factory.errorComp = ensureCtor(res.error, baseCtor);
- }
- if (isDef(res.loading)) {
- factory.loadingComp = ensureCtor(res.loading, baseCtor);
- if (res.delay === 0) {
- factory.loading = true;
- } else {
- timerLoading = setTimeout(function () {
- timerLoading = null;
- if (isUndef(factory.resolved) && isUndef(factory.error)) {
- factory.loading = true;
- forceRender(false);
- }
- }, res.delay || 200);
- }
- }
- if (isDef(res.timeout)) {
- timerTimeout = setTimeout(function () {
- timerTimeout = null;
- if (isUndef(factory.resolved)) {
- reject(
- true
- ? ("timeout (" + (res.timeout) + "ms)")
- : undefined
- );
- }
- }, res.timeout);
- }
- }
- }
- sync = false;
- // return in case resolved synchronously
- return factory.loading
- ? factory.loadingComp
- : factory.resolved
- }
- }
- /* */
- function isAsyncPlaceholder (node) {
- return node.isComment && node.asyncFactory
- }
- /* */
- function getFirstComponentChild (children) {
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- var c = children[i];
- if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
- return c
- }
- }
- }
- }
- /* */
- /* */
- function initEvents (vm) {
- vm._events = Object.create(null);
- vm._hasHookEvent = false;
- // init parent attached events
- var listeners = vm.$options._parentListeners;
- if (listeners) {
- updateComponentListeners(vm, listeners);
- }
- }
- var target;
- function add (event, fn) {
- target.$on(event, fn);
- }
- function remove$1 (event, fn) {
- target.$off(event, fn);
- }
- function createOnceHandler (event, fn) {
- var _target = target;
- return function onceHandler () {
- var res = fn.apply(null, arguments);
- if (res !== null) {
- _target.$off(event, onceHandler);
- }
- }
- }
- function updateComponentListeners (
- vm,
- listeners,
- oldListeners
- ) {
- target = vm;
- updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
- target = undefined;
- }
- function eventsMixin (Vue) {
- var hookRE = /^hook:/;
- Vue.prototype.$on = function (event, fn) {
- var vm = this;
- if (Array.isArray(event)) {
- for (var i = 0, l = event.length; i < l; i++) {
- vm.$on(event[i], fn);
- }
- } else {
- (vm._events[event] || (vm._events[event] = [])).push(fn);
- // optimize hook:event cost by using a boolean flag marked at registration
- // instead of a hash lookup
- if (hookRE.test(event)) {
- vm._hasHookEvent = true;
- }
- }
- return vm
- };
- Vue.prototype.$once = function (event, fn) {
- var vm = this;
- function on () {
- vm.$off(event, on);
- fn.apply(vm, arguments);
- }
- on.fn = fn;
- vm.$on(event, on);
- return vm
- };
- Vue.prototype.$off = function (event, fn) {
- var vm = this;
- // all
- if (!arguments.length) {
- vm._events = Object.create(null);
- return vm
- }
- // array of events
- if (Array.isArray(event)) {
- for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
- vm.$off(event[i$1], fn);
- }
- return vm
- }
- // specific event
- var cbs = vm._events[event];
- if (!cbs) {
- return vm
- }
- if (!fn) {
- vm._events[event] = null;
- return vm
- }
- // specific handler
- var cb;
- var i = cbs.length;
- while (i--) {
- cb = cbs[i];
- if (cb === fn || cb.fn === fn) {
- cbs.splice(i, 1);
- break
- }
- }
- return vm
- };
- Vue.prototype.$emit = function (event) {
- var vm = this;
- if (true) {
- var lowerCaseEvent = event.toLowerCase();
- if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
- tip(
- "Event \"" + lowerCaseEvent + "\" is emitted in component " +
- (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
- "Note that HTML attributes are case-insensitive and you cannot use " +
- "v-on to listen to camelCase events when using in-DOM templates. " +
- "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
- );
- }
- }
- var cbs = vm._events[event];
- if (cbs) {
- cbs = cbs.length > 1 ? toArray(cbs) : cbs;
- var args = toArray(arguments, 1);
- var info = "event handler for \"" + event + "\"";
- for (var i = 0, l = cbs.length; i < l; i++) {
- invokeWithErrorHandling(cbs[i], vm, args, vm, info);
- }
- }
- return vm
- };
- }
- /* */
- var activeInstance = null;
- var isUpdatingChildComponent = false;
- function setActiveInstance(vm) {
- var prevActiveInstance = activeInstance;
- activeInstance = vm;
- return function () {
- activeInstance = prevActiveInstance;
- }
- }
- function initLifecycle (vm) {
- var options = vm.$options;
- // locate first non-abstract parent
- var parent = options.parent;
- if (parent && !options.abstract) {
- while (parent.$options.abstract && parent.$parent) {
- parent = parent.$parent;
- }
- parent.$children.push(vm);
- }
- vm.$parent = parent;
- vm.$root = parent ? parent.$root : vm;
- vm.$children = [];
- vm.$refs = {};
- vm._watcher = null;
- vm._inactive = null;
- vm._directInactive = false;
- vm._isMounted = false;
- vm._isDestroyed = false;
- vm._isBeingDestroyed = false;
- }
- function lifecycleMixin (Vue) {
- Vue.prototype._update = function (vnode, hydrating) {
- var vm = this;
- var prevEl = vm.$el;
- var prevVnode = vm._vnode;
- var restoreActiveInstance = setActiveInstance(vm);
- vm._vnode = vnode;
- // Vue.prototype.__patch__ is injected in entry points
- // based on the rendering backend used.
- if (!prevVnode) {
- // initial render
- vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
- } else {
- // updates
- vm.$el = vm.__patch__(prevVnode, vnode);
- }
- restoreActiveInstance();
- // update __vue__ reference
- if (prevEl) {
- prevEl.__vue__ = null;
- }
- if (vm.$el) {
- vm.$el.__vue__ = vm;
- }
- // if parent is an HOC, update its $el as well
- if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
- vm.$parent.$el = vm.$el;
- }
- // updated hook is called by the scheduler to ensure that children are
- // updated in a parent's updated hook.
- };
- Vue.prototype.$forceUpdate = function () {
- var vm = this;
- if (vm._watcher) {
- vm._watcher.update();
- }
- };
- Vue.prototype.$destroy = function () {
- var vm = this;
- if (vm._isBeingDestroyed) {
- return
- }
- callHook(vm, 'beforeDestroy');
- vm._isBeingDestroyed = true;
- // remove self from parent
- var parent = vm.$parent;
- if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
- remove(parent.$children, vm);
- }
- // teardown watchers
- if (vm._watcher) {
- vm._watcher.teardown();
- }
- var i = vm._watchers.length;
- while (i--) {
- vm._watchers[i].teardown();
- }
- // remove reference from data ob
- // frozen object may not have observer.
- if (vm._data.__ob__) {
- vm._data.__ob__.vmCount--;
- }
- // call the last hook...
- vm._isDestroyed = true;
- // invoke destroy hooks on current rendered tree
- vm.__patch__(vm._vnode, null);
- // fire destroyed hook
- callHook(vm, 'destroyed');
- // turn off all instance listeners.
- vm.$off();
- // remove __vue__ reference
- if (vm.$el) {
- vm.$el.__vue__ = null;
- }
- // release circular reference (#6759)
- if (vm.$vnode) {
- vm.$vnode.parent = null;
- }
- };
- }
- function updateChildComponent (
- vm,
- propsData,
- listeners,
- parentVnode,
- renderChildren
- ) {
- if (true) {
- isUpdatingChildComponent = true;
- }
- // determine whether component has slot children
- // we need to do this before overwriting $options._renderChildren.
- // check if there are dynamic scopedSlots (hand-written or compiled but with
- // dynamic slot names). Static scoped slots compiled from template has the
- // "$stable" marker.
- var newScopedSlots = parentVnode.data.scopedSlots;
- var oldScopedSlots = vm.$scopedSlots;
- var hasDynamicScopedSlot = !!(
- (newScopedSlots && !newScopedSlots.$stable) ||
- (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
- (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
- );
- // Any static slot children from the parent may have changed during parent's
- // update. Dynamic scoped slots may also have changed. In such cases, a forced
- // update is necessary to ensure correctness.
- var needsForceUpdate = !!(
- renderChildren || // has new static slots
- vm.$options._renderChildren || // has old static slots
- hasDynamicScopedSlot
- );
- vm.$options._parentVnode = parentVnode;
- vm.$vnode = parentVnode; // update vm's placeholder node without re-render
- if (vm._vnode) { // update child tree's parent
- vm._vnode.parent = parentVnode;
- }
- vm.$options._renderChildren = renderChildren;
- // update $attrs and $listeners hash
- // these are also reactive so they may trigger child update if the child
- // used them during render
- vm.$attrs = parentVnode.data.attrs || emptyObject;
- vm.$listeners = listeners || emptyObject;
- // update props
- if (propsData && vm.$options.props) {
- toggleObserving(false);
- var props = vm._props;
- var propKeys = vm.$options._propKeys || [];
- for (var i = 0; i < propKeys.length; i++) {
- var key = propKeys[i];
- var propOptions = vm.$options.props; // wtf flow?
- props[key] = validateProp(key, propOptions, propsData, vm);
- }
- toggleObserving(true);
- // keep a copy of raw propsData
- vm.$options.propsData = propsData;
- }
-
- // fixed by xxxxxx update properties(mp runtime)
- vm._$updateProperties && vm._$updateProperties(vm);
-
- // update listeners
- listeners = listeners || emptyObject;
- var oldListeners = vm.$options._parentListeners;
- vm.$options._parentListeners = listeners;
- updateComponentListeners(vm, listeners, oldListeners);
- // resolve slots + force update if has children
- if (needsForceUpdate) {
- vm.$slots = resolveSlots(renderChildren, parentVnode.context);
- vm.$forceUpdate();
- }
- if (true) {
- isUpdatingChildComponent = false;
- }
- }
- function isInInactiveTree (vm) {
- while (vm && (vm = vm.$parent)) {
- if (vm._inactive) { return true }
- }
- return false
- }
- function activateChildComponent (vm, direct) {
- if (direct) {
- vm._directInactive = false;
- if (isInInactiveTree(vm)) {
- return
- }
- } else if (vm._directInactive) {
- return
- }
- if (vm._inactive || vm._inactive === null) {
- vm._inactive = false;
- for (var i = 0; i < vm.$children.length; i++) {
- activateChildComponent(vm.$children[i]);
- }
- callHook(vm, 'activated');
- }
- }
- function deactivateChildComponent (vm, direct) {
- if (direct) {
- vm._directInactive = true;
- if (isInInactiveTree(vm)) {
- return
- }
- }
- if (!vm._inactive) {
- vm._inactive = true;
- for (var i = 0; i < vm.$children.length; i++) {
- deactivateChildComponent(vm.$children[i]);
- }
- callHook(vm, 'deactivated');
- }
- }
- function callHook (vm, hook) {
- // #7573 disable dep collection when invoking lifecycle hooks
- pushTarget();
- var handlers = vm.$options[hook];
- var info = hook + " hook";
- if (handlers) {
- for (var i = 0, j = handlers.length; i < j; i++) {
- invokeWithErrorHandling(handlers[i], vm, null, vm, info);
- }
- }
- if (vm._hasHookEvent) {
- vm.$emit('hook:' + hook);
- }
- popTarget();
- }
- /* */
- var MAX_UPDATE_COUNT = 100;
- var queue = [];
- var activatedChildren = [];
- var has = {};
- var circular = {};
- var waiting = false;
- var flushing = false;
- var index = 0;
- /**
- * Reset the scheduler's state.
- */
- function resetSchedulerState () {
- index = queue.length = activatedChildren.length = 0;
- has = {};
- if (true) {
- circular = {};
- }
- waiting = flushing = false;
- }
- // Async edge case #6566 requires saving the timestamp when event listeners are
- // attached. However, calling performance.now() has a perf overhead especially
- // if the page has thousands of event listeners. Instead, we take a timestamp
- // every time the scheduler flushes and use that for all event listeners
- // attached during that flush.
- var currentFlushTimestamp = 0;
- // Async edge case fix requires storing an event listener's attach timestamp.
- var getNow = Date.now;
- // Determine what event timestamp the browser is using. Annoyingly, the
- // timestamp can either be hi-res (relative to page load) or low-res
- // (relative to UNIX epoch), so in order to compare time we have to use the
- // same timestamp type when saving the flush timestamp.
- // All IE versions use low-res event timestamps, and have problematic clock
- // implementations (#9632)
- if (inBrowser && !isIE) {
- var performance = window.performance;
- if (
- performance &&
- typeof performance.now === 'function' &&
- getNow() > document.createEvent('Event').timeStamp
- ) {
- // if the event timestamp, although evaluated AFTER the Date.now(), is
- // smaller than it, it means the event is using a hi-res timestamp,
- // and we need to use the hi-res version for event listener timestamps as
- // well.
- getNow = function () { return performance.now(); };
- }
- }
- /**
- * Flush both queues and run the watchers.
- */
- function flushSchedulerQueue () {
- currentFlushTimestamp = getNow();
- flushing = true;
- var watcher, id;
- // Sort queue before flush.
- // This ensures that:
- // 1. Components are updated from parent to child. (because parent is always
- // created before the child)
- // 2. A component's user watchers are run before its render watcher (because
- // user watchers are created before the render watcher)
- // 3. If a component is destroyed during a parent component's watcher run,
- // its watchers can be skipped.
- queue.sort(function (a, b) { return a.id - b.id; });
- // do not cache length because more watchers might be pushed
- // as we run existing watchers
- for (index = 0; index < queue.length; index++) {
- watcher = queue[index];
- if (watcher.before) {
- watcher.before();
- }
- id = watcher.id;
- has[id] = null;
- watcher.run();
- // in dev build, check and stop circular updates.
- if ( true && has[id] != null) {
- circular[id] = (circular[id] || 0) + 1;
- if (circular[id] > MAX_UPDATE_COUNT) {
- warn(
- 'You may have an infinite update loop ' + (
- watcher.user
- ? ("in watcher with expression \"" + (watcher.expression) + "\"")
- : "in a component render function."
- ),
- watcher.vm
- );
- break
- }
- }
- }
- // keep copies of post queues before resetting state
- var activatedQueue = activatedChildren.slice();
- var updatedQueue = queue.slice();
- resetSchedulerState();
- // call component updated and activated hooks
- callActivatedHooks(activatedQueue);
- callUpdatedHooks(updatedQueue);
- // devtool hook
- /* istanbul ignore if */
- if (devtools && config.devtools) {
- devtools.emit('flush');
- }
- }
- function callUpdatedHooks (queue) {
- var i = queue.length;
- while (i--) {
- var watcher = queue[i];
- var vm = watcher.vm;
- if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
- callHook(vm, 'updated');
- }
- }
- }
- /**
- * Queue a kept-alive component that was activated during patch.
- * The queue will be processed after the entire tree has been patched.
- */
- function queueActivatedComponent (vm) {
- // setting _inactive to false here so that a render function can
- // rely on checking whether it's in an inactive tree (e.g. router-view)
- vm._inactive = false;
- activatedChildren.push(vm);
- }
- function callActivatedHooks (queue) {
- for (var i = 0; i < queue.length; i++) {
- queue[i]._inactive = true;
- activateChildComponent(queue[i], true /* true */);
- }
- }
- /**
- * Push a watcher into the watcher queue.
- * Jobs with duplicate IDs will be skipped unless it's
- * pushed when the queue is being flushed.
- */
- function queueWatcher (watcher) {
- var id = watcher.id;
- if (has[id] == null) {
- has[id] = true;
- if (!flushing) {
- queue.push(watcher);
- } else {
- // if already flushing, splice the watcher based on its id
- // if already past its id, it will be run next immediately.
- var i = queue.length - 1;
- while (i > index && queue[i].id > watcher.id) {
- i--;
- }
- queue.splice(i + 1, 0, watcher);
- }
- // queue the flush
- if (!waiting) {
- waiting = true;
- if ( true && !config.async) {
- flushSchedulerQueue();
- return
- }
- nextTick(flushSchedulerQueue);
- }
- }
- }
- /* */
- var uid$2 = 0;
- /**
- * A watcher parses an expression, collects dependencies,
- * and fires callback when the expression value changes.
- * This is used for both the $watch() api and directives.
- */
- var Watcher = function Watcher (
- vm,
- expOrFn,
- cb,
- options,
- isRenderWatcher
- ) {
- this.vm = vm;
- if (isRenderWatcher) {
- vm._watcher = this;
- }
- vm._watchers.push(this);
- // options
- if (options) {
- this.deep = !!options.deep;
- this.user = !!options.user;
- this.lazy = !!options.lazy;
- this.sync = !!options.sync;
- this.before = options.before;
- } else {
- this.deep = this.user = this.lazy = this.sync = false;
- }
- this.cb = cb;
- this.id = ++uid$2; // uid for batching
- this.active = true;
- this.dirty = this.lazy; // for lazy watchers
- this.deps = [];
- this.newDeps = [];
- this.depIds = new _Set();
- this.newDepIds = new _Set();
- this.expression = true
- ? expOrFn.toString()
- : undefined;
- // parse expression for getter
- if (typeof expOrFn === 'function') {
- this.getter = expOrFn;
- } else {
- this.getter = parsePath(expOrFn);
- if (!this.getter) {
- this.getter = noop;
- true && warn(
- "Failed watching path: \"" + expOrFn + "\" " +
- 'Watcher only accepts simple dot-delimited paths. ' +
- 'For full control, use a function instead.',
- vm
- );
- }
- }
- this.value = this.lazy
- ? undefined
- : this.get();
- };
- /**
- * Evaluate the getter, and re-collect dependencies.
- */
- Watcher.prototype.get = function get () {
- pushTarget(this);
- var value;
- var vm = this.vm;
- try {
- value = this.getter.call(vm, vm);
- } catch (e) {
- if (this.user) {
- handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
- } else {
- throw e
- }
- } finally {
- // "touch" every property so they are all tracked as
- // dependencies for deep watching
- if (this.deep) {
- traverse(value);
- }
- popTarget();
- this.cleanupDeps();
- }
- return value
- };
- /**
- * Add a dependency to this directive.
- */
- Watcher.prototype.addDep = function addDep (dep) {
- var id = dep.id;
- if (!this.newDepIds.has(id)) {
- this.newDepIds.add(id);
- this.newDeps.push(dep);
- if (!this.depIds.has(id)) {
- dep.addSub(this);
- }
- }
- };
- /**
- * Clean up for dependency collection.
- */
- Watcher.prototype.cleanupDeps = function cleanupDeps () {
- var i = this.deps.length;
- while (i--) {
- var dep = this.deps[i];
- if (!this.newDepIds.has(dep.id)) {
- dep.removeSub(this);
- }
- }
- var tmp = this.depIds;
- this.depIds = this.newDepIds;
- this.newDepIds = tmp;
- this.newDepIds.clear();
- tmp = this.deps;
- this.deps = this.newDeps;
- this.newDeps = tmp;
- this.newDeps.length = 0;
- };
- /**
- * Subscriber interface.
- * Will be called when a dependency changes.
- */
- Watcher.prototype.update = function update () {
- /* istanbul ignore else */
- if (this.lazy) {
- this.dirty = true;
- } else if (this.sync) {
- this.run();
- } else {
- queueWatcher(this);
- }
- };
- /**
- * Scheduler job interface.
- * Will be called by the scheduler.
- */
- Watcher.prototype.run = function run () {
- if (this.active) {
- var value = this.get();
- if (
- value !== this.value ||
- // Deep watchers and watchers on Object/Arrays should fire even
- // when the value is the same, because the value may
- // have mutated.
- isObject(value) ||
- this.deep
- ) {
- // set new value
- var oldValue = this.value;
- this.value = value;
- if (this.user) {
- try {
- this.cb.call(this.vm, value, oldValue);
- } catch (e) {
- handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
- }
- } else {
- this.cb.call(this.vm, value, oldValue);
- }
- }
- }
- };
- /**
- * Evaluate the value of the watcher.
- * This only gets called for lazy watchers.
- */
- Watcher.prototype.evaluate = function evaluate () {
- this.value = this.get();
- this.dirty = false;
- };
- /**
- * Depend on all deps collected by this watcher.
- */
- Watcher.prototype.depend = function depend () {
- var i = this.deps.length;
- while (i--) {
- this.deps[i].depend();
- }
- };
- /**
- * Remove self from all dependencies' subscriber list.
- */
- Watcher.prototype.teardown = function teardown () {
- if (this.active) {
- // remove self from vm's watcher list
- // this is a somewhat expensive operation so we skip it
- // if the vm is being destroyed.
- if (!this.vm._isBeingDestroyed) {
- remove(this.vm._watchers, this);
- }
- var i = this.deps.length;
- while (i--) {
- this.deps[i].removeSub(this);
- }
- this.active = false;
- }
- };
- /* */
- var sharedPropertyDefinition = {
- enumerable: true,
- configurable: true,
- get: noop,
- set: noop
- };
- function proxy (target, sourceKey, key) {
- sharedPropertyDefinition.get = function proxyGetter () {
- return this[sourceKey][key]
- };
- sharedPropertyDefinition.set = function proxySetter (val) {
- this[sourceKey][key] = val;
- };
- Object.defineProperty(target, key, sharedPropertyDefinition);
- }
- function initState (vm) {
- vm._watchers = [];
- var opts = vm.$options;
- if (opts.props) { initProps(vm, opts.props); }
- if (opts.methods) { initMethods(vm, opts.methods); }
- if (opts.data) {
- initData(vm);
- } else {
- observe(vm._data = {}, true /* asRootData */);
- }
- if (opts.computed) { initComputed(vm, opts.computed); }
- if (opts.watch && opts.watch !== nativeWatch) {
- initWatch(vm, opts.watch);
- }
- }
- function initProps (vm, propsOptions) {
- var propsData = vm.$options.propsData || {};
- var props = vm._props = {};
- // cache prop keys so that future props updates can iterate using Array
- // instead of dynamic object key enumeration.
- var keys = vm.$options._propKeys = [];
- var isRoot = !vm.$parent;
- // root instance props should be converted
- if (!isRoot) {
- toggleObserving(false);
- }
- var loop = function ( key ) {
- keys.push(key);
- var value = validateProp(key, propsOptions, propsData, vm);
- /* istanbul ignore else */
- if (true) {
- var hyphenatedKey = hyphenate(key);
- if (isReservedAttribute(hyphenatedKey) ||
- config.isReservedAttr(hyphenatedKey)) {
- warn(
- ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
- vm
- );
- }
- defineReactive$$1(props, key, value, function () {
- if (!isRoot && !isUpdatingChildComponent) {
- {
- if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
- return
- }
- //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
- if(
- key === 'value' &&
- Array.isArray(vm.$options.behaviors) &&
- vm.$options.behaviors.indexOf('uni://form-field') !== -1
- ){
- return
- }
- if(vm._getFormData){
- return
- }
- var $parent = vm.$parent;
- while($parent){
- if($parent.__next_tick_pending){
- return
- }
- $parent = $parent.$parent;
- }
- }
- warn(
- "Avoid mutating a prop directly since the value will be " +
- "overwritten whenever the parent component re-renders. " +
- "Instead, use a data or computed property based on the prop's " +
- "value. Prop being mutated: \"" + key + "\"",
- vm
- );
- }
- });
- } else {}
- // static props are already proxied on the component's prototype
- // during Vue.extend(). We only need to proxy props defined at
- // instantiation here.
- if (!(key in vm)) {
- proxy(vm, "_props", key);
- }
- };
- for (var key in propsOptions) loop( key );
- toggleObserving(true);
- }
- function initData (vm) {
- var data = vm.$options.data;
- data = vm._data = typeof data === 'function'
- ? getData(data, vm)
- : data || {};
- if (!isPlainObject(data)) {
- data = {};
- true && warn(
- 'data functions should return an object:\n' +
- 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
- vm
- );
- }
- // proxy data on instance
- var keys = Object.keys(data);
- var props = vm.$options.props;
- var methods = vm.$options.methods;
- var i = keys.length;
- while (i--) {
- var key = keys[i];
- if (true) {
- if (methods && hasOwn(methods, key)) {
- warn(
- ("Method \"" + key + "\" has already been defined as a data property."),
- vm
- );
- }
- }
- if (props && hasOwn(props, key)) {
- true && warn(
- "The data property \"" + key + "\" is already declared as a prop. " +
- "Use prop default value instead.",
- vm
- );
- } else if (!isReserved(key)) {
- proxy(vm, "_data", key);
- }
- }
- // observe data
- observe(data, true /* asRootData */);
- }
- function getData (data, vm) {
- // #7573 disable dep collection when invoking data getters
- pushTarget();
- try {
- return data.call(vm, vm)
- } catch (e) {
- handleError(e, vm, "data()");
- return {}
- } finally {
- popTarget();
- }
- }
- var computedWatcherOptions = { lazy: true };
- function initComputed (vm, computed) {
- // $flow-disable-line
- var watchers = vm._computedWatchers = Object.create(null);
- // computed properties are just getters during SSR
- var isSSR = isServerRendering();
- for (var key in computed) {
- var userDef = computed[key];
- var getter = typeof userDef === 'function' ? userDef : userDef.get;
- if ( true && getter == null) {
- warn(
- ("Getter is missing for computed property \"" + key + "\"."),
- vm
- );
- }
- if (!isSSR) {
- // create internal watcher for the computed property.
- watchers[key] = new Watcher(
- vm,
- getter || noop,
- noop,
- computedWatcherOptions
- );
- }
- // component-defined computed properties are already defined on the
- // component prototype. We only need to define computed properties defined
- // at instantiation here.
- if (!(key in vm)) {
- defineComputed(vm, key, userDef);
- } else if (true) {
- if (key in vm.$data) {
- warn(("The computed property \"" + key + "\" is already defined in data."), vm);
- } else if (vm.$options.props && key in vm.$options.props) {
- warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
- }
- }
- }
- }
- function defineComputed (
- target,
- key,
- userDef
- ) {
- var shouldCache = !isServerRendering();
- if (typeof userDef === 'function') {
- sharedPropertyDefinition.get = shouldCache
- ? createComputedGetter(key)
- : createGetterInvoker(userDef);
- sharedPropertyDefinition.set = noop;
- } else {
- sharedPropertyDefinition.get = userDef.get
- ? shouldCache && userDef.cache !== false
- ? createComputedGetter(key)
- : createGetterInvoker(userDef.get)
- : noop;
- sharedPropertyDefinition.set = userDef.set || noop;
- }
- if ( true &&
- sharedPropertyDefinition.set === noop) {
- sharedPropertyDefinition.set = function () {
- warn(
- ("Computed property \"" + key + "\" was assigned to but it has no setter."),
- this
- );
- };
- }
- Object.defineProperty(target, key, sharedPropertyDefinition);
- }
- function createComputedGetter (key) {
- return function computedGetter () {
- var watcher = this._computedWatchers && this._computedWatchers[key];
- if (watcher) {
- if (watcher.dirty) {
- watcher.evaluate();
- }
- if (Dep.SharedObject.target) {// fixed by xxxxxx
- watcher.depend();
- }
- return watcher.value
- }
- }
- }
- function createGetterInvoker(fn) {
- return function computedGetter () {
- return fn.call(this, this)
- }
- }
- function initMethods (vm, methods) {
- var props = vm.$options.props;
- for (var key in methods) {
- if (true) {
- if (typeof methods[key] !== 'function') {
- warn(
- "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
- "Did you reference the function correctly?",
- vm
- );
- }
- if (props && hasOwn(props, key)) {
- warn(
- ("Method \"" + key + "\" has already been defined as a prop."),
- vm
- );
- }
- if ((key in vm) && isReserved(key)) {
- warn(
- "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
- "Avoid defining component methods that start with _ or $."
- );
- }
- }
- vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
- }
- }
- function initWatch (vm, watch) {
- for (var key in watch) {
- var handler = watch[key];
- if (Array.isArray(handler)) {
- for (var i = 0; i < handler.length; i++) {
- createWatcher(vm, key, handler[i]);
- }
- } else {
- createWatcher(vm, key, handler);
- }
- }
- }
- function createWatcher (
- vm,
- expOrFn,
- handler,
- options
- ) {
- if (isPlainObject(handler)) {
- options = handler;
- handler = handler.handler;
- }
- if (typeof handler === 'string') {
- handler = vm[handler];
- }
- return vm.$watch(expOrFn, handler, options)
- }
- function stateMixin (Vue) {
- // flow somehow has problems with directly declared definition object
- // when using Object.defineProperty, so we have to procedurally build up
- // the object here.
- var dataDef = {};
- dataDef.get = function () { return this._data };
- var propsDef = {};
- propsDef.get = function () { return this._props };
- if (true) {
- dataDef.set = function () {
- warn(
- 'Avoid replacing instance root $data. ' +
- 'Use nested data properties instead.',
- this
- );
- };
- propsDef.set = function () {
- warn("$props is readonly.", this);
- };
- }
- Object.defineProperty(Vue.prototype, '$data', dataDef);
- Object.defineProperty(Vue.prototype, '$props', propsDef);
- Vue.prototype.$set = set;
- Vue.prototype.$delete = del;
- Vue.prototype.$watch = function (
- expOrFn,
- cb,
- options
- ) {
- var vm = this;
- if (isPlainObject(cb)) {
- return createWatcher(vm, expOrFn, cb, options)
- }
- options = options || {};
- options.user = true;
- var watcher = new Watcher(vm, expOrFn, cb, options);
- if (options.immediate) {
- try {
- cb.call(vm, watcher.value);
- } catch (error) {
- handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
- }
- }
- return function unwatchFn () {
- watcher.teardown();
- }
- };
- }
- /* */
- var uid$3 = 0;
- function initMixin (Vue) {
- Vue.prototype._init = function (options) {
- var vm = this;
- // a uid
- vm._uid = uid$3++;
- var startTag, endTag;
- /* istanbul ignore if */
- if ( true && config.performance && mark) {
- startTag = "vue-perf-start:" + (vm._uid);
- endTag = "vue-perf-end:" + (vm._uid);
- mark(startTag);
- }
- // a flag to avoid this being observed
- vm._isVue = true;
- // merge options
- if (options && options._isComponent) {
- // optimize internal component instantiation
- // since dynamic options merging is pretty slow, and none of the
- // internal component options needs special treatment.
- initInternalComponent(vm, options);
- } else {
- vm.$options = mergeOptions(
- resolveConstructorOptions(vm.constructor),
- options || {},
- vm
- );
- }
- /* istanbul ignore else */
- if (true) {
- initProxy(vm);
- } else {}
- // expose real self
- vm._self = vm;
- initLifecycle(vm);
- initEvents(vm);
- initRender(vm);
- callHook(vm, 'beforeCreate');
- !vm._$fallback && initInjections(vm); // resolve injections before data/props
- initState(vm);
- !vm._$fallback && initProvide(vm); // resolve provide after data/props
- !vm._$fallback && callHook(vm, 'created');
- /* istanbul ignore if */
- if ( true && config.performance && mark) {
- vm._name = formatComponentName(vm, false);
- mark(endTag);
- measure(("vue " + (vm._name) + " init"), startTag, endTag);
- }
- if (vm.$options.el) {
- vm.$mount(vm.$options.el);
- }
- };
- }
- function initInternalComponent (vm, options) {
- var opts = vm.$options = Object.create(vm.constructor.options);
- // doing this because it's faster than dynamic enumeration.
- var parentVnode = options._parentVnode;
- opts.parent = options.parent;
- opts._parentVnode = parentVnode;
- var vnodeComponentOptions = parentVnode.componentOptions;
- opts.propsData = vnodeComponentOptions.propsData;
- opts._parentListeners = vnodeComponentOptions.listeners;
- opts._renderChildren = vnodeComponentOptions.children;
- opts._componentTag = vnodeComponentOptions.tag;
- if (options.render) {
- opts.render = options.render;
- opts.staticRenderFns = options.staticRenderFns;
- }
- }
- function resolveConstructorOptions (Ctor) {
- var options = Ctor.options;
- if (Ctor.super) {
- var superOptions = resolveConstructorOptions(Ctor.super);
- var cachedSuperOptions = Ctor.superOptions;
- if (superOptions !== cachedSuperOptions) {
- // super option changed,
- // need to resolve new options.
- Ctor.superOptions = superOptions;
- // check if there are any late-modified/attached options (#4976)
- var modifiedOptions = resolveModifiedOptions(Ctor);
- // update base extend options
- if (modifiedOptions) {
- extend(Ctor.extendOptions, modifiedOptions);
- }
- options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
- if (options.name) {
- options.components[options.name] = Ctor;
- }
- }
- }
- return options
- }
- function resolveModifiedOptions (Ctor) {
- var modified;
- var latest = Ctor.options;
- var sealed = Ctor.sealedOptions;
- for (var key in latest) {
- if (latest[key] !== sealed[key]) {
- if (!modified) { modified = {}; }
- modified[key] = latest[key];
- }
- }
- return modified
- }
- function Vue (options) {
- if ( true &&
- !(this instanceof Vue)
- ) {
- warn('Vue is a constructor and should be called with the `new` keyword');
- }
- this._init(options);
- }
- initMixin(Vue);
- stateMixin(Vue);
- eventsMixin(Vue);
- lifecycleMixin(Vue);
- renderMixin(Vue);
- /* */
- function initUse (Vue) {
- Vue.use = function (plugin) {
- var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
- if (installedPlugins.indexOf(plugin) > -1) {
- return this
- }
- // additional parameters
- var args = toArray(arguments, 1);
- args.unshift(this);
- if (typeof plugin.install === 'function') {
- plugin.install.apply(plugin, args);
- } else if (typeof plugin === 'function') {
- plugin.apply(null, args);
- }
- installedPlugins.push(plugin);
- return this
- };
- }
- /* */
- function initMixin$1 (Vue) {
- Vue.mixin = function (mixin) {
- this.options = mergeOptions(this.options, mixin);
- return this
- };
- }
- /* */
- function initExtend (Vue) {
- /**
- * Each instance constructor, including Vue, has a unique
- * cid. This enables us to create wrapped "child
- * constructors" for prototypal inheritance and cache them.
- */
- Vue.cid = 0;
- var cid = 1;
- /**
- * Class inheritance
- */
- Vue.extend = function (extendOptions) {
- extendOptions = extendOptions || {};
- var Super = this;
- var SuperId = Super.cid;
- var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
- if (cachedCtors[SuperId]) {
- return cachedCtors[SuperId]
- }
- var name = extendOptions.name || Super.options.name;
- if ( true && name) {
- validateComponentName(name);
- }
- var Sub = function VueComponent (options) {
- this._init(options);
- };
- Sub.prototype = Object.create(Super.prototype);
- Sub.prototype.constructor = Sub;
- Sub.cid = cid++;
- Sub.options = mergeOptions(
- Super.options,
- extendOptions
- );
- Sub['super'] = Super;
- // For props and computed properties, we define the proxy getters on
- // the Vue instances at extension time, on the extended prototype. This
- // avoids Object.defineProperty calls for each instance created.
- if (Sub.options.props) {
- initProps$1(Sub);
- }
- if (Sub.options.computed) {
- initComputed$1(Sub);
- }
- // allow further extension/mixin/plugin usage
- Sub.extend = Super.extend;
- Sub.mixin = Super.mixin;
- Sub.use = Super.use;
- // create asset registers, so extended classes
- // can have their private assets too.
- ASSET_TYPES.forEach(function (type) {
- Sub[type] = Super[type];
- });
- // enable recursive self-lookup
- if (name) {
- Sub.options.components[name] = Sub;
- }
- // keep a reference to the super options at extension time.
- // later at instantiation we can check if Super's options have
- // been updated.
- Sub.superOptions = Super.options;
- Sub.extendOptions = extendOptions;
- Sub.sealedOptions = extend({}, Sub.options);
- // cache constructor
- cachedCtors[SuperId] = Sub;
- return Sub
- };
- }
- function initProps$1 (Comp) {
- var props = Comp.options.props;
- for (var key in props) {
- proxy(Comp.prototype, "_props", key);
- }
- }
- function initComputed$1 (Comp) {
- var computed = Comp.options.computed;
- for (var key in computed) {
- defineComputed(Comp.prototype, key, computed[key]);
- }
- }
- /* */
- function initAssetRegisters (Vue) {
- /**
- * Create asset registration methods.
- */
- ASSET_TYPES.forEach(function (type) {
- Vue[type] = function (
- id,
- definition
- ) {
- if (!definition) {
- return this.options[type + 's'][id]
- } else {
- /* istanbul ignore if */
- if ( true && type === 'component') {
- validateComponentName(id);
- }
- if (type === 'component' && isPlainObject(definition)) {
- definition.name = definition.name || id;
- definition = this.options._base.extend(definition);
- }
- if (type === 'directive' && typeof definition === 'function') {
- definition = { bind: definition, update: definition };
- }
- this.options[type + 's'][id] = definition;
- return definition
- }
- };
- });
- }
- /* */
- function getComponentName (opts) {
- return opts && (opts.Ctor.options.name || opts.tag)
- }
- function matches (pattern, name) {
- if (Array.isArray(pattern)) {
- return pattern.indexOf(name) > -1
- } else if (typeof pattern === 'string') {
- return pattern.split(',').indexOf(name) > -1
- } else if (isRegExp(pattern)) {
- return pattern.test(name)
- }
- /* istanbul ignore next */
- return false
- }
- function pruneCache (keepAliveInstance, filter) {
- var cache = keepAliveInstance.cache;
- var keys = keepAliveInstance.keys;
- var _vnode = keepAliveInstance._vnode;
- for (var key in cache) {
- var cachedNode = cache[key];
- if (cachedNode) {
- var name = getComponentName(cachedNode.componentOptions);
- if (name && !filter(name)) {
- pruneCacheEntry(cache, key, keys, _vnode);
- }
- }
- }
- }
- function pruneCacheEntry (
- cache,
- key,
- keys,
- current
- ) {
- var cached$$1 = cache[key];
- if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
- cached$$1.componentInstance.$destroy();
- }
- cache[key] = null;
- remove(keys, key);
- }
- var patternTypes = [String, RegExp, Array];
- var KeepAlive = {
- name: 'keep-alive',
- abstract: true,
- props: {
- include: patternTypes,
- exclude: patternTypes,
- max: [String, Number]
- },
- created: function created () {
- this.cache = Object.create(null);
- this.keys = [];
- },
- destroyed: function destroyed () {
- for (var key in this.cache) {
- pruneCacheEntry(this.cache, key, this.keys);
- }
- },
- mounted: function mounted () {
- var this$1 = this;
- this.$watch('include', function (val) {
- pruneCache(this$1, function (name) { return matches(val, name); });
- });
- this.$watch('exclude', function (val) {
- pruneCache(this$1, function (name) { return !matches(val, name); });
- });
- },
- render: function render () {
- var slot = this.$slots.default;
- var vnode = getFirstComponentChild(slot);
- var componentOptions = vnode && vnode.componentOptions;
- if (componentOptions) {
- // check pattern
- var name = getComponentName(componentOptions);
- var ref = this;
- var include = ref.include;
- var exclude = ref.exclude;
- if (
- // not included
- (include && (!name || !matches(include, name))) ||
- // excluded
- (exclude && name && matches(exclude, name))
- ) {
- return vnode
- }
- var ref$1 = this;
- var cache = ref$1.cache;
- var keys = ref$1.keys;
- var key = vnode.key == null
- // same constructor may get registered as different local components
- // so cid alone is not enough (#3269)
- ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
- : vnode.key;
- if (cache[key]) {
- vnode.componentInstance = cache[key].componentInstance;
- // make current key freshest
- remove(keys, key);
- keys.push(key);
- } else {
- cache[key] = vnode;
- keys.push(key);
- // prune oldest entry
- if (this.max && keys.length > parseInt(this.max)) {
- pruneCacheEntry(cache, keys[0], keys, this._vnode);
- }
- }
- vnode.data.keepAlive = true;
- }
- return vnode || (slot && slot[0])
- }
- };
- var builtInComponents = {
- KeepAlive: KeepAlive
- };
- /* */
- function initGlobalAPI (Vue) {
- // config
- var configDef = {};
- configDef.get = function () { return config; };
- if (true) {
- configDef.set = function () {
- warn(
- 'Do not replace the Vue.config object, set individual fields instead.'
- );
- };
- }
- Object.defineProperty(Vue, 'config', configDef);
- // exposed util methods.
- // NOTE: these are not considered part of the public API - avoid relying on
- // them unless you are aware of the risk.
- Vue.util = {
- warn: warn,
- extend: extend,
- mergeOptions: mergeOptions,
- defineReactive: defineReactive$$1
- };
- Vue.set = set;
- Vue.delete = del;
- Vue.nextTick = nextTick;
- // 2.6 explicit observable API
- Vue.observable = function (obj) {
- observe(obj);
- return obj
- };
- Vue.options = Object.create(null);
- ASSET_TYPES.forEach(function (type) {
- Vue.options[type + 's'] = Object.create(null);
- });
- // this is used to identify the "base" constructor to extend all plain-object
- // components with in Weex's multi-instance scenarios.
- Vue.options._base = Vue;
- extend(Vue.options.components, builtInComponents);
- initUse(Vue);
- initMixin$1(Vue);
- initExtend(Vue);
- initAssetRegisters(Vue);
- }
- initGlobalAPI(Vue);
- Object.defineProperty(Vue.prototype, '$isServer', {
- get: isServerRendering
- });
- Object.defineProperty(Vue.prototype, '$ssrContext', {
- get: function get () {
- /* istanbul ignore next */
- return this.$vnode && this.$vnode.ssrContext
- }
- });
- // expose FunctionalRenderContext for ssr runtime helper installation
- Object.defineProperty(Vue, 'FunctionalRenderContext', {
- value: FunctionalRenderContext
- });
- Vue.version = '2.6.11';
- /**
- * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
- */
- var ARRAYTYPE = '[object Array]';
- var OBJECTTYPE = '[object Object]';
- // const FUNCTIONTYPE = '[object Function]'
- function diff(current, pre) {
- var result = {};
- syncKeys(current, pre);
- _diff(current, pre, '', result);
- return result
- }
- function syncKeys(current, pre) {
- if (current === pre) { return }
- var rootCurrentType = type(current);
- var rootPreType = type(pre);
- if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
- if(Object.keys(current).length >= Object.keys(pre).length){
- for (var key in pre) {
- var currentValue = current[key];
- if (currentValue === undefined) {
- current[key] = null;
- } else {
- syncKeys(currentValue, pre[key]);
- }
- }
- }
- } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
- if (current.length >= pre.length) {
- pre.forEach(function (item, index) {
- syncKeys(current[index], item);
- });
- }
- }
- }
- function _diff(current, pre, path, result) {
- if (current === pre) { return }
- var rootCurrentType = type(current);
- var rootPreType = type(pre);
- if (rootCurrentType == OBJECTTYPE) {
- if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
- setResult(result, path, current);
- } else {
- var loop = function ( key ) {
- var currentValue = current[key];
- var preValue = pre[key];
- var currentType = type(currentValue);
- var preType = type(preValue);
- if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
- if (currentValue !== pre[key]) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- }
- } else if (currentType == ARRAYTYPE) {
- if (preType != ARRAYTYPE) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- } else {
- if (currentValue.length < preValue.length) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- } else {
- currentValue.forEach(function (item, index) {
- _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
- });
- }
- }
- } else if (currentType == OBJECTTYPE) {
- if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
- setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
- } else {
- for (var subKey in currentValue) {
- _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
- }
- }
- }
- };
- for (var key in current) loop( key );
- }
- } else if (rootCurrentType == ARRAYTYPE) {
- if (rootPreType != ARRAYTYPE) {
- setResult(result, path, current);
- } else {
- if (current.length < pre.length) {
- setResult(result, path, current);
- } else {
- current.forEach(function (item, index) {
- _diff(item, pre[index], path + '[' + index + ']', result);
- });
- }
- }
- } else {
- setResult(result, path, current);
- }
- }
- function setResult(result, k, v) {
- // if (type(v) != FUNCTIONTYPE) {
- result[k] = v;
- // }
- }
- function type(obj) {
- return Object.prototype.toString.call(obj)
- }
- /* */
- function flushCallbacks$1(vm) {
- if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
- if (Object({"VUE_APP_NAME":"kuailaiyou","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
- var mpInstance = vm.$scope;
- console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
- ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
- }
- var copies = vm.__next_tick_callbacks.slice(0);
- vm.__next_tick_callbacks.length = 0;
- for (var i = 0; i < copies.length; i++) {
- copies[i]();
- }
- }
- }
- function hasRenderWatcher(vm) {
- return queue.find(function (watcher) { return vm._watcher === watcher; })
- }
- function nextTick$1(vm, cb) {
- //1.nextTick 之前 已 setData 且 setData 还未回调完成
- //2.nextTick 之前存在 render watcher
- if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
- if(Object({"VUE_APP_NAME":"kuailaiyou","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
- var mpInstance = vm.$scope;
- console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
- ']:nextVueTick');
- }
- return nextTick(cb, vm)
- }else{
- if(Object({"VUE_APP_NAME":"kuailaiyou","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
- var mpInstance$1 = vm.$scope;
- console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
- ']:nextMPTick');
- }
- }
- var _resolve;
- if (!vm.__next_tick_callbacks) {
- vm.__next_tick_callbacks = [];
- }
- vm.__next_tick_callbacks.push(function () {
- if (cb) {
- try {
- cb.call(vm);
- } catch (e) {
- handleError(e, vm, 'nextTick');
- }
- } else if (_resolve) {
- _resolve(vm);
- }
- });
- // $flow-disable-line
- if (!cb && typeof Promise !== 'undefined') {
- return new Promise(function (resolve) {
- _resolve = resolve;
- })
- }
- }
- /* */
- function cloneWithData(vm) {
- // 确保当前 vm 所有数据被同步
- var ret = Object.create(null);
- var dataKeys = [].concat(
- Object.keys(vm._data || {}),
- Object.keys(vm._computedWatchers || {}));
- dataKeys.reduce(function(ret, key) {
- ret[key] = vm[key];
- return ret
- }, ret);
- // vue-composition-api
- var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
- var rawBindings = compositionApiState && compositionApiState.rawBindings;
- if (rawBindings) {
- Object.keys(rawBindings).forEach(function (key) {
- ret[key] = vm[key];
- });
- }
- //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
- Object.assign(ret, vm.$mp.data || {});
- if (
- Array.isArray(vm.$options.behaviors) &&
- vm.$options.behaviors.indexOf('uni://form-field') !== -1
- ) { //form-field
- ret['name'] = vm.name;
- ret['value'] = vm.value;
- }
- return JSON.parse(JSON.stringify(ret))
- }
- var patch = function(oldVnode, vnode) {
- var this$1 = this;
- if (vnode === null) { //destroy
- return
- }
- if (this.mpType === 'page' || this.mpType === 'component') {
- var mpInstance = this.$scope;
- var data = Object.create(null);
- try {
- data = cloneWithData(this);
- } catch (err) {
- console.error(err);
- }
- data.__webviewId__ = mpInstance.data.__webviewId__;
- var mpData = Object.create(null);
- Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
- mpData[key] = mpInstance.data[key];
- });
- var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
- if (Object.keys(diffData).length) {
- if (Object({"VUE_APP_NAME":"kuailaiyou","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
- console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
- ']差量更新',
- JSON.stringify(diffData));
- }
- this.__next_tick_pending = true;
- mpInstance.setData(diffData, function () {
- this$1.__next_tick_pending = false;
- flushCallbacks$1(this$1);
- });
- } else {
- flushCallbacks$1(this);
- }
- }
- };
- /* */
- function createEmptyRender() {
- }
- function mountComponent$1(
- vm,
- el,
- hydrating
- ) {
- if (!vm.mpType) {//main.js 中的 new Vue
- return vm
- }
- if (vm.mpType === 'app') {
- vm.$options.render = createEmptyRender;
- }
- if (!vm.$options.render) {
- vm.$options.render = createEmptyRender;
- if (true) {
- /* istanbul ignore if */
- if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
- vm.$options.el || el) {
- warn(
- 'You are using the runtime-only build of Vue where the template ' +
- 'compiler is not available. Either pre-compile the templates into ' +
- 'render functions, or use the compiler-included build.',
- vm
- );
- } else {
- warn(
- 'Failed to mount component: template or render function not defined.',
- vm
- );
- }
- }
- }
-
- !vm._$fallback && callHook(vm, 'beforeMount');
- var updateComponent = function () {
- vm._update(vm._render(), hydrating);
- };
- // we set this to vm._watcher inside the watcher's constructor
- // since the watcher's initial patch may call $forceUpdate (e.g. inside child
- // component's mounted hook), which relies on vm._watcher being already defined
- new Watcher(vm, updateComponent, noop, {
- before: function before() {
- if (vm._isMounted && !vm._isDestroyed) {
- callHook(vm, 'beforeUpdate');
- }
- }
- }, true /* isRenderWatcher */);
- hydrating = false;
- return vm
- }
- /* */
- function renderClass (
- staticClass,
- dynamicClass
- ) {
- if (isDef(staticClass) || isDef(dynamicClass)) {
- return concat(staticClass, stringifyClass(dynamicClass))
- }
- /* istanbul ignore next */
- return ''
- }
- function concat (a, b) {
- return a ? b ? (a + ' ' + b) : a : (b || '')
- }
- function stringifyClass (value) {
- if (Array.isArray(value)) {
- return stringifyArray(value)
- }
- if (isObject(value)) {
- return stringifyObject(value)
- }
- if (typeof value === 'string') {
- return value
- }
- /* istanbul ignore next */
- return ''
- }
- function stringifyArray (value) {
- var res = '';
- var stringified;
- for (var i = 0, l = value.length; i < l; i++) {
- if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
- if (res) { res += ' '; }
- res += stringified;
- }
- }
- return res
- }
- function stringifyObject (value) {
- var res = '';
- for (var key in value) {
- if (value[key]) {
- if (res) { res += ' '; }
- res += key;
- }
- }
- return res
- }
- /* */
- var parseStyleText = cached(function (cssText) {
- var res = {};
- var listDelimiter = /;(?![^(]*\))/g;
- var propertyDelimiter = /:(.+)/;
- cssText.split(listDelimiter).forEach(function (item) {
- if (item) {
- var tmp = item.split(propertyDelimiter);
- tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
- }
- });
- return res
- });
- // normalize possible array / string values into Object
- function normalizeStyleBinding (bindingStyle) {
- if (Array.isArray(bindingStyle)) {
- return toObject(bindingStyle)
- }
- if (typeof bindingStyle === 'string') {
- return parseStyleText(bindingStyle)
- }
- return bindingStyle
- }
- /* */
- var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
- function getTarget(obj, path) {
- var parts = path.split('.');
- var key = parts[0];
- if (key.indexOf('__$n') === 0) { //number index
- key = parseInt(key.replace('__$n', ''));
- }
- if (parts.length === 1) {
- return obj[key]
- }
- return getTarget(obj[key], parts.slice(1).join('.'))
- }
- function internalMixin(Vue) {
- Vue.config.errorHandler = function(err, vm, info) {
- Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
- console.error(err);
- /* eslint-disable no-undef */
- var app = typeof getApp === 'function' && getApp();
- if (app && app.onError) {
- app.onError(err);
- }
- };
- var oldEmit = Vue.prototype.$emit;
- Vue.prototype.$emit = function(event) {
- if (this.$scope && event) {
- (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']).call(this.$scope, event, {
- __args__: toArray(arguments, 1)
- });
- }
- return oldEmit.apply(this, arguments)
- };
- Vue.prototype.$nextTick = function(fn) {
- return nextTick$1(this, fn)
- };
- MP_METHODS.forEach(function (method) {
- Vue.prototype[method] = function(args) {
- if (this.$scope && this.$scope[method]) {
- return this.$scope[method](args)
- }
- // mp-alipay
- if (typeof my === 'undefined') {
- return
- }
- if (method === 'createSelectorQuery') {
- /* eslint-disable no-undef */
- return my.createSelectorQuery(args)
- } else if (method === 'createIntersectionObserver') {
- /* eslint-disable no-undef */
- return my.createIntersectionObserver(args)
- }
- // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
- };
- });
- Vue.prototype.__init_provide = initProvide;
- Vue.prototype.__init_injections = initInjections;
- Vue.prototype.__call_hook = function(hook, args) {
- var vm = this;
- // #7573 disable dep collection when invoking lifecycle hooks
- pushTarget();
- var handlers = vm.$options[hook];
- var info = hook + " hook";
- var ret;
- if (handlers) {
- for (var i = 0, j = handlers.length; i < j; i++) {
- ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
- }
- }
- if (vm._hasHookEvent) {
- vm.$emit('hook:' + hook, args);
- }
- popTarget();
- return ret
- };
- Vue.prototype.__set_model = function(target, key, value, modifiers) {
- if (Array.isArray(modifiers)) {
- if (modifiers.indexOf('trim') !== -1) {
- value = value.trim();
- }
- if (modifiers.indexOf('number') !== -1) {
- value = this._n(value);
- }
- }
- if (!target) {
- target = this;
- }
- // 解决动态属性添加
- Vue.set(target, key, value);
- };
- Vue.prototype.__set_sync = function(target, key, value) {
- if (!target) {
- target = this;
- }
- // 解决动态属性添加
- Vue.set(target, key, value);
- };
- Vue.prototype.__get_orig = function(item) {
- if (isPlainObject(item)) {
- return item['$orig'] || item
- }
- return item
- };
- Vue.prototype.__get_value = function(dataPath, target) {
- return getTarget(target || this, dataPath)
- };
- Vue.prototype.__get_class = function(dynamicClass, staticClass) {
- return renderClass(staticClass, dynamicClass)
- };
- Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
- if (!dynamicStyle && !staticStyle) {
- return ''
- }
- var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
- var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
- return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
- };
- Vue.prototype.__map = function(val, iteratee) {
- //TODO 暂不考虑 string
- var ret, i, l, keys, key;
- if (Array.isArray(val)) {
- ret = new Array(val.length);
- for (i = 0, l = val.length; i < l; i++) {
- ret[i] = iteratee(val[i], i);
- }
- return ret
- } else if (isObject(val)) {
- keys = Object.keys(val);
- ret = Object.create(null);
- for (i = 0, l = keys.length; i < l; i++) {
- key = keys[i];
- ret[key] = iteratee(val[key], key, i);
- }
- return ret
- } else if (typeof val === 'number') {
- ret = new Array(val);
- for (i = 0, l = val; i < l; i++) {
- // 第一个参数暂时仍和小程序一致
- ret[i] = iteratee(i, i);
- }
- return ret
- }
- return []
- };
- }
- /* */
- var LIFECYCLE_HOOKS$1 = [
- //App
- 'onLaunch',
- 'onShow',
- 'onHide',
- 'onUniNViewMessage',
- 'onPageNotFound',
- 'onThemeChange',
- 'onError',
- 'onUnhandledRejection',
- //Page
- 'onInit',
- 'onLoad',
- // 'onShow',
- 'onReady',
- // 'onHide',
- 'onUnload',
- 'onPullDownRefresh',
- 'onReachBottom',
- 'onTabItemTap',
- 'onAddToFavorites',
- 'onShareTimeline',
- 'onShareAppMessage',
- 'onResize',
- 'onPageScroll',
- 'onNavigationBarButtonTap',
- 'onBackPress',
- 'onNavigationBarSearchInputChanged',
- 'onNavigationBarSearchInputConfirmed',
- 'onNavigationBarSearchInputClicked',
- //Component
- // 'onReady', // 兼容旧版本,应该移除该事件
- 'onPageShow',
- 'onPageHide',
- 'onPageResize'
- ];
- function lifecycleMixin$1(Vue) {
- //fixed vue-class-component
- var oldExtend = Vue.extend;
- Vue.extend = function(extendOptions) {
- extendOptions = extendOptions || {};
- var methods = extendOptions.methods;
- if (methods) {
- Object.keys(methods).forEach(function (methodName) {
- if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
- extendOptions[methodName] = methods[methodName];
- delete methods[methodName];
- }
- });
- }
- return oldExtend.call(this, extendOptions)
- };
- var strategies = Vue.config.optionMergeStrategies;
- var mergeHook = strategies.created;
- LIFECYCLE_HOOKS$1.forEach(function (hook) {
- strategies[hook] = mergeHook;
- });
- Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
- }
- /* */
- // install platform patch function
- Vue.prototype.__patch__ = patch;
- // public mount method
- Vue.prototype.$mount = function(
- el ,
- hydrating
- ) {
- return mountComponent$1(this, el, hydrating)
- };
- lifecycleMixin$1(Vue);
- internalMixin(Vue);
- /* */
- /* harmony default export */ __webpack_exports__["default"] = (Vue);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
- /***/ }),
- /***/ 5:
- /*!************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/pages.json ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- /***/ }),
- /***/ 9:
- /*!**************************************************************!*\
- !*** D:/workspace/project_forwork/bizdbKLY_app/commonFun.js ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
- var _goeasy224Min = _interopRequireDefault(__webpack_require__(/*! ./lib/goeasy-2.2.4.min.js */ 10));
- var _imservice = _interopRequireDefault(__webpack_require__(/*! ./lib/imservice */ 11));
- var _commonData = _interopRequireDefault(__webpack_require__(/*! ./commonData.js */ 13));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;}
- /*线上使用*/
- // 静态图片路径
- //const serverUrl = 'https://api.kuailaiyou.top/prjcenter/prjKLY/fileroot/images/front/';
- // 请求URL路径
- //const serverUrlReq = 'https://api.kuailaiyou.top/';
- // const serverUrlReq = 'https://zpwebapi.kaidekuai.com/';
- // 请求webviewURL路径
- //const webviewServerUrlReq = 'https://admin.kuailaiyou.top/';
- /*本地测试*/
- // 静态图片路径
- var serverUrl = 'http://api.bizdbKLY.com/prjcenter/prjKLY/fileroot/images/front/';
- // 请求URL路径
- var serverUrlReq = 'http://api.bizdbKLY.com/';
- // 请求webviewURL路径
- var webviewServerUrlReq = 'http://admin.bizdbKLY.com/';
- // request数据
- var requestUrl = function requestUrl(url, data, callback) {var auto_change_params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;var Trader2 = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
- // 改造URL
- var url_new = Trader2 ? url : _commonData.default.sys_role == 1 ? url.replace('Worker', 'Trader') : url.replace(
- 'Trader', 'Worker');
- console.log('原请求路径:' + url + ' 改造后请求路径:' + url_new);
- var data_new = _objectSpread(_objectSpread(_objectSpread({},
- data),
- _commonData.default.data_token), {}, {
- FOREND_TOKEN: uni.getStorageSync('FOREND_TOKEN'),
- phone: data.phone ? data.phone : uni.getStorageSync('PHONE')
- // FOREND_TOKEN: '0_16415187935b9011bc8aa3ce44cb0cf40dac3d48b4', //用户
- // FOREND_TOKEN: '0_1641527485b098792a509f99b8c991030644125b2b', //商户
- // phone: '17640181459',
- });
- // 改造参数
- if (auto_change_params) {
- if (data_new.bizCatalog) {
- data_new.bizCatalog = _commonData.default.sys_role == 1 ? data_new.bizCatalog.replace('Worker', 'Trader') :
- data_new.
- bizCatalog.replace('Trader', 'Worker');
- }
- if (data_new.handleMode) {
- data_new.handleMode = _commonData.default.sys_role == 1 ? data_new.handleMode.replace('Worker', 'Trader') :
- data_new.
- handleMode.replace('Trader', 'Worker');
- }
- }
- var requestTask = uni.request({
- url: serverUrlReq + 'ajaxEntryCenter.php?WsAjaxPrj=KLY' + url_new,
- method: 'post',
- header: {
- 'content-type': 'application/json' },
- data: _objectSpread({},
- data_new),
- success: function success(res) {
- // 异常处理
- if (res.data.ErrMsg) {
- uni.hideLoading();
- // res.data.ErrMsg为字符串时做一般处理
- if (typeof res.data.ErrMsg == 'string') {
- // FOREND_TOKEN异常处理
- if (res.data.ErrMsg.indexOf('FOREND_TOKEN') != -1 || res.data.ErrMsg.indexOf(
- 'phone') != -1) {
- uni.showModal({
- title: '当前未登录',
- confirmText: '去登陆',
- cancelText: '游客登录',
- showCancel: _commonData.default.sys_role == 1 ? false : true,
- success: function success(res) {
- if (res.confirm) {
- uni.navigateTo({
- url: '/pages/login/index?need_back=1' });
- } else {
- // 设定游客模式
- uni.setStorageSync('IS_TOURIST', '1');
- }
- callback({
- status: false,
- data: '未登录' });
- } });
- return;
- }
- // 其他异常处理
- uni.showModal({
- title: '操作失败',
- content: JSON.stringify(res.data.ErrMsg),
- showCancel: false,
- success: function success(res2) {
- callback({
- status: false });
- } });
- } else {
- // res.data.ErrMsg为非字符串时做特殊回调处理
- callback({
- status: false,
- data: res.data });
- }
- } else {
- // 非异常处理
- callback({
- status: true,
- data: res.data });
- }
- },
- fail: function fail(result) {
- uni.hideLoading();
- uni.showModal({
- // title: '接口调用网路错误',
- content: JSON.stringify(result.errMsg),
- showCancel: false,
- success: function success(res) {
- callback({
- status: false });
- } });
- } });
- };
- // 获取位置信息
- var getPositionLocal = function getPositionLocal(callback) {
- uni.getLocation({
- type: 'wgs84',
- success: function success(res) {
- // console.log('位置信息')
- // console.log(res)
- var latitude = res.latitude;
- var longitude = res.longitude;
- // callback({
- // status: true,
- // city: '天津市',
- // latitude,
- // longitude,
- // })
- // return
- requestUrl('&WsAjaxBiz=Public&WsAjaxAction=entityDataHandle', {
- bizCatalog: 'LbsEntity',
- handleMode: 'fetchAddressByLocation',
- lat: latitude,
- lng: longitude },
- function (res) {
- // console.log('根据经纬度返回城市名称')
- // console.log(res)
- if (res.status) {
- callback({
- status: true,
- city: res.data.Result.city,
- latitude: latitude,
- longitude: longitude });
- } else {
- // uni.showModal({
- // title: '获取位置失败',
- // content: JSON.stringify(res),
- // showCancel: false
- // })
- callback({
- status: false });
- }
- });
- },
- fail: function fail(e) {
- if (e.errMsg.indexOf('频繁调用') == -1) {
- uni.showModal({
- title: '获取位置信息失败',
- content: JSON.stringify(e),
- showCancel: false });
- }
- // console.log('获取位置信息失败')
- // console.log(e)
- callback({
- status: false });
- },
- complete: function complete() {
- uni.hideLoading();
- } });
- };
- // 上传图片/视频到阿里云OSS
- var uploadFileApiOSS = function uploadFileApiOSS(callback) {var fileType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'image';var allow_album = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
- if (fileType == 'image') {
- uni.chooseImage({
- count: 1,
- sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
- sourceType: allow_album ? ['album', 'camera'] : ['camera'], //从相册选择
- success: function success(res) {
- success_fun(res.tempFilePaths[0], callback);
- },
- fail: function fail(res) {
- fail_fun(res, callback);
- } });
- } else {
- uni.chooseVideo({
- count: 1,
- sourceType: ['camera', 'album'],
- success: function success(res) {
- success_fun(res.tempFilePath, callback);
- },
- fail: function fail(res) {
- fail_fun(res, callback);
- } });
- }
- // 成功回调
- function success_fun(filePath, callback) {
- uni.showLoading({
- title: '上传中...',
- mask: true });
- var tiemr = new Date();
- var address = tiemr.getFullYear() + '' + (tiemr.getMonth() + 1) + '' + tiemr.getDate();
- address = 'zskp/userHead/' + address + '/';
- var str = filePath.substr(filePath.lastIndexOf('.'));
- var nameStr = address + tiemr.getTime() + str;
- var ossUrl = 'https://goeasy-kuailaiyou.oss-cn-beijing.aliyuncs.com/';
- uni.uploadFile({
- url: ossUrl,
- filePath: filePath,
- fileType: fileType,
- name: 'file',
- formData: {
- name: nameStr,
- key: nameStr,
- policy: 'eyJleHBpcmF0aW9uIjoiMjA1MC0wMS0wMVQxMjowMDowMC4wMDBaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwMF1dfQ==', // 输入你获取的的policy
- OSSAccessKeyId: 'LTAI5tSQRXPMmcJbE3TGDPCr', // 输入你的AccessKeyId
- success_action_status: '200', // 让服务端返回200,不然,默认会返回204
- signature: 'sjxOXt7eILxUdyE/0idSJaCGrc8=' // 输入你获取的的signature
- },
- success: function success(res) {
- uni.hideLoading();
- if (res.statusCode == '200') {
- callback({
- status: true,
- data: ossUrl + nameStr });
- } else {
- uni.showModal({
- title: 'OSS文件上传失败',
- content: JSON.stringify(res),
- showCancel: false,
- success: function success(res) {
- callback({
- status: false });
- } });
- }
- } });
- }
- // 失败回调
- function fail_fun(res, callback) {
- // console.log(res.errMsg.indexOf('cancel'))
- if (res.errMsg.indexOf('cancel') == -1) {
- uni.showModal({
- title: '文件选择失败',
- content: JSON.stringify(res),
- showCancel: false,
- success: function success(res) {
- callback({
- status: false });
- } });
- }
- }
- };
- // 上传文件到服务器
- var uploadFileApi = function uploadFileApi(callback) {
- uni.chooseImage({
- count: 1,
- sizeType: ['compressed'],
- success: function success(chooseImageRes) {
- uni.showLoading({
- title: '上传中...',
- mask: true });
- var tempFilePaths = chooseImageRes.tempFilePaths;
- uni.uploadFile({
- url: serverUrlReq + 'ajaxEntryCenter.php?WsAjaxPrj=KLY' +
- "&WsAjaxBiz=PublicAPP&WsAjaxAction=fileUpload",
- filePath: tempFilePaths[0],
- name: 'file',
- formData: {
- 'uploadfile': 'file' },
- success: function success(uploadFileRes) {
- console.log(uploadFileRes);
- var res = JSON.parse(uploadFileRes.data);
- uni.hideLoading();
- if (res.ErrMsg) {
- uni.showModal({
- title: '文件上传失败',
- content: res.ErrMsg,
- showCancel: false,
- success: function success(res) {
- callback({
- status: false });
- } });
- } else {
- callback({
- status: true,
- data: res.Result });
- }
- },
- fail: function fail(result) {
- uni.hideLoading();
- uni.showModal({
- title: '文件上传fail',
- content: JSON.stringify(result),
- showCancel: false,
- success: function success(res) {
- callback({
- status: false });
- } });
- } });
- },
- fail: function fail(res) {
- uni.showModal({
- title: '文件选择失败',
- content: JSON.stringify(res),
- showCancel: false,
- success: function success(res) {
- callback({
- status: false });
- } });
- } });
- };
- // goEasy相关
- var goEasy = _goeasy224Min.default.getInstance({
- host: "hangzhou.goeasy.io", //应用所在的区域地址: 【hangzhou.goeasy.io |singapore.goeasy.io】
- appkey: "BC-b1e650ef62484e08826652d48242b06b", // common key,
- modules: ["im"],
- // true表示支持通知栏提醒,false则表示不需要通知栏提醒
- allowNotification: true //仅有效于app,小程序和H5将会被自动忽略
- });
- goEasy.onClickNotification(function (message) {
- var currentUrl;
- var routes = getCurrentPages();
- if (routes && routes.length) {
- var curRoute = routes[routes.length - 1].route;
- var curParam = routes[routes.length - 1].options;
- currentUrl = '/' + curRoute + "?to=".concat(curParam.to);
- }
- var newUrl;
- switch (message.toType) {
- case _goeasy224Min.default.IM_SCENE.PRIVATE:
- newUrl = '/pages/message/chat?to=' + message.senderId;
- break;
- // case GoEasy.IM_SCENE.GROUP:
- // newUrl = '/pages/chat/groupChat/groupChat?to=' + message.groupId;
- // break;
- }
- if (currentUrl !== newUrl) {
- uni.navigateTo({
- url: newUrl });
- }
- });
- var init_go_easy = function init_go_easy(user_info, type) {
- var currentUser = {
- "uuid": type + user_info.id,
- "name": type == 'user_' ? user_info.true_name ? user_info.true_name : user_info.nickname : user_info.
- company_name ? user_info.company_name : user_info.nickname ? user_info.nickname :
- '商家名称',
- "avatar": user_info.profile_photo != '' ? user_info.profile_photo : '/static/user.png' };
- // console.log('初始化init_go_easy')
- // console.log(currentUser)
- uni.setStorageSync('currentUser', currentUser);
- if (goEasy.getConnectionStatus() === 'disconnected') {
- getApp().globalData.imService = new _imservice.default(goEasy, _goeasy224Min.default);
- getApp().globalData.imService.connect(currentUser);
- }
- };
- // 获取会话最新数据
- var get_message_data = function get_message_data() {
- //监听会话列表变化
- goEasy.im.on(_goeasy224Min.default.IM_EVENT.CONVERSATIONS_UPDATED, function (content) {});
- goEasy.im.latestConversations({
- onSuccess: function onSuccess(result) {var _this = this;
- var content = result.content;
- // console.log('加载会话列表成功')
- // console.log(content)
- var unreadTotal = content.unreadTotal;
- get_user_info(function (res) {
- var ss_notice_unreaded = res.data.Result.ss_notice_unreaded;
- _this.unreadTotal = Number(unreadTotal) + ss_notice_unreaded;
- if (_this.unreadTotal > 0) {
- uni.setTabBarBadge({
- index: 1,
- text: _this.unreadTotal.toString() });
- } else {
- uni.removeTabBarBadge({
- index: 1 });
- }
- });
- },
- onFailed: function onFailed(error) {
- console.log("获取最新会话列表失败:, code:" + error.code + " content:" + error.content);
- } });
- };
- var formatDate = function formatDate(t) {
- t = t || Date.now();
- var time = new Date(t);
- var str = time.getMonth() < 9 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
- str += '-';
- str += time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
- str += ' ';
- str += time.getHours();
- str += ':';
- str += time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
- return str;
- };
- var formatDate2 = function formatDate2(now) {
- var y = '';
- var m = '';
- var d = '';
- var h = '';
- var mi = '';
- var s = '';
- y = now.getFullYear();
- m = now.getMonth() + 1;
- d = now.getDate();
- h = now.getHours();
- mi = now.getMinutes();
- s = now.getSeconds();
- return y + '-' + (m < 10 ? "0" + m : m) + '-' + (d < 10 ? "0" + d : d);
- };
- function getNextDate(date, day) {
- var dd = new Date(date);
- dd.setDate(dd.getDate() + day);
- var y = dd.getFullYear();
- var m = dd.getMonth() + 1 < 10 ? "0" + (dd.getMonth() + 1) : dd.getMonth() + 1;
- var d = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();
- return y + "-" + m + "-" + d;
- }
- // 检测是否包括手机号码等敏感信息
- var is_contain_sensitive_words = function is_contain_sensitive_words(str) {
- str = String(str);
- // 检测手机号码
- if (str.length >= 11) {
- for (var i = 0; i < str.length - 10; i++) {
- var str_new = Number(str.slice(i, i + 11));
- if (!isNaN(str_new)) {
- if (str_new >= 13000000000 && str_new < 20000000000) {
- return true;
- }
- }
- }
- }
- // 检测是否包括敏感词汇
- var sensitive_words = [
- '共产党', '民进党', '民主进步党', '国民党', '中华民国', '蔡英文', '苏贞昌', '吴钊燮', '微信', '手机号', '电话号码'];
- for (var _i in sensitive_words) {
- if (str.indexOf(sensitive_words[_i]) !== -1) {
- return true;
- }
- }
- return false;
- };
- // 从数组中多选数组
- var select_from_arr = function select_from_arr(data, index) {
- var district = data[0];
- var district_index_arr = data[1];
- var index_of = district_index_arr.indexOf(index);
- if (index_of === -1) {
- district_index_arr.push(index);
- return district_index_arr;
- } else {
- var district_index_new = [];
- district_index_arr.map(function (item, index2) {
- if (index2 !== index_of) {
- district_index_new.push(item);
- }
- });
- return district_index_new;
- }
- };
- // 获取最新用户信息
- var get_user_info = function get_user_info(callback) {
- requestUrl('&WsAjaxBiz=Worker&WsAjaxAction=entityDataHandle', {
- handleMode: 'fetch',
- bizCatalog: 'WorkerEntity' },
- function (res) {
- callback(res);
- });
- };
- // 从身份证中获取年龄
- var get_age_from_id_num = function get_age_from_id_num(idcard) {return idcard && idcard.length == 18 && !isNaN(idcard.slice(6, 10)) ? new Date().
- getFullYear() - Number(idcard.slice(6, 10)) : '';};
- // 时间戳转换为时间
- function getLocalTime(nS) {
- return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/, ' ');
- }
- // 检测是否为身份证号码
- function IsIdCard(str) {
- var reg = /^[1-8][1-7]\d{4}(?:19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dX]$/;
- return reg.test(str);
- }
- // 核销/支付
- var paySettleMer = function paySettleMer(workid) {var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};var handleMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'paySettle';
- console.log(handleMode);
- uni.showLoading({
- title: '加载中...',
- mask: true });
- var params2 = {
- bizCatalog: 'TodoWorkEntity',
- handleMode: 'fetch',
- workid: workid };
- // 查询待支付金额
- requestUrl('&WsAjaxBiz=Worker&WsAjaxAction=entityDataHandle', params2, function (res) {
- if (res.status) {
- console.log('查询待支付金额');
- console.log(res.data);
- uni.hideLoading();
- uni.showModal({
- title: '确认支付' + res.data.Result.btr_feetotal + '元?',
- success: function success(res) {
- if (res.confirm) {
- uni.showLoading({
- title: '加载中...',
- mask: true });
- uni.login({
- success: function success(res) {
- var params = {
- bizCatalog: 'TodoWorkEntity',
- handleMode: handleMode,
- workid: workid,
- minaCode: res.code,
- todo: 'allow' };
- console.log('paySettle处理请求参数');
- console.log('支付参数', params);
- requestUrl(
- '&WsAjaxBiz=Trader&WsAjaxAction=entityDataHandle',
- params,
- function (res) {
- console.log('paySettle处理获取参数');
- console.log(res);
- if (res.status) {
- var prePayInfo = res.data.Result.
- prePayInfo;
- // 走支付
- if (prePayInfo) {
- console.log('prePayInfo');
- console.log(prePayInfo);
- uni.hideLoading();
- uni.requestPayment(_objectSpread(_objectSpread({},
- prePayInfo), {}, {
- success: function success(res2) {
- uni.showModal({
- title: '支付成功',
- showCancel: false,
- success: function success(res) {
- callback();
- } });
- },
- fail: function fail(
- res2) {
- if (res2.
- errMsg.
- indexOf(
- 'cancel') ==
- -1)
- {
- uni.showModal({
- title: '支付失败',
- content: JSON.
- stringify(
- res2),
- showCancel: false });
- }
- } }));
- } else {
- // 走余额
- uni.showModal({
- title: '支付成功',
- showCancel: false,
- success: function success(res) {
- callback();
- } });
- uni.hideLoading();
- return;
- }
- }
- uni.hideLoading();
- });
- } });
- }
- } });
- }
- });
- };
- // 处理报名者假头像
- var formate_enrolled_heads = function formate_enrolled_heads(enrolled_heads, num) {
- var res_arr = [];
- if (num > 0) {
- num = num > 3 ? 3 : num;
- var enrolled_heads_arr = enrolled_heads.split(',');
- if (enrolled_heads_arr.length > 1) {
- res_arr = enrolled_heads_arr.slice(0, num);
- }
- }
- return res_arr;
- };
- // 计算时间
- var calc_hours = function calc_hours(start_time, end_time) {
- var h1 = start_time.slice(0, 2);
- var min1 = start_time.slice(3, 5);
- var h2 = end_time.slice(0, 2);
- var min2 = end_time.slice(3, 5);
- var res = Number(h2) - Number(h1) + (Number(min2) - Number(min1)) / 60;
- return res < 0 ? '--' : res.toFixed(1);
- };
- // 计算日期
- var calc_date = function calc_date(begin_datetime, finish_datetime) {
- if (begin_datetime && finish_datetime) {
- var total_date = (new Date(finish_datetime) - new Date(begin_datetime)) / (1000 * 3600 * 24) + 1;
- if (total_date > 0) {
- return total_date;
- } else {
- return '--';
- }
- } else {
- return '--';
- }
- };
- var formate_name_card = function formate_name_card(data) {
- var res = _objectSpread({},
- data);
- var lawer_name = res.lawer_name;
- var lawer_idcard = res.lawer_idcard;
- var str = '';
- for (var i = 0; i < lawer_name.length - 1; i++) {
- str += '*';
- }
- res.lawer_name = str + lawer_name.slice(lawer_name.length - 1, lawer_name.length);
- str = '';
- for (var _i2 = 0; _i2 < 13; _i2++) {
- str += '*';
- }
- res.lawer_idcard = lawer_idcard.slice(0, 3) + str + lawer_idcard.slice(16, 18);
- return res;
- };
- var formate_name_card_mem = function formate_name_card_mem(data) {
- var res = _objectSpread({},
- data);
- var true_name = res.true_name;
- var idcard = res.idcard;
- var str = '';
- for (var i = 0; i < true_name.length - 1; i++) {
- str += '*';
- }
- res.true_name = str + true_name.slice(true_name.length - 1, true_name.length);
- str = '';
- for (var _i3 = 0; _i3 < 13; _i3++) {
- str += '*';
- }
- res.idcard = idcard.slice(0, 3) + str + idcard.slice(16, 18);
- return res;
- };var _default =
- {
- formate_name_card_mem: formate_name_card_mem,
- formate_name_card: formate_name_card,
- formatDate: formatDate,
- init_go_easy: init_go_easy,
- GoEasy: _goeasy224Min.default,
- goEasy: goEasy,
- serverUrl: serverUrl,
- serverUrlReq: serverUrlReq,
- webviewServerUrlReq: webviewServerUrlReq,
- requestUrl: requestUrl,
- select_from_arr: select_from_arr,
- uploadFileApi: uploadFileApi,
- uploadFileApiOSS: uploadFileApiOSS,
- getPositionLocal: getPositionLocal,
- get_user_info: get_user_info,
- is_contain_sensitive_words: is_contain_sensitive_words,
- get_age_from_id_num: get_age_from_id_num,
- getLocalTime: getLocalTime,
- IsIdCard: IsIdCard,
- formatDate2: formatDate2,
- paySettleMer: paySettleMer,
- get_message_data: get_message_data,
- formate_enrolled_heads: formate_enrolled_heads,
- calc_hours: calc_hours,
- calc_date: calc_date,
- getNextDate: getNextDate };exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
- /***/ })
- }]);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map
|