vendor.js 1.8 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!************************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  6. \************************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. /* 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 _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  11. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 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;}
  12. var realAtob;
  13. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  14. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  15. if (typeof atob !== 'function') {
  16. realAtob = function realAtob(str) {
  17. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  18. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  19. // Adding the padding if missing, for semplicity
  20. str += '=='.slice(2 - (str.length & 3));
  21. var bitmap;var result = '';var r1;var r2;var i = 0;
  22. for (; i < str.length;) {
  23. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  24. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  25. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  26. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  27. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  28. }
  29. return result;
  30. };
  31. } else {
  32. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  33. realAtob = atob;
  34. }
  35. function b64DecodeUnicode(str) {
  36. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  37. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  38. }).join(''));
  39. }
  40. function getCurrentUserInfo() {
  41. var token = wx.getStorageSync('uni_id_token') || '';
  42. var tokenArr = token.split('.');
  43. if (!token || tokenArr.length !== 3) {
  44. return {
  45. uid: null,
  46. role: [],
  47. permission: [],
  48. tokenExpired: 0 };
  49. }
  50. var userInfo;
  51. try {
  52. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  53. } catch (error) {
  54. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  55. }
  56. userInfo.tokenExpired = userInfo.exp * 1000;
  57. delete userInfo.exp;
  58. delete userInfo.iat;
  59. return userInfo;
  60. }
  61. function uniIdMixin(Vue) {
  62. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  63. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  64. return role.indexOf(roleId) > -1;
  65. };
  66. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  67. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  68. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  69. };
  70. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  71. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  72. return tokenExpired > Date.now();
  73. };
  74. }
  75. var _toString = Object.prototype.toString;
  76. var hasOwnProperty = Object.prototype.hasOwnProperty;
  77. function isFn(fn) {
  78. return typeof fn === 'function';
  79. }
  80. function isStr(str) {
  81. return typeof str === 'string';
  82. }
  83. function isPlainObject(obj) {
  84. return _toString.call(obj) === '[object Object]';
  85. }
  86. function hasOwn(obj, key) {
  87. return hasOwnProperty.call(obj, key);
  88. }
  89. function noop() {}
  90. /**
  91. * Create a cached version of a pure function.
  92. */
  93. function cached(fn) {
  94. var cache = Object.create(null);
  95. return function cachedFn(str) {
  96. var hit = cache[str];
  97. return hit || (cache[str] = fn(str));
  98. };
  99. }
  100. /**
  101. * Camelize a hyphen-delimited string.
  102. */
  103. var camelizeRE = /-(\w)/g;
  104. var camelize = cached(function (str) {
  105. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  106. });
  107. var HOOKS = [
  108. 'invoke',
  109. 'success',
  110. 'fail',
  111. 'complete',
  112. 'returnValue'];
  113. var globalInterceptors = {};
  114. var scopedInterceptors = {};
  115. function mergeHook(parentVal, childVal) {
  116. var res = childVal ?
  117. parentVal ?
  118. parentVal.concat(childVal) :
  119. Array.isArray(childVal) ?
  120. childVal : [childVal] :
  121. parentVal;
  122. return res ?
  123. dedupeHooks(res) :
  124. res;
  125. }
  126. function dedupeHooks(hooks) {
  127. var res = [];
  128. for (var i = 0; i < hooks.length; i++) {
  129. if (res.indexOf(hooks[i]) === -1) {
  130. res.push(hooks[i]);
  131. }
  132. }
  133. return res;
  134. }
  135. function removeHook(hooks, hook) {
  136. var index = hooks.indexOf(hook);
  137. if (index !== -1) {
  138. hooks.splice(index, 1);
  139. }
  140. }
  141. function mergeInterceptorHook(interceptor, option) {
  142. Object.keys(option).forEach(function (hook) {
  143. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  144. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  145. }
  146. });
  147. }
  148. function removeInterceptorHook(interceptor, option) {
  149. if (!interceptor || !option) {
  150. return;
  151. }
  152. Object.keys(option).forEach(function (hook) {
  153. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  154. removeHook(interceptor[hook], option[hook]);
  155. }
  156. });
  157. }
  158. function addInterceptor(method, option) {
  159. if (typeof method === 'string' && isPlainObject(option)) {
  160. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  161. } else if (isPlainObject(method)) {
  162. mergeInterceptorHook(globalInterceptors, method);
  163. }
  164. }
  165. function removeInterceptor(method, option) {
  166. if (typeof method === 'string') {
  167. if (isPlainObject(option)) {
  168. removeInterceptorHook(scopedInterceptors[method], option);
  169. } else {
  170. delete scopedInterceptors[method];
  171. }
  172. } else if (isPlainObject(method)) {
  173. removeInterceptorHook(globalInterceptors, method);
  174. }
  175. }
  176. function wrapperHook(hook) {
  177. return function (data) {
  178. return hook(data) || data;
  179. };
  180. }
  181. function isPromise(obj) {
  182. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  183. }
  184. function queue(hooks, data) {
  185. var promise = false;
  186. for (var i = 0; i < hooks.length; i++) {
  187. var hook = hooks[i];
  188. if (promise) {
  189. promise = Promise.resolve(wrapperHook(hook));
  190. } else {
  191. var res = hook(data);
  192. if (isPromise(res)) {
  193. promise = Promise.resolve(res);
  194. }
  195. if (res === false) {
  196. return {
  197. then: function then() {} };
  198. }
  199. }
  200. }
  201. return promise || {
  202. then: function then(callback) {
  203. return callback(data);
  204. } };
  205. }
  206. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  207. ['success', 'fail', 'complete'].forEach(function (name) {
  208. if (Array.isArray(interceptor[name])) {
  209. var oldCallback = options[name];
  210. options[name] = function callbackInterceptor(res) {
  211. queue(interceptor[name], res).then(function (res) {
  212. /* eslint-disable no-mixed-operators */
  213. return isFn(oldCallback) && oldCallback(res) || res;
  214. });
  215. };
  216. }
  217. });
  218. return options;
  219. }
  220. function wrapperReturnValue(method, returnValue) {
  221. var returnValueHooks = [];
  222. if (Array.isArray(globalInterceptors.returnValue)) {
  223. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  224. }
  225. var interceptor = scopedInterceptors[method];
  226. if (interceptor && Array.isArray(interceptor.returnValue)) {
  227. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  228. }
  229. returnValueHooks.forEach(function (hook) {
  230. returnValue = hook(returnValue) || returnValue;
  231. });
  232. return returnValue;
  233. }
  234. function getApiInterceptorHooks(method) {
  235. var interceptor = Object.create(null);
  236. Object.keys(globalInterceptors).forEach(function (hook) {
  237. if (hook !== 'returnValue') {
  238. interceptor[hook] = globalInterceptors[hook].slice();
  239. }
  240. });
  241. var scopedInterceptor = scopedInterceptors[method];
  242. if (scopedInterceptor) {
  243. Object.keys(scopedInterceptor).forEach(function (hook) {
  244. if (hook !== 'returnValue') {
  245. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  246. }
  247. });
  248. }
  249. return interceptor;
  250. }
  251. 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];}
  252. var interceptor = getApiInterceptorHooks(method);
  253. if (interceptor && Object.keys(interceptor).length) {
  254. if (Array.isArray(interceptor.invoke)) {
  255. var res = queue(interceptor.invoke, options);
  256. return res.then(function (options) {
  257. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  258. });
  259. } else {
  260. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  261. }
  262. }
  263. return api.apply(void 0, [options].concat(params));
  264. }
  265. var promiseInterceptor = {
  266. returnValue: function returnValue(res) {
  267. if (!isPromise(res)) {
  268. return res;
  269. }
  270. return new Promise(function (resolve, reject) {
  271. res.then(function (res) {
  272. if (res[0]) {
  273. reject(res[0]);
  274. } else {
  275. resolve(res[1]);
  276. }
  277. });
  278. });
  279. } };
  280. var SYNC_API_RE =
  281. /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/;
  282. var CONTEXT_API_RE = /^create|Manager$/;
  283. // Context例外情况
  284. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  285. // 同步例外情况
  286. var ASYNC_API = ['createBLEConnection'];
  287. var CALLBACK_API_RE = /^on|^off/;
  288. function isContextApi(name) {
  289. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  290. }
  291. function isSyncApi(name) {
  292. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  293. }
  294. function isCallbackApi(name) {
  295. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  296. }
  297. function handlePromise(promise) {
  298. return promise.then(function (data) {
  299. return [null, data];
  300. }).
  301. catch(function (err) {return [err];});
  302. }
  303. function shouldPromise(name) {
  304. if (
  305. isContextApi(name) ||
  306. isSyncApi(name) ||
  307. isCallbackApi(name))
  308. {
  309. return false;
  310. }
  311. return true;
  312. }
  313. /* eslint-disable no-extend-native */
  314. if (!Promise.prototype.finally) {
  315. Promise.prototype.finally = function (callback) {
  316. var promise = this.constructor;
  317. return this.then(
  318. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  319. function (reason) {return promise.resolve(callback()).then(function () {
  320. throw reason;
  321. });});
  322. };
  323. }
  324. function promisify(name, api) {
  325. if (!shouldPromise(name)) {
  326. return api;
  327. }
  328. 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];}
  329. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  330. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  331. }
  332. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  333. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  334. success: resolve,
  335. fail: reject })].concat(
  336. params));
  337. })));
  338. };
  339. }
  340. var EPS = 1e-4;
  341. var BASE_DEVICE_WIDTH = 750;
  342. var isIOS = false;
  343. var deviceWidth = 0;
  344. var deviceDPR = 0;
  345. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  346. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  347. deviceWidth = windowWidth;
  348. deviceDPR = pixelRatio;
  349. isIOS = platform === 'ios';
  350. }
  351. function upx2px(number, newDeviceWidth) {
  352. if (deviceWidth === 0) {
  353. checkDeviceWidth();
  354. }
  355. number = Number(number);
  356. if (number === 0) {
  357. return 0;
  358. }
  359. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  360. if (result < 0) {
  361. result = -result;
  362. }
  363. result = Math.floor(result + EPS);
  364. if (result === 0) {
  365. if (deviceDPR === 1 || !isIOS) {
  366. result = 1;
  367. } else {
  368. result = 0.5;
  369. }
  370. }
  371. return number < 0 ? -result : result;
  372. }
  373. function getLocale() {
  374. // 优先使用 $locale
  375. var app = getApp({
  376. allowDefault: true });
  377. if (app && app.$vm) {
  378. return app.$vm.$locale;
  379. }
  380. return wx.getSystemInfoSync().language || 'zh-Hans';
  381. }
  382. function setLocale(locale) {
  383. var app = getApp();
  384. if (!app) {
  385. return false;
  386. }
  387. var oldLocale = app.$vm.$locale;
  388. if (oldLocale !== locale) {
  389. app.$vm.$locale = locale;
  390. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  391. locale: locale });});
  392. return true;
  393. }
  394. return false;
  395. }
  396. var onLocaleChangeCallbacks = [];
  397. function onLocaleChange(fn) {
  398. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  399. onLocaleChangeCallbacks.push(fn);
  400. }
  401. }
  402. if (typeof global !== 'undefined') {
  403. global.getLocale = getLocale;
  404. }
  405. var interceptors = {
  406. promiseInterceptor: promiseInterceptor };
  407. var baseApi = /*#__PURE__*/Object.freeze({
  408. __proto__: null,
  409. upx2px: upx2px,
  410. getLocale: getLocale,
  411. setLocale: setLocale,
  412. onLocaleChange: onLocaleChange,
  413. addInterceptor: addInterceptor,
  414. removeInterceptor: removeInterceptor,
  415. interceptors: interceptors });
  416. function findExistsPageIndex(url) {
  417. var pages = getCurrentPages();
  418. var len = pages.length;
  419. while (len--) {
  420. var page = pages[len];
  421. if (page.$page && page.$page.fullPath === url) {
  422. return len;
  423. }
  424. }
  425. return -1;
  426. }
  427. var redirectTo = {
  428. name: function name(fromArgs) {
  429. if (fromArgs.exists === 'back' && fromArgs.delta) {
  430. return 'navigateBack';
  431. }
  432. return 'redirectTo';
  433. },
  434. args: function args(fromArgs) {
  435. if (fromArgs.exists === 'back' && fromArgs.url) {
  436. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  437. if (existsPageIndex !== -1) {
  438. var delta = getCurrentPages().length - 1 - existsPageIndex;
  439. if (delta > 0) {
  440. fromArgs.delta = delta;
  441. }
  442. }
  443. }
  444. } };
  445. var previewImage = {
  446. args: function args(fromArgs) {
  447. var currentIndex = parseInt(fromArgs.current);
  448. if (isNaN(currentIndex)) {
  449. return;
  450. }
  451. var urls = fromArgs.urls;
  452. if (!Array.isArray(urls)) {
  453. return;
  454. }
  455. var len = urls.length;
  456. if (!len) {
  457. return;
  458. }
  459. if (currentIndex < 0) {
  460. currentIndex = 0;
  461. } else if (currentIndex >= len) {
  462. currentIndex = len - 1;
  463. }
  464. if (currentIndex > 0) {
  465. fromArgs.current = urls[currentIndex];
  466. fromArgs.urls = urls.filter(
  467. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  468. } else {
  469. fromArgs.current = urls[0];
  470. }
  471. return {
  472. indicator: false,
  473. loop: false };
  474. } };
  475. var UUID_KEY = '__DC_STAT_UUID';
  476. var deviceId;
  477. function addUuid(result) {
  478. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  479. if (!deviceId) {
  480. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  481. wx.setStorage({
  482. key: UUID_KEY,
  483. data: deviceId });
  484. }
  485. result.deviceId = deviceId;
  486. }
  487. function addSafeAreaInsets(result) {
  488. if (result.safeArea) {
  489. var safeArea = result.safeArea;
  490. result.safeAreaInsets = {
  491. top: safeArea.top,
  492. left: safeArea.left,
  493. right: result.windowWidth - safeArea.right,
  494. bottom: result.windowHeight - safeArea.bottom };
  495. }
  496. }
  497. var getSystemInfo = {
  498. returnValue: function returnValue(result) {
  499. addUuid(result);
  500. addSafeAreaInsets(result);
  501. } };
  502. var showActionSheet = {
  503. args: function args(fromArgs) {
  504. if (typeof fromArgs === 'object') {
  505. fromArgs.alertText = fromArgs.title;
  506. }
  507. } };
  508. // import navigateTo from 'uni-helpers/navigate-to'
  509. var protocols = {
  510. redirectTo: redirectTo,
  511. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  512. previewImage: previewImage,
  513. getSystemInfo: getSystemInfo,
  514. getSystemInfoSync: getSystemInfo,
  515. showActionSheet: showActionSheet };
  516. var todos = [
  517. 'vibrate',
  518. 'preloadPage',
  519. 'unPreloadPage',
  520. 'loadSubPackage'];
  521. var canIUses = [];
  522. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  523. function processCallback(methodName, method, returnValue) {
  524. return function (res) {
  525. return method(processReturnValue(methodName, res, returnValue));
  526. };
  527. }
  528. 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;
  529. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  530. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  531. if (isFn(argsOption)) {
  532. argsOption = argsOption(fromArgs, toArgs) || {};
  533. }
  534. for (var key in fromArgs) {
  535. if (hasOwn(argsOption, key)) {
  536. var keyOption = argsOption[key];
  537. if (isFn(keyOption)) {
  538. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  539. }
  540. if (!keyOption) {// 不支持的参数
  541. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  542. } else if (isStr(keyOption)) {// 重写参数 key
  543. toArgs[keyOption] = fromArgs[key];
  544. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  545. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  546. }
  547. } else if (CALLBACKS.indexOf(key) !== -1) {
  548. if (isFn(fromArgs[key])) {
  549. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  550. }
  551. } else {
  552. if (!keepFromArgs) {
  553. toArgs[key] = fromArgs[key];
  554. }
  555. }
  556. }
  557. return toArgs;
  558. } else if (isFn(fromArgs)) {
  559. fromArgs = processCallback(methodName, fromArgs, returnValue);
  560. }
  561. return fromArgs;
  562. }
  563. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  564. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  565. res = protocols.returnValue(methodName, res);
  566. }
  567. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  568. }
  569. function wrapper(methodName, method) {
  570. if (hasOwn(protocols, methodName)) {
  571. var protocol = protocols[methodName];
  572. if (!protocol) {// 暂不支持的 api
  573. return function () {
  574. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  575. };
  576. }
  577. return function (arg1, arg2) {// 目前 api 最多两个参数
  578. var options = protocol;
  579. if (isFn(protocol)) {
  580. options = protocol(arg1);
  581. }
  582. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  583. var args = [arg1];
  584. if (typeof arg2 !== 'undefined') {
  585. args.push(arg2);
  586. }
  587. if (isFn(options.name)) {
  588. methodName = options.name(arg1);
  589. } else if (isStr(options.name)) {
  590. methodName = options.name;
  591. }
  592. var returnValue = wx[methodName].apply(wx, args);
  593. if (isSyncApi(methodName)) {// 同步 api
  594. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  595. }
  596. return returnValue;
  597. };
  598. }
  599. return method;
  600. }
  601. var todoApis = Object.create(null);
  602. var TODOS = [
  603. 'onTabBarMidButtonTap',
  604. 'subscribePush',
  605. 'unsubscribePush',
  606. 'onPush',
  607. 'offPush',
  608. 'share'];
  609. function createTodoApi(name) {
  610. return function todoApi(_ref)
  611. {var fail = _ref.fail,complete = _ref.complete;
  612. var res = {
  613. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  614. isFn(fail) && fail(res);
  615. isFn(complete) && complete(res);
  616. };
  617. }
  618. TODOS.forEach(function (name) {
  619. todoApis[name] = createTodoApi(name);
  620. });
  621. var providers = {
  622. oauth: ['weixin'],
  623. share: ['weixin'],
  624. payment: ['wxpay'],
  625. push: ['weixin'] };
  626. function getProvider(_ref2)
  627. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  628. var res = false;
  629. if (providers[service]) {
  630. res = {
  631. errMsg: 'getProvider:ok',
  632. service: service,
  633. provider: providers[service] };
  634. isFn(success) && success(res);
  635. } else {
  636. res = {
  637. errMsg: 'getProvider:fail service not found' };
  638. isFn(fail) && fail(res);
  639. }
  640. isFn(complete) && complete(res);
  641. }
  642. var extraApi = /*#__PURE__*/Object.freeze({
  643. __proto__: null,
  644. getProvider: getProvider });
  645. var getEmitter = function () {
  646. var Emitter;
  647. return function getUniEmitter() {
  648. if (!Emitter) {
  649. Emitter = new _vue.default();
  650. }
  651. return Emitter;
  652. };
  653. }();
  654. function apply(ctx, method, args) {
  655. return ctx[method].apply(ctx, args);
  656. }
  657. function $on() {
  658. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  659. }
  660. function $off() {
  661. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  662. }
  663. function $once() {
  664. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  665. }
  666. function $emit() {
  667. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  668. }
  669. var eventApi = /*#__PURE__*/Object.freeze({
  670. __proto__: null,
  671. $on: $on,
  672. $off: $off,
  673. $once: $once,
  674. $emit: $emit });
  675. var api = /*#__PURE__*/Object.freeze({
  676. __proto__: null });
  677. var MPPage = Page;
  678. var MPComponent = Component;
  679. var customizeRE = /:/g;
  680. var customize = cached(function (str) {
  681. return camelize(str.replace(customizeRE, '-'));
  682. });
  683. function initTriggerEvent(mpInstance) {
  684. var oldTriggerEvent = mpInstance.triggerEvent;
  685. 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];}
  686. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  687. };
  688. try {
  689. // 京东小程序 triggerEvent 为只读
  690. mpInstance.triggerEvent = newTriggerEvent;
  691. } catch (error) {
  692. mpInstance._triggerEvent = newTriggerEvent;
  693. }
  694. }
  695. function initHook(name, options, isComponent) {
  696. var oldHook = options[name];
  697. if (!oldHook) {
  698. options[name] = function () {
  699. initTriggerEvent(this);
  700. };
  701. } else {
  702. options[name] = function () {
  703. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  704. return oldHook.apply(this, args);
  705. };
  706. }
  707. }
  708. if (!MPPage.__$wrappered) {
  709. MPPage.__$wrappered = true;
  710. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  711. initHook('onLoad', options);
  712. return MPPage(options);
  713. };
  714. Page.after = MPPage.after;
  715. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  716. initHook('created', options);
  717. return MPComponent(options);
  718. };
  719. }
  720. var PAGE_EVENT_HOOKS = [
  721. 'onPullDownRefresh',
  722. 'onReachBottom',
  723. 'onAddToFavorites',
  724. 'onShareTimeline',
  725. 'onShareAppMessage',
  726. 'onPageScroll',
  727. 'onResize',
  728. 'onTabItemTap'];
  729. function initMocks(vm, mocks) {
  730. var mpInstance = vm.$mp[vm.mpType];
  731. mocks.forEach(function (mock) {
  732. if (hasOwn(mpInstance, mock)) {
  733. vm[mock] = mpInstance[mock];
  734. }
  735. });
  736. }
  737. function hasHook(hook, vueOptions) {
  738. if (!vueOptions) {
  739. return true;
  740. }
  741. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  742. return true;
  743. }
  744. vueOptions = vueOptions.default || vueOptions;
  745. if (isFn(vueOptions)) {
  746. if (isFn(vueOptions.extendOptions[hook])) {
  747. return true;
  748. }
  749. if (vueOptions.super &&
  750. vueOptions.super.options &&
  751. Array.isArray(vueOptions.super.options[hook])) {
  752. return true;
  753. }
  754. return false;
  755. }
  756. if (isFn(vueOptions[hook])) {
  757. return true;
  758. }
  759. var mixins = vueOptions.mixins;
  760. if (Array.isArray(mixins)) {
  761. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  762. }
  763. }
  764. function initHooks(mpOptions, hooks, vueOptions) {
  765. hooks.forEach(function (hook) {
  766. if (hasHook(hook, vueOptions)) {
  767. mpOptions[hook] = function (args) {
  768. return this.$vm && this.$vm.__call_hook(hook, args);
  769. };
  770. }
  771. });
  772. }
  773. function initVueComponent(Vue, vueOptions) {
  774. vueOptions = vueOptions.default || vueOptions;
  775. var VueComponent;
  776. if (isFn(vueOptions)) {
  777. VueComponent = vueOptions;
  778. } else {
  779. VueComponent = Vue.extend(vueOptions);
  780. }
  781. vueOptions = VueComponent.options;
  782. return [VueComponent, vueOptions];
  783. }
  784. function initSlots(vm, vueSlots) {
  785. if (Array.isArray(vueSlots) && vueSlots.length) {
  786. var $slots = Object.create(null);
  787. vueSlots.forEach(function (slotName) {
  788. $slots[slotName] = true;
  789. });
  790. vm.$scopedSlots = vm.$slots = $slots;
  791. }
  792. }
  793. function initVueIds(vueIds, mpInstance) {
  794. vueIds = (vueIds || '').split(',');
  795. var len = vueIds.length;
  796. if (len === 1) {
  797. mpInstance._$vueId = vueIds[0];
  798. } else if (len === 2) {
  799. mpInstance._$vueId = vueIds[0];
  800. mpInstance._$vuePid = vueIds[1];
  801. }
  802. }
  803. function initData(vueOptions, context) {
  804. var data = vueOptions.data || {};
  805. var methods = vueOptions.methods || {};
  806. if (typeof data === 'function') {
  807. try {
  808. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  809. } catch (e) {
  810. if (Object({"VUE_APP_NAME":"sugarpark-mini-program","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  811. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  812. }
  813. }
  814. } else {
  815. try {
  816. // 对 data 格式化
  817. data = JSON.parse(JSON.stringify(data));
  818. } catch (e) {}
  819. }
  820. if (!isPlainObject(data)) {
  821. data = {};
  822. }
  823. Object.keys(methods).forEach(function (methodName) {
  824. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  825. data[methodName] = methods[methodName];
  826. }
  827. });
  828. return data;
  829. }
  830. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  831. function createObserver(name) {
  832. return function observer(newVal, oldVal) {
  833. if (this.$vm) {
  834. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  835. }
  836. };
  837. }
  838. function initBehaviors(vueOptions, initBehavior) {
  839. var vueBehaviors = vueOptions.behaviors;
  840. var vueExtends = vueOptions.extends;
  841. var vueMixins = vueOptions.mixins;
  842. var vueProps = vueOptions.props;
  843. if (!vueProps) {
  844. vueOptions.props = vueProps = [];
  845. }
  846. var behaviors = [];
  847. if (Array.isArray(vueBehaviors)) {
  848. vueBehaviors.forEach(function (behavior) {
  849. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  850. if (behavior === 'uni://form-field') {
  851. if (Array.isArray(vueProps)) {
  852. vueProps.push('name');
  853. vueProps.push('value');
  854. } else {
  855. vueProps.name = {
  856. type: String,
  857. default: '' };
  858. vueProps.value = {
  859. type: [String, Number, Boolean, Array, Object, Date],
  860. default: '' };
  861. }
  862. }
  863. });
  864. }
  865. if (isPlainObject(vueExtends) && vueExtends.props) {
  866. behaviors.push(
  867. initBehavior({
  868. properties: initProperties(vueExtends.props, true) }));
  869. }
  870. if (Array.isArray(vueMixins)) {
  871. vueMixins.forEach(function (vueMixin) {
  872. if (isPlainObject(vueMixin) && vueMixin.props) {
  873. behaviors.push(
  874. initBehavior({
  875. properties: initProperties(vueMixin.props, true) }));
  876. }
  877. });
  878. }
  879. return behaviors;
  880. }
  881. function parsePropType(key, type, defaultValue, file) {
  882. // [String]=>String
  883. if (Array.isArray(type) && type.length === 1) {
  884. return type[0];
  885. }
  886. return type;
  887. }
  888. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  889. var properties = {};
  890. if (!isBehavior) {
  891. properties.vueId = {
  892. type: String,
  893. value: '' };
  894. // 用于字节跳动小程序模拟抽象节点
  895. properties.generic = {
  896. type: Object,
  897. value: null };
  898. // scopedSlotsCompiler auto
  899. properties.scopedSlotsCompiler = {
  900. type: String,
  901. value: '' };
  902. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  903. type: null,
  904. value: [],
  905. observer: function observer(newVal, oldVal) {
  906. var $slots = Object.create(null);
  907. newVal.forEach(function (slotName) {
  908. $slots[slotName] = true;
  909. });
  910. this.setData({
  911. $slots: $slots });
  912. } };
  913. }
  914. if (Array.isArray(props)) {// ['title']
  915. props.forEach(function (key) {
  916. properties[key] = {
  917. type: null,
  918. observer: createObserver(key) };
  919. });
  920. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  921. Object.keys(props).forEach(function (key) {
  922. var opts = props[key];
  923. if (isPlainObject(opts)) {// title:{type:String,default:''}
  924. var value = opts.default;
  925. if (isFn(value)) {
  926. value = value();
  927. }
  928. opts.type = parsePropType(key, opts.type);
  929. properties[key] = {
  930. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  931. value: value,
  932. observer: createObserver(key) };
  933. } else {// content:String
  934. var type = parsePropType(key, opts);
  935. properties[key] = {
  936. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  937. observer: createObserver(key) };
  938. }
  939. });
  940. }
  941. return properties;
  942. }
  943. function wrapper$1(event) {
  944. // TODO 又得兼容 mpvue 的 mp 对象
  945. try {
  946. event.mp = JSON.parse(JSON.stringify(event));
  947. } catch (e) {}
  948. event.stopPropagation = noop;
  949. event.preventDefault = noop;
  950. event.target = event.target || {};
  951. if (!hasOwn(event, 'detail')) {
  952. event.detail = {};
  953. }
  954. if (hasOwn(event, 'markerId')) {
  955. event.detail = typeof event.detail === 'object' ? event.detail : {};
  956. event.detail.markerId = event.markerId;
  957. }
  958. if (isPlainObject(event.detail)) {
  959. event.target = Object.assign({}, event.target, event.detail);
  960. }
  961. return event;
  962. }
  963. function getExtraValue(vm, dataPathsArray) {
  964. var context = vm;
  965. dataPathsArray.forEach(function (dataPathArray) {
  966. var dataPath = dataPathArray[0];
  967. var value = dataPathArray[2];
  968. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  969. var propPath = dataPathArray[1];
  970. var valuePath = dataPathArray[3];
  971. var vFor;
  972. if (Number.isInteger(dataPath)) {
  973. vFor = dataPath;
  974. } else if (!dataPath) {
  975. vFor = context;
  976. } else if (typeof dataPath === 'string' && dataPath) {
  977. if (dataPath.indexOf('#s#') === 0) {
  978. vFor = dataPath.substr(3);
  979. } else {
  980. vFor = vm.__get_value(dataPath, context);
  981. }
  982. }
  983. if (Number.isInteger(vFor)) {
  984. context = value;
  985. } else if (!propPath) {
  986. context = vFor[value];
  987. } else {
  988. if (Array.isArray(vFor)) {
  989. context = vFor.find(function (vForItem) {
  990. return vm.__get_value(propPath, vForItem) === value;
  991. });
  992. } else if (isPlainObject(vFor)) {
  993. context = Object.keys(vFor).find(function (vForKey) {
  994. return vm.__get_value(propPath, vFor[vForKey]) === value;
  995. });
  996. } else {
  997. console.error('v-for 暂不支持循环数据:', vFor);
  998. }
  999. }
  1000. if (valuePath) {
  1001. context = vm.__get_value(valuePath, context);
  1002. }
  1003. }
  1004. });
  1005. return context;
  1006. }
  1007. function processEventExtra(vm, extra, event) {
  1008. var extraObj = {};
  1009. if (Array.isArray(extra) && extra.length) {
  1010. /**
  1011. *[
  1012. * ['data.items', 'data.id', item.data.id],
  1013. * ['metas', 'id', meta.id]
  1014. *],
  1015. *[
  1016. * ['data.items', 'data.id', item.data.id],
  1017. * ['metas', 'id', meta.id]
  1018. *],
  1019. *'test'
  1020. */
  1021. extra.forEach(function (dataPath, index) {
  1022. if (typeof dataPath === 'string') {
  1023. if (!dataPath) {// model,prop.sync
  1024. extraObj['$' + index] = vm;
  1025. } else {
  1026. if (dataPath === '$event') {// $event
  1027. extraObj['$' + index] = event;
  1028. } else if (dataPath === 'arguments') {
  1029. if (event.detail && event.detail.__args__) {
  1030. extraObj['$' + index] = event.detail.__args__;
  1031. } else {
  1032. extraObj['$' + index] = [event];
  1033. }
  1034. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1035. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1036. } else {
  1037. extraObj['$' + index] = vm.__get_value(dataPath);
  1038. }
  1039. }
  1040. } else {
  1041. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1042. }
  1043. });
  1044. }
  1045. return extraObj;
  1046. }
  1047. function getObjByArray(arr) {
  1048. var obj = {};
  1049. for (var i = 1; i < arr.length; i++) {
  1050. var element = arr[i];
  1051. obj[element[0]] = element[1];
  1052. }
  1053. return obj;
  1054. }
  1055. 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;
  1056. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1057. if (isCustom) {// 自定义事件
  1058. isCustomMPEvent = event.currentTarget &&
  1059. event.currentTarget.dataset &&
  1060. event.currentTarget.dataset.comType === 'wx';
  1061. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1062. if (isCustomMPEvent) {
  1063. return [event];
  1064. }
  1065. return event.detail.__args__ || event.detail;
  1066. }
  1067. }
  1068. var extraObj = processEventExtra(vm, extra, event);
  1069. var ret = [];
  1070. args.forEach(function (arg) {
  1071. if (arg === '$event') {
  1072. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1073. ret.push(event.target.value);
  1074. } else {
  1075. if (isCustom && !isCustomMPEvent) {
  1076. ret.push(event.detail.__args__[0]);
  1077. } else {// wxcomponent 组件或内置组件
  1078. ret.push(event);
  1079. }
  1080. }
  1081. } else {
  1082. if (Array.isArray(arg) && arg[0] === 'o') {
  1083. ret.push(getObjByArray(arg));
  1084. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1085. ret.push(extraObj[arg]);
  1086. } else {
  1087. ret.push(arg);
  1088. }
  1089. }
  1090. });
  1091. return ret;
  1092. }
  1093. var ONCE = '~';
  1094. var CUSTOM = '^';
  1095. function isMatchEventType(eventType, optType) {
  1096. return eventType === optType ||
  1097. optType === 'regionchange' && (
  1098. eventType === 'begin' ||
  1099. eventType === 'end');
  1100. }
  1101. function getContextVm(vm) {
  1102. var $parent = vm.$parent;
  1103. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1104. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1105. $parent = $parent.$parent;
  1106. }
  1107. return $parent && $parent.$parent;
  1108. }
  1109. function handleEvent(event) {var _this = this;
  1110. event = wrapper$1(event);
  1111. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1112. var dataset = (event.currentTarget || event.target).dataset;
  1113. if (!dataset) {
  1114. return console.warn('事件信息不存在');
  1115. }
  1116. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1117. if (!eventOpts) {
  1118. return console.warn('事件信息不存在');
  1119. }
  1120. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1121. var eventType = event.type;
  1122. var ret = [];
  1123. eventOpts.forEach(function (eventOpt) {
  1124. var type = eventOpt[0];
  1125. var eventsArray = eventOpt[1];
  1126. var isCustom = type.charAt(0) === CUSTOM;
  1127. type = isCustom ? type.slice(1) : type;
  1128. var isOnce = type.charAt(0) === ONCE;
  1129. type = isOnce ? type.slice(1) : type;
  1130. if (eventsArray && isMatchEventType(eventType, type)) {
  1131. eventsArray.forEach(function (eventArray) {
  1132. var methodName = eventArray[0];
  1133. if (methodName) {
  1134. var handlerCtx = _this.$vm;
  1135. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1136. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1137. }
  1138. if (methodName === '$emit') {
  1139. handlerCtx.$emit.apply(handlerCtx,
  1140. processEventArgs(
  1141. _this.$vm,
  1142. event,
  1143. eventArray[1],
  1144. eventArray[2],
  1145. isCustom,
  1146. methodName));
  1147. return;
  1148. }
  1149. var handler = handlerCtx[methodName];
  1150. if (!isFn(handler)) {
  1151. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1152. }
  1153. if (isOnce) {
  1154. if (handler.once) {
  1155. return;
  1156. }
  1157. handler.once = true;
  1158. }
  1159. var params = processEventArgs(
  1160. _this.$vm,
  1161. event,
  1162. eventArray[1],
  1163. eventArray[2],
  1164. isCustom,
  1165. methodName);
  1166. params = Array.isArray(params) ? params : [];
  1167. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1168. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1169. // eslint-disable-next-line no-sparse-arrays
  1170. params = params.concat([,,,,,,,,,, event]);
  1171. }
  1172. ret.push(handler.apply(handlerCtx, params));
  1173. }
  1174. });
  1175. }
  1176. });
  1177. if (
  1178. eventType === 'input' &&
  1179. ret.length === 1 &&
  1180. typeof ret[0] !== 'undefined')
  1181. {
  1182. return ret[0];
  1183. }
  1184. }
  1185. var messages = {};
  1186. var locale;
  1187. {
  1188. locale = wx.getSystemInfoSync().language;
  1189. }
  1190. function initI18nMessages() {
  1191. if (!isEnableLocale()) {
  1192. return;
  1193. }
  1194. var localeKeys = Object.keys(__uniConfig.locales);
  1195. if (localeKeys.length) {
  1196. localeKeys.forEach(function (locale) {
  1197. var curMessages = messages[locale];
  1198. var userMessages = __uniConfig.locales[locale];
  1199. if (curMessages) {
  1200. Object.assign(curMessages, userMessages);
  1201. } else {
  1202. messages[locale] = userMessages;
  1203. }
  1204. });
  1205. }
  1206. }
  1207. initI18nMessages();
  1208. var i18n = (0, _uniI18n.initVueI18n)(
  1209. locale,
  1210. {});
  1211. var t = i18n.t;
  1212. var i18nMixin = i18n.mixin = {
  1213. beforeCreate: function beforeCreate() {var _this2 = this;
  1214. var unwatch = i18n.i18n.watchLocale(function () {
  1215. _this2.$forceUpdate();
  1216. });
  1217. this.$once('hook:beforeDestroy', function () {
  1218. unwatch();
  1219. });
  1220. },
  1221. methods: {
  1222. $$t: function $$t(key, values) {
  1223. return t(key, values);
  1224. } } };
  1225. var setLocale$1 = i18n.setLocale;
  1226. var getLocale$1 = i18n.getLocale;
  1227. function initAppLocale(Vue, appVm, locale) {
  1228. var state = Vue.observable({
  1229. locale: locale || i18n.getLocale() });
  1230. var localeWatchers = [];
  1231. appVm.$watchLocale = function (fn) {
  1232. localeWatchers.push(fn);
  1233. };
  1234. Object.defineProperty(appVm, '$locale', {
  1235. get: function get() {
  1236. return state.locale;
  1237. },
  1238. set: function set(v) {
  1239. state.locale = v;
  1240. localeWatchers.forEach(function (watch) {return watch(v);});
  1241. } });
  1242. }
  1243. function isEnableLocale() {
  1244. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  1245. }
  1246. // export function initI18n() {
  1247. // const localeKeys = Object.keys(__uniConfig.locales || {})
  1248. // if (localeKeys.length) {
  1249. // localeKeys.forEach((locale) =>
  1250. // i18n.add(locale, __uniConfig.locales[locale])
  1251. // )
  1252. // }
  1253. // }
  1254. var eventChannels = {};
  1255. var eventChannelStack = [];
  1256. function getEventChannel(id) {
  1257. if (id) {
  1258. var eventChannel = eventChannels[id];
  1259. delete eventChannels[id];
  1260. return eventChannel;
  1261. }
  1262. return eventChannelStack.shift();
  1263. }
  1264. var hooks = [
  1265. 'onShow',
  1266. 'onHide',
  1267. 'onError',
  1268. 'onPageNotFound',
  1269. 'onThemeChange',
  1270. 'onUnhandledRejection'];
  1271. function initEventChannel() {
  1272. _vue.default.prototype.getOpenerEventChannel = function () {
  1273. // 微信小程序使用自身getOpenerEventChannel
  1274. {
  1275. return this.$scope.getOpenerEventChannel();
  1276. }
  1277. };
  1278. var callHook = _vue.default.prototype.__call_hook;
  1279. _vue.default.prototype.__call_hook = function (hook, args) {
  1280. if (hook === 'onLoad' && args && args.__id__) {
  1281. this.__eventChannel__ = getEventChannel(args.__id__);
  1282. delete args.__id__;
  1283. }
  1284. return callHook.call(this, hook, args);
  1285. };
  1286. }
  1287. function initScopedSlotsParams() {
  1288. var center = {};
  1289. var parents = {};
  1290. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1291. var has = center[vueId];
  1292. if (!has) {
  1293. parents[vueId] = this;
  1294. this.$on('hook:destroyed', function () {
  1295. delete parents[vueId];
  1296. });
  1297. }
  1298. return has;
  1299. };
  1300. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1301. var data = center[vueId];
  1302. if (data) {
  1303. var object = data[name] || {};
  1304. return key ? object[key] : object;
  1305. } else {
  1306. parents[vueId] = this;
  1307. this.$on('hook:destroyed', function () {
  1308. delete parents[vueId];
  1309. });
  1310. }
  1311. };
  1312. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1313. var vueIds = this.$options.propsData.vueId;
  1314. if (vueIds) {
  1315. var vueId = vueIds.split(',')[0];
  1316. var object = center[vueId] = center[vueId] || {};
  1317. object[name] = value;
  1318. if (parents[vueId]) {
  1319. parents[vueId].$forceUpdate();
  1320. }
  1321. }
  1322. };
  1323. _vue.default.mixin({
  1324. destroyed: function destroyed() {
  1325. var propsData = this.$options.propsData;
  1326. var vueId = propsData && propsData.vueId;
  1327. if (vueId) {
  1328. delete center[vueId];
  1329. delete parents[vueId];
  1330. }
  1331. } });
  1332. }
  1333. function parseBaseApp(vm, _ref3)
  1334. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1335. initEventChannel();
  1336. {
  1337. initScopedSlotsParams();
  1338. }
  1339. if (vm.$options.store) {
  1340. _vue.default.prototype.$store = vm.$options.store;
  1341. }
  1342. uniIdMixin(_vue.default);
  1343. _vue.default.prototype.mpHost = "mp-weixin";
  1344. _vue.default.mixin({
  1345. beforeCreate: function beforeCreate() {
  1346. if (!this.$options.mpType) {
  1347. return;
  1348. }
  1349. this.mpType = this.$options.mpType;
  1350. this.$mp = _defineProperty({
  1351. data: {} },
  1352. this.mpType, this.$options.mpInstance);
  1353. this.$scope = this.$options.mpInstance;
  1354. delete this.$options.mpType;
  1355. delete this.$options.mpInstance;
  1356. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1357. var app = getApp();
  1358. if (app.$vm && app.$vm.$i18n) {
  1359. this._i18n = app.$vm.$i18n;
  1360. }
  1361. }
  1362. if (this.mpType !== 'app') {
  1363. initRefs(this);
  1364. initMocks(this, mocks);
  1365. }
  1366. } });
  1367. var appOptions = {
  1368. onLaunch: function onLaunch(args) {
  1369. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1370. return;
  1371. }
  1372. {
  1373. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1374. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1375. }
  1376. }
  1377. this.$vm = vm;
  1378. this.$vm.$mp = {
  1379. app: this };
  1380. this.$vm.$scope = this;
  1381. // vm 上也挂载 globalData
  1382. this.$vm.globalData = this.globalData;
  1383. this.$vm._isMounted = true;
  1384. this.$vm.__call_hook('mounted', args);
  1385. this.$vm.__call_hook('onLaunch', args);
  1386. } };
  1387. // 兼容旧版本 globalData
  1388. appOptions.globalData = vm.$options.globalData || {};
  1389. // 将 methods 中的方法挂在 getApp() 中
  1390. var methods = vm.$options.methods;
  1391. if (methods) {
  1392. Object.keys(methods).forEach(function (name) {
  1393. appOptions[name] = methods[name];
  1394. });
  1395. }
  1396. initAppLocale(_vue.default, vm, wx.getSystemInfoSync().language || 'zh-Hans');
  1397. initHooks(appOptions, hooks);
  1398. return appOptions;
  1399. }
  1400. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1401. function findVmByVueId(vm, vuePid) {
  1402. var $children = vm.$children;
  1403. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1404. for (var i = $children.length - 1; i >= 0; i--) {
  1405. var childVm = $children[i];
  1406. if (childVm.$scope._$vueId === vuePid) {
  1407. return childVm;
  1408. }
  1409. }
  1410. // 反向递归查找
  1411. var parentVm;
  1412. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1413. parentVm = findVmByVueId($children[_i], vuePid);
  1414. if (parentVm) {
  1415. return parentVm;
  1416. }
  1417. }
  1418. }
  1419. function initBehavior(options) {
  1420. return Behavior(options);
  1421. }
  1422. function isPage() {
  1423. return !!this.route;
  1424. }
  1425. function initRelation(detail) {
  1426. this.triggerEvent('__l', detail);
  1427. }
  1428. function selectAllComponents(mpInstance, selector, $refs) {
  1429. var components = mpInstance.selectAllComponents(selector);
  1430. components.forEach(function (component) {
  1431. var ref = component.dataset.ref;
  1432. $refs[ref] = component.$vm || component;
  1433. {
  1434. if (component.dataset.vueGeneric === 'scoped') {
  1435. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1436. selectAllComponents(scopedComponent, selector, $refs);
  1437. });
  1438. }
  1439. }
  1440. });
  1441. }
  1442. function initRefs(vm) {
  1443. var mpInstance = vm.$scope;
  1444. Object.defineProperty(vm, '$refs', {
  1445. get: function get() {
  1446. var $refs = {};
  1447. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1448. // TODO 暂不考虑 for 中的 scoped
  1449. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1450. forComponents.forEach(function (component) {
  1451. var ref = component.dataset.ref;
  1452. if (!$refs[ref]) {
  1453. $refs[ref] = [];
  1454. }
  1455. $refs[ref].push(component.$vm || component);
  1456. });
  1457. return $refs;
  1458. } });
  1459. }
  1460. function handleLink(event) {var _ref4 =
  1461. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1462. var parentVm;
  1463. if (vuePid) {
  1464. parentVm = findVmByVueId(this.$vm, vuePid);
  1465. }
  1466. if (!parentVm) {
  1467. parentVm = this.$vm;
  1468. }
  1469. vueOptions.parent = parentVm;
  1470. }
  1471. function parseApp(vm) {
  1472. return parseBaseApp(vm, {
  1473. mocks: mocks,
  1474. initRefs: initRefs });
  1475. }
  1476. function createApp(vm) {
  1477. App(parseApp(vm));
  1478. return vm;
  1479. }
  1480. var encodeReserveRE = /[!'()*]/g;
  1481. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1482. var commaRE = /%2C/g;
  1483. // fixed encodeURIComponent which is more conformant to RFC3986:
  1484. // - escapes [!'()*]
  1485. // - preserve commas
  1486. var encode = function encode(str) {return encodeURIComponent(str).
  1487. replace(encodeReserveRE, encodeReserveReplacer).
  1488. replace(commaRE, ',');};
  1489. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1490. var res = obj ? Object.keys(obj).map(function (key) {
  1491. var val = obj[key];
  1492. if (val === undefined) {
  1493. return '';
  1494. }
  1495. if (val === null) {
  1496. return encodeStr(key);
  1497. }
  1498. if (Array.isArray(val)) {
  1499. var result = [];
  1500. val.forEach(function (val2) {
  1501. if (val2 === undefined) {
  1502. return;
  1503. }
  1504. if (val2 === null) {
  1505. result.push(encodeStr(key));
  1506. } else {
  1507. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1508. }
  1509. });
  1510. return result.join('&');
  1511. }
  1512. return encodeStr(key) + '=' + encodeStr(val);
  1513. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1514. return res ? "?".concat(res) : '';
  1515. }
  1516. function parseBaseComponent(vueComponentOptions)
  1517. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1518. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1519. var options = _objectSpread({
  1520. multipleSlots: true,
  1521. addGlobalClass: true },
  1522. vueOptions.options || {});
  1523. {
  1524. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1525. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1526. Object.assign(options, vueOptions['mp-weixin'].options);
  1527. }
  1528. }
  1529. var componentOptions = {
  1530. options: options,
  1531. data: initData(vueOptions, _vue.default.prototype),
  1532. behaviors: initBehaviors(vueOptions, initBehavior),
  1533. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1534. lifetimes: {
  1535. attached: function attached() {
  1536. var properties = this.properties;
  1537. var options = {
  1538. mpType: isPage.call(this) ? 'page' : 'component',
  1539. mpInstance: this,
  1540. propsData: properties };
  1541. initVueIds(properties.vueId, this);
  1542. // 处理父子关系
  1543. initRelation.call(this, {
  1544. vuePid: this._$vuePid,
  1545. vueOptions: options });
  1546. // 初始化 vue 实例
  1547. this.$vm = new VueComponent(options);
  1548. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1549. initSlots(this.$vm, properties.vueSlots);
  1550. // 触发首次 setData
  1551. this.$vm.$mount();
  1552. },
  1553. ready: function ready() {
  1554. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1555. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1556. if (this.$vm) {
  1557. this.$vm._isMounted = true;
  1558. this.$vm.__call_hook('mounted');
  1559. this.$vm.__call_hook('onReady');
  1560. }
  1561. },
  1562. detached: function detached() {
  1563. this.$vm && this.$vm.$destroy();
  1564. } },
  1565. pageLifetimes: {
  1566. show: function show(args) {
  1567. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1568. },
  1569. hide: function hide() {
  1570. this.$vm && this.$vm.__call_hook('onPageHide');
  1571. },
  1572. resize: function resize(size) {
  1573. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1574. } },
  1575. methods: {
  1576. __l: handleLink,
  1577. __e: handleEvent } };
  1578. // externalClasses
  1579. if (vueOptions.externalClasses) {
  1580. componentOptions.externalClasses = vueOptions.externalClasses;
  1581. }
  1582. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1583. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1584. componentOptions.methods[callMethod] = function (args) {
  1585. return this.$vm[callMethod](args);
  1586. };
  1587. });
  1588. }
  1589. if (isPage) {
  1590. return componentOptions;
  1591. }
  1592. return [componentOptions, VueComponent];
  1593. }
  1594. function parseComponent(vueComponentOptions) {
  1595. return parseBaseComponent(vueComponentOptions, {
  1596. isPage: isPage,
  1597. initRelation: initRelation });
  1598. }
  1599. var hooks$1 = [
  1600. 'onShow',
  1601. 'onHide',
  1602. 'onUnload'];
  1603. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1604. function parseBasePage(vuePageOptions, _ref6)
  1605. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1606. var pageOptions = parseComponent(vuePageOptions);
  1607. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1608. pageOptions.methods.onLoad = function (query) {
  1609. this.options = query;
  1610. var copyQuery = Object.assign({}, query);
  1611. delete copyQuery.__id__;
  1612. this.$page = {
  1613. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1614. this.$vm.$mp.query = query; // 兼容 mpvue
  1615. this.$vm.__call_hook('onLoad', query);
  1616. };
  1617. return pageOptions;
  1618. }
  1619. function parsePage(vuePageOptions) {
  1620. return parseBasePage(vuePageOptions, {
  1621. isPage: isPage,
  1622. initRelation: initRelation });
  1623. }
  1624. function createPage(vuePageOptions) {
  1625. {
  1626. return Component(parsePage(vuePageOptions));
  1627. }
  1628. }
  1629. function createComponent(vueOptions) {
  1630. {
  1631. return Component(parseComponent(vueOptions));
  1632. }
  1633. }
  1634. function createSubpackageApp(vm) {
  1635. var appOptions = parseApp(vm);
  1636. var app = getApp({
  1637. allowDefault: true });
  1638. vm.$scope = app;
  1639. var globalData = app.globalData;
  1640. if (globalData) {
  1641. Object.keys(appOptions.globalData).forEach(function (name) {
  1642. if (!hasOwn(globalData, name)) {
  1643. globalData[name] = appOptions.globalData[name];
  1644. }
  1645. });
  1646. }
  1647. Object.keys(appOptions).forEach(function (name) {
  1648. if (!hasOwn(app, name)) {
  1649. app[name] = appOptions[name];
  1650. }
  1651. });
  1652. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1653. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1654. vm.__call_hook('onShow', args);
  1655. });
  1656. }
  1657. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1658. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1659. vm.__call_hook('onHide', args);
  1660. });
  1661. }
  1662. if (isFn(appOptions.onLaunch)) {
  1663. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1664. vm.__call_hook('onLaunch', args);
  1665. }
  1666. return vm;
  1667. }
  1668. function createPlugin(vm) {
  1669. var appOptions = parseApp(vm);
  1670. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1671. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1672. vm.__call_hook('onShow', args);
  1673. });
  1674. }
  1675. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1676. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1677. vm.__call_hook('onHide', args);
  1678. });
  1679. }
  1680. if (isFn(appOptions.onLaunch)) {
  1681. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1682. vm.__call_hook('onLaunch', args);
  1683. }
  1684. return vm;
  1685. }
  1686. todos.forEach(function (todoApi) {
  1687. protocols[todoApi] = false;
  1688. });
  1689. canIUses.forEach(function (canIUseApi) {
  1690. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1691. canIUseApi;
  1692. if (!wx.canIUse(apiName)) {
  1693. protocols[canIUseApi] = false;
  1694. }
  1695. });
  1696. var uni = {};
  1697. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1698. uni = new Proxy({}, {
  1699. get: function get(target, name) {
  1700. if (hasOwn(target, name)) {
  1701. return target[name];
  1702. }
  1703. if (baseApi[name]) {
  1704. return baseApi[name];
  1705. }
  1706. if (api[name]) {
  1707. return promisify(name, api[name]);
  1708. }
  1709. {
  1710. if (extraApi[name]) {
  1711. return promisify(name, extraApi[name]);
  1712. }
  1713. if (todoApis[name]) {
  1714. return promisify(name, todoApis[name]);
  1715. }
  1716. }
  1717. if (eventApi[name]) {
  1718. return eventApi[name];
  1719. }
  1720. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  1721. return;
  1722. }
  1723. return promisify(name, wrapper(name, wx[name]));
  1724. },
  1725. set: function set(target, name, value) {
  1726. target[name] = value;
  1727. return true;
  1728. } });
  1729. } else {
  1730. Object.keys(baseApi).forEach(function (name) {
  1731. uni[name] = baseApi[name];
  1732. });
  1733. {
  1734. Object.keys(todoApis).forEach(function (name) {
  1735. uni[name] = promisify(name, todoApis[name]);
  1736. });
  1737. Object.keys(extraApi).forEach(function (name) {
  1738. uni[name] = promisify(name, todoApis[name]);
  1739. });
  1740. }
  1741. Object.keys(eventApi).forEach(function (name) {
  1742. uni[name] = eventApi[name];
  1743. });
  1744. Object.keys(api).forEach(function (name) {
  1745. uni[name] = promisify(name, api[name]);
  1746. });
  1747. Object.keys(wx).forEach(function (name) {
  1748. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  1749. uni[name] = promisify(name, wrapper(name, wx[name]));
  1750. }
  1751. });
  1752. }
  1753. wx.createApp = createApp;
  1754. wx.createPage = createPage;
  1755. wx.createComponent = createComponent;
  1756. wx.createSubpackageApp = createSubpackageApp;
  1757. wx.createPlugin = createPlugin;
  1758. var uni$1 = uni;var _default =
  1759. uni$1;exports.default = _default;
  1760. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  1761. /***/ }),
  1762. /* 2 */
  1763. /*!***********************************!*\
  1764. !*** (webpack)/buildin/global.js ***!
  1765. \***********************************/
  1766. /*! no static exports found */
  1767. /***/ (function(module, exports) {
  1768. var g;
  1769. // This works in non-strict mode
  1770. g = (function() {
  1771. return this;
  1772. })();
  1773. try {
  1774. // This works if eval is allowed (see CSP)
  1775. g = g || new Function("return this")();
  1776. } catch (e) {
  1777. // This works if the window reference is available
  1778. if (typeof window === "object") g = window;
  1779. }
  1780. // g can still be undefined, but nothing to do about it...
  1781. // We return undefined, instead of nothing here, so it's
  1782. // easier to handle this case. if(!global) { ...}
  1783. module.exports = g;
  1784. /***/ }),
  1785. /* 3 */
  1786. /*!******************************************************************************************!*\
  1787. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  1788. \******************************************************************************************/
  1789. /*! exports provided: default */
  1790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1791. "use strict";
  1792. __webpack_require__.r(__webpack_exports__);
  1793. /* WEBPACK VAR INJECTION */(function(global) {/*!
  1794. * Vue.js v2.6.11
  1795. * (c) 2014-2022 Evan You
  1796. * Released under the MIT License.
  1797. */
  1798. /* */
  1799. var emptyObject = Object.freeze({});
  1800. // These helpers produce better VM code in JS engines due to their
  1801. // explicitness and function inlining.
  1802. function isUndef (v) {
  1803. return v === undefined || v === null
  1804. }
  1805. function isDef (v) {
  1806. return v !== undefined && v !== null
  1807. }
  1808. function isTrue (v) {
  1809. return v === true
  1810. }
  1811. function isFalse (v) {
  1812. return v === false
  1813. }
  1814. /**
  1815. * Check if value is primitive.
  1816. */
  1817. function isPrimitive (value) {
  1818. return (
  1819. typeof value === 'string' ||
  1820. typeof value === 'number' ||
  1821. // $flow-disable-line
  1822. typeof value === 'symbol' ||
  1823. typeof value === 'boolean'
  1824. )
  1825. }
  1826. /**
  1827. * Quick object check - this is primarily used to tell
  1828. * Objects from primitive values when we know the value
  1829. * is a JSON-compliant type.
  1830. */
  1831. function isObject (obj) {
  1832. return obj !== null && typeof obj === 'object'
  1833. }
  1834. /**
  1835. * Get the raw type string of a value, e.g., [object Object].
  1836. */
  1837. var _toString = Object.prototype.toString;
  1838. function toRawType (value) {
  1839. return _toString.call(value).slice(8, -1)
  1840. }
  1841. /**
  1842. * Strict object type check. Only returns true
  1843. * for plain JavaScript objects.
  1844. */
  1845. function isPlainObject (obj) {
  1846. return _toString.call(obj) === '[object Object]'
  1847. }
  1848. function isRegExp (v) {
  1849. return _toString.call(v) === '[object RegExp]'
  1850. }
  1851. /**
  1852. * Check if val is a valid array index.
  1853. */
  1854. function isValidArrayIndex (val) {
  1855. var n = parseFloat(String(val));
  1856. return n >= 0 && Math.floor(n) === n && isFinite(val)
  1857. }
  1858. function isPromise (val) {
  1859. return (
  1860. isDef(val) &&
  1861. typeof val.then === 'function' &&
  1862. typeof val.catch === 'function'
  1863. )
  1864. }
  1865. /**
  1866. * Convert a value to a string that is actually rendered.
  1867. */
  1868. function toString (val) {
  1869. return val == null
  1870. ? ''
  1871. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  1872. ? JSON.stringify(val, null, 2)
  1873. : String(val)
  1874. }
  1875. /**
  1876. * Convert an input value to a number for persistence.
  1877. * If the conversion fails, return original string.
  1878. */
  1879. function toNumber (val) {
  1880. var n = parseFloat(val);
  1881. return isNaN(n) ? val : n
  1882. }
  1883. /**
  1884. * Make a map and return a function for checking if a key
  1885. * is in that map.
  1886. */
  1887. function makeMap (
  1888. str,
  1889. expectsLowerCase
  1890. ) {
  1891. var map = Object.create(null);
  1892. var list = str.split(',');
  1893. for (var i = 0; i < list.length; i++) {
  1894. map[list[i]] = true;
  1895. }
  1896. return expectsLowerCase
  1897. ? function (val) { return map[val.toLowerCase()]; }
  1898. : function (val) { return map[val]; }
  1899. }
  1900. /**
  1901. * Check if a tag is a built-in tag.
  1902. */
  1903. var isBuiltInTag = makeMap('slot,component', true);
  1904. /**
  1905. * Check if an attribute is a reserved attribute.
  1906. */
  1907. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  1908. /**
  1909. * Remove an item from an array.
  1910. */
  1911. function remove (arr, item) {
  1912. if (arr.length) {
  1913. var index = arr.indexOf(item);
  1914. if (index > -1) {
  1915. return arr.splice(index, 1)
  1916. }
  1917. }
  1918. }
  1919. /**
  1920. * Check whether an object has the property.
  1921. */
  1922. var hasOwnProperty = Object.prototype.hasOwnProperty;
  1923. function hasOwn (obj, key) {
  1924. return hasOwnProperty.call(obj, key)
  1925. }
  1926. /**
  1927. * Create a cached version of a pure function.
  1928. */
  1929. function cached (fn) {
  1930. var cache = Object.create(null);
  1931. return (function cachedFn (str) {
  1932. var hit = cache[str];
  1933. return hit || (cache[str] = fn(str))
  1934. })
  1935. }
  1936. /**
  1937. * Camelize a hyphen-delimited string.
  1938. */
  1939. var camelizeRE = /-(\w)/g;
  1940. var camelize = cached(function (str) {
  1941. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  1942. });
  1943. /**
  1944. * Capitalize a string.
  1945. */
  1946. var capitalize = cached(function (str) {
  1947. return str.charAt(0).toUpperCase() + str.slice(1)
  1948. });
  1949. /**
  1950. * Hyphenate a camelCase string.
  1951. */
  1952. var hyphenateRE = /\B([A-Z])/g;
  1953. var hyphenate = cached(function (str) {
  1954. return str.replace(hyphenateRE, '-$1').toLowerCase()
  1955. });
  1956. /**
  1957. * Simple bind polyfill for environments that do not support it,
  1958. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  1959. * since native bind is now performant enough in most browsers.
  1960. * But removing it would mean breaking code that was able to run in
  1961. * PhantomJS 1.x, so this must be kept for backward compatibility.
  1962. */
  1963. /* istanbul ignore next */
  1964. function polyfillBind (fn, ctx) {
  1965. function boundFn (a) {
  1966. var l = arguments.length;
  1967. return l
  1968. ? l > 1
  1969. ? fn.apply(ctx, arguments)
  1970. : fn.call(ctx, a)
  1971. : fn.call(ctx)
  1972. }
  1973. boundFn._length = fn.length;
  1974. return boundFn
  1975. }
  1976. function nativeBind (fn, ctx) {
  1977. return fn.bind(ctx)
  1978. }
  1979. var bind = Function.prototype.bind
  1980. ? nativeBind
  1981. : polyfillBind;
  1982. /**
  1983. * Convert an Array-like object to a real Array.
  1984. */
  1985. function toArray (list, start) {
  1986. start = start || 0;
  1987. var i = list.length - start;
  1988. var ret = new Array(i);
  1989. while (i--) {
  1990. ret[i] = list[i + start];
  1991. }
  1992. return ret
  1993. }
  1994. /**
  1995. * Mix properties into target object.
  1996. */
  1997. function extend (to, _from) {
  1998. for (var key in _from) {
  1999. to[key] = _from[key];
  2000. }
  2001. return to
  2002. }
  2003. /**
  2004. * Merge an Array of Objects into a single Object.
  2005. */
  2006. function toObject (arr) {
  2007. var res = {};
  2008. for (var i = 0; i < arr.length; i++) {
  2009. if (arr[i]) {
  2010. extend(res, arr[i]);
  2011. }
  2012. }
  2013. return res
  2014. }
  2015. /* eslint-disable no-unused-vars */
  2016. /**
  2017. * Perform no operation.
  2018. * Stubbing args to make Flow happy without leaving useless transpiled code
  2019. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  2020. */
  2021. function noop (a, b, c) {}
  2022. /**
  2023. * Always return false.
  2024. */
  2025. var no = function (a, b, c) { return false; };
  2026. /* eslint-enable no-unused-vars */
  2027. /**
  2028. * Return the same value.
  2029. */
  2030. var identity = function (_) { return _; };
  2031. /**
  2032. * Check if two values are loosely equal - that is,
  2033. * if they are plain objects, do they have the same shape?
  2034. */
  2035. function looseEqual (a, b) {
  2036. if (a === b) { return true }
  2037. var isObjectA = isObject(a);
  2038. var isObjectB = isObject(b);
  2039. if (isObjectA && isObjectB) {
  2040. try {
  2041. var isArrayA = Array.isArray(a);
  2042. var isArrayB = Array.isArray(b);
  2043. if (isArrayA && isArrayB) {
  2044. return a.length === b.length && a.every(function (e, i) {
  2045. return looseEqual(e, b[i])
  2046. })
  2047. } else if (a instanceof Date && b instanceof Date) {
  2048. return a.getTime() === b.getTime()
  2049. } else if (!isArrayA && !isArrayB) {
  2050. var keysA = Object.keys(a);
  2051. var keysB = Object.keys(b);
  2052. return keysA.length === keysB.length && keysA.every(function (key) {
  2053. return looseEqual(a[key], b[key])
  2054. })
  2055. } else {
  2056. /* istanbul ignore next */
  2057. return false
  2058. }
  2059. } catch (e) {
  2060. /* istanbul ignore next */
  2061. return false
  2062. }
  2063. } else if (!isObjectA && !isObjectB) {
  2064. return String(a) === String(b)
  2065. } else {
  2066. return false
  2067. }
  2068. }
  2069. /**
  2070. * Return the first index at which a loosely equal value can be
  2071. * found in the array (if value is a plain object, the array must
  2072. * contain an object of the same shape), or -1 if it is not present.
  2073. */
  2074. function looseIndexOf (arr, val) {
  2075. for (var i = 0; i < arr.length; i++) {
  2076. if (looseEqual(arr[i], val)) { return i }
  2077. }
  2078. return -1
  2079. }
  2080. /**
  2081. * Ensure a function is called only once.
  2082. */
  2083. function once (fn) {
  2084. var called = false;
  2085. return function () {
  2086. if (!called) {
  2087. called = true;
  2088. fn.apply(this, arguments);
  2089. }
  2090. }
  2091. }
  2092. var ASSET_TYPES = [
  2093. 'component',
  2094. 'directive',
  2095. 'filter'
  2096. ];
  2097. var LIFECYCLE_HOOKS = [
  2098. 'beforeCreate',
  2099. 'created',
  2100. 'beforeMount',
  2101. 'mounted',
  2102. 'beforeUpdate',
  2103. 'updated',
  2104. 'beforeDestroy',
  2105. 'destroyed',
  2106. 'activated',
  2107. 'deactivated',
  2108. 'errorCaptured',
  2109. 'serverPrefetch'
  2110. ];
  2111. /* */
  2112. var config = ({
  2113. /**
  2114. * Option merge strategies (used in core/util/options)
  2115. */
  2116. // $flow-disable-line
  2117. optionMergeStrategies: Object.create(null),
  2118. /**
  2119. * Whether to suppress warnings.
  2120. */
  2121. silent: false,
  2122. /**
  2123. * Show production mode tip message on boot?
  2124. */
  2125. productionTip: "development" !== 'production',
  2126. /**
  2127. * Whether to enable devtools
  2128. */
  2129. devtools: "development" !== 'production',
  2130. /**
  2131. * Whether to record perf
  2132. */
  2133. performance: false,
  2134. /**
  2135. * Error handler for watcher errors
  2136. */
  2137. errorHandler: null,
  2138. /**
  2139. * Warn handler for watcher warns
  2140. */
  2141. warnHandler: null,
  2142. /**
  2143. * Ignore certain custom elements
  2144. */
  2145. ignoredElements: [],
  2146. /**
  2147. * Custom user key aliases for v-on
  2148. */
  2149. // $flow-disable-line
  2150. keyCodes: Object.create(null),
  2151. /**
  2152. * Check if a tag is reserved so that it cannot be registered as a
  2153. * component. This is platform-dependent and may be overwritten.
  2154. */
  2155. isReservedTag: no,
  2156. /**
  2157. * Check if an attribute is reserved so that it cannot be used as a component
  2158. * prop. This is platform-dependent and may be overwritten.
  2159. */
  2160. isReservedAttr: no,
  2161. /**
  2162. * Check if a tag is an unknown element.
  2163. * Platform-dependent.
  2164. */
  2165. isUnknownElement: no,
  2166. /**
  2167. * Get the namespace of an element
  2168. */
  2169. getTagNamespace: noop,
  2170. /**
  2171. * Parse the real tag name for the specific platform.
  2172. */
  2173. parsePlatformTagName: identity,
  2174. /**
  2175. * Check if an attribute must be bound using property, e.g. value
  2176. * Platform-dependent.
  2177. */
  2178. mustUseProp: no,
  2179. /**
  2180. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  2181. * This will significantly reduce performance if set to false.
  2182. */
  2183. async: true,
  2184. /**
  2185. * Exposed for legacy reasons
  2186. */
  2187. _lifecycleHooks: LIFECYCLE_HOOKS
  2188. });
  2189. /* */
  2190. /**
  2191. * unicode letters used for parsing html tags, component names and property paths.
  2192. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  2193. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  2194. */
  2195. 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/;
  2196. /**
  2197. * Check if a string starts with $ or _
  2198. */
  2199. function isReserved (str) {
  2200. var c = (str + '').charCodeAt(0);
  2201. return c === 0x24 || c === 0x5F
  2202. }
  2203. /**
  2204. * Define a property.
  2205. */
  2206. function def (obj, key, val, enumerable) {
  2207. Object.defineProperty(obj, key, {
  2208. value: val,
  2209. enumerable: !!enumerable,
  2210. writable: true,
  2211. configurable: true
  2212. });
  2213. }
  2214. /**
  2215. * Parse simple path.
  2216. */
  2217. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  2218. function parsePath (path) {
  2219. if (bailRE.test(path)) {
  2220. return
  2221. }
  2222. var segments = path.split('.');
  2223. return function (obj) {
  2224. for (var i = 0; i < segments.length; i++) {
  2225. if (!obj) { return }
  2226. obj = obj[segments[i]];
  2227. }
  2228. return obj
  2229. }
  2230. }
  2231. /* */
  2232. // can we use __proto__?
  2233. var hasProto = '__proto__' in {};
  2234. // Browser environment sniffing
  2235. var inBrowser = typeof window !== 'undefined';
  2236. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  2237. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  2238. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  2239. var isIE = UA && /msie|trident/.test(UA);
  2240. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  2241. var isEdge = UA && UA.indexOf('edge/') > 0;
  2242. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  2243. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  2244. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  2245. var isPhantomJS = UA && /phantomjs/.test(UA);
  2246. var isFF = UA && UA.match(/firefox\/(\d+)/);
  2247. // Firefox has a "watch" function on Object.prototype...
  2248. var nativeWatch = ({}).watch;
  2249. if (inBrowser) {
  2250. try {
  2251. var opts = {};
  2252. Object.defineProperty(opts, 'passive', ({
  2253. get: function get () {
  2254. }
  2255. })); // https://github.com/facebook/flow/issues/285
  2256. window.addEventListener('test-passive', null, opts);
  2257. } catch (e) {}
  2258. }
  2259. // this needs to be lazy-evaled because vue may be required before
  2260. // vue-server-renderer can set VUE_ENV
  2261. var _isServer;
  2262. var isServerRendering = function () {
  2263. if (_isServer === undefined) {
  2264. /* istanbul ignore if */
  2265. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  2266. // detect presence of vue-server-renderer and avoid
  2267. // Webpack shimming the process
  2268. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  2269. } else {
  2270. _isServer = false;
  2271. }
  2272. }
  2273. return _isServer
  2274. };
  2275. // detect devtools
  2276. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  2277. /* istanbul ignore next */
  2278. function isNative (Ctor) {
  2279. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  2280. }
  2281. var hasSymbol =
  2282. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  2283. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  2284. var _Set;
  2285. /* istanbul ignore if */ // $flow-disable-line
  2286. if (typeof Set !== 'undefined' && isNative(Set)) {
  2287. // use native Set when available.
  2288. _Set = Set;
  2289. } else {
  2290. // a non-standard Set polyfill that only works with primitive keys.
  2291. _Set = /*@__PURE__*/(function () {
  2292. function Set () {
  2293. this.set = Object.create(null);
  2294. }
  2295. Set.prototype.has = function has (key) {
  2296. return this.set[key] === true
  2297. };
  2298. Set.prototype.add = function add (key) {
  2299. this.set[key] = true;
  2300. };
  2301. Set.prototype.clear = function clear () {
  2302. this.set = Object.create(null);
  2303. };
  2304. return Set;
  2305. }());
  2306. }
  2307. /* */
  2308. var warn = noop;
  2309. var tip = noop;
  2310. var generateComponentTrace = (noop); // work around flow check
  2311. var formatComponentName = (noop);
  2312. if (true) {
  2313. var hasConsole = typeof console !== 'undefined';
  2314. var classifyRE = /(?:^|[-_])(\w)/g;
  2315. var classify = function (str) { return str
  2316. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  2317. .replace(/[-_]/g, ''); };
  2318. warn = function (msg, vm) {
  2319. var trace = vm ? generateComponentTrace(vm) : '';
  2320. if (config.warnHandler) {
  2321. config.warnHandler.call(null, msg, vm, trace);
  2322. } else if (hasConsole && (!config.silent)) {
  2323. console.error(("[Vue warn]: " + msg + trace));
  2324. }
  2325. };
  2326. tip = function (msg, vm) {
  2327. if (hasConsole && (!config.silent)) {
  2328. console.warn("[Vue tip]: " + msg + (
  2329. vm ? generateComponentTrace(vm) : ''
  2330. ));
  2331. }
  2332. };
  2333. formatComponentName = function (vm, includeFile) {
  2334. if (vm.$root === vm) {
  2335. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  2336. return ('') + vm.$options.__file
  2337. }
  2338. return '<Root>'
  2339. }
  2340. var options = typeof vm === 'function' && vm.cid != null
  2341. ? vm.options
  2342. : vm._isVue
  2343. ? vm.$options || vm.constructor.options
  2344. : vm;
  2345. var name = options.name || options._componentTag;
  2346. var file = options.__file;
  2347. if (!name && file) {
  2348. var match = file.match(/([^/\\]+)\.vue$/);
  2349. name = match && match[1];
  2350. }
  2351. return (
  2352. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  2353. (file && includeFile !== false ? (" at " + file) : '')
  2354. )
  2355. };
  2356. var repeat = function (str, n) {
  2357. var res = '';
  2358. while (n) {
  2359. if (n % 2 === 1) { res += str; }
  2360. if (n > 1) { str += str; }
  2361. n >>= 1;
  2362. }
  2363. return res
  2364. };
  2365. generateComponentTrace = function (vm) {
  2366. if (vm._isVue && vm.$parent) {
  2367. var tree = [];
  2368. var currentRecursiveSequence = 0;
  2369. while (vm && vm.$options.name !== 'PageBody') {
  2370. if (tree.length > 0) {
  2371. var last = tree[tree.length - 1];
  2372. if (last.constructor === vm.constructor) {
  2373. currentRecursiveSequence++;
  2374. vm = vm.$parent;
  2375. continue
  2376. } else if (currentRecursiveSequence > 0) {
  2377. tree[tree.length - 1] = [last, currentRecursiveSequence];
  2378. currentRecursiveSequence = 0;
  2379. }
  2380. }
  2381. !vm.$options.isReserved && tree.push(vm);
  2382. vm = vm.$parent;
  2383. }
  2384. return '\n\nfound in\n\n' + tree
  2385. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  2386. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  2387. : formatComponentName(vm))); })
  2388. .join('\n')
  2389. } else {
  2390. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  2391. }
  2392. };
  2393. }
  2394. /* */
  2395. var uid = 0;
  2396. /**
  2397. * A dep is an observable that can have multiple
  2398. * directives subscribing to it.
  2399. */
  2400. var Dep = function Dep () {
  2401. this.id = uid++;
  2402. this.subs = [];
  2403. };
  2404. Dep.prototype.addSub = function addSub (sub) {
  2405. this.subs.push(sub);
  2406. };
  2407. Dep.prototype.removeSub = function removeSub (sub) {
  2408. remove(this.subs, sub);
  2409. };
  2410. Dep.prototype.depend = function depend () {
  2411. if (Dep.SharedObject.target) {
  2412. Dep.SharedObject.target.addDep(this);
  2413. }
  2414. };
  2415. Dep.prototype.notify = function notify () {
  2416. // stabilize the subscriber list first
  2417. var subs = this.subs.slice();
  2418. if ( true && !config.async) {
  2419. // subs aren't sorted in scheduler if not running async
  2420. // we need to sort them now to make sure they fire in correct
  2421. // order
  2422. subs.sort(function (a, b) { return a.id - b.id; });
  2423. }
  2424. for (var i = 0, l = subs.length; i < l; i++) {
  2425. subs[i].update();
  2426. }
  2427. };
  2428. // The current target watcher being evaluated.
  2429. // This is globally unique because only one watcher
  2430. // can be evaluated at a time.
  2431. // fixed by xxxxxx (nvue shared vuex)
  2432. /* eslint-disable no-undef */
  2433. Dep.SharedObject = {};
  2434. Dep.SharedObject.target = null;
  2435. Dep.SharedObject.targetStack = [];
  2436. function pushTarget (target) {
  2437. Dep.SharedObject.targetStack.push(target);
  2438. Dep.SharedObject.target = target;
  2439. Dep.target = target;
  2440. }
  2441. function popTarget () {
  2442. Dep.SharedObject.targetStack.pop();
  2443. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  2444. Dep.target = Dep.SharedObject.target;
  2445. }
  2446. /* */
  2447. var VNode = function VNode (
  2448. tag,
  2449. data,
  2450. children,
  2451. text,
  2452. elm,
  2453. context,
  2454. componentOptions,
  2455. asyncFactory
  2456. ) {
  2457. this.tag = tag;
  2458. this.data = data;
  2459. this.children = children;
  2460. this.text = text;
  2461. this.elm = elm;
  2462. this.ns = undefined;
  2463. this.context = context;
  2464. this.fnContext = undefined;
  2465. this.fnOptions = undefined;
  2466. this.fnScopeId = undefined;
  2467. this.key = data && data.key;
  2468. this.componentOptions = componentOptions;
  2469. this.componentInstance = undefined;
  2470. this.parent = undefined;
  2471. this.raw = false;
  2472. this.isStatic = false;
  2473. this.isRootInsert = true;
  2474. this.isComment = false;
  2475. this.isCloned = false;
  2476. this.isOnce = false;
  2477. this.asyncFactory = asyncFactory;
  2478. this.asyncMeta = undefined;
  2479. this.isAsyncPlaceholder = false;
  2480. };
  2481. var prototypeAccessors = { child: { configurable: true } };
  2482. // DEPRECATED: alias for componentInstance for backwards compat.
  2483. /* istanbul ignore next */
  2484. prototypeAccessors.child.get = function () {
  2485. return this.componentInstance
  2486. };
  2487. Object.defineProperties( VNode.prototype, prototypeAccessors );
  2488. var createEmptyVNode = function (text) {
  2489. if ( text === void 0 ) text = '';
  2490. var node = new VNode();
  2491. node.text = text;
  2492. node.isComment = true;
  2493. return node
  2494. };
  2495. function createTextVNode (val) {
  2496. return new VNode(undefined, undefined, undefined, String(val))
  2497. }
  2498. // optimized shallow clone
  2499. // used for static nodes and slot nodes because they may be reused across
  2500. // multiple renders, cloning them avoids errors when DOM manipulations rely
  2501. // on their elm reference.
  2502. function cloneVNode (vnode) {
  2503. var cloned = new VNode(
  2504. vnode.tag,
  2505. vnode.data,
  2506. // #7975
  2507. // clone children array to avoid mutating original in case of cloning
  2508. // a child.
  2509. vnode.children && vnode.children.slice(),
  2510. vnode.text,
  2511. vnode.elm,
  2512. vnode.context,
  2513. vnode.componentOptions,
  2514. vnode.asyncFactory
  2515. );
  2516. cloned.ns = vnode.ns;
  2517. cloned.isStatic = vnode.isStatic;
  2518. cloned.key = vnode.key;
  2519. cloned.isComment = vnode.isComment;
  2520. cloned.fnContext = vnode.fnContext;
  2521. cloned.fnOptions = vnode.fnOptions;
  2522. cloned.fnScopeId = vnode.fnScopeId;
  2523. cloned.asyncMeta = vnode.asyncMeta;
  2524. cloned.isCloned = true;
  2525. return cloned
  2526. }
  2527. /*
  2528. * not type checking this file because flow doesn't play well with
  2529. * dynamically accessing methods on Array prototype
  2530. */
  2531. var arrayProto = Array.prototype;
  2532. var arrayMethods = Object.create(arrayProto);
  2533. var methodsToPatch = [
  2534. 'push',
  2535. 'pop',
  2536. 'shift',
  2537. 'unshift',
  2538. 'splice',
  2539. 'sort',
  2540. 'reverse'
  2541. ];
  2542. /**
  2543. * Intercept mutating methods and emit events
  2544. */
  2545. methodsToPatch.forEach(function (method) {
  2546. // cache original method
  2547. var original = arrayProto[method];
  2548. def(arrayMethods, method, function mutator () {
  2549. var args = [], len = arguments.length;
  2550. while ( len-- ) args[ len ] = arguments[ len ];
  2551. var result = original.apply(this, args);
  2552. var ob = this.__ob__;
  2553. var inserted;
  2554. switch (method) {
  2555. case 'push':
  2556. case 'unshift':
  2557. inserted = args;
  2558. break
  2559. case 'splice':
  2560. inserted = args.slice(2);
  2561. break
  2562. }
  2563. if (inserted) { ob.observeArray(inserted); }
  2564. // notify change
  2565. ob.dep.notify();
  2566. return result
  2567. });
  2568. });
  2569. /* */
  2570. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  2571. /**
  2572. * In some cases we may want to disable observation inside a component's
  2573. * update computation.
  2574. */
  2575. var shouldObserve = true;
  2576. function toggleObserving (value) {
  2577. shouldObserve = value;
  2578. }
  2579. /**
  2580. * Observer class that is attached to each observed
  2581. * object. Once attached, the observer converts the target
  2582. * object's property keys into getter/setters that
  2583. * collect dependencies and dispatch updates.
  2584. */
  2585. var Observer = function Observer (value) {
  2586. this.value = value;
  2587. this.dep = new Dep();
  2588. this.vmCount = 0;
  2589. def(value, '__ob__', this);
  2590. if (Array.isArray(value)) {
  2591. if (hasProto) {
  2592. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  2593. if(value.push !== value.__proto__.push){
  2594. copyAugment(value, arrayMethods, arrayKeys);
  2595. } else {
  2596. protoAugment(value, arrayMethods);
  2597. }
  2598. }
  2599. } else {
  2600. copyAugment(value, arrayMethods, arrayKeys);
  2601. }
  2602. this.observeArray(value);
  2603. } else {
  2604. this.walk(value);
  2605. }
  2606. };
  2607. /**
  2608. * Walk through all properties and convert them into
  2609. * getter/setters. This method should only be called when
  2610. * value type is Object.
  2611. */
  2612. Observer.prototype.walk = function walk (obj) {
  2613. var keys = Object.keys(obj);
  2614. for (var i = 0; i < keys.length; i++) {
  2615. defineReactive$$1(obj, keys[i]);
  2616. }
  2617. };
  2618. /**
  2619. * Observe a list of Array items.
  2620. */
  2621. Observer.prototype.observeArray = function observeArray (items) {
  2622. for (var i = 0, l = items.length; i < l; i++) {
  2623. observe(items[i]);
  2624. }
  2625. };
  2626. // helpers
  2627. /**
  2628. * Augment a target Object or Array by intercepting
  2629. * the prototype chain using __proto__
  2630. */
  2631. function protoAugment (target, src) {
  2632. /* eslint-disable no-proto */
  2633. target.__proto__ = src;
  2634. /* eslint-enable no-proto */
  2635. }
  2636. /**
  2637. * Augment a target Object or Array by defining
  2638. * hidden properties.
  2639. */
  2640. /* istanbul ignore next */
  2641. function copyAugment (target, src, keys) {
  2642. for (var i = 0, l = keys.length; i < l; i++) {
  2643. var key = keys[i];
  2644. def(target, key, src[key]);
  2645. }
  2646. }
  2647. /**
  2648. * Attempt to create an observer instance for a value,
  2649. * returns the new observer if successfully observed,
  2650. * or the existing observer if the value already has one.
  2651. */
  2652. function observe (value, asRootData) {
  2653. if (!isObject(value) || value instanceof VNode) {
  2654. return
  2655. }
  2656. var ob;
  2657. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  2658. ob = value.__ob__;
  2659. } else if (
  2660. shouldObserve &&
  2661. !isServerRendering() &&
  2662. (Array.isArray(value) || isPlainObject(value)) &&
  2663. Object.isExtensible(value) &&
  2664. !value._isVue
  2665. ) {
  2666. ob = new Observer(value);
  2667. }
  2668. if (asRootData && ob) {
  2669. ob.vmCount++;
  2670. }
  2671. return ob
  2672. }
  2673. /**
  2674. * Define a reactive property on an Object.
  2675. */
  2676. function defineReactive$$1 (
  2677. obj,
  2678. key,
  2679. val,
  2680. customSetter,
  2681. shallow
  2682. ) {
  2683. var dep = new Dep();
  2684. var property = Object.getOwnPropertyDescriptor(obj, key);
  2685. if (property && property.configurable === false) {
  2686. return
  2687. }
  2688. // cater for pre-defined getter/setters
  2689. var getter = property && property.get;
  2690. var setter = property && property.set;
  2691. if ((!getter || setter) && arguments.length === 2) {
  2692. val = obj[key];
  2693. }
  2694. var childOb = !shallow && observe(val);
  2695. Object.defineProperty(obj, key, {
  2696. enumerable: true,
  2697. configurable: true,
  2698. get: function reactiveGetter () {
  2699. var value = getter ? getter.call(obj) : val;
  2700. if (Dep.SharedObject.target) { // fixed by xxxxxx
  2701. dep.depend();
  2702. if (childOb) {
  2703. childOb.dep.depend();
  2704. if (Array.isArray(value)) {
  2705. dependArray(value);
  2706. }
  2707. }
  2708. }
  2709. return value
  2710. },
  2711. set: function reactiveSetter (newVal) {
  2712. var value = getter ? getter.call(obj) : val;
  2713. /* eslint-disable no-self-compare */
  2714. if (newVal === value || (newVal !== newVal && value !== value)) {
  2715. return
  2716. }
  2717. /* eslint-enable no-self-compare */
  2718. if ( true && customSetter) {
  2719. customSetter();
  2720. }
  2721. // #7981: for accessor properties without setter
  2722. if (getter && !setter) { return }
  2723. if (setter) {
  2724. setter.call(obj, newVal);
  2725. } else {
  2726. val = newVal;
  2727. }
  2728. childOb = !shallow && observe(newVal);
  2729. dep.notify();
  2730. }
  2731. });
  2732. }
  2733. /**
  2734. * Set a property on an object. Adds the new property and
  2735. * triggers change notification if the property doesn't
  2736. * already exist.
  2737. */
  2738. function set (target, key, val) {
  2739. if ( true &&
  2740. (isUndef(target) || isPrimitive(target))
  2741. ) {
  2742. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  2743. }
  2744. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2745. target.length = Math.max(target.length, key);
  2746. target.splice(key, 1, val);
  2747. return val
  2748. }
  2749. if (key in target && !(key in Object.prototype)) {
  2750. target[key] = val;
  2751. return val
  2752. }
  2753. var ob = (target).__ob__;
  2754. if (target._isVue || (ob && ob.vmCount)) {
  2755. true && warn(
  2756. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  2757. 'at runtime - declare it upfront in the data option.'
  2758. );
  2759. return val
  2760. }
  2761. if (!ob) {
  2762. target[key] = val;
  2763. return val
  2764. }
  2765. defineReactive$$1(ob.value, key, val);
  2766. ob.dep.notify();
  2767. return val
  2768. }
  2769. /**
  2770. * Delete a property and trigger change if necessary.
  2771. */
  2772. function del (target, key) {
  2773. if ( true &&
  2774. (isUndef(target) || isPrimitive(target))
  2775. ) {
  2776. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  2777. }
  2778. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2779. target.splice(key, 1);
  2780. return
  2781. }
  2782. var ob = (target).__ob__;
  2783. if (target._isVue || (ob && ob.vmCount)) {
  2784. true && warn(
  2785. 'Avoid deleting properties on a Vue instance or its root $data ' +
  2786. '- just set it to null.'
  2787. );
  2788. return
  2789. }
  2790. if (!hasOwn(target, key)) {
  2791. return
  2792. }
  2793. delete target[key];
  2794. if (!ob) {
  2795. return
  2796. }
  2797. ob.dep.notify();
  2798. }
  2799. /**
  2800. * Collect dependencies on array elements when the array is touched, since
  2801. * we cannot intercept array element access like property getters.
  2802. */
  2803. function dependArray (value) {
  2804. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  2805. e = value[i];
  2806. e && e.__ob__ && e.__ob__.dep.depend();
  2807. if (Array.isArray(e)) {
  2808. dependArray(e);
  2809. }
  2810. }
  2811. }
  2812. /* */
  2813. /**
  2814. * Option overwriting strategies are functions that handle
  2815. * how to merge a parent option value and a child option
  2816. * value into the final value.
  2817. */
  2818. var strats = config.optionMergeStrategies;
  2819. /**
  2820. * Options with restrictions
  2821. */
  2822. if (true) {
  2823. strats.el = strats.propsData = function (parent, child, vm, key) {
  2824. if (!vm) {
  2825. warn(
  2826. "option \"" + key + "\" can only be used during instance " +
  2827. 'creation with the `new` keyword.'
  2828. );
  2829. }
  2830. return defaultStrat(parent, child)
  2831. };
  2832. }
  2833. /**
  2834. * Helper that recursively merges two data objects together.
  2835. */
  2836. function mergeData (to, from) {
  2837. if (!from) { return to }
  2838. var key, toVal, fromVal;
  2839. var keys = hasSymbol
  2840. ? Reflect.ownKeys(from)
  2841. : Object.keys(from);
  2842. for (var i = 0; i < keys.length; i++) {
  2843. key = keys[i];
  2844. // in case the object is already observed...
  2845. if (key === '__ob__') { continue }
  2846. toVal = to[key];
  2847. fromVal = from[key];
  2848. if (!hasOwn(to, key)) {
  2849. set(to, key, fromVal);
  2850. } else if (
  2851. toVal !== fromVal &&
  2852. isPlainObject(toVal) &&
  2853. isPlainObject(fromVal)
  2854. ) {
  2855. mergeData(toVal, fromVal);
  2856. }
  2857. }
  2858. return to
  2859. }
  2860. /**
  2861. * Data
  2862. */
  2863. function mergeDataOrFn (
  2864. parentVal,
  2865. childVal,
  2866. vm
  2867. ) {
  2868. if (!vm) {
  2869. // in a Vue.extend merge, both should be functions
  2870. if (!childVal) {
  2871. return parentVal
  2872. }
  2873. if (!parentVal) {
  2874. return childVal
  2875. }
  2876. // when parentVal & childVal are both present,
  2877. // we need to return a function that returns the
  2878. // merged result of both functions... no need to
  2879. // check if parentVal is a function here because
  2880. // it has to be a function to pass previous merges.
  2881. return function mergedDataFn () {
  2882. return mergeData(
  2883. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  2884. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  2885. )
  2886. }
  2887. } else {
  2888. return function mergedInstanceDataFn () {
  2889. // instance merge
  2890. var instanceData = typeof childVal === 'function'
  2891. ? childVal.call(vm, vm)
  2892. : childVal;
  2893. var defaultData = typeof parentVal === 'function'
  2894. ? parentVal.call(vm, vm)
  2895. : parentVal;
  2896. if (instanceData) {
  2897. return mergeData(instanceData, defaultData)
  2898. } else {
  2899. return defaultData
  2900. }
  2901. }
  2902. }
  2903. }
  2904. strats.data = function (
  2905. parentVal,
  2906. childVal,
  2907. vm
  2908. ) {
  2909. if (!vm) {
  2910. if (childVal && typeof childVal !== 'function') {
  2911. true && warn(
  2912. 'The "data" option should be a function ' +
  2913. 'that returns a per-instance value in component ' +
  2914. 'definitions.',
  2915. vm
  2916. );
  2917. return parentVal
  2918. }
  2919. return mergeDataOrFn(parentVal, childVal)
  2920. }
  2921. return mergeDataOrFn(parentVal, childVal, vm)
  2922. };
  2923. /**
  2924. * Hooks and props are merged as arrays.
  2925. */
  2926. function mergeHook (
  2927. parentVal,
  2928. childVal
  2929. ) {
  2930. var res = childVal
  2931. ? parentVal
  2932. ? parentVal.concat(childVal)
  2933. : Array.isArray(childVal)
  2934. ? childVal
  2935. : [childVal]
  2936. : parentVal;
  2937. return res
  2938. ? dedupeHooks(res)
  2939. : res
  2940. }
  2941. function dedupeHooks (hooks) {
  2942. var res = [];
  2943. for (var i = 0; i < hooks.length; i++) {
  2944. if (res.indexOf(hooks[i]) === -1) {
  2945. res.push(hooks[i]);
  2946. }
  2947. }
  2948. return res
  2949. }
  2950. LIFECYCLE_HOOKS.forEach(function (hook) {
  2951. strats[hook] = mergeHook;
  2952. });
  2953. /**
  2954. * Assets
  2955. *
  2956. * When a vm is present (instance creation), we need to do
  2957. * a three-way merge between constructor options, instance
  2958. * options and parent options.
  2959. */
  2960. function mergeAssets (
  2961. parentVal,
  2962. childVal,
  2963. vm,
  2964. key
  2965. ) {
  2966. var res = Object.create(parentVal || null);
  2967. if (childVal) {
  2968. true && assertObjectType(key, childVal, vm);
  2969. return extend(res, childVal)
  2970. } else {
  2971. return res
  2972. }
  2973. }
  2974. ASSET_TYPES.forEach(function (type) {
  2975. strats[type + 's'] = mergeAssets;
  2976. });
  2977. /**
  2978. * Watchers.
  2979. *
  2980. * Watchers hashes should not overwrite one
  2981. * another, so we merge them as arrays.
  2982. */
  2983. strats.watch = function (
  2984. parentVal,
  2985. childVal,
  2986. vm,
  2987. key
  2988. ) {
  2989. // work around Firefox's Object.prototype.watch...
  2990. if (parentVal === nativeWatch) { parentVal = undefined; }
  2991. if (childVal === nativeWatch) { childVal = undefined; }
  2992. /* istanbul ignore if */
  2993. if (!childVal) { return Object.create(parentVal || null) }
  2994. if (true) {
  2995. assertObjectType(key, childVal, vm);
  2996. }
  2997. if (!parentVal) { return childVal }
  2998. var ret = {};
  2999. extend(ret, parentVal);
  3000. for (var key$1 in childVal) {
  3001. var parent = ret[key$1];
  3002. var child = childVal[key$1];
  3003. if (parent && !Array.isArray(parent)) {
  3004. parent = [parent];
  3005. }
  3006. ret[key$1] = parent
  3007. ? parent.concat(child)
  3008. : Array.isArray(child) ? child : [child];
  3009. }
  3010. return ret
  3011. };
  3012. /**
  3013. * Other object hashes.
  3014. */
  3015. strats.props =
  3016. strats.methods =
  3017. strats.inject =
  3018. strats.computed = function (
  3019. parentVal,
  3020. childVal,
  3021. vm,
  3022. key
  3023. ) {
  3024. if (childVal && "development" !== 'production') {
  3025. assertObjectType(key, childVal, vm);
  3026. }
  3027. if (!parentVal) { return childVal }
  3028. var ret = Object.create(null);
  3029. extend(ret, parentVal);
  3030. if (childVal) { extend(ret, childVal); }
  3031. return ret
  3032. };
  3033. strats.provide = mergeDataOrFn;
  3034. /**
  3035. * Default strategy.
  3036. */
  3037. var defaultStrat = function (parentVal, childVal) {
  3038. return childVal === undefined
  3039. ? parentVal
  3040. : childVal
  3041. };
  3042. /**
  3043. * Validate component names
  3044. */
  3045. function checkComponents (options) {
  3046. for (var key in options.components) {
  3047. validateComponentName(key);
  3048. }
  3049. }
  3050. function validateComponentName (name) {
  3051. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  3052. warn(
  3053. 'Invalid component name: "' + name + '". Component names ' +
  3054. 'should conform to valid custom element name in html5 specification.'
  3055. );
  3056. }
  3057. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  3058. warn(
  3059. 'Do not use built-in or reserved HTML elements as component ' +
  3060. 'id: ' + name
  3061. );
  3062. }
  3063. }
  3064. /**
  3065. * Ensure all props option syntax are normalized into the
  3066. * Object-based format.
  3067. */
  3068. function normalizeProps (options, vm) {
  3069. var props = options.props;
  3070. if (!props) { return }
  3071. var res = {};
  3072. var i, val, name;
  3073. if (Array.isArray(props)) {
  3074. i = props.length;
  3075. while (i--) {
  3076. val = props[i];
  3077. if (typeof val === 'string') {
  3078. name = camelize(val);
  3079. res[name] = { type: null };
  3080. } else if (true) {
  3081. warn('props must be strings when using array syntax.');
  3082. }
  3083. }
  3084. } else if (isPlainObject(props)) {
  3085. for (var key in props) {
  3086. val = props[key];
  3087. name = camelize(key);
  3088. res[name] = isPlainObject(val)
  3089. ? val
  3090. : { type: val };
  3091. }
  3092. } else if (true) {
  3093. warn(
  3094. "Invalid value for option \"props\": expected an Array or an Object, " +
  3095. "but got " + (toRawType(props)) + ".",
  3096. vm
  3097. );
  3098. }
  3099. options.props = res;
  3100. }
  3101. /**
  3102. * Normalize all injections into Object-based format
  3103. */
  3104. function normalizeInject (options, vm) {
  3105. var inject = options.inject;
  3106. if (!inject) { return }
  3107. var normalized = options.inject = {};
  3108. if (Array.isArray(inject)) {
  3109. for (var i = 0; i < inject.length; i++) {
  3110. normalized[inject[i]] = { from: inject[i] };
  3111. }
  3112. } else if (isPlainObject(inject)) {
  3113. for (var key in inject) {
  3114. var val = inject[key];
  3115. normalized[key] = isPlainObject(val)
  3116. ? extend({ from: key }, val)
  3117. : { from: val };
  3118. }
  3119. } else if (true) {
  3120. warn(
  3121. "Invalid value for option \"inject\": expected an Array or an Object, " +
  3122. "but got " + (toRawType(inject)) + ".",
  3123. vm
  3124. );
  3125. }
  3126. }
  3127. /**
  3128. * Normalize raw function directives into object format.
  3129. */
  3130. function normalizeDirectives (options) {
  3131. var dirs = options.directives;
  3132. if (dirs) {
  3133. for (var key in dirs) {
  3134. var def$$1 = dirs[key];
  3135. if (typeof def$$1 === 'function') {
  3136. dirs[key] = { bind: def$$1, update: def$$1 };
  3137. }
  3138. }
  3139. }
  3140. }
  3141. function assertObjectType (name, value, vm) {
  3142. if (!isPlainObject(value)) {
  3143. warn(
  3144. "Invalid value for option \"" + name + "\": expected an Object, " +
  3145. "but got " + (toRawType(value)) + ".",
  3146. vm
  3147. );
  3148. }
  3149. }
  3150. /**
  3151. * Merge two option objects into a new one.
  3152. * Core utility used in both instantiation and inheritance.
  3153. */
  3154. function mergeOptions (
  3155. parent,
  3156. child,
  3157. vm
  3158. ) {
  3159. if (true) {
  3160. checkComponents(child);
  3161. }
  3162. if (typeof child === 'function') {
  3163. child = child.options;
  3164. }
  3165. normalizeProps(child, vm);
  3166. normalizeInject(child, vm);
  3167. normalizeDirectives(child);
  3168. // Apply extends and mixins on the child options,
  3169. // but only if it is a raw options object that isn't
  3170. // the result of another mergeOptions call.
  3171. // Only merged options has the _base property.
  3172. if (!child._base) {
  3173. if (child.extends) {
  3174. parent = mergeOptions(parent, child.extends, vm);
  3175. }
  3176. if (child.mixins) {
  3177. for (var i = 0, l = child.mixins.length; i < l; i++) {
  3178. parent = mergeOptions(parent, child.mixins[i], vm);
  3179. }
  3180. }
  3181. }
  3182. var options = {};
  3183. var key;
  3184. for (key in parent) {
  3185. mergeField(key);
  3186. }
  3187. for (key in child) {
  3188. if (!hasOwn(parent, key)) {
  3189. mergeField(key);
  3190. }
  3191. }
  3192. function mergeField (key) {
  3193. var strat = strats[key] || defaultStrat;
  3194. options[key] = strat(parent[key], child[key], vm, key);
  3195. }
  3196. return options
  3197. }
  3198. /**
  3199. * Resolve an asset.
  3200. * This function is used because child instances need access
  3201. * to assets defined in its ancestor chain.
  3202. */
  3203. function resolveAsset (
  3204. options,
  3205. type,
  3206. id,
  3207. warnMissing
  3208. ) {
  3209. /* istanbul ignore if */
  3210. if (typeof id !== 'string') {
  3211. return
  3212. }
  3213. var assets = options[type];
  3214. // check local registration variations first
  3215. if (hasOwn(assets, id)) { return assets[id] }
  3216. var camelizedId = camelize(id);
  3217. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  3218. var PascalCaseId = capitalize(camelizedId);
  3219. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  3220. // fallback to prototype chain
  3221. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  3222. if ( true && warnMissing && !res) {
  3223. warn(
  3224. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  3225. options
  3226. );
  3227. }
  3228. return res
  3229. }
  3230. /* */
  3231. function validateProp (
  3232. key,
  3233. propOptions,
  3234. propsData,
  3235. vm
  3236. ) {
  3237. var prop = propOptions[key];
  3238. var absent = !hasOwn(propsData, key);
  3239. var value = propsData[key];
  3240. // boolean casting
  3241. var booleanIndex = getTypeIndex(Boolean, prop.type);
  3242. if (booleanIndex > -1) {
  3243. if (absent && !hasOwn(prop, 'default')) {
  3244. value = false;
  3245. } else if (value === '' || value === hyphenate(key)) {
  3246. // only cast empty string / same name to boolean if
  3247. // boolean has higher priority
  3248. var stringIndex = getTypeIndex(String, prop.type);
  3249. if (stringIndex < 0 || booleanIndex < stringIndex) {
  3250. value = true;
  3251. }
  3252. }
  3253. }
  3254. // check default value
  3255. if (value === undefined) {
  3256. value = getPropDefaultValue(vm, prop, key);
  3257. // since the default value is a fresh copy,
  3258. // make sure to observe it.
  3259. var prevShouldObserve = shouldObserve;
  3260. toggleObserving(true);
  3261. observe(value);
  3262. toggleObserving(prevShouldObserve);
  3263. }
  3264. if (
  3265. true
  3266. ) {
  3267. assertProp(prop, key, value, vm, absent);
  3268. }
  3269. return value
  3270. }
  3271. /**
  3272. * Get the default value of a prop.
  3273. */
  3274. function getPropDefaultValue (vm, prop, key) {
  3275. // no default, return undefined
  3276. if (!hasOwn(prop, 'default')) {
  3277. return undefined
  3278. }
  3279. var def = prop.default;
  3280. // warn against non-factory defaults for Object & Array
  3281. if ( true && isObject(def)) {
  3282. warn(
  3283. 'Invalid default value for prop "' + key + '": ' +
  3284. 'Props with type Object/Array must use a factory function ' +
  3285. 'to return the default value.',
  3286. vm
  3287. );
  3288. }
  3289. // the raw prop value was also undefined from previous render,
  3290. // return previous default value to avoid unnecessary watcher trigger
  3291. if (vm && vm.$options.propsData &&
  3292. vm.$options.propsData[key] === undefined &&
  3293. vm._props[key] !== undefined
  3294. ) {
  3295. return vm._props[key]
  3296. }
  3297. // call factory function for non-Function types
  3298. // a value is Function if its prototype is function even across different execution context
  3299. return typeof def === 'function' && getType(prop.type) !== 'Function'
  3300. ? def.call(vm)
  3301. : def
  3302. }
  3303. /**
  3304. * Assert whether a prop is valid.
  3305. */
  3306. function assertProp (
  3307. prop,
  3308. name,
  3309. value,
  3310. vm,
  3311. absent
  3312. ) {
  3313. if (prop.required && absent) {
  3314. warn(
  3315. 'Missing required prop: "' + name + '"',
  3316. vm
  3317. );
  3318. return
  3319. }
  3320. if (value == null && !prop.required) {
  3321. return
  3322. }
  3323. var type = prop.type;
  3324. var valid = !type || type === true;
  3325. var expectedTypes = [];
  3326. if (type) {
  3327. if (!Array.isArray(type)) {
  3328. type = [type];
  3329. }
  3330. for (var i = 0; i < type.length && !valid; i++) {
  3331. var assertedType = assertType(value, type[i]);
  3332. expectedTypes.push(assertedType.expectedType || '');
  3333. valid = assertedType.valid;
  3334. }
  3335. }
  3336. if (!valid) {
  3337. warn(
  3338. getInvalidTypeMessage(name, value, expectedTypes),
  3339. vm
  3340. );
  3341. return
  3342. }
  3343. var validator = prop.validator;
  3344. if (validator) {
  3345. if (!validator(value)) {
  3346. warn(
  3347. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  3348. vm
  3349. );
  3350. }
  3351. }
  3352. }
  3353. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  3354. function assertType (value, type) {
  3355. var valid;
  3356. var expectedType = getType(type);
  3357. if (simpleCheckRE.test(expectedType)) {
  3358. var t = typeof value;
  3359. valid = t === expectedType.toLowerCase();
  3360. // for primitive wrapper objects
  3361. if (!valid && t === 'object') {
  3362. valid = value instanceof type;
  3363. }
  3364. } else if (expectedType === 'Object') {
  3365. valid = isPlainObject(value);
  3366. } else if (expectedType === 'Array') {
  3367. valid = Array.isArray(value);
  3368. } else {
  3369. valid = value instanceof type;
  3370. }
  3371. return {
  3372. valid: valid,
  3373. expectedType: expectedType
  3374. }
  3375. }
  3376. /**
  3377. * Use function string name to check built-in types,
  3378. * because a simple equality check will fail when running
  3379. * across different vms / iframes.
  3380. */
  3381. function getType (fn) {
  3382. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  3383. return match ? match[1] : ''
  3384. }
  3385. function isSameType (a, b) {
  3386. return getType(a) === getType(b)
  3387. }
  3388. function getTypeIndex (type, expectedTypes) {
  3389. if (!Array.isArray(expectedTypes)) {
  3390. return isSameType(expectedTypes, type) ? 0 : -1
  3391. }
  3392. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  3393. if (isSameType(expectedTypes[i], type)) {
  3394. return i
  3395. }
  3396. }
  3397. return -1
  3398. }
  3399. function getInvalidTypeMessage (name, value, expectedTypes) {
  3400. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  3401. " Expected " + (expectedTypes.map(capitalize).join(', '));
  3402. var expectedType = expectedTypes[0];
  3403. var receivedType = toRawType(value);
  3404. var expectedValue = styleValue(value, expectedType);
  3405. var receivedValue = styleValue(value, receivedType);
  3406. // check if we need to specify expected value
  3407. if (expectedTypes.length === 1 &&
  3408. isExplicable(expectedType) &&
  3409. !isBoolean(expectedType, receivedType)) {
  3410. message += " with value " + expectedValue;
  3411. }
  3412. message += ", got " + receivedType + " ";
  3413. // check if we need to specify received value
  3414. if (isExplicable(receivedType)) {
  3415. message += "with value " + receivedValue + ".";
  3416. }
  3417. return message
  3418. }
  3419. function styleValue (value, type) {
  3420. if (type === 'String') {
  3421. return ("\"" + value + "\"")
  3422. } else if (type === 'Number') {
  3423. return ("" + (Number(value)))
  3424. } else {
  3425. return ("" + value)
  3426. }
  3427. }
  3428. function isExplicable (value) {
  3429. var explicitTypes = ['string', 'number', 'boolean'];
  3430. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  3431. }
  3432. function isBoolean () {
  3433. var args = [], len = arguments.length;
  3434. while ( len-- ) args[ len ] = arguments[ len ];
  3435. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  3436. }
  3437. /* */
  3438. function handleError (err, vm, info) {
  3439. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  3440. // See: https://github.com/vuejs/vuex/issues/1505
  3441. pushTarget();
  3442. try {
  3443. if (vm) {
  3444. var cur = vm;
  3445. while ((cur = cur.$parent)) {
  3446. var hooks = cur.$options.errorCaptured;
  3447. if (hooks) {
  3448. for (var i = 0; i < hooks.length; i++) {
  3449. try {
  3450. var capture = hooks[i].call(cur, err, vm, info) === false;
  3451. if (capture) { return }
  3452. } catch (e) {
  3453. globalHandleError(e, cur, 'errorCaptured hook');
  3454. }
  3455. }
  3456. }
  3457. }
  3458. }
  3459. globalHandleError(err, vm, info);
  3460. } finally {
  3461. popTarget();
  3462. }
  3463. }
  3464. function invokeWithErrorHandling (
  3465. handler,
  3466. context,
  3467. args,
  3468. vm,
  3469. info
  3470. ) {
  3471. var res;
  3472. try {
  3473. res = args ? handler.apply(context, args) : handler.call(context);
  3474. if (res && !res._isVue && isPromise(res) && !res._handled) {
  3475. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  3476. // issue #9511
  3477. // avoid catch triggering multiple times when nested calls
  3478. res._handled = true;
  3479. }
  3480. } catch (e) {
  3481. handleError(e, vm, info);
  3482. }
  3483. return res
  3484. }
  3485. function globalHandleError (err, vm, info) {
  3486. if (config.errorHandler) {
  3487. try {
  3488. return config.errorHandler.call(null, err, vm, info)
  3489. } catch (e) {
  3490. // if the user intentionally throws the original error in the handler,
  3491. // do not log it twice
  3492. if (e !== err) {
  3493. logError(e, null, 'config.errorHandler');
  3494. }
  3495. }
  3496. }
  3497. logError(err, vm, info);
  3498. }
  3499. function logError (err, vm, info) {
  3500. if (true) {
  3501. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  3502. }
  3503. /* istanbul ignore else */
  3504. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  3505. console.error(err);
  3506. } else {
  3507. throw err
  3508. }
  3509. }
  3510. /* */
  3511. var callbacks = [];
  3512. var pending = false;
  3513. function flushCallbacks () {
  3514. pending = false;
  3515. var copies = callbacks.slice(0);
  3516. callbacks.length = 0;
  3517. for (var i = 0; i < copies.length; i++) {
  3518. copies[i]();
  3519. }
  3520. }
  3521. // Here we have async deferring wrappers using microtasks.
  3522. // In 2.5 we used (macro) tasks (in combination with microtasks).
  3523. // However, it has subtle problems when state is changed right before repaint
  3524. // (e.g. #6813, out-in transitions).
  3525. // Also, using (macro) tasks in event handler would cause some weird behaviors
  3526. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  3527. // So we now use microtasks everywhere, again.
  3528. // A major drawback of this tradeoff is that there are some scenarios
  3529. // where microtasks have too high a priority and fire in between supposedly
  3530. // sequential events (e.g. #4521, #6690, which have workarounds)
  3531. // or even between bubbling of the same event (#6566).
  3532. var timerFunc;
  3533. // The nextTick behavior leverages the microtask queue, which can be accessed
  3534. // via either native Promise.then or MutationObserver.
  3535. // MutationObserver has wider support, however it is seriously bugged in
  3536. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  3537. // completely stops working after triggering a few times... so, if native
  3538. // Promise is available, we will use it:
  3539. /* istanbul ignore next, $flow-disable-line */
  3540. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  3541. var p = Promise.resolve();
  3542. timerFunc = function () {
  3543. p.then(flushCallbacks);
  3544. // In problematic UIWebViews, Promise.then doesn't completely break, but
  3545. // it can get stuck in a weird state where callbacks are pushed into the
  3546. // microtask queue but the queue isn't being flushed, until the browser
  3547. // needs to do some other work, e.g. handle a timer. Therefore we can
  3548. // "force" the microtask queue to be flushed by adding an empty timer.
  3549. if (isIOS) { setTimeout(noop); }
  3550. };
  3551. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  3552. isNative(MutationObserver) ||
  3553. // PhantomJS and iOS 7.x
  3554. MutationObserver.toString() === '[object MutationObserverConstructor]'
  3555. )) {
  3556. // Use MutationObserver where native Promise is not available,
  3557. // e.g. PhantomJS, iOS7, Android 4.4
  3558. // (#6466 MutationObserver is unreliable in IE11)
  3559. var counter = 1;
  3560. var observer = new MutationObserver(flushCallbacks);
  3561. var textNode = document.createTextNode(String(counter));
  3562. observer.observe(textNode, {
  3563. characterData: true
  3564. });
  3565. timerFunc = function () {
  3566. counter = (counter + 1) % 2;
  3567. textNode.data = String(counter);
  3568. };
  3569. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  3570. // Fallback to setImmediate.
  3571. // Technically it leverages the (macro) task queue,
  3572. // but it is still a better choice than setTimeout.
  3573. timerFunc = function () {
  3574. setImmediate(flushCallbacks);
  3575. };
  3576. } else {
  3577. // Fallback to setTimeout.
  3578. timerFunc = function () {
  3579. setTimeout(flushCallbacks, 0);
  3580. };
  3581. }
  3582. function nextTick (cb, ctx) {
  3583. var _resolve;
  3584. callbacks.push(function () {
  3585. if (cb) {
  3586. try {
  3587. cb.call(ctx);
  3588. } catch (e) {
  3589. handleError(e, ctx, 'nextTick');
  3590. }
  3591. } else if (_resolve) {
  3592. _resolve(ctx);
  3593. }
  3594. });
  3595. if (!pending) {
  3596. pending = true;
  3597. timerFunc();
  3598. }
  3599. // $flow-disable-line
  3600. if (!cb && typeof Promise !== 'undefined') {
  3601. return new Promise(function (resolve) {
  3602. _resolve = resolve;
  3603. })
  3604. }
  3605. }
  3606. /* */
  3607. /* not type checking this file because flow doesn't play well with Proxy */
  3608. var initProxy;
  3609. if (true) {
  3610. var allowedGlobals = makeMap(
  3611. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  3612. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  3613. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  3614. 'require' // for Webpack/Browserify
  3615. );
  3616. var warnNonPresent = function (target, key) {
  3617. warn(
  3618. "Property or method \"" + key + "\" is not defined on the instance but " +
  3619. 'referenced during render. Make sure that this property is reactive, ' +
  3620. 'either in the data option, or for class-based components, by ' +
  3621. 'initializing the property. ' +
  3622. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  3623. target
  3624. );
  3625. };
  3626. var warnReservedPrefix = function (target, key) {
  3627. warn(
  3628. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  3629. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  3630. 'prevent conflicts with Vue internals. ' +
  3631. 'See: https://vuejs.org/v2/api/#data',
  3632. target
  3633. );
  3634. };
  3635. var hasProxy =
  3636. typeof Proxy !== 'undefined' && isNative(Proxy);
  3637. if (hasProxy) {
  3638. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  3639. config.keyCodes = new Proxy(config.keyCodes, {
  3640. set: function set (target, key, value) {
  3641. if (isBuiltInModifier(key)) {
  3642. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  3643. return false
  3644. } else {
  3645. target[key] = value;
  3646. return true
  3647. }
  3648. }
  3649. });
  3650. }
  3651. var hasHandler = {
  3652. has: function has (target, key) {
  3653. var has = key in target;
  3654. var isAllowed = allowedGlobals(key) ||
  3655. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  3656. if (!has && !isAllowed) {
  3657. if (key in target.$data) { warnReservedPrefix(target, key); }
  3658. else { warnNonPresent(target, key); }
  3659. }
  3660. return has || !isAllowed
  3661. }
  3662. };
  3663. var getHandler = {
  3664. get: function get (target, key) {
  3665. if (typeof key === 'string' && !(key in target)) {
  3666. if (key in target.$data) { warnReservedPrefix(target, key); }
  3667. else { warnNonPresent(target, key); }
  3668. }
  3669. return target[key]
  3670. }
  3671. };
  3672. initProxy = function initProxy (vm) {
  3673. if (hasProxy) {
  3674. // determine which proxy handler to use
  3675. var options = vm.$options;
  3676. var handlers = options.render && options.render._withStripped
  3677. ? getHandler
  3678. : hasHandler;
  3679. vm._renderProxy = new Proxy(vm, handlers);
  3680. } else {
  3681. vm._renderProxy = vm;
  3682. }
  3683. };
  3684. }
  3685. /* */
  3686. var seenObjects = new _Set();
  3687. /**
  3688. * Recursively traverse an object to evoke all converted
  3689. * getters, so that every nested property inside the object
  3690. * is collected as a "deep" dependency.
  3691. */
  3692. function traverse (val) {
  3693. _traverse(val, seenObjects);
  3694. seenObjects.clear();
  3695. }
  3696. function _traverse (val, seen) {
  3697. var i, keys;
  3698. var isA = Array.isArray(val);
  3699. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  3700. return
  3701. }
  3702. if (val.__ob__) {
  3703. var depId = val.__ob__.dep.id;
  3704. if (seen.has(depId)) {
  3705. return
  3706. }
  3707. seen.add(depId);
  3708. }
  3709. if (isA) {
  3710. i = val.length;
  3711. while (i--) { _traverse(val[i], seen); }
  3712. } else {
  3713. keys = Object.keys(val);
  3714. i = keys.length;
  3715. while (i--) { _traverse(val[keys[i]], seen); }
  3716. }
  3717. }
  3718. var mark;
  3719. var measure;
  3720. if (true) {
  3721. var perf = inBrowser && window.performance;
  3722. /* istanbul ignore if */
  3723. if (
  3724. perf &&
  3725. perf.mark &&
  3726. perf.measure &&
  3727. perf.clearMarks &&
  3728. perf.clearMeasures
  3729. ) {
  3730. mark = function (tag) { return perf.mark(tag); };
  3731. measure = function (name, startTag, endTag) {
  3732. perf.measure(name, startTag, endTag);
  3733. perf.clearMarks(startTag);
  3734. perf.clearMarks(endTag);
  3735. // perf.clearMeasures(name)
  3736. };
  3737. }
  3738. }
  3739. /* */
  3740. var normalizeEvent = cached(function (name) {
  3741. var passive = name.charAt(0) === '&';
  3742. name = passive ? name.slice(1) : name;
  3743. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  3744. name = once$$1 ? name.slice(1) : name;
  3745. var capture = name.charAt(0) === '!';
  3746. name = capture ? name.slice(1) : name;
  3747. return {
  3748. name: name,
  3749. once: once$$1,
  3750. capture: capture,
  3751. passive: passive
  3752. }
  3753. });
  3754. function createFnInvoker (fns, vm) {
  3755. function invoker () {
  3756. var arguments$1 = arguments;
  3757. var fns = invoker.fns;
  3758. if (Array.isArray(fns)) {
  3759. var cloned = fns.slice();
  3760. for (var i = 0; i < cloned.length; i++) {
  3761. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  3762. }
  3763. } else {
  3764. // return handler return value for single handlers
  3765. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  3766. }
  3767. }
  3768. invoker.fns = fns;
  3769. return invoker
  3770. }
  3771. function updateListeners (
  3772. on,
  3773. oldOn,
  3774. add,
  3775. remove$$1,
  3776. createOnceHandler,
  3777. vm
  3778. ) {
  3779. var name, def$$1, cur, old, event;
  3780. for (name in on) {
  3781. def$$1 = cur = on[name];
  3782. old = oldOn[name];
  3783. event = normalizeEvent(name);
  3784. if (isUndef(cur)) {
  3785. true && warn(
  3786. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  3787. vm
  3788. );
  3789. } else if (isUndef(old)) {
  3790. if (isUndef(cur.fns)) {
  3791. cur = on[name] = createFnInvoker(cur, vm);
  3792. }
  3793. if (isTrue(event.once)) {
  3794. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  3795. }
  3796. add(event.name, cur, event.capture, event.passive, event.params);
  3797. } else if (cur !== old) {
  3798. old.fns = cur;
  3799. on[name] = old;
  3800. }
  3801. }
  3802. for (name in oldOn) {
  3803. if (isUndef(on[name])) {
  3804. event = normalizeEvent(name);
  3805. remove$$1(event.name, oldOn[name], event.capture);
  3806. }
  3807. }
  3808. }
  3809. /* */
  3810. /* */
  3811. // fixed by xxxxxx (mp properties)
  3812. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  3813. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  3814. if (isUndef(propOptions)) {
  3815. return res
  3816. }
  3817. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  3818. var attrs = data.attrs;
  3819. var props = data.props;
  3820. if (isDef(attrs) || isDef(props)) {
  3821. for (var key in propOptions) {
  3822. var altKey = hyphenate(key);
  3823. var result = checkProp(res, props, key, altKey, true) ||
  3824. checkProp(res, attrs, key, altKey, false);
  3825. // externalClass
  3826. if (
  3827. result &&
  3828. res[key] &&
  3829. externalClasses.indexOf(altKey) !== -1 &&
  3830. context[camelize(res[key])]
  3831. ) {
  3832. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  3833. res[key] = context[camelize(res[key])];
  3834. }
  3835. }
  3836. }
  3837. return res
  3838. }
  3839. function extractPropsFromVNodeData (
  3840. data,
  3841. Ctor,
  3842. tag,
  3843. context// fixed by xxxxxx
  3844. ) {
  3845. // we are only extracting raw values here.
  3846. // validation and default values are handled in the child
  3847. // component itself.
  3848. var propOptions = Ctor.options.props;
  3849. if (isUndef(propOptions)) {
  3850. // fixed by xxxxxx
  3851. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  3852. }
  3853. var res = {};
  3854. var attrs = data.attrs;
  3855. var props = data.props;
  3856. if (isDef(attrs) || isDef(props)) {
  3857. for (var key in propOptions) {
  3858. var altKey = hyphenate(key);
  3859. if (true) {
  3860. var keyInLowerCase = key.toLowerCase();
  3861. if (
  3862. key !== keyInLowerCase &&
  3863. attrs && hasOwn(attrs, keyInLowerCase)
  3864. ) {
  3865. tip(
  3866. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  3867. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  3868. " \"" + key + "\". " +
  3869. "Note that HTML attributes are case-insensitive and camelCased " +
  3870. "props need to use their kebab-case equivalents when using in-DOM " +
  3871. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  3872. );
  3873. }
  3874. }
  3875. checkProp(res, props, key, altKey, true) ||
  3876. checkProp(res, attrs, key, altKey, false);
  3877. }
  3878. }
  3879. // fixed by xxxxxx
  3880. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  3881. }
  3882. function checkProp (
  3883. res,
  3884. hash,
  3885. key,
  3886. altKey,
  3887. preserve
  3888. ) {
  3889. if (isDef(hash)) {
  3890. if (hasOwn(hash, key)) {
  3891. res[key] = hash[key];
  3892. if (!preserve) {
  3893. delete hash[key];
  3894. }
  3895. return true
  3896. } else if (hasOwn(hash, altKey)) {
  3897. res[key] = hash[altKey];
  3898. if (!preserve) {
  3899. delete hash[altKey];
  3900. }
  3901. return true
  3902. }
  3903. }
  3904. return false
  3905. }
  3906. /* */
  3907. // The template compiler attempts to minimize the need for normalization by
  3908. // statically analyzing the template at compile time.
  3909. //
  3910. // For plain HTML markup, normalization can be completely skipped because the
  3911. // generated render function is guaranteed to return Array<VNode>. There are
  3912. // two cases where extra normalization is needed:
  3913. // 1. When the children contains components - because a functional component
  3914. // may return an Array instead of a single root. In this case, just a simple
  3915. // normalization is needed - if any child is an Array, we flatten the whole
  3916. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  3917. // because functional components already normalize their own children.
  3918. function simpleNormalizeChildren (children) {
  3919. for (var i = 0; i < children.length; i++) {
  3920. if (Array.isArray(children[i])) {
  3921. return Array.prototype.concat.apply([], children)
  3922. }
  3923. }
  3924. return children
  3925. }
  3926. // 2. When the children contains constructs that always generated nested Arrays,
  3927. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  3928. // with hand-written render functions / JSX. In such cases a full normalization
  3929. // is needed to cater to all possible types of children values.
  3930. function normalizeChildren (children) {
  3931. return isPrimitive(children)
  3932. ? [createTextVNode(children)]
  3933. : Array.isArray(children)
  3934. ? normalizeArrayChildren(children)
  3935. : undefined
  3936. }
  3937. function isTextNode (node) {
  3938. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  3939. }
  3940. function normalizeArrayChildren (children, nestedIndex) {
  3941. var res = [];
  3942. var i, c, lastIndex, last;
  3943. for (i = 0; i < children.length; i++) {
  3944. c = children[i];
  3945. if (isUndef(c) || typeof c === 'boolean') { continue }
  3946. lastIndex = res.length - 1;
  3947. last = res[lastIndex];
  3948. // nested
  3949. if (Array.isArray(c)) {
  3950. if (c.length > 0) {
  3951. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  3952. // merge adjacent text nodes
  3953. if (isTextNode(c[0]) && isTextNode(last)) {
  3954. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  3955. c.shift();
  3956. }
  3957. res.push.apply(res, c);
  3958. }
  3959. } else if (isPrimitive(c)) {
  3960. if (isTextNode(last)) {
  3961. // merge adjacent text nodes
  3962. // this is necessary for SSR hydration because text nodes are
  3963. // essentially merged when rendered to HTML strings
  3964. res[lastIndex] = createTextVNode(last.text + c);
  3965. } else if (c !== '') {
  3966. // convert primitive to vnode
  3967. res.push(createTextVNode(c));
  3968. }
  3969. } else {
  3970. if (isTextNode(c) && isTextNode(last)) {
  3971. // merge adjacent text nodes
  3972. res[lastIndex] = createTextVNode(last.text + c.text);
  3973. } else {
  3974. // default key for nested array children (likely generated by v-for)
  3975. if (isTrue(children._isVList) &&
  3976. isDef(c.tag) &&
  3977. isUndef(c.key) &&
  3978. isDef(nestedIndex)) {
  3979. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  3980. }
  3981. res.push(c);
  3982. }
  3983. }
  3984. }
  3985. return res
  3986. }
  3987. /* */
  3988. function initProvide (vm) {
  3989. var provide = vm.$options.provide;
  3990. if (provide) {
  3991. vm._provided = typeof provide === 'function'
  3992. ? provide.call(vm)
  3993. : provide;
  3994. }
  3995. }
  3996. function initInjections (vm) {
  3997. var result = resolveInject(vm.$options.inject, vm);
  3998. if (result) {
  3999. toggleObserving(false);
  4000. Object.keys(result).forEach(function (key) {
  4001. /* istanbul ignore else */
  4002. if (true) {
  4003. defineReactive$$1(vm, key, result[key], function () {
  4004. warn(
  4005. "Avoid mutating an injected value directly since the changes will be " +
  4006. "overwritten whenever the provided component re-renders. " +
  4007. "injection being mutated: \"" + key + "\"",
  4008. vm
  4009. );
  4010. });
  4011. } else {}
  4012. });
  4013. toggleObserving(true);
  4014. }
  4015. }
  4016. function resolveInject (inject, vm) {
  4017. if (inject) {
  4018. // inject is :any because flow is not smart enough to figure out cached
  4019. var result = Object.create(null);
  4020. var keys = hasSymbol
  4021. ? Reflect.ownKeys(inject)
  4022. : Object.keys(inject);
  4023. for (var i = 0; i < keys.length; i++) {
  4024. var key = keys[i];
  4025. // #6574 in case the inject object is observed...
  4026. if (key === '__ob__') { continue }
  4027. var provideKey = inject[key].from;
  4028. var source = vm;
  4029. while (source) {
  4030. if (source._provided && hasOwn(source._provided, provideKey)) {
  4031. result[key] = source._provided[provideKey];
  4032. break
  4033. }
  4034. source = source.$parent;
  4035. }
  4036. if (!source) {
  4037. if ('default' in inject[key]) {
  4038. var provideDefault = inject[key].default;
  4039. result[key] = typeof provideDefault === 'function'
  4040. ? provideDefault.call(vm)
  4041. : provideDefault;
  4042. } else if (true) {
  4043. warn(("Injection \"" + key + "\" not found"), vm);
  4044. }
  4045. }
  4046. }
  4047. return result
  4048. }
  4049. }
  4050. /* */
  4051. /**
  4052. * Runtime helper for resolving raw children VNodes into a slot object.
  4053. */
  4054. function resolveSlots (
  4055. children,
  4056. context
  4057. ) {
  4058. if (!children || !children.length) {
  4059. return {}
  4060. }
  4061. var slots = {};
  4062. for (var i = 0, l = children.length; i < l; i++) {
  4063. var child = children[i];
  4064. var data = child.data;
  4065. // remove slot attribute if the node is resolved as a Vue slot node
  4066. if (data && data.attrs && data.attrs.slot) {
  4067. delete data.attrs.slot;
  4068. }
  4069. // named slots should only be respected if the vnode was rendered in the
  4070. // same context.
  4071. if ((child.context === context || child.fnContext === context) &&
  4072. data && data.slot != null
  4073. ) {
  4074. var name = data.slot;
  4075. var slot = (slots[name] || (slots[name] = []));
  4076. if (child.tag === 'template') {
  4077. slot.push.apply(slot, child.children || []);
  4078. } else {
  4079. slot.push(child);
  4080. }
  4081. } else {
  4082. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  4083. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  4084. (slots['page'] || (slots['page'] = [])).push(child);
  4085. }else{
  4086. (slots.default || (slots.default = [])).push(child);
  4087. }
  4088. }
  4089. }
  4090. // ignore slots that contains only whitespace
  4091. for (var name$1 in slots) {
  4092. if (slots[name$1].every(isWhitespace)) {
  4093. delete slots[name$1];
  4094. }
  4095. }
  4096. return slots
  4097. }
  4098. function isWhitespace (node) {
  4099. return (node.isComment && !node.asyncFactory) || node.text === ' '
  4100. }
  4101. /* */
  4102. function normalizeScopedSlots (
  4103. slots,
  4104. normalSlots,
  4105. prevSlots
  4106. ) {
  4107. var res;
  4108. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  4109. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  4110. var key = slots && slots.$key;
  4111. if (!slots) {
  4112. res = {};
  4113. } else if (slots._normalized) {
  4114. // fast path 1: child component re-render only, parent did not change
  4115. return slots._normalized
  4116. } else if (
  4117. isStable &&
  4118. prevSlots &&
  4119. prevSlots !== emptyObject &&
  4120. key === prevSlots.$key &&
  4121. !hasNormalSlots &&
  4122. !prevSlots.$hasNormal
  4123. ) {
  4124. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  4125. // only need to normalize once
  4126. return prevSlots
  4127. } else {
  4128. res = {};
  4129. for (var key$1 in slots) {
  4130. if (slots[key$1] && key$1[0] !== '$') {
  4131. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  4132. }
  4133. }
  4134. }
  4135. // expose normal slots on scopedSlots
  4136. for (var key$2 in normalSlots) {
  4137. if (!(key$2 in res)) {
  4138. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  4139. }
  4140. }
  4141. // avoriaz seems to mock a non-extensible $scopedSlots object
  4142. // and when that is passed down this would cause an error
  4143. if (slots && Object.isExtensible(slots)) {
  4144. (slots)._normalized = res;
  4145. }
  4146. def(res, '$stable', isStable);
  4147. def(res, '$key', key);
  4148. def(res, '$hasNormal', hasNormalSlots);
  4149. return res
  4150. }
  4151. function normalizeScopedSlot(normalSlots, key, fn) {
  4152. var normalized = function () {
  4153. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  4154. res = res && typeof res === 'object' && !Array.isArray(res)
  4155. ? [res] // single vnode
  4156. : normalizeChildren(res);
  4157. return res && (
  4158. res.length === 0 ||
  4159. (res.length === 1 && res[0].isComment) // #9658
  4160. ) ? undefined
  4161. : res
  4162. };
  4163. // this is a slot using the new v-slot syntax without scope. although it is
  4164. // compiled as a scoped slot, render fn users would expect it to be present
  4165. // on this.$slots because the usage is semantically a normal slot.
  4166. if (fn.proxy) {
  4167. Object.defineProperty(normalSlots, key, {
  4168. get: normalized,
  4169. enumerable: true,
  4170. configurable: true
  4171. });
  4172. }
  4173. return normalized
  4174. }
  4175. function proxyNormalSlot(slots, key) {
  4176. return function () { return slots[key]; }
  4177. }
  4178. /* */
  4179. /**
  4180. * Runtime helper for rendering v-for lists.
  4181. */
  4182. function renderList (
  4183. val,
  4184. render
  4185. ) {
  4186. var ret, i, l, keys, key;
  4187. if (Array.isArray(val) || typeof val === 'string') {
  4188. ret = new Array(val.length);
  4189. for (i = 0, l = val.length; i < l; i++) {
  4190. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  4191. }
  4192. } else if (typeof val === 'number') {
  4193. ret = new Array(val);
  4194. for (i = 0; i < val; i++) {
  4195. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  4196. }
  4197. } else if (isObject(val)) {
  4198. if (hasSymbol && val[Symbol.iterator]) {
  4199. ret = [];
  4200. var iterator = val[Symbol.iterator]();
  4201. var result = iterator.next();
  4202. while (!result.done) {
  4203. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  4204. result = iterator.next();
  4205. }
  4206. } else {
  4207. keys = Object.keys(val);
  4208. ret = new Array(keys.length);
  4209. for (i = 0, l = keys.length; i < l; i++) {
  4210. key = keys[i];
  4211. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  4212. }
  4213. }
  4214. }
  4215. if (!isDef(ret)) {
  4216. ret = [];
  4217. }
  4218. (ret)._isVList = true;
  4219. return ret
  4220. }
  4221. /* */
  4222. /**
  4223. * Runtime helper for rendering <slot>
  4224. */
  4225. function renderSlot (
  4226. name,
  4227. fallback,
  4228. props,
  4229. bindObject
  4230. ) {
  4231. var scopedSlotFn = this.$scopedSlots[name];
  4232. var nodes;
  4233. if (scopedSlotFn) { // scoped slot
  4234. props = props || {};
  4235. if (bindObject) {
  4236. if ( true && !isObject(bindObject)) {
  4237. warn(
  4238. 'slot v-bind without argument expects an Object',
  4239. this
  4240. );
  4241. }
  4242. props = extend(extend({}, bindObject), props);
  4243. }
  4244. // fixed by xxxxxx app-plus scopedSlot
  4245. nodes = scopedSlotFn(props, this, props._i) || fallback;
  4246. } else {
  4247. nodes = this.$slots[name] || fallback;
  4248. }
  4249. var target = props && props.slot;
  4250. if (target) {
  4251. return this.$createElement('template', { slot: target }, nodes)
  4252. } else {
  4253. return nodes
  4254. }
  4255. }
  4256. /* */
  4257. /**
  4258. * Runtime helper for resolving filters
  4259. */
  4260. function resolveFilter (id) {
  4261. return resolveAsset(this.$options, 'filters', id, true) || identity
  4262. }
  4263. /* */
  4264. function isKeyNotMatch (expect, actual) {
  4265. if (Array.isArray(expect)) {
  4266. return expect.indexOf(actual) === -1
  4267. } else {
  4268. return expect !== actual
  4269. }
  4270. }
  4271. /**
  4272. * Runtime helper for checking keyCodes from config.
  4273. * exposed as Vue.prototype._k
  4274. * passing in eventKeyName as last argument separately for backwards compat
  4275. */
  4276. function checkKeyCodes (
  4277. eventKeyCode,
  4278. key,
  4279. builtInKeyCode,
  4280. eventKeyName,
  4281. builtInKeyName
  4282. ) {
  4283. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  4284. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  4285. return isKeyNotMatch(builtInKeyName, eventKeyName)
  4286. } else if (mappedKeyCode) {
  4287. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  4288. } else if (eventKeyName) {
  4289. return hyphenate(eventKeyName) !== key
  4290. }
  4291. }
  4292. /* */
  4293. /**
  4294. * Runtime helper for merging v-bind="object" into a VNode's data.
  4295. */
  4296. function bindObjectProps (
  4297. data,
  4298. tag,
  4299. value,
  4300. asProp,
  4301. isSync
  4302. ) {
  4303. if (value) {
  4304. if (!isObject(value)) {
  4305. true && warn(
  4306. 'v-bind without argument expects an Object or Array value',
  4307. this
  4308. );
  4309. } else {
  4310. if (Array.isArray(value)) {
  4311. value = toObject(value);
  4312. }
  4313. var hash;
  4314. var loop = function ( key ) {
  4315. if (
  4316. key === 'class' ||
  4317. key === 'style' ||
  4318. isReservedAttribute(key)
  4319. ) {
  4320. hash = data;
  4321. } else {
  4322. var type = data.attrs && data.attrs.type;
  4323. hash = asProp || config.mustUseProp(tag, type, key)
  4324. ? data.domProps || (data.domProps = {})
  4325. : data.attrs || (data.attrs = {});
  4326. }
  4327. var camelizedKey = camelize(key);
  4328. var hyphenatedKey = hyphenate(key);
  4329. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  4330. hash[key] = value[key];
  4331. if (isSync) {
  4332. var on = data.on || (data.on = {});
  4333. on[("update:" + key)] = function ($event) {
  4334. value[key] = $event;
  4335. };
  4336. }
  4337. }
  4338. };
  4339. for (var key in value) loop( key );
  4340. }
  4341. }
  4342. return data
  4343. }
  4344. /* */
  4345. /**
  4346. * Runtime helper for rendering static trees.
  4347. */
  4348. function renderStatic (
  4349. index,
  4350. isInFor
  4351. ) {
  4352. var cached = this._staticTrees || (this._staticTrees = []);
  4353. var tree = cached[index];
  4354. // if has already-rendered static tree and not inside v-for,
  4355. // we can reuse the same tree.
  4356. if (tree && !isInFor) {
  4357. return tree
  4358. }
  4359. // otherwise, render a fresh tree.
  4360. tree = cached[index] = this.$options.staticRenderFns[index].call(
  4361. this._renderProxy,
  4362. null,
  4363. this // for render fns generated for functional component templates
  4364. );
  4365. markStatic(tree, ("__static__" + index), false);
  4366. return tree
  4367. }
  4368. /**
  4369. * Runtime helper for v-once.
  4370. * Effectively it means marking the node as static with a unique key.
  4371. */
  4372. function markOnce (
  4373. tree,
  4374. index,
  4375. key
  4376. ) {
  4377. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  4378. return tree
  4379. }
  4380. function markStatic (
  4381. tree,
  4382. key,
  4383. isOnce
  4384. ) {
  4385. if (Array.isArray(tree)) {
  4386. for (var i = 0; i < tree.length; i++) {
  4387. if (tree[i] && typeof tree[i] !== 'string') {
  4388. markStaticNode(tree[i], (key + "_" + i), isOnce);
  4389. }
  4390. }
  4391. } else {
  4392. markStaticNode(tree, key, isOnce);
  4393. }
  4394. }
  4395. function markStaticNode (node, key, isOnce) {
  4396. node.isStatic = true;
  4397. node.key = key;
  4398. node.isOnce = isOnce;
  4399. }
  4400. /* */
  4401. function bindObjectListeners (data, value) {
  4402. if (value) {
  4403. if (!isPlainObject(value)) {
  4404. true && warn(
  4405. 'v-on without argument expects an Object value',
  4406. this
  4407. );
  4408. } else {
  4409. var on = data.on = data.on ? extend({}, data.on) : {};
  4410. for (var key in value) {
  4411. var existing = on[key];
  4412. var ours = value[key];
  4413. on[key] = existing ? [].concat(existing, ours) : ours;
  4414. }
  4415. }
  4416. }
  4417. return data
  4418. }
  4419. /* */
  4420. function resolveScopedSlots (
  4421. fns, // see flow/vnode
  4422. res,
  4423. // the following are added in 2.6
  4424. hasDynamicKeys,
  4425. contentHashKey
  4426. ) {
  4427. res = res || { $stable: !hasDynamicKeys };
  4428. for (var i = 0; i < fns.length; i++) {
  4429. var slot = fns[i];
  4430. if (Array.isArray(slot)) {
  4431. resolveScopedSlots(slot, res, hasDynamicKeys);
  4432. } else if (slot) {
  4433. // marker for reverse proxying v-slot without scope on this.$slots
  4434. if (slot.proxy) {
  4435. slot.fn.proxy = true;
  4436. }
  4437. res[slot.key] = slot.fn;
  4438. }
  4439. }
  4440. if (contentHashKey) {
  4441. (res).$key = contentHashKey;
  4442. }
  4443. return res
  4444. }
  4445. /* */
  4446. function bindDynamicKeys (baseObj, values) {
  4447. for (var i = 0; i < values.length; i += 2) {
  4448. var key = values[i];
  4449. if (typeof key === 'string' && key) {
  4450. baseObj[values[i]] = values[i + 1];
  4451. } else if ( true && key !== '' && key !== null) {
  4452. // null is a special value for explicitly removing a binding
  4453. warn(
  4454. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  4455. this
  4456. );
  4457. }
  4458. }
  4459. return baseObj
  4460. }
  4461. // helper to dynamically append modifier runtime markers to event names.
  4462. // ensure only append when value is already string, otherwise it will be cast
  4463. // to string and cause the type check to miss.
  4464. function prependModifier (value, symbol) {
  4465. return typeof value === 'string' ? symbol + value : value
  4466. }
  4467. /* */
  4468. function installRenderHelpers (target) {
  4469. target._o = markOnce;
  4470. target._n = toNumber;
  4471. target._s = toString;
  4472. target._l = renderList;
  4473. target._t = renderSlot;
  4474. target._q = looseEqual;
  4475. target._i = looseIndexOf;
  4476. target._m = renderStatic;
  4477. target._f = resolveFilter;
  4478. target._k = checkKeyCodes;
  4479. target._b = bindObjectProps;
  4480. target._v = createTextVNode;
  4481. target._e = createEmptyVNode;
  4482. target._u = resolveScopedSlots;
  4483. target._g = bindObjectListeners;
  4484. target._d = bindDynamicKeys;
  4485. target._p = prependModifier;
  4486. }
  4487. /* */
  4488. function FunctionalRenderContext (
  4489. data,
  4490. props,
  4491. children,
  4492. parent,
  4493. Ctor
  4494. ) {
  4495. var this$1 = this;
  4496. var options = Ctor.options;
  4497. // ensure the createElement function in functional components
  4498. // gets a unique context - this is necessary for correct named slot check
  4499. var contextVm;
  4500. if (hasOwn(parent, '_uid')) {
  4501. contextVm = Object.create(parent);
  4502. // $flow-disable-line
  4503. contextVm._original = parent;
  4504. } else {
  4505. // the context vm passed in is a functional context as well.
  4506. // in this case we want to make sure we are able to get a hold to the
  4507. // real context instance.
  4508. contextVm = parent;
  4509. // $flow-disable-line
  4510. parent = parent._original;
  4511. }
  4512. var isCompiled = isTrue(options._compiled);
  4513. var needNormalization = !isCompiled;
  4514. this.data = data;
  4515. this.props = props;
  4516. this.children = children;
  4517. this.parent = parent;
  4518. this.listeners = data.on || emptyObject;
  4519. this.injections = resolveInject(options.inject, parent);
  4520. this.slots = function () {
  4521. if (!this$1.$slots) {
  4522. normalizeScopedSlots(
  4523. data.scopedSlots,
  4524. this$1.$slots = resolveSlots(children, parent)
  4525. );
  4526. }
  4527. return this$1.$slots
  4528. };
  4529. Object.defineProperty(this, 'scopedSlots', ({
  4530. enumerable: true,
  4531. get: function get () {
  4532. return normalizeScopedSlots(data.scopedSlots, this.slots())
  4533. }
  4534. }));
  4535. // support for compiled functional template
  4536. if (isCompiled) {
  4537. // exposing $options for renderStatic()
  4538. this.$options = options;
  4539. // pre-resolve slots for renderSlot()
  4540. this.$slots = this.slots();
  4541. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  4542. }
  4543. if (options._scopeId) {
  4544. this._c = function (a, b, c, d) {
  4545. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  4546. if (vnode && !Array.isArray(vnode)) {
  4547. vnode.fnScopeId = options._scopeId;
  4548. vnode.fnContext = parent;
  4549. }
  4550. return vnode
  4551. };
  4552. } else {
  4553. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  4554. }
  4555. }
  4556. installRenderHelpers(FunctionalRenderContext.prototype);
  4557. function createFunctionalComponent (
  4558. Ctor,
  4559. propsData,
  4560. data,
  4561. contextVm,
  4562. children
  4563. ) {
  4564. var options = Ctor.options;
  4565. var props = {};
  4566. var propOptions = options.props;
  4567. if (isDef(propOptions)) {
  4568. for (var key in propOptions) {
  4569. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  4570. }
  4571. } else {
  4572. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  4573. if (isDef(data.props)) { mergeProps(props, data.props); }
  4574. }
  4575. var renderContext = new FunctionalRenderContext(
  4576. data,
  4577. props,
  4578. children,
  4579. contextVm,
  4580. Ctor
  4581. );
  4582. var vnode = options.render.call(null, renderContext._c, renderContext);
  4583. if (vnode instanceof VNode) {
  4584. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  4585. } else if (Array.isArray(vnode)) {
  4586. var vnodes = normalizeChildren(vnode) || [];
  4587. var res = new Array(vnodes.length);
  4588. for (var i = 0; i < vnodes.length; i++) {
  4589. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  4590. }
  4591. return res
  4592. }
  4593. }
  4594. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  4595. // #7817 clone node before setting fnContext, otherwise if the node is reused
  4596. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  4597. // that should not be matched to match.
  4598. var clone = cloneVNode(vnode);
  4599. clone.fnContext = contextVm;
  4600. clone.fnOptions = options;
  4601. if (true) {
  4602. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  4603. }
  4604. if (data.slot) {
  4605. (clone.data || (clone.data = {})).slot = data.slot;
  4606. }
  4607. return clone
  4608. }
  4609. function mergeProps (to, from) {
  4610. for (var key in from) {
  4611. to[camelize(key)] = from[key];
  4612. }
  4613. }
  4614. /* */
  4615. /* */
  4616. /* */
  4617. /* */
  4618. // inline hooks to be invoked on component VNodes during patch
  4619. var componentVNodeHooks = {
  4620. init: function init (vnode, hydrating) {
  4621. if (
  4622. vnode.componentInstance &&
  4623. !vnode.componentInstance._isDestroyed &&
  4624. vnode.data.keepAlive
  4625. ) {
  4626. // kept-alive components, treat as a patch
  4627. var mountedNode = vnode; // work around flow
  4628. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  4629. } else {
  4630. var child = vnode.componentInstance = createComponentInstanceForVnode(
  4631. vnode,
  4632. activeInstance
  4633. );
  4634. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  4635. }
  4636. },
  4637. prepatch: function prepatch (oldVnode, vnode) {
  4638. var options = vnode.componentOptions;
  4639. var child = vnode.componentInstance = oldVnode.componentInstance;
  4640. updateChildComponent(
  4641. child,
  4642. options.propsData, // updated props
  4643. options.listeners, // updated listeners
  4644. vnode, // new parent vnode
  4645. options.children // new children
  4646. );
  4647. },
  4648. insert: function insert (vnode) {
  4649. var context = vnode.context;
  4650. var componentInstance = vnode.componentInstance;
  4651. if (!componentInstance._isMounted) {
  4652. callHook(componentInstance, 'onServiceCreated');
  4653. callHook(componentInstance, 'onServiceAttached');
  4654. componentInstance._isMounted = true;
  4655. callHook(componentInstance, 'mounted');
  4656. }
  4657. if (vnode.data.keepAlive) {
  4658. if (context._isMounted) {
  4659. // vue-router#1212
  4660. // During updates, a kept-alive component's child components may
  4661. // change, so directly walking the tree here may call activated hooks
  4662. // on incorrect children. Instead we push them into a queue which will
  4663. // be processed after the whole patch process ended.
  4664. queueActivatedComponent(componentInstance);
  4665. } else {
  4666. activateChildComponent(componentInstance, true /* direct */);
  4667. }
  4668. }
  4669. },
  4670. destroy: function destroy (vnode) {
  4671. var componentInstance = vnode.componentInstance;
  4672. if (!componentInstance._isDestroyed) {
  4673. if (!vnode.data.keepAlive) {
  4674. componentInstance.$destroy();
  4675. } else {
  4676. deactivateChildComponent(componentInstance, true /* direct */);
  4677. }
  4678. }
  4679. }
  4680. };
  4681. var hooksToMerge = Object.keys(componentVNodeHooks);
  4682. function createComponent (
  4683. Ctor,
  4684. data,
  4685. context,
  4686. children,
  4687. tag
  4688. ) {
  4689. if (isUndef(Ctor)) {
  4690. return
  4691. }
  4692. var baseCtor = context.$options._base;
  4693. // plain options object: turn it into a constructor
  4694. if (isObject(Ctor)) {
  4695. Ctor = baseCtor.extend(Ctor);
  4696. }
  4697. // if at this stage it's not a constructor or an async component factory,
  4698. // reject.
  4699. if (typeof Ctor !== 'function') {
  4700. if (true) {
  4701. warn(("Invalid Component definition: " + (String(Ctor))), context);
  4702. }
  4703. return
  4704. }
  4705. // async component
  4706. var asyncFactory;
  4707. if (isUndef(Ctor.cid)) {
  4708. asyncFactory = Ctor;
  4709. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  4710. if (Ctor === undefined) {
  4711. // return a placeholder node for async component, which is rendered
  4712. // as a comment node but preserves all the raw information for the node.
  4713. // the information will be used for async server-rendering and hydration.
  4714. return createAsyncPlaceholder(
  4715. asyncFactory,
  4716. data,
  4717. context,
  4718. children,
  4719. tag
  4720. )
  4721. }
  4722. }
  4723. data = data || {};
  4724. // resolve constructor options in case global mixins are applied after
  4725. // component constructor creation
  4726. resolveConstructorOptions(Ctor);
  4727. // transform component v-model data into props & events
  4728. if (isDef(data.model)) {
  4729. transformModel(Ctor.options, data);
  4730. }
  4731. // extract props
  4732. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  4733. // functional component
  4734. if (isTrue(Ctor.options.functional)) {
  4735. return createFunctionalComponent(Ctor, propsData, data, context, children)
  4736. }
  4737. // extract listeners, since these needs to be treated as
  4738. // child component listeners instead of DOM listeners
  4739. var listeners = data.on;
  4740. // replace with listeners with .native modifier
  4741. // so it gets processed during parent component patch.
  4742. data.on = data.nativeOn;
  4743. if (isTrue(Ctor.options.abstract)) {
  4744. // abstract components do not keep anything
  4745. // other than props & listeners & slot
  4746. // work around flow
  4747. var slot = data.slot;
  4748. data = {};
  4749. if (slot) {
  4750. data.slot = slot;
  4751. }
  4752. }
  4753. // install component management hooks onto the placeholder node
  4754. installComponentHooks(data);
  4755. // return a placeholder vnode
  4756. var name = Ctor.options.name || tag;
  4757. var vnode = new VNode(
  4758. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  4759. data, undefined, undefined, undefined, context,
  4760. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  4761. asyncFactory
  4762. );
  4763. return vnode
  4764. }
  4765. function createComponentInstanceForVnode (
  4766. vnode, // we know it's MountedComponentVNode but flow doesn't
  4767. parent // activeInstance in lifecycle state
  4768. ) {
  4769. var options = {
  4770. _isComponent: true,
  4771. _parentVnode: vnode,
  4772. parent: parent
  4773. };
  4774. // check inline-template render functions
  4775. var inlineTemplate = vnode.data.inlineTemplate;
  4776. if (isDef(inlineTemplate)) {
  4777. options.render = inlineTemplate.render;
  4778. options.staticRenderFns = inlineTemplate.staticRenderFns;
  4779. }
  4780. return new vnode.componentOptions.Ctor(options)
  4781. }
  4782. function installComponentHooks (data) {
  4783. var hooks = data.hook || (data.hook = {});
  4784. for (var i = 0; i < hooksToMerge.length; i++) {
  4785. var key = hooksToMerge[i];
  4786. var existing = hooks[key];
  4787. var toMerge = componentVNodeHooks[key];
  4788. if (existing !== toMerge && !(existing && existing._merged)) {
  4789. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  4790. }
  4791. }
  4792. }
  4793. function mergeHook$1 (f1, f2) {
  4794. var merged = function (a, b) {
  4795. // flow complains about extra args which is why we use any
  4796. f1(a, b);
  4797. f2(a, b);
  4798. };
  4799. merged._merged = true;
  4800. return merged
  4801. }
  4802. // transform component v-model info (value and callback) into
  4803. // prop and event handler respectively.
  4804. function transformModel (options, data) {
  4805. var prop = (options.model && options.model.prop) || 'value';
  4806. var event = (options.model && options.model.event) || 'input'
  4807. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  4808. var on = data.on || (data.on = {});
  4809. var existing = on[event];
  4810. var callback = data.model.callback;
  4811. if (isDef(existing)) {
  4812. if (
  4813. Array.isArray(existing)
  4814. ? existing.indexOf(callback) === -1
  4815. : existing !== callback
  4816. ) {
  4817. on[event] = [callback].concat(existing);
  4818. }
  4819. } else {
  4820. on[event] = callback;
  4821. }
  4822. }
  4823. /* */
  4824. var SIMPLE_NORMALIZE = 1;
  4825. var ALWAYS_NORMALIZE = 2;
  4826. // wrapper function for providing a more flexible interface
  4827. // without getting yelled at by flow
  4828. function createElement (
  4829. context,
  4830. tag,
  4831. data,
  4832. children,
  4833. normalizationType,
  4834. alwaysNormalize
  4835. ) {
  4836. if (Array.isArray(data) || isPrimitive(data)) {
  4837. normalizationType = children;
  4838. children = data;
  4839. data = undefined;
  4840. }
  4841. if (isTrue(alwaysNormalize)) {
  4842. normalizationType = ALWAYS_NORMALIZE;
  4843. }
  4844. return _createElement(context, tag, data, children, normalizationType)
  4845. }
  4846. function _createElement (
  4847. context,
  4848. tag,
  4849. data,
  4850. children,
  4851. normalizationType
  4852. ) {
  4853. if (isDef(data) && isDef((data).__ob__)) {
  4854. true && warn(
  4855. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  4856. 'Always create fresh vnode data objects in each render!',
  4857. context
  4858. );
  4859. return createEmptyVNode()
  4860. }
  4861. // object syntax in v-bind
  4862. if (isDef(data) && isDef(data.is)) {
  4863. tag = data.is;
  4864. }
  4865. if (!tag) {
  4866. // in case of component :is set to falsy value
  4867. return createEmptyVNode()
  4868. }
  4869. // warn against non-primitive key
  4870. if ( true &&
  4871. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  4872. ) {
  4873. {
  4874. warn(
  4875. 'Avoid using non-primitive value as key, ' +
  4876. 'use string/number value instead.',
  4877. context
  4878. );
  4879. }
  4880. }
  4881. // support single function children as default scoped slot
  4882. if (Array.isArray(children) &&
  4883. typeof children[0] === 'function'
  4884. ) {
  4885. data = data || {};
  4886. data.scopedSlots = { default: children[0] };
  4887. children.length = 0;
  4888. }
  4889. if (normalizationType === ALWAYS_NORMALIZE) {
  4890. children = normalizeChildren(children);
  4891. } else if (normalizationType === SIMPLE_NORMALIZE) {
  4892. children = simpleNormalizeChildren(children);
  4893. }
  4894. var vnode, ns;
  4895. if (typeof tag === 'string') {
  4896. var Ctor;
  4897. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  4898. if (config.isReservedTag(tag)) {
  4899. // platform built-in elements
  4900. if ( true && isDef(data) && isDef(data.nativeOn)) {
  4901. warn(
  4902. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  4903. context
  4904. );
  4905. }
  4906. vnode = new VNode(
  4907. config.parsePlatformTagName(tag), data, children,
  4908. undefined, undefined, context
  4909. );
  4910. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  4911. // component
  4912. vnode = createComponent(Ctor, data, context, children, tag);
  4913. } else {
  4914. // unknown or unlisted namespaced elements
  4915. // check at runtime because it may get assigned a namespace when its
  4916. // parent normalizes children
  4917. vnode = new VNode(
  4918. tag, data, children,
  4919. undefined, undefined, context
  4920. );
  4921. }
  4922. } else {
  4923. // direct component options / constructor
  4924. vnode = createComponent(tag, data, context, children);
  4925. }
  4926. if (Array.isArray(vnode)) {
  4927. return vnode
  4928. } else if (isDef(vnode)) {
  4929. if (isDef(ns)) { applyNS(vnode, ns); }
  4930. if (isDef(data)) { registerDeepBindings(data); }
  4931. return vnode
  4932. } else {
  4933. return createEmptyVNode()
  4934. }
  4935. }
  4936. function applyNS (vnode, ns, force) {
  4937. vnode.ns = ns;
  4938. if (vnode.tag === 'foreignObject') {
  4939. // use default namespace inside foreignObject
  4940. ns = undefined;
  4941. force = true;
  4942. }
  4943. if (isDef(vnode.children)) {
  4944. for (var i = 0, l = vnode.children.length; i < l; i++) {
  4945. var child = vnode.children[i];
  4946. if (isDef(child.tag) && (
  4947. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  4948. applyNS(child, ns, force);
  4949. }
  4950. }
  4951. }
  4952. }
  4953. // ref #5318
  4954. // necessary to ensure parent re-render when deep bindings like :style and
  4955. // :class are used on slot nodes
  4956. function registerDeepBindings (data) {
  4957. if (isObject(data.style)) {
  4958. traverse(data.style);
  4959. }
  4960. if (isObject(data.class)) {
  4961. traverse(data.class);
  4962. }
  4963. }
  4964. /* */
  4965. function initRender (vm) {
  4966. vm._vnode = null; // the root of the child tree
  4967. vm._staticTrees = null; // v-once cached trees
  4968. var options = vm.$options;
  4969. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  4970. var renderContext = parentVnode && parentVnode.context;
  4971. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  4972. vm.$scopedSlots = emptyObject;
  4973. // bind the createElement fn to this instance
  4974. // so that we get proper render context inside it.
  4975. // args order: tag, data, children, normalizationType, alwaysNormalize
  4976. // internal version is used by render functions compiled from templates
  4977. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  4978. // normalization is always applied for the public version, used in
  4979. // user-written render functions.
  4980. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  4981. // $attrs & $listeners are exposed for easier HOC creation.
  4982. // they need to be reactive so that HOCs using them are always updated
  4983. var parentData = parentVnode && parentVnode.data;
  4984. /* istanbul ignore else */
  4985. if (true) {
  4986. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  4987. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  4988. }, true);
  4989. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  4990. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  4991. }, true);
  4992. } else {}
  4993. }
  4994. var currentRenderingInstance = null;
  4995. function renderMixin (Vue) {
  4996. // install runtime convenience helpers
  4997. installRenderHelpers(Vue.prototype);
  4998. Vue.prototype.$nextTick = function (fn) {
  4999. return nextTick(fn, this)
  5000. };
  5001. Vue.prototype._render = function () {
  5002. var vm = this;
  5003. var ref = vm.$options;
  5004. var render = ref.render;
  5005. var _parentVnode = ref._parentVnode;
  5006. if (_parentVnode) {
  5007. vm.$scopedSlots = normalizeScopedSlots(
  5008. _parentVnode.data.scopedSlots,
  5009. vm.$slots,
  5010. vm.$scopedSlots
  5011. );
  5012. }
  5013. // set parent vnode. this allows render functions to have access
  5014. // to the data on the placeholder node.
  5015. vm.$vnode = _parentVnode;
  5016. // render self
  5017. var vnode;
  5018. try {
  5019. // There's no need to maintain a stack because all render fns are called
  5020. // separately from one another. Nested component's render fns are called
  5021. // when parent component is patched.
  5022. currentRenderingInstance = vm;
  5023. vnode = render.call(vm._renderProxy, vm.$createElement);
  5024. } catch (e) {
  5025. handleError(e, vm, "render");
  5026. // return error render result,
  5027. // or previous vnode to prevent render error causing blank component
  5028. /* istanbul ignore else */
  5029. if ( true && vm.$options.renderError) {
  5030. try {
  5031. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  5032. } catch (e) {
  5033. handleError(e, vm, "renderError");
  5034. vnode = vm._vnode;
  5035. }
  5036. } else {
  5037. vnode = vm._vnode;
  5038. }
  5039. } finally {
  5040. currentRenderingInstance = null;
  5041. }
  5042. // if the returned array contains only a single node, allow it
  5043. if (Array.isArray(vnode) && vnode.length === 1) {
  5044. vnode = vnode[0];
  5045. }
  5046. // return empty vnode in case the render function errored out
  5047. if (!(vnode instanceof VNode)) {
  5048. if ( true && Array.isArray(vnode)) {
  5049. warn(
  5050. 'Multiple root nodes returned from render function. Render function ' +
  5051. 'should return a single root node.',
  5052. vm
  5053. );
  5054. }
  5055. vnode = createEmptyVNode();
  5056. }
  5057. // set parent
  5058. vnode.parent = _parentVnode;
  5059. return vnode
  5060. };
  5061. }
  5062. /* */
  5063. function ensureCtor (comp, base) {
  5064. if (
  5065. comp.__esModule ||
  5066. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  5067. ) {
  5068. comp = comp.default;
  5069. }
  5070. return isObject(comp)
  5071. ? base.extend(comp)
  5072. : comp
  5073. }
  5074. function createAsyncPlaceholder (
  5075. factory,
  5076. data,
  5077. context,
  5078. children,
  5079. tag
  5080. ) {
  5081. var node = createEmptyVNode();
  5082. node.asyncFactory = factory;
  5083. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  5084. return node
  5085. }
  5086. function resolveAsyncComponent (
  5087. factory,
  5088. baseCtor
  5089. ) {
  5090. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  5091. return factory.errorComp
  5092. }
  5093. if (isDef(factory.resolved)) {
  5094. return factory.resolved
  5095. }
  5096. var owner = currentRenderingInstance;
  5097. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  5098. // already pending
  5099. factory.owners.push(owner);
  5100. }
  5101. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  5102. return factory.loadingComp
  5103. }
  5104. if (owner && !isDef(factory.owners)) {
  5105. var owners = factory.owners = [owner];
  5106. var sync = true;
  5107. var timerLoading = null;
  5108. var timerTimeout = null
  5109. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  5110. var forceRender = function (renderCompleted) {
  5111. for (var i = 0, l = owners.length; i < l; i++) {
  5112. (owners[i]).$forceUpdate();
  5113. }
  5114. if (renderCompleted) {
  5115. owners.length = 0;
  5116. if (timerLoading !== null) {
  5117. clearTimeout(timerLoading);
  5118. timerLoading = null;
  5119. }
  5120. if (timerTimeout !== null) {
  5121. clearTimeout(timerTimeout);
  5122. timerTimeout = null;
  5123. }
  5124. }
  5125. };
  5126. var resolve = once(function (res) {
  5127. // cache resolved
  5128. factory.resolved = ensureCtor(res, baseCtor);
  5129. // invoke callbacks only if this is not a synchronous resolve
  5130. // (async resolves are shimmed as synchronous during SSR)
  5131. if (!sync) {
  5132. forceRender(true);
  5133. } else {
  5134. owners.length = 0;
  5135. }
  5136. });
  5137. var reject = once(function (reason) {
  5138. true && warn(
  5139. "Failed to resolve async component: " + (String(factory)) +
  5140. (reason ? ("\nReason: " + reason) : '')
  5141. );
  5142. if (isDef(factory.errorComp)) {
  5143. factory.error = true;
  5144. forceRender(true);
  5145. }
  5146. });
  5147. var res = factory(resolve, reject);
  5148. if (isObject(res)) {
  5149. if (isPromise(res)) {
  5150. // () => Promise
  5151. if (isUndef(factory.resolved)) {
  5152. res.then(resolve, reject);
  5153. }
  5154. } else if (isPromise(res.component)) {
  5155. res.component.then(resolve, reject);
  5156. if (isDef(res.error)) {
  5157. factory.errorComp = ensureCtor(res.error, baseCtor);
  5158. }
  5159. if (isDef(res.loading)) {
  5160. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  5161. if (res.delay === 0) {
  5162. factory.loading = true;
  5163. } else {
  5164. timerLoading = setTimeout(function () {
  5165. timerLoading = null;
  5166. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  5167. factory.loading = true;
  5168. forceRender(false);
  5169. }
  5170. }, res.delay || 200);
  5171. }
  5172. }
  5173. if (isDef(res.timeout)) {
  5174. timerTimeout = setTimeout(function () {
  5175. timerTimeout = null;
  5176. if (isUndef(factory.resolved)) {
  5177. reject(
  5178. true
  5179. ? ("timeout (" + (res.timeout) + "ms)")
  5180. : undefined
  5181. );
  5182. }
  5183. }, res.timeout);
  5184. }
  5185. }
  5186. }
  5187. sync = false;
  5188. // return in case resolved synchronously
  5189. return factory.loading
  5190. ? factory.loadingComp
  5191. : factory.resolved
  5192. }
  5193. }
  5194. /* */
  5195. function isAsyncPlaceholder (node) {
  5196. return node.isComment && node.asyncFactory
  5197. }
  5198. /* */
  5199. function getFirstComponentChild (children) {
  5200. if (Array.isArray(children)) {
  5201. for (var i = 0; i < children.length; i++) {
  5202. var c = children[i];
  5203. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  5204. return c
  5205. }
  5206. }
  5207. }
  5208. }
  5209. /* */
  5210. /* */
  5211. function initEvents (vm) {
  5212. vm._events = Object.create(null);
  5213. vm._hasHookEvent = false;
  5214. // init parent attached events
  5215. var listeners = vm.$options._parentListeners;
  5216. if (listeners) {
  5217. updateComponentListeners(vm, listeners);
  5218. }
  5219. }
  5220. var target;
  5221. function add (event, fn) {
  5222. target.$on(event, fn);
  5223. }
  5224. function remove$1 (event, fn) {
  5225. target.$off(event, fn);
  5226. }
  5227. function createOnceHandler (event, fn) {
  5228. var _target = target;
  5229. return function onceHandler () {
  5230. var res = fn.apply(null, arguments);
  5231. if (res !== null) {
  5232. _target.$off(event, onceHandler);
  5233. }
  5234. }
  5235. }
  5236. function updateComponentListeners (
  5237. vm,
  5238. listeners,
  5239. oldListeners
  5240. ) {
  5241. target = vm;
  5242. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  5243. target = undefined;
  5244. }
  5245. function eventsMixin (Vue) {
  5246. var hookRE = /^hook:/;
  5247. Vue.prototype.$on = function (event, fn) {
  5248. var vm = this;
  5249. if (Array.isArray(event)) {
  5250. for (var i = 0, l = event.length; i < l; i++) {
  5251. vm.$on(event[i], fn);
  5252. }
  5253. } else {
  5254. (vm._events[event] || (vm._events[event] = [])).push(fn);
  5255. // optimize hook:event cost by using a boolean flag marked at registration
  5256. // instead of a hash lookup
  5257. if (hookRE.test(event)) {
  5258. vm._hasHookEvent = true;
  5259. }
  5260. }
  5261. return vm
  5262. };
  5263. Vue.prototype.$once = function (event, fn) {
  5264. var vm = this;
  5265. function on () {
  5266. vm.$off(event, on);
  5267. fn.apply(vm, arguments);
  5268. }
  5269. on.fn = fn;
  5270. vm.$on(event, on);
  5271. return vm
  5272. };
  5273. Vue.prototype.$off = function (event, fn) {
  5274. var vm = this;
  5275. // all
  5276. if (!arguments.length) {
  5277. vm._events = Object.create(null);
  5278. return vm
  5279. }
  5280. // array of events
  5281. if (Array.isArray(event)) {
  5282. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  5283. vm.$off(event[i$1], fn);
  5284. }
  5285. return vm
  5286. }
  5287. // specific event
  5288. var cbs = vm._events[event];
  5289. if (!cbs) {
  5290. return vm
  5291. }
  5292. if (!fn) {
  5293. vm._events[event] = null;
  5294. return vm
  5295. }
  5296. // specific handler
  5297. var cb;
  5298. var i = cbs.length;
  5299. while (i--) {
  5300. cb = cbs[i];
  5301. if (cb === fn || cb.fn === fn) {
  5302. cbs.splice(i, 1);
  5303. break
  5304. }
  5305. }
  5306. return vm
  5307. };
  5308. Vue.prototype.$emit = function (event) {
  5309. var vm = this;
  5310. if (true) {
  5311. var lowerCaseEvent = event.toLowerCase();
  5312. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  5313. tip(
  5314. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  5315. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  5316. "Note that HTML attributes are case-insensitive and you cannot use " +
  5317. "v-on to listen to camelCase events when using in-DOM templates. " +
  5318. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  5319. );
  5320. }
  5321. }
  5322. var cbs = vm._events[event];
  5323. if (cbs) {
  5324. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  5325. var args = toArray(arguments, 1);
  5326. var info = "event handler for \"" + event + "\"";
  5327. for (var i = 0, l = cbs.length; i < l; i++) {
  5328. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  5329. }
  5330. }
  5331. return vm
  5332. };
  5333. }
  5334. /* */
  5335. var activeInstance = null;
  5336. var isUpdatingChildComponent = false;
  5337. function setActiveInstance(vm) {
  5338. var prevActiveInstance = activeInstance;
  5339. activeInstance = vm;
  5340. return function () {
  5341. activeInstance = prevActiveInstance;
  5342. }
  5343. }
  5344. function initLifecycle (vm) {
  5345. var options = vm.$options;
  5346. // locate first non-abstract parent
  5347. var parent = options.parent;
  5348. if (parent && !options.abstract) {
  5349. while (parent.$options.abstract && parent.$parent) {
  5350. parent = parent.$parent;
  5351. }
  5352. parent.$children.push(vm);
  5353. }
  5354. vm.$parent = parent;
  5355. vm.$root = parent ? parent.$root : vm;
  5356. vm.$children = [];
  5357. vm.$refs = {};
  5358. vm._watcher = null;
  5359. vm._inactive = null;
  5360. vm._directInactive = false;
  5361. vm._isMounted = false;
  5362. vm._isDestroyed = false;
  5363. vm._isBeingDestroyed = false;
  5364. }
  5365. function lifecycleMixin (Vue) {
  5366. Vue.prototype._update = function (vnode, hydrating) {
  5367. var vm = this;
  5368. var prevEl = vm.$el;
  5369. var prevVnode = vm._vnode;
  5370. var restoreActiveInstance = setActiveInstance(vm);
  5371. vm._vnode = vnode;
  5372. // Vue.prototype.__patch__ is injected in entry points
  5373. // based on the rendering backend used.
  5374. if (!prevVnode) {
  5375. // initial render
  5376. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  5377. } else {
  5378. // updates
  5379. vm.$el = vm.__patch__(prevVnode, vnode);
  5380. }
  5381. restoreActiveInstance();
  5382. // update __vue__ reference
  5383. if (prevEl) {
  5384. prevEl.__vue__ = null;
  5385. }
  5386. if (vm.$el) {
  5387. vm.$el.__vue__ = vm;
  5388. }
  5389. // if parent is an HOC, update its $el as well
  5390. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  5391. vm.$parent.$el = vm.$el;
  5392. }
  5393. // updated hook is called by the scheduler to ensure that children are
  5394. // updated in a parent's updated hook.
  5395. };
  5396. Vue.prototype.$forceUpdate = function () {
  5397. var vm = this;
  5398. if (vm._watcher) {
  5399. vm._watcher.update();
  5400. }
  5401. };
  5402. Vue.prototype.$destroy = function () {
  5403. var vm = this;
  5404. if (vm._isBeingDestroyed) {
  5405. return
  5406. }
  5407. callHook(vm, 'beforeDestroy');
  5408. vm._isBeingDestroyed = true;
  5409. // remove self from parent
  5410. var parent = vm.$parent;
  5411. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  5412. remove(parent.$children, vm);
  5413. }
  5414. // teardown watchers
  5415. if (vm._watcher) {
  5416. vm._watcher.teardown();
  5417. }
  5418. var i = vm._watchers.length;
  5419. while (i--) {
  5420. vm._watchers[i].teardown();
  5421. }
  5422. // remove reference from data ob
  5423. // frozen object may not have observer.
  5424. if (vm._data.__ob__) {
  5425. vm._data.__ob__.vmCount--;
  5426. }
  5427. // call the last hook...
  5428. vm._isDestroyed = true;
  5429. // invoke destroy hooks on current rendered tree
  5430. vm.__patch__(vm._vnode, null);
  5431. // fire destroyed hook
  5432. callHook(vm, 'destroyed');
  5433. // turn off all instance listeners.
  5434. vm.$off();
  5435. // remove __vue__ reference
  5436. if (vm.$el) {
  5437. vm.$el.__vue__ = null;
  5438. }
  5439. // release circular reference (#6759)
  5440. if (vm.$vnode) {
  5441. vm.$vnode.parent = null;
  5442. }
  5443. };
  5444. }
  5445. function updateChildComponent (
  5446. vm,
  5447. propsData,
  5448. listeners,
  5449. parentVnode,
  5450. renderChildren
  5451. ) {
  5452. if (true) {
  5453. isUpdatingChildComponent = true;
  5454. }
  5455. // determine whether component has slot children
  5456. // we need to do this before overwriting $options._renderChildren.
  5457. // check if there are dynamic scopedSlots (hand-written or compiled but with
  5458. // dynamic slot names). Static scoped slots compiled from template has the
  5459. // "$stable" marker.
  5460. var newScopedSlots = parentVnode.data.scopedSlots;
  5461. var oldScopedSlots = vm.$scopedSlots;
  5462. var hasDynamicScopedSlot = !!(
  5463. (newScopedSlots && !newScopedSlots.$stable) ||
  5464. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  5465. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  5466. );
  5467. // Any static slot children from the parent may have changed during parent's
  5468. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  5469. // update is necessary to ensure correctness.
  5470. var needsForceUpdate = !!(
  5471. renderChildren || // has new static slots
  5472. vm.$options._renderChildren || // has old static slots
  5473. hasDynamicScopedSlot
  5474. );
  5475. vm.$options._parentVnode = parentVnode;
  5476. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  5477. if (vm._vnode) { // update child tree's parent
  5478. vm._vnode.parent = parentVnode;
  5479. }
  5480. vm.$options._renderChildren = renderChildren;
  5481. // update $attrs and $listeners hash
  5482. // these are also reactive so they may trigger child update if the child
  5483. // used them during render
  5484. vm.$attrs = parentVnode.data.attrs || emptyObject;
  5485. vm.$listeners = listeners || emptyObject;
  5486. // update props
  5487. if (propsData && vm.$options.props) {
  5488. toggleObserving(false);
  5489. var props = vm._props;
  5490. var propKeys = vm.$options._propKeys || [];
  5491. for (var i = 0; i < propKeys.length; i++) {
  5492. var key = propKeys[i];
  5493. var propOptions = vm.$options.props; // wtf flow?
  5494. props[key] = validateProp(key, propOptions, propsData, vm);
  5495. }
  5496. toggleObserving(true);
  5497. // keep a copy of raw propsData
  5498. vm.$options.propsData = propsData;
  5499. }
  5500. // fixed by xxxxxx update properties(mp runtime)
  5501. vm._$updateProperties && vm._$updateProperties(vm);
  5502. // update listeners
  5503. listeners = listeners || emptyObject;
  5504. var oldListeners = vm.$options._parentListeners;
  5505. vm.$options._parentListeners = listeners;
  5506. updateComponentListeners(vm, listeners, oldListeners);
  5507. // resolve slots + force update if has children
  5508. if (needsForceUpdate) {
  5509. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  5510. vm.$forceUpdate();
  5511. }
  5512. if (true) {
  5513. isUpdatingChildComponent = false;
  5514. }
  5515. }
  5516. function isInInactiveTree (vm) {
  5517. while (vm && (vm = vm.$parent)) {
  5518. if (vm._inactive) { return true }
  5519. }
  5520. return false
  5521. }
  5522. function activateChildComponent (vm, direct) {
  5523. if (direct) {
  5524. vm._directInactive = false;
  5525. if (isInInactiveTree(vm)) {
  5526. return
  5527. }
  5528. } else if (vm._directInactive) {
  5529. return
  5530. }
  5531. if (vm._inactive || vm._inactive === null) {
  5532. vm._inactive = false;
  5533. for (var i = 0; i < vm.$children.length; i++) {
  5534. activateChildComponent(vm.$children[i]);
  5535. }
  5536. callHook(vm, 'activated');
  5537. }
  5538. }
  5539. function deactivateChildComponent (vm, direct) {
  5540. if (direct) {
  5541. vm._directInactive = true;
  5542. if (isInInactiveTree(vm)) {
  5543. return
  5544. }
  5545. }
  5546. if (!vm._inactive) {
  5547. vm._inactive = true;
  5548. for (var i = 0; i < vm.$children.length; i++) {
  5549. deactivateChildComponent(vm.$children[i]);
  5550. }
  5551. callHook(vm, 'deactivated');
  5552. }
  5553. }
  5554. function callHook (vm, hook) {
  5555. // #7573 disable dep collection when invoking lifecycle hooks
  5556. pushTarget();
  5557. var handlers = vm.$options[hook];
  5558. var info = hook + " hook";
  5559. if (handlers) {
  5560. for (var i = 0, j = handlers.length; i < j; i++) {
  5561. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  5562. }
  5563. }
  5564. if (vm._hasHookEvent) {
  5565. vm.$emit('hook:' + hook);
  5566. }
  5567. popTarget();
  5568. }
  5569. /* */
  5570. var MAX_UPDATE_COUNT = 100;
  5571. var queue = [];
  5572. var activatedChildren = [];
  5573. var has = {};
  5574. var circular = {};
  5575. var waiting = false;
  5576. var flushing = false;
  5577. var index = 0;
  5578. /**
  5579. * Reset the scheduler's state.
  5580. */
  5581. function resetSchedulerState () {
  5582. index = queue.length = activatedChildren.length = 0;
  5583. has = {};
  5584. if (true) {
  5585. circular = {};
  5586. }
  5587. waiting = flushing = false;
  5588. }
  5589. // Async edge case #6566 requires saving the timestamp when event listeners are
  5590. // attached. However, calling performance.now() has a perf overhead especially
  5591. // if the page has thousands of event listeners. Instead, we take a timestamp
  5592. // every time the scheduler flushes and use that for all event listeners
  5593. // attached during that flush.
  5594. var currentFlushTimestamp = 0;
  5595. // Async edge case fix requires storing an event listener's attach timestamp.
  5596. var getNow = Date.now;
  5597. // Determine what event timestamp the browser is using. Annoyingly, the
  5598. // timestamp can either be hi-res (relative to page load) or low-res
  5599. // (relative to UNIX epoch), so in order to compare time we have to use the
  5600. // same timestamp type when saving the flush timestamp.
  5601. // All IE versions use low-res event timestamps, and have problematic clock
  5602. // implementations (#9632)
  5603. if (inBrowser && !isIE) {
  5604. var performance = window.performance;
  5605. if (
  5606. performance &&
  5607. typeof performance.now === 'function' &&
  5608. getNow() > document.createEvent('Event').timeStamp
  5609. ) {
  5610. // if the event timestamp, although evaluated AFTER the Date.now(), is
  5611. // smaller than it, it means the event is using a hi-res timestamp,
  5612. // and we need to use the hi-res version for event listener timestamps as
  5613. // well.
  5614. getNow = function () { return performance.now(); };
  5615. }
  5616. }
  5617. /**
  5618. * Flush both queues and run the watchers.
  5619. */
  5620. function flushSchedulerQueue () {
  5621. currentFlushTimestamp = getNow();
  5622. flushing = true;
  5623. var watcher, id;
  5624. // Sort queue before flush.
  5625. // This ensures that:
  5626. // 1. Components are updated from parent to child. (because parent is always
  5627. // created before the child)
  5628. // 2. A component's user watchers are run before its render watcher (because
  5629. // user watchers are created before the render watcher)
  5630. // 3. If a component is destroyed during a parent component's watcher run,
  5631. // its watchers can be skipped.
  5632. queue.sort(function (a, b) { return a.id - b.id; });
  5633. // do not cache length because more watchers might be pushed
  5634. // as we run existing watchers
  5635. for (index = 0; index < queue.length; index++) {
  5636. watcher = queue[index];
  5637. if (watcher.before) {
  5638. watcher.before();
  5639. }
  5640. id = watcher.id;
  5641. has[id] = null;
  5642. watcher.run();
  5643. // in dev build, check and stop circular updates.
  5644. if ( true && has[id] != null) {
  5645. circular[id] = (circular[id] || 0) + 1;
  5646. if (circular[id] > MAX_UPDATE_COUNT) {
  5647. warn(
  5648. 'You may have an infinite update loop ' + (
  5649. watcher.user
  5650. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  5651. : "in a component render function."
  5652. ),
  5653. watcher.vm
  5654. );
  5655. break
  5656. }
  5657. }
  5658. }
  5659. // keep copies of post queues before resetting state
  5660. var activatedQueue = activatedChildren.slice();
  5661. var updatedQueue = queue.slice();
  5662. resetSchedulerState();
  5663. // call component updated and activated hooks
  5664. callActivatedHooks(activatedQueue);
  5665. callUpdatedHooks(updatedQueue);
  5666. // devtool hook
  5667. /* istanbul ignore if */
  5668. if (devtools && config.devtools) {
  5669. devtools.emit('flush');
  5670. }
  5671. }
  5672. function callUpdatedHooks (queue) {
  5673. var i = queue.length;
  5674. while (i--) {
  5675. var watcher = queue[i];
  5676. var vm = watcher.vm;
  5677. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  5678. callHook(vm, 'updated');
  5679. }
  5680. }
  5681. }
  5682. /**
  5683. * Queue a kept-alive component that was activated during patch.
  5684. * The queue will be processed after the entire tree has been patched.
  5685. */
  5686. function queueActivatedComponent (vm) {
  5687. // setting _inactive to false here so that a render function can
  5688. // rely on checking whether it's in an inactive tree (e.g. router-view)
  5689. vm._inactive = false;
  5690. activatedChildren.push(vm);
  5691. }
  5692. function callActivatedHooks (queue) {
  5693. for (var i = 0; i < queue.length; i++) {
  5694. queue[i]._inactive = true;
  5695. activateChildComponent(queue[i], true /* true */);
  5696. }
  5697. }
  5698. /**
  5699. * Push a watcher into the watcher queue.
  5700. * Jobs with duplicate IDs will be skipped unless it's
  5701. * pushed when the queue is being flushed.
  5702. */
  5703. function queueWatcher (watcher) {
  5704. var id = watcher.id;
  5705. if (has[id] == null) {
  5706. has[id] = true;
  5707. if (!flushing) {
  5708. queue.push(watcher);
  5709. } else {
  5710. // if already flushing, splice the watcher based on its id
  5711. // if already past its id, it will be run next immediately.
  5712. var i = queue.length - 1;
  5713. while (i > index && queue[i].id > watcher.id) {
  5714. i--;
  5715. }
  5716. queue.splice(i + 1, 0, watcher);
  5717. }
  5718. // queue the flush
  5719. if (!waiting) {
  5720. waiting = true;
  5721. if ( true && !config.async) {
  5722. flushSchedulerQueue();
  5723. return
  5724. }
  5725. nextTick(flushSchedulerQueue);
  5726. }
  5727. }
  5728. }
  5729. /* */
  5730. var uid$2 = 0;
  5731. /**
  5732. * A watcher parses an expression, collects dependencies,
  5733. * and fires callback when the expression value changes.
  5734. * This is used for both the $watch() api and directives.
  5735. */
  5736. var Watcher = function Watcher (
  5737. vm,
  5738. expOrFn,
  5739. cb,
  5740. options,
  5741. isRenderWatcher
  5742. ) {
  5743. this.vm = vm;
  5744. if (isRenderWatcher) {
  5745. vm._watcher = this;
  5746. }
  5747. vm._watchers.push(this);
  5748. // options
  5749. if (options) {
  5750. this.deep = !!options.deep;
  5751. this.user = !!options.user;
  5752. this.lazy = !!options.lazy;
  5753. this.sync = !!options.sync;
  5754. this.before = options.before;
  5755. } else {
  5756. this.deep = this.user = this.lazy = this.sync = false;
  5757. }
  5758. this.cb = cb;
  5759. this.id = ++uid$2; // uid for batching
  5760. this.active = true;
  5761. this.dirty = this.lazy; // for lazy watchers
  5762. this.deps = [];
  5763. this.newDeps = [];
  5764. this.depIds = new _Set();
  5765. this.newDepIds = new _Set();
  5766. this.expression = true
  5767. ? expOrFn.toString()
  5768. : undefined;
  5769. // parse expression for getter
  5770. if (typeof expOrFn === 'function') {
  5771. this.getter = expOrFn;
  5772. } else {
  5773. this.getter = parsePath(expOrFn);
  5774. if (!this.getter) {
  5775. this.getter = noop;
  5776. true && warn(
  5777. "Failed watching path: \"" + expOrFn + "\" " +
  5778. 'Watcher only accepts simple dot-delimited paths. ' +
  5779. 'For full control, use a function instead.',
  5780. vm
  5781. );
  5782. }
  5783. }
  5784. this.value = this.lazy
  5785. ? undefined
  5786. : this.get();
  5787. };
  5788. /**
  5789. * Evaluate the getter, and re-collect dependencies.
  5790. */
  5791. Watcher.prototype.get = function get () {
  5792. pushTarget(this);
  5793. var value;
  5794. var vm = this.vm;
  5795. try {
  5796. value = this.getter.call(vm, vm);
  5797. } catch (e) {
  5798. if (this.user) {
  5799. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  5800. } else {
  5801. throw e
  5802. }
  5803. } finally {
  5804. // "touch" every property so they are all tracked as
  5805. // dependencies for deep watching
  5806. if (this.deep) {
  5807. traverse(value);
  5808. }
  5809. popTarget();
  5810. this.cleanupDeps();
  5811. }
  5812. return value
  5813. };
  5814. /**
  5815. * Add a dependency to this directive.
  5816. */
  5817. Watcher.prototype.addDep = function addDep (dep) {
  5818. var id = dep.id;
  5819. if (!this.newDepIds.has(id)) {
  5820. this.newDepIds.add(id);
  5821. this.newDeps.push(dep);
  5822. if (!this.depIds.has(id)) {
  5823. dep.addSub(this);
  5824. }
  5825. }
  5826. };
  5827. /**
  5828. * Clean up for dependency collection.
  5829. */
  5830. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  5831. var i = this.deps.length;
  5832. while (i--) {
  5833. var dep = this.deps[i];
  5834. if (!this.newDepIds.has(dep.id)) {
  5835. dep.removeSub(this);
  5836. }
  5837. }
  5838. var tmp = this.depIds;
  5839. this.depIds = this.newDepIds;
  5840. this.newDepIds = tmp;
  5841. this.newDepIds.clear();
  5842. tmp = this.deps;
  5843. this.deps = this.newDeps;
  5844. this.newDeps = tmp;
  5845. this.newDeps.length = 0;
  5846. };
  5847. /**
  5848. * Subscriber interface.
  5849. * Will be called when a dependency changes.
  5850. */
  5851. Watcher.prototype.update = function update () {
  5852. /* istanbul ignore else */
  5853. if (this.lazy) {
  5854. this.dirty = true;
  5855. } else if (this.sync) {
  5856. this.run();
  5857. } else {
  5858. queueWatcher(this);
  5859. }
  5860. };
  5861. /**
  5862. * Scheduler job interface.
  5863. * Will be called by the scheduler.
  5864. */
  5865. Watcher.prototype.run = function run () {
  5866. if (this.active) {
  5867. var value = this.get();
  5868. if (
  5869. value !== this.value ||
  5870. // Deep watchers and watchers on Object/Arrays should fire even
  5871. // when the value is the same, because the value may
  5872. // have mutated.
  5873. isObject(value) ||
  5874. this.deep
  5875. ) {
  5876. // set new value
  5877. var oldValue = this.value;
  5878. this.value = value;
  5879. if (this.user) {
  5880. try {
  5881. this.cb.call(this.vm, value, oldValue);
  5882. } catch (e) {
  5883. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  5884. }
  5885. } else {
  5886. this.cb.call(this.vm, value, oldValue);
  5887. }
  5888. }
  5889. }
  5890. };
  5891. /**
  5892. * Evaluate the value of the watcher.
  5893. * This only gets called for lazy watchers.
  5894. */
  5895. Watcher.prototype.evaluate = function evaluate () {
  5896. this.value = this.get();
  5897. this.dirty = false;
  5898. };
  5899. /**
  5900. * Depend on all deps collected by this watcher.
  5901. */
  5902. Watcher.prototype.depend = function depend () {
  5903. var i = this.deps.length;
  5904. while (i--) {
  5905. this.deps[i].depend();
  5906. }
  5907. };
  5908. /**
  5909. * Remove self from all dependencies' subscriber list.
  5910. */
  5911. Watcher.prototype.teardown = function teardown () {
  5912. if (this.active) {
  5913. // remove self from vm's watcher list
  5914. // this is a somewhat expensive operation so we skip it
  5915. // if the vm is being destroyed.
  5916. if (!this.vm._isBeingDestroyed) {
  5917. remove(this.vm._watchers, this);
  5918. }
  5919. var i = this.deps.length;
  5920. while (i--) {
  5921. this.deps[i].removeSub(this);
  5922. }
  5923. this.active = false;
  5924. }
  5925. };
  5926. /* */
  5927. var sharedPropertyDefinition = {
  5928. enumerable: true,
  5929. configurable: true,
  5930. get: noop,
  5931. set: noop
  5932. };
  5933. function proxy (target, sourceKey, key) {
  5934. sharedPropertyDefinition.get = function proxyGetter () {
  5935. return this[sourceKey][key]
  5936. };
  5937. sharedPropertyDefinition.set = function proxySetter (val) {
  5938. this[sourceKey][key] = val;
  5939. };
  5940. Object.defineProperty(target, key, sharedPropertyDefinition);
  5941. }
  5942. function initState (vm) {
  5943. vm._watchers = [];
  5944. var opts = vm.$options;
  5945. if (opts.props) { initProps(vm, opts.props); }
  5946. if (opts.methods) { initMethods(vm, opts.methods); }
  5947. if (opts.data) {
  5948. initData(vm);
  5949. } else {
  5950. observe(vm._data = {}, true /* asRootData */);
  5951. }
  5952. if (opts.computed) { initComputed(vm, opts.computed); }
  5953. if (opts.watch && opts.watch !== nativeWatch) {
  5954. initWatch(vm, opts.watch);
  5955. }
  5956. }
  5957. function initProps (vm, propsOptions) {
  5958. var propsData = vm.$options.propsData || {};
  5959. var props = vm._props = {};
  5960. // cache prop keys so that future props updates can iterate using Array
  5961. // instead of dynamic object key enumeration.
  5962. var keys = vm.$options._propKeys = [];
  5963. var isRoot = !vm.$parent;
  5964. // root instance props should be converted
  5965. if (!isRoot) {
  5966. toggleObserving(false);
  5967. }
  5968. var loop = function ( key ) {
  5969. keys.push(key);
  5970. var value = validateProp(key, propsOptions, propsData, vm);
  5971. /* istanbul ignore else */
  5972. if (true) {
  5973. var hyphenatedKey = hyphenate(key);
  5974. if (isReservedAttribute(hyphenatedKey) ||
  5975. config.isReservedAttr(hyphenatedKey)) {
  5976. warn(
  5977. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  5978. vm
  5979. );
  5980. }
  5981. defineReactive$$1(props, key, value, function () {
  5982. if (!isRoot && !isUpdatingChildComponent) {
  5983. {
  5984. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  5985. return
  5986. }
  5987. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  5988. if(
  5989. key === 'value' &&
  5990. Array.isArray(vm.$options.behaviors) &&
  5991. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  5992. ){
  5993. return
  5994. }
  5995. if(vm._getFormData){
  5996. return
  5997. }
  5998. var $parent = vm.$parent;
  5999. while($parent){
  6000. if($parent.__next_tick_pending){
  6001. return
  6002. }
  6003. $parent = $parent.$parent;
  6004. }
  6005. }
  6006. warn(
  6007. "Avoid mutating a prop directly since the value will be " +
  6008. "overwritten whenever the parent component re-renders. " +
  6009. "Instead, use a data or computed property based on the prop's " +
  6010. "value. Prop being mutated: \"" + key + "\"",
  6011. vm
  6012. );
  6013. }
  6014. });
  6015. } else {}
  6016. // static props are already proxied on the component's prototype
  6017. // during Vue.extend(). We only need to proxy props defined at
  6018. // instantiation here.
  6019. if (!(key in vm)) {
  6020. proxy(vm, "_props", key);
  6021. }
  6022. };
  6023. for (var key in propsOptions) loop( key );
  6024. toggleObserving(true);
  6025. }
  6026. function initData (vm) {
  6027. var data = vm.$options.data;
  6028. data = vm._data = typeof data === 'function'
  6029. ? getData(data, vm)
  6030. : data || {};
  6031. if (!isPlainObject(data)) {
  6032. data = {};
  6033. true && warn(
  6034. 'data functions should return an object:\n' +
  6035. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  6036. vm
  6037. );
  6038. }
  6039. // proxy data on instance
  6040. var keys = Object.keys(data);
  6041. var props = vm.$options.props;
  6042. var methods = vm.$options.methods;
  6043. var i = keys.length;
  6044. while (i--) {
  6045. var key = keys[i];
  6046. if (true) {
  6047. if (methods && hasOwn(methods, key)) {
  6048. warn(
  6049. ("Method \"" + key + "\" has already been defined as a data property."),
  6050. vm
  6051. );
  6052. }
  6053. }
  6054. if (props && hasOwn(props, key)) {
  6055. true && warn(
  6056. "The data property \"" + key + "\" is already declared as a prop. " +
  6057. "Use prop default value instead.",
  6058. vm
  6059. );
  6060. } else if (!isReserved(key)) {
  6061. proxy(vm, "_data", key);
  6062. }
  6063. }
  6064. // observe data
  6065. observe(data, true /* asRootData */);
  6066. }
  6067. function getData (data, vm) {
  6068. // #7573 disable dep collection when invoking data getters
  6069. pushTarget();
  6070. try {
  6071. return data.call(vm, vm)
  6072. } catch (e) {
  6073. handleError(e, vm, "data()");
  6074. return {}
  6075. } finally {
  6076. popTarget();
  6077. }
  6078. }
  6079. var computedWatcherOptions = { lazy: true };
  6080. function initComputed (vm, computed) {
  6081. // $flow-disable-line
  6082. var watchers = vm._computedWatchers = Object.create(null);
  6083. // computed properties are just getters during SSR
  6084. var isSSR = isServerRendering();
  6085. for (var key in computed) {
  6086. var userDef = computed[key];
  6087. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  6088. if ( true && getter == null) {
  6089. warn(
  6090. ("Getter is missing for computed property \"" + key + "\"."),
  6091. vm
  6092. );
  6093. }
  6094. if (!isSSR) {
  6095. // create internal watcher for the computed property.
  6096. watchers[key] = new Watcher(
  6097. vm,
  6098. getter || noop,
  6099. noop,
  6100. computedWatcherOptions
  6101. );
  6102. }
  6103. // component-defined computed properties are already defined on the
  6104. // component prototype. We only need to define computed properties defined
  6105. // at instantiation here.
  6106. if (!(key in vm)) {
  6107. defineComputed(vm, key, userDef);
  6108. } else if (true) {
  6109. if (key in vm.$data) {
  6110. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  6111. } else if (vm.$options.props && key in vm.$options.props) {
  6112. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  6113. }
  6114. }
  6115. }
  6116. }
  6117. function defineComputed (
  6118. target,
  6119. key,
  6120. userDef
  6121. ) {
  6122. var shouldCache = !isServerRendering();
  6123. if (typeof userDef === 'function') {
  6124. sharedPropertyDefinition.get = shouldCache
  6125. ? createComputedGetter(key)
  6126. : createGetterInvoker(userDef);
  6127. sharedPropertyDefinition.set = noop;
  6128. } else {
  6129. sharedPropertyDefinition.get = userDef.get
  6130. ? shouldCache && userDef.cache !== false
  6131. ? createComputedGetter(key)
  6132. : createGetterInvoker(userDef.get)
  6133. : noop;
  6134. sharedPropertyDefinition.set = userDef.set || noop;
  6135. }
  6136. if ( true &&
  6137. sharedPropertyDefinition.set === noop) {
  6138. sharedPropertyDefinition.set = function () {
  6139. warn(
  6140. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  6141. this
  6142. );
  6143. };
  6144. }
  6145. Object.defineProperty(target, key, sharedPropertyDefinition);
  6146. }
  6147. function createComputedGetter (key) {
  6148. return function computedGetter () {
  6149. var watcher = this._computedWatchers && this._computedWatchers[key];
  6150. if (watcher) {
  6151. if (watcher.dirty) {
  6152. watcher.evaluate();
  6153. }
  6154. if (Dep.SharedObject.target) {// fixed by xxxxxx
  6155. watcher.depend();
  6156. }
  6157. return watcher.value
  6158. }
  6159. }
  6160. }
  6161. function createGetterInvoker(fn) {
  6162. return function computedGetter () {
  6163. return fn.call(this, this)
  6164. }
  6165. }
  6166. function initMethods (vm, methods) {
  6167. var props = vm.$options.props;
  6168. for (var key in methods) {
  6169. if (true) {
  6170. if (typeof methods[key] !== 'function') {
  6171. warn(
  6172. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  6173. "Did you reference the function correctly?",
  6174. vm
  6175. );
  6176. }
  6177. if (props && hasOwn(props, key)) {
  6178. warn(
  6179. ("Method \"" + key + "\" has already been defined as a prop."),
  6180. vm
  6181. );
  6182. }
  6183. if ((key in vm) && isReserved(key)) {
  6184. warn(
  6185. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  6186. "Avoid defining component methods that start with _ or $."
  6187. );
  6188. }
  6189. }
  6190. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  6191. }
  6192. }
  6193. function initWatch (vm, watch) {
  6194. for (var key in watch) {
  6195. var handler = watch[key];
  6196. if (Array.isArray(handler)) {
  6197. for (var i = 0; i < handler.length; i++) {
  6198. createWatcher(vm, key, handler[i]);
  6199. }
  6200. } else {
  6201. createWatcher(vm, key, handler);
  6202. }
  6203. }
  6204. }
  6205. function createWatcher (
  6206. vm,
  6207. expOrFn,
  6208. handler,
  6209. options
  6210. ) {
  6211. if (isPlainObject(handler)) {
  6212. options = handler;
  6213. handler = handler.handler;
  6214. }
  6215. if (typeof handler === 'string') {
  6216. handler = vm[handler];
  6217. }
  6218. return vm.$watch(expOrFn, handler, options)
  6219. }
  6220. function stateMixin (Vue) {
  6221. // flow somehow has problems with directly declared definition object
  6222. // when using Object.defineProperty, so we have to procedurally build up
  6223. // the object here.
  6224. var dataDef = {};
  6225. dataDef.get = function () { return this._data };
  6226. var propsDef = {};
  6227. propsDef.get = function () { return this._props };
  6228. if (true) {
  6229. dataDef.set = function () {
  6230. warn(
  6231. 'Avoid replacing instance root $data. ' +
  6232. 'Use nested data properties instead.',
  6233. this
  6234. );
  6235. };
  6236. propsDef.set = function () {
  6237. warn("$props is readonly.", this);
  6238. };
  6239. }
  6240. Object.defineProperty(Vue.prototype, '$data', dataDef);
  6241. Object.defineProperty(Vue.prototype, '$props', propsDef);
  6242. Vue.prototype.$set = set;
  6243. Vue.prototype.$delete = del;
  6244. Vue.prototype.$watch = function (
  6245. expOrFn,
  6246. cb,
  6247. options
  6248. ) {
  6249. var vm = this;
  6250. if (isPlainObject(cb)) {
  6251. return createWatcher(vm, expOrFn, cb, options)
  6252. }
  6253. options = options || {};
  6254. options.user = true;
  6255. var watcher = new Watcher(vm, expOrFn, cb, options);
  6256. if (options.immediate) {
  6257. try {
  6258. cb.call(vm, watcher.value);
  6259. } catch (error) {
  6260. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  6261. }
  6262. }
  6263. return function unwatchFn () {
  6264. watcher.teardown();
  6265. }
  6266. };
  6267. }
  6268. /* */
  6269. var uid$3 = 0;
  6270. function initMixin (Vue) {
  6271. Vue.prototype._init = function (options) {
  6272. var vm = this;
  6273. // a uid
  6274. vm._uid = uid$3++;
  6275. var startTag, endTag;
  6276. /* istanbul ignore if */
  6277. if ( true && config.performance && mark) {
  6278. startTag = "vue-perf-start:" + (vm._uid);
  6279. endTag = "vue-perf-end:" + (vm._uid);
  6280. mark(startTag);
  6281. }
  6282. // a flag to avoid this being observed
  6283. vm._isVue = true;
  6284. // merge options
  6285. if (options && options._isComponent) {
  6286. // optimize internal component instantiation
  6287. // since dynamic options merging is pretty slow, and none of the
  6288. // internal component options needs special treatment.
  6289. initInternalComponent(vm, options);
  6290. } else {
  6291. vm.$options = mergeOptions(
  6292. resolveConstructorOptions(vm.constructor),
  6293. options || {},
  6294. vm
  6295. );
  6296. }
  6297. /* istanbul ignore else */
  6298. if (true) {
  6299. initProxy(vm);
  6300. } else {}
  6301. // expose real self
  6302. vm._self = vm;
  6303. initLifecycle(vm);
  6304. initEvents(vm);
  6305. initRender(vm);
  6306. callHook(vm, 'beforeCreate');
  6307. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  6308. initState(vm);
  6309. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  6310. !vm._$fallback && callHook(vm, 'created');
  6311. /* istanbul ignore if */
  6312. if ( true && config.performance && mark) {
  6313. vm._name = formatComponentName(vm, false);
  6314. mark(endTag);
  6315. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  6316. }
  6317. if (vm.$options.el) {
  6318. vm.$mount(vm.$options.el);
  6319. }
  6320. };
  6321. }
  6322. function initInternalComponent (vm, options) {
  6323. var opts = vm.$options = Object.create(vm.constructor.options);
  6324. // doing this because it's faster than dynamic enumeration.
  6325. var parentVnode = options._parentVnode;
  6326. opts.parent = options.parent;
  6327. opts._parentVnode = parentVnode;
  6328. var vnodeComponentOptions = parentVnode.componentOptions;
  6329. opts.propsData = vnodeComponentOptions.propsData;
  6330. opts._parentListeners = vnodeComponentOptions.listeners;
  6331. opts._renderChildren = vnodeComponentOptions.children;
  6332. opts._componentTag = vnodeComponentOptions.tag;
  6333. if (options.render) {
  6334. opts.render = options.render;
  6335. opts.staticRenderFns = options.staticRenderFns;
  6336. }
  6337. }
  6338. function resolveConstructorOptions (Ctor) {
  6339. var options = Ctor.options;
  6340. if (Ctor.super) {
  6341. var superOptions = resolveConstructorOptions(Ctor.super);
  6342. var cachedSuperOptions = Ctor.superOptions;
  6343. if (superOptions !== cachedSuperOptions) {
  6344. // super option changed,
  6345. // need to resolve new options.
  6346. Ctor.superOptions = superOptions;
  6347. // check if there are any late-modified/attached options (#4976)
  6348. var modifiedOptions = resolveModifiedOptions(Ctor);
  6349. // update base extend options
  6350. if (modifiedOptions) {
  6351. extend(Ctor.extendOptions, modifiedOptions);
  6352. }
  6353. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  6354. if (options.name) {
  6355. options.components[options.name] = Ctor;
  6356. }
  6357. }
  6358. }
  6359. return options
  6360. }
  6361. function resolveModifiedOptions (Ctor) {
  6362. var modified;
  6363. var latest = Ctor.options;
  6364. var sealed = Ctor.sealedOptions;
  6365. for (var key in latest) {
  6366. if (latest[key] !== sealed[key]) {
  6367. if (!modified) { modified = {}; }
  6368. modified[key] = latest[key];
  6369. }
  6370. }
  6371. return modified
  6372. }
  6373. function Vue (options) {
  6374. if ( true &&
  6375. !(this instanceof Vue)
  6376. ) {
  6377. warn('Vue is a constructor and should be called with the `new` keyword');
  6378. }
  6379. this._init(options);
  6380. }
  6381. initMixin(Vue);
  6382. stateMixin(Vue);
  6383. eventsMixin(Vue);
  6384. lifecycleMixin(Vue);
  6385. renderMixin(Vue);
  6386. /* */
  6387. function initUse (Vue) {
  6388. Vue.use = function (plugin) {
  6389. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  6390. if (installedPlugins.indexOf(plugin) > -1) {
  6391. return this
  6392. }
  6393. // additional parameters
  6394. var args = toArray(arguments, 1);
  6395. args.unshift(this);
  6396. if (typeof plugin.install === 'function') {
  6397. plugin.install.apply(plugin, args);
  6398. } else if (typeof plugin === 'function') {
  6399. plugin.apply(null, args);
  6400. }
  6401. installedPlugins.push(plugin);
  6402. return this
  6403. };
  6404. }
  6405. /* */
  6406. function initMixin$1 (Vue) {
  6407. Vue.mixin = function (mixin) {
  6408. this.options = mergeOptions(this.options, mixin);
  6409. return this
  6410. };
  6411. }
  6412. /* */
  6413. function initExtend (Vue) {
  6414. /**
  6415. * Each instance constructor, including Vue, has a unique
  6416. * cid. This enables us to create wrapped "child
  6417. * constructors" for prototypal inheritance and cache them.
  6418. */
  6419. Vue.cid = 0;
  6420. var cid = 1;
  6421. /**
  6422. * Class inheritance
  6423. */
  6424. Vue.extend = function (extendOptions) {
  6425. extendOptions = extendOptions || {};
  6426. var Super = this;
  6427. var SuperId = Super.cid;
  6428. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  6429. if (cachedCtors[SuperId]) {
  6430. return cachedCtors[SuperId]
  6431. }
  6432. var name = extendOptions.name || Super.options.name;
  6433. if ( true && name) {
  6434. validateComponentName(name);
  6435. }
  6436. var Sub = function VueComponent (options) {
  6437. this._init(options);
  6438. };
  6439. Sub.prototype = Object.create(Super.prototype);
  6440. Sub.prototype.constructor = Sub;
  6441. Sub.cid = cid++;
  6442. Sub.options = mergeOptions(
  6443. Super.options,
  6444. extendOptions
  6445. );
  6446. Sub['super'] = Super;
  6447. // For props and computed properties, we define the proxy getters on
  6448. // the Vue instances at extension time, on the extended prototype. This
  6449. // avoids Object.defineProperty calls for each instance created.
  6450. if (Sub.options.props) {
  6451. initProps$1(Sub);
  6452. }
  6453. if (Sub.options.computed) {
  6454. initComputed$1(Sub);
  6455. }
  6456. // allow further extension/mixin/plugin usage
  6457. Sub.extend = Super.extend;
  6458. Sub.mixin = Super.mixin;
  6459. Sub.use = Super.use;
  6460. // create asset registers, so extended classes
  6461. // can have their private assets too.
  6462. ASSET_TYPES.forEach(function (type) {
  6463. Sub[type] = Super[type];
  6464. });
  6465. // enable recursive self-lookup
  6466. if (name) {
  6467. Sub.options.components[name] = Sub;
  6468. }
  6469. // keep a reference to the super options at extension time.
  6470. // later at instantiation we can check if Super's options have
  6471. // been updated.
  6472. Sub.superOptions = Super.options;
  6473. Sub.extendOptions = extendOptions;
  6474. Sub.sealedOptions = extend({}, Sub.options);
  6475. // cache constructor
  6476. cachedCtors[SuperId] = Sub;
  6477. return Sub
  6478. };
  6479. }
  6480. function initProps$1 (Comp) {
  6481. var props = Comp.options.props;
  6482. for (var key in props) {
  6483. proxy(Comp.prototype, "_props", key);
  6484. }
  6485. }
  6486. function initComputed$1 (Comp) {
  6487. var computed = Comp.options.computed;
  6488. for (var key in computed) {
  6489. defineComputed(Comp.prototype, key, computed[key]);
  6490. }
  6491. }
  6492. /* */
  6493. function initAssetRegisters (Vue) {
  6494. /**
  6495. * Create asset registration methods.
  6496. */
  6497. ASSET_TYPES.forEach(function (type) {
  6498. Vue[type] = function (
  6499. id,
  6500. definition
  6501. ) {
  6502. if (!definition) {
  6503. return this.options[type + 's'][id]
  6504. } else {
  6505. /* istanbul ignore if */
  6506. if ( true && type === 'component') {
  6507. validateComponentName(id);
  6508. }
  6509. if (type === 'component' && isPlainObject(definition)) {
  6510. definition.name = definition.name || id;
  6511. definition = this.options._base.extend(definition);
  6512. }
  6513. if (type === 'directive' && typeof definition === 'function') {
  6514. definition = { bind: definition, update: definition };
  6515. }
  6516. this.options[type + 's'][id] = definition;
  6517. return definition
  6518. }
  6519. };
  6520. });
  6521. }
  6522. /* */
  6523. function getComponentName (opts) {
  6524. return opts && (opts.Ctor.options.name || opts.tag)
  6525. }
  6526. function matches (pattern, name) {
  6527. if (Array.isArray(pattern)) {
  6528. return pattern.indexOf(name) > -1
  6529. } else if (typeof pattern === 'string') {
  6530. return pattern.split(',').indexOf(name) > -1
  6531. } else if (isRegExp(pattern)) {
  6532. return pattern.test(name)
  6533. }
  6534. /* istanbul ignore next */
  6535. return false
  6536. }
  6537. function pruneCache (keepAliveInstance, filter) {
  6538. var cache = keepAliveInstance.cache;
  6539. var keys = keepAliveInstance.keys;
  6540. var _vnode = keepAliveInstance._vnode;
  6541. for (var key in cache) {
  6542. var cachedNode = cache[key];
  6543. if (cachedNode) {
  6544. var name = getComponentName(cachedNode.componentOptions);
  6545. if (name && !filter(name)) {
  6546. pruneCacheEntry(cache, key, keys, _vnode);
  6547. }
  6548. }
  6549. }
  6550. }
  6551. function pruneCacheEntry (
  6552. cache,
  6553. key,
  6554. keys,
  6555. current
  6556. ) {
  6557. var cached$$1 = cache[key];
  6558. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  6559. cached$$1.componentInstance.$destroy();
  6560. }
  6561. cache[key] = null;
  6562. remove(keys, key);
  6563. }
  6564. var patternTypes = [String, RegExp, Array];
  6565. var KeepAlive = {
  6566. name: 'keep-alive',
  6567. abstract: true,
  6568. props: {
  6569. include: patternTypes,
  6570. exclude: patternTypes,
  6571. max: [String, Number]
  6572. },
  6573. created: function created () {
  6574. this.cache = Object.create(null);
  6575. this.keys = [];
  6576. },
  6577. destroyed: function destroyed () {
  6578. for (var key in this.cache) {
  6579. pruneCacheEntry(this.cache, key, this.keys);
  6580. }
  6581. },
  6582. mounted: function mounted () {
  6583. var this$1 = this;
  6584. this.$watch('include', function (val) {
  6585. pruneCache(this$1, function (name) { return matches(val, name); });
  6586. });
  6587. this.$watch('exclude', function (val) {
  6588. pruneCache(this$1, function (name) { return !matches(val, name); });
  6589. });
  6590. },
  6591. render: function render () {
  6592. var slot = this.$slots.default;
  6593. var vnode = getFirstComponentChild(slot);
  6594. var componentOptions = vnode && vnode.componentOptions;
  6595. if (componentOptions) {
  6596. // check pattern
  6597. var name = getComponentName(componentOptions);
  6598. var ref = this;
  6599. var include = ref.include;
  6600. var exclude = ref.exclude;
  6601. if (
  6602. // not included
  6603. (include && (!name || !matches(include, name))) ||
  6604. // excluded
  6605. (exclude && name && matches(exclude, name))
  6606. ) {
  6607. return vnode
  6608. }
  6609. var ref$1 = this;
  6610. var cache = ref$1.cache;
  6611. var keys = ref$1.keys;
  6612. var key = vnode.key == null
  6613. // same constructor may get registered as different local components
  6614. // so cid alone is not enough (#3269)
  6615. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  6616. : vnode.key;
  6617. if (cache[key]) {
  6618. vnode.componentInstance = cache[key].componentInstance;
  6619. // make current key freshest
  6620. remove(keys, key);
  6621. keys.push(key);
  6622. } else {
  6623. cache[key] = vnode;
  6624. keys.push(key);
  6625. // prune oldest entry
  6626. if (this.max && keys.length > parseInt(this.max)) {
  6627. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  6628. }
  6629. }
  6630. vnode.data.keepAlive = true;
  6631. }
  6632. return vnode || (slot && slot[0])
  6633. }
  6634. };
  6635. var builtInComponents = {
  6636. KeepAlive: KeepAlive
  6637. };
  6638. /* */
  6639. function initGlobalAPI (Vue) {
  6640. // config
  6641. var configDef = {};
  6642. configDef.get = function () { return config; };
  6643. if (true) {
  6644. configDef.set = function () {
  6645. warn(
  6646. 'Do not replace the Vue.config object, set individual fields instead.'
  6647. );
  6648. };
  6649. }
  6650. Object.defineProperty(Vue, 'config', configDef);
  6651. // exposed util methods.
  6652. // NOTE: these are not considered part of the public API - avoid relying on
  6653. // them unless you are aware of the risk.
  6654. Vue.util = {
  6655. warn: warn,
  6656. extend: extend,
  6657. mergeOptions: mergeOptions,
  6658. defineReactive: defineReactive$$1
  6659. };
  6660. Vue.set = set;
  6661. Vue.delete = del;
  6662. Vue.nextTick = nextTick;
  6663. // 2.6 explicit observable API
  6664. Vue.observable = function (obj) {
  6665. observe(obj);
  6666. return obj
  6667. };
  6668. Vue.options = Object.create(null);
  6669. ASSET_TYPES.forEach(function (type) {
  6670. Vue.options[type + 's'] = Object.create(null);
  6671. });
  6672. // this is used to identify the "base" constructor to extend all plain-object
  6673. // components with in Weex's multi-instance scenarios.
  6674. Vue.options._base = Vue;
  6675. extend(Vue.options.components, builtInComponents);
  6676. initUse(Vue);
  6677. initMixin$1(Vue);
  6678. initExtend(Vue);
  6679. initAssetRegisters(Vue);
  6680. }
  6681. initGlobalAPI(Vue);
  6682. Object.defineProperty(Vue.prototype, '$isServer', {
  6683. get: isServerRendering
  6684. });
  6685. Object.defineProperty(Vue.prototype, '$ssrContext', {
  6686. get: function get () {
  6687. /* istanbul ignore next */
  6688. return this.$vnode && this.$vnode.ssrContext
  6689. }
  6690. });
  6691. // expose FunctionalRenderContext for ssr runtime helper installation
  6692. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  6693. value: FunctionalRenderContext
  6694. });
  6695. Vue.version = '2.6.11';
  6696. /**
  6697. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  6698. */
  6699. var ARRAYTYPE = '[object Array]';
  6700. var OBJECTTYPE = '[object Object]';
  6701. // const FUNCTIONTYPE = '[object Function]'
  6702. function diff(current, pre) {
  6703. var result = {};
  6704. syncKeys(current, pre);
  6705. _diff(current, pre, '', result);
  6706. return result
  6707. }
  6708. function syncKeys(current, pre) {
  6709. if (current === pre) { return }
  6710. var rootCurrentType = type(current);
  6711. var rootPreType = type(pre);
  6712. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  6713. if(Object.keys(current).length >= Object.keys(pre).length){
  6714. for (var key in pre) {
  6715. var currentValue = current[key];
  6716. if (currentValue === undefined) {
  6717. current[key] = null;
  6718. } else {
  6719. syncKeys(currentValue, pre[key]);
  6720. }
  6721. }
  6722. }
  6723. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  6724. if (current.length >= pre.length) {
  6725. pre.forEach(function (item, index) {
  6726. syncKeys(current[index], item);
  6727. });
  6728. }
  6729. }
  6730. }
  6731. function _diff(current, pre, path, result) {
  6732. if (current === pre) { return }
  6733. var rootCurrentType = type(current);
  6734. var rootPreType = type(pre);
  6735. if (rootCurrentType == OBJECTTYPE) {
  6736. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  6737. setResult(result, path, current);
  6738. } else {
  6739. var loop = function ( key ) {
  6740. var currentValue = current[key];
  6741. var preValue = pre[key];
  6742. var currentType = type(currentValue);
  6743. var preType = type(preValue);
  6744. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  6745. if (currentValue !== pre[key]) {
  6746. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6747. }
  6748. } else if (currentType == ARRAYTYPE) {
  6749. if (preType != ARRAYTYPE) {
  6750. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6751. } else {
  6752. if (currentValue.length < preValue.length) {
  6753. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6754. } else {
  6755. currentValue.forEach(function (item, index) {
  6756. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  6757. });
  6758. }
  6759. }
  6760. } else if (currentType == OBJECTTYPE) {
  6761. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  6762. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6763. } else {
  6764. for (var subKey in currentValue) {
  6765. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  6766. }
  6767. }
  6768. }
  6769. };
  6770. for (var key in current) loop( key );
  6771. }
  6772. } else if (rootCurrentType == ARRAYTYPE) {
  6773. if (rootPreType != ARRAYTYPE) {
  6774. setResult(result, path, current);
  6775. } else {
  6776. if (current.length < pre.length) {
  6777. setResult(result, path, current);
  6778. } else {
  6779. current.forEach(function (item, index) {
  6780. _diff(item, pre[index], path + '[' + index + ']', result);
  6781. });
  6782. }
  6783. }
  6784. } else {
  6785. setResult(result, path, current);
  6786. }
  6787. }
  6788. function setResult(result, k, v) {
  6789. // if (type(v) != FUNCTIONTYPE) {
  6790. result[k] = v;
  6791. // }
  6792. }
  6793. function type(obj) {
  6794. return Object.prototype.toString.call(obj)
  6795. }
  6796. /* */
  6797. function flushCallbacks$1(vm) {
  6798. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  6799. if (Object({"VUE_APP_NAME":"sugarpark-mini-program","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6800. var mpInstance = vm.$scope;
  6801. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6802. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  6803. }
  6804. var copies = vm.__next_tick_callbacks.slice(0);
  6805. vm.__next_tick_callbacks.length = 0;
  6806. for (var i = 0; i < copies.length; i++) {
  6807. copies[i]();
  6808. }
  6809. }
  6810. }
  6811. function hasRenderWatcher(vm) {
  6812. return queue.find(function (watcher) { return vm._watcher === watcher; })
  6813. }
  6814. function nextTick$1(vm, cb) {
  6815. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  6816. //2.nextTick 之前存在 render watcher
  6817. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  6818. if(Object({"VUE_APP_NAME":"sugarpark-mini-program","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  6819. var mpInstance = vm.$scope;
  6820. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6821. ']:nextVueTick');
  6822. }
  6823. return nextTick(cb, vm)
  6824. }else{
  6825. if(Object({"VUE_APP_NAME":"sugarpark-mini-program","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  6826. var mpInstance$1 = vm.$scope;
  6827. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  6828. ']:nextMPTick');
  6829. }
  6830. }
  6831. var _resolve;
  6832. if (!vm.__next_tick_callbacks) {
  6833. vm.__next_tick_callbacks = [];
  6834. }
  6835. vm.__next_tick_callbacks.push(function () {
  6836. if (cb) {
  6837. try {
  6838. cb.call(vm);
  6839. } catch (e) {
  6840. handleError(e, vm, 'nextTick');
  6841. }
  6842. } else if (_resolve) {
  6843. _resolve(vm);
  6844. }
  6845. });
  6846. // $flow-disable-line
  6847. if (!cb && typeof Promise !== 'undefined') {
  6848. return new Promise(function (resolve) {
  6849. _resolve = resolve;
  6850. })
  6851. }
  6852. }
  6853. /* */
  6854. function cloneWithData(vm) {
  6855. // 确保当前 vm 所有数据被同步
  6856. var ret = Object.create(null);
  6857. var dataKeys = [].concat(
  6858. Object.keys(vm._data || {}),
  6859. Object.keys(vm._computedWatchers || {}));
  6860. dataKeys.reduce(function(ret, key) {
  6861. ret[key] = vm[key];
  6862. return ret
  6863. }, ret);
  6864. // vue-composition-api
  6865. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  6866. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  6867. if (rawBindings) {
  6868. Object.keys(rawBindings).forEach(function (key) {
  6869. ret[key] = vm[key];
  6870. });
  6871. }
  6872. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  6873. Object.assign(ret, vm.$mp.data || {});
  6874. if (
  6875. Array.isArray(vm.$options.behaviors) &&
  6876. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6877. ) { //form-field
  6878. ret['name'] = vm.name;
  6879. ret['value'] = vm.value;
  6880. }
  6881. return JSON.parse(JSON.stringify(ret))
  6882. }
  6883. var patch = function(oldVnode, vnode) {
  6884. var this$1 = this;
  6885. if (vnode === null) { //destroy
  6886. return
  6887. }
  6888. if (this.mpType === 'page' || this.mpType === 'component') {
  6889. var mpInstance = this.$scope;
  6890. var data = Object.create(null);
  6891. try {
  6892. data = cloneWithData(this);
  6893. } catch (err) {
  6894. console.error(err);
  6895. }
  6896. data.__webviewId__ = mpInstance.data.__webviewId__;
  6897. var mpData = Object.create(null);
  6898. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  6899. mpData[key] = mpInstance.data[key];
  6900. });
  6901. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  6902. if (Object.keys(diffData).length) {
  6903. if (Object({"VUE_APP_NAME":"sugarpark-mini-program","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6904. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  6905. ']差量更新',
  6906. JSON.stringify(diffData));
  6907. }
  6908. this.__next_tick_pending = true;
  6909. mpInstance.setData(diffData, function () {
  6910. this$1.__next_tick_pending = false;
  6911. flushCallbacks$1(this$1);
  6912. });
  6913. } else {
  6914. flushCallbacks$1(this);
  6915. }
  6916. }
  6917. };
  6918. /* */
  6919. function createEmptyRender() {
  6920. }
  6921. function mountComponent$1(
  6922. vm,
  6923. el,
  6924. hydrating
  6925. ) {
  6926. if (!vm.mpType) {//main.js 中的 new Vue
  6927. return vm
  6928. }
  6929. if (vm.mpType === 'app') {
  6930. vm.$options.render = createEmptyRender;
  6931. }
  6932. if (!vm.$options.render) {
  6933. vm.$options.render = createEmptyRender;
  6934. if (true) {
  6935. /* istanbul ignore if */
  6936. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  6937. vm.$options.el || el) {
  6938. warn(
  6939. 'You are using the runtime-only build of Vue where the template ' +
  6940. 'compiler is not available. Either pre-compile the templates into ' +
  6941. 'render functions, or use the compiler-included build.',
  6942. vm
  6943. );
  6944. } else {
  6945. warn(
  6946. 'Failed to mount component: template or render function not defined.',
  6947. vm
  6948. );
  6949. }
  6950. }
  6951. }
  6952. !vm._$fallback && callHook(vm, 'beforeMount');
  6953. var updateComponent = function () {
  6954. vm._update(vm._render(), hydrating);
  6955. };
  6956. // we set this to vm._watcher inside the watcher's constructor
  6957. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  6958. // component's mounted hook), which relies on vm._watcher being already defined
  6959. new Watcher(vm, updateComponent, noop, {
  6960. before: function before() {
  6961. if (vm._isMounted && !vm._isDestroyed) {
  6962. callHook(vm, 'beforeUpdate');
  6963. }
  6964. }
  6965. }, true /* isRenderWatcher */);
  6966. hydrating = false;
  6967. return vm
  6968. }
  6969. /* */
  6970. function renderClass (
  6971. staticClass,
  6972. dynamicClass
  6973. ) {
  6974. if (isDef(staticClass) || isDef(dynamicClass)) {
  6975. return concat(staticClass, stringifyClass(dynamicClass))
  6976. }
  6977. /* istanbul ignore next */
  6978. return ''
  6979. }
  6980. function concat (a, b) {
  6981. return a ? b ? (a + ' ' + b) : a : (b || '')
  6982. }
  6983. function stringifyClass (value) {
  6984. if (Array.isArray(value)) {
  6985. return stringifyArray(value)
  6986. }
  6987. if (isObject(value)) {
  6988. return stringifyObject(value)
  6989. }
  6990. if (typeof value === 'string') {
  6991. return value
  6992. }
  6993. /* istanbul ignore next */
  6994. return ''
  6995. }
  6996. function stringifyArray (value) {
  6997. var res = '';
  6998. var stringified;
  6999. for (var i = 0, l = value.length; i < l; i++) {
  7000. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  7001. if (res) { res += ' '; }
  7002. res += stringified;
  7003. }
  7004. }
  7005. return res
  7006. }
  7007. function stringifyObject (value) {
  7008. var res = '';
  7009. for (var key in value) {
  7010. if (value[key]) {
  7011. if (res) { res += ' '; }
  7012. res += key;
  7013. }
  7014. }
  7015. return res
  7016. }
  7017. /* */
  7018. var parseStyleText = cached(function (cssText) {
  7019. var res = {};
  7020. var listDelimiter = /;(?![^(]*\))/g;
  7021. var propertyDelimiter = /:(.+)/;
  7022. cssText.split(listDelimiter).forEach(function (item) {
  7023. if (item) {
  7024. var tmp = item.split(propertyDelimiter);
  7025. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  7026. }
  7027. });
  7028. return res
  7029. });
  7030. // normalize possible array / string values into Object
  7031. function normalizeStyleBinding (bindingStyle) {
  7032. if (Array.isArray(bindingStyle)) {
  7033. return toObject(bindingStyle)
  7034. }
  7035. if (typeof bindingStyle === 'string') {
  7036. return parseStyleText(bindingStyle)
  7037. }
  7038. return bindingStyle
  7039. }
  7040. /* */
  7041. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  7042. function getTarget(obj, path) {
  7043. var parts = path.split('.');
  7044. var key = parts[0];
  7045. if (key.indexOf('__$n') === 0) { //number index
  7046. key = parseInt(key.replace('__$n', ''));
  7047. }
  7048. if (parts.length === 1) {
  7049. return obj[key]
  7050. }
  7051. return getTarget(obj[key], parts.slice(1).join('.'))
  7052. }
  7053. function internalMixin(Vue) {
  7054. Vue.config.errorHandler = function(err, vm, info) {
  7055. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7056. console.error(err);
  7057. /* eslint-disable no-undef */
  7058. var app = typeof getApp === 'function' && getApp();
  7059. if (app && app.onError) {
  7060. app.onError(err);
  7061. }
  7062. };
  7063. var oldEmit = Vue.prototype.$emit;
  7064. Vue.prototype.$emit = function(event) {
  7065. if (this.$scope && event) {
  7066. (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']).call(this.$scope, event, {
  7067. __args__: toArray(arguments, 1)
  7068. });
  7069. }
  7070. return oldEmit.apply(this, arguments)
  7071. };
  7072. Vue.prototype.$nextTick = function(fn) {
  7073. return nextTick$1(this, fn)
  7074. };
  7075. MP_METHODS.forEach(function (method) {
  7076. Vue.prototype[method] = function(args) {
  7077. if (this.$scope && this.$scope[method]) {
  7078. return this.$scope[method](args)
  7079. }
  7080. // mp-alipay
  7081. if (typeof my === 'undefined') {
  7082. return
  7083. }
  7084. if (method === 'createSelectorQuery') {
  7085. /* eslint-disable no-undef */
  7086. return my.createSelectorQuery(args)
  7087. } else if (method === 'createIntersectionObserver') {
  7088. /* eslint-disable no-undef */
  7089. return my.createIntersectionObserver(args)
  7090. }
  7091. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  7092. };
  7093. });
  7094. Vue.prototype.__init_provide = initProvide;
  7095. Vue.prototype.__init_injections = initInjections;
  7096. Vue.prototype.__call_hook = function(hook, args) {
  7097. var vm = this;
  7098. // #7573 disable dep collection when invoking lifecycle hooks
  7099. pushTarget();
  7100. var handlers = vm.$options[hook];
  7101. var info = hook + " hook";
  7102. var ret;
  7103. if (handlers) {
  7104. for (var i = 0, j = handlers.length; i < j; i++) {
  7105. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  7106. }
  7107. }
  7108. if (vm._hasHookEvent) {
  7109. vm.$emit('hook:' + hook, args);
  7110. }
  7111. popTarget();
  7112. return ret
  7113. };
  7114. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  7115. if (Array.isArray(modifiers)) {
  7116. if (modifiers.indexOf('trim') !== -1) {
  7117. value = value.trim();
  7118. }
  7119. if (modifiers.indexOf('number') !== -1) {
  7120. value = this._n(value);
  7121. }
  7122. }
  7123. if (!target) {
  7124. target = this;
  7125. }
  7126. // 解决动态属性添加
  7127. Vue.set(target, key, value);
  7128. };
  7129. Vue.prototype.__set_sync = function(target, key, value) {
  7130. if (!target) {
  7131. target = this;
  7132. }
  7133. // 解决动态属性添加
  7134. Vue.set(target, key, value);
  7135. };
  7136. Vue.prototype.__get_orig = function(item) {
  7137. if (isPlainObject(item)) {
  7138. return item['$orig'] || item
  7139. }
  7140. return item
  7141. };
  7142. Vue.prototype.__get_value = function(dataPath, target) {
  7143. return getTarget(target || this, dataPath)
  7144. };
  7145. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  7146. return renderClass(staticClass, dynamicClass)
  7147. };
  7148. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  7149. if (!dynamicStyle && !staticStyle) {
  7150. return ''
  7151. }
  7152. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  7153. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  7154. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  7155. };
  7156. Vue.prototype.__map = function(val, iteratee) {
  7157. //TODO 暂不考虑 string
  7158. var ret, i, l, keys, key;
  7159. if (Array.isArray(val)) {
  7160. ret = new Array(val.length);
  7161. for (i = 0, l = val.length; i < l; i++) {
  7162. ret[i] = iteratee(val[i], i);
  7163. }
  7164. return ret
  7165. } else if (isObject(val)) {
  7166. keys = Object.keys(val);
  7167. ret = Object.create(null);
  7168. for (i = 0, l = keys.length; i < l; i++) {
  7169. key = keys[i];
  7170. ret[key] = iteratee(val[key], key, i);
  7171. }
  7172. return ret
  7173. } else if (typeof val === 'number') {
  7174. ret = new Array(val);
  7175. for (i = 0, l = val; i < l; i++) {
  7176. // 第一个参数暂时仍和小程序一致
  7177. ret[i] = iteratee(i, i);
  7178. }
  7179. return ret
  7180. }
  7181. return []
  7182. };
  7183. }
  7184. /* */
  7185. var LIFECYCLE_HOOKS$1 = [
  7186. //App
  7187. 'onLaunch',
  7188. 'onShow',
  7189. 'onHide',
  7190. 'onUniNViewMessage',
  7191. 'onPageNotFound',
  7192. 'onThemeChange',
  7193. 'onError',
  7194. 'onUnhandledRejection',
  7195. //Page
  7196. 'onInit',
  7197. 'onLoad',
  7198. // 'onShow',
  7199. 'onReady',
  7200. // 'onHide',
  7201. 'onUnload',
  7202. 'onPullDownRefresh',
  7203. 'onReachBottom',
  7204. 'onTabItemTap',
  7205. 'onAddToFavorites',
  7206. 'onShareTimeline',
  7207. 'onShareAppMessage',
  7208. 'onResize',
  7209. 'onPageScroll',
  7210. 'onNavigationBarButtonTap',
  7211. 'onBackPress',
  7212. 'onNavigationBarSearchInputChanged',
  7213. 'onNavigationBarSearchInputConfirmed',
  7214. 'onNavigationBarSearchInputClicked',
  7215. //Component
  7216. // 'onReady', // 兼容旧版本,应该移除该事件
  7217. 'onPageShow',
  7218. 'onPageHide',
  7219. 'onPageResize'
  7220. ];
  7221. function lifecycleMixin$1(Vue) {
  7222. //fixed vue-class-component
  7223. var oldExtend = Vue.extend;
  7224. Vue.extend = function(extendOptions) {
  7225. extendOptions = extendOptions || {};
  7226. var methods = extendOptions.methods;
  7227. if (methods) {
  7228. Object.keys(methods).forEach(function (methodName) {
  7229. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  7230. extendOptions[methodName] = methods[methodName];
  7231. delete methods[methodName];
  7232. }
  7233. });
  7234. }
  7235. return oldExtend.call(this, extendOptions)
  7236. };
  7237. var strategies = Vue.config.optionMergeStrategies;
  7238. var mergeHook = strategies.created;
  7239. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  7240. strategies[hook] = mergeHook;
  7241. });
  7242. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  7243. }
  7244. /* */
  7245. // install platform patch function
  7246. Vue.prototype.__patch__ = patch;
  7247. // public mount method
  7248. Vue.prototype.$mount = function(
  7249. el ,
  7250. hydrating
  7251. ) {
  7252. return mountComponent$1(this, el, hydrating)
  7253. };
  7254. lifecycleMixin$1(Vue);
  7255. internalMixin(Vue);
  7256. /* */
  7257. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  7258. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  7259. /***/ }),
  7260. /* 4 */
  7261. /*!*************************************************************!*\
  7262. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  7263. \*************************************************************/
  7264. /*! no static exports found */
  7265. /***/ (function(module, exports, __webpack_require__) {
  7266. "use strict";
  7267. /* 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;
  7268. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  7269. var defaultDelimiters = ['{', '}'];var
  7270. BaseFormatter = /*#__PURE__*/function () {
  7271. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  7272. this._caches = Object.create(null);
  7273. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  7274. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  7275. if (!values) {
  7276. return [message];
  7277. }
  7278. var tokens = this._caches[message];
  7279. if (!tokens) {
  7280. tokens = parse(message, delimiters);
  7281. this._caches[message] = tokens;
  7282. }
  7283. return compile(tokens, values);
  7284. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  7285. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  7286. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  7287. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  7288. var tokens = [];
  7289. var position = 0;
  7290. var text = '';
  7291. while (position < format.length) {
  7292. var char = format[position++];
  7293. if (char === startDelimiter) {
  7294. if (text) {
  7295. tokens.push({ type: 'text', value: text });
  7296. }
  7297. text = '';
  7298. var sub = '';
  7299. char = format[position++];
  7300. while (char !== undefined && char !== endDelimiter) {
  7301. sub += char;
  7302. char = format[position++];
  7303. }
  7304. var isClosed = char === endDelimiter;
  7305. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  7306. 'list' :
  7307. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  7308. 'named' :
  7309. 'unknown';
  7310. tokens.push({ value: sub, type: type });
  7311. }
  7312. // else if (char === '%') {
  7313. // // when found rails i18n syntax, skip text capture
  7314. // if (format[position] !== '{') {
  7315. // text += char
  7316. // }
  7317. // }
  7318. else {
  7319. text += char;
  7320. }
  7321. }
  7322. text && tokens.push({ type: 'text', value: text });
  7323. return tokens;
  7324. }
  7325. function compile(tokens, values) {
  7326. var compiled = [];
  7327. var index = 0;
  7328. var mode = isArray(values) ?
  7329. 'list' :
  7330. isObject(values) ?
  7331. 'named' :
  7332. 'unknown';
  7333. if (mode === 'unknown') {
  7334. return compiled;
  7335. }
  7336. while (index < tokens.length) {
  7337. var token = tokens[index];
  7338. switch (token.type) {
  7339. case 'text':
  7340. compiled.push(token.value);
  7341. break;
  7342. case 'list':
  7343. compiled.push(values[parseInt(token.value, 10)]);
  7344. break;
  7345. case 'named':
  7346. if (mode === 'named') {
  7347. compiled.push(values[token.value]);
  7348. } else
  7349. {
  7350. if (true) {
  7351. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  7352. }
  7353. }
  7354. break;
  7355. case 'unknown':
  7356. if (true) {
  7357. console.warn("Detect 'unknown' type of token!");
  7358. }
  7359. break;}
  7360. index++;
  7361. }
  7362. return compiled;
  7363. }
  7364. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  7365. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  7366. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  7367. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  7368. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  7369. var hasOwnProperty = Object.prototype.hasOwnProperty;
  7370. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  7371. var defaultFormatter = new BaseFormatter();
  7372. function include(str, parts) {
  7373. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  7374. }
  7375. function startsWith(str, parts) {
  7376. return parts.find(function (part) {return str.indexOf(part) === 0;});
  7377. }
  7378. function normalizeLocale(locale, messages) {
  7379. if (!locale) {
  7380. return;
  7381. }
  7382. locale = locale.trim().replace(/_/g, '-');
  7383. if (messages && messages[locale]) {
  7384. return locale;
  7385. }
  7386. locale = locale.toLowerCase();
  7387. if (locale.indexOf('zh') === 0) {
  7388. if (locale.indexOf('-hans') > -1) {
  7389. return LOCALE_ZH_HANS;
  7390. }
  7391. if (locale.indexOf('-hant') > -1) {
  7392. return LOCALE_ZH_HANT;
  7393. }
  7394. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  7395. return LOCALE_ZH_HANT;
  7396. }
  7397. return LOCALE_ZH_HANS;
  7398. }
  7399. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  7400. if (lang) {
  7401. return lang;
  7402. }
  7403. }var
  7404. I18n = /*#__PURE__*/function () {
  7405. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  7406. this.locale = LOCALE_EN;
  7407. this.fallbackLocale = LOCALE_EN;
  7408. this.message = {};
  7409. this.messages = {};
  7410. this.watchers = [];
  7411. if (fallbackLocale) {
  7412. this.fallbackLocale = fallbackLocale;
  7413. }
  7414. this.formater = formater || defaultFormatter;
  7415. this.messages = messages || {};
  7416. this.setLocale(locale || LOCALE_EN);
  7417. if (watcher) {
  7418. this.watchLocale(watcher);
  7419. }
  7420. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  7421. locale) {var _this = this;
  7422. var oldLocale = this.locale;
  7423. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  7424. if (!this.messages[this.locale]) {
  7425. // 可能初始化时不存在
  7426. this.messages[this.locale] = {};
  7427. }
  7428. this.message = this.messages[this.locale];
  7429. // 仅发生变化时,通知
  7430. if (oldLocale !== this.locale) {
  7431. this.watchers.forEach(function (watcher) {
  7432. watcher(_this.locale, oldLocale);
  7433. });
  7434. }
  7435. } }, { key: "getLocale", value: function getLocale()
  7436. {
  7437. return this.locale;
  7438. } }, { key: "watchLocale", value: function watchLocale(
  7439. fn) {var _this2 = this;
  7440. var index = this.watchers.push(fn) - 1;
  7441. return function () {
  7442. _this2.watchers.splice(index, 1);
  7443. };
  7444. } }, { key: "add", value: function add(
  7445. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  7446. var curMessages = this.messages[locale];
  7447. if (curMessages) {
  7448. if (override) {
  7449. Object.assign(curMessages, message);
  7450. } else
  7451. {
  7452. Object.keys(message).forEach(function (key) {
  7453. if (!hasOwn(curMessages, key)) {
  7454. curMessages[key] = message[key];
  7455. }
  7456. });
  7457. }
  7458. } else
  7459. {
  7460. this.messages[locale] = message;
  7461. }
  7462. } }, { key: "f", value: function f(
  7463. message, values, delimiters) {
  7464. return this.formater.interpolate(message, values, delimiters).join('');
  7465. } }, { key: "t", value: function t(
  7466. key, locale, values) {
  7467. var message = this.message;
  7468. if (typeof locale === 'string') {
  7469. locale = normalizeLocale(locale, this.messages);
  7470. locale && (message = this.messages[locale]);
  7471. } else
  7472. {
  7473. values = locale;
  7474. }
  7475. if (!hasOwn(message, key)) {
  7476. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  7477. return key;
  7478. }
  7479. return this.formater.interpolate(message[key], values).join('');
  7480. } }]);return I18n;}();exports.I18n = I18n;
  7481. function watchAppLocale(appVm, i18n) {
  7482. // 需要保证 watch 的触发在组件渲染之前
  7483. if (appVm.$watchLocale) {
  7484. // vue2
  7485. appVm.$watchLocale(function (newLocale) {
  7486. i18n.setLocale(newLocale);
  7487. });
  7488. } else
  7489. {
  7490. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  7491. i18n.setLocale(newLocale);
  7492. });
  7493. }
  7494. }
  7495. function getDefaultLocale() {
  7496. if (typeof uni !== 'undefined' && uni.getLocale) {
  7497. return uni.getLocale();
  7498. }
  7499. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  7500. if (typeof global !== 'undefined' && global.getLocale) {
  7501. return global.getLocale();
  7502. }
  7503. return LOCALE_EN;
  7504. }
  7505. 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;
  7506. // 兼容旧版本入参
  7507. if (typeof locale !== 'string') {var _ref4 =
  7508. [
  7509. messages,
  7510. locale];locale = _ref4[0];messages = _ref4[1];
  7511. }
  7512. if (typeof locale !== 'string') {
  7513. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  7514. locale = getDefaultLocale();
  7515. }
  7516. if (typeof fallbackLocale !== 'string') {
  7517. fallbackLocale =
  7518. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  7519. LOCALE_EN;
  7520. }
  7521. var i18n = new I18n({
  7522. locale: locale,
  7523. fallbackLocale: fallbackLocale,
  7524. messages: messages,
  7525. watcher: watcher });
  7526. var _t = function t(key, values) {
  7527. if (typeof getApp !== 'function') {
  7528. // app view
  7529. /* eslint-disable no-func-assign */
  7530. _t = function t(key, values) {
  7531. return i18n.t(key, values);
  7532. };
  7533. } else
  7534. {
  7535. var isWatchedAppLocale = false;
  7536. _t = function t(key, values) {
  7537. var appVm = getApp().$vm;
  7538. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  7539. // options: {
  7540. // type: Array,
  7541. // default () {
  7542. // return [{
  7543. // icon: 'shop',
  7544. // text: t("uni-goods-nav.options.shop"),
  7545. // }, {
  7546. // icon: 'cart',
  7547. // text: t("uni-goods-nav.options.cart")
  7548. // }]
  7549. // }
  7550. // },
  7551. if (appVm) {
  7552. // 触发响应式
  7553. appVm.$locale;
  7554. if (!isWatchedAppLocale) {
  7555. isWatchedAppLocale = true;
  7556. watchAppLocale(appVm, i18n);
  7557. }
  7558. }
  7559. return i18n.t(key, values);
  7560. };
  7561. }
  7562. return _t(key, values);
  7563. };
  7564. return {
  7565. i18n: i18n,
  7566. f: function f(message, values, delimiters) {
  7567. return i18n.f(message, values, delimiters);
  7568. },
  7569. t: function t(key, values) {
  7570. return _t(key, values);
  7571. },
  7572. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  7573. return i18n.add(locale, message, override);
  7574. },
  7575. watch: function watch(fn) {
  7576. return i18n.watchLocale(fn);
  7577. },
  7578. getLocale: function getLocale() {
  7579. return i18n.getLocale();
  7580. },
  7581. setLocale: function setLocale(newLocale) {
  7582. return i18n.setLocale(newLocale);
  7583. } };
  7584. }
  7585. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  7586. var formater;
  7587. function hasI18nJson(jsonObj, delimiters) {
  7588. if (!formater) {
  7589. formater = new BaseFormatter();
  7590. }
  7591. return walkJsonObj(jsonObj, function (jsonObj, key) {
  7592. var value = jsonObj[key];
  7593. if (isString(value)) {
  7594. if (isI18nStr(value, delimiters)) {
  7595. return true;
  7596. }
  7597. } else
  7598. {
  7599. return hasI18nJson(value, delimiters);
  7600. }
  7601. });
  7602. }
  7603. function parseI18nJson(jsonObj, values, delimiters) {
  7604. if (!formater) {
  7605. formater = new BaseFormatter();
  7606. }
  7607. walkJsonObj(jsonObj, function (jsonObj, key) {
  7608. var value = jsonObj[key];
  7609. if (isString(value)) {
  7610. if (isI18nStr(value, delimiters)) {
  7611. jsonObj[key] = compileStr(value, values, delimiters);
  7612. }
  7613. } else
  7614. {
  7615. parseI18nJson(value, values, delimiters);
  7616. }
  7617. });
  7618. return jsonObj;
  7619. }
  7620. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  7621. if (!isI18nStr(jsonStr, delimiters)) {
  7622. return jsonStr;
  7623. }
  7624. if (!formater) {
  7625. formater = new BaseFormatter();
  7626. }
  7627. var localeValues = [];
  7628. Object.keys(locales).forEach(function (name) {
  7629. if (name !== locale) {
  7630. localeValues.push({
  7631. locale: name,
  7632. values: locales[name] });
  7633. }
  7634. });
  7635. localeValues.unshift({ locale: locale, values: locales[locale] });
  7636. try {
  7637. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  7638. }
  7639. catch (e) {}
  7640. return jsonStr;
  7641. }
  7642. function isI18nStr(value, delimiters) {
  7643. return value.indexOf(delimiters[0]) > -1;
  7644. }
  7645. function compileStr(value, values, delimiters) {
  7646. return formater.interpolate(value, values, delimiters).join('');
  7647. }
  7648. function compileValue(jsonObj, key, localeValues, delimiters) {
  7649. var value = jsonObj[key];
  7650. if (isString(value)) {
  7651. // 存在国际化
  7652. if (isI18nStr(value, delimiters)) {
  7653. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  7654. if (localeValues.length > 1) {
  7655. // 格式化国际化语言
  7656. var valueLocales = jsonObj[key + 'Locales'] = {};
  7657. localeValues.forEach(function (localValue) {
  7658. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  7659. });
  7660. }
  7661. }
  7662. } else
  7663. {
  7664. compileJsonObj(value, localeValues, delimiters);
  7665. }
  7666. }
  7667. function compileJsonObj(jsonObj, localeValues, delimiters) {
  7668. walkJsonObj(jsonObj, function (jsonObj, key) {
  7669. compileValue(jsonObj, key, localeValues, delimiters);
  7670. });
  7671. return jsonObj;
  7672. }
  7673. function walkJsonObj(jsonObj, walk) {
  7674. if (isArray(jsonObj)) {
  7675. for (var i = 0; i < jsonObj.length; i++) {
  7676. if (walk(jsonObj, i)) {
  7677. return true;
  7678. }
  7679. }
  7680. } else
  7681. if (isObject(jsonObj)) {
  7682. for (var key in jsonObj) {
  7683. if (walk(jsonObj, key)) {
  7684. return true;
  7685. }
  7686. }
  7687. }
  7688. return false;
  7689. }
  7690. function resolveLocale(locales) {
  7691. return function (locale) {
  7692. if (!locale) {
  7693. return locale;
  7694. }
  7695. locale = normalizeLocale(locale) || locale;
  7696. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  7697. };
  7698. }
  7699. function resolveLocaleChain(locale) {
  7700. var chain = [];
  7701. var tokens = locale.split('-');
  7702. while (tokens.length) {
  7703. chain.push(tokens.join('-'));
  7704. tokens.pop();
  7705. }
  7706. return chain;
  7707. }
  7708. /* 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)))
  7709. /***/ }),
  7710. /* 5 */
  7711. /*!*****************************************************!*\
  7712. !*** D:/meloinfo/sugarpark-mini-program/pages.json ***!
  7713. \*****************************************************/
  7714. /*! no static exports found */
  7715. /***/ (function(module, exports) {
  7716. /***/ }),
  7717. /* 6 */,
  7718. /* 7 */,
  7719. /* 8 */,
  7720. /* 9 */
  7721. /*!**********************************************************************************************************!*\
  7722. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  7723. \**********************************************************************************************************/
  7724. /*! exports provided: default */
  7725. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7726. "use strict";
  7727. __webpack_require__.r(__webpack_exports__);
  7728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  7729. /* globals __VUE_SSR_CONTEXT__ */
  7730. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  7731. // This module is a runtime utility for cleaner component module output and will
  7732. // be included in the final webpack user bundle.
  7733. function normalizeComponent (
  7734. scriptExports,
  7735. render,
  7736. staticRenderFns,
  7737. functionalTemplate,
  7738. injectStyles,
  7739. scopeId,
  7740. moduleIdentifier, /* server only */
  7741. shadowMode, /* vue-cli only */
  7742. components, // fixed by xxxxxx auto components
  7743. renderjs // fixed by xxxxxx renderjs
  7744. ) {
  7745. // Vue.extend constructor export interop
  7746. var options = typeof scriptExports === 'function'
  7747. ? scriptExports.options
  7748. : scriptExports
  7749. // fixed by xxxxxx auto components
  7750. if (components) {
  7751. if (!options.components) {
  7752. options.components = {}
  7753. }
  7754. var hasOwn = Object.prototype.hasOwnProperty
  7755. for (var name in components) {
  7756. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  7757. options.components[name] = components[name]
  7758. }
  7759. }
  7760. }
  7761. // fixed by xxxxxx renderjs
  7762. if (renderjs) {
  7763. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  7764. this[renderjs.__module] = this
  7765. });
  7766. (options.mixins || (options.mixins = [])).push(renderjs)
  7767. }
  7768. // render functions
  7769. if (render) {
  7770. options.render = render
  7771. options.staticRenderFns = staticRenderFns
  7772. options._compiled = true
  7773. }
  7774. // functional template
  7775. if (functionalTemplate) {
  7776. options.functional = true
  7777. }
  7778. // scopedId
  7779. if (scopeId) {
  7780. options._scopeId = 'data-v-' + scopeId
  7781. }
  7782. var hook
  7783. if (moduleIdentifier) { // server build
  7784. hook = function (context) {
  7785. // 2.3 injection
  7786. context =
  7787. context || // cached call
  7788. (this.$vnode && this.$vnode.ssrContext) || // stateful
  7789. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  7790. // 2.2 with runInNewContext: true
  7791. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  7792. context = __VUE_SSR_CONTEXT__
  7793. }
  7794. // inject component styles
  7795. if (injectStyles) {
  7796. injectStyles.call(this, context)
  7797. }
  7798. // register component module identifier for async chunk inferrence
  7799. if (context && context._registeredComponents) {
  7800. context._registeredComponents.add(moduleIdentifier)
  7801. }
  7802. }
  7803. // used by ssr in case component is cached and beforeCreate
  7804. // never gets called
  7805. options._ssrRegister = hook
  7806. } else if (injectStyles) {
  7807. hook = shadowMode
  7808. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  7809. : injectStyles
  7810. }
  7811. if (hook) {
  7812. if (options.functional) {
  7813. // for template-only hot-reload because in that case the render fn doesn't
  7814. // go through the normalizer
  7815. options._injectStyles = hook
  7816. // register for functioal component in vue file
  7817. var originalRender = options.render
  7818. options.render = function renderWithStyleInjection (h, context) {
  7819. hook.call(context)
  7820. return originalRender(h, context)
  7821. }
  7822. } else {
  7823. // inject component registration as beforeCreate hook
  7824. var existing = options.beforeCreate
  7825. options.beforeCreate = existing
  7826. ? [].concat(existing, hook)
  7827. : [hook]
  7828. }
  7829. }
  7830. return {
  7831. exports: scriptExports,
  7832. options: options
  7833. }
  7834. }
  7835. /***/ }),
  7836. /* 10 */
  7837. /*!*********************************************************!*\
  7838. !*** D:/meloinfo/sugarpark-mini-program/store/index.js ***!
  7839. \*********************************************************/
  7840. /*! no static exports found */
  7841. /***/ (function(module, exports, __webpack_require__) {
  7842. "use strict";
  7843. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  7844. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 11));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  7845. _vue.default.use(_vuex.default);var _default =
  7846. new _vuex.default.Store({
  7847. state: {
  7848. statusBarHeight: null,
  7849. topbarOffsetHeight: null,
  7850. tabbarHeight: null,
  7851. hasSafeArea: null,
  7852. platform: null,
  7853. isUpdateUserInfo: false,
  7854. appId: 'wxc351e5dcc35e5b30',
  7855. version: null,
  7856. service: null,
  7857. latitude: null,
  7858. longitude: null,
  7859. userInfo: null,
  7860. imageCdn: null,
  7861. videoCdn: null,
  7862. IMloadSig: null },
  7863. mutations: {
  7864. setStatusBarHeight: function setStatusBarHeight(state, preload) {
  7865. state.statusBarHeight = preload;
  7866. },
  7867. setTopbarOffsetHeight: function setTopbarOffsetHeight(state, preload) {
  7868. state.topbarOffsetHeight = preload;
  7869. },
  7870. setTabBarHeight: function setTabBarHeight(state, preload) {
  7871. state.tabbarHeight = preload;
  7872. },
  7873. setHasSafeArea: function setHasSafeArea(state, preload) {
  7874. state.hasSafeArea = preload;
  7875. },
  7876. setPlatform: function setPlatform(state, preload) {
  7877. state.platform = preload;
  7878. },
  7879. setIsUpdateUserInfo: function setIsUpdateUserInfo(state, preload) {
  7880. state.isUpdateUserInfo = preload;
  7881. },
  7882. setVersion: function setVersion(state, preload) {
  7883. state.version = preload;
  7884. },
  7885. setService: function setService(state, preload) {
  7886. state.service = preload;
  7887. },
  7888. setLatitude: function setLatitude(state, preload) {
  7889. state.latitude = preload;
  7890. },
  7891. setLongitude: function setLongitude(state, preload) {
  7892. state.longitude = preload;
  7893. },
  7894. setUserInfo: function setUserInfo(state, preload) {
  7895. state.userInfo = preload;
  7896. },
  7897. setImageCdn: function setImageCdn(state, preload) {
  7898. state.imageCdn = preload;
  7899. },
  7900. setVideoCdn: function setVideoCdn(state, preload) {
  7901. state.videoCdn = preload;
  7902. },
  7903. setImLoadSig: function setImLoadSig(state, preload) {
  7904. state.IMloadSig = preload;
  7905. } },
  7906. modules: {} });exports.default = _default;
  7907. /***/ }),
  7908. /* 11 */
  7909. /*!**************************************************************************************!*\
  7910. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  7911. \**************************************************************************************/
  7912. /*! no static exports found */
  7913. /***/ (function(module, exports, __webpack_require__) {
  7914. "use strict";
  7915. /* WEBPACK VAR INJECTION */(function(global) {/*!
  7916. * vuex v3.6.2
  7917. * (c) 2021 Evan You
  7918. * @license MIT
  7919. */
  7920. function applyMixin (Vue) {
  7921. var version = Number(Vue.version.split('.')[0]);
  7922. if (version >= 2) {
  7923. Vue.mixin({ beforeCreate: vuexInit });
  7924. } else {
  7925. // override init and inject vuex init procedure
  7926. // for 1.x backwards compatibility.
  7927. var _init = Vue.prototype._init;
  7928. Vue.prototype._init = function (options) {
  7929. if ( options === void 0 ) options = {};
  7930. options.init = options.init
  7931. ? [vuexInit].concat(options.init)
  7932. : vuexInit;
  7933. _init.call(this, options);
  7934. };
  7935. }
  7936. /**
  7937. * Vuex init hook, injected into each instances init hooks list.
  7938. */
  7939. function vuexInit () {
  7940. var options = this.$options;
  7941. // store injection
  7942. if (options.store) {
  7943. this.$store = typeof options.store === 'function'
  7944. ? options.store()
  7945. : options.store;
  7946. } else if (options.parent && options.parent.$store) {
  7947. this.$store = options.parent.$store;
  7948. }
  7949. }
  7950. }
  7951. var target = typeof window !== 'undefined'
  7952. ? window
  7953. : typeof global !== 'undefined'
  7954. ? global
  7955. : {};
  7956. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  7957. function devtoolPlugin (store) {
  7958. if (!devtoolHook) { return }
  7959. store._devtoolHook = devtoolHook;
  7960. devtoolHook.emit('vuex:init', store);
  7961. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  7962. store.replaceState(targetState);
  7963. });
  7964. store.subscribe(function (mutation, state) {
  7965. devtoolHook.emit('vuex:mutation', mutation, state);
  7966. }, { prepend: true });
  7967. store.subscribeAction(function (action, state) {
  7968. devtoolHook.emit('vuex:action', action, state);
  7969. }, { prepend: true });
  7970. }
  7971. /**
  7972. * Get the first item that pass the test
  7973. * by second argument function
  7974. *
  7975. * @param {Array} list
  7976. * @param {Function} f
  7977. * @return {*}
  7978. */
  7979. function find (list, f) {
  7980. return list.filter(f)[0]
  7981. }
  7982. /**
  7983. * Deep copy the given object considering circular structure.
  7984. * This function caches all nested objects and its copies.
  7985. * If it detects circular structure, use cached copy to avoid infinite loop.
  7986. *
  7987. * @param {*} obj
  7988. * @param {Array<Object>} cache
  7989. * @return {*}
  7990. */
  7991. function deepCopy (obj, cache) {
  7992. if ( cache === void 0 ) cache = [];
  7993. // just return if obj is immutable value
  7994. if (obj === null || typeof obj !== 'object') {
  7995. return obj
  7996. }
  7997. // if obj is hit, it is in circular structure
  7998. var hit = find(cache, function (c) { return c.original === obj; });
  7999. if (hit) {
  8000. return hit.copy
  8001. }
  8002. var copy = Array.isArray(obj) ? [] : {};
  8003. // put the copy into cache at first
  8004. // because we want to refer it in recursive deepCopy
  8005. cache.push({
  8006. original: obj,
  8007. copy: copy
  8008. });
  8009. Object.keys(obj).forEach(function (key) {
  8010. copy[key] = deepCopy(obj[key], cache);
  8011. });
  8012. return copy
  8013. }
  8014. /**
  8015. * forEach for object
  8016. */
  8017. function forEachValue (obj, fn) {
  8018. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  8019. }
  8020. function isObject (obj) {
  8021. return obj !== null && typeof obj === 'object'
  8022. }
  8023. function isPromise (val) {
  8024. return val && typeof val.then === 'function'
  8025. }
  8026. function assert (condition, msg) {
  8027. if (!condition) { throw new Error(("[vuex] " + msg)) }
  8028. }
  8029. function partial (fn, arg) {
  8030. return function () {
  8031. return fn(arg)
  8032. }
  8033. }
  8034. // Base data struct for store's module, package with some attribute and method
  8035. var Module = function Module (rawModule, runtime) {
  8036. this.runtime = runtime;
  8037. // Store some children item
  8038. this._children = Object.create(null);
  8039. // Store the origin module object which passed by programmer
  8040. this._rawModule = rawModule;
  8041. var rawState = rawModule.state;
  8042. // Store the origin module's state
  8043. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  8044. };
  8045. var prototypeAccessors = { namespaced: { configurable: true } };
  8046. prototypeAccessors.namespaced.get = function () {
  8047. return !!this._rawModule.namespaced
  8048. };
  8049. Module.prototype.addChild = function addChild (key, module) {
  8050. this._children[key] = module;
  8051. };
  8052. Module.prototype.removeChild = function removeChild (key) {
  8053. delete this._children[key];
  8054. };
  8055. Module.prototype.getChild = function getChild (key) {
  8056. return this._children[key]
  8057. };
  8058. Module.prototype.hasChild = function hasChild (key) {
  8059. return key in this._children
  8060. };
  8061. Module.prototype.update = function update (rawModule) {
  8062. this._rawModule.namespaced = rawModule.namespaced;
  8063. if (rawModule.actions) {
  8064. this._rawModule.actions = rawModule.actions;
  8065. }
  8066. if (rawModule.mutations) {
  8067. this._rawModule.mutations = rawModule.mutations;
  8068. }
  8069. if (rawModule.getters) {
  8070. this._rawModule.getters = rawModule.getters;
  8071. }
  8072. };
  8073. Module.prototype.forEachChild = function forEachChild (fn) {
  8074. forEachValue(this._children, fn);
  8075. };
  8076. Module.prototype.forEachGetter = function forEachGetter (fn) {
  8077. if (this._rawModule.getters) {
  8078. forEachValue(this._rawModule.getters, fn);
  8079. }
  8080. };
  8081. Module.prototype.forEachAction = function forEachAction (fn) {
  8082. if (this._rawModule.actions) {
  8083. forEachValue(this._rawModule.actions, fn);
  8084. }
  8085. };
  8086. Module.prototype.forEachMutation = function forEachMutation (fn) {
  8087. if (this._rawModule.mutations) {
  8088. forEachValue(this._rawModule.mutations, fn);
  8089. }
  8090. };
  8091. Object.defineProperties( Module.prototype, prototypeAccessors );
  8092. var ModuleCollection = function ModuleCollection (rawRootModule) {
  8093. // register root module (Vuex.Store options)
  8094. this.register([], rawRootModule, false);
  8095. };
  8096. ModuleCollection.prototype.get = function get (path) {
  8097. return path.reduce(function (module, key) {
  8098. return module.getChild(key)
  8099. }, this.root)
  8100. };
  8101. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  8102. var module = this.root;
  8103. return path.reduce(function (namespace, key) {
  8104. module = module.getChild(key);
  8105. return namespace + (module.namespaced ? key + '/' : '')
  8106. }, '')
  8107. };
  8108. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  8109. update([], this.root, rawRootModule);
  8110. };
  8111. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  8112. var this$1 = this;
  8113. if ( runtime === void 0 ) runtime = true;
  8114. if ((true)) {
  8115. assertRawModule(path, rawModule);
  8116. }
  8117. var newModule = new Module(rawModule, runtime);
  8118. if (path.length === 0) {
  8119. this.root = newModule;
  8120. } else {
  8121. var parent = this.get(path.slice(0, -1));
  8122. parent.addChild(path[path.length - 1], newModule);
  8123. }
  8124. // register nested modules
  8125. if (rawModule.modules) {
  8126. forEachValue(rawModule.modules, function (rawChildModule, key) {
  8127. this$1.register(path.concat(key), rawChildModule, runtime);
  8128. });
  8129. }
  8130. };
  8131. ModuleCollection.prototype.unregister = function unregister (path) {
  8132. var parent = this.get(path.slice(0, -1));
  8133. var key = path[path.length - 1];
  8134. var child = parent.getChild(key);
  8135. if (!child) {
  8136. if ((true)) {
  8137. console.warn(
  8138. "[vuex] trying to unregister module '" + key + "', which is " +
  8139. "not registered"
  8140. );
  8141. }
  8142. return
  8143. }
  8144. if (!child.runtime) {
  8145. return
  8146. }
  8147. parent.removeChild(key);
  8148. };
  8149. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  8150. var parent = this.get(path.slice(0, -1));
  8151. var key = path[path.length - 1];
  8152. if (parent) {
  8153. return parent.hasChild(key)
  8154. }
  8155. return false
  8156. };
  8157. function update (path, targetModule, newModule) {
  8158. if ((true)) {
  8159. assertRawModule(path, newModule);
  8160. }
  8161. // update target module
  8162. targetModule.update(newModule);
  8163. // update nested modules
  8164. if (newModule.modules) {
  8165. for (var key in newModule.modules) {
  8166. if (!targetModule.getChild(key)) {
  8167. if ((true)) {
  8168. console.warn(
  8169. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  8170. 'manual reload is needed'
  8171. );
  8172. }
  8173. return
  8174. }
  8175. update(
  8176. path.concat(key),
  8177. targetModule.getChild(key),
  8178. newModule.modules[key]
  8179. );
  8180. }
  8181. }
  8182. }
  8183. var functionAssert = {
  8184. assert: function (value) { return typeof value === 'function'; },
  8185. expected: 'function'
  8186. };
  8187. var objectAssert = {
  8188. assert: function (value) { return typeof value === 'function' ||
  8189. (typeof value === 'object' && typeof value.handler === 'function'); },
  8190. expected: 'function or object with "handler" function'
  8191. };
  8192. var assertTypes = {
  8193. getters: functionAssert,
  8194. mutations: functionAssert,
  8195. actions: objectAssert
  8196. };
  8197. function assertRawModule (path, rawModule) {
  8198. Object.keys(assertTypes).forEach(function (key) {
  8199. if (!rawModule[key]) { return }
  8200. var assertOptions = assertTypes[key];
  8201. forEachValue(rawModule[key], function (value, type) {
  8202. assert(
  8203. assertOptions.assert(value),
  8204. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  8205. );
  8206. });
  8207. });
  8208. }
  8209. function makeAssertionMessage (path, key, type, value, expected) {
  8210. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  8211. if (path.length > 0) {
  8212. buf += " in module \"" + (path.join('.')) + "\"";
  8213. }
  8214. buf += " is " + (JSON.stringify(value)) + ".";
  8215. return buf
  8216. }
  8217. var Vue; // bind on install
  8218. var Store = function Store (options) {
  8219. var this$1 = this;
  8220. if ( options === void 0 ) options = {};
  8221. // Auto install if it is not done yet and `window` has `Vue`.
  8222. // To allow users to avoid auto-installation in some cases,
  8223. // this code should be placed here. See #731
  8224. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  8225. install(window.Vue);
  8226. }
  8227. if ((true)) {
  8228. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  8229. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  8230. assert(this instanceof Store, "store must be called with the new operator.");
  8231. }
  8232. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  8233. var strict = options.strict; if ( strict === void 0 ) strict = false;
  8234. // store internal state
  8235. this._committing = false;
  8236. this._actions = Object.create(null);
  8237. this._actionSubscribers = [];
  8238. this._mutations = Object.create(null);
  8239. this._wrappedGetters = Object.create(null);
  8240. this._modules = new ModuleCollection(options);
  8241. this._modulesNamespaceMap = Object.create(null);
  8242. this._subscribers = [];
  8243. this._watcherVM = new Vue();
  8244. this._makeLocalGettersCache = Object.create(null);
  8245. // bind commit and dispatch to self
  8246. var store = this;
  8247. var ref = this;
  8248. var dispatch = ref.dispatch;
  8249. var commit = ref.commit;
  8250. this.dispatch = function boundDispatch (type, payload) {
  8251. return dispatch.call(store, type, payload)
  8252. };
  8253. this.commit = function boundCommit (type, payload, options) {
  8254. return commit.call(store, type, payload, options)
  8255. };
  8256. // strict mode
  8257. this.strict = strict;
  8258. var state = this._modules.root.state;
  8259. // init root module.
  8260. // this also recursively registers all sub-modules
  8261. // and collects all module getters inside this._wrappedGetters
  8262. installModule(this, state, [], this._modules.root);
  8263. // initialize the store vm, which is responsible for the reactivity
  8264. // (also registers _wrappedGetters as computed properties)
  8265. resetStoreVM(this, state);
  8266. // apply plugins
  8267. plugins.forEach(function (plugin) { return plugin(this$1); });
  8268. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  8269. if (useDevtools) {
  8270. devtoolPlugin(this);
  8271. }
  8272. };
  8273. var prototypeAccessors$1 = { state: { configurable: true } };
  8274. prototypeAccessors$1.state.get = function () {
  8275. return this._vm._data.$$state
  8276. };
  8277. prototypeAccessors$1.state.set = function (v) {
  8278. if ((true)) {
  8279. assert(false, "use store.replaceState() to explicit replace store state.");
  8280. }
  8281. };
  8282. Store.prototype.commit = function commit (_type, _payload, _options) {
  8283. var this$1 = this;
  8284. // check object-style commit
  8285. var ref = unifyObjectStyle(_type, _payload, _options);
  8286. var type = ref.type;
  8287. var payload = ref.payload;
  8288. var options = ref.options;
  8289. var mutation = { type: type, payload: payload };
  8290. var entry = this._mutations[type];
  8291. if (!entry) {
  8292. if ((true)) {
  8293. console.error(("[vuex] unknown mutation type: " + type));
  8294. }
  8295. return
  8296. }
  8297. this._withCommit(function () {
  8298. entry.forEach(function commitIterator (handler) {
  8299. handler(payload);
  8300. });
  8301. });
  8302. this._subscribers
  8303. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  8304. .forEach(function (sub) { return sub(mutation, this$1.state); });
  8305. if (
  8306. ( true) &&
  8307. options && options.silent
  8308. ) {
  8309. console.warn(
  8310. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  8311. 'Use the filter functionality in the vue-devtools'
  8312. );
  8313. }
  8314. };
  8315. Store.prototype.dispatch = function dispatch (_type, _payload) {
  8316. var this$1 = this;
  8317. // check object-style dispatch
  8318. var ref = unifyObjectStyle(_type, _payload);
  8319. var type = ref.type;
  8320. var payload = ref.payload;
  8321. var action = { type: type, payload: payload };
  8322. var entry = this._actions[type];
  8323. if (!entry) {
  8324. if ((true)) {
  8325. console.error(("[vuex] unknown action type: " + type));
  8326. }
  8327. return
  8328. }
  8329. try {
  8330. this._actionSubscribers
  8331. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  8332. .filter(function (sub) { return sub.before; })
  8333. .forEach(function (sub) { return sub.before(action, this$1.state); });
  8334. } catch (e) {
  8335. if ((true)) {
  8336. console.warn("[vuex] error in before action subscribers: ");
  8337. console.error(e);
  8338. }
  8339. }
  8340. var result = entry.length > 1
  8341. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  8342. : entry[0](payload);
  8343. return new Promise(function (resolve, reject) {
  8344. result.then(function (res) {
  8345. try {
  8346. this$1._actionSubscribers
  8347. .filter(function (sub) { return sub.after; })
  8348. .forEach(function (sub) { return sub.after(action, this$1.state); });
  8349. } catch (e) {
  8350. if ((true)) {
  8351. console.warn("[vuex] error in after action subscribers: ");
  8352. console.error(e);
  8353. }
  8354. }
  8355. resolve(res);
  8356. }, function (error) {
  8357. try {
  8358. this$1._actionSubscribers
  8359. .filter(function (sub) { return sub.error; })
  8360. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  8361. } catch (e) {
  8362. if ((true)) {
  8363. console.warn("[vuex] error in error action subscribers: ");
  8364. console.error(e);
  8365. }
  8366. }
  8367. reject(error);
  8368. });
  8369. })
  8370. };
  8371. Store.prototype.subscribe = function subscribe (fn, options) {
  8372. return genericSubscribe(fn, this._subscribers, options)
  8373. };
  8374. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  8375. var subs = typeof fn === 'function' ? { before: fn } : fn;
  8376. return genericSubscribe(subs, this._actionSubscribers, options)
  8377. };
  8378. Store.prototype.watch = function watch (getter, cb, options) {
  8379. var this$1 = this;
  8380. if ((true)) {
  8381. assert(typeof getter === 'function', "store.watch only accepts a function.");
  8382. }
  8383. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  8384. };
  8385. Store.prototype.replaceState = function replaceState (state) {
  8386. var this$1 = this;
  8387. this._withCommit(function () {
  8388. this$1._vm._data.$$state = state;
  8389. });
  8390. };
  8391. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  8392. if ( options === void 0 ) options = {};
  8393. if (typeof path === 'string') { path = [path]; }
  8394. if ((true)) {
  8395. assert(Array.isArray(path), "module path must be a string or an Array.");
  8396. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  8397. }
  8398. this._modules.register(path, rawModule);
  8399. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  8400. // reset store to update getters...
  8401. resetStoreVM(this, this.state);
  8402. };
  8403. Store.prototype.unregisterModule = function unregisterModule (path) {
  8404. var this$1 = this;
  8405. if (typeof path === 'string') { path = [path]; }
  8406. if ((true)) {
  8407. assert(Array.isArray(path), "module path must be a string or an Array.");
  8408. }
  8409. this._modules.unregister(path);
  8410. this._withCommit(function () {
  8411. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  8412. Vue.delete(parentState, path[path.length - 1]);
  8413. });
  8414. resetStore(this);
  8415. };
  8416. Store.prototype.hasModule = function hasModule (path) {
  8417. if (typeof path === 'string') { path = [path]; }
  8418. if ((true)) {
  8419. assert(Array.isArray(path), "module path must be a string or an Array.");
  8420. }
  8421. return this._modules.isRegistered(path)
  8422. };
  8423. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  8424. this._modules.update(newOptions);
  8425. resetStore(this, true);
  8426. };
  8427. Store.prototype._withCommit = function _withCommit (fn) {
  8428. var committing = this._committing;
  8429. this._committing = true;
  8430. fn();
  8431. this._committing = committing;
  8432. };
  8433. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  8434. function genericSubscribe (fn, subs, options) {
  8435. if (subs.indexOf(fn) < 0) {
  8436. options && options.prepend
  8437. ? subs.unshift(fn)
  8438. : subs.push(fn);
  8439. }
  8440. return function () {
  8441. var i = subs.indexOf(fn);
  8442. if (i > -1) {
  8443. subs.splice(i, 1);
  8444. }
  8445. }
  8446. }
  8447. function resetStore (store, hot) {
  8448. store._actions = Object.create(null);
  8449. store._mutations = Object.create(null);
  8450. store._wrappedGetters = Object.create(null);
  8451. store._modulesNamespaceMap = Object.create(null);
  8452. var state = store.state;
  8453. // init all modules
  8454. installModule(store, state, [], store._modules.root, true);
  8455. // reset vm
  8456. resetStoreVM(store, state, hot);
  8457. }
  8458. function resetStoreVM (store, state, hot) {
  8459. var oldVm = store._vm;
  8460. // bind store public getters
  8461. store.getters = {};
  8462. // reset local getters cache
  8463. store._makeLocalGettersCache = Object.create(null);
  8464. var wrappedGetters = store._wrappedGetters;
  8465. var computed = {};
  8466. forEachValue(wrappedGetters, function (fn, key) {
  8467. // use computed to leverage its lazy-caching mechanism
  8468. // direct inline function use will lead to closure preserving oldVm.
  8469. // using partial to return function with only arguments preserved in closure environment.
  8470. computed[key] = partial(fn, store);
  8471. Object.defineProperty(store.getters, key, {
  8472. get: function () { return store._vm[key]; },
  8473. enumerable: true // for local getters
  8474. });
  8475. });
  8476. // use a Vue instance to store the state tree
  8477. // suppress warnings just in case the user has added
  8478. // some funky global mixins
  8479. var silent = Vue.config.silent;
  8480. Vue.config.silent = true;
  8481. store._vm = new Vue({
  8482. data: {
  8483. $$state: state
  8484. },
  8485. computed: computed
  8486. });
  8487. Vue.config.silent = silent;
  8488. // enable strict mode for new vm
  8489. if (store.strict) {
  8490. enableStrictMode(store);
  8491. }
  8492. if (oldVm) {
  8493. if (hot) {
  8494. // dispatch changes in all subscribed watchers
  8495. // to force getter re-evaluation for hot reloading.
  8496. store._withCommit(function () {
  8497. oldVm._data.$$state = null;
  8498. });
  8499. }
  8500. Vue.nextTick(function () { return oldVm.$destroy(); });
  8501. }
  8502. }
  8503. function installModule (store, rootState, path, module, hot) {
  8504. var isRoot = !path.length;
  8505. var namespace = store._modules.getNamespace(path);
  8506. // register in namespace map
  8507. if (module.namespaced) {
  8508. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  8509. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  8510. }
  8511. store._modulesNamespaceMap[namespace] = module;
  8512. }
  8513. // set state
  8514. if (!isRoot && !hot) {
  8515. var parentState = getNestedState(rootState, path.slice(0, -1));
  8516. var moduleName = path[path.length - 1];
  8517. store._withCommit(function () {
  8518. if ((true)) {
  8519. if (moduleName in parentState) {
  8520. console.warn(
  8521. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  8522. );
  8523. }
  8524. }
  8525. Vue.set(parentState, moduleName, module.state);
  8526. });
  8527. }
  8528. var local = module.context = makeLocalContext(store, namespace, path);
  8529. module.forEachMutation(function (mutation, key) {
  8530. var namespacedType = namespace + key;
  8531. registerMutation(store, namespacedType, mutation, local);
  8532. });
  8533. module.forEachAction(function (action, key) {
  8534. var type = action.root ? key : namespace + key;
  8535. var handler = action.handler || action;
  8536. registerAction(store, type, handler, local);
  8537. });
  8538. module.forEachGetter(function (getter, key) {
  8539. var namespacedType = namespace + key;
  8540. registerGetter(store, namespacedType, getter, local);
  8541. });
  8542. module.forEachChild(function (child, key) {
  8543. installModule(store, rootState, path.concat(key), child, hot);
  8544. });
  8545. }
  8546. /**
  8547. * make localized dispatch, commit, getters and state
  8548. * if there is no namespace, just use root ones
  8549. */
  8550. function makeLocalContext (store, namespace, path) {
  8551. var noNamespace = namespace === '';
  8552. var local = {
  8553. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  8554. var args = unifyObjectStyle(_type, _payload, _options);
  8555. var payload = args.payload;
  8556. var options = args.options;
  8557. var type = args.type;
  8558. if (!options || !options.root) {
  8559. type = namespace + type;
  8560. if (( true) && !store._actions[type]) {
  8561. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  8562. return
  8563. }
  8564. }
  8565. return store.dispatch(type, payload)
  8566. },
  8567. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  8568. var args = unifyObjectStyle(_type, _payload, _options);
  8569. var payload = args.payload;
  8570. var options = args.options;
  8571. var type = args.type;
  8572. if (!options || !options.root) {
  8573. type = namespace + type;
  8574. if (( true) && !store._mutations[type]) {
  8575. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  8576. return
  8577. }
  8578. }
  8579. store.commit(type, payload, options);
  8580. }
  8581. };
  8582. // getters and state object must be gotten lazily
  8583. // because they will be changed by vm update
  8584. Object.defineProperties(local, {
  8585. getters: {
  8586. get: noNamespace
  8587. ? function () { return store.getters; }
  8588. : function () { return makeLocalGetters(store, namespace); }
  8589. },
  8590. state: {
  8591. get: function () { return getNestedState(store.state, path); }
  8592. }
  8593. });
  8594. return local
  8595. }
  8596. function makeLocalGetters (store, namespace) {
  8597. if (!store._makeLocalGettersCache[namespace]) {
  8598. var gettersProxy = {};
  8599. var splitPos = namespace.length;
  8600. Object.keys(store.getters).forEach(function (type) {
  8601. // skip if the target getter is not match this namespace
  8602. if (type.slice(0, splitPos) !== namespace) { return }
  8603. // extract local getter type
  8604. var localType = type.slice(splitPos);
  8605. // Add a port to the getters proxy.
  8606. // Define as getter property because
  8607. // we do not want to evaluate the getters in this time.
  8608. Object.defineProperty(gettersProxy, localType, {
  8609. get: function () { return store.getters[type]; },
  8610. enumerable: true
  8611. });
  8612. });
  8613. store._makeLocalGettersCache[namespace] = gettersProxy;
  8614. }
  8615. return store._makeLocalGettersCache[namespace]
  8616. }
  8617. function registerMutation (store, type, handler, local) {
  8618. var entry = store._mutations[type] || (store._mutations[type] = []);
  8619. entry.push(function wrappedMutationHandler (payload) {
  8620. handler.call(store, local.state, payload);
  8621. });
  8622. }
  8623. function registerAction (store, type, handler, local) {
  8624. var entry = store._actions[type] || (store._actions[type] = []);
  8625. entry.push(function wrappedActionHandler (payload) {
  8626. var res = handler.call(store, {
  8627. dispatch: local.dispatch,
  8628. commit: local.commit,
  8629. getters: local.getters,
  8630. state: local.state,
  8631. rootGetters: store.getters,
  8632. rootState: store.state
  8633. }, payload);
  8634. if (!isPromise(res)) {
  8635. res = Promise.resolve(res);
  8636. }
  8637. if (store._devtoolHook) {
  8638. return res.catch(function (err) {
  8639. store._devtoolHook.emit('vuex:error', err);
  8640. throw err
  8641. })
  8642. } else {
  8643. return res
  8644. }
  8645. });
  8646. }
  8647. function registerGetter (store, type, rawGetter, local) {
  8648. if (store._wrappedGetters[type]) {
  8649. if ((true)) {
  8650. console.error(("[vuex] duplicate getter key: " + type));
  8651. }
  8652. return
  8653. }
  8654. store._wrappedGetters[type] = function wrappedGetter (store) {
  8655. return rawGetter(
  8656. local.state, // local state
  8657. local.getters, // local getters
  8658. store.state, // root state
  8659. store.getters // root getters
  8660. )
  8661. };
  8662. }
  8663. function enableStrictMode (store) {
  8664. store._vm.$watch(function () { return this._data.$$state }, function () {
  8665. if ((true)) {
  8666. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  8667. }
  8668. }, { deep: true, sync: true });
  8669. }
  8670. function getNestedState (state, path) {
  8671. return path.reduce(function (state, key) { return state[key]; }, state)
  8672. }
  8673. function unifyObjectStyle (type, payload, options) {
  8674. if (isObject(type) && type.type) {
  8675. options = payload;
  8676. payload = type;
  8677. type = type.type;
  8678. }
  8679. if ((true)) {
  8680. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  8681. }
  8682. return { type: type, payload: payload, options: options }
  8683. }
  8684. function install (_Vue) {
  8685. if (Vue && _Vue === Vue) {
  8686. if ((true)) {
  8687. console.error(
  8688. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  8689. );
  8690. }
  8691. return
  8692. }
  8693. Vue = _Vue;
  8694. applyMixin(Vue);
  8695. }
  8696. /**
  8697. * Reduce the code which written in Vue.js for getting the state.
  8698. * @param {String} [namespace] - Module's namespace
  8699. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  8700. * @param {Object}
  8701. */
  8702. var mapState = normalizeNamespace(function (namespace, states) {
  8703. var res = {};
  8704. if (( true) && !isValidMap(states)) {
  8705. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  8706. }
  8707. normalizeMap(states).forEach(function (ref) {
  8708. var key = ref.key;
  8709. var val = ref.val;
  8710. res[key] = function mappedState () {
  8711. var state = this.$store.state;
  8712. var getters = this.$store.getters;
  8713. if (namespace) {
  8714. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  8715. if (!module) {
  8716. return
  8717. }
  8718. state = module.context.state;
  8719. getters = module.context.getters;
  8720. }
  8721. return typeof val === 'function'
  8722. ? val.call(this, state, getters)
  8723. : state[val]
  8724. };
  8725. // mark vuex getter for devtools
  8726. res[key].vuex = true;
  8727. });
  8728. return res
  8729. });
  8730. /**
  8731. * Reduce the code which written in Vue.js for committing the mutation
  8732. * @param {String} [namespace] - Module's namespace
  8733. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  8734. * @return {Object}
  8735. */
  8736. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  8737. var res = {};
  8738. if (( true) && !isValidMap(mutations)) {
  8739. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  8740. }
  8741. normalizeMap(mutations).forEach(function (ref) {
  8742. var key = ref.key;
  8743. var val = ref.val;
  8744. res[key] = function mappedMutation () {
  8745. var args = [], len = arguments.length;
  8746. while ( len-- ) args[ len ] = arguments[ len ];
  8747. // Get the commit method from store
  8748. var commit = this.$store.commit;
  8749. if (namespace) {
  8750. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  8751. if (!module) {
  8752. return
  8753. }
  8754. commit = module.context.commit;
  8755. }
  8756. return typeof val === 'function'
  8757. ? val.apply(this, [commit].concat(args))
  8758. : commit.apply(this.$store, [val].concat(args))
  8759. };
  8760. });
  8761. return res
  8762. });
  8763. /**
  8764. * Reduce the code which written in Vue.js for getting the getters
  8765. * @param {String} [namespace] - Module's namespace
  8766. * @param {Object|Array} getters
  8767. * @return {Object}
  8768. */
  8769. var mapGetters = normalizeNamespace(function (namespace, getters) {
  8770. var res = {};
  8771. if (( true) && !isValidMap(getters)) {
  8772. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  8773. }
  8774. normalizeMap(getters).forEach(function (ref) {
  8775. var key = ref.key;
  8776. var val = ref.val;
  8777. // The namespace has been mutated by normalizeNamespace
  8778. val = namespace + val;
  8779. res[key] = function mappedGetter () {
  8780. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  8781. return
  8782. }
  8783. if (( true) && !(val in this.$store.getters)) {
  8784. console.error(("[vuex] unknown getter: " + val));
  8785. return
  8786. }
  8787. return this.$store.getters[val]
  8788. };
  8789. // mark vuex getter for devtools
  8790. res[key].vuex = true;
  8791. });
  8792. return res
  8793. });
  8794. /**
  8795. * Reduce the code which written in Vue.js for dispatch the action
  8796. * @param {String} [namespace] - Module's namespace
  8797. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  8798. * @return {Object}
  8799. */
  8800. var mapActions = normalizeNamespace(function (namespace, actions) {
  8801. var res = {};
  8802. if (( true) && !isValidMap(actions)) {
  8803. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  8804. }
  8805. normalizeMap(actions).forEach(function (ref) {
  8806. var key = ref.key;
  8807. var val = ref.val;
  8808. res[key] = function mappedAction () {
  8809. var args = [], len = arguments.length;
  8810. while ( len-- ) args[ len ] = arguments[ len ];
  8811. // get dispatch function from store
  8812. var dispatch = this.$store.dispatch;
  8813. if (namespace) {
  8814. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  8815. if (!module) {
  8816. return
  8817. }
  8818. dispatch = module.context.dispatch;
  8819. }
  8820. return typeof val === 'function'
  8821. ? val.apply(this, [dispatch].concat(args))
  8822. : dispatch.apply(this.$store, [val].concat(args))
  8823. };
  8824. });
  8825. return res
  8826. });
  8827. /**
  8828. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  8829. * @param {String} namespace
  8830. * @return {Object}
  8831. */
  8832. var createNamespacedHelpers = function (namespace) { return ({
  8833. mapState: mapState.bind(null, namespace),
  8834. mapGetters: mapGetters.bind(null, namespace),
  8835. mapMutations: mapMutations.bind(null, namespace),
  8836. mapActions: mapActions.bind(null, namespace)
  8837. }); };
  8838. /**
  8839. * Normalize the map
  8840. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  8841. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  8842. * @param {Array|Object} map
  8843. * @return {Object}
  8844. */
  8845. function normalizeMap (map) {
  8846. if (!isValidMap(map)) {
  8847. return []
  8848. }
  8849. return Array.isArray(map)
  8850. ? map.map(function (key) { return ({ key: key, val: key }); })
  8851. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  8852. }
  8853. /**
  8854. * Validate whether given map is valid or not
  8855. * @param {*} map
  8856. * @return {Boolean}
  8857. */
  8858. function isValidMap (map) {
  8859. return Array.isArray(map) || isObject(map)
  8860. }
  8861. /**
  8862. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  8863. * @param {Function} fn
  8864. * @return {Function}
  8865. */
  8866. function normalizeNamespace (fn) {
  8867. return function (namespace, map) {
  8868. if (typeof namespace !== 'string') {
  8869. map = namespace;
  8870. namespace = '';
  8871. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  8872. namespace += '/';
  8873. }
  8874. return fn(namespace, map)
  8875. }
  8876. }
  8877. /**
  8878. * Search a special module from store by namespace. if module not exist, print error message.
  8879. * @param {Object} store
  8880. * @param {String} helper
  8881. * @param {String} namespace
  8882. * @return {Object}
  8883. */
  8884. function getModuleByNamespace (store, helper, namespace) {
  8885. var module = store._modulesNamespaceMap[namespace];
  8886. if (( true) && !module) {
  8887. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  8888. }
  8889. return module
  8890. }
  8891. // Credits: borrowed code from fcomb/redux-logger
  8892. function createLogger (ref) {
  8893. if ( ref === void 0 ) ref = {};
  8894. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  8895. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  8896. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  8897. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  8898. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  8899. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  8900. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  8901. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  8902. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  8903. return function (store) {
  8904. var prevState = deepCopy(store.state);
  8905. if (typeof logger === 'undefined') {
  8906. return
  8907. }
  8908. if (logMutations) {
  8909. store.subscribe(function (mutation, state) {
  8910. var nextState = deepCopy(state);
  8911. if (filter(mutation, prevState, nextState)) {
  8912. var formattedTime = getFormattedTime();
  8913. var formattedMutation = mutationTransformer(mutation);
  8914. var message = "mutation " + (mutation.type) + formattedTime;
  8915. startMessage(logger, message, collapsed);
  8916. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  8917. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  8918. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  8919. endMessage(logger);
  8920. }
  8921. prevState = nextState;
  8922. });
  8923. }
  8924. if (logActions) {
  8925. store.subscribeAction(function (action, state) {
  8926. if (actionFilter(action, state)) {
  8927. var formattedTime = getFormattedTime();
  8928. var formattedAction = actionTransformer(action);
  8929. var message = "action " + (action.type) + formattedTime;
  8930. startMessage(logger, message, collapsed);
  8931. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  8932. endMessage(logger);
  8933. }
  8934. });
  8935. }
  8936. }
  8937. }
  8938. function startMessage (logger, message, collapsed) {
  8939. var startMessage = collapsed
  8940. ? logger.groupCollapsed
  8941. : logger.group;
  8942. // render
  8943. try {
  8944. startMessage.call(logger, message);
  8945. } catch (e) {
  8946. logger.log(message);
  8947. }
  8948. }
  8949. function endMessage (logger) {
  8950. try {
  8951. logger.groupEnd();
  8952. } catch (e) {
  8953. logger.log('—— log end ——');
  8954. }
  8955. }
  8956. function getFormattedTime () {
  8957. var time = new Date();
  8958. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  8959. }
  8960. function repeat (str, times) {
  8961. return (new Array(times + 1)).join(str)
  8962. }
  8963. function pad (num, maxLength) {
  8964. return repeat('0', maxLength - num.toString().length) + num
  8965. }
  8966. var index_cjs = {
  8967. Store: Store,
  8968. install: install,
  8969. version: '3.6.2',
  8970. mapState: mapState,
  8971. mapMutations: mapMutations,
  8972. mapGetters: mapGetters,
  8973. mapActions: mapActions,
  8974. createNamespacedHelpers: createNamespacedHelpers,
  8975. createLogger: createLogger
  8976. };
  8977. module.exports = index_cjs;
  8978. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  8979. /***/ }),
  8980. /* 12 */
  8981. /*!********************************************************!*\
  8982. !*** D:/meloinfo/sugarpark-mini-program/util/index.js ***!
  8983. \********************************************************/
  8984. /*! no static exports found */
  8985. /***/ (function(module, exports, __webpack_require__) {
  8986. "use strict";
  8987. /* WEBPACK VAR INJECTION */(function(uni) {var _moment = _interopRequireDefault(__webpack_require__(/*! moment */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8988. var assetsUrl = "https://zhenyanapp-gen.oss-cn-qingdao.aliyuncs.com/wechat-mini-pro/";
  8989. var IMSDKCode = 1400293452;
  8990. //const IMSDKCode=1400456480;
  8991. //const apiHost = 'http://192.168.1.253:8080' //本地;
  8992. var apiHost = 'https://mini.sugarpark.cn';
  8993. //const apiHost = 'http://jliao-api2-svc-test.internal.jiebide.xin'
  8994. var protocal = {
  8995. behaviorStandar: 'https://h5.sugarpark.cn/agreement/behavior-standard.html',
  8996. userAgreement: 'https://h5.sugarpark.cn/agreement/user-agreement.html',
  8997. privacy: 'https://h5.sugarpark.cn/agreement/privacy.html',
  8998. addedService: 'https://h5.sugarpark.cn/agreement/added-service.html' };
  8999. var getApiHost = function getApiHost() {
  9000. return apiHost;
  9001. };
  9002. var showMsg = function showMsg(msg) {
  9003. uni.showToast({
  9004. title: msg,
  9005. icon: 'none',
  9006. mask: true });
  9007. };
  9008. var hasSafeArea = function hasSafeArea() {
  9009. var result = uni.getSystemInfoSync();
  9010. var sWidth = result.screenWidth * result.pixelRatio,
  9011. sHeight = result.screenHeight * result.pixelRatio;
  9012. if (result.model.indexOf('iPhone') == -1) {
  9013. return false;
  9014. } else if (sWidth == 1125 && sHeight == 2436) {
  9015. return true;
  9016. } else if (sWidth == 828 && sHeight == 1792) {
  9017. return true;
  9018. } else if (sWidth == 1170 && sHeight == 2532) {
  9019. return true;
  9020. } else if (sWidth == 1242 && sHeight == 2688) {
  9021. return true;
  9022. } else if (sWidth == 1284 && sHeight == 2778) {
  9023. return true;
  9024. }
  9025. return false;
  9026. };
  9027. var timeFn = function timeFn(dateBeginTime, dateEndTime) {
  9028. var timeFn;
  9029. var dateDiff = dateEndTime - dateBeginTime; //时间差的毫秒数
  9030. var dayDiff = Math.floor(dateDiff / (24 * 3600 * 1000)); //计算出相差天数
  9031. var leave1 = dateDiff % (24 * 3600 * 1000); //计算天数后剩余的毫秒数
  9032. var hours = Math.floor(leave1 / (3600 * 1000)); //计算出小时数
  9033. //计算相差分钟数
  9034. var leave2 = leave1 % (3600 * 1000); //计算小时数后剩余的毫秒数
  9035. var minutes = Math.floor(leave2 / (60 * 1000)); //计算相差分钟数
  9036. //计算相差秒数
  9037. var leave3 = leave2 % (60 * 1000); //计算分钟数后剩余的毫秒数
  9038. var seconds = Math.round(leave3 / 1000);
  9039. var timeFn = dayDiff + "天" + hours + "小时" + minutes + "分钟" + seconds + "秒";
  9040. return timeFn;
  9041. };
  9042. var checkPhone = function checkPhone(phone) {//手机号码
  9043. var reg = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
  9044. if (phone.substr(0, 3) === '120' && phone.length === 11) {
  9045. return true;
  9046. }
  9047. if (reg.test(phone)) {
  9048. return true;
  9049. } else {
  9050. return false;
  9051. }
  9052. };
  9053. var checkTel = function checkTel(tel) {//座机号码不支持分机
  9054. return /0\d{2,3}-\d{7,8}/.test(tel);
  9055. };
  9056. var checkIdNo = function checkIdNo(idNo) {
  9057. return /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(idNo);
  9058. };
  9059. var checkChinese = function checkChinese(str) {
  9060. return /^[\u4e00-\u9fa5]+$/.test(str);
  9061. };
  9062. var compare = function compare(property) {
  9063. return function (a, b) {
  9064. var value1 = a[property];
  9065. var value2 = b[property];
  9066. return value1 - value2;
  9067. };
  9068. };
  9069. var request = function request(url, method, data) {
  9070. return new Promise(function (resolve, reject) {
  9071. if (method === undefined) {
  9072. method = 'GET';
  9073. }
  9074. var appConfig = uni.getAccountInfoSync();
  9075. var deviceConfig = uni.getSystemInfoSync();
  9076. var LL_Ukn = uni.getStorageSync('LL_Ukn') || "szxe/TwE/wNJxcF+51069Dw3KHJQmbEuE2tEVHG4ETQ1TEnZ6loF7MQdmCFePTWTS9NE8zhDBrvPplTUYNnlPa10jJ1GycLQjpe2CkO+UvflA8adpe/uD5z2C8Bp1Pg9cThzHmqxeAe1Oq9G1eo3PKfGGYLALGx+dgFPYMn06M/Y+lVio4WpXbNW8KMNkWyxnFZnpZEXzzyDUCT13TMF9tevVJ9/Sb3yBgLiLYnydplax+zjkFqwGSiDrQWR/E8s";
  9077. var LL_Csi = uni.getStorageSync('LL_Csi') || {
  9078. av: "2.6.0",
  9079. brand: "Apple",
  9080. currTime: 1654149186191,
  9081. deviceCode: deviceConfig.deviceId,
  9082. iOS: { "idfa": "00000000-0000-0000-0000-000000000000" },
  9083. lang: "zh", "model": "iPhone12,5", "ov": "15.3.1",
  9084. pkgCate: "JyPark",
  9085. platform: "WechatMP",
  9086. resolution: { "h": 2688, "s": 3, "w": 1242 },
  9087. appId: 15,
  9088. android: { market: 'Unknown' } };
  9089. var token = uni.getStorageSync('token') || "88b99b11d3fc4cc3a71959b824678ce8";
  9090. uni.request({
  9091. url: "".concat(apiHost).concat(url),
  9092. method: method,
  9093. data: data,
  9094. header: {
  9095. 'Content-Type': 'application/json',
  9096. // 'token': url === ('/cufd') ? '' : token,
  9097. // 'LL_Ukn': url === ('/cufd') ? '' : LL_Ukn,
  9098. // 'LL_Csi':url === ('/cufd') ? '' : JSON.stringify(LL_Csi),
  9099. 'token': url === 'userLogin/login' ? '' : token,
  9100. 'LL_Ukn': LL_Ukn,
  9101. 'LL_Csi': JSON.stringify(LL_Csi) },
  9102. success: function success(res) {
  9103. if (res.data.status === 'Unauthorized') {
  9104. uni.setStorageSync('token', '');
  9105. } else
  9106. if (res.data.status === 'FrozenUser') {
  9107. // 用户异常
  9108. uni.showToast({
  9109. icon: 'none',
  9110. title: "用户已被冻结" });
  9111. setTimeout(function () {
  9112. uni.reLaunch({
  9113. url: '/pages/login/login' });
  9114. }, 2000);
  9115. } else
  9116. if (res.data.status === 'Fail') {
  9117. // 用户异常
  9118. uni.showToast({
  9119. icon: 'none',
  9120. title: res.data.msg });
  9121. setTimeout(function () {
  9122. uni.reLaunch({
  9123. url: '/pages/login/login' });
  9124. }, 2000);
  9125. } else
  9126. if (res.data.status === 'Exception') {
  9127. // 自动登录异常
  9128. uni.showToast({
  9129. icon: 'none',
  9130. title: res.data.msg });
  9131. } else
  9132. if (res.data.status === 'Succ' || res.data.code === 0) {
  9133. resolve(res.data);
  9134. } else
  9135. {
  9136. reject(res.data);
  9137. }
  9138. },
  9139. fail: function fail(res) {return reject(res.data);},
  9140. complete: function complete(res) {} });
  9141. });
  9142. };
  9143. var get = function get(url) {
  9144. return new Promise(function (resolve, reject) {
  9145. uni.request({
  9146. url: url,
  9147. method: 'GET',
  9148. header: { 'Access-Control-Allow-Origin': '*' },
  9149. success: function success(res) {
  9150. return res.data;
  9151. } });
  9152. });
  9153. };
  9154. // const upload = (url, path) => {
  9155. // return new Promise((resolve, reject) => {
  9156. // let LL_Ukn =uni.getStorageSync('LL_Ukn')||"szxe/TwE/wNJxcF+51069Dw3KHJQmbEuE2tEVHG4ETQ1TEnZ6loF7MQdmCFePTWTS9NE8zhDBrvPplTUYNnlPa10jJ1GycLQjpe2CkO+UvflA8adpe/uD5z2C8Bp1Pg9cThzHmqxeAe1Oq9G1eo3PKfGGYLALGx+dgFPYMn06M/Y+lVio4WpXbNW8KMNkWyxnFZnpZEXzzyDUCT13TMF9tevVJ9/Sb3yBgLiLYnydplax+zjkFqwGSiDrQWR/E8s";
  9157. // let LL_Csi=uni.getStorageSync('LL_Csi')||{
  9158. // av:"2.6.0",
  9159. // brand:"Apple",
  9160. // currTime:1654149186191,
  9161. // deviceCode:"8b4eef5c5614033bfd3bcbdf4577c339",
  9162. // iOS:{"idfa":"00000000-0000-0000-0000-000000000000"},
  9163. // lang:"zh","model":"iPhone12,5","ov":"15.3.1",
  9164. // pkgCate:"Main",
  9165. // platform:"iOS",
  9166. // resolution:{"h":2688,"s":3,"w":1242},
  9167. // };
  9168. // let token= uni.getStorageSync('token')||"88b99b11d3fc4cc3a71959b824678ce8";
  9169. // uni.uploadFile({
  9170. // url: `${apiHost}${url}`,
  9171. // filePath: path,
  9172. // name: 'file',
  9173. // timeout: 10000,
  9174. // header: {
  9175. // 'token': token,
  9176. // 'LL_Ukn': LL_Ukn,
  9177. // 'LL_Csi': JSON.stringify(LL_Csi),
  9178. // },
  9179. // success: (res) => {
  9180. // let result = JSON.parse(res.data);
  9181. // if (result.status === 'Unauthorized') {
  9182. // uni.reLaunch({
  9183. // url:'/pages/login/login'
  9184. // })
  9185. // uni.showToast({
  9186. // icon:'none',
  9187. // title:'登录已失效'
  9188. // })
  9189. // }
  9190. // else if(res.data.status === 'FrozenUser'){
  9191. // // 用户异常
  9192. // uni.reLaunch({
  9193. // url:'/pages/login/login'
  9194. // })
  9195. // uni.showToast({
  9196. // icon:'none',
  9197. // title:"用户已被冻结"
  9198. // })
  9199. // }
  9200. // else if(res.data.status=== 'Fail'){
  9201. // // 用户异常
  9202. // uni.reLaunch({
  9203. // url:'/pages/login/login'
  9204. // })
  9205. // uni.showToast({
  9206. // icon:'none',
  9207. // title:res.data.msg
  9208. // })
  9209. // }
  9210. // else if (result.status === 'Succ') {
  9211. // resolve(result.data);
  9212. // } else {
  9213. // uni.showToast({
  9214. // icon:'none',
  9215. // title:result.msg
  9216. // })
  9217. // reject(result.data);
  9218. // }
  9219. // },
  9220. // fail: (err) => {
  9221. // reject(err.data);
  9222. // }
  9223. // })
  9224. // })
  9225. // }
  9226. module.exports = {
  9227. assetsUrl: assetsUrl,
  9228. request: request,
  9229. get: get,
  9230. showMsg: showMsg,
  9231. hasSafeArea: hasSafeArea,
  9232. checkPhone: checkPhone,
  9233. checkIdNo: checkIdNo,
  9234. checkChinese: checkChinese,
  9235. compare: compare,
  9236. timeFn: timeFn,
  9237. protocal: protocal,
  9238. IMSDKCode: IMSDKCode };
  9239. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  9240. /***/ }),
  9241. /* 13 */
  9242. /*!************************************************************************!*\
  9243. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/moment.js ***!
  9244. \************************************************************************/
  9245. /*! no static exports found */
  9246. /***/ (function(module, exports, __webpack_require__) {
  9247. /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
  9248. //! version : 2.29.4
  9249. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  9250. //! license : MIT
  9251. //! momentjs.com
  9252. ;(function (global, factory) {
  9253. true ? module.exports = factory() :
  9254. undefined;
  9255. })(this, function () {'use strict';
  9256. var hookCallback;
  9257. function hooks() {
  9258. return hookCallback.apply(null, arguments);
  9259. }
  9260. // This is done to register the method called with moment()
  9261. // without creating circular dependencies.
  9262. function setHookCallback(callback) {
  9263. hookCallback = callback;
  9264. }
  9265. function isArray(input) {
  9266. return (
  9267. input instanceof Array ||
  9268. Object.prototype.toString.call(input) === '[object Array]');
  9269. }
  9270. function isObject(input) {
  9271. // IE8 will treat undefined and null as object if it wasn't for
  9272. // input != null
  9273. return (
  9274. input != null &&
  9275. Object.prototype.toString.call(input) === '[object Object]');
  9276. }
  9277. function hasOwnProp(a, b) {
  9278. return Object.prototype.hasOwnProperty.call(a, b);
  9279. }
  9280. function isObjectEmpty(obj) {
  9281. if (Object.getOwnPropertyNames) {
  9282. return Object.getOwnPropertyNames(obj).length === 0;
  9283. } else {
  9284. var k;
  9285. for (k in obj) {
  9286. if (hasOwnProp(obj, k)) {
  9287. return false;
  9288. }
  9289. }
  9290. return true;
  9291. }
  9292. }
  9293. function isUndefined(input) {
  9294. return input === void 0;
  9295. }
  9296. function isNumber(input) {
  9297. return (
  9298. typeof input === 'number' ||
  9299. Object.prototype.toString.call(input) === '[object Number]');
  9300. }
  9301. function isDate(input) {
  9302. return (
  9303. input instanceof Date ||
  9304. Object.prototype.toString.call(input) === '[object Date]');
  9305. }
  9306. function map(arr, fn) {
  9307. var res = [],
  9308. i,
  9309. arrLen = arr.length;
  9310. for (i = 0; i < arrLen; ++i) {
  9311. res.push(fn(arr[i], i));
  9312. }
  9313. return res;
  9314. }
  9315. function extend(a, b) {
  9316. for (var i in b) {
  9317. if (hasOwnProp(b, i)) {
  9318. a[i] = b[i];
  9319. }
  9320. }
  9321. if (hasOwnProp(b, 'toString')) {
  9322. a.toString = b.toString;
  9323. }
  9324. if (hasOwnProp(b, 'valueOf')) {
  9325. a.valueOf = b.valueOf;
  9326. }
  9327. return a;
  9328. }
  9329. function createUTC(input, format, locale, strict) {
  9330. return createLocalOrUTC(input, format, locale, strict, true).utc();
  9331. }
  9332. function defaultParsingFlags() {
  9333. // We need to deep clone this object.
  9334. return {
  9335. empty: false,
  9336. unusedTokens: [],
  9337. unusedInput: [],
  9338. overflow: -2,
  9339. charsLeftOver: 0,
  9340. nullInput: false,
  9341. invalidEra: null,
  9342. invalidMonth: null,
  9343. invalidFormat: false,
  9344. userInvalidated: false,
  9345. iso: false,
  9346. parsedDateParts: [],
  9347. era: null,
  9348. meridiem: null,
  9349. rfc2822: false,
  9350. weekdayMismatch: false };
  9351. }
  9352. function getParsingFlags(m) {
  9353. if (m._pf == null) {
  9354. m._pf = defaultParsingFlags();
  9355. }
  9356. return m._pf;
  9357. }
  9358. var some;
  9359. if (Array.prototype.some) {
  9360. some = Array.prototype.some;
  9361. } else {
  9362. some = function some(fun) {
  9363. var t = Object(this),
  9364. len = t.length >>> 0,
  9365. i;
  9366. for (i = 0; i < len; i++) {
  9367. if (i in t && fun.call(this, t[i], i, t)) {
  9368. return true;
  9369. }
  9370. }
  9371. return false;
  9372. };
  9373. }
  9374. function isValid(m) {
  9375. if (m._isValid == null) {
  9376. var flags = getParsingFlags(m),
  9377. parsedParts = some.call(flags.parsedDateParts, function (i) {
  9378. return i != null;
  9379. }),
  9380. isNowValid =
  9381. !isNaN(m._d.getTime()) &&
  9382. flags.overflow < 0 &&
  9383. !flags.empty &&
  9384. !flags.invalidEra &&
  9385. !flags.invalidMonth &&
  9386. !flags.invalidWeekday &&
  9387. !flags.weekdayMismatch &&
  9388. !flags.nullInput &&
  9389. !flags.invalidFormat &&
  9390. !flags.userInvalidated && (
  9391. !flags.meridiem || flags.meridiem && parsedParts);
  9392. if (m._strict) {
  9393. isNowValid =
  9394. isNowValid &&
  9395. flags.charsLeftOver === 0 &&
  9396. flags.unusedTokens.length === 0 &&
  9397. flags.bigHour === undefined;
  9398. }
  9399. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  9400. m._isValid = isNowValid;
  9401. } else {
  9402. return isNowValid;
  9403. }
  9404. }
  9405. return m._isValid;
  9406. }
  9407. function createInvalid(flags) {
  9408. var m = createUTC(NaN);
  9409. if (flags != null) {
  9410. extend(getParsingFlags(m), flags);
  9411. } else {
  9412. getParsingFlags(m).userInvalidated = true;
  9413. }
  9414. return m;
  9415. }
  9416. // Plugins that add properties should also add the key here (null value),
  9417. // so we can properly clone ourselves.
  9418. var momentProperties = hooks.momentProperties = [],
  9419. updateInProgress = false;
  9420. function copyConfig(to, from) {
  9421. var i,
  9422. prop,
  9423. val,
  9424. momentPropertiesLen = momentProperties.length;
  9425. if (!isUndefined(from._isAMomentObject)) {
  9426. to._isAMomentObject = from._isAMomentObject;
  9427. }
  9428. if (!isUndefined(from._i)) {
  9429. to._i = from._i;
  9430. }
  9431. if (!isUndefined(from._f)) {
  9432. to._f = from._f;
  9433. }
  9434. if (!isUndefined(from._l)) {
  9435. to._l = from._l;
  9436. }
  9437. if (!isUndefined(from._strict)) {
  9438. to._strict = from._strict;
  9439. }
  9440. if (!isUndefined(from._tzm)) {
  9441. to._tzm = from._tzm;
  9442. }
  9443. if (!isUndefined(from._isUTC)) {
  9444. to._isUTC = from._isUTC;
  9445. }
  9446. if (!isUndefined(from._offset)) {
  9447. to._offset = from._offset;
  9448. }
  9449. if (!isUndefined(from._pf)) {
  9450. to._pf = getParsingFlags(from);
  9451. }
  9452. if (!isUndefined(from._locale)) {
  9453. to._locale = from._locale;
  9454. }
  9455. if (momentPropertiesLen > 0) {
  9456. for (i = 0; i < momentPropertiesLen; i++) {
  9457. prop = momentProperties[i];
  9458. val = from[prop];
  9459. if (!isUndefined(val)) {
  9460. to[prop] = val;
  9461. }
  9462. }
  9463. }
  9464. return to;
  9465. }
  9466. // Moment prototype object
  9467. function Moment(config) {
  9468. copyConfig(this, config);
  9469. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  9470. if (!this.isValid()) {
  9471. this._d = new Date(NaN);
  9472. }
  9473. // Prevent infinite loop in case updateOffset creates new moment
  9474. // objects.
  9475. if (updateInProgress === false) {
  9476. updateInProgress = true;
  9477. hooks.updateOffset(this);
  9478. updateInProgress = false;
  9479. }
  9480. }
  9481. function isMoment(obj) {
  9482. return (
  9483. obj instanceof Moment || obj != null && obj._isAMomentObject != null);
  9484. }
  9485. function warn(msg) {
  9486. if (
  9487. hooks.suppressDeprecationWarnings === false &&
  9488. typeof console !== 'undefined' &&
  9489. console.warn)
  9490. {
  9491. console.warn('Deprecation warning: ' + msg);
  9492. }
  9493. }
  9494. function deprecate(msg, fn) {
  9495. var firstTime = true;
  9496. return extend(function () {
  9497. if (hooks.deprecationHandler != null) {
  9498. hooks.deprecationHandler(null, msg);
  9499. }
  9500. if (firstTime) {
  9501. var args = [],
  9502. arg,
  9503. i,
  9504. key,
  9505. argLen = arguments.length;
  9506. for (i = 0; i < argLen; i++) {
  9507. arg = '';
  9508. if (typeof arguments[i] === 'object') {
  9509. arg += '\n[' + i + '] ';
  9510. for (key in arguments[0]) {
  9511. if (hasOwnProp(arguments[0], key)) {
  9512. arg += key + ': ' + arguments[0][key] + ', ';
  9513. }
  9514. }
  9515. arg = arg.slice(0, -2); // Remove trailing comma and space
  9516. } else {
  9517. arg = arguments[i];
  9518. }
  9519. args.push(arg);
  9520. }
  9521. warn(
  9522. msg +
  9523. '\nArguments: ' +
  9524. Array.prototype.slice.call(args).join('') +
  9525. '\n' +
  9526. new Error().stack);
  9527. firstTime = false;
  9528. }
  9529. return fn.apply(this, arguments);
  9530. }, fn);
  9531. }
  9532. var deprecations = {};
  9533. function deprecateSimple(name, msg) {
  9534. if (hooks.deprecationHandler != null) {
  9535. hooks.deprecationHandler(name, msg);
  9536. }
  9537. if (!deprecations[name]) {
  9538. warn(msg);
  9539. deprecations[name] = true;
  9540. }
  9541. }
  9542. hooks.suppressDeprecationWarnings = false;
  9543. hooks.deprecationHandler = null;
  9544. function isFunction(input) {
  9545. return (
  9546. typeof Function !== 'undefined' && input instanceof Function ||
  9547. Object.prototype.toString.call(input) === '[object Function]');
  9548. }
  9549. function set(config) {
  9550. var prop, i;
  9551. for (i in config) {
  9552. if (hasOwnProp(config, i)) {
  9553. prop = config[i];
  9554. if (isFunction(prop)) {
  9555. this[i] = prop;
  9556. } else {
  9557. this['_' + i] = prop;
  9558. }
  9559. }
  9560. }
  9561. this._config = config;
  9562. // Lenient ordinal parsing accepts just a number in addition to
  9563. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  9564. // TODO: Remove "ordinalParse" fallback in next major release.
  9565. this._dayOfMonthOrdinalParseLenient = new RegExp(
  9566. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  9567. '|' +
  9568. /\d{1,2}/.source);
  9569. }
  9570. function mergeConfigs(parentConfig, childConfig) {
  9571. var res = extend({}, parentConfig),
  9572. prop;
  9573. for (prop in childConfig) {
  9574. if (hasOwnProp(childConfig, prop)) {
  9575. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  9576. res[prop] = {};
  9577. extend(res[prop], parentConfig[prop]);
  9578. extend(res[prop], childConfig[prop]);
  9579. } else if (childConfig[prop] != null) {
  9580. res[prop] = childConfig[prop];
  9581. } else {
  9582. delete res[prop];
  9583. }
  9584. }
  9585. }
  9586. for (prop in parentConfig) {
  9587. if (
  9588. hasOwnProp(parentConfig, prop) &&
  9589. !hasOwnProp(childConfig, prop) &&
  9590. isObject(parentConfig[prop]))
  9591. {
  9592. // make sure changes to properties don't modify parent config
  9593. res[prop] = extend({}, res[prop]);
  9594. }
  9595. }
  9596. return res;
  9597. }
  9598. function Locale(config) {
  9599. if (config != null) {
  9600. this.set(config);
  9601. }
  9602. }
  9603. var keys;
  9604. if (Object.keys) {
  9605. keys = Object.keys;
  9606. } else {
  9607. keys = function keys(obj) {
  9608. var i,
  9609. res = [];
  9610. for (i in obj) {
  9611. if (hasOwnProp(obj, i)) {
  9612. res.push(i);
  9613. }
  9614. }
  9615. return res;
  9616. };
  9617. }
  9618. var defaultCalendar = {
  9619. sameDay: '[Today at] LT',
  9620. nextDay: '[Tomorrow at] LT',
  9621. nextWeek: 'dddd [at] LT',
  9622. lastDay: '[Yesterday at] LT',
  9623. lastWeek: '[Last] dddd [at] LT',
  9624. sameElse: 'L' };
  9625. function calendar(key, mom, now) {
  9626. var output = this._calendar[key] || this._calendar['sameElse'];
  9627. return isFunction(output) ? output.call(mom, now) : output;
  9628. }
  9629. function zeroFill(number, targetLength, forceSign) {
  9630. var absNumber = '' + Math.abs(number),
  9631. zerosToFill = targetLength - absNumber.length,
  9632. sign = number >= 0;
  9633. return (
  9634. (sign ? forceSign ? '+' : '' : '-') +
  9635. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
  9636. absNumber);
  9637. }
  9638. var formattingTokens =
  9639. /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  9640. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  9641. formatFunctions = {},
  9642. formatTokenFunctions = {};
  9643. // token: 'M'
  9644. // padded: ['MM', 2]
  9645. // ordinal: 'Mo'
  9646. // callback: function () { this.month() + 1 }
  9647. function addFormatToken(token, padded, ordinal, callback) {
  9648. var func = callback;
  9649. if (typeof callback === 'string') {
  9650. func = function func() {
  9651. return this[callback]();
  9652. };
  9653. }
  9654. if (token) {
  9655. formatTokenFunctions[token] = func;
  9656. }
  9657. if (padded) {
  9658. formatTokenFunctions[padded[0]] = function () {
  9659. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  9660. };
  9661. }
  9662. if (ordinal) {
  9663. formatTokenFunctions[ordinal] = function () {
  9664. return this.localeData().ordinal(
  9665. func.apply(this, arguments),
  9666. token);
  9667. };
  9668. }
  9669. }
  9670. function removeFormattingTokens(input) {
  9671. if (input.match(/\[[\s\S]/)) {
  9672. return input.replace(/^\[|\]$/g, '');
  9673. }
  9674. return input.replace(/\\/g, '');
  9675. }
  9676. function makeFormatFunction(format) {
  9677. var array = format.match(formattingTokens),
  9678. i,
  9679. length;
  9680. for (i = 0, length = array.length; i < length; i++) {
  9681. if (formatTokenFunctions[array[i]]) {
  9682. array[i] = formatTokenFunctions[array[i]];
  9683. } else {
  9684. array[i] = removeFormattingTokens(array[i]);
  9685. }
  9686. }
  9687. return function (mom) {
  9688. var output = '',
  9689. i;
  9690. for (i = 0; i < length; i++) {
  9691. output += isFunction(array[i]) ?
  9692. array[i].call(mom, format) :
  9693. array[i];
  9694. }
  9695. return output;
  9696. };
  9697. }
  9698. // format date using native date object
  9699. function formatMoment(m, format) {
  9700. if (!m.isValid()) {
  9701. return m.localeData().invalidDate();
  9702. }
  9703. format = expandFormat(format, m.localeData());
  9704. formatFunctions[format] =
  9705. formatFunctions[format] || makeFormatFunction(format);
  9706. return formatFunctions[format](m);
  9707. }
  9708. function expandFormat(format, locale) {
  9709. var i = 5;
  9710. function replaceLongDateFormatTokens(input) {
  9711. return locale.longDateFormat(input) || input;
  9712. }
  9713. localFormattingTokens.lastIndex = 0;
  9714. while (i >= 0 && localFormattingTokens.test(format)) {
  9715. format = format.replace(
  9716. localFormattingTokens,
  9717. replaceLongDateFormatTokens);
  9718. localFormattingTokens.lastIndex = 0;
  9719. i -= 1;
  9720. }
  9721. return format;
  9722. }
  9723. var defaultLongDateFormat = {
  9724. LTS: 'h:mm:ss A',
  9725. LT: 'h:mm A',
  9726. L: 'MM/DD/YYYY',
  9727. LL: 'MMMM D, YYYY',
  9728. LLL: 'MMMM D, YYYY h:mm A',
  9729. LLLL: 'dddd, MMMM D, YYYY h:mm A' };
  9730. function longDateFormat(key) {
  9731. var format = this._longDateFormat[key],
  9732. formatUpper = this._longDateFormat[key.toUpperCase()];
  9733. if (format || !formatUpper) {
  9734. return format;
  9735. }
  9736. this._longDateFormat[key] = formatUpper.
  9737. match(formattingTokens).
  9738. map(function (tok) {
  9739. if (
  9740. tok === 'MMMM' ||
  9741. tok === 'MM' ||
  9742. tok === 'DD' ||
  9743. tok === 'dddd')
  9744. {
  9745. return tok.slice(1);
  9746. }
  9747. return tok;
  9748. }).
  9749. join('');
  9750. return this._longDateFormat[key];
  9751. }
  9752. var defaultInvalidDate = 'Invalid date';
  9753. function invalidDate() {
  9754. return this._invalidDate;
  9755. }
  9756. var defaultOrdinal = '%d',
  9757. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  9758. function ordinal(number) {
  9759. return this._ordinal.replace('%d', number);
  9760. }
  9761. var defaultRelativeTime = {
  9762. future: 'in %s',
  9763. past: '%s ago',
  9764. s: 'a few seconds',
  9765. ss: '%d seconds',
  9766. m: 'a minute',
  9767. mm: '%d minutes',
  9768. h: 'an hour',
  9769. hh: '%d hours',
  9770. d: 'a day',
  9771. dd: '%d days',
  9772. w: 'a week',
  9773. ww: '%d weeks',
  9774. M: 'a month',
  9775. MM: '%d months',
  9776. y: 'a year',
  9777. yy: '%d years' };
  9778. function relativeTime(number, withoutSuffix, string, isFuture) {
  9779. var output = this._relativeTime[string];
  9780. return isFunction(output) ?
  9781. output(number, withoutSuffix, string, isFuture) :
  9782. output.replace(/%d/i, number);
  9783. }
  9784. function pastFuture(diff, output) {
  9785. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  9786. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  9787. }
  9788. var aliases = {};
  9789. function addUnitAlias(unit, shorthand) {
  9790. var lowerCase = unit.toLowerCase();
  9791. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  9792. }
  9793. function normalizeUnits(units) {
  9794. return typeof units === 'string' ?
  9795. aliases[units] || aliases[units.toLowerCase()] :
  9796. undefined;
  9797. }
  9798. function normalizeObjectUnits(inputObject) {
  9799. var normalizedInput = {},
  9800. normalizedProp,
  9801. prop;
  9802. for (prop in inputObject) {
  9803. if (hasOwnProp(inputObject, prop)) {
  9804. normalizedProp = normalizeUnits(prop);
  9805. if (normalizedProp) {
  9806. normalizedInput[normalizedProp] = inputObject[prop];
  9807. }
  9808. }
  9809. }
  9810. return normalizedInput;
  9811. }
  9812. var priorities = {};
  9813. function addUnitPriority(unit, priority) {
  9814. priorities[unit] = priority;
  9815. }
  9816. function getPrioritizedUnits(unitsObj) {
  9817. var units = [],
  9818. u;
  9819. for (u in unitsObj) {
  9820. if (hasOwnProp(unitsObj, u)) {
  9821. units.push({ unit: u, priority: priorities[u] });
  9822. }
  9823. }
  9824. units.sort(function (a, b) {
  9825. return a.priority - b.priority;
  9826. });
  9827. return units;
  9828. }
  9829. function isLeapYear(year) {
  9830. return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
  9831. }
  9832. function absFloor(number) {
  9833. if (number < 0) {
  9834. // -0 -> 0
  9835. return Math.ceil(number) || 0;
  9836. } else {
  9837. return Math.floor(number);
  9838. }
  9839. }
  9840. function toInt(argumentForCoercion) {
  9841. var coercedNumber = +argumentForCoercion,
  9842. value = 0;
  9843. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  9844. value = absFloor(coercedNumber);
  9845. }
  9846. return value;
  9847. }
  9848. function makeGetSet(unit, keepTime) {
  9849. return function (value) {
  9850. if (value != null) {
  9851. set$1(this, unit, value);
  9852. hooks.updateOffset(this, keepTime);
  9853. return this;
  9854. } else {
  9855. return get(this, unit);
  9856. }
  9857. };
  9858. }
  9859. function get(mom, unit) {
  9860. return mom.isValid() ?
  9861. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() :
  9862. NaN;
  9863. }
  9864. function set$1(mom, unit, value) {
  9865. if (mom.isValid() && !isNaN(value)) {
  9866. if (
  9867. unit === 'FullYear' &&
  9868. isLeapYear(mom.year()) &&
  9869. mom.month() === 1 &&
  9870. mom.date() === 29)
  9871. {
  9872. value = toInt(value);
  9873. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
  9874. value,
  9875. mom.month(),
  9876. daysInMonth(value, mom.month()));
  9877. } else {
  9878. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  9879. }
  9880. }
  9881. }
  9882. // MOMENTS
  9883. function stringGet(units) {
  9884. units = normalizeUnits(units);
  9885. if (isFunction(this[units])) {
  9886. return this[units]();
  9887. }
  9888. return this;
  9889. }
  9890. function stringSet(units, value) {
  9891. if (typeof units === 'object') {
  9892. units = normalizeObjectUnits(units);
  9893. var prioritized = getPrioritizedUnits(units),
  9894. i,
  9895. prioritizedLen = prioritized.length;
  9896. for (i = 0; i < prioritizedLen; i++) {
  9897. this[prioritized[i].unit](units[prioritized[i].unit]);
  9898. }
  9899. } else {
  9900. units = normalizeUnits(units);
  9901. if (isFunction(this[units])) {
  9902. return this[units](value);
  9903. }
  9904. }
  9905. return this;
  9906. }
  9907. var match1 = /\d/, // 0 - 9
  9908. match2 = /\d\d/, // 00 - 99
  9909. match3 = /\d{3}/, // 000 - 999
  9910. match4 = /\d{4}/, // 0000 - 9999
  9911. match6 = /[+-]?\d{6}/, // -999999 - 999999
  9912. match1to2 = /\d\d?/, // 0 - 99
  9913. match3to4 = /\d\d\d\d?/, // 999 - 9999
  9914. match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
  9915. match1to3 = /\d{1,3}/, // 0 - 999
  9916. match1to4 = /\d{1,4}/, // 0 - 9999
  9917. match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
  9918. matchUnsigned = /\d+/, // 0 - inf
  9919. matchSigned = /[+-]?\d+/, // -inf - inf
  9920. matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
  9921. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  9922. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
  9923. // any word (or two) characters or numbers including two/three word month in arabic.
  9924. // includes scottish gaelic two word and hyphenated months
  9925. matchWord =
  9926. /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
  9927. regexes;
  9928. regexes = {};
  9929. function addRegexToken(token, regex, strictRegex) {
  9930. regexes[token] = isFunction(regex) ?
  9931. regex :
  9932. function (isStrict, localeData) {
  9933. return isStrict && strictRegex ? strictRegex : regex;
  9934. };
  9935. }
  9936. function getParseRegexForToken(token, config) {
  9937. if (!hasOwnProp(regexes, token)) {
  9938. return new RegExp(unescapeFormat(token));
  9939. }
  9940. return regexes[token](config._strict, config._locale);
  9941. }
  9942. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  9943. function unescapeFormat(s) {
  9944. return regexEscape(
  9945. s.
  9946. replace('\\', '').
  9947. replace(
  9948. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  9949. function (matched, p1, p2, p3, p4) {
  9950. return p1 || p2 || p3 || p4;
  9951. }));
  9952. }
  9953. function regexEscape(s) {
  9954. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  9955. }
  9956. var tokens = {};
  9957. function addParseToken(token, callback) {
  9958. var i,
  9959. func = callback,
  9960. tokenLen;
  9961. if (typeof token === 'string') {
  9962. token = [token];
  9963. }
  9964. if (isNumber(callback)) {
  9965. func = function func(input, array) {
  9966. array[callback] = toInt(input);
  9967. };
  9968. }
  9969. tokenLen = token.length;
  9970. for (i = 0; i < tokenLen; i++) {
  9971. tokens[token[i]] = func;
  9972. }
  9973. }
  9974. function addWeekParseToken(token, callback) {
  9975. addParseToken(token, function (input, array, config, token) {
  9976. config._w = config._w || {};
  9977. callback(input, config._w, config, token);
  9978. });
  9979. }
  9980. function addTimeToArrayFromToken(token, input, config) {
  9981. if (input != null && hasOwnProp(tokens, token)) {
  9982. tokens[token](input, config._a, config, token);
  9983. }
  9984. }
  9985. var YEAR = 0,
  9986. MONTH = 1,
  9987. DATE = 2,
  9988. HOUR = 3,
  9989. MINUTE = 4,
  9990. SECOND = 5,
  9991. MILLISECOND = 6,
  9992. WEEK = 7,
  9993. WEEKDAY = 8;
  9994. function mod(n, x) {
  9995. return (n % x + x) % x;
  9996. }
  9997. var indexOf;
  9998. if (Array.prototype.indexOf) {
  9999. indexOf = Array.prototype.indexOf;
  10000. } else {
  10001. indexOf = function indexOf(o) {
  10002. // I know
  10003. var i;
  10004. for (i = 0; i < this.length; ++i) {
  10005. if (this[i] === o) {
  10006. return i;
  10007. }
  10008. }
  10009. return -1;
  10010. };
  10011. }
  10012. function daysInMonth(year, month) {
  10013. if (isNaN(year) || isNaN(month)) {
  10014. return NaN;
  10015. }
  10016. var modMonth = mod(month, 12);
  10017. year += (month - modMonth) / 12;
  10018. return modMonth === 1 ?
  10019. isLeapYear(year) ?
  10020. 29 :
  10021. 28 :
  10022. 31 - modMonth % 7 % 2;
  10023. }
  10024. // FORMATTING
  10025. addFormatToken('M', ['MM', 2], 'Mo', function () {
  10026. return this.month() + 1;
  10027. });
  10028. addFormatToken('MMM', 0, 0, function (format) {
  10029. return this.localeData().monthsShort(this, format);
  10030. });
  10031. addFormatToken('MMMM', 0, 0, function (format) {
  10032. return this.localeData().months(this, format);
  10033. });
  10034. // ALIASES
  10035. addUnitAlias('month', 'M');
  10036. // PRIORITY
  10037. addUnitPriority('month', 8);
  10038. // PARSING
  10039. addRegexToken('M', match1to2);
  10040. addRegexToken('MM', match1to2, match2);
  10041. addRegexToken('MMM', function (isStrict, locale) {
  10042. return locale.monthsShortRegex(isStrict);
  10043. });
  10044. addRegexToken('MMMM', function (isStrict, locale) {
  10045. return locale.monthsRegex(isStrict);
  10046. });
  10047. addParseToken(['M', 'MM'], function (input, array) {
  10048. array[MONTH] = toInt(input) - 1;
  10049. });
  10050. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  10051. var month = config._locale.monthsParse(input, token, config._strict);
  10052. // if we didn't find a month name, mark the date as invalid.
  10053. if (month != null) {
  10054. array[MONTH] = month;
  10055. } else {
  10056. getParsingFlags(config).invalidMonth = input;
  10057. }
  10058. });
  10059. // LOCALES
  10060. var defaultLocaleMonths =
  10061. 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  10062. '_'),
  10063. defaultLocaleMonthsShort =
  10064. 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  10065. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  10066. defaultMonthsShortRegex = matchWord,
  10067. defaultMonthsRegex = matchWord;
  10068. function localeMonths(m, format) {
  10069. if (!m) {
  10070. return isArray(this._months) ?
  10071. this._months :
  10072. this._months['standalone'];
  10073. }
  10074. return isArray(this._months) ?
  10075. this._months[m.month()] :
  10076. this._months[
  10077. (this._months.isFormat || MONTHS_IN_FORMAT).test(format) ?
  10078. 'format' :
  10079. 'standalone'][
  10080. m.month()];
  10081. }
  10082. function localeMonthsShort(m, format) {
  10083. if (!m) {
  10084. return isArray(this._monthsShort) ?
  10085. this._monthsShort :
  10086. this._monthsShort['standalone'];
  10087. }
  10088. return isArray(this._monthsShort) ?
  10089. this._monthsShort[m.month()] :
  10090. this._monthsShort[
  10091. MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][
  10092. m.month()];
  10093. }
  10094. function handleStrictParse(monthName, format, strict) {
  10095. var i,
  10096. ii,
  10097. mom,
  10098. llc = monthName.toLocaleLowerCase();
  10099. if (!this._monthsParse) {
  10100. // this is not used
  10101. this._monthsParse = [];
  10102. this._longMonthsParse = [];
  10103. this._shortMonthsParse = [];
  10104. for (i = 0; i < 12; ++i) {
  10105. mom = createUTC([2000, i]);
  10106. this._shortMonthsParse[i] = this.monthsShort(
  10107. mom,
  10108. '').
  10109. toLocaleLowerCase();
  10110. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  10111. }
  10112. }
  10113. if (strict) {
  10114. if (format === 'MMM') {
  10115. ii = indexOf.call(this._shortMonthsParse, llc);
  10116. return ii !== -1 ? ii : null;
  10117. } else {
  10118. ii = indexOf.call(this._longMonthsParse, llc);
  10119. return ii !== -1 ? ii : null;
  10120. }
  10121. } else {
  10122. if (format === 'MMM') {
  10123. ii = indexOf.call(this._shortMonthsParse, llc);
  10124. if (ii !== -1) {
  10125. return ii;
  10126. }
  10127. ii = indexOf.call(this._longMonthsParse, llc);
  10128. return ii !== -1 ? ii : null;
  10129. } else {
  10130. ii = indexOf.call(this._longMonthsParse, llc);
  10131. if (ii !== -1) {
  10132. return ii;
  10133. }
  10134. ii = indexOf.call(this._shortMonthsParse, llc);
  10135. return ii !== -1 ? ii : null;
  10136. }
  10137. }
  10138. }
  10139. function localeMonthsParse(monthName, format, strict) {
  10140. var i, mom, regex;
  10141. if (this._monthsParseExact) {
  10142. return handleStrictParse.call(this, monthName, format, strict);
  10143. }
  10144. if (!this._monthsParse) {
  10145. this._monthsParse = [];
  10146. this._longMonthsParse = [];
  10147. this._shortMonthsParse = [];
  10148. }
  10149. // TODO: add sorting
  10150. // Sorting makes sure if one month (or abbr) is a prefix of another
  10151. // see sorting in computeMonthsParse
  10152. for (i = 0; i < 12; i++) {
  10153. // make the regex if we don't have it already
  10154. mom = createUTC([2000, i]);
  10155. if (strict && !this._longMonthsParse[i]) {
  10156. this._longMonthsParse[i] = new RegExp(
  10157. '^' + this.months(mom, '').replace('.', '') + '$',
  10158. 'i');
  10159. this._shortMonthsParse[i] = new RegExp(
  10160. '^' + this.monthsShort(mom, '').replace('.', '') + '$',
  10161. 'i');
  10162. }
  10163. if (!strict && !this._monthsParse[i]) {
  10164. regex =
  10165. '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  10166. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  10167. }
  10168. // test the regex
  10169. if (
  10170. strict &&
  10171. format === 'MMMM' &&
  10172. this._longMonthsParse[i].test(monthName))
  10173. {
  10174. return i;
  10175. } else if (
  10176. strict &&
  10177. format === 'MMM' &&
  10178. this._shortMonthsParse[i].test(monthName))
  10179. {
  10180. return i;
  10181. } else if (!strict && this._monthsParse[i].test(monthName)) {
  10182. return i;
  10183. }
  10184. }
  10185. }
  10186. // MOMENTS
  10187. function setMonth(mom, value) {
  10188. var dayOfMonth;
  10189. if (!mom.isValid()) {
  10190. // No op
  10191. return mom;
  10192. }
  10193. if (typeof value === 'string') {
  10194. if (/^\d+$/.test(value)) {
  10195. value = toInt(value);
  10196. } else {
  10197. value = mom.localeData().monthsParse(value);
  10198. // TODO: Another silent failure?
  10199. if (!isNumber(value)) {
  10200. return mom;
  10201. }
  10202. }
  10203. }
  10204. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  10205. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  10206. return mom;
  10207. }
  10208. function getSetMonth(value) {
  10209. if (value != null) {
  10210. setMonth(this, value);
  10211. hooks.updateOffset(this, true);
  10212. return this;
  10213. } else {
  10214. return get(this, 'Month');
  10215. }
  10216. }
  10217. function getDaysInMonth() {
  10218. return daysInMonth(this.year(), this.month());
  10219. }
  10220. function monthsShortRegex(isStrict) {
  10221. if (this._monthsParseExact) {
  10222. if (!hasOwnProp(this, '_monthsRegex')) {
  10223. computeMonthsParse.call(this);
  10224. }
  10225. if (isStrict) {
  10226. return this._monthsShortStrictRegex;
  10227. } else {
  10228. return this._monthsShortRegex;
  10229. }
  10230. } else {
  10231. if (!hasOwnProp(this, '_monthsShortRegex')) {
  10232. this._monthsShortRegex = defaultMonthsShortRegex;
  10233. }
  10234. return this._monthsShortStrictRegex && isStrict ?
  10235. this._monthsShortStrictRegex :
  10236. this._monthsShortRegex;
  10237. }
  10238. }
  10239. function monthsRegex(isStrict) {
  10240. if (this._monthsParseExact) {
  10241. if (!hasOwnProp(this, '_monthsRegex')) {
  10242. computeMonthsParse.call(this);
  10243. }
  10244. if (isStrict) {
  10245. return this._monthsStrictRegex;
  10246. } else {
  10247. return this._monthsRegex;
  10248. }
  10249. } else {
  10250. if (!hasOwnProp(this, '_monthsRegex')) {
  10251. this._monthsRegex = defaultMonthsRegex;
  10252. }
  10253. return this._monthsStrictRegex && isStrict ?
  10254. this._monthsStrictRegex :
  10255. this._monthsRegex;
  10256. }
  10257. }
  10258. function computeMonthsParse() {
  10259. function cmpLenRev(a, b) {
  10260. return b.length - a.length;
  10261. }
  10262. var shortPieces = [],
  10263. longPieces = [],
  10264. mixedPieces = [],
  10265. i,
  10266. mom;
  10267. for (i = 0; i < 12; i++) {
  10268. // make the regex if we don't have it already
  10269. mom = createUTC([2000, i]);
  10270. shortPieces.push(this.monthsShort(mom, ''));
  10271. longPieces.push(this.months(mom, ''));
  10272. mixedPieces.push(this.months(mom, ''));
  10273. mixedPieces.push(this.monthsShort(mom, ''));
  10274. }
  10275. // Sorting makes sure if one month (or abbr) is a prefix of another it
  10276. // will match the longer piece.
  10277. shortPieces.sort(cmpLenRev);
  10278. longPieces.sort(cmpLenRev);
  10279. mixedPieces.sort(cmpLenRev);
  10280. for (i = 0; i < 12; i++) {
  10281. shortPieces[i] = regexEscape(shortPieces[i]);
  10282. longPieces[i] = regexEscape(longPieces[i]);
  10283. }
  10284. for (i = 0; i < 24; i++) {
  10285. mixedPieces[i] = regexEscape(mixedPieces[i]);
  10286. }
  10287. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  10288. this._monthsShortRegex = this._monthsRegex;
  10289. this._monthsStrictRegex = new RegExp(
  10290. '^(' + longPieces.join('|') + ')',
  10291. 'i');
  10292. this._monthsShortStrictRegex = new RegExp(
  10293. '^(' + shortPieces.join('|') + ')',
  10294. 'i');
  10295. }
  10296. // FORMATTING
  10297. addFormatToken('Y', 0, 0, function () {
  10298. var y = this.year();
  10299. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  10300. });
  10301. addFormatToken(0, ['YY', 2], 0, function () {
  10302. return this.year() % 100;
  10303. });
  10304. addFormatToken(0, ['YYYY', 4], 0, 'year');
  10305. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  10306. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  10307. // ALIASES
  10308. addUnitAlias('year', 'y');
  10309. // PRIORITIES
  10310. addUnitPriority('year', 1);
  10311. // PARSING
  10312. addRegexToken('Y', matchSigned);
  10313. addRegexToken('YY', match1to2, match2);
  10314. addRegexToken('YYYY', match1to4, match4);
  10315. addRegexToken('YYYYY', match1to6, match6);
  10316. addRegexToken('YYYYYY', match1to6, match6);
  10317. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  10318. addParseToken('YYYY', function (input, array) {
  10319. array[YEAR] =
  10320. input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  10321. });
  10322. addParseToken('YY', function (input, array) {
  10323. array[YEAR] = hooks.parseTwoDigitYear(input);
  10324. });
  10325. addParseToken('Y', function (input, array) {
  10326. array[YEAR] = parseInt(input, 10);
  10327. });
  10328. // HELPERS
  10329. function daysInYear(year) {
  10330. return isLeapYear(year) ? 366 : 365;
  10331. }
  10332. // HOOKS
  10333. hooks.parseTwoDigitYear = function (input) {
  10334. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  10335. };
  10336. // MOMENTS
  10337. var getSetYear = makeGetSet('FullYear', true);
  10338. function getIsLeapYear() {
  10339. return isLeapYear(this.year());
  10340. }
  10341. function createDate(y, m, d, h, M, s, ms) {
  10342. // can't just apply() to create a date:
  10343. // https://stackoverflow.com/q/181348
  10344. var date;
  10345. // the date constructor remaps years 0-99 to 1900-1999
  10346. if (y < 100 && y >= 0) {
  10347. // preserve leap years using a full 400 year cycle, then reset
  10348. date = new Date(y + 400, m, d, h, M, s, ms);
  10349. if (isFinite(date.getFullYear())) {
  10350. date.setFullYear(y);
  10351. }
  10352. } else {
  10353. date = new Date(y, m, d, h, M, s, ms);
  10354. }
  10355. return date;
  10356. }
  10357. function createUTCDate(y) {
  10358. var date, args;
  10359. // the Date.UTC function remaps years 0-99 to 1900-1999
  10360. if (y < 100 && y >= 0) {
  10361. args = Array.prototype.slice.call(arguments);
  10362. // preserve leap years using a full 400 year cycle, then reset
  10363. args[0] = y + 400;
  10364. date = new Date(Date.UTC.apply(null, args));
  10365. if (isFinite(date.getUTCFullYear())) {
  10366. date.setUTCFullYear(y);
  10367. }
  10368. } else {
  10369. date = new Date(Date.UTC.apply(null, arguments));
  10370. }
  10371. return date;
  10372. }
  10373. // start-of-first-week - start-of-year
  10374. function firstWeekOffset(year, dow, doy) {
  10375. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  10376. fwd = 7 + dow - doy,
  10377. // first-week day local weekday -- which local weekday is fwd
  10378. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  10379. return -fwdlw + fwd - 1;
  10380. }
  10381. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  10382. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  10383. var localWeekday = (7 + weekday - dow) % 7,
  10384. weekOffset = firstWeekOffset(year, dow, doy),
  10385. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  10386. resYear,
  10387. resDayOfYear;
  10388. if (dayOfYear <= 0) {
  10389. resYear = year - 1;
  10390. resDayOfYear = daysInYear(resYear) + dayOfYear;
  10391. } else if (dayOfYear > daysInYear(year)) {
  10392. resYear = year + 1;
  10393. resDayOfYear = dayOfYear - daysInYear(year);
  10394. } else {
  10395. resYear = year;
  10396. resDayOfYear = dayOfYear;
  10397. }
  10398. return {
  10399. year: resYear,
  10400. dayOfYear: resDayOfYear };
  10401. }
  10402. function weekOfYear(mom, dow, doy) {
  10403. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  10404. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  10405. resWeek,
  10406. resYear;
  10407. if (week < 1) {
  10408. resYear = mom.year() - 1;
  10409. resWeek = week + weeksInYear(resYear, dow, doy);
  10410. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  10411. resWeek = week - weeksInYear(mom.year(), dow, doy);
  10412. resYear = mom.year() + 1;
  10413. } else {
  10414. resYear = mom.year();
  10415. resWeek = week;
  10416. }
  10417. return {
  10418. week: resWeek,
  10419. year: resYear };
  10420. }
  10421. function weeksInYear(year, dow, doy) {
  10422. var weekOffset = firstWeekOffset(year, dow, doy),
  10423. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  10424. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  10425. }
  10426. // FORMATTING
  10427. addFormatToken('w', ['ww', 2], 'wo', 'week');
  10428. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  10429. // ALIASES
  10430. addUnitAlias('week', 'w');
  10431. addUnitAlias('isoWeek', 'W');
  10432. // PRIORITIES
  10433. addUnitPriority('week', 5);
  10434. addUnitPriority('isoWeek', 5);
  10435. // PARSING
  10436. addRegexToken('w', match1to2);
  10437. addRegexToken('ww', match1to2, match2);
  10438. addRegexToken('W', match1to2);
  10439. addRegexToken('WW', match1to2, match2);
  10440. addWeekParseToken(
  10441. ['w', 'ww', 'W', 'WW'],
  10442. function (input, week, config, token) {
  10443. week[token.substr(0, 1)] = toInt(input);
  10444. });
  10445. // HELPERS
  10446. // LOCALES
  10447. function localeWeek(mom) {
  10448. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  10449. }
  10450. var defaultLocaleWeek = {
  10451. dow: 0, // Sunday is the first day of the week.
  10452. doy: 6 // The week that contains Jan 6th is the first week of the year.
  10453. };
  10454. function localeFirstDayOfWeek() {
  10455. return this._week.dow;
  10456. }
  10457. function localeFirstDayOfYear() {
  10458. return this._week.doy;
  10459. }
  10460. // MOMENTS
  10461. function getSetWeek(input) {
  10462. var week = this.localeData().week(this);
  10463. return input == null ? week : this.add((input - week) * 7, 'd');
  10464. }
  10465. function getSetISOWeek(input) {
  10466. var week = weekOfYear(this, 1, 4).week;
  10467. return input == null ? week : this.add((input - week) * 7, 'd');
  10468. }
  10469. // FORMATTING
  10470. addFormatToken('d', 0, 'do', 'day');
  10471. addFormatToken('dd', 0, 0, function (format) {
  10472. return this.localeData().weekdaysMin(this, format);
  10473. });
  10474. addFormatToken('ddd', 0, 0, function (format) {
  10475. return this.localeData().weekdaysShort(this, format);
  10476. });
  10477. addFormatToken('dddd', 0, 0, function (format) {
  10478. return this.localeData().weekdays(this, format);
  10479. });
  10480. addFormatToken('e', 0, 0, 'weekday');
  10481. addFormatToken('E', 0, 0, 'isoWeekday');
  10482. // ALIASES
  10483. addUnitAlias('day', 'd');
  10484. addUnitAlias('weekday', 'e');
  10485. addUnitAlias('isoWeekday', 'E');
  10486. // PRIORITY
  10487. addUnitPriority('day', 11);
  10488. addUnitPriority('weekday', 11);
  10489. addUnitPriority('isoWeekday', 11);
  10490. // PARSING
  10491. addRegexToken('d', match1to2);
  10492. addRegexToken('e', match1to2);
  10493. addRegexToken('E', match1to2);
  10494. addRegexToken('dd', function (isStrict, locale) {
  10495. return locale.weekdaysMinRegex(isStrict);
  10496. });
  10497. addRegexToken('ddd', function (isStrict, locale) {
  10498. return locale.weekdaysShortRegex(isStrict);
  10499. });
  10500. addRegexToken('dddd', function (isStrict, locale) {
  10501. return locale.weekdaysRegex(isStrict);
  10502. });
  10503. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  10504. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  10505. // if we didn't get a weekday name, mark the date as invalid
  10506. if (weekday != null) {
  10507. week.d = weekday;
  10508. } else {
  10509. getParsingFlags(config).invalidWeekday = input;
  10510. }
  10511. });
  10512. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  10513. week[token] = toInt(input);
  10514. });
  10515. // HELPERS
  10516. function parseWeekday(input, locale) {
  10517. if (typeof input !== 'string') {
  10518. return input;
  10519. }
  10520. if (!isNaN(input)) {
  10521. return parseInt(input, 10);
  10522. }
  10523. input = locale.weekdaysParse(input);
  10524. if (typeof input === 'number') {
  10525. return input;
  10526. }
  10527. return null;
  10528. }
  10529. function parseIsoWeekday(input, locale) {
  10530. if (typeof input === 'string') {
  10531. return locale.weekdaysParse(input) % 7 || 7;
  10532. }
  10533. return isNaN(input) ? null : input;
  10534. }
  10535. // LOCALES
  10536. function shiftWeekdays(ws, n) {
  10537. return ws.slice(n, 7).concat(ws.slice(0, n));
  10538. }
  10539. var defaultLocaleWeekdays =
  10540. 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  10541. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  10542. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  10543. defaultWeekdaysRegex = matchWord,
  10544. defaultWeekdaysShortRegex = matchWord,
  10545. defaultWeekdaysMinRegex = matchWord;
  10546. function localeWeekdays(m, format) {
  10547. var weekdays = isArray(this._weekdays) ?
  10548. this._weekdays :
  10549. this._weekdays[
  10550. m && m !== true && this._weekdays.isFormat.test(format) ?
  10551. 'format' :
  10552. 'standalone'];
  10553. return m === true ?
  10554. shiftWeekdays(weekdays, this._week.dow) :
  10555. m ?
  10556. weekdays[m.day()] :
  10557. weekdays;
  10558. }
  10559. function localeWeekdaysShort(m) {
  10560. return m === true ?
  10561. shiftWeekdays(this._weekdaysShort, this._week.dow) :
  10562. m ?
  10563. this._weekdaysShort[m.day()] :
  10564. this._weekdaysShort;
  10565. }
  10566. function localeWeekdaysMin(m) {
  10567. return m === true ?
  10568. shiftWeekdays(this._weekdaysMin, this._week.dow) :
  10569. m ?
  10570. this._weekdaysMin[m.day()] :
  10571. this._weekdaysMin;
  10572. }
  10573. function handleStrictParse$1(weekdayName, format, strict) {
  10574. var i,
  10575. ii,
  10576. mom,
  10577. llc = weekdayName.toLocaleLowerCase();
  10578. if (!this._weekdaysParse) {
  10579. this._weekdaysParse = [];
  10580. this._shortWeekdaysParse = [];
  10581. this._minWeekdaysParse = [];
  10582. for (i = 0; i < 7; ++i) {
  10583. mom = createUTC([2000, 1]).day(i);
  10584. this._minWeekdaysParse[i] = this.weekdaysMin(
  10585. mom,
  10586. '').
  10587. toLocaleLowerCase();
  10588. this._shortWeekdaysParse[i] = this.weekdaysShort(
  10589. mom,
  10590. '').
  10591. toLocaleLowerCase();
  10592. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  10593. }
  10594. }
  10595. if (strict) {
  10596. if (format === 'dddd') {
  10597. ii = indexOf.call(this._weekdaysParse, llc);
  10598. return ii !== -1 ? ii : null;
  10599. } else if (format === 'ddd') {
  10600. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10601. return ii !== -1 ? ii : null;
  10602. } else {
  10603. ii = indexOf.call(this._minWeekdaysParse, llc);
  10604. return ii !== -1 ? ii : null;
  10605. }
  10606. } else {
  10607. if (format === 'dddd') {
  10608. ii = indexOf.call(this._weekdaysParse, llc);
  10609. if (ii !== -1) {
  10610. return ii;
  10611. }
  10612. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10613. if (ii !== -1) {
  10614. return ii;
  10615. }
  10616. ii = indexOf.call(this._minWeekdaysParse, llc);
  10617. return ii !== -1 ? ii : null;
  10618. } else if (format === 'ddd') {
  10619. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10620. if (ii !== -1) {
  10621. return ii;
  10622. }
  10623. ii = indexOf.call(this._weekdaysParse, llc);
  10624. if (ii !== -1) {
  10625. return ii;
  10626. }
  10627. ii = indexOf.call(this._minWeekdaysParse, llc);
  10628. return ii !== -1 ? ii : null;
  10629. } else {
  10630. ii = indexOf.call(this._minWeekdaysParse, llc);
  10631. if (ii !== -1) {
  10632. return ii;
  10633. }
  10634. ii = indexOf.call(this._weekdaysParse, llc);
  10635. if (ii !== -1) {
  10636. return ii;
  10637. }
  10638. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10639. return ii !== -1 ? ii : null;
  10640. }
  10641. }
  10642. }
  10643. function localeWeekdaysParse(weekdayName, format, strict) {
  10644. var i, mom, regex;
  10645. if (this._weekdaysParseExact) {
  10646. return handleStrictParse$1.call(this, weekdayName, format, strict);
  10647. }
  10648. if (!this._weekdaysParse) {
  10649. this._weekdaysParse = [];
  10650. this._minWeekdaysParse = [];
  10651. this._shortWeekdaysParse = [];
  10652. this._fullWeekdaysParse = [];
  10653. }
  10654. for (i = 0; i < 7; i++) {
  10655. // make the regex if we don't have it already
  10656. mom = createUTC([2000, 1]).day(i);
  10657. if (strict && !this._fullWeekdaysParse[i]) {
  10658. this._fullWeekdaysParse[i] = new RegExp(
  10659. '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
  10660. 'i');
  10661. this._shortWeekdaysParse[i] = new RegExp(
  10662. '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
  10663. 'i');
  10664. this._minWeekdaysParse[i] = new RegExp(
  10665. '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
  10666. 'i');
  10667. }
  10668. if (!this._weekdaysParse[i]) {
  10669. regex =
  10670. '^' +
  10671. this.weekdays(mom, '') +
  10672. '|^' +
  10673. this.weekdaysShort(mom, '') +
  10674. '|^' +
  10675. this.weekdaysMin(mom, '');
  10676. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  10677. }
  10678. // test the regex
  10679. if (
  10680. strict &&
  10681. format === 'dddd' &&
  10682. this._fullWeekdaysParse[i].test(weekdayName))
  10683. {
  10684. return i;
  10685. } else if (
  10686. strict &&
  10687. format === 'ddd' &&
  10688. this._shortWeekdaysParse[i].test(weekdayName))
  10689. {
  10690. return i;
  10691. } else if (
  10692. strict &&
  10693. format === 'dd' &&
  10694. this._minWeekdaysParse[i].test(weekdayName))
  10695. {
  10696. return i;
  10697. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  10698. return i;
  10699. }
  10700. }
  10701. }
  10702. // MOMENTS
  10703. function getSetDayOfWeek(input) {
  10704. if (!this.isValid()) {
  10705. return input != null ? this : NaN;
  10706. }
  10707. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  10708. if (input != null) {
  10709. input = parseWeekday(input, this.localeData());
  10710. return this.add(input - day, 'd');
  10711. } else {
  10712. return day;
  10713. }
  10714. }
  10715. function getSetLocaleDayOfWeek(input) {
  10716. if (!this.isValid()) {
  10717. return input != null ? this : NaN;
  10718. }
  10719. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  10720. return input == null ? weekday : this.add(input - weekday, 'd');
  10721. }
  10722. function getSetISODayOfWeek(input) {
  10723. if (!this.isValid()) {
  10724. return input != null ? this : NaN;
  10725. }
  10726. // behaves the same as moment#day except
  10727. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  10728. // as a setter, sunday should belong to the previous week.
  10729. if (input != null) {
  10730. var weekday = parseIsoWeekday(input, this.localeData());
  10731. return this.day(this.day() % 7 ? weekday : weekday - 7);
  10732. } else {
  10733. return this.day() || 7;
  10734. }
  10735. }
  10736. function weekdaysRegex(isStrict) {
  10737. if (this._weekdaysParseExact) {
  10738. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10739. computeWeekdaysParse.call(this);
  10740. }
  10741. if (isStrict) {
  10742. return this._weekdaysStrictRegex;
  10743. } else {
  10744. return this._weekdaysRegex;
  10745. }
  10746. } else {
  10747. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10748. this._weekdaysRegex = defaultWeekdaysRegex;
  10749. }
  10750. return this._weekdaysStrictRegex && isStrict ?
  10751. this._weekdaysStrictRegex :
  10752. this._weekdaysRegex;
  10753. }
  10754. }
  10755. function weekdaysShortRegex(isStrict) {
  10756. if (this._weekdaysParseExact) {
  10757. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10758. computeWeekdaysParse.call(this);
  10759. }
  10760. if (isStrict) {
  10761. return this._weekdaysShortStrictRegex;
  10762. } else {
  10763. return this._weekdaysShortRegex;
  10764. }
  10765. } else {
  10766. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  10767. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  10768. }
  10769. return this._weekdaysShortStrictRegex && isStrict ?
  10770. this._weekdaysShortStrictRegex :
  10771. this._weekdaysShortRegex;
  10772. }
  10773. }
  10774. function weekdaysMinRegex(isStrict) {
  10775. if (this._weekdaysParseExact) {
  10776. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10777. computeWeekdaysParse.call(this);
  10778. }
  10779. if (isStrict) {
  10780. return this._weekdaysMinStrictRegex;
  10781. } else {
  10782. return this._weekdaysMinRegex;
  10783. }
  10784. } else {
  10785. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  10786. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  10787. }
  10788. return this._weekdaysMinStrictRegex && isStrict ?
  10789. this._weekdaysMinStrictRegex :
  10790. this._weekdaysMinRegex;
  10791. }
  10792. }
  10793. function computeWeekdaysParse() {
  10794. function cmpLenRev(a, b) {
  10795. return b.length - a.length;
  10796. }
  10797. var minPieces = [],
  10798. shortPieces = [],
  10799. longPieces = [],
  10800. mixedPieces = [],
  10801. i,
  10802. mom,
  10803. minp,
  10804. shortp,
  10805. longp;
  10806. for (i = 0; i < 7; i++) {
  10807. // make the regex if we don't have it already
  10808. mom = createUTC([2000, 1]).day(i);
  10809. minp = regexEscape(this.weekdaysMin(mom, ''));
  10810. shortp = regexEscape(this.weekdaysShort(mom, ''));
  10811. longp = regexEscape(this.weekdays(mom, ''));
  10812. minPieces.push(minp);
  10813. shortPieces.push(shortp);
  10814. longPieces.push(longp);
  10815. mixedPieces.push(minp);
  10816. mixedPieces.push(shortp);
  10817. mixedPieces.push(longp);
  10818. }
  10819. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  10820. // will match the longer piece.
  10821. minPieces.sort(cmpLenRev);
  10822. shortPieces.sort(cmpLenRev);
  10823. longPieces.sort(cmpLenRev);
  10824. mixedPieces.sort(cmpLenRev);
  10825. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  10826. this._weekdaysShortRegex = this._weekdaysRegex;
  10827. this._weekdaysMinRegex = this._weekdaysRegex;
  10828. this._weekdaysStrictRegex = new RegExp(
  10829. '^(' + longPieces.join('|') + ')',
  10830. 'i');
  10831. this._weekdaysShortStrictRegex = new RegExp(
  10832. '^(' + shortPieces.join('|') + ')',
  10833. 'i');
  10834. this._weekdaysMinStrictRegex = new RegExp(
  10835. '^(' + minPieces.join('|') + ')',
  10836. 'i');
  10837. }
  10838. // FORMATTING
  10839. function hFormat() {
  10840. return this.hours() % 12 || 12;
  10841. }
  10842. function kFormat() {
  10843. return this.hours() || 24;
  10844. }
  10845. addFormatToken('H', ['HH', 2], 0, 'hour');
  10846. addFormatToken('h', ['hh', 2], 0, hFormat);
  10847. addFormatToken('k', ['kk', 2], 0, kFormat);
  10848. addFormatToken('hmm', 0, 0, function () {
  10849. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  10850. });
  10851. addFormatToken('hmmss', 0, 0, function () {
  10852. return (
  10853. '' +
  10854. hFormat.apply(this) +
  10855. zeroFill(this.minutes(), 2) +
  10856. zeroFill(this.seconds(), 2));
  10857. });
  10858. addFormatToken('Hmm', 0, 0, function () {
  10859. return '' + this.hours() + zeroFill(this.minutes(), 2);
  10860. });
  10861. addFormatToken('Hmmss', 0, 0, function () {
  10862. return (
  10863. '' +
  10864. this.hours() +
  10865. zeroFill(this.minutes(), 2) +
  10866. zeroFill(this.seconds(), 2));
  10867. });
  10868. function meridiem(token, lowercase) {
  10869. addFormatToken(token, 0, 0, function () {
  10870. return this.localeData().meridiem(
  10871. this.hours(),
  10872. this.minutes(),
  10873. lowercase);
  10874. });
  10875. }
  10876. meridiem('a', true);
  10877. meridiem('A', false);
  10878. // ALIASES
  10879. addUnitAlias('hour', 'h');
  10880. // PRIORITY
  10881. addUnitPriority('hour', 13);
  10882. // PARSING
  10883. function matchMeridiem(isStrict, locale) {
  10884. return locale._meridiemParse;
  10885. }
  10886. addRegexToken('a', matchMeridiem);
  10887. addRegexToken('A', matchMeridiem);
  10888. addRegexToken('H', match1to2);
  10889. addRegexToken('h', match1to2);
  10890. addRegexToken('k', match1to2);
  10891. addRegexToken('HH', match1to2, match2);
  10892. addRegexToken('hh', match1to2, match2);
  10893. addRegexToken('kk', match1to2, match2);
  10894. addRegexToken('hmm', match3to4);
  10895. addRegexToken('hmmss', match5to6);
  10896. addRegexToken('Hmm', match3to4);
  10897. addRegexToken('Hmmss', match5to6);
  10898. addParseToken(['H', 'HH'], HOUR);
  10899. addParseToken(['k', 'kk'], function (input, array, config) {
  10900. var kInput = toInt(input);
  10901. array[HOUR] = kInput === 24 ? 0 : kInput;
  10902. });
  10903. addParseToken(['a', 'A'], function (input, array, config) {
  10904. config._isPm = config._locale.isPM(input);
  10905. config._meridiem = input;
  10906. });
  10907. addParseToken(['h', 'hh'], function (input, array, config) {
  10908. array[HOUR] = toInt(input);
  10909. getParsingFlags(config).bigHour = true;
  10910. });
  10911. addParseToken('hmm', function (input, array, config) {
  10912. var pos = input.length - 2;
  10913. array[HOUR] = toInt(input.substr(0, pos));
  10914. array[MINUTE] = toInt(input.substr(pos));
  10915. getParsingFlags(config).bigHour = true;
  10916. });
  10917. addParseToken('hmmss', function (input, array, config) {
  10918. var pos1 = input.length - 4,
  10919. pos2 = input.length - 2;
  10920. array[HOUR] = toInt(input.substr(0, pos1));
  10921. array[MINUTE] = toInt(input.substr(pos1, 2));
  10922. array[SECOND] = toInt(input.substr(pos2));
  10923. getParsingFlags(config).bigHour = true;
  10924. });
  10925. addParseToken('Hmm', function (input, array, config) {
  10926. var pos = input.length - 2;
  10927. array[HOUR] = toInt(input.substr(0, pos));
  10928. array[MINUTE] = toInt(input.substr(pos));
  10929. });
  10930. addParseToken('Hmmss', function (input, array, config) {
  10931. var pos1 = input.length - 4,
  10932. pos2 = input.length - 2;
  10933. array[HOUR] = toInt(input.substr(0, pos1));
  10934. array[MINUTE] = toInt(input.substr(pos1, 2));
  10935. array[SECOND] = toInt(input.substr(pos2));
  10936. });
  10937. // LOCALES
  10938. function localeIsPM(input) {
  10939. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  10940. // Using charAt should be more compatible.
  10941. return (input + '').toLowerCase().charAt(0) === 'p';
  10942. }
  10943. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  10944. // Setting the hour should keep the time, because the user explicitly
  10945. // specified which hour they want. So trying to maintain the same hour (in
  10946. // a new timezone) makes sense. Adding/subtracting hours does not follow
  10947. // this rule.
  10948. getSetHour = makeGetSet('Hours', true);
  10949. function localeMeridiem(hours, minutes, isLower) {
  10950. if (hours > 11) {
  10951. return isLower ? 'pm' : 'PM';
  10952. } else {
  10953. return isLower ? 'am' : 'AM';
  10954. }
  10955. }
  10956. var baseConfig = {
  10957. calendar: defaultCalendar,
  10958. longDateFormat: defaultLongDateFormat,
  10959. invalidDate: defaultInvalidDate,
  10960. ordinal: defaultOrdinal,
  10961. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  10962. relativeTime: defaultRelativeTime,
  10963. months: defaultLocaleMonths,
  10964. monthsShort: defaultLocaleMonthsShort,
  10965. week: defaultLocaleWeek,
  10966. weekdays: defaultLocaleWeekdays,
  10967. weekdaysMin: defaultLocaleWeekdaysMin,
  10968. weekdaysShort: defaultLocaleWeekdaysShort,
  10969. meridiemParse: defaultLocaleMeridiemParse };
  10970. // internal storage for locale config files
  10971. var locales = {},
  10972. localeFamilies = {},
  10973. globalLocale;
  10974. function commonPrefix(arr1, arr2) {
  10975. var i,
  10976. minl = Math.min(arr1.length, arr2.length);
  10977. for (i = 0; i < minl; i += 1) {
  10978. if (arr1[i] !== arr2[i]) {
  10979. return i;
  10980. }
  10981. }
  10982. return minl;
  10983. }
  10984. function normalizeLocale(key) {
  10985. return key ? key.toLowerCase().replace('_', '-') : key;
  10986. }
  10987. // pick the locale from the array
  10988. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  10989. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  10990. function chooseLocale(names) {
  10991. var i = 0,
  10992. j,
  10993. next,
  10994. locale,
  10995. split;
  10996. while (i < names.length) {
  10997. split = normalizeLocale(names[i]).split('-');
  10998. j = split.length;
  10999. next = normalizeLocale(names[i + 1]);
  11000. next = next ? next.split('-') : null;
  11001. while (j > 0) {
  11002. locale = loadLocale(split.slice(0, j).join('-'));
  11003. if (locale) {
  11004. return locale;
  11005. }
  11006. if (
  11007. next &&
  11008. next.length >= j &&
  11009. commonPrefix(split, next) >= j - 1)
  11010. {
  11011. //the next array item is better than a shallower substring of this one
  11012. break;
  11013. }
  11014. j--;
  11015. }
  11016. i++;
  11017. }
  11018. return globalLocale;
  11019. }
  11020. function isLocaleNameSane(name) {
  11021. // Prevent names that look like filesystem paths, i.e contain '/' or '\'
  11022. return name.match('^[^/\\\\]*$') != null;
  11023. }
  11024. function loadLocale(name) {
  11025. var oldLocale = null,
  11026. aliasedRequire;
  11027. // TODO: Find a better way to register and load all the locales in Node
  11028. if (
  11029. locales[name] === undefined &&
  11030. typeof module !== 'undefined' &&
  11031. module &&
  11032. module.exports &&
  11033. isLocaleNameSane(name))
  11034. {
  11035. try {
  11036. oldLocale = globalLocale._abbr;
  11037. aliasedRequire = require;
  11038. __webpack_require__(15)("./" + name);
  11039. getSetGlobalLocale(oldLocale);
  11040. } catch (e) {
  11041. // mark as not found to avoid repeating expensive file require call causing high CPU
  11042. // when trying to find en-US, en_US, en-us for every format call
  11043. locales[name] = null; // null means not found
  11044. }
  11045. }
  11046. return locales[name];
  11047. }
  11048. // This function will load locale and then set the global locale. If
  11049. // no arguments are passed in, it will simply return the current global
  11050. // locale key.
  11051. function getSetGlobalLocale(key, values) {
  11052. var data;
  11053. if (key) {
  11054. if (isUndefined(values)) {
  11055. data = getLocale(key);
  11056. } else {
  11057. data = defineLocale(key, values);
  11058. }
  11059. if (data) {
  11060. // moment.duration._locale = moment._locale = data;
  11061. globalLocale = data;
  11062. } else {
  11063. if (typeof console !== 'undefined' && console.warn) {
  11064. //warn user if arguments are passed but the locale could not be set
  11065. console.warn(
  11066. 'Locale ' + key + ' not found. Did you forget to load it?');
  11067. }
  11068. }
  11069. }
  11070. return globalLocale._abbr;
  11071. }
  11072. function defineLocale(name, config) {
  11073. if (config !== null) {
  11074. var locale,
  11075. parentConfig = baseConfig;
  11076. config.abbr = name;
  11077. if (locales[name] != null) {
  11078. deprecateSimple(
  11079. 'defineLocaleOverride',
  11080. 'use moment.updateLocale(localeName, config) to change ' +
  11081. 'an existing locale. moment.defineLocale(localeName, ' +
  11082. 'config) should only be used for creating a new locale ' +
  11083. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  11084. parentConfig = locales[name]._config;
  11085. } else if (config.parentLocale != null) {
  11086. if (locales[config.parentLocale] != null) {
  11087. parentConfig = locales[config.parentLocale]._config;
  11088. } else {
  11089. locale = loadLocale(config.parentLocale);
  11090. if (locale != null) {
  11091. parentConfig = locale._config;
  11092. } else {
  11093. if (!localeFamilies[config.parentLocale]) {
  11094. localeFamilies[config.parentLocale] = [];
  11095. }
  11096. localeFamilies[config.parentLocale].push({
  11097. name: name,
  11098. config: config });
  11099. return null;
  11100. }
  11101. }
  11102. }
  11103. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  11104. if (localeFamilies[name]) {
  11105. localeFamilies[name].forEach(function (x) {
  11106. defineLocale(x.name, x.config);
  11107. });
  11108. }
  11109. // backwards compat for now: also set the locale
  11110. // make sure we set the locale AFTER all child locales have been
  11111. // created, so we won't end up with the child locale set.
  11112. getSetGlobalLocale(name);
  11113. return locales[name];
  11114. } else {
  11115. // useful for testing
  11116. delete locales[name];
  11117. return null;
  11118. }
  11119. }
  11120. function updateLocale(name, config) {
  11121. if (config != null) {
  11122. var locale,
  11123. tmpLocale,
  11124. parentConfig = baseConfig;
  11125. if (locales[name] != null && locales[name].parentLocale != null) {
  11126. // Update existing child locale in-place to avoid memory-leaks
  11127. locales[name].set(mergeConfigs(locales[name]._config, config));
  11128. } else {
  11129. // MERGE
  11130. tmpLocale = loadLocale(name);
  11131. if (tmpLocale != null) {
  11132. parentConfig = tmpLocale._config;
  11133. }
  11134. config = mergeConfigs(parentConfig, config);
  11135. if (tmpLocale == null) {
  11136. // updateLocale is called for creating a new locale
  11137. // Set abbr so it will have a name (getters return
  11138. // undefined otherwise).
  11139. config.abbr = name;
  11140. }
  11141. locale = new Locale(config);
  11142. locale.parentLocale = locales[name];
  11143. locales[name] = locale;
  11144. }
  11145. // backwards compat for now: also set the locale
  11146. getSetGlobalLocale(name);
  11147. } else {
  11148. // pass null for config to unupdate, useful for tests
  11149. if (locales[name] != null) {
  11150. if (locales[name].parentLocale != null) {
  11151. locales[name] = locales[name].parentLocale;
  11152. if (name === getSetGlobalLocale()) {
  11153. getSetGlobalLocale(name);
  11154. }
  11155. } else if (locales[name] != null) {
  11156. delete locales[name];
  11157. }
  11158. }
  11159. }
  11160. return locales[name];
  11161. }
  11162. // returns locale data
  11163. function getLocale(key) {
  11164. var locale;
  11165. if (key && key._locale && key._locale._abbr) {
  11166. key = key._locale._abbr;
  11167. }
  11168. if (!key) {
  11169. return globalLocale;
  11170. }
  11171. if (!isArray(key)) {
  11172. //short-circuit everything else
  11173. locale = loadLocale(key);
  11174. if (locale) {
  11175. return locale;
  11176. }
  11177. key = [key];
  11178. }
  11179. return chooseLocale(key);
  11180. }
  11181. function listLocales() {
  11182. return keys(locales);
  11183. }
  11184. function checkOverflow(m) {
  11185. var overflow,
  11186. a = m._a;
  11187. if (a && getParsingFlags(m).overflow === -2) {
  11188. overflow =
  11189. a[MONTH] < 0 || a[MONTH] > 11 ?
  11190. MONTH :
  11191. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ?
  11192. DATE :
  11193. a[HOUR] < 0 ||
  11194. a[HOUR] > 24 ||
  11195. a[HOUR] === 24 && (
  11196. a[MINUTE] !== 0 ||
  11197. a[SECOND] !== 0 ||
  11198. a[MILLISECOND] !== 0) ?
  11199. HOUR :
  11200. a[MINUTE] < 0 || a[MINUTE] > 59 ?
  11201. MINUTE :
  11202. a[SECOND] < 0 || a[SECOND] > 59 ?
  11203. SECOND :
  11204. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ?
  11205. MILLISECOND :
  11206. -1;
  11207. if (
  11208. getParsingFlags(m)._overflowDayOfYear && (
  11209. overflow < YEAR || overflow > DATE))
  11210. {
  11211. overflow = DATE;
  11212. }
  11213. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  11214. overflow = WEEK;
  11215. }
  11216. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  11217. overflow = WEEKDAY;
  11218. }
  11219. getParsingFlags(m).overflow = overflow;
  11220. }
  11221. return m;
  11222. }
  11223. // iso 8601 regex
  11224. // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
  11225. var extendedIsoRegex =
  11226. /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  11227. basicIsoRegex =
  11228. /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  11229. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  11230. isoDates = [
  11231. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  11232. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  11233. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  11234. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  11235. ['YYYY-DDD', /\d{4}-\d{3}/],
  11236. ['YYYY-MM', /\d{4}-\d\d/, false],
  11237. ['YYYYYYMMDD', /[+-]\d{10}/],
  11238. ['YYYYMMDD', /\d{8}/],
  11239. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  11240. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  11241. ['YYYYDDD', /\d{7}/],
  11242. ['YYYYMM', /\d{6}/, false],
  11243. ['YYYY', /\d{4}/, false]],
  11244. // iso time formats and regexes
  11245. isoTimes = [
  11246. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  11247. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  11248. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  11249. ['HH:mm', /\d\d:\d\d/],
  11250. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  11251. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  11252. ['HHmmss', /\d\d\d\d\d\d/],
  11253. ['HHmm', /\d\d\d\d/],
  11254. ['HH', /\d\d/]],
  11255. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  11256. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  11257. rfc2822 =
  11258. /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
  11259. obsOffsets = {
  11260. UT: 0,
  11261. GMT: 0,
  11262. EDT: -4 * 60,
  11263. EST: -5 * 60,
  11264. CDT: -5 * 60,
  11265. CST: -6 * 60,
  11266. MDT: -6 * 60,
  11267. MST: -7 * 60,
  11268. PDT: -7 * 60,
  11269. PST: -8 * 60 };
  11270. // date from iso format
  11271. function configFromISO(config) {
  11272. var i,
  11273. l,
  11274. string = config._i,
  11275. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  11276. allowTime,
  11277. dateFormat,
  11278. timeFormat,
  11279. tzFormat,
  11280. isoDatesLen = isoDates.length,
  11281. isoTimesLen = isoTimes.length;
  11282. if (match) {
  11283. getParsingFlags(config).iso = true;
  11284. for (i = 0, l = isoDatesLen; i < l; i++) {
  11285. if (isoDates[i][1].exec(match[1])) {
  11286. dateFormat = isoDates[i][0];
  11287. allowTime = isoDates[i][2] !== false;
  11288. break;
  11289. }
  11290. }
  11291. if (dateFormat == null) {
  11292. config._isValid = false;
  11293. return;
  11294. }
  11295. if (match[3]) {
  11296. for (i = 0, l = isoTimesLen; i < l; i++) {
  11297. if (isoTimes[i][1].exec(match[3])) {
  11298. // match[2] should be 'T' or space
  11299. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  11300. break;
  11301. }
  11302. }
  11303. if (timeFormat == null) {
  11304. config._isValid = false;
  11305. return;
  11306. }
  11307. }
  11308. if (!allowTime && timeFormat != null) {
  11309. config._isValid = false;
  11310. return;
  11311. }
  11312. if (match[4]) {
  11313. if (tzRegex.exec(match[4])) {
  11314. tzFormat = 'Z';
  11315. } else {
  11316. config._isValid = false;
  11317. return;
  11318. }
  11319. }
  11320. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  11321. configFromStringAndFormat(config);
  11322. } else {
  11323. config._isValid = false;
  11324. }
  11325. }
  11326. function extractFromRFC2822Strings(
  11327. yearStr,
  11328. monthStr,
  11329. dayStr,
  11330. hourStr,
  11331. minuteStr,
  11332. secondStr)
  11333. {
  11334. var result = [
  11335. untruncateYear(yearStr),
  11336. defaultLocaleMonthsShort.indexOf(monthStr),
  11337. parseInt(dayStr, 10),
  11338. parseInt(hourStr, 10),
  11339. parseInt(minuteStr, 10)];
  11340. if (secondStr) {
  11341. result.push(parseInt(secondStr, 10));
  11342. }
  11343. return result;
  11344. }
  11345. function untruncateYear(yearStr) {
  11346. var year = parseInt(yearStr, 10);
  11347. if (year <= 49) {
  11348. return 2000 + year;
  11349. } else if (year <= 999) {
  11350. return 1900 + year;
  11351. }
  11352. return year;
  11353. }
  11354. function preprocessRFC2822(s) {
  11355. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  11356. return s.
  11357. replace(/\([^()]*\)|[\n\t]/g, ' ').
  11358. replace(/(\s\s+)/g, ' ').
  11359. replace(/^\s\s*/, '').
  11360. replace(/\s\s*$/, '');
  11361. }
  11362. function checkWeekday(weekdayStr, parsedInput, config) {
  11363. if (weekdayStr) {
  11364. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  11365. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  11366. weekdayActual = new Date(
  11367. parsedInput[0],
  11368. parsedInput[1],
  11369. parsedInput[2]).
  11370. getDay();
  11371. if (weekdayProvided !== weekdayActual) {
  11372. getParsingFlags(config).weekdayMismatch = true;
  11373. config._isValid = false;
  11374. return false;
  11375. }
  11376. }
  11377. return true;
  11378. }
  11379. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  11380. if (obsOffset) {
  11381. return obsOffsets[obsOffset];
  11382. } else if (militaryOffset) {
  11383. // the only allowed military tz is Z
  11384. return 0;
  11385. } else {
  11386. var hm = parseInt(numOffset, 10),
  11387. m = hm % 100,
  11388. h = (hm - m) / 100;
  11389. return h * 60 + m;
  11390. }
  11391. }
  11392. // date and time from ref 2822 format
  11393. function configFromRFC2822(config) {
  11394. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  11395. parsedArray;
  11396. if (match) {
  11397. parsedArray = extractFromRFC2822Strings(
  11398. match[4],
  11399. match[3],
  11400. match[2],
  11401. match[5],
  11402. match[6],
  11403. match[7]);
  11404. if (!checkWeekday(match[1], parsedArray, config)) {
  11405. return;
  11406. }
  11407. config._a = parsedArray;
  11408. config._tzm = calculateOffset(match[8], match[9], match[10]);
  11409. config._d = createUTCDate.apply(null, config._a);
  11410. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  11411. getParsingFlags(config).rfc2822 = true;
  11412. } else {
  11413. config._isValid = false;
  11414. }
  11415. }
  11416. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  11417. function configFromString(config) {
  11418. var matched = aspNetJsonRegex.exec(config._i);
  11419. if (matched !== null) {
  11420. config._d = new Date(+matched[1]);
  11421. return;
  11422. }
  11423. configFromISO(config);
  11424. if (config._isValid === false) {
  11425. delete config._isValid;
  11426. } else {
  11427. return;
  11428. }
  11429. configFromRFC2822(config);
  11430. if (config._isValid === false) {
  11431. delete config._isValid;
  11432. } else {
  11433. return;
  11434. }
  11435. if (config._strict) {
  11436. config._isValid = false;
  11437. } else {
  11438. // Final attempt, use Input Fallback
  11439. hooks.createFromInputFallback(config);
  11440. }
  11441. }
  11442. hooks.createFromInputFallback = deprecate(
  11443. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  11444. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  11445. 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  11446. function (config) {
  11447. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  11448. });
  11449. // Pick the first defined of two or three arguments.
  11450. function defaults(a, b, c) {
  11451. if (a != null) {
  11452. return a;
  11453. }
  11454. if (b != null) {
  11455. return b;
  11456. }
  11457. return c;
  11458. }
  11459. function currentDateArray(config) {
  11460. // hooks is actually the exported moment object
  11461. var nowValue = new Date(hooks.now());
  11462. if (config._useUTC) {
  11463. return [
  11464. nowValue.getUTCFullYear(),
  11465. nowValue.getUTCMonth(),
  11466. nowValue.getUTCDate()];
  11467. }
  11468. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  11469. }
  11470. // convert an array to a date.
  11471. // the array should mirror the parameters below
  11472. // note: all values past the year are optional and will default to the lowest possible value.
  11473. // [year, month, day , hour, minute, second, millisecond]
  11474. function configFromArray(config) {
  11475. var i,
  11476. date,
  11477. input = [],
  11478. currentDate,
  11479. expectedWeekday,
  11480. yearToUse;
  11481. if (config._d) {
  11482. return;
  11483. }
  11484. currentDate = currentDateArray(config);
  11485. //compute day of the year from weeks and weekdays
  11486. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  11487. dayOfYearFromWeekInfo(config);
  11488. }
  11489. //if the day of the year is set, figure out what it is
  11490. if (config._dayOfYear != null) {
  11491. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  11492. if (
  11493. config._dayOfYear > daysInYear(yearToUse) ||
  11494. config._dayOfYear === 0)
  11495. {
  11496. getParsingFlags(config)._overflowDayOfYear = true;
  11497. }
  11498. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  11499. config._a[MONTH] = date.getUTCMonth();
  11500. config._a[DATE] = date.getUTCDate();
  11501. }
  11502. // Default to current date.
  11503. // * if no year, month, day of month are given, default to today
  11504. // * if day of month is given, default month and year
  11505. // * if month is given, default only year
  11506. // * if year is given, don't default anything
  11507. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  11508. config._a[i] = input[i] = currentDate[i];
  11509. }
  11510. // Zero out whatever was not defaulted, including time
  11511. for (; i < 7; i++) {
  11512. config._a[i] = input[i] =
  11513. config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
  11514. }
  11515. // Check for 24:00:00.000
  11516. if (
  11517. config._a[HOUR] === 24 &&
  11518. config._a[MINUTE] === 0 &&
  11519. config._a[SECOND] === 0 &&
  11520. config._a[MILLISECOND] === 0)
  11521. {
  11522. config._nextDay = true;
  11523. config._a[HOUR] = 0;
  11524. }
  11525. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  11526. null,
  11527. input);
  11528. expectedWeekday = config._useUTC ?
  11529. config._d.getUTCDay() :
  11530. config._d.getDay();
  11531. // Apply timezone offset from input. The actual utcOffset can be changed
  11532. // with parseZone.
  11533. if (config._tzm != null) {
  11534. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  11535. }
  11536. if (config._nextDay) {
  11537. config._a[HOUR] = 24;
  11538. }
  11539. // check for mismatching day of week
  11540. if (
  11541. config._w &&
  11542. typeof config._w.d !== 'undefined' &&
  11543. config._w.d !== expectedWeekday)
  11544. {
  11545. getParsingFlags(config).weekdayMismatch = true;
  11546. }
  11547. }
  11548. function dayOfYearFromWeekInfo(config) {
  11549. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  11550. w = config._w;
  11551. if (w.GG != null || w.W != null || w.E != null) {
  11552. dow = 1;
  11553. doy = 4;
  11554. // TODO: We need to take the current isoWeekYear, but that depends on
  11555. // how we interpret now (local, utc, fixed offset). So create
  11556. // a now version of current config (take local/utc/offset flags, and
  11557. // create now).
  11558. weekYear = defaults(
  11559. w.GG,
  11560. config._a[YEAR],
  11561. weekOfYear(createLocal(), 1, 4).year);
  11562. week = defaults(w.W, 1);
  11563. weekday = defaults(w.E, 1);
  11564. if (weekday < 1 || weekday > 7) {
  11565. weekdayOverflow = true;
  11566. }
  11567. } else {
  11568. dow = config._locale._week.dow;
  11569. doy = config._locale._week.doy;
  11570. curWeek = weekOfYear(createLocal(), dow, doy);
  11571. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  11572. // Default to current week.
  11573. week = defaults(w.w, curWeek.week);
  11574. if (w.d != null) {
  11575. // weekday -- low day numbers are considered next week
  11576. weekday = w.d;
  11577. if (weekday < 0 || weekday > 6) {
  11578. weekdayOverflow = true;
  11579. }
  11580. } else if (w.e != null) {
  11581. // local weekday -- counting starts from beginning of week
  11582. weekday = w.e + dow;
  11583. if (w.e < 0 || w.e > 6) {
  11584. weekdayOverflow = true;
  11585. }
  11586. } else {
  11587. // default to beginning of week
  11588. weekday = dow;
  11589. }
  11590. }
  11591. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  11592. getParsingFlags(config)._overflowWeeks = true;
  11593. } else if (weekdayOverflow != null) {
  11594. getParsingFlags(config)._overflowWeekday = true;
  11595. } else {
  11596. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  11597. config._a[YEAR] = temp.year;
  11598. config._dayOfYear = temp.dayOfYear;
  11599. }
  11600. }
  11601. // constant that refers to the ISO standard
  11602. hooks.ISO_8601 = function () {};
  11603. // constant that refers to the RFC 2822 form
  11604. hooks.RFC_2822 = function () {};
  11605. // date from string and format string
  11606. function configFromStringAndFormat(config) {
  11607. // TODO: Move this to another part of the creation flow to prevent circular deps
  11608. if (config._f === hooks.ISO_8601) {
  11609. configFromISO(config);
  11610. return;
  11611. }
  11612. if (config._f === hooks.RFC_2822) {
  11613. configFromRFC2822(config);
  11614. return;
  11615. }
  11616. config._a = [];
  11617. getParsingFlags(config).empty = true;
  11618. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  11619. var string = '' + config._i,
  11620. i,
  11621. parsedInput,
  11622. tokens,
  11623. token,
  11624. skipped,
  11625. stringLength = string.length,
  11626. totalParsedInputLength = 0,
  11627. era,
  11628. tokenLen;
  11629. tokens =
  11630. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  11631. tokenLen = tokens.length;
  11632. for (i = 0; i < tokenLen; i++) {
  11633. token = tokens[i];
  11634. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  11635. [])[0];
  11636. if (parsedInput) {
  11637. skipped = string.substr(0, string.indexOf(parsedInput));
  11638. if (skipped.length > 0) {
  11639. getParsingFlags(config).unusedInput.push(skipped);
  11640. }
  11641. string = string.slice(
  11642. string.indexOf(parsedInput) + parsedInput.length);
  11643. totalParsedInputLength += parsedInput.length;
  11644. }
  11645. // don't parse if it's not a known token
  11646. if (formatTokenFunctions[token]) {
  11647. if (parsedInput) {
  11648. getParsingFlags(config).empty = false;
  11649. } else {
  11650. getParsingFlags(config).unusedTokens.push(token);
  11651. }
  11652. addTimeToArrayFromToken(token, parsedInput, config);
  11653. } else if (config._strict && !parsedInput) {
  11654. getParsingFlags(config).unusedTokens.push(token);
  11655. }
  11656. }
  11657. // add remaining unparsed input length to the string
  11658. getParsingFlags(config).charsLeftOver =
  11659. stringLength - totalParsedInputLength;
  11660. if (string.length > 0) {
  11661. getParsingFlags(config).unusedInput.push(string);
  11662. }
  11663. // clear _12h flag if hour is <= 12
  11664. if (
  11665. config._a[HOUR] <= 12 &&
  11666. getParsingFlags(config).bigHour === true &&
  11667. config._a[HOUR] > 0)
  11668. {
  11669. getParsingFlags(config).bigHour = undefined;
  11670. }
  11671. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  11672. getParsingFlags(config).meridiem = config._meridiem;
  11673. // handle meridiem
  11674. config._a[HOUR] = meridiemFixWrap(
  11675. config._locale,
  11676. config._a[HOUR],
  11677. config._meridiem);
  11678. // handle era
  11679. era = getParsingFlags(config).era;
  11680. if (era !== null) {
  11681. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  11682. }
  11683. configFromArray(config);
  11684. checkOverflow(config);
  11685. }
  11686. function meridiemFixWrap(locale, hour, meridiem) {
  11687. var isPm;
  11688. if (meridiem == null) {
  11689. // nothing to do
  11690. return hour;
  11691. }
  11692. if (locale.meridiemHour != null) {
  11693. return locale.meridiemHour(hour, meridiem);
  11694. } else if (locale.isPM != null) {
  11695. // Fallback
  11696. isPm = locale.isPM(meridiem);
  11697. if (isPm && hour < 12) {
  11698. hour += 12;
  11699. }
  11700. if (!isPm && hour === 12) {
  11701. hour = 0;
  11702. }
  11703. return hour;
  11704. } else {
  11705. // this is not supposed to happen
  11706. return hour;
  11707. }
  11708. }
  11709. // date from string and array of format strings
  11710. function configFromStringAndArray(config) {
  11711. var tempConfig,
  11712. bestMoment,
  11713. scoreToBeat,
  11714. i,
  11715. currentScore,
  11716. validFormatFound,
  11717. bestFormatIsValid = false,
  11718. configfLen = config._f.length;
  11719. if (configfLen === 0) {
  11720. getParsingFlags(config).invalidFormat = true;
  11721. config._d = new Date(NaN);
  11722. return;
  11723. }
  11724. for (i = 0; i < configfLen; i++) {
  11725. currentScore = 0;
  11726. validFormatFound = false;
  11727. tempConfig = copyConfig({}, config);
  11728. if (config._useUTC != null) {
  11729. tempConfig._useUTC = config._useUTC;
  11730. }
  11731. tempConfig._f = config._f[i];
  11732. configFromStringAndFormat(tempConfig);
  11733. if (isValid(tempConfig)) {
  11734. validFormatFound = true;
  11735. }
  11736. // if there is any input that was not parsed add a penalty for that format
  11737. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  11738. //or tokens
  11739. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  11740. getParsingFlags(tempConfig).score = currentScore;
  11741. if (!bestFormatIsValid) {
  11742. if (
  11743. scoreToBeat == null ||
  11744. currentScore < scoreToBeat ||
  11745. validFormatFound)
  11746. {
  11747. scoreToBeat = currentScore;
  11748. bestMoment = tempConfig;
  11749. if (validFormatFound) {
  11750. bestFormatIsValid = true;
  11751. }
  11752. }
  11753. } else {
  11754. if (currentScore < scoreToBeat) {
  11755. scoreToBeat = currentScore;
  11756. bestMoment = tempConfig;
  11757. }
  11758. }
  11759. }
  11760. extend(config, bestMoment || tempConfig);
  11761. }
  11762. function configFromObject(config) {
  11763. if (config._d) {
  11764. return;
  11765. }
  11766. var i = normalizeObjectUnits(config._i),
  11767. dayOrDate = i.day === undefined ? i.date : i.day;
  11768. config._a = map(
  11769. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  11770. function (obj) {
  11771. return obj && parseInt(obj, 10);
  11772. });
  11773. configFromArray(config);
  11774. }
  11775. function createFromConfig(config) {
  11776. var res = new Moment(checkOverflow(prepareConfig(config)));
  11777. if (res._nextDay) {
  11778. // Adding is smart enough around DST
  11779. res.add(1, 'd');
  11780. res._nextDay = undefined;
  11781. }
  11782. return res;
  11783. }
  11784. function prepareConfig(config) {
  11785. var input = config._i,
  11786. format = config._f;
  11787. config._locale = config._locale || getLocale(config._l);
  11788. if (input === null || format === undefined && input === '') {
  11789. return createInvalid({ nullInput: true });
  11790. }
  11791. if (typeof input === 'string') {
  11792. config._i = input = config._locale.preparse(input);
  11793. }
  11794. if (isMoment(input)) {
  11795. return new Moment(checkOverflow(input));
  11796. } else if (isDate(input)) {
  11797. config._d = input;
  11798. } else if (isArray(format)) {
  11799. configFromStringAndArray(config);
  11800. } else if (format) {
  11801. configFromStringAndFormat(config);
  11802. } else {
  11803. configFromInput(config);
  11804. }
  11805. if (!isValid(config)) {
  11806. config._d = null;
  11807. }
  11808. return config;
  11809. }
  11810. function configFromInput(config) {
  11811. var input = config._i;
  11812. if (isUndefined(input)) {
  11813. config._d = new Date(hooks.now());
  11814. } else if (isDate(input)) {
  11815. config._d = new Date(input.valueOf());
  11816. } else if (typeof input === 'string') {
  11817. configFromString(config);
  11818. } else if (isArray(input)) {
  11819. config._a = map(input.slice(0), function (obj) {
  11820. return parseInt(obj, 10);
  11821. });
  11822. configFromArray(config);
  11823. } else if (isObject(input)) {
  11824. configFromObject(config);
  11825. } else if (isNumber(input)) {
  11826. // from milliseconds
  11827. config._d = new Date(input);
  11828. } else {
  11829. hooks.createFromInputFallback(config);
  11830. }
  11831. }
  11832. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  11833. var c = {};
  11834. if (format === true || format === false) {
  11835. strict = format;
  11836. format = undefined;
  11837. }
  11838. if (locale === true || locale === false) {
  11839. strict = locale;
  11840. locale = undefined;
  11841. }
  11842. if (
  11843. isObject(input) && isObjectEmpty(input) ||
  11844. isArray(input) && input.length === 0)
  11845. {
  11846. input = undefined;
  11847. }
  11848. // object construction must be done this way.
  11849. // https://github.com/moment/moment/issues/1423
  11850. c._isAMomentObject = true;
  11851. c._useUTC = c._isUTC = isUTC;
  11852. c._l = locale;
  11853. c._i = input;
  11854. c._f = format;
  11855. c._strict = strict;
  11856. return createFromConfig(c);
  11857. }
  11858. function createLocal(input, format, locale, strict) {
  11859. return createLocalOrUTC(input, format, locale, strict, false);
  11860. }
  11861. var prototypeMin = deprecate(
  11862. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  11863. function () {
  11864. var other = createLocal.apply(null, arguments);
  11865. if (this.isValid() && other.isValid()) {
  11866. return other < this ? this : other;
  11867. } else {
  11868. return createInvalid();
  11869. }
  11870. }),
  11871. prototypeMax = deprecate(
  11872. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  11873. function () {
  11874. var other = createLocal.apply(null, arguments);
  11875. if (this.isValid() && other.isValid()) {
  11876. return other > this ? this : other;
  11877. } else {
  11878. return createInvalid();
  11879. }
  11880. });
  11881. // Pick a moment m from moments so that m[fn](other) is true for all
  11882. // other. This relies on the function fn to be transitive.
  11883. //
  11884. // moments should either be an array of moment objects or an array, whose
  11885. // first element is an array of moment objects.
  11886. function pickBy(fn, moments) {
  11887. var res, i;
  11888. if (moments.length === 1 && isArray(moments[0])) {
  11889. moments = moments[0];
  11890. }
  11891. if (!moments.length) {
  11892. return createLocal();
  11893. }
  11894. res = moments[0];
  11895. for (i = 1; i < moments.length; ++i) {
  11896. if (!moments[i].isValid() || moments[i][fn](res)) {
  11897. res = moments[i];
  11898. }
  11899. }
  11900. return res;
  11901. }
  11902. // TODO: Use [].sort instead?
  11903. function min() {
  11904. var args = [].slice.call(arguments, 0);
  11905. return pickBy('isBefore', args);
  11906. }
  11907. function max() {
  11908. var args = [].slice.call(arguments, 0);
  11909. return pickBy('isAfter', args);
  11910. }
  11911. var now = function now() {
  11912. return Date.now ? Date.now() : +new Date();
  11913. };
  11914. var ordering = [
  11915. 'year',
  11916. 'quarter',
  11917. 'month',
  11918. 'week',
  11919. 'day',
  11920. 'hour',
  11921. 'minute',
  11922. 'second',
  11923. 'millisecond'];
  11924. function isDurationValid(m) {
  11925. var key,
  11926. unitHasDecimal = false,
  11927. i,
  11928. orderLen = ordering.length;
  11929. for (key in m) {
  11930. if (
  11931. hasOwnProp(m, key) &&
  11932. !(
  11933. indexOf.call(ordering, key) !== -1 && (
  11934. m[key] == null || !isNaN(m[key]))))
  11935. {
  11936. return false;
  11937. }
  11938. }
  11939. for (i = 0; i < orderLen; ++i) {
  11940. if (m[ordering[i]]) {
  11941. if (unitHasDecimal) {
  11942. return false; // only allow non-integers for smallest unit
  11943. }
  11944. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  11945. unitHasDecimal = true;
  11946. }
  11947. }
  11948. }
  11949. return true;
  11950. }
  11951. function isValid$1() {
  11952. return this._isValid;
  11953. }
  11954. function createInvalid$1() {
  11955. return createDuration(NaN);
  11956. }
  11957. function Duration(duration) {
  11958. var normalizedInput = normalizeObjectUnits(duration),
  11959. years = normalizedInput.year || 0,
  11960. quarters = normalizedInput.quarter || 0,
  11961. months = normalizedInput.month || 0,
  11962. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  11963. days = normalizedInput.day || 0,
  11964. hours = normalizedInput.hour || 0,
  11965. minutes = normalizedInput.minute || 0,
  11966. seconds = normalizedInput.second || 0,
  11967. milliseconds = normalizedInput.millisecond || 0;
  11968. this._isValid = isDurationValid(normalizedInput);
  11969. // representation for dateAddRemove
  11970. this._milliseconds =
  11971. +milliseconds +
  11972. seconds * 1e3 + // 1000
  11973. minutes * 6e4 + // 1000 * 60
  11974. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  11975. // Because of dateAddRemove treats 24 hours as different from a
  11976. // day when working around DST, we need to store them separately
  11977. this._days = +days + weeks * 7;
  11978. // It is impossible to translate months into days without knowing
  11979. // which months you are are talking about, so we have to store
  11980. // it separately.
  11981. this._months = +months + quarters * 3 + years * 12;
  11982. this._data = {};
  11983. this._locale = getLocale();
  11984. this._bubble();
  11985. }
  11986. function isDuration(obj) {
  11987. return obj instanceof Duration;
  11988. }
  11989. function absRound(number) {
  11990. if (number < 0) {
  11991. return Math.round(-1 * number) * -1;
  11992. } else {
  11993. return Math.round(number);
  11994. }
  11995. }
  11996. // compare two arrays, return the number of differences
  11997. function compareArrays(array1, array2, dontConvert) {
  11998. var len = Math.min(array1.length, array2.length),
  11999. lengthDiff = Math.abs(array1.length - array2.length),
  12000. diffs = 0,
  12001. i;
  12002. for (i = 0; i < len; i++) {
  12003. if (
  12004. dontConvert && array1[i] !== array2[i] ||
  12005. !dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  12006. {
  12007. diffs++;
  12008. }
  12009. }
  12010. return diffs + lengthDiff;
  12011. }
  12012. // FORMATTING
  12013. function offset(token, separator) {
  12014. addFormatToken(token, 0, 0, function () {
  12015. var offset = this.utcOffset(),
  12016. sign = '+';
  12017. if (offset < 0) {
  12018. offset = -offset;
  12019. sign = '-';
  12020. }
  12021. return (
  12022. sign +
  12023. zeroFill(~~(offset / 60), 2) +
  12024. separator +
  12025. zeroFill(~~offset % 60, 2));
  12026. });
  12027. }
  12028. offset('Z', ':');
  12029. offset('ZZ', '');
  12030. // PARSING
  12031. addRegexToken('Z', matchShortOffset);
  12032. addRegexToken('ZZ', matchShortOffset);
  12033. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  12034. config._useUTC = true;
  12035. config._tzm = offsetFromString(matchShortOffset, input);
  12036. });
  12037. // HELPERS
  12038. // timezone chunker
  12039. // '+10:00' > ['10', '00']
  12040. // '-1530' > ['-15', '30']
  12041. var chunkOffset = /([\+\-]|\d\d)/gi;
  12042. function offsetFromString(matcher, string) {
  12043. var matches = (string || '').match(matcher),
  12044. chunk,
  12045. parts,
  12046. minutes;
  12047. if (matches === null) {
  12048. return null;
  12049. }
  12050. chunk = matches[matches.length - 1] || [];
  12051. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  12052. minutes = +(parts[1] * 60) + toInt(parts[2]);
  12053. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  12054. }
  12055. // Return a moment from input, that is local/utc/zone equivalent to model.
  12056. function cloneWithOffset(input, model) {
  12057. var res, diff;
  12058. if (model._isUTC) {
  12059. res = model.clone();
  12060. diff =
  12061. (isMoment(input) || isDate(input) ?
  12062. input.valueOf() :
  12063. createLocal(input).valueOf()) - res.valueOf();
  12064. // Use low-level api, because this fn is low-level api.
  12065. res._d.setTime(res._d.valueOf() + diff);
  12066. hooks.updateOffset(res, false);
  12067. return res;
  12068. } else {
  12069. return createLocal(input).local();
  12070. }
  12071. }
  12072. function getDateOffset(m) {
  12073. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  12074. // https://github.com/moment/moment/pull/1871
  12075. return -Math.round(m._d.getTimezoneOffset());
  12076. }
  12077. // HOOKS
  12078. // This function will be called whenever a moment is mutated.
  12079. // It is intended to keep the offset in sync with the timezone.
  12080. hooks.updateOffset = function () {};
  12081. // MOMENTS
  12082. // keepLocalTime = true means only change the timezone, without
  12083. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  12084. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  12085. // +0200, so we adjust the time as needed, to be valid.
  12086. //
  12087. // Keeping the time actually adds/subtracts (one hour)
  12088. // from the actual represented time. That is why we call updateOffset
  12089. // a second time. In case it wants us to change the offset again
  12090. // _changeInProgress == true case, then we have to adjust, because
  12091. // there is no such time in the given timezone.
  12092. function getSetOffset(input, keepLocalTime, keepMinutes) {
  12093. var offset = this._offset || 0,
  12094. localAdjust;
  12095. if (!this.isValid()) {
  12096. return input != null ? this : NaN;
  12097. }
  12098. if (input != null) {
  12099. if (typeof input === 'string') {
  12100. input = offsetFromString(matchShortOffset, input);
  12101. if (input === null) {
  12102. return this;
  12103. }
  12104. } else if (Math.abs(input) < 16 && !keepMinutes) {
  12105. input = input * 60;
  12106. }
  12107. if (!this._isUTC && keepLocalTime) {
  12108. localAdjust = getDateOffset(this);
  12109. }
  12110. this._offset = input;
  12111. this._isUTC = true;
  12112. if (localAdjust != null) {
  12113. this.add(localAdjust, 'm');
  12114. }
  12115. if (offset !== input) {
  12116. if (!keepLocalTime || this._changeInProgress) {
  12117. addSubtract(
  12118. this,
  12119. createDuration(input - offset, 'm'),
  12120. 1,
  12121. false);
  12122. } else if (!this._changeInProgress) {
  12123. this._changeInProgress = true;
  12124. hooks.updateOffset(this, true);
  12125. this._changeInProgress = null;
  12126. }
  12127. }
  12128. return this;
  12129. } else {
  12130. return this._isUTC ? offset : getDateOffset(this);
  12131. }
  12132. }
  12133. function getSetZone(input, keepLocalTime) {
  12134. if (input != null) {
  12135. if (typeof input !== 'string') {
  12136. input = -input;
  12137. }
  12138. this.utcOffset(input, keepLocalTime);
  12139. return this;
  12140. } else {
  12141. return -this.utcOffset();
  12142. }
  12143. }
  12144. function setOffsetToUTC(keepLocalTime) {
  12145. return this.utcOffset(0, keepLocalTime);
  12146. }
  12147. function setOffsetToLocal(keepLocalTime) {
  12148. if (this._isUTC) {
  12149. this.utcOffset(0, keepLocalTime);
  12150. this._isUTC = false;
  12151. if (keepLocalTime) {
  12152. this.subtract(getDateOffset(this), 'm');
  12153. }
  12154. }
  12155. return this;
  12156. }
  12157. function setOffsetToParsedOffset() {
  12158. if (this._tzm != null) {
  12159. this.utcOffset(this._tzm, false, true);
  12160. } else if (typeof this._i === 'string') {
  12161. var tZone = offsetFromString(matchOffset, this._i);
  12162. if (tZone != null) {
  12163. this.utcOffset(tZone);
  12164. } else {
  12165. this.utcOffset(0, true);
  12166. }
  12167. }
  12168. return this;
  12169. }
  12170. function hasAlignedHourOffset(input) {
  12171. if (!this.isValid()) {
  12172. return false;
  12173. }
  12174. input = input ? createLocal(input).utcOffset() : 0;
  12175. return (this.utcOffset() - input) % 60 === 0;
  12176. }
  12177. function isDaylightSavingTime() {
  12178. return (
  12179. this.utcOffset() > this.clone().month(0).utcOffset() ||
  12180. this.utcOffset() > this.clone().month(5).utcOffset());
  12181. }
  12182. function isDaylightSavingTimeShifted() {
  12183. if (!isUndefined(this._isDSTShifted)) {
  12184. return this._isDSTShifted;
  12185. }
  12186. var c = {},
  12187. other;
  12188. copyConfig(c, this);
  12189. c = prepareConfig(c);
  12190. if (c._a) {
  12191. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  12192. this._isDSTShifted =
  12193. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  12194. } else {
  12195. this._isDSTShifted = false;
  12196. }
  12197. return this._isDSTShifted;
  12198. }
  12199. function isLocal() {
  12200. return this.isValid() ? !this._isUTC : false;
  12201. }
  12202. function isUtcOffset() {
  12203. return this.isValid() ? this._isUTC : false;
  12204. }
  12205. function isUtc() {
  12206. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  12207. }
  12208. // ASP.NET json date format regex
  12209. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  12210. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  12211. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  12212. // and further modified to allow for strings containing both week and day
  12213. isoRegex =
  12214. /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  12215. function createDuration(input, key) {
  12216. var duration = input,
  12217. // matching against regexp is expensive, do it on demand
  12218. match = null,
  12219. sign,
  12220. ret,
  12221. diffRes;
  12222. if (isDuration(input)) {
  12223. duration = {
  12224. ms: input._milliseconds,
  12225. d: input._days,
  12226. M: input._months };
  12227. } else if (isNumber(input) || !isNaN(+input)) {
  12228. duration = {};
  12229. if (key) {
  12230. duration[key] = +input;
  12231. } else {
  12232. duration.milliseconds = +input;
  12233. }
  12234. } else if (match = aspNetRegex.exec(input)) {
  12235. sign = match[1] === '-' ? -1 : 1;
  12236. duration = {
  12237. y: 0,
  12238. d: toInt(match[DATE]) * sign,
  12239. h: toInt(match[HOUR]) * sign,
  12240. m: toInt(match[MINUTE]) * sign,
  12241. s: toInt(match[SECOND]) * sign,
  12242. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  12243. };
  12244. } else if (match = isoRegex.exec(input)) {
  12245. sign = match[1] === '-' ? -1 : 1;
  12246. duration = {
  12247. y: parseIso(match[2], sign),
  12248. M: parseIso(match[3], sign),
  12249. w: parseIso(match[4], sign),
  12250. d: parseIso(match[5], sign),
  12251. h: parseIso(match[6], sign),
  12252. m: parseIso(match[7], sign),
  12253. s: parseIso(match[8], sign) };
  12254. } else if (duration == null) {
  12255. // checks for null or undefined
  12256. duration = {};
  12257. } else if (
  12258. typeof duration === 'object' && (
  12259. 'from' in duration || 'to' in duration))
  12260. {
  12261. diffRes = momentsDifference(
  12262. createLocal(duration.from),
  12263. createLocal(duration.to));
  12264. duration = {};
  12265. duration.ms = diffRes.milliseconds;
  12266. duration.M = diffRes.months;
  12267. }
  12268. ret = new Duration(duration);
  12269. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  12270. ret._locale = input._locale;
  12271. }
  12272. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  12273. ret._isValid = input._isValid;
  12274. }
  12275. return ret;
  12276. }
  12277. createDuration.fn = Duration.prototype;
  12278. createDuration.invalid = createInvalid$1;
  12279. function parseIso(inp, sign) {
  12280. // We'd normally use ~~inp for this, but unfortunately it also
  12281. // converts floats to ints.
  12282. // inp may be undefined, so careful calling replace on it.
  12283. var res = inp && parseFloat(inp.replace(',', '.'));
  12284. // apply sign while we're at it
  12285. return (isNaN(res) ? 0 : res) * sign;
  12286. }
  12287. function positiveMomentsDifference(base, other) {
  12288. var res = {};
  12289. res.months =
  12290. other.month() - base.month() + (other.year() - base.year()) * 12;
  12291. if (base.clone().add(res.months, 'M').isAfter(other)) {
  12292. --res.months;
  12293. }
  12294. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  12295. return res;
  12296. }
  12297. function momentsDifference(base, other) {
  12298. var res;
  12299. if (!(base.isValid() && other.isValid())) {
  12300. return { milliseconds: 0, months: 0 };
  12301. }
  12302. other = cloneWithOffset(other, base);
  12303. if (base.isBefore(other)) {
  12304. res = positiveMomentsDifference(base, other);
  12305. } else {
  12306. res = positiveMomentsDifference(other, base);
  12307. res.milliseconds = -res.milliseconds;
  12308. res.months = -res.months;
  12309. }
  12310. return res;
  12311. }
  12312. // TODO: remove 'name' arg after deprecation is removed
  12313. function createAdder(direction, name) {
  12314. return function (val, period) {
  12315. var dur, tmp;
  12316. //invert the arguments, but complain about it
  12317. if (period !== null && !isNaN(+period)) {
  12318. deprecateSimple(
  12319. name,
  12320. 'moment().' +
  12321. name +
  12322. '(period, number) is deprecated. Please use moment().' +
  12323. name +
  12324. '(number, period). ' +
  12325. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  12326. tmp = val;
  12327. val = period;
  12328. period = tmp;
  12329. }
  12330. dur = createDuration(val, period);
  12331. addSubtract(this, dur, direction);
  12332. return this;
  12333. };
  12334. }
  12335. function addSubtract(mom, duration, isAdding, updateOffset) {
  12336. var milliseconds = duration._milliseconds,
  12337. days = absRound(duration._days),
  12338. months = absRound(duration._months);
  12339. if (!mom.isValid()) {
  12340. // No op
  12341. return;
  12342. }
  12343. updateOffset = updateOffset == null ? true : updateOffset;
  12344. if (months) {
  12345. setMonth(mom, get(mom, 'Month') + months * isAdding);
  12346. }
  12347. if (days) {
  12348. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  12349. }
  12350. if (milliseconds) {
  12351. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  12352. }
  12353. if (updateOffset) {
  12354. hooks.updateOffset(mom, days || months);
  12355. }
  12356. }
  12357. var add = createAdder(1, 'add'),
  12358. subtract = createAdder(-1, 'subtract');
  12359. function isString(input) {
  12360. return typeof input === 'string' || input instanceof String;
  12361. }
  12362. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  12363. function isMomentInput(input) {
  12364. return (
  12365. isMoment(input) ||
  12366. isDate(input) ||
  12367. isString(input) ||
  12368. isNumber(input) ||
  12369. isNumberOrStringArray(input) ||
  12370. isMomentInputObject(input) ||
  12371. input === null ||
  12372. input === undefined);
  12373. }
  12374. function isMomentInputObject(input) {
  12375. var objectTest = isObject(input) && !isObjectEmpty(input),
  12376. propertyTest = false,
  12377. properties = [
  12378. 'years',
  12379. 'year',
  12380. 'y',
  12381. 'months',
  12382. 'month',
  12383. 'M',
  12384. 'days',
  12385. 'day',
  12386. 'd',
  12387. 'dates',
  12388. 'date',
  12389. 'D',
  12390. 'hours',
  12391. 'hour',
  12392. 'h',
  12393. 'minutes',
  12394. 'minute',
  12395. 'm',
  12396. 'seconds',
  12397. 'second',
  12398. 's',
  12399. 'milliseconds',
  12400. 'millisecond',
  12401. 'ms'],
  12402. i,
  12403. property,
  12404. propertyLen = properties.length;
  12405. for (i = 0; i < propertyLen; i += 1) {
  12406. property = properties[i];
  12407. propertyTest = propertyTest || hasOwnProp(input, property);
  12408. }
  12409. return objectTest && propertyTest;
  12410. }
  12411. function isNumberOrStringArray(input) {
  12412. var arrayTest = isArray(input),
  12413. dataTypeTest = false;
  12414. if (arrayTest) {
  12415. dataTypeTest =
  12416. input.filter(function (item) {
  12417. return !isNumber(item) && isString(input);
  12418. }).length === 0;
  12419. }
  12420. return arrayTest && dataTypeTest;
  12421. }
  12422. function isCalendarSpec(input) {
  12423. var objectTest = isObject(input) && !isObjectEmpty(input),
  12424. propertyTest = false,
  12425. properties = [
  12426. 'sameDay',
  12427. 'nextDay',
  12428. 'lastDay',
  12429. 'nextWeek',
  12430. 'lastWeek',
  12431. 'sameElse'],
  12432. i,
  12433. property;
  12434. for (i = 0; i < properties.length; i += 1) {
  12435. property = properties[i];
  12436. propertyTest = propertyTest || hasOwnProp(input, property);
  12437. }
  12438. return objectTest && propertyTest;
  12439. }
  12440. function getCalendarFormat(myMoment, now) {
  12441. var diff = myMoment.diff(now, 'days', true);
  12442. return diff < -6 ?
  12443. 'sameElse' :
  12444. diff < -1 ?
  12445. 'lastWeek' :
  12446. diff < 0 ?
  12447. 'lastDay' :
  12448. diff < 1 ?
  12449. 'sameDay' :
  12450. diff < 2 ?
  12451. 'nextDay' :
  12452. diff < 7 ?
  12453. 'nextWeek' :
  12454. 'sameElse';
  12455. }
  12456. function calendar$1(time, formats) {
  12457. // Support for single parameter, formats only overload to the calendar function
  12458. if (arguments.length === 1) {
  12459. if (!arguments[0]) {
  12460. time = undefined;
  12461. formats = undefined;
  12462. } else if (isMomentInput(arguments[0])) {
  12463. time = arguments[0];
  12464. formats = undefined;
  12465. } else if (isCalendarSpec(arguments[0])) {
  12466. formats = arguments[0];
  12467. time = undefined;
  12468. }
  12469. }
  12470. // We want to compare the start of today, vs this.
  12471. // Getting start-of-today depends on whether we're local/utc/offset or not.
  12472. var now = time || createLocal(),
  12473. sod = cloneWithOffset(now, this).startOf('day'),
  12474. format = hooks.calendarFormat(this, sod) || 'sameElse',
  12475. output =
  12476. formats && (
  12477. isFunction(formats[format]) ?
  12478. formats[format].call(this, now) :
  12479. formats[format]);
  12480. return this.format(
  12481. output || this.localeData().calendar(format, this, createLocal(now)));
  12482. }
  12483. function clone() {
  12484. return new Moment(this);
  12485. }
  12486. function isAfter(input, units) {
  12487. var localInput = isMoment(input) ? input : createLocal(input);
  12488. if (!(this.isValid() && localInput.isValid())) {
  12489. return false;
  12490. }
  12491. units = normalizeUnits(units) || 'millisecond';
  12492. if (units === 'millisecond') {
  12493. return this.valueOf() > localInput.valueOf();
  12494. } else {
  12495. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  12496. }
  12497. }
  12498. function isBefore(input, units) {
  12499. var localInput = isMoment(input) ? input : createLocal(input);
  12500. if (!(this.isValid() && localInput.isValid())) {
  12501. return false;
  12502. }
  12503. units = normalizeUnits(units) || 'millisecond';
  12504. if (units === 'millisecond') {
  12505. return this.valueOf() < localInput.valueOf();
  12506. } else {
  12507. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  12508. }
  12509. }
  12510. function isBetween(from, to, units, inclusivity) {
  12511. var localFrom = isMoment(from) ? from : createLocal(from),
  12512. localTo = isMoment(to) ? to : createLocal(to);
  12513. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  12514. return false;
  12515. }
  12516. inclusivity = inclusivity || '()';
  12517. return (
  12518. (inclusivity[0] === '(' ?
  12519. this.isAfter(localFrom, units) :
  12520. !this.isBefore(localFrom, units)) && (
  12521. inclusivity[1] === ')' ?
  12522. this.isBefore(localTo, units) :
  12523. !this.isAfter(localTo, units)));
  12524. }
  12525. function isSame(input, units) {
  12526. var localInput = isMoment(input) ? input : createLocal(input),
  12527. inputMs;
  12528. if (!(this.isValid() && localInput.isValid())) {
  12529. return false;
  12530. }
  12531. units = normalizeUnits(units) || 'millisecond';
  12532. if (units === 'millisecond') {
  12533. return this.valueOf() === localInput.valueOf();
  12534. } else {
  12535. inputMs = localInput.valueOf();
  12536. return (
  12537. this.clone().startOf(units).valueOf() <= inputMs &&
  12538. inputMs <= this.clone().endOf(units).valueOf());
  12539. }
  12540. }
  12541. function isSameOrAfter(input, units) {
  12542. return this.isSame(input, units) || this.isAfter(input, units);
  12543. }
  12544. function isSameOrBefore(input, units) {
  12545. return this.isSame(input, units) || this.isBefore(input, units);
  12546. }
  12547. function diff(input, units, asFloat) {
  12548. var that, zoneDelta, output;
  12549. if (!this.isValid()) {
  12550. return NaN;
  12551. }
  12552. that = cloneWithOffset(input, this);
  12553. if (!that.isValid()) {
  12554. return NaN;
  12555. }
  12556. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  12557. units = normalizeUnits(units);
  12558. switch (units) {
  12559. case 'year':
  12560. output = monthDiff(this, that) / 12;
  12561. break;
  12562. case 'month':
  12563. output = monthDiff(this, that);
  12564. break;
  12565. case 'quarter':
  12566. output = monthDiff(this, that) / 3;
  12567. break;
  12568. case 'second':
  12569. output = (this - that) / 1e3;
  12570. break; // 1000
  12571. case 'minute':
  12572. output = (this - that) / 6e4;
  12573. break; // 1000 * 60
  12574. case 'hour':
  12575. output = (this - that) / 36e5;
  12576. break; // 1000 * 60 * 60
  12577. case 'day':
  12578. output = (this - that - zoneDelta) / 864e5;
  12579. break; // 1000 * 60 * 60 * 24, negate dst
  12580. case 'week':
  12581. output = (this - that - zoneDelta) / 6048e5;
  12582. break; // 1000 * 60 * 60 * 24 * 7, negate dst
  12583. default:
  12584. output = this - that;}
  12585. return asFloat ? output : absFloor(output);
  12586. }
  12587. function monthDiff(a, b) {
  12588. if (a.date() < b.date()) {
  12589. // end-of-month calculations work correct when the start month has more
  12590. // days than the end month.
  12591. return -monthDiff(b, a);
  12592. }
  12593. // difference in months
  12594. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  12595. // b is in (anchor - 1 month, anchor + 1 month)
  12596. anchor = a.clone().add(wholeMonthDiff, 'months'),
  12597. anchor2,
  12598. adjust;
  12599. if (b - anchor < 0) {
  12600. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  12601. // linear across the month
  12602. adjust = (b - anchor) / (anchor - anchor2);
  12603. } else {
  12604. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  12605. // linear across the month
  12606. adjust = (b - anchor) / (anchor2 - anchor);
  12607. }
  12608. //check for negative zero, return zero if negative zero
  12609. return -(wholeMonthDiff + adjust) || 0;
  12610. }
  12611. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  12612. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  12613. function toString() {
  12614. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  12615. }
  12616. function toISOString(keepOffset) {
  12617. if (!this.isValid()) {
  12618. return null;
  12619. }
  12620. var utc = keepOffset !== true,
  12621. m = utc ? this.clone().utc() : this;
  12622. if (m.year() < 0 || m.year() > 9999) {
  12623. return formatMoment(
  12624. m,
  12625. utc ?
  12626. 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' :
  12627. 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
  12628. }
  12629. if (isFunction(Date.prototype.toISOString)) {
  12630. // native implementation is ~50x faster, use it when we can
  12631. if (utc) {
  12632. return this.toDate().toISOString();
  12633. } else {
  12634. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).
  12635. toISOString().
  12636. replace('Z', formatMoment(m, 'Z'));
  12637. }
  12638. }
  12639. return formatMoment(
  12640. m,
  12641. utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
  12642. }
  12643. /**
  12644. * Return a human readable representation of a moment that can
  12645. * also be evaluated to get a new moment which is the same
  12646. *
  12647. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  12648. */
  12649. function inspect() {
  12650. if (!this.isValid()) {
  12651. return 'moment.invalid(/* ' + this._i + ' */)';
  12652. }
  12653. var func = 'moment',
  12654. zone = '',
  12655. prefix,
  12656. year,
  12657. datetime,
  12658. suffix;
  12659. if (!this.isLocal()) {
  12660. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  12661. zone = 'Z';
  12662. }
  12663. prefix = '[' + func + '("]';
  12664. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  12665. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  12666. suffix = zone + '[")]';
  12667. return this.format(prefix + year + datetime + suffix);
  12668. }
  12669. function format(inputString) {
  12670. if (!inputString) {
  12671. inputString = this.isUtc() ?
  12672. hooks.defaultFormatUtc :
  12673. hooks.defaultFormat;
  12674. }
  12675. var output = formatMoment(this, inputString);
  12676. return this.localeData().postformat(output);
  12677. }
  12678. function from(time, withoutSuffix) {
  12679. if (
  12680. this.isValid() && (
  12681. isMoment(time) && time.isValid() || createLocal(time).isValid()))
  12682. {
  12683. return createDuration({ to: this, from: time }).
  12684. locale(this.locale()).
  12685. humanize(!withoutSuffix);
  12686. } else {
  12687. return this.localeData().invalidDate();
  12688. }
  12689. }
  12690. function fromNow(withoutSuffix) {
  12691. return this.from(createLocal(), withoutSuffix);
  12692. }
  12693. function to(time, withoutSuffix) {
  12694. if (
  12695. this.isValid() && (
  12696. isMoment(time) && time.isValid() || createLocal(time).isValid()))
  12697. {
  12698. return createDuration({ from: this, to: time }).
  12699. locale(this.locale()).
  12700. humanize(!withoutSuffix);
  12701. } else {
  12702. return this.localeData().invalidDate();
  12703. }
  12704. }
  12705. function toNow(withoutSuffix) {
  12706. return this.to(createLocal(), withoutSuffix);
  12707. }
  12708. // If passed a locale key, it will set the locale for this
  12709. // instance. Otherwise, it will return the locale configuration
  12710. // variables for this instance.
  12711. function locale(key) {
  12712. var newLocaleData;
  12713. if (key === undefined) {
  12714. return this._locale._abbr;
  12715. } else {
  12716. newLocaleData = getLocale(key);
  12717. if (newLocaleData != null) {
  12718. this._locale = newLocaleData;
  12719. }
  12720. return this;
  12721. }
  12722. }
  12723. var lang = deprecate(
  12724. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  12725. function (key) {
  12726. if (key === undefined) {
  12727. return this.localeData();
  12728. } else {
  12729. return this.locale(key);
  12730. }
  12731. });
  12732. function localeData() {
  12733. return this._locale;
  12734. }
  12735. var MS_PER_SECOND = 1000,
  12736. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  12737. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  12738. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  12739. // actual modulo - handles negative numbers (for dates before 1970):
  12740. function mod$1(dividend, divisor) {
  12741. return (dividend % divisor + divisor) % divisor;
  12742. }
  12743. function localStartOfDate(y, m, d) {
  12744. // the date constructor remaps years 0-99 to 1900-1999
  12745. if (y < 100 && y >= 0) {
  12746. // preserve leap years using a full 400 year cycle, then reset
  12747. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  12748. } else {
  12749. return new Date(y, m, d).valueOf();
  12750. }
  12751. }
  12752. function utcStartOfDate(y, m, d) {
  12753. // Date.UTC remaps years 0-99 to 1900-1999
  12754. if (y < 100 && y >= 0) {
  12755. // preserve leap years using a full 400 year cycle, then reset
  12756. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  12757. } else {
  12758. return Date.UTC(y, m, d);
  12759. }
  12760. }
  12761. function startOf(units) {
  12762. var time, startOfDate;
  12763. units = normalizeUnits(units);
  12764. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  12765. return this;
  12766. }
  12767. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  12768. switch (units) {
  12769. case 'year':
  12770. time = startOfDate(this.year(), 0, 1);
  12771. break;
  12772. case 'quarter':
  12773. time = startOfDate(
  12774. this.year(),
  12775. this.month() - this.month() % 3,
  12776. 1);
  12777. break;
  12778. case 'month':
  12779. time = startOfDate(this.year(), this.month(), 1);
  12780. break;
  12781. case 'week':
  12782. time = startOfDate(
  12783. this.year(),
  12784. this.month(),
  12785. this.date() - this.weekday());
  12786. break;
  12787. case 'isoWeek':
  12788. time = startOfDate(
  12789. this.year(),
  12790. this.month(),
  12791. this.date() - (this.isoWeekday() - 1));
  12792. break;
  12793. case 'day':
  12794. case 'date':
  12795. time = startOfDate(this.year(), this.month(), this.date());
  12796. break;
  12797. case 'hour':
  12798. time = this._d.valueOf();
  12799. time -= mod$1(
  12800. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  12801. MS_PER_HOUR);
  12802. break;
  12803. case 'minute':
  12804. time = this._d.valueOf();
  12805. time -= mod$1(time, MS_PER_MINUTE);
  12806. break;
  12807. case 'second':
  12808. time = this._d.valueOf();
  12809. time -= mod$1(time, MS_PER_SECOND);
  12810. break;}
  12811. this._d.setTime(time);
  12812. hooks.updateOffset(this, true);
  12813. return this;
  12814. }
  12815. function endOf(units) {
  12816. var time, startOfDate;
  12817. units = normalizeUnits(units);
  12818. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  12819. return this;
  12820. }
  12821. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  12822. switch (units) {
  12823. case 'year':
  12824. time = startOfDate(this.year() + 1, 0, 1) - 1;
  12825. break;
  12826. case 'quarter':
  12827. time =
  12828. startOfDate(
  12829. this.year(),
  12830. this.month() - this.month() % 3 + 3,
  12831. 1) -
  12832. 1;
  12833. break;
  12834. case 'month':
  12835. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  12836. break;
  12837. case 'week':
  12838. time =
  12839. startOfDate(
  12840. this.year(),
  12841. this.month(),
  12842. this.date() - this.weekday() + 7) -
  12843. 1;
  12844. break;
  12845. case 'isoWeek':
  12846. time =
  12847. startOfDate(
  12848. this.year(),
  12849. this.month(),
  12850. this.date() - (this.isoWeekday() - 1) + 7) -
  12851. 1;
  12852. break;
  12853. case 'day':
  12854. case 'date':
  12855. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  12856. break;
  12857. case 'hour':
  12858. time = this._d.valueOf();
  12859. time +=
  12860. MS_PER_HOUR -
  12861. mod$1(
  12862. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  12863. MS_PER_HOUR) -
  12864. 1;
  12865. break;
  12866. case 'minute':
  12867. time = this._d.valueOf();
  12868. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  12869. break;
  12870. case 'second':
  12871. time = this._d.valueOf();
  12872. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  12873. break;}
  12874. this._d.setTime(time);
  12875. hooks.updateOffset(this, true);
  12876. return this;
  12877. }
  12878. function valueOf() {
  12879. return this._d.valueOf() - (this._offset || 0) * 60000;
  12880. }
  12881. function unix() {
  12882. return Math.floor(this.valueOf() / 1000);
  12883. }
  12884. function toDate() {
  12885. return new Date(this.valueOf());
  12886. }
  12887. function toArray() {
  12888. var m = this;
  12889. return [
  12890. m.year(),
  12891. m.month(),
  12892. m.date(),
  12893. m.hour(),
  12894. m.minute(),
  12895. m.second(),
  12896. m.millisecond()];
  12897. }
  12898. function toObject() {
  12899. var m = this;
  12900. return {
  12901. years: m.year(),
  12902. months: m.month(),
  12903. date: m.date(),
  12904. hours: m.hours(),
  12905. minutes: m.minutes(),
  12906. seconds: m.seconds(),
  12907. milliseconds: m.milliseconds() };
  12908. }
  12909. function toJSON() {
  12910. // new Date(NaN).toJSON() === null
  12911. return this.isValid() ? this.toISOString() : null;
  12912. }
  12913. function isValid$2() {
  12914. return isValid(this);
  12915. }
  12916. function parsingFlags() {
  12917. return extend({}, getParsingFlags(this));
  12918. }
  12919. function invalidAt() {
  12920. return getParsingFlags(this).overflow;
  12921. }
  12922. function creationData() {
  12923. return {
  12924. input: this._i,
  12925. format: this._f,
  12926. locale: this._locale,
  12927. isUTC: this._isUTC,
  12928. strict: this._strict };
  12929. }
  12930. addFormatToken('N', 0, 0, 'eraAbbr');
  12931. addFormatToken('NN', 0, 0, 'eraAbbr');
  12932. addFormatToken('NNN', 0, 0, 'eraAbbr');
  12933. addFormatToken('NNNN', 0, 0, 'eraName');
  12934. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  12935. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  12936. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  12937. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  12938. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  12939. addRegexToken('N', matchEraAbbr);
  12940. addRegexToken('NN', matchEraAbbr);
  12941. addRegexToken('NNN', matchEraAbbr);
  12942. addRegexToken('NNNN', matchEraName);
  12943. addRegexToken('NNNNN', matchEraNarrow);
  12944. addParseToken(
  12945. ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
  12946. function (input, array, config, token) {
  12947. var era = config._locale.erasParse(input, token, config._strict);
  12948. if (era) {
  12949. getParsingFlags(config).era = era;
  12950. } else {
  12951. getParsingFlags(config).invalidEra = input;
  12952. }
  12953. });
  12954. addRegexToken('y', matchUnsigned);
  12955. addRegexToken('yy', matchUnsigned);
  12956. addRegexToken('yyy', matchUnsigned);
  12957. addRegexToken('yyyy', matchUnsigned);
  12958. addRegexToken('yo', matchEraYearOrdinal);
  12959. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  12960. addParseToken(['yo'], function (input, array, config, token) {
  12961. var match;
  12962. if (config._locale._eraYearOrdinalRegex) {
  12963. match = input.match(config._locale._eraYearOrdinalRegex);
  12964. }
  12965. if (config._locale.eraYearOrdinalParse) {
  12966. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  12967. } else {
  12968. array[YEAR] = parseInt(input, 10);
  12969. }
  12970. });
  12971. function localeEras(m, format) {
  12972. var i,
  12973. l,
  12974. date,
  12975. eras = this._eras || getLocale('en')._eras;
  12976. for (i = 0, l = eras.length; i < l; ++i) {
  12977. switch (typeof eras[i].since) {
  12978. case 'string':
  12979. // truncate time
  12980. date = hooks(eras[i].since).startOf('day');
  12981. eras[i].since = date.valueOf();
  12982. break;}
  12983. switch (typeof eras[i].until) {
  12984. case 'undefined':
  12985. eras[i].until = +Infinity;
  12986. break;
  12987. case 'string':
  12988. // truncate time
  12989. date = hooks(eras[i].until).startOf('day').valueOf();
  12990. eras[i].until = date.valueOf();
  12991. break;}
  12992. }
  12993. return eras;
  12994. }
  12995. function localeErasParse(eraName, format, strict) {
  12996. var i,
  12997. l,
  12998. eras = this.eras(),
  12999. name,
  13000. abbr,
  13001. narrow;
  13002. eraName = eraName.toUpperCase();
  13003. for (i = 0, l = eras.length; i < l; ++i) {
  13004. name = eras[i].name.toUpperCase();
  13005. abbr = eras[i].abbr.toUpperCase();
  13006. narrow = eras[i].narrow.toUpperCase();
  13007. if (strict) {
  13008. switch (format) {
  13009. case 'N':
  13010. case 'NN':
  13011. case 'NNN':
  13012. if (abbr === eraName) {
  13013. return eras[i];
  13014. }
  13015. break;
  13016. case 'NNNN':
  13017. if (name === eraName) {
  13018. return eras[i];
  13019. }
  13020. break;
  13021. case 'NNNNN':
  13022. if (narrow === eraName) {
  13023. return eras[i];
  13024. }
  13025. break;}
  13026. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  13027. return eras[i];
  13028. }
  13029. }
  13030. }
  13031. function localeErasConvertYear(era, year) {
  13032. var dir = era.since <= era.until ? +1 : -1;
  13033. if (year === undefined) {
  13034. return hooks(era.since).year();
  13035. } else {
  13036. return hooks(era.since).year() + (year - era.offset) * dir;
  13037. }
  13038. }
  13039. function getEraName() {
  13040. var i,
  13041. l,
  13042. val,
  13043. eras = this.localeData().eras();
  13044. for (i = 0, l = eras.length; i < l; ++i) {
  13045. // truncate time
  13046. val = this.clone().startOf('day').valueOf();
  13047. if (eras[i].since <= val && val <= eras[i].until) {
  13048. return eras[i].name;
  13049. }
  13050. if (eras[i].until <= val && val <= eras[i].since) {
  13051. return eras[i].name;
  13052. }
  13053. }
  13054. return '';
  13055. }
  13056. function getEraNarrow() {
  13057. var i,
  13058. l,
  13059. val,
  13060. eras = this.localeData().eras();
  13061. for (i = 0, l = eras.length; i < l; ++i) {
  13062. // truncate time
  13063. val = this.clone().startOf('day').valueOf();
  13064. if (eras[i].since <= val && val <= eras[i].until) {
  13065. return eras[i].narrow;
  13066. }
  13067. if (eras[i].until <= val && val <= eras[i].since) {
  13068. return eras[i].narrow;
  13069. }
  13070. }
  13071. return '';
  13072. }
  13073. function getEraAbbr() {
  13074. var i,
  13075. l,
  13076. val,
  13077. eras = this.localeData().eras();
  13078. for (i = 0, l = eras.length; i < l; ++i) {
  13079. // truncate time
  13080. val = this.clone().startOf('day').valueOf();
  13081. if (eras[i].since <= val && val <= eras[i].until) {
  13082. return eras[i].abbr;
  13083. }
  13084. if (eras[i].until <= val && val <= eras[i].since) {
  13085. return eras[i].abbr;
  13086. }
  13087. }
  13088. return '';
  13089. }
  13090. function getEraYear() {
  13091. var i,
  13092. l,
  13093. dir,
  13094. val,
  13095. eras = this.localeData().eras();
  13096. for (i = 0, l = eras.length; i < l; ++i) {
  13097. dir = eras[i].since <= eras[i].until ? +1 : -1;
  13098. // truncate time
  13099. val = this.clone().startOf('day').valueOf();
  13100. if (
  13101. eras[i].since <= val && val <= eras[i].until ||
  13102. eras[i].until <= val && val <= eras[i].since)
  13103. {
  13104. return (
  13105. (this.year() - hooks(eras[i].since).year()) * dir +
  13106. eras[i].offset);
  13107. }
  13108. }
  13109. return this.year();
  13110. }
  13111. function erasNameRegex(isStrict) {
  13112. if (!hasOwnProp(this, '_erasNameRegex')) {
  13113. computeErasParse.call(this);
  13114. }
  13115. return isStrict ? this._erasNameRegex : this._erasRegex;
  13116. }
  13117. function erasAbbrRegex(isStrict) {
  13118. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  13119. computeErasParse.call(this);
  13120. }
  13121. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  13122. }
  13123. function erasNarrowRegex(isStrict) {
  13124. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  13125. computeErasParse.call(this);
  13126. }
  13127. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  13128. }
  13129. function matchEraAbbr(isStrict, locale) {
  13130. return locale.erasAbbrRegex(isStrict);
  13131. }
  13132. function matchEraName(isStrict, locale) {
  13133. return locale.erasNameRegex(isStrict);
  13134. }
  13135. function matchEraNarrow(isStrict, locale) {
  13136. return locale.erasNarrowRegex(isStrict);
  13137. }
  13138. function matchEraYearOrdinal(isStrict, locale) {
  13139. return locale._eraYearOrdinalRegex || matchUnsigned;
  13140. }
  13141. function computeErasParse() {
  13142. var abbrPieces = [],
  13143. namePieces = [],
  13144. narrowPieces = [],
  13145. mixedPieces = [],
  13146. i,
  13147. l,
  13148. eras = this.eras();
  13149. for (i = 0, l = eras.length; i < l; ++i) {
  13150. namePieces.push(regexEscape(eras[i].name));
  13151. abbrPieces.push(regexEscape(eras[i].abbr));
  13152. narrowPieces.push(regexEscape(eras[i].narrow));
  13153. mixedPieces.push(regexEscape(eras[i].name));
  13154. mixedPieces.push(regexEscape(eras[i].abbr));
  13155. mixedPieces.push(regexEscape(eras[i].narrow));
  13156. }
  13157. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  13158. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  13159. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  13160. this._erasNarrowRegex = new RegExp(
  13161. '^(' + narrowPieces.join('|') + ')',
  13162. 'i');
  13163. }
  13164. // FORMATTING
  13165. addFormatToken(0, ['gg', 2], 0, function () {
  13166. return this.weekYear() % 100;
  13167. });
  13168. addFormatToken(0, ['GG', 2], 0, function () {
  13169. return this.isoWeekYear() % 100;
  13170. });
  13171. function addWeekYearFormatToken(token, getter) {
  13172. addFormatToken(0, [token, token.length], 0, getter);
  13173. }
  13174. addWeekYearFormatToken('gggg', 'weekYear');
  13175. addWeekYearFormatToken('ggggg', 'weekYear');
  13176. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  13177. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  13178. // ALIASES
  13179. addUnitAlias('weekYear', 'gg');
  13180. addUnitAlias('isoWeekYear', 'GG');
  13181. // PRIORITY
  13182. addUnitPriority('weekYear', 1);
  13183. addUnitPriority('isoWeekYear', 1);
  13184. // PARSING
  13185. addRegexToken('G', matchSigned);
  13186. addRegexToken('g', matchSigned);
  13187. addRegexToken('GG', match1to2, match2);
  13188. addRegexToken('gg', match1to2, match2);
  13189. addRegexToken('GGGG', match1to4, match4);
  13190. addRegexToken('gggg', match1to4, match4);
  13191. addRegexToken('GGGGG', match1to6, match6);
  13192. addRegexToken('ggggg', match1to6, match6);
  13193. addWeekParseToken(
  13194. ['gggg', 'ggggg', 'GGGG', 'GGGGG'],
  13195. function (input, week, config, token) {
  13196. week[token.substr(0, 2)] = toInt(input);
  13197. });
  13198. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  13199. week[token] = hooks.parseTwoDigitYear(input);
  13200. });
  13201. // MOMENTS
  13202. function getSetWeekYear(input) {
  13203. return getSetWeekYearHelper.call(
  13204. this,
  13205. input,
  13206. this.week(),
  13207. this.weekday(),
  13208. this.localeData()._week.dow,
  13209. this.localeData()._week.doy);
  13210. }
  13211. function getSetISOWeekYear(input) {
  13212. return getSetWeekYearHelper.call(
  13213. this,
  13214. input,
  13215. this.isoWeek(),
  13216. this.isoWeekday(),
  13217. 1,
  13218. 4);
  13219. }
  13220. function getISOWeeksInYear() {
  13221. return weeksInYear(this.year(), 1, 4);
  13222. }
  13223. function getISOWeeksInISOWeekYear() {
  13224. return weeksInYear(this.isoWeekYear(), 1, 4);
  13225. }
  13226. function getWeeksInYear() {
  13227. var weekInfo = this.localeData()._week;
  13228. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  13229. }
  13230. function getWeeksInWeekYear() {
  13231. var weekInfo = this.localeData()._week;
  13232. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  13233. }
  13234. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  13235. var weeksTarget;
  13236. if (input == null) {
  13237. return weekOfYear(this, dow, doy).year;
  13238. } else {
  13239. weeksTarget = weeksInYear(input, dow, doy);
  13240. if (week > weeksTarget) {
  13241. week = weeksTarget;
  13242. }
  13243. return setWeekAll.call(this, input, week, weekday, dow, doy);
  13244. }
  13245. }
  13246. function setWeekAll(weekYear, week, weekday, dow, doy) {
  13247. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  13248. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  13249. this.year(date.getUTCFullYear());
  13250. this.month(date.getUTCMonth());
  13251. this.date(date.getUTCDate());
  13252. return this;
  13253. }
  13254. // FORMATTING
  13255. addFormatToken('Q', 0, 'Qo', 'quarter');
  13256. // ALIASES
  13257. addUnitAlias('quarter', 'Q');
  13258. // PRIORITY
  13259. addUnitPriority('quarter', 7);
  13260. // PARSING
  13261. addRegexToken('Q', match1);
  13262. addParseToken('Q', function (input, array) {
  13263. array[MONTH] = (toInt(input) - 1) * 3;
  13264. });
  13265. // MOMENTS
  13266. function getSetQuarter(input) {
  13267. return input == null ?
  13268. Math.ceil((this.month() + 1) / 3) :
  13269. this.month((input - 1) * 3 + this.month() % 3);
  13270. }
  13271. // FORMATTING
  13272. addFormatToken('D', ['DD', 2], 'Do', 'date');
  13273. // ALIASES
  13274. addUnitAlias('date', 'D');
  13275. // PRIORITY
  13276. addUnitPriority('date', 9);
  13277. // PARSING
  13278. addRegexToken('D', match1to2);
  13279. addRegexToken('DD', match1to2, match2);
  13280. addRegexToken('Do', function (isStrict, locale) {
  13281. // TODO: Remove "ordinalParse" fallback in next major release.
  13282. return isStrict ?
  13283. locale._dayOfMonthOrdinalParse || locale._ordinalParse :
  13284. locale._dayOfMonthOrdinalParseLenient;
  13285. });
  13286. addParseToken(['D', 'DD'], DATE);
  13287. addParseToken('Do', function (input, array) {
  13288. array[DATE] = toInt(input.match(match1to2)[0]);
  13289. });
  13290. // MOMENTS
  13291. var getSetDayOfMonth = makeGetSet('Date', true);
  13292. // FORMATTING
  13293. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  13294. // ALIASES
  13295. addUnitAlias('dayOfYear', 'DDD');
  13296. // PRIORITY
  13297. addUnitPriority('dayOfYear', 4);
  13298. // PARSING
  13299. addRegexToken('DDD', match1to3);
  13300. addRegexToken('DDDD', match3);
  13301. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  13302. config._dayOfYear = toInt(input);
  13303. });
  13304. // HELPERS
  13305. // MOMENTS
  13306. function getSetDayOfYear(input) {
  13307. var dayOfYear =
  13308. Math.round(
  13309. (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) +
  13310. 1;
  13311. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  13312. }
  13313. // FORMATTING
  13314. addFormatToken('m', ['mm', 2], 0, 'minute');
  13315. // ALIASES
  13316. addUnitAlias('minute', 'm');
  13317. // PRIORITY
  13318. addUnitPriority('minute', 14);
  13319. // PARSING
  13320. addRegexToken('m', match1to2);
  13321. addRegexToken('mm', match1to2, match2);
  13322. addParseToken(['m', 'mm'], MINUTE);
  13323. // MOMENTS
  13324. var getSetMinute = makeGetSet('Minutes', false);
  13325. // FORMATTING
  13326. addFormatToken('s', ['ss', 2], 0, 'second');
  13327. // ALIASES
  13328. addUnitAlias('second', 's');
  13329. // PRIORITY
  13330. addUnitPriority('second', 15);
  13331. // PARSING
  13332. addRegexToken('s', match1to2);
  13333. addRegexToken('ss', match1to2, match2);
  13334. addParseToken(['s', 'ss'], SECOND);
  13335. // MOMENTS
  13336. var getSetSecond = makeGetSet('Seconds', false);
  13337. // FORMATTING
  13338. addFormatToken('S', 0, 0, function () {
  13339. return ~~(this.millisecond() / 100);
  13340. });
  13341. addFormatToken(0, ['SS', 2], 0, function () {
  13342. return ~~(this.millisecond() / 10);
  13343. });
  13344. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  13345. addFormatToken(0, ['SSSS', 4], 0, function () {
  13346. return this.millisecond() * 10;
  13347. });
  13348. addFormatToken(0, ['SSSSS', 5], 0, function () {
  13349. return this.millisecond() * 100;
  13350. });
  13351. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  13352. return this.millisecond() * 1000;
  13353. });
  13354. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  13355. return this.millisecond() * 10000;
  13356. });
  13357. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  13358. return this.millisecond() * 100000;
  13359. });
  13360. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  13361. return this.millisecond() * 1000000;
  13362. });
  13363. // ALIASES
  13364. addUnitAlias('millisecond', 'ms');
  13365. // PRIORITY
  13366. addUnitPriority('millisecond', 16);
  13367. // PARSING
  13368. addRegexToken('S', match1to3, match1);
  13369. addRegexToken('SS', match1to3, match2);
  13370. addRegexToken('SSS', match1to3, match3);
  13371. var token, getSetMillisecond;
  13372. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  13373. addRegexToken(token, matchUnsigned);
  13374. }
  13375. function parseMs(input, array) {
  13376. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  13377. }
  13378. for (token = 'S'; token.length <= 9; token += 'S') {
  13379. addParseToken(token, parseMs);
  13380. }
  13381. getSetMillisecond = makeGetSet('Milliseconds', false);
  13382. // FORMATTING
  13383. addFormatToken('z', 0, 0, 'zoneAbbr');
  13384. addFormatToken('zz', 0, 0, 'zoneName');
  13385. // MOMENTS
  13386. function getZoneAbbr() {
  13387. return this._isUTC ? 'UTC' : '';
  13388. }
  13389. function getZoneName() {
  13390. return this._isUTC ? 'Coordinated Universal Time' : '';
  13391. }
  13392. var proto = Moment.prototype;
  13393. proto.add = add;
  13394. proto.calendar = calendar$1;
  13395. proto.clone = clone;
  13396. proto.diff = diff;
  13397. proto.endOf = endOf;
  13398. proto.format = format;
  13399. proto.from = from;
  13400. proto.fromNow = fromNow;
  13401. proto.to = to;
  13402. proto.toNow = toNow;
  13403. proto.get = stringGet;
  13404. proto.invalidAt = invalidAt;
  13405. proto.isAfter = isAfter;
  13406. proto.isBefore = isBefore;
  13407. proto.isBetween = isBetween;
  13408. proto.isSame = isSame;
  13409. proto.isSameOrAfter = isSameOrAfter;
  13410. proto.isSameOrBefore = isSameOrBefore;
  13411. proto.isValid = isValid$2;
  13412. proto.lang = lang;
  13413. proto.locale = locale;
  13414. proto.localeData = localeData;
  13415. proto.max = prototypeMax;
  13416. proto.min = prototypeMin;
  13417. proto.parsingFlags = parsingFlags;
  13418. proto.set = stringSet;
  13419. proto.startOf = startOf;
  13420. proto.subtract = subtract;
  13421. proto.toArray = toArray;
  13422. proto.toObject = toObject;
  13423. proto.toDate = toDate;
  13424. proto.toISOString = toISOString;
  13425. proto.inspect = inspect;
  13426. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  13427. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  13428. return 'Moment<' + this.format() + '>';
  13429. };
  13430. }
  13431. proto.toJSON = toJSON;
  13432. proto.toString = toString;
  13433. proto.unix = unix;
  13434. proto.valueOf = valueOf;
  13435. proto.creationData = creationData;
  13436. proto.eraName = getEraName;
  13437. proto.eraNarrow = getEraNarrow;
  13438. proto.eraAbbr = getEraAbbr;
  13439. proto.eraYear = getEraYear;
  13440. proto.year = getSetYear;
  13441. proto.isLeapYear = getIsLeapYear;
  13442. proto.weekYear = getSetWeekYear;
  13443. proto.isoWeekYear = getSetISOWeekYear;
  13444. proto.quarter = proto.quarters = getSetQuarter;
  13445. proto.month = getSetMonth;
  13446. proto.daysInMonth = getDaysInMonth;
  13447. proto.week = proto.weeks = getSetWeek;
  13448. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  13449. proto.weeksInYear = getWeeksInYear;
  13450. proto.weeksInWeekYear = getWeeksInWeekYear;
  13451. proto.isoWeeksInYear = getISOWeeksInYear;
  13452. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  13453. proto.date = getSetDayOfMonth;
  13454. proto.day = proto.days = getSetDayOfWeek;
  13455. proto.weekday = getSetLocaleDayOfWeek;
  13456. proto.isoWeekday = getSetISODayOfWeek;
  13457. proto.dayOfYear = getSetDayOfYear;
  13458. proto.hour = proto.hours = getSetHour;
  13459. proto.minute = proto.minutes = getSetMinute;
  13460. proto.second = proto.seconds = getSetSecond;
  13461. proto.millisecond = proto.milliseconds = getSetMillisecond;
  13462. proto.utcOffset = getSetOffset;
  13463. proto.utc = setOffsetToUTC;
  13464. proto.local = setOffsetToLocal;
  13465. proto.parseZone = setOffsetToParsedOffset;
  13466. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  13467. proto.isDST = isDaylightSavingTime;
  13468. proto.isLocal = isLocal;
  13469. proto.isUtcOffset = isUtcOffset;
  13470. proto.isUtc = isUtc;
  13471. proto.isUTC = isUtc;
  13472. proto.zoneAbbr = getZoneAbbr;
  13473. proto.zoneName = getZoneName;
  13474. proto.dates = deprecate(
  13475. 'dates accessor is deprecated. Use date instead.',
  13476. getSetDayOfMonth);
  13477. proto.months = deprecate(
  13478. 'months accessor is deprecated. Use month instead',
  13479. getSetMonth);
  13480. proto.years = deprecate(
  13481. 'years accessor is deprecated. Use year instead',
  13482. getSetYear);
  13483. proto.zone = deprecate(
  13484. 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
  13485. getSetZone);
  13486. proto.isDSTShifted = deprecate(
  13487. 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
  13488. isDaylightSavingTimeShifted);
  13489. function createUnix(input) {
  13490. return createLocal(input * 1000);
  13491. }
  13492. function createInZone() {
  13493. return createLocal.apply(null, arguments).parseZone();
  13494. }
  13495. function preParsePostFormat(string) {
  13496. return string;
  13497. }
  13498. var proto$1 = Locale.prototype;
  13499. proto$1.calendar = calendar;
  13500. proto$1.longDateFormat = longDateFormat;
  13501. proto$1.invalidDate = invalidDate;
  13502. proto$1.ordinal = ordinal;
  13503. proto$1.preparse = preParsePostFormat;
  13504. proto$1.postformat = preParsePostFormat;
  13505. proto$1.relativeTime = relativeTime;
  13506. proto$1.pastFuture = pastFuture;
  13507. proto$1.set = set;
  13508. proto$1.eras = localeEras;
  13509. proto$1.erasParse = localeErasParse;
  13510. proto$1.erasConvertYear = localeErasConvertYear;
  13511. proto$1.erasAbbrRegex = erasAbbrRegex;
  13512. proto$1.erasNameRegex = erasNameRegex;
  13513. proto$1.erasNarrowRegex = erasNarrowRegex;
  13514. proto$1.months = localeMonths;
  13515. proto$1.monthsShort = localeMonthsShort;
  13516. proto$1.monthsParse = localeMonthsParse;
  13517. proto$1.monthsRegex = monthsRegex;
  13518. proto$1.monthsShortRegex = monthsShortRegex;
  13519. proto$1.week = localeWeek;
  13520. proto$1.firstDayOfYear = localeFirstDayOfYear;
  13521. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  13522. proto$1.weekdays = localeWeekdays;
  13523. proto$1.weekdaysMin = localeWeekdaysMin;
  13524. proto$1.weekdaysShort = localeWeekdaysShort;
  13525. proto$1.weekdaysParse = localeWeekdaysParse;
  13526. proto$1.weekdaysRegex = weekdaysRegex;
  13527. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  13528. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  13529. proto$1.isPM = localeIsPM;
  13530. proto$1.meridiem = localeMeridiem;
  13531. function get$1(format, index, field, setter) {
  13532. var locale = getLocale(),
  13533. utc = createUTC().set(setter, index);
  13534. return locale[field](utc, format);
  13535. }
  13536. function listMonthsImpl(format, index, field) {
  13537. if (isNumber(format)) {
  13538. index = format;
  13539. format = undefined;
  13540. }
  13541. format = format || '';
  13542. if (index != null) {
  13543. return get$1(format, index, field, 'month');
  13544. }
  13545. var i,
  13546. out = [];
  13547. for (i = 0; i < 12; i++) {
  13548. out[i] = get$1(format, i, field, 'month');
  13549. }
  13550. return out;
  13551. }
  13552. // ()
  13553. // (5)
  13554. // (fmt, 5)
  13555. // (fmt)
  13556. // (true)
  13557. // (true, 5)
  13558. // (true, fmt, 5)
  13559. // (true, fmt)
  13560. function listWeekdaysImpl(localeSorted, format, index, field) {
  13561. if (typeof localeSorted === 'boolean') {
  13562. if (isNumber(format)) {
  13563. index = format;
  13564. format = undefined;
  13565. }
  13566. format = format || '';
  13567. } else {
  13568. format = localeSorted;
  13569. index = format;
  13570. localeSorted = false;
  13571. if (isNumber(format)) {
  13572. index = format;
  13573. format = undefined;
  13574. }
  13575. format = format || '';
  13576. }
  13577. var locale = getLocale(),
  13578. shift = localeSorted ? locale._week.dow : 0,
  13579. i,
  13580. out = [];
  13581. if (index != null) {
  13582. return get$1(format, (index + shift) % 7, field, 'day');
  13583. }
  13584. for (i = 0; i < 7; i++) {
  13585. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  13586. }
  13587. return out;
  13588. }
  13589. function listMonths(format, index) {
  13590. return listMonthsImpl(format, index, 'months');
  13591. }
  13592. function listMonthsShort(format, index) {
  13593. return listMonthsImpl(format, index, 'monthsShort');
  13594. }
  13595. function listWeekdays(localeSorted, format, index) {
  13596. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  13597. }
  13598. function listWeekdaysShort(localeSorted, format, index) {
  13599. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  13600. }
  13601. function listWeekdaysMin(localeSorted, format, index) {
  13602. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  13603. }
  13604. getSetGlobalLocale('en', {
  13605. eras: [
  13606. {
  13607. since: '0001-01-01',
  13608. until: +Infinity,
  13609. offset: 1,
  13610. name: 'Anno Domini',
  13611. narrow: 'AD',
  13612. abbr: 'AD' },
  13613. {
  13614. since: '0000-12-31',
  13615. until: -Infinity,
  13616. offset: 1,
  13617. name: 'Before Christ',
  13618. narrow: 'BC',
  13619. abbr: 'BC' }],
  13620. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  13621. ordinal: function ordinal(number) {
  13622. var b = number % 10,
  13623. output =
  13624. toInt(number % 100 / 10) === 1 ?
  13625. 'th' :
  13626. b === 1 ?
  13627. 'st' :
  13628. b === 2 ?
  13629. 'nd' :
  13630. b === 3 ?
  13631. 'rd' :
  13632. 'th';
  13633. return number + output;
  13634. } });
  13635. // Side effect imports
  13636. hooks.lang = deprecate(
  13637. 'moment.lang is deprecated. Use moment.locale instead.',
  13638. getSetGlobalLocale);
  13639. hooks.langData = deprecate(
  13640. 'moment.langData is deprecated. Use moment.localeData instead.',
  13641. getLocale);
  13642. var mathAbs = Math.abs;
  13643. function abs() {
  13644. var data = this._data;
  13645. this._milliseconds = mathAbs(this._milliseconds);
  13646. this._days = mathAbs(this._days);
  13647. this._months = mathAbs(this._months);
  13648. data.milliseconds = mathAbs(data.milliseconds);
  13649. data.seconds = mathAbs(data.seconds);
  13650. data.minutes = mathAbs(data.minutes);
  13651. data.hours = mathAbs(data.hours);
  13652. data.months = mathAbs(data.months);
  13653. data.years = mathAbs(data.years);
  13654. return this;
  13655. }
  13656. function addSubtract$1(duration, input, value, direction) {
  13657. var other = createDuration(input, value);
  13658. duration._milliseconds += direction * other._milliseconds;
  13659. duration._days += direction * other._days;
  13660. duration._months += direction * other._months;
  13661. return duration._bubble();
  13662. }
  13663. // supports only 2.0-style add(1, 's') or add(duration)
  13664. function add$1(input, value) {
  13665. return addSubtract$1(this, input, value, 1);
  13666. }
  13667. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  13668. function subtract$1(input, value) {
  13669. return addSubtract$1(this, input, value, -1);
  13670. }
  13671. function absCeil(number) {
  13672. if (number < 0) {
  13673. return Math.floor(number);
  13674. } else {
  13675. return Math.ceil(number);
  13676. }
  13677. }
  13678. function bubble() {
  13679. var milliseconds = this._milliseconds,
  13680. days = this._days,
  13681. months = this._months,
  13682. data = this._data,
  13683. seconds,
  13684. minutes,
  13685. hours,
  13686. years,
  13687. monthsFromDays;
  13688. // if we have a mix of positive and negative values, bubble down first
  13689. // check: https://github.com/moment/moment/issues/2166
  13690. if (
  13691. !(
  13692. milliseconds >= 0 && days >= 0 && months >= 0 ||
  13693. milliseconds <= 0 && days <= 0 && months <= 0))
  13694. {
  13695. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  13696. days = 0;
  13697. months = 0;
  13698. }
  13699. // The following code bubbles up values, see the tests for
  13700. // examples of what that means.
  13701. data.milliseconds = milliseconds % 1000;
  13702. seconds = absFloor(milliseconds / 1000);
  13703. data.seconds = seconds % 60;
  13704. minutes = absFloor(seconds / 60);
  13705. data.minutes = minutes % 60;
  13706. hours = absFloor(minutes / 60);
  13707. data.hours = hours % 24;
  13708. days += absFloor(hours / 24);
  13709. // convert days to months
  13710. monthsFromDays = absFloor(daysToMonths(days));
  13711. months += monthsFromDays;
  13712. days -= absCeil(monthsToDays(monthsFromDays));
  13713. // 12 months -> 1 year
  13714. years = absFloor(months / 12);
  13715. months %= 12;
  13716. data.days = days;
  13717. data.months = months;
  13718. data.years = years;
  13719. return this;
  13720. }
  13721. function daysToMonths(days) {
  13722. // 400 years have 146097 days (taking into account leap year rules)
  13723. // 400 years have 12 months === 4800
  13724. return days * 4800 / 146097;
  13725. }
  13726. function monthsToDays(months) {
  13727. // the reverse of daysToMonths
  13728. return months * 146097 / 4800;
  13729. }
  13730. function as(units) {
  13731. if (!this.isValid()) {
  13732. return NaN;
  13733. }
  13734. var days,
  13735. months,
  13736. milliseconds = this._milliseconds;
  13737. units = normalizeUnits(units);
  13738. if (units === 'month' || units === 'quarter' || units === 'year') {
  13739. days = this._days + milliseconds / 864e5;
  13740. months = this._months + daysToMonths(days);
  13741. switch (units) {
  13742. case 'month':
  13743. return months;
  13744. case 'quarter':
  13745. return months / 3;
  13746. case 'year':
  13747. return months / 12;}
  13748. } else {
  13749. // handle milliseconds separately because of floating point math errors (issue #1867)
  13750. days = this._days + Math.round(monthsToDays(this._months));
  13751. switch (units) {
  13752. case 'week':
  13753. return days / 7 + milliseconds / 6048e5;
  13754. case 'day':
  13755. return days + milliseconds / 864e5;
  13756. case 'hour':
  13757. return days * 24 + milliseconds / 36e5;
  13758. case 'minute':
  13759. return days * 1440 + milliseconds / 6e4;
  13760. case 'second':
  13761. return days * 86400 + milliseconds / 1000;
  13762. // Math.floor prevents floating point math errors here
  13763. case 'millisecond':
  13764. return Math.floor(days * 864e5) + milliseconds;
  13765. default:
  13766. throw new Error('Unknown unit ' + units);}
  13767. }
  13768. }
  13769. // TODO: Use this.as('ms')?
  13770. function valueOf$1() {
  13771. if (!this.isValid()) {
  13772. return NaN;
  13773. }
  13774. return (
  13775. this._milliseconds +
  13776. this._days * 864e5 +
  13777. this._months % 12 * 2592e6 +
  13778. toInt(this._months / 12) * 31536e6);
  13779. }
  13780. function makeAs(alias) {
  13781. return function () {
  13782. return this.as(alias);
  13783. };
  13784. }
  13785. var asMilliseconds = makeAs('ms'),
  13786. asSeconds = makeAs('s'),
  13787. asMinutes = makeAs('m'),
  13788. asHours = makeAs('h'),
  13789. asDays = makeAs('d'),
  13790. asWeeks = makeAs('w'),
  13791. asMonths = makeAs('M'),
  13792. asQuarters = makeAs('Q'),
  13793. asYears = makeAs('y');
  13794. function clone$1() {
  13795. return createDuration(this);
  13796. }
  13797. function get$2(units) {
  13798. units = normalizeUnits(units);
  13799. return this.isValid() ? this[units + 's']() : NaN;
  13800. }
  13801. function makeGetter(name) {
  13802. return function () {
  13803. return this.isValid() ? this._data[name] : NaN;
  13804. };
  13805. }
  13806. var milliseconds = makeGetter('milliseconds'),
  13807. seconds = makeGetter('seconds'),
  13808. minutes = makeGetter('minutes'),
  13809. hours = makeGetter('hours'),
  13810. days = makeGetter('days'),
  13811. months = makeGetter('months'),
  13812. years = makeGetter('years');
  13813. function weeks() {
  13814. return absFloor(this.days() / 7);
  13815. }
  13816. var round = Math.round,
  13817. thresholds = {
  13818. ss: 44, // a few seconds to seconds
  13819. s: 45, // seconds to minute
  13820. m: 45, // minutes to hour
  13821. h: 22, // hours to day
  13822. d: 26, // days to month/week
  13823. w: null, // weeks to month
  13824. M: 11 // months to year
  13825. };
  13826. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  13827. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  13828. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  13829. }
  13830. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  13831. var duration = createDuration(posNegDuration).abs(),
  13832. seconds = round(duration.as('s')),
  13833. minutes = round(duration.as('m')),
  13834. hours = round(duration.as('h')),
  13835. days = round(duration.as('d')),
  13836. months = round(duration.as('M')),
  13837. weeks = round(duration.as('w')),
  13838. years = round(duration.as('y')),
  13839. a =
  13840. seconds <= thresholds.ss && ['s', seconds] ||
  13841. seconds < thresholds.s && ['ss', seconds] ||
  13842. minutes <= 1 && ['m'] ||
  13843. minutes < thresholds.m && ['mm', minutes] ||
  13844. hours <= 1 && ['h'] ||
  13845. hours < thresholds.h && ['hh', hours] ||
  13846. days <= 1 && ['d'] ||
  13847. days < thresholds.d && ['dd', days];
  13848. if (thresholds.w != null) {
  13849. a =
  13850. a ||
  13851. weeks <= 1 && ['w'] ||
  13852. weeks < thresholds.w && ['ww', weeks];
  13853. }
  13854. a = a ||
  13855. months <= 1 && ['M'] ||
  13856. months < thresholds.M && ['MM', months] ||
  13857. years <= 1 && ['y'] || ['yy', years];
  13858. a[2] = withoutSuffix;
  13859. a[3] = +posNegDuration > 0;
  13860. a[4] = locale;
  13861. return substituteTimeAgo.apply(null, a);
  13862. }
  13863. // This function allows you to set the rounding function for relative time strings
  13864. function getSetRelativeTimeRounding(roundingFunction) {
  13865. if (roundingFunction === undefined) {
  13866. return round;
  13867. }
  13868. if (typeof roundingFunction === 'function') {
  13869. round = roundingFunction;
  13870. return true;
  13871. }
  13872. return false;
  13873. }
  13874. // This function allows you to set a threshold for relative time strings
  13875. function getSetRelativeTimeThreshold(threshold, limit) {
  13876. if (thresholds[threshold] === undefined) {
  13877. return false;
  13878. }
  13879. if (limit === undefined) {
  13880. return thresholds[threshold];
  13881. }
  13882. thresholds[threshold] = limit;
  13883. if (threshold === 's') {
  13884. thresholds.ss = limit - 1;
  13885. }
  13886. return true;
  13887. }
  13888. function humanize(argWithSuffix, argThresholds) {
  13889. if (!this.isValid()) {
  13890. return this.localeData().invalidDate();
  13891. }
  13892. var withSuffix = false,
  13893. th = thresholds,
  13894. locale,
  13895. output;
  13896. if (typeof argWithSuffix === 'object') {
  13897. argThresholds = argWithSuffix;
  13898. argWithSuffix = false;
  13899. }
  13900. if (typeof argWithSuffix === 'boolean') {
  13901. withSuffix = argWithSuffix;
  13902. }
  13903. if (typeof argThresholds === 'object') {
  13904. th = Object.assign({}, thresholds, argThresholds);
  13905. if (argThresholds.s != null && argThresholds.ss == null) {
  13906. th.ss = argThresholds.s - 1;
  13907. }
  13908. }
  13909. locale = this.localeData();
  13910. output = relativeTime$1(this, !withSuffix, th, locale);
  13911. if (withSuffix) {
  13912. output = locale.pastFuture(+this, output);
  13913. }
  13914. return locale.postformat(output);
  13915. }
  13916. var abs$1 = Math.abs;
  13917. function sign(x) {
  13918. return (x > 0) - (x < 0) || +x;
  13919. }
  13920. function toISOString$1() {
  13921. // for ISO strings we do not use the normal bubbling rules:
  13922. // * milliseconds bubble up until they become hours
  13923. // * days do not bubble at all
  13924. // * months bubble up until they become years
  13925. // This is because there is no context-free conversion between hours and days
  13926. // (think of clock changes)
  13927. // and also not between days and months (28-31 days per month)
  13928. if (!this.isValid()) {
  13929. return this.localeData().invalidDate();
  13930. }
  13931. var seconds = abs$1(this._milliseconds) / 1000,
  13932. days = abs$1(this._days),
  13933. months = abs$1(this._months),
  13934. minutes,
  13935. hours,
  13936. years,
  13937. s,
  13938. total = this.asSeconds(),
  13939. totalSign,
  13940. ymSign,
  13941. daysSign,
  13942. hmsSign;
  13943. if (!total) {
  13944. // this is the same as C#'s (Noda) and python (isodate)...
  13945. // but not other JS (goog.date)
  13946. return 'P0D';
  13947. }
  13948. // 3600 seconds -> 60 minutes -> 1 hour
  13949. minutes = absFloor(seconds / 60);
  13950. hours = absFloor(minutes / 60);
  13951. seconds %= 60;
  13952. minutes %= 60;
  13953. // 12 months -> 1 year
  13954. years = absFloor(months / 12);
  13955. months %= 12;
  13956. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  13957. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  13958. totalSign = total < 0 ? '-' : '';
  13959. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  13960. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  13961. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  13962. return (
  13963. totalSign +
  13964. 'P' + (
  13965. years ? ymSign + years + 'Y' : '') + (
  13966. months ? ymSign + months + 'M' : '') + (
  13967. days ? daysSign + days + 'D' : '') + (
  13968. hours || minutes || seconds ? 'T' : '') + (
  13969. hours ? hmsSign + hours + 'H' : '') + (
  13970. minutes ? hmsSign + minutes + 'M' : '') + (
  13971. seconds ? hmsSign + s + 'S' : ''));
  13972. }
  13973. var proto$2 = Duration.prototype;
  13974. proto$2.isValid = isValid$1;
  13975. proto$2.abs = abs;
  13976. proto$2.add = add$1;
  13977. proto$2.subtract = subtract$1;
  13978. proto$2.as = as;
  13979. proto$2.asMilliseconds = asMilliseconds;
  13980. proto$2.asSeconds = asSeconds;
  13981. proto$2.asMinutes = asMinutes;
  13982. proto$2.asHours = asHours;
  13983. proto$2.asDays = asDays;
  13984. proto$2.asWeeks = asWeeks;
  13985. proto$2.asMonths = asMonths;
  13986. proto$2.asQuarters = asQuarters;
  13987. proto$2.asYears = asYears;
  13988. proto$2.valueOf = valueOf$1;
  13989. proto$2._bubble = bubble;
  13990. proto$2.clone = clone$1;
  13991. proto$2.get = get$2;
  13992. proto$2.milliseconds = milliseconds;
  13993. proto$2.seconds = seconds;
  13994. proto$2.minutes = minutes;
  13995. proto$2.hours = hours;
  13996. proto$2.days = days;
  13997. proto$2.weeks = weeks;
  13998. proto$2.months = months;
  13999. proto$2.years = years;
  14000. proto$2.humanize = humanize;
  14001. proto$2.toISOString = toISOString$1;
  14002. proto$2.toString = toISOString$1;
  14003. proto$2.toJSON = toISOString$1;
  14004. proto$2.locale = locale;
  14005. proto$2.localeData = localeData;
  14006. proto$2.toIsoString = deprecate(
  14007. 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
  14008. toISOString$1);
  14009. proto$2.lang = lang;
  14010. // FORMATTING
  14011. addFormatToken('X', 0, 0, 'unix');
  14012. addFormatToken('x', 0, 0, 'valueOf');
  14013. // PARSING
  14014. addRegexToken('x', matchSigned);
  14015. addRegexToken('X', matchTimestamp);
  14016. addParseToken('X', function (input, array, config) {
  14017. config._d = new Date(parseFloat(input) * 1000);
  14018. });
  14019. addParseToken('x', function (input, array, config) {
  14020. config._d = new Date(toInt(input));
  14021. });
  14022. //! moment.js
  14023. hooks.version = '2.29.4';
  14024. setHookCallback(createLocal);
  14025. hooks.fn = proto;
  14026. hooks.min = min;
  14027. hooks.max = max;
  14028. hooks.now = now;
  14029. hooks.utc = createUTC;
  14030. hooks.unix = createUnix;
  14031. hooks.months = listMonths;
  14032. hooks.isDate = isDate;
  14033. hooks.locale = getSetGlobalLocale;
  14034. hooks.invalid = createInvalid;
  14035. hooks.duration = createDuration;
  14036. hooks.isMoment = isMoment;
  14037. hooks.weekdays = listWeekdays;
  14038. hooks.parseZone = createInZone;
  14039. hooks.localeData = getLocale;
  14040. hooks.isDuration = isDuration;
  14041. hooks.monthsShort = listMonthsShort;
  14042. hooks.weekdaysMin = listWeekdaysMin;
  14043. hooks.defineLocale = defineLocale;
  14044. hooks.updateLocale = updateLocale;
  14045. hooks.locales = listLocales;
  14046. hooks.weekdaysShort = listWeekdaysShort;
  14047. hooks.normalizeUnits = normalizeUnits;
  14048. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  14049. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  14050. hooks.calendarFormat = getCalendarFormat;
  14051. hooks.prototype = proto;
  14052. // currently HTML5 input type only supports 24-hour formats
  14053. hooks.HTML5_FMT = {
  14054. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  14055. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  14056. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  14057. DATE: 'YYYY-MM-DD', // <input type="date" />
  14058. TIME: 'HH:mm', // <input type="time" />
  14059. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  14060. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  14061. WEEK: 'GGGG-[W]WW', // <input type="week" />
  14062. MONTH: 'YYYY-MM' // <input type="month" />
  14063. };
  14064. return hooks;
  14065. });
  14066. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/module.js */ 14)(module)))
  14067. /***/ }),
  14068. /* 14 */
  14069. /*!***********************************!*\
  14070. !*** (webpack)/buildin/module.js ***!
  14071. \***********************************/
  14072. /*! no static exports found */
  14073. /***/ (function(module, exports) {
  14074. module.exports = function(module) {
  14075. if (!module.webpackPolyfill) {
  14076. module.deprecate = function() {};
  14077. module.paths = [];
  14078. // module.parent = undefined by default
  14079. if (!module.children) module.children = [];
  14080. Object.defineProperty(module, "loaded", {
  14081. enumerable: true,
  14082. get: function() {
  14083. return module.l;
  14084. }
  14085. });
  14086. Object.defineProperty(module, "id", {
  14087. enumerable: true,
  14088. get: function() {
  14089. return module.i;
  14090. }
  14091. });
  14092. module.webpackPolyfill = 1;
  14093. }
  14094. return module;
  14095. };
  14096. /***/ }),
  14097. /* 15 */
  14098. /*!***********************************************************************************!*\
  14099. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale sync ^\.\/.*$ ***!
  14100. \***********************************************************************************/
  14101. /*! no static exports found */
  14102. /***/ (function(module, exports, __webpack_require__) {
  14103. var map = {
  14104. "./af": 16,
  14105. "./af.js": 16,
  14106. "./ar": 17,
  14107. "./ar-dz": 18,
  14108. "./ar-dz.js": 18,
  14109. "./ar-kw": 19,
  14110. "./ar-kw.js": 19,
  14111. "./ar-ly": 20,
  14112. "./ar-ly.js": 20,
  14113. "./ar-ma": 21,
  14114. "./ar-ma.js": 21,
  14115. "./ar-sa": 22,
  14116. "./ar-sa.js": 22,
  14117. "./ar-tn": 23,
  14118. "./ar-tn.js": 23,
  14119. "./ar.js": 17,
  14120. "./az": 24,
  14121. "./az.js": 24,
  14122. "./be": 25,
  14123. "./be.js": 25,
  14124. "./bg": 26,
  14125. "./bg.js": 26,
  14126. "./bm": 27,
  14127. "./bm.js": 27,
  14128. "./bn": 28,
  14129. "./bn-bd": 29,
  14130. "./bn-bd.js": 29,
  14131. "./bn.js": 28,
  14132. "./bo": 30,
  14133. "./bo.js": 30,
  14134. "./br": 31,
  14135. "./br.js": 31,
  14136. "./bs": 32,
  14137. "./bs.js": 32,
  14138. "./ca": 33,
  14139. "./ca.js": 33,
  14140. "./cs": 34,
  14141. "./cs.js": 34,
  14142. "./cv": 35,
  14143. "./cv.js": 35,
  14144. "./cy": 36,
  14145. "./cy.js": 36,
  14146. "./da": 37,
  14147. "./da.js": 37,
  14148. "./de": 38,
  14149. "./de-at": 39,
  14150. "./de-at.js": 39,
  14151. "./de-ch": 40,
  14152. "./de-ch.js": 40,
  14153. "./de.js": 38,
  14154. "./dv": 41,
  14155. "./dv.js": 41,
  14156. "./el": 42,
  14157. "./el.js": 42,
  14158. "./en-au": 43,
  14159. "./en-au.js": 43,
  14160. "./en-ca": 44,
  14161. "./en-ca.js": 44,
  14162. "./en-gb": 45,
  14163. "./en-gb.js": 45,
  14164. "./en-ie": 46,
  14165. "./en-ie.js": 46,
  14166. "./en-il": 47,
  14167. "./en-il.js": 47,
  14168. "./en-in": 48,
  14169. "./en-in.js": 48,
  14170. "./en-nz": 49,
  14171. "./en-nz.js": 49,
  14172. "./en-sg": 50,
  14173. "./en-sg.js": 50,
  14174. "./eo": 51,
  14175. "./eo.js": 51,
  14176. "./es": 52,
  14177. "./es-do": 53,
  14178. "./es-do.js": 53,
  14179. "./es-mx": 54,
  14180. "./es-mx.js": 54,
  14181. "./es-us": 55,
  14182. "./es-us.js": 55,
  14183. "./es.js": 52,
  14184. "./et": 56,
  14185. "./et.js": 56,
  14186. "./eu": 57,
  14187. "./eu.js": 57,
  14188. "./fa": 58,
  14189. "./fa.js": 58,
  14190. "./fi": 59,
  14191. "./fi.js": 59,
  14192. "./fil": 60,
  14193. "./fil.js": 60,
  14194. "./fo": 61,
  14195. "./fo.js": 61,
  14196. "./fr": 62,
  14197. "./fr-ca": 63,
  14198. "./fr-ca.js": 63,
  14199. "./fr-ch": 64,
  14200. "./fr-ch.js": 64,
  14201. "./fr.js": 62,
  14202. "./fy": 65,
  14203. "./fy.js": 65,
  14204. "./ga": 66,
  14205. "./ga.js": 66,
  14206. "./gd": 67,
  14207. "./gd.js": 67,
  14208. "./gl": 68,
  14209. "./gl.js": 68,
  14210. "./gom-deva": 69,
  14211. "./gom-deva.js": 69,
  14212. "./gom-latn": 70,
  14213. "./gom-latn.js": 70,
  14214. "./gu": 71,
  14215. "./gu.js": 71,
  14216. "./he": 72,
  14217. "./he.js": 72,
  14218. "./hi": 73,
  14219. "./hi.js": 73,
  14220. "./hr": 74,
  14221. "./hr.js": 74,
  14222. "./hu": 75,
  14223. "./hu.js": 75,
  14224. "./hy-am": 76,
  14225. "./hy-am.js": 76,
  14226. "./id": 77,
  14227. "./id.js": 77,
  14228. "./is": 78,
  14229. "./is.js": 78,
  14230. "./it": 79,
  14231. "./it-ch": 80,
  14232. "./it-ch.js": 80,
  14233. "./it.js": 79,
  14234. "./ja": 81,
  14235. "./ja.js": 81,
  14236. "./jv": 82,
  14237. "./jv.js": 82,
  14238. "./ka": 83,
  14239. "./ka.js": 83,
  14240. "./kk": 84,
  14241. "./kk.js": 84,
  14242. "./km": 85,
  14243. "./km.js": 85,
  14244. "./kn": 86,
  14245. "./kn.js": 86,
  14246. "./ko": 87,
  14247. "./ko.js": 87,
  14248. "./ku": 88,
  14249. "./ku.js": 88,
  14250. "./ky": 89,
  14251. "./ky.js": 89,
  14252. "./lb": 90,
  14253. "./lb.js": 90,
  14254. "./lo": 91,
  14255. "./lo.js": 91,
  14256. "./lt": 92,
  14257. "./lt.js": 92,
  14258. "./lv": 93,
  14259. "./lv.js": 93,
  14260. "./me": 94,
  14261. "./me.js": 94,
  14262. "./mi": 95,
  14263. "./mi.js": 95,
  14264. "./mk": 96,
  14265. "./mk.js": 96,
  14266. "./ml": 97,
  14267. "./ml.js": 97,
  14268. "./mn": 98,
  14269. "./mn.js": 98,
  14270. "./mr": 99,
  14271. "./mr.js": 99,
  14272. "./ms": 100,
  14273. "./ms-my": 101,
  14274. "./ms-my.js": 101,
  14275. "./ms.js": 100,
  14276. "./mt": 102,
  14277. "./mt.js": 102,
  14278. "./my": 103,
  14279. "./my.js": 103,
  14280. "./nb": 104,
  14281. "./nb.js": 104,
  14282. "./ne": 105,
  14283. "./ne.js": 105,
  14284. "./nl": 106,
  14285. "./nl-be": 107,
  14286. "./nl-be.js": 107,
  14287. "./nl.js": 106,
  14288. "./nn": 108,
  14289. "./nn.js": 108,
  14290. "./oc-lnc": 109,
  14291. "./oc-lnc.js": 109,
  14292. "./pa-in": 110,
  14293. "./pa-in.js": 110,
  14294. "./pl": 111,
  14295. "./pl.js": 111,
  14296. "./pt": 112,
  14297. "./pt-br": 113,
  14298. "./pt-br.js": 113,
  14299. "./pt.js": 112,
  14300. "./ro": 114,
  14301. "./ro.js": 114,
  14302. "./ru": 115,
  14303. "./ru.js": 115,
  14304. "./sd": 116,
  14305. "./sd.js": 116,
  14306. "./se": 117,
  14307. "./se.js": 117,
  14308. "./si": 118,
  14309. "./si.js": 118,
  14310. "./sk": 119,
  14311. "./sk.js": 119,
  14312. "./sl": 120,
  14313. "./sl.js": 120,
  14314. "./sq": 121,
  14315. "./sq.js": 121,
  14316. "./sr": 122,
  14317. "./sr-cyrl": 123,
  14318. "./sr-cyrl.js": 123,
  14319. "./sr.js": 122,
  14320. "./ss": 124,
  14321. "./ss.js": 124,
  14322. "./sv": 125,
  14323. "./sv.js": 125,
  14324. "./sw": 126,
  14325. "./sw.js": 126,
  14326. "./ta": 127,
  14327. "./ta.js": 127,
  14328. "./te": 128,
  14329. "./te.js": 128,
  14330. "./tet": 129,
  14331. "./tet.js": 129,
  14332. "./tg": 130,
  14333. "./tg.js": 130,
  14334. "./th": 131,
  14335. "./th.js": 131,
  14336. "./tk": 132,
  14337. "./tk.js": 132,
  14338. "./tl-ph": 133,
  14339. "./tl-ph.js": 133,
  14340. "./tlh": 134,
  14341. "./tlh.js": 134,
  14342. "./tr": 135,
  14343. "./tr.js": 135,
  14344. "./tzl": 136,
  14345. "./tzl.js": 136,
  14346. "./tzm": 137,
  14347. "./tzm-latn": 138,
  14348. "./tzm-latn.js": 138,
  14349. "./tzm.js": 137,
  14350. "./ug-cn": 139,
  14351. "./ug-cn.js": 139,
  14352. "./uk": 140,
  14353. "./uk.js": 140,
  14354. "./ur": 141,
  14355. "./ur.js": 141,
  14356. "./uz": 142,
  14357. "./uz-latn": 143,
  14358. "./uz-latn.js": 143,
  14359. "./uz.js": 142,
  14360. "./vi": 144,
  14361. "./vi.js": 144,
  14362. "./x-pseudo": 145,
  14363. "./x-pseudo.js": 145,
  14364. "./yo": 146,
  14365. "./yo.js": 146,
  14366. "./zh-cn": 147,
  14367. "./zh-cn.js": 147,
  14368. "./zh-hk": 148,
  14369. "./zh-hk.js": 148,
  14370. "./zh-mo": 149,
  14371. "./zh-mo.js": 149,
  14372. "./zh-tw": 150,
  14373. "./zh-tw.js": 150
  14374. };
  14375. function webpackContext(req) {
  14376. var id = webpackContextResolve(req);
  14377. return __webpack_require__(id);
  14378. }
  14379. function webpackContextResolve(req) {
  14380. if(!__webpack_require__.o(map, req)) {
  14381. var e = new Error("Cannot find module '" + req + "'");
  14382. e.code = 'MODULE_NOT_FOUND';
  14383. throw e;
  14384. }
  14385. return map[req];
  14386. }
  14387. webpackContext.keys = function webpackContextKeys() {
  14388. return Object.keys(map);
  14389. };
  14390. webpackContext.resolve = webpackContextResolve;
  14391. module.exports = webpackContext;
  14392. webpackContext.id = 15;
  14393. /***/ }),
  14394. /* 16 */
  14395. /*!***************************************************************************!*\
  14396. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/af.js ***!
  14397. \***************************************************************************/
  14398. /*! no static exports found */
  14399. /***/ (function(module, exports, __webpack_require__) {
  14400. //! moment.js locale configuration
  14401. //! locale : Afrikaans [af]
  14402. //! author : Werner Mollentze : https://github.com/wernerm
  14403. ;(function (global, factory) {
  14404. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  14405. undefined;
  14406. })(this, function (moment) {'use strict';
  14407. //! moment.js locale configuration
  14408. var af = moment.defineLocale('af', {
  14409. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
  14410. '_'),
  14411. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  14412. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
  14413. '_'),
  14414. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  14415. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  14416. meridiemParse: /vm|nm/i,
  14417. isPM: function isPM(input) {
  14418. return /^nm$/i.test(input);
  14419. },
  14420. meridiem: function meridiem(hours, minutes, isLower) {
  14421. if (hours < 12) {
  14422. return isLower ? 'vm' : 'VM';
  14423. } else {
  14424. return isLower ? 'nm' : 'NM';
  14425. }
  14426. },
  14427. longDateFormat: {
  14428. LT: 'HH:mm',
  14429. LTS: 'HH:mm:ss',
  14430. L: 'DD/MM/YYYY',
  14431. LL: 'D MMMM YYYY',
  14432. LLL: 'D MMMM YYYY HH:mm',
  14433. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  14434. calendar: {
  14435. sameDay: '[Vandag om] LT',
  14436. nextDay: '[Môre om] LT',
  14437. nextWeek: 'dddd [om] LT',
  14438. lastDay: '[Gister om] LT',
  14439. lastWeek: '[Laas] dddd [om] LT',
  14440. sameElse: 'L' },
  14441. relativeTime: {
  14442. future: 'oor %s',
  14443. past: '%s gelede',
  14444. s: "'n paar sekondes",
  14445. ss: '%d sekondes',
  14446. m: "'n minuut",
  14447. mm: '%d minute',
  14448. h: "'n uur",
  14449. hh: '%d ure',
  14450. d: "'n dag",
  14451. dd: '%d dae',
  14452. M: "'n maand",
  14453. MM: '%d maande',
  14454. y: "'n jaar",
  14455. yy: '%d jaar' },
  14456. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  14457. ordinal: function ordinal(number) {
  14458. return (
  14459. number + (
  14460. number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'));
  14461. // Thanks to Joris Röling : https://github.com/jjupiter
  14462. },
  14463. week: {
  14464. dow: 1, // Maandag is die eerste dag van die week.
  14465. doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  14466. } });
  14467. return af;
  14468. });
  14469. /***/ }),
  14470. /* 17 */
  14471. /*!***************************************************************************!*\
  14472. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ar.js ***!
  14473. \***************************************************************************/
  14474. /*! no static exports found */
  14475. /***/ (function(module, exports, __webpack_require__) {
  14476. //! moment.js locale configuration
  14477. //! locale : Arabic [ar]
  14478. //! author : Abdel Said: https://github.com/abdelsaid
  14479. //! author : Ahmed Elkhatib
  14480. //! author : forabi https://github.com/forabi
  14481. ;(function (global, factory) {
  14482. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  14483. undefined;
  14484. })(this, function (moment) {'use strict';
  14485. //! moment.js locale configuration
  14486. var symbolMap = {
  14487. 1: '١',
  14488. 2: '٢',
  14489. 3: '٣',
  14490. 4: '٤',
  14491. 5: '٥',
  14492. 6: '٦',
  14493. 7: '٧',
  14494. 8: '٨',
  14495. 9: '٩',
  14496. 0: '٠' },
  14497. numberMap = {
  14498. '١': '1',
  14499. '٢': '2',
  14500. '٣': '3',
  14501. '٤': '4',
  14502. '٥': '5',
  14503. '٦': '6',
  14504. '٧': '7',
  14505. '٨': '8',
  14506. '٩': '9',
  14507. '٠': '0' },
  14508. pluralForm = function pluralForm(n) {
  14509. return n === 0 ?
  14510. 0 :
  14511. n === 1 ?
  14512. 1 :
  14513. n === 2 ?
  14514. 2 :
  14515. n % 100 >= 3 && n % 100 <= 10 ?
  14516. 3 :
  14517. n % 100 >= 11 ?
  14518. 4 :
  14519. 5;
  14520. },
  14521. plurals = {
  14522. s: [
  14523. 'أقل من ثانية',
  14524. 'ثانية واحدة',
  14525. ['ثانيتان', 'ثانيتين'],
  14526. '%d ثوان',
  14527. '%d ثانية',
  14528. '%d ثانية'],
  14529. m: [
  14530. 'أقل من دقيقة',
  14531. 'دقيقة واحدة',
  14532. ['دقيقتان', 'دقيقتين'],
  14533. '%d دقائق',
  14534. '%d دقيقة',
  14535. '%d دقيقة'],
  14536. h: [
  14537. 'أقل من ساعة',
  14538. 'ساعة واحدة',
  14539. ['ساعتان', 'ساعتين'],
  14540. '%d ساعات',
  14541. '%d ساعة',
  14542. '%d ساعة'],
  14543. d: [
  14544. 'أقل من يوم',
  14545. 'يوم واحد',
  14546. ['يومان', 'يومين'],
  14547. '%d أيام',
  14548. '%d يومًا',
  14549. '%d يوم'],
  14550. M: [
  14551. 'أقل من شهر',
  14552. 'شهر واحد',
  14553. ['شهران', 'شهرين'],
  14554. '%d أشهر',
  14555. '%d شهرا',
  14556. '%d شهر'],
  14557. y: [
  14558. 'أقل من عام',
  14559. 'عام واحد',
  14560. ['عامان', 'عامين'],
  14561. '%d أعوام',
  14562. '%d عامًا',
  14563. '%d عام'] },
  14564. pluralize = function pluralize(u) {
  14565. return function (number, withoutSuffix, string, isFuture) {
  14566. var f = pluralForm(number),
  14567. str = plurals[u][pluralForm(number)];
  14568. if (f === 2) {
  14569. str = str[withoutSuffix ? 0 : 1];
  14570. }
  14571. return str.replace(/%d/i, number);
  14572. };
  14573. },
  14574. months = [
  14575. 'يناير',
  14576. 'فبراير',
  14577. 'مارس',
  14578. 'أبريل',
  14579. 'مايو',
  14580. 'يونيو',
  14581. 'يوليو',
  14582. 'أغسطس',
  14583. 'سبتمبر',
  14584. 'أكتوبر',
  14585. 'نوفمبر',
  14586. 'ديسمبر'];
  14587. var ar = moment.defineLocale('ar', {
  14588. months: months,
  14589. monthsShort: months,
  14590. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14591. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14592. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14593. weekdaysParseExact: true,
  14594. longDateFormat: {
  14595. LT: 'HH:mm',
  14596. LTS: 'HH:mm:ss',
  14597. L: "D/\u200FM/\u200FYYYY",
  14598. LL: 'D MMMM YYYY',
  14599. LLL: 'D MMMM YYYY HH:mm',
  14600. LLLL: 'dddd D MMMM YYYY HH:mm' },
  14601. meridiemParse: /ص|م/,
  14602. isPM: function isPM(input) {
  14603. return 'م' === input;
  14604. },
  14605. meridiem: function meridiem(hour, minute, isLower) {
  14606. if (hour < 12) {
  14607. return 'ص';
  14608. } else {
  14609. return 'م';
  14610. }
  14611. },
  14612. calendar: {
  14613. sameDay: '[اليوم عند الساعة] LT',
  14614. nextDay: '[غدًا عند الساعة] LT',
  14615. nextWeek: 'dddd [عند الساعة] LT',
  14616. lastDay: '[أمس عند الساعة] LT',
  14617. lastWeek: 'dddd [عند الساعة] LT',
  14618. sameElse: 'L' },
  14619. relativeTime: {
  14620. future: 'بعد %s',
  14621. past: 'منذ %s',
  14622. s: pluralize('s'),
  14623. ss: pluralize('s'),
  14624. m: pluralize('m'),
  14625. mm: pluralize('m'),
  14626. h: pluralize('h'),
  14627. hh: pluralize('h'),
  14628. d: pluralize('d'),
  14629. dd: pluralize('d'),
  14630. M: pluralize('M'),
  14631. MM: pluralize('M'),
  14632. y: pluralize('y'),
  14633. yy: pluralize('y') },
  14634. preparse: function preparse(string) {
  14635. return string.
  14636. replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  14637. return numberMap[match];
  14638. }).
  14639. replace(/،/g, ',');
  14640. },
  14641. postformat: function postformat(string) {
  14642. return string.
  14643. replace(/\d/g, function (match) {
  14644. return symbolMap[match];
  14645. }).
  14646. replace(/,/g, '،');
  14647. },
  14648. week: {
  14649. dow: 6, // Saturday is the first day of the week.
  14650. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14651. } });
  14652. return ar;
  14653. });
  14654. /***/ }),
  14655. /* 18 */
  14656. /*!******************************************************************************!*\
  14657. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ar-dz.js ***!
  14658. \******************************************************************************/
  14659. /*! no static exports found */
  14660. /***/ (function(module, exports, __webpack_require__) {
  14661. //! moment.js locale configuration
  14662. //! locale : Arabic (Algeria) [ar-dz]
  14663. //! author : Amine Roukh: https://github.com/Amine27
  14664. //! author : Abdel Said: https://github.com/abdelsaid
  14665. //! author : Ahmed Elkhatib
  14666. //! author : forabi https://github.com/forabi
  14667. //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
  14668. ;(function (global, factory) {
  14669. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  14670. undefined;
  14671. })(this, function (moment) {'use strict';
  14672. //! moment.js locale configuration
  14673. var pluralForm = function pluralForm(n) {
  14674. return n === 0 ?
  14675. 0 :
  14676. n === 1 ?
  14677. 1 :
  14678. n === 2 ?
  14679. 2 :
  14680. n % 100 >= 3 && n % 100 <= 10 ?
  14681. 3 :
  14682. n % 100 >= 11 ?
  14683. 4 :
  14684. 5;
  14685. },
  14686. plurals = {
  14687. s: [
  14688. 'أقل من ثانية',
  14689. 'ثانية واحدة',
  14690. ['ثانيتان', 'ثانيتين'],
  14691. '%d ثوان',
  14692. '%d ثانية',
  14693. '%d ثانية'],
  14694. m: [
  14695. 'أقل من دقيقة',
  14696. 'دقيقة واحدة',
  14697. ['دقيقتان', 'دقيقتين'],
  14698. '%d دقائق',
  14699. '%d دقيقة',
  14700. '%d دقيقة'],
  14701. h: [
  14702. 'أقل من ساعة',
  14703. 'ساعة واحدة',
  14704. ['ساعتان', 'ساعتين'],
  14705. '%d ساعات',
  14706. '%d ساعة',
  14707. '%d ساعة'],
  14708. d: [
  14709. 'أقل من يوم',
  14710. 'يوم واحد',
  14711. ['يومان', 'يومين'],
  14712. '%d أيام',
  14713. '%d يومًا',
  14714. '%d يوم'],
  14715. M: [
  14716. 'أقل من شهر',
  14717. 'شهر واحد',
  14718. ['شهران', 'شهرين'],
  14719. '%d أشهر',
  14720. '%d شهرا',
  14721. '%d شهر'],
  14722. y: [
  14723. 'أقل من عام',
  14724. 'عام واحد',
  14725. ['عامان', 'عامين'],
  14726. '%d أعوام',
  14727. '%d عامًا',
  14728. '%d عام'] },
  14729. pluralize = function pluralize(u) {
  14730. return function (number, withoutSuffix, string, isFuture) {
  14731. var f = pluralForm(number),
  14732. str = plurals[u][pluralForm(number)];
  14733. if (f === 2) {
  14734. str = str[withoutSuffix ? 0 : 1];
  14735. }
  14736. return str.replace(/%d/i, number);
  14737. };
  14738. },
  14739. months = [
  14740. 'جانفي',
  14741. 'فيفري',
  14742. 'مارس',
  14743. 'أفريل',
  14744. 'ماي',
  14745. 'جوان',
  14746. 'جويلية',
  14747. 'أوت',
  14748. 'سبتمبر',
  14749. 'أكتوبر',
  14750. 'نوفمبر',
  14751. 'ديسمبر'];
  14752. var arDz = moment.defineLocale('ar-dz', {
  14753. months: months,
  14754. monthsShort: months,
  14755. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14756. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14757. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14758. weekdaysParseExact: true,
  14759. longDateFormat: {
  14760. LT: 'HH:mm',
  14761. LTS: 'HH:mm:ss',
  14762. L: "D/\u200FM/\u200FYYYY",
  14763. LL: 'D MMMM YYYY',
  14764. LLL: 'D MMMM YYYY HH:mm',
  14765. LLLL: 'dddd D MMMM YYYY HH:mm' },
  14766. meridiemParse: /ص|م/,
  14767. isPM: function isPM(input) {
  14768. return 'م' === input;
  14769. },
  14770. meridiem: function meridiem(hour, minute, isLower) {
  14771. if (hour < 12) {
  14772. return 'ص';
  14773. } else {
  14774. return 'م';
  14775. }
  14776. },
  14777. calendar: {
  14778. sameDay: '[اليوم عند الساعة] LT',
  14779. nextDay: '[غدًا عند الساعة] LT',
  14780. nextWeek: 'dddd [عند الساعة] LT',
  14781. lastDay: '[أمس عند الساعة] LT',
  14782. lastWeek: 'dddd [عند الساعة] LT',
  14783. sameElse: 'L' },
  14784. relativeTime: {
  14785. future: 'بعد %s',
  14786. past: 'منذ %s',
  14787. s: pluralize('s'),
  14788. ss: pluralize('s'),
  14789. m: pluralize('m'),
  14790. mm: pluralize('m'),
  14791. h: pluralize('h'),
  14792. hh: pluralize('h'),
  14793. d: pluralize('d'),
  14794. dd: pluralize('d'),
  14795. M: pluralize('M'),
  14796. MM: pluralize('M'),
  14797. y: pluralize('y'),
  14798. yy: pluralize('y') },
  14799. postformat: function postformat(string) {
  14800. return string.replace(/,/g, '،');
  14801. },
  14802. week: {
  14803. dow: 0, // Sunday is the first day of the week.
  14804. doy: 4 // The week that contains Jan 4th is the first week of the year.
  14805. } });
  14806. return arDz;
  14807. });
  14808. /***/ }),
  14809. /* 19 */
  14810. /*!******************************************************************************!*\
  14811. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ar-kw.js ***!
  14812. \******************************************************************************/
  14813. /*! no static exports found */
  14814. /***/ (function(module, exports, __webpack_require__) {
  14815. //! moment.js locale configuration
  14816. //! locale : Arabic (Kuwait) [ar-kw]
  14817. //! author : Nusret Parlak: https://github.com/nusretparlak
  14818. ;(function (global, factory) {
  14819. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  14820. undefined;
  14821. })(this, function (moment) {'use strict';
  14822. //! moment.js locale configuration
  14823. var arKw = moment.defineLocale('ar-kw', {
  14824. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  14825. '_'),
  14826. monthsShort:
  14827. 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  14828. '_'),
  14829. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14830. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  14831. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14832. weekdaysParseExact: true,
  14833. longDateFormat: {
  14834. LT: 'HH:mm',
  14835. LTS: 'HH:mm:ss',
  14836. L: 'DD/MM/YYYY',
  14837. LL: 'D MMMM YYYY',
  14838. LLL: 'D MMMM YYYY HH:mm',
  14839. LLLL: 'dddd D MMMM YYYY HH:mm' },
  14840. calendar: {
  14841. sameDay: '[اليوم على الساعة] LT',
  14842. nextDay: '[غدا على الساعة] LT',
  14843. nextWeek: 'dddd [على الساعة] LT',
  14844. lastDay: '[أمس على الساعة] LT',
  14845. lastWeek: 'dddd [على الساعة] LT',
  14846. sameElse: 'L' },
  14847. relativeTime: {
  14848. future: 'في %s',
  14849. past: 'منذ %s',
  14850. s: 'ثوان',
  14851. ss: '%d ثانية',
  14852. m: 'دقيقة',
  14853. mm: '%d دقائق',
  14854. h: 'ساعة',
  14855. hh: '%d ساعات',
  14856. d: 'يوم',
  14857. dd: '%d أيام',
  14858. M: 'شهر',
  14859. MM: '%d أشهر',
  14860. y: 'سنة',
  14861. yy: '%d سنوات' },
  14862. week: {
  14863. dow: 0, // Sunday is the first day of the week.
  14864. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14865. } });
  14866. return arKw;
  14867. });
  14868. /***/ }),
  14869. /* 20 */
  14870. /*!******************************************************************************!*\
  14871. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ar-ly.js ***!
  14872. \******************************************************************************/
  14873. /*! no static exports found */
  14874. /***/ (function(module, exports, __webpack_require__) {
  14875. //! moment.js locale configuration
  14876. //! locale : Arabic (Libya) [ar-ly]
  14877. //! author : Ali Hmer: https://github.com/kikoanis
  14878. ;(function (global, factory) {
  14879. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  14880. undefined;
  14881. })(this, function (moment) {'use strict';
  14882. //! moment.js locale configuration
  14883. var symbolMap = {
  14884. 1: '1',
  14885. 2: '2',
  14886. 3: '3',
  14887. 4: '4',
  14888. 5: '5',
  14889. 6: '6',
  14890. 7: '7',
  14891. 8: '8',
  14892. 9: '9',
  14893. 0: '0' },
  14894. pluralForm = function pluralForm(n) {
  14895. return n === 0 ?
  14896. 0 :
  14897. n === 1 ?
  14898. 1 :
  14899. n === 2 ?
  14900. 2 :
  14901. n % 100 >= 3 && n % 100 <= 10 ?
  14902. 3 :
  14903. n % 100 >= 11 ?
  14904. 4 :
  14905. 5;
  14906. },
  14907. plurals = {
  14908. s: [
  14909. 'أقل من ثانية',
  14910. 'ثانية واحدة',
  14911. ['ثانيتان', 'ثانيتين'],
  14912. '%d ثوان',
  14913. '%d ثانية',
  14914. '%d ثانية'],
  14915. m: [
  14916. 'أقل من دقيقة',
  14917. 'دقيقة واحدة',
  14918. ['دقيقتان', 'دقيقتين'],
  14919. '%d دقائق',
  14920. '%d دقيقة',
  14921. '%d دقيقة'],
  14922. h: [
  14923. 'أقل من ساعة',
  14924. 'ساعة واحدة',
  14925. ['ساعتان', 'ساعتين'],
  14926. '%d ساعات',
  14927. '%d ساعة',
  14928. '%d ساعة'],
  14929. d: [
  14930. 'أقل من يوم',
  14931. 'يوم واحد',
  14932. ['يومان', 'يومين'],
  14933. '%d أيام',
  14934. '%d يومًا',
  14935. '%d يوم'],
  14936. M: [
  14937. 'أقل من شهر',
  14938. 'شهر واحد',
  14939. ['شهران', 'شهرين'],
  14940. '%d أشهر',
  14941. '%d شهرا',
  14942. '%d شهر'],
  14943. y: [
  14944. 'أقل من عام',
  14945. 'عام واحد',
  14946. ['عامان', 'عامين'],
  14947. '%d أعوام',
  14948. '%d عامًا',
  14949. '%d عام'] },
  14950. pluralize = function pluralize(u) {
  14951. return function (number, withoutSuffix, string, isFuture) {
  14952. var f = pluralForm(number),
  14953. str = plurals[u][pluralForm(number)];
  14954. if (f === 2) {
  14955. str = str[withoutSuffix ? 0 : 1];
  14956. }
  14957. return str.replace(/%d/i, number);
  14958. };
  14959. },
  14960. months = [
  14961. 'يناير',
  14962. 'فبراير',
  14963. 'مارس',
  14964. 'أبريل',
  14965. 'مايو',
  14966. 'يونيو',
  14967. 'يوليو',
  14968. 'أغسطس',
  14969. 'سبتمبر',
  14970. 'أكتوبر',
  14971. 'نوفمبر',
  14972. 'ديسمبر'];
  14973. var arLy = moment.defineLocale('ar-ly', {
  14974. months: months,
  14975. monthsShort: months,
  14976. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14977. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14978. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14979. weekdaysParseExact: true,
  14980. longDateFormat: {
  14981. LT: 'HH:mm',
  14982. LTS: 'HH:mm:ss',
  14983. L: "D/\u200FM/\u200FYYYY",
  14984. LL: 'D MMMM YYYY',
  14985. LLL: 'D MMMM YYYY HH:mm',
  14986. LLLL: 'dddd D MMMM YYYY HH:mm' },
  14987. meridiemParse: /ص|م/,
  14988. isPM: function isPM(input) {
  14989. return 'م' === input;
  14990. },
  14991. meridiem: function meridiem(hour, minute, isLower) {
  14992. if (hour < 12) {
  14993. return 'ص';
  14994. } else {
  14995. return 'م';
  14996. }
  14997. },
  14998. calendar: {
  14999. sameDay: '[اليوم عند الساعة] LT',
  15000. nextDay: '[غدًا عند الساعة] LT',
  15001. nextWeek: 'dddd [عند الساعة] LT',
  15002. lastDay: '[أمس عند الساعة] LT',
  15003. lastWeek: 'dddd [عند الساعة] LT',
  15004. sameElse: 'L' },
  15005. relativeTime: {
  15006. future: 'بعد %s',
  15007. past: 'منذ %s',
  15008. s: pluralize('s'),
  15009. ss: pluralize('s'),
  15010. m: pluralize('m'),
  15011. mm: pluralize('m'),
  15012. h: pluralize('h'),
  15013. hh: pluralize('h'),
  15014. d: pluralize('d'),
  15015. dd: pluralize('d'),
  15016. M: pluralize('M'),
  15017. MM: pluralize('M'),
  15018. y: pluralize('y'),
  15019. yy: pluralize('y') },
  15020. preparse: function preparse(string) {
  15021. return string.replace(/،/g, ',');
  15022. },
  15023. postformat: function postformat(string) {
  15024. return string.
  15025. replace(/\d/g, function (match) {
  15026. return symbolMap[match];
  15027. }).
  15028. replace(/,/g, '،');
  15029. },
  15030. week: {
  15031. dow: 6, // Saturday is the first day of the week.
  15032. doy: 12 // The week that contains Jan 12th is the first week of the year.
  15033. } });
  15034. return arLy;
  15035. });
  15036. /***/ }),
  15037. /* 21 */
  15038. /*!******************************************************************************!*\
  15039. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ar-ma.js ***!
  15040. \******************************************************************************/
  15041. /*! no static exports found */
  15042. /***/ (function(module, exports, __webpack_require__) {
  15043. //! moment.js locale configuration
  15044. //! locale : Arabic (Morocco) [ar-ma]
  15045. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  15046. //! author : Abdel Said : https://github.com/abdelsaid
  15047. ;(function (global, factory) {
  15048. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15049. undefined;
  15050. })(this, function (moment) {'use strict';
  15051. //! moment.js locale configuration
  15052. var arMa = moment.defineLocale('ar-ma', {
  15053. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  15054. '_'),
  15055. monthsShort:
  15056. 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  15057. '_'),
  15058. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  15059. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  15060. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  15061. weekdaysParseExact: true,
  15062. longDateFormat: {
  15063. LT: 'HH:mm',
  15064. LTS: 'HH:mm:ss',
  15065. L: 'DD/MM/YYYY',
  15066. LL: 'D MMMM YYYY',
  15067. LLL: 'D MMMM YYYY HH:mm',
  15068. LLLL: 'dddd D MMMM YYYY HH:mm' },
  15069. calendar: {
  15070. sameDay: '[اليوم على الساعة] LT',
  15071. nextDay: '[غدا على الساعة] LT',
  15072. nextWeek: 'dddd [على الساعة] LT',
  15073. lastDay: '[أمس على الساعة] LT',
  15074. lastWeek: 'dddd [على الساعة] LT',
  15075. sameElse: 'L' },
  15076. relativeTime: {
  15077. future: 'في %s',
  15078. past: 'منذ %s',
  15079. s: 'ثوان',
  15080. ss: '%d ثانية',
  15081. m: 'دقيقة',
  15082. mm: '%d دقائق',
  15083. h: 'ساعة',
  15084. hh: '%d ساعات',
  15085. d: 'يوم',
  15086. dd: '%d أيام',
  15087. M: 'شهر',
  15088. MM: '%d أشهر',
  15089. y: 'سنة',
  15090. yy: '%d سنوات' },
  15091. week: {
  15092. dow: 1, // Monday is the first day of the week.
  15093. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15094. } });
  15095. return arMa;
  15096. });
  15097. /***/ }),
  15098. /* 22 */
  15099. /*!******************************************************************************!*\
  15100. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ar-sa.js ***!
  15101. \******************************************************************************/
  15102. /*! no static exports found */
  15103. /***/ (function(module, exports, __webpack_require__) {
  15104. //! moment.js locale configuration
  15105. //! locale : Arabic (Saudi Arabia) [ar-sa]
  15106. //! author : Suhail Alkowaileet : https://github.com/xsoh
  15107. ;(function (global, factory) {
  15108. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15109. undefined;
  15110. })(this, function (moment) {'use strict';
  15111. //! moment.js locale configuration
  15112. var symbolMap = {
  15113. 1: '١',
  15114. 2: '٢',
  15115. 3: '٣',
  15116. 4: '٤',
  15117. 5: '٥',
  15118. 6: '٦',
  15119. 7: '٧',
  15120. 8: '٨',
  15121. 9: '٩',
  15122. 0: '٠' },
  15123. numberMap = {
  15124. '١': '1',
  15125. '٢': '2',
  15126. '٣': '3',
  15127. '٤': '4',
  15128. '٥': '5',
  15129. '٦': '6',
  15130. '٧': '7',
  15131. '٨': '8',
  15132. '٩': '9',
  15133. '٠': '0' };
  15134. var arSa = moment.defineLocale('ar-sa', {
  15135. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  15136. '_'),
  15137. monthsShort:
  15138. 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  15139. '_'),
  15140. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  15141. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  15142. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  15143. weekdaysParseExact: true,
  15144. longDateFormat: {
  15145. LT: 'HH:mm',
  15146. LTS: 'HH:mm:ss',
  15147. L: 'DD/MM/YYYY',
  15148. LL: 'D MMMM YYYY',
  15149. LLL: 'D MMMM YYYY HH:mm',
  15150. LLLL: 'dddd D MMMM YYYY HH:mm' },
  15151. meridiemParse: /ص|م/,
  15152. isPM: function isPM(input) {
  15153. return 'م' === input;
  15154. },
  15155. meridiem: function meridiem(hour, minute, isLower) {
  15156. if (hour < 12) {
  15157. return 'ص';
  15158. } else {
  15159. return 'م';
  15160. }
  15161. },
  15162. calendar: {
  15163. sameDay: '[اليوم على الساعة] LT',
  15164. nextDay: '[غدا على الساعة] LT',
  15165. nextWeek: 'dddd [على الساعة] LT',
  15166. lastDay: '[أمس على الساعة] LT',
  15167. lastWeek: 'dddd [على الساعة] LT',
  15168. sameElse: 'L' },
  15169. relativeTime: {
  15170. future: 'في %s',
  15171. past: 'منذ %s',
  15172. s: 'ثوان',
  15173. ss: '%d ثانية',
  15174. m: 'دقيقة',
  15175. mm: '%d دقائق',
  15176. h: 'ساعة',
  15177. hh: '%d ساعات',
  15178. d: 'يوم',
  15179. dd: '%d أيام',
  15180. M: 'شهر',
  15181. MM: '%d أشهر',
  15182. y: 'سنة',
  15183. yy: '%d سنوات' },
  15184. preparse: function preparse(string) {
  15185. return string.
  15186. replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  15187. return numberMap[match];
  15188. }).
  15189. replace(/،/g, ',');
  15190. },
  15191. postformat: function postformat(string) {
  15192. return string.
  15193. replace(/\d/g, function (match) {
  15194. return symbolMap[match];
  15195. }).
  15196. replace(/,/g, '،');
  15197. },
  15198. week: {
  15199. dow: 0, // Sunday is the first day of the week.
  15200. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15201. } });
  15202. return arSa;
  15203. });
  15204. /***/ }),
  15205. /* 23 */
  15206. /*!******************************************************************************!*\
  15207. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ar-tn.js ***!
  15208. \******************************************************************************/
  15209. /*! no static exports found */
  15210. /***/ (function(module, exports, __webpack_require__) {
  15211. //! moment.js locale configuration
  15212. //! locale : Arabic (Tunisia) [ar-tn]
  15213. //! author : Nader Toukabri : https://github.com/naderio
  15214. ;(function (global, factory) {
  15215. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15216. undefined;
  15217. })(this, function (moment) {'use strict';
  15218. //! moment.js locale configuration
  15219. var arTn = moment.defineLocale('ar-tn', {
  15220. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  15221. '_'),
  15222. monthsShort:
  15223. 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  15224. '_'),
  15225. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  15226. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  15227. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  15228. weekdaysParseExact: true,
  15229. longDateFormat: {
  15230. LT: 'HH:mm',
  15231. LTS: 'HH:mm:ss',
  15232. L: 'DD/MM/YYYY',
  15233. LL: 'D MMMM YYYY',
  15234. LLL: 'D MMMM YYYY HH:mm',
  15235. LLLL: 'dddd D MMMM YYYY HH:mm' },
  15236. calendar: {
  15237. sameDay: '[اليوم على الساعة] LT',
  15238. nextDay: '[غدا على الساعة] LT',
  15239. nextWeek: 'dddd [على الساعة] LT',
  15240. lastDay: '[أمس على الساعة] LT',
  15241. lastWeek: 'dddd [على الساعة] LT',
  15242. sameElse: 'L' },
  15243. relativeTime: {
  15244. future: 'في %s',
  15245. past: 'منذ %s',
  15246. s: 'ثوان',
  15247. ss: '%d ثانية',
  15248. m: 'دقيقة',
  15249. mm: '%d دقائق',
  15250. h: 'ساعة',
  15251. hh: '%d ساعات',
  15252. d: 'يوم',
  15253. dd: '%d أيام',
  15254. M: 'شهر',
  15255. MM: '%d أشهر',
  15256. y: 'سنة',
  15257. yy: '%d سنوات' },
  15258. week: {
  15259. dow: 1, // Monday is the first day of the week.
  15260. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15261. } });
  15262. return arTn;
  15263. });
  15264. /***/ }),
  15265. /* 24 */
  15266. /*!***************************************************************************!*\
  15267. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/az.js ***!
  15268. \***************************************************************************/
  15269. /*! no static exports found */
  15270. /***/ (function(module, exports, __webpack_require__) {
  15271. //! moment.js locale configuration
  15272. //! locale : Azerbaijani [az]
  15273. //! author : topchiyev : https://github.com/topchiyev
  15274. ;(function (global, factory) {
  15275. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15276. undefined;
  15277. })(this, function (moment) {'use strict';
  15278. //! moment.js locale configuration
  15279. var suffixes = {
  15280. 1: '-inci',
  15281. 5: '-inci',
  15282. 8: '-inci',
  15283. 70: '-inci',
  15284. 80: '-inci',
  15285. 2: '-nci',
  15286. 7: '-nci',
  15287. 20: '-nci',
  15288. 50: '-nci',
  15289. 3: '-üncü',
  15290. 4: '-üncü',
  15291. 100: '-üncü',
  15292. 6: '-ncı',
  15293. 9: '-uncu',
  15294. 10: '-uncu',
  15295. 30: '-uncu',
  15296. 60: '-ıncı',
  15297. 90: '-ıncı' };
  15298. var az = moment.defineLocale('az', {
  15299. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  15300. '_'),
  15301. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  15302. weekdays:
  15303. 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  15304. '_'),
  15305. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  15306. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  15307. weekdaysParseExact: true,
  15308. longDateFormat: {
  15309. LT: 'HH:mm',
  15310. LTS: 'HH:mm:ss',
  15311. L: 'DD.MM.YYYY',
  15312. LL: 'D MMMM YYYY',
  15313. LLL: 'D MMMM YYYY HH:mm',
  15314. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  15315. calendar: {
  15316. sameDay: '[bugün saat] LT',
  15317. nextDay: '[sabah saat] LT',
  15318. nextWeek: '[gələn həftə] dddd [saat] LT',
  15319. lastDay: '[dünən] LT',
  15320. lastWeek: '[keçən həftə] dddd [saat] LT',
  15321. sameElse: 'L' },
  15322. relativeTime: {
  15323. future: '%s sonra',
  15324. past: '%s əvvəl',
  15325. s: 'bir neçə saniyə',
  15326. ss: '%d saniyə',
  15327. m: 'bir dəqiqə',
  15328. mm: '%d dəqiqə',
  15329. h: 'bir saat',
  15330. hh: '%d saat',
  15331. d: 'bir gün',
  15332. dd: '%d gün',
  15333. M: 'bir ay',
  15334. MM: '%d ay',
  15335. y: 'bir il',
  15336. yy: '%d il' },
  15337. meridiemParse: /gecə|səhər|gündüz|axşam/,
  15338. isPM: function isPM(input) {
  15339. return /^(gündüz|axşam)$/.test(input);
  15340. },
  15341. meridiem: function meridiem(hour, minute, isLower) {
  15342. if (hour < 4) {
  15343. return 'gecə';
  15344. } else if (hour < 12) {
  15345. return 'səhər';
  15346. } else if (hour < 17) {
  15347. return 'gündüz';
  15348. } else {
  15349. return 'axşam';
  15350. }
  15351. },
  15352. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  15353. ordinal: function ordinal(number) {
  15354. if (number === 0) {
  15355. // special case for zero
  15356. return number + '-ıncı';
  15357. }
  15358. var a = number % 10,
  15359. b = number % 100 - a,
  15360. c = number >= 100 ? 100 : null;
  15361. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  15362. },
  15363. week: {
  15364. dow: 1, // Monday is the first day of the week.
  15365. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15366. } });
  15367. return az;
  15368. });
  15369. /***/ }),
  15370. /* 25 */
  15371. /*!***************************************************************************!*\
  15372. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/be.js ***!
  15373. \***************************************************************************/
  15374. /*! no static exports found */
  15375. /***/ (function(module, exports, __webpack_require__) {
  15376. //! moment.js locale configuration
  15377. //! locale : Belarusian [be]
  15378. //! author : Dmitry Demidov : https://github.com/demidov91
  15379. //! author: Praleska: http://praleska.pro/
  15380. //! Author : Menelion Elensúle : https://github.com/Oire
  15381. ;(function (global, factory) {
  15382. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15383. undefined;
  15384. })(this, function (moment) {'use strict';
  15385. //! moment.js locale configuration
  15386. function plural(word, num) {
  15387. var forms = word.split('_');
  15388. return num % 10 === 1 && num % 100 !== 11 ?
  15389. forms[0] :
  15390. num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ?
  15391. forms[1] :
  15392. forms[2];
  15393. }
  15394. function relativeTimeWithPlural(number, withoutSuffix, key) {
  15395. var format = {
  15396. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  15397. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  15398. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  15399. dd: 'дзень_дні_дзён',
  15400. MM: 'месяц_месяцы_месяцаў',
  15401. yy: 'год_гады_гадоў' };
  15402. if (key === 'm') {
  15403. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  15404. } else if (key === 'h') {
  15405. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  15406. } else {
  15407. return number + ' ' + plural(format[key], +number);
  15408. }
  15409. }
  15410. var be = moment.defineLocale('be', {
  15411. months: {
  15412. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  15413. '_'),
  15414. standalone:
  15415. 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  15416. '_') },
  15417. monthsShort:
  15418. 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  15419. weekdays: {
  15420. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  15421. '_'),
  15422. standalone:
  15423. 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  15424. '_'),
  15425. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/ },
  15426. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  15427. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  15428. longDateFormat: {
  15429. LT: 'HH:mm',
  15430. LTS: 'HH:mm:ss',
  15431. L: 'DD.MM.YYYY',
  15432. LL: 'D MMMM YYYY г.',
  15433. LLL: 'D MMMM YYYY г., HH:mm',
  15434. LLLL: 'dddd, D MMMM YYYY г., HH:mm' },
  15435. calendar: {
  15436. sameDay: '[Сёння ў] LT',
  15437. nextDay: '[Заўтра ў] LT',
  15438. lastDay: '[Учора ў] LT',
  15439. nextWeek: function nextWeek() {
  15440. return '[У] dddd [ў] LT';
  15441. },
  15442. lastWeek: function lastWeek() {
  15443. switch (this.day()) {
  15444. case 0:
  15445. case 3:
  15446. case 5:
  15447. case 6:
  15448. return '[У мінулую] dddd [ў] LT';
  15449. case 1:
  15450. case 2:
  15451. case 4:
  15452. return '[У мінулы] dddd [ў] LT';}
  15453. },
  15454. sameElse: 'L' },
  15455. relativeTime: {
  15456. future: 'праз %s',
  15457. past: '%s таму',
  15458. s: 'некалькі секунд',
  15459. m: relativeTimeWithPlural,
  15460. mm: relativeTimeWithPlural,
  15461. h: relativeTimeWithPlural,
  15462. hh: relativeTimeWithPlural,
  15463. d: 'дзень',
  15464. dd: relativeTimeWithPlural,
  15465. M: 'месяц',
  15466. MM: relativeTimeWithPlural,
  15467. y: 'год',
  15468. yy: relativeTimeWithPlural },
  15469. meridiemParse: /ночы|раніцы|дня|вечара/,
  15470. isPM: function isPM(input) {
  15471. return /^(дня|вечара)$/.test(input);
  15472. },
  15473. meridiem: function meridiem(hour, minute, isLower) {
  15474. if (hour < 4) {
  15475. return 'ночы';
  15476. } else if (hour < 12) {
  15477. return 'раніцы';
  15478. } else if (hour < 17) {
  15479. return 'дня';
  15480. } else {
  15481. return 'вечара';
  15482. }
  15483. },
  15484. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  15485. ordinal: function ordinal(number, period) {
  15486. switch (period) {
  15487. case 'M':
  15488. case 'd':
  15489. case 'DDD':
  15490. case 'w':
  15491. case 'W':
  15492. return (number % 10 === 2 || number % 10 === 3) &&
  15493. number % 100 !== 12 &&
  15494. number % 100 !== 13 ?
  15495. number + '-і' :
  15496. number + '-ы';
  15497. case 'D':
  15498. return number + '-га';
  15499. default:
  15500. return number;}
  15501. },
  15502. week: {
  15503. dow: 1, // Monday is the first day of the week.
  15504. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15505. } });
  15506. return be;
  15507. });
  15508. /***/ }),
  15509. /* 26 */
  15510. /*!***************************************************************************!*\
  15511. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/bg.js ***!
  15512. \***************************************************************************/
  15513. /*! no static exports found */
  15514. /***/ (function(module, exports, __webpack_require__) {
  15515. //! moment.js locale configuration
  15516. //! locale : Bulgarian [bg]
  15517. //! author : Krasen Borisov : https://github.com/kraz
  15518. ;(function (global, factory) {
  15519. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15520. undefined;
  15521. })(this, function (moment) {'use strict';
  15522. //! moment.js locale configuration
  15523. var bg = moment.defineLocale('bg', {
  15524. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  15525. '_'),
  15526. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  15527. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  15528. '_'),
  15529. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  15530. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15531. longDateFormat: {
  15532. LT: 'H:mm',
  15533. LTS: 'H:mm:ss',
  15534. L: 'D.MM.YYYY',
  15535. LL: 'D MMMM YYYY',
  15536. LLL: 'D MMMM YYYY H:mm',
  15537. LLLL: 'dddd, D MMMM YYYY H:mm' },
  15538. calendar: {
  15539. sameDay: '[Днес в] LT',
  15540. nextDay: '[Утре в] LT',
  15541. nextWeek: 'dddd [в] LT',
  15542. lastDay: '[Вчера в] LT',
  15543. lastWeek: function lastWeek() {
  15544. switch (this.day()) {
  15545. case 0:
  15546. case 3:
  15547. case 6:
  15548. return '[Миналата] dddd [в] LT';
  15549. case 1:
  15550. case 2:
  15551. case 4:
  15552. case 5:
  15553. return '[Миналия] dddd [в] LT';}
  15554. },
  15555. sameElse: 'L' },
  15556. relativeTime: {
  15557. future: 'след %s',
  15558. past: 'преди %s',
  15559. s: 'няколко секунди',
  15560. ss: '%d секунди',
  15561. m: 'минута',
  15562. mm: '%d минути',
  15563. h: 'час',
  15564. hh: '%d часа',
  15565. d: 'ден',
  15566. dd: '%d дена',
  15567. w: 'седмица',
  15568. ww: '%d седмици',
  15569. M: 'месец',
  15570. MM: '%d месеца',
  15571. y: 'година',
  15572. yy: '%d години' },
  15573. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  15574. ordinal: function ordinal(number) {
  15575. var lastDigit = number % 10,
  15576. last2Digits = number % 100;
  15577. if (number === 0) {
  15578. return number + '-ев';
  15579. } else if (last2Digits === 0) {
  15580. return number + '-ен';
  15581. } else if (last2Digits > 10 && last2Digits < 20) {
  15582. return number + '-ти';
  15583. } else if (lastDigit === 1) {
  15584. return number + '-ви';
  15585. } else if (lastDigit === 2) {
  15586. return number + '-ри';
  15587. } else if (lastDigit === 7 || lastDigit === 8) {
  15588. return number + '-ми';
  15589. } else {
  15590. return number + '-ти';
  15591. }
  15592. },
  15593. week: {
  15594. dow: 1, // Monday is the first day of the week.
  15595. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15596. } });
  15597. return bg;
  15598. });
  15599. /***/ }),
  15600. /* 27 */
  15601. /*!***************************************************************************!*\
  15602. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/bm.js ***!
  15603. \***************************************************************************/
  15604. /*! no static exports found */
  15605. /***/ (function(module, exports, __webpack_require__) {
  15606. //! moment.js locale configuration
  15607. //! locale : Bambara [bm]
  15608. //! author : Estelle Comment : https://github.com/estellecomment
  15609. ;(function (global, factory) {
  15610. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15611. undefined;
  15612. })(this, function (moment) {'use strict';
  15613. //! moment.js locale configuration
  15614. var bm = moment.defineLocale('bm', {
  15615. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  15616. '_'),
  15617. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  15618. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  15619. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  15620. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  15621. longDateFormat: {
  15622. LT: 'HH:mm',
  15623. LTS: 'HH:mm:ss',
  15624. L: 'DD/MM/YYYY',
  15625. LL: 'MMMM [tile] D [san] YYYY',
  15626. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  15627. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm' },
  15628. calendar: {
  15629. sameDay: '[Bi lɛrɛ] LT',
  15630. nextDay: '[Sini lɛrɛ] LT',
  15631. nextWeek: 'dddd [don lɛrɛ] LT',
  15632. lastDay: '[Kunu lɛrɛ] LT',
  15633. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  15634. sameElse: 'L' },
  15635. relativeTime: {
  15636. future: '%s kɔnɔ',
  15637. past: 'a bɛ %s bɔ',
  15638. s: 'sanga dama dama',
  15639. ss: 'sekondi %d',
  15640. m: 'miniti kelen',
  15641. mm: 'miniti %d',
  15642. h: 'lɛrɛ kelen',
  15643. hh: 'lɛrɛ %d',
  15644. d: 'tile kelen',
  15645. dd: 'tile %d',
  15646. M: 'kalo kelen',
  15647. MM: 'kalo %d',
  15648. y: 'san kelen',
  15649. yy: 'san %d' },
  15650. week: {
  15651. dow: 1, // Monday is the first day of the week.
  15652. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15653. } });
  15654. return bm;
  15655. });
  15656. /***/ }),
  15657. /* 28 */
  15658. /*!***************************************************************************!*\
  15659. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/bn.js ***!
  15660. \***************************************************************************/
  15661. /*! no static exports found */
  15662. /***/ (function(module, exports, __webpack_require__) {
  15663. //! moment.js locale configuration
  15664. //! locale : Bengali [bn]
  15665. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  15666. ;(function (global, factory) {
  15667. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15668. undefined;
  15669. })(this, function (moment) {'use strict';
  15670. //! moment.js locale configuration
  15671. var symbolMap = {
  15672. 1: '১',
  15673. 2: '২',
  15674. 3: '৩',
  15675. 4: '৪',
  15676. 5: '৫',
  15677. 6: '৬',
  15678. 7: '৭',
  15679. 8: '৮',
  15680. 9: '৯',
  15681. 0: '০' },
  15682. numberMap = {
  15683. '১': '1',
  15684. '২': '2',
  15685. '৩': '3',
  15686. '৪': '4',
  15687. '৫': '5',
  15688. '৬': '6',
  15689. '৭': '7',
  15690. '৮': '8',
  15691. '৯': '9',
  15692. '০': '0' };
  15693. var bn = moment.defineLocale('bn', {
  15694. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  15695. '_'),
  15696. monthsShort:
  15697. 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  15698. '_'),
  15699. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  15700. '_'),
  15701. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  15702. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  15703. longDateFormat: {
  15704. LT: 'A h:mm সময়',
  15705. LTS: 'A h:mm:ss সময়',
  15706. L: 'DD/MM/YYYY',
  15707. LL: 'D MMMM YYYY',
  15708. LLL: 'D MMMM YYYY, A h:mm সময়',
  15709. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়' },
  15710. calendar: {
  15711. sameDay: '[আজ] LT',
  15712. nextDay: '[আগামীকাল] LT',
  15713. nextWeek: 'dddd, LT',
  15714. lastDay: '[গতকাল] LT',
  15715. lastWeek: '[গত] dddd, LT',
  15716. sameElse: 'L' },
  15717. relativeTime: {
  15718. future: '%s পরে',
  15719. past: '%s আগে',
  15720. s: 'কয়েক সেকেন্ড',
  15721. ss: '%d সেকেন্ড',
  15722. m: 'এক মিনিট',
  15723. mm: '%d মিনিট',
  15724. h: 'এক ঘন্টা',
  15725. hh: '%d ঘন্টা',
  15726. d: 'এক দিন',
  15727. dd: '%d দিন',
  15728. M: 'এক মাস',
  15729. MM: '%d মাস',
  15730. y: 'এক বছর',
  15731. yy: '%d বছর' },
  15732. preparse: function preparse(string) {
  15733. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  15734. return numberMap[match];
  15735. });
  15736. },
  15737. postformat: function postformat(string) {
  15738. return string.replace(/\d/g, function (match) {
  15739. return symbolMap[match];
  15740. });
  15741. },
  15742. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  15743. meridiemHour: function meridiemHour(hour, meridiem) {
  15744. if (hour === 12) {
  15745. hour = 0;
  15746. }
  15747. if (
  15748. meridiem === 'রাত' && hour >= 4 ||
  15749. meridiem === 'দুপুর' && hour < 5 ||
  15750. meridiem === 'বিকাল')
  15751. {
  15752. return hour + 12;
  15753. } else {
  15754. return hour;
  15755. }
  15756. },
  15757. meridiem: function meridiem(hour, minute, isLower) {
  15758. if (hour < 4) {
  15759. return 'রাত';
  15760. } else if (hour < 10) {
  15761. return 'সকাল';
  15762. } else if (hour < 17) {
  15763. return 'দুপুর';
  15764. } else if (hour < 20) {
  15765. return 'বিকাল';
  15766. } else {
  15767. return 'রাত';
  15768. }
  15769. },
  15770. week: {
  15771. dow: 0, // Sunday is the first day of the week.
  15772. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15773. } });
  15774. return bn;
  15775. });
  15776. /***/ }),
  15777. /* 29 */
  15778. /*!******************************************************************************!*\
  15779. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/bn-bd.js ***!
  15780. \******************************************************************************/
  15781. /*! no static exports found */
  15782. /***/ (function(module, exports, __webpack_require__) {
  15783. //! moment.js locale configuration
  15784. //! locale : Bengali (Bangladesh) [bn-bd]
  15785. //! author : Asraf Hossain Patoary : https://github.com/ashwoolford
  15786. ;(function (global, factory) {
  15787. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15788. undefined;
  15789. })(this, function (moment) {'use strict';
  15790. //! moment.js locale configuration
  15791. var symbolMap = {
  15792. 1: '১',
  15793. 2: '২',
  15794. 3: '৩',
  15795. 4: '৪',
  15796. 5: '৫',
  15797. 6: '৬',
  15798. 7: '৭',
  15799. 8: '৮',
  15800. 9: '৯',
  15801. 0: '০' },
  15802. numberMap = {
  15803. '১': '1',
  15804. '২': '2',
  15805. '৩': '3',
  15806. '৪': '4',
  15807. '৫': '5',
  15808. '৬': '6',
  15809. '৭': '7',
  15810. '৮': '8',
  15811. '৯': '9',
  15812. '০': '0' };
  15813. var bnBd = moment.defineLocale('bn-bd', {
  15814. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  15815. '_'),
  15816. monthsShort:
  15817. 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  15818. '_'),
  15819. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  15820. '_'),
  15821. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  15822. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  15823. longDateFormat: {
  15824. LT: 'A h:mm সময়',
  15825. LTS: 'A h:mm:ss সময়',
  15826. L: 'DD/MM/YYYY',
  15827. LL: 'D MMMM YYYY',
  15828. LLL: 'D MMMM YYYY, A h:mm সময়',
  15829. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়' },
  15830. calendar: {
  15831. sameDay: '[আজ] LT',
  15832. nextDay: '[আগামীকাল] LT',
  15833. nextWeek: 'dddd, LT',
  15834. lastDay: '[গতকাল] LT',
  15835. lastWeek: '[গত] dddd, LT',
  15836. sameElse: 'L' },
  15837. relativeTime: {
  15838. future: '%s পরে',
  15839. past: '%s আগে',
  15840. s: 'কয়েক সেকেন্ড',
  15841. ss: '%d সেকেন্ড',
  15842. m: 'এক মিনিট',
  15843. mm: '%d মিনিট',
  15844. h: 'এক ঘন্টা',
  15845. hh: '%d ঘন্টা',
  15846. d: 'এক দিন',
  15847. dd: '%d দিন',
  15848. M: 'এক মাস',
  15849. MM: '%d মাস',
  15850. y: 'এক বছর',
  15851. yy: '%d বছর' },
  15852. preparse: function preparse(string) {
  15853. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  15854. return numberMap[match];
  15855. });
  15856. },
  15857. postformat: function postformat(string) {
  15858. return string.replace(/\d/g, function (match) {
  15859. return symbolMap[match];
  15860. });
  15861. },
  15862. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  15863. meridiemHour: function meridiemHour(hour, meridiem) {
  15864. if (hour === 12) {
  15865. hour = 0;
  15866. }
  15867. if (meridiem === 'রাত') {
  15868. return hour < 4 ? hour : hour + 12;
  15869. } else if (meridiem === 'ভোর') {
  15870. return hour;
  15871. } else if (meridiem === 'সকাল') {
  15872. return hour;
  15873. } else if (meridiem === 'দুপুর') {
  15874. return hour >= 3 ? hour : hour + 12;
  15875. } else if (meridiem === 'বিকাল') {
  15876. return hour + 12;
  15877. } else if (meridiem === 'সন্ধ্যা') {
  15878. return hour + 12;
  15879. }
  15880. },
  15881. meridiem: function meridiem(hour, minute, isLower) {
  15882. if (hour < 4) {
  15883. return 'রাত';
  15884. } else if (hour < 6) {
  15885. return 'ভোর';
  15886. } else if (hour < 12) {
  15887. return 'সকাল';
  15888. } else if (hour < 15) {
  15889. return 'দুপুর';
  15890. } else if (hour < 18) {
  15891. return 'বিকাল';
  15892. } else if (hour < 20) {
  15893. return 'সন্ধ্যা';
  15894. } else {
  15895. return 'রাত';
  15896. }
  15897. },
  15898. week: {
  15899. dow: 0, // Sunday is the first day of the week.
  15900. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15901. } });
  15902. return bnBd;
  15903. });
  15904. /***/ }),
  15905. /* 30 */
  15906. /*!***************************************************************************!*\
  15907. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/bo.js ***!
  15908. \***************************************************************************/
  15909. /*! no static exports found */
  15910. /***/ (function(module, exports, __webpack_require__) {
  15911. //! moment.js locale configuration
  15912. //! locale : Tibetan [bo]
  15913. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  15914. ;(function (global, factory) {
  15915. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  15916. undefined;
  15917. })(this, function (moment) {'use strict';
  15918. //! moment.js locale configuration
  15919. var symbolMap = {
  15920. 1: '༡',
  15921. 2: '༢',
  15922. 3: '༣',
  15923. 4: '༤',
  15924. 5: '༥',
  15925. 6: '༦',
  15926. 7: '༧',
  15927. 8: '༨',
  15928. 9: '༩',
  15929. 0: '༠' },
  15930. numberMap = {
  15931. '༡': '1',
  15932. '༢': '2',
  15933. '༣': '3',
  15934. '༤': '4',
  15935. '༥': '5',
  15936. '༦': '6',
  15937. '༧': '7',
  15938. '༨': '8',
  15939. '༩': '9',
  15940. '༠': '0' };
  15941. var bo = moment.defineLocale('bo', {
  15942. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  15943. '_'),
  15944. monthsShort:
  15945. 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  15946. '_'),
  15947. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  15948. monthsParseExact: true,
  15949. weekdays:
  15950. 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  15951. '_'),
  15952. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  15953. '_'),
  15954. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  15955. longDateFormat: {
  15956. LT: 'A h:mm',
  15957. LTS: 'A h:mm:ss',
  15958. L: 'DD/MM/YYYY',
  15959. LL: 'D MMMM YYYY',
  15960. LLL: 'D MMMM YYYY, A h:mm',
  15961. LLLL: 'dddd, D MMMM YYYY, A h:mm' },
  15962. calendar: {
  15963. sameDay: '[དི་རིང] LT',
  15964. nextDay: '[སང་ཉིན] LT',
  15965. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  15966. lastDay: '[ཁ་སང] LT',
  15967. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  15968. sameElse: 'L' },
  15969. relativeTime: {
  15970. future: '%s ལ་',
  15971. past: '%s སྔན་ལ',
  15972. s: 'ལམ་སང',
  15973. ss: '%d སྐར་ཆ།',
  15974. m: 'སྐར་མ་གཅིག',
  15975. mm: '%d སྐར་མ',
  15976. h: 'ཆུ་ཚོད་གཅིག',
  15977. hh: '%d ཆུ་ཚོད',
  15978. d: 'ཉིན་གཅིག',
  15979. dd: '%d ཉིན་',
  15980. M: 'ཟླ་བ་གཅིག',
  15981. MM: '%d ཟླ་བ',
  15982. y: 'ལོ་གཅིག',
  15983. yy: '%d ལོ' },
  15984. preparse: function preparse(string) {
  15985. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  15986. return numberMap[match];
  15987. });
  15988. },
  15989. postformat: function postformat(string) {
  15990. return string.replace(/\d/g, function (match) {
  15991. return symbolMap[match];
  15992. });
  15993. },
  15994. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  15995. meridiemHour: function meridiemHour(hour, meridiem) {
  15996. if (hour === 12) {
  15997. hour = 0;
  15998. }
  15999. if (
  16000. meridiem === 'མཚན་མོ' && hour >= 4 ||
  16001. meridiem === 'ཉིན་གུང' && hour < 5 ||
  16002. meridiem === 'དགོང་དག')
  16003. {
  16004. return hour + 12;
  16005. } else {
  16006. return hour;
  16007. }
  16008. },
  16009. meridiem: function meridiem(hour, minute, isLower) {
  16010. if (hour < 4) {
  16011. return 'མཚན་མོ';
  16012. } else if (hour < 10) {
  16013. return 'ཞོགས་ཀས';
  16014. } else if (hour < 17) {
  16015. return 'ཉིན་གུང';
  16016. } else if (hour < 20) {
  16017. return 'དགོང་དག';
  16018. } else {
  16019. return 'མཚན་མོ';
  16020. }
  16021. },
  16022. week: {
  16023. dow: 0, // Sunday is the first day of the week.
  16024. doy: 6 // The week that contains Jan 6th is the first week of the year.
  16025. } });
  16026. return bo;
  16027. });
  16028. /***/ }),
  16029. /* 31 */
  16030. /*!***************************************************************************!*\
  16031. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/br.js ***!
  16032. \***************************************************************************/
  16033. /*! no static exports found */
  16034. /***/ (function(module, exports, __webpack_require__) {
  16035. //! moment.js locale configuration
  16036. //! locale : Breton [br]
  16037. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  16038. ;(function (global, factory) {
  16039. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16040. undefined;
  16041. })(this, function (moment) {'use strict';
  16042. //! moment.js locale configuration
  16043. function relativeTimeWithMutation(number, withoutSuffix, key) {
  16044. var format = {
  16045. mm: 'munutenn',
  16046. MM: 'miz',
  16047. dd: 'devezh' };
  16048. return number + ' ' + mutation(format[key], number);
  16049. }
  16050. function specialMutationForYears(number) {
  16051. switch (lastNumber(number)) {
  16052. case 1:
  16053. case 3:
  16054. case 4:
  16055. case 5:
  16056. case 9:
  16057. return number + ' bloaz';
  16058. default:
  16059. return number + ' vloaz';}
  16060. }
  16061. function lastNumber(number) {
  16062. if (number > 9) {
  16063. return lastNumber(number % 10);
  16064. }
  16065. return number;
  16066. }
  16067. function mutation(text, number) {
  16068. if (number === 2) {
  16069. return softMutation(text);
  16070. }
  16071. return text;
  16072. }
  16073. function softMutation(text) {
  16074. var mutationTable = {
  16075. m: 'v',
  16076. b: 'v',
  16077. d: 'z' };
  16078. if (mutationTable[text.charAt(0)] === undefined) {
  16079. return text;
  16080. }
  16081. return mutationTable[text.charAt(0)] + text.substring(1);
  16082. }
  16083. var monthsParse = [
  16084. /^gen/i,
  16085. /^c[ʼ\']hwe/i,
  16086. /^meu/i,
  16087. /^ebr/i,
  16088. /^mae/i,
  16089. /^(mez|eve)/i,
  16090. /^gou/i,
  16091. /^eos/i,
  16092. /^gwe/i,
  16093. /^her/i,
  16094. /^du/i,
  16095. /^ker/i],
  16096. monthsRegex =
  16097. /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  16098. monthsStrictRegex =
  16099. /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  16100. monthsShortStrictRegex =
  16101. /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  16102. fullWeekdaysParse = [
  16103. /^sul/i,
  16104. /^lun/i,
  16105. /^meurzh/i,
  16106. /^merc[ʼ\']her/i,
  16107. /^yaou/i,
  16108. /^gwener/i,
  16109. /^sadorn/i],
  16110. shortWeekdaysParse = [
  16111. /^Sul/i,
  16112. /^Lun/i,
  16113. /^Meu/i,
  16114. /^Mer/i,
  16115. /^Yao/i,
  16116. /^Gwe/i,
  16117. /^Sad/i],
  16118. minWeekdaysParse = [
  16119. /^Su/i,
  16120. /^Lu/i,
  16121. /^Me([^r]|$)/i,
  16122. /^Mer/i,
  16123. /^Ya/i,
  16124. /^Gw/i,
  16125. /^Sa/i];
  16126. var br = moment.defineLocale('br', {
  16127. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
  16128. '_'),
  16129. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  16130. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  16131. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  16132. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  16133. weekdaysParse: minWeekdaysParse,
  16134. fullWeekdaysParse: fullWeekdaysParse,
  16135. shortWeekdaysParse: shortWeekdaysParse,
  16136. minWeekdaysParse: minWeekdaysParse,
  16137. monthsRegex: monthsRegex,
  16138. monthsShortRegex: monthsRegex,
  16139. monthsStrictRegex: monthsStrictRegex,
  16140. monthsShortStrictRegex: monthsShortStrictRegex,
  16141. monthsParse: monthsParse,
  16142. longMonthsParse: monthsParse,
  16143. shortMonthsParse: monthsParse,
  16144. longDateFormat: {
  16145. LT: 'HH:mm',
  16146. LTS: 'HH:mm:ss',
  16147. L: 'DD/MM/YYYY',
  16148. LL: 'D [a viz] MMMM YYYY',
  16149. LLL: 'D [a viz] MMMM YYYY HH:mm',
  16150. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm' },
  16151. calendar: {
  16152. sameDay: '[Hiziv da] LT',
  16153. nextDay: '[Warcʼhoazh da] LT',
  16154. nextWeek: 'dddd [da] LT',
  16155. lastDay: '[Decʼh da] LT',
  16156. lastWeek: 'dddd [paset da] LT',
  16157. sameElse: 'L' },
  16158. relativeTime: {
  16159. future: 'a-benn %s',
  16160. past: '%s ʼzo',
  16161. s: 'un nebeud segondennoù',
  16162. ss: '%d eilenn',
  16163. m: 'ur vunutenn',
  16164. mm: relativeTimeWithMutation,
  16165. h: 'un eur',
  16166. hh: '%d eur',
  16167. d: 'un devezh',
  16168. dd: relativeTimeWithMutation,
  16169. M: 'ur miz',
  16170. MM: relativeTimeWithMutation,
  16171. y: 'ur bloaz',
  16172. yy: specialMutationForYears },
  16173. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  16174. ordinal: function ordinal(number) {
  16175. var output = number === 1 ? 'añ' : 'vet';
  16176. return number + output;
  16177. },
  16178. week: {
  16179. dow: 1, // Monday is the first day of the week.
  16180. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16181. },
  16182. meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
  16183. isPM: function isPM(token) {
  16184. return token === 'g.m.';
  16185. },
  16186. meridiem: function meridiem(hour, minute, isLower) {
  16187. return hour < 12 ? 'a.m.' : 'g.m.';
  16188. } });
  16189. return br;
  16190. });
  16191. /***/ }),
  16192. /* 32 */
  16193. /*!***************************************************************************!*\
  16194. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/bs.js ***!
  16195. \***************************************************************************/
  16196. /*! no static exports found */
  16197. /***/ (function(module, exports, __webpack_require__) {
  16198. //! moment.js locale configuration
  16199. //! locale : Bosnian [bs]
  16200. //! author : Nedim Cholich : https://github.com/frontyard
  16201. //! based on (hr) translation by Bojan Marković
  16202. ;(function (global, factory) {
  16203. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16204. undefined;
  16205. })(this, function (moment) {'use strict';
  16206. //! moment.js locale configuration
  16207. function translate(number, withoutSuffix, key) {
  16208. var result = number + ' ';
  16209. switch (key) {
  16210. case 'ss':
  16211. if (number === 1) {
  16212. result += 'sekunda';
  16213. } else if (number === 2 || number === 3 || number === 4) {
  16214. result += 'sekunde';
  16215. } else {
  16216. result += 'sekundi';
  16217. }
  16218. return result;
  16219. case 'm':
  16220. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  16221. case 'mm':
  16222. if (number === 1) {
  16223. result += 'minuta';
  16224. } else if (number === 2 || number === 3 || number === 4) {
  16225. result += 'minute';
  16226. } else {
  16227. result += 'minuta';
  16228. }
  16229. return result;
  16230. case 'h':
  16231. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  16232. case 'hh':
  16233. if (number === 1) {
  16234. result += 'sat';
  16235. } else if (number === 2 || number === 3 || number === 4) {
  16236. result += 'sata';
  16237. } else {
  16238. result += 'sati';
  16239. }
  16240. return result;
  16241. case 'dd':
  16242. if (number === 1) {
  16243. result += 'dan';
  16244. } else {
  16245. result += 'dana';
  16246. }
  16247. return result;
  16248. case 'MM':
  16249. if (number === 1) {
  16250. result += 'mjesec';
  16251. } else if (number === 2 || number === 3 || number === 4) {
  16252. result += 'mjeseca';
  16253. } else {
  16254. result += 'mjeseci';
  16255. }
  16256. return result;
  16257. case 'yy':
  16258. if (number === 1) {
  16259. result += 'godina';
  16260. } else if (number === 2 || number === 3 || number === 4) {
  16261. result += 'godine';
  16262. } else {
  16263. result += 'godina';
  16264. }
  16265. return result;}
  16266. }
  16267. var bs = moment.defineLocale('bs', {
  16268. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  16269. '_'),
  16270. monthsShort:
  16271. 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  16272. '_'),
  16273. monthsParseExact: true,
  16274. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  16275. '_'),
  16276. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  16277. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  16278. weekdaysParseExact: true,
  16279. longDateFormat: {
  16280. LT: 'H:mm',
  16281. LTS: 'H:mm:ss',
  16282. L: 'DD.MM.YYYY',
  16283. LL: 'D. MMMM YYYY',
  16284. LLL: 'D. MMMM YYYY H:mm',
  16285. LLLL: 'dddd, D. MMMM YYYY H:mm' },
  16286. calendar: {
  16287. sameDay: '[danas u] LT',
  16288. nextDay: '[sutra u] LT',
  16289. nextWeek: function nextWeek() {
  16290. switch (this.day()) {
  16291. case 0:
  16292. return '[u] [nedjelju] [u] LT';
  16293. case 3:
  16294. return '[u] [srijedu] [u] LT';
  16295. case 6:
  16296. return '[u] [subotu] [u] LT';
  16297. case 1:
  16298. case 2:
  16299. case 4:
  16300. case 5:
  16301. return '[u] dddd [u] LT';}
  16302. },
  16303. lastDay: '[jučer u] LT',
  16304. lastWeek: function lastWeek() {
  16305. switch (this.day()) {
  16306. case 0:
  16307. case 3:
  16308. return '[prošlu] dddd [u] LT';
  16309. case 6:
  16310. return '[prošle] [subote] [u] LT';
  16311. case 1:
  16312. case 2:
  16313. case 4:
  16314. case 5:
  16315. return '[prošli] dddd [u] LT';}
  16316. },
  16317. sameElse: 'L' },
  16318. relativeTime: {
  16319. future: 'za %s',
  16320. past: 'prije %s',
  16321. s: 'par sekundi',
  16322. ss: translate,
  16323. m: translate,
  16324. mm: translate,
  16325. h: translate,
  16326. hh: translate,
  16327. d: 'dan',
  16328. dd: translate,
  16329. M: 'mjesec',
  16330. MM: translate,
  16331. y: 'godinu',
  16332. yy: translate },
  16333. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16334. ordinal: '%d.',
  16335. week: {
  16336. dow: 1, // Monday is the first day of the week.
  16337. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16338. } });
  16339. return bs;
  16340. });
  16341. /***/ }),
  16342. /* 33 */
  16343. /*!***************************************************************************!*\
  16344. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ca.js ***!
  16345. \***************************************************************************/
  16346. /*! no static exports found */
  16347. /***/ (function(module, exports, __webpack_require__) {
  16348. //! moment.js locale configuration
  16349. //! locale : Catalan [ca]
  16350. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  16351. ;(function (global, factory) {
  16352. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16353. undefined;
  16354. })(this, function (moment) {'use strict';
  16355. //! moment.js locale configuration
  16356. var ca = moment.defineLocale('ca', {
  16357. months: {
  16358. standalone:
  16359. 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  16360. '_'),
  16361. format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
  16362. '_'),
  16363. isFormat: /D[oD]?(\s)+MMMM/ },
  16364. monthsShort:
  16365. 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  16366. '_'),
  16367. monthsParseExact: true,
  16368. weekdays:
  16369. 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  16370. '_'),
  16371. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  16372. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  16373. weekdaysParseExact: true,
  16374. longDateFormat: {
  16375. LT: 'H:mm',
  16376. LTS: 'H:mm:ss',
  16377. L: 'DD/MM/YYYY',
  16378. LL: 'D MMMM [de] YYYY',
  16379. ll: 'D MMM YYYY',
  16380. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  16381. lll: 'D MMM YYYY, H:mm',
  16382. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  16383. llll: 'ddd D MMM YYYY, H:mm' },
  16384. calendar: {
  16385. sameDay: function sameDay() {
  16386. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16387. },
  16388. nextDay: function nextDay() {
  16389. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16390. },
  16391. nextWeek: function nextWeek() {
  16392. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16393. },
  16394. lastDay: function lastDay() {
  16395. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16396. },
  16397. lastWeek: function lastWeek() {
  16398. return (
  16399. '[el] dddd [passat a ' + (
  16400. this.hours() !== 1 ? 'les' : 'la') +
  16401. '] LT');
  16402. },
  16403. sameElse: 'L' },
  16404. relativeTime: {
  16405. future: "d'aquí %s",
  16406. past: 'fa %s',
  16407. s: 'uns segons',
  16408. ss: '%d segons',
  16409. m: 'un minut',
  16410. mm: '%d minuts',
  16411. h: 'una hora',
  16412. hh: '%d hores',
  16413. d: 'un dia',
  16414. dd: '%d dies',
  16415. M: 'un mes',
  16416. MM: '%d mesos',
  16417. y: 'un any',
  16418. yy: '%d anys' },
  16419. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  16420. ordinal: function ordinal(number, period) {
  16421. var output =
  16422. number === 1 ?
  16423. 'r' :
  16424. number === 2 ?
  16425. 'n' :
  16426. number === 3 ?
  16427. 'r' :
  16428. number === 4 ?
  16429. 't' :
  16430. 'è';
  16431. if (period === 'w' || period === 'W') {
  16432. output = 'a';
  16433. }
  16434. return number + output;
  16435. },
  16436. week: {
  16437. dow: 1, // Monday is the first day of the week.
  16438. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16439. } });
  16440. return ca;
  16441. });
  16442. /***/ }),
  16443. /* 34 */
  16444. /*!***************************************************************************!*\
  16445. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/cs.js ***!
  16446. \***************************************************************************/
  16447. /*! no static exports found */
  16448. /***/ (function(module, exports, __webpack_require__) {
  16449. //! moment.js locale configuration
  16450. //! locale : Czech [cs]
  16451. //! author : petrbela : https://github.com/petrbela
  16452. ;(function (global, factory) {
  16453. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16454. undefined;
  16455. })(this, function (moment) {'use strict';
  16456. //! moment.js locale configuration
  16457. var months = {
  16458. format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  16459. '_'),
  16460. standalone:
  16461. 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
  16462. '_') },
  16463. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  16464. monthsParse = [
  16465. /^led/i,
  16466. /^úno/i,
  16467. /^bře/i,
  16468. /^dub/i,
  16469. /^kvě/i,
  16470. /^(čvn|červen$|června)/i,
  16471. /^(čvc|červenec|července)/i,
  16472. /^srp/i,
  16473. /^zář/i,
  16474. /^říj/i,
  16475. /^lis/i,
  16476. /^pro/i],
  16477. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  16478. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  16479. monthsRegex =
  16480. /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  16481. function plural(n) {
  16482. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  16483. }
  16484. function translate(number, withoutSuffix, key, isFuture) {
  16485. var result = number + ' ';
  16486. switch (key) {
  16487. case 's': // a few seconds / in a few seconds / a few seconds ago
  16488. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  16489. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  16490. if (withoutSuffix || isFuture) {
  16491. return result + (plural(number) ? 'sekundy' : 'sekund');
  16492. } else {
  16493. return result + 'sekundami';
  16494. }
  16495. case 'm': // a minute / in a minute / a minute ago
  16496. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  16497. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  16498. if (withoutSuffix || isFuture) {
  16499. return result + (plural(number) ? 'minuty' : 'minut');
  16500. } else {
  16501. return result + 'minutami';
  16502. }
  16503. case 'h': // an hour / in an hour / an hour ago
  16504. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  16505. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  16506. if (withoutSuffix || isFuture) {
  16507. return result + (plural(number) ? 'hodiny' : 'hodin');
  16508. } else {
  16509. return result + 'hodinami';
  16510. }
  16511. case 'd': // a day / in a day / a day ago
  16512. return withoutSuffix || isFuture ? 'den' : 'dnem';
  16513. case 'dd': // 9 days / in 9 days / 9 days ago
  16514. if (withoutSuffix || isFuture) {
  16515. return result + (plural(number) ? 'dny' : 'dní');
  16516. } else {
  16517. return result + 'dny';
  16518. }
  16519. case 'M': // a month / in a month / a month ago
  16520. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  16521. case 'MM': // 9 months / in 9 months / 9 months ago
  16522. if (withoutSuffix || isFuture) {
  16523. return result + (plural(number) ? 'měsíce' : 'měsíců');
  16524. } else {
  16525. return result + 'měsíci';
  16526. }
  16527. case 'y': // a year / in a year / a year ago
  16528. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  16529. case 'yy': // 9 years / in 9 years / 9 years ago
  16530. if (withoutSuffix || isFuture) {
  16531. return result + (plural(number) ? 'roky' : 'let');
  16532. } else {
  16533. return result + 'lety';
  16534. }}
  16535. }
  16536. var cs = moment.defineLocale('cs', {
  16537. months: months,
  16538. monthsShort: monthsShort,
  16539. monthsRegex: monthsRegex,
  16540. monthsShortRegex: monthsRegex,
  16541. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  16542. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  16543. monthsStrictRegex:
  16544. /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  16545. monthsShortStrictRegex:
  16546. /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  16547. monthsParse: monthsParse,
  16548. longMonthsParse: monthsParse,
  16549. shortMonthsParse: monthsParse,
  16550. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  16551. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  16552. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  16553. longDateFormat: {
  16554. LT: 'H:mm',
  16555. LTS: 'H:mm:ss',
  16556. L: 'DD.MM.YYYY',
  16557. LL: 'D. MMMM YYYY',
  16558. LLL: 'D. MMMM YYYY H:mm',
  16559. LLLL: 'dddd D. MMMM YYYY H:mm',
  16560. l: 'D. M. YYYY' },
  16561. calendar: {
  16562. sameDay: '[dnes v] LT',
  16563. nextDay: '[zítra v] LT',
  16564. nextWeek: function nextWeek() {
  16565. switch (this.day()) {
  16566. case 0:
  16567. return '[v neděli v] LT';
  16568. case 1:
  16569. case 2:
  16570. return '[v] dddd [v] LT';
  16571. case 3:
  16572. return '[ve středu v] LT';
  16573. case 4:
  16574. return '[ve čtvrtek v] LT';
  16575. case 5:
  16576. return '[v pátek v] LT';
  16577. case 6:
  16578. return '[v sobotu v] LT';}
  16579. },
  16580. lastDay: '[včera v] LT',
  16581. lastWeek: function lastWeek() {
  16582. switch (this.day()) {
  16583. case 0:
  16584. return '[minulou neděli v] LT';
  16585. case 1:
  16586. case 2:
  16587. return '[minulé] dddd [v] LT';
  16588. case 3:
  16589. return '[minulou středu v] LT';
  16590. case 4:
  16591. case 5:
  16592. return '[minulý] dddd [v] LT';
  16593. case 6:
  16594. return '[minulou sobotu v] LT';}
  16595. },
  16596. sameElse: 'L' },
  16597. relativeTime: {
  16598. future: 'za %s',
  16599. past: 'před %s',
  16600. s: translate,
  16601. ss: translate,
  16602. m: translate,
  16603. mm: translate,
  16604. h: translate,
  16605. hh: translate,
  16606. d: translate,
  16607. dd: translate,
  16608. M: translate,
  16609. MM: translate,
  16610. y: translate,
  16611. yy: translate },
  16612. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16613. ordinal: '%d.',
  16614. week: {
  16615. dow: 1, // Monday is the first day of the week.
  16616. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16617. } });
  16618. return cs;
  16619. });
  16620. /***/ }),
  16621. /* 35 */
  16622. /*!***************************************************************************!*\
  16623. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/cv.js ***!
  16624. \***************************************************************************/
  16625. /*! no static exports found */
  16626. /***/ (function(module, exports, __webpack_require__) {
  16627. //! moment.js locale configuration
  16628. //! locale : Chuvash [cv]
  16629. //! author : Anatoly Mironov : https://github.com/mirontoli
  16630. ;(function (global, factory) {
  16631. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16632. undefined;
  16633. })(this, function (moment) {'use strict';
  16634. //! moment.js locale configuration
  16635. var cv = moment.defineLocale('cv', {
  16636. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  16637. '_'),
  16638. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  16639. weekdays:
  16640. 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  16641. '_'),
  16642. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  16643. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  16644. longDateFormat: {
  16645. LT: 'HH:mm',
  16646. LTS: 'HH:mm:ss',
  16647. L: 'DD-MM-YYYY',
  16648. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  16649. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  16650. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' },
  16651. calendar: {
  16652. sameDay: '[Паян] LT [сехетре]',
  16653. nextDay: '[Ыран] LT [сехетре]',
  16654. lastDay: '[Ӗнер] LT [сехетре]',
  16655. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  16656. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  16657. sameElse: 'L' },
  16658. relativeTime: {
  16659. future: function future(output) {
  16660. var affix = /сехет$/i.exec(output) ?
  16661. 'рен' :
  16662. /ҫул$/i.exec(output) ?
  16663. 'тан' :
  16664. 'ран';
  16665. return output + affix;
  16666. },
  16667. past: '%s каялла',
  16668. s: 'пӗр-ик ҫеккунт',
  16669. ss: '%d ҫеккунт',
  16670. m: 'пӗр минут',
  16671. mm: '%d минут',
  16672. h: 'пӗр сехет',
  16673. hh: '%d сехет',
  16674. d: 'пӗр кун',
  16675. dd: '%d кун',
  16676. M: 'пӗр уйӑх',
  16677. MM: '%d уйӑх',
  16678. y: 'пӗр ҫул',
  16679. yy: '%d ҫул' },
  16680. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  16681. ordinal: '%d-мӗш',
  16682. week: {
  16683. dow: 1, // Monday is the first day of the week.
  16684. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16685. } });
  16686. return cv;
  16687. });
  16688. /***/ }),
  16689. /* 36 */
  16690. /*!***************************************************************************!*\
  16691. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/cy.js ***!
  16692. \***************************************************************************/
  16693. /*! no static exports found */
  16694. /***/ (function(module, exports, __webpack_require__) {
  16695. //! moment.js locale configuration
  16696. //! locale : Welsh [cy]
  16697. //! author : Robert Allen : https://github.com/robgallen
  16698. //! author : https://github.com/ryangreaves
  16699. ;(function (global, factory) {
  16700. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16701. undefined;
  16702. })(this, function (moment) {'use strict';
  16703. //! moment.js locale configuration
  16704. var cy = moment.defineLocale('cy', {
  16705. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  16706. '_'),
  16707. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  16708. '_'),
  16709. weekdays:
  16710. 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  16711. '_'),
  16712. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  16713. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  16714. weekdaysParseExact: true,
  16715. // time formats are the same as en-gb
  16716. longDateFormat: {
  16717. LT: 'HH:mm',
  16718. LTS: 'HH:mm:ss',
  16719. L: 'DD/MM/YYYY',
  16720. LL: 'D MMMM YYYY',
  16721. LLL: 'D MMMM YYYY HH:mm',
  16722. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  16723. calendar: {
  16724. sameDay: '[Heddiw am] LT',
  16725. nextDay: '[Yfory am] LT',
  16726. nextWeek: 'dddd [am] LT',
  16727. lastDay: '[Ddoe am] LT',
  16728. lastWeek: 'dddd [diwethaf am] LT',
  16729. sameElse: 'L' },
  16730. relativeTime: {
  16731. future: 'mewn %s',
  16732. past: '%s yn ôl',
  16733. s: 'ychydig eiliadau',
  16734. ss: '%d eiliad',
  16735. m: 'munud',
  16736. mm: '%d munud',
  16737. h: 'awr',
  16738. hh: '%d awr',
  16739. d: 'diwrnod',
  16740. dd: '%d diwrnod',
  16741. M: 'mis',
  16742. MM: '%d mis',
  16743. y: 'blwyddyn',
  16744. yy: '%d flynedd' },
  16745. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  16746. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  16747. ordinal: function ordinal(number) {
  16748. var b = number,
  16749. output = '',
  16750. lookup = [
  16751. '',
  16752. 'af',
  16753. 'il',
  16754. 'ydd',
  16755. 'ydd',
  16756. 'ed',
  16757. 'ed',
  16758. 'ed',
  16759. 'fed',
  16760. 'fed',
  16761. 'fed', // 1af to 10fed
  16762. 'eg',
  16763. 'fed',
  16764. 'eg',
  16765. 'eg',
  16766. 'fed',
  16767. 'eg',
  16768. 'eg',
  16769. 'fed',
  16770. 'eg',
  16771. 'fed' // 11eg to 20fed
  16772. ];
  16773. if (b > 20) {
  16774. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  16775. output = 'fed'; // not 30ain, 70ain or 90ain
  16776. } else {
  16777. output = 'ain';
  16778. }
  16779. } else if (b > 0) {
  16780. output = lookup[b];
  16781. }
  16782. return number + output;
  16783. },
  16784. week: {
  16785. dow: 1, // Monday is the first day of the week.
  16786. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16787. } });
  16788. return cy;
  16789. });
  16790. /***/ }),
  16791. /* 37 */
  16792. /*!***************************************************************************!*\
  16793. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/da.js ***!
  16794. \***************************************************************************/
  16795. /*! no static exports found */
  16796. /***/ (function(module, exports, __webpack_require__) {
  16797. //! moment.js locale configuration
  16798. //! locale : Danish [da]
  16799. //! author : Ulrik Nielsen : https://github.com/mrbase
  16800. ;(function (global, factory) {
  16801. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16802. undefined;
  16803. })(this, function (moment) {'use strict';
  16804. //! moment.js locale configuration
  16805. var da = moment.defineLocale('da', {
  16806. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  16807. '_'),
  16808. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  16809. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  16810. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  16811. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  16812. longDateFormat: {
  16813. LT: 'HH:mm',
  16814. LTS: 'HH:mm:ss',
  16815. L: 'DD.MM.YYYY',
  16816. LL: 'D. MMMM YYYY',
  16817. LLL: 'D. MMMM YYYY HH:mm',
  16818. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm' },
  16819. calendar: {
  16820. sameDay: '[i dag kl.] LT',
  16821. nextDay: '[i morgen kl.] LT',
  16822. nextWeek: 'på dddd [kl.] LT',
  16823. lastDay: '[i går kl.] LT',
  16824. lastWeek: '[i] dddd[s kl.] LT',
  16825. sameElse: 'L' },
  16826. relativeTime: {
  16827. future: 'om %s',
  16828. past: '%s siden',
  16829. s: 'få sekunder',
  16830. ss: '%d sekunder',
  16831. m: 'et minut',
  16832. mm: '%d minutter',
  16833. h: 'en time',
  16834. hh: '%d timer',
  16835. d: 'en dag',
  16836. dd: '%d dage',
  16837. M: 'en måned',
  16838. MM: '%d måneder',
  16839. y: 'et år',
  16840. yy: '%d år' },
  16841. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16842. ordinal: '%d.',
  16843. week: {
  16844. dow: 1, // Monday is the first day of the week.
  16845. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16846. } });
  16847. return da;
  16848. });
  16849. /***/ }),
  16850. /* 38 */
  16851. /*!***************************************************************************!*\
  16852. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/de.js ***!
  16853. \***************************************************************************/
  16854. /*! no static exports found */
  16855. /***/ (function(module, exports, __webpack_require__) {
  16856. //! moment.js locale configuration
  16857. //! locale : German [de]
  16858. //! author : lluchs : https://github.com/lluchs
  16859. //! author: Menelion Elensúle: https://github.com/Oire
  16860. //! author : Mikolaj Dadela : https://github.com/mik01aj
  16861. ;(function (global, factory) {
  16862. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16863. undefined;
  16864. })(this, function (moment) {'use strict';
  16865. //! moment.js locale configuration
  16866. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16867. var format = {
  16868. m: ['eine Minute', 'einer Minute'],
  16869. h: ['eine Stunde', 'einer Stunde'],
  16870. d: ['ein Tag', 'einem Tag'],
  16871. dd: [number + ' Tage', number + ' Tagen'],
  16872. w: ['eine Woche', 'einer Woche'],
  16873. M: ['ein Monat', 'einem Monat'],
  16874. MM: [number + ' Monate', number + ' Monaten'],
  16875. y: ['ein Jahr', 'einem Jahr'],
  16876. yy: [number + ' Jahre', number + ' Jahren'] };
  16877. return withoutSuffix ? format[key][0] : format[key][1];
  16878. }
  16879. var de = moment.defineLocale('de', {
  16880. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  16881. '_'),
  16882. monthsShort:
  16883. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16884. monthsParseExact: true,
  16885. weekdays:
  16886. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  16887. '_'),
  16888. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  16889. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16890. weekdaysParseExact: true,
  16891. longDateFormat: {
  16892. LT: 'HH:mm',
  16893. LTS: 'HH:mm:ss',
  16894. L: 'DD.MM.YYYY',
  16895. LL: 'D. MMMM YYYY',
  16896. LLL: 'D. MMMM YYYY HH:mm',
  16897. LLLL: 'dddd, D. MMMM YYYY HH:mm' },
  16898. calendar: {
  16899. sameDay: '[heute um] LT [Uhr]',
  16900. sameElse: 'L',
  16901. nextDay: '[morgen um] LT [Uhr]',
  16902. nextWeek: 'dddd [um] LT [Uhr]',
  16903. lastDay: '[gestern um] LT [Uhr]',
  16904. lastWeek: '[letzten] dddd [um] LT [Uhr]' },
  16905. relativeTime: {
  16906. future: 'in %s',
  16907. past: 'vor %s',
  16908. s: 'ein paar Sekunden',
  16909. ss: '%d Sekunden',
  16910. m: processRelativeTime,
  16911. mm: '%d Minuten',
  16912. h: processRelativeTime,
  16913. hh: '%d Stunden',
  16914. d: processRelativeTime,
  16915. dd: processRelativeTime,
  16916. w: processRelativeTime,
  16917. ww: '%d Wochen',
  16918. M: processRelativeTime,
  16919. MM: processRelativeTime,
  16920. y: processRelativeTime,
  16921. yy: processRelativeTime },
  16922. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16923. ordinal: '%d.',
  16924. week: {
  16925. dow: 1, // Monday is the first day of the week.
  16926. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16927. } });
  16928. return de;
  16929. });
  16930. /***/ }),
  16931. /* 39 */
  16932. /*!******************************************************************************!*\
  16933. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/de-at.js ***!
  16934. \******************************************************************************/
  16935. /*! no static exports found */
  16936. /***/ (function(module, exports, __webpack_require__) {
  16937. //! moment.js locale configuration
  16938. //! locale : German (Austria) [de-at]
  16939. //! author : lluchs : https://github.com/lluchs
  16940. //! author: Menelion Elensúle: https://github.com/Oire
  16941. //! author : Martin Groller : https://github.com/MadMG
  16942. //! author : Mikolaj Dadela : https://github.com/mik01aj
  16943. ;(function (global, factory) {
  16944. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  16945. undefined;
  16946. })(this, function (moment) {'use strict';
  16947. //! moment.js locale configuration
  16948. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16949. var format = {
  16950. m: ['eine Minute', 'einer Minute'],
  16951. h: ['eine Stunde', 'einer Stunde'],
  16952. d: ['ein Tag', 'einem Tag'],
  16953. dd: [number + ' Tage', number + ' Tagen'],
  16954. w: ['eine Woche', 'einer Woche'],
  16955. M: ['ein Monat', 'einem Monat'],
  16956. MM: [number + ' Monate', number + ' Monaten'],
  16957. y: ['ein Jahr', 'einem Jahr'],
  16958. yy: [number + ' Jahre', number + ' Jahren'] };
  16959. return withoutSuffix ? format[key][0] : format[key][1];
  16960. }
  16961. var deAt = moment.defineLocale('de-at', {
  16962. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  16963. '_'),
  16964. monthsShort:
  16965. 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16966. monthsParseExact: true,
  16967. weekdays:
  16968. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  16969. '_'),
  16970. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  16971. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16972. weekdaysParseExact: true,
  16973. longDateFormat: {
  16974. LT: 'HH:mm',
  16975. LTS: 'HH:mm:ss',
  16976. L: 'DD.MM.YYYY',
  16977. LL: 'D. MMMM YYYY',
  16978. LLL: 'D. MMMM YYYY HH:mm',
  16979. LLLL: 'dddd, D. MMMM YYYY HH:mm' },
  16980. calendar: {
  16981. sameDay: '[heute um] LT [Uhr]',
  16982. sameElse: 'L',
  16983. nextDay: '[morgen um] LT [Uhr]',
  16984. nextWeek: 'dddd [um] LT [Uhr]',
  16985. lastDay: '[gestern um] LT [Uhr]',
  16986. lastWeek: '[letzten] dddd [um] LT [Uhr]' },
  16987. relativeTime: {
  16988. future: 'in %s',
  16989. past: 'vor %s',
  16990. s: 'ein paar Sekunden',
  16991. ss: '%d Sekunden',
  16992. m: processRelativeTime,
  16993. mm: '%d Minuten',
  16994. h: processRelativeTime,
  16995. hh: '%d Stunden',
  16996. d: processRelativeTime,
  16997. dd: processRelativeTime,
  16998. w: processRelativeTime,
  16999. ww: '%d Wochen',
  17000. M: processRelativeTime,
  17001. MM: processRelativeTime,
  17002. y: processRelativeTime,
  17003. yy: processRelativeTime },
  17004. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17005. ordinal: '%d.',
  17006. week: {
  17007. dow: 1, // Monday is the first day of the week.
  17008. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17009. } });
  17010. return deAt;
  17011. });
  17012. /***/ }),
  17013. /* 40 */
  17014. /*!******************************************************************************!*\
  17015. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/de-ch.js ***!
  17016. \******************************************************************************/
  17017. /*! no static exports found */
  17018. /***/ (function(module, exports, __webpack_require__) {
  17019. //! moment.js locale configuration
  17020. //! locale : German (Switzerland) [de-ch]
  17021. //! author : sschueller : https://github.com/sschueller
  17022. ;(function (global, factory) {
  17023. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17024. undefined;
  17025. })(this, function (moment) {'use strict';
  17026. //! moment.js locale configuration
  17027. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  17028. var format = {
  17029. m: ['eine Minute', 'einer Minute'],
  17030. h: ['eine Stunde', 'einer Stunde'],
  17031. d: ['ein Tag', 'einem Tag'],
  17032. dd: [number + ' Tage', number + ' Tagen'],
  17033. w: ['eine Woche', 'einer Woche'],
  17034. M: ['ein Monat', 'einem Monat'],
  17035. MM: [number + ' Monate', number + ' Monaten'],
  17036. y: ['ein Jahr', 'einem Jahr'],
  17037. yy: [number + ' Jahre', number + ' Jahren'] };
  17038. return withoutSuffix ? format[key][0] : format[key][1];
  17039. }
  17040. var deCh = moment.defineLocale('de-ch', {
  17041. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  17042. '_'),
  17043. monthsShort:
  17044. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  17045. monthsParseExact: true,
  17046. weekdays:
  17047. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  17048. '_'),
  17049. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  17050. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  17051. weekdaysParseExact: true,
  17052. longDateFormat: {
  17053. LT: 'HH:mm',
  17054. LTS: 'HH:mm:ss',
  17055. L: 'DD.MM.YYYY',
  17056. LL: 'D. MMMM YYYY',
  17057. LLL: 'D. MMMM YYYY HH:mm',
  17058. LLLL: 'dddd, D. MMMM YYYY HH:mm' },
  17059. calendar: {
  17060. sameDay: '[heute um] LT [Uhr]',
  17061. sameElse: 'L',
  17062. nextDay: '[morgen um] LT [Uhr]',
  17063. nextWeek: 'dddd [um] LT [Uhr]',
  17064. lastDay: '[gestern um] LT [Uhr]',
  17065. lastWeek: '[letzten] dddd [um] LT [Uhr]' },
  17066. relativeTime: {
  17067. future: 'in %s',
  17068. past: 'vor %s',
  17069. s: 'ein paar Sekunden',
  17070. ss: '%d Sekunden',
  17071. m: processRelativeTime,
  17072. mm: '%d Minuten',
  17073. h: processRelativeTime,
  17074. hh: '%d Stunden',
  17075. d: processRelativeTime,
  17076. dd: processRelativeTime,
  17077. w: processRelativeTime,
  17078. ww: '%d Wochen',
  17079. M: processRelativeTime,
  17080. MM: processRelativeTime,
  17081. y: processRelativeTime,
  17082. yy: processRelativeTime },
  17083. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17084. ordinal: '%d.',
  17085. week: {
  17086. dow: 1, // Monday is the first day of the week.
  17087. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17088. } });
  17089. return deCh;
  17090. });
  17091. /***/ }),
  17092. /* 41 */
  17093. /*!***************************************************************************!*\
  17094. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/dv.js ***!
  17095. \***************************************************************************/
  17096. /*! no static exports found */
  17097. /***/ (function(module, exports, __webpack_require__) {
  17098. //! moment.js locale configuration
  17099. //! locale : Maldivian [dv]
  17100. //! author : Jawish Hameed : https://github.com/jawish
  17101. ;(function (global, factory) {
  17102. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17103. undefined;
  17104. })(this, function (moment) {'use strict';
  17105. //! moment.js locale configuration
  17106. var months = [
  17107. 'ޖެނުއަރީ',
  17108. 'ފެބްރުއަރީ',
  17109. 'މާރިޗު',
  17110. 'އޭޕްރީލު',
  17111. 'މޭ',
  17112. 'ޖޫން',
  17113. 'ޖުލައި',
  17114. 'އޯގަސްޓު',
  17115. 'ސެޕްޓެމްބަރު',
  17116. 'އޮކްޓޯބަރު',
  17117. 'ނޮވެމްބަރު',
  17118. 'ޑިސެމްބަރު'],
  17119. weekdays = [
  17120. 'އާދިއްތަ',
  17121. 'ހޯމަ',
  17122. 'އަންގާރަ',
  17123. 'ބުދަ',
  17124. 'ބުރާސްފަތި',
  17125. 'ހުކުރު',
  17126. 'ހޮނިހިރު'];
  17127. var dv = moment.defineLocale('dv', {
  17128. months: months,
  17129. monthsShort: months,
  17130. weekdays: weekdays,
  17131. weekdaysShort: weekdays,
  17132. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  17133. longDateFormat: {
  17134. LT: 'HH:mm',
  17135. LTS: 'HH:mm:ss',
  17136. L: 'D/M/YYYY',
  17137. LL: 'D MMMM YYYY',
  17138. LLL: 'D MMMM YYYY HH:mm',
  17139. LLLL: 'dddd D MMMM YYYY HH:mm' },
  17140. meridiemParse: /މކ|މފ/,
  17141. isPM: function isPM(input) {
  17142. return 'މފ' === input;
  17143. },
  17144. meridiem: function meridiem(hour, minute, isLower) {
  17145. if (hour < 12) {
  17146. return 'މކ';
  17147. } else {
  17148. return 'މފ';
  17149. }
  17150. },
  17151. calendar: {
  17152. sameDay: '[މިއަދު] LT',
  17153. nextDay: '[މާދަމާ] LT',
  17154. nextWeek: 'dddd LT',
  17155. lastDay: '[އިއްޔެ] LT',
  17156. lastWeek: '[ފާއިތުވި] dddd LT',
  17157. sameElse: 'L' },
  17158. relativeTime: {
  17159. future: 'ތެރޭގައި %s',
  17160. past: 'ކުރިން %s',
  17161. s: 'ސިކުންތުކޮޅެއް',
  17162. ss: 'd% ސިކުންތު',
  17163. m: 'މިނިޓެއް',
  17164. mm: 'މިނިޓު %d',
  17165. h: 'ގަޑިއިރެއް',
  17166. hh: 'ގަޑިއިރު %d',
  17167. d: 'ދުވަހެއް',
  17168. dd: 'ދުވަސް %d',
  17169. M: 'މަހެއް',
  17170. MM: 'މަސް %d',
  17171. y: 'އަހަރެއް',
  17172. yy: 'އަހަރު %d' },
  17173. preparse: function preparse(string) {
  17174. return string.replace(/،/g, ',');
  17175. },
  17176. postformat: function postformat(string) {
  17177. return string.replace(/,/g, '،');
  17178. },
  17179. week: {
  17180. dow: 7, // Sunday is the first day of the week.
  17181. doy: 12 // The week that contains Jan 12th is the first week of the year.
  17182. } });
  17183. return dv;
  17184. });
  17185. /***/ }),
  17186. /* 42 */
  17187. /*!***************************************************************************!*\
  17188. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/el.js ***!
  17189. \***************************************************************************/
  17190. /*! no static exports found */
  17191. /***/ (function(module, exports, __webpack_require__) {
  17192. //! moment.js locale configuration
  17193. //! locale : Greek [el]
  17194. //! author : Aggelos Karalias : https://github.com/mehiel
  17195. ;(function (global, factory) {
  17196. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17197. undefined;
  17198. })(this, function (moment) {'use strict';
  17199. //! moment.js locale configuration
  17200. function isFunction(input) {
  17201. return (
  17202. typeof Function !== 'undefined' && input instanceof Function ||
  17203. Object.prototype.toString.call(input) === '[object Function]');
  17204. }
  17205. var el = moment.defineLocale('el', {
  17206. monthsNominativeEl:
  17207. 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  17208. '_'),
  17209. monthsGenitiveEl:
  17210. 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  17211. '_'),
  17212. months: function months(momentToFormat, format) {
  17213. if (!momentToFormat) {
  17214. return this._monthsNominativeEl;
  17215. } else if (
  17216. typeof format === 'string' &&
  17217. /D/.test(format.substring(0, format.indexOf('MMMM'))))
  17218. {
  17219. // if there is a day number before 'MMMM'
  17220. return this._monthsGenitiveEl[momentToFormat.month()];
  17221. } else {
  17222. return this._monthsNominativeEl[momentToFormat.month()];
  17223. }
  17224. },
  17225. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  17226. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  17227. '_'),
  17228. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  17229. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  17230. meridiem: function meridiem(hours, minutes, isLower) {
  17231. if (hours > 11) {
  17232. return isLower ? 'μμ' : 'ΜΜ';
  17233. } else {
  17234. return isLower ? 'πμ' : 'ΠΜ';
  17235. }
  17236. },
  17237. isPM: function isPM(input) {
  17238. return (input + '').toLowerCase()[0] === 'μ';
  17239. },
  17240. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  17241. longDateFormat: {
  17242. LT: 'h:mm A',
  17243. LTS: 'h:mm:ss A',
  17244. L: 'DD/MM/YYYY',
  17245. LL: 'D MMMM YYYY',
  17246. LLL: 'D MMMM YYYY h:mm A',
  17247. LLLL: 'dddd, D MMMM YYYY h:mm A' },
  17248. calendarEl: {
  17249. sameDay: '[Σήμερα {}] LT',
  17250. nextDay: '[Αύριο {}] LT',
  17251. nextWeek: 'dddd [{}] LT',
  17252. lastDay: '[Χθες {}] LT',
  17253. lastWeek: function lastWeek() {
  17254. switch (this.day()) {
  17255. case 6:
  17256. return '[το προηγούμενο] dddd [{}] LT';
  17257. default:
  17258. return '[την προηγούμενη] dddd [{}] LT';}
  17259. },
  17260. sameElse: 'L' },
  17261. calendar: function calendar(key, mom) {
  17262. var output = this._calendarEl[key],
  17263. hours = mom && mom.hours();
  17264. if (isFunction(output)) {
  17265. output = output.apply(mom);
  17266. }
  17267. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  17268. },
  17269. relativeTime: {
  17270. future: 'σε %s',
  17271. past: '%s πριν',
  17272. s: 'λίγα δευτερόλεπτα',
  17273. ss: '%d δευτερόλεπτα',
  17274. m: 'ένα λεπτό',
  17275. mm: '%d λεπτά',
  17276. h: 'μία ώρα',
  17277. hh: '%d ώρες',
  17278. d: 'μία μέρα',
  17279. dd: '%d μέρες',
  17280. M: 'ένας μήνας',
  17281. MM: '%d μήνες',
  17282. y: 'ένας χρόνος',
  17283. yy: '%d χρόνια' },
  17284. dayOfMonthOrdinalParse: /\d{1,2}η/,
  17285. ordinal: '%dη',
  17286. week: {
  17287. dow: 1, // Monday is the first day of the week.
  17288. doy: 4 // The week that contains Jan 4st is the first week of the year.
  17289. } });
  17290. return el;
  17291. });
  17292. /***/ }),
  17293. /* 43 */
  17294. /*!******************************************************************************!*\
  17295. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-au.js ***!
  17296. \******************************************************************************/
  17297. /*! no static exports found */
  17298. /***/ (function(module, exports, __webpack_require__) {
  17299. //! moment.js locale configuration
  17300. //! locale : English (Australia) [en-au]
  17301. //! author : Jared Morse : https://github.com/jarcoal
  17302. ;(function (global, factory) {
  17303. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17304. undefined;
  17305. })(this, function (moment) {'use strict';
  17306. //! moment.js locale configuration
  17307. var enAu = moment.defineLocale('en-au', {
  17308. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17309. '_'),
  17310. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17311. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17312. '_'),
  17313. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17314. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17315. longDateFormat: {
  17316. LT: 'h:mm A',
  17317. LTS: 'h:mm:ss A',
  17318. L: 'DD/MM/YYYY',
  17319. LL: 'D MMMM YYYY',
  17320. LLL: 'D MMMM YYYY h:mm A',
  17321. LLLL: 'dddd, D MMMM YYYY h:mm A' },
  17322. calendar: {
  17323. sameDay: '[Today at] LT',
  17324. nextDay: '[Tomorrow at] LT',
  17325. nextWeek: 'dddd [at] LT',
  17326. lastDay: '[Yesterday at] LT',
  17327. lastWeek: '[Last] dddd [at] LT',
  17328. sameElse: 'L' },
  17329. relativeTime: {
  17330. future: 'in %s',
  17331. past: '%s ago',
  17332. s: 'a few seconds',
  17333. ss: '%d seconds',
  17334. m: 'a minute',
  17335. mm: '%d minutes',
  17336. h: 'an hour',
  17337. hh: '%d hours',
  17338. d: 'a day',
  17339. dd: '%d days',
  17340. M: 'a month',
  17341. MM: '%d months',
  17342. y: 'a year',
  17343. yy: '%d years' },
  17344. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17345. ordinal: function ordinal(number) {
  17346. var b = number % 10,
  17347. output =
  17348. ~~(number % 100 / 10) === 1 ?
  17349. 'th' :
  17350. b === 1 ?
  17351. 'st' :
  17352. b === 2 ?
  17353. 'nd' :
  17354. b === 3 ?
  17355. 'rd' :
  17356. 'th';
  17357. return number + output;
  17358. },
  17359. week: {
  17360. dow: 0, // Sunday is the first day of the week.
  17361. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17362. } });
  17363. return enAu;
  17364. });
  17365. /***/ }),
  17366. /* 44 */
  17367. /*!******************************************************************************!*\
  17368. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-ca.js ***!
  17369. \******************************************************************************/
  17370. /*! no static exports found */
  17371. /***/ (function(module, exports, __webpack_require__) {
  17372. //! moment.js locale configuration
  17373. //! locale : English (Canada) [en-ca]
  17374. //! author : Jonathan Abourbih : https://github.com/jonbca
  17375. ;(function (global, factory) {
  17376. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17377. undefined;
  17378. })(this, function (moment) {'use strict';
  17379. //! moment.js locale configuration
  17380. var enCa = moment.defineLocale('en-ca', {
  17381. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17382. '_'),
  17383. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17384. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17385. '_'),
  17386. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17387. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17388. longDateFormat: {
  17389. LT: 'h:mm A',
  17390. LTS: 'h:mm:ss A',
  17391. L: 'YYYY-MM-DD',
  17392. LL: 'MMMM D, YYYY',
  17393. LLL: 'MMMM D, YYYY h:mm A',
  17394. LLLL: 'dddd, MMMM D, YYYY h:mm A' },
  17395. calendar: {
  17396. sameDay: '[Today at] LT',
  17397. nextDay: '[Tomorrow at] LT',
  17398. nextWeek: 'dddd [at] LT',
  17399. lastDay: '[Yesterday at] LT',
  17400. lastWeek: '[Last] dddd [at] LT',
  17401. sameElse: 'L' },
  17402. relativeTime: {
  17403. future: 'in %s',
  17404. past: '%s ago',
  17405. s: 'a few seconds',
  17406. ss: '%d seconds',
  17407. m: 'a minute',
  17408. mm: '%d minutes',
  17409. h: 'an hour',
  17410. hh: '%d hours',
  17411. d: 'a day',
  17412. dd: '%d days',
  17413. M: 'a month',
  17414. MM: '%d months',
  17415. y: 'a year',
  17416. yy: '%d years' },
  17417. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17418. ordinal: function ordinal(number) {
  17419. var b = number % 10,
  17420. output =
  17421. ~~(number % 100 / 10) === 1 ?
  17422. 'th' :
  17423. b === 1 ?
  17424. 'st' :
  17425. b === 2 ?
  17426. 'nd' :
  17427. b === 3 ?
  17428. 'rd' :
  17429. 'th';
  17430. return number + output;
  17431. } });
  17432. return enCa;
  17433. });
  17434. /***/ }),
  17435. /* 45 */
  17436. /*!******************************************************************************!*\
  17437. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-gb.js ***!
  17438. \******************************************************************************/
  17439. /*! no static exports found */
  17440. /***/ (function(module, exports, __webpack_require__) {
  17441. //! moment.js locale configuration
  17442. //! locale : English (United Kingdom) [en-gb]
  17443. //! author : Chris Gedrim : https://github.com/chrisgedrim
  17444. ;(function (global, factory) {
  17445. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17446. undefined;
  17447. })(this, function (moment) {'use strict';
  17448. //! moment.js locale configuration
  17449. var enGb = moment.defineLocale('en-gb', {
  17450. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17451. '_'),
  17452. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17453. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17454. '_'),
  17455. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17456. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17457. longDateFormat: {
  17458. LT: 'HH:mm',
  17459. LTS: 'HH:mm:ss',
  17460. L: 'DD/MM/YYYY',
  17461. LL: 'D MMMM YYYY',
  17462. LLL: 'D MMMM YYYY HH:mm',
  17463. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  17464. calendar: {
  17465. sameDay: '[Today at] LT',
  17466. nextDay: '[Tomorrow at] LT',
  17467. nextWeek: 'dddd [at] LT',
  17468. lastDay: '[Yesterday at] LT',
  17469. lastWeek: '[Last] dddd [at] LT',
  17470. sameElse: 'L' },
  17471. relativeTime: {
  17472. future: 'in %s',
  17473. past: '%s ago',
  17474. s: 'a few seconds',
  17475. ss: '%d seconds',
  17476. m: 'a minute',
  17477. mm: '%d minutes',
  17478. h: 'an hour',
  17479. hh: '%d hours',
  17480. d: 'a day',
  17481. dd: '%d days',
  17482. M: 'a month',
  17483. MM: '%d months',
  17484. y: 'a year',
  17485. yy: '%d years' },
  17486. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17487. ordinal: function ordinal(number) {
  17488. var b = number % 10,
  17489. output =
  17490. ~~(number % 100 / 10) === 1 ?
  17491. 'th' :
  17492. b === 1 ?
  17493. 'st' :
  17494. b === 2 ?
  17495. 'nd' :
  17496. b === 3 ?
  17497. 'rd' :
  17498. 'th';
  17499. return number + output;
  17500. },
  17501. week: {
  17502. dow: 1, // Monday is the first day of the week.
  17503. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17504. } });
  17505. return enGb;
  17506. });
  17507. /***/ }),
  17508. /* 46 */
  17509. /*!******************************************************************************!*\
  17510. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-ie.js ***!
  17511. \******************************************************************************/
  17512. /*! no static exports found */
  17513. /***/ (function(module, exports, __webpack_require__) {
  17514. //! moment.js locale configuration
  17515. //! locale : English (Ireland) [en-ie]
  17516. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  17517. ;(function (global, factory) {
  17518. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17519. undefined;
  17520. })(this, function (moment) {'use strict';
  17521. //! moment.js locale configuration
  17522. var enIe = moment.defineLocale('en-ie', {
  17523. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17524. '_'),
  17525. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17526. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17527. '_'),
  17528. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17529. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17530. longDateFormat: {
  17531. LT: 'HH:mm',
  17532. LTS: 'HH:mm:ss',
  17533. L: 'DD/MM/YYYY',
  17534. LL: 'D MMMM YYYY',
  17535. LLL: 'D MMMM YYYY HH:mm',
  17536. LLLL: 'dddd D MMMM YYYY HH:mm' },
  17537. calendar: {
  17538. sameDay: '[Today at] LT',
  17539. nextDay: '[Tomorrow at] LT',
  17540. nextWeek: 'dddd [at] LT',
  17541. lastDay: '[Yesterday at] LT',
  17542. lastWeek: '[Last] dddd [at] LT',
  17543. sameElse: 'L' },
  17544. relativeTime: {
  17545. future: 'in %s',
  17546. past: '%s ago',
  17547. s: 'a few seconds',
  17548. ss: '%d seconds',
  17549. m: 'a minute',
  17550. mm: '%d minutes',
  17551. h: 'an hour',
  17552. hh: '%d hours',
  17553. d: 'a day',
  17554. dd: '%d days',
  17555. M: 'a month',
  17556. MM: '%d months',
  17557. y: 'a year',
  17558. yy: '%d years' },
  17559. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17560. ordinal: function ordinal(number) {
  17561. var b = number % 10,
  17562. output =
  17563. ~~(number % 100 / 10) === 1 ?
  17564. 'th' :
  17565. b === 1 ?
  17566. 'st' :
  17567. b === 2 ?
  17568. 'nd' :
  17569. b === 3 ?
  17570. 'rd' :
  17571. 'th';
  17572. return number + output;
  17573. },
  17574. week: {
  17575. dow: 1, // Monday is the first day of the week.
  17576. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17577. } });
  17578. return enIe;
  17579. });
  17580. /***/ }),
  17581. /* 47 */
  17582. /*!******************************************************************************!*\
  17583. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-il.js ***!
  17584. \******************************************************************************/
  17585. /*! no static exports found */
  17586. /***/ (function(module, exports, __webpack_require__) {
  17587. //! moment.js locale configuration
  17588. //! locale : English (Israel) [en-il]
  17589. //! author : Chris Gedrim : https://github.com/chrisgedrim
  17590. ;(function (global, factory) {
  17591. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17592. undefined;
  17593. })(this, function (moment) {'use strict';
  17594. //! moment.js locale configuration
  17595. var enIl = moment.defineLocale('en-il', {
  17596. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17597. '_'),
  17598. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17599. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17600. '_'),
  17601. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17602. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17603. longDateFormat: {
  17604. LT: 'HH:mm',
  17605. LTS: 'HH:mm:ss',
  17606. L: 'DD/MM/YYYY',
  17607. LL: 'D MMMM YYYY',
  17608. LLL: 'D MMMM YYYY HH:mm',
  17609. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  17610. calendar: {
  17611. sameDay: '[Today at] LT',
  17612. nextDay: '[Tomorrow at] LT',
  17613. nextWeek: 'dddd [at] LT',
  17614. lastDay: '[Yesterday at] LT',
  17615. lastWeek: '[Last] dddd [at] LT',
  17616. sameElse: 'L' },
  17617. relativeTime: {
  17618. future: 'in %s',
  17619. past: '%s ago',
  17620. s: 'a few seconds',
  17621. ss: '%d seconds',
  17622. m: 'a minute',
  17623. mm: '%d minutes',
  17624. h: 'an hour',
  17625. hh: '%d hours',
  17626. d: 'a day',
  17627. dd: '%d days',
  17628. M: 'a month',
  17629. MM: '%d months',
  17630. y: 'a year',
  17631. yy: '%d years' },
  17632. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17633. ordinal: function ordinal(number) {
  17634. var b = number % 10,
  17635. output =
  17636. ~~(number % 100 / 10) === 1 ?
  17637. 'th' :
  17638. b === 1 ?
  17639. 'st' :
  17640. b === 2 ?
  17641. 'nd' :
  17642. b === 3 ?
  17643. 'rd' :
  17644. 'th';
  17645. return number + output;
  17646. } });
  17647. return enIl;
  17648. });
  17649. /***/ }),
  17650. /* 48 */
  17651. /*!******************************************************************************!*\
  17652. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-in.js ***!
  17653. \******************************************************************************/
  17654. /*! no static exports found */
  17655. /***/ (function(module, exports, __webpack_require__) {
  17656. //! moment.js locale configuration
  17657. //! locale : English (India) [en-in]
  17658. //! author : Jatin Agrawal : https://github.com/jatinag22
  17659. ;(function (global, factory) {
  17660. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17661. undefined;
  17662. })(this, function (moment) {'use strict';
  17663. //! moment.js locale configuration
  17664. var enIn = moment.defineLocale('en-in', {
  17665. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17666. '_'),
  17667. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17668. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17669. '_'),
  17670. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17671. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17672. longDateFormat: {
  17673. LT: 'h:mm A',
  17674. LTS: 'h:mm:ss A',
  17675. L: 'DD/MM/YYYY',
  17676. LL: 'D MMMM YYYY',
  17677. LLL: 'D MMMM YYYY h:mm A',
  17678. LLLL: 'dddd, D MMMM YYYY h:mm A' },
  17679. calendar: {
  17680. sameDay: '[Today at] LT',
  17681. nextDay: '[Tomorrow at] LT',
  17682. nextWeek: 'dddd [at] LT',
  17683. lastDay: '[Yesterday at] LT',
  17684. lastWeek: '[Last] dddd [at] LT',
  17685. sameElse: 'L' },
  17686. relativeTime: {
  17687. future: 'in %s',
  17688. past: '%s ago',
  17689. s: 'a few seconds',
  17690. ss: '%d seconds',
  17691. m: 'a minute',
  17692. mm: '%d minutes',
  17693. h: 'an hour',
  17694. hh: '%d hours',
  17695. d: 'a day',
  17696. dd: '%d days',
  17697. M: 'a month',
  17698. MM: '%d months',
  17699. y: 'a year',
  17700. yy: '%d years' },
  17701. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17702. ordinal: function ordinal(number) {
  17703. var b = number % 10,
  17704. output =
  17705. ~~(number % 100 / 10) === 1 ?
  17706. 'th' :
  17707. b === 1 ?
  17708. 'st' :
  17709. b === 2 ?
  17710. 'nd' :
  17711. b === 3 ?
  17712. 'rd' :
  17713. 'th';
  17714. return number + output;
  17715. },
  17716. week: {
  17717. dow: 0, // Sunday is the first day of the week.
  17718. doy: 6 // The week that contains Jan 1st is the first week of the year.
  17719. } });
  17720. return enIn;
  17721. });
  17722. /***/ }),
  17723. /* 49 */
  17724. /*!******************************************************************************!*\
  17725. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-nz.js ***!
  17726. \******************************************************************************/
  17727. /*! no static exports found */
  17728. /***/ (function(module, exports, __webpack_require__) {
  17729. //! moment.js locale configuration
  17730. //! locale : English (New Zealand) [en-nz]
  17731. //! author : Luke McGregor : https://github.com/lukemcgregor
  17732. ;(function (global, factory) {
  17733. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17734. undefined;
  17735. })(this, function (moment) {'use strict';
  17736. //! moment.js locale configuration
  17737. var enNz = moment.defineLocale('en-nz', {
  17738. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17739. '_'),
  17740. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17741. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17742. '_'),
  17743. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17744. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17745. longDateFormat: {
  17746. LT: 'h:mm A',
  17747. LTS: 'h:mm:ss A',
  17748. L: 'DD/MM/YYYY',
  17749. LL: 'D MMMM YYYY',
  17750. LLL: 'D MMMM YYYY h:mm A',
  17751. LLLL: 'dddd, D MMMM YYYY h:mm A' },
  17752. calendar: {
  17753. sameDay: '[Today at] LT',
  17754. nextDay: '[Tomorrow at] LT',
  17755. nextWeek: 'dddd [at] LT',
  17756. lastDay: '[Yesterday at] LT',
  17757. lastWeek: '[Last] dddd [at] LT',
  17758. sameElse: 'L' },
  17759. relativeTime: {
  17760. future: 'in %s',
  17761. past: '%s ago',
  17762. s: 'a few seconds',
  17763. ss: '%d seconds',
  17764. m: 'a minute',
  17765. mm: '%d minutes',
  17766. h: 'an hour',
  17767. hh: '%d hours',
  17768. d: 'a day',
  17769. dd: '%d days',
  17770. M: 'a month',
  17771. MM: '%d months',
  17772. y: 'a year',
  17773. yy: '%d years' },
  17774. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17775. ordinal: function ordinal(number) {
  17776. var b = number % 10,
  17777. output =
  17778. ~~(number % 100 / 10) === 1 ?
  17779. 'th' :
  17780. b === 1 ?
  17781. 'st' :
  17782. b === 2 ?
  17783. 'nd' :
  17784. b === 3 ?
  17785. 'rd' :
  17786. 'th';
  17787. return number + output;
  17788. },
  17789. week: {
  17790. dow: 1, // Monday is the first day of the week.
  17791. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17792. } });
  17793. return enNz;
  17794. });
  17795. /***/ }),
  17796. /* 50 */
  17797. /*!******************************************************************************!*\
  17798. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/en-sg.js ***!
  17799. \******************************************************************************/
  17800. /*! no static exports found */
  17801. /***/ (function(module, exports, __webpack_require__) {
  17802. //! moment.js locale configuration
  17803. //! locale : English (Singapore) [en-sg]
  17804. //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
  17805. ;(function (global, factory) {
  17806. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17807. undefined;
  17808. })(this, function (moment) {'use strict';
  17809. //! moment.js locale configuration
  17810. var enSg = moment.defineLocale('en-sg', {
  17811. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  17812. '_'),
  17813. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17814. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17815. '_'),
  17816. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17817. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17818. longDateFormat: {
  17819. LT: 'HH:mm',
  17820. LTS: 'HH:mm:ss',
  17821. L: 'DD/MM/YYYY',
  17822. LL: 'D MMMM YYYY',
  17823. LLL: 'D MMMM YYYY HH:mm',
  17824. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  17825. calendar: {
  17826. sameDay: '[Today at] LT',
  17827. nextDay: '[Tomorrow at] LT',
  17828. nextWeek: 'dddd [at] LT',
  17829. lastDay: '[Yesterday at] LT',
  17830. lastWeek: '[Last] dddd [at] LT',
  17831. sameElse: 'L' },
  17832. relativeTime: {
  17833. future: 'in %s',
  17834. past: '%s ago',
  17835. s: 'a few seconds',
  17836. ss: '%d seconds',
  17837. m: 'a minute',
  17838. mm: '%d minutes',
  17839. h: 'an hour',
  17840. hh: '%d hours',
  17841. d: 'a day',
  17842. dd: '%d days',
  17843. M: 'a month',
  17844. MM: '%d months',
  17845. y: 'a year',
  17846. yy: '%d years' },
  17847. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17848. ordinal: function ordinal(number) {
  17849. var b = number % 10,
  17850. output =
  17851. ~~(number % 100 / 10) === 1 ?
  17852. 'th' :
  17853. b === 1 ?
  17854. 'st' :
  17855. b === 2 ?
  17856. 'nd' :
  17857. b === 3 ?
  17858. 'rd' :
  17859. 'th';
  17860. return number + output;
  17861. },
  17862. week: {
  17863. dow: 1, // Monday is the first day of the week.
  17864. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17865. } });
  17866. return enSg;
  17867. });
  17868. /***/ }),
  17869. /* 51 */
  17870. /*!***************************************************************************!*\
  17871. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/eo.js ***!
  17872. \***************************************************************************/
  17873. /*! no static exports found */
  17874. /***/ (function(module, exports, __webpack_require__) {
  17875. //! moment.js locale configuration
  17876. //! locale : Esperanto [eo]
  17877. //! author : Colin Dean : https://github.com/colindean
  17878. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  17879. //! comment : miestasmia corrected the translation by colindean
  17880. //! comment : Vivakvo corrected the translation by colindean and miestasmia
  17881. ;(function (global, factory) {
  17882. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17883. undefined;
  17884. })(this, function (moment) {'use strict';
  17885. //! moment.js locale configuration
  17886. var eo = moment.defineLocale('eo', {
  17887. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  17888. '_'),
  17889. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  17890. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  17891. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  17892. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  17893. longDateFormat: {
  17894. LT: 'HH:mm',
  17895. LTS: 'HH:mm:ss',
  17896. L: 'YYYY-MM-DD',
  17897. LL: '[la] D[-an de] MMMM, YYYY',
  17898. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  17899. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  17900. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm' },
  17901. meridiemParse: /[ap]\.t\.m/i,
  17902. isPM: function isPM(input) {
  17903. return input.charAt(0).toLowerCase() === 'p';
  17904. },
  17905. meridiem: function meridiem(hours, minutes, isLower) {
  17906. if (hours > 11) {
  17907. return isLower ? 'p.t.m.' : 'P.T.M.';
  17908. } else {
  17909. return isLower ? 'a.t.m.' : 'A.T.M.';
  17910. }
  17911. },
  17912. calendar: {
  17913. sameDay: '[Hodiaŭ je] LT',
  17914. nextDay: '[Morgaŭ je] LT',
  17915. nextWeek: 'dddd[n je] LT',
  17916. lastDay: '[Hieraŭ je] LT',
  17917. lastWeek: '[pasintan] dddd[n je] LT',
  17918. sameElse: 'L' },
  17919. relativeTime: {
  17920. future: 'post %s',
  17921. past: 'antaŭ %s',
  17922. s: 'kelkaj sekundoj',
  17923. ss: '%d sekundoj',
  17924. m: 'unu minuto',
  17925. mm: '%d minutoj',
  17926. h: 'unu horo',
  17927. hh: '%d horoj',
  17928. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  17929. dd: '%d tagoj',
  17930. M: 'unu monato',
  17931. MM: '%d monatoj',
  17932. y: 'unu jaro',
  17933. yy: '%d jaroj' },
  17934. dayOfMonthOrdinalParse: /\d{1,2}a/,
  17935. ordinal: '%da',
  17936. week: {
  17937. dow: 1, // Monday is the first day of the week.
  17938. doy: 7 // The week that contains Jan 7th is the first week of the year.
  17939. } });
  17940. return eo;
  17941. });
  17942. /***/ }),
  17943. /* 52 */
  17944. /*!***************************************************************************!*\
  17945. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/es.js ***!
  17946. \***************************************************************************/
  17947. /*! no static exports found */
  17948. /***/ (function(module, exports, __webpack_require__) {
  17949. //! moment.js locale configuration
  17950. //! locale : Spanish [es]
  17951. //! author : Julio Napurí : https://github.com/julionc
  17952. ;(function (global, factory) {
  17953. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  17954. undefined;
  17955. })(this, function (moment) {'use strict';
  17956. //! moment.js locale configuration
  17957. var monthsShortDot =
  17958. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  17959. '_'),
  17960. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17961. monthsParse = [
  17962. /^ene/i,
  17963. /^feb/i,
  17964. /^mar/i,
  17965. /^abr/i,
  17966. /^may/i,
  17967. /^jun/i,
  17968. /^jul/i,
  17969. /^ago/i,
  17970. /^sep/i,
  17971. /^oct/i,
  17972. /^nov/i,
  17973. /^dic/i],
  17974. monthsRegex =
  17975. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17976. var es = moment.defineLocale('es', {
  17977. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  17978. '_'),
  17979. monthsShort: function monthsShort(m, format) {
  17980. if (!m) {
  17981. return monthsShortDot;
  17982. } else if (/-MMM-/.test(format)) {
  17983. return _monthsShort[m.month()];
  17984. } else {
  17985. return monthsShortDot[m.month()];
  17986. }
  17987. },
  17988. monthsRegex: monthsRegex,
  17989. monthsShortRegex: monthsRegex,
  17990. monthsStrictRegex:
  17991. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17992. monthsShortStrictRegex:
  17993. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17994. monthsParse: monthsParse,
  17995. longMonthsParse: monthsParse,
  17996. shortMonthsParse: monthsParse,
  17997. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17998. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17999. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  18000. weekdaysParseExact: true,
  18001. longDateFormat: {
  18002. LT: 'H:mm',
  18003. LTS: 'H:mm:ss',
  18004. L: 'DD/MM/YYYY',
  18005. LL: 'D [de] MMMM [de] YYYY',
  18006. LLL: 'D [de] MMMM [de] YYYY H:mm',
  18007. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' },
  18008. calendar: {
  18009. sameDay: function sameDay() {
  18010. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18011. },
  18012. nextDay: function nextDay() {
  18013. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18014. },
  18015. nextWeek: function nextWeek() {
  18016. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18017. },
  18018. lastDay: function lastDay() {
  18019. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18020. },
  18021. lastWeek: function lastWeek() {
  18022. return (
  18023. '[el] dddd [pasado a la' + (
  18024. this.hours() !== 1 ? 's' : '') +
  18025. '] LT');
  18026. },
  18027. sameElse: 'L' },
  18028. relativeTime: {
  18029. future: 'en %s',
  18030. past: 'hace %s',
  18031. s: 'unos segundos',
  18032. ss: '%d segundos',
  18033. m: 'un minuto',
  18034. mm: '%d minutos',
  18035. h: 'una hora',
  18036. hh: '%d horas',
  18037. d: 'un día',
  18038. dd: '%d días',
  18039. w: 'una semana',
  18040. ww: '%d semanas',
  18041. M: 'un mes',
  18042. MM: '%d meses',
  18043. y: 'un año',
  18044. yy: '%d años' },
  18045. dayOfMonthOrdinalParse: /\d{1,2}º/,
  18046. ordinal: '%dº',
  18047. week: {
  18048. dow: 1, // Monday is the first day of the week.
  18049. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18050. },
  18051. invalidDate: 'Fecha inválida' });
  18052. return es;
  18053. });
  18054. /***/ }),
  18055. /* 53 */
  18056. /*!******************************************************************************!*\
  18057. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/es-do.js ***!
  18058. \******************************************************************************/
  18059. /*! no static exports found */
  18060. /***/ (function(module, exports, __webpack_require__) {
  18061. //! moment.js locale configuration
  18062. //! locale : Spanish (Dominican Republic) [es-do]
  18063. ;(function (global, factory) {
  18064. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18065. undefined;
  18066. })(this, function (moment) {'use strict';
  18067. //! moment.js locale configuration
  18068. var monthsShortDot =
  18069. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  18070. '_'),
  18071. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  18072. monthsParse = [
  18073. /^ene/i,
  18074. /^feb/i,
  18075. /^mar/i,
  18076. /^abr/i,
  18077. /^may/i,
  18078. /^jun/i,
  18079. /^jul/i,
  18080. /^ago/i,
  18081. /^sep/i,
  18082. /^oct/i,
  18083. /^nov/i,
  18084. /^dic/i],
  18085. monthsRegex =
  18086. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  18087. var esDo = moment.defineLocale('es-do', {
  18088. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  18089. '_'),
  18090. monthsShort: function monthsShort(m, format) {
  18091. if (!m) {
  18092. return monthsShortDot;
  18093. } else if (/-MMM-/.test(format)) {
  18094. return _monthsShort[m.month()];
  18095. } else {
  18096. return monthsShortDot[m.month()];
  18097. }
  18098. },
  18099. monthsRegex: monthsRegex,
  18100. monthsShortRegex: monthsRegex,
  18101. monthsStrictRegex:
  18102. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  18103. monthsShortStrictRegex:
  18104. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  18105. monthsParse: monthsParse,
  18106. longMonthsParse: monthsParse,
  18107. shortMonthsParse: monthsParse,
  18108. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  18109. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  18110. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  18111. weekdaysParseExact: true,
  18112. longDateFormat: {
  18113. LT: 'h:mm A',
  18114. LTS: 'h:mm:ss A',
  18115. L: 'DD/MM/YYYY',
  18116. LL: 'D [de] MMMM [de] YYYY',
  18117. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  18118. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' },
  18119. calendar: {
  18120. sameDay: function sameDay() {
  18121. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18122. },
  18123. nextDay: function nextDay() {
  18124. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18125. },
  18126. nextWeek: function nextWeek() {
  18127. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18128. },
  18129. lastDay: function lastDay() {
  18130. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18131. },
  18132. lastWeek: function lastWeek() {
  18133. return (
  18134. '[el] dddd [pasado a la' + (
  18135. this.hours() !== 1 ? 's' : '') +
  18136. '] LT');
  18137. },
  18138. sameElse: 'L' },
  18139. relativeTime: {
  18140. future: 'en %s',
  18141. past: 'hace %s',
  18142. s: 'unos segundos',
  18143. ss: '%d segundos',
  18144. m: 'un minuto',
  18145. mm: '%d minutos',
  18146. h: 'una hora',
  18147. hh: '%d horas',
  18148. d: 'un día',
  18149. dd: '%d días',
  18150. w: 'una semana',
  18151. ww: '%d semanas',
  18152. M: 'un mes',
  18153. MM: '%d meses',
  18154. y: 'un año',
  18155. yy: '%d años' },
  18156. dayOfMonthOrdinalParse: /\d{1,2}º/,
  18157. ordinal: '%dº',
  18158. week: {
  18159. dow: 1, // Monday is the first day of the week.
  18160. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18161. } });
  18162. return esDo;
  18163. });
  18164. /***/ }),
  18165. /* 54 */
  18166. /*!******************************************************************************!*\
  18167. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/es-mx.js ***!
  18168. \******************************************************************************/
  18169. /*! no static exports found */
  18170. /***/ (function(module, exports, __webpack_require__) {
  18171. //! moment.js locale configuration
  18172. //! locale : Spanish (Mexico) [es-mx]
  18173. //! author : JC Franco : https://github.com/jcfranco
  18174. ;(function (global, factory) {
  18175. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18176. undefined;
  18177. })(this, function (moment) {'use strict';
  18178. //! moment.js locale configuration
  18179. var monthsShortDot =
  18180. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  18181. '_'),
  18182. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  18183. monthsParse = [
  18184. /^ene/i,
  18185. /^feb/i,
  18186. /^mar/i,
  18187. /^abr/i,
  18188. /^may/i,
  18189. /^jun/i,
  18190. /^jul/i,
  18191. /^ago/i,
  18192. /^sep/i,
  18193. /^oct/i,
  18194. /^nov/i,
  18195. /^dic/i],
  18196. monthsRegex =
  18197. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  18198. var esMx = moment.defineLocale('es-mx', {
  18199. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  18200. '_'),
  18201. monthsShort: function monthsShort(m, format) {
  18202. if (!m) {
  18203. return monthsShortDot;
  18204. } else if (/-MMM-/.test(format)) {
  18205. return _monthsShort[m.month()];
  18206. } else {
  18207. return monthsShortDot[m.month()];
  18208. }
  18209. },
  18210. monthsRegex: monthsRegex,
  18211. monthsShortRegex: monthsRegex,
  18212. monthsStrictRegex:
  18213. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  18214. monthsShortStrictRegex:
  18215. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  18216. monthsParse: monthsParse,
  18217. longMonthsParse: monthsParse,
  18218. shortMonthsParse: monthsParse,
  18219. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  18220. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  18221. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  18222. weekdaysParseExact: true,
  18223. longDateFormat: {
  18224. LT: 'H:mm',
  18225. LTS: 'H:mm:ss',
  18226. L: 'DD/MM/YYYY',
  18227. LL: 'D [de] MMMM [de] YYYY',
  18228. LLL: 'D [de] MMMM [de] YYYY H:mm',
  18229. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' },
  18230. calendar: {
  18231. sameDay: function sameDay() {
  18232. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18233. },
  18234. nextDay: function nextDay() {
  18235. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18236. },
  18237. nextWeek: function nextWeek() {
  18238. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18239. },
  18240. lastDay: function lastDay() {
  18241. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18242. },
  18243. lastWeek: function lastWeek() {
  18244. return (
  18245. '[el] dddd [pasado a la' + (
  18246. this.hours() !== 1 ? 's' : '') +
  18247. '] LT');
  18248. },
  18249. sameElse: 'L' },
  18250. relativeTime: {
  18251. future: 'en %s',
  18252. past: 'hace %s',
  18253. s: 'unos segundos',
  18254. ss: '%d segundos',
  18255. m: 'un minuto',
  18256. mm: '%d minutos',
  18257. h: 'una hora',
  18258. hh: '%d horas',
  18259. d: 'un día',
  18260. dd: '%d días',
  18261. w: 'una semana',
  18262. ww: '%d semanas',
  18263. M: 'un mes',
  18264. MM: '%d meses',
  18265. y: 'un año',
  18266. yy: '%d años' },
  18267. dayOfMonthOrdinalParse: /\d{1,2}º/,
  18268. ordinal: '%dº',
  18269. week: {
  18270. dow: 0, // Sunday is the first day of the week.
  18271. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18272. },
  18273. invalidDate: 'Fecha inválida' });
  18274. return esMx;
  18275. });
  18276. /***/ }),
  18277. /* 55 */
  18278. /*!******************************************************************************!*\
  18279. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/es-us.js ***!
  18280. \******************************************************************************/
  18281. /*! no static exports found */
  18282. /***/ (function(module, exports, __webpack_require__) {
  18283. //! moment.js locale configuration
  18284. //! locale : Spanish (United States) [es-us]
  18285. //! author : bustta : https://github.com/bustta
  18286. //! author : chrisrodz : https://github.com/chrisrodz
  18287. ;(function (global, factory) {
  18288. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18289. undefined;
  18290. })(this, function (moment) {'use strict';
  18291. //! moment.js locale configuration
  18292. var monthsShortDot =
  18293. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  18294. '_'),
  18295. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  18296. monthsParse = [
  18297. /^ene/i,
  18298. /^feb/i,
  18299. /^mar/i,
  18300. /^abr/i,
  18301. /^may/i,
  18302. /^jun/i,
  18303. /^jul/i,
  18304. /^ago/i,
  18305. /^sep/i,
  18306. /^oct/i,
  18307. /^nov/i,
  18308. /^dic/i],
  18309. monthsRegex =
  18310. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  18311. var esUs = moment.defineLocale('es-us', {
  18312. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  18313. '_'),
  18314. monthsShort: function monthsShort(m, format) {
  18315. if (!m) {
  18316. return monthsShortDot;
  18317. } else if (/-MMM-/.test(format)) {
  18318. return _monthsShort[m.month()];
  18319. } else {
  18320. return monthsShortDot[m.month()];
  18321. }
  18322. },
  18323. monthsRegex: monthsRegex,
  18324. monthsShortRegex: monthsRegex,
  18325. monthsStrictRegex:
  18326. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  18327. monthsShortStrictRegex:
  18328. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  18329. monthsParse: monthsParse,
  18330. longMonthsParse: monthsParse,
  18331. shortMonthsParse: monthsParse,
  18332. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  18333. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  18334. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  18335. weekdaysParseExact: true,
  18336. longDateFormat: {
  18337. LT: 'h:mm A',
  18338. LTS: 'h:mm:ss A',
  18339. L: 'MM/DD/YYYY',
  18340. LL: 'D [de] MMMM [de] YYYY',
  18341. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  18342. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A' },
  18343. calendar: {
  18344. sameDay: function sameDay() {
  18345. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18346. },
  18347. nextDay: function nextDay() {
  18348. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18349. },
  18350. nextWeek: function nextWeek() {
  18351. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18352. },
  18353. lastDay: function lastDay() {
  18354. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  18355. },
  18356. lastWeek: function lastWeek() {
  18357. return (
  18358. '[el] dddd [pasado a la' + (
  18359. this.hours() !== 1 ? 's' : '') +
  18360. '] LT');
  18361. },
  18362. sameElse: 'L' },
  18363. relativeTime: {
  18364. future: 'en %s',
  18365. past: 'hace %s',
  18366. s: 'unos segundos',
  18367. ss: '%d segundos',
  18368. m: 'un minuto',
  18369. mm: '%d minutos',
  18370. h: 'una hora',
  18371. hh: '%d horas',
  18372. d: 'un día',
  18373. dd: '%d días',
  18374. w: 'una semana',
  18375. ww: '%d semanas',
  18376. M: 'un mes',
  18377. MM: '%d meses',
  18378. y: 'un año',
  18379. yy: '%d años' },
  18380. dayOfMonthOrdinalParse: /\d{1,2}º/,
  18381. ordinal: '%dº',
  18382. week: {
  18383. dow: 0, // Sunday is the first day of the week.
  18384. doy: 6 // The week that contains Jan 6th is the first week of the year.
  18385. } });
  18386. return esUs;
  18387. });
  18388. /***/ }),
  18389. /* 56 */
  18390. /*!***************************************************************************!*\
  18391. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/et.js ***!
  18392. \***************************************************************************/
  18393. /*! no static exports found */
  18394. /***/ (function(module, exports, __webpack_require__) {
  18395. //! moment.js locale configuration
  18396. //! locale : Estonian [et]
  18397. //! author : Henry Kehlmann : https://github.com/madhenry
  18398. //! improvements : Illimar Tambek : https://github.com/ragulka
  18399. ;(function (global, factory) {
  18400. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18401. undefined;
  18402. })(this, function (moment) {'use strict';
  18403. //! moment.js locale configuration
  18404. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  18405. var format = {
  18406. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  18407. ss: [number + 'sekundi', number + 'sekundit'],
  18408. m: ['ühe minuti', 'üks minut'],
  18409. mm: [number + ' minuti', number + ' minutit'],
  18410. h: ['ühe tunni', 'tund aega', 'üks tund'],
  18411. hh: [number + ' tunni', number + ' tundi'],
  18412. d: ['ühe päeva', 'üks päev'],
  18413. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  18414. MM: [number + ' kuu', number + ' kuud'],
  18415. y: ['ühe aasta', 'aasta', 'üks aasta'],
  18416. yy: [number + ' aasta', number + ' aastat'] };
  18417. if (withoutSuffix) {
  18418. return format[key][2] ? format[key][2] : format[key][1];
  18419. }
  18420. return isFuture ? format[key][0] : format[key][1];
  18421. }
  18422. var et = moment.defineLocale('et', {
  18423. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  18424. '_'),
  18425. monthsShort:
  18426. 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  18427. weekdays:
  18428. 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  18429. '_'),
  18430. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  18431. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  18432. longDateFormat: {
  18433. LT: 'H:mm',
  18434. LTS: 'H:mm:ss',
  18435. L: 'DD.MM.YYYY',
  18436. LL: 'D. MMMM YYYY',
  18437. LLL: 'D. MMMM YYYY H:mm',
  18438. LLLL: 'dddd, D. MMMM YYYY H:mm' },
  18439. calendar: {
  18440. sameDay: '[Täna,] LT',
  18441. nextDay: '[Homme,] LT',
  18442. nextWeek: '[Järgmine] dddd LT',
  18443. lastDay: '[Eile,] LT',
  18444. lastWeek: '[Eelmine] dddd LT',
  18445. sameElse: 'L' },
  18446. relativeTime: {
  18447. future: '%s pärast',
  18448. past: '%s tagasi',
  18449. s: processRelativeTime,
  18450. ss: processRelativeTime,
  18451. m: processRelativeTime,
  18452. mm: processRelativeTime,
  18453. h: processRelativeTime,
  18454. hh: processRelativeTime,
  18455. d: processRelativeTime,
  18456. dd: '%d päeva',
  18457. M: processRelativeTime,
  18458. MM: processRelativeTime,
  18459. y: processRelativeTime,
  18460. yy: processRelativeTime },
  18461. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18462. ordinal: '%d.',
  18463. week: {
  18464. dow: 1, // Monday is the first day of the week.
  18465. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18466. } });
  18467. return et;
  18468. });
  18469. /***/ }),
  18470. /* 57 */
  18471. /*!***************************************************************************!*\
  18472. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/eu.js ***!
  18473. \***************************************************************************/
  18474. /*! no static exports found */
  18475. /***/ (function(module, exports, __webpack_require__) {
  18476. //! moment.js locale configuration
  18477. //! locale : Basque [eu]
  18478. //! author : Eneko Illarramendi : https://github.com/eillarra
  18479. ;(function (global, factory) {
  18480. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18481. undefined;
  18482. })(this, function (moment) {'use strict';
  18483. //! moment.js locale configuration
  18484. var eu = moment.defineLocale('eu', {
  18485. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  18486. '_'),
  18487. monthsShort:
  18488. 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  18489. '_'),
  18490. monthsParseExact: true,
  18491. weekdays:
  18492. 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  18493. '_'),
  18494. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  18495. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  18496. weekdaysParseExact: true,
  18497. longDateFormat: {
  18498. LT: 'HH:mm',
  18499. LTS: 'HH:mm:ss',
  18500. L: 'YYYY-MM-DD',
  18501. LL: 'YYYY[ko] MMMM[ren] D[a]',
  18502. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  18503. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  18504. l: 'YYYY-M-D',
  18505. ll: 'YYYY[ko] MMM D[a]',
  18506. lll: 'YYYY[ko] MMM D[a] HH:mm',
  18507. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm' },
  18508. calendar: {
  18509. sameDay: '[gaur] LT[etan]',
  18510. nextDay: '[bihar] LT[etan]',
  18511. nextWeek: 'dddd LT[etan]',
  18512. lastDay: '[atzo] LT[etan]',
  18513. lastWeek: '[aurreko] dddd LT[etan]',
  18514. sameElse: 'L' },
  18515. relativeTime: {
  18516. future: '%s barru',
  18517. past: 'duela %s',
  18518. s: 'segundo batzuk',
  18519. ss: '%d segundo',
  18520. m: 'minutu bat',
  18521. mm: '%d minutu',
  18522. h: 'ordu bat',
  18523. hh: '%d ordu',
  18524. d: 'egun bat',
  18525. dd: '%d egun',
  18526. M: 'hilabete bat',
  18527. MM: '%d hilabete',
  18528. y: 'urte bat',
  18529. yy: '%d urte' },
  18530. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18531. ordinal: '%d.',
  18532. week: {
  18533. dow: 1, // Monday is the first day of the week.
  18534. doy: 7 // The week that contains Jan 7th is the first week of the year.
  18535. } });
  18536. return eu;
  18537. });
  18538. /***/ }),
  18539. /* 58 */
  18540. /*!***************************************************************************!*\
  18541. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fa.js ***!
  18542. \***************************************************************************/
  18543. /*! no static exports found */
  18544. /***/ (function(module, exports, __webpack_require__) {
  18545. //! moment.js locale configuration
  18546. //! locale : Persian [fa]
  18547. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  18548. ;(function (global, factory) {
  18549. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18550. undefined;
  18551. })(this, function (moment) {'use strict';
  18552. //! moment.js locale configuration
  18553. var symbolMap = {
  18554. 1: '۱',
  18555. 2: '۲',
  18556. 3: '۳',
  18557. 4: '۴',
  18558. 5: '۵',
  18559. 6: '۶',
  18560. 7: '۷',
  18561. 8: '۸',
  18562. 9: '۹',
  18563. 0: '۰' },
  18564. numberMap = {
  18565. '۱': '1',
  18566. '۲': '2',
  18567. '۳': '3',
  18568. '۴': '4',
  18569. '۵': '5',
  18570. '۶': '6',
  18571. '۷': '7',
  18572. '۸': '8',
  18573. '۹': '9',
  18574. '۰': '0' };
  18575. var fa = moment.defineLocale('fa', {
  18576. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  18577. '_'),
  18578. monthsShort:
  18579. 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  18580. '_'),
  18581. weekdays:
  18582. "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split(
  18583. '_'),
  18584. weekdaysShort:
  18585. "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split(
  18586. '_'),
  18587. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  18588. weekdaysParseExact: true,
  18589. longDateFormat: {
  18590. LT: 'HH:mm',
  18591. LTS: 'HH:mm:ss',
  18592. L: 'DD/MM/YYYY',
  18593. LL: 'D MMMM YYYY',
  18594. LLL: 'D MMMM YYYY HH:mm',
  18595. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  18596. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  18597. isPM: function isPM(input) {
  18598. return /بعد از ظهر/.test(input);
  18599. },
  18600. meridiem: function meridiem(hour, minute, isLower) {
  18601. if (hour < 12) {
  18602. return 'قبل از ظهر';
  18603. } else {
  18604. return 'بعد از ظهر';
  18605. }
  18606. },
  18607. calendar: {
  18608. sameDay: '[امروز ساعت] LT',
  18609. nextDay: '[فردا ساعت] LT',
  18610. nextWeek: 'dddd [ساعت] LT',
  18611. lastDay: '[دیروز ساعت] LT',
  18612. lastWeek: 'dddd [پیش] [ساعت] LT',
  18613. sameElse: 'L' },
  18614. relativeTime: {
  18615. future: 'در %s',
  18616. past: '%s پیش',
  18617. s: 'چند ثانیه',
  18618. ss: '%d ثانیه',
  18619. m: 'یک دقیقه',
  18620. mm: '%d دقیقه',
  18621. h: 'یک ساعت',
  18622. hh: '%d ساعت',
  18623. d: 'یک روز',
  18624. dd: '%d روز',
  18625. M: 'یک ماه',
  18626. MM: '%d ماه',
  18627. y: 'یک سال',
  18628. yy: '%d سال' },
  18629. preparse: function preparse(string) {
  18630. return string.
  18631. replace(/[۰-۹]/g, function (match) {
  18632. return numberMap[match];
  18633. }).
  18634. replace(/،/g, ',');
  18635. },
  18636. postformat: function postformat(string) {
  18637. return string.
  18638. replace(/\d/g, function (match) {
  18639. return symbolMap[match];
  18640. }).
  18641. replace(/,/g, '،');
  18642. },
  18643. dayOfMonthOrdinalParse: /\d{1,2}م/,
  18644. ordinal: '%dم',
  18645. week: {
  18646. dow: 6, // Saturday is the first day of the week.
  18647. doy: 12 // The week that contains Jan 12th is the first week of the year.
  18648. } });
  18649. return fa;
  18650. });
  18651. /***/ }),
  18652. /* 59 */
  18653. /*!***************************************************************************!*\
  18654. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fi.js ***!
  18655. \***************************************************************************/
  18656. /*! no static exports found */
  18657. /***/ (function(module, exports, __webpack_require__) {
  18658. //! moment.js locale configuration
  18659. //! locale : Finnish [fi]
  18660. //! author : Tarmo Aidantausta : https://github.com/bleadof
  18661. ;(function (global, factory) {
  18662. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18663. undefined;
  18664. })(this, function (moment) {'use strict';
  18665. //! moment.js locale configuration
  18666. var numbersPast =
  18667. 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  18668. ' '),
  18669. numbersFuture = [
  18670. 'nolla',
  18671. 'yhden',
  18672. 'kahden',
  18673. 'kolmen',
  18674. 'neljän',
  18675. 'viiden',
  18676. 'kuuden',
  18677. numbersPast[7],
  18678. numbersPast[8],
  18679. numbersPast[9]];
  18680. function translate(number, withoutSuffix, key, isFuture) {
  18681. var result = '';
  18682. switch (key) {
  18683. case 's':
  18684. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  18685. case 'ss':
  18686. result = isFuture ? 'sekunnin' : 'sekuntia';
  18687. break;
  18688. case 'm':
  18689. return isFuture ? 'minuutin' : 'minuutti';
  18690. case 'mm':
  18691. result = isFuture ? 'minuutin' : 'minuuttia';
  18692. break;
  18693. case 'h':
  18694. return isFuture ? 'tunnin' : 'tunti';
  18695. case 'hh':
  18696. result = isFuture ? 'tunnin' : 'tuntia';
  18697. break;
  18698. case 'd':
  18699. return isFuture ? 'päivän' : 'päivä';
  18700. case 'dd':
  18701. result = isFuture ? 'päivän' : 'päivää';
  18702. break;
  18703. case 'M':
  18704. return isFuture ? 'kuukauden' : 'kuukausi';
  18705. case 'MM':
  18706. result = isFuture ? 'kuukauden' : 'kuukautta';
  18707. break;
  18708. case 'y':
  18709. return isFuture ? 'vuoden' : 'vuosi';
  18710. case 'yy':
  18711. result = isFuture ? 'vuoden' : 'vuotta';
  18712. break;}
  18713. result = verbalNumber(number, isFuture) + ' ' + result;
  18714. return result;
  18715. }
  18716. function verbalNumber(number, isFuture) {
  18717. return number < 10 ?
  18718. isFuture ?
  18719. numbersFuture[number] :
  18720. numbersPast[number] :
  18721. number;
  18722. }
  18723. var fi = moment.defineLocale('fi', {
  18724. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  18725. '_'),
  18726. monthsShort:
  18727. 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  18728. '_'),
  18729. weekdays:
  18730. 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  18731. '_'),
  18732. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  18733. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  18734. longDateFormat: {
  18735. LT: 'HH.mm',
  18736. LTS: 'HH.mm.ss',
  18737. L: 'DD.MM.YYYY',
  18738. LL: 'Do MMMM[ta] YYYY',
  18739. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  18740. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  18741. l: 'D.M.YYYY',
  18742. ll: 'Do MMM YYYY',
  18743. lll: 'Do MMM YYYY, [klo] HH.mm',
  18744. llll: 'ddd, Do MMM YYYY, [klo] HH.mm' },
  18745. calendar: {
  18746. sameDay: '[tänään] [klo] LT',
  18747. nextDay: '[huomenna] [klo] LT',
  18748. nextWeek: 'dddd [klo] LT',
  18749. lastDay: '[eilen] [klo] LT',
  18750. lastWeek: '[viime] dddd[na] [klo] LT',
  18751. sameElse: 'L' },
  18752. relativeTime: {
  18753. future: '%s päästä',
  18754. past: '%s sitten',
  18755. s: translate,
  18756. ss: translate,
  18757. m: translate,
  18758. mm: translate,
  18759. h: translate,
  18760. hh: translate,
  18761. d: translate,
  18762. dd: translate,
  18763. M: translate,
  18764. MM: translate,
  18765. y: translate,
  18766. yy: translate },
  18767. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18768. ordinal: '%d.',
  18769. week: {
  18770. dow: 1, // Monday is the first day of the week.
  18771. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18772. } });
  18773. return fi;
  18774. });
  18775. /***/ }),
  18776. /* 60 */
  18777. /*!****************************************************************************!*\
  18778. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fil.js ***!
  18779. \****************************************************************************/
  18780. /*! no static exports found */
  18781. /***/ (function(module, exports, __webpack_require__) {
  18782. //! moment.js locale configuration
  18783. //! locale : Filipino [fil]
  18784. //! author : Dan Hagman : https://github.com/hagmandan
  18785. //! author : Matthew Co : https://github.com/matthewdeeco
  18786. ;(function (global, factory) {
  18787. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18788. undefined;
  18789. })(this, function (moment) {'use strict';
  18790. //! moment.js locale configuration
  18791. var fil = moment.defineLocale('fil', {
  18792. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  18793. '_'),
  18794. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  18795. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  18796. '_'),
  18797. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  18798. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  18799. longDateFormat: {
  18800. LT: 'HH:mm',
  18801. LTS: 'HH:mm:ss',
  18802. L: 'MM/D/YYYY',
  18803. LL: 'MMMM D, YYYY',
  18804. LLL: 'MMMM D, YYYY HH:mm',
  18805. LLLL: 'dddd, MMMM DD, YYYY HH:mm' },
  18806. calendar: {
  18807. sameDay: 'LT [ngayong araw]',
  18808. nextDay: '[Bukas ng] LT',
  18809. nextWeek: 'LT [sa susunod na] dddd',
  18810. lastDay: 'LT [kahapon]',
  18811. lastWeek: 'LT [noong nakaraang] dddd',
  18812. sameElse: 'L' },
  18813. relativeTime: {
  18814. future: 'sa loob ng %s',
  18815. past: '%s ang nakalipas',
  18816. s: 'ilang segundo',
  18817. ss: '%d segundo',
  18818. m: 'isang minuto',
  18819. mm: '%d minuto',
  18820. h: 'isang oras',
  18821. hh: '%d oras',
  18822. d: 'isang araw',
  18823. dd: '%d araw',
  18824. M: 'isang buwan',
  18825. MM: '%d buwan',
  18826. y: 'isang taon',
  18827. yy: '%d taon' },
  18828. dayOfMonthOrdinalParse: /\d{1,2}/,
  18829. ordinal: function ordinal(number) {
  18830. return number;
  18831. },
  18832. week: {
  18833. dow: 1, // Monday is the first day of the week.
  18834. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18835. } });
  18836. return fil;
  18837. });
  18838. /***/ }),
  18839. /* 61 */
  18840. /*!***************************************************************************!*\
  18841. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fo.js ***!
  18842. \***************************************************************************/
  18843. /*! no static exports found */
  18844. /***/ (function(module, exports, __webpack_require__) {
  18845. //! moment.js locale configuration
  18846. //! locale : Faroese [fo]
  18847. //! author : Ragnar Johannesen : https://github.com/ragnar123
  18848. //! author : Kristian Sakarisson : https://github.com/sakarisson
  18849. ;(function (global, factory) {
  18850. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18851. undefined;
  18852. })(this, function (moment) {'use strict';
  18853. //! moment.js locale configuration
  18854. var fo = moment.defineLocale('fo', {
  18855. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  18856. '_'),
  18857. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  18858. weekdays:
  18859. 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  18860. '_'),
  18861. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  18862. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  18863. longDateFormat: {
  18864. LT: 'HH:mm',
  18865. LTS: 'HH:mm:ss',
  18866. L: 'DD/MM/YYYY',
  18867. LL: 'D MMMM YYYY',
  18868. LLL: 'D MMMM YYYY HH:mm',
  18869. LLLL: 'dddd D. MMMM, YYYY HH:mm' },
  18870. calendar: {
  18871. sameDay: '[Í dag kl.] LT',
  18872. nextDay: '[Í morgin kl.] LT',
  18873. nextWeek: 'dddd [kl.] LT',
  18874. lastDay: '[Í gjár kl.] LT',
  18875. lastWeek: '[síðstu] dddd [kl] LT',
  18876. sameElse: 'L' },
  18877. relativeTime: {
  18878. future: 'um %s',
  18879. past: '%s síðani',
  18880. s: 'fá sekund',
  18881. ss: '%d sekundir',
  18882. m: 'ein minuttur',
  18883. mm: '%d minuttir',
  18884. h: 'ein tími',
  18885. hh: '%d tímar',
  18886. d: 'ein dagur',
  18887. dd: '%d dagar',
  18888. M: 'ein mánaður',
  18889. MM: '%d mánaðir',
  18890. y: 'eitt ár',
  18891. yy: '%d ár' },
  18892. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18893. ordinal: '%d.',
  18894. week: {
  18895. dow: 1, // Monday is the first day of the week.
  18896. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18897. } });
  18898. return fo;
  18899. });
  18900. /***/ }),
  18901. /* 62 */
  18902. /*!***************************************************************************!*\
  18903. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fr.js ***!
  18904. \***************************************************************************/
  18905. /*! no static exports found */
  18906. /***/ (function(module, exports, __webpack_require__) {
  18907. //! moment.js locale configuration
  18908. //! locale : French [fr]
  18909. //! author : John Fischer : https://github.com/jfroffice
  18910. ;(function (global, factory) {
  18911. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  18912. undefined;
  18913. })(this, function (moment) {'use strict';
  18914. //! moment.js locale configuration
  18915. var monthsStrictRegex =
  18916. /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  18917. monthsShortStrictRegex =
  18918. /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  18919. monthsRegex =
  18920. /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  18921. monthsParse = [
  18922. /^janv/i,
  18923. /^févr/i,
  18924. /^mars/i,
  18925. /^avr/i,
  18926. /^mai/i,
  18927. /^juin/i,
  18928. /^juil/i,
  18929. /^août/i,
  18930. /^sept/i,
  18931. /^oct/i,
  18932. /^nov/i,
  18933. /^déc/i];
  18934. var fr = moment.defineLocale('fr', {
  18935. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  18936. '_'),
  18937. monthsShort:
  18938. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  18939. '_'),
  18940. monthsRegex: monthsRegex,
  18941. monthsShortRegex: monthsRegex,
  18942. monthsStrictRegex: monthsStrictRegex,
  18943. monthsShortStrictRegex: monthsShortStrictRegex,
  18944. monthsParse: monthsParse,
  18945. longMonthsParse: monthsParse,
  18946. shortMonthsParse: monthsParse,
  18947. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  18948. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  18949. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  18950. weekdaysParseExact: true,
  18951. longDateFormat: {
  18952. LT: 'HH:mm',
  18953. LTS: 'HH:mm:ss',
  18954. L: 'DD/MM/YYYY',
  18955. LL: 'D MMMM YYYY',
  18956. LLL: 'D MMMM YYYY HH:mm',
  18957. LLLL: 'dddd D MMMM YYYY HH:mm' },
  18958. calendar: {
  18959. sameDay: '[Aujourd’hui à] LT',
  18960. nextDay: '[Demain à] LT',
  18961. nextWeek: 'dddd [à] LT',
  18962. lastDay: '[Hier à] LT',
  18963. lastWeek: 'dddd [dernier à] LT',
  18964. sameElse: 'L' },
  18965. relativeTime: {
  18966. future: 'dans %s',
  18967. past: 'il y a %s',
  18968. s: 'quelques secondes',
  18969. ss: '%d secondes',
  18970. m: 'une minute',
  18971. mm: '%d minutes',
  18972. h: 'une heure',
  18973. hh: '%d heures',
  18974. d: 'un jour',
  18975. dd: '%d jours',
  18976. w: 'une semaine',
  18977. ww: '%d semaines',
  18978. M: 'un mois',
  18979. MM: '%d mois',
  18980. y: 'un an',
  18981. yy: '%d ans' },
  18982. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  18983. ordinal: function ordinal(number, period) {
  18984. switch (period) {
  18985. // TODO: Return 'e' when day of month > 1. Move this case inside
  18986. // block for masculine words below.
  18987. // See https://github.com/moment/moment/issues/3375
  18988. case 'D':
  18989. return number + (number === 1 ? 'er' : '');
  18990. // Words with masculine grammatical gender: mois, trimestre, jour
  18991. default:
  18992. case 'M':
  18993. case 'Q':
  18994. case 'DDD':
  18995. case 'd':
  18996. return number + (number === 1 ? 'er' : 'e');
  18997. // Words with feminine grammatical gender: semaine
  18998. case 'w':
  18999. case 'W':
  19000. return number + (number === 1 ? 're' : 'e');}
  19001. },
  19002. week: {
  19003. dow: 1, // Monday is the first day of the week.
  19004. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19005. } });
  19006. return fr;
  19007. });
  19008. /***/ }),
  19009. /* 63 */
  19010. /*!******************************************************************************!*\
  19011. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fr-ca.js ***!
  19012. \******************************************************************************/
  19013. /*! no static exports found */
  19014. /***/ (function(module, exports, __webpack_require__) {
  19015. //! moment.js locale configuration
  19016. //! locale : French (Canada) [fr-ca]
  19017. //! author : Jonathan Abourbih : https://github.com/jonbca
  19018. ;(function (global, factory) {
  19019. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19020. undefined;
  19021. })(this, function (moment) {'use strict';
  19022. //! moment.js locale configuration
  19023. var frCa = moment.defineLocale('fr-ca', {
  19024. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  19025. '_'),
  19026. monthsShort:
  19027. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  19028. '_'),
  19029. monthsParseExact: true,
  19030. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  19031. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  19032. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  19033. weekdaysParseExact: true,
  19034. longDateFormat: {
  19035. LT: 'HH:mm',
  19036. LTS: 'HH:mm:ss',
  19037. L: 'YYYY-MM-DD',
  19038. LL: 'D MMMM YYYY',
  19039. LLL: 'D MMMM YYYY HH:mm',
  19040. LLLL: 'dddd D MMMM YYYY HH:mm' },
  19041. calendar: {
  19042. sameDay: '[Aujourd’hui à] LT',
  19043. nextDay: '[Demain à] LT',
  19044. nextWeek: 'dddd [à] LT',
  19045. lastDay: '[Hier à] LT',
  19046. lastWeek: 'dddd [dernier à] LT',
  19047. sameElse: 'L' },
  19048. relativeTime: {
  19049. future: 'dans %s',
  19050. past: 'il y a %s',
  19051. s: 'quelques secondes',
  19052. ss: '%d secondes',
  19053. m: 'une minute',
  19054. mm: '%d minutes',
  19055. h: 'une heure',
  19056. hh: '%d heures',
  19057. d: 'un jour',
  19058. dd: '%d jours',
  19059. M: 'un mois',
  19060. MM: '%d mois',
  19061. y: 'un an',
  19062. yy: '%d ans' },
  19063. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  19064. ordinal: function ordinal(number, period) {
  19065. switch (period) {
  19066. // Words with masculine grammatical gender: mois, trimestre, jour
  19067. default:
  19068. case 'M':
  19069. case 'Q':
  19070. case 'D':
  19071. case 'DDD':
  19072. case 'd':
  19073. return number + (number === 1 ? 'er' : 'e');
  19074. // Words with feminine grammatical gender: semaine
  19075. case 'w':
  19076. case 'W':
  19077. return number + (number === 1 ? 're' : 'e');}
  19078. } });
  19079. return frCa;
  19080. });
  19081. /***/ }),
  19082. /* 64 */
  19083. /*!******************************************************************************!*\
  19084. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fr-ch.js ***!
  19085. \******************************************************************************/
  19086. /*! no static exports found */
  19087. /***/ (function(module, exports, __webpack_require__) {
  19088. //! moment.js locale configuration
  19089. //! locale : French (Switzerland) [fr-ch]
  19090. //! author : Gaspard Bucher : https://github.com/gaspard
  19091. ;(function (global, factory) {
  19092. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19093. undefined;
  19094. })(this, function (moment) {'use strict';
  19095. //! moment.js locale configuration
  19096. var frCh = moment.defineLocale('fr-ch', {
  19097. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  19098. '_'),
  19099. monthsShort:
  19100. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  19101. '_'),
  19102. monthsParseExact: true,
  19103. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  19104. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  19105. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  19106. weekdaysParseExact: true,
  19107. longDateFormat: {
  19108. LT: 'HH:mm',
  19109. LTS: 'HH:mm:ss',
  19110. L: 'DD.MM.YYYY',
  19111. LL: 'D MMMM YYYY',
  19112. LLL: 'D MMMM YYYY HH:mm',
  19113. LLLL: 'dddd D MMMM YYYY HH:mm' },
  19114. calendar: {
  19115. sameDay: '[Aujourd’hui à] LT',
  19116. nextDay: '[Demain à] LT',
  19117. nextWeek: 'dddd [à] LT',
  19118. lastDay: '[Hier à] LT',
  19119. lastWeek: 'dddd [dernier à] LT',
  19120. sameElse: 'L' },
  19121. relativeTime: {
  19122. future: 'dans %s',
  19123. past: 'il y a %s',
  19124. s: 'quelques secondes',
  19125. ss: '%d secondes',
  19126. m: 'une minute',
  19127. mm: '%d minutes',
  19128. h: 'une heure',
  19129. hh: '%d heures',
  19130. d: 'un jour',
  19131. dd: '%d jours',
  19132. M: 'un mois',
  19133. MM: '%d mois',
  19134. y: 'un an',
  19135. yy: '%d ans' },
  19136. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  19137. ordinal: function ordinal(number, period) {
  19138. switch (period) {
  19139. // Words with masculine grammatical gender: mois, trimestre, jour
  19140. default:
  19141. case 'M':
  19142. case 'Q':
  19143. case 'D':
  19144. case 'DDD':
  19145. case 'd':
  19146. return number + (number === 1 ? 'er' : 'e');
  19147. // Words with feminine grammatical gender: semaine
  19148. case 'w':
  19149. case 'W':
  19150. return number + (number === 1 ? 're' : 'e');}
  19151. },
  19152. week: {
  19153. dow: 1, // Monday is the first day of the week.
  19154. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19155. } });
  19156. return frCh;
  19157. });
  19158. /***/ }),
  19159. /* 65 */
  19160. /*!***************************************************************************!*\
  19161. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/fy.js ***!
  19162. \***************************************************************************/
  19163. /*! no static exports found */
  19164. /***/ (function(module, exports, __webpack_require__) {
  19165. //! moment.js locale configuration
  19166. //! locale : Frisian [fy]
  19167. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  19168. ;(function (global, factory) {
  19169. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19170. undefined;
  19171. })(this, function (moment) {'use strict';
  19172. //! moment.js locale configuration
  19173. var monthsShortWithDots =
  19174. 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  19175. monthsShortWithoutDots =
  19176. 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  19177. var fy = moment.defineLocale('fy', {
  19178. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  19179. '_'),
  19180. monthsShort: function monthsShort(m, format) {
  19181. if (!m) {
  19182. return monthsShortWithDots;
  19183. } else if (/-MMM-/.test(format)) {
  19184. return monthsShortWithoutDots[m.month()];
  19185. } else {
  19186. return monthsShortWithDots[m.month()];
  19187. }
  19188. },
  19189. monthsParseExact: true,
  19190. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  19191. '_'),
  19192. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  19193. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  19194. weekdaysParseExact: true,
  19195. longDateFormat: {
  19196. LT: 'HH:mm',
  19197. LTS: 'HH:mm:ss',
  19198. L: 'DD-MM-YYYY',
  19199. LL: 'D MMMM YYYY',
  19200. LLL: 'D MMMM YYYY HH:mm',
  19201. LLLL: 'dddd D MMMM YYYY HH:mm' },
  19202. calendar: {
  19203. sameDay: '[hjoed om] LT',
  19204. nextDay: '[moarn om] LT',
  19205. nextWeek: 'dddd [om] LT',
  19206. lastDay: '[juster om] LT',
  19207. lastWeek: '[ôfrûne] dddd [om] LT',
  19208. sameElse: 'L' },
  19209. relativeTime: {
  19210. future: 'oer %s',
  19211. past: '%s lyn',
  19212. s: 'in pear sekonden',
  19213. ss: '%d sekonden',
  19214. m: 'ien minút',
  19215. mm: '%d minuten',
  19216. h: 'ien oere',
  19217. hh: '%d oeren',
  19218. d: 'ien dei',
  19219. dd: '%d dagen',
  19220. M: 'ien moanne',
  19221. MM: '%d moannen',
  19222. y: 'ien jier',
  19223. yy: '%d jierren' },
  19224. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  19225. ordinal: function ordinal(number) {
  19226. return (
  19227. number + (
  19228. number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'));
  19229. },
  19230. week: {
  19231. dow: 1, // Monday is the first day of the week.
  19232. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19233. } });
  19234. return fy;
  19235. });
  19236. /***/ }),
  19237. /* 66 */
  19238. /*!***************************************************************************!*\
  19239. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ga.js ***!
  19240. \***************************************************************************/
  19241. /*! no static exports found */
  19242. /***/ (function(module, exports, __webpack_require__) {
  19243. //! moment.js locale configuration
  19244. //! locale : Irish or Irish Gaelic [ga]
  19245. //! author : André Silva : https://github.com/askpt
  19246. ;(function (global, factory) {
  19247. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19248. undefined;
  19249. })(this, function (moment) {'use strict';
  19250. //! moment.js locale configuration
  19251. var months = [
  19252. 'Eanáir',
  19253. 'Feabhra',
  19254. 'Márta',
  19255. 'Aibreán',
  19256. 'Bealtaine',
  19257. 'Meitheamh',
  19258. 'Iúil',
  19259. 'Lúnasa',
  19260. 'Meán Fómhair',
  19261. 'Deireadh Fómhair',
  19262. 'Samhain',
  19263. 'Nollaig'],
  19264. monthsShort = [
  19265. 'Ean',
  19266. 'Feabh',
  19267. 'Márt',
  19268. 'Aib',
  19269. 'Beal',
  19270. 'Meith',
  19271. 'Iúil',
  19272. 'Lún',
  19273. 'M.F.',
  19274. 'D.F.',
  19275. 'Samh',
  19276. 'Noll'],
  19277. weekdays = [
  19278. 'Dé Domhnaigh',
  19279. 'Dé Luain',
  19280. 'Dé Máirt',
  19281. 'Dé Céadaoin',
  19282. 'Déardaoin',
  19283. 'Dé hAoine',
  19284. 'Dé Sathairn'],
  19285. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  19286. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  19287. var ga = moment.defineLocale('ga', {
  19288. months: months,
  19289. monthsShort: monthsShort,
  19290. monthsParseExact: true,
  19291. weekdays: weekdays,
  19292. weekdaysShort: weekdaysShort,
  19293. weekdaysMin: weekdaysMin,
  19294. longDateFormat: {
  19295. LT: 'HH:mm',
  19296. LTS: 'HH:mm:ss',
  19297. L: 'DD/MM/YYYY',
  19298. LL: 'D MMMM YYYY',
  19299. LLL: 'D MMMM YYYY HH:mm',
  19300. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  19301. calendar: {
  19302. sameDay: '[Inniu ag] LT',
  19303. nextDay: '[Amárach ag] LT',
  19304. nextWeek: 'dddd [ag] LT',
  19305. lastDay: '[Inné ag] LT',
  19306. lastWeek: 'dddd [seo caite] [ag] LT',
  19307. sameElse: 'L' },
  19308. relativeTime: {
  19309. future: 'i %s',
  19310. past: '%s ó shin',
  19311. s: 'cúpla soicind',
  19312. ss: '%d soicind',
  19313. m: 'nóiméad',
  19314. mm: '%d nóiméad',
  19315. h: 'uair an chloig',
  19316. hh: '%d uair an chloig',
  19317. d: 'lá',
  19318. dd: '%d lá',
  19319. M: 'mí',
  19320. MM: '%d míonna',
  19321. y: 'bliain',
  19322. yy: '%d bliain' },
  19323. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  19324. ordinal: function ordinal(number) {
  19325. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  19326. return number + output;
  19327. },
  19328. week: {
  19329. dow: 1, // Monday is the first day of the week.
  19330. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19331. } });
  19332. return ga;
  19333. });
  19334. /***/ }),
  19335. /* 67 */
  19336. /*!***************************************************************************!*\
  19337. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/gd.js ***!
  19338. \***************************************************************************/
  19339. /*! no static exports found */
  19340. /***/ (function(module, exports, __webpack_require__) {
  19341. //! moment.js locale configuration
  19342. //! locale : Scottish Gaelic [gd]
  19343. //! author : Jon Ashdown : https://github.com/jonashdown
  19344. ;(function (global, factory) {
  19345. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19346. undefined;
  19347. })(this, function (moment) {'use strict';
  19348. //! moment.js locale configuration
  19349. var months = [
  19350. 'Am Faoilleach',
  19351. 'An Gearran',
  19352. 'Am Màrt',
  19353. 'An Giblean',
  19354. 'An Cèitean',
  19355. 'An t-Ògmhios',
  19356. 'An t-Iuchar',
  19357. 'An Lùnastal',
  19358. 'An t-Sultain',
  19359. 'An Dàmhair',
  19360. 'An t-Samhain',
  19361. 'An Dùbhlachd'],
  19362. monthsShort = [
  19363. 'Faoi',
  19364. 'Gear',
  19365. 'Màrt',
  19366. 'Gibl',
  19367. 'Cèit',
  19368. 'Ògmh',
  19369. 'Iuch',
  19370. 'Lùn',
  19371. 'Sult',
  19372. 'Dàmh',
  19373. 'Samh',
  19374. 'Dùbh'],
  19375. weekdays = [
  19376. 'Didòmhnaich',
  19377. 'Diluain',
  19378. 'Dimàirt',
  19379. 'Diciadain',
  19380. 'Diardaoin',
  19381. 'Dihaoine',
  19382. 'Disathairne'],
  19383. weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  19384. weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  19385. var gd = moment.defineLocale('gd', {
  19386. months: months,
  19387. monthsShort: monthsShort,
  19388. monthsParseExact: true,
  19389. weekdays: weekdays,
  19390. weekdaysShort: weekdaysShort,
  19391. weekdaysMin: weekdaysMin,
  19392. longDateFormat: {
  19393. LT: 'HH:mm',
  19394. LTS: 'HH:mm:ss',
  19395. L: 'DD/MM/YYYY',
  19396. LL: 'D MMMM YYYY',
  19397. LLL: 'D MMMM YYYY HH:mm',
  19398. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  19399. calendar: {
  19400. sameDay: '[An-diugh aig] LT',
  19401. nextDay: '[A-màireach aig] LT',
  19402. nextWeek: 'dddd [aig] LT',
  19403. lastDay: '[An-dè aig] LT',
  19404. lastWeek: 'dddd [seo chaidh] [aig] LT',
  19405. sameElse: 'L' },
  19406. relativeTime: {
  19407. future: 'ann an %s',
  19408. past: 'bho chionn %s',
  19409. s: 'beagan diogan',
  19410. ss: '%d diogan',
  19411. m: 'mionaid',
  19412. mm: '%d mionaidean',
  19413. h: 'uair',
  19414. hh: '%d uairean',
  19415. d: 'latha',
  19416. dd: '%d latha',
  19417. M: 'mìos',
  19418. MM: '%d mìosan',
  19419. y: 'bliadhna',
  19420. yy: '%d bliadhna' },
  19421. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  19422. ordinal: function ordinal(number) {
  19423. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  19424. return number + output;
  19425. },
  19426. week: {
  19427. dow: 1, // Monday is the first day of the week.
  19428. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19429. } });
  19430. return gd;
  19431. });
  19432. /***/ }),
  19433. /* 68 */
  19434. /*!***************************************************************************!*\
  19435. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/gl.js ***!
  19436. \***************************************************************************/
  19437. /*! no static exports found */
  19438. /***/ (function(module, exports, __webpack_require__) {
  19439. //! moment.js locale configuration
  19440. //! locale : Galician [gl]
  19441. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  19442. ;(function (global, factory) {
  19443. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19444. undefined;
  19445. })(this, function (moment) {'use strict';
  19446. //! moment.js locale configuration
  19447. var gl = moment.defineLocale('gl', {
  19448. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  19449. '_'),
  19450. monthsShort:
  19451. 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  19452. '_'),
  19453. monthsParseExact: true,
  19454. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  19455. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  19456. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  19457. weekdaysParseExact: true,
  19458. longDateFormat: {
  19459. LT: 'H:mm',
  19460. LTS: 'H:mm:ss',
  19461. L: 'DD/MM/YYYY',
  19462. LL: 'D [de] MMMM [de] YYYY',
  19463. LLL: 'D [de] MMMM [de] YYYY H:mm',
  19464. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm' },
  19465. calendar: {
  19466. sameDay: function sameDay() {
  19467. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  19468. },
  19469. nextDay: function nextDay() {
  19470. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  19471. },
  19472. nextWeek: function nextWeek() {
  19473. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  19474. },
  19475. lastDay: function lastDay() {
  19476. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  19477. },
  19478. lastWeek: function lastWeek() {
  19479. return (
  19480. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT');
  19481. },
  19482. sameElse: 'L' },
  19483. relativeTime: {
  19484. future: function future(str) {
  19485. if (str.indexOf('un') === 0) {
  19486. return 'n' + str;
  19487. }
  19488. return 'en ' + str;
  19489. },
  19490. past: 'hai %s',
  19491. s: 'uns segundos',
  19492. ss: '%d segundos',
  19493. m: 'un minuto',
  19494. mm: '%d minutos',
  19495. h: 'unha hora',
  19496. hh: '%d horas',
  19497. d: 'un día',
  19498. dd: '%d días',
  19499. M: 'un mes',
  19500. MM: '%d meses',
  19501. y: 'un ano',
  19502. yy: '%d anos' },
  19503. dayOfMonthOrdinalParse: /\d{1,2}º/,
  19504. ordinal: '%dº',
  19505. week: {
  19506. dow: 1, // Monday is the first day of the week.
  19507. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19508. } });
  19509. return gl;
  19510. });
  19511. /***/ }),
  19512. /* 69 */
  19513. /*!*********************************************************************************!*\
  19514. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/gom-deva.js ***!
  19515. \*********************************************************************************/
  19516. /*! no static exports found */
  19517. /***/ (function(module, exports, __webpack_require__) {
  19518. //! moment.js locale configuration
  19519. //! locale : Konkani Devanagari script [gom-deva]
  19520. //! author : The Discoverer : https://github.com/WikiDiscoverer
  19521. ;(function (global, factory) {
  19522. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19523. undefined;
  19524. })(this, function (moment) {'use strict';
  19525. //! moment.js locale configuration
  19526. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  19527. var format = {
  19528. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  19529. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  19530. m: ['एका मिणटान', 'एक मिनूट'],
  19531. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  19532. h: ['एका वरान', 'एक वर'],
  19533. hh: [number + ' वरांनी', number + ' वरां'],
  19534. d: ['एका दिसान', 'एक दीस'],
  19535. dd: [number + ' दिसांनी', number + ' दीस'],
  19536. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  19537. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  19538. y: ['एका वर्सान', 'एक वर्स'],
  19539. yy: [number + ' वर्सांनी', number + ' वर्सां'] };
  19540. return isFuture ? format[key][0] : format[key][1];
  19541. }
  19542. var gomDeva = moment.defineLocale('gom-deva', {
  19543. months: {
  19544. standalone:
  19545. 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  19546. '_'),
  19547. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  19548. '_'),
  19549. isFormat: /MMMM(\s)+D[oD]?/ },
  19550. monthsShort:
  19551. 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  19552. '_'),
  19553. monthsParseExact: true,
  19554. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  19555. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  19556. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  19557. weekdaysParseExact: true,
  19558. longDateFormat: {
  19559. LT: 'A h:mm [वाजतां]',
  19560. LTS: 'A h:mm:ss [वाजतां]',
  19561. L: 'DD-MM-YYYY',
  19562. LL: 'D MMMM YYYY',
  19563. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  19564. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  19565. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]' },
  19566. calendar: {
  19567. sameDay: '[आयज] LT',
  19568. nextDay: '[फाल्यां] LT',
  19569. nextWeek: '[फुडलो] dddd[,] LT',
  19570. lastDay: '[काल] LT',
  19571. lastWeek: '[फाटलो] dddd[,] LT',
  19572. sameElse: 'L' },
  19573. relativeTime: {
  19574. future: '%s',
  19575. past: '%s आदीं',
  19576. s: processRelativeTime,
  19577. ss: processRelativeTime,
  19578. m: processRelativeTime,
  19579. mm: processRelativeTime,
  19580. h: processRelativeTime,
  19581. hh: processRelativeTime,
  19582. d: processRelativeTime,
  19583. dd: processRelativeTime,
  19584. M: processRelativeTime,
  19585. MM: processRelativeTime,
  19586. y: processRelativeTime,
  19587. yy: processRelativeTime },
  19588. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  19589. ordinal: function ordinal(number, period) {
  19590. switch (period) {
  19591. // the ordinal 'वेर' only applies to day of the month
  19592. case 'D':
  19593. return number + 'वेर';
  19594. default:
  19595. case 'M':
  19596. case 'Q':
  19597. case 'DDD':
  19598. case 'd':
  19599. case 'w':
  19600. case 'W':
  19601. return number;}
  19602. },
  19603. week: {
  19604. dow: 0, // Sunday is the first day of the week
  19605. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  19606. },
  19607. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  19608. meridiemHour: function meridiemHour(hour, meridiem) {
  19609. if (hour === 12) {
  19610. hour = 0;
  19611. }
  19612. if (meridiem === 'राती') {
  19613. return hour < 4 ? hour : hour + 12;
  19614. } else if (meridiem === 'सकाळीं') {
  19615. return hour;
  19616. } else if (meridiem === 'दनपारां') {
  19617. return hour > 12 ? hour : hour + 12;
  19618. } else if (meridiem === 'सांजे') {
  19619. return hour + 12;
  19620. }
  19621. },
  19622. meridiem: function meridiem(hour, minute, isLower) {
  19623. if (hour < 4) {
  19624. return 'राती';
  19625. } else if (hour < 12) {
  19626. return 'सकाळीं';
  19627. } else if (hour < 16) {
  19628. return 'दनपारां';
  19629. } else if (hour < 20) {
  19630. return 'सांजे';
  19631. } else {
  19632. return 'राती';
  19633. }
  19634. } });
  19635. return gomDeva;
  19636. });
  19637. /***/ }),
  19638. /* 70 */
  19639. /*!*********************************************************************************!*\
  19640. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/gom-latn.js ***!
  19641. \*********************************************************************************/
  19642. /*! no static exports found */
  19643. /***/ (function(module, exports, __webpack_require__) {
  19644. //! moment.js locale configuration
  19645. //! locale : Konkani Latin script [gom-latn]
  19646. //! author : The Discoverer : https://github.com/WikiDiscoverer
  19647. ;(function (global, factory) {
  19648. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19649. undefined;
  19650. })(this, function (moment) {'use strict';
  19651. //! moment.js locale configuration
  19652. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  19653. var format = {
  19654. s: ['thoddea sekondamni', 'thodde sekond'],
  19655. ss: [number + ' sekondamni', number + ' sekond'],
  19656. m: ['eka mintan', 'ek minut'],
  19657. mm: [number + ' mintamni', number + ' mintam'],
  19658. h: ['eka voran', 'ek vor'],
  19659. hh: [number + ' voramni', number + ' voram'],
  19660. d: ['eka disan', 'ek dis'],
  19661. dd: [number + ' disamni', number + ' dis'],
  19662. M: ['eka mhoinean', 'ek mhoino'],
  19663. MM: [number + ' mhoineamni', number + ' mhoine'],
  19664. y: ['eka vorsan', 'ek voros'],
  19665. yy: [number + ' vorsamni', number + ' vorsam'] };
  19666. return isFuture ? format[key][0] : format[key][1];
  19667. }
  19668. var gomLatn = moment.defineLocale('gom-latn', {
  19669. months: {
  19670. standalone:
  19671. 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  19672. '_'),
  19673. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  19674. '_'),
  19675. isFormat: /MMMM(\s)+D[oD]?/ },
  19676. monthsShort:
  19677. 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  19678. monthsParseExact: true,
  19679. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  19680. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  19681. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  19682. weekdaysParseExact: true,
  19683. longDateFormat: {
  19684. LT: 'A h:mm [vazta]',
  19685. LTS: 'A h:mm:ss [vazta]',
  19686. L: 'DD-MM-YYYY',
  19687. LL: 'D MMMM YYYY',
  19688. LLL: 'D MMMM YYYY A h:mm [vazta]',
  19689. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  19690. llll: 'ddd, D MMM YYYY, A h:mm [vazta]' },
  19691. calendar: {
  19692. sameDay: '[Aiz] LT',
  19693. nextDay: '[Faleam] LT',
  19694. nextWeek: '[Fuddlo] dddd[,] LT',
  19695. lastDay: '[Kal] LT',
  19696. lastWeek: '[Fattlo] dddd[,] LT',
  19697. sameElse: 'L' },
  19698. relativeTime: {
  19699. future: '%s',
  19700. past: '%s adim',
  19701. s: processRelativeTime,
  19702. ss: processRelativeTime,
  19703. m: processRelativeTime,
  19704. mm: processRelativeTime,
  19705. h: processRelativeTime,
  19706. hh: processRelativeTime,
  19707. d: processRelativeTime,
  19708. dd: processRelativeTime,
  19709. M: processRelativeTime,
  19710. MM: processRelativeTime,
  19711. y: processRelativeTime,
  19712. yy: processRelativeTime },
  19713. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  19714. ordinal: function ordinal(number, period) {
  19715. switch (period) {
  19716. // the ordinal 'er' only applies to day of the month
  19717. case 'D':
  19718. return number + 'er';
  19719. default:
  19720. case 'M':
  19721. case 'Q':
  19722. case 'DDD':
  19723. case 'd':
  19724. case 'w':
  19725. case 'W':
  19726. return number;}
  19727. },
  19728. week: {
  19729. dow: 0, // Sunday is the first day of the week
  19730. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  19731. },
  19732. meridiemParse: /rati|sokallim|donparam|sanje/,
  19733. meridiemHour: function meridiemHour(hour, meridiem) {
  19734. if (hour === 12) {
  19735. hour = 0;
  19736. }
  19737. if (meridiem === 'rati') {
  19738. return hour < 4 ? hour : hour + 12;
  19739. } else if (meridiem === 'sokallim') {
  19740. return hour;
  19741. } else if (meridiem === 'donparam') {
  19742. return hour > 12 ? hour : hour + 12;
  19743. } else if (meridiem === 'sanje') {
  19744. return hour + 12;
  19745. }
  19746. },
  19747. meridiem: function meridiem(hour, minute, isLower) {
  19748. if (hour < 4) {
  19749. return 'rati';
  19750. } else if (hour < 12) {
  19751. return 'sokallim';
  19752. } else if (hour < 16) {
  19753. return 'donparam';
  19754. } else if (hour < 20) {
  19755. return 'sanje';
  19756. } else {
  19757. return 'rati';
  19758. }
  19759. } });
  19760. return gomLatn;
  19761. });
  19762. /***/ }),
  19763. /* 71 */
  19764. /*!***************************************************************************!*\
  19765. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/gu.js ***!
  19766. \***************************************************************************/
  19767. /*! no static exports found */
  19768. /***/ (function(module, exports, __webpack_require__) {
  19769. //! moment.js locale configuration
  19770. //! locale : Gujarati [gu]
  19771. //! author : Kaushik Thanki : https://github.com/Kaushik1987
  19772. ;(function (global, factory) {
  19773. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19774. undefined;
  19775. })(this, function (moment) {'use strict';
  19776. //! moment.js locale configuration
  19777. var symbolMap = {
  19778. 1: '૧',
  19779. 2: '૨',
  19780. 3: '૩',
  19781. 4: '૪',
  19782. 5: '૫',
  19783. 6: '૬',
  19784. 7: '૭',
  19785. 8: '૮',
  19786. 9: '૯',
  19787. 0: '૦' },
  19788. numberMap = {
  19789. '૧': '1',
  19790. '૨': '2',
  19791. '૩': '3',
  19792. '૪': '4',
  19793. '૫': '5',
  19794. '૬': '6',
  19795. '૭': '7',
  19796. '૮': '8',
  19797. '૯': '9',
  19798. '૦': '0' };
  19799. var gu = moment.defineLocale('gu', {
  19800. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  19801. '_'),
  19802. monthsShort:
  19803. 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  19804. '_'),
  19805. monthsParseExact: true,
  19806. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  19807. '_'),
  19808. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  19809. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  19810. longDateFormat: {
  19811. LT: 'A h:mm વાગ્યે',
  19812. LTS: 'A h:mm:ss વાગ્યે',
  19813. L: 'DD/MM/YYYY',
  19814. LL: 'D MMMM YYYY',
  19815. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  19816. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે' },
  19817. calendar: {
  19818. sameDay: '[આજ] LT',
  19819. nextDay: '[કાલે] LT',
  19820. nextWeek: 'dddd, LT',
  19821. lastDay: '[ગઇકાલે] LT',
  19822. lastWeek: '[પાછલા] dddd, LT',
  19823. sameElse: 'L' },
  19824. relativeTime: {
  19825. future: '%s મા',
  19826. past: '%s પહેલા',
  19827. s: 'અમુક પળો',
  19828. ss: '%d સેકંડ',
  19829. m: 'એક મિનિટ',
  19830. mm: '%d મિનિટ',
  19831. h: 'એક કલાક',
  19832. hh: '%d કલાક',
  19833. d: 'એક દિવસ',
  19834. dd: '%d દિવસ',
  19835. M: 'એક મહિનો',
  19836. MM: '%d મહિનો',
  19837. y: 'એક વર્ષ',
  19838. yy: '%d વર્ષ' },
  19839. preparse: function preparse(string) {
  19840. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  19841. return numberMap[match];
  19842. });
  19843. },
  19844. postformat: function postformat(string) {
  19845. return string.replace(/\d/g, function (match) {
  19846. return symbolMap[match];
  19847. });
  19848. },
  19849. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  19850. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  19851. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  19852. meridiemHour: function meridiemHour(hour, meridiem) {
  19853. if (hour === 12) {
  19854. hour = 0;
  19855. }
  19856. if (meridiem === 'રાત') {
  19857. return hour < 4 ? hour : hour + 12;
  19858. } else if (meridiem === 'સવાર') {
  19859. return hour;
  19860. } else if (meridiem === 'બપોર') {
  19861. return hour >= 10 ? hour : hour + 12;
  19862. } else if (meridiem === 'સાંજ') {
  19863. return hour + 12;
  19864. }
  19865. },
  19866. meridiem: function meridiem(hour, minute, isLower) {
  19867. if (hour < 4) {
  19868. return 'રાત';
  19869. } else if (hour < 10) {
  19870. return 'સવાર';
  19871. } else if (hour < 17) {
  19872. return 'બપોર';
  19873. } else if (hour < 20) {
  19874. return 'સાંજ';
  19875. } else {
  19876. return 'રાત';
  19877. }
  19878. },
  19879. week: {
  19880. dow: 0, // Sunday is the first day of the week.
  19881. doy: 6 // The week that contains Jan 6th is the first week of the year.
  19882. } });
  19883. return gu;
  19884. });
  19885. /***/ }),
  19886. /* 72 */
  19887. /*!***************************************************************************!*\
  19888. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/he.js ***!
  19889. \***************************************************************************/
  19890. /*! no static exports found */
  19891. /***/ (function(module, exports, __webpack_require__) {
  19892. //! moment.js locale configuration
  19893. //! locale : Hebrew [he]
  19894. //! author : Tomer Cohen : https://github.com/tomer
  19895. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  19896. //! author : Tal Ater : https://github.com/TalAter
  19897. ;(function (global, factory) {
  19898. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19899. undefined;
  19900. })(this, function (moment) {'use strict';
  19901. //! moment.js locale configuration
  19902. var he = moment.defineLocale('he', {
  19903. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  19904. '_'),
  19905. monthsShort:
  19906. 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  19907. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  19908. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  19909. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  19910. longDateFormat: {
  19911. LT: 'HH:mm',
  19912. LTS: 'HH:mm:ss',
  19913. L: 'DD/MM/YYYY',
  19914. LL: 'D [ב]MMMM YYYY',
  19915. LLL: 'D [ב]MMMM YYYY HH:mm',
  19916. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  19917. l: 'D/M/YYYY',
  19918. ll: 'D MMM YYYY',
  19919. lll: 'D MMM YYYY HH:mm',
  19920. llll: 'ddd, D MMM YYYY HH:mm' },
  19921. calendar: {
  19922. sameDay: '[היום ב־]LT',
  19923. nextDay: '[מחר ב־]LT',
  19924. nextWeek: 'dddd [בשעה] LT',
  19925. lastDay: '[אתמול ב־]LT',
  19926. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  19927. sameElse: 'L' },
  19928. relativeTime: {
  19929. future: 'בעוד %s',
  19930. past: 'לפני %s',
  19931. s: 'מספר שניות',
  19932. ss: '%d שניות',
  19933. m: 'דקה',
  19934. mm: '%d דקות',
  19935. h: 'שעה',
  19936. hh: function hh(number) {
  19937. if (number === 2) {
  19938. return 'שעתיים';
  19939. }
  19940. return number + ' שעות';
  19941. },
  19942. d: 'יום',
  19943. dd: function dd(number) {
  19944. if (number === 2) {
  19945. return 'יומיים';
  19946. }
  19947. return number + ' ימים';
  19948. },
  19949. M: 'חודש',
  19950. MM: function MM(number) {
  19951. if (number === 2) {
  19952. return 'חודשיים';
  19953. }
  19954. return number + ' חודשים';
  19955. },
  19956. y: 'שנה',
  19957. yy: function yy(number) {
  19958. if (number === 2) {
  19959. return 'שנתיים';
  19960. } else if (number % 10 === 0 && number !== 10) {
  19961. return number + ' שנה';
  19962. }
  19963. return number + ' שנים';
  19964. } },
  19965. meridiemParse:
  19966. /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  19967. isPM: function isPM(input) {
  19968. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  19969. },
  19970. meridiem: function meridiem(hour, minute, isLower) {
  19971. if (hour < 5) {
  19972. return 'לפנות בוקר';
  19973. } else if (hour < 10) {
  19974. return 'בבוקר';
  19975. } else if (hour < 12) {
  19976. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  19977. } else if (hour < 18) {
  19978. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  19979. } else {
  19980. return 'בערב';
  19981. }
  19982. } });
  19983. return he;
  19984. });
  19985. /***/ }),
  19986. /* 73 */
  19987. /*!***************************************************************************!*\
  19988. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/hi.js ***!
  19989. \***************************************************************************/
  19990. /*! no static exports found */
  19991. /***/ (function(module, exports, __webpack_require__) {
  19992. //! moment.js locale configuration
  19993. //! locale : Hindi [hi]
  19994. //! author : Mayank Singhal : https://github.com/mayanksinghal
  19995. ;(function (global, factory) {
  19996. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  19997. undefined;
  19998. })(this, function (moment) {'use strict';
  19999. //! moment.js locale configuration
  20000. var symbolMap = {
  20001. 1: '१',
  20002. 2: '२',
  20003. 3: '३',
  20004. 4: '४',
  20005. 5: '५',
  20006. 6: '६',
  20007. 7: '७',
  20008. 8: '८',
  20009. 9: '९',
  20010. 0: '०' },
  20011. numberMap = {
  20012. '१': '1',
  20013. '२': '2',
  20014. '३': '3',
  20015. '४': '4',
  20016. '५': '5',
  20017. '६': '6',
  20018. '७': '7',
  20019. '८': '8',
  20020. '९': '9',
  20021. '०': '0' },
  20022. monthsParse = [
  20023. /^जन/i,
  20024. /^फ़र|फर/i,
  20025. /^मार्च/i,
  20026. /^अप्रै/i,
  20027. /^मई/i,
  20028. /^जून/i,
  20029. /^जुल/i,
  20030. /^अग/i,
  20031. /^सितं|सित/i,
  20032. /^अक्टू/i,
  20033. /^नव|नवं/i,
  20034. /^दिसं|दिस/i],
  20035. shortMonthsParse = [
  20036. /^जन/i,
  20037. /^फ़र/i,
  20038. /^मार्च/i,
  20039. /^अप्रै/i,
  20040. /^मई/i,
  20041. /^जून/i,
  20042. /^जुल/i,
  20043. /^अग/i,
  20044. /^सित/i,
  20045. /^अक्टू/i,
  20046. /^नव/i,
  20047. /^दिस/i];
  20048. var hi = moment.defineLocale('hi', {
  20049. months: {
  20050. format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  20051. '_'),
  20052. standalone:
  20053. 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
  20054. '_') },
  20055. monthsShort:
  20056. 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  20057. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  20058. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  20059. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  20060. longDateFormat: {
  20061. LT: 'A h:mm बजे',
  20062. LTS: 'A h:mm:ss बजे',
  20063. L: 'DD/MM/YYYY',
  20064. LL: 'D MMMM YYYY',
  20065. LLL: 'D MMMM YYYY, A h:mm बजे',
  20066. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे' },
  20067. monthsParse: monthsParse,
  20068. longMonthsParse: monthsParse,
  20069. shortMonthsParse: shortMonthsParse,
  20070. monthsRegex:
  20071. /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  20072. monthsShortRegex:
  20073. /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  20074. monthsStrictRegex:
  20075. /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  20076. monthsShortStrictRegex:
  20077. /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  20078. calendar: {
  20079. sameDay: '[आज] LT',
  20080. nextDay: '[कल] LT',
  20081. nextWeek: 'dddd, LT',
  20082. lastDay: '[कल] LT',
  20083. lastWeek: '[पिछले] dddd, LT',
  20084. sameElse: 'L' },
  20085. relativeTime: {
  20086. future: '%s में',
  20087. past: '%s पहले',
  20088. s: 'कुछ ही क्षण',
  20089. ss: '%d सेकंड',
  20090. m: 'एक मिनट',
  20091. mm: '%d मिनट',
  20092. h: 'एक घंटा',
  20093. hh: '%d घंटे',
  20094. d: 'एक दिन',
  20095. dd: '%d दिन',
  20096. M: 'एक महीने',
  20097. MM: '%d महीने',
  20098. y: 'एक वर्ष',
  20099. yy: '%d वर्ष' },
  20100. preparse: function preparse(string) {
  20101. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  20102. return numberMap[match];
  20103. });
  20104. },
  20105. postformat: function postformat(string) {
  20106. return string.replace(/\d/g, function (match) {
  20107. return symbolMap[match];
  20108. });
  20109. },
  20110. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  20111. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  20112. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  20113. meridiemHour: function meridiemHour(hour, meridiem) {
  20114. if (hour === 12) {
  20115. hour = 0;
  20116. }
  20117. if (meridiem === 'रात') {
  20118. return hour < 4 ? hour : hour + 12;
  20119. } else if (meridiem === 'सुबह') {
  20120. return hour;
  20121. } else if (meridiem === 'दोपहर') {
  20122. return hour >= 10 ? hour : hour + 12;
  20123. } else if (meridiem === 'शाम') {
  20124. return hour + 12;
  20125. }
  20126. },
  20127. meridiem: function meridiem(hour, minute, isLower) {
  20128. if (hour < 4) {
  20129. return 'रात';
  20130. } else if (hour < 10) {
  20131. return 'सुबह';
  20132. } else if (hour < 17) {
  20133. return 'दोपहर';
  20134. } else if (hour < 20) {
  20135. return 'शाम';
  20136. } else {
  20137. return 'रात';
  20138. }
  20139. },
  20140. week: {
  20141. dow: 0, // Sunday is the first day of the week.
  20142. doy: 6 // The week that contains Jan 6th is the first week of the year.
  20143. } });
  20144. return hi;
  20145. });
  20146. /***/ }),
  20147. /* 74 */
  20148. /*!***************************************************************************!*\
  20149. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/hr.js ***!
  20150. \***************************************************************************/
  20151. /*! no static exports found */
  20152. /***/ (function(module, exports, __webpack_require__) {
  20153. //! moment.js locale configuration
  20154. //! locale : Croatian [hr]
  20155. //! author : Bojan Marković : https://github.com/bmarkovic
  20156. ;(function (global, factory) {
  20157. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20158. undefined;
  20159. })(this, function (moment) {'use strict';
  20160. //! moment.js locale configuration
  20161. function translate(number, withoutSuffix, key) {
  20162. var result = number + ' ';
  20163. switch (key) {
  20164. case 'ss':
  20165. if (number === 1) {
  20166. result += 'sekunda';
  20167. } else if (number === 2 || number === 3 || number === 4) {
  20168. result += 'sekunde';
  20169. } else {
  20170. result += 'sekundi';
  20171. }
  20172. return result;
  20173. case 'm':
  20174. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  20175. case 'mm':
  20176. if (number === 1) {
  20177. result += 'minuta';
  20178. } else if (number === 2 || number === 3 || number === 4) {
  20179. result += 'minute';
  20180. } else {
  20181. result += 'minuta';
  20182. }
  20183. return result;
  20184. case 'h':
  20185. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  20186. case 'hh':
  20187. if (number === 1) {
  20188. result += 'sat';
  20189. } else if (number === 2 || number === 3 || number === 4) {
  20190. result += 'sata';
  20191. } else {
  20192. result += 'sati';
  20193. }
  20194. return result;
  20195. case 'dd':
  20196. if (number === 1) {
  20197. result += 'dan';
  20198. } else {
  20199. result += 'dana';
  20200. }
  20201. return result;
  20202. case 'MM':
  20203. if (number === 1) {
  20204. result += 'mjesec';
  20205. } else if (number === 2 || number === 3 || number === 4) {
  20206. result += 'mjeseca';
  20207. } else {
  20208. result += 'mjeseci';
  20209. }
  20210. return result;
  20211. case 'yy':
  20212. if (number === 1) {
  20213. result += 'godina';
  20214. } else if (number === 2 || number === 3 || number === 4) {
  20215. result += 'godine';
  20216. } else {
  20217. result += 'godina';
  20218. }
  20219. return result;}
  20220. }
  20221. var hr = moment.defineLocale('hr', {
  20222. months: {
  20223. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  20224. '_'),
  20225. standalone:
  20226. 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  20227. '_') },
  20228. monthsShort:
  20229. 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  20230. '_'),
  20231. monthsParseExact: true,
  20232. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  20233. '_'),
  20234. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  20235. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  20236. weekdaysParseExact: true,
  20237. longDateFormat: {
  20238. LT: 'H:mm',
  20239. LTS: 'H:mm:ss',
  20240. L: 'DD.MM.YYYY',
  20241. LL: 'Do MMMM YYYY',
  20242. LLL: 'Do MMMM YYYY H:mm',
  20243. LLLL: 'dddd, Do MMMM YYYY H:mm' },
  20244. calendar: {
  20245. sameDay: '[danas u] LT',
  20246. nextDay: '[sutra u] LT',
  20247. nextWeek: function nextWeek() {
  20248. switch (this.day()) {
  20249. case 0:
  20250. return '[u] [nedjelju] [u] LT';
  20251. case 3:
  20252. return '[u] [srijedu] [u] LT';
  20253. case 6:
  20254. return '[u] [subotu] [u] LT';
  20255. case 1:
  20256. case 2:
  20257. case 4:
  20258. case 5:
  20259. return '[u] dddd [u] LT';}
  20260. },
  20261. lastDay: '[jučer u] LT',
  20262. lastWeek: function lastWeek() {
  20263. switch (this.day()) {
  20264. case 0:
  20265. return '[prošlu] [nedjelju] [u] LT';
  20266. case 3:
  20267. return '[prošlu] [srijedu] [u] LT';
  20268. case 6:
  20269. return '[prošle] [subote] [u] LT';
  20270. case 1:
  20271. case 2:
  20272. case 4:
  20273. case 5:
  20274. return '[prošli] dddd [u] LT';}
  20275. },
  20276. sameElse: 'L' },
  20277. relativeTime: {
  20278. future: 'za %s',
  20279. past: 'prije %s',
  20280. s: 'par sekundi',
  20281. ss: translate,
  20282. m: translate,
  20283. mm: translate,
  20284. h: translate,
  20285. hh: translate,
  20286. d: 'dan',
  20287. dd: translate,
  20288. M: 'mjesec',
  20289. MM: translate,
  20290. y: 'godinu',
  20291. yy: translate },
  20292. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20293. ordinal: '%d.',
  20294. week: {
  20295. dow: 1, // Monday is the first day of the week.
  20296. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20297. } });
  20298. return hr;
  20299. });
  20300. /***/ }),
  20301. /* 75 */
  20302. /*!***************************************************************************!*\
  20303. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/hu.js ***!
  20304. \***************************************************************************/
  20305. /*! no static exports found */
  20306. /***/ (function(module, exports, __webpack_require__) {
  20307. //! moment.js locale configuration
  20308. //! locale : Hungarian [hu]
  20309. //! author : Adam Brunner : https://github.com/adambrunner
  20310. //! author : Peter Viszt : https://github.com/passatgt
  20311. ;(function (global, factory) {
  20312. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20313. undefined;
  20314. })(this, function (moment) {'use strict';
  20315. //! moment.js locale configuration
  20316. var weekEndings =
  20317. 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  20318. function translate(number, withoutSuffix, key, isFuture) {
  20319. var num = number;
  20320. switch (key) {
  20321. case 's':
  20322. return isFuture || withoutSuffix ?
  20323. 'néhány másodperc' :
  20324. 'néhány másodperce';
  20325. case 'ss':
  20326. return num + (isFuture || withoutSuffix) ?
  20327. ' másodperc' :
  20328. ' másodperce';
  20329. case 'm':
  20330. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  20331. case 'mm':
  20332. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  20333. case 'h':
  20334. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  20335. case 'hh':
  20336. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  20337. case 'd':
  20338. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  20339. case 'dd':
  20340. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  20341. case 'M':
  20342. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  20343. case 'MM':
  20344. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  20345. case 'y':
  20346. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  20347. case 'yy':
  20348. return num + (isFuture || withoutSuffix ? ' év' : ' éve');}
  20349. return '';
  20350. }
  20351. function week(isFuture) {
  20352. return (
  20353. (isFuture ? '' : '[múlt] ') +
  20354. '[' +
  20355. weekEndings[this.day()] +
  20356. '] LT[-kor]');
  20357. }
  20358. var hu = moment.defineLocale('hu', {
  20359. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  20360. '_'),
  20361. monthsShort:
  20362. 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
  20363. '_'),
  20364. monthsParseExact: true,
  20365. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  20366. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  20367. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  20368. longDateFormat: {
  20369. LT: 'H:mm',
  20370. LTS: 'H:mm:ss',
  20371. L: 'YYYY.MM.DD.',
  20372. LL: 'YYYY. MMMM D.',
  20373. LLL: 'YYYY. MMMM D. H:mm',
  20374. LLLL: 'YYYY. MMMM D., dddd H:mm' },
  20375. meridiemParse: /de|du/i,
  20376. isPM: function isPM(input) {
  20377. return input.charAt(1).toLowerCase() === 'u';
  20378. },
  20379. meridiem: function meridiem(hours, minutes, isLower) {
  20380. if (hours < 12) {
  20381. return isLower === true ? 'de' : 'DE';
  20382. } else {
  20383. return isLower === true ? 'du' : 'DU';
  20384. }
  20385. },
  20386. calendar: {
  20387. sameDay: '[ma] LT[-kor]',
  20388. nextDay: '[holnap] LT[-kor]',
  20389. nextWeek: function nextWeek() {
  20390. return week.call(this, true);
  20391. },
  20392. lastDay: '[tegnap] LT[-kor]',
  20393. lastWeek: function lastWeek() {
  20394. return week.call(this, false);
  20395. },
  20396. sameElse: 'L' },
  20397. relativeTime: {
  20398. future: '%s múlva',
  20399. past: '%s',
  20400. s: translate,
  20401. ss: translate,
  20402. m: translate,
  20403. mm: translate,
  20404. h: translate,
  20405. hh: translate,
  20406. d: translate,
  20407. dd: translate,
  20408. M: translate,
  20409. MM: translate,
  20410. y: translate,
  20411. yy: translate },
  20412. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20413. ordinal: '%d.',
  20414. week: {
  20415. dow: 1, // Monday is the first day of the week.
  20416. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20417. } });
  20418. return hu;
  20419. });
  20420. /***/ }),
  20421. /* 76 */
  20422. /*!******************************************************************************!*\
  20423. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/hy-am.js ***!
  20424. \******************************************************************************/
  20425. /*! no static exports found */
  20426. /***/ (function(module, exports, __webpack_require__) {
  20427. //! moment.js locale configuration
  20428. //! locale : Armenian [hy-am]
  20429. //! author : Armendarabyan : https://github.com/armendarabyan
  20430. ;(function (global, factory) {
  20431. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20432. undefined;
  20433. })(this, function (moment) {'use strict';
  20434. //! moment.js locale configuration
  20435. var hyAm = moment.defineLocale('hy-am', {
  20436. months: {
  20437. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  20438. '_'),
  20439. standalone:
  20440. 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  20441. '_') },
  20442. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  20443. weekdays:
  20444. 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  20445. '_'),
  20446. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  20447. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  20448. longDateFormat: {
  20449. LT: 'HH:mm',
  20450. LTS: 'HH:mm:ss',
  20451. L: 'DD.MM.YYYY',
  20452. LL: 'D MMMM YYYY թ.',
  20453. LLL: 'D MMMM YYYY թ., HH:mm',
  20454. LLLL: 'dddd, D MMMM YYYY թ., HH:mm' },
  20455. calendar: {
  20456. sameDay: '[այսօր] LT',
  20457. nextDay: '[վաղը] LT',
  20458. lastDay: '[երեկ] LT',
  20459. nextWeek: function nextWeek() {
  20460. return 'dddd [օրը ժամը] LT';
  20461. },
  20462. lastWeek: function lastWeek() {
  20463. return '[անցած] dddd [օրը ժամը] LT';
  20464. },
  20465. sameElse: 'L' },
  20466. relativeTime: {
  20467. future: '%s հետո',
  20468. past: '%s առաջ',
  20469. s: 'մի քանի վայրկյան',
  20470. ss: '%d վայրկյան',
  20471. m: 'րոպե',
  20472. mm: '%d րոպե',
  20473. h: 'ժամ',
  20474. hh: '%d ժամ',
  20475. d: 'օր',
  20476. dd: '%d օր',
  20477. M: 'ամիս',
  20478. MM: '%d ամիս',
  20479. y: 'տարի',
  20480. yy: '%d տարի' },
  20481. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  20482. isPM: function isPM(input) {
  20483. return /^(ցերեկվա|երեկոյան)$/.test(input);
  20484. },
  20485. meridiem: function meridiem(hour) {
  20486. if (hour < 4) {
  20487. return 'գիշերվա';
  20488. } else if (hour < 12) {
  20489. return 'առավոտվա';
  20490. } else if (hour < 17) {
  20491. return 'ցերեկվա';
  20492. } else {
  20493. return 'երեկոյան';
  20494. }
  20495. },
  20496. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  20497. ordinal: function ordinal(number, period) {
  20498. switch (period) {
  20499. case 'DDD':
  20500. case 'w':
  20501. case 'W':
  20502. case 'DDDo':
  20503. if (number === 1) {
  20504. return number + '-ին';
  20505. }
  20506. return number + '-րդ';
  20507. default:
  20508. return number;}
  20509. },
  20510. week: {
  20511. dow: 1, // Monday is the first day of the week.
  20512. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20513. } });
  20514. return hyAm;
  20515. });
  20516. /***/ }),
  20517. /* 77 */
  20518. /*!***************************************************************************!*\
  20519. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/id.js ***!
  20520. \***************************************************************************/
  20521. /*! no static exports found */
  20522. /***/ (function(module, exports, __webpack_require__) {
  20523. //! moment.js locale configuration
  20524. //! locale : Indonesian [id]
  20525. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  20526. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  20527. ;(function (global, factory) {
  20528. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20529. undefined;
  20530. })(this, function (moment) {'use strict';
  20531. //! moment.js locale configuration
  20532. var id = moment.defineLocale('id', {
  20533. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  20534. '_'),
  20535. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  20536. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  20537. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  20538. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  20539. longDateFormat: {
  20540. LT: 'HH.mm',
  20541. LTS: 'HH.mm.ss',
  20542. L: 'DD/MM/YYYY',
  20543. LL: 'D MMMM YYYY',
  20544. LLL: 'D MMMM YYYY [pukul] HH.mm',
  20545. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' },
  20546. meridiemParse: /pagi|siang|sore|malam/,
  20547. meridiemHour: function meridiemHour(hour, meridiem) {
  20548. if (hour === 12) {
  20549. hour = 0;
  20550. }
  20551. if (meridiem === 'pagi') {
  20552. return hour;
  20553. } else if (meridiem === 'siang') {
  20554. return hour >= 11 ? hour : hour + 12;
  20555. } else if (meridiem === 'sore' || meridiem === 'malam') {
  20556. return hour + 12;
  20557. }
  20558. },
  20559. meridiem: function meridiem(hours, minutes, isLower) {
  20560. if (hours < 11) {
  20561. return 'pagi';
  20562. } else if (hours < 15) {
  20563. return 'siang';
  20564. } else if (hours < 19) {
  20565. return 'sore';
  20566. } else {
  20567. return 'malam';
  20568. }
  20569. },
  20570. calendar: {
  20571. sameDay: '[Hari ini pukul] LT',
  20572. nextDay: '[Besok pukul] LT',
  20573. nextWeek: 'dddd [pukul] LT',
  20574. lastDay: '[Kemarin pukul] LT',
  20575. lastWeek: 'dddd [lalu pukul] LT',
  20576. sameElse: 'L' },
  20577. relativeTime: {
  20578. future: 'dalam %s',
  20579. past: '%s yang lalu',
  20580. s: 'beberapa detik',
  20581. ss: '%d detik',
  20582. m: 'semenit',
  20583. mm: '%d menit',
  20584. h: 'sejam',
  20585. hh: '%d jam',
  20586. d: 'sehari',
  20587. dd: '%d hari',
  20588. M: 'sebulan',
  20589. MM: '%d bulan',
  20590. y: 'setahun',
  20591. yy: '%d tahun' },
  20592. week: {
  20593. dow: 0, // Sunday is the first day of the week.
  20594. doy: 6 // The week that contains Jan 6th is the first week of the year.
  20595. } });
  20596. return id;
  20597. });
  20598. /***/ }),
  20599. /* 78 */
  20600. /*!***************************************************************************!*\
  20601. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/is.js ***!
  20602. \***************************************************************************/
  20603. /*! no static exports found */
  20604. /***/ (function(module, exports, __webpack_require__) {
  20605. //! moment.js locale configuration
  20606. //! locale : Icelandic [is]
  20607. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  20608. ;(function (global, factory) {
  20609. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20610. undefined;
  20611. })(this, function (moment) {'use strict';
  20612. //! moment.js locale configuration
  20613. function plural(n) {
  20614. if (n % 100 === 11) {
  20615. return true;
  20616. } else if (n % 10 === 1) {
  20617. return false;
  20618. }
  20619. return true;
  20620. }
  20621. function translate(number, withoutSuffix, key, isFuture) {
  20622. var result = number + ' ';
  20623. switch (key) {
  20624. case 's':
  20625. return withoutSuffix || isFuture ?
  20626. 'nokkrar sekúndur' :
  20627. 'nokkrum sekúndum';
  20628. case 'ss':
  20629. if (plural(number)) {
  20630. return (
  20631. result + (
  20632. withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum'));
  20633. }
  20634. return result + 'sekúnda';
  20635. case 'm':
  20636. return withoutSuffix ? 'mínúta' : 'mínútu';
  20637. case 'mm':
  20638. if (plural(number)) {
  20639. return (
  20640. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum'));
  20641. } else if (withoutSuffix) {
  20642. return result + 'mínúta';
  20643. }
  20644. return result + 'mínútu';
  20645. case 'hh':
  20646. if (plural(number)) {
  20647. return (
  20648. result + (
  20649. withoutSuffix || isFuture ?
  20650. 'klukkustundir' :
  20651. 'klukkustundum'));
  20652. }
  20653. return result + 'klukkustund';
  20654. case 'd':
  20655. if (withoutSuffix) {
  20656. return 'dagur';
  20657. }
  20658. return isFuture ? 'dag' : 'degi';
  20659. case 'dd':
  20660. if (plural(number)) {
  20661. if (withoutSuffix) {
  20662. return result + 'dagar';
  20663. }
  20664. return result + (isFuture ? 'daga' : 'dögum');
  20665. } else if (withoutSuffix) {
  20666. return result + 'dagur';
  20667. }
  20668. return result + (isFuture ? 'dag' : 'degi');
  20669. case 'M':
  20670. if (withoutSuffix) {
  20671. return 'mánuður';
  20672. }
  20673. return isFuture ? 'mánuð' : 'mánuði';
  20674. case 'MM':
  20675. if (plural(number)) {
  20676. if (withoutSuffix) {
  20677. return result + 'mánuðir';
  20678. }
  20679. return result + (isFuture ? 'mánuði' : 'mánuðum');
  20680. } else if (withoutSuffix) {
  20681. return result + 'mánuður';
  20682. }
  20683. return result + (isFuture ? 'mánuð' : 'mánuði');
  20684. case 'y':
  20685. return withoutSuffix || isFuture ? 'ár' : 'ári';
  20686. case 'yy':
  20687. if (plural(number)) {
  20688. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  20689. }
  20690. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');}
  20691. }
  20692. var is = moment.defineLocale('is', {
  20693. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  20694. '_'),
  20695. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  20696. weekdays:
  20697. 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  20698. '_'),
  20699. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  20700. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  20701. longDateFormat: {
  20702. LT: 'H:mm',
  20703. LTS: 'H:mm:ss',
  20704. L: 'DD.MM.YYYY',
  20705. LL: 'D. MMMM YYYY',
  20706. LLL: 'D. MMMM YYYY [kl.] H:mm',
  20707. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm' },
  20708. calendar: {
  20709. sameDay: '[í dag kl.] LT',
  20710. nextDay: '[á morgun kl.] LT',
  20711. nextWeek: 'dddd [kl.] LT',
  20712. lastDay: '[í gær kl.] LT',
  20713. lastWeek: '[síðasta] dddd [kl.] LT',
  20714. sameElse: 'L' },
  20715. relativeTime: {
  20716. future: 'eftir %s',
  20717. past: 'fyrir %s síðan',
  20718. s: translate,
  20719. ss: translate,
  20720. m: translate,
  20721. mm: translate,
  20722. h: 'klukkustund',
  20723. hh: translate,
  20724. d: translate,
  20725. dd: translate,
  20726. M: translate,
  20727. MM: translate,
  20728. y: translate,
  20729. yy: translate },
  20730. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20731. ordinal: '%d.',
  20732. week: {
  20733. dow: 1, // Monday is the first day of the week.
  20734. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20735. } });
  20736. return is;
  20737. });
  20738. /***/ }),
  20739. /* 79 */
  20740. /*!***************************************************************************!*\
  20741. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/it.js ***!
  20742. \***************************************************************************/
  20743. /*! no static exports found */
  20744. /***/ (function(module, exports, __webpack_require__) {
  20745. //! moment.js locale configuration
  20746. //! locale : Italian [it]
  20747. //! author : Lorenzo : https://github.com/aliem
  20748. //! author: Mattia Larentis: https://github.com/nostalgiaz
  20749. //! author: Marco : https://github.com/Manfre98
  20750. ;(function (global, factory) {
  20751. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20752. undefined;
  20753. })(this, function (moment) {'use strict';
  20754. //! moment.js locale configuration
  20755. var it = moment.defineLocale('it', {
  20756. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  20757. '_'),
  20758. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  20759. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  20760. '_'),
  20761. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  20762. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  20763. longDateFormat: {
  20764. LT: 'HH:mm',
  20765. LTS: 'HH:mm:ss',
  20766. L: 'DD/MM/YYYY',
  20767. LL: 'D MMMM YYYY',
  20768. LLL: 'D MMMM YYYY HH:mm',
  20769. LLLL: 'dddd D MMMM YYYY HH:mm' },
  20770. calendar: {
  20771. sameDay: function sameDay() {
  20772. return (
  20773. '[Oggi a' + (
  20774. this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  20775. ']LT');
  20776. },
  20777. nextDay: function nextDay() {
  20778. return (
  20779. '[Domani a' + (
  20780. this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  20781. ']LT');
  20782. },
  20783. nextWeek: function nextWeek() {
  20784. return (
  20785. 'dddd [a' + (
  20786. this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  20787. ']LT');
  20788. },
  20789. lastDay: function lastDay() {
  20790. return (
  20791. '[Ieri a' + (
  20792. this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  20793. ']LT');
  20794. },
  20795. lastWeek: function lastWeek() {
  20796. switch (this.day()) {
  20797. case 0:
  20798. return (
  20799. '[La scorsa] dddd [a' + (
  20800. this.hours() > 1 ?
  20801. 'lle ' :
  20802. this.hours() === 0 ?
  20803. ' ' :
  20804. "ll'") +
  20805. ']LT');
  20806. default:
  20807. return (
  20808. '[Lo scorso] dddd [a' + (
  20809. this.hours() > 1 ?
  20810. 'lle ' :
  20811. this.hours() === 0 ?
  20812. ' ' :
  20813. "ll'") +
  20814. ']LT');}
  20815. },
  20816. sameElse: 'L' },
  20817. relativeTime: {
  20818. future: 'tra %s',
  20819. past: '%s fa',
  20820. s: 'alcuni secondi',
  20821. ss: '%d secondi',
  20822. m: 'un minuto',
  20823. mm: '%d minuti',
  20824. h: "un'ora",
  20825. hh: '%d ore',
  20826. d: 'un giorno',
  20827. dd: '%d giorni',
  20828. w: 'una settimana',
  20829. ww: '%d settimane',
  20830. M: 'un mese',
  20831. MM: '%d mesi',
  20832. y: 'un anno',
  20833. yy: '%d anni' },
  20834. dayOfMonthOrdinalParse: /\d{1,2}º/,
  20835. ordinal: '%dº',
  20836. week: {
  20837. dow: 1, // Monday is the first day of the week.
  20838. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20839. } });
  20840. return it;
  20841. });
  20842. /***/ }),
  20843. /* 80 */
  20844. /*!******************************************************************************!*\
  20845. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/it-ch.js ***!
  20846. \******************************************************************************/
  20847. /*! no static exports found */
  20848. /***/ (function(module, exports, __webpack_require__) {
  20849. //! moment.js locale configuration
  20850. //! locale : Italian (Switzerland) [it-ch]
  20851. //! author : xfh : https://github.com/xfh
  20852. ;(function (global, factory) {
  20853. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20854. undefined;
  20855. })(this, function (moment) {'use strict';
  20856. //! moment.js locale configuration
  20857. var itCh = moment.defineLocale('it-ch', {
  20858. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  20859. '_'),
  20860. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  20861. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  20862. '_'),
  20863. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  20864. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  20865. longDateFormat: {
  20866. LT: 'HH:mm',
  20867. LTS: 'HH:mm:ss',
  20868. L: 'DD.MM.YYYY',
  20869. LL: 'D MMMM YYYY',
  20870. LLL: 'D MMMM YYYY HH:mm',
  20871. LLLL: 'dddd D MMMM YYYY HH:mm' },
  20872. calendar: {
  20873. sameDay: '[Oggi alle] LT',
  20874. nextDay: '[Domani alle] LT',
  20875. nextWeek: 'dddd [alle] LT',
  20876. lastDay: '[Ieri alle] LT',
  20877. lastWeek: function lastWeek() {
  20878. switch (this.day()) {
  20879. case 0:
  20880. return '[la scorsa] dddd [alle] LT';
  20881. default:
  20882. return '[lo scorso] dddd [alle] LT';}
  20883. },
  20884. sameElse: 'L' },
  20885. relativeTime: {
  20886. future: function future(s) {
  20887. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  20888. },
  20889. past: '%s fa',
  20890. s: 'alcuni secondi',
  20891. ss: '%d secondi',
  20892. m: 'un minuto',
  20893. mm: '%d minuti',
  20894. h: "un'ora",
  20895. hh: '%d ore',
  20896. d: 'un giorno',
  20897. dd: '%d giorni',
  20898. M: 'un mese',
  20899. MM: '%d mesi',
  20900. y: 'un anno',
  20901. yy: '%d anni' },
  20902. dayOfMonthOrdinalParse: /\d{1,2}º/,
  20903. ordinal: '%dº',
  20904. week: {
  20905. dow: 1, // Monday is the first day of the week.
  20906. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20907. } });
  20908. return itCh;
  20909. });
  20910. /***/ }),
  20911. /* 81 */
  20912. /*!***************************************************************************!*\
  20913. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ja.js ***!
  20914. \***************************************************************************/
  20915. /*! no static exports found */
  20916. /***/ (function(module, exports, __webpack_require__) {
  20917. //! moment.js locale configuration
  20918. //! locale : Japanese [ja]
  20919. //! author : LI Long : https://github.com/baryon
  20920. ;(function (global, factory) {
  20921. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  20922. undefined;
  20923. })(this, function (moment) {'use strict';
  20924. //! moment.js locale configuration
  20925. var ja = moment.defineLocale('ja', {
  20926. eras: [
  20927. {
  20928. since: '2019-05-01',
  20929. offset: 1,
  20930. name: '令和',
  20931. narrow: '㋿',
  20932. abbr: 'R' },
  20933. {
  20934. since: '1989-01-08',
  20935. until: '2019-04-30',
  20936. offset: 1,
  20937. name: '平成',
  20938. narrow: '㍻',
  20939. abbr: 'H' },
  20940. {
  20941. since: '1926-12-25',
  20942. until: '1989-01-07',
  20943. offset: 1,
  20944. name: '昭和',
  20945. narrow: '㍼',
  20946. abbr: 'S' },
  20947. {
  20948. since: '1912-07-30',
  20949. until: '1926-12-24',
  20950. offset: 1,
  20951. name: '大正',
  20952. narrow: '㍽',
  20953. abbr: 'T' },
  20954. {
  20955. since: '1873-01-01',
  20956. until: '1912-07-29',
  20957. offset: 6,
  20958. name: '明治',
  20959. narrow: '㍾',
  20960. abbr: 'M' },
  20961. {
  20962. since: '0001-01-01',
  20963. until: '1873-12-31',
  20964. offset: 1,
  20965. name: '西暦',
  20966. narrow: 'AD',
  20967. abbr: 'AD' },
  20968. {
  20969. since: '0000-12-31',
  20970. until: -Infinity,
  20971. offset: 1,
  20972. name: '紀元前',
  20973. narrow: 'BC',
  20974. abbr: 'BC' }],
  20975. eraYearOrdinalRegex: /(元|\d+)年/,
  20976. eraYearOrdinalParse: function eraYearOrdinalParse(input, match) {
  20977. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  20978. },
  20979. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  20980. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  20981. '_'),
  20982. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  20983. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  20984. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  20985. longDateFormat: {
  20986. LT: 'HH:mm',
  20987. LTS: 'HH:mm:ss',
  20988. L: 'YYYY/MM/DD',
  20989. LL: 'YYYY年M月D日',
  20990. LLL: 'YYYY年M月D日 HH:mm',
  20991. LLLL: 'YYYY年M月D日 dddd HH:mm',
  20992. l: 'YYYY/MM/DD',
  20993. ll: 'YYYY年M月D日',
  20994. lll: 'YYYY年M月D日 HH:mm',
  20995. llll: 'YYYY年M月D日(ddd) HH:mm' },
  20996. meridiemParse: /午前|午後/i,
  20997. isPM: function isPM(input) {
  20998. return input === '午後';
  20999. },
  21000. meridiem: function meridiem(hour, minute, isLower) {
  21001. if (hour < 12) {
  21002. return '午前';
  21003. } else {
  21004. return '午後';
  21005. }
  21006. },
  21007. calendar: {
  21008. sameDay: '[今日] LT',
  21009. nextDay: '[明日] LT',
  21010. nextWeek: function nextWeek(now) {
  21011. if (now.week() !== this.week()) {
  21012. return '[来週]dddd LT';
  21013. } else {
  21014. return 'dddd LT';
  21015. }
  21016. },
  21017. lastDay: '[昨日] LT',
  21018. lastWeek: function lastWeek(now) {
  21019. if (this.week() !== now.week()) {
  21020. return '[先週]dddd LT';
  21021. } else {
  21022. return 'dddd LT';
  21023. }
  21024. },
  21025. sameElse: 'L' },
  21026. dayOfMonthOrdinalParse: /\d{1,2}日/,
  21027. ordinal: function ordinal(number, period) {
  21028. switch (period) {
  21029. case 'y':
  21030. return number === 1 ? '元年' : number + '年';
  21031. case 'd':
  21032. case 'D':
  21033. case 'DDD':
  21034. return number + '日';
  21035. default:
  21036. return number;}
  21037. },
  21038. relativeTime: {
  21039. future: '%s後',
  21040. past: '%s前',
  21041. s: '数秒',
  21042. ss: '%d秒',
  21043. m: '1分',
  21044. mm: '%d分',
  21045. h: '1時間',
  21046. hh: '%d時間',
  21047. d: '1日',
  21048. dd: '%d日',
  21049. M: '1ヶ月',
  21050. MM: '%dヶ月',
  21051. y: '1年',
  21052. yy: '%d年' } });
  21053. return ja;
  21054. });
  21055. /***/ }),
  21056. /* 82 */
  21057. /*!***************************************************************************!*\
  21058. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/jv.js ***!
  21059. \***************************************************************************/
  21060. /*! no static exports found */
  21061. /***/ (function(module, exports, __webpack_require__) {
  21062. //! moment.js locale configuration
  21063. //! locale : Javanese [jv]
  21064. //! author : Rony Lantip : https://github.com/lantip
  21065. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  21066. ;(function (global, factory) {
  21067. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21068. undefined;
  21069. })(this, function (moment) {'use strict';
  21070. //! moment.js locale configuration
  21071. var jv = moment.defineLocale('jv', {
  21072. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  21073. '_'),
  21074. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  21075. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  21076. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  21077. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  21078. longDateFormat: {
  21079. LT: 'HH.mm',
  21080. LTS: 'HH.mm.ss',
  21081. L: 'DD/MM/YYYY',
  21082. LL: 'D MMMM YYYY',
  21083. LLL: 'D MMMM YYYY [pukul] HH.mm',
  21084. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' },
  21085. meridiemParse: /enjing|siyang|sonten|ndalu/,
  21086. meridiemHour: function meridiemHour(hour, meridiem) {
  21087. if (hour === 12) {
  21088. hour = 0;
  21089. }
  21090. if (meridiem === 'enjing') {
  21091. return hour;
  21092. } else if (meridiem === 'siyang') {
  21093. return hour >= 11 ? hour : hour + 12;
  21094. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  21095. return hour + 12;
  21096. }
  21097. },
  21098. meridiem: function meridiem(hours, minutes, isLower) {
  21099. if (hours < 11) {
  21100. return 'enjing';
  21101. } else if (hours < 15) {
  21102. return 'siyang';
  21103. } else if (hours < 19) {
  21104. return 'sonten';
  21105. } else {
  21106. return 'ndalu';
  21107. }
  21108. },
  21109. calendar: {
  21110. sameDay: '[Dinten puniko pukul] LT',
  21111. nextDay: '[Mbenjang pukul] LT',
  21112. nextWeek: 'dddd [pukul] LT',
  21113. lastDay: '[Kala wingi pukul] LT',
  21114. lastWeek: 'dddd [kepengker pukul] LT',
  21115. sameElse: 'L' },
  21116. relativeTime: {
  21117. future: 'wonten ing %s',
  21118. past: '%s ingkang kepengker',
  21119. s: 'sawetawis detik',
  21120. ss: '%d detik',
  21121. m: 'setunggal menit',
  21122. mm: '%d menit',
  21123. h: 'setunggal jam',
  21124. hh: '%d jam',
  21125. d: 'sedinten',
  21126. dd: '%d dinten',
  21127. M: 'sewulan',
  21128. MM: '%d wulan',
  21129. y: 'setaun',
  21130. yy: '%d taun' },
  21131. week: {
  21132. dow: 1, // Monday is the first day of the week.
  21133. doy: 7 // The week that contains Jan 7th is the first week of the year.
  21134. } });
  21135. return jv;
  21136. });
  21137. /***/ }),
  21138. /* 83 */
  21139. /*!***************************************************************************!*\
  21140. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ka.js ***!
  21141. \***************************************************************************/
  21142. /*! no static exports found */
  21143. /***/ (function(module, exports, __webpack_require__) {
  21144. //! moment.js locale configuration
  21145. //! locale : Georgian [ka]
  21146. //! author : Irakli Janiashvili : https://github.com/IrakliJani
  21147. ;(function (global, factory) {
  21148. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21149. undefined;
  21150. })(this, function (moment) {'use strict';
  21151. //! moment.js locale configuration
  21152. var ka = moment.defineLocale('ka', {
  21153. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  21154. '_'),
  21155. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  21156. weekdays: {
  21157. standalone:
  21158. 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  21159. '_'),
  21160. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  21161. '_'),
  21162. isFormat: /(წინა|შემდეგ)/ },
  21163. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  21164. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  21165. longDateFormat: {
  21166. LT: 'HH:mm',
  21167. LTS: 'HH:mm:ss',
  21168. L: 'DD/MM/YYYY',
  21169. LL: 'D MMMM YYYY',
  21170. LLL: 'D MMMM YYYY HH:mm',
  21171. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  21172. calendar: {
  21173. sameDay: '[დღეს] LT[-ზე]',
  21174. nextDay: '[ხვალ] LT[-ზე]',
  21175. lastDay: '[გუშინ] LT[-ზე]',
  21176. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  21177. lastWeek: '[წინა] dddd LT-ზე',
  21178. sameElse: 'L' },
  21179. relativeTime: {
  21180. future: function future(s) {
  21181. return s.replace(
  21182. /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
  21183. function ($0, $1, $2) {
  21184. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  21185. });
  21186. },
  21187. past: function past(s) {
  21188. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  21189. return s.replace(/(ი|ე)$/, 'ის წინ');
  21190. }
  21191. if (/წელი/.test(s)) {
  21192. return s.replace(/წელი$/, 'წლის წინ');
  21193. }
  21194. return s;
  21195. },
  21196. s: 'რამდენიმე წამი',
  21197. ss: '%d წამი',
  21198. m: 'წუთი',
  21199. mm: '%d წუთი',
  21200. h: 'საათი',
  21201. hh: '%d საათი',
  21202. d: 'დღე',
  21203. dd: '%d დღე',
  21204. M: 'თვე',
  21205. MM: '%d თვე',
  21206. y: 'წელი',
  21207. yy: '%d წელი' },
  21208. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  21209. ordinal: function ordinal(number) {
  21210. if (number === 0) {
  21211. return number;
  21212. }
  21213. if (number === 1) {
  21214. return number + '-ლი';
  21215. }
  21216. if (
  21217. number < 20 ||
  21218. number <= 100 && number % 20 === 0 ||
  21219. number % 100 === 0)
  21220. {
  21221. return 'მე-' + number;
  21222. }
  21223. return number + '-ე';
  21224. },
  21225. week: {
  21226. dow: 1,
  21227. doy: 7 } });
  21228. return ka;
  21229. });
  21230. /***/ }),
  21231. /* 84 */
  21232. /*!***************************************************************************!*\
  21233. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/kk.js ***!
  21234. \***************************************************************************/
  21235. /*! no static exports found */
  21236. /***/ (function(module, exports, __webpack_require__) {
  21237. //! moment.js locale configuration
  21238. //! locale : Kazakh [kk]
  21239. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  21240. ;(function (global, factory) {
  21241. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21242. undefined;
  21243. })(this, function (moment) {'use strict';
  21244. //! moment.js locale configuration
  21245. var suffixes = {
  21246. 0: '-ші',
  21247. 1: '-ші',
  21248. 2: '-ші',
  21249. 3: '-ші',
  21250. 4: '-ші',
  21251. 5: '-ші',
  21252. 6: '-шы',
  21253. 7: '-ші',
  21254. 8: '-ші',
  21255. 9: '-шы',
  21256. 10: '-шы',
  21257. 20: '-шы',
  21258. 30: '-шы',
  21259. 40: '-шы',
  21260. 50: '-ші',
  21261. 60: '-шы',
  21262. 70: '-ші',
  21263. 80: '-ші',
  21264. 90: '-шы',
  21265. 100: '-ші' };
  21266. var kk = moment.defineLocale('kk', {
  21267. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  21268. '_'),
  21269. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  21270. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  21271. '_'),
  21272. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  21273. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  21274. longDateFormat: {
  21275. LT: 'HH:mm',
  21276. LTS: 'HH:mm:ss',
  21277. L: 'DD.MM.YYYY',
  21278. LL: 'D MMMM YYYY',
  21279. LLL: 'D MMMM YYYY HH:mm',
  21280. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  21281. calendar: {
  21282. sameDay: '[Бүгін сағат] LT',
  21283. nextDay: '[Ертең сағат] LT',
  21284. nextWeek: 'dddd [сағат] LT',
  21285. lastDay: '[Кеше сағат] LT',
  21286. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  21287. sameElse: 'L' },
  21288. relativeTime: {
  21289. future: '%s ішінде',
  21290. past: '%s бұрын',
  21291. s: 'бірнеше секунд',
  21292. ss: '%d секунд',
  21293. m: 'бір минут',
  21294. mm: '%d минут',
  21295. h: 'бір сағат',
  21296. hh: '%d сағат',
  21297. d: 'бір күн',
  21298. dd: '%d күн',
  21299. M: 'бір ай',
  21300. MM: '%d ай',
  21301. y: 'бір жыл',
  21302. yy: '%d жыл' },
  21303. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  21304. ordinal: function ordinal(number) {
  21305. var a = number % 10,
  21306. b = number >= 100 ? 100 : null;
  21307. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  21308. },
  21309. week: {
  21310. dow: 1, // Monday is the first day of the week.
  21311. doy: 7 // The week that contains Jan 7th is the first week of the year.
  21312. } });
  21313. return kk;
  21314. });
  21315. /***/ }),
  21316. /* 85 */
  21317. /*!***************************************************************************!*\
  21318. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/km.js ***!
  21319. \***************************************************************************/
  21320. /*! no static exports found */
  21321. /***/ (function(module, exports, __webpack_require__) {
  21322. //! moment.js locale configuration
  21323. //! locale : Cambodian [km]
  21324. //! author : Kruy Vanna : https://github.com/kruyvanna
  21325. ;(function (global, factory) {
  21326. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21327. undefined;
  21328. })(this, function (moment) {'use strict';
  21329. //! moment.js locale configuration
  21330. var symbolMap = {
  21331. 1: '១',
  21332. 2: '២',
  21333. 3: '៣',
  21334. 4: '៤',
  21335. 5: '៥',
  21336. 6: '៦',
  21337. 7: '៧',
  21338. 8: '៨',
  21339. 9: '៩',
  21340. 0: '០' },
  21341. numberMap = {
  21342. '១': '1',
  21343. '២': '2',
  21344. '៣': '3',
  21345. '៤': '4',
  21346. '៥': '5',
  21347. '៦': '6',
  21348. '៧': '7',
  21349. '៨': '8',
  21350. '៩': '9',
  21351. '០': '0' };
  21352. var km = moment.defineLocale('km', {
  21353. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  21354. '_'),
  21355. monthsShort:
  21356. 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  21357. '_'),
  21358. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  21359. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  21360. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  21361. weekdaysParseExact: true,
  21362. longDateFormat: {
  21363. LT: 'HH:mm',
  21364. LTS: 'HH:mm:ss',
  21365. L: 'DD/MM/YYYY',
  21366. LL: 'D MMMM YYYY',
  21367. LLL: 'D MMMM YYYY HH:mm',
  21368. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  21369. meridiemParse: /ព្រឹក|ល្ងាច/,
  21370. isPM: function isPM(input) {
  21371. return input === 'ល្ងាច';
  21372. },
  21373. meridiem: function meridiem(hour, minute, isLower) {
  21374. if (hour < 12) {
  21375. return 'ព្រឹក';
  21376. } else {
  21377. return 'ល្ងាច';
  21378. }
  21379. },
  21380. calendar: {
  21381. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  21382. nextDay: '[ស្អែក ម៉ោង] LT',
  21383. nextWeek: 'dddd [ម៉ោង] LT',
  21384. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  21385. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  21386. sameElse: 'L' },
  21387. relativeTime: {
  21388. future: '%sទៀត',
  21389. past: '%sមុន',
  21390. s: 'ប៉ុន្មានវិនាទី',
  21391. ss: '%d វិនាទី',
  21392. m: 'មួយនាទី',
  21393. mm: '%d នាទី',
  21394. h: 'មួយម៉ោង',
  21395. hh: '%d ម៉ោង',
  21396. d: 'មួយថ្ងៃ',
  21397. dd: '%d ថ្ងៃ',
  21398. M: 'មួយខែ',
  21399. MM: '%d ខែ',
  21400. y: 'មួយឆ្នាំ',
  21401. yy: '%d ឆ្នាំ' },
  21402. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  21403. ordinal: 'ទី%d',
  21404. preparse: function preparse(string) {
  21405. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  21406. return numberMap[match];
  21407. });
  21408. },
  21409. postformat: function postformat(string) {
  21410. return string.replace(/\d/g, function (match) {
  21411. return symbolMap[match];
  21412. });
  21413. },
  21414. week: {
  21415. dow: 1, // Monday is the first day of the week.
  21416. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21417. } });
  21418. return km;
  21419. });
  21420. /***/ }),
  21421. /* 86 */
  21422. /*!***************************************************************************!*\
  21423. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/kn.js ***!
  21424. \***************************************************************************/
  21425. /*! no static exports found */
  21426. /***/ (function(module, exports, __webpack_require__) {
  21427. //! moment.js locale configuration
  21428. //! locale : Kannada [kn]
  21429. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  21430. ;(function (global, factory) {
  21431. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21432. undefined;
  21433. })(this, function (moment) {'use strict';
  21434. //! moment.js locale configuration
  21435. var symbolMap = {
  21436. 1: '೧',
  21437. 2: '೨',
  21438. 3: '೩',
  21439. 4: '೪',
  21440. 5: '೫',
  21441. 6: '೬',
  21442. 7: '೭',
  21443. 8: '೮',
  21444. 9: '೯',
  21445. 0: '೦' },
  21446. numberMap = {
  21447. '೧': '1',
  21448. '೨': '2',
  21449. '೩': '3',
  21450. '೪': '4',
  21451. '೫': '5',
  21452. '೬': '6',
  21453. '೭': '7',
  21454. '೮': '8',
  21455. '೯': '9',
  21456. '೦': '0' };
  21457. var kn = moment.defineLocale('kn', {
  21458. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  21459. '_'),
  21460. monthsShort:
  21461. 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  21462. '_'),
  21463. monthsParseExact: true,
  21464. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  21465. '_'),
  21466. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  21467. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  21468. longDateFormat: {
  21469. LT: 'A h:mm',
  21470. LTS: 'A h:mm:ss',
  21471. L: 'DD/MM/YYYY',
  21472. LL: 'D MMMM YYYY',
  21473. LLL: 'D MMMM YYYY, A h:mm',
  21474. LLLL: 'dddd, D MMMM YYYY, A h:mm' },
  21475. calendar: {
  21476. sameDay: '[ಇಂದು] LT',
  21477. nextDay: '[ನಾಳೆ] LT',
  21478. nextWeek: 'dddd, LT',
  21479. lastDay: '[ನಿನ್ನೆ] LT',
  21480. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  21481. sameElse: 'L' },
  21482. relativeTime: {
  21483. future: '%s ನಂತರ',
  21484. past: '%s ಹಿಂದೆ',
  21485. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  21486. ss: '%d ಸೆಕೆಂಡುಗಳು',
  21487. m: 'ಒಂದು ನಿಮಿಷ',
  21488. mm: '%d ನಿಮಿಷ',
  21489. h: 'ಒಂದು ಗಂಟೆ',
  21490. hh: '%d ಗಂಟೆ',
  21491. d: 'ಒಂದು ದಿನ',
  21492. dd: '%d ದಿನ',
  21493. M: 'ಒಂದು ತಿಂಗಳು',
  21494. MM: '%d ತಿಂಗಳು',
  21495. y: 'ಒಂದು ವರ್ಷ',
  21496. yy: '%d ವರ್ಷ' },
  21497. preparse: function preparse(string) {
  21498. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  21499. return numberMap[match];
  21500. });
  21501. },
  21502. postformat: function postformat(string) {
  21503. return string.replace(/\d/g, function (match) {
  21504. return symbolMap[match];
  21505. });
  21506. },
  21507. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  21508. meridiemHour: function meridiemHour(hour, meridiem) {
  21509. if (hour === 12) {
  21510. hour = 0;
  21511. }
  21512. if (meridiem === 'ರಾತ್ರಿ') {
  21513. return hour < 4 ? hour : hour + 12;
  21514. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  21515. return hour;
  21516. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  21517. return hour >= 10 ? hour : hour + 12;
  21518. } else if (meridiem === 'ಸಂಜೆ') {
  21519. return hour + 12;
  21520. }
  21521. },
  21522. meridiem: function meridiem(hour, minute, isLower) {
  21523. if (hour < 4) {
  21524. return 'ರಾತ್ರಿ';
  21525. } else if (hour < 10) {
  21526. return 'ಬೆಳಿಗ್ಗೆ';
  21527. } else if (hour < 17) {
  21528. return 'ಮಧ್ಯಾಹ್ನ';
  21529. } else if (hour < 20) {
  21530. return 'ಸಂಜೆ';
  21531. } else {
  21532. return 'ರಾತ್ರಿ';
  21533. }
  21534. },
  21535. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  21536. ordinal: function ordinal(number) {
  21537. return number + 'ನೇ';
  21538. },
  21539. week: {
  21540. dow: 0, // Sunday is the first day of the week.
  21541. doy: 6 // The week that contains Jan 6th is the first week of the year.
  21542. } });
  21543. return kn;
  21544. });
  21545. /***/ }),
  21546. /* 87 */
  21547. /*!***************************************************************************!*\
  21548. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ko.js ***!
  21549. \***************************************************************************/
  21550. /*! no static exports found */
  21551. /***/ (function(module, exports, __webpack_require__) {
  21552. //! moment.js locale configuration
  21553. //! locale : Korean [ko]
  21554. //! author : Kyungwook, Park : https://github.com/kyungw00k
  21555. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  21556. ;(function (global, factory) {
  21557. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21558. undefined;
  21559. })(this, function (moment) {'use strict';
  21560. //! moment.js locale configuration
  21561. var ko = moment.defineLocale('ko', {
  21562. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  21563. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  21564. '_'),
  21565. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  21566. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  21567. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  21568. longDateFormat: {
  21569. LT: 'A h:mm',
  21570. LTS: 'A h:mm:ss',
  21571. L: 'YYYY.MM.DD.',
  21572. LL: 'YYYY년 MMMM D일',
  21573. LLL: 'YYYY년 MMMM D일 A h:mm',
  21574. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  21575. l: 'YYYY.MM.DD.',
  21576. ll: 'YYYY년 MMMM D일',
  21577. lll: 'YYYY년 MMMM D일 A h:mm',
  21578. llll: 'YYYY년 MMMM D일 dddd A h:mm' },
  21579. calendar: {
  21580. sameDay: '오늘 LT',
  21581. nextDay: '내일 LT',
  21582. nextWeek: 'dddd LT',
  21583. lastDay: '어제 LT',
  21584. lastWeek: '지난주 dddd LT',
  21585. sameElse: 'L' },
  21586. relativeTime: {
  21587. future: '%s 후',
  21588. past: '%s 전',
  21589. s: '몇 초',
  21590. ss: '%d초',
  21591. m: '1분',
  21592. mm: '%d분',
  21593. h: '한 시간',
  21594. hh: '%d시간',
  21595. d: '하루',
  21596. dd: '%d일',
  21597. M: '한 달',
  21598. MM: '%d달',
  21599. y: '일 년',
  21600. yy: '%d년' },
  21601. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  21602. ordinal: function ordinal(number, period) {
  21603. switch (period) {
  21604. case 'd':
  21605. case 'D':
  21606. case 'DDD':
  21607. return number + '일';
  21608. case 'M':
  21609. return number + '월';
  21610. case 'w':
  21611. case 'W':
  21612. return number + '주';
  21613. default:
  21614. return number;}
  21615. },
  21616. meridiemParse: /오전|오후/,
  21617. isPM: function isPM(token) {
  21618. return token === '오후';
  21619. },
  21620. meridiem: function meridiem(hour, minute, isUpper) {
  21621. return hour < 12 ? '오전' : '오후';
  21622. } });
  21623. return ko;
  21624. });
  21625. /***/ }),
  21626. /* 88 */
  21627. /*!***************************************************************************!*\
  21628. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ku.js ***!
  21629. \***************************************************************************/
  21630. /*! no static exports found */
  21631. /***/ (function(module, exports, __webpack_require__) {
  21632. //! moment.js locale configuration
  21633. //! locale : Kurdish [ku]
  21634. //! author : Shahram Mebashar : https://github.com/ShahramMebashar
  21635. ;(function (global, factory) {
  21636. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21637. undefined;
  21638. })(this, function (moment) {'use strict';
  21639. //! moment.js locale configuration
  21640. var symbolMap = {
  21641. 1: '١',
  21642. 2: '٢',
  21643. 3: '٣',
  21644. 4: '٤',
  21645. 5: '٥',
  21646. 6: '٦',
  21647. 7: '٧',
  21648. 8: '٨',
  21649. 9: '٩',
  21650. 0: '٠' },
  21651. numberMap = {
  21652. '١': '1',
  21653. '٢': '2',
  21654. '٣': '3',
  21655. '٤': '4',
  21656. '٥': '5',
  21657. '٦': '6',
  21658. '٧': '7',
  21659. '٨': '8',
  21660. '٩': '9',
  21661. '٠': '0' },
  21662. months = [
  21663. 'کانونی دووەم',
  21664. 'شوبات',
  21665. 'ئازار',
  21666. 'نیسان',
  21667. 'ئایار',
  21668. 'حوزەیران',
  21669. 'تەمموز',
  21670. 'ئاب',
  21671. 'ئەیلوول',
  21672. 'تشرینی یەكەم',
  21673. 'تشرینی دووەم',
  21674. 'كانونی یەکەم'];
  21675. var ku = moment.defineLocale('ku', {
  21676. months: months,
  21677. monthsShort: months,
  21678. weekdays:
  21679. 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  21680. '_'),
  21681. weekdaysShort:
  21682. 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
  21683. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  21684. weekdaysParseExact: true,
  21685. longDateFormat: {
  21686. LT: 'HH:mm',
  21687. LTS: 'HH:mm:ss',
  21688. L: 'DD/MM/YYYY',
  21689. LL: 'D MMMM YYYY',
  21690. LLL: 'D MMMM YYYY HH:mm',
  21691. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  21692. meridiemParse: /ئێواره‌|به‌یانی/,
  21693. isPM: function isPM(input) {
  21694. return /ئێواره‌/.test(input);
  21695. },
  21696. meridiem: function meridiem(hour, minute, isLower) {
  21697. if (hour < 12) {
  21698. return 'به‌یانی';
  21699. } else {
  21700. return 'ئێواره‌';
  21701. }
  21702. },
  21703. calendar: {
  21704. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  21705. nextDay: '[به‌یانی كاتژمێر] LT',
  21706. nextWeek: 'dddd [كاتژمێر] LT',
  21707. lastDay: '[دوێنێ كاتژمێر] LT',
  21708. lastWeek: 'dddd [كاتژمێر] LT',
  21709. sameElse: 'L' },
  21710. relativeTime: {
  21711. future: 'له‌ %s',
  21712. past: '%s',
  21713. s: 'چه‌ند چركه‌یه‌ك',
  21714. ss: 'چركه‌ %d',
  21715. m: 'یه‌ك خوله‌ك',
  21716. mm: '%d خوله‌ك',
  21717. h: 'یه‌ك كاتژمێر',
  21718. hh: '%d كاتژمێر',
  21719. d: 'یه‌ك ڕۆژ',
  21720. dd: '%d ڕۆژ',
  21721. M: 'یه‌ك مانگ',
  21722. MM: '%d مانگ',
  21723. y: 'یه‌ك ساڵ',
  21724. yy: '%d ساڵ' },
  21725. preparse: function preparse(string) {
  21726. return string.
  21727. replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  21728. return numberMap[match];
  21729. }).
  21730. replace(/،/g, ',');
  21731. },
  21732. postformat: function postformat(string) {
  21733. return string.
  21734. replace(/\d/g, function (match) {
  21735. return symbolMap[match];
  21736. }).
  21737. replace(/,/g, '،');
  21738. },
  21739. week: {
  21740. dow: 6, // Saturday is the first day of the week.
  21741. doy: 12 // The week that contains Jan 12th is the first week of the year.
  21742. } });
  21743. return ku;
  21744. });
  21745. /***/ }),
  21746. /* 89 */
  21747. /*!***************************************************************************!*\
  21748. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ky.js ***!
  21749. \***************************************************************************/
  21750. /*! no static exports found */
  21751. /***/ (function(module, exports, __webpack_require__) {
  21752. //! moment.js locale configuration
  21753. //! locale : Kyrgyz [ky]
  21754. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  21755. ;(function (global, factory) {
  21756. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21757. undefined;
  21758. })(this, function (moment) {'use strict';
  21759. //! moment.js locale configuration
  21760. var suffixes = {
  21761. 0: '-чү',
  21762. 1: '-чи',
  21763. 2: '-чи',
  21764. 3: '-чү',
  21765. 4: '-чү',
  21766. 5: '-чи',
  21767. 6: '-чы',
  21768. 7: '-чи',
  21769. 8: '-чи',
  21770. 9: '-чу',
  21771. 10: '-чу',
  21772. 20: '-чы',
  21773. 30: '-чу',
  21774. 40: '-чы',
  21775. 50: '-чү',
  21776. 60: '-чы',
  21777. 70: '-чи',
  21778. 80: '-чи',
  21779. 90: '-чу',
  21780. 100: '-чү' };
  21781. var ky = moment.defineLocale('ky', {
  21782. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  21783. '_'),
  21784. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  21785. '_'),
  21786. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  21787. '_'),
  21788. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  21789. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  21790. longDateFormat: {
  21791. LT: 'HH:mm',
  21792. LTS: 'HH:mm:ss',
  21793. L: 'DD.MM.YYYY',
  21794. LL: 'D MMMM YYYY',
  21795. LLL: 'D MMMM YYYY HH:mm',
  21796. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  21797. calendar: {
  21798. sameDay: '[Бүгүн саат] LT',
  21799. nextDay: '[Эртең саат] LT',
  21800. nextWeek: 'dddd [саат] LT',
  21801. lastDay: '[Кечээ саат] LT',
  21802. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  21803. sameElse: 'L' },
  21804. relativeTime: {
  21805. future: '%s ичинде',
  21806. past: '%s мурун',
  21807. s: 'бирнече секунд',
  21808. ss: '%d секунд',
  21809. m: 'бир мүнөт',
  21810. mm: '%d мүнөт',
  21811. h: 'бир саат',
  21812. hh: '%d саат',
  21813. d: 'бир күн',
  21814. dd: '%d күн',
  21815. M: 'бир ай',
  21816. MM: '%d ай',
  21817. y: 'бир жыл',
  21818. yy: '%d жыл' },
  21819. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  21820. ordinal: function ordinal(number) {
  21821. var a = number % 10,
  21822. b = number >= 100 ? 100 : null;
  21823. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  21824. },
  21825. week: {
  21826. dow: 1, // Monday is the first day of the week.
  21827. doy: 7 // The week that contains Jan 7th is the first week of the year.
  21828. } });
  21829. return ky;
  21830. });
  21831. /***/ }),
  21832. /* 90 */
  21833. /*!***************************************************************************!*\
  21834. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/lb.js ***!
  21835. \***************************************************************************/
  21836. /*! no static exports found */
  21837. /***/ (function(module, exports, __webpack_require__) {
  21838. //! moment.js locale configuration
  21839. //! locale : Luxembourgish [lb]
  21840. //! author : mweimerskirch : https://github.com/mweimerskirch
  21841. //! author : David Raison : https://github.com/kwisatz
  21842. ;(function (global, factory) {
  21843. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21844. undefined;
  21845. })(this, function (moment) {'use strict';
  21846. //! moment.js locale configuration
  21847. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  21848. var format = {
  21849. m: ['eng Minutt', 'enger Minutt'],
  21850. h: ['eng Stonn', 'enger Stonn'],
  21851. d: ['een Dag', 'engem Dag'],
  21852. M: ['ee Mount', 'engem Mount'],
  21853. y: ['ee Joer', 'engem Joer'] };
  21854. return withoutSuffix ? format[key][0] : format[key][1];
  21855. }
  21856. function processFutureTime(string) {
  21857. var number = string.substr(0, string.indexOf(' '));
  21858. if (eifelerRegelAppliesToNumber(number)) {
  21859. return 'a ' + string;
  21860. }
  21861. return 'an ' + string;
  21862. }
  21863. function processPastTime(string) {
  21864. var number = string.substr(0, string.indexOf(' '));
  21865. if (eifelerRegelAppliesToNumber(number)) {
  21866. return 'viru ' + string;
  21867. }
  21868. return 'virun ' + string;
  21869. }
  21870. /**
  21871. * Returns true if the word before the given number loses the '-n' ending.
  21872. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  21873. *
  21874. * @param number {integer}
  21875. * @returns {boolean}
  21876. */
  21877. function eifelerRegelAppliesToNumber(number) {
  21878. number = parseInt(number, 10);
  21879. if (isNaN(number)) {
  21880. return false;
  21881. }
  21882. if (number < 0) {
  21883. // Negative Number --> always true
  21884. return true;
  21885. } else if (number < 10) {
  21886. // Only 1 digit
  21887. if (4 <= number && number <= 7) {
  21888. return true;
  21889. }
  21890. return false;
  21891. } else if (number < 100) {
  21892. // 2 digits
  21893. var lastDigit = number % 10,
  21894. firstDigit = number / 10;
  21895. if (lastDigit === 0) {
  21896. return eifelerRegelAppliesToNumber(firstDigit);
  21897. }
  21898. return eifelerRegelAppliesToNumber(lastDigit);
  21899. } else if (number < 10000) {
  21900. // 3 or 4 digits --> recursively check first digit
  21901. while (number >= 10) {
  21902. number = number / 10;
  21903. }
  21904. return eifelerRegelAppliesToNumber(number);
  21905. } else {
  21906. // Anything larger than 4 digits: recursively check first n-3 digits
  21907. number = number / 1000;
  21908. return eifelerRegelAppliesToNumber(number);
  21909. }
  21910. }
  21911. var lb = moment.defineLocale('lb', {
  21912. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  21913. '_'),
  21914. monthsShort:
  21915. 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  21916. '_'),
  21917. monthsParseExact: true,
  21918. weekdays:
  21919. 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  21920. '_'),
  21921. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  21922. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  21923. weekdaysParseExact: true,
  21924. longDateFormat: {
  21925. LT: 'H:mm [Auer]',
  21926. LTS: 'H:mm:ss [Auer]',
  21927. L: 'DD.MM.YYYY',
  21928. LL: 'D. MMMM YYYY',
  21929. LLL: 'D. MMMM YYYY H:mm [Auer]',
  21930. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' },
  21931. calendar: {
  21932. sameDay: '[Haut um] LT',
  21933. sameElse: 'L',
  21934. nextDay: '[Muer um] LT',
  21935. nextWeek: 'dddd [um] LT',
  21936. lastDay: '[Gëschter um] LT',
  21937. lastWeek: function lastWeek() {
  21938. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  21939. switch (this.day()) {
  21940. case 2:
  21941. case 4:
  21942. return '[Leschten] dddd [um] LT';
  21943. default:
  21944. return '[Leschte] dddd [um] LT';}
  21945. } },
  21946. relativeTime: {
  21947. future: processFutureTime,
  21948. past: processPastTime,
  21949. s: 'e puer Sekonnen',
  21950. ss: '%d Sekonnen',
  21951. m: processRelativeTime,
  21952. mm: '%d Minutten',
  21953. h: processRelativeTime,
  21954. hh: '%d Stonnen',
  21955. d: processRelativeTime,
  21956. dd: '%d Deeg',
  21957. M: processRelativeTime,
  21958. MM: '%d Méint',
  21959. y: processRelativeTime,
  21960. yy: '%d Joer' },
  21961. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21962. ordinal: '%d.',
  21963. week: {
  21964. dow: 1, // Monday is the first day of the week.
  21965. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21966. } });
  21967. return lb;
  21968. });
  21969. /***/ }),
  21970. /* 91 */
  21971. /*!***************************************************************************!*\
  21972. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/lo.js ***!
  21973. \***************************************************************************/
  21974. /*! no static exports found */
  21975. /***/ (function(module, exports, __webpack_require__) {
  21976. //! moment.js locale configuration
  21977. //! locale : Lao [lo]
  21978. //! author : Ryan Hart : https://github.com/ryanhart2
  21979. ;(function (global, factory) {
  21980. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  21981. undefined;
  21982. })(this, function (moment) {'use strict';
  21983. //! moment.js locale configuration
  21984. var lo = moment.defineLocale('lo', {
  21985. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  21986. '_'),
  21987. monthsShort:
  21988. 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  21989. '_'),
  21990. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  21991. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  21992. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  21993. weekdaysParseExact: true,
  21994. longDateFormat: {
  21995. LT: 'HH:mm',
  21996. LTS: 'HH:mm:ss',
  21997. L: 'DD/MM/YYYY',
  21998. LL: 'D MMMM YYYY',
  21999. LLL: 'D MMMM YYYY HH:mm',
  22000. LLLL: 'ວັນdddd D MMMM YYYY HH:mm' },
  22001. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  22002. isPM: function isPM(input) {
  22003. return input === 'ຕອນແລງ';
  22004. },
  22005. meridiem: function meridiem(hour, minute, isLower) {
  22006. if (hour < 12) {
  22007. return 'ຕອນເຊົ້າ';
  22008. } else {
  22009. return 'ຕອນແລງ';
  22010. }
  22011. },
  22012. calendar: {
  22013. sameDay: '[ມື້ນີ້ເວລາ] LT',
  22014. nextDay: '[ມື້ອື່ນເວລາ] LT',
  22015. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  22016. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  22017. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  22018. sameElse: 'L' },
  22019. relativeTime: {
  22020. future: 'ອີກ %s',
  22021. past: '%sຜ່ານມາ',
  22022. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  22023. ss: '%d ວິນາທີ',
  22024. m: '1 ນາທີ',
  22025. mm: '%d ນາທີ',
  22026. h: '1 ຊົ່ວໂມງ',
  22027. hh: '%d ຊົ່ວໂມງ',
  22028. d: '1 ມື້',
  22029. dd: '%d ມື້',
  22030. M: '1 ເດືອນ',
  22031. MM: '%d ເດືອນ',
  22032. y: '1 ປີ',
  22033. yy: '%d ປີ' },
  22034. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  22035. ordinal: function ordinal(number) {
  22036. return 'ທີ່' + number;
  22037. } });
  22038. return lo;
  22039. });
  22040. /***/ }),
  22041. /* 92 */
  22042. /*!***************************************************************************!*\
  22043. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/lt.js ***!
  22044. \***************************************************************************/
  22045. /*! no static exports found */
  22046. /***/ (function(module, exports, __webpack_require__) {
  22047. //! moment.js locale configuration
  22048. //! locale : Lithuanian [lt]
  22049. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  22050. ;(function (global, factory) {
  22051. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22052. undefined;
  22053. })(this, function (moment) {'use strict';
  22054. //! moment.js locale configuration
  22055. var units = {
  22056. ss: 'sekundė_sekundžių_sekundes',
  22057. m: 'minutė_minutės_minutę',
  22058. mm: 'minutės_minučių_minutes',
  22059. h: 'valanda_valandos_valandą',
  22060. hh: 'valandos_valandų_valandas',
  22061. d: 'diena_dienos_dieną',
  22062. dd: 'dienos_dienų_dienas',
  22063. M: 'mėnuo_mėnesio_mėnesį',
  22064. MM: 'mėnesiai_mėnesių_mėnesius',
  22065. y: 'metai_metų_metus',
  22066. yy: 'metai_metų_metus' };
  22067. function translateSeconds(number, withoutSuffix, key, isFuture) {
  22068. if (withoutSuffix) {
  22069. return 'kelios sekundės';
  22070. } else {
  22071. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  22072. }
  22073. }
  22074. function translateSingular(number, withoutSuffix, key, isFuture) {
  22075. return withoutSuffix ?
  22076. forms(key)[0] :
  22077. isFuture ?
  22078. forms(key)[1] :
  22079. forms(key)[2];
  22080. }
  22081. function special(number) {
  22082. return number % 10 === 0 || number > 10 && number < 20;
  22083. }
  22084. function forms(key) {
  22085. return units[key].split('_');
  22086. }
  22087. function translate(number, withoutSuffix, key, isFuture) {
  22088. var result = number + ' ';
  22089. if (number === 1) {
  22090. return (
  22091. result + translateSingular(number, withoutSuffix, key[0], isFuture));
  22092. } else if (withoutSuffix) {
  22093. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  22094. } else {
  22095. if (isFuture) {
  22096. return result + forms(key)[1];
  22097. } else {
  22098. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  22099. }
  22100. }
  22101. }
  22102. var lt = moment.defineLocale('lt', {
  22103. months: {
  22104. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  22105. '_'),
  22106. standalone:
  22107. 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  22108. '_'),
  22109. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ },
  22110. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  22111. weekdays: {
  22112. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  22113. '_'),
  22114. standalone:
  22115. 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  22116. '_'),
  22117. isFormat: /dddd HH:mm/ },
  22118. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  22119. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  22120. weekdaysParseExact: true,
  22121. longDateFormat: {
  22122. LT: 'HH:mm',
  22123. LTS: 'HH:mm:ss',
  22124. L: 'YYYY-MM-DD',
  22125. LL: 'YYYY [m.] MMMM D [d.]',
  22126. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  22127. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  22128. l: 'YYYY-MM-DD',
  22129. ll: 'YYYY [m.] MMMM D [d.]',
  22130. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  22131. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' },
  22132. calendar: {
  22133. sameDay: '[Šiandien] LT',
  22134. nextDay: '[Rytoj] LT',
  22135. nextWeek: 'dddd LT',
  22136. lastDay: '[Vakar] LT',
  22137. lastWeek: '[Praėjusį] dddd LT',
  22138. sameElse: 'L' },
  22139. relativeTime: {
  22140. future: 'po %s',
  22141. past: 'prieš %s',
  22142. s: translateSeconds,
  22143. ss: translate,
  22144. m: translateSingular,
  22145. mm: translate,
  22146. h: translateSingular,
  22147. hh: translate,
  22148. d: translateSingular,
  22149. dd: translate,
  22150. M: translateSingular,
  22151. MM: translate,
  22152. y: translateSingular,
  22153. yy: translate },
  22154. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  22155. ordinal: function ordinal(number) {
  22156. return number + '-oji';
  22157. },
  22158. week: {
  22159. dow: 1, // Monday is the first day of the week.
  22160. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22161. } });
  22162. return lt;
  22163. });
  22164. /***/ }),
  22165. /* 93 */
  22166. /*!***************************************************************************!*\
  22167. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/lv.js ***!
  22168. \***************************************************************************/
  22169. /*! no static exports found */
  22170. /***/ (function(module, exports, __webpack_require__) {
  22171. //! moment.js locale configuration
  22172. //! locale : Latvian [lv]
  22173. //! author : Kristaps Karlsons : https://github.com/skakri
  22174. //! author : Jānis Elmeris : https://github.com/JanisE
  22175. ;(function (global, factory) {
  22176. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22177. undefined;
  22178. })(this, function (moment) {'use strict';
  22179. //! moment.js locale configuration
  22180. var units = {
  22181. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  22182. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  22183. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  22184. h: 'stundas_stundām_stunda_stundas'.split('_'),
  22185. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  22186. d: 'dienas_dienām_diena_dienas'.split('_'),
  22187. dd: 'dienas_dienām_diena_dienas'.split('_'),
  22188. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  22189. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  22190. y: 'gada_gadiem_gads_gadi'.split('_'),
  22191. yy: 'gada_gadiem_gads_gadi'.split('_') };
  22192. /**
  22193. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  22194. */
  22195. function format(forms, number, withoutSuffix) {
  22196. if (withoutSuffix) {
  22197. // E.g. "21 minūte", "3 minūtes".
  22198. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  22199. } else {
  22200. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  22201. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  22202. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  22203. }
  22204. }
  22205. function relativeTimeWithPlural(number, withoutSuffix, key) {
  22206. return number + ' ' + format(units[key], number, withoutSuffix);
  22207. }
  22208. function relativeTimeWithSingular(number, withoutSuffix, key) {
  22209. return format(units[key], number, withoutSuffix);
  22210. }
  22211. function relativeSeconds(number, withoutSuffix) {
  22212. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  22213. }
  22214. var lv = moment.defineLocale('lv', {
  22215. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  22216. '_'),
  22217. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  22218. weekdays:
  22219. 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  22220. '_'),
  22221. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  22222. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  22223. weekdaysParseExact: true,
  22224. longDateFormat: {
  22225. LT: 'HH:mm',
  22226. LTS: 'HH:mm:ss',
  22227. L: 'DD.MM.YYYY.',
  22228. LL: 'YYYY. [gada] D. MMMM',
  22229. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  22230. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm' },
  22231. calendar: {
  22232. sameDay: '[Šodien pulksten] LT',
  22233. nextDay: '[Rīt pulksten] LT',
  22234. nextWeek: 'dddd [pulksten] LT',
  22235. lastDay: '[Vakar pulksten] LT',
  22236. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  22237. sameElse: 'L' },
  22238. relativeTime: {
  22239. future: 'pēc %s',
  22240. past: 'pirms %s',
  22241. s: relativeSeconds,
  22242. ss: relativeTimeWithPlural,
  22243. m: relativeTimeWithSingular,
  22244. mm: relativeTimeWithPlural,
  22245. h: relativeTimeWithSingular,
  22246. hh: relativeTimeWithPlural,
  22247. d: relativeTimeWithSingular,
  22248. dd: relativeTimeWithPlural,
  22249. M: relativeTimeWithSingular,
  22250. MM: relativeTimeWithPlural,
  22251. y: relativeTimeWithSingular,
  22252. yy: relativeTimeWithPlural },
  22253. dayOfMonthOrdinalParse: /\d{1,2}\./,
  22254. ordinal: '%d.',
  22255. week: {
  22256. dow: 1, // Monday is the first day of the week.
  22257. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22258. } });
  22259. return lv;
  22260. });
  22261. /***/ }),
  22262. /* 94 */
  22263. /*!***************************************************************************!*\
  22264. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/me.js ***!
  22265. \***************************************************************************/
  22266. /*! no static exports found */
  22267. /***/ (function(module, exports, __webpack_require__) {
  22268. //! moment.js locale configuration
  22269. //! locale : Montenegrin [me]
  22270. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  22271. ;(function (global, factory) {
  22272. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22273. undefined;
  22274. })(this, function (moment) {'use strict';
  22275. //! moment.js locale configuration
  22276. var translator = {
  22277. words: {
  22278. //Different grammatical cases
  22279. ss: ['sekund', 'sekunda', 'sekundi'],
  22280. m: ['jedan minut', 'jednog minuta'],
  22281. mm: ['minut', 'minuta', 'minuta'],
  22282. h: ['jedan sat', 'jednog sata'],
  22283. hh: ['sat', 'sata', 'sati'],
  22284. dd: ['dan', 'dana', 'dana'],
  22285. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  22286. yy: ['godina', 'godine', 'godina'] },
  22287. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  22288. return number === 1 ?
  22289. wordKey[0] :
  22290. number >= 2 && number <= 4 ?
  22291. wordKey[1] :
  22292. wordKey[2];
  22293. },
  22294. translate: function translate(number, withoutSuffix, key) {
  22295. var wordKey = translator.words[key];
  22296. if (key.length === 1) {
  22297. return withoutSuffix ? wordKey[0] : wordKey[1];
  22298. } else {
  22299. return (
  22300. number +
  22301. ' ' +
  22302. translator.correctGrammaticalCase(number, wordKey));
  22303. }
  22304. } };
  22305. var me = moment.defineLocale('me', {
  22306. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  22307. '_'),
  22308. monthsShort:
  22309. 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  22310. monthsParseExact: true,
  22311. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  22312. '_'),
  22313. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  22314. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  22315. weekdaysParseExact: true,
  22316. longDateFormat: {
  22317. LT: 'H:mm',
  22318. LTS: 'H:mm:ss',
  22319. L: 'DD.MM.YYYY',
  22320. LL: 'D. MMMM YYYY',
  22321. LLL: 'D. MMMM YYYY H:mm',
  22322. LLLL: 'dddd, D. MMMM YYYY H:mm' },
  22323. calendar: {
  22324. sameDay: '[danas u] LT',
  22325. nextDay: '[sjutra u] LT',
  22326. nextWeek: function nextWeek() {
  22327. switch (this.day()) {
  22328. case 0:
  22329. return '[u] [nedjelju] [u] LT';
  22330. case 3:
  22331. return '[u] [srijedu] [u] LT';
  22332. case 6:
  22333. return '[u] [subotu] [u] LT';
  22334. case 1:
  22335. case 2:
  22336. case 4:
  22337. case 5:
  22338. return '[u] dddd [u] LT';}
  22339. },
  22340. lastDay: '[juče u] LT',
  22341. lastWeek: function lastWeek() {
  22342. var lastWeekDays = [
  22343. '[prošle] [nedjelje] [u] LT',
  22344. '[prošlog] [ponedjeljka] [u] LT',
  22345. '[prošlog] [utorka] [u] LT',
  22346. '[prošle] [srijede] [u] LT',
  22347. '[prošlog] [četvrtka] [u] LT',
  22348. '[prošlog] [petka] [u] LT',
  22349. '[prošle] [subote] [u] LT'];
  22350. return lastWeekDays[this.day()];
  22351. },
  22352. sameElse: 'L' },
  22353. relativeTime: {
  22354. future: 'za %s',
  22355. past: 'prije %s',
  22356. s: 'nekoliko sekundi',
  22357. ss: translator.translate,
  22358. m: translator.translate,
  22359. mm: translator.translate,
  22360. h: translator.translate,
  22361. hh: translator.translate,
  22362. d: 'dan',
  22363. dd: translator.translate,
  22364. M: 'mjesec',
  22365. MM: translator.translate,
  22366. y: 'godinu',
  22367. yy: translator.translate },
  22368. dayOfMonthOrdinalParse: /\d{1,2}\./,
  22369. ordinal: '%d.',
  22370. week: {
  22371. dow: 1, // Monday is the first day of the week.
  22372. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22373. } });
  22374. return me;
  22375. });
  22376. /***/ }),
  22377. /* 95 */
  22378. /*!***************************************************************************!*\
  22379. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/mi.js ***!
  22380. \***************************************************************************/
  22381. /*! no static exports found */
  22382. /***/ (function(module, exports, __webpack_require__) {
  22383. //! moment.js locale configuration
  22384. //! locale : Maori [mi]
  22385. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  22386. ;(function (global, factory) {
  22387. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22388. undefined;
  22389. })(this, function (moment) {'use strict';
  22390. //! moment.js locale configuration
  22391. var mi = moment.defineLocale('mi', {
  22392. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
  22393. '_'),
  22394. monthsShort:
  22395. 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  22396. '_'),
  22397. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22398. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22399. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22400. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  22401. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  22402. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  22403. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  22404. longDateFormat: {
  22405. LT: 'HH:mm',
  22406. LTS: 'HH:mm:ss',
  22407. L: 'DD/MM/YYYY',
  22408. LL: 'D MMMM YYYY',
  22409. LLL: 'D MMMM YYYY [i] HH:mm',
  22410. LLLL: 'dddd, D MMMM YYYY [i] HH:mm' },
  22411. calendar: {
  22412. sameDay: '[i teie mahana, i] LT',
  22413. nextDay: '[apopo i] LT',
  22414. nextWeek: 'dddd [i] LT',
  22415. lastDay: '[inanahi i] LT',
  22416. lastWeek: 'dddd [whakamutunga i] LT',
  22417. sameElse: 'L' },
  22418. relativeTime: {
  22419. future: 'i roto i %s',
  22420. past: '%s i mua',
  22421. s: 'te hēkona ruarua',
  22422. ss: '%d hēkona',
  22423. m: 'he meneti',
  22424. mm: '%d meneti',
  22425. h: 'te haora',
  22426. hh: '%d haora',
  22427. d: 'he ra',
  22428. dd: '%d ra',
  22429. M: 'he marama',
  22430. MM: '%d marama',
  22431. y: 'he tau',
  22432. yy: '%d tau' },
  22433. dayOfMonthOrdinalParse: /\d{1,2}º/,
  22434. ordinal: '%dº',
  22435. week: {
  22436. dow: 1, // Monday is the first day of the week.
  22437. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22438. } });
  22439. return mi;
  22440. });
  22441. /***/ }),
  22442. /* 96 */
  22443. /*!***************************************************************************!*\
  22444. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/mk.js ***!
  22445. \***************************************************************************/
  22446. /*! no static exports found */
  22447. /***/ (function(module, exports, __webpack_require__) {
  22448. //! moment.js locale configuration
  22449. //! locale : Macedonian [mk]
  22450. //! author : Borislav Mickov : https://github.com/B0k0
  22451. //! author : Sashko Todorov : https://github.com/bkyceh
  22452. ;(function (global, factory) {
  22453. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22454. undefined;
  22455. })(this, function (moment) {'use strict';
  22456. //! moment.js locale configuration
  22457. var mk = moment.defineLocale('mk', {
  22458. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  22459. '_'),
  22460. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  22461. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  22462. '_'),
  22463. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  22464. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  22465. longDateFormat: {
  22466. LT: 'H:mm',
  22467. LTS: 'H:mm:ss',
  22468. L: 'D.MM.YYYY',
  22469. LL: 'D MMMM YYYY',
  22470. LLL: 'D MMMM YYYY H:mm',
  22471. LLLL: 'dddd, D MMMM YYYY H:mm' },
  22472. calendar: {
  22473. sameDay: '[Денес во] LT',
  22474. nextDay: '[Утре во] LT',
  22475. nextWeek: '[Во] dddd [во] LT',
  22476. lastDay: '[Вчера во] LT',
  22477. lastWeek: function lastWeek() {
  22478. switch (this.day()) {
  22479. case 0:
  22480. case 3:
  22481. case 6:
  22482. return '[Изминатата] dddd [во] LT';
  22483. case 1:
  22484. case 2:
  22485. case 4:
  22486. case 5:
  22487. return '[Изминатиот] dddd [во] LT';}
  22488. },
  22489. sameElse: 'L' },
  22490. relativeTime: {
  22491. future: 'за %s',
  22492. past: 'пред %s',
  22493. s: 'неколку секунди',
  22494. ss: '%d секунди',
  22495. m: 'една минута',
  22496. mm: '%d минути',
  22497. h: 'еден час',
  22498. hh: '%d часа',
  22499. d: 'еден ден',
  22500. dd: '%d дена',
  22501. M: 'еден месец',
  22502. MM: '%d месеци',
  22503. y: 'една година',
  22504. yy: '%d години' },
  22505. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  22506. ordinal: function ordinal(number) {
  22507. var lastDigit = number % 10,
  22508. last2Digits = number % 100;
  22509. if (number === 0) {
  22510. return number + '-ев';
  22511. } else if (last2Digits === 0) {
  22512. return number + '-ен';
  22513. } else if (last2Digits > 10 && last2Digits < 20) {
  22514. return number + '-ти';
  22515. } else if (lastDigit === 1) {
  22516. return number + '-ви';
  22517. } else if (lastDigit === 2) {
  22518. return number + '-ри';
  22519. } else if (lastDigit === 7 || lastDigit === 8) {
  22520. return number + '-ми';
  22521. } else {
  22522. return number + '-ти';
  22523. }
  22524. },
  22525. week: {
  22526. dow: 1, // Monday is the first day of the week.
  22527. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22528. } });
  22529. return mk;
  22530. });
  22531. /***/ }),
  22532. /* 97 */
  22533. /*!***************************************************************************!*\
  22534. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ml.js ***!
  22535. \***************************************************************************/
  22536. /*! no static exports found */
  22537. /***/ (function(module, exports, __webpack_require__) {
  22538. //! moment.js locale configuration
  22539. //! locale : Malayalam [ml]
  22540. //! author : Floyd Pink : https://github.com/floydpink
  22541. ;(function (global, factory) {
  22542. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22543. undefined;
  22544. })(this, function (moment) {'use strict';
  22545. //! moment.js locale configuration
  22546. var ml = moment.defineLocale('ml', {
  22547. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  22548. '_'),
  22549. monthsShort:
  22550. 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  22551. '_'),
  22552. monthsParseExact: true,
  22553. weekdays:
  22554. 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  22555. '_'),
  22556. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  22557. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  22558. longDateFormat: {
  22559. LT: 'A h:mm -നു',
  22560. LTS: 'A h:mm:ss -നു',
  22561. L: 'DD/MM/YYYY',
  22562. LL: 'D MMMM YYYY',
  22563. LLL: 'D MMMM YYYY, A h:mm -നു',
  22564. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു' },
  22565. calendar: {
  22566. sameDay: '[ഇന്ന്] LT',
  22567. nextDay: '[നാളെ] LT',
  22568. nextWeek: 'dddd, LT',
  22569. lastDay: '[ഇന്നലെ] LT',
  22570. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  22571. sameElse: 'L' },
  22572. relativeTime: {
  22573. future: '%s കഴിഞ്ഞ്',
  22574. past: '%s മുൻപ്',
  22575. s: 'അൽപ നിമിഷങ്ങൾ',
  22576. ss: '%d സെക്കൻഡ്',
  22577. m: 'ഒരു മിനിറ്റ്',
  22578. mm: '%d മിനിറ്റ്',
  22579. h: 'ഒരു മണിക്കൂർ',
  22580. hh: '%d മണിക്കൂർ',
  22581. d: 'ഒരു ദിവസം',
  22582. dd: '%d ദിവസം',
  22583. M: 'ഒരു മാസം',
  22584. MM: '%d മാസം',
  22585. y: 'ഒരു വർഷം',
  22586. yy: '%d വർഷം' },
  22587. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  22588. meridiemHour: function meridiemHour(hour, meridiem) {
  22589. if (hour === 12) {
  22590. hour = 0;
  22591. }
  22592. if (
  22593. meridiem === 'രാത്രി' && hour >= 4 ||
  22594. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  22595. meridiem === 'വൈകുന്നേരം')
  22596. {
  22597. return hour + 12;
  22598. } else {
  22599. return hour;
  22600. }
  22601. },
  22602. meridiem: function meridiem(hour, minute, isLower) {
  22603. if (hour < 4) {
  22604. return 'രാത്രി';
  22605. } else if (hour < 12) {
  22606. return 'രാവിലെ';
  22607. } else if (hour < 17) {
  22608. return 'ഉച്ച കഴിഞ്ഞ്';
  22609. } else if (hour < 20) {
  22610. return 'വൈകുന്നേരം';
  22611. } else {
  22612. return 'രാത്രി';
  22613. }
  22614. } });
  22615. return ml;
  22616. });
  22617. /***/ }),
  22618. /* 98 */
  22619. /*!***************************************************************************!*\
  22620. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/mn.js ***!
  22621. \***************************************************************************/
  22622. /*! no static exports found */
  22623. /***/ (function(module, exports, __webpack_require__) {
  22624. //! moment.js locale configuration
  22625. //! locale : Mongolian [mn]
  22626. //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
  22627. ;(function (global, factory) {
  22628. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22629. undefined;
  22630. })(this, function (moment) {'use strict';
  22631. //! moment.js locale configuration
  22632. function translate(number, withoutSuffix, key, isFuture) {
  22633. switch (key) {
  22634. case 's':
  22635. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  22636. case 'ss':
  22637. return number + (withoutSuffix ? ' секунд' : ' секундын');
  22638. case 'm':
  22639. case 'mm':
  22640. return number + (withoutSuffix ? ' минут' : ' минутын');
  22641. case 'h':
  22642. case 'hh':
  22643. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  22644. case 'd':
  22645. case 'dd':
  22646. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  22647. case 'M':
  22648. case 'MM':
  22649. return number + (withoutSuffix ? ' сар' : ' сарын');
  22650. case 'y':
  22651. case 'yy':
  22652. return number + (withoutSuffix ? ' жил' : ' жилийн');
  22653. default:
  22654. return number;}
  22655. }
  22656. var mn = moment.defineLocale('mn', {
  22657. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  22658. '_'),
  22659. monthsShort:
  22660. '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  22661. '_'),
  22662. monthsParseExact: true,
  22663. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  22664. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  22665. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  22666. weekdaysParseExact: true,
  22667. longDateFormat: {
  22668. LT: 'HH:mm',
  22669. LTS: 'HH:mm:ss',
  22670. L: 'YYYY-MM-DD',
  22671. LL: 'YYYY оны MMMMын D',
  22672. LLL: 'YYYY оны MMMMын D HH:mm',
  22673. LLLL: 'dddd, YYYY оны MMMMын D HH:mm' },
  22674. meridiemParse: /ҮӨ|ҮХ/i,
  22675. isPM: function isPM(input) {
  22676. return input === 'ҮХ';
  22677. },
  22678. meridiem: function meridiem(hour, minute, isLower) {
  22679. if (hour < 12) {
  22680. return 'ҮӨ';
  22681. } else {
  22682. return 'ҮХ';
  22683. }
  22684. },
  22685. calendar: {
  22686. sameDay: '[Өнөөдөр] LT',
  22687. nextDay: '[Маргааш] LT',
  22688. nextWeek: '[Ирэх] dddd LT',
  22689. lastDay: '[Өчигдөр] LT',
  22690. lastWeek: '[Өнгөрсөн] dddd LT',
  22691. sameElse: 'L' },
  22692. relativeTime: {
  22693. future: '%s дараа',
  22694. past: '%s өмнө',
  22695. s: translate,
  22696. ss: translate,
  22697. m: translate,
  22698. mm: translate,
  22699. h: translate,
  22700. hh: translate,
  22701. d: translate,
  22702. dd: translate,
  22703. M: translate,
  22704. MM: translate,
  22705. y: translate,
  22706. yy: translate },
  22707. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  22708. ordinal: function ordinal(number, period) {
  22709. switch (period) {
  22710. case 'd':
  22711. case 'D':
  22712. case 'DDD':
  22713. return number + ' өдөр';
  22714. default:
  22715. return number;}
  22716. } });
  22717. return mn;
  22718. });
  22719. /***/ }),
  22720. /* 99 */
  22721. /*!***************************************************************************!*\
  22722. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/mr.js ***!
  22723. \***************************************************************************/
  22724. /*! no static exports found */
  22725. /***/ (function(module, exports, __webpack_require__) {
  22726. //! moment.js locale configuration
  22727. //! locale : Marathi [mr]
  22728. //! author : Harshad Kale : https://github.com/kalehv
  22729. //! author : Vivek Athalye : https://github.com/vnathalye
  22730. ;(function (global, factory) {
  22731. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22732. undefined;
  22733. })(this, function (moment) {'use strict';
  22734. //! moment.js locale configuration
  22735. var symbolMap = {
  22736. 1: '१',
  22737. 2: '२',
  22738. 3: '३',
  22739. 4: '४',
  22740. 5: '५',
  22741. 6: '६',
  22742. 7: '७',
  22743. 8: '८',
  22744. 9: '९',
  22745. 0: '०' },
  22746. numberMap = {
  22747. '१': '1',
  22748. '२': '2',
  22749. '३': '3',
  22750. '४': '4',
  22751. '५': '5',
  22752. '६': '6',
  22753. '७': '7',
  22754. '८': '8',
  22755. '९': '9',
  22756. '०': '0' };
  22757. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  22758. var output = '';
  22759. if (withoutSuffix) {
  22760. switch (string) {
  22761. case 's':
  22762. output = 'काही सेकंद';
  22763. break;
  22764. case 'ss':
  22765. output = '%d सेकंद';
  22766. break;
  22767. case 'm':
  22768. output = 'एक मिनिट';
  22769. break;
  22770. case 'mm':
  22771. output = '%d मिनिटे';
  22772. break;
  22773. case 'h':
  22774. output = 'एक तास';
  22775. break;
  22776. case 'hh':
  22777. output = '%d तास';
  22778. break;
  22779. case 'd':
  22780. output = 'एक दिवस';
  22781. break;
  22782. case 'dd':
  22783. output = '%d दिवस';
  22784. break;
  22785. case 'M':
  22786. output = 'एक महिना';
  22787. break;
  22788. case 'MM':
  22789. output = '%d महिने';
  22790. break;
  22791. case 'y':
  22792. output = 'एक वर्ष';
  22793. break;
  22794. case 'yy':
  22795. output = '%d वर्षे';
  22796. break;}
  22797. } else {
  22798. switch (string) {
  22799. case 's':
  22800. output = 'काही सेकंदां';
  22801. break;
  22802. case 'ss':
  22803. output = '%d सेकंदां';
  22804. break;
  22805. case 'm':
  22806. output = 'एका मिनिटा';
  22807. break;
  22808. case 'mm':
  22809. output = '%d मिनिटां';
  22810. break;
  22811. case 'h':
  22812. output = 'एका तासा';
  22813. break;
  22814. case 'hh':
  22815. output = '%d तासां';
  22816. break;
  22817. case 'd':
  22818. output = 'एका दिवसा';
  22819. break;
  22820. case 'dd':
  22821. output = '%d दिवसां';
  22822. break;
  22823. case 'M':
  22824. output = 'एका महिन्या';
  22825. break;
  22826. case 'MM':
  22827. output = '%d महिन्यां';
  22828. break;
  22829. case 'y':
  22830. output = 'एका वर्षा';
  22831. break;
  22832. case 'yy':
  22833. output = '%d वर्षां';
  22834. break;}
  22835. }
  22836. return output.replace(/%d/i, number);
  22837. }
  22838. var mr = moment.defineLocale('mr', {
  22839. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  22840. '_'),
  22841. monthsShort:
  22842. 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  22843. '_'),
  22844. monthsParseExact: true,
  22845. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  22846. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  22847. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  22848. longDateFormat: {
  22849. LT: 'A h:mm वाजता',
  22850. LTS: 'A h:mm:ss वाजता',
  22851. L: 'DD/MM/YYYY',
  22852. LL: 'D MMMM YYYY',
  22853. LLL: 'D MMMM YYYY, A h:mm वाजता',
  22854. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता' },
  22855. calendar: {
  22856. sameDay: '[आज] LT',
  22857. nextDay: '[उद्या] LT',
  22858. nextWeek: 'dddd, LT',
  22859. lastDay: '[काल] LT',
  22860. lastWeek: '[मागील] dddd, LT',
  22861. sameElse: 'L' },
  22862. relativeTime: {
  22863. future: '%sमध्ये',
  22864. past: '%sपूर्वी',
  22865. s: relativeTimeMr,
  22866. ss: relativeTimeMr,
  22867. m: relativeTimeMr,
  22868. mm: relativeTimeMr,
  22869. h: relativeTimeMr,
  22870. hh: relativeTimeMr,
  22871. d: relativeTimeMr,
  22872. dd: relativeTimeMr,
  22873. M: relativeTimeMr,
  22874. MM: relativeTimeMr,
  22875. y: relativeTimeMr,
  22876. yy: relativeTimeMr },
  22877. preparse: function preparse(string) {
  22878. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  22879. return numberMap[match];
  22880. });
  22881. },
  22882. postformat: function postformat(string) {
  22883. return string.replace(/\d/g, function (match) {
  22884. return symbolMap[match];
  22885. });
  22886. },
  22887. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  22888. meridiemHour: function meridiemHour(hour, meridiem) {
  22889. if (hour === 12) {
  22890. hour = 0;
  22891. }
  22892. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  22893. return hour;
  22894. } else if (
  22895. meridiem === 'दुपारी' ||
  22896. meridiem === 'सायंकाळी' ||
  22897. meridiem === 'रात्री')
  22898. {
  22899. return hour >= 12 ? hour : hour + 12;
  22900. }
  22901. },
  22902. meridiem: function meridiem(hour, minute, isLower) {
  22903. if (hour >= 0 && hour < 6) {
  22904. return 'पहाटे';
  22905. } else if (hour < 12) {
  22906. return 'सकाळी';
  22907. } else if (hour < 17) {
  22908. return 'दुपारी';
  22909. } else if (hour < 20) {
  22910. return 'सायंकाळी';
  22911. } else {
  22912. return 'रात्री';
  22913. }
  22914. },
  22915. week: {
  22916. dow: 0, // Sunday is the first day of the week.
  22917. doy: 6 // The week that contains Jan 6th is the first week of the year.
  22918. } });
  22919. return mr;
  22920. });
  22921. /***/ }),
  22922. /* 100 */
  22923. /*!***************************************************************************!*\
  22924. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ms.js ***!
  22925. \***************************************************************************/
  22926. /*! no static exports found */
  22927. /***/ (function(module, exports, __webpack_require__) {
  22928. //! moment.js locale configuration
  22929. //! locale : Malay [ms]
  22930. //! author : Weldan Jamili : https://github.com/weldan
  22931. ;(function (global, factory) {
  22932. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  22933. undefined;
  22934. })(this, function (moment) {'use strict';
  22935. //! moment.js locale configuration
  22936. var ms = moment.defineLocale('ms', {
  22937. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  22938. '_'),
  22939. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  22940. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  22941. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  22942. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  22943. longDateFormat: {
  22944. LT: 'HH.mm',
  22945. LTS: 'HH.mm.ss',
  22946. L: 'DD/MM/YYYY',
  22947. LL: 'D MMMM YYYY',
  22948. LLL: 'D MMMM YYYY [pukul] HH.mm',
  22949. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' },
  22950. meridiemParse: /pagi|tengahari|petang|malam/,
  22951. meridiemHour: function meridiemHour(hour, meridiem) {
  22952. if (hour === 12) {
  22953. hour = 0;
  22954. }
  22955. if (meridiem === 'pagi') {
  22956. return hour;
  22957. } else if (meridiem === 'tengahari') {
  22958. return hour >= 11 ? hour : hour + 12;
  22959. } else if (meridiem === 'petang' || meridiem === 'malam') {
  22960. return hour + 12;
  22961. }
  22962. },
  22963. meridiem: function meridiem(hours, minutes, isLower) {
  22964. if (hours < 11) {
  22965. return 'pagi';
  22966. } else if (hours < 15) {
  22967. return 'tengahari';
  22968. } else if (hours < 19) {
  22969. return 'petang';
  22970. } else {
  22971. return 'malam';
  22972. }
  22973. },
  22974. calendar: {
  22975. sameDay: '[Hari ini pukul] LT',
  22976. nextDay: '[Esok pukul] LT',
  22977. nextWeek: 'dddd [pukul] LT',
  22978. lastDay: '[Kelmarin pukul] LT',
  22979. lastWeek: 'dddd [lepas pukul] LT',
  22980. sameElse: 'L' },
  22981. relativeTime: {
  22982. future: 'dalam %s',
  22983. past: '%s yang lepas',
  22984. s: 'beberapa saat',
  22985. ss: '%d saat',
  22986. m: 'seminit',
  22987. mm: '%d minit',
  22988. h: 'sejam',
  22989. hh: '%d jam',
  22990. d: 'sehari',
  22991. dd: '%d hari',
  22992. M: 'sebulan',
  22993. MM: '%d bulan',
  22994. y: 'setahun',
  22995. yy: '%d tahun' },
  22996. week: {
  22997. dow: 1, // Monday is the first day of the week.
  22998. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22999. } });
  23000. return ms;
  23001. });
  23002. /***/ }),
  23003. /* 101 */
  23004. /*!******************************************************************************!*\
  23005. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ms-my.js ***!
  23006. \******************************************************************************/
  23007. /*! no static exports found */
  23008. /***/ (function(module, exports, __webpack_require__) {
  23009. //! moment.js locale configuration
  23010. //! locale : Malay [ms-my]
  23011. //! note : DEPRECATED, the correct one is [ms]
  23012. //! author : Weldan Jamili : https://github.com/weldan
  23013. ;(function (global, factory) {
  23014. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23015. undefined;
  23016. })(this, function (moment) {'use strict';
  23017. //! moment.js locale configuration
  23018. var msMy = moment.defineLocale('ms-my', {
  23019. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  23020. '_'),
  23021. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  23022. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  23023. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  23024. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  23025. longDateFormat: {
  23026. LT: 'HH.mm',
  23027. LTS: 'HH.mm.ss',
  23028. L: 'DD/MM/YYYY',
  23029. LL: 'D MMMM YYYY',
  23030. LLL: 'D MMMM YYYY [pukul] HH.mm',
  23031. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm' },
  23032. meridiemParse: /pagi|tengahari|petang|malam/,
  23033. meridiemHour: function meridiemHour(hour, meridiem) {
  23034. if (hour === 12) {
  23035. hour = 0;
  23036. }
  23037. if (meridiem === 'pagi') {
  23038. return hour;
  23039. } else if (meridiem === 'tengahari') {
  23040. return hour >= 11 ? hour : hour + 12;
  23041. } else if (meridiem === 'petang' || meridiem === 'malam') {
  23042. return hour + 12;
  23043. }
  23044. },
  23045. meridiem: function meridiem(hours, minutes, isLower) {
  23046. if (hours < 11) {
  23047. return 'pagi';
  23048. } else if (hours < 15) {
  23049. return 'tengahari';
  23050. } else if (hours < 19) {
  23051. return 'petang';
  23052. } else {
  23053. return 'malam';
  23054. }
  23055. },
  23056. calendar: {
  23057. sameDay: '[Hari ini pukul] LT',
  23058. nextDay: '[Esok pukul] LT',
  23059. nextWeek: 'dddd [pukul] LT',
  23060. lastDay: '[Kelmarin pukul] LT',
  23061. lastWeek: 'dddd [lepas pukul] LT',
  23062. sameElse: 'L' },
  23063. relativeTime: {
  23064. future: 'dalam %s',
  23065. past: '%s yang lepas',
  23066. s: 'beberapa saat',
  23067. ss: '%d saat',
  23068. m: 'seminit',
  23069. mm: '%d minit',
  23070. h: 'sejam',
  23071. hh: '%d jam',
  23072. d: 'sehari',
  23073. dd: '%d hari',
  23074. M: 'sebulan',
  23075. MM: '%d bulan',
  23076. y: 'setahun',
  23077. yy: '%d tahun' },
  23078. week: {
  23079. dow: 1, // Monday is the first day of the week.
  23080. doy: 7 // The week that contains Jan 7th is the first week of the year.
  23081. } });
  23082. return msMy;
  23083. });
  23084. /***/ }),
  23085. /* 102 */
  23086. /*!***************************************************************************!*\
  23087. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/mt.js ***!
  23088. \***************************************************************************/
  23089. /*! no static exports found */
  23090. /***/ (function(module, exports, __webpack_require__) {
  23091. //! moment.js locale configuration
  23092. //! locale : Maltese (Malta) [mt]
  23093. //! author : Alessandro Maruccia : https://github.com/alesma
  23094. ;(function (global, factory) {
  23095. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23096. undefined;
  23097. })(this, function (moment) {'use strict';
  23098. //! moment.js locale configuration
  23099. var mt = moment.defineLocale('mt', {
  23100. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  23101. '_'),
  23102. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  23103. weekdays:
  23104. 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  23105. '_'),
  23106. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  23107. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  23108. longDateFormat: {
  23109. LT: 'HH:mm',
  23110. LTS: 'HH:mm:ss',
  23111. L: 'DD/MM/YYYY',
  23112. LL: 'D MMMM YYYY',
  23113. LLL: 'D MMMM YYYY HH:mm',
  23114. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  23115. calendar: {
  23116. sameDay: '[Illum fil-]LT',
  23117. nextDay: '[Għada fil-]LT',
  23118. nextWeek: 'dddd [fil-]LT',
  23119. lastDay: '[Il-bieraħ fil-]LT',
  23120. lastWeek: 'dddd [li għadda] [fil-]LT',
  23121. sameElse: 'L' },
  23122. relativeTime: {
  23123. future: 'f’ %s',
  23124. past: '%s ilu',
  23125. s: 'ftit sekondi',
  23126. ss: '%d sekondi',
  23127. m: 'minuta',
  23128. mm: '%d minuti',
  23129. h: 'siegħa',
  23130. hh: '%d siegħat',
  23131. d: 'ġurnata',
  23132. dd: '%d ġranet',
  23133. M: 'xahar',
  23134. MM: '%d xhur',
  23135. y: 'sena',
  23136. yy: '%d sni' },
  23137. dayOfMonthOrdinalParse: /\d{1,2}º/,
  23138. ordinal: '%dº',
  23139. week: {
  23140. dow: 1, // Monday is the first day of the week.
  23141. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23142. } });
  23143. return mt;
  23144. });
  23145. /***/ }),
  23146. /* 103 */
  23147. /*!***************************************************************************!*\
  23148. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/my.js ***!
  23149. \***************************************************************************/
  23150. /*! no static exports found */
  23151. /***/ (function(module, exports, __webpack_require__) {
  23152. //! moment.js locale configuration
  23153. //! locale : Burmese [my]
  23154. //! author : Squar team, mysquar.com
  23155. //! author : David Rossellat : https://github.com/gholadr
  23156. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  23157. ;(function (global, factory) {
  23158. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23159. undefined;
  23160. })(this, function (moment) {'use strict';
  23161. //! moment.js locale configuration
  23162. var symbolMap = {
  23163. 1: '၁',
  23164. 2: '၂',
  23165. 3: '၃',
  23166. 4: '၄',
  23167. 5: '၅',
  23168. 6: '၆',
  23169. 7: '၇',
  23170. 8: '၈',
  23171. 9: '၉',
  23172. 0: '၀' },
  23173. numberMap = {
  23174. '၁': '1',
  23175. '၂': '2',
  23176. '၃': '3',
  23177. '၄': '4',
  23178. '၅': '5',
  23179. '၆': '6',
  23180. '၇': '7',
  23181. '၈': '8',
  23182. '၉': '9',
  23183. '၀': '0' };
  23184. var my = moment.defineLocale('my', {
  23185. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  23186. '_'),
  23187. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  23188. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  23189. '_'),
  23190. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  23191. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  23192. longDateFormat: {
  23193. LT: 'HH:mm',
  23194. LTS: 'HH:mm:ss',
  23195. L: 'DD/MM/YYYY',
  23196. LL: 'D MMMM YYYY',
  23197. LLL: 'D MMMM YYYY HH:mm',
  23198. LLLL: 'dddd D MMMM YYYY HH:mm' },
  23199. calendar: {
  23200. sameDay: '[ယနေ.] LT [မှာ]',
  23201. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  23202. nextWeek: 'dddd LT [မှာ]',
  23203. lastDay: '[မနေ.က] LT [မှာ]',
  23204. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  23205. sameElse: 'L' },
  23206. relativeTime: {
  23207. future: 'လာမည့် %s မှာ',
  23208. past: 'လွန်ခဲ့သော %s က',
  23209. s: 'စက္ကန်.အနည်းငယ်',
  23210. ss: '%d စက္ကန့်',
  23211. m: 'တစ်မိနစ်',
  23212. mm: '%d မိနစ်',
  23213. h: 'တစ်နာရီ',
  23214. hh: '%d နာရီ',
  23215. d: 'တစ်ရက်',
  23216. dd: '%d ရက်',
  23217. M: 'တစ်လ',
  23218. MM: '%d လ',
  23219. y: 'တစ်နှစ်',
  23220. yy: '%d နှစ်' },
  23221. preparse: function preparse(string) {
  23222. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  23223. return numberMap[match];
  23224. });
  23225. },
  23226. postformat: function postformat(string) {
  23227. return string.replace(/\d/g, function (match) {
  23228. return symbolMap[match];
  23229. });
  23230. },
  23231. week: {
  23232. dow: 1, // Monday is the first day of the week.
  23233. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23234. } });
  23235. return my;
  23236. });
  23237. /***/ }),
  23238. /* 104 */
  23239. /*!***************************************************************************!*\
  23240. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/nb.js ***!
  23241. \***************************************************************************/
  23242. /*! no static exports found */
  23243. /***/ (function(module, exports, __webpack_require__) {
  23244. //! moment.js locale configuration
  23245. //! locale : Norwegian Bokmål [nb]
  23246. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  23247. //! Sigurd Gartmann : https://github.com/sigurdga
  23248. //! Stephen Ramthun : https://github.com/stephenramthun
  23249. ;(function (global, factory) {
  23250. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23251. undefined;
  23252. })(this, function (moment) {'use strict';
  23253. //! moment.js locale configuration
  23254. var nb = moment.defineLocale('nb', {
  23255. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  23256. '_'),
  23257. monthsShort:
  23258. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  23259. monthsParseExact: true,
  23260. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  23261. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  23262. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  23263. weekdaysParseExact: true,
  23264. longDateFormat: {
  23265. LT: 'HH:mm',
  23266. LTS: 'HH:mm:ss',
  23267. L: 'DD.MM.YYYY',
  23268. LL: 'D. MMMM YYYY',
  23269. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  23270. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' },
  23271. calendar: {
  23272. sameDay: '[i dag kl.] LT',
  23273. nextDay: '[i morgen kl.] LT',
  23274. nextWeek: 'dddd [kl.] LT',
  23275. lastDay: '[i går kl.] LT',
  23276. lastWeek: '[forrige] dddd [kl.] LT',
  23277. sameElse: 'L' },
  23278. relativeTime: {
  23279. future: 'om %s',
  23280. past: '%s siden',
  23281. s: 'noen sekunder',
  23282. ss: '%d sekunder',
  23283. m: 'ett minutt',
  23284. mm: '%d minutter',
  23285. h: 'en time',
  23286. hh: '%d timer',
  23287. d: 'en dag',
  23288. dd: '%d dager',
  23289. w: 'en uke',
  23290. ww: '%d uker',
  23291. M: 'en måned',
  23292. MM: '%d måneder',
  23293. y: 'ett år',
  23294. yy: '%d år' },
  23295. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23296. ordinal: '%d.',
  23297. week: {
  23298. dow: 1, // Monday is the first day of the week.
  23299. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23300. } });
  23301. return nb;
  23302. });
  23303. /***/ }),
  23304. /* 105 */
  23305. /*!***************************************************************************!*\
  23306. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ne.js ***!
  23307. \***************************************************************************/
  23308. /*! no static exports found */
  23309. /***/ (function(module, exports, __webpack_require__) {
  23310. //! moment.js locale configuration
  23311. //! locale : Nepalese [ne]
  23312. //! author : suvash : https://github.com/suvash
  23313. ;(function (global, factory) {
  23314. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23315. undefined;
  23316. })(this, function (moment) {'use strict';
  23317. //! moment.js locale configuration
  23318. var symbolMap = {
  23319. 1: '१',
  23320. 2: '२',
  23321. 3: '३',
  23322. 4: '४',
  23323. 5: '५',
  23324. 6: '६',
  23325. 7: '७',
  23326. 8: '८',
  23327. 9: '९',
  23328. 0: '०' },
  23329. numberMap = {
  23330. '१': '1',
  23331. '२': '2',
  23332. '३': '3',
  23333. '४': '4',
  23334. '५': '5',
  23335. '६': '6',
  23336. '७': '7',
  23337. '८': '8',
  23338. '९': '9',
  23339. '०': '0' };
  23340. var ne = moment.defineLocale('ne', {
  23341. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  23342. '_'),
  23343. monthsShort:
  23344. 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  23345. '_'),
  23346. monthsParseExact: true,
  23347. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  23348. '_'),
  23349. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  23350. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  23351. weekdaysParseExact: true,
  23352. longDateFormat: {
  23353. LT: 'Aको h:mm बजे',
  23354. LTS: 'Aको h:mm:ss बजे',
  23355. L: 'DD/MM/YYYY',
  23356. LL: 'D MMMM YYYY',
  23357. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  23358. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे' },
  23359. preparse: function preparse(string) {
  23360. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  23361. return numberMap[match];
  23362. });
  23363. },
  23364. postformat: function postformat(string) {
  23365. return string.replace(/\d/g, function (match) {
  23366. return symbolMap[match];
  23367. });
  23368. },
  23369. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  23370. meridiemHour: function meridiemHour(hour, meridiem) {
  23371. if (hour === 12) {
  23372. hour = 0;
  23373. }
  23374. if (meridiem === 'राति') {
  23375. return hour < 4 ? hour : hour + 12;
  23376. } else if (meridiem === 'बिहान') {
  23377. return hour;
  23378. } else if (meridiem === 'दिउँसो') {
  23379. return hour >= 10 ? hour : hour + 12;
  23380. } else if (meridiem === 'साँझ') {
  23381. return hour + 12;
  23382. }
  23383. },
  23384. meridiem: function meridiem(hour, minute, isLower) {
  23385. if (hour < 3) {
  23386. return 'राति';
  23387. } else if (hour < 12) {
  23388. return 'बिहान';
  23389. } else if (hour < 16) {
  23390. return 'दिउँसो';
  23391. } else if (hour < 20) {
  23392. return 'साँझ';
  23393. } else {
  23394. return 'राति';
  23395. }
  23396. },
  23397. calendar: {
  23398. sameDay: '[आज] LT',
  23399. nextDay: '[भोलि] LT',
  23400. nextWeek: '[आउँदो] dddd[,] LT',
  23401. lastDay: '[हिजो] LT',
  23402. lastWeek: '[गएको] dddd[,] LT',
  23403. sameElse: 'L' },
  23404. relativeTime: {
  23405. future: '%sमा',
  23406. past: '%s अगाडि',
  23407. s: 'केही क्षण',
  23408. ss: '%d सेकेण्ड',
  23409. m: 'एक मिनेट',
  23410. mm: '%d मिनेट',
  23411. h: 'एक घण्टा',
  23412. hh: '%d घण्टा',
  23413. d: 'एक दिन',
  23414. dd: '%d दिन',
  23415. M: 'एक महिना',
  23416. MM: '%d महिना',
  23417. y: 'एक बर्ष',
  23418. yy: '%d बर्ष' },
  23419. week: {
  23420. dow: 0, // Sunday is the first day of the week.
  23421. doy: 6 // The week that contains Jan 6th is the first week of the year.
  23422. } });
  23423. return ne;
  23424. });
  23425. /***/ }),
  23426. /* 106 */
  23427. /*!***************************************************************************!*\
  23428. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/nl.js ***!
  23429. \***************************************************************************/
  23430. /*! no static exports found */
  23431. /***/ (function(module, exports, __webpack_require__) {
  23432. //! moment.js locale configuration
  23433. //! locale : Dutch [nl]
  23434. //! author : Joris Röling : https://github.com/jorisroling
  23435. //! author : Jacob Middag : https://github.com/middagj
  23436. ;(function (global, factory) {
  23437. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23438. undefined;
  23439. })(this, function (moment) {'use strict';
  23440. //! moment.js locale configuration
  23441. var monthsShortWithDots =
  23442. 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  23443. monthsShortWithoutDots =
  23444. 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  23445. monthsParse = [
  23446. /^jan/i,
  23447. /^feb/i,
  23448. /^maart|mrt.?$/i,
  23449. /^apr/i,
  23450. /^mei$/i,
  23451. /^jun[i.]?$/i,
  23452. /^jul[i.]?$/i,
  23453. /^aug/i,
  23454. /^sep/i,
  23455. /^okt/i,
  23456. /^nov/i,
  23457. /^dec/i],
  23458. monthsRegex =
  23459. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  23460. var nl = moment.defineLocale('nl', {
  23461. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  23462. '_'),
  23463. monthsShort: function monthsShort(m, format) {
  23464. if (!m) {
  23465. return monthsShortWithDots;
  23466. } else if (/-MMM-/.test(format)) {
  23467. return monthsShortWithoutDots[m.month()];
  23468. } else {
  23469. return monthsShortWithDots[m.month()];
  23470. }
  23471. },
  23472. monthsRegex: monthsRegex,
  23473. monthsShortRegex: monthsRegex,
  23474. monthsStrictRegex:
  23475. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  23476. monthsShortStrictRegex:
  23477. /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  23478. monthsParse: monthsParse,
  23479. longMonthsParse: monthsParse,
  23480. shortMonthsParse: monthsParse,
  23481. weekdays:
  23482. 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  23483. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  23484. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  23485. weekdaysParseExact: true,
  23486. longDateFormat: {
  23487. LT: 'HH:mm',
  23488. LTS: 'HH:mm:ss',
  23489. L: 'DD-MM-YYYY',
  23490. LL: 'D MMMM YYYY',
  23491. LLL: 'D MMMM YYYY HH:mm',
  23492. LLLL: 'dddd D MMMM YYYY HH:mm' },
  23493. calendar: {
  23494. sameDay: '[vandaag om] LT',
  23495. nextDay: '[morgen om] LT',
  23496. nextWeek: 'dddd [om] LT',
  23497. lastDay: '[gisteren om] LT',
  23498. lastWeek: '[afgelopen] dddd [om] LT',
  23499. sameElse: 'L' },
  23500. relativeTime: {
  23501. future: 'over %s',
  23502. past: '%s geleden',
  23503. s: 'een paar seconden',
  23504. ss: '%d seconden',
  23505. m: 'één minuut',
  23506. mm: '%d minuten',
  23507. h: 'één uur',
  23508. hh: '%d uur',
  23509. d: 'één dag',
  23510. dd: '%d dagen',
  23511. w: 'één week',
  23512. ww: '%d weken',
  23513. M: 'één maand',
  23514. MM: '%d maanden',
  23515. y: 'één jaar',
  23516. yy: '%d jaar' },
  23517. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  23518. ordinal: function ordinal(number) {
  23519. return (
  23520. number + (
  23521. number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'));
  23522. },
  23523. week: {
  23524. dow: 1, // Monday is the first day of the week.
  23525. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23526. } });
  23527. return nl;
  23528. });
  23529. /***/ }),
  23530. /* 107 */
  23531. /*!******************************************************************************!*\
  23532. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/nl-be.js ***!
  23533. \******************************************************************************/
  23534. /*! no static exports found */
  23535. /***/ (function(module, exports, __webpack_require__) {
  23536. //! moment.js locale configuration
  23537. //! locale : Dutch (Belgium) [nl-be]
  23538. //! author : Joris Röling : https://github.com/jorisroling
  23539. //! author : Jacob Middag : https://github.com/middagj
  23540. ;(function (global, factory) {
  23541. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23542. undefined;
  23543. })(this, function (moment) {'use strict';
  23544. //! moment.js locale configuration
  23545. var monthsShortWithDots =
  23546. 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  23547. monthsShortWithoutDots =
  23548. 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  23549. monthsParse = [
  23550. /^jan/i,
  23551. /^feb/i,
  23552. /^maart|mrt.?$/i,
  23553. /^apr/i,
  23554. /^mei$/i,
  23555. /^jun[i.]?$/i,
  23556. /^jul[i.]?$/i,
  23557. /^aug/i,
  23558. /^sep/i,
  23559. /^okt/i,
  23560. /^nov/i,
  23561. /^dec/i],
  23562. monthsRegex =
  23563. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  23564. var nlBe = moment.defineLocale('nl-be', {
  23565. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  23566. '_'),
  23567. monthsShort: function monthsShort(m, format) {
  23568. if (!m) {
  23569. return monthsShortWithDots;
  23570. } else if (/-MMM-/.test(format)) {
  23571. return monthsShortWithoutDots[m.month()];
  23572. } else {
  23573. return monthsShortWithDots[m.month()];
  23574. }
  23575. },
  23576. monthsRegex: monthsRegex,
  23577. monthsShortRegex: monthsRegex,
  23578. monthsStrictRegex:
  23579. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  23580. monthsShortStrictRegex:
  23581. /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  23582. monthsParse: monthsParse,
  23583. longMonthsParse: monthsParse,
  23584. shortMonthsParse: monthsParse,
  23585. weekdays:
  23586. 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  23587. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  23588. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  23589. weekdaysParseExact: true,
  23590. longDateFormat: {
  23591. LT: 'HH:mm',
  23592. LTS: 'HH:mm:ss',
  23593. L: 'DD/MM/YYYY',
  23594. LL: 'D MMMM YYYY',
  23595. LLL: 'D MMMM YYYY HH:mm',
  23596. LLLL: 'dddd D MMMM YYYY HH:mm' },
  23597. calendar: {
  23598. sameDay: '[vandaag om] LT',
  23599. nextDay: '[morgen om] LT',
  23600. nextWeek: 'dddd [om] LT',
  23601. lastDay: '[gisteren om] LT',
  23602. lastWeek: '[afgelopen] dddd [om] LT',
  23603. sameElse: 'L' },
  23604. relativeTime: {
  23605. future: 'over %s',
  23606. past: '%s geleden',
  23607. s: 'een paar seconden',
  23608. ss: '%d seconden',
  23609. m: 'één minuut',
  23610. mm: '%d minuten',
  23611. h: 'één uur',
  23612. hh: '%d uur',
  23613. d: 'één dag',
  23614. dd: '%d dagen',
  23615. M: 'één maand',
  23616. MM: '%d maanden',
  23617. y: 'één jaar',
  23618. yy: '%d jaar' },
  23619. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  23620. ordinal: function ordinal(number) {
  23621. return (
  23622. number + (
  23623. number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'));
  23624. },
  23625. week: {
  23626. dow: 1, // Monday is the first day of the week.
  23627. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23628. } });
  23629. return nlBe;
  23630. });
  23631. /***/ }),
  23632. /* 108 */
  23633. /*!***************************************************************************!*\
  23634. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/nn.js ***!
  23635. \***************************************************************************/
  23636. /*! no static exports found */
  23637. /***/ (function(module, exports, __webpack_require__) {
  23638. //! moment.js locale configuration
  23639. //! locale : Nynorsk [nn]
  23640. //! authors : https://github.com/mechuwind
  23641. //! Stephen Ramthun : https://github.com/stephenramthun
  23642. ;(function (global, factory) {
  23643. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23644. undefined;
  23645. })(this, function (moment) {'use strict';
  23646. //! moment.js locale configuration
  23647. var nn = moment.defineLocale('nn', {
  23648. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  23649. '_'),
  23650. monthsShort:
  23651. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  23652. monthsParseExact: true,
  23653. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  23654. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  23655. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  23656. weekdaysParseExact: true,
  23657. longDateFormat: {
  23658. LT: 'HH:mm',
  23659. LTS: 'HH:mm:ss',
  23660. L: 'DD.MM.YYYY',
  23661. LL: 'D. MMMM YYYY',
  23662. LLL: 'D. MMMM YYYY [kl.] H:mm',
  23663. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm' },
  23664. calendar: {
  23665. sameDay: '[I dag klokka] LT',
  23666. nextDay: '[I morgon klokka] LT',
  23667. nextWeek: 'dddd [klokka] LT',
  23668. lastDay: '[I går klokka] LT',
  23669. lastWeek: '[Føregåande] dddd [klokka] LT',
  23670. sameElse: 'L' },
  23671. relativeTime: {
  23672. future: 'om %s',
  23673. past: '%s sidan',
  23674. s: 'nokre sekund',
  23675. ss: '%d sekund',
  23676. m: 'eit minutt',
  23677. mm: '%d minutt',
  23678. h: 'ein time',
  23679. hh: '%d timar',
  23680. d: 'ein dag',
  23681. dd: '%d dagar',
  23682. w: 'ei veke',
  23683. ww: '%d veker',
  23684. M: 'ein månad',
  23685. MM: '%d månader',
  23686. y: 'eit år',
  23687. yy: '%d år' },
  23688. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23689. ordinal: '%d.',
  23690. week: {
  23691. dow: 1, // Monday is the first day of the week.
  23692. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23693. } });
  23694. return nn;
  23695. });
  23696. /***/ }),
  23697. /* 109 */
  23698. /*!*******************************************************************************!*\
  23699. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/oc-lnc.js ***!
  23700. \*******************************************************************************/
  23701. /*! no static exports found */
  23702. /***/ (function(module, exports, __webpack_require__) {
  23703. //! moment.js locale configuration
  23704. //! locale : Occitan, lengadocian dialecte [oc-lnc]
  23705. //! author : Quentin PAGÈS : https://github.com/Quenty31
  23706. ;(function (global, factory) {
  23707. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23708. undefined;
  23709. })(this, function (moment) {'use strict';
  23710. //! moment.js locale configuration
  23711. var ocLnc = moment.defineLocale('oc-lnc', {
  23712. months: {
  23713. standalone:
  23714. 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  23715. '_'),
  23716. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
  23717. '_'),
  23718. isFormat: /D[oD]?(\s)+MMMM/ },
  23719. monthsShort:
  23720. 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  23721. '_'),
  23722. monthsParseExact: true,
  23723. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  23724. '_'),
  23725. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  23726. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  23727. weekdaysParseExact: true,
  23728. longDateFormat: {
  23729. LT: 'H:mm',
  23730. LTS: 'H:mm:ss',
  23731. L: 'DD/MM/YYYY',
  23732. LL: 'D MMMM [de] YYYY',
  23733. ll: 'D MMM YYYY',
  23734. LLL: 'D MMMM [de] YYYY [a] H:mm',
  23735. lll: 'D MMM YYYY, H:mm',
  23736. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  23737. llll: 'ddd D MMM YYYY, H:mm' },
  23738. calendar: {
  23739. sameDay: '[uèi a] LT',
  23740. nextDay: '[deman a] LT',
  23741. nextWeek: 'dddd [a] LT',
  23742. lastDay: '[ièr a] LT',
  23743. lastWeek: 'dddd [passat a] LT',
  23744. sameElse: 'L' },
  23745. relativeTime: {
  23746. future: "d'aquí %s",
  23747. past: 'fa %s',
  23748. s: 'unas segondas',
  23749. ss: '%d segondas',
  23750. m: 'una minuta',
  23751. mm: '%d minutas',
  23752. h: 'una ora',
  23753. hh: '%d oras',
  23754. d: 'un jorn',
  23755. dd: '%d jorns',
  23756. M: 'un mes',
  23757. MM: '%d meses',
  23758. y: 'un an',
  23759. yy: '%d ans' },
  23760. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  23761. ordinal: function ordinal(number, period) {
  23762. var output =
  23763. number === 1 ?
  23764. 'r' :
  23765. number === 2 ?
  23766. 'n' :
  23767. number === 3 ?
  23768. 'r' :
  23769. number === 4 ?
  23770. 't' :
  23771. 'è';
  23772. if (period === 'w' || period === 'W') {
  23773. output = 'a';
  23774. }
  23775. return number + output;
  23776. },
  23777. week: {
  23778. dow: 1, // Monday is the first day of the week.
  23779. doy: 4 } });
  23780. return ocLnc;
  23781. });
  23782. /***/ }),
  23783. /* 110 */
  23784. /*!******************************************************************************!*\
  23785. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/pa-in.js ***!
  23786. \******************************************************************************/
  23787. /*! no static exports found */
  23788. /***/ (function(module, exports, __webpack_require__) {
  23789. //! moment.js locale configuration
  23790. //! locale : Punjabi (India) [pa-in]
  23791. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  23792. ;(function (global, factory) {
  23793. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23794. undefined;
  23795. })(this, function (moment) {'use strict';
  23796. //! moment.js locale configuration
  23797. var symbolMap = {
  23798. 1: '੧',
  23799. 2: '੨',
  23800. 3: '੩',
  23801. 4: '੪',
  23802. 5: '੫',
  23803. 6: '੬',
  23804. 7: '੭',
  23805. 8: '੮',
  23806. 9: '੯',
  23807. 0: '੦' },
  23808. numberMap = {
  23809. '੧': '1',
  23810. '੨': '2',
  23811. '੩': '3',
  23812. '੪': '4',
  23813. '੫': '5',
  23814. '੬': '6',
  23815. '੭': '7',
  23816. '੮': '8',
  23817. '੯': '9',
  23818. '੦': '0' };
  23819. var paIn = moment.defineLocale('pa-in', {
  23820. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  23821. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  23822. '_'),
  23823. monthsShort:
  23824. 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  23825. '_'),
  23826. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  23827. '_'),
  23828. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  23829. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  23830. longDateFormat: {
  23831. LT: 'A h:mm ਵਜੇ',
  23832. LTS: 'A h:mm:ss ਵਜੇ',
  23833. L: 'DD/MM/YYYY',
  23834. LL: 'D MMMM YYYY',
  23835. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  23836. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ' },
  23837. calendar: {
  23838. sameDay: '[ਅਜ] LT',
  23839. nextDay: '[ਕਲ] LT',
  23840. nextWeek: '[ਅਗਲਾ] dddd, LT',
  23841. lastDay: '[ਕਲ] LT',
  23842. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  23843. sameElse: 'L' },
  23844. relativeTime: {
  23845. future: '%s ਵਿੱਚ',
  23846. past: '%s ਪਿਛਲੇ',
  23847. s: 'ਕੁਝ ਸਕਿੰਟ',
  23848. ss: '%d ਸਕਿੰਟ',
  23849. m: 'ਇਕ ਮਿੰਟ',
  23850. mm: '%d ਮਿੰਟ',
  23851. h: 'ਇੱਕ ਘੰਟਾ',
  23852. hh: '%d ਘੰਟੇ',
  23853. d: 'ਇੱਕ ਦਿਨ',
  23854. dd: '%d ਦਿਨ',
  23855. M: 'ਇੱਕ ਮਹੀਨਾ',
  23856. MM: '%d ਮਹੀਨੇ',
  23857. y: 'ਇੱਕ ਸਾਲ',
  23858. yy: '%d ਸਾਲ' },
  23859. preparse: function preparse(string) {
  23860. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  23861. return numberMap[match];
  23862. });
  23863. },
  23864. postformat: function postformat(string) {
  23865. return string.replace(/\d/g, function (match) {
  23866. return symbolMap[match];
  23867. });
  23868. },
  23869. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  23870. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  23871. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  23872. meridiemHour: function meridiemHour(hour, meridiem) {
  23873. if (hour === 12) {
  23874. hour = 0;
  23875. }
  23876. if (meridiem === 'ਰਾਤ') {
  23877. return hour < 4 ? hour : hour + 12;
  23878. } else if (meridiem === 'ਸਵੇਰ') {
  23879. return hour;
  23880. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  23881. return hour >= 10 ? hour : hour + 12;
  23882. } else if (meridiem === 'ਸ਼ਾਮ') {
  23883. return hour + 12;
  23884. }
  23885. },
  23886. meridiem: function meridiem(hour, minute, isLower) {
  23887. if (hour < 4) {
  23888. return 'ਰਾਤ';
  23889. } else if (hour < 10) {
  23890. return 'ਸਵੇਰ';
  23891. } else if (hour < 17) {
  23892. return 'ਦੁਪਹਿਰ';
  23893. } else if (hour < 20) {
  23894. return 'ਸ਼ਾਮ';
  23895. } else {
  23896. return 'ਰਾਤ';
  23897. }
  23898. },
  23899. week: {
  23900. dow: 0, // Sunday is the first day of the week.
  23901. doy: 6 // The week that contains Jan 6th is the first week of the year.
  23902. } });
  23903. return paIn;
  23904. });
  23905. /***/ }),
  23906. /* 111 */
  23907. /*!***************************************************************************!*\
  23908. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/pl.js ***!
  23909. \***************************************************************************/
  23910. /*! no static exports found */
  23911. /***/ (function(module, exports, __webpack_require__) {
  23912. //! moment.js locale configuration
  23913. //! locale : Polish [pl]
  23914. //! author : Rafal Hirsz : https://github.com/evoL
  23915. ;(function (global, factory) {
  23916. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  23917. undefined;
  23918. })(this, function (moment) {'use strict';
  23919. //! moment.js locale configuration
  23920. var monthsNominative =
  23921. 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  23922. '_'),
  23923. monthsSubjective =
  23924. 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  23925. '_'),
  23926. monthsParse = [
  23927. /^sty/i,
  23928. /^lut/i,
  23929. /^mar/i,
  23930. /^kwi/i,
  23931. /^maj/i,
  23932. /^cze/i,
  23933. /^lip/i,
  23934. /^sie/i,
  23935. /^wrz/i,
  23936. /^paź/i,
  23937. /^lis/i,
  23938. /^gru/i];
  23939. function plural(n) {
  23940. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  23941. }
  23942. function translate(number, withoutSuffix, key) {
  23943. var result = number + ' ';
  23944. switch (key) {
  23945. case 'ss':
  23946. return result + (plural(number) ? 'sekundy' : 'sekund');
  23947. case 'm':
  23948. return withoutSuffix ? 'minuta' : 'minutę';
  23949. case 'mm':
  23950. return result + (plural(number) ? 'minuty' : 'minut');
  23951. case 'h':
  23952. return withoutSuffix ? 'godzina' : 'godzinę';
  23953. case 'hh':
  23954. return result + (plural(number) ? 'godziny' : 'godzin');
  23955. case 'ww':
  23956. return result + (plural(number) ? 'tygodnie' : 'tygodni');
  23957. case 'MM':
  23958. return result + (plural(number) ? 'miesiące' : 'miesięcy');
  23959. case 'yy':
  23960. return result + (plural(number) ? 'lata' : 'lat');}
  23961. }
  23962. var pl = moment.defineLocale('pl', {
  23963. months: function months(momentToFormat, format) {
  23964. if (!momentToFormat) {
  23965. return monthsNominative;
  23966. } else if (/D MMMM/.test(format)) {
  23967. return monthsSubjective[momentToFormat.month()];
  23968. } else {
  23969. return monthsNominative[momentToFormat.month()];
  23970. }
  23971. },
  23972. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  23973. monthsParse: monthsParse,
  23974. longMonthsParse: monthsParse,
  23975. shortMonthsParse: monthsParse,
  23976. weekdays:
  23977. 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  23978. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  23979. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  23980. longDateFormat: {
  23981. LT: 'HH:mm',
  23982. LTS: 'HH:mm:ss',
  23983. L: 'DD.MM.YYYY',
  23984. LL: 'D MMMM YYYY',
  23985. LLL: 'D MMMM YYYY HH:mm',
  23986. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  23987. calendar: {
  23988. sameDay: '[Dziś o] LT',
  23989. nextDay: '[Jutro o] LT',
  23990. nextWeek: function nextWeek() {
  23991. switch (this.day()) {
  23992. case 0:
  23993. return '[W niedzielę o] LT';
  23994. case 2:
  23995. return '[We wtorek o] LT';
  23996. case 3:
  23997. return '[W środę o] LT';
  23998. case 6:
  23999. return '[W sobotę o] LT';
  24000. default:
  24001. return '[W] dddd [o] LT';}
  24002. },
  24003. lastDay: '[Wczoraj o] LT',
  24004. lastWeek: function lastWeek() {
  24005. switch (this.day()) {
  24006. case 0:
  24007. return '[W zeszłą niedzielę o] LT';
  24008. case 3:
  24009. return '[W zeszłą środę o] LT';
  24010. case 6:
  24011. return '[W zeszłą sobotę o] LT';
  24012. default:
  24013. return '[W zeszły] dddd [o] LT';}
  24014. },
  24015. sameElse: 'L' },
  24016. relativeTime: {
  24017. future: 'za %s',
  24018. past: '%s temu',
  24019. s: 'kilka sekund',
  24020. ss: translate,
  24021. m: translate,
  24022. mm: translate,
  24023. h: translate,
  24024. hh: translate,
  24025. d: '1 dzień',
  24026. dd: '%d dni',
  24027. w: 'tydzień',
  24028. ww: translate,
  24029. M: 'miesiąc',
  24030. MM: translate,
  24031. y: 'rok',
  24032. yy: translate },
  24033. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24034. ordinal: '%d.',
  24035. week: {
  24036. dow: 1, // Monday is the first day of the week.
  24037. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24038. } });
  24039. return pl;
  24040. });
  24041. /***/ }),
  24042. /* 112 */
  24043. /*!***************************************************************************!*\
  24044. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/pt.js ***!
  24045. \***************************************************************************/
  24046. /*! no static exports found */
  24047. /***/ (function(module, exports, __webpack_require__) {
  24048. //! moment.js locale configuration
  24049. //! locale : Portuguese [pt]
  24050. //! author : Jefferson : https://github.com/jalex79
  24051. ;(function (global, factory) {
  24052. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24053. undefined;
  24054. })(this, function (moment) {'use strict';
  24055. //! moment.js locale configuration
  24056. var pt = moment.defineLocale('pt', {
  24057. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  24058. '_'),
  24059. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  24060. weekdays:
  24061. 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  24062. '_'),
  24063. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  24064. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  24065. weekdaysParseExact: true,
  24066. longDateFormat: {
  24067. LT: 'HH:mm',
  24068. LTS: 'HH:mm:ss',
  24069. L: 'DD/MM/YYYY',
  24070. LL: 'D [de] MMMM [de] YYYY',
  24071. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  24072. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm' },
  24073. calendar: {
  24074. sameDay: '[Hoje às] LT',
  24075. nextDay: '[Amanhã às] LT',
  24076. nextWeek: 'dddd [às] LT',
  24077. lastDay: '[Ontem às] LT',
  24078. lastWeek: function lastWeek() {
  24079. return this.day() === 0 || this.day() === 6 ?
  24080. '[Último] dddd [às] LT' // Saturday + Sunday
  24081. : '[Última] dddd [às] LT'; // Monday - Friday
  24082. },
  24083. sameElse: 'L' },
  24084. relativeTime: {
  24085. future: 'em %s',
  24086. past: 'há %s',
  24087. s: 'segundos',
  24088. ss: '%d segundos',
  24089. m: 'um minuto',
  24090. mm: '%d minutos',
  24091. h: 'uma hora',
  24092. hh: '%d horas',
  24093. d: 'um dia',
  24094. dd: '%d dias',
  24095. w: 'uma semana',
  24096. ww: '%d semanas',
  24097. M: 'um mês',
  24098. MM: '%d meses',
  24099. y: 'um ano',
  24100. yy: '%d anos' },
  24101. dayOfMonthOrdinalParse: /\d{1,2}º/,
  24102. ordinal: '%dº',
  24103. week: {
  24104. dow: 1, // Monday is the first day of the week.
  24105. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24106. } });
  24107. return pt;
  24108. });
  24109. /***/ }),
  24110. /* 113 */
  24111. /*!******************************************************************************!*\
  24112. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/pt-br.js ***!
  24113. \******************************************************************************/
  24114. /*! no static exports found */
  24115. /***/ (function(module, exports, __webpack_require__) {
  24116. //! moment.js locale configuration
  24117. //! locale : Portuguese (Brazil) [pt-br]
  24118. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  24119. ;(function (global, factory) {
  24120. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24121. undefined;
  24122. })(this, function (moment) {'use strict';
  24123. //! moment.js locale configuration
  24124. var ptBr = moment.defineLocale('pt-br', {
  24125. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  24126. '_'),
  24127. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  24128. weekdays:
  24129. 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  24130. '_'),
  24131. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  24132. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  24133. weekdaysParseExact: true,
  24134. longDateFormat: {
  24135. LT: 'HH:mm',
  24136. LTS: 'HH:mm:ss',
  24137. L: 'DD/MM/YYYY',
  24138. LL: 'D [de] MMMM [de] YYYY',
  24139. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  24140. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' },
  24141. calendar: {
  24142. sameDay: '[Hoje às] LT',
  24143. nextDay: '[Amanhã às] LT',
  24144. nextWeek: 'dddd [às] LT',
  24145. lastDay: '[Ontem às] LT',
  24146. lastWeek: function lastWeek() {
  24147. return this.day() === 0 || this.day() === 6 ?
  24148. '[Último] dddd [às] LT' // Saturday + Sunday
  24149. : '[Última] dddd [às] LT'; // Monday - Friday
  24150. },
  24151. sameElse: 'L' },
  24152. relativeTime: {
  24153. future: 'em %s',
  24154. past: 'há %s',
  24155. s: 'poucos segundos',
  24156. ss: '%d segundos',
  24157. m: 'um minuto',
  24158. mm: '%d minutos',
  24159. h: 'uma hora',
  24160. hh: '%d horas',
  24161. d: 'um dia',
  24162. dd: '%d dias',
  24163. M: 'um mês',
  24164. MM: '%d meses',
  24165. y: 'um ano',
  24166. yy: '%d anos' },
  24167. dayOfMonthOrdinalParse: /\d{1,2}º/,
  24168. ordinal: '%dº',
  24169. invalidDate: 'Data inválida' });
  24170. return ptBr;
  24171. });
  24172. /***/ }),
  24173. /* 114 */
  24174. /*!***************************************************************************!*\
  24175. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ro.js ***!
  24176. \***************************************************************************/
  24177. /*! no static exports found */
  24178. /***/ (function(module, exports, __webpack_require__) {
  24179. //! moment.js locale configuration
  24180. //! locale : Romanian [ro]
  24181. //! author : Vlad Gurdiga : https://github.com/gurdiga
  24182. //! author : Valentin Agachi : https://github.com/avaly
  24183. //! author : Emanuel Cepoi : https://github.com/cepem
  24184. ;(function (global, factory) {
  24185. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24186. undefined;
  24187. })(this, function (moment) {'use strict';
  24188. //! moment.js locale configuration
  24189. function relativeTimeWithPlural(number, withoutSuffix, key) {
  24190. var format = {
  24191. ss: 'secunde',
  24192. mm: 'minute',
  24193. hh: 'ore',
  24194. dd: 'zile',
  24195. ww: 'săptămâni',
  24196. MM: 'luni',
  24197. yy: 'ani' },
  24198. separator = ' ';
  24199. if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {
  24200. separator = ' de ';
  24201. }
  24202. return number + separator + format[key];
  24203. }
  24204. var ro = moment.defineLocale('ro', {
  24205. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  24206. '_'),
  24207. monthsShort:
  24208. 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  24209. '_'),
  24210. monthsParseExact: true,
  24211. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  24212. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  24213. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  24214. longDateFormat: {
  24215. LT: 'H:mm',
  24216. LTS: 'H:mm:ss',
  24217. L: 'DD.MM.YYYY',
  24218. LL: 'D MMMM YYYY',
  24219. LLL: 'D MMMM YYYY H:mm',
  24220. LLLL: 'dddd, D MMMM YYYY H:mm' },
  24221. calendar: {
  24222. sameDay: '[azi la] LT',
  24223. nextDay: '[mâine la] LT',
  24224. nextWeek: 'dddd [la] LT',
  24225. lastDay: '[ieri la] LT',
  24226. lastWeek: '[fosta] dddd [la] LT',
  24227. sameElse: 'L' },
  24228. relativeTime: {
  24229. future: 'peste %s',
  24230. past: '%s în urmă',
  24231. s: 'câteva secunde',
  24232. ss: relativeTimeWithPlural,
  24233. m: 'un minut',
  24234. mm: relativeTimeWithPlural,
  24235. h: 'o oră',
  24236. hh: relativeTimeWithPlural,
  24237. d: 'o zi',
  24238. dd: relativeTimeWithPlural,
  24239. w: 'o săptămână',
  24240. ww: relativeTimeWithPlural,
  24241. M: 'o lună',
  24242. MM: relativeTimeWithPlural,
  24243. y: 'un an',
  24244. yy: relativeTimeWithPlural },
  24245. week: {
  24246. dow: 1, // Monday is the first day of the week.
  24247. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24248. } });
  24249. return ro;
  24250. });
  24251. /***/ }),
  24252. /* 115 */
  24253. /*!***************************************************************************!*\
  24254. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ru.js ***!
  24255. \***************************************************************************/
  24256. /*! no static exports found */
  24257. /***/ (function(module, exports, __webpack_require__) {
  24258. //! moment.js locale configuration
  24259. //! locale : Russian [ru]
  24260. //! author : Viktorminator : https://github.com/Viktorminator
  24261. //! author : Menelion Elensúle : https://github.com/Oire
  24262. //! author : Коренберг Марк : https://github.com/socketpair
  24263. ;(function (global, factory) {
  24264. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24265. undefined;
  24266. })(this, function (moment) {'use strict';
  24267. //! moment.js locale configuration
  24268. function plural(word, num) {
  24269. var forms = word.split('_');
  24270. return num % 10 === 1 && num % 100 !== 11 ?
  24271. forms[0] :
  24272. num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ?
  24273. forms[1] :
  24274. forms[2];
  24275. }
  24276. function relativeTimeWithPlural(number, withoutSuffix, key) {
  24277. var format = {
  24278. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  24279. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  24280. hh: 'час_часа_часов',
  24281. dd: 'день_дня_дней',
  24282. ww: 'неделя_недели_недель',
  24283. MM: 'месяц_месяца_месяцев',
  24284. yy: 'год_года_лет' };
  24285. if (key === 'm') {
  24286. return withoutSuffix ? 'минута' : 'минуту';
  24287. } else {
  24288. return number + ' ' + plural(format[key], +number);
  24289. }
  24290. }
  24291. var monthsParse = [
  24292. /^янв/i,
  24293. /^фев/i,
  24294. /^мар/i,
  24295. /^апр/i,
  24296. /^ма[йя]/i,
  24297. /^июн/i,
  24298. /^июл/i,
  24299. /^авг/i,
  24300. /^сен/i,
  24301. /^окт/i,
  24302. /^ноя/i,
  24303. /^дек/i];
  24304. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  24305. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  24306. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  24307. var ru = moment.defineLocale('ru', {
  24308. months: {
  24309. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  24310. '_'),
  24311. standalone:
  24312. 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  24313. '_') },
  24314. monthsShort: {
  24315. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  24316. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  24317. '_'),
  24318. standalone:
  24319. 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  24320. '_') },
  24321. weekdays: {
  24322. standalone:
  24323. 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  24324. '_'),
  24325. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  24326. '_'),
  24327. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/ },
  24328. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  24329. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  24330. monthsParse: monthsParse,
  24331. longMonthsParse: monthsParse,
  24332. shortMonthsParse: monthsParse,
  24333. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  24334. monthsRegex:
  24335. /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  24336. // копия предыдущего
  24337. monthsShortRegex:
  24338. /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  24339. // полные названия с падежами
  24340. monthsStrictRegex:
  24341. /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  24342. // Выражение, которое соответствует только сокращённым формам
  24343. monthsShortStrictRegex:
  24344. /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  24345. longDateFormat: {
  24346. LT: 'H:mm',
  24347. LTS: 'H:mm:ss',
  24348. L: 'DD.MM.YYYY',
  24349. LL: 'D MMMM YYYY г.',
  24350. LLL: 'D MMMM YYYY г., H:mm',
  24351. LLLL: 'dddd, D MMMM YYYY г., H:mm' },
  24352. calendar: {
  24353. sameDay: '[Сегодня, в] LT',
  24354. nextDay: '[Завтра, в] LT',
  24355. lastDay: '[Вчера, в] LT',
  24356. nextWeek: function nextWeek(now) {
  24357. if (now.week() !== this.week()) {
  24358. switch (this.day()) {
  24359. case 0:
  24360. return '[В следующее] dddd, [в] LT';
  24361. case 1:
  24362. case 2:
  24363. case 4:
  24364. return '[В следующий] dddd, [в] LT';
  24365. case 3:
  24366. case 5:
  24367. case 6:
  24368. return '[В следующую] dddd, [в] LT';}
  24369. } else {
  24370. if (this.day() === 2) {
  24371. return '[Во] dddd, [в] LT';
  24372. } else {
  24373. return '[В] dddd, [в] LT';
  24374. }
  24375. }
  24376. },
  24377. lastWeek: function lastWeek(now) {
  24378. if (now.week() !== this.week()) {
  24379. switch (this.day()) {
  24380. case 0:
  24381. return '[В прошлое] dddd, [в] LT';
  24382. case 1:
  24383. case 2:
  24384. case 4:
  24385. return '[В прошлый] dddd, [в] LT';
  24386. case 3:
  24387. case 5:
  24388. case 6:
  24389. return '[В прошлую] dddd, [в] LT';}
  24390. } else {
  24391. if (this.day() === 2) {
  24392. return '[Во] dddd, [в] LT';
  24393. } else {
  24394. return '[В] dddd, [в] LT';
  24395. }
  24396. }
  24397. },
  24398. sameElse: 'L' },
  24399. relativeTime: {
  24400. future: 'через %s',
  24401. past: '%s назад',
  24402. s: 'несколько секунд',
  24403. ss: relativeTimeWithPlural,
  24404. m: relativeTimeWithPlural,
  24405. mm: relativeTimeWithPlural,
  24406. h: 'час',
  24407. hh: relativeTimeWithPlural,
  24408. d: 'день',
  24409. dd: relativeTimeWithPlural,
  24410. w: 'неделя',
  24411. ww: relativeTimeWithPlural,
  24412. M: 'месяц',
  24413. MM: relativeTimeWithPlural,
  24414. y: 'год',
  24415. yy: relativeTimeWithPlural },
  24416. meridiemParse: /ночи|утра|дня|вечера/i,
  24417. isPM: function isPM(input) {
  24418. return /^(дня|вечера)$/.test(input);
  24419. },
  24420. meridiem: function meridiem(hour, minute, isLower) {
  24421. if (hour < 4) {
  24422. return 'ночи';
  24423. } else if (hour < 12) {
  24424. return 'утра';
  24425. } else if (hour < 17) {
  24426. return 'дня';
  24427. } else {
  24428. return 'вечера';
  24429. }
  24430. },
  24431. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  24432. ordinal: function ordinal(number, period) {
  24433. switch (period) {
  24434. case 'M':
  24435. case 'd':
  24436. case 'DDD':
  24437. return number + '-й';
  24438. case 'D':
  24439. return number + '-го';
  24440. case 'w':
  24441. case 'W':
  24442. return number + '-я';
  24443. default:
  24444. return number;}
  24445. },
  24446. week: {
  24447. dow: 1, // Monday is the first day of the week.
  24448. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24449. } });
  24450. return ru;
  24451. });
  24452. /***/ }),
  24453. /* 116 */
  24454. /*!***************************************************************************!*\
  24455. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sd.js ***!
  24456. \***************************************************************************/
  24457. /*! no static exports found */
  24458. /***/ (function(module, exports, __webpack_require__) {
  24459. //! moment.js locale configuration
  24460. //! locale : Sindhi [sd]
  24461. //! author : Narain Sagar : https://github.com/narainsagar
  24462. ;(function (global, factory) {
  24463. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24464. undefined;
  24465. })(this, function (moment) {'use strict';
  24466. //! moment.js locale configuration
  24467. var months = [
  24468. 'جنوري',
  24469. 'فيبروري',
  24470. 'مارچ',
  24471. 'اپريل',
  24472. 'مئي',
  24473. 'جون',
  24474. 'جولاءِ',
  24475. 'آگسٽ',
  24476. 'سيپٽمبر',
  24477. 'آڪٽوبر',
  24478. 'نومبر',
  24479. 'ڊسمبر'],
  24480. days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  24481. var sd = moment.defineLocale('sd', {
  24482. months: months,
  24483. monthsShort: months,
  24484. weekdays: days,
  24485. weekdaysShort: days,
  24486. weekdaysMin: days,
  24487. longDateFormat: {
  24488. LT: 'HH:mm',
  24489. LTS: 'HH:mm:ss',
  24490. L: 'DD/MM/YYYY',
  24491. LL: 'D MMMM YYYY',
  24492. LLL: 'D MMMM YYYY HH:mm',
  24493. LLLL: 'dddd، D MMMM YYYY HH:mm' },
  24494. meridiemParse: /صبح|شام/,
  24495. isPM: function isPM(input) {
  24496. return 'شام' === input;
  24497. },
  24498. meridiem: function meridiem(hour, minute, isLower) {
  24499. if (hour < 12) {
  24500. return 'صبح';
  24501. }
  24502. return 'شام';
  24503. },
  24504. calendar: {
  24505. sameDay: '[اڄ] LT',
  24506. nextDay: '[سڀاڻي] LT',
  24507. nextWeek: 'dddd [اڳين هفتي تي] LT',
  24508. lastDay: '[ڪالهه] LT',
  24509. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  24510. sameElse: 'L' },
  24511. relativeTime: {
  24512. future: '%s پوء',
  24513. past: '%s اڳ',
  24514. s: 'چند سيڪنڊ',
  24515. ss: '%d سيڪنڊ',
  24516. m: 'هڪ منٽ',
  24517. mm: '%d منٽ',
  24518. h: 'هڪ ڪلاڪ',
  24519. hh: '%d ڪلاڪ',
  24520. d: 'هڪ ڏينهن',
  24521. dd: '%d ڏينهن',
  24522. M: 'هڪ مهينو',
  24523. MM: '%d مهينا',
  24524. y: 'هڪ سال',
  24525. yy: '%d سال' },
  24526. preparse: function preparse(string) {
  24527. return string.replace(/،/g, ',');
  24528. },
  24529. postformat: function postformat(string) {
  24530. return string.replace(/,/g, '،');
  24531. },
  24532. week: {
  24533. dow: 1, // Monday is the first day of the week.
  24534. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24535. } });
  24536. return sd;
  24537. });
  24538. /***/ }),
  24539. /* 117 */
  24540. /*!***************************************************************************!*\
  24541. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/se.js ***!
  24542. \***************************************************************************/
  24543. /*! no static exports found */
  24544. /***/ (function(module, exports, __webpack_require__) {
  24545. //! moment.js locale configuration
  24546. //! locale : Northern Sami [se]
  24547. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  24548. ;(function (global, factory) {
  24549. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24550. undefined;
  24551. })(this, function (moment) {'use strict';
  24552. //! moment.js locale configuration
  24553. var se = moment.defineLocale('se', {
  24554. months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
  24555. '_'),
  24556. monthsShort:
  24557. 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  24558. weekdays:
  24559. 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  24560. '_'),
  24561. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  24562. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  24563. longDateFormat: {
  24564. LT: 'HH:mm',
  24565. LTS: 'HH:mm:ss',
  24566. L: 'DD.MM.YYYY',
  24567. LL: 'MMMM D. [b.] YYYY',
  24568. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  24569. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm' },
  24570. calendar: {
  24571. sameDay: '[otne ti] LT',
  24572. nextDay: '[ihttin ti] LT',
  24573. nextWeek: 'dddd [ti] LT',
  24574. lastDay: '[ikte ti] LT',
  24575. lastWeek: '[ovddit] dddd [ti] LT',
  24576. sameElse: 'L' },
  24577. relativeTime: {
  24578. future: '%s geažes',
  24579. past: 'maŋit %s',
  24580. s: 'moadde sekunddat',
  24581. ss: '%d sekunddat',
  24582. m: 'okta minuhta',
  24583. mm: '%d minuhtat',
  24584. h: 'okta diimmu',
  24585. hh: '%d diimmut',
  24586. d: 'okta beaivi',
  24587. dd: '%d beaivvit',
  24588. M: 'okta mánnu',
  24589. MM: '%d mánut',
  24590. y: 'okta jahki',
  24591. yy: '%d jagit' },
  24592. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24593. ordinal: '%d.',
  24594. week: {
  24595. dow: 1, // Monday is the first day of the week.
  24596. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24597. } });
  24598. return se;
  24599. });
  24600. /***/ }),
  24601. /* 118 */
  24602. /*!***************************************************************************!*\
  24603. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/si.js ***!
  24604. \***************************************************************************/
  24605. /*! no static exports found */
  24606. /***/ (function(module, exports, __webpack_require__) {
  24607. //! moment.js locale configuration
  24608. //! locale : Sinhalese [si]
  24609. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  24610. ;(function (global, factory) {
  24611. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24612. undefined;
  24613. })(this, function (moment) {'use strict';
  24614. //! moment.js locale configuration
  24615. /*jshint -W100*/
  24616. var si = moment.defineLocale('si', {
  24617. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  24618. '_'),
  24619. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  24620. '_'),
  24621. weekdays:
  24622. 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  24623. '_'),
  24624. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  24625. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  24626. weekdaysParseExact: true,
  24627. longDateFormat: {
  24628. LT: 'a h:mm',
  24629. LTS: 'a h:mm:ss',
  24630. L: 'YYYY/MM/DD',
  24631. LL: 'YYYY MMMM D',
  24632. LLL: 'YYYY MMMM D, a h:mm',
  24633. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' },
  24634. calendar: {
  24635. sameDay: '[අද] LT[ට]',
  24636. nextDay: '[හෙට] LT[ට]',
  24637. nextWeek: 'dddd LT[ට]',
  24638. lastDay: '[ඊයේ] LT[ට]',
  24639. lastWeek: '[පසුගිය] dddd LT[ට]',
  24640. sameElse: 'L' },
  24641. relativeTime: {
  24642. future: '%sකින්',
  24643. past: '%sකට පෙර',
  24644. s: 'තත්පර කිහිපය',
  24645. ss: 'තත්පර %d',
  24646. m: 'මිනිත්තුව',
  24647. mm: 'මිනිත්තු %d',
  24648. h: 'පැය',
  24649. hh: 'පැය %d',
  24650. d: 'දිනය',
  24651. dd: 'දින %d',
  24652. M: 'මාසය',
  24653. MM: 'මාස %d',
  24654. y: 'වසර',
  24655. yy: 'වසර %d' },
  24656. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  24657. ordinal: function ordinal(number) {
  24658. return number + ' වැනි';
  24659. },
  24660. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  24661. isPM: function isPM(input) {
  24662. return input === 'ප.ව.' || input === 'පස් වරු';
  24663. },
  24664. meridiem: function meridiem(hours, minutes, isLower) {
  24665. if (hours > 11) {
  24666. return isLower ? 'ප.ව.' : 'පස් වරු';
  24667. } else {
  24668. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  24669. }
  24670. } });
  24671. return si;
  24672. });
  24673. /***/ }),
  24674. /* 119 */
  24675. /*!***************************************************************************!*\
  24676. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sk.js ***!
  24677. \***************************************************************************/
  24678. /*! no static exports found */
  24679. /***/ (function(module, exports, __webpack_require__) {
  24680. //! moment.js locale configuration
  24681. //! locale : Slovak [sk]
  24682. //! author : Martin Minka : https://github.com/k2s
  24683. //! based on work of petrbela : https://github.com/petrbela
  24684. ;(function (global, factory) {
  24685. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24686. undefined;
  24687. })(this, function (moment) {'use strict';
  24688. //! moment.js locale configuration
  24689. var months =
  24690. 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  24691. '_'),
  24692. monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  24693. function plural(n) {
  24694. return n > 1 && n < 5;
  24695. }
  24696. function translate(number, withoutSuffix, key, isFuture) {
  24697. var result = number + ' ';
  24698. switch (key) {
  24699. case 's': // a few seconds / in a few seconds / a few seconds ago
  24700. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  24701. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  24702. if (withoutSuffix || isFuture) {
  24703. return result + (plural(number) ? 'sekundy' : 'sekúnd');
  24704. } else {
  24705. return result + 'sekundami';
  24706. }
  24707. case 'm': // a minute / in a minute / a minute ago
  24708. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  24709. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  24710. if (withoutSuffix || isFuture) {
  24711. return result + (plural(number) ? 'minúty' : 'minút');
  24712. } else {
  24713. return result + 'minútami';
  24714. }
  24715. case 'h': // an hour / in an hour / an hour ago
  24716. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  24717. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  24718. if (withoutSuffix || isFuture) {
  24719. return result + (plural(number) ? 'hodiny' : 'hodín');
  24720. } else {
  24721. return result + 'hodinami';
  24722. }
  24723. case 'd': // a day / in a day / a day ago
  24724. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  24725. case 'dd': // 9 days / in 9 days / 9 days ago
  24726. if (withoutSuffix || isFuture) {
  24727. return result + (plural(number) ? 'dni' : 'dní');
  24728. } else {
  24729. return result + 'dňami';
  24730. }
  24731. case 'M': // a month / in a month / a month ago
  24732. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  24733. case 'MM': // 9 months / in 9 months / 9 months ago
  24734. if (withoutSuffix || isFuture) {
  24735. return result + (plural(number) ? 'mesiace' : 'mesiacov');
  24736. } else {
  24737. return result + 'mesiacmi';
  24738. }
  24739. case 'y': // a year / in a year / a year ago
  24740. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  24741. case 'yy': // 9 years / in 9 years / 9 years ago
  24742. if (withoutSuffix || isFuture) {
  24743. return result + (plural(number) ? 'roky' : 'rokov');
  24744. } else {
  24745. return result + 'rokmi';
  24746. }}
  24747. }
  24748. var sk = moment.defineLocale('sk', {
  24749. months: months,
  24750. monthsShort: monthsShort,
  24751. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  24752. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  24753. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  24754. longDateFormat: {
  24755. LT: 'H:mm',
  24756. LTS: 'H:mm:ss',
  24757. L: 'DD.MM.YYYY',
  24758. LL: 'D. MMMM YYYY',
  24759. LLL: 'D. MMMM YYYY H:mm',
  24760. LLLL: 'dddd D. MMMM YYYY H:mm' },
  24761. calendar: {
  24762. sameDay: '[dnes o] LT',
  24763. nextDay: '[zajtra o] LT',
  24764. nextWeek: function nextWeek() {
  24765. switch (this.day()) {
  24766. case 0:
  24767. return '[v nedeľu o] LT';
  24768. case 1:
  24769. case 2:
  24770. return '[v] dddd [o] LT';
  24771. case 3:
  24772. return '[v stredu o] LT';
  24773. case 4:
  24774. return '[vo štvrtok o] LT';
  24775. case 5:
  24776. return '[v piatok o] LT';
  24777. case 6:
  24778. return '[v sobotu o] LT';}
  24779. },
  24780. lastDay: '[včera o] LT',
  24781. lastWeek: function lastWeek() {
  24782. switch (this.day()) {
  24783. case 0:
  24784. return '[minulú nedeľu o] LT';
  24785. case 1:
  24786. case 2:
  24787. return '[minulý] dddd [o] LT';
  24788. case 3:
  24789. return '[minulú stredu o] LT';
  24790. case 4:
  24791. case 5:
  24792. return '[minulý] dddd [o] LT';
  24793. case 6:
  24794. return '[minulú sobotu o] LT';}
  24795. },
  24796. sameElse: 'L' },
  24797. relativeTime: {
  24798. future: 'za %s',
  24799. past: 'pred %s',
  24800. s: translate,
  24801. ss: translate,
  24802. m: translate,
  24803. mm: translate,
  24804. h: translate,
  24805. hh: translate,
  24806. d: translate,
  24807. dd: translate,
  24808. M: translate,
  24809. MM: translate,
  24810. y: translate,
  24811. yy: translate },
  24812. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24813. ordinal: '%d.',
  24814. week: {
  24815. dow: 1, // Monday is the first day of the week.
  24816. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24817. } });
  24818. return sk;
  24819. });
  24820. /***/ }),
  24821. /* 120 */
  24822. /*!***************************************************************************!*\
  24823. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sl.js ***!
  24824. \***************************************************************************/
  24825. /*! no static exports found */
  24826. /***/ (function(module, exports, __webpack_require__) {
  24827. //! moment.js locale configuration
  24828. //! locale : Slovenian [sl]
  24829. //! author : Robert Sedovšek : https://github.com/sedovsek
  24830. ;(function (global, factory) {
  24831. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  24832. undefined;
  24833. })(this, function (moment) {'use strict';
  24834. //! moment.js locale configuration
  24835. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  24836. var result = number + ' ';
  24837. switch (key) {
  24838. case 's':
  24839. return withoutSuffix || isFuture ?
  24840. 'nekaj sekund' :
  24841. 'nekaj sekundami';
  24842. case 'ss':
  24843. if (number === 1) {
  24844. result += withoutSuffix ? 'sekundo' : 'sekundi';
  24845. } else if (number === 2) {
  24846. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  24847. } else if (number < 5) {
  24848. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  24849. } else {
  24850. result += 'sekund';
  24851. }
  24852. return result;
  24853. case 'm':
  24854. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  24855. case 'mm':
  24856. if (number === 1) {
  24857. result += withoutSuffix ? 'minuta' : 'minuto';
  24858. } else if (number === 2) {
  24859. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  24860. } else if (number < 5) {
  24861. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  24862. } else {
  24863. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  24864. }
  24865. return result;
  24866. case 'h':
  24867. return withoutSuffix ? 'ena ura' : 'eno uro';
  24868. case 'hh':
  24869. if (number === 1) {
  24870. result += withoutSuffix ? 'ura' : 'uro';
  24871. } else if (number === 2) {
  24872. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  24873. } else if (number < 5) {
  24874. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  24875. } else {
  24876. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  24877. }
  24878. return result;
  24879. case 'd':
  24880. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  24881. case 'dd':
  24882. if (number === 1) {
  24883. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  24884. } else if (number === 2) {
  24885. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  24886. } else {
  24887. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  24888. }
  24889. return result;
  24890. case 'M':
  24891. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  24892. case 'MM':
  24893. if (number === 1) {
  24894. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  24895. } else if (number === 2) {
  24896. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  24897. } else if (number < 5) {
  24898. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  24899. } else {
  24900. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  24901. }
  24902. return result;
  24903. case 'y':
  24904. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  24905. case 'yy':
  24906. if (number === 1) {
  24907. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  24908. } else if (number === 2) {
  24909. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  24910. } else if (number < 5) {
  24911. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  24912. } else {
  24913. result += withoutSuffix || isFuture ? 'let' : 'leti';
  24914. }
  24915. return result;}
  24916. }
  24917. var sl = moment.defineLocale('sl', {
  24918. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  24919. '_'),
  24920. monthsShort:
  24921. 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  24922. '_'),
  24923. monthsParseExact: true,
  24924. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  24925. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  24926. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  24927. weekdaysParseExact: true,
  24928. longDateFormat: {
  24929. LT: 'H:mm',
  24930. LTS: 'H:mm:ss',
  24931. L: 'DD. MM. YYYY',
  24932. LL: 'D. MMMM YYYY',
  24933. LLL: 'D. MMMM YYYY H:mm',
  24934. LLLL: 'dddd, D. MMMM YYYY H:mm' },
  24935. calendar: {
  24936. sameDay: '[danes ob] LT',
  24937. nextDay: '[jutri ob] LT',
  24938. nextWeek: function nextWeek() {
  24939. switch (this.day()) {
  24940. case 0:
  24941. return '[v] [nedeljo] [ob] LT';
  24942. case 3:
  24943. return '[v] [sredo] [ob] LT';
  24944. case 6:
  24945. return '[v] [soboto] [ob] LT';
  24946. case 1:
  24947. case 2:
  24948. case 4:
  24949. case 5:
  24950. return '[v] dddd [ob] LT';}
  24951. },
  24952. lastDay: '[včeraj ob] LT',
  24953. lastWeek: function lastWeek() {
  24954. switch (this.day()) {
  24955. case 0:
  24956. return '[prejšnjo] [nedeljo] [ob] LT';
  24957. case 3:
  24958. return '[prejšnjo] [sredo] [ob] LT';
  24959. case 6:
  24960. return '[prejšnjo] [soboto] [ob] LT';
  24961. case 1:
  24962. case 2:
  24963. case 4:
  24964. case 5:
  24965. return '[prejšnji] dddd [ob] LT';}
  24966. },
  24967. sameElse: 'L' },
  24968. relativeTime: {
  24969. future: 'čez %s',
  24970. past: 'pred %s',
  24971. s: processRelativeTime,
  24972. ss: processRelativeTime,
  24973. m: processRelativeTime,
  24974. mm: processRelativeTime,
  24975. h: processRelativeTime,
  24976. hh: processRelativeTime,
  24977. d: processRelativeTime,
  24978. dd: processRelativeTime,
  24979. M: processRelativeTime,
  24980. MM: processRelativeTime,
  24981. y: processRelativeTime,
  24982. yy: processRelativeTime },
  24983. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24984. ordinal: '%d.',
  24985. week: {
  24986. dow: 1, // Monday is the first day of the week.
  24987. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24988. } });
  24989. return sl;
  24990. });
  24991. /***/ }),
  24992. /* 121 */
  24993. /*!***************************************************************************!*\
  24994. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sq.js ***!
  24995. \***************************************************************************/
  24996. /*! no static exports found */
  24997. /***/ (function(module, exports, __webpack_require__) {
  24998. //! moment.js locale configuration
  24999. //! locale : Albanian [sq]
  25000. //! author : Flakërim Ismani : https://github.com/flakerimi
  25001. //! author : Menelion Elensúle : https://github.com/Oire
  25002. //! author : Oerd Cukalla : https://github.com/oerd
  25003. ;(function (global, factory) {
  25004. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25005. undefined;
  25006. })(this, function (moment) {'use strict';
  25007. //! moment.js locale configuration
  25008. var sq = moment.defineLocale('sq', {
  25009. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  25010. '_'),
  25011. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  25012. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  25013. '_'),
  25014. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  25015. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  25016. weekdaysParseExact: true,
  25017. meridiemParse: /PD|MD/,
  25018. isPM: function isPM(input) {
  25019. return input.charAt(0) === 'M';
  25020. },
  25021. meridiem: function meridiem(hours, minutes, isLower) {
  25022. return hours < 12 ? 'PD' : 'MD';
  25023. },
  25024. longDateFormat: {
  25025. LT: 'HH:mm',
  25026. LTS: 'HH:mm:ss',
  25027. L: 'DD/MM/YYYY',
  25028. LL: 'D MMMM YYYY',
  25029. LLL: 'D MMMM YYYY HH:mm',
  25030. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  25031. calendar: {
  25032. sameDay: '[Sot në] LT',
  25033. nextDay: '[Nesër në] LT',
  25034. nextWeek: 'dddd [në] LT',
  25035. lastDay: '[Dje në] LT',
  25036. lastWeek: 'dddd [e kaluar në] LT',
  25037. sameElse: 'L' },
  25038. relativeTime: {
  25039. future: 'në %s',
  25040. past: '%s më parë',
  25041. s: 'disa sekonda',
  25042. ss: '%d sekonda',
  25043. m: 'një minutë',
  25044. mm: '%d minuta',
  25045. h: 'një orë',
  25046. hh: '%d orë',
  25047. d: 'një ditë',
  25048. dd: '%d ditë',
  25049. M: 'një muaj',
  25050. MM: '%d muaj',
  25051. y: 'një vit',
  25052. yy: '%d vite' },
  25053. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25054. ordinal: '%d.',
  25055. week: {
  25056. dow: 1, // Monday is the first day of the week.
  25057. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25058. } });
  25059. return sq;
  25060. });
  25061. /***/ }),
  25062. /* 122 */
  25063. /*!***************************************************************************!*\
  25064. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sr.js ***!
  25065. \***************************************************************************/
  25066. /*! no static exports found */
  25067. /***/ (function(module, exports, __webpack_require__) {
  25068. //! moment.js locale configuration
  25069. //! locale : Serbian [sr]
  25070. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  25071. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  25072. ;(function (global, factory) {
  25073. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25074. undefined;
  25075. })(this, function (moment) {'use strict';
  25076. //! moment.js locale configuration
  25077. var translator = {
  25078. words: {
  25079. //Different grammatical cases
  25080. ss: ['sekunda', 'sekunde', 'sekundi'],
  25081. m: ['jedan minut', 'jednog minuta'],
  25082. mm: ['minut', 'minuta', 'minuta'],
  25083. h: ['jedan sat', 'jednog sata'],
  25084. hh: ['sat', 'sata', 'sati'],
  25085. d: ['jedan dan', 'jednog dana'],
  25086. dd: ['dan', 'dana', 'dana'],
  25087. M: ['jedan mesec', 'jednog meseca'],
  25088. MM: ['mesec', 'meseca', 'meseci'],
  25089. y: ['jednu godinu', 'jedne godine'],
  25090. yy: ['godinu', 'godine', 'godina'] },
  25091. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  25092. if (
  25093. number % 10 >= 1 &&
  25094. number % 10 <= 4 && (
  25095. number % 100 < 10 || number % 100 >= 20))
  25096. {
  25097. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  25098. }
  25099. return wordKey[2];
  25100. },
  25101. translate: function translate(number, withoutSuffix, key, isFuture) {
  25102. var wordKey = translator.words[key],
  25103. word;
  25104. if (key.length === 1) {
  25105. // Nominativ
  25106. if (key === 'y' && withoutSuffix) return 'jedna godina';
  25107. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  25108. }
  25109. word = translator.correctGrammaticalCase(number, wordKey);
  25110. // Nominativ
  25111. if (key === 'yy' && withoutSuffix && word === 'godinu') {
  25112. return number + ' godina';
  25113. }
  25114. return number + ' ' + word;
  25115. } };
  25116. var sr = moment.defineLocale('sr', {
  25117. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  25118. '_'),
  25119. monthsShort:
  25120. 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  25121. monthsParseExact: true,
  25122. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  25123. '_'),
  25124. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  25125. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  25126. weekdaysParseExact: true,
  25127. longDateFormat: {
  25128. LT: 'H:mm',
  25129. LTS: 'H:mm:ss',
  25130. L: 'D. M. YYYY.',
  25131. LL: 'D. MMMM YYYY.',
  25132. LLL: 'D. MMMM YYYY. H:mm',
  25133. LLLL: 'dddd, D. MMMM YYYY. H:mm' },
  25134. calendar: {
  25135. sameDay: '[danas u] LT',
  25136. nextDay: '[sutra u] LT',
  25137. nextWeek: function nextWeek() {
  25138. switch (this.day()) {
  25139. case 0:
  25140. return '[u] [nedelju] [u] LT';
  25141. case 3:
  25142. return '[u] [sredu] [u] LT';
  25143. case 6:
  25144. return '[u] [subotu] [u] LT';
  25145. case 1:
  25146. case 2:
  25147. case 4:
  25148. case 5:
  25149. return '[u] dddd [u] LT';}
  25150. },
  25151. lastDay: '[juče u] LT',
  25152. lastWeek: function lastWeek() {
  25153. var lastWeekDays = [
  25154. '[prošle] [nedelje] [u] LT',
  25155. '[prošlog] [ponedeljka] [u] LT',
  25156. '[prošlog] [utorka] [u] LT',
  25157. '[prošle] [srede] [u] LT',
  25158. '[prošlog] [četvrtka] [u] LT',
  25159. '[prošlog] [petka] [u] LT',
  25160. '[prošle] [subote] [u] LT'];
  25161. return lastWeekDays[this.day()];
  25162. },
  25163. sameElse: 'L' },
  25164. relativeTime: {
  25165. future: 'za %s',
  25166. past: 'pre %s',
  25167. s: 'nekoliko sekundi',
  25168. ss: translator.translate,
  25169. m: translator.translate,
  25170. mm: translator.translate,
  25171. h: translator.translate,
  25172. hh: translator.translate,
  25173. d: translator.translate,
  25174. dd: translator.translate,
  25175. M: translator.translate,
  25176. MM: translator.translate,
  25177. y: translator.translate,
  25178. yy: translator.translate },
  25179. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25180. ordinal: '%d.',
  25181. week: {
  25182. dow: 1, // Monday is the first day of the week.
  25183. doy: 7 // The week that contains Jan 7th is the first week of the year.
  25184. } });
  25185. return sr;
  25186. });
  25187. /***/ }),
  25188. /* 123 */
  25189. /*!********************************************************************************!*\
  25190. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sr-cyrl.js ***!
  25191. \********************************************************************************/
  25192. /*! no static exports found */
  25193. /***/ (function(module, exports, __webpack_require__) {
  25194. //! moment.js locale configuration
  25195. //! locale : Serbian Cyrillic [sr-cyrl]
  25196. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  25197. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  25198. ;(function (global, factory) {
  25199. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25200. undefined;
  25201. })(this, function (moment) {'use strict';
  25202. //! moment.js locale configuration
  25203. var translator = {
  25204. words: {
  25205. //Different grammatical cases
  25206. ss: ['секунда', 'секунде', 'секунди'],
  25207. m: ['један минут', 'једног минута'],
  25208. mm: ['минут', 'минута', 'минута'],
  25209. h: ['један сат', 'једног сата'],
  25210. hh: ['сат', 'сата', 'сати'],
  25211. d: ['један дан', 'једног дана'],
  25212. dd: ['дан', 'дана', 'дана'],
  25213. M: ['један месец', 'једног месеца'],
  25214. MM: ['месец', 'месеца', 'месеци'],
  25215. y: ['једну годину', 'једне године'],
  25216. yy: ['годину', 'године', 'година'] },
  25217. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  25218. if (
  25219. number % 10 >= 1 &&
  25220. number % 10 <= 4 && (
  25221. number % 100 < 10 || number % 100 >= 20))
  25222. {
  25223. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  25224. }
  25225. return wordKey[2];
  25226. },
  25227. translate: function translate(number, withoutSuffix, key, isFuture) {
  25228. var wordKey = translator.words[key],
  25229. word;
  25230. if (key.length === 1) {
  25231. // Nominativ
  25232. if (key === 'y' && withoutSuffix) return 'једна година';
  25233. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  25234. }
  25235. word = translator.correctGrammaticalCase(number, wordKey);
  25236. // Nominativ
  25237. if (key === 'yy' && withoutSuffix && word === 'годину') {
  25238. return number + ' година';
  25239. }
  25240. return number + ' ' + word;
  25241. } };
  25242. var srCyrl = moment.defineLocale('sr-cyrl', {
  25243. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  25244. '_'),
  25245. monthsShort:
  25246. 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  25247. monthsParseExact: true,
  25248. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  25249. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  25250. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  25251. weekdaysParseExact: true,
  25252. longDateFormat: {
  25253. LT: 'H:mm',
  25254. LTS: 'H:mm:ss',
  25255. L: 'D. M. YYYY.',
  25256. LL: 'D. MMMM YYYY.',
  25257. LLL: 'D. MMMM YYYY. H:mm',
  25258. LLLL: 'dddd, D. MMMM YYYY. H:mm' },
  25259. calendar: {
  25260. sameDay: '[данас у] LT',
  25261. nextDay: '[сутра у] LT',
  25262. nextWeek: function nextWeek() {
  25263. switch (this.day()) {
  25264. case 0:
  25265. return '[у] [недељу] [у] LT';
  25266. case 3:
  25267. return '[у] [среду] [у] LT';
  25268. case 6:
  25269. return '[у] [суботу] [у] LT';
  25270. case 1:
  25271. case 2:
  25272. case 4:
  25273. case 5:
  25274. return '[у] dddd [у] LT';}
  25275. },
  25276. lastDay: '[јуче у] LT',
  25277. lastWeek: function lastWeek() {
  25278. var lastWeekDays = [
  25279. '[прошле] [недеље] [у] LT',
  25280. '[прошлог] [понедељка] [у] LT',
  25281. '[прошлог] [уторка] [у] LT',
  25282. '[прошле] [среде] [у] LT',
  25283. '[прошлог] [четвртка] [у] LT',
  25284. '[прошлог] [петка] [у] LT',
  25285. '[прошле] [суботе] [у] LT'];
  25286. return lastWeekDays[this.day()];
  25287. },
  25288. sameElse: 'L' },
  25289. relativeTime: {
  25290. future: 'за %s',
  25291. past: 'пре %s',
  25292. s: 'неколико секунди',
  25293. ss: translator.translate,
  25294. m: translator.translate,
  25295. mm: translator.translate,
  25296. h: translator.translate,
  25297. hh: translator.translate,
  25298. d: translator.translate,
  25299. dd: translator.translate,
  25300. M: translator.translate,
  25301. MM: translator.translate,
  25302. y: translator.translate,
  25303. yy: translator.translate },
  25304. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25305. ordinal: '%d.',
  25306. week: {
  25307. dow: 1, // Monday is the first day of the week.
  25308. doy: 7 // The week that contains Jan 1st is the first week of the year.
  25309. } });
  25310. return srCyrl;
  25311. });
  25312. /***/ }),
  25313. /* 124 */
  25314. /*!***************************************************************************!*\
  25315. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ss.js ***!
  25316. \***************************************************************************/
  25317. /*! no static exports found */
  25318. /***/ (function(module, exports, __webpack_require__) {
  25319. //! moment.js locale configuration
  25320. //! locale : siSwati [ss]
  25321. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  25322. ;(function (global, factory) {
  25323. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25324. undefined;
  25325. })(this, function (moment) {'use strict';
  25326. //! moment.js locale configuration
  25327. var ss = moment.defineLocale('ss', {
  25328. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  25329. '_'),
  25330. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  25331. weekdays:
  25332. 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  25333. '_'),
  25334. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  25335. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  25336. weekdaysParseExact: true,
  25337. longDateFormat: {
  25338. LT: 'h:mm A',
  25339. LTS: 'h:mm:ss A',
  25340. L: 'DD/MM/YYYY',
  25341. LL: 'D MMMM YYYY',
  25342. LLL: 'D MMMM YYYY h:mm A',
  25343. LLLL: 'dddd, D MMMM YYYY h:mm A' },
  25344. calendar: {
  25345. sameDay: '[Namuhla nga] LT',
  25346. nextDay: '[Kusasa nga] LT',
  25347. nextWeek: 'dddd [nga] LT',
  25348. lastDay: '[Itolo nga] LT',
  25349. lastWeek: 'dddd [leliphelile] [nga] LT',
  25350. sameElse: 'L' },
  25351. relativeTime: {
  25352. future: 'nga %s',
  25353. past: 'wenteka nga %s',
  25354. s: 'emizuzwana lomcane',
  25355. ss: '%d mzuzwana',
  25356. m: 'umzuzu',
  25357. mm: '%d emizuzu',
  25358. h: 'lihora',
  25359. hh: '%d emahora',
  25360. d: 'lilanga',
  25361. dd: '%d emalanga',
  25362. M: 'inyanga',
  25363. MM: '%d tinyanga',
  25364. y: 'umnyaka',
  25365. yy: '%d iminyaka' },
  25366. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  25367. meridiem: function meridiem(hours, minutes, isLower) {
  25368. if (hours < 11) {
  25369. return 'ekuseni';
  25370. } else if (hours < 15) {
  25371. return 'emini';
  25372. } else if (hours < 19) {
  25373. return 'entsambama';
  25374. } else {
  25375. return 'ebusuku';
  25376. }
  25377. },
  25378. meridiemHour: function meridiemHour(hour, meridiem) {
  25379. if (hour === 12) {
  25380. hour = 0;
  25381. }
  25382. if (meridiem === 'ekuseni') {
  25383. return hour;
  25384. } else if (meridiem === 'emini') {
  25385. return hour >= 11 ? hour : hour + 12;
  25386. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  25387. if (hour === 0) {
  25388. return 0;
  25389. }
  25390. return hour + 12;
  25391. }
  25392. },
  25393. dayOfMonthOrdinalParse: /\d{1,2}/,
  25394. ordinal: '%d',
  25395. week: {
  25396. dow: 1, // Monday is the first day of the week.
  25397. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25398. } });
  25399. return ss;
  25400. });
  25401. /***/ }),
  25402. /* 125 */
  25403. /*!***************************************************************************!*\
  25404. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sv.js ***!
  25405. \***************************************************************************/
  25406. /*! no static exports found */
  25407. /***/ (function(module, exports, __webpack_require__) {
  25408. //! moment.js locale configuration
  25409. //! locale : Swedish [sv]
  25410. //! author : Jens Alm : https://github.com/ulmus
  25411. ;(function (global, factory) {
  25412. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25413. undefined;
  25414. })(this, function (moment) {'use strict';
  25415. //! moment.js locale configuration
  25416. var sv = moment.defineLocale('sv', {
  25417. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  25418. '_'),
  25419. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  25420. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  25421. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  25422. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  25423. longDateFormat: {
  25424. LT: 'HH:mm',
  25425. LTS: 'HH:mm:ss',
  25426. L: 'YYYY-MM-DD',
  25427. LL: 'D MMMM YYYY',
  25428. LLL: 'D MMMM YYYY [kl.] HH:mm',
  25429. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  25430. lll: 'D MMM YYYY HH:mm',
  25431. llll: 'ddd D MMM YYYY HH:mm' },
  25432. calendar: {
  25433. sameDay: '[Idag] LT',
  25434. nextDay: '[Imorgon] LT',
  25435. lastDay: '[Igår] LT',
  25436. nextWeek: '[På] dddd LT',
  25437. lastWeek: '[I] dddd[s] LT',
  25438. sameElse: 'L' },
  25439. relativeTime: {
  25440. future: 'om %s',
  25441. past: 'för %s sedan',
  25442. s: 'några sekunder',
  25443. ss: '%d sekunder',
  25444. m: 'en minut',
  25445. mm: '%d minuter',
  25446. h: 'en timme',
  25447. hh: '%d timmar',
  25448. d: 'en dag',
  25449. dd: '%d dagar',
  25450. M: 'en månad',
  25451. MM: '%d månader',
  25452. y: 'ett år',
  25453. yy: '%d år' },
  25454. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  25455. ordinal: function ordinal(number) {
  25456. var b = number % 10,
  25457. output =
  25458. ~~(number % 100 / 10) === 1 ?
  25459. ':e' :
  25460. b === 1 ?
  25461. ':a' :
  25462. b === 2 ?
  25463. ':a' :
  25464. b === 3 ?
  25465. ':e' :
  25466. ':e';
  25467. return number + output;
  25468. },
  25469. week: {
  25470. dow: 1, // Monday is the first day of the week.
  25471. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25472. } });
  25473. return sv;
  25474. });
  25475. /***/ }),
  25476. /* 126 */
  25477. /*!***************************************************************************!*\
  25478. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/sw.js ***!
  25479. \***************************************************************************/
  25480. /*! no static exports found */
  25481. /***/ (function(module, exports, __webpack_require__) {
  25482. //! moment.js locale configuration
  25483. //! locale : Swahili [sw]
  25484. //! author : Fahad Kassim : https://github.com/fadsel
  25485. ;(function (global, factory) {
  25486. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25487. undefined;
  25488. })(this, function (moment) {'use strict';
  25489. //! moment.js locale configuration
  25490. var sw = moment.defineLocale('sw', {
  25491. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  25492. '_'),
  25493. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  25494. weekdays:
  25495. 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  25496. '_'),
  25497. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  25498. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  25499. weekdaysParseExact: true,
  25500. longDateFormat: {
  25501. LT: 'hh:mm A',
  25502. LTS: 'HH:mm:ss',
  25503. L: 'DD.MM.YYYY',
  25504. LL: 'D MMMM YYYY',
  25505. LLL: 'D MMMM YYYY HH:mm',
  25506. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  25507. calendar: {
  25508. sameDay: '[leo saa] LT',
  25509. nextDay: '[kesho saa] LT',
  25510. nextWeek: '[wiki ijayo] dddd [saat] LT',
  25511. lastDay: '[jana] LT',
  25512. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  25513. sameElse: 'L' },
  25514. relativeTime: {
  25515. future: '%s baadaye',
  25516. past: 'tokea %s',
  25517. s: 'hivi punde',
  25518. ss: 'sekunde %d',
  25519. m: 'dakika moja',
  25520. mm: 'dakika %d',
  25521. h: 'saa limoja',
  25522. hh: 'masaa %d',
  25523. d: 'siku moja',
  25524. dd: 'siku %d',
  25525. M: 'mwezi mmoja',
  25526. MM: 'miezi %d',
  25527. y: 'mwaka mmoja',
  25528. yy: 'miaka %d' },
  25529. week: {
  25530. dow: 1, // Monday is the first day of the week.
  25531. doy: 7 // The week that contains Jan 7th is the first week of the year.
  25532. } });
  25533. return sw;
  25534. });
  25535. /***/ }),
  25536. /* 127 */
  25537. /*!***************************************************************************!*\
  25538. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ta.js ***!
  25539. \***************************************************************************/
  25540. /*! no static exports found */
  25541. /***/ (function(module, exports, __webpack_require__) {
  25542. //! moment.js locale configuration
  25543. //! locale : Tamil [ta]
  25544. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  25545. ;(function (global, factory) {
  25546. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25547. undefined;
  25548. })(this, function (moment) {'use strict';
  25549. //! moment.js locale configuration
  25550. var symbolMap = {
  25551. 1: '௧',
  25552. 2: '௨',
  25553. 3: '௩',
  25554. 4: '௪',
  25555. 5: '௫',
  25556. 6: '௬',
  25557. 7: '௭',
  25558. 8: '௮',
  25559. 9: '௯',
  25560. 0: '௦' },
  25561. numberMap = {
  25562. '௧': '1',
  25563. '௨': '2',
  25564. '௩': '3',
  25565. '௪': '4',
  25566. '௫': '5',
  25567. '௬': '6',
  25568. '௭': '7',
  25569. '௮': '8',
  25570. '௯': '9',
  25571. '௦': '0' };
  25572. var ta = moment.defineLocale('ta', {
  25573. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  25574. '_'),
  25575. monthsShort:
  25576. 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  25577. '_'),
  25578. weekdays:
  25579. 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  25580. '_'),
  25581. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  25582. '_'),
  25583. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  25584. longDateFormat: {
  25585. LT: 'HH:mm',
  25586. LTS: 'HH:mm:ss',
  25587. L: 'DD/MM/YYYY',
  25588. LL: 'D MMMM YYYY',
  25589. LLL: 'D MMMM YYYY, HH:mm',
  25590. LLLL: 'dddd, D MMMM YYYY, HH:mm' },
  25591. calendar: {
  25592. sameDay: '[இன்று] LT',
  25593. nextDay: '[நாளை] LT',
  25594. nextWeek: 'dddd, LT',
  25595. lastDay: '[நேற்று] LT',
  25596. lastWeek: '[கடந்த வாரம்] dddd, LT',
  25597. sameElse: 'L' },
  25598. relativeTime: {
  25599. future: '%s இல்',
  25600. past: '%s முன்',
  25601. s: 'ஒரு சில விநாடிகள்',
  25602. ss: '%d விநாடிகள்',
  25603. m: 'ஒரு நிமிடம்',
  25604. mm: '%d நிமிடங்கள்',
  25605. h: 'ஒரு மணி நேரம்',
  25606. hh: '%d மணி நேரம்',
  25607. d: 'ஒரு நாள்',
  25608. dd: '%d நாட்கள்',
  25609. M: 'ஒரு மாதம்',
  25610. MM: '%d மாதங்கள்',
  25611. y: 'ஒரு வருடம்',
  25612. yy: '%d ஆண்டுகள்' },
  25613. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  25614. ordinal: function ordinal(number) {
  25615. return number + 'வது';
  25616. },
  25617. preparse: function preparse(string) {
  25618. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  25619. return numberMap[match];
  25620. });
  25621. },
  25622. postformat: function postformat(string) {
  25623. return string.replace(/\d/g, function (match) {
  25624. return symbolMap[match];
  25625. });
  25626. },
  25627. // refer http://ta.wikipedia.org/s/1er1
  25628. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  25629. meridiem: function meridiem(hour, minute, isLower) {
  25630. if (hour < 2) {
  25631. return ' யாமம்';
  25632. } else if (hour < 6) {
  25633. return ' வைகறை'; // வைகறை
  25634. } else if (hour < 10) {
  25635. return ' காலை'; // காலை
  25636. } else if (hour < 14) {
  25637. return ' நண்பகல்'; // நண்பகல்
  25638. } else if (hour < 18) {
  25639. return ' எற்பாடு'; // எற்பாடு
  25640. } else if (hour < 22) {
  25641. return ' மாலை'; // மாலை
  25642. } else {
  25643. return ' யாமம்';
  25644. }
  25645. },
  25646. meridiemHour: function meridiemHour(hour, meridiem) {
  25647. if (hour === 12) {
  25648. hour = 0;
  25649. }
  25650. if (meridiem === 'யாமம்') {
  25651. return hour < 2 ? hour : hour + 12;
  25652. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  25653. return hour;
  25654. } else if (meridiem === 'நண்பகல்') {
  25655. return hour >= 10 ? hour : hour + 12;
  25656. } else {
  25657. return hour + 12;
  25658. }
  25659. },
  25660. week: {
  25661. dow: 0, // Sunday is the first day of the week.
  25662. doy: 6 // The week that contains Jan 6th is the first week of the year.
  25663. } });
  25664. return ta;
  25665. });
  25666. /***/ }),
  25667. /* 128 */
  25668. /*!***************************************************************************!*\
  25669. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/te.js ***!
  25670. \***************************************************************************/
  25671. /*! no static exports found */
  25672. /***/ (function(module, exports, __webpack_require__) {
  25673. //! moment.js locale configuration
  25674. //! locale : Telugu [te]
  25675. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  25676. ;(function (global, factory) {
  25677. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25678. undefined;
  25679. })(this, function (moment) {'use strict';
  25680. //! moment.js locale configuration
  25681. var te = moment.defineLocale('te', {
  25682. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  25683. '_'),
  25684. monthsShort:
  25685. 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  25686. '_'),
  25687. monthsParseExact: true,
  25688. weekdays:
  25689. 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  25690. '_'),
  25691. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  25692. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  25693. longDateFormat: {
  25694. LT: 'A h:mm',
  25695. LTS: 'A h:mm:ss',
  25696. L: 'DD/MM/YYYY',
  25697. LL: 'D MMMM YYYY',
  25698. LLL: 'D MMMM YYYY, A h:mm',
  25699. LLLL: 'dddd, D MMMM YYYY, A h:mm' },
  25700. calendar: {
  25701. sameDay: '[నేడు] LT',
  25702. nextDay: '[రేపు] LT',
  25703. nextWeek: 'dddd, LT',
  25704. lastDay: '[నిన్న] LT',
  25705. lastWeek: '[గత] dddd, LT',
  25706. sameElse: 'L' },
  25707. relativeTime: {
  25708. future: '%s లో',
  25709. past: '%s క్రితం',
  25710. s: 'కొన్ని క్షణాలు',
  25711. ss: '%d సెకన్లు',
  25712. m: 'ఒక నిమిషం',
  25713. mm: '%d నిమిషాలు',
  25714. h: 'ఒక గంట',
  25715. hh: '%d గంటలు',
  25716. d: 'ఒక రోజు',
  25717. dd: '%d రోజులు',
  25718. M: 'ఒక నెల',
  25719. MM: '%d నెలలు',
  25720. y: 'ఒక సంవత్సరం',
  25721. yy: '%d సంవత్సరాలు' },
  25722. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  25723. ordinal: '%dవ',
  25724. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  25725. meridiemHour: function meridiemHour(hour, meridiem) {
  25726. if (hour === 12) {
  25727. hour = 0;
  25728. }
  25729. if (meridiem === 'రాత్రి') {
  25730. return hour < 4 ? hour : hour + 12;
  25731. } else if (meridiem === 'ఉదయం') {
  25732. return hour;
  25733. } else if (meridiem === 'మధ్యాహ్నం') {
  25734. return hour >= 10 ? hour : hour + 12;
  25735. } else if (meridiem === 'సాయంత్రం') {
  25736. return hour + 12;
  25737. }
  25738. },
  25739. meridiem: function meridiem(hour, minute, isLower) {
  25740. if (hour < 4) {
  25741. return 'రాత్రి';
  25742. } else if (hour < 10) {
  25743. return 'ఉదయం';
  25744. } else if (hour < 17) {
  25745. return 'మధ్యాహ్నం';
  25746. } else if (hour < 20) {
  25747. return 'సాయంత్రం';
  25748. } else {
  25749. return 'రాత్రి';
  25750. }
  25751. },
  25752. week: {
  25753. dow: 0, // Sunday is the first day of the week.
  25754. doy: 6 // The week that contains Jan 6th is the first week of the year.
  25755. } });
  25756. return te;
  25757. });
  25758. /***/ }),
  25759. /* 129 */
  25760. /*!****************************************************************************!*\
  25761. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tet.js ***!
  25762. \****************************************************************************/
  25763. /*! no static exports found */
  25764. /***/ (function(module, exports, __webpack_require__) {
  25765. //! moment.js locale configuration
  25766. //! locale : Tetun Dili (East Timor) [tet]
  25767. //! author : Joshua Brooks : https://github.com/joshbrooks
  25768. //! author : Onorio De J. Afonso : https://github.com/marobo
  25769. //! author : Sonia Simoes : https://github.com/soniasimoes
  25770. ;(function (global, factory) {
  25771. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25772. undefined;
  25773. })(this, function (moment) {'use strict';
  25774. //! moment.js locale configuration
  25775. var tet = moment.defineLocale('tet', {
  25776. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  25777. '_'),
  25778. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  25779. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  25780. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  25781. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  25782. longDateFormat: {
  25783. LT: 'HH:mm',
  25784. LTS: 'HH:mm:ss',
  25785. L: 'DD/MM/YYYY',
  25786. LL: 'D MMMM YYYY',
  25787. LLL: 'D MMMM YYYY HH:mm',
  25788. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  25789. calendar: {
  25790. sameDay: '[Ohin iha] LT',
  25791. nextDay: '[Aban iha] LT',
  25792. nextWeek: 'dddd [iha] LT',
  25793. lastDay: '[Horiseik iha] LT',
  25794. lastWeek: 'dddd [semana kotuk] [iha] LT',
  25795. sameElse: 'L' },
  25796. relativeTime: {
  25797. future: 'iha %s',
  25798. past: '%s liuba',
  25799. s: 'segundu balun',
  25800. ss: 'segundu %d',
  25801. m: 'minutu ida',
  25802. mm: 'minutu %d',
  25803. h: 'oras ida',
  25804. hh: 'oras %d',
  25805. d: 'loron ida',
  25806. dd: 'loron %d',
  25807. M: 'fulan ida',
  25808. MM: 'fulan %d',
  25809. y: 'tinan ida',
  25810. yy: 'tinan %d' },
  25811. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  25812. ordinal: function ordinal(number) {
  25813. var b = number % 10,
  25814. output =
  25815. ~~(number % 100 / 10) === 1 ?
  25816. 'th' :
  25817. b === 1 ?
  25818. 'st' :
  25819. b === 2 ?
  25820. 'nd' :
  25821. b === 3 ?
  25822. 'rd' :
  25823. 'th';
  25824. return number + output;
  25825. },
  25826. week: {
  25827. dow: 1, // Monday is the first day of the week.
  25828. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25829. } });
  25830. return tet;
  25831. });
  25832. /***/ }),
  25833. /* 130 */
  25834. /*!***************************************************************************!*\
  25835. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tg.js ***!
  25836. \***************************************************************************/
  25837. /*! no static exports found */
  25838. /***/ (function(module, exports, __webpack_require__) {
  25839. //! moment.js locale configuration
  25840. //! locale : Tajik [tg]
  25841. //! author : Orif N. Jr. : https://github.com/orif-jr
  25842. ;(function (global, factory) {
  25843. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25844. undefined;
  25845. })(this, function (moment) {'use strict';
  25846. //! moment.js locale configuration
  25847. var suffixes = {
  25848. 0: '-ум',
  25849. 1: '-ум',
  25850. 2: '-юм',
  25851. 3: '-юм',
  25852. 4: '-ум',
  25853. 5: '-ум',
  25854. 6: '-ум',
  25855. 7: '-ум',
  25856. 8: '-ум',
  25857. 9: '-ум',
  25858. 10: '-ум',
  25859. 12: '-ум',
  25860. 13: '-ум',
  25861. 20: '-ум',
  25862. 30: '-юм',
  25863. 40: '-ум',
  25864. 50: '-ум',
  25865. 60: '-ум',
  25866. 70: '-ум',
  25867. 80: '-ум',
  25868. 90: '-ум',
  25869. 100: '-ум' };
  25870. var tg = moment.defineLocale('tg', {
  25871. months: {
  25872. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
  25873. '_'),
  25874. standalone:
  25875. 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  25876. '_') },
  25877. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  25878. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  25879. '_'),
  25880. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  25881. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  25882. longDateFormat: {
  25883. LT: 'HH:mm',
  25884. LTS: 'HH:mm:ss',
  25885. L: 'DD.MM.YYYY',
  25886. LL: 'D MMMM YYYY',
  25887. LLL: 'D MMMM YYYY HH:mm',
  25888. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  25889. calendar: {
  25890. sameDay: '[Имрӯз соати] LT',
  25891. nextDay: '[Фардо соати] LT',
  25892. lastDay: '[Дирӯз соати] LT',
  25893. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  25894. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  25895. sameElse: 'L' },
  25896. relativeTime: {
  25897. future: 'баъди %s',
  25898. past: '%s пеш',
  25899. s: 'якчанд сония',
  25900. m: 'як дақиқа',
  25901. mm: '%d дақиқа',
  25902. h: 'як соат',
  25903. hh: '%d соат',
  25904. d: 'як рӯз',
  25905. dd: '%d рӯз',
  25906. M: 'як моҳ',
  25907. MM: '%d моҳ',
  25908. y: 'як сол',
  25909. yy: '%d сол' },
  25910. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  25911. meridiemHour: function meridiemHour(hour, meridiem) {
  25912. if (hour === 12) {
  25913. hour = 0;
  25914. }
  25915. if (meridiem === 'шаб') {
  25916. return hour < 4 ? hour : hour + 12;
  25917. } else if (meridiem === 'субҳ') {
  25918. return hour;
  25919. } else if (meridiem === 'рӯз') {
  25920. return hour >= 11 ? hour : hour + 12;
  25921. } else if (meridiem === 'бегоҳ') {
  25922. return hour + 12;
  25923. }
  25924. },
  25925. meridiem: function meridiem(hour, minute, isLower) {
  25926. if (hour < 4) {
  25927. return 'шаб';
  25928. } else if (hour < 11) {
  25929. return 'субҳ';
  25930. } else if (hour < 16) {
  25931. return 'рӯз';
  25932. } else if (hour < 19) {
  25933. return 'бегоҳ';
  25934. } else {
  25935. return 'шаб';
  25936. }
  25937. },
  25938. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  25939. ordinal: function ordinal(number) {
  25940. var a = number % 10,
  25941. b = number >= 100 ? 100 : null;
  25942. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  25943. },
  25944. week: {
  25945. dow: 1, // Monday is the first day of the week.
  25946. doy: 7 // The week that contains Jan 1th is the first week of the year.
  25947. } });
  25948. return tg;
  25949. });
  25950. /***/ }),
  25951. /* 131 */
  25952. /*!***************************************************************************!*\
  25953. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/th.js ***!
  25954. \***************************************************************************/
  25955. /*! no static exports found */
  25956. /***/ (function(module, exports, __webpack_require__) {
  25957. //! moment.js locale configuration
  25958. //! locale : Thai [th]
  25959. //! author : Kridsada Thanabulpong : https://github.com/sirn
  25960. ;(function (global, factory) {
  25961. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  25962. undefined;
  25963. })(this, function (moment) {'use strict';
  25964. //! moment.js locale configuration
  25965. var th = moment.defineLocale('th', {
  25966. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  25967. '_'),
  25968. monthsShort:
  25969. 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  25970. '_'),
  25971. monthsParseExact: true,
  25972. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  25973. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  25974. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  25975. weekdaysParseExact: true,
  25976. longDateFormat: {
  25977. LT: 'H:mm',
  25978. LTS: 'H:mm:ss',
  25979. L: 'DD/MM/YYYY',
  25980. LL: 'D MMMM YYYY',
  25981. LLL: 'D MMMM YYYY เวลา H:mm',
  25982. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm' },
  25983. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  25984. isPM: function isPM(input) {
  25985. return input === 'หลังเที่ยง';
  25986. },
  25987. meridiem: function meridiem(hour, minute, isLower) {
  25988. if (hour < 12) {
  25989. return 'ก่อนเที่ยง';
  25990. } else {
  25991. return 'หลังเที่ยง';
  25992. }
  25993. },
  25994. calendar: {
  25995. sameDay: '[วันนี้ เวลา] LT',
  25996. nextDay: '[พรุ่งนี้ เวลา] LT',
  25997. nextWeek: 'dddd[หน้า เวลา] LT',
  25998. lastDay: '[เมื่อวานนี้ เวลา] LT',
  25999. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  26000. sameElse: 'L' },
  26001. relativeTime: {
  26002. future: 'อีก %s',
  26003. past: '%sที่แล้ว',
  26004. s: 'ไม่กี่วินาที',
  26005. ss: '%d วินาที',
  26006. m: '1 นาที',
  26007. mm: '%d นาที',
  26008. h: '1 ชั่วโมง',
  26009. hh: '%d ชั่วโมง',
  26010. d: '1 วัน',
  26011. dd: '%d วัน',
  26012. w: '1 สัปดาห์',
  26013. ww: '%d สัปดาห์',
  26014. M: '1 เดือน',
  26015. MM: '%d เดือน',
  26016. y: '1 ปี',
  26017. yy: '%d ปี' } });
  26018. return th;
  26019. });
  26020. /***/ }),
  26021. /* 132 */
  26022. /*!***************************************************************************!*\
  26023. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tk.js ***!
  26024. \***************************************************************************/
  26025. /*! no static exports found */
  26026. /***/ (function(module, exports, __webpack_require__) {
  26027. //! moment.js locale configuration
  26028. //! locale : Turkmen [tk]
  26029. //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
  26030. ;(function (global, factory) {
  26031. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26032. undefined;
  26033. })(this, function (moment) {'use strict';
  26034. //! moment.js locale configuration
  26035. var suffixes = {
  26036. 1: "'inji",
  26037. 5: "'inji",
  26038. 8: "'inji",
  26039. 70: "'inji",
  26040. 80: "'inji",
  26041. 2: "'nji",
  26042. 7: "'nji",
  26043. 20: "'nji",
  26044. 50: "'nji",
  26045. 3: "'ünji",
  26046. 4: "'ünji",
  26047. 100: "'ünji",
  26048. 6: "'njy",
  26049. 9: "'unjy",
  26050. 10: "'unjy",
  26051. 30: "'unjy",
  26052. 60: "'ynjy",
  26053. 90: "'ynjy" };
  26054. var tk = moment.defineLocale('tk', {
  26055. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  26056. '_'),
  26057. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  26058. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  26059. '_'),
  26060. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  26061. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  26062. longDateFormat: {
  26063. LT: 'HH:mm',
  26064. LTS: 'HH:mm:ss',
  26065. L: 'DD.MM.YYYY',
  26066. LL: 'D MMMM YYYY',
  26067. LLL: 'D MMMM YYYY HH:mm',
  26068. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  26069. calendar: {
  26070. sameDay: '[bugün sagat] LT',
  26071. nextDay: '[ertir sagat] LT',
  26072. nextWeek: '[indiki] dddd [sagat] LT',
  26073. lastDay: '[düýn] LT',
  26074. lastWeek: '[geçen] dddd [sagat] LT',
  26075. sameElse: 'L' },
  26076. relativeTime: {
  26077. future: '%s soň',
  26078. past: '%s öň',
  26079. s: 'birnäçe sekunt',
  26080. m: 'bir minut',
  26081. mm: '%d minut',
  26082. h: 'bir sagat',
  26083. hh: '%d sagat',
  26084. d: 'bir gün',
  26085. dd: '%d gün',
  26086. M: 'bir aý',
  26087. MM: '%d aý',
  26088. y: 'bir ýyl',
  26089. yy: '%d ýyl' },
  26090. ordinal: function ordinal(number, period) {
  26091. switch (period) {
  26092. case 'd':
  26093. case 'D':
  26094. case 'Do':
  26095. case 'DD':
  26096. return number;
  26097. default:
  26098. if (number === 0) {
  26099. // special case for zero
  26100. return number + "'unjy";
  26101. }
  26102. var a = number % 10,
  26103. b = number % 100 - a,
  26104. c = number >= 100 ? 100 : null;
  26105. return number + (suffixes[a] || suffixes[b] || suffixes[c]);}
  26106. },
  26107. week: {
  26108. dow: 1, // Monday is the first day of the week.
  26109. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26110. } });
  26111. return tk;
  26112. });
  26113. /***/ }),
  26114. /* 133 */
  26115. /*!******************************************************************************!*\
  26116. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tl-ph.js ***!
  26117. \******************************************************************************/
  26118. /*! no static exports found */
  26119. /***/ (function(module, exports, __webpack_require__) {
  26120. //! moment.js locale configuration
  26121. //! locale : Tagalog (Philippines) [tl-ph]
  26122. //! author : Dan Hagman : https://github.com/hagmandan
  26123. ;(function (global, factory) {
  26124. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26125. undefined;
  26126. })(this, function (moment) {'use strict';
  26127. //! moment.js locale configuration
  26128. var tlPh = moment.defineLocale('tl-ph', {
  26129. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  26130. '_'),
  26131. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  26132. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  26133. '_'),
  26134. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  26135. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  26136. longDateFormat: {
  26137. LT: 'HH:mm',
  26138. LTS: 'HH:mm:ss',
  26139. L: 'MM/D/YYYY',
  26140. LL: 'MMMM D, YYYY',
  26141. LLL: 'MMMM D, YYYY HH:mm',
  26142. LLLL: 'dddd, MMMM DD, YYYY HH:mm' },
  26143. calendar: {
  26144. sameDay: 'LT [ngayong araw]',
  26145. nextDay: '[Bukas ng] LT',
  26146. nextWeek: 'LT [sa susunod na] dddd',
  26147. lastDay: 'LT [kahapon]',
  26148. lastWeek: 'LT [noong nakaraang] dddd',
  26149. sameElse: 'L' },
  26150. relativeTime: {
  26151. future: 'sa loob ng %s',
  26152. past: '%s ang nakalipas',
  26153. s: 'ilang segundo',
  26154. ss: '%d segundo',
  26155. m: 'isang minuto',
  26156. mm: '%d minuto',
  26157. h: 'isang oras',
  26158. hh: '%d oras',
  26159. d: 'isang araw',
  26160. dd: '%d araw',
  26161. M: 'isang buwan',
  26162. MM: '%d buwan',
  26163. y: 'isang taon',
  26164. yy: '%d taon' },
  26165. dayOfMonthOrdinalParse: /\d{1,2}/,
  26166. ordinal: function ordinal(number) {
  26167. return number;
  26168. },
  26169. week: {
  26170. dow: 1, // Monday is the first day of the week.
  26171. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26172. } });
  26173. return tlPh;
  26174. });
  26175. /***/ }),
  26176. /* 134 */
  26177. /*!****************************************************************************!*\
  26178. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tlh.js ***!
  26179. \****************************************************************************/
  26180. /*! no static exports found */
  26181. /***/ (function(module, exports, __webpack_require__) {
  26182. //! moment.js locale configuration
  26183. //! locale : Klingon [tlh]
  26184. //! author : Dominika Kruk : https://github.com/amaranthrose
  26185. ;(function (global, factory) {
  26186. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26187. undefined;
  26188. })(this, function (moment) {'use strict';
  26189. //! moment.js locale configuration
  26190. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  26191. function translateFuture(output) {
  26192. var time = output;
  26193. time =
  26194. output.indexOf('jaj') !== -1 ?
  26195. time.slice(0, -3) + 'leS' :
  26196. output.indexOf('jar') !== -1 ?
  26197. time.slice(0, -3) + 'waQ' :
  26198. output.indexOf('DIS') !== -1 ?
  26199. time.slice(0, -3) + 'nem' :
  26200. time + ' pIq';
  26201. return time;
  26202. }
  26203. function translatePast(output) {
  26204. var time = output;
  26205. time =
  26206. output.indexOf('jaj') !== -1 ?
  26207. time.slice(0, -3) + 'Hu’' :
  26208. output.indexOf('jar') !== -1 ?
  26209. time.slice(0, -3) + 'wen' :
  26210. output.indexOf('DIS') !== -1 ?
  26211. time.slice(0, -3) + 'ben' :
  26212. time + ' ret';
  26213. return time;
  26214. }
  26215. function translate(number, withoutSuffix, string, isFuture) {
  26216. var numberNoun = numberAsNoun(number);
  26217. switch (string) {
  26218. case 'ss':
  26219. return numberNoun + ' lup';
  26220. case 'mm':
  26221. return numberNoun + ' tup';
  26222. case 'hh':
  26223. return numberNoun + ' rep';
  26224. case 'dd':
  26225. return numberNoun + ' jaj';
  26226. case 'MM':
  26227. return numberNoun + ' jar';
  26228. case 'yy':
  26229. return numberNoun + ' DIS';}
  26230. }
  26231. function numberAsNoun(number) {
  26232. var hundred = Math.floor(number % 1000 / 100),
  26233. ten = Math.floor(number % 100 / 10),
  26234. one = number % 10,
  26235. word = '';
  26236. if (hundred > 0) {
  26237. word += numbersNouns[hundred] + 'vatlh';
  26238. }
  26239. if (ten > 0) {
  26240. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  26241. }
  26242. if (one > 0) {
  26243. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  26244. }
  26245. return word === '' ? 'pagh' : word;
  26246. }
  26247. var tlh = moment.defineLocale('tlh', {
  26248. months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
  26249. '_'),
  26250. monthsShort:
  26251. 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
  26252. '_'),
  26253. monthsParseExact: true,
  26254. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  26255. '_'),
  26256. weekdaysShort:
  26257. 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26258. weekdaysMin:
  26259. 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26260. longDateFormat: {
  26261. LT: 'HH:mm',
  26262. LTS: 'HH:mm:ss',
  26263. L: 'DD.MM.YYYY',
  26264. LL: 'D MMMM YYYY',
  26265. LLL: 'D MMMM YYYY HH:mm',
  26266. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  26267. calendar: {
  26268. sameDay: '[DaHjaj] LT',
  26269. nextDay: '[wa’leS] LT',
  26270. nextWeek: 'LLL',
  26271. lastDay: '[wa’Hu’] LT',
  26272. lastWeek: 'LLL',
  26273. sameElse: 'L' },
  26274. relativeTime: {
  26275. future: translateFuture,
  26276. past: translatePast,
  26277. s: 'puS lup',
  26278. ss: translate,
  26279. m: 'wa’ tup',
  26280. mm: translate,
  26281. h: 'wa’ rep',
  26282. hh: translate,
  26283. d: 'wa’ jaj',
  26284. dd: translate,
  26285. M: 'wa’ jar',
  26286. MM: translate,
  26287. y: 'wa’ DIS',
  26288. yy: translate },
  26289. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26290. ordinal: '%d.',
  26291. week: {
  26292. dow: 1, // Monday is the first day of the week.
  26293. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26294. } });
  26295. return tlh;
  26296. });
  26297. /***/ }),
  26298. /* 135 */
  26299. /*!***************************************************************************!*\
  26300. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tr.js ***!
  26301. \***************************************************************************/
  26302. /*! no static exports found */
  26303. /***/ (function(module, exports, __webpack_require__) {
  26304. //! moment.js locale configuration
  26305. //! locale : Turkish [tr]
  26306. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  26307. //! Burak Yiğit Kaya: https://github.com/BYK
  26308. ;(function (global, factory) {
  26309. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26310. undefined;
  26311. })(this, function (moment) {'use strict';
  26312. //! moment.js locale configuration
  26313. var suffixes = {
  26314. 1: "'inci",
  26315. 5: "'inci",
  26316. 8: "'inci",
  26317. 70: "'inci",
  26318. 80: "'inci",
  26319. 2: "'nci",
  26320. 7: "'nci",
  26321. 20: "'nci",
  26322. 50: "'nci",
  26323. 3: "'üncü",
  26324. 4: "'üncü",
  26325. 100: "'üncü",
  26326. 6: "'ncı",
  26327. 9: "'uncu",
  26328. 10: "'uncu",
  26329. 30: "'uncu",
  26330. 60: "'ıncı",
  26331. 90: "'ıncı" };
  26332. var tr = moment.defineLocale('tr', {
  26333. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  26334. '_'),
  26335. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  26336. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  26337. '_'),
  26338. weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
  26339. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  26340. meridiem: function meridiem(hours, minutes, isLower) {
  26341. if (hours < 12) {
  26342. return isLower ? 'öö' : 'ÖÖ';
  26343. } else {
  26344. return isLower ? 'ös' : 'ÖS';
  26345. }
  26346. },
  26347. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  26348. isPM: function isPM(input) {
  26349. return input === 'ös' || input === 'ÖS';
  26350. },
  26351. longDateFormat: {
  26352. LT: 'HH:mm',
  26353. LTS: 'HH:mm:ss',
  26354. L: 'DD.MM.YYYY',
  26355. LL: 'D MMMM YYYY',
  26356. LLL: 'D MMMM YYYY HH:mm',
  26357. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  26358. calendar: {
  26359. sameDay: '[bugün saat] LT',
  26360. nextDay: '[yarın saat] LT',
  26361. nextWeek: '[gelecek] dddd [saat] LT',
  26362. lastDay: '[dün] LT',
  26363. lastWeek: '[geçen] dddd [saat] LT',
  26364. sameElse: 'L' },
  26365. relativeTime: {
  26366. future: '%s sonra',
  26367. past: '%s önce',
  26368. s: 'birkaç saniye',
  26369. ss: '%d saniye',
  26370. m: 'bir dakika',
  26371. mm: '%d dakika',
  26372. h: 'bir saat',
  26373. hh: '%d saat',
  26374. d: 'bir gün',
  26375. dd: '%d gün',
  26376. w: 'bir hafta',
  26377. ww: '%d hafta',
  26378. M: 'bir ay',
  26379. MM: '%d ay',
  26380. y: 'bir yıl',
  26381. yy: '%d yıl' },
  26382. ordinal: function ordinal(number, period) {
  26383. switch (period) {
  26384. case 'd':
  26385. case 'D':
  26386. case 'Do':
  26387. case 'DD':
  26388. return number;
  26389. default:
  26390. if (number === 0) {
  26391. // special case for zero
  26392. return number + "'ıncı";
  26393. }
  26394. var a = number % 10,
  26395. b = number % 100 - a,
  26396. c = number >= 100 ? 100 : null;
  26397. return number + (suffixes[a] || suffixes[b] || suffixes[c]);}
  26398. },
  26399. week: {
  26400. dow: 1, // Monday is the first day of the week.
  26401. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26402. } });
  26403. return tr;
  26404. });
  26405. /***/ }),
  26406. /* 136 */
  26407. /*!****************************************************************************!*\
  26408. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tzl.js ***!
  26409. \****************************************************************************/
  26410. /*! no static exports found */
  26411. /***/ (function(module, exports, __webpack_require__) {
  26412. //! moment.js locale configuration
  26413. //! locale : Talossan [tzl]
  26414. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  26415. //! author : Iustì Canun
  26416. ;(function (global, factory) {
  26417. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26418. undefined;
  26419. })(this, function (moment) {'use strict';
  26420. //! moment.js locale configuration
  26421. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  26422. // This is currently too difficult (maybe even impossible) to add.
  26423. var tzl = moment.defineLocale('tzl', {
  26424. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  26425. '_'),
  26426. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  26427. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  26428. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  26429. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  26430. longDateFormat: {
  26431. LT: 'HH.mm',
  26432. LTS: 'HH.mm.ss',
  26433. L: 'DD.MM.YYYY',
  26434. LL: 'D. MMMM [dallas] YYYY',
  26435. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  26436. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' },
  26437. meridiemParse: /d\'o|d\'a/i,
  26438. isPM: function isPM(input) {
  26439. return "d'o" === input.toLowerCase();
  26440. },
  26441. meridiem: function meridiem(hours, minutes, isLower) {
  26442. if (hours > 11) {
  26443. return isLower ? "d'o" : "D'O";
  26444. } else {
  26445. return isLower ? "d'a" : "D'A";
  26446. }
  26447. },
  26448. calendar: {
  26449. sameDay: '[oxhi à] LT',
  26450. nextDay: '[demà à] LT',
  26451. nextWeek: 'dddd [à] LT',
  26452. lastDay: '[ieiri à] LT',
  26453. lastWeek: '[sür el] dddd [lasteu à] LT',
  26454. sameElse: 'L' },
  26455. relativeTime: {
  26456. future: 'osprei %s',
  26457. past: 'ja%s',
  26458. s: processRelativeTime,
  26459. ss: processRelativeTime,
  26460. m: processRelativeTime,
  26461. mm: processRelativeTime,
  26462. h: processRelativeTime,
  26463. hh: processRelativeTime,
  26464. d: processRelativeTime,
  26465. dd: processRelativeTime,
  26466. M: processRelativeTime,
  26467. MM: processRelativeTime,
  26468. y: processRelativeTime,
  26469. yy: processRelativeTime },
  26470. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26471. ordinal: '%d.',
  26472. week: {
  26473. dow: 1, // Monday is the first day of the week.
  26474. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26475. } });
  26476. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  26477. var format = {
  26478. s: ['viensas secunds', "'iensas secunds"],
  26479. ss: [number + ' secunds', '' + number + ' secunds'],
  26480. m: ["'n míut", "'iens míut"],
  26481. mm: [number + ' míuts', '' + number + ' míuts'],
  26482. h: ["'n þora", "'iensa þora"],
  26483. hh: [number + ' þoras', '' + number + ' þoras'],
  26484. d: ["'n ziua", "'iensa ziua"],
  26485. dd: [number + ' ziuas', '' + number + ' ziuas'],
  26486. M: ["'n mes", "'iens mes"],
  26487. MM: [number + ' mesen', '' + number + ' mesen'],
  26488. y: ["'n ar", "'iens ar"],
  26489. yy: [number + ' ars', '' + number + ' ars'] };
  26490. return isFuture ?
  26491. format[key][0] :
  26492. withoutSuffix ?
  26493. format[key][0] :
  26494. format[key][1];
  26495. }
  26496. return tzl;
  26497. });
  26498. /***/ }),
  26499. /* 137 */
  26500. /*!****************************************************************************!*\
  26501. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tzm.js ***!
  26502. \****************************************************************************/
  26503. /*! no static exports found */
  26504. /***/ (function(module, exports, __webpack_require__) {
  26505. //! moment.js locale configuration
  26506. //! locale : Central Atlas Tamazight [tzm]
  26507. //! author : Abdel Said : https://github.com/abdelsaid
  26508. ;(function (global, factory) {
  26509. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26510. undefined;
  26511. })(this, function (moment) {'use strict';
  26512. //! moment.js locale configuration
  26513. var tzm = moment.defineLocale('tzm', {
  26514. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  26515. '_'),
  26516. monthsShort:
  26517. 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  26518. '_'),
  26519. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26520. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26521. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26522. longDateFormat: {
  26523. LT: 'HH:mm',
  26524. LTS: 'HH:mm:ss',
  26525. L: 'DD/MM/YYYY',
  26526. LL: 'D MMMM YYYY',
  26527. LLL: 'D MMMM YYYY HH:mm',
  26528. LLLL: 'dddd D MMMM YYYY HH:mm' },
  26529. calendar: {
  26530. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  26531. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  26532. nextWeek: 'dddd [ⴴ] LT',
  26533. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  26534. lastWeek: 'dddd [ⴴ] LT',
  26535. sameElse: 'L' },
  26536. relativeTime: {
  26537. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  26538. past: 'ⵢⴰⵏ %s',
  26539. s: 'ⵉⵎⵉⴽ',
  26540. ss: '%d ⵉⵎⵉⴽ',
  26541. m: 'ⵎⵉⵏⵓⴺ',
  26542. mm: '%d ⵎⵉⵏⵓⴺ',
  26543. h: 'ⵙⴰⵄⴰ',
  26544. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  26545. d: 'ⴰⵙⵙ',
  26546. dd: '%d oⵙⵙⴰⵏ',
  26547. M: 'ⴰⵢoⵓⵔ',
  26548. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  26549. y: 'ⴰⵙⴳⴰⵙ',
  26550. yy: '%d ⵉⵙⴳⴰⵙⵏ' },
  26551. week: {
  26552. dow: 6, // Saturday is the first day of the week.
  26553. doy: 12 // The week that contains Jan 12th is the first week of the year.
  26554. } });
  26555. return tzm;
  26556. });
  26557. /***/ }),
  26558. /* 138 */
  26559. /*!*********************************************************************************!*\
  26560. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/tzm-latn.js ***!
  26561. \*********************************************************************************/
  26562. /*! no static exports found */
  26563. /***/ (function(module, exports, __webpack_require__) {
  26564. //! moment.js locale configuration
  26565. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  26566. //! author : Abdel Said : https://github.com/abdelsaid
  26567. ;(function (global, factory) {
  26568. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26569. undefined;
  26570. })(this, function (moment) {'use strict';
  26571. //! moment.js locale configuration
  26572. var tzmLatn = moment.defineLocale('tzm-latn', {
  26573. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  26574. '_'),
  26575. monthsShort:
  26576. 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  26577. '_'),
  26578. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26579. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26580. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26581. longDateFormat: {
  26582. LT: 'HH:mm',
  26583. LTS: 'HH:mm:ss',
  26584. L: 'DD/MM/YYYY',
  26585. LL: 'D MMMM YYYY',
  26586. LLL: 'D MMMM YYYY HH:mm',
  26587. LLLL: 'dddd D MMMM YYYY HH:mm' },
  26588. calendar: {
  26589. sameDay: '[asdkh g] LT',
  26590. nextDay: '[aska g] LT',
  26591. nextWeek: 'dddd [g] LT',
  26592. lastDay: '[assant g] LT',
  26593. lastWeek: 'dddd [g] LT',
  26594. sameElse: 'L' },
  26595. relativeTime: {
  26596. future: 'dadkh s yan %s',
  26597. past: 'yan %s',
  26598. s: 'imik',
  26599. ss: '%d imik',
  26600. m: 'minuḍ',
  26601. mm: '%d minuḍ',
  26602. h: 'saɛa',
  26603. hh: '%d tassaɛin',
  26604. d: 'ass',
  26605. dd: '%d ossan',
  26606. M: 'ayowr',
  26607. MM: '%d iyyirn',
  26608. y: 'asgas',
  26609. yy: '%d isgasn' },
  26610. week: {
  26611. dow: 6, // Saturday is the first day of the week.
  26612. doy: 12 // The week that contains Jan 12th is the first week of the year.
  26613. } });
  26614. return tzmLatn;
  26615. });
  26616. /***/ }),
  26617. /* 139 */
  26618. /*!******************************************************************************!*\
  26619. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ug-cn.js ***!
  26620. \******************************************************************************/
  26621. /*! no static exports found */
  26622. /***/ (function(module, exports, __webpack_require__) {
  26623. //! moment.js locale configuration
  26624. //! locale : Uyghur (China) [ug-cn]
  26625. //! author: boyaq : https://github.com/boyaq
  26626. ;(function (global, factory) {
  26627. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26628. undefined;
  26629. })(this, function (moment) {'use strict';
  26630. //! moment.js locale configuration
  26631. var ugCn = moment.defineLocale('ug-cn', {
  26632. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  26633. '_'),
  26634. monthsShort:
  26635. 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  26636. '_'),
  26637. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  26638. '_'),
  26639. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  26640. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  26641. longDateFormat: {
  26642. LT: 'HH:mm',
  26643. LTS: 'HH:mm:ss',
  26644. L: 'YYYY-MM-DD',
  26645. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  26646. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  26647. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm' },
  26648. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  26649. meridiemHour: function meridiemHour(hour, meridiem) {
  26650. if (hour === 12) {
  26651. hour = 0;
  26652. }
  26653. if (
  26654. meridiem === 'يېرىم كېچە' ||
  26655. meridiem === 'سەھەر' ||
  26656. meridiem === 'چۈشتىن بۇرۇن')
  26657. {
  26658. return hour;
  26659. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  26660. return hour + 12;
  26661. } else {
  26662. return hour >= 11 ? hour : hour + 12;
  26663. }
  26664. },
  26665. meridiem: function meridiem(hour, minute, isLower) {
  26666. var hm = hour * 100 + minute;
  26667. if (hm < 600) {
  26668. return 'يېرىم كېچە';
  26669. } else if (hm < 900) {
  26670. return 'سەھەر';
  26671. } else if (hm < 1130) {
  26672. return 'چۈشتىن بۇرۇن';
  26673. } else if (hm < 1230) {
  26674. return 'چۈش';
  26675. } else if (hm < 1800) {
  26676. return 'چۈشتىن كېيىن';
  26677. } else {
  26678. return 'كەچ';
  26679. }
  26680. },
  26681. calendar: {
  26682. sameDay: '[بۈگۈن سائەت] LT',
  26683. nextDay: '[ئەتە سائەت] LT',
  26684. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  26685. lastDay: '[تۆنۈگۈن] LT',
  26686. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  26687. sameElse: 'L' },
  26688. relativeTime: {
  26689. future: '%s كېيىن',
  26690. past: '%s بۇرۇن',
  26691. s: 'نەچچە سېكونت',
  26692. ss: '%d سېكونت',
  26693. m: 'بىر مىنۇت',
  26694. mm: '%d مىنۇت',
  26695. h: 'بىر سائەت',
  26696. hh: '%d سائەت',
  26697. d: 'بىر كۈن',
  26698. dd: '%d كۈن',
  26699. M: 'بىر ئاي',
  26700. MM: '%d ئاي',
  26701. y: 'بىر يىل',
  26702. yy: '%d يىل' },
  26703. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  26704. ordinal: function ordinal(number, period) {
  26705. switch (period) {
  26706. case 'd':
  26707. case 'D':
  26708. case 'DDD':
  26709. return number + '-كۈنى';
  26710. case 'w':
  26711. case 'W':
  26712. return number + '-ھەپتە';
  26713. default:
  26714. return number;}
  26715. },
  26716. preparse: function preparse(string) {
  26717. return string.replace(/،/g, ',');
  26718. },
  26719. postformat: function postformat(string) {
  26720. return string.replace(/,/g, '،');
  26721. },
  26722. week: {
  26723. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  26724. dow: 1, // Monday is the first day of the week.
  26725. doy: 7 // The week that contains Jan 1st is the first week of the year.
  26726. } });
  26727. return ugCn;
  26728. });
  26729. /***/ }),
  26730. /* 140 */
  26731. /*!***************************************************************************!*\
  26732. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/uk.js ***!
  26733. \***************************************************************************/
  26734. /*! no static exports found */
  26735. /***/ (function(module, exports, __webpack_require__) {
  26736. //! moment.js locale configuration
  26737. //! locale : Ukrainian [uk]
  26738. //! author : zemlanin : https://github.com/zemlanin
  26739. //! Author : Menelion Elensúle : https://github.com/Oire
  26740. ;(function (global, factory) {
  26741. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26742. undefined;
  26743. })(this, function (moment) {'use strict';
  26744. //! moment.js locale configuration
  26745. function plural(word, num) {
  26746. var forms = word.split('_');
  26747. return num % 10 === 1 && num % 100 !== 11 ?
  26748. forms[0] :
  26749. num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ?
  26750. forms[1] :
  26751. forms[2];
  26752. }
  26753. function relativeTimeWithPlural(number, withoutSuffix, key) {
  26754. var format = {
  26755. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  26756. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  26757. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  26758. dd: 'день_дні_днів',
  26759. MM: 'місяць_місяці_місяців',
  26760. yy: 'рік_роки_років' };
  26761. if (key === 'm') {
  26762. return withoutSuffix ? 'хвилина' : 'хвилину';
  26763. } else if (key === 'h') {
  26764. return withoutSuffix ? 'година' : 'годину';
  26765. } else {
  26766. return number + ' ' + plural(format[key], +number);
  26767. }
  26768. }
  26769. function weekdaysCaseReplace(m, format) {
  26770. var weekdays = {
  26771. nominative:
  26772. 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  26773. '_'),
  26774. accusative:
  26775. 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  26776. '_'),
  26777. genitive:
  26778. 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  26779. '_') },
  26780. nounCase;
  26781. if (m === true) {
  26782. return weekdays['nominative'].
  26783. slice(1, 7).
  26784. concat(weekdays['nominative'].slice(0, 1));
  26785. }
  26786. if (!m) {
  26787. return weekdays['nominative'];
  26788. }
  26789. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) ?
  26790. 'accusative' :
  26791. /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) ?
  26792. 'genitive' :
  26793. 'nominative';
  26794. return weekdays[nounCase][m.day()];
  26795. }
  26796. function processHoursFunction(str) {
  26797. return function () {
  26798. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  26799. };
  26800. }
  26801. var uk = moment.defineLocale('uk', {
  26802. months: {
  26803. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  26804. '_'),
  26805. standalone:
  26806. 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  26807. '_') },
  26808. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  26809. '_'),
  26810. weekdays: weekdaysCaseReplace,
  26811. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  26812. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  26813. longDateFormat: {
  26814. LT: 'HH:mm',
  26815. LTS: 'HH:mm:ss',
  26816. L: 'DD.MM.YYYY',
  26817. LL: 'D MMMM YYYY р.',
  26818. LLL: 'D MMMM YYYY р., HH:mm',
  26819. LLLL: 'dddd, D MMMM YYYY р., HH:mm' },
  26820. calendar: {
  26821. sameDay: processHoursFunction('[Сьогодні '),
  26822. nextDay: processHoursFunction('[Завтра '),
  26823. lastDay: processHoursFunction('[Вчора '),
  26824. nextWeek: processHoursFunction('[У] dddd ['),
  26825. lastWeek: function lastWeek() {
  26826. switch (this.day()) {
  26827. case 0:
  26828. case 3:
  26829. case 5:
  26830. case 6:
  26831. return processHoursFunction('[Минулої] dddd [').call(this);
  26832. case 1:
  26833. case 2:
  26834. case 4:
  26835. return processHoursFunction('[Минулого] dddd [').call(this);}
  26836. },
  26837. sameElse: 'L' },
  26838. relativeTime: {
  26839. future: 'за %s',
  26840. past: '%s тому',
  26841. s: 'декілька секунд',
  26842. ss: relativeTimeWithPlural,
  26843. m: relativeTimeWithPlural,
  26844. mm: relativeTimeWithPlural,
  26845. h: 'годину',
  26846. hh: relativeTimeWithPlural,
  26847. d: 'день',
  26848. dd: relativeTimeWithPlural,
  26849. M: 'місяць',
  26850. MM: relativeTimeWithPlural,
  26851. y: 'рік',
  26852. yy: relativeTimeWithPlural },
  26853. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  26854. meridiemParse: /ночі|ранку|дня|вечора/,
  26855. isPM: function isPM(input) {
  26856. return /^(дня|вечора)$/.test(input);
  26857. },
  26858. meridiem: function meridiem(hour, minute, isLower) {
  26859. if (hour < 4) {
  26860. return 'ночі';
  26861. } else if (hour < 12) {
  26862. return 'ранку';
  26863. } else if (hour < 17) {
  26864. return 'дня';
  26865. } else {
  26866. return 'вечора';
  26867. }
  26868. },
  26869. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  26870. ordinal: function ordinal(number, period) {
  26871. switch (period) {
  26872. case 'M':
  26873. case 'd':
  26874. case 'DDD':
  26875. case 'w':
  26876. case 'W':
  26877. return number + '-й';
  26878. case 'D':
  26879. return number + '-го';
  26880. default:
  26881. return number;}
  26882. },
  26883. week: {
  26884. dow: 1, // Monday is the first day of the week.
  26885. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26886. } });
  26887. return uk;
  26888. });
  26889. /***/ }),
  26890. /* 141 */
  26891. /*!***************************************************************************!*\
  26892. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/ur.js ***!
  26893. \***************************************************************************/
  26894. /*! no static exports found */
  26895. /***/ (function(module, exports, __webpack_require__) {
  26896. //! moment.js locale configuration
  26897. //! locale : Urdu [ur]
  26898. //! author : Sawood Alam : https://github.com/ibnesayeed
  26899. //! author : Zack : https://github.com/ZackVision
  26900. ;(function (global, factory) {
  26901. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26902. undefined;
  26903. })(this, function (moment) {'use strict';
  26904. //! moment.js locale configuration
  26905. var months = [
  26906. 'جنوری',
  26907. 'فروری',
  26908. 'مارچ',
  26909. 'اپریل',
  26910. 'مئی',
  26911. 'جون',
  26912. 'جولائی',
  26913. 'اگست',
  26914. 'ستمبر',
  26915. 'اکتوبر',
  26916. 'نومبر',
  26917. 'دسمبر'],
  26918. days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  26919. var ur = moment.defineLocale('ur', {
  26920. months: months,
  26921. monthsShort: months,
  26922. weekdays: days,
  26923. weekdaysShort: days,
  26924. weekdaysMin: days,
  26925. longDateFormat: {
  26926. LT: 'HH:mm',
  26927. LTS: 'HH:mm:ss',
  26928. L: 'DD/MM/YYYY',
  26929. LL: 'D MMMM YYYY',
  26930. LLL: 'D MMMM YYYY HH:mm',
  26931. LLLL: 'dddd، D MMMM YYYY HH:mm' },
  26932. meridiemParse: /صبح|شام/,
  26933. isPM: function isPM(input) {
  26934. return 'شام' === input;
  26935. },
  26936. meridiem: function meridiem(hour, minute, isLower) {
  26937. if (hour < 12) {
  26938. return 'صبح';
  26939. }
  26940. return 'شام';
  26941. },
  26942. calendar: {
  26943. sameDay: '[آج بوقت] LT',
  26944. nextDay: '[کل بوقت] LT',
  26945. nextWeek: 'dddd [بوقت] LT',
  26946. lastDay: '[گذشتہ روز بوقت] LT',
  26947. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  26948. sameElse: 'L' },
  26949. relativeTime: {
  26950. future: '%s بعد',
  26951. past: '%s قبل',
  26952. s: 'چند سیکنڈ',
  26953. ss: '%d سیکنڈ',
  26954. m: 'ایک منٹ',
  26955. mm: '%d منٹ',
  26956. h: 'ایک گھنٹہ',
  26957. hh: '%d گھنٹے',
  26958. d: 'ایک دن',
  26959. dd: '%d دن',
  26960. M: 'ایک ماہ',
  26961. MM: '%d ماہ',
  26962. y: 'ایک سال',
  26963. yy: '%d سال' },
  26964. preparse: function preparse(string) {
  26965. return string.replace(/،/g, ',');
  26966. },
  26967. postformat: function postformat(string) {
  26968. return string.replace(/,/g, '،');
  26969. },
  26970. week: {
  26971. dow: 1, // Monday is the first day of the week.
  26972. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26973. } });
  26974. return ur;
  26975. });
  26976. /***/ }),
  26977. /* 142 */
  26978. /*!***************************************************************************!*\
  26979. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/uz.js ***!
  26980. \***************************************************************************/
  26981. /*! no static exports found */
  26982. /***/ (function(module, exports, __webpack_require__) {
  26983. //! moment.js locale configuration
  26984. //! locale : Uzbek [uz]
  26985. //! author : Sardor Muminov : https://github.com/muminoff
  26986. ;(function (global, factory) {
  26987. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  26988. undefined;
  26989. })(this, function (moment) {'use strict';
  26990. //! moment.js locale configuration
  26991. var uz = moment.defineLocale('uz', {
  26992. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  26993. '_'),
  26994. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  26995. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  26996. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  26997. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  26998. longDateFormat: {
  26999. LT: 'HH:mm',
  27000. LTS: 'HH:mm:ss',
  27001. L: 'DD/MM/YYYY',
  27002. LL: 'D MMMM YYYY',
  27003. LLL: 'D MMMM YYYY HH:mm',
  27004. LLLL: 'D MMMM YYYY, dddd HH:mm' },
  27005. calendar: {
  27006. sameDay: '[Бугун соат] LT [да]',
  27007. nextDay: '[Эртага] LT [да]',
  27008. nextWeek: 'dddd [куни соат] LT [да]',
  27009. lastDay: '[Кеча соат] LT [да]',
  27010. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  27011. sameElse: 'L' },
  27012. relativeTime: {
  27013. future: 'Якин %s ичида',
  27014. past: 'Бир неча %s олдин',
  27015. s: 'фурсат',
  27016. ss: '%d фурсат',
  27017. m: 'бир дакика',
  27018. mm: '%d дакика',
  27019. h: 'бир соат',
  27020. hh: '%d соат',
  27021. d: 'бир кун',
  27022. dd: '%d кун',
  27023. M: 'бир ой',
  27024. MM: '%d ой',
  27025. y: 'бир йил',
  27026. yy: '%d йил' },
  27027. week: {
  27028. dow: 1, // Monday is the first day of the week.
  27029. doy: 7 // The week that contains Jan 4th is the first week of the year.
  27030. } });
  27031. return uz;
  27032. });
  27033. /***/ }),
  27034. /* 143 */
  27035. /*!********************************************************************************!*\
  27036. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/uz-latn.js ***!
  27037. \********************************************************************************/
  27038. /*! no static exports found */
  27039. /***/ (function(module, exports, __webpack_require__) {
  27040. //! moment.js locale configuration
  27041. //! locale : Uzbek Latin [uz-latn]
  27042. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  27043. ;(function (global, factory) {
  27044. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27045. undefined;
  27046. })(this, function (moment) {'use strict';
  27047. //! moment.js locale configuration
  27048. var uzLatn = moment.defineLocale('uz-latn', {
  27049. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  27050. '_'),
  27051. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  27052. weekdays:
  27053. 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  27054. '_'),
  27055. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  27056. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  27057. longDateFormat: {
  27058. LT: 'HH:mm',
  27059. LTS: 'HH:mm:ss',
  27060. L: 'DD/MM/YYYY',
  27061. LL: 'D MMMM YYYY',
  27062. LLL: 'D MMMM YYYY HH:mm',
  27063. LLLL: 'D MMMM YYYY, dddd HH:mm' },
  27064. calendar: {
  27065. sameDay: '[Bugun soat] LT [da]',
  27066. nextDay: '[Ertaga] LT [da]',
  27067. nextWeek: 'dddd [kuni soat] LT [da]',
  27068. lastDay: '[Kecha soat] LT [da]',
  27069. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  27070. sameElse: 'L' },
  27071. relativeTime: {
  27072. future: 'Yaqin %s ichida',
  27073. past: 'Bir necha %s oldin',
  27074. s: 'soniya',
  27075. ss: '%d soniya',
  27076. m: 'bir daqiqa',
  27077. mm: '%d daqiqa',
  27078. h: 'bir soat',
  27079. hh: '%d soat',
  27080. d: 'bir kun',
  27081. dd: '%d kun',
  27082. M: 'bir oy',
  27083. MM: '%d oy',
  27084. y: 'bir yil',
  27085. yy: '%d yil' },
  27086. week: {
  27087. dow: 1, // Monday is the first day of the week.
  27088. doy: 7 // The week that contains Jan 7th is the first week of the year.
  27089. } });
  27090. return uzLatn;
  27091. });
  27092. /***/ }),
  27093. /* 144 */
  27094. /*!***************************************************************************!*\
  27095. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/vi.js ***!
  27096. \***************************************************************************/
  27097. /*! no static exports found */
  27098. /***/ (function(module, exports, __webpack_require__) {
  27099. //! moment.js locale configuration
  27100. //! locale : Vietnamese [vi]
  27101. //! author : Bang Nguyen : https://github.com/bangnk
  27102. //! author : Chien Kira : https://github.com/chienkira
  27103. ;(function (global, factory) {
  27104. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27105. undefined;
  27106. })(this, function (moment) {'use strict';
  27107. //! moment.js locale configuration
  27108. var vi = moment.defineLocale('vi', {
  27109. months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
  27110. '_'),
  27111. monthsShort:
  27112. 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
  27113. '_'),
  27114. monthsParseExact: true,
  27115. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  27116. '_'),
  27117. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  27118. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  27119. weekdaysParseExact: true,
  27120. meridiemParse: /sa|ch/i,
  27121. isPM: function isPM(input) {
  27122. return /^ch$/i.test(input);
  27123. },
  27124. meridiem: function meridiem(hours, minutes, isLower) {
  27125. if (hours < 12) {
  27126. return isLower ? 'sa' : 'SA';
  27127. } else {
  27128. return isLower ? 'ch' : 'CH';
  27129. }
  27130. },
  27131. longDateFormat: {
  27132. LT: 'HH:mm',
  27133. LTS: 'HH:mm:ss',
  27134. L: 'DD/MM/YYYY',
  27135. LL: 'D MMMM [năm] YYYY',
  27136. LLL: 'D MMMM [năm] YYYY HH:mm',
  27137. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  27138. l: 'DD/M/YYYY',
  27139. ll: 'D MMM YYYY',
  27140. lll: 'D MMM YYYY HH:mm',
  27141. llll: 'ddd, D MMM YYYY HH:mm' },
  27142. calendar: {
  27143. sameDay: '[Hôm nay lúc] LT',
  27144. nextDay: '[Ngày mai lúc] LT',
  27145. nextWeek: 'dddd [tuần tới lúc] LT',
  27146. lastDay: '[Hôm qua lúc] LT',
  27147. lastWeek: 'dddd [tuần trước lúc] LT',
  27148. sameElse: 'L' },
  27149. relativeTime: {
  27150. future: '%s tới',
  27151. past: '%s trước',
  27152. s: 'vài giây',
  27153. ss: '%d giây',
  27154. m: 'một phút',
  27155. mm: '%d phút',
  27156. h: 'một giờ',
  27157. hh: '%d giờ',
  27158. d: 'một ngày',
  27159. dd: '%d ngày',
  27160. w: 'một tuần',
  27161. ww: '%d tuần',
  27162. M: 'một tháng',
  27163. MM: '%d tháng',
  27164. y: 'một năm',
  27165. yy: '%d năm' },
  27166. dayOfMonthOrdinalParse: /\d{1,2}/,
  27167. ordinal: function ordinal(number) {
  27168. return number;
  27169. },
  27170. week: {
  27171. dow: 1, // Monday is the first day of the week.
  27172. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27173. } });
  27174. return vi;
  27175. });
  27176. /***/ }),
  27177. /* 145 */
  27178. /*!*********************************************************************************!*\
  27179. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/x-pseudo.js ***!
  27180. \*********************************************************************************/
  27181. /*! no static exports found */
  27182. /***/ (function(module, exports, __webpack_require__) {
  27183. //! moment.js locale configuration
  27184. //! locale : Pseudo [x-pseudo]
  27185. //! author : Andrew Hood : https://github.com/andrewhood125
  27186. ;(function (global, factory) {
  27187. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27188. undefined;
  27189. })(this, function (moment) {'use strict';
  27190. //! moment.js locale configuration
  27191. var xPseudo = moment.defineLocale('x-pseudo', {
  27192. months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
  27193. '_'),
  27194. monthsShort:
  27195. 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  27196. '_'),
  27197. monthsParseExact: true,
  27198. weekdays:
  27199. 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  27200. '_'),
  27201. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  27202. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  27203. weekdaysParseExact: true,
  27204. longDateFormat: {
  27205. LT: 'HH:mm',
  27206. L: 'DD/MM/YYYY',
  27207. LL: 'D MMMM YYYY',
  27208. LLL: 'D MMMM YYYY HH:mm',
  27209. LLLL: 'dddd, D MMMM YYYY HH:mm' },
  27210. calendar: {
  27211. sameDay: '[T~ódá~ý át] LT',
  27212. nextDay: '[T~ómó~rró~w át] LT',
  27213. nextWeek: 'dddd [át] LT',
  27214. lastDay: '[Ý~ést~érdá~ý át] LT',
  27215. lastWeek: '[L~ást] dddd [át] LT',
  27216. sameElse: 'L' },
  27217. relativeTime: {
  27218. future: 'í~ñ %s',
  27219. past: '%s á~gó',
  27220. s: 'á ~féw ~sécó~ñds',
  27221. ss: '%d s~écóñ~ds',
  27222. m: 'á ~míñ~úté',
  27223. mm: '%d m~íñú~tés',
  27224. h: 'á~ñ hó~úr',
  27225. hh: '%d h~óúrs',
  27226. d: 'á ~dáý',
  27227. dd: '%d d~áýs',
  27228. M: 'á ~móñ~th',
  27229. MM: '%d m~óñt~hs',
  27230. y: 'á ~ýéár',
  27231. yy: '%d ý~éárs' },
  27232. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  27233. ordinal: function ordinal(number) {
  27234. var b = number % 10,
  27235. output =
  27236. ~~(number % 100 / 10) === 1 ?
  27237. 'th' :
  27238. b === 1 ?
  27239. 'st' :
  27240. b === 2 ?
  27241. 'nd' :
  27242. b === 3 ?
  27243. 'rd' :
  27244. 'th';
  27245. return number + output;
  27246. },
  27247. week: {
  27248. dow: 1, // Monday is the first day of the week.
  27249. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27250. } });
  27251. return xPseudo;
  27252. });
  27253. /***/ }),
  27254. /* 146 */
  27255. /*!***************************************************************************!*\
  27256. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/yo.js ***!
  27257. \***************************************************************************/
  27258. /*! no static exports found */
  27259. /***/ (function(module, exports, __webpack_require__) {
  27260. //! moment.js locale configuration
  27261. //! locale : Yoruba Nigeria [yo]
  27262. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  27263. ;(function (global, factory) {
  27264. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27265. undefined;
  27266. })(this, function (moment) {'use strict';
  27267. //! moment.js locale configuration
  27268. var yo = moment.defineLocale('yo', {
  27269. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  27270. '_'),
  27271. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  27272. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  27273. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  27274. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  27275. longDateFormat: {
  27276. LT: 'h:mm A',
  27277. LTS: 'h:mm:ss A',
  27278. L: 'DD/MM/YYYY',
  27279. LL: 'D MMMM YYYY',
  27280. LLL: 'D MMMM YYYY h:mm A',
  27281. LLLL: 'dddd, D MMMM YYYY h:mm A' },
  27282. calendar: {
  27283. sameDay: '[Ònì ni] LT',
  27284. nextDay: '[Ọ̀la ni] LT',
  27285. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  27286. lastDay: '[Àna ni] LT',
  27287. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  27288. sameElse: 'L' },
  27289. relativeTime: {
  27290. future: 'ní %s',
  27291. past: '%s kọjá',
  27292. s: 'ìsẹjú aayá die',
  27293. ss: 'aayá %d',
  27294. m: 'ìsẹjú kan',
  27295. mm: 'ìsẹjú %d',
  27296. h: 'wákati kan',
  27297. hh: 'wákati %d',
  27298. d: 'ọjọ́ kan',
  27299. dd: 'ọjọ́ %d',
  27300. M: 'osù kan',
  27301. MM: 'osù %d',
  27302. y: 'ọdún kan',
  27303. yy: 'ọdún %d' },
  27304. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  27305. ordinal: 'ọjọ́ %d',
  27306. week: {
  27307. dow: 1, // Monday is the first day of the week.
  27308. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27309. } });
  27310. return yo;
  27311. });
  27312. /***/ }),
  27313. /* 147 */
  27314. /*!******************************************************************************!*\
  27315. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/zh-cn.js ***!
  27316. \******************************************************************************/
  27317. /*! no static exports found */
  27318. /***/ (function(module, exports, __webpack_require__) {
  27319. //! moment.js locale configuration
  27320. //! locale : Chinese (China) [zh-cn]
  27321. //! author : suupic : https://github.com/suupic
  27322. //! author : Zeno Zeng : https://github.com/zenozeng
  27323. //! author : uu109 : https://github.com/uu109
  27324. ;(function (global, factory) {
  27325. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27326. undefined;
  27327. })(this, function (moment) {'use strict';
  27328. //! moment.js locale configuration
  27329. var zhCn = moment.defineLocale('zh-cn', {
  27330. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  27331. '_'),
  27332. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  27333. '_'),
  27334. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27335. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  27336. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27337. longDateFormat: {
  27338. LT: 'HH:mm',
  27339. LTS: 'HH:mm:ss',
  27340. L: 'YYYY/MM/DD',
  27341. LL: 'YYYY年M月D日',
  27342. LLL: 'YYYY年M月D日Ah点mm分',
  27343. LLLL: 'YYYY年M月D日ddddAh点mm分',
  27344. l: 'YYYY/M/D',
  27345. ll: 'YYYY年M月D日',
  27346. lll: 'YYYY年M月D日 HH:mm',
  27347. llll: 'YYYY年M月D日dddd HH:mm' },
  27348. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27349. meridiemHour: function meridiemHour(hour, meridiem) {
  27350. if (hour === 12) {
  27351. hour = 0;
  27352. }
  27353. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27354. return hour;
  27355. } else if (meridiem === '下午' || meridiem === '晚上') {
  27356. return hour + 12;
  27357. } else {
  27358. // '中午'
  27359. return hour >= 11 ? hour : hour + 12;
  27360. }
  27361. },
  27362. meridiem: function meridiem(hour, minute, isLower) {
  27363. var hm = hour * 100 + minute;
  27364. if (hm < 600) {
  27365. return '凌晨';
  27366. } else if (hm < 900) {
  27367. return '早上';
  27368. } else if (hm < 1130) {
  27369. return '上午';
  27370. } else if (hm < 1230) {
  27371. return '中午';
  27372. } else if (hm < 1800) {
  27373. return '下午';
  27374. } else {
  27375. return '晚上';
  27376. }
  27377. },
  27378. calendar: {
  27379. sameDay: '[今天]LT',
  27380. nextDay: '[明天]LT',
  27381. nextWeek: function nextWeek(now) {
  27382. if (now.week() !== this.week()) {
  27383. return '[下]dddLT';
  27384. } else {
  27385. return '[本]dddLT';
  27386. }
  27387. },
  27388. lastDay: '[昨天]LT',
  27389. lastWeek: function lastWeek(now) {
  27390. if (this.week() !== now.week()) {
  27391. return '[上]dddLT';
  27392. } else {
  27393. return '[本]dddLT';
  27394. }
  27395. },
  27396. sameElse: 'L' },
  27397. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  27398. ordinal: function ordinal(number, period) {
  27399. switch (period) {
  27400. case 'd':
  27401. case 'D':
  27402. case 'DDD':
  27403. return number + '日';
  27404. case 'M':
  27405. return number + '月';
  27406. case 'w':
  27407. case 'W':
  27408. return number + '周';
  27409. default:
  27410. return number;}
  27411. },
  27412. relativeTime: {
  27413. future: '%s后',
  27414. past: '%s前',
  27415. s: '几秒',
  27416. ss: '%d 秒',
  27417. m: '1 分钟',
  27418. mm: '%d 分钟',
  27419. h: '1 小时',
  27420. hh: '%d 小时',
  27421. d: '1 天',
  27422. dd: '%d 天',
  27423. w: '1 周',
  27424. ww: '%d 周',
  27425. M: '1 个月',
  27426. MM: '%d 个月',
  27427. y: '1 年',
  27428. yy: '%d 年' },
  27429. week: {
  27430. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  27431. dow: 1, // Monday is the first day of the week.
  27432. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27433. } });
  27434. return zhCn;
  27435. });
  27436. /***/ }),
  27437. /* 148 */
  27438. /*!******************************************************************************!*\
  27439. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/zh-hk.js ***!
  27440. \******************************************************************************/
  27441. /*! no static exports found */
  27442. /***/ (function(module, exports, __webpack_require__) {
  27443. //! moment.js locale configuration
  27444. //! locale : Chinese (Hong Kong) [zh-hk]
  27445. //! author : Ben : https://github.com/ben-lin
  27446. //! author : Chris Lam : https://github.com/hehachris
  27447. //! author : Konstantin : https://github.com/skfd
  27448. //! author : Anthony : https://github.com/anthonylau
  27449. ;(function (global, factory) {
  27450. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27451. undefined;
  27452. })(this, function (moment) {'use strict';
  27453. //! moment.js locale configuration
  27454. var zhHk = moment.defineLocale('zh-hk', {
  27455. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  27456. '_'),
  27457. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  27458. '_'),
  27459. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27460. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27461. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27462. longDateFormat: {
  27463. LT: 'HH:mm',
  27464. LTS: 'HH:mm:ss',
  27465. L: 'YYYY/MM/DD',
  27466. LL: 'YYYY年M月D日',
  27467. LLL: 'YYYY年M月D日 HH:mm',
  27468. LLLL: 'YYYY年M月D日dddd HH:mm',
  27469. l: 'YYYY/M/D',
  27470. ll: 'YYYY年M月D日',
  27471. lll: 'YYYY年M月D日 HH:mm',
  27472. llll: 'YYYY年M月D日dddd HH:mm' },
  27473. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27474. meridiemHour: function meridiemHour(hour, meridiem) {
  27475. if (hour === 12) {
  27476. hour = 0;
  27477. }
  27478. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27479. return hour;
  27480. } else if (meridiem === '中午') {
  27481. return hour >= 11 ? hour : hour + 12;
  27482. } else if (meridiem === '下午' || meridiem === '晚上') {
  27483. return hour + 12;
  27484. }
  27485. },
  27486. meridiem: function meridiem(hour, minute, isLower) {
  27487. var hm = hour * 100 + minute;
  27488. if (hm < 600) {
  27489. return '凌晨';
  27490. } else if (hm < 900) {
  27491. return '早上';
  27492. } else if (hm < 1200) {
  27493. return '上午';
  27494. } else if (hm === 1200) {
  27495. return '中午';
  27496. } else if (hm < 1800) {
  27497. return '下午';
  27498. } else {
  27499. return '晚上';
  27500. }
  27501. },
  27502. calendar: {
  27503. sameDay: '[今天]LT',
  27504. nextDay: '[明天]LT',
  27505. nextWeek: '[下]ddddLT',
  27506. lastDay: '[昨天]LT',
  27507. lastWeek: '[上]ddddLT',
  27508. sameElse: 'L' },
  27509. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27510. ordinal: function ordinal(number, period) {
  27511. switch (period) {
  27512. case 'd':
  27513. case 'D':
  27514. case 'DDD':
  27515. return number + '日';
  27516. case 'M':
  27517. return number + '月';
  27518. case 'w':
  27519. case 'W':
  27520. return number + '週';
  27521. default:
  27522. return number;}
  27523. },
  27524. relativeTime: {
  27525. future: '%s後',
  27526. past: '%s前',
  27527. s: '幾秒',
  27528. ss: '%d 秒',
  27529. m: '1 分鐘',
  27530. mm: '%d 分鐘',
  27531. h: '1 小時',
  27532. hh: '%d 小時',
  27533. d: '1 天',
  27534. dd: '%d 天',
  27535. M: '1 個月',
  27536. MM: '%d 個月',
  27537. y: '1 年',
  27538. yy: '%d 年' } });
  27539. return zhHk;
  27540. });
  27541. /***/ }),
  27542. /* 149 */
  27543. /*!******************************************************************************!*\
  27544. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/zh-mo.js ***!
  27545. \******************************************************************************/
  27546. /*! no static exports found */
  27547. /***/ (function(module, exports, __webpack_require__) {
  27548. //! moment.js locale configuration
  27549. //! locale : Chinese (Macau) [zh-mo]
  27550. //! author : Ben : https://github.com/ben-lin
  27551. //! author : Chris Lam : https://github.com/hehachris
  27552. //! author : Tan Yuanhong : https://github.com/le0tan
  27553. ;(function (global, factory) {
  27554. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27555. undefined;
  27556. })(this, function (moment) {'use strict';
  27557. //! moment.js locale configuration
  27558. var zhMo = moment.defineLocale('zh-mo', {
  27559. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  27560. '_'),
  27561. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  27562. '_'),
  27563. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27564. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27565. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27566. longDateFormat: {
  27567. LT: 'HH:mm',
  27568. LTS: 'HH:mm:ss',
  27569. L: 'DD/MM/YYYY',
  27570. LL: 'YYYY年M月D日',
  27571. LLL: 'YYYY年M月D日 HH:mm',
  27572. LLLL: 'YYYY年M月D日dddd HH:mm',
  27573. l: 'D/M/YYYY',
  27574. ll: 'YYYY年M月D日',
  27575. lll: 'YYYY年M月D日 HH:mm',
  27576. llll: 'YYYY年M月D日dddd HH:mm' },
  27577. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27578. meridiemHour: function meridiemHour(hour, meridiem) {
  27579. if (hour === 12) {
  27580. hour = 0;
  27581. }
  27582. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27583. return hour;
  27584. } else if (meridiem === '中午') {
  27585. return hour >= 11 ? hour : hour + 12;
  27586. } else if (meridiem === '下午' || meridiem === '晚上') {
  27587. return hour + 12;
  27588. }
  27589. },
  27590. meridiem: function meridiem(hour, minute, isLower) {
  27591. var hm = hour * 100 + minute;
  27592. if (hm < 600) {
  27593. return '凌晨';
  27594. } else if (hm < 900) {
  27595. return '早上';
  27596. } else if (hm < 1130) {
  27597. return '上午';
  27598. } else if (hm < 1230) {
  27599. return '中午';
  27600. } else if (hm < 1800) {
  27601. return '下午';
  27602. } else {
  27603. return '晚上';
  27604. }
  27605. },
  27606. calendar: {
  27607. sameDay: '[今天] LT',
  27608. nextDay: '[明天] LT',
  27609. nextWeek: '[下]dddd LT',
  27610. lastDay: '[昨天] LT',
  27611. lastWeek: '[上]dddd LT',
  27612. sameElse: 'L' },
  27613. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27614. ordinal: function ordinal(number, period) {
  27615. switch (period) {
  27616. case 'd':
  27617. case 'D':
  27618. case 'DDD':
  27619. return number + '日';
  27620. case 'M':
  27621. return number + '月';
  27622. case 'w':
  27623. case 'W':
  27624. return number + '週';
  27625. default:
  27626. return number;}
  27627. },
  27628. relativeTime: {
  27629. future: '%s內',
  27630. past: '%s前',
  27631. s: '幾秒',
  27632. ss: '%d 秒',
  27633. m: '1 分鐘',
  27634. mm: '%d 分鐘',
  27635. h: '1 小時',
  27636. hh: '%d 小時',
  27637. d: '1 天',
  27638. dd: '%d 天',
  27639. M: '1 個月',
  27640. MM: '%d 個月',
  27641. y: '1 年',
  27642. yy: '%d 年' } });
  27643. return zhMo;
  27644. });
  27645. /***/ }),
  27646. /* 150 */
  27647. /*!******************************************************************************!*\
  27648. !*** D:/meloinfo/sugarpark-mini-program/node_modules/moment/locale/zh-tw.js ***!
  27649. \******************************************************************************/
  27650. /*! no static exports found */
  27651. /***/ (function(module, exports, __webpack_require__) {
  27652. //! moment.js locale configuration
  27653. //! locale : Chinese (Taiwan) [zh-tw]
  27654. //! author : Ben : https://github.com/ben-lin
  27655. //! author : Chris Lam : https://github.com/hehachris
  27656. ;(function (global, factory) {
  27657. true ? factory(__webpack_require__(/*! ../moment */ 13)) :
  27658. undefined;
  27659. })(this, function (moment) {'use strict';
  27660. //! moment.js locale configuration
  27661. var zhTw = moment.defineLocale('zh-tw', {
  27662. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  27663. '_'),
  27664. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  27665. '_'),
  27666. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27667. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27668. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27669. longDateFormat: {
  27670. LT: 'HH:mm',
  27671. LTS: 'HH:mm:ss',
  27672. L: 'YYYY/MM/DD',
  27673. LL: 'YYYY年M月D日',
  27674. LLL: 'YYYY年M月D日 HH:mm',
  27675. LLLL: 'YYYY年M月D日dddd HH:mm',
  27676. l: 'YYYY/M/D',
  27677. ll: 'YYYY年M月D日',
  27678. lll: 'YYYY年M月D日 HH:mm',
  27679. llll: 'YYYY年M月D日dddd HH:mm' },
  27680. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27681. meridiemHour: function meridiemHour(hour, meridiem) {
  27682. if (hour === 12) {
  27683. hour = 0;
  27684. }
  27685. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27686. return hour;
  27687. } else if (meridiem === '中午') {
  27688. return hour >= 11 ? hour : hour + 12;
  27689. } else if (meridiem === '下午' || meridiem === '晚上') {
  27690. return hour + 12;
  27691. }
  27692. },
  27693. meridiem: function meridiem(hour, minute, isLower) {
  27694. var hm = hour * 100 + minute;
  27695. if (hm < 600) {
  27696. return '凌晨';
  27697. } else if (hm < 900) {
  27698. return '早上';
  27699. } else if (hm < 1130) {
  27700. return '上午';
  27701. } else if (hm < 1230) {
  27702. return '中午';
  27703. } else if (hm < 1800) {
  27704. return '下午';
  27705. } else {
  27706. return '晚上';
  27707. }
  27708. },
  27709. calendar: {
  27710. sameDay: '[今天] LT',
  27711. nextDay: '[明天] LT',
  27712. nextWeek: '[下]dddd LT',
  27713. lastDay: '[昨天] LT',
  27714. lastWeek: '[上]dddd LT',
  27715. sameElse: 'L' },
  27716. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27717. ordinal: function ordinal(number, period) {
  27718. switch (period) {
  27719. case 'd':
  27720. case 'D':
  27721. case 'DDD':
  27722. return number + '日';
  27723. case 'M':
  27724. return number + '月';
  27725. case 'w':
  27726. case 'W':
  27727. return number + '週';
  27728. default:
  27729. return number;}
  27730. },
  27731. relativeTime: {
  27732. future: '%s後',
  27733. past: '%s前',
  27734. s: '幾秒',
  27735. ss: '%d 秒',
  27736. m: '1 分鐘',
  27737. mm: '%d 分鐘',
  27738. h: '1 小時',
  27739. hh: '%d 小時',
  27740. d: '1 天',
  27741. dd: '%d 天',
  27742. M: '1 個月',
  27743. MM: '%d 個月',
  27744. y: '1 年',
  27745. yy: '%d 年' } });
  27746. return zhTw;
  27747. });
  27748. /***/ }),
  27749. /* 151 */
  27750. /*!******************************************************!*\
  27751. !*** D:/meloinfo/sugarpark-mini-program/util/api.js ***!
  27752. \******************************************************/
  27753. /*! no static exports found */
  27754. /***/ (function(module, exports, __webpack_require__) {
  27755. "use strict";
  27756. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _index = __webpack_require__(/*! @/util/index.js */ 12);var _bag;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;}
  27757. var req = {
  27758. /**
  27759. * 登录
  27760. */
  27761. login: {
  27762. call4VeriCode: function call4VeriCode(params) {return (0, _index.request)("/unified/call4VeriCode", 'POST', params);}, // 获取验证码
  27763. login: function login(params) {return (0, _index.request)("/unified/login", 'POST', params);}, // 登录
  27764. wxLogin: function wxLogin(params) {return (0, _index.request)("/unified/login", 'POST', params);}, // 微信手机号登录
  27765. saveSex: function saveSex(params) {return (0, _index.request)("/saveData1", 'POST', params);}, // 保存性别
  27766. saveFigure: function saveFigure(params) {return (0, _index.request)("/saveData2", 'POST', params);}, // 保存社交形象
  27767. saveDatum: function saveDatum(params) {return (0, _index.request)("/saveData3", 'POST', params);}, // 保存社交资料
  27768. saveCity: function saveCity(params) {return (0, _index.request)("/saveData4", 'POST', params);}, // 保存城市
  27769. saveWechat: function saveWechat(params) {return (0, _index.request)("/saveData5", 'POST', params);}, // 保存微信
  27770. popularCities: function popularCities(params) {return (0, _index.request)("/popularCities", 'POST', params);}, // 热门城市
  27771. upload: function upload(params) {return (0, _index.request)("/faceImage/upload", 'POST', params);}, //图片上传
  27772. randNick: function randNick(params) {return (0, _index.request)("/rdk", 'POST', params);}, //随机昵称
  27773. editPersonal: function editPersonal(params) {return (0, _index.request)("/editPersonal", 'POST', params);}, //个人资料编辑
  27774. labelsConfig: function labelsConfig(params) {return (0, _index.request)("/txmqgetUserWantedLabels", 'POST', params);}, //个人标签配置
  27775. editHead: function editHead(params) {return (0, _index.request)("/editHeadIcon", 'POST', params);} //更新头像
  27776. },
  27777. /**
  27778. * 通用
  27779. */
  27780. public: {
  27781. aliossToken: function aliossToken(params) {return (0, _index.request)("/alioss/token", 'POST', params);}, //阿里云直传token获取
  27782. aliossCdn: function aliossCdn(params) {return (0, _index.request)("/cdnConfig", 'POST', params);}, //获取阿里云上传cdn
  27783. videoProcess: function videoProcess(params) {return (0, _index.request)("/txmqpersonalPageHomeVideoProcessing", 'POST', params);}, //获取阿里云上传cdn
  27784. config: function config(params) {return (0, _index.request)("/lcds", 'POST', params);}, //通用字典查询字典-dicts,可用值:Careers,Hobbys,Hopes
  27785. ranking: function ranking(params) {return (0, _index.request)("/txmqhotRanking", 'POST', params);}, //排行榜
  27786. friends: function friends(params) {return (0, _index.request)("/loadFriendsListByIndex", 'POST', params);}, //排行榜
  27787. mine: function mine(params) {return (0, _index.request)("/lmtf", 'POST', params);}, //我的-个人资料
  27788. album: function album(params) {return (0, _index.request)("/auls", 'POST', params);}, //我的-个人相册
  27789. albumSort: function albumSort(params) {return (0, _index.request)("/resetMediaSeqs", 'POST', params);}, //相册排序
  27790. albumDelete: function albumDelete(params) {return (0, _index.request)("/rmvMedia", 'POST', params);}, //相册删除
  27791. albumAdd: function albumAdd(params) {return (0, _index.request)("/addMediaBatch", 'POST', params);}, //相册添加
  27792. cover: function cover(params) {return (0, _index.request)("/tpvp", 'POST', params);}, //我的-个人封面
  27793. mineDetail: function mineDetail(params) {return (0, _index.request)("/loadUserDetailSelf", 'POST', params);}, //自己用户详情
  27794. userDetail: function userDetail(params) {return (0, _index.request)("/loadUserDetailOther", 'POST', params);}, //他人用户详情
  27795. isLike: function isLike(params) {return (0, _index.request)("/juur", 'POST', params);}, //喜欢和拉黑
  27796. userData: function userData(params) {return (0, _index.request)("/txmqloadUsersByType", 'POST', params);}, //获取用户相关列表数字(个人中心[我喜欢,黑名单,喜欢我,我浏览,访客])(糖果公园专用接口)
  27797. guestor: function guestor(params) {return (0, _index.request)("/loadUsersByType", 'POST', params);}, //异性访客
  27798. priceBySceneConfigs: function priceBySceneConfigs(params) {return (0, _index.request)("/loadPriceBySceneConfigs", 'POST', params);}, //糖果、会员套餐基本配置
  27799. vipPromotions: function vipPromotions(params) {return (0, _index.request)("/listPromotionsPay", 'POST', params);}, //vip跑马灯
  27800. heartBeat: function heartBeat(params) {return (0, _index.request)("/heartbeat", 'POST', params);}, //心跳汇报
  27801. seeMaleDetail: function seeMaleDetail(params) {return (0, _index.request)("/vfdmo", 'POST', params);}, //女性看男性主页
  27802. seeFamaleDetail: function seeFamaleDetail(params) {return (0, _index.request)("/vmdfo", 'POST', params);}, //男性看女性主页
  27803. notifyActive: function notifyActive(params) {return (0, _index.request)("/activeNotifyOverview", 'POST', params);}, //互动通知最后一条消息以及总未读数
  27804. loadSystemMsgs: function loadSystemMsgs(params) {return (0, _index.request)("/loadSystemMsgs", 'POST', params);}, //系统消息列表
  27805. search: function search(params) {return (0, _index.request)("/loadUsersByIndex", 'POST', params);}, //搜索
  27806. friendsNoAuth: function friendsNoAuth(params) {return (0, _index.request)("/loadUsersByIndexFirstNoAuth", 'POST', params);} //无登录体验数据
  27807. },
  27808. pay: {
  27809. creatWxOrder: function creatWxOrder(params) {return (0, _index.request)("/createWxpayOrderByMiniProgram", 'POST', params);} //创建微信订单
  27810. },
  27811. IM: {
  27812. loadSig: function loadSig(params) {return (0, _index.request)("/loadSig", 'POST', params);} //创建微信订单
  27813. },
  27814. /**
  27815. * 提现
  27816. */
  27817. bag: (_bag = {
  27818. loadMyWithdrawalInfo: function loadMyWithdrawalInfo(params) {return (0, _index.request)("/bag/loadMyWithdrawalInfo", 'POST', params);}, // 提现相关信息
  27819. my: function my(params) {return (0, _index.request)("/bag/my", 'POST', params);}, // 我的提现详情
  27820. incomeList: function incomeList(params) {return (0, _index.request)("/bag/incomeList", params);}, // 收益明细
  27821. loadMyWithdrawRecords: function loadMyWithdrawRecords(params) {return (0, _index.request)("/bag/loadMyWithdrawRecords", 'POST', 'POST', params);}, // 提现记录
  27822. coinList: function coinList(params) {return (0, _index.request)("/bag/coinList", 'POST', params);}, // 颜豆明细
  27823. editAlipay: function editAlipay(params) {return (0, _index.request)("/bag/editAlipay", 'POST', params);}, // 绑定支付宝账号
  27824. createWithdrawalOrder: function createWithdrawalOrder(params) {return (0, _index.request)("/bag/createWithdrawalOrder", 'POST', params);}, // 创建提现订单
  27825. isEffectiveWithdrawalOrder: function isEffectiveWithdrawalOrder(params) {return (0, _index.request)("/bag/isEffectiveWithdrawalOrder", 'POST', params);}, // 检查提现订单是否有效
  27826. submitWithdrawalOrder: function submitWithdrawalOrder(params) {return (0, _index.request)("/bag/submitWithdrawalOrder", 'POST', params);}, // 提交提现订单
  27827. createIncomeOrder: function createIncomeOrder(params) {return (0, _index.request)("/bag/createIncomeOrder", 'POST', params);}, //创建收益兑换颜豆订单
  27828. submitIncomeOrder: function submitIncomeOrder(params) {return (0, _index.request)("/bag/submitIncomeOrder", 'POST', params);} }, _defineProperty(_bag, "editAlipay",
  27829. function editAlipay(params) {return (0, _index.request)("/bag/editAlipay", 'POST', params);}), _defineProperty(_bag, "loadMyWithdrawDetail",
  27830. function loadMyWithdrawDetail(params) {return (0, _index.request)("/bag/loadMyWithdrawDetail", 'POST', params);}), _bag) };var _default =
  27831. req;exports.default = _default;
  27832. /***/ }),
  27833. /* 152 */,
  27834. /* 153 */,
  27835. /* 154 */,
  27836. /* 155 */,
  27837. /* 156 */,
  27838. /* 157 */,
  27839. /* 158 */
  27840. /*!*****************************************************************************************!*\
  27841. !*** D:/meloinfo/sugarpark-mini-program/static/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.min.js ***!
  27842. \*****************************************************************************************/
  27843. /*! no static exports found */
  27844. /***/ (function(module, exports) {
  27845. 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 ERROR_CONF = { KEY_ERR: 311, KEY_ERR_MSG: 'key格式错误', PARAM_ERR: 310, PARAM_ERR_MSG: '请求参数信息有误', SYSTEM_ERR: 600, SYSTEM_ERR_MSG: '系统错误', WX_ERR_CODE: 1000, WX_OK_CODE: 200 };var BASE_URL = 'https://apis.map.qq.com/ws/';var URL_SEARCH = BASE_URL + 'place/v1/search';var URL_SUGGESTION = BASE_URL + 'place/v1/suggestion';var URL_GET_GEOCODER = BASE_URL + 'geocoder/v1/';var URL_CITY_LIST = BASE_URL + 'district/v1/list';var URL_AREA_LIST = BASE_URL + 'district/v1/getchildren';var URL_DISTANCE = BASE_URL + 'distance/v1/';var URL_DIRECTION = BASE_URL + 'direction/v1/';var MODE = { driving: 'driving', transit: 'transit' };var EARTH_RADIUS = 6378136.49;var Utils = { safeAdd: function safeAdd(x, y) {var lsw = (x & 0xffff) + (y & 0xffff);var msw = (x >> 16) + (y >> 16) + (lsw >> 16);return msw << 16 | lsw & 0xffff;}, bitRotateLeft: function bitRotateLeft(num, cnt) {return num << cnt | num >>> 32 - cnt;}, md5cmn: function md5cmn(q, a, b, x, s, t) {return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(a, q), this.safeAdd(x, t)), s), b);}, md5ff: function md5ff(a, b, c, d, x, s, t) {return this.md5cmn(b & c | ~b & d, a, b, x, s, t);}, md5gg: function md5gg(a, b, c, d, x, s, t) {return this.md5cmn(b & d | c & ~d, a, b, x, s, t);}, md5hh: function md5hh(a, b, c, d, x, s, t) {return this.md5cmn(b ^ c ^ d, a, b, x, s, t);}, md5ii: function md5ii(a, b, c, d, x, s, t) {return this.md5cmn(c ^ (b | ~d), a, b, x, s, t);}, binlMD5: function binlMD5(x, len) {x[len >> 5] |= 0x80 << len % 32;x[(len + 64 >>> 9 << 4) + 14] = len;var i;var olda;var oldb;var oldc;var oldd;var a = 1732584193;var b = -271733879;var c = -1732584194;var d = 271733878;for (i = 0; i < x.length; i += 16) {olda = a;oldb = b;oldc = c;oldd = d;a = this.md5ff(a, b, c, d, x[i], 7, -680876936);d = this.md5ff(d, a, b, c, x[i + 1], 12, -389564586);c = this.md5ff(c, d, a, b, x[i + 2], 17, 606105819);b = this.md5ff(b, c, d, a, x[i + 3], 22, -1044525330);a = this.md5ff(a, b, c, d, x[i + 4], 7, -176418897);d = this.md5ff(d, a, b, c, x[i + 5], 12, 1200080426);c = this.md5ff(c, d, a, b, x[i + 6], 17, -1473231341);b = this.md5ff(b, c, d, a, x[i + 7], 22, -45705983);a = this.md5ff(a, b, c, d, x[i + 8], 7, 1770035416);d = this.md5ff(d, a, b, c, x[i + 9], 12, -1958414417);c = this.md5ff(c, d, a, b, x[i + 10], 17, -42063);b = this.md5ff(b, c, d, a, x[i + 11], 22, -1990404162);a = this.md5ff(a, b, c, d, x[i + 12], 7, 1804603682);d = this.md5ff(d, a, b, c, x[i + 13], 12, -40341101);c = this.md5ff(c, d, a, b, x[i + 14], 17, -1502002290);b = this.md5ff(b, c, d, a, x[i + 15], 22, 1236535329);a = this.md5gg(a, b, c, d, x[i + 1], 5, -165796510);d = this.md5gg(d, a, b, c, x[i + 6], 9, -1069501632);c = this.md5gg(c, d, a, b, x[i + 11], 14, 643717713);b = this.md5gg(b, c, d, a, x[i], 20, -373897302);a = this.md5gg(a, b, c, d, x[i + 5], 5, -701558691);d = this.md5gg(d, a, b, c, x[i + 10], 9, 38016083);c = this.md5gg(c, d, a, b, x[i + 15], 14, -660478335);b = this.md5gg(b, c, d, a, x[i + 4], 20, -405537848);a = this.md5gg(a, b, c, d, x[i + 9], 5, 568446438);d = this.md5gg(d, a, b, c, x[i + 14], 9, -1019803690);c = this.md5gg(c, d, a, b, x[i + 3], 14, -187363961);b = this.md5gg(b, c, d, a, x[i + 8], 20, 1163531501);a = this.md5gg(a, b, c, d, x[i + 13], 5, -1444681467);d = this.md5gg(d, a, b, c, x[i + 2], 9, -51403784);c = this.md5gg(c, d, a, b, x[i + 7], 14, 1735328473);b = this.md5gg(b, c, d, a, x[i + 12], 20, -1926607734);a = this.md5hh(a, b, c, d, x[i + 5], 4, -378558);d = this.md5hh(d, a, b, c, x[i + 8], 11, -2022574463);c = this.md5hh(c, d, a, b, x[i + 11], 16, 1839030562);b = this.md5hh(b, c, d, a, x[i + 14], 23, -35309556);a = this.md5hh(a, b, c, d, x[i + 1], 4, -1530992060);d = this.md5hh(d, a, b, c, x[i + 4], 11, 1272893353);c = this.md5hh(c, d, a, b, x[i + 7], 16, -155497632);b = this.md5hh(b, c, d, a, x[i + 10], 23, -1094730640);a = this.md5hh(a, b, c, d, x[i + 13], 4, 681279174);d = this.md5hh(d, a, b, c, x[i], 11, -358537222);c = this.md5hh(c, d, a, b, x[i + 3], 16, -722521979);b = this.md5hh(b, c, d, a, x[i + 6], 23, 76029189);a = this.md5hh(a, b, c, d, x[i + 9], 4, -640364487);d = this.md5hh(d, a, b, c, x[i + 12], 11, -421815835);c = this.md5hh(c, d, a, b, x[i + 15], 16, 530742520);b = this.md5hh(b, c, d, a, x[i + 2], 23, -995338651);a = this.md5ii(a, b, c, d, x[i], 6, -198630844);d = this.md5ii(d, a, b, c, x[i + 7], 10, 1126891415);c = this.md5ii(c, d, a, b, x[i + 14], 15, -1416354905);b = this.md5ii(b, c, d, a, x[i + 5], 21, -57434055);a = this.md5ii(a, b, c, d, x[i + 12], 6, 1700485571);d = this.md5ii(d, a, b, c, x[i + 3], 10, -1894986606);c = this.md5ii(c, d, a, b, x[i + 10], 15, -1051523);b = this.md5ii(b, c, d, a, x[i + 1], 21, -2054922799);a = this.md5ii(a, b, c, d, x[i + 8], 6, 1873313359);d = this.md5ii(d, a, b, c, x[i + 15], 10, -30611744);c = this.md5ii(c, d, a, b, x[i + 6], 15, -1560198380);b = this.md5ii(b, c, d, a, x[i + 13], 21, 1309151649);a = this.md5ii(a, b, c, d, x[i + 4], 6, -145523070);d = this.md5ii(d, a, b, c, x[i + 11], 10, -1120210379);c = this.md5ii(c, d, a, b, x[i + 2], 15, 718787259);b = this.md5ii(b, c, d, a, x[i + 9], 21, -343485551);a = this.safeAdd(a, olda);b = this.safeAdd(b, oldb);c = this.safeAdd(c, oldc);d = this.safeAdd(d, oldd);}return [a, b, c, d];}, binl2rstr: function binl2rstr(input) {var i;var output = '';var length32 = input.length * 32;for (i = 0; i < length32; i += 8) {output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);}return output;}, rstr2binl: function rstr2binl(input) {var i;var output = [];output[(input.length >> 2) - 1] = undefined;for (i = 0; i < output.length; i += 1) {output[i] = 0;}var length8 = input.length * 8;for (i = 0; i < length8; i += 8) {output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;}return output;}, rstrMD5: function rstrMD5(s) {return this.binl2rstr(this.binlMD5(this.rstr2binl(s), s.length * 8));}, rstrHMACMD5: function rstrHMACMD5(key, data) {var i;var bkey = this.rstr2binl(key);var ipad = [];var opad = [];var hash;ipad[15] = opad[15] = undefined;if (bkey.length > 16) {bkey = this.binlMD5(bkey, key.length * 8);}for (i = 0; i < 16; i += 1) {ipad[i] = bkey[i] ^ 0x36363636;opad[i] = bkey[i] ^ 0x5c5c5c5c;}hash = this.binlMD5(ipad.concat(this.rstr2binl(data)), 512 + data.length * 8);return this.binl2rstr(this.binlMD5(opad.concat(hash), 512 + 128));}, rstr2hex: function rstr2hex(input) {var hexTab = '0123456789abcdef';var output = '';var x;var i;for (i = 0; i < input.length; i += 1) {x = input.charCodeAt(i);output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);}return output;}, str2rstrUTF8: function str2rstrUTF8(input) {return unescape(encodeURIComponent(input));}, rawMD5: function rawMD5(s) {return this.rstrMD5(this.str2rstrUTF8(s));}, hexMD5: function hexMD5(s) {return this.rstr2hex(this.rawMD5(s));}, rawHMACMD5: function rawHMACMD5(k, d) {return this.rstrHMACMD5(this.str2rstrUTF8(k), str2rstrUTF8(d));}, hexHMACMD5: function hexHMACMD5(k, d) {return this.rstr2hex(this.rawHMACMD5(k, d));}, md5: function md5(string, key, raw) {if (!key) {if (!raw) {return this.hexMD5(string);}return this.rawMD5(string);}if (!raw) {return this.hexHMACMD5(key, string);}return this.rawHMACMD5(key, string);}, getSig: function getSig(requestParam, sk, feature, mode) {var sig = null;var requestArr = [];Object.keys(requestParam).sort().forEach(function (key) {requestArr.push(key + '=' + requestParam[key]);});if (feature == 'search') {sig = '/ws/place/v1/search?' + requestArr.join('&') + sk;}if (feature == 'suggest') {sig = '/ws/place/v1/suggestion?' + requestArr.join('&') + sk;}if (feature == 'reverseGeocoder') {sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;}if (feature == 'geocoder') {sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;}if (feature == 'getCityList') {sig = '/ws/district/v1/list?' + requestArr.join('&') + sk;}if (feature == 'getDistrictByCityId') {sig = '/ws/district/v1/getchildren?' + requestArr.join('&') + sk;}if (feature == 'calculateDistance') {sig = '/ws/distance/v1/?' + requestArr.join('&') + sk;}if (feature == 'direction') {sig = '/ws/direction/v1/' + mode + '?' + requestArr.join('&') + sk;}sig = this.md5(sig);return sig;}, location2query: function location2query(data) {if (typeof data == 'string') {return data;}var query = '';for (var i = 0; i < data.length; i++) {var d = data[i];if (!!query) {query += ';';}if (d.location) {query = query + d.location.lat + ',' + d.location.lng;}if (d.latitude && d.longitude) {query = query + d.latitude + ',' + d.longitude;}}return query;}, rad: function rad(d) {return d * Math.PI / 180.0;}, getEndLocation: function getEndLocation(location) {var to = location.split(';');var endLocation = [];for (var i = 0; i < to.length; i++) {endLocation.push({ lat: parseFloat(to[i].split(',')[0]), lng: parseFloat(to[i].split(',')[1]) });}return endLocation;}, getDistance: function getDistance(latFrom, lngFrom, latTo, lngTo) {var radLatFrom = this.rad(latFrom);var radLatTo = this.rad(latTo);var a = radLatFrom - radLatTo;var b = this.rad(lngFrom) - this.rad(lngTo);var distance = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLatFrom) * Math.cos(radLatTo) * Math.pow(Math.sin(b / 2), 2)));distance = distance * EARTH_RADIUS;distance = Math.round(distance * 10000) / 10000;return parseFloat(distance.toFixed(0));}, getWXLocation: function getWXLocation(success, fail, complete) {wx.getFuzzyLocation({ type: 'gcj02', success: success, fail: fail, complete: complete });}, getLocationParam: function getLocationParam(location) {if (typeof location == 'string') {var locationArr = location.split(',');if (locationArr.length === 2) {location = { latitude: location.split(',')[0], longitude: location.split(',')[1] };} else {location = {};}}return location;}, polyfillParam: function polyfillParam(param) {param.success = param.success || function () {};param.fail = param.fail || function () {};param.complete = param.complete || function () {};}, checkParamKeyEmpty: function checkParamKeyEmpty(param, key) {if (!param[key]) {var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + key + '参数格式有误');param.fail(errconf);param.complete(errconf);return true;}return false;}, checkKeyword: function checkKeyword(param) {return !this.checkParamKeyEmpty(param, 'keyword');}, checkLocation: function checkLocation(param) {var location = this.getLocationParam(param.location);if (!location || !location.latitude || !location.longitude) {var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + ' location参数格式有误');param.fail(errconf);param.complete(errconf);return false;}return true;}, buildErrorConfig: function buildErrorConfig(errCode, errMsg) {return { status: errCode, message: errMsg };}, handleData: function handleData(param, data, feature) {if (feature == 'search') {var searchResult = data.data;var searchSimplify = [];for (var i = 0; i < searchResult.length; i++) {searchSimplify.push({ id: searchResult[i].id || null, title: searchResult[i].title || null, latitude: searchResult[i].location && searchResult[i].location.lat || null, longitude: searchResult[i].location && searchResult[i].location.lng || null, address: searchResult[i].address || null, category: searchResult[i].category || null, tel: searchResult[i].tel || null, adcode: searchResult[i].ad_info && searchResult[i].ad_info.adcode || null, city: searchResult[i].ad_info && searchResult[i].ad_info.city || null, district: searchResult[i].ad_info && searchResult[i].ad_info.district || null, province: searchResult[i].ad_info && searchResult[i].ad_info.province || null });}param.success(data, { searchResult: searchResult, searchSimplify: searchSimplify });} else if (feature == 'suggest') {var suggestResult = data.data;var suggestSimplify = [];for (var i = 0; i < suggestResult.length; i++) {suggestSimplify.push({ adcode: suggestResult[i].adcode || null, address: suggestResult[i].address || null, category: suggestResult[i].category || null, city: suggestResult[i].city || null, district: suggestResult[i].district || null, id: suggestResult[i].id || null, latitude: suggestResult[i].location && suggestResult[i].location.lat || null, longitude: suggestResult[i].location && suggestResult[i].location.lng || null, province: suggestResult[i].province || null, title: suggestResult[i].title || null, type: suggestResult[i].type || null });}param.success(data, { suggestResult: suggestResult, suggestSimplify: suggestSimplify });} else if (feature == 'reverseGeocoder') {var reverseGeocoderResult = data.result;var reverseGeocoderSimplify = { address: reverseGeocoderResult.address || null, latitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lat || null, longitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lng || null, adcode: reverseGeocoderResult.ad_info && reverseGeocoderResult.ad_info.adcode || null, city: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.city || null, district: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.district || null, nation: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.nation || null, province: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.province || null, street: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street || null, street_number: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street_number || null, recommend: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.recommend || null, rough: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.rough || null };if (reverseGeocoderResult.pois) {var pois = reverseGeocoderResult.pois;var poisSimplify = [];for (var i = 0; i < pois.length; i++) {poisSimplify.push({ id: pois[i].id || null, title: pois[i].title || null, latitude: pois[i].location && pois[i].location.lat || null, longitude: pois[i].location && pois[i].location.lng || null, address: pois[i].address || null, category: pois[i].category || null, adcode: pois[i].ad_info && pois[i].ad_info.adcode || null, city: pois[i].ad_info && pois[i].ad_info.city || null, district: pois[i].ad_info && pois[i].ad_info.district || null, province: pois[i].ad_info && pois[i].ad_info.province || null });}param.success(data, { reverseGeocoderResult: reverseGeocoderResult, reverseGeocoderSimplify: reverseGeocoderSimplify, pois: pois, poisSimplify: poisSimplify });} else {param.success(data, { reverseGeocoderResult: reverseGeocoderResult, reverseGeocoderSimplify: reverseGeocoderSimplify });}} else if (feature == 'geocoder') {var geocoderResult = data.result;var geocoderSimplify = { title: geocoderResult.title || null, latitude: geocoderResult.location && geocoderResult.location.lat || null, longitude: geocoderResult.location && geocoderResult.location.lng || null, adcode: geocoderResult.ad_info && geocoderResult.ad_info.adcode || null, province: geocoderResult.address_components && geocoderResult.address_components.province || null, city: geocoderResult.address_components && geocoderResult.address_components.city || null, district: geocoderResult.address_components && geocoderResult.address_components.district || null, street: geocoderResult.address_components && geocoderResult.address_components.street || null, street_number: geocoderResult.address_components && geocoderResult.address_components.street_number || null, level: geocoderResult.level || null };param.success(data, { geocoderResult: geocoderResult, geocoderSimplify: geocoderSimplify });} else if (feature == 'getCityList') {var provinceResult = data.result[0];var cityResult = data.result[1];var districtResult = data.result[2];param.success(data, { provinceResult: provinceResult, cityResult: cityResult, districtResult: districtResult });} else if (feature == 'getDistrictByCityId') {var districtByCity = data.result[0];param.success(data, districtByCity);} else if (feature == 'calculateDistance') {var calculateDistanceResult = data.result.elements;var distance = [];for (var i = 0; i < calculateDistanceResult.length; i++) {distance.push(calculateDistanceResult[i].distance);}param.success(data, { calculateDistanceResult: calculateDistanceResult, distance: distance });} else if (feature == 'direction') {var direction = data.result.routes;param.success(data, direction);} else {param.success(data);}}, buildWxRequestConfig: function buildWxRequestConfig(param, options, feature) {var that = this;options.header = { "content-type": "application/json" };options.method = 'GET';options.success = function (res) {var data = res.data;if (data.status === 0) {that.handleData(param, data, feature);} else {param.fail(data);}};options.fail = function (res) {res.statusCode = ERROR_CONF.WX_ERR_CODE;param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));};options.complete = function (res) {var statusCode = +res.statusCode;switch (statusCode) {case ERROR_CONF.WX_ERR_CODE:{param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));break;}case ERROR_CONF.WX_OK_CODE:{var data = res.data;if (data.status === 0) {param.complete(data);} else {param.complete(that.buildErrorConfig(data.status, data.message));}break;}default:{param.complete(that.buildErrorConfig(ERROR_CONF.SYSTEM_ERR, ERROR_CONF.SYSTEM_ERR_MSG));}}};return options;}, locationProcess: function locationProcess(param, locationsuccess, locationfail, locationcomplete) {var that = this;locationfail = locationfail || function (res) {res.statusCode = ERROR_CONF.WX_ERR_CODE;param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));};locationcomplete = locationcomplete || function (res) {if (res.statusCode == ERROR_CONF.WX_ERR_CODE) {param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));}};if (!param.location) {that.getWXLocation(locationsuccess, locationfail, locationcomplete);} else if (that.checkLocation(param)) {var location = Utils.getLocationParam(param.location);locationsuccess(location);}} };var QQMapWX = /*#__PURE__*/function () {"use strict";function QQMapWX(options) {_classCallCheck(this, QQMapWX);if (!options.key) {throw Error('key值不能为空');}this.key = options.key;}_createClass(QQMapWX, [{ key: "search", value: function search(options) {var that = this;options = options || {};Utils.polyfillParam(options);if (!Utils.checkKeyword(options)) {return;}var requestParam = { keyword: options.keyword, orderby: options.orderby || '_distance', page_size: options.page_size || 10, page_index: options.page_index || 1, output: 'json', key: that.key };if (options.address_format) {requestParam.address_format = options.address_format;}if (options.filter) {requestParam.filter = options.filter;}var distance = options.distance || "1000";var auto_extend = options.auto_extend || 1;var region = null;var rectangle = null;if (options.region) {region = options.region;}if (options.rectangle) {rectangle = options.rectangle;}var locationsuccess = function locationsuccess(result) {if (region && !rectangle) {requestParam.boundary = "region(" + region + "," + auto_extend + "," + result.latitude + "," + result.longitude + ")";if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');}} else if (rectangle && !region) {requestParam.boundary = "rectangle(" + rectangle + ")";if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');}} else {requestParam.boundary = "nearby(" + result.latitude + "," + result.longitude + "," + distance + "," + auto_extend + ")";if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');}}wx.request(Utils.buildWxRequestConfig(options, { url: URL_SEARCH, data: requestParam }, 'search'));};Utils.locationProcess(options, locationsuccess);} }, { key: "getSuggestion", value: function getSuggestion(options) {var that = this;options = options || {};Utils.polyfillParam(options);if (!Utils.checkKeyword(options)) {return;}var requestParam = { keyword: options.keyword, region: options.region || '全国', region_fix: options.region_fix || 0, policy: options.policy || 0, page_size: options.page_size || 10, page_index: options.page_index || 1, get_subpois: options.get_subpois || 0, output: 'json', key: that.key };if (options.address_format) {requestParam.address_format = options.address_format;}if (options.filter) {requestParam.filter = options.filter;}if (options.location) {var locationsuccess = function locationsuccess(result) {requestParam.location = result.latitude + ',' + result.longitude;if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');}wx.request(Utils.buildWxRequestConfig(options, { url: URL_SUGGESTION, data: requestParam }, "suggest"));};Utils.locationProcess(options, locationsuccess);} else {if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');}wx.request(Utils.buildWxRequestConfig(options, { url: URL_SUGGESTION, data: requestParam }, "suggest"));}} }, { key: "reverseGeocoder", value: function reverseGeocoder(options) {var that = this;options = options || {};Utils.polyfillParam(options);var requestParam = { coord_type: options.coord_type || 5, get_poi: options.get_poi || 0, output: 'json', key: that.key };if (options.poi_options) {requestParam.poi_options = options.poi_options;}var locationsuccess = function locationsuccess(result) {requestParam.location = result.latitude + ',' + result.longitude;if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'reverseGeocoder');}wx.request(Utils.buildWxRequestConfig(options, { url: URL_GET_GEOCODER, data: requestParam }, 'reverseGeocoder'));};Utils.locationProcess(options, locationsuccess);} }, { key: "geocoder", value: function geocoder(options) {var that = this;options = options || {};Utils.polyfillParam(options);if (Utils.checkParamKeyEmpty(options, 'address')) {return;}var requestParam = { address: options.address, output: 'json', key: that.key };if (options.region) {requestParam.region = options.region;}if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'geocoder');}wx.request(Utils.buildWxRequestConfig(options, { url: URL_GET_GEOCODER, data: requestParam }, 'geocoder'));} }, { key: "getCityList", value: function getCityList(options) {var that = this;options = options || {};Utils.polyfillParam(options);var requestParam = { output: 'json', key: that.key };if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'getCityList');}wx.request(Utils.buildWxRequestConfig(options, { url: URL_CITY_LIST, data: requestParam }, 'getCityList'));} }, { key: "getDistrictByCityId", value: function getDistrictByCityId(options) {var that = this;options = options || {};Utils.polyfillParam(options);if (Utils.checkParamKeyEmpty(options, 'id')) {return;}var requestParam = { id: options.id || '', output: 'json', key: that.key };if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'getDistrictByCityId');}wx.request(Utils.buildWxRequestConfig(options, { url: URL_AREA_LIST, data: requestParam }, 'getDistrictByCityId'));} }, { key: "calculateDistance", value: function calculateDistance(options) {var that = this;options = options || {};Utils.polyfillParam(options);if (Utils.checkParamKeyEmpty(options, 'to')) {return;}var requestParam = { mode: options.mode || 'walking', to: Utils.location2query(options.to), output: 'json', key: that.key };if (options.from) {options.location = options.from;}if (requestParam.mode == 'straight') {var locationsuccess = function locationsuccess(result) {var locationTo = Utils.getEndLocation(requestParam.to);var data = { message: "query ok", result: { elements: [] }, status: 0 };for (var i = 0; i < locationTo.length; i++) {data.result.elements.push({ distance: Utils.getDistance(result.latitude, result.longitude, locationTo[i].lat, locationTo[i].lng), duration: 0, from: { lat: result.latitude, lng: result.longitude }, to: { lat: locationTo[i].lat, lng: locationTo[i].lng } });}var calculateResult = data.result.elements;var distanceResult = [];for (var i = 0; i < calculateResult.length; i++) {distanceResult.push(calculateResult[i].distance);}return options.success(data, { calculateResult: calculateResult, distanceResult: distanceResult });};Utils.locationProcess(options, locationsuccess);} else {var locationsuccess = function locationsuccess(result) {requestParam.from = result.latitude + ',' + result.longitude;if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'calculateDistance');}wx.request(Utils.buildWxRequestConfig(options, { url: URL_DISTANCE, data: requestParam }, 'calculateDistance'));};Utils.locationProcess(options, locationsuccess);}} }, { key: "direction", value: function direction(options) {var that = this;options = options || {};Utils.polyfillParam(options);if (Utils.checkParamKeyEmpty(options, 'to')) {return;}var requestParam = { output: 'json', key: that.key };if (typeof options.to == 'string') {requestParam.to = options.to;} else {requestParam.to = options.to.latitude + ',' + options.to.longitude;}var SET_URL_DIRECTION = null;options.mode = options.mode || MODE.driving;SET_URL_DIRECTION = URL_DIRECTION + options.mode;if (options.from) {options.location = options.from;}if (options.mode == MODE.driving) {if (options.from_poi) {requestParam.from_poi = options.from_poi;}if (options.heading) {requestParam.heading = options.heading;}if (options.speed) {requestParam.speed = options.speed;}if (options.accuracy) {requestParam.accuracy = options.accuracy;}if (options.road_type) {requestParam.road_type = options.road_type;}if (options.to_poi) {requestParam.to_poi = options.to_poi;}if (options.from_track) {requestParam.from_track = options.from_track;}if (options.waypoints) {requestParam.waypoints = options.waypoints;}if (options.policy) {requestParam.policy = options.policy;}if (options.plate_number) {requestParam.plate_number = options.plate_number;}}if (options.mode == MODE.transit) {if (options.departure_time) {requestParam.departure_time = options.departure_time;}if (options.policy) {requestParam.policy = options.policy;}}var locationsuccess = function locationsuccess(result) {requestParam.from = result.latitude + ',' + result.longitude;if (options.sig) {requestParam.sig = Utils.getSig(requestParam, options.sig, 'direction', options.mode);}wx.request(Utils.buildWxRequestConfig(options, { url: SET_URL_DIRECTION, data: requestParam }, 'direction'));};Utils.locationProcess(options, locationsuccess);} }]);return QQMapWX;}();;module.exports = QQMapWX;
  27846. /***/ }),
  27847. /* 159 */
  27848. /*!****************************************************************************!*\
  27849. !*** D:/meloinfo/sugarpark-mini-program/node_modules/tim-wx-sdk/tim-wx.js ***!
  27850. \****************************************************************************/
  27851. /*! no static exports found */
  27852. /***/ (function(module, exports, __webpack_require__) {
  27853. "use strict";
  27854. /* WEBPACK VAR INJECTION */(function(global, uni) {!function(e,t){ true?module.exports=t():undefined;}(this,function(){function e(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable;})),o.push.apply(o,n);}return o;}function t(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach(function(e){r(t,e,n[e]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));});}return t;}function o(e){return(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;})(e);}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}function s(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;}function r(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e;}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t);}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e);})(e);}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e;})(e,t);}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0;}catch(e){return!1;}}function d(e,t,o){return(d=l()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n))();return o&&u(a,o.prototype),a;}).apply(null,arguments);}function p(e){var t="function"==typeof Map?new Map():void 0;return(p=function p(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n);}function n(){return d(e,arguments,c(this).constructor);}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e);})(e);}function _(e,t){if(null==e)return{};var o,n,a=function(e,t){if(null==e)return{};var o,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++){o=s[n],t.indexOf(o)>=0||(a[o]=e[o]);}return a;}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++){o=s[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o]);}}return a;}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e);}function f(e){var t=l();return function(){var o,n=c(e);if(t){var a=c(this).constructor;o=Reflect.construct(n,arguments,a);}else o=n.apply(this,arguments);return h(this,o);};}function m(e,t){return v(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==o)return;var n,a,s=[],r=!0,i=!1;try{for(o=o.call(e);!(r=(n=o.next()).done)&&(s.push(n.value),!t||s.length!==t);r=!0){;}}catch(c){i=!0,a=c;}finally{try{r||null==o.return||o.return();}finally{if(i)throw a;}}return s;}(e,t)||y(e,t)||E();}function M(e){return function(e){if(Array.isArray(e))return T(e);}(e)||I(e)||y(e)||function(){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 v(e){if(Array.isArray(e))return e;}function I(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e);}function y(e,t){if(e){if("string"==typeof e)return T(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?T(e,t):void 0;}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++){n[o]=e[o];}return n;}function E(){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 C(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=y(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var _n2=0,a=function a(){};return{s:a,n:function n(){return _n2>=e.length?{done:!0}:{done:!1,value:e[_n2++]};},e:function e(_e2){throw _e2;},f:a};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var s,r=!0,i=!1;return{s:function s(){o=o.call(e);},n:function n(){var e=o.next();return r=e.done,e;},e:function e(_e3){i=!0,s=_e3;},f:function f(){try{r||null==o.return||o.return();}finally{if(i)throw s;}}};}var S={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",CONVERSATION_GROUP_LIST_UPDATED:"onConversationGroupListUpdated",CONVERSATION_IN_GROUP_UPDATED:"onConversationInGroupUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",TOPIC_CREATED:"onTopicCreated",TOPIC_DELETED:"onTopicDeleted",TOPIC_UPDATED:"onTopicUpdated",PROFILE_UPDATED:"onProfileUpdated",USER_STATUS_UPDATED:"onUserStatusUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},D={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_TOPIC:"TOPIC",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",KICKED_OUT_REST_API:"REST_API_Kick",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3},N=function(){function e(){n(this,e),this.cache=[],this.options=null;}return s(e,[{key:"use",value:function value(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this;}},{key:"next",value:function value(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this));}},{key:"run",value:function value(e){return this.middlewares=this.cache.map(function(e){return e;}),this.options=e,this.next();}}]),e;}(),A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O(e,t){return e(t={exports:{}},t.exports),t.exports;}var R=O(function(e,t){var o,n,a,s,r,i,c,u,l,d,p,_,g,h,f,m,M,v;e.exports=(o="function"==typeof Promise,n="object"==typeof self?self:A,a="undefined"!=typeof Symbol,s="undefined"!=typeof Map,r="undefined"!=typeof Set,i="undefined"!=typeof WeakMap,c="undefined"!=typeof WeakSet,u="undefined"!=typeof DataView,l=a&&void 0!==Symbol.iterator,d=a&&void 0!==Symbol.toStringTag,p=r&&"function"==typeof Set.prototype.entries,_=s&&"function"==typeof Map.prototype.entries,g=p&&Object.getPrototypeOf(new Set().entries()),h=_&&Object.getPrototypeOf(new Map().entries()),f=l&&"function"==typeof Array.prototype[Symbol.iterator],m=f&&Object.getPrototypeOf([][Symbol.iterator]()),M=l&&"function"==typeof String.prototype[Symbol.iterator],v=M&&Object.getPrototypeOf(""[Symbol.iterator]()),function(e){var t=typeof e;if("object"!==t)return t;if(null===e)return"null";if(e===n)return"global";if(Array.isArray(e)&&(!1===d||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray";}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement";}}var a=d&&e[Symbol.toStringTag];if("string"==typeof a)return a;var l=Object.getPrototypeOf(e);return l===RegExp.prototype?"RegExp":l===Date.prototype?"Date":o&&l===Promise.prototype?"Promise":r&&l===Set.prototype?"Set":s&&l===Map.prototype?"Map":c&&l===WeakSet.prototype?"WeakSet":i&&l===WeakMap.prototype?"WeakMap":u&&l===DataView.prototype?"DataView":s&&l===h?"Map Iterator":r&&l===g?"Set Iterator":f&&l===m?"Array Iterator":M&&l===v?"String Iterator":null===l?"Object":Object.prototype.toString.call(e).slice(8,-1);});}),L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n(this,e),this.high=t,this.low=o;}return s(e,[{key:"equal",value:function value(e){return null!==e&&this.low===e.low&&this.high===e.high;}},{key:"toString",value:function value(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var o=8-t.length;o;){t="0"+t,o--;}return e+t;}}]),e;}(),k={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://api.im.qcloud.com"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com"},IND:{DEFAULT:"wss://wssind.im.qcloud.com",BACKUP:"wss://wssind.my-imcloud.com",STAT:"https://apiind.my-imcloud.com"}}},G={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15},P="1.7.3",U=537048168,b="CHINA",w="OVERSEA",F="SINGAPORE",q="KOREA",V="GERMANY",B="IND",K={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://api.im.qcloud.com"},setCurrent:function setCurrent(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;this.CURRENT=k.PRODUCTION[e];}},NAME:{OPEN_IM:"openim",GROUP:"group_open_http_svc",GROUP_AVCHATROOM:"group_open_avchatroom_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush"},CMD:{LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",STAT_BACKGROUND:"ws_stat_background",STAT_FOREGROUND:"ws_stat_foreground",SET_TOKEN:"ws_stat_settoken",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_list",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",MODIFY_C2C_MESSAGE:"modify_c2c_msg",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",MODIFY_GROUP_MESSAGE:"modify_group_msg",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",GET_AVCHATROOM_MEMBER_LIST:"get_members",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",BAN_AVCHATROOM_MEMBER:"ban_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"delete",PIN_CONVERSATION:"top",SET_CONVERSATION_CUSTOM_DATA:"mark_contact",MARK_CONVERSATION:"mark_contact",CREATE_CONVERSATION_GROUP:"create_contact_group",DELETE_CONVERSATION_GROUP:"del_contact_group",UPDATE_CONVERSATION_GROUP:"update_contact_group",GET_CONVERSATION_GROUP_LIST:"get_contact_group",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",SEND_READ_RECEIPT:"group_msg_receipt",SEND_C2C_READ_RECEIPT:"c2c_msg_read_receipt",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCE_OFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg",CREATE_TOPIC:"create_topic",DELETE_TOPIC:"destroy_topic",UPDATE_TOPIC_PROFILE:"modify_topic",GET_TOPIC_LIST:"get_topic",SET_SELF_STATUS:"ws_set_custom_status",GET_USER_STATUS:"ws_get_user_status",SUBSCRIBE_USER_STATUS:"ws_status_subscribe",UNSUBSCRIBE_USER_STATUS:"ws_status_unsubscribe"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},H={SEARCH_MSG:new L(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new L(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new L(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new L(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new L(0,Math.pow(2,4)).toString(),AVCHATROOM_MBR_LIST:new L(0,Math.pow(2,6)).toString(),USER_STATUS:new L(0,Math.pow(2,7)).toString(),CONV_MARK:new L(0,Math.pow(2,9)).toString(),CONV_GROUP:new L(0,Math.pow(2,10)).toString(),AVCHATROOM_BAN_MBR:new L(0,Math.pow(2,11)).toString()};K.HOST.setCurrent(b);var x,W,Y,j,$="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),z="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),J="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),X="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),Q="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof uni&&"undefined"==typeof window,ee="undefined"!=typeof uni,te=$||z||J||X||Q||Z,oe=("undefined"!=typeof uni||"undefined"!=typeof window)&&!te,ne=z?qq:J?tt:X?swan:Q?my:$?wx:Z?uni:{},ae=(x="WEB",ve?x="WEB":z?x="QQ_MP":J?x="TT_MP":X?x="BAIDU_MP":Q?x="ALI_MP":$?x="WX_MP":Z&&(x="UNI_NATIVE_APP"),G[x]),se=oe&&window&&window.navigator&&window.navigator.userAgent||"",re=/AppleWebKit\/([\d.]+)/i.exec(se),ie=(re&&parseFloat(re.pop()),/iPad/i.test(se)),ce=/iPhone/i.test(se)&&!ie,ue=/iPod/i.test(se),le=ce||ie||ue,de=(W=se.match(/OS (\d+)_/i))&&W[1]?W[1]:null,pe=/Android/i.test(se),_e=function(){var e=se.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),o=e[2]&&parseFloat(e[2]);return t&&o?parseFloat(e[1]+"."+e[2]):t||null;}(),ge=(pe&&/webkit/i.test(se),/Firefox/i.test(se),/Edge/i.test(se)),he=!ge&&/Chrome/i.test(se),fe=(function(){var e=se.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1]);}(),/MSIE/.test(se)||se.indexOf("Trident")>-1&&se.indexOf("rv:11.0")>-1),me=(/MSIE\s8\.0/.test(se),function(){var e=/MSIE\s(\d+)\.\d/.exec(se),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(se)&&/rv:11.0/.test(se)&&(t=11),t;}()),Me=(/Safari/i.test(se),/TBS\/\d+/i.test(se)),ve=(function(){var e=se.match(/TBS\/(\d+)/i);if(e&&e[1])e[1];}(),!Me&&/MQQBrowser\/\d+/i.test(se),!Me&&/ QQBrowser\/\d+/i.test(se),/(micromessenger|webbrowser)/i.test(se)),Ie=/Windows/i.test(se),ye=/MAC OS X/i.test(se),Te=(/MicroMessenger/i.test(se),oe&&"undefined"!=typeof Worker&&!fe),Ee=pe||le,Ce="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};Y="undefined"!=typeof console?console:void 0!==Ce&&Ce.console?Ce.console:"undefined"!=typeof window&&window.console?window.console:{};for(var Se=function Se(){},De=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],Ne=De.length;Ne--;){j=De[Ne],console[j]||(Y[j]=Se);}var Ae=Y,Oe=0,Re=function Re(){return new Date().getTime()+Oe;},Le=function Le(){Oe=0;},ke=function ke(){return Math.floor(Re()/1e3);},Ge=0,Pe=new Map();function Ue(){var e,t=((e=new Date()).setTime(Re()),e);return"TIM "+t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e;}return t;}(t.getMilliseconds())+":";}var be={arguments2String:function arguments2String(e){var t;if(1===e.length)t=Ue()+e[0];else{t=Ue();for(var o=0,n=e.length;o<n;o++){et(e[o])?nt(e[o])?t+=ut(e[o]):t+=JSON.stringify(e[o]):t+=e[o],t+=" ";}}return t;},debug:function debug(){if(Ge<=-1){var e=this.arguments2String(arguments);Ae.debug(e);}},log:function log(){if(Ge<=0){var e=this.arguments2String(arguments);Ae.log(e);}},info:function info(){if(Ge<=1){var e=this.arguments2String(arguments);Ae.info(e);}},warn:function warn(){if(Ge<=2){var e=this.arguments2String(arguments);Ae.warn(e);}},error:function error(){if(Ge<=3){var e=this.arguments2String(arguments);Ae.error(e);}},time:function time(e){Pe.set(e,it.now());},timeEnd:function timeEnd(e){if(Pe.has(e)){var t=it.now()-Pe.get(e);return Pe.delete(e),t;}return Ae.warn("未找到对应label: ".concat(e,", 请在调用 logger.timeEnd 前,调用 logger.time")),0;},setLevel:function setLevel(e){e<4&&Ae.log(Ue()+"set level from "+Ge+" to "+e),Ge=e;},getLevel:function getLevel(){return Ge;}},we={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},Fe={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},qe={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},Ve={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},Be={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},Ke="JoinedSuccess",He="WaitAdminApproval",xe="@TGS#_",We="@TOPIC#_",Ye=["url"],je=function je(e){return"file"===at(e);},$e=function $e(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"===o(e)&&e.constructor===Number);},ze=function ze(e){return"string"==typeof e;},Je=function Je(e){return null!==e&&"object"===o(e);},Xe=function Xe(e){if("object"!==o(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);){n=Object.getPrototypeOf(n);}return t===n;},Qe=function Qe(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===at(e);},Ze=function Ze(e){return void 0===e;},et=function et(e){return Qe(e)||Je(e);},ot=function ot(e){return"function"==typeof e;},nt=function nt(e){return e instanceof Error;},at=function at(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();},st=function st(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t);},rt=0;Date.now||(Date.now=function(){return new Date().getTime();});var it={now:function now(){0===rt&&(rt=Date.now()-1);var e=Date.now()-rt;return e>4294967295?(rt+=4294967295,Date.now()-rt):e;},utc:function utc(){return Math.round(Date.now()/1e3);}},ct=function e(t,o,n,a){if(!et(t)||!et(o))return 0;for(var s,r=0,i=Object.keys(o),c=0,u=i.length;c<u;c++){if(s=i[c],!(Ze(o[s])||n&&n.includes(s)))if(et(t[s])&&et(o[s]))r+=e(t[s],o[s],n,a);else{if(a&&a.includes(o[s]))continue;t[s]!==o[s]&&(t[s]=o[s],r+=1);}}return r;},ut=function ut(e){return JSON.stringify(e,["message","code"]);},lt=function lt(e){if(0===e.length)return 0;for(var t=0,o=0,n="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];){o+=e[t++].charCodeAt[t]<=255?1:!1===n?3:2;}return o;},dt=function dt(e){var t=e||99999999;return Math.round(Math.random()*t);},pt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",_t=pt.length,gt=function gt(e,t){for(var o in e){if(e[o]===t)return!0;}return!1;},ht={},ft=function ft(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https");},mt=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var n=Array.isArray(t)?[]:Object.create(null),a="";for(var s in t){null!==t[s]?void 0!==t[s]?(a=o(t[s]),["string","number","function","boolean"].indexOf(a)>=0?n[s]=t[s]:n[s]=e(t[s])):n[s]=void 0:n[s]=null;}return n;};function Mt(e,t){Qe(e)&&Qe(t)?t.forEach(function(t){var o=t.key,n=t.value,a=e.find(function(e){return e.key===o;});a?a.value=n:e.push({key:o,value:n});}):be.warn("updateCustomField target 或 source 不是数组,忽略此次更新。");}var vt=function vt(e){return e===D.GRP_PUBLIC;},It=function It(e){return e===D.GRP_AVCHATROOM;},yt=function yt(e){var t=e.type,o=e.groupID;return t===D.GRP_COMMUNITY||"".concat(o).startsWith(xe)&&!"".concat(o).includes(We);},Tt=function Tt(e){return"".concat(e).startsWith(xe)&&"".concat(e).includes(We);},Et=function Et(e){return ze(e)&&e.slice(0,3)===D.CONV_C2C;},Ct=function Ct(e){return ze(e)&&e.slice(0,5)===D.CONV_GROUP;},St=function St(e){return ze(e)&&e===D.CONV_SYSTEM;};function Dt(e,t){var o={};return Object.keys(e).forEach(function(n){o[n]=t(e[n],n);}),o;}function Nt(e){return te?new Promise(function(t,o){ne.getImageInfo({src:e,success:function success(e){t({width:e.width,height:e.height});},fail:function fail(){t({width:0,height:0});}});}):fe&&9===me?Promise.resolve({width:0,height:0}):new Promise(function(t,o){var n=new Image();n.onload=function(){t({width:this.width,height:this.height}),n=null;},n.onerror=function(){t({width:0,height:0}),n=null;},n.src=e;});}function At(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1);}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e());}function Ot(){var e="unknown";if(ye&&(e="mac"),Ie&&(e="windows"),le&&(e="ios"),pe&&(e="android"),te)try{var t=ne.getSystemInfoSync().platform;void 0!==t&&(e=t);}catch(o){}return e;}function Rt(e,t){e=e.split("."),t=t.split(".");for(var o=Math.max(e.length,t.length);e.length<o;){e.push("0");}for(;t.length<o;){t.push("0");}for(var n=0;n<o;n++){var a=parseInt(e[n]),s=parseInt(t[n]);if(a>s)return 1;if(a<s)return-1;}return 0;}function Lt(e){var t=e.originUrl,o=void 0===t?void 0:t,n=e.originWidth,a=e.originHeight,s=e.min,r=void 0===s?198:s,i=parseInt(n),c=parseInt(a),u={url:void 0,width:0,height:0};if((i<=c?i:c)<=r)u.url=o,u.width=i,u.height=c;else{c<=i?(u.width=Math.ceil(i*r/c),u.height=r):(u.width=r,u.height=Math.ceil(c*r/i));var l=o&&o.indexOf("?")>-1?"".concat(o,"&"):"".concat(o,"?");u.url="".concat(l,198===r?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720");}return Ze(o)?_(u,Ye):u;}function kt(e){var t=e[2];e[2]=e[1],e[1]=t;for(var o=0;o<e.length;o++){e[o].setType(o);}}function Gt(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1);}function Pt(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t);}function Ut(e,t){return e.includes(t);}function bt(e,t){return e.includes(t);}function wt(e){return e.split(We)[0];}var Ft=function Ft(e,t){if(Ze(t))return"";switch(e){case D.MSG_TEXT:return t.text;case D.MSG_IMAGE:return"[图片]";case D.MSG_LOCATION:return"[位置]";case D.MSG_AUDIO:return"[语音]";case D.MSG_VIDEO:return"[视频]";case D.MSG_FILE:return"[文件]";case D.MSG_CUSTOM:return"[自定义消息]";case D.MSG_GRP_TIP:return"[群提示消息]";case D.MSG_GRP_SYS_NOTICE:return"[群系统通知]";case D.MSG_FACE:return"[动画表情]";case D.MSG_MERGER:return"[聊天记录]";default:return"";}};function qt(e){return e===D.MSG_TEXT||e===D.MSG_CUSTOM||e===D.MSG_LOCATION||e===D.MSG_FACE;}function Vt(e){var t=[];if(!ze(e))return t;var o=e.length;if(0===o)return t;for(var n=o-1;n>=0;n--){"1"===e[n]&&t.push(Math.pow(2,o-n-1));}return t;}var Bt=Object.prototype.hasOwnProperty;function Kt(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(Xe(e)){for(var t in e){if(Bt.call(e,t))return!1;}return!0;}return!("map"!==at(e)&&!function(e){return"set"===at(e);}(e)&&!je(e))&&0===e.size;}function Ht(e,t,o){if(void 0===t)return!0;var n=!0;if("object"===R(t).toLowerCase())Object.keys(t).forEach(function(a){var s=1===e.length?e[0][a]:void 0;n=!!xt(s,t[a],o,a)&&n;});else if("array"===R(t).toLowerCase())for(var a=0;a<t.length;a++){n=!!xt(e[a],t[a],o,t[a].name)&&n;}if(n)return n;throw new Error("Params validate failed.");}function xt(e,t,o,n){if(void 0===t)return!0;var a=!0;return t.required&&Kt(e)&&(Ae.error("TIM [".concat(o,'] Missing required params: "').concat(n,'".')),a=!1),Kt(e)||R(e).toLowerCase()===t.type.toLowerCase()||(Ae.error("TIM [".concat(o,'] Invalid params: type check failed for "').concat(n,'".Expected ').concat(t.type,".")),a=!1),t.validator&&!t.validator(e)&&(Ae.error("TIM [".concat(o,"] Invalid params: custom validator check failed for params.")),a=!1),a;}var Wt,Yt={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},jt={NOT_START:"notStart",PENDING:"pengding",RESOLVED:"resolved",REJECTED:"rejected"},$t=function $t(e){return!!e&&(!!(Et(e)||Ct(e)||St(e))||(console.warn("非法的会话 ID:".concat(e,"。会话 ID 组成方式:C2C + userID(单聊)GROUP + groupID(群聊)@TIM#SYSTEM(系统通知会话)")),!1));},zt="请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#",Jt=function Jt(e){return e.param?"".concat(e.api," ").concat(e.param," ").concat(e.desc,"。").concat(zt).concat(e.api):"".concat(e.api," ").concat(e.desc,"。").concat(zt).concat(e.api);},Xt={type:"String",required:!0},Qt={type:"Array",required:!0},Zt={type:"Object",required:!0},eo={type:"Boolean",required:!0},to={login:{userID:Xt,userSig:Xt},addToBlacklist:{userIDList:Qt},on:[{name:"eventName",type:"String",validator:function validator(e){return"string"==typeof e&&0!==e.length||(console.warn(Jt({api:"on",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1);}},{name:"handler",type:"Function",validator:function validator(e){return"function"!=typeof e?(console.warn(Jt({api:"on",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("on 接口的 handler 参数推荐使用具名函数。具名函数可以使用 off 接口取消订阅,匿名函数无法取消订阅。"),!0);}}],once:[{name:"eventName",type:"String",validator:function validator(e){return"string"==typeof e&&0!==e.length||(console.warn(Jt({api:"once",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1);}},{name:"handler",type:"Function",validator:function validator(e){return"function"!=typeof e?(console.warn(Jt({api:"once",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("once 接口的 handler 参数推荐使用具名函数。"),!0);}}],off:[{name:"eventName",type:"String",validator:function validator(e){return"string"==typeof e&&0!==e.length||(console.warn(Jt({api:"off",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1);}},{name:"handler",type:"Function",validator:function validator(e){return"function"!=typeof e?(console.warn(Jt({api:"off",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("off 接口无法为匿名函数取消监听事件。"),!0);}}],sendMessage:[t({name:"message"},Zt)],getMessageList:{conversationID:t(t({},Xt),{},{validator:function validator(e){return $t(e);}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function validator(e){return!(!Ze(e)&&!/^[1-9][0-9]*$/.test(e))||(console.warn(Jt({api:"getMessageList",param:"count",desc:"必须为正整数"})),!1);}}},getMessageListHopping:{conversationID:t(t({},Xt),{},{validator:function validator(e){return $t(e);}}),sequence:{type:"Number"},time:{type:"Number"},direction:{type:"Number",validator:function validator(e){return!(!Ze(e)&&0!==e&&1!==e)||(console.warn(Jt({api:"getMessageListHopping",param:"direction",desc:"必须传 0 或 1"})),!1);}},count:{type:"Number",validator:function validator(e){return!(!Ze(e)&&!/^[1-9][0-9]*$/.test(e))||(console.warn(Jt({api:"getMessageListHopping",param:"count",desc:"必须为正整数"})),!1);}}},setMessageRead:{conversationID:t(t({},Xt),{},{validator:function validator(e){return $t(e);}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function validator(e){return!e||-1!==[D.READ_ALL_C2C_MSG,D.READ_ALL_GROUP_MSG,D.READ_ALL_MSG].indexOf(e)||(console.warn(Jt({api:"setAllMessageRead",param:"scope",desc:"取值必须为 TIM.TYPES.READ_ALL_C2C_MSG, TIM.TYPES.READ_ALL_GROUP_MSG 或 TIM.TYPES.READ_ALL_MSG"})),!1);}}},getConversationProfile:[t(t({name:"conversationID"},Xt),{},{validator:function validator(e){return $t(e);}})],deleteConversation:[t(t({name:"conversationID"},Xt),{},{validator:function validator(e){return $t(e);}})],pinConversation:{conversationID:t(t({},Xt),{},{validator:function validator(e){return $t(e);}}),isPinned:t({},eo)},setConversationCustomData:{conversationIDList:t({},Qt),customData:{type:"String",validator:function validator(e){return ze(e)?!(e.length>256)||(console.warn(Jt({api:"setConversationCustomData",param:"customData",desc:"长度不得超过256字节"})),!1):(console.warn(Jt({api:"setConversationCustomData",param:"customData",desc:"类型必须为 String"})),!1);}}},markConversation:{conversationIDList:t({},Qt),markType:{type:"number",validator:function validator(e){return $e(e)?e<=0?(console.warn(Jt({api:"markConversation",param:"markType",desc:"不能小于等于0"})),!1):!(e>=Math.pow(2,64))||(console.warn(Jt({api:"markConversation",param:"markType",desc:"必须小于 Math.pow(2,64)"})),!1):(console.warn(Jt({api:"markConversation",param:"markType",desc:"类型必须为 Number"})),!1);}},enableMark:t({},eo)},createConversationGroup:{conversationIDList:t({},Qt),groupName:t(t({},Xt),{},{validator:function validator(e){return!!e&&(!(e.length>32)||(console.warn(Jt({api:"createConversationGroup",param:"groupName",desc:"长度不得超过32字节"})),!1));}})},deleteConversationGroup:[t({name:"groupName"},Xt)],renameConversationGroup:{oldName:t({},Xt),newName:t(t({},Xt),{},{validator:function validator(e){return!!e&&(!(e.length>32)||(console.warn(Jt({api:"renameConversationGroup",param:"newName",desc:"长度不得超过32字节"})),!1));}})},addConversationsToGroup:{conversationIDList:t({},Qt),groupName:t({},Xt)},deleteConversationsFromGroup:{conversationIDList:t({},Qt),groupName:t({},Xt)},getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:Xt,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:Qt},createGroup:{name:Xt},joinGroup:{groupID:Xt,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[t({name:"groupID"},Xt)],handleApplication:{message:Zt,handleAction:Xt,handleMessage:{type:"String"}},changeGroupOwner:{groupID:Xt,newOwnerID:Xt},updateGroupProfile:{groupID:Xt,muteAllMembers:{type:"Boolean"}},dismissGroup:[t({name:"groupID"},Xt)],searchGroupByID:[t({name:"groupID"},Xt)],initGroupAttributes:{groupID:Xt,groupAttributes:t(t({},Zt),{},{validator:function validator(e){var t=!0;return Object.keys(e).forEach(function(o){if(!ze(e[o]))return console.warn(Jt({api:"initGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1;}),t;}})},setGroupAttributes:{groupID:Xt,groupAttributes:t(t({},Zt),{},{validator:function validator(e){var t=!0;return Object.keys(e).forEach(function(o){if(!ze(e[o]))return console.warn(Jt({api:"setGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1;}),t;}})},deleteGroupAttributes:{groupID:Xt,keyList:{type:"Array",validator:function validator(e){if(Ze(e))return console.warn(Jt({api:"deleteGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!Qe(e))return!1;if(!Kt(e)){var t=!0;return e.forEach(function(e){if(!ze(e))return console.warn(Jt({api:"deleteGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1;}),t;}return!0;}}},getGroupAttributes:{groupID:Xt,keyList:{type:"Array",validator:function validator(e){if(Ze(e))return console.warn(Jt({api:"getGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!Qe(e))return!1;if(!Kt(e)){var t=!0;return e.forEach(function(e){if(!ze(e))return console.warn(Jt({api:"getGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1;}),t;}return!0;}}},getGroupMemberList:{groupID:Xt,count:{type:"Number"}},getGroupMemberProfile:{groupID:Xt,userIDList:Qt,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:Xt,userIDList:Qt},setGroupMemberRole:{groupID:Xt,userID:Xt,role:Xt},setGroupMemberMuteTime:{groupID:Xt,userID:Xt,muteTime:{type:"Number",validator:function validator(e){return e>=0;}}},setGroupMemberNameCard:{groupID:Xt,userID:{type:"String"},nameCard:{type:"String",validator:function validator(e){return ze(e)?(e.length,!0):(console.warn(Jt({api:"setGroupMemberNameCard",param:"nameCard",desc:"类型必须为 String"})),!1);}}},setGroupMemberCustomField:{groupID:Xt,userID:{type:"String"},memberCustomField:Qt},deleteGroupMember:{groupID:Xt},createTextMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){return Xe(e)?ze(e.text)?0!==e.text.length||(console.warn(Jt({api:"createTextMessage",desc:"消息内容不能为空"})),!1):(console.warn(Jt({api:"createTextMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Jt({api:"createTextMessage",param:"payload",desc:"类型必须为 plain object"})),!1);}})},createTextAtMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){return Xe(e)?ze(e.text)?0===e.text.length?(console.warn(Jt({api:"createTextAtMessage",desc:"消息内容不能为空"})),!1):!(e.atUserList&&!Qe(e.atUserList))||(console.warn(Jt({api:"createTextAtMessage",desc:"payload.atUserList 类型必须为数组"})),!1):(console.warn(Jt({api:"createTextAtMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Jt({api:"createTextAtMessage",param:"payload",desc:"类型必须为 plain object"})),!1);}})},createCustomMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){return Xe(e)?e.data&&!ze(e.data)?(console.warn(Jt({api:"createCustomMessage",param:"payload.data",desc:"类型必须为 String"})),!1):e.description&&!ze(e.description)?(console.warn(Jt({api:"createCustomMessage",param:"payload.description",desc:"类型必须为 String"})),!1):!(e.extension&&!ze(e.extension))||(console.warn(Jt({api:"createCustomMessage",param:"payload.extension",desc:"类型必须为 String"})),!1):(console.warn(Jt({api:"createCustomMessage",param:"payload",desc:"类型必须为 plain object"})),!1);}})},createImageMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){if(!Xe(e))return console.warn(Jt({api:"createImageMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(Ze(e.file))return console.warn(Jt({api:"createImageMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(oe){if(!(e.file instanceof HTMLInputElement||je(e.file)))return Xe(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Jt({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Jt({api:"createImageMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Jt({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1;}return!0;},onProgress:{type:"Function",required:!1,validator:function validator(e){return Ze(e)&&console.warn(Jt({api:"createImageMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0;}}})},createAudioMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){return!!Xe(e)||(console.warn(Jt({api:"createAudioMessage",param:"payload",desc:"类型必须为 plain object"})),!1);}}),onProgress:{type:"Function",required:!1,validator:function validator(e){return Ze(e)&&console.warn(Jt({api:"createAudioMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0;}}},createVideoMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){if(!Xe(e))return console.warn(Jt({api:"createVideoMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(Ze(e.file))return console.warn(Jt({api:"createVideoMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(oe){if(!(e.file instanceof HTMLInputElement||je(e.file)))return Xe(e.file)&&"undefined"!=typeof uni?!!je(e.file.tempFile)||(console.warn(Jt({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Jt({api:"createVideoMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Jt({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1;}return!0;}}),onProgress:{type:"Function",required:!1,validator:function validator(e){return Ze(e)&&console.warn(Jt({api:"createVideoMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0;}}},createFaceMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){return Xe(e)?$e(e.index)?!!ze(e.data)||(console.warn(Jt({api:"createFaceMessage",param:"payload.data",desc:"类型必须为 String"})),!1):(console.warn(Jt({api:"createFaceMessage",param:"payload.index",desc:"类型必须为 Number"})),!1):(console.warn(Jt({api:"createFaceMessage",param:"payload",desc:"类型必须为 plain object"})),!1);}})},createFileMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){if(!Xe(e))return console.warn(Jt({api:"createFileMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(Ze(e.file))return console.warn(Jt({api:"createFileMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(oe){if(!(e.file instanceof HTMLInputElement||je(e.file)))return Xe(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Jt({api:"createFileMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Jt({api:"createFileMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Jt({api:"createFileMessage",desc:"您没有选择文件,无法发送"})),!1;}return!0;}}),onProgress:{type:"Function",required:!1,validator:function validator(e){return Ze(e)&&console.warn(Jt({api:"createFileMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0;}}},createLocationMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){return Xe(e)?ze(e.description)?$e(e.longitude)?!!$e(e.latitude)||(console.warn(Jt({api:"createLocationMessage",param:"payload.latitude",desc:"类型必须为 Number"})),!1):(console.warn(Jt({api:"createLocationMessage",param:"payload.longitude",desc:"类型必须为 Number"})),!1):(console.warn(Jt({api:"createLocationMessage",param:"payload.description",desc:"类型必须为 String"})),!1):(console.warn(Jt({api:"createLocationMessage",param:"payload",desc:"类型必须为 plain object"})),!1);}})},createMergerMessage:{to:Xt,conversationType:Xt,payload:t(t({},Zt),{},{validator:function validator(e){if(Kt(e.messageList))return console.warn(Jt({api:"createMergerMessage",desc:"不能为空数组"})),!1;if(Kt(e.compatibleText))return console.warn(Jt({api:"createMergerMessage",desc:"类型必须为 String,且不能为空"})),!1;var t=!1;return e.messageList.forEach(function(e){e.status===Yt.FAIL&&(t=!0);}),!t||(console.warn(Jt({api:"createMergerMessage",desc:"不支持合并已发送失败的消息"})),!1);}})},revokeMessage:[t(t({name:"message"},Zt),{},{validator:function validator(e){return Kt(e)?(console.warn(Jt({api:"revokeMessage",desc:"请传入消息(Message)实例"})),!1):e.conversationType===D.CONV_SYSTEM?(console.warn(Jt({api:"revokeMessage",desc:"不能撤回系统会话消息,只能撤回单聊消息或群消息"})),!1):!0!==e.isRevoked||(console.warn(Jt({api:"revokeMessage",desc:"消息已经被撤回,请勿重复操作"})),!1);}})],deleteMessage:[t(t({name:"messageList"},Qt),{},{validator:function validator(e){return!Kt(e)||(console.warn(Jt({api:"deleteMessage",param:"messageList",desc:"不能为空数组"})),!1);}})],modifyMessage:[t(t({name:"message"},Zt),{},{validator:function validator(e){return Kt(e)?(console.warn(Jt({api:"modifyMessage",desc:"请传入消息(Message)实例"})),!1):e.conversationType===D.CONV_SYSTEM?(console.warn(Jt({api:"modifyMessage",desc:"不支持修改系统会话消息,只能修改单聊消息或群消息"})),!1):!0!==e._onlineOnlyFlag||(console.warn(Jt({api:"modifyMessage",desc:"不支持修改在线消息"})),!1);}})],getUserProfile:{userIDList:{type:"Array",validator:function validator(e){return Qe(e)?(0===e.length&&console.warn(Jt({api:"getUserProfile",param:"userIDList",desc:"不能为空数组"})),!0):(console.warn(Jt({api:"getUserProfile",param:"userIDList",desc:"必须为数组"})),!1);}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function validator(e){return!!Ze(e)||!!Qe(e)||(console.warn(Jt({api:"updateMyProfile",param:"profileCustomField",desc:"必须为数组"})),!1);}}},setSelfStatus:{customStatus:{type:"String",validator:function validator(e){return!!ze(e)||(console.warn(Jt({api:"setSelfStatus",param:"customStatus",desc:Xt})),!1);}}},getUserStatus:{userIDList:{type:"Array",validator:function validator(e){return Qe(e)?0!==e.length||(console.warn(Jt({api:"getUserStatus",param:"userIDList",desc:"不能为空数组"})),!1):(console.warn(Jt({api:"getUserStatus",param:"userIDList",desc:"必须为数组"})),!1);}}},subscribeUserStatus:{userIDList:{type:"Array",validator:function validator(e){return Qe(e)?0!==e.length||(console.warn(Jt({api:"subscribeUserStatus",param:"userIDList",desc:"不能为空数组"})),!1):(console.warn(Jt({api:"subscribeUserStatus",param:"userIDList",desc:"必须为数组"})),!1);}}},unsubscribeUserStatus:{userIDList:{type:"Array",validator:function validator(e){return!e||!!Qe(e)||(console.warn(Jt({api:"subscribeUserStatus",param:"userIDList",desc:"必须为数组"})),!1);}}},addFriend:{to:Xt,source:{type:"String",required:!0,validator:function validator(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(console.warn(Jt({api:"addFriend",desc:"加好友来源字段的关键字长度不得超过8字节"})),!1):(console.warn(Jt({api:"addFriend",desc:"加好友来源字段的前缀必须是:AddSource_Type_"})),!1));}},remark:{type:"String",required:!1,validator:function validator(e){return!(ze(e)&&e.length>96)||(console.warn(Jt({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1);}}},deleteFriend:{userIDList:Qt},checkFriend:{userIDList:Qt},getFriendProfile:{userIDList:Qt},updateFriend:{userID:Xt,remark:{type:"String",required:!1,validator:function validator(e){return!(ze(e)&&e.length>96)||(console.warn(Jt({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1);}},friendCustomField:{type:"Array",required:!1,validator:function validator(e){if(e){if(!Qe(e))return console.warn(Jt({api:"updateFriend",param:"friendCustomField",desc:"必须为数组"})),!1;var t=!0;return e.forEach(function(e){return ze(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?ze(e.value)?e.value.length>8?(console.warn(Jt({api:"updateFriend",desc:"好友自定义字段的关键字长度不得超过8字节"})),t=!1):void 0:(console.warn(Jt({api:"updateFriend",desc:"类型必须为 String"})),t=!1):(console.warn(Jt({api:"updateFriend",desc:"好友自定义字段的前缀必须是 Tag_SNS_Custom"})),t=!1);}),t;}return!0;}}},acceptFriendApplication:{userID:Xt},refuseFriendApplication:{userID:Xt},deleteFriendApplication:{userID:Xt},createFriendGroup:{name:Xt},deleteFriendGroup:{name:Xt},addToFriendGroup:{name:Xt,userIDList:Qt},removeFromFriendGroup:{name:Xt,userIDList:Qt},renameFriendGroup:{oldName:Xt,newName:Xt},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function validator(e){return Qe(e)?0!==e.length||(console.warn(Jt({api:"sendMessageReadReceipt",param:"messageList",desc:"不能为空数组"})),!1):(console.warn(Jt({api:"sendMessageReadReceipt",param:"messageList",desc:"必须为数组"})),!1);}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function validator(e){return Qe(e)?0!==e.length||(console.warn(Jt({api:"getMessageReadReceiptList",param:"messageList",desc:"不能为空数组"})),!1):(console.warn(Jt({api:"getMessageReadReceiptList",param:"messageList",desc:"必须为数组"})),!1);}}],createTopicInCommunity:{groupID:Xt,topicName:Xt},deleteTopicFromCommunity:{groupID:Xt,topicIDList:{type:"Array",validator:function validator(e){return!e||!!Qe(e)||(console.warn(Jt({api:"deleteTopicFromCommunity",param:"topicIDList",desc:"必须为数组"})),!1);}}},updateTopicProfile:{groupID:Xt,topicID:Xt},getTopicList:{groupID:Xt,topicIDList:{type:"Array",validator:function validator(e){return!e||!!Qe(e)||(console.warn(Jt({api:"getTopicList",param:"topicIDList",desc:"必须为数组"})),!1);}}}},oo={login:"login",logout:"logout",on:"on",once:"once",off:"off",setLogLevel:"setLogLevel",registerPlugin:"registerPlugin",destroy:"destroy",createTextMessage:"createTextMessage",createTextAtMessage:"createTextAtMessage",createImageMessage:"createImageMessage",createAudioMessage:"createAudioMessage",createVideoMessage:"createVideoMessage",createCustomMessage:"createCustomMessage",createFaceMessage:"createFaceMessage",createFileMessage:"createFileMessage",createLocationMessage:"createLocationMessage",createMergerMessage:"createMergerMessage",downloadMergerMessage:"downloadMergerMessage",createForwardMessage:"createForwardMessage",sendMessage:"sendMessage",resendMessage:"resendMessage",revokeMessage:"revokeMessage",deleteMessage:"deleteMessage",modifyMessage:"modifyMessage",sendMessageReadReceipt:"sendMessageReadReceipt",getGroupMessageReadMemberList:"getGroupMessageReadMemberList",getMessageReadReceiptList:"getMessageReadReceiptList",getMessageList:"getMessageList",findMessage:"findMessage",getMessageListHopping:"getMessageListHopping",setMessageRead:"setMessageRead",setAllMessageRead:"setAllMessageRead",getConversationList:"getConversationList",getConversationProfile:"getConversationProfile",deleteConversation:"deleteConversation",pinConversation:"pinConversation",setConversationCustomData:"setConversationCustomData",markConversation:"markConversation",createConversationGroup:"createConversationGroup",getConversationGroupList:"getConversationGroupList",deleteConversationGroup:"deleteConversationGroup",renameConversationGroup:"renameConversationGroup",addConversationsToGroup:"addConversationsToGroup",deleteConversationsFromGroup:"deleteConversationsFromGroup",getGroupList:"getGroupList",getGroupProfile:"getGroupProfile",createGroup:"createGroup",joinGroup:"joinGroup",updateGroupProfile:"updateGroupProfile",quitGroup:"quitGroup",dismissGroup:"dismissGroup",changeGroupOwner:"changeGroupOwner",searchGroupByID:"searchGroupByID",setMessageRemindType:"setMessageRemindType",handleGroupApplication:"handleGroupApplication",initGroupAttributes:"initGroupAttributes",setGroupAttributes:"setGroupAttributes",deleteGroupAttributes:"deleteGroupAttributes",getGroupAttributes:"getGroupAttributes",getJoinedCommunityList:"getJoinedCommunityList",createTopicInCommunity:"createTopicInCommunity",deleteTopicFromCommunity:"deleteTopicFromCommunity",updateTopicProfile:"updateTopicProfile",getTopicList:"getTopicList",getGroupMemberProfile:"getGroupMemberProfile",getGroupMemberList:"getGroupMemberList",addGroupMember:"addGroupMember",deleteGroupMember:"deleteGroupMember",setGroupMemberNameCard:"setGroupMemberNameCard",setGroupMemberMuteTime:"setGroupMemberMuteTime",setGroupMemberRole:"setGroupMemberRole",setGroupMemberCustomField:"setGroupMemberCustomField",getGroupOnlineMemberCount:"getGroupOnlineMemberCount",getMyProfile:"getMyProfile",getUserProfile:"getUserProfile",updateMyProfile:"updateMyProfile",setSelfStatus:"setSelfStatus",getUserStatus:"getUserStatus",subscribeUserStatus:"subscribeUserStatus",unsubscribeUserStatus:"unsubscribeUserStatus",getBlacklist:"getBlacklist",addToBlacklist:"addToBlacklist",removeFromBlacklist:"removeFromBlacklist",getFriendList:"getFriendList",addFriend:"addFriend",deleteFriend:"deleteFriend",checkFriend:"checkFriend",updateFriend:"updateFriend",getFriendProfile:"getFriendProfile",getFriendApplicationList:"getFriendApplicationList",refuseFriendApplication:"refuseFriendApplication",deleteFriendApplication:"deleteFriendApplication",acceptFriendApplication:"acceptFriendApplication",setFriendApplicationRead:"setFriendApplicationRead",getFriendGroupList:"getFriendGroupList",createFriendGroup:"createFriendGroup",renameFriendGroup:"renameFriendGroup",deleteFriendGroup:"deleteFriendGroup",addToFriendGroup:"addToFriendGroup",removeFromFriendGroup:"removeFromFriendGroup",callExperimentalAPI:"callExperimentalAPI"},no="sign",ao="message",so="user",ro="c2c",io="group",co="sns",uo="groupMember",lo="Topic",po="conversation",_o="context",go="storage",ho="eventStat",fo="netMonitor",mo="bigDataChannel",Mo="upload",vo="plugin",Io="syncUnreadMessage",yo="session",To="channel",Eo="message_loss_detection",Co="cloudControl",So="workerTimer",Do="pullGroupMessage",No="qualityStat",Ao="commercialConfig",Oo="offlinePush",Ro=function(){function e(t){n(this,e),this._moduleManager=t,this._className="";}return s(e,[{key:"isLoggedIn",value:function value(){return this._moduleManager.getModule(_o).isLoggedIn();}},{key:"isOversea",value:function value(){return this._moduleManager.getModule(_o).isOversea();}},{key:"isPrivateNetWork",value:function value(){return this._moduleManager.getModule(_o).isPrivateNetWork();}},{key:"getMyUserID",value:function value(){return this._moduleManager.getModule(_o).getUserID();}},{key:"getMyTinyID",value:function value(){return this._moduleManager.getModule(_o).getTinyID();}},{key:"getModule",value:function value(e){return this._moduleManager.getModule(e);}},{key:"getPlatform",value:function value(){return ae;}},{key:"getNetworkType",value:function value(){return this._moduleManager.getModule(fo).getNetworkType();}},{key:"probeNetwork",value:function value(e){return this._moduleManager.getModule(fo).probe(e);}},{key:"getCloudConfig",value:function value(e){return this._moduleManager.getModule(Co).getCloudConfig(e);}},{key:"emitOuterEvent",value:function value(e,t){this._moduleManager.getOuterEmitterInstance().emit(e,t);}},{key:"emitInnerEvent",value:function value(e,t){this._moduleManager.getInnerEmitterInstance().emit(e,t);}},{key:"getInnerEmitterInstance",value:function value(){return this._moduleManager.getInnerEmitterInstance();}},{key:"generateTjgID",value:function value(e){return this._moduleManager.getModule(_o).getTinyID()+"-"+e.random;}},{key:"filterModifiedMessage",value:function value(e){if(!Kt(e)){var t=e.filter(function(e){return!0===e.isModified;});t.length>0&&this.emitOuterEvent(S.MESSAGE_MODIFIED,t);}}},{key:"filterUnmodifiedMessage",value:function value(e){return Kt(e)?[]:e.filter(function(e){return!1===e.isModified;});}},{key:"request",value:function value(e){return this._moduleManager.getModule(yo).request(e);}},{key:"canIUse",value:function value(e){return this._moduleManager.getModule(Ao).canIUse(e);}}]),e;}(),Lo="wslogin",ko="wslogout",Go="wshello",Po="KickOther",Uo="getmsg",bo="authkey",wo="sendmsg",Fo="send_group_msg",qo="portrait_get_all",Vo="portrait_set",Bo="black_list_get",Ko="black_list_add",Ho="black_list_delete",xo="msgwithdraw",Wo="msgreaded",Yo="set_c2c_peer_mute_notifications",jo="get_c2c_peer_mute_notifications",$o="getroammsg",zo="get_peer_read_time",Jo="delete_c2c_msg_ramble",Xo="modify_c2c_msg",Qo="page_get",Zo="get",en="delete",tn="top",on="deletemsg",nn="set_conv_custom_data",an="mark_contact",sn="create_contact_group",rn="del_contact_group",cn="update_contact_group",un="add_conv_to_group",ln="del_conv_from_group",dn="get_contact_group",pn="get_joined_group_list",_n="get_group_self_member_info",gn="create_group",hn="destroy_group",fn="modify_group_base_info",mn="apply_join_group",Mn="apply_join_group_noauth",vn="quit_group",In="get_group_public_info",yn="change_group_owner",Tn="handle_apply_join_group",En="handle_invite_join_group",Cn="group_msg_recall",Sn="msg_read_report",Dn="read_all_unread_msg",Nn="group_msg_get",An="get_group_msg_receipt",On="group_msg_receipt",Rn="c2c_msg_read_receipt",Ln="get_group_msg_receipt_detail",kn="get_pendency",Gn="deletemsg",Pn="get_msg",Un="get_msg_noauth",bn="get_online_member_num",wn="delete_group_ramble_msg_by_seq",Fn="modify_group_msg",qn="set_group_attr",Vn="modify_group_attr",Bn="delete_group_attr",Kn="clear_group_attr",Hn="get_group_attr",xn="get_group_member_info",Wn="get_members",Yn="get_specified_group_member_info",jn="add_group_member",$n="delete_group_member",zn="ban_group_member",Jn="modify_group_member_info",Xn="cos",Qn="pre_sig",Zn="video_cover",ea="tim_web_report_v2",ta="alive",oa="msg_push",na="multi_msg_push_ws",aa="ws_msg_push_ack",sa="stat_forceoffline",ra="save_relay_json_msg",ia="get_relay_json_msg",ca="fetch_config",ua="push_configv2",la="fetch_imsdk_purchase_bitsv2",da="push_imsdk_purchase_bitsv2",pa="notify2",_a="create_topic",ga="destroy_topic",ha="modify_topic",fa="get_topic",ma="ws_set_custom_status",Ma="ws_get_user_status",va="ws_status_subscribe",Ia="ws_status_unsubscribe",ya="ws_stat_background",Ta="ws_stat_foreground",Ea="ws_stat_settoken",Ca={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_LIST_CONSTRUCTOR_NEED_OPTIONS:2103,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,MESSAGE_CONTROL_INFO_FAIL:2113,READ_RECEIPT_MESSAGE_LIST_EMPTY:2114,MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GROUP_SYSTEM_NOTICE:2116,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_MODIFY_CONFLICT:2480,MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:2481,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,INVALID_CONVERSATION_ID:2503,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_FIND_GROUP:2603,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_Work:2622,MEMBER_NOT_IN_GROUP:2623,CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM:2641,CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN:2642,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,CANNOT_KICK_MEMBER_IN_AVCHATROOM:2680,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,ADD_BLACKLIST_INVALID_PARAM:2740,DEL_BLACKLIST_INVALID_PARAM:2741,CANNOT_ADD_SELF_TO_BLACKLIST:2742,ADD_FRIEND_INVALID_PARAM:2760,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NETWORK_BASE_OPTIONS_NO_URL:2802,NETWORK_UNDEFINED_SERVER_NAME:2803,NETWORK_PACKAGE_UNDEFINED:2804,NO_NETWORK:2805,CONVERTOR_IRREGULAR_PARAMS:2900,NOTICE_RUNLOOP_UNEXPECTED_CONDITION:2901,NOTICE_RUNLOOP_OFFSET_LOST:2902,UNCAUGHT_ERROR:2903,GET_LONGPOLL_ID_FAILED:2904,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,CANNOT_USE_COMMERCIAL_ABILITY:3122,LONG_POLL_KICK_OUT:91101,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,LONG_POLL_API_PARAM_ERROR:90001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},Sa={NO_SDKAPPID:"无 SDKAppID",NO_ACCOUNT_TYPE:"无 accountType",NO_IDENTIFIER:"无 userID",NO_USERSIG:"无 userSig",NO_TINYID:"无 tinyID",NO_A2KEY:"无 a2key",USER_NOT_LOGGED_IN:"用户未登录",REPEAT_LOGIN:"重复登录",COS_UNDETECTED:"未检测到 COS 上传插件",COS_GET_SIG_FAIL:"获取 COS 预签名 URL 失败",MESSAGE_SEND_FAIL:"消息发送失败",MESSAGE_LIST_CONSTRUCTOR_NEED_OPTIONS:"MessageController.constructor() 需要参数 options",MESSAGE_SEND_NEED_MESSAGE_INSTANCE:"需要 Message 的实例",MESSAGE_SEND_INVALID_CONVERSATION_TYPE:'Message.conversationType 只能为 "C2C" 或 "GROUP"',MESSAGE_FILE_IS_EMPTY:"无法发送空文件",MESSAGE_ONPROGRESS_FUNCTION_ERROR:"回调函数运行时遇到错误,请检查接入侧代码",MESSAGE_REVOKE_FAIL:"消息撤回失败",MESSAGE_DELETE_FAIL:"消息删除失败",MESSAGE_UNREAD_ALL_FAIL:"设置所有未读消息为已读处理失败",MESSAGE_CONTROL_INFO_FAIL:"社群不支持消息发送控制选项",READ_RECEIPT_MESSAGE_LIST_EMPTY:"消息列表中没有需要发送已读回执的消息",MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:"不能在支持话题的群组中发消息,请检查群组 isSupportTopic 属性",CANNOT_DELETE_GROUP_SYSTEM_NOTICE:"不支持删除群系统通知",MESSAGE_IMAGE_SELECT_FILE_FIRST:"请先选择一个图片",MESSAGE_IMAGE_TYPES_LIMIT:"只允许上传 jpg png jpeg gif bmp image webp 格式的图片",MESSAGE_IMAGE_SIZE_LIMIT:"图片大小超过20M,无法发送",MESSAGE_AUDIO_UPLOAD_FAIL:"语音上传失败",MESSAGE_AUDIO_SIZE_LIMIT:"语音大小大于20M,无法发送",MESSAGE_VIDEO_UPLOAD_FAIL:"视频上传失败",MESSAGE_VIDEO_SIZE_LIMIT:"视频大小超过100M,无法发送",MESSAGE_VIDEO_TYPES_LIMIT:"只允许上传 mp4 格式的视频",MESSAGE_FILE_UPLOAD_FAIL:"文件上传失败",MESSAGE_FILE_SELECT_FILE_FIRST:"请先选择一个文件",MESSAGE_FILE_SIZE_LIMIT:"文件大小超过100M,无法发送 ",MESSAGE_FILE_URL_IS_EMPTY:"缺少必要的参数文件 URL",MESSAGE_MERGER_TYPE_INVALID:"非合并消息",MESSAGE_MERGER_KEY_INVALID:"合并消息的 messageKey 无效",MESSAGE_MERGER_DOWNLOAD_FAIL:"下载合并消息失败",MESSAGE_FORWARD_TYPE_INVALID:"选择的消息类型(如群提示消息)不可以转发",MESSAGE_MODIFY_CONFLICT:"修改消息时发生冲突",MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:"直播群不支持修改消息",CONVERSATION_NOT_FOUND:"没有找到相应的会话,请检查传入参数",USER_OR_GROUP_NOT_FOUND:"没有找到相应的用户或群组,请检查传入参数",CONVERSATION_UN_RECORDED_TYPE:"未记录的会话类型",INVALID_CONVERSATION_ID:"无效的会话 ID",ILLEGAL_GROUP_TYPE:"非法的群类型,请检查传入参数",CANNOT_JOIN_WORK:"不能加入 Work 类型的群组",ILLEGAL_GROUP_ID:"群组 ID 非法,非 Community 类型群组不能以 @TGS#_ 为前缀,Community 类型群组必须以 @TGS#_ 为前缀且不能包含 @TOPIC#_ 字符串",CANNOT_FIND_GROUP:"找不到指定 ID 的群组",CANNOT_CHANGE_OWNER_IN_AVCHATROOM:"AVChatRoom 类型的群组不能转让群主",CANNOT_CHANGE_OWNER_TO_SELF:"不能把群主转让给自己",CANNOT_DISMISS_WORK:"不能解散 Work 类型的群组",MEMBER_NOT_IN_GROUP:"用户不在该群组内",JOIN_GROUP_FAIL:"加群失败,请检查传入参数或重试",CANNOT_ADD_MEMBER_IN_AVCHATROOM:"AVChatRoom 类型的群不支持邀请群成员",CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:"非 AVChatRoom 类型的群组不允许匿名加群,请先登录后再加群",CANNOT_KICK_MEMBER_IN_AVCHATROOM:"不能在 AVChatRoom 类型的群组踢人",NOT_OWNER:"你不是群主,只有群主才有权限操作",CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:"不能在 Work / AVChatRoom 类型的群中设置群成员身份",INVALID_MEMBER_ROLE:"不合法的群成员身份,请检查传入参数",CANNOT_SET_SELF_MEMBER_ROLE:"不能设置自己的群成员身份,请检查传入参数",CANNOT_MUTE_SELF:"不能将自己禁言,请检查传入参数",BAN_DURATION_INVALID:"封禁时长无效,必须传入 duration 参数且要大于 0",NOT_MY_FRIEND:"非好友关系",ALREADY_MY_FRIEND:"已经是好友关系",FRIEND_GROUP_EXISTED:"好友分组已存在",FRIEND_GROUP_NOT_EXIST:"好友分组不存在",FRIEND_APPLICATION_NOT_EXIST:"好友申请不存在",UPDATE_PROFILE_INVALID_PARAM:"传入 updateMyProfile 接口的参数无效",UPDATE_PROFILE_NO_KEY:"updateMyProfile 无标配资料字段或自定义资料字段",ADD_BLACKLIST_INVALID_PARAM:"传入 addToBlacklist 接口的参数无效",DEL_BLACKLIST_INVALID_PARAM:"传入 removeFromBlacklist 接口的参数无效",CANNOT_ADD_SELF_TO_BLACKLIST:"不能拉黑自己",ADD_FRIEND_INVALID_PARAM:"传入 addFriend 接口的参数无效",NETWORK_ERROR:"网络错误",NETWORK_TIMEOUT:"请求超时",NETWORK_BASE_OPTIONS_NO_URL:"网络层初始化错误,缺少 URL 参数",NETWORK_UNDEFINED_SERVER_NAME:"打包错误,未定义的 serverName",NETWORK_PACKAGE_UNDEFINED:"未定义的 packageConfig",NO_NETWORK:"未连接到网络",CONVERTOR_IRREGULAR_PARAMS:"不规范的参数名称",NOTICE_RUNLOOP_UNEXPECTED_CONDITION:"意料外的通知条件",NOTICE_RUNLOOP_OFFSET_LOST:"_syncOffset 丢失",GET_LONGPOLL_ID_FAILED:"获取 longpolling id 失败",UNCAUGHT_ERROR:"未经明确定义的错误",INVALID_OPERATION:"无效操作,如调用了未定义或者未实现的方法等",CANNOT_FIND_PROTOCOL:"无法找到协议",CANNOT_FIND_MODULE:"无法找到模块,请参考:https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-03-sns.html",SDK_IS_NOT_READY:"接口需要 SDK 处于 ready 状态后才能调用",LOGGING_IN:"用户正在登录中",LOGIN_FAILED:"用户登录失败",KICKED_OUT_MULT_DEVICE:"用户多终端登录被踢出",KICKED_OUT_MULT_ACCOUNT:"用户多实例登录被踢出",KICKED_OUT_USERSIG_EXPIRED:"用户 userSig 过期被踢出",LOGGED_OUT:"用户已登出",KICKED_OUT_REST_API:"用户被 REST API - kick 接口: https://cloud.tencent.com/document/product/269/3853 踢出",OVER_FREQUENCY_LIMIT:"超出 SDK 频率控制",LONG_POLL_KICK_OUT:"检测到多个 web 实例登录,消息通道下线",OPEN_SERVICE_OVERLOAD_ERROR:"后台服务正忙,请稍后再试",MESSAGE_A2KEY_EXPIRED:"消息错误码:UserSig 或 A2 失效。",ACCOUNT_A2KEY_EXPIRED:"帐号错误码:UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",LONG_POLL_API_PARAM_ERROR:"longPoll API parameters error",ILLEGAL_TOPIC_ID:"topicID 非法",CANNOT_USE_COMMERCIAL_ABILITY:"套餐包不支持该接口的使用,请升级到旗舰版套餐"},Da="networkRTT",Na="messageE2EDelay",Aa="sendMessageC2C",Oa="sendMessageGroup",Ra="sendMessageGroupAV",La="sendMessageRichMedia",ka="cosUpload",Ga="messageReceivedGroup",Pa="messageReceivedGroupAVPush",Ua="messageReceivedGroupAVPull",ba=(r(Wt={},Da,2),r(Wt,Na,3),r(Wt,Aa,4),r(Wt,Oa,5),r(Wt,Ra,6),r(Wt,La,7),r(Wt,Ga,8),r(Wt,Pa,9),r(Wt,Ua,10),r(Wt,ka,11),Wt),wa={info:4,warning:5,error:6},Fa={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},qa={login:4},Va=function(){function e(t){n(this,e),this.eventType=qa[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=Re();}return s(e,[{key:"updateTimeStamp",value:function value(){this.timestamp=Re();}},{key:"start",value:function value(e){return this._startts=e,this;}},{key:"end",value:function value(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var o=Re();0===this.costTime&&(this.costTime=o-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(o)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout(function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e);},0);}}},{key:"setError",value:function value(e,t,o){return e instanceof Error?(this._sentFlag||(this.setNetworkType(o),t?(e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message)):(this.setCode(Ca.NO_NETWORK),this.setMoreMessage(Sa.NO_NETWORK)),this.setLevel("error")),this):(be.warn("SSOLogData.setError value not instanceof Error, please check!"),this);}},{key:"setCode",value:function value(e){return Ze(e)||this._sentFlag||("ECONNABORTED"===e&&(this.code=103),$e(e)?this.code=e:be.warn("SSOLogData.setCode value not a number, please check!",e,o(e))),this;}},{key:"setMessage",value:function value(e){return Ze(e)||this._sentFlag||($e(e)&&(this.message=e.toString()),ze(e)&&(this.message=e)),this;}},{key:"setCostTime",value:function value(e){return this.costTime=e,this;}},{key:"setLevel",value:function value(e){return Ze(e)||this._sentFlag||(this.level=wa[e]),this;}},{key:"setMoreMessage",value:function value(e){return Kt(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this;}},{key:"setNetworkType",value:function value(e){if(Ze(e))be.warn("SSOLogData.setNetworkType value is undefined, please check!");else{var t=Fa[e.toLowerCase()];Ze(t)||(this.networkType=t);}return this;}},{key:"getStartTs",value:function value(){return this._startts;}},{key:"setUIPlatform",value:function value(e){this.uiPlatform=e;}}],[{key:"bindEventStatModule",value:function value(t){e.prototype._eventStatModule=t;}}]),e;}(),Ba={SDK_CONSTRUCT:"sdkConstruct",SDK_READY:"sdkReady",LOGIN:"login",LOGOUT:"logout",KICKED_OUT:"kickedOut",REGISTER_PLUGIN:"registerPlugin",KICK_OTHER:"kickOther",WS_CONNECT:"wsConnect",WS_ON_OPEN:"wsOnOpen",WS_ON_CLOSE:"wsOnClose",WS_ON_ERROR:"wsOnError",NETWORK_CHANGE:"networkChange",GET_COS_AUTH_KEY:"getCosAuthKey",GET_COS_PRE_SIG_URL:"getCosPreSigUrl",GET_SNAPSHOT_INFO:"getSnapshotInfo",UPLOAD:"upload",SEND_MESSAGE:"sendMessage",SEND_MESSAGE_WITH_RECEIPT:"sendMessageWithReceipt",SEND_COMBO_MESSAGE:"sendComboMessage",GET_C2C_ROAMING_MESSAGES:"getC2CRoamingMessages",GET_GROUP_ROAMING_MESSAGES:"getGroupRoamingMessages",GET_C2C_ROAMING_MESSAGES_HOPPING:"getC2CRoamingMessagesHopping",GET_GROUP_ROAMING_MESSAGES_HOPPING:"getGroupRoamingMessagesHopping",GET_READ_RECEIPT:"getReadReceipt",GET_READ_RECEIPT_DETAIL:"getReadReceiptDetail",SEND_READ_RECEIPT:"sendReadReceipt",SEND_C2C_READ_RECEIPT:"sendC2CReadReceipt",REVOKE_MESSAGE:"revokeMessage",DELETE_MESSAGE:"deleteMessage",EDIT_MESSAGE:"modifyMessage",SET_C2C_MESSAGE_READ:"setC2CMessageRead",SET_GROUP_MESSAGE_READ:"setGroupMessageRead",EMPTY_MESSAGE_BODY:"emptyMessageBody",GET_PEER_READ_TIME:"getPeerReadTime",UPLOAD_MERGER_MESSAGE:"uploadMergerMessage",DOWNLOAD_MERGER_MESSAGE:"downloadMergerMessage",JSON_PARSE_ERROR:"jsonParseError",MESSAGE_E2E_DELAY_EXCEPTION:"messageE2EDelayException",GET_CONVERSATION_LIST:"getConversationList",GET_CONVERSATION_PROFILE:"getConversationProfile",DELETE_CONVERSATION:"deleteConversation",PIN_CONVERSATION:"pinConversation",GET_CONVERSATION_LIST_IN_STORAGE:"getConversationListInStorage",SYNC_CONVERSATION_LIST:"syncConversationList",SET_ALL_MESSAGE_READ:"setAllMessageRead",SET_CONV_CUSTOM_DATA:"setConvCustomData",MARK_CONVERSATION:"markConversation",GET_REMOTE_CONV_GROUP_LIST:"getRemoteConvGroupList",CREATE_CONV_GROUP:"createConvGroup",DELETE_CONV_GROUP:"deleteConvGroup",RENAME_CONV_GROUP:"renameConvGroup",ADD_CONVS_TO_GROUP:"addConvsToGroup",DELETE_CONVS_FROM_GROUP:"deleteConvsFromGroup",CREATE_GROUP:"createGroup",APPLY_JOIN_GROUP:"applyJoinGroup",QUIT_GROUP:"quitGroup",SEARCH_GROUP_BY_ID:"searchGroupByID",CHANGE_GROUP_OWNER:"changeGroupOwner",HANDLE_GROUP_APPLICATION:"handleGroupApplication",HANDLE_GROUP_INVITATION:"handleGroupInvitation",SET_MESSAGE_REMIND_TYPE:"setMessageRemindType",DISMISS_GROUP:"dismissGroup",UPDATE_GROUP_PROFILE:"updateGroupProfile",GET_GROUP_LIST:"getGroupList",GET_GROUP_PROFILE:"getGroupProfile",GET_GROUP_LIST_IN_STORAGE:"getGroupListInStorage",GET_GROUP_LAST_SEQUENCE:"getGroupLastSequence",GET_GROUP_MISSING_MESSAGE:"getGroupMissingMessage",PAGING_GET_GROUP_LIST:"pagingGetGroupList",PAGING_GET_GROUP_LIST_WITH_TOPIC:"pagingGetGroupListWithTopic",GET_GROUP_SIMPLIFIED_INFO:"getGroupSimplifiedInfo",JOIN_WITHOUT_AUTH:"joinWithoutAuth",INIT_GROUP_ATTRIBUTES:"initGroupAttributes",SET_GROUP_ATTRIBUTES:"setGroupAttributes",DELETE_GROUP_ATTRIBUTES:"deleteGroupAttributes",GET_GROUP_ATTRIBUTES:"getGroupAttributes",GET_GROUP_MEMBER_LIST:"getGroupMemberList",GET_AVCHATROOM_MEMBER_LIST:"getAVChatRoomMemberList",GET_GROUP_MEMBER_PROFILE:"getGroupMemberProfile",ADD_GROUP_MEMBER:"addGroupMember",DELETE_GROUP_MEMBER:"deleteGroupMember",BAN_AVCHATROOM_MEMBER:"banAVChatRoomMember",SET_GROUP_MEMBER_MUTE_TIME:"setGroupMemberMuteTime",SET_GROUP_MEMBER_NAME_CARD:"setGroupMemberNameCard",SET_GROUP_MEMBER_ROLE:"setGroupMemberRole",SET_GROUP_MEMBER_CUSTOM_FIELD:"setGroupMemberCustomField",GET_GROUP_ONLINE_MEMBER_COUNT:"getGroupOnlineMemberCount",SYNC_MESSAGE:"syncMessage",LONG_POLLING_AV_ERROR:"longPollingAVError",MESSAGE_LOSS:"messageLoss",MESSAGE_STACKED:"messageStacked",GET_USER_PROFILE:"getUserProfile",UPDATE_MY_PROFILE:"updateMyProfile",GET_BLACKLIST:"getBlacklist",ADD_TO_BLACKLIST:"addToBlacklist",REMOVE_FROM_BLACKLIST:"removeFromBlacklist",SET_SELF_STATUS:"ws_set_custom_status",GET_USER_STATUS:"ws_get_user_status",SUBSCRIBE_USER_STATUS:"ws_status_subscribe",UNSUBSCRIBE_USER_STATUS:"ws_status_unsubscribe",ADD_FRIEND:"addFriend",CHECK_FRIEND:"checkFriend",DELETE_FRIEND:"removeFromFriendList",GET_FRIEND_PROFILE:"getFriendProfile",GET_FRIEND_LIST:"getFriendList",UPDATE_FRIEND:"updateFriend",GET_FRIEND_APPLICATION_LIST:"getFriendApplicationList",DELETE_FRIEND_APPLICATION:"deleteFriendApplication",ACCEPT_FRIEND_APPLICATION:"acceptFriendApplication",REFUSE_FRIEND_APPLICATION:"refuseFriendApplication",SET_FRIEND_APPLICATION_READ:"setFriendApplicationRead",CREATE_FRIEND_GROUP:"createFriendGroup",DELETE_FRIEND_GROUP:"deleteFriendGroup",RENAME_FRIEND_GROUP:"renameFriendGroup",ADD_TO_FRIEND_GROUP:"addToFriendGroup",REMOVE_FROM_FRIEND_GROUP:"removeFromFriendGroup",GET_FRIEND_GROUP_LIST:"getFriendGroupList",CREATE_TOPIC:"createTopic",DELETE_TOPIC:"deleteTopic",UPDATE_TOPIC_PROFILE:"updateTopicProfile",GET_TOPIC_LIST:"getTopicList",RELAY_GET_TOPIC_LIST:"relayGetTopicList",GET_TOPIC_LAST_SEQUENCE:"getTopicLastSequence",GET_DEVICE_TOKEN:"getDeviceToken",OFFLINE_PUSH_SET_TOKEN:"offlinePushSetToken",MP_HIDE_TO_SHOW:"mpHideToShow",CALLBACK_FUNCTION_ERROR:"callbackFunctionError",FETCH_CLOUD_CONTROL_CONFIG:"fetchCloudControlConfig",PUSHED_CLOUD_CONTROL_CONFIG:"pushedCloudControlConfig",FETCH_COMMERCIAL_CONFIG:"fetchCommercialConfig",PUSHED_COMMERCIAL_CONFIG:"pushedCommercialConfig",ERROR:"error",LAST_MESSAGE_NOT_EXIST:"lastMessageNotExist"},Ka=function(){function e(t){n(this,e),this.type=D.MSG_TEXT,this.content={text:t.text||""};}return s(e,[{key:"setText",value:function value(e){this.content.text=e;}},{key:"sendable",value:function value(){return 0!==this.content.text.length;}}]),e;}(),Ha=function(){function e(t){n(this,e),this._imageMemoryURL="",te?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=D.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||we.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._defaultImage="http://imgcache.qq.com/open/qcloud/video/act/webim-images/default.jpg",this._autoFixUrl();}return s(e,[{key:"_initImageInfoModel",value:function value(){var e=this;this._ImageInfoModel=function(t){this.instanceID=dt(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=t.url||e._imageMemoryURL||e._defaultImage;},this._ImageInfoModel.prototype={setSizeType:function setSizeType(e){this.sizeType=e;},setType:function setType(e){this.type=e;},setImageUrl:function setImageUrl(e){e&&(this.imageUrl=e);},getImageUrl:function getImageUrl(){return this.imageUrl;}};}},{key:"initImageInfoArray",value:function value(e){for(var t=0,o=null,n=null;t<=2;){n=Ze(e)||Ze(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(o=new this._ImageInfoModel(n)).setSizeType(t+1),o.setType(t),this.addImageInfo(o),t++;}this.updateAccessSideImageInfoArray();}},{key:"updateImageInfoArray",value:function value(e){for(var t,o=this.content.imageInfoArray.length,n=0;n<o;n++){t=this.content.imageInfoArray[n],e[n].size&&(t.size=e[n].size),e[n].url&&t.setImageUrl(e[n].url),e[n].width&&(t.width=e[n].width),e[n].height&&(t.height=e[n].height);}}},{key:"_autoFixUrl",value:function value(){for(var e=this.content.imageInfoArray.length,t="",o="",n=["http","https"],a=null,s=0;s<e;s++){this.content.imageInfoArray[s].url&&""!==(a=this.content.imageInfoArray[s]).imageUrl&&(o=a.imageUrl.slice(0,a.imageUrl.indexOf("://")+1),t=a.imageUrl.slice(a.imageUrl.indexOf("://")+1),n.indexOf(o)<0&&(o="https:"),this.content.imageInfoArray[s].setImageUrl([o,t].join("")));}}},{key:"updatePercent",value:function value(e){this._percent=e,this._percent>1&&(this._percent=1);}},{key:"updateImageFormat",value:function value(e){this.content.imageFormat=we[e.toUpperCase()]||we.UNKNOWN;}},{key:"createImageDataASURLInWeb",value:function value(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]));}},{key:"createImageDataASURLInWXMiniApp",value:function value(e){e&&e.url&&(this._imageMemoryURL=e.url);}},{key:"replaceImageInfo",value:function value(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e);}},{key:"addImageInfo",value:function value(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e);}},{key:"updateAccessSideImageInfoArray",value:function value(){var e=this.content.imageInfoArray,t=e[0],o=t.width,n=void 0===o?0:o,a=t.height,s=void 0===a?0:a;0!==n&&0!==s&&(kt(e),Object.assign(e[2],Lt({originWidth:n,originHeight:s,min:720})));}},{key:"sendable",value:function value(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size;}}]),e;}(),xa=function(){function e(t){n(this,e),this.type=D.MSG_FACE,this.content=t||null;}return s(e,[{key:"sendable",value:function value(){return null!==this.content;}}]),e;}(),Wa=function(){function e(t){n(this,e),this.type=D.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:t.url,remoteAudioUrl:t.url||"",uuid:t.uuid};}return s(e,[{key:"updatePercent",value:function value(e){this._percent=e,this._percent>1&&(this._percent=1);}},{key:"updateAudioUrl",value:function value(e){this.content.remoteAudioUrl=e;}},{key:"sendable",value:function value(){return""!==this.content.remoteAudioUrl;}}]),e;}(),Ya={from:!0,groupID:!0,groupName:!0,to:!0},ja=function(){function e(t){n(this,e),this.type=D.MSG_GRP_TIP,this.content={},this._initContent(t);}return s(e,[{key:"_initContent",value:function value(e){var t=this;Object.keys(e).forEach(function(o){switch(o){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[o]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[o]);break;case"memberExtraInfo":case"onlineMemberInfo":break;case"memberNum":t.content[o]=e[o],t.content.memberCount=e[o];break;case"newGroupProfile":t.content.newGroupProfile={},t._initNewGroupProfile(e[o]);break;default:t.content[o]=e[o];}}),this.content.userIDList||(this.content.userIDList=[this.content.operatorID]);}},{key:"_initGroupProfile",value:function value(e){for(var t=Object.keys(e),o=0;o<t.length;o++){var n=t[o];Ya[n]&&(this.content.groupProfile[n]=e[n]);}}},{key:"_updateMemberList",value:function value(e){Kt(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach(function(t){e.forEach(function(e){t.userID===e.userID&&Object.assign(t,e);});});}},{key:"_initNewGroupProfile",value:function value(e){for(var t=Object.keys(e),o=0;o<t.length;o++){var n=t[o];"muteAllMembers"!==n?this.content.newGroupProfile[n]=e[n]:this.content.newGroupProfile[n]=1===e[n];}}}]),e;}(),$a={from:!0,groupID:!0,groupName:!0,to:!0},za=function(){function e(t){n(this,e),this.type=D.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t);}return s(e,[{key:"_initContent",value:function value(e){var t=this;Object.keys(e).forEach(function(o){switch(o){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[o];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[o]);break;default:t.content[o]=e[o];}});}},{key:"_initGroupProfile",value:function value(e){for(var t=Object.keys(e),o=0;o<t.length;o++){var n=t[o];$a[n]&&("groupName"===n?this.content.groupProfile.name=e[n]:this.content.groupProfile[n]=e[n]);}}}]),e;}(),Ja=function(){function e(t){n(this,e),this.type=D.MSG_FILE,this._percent=0;var o=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:t.url||"",uuid:t.uuid,fileName:o.name||"",fileSize:o.size||0};}return s(e,[{key:"_getFileInfo",value:function value(e){if(!Ze(e.fileName)&&!Ze(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(Z){if(t.path&&-1!==t.path.indexOf(".")){var o=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=o,t.name||(t.name="".concat(dt(999999),".").concat(o));}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path);}return{size:t.size,name:t.name};}},{key:"updatePercent",value:function value(e){this._percent=e,this._percent>1&&(this._percent=1);}},{key:"updateFileUrl",value:function value(e){this.content.fileUrl=e;}},{key:"sendable",value:function value(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize;}}]),e;}(),Xa=function(){function e(t){n(this,e),this.type=D.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""};}return s(e,[{key:"setData",value:function value(e){return this.content.data=e,this;}},{key:"setDescription",value:function value(e){return this.content.description=e,this;}},{key:"setExtension",value:function value(e){return this.content.extension=e,this;}},{key:"sendable",value:function value(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length;}}]),e;}(),Qa=function(){function e(t){n(this,e),this.type=D.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:t.videoUrl,videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:t.thumbUrl,snapshotUrl:t.thumbUrl};}return s(e,[{key:"updatePercent",value:function value(e){this._percent=e,this._percent>1&&(this._percent=1);}},{key:"updateVideoUrl",value:function value(e){e&&(this.content.remoteVideoUrl=e);}},{key:"updateSnapshotInfo",value:function value(e){var t=e.snapshotUrl,o=e.snapshotWidth,n=e.snapshotHeight;Kt(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),Kt(o)||(this.content.thumbWidth=this.content.snapshotWidth=Number(o)),Kt(n)||(this.content.thumbHeight=this.content.snapshotHeight=Number(n));}},{key:"sendable",value:function value(){return""!==this.content.remoteVideoUrl;}}]),e;}(),Za=function(){function e(t){n(this,e),this.type=D.MSG_LOCATION;var o=t.description,a=t.longitude,s=t.latitude;this.content={description:o,longitude:a,latitude:s};}return s(e,[{key:"sendable",value:function value(){return!0;}}]),e;}(),es=function(){function e(t){if(n(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",this.clientTime=t.clientTime||void 0,t.ID)this.ID=t.ID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(D.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(D.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var o=t.elements[0].type,a=t.elements[0].content;this._patchRichMediaPayload(o,a),o===D.MSG_MERGER?this.messageBody.push({type:o,payload:new ts(a).content}):this.messageBody.push({type:o,payload:a}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to),this.ID="".concat(t.tinyID,"-").concat(t.clientTime,"-").concat(t.random);}}return s(e,[{key:"_patchRichMediaPayload",value:function value(e,t){e===D.MSG_IMAGE?t.imageInfoArray.forEach(function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1));}):e===D.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===D.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===D.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0);}}]),e;}(),ts=function(){function e(t){if(n(this,e),this.type=D.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var o=t.downloadKey,a=t.pbDownloadKey,s=t.title,r=t.abstractList,i=t.compatibleText,c=t.version;this.content.downloadKey=o,this.content.pbDownloadKey=a,this.content.title=s,this.content.abstractList=r,this.content.compatibleText=i,this.content.version=c||0;}else if(Kt(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var u=t.messageList,l=t.title,d=t.abstractList,p=t.compatibleText,_=t.version,g=[];u.forEach(function(e){if(!Kt(e)){var t=new es(e);g.push(t);}}),this.content.messageList=g,this.content.title=l,this.content.abstractList=d,this.content.compatibleText=p,this.content.version=_||0;}be.debug("MergerElement.content:",this.content);}return s(e,[{key:"sendable",value:function value(){return!Kt(this.content.messageList)||!Kt(this.content.downloadKey);}}]),e;}(),os={1:D.MSG_PRIORITY_HIGH,2:D.MSG_PRIORITY_NORMAL,3:D.MSG_PRIORITY_LOW,4:D.MSG_PRIORITY_LOWEST},ns=function(){function e(t){n(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||D.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:dt(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=1===t.isPeerRead||!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||Yt.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||ke()||0,this.senderTinyID=t.senderTinyID||t.tinyID||"",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.version=t.messageVersion||0,this.isBroadcastMessage=t.isBroadcastMessage||!1,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t);}return s(e,[{key:"elements",get:function get(){return be.warn("!!!Message 实例的 elements 属性即将废弃,请尽快修改。使用 type 和 payload 属性处理单条消息,兼容组合消息使用 _elements 属性!!!"),this._elements;}},{key:"getElements",value:function value(){return this._elements;}},{key:"extractGroupInfo",value:function value(e){if(null!==e){ze(e.nick)&&(this.nick=e.nick),ze(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;Xe(t)&&ze(t.nameCard)&&(this.nameCard=t.nameCard);}}},{key:"handleGroupAtInfo",value:function value(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach(function(e){e!==D.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(D.MSG_AT_ALL));}),Qe(e.groupAtInfo)&&e.groupAtInfo.forEach(function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(D.MSG_AT_ALL);});}},{key:"getGroupAtInfoList",value:function value(){return this._groupAtInfoList;}},{key:"_initProxy",value:function value(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type);}},{key:"reInitialize",value:function value(e){e&&(this.status=this.from?Yt.SUCCESS:Yt.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID();}},{key:"isSendable",value:function value(){return 0!==this._elements.length&&("function"!=typeof this._elements[0].sendable?(be.warn("".concat(this._elements[0].type,' need "boolean : sendable()" method')),!1):this._elements[0].sendable());}},{key:"_initTo",value:function value(e){this.conversationType===D.CONV_GROUP&&(this.to=e.groupID);}},{key:"_initSequence",value:function value(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return be.error("autoIncrementIndex(string: key) need key parameter"),!1;if(void 0===ht[e]){var t=new Date(),o="3".concat(t.getHours()).slice(-2),n="0".concat(t.getMinutes()).slice(-2),a="0".concat(t.getSeconds()).slice(-2);ht[e]=parseInt([o,n,a,"0001"].join("")),o=null,n=null,a=null,be.log("autoIncrementIndex start index:".concat(ht[e]));}return ht[e]++;}(e)),0===this.sequence&&this.conversationType===D.CONV_C2C&&(this.sequence=this.clientSequence);}},{key:"generateMessageID",value:function value(){this.from===D.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random);}},{key:"_initFlow",value:function value(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in");}},{key:"_concatConversationID",value:function value(e){var t=this.to,o="",n=this.conversationType;n!==D.CONV_SYSTEM?(o=n===D.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID="".concat(n).concat(o)):this.conversationID=D.CONV_SYSTEM;}},{key:"isElement",value:function value(e){return e instanceof Ka||e instanceof Ha||e instanceof xa||e instanceof Wa||e instanceof Ja||e instanceof Qa||e instanceof ja||e instanceof za||e instanceof Xa||e instanceof Za||e instanceof ts;}},{key:"setElement",value:function value(e){var t=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var o=function o(e){if(e.type&&e.content)switch(e.type){case D.MSG_TEXT:t.setTextElement(e.content);break;case D.MSG_IMAGE:t.setImageElement(e.content);break;case D.MSG_AUDIO:t.setAudioElement(e.content);break;case D.MSG_FILE:t.setFileElement(e.content);break;case D.MSG_VIDEO:t.setVideoElement(e.content);break;case D.MSG_CUSTOM:t.setCustomElement(e.content);break;case D.MSG_LOCATION:t.setLocationElement(e.content);break;case D.MSG_GRP_TIP:t.setGroupTipElement(e.content);break;case D.MSG_GRP_SYS_NOTICE:t.setGroupSystemNoticeElement(e.content);break;case D.MSG_FACE:t.setFaceElement(e.content);break;case D.MSG_MERGER:t.setMergerElement(e.content);break;default:be.warn(e.type,e.content,"no operation......");}};if(Qe(e))for(var n=0;n<e.length;n++){o(e[n]);}else o(e);this._initProxy();}},{key:"clearElement",value:function value(){this._elements.length=0;}},{key:"setTextElement",value:function value(e){var t="string"==typeof e?e:e.text,o=new Ka({text:t});this._elements.push(o);}},{key:"setImageElement",value:function value(e){var t=new Ha(e);this._elements.push(t);}},{key:"setAudioElement",value:function value(e){var t=new Wa(e);this._elements.push(t);}},{key:"setFileElement",value:function value(e){var t=new Ja(e);this._elements.push(t);}},{key:"setVideoElement",value:function value(e){var t=new Qa(e);this._elements.push(t);}},{key:"setLocationElement",value:function value(e){var t=new Za(e);this._elements.push(t);}},{key:"setCustomElement",value:function value(e){var t=new Xa(e);this._elements.push(t);}},{key:"setGroupTipElement",value:function value(e){var t={},o=e.operationType;if(Kt(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):o!==D.GRP_TIP_MBR_JOIN&&o!==D.GRP_TIP_MBR_KICKED_OUT&&o!==D.GRP_TIP_MBR_SET_ADMIN&&o!==D.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]),!Kt(e.memberExtraInfo)){var n=e.memberExtraInfo.reason;e.msgMemberInfo.forEach(function(e){e.reason=n;});}var a=t,s=a.nick,r=a.avatar;ze(s)&&(this.nick=s),ze(r)&&(this.avatar=r);var i=new ja(e);this._elements.push(i);}},{key:"setGroupSystemNoticeElement",value:function value(e){var t=new za(e);this._elements.push(t);}},{key:"setFaceElement",value:function value(e){var t=new xa(e);this._elements.push(t);}},{key:"setMergerElement",value:function value(e){var t=new ts(e);this._elements.push(t);}},{key:"setIsRead",value:function value(e){this.isRead=e;}},{key:"setRelayFlag",value:function value(e){this._relayFlag=e;}},{key:"getRelayFlag",value:function value(){return this._relayFlag;}},{key:"_computePriority",value:function value(e){if(Ze(e))return D.MSG_PRIORITY_NORMAL;if(ze(e)&&-1!==Object.values(os).indexOf(e))return e;if($e(e)){var t=""+e;if(-1!==Object.keys(os).indexOf(t))return os[t];}return D.MSG_PRIORITY_NORMAL;}},{key:"setNickAndAvatar",value:function value(e){var t=e.nick,o=e.avatar;ze(t)&&(this.nick=t),ze(o)&&(this.avatar=o);}},{key:"setNameCard",value:function value(e){ze(e)&&(this.nameCard=e);}}]),e;}(),as=function as(e){return{code:0,data:e||{}};},ss="https://cloud.tencent.com/document/product/",rs="您可以在即时通信 IM 控制台的【开发辅助工具(https://console.cloud.tencent.com/im-detail/tool-usersig)】 页面校验 UserSig。",is="UserSig 非法,请使用官网提供的 API 重新生成 UserSig(".concat(ss,"269/32688)。"),cs="#.E6.B6.88.E6.81.AF.E5.85.83.E7.B4.A0-timmsgelement",us={70001:"UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",70002:"UserSig 长度为0,请检查传入的 UserSig 是否正确。",70003:is,70005:is,70009:"UserSig 验证失败,可能因为生成 UserSig 时混用了其他 SDKAppID 的私钥或密钥导致,请使用对应 SDKAppID 下的私钥或密钥重新生成 UserSig(".concat(ss,"269/32688)。"),70013:"请求中的 UserID 与生成 UserSig 时使用的 UserID 不匹配。".concat(rs),70014:"请求中的 SDKAppID 与生成 UserSig 时使用的 SDKAppID 不匹配。".concat(rs),70016:"密钥不存在,UserSig 验证失败,请在即时通信 IM 控制台获取密钥(".concat(ss,"269/32578#.E8.8E.B7.E5.8F.96.E5.AF.86.E9.92.A5)。"),70020:"SDKAppID 未找到,请在即时通信 IM 控制台确认应用信息。",70050:"UserSig 验证次数过于频繁。请检查 UserSig 是否正确,并于1分钟后重新验证。".concat(rs),70051:"帐号被拉入黑名单。",70052:"UserSig 已经失效,请重新生成,再次尝试。",70107:"因安全原因被限制登录,请不要频繁登录。",70169:"请求的用户帐号不存在。",70114:"".concat("服务端内部超时,请稍后重试。"),70202:"".concat("服务端内部超时,请稍后重试。"),70206:"请求中批量数量不合法。",70402:"参数非法,请检查必填字段是否填充,或者字段的填充是否满足协议要求。",70403:"请求失败,需要 App 管理员权限。",70398:"帐号数超限。如需创建多于100个帐号,请将应用升级为专业版,具体操作指引请参见购买指引(".concat(ss,"269/32458)。"),70500:"".concat("服务端内部错误,请重试。"),71e3:"删除帐号失败。仅支持删除体验版帐号,您当前应用为专业版,暂不支持帐号删除。",20001:"请求包非法。",20002:"UserSig 或 A2 失效。",20003:"消息发送方或接收方 UserID 无效或不存在,请检查 UserID 是否已导入即时通信 IM。",20004:"网络异常,请重试。",20005:"".concat("服务端内部错误,请重试。"),20006:"触发发送".concat("单聊消息","之前回调,App 后台返回禁止下发该消息。"),20007:"发送".concat("单聊消息",",被对方拉黑,禁止发送。消息发送状态默认展示为失败,您可以登录控制台修改该场景下的消息发送状态展示结果,具体操作请参见消息保留设置(").concat(ss,"269/38656)。"),20009:"消息发送双方互相不是好友,禁止发送(配置".concat("单聊消息","校验好友关系才会出现)。"),20010:"发送".concat("单聊消息",",自己不是对方的好友(单向关系),禁止发送。"),20011:"发送".concat("单聊消息",",对方不是自己的好友(单向关系),禁止发送。"),20012:"发送方被禁言,该条消息被禁止发送。",20016:"消息撤回超过了时间限制(默认2分钟)。",20018:"删除漫游内部错误。",90001:"JSON 格式解析失败,请检查请求包是否符合 JSON 规范。",90002:"".concat("JSON 格式请求包体","中 MsgBody 不符合消息格式描述,或者 MsgBody 不是 Array 类型,请参考 TIMMsgElement 对象的定义(").concat(ss,"269/2720").concat(cs,")。"),90003:"".concat("JSON 格式请求包体","中缺少 To_Account 字段或者 To_Account 帐号不存在。"),90005:"".concat("JSON 格式请求包体","中缺少 MsgRandom 字段或者 MsgRandom 字段不是 Integer 类型。"),90006:"".concat("JSON 格式请求包体","中缺少 MsgTimeStamp 字段或者 MsgTimeStamp 字段不是 Integer 类型。"),90007:"".concat("JSON 格式请求包体","中 MsgBody 类型不是 Array 类型,请将其修改为 Array 类型。"),90008:"".concat("JSON 格式请求包体","中缺少 From_Account 字段或者 From_Account 帐号不存在。"),90009:"请求需要 App 管理员权限。",90010:"".concat("JSON 格式请求包体","不符合消息格式描述,请参考 TIMMsgElement 对象的定义(").concat(ss,"269/2720").concat(cs,")。"),90011:"批量发消息目标帐号超过500,请减少 To_Account 中目标帐号数量。",90012:"To_Account 没有注册或不存在,请确认 To_Account 是否导入即时通信 IM 或者是否拼写错误。",90026:"消息离线存储时间错误(最多不能超过7天)。",90031:"".concat("JSON 格式请求包体","中 SyncOtherMachine 字段不是 Integer 类型。"),90044:"".concat("JSON 格式请求包体","中 MsgLifeTime 字段不是 Integer 类型。"),90048:"请求的用户帐号不存在。",90054:"撤回请求中的 MsgKey 不合法。",90994:"".concat("服务端内部错误,请重试。"),90995:"".concat("服务端内部错误,请重试。"),91e3:"".concat("服务端内部错误,请重试。"),90992:"".concat("服务端内部错误,请重试。","如果所有请求都返回该错误码,且 App 配置了第三方回调,请检查 App 服务端是否正常向即时通信 IM 后台服务端返回回调结果。"),93e3:"JSON 数据包超长,消息包体请不要超过8k。",91101:"Web 端长轮询被踢(Web 端同时在线实例个数超出限制)。",10002:"".concat("服务端内部错误,请重试。"),10003:"请求中的接口名称错误,请核对接口名称并重试。",10004:"参数非法,请根据错误描述检查请求是否正确。",10005:"请求包体中携带的帐号数量过多。",10006:"操作频率限制,请尝试降低调用的频率。",10007:"操作权限不足,例如 Work ".concat("群组","中普通成员尝试执行踢人操作,但只有 App 管理员才有权限。"),10008:"请求非法,可能是请求中携带的签名信息验证不正确,请再次尝试。",10009:"该群不允许群主主动退出。",10010:"".concat("群组","不存在,或者曾经存在过,但是目前已经被解散。"),10011:"解析 JSON 包体失败,请检查包体的格式是否符合 JSON 格式。",10012:"发起操作的 UserID 非法,请检查发起操作的用户 UserID 是否填写正确。",10013:"被邀请加入的用户已经是群成员。",10014:"群已满员,无法将请求中的用户加入".concat("群组",",如果是批量加人,可以尝试减少加入用户的数量。"),10015:"找不到指定 ID 的".concat("群组","。"),10016:"App 后台通过第三方回调拒绝本次操作。",10017:"因被禁言而不能发送消息,请检查发送者是否被设置禁言。",10018:"应答包长度超过最大包长(1MB),请求的内容过多,请尝试减少单次请求的数据量。",10019:"请求的用户帐号不存在。",10021:"".concat("群组"," ID 已被使用,请选择其他的").concat("群组"," ID。"),10023:"发消息的频率超限,请延长两次发消息时间的间隔。",10024:"此邀请或者申请请求已经被处理。",10025:"".concat("群组"," ID 已被使用,并且操作者为群主,可以直接使用。"),10026:"该 SDKAppID 请求的命令字已被禁用。",10030:"请求撤回的消息不存在。",10031:"消息撤回超过了时间限制(默认2分钟)。",10032:"请求撤回的消息不支持撤回操作。",10033:"".concat("群组","类型不支持消息撤回操作。"),10034:"该消息类型不支持删除操作。",10035:"直播群和在线成员广播大群不支持删除消息。",10036:"直播群创建数量超过了限制,请参考价格说明(".concat(ss,"269/11673)购买预付费套餐“IM直播群”。"),10037:"单个用户可创建和加入的".concat("群组","数量超过了限制,请参考价格说明(").concat(ss,"269/11673)购买或升级预付费套餐“单人可创建与加入").concat("群组","数”。"),10038:"群成员数量超过限制,请参考价格说明(".concat(ss,"269/11673)购买或升级预付费套餐“扩展群人数上限”。"),10041:"该应用(SDKAppID)已配置不支持群消息撤回。",10050:"群属性 key 不存在",10056:"请在写入群属性前先使用 getGroupAttributes 接口更新本地群属性,避免冲突。",10059:"非旗舰版",10060:"群人数超过已读回执人数上限",10061:"在线消息不支持已读回执",10062:"找不到群消息的已读回执信息",20026:"消息不存在",20029:"该群类型不支持修改消息。",30001:"请求参数错误,请根据错误描述检查请求参数",30002:"SDKAppID 不匹配",30003:"请求的用户帐号不存在",30004:"请求需要 App 管理员权限",30005:"关系链字段中包含敏感词",30006:"".concat("服务端内部错误,请重试。"),30007:"".concat("网络超时,请稍后重试. "),30008:"并发写导致写冲突,建议使用批量方式",30009:"后台禁止该用户发起加好友请求",30010:"自己的好友数已达系统上限",30011:"分组已达系统上限",30012:"未决数已达系统上限",30014:"对方的好友数已达系统上限",30515:"请求添加好友时,对方在自己的黑名单中,不允许加好友",30516:"请求添加好友时,对方的加好友验证方式是不允许任何人添加自己为好友",30525:"请求添加好友时,自己在对方的黑名单中,不允许加好友",30539:"等待对方同意",30540:"添加好友请求被安全策略打击,请勿频繁发起添加好友请求",31704:"与请求删除的帐号之间不存在好友关系",31707:"删除好友请求被安全策略打击,请勿频繁发起删除好友请求",50001:"解包失败",50002:"请求参数错误,请根据错误描述检查请求是否正确",50004:"会话分组不存在",51006:"会话标记每次调整的会话数为空或者超过了100个上限",51007:"GroupID 换 GroupCode 失败,内部错误或 Group 已经解散",51008:"会话分组的总的会话数超过了1000",51009:"删除会话分组时分组不存在",51010:"会话分组数超过了上限(默认20个)",51011:"分组名超过了32个字节"},ls=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this)).code=e.code,a.message=us[e.code]||e.message,a.data=e.data||{},a;}return s(o);}(p(Error)),ds=null,ps=function ps(e){ds=e;},_s=function _s(e){return Promise.resolve(as(e));},gs=function gs(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof ls)return t&&null!==ds&&ds.emit(S.ERROR,e),Promise.reject(e);if(e instanceof Error){var o=new ls({code:Ca.UNCAUGHT_ERROR,message:e.message});return t&&null!==ds&&ds.emit(S.ERROR,o),Promise.reject(o);}if(Ze(e)||Ze(e.code)||Ze(e.message))be.error("IMPromise.reject 必须指定code(错误码)和message(错误信息)!!!");else{if($e(e.code)&&ze(e.message)){var n=new ls(e);return t&&null!==ds&&ds.emit(S.ERROR,n),Promise.reject(n);}be.error("IMPromise.reject code(错误码)必须为数字,message(错误信息)必须为字符串!!!");}},hs=function(e){i(a,e);var o=f(a);function a(e){var t;return n(this,a),(t=o.call(this,e))._className="C2CModule",t._messageFromUnreadDBMap=new Map(),t;}return s(a,[{key:"onNewC2CMessage",value:function value(e){var t=e.dataList,o=e.isInstantMessage,n=e.C2CRemainingUnreadList,a=e.C2CPairUnreadList;be.debug("".concat(this._className,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(o));var s=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:n,C2CPairUnreadList:a,isInstantMessage:o}),r=s.conversationOptionsList,i=s.messageList,c=s.isUnreadC2CMessage;(this.filterModifiedMessage(i),r.length>0)&&this.getModule(po).onNewMessage({conversationOptionsList:r,isInstantMessage:o,isUnreadC2CMessage:c});var u=this.filterUnmodifiedMessage(i);o&&u.length>0&&this.emitOuterEvent(S.MESSAGE_RECEIVED,u),i.length=0;}},{key:"_newC2CMessageStoredAndSummary",value:function value(e){for(var t=e.dataList,o=e.C2CRemainingUnreadList,n=e.C2CPairUnreadList,a=e.isInstantMessage,s=null,r=[],i=[],c={},u=this.getModule(mo),l=this.getModule(No),d=!1,p=this.getModule(po),_=0,g=t.length;_<g;_++){var h=t[_];h.currentUser=this.getMyUserID(),h.conversationType=D.CONV_C2C,h.isSystemMessage=!!h.isSystemMessage,(Ze(h.nick)||Ze(h.avatar))&&(d=!0,be.debug("".concat(this._className,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),s=new ns(h),h.elements=u.parseElements(h.elements,h.from),s.setElement(h.elements),s.setNickAndAvatar({nick:h.nick,avatar:h.avatar});var f=s.conversationID;if(a){if(1===this._messageFromUnreadDBMap.get(s.ID))continue;var m=!1;if(s.from!==this.getMyUserID()){var M=p.getLatestMessageSentByPeer(f);if(M){var v=M.nick,I=M.avatar;d?s.setNickAndAvatar({nick:v,avatar:I}):v===s.nick&&I===s.avatar||(m=!0);}}else{var y=p.getLatestMessageSentByMe(f);if(y){var T=y.nick,E=y.avatar;T===s.nick&&E===s.avatar||p.modifyMessageSentByMe({conversationID:f,latestNick:s.nick,latestAvatar:s.avatar});}}var C=1===t[_].isModified;if(p.isMessageSentByCurrentInstance(s)?s.isModified=C:C=!1,0===h.msgLifeTime)s._onlineOnlyFlag=!0,p.isMessageSentByCurrentInstance(s)||i.push(s);else{if(!p.pushIntoMessageList(i,s,C))continue;m&&(p.modifyMessageSentByPeer({conversationID:f,latestNick:s.nick,latestAvatar:s.avatar}),p.updateUserProfileSpecifiedKey({conversationID:f,nick:s.nick,avatar:s.avatar}));}a&&s.clientTime>0&&l.addMessageDelay(s.clientTime);}else this._messageFromUnreadDBMap.set(s.ID,1);if(0!==h.msgLifeTime){if(!1===s._onlineOnlyFlag){var S=p.getLastMessageTime(f);if($e(S)&&s.time<S)continue;if(Ze(c[f])){var N=0;"in"===s.flow&&(s._isExcludedFromUnreadCount||(N=1)),c[f]=r.push({conversationID:f,unreadCount:N,type:s.conversationType,subType:s.conversationSubType,lastMessage:s._isExcludedFromLastMessage?"":s})-1;}else{var A=c[f];r[A].type=s.conversationType,r[A].subType=s.conversationSubType,r[A].lastMessage=s._isExcludedFromLastMessage?"":s,"in"===s.flow&&(s._isExcludedFromUnreadCount||r[A].unreadCount++);}}}else s._onlineOnlyFlag=!0;}var O=!1;if(Qe(n))for(var R=function R(e,t){if(n[e].unreadCount>0){O=!0;var o=r.find(function(t){return t.conversationID==="C2C".concat(n[e].from);});o?o.unreadCount=n[e].unreadCount:r.push({conversationID:"C2C".concat(n[e].from),unreadCount:n[e].unreadCount,type:D.CONV_C2C});}},L=0,k=n.length;L<k;L++){R(L);}if(Qe(o))for(var G=function G(e,t){r.find(function(t){return t.conversationID==="C2C".concat(o[e].from);})||r.push({conversationID:"C2C".concat(o[e].from),type:D.CONV_C2C,lastMsgTime:o[e].lastMsgTime});},P=0,U=o.length;P<U;P++){G(P);}return{conversationOptionsList:r,messageList:i,isUnreadC2CMessage:O};}},{key:"onC2CMessageRevoked",value:function value(e){var t=this;be.debug("".concat(this._className,".onC2CMessageRevoked count:").concat(e.dataList.length));var o=this.getModule(po),n=[],a=null;e.dataList.forEach(function(e){if(e.c2cMessageRevokedNotify){var s=e.c2cMessageRevokedNotify.revokedInfos;Ze(s)||s.forEach(function(e){var s=t.getMyUserID()===e.from?"".concat(D.CONV_C2C).concat(e.to):"".concat(D.CONV_C2C).concat(e.from);(a=o.revoke(s,e.sequence,e.random))&&n.push(a);});}}),0!==n.length&&(o.onMessageRevoked(n),this.emitOuterEvent(S.MESSAGE_REVOKED,n));}},{key:"onC2CMessageReadReceipt",value:function value(e){var t=this;e.dataList.forEach(function(e){if(!Kt(e.c2cMessageReadReceipt)){var o=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach(function(e){var n=e.peerReadTime;be.debug("".concat(t._className,"._onC2CMessageReadReceipt to:").concat(o," peerReadTime:").concat(n));var a="".concat(D.CONV_C2C).concat(o),s=t.getModule(po);s.recordPeerReadTime(a,n),s.updateMessageIsPeerReadProperty(a,n);});}});}},{key:"onC2CMessageReadNotice",value:function value(e){var t=this;e.dataList.forEach(function(e){if(!Kt(e.c2cMessageReadNotice)){var o=t.getModule(po);e.c2cMessageReadNotice.uinPairReadArray.forEach(function(e){var n=e.from,a=e.peerReadTime;be.debug("".concat(t._className,".onC2CMessageReadNotice from:").concat(n," lastReadTime:").concat(a));var s="".concat(D.CONV_C2C).concat(n);o.updateIsReadAfterReadReport({conversationID:s,lastMessageTime:a}),o.updateUnreadCount(s);});}});}},{key:"onC2CMessageModified",value:function value(e){be.debug("".concat(this._className,".onC2CMessageModified options:"),JSON.stringify(e));var o=this.getModule(po);e.dataList.forEach(function(e){o.onMessageModified(t(t({},e),{},{conversationType:D.CONV_C2C}));});}},{key:"onReadReceiptList",value:function value(e){be.debug("".concat(this._className,".onReadReceiptList options:"),JSON.stringify(e));var t=e.dataList,o=t.userID,n=t.readReceiptList;this.getModule(po).updateReadReceiptInfo({userID:o,readReceiptList:n});}},{key:"sendMessage",value:function value(e,t){var o=this._createC2CMessagePack(e,t);return this.request(o);}},{key:"_createC2CMessagePack",value:function value(e,t){var o=null;t&&(t.offlinePushInfo&&(o=t.offlinePushInfo),!0===t.onlineUserOnly&&(o?o.disablePush=!0:o={disablePush:!0}));var n="";ze(e.cloudCustomData)&&e.cloudCustomData.length>0&&(n=e.cloudCustomData);var a=[];if(Xe(t)&&Xe(t.messageControlInfo)){var s=t.messageControlInfo,r=s.excludedFromUnreadCount,i=s.excludedFromLastMessage;!0===r&&a.push("NoUnread"),!0===i&&a.push("NoLastMsg");}return{protocolName:wo,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:n,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:this.isOnlineMessage(e,t)?0:void 0,nick:e.nick,avatar:e.avatar,offlinePushInfo:o?{pushFlag:!0===o.disablePush?1:0,title:o.title||"",desc:o.description||"",ext:o.extension||"",apnsInfo:{badgeMode:!0===o.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:o.androidOPPOChannelID||""}}:void 0,messageControlInfo:a,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0}};}},{key:"isOnlineMessage",value:function value(e,t){return!(!t||!0!==t.onlineUserOnly);}},{key:"revokeMessage",value:function value(e){return this.request({protocolName:xo,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}});}},{key:"deleteMessage",value:function value(e){var t=e.to,o=e.keyList;return be.log("".concat(this._className,".deleteMessage toAccount:").concat(t," count:").concat(o.length)),this.request({protocolName:Jo,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:o}});}},{key:"modifyRemoteMessage",value:function value(e){var t=e.from,o=e.to,n=e.version,a=void 0===n?0:n,s=e.sequence,r=e.random,i=e.time,c=e.payload,u=e.type,l=e.cloudCustomData,d=void 0;return qt(u)&&(d=[]).push({type:u,content:c}),this.request({protocolName:Xo,requestData:{from:t,to:o,version:a,sequence:s,random:r,time:i,elements:d,cloudCustomData:l}});}},{key:"setMessageRead",value:function value(e){var t=this,o=e.conversationID,n=e.lastMessageTime,a="".concat(this._className,".setMessageRead");be.log("".concat(a," conversationID:").concat(o," lastMessageTime:").concat(n)),$e(n)||be.warn("".concat(a," 请勿修改 Conversation.lastMessage.lastTime,否则可能会导致已读上报结果不准确"));var s=new Va(Ba.SET_C2C_MESSAGE_READ);return s.setMessage("conversationID:".concat(o," lastMessageTime:").concat(n)),this.request({protocolName:Wo,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:o.replace("C2C",""),lastMessageTime:n,receipt:1}]}}}).then(function(){s.setNetworkType(t.getNetworkType()).end(),be.log("".concat(a," ok"));var e=t.getModule(po);return e.updateIsReadAfterReadReport({conversationID:o,lastMessageTime:n}),e.updateUnreadCount(o),as();}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.log("".concat(a," failed. error:"),e),gs(e);});}},{key:"getRoamingMessage",value:function value(e){var t=this,o="".concat(this._className,".getRoamingMessage"),n=e.peerAccount,a=e.conversationID,s=e.count,r=e.lastMessageTime,i=e.messageKey,c="peerAccount:".concat(n," count:").concat(s||15," lastMessageTime:").concat(r||0," messageKey:").concat(i);be.log("".concat(o," ").concat(c));var u=new Va(Ba.GET_C2C_ROAMING_MESSAGES);return this.request({protocolName:$o,requestData:{peerAccount:n,count:s||15,lastMessageTime:r||0,messageKey:i}}).then(function(e){var n=e.data,s=n.complete,r=n.messageList,i=n.messageKey,l=n.lastMessageTime;Ze(r)?be.log("".concat(o," ok. complete:").concat(s," but messageList is undefined!")):be.log("".concat(o," ok. complete:").concat(s," count:").concat(r.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(s," length:").concat(r.length)).end();var d=t.getModule(po);1===s&&d.setCompleted(a);var p=d.onRoamingMessage(r,a);d.modifyMessageList(a),d.updateIsRead(a),d.updateRoamingMessageKeyAndTime(a,i,l);var _=d.getPeerReadTime(a);if(be.log("".concat(o," update isPeerRead property. conversationID:").concat(a," peerReadTime:").concat(_)),_)d.updateMessageIsPeerReadProperty(a,_);else{var g=a.replace(D.CONV_C2C,"");t.getRemotePeerReadTime([g]).then(function(){d.updateMessageIsPeerReadProperty(a,d.getPeerReadTime(a));});}var h="";if(p.length>0)h=p[0].ID;else{var f=d.getLocalOldestMessage(a);f&&(h=f.ID);}return be.log("".concat(o," nextReqID:").concat(h," stored message count:").concat(p.length)),{nextReqID:h,storedMessageList:p};}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];u.setMessage(c).setError(e,n,a).end();}),be.warn("".concat(o," failed. error:"),e),gs(e);});}},{key:"getRoamingMessagesHopping",value:function value(e){var t=this,o="".concat(this._className,".getRoamingMessagesHopping"),n=e.peerAccount,a=e.time,s=void 0===a?0:a,r=e.count,i=e.direction,c="".concat(D.CONV_C2C).concat(n),u="peerAccount:".concat(n," count:").concat(r," time:").concat(s," direction:").concat(i);be.log("".concat(o," ").concat(u));var l=new Va(Ba.GET_C2C_ROAMING_MESSAGES_HOPPING);return this.request({protocolName:$o,requestData:{peerAccount:n,count:r+1,lastMessageTime:s,direction:i}}).then(function(e){var n=e.data,a=n.complete,s=n.messageList,r=void 0===s?[]:s,d=n.lastMessageTime;be.log("".concat(o," ok. complete:").concat(a," count:").concat(r.length)),l.setNetworkType(t.getNetworkType()).setMessage("".concat(u," complete:").concat(a," length:").concat(r.length)).end(),1!==a&&(1===i?r.pop():r.shift());var p=t.getModule(po).onRoamingMessage(r,c,!1);t._modifyMessageList(c,p);var _=t._computeResult({complete:a,lastMessageTime:d,resultList:p});return as(_);}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];l.setMessage(u).setError(e,n,a).end();}),be.warn("".concat(o," failed. error:"),e),gs(e);});}},{key:"_computeResult",value:function value(e){var t=e.complete,o=void 0===t?0:t,n=e.lastMessageTime,a=e.resultList,s={messageList:M(void 0===a?[]:a),isCompleted:!1,nextMessageTime:""};return 1===o?(s.isCompleted=!0,s):(s.nextMessageTime=n,s);}},{key:"_modifyMessageList",value:function value(e,t){var o=this.getModule(po).getLocalConversation(e);if(o)for(var n=o.userProfile.nick,a=o.userProfile.avatar,s=this.getModule(so).getNickAndAvatarByUserID(this.getMyUserID()),r=s.nick,i=s.avatar,c=t.length-1;c>=0;c--){var u=t[c];"in"===u.flow&&(u.nick!==n&&u.setNickAndAvatar({nick:n}),u.avatar!==a&&u.setNickAndAvatar({avatar:a})),"out"===u.flow&&(u.nick!==r&&u.setNickAndAvatar({nick:r}),u.avatar!==i&&u.setNickAndAvatar({avatar:i}));}}},{key:"getRemotePeerReadTime",value:function value(e){var t=this,o="".concat(this._className,".getRemotePeerReadTime");if(Kt(e))return be.warn("".concat(o," userIDList is empty!")),Promise.resolve();var n=new Va(Ba.GET_PEER_READ_TIME);return be.log("".concat(o," userIDList:").concat(e)),this.request({protocolName:zo,requestData:{userIDList:e}}).then(function(a){var s=a.data.peerReadTimeList;be.log("".concat(o," ok. peerReadTimeList:").concat(s));for(var r="",i=t.getModule(po),c=0;c<e.length;c++){r+="".concat(e[c],"-").concat(s[c]," "),s[c]>0&&i.recordPeerReadTime("C2C".concat(e[c]),s[c]);}n.setNetworkType(t.getNetworkType()).setMessage(r).end();}).catch(function(e){t.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.warn("".concat(o," failed. error:"),e);});}},{key:"sendReadReceipt",value:function value(e){var t=this,o=e[0].conversationID.replace(D.CONV_C2C,""),n=new Va(Ba.SEND_C2C_READ_RECEIPT);n.setMessage("peerAccount:".concat(o));var a=this.getMyUserID(),s=e.filter(function(e){return e.from!==a&&!0===e.needReadReceipt;}).map(function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime};});if(0===s.length)return gs({code:Ca.READ_RECEIPT_MESSAGE_LIST_EMPTY,message:Sa.READ_RECEIPT_MESSAGE_LIST_EMPTY});var r="".concat(this._className,".sendReadReceipt");return be.log("".concat(r,". peerAccount:").concat(o," messageInfoList length:").concat(s.length)),this.request({protocolName:Rn,requestData:{peerAccount:o,messageInfoList:s}}).then(function(e){return n.end(),be.log("".concat(r," ok")),as();}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.warn("".concat(r," failed. error:"),e),gs(e);});}},{key:"getReadReceiptList",value:function value(e){var t="".concat(this._className,".getReadReceiptList"),o=this.getMyUserID(),n=e.filter(function(e){return e.from===o&&!0===e.needReadReceipt;});return be.log("".concat(t," userID:").concat(o," messageList length:").concat(n.length)),_s({messageList:n});}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._messageFromUnreadDBMap.clear();}}]),a;}(Ro),fs=function(){function e(){n(this,e),this.list=new Map(),this._className="MessageListHandler",this._latestMessageSentByPeerMap=new Map(),this._latestMessageSentByMeMap=new Map(),this._groupLocalLastMessageSequenceMap=new Map();}return s(e,[{key:"getLocalOldestMessageByConversationID",value:function value(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null;}},{key:"pushIn",value:function value(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e.conversationID,n=!0;this.list.has(o)||this.list.set(o,new Map());var a=this._getUniqueIDOfMessage(e),s=this.list.get(o).has(a);if(s){var r=this.list.get(o).get(a);if(!t||!0===r.isModified)return n=!1;}return this.list.get(o).set(a,e),this._setLatestMessageSentByPeer(o,e),this._setLatestMessageSentByMe(o,e),this._setGroupLocalLastMessageSequence(o,e),n;}},{key:"unshift",value:function value(e,t){var o;if(Qe(e)){if(e.length>0){o=e[0].conversationID;var n=e.length;this._unshiftMultipleMessages(e,t),this._setGroupLocalLastMessageSequence(o,e[n-1]);}}else o=e.conversationID,this._unshiftSingleMessage(e,t),this._setGroupLocalLastMessageSequence(o,e);if(o&&o.startsWith(D.CONV_C2C)){var a=Array.from(this.list.get(o).values()),s=a.length;if(0===s)return;for(var r=s-1;r>=0;r--){if("out"===a[r].flow){this._setLatestMessageSentByMe(o,a[r]);break;}}for(var i=s-1;i>=0;i--){if("in"===a[i].flow){this._setLatestMessageSentByPeer(o,a[i]);break;}}}}},{key:"_unshiftSingleMessage",value:function value(e,t){var o=e.conversationID,n=this._getUniqueIDOfMessage(e);if(!this.list.has(o))return this.list.set(o,new Map()),this.list.get(o).set(n,e),void t.push(e);var a=this.list.get(o),s=Array.from(a);a.has(n)||(s.unshift([n,e]),this.list.set(o,new Map(s)),t.push(e));}},{key:"_unshiftMultipleMessages",value:function value(e,t){for(var o=e.length,n=[],a=e[0].conversationID,s=this.list.get(a),r=this.list.has(a)?Array.from(s):[],i=0;i<o;i++){var c=this._getUniqueIDOfMessage(e[i]);s&&s.has(c)||(n.push([c,e[i]]),t.push(e[i]));}this.list.set(a,new Map(n.concat(r)));}},{key:"remove",value:function value(e){var t=e.conversationID,o=this._getUniqueIDOfMessage(e);this.list.has(t)&&this.list.get(t).delete(o);}},{key:"revoke",value:function value(e,t,o){if(be.debug("revoke message",e,t,o),this.list.has(e)){var n,a=C(this.list.get(e));try{for(a.s();!(n=a.n()).done;){var s=m(n.value,2)[1];if(s.sequence===t&&!s.isRevoked&&(Ze(o)||s.random===o))return s.isRevoked=!0,s;}}catch(r){a.e(r);}finally{a.f();}}return null;}},{key:"removeByConversationID",value:function value(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e));}},{key:"findMessage",value:function value(e){var t,o=null,n=C(this.list);try{for(n.s();!(t=n.n()).done;){for(var a=M(m(t.value,2)[1].values()),s=a.length,r=0;r<s;r++){if(a[r].ID===e){o=a[r];break;}}}}catch(i){n.e(i);}finally{n.f();}return o;}},{key:"updateMessageIsPeerReadProperty",value:function value(e,t){var o=[];if(this.list.has(e)){var n,a=C(this.list.get(e));try{for(a.s();!(n=a.n()).done;){var s=m(n.value,2)[1];s.time<=t&&!s.isPeerRead&&"out"===s.flow&&(s.isPeerRead=!0,o.push(s));}}catch(r){a.e(r);}finally{a.f();}be.log("".concat(this._className,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(o.length));}return o;}},{key:"updateMessageIsModifiedProperty",value:function value(e){var t=e.conversationID;if(this.list.has(t)){var o=this._getUniqueIDOfMessage(e),n=this.list.get(t).get(o);n&&(n.isModified=!0);}}},{key:"hasLocalMessageList",value:function value(e){return this.list.has(e);}},{key:"getLocalMessageList",value:function value(e){return this.hasLocalMessageList(e)?M(this.list.get(e).values()):[];}},{key:"hasLocalMessage",value:function value(e,t){for(var o=!1,n=this.getLocalMessageList(e),a=n.length,s=0;s<a;s++){n[s].ID===t&&(o=!0);}return o;}},{key:"getLocalMessage",value:function value(e,t){for(var o=null,n=this.getLocalMessageList(e),a=n.length,s=0;s<a;s++){if(n[s].ID===t){o=n[s];break;}}return o;}},{key:"getLocalLastMessage",value:function value(e){var t=this.getLocalMessageList(e);return t[t.length-1];}},{key:"getLocalOldestMessage",value:function value(e){return this.getLocalMessageList(e)[0];}},{key:"_setLatestMessageSentByPeer",value:function value(e,t){e.startsWith(D.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t);}},{key:"_setLatestMessageSentByMe",value:function value(e,t){e.startsWith(D.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t);}},{key:"_setGroupLocalLastMessageSequence",value:function value(e,t){e.startsWith(D.CONV_GROUP)&&this._groupLocalLastMessageSequenceMap.set(e,t.sequence);}},{key:"getLatestMessageSentByPeer",value:function value(e){return this._latestMessageSentByPeerMap.get(e);}},{key:"getLatestMessageSentByMe",value:function value(e){return this._latestMessageSentByMeMap.get(e);}},{key:"getGroupLocalLastMessageSequence",value:function value(e){return this._groupLocalLastMessageSequenceMap.get(e)||0;}},{key:"modifyMessageSentByPeer",value:function value(e){var t=e.conversationID,o=e.latestNick,n=e.latestAvatar,a=this.list.get(t);if(!Kt(a)){var s=Array.from(a.values()),r=s.length;if(0!==r){for(var i=null,c=0,u=!1,l=r-1;l>=0;l--){"in"===s[l].flow&&((i=s[l]).nick!==o&&(i.setNickAndAvatar({nick:o}),u=!0),i.avatar!==n&&(i.setNickAndAvatar({avatar:n}),u=!0),u&&(c+=1));}be.log("".concat(this._className,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c));}}}},{key:"modifyMessageSentByMe",value:function value(e){var t=e.conversationID,o=e.latestNick,n=e.latestAvatar,a=this.list.get(t);if(!Kt(a)){var s=Array.from(a.values()),r=s.length;if(0!==r){for(var i=null,c=0,u=!1,l=r-1;l>=0;l--){"out"===s[l].flow&&((i=s[l]).nick!==o&&(i.setNickAndAvatar({nick:o}),u=!0),i.avatar!==n&&(i.setNickAndAvatar({avatar:n}),u=!0),u&&(c+=1));}be.log("".concat(this._className,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c));}}}},{key:"getTopicConversationIDList",value:function value(e){return M(this.list.keys()).filter(function(t){return t.startsWith("".concat(D.CONV_GROUP).concat(e));});}},{key:"traversal",value:function value(){if(0!==this.list.size&&-1===be.getLevel()){console.group("conversationID-messageCount");var e,t=C(this.list);try{for(t.s();!(e=t.n()).done;){var o=m(e.value,2),n=o[0],a=o[1];console.log("".concat(n,"-").concat(a.size));}}catch(s){t.e(s);}finally{t.f();}console.groupEnd();}}},{key:"onMessageModified",value:function value(e,t){if(!this.list.has(e))return{isUpdated:!1,message:null};var o=this._getUniqueIDOfMessage(t),n=this.list.get(e).has(o);if(be.debug("".concat(this._className,".onMessageModified conversationID:").concat(e," uniqueID:").concat(o," has:").concat(n)),n){var a=this.list.get(e).get(o),s=t.messageVersion,r=t.elements,i=t.cloudCustomData;return a.version<s?(a.version=s,a._elements=JSON.parse(JSON.stringify(r)),a.payload=JSON.parse(JSON.stringify(r[0].content)),a.type=r[0].type,a.cloudCustomData=i,a.isModified=!0,{isUpdated:!0,message:a}):{isUpdated:!1,message:a};}return{isUpdated:!1,message:null};}},{key:"_getUniqueIDOfMessage",value:function value(e){var t=e.from,o=e.to,n=e.random,a=e.sequence,s=e.time;return"".concat(t,"-").concat(o,"-").concat(n,"-").concat(a,"-").concat(s);}},{key:"reset",value:function value(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear(),this._groupLocalLastMessageSequenceMap.clear();}}]),e;}(),ms="_a2KeyAndTinyIDUpdated",Ms="_cloudConfigUpdated",vs="_profileUpdated";function Is(e){this.mixin(e);}Is.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e));},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout(function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach(function(e){e.call(this);},e);},1);},t.resetReady=function(){this._isReady=!1,this._readyQueue=[];},t.isReady=function(){return this._isReady;};};var ys=["jpg","jpeg","gif","png","bmp","image","webp"],Ts=["mp4"],Es=1,Cs=2,Ss=3,Ds=255,Ns=function(){function e(t){var o=this;n(this,e),Kt(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||D.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||D.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],Kt(t.profileCustomField)||t.profileCustomField.forEach(function(e){o.profileCustomField.push({key:e.key,value:e.value});}));}return s(e,[{key:"validate",value:function value(e){var t=!0,o="";if(Kt(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var n=e.profileCustomField.length,a=null,s=0;s<n;s++){if(a=e.profileCustomField[s],!ze(a.key)||-1===a.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"自定义资料字段的前缀必须是 Tag_Profile_Custom"};if(!ze(a.value))return{valid:!1,tips:"自定义资料字段的 value 必须是字符串"};}for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){if("profileCustomField"===r)continue;if(Kt(e[r])&&!ze(e[r])&&!$e(e[r])){o="key:"+r+", invalid value:"+e[r],t=!1;continue;}switch(r){case"nick":ze(e[r])||(o="nick should be a string",t=!1),lt(e[r])>500&&(o="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(lt(e[r])," bytes"),t=!1);break;case"gender":gt(qe,e.gender)||(o="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":$e(e.birthday)||(o="birthday should be a number",t=!1);break;case"location":ze(e.location)||(o="location should be a string",t=!1);break;case"selfSignature":ze(e.selfSignature)||(o="selfSignature should be a string",t=!1);break;case"allowType":gt(Be,e.allowType)||(o="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":$e(e.language)||(o="language should be a number",t=!1);break;case"avatar":ze(e.avatar)||(o="avatar should be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(o="messageSettings should be 0 or 1",t=!1);break;case"adminForbidType":gt(Ve,e.adminForbidType)||(o="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":$e(e.level)||(o="level should be a number",t=!1);break;case"role":$e(e.role)||(o="role should be a number",t=!1);break;default:o="unknown key:"+r+" "+e[r],t=!1;}}}return{valid:t,tips:o};}}]),e;}(),As=s(function e(t){n(this,e),this.value=t,this.next=null;}),Os=function(){function e(t){n(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map(),be.debug("SinglyLinkedList init MAX_LENGTH:".concat(this.MAX_LENGTH));}return s(e,[{key:"set",value:function value(e){var t=new As(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var o=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(o.value),o.next=null,o=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1);}}},{key:"has",value:function value(e){return this.map.has(e);}},{key:"delete",value:function value(e){this.has(e)&&this.map.delete(e);}},{key:"tail",value:function value(){return this.pTail;}},{key:"size",value:function value(){return this.map.size;}},{key:"data",value:function value(){return Array.from(this.map.keys());}},{key:"reset",value:function value(){for(var e;null!==this.pNodeToDel;){e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;}this.pTail=null,this.map.clear();}}]),e;}(),Rs=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers","isSupportTopic"],Ls=function(){function e(t){n(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._initGroup(t);}return s(e,[{key:"memberNum",get:function get(){return be.warn("!!!v2.8.0起弃用memberNum,请使用 memberCount"),this.memberCount;},set:function set(e){}},{key:"maxMemberNum",get:function get(){return be.warn("!!!v2.8.0起弃用maxMemberNum,请使用 maxMemberCount"),this.maxMemberCount;},set:function set(e){}},{key:"_initGroup",value:function value(e){for(var t in e){Rs.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),"isSupportTopic"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]));}}},{key:"updateGroup",value:function value(e){var t=this,o=JSON.parse(JSON.stringify(e));o.lastMsgTime&&(this.lastMessage.lastTime=o.lastMsgTime),Ze(o.muteAllMembers)||("On"===o.muteAllMembers?o.muteAllMembers=!0:o.muteAllMembers=!1),o.groupCustomField&&Mt(this.groupCustomField,o.groupCustomField),Ze(o.memberNum)||(this.memberCount=o.memberNum),Ze(o.maxMemberNum)||(this.maxMemberCount=o.maxMemberNum),Ze(o.isSupportTopic)||(this.isSupportTopic=$e(o.isSupportTopic)?1===o.isSupportTopic:o.isSupportTopic),ct(this,o,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum","isSupportTopic"]),Qe(o.members)&&o.members.length>0&&o.members.forEach(function(e){e.userID===t.selfInfo.userID&&ct(t.selfInfo,e,["sequence"]);});}},{key:"updateSelfInfo",value:function value(e){var o={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList};ct(this.selfInfo,t({},o),[],["",null,void 0,0,NaN]);}},{key:"setSelfNameCard",value:function value(e){this.selfInfo.nameCard=e;}}]),e;}(),ks=function ks(e){return Ze(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:!1}:e instanceof ns?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Ft(e.type,e.payload),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||"",version:e.version||0,isPeerRead:e.isPeerRead||!1}:t(t({},e),{},{messageForShow:Ft(e.type,e.payload)});},Gs=function(){function e(t){n(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=ks(t.lastMessage),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this.markList=[],this.customData="",this.conversationGroupList=t.conversationGroupList||[],this._initProfile(t);}return s(e,[{key:"toAccount",get:function get(){return this.conversationID.startsWith(D.CONV_C2C)?this.conversationID.replace(D.CONV_C2C,""):this.conversationID.startsWith(D.CONV_GROUP)?this.conversationID.replace(D.CONV_GROUP,""):"";}},{key:"subType",get:function get(){return this.groupProfile?this.groupProfile.type:"";}},{key:"_initProfile",value:function value(e){var t=this;Object.keys(e).forEach(function(o){switch(o){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile;}}),Ze(this.userProfile)&&this.type===D.CONV_C2C?this.userProfile=new Ns({userID:e.conversationID.replace("C2C","")}):Ze(this.groupProfile)&&this.type===D.CONV_GROUP&&(this.groupProfile=new Ls({groupID:e.conversationID.replace("GROUP","")}));}},{key:"updateUnreadCount",value:function value(e){var t=e.nextUnreadCount,o=e.isFromGetConversations,n=e.isUnreadC2CMessage;Ze(t)||(It(this.subType)?this.unreadCount=0:o&&this.type===D.CONV_GROUP||o&&this.type===D.CONV_TOPIC||n&&this.type===D.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t);}},{key:"updateLastMessage",value:function value(e){this.lastMessage=ks(e);}},{key:"updateGroupAtInfoList",value:function value(e){if(!this._isNeedMergeGroupAtInfo(e)){var t,o=(v(t=e.groupAtType)||I(t)||y(t)||E()).slice(0);-1!==o.indexOf(D.CONV_AT_ME)&&-1!==o.indexOf(D.CONV_AT_ALL)&&(o=[D.CONV_AT_ALL_AT_ME]);var n={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:o,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(n),be.debug("Conversation.updateGroupAtInfoList conversationID:".concat(this.conversationID),this.groupAtInfoList);}}},{key:"_isNeedMergeGroupAtInfo",value:function value(e){var t=e.groupID,o=e.sequence;if(!yt({groupID:t}))return!1;var n=!1;return this.groupAtInfoList.forEach(function(t){t.messageSequence===o&&(t.atTypeArray.indexOf(D.CONV_AT_ME)>-1&&e.groupAtType.indexOf(D.CONV_AT_ALL)>-1&&(t.atTypeArray=[D.CONV_AT_ALL_AT_ME]),t.atTypeArray.indexOf(D.CONV_AT_ALL)>-1&&e.groupAtType.indexOf(D.CONV_AT_ME)>-1&&(t.atTypeArray=[D.CONV_AT_ALL_AT_ME],t.__random=e.__random,t.__sequence=e.__sequence),n=!0);}),n;}},{key:"clearGroupAtInfoList",value:function value(){this.groupAtInfoList.length=0;}},{key:"reduceUnreadCount",value:function value(){return this.unreadCount>=1&&(this.unreadCount-=1,!0);}},{key:"isLastMessageRevoked",value:function value(e){var t=e.sequence,o=e.time;return this.type===D.CONV_C2C&&t===this.lastMessage.lastSequence&&o===this.lastMessage.lastTime||this.type===D.CONV_GROUP&&t===this.lastMessage.lastSequence;}},{key:"setLastMessageRevoked",value:function value(e){this.lastMessage.isRevoked=e;}}]),e;}(),Ps=function(){function e(t){n(this,e),this._conversationModule=t,this._className="MessageRemindHandler",this._updateSequence=0;}return s(e,[{key:"getC2CMessageRemindType",value:function value(){var e=this,t="".concat(this._className,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:jo,updateSequence:this._updateSequence}).then(function(o){be.log("".concat(t," ok"));var n=o.data,a=n.updateSequence,s=n.muteFlagList;e._updateSequence=a,e._patchC2CMessageRemindType(s);}).catch(function(e){be.error("".concat(t," failed. error:"),e);});}},{key:"_patchC2CMessageRemindType",value:function value(e){var t=this,o=0,n="";Qe(e)&&e.length>0&&e.forEach(function(e){var a=e.userID,s=e.muteFlag;0===s?n=D.MSG_REMIND_ACPT_AND_NOTE:1===s?n=D.MSG_REMIND_DISCARD:2===s&&(n=D.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:a,isC2CConversation:!0,messageRemindType:n})&&(o+=1);}),be.log("".concat(this._className,"._patchC2CMessageRemindType count:").concat(o));}},{key:"set",value:function value(e){return e.groupID?this._setGroupMessageRemindType(e):Qe(e.userIDList)?this._setC2CMessageRemindType(e):void 0;}},{key:"_setGroupMessageRemindType",value:function value(e){var t=this,o="".concat(this._className,"._setGroupMessageRemindType"),n=e.groupID,a=e.messageRemindType,s="groupID:".concat(n," messageRemindType:").concat(a),r=new Va(Ba.SET_MESSAGE_REMIND_TYPE);return r.setMessage(s),this._getModule(uo).modifyGroupMemberInfo({groupID:n,messageRemindType:a,userID:this._conversationModule.getMyUserID()}).then(function(){r.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(o," ok. ").concat(s));var n=t.onGroupMessageRemindTypeUpdated(e);return as(n);}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"onGroupMessageRemindTypeUpdated",value:function value(e){var t=e.groupID,o=e.messageRemindType,n=this._getModule(io).getLocalGroupProfile(t);if(n&&(n.selfInfo.messageRemindType=o),Tt(t)){var a=t,s=wt(a),r=this._getModule(lo).getLocalTopic(s,a);return r&&(r.updateSelfInfo({messageRemindType:o}),this._conversationModule.emitOuterEvent(S.TOPIC_UPDATED,{groupID:s,topic:r})),{topic:r};}return this._conversationModule.patchMessageRemindType({ID:t,isC2CConversation:!1,messageRemindType:o})&&this._emitConversationUpdate(),{group:n};}},{key:"_setC2CMessageRemindType",value:function value(e){var t=this,o="".concat(this._className,"._setC2CMessageRemindType"),n=e.userIDList,a=e.messageRemindType,s=n.slice(0,30),r=0;a===D.MSG_REMIND_DISCARD?r=1:a===D.MSG_REMIND_ACPT_NOT_NOTE&&(r=2);var i="userIDList:".concat(s," messageRemindType:").concat(a),c=new Va(Ba.SET_MESSAGE_REMIND_TYPE);return c.setMessage(i),this._conversationModule.request({protocolName:Yo,requestData:{userIDList:s,muteFlag:r}}).then(function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var n=e.data,r=n.updateSequence,i=n.errorList;t._updateSequence=r;var u=[],l=[];Qe(i)&&i.forEach(function(e){u.push(e.userID),l.push({userID:e.userID,code:e.errorCode});});var d=s.filter(function(e){return-1===u.indexOf(e);});be.log("".concat(o," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(l)));var p=0;return d.forEach(function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:a})&&(p+=1);}),p>=1&&t._emitConversationUpdate(),s.length=u.length=0,_s({successUserIDList:d.map(function(e){return{userID:e};}),failureUserIDList:l});}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];c.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"_getModule",value:function value(e){return this._conversationModule.getModule(e);}},{key:"_emitConversationUpdate",value:function value(){this._conversationModule.emitConversationUpdate(!0,!1);}},{key:"setUpdateSequence",value:function value(e){this._updateSequence=e;}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._updateSequence=0;}}]),e;}(),Us=function(){function e(t){n(this,e),this._conversationModule=t,this._className="ConvGroupHandler",this._convGroupMap=new Map(),this._startIndex=0,this._pagingStatus=jt.NOT_START;}return s(e,[{key:"setConvCustomData",value:function value(e){var t=this,o="".concat(this._className,".setConvCustomData"),n=e.conversationIDList,a=e.customData;be.log("".concat(o," options:"),e);var s=new Va(Ba.SET_CONV_CUSTOM_DATA);s.setMessage(JSON.stringify(e));var r={fromAccount:this._getMyUserID(),itemList:[]},i=[],c=[];return n.forEach(function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(c,e),!0;if(!Et(e)&&!Ct(e))return t._onConversationIDInvalid(c,e),!0;var o={operationType:2,contactItem:void 0,customMark:a};Et(e)?o.contactItem={type:1,toAccount:e.replace(D.CONV_C2C,"")}:Ct(e)&&(o.contactItem={type:2,groupID:e.replace(D.CONV_GROUP,"")}),r.itemList.push(o);}),c.length===n.length?_s({successConversationIDList:i,failureConversationIDList:c}):this._conversationModule.request({protocolName:nn,requestData:r}).then(function(e){s.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(o," ok"));var n=e.data.resultItem;if(Qe(n)){var r,u,l=!1;n.forEach(function(e){r=t._concatConversationID(e.contactItem),0===e.resultCode?(i.push(r),(u=t._getLocalConversation(r))&&u.customData!==a&&(u.customData=a,l=!0)):c.push({conversationID:r,code:e.resultCode,message:e.resultInfo});}),!0===l&&t._emitConversationUpdate();}return as({successConversationIDList:i,failureConversationIDList:c});}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"markConversation",value:function value(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_MARK))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o="".concat(this._className,".markConversation"),n=e.conversationIDList,a=e.markType,s=e.enableMark;be.log("".concat(o," options:"),e);var r=new Va(Ba.MARK_CONVERSATION);r.setMessage(JSON.stringify(e));var i=void 0,c=void 0,u=this._getFlagBit(a);!0===s?c=[u]:i=[u];var l={fromAccount:this._getMyUserID(),itemList:[]},d=[],p=[];return n.forEach(function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(p,e),!0;if(!Et(e)&&!Ct(e))return t._onConversationIDInvalid(p,e),!0;var o={operationType:1,contactItem:void 0,clearMark:i,setMark:c};Et(e)?o.contactItem={type:1,toAccount:e.replace(D.CONV_C2C,"")}:Ct(e)&&(o.contactItem={type:2,groupID:e.replace(D.CONV_GROUP,"")}),l.itemList.push(o);}),p.length===n.length?_s({successConversationIDList:d,failureConversationIDList:p}):this._conversationModule.request({protocolName:an,requestData:l}).then(function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(o," ok"));var n=e.data.resultItem;if(Qe(n)){var i,c,u=!1;n.forEach(function(e){if(i=t._concatConversationID(e.contactItem),0===e.resultCode){if(d.push(i),c=t._getLocalConversation(i)){var o=c.markList.indexOf(a);!0===s?-1===o&&(c.markList.push(a),u=!0):-1!==o&&(c.markList.splice(o,1),u=!0);}}else p.push({conversationID:i,code:e.resultCode,message:e.resultInfo});}),!0===u&&t._emitConversationUpdate();}return as({successConversationIDList:d,failureConversationIDList:p});}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"getLocalConvGroupList",value:function value(){var e=this;return be.log("".concat(this._className,".getLocalConvGroupList pagingStatus:").concat(this._pagingStatus)),this._pagingStatus===jt.REJECTED?this.getRemoteConvGroupList().then(function(){return as(M(e._convGroupMap.values()));}):_s(M(this._convGroupMap.values()));}},{key:"getRemoteConvGroupList",value:function value(){var e=this,t="".concat(this._className,".getRemoteConvGroupList");return this._pagingStatus=jt.PENDING,this._conversationModule.request({protocolName:dn,requestData:{fromAccount:this._getMyUserID(),startIndex:this._startIndex}}).then(function(o){var n,a,s=o.data,r=s.completeFlag,i=s.contactItem,c=s.nextStartIndex,u=void 0===c?0:c,l=s.groupItem;(e._startIndex=u,be.log("".concat(t," completeFlag:").concat(r," nextStartIndex:").concat(u)),Qe(l)&&l.forEach(function(t){var o=t.convGroupID,n=t.groupName;e._convGroupMap.set(o,n);}),Qe(i))&&i.forEach(function(t){var o=t.standardMark,s=t.customData,r=t.convGroupIDList;if(n=e._concatConversationID(t),(a=e._getLocalConversation(n))&&(a.markList=Vt(o),a.customData=s||"",Qe(r))){var i=[];r.forEach(function(t){e._convGroupMap.has(t)&&i.push(e._convGroupMap.get(t));}),a.conversationGroupList=[].concat(i),i.length=0;}});if(0===r)return e.getRemoteConvGroupList();1===r&&(e._pagingStatus=jt.RESOLVED,e._emitConversationUpdate(),e._emitConvGroupListUpdate());}).catch(function(o){e._pagingStatus=jt.REJECTED,be.warn("".concat(t," failed. error:"),o);});}},{key:"createConvGroup",value:function value(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o=new Va(Ba.CREATE_CONV_GROUP);o.setMessage(JSON.stringify(e));var n="".concat(this._className,".createConvGroup");be.log("".concat(n," options:"),e);var a=e.groupName,s=e.conversationIDList,r={fromAccount:this._getMyUserID(),itemList:[{groupName:a,contactItem:[]}]},i=[],c=[];return s.forEach(function(e){return t._hasLocalConversation(e)?Et(e)||Ct(e)?void(Et(e)?r.itemList[0].contactItem.push({type:1,toAccount:e.replace(D.CONV_C2C,"")}):Ct(e)&&r.itemList[0].contactItem.push({type:2,groupID:e.replace(D.CONV_GROUP,"")})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0);}),c.length===s.length?_s({successConversationIDList:i,failureConversationIDList:c}):this._conversationModule.request({protocolName:sn,requestData:r}).then(function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(n," ok"));var s=e.data.groupResultItem[0],r=s.groupItem,u=s.resultItem;if(Xe(r)&&(t._convGroupMap.set(r.convGroupID,r.groupName),t._emitConvGroupListUpdate()),Qe(u)){var l,d,p=!1;u.forEach(function(e){l=t._concatConversationID(e.contactItem),0===e.resultCode?(i.push(l),(d=t._getLocalConversation(l))&&-1===d.conversationGroupList.indexOf(a)&&(d.conversationGroupList.push(a),p=!0)):c.push({conversationID:l,code:e.resultCode,message:e.resultInfo});}),!0===p&&(t._emitConversationUpdate(),t._emitConvGroupListUpdate());}return as({successConversationIDList:i,failureConversationIDList:c});}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var n=m(t,2),a=n[0],s=n[1];o.setError(e,a,s).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"deleteConvGroup",value:function value(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o=new Va(Ba.DELETE_CONV_GROUP);o.setMessage(e);var n="".concat(this._className,".deleteConvGroup");return be.log("".concat(n," groupName:").concat(e)),this._conversationModule.request({protocolName:rn,requestData:{fromAccount:this._getMyUserID(),groupName:[e]}}).then(function(a){o.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(n," ok"));var s=a.data.groupItem;if(Qe(s)){var r=!1;s.forEach(function(e){t._convGroupMap.has(e.convGroupID)&&(t._convGroupMap.delete(e.convGroupID),r=!0);}),!0===r&&t._emitConvGroupListUpdate();}t._eraseFromConversationGroupList([e]);}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var n=m(t,2),a=n[0],s=n[1];o.setError(e,a,s).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"renameConvGroup",value:function value(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o=new Va(Ba.RENAME_CONV_GROUP);o.setMessage(JSON.stringify(e));var n="".concat(this._className,".renameConvGroup");be.log("".concat(n," options:"),e);var a=e.oldName,s=e.newName;return this._conversationModule.request({protocolName:cn,requestData:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:a,newName:s}}}).then(function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(n," ok"));var r=e.data.updateGroupResult.convGroupID;t._convGroupMap.set(r,s),t._emitConvGroupListUpdate();var i,c,u=t._conversationModule.getLocalConversationList(),l=!1;u.forEach(function(e){i=e.conversationGroupList,-1!==(c=i.indexOf(a))&&(i.splice(c,1,s),l=!0);}),!0===l&&t._emitConversationUpdate();}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var n=m(t,2),a=n[0],s=n[1];o.setError(e,a,s).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"addConvsToGroup",value:function value(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o=new Va(Ba.ADD_CONVS_TO_GROUP);o.setMessage(JSON.stringify(e));var n="".concat(this._className,".addConvsToGroup");be.log("".concat(n," options:"),e);var a=e.conversationIDList,s=e.groupName,r={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:s,updateItem:[]}},i=[],c=[];return a.forEach(function(e){return t._hasLocalConversation(e)?Et(e)||Ct(e)?void(Et(e)?r.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(D.CONV_C2C,"")}}):Ct(e)&&r.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(D.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0);}),c.length===a.length?_s({successConversationIDList:i,failureConversationIDList:c}):this._conversationModule.request({protocolName:un,requestData:r}).then(function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(n," ok"));var a=e.data.updateGroupResult.contactResultItem;if(Qe(a)){var r,u,l=!1;a.forEach(function(e){0===e.resultCode&&(r=t._concatConversationID(e.contactItem),(u=t._getLocalConversation(r))?-1===u.conversationGroupList.indexOf(s)&&(u.conversationGroupList.push(s),i.push(r),l=!0):c.push({conversationID:r,code:e.resultCode,message:e.resultInfo}));}),!0===l&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(s));}return as({successConversationIDList:i,failureConversationIDList:c});}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var n=m(t,2),a=n[0],s=n[1];o.setError(e,a,s).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"deleteConvsFromGroup",value:function value(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o=new Va(Ba.DELETE_CONVS_FROM_GROUP);o.setMessage(JSON.stringify(e));var n="".concat(this._className,".deleteConvsFromGroup");be.log("".concat(n," options:"),e);var a=e.conversationIDList,s=e.groupName,r={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:s,updateItem:[]}},i=[],c=[];return a.forEach(function(e){return t._hasLocalConversation(e)?Et(e)||Ct(e)?void(Et(e)?r.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(D.CONV_C2C,"")}}):Ct(e)&&r.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(D.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0);}),c.length===a.length?_s({successConversationIDList:i,failureConversationIDList:c}):this._conversationModule.request({protocolName:ln,requestData:r}).then(function(e){o.setNetworkType(t._conversationModule.getNetworkType()).end(),be.log("".concat(n," ok"));var a=e.data.updateGroupResult.contactResultItem;if(Qe(a)){var r,u,l=!1;a.forEach(function(e){if(0===e.resultCode)if(r=t._concatConversationID(e.contactItem),u=t._getLocalConversation(r)){var o=u.conversationGroupList.indexOf(s);-1!==o&&(u.conversationGroupList.splice(o,1),i.push(r),l=!0);}else c.push({conversationID:r,code:e.resultCode,message:e.resultInfo});}),!0===l&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate());}return as({successConversationIDList:i,failureConversationIDList:c});}).catch(function(e){return t._conversationModule.probeNetwork().then(function(t){var n=m(t,2),a=n[0],s=n[1];o.setError(e,a,s).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"onConvMarkUpdated",value:function value(e){var t=this;if(!Kt(e)){var o,n,a=!1;e.forEach(function(e){if(o=t._concatConversationID(e.recentContactItem),n=t._getLocalConversation(o))if(1===e.optType){var s=Vt(e.standardMark);!0!==function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0,n=e.length;o<n;o++){if(e[o]!==t[o])return!1;}return!0;}(n.markList,s)&&(n.markList=s,a=!0);}else 2===e.optType&&n.customData!==e.customMark&&void 0!==e.customMark&&(n.customData=e.customMark,a=!0);}),!0===a&&this._emitConversationUpdate();}}},{key:"onConvGroupCreated",value:function value(e){var t=this,o=!1,n=!1;Qe(e)&&(e.forEach(function(e){var a=e.msgGroupItem,s=a.groupID,r=a.groupName;t._convGroupMap.get(s)!==r&&(t._convGroupMap.set(s,r),n=!0);var i,c,u=e.msgRecentContactItem;Qe(u)&&u.forEach(function(e){i=t._concatConversationID(e),(c=t._getLocalConversation(i))&&-1===c.conversationGroupList.indexOf(r)&&(c.conversationGroupList.push(r),o=!0);});}),!0===o&&this._emitConversationUpdate(),!0===n&&this._emitConvGroupListUpdate());}},{key:"onConvGroupDeleted",value:function value(e){var t=this,o=[];if(Qe(e)){var n=!1;e.forEach(function(e){var a=e.groupID,s=e.groupName;t._convGroupMap.has(a)&&(t._convGroupMap.delete(a),n=!0,o.push(s));}),!0===n&&this._emitConvGroupListUpdate();}this._eraseFromConversationGroupList(o);}},{key:"_eraseFromConversationGroupList",value:function value(e){Kt(e)||(this._conversationModule.getLocalConversationList().forEach(function(t){t.conversationGroupList=t.conversationGroupList.filter(function(t){return!e.includes(t);});}),this._emitConversationUpdate());}},{key:"onConvGroupNameUpdated",value:function value(e){var t=e.groupID,o=e.groupName,n=e.oldGroupName;if(this._convGroupMap.get(t)!==o){this._convGroupMap.set(t,o),this._emitConvGroupListUpdate();var a,s,r=this._conversationModule.getLocalConversationList(),i=!1;r.forEach(function(e){a=e.conversationGroupList,-1!==(s=a.indexOf(n))&&(a.splice(s,1,o),i=!0);}),!0===i&&this._emitConversationUpdate();}}},{key:"onConvInGroupUpdated",value:function value(e){var t=this,o=e.oldGroupName,n=e.recentContactUpdateGroupItem;if(Qe(n)){var a,s,r=!1;n.forEach(function(e){var n=e.contactOptType;if(a=t._concatConversationID(e.recentContactItem),s=t._getLocalConversation(a))if(1===n)-1===s.conversationGroupList.indexOf(o)&&(s.conversationGroupList.push(o),r=!0);else if(2===n){var i=s.conversationGroupList.indexOf(o);-1!==i&&(s.conversationGroupList.splice(i,1),r=!0);}}),!0===r&&(this._emitConversationUpdate(),this._emitConvInGroupUpdate(o));}}},{key:"onConvGroupListSynced",value:function value(e){var t=this;Qe(e)&&0!==e.length&&(be.log("".concat(this._className,".onConvGroupListSynced count:").concat(e.length)),e.forEach(function(e){t._convGroupMap.set(e.convGroupID,e.groupName);}));}},{key:"getConvGroupListByID",value:function value(e){var t=this;if(!Kt(e)){var o=[];return e.forEach(function(e){t._convGroupMap.has(e)&&o.push(t._convGroupMap.get(e));}),o;}}},{key:"_onConversationNotFound",value:function value(e,t){e.push({conversationID:t,code:Ca.CONVERSATION_NOT_FOUND,message:Sa.CONVERSATION_NOT_FOUND});}},{key:"_onConversationIDInvalid",value:function value(e,t){e.push({conversationID:t,code:Ca.INVALID_CONVERSATION_ID,message:Sa.INVALID_CONVERSATION_ID});}},{key:"_getFlagBit",value:function value(e){for(var t=e.toString(2),o=t.length,n=o-1;n>=0;n--){if("1"===t[n])return o-n-1;}}},{key:"_concatConversationID",value:function value(e){var t,o=e.type,n=e.to,a=e.groupID,s=e.userID;return 1===o?Ze(s)?Ze(n)||(t="".concat(D.CONV_C2C).concat(n)):t="".concat(D.CONV_C2C).concat(s):2===o&&(t="".concat(D.CONV_GROUP).concat(a)),t;}},{key:"_getMyUserID",value:function value(){return this._conversationModule.getMyUserID();}},{key:"_insertConversationGroup",value:function value(e,t){var o=this._getLocalConversation(e);if(o){var n=o.conversationGroupList;-1===n.indexOf(t)&&n.push(t);}}},{key:"_getLocalConversation",value:function value(e){return this._conversationModule.getLocalConversation(e);}},{key:"_hasLocalConversation",value:function value(e){return this._conversationModule.hasLocalConversation(e);}},{key:"_emitConversationUpdate",value:function value(){this._conversationModule.emitConversationUpdate(!0,!1);}},{key:"_emitConvGroupListUpdate",value:function value(){this._conversationModule.emitOuterEvent(S.CONVERSATION_GROUP_LIST_UPDATED,M(this._convGroupMap.values()));}},{key:"_emitConvInGroupUpdate",value:function value(e){var t={groupName:e,conversationList:[]},o=this._conversationModule.getLocalConversationList();t.conversationList=o.filter(function(t){return t.conversationGroupList.includes(e);}),this._conversationModule.emitOuterEvent(S.CONVERSATION_IN_GROUP_UPDATED,t);}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=jt.NOT_START;}}]),e;}(),bs=function(e){i(a,e);var o=f(a);function a(e){var t;return n(this,a),(t=o.call(this,e))._className="ConversationModule",Is.mixin(g(t)),t._messageListHandler=new fs(),t._messageRemindHandler=new Ps(g(t)),t._convGroupHandler=new Us(g(t)),t.singlyLinkedList=new Os(100),t._pagingStatus=jt.NOT_START,t._pagingTimeStamp=0,t._pagingStartIndex=0,t._pagingPinnedTimeStamp=0,t._pagingPinnedStartIndex=0,t._conversationMap=new Map(),t._tmpGroupList=[],t._tmpGroupAtTipsList=[],t._peerReadTimeMap=new Map(),t._completedMap=new Map(),t._roamingMessageKeyAndTimeMap=new Map(),t._roamingMessageSequenceMap=new Map(),t._remoteGroupReadSequenceMap=new Map(),t._initListeners(),t;}return s(a,[{key:"_initListeners",value:function value(){var e=this.getInnerEmitterInstance();e.on(ms,this._initLocalConversationList,this),e.on(vs,this._onProfileUpdated,this);}},{key:"onCheckTimer",value:function value(e){e%60==0&&this._messageListHandler.traversal();}},{key:"_initLocalConversationList",value:function value(){var e=this,t=new Va(Ba.GET_CONVERSATION_LIST_IN_STORAGE);be.log("".concat(this._className,"._initLocalConversationList."));var o="",n=this._getStorageConversationList();if(n){for(var a=n.length,s=0;s<a;s++){var r=n[s];if(r){if(r.conversationID==="".concat(D.CONV_C2C,"@TLS#ERROR")||r.conversationID==="".concat(D.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(r.groupProfile){var i=r.groupProfile.type;if(It(i))continue;}}this._conversationMap.set(n[s].conversationID,new Gs(n[s]));}this.emitConversationUpdate(!0,!1),o="count:".concat(a);}else o="count:0";t.setNetworkType(this.getNetworkType()).setMessage(o).end(),this.getModule(ro)||this.triggerReady(),this.ready(function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0);}),this.syncConversationList();}},{key:"onMessageSent",value:function value(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0});}},{key:"onNewMessage",value:function value(e){this._onSendOrReceiveMessage(e);}},{key:"_onSendOrReceiveMessage",value:function value(e){var t=this,o=e.conversationOptionsList,n=e.isInstantMessage,a=void 0===n||n,s=e.isUnreadC2CMessage,r=void 0!==s&&s;this._isReady?0!==o.length&&(this._getC2CPeerReadTime(o),this._updateLocalConversationList({conversationOptionsList:o,isInstantMessage:a,isUnreadC2CMessage:r,isFromGetConversations:!1}),this._setStorageConversationList(),o.filter(function(e){return e.type===D.CONV_TOPIC;}).length>0||this.emitConversationUpdate()):this.ready(function(){t._onSendOrReceiveMessage(e);});}},{key:"updateConversationGroupProfile",value:function value(e){var t=this;if(!Qe(e)||0!==e.length)if(0!==this._conversationMap.size){var o=!1;e.forEach(function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){o=!0;var a=t._conversationMap.get(n);a.groupProfile=JSON.parse(JSON.stringify(e)),a.lastMessage.lastSequence<e.nextMessageSeq&&(a.lastMessage.lastSequence=e.nextMessageSeq-1),a.subType||(a.subType=e.type);}}),o&&this.emitConversationUpdate(!0,!1);}else this._tmpGroupList=e;}},{key:"_updateConversationUserProfile",value:function value(e){var t=this;e.data.forEach(function(e){var o="C2C".concat(e.userID);t._conversationMap.has(o)&&(t._conversationMap.get(o).userProfile=e);}),this.emitConversationUpdate(!0,!1);}},{key:"onMessageRevoked",value:function value(e){var t=this;if(0!==e.length){var o=null,n=!1,a=[];e.forEach(function(e){(o=t._conversationMap.get(e.conversationID))&&(o.type===D.CONV_TOPIC?a.push(e):(o.reduceUnreadCount()&&(n=!0),o.isLastMessageRevoked(e)&&(o.setLastMessageRevoked(!0),n=!0)));}),this.getModule(lo).onMessageRevoked(a),n&&this.emitConversationUpdate(!0,!1);}}},{key:"onMessageDeleted",value:function value(e){var t=this;if(0!==e.length){var o=null;e.forEach(function(e){(o=t._messageListHandler.getLocalMessage(e.conversationID,e.ID))&&(o.isDeleted=!0),e!==o&&(e.isDeleted=!0);});for(var n=e[0].conversationID,a=this._messageListHandler.getLocalMessageList(n),s={},r=a.length-1;r>=0;r--){if(!a[r].isDeleted){s=a[r];break;}}var i=this._conversationMap.get(n);if(i){var c=!1;i.lastMessage.lastSequence===s.sequence&&i.lastMessage.lastTime===s.time||(Kt(s)&&(s=void 0),i.updateLastMessage(s),i.type!==D.CONV_TOPIC&&(c=!0),be.log("".concat(this._className,".onMessageDeleted. update conversationID:").concat(n," with lastMessage:"),i.lastMessage)),n.startsWith(D.CONV_C2C)&&this.updateUnreadCount(n),c&&this.emitConversationUpdate(!0,!1);}}}},{key:"onMessageModified",value:function value(e){var t=e.conversationType,o=e.from,n=e.to,a=e.time,s=e.sequence,r=e.elements,i=e.cloudCustomData,c=e.messageVersion,u=this.getMyUserID(),l="".concat(t).concat(n);n===u&&t===D.CONV_C2C&&(l="".concat(t).concat(o));var d=this._messageListHandler.onMessageModified(l,e),p=d.isUpdated,_=d.message;!0===p&&this.emitOuterEvent(S.MESSAGE_MODIFIED,[_]);var g=this._isTopicConversation(l);if(be.log("".concat(this._className,".onMessageModified isUpdated:").concat(p," isTopicMessage:").concat(g," from:").concat(o," to:").concat(n)),g){this.getModule(lo).onMessageModified(e);}else{var h=this._conversationMap.get(l);if(h){var f=h.lastMessage;be.debug("".concat(this._className.onMessageModified," lastMessage:"),JSON.stringify(f),"options:",JSON.stringify(e)),f&&f.lastTime===a&&f.lastSequence===s&&f.version!==c&&(f.type=r[0].type,f.payload=r[0].content,f.messageForShow=Ft(f.type,f.payload),f.cloudCustomData=i,f.version=c,this.emitConversationUpdate(!0,!1));}}return _;}},{key:"onNewGroupAtTips",value:function value(e){var o=this,n=e.dataList,a=null;n.forEach(function(e){e.groupAtTips?a=e.groupAtTips:e.elements?a=t(t({},e.elements),{},{sync:!0}):e.groupAtType&&(a=t(t({},e),{},{sync:!0})),a.__random=e.random,a.__sequence=e.clientSequence,o._tmpGroupAtTipsList.push(a);}),be.debug("".concat(this._className,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList();}},{key:"_handleGroupAtTipsList",value:function value(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach(function(o){var n=o.groupID,a=o.from,s=o.topicID,r=void 0===s?void 0:s,i=o.sync,c=void 0!==i&&i;if(a!==e.getMyUserID())if(Ze(r)){var u=e._conversationMap.get("".concat(D.CONV_GROUP).concat(n));u&&(u.updateGroupAtInfoList(o),t=!0);}else{var l=e._conversationMap.get("".concat(D.CONV_GROUP).concat(r));if(l){l.updateGroupAtInfoList(o);var d=e.getModule(lo),p=l.groupAtInfoList;d.onConversationProxy({topicID:r,groupAtInfoList:p});}if(Kt(l)&&c)e.updateTopicConversation([{conversationID:"".concat(D.CONV_GROUP).concat(r),type:D.CONV_TOPIC}]),e._conversationMap.get("".concat(D.CONV_GROUP).concat(r)).updateGroupAtInfoList(o);}}),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0;}}},{key:"_getC2CPeerReadTime",value:function value(e){var t=this,o=[];if(e.forEach(function(e){t._conversationMap.has(e.conversationID)||e.type!==D.CONV_C2C||o.push(e.conversationID.replace(D.CONV_C2C,""));}),o.length>0){be.debug("".concat(this._className,"._getC2CPeerReadTime userIDList:").concat(o));var n=this.getModule(ro);n&&n.getRemotePeerReadTime(o);}}},{key:"_getStorageConversationList",value:function value(){return this.getModule(go).getItem("conversationMap");}},{key:"_setStorageConversationList",value:function value(){var e=this.getLocalConversationList().slice(0,20).map(function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile};});this.getModule(go).setItem("conversationMap",e);}},{key:"emitConversationUpdate",value:function value(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.getLocalConversationList();if(t){var n=this.getModule(io);n&&n.updateGroupLastMessage(o);}e&&this.emitOuterEvent(S.CONVERSATION_LIST_UPDATED);}},{key:"getLocalConversationList",value:function value(){return M(this._conversationMap.values()).filter(function(e){return e.type!==D.CONV_TOPIC;});}},{key:"getLocalConversation",value:function value(e){return this._conversationMap.get(e);}},{key:"hasLocalConversation",value:function value(e){return this._conversationMap.has(e);}},{key:"getLocalOldestMessage",value:function value(e){return this._messageListHandler.getLocalOldestMessage(e);}},{key:"syncConversationList",value:function value(){var e=this,t=new Va(Ba.SYNC_CONVERSATION_LIST);return this._pagingStatus===jt.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then(function(o){return e._pagingStatus=jt.RESOLVED,e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),o;}).catch(function(o){return e._pagingStatus=jt.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then(function(e){var n=m(e,2),a=n[0],s=n[1];t.setError(o,a,s).end();}),gs(o);});}},{key:"_patchConversationProperties",value:function value(){var e=this,t=Date.now(),o=this.checkAndPatchRemark(),n=this._messageRemindHandler.getC2CMessageRemindType(),a=this.getModule(io).getGroupList();Promise.all([o,n,a]).then(function(){var o=Date.now()-t;be.log("".concat(e._className,"._patchConversationProperties ok. cost ").concat(o," ms")),e.emitConversationUpdate(!0,!1);});}},{key:"_pagingGetConversationList",value:function value(){var e=this,t="".concat(this._className,"._pagingGetConversationList");return be.log("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=jt.PENDING,this.request({protocolName:Qo,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingStartIndex,orderType:1}}).then(function(o){var n=o.data,a=n.completeFlag,s=n.conversations,r=void 0===s?[]:s,i=n.timeStamp,c=n.startIndex,u=n.pinnedTimeStamp,l=n.pinnedStartIndex,d=n.groupItem;if(be.log("".concat(t," ok. completeFlag:").concat(a," count:").concat(r.length," isReady:").concat(e._isReady)),e._convGroupHandler.onConvGroupListSynced(d),r.length>0){var p=e._getConversationOptions(r);e._updateLocalConversationList({conversationOptionsList:p,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate();}if(!e._isReady){if(!e.isLoggedIn())return _s();e.triggerReady();}return e._pagingTimeStamp=i,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=u,e._pagingPinnedStartIndex=l,1!==a?e._pagingGetConversationList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),_s());}).catch(function(o){throw e.isLoggedIn()&&(e._isReady||(be.warn("".concat(t," failed. error:"),o),e.triggerReady())),o;});}},{key:"_updateLocalConversationList",value:function value(e){var t,o=e.isFromGetConversations,n=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(M(t.toBeUpdatedConversationList),M(this._conversationMap)))),o||this._updateUserOrGroupProfile(t.newConversationList),be.debug("".concat(this._className,"._updateLocalConversationList cost ").concat(Date.now()-n," ms"));}},{key:"_getTmpConversationListMapping",value:function value(e){for(var t=e.conversationOptionsList,o=e.isFromGetConversations,n=e.isInstantMessage,a=e.isUnreadC2CMessage,s=void 0!==a&&a,r=[],i=[],c=this.getModule(io),u=this.getModule(co),l=0,d=t.length;l<d;l++){var p=new Gs(t[l]),_=p.conversationID;if(_!=="".concat(D.CONV_C2C,"@TLS#ERROR")&&_!=="".concat(D.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(_)){var g=this._conversationMap.get(_),h=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===n&&h.push("lastMessage");var f=t[l].lastMessage,m=!Ze(f);m||t[l].type===D.CONV_TOPIC||this._onLastMessageNotExist(t[l]),Ze(n)&&m&&null===g.lastMessage.payload&&(g.lastMessage.payload=f.payload),ct(g,p,h,[null,void 0,"",0,NaN]),g.updateUnreadCount({nextUnreadCount:p.unreadCount,isFromGetConversations:o,isUnreadC2CMessage:s}),n&&m&&(f.payload&&(g.lastMessage.payload=f.payload),g.type===D.CONV_GROUP&&(g.lastMessage.nameCard=f.nameCard,g.lastMessage.nick=f.nick)),m&&g.lastMessage.cloudCustomData!==f.cloudCustomData&&(g.lastMessage.cloudCustomData=f.cloudCustomData||""),this._conversationMap.delete(_),r.push([_,g]);}else{if(p.type===D.CONV_GROUP&&c){var M=p.groupProfile.groupID,v=c.getLocalGroupProfile(M);v&&(p.groupProfile=v,p.updateUnreadCount({nextUnreadCount:0}));}else if(p.type===D.CONV_C2C){var I=_.replace(D.CONV_C2C,"");u&&u.isMyFriend(I)&&(p.remark=u.getFriendRemark(I));}i.push(p),r.push([_,p]);}}var y=this.getModule(lo);return r.forEach(function(e){if(e[1].type===D.CONV_TOPIC){var t=e[1],o=t.conversationID,n=t.unreadCount,a=t.groupAtInfoList;y.onConversationProxy({topicID:o.replace(D.CONV_GROUP,""),unreadCount:n,groupAtInfoList:Kt(a)?void 0:a});}}),{toBeUpdatedConversationList:r,newConversationList:i};}},{key:"_onLastMessageNotExist",value:function value(e){new Va(Ba.LAST_MESSAGE_NOT_EXIST).setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end();}},{key:"_sortConversationList",value:function value(e){var t=[],o=[];return e.forEach(function(e){!0===e[1].isPinned?t.push(e):o.push(e);}),t.sort(function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime;}).concat(o.sort(function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime;}));}},{key:"_sortConversationListAndEmitEvent",value:function value(){this._conversationMap=new Map(this._sortConversationList(M(this._conversationMap))),this.emitConversationUpdate(!0,!1);}},{key:"_updateUserOrGroupProfile",value:function value(e){var t=this;if(0!==e.length){var o=[],n=[],a=this.getModule(so),s=this.getModule(io);e.forEach(function(e){if(e.type===D.CONV_C2C)o.push(e.toAccount);else if(e.type===D.CONV_GROUP){var t=e.toAccount;s.hasLocalGroup(t)?e.groupProfile=s.getLocalGroupProfile(t):n.push(t);}}),be.log("".concat(this._className,"._updateUserOrGroupProfile c2cUserIDList:").concat(o," groupIDList:").concat(n)),o.length>0&&a.getUserProfile({userIDList:o}).then(function(e){var o=e.data;Qe(o)?o.forEach(function(e){t._conversationMap.get("C2C".concat(e.userID)).userProfile=e;}):t._conversationMap.get("C2C".concat(o.userID)).userProfile=o;}),n.length>0&&s.getGroupProfileAdvance({groupIDList:n,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then(function(e){e.data.successGroupList.forEach(function(e){var o="GROUP".concat(e.groupID);if(t._conversationMap.has(o)){var n=t._conversationMap.get(o);ct(n.groupProfile,e,[],[null,void 0,"",0,NaN]),!n.subType&&e.type&&(n.subType=e.type);}});});}}},{key:"_getConversationOptions",value:function value(e){var o=this,n=[],a=e.filter(function(e){var t=e.lastMsg;return Xe(t);}).filter(function(e){var t=e.type,o=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==o&&"@TLS#ERROR"!==o||2===t;}),s=this.getMyUserID(),r=a.map(function(e){if(1===e.type){var a={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return n.push(a),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:e.lastC2CMsgFromAccount===s&&e.time<=e.c2cPeerReadTime},userProfile:new Ns(a),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:"",customData:e.customMark||"",markList:Vt(e.standardMark),conversationGroupList:o._convGroupHandler.getConvGroupListByID(e.contactGroupId)};}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:t(t({lastTime:e.time,lastSequence:e.messageReadSeq+e.unreadCount,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},o._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||""}),groupProfile:new Ls({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:"",version:0,customData:e.customMark||"",markList:Vt(e.standardMark),conversationGroupList:o._convGroupHandler.getConvGroupListByID(e.contactGroupId)};});n.length>0&&this.getModule(so).onConversationsProfileUpdated(n);return r;}},{key:"_patchTypeAndPayload",value:function value(e){var o=e.lastMsg,n=o.event,a=void 0===n?void 0:n,s=o.elements,r=void 0===s?[]:s,i=o.groupTips,c=void 0===i?{}:i;if(!Ze(a)&&!Kt(c)){var u=new ns(c);u.setElement({type:D.MSG_GRP_TIP,content:t(t({},c.elements),{},{groupProfile:c.groupProfile})});var l=JSON.parse(JSON.stringify(u.payload));return u=null,{type:D.MSG_GRP_TIP,payload:l};}return{type:r[0]?r[0].type:null,payload:r[0]?r[0].content:null};}},{key:"getLocalMessageList",value:function value(e){return this._messageListHandler.getLocalMessageList(e);}},{key:"deleteLocalMessage",value:function value(e){e instanceof ns&&this._messageListHandler.remove(e);}},{key:"onConversationDeleted",value:function value(e){var t=this;be.log("".concat(this._className,".onConversationDeleted")),Qe(e)&&e.forEach(function(e){var o=e.type,n=e.userID,a=e.groupID,s="";1===o?s="".concat(D.CONV_C2C).concat(n):2===o&&(s="".concat(D.CONV_GROUP).concat(a)),t.deleteLocalConversation(s);});}},{key:"onConversationPinned",value:function value(e){var t=this;if(Qe(e)){var o=!1;e.forEach(function(e){var n,a=e.type,s=e.userID,r=e.groupID;1===a?n=t.getLocalConversation("".concat(D.CONV_C2C).concat(s)):2===a&&(n=t.getLocalConversation("".concat(D.CONV_GROUP).concat(r))),n&&(be.log("".concat(t._className,".onConversationPinned conversationID:").concat(n.conversationID," isPinned:").concat(n.isPinned)),n.isPinned||(n.isPinned=!0,o=!0));}),o&&this._sortConversationListAndEmitEvent();}}},{key:"onConversationUnpinned",value:function value(e){var t=this;if(Qe(e)){var o=!1;e.forEach(function(e){var n,a=e.type,s=e.userID,r=e.groupID;1===a?n=t.getLocalConversation("".concat(D.CONV_C2C).concat(s)):2===a&&(n=t.getLocalConversation("".concat(D.CONV_GROUP).concat(r))),n&&(be.log("".concat(t._className,".onConversationUnpinned conversationID:").concat(n.conversationID," isPinned:").concat(n.isPinned)),n.isPinned&&(n.isPinned=!1,o=!0));}),o&&this._sortConversationListAndEmitEvent();}}},{key:"getMessageList",value:function value(e){var t=this,o=e.conversationID,n=e.nextReqMessageID,a=e.count,s="".concat(this._className,".getMessageList"),r=this.getLocalConversation(o),i="";if(r&&r.groupProfile&&(i=r.groupProfile.type),It(i))return be.log("".concat(s," not available in avchatroom. conversationID:").concat(o)),_s({messageList:[],nextReqMessageID:"",isCompleted:!0});(Ze(a)||a>15)&&(a=15),!n&&this._isNotInCommunity(o)&&(this._messageListHandler.removeByConversationID(o),this._completedMap.delete(o),this._roamingMessageSequenceMap.delete(o));var c=this._computeRemainingCount({conversationID:o,nextReqMessageID:n}),u=this._completedMap.has(o);if(be.log("".concat(s," conversationID:").concat(o," nextReqMessageID:").concat(n)+" remainingCount:".concat(c," count:").concat(a," isCompleted:").concat(u)),this._needGetHistory({conversationID:o,remainingCount:c,count:a}))return this.getHistoryMessages({conversationID:o,nextReqMessageID:n,count:20}).then(function(e){var n=e.nextReqID,a=e.storedMessageList,r=t._completedMap.has(o),i=a;c>0&&(i=t._messageListHandler.getLocalMessageList(o).slice(0,a.length+c));var u={nextReqMessageID:r?"":n,messageList:i,isCompleted:r};return be.log("".concat(s," ret.nextReqMessageID:").concat(u.nextReqMessageID," ret.isCompleted:").concat(u.isCompleted," ret.length:").concat(i.length)),as(u);});this.modifyMessageList(o);var l=this._getMessageListFromMemory({conversationID:o,nextReqMessageID:n,count:a});return _s(l);}},{key:"_getMessageListFromMemory",value:function value(e){var t=e.conversationID,o=e.nextReqMessageID,n=e.count,a="".concat(this._className,"._getMessageListFromMemory"),s=this._messageListHandler.getLocalMessageList(t),r=s.length,i=0,c={isCompleted:!1,nextReqMessageID:"",messageList:[]};return o?(i=s.findIndex(function(e){return e.ID===o;}))>n?(c.messageList=s.slice(i-n,i),c.nextReqMessageID=s[i-n].ID):(c.messageList=s.slice(0,i),c.isCompleted=!0):r>n?(i=r-n,c.messageList=s.slice(i,r),c.nextReqMessageID=s[i].ID):(c.messageList=s.slice(0,r),c.isCompleted=!0),be.log("".concat(a," conversationID:").concat(t)+" ret.nextReqMessageID:".concat(c.nextReqMessageID," ret.isCompleted:").concat(c.isCompleted," ret.length:").concat(c.messageList.length)),c;}},{key:"getMessageListHopping",value:function value(e){var t=e.conversationID,o=e.sequence,n=e.time,a=e.count,s=e.direction,r=void 0===s?0:s;if((Ze(a)||a>15)&&(a=15),t.startsWith(D.CONV_C2C)){var i=this.getModule(ro),c=t.replace(D.CONV_C2C,"");return i.getRoamingMessagesHopping({peerAccount:c,time:n,count:a,direction:r});}if(t.startsWith(D.CONV_GROUP)){var u=this.getModule(io),l=t.replace(D.CONV_GROUP,"");return u.getRoamingMessagesHopping({groupID:l,sequence:o,count:a,direction:r});}}},{key:"_computeRemainingCount",value:function value(e){var t=e.conversationID,o=e.nextReqMessageID,n=this._messageListHandler.getLocalMessageList(t),a=n.length;if(!o)return a;var s=0;return Et(t)?s=n.findIndex(function(e){return e.ID===o;}):Ct(t)&&(s=-1!==o.indexOf("-")?n.findIndex(function(e){return e.ID===o;}):n.findIndex(function(e){return e.sequence===o;})),-1===s&&(s=0),s;}},{key:"_getMessageListSize",value:function value(e){return this._messageListHandler.getLocalMessageList(e).length;}},{key:"_needGetHistory",value:function value(e){var t=e.conversationID,o=e.remainingCount,n=e.count,a=this.getLocalConversation(t),s="";return a&&a.groupProfile&&(s=a.groupProfile.type),!St(t)&&!It(s)&&!(Ct(t)&&this._isPagingGetGroupListCompleted()&&!this._hasLocalGroup(t)&&!this._isTopicConversation(t))&&o<=n&&!this._completedMap.has(t);}},{key:"_isTopicConversation",value:function value(e){var t=e.replace(D.CONV_GROUP,"");return Tt(t);}},{key:"getHistoryMessages",value:function value(e){var t=e.conversationID,o=e.count;if(t===D.CONV_SYSTEM)return _s();var n=15;o>20&&(n=20);var a=null;if(Et(t)){var s=this._roamingMessageKeyAndTimeMap.has(t);return(a=this.getModule(ro))?a.getRoamingMessage({conversationID:t,peerAccount:t.replace(D.CONV_C2C,""),count:n,lastMessageTime:s?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:s?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}if(Ct(t)){if(!(a=this.getModule(io)))return gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});var r=null;this._conversationMap.has(t)&&(r=this._conversationMap.get(t).lastMessage);var i=0;r&&(i=r.lastSequence);var c=this._roamingMessageSequenceMap.get(t);return a.getRoamingMessage({conversationID:t,groupID:t.replace(D.CONV_GROUP,""),count:n,sequence:c||i});}return _s();}},{key:"patchConversationLastMessage",value:function value(e){var t=this.getLocalConversation(e);if(t){var o=t.lastMessage,n=o.messageForShow,a=o.payload;if(Kt(n)||Kt(a)){var s=this._messageListHandler.getLocalMessageList(e);if(0===s.length)return;var r=s[s.length-1];be.log("".concat(this._className,".patchConversationLastMessage conversationID:").concat(e," payload:"),r.payload),t.updateLastMessage(r);}}}},{key:"onRoamingMessage",value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=o.startsWith(D.CONV_C2C)?D.CONV_C2C:D.CONV_GROUP,s=null,r=[],i=[],c=0,u=e.length,l=null,d=a===D.CONV_GROUP,p=this.getModule(mo),_=function _(){c=d?e.length-1:0,u=d?0:e.length;},g=function g(){d?--c:++c;},h=function h(){return d?c>=u:c<u;};for(_();h();g()){if(d&&1===e[c].sequence&&n&&this.setCompleted(o),1!==e[c].isPlaceMessage)if((s=new ns(e[c])).to=e[c].to,a!==D.CONV_GROUP||Ze(e[c].topicID)||(s.to=e[c].topicID),s.isSystemMessage=!!e[c].isSystemMessage,s.conversationType=a,4===e[c].event?l={type:D.MSG_GRP_TIP,content:t(t({},e[c].elements),{},{groupProfile:e[c].groupProfile})}:(e[c].elements=p.parseElements(e[c].elements,e[c].from),l=e[c].elements),d||s.setNickAndAvatar({nick:e[c].nick,avatar:e[c].avatar}),Kt(l)){var f=new Va(Ba.EMPTY_MESSAGE_BODY);f.setMessage("from:".concat(s.from," to:").concat(s.to," sequence:").concat(s.sequence," event:").concat(e[c].event)),f.setNetworkType(this.getNetworkType()).setLevel("warning").end();}else s.setElement(l),s.reInitialize(this.getMyUserID()),r.push(s);}return _=g=h=null,n?(this._messageListHandler.unshift(r,i),r=null,i):(i=null,r);}},{key:"findMessage",value:function value(e){return this._messageListHandler.findMessage(e);}},{key:"_isNotInCommunity",value:function value(e){var t=!1;if(e.startsWith(D.CONV_GROUP)&&this._isTopicConversation(e)){var o=wt(e.replace(D.CONV_GROUP,""));this.getModule(io).hasLocalGroup(o)||(t=!0);}return t;}},{key:"deleteTopicRoamingMessageInfo",value:function value(e){var t=this;yt({groupID:e})&&this._messageListHandler.getTopicConversationIDList(e).forEach(function(e){t._messageListHandler.removeByConversationID(e),t._completedMap.delete(e),t._roamingMessageSequenceMap.delete(e);});}},{key:"deleteGroupRomaingMessageInfo",value:function value(e){var t="".concat(D.CONV_GROUP).concat(e);this._messageListHandler.removeByConversationID(t),this._completedMap.delete(t),this._roamingMessageSequenceMap.delete(t);}},{key:"setMessageRead",value:function value(e){var t=e.conversationID,o=this.getLocalConversation(t);if(be.log("".concat(this._className,".setMessageRead conversationID:").concat(t," unreadCount:").concat(o?o.unreadCount:0)),!o)return _s();if(o.type!==D.CONV_GROUP&&o.type!==D.CONV_TOPIC||Kt(o.groupAtInfoList)||this.deleteGroupAtTips(t),0===o.unreadCount)return _s();if(o.type===D.CONV_GROUP&&!this._hasLocalGroup(t))return 0!==o.unreadCount&&(o.unreadCount=0,this.emitConversationUpdate(!0,!1)),_s();var n=this._messageListHandler.getLocalLastMessage(t),a=o.lastMessage.lastTime;n&&a<n.time&&(a=n.time);var s=o.lastMessage.lastSequence;if(n&&s<n.sequence&&(s=n.sequence),o.type===D.CONV_TOPIC&&Ze(n)){var r=this.getModule(lo),i=t.replace(D.CONV_GROUP,""),c=wt(i),u=r.getLocalTopic(c,i);u&&(s=u.nextMessageSeq-1);}var l=null;switch(o.type){case D.CONV_C2C:return(l=this.getModule(ro))?l.setMessageRead({conversationID:t,lastMessageTime:a}):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});case D.CONV_GROUP:case D.CONV_TOPIC:return(l=this.getModule(io))?l.setMessageRead({conversationID:t,lastMessageSeq:s}):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});case D.CONV_SYSTEM:return o.unreadCount=0,this.emitConversationUpdate(!0,!1),_s();default:return _s();}}},{key:"setAllMessageRead",value:function value(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o="".concat(this._className,".setAllMessageRead");t.scope||(t.scope=D.READ_ALL_MSG),be.log("".concat(o," options:"),t);var n=this._createSetAllMessageReadPack(t);if(0===n.readAllC2CMessage&&0===n.groupMessageReadInfoList.length)return _s();var a=new Va(Ba.SET_ALL_MESSAGE_READ);return this.request({protocolName:Dn,requestData:n}).then(function(o){var n=o.data,s=e._handleAllMessageRead(n);return a.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(s))).setNetworkType(e.getNetworkType()).end(),_s();}).catch(function(t){return e.probeNetwork().then(function(e){var o=m(e,2),n=o[0],s=o[1];a.setError(t,n,s).end();}),be.warn("".concat(o," failed. error:"),t),gs({code:t&&t.code?t.code:Ca.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:Sa.MESSAGE_UNREAD_ALL_FAIL});});}},{key:"setConversationCustomData",value:function value(e){return this._convGroupHandler.setConvCustomData(e);}},{key:"markConversation",value:function value(e){return this._convGroupHandler.markConversation(e);}},{key:"getConversationGroupList",value:function value(){return this._convGroupHandler.getLocalConvGroupList();}},{key:"createConversationGroup",value:function value(e){return this._convGroupHandler.createConvGroup(e);}},{key:"deleteConversationGroup",value:function value(e){return this._convGroupHandler.deleteConvGroup(e);}},{key:"renameConversationGroup",value:function value(e){return this._convGroupHandler.renameConvGroup(e);}},{key:"addConversationsToGroup",value:function value(e){return this._convGroupHandler.addConvsToGroup(e);}},{key:"deleteConversationsFromGroup",value:function value(e){return this._convGroupHandler.deleteConvsFromGroup(e);}},{key:"onConversationMarkUpdated",value:function value(e){this._convGroupHandler.onConvMarkUpdated(e);}},{key:"onConversationGroupCreated",value:function value(e){this._convGroupHandler.onConvGroupCreated(e);}},{key:"onConversationGroupDeleted",value:function value(e){this._convGroupHandler.onConvGroupDeleted(e);}},{key:"onConversationGroupNameUpdated",value:function value(e){this._convGroupHandler.onConvGroupNameUpdated(e);}},{key:"onConversationInGroupUpdated",value:function value(e){this._convGroupHandler.onConvInGroupUpdated(e);}},{key:"_getConversationLastMessageSequence",value:function value(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),o=e.lastMessage.lastSequence;return t&&o<t.sequence&&(o=t.sequence),o;}},{key:"_getConversationLastMessageTime",value:function value(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),o=e.lastMessage.lastTime;return t&&o<t.time&&(o=t.time),o;}},{key:"_createSetAllMessageReadPack",value:function value(e){var t,o={readAllC2CMessage:0,groupMessageReadInfoList:[]},n=e.scope,a=C(this._conversationMap);try{for(a.s();!(t=a.n()).done;){var s=m(t.value,2)[1];if(s.unreadCount>0)if(s.type===D.CONV_C2C&&0===o.readAllC2CMessage){if(n===D.READ_ALL_MSG)o.readAllC2CMessage=1;else if(n===D.READ_ALL_C2C_MSG){o.readAllC2CMessage=1;break;}}else if(s.type===D.CONV_GROUP&&(n===D.READ_ALL_GROUP_MSG||n===D.READ_ALL_MSG)){var r=this._getConversationLastMessageSequence(s);o.groupMessageReadInfoList.push({groupID:s.groupProfile.groupID,messageSequence:r});}}}catch(i){a.e(i);}finally{a.f();}return o;}},{key:"onPushedAllMessageRead",value:function value(e){this._handleAllMessageRead(e);}},{key:"_handleAllMessageRead",value:function value(e){var t=e.groupMessageReadInfoList,o=e.readAllC2CMessage,n=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:o})>=1&&this.emitConversationUpdate(!0,!1),n;}},{key:"_parseGroupReadInfo",value:function value(e){var t=[];if(e&&e.length)for(var o=0,n=e.length;o<n;o++){var a=e[o],s=a.groupID,r=a.sequence,i=a.retCode,c=a.lastMessageSeq;Ze(i)?this._remoteGroupReadSequenceMap.set(s,c):(this._remoteGroupReadSequenceMap.set(s,r),0!==i&&t.push("".concat(s,"-").concat(r,"-").concat(i)));}return t;}},{key:"_updateAllConversationUnreadCount",value:function value(e){var t,o=e.readAllC2CMessage,n=0,a=C(this._conversationMap);try{for(a.s();!(t=a.n()).done;){var s=m(t.value,2),r=s[0],i=s[1];if(i.unreadCount>=1){if(1===o&&i.type===D.CONV_C2C){var c=this._getConversationLastMessageTime(i);this.updateIsReadAfterReadReport({conversationID:r,lastMessageTime:c});}else if(i.type===D.CONV_GROUP){var u=r.replace(D.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(u)){var l=this._remoteGroupReadSequenceMap.get(u),d=this._getConversationLastMessageSequence(i);this.updateIsReadAfterReadReport({conversationID:r,remoteReadSequence:l}),d>=l&&this._remoteGroupReadSequenceMap.delete(u);}}this.updateUnreadCount(r,!1)&&(n+=1);}}}catch(p){a.e(p);}finally{a.f();}return n;}},{key:"isRemoteRead",value:function value(e){var t=e.conversationID,o=e.sequence,n=t.replace(D.CONV_GROUP,""),a=!1;if(this._remoteGroupReadSequenceMap.has(n)){var s=this._remoteGroupReadSequenceMap.get(n);o<=s&&(a=!0,be.log("".concat(this._className,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(o," remoteReadSequence:").concat(s))),o>=s+10&&this._remoteGroupReadSequenceMap.delete(n);}return a;}},{key:"updateIsReadAfterReadReport",value:function value(e){var t=e.conversationID,o=e.lastMessageSeq,n=e.lastMessageTime,a=this._messageListHandler.getLocalMessageList(t);if(0!==a.length)for(var s,r=a.length-1;r>=0;r--){if(s=a[r],!(n&&s.time>n||o&&s.sequence>o)){if("in"===s.flow&&s.isRead)break;s.setIsRead(!0);}}}},{key:"updateUnreadCount",value:function value(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!1,n=this.getLocalConversation(e),a=this._messageListHandler.getLocalMessageList(e);if(n){var s=n.unreadCount,r=a.filter(function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted;}).length;if(s!==r&&(n.unreadCount=r,o=!0,be.log("".concat(this._className,".updateUnreadCount from ").concat(s," to ").concat(r,", conversationID:").concat(e)),!0===t&&this.emitConversationUpdate(!0,!1)),o&&n.type===D.CONV_TOPIC){var i=n.unreadCount,c=this.getModule(lo),u=e.replace(D.CONV_GROUP,"");c.onConversationProxy({topicID:u,unreadCount:i});}return o;}}},{key:"clearGroupAtInfoList",value:function value(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.getLocalConversation(e);if(o&&o.groupAtInfoList.length>0){if(o.clearGroupAtInfoList(),be.log("".concat(this._className,".clearGroupAtInfoList conversationID:").concat(e)),o.type===D.CONV_TOPIC){var n=o.groupAtInfoList,a=this.getModule(lo),s=e.replace(D.CONV_GROUP,"");a.onConversationProxy({topicID:s,groupAtInfoList:n});}!0===t&&this.emitConversationUpdate(!0,!1);}}},{key:"updateReadReceiptInfo",value:function value(e){var t=this,o=e.userID,n=void 0===o?void 0:o,a=e.groupID,s=void 0===a?void 0:a,r=e.readReceiptList;if(!Kt(r)){var i=[];if(Ze(n)){if(!Ze(s)){var c="".concat(D.CONV_GROUP).concat(s);r.forEach(function(e){var o=e.tinyID,n=e.clientTime,a=e.random,r=e.readCount,u=e.unreadCount,l="".concat(o,"-").concat(n,"-").concat(a),d=t._messageListHandler.getLocalMessage(c,l),p={groupID:s,messageID:l,readCount:0,unreadCount:0};d&&($e(r)&&(d.readReceiptInfo.readCount=r,p.readCount=r),$e(u)&&(d.readReceiptInfo.unreadCount=u,p.unreadCount=u),i.push(p));});}}else{var u="".concat(D.CONV_C2C).concat(n);r.forEach(function(e){var o=e.tinyID,a=e.clientTime,s=e.random,r="".concat(o,"-").concat(a,"-").concat(s),c=t._messageListHandler.getLocalMessage(u,r);if(c&&!c.isPeerRead){c.isPeerRead=!0;var l={userID:n,messageID:r,isPeerRead:!0};i.push(l);}});}i.length>0&&this.emitOuterEvent(S.MESSAGE_READ_RECEIPT_RECEIVED,i);}}},{key:"recomputeGroupUnreadCount",value:function value(e){var t=e.conversationID,o=e.count,n=this.getLocalConversation(t);if(n){var a=n.unreadCount,s=a-o;s<0&&(s=0),n.unreadCount=s,be.log("".concat(this._className,".recomputeGroupUnreadCount from ").concat(a," to ").concat(s,", conversationID:").concat(t));}}},{key:"updateIsRead",value:function value(e){var t=this.getLocalConversation(e),o=this.getLocalMessageList(e);if(t&&0!==o.length&&!St(t.type)){for(var n=[],a=0,s=o.length;a<s;a++){"in"!==o[a].flow?"out"!==o[a].flow||o[a].isRead||o[a].setIsRead(!0):n.push(o[a]);}var r=0;if(t.type===D.CONV_C2C){var i=n.slice(-t.unreadCount).filter(function(e){return e.isRevoked;}).length;r=n.length-t.unreadCount-i;}else r=n.length-t.unreadCount;for(var c=0;c<r&&!n[c].isRead;c++){n[c].setIsRead(!0);}}}},{key:"deleteGroupAtTips",value:function value(e){var t=this,o="".concat(this._className,".deleteGroupAtTips");be.log("".concat(o));var n=this._conversationMap.get(e);if(!n)return Promise.resolve();var a=n.groupAtInfoList;if(0===a.length)return Promise.resolve();var s=void 0;e.startsWith(D.CONV_GROUP)&&(s=e.replace(D.CONV_GROUP,""));var r=M(a);if((yt({groupID:s})||Tt(s))&&0===(r=a.filter(function(e){return!e.atTypeArray.includes(D.CONV_AT_ALL);})).length)return this.clearGroupAtInfoList(e,!1),Promise.resolve();var i=this.getMyUserID();return this.request({protocolName:on,requestData:{messageListToDelete:r.map(function(e){return{from:e.from,to:i,messageSeq:e.__sequence,messageRandom:e.__random,groupID:Ze(e.topicID)?e.groupID:e.topicID};})}}).then(function(){return be.log("".concat(o," ok. count:").concat(a.length)),t.clearGroupAtInfoList(e,!1),Promise.resolve();}).catch(function(e){return be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"appendToMessageList",value:function value(e){this._messageListHandler.pushIn(e);}},{key:"setMessageRandom",value:function value(e){this.singlyLinkedList.set(e.random);}},{key:"deleteMessageRandom",value:function value(e){this.singlyLinkedList.delete(e.random);}},{key:"pushIntoMessageList",value:function value(e,t,o){return!(!this._messageListHandler.pushIn(t,o)||this._isMessageFromCurrentInstance(t)&&!o)&&(e.push(t),!0);}},{key:"_isMessageFromCurrentInstance",value:function value(e){return this.singlyLinkedList.has(e.random);}},{key:"revoke",value:function value(e,t,o){return this._messageListHandler.revoke(e,t,o);}},{key:"getPeerReadTime",value:function value(e){return this._peerReadTimeMap.get(e);}},{key:"recordPeerReadTime",value:function value(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t);}},{key:"updateMessageIsPeerReadProperty",value:function value(e,t){if(e.startsWith(D.CONV_C2C)&&t>0){var o=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);if(o.length>0&&this.emitOuterEvent(S.MESSAGE_READ_BY_PEER,o),this._conversationMap.has(e)){var n=this._conversationMap.get(e).lastMessage;Kt(n)||n.fromAccount===this.getMyUserID()&&n.lastTime<=t&&!n.isPeerRead&&(n.isPeerRead=!0,this.emitConversationUpdate(!0,!1));}}}},{key:"updateMessageIsModifiedProperty",value:function value(e){this._messageListHandler.updateMessageIsModifiedProperty(e);}},{key:"setCompleted",value:function value(e){be.log("".concat(this._className,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0);}},{key:"updateRoamingMessageKeyAndTime",value:function value(e,t,o){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:o});}},{key:"updateRoamingMessageSequence",value:function value(e,t){this._roamingMessageSequenceMap.set(e,t);}},{key:"getConversationList",value:function value(e){var t=this,o="".concat(this._className,".getConversationList"),n="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(be.log("".concat(o,". ").concat(n)),this._pagingStatus===jt.REJECTED){var a=new Va(Ba.GET_CONVERSATION_LIST);return a.setMessage(n),this.syncConversationList().then(function(){a.setNetworkType(t.getNetworkType()).end();var o=t._getConversationList(e);return as({conversationList:o});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];a.setError(e,n,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}if(0===this._conversationMap.size){var s=new Va(Ba.GET_CONVERSATION_LIST);return s.setMessage(n),this.syncConversationList().then(function(){s.setNetworkType(t.getNetworkType()).end();var o=t._getConversationList(e);return as({conversationList:o});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}var r=this._getConversationList(e);return be.log("".concat(o,". returned conversation count:").concat(r.length)),_s({conversationList:r});}},{key:"_getConversationList",value:function value(e){if(Ze(e))return this.getLocalConversationList();if(Qe(e))return 0===e.length?[]:this.getLocalConversationList().filter(function(t){return e.includes(t.conversationID);});if(Xe(e)){var t=e.type,o=e.markType,n=e.groupName;return this.getLocalConversationList().filter(function(e){return(t!==D.CONV_C2C&&t!==D.CONV_GROUP||e.type===t)&&(!ze(n)||e.conversationGroupList.includes(n))&&(!$e(o)||e.markList.includes(o));});}return[];}},{key:"_handleC2CPeerReadTime",value:function value(){var e,t=C(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var o=m(e.value,2),n=o[0],a=o[1];a.type===D.CONV_C2C&&(be.debug("".concat(this._className,"._handleC2CPeerReadTime conversationID:").concat(n," peerReadTime:").concat(a.peerReadTime)),this.recordPeerReadTime(n,a.peerReadTime));}}catch(s){t.e(s);}finally{t.f();}}},{key:"_isPagingGetGroupListCompleted",value:function value(){return this.getModule(io).isPagingGetCompleted();}},{key:"_hasLocalGroup",value:function value(e){return this.getModule(io).hasLocalGroup(e.replace(D.CONV_GROUP,""));}},{key:"getConversationProfile",value:function value(e){var t,o=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new Gs({conversationID:e,type:e.slice(0,3)===D.CONV_C2C?D.CONV_C2C:D.CONV_GROUP}))._isInfoCompleted||t.type===D.CONV_SYSTEM)return _s({conversation:t});if(Ct(e)&&!this._hasLocalGroup(e))return _s({conversation:t});var n=new Va(Ba.GET_CONVERSATION_PROFILE),a="".concat(this._className,".getConversationProfile");return be.log("".concat(a,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then(function(s){n.setNetworkType(o.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(s.data.conversation.unreadCount)).end();var r=o.getModule(co);if(r&&t.type===D.CONV_C2C){var i=e.replace(D.CONV_C2C,"");if(r.isMyFriend(i)){var c=r.getFriendRemark(i);t.remark!==c&&(t.remark=c,be.log("".concat(a,". conversationID:").concat(e," patch remark:").concat(t.remark)));}}return be.log("".concat(a," ok. conversationID:").concat(e)),s;}).catch(function(t){return o.probeNetwork().then(function(o){var a=m(o,2),s=a[0],r=a[1];n.setError(t,s,r).setMessage("conversationID:".concat(e)).end();}),be.error("".concat(a," failed. error:"),t),gs(t);});}},{key:"_updateUserOrGroupProfileCompletely",value:function value(e){var t=this;return e.type===D.CONV_C2C?this.getModule(so).getUserProfile({userIDList:[e.toAccount]}).then(function(o){var n=o.data;return 0===n.length?gs(new ls({code:Ca.USER_OR_GROUP_NOT_FOUND,message:Sa.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=n[0],e._isInfoCompleted=!0,t._unshiftConversation(e),_s({conversation:e}));}):this.getModule(io).getGroupProfile({groupID:e.toAccount}).then(function(o){return e.groupProfile=o.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),_s({conversation:e});});}},{key:"_unshiftConversation",value:function value(e){e instanceof Gs&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(M(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1));}},{key:"_onProfileUpdated",value:function value(e){var t=this;e.data.forEach(function(e){var o=e.userID;if(o===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var n=t._conversationMap.get("".concat(D.CONV_C2C).concat(o));n&&(n.userProfile=e);}});}},{key:"deleteConversation",value:function value(e){var t=this,o={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._conversationMap.has(e)){var n=new ls({code:Ca.CONVERSATION_NOT_FOUND,message:Sa.CONVERSATION_NOT_FOUND});return gs(n);}var a=this._conversationMap.get(e).type;if(a===D.CONV_C2C)o.type=1,o.toAccount=e.replace(D.CONV_C2C,"");else{if(a!==D.CONV_GROUP){if(a===D.CONV_SYSTEM)return this.getModule(io).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),this.deleteLocalConversation(e),_s({conversationID:e});var s=new ls({code:Ca.CONVERSATION_UN_RECORDED_TYPE,message:Sa.CONVERSATION_UN_RECORDED_TYPE});return gs(s);}if(!this._hasLocalGroup(e))return this.deleteLocalConversation(e),_s({conversationID:e});o.type=2,o.toGroupID=e.replace(D.CONV_GROUP,"");}var r=new Va(Ba.DELETE_CONVERSATION);r.setMessage("conversationID:".concat(e));var i="".concat(this._className,".deleteConversation");return be.log("".concat(i,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then(function(){return t.request({protocolName:en,requestData:o});}).then(function(){return r.setNetworkType(t.getNetworkType()).end(),be.log("".concat(i," ok")),t.deleteLocalConversation(e),_s({conversationID:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(i," failed. error:"),e),gs(e);});}},{key:"pinConversation",value:function value(e){var t=this,o=e.conversationID,n=e.isPinned;if(!this._conversationMap.has(o))return gs({code:Ca.CONVERSATION_NOT_FOUND,message:Sa.CONVERSATION_NOT_FOUND});var a=this.getLocalConversation(o);if(a.isPinned===n)return _s({conversationID:o});var s=new Va(Ba.PIN_CONVERSATION);s.setMessage("conversationID:".concat(o," isPinned:").concat(n));var r="".concat(this._className,".pinConversation");be.log("".concat(r,". conversationID:").concat(o," isPinned:").concat(n));var i=null;return Et(o)?i={type:1,toAccount:o.replace(D.CONV_C2C,"")}:Ct(o)&&(i={type:2,groupID:o.replace(D.CONV_GROUP,"")}),this.request({protocolName:tn,requestData:{fromAccount:this.getMyUserID(),operationType:!0===n?1:2,itemList:[i]}}).then(function(){return s.setNetworkType(t.getNetworkType()).end(),be.log("".concat(r," ok")),a.isPinned!==n&&(a.isPinned=n,t._sortConversationListAndEmitEvent()),as({conversationID:o});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.error("".concat(r," failed. error:"),e),gs(e);});}},{key:"setMessageRemindType",value:function value(e){return this._messageRemindHandler.set(e);}},{key:"patchMessageRemindType",value:function value(e){var t=e.ID,o=e.isC2CConversation,n=e.messageRemindType,a=!1,s=this.getLocalConversation(o?"".concat(D.CONV_C2C).concat(t):"".concat(D.CONV_GROUP).concat(t));return s&&s.messageRemindType!==n&&(s.messageRemindType=n,a=!0),be.debug("".concat(this._className,".patchMessageRemindType options:"),e,"ret:".concat(a)),a;}},{key:"onC2CMessageRemindTypeSynced",value:function value(e){var t=this;be.debug("".concat(this._className,".onC2CMessageRemindTypeSynced options:"),e),e.dataList.forEach(function(e){if(!Kt(e.muteNotificationsSync)){var o,n=e.muteNotificationsSync,a=n.to,s=n.updateSequence,r=n.muteFlag;t._messageRemindHandler.setUpdateSequence(s),0===r?o=D.MSG_REMIND_ACPT_AND_NOTE:1===r?o=D.MSG_REMIND_DISCARD:2===r&&(o=D.MSG_REMIND_ACPT_NOT_NOTE);var i=0;t.patchMessageRemindType({ID:a,isC2CConversation:!0,messageRemindType:o})&&(i+=1),be.log("".concat(t._className,".onC2CMessageRemindTypeSynced updateCount:").concat(i)),i>=1&&t.emitConversationUpdate(!0,!1);}});}},{key:"onGroupMessageRemindTypeSynced",value:function value(e){be.debug("".concat(this._className,".onGroupMessageRemindTypeSynced options:"),e),this._messageRemindHandler.onGroupMessageRemindTypeUpdated(e);}},{key:"deleteLocalConversation",value:function value(e){var t=this._conversationMap.has(e);if(be.log("".concat(this._className,".deleteLocalConversation conversationID:").concat(e," has:").concat(t)),t){this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.has(e)&&this._roamingMessageKeyAndTimeMap.delete(e),this._roamingMessageSequenceMap.has(e)&&this._roamingMessageSequenceMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e);var o=!this._isTopicConversation(e);this.emitConversationUpdate(o,!1);}}},{key:"isMessageSentByCurrentInstance",value:function value(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random));}},{key:"modifyMessageList",value:function value(e){if(e.startsWith(D.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),o=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var n=this.getModule(so).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:n.nick,latestAvatar:n.avatar}),be.log("".concat(this._className,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-o," ms"));}}},{key:"updateUserProfileSpecifiedKey",value:function value(e){be.log("".concat(this._className,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,o=e.nick,n=e.avatar;if(this._conversationMap.has(t)){var a=this._conversationMap.get(t).userProfile;ze(o)&&a.nick!==o&&(a.nick=o),ze(n)&&a.avatar!==n&&(a.avatar=n),this.emitConversationUpdate(!0,!1);}}},{key:"_onMyProfileModified",value:function value(e){var o=this,n=this.getLocalConversationList(),a=Date.now();n.forEach(function(n){o.modifyMessageSentByMe(t({conversationID:n.conversationID},e));}),be.log("".concat(this._className,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-a," ms"));}},{key:"modifyMessageSentByMe",value:function value(e){this._messageListHandler.modifyMessageSentByMe(e);}},{key:"getLatestMessageSentByMe",value:function value(e){return this._messageListHandler.getLatestMessageSentByMe(e);}},{key:"modifyMessageSentByPeer",value:function value(e){this._messageListHandler.modifyMessageSentByPeer(e);}},{key:"getLatestMessageSentByPeer",value:function value(e){return this._messageListHandler.getLatestMessageSentByPeer(e);}},{key:"pushIntoNoticeResult",value:function value(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0);}},{key:"getGroupLocalLastMessageSequence",value:function value(e){return this._messageListHandler.getGroupLocalLastMessageSequence(e);}},{key:"checkAndPatchRemark",value:function value(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(co);if(!t)return e;var o=M(this._conversationMap.values()).filter(function(e){return e.type===D.CONV_C2C;});if(0===o.length)return e;var n=0;return o.forEach(function(e){var o=e.conversationID.replace(D.CONV_C2C,"");if(t.isMyFriend(o)){var a=t.getFriendRemark(o);e.remark!==a&&(e.remark=a,n+=1);}}),be.log("".concat(this._className,".checkAndPatchRemark. c2c conversation count:").concat(o.length,", patched count:").concat(n)),e;}},{key:"updateTopicConversation",value:function value(e){this._updateLocalConversationList({conversationOptionsList:e,isFromGetConversations:!0});}},{key:"sendReadReceipt",value:function value(e){var t=e[0],o=null;return t.conversationType===D.CONV_C2C?o=this._moduleManager.getModule(ro):t.conversationType===D.CONV_GROUP&&(o=this._moduleManager.getModule(io)),o?o.sendReadReceipt(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"getReadReceiptList",value:function value(e){var t=e[0],o=null;return t.conversationType===D.CONV_C2C?o=this._moduleManager.getModule(ro):t.conversationType===D.CONV_GROUP&&(o=this._moduleManager.getModule(io)),o?o.getReadReceiptList(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"getLastMessageTime",value:function value(e){var t=this.getLocalConversation(e);return t?t.lastMessage.lastTime:0;}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._pagingStatus=jt.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this._roamingMessageSequenceMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this.resetReady();}}]),a;}(Ro),ws=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupTipsHandler",this._cachedGroupTipsMap=new Map(),this._checkCountMap=new Map(),this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map();}return s(e,[{key:"onCheckTimer",value:function value(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips();}},{key:"_checkCachedGroupTips",value:function value(){var e=this;this._cachedGroupTipsMap.forEach(function(t,o){var n=e._checkCountMap.get(o),a=e._groupModule.hasLocalGroup(o);be.log("".concat(e._className,"._checkCachedGroupTips groupID:").concat(o," hasLocalGroup:").concat(a," checkCount:").concat(n)),a?(e._notifyCachedGroupTips(o),e._checkCountMap.delete(o),e._groupModule.deleteUnjoinedAVChatRoom(o)):n>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(o),e._checkCountMap.delete(o)):(n++,e._checkCountMap.set(o,n));});}},{key:"onNewGroupTips",value:function value(e){be.debug("".concat(this._className,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),o=t.eventDataList,n=t.result,a=t.AVChatRoomMessageList;(a.length>0&&this._groupModule.onAVChatRoomMessage(a),o.length>0)&&(this._groupModule.updateNextMessageSeq(o),this._groupModule.getModule(po).onNewMessage({conversationOptionsList:o,isInstantMessage:!0}));n.length>0&&(this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,n),this.handleMessageList(n));}},{key:"newGroupTipsStoredAndSummary",value:function value(e){for(var o=this,n=e.event,a=e.dataList,s=null,r=[],i=[],c={},u=[],l=function l(e,_l){var d=mt(a[e]),p=d.groupProfile,_=p.groupID,g=p.communityType,h=void 0===g?0:g,f=p.topicID,m=void 0===f?void 0:f,M=void 0,v=2===h&&!Kt(m);if(v){M=D.CONV_TOPIC,d.to=m;var I=o._groupModule.getModule(lo);I.hasLocalTopic(_,m)||o._getTopicPendingMap.has(m)||(o._getTopicPendingMap.set(m,1),I.getTopicList({groupID:_,topicIDList:[m]}).finally(function(){o._getTopicPendingMap.delete(m);}));}if(2===h&&Kt(m))return"continue";var y=o._groupModule.hasLocalGroup(_);if(!y&&o._groupModule.isUnjoinedAVChatRoom(_))return"continue";if(!y&&!v)return o._cacheGroupTipsAndProbe({groupID:_,event:n,item:d}),"continue";if(o._groupModule.isMessageFromOrToAVChatroom(_))return d.event=n,u.push(d),"continue";d.currentUser=o._groupModule.getMyUserID(),d.conversationType=D.CONV_GROUP,(s=new ns(d)).setElement({type:D.MSG_GRP_TIP,content:t(t({},d.elements),{},{groupProfile:d.groupProfile})}),s.isSystemMessage=!1;var T=o._groupModule.getModule(po),E=s,C=E.conversationID,S=E.sequence;if(6===n)s._onlineOnlyFlag=!0,i.push(s);else if(!T.pushIntoNoticeResult(i,s))return"continue";if(6===n&&T.getLocalConversation(C))return"continue";6!==n&&o._groupModule.getModule(No).addMessageSequence({key:Ga,message:s});var N=T.isRemoteRead({conversationID:C,sequence:S});if(Ze(c[C])){var A=0;"in"===s.flow&&(s._isExcludedFromUnreadCount||s._onlineOnlyFlag||N||(A=1)),c[C]=r.push({conversationID:C,unreadCount:A,type:Ze(M)?s.conversationType:M,subType:s.conversationSubType,lastMessage:s._isExcludedFromLastMessage?"":s})-1;}else{var O=c[C];r[O].type=s.conversationType,r[O].subType=s.conversationSubType,r[O].lastMessage=s._isExcludedFromLastMessage?"":s,"in"===s.flow&&(s._isExcludedFromUnreadCount||s._onlineOnlyFlag||N||r[O].unreadCount++);}},d=0,p=a.length;d<p;d++){l(d);}return{eventDataList:r,result:i,AVChatRoomMessageList:u};}},{key:"handleMessageList",value:function value(e){var t=this;e.forEach(function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:be.warn("".concat(t._className,".handleMessageList unknown operationType:").concat(e.payload.operationType));}});}},{key:"_onNewMemberComeIn",value:function value(e){var t=e.payload,o=t.memberNum,n=t.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(n);a&&$e(o)&&a.memberCount!==o&&(a.memberCount=o,this._updateConversationGroupProfile(a));}},{key:"_onMemberQuit",value:function value(e){var t=e.payload,o=t.memberNum,n=t.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(n);a&&$e(o)&&a.memberCount!==o&&(a.memberCount=o,this._updateConversationGroupProfile(a)),this._groupModule.getModule(uo).deleteLocalGroupMembers(n,e.payload.userIDList);}},{key:"_onMemberKickedOut",value:function value(e){var t=e.payload,o=t.memberNum,n=t.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(n);a&&$e(o)&&a.memberCount!==o&&(a.memberCount=o,this._updateConversationGroupProfile(a)),this._groupModule.getModule(uo).deleteLocalGroupMembers(n,e.payload.userIDList);}},{key:"_updateConversationGroupProfile",value:function value(e){this._groupModule.getModule(po).updateConversationGroupProfile([e]);}},{key:"_onMemberSetAdmin",value:function value(e){var t=e.payload.groupProfile.groupID,o=e.payload.userIDList,n=this._groupModule.getModule(uo);o.forEach(function(e){var o=n.getLocalGroupMemberInfo(t,e);o&&o.updateRole(D.GRP_MBR_ROLE_ADMIN);});}},{key:"_onMemberCancelledAdmin",value:function value(e){var t=e.payload.groupProfile.groupID,o=e.payload.userIDList,n=this._groupModule.getModule(uo);o.forEach(function(e){var o=n.getLocalGroupMemberInfo(t,e);o&&o.updateRole(D.GRP_MBR_ROLE_MEMBER);});}},{key:"_onGroupProfileModified",value:function value(e){var t=this,o=e.payload,n=o.newGroupProfile,a=o.groupProfile.groupID,s=this._groupModule.getLocalGroupProfile(a);Object.keys(n).forEach(function(e){switch(e){case"ownerID":t._ownerChanged(s,n);break;case"muteAllMembers":s.muteAllMembers=n.muteAllMembers;break;case"joinOption":s.joinOption=n.joinOption;break;default:s[e]=n[e];}});var r=!s.isSupportTopic;this._groupModule.emitGroupListUpdate(!0,r);}},{key:"_ownerChanged",value:function value(e,t){var o=e.groupID,n=this._groupModule.getLocalGroupProfile(o),a=this._groupModule.getMyUserID();if(a===t.ownerID){n.updateGroup({selfInfo:{role:D.GRP_MBR_ROLE_OWNER}});var s=this._groupModule.getModule(uo),r=s.getLocalGroupMemberInfo(o,a),i=this._groupModule.getLocalGroupProfile(o).ownerID,c=s.getLocalGroupMemberInfo(o,i);r&&r.updateRole(D.GRP_MBR_ROLE_OWNER),c&&c.updateRole(D.GRP_MBR_ROLE_MEMBER);}}},{key:"_onMemberInfoModified",value:function value(e){var t=e.to,o=e.payload,n=o.groupProfile,a=o.memberList,s=n.groupID;Tt(t)&&this._updateTopicMuteTime(e);var r=this._groupModule.getModule(uo);a.forEach(function(e){var t=r.getLocalGroupMemberInfo(s,e.userID);t&&$e(e.muteTime)&&t.updateMuteUntil(e.muteTime);});}},{key:"_updateTopicMuteTime",value:function value(e){var t=e.to,o=e.payload,n=o.groupProfile,a=o.memberList,s=void 0===a?[]:a,r=this._groupModule.getModule(lo),i=n.groupID,c=r.getLocalTopic(i,t);if(c){for(var u=!1,l=0;l<s.length;l++){var d=s[l];if(d.userID===this._groupModule.getMyUserID()&&d.muteTime>=0){c.updateSelfInfo({muteTime:d.muteTime}),u=!0;break;}}u&&this._groupModule.emitOuterEvent(S.TOPIC_UPDATED,{groupID:i,topic:c});}}},{key:"_onTopicProfileUpdated",value:function value(e){var o=e.payload,n=o.groupProfile.groupID,a=o.newTopicInfo;this._groupModule.getModule(lo).onTopicProfileUpdated(t({groupID:n,topicID:e.to},a));}},{key:"_cacheGroupTips",value:function value(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t);}},{key:"_deleteCachedGroupTips",value:function value(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e);}},{key:"_notifyCachedGroupTips",value:function value(e){var t=this,o=this._cachedGroupTipsMap.get(e)||[];o.forEach(function(e){t.onNewGroupTips(e);}),this._deleteCachedGroupTips(e),be.log("".concat(this._className,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(o.length));}},{key:"_cacheGroupTipsAndProbe",value:function value(e){var t=this,o=e.groupID,n=e.event,a=e.item;this._cacheGroupTips(o,{event:n,dataList:[a]}),this._groupModule.getGroupSimplifiedInfo(o).then(function(e){e.type===D.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(o)?t._notifyCachedGroupTips(o):t._groupModule.setUnjoinedAVChatRoom(o):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(o));}),this._checkCountMap.has(o)||this._checkCountMap.set(o,0),be.log("".concat(this._className,"._cacheGroupTipsAndProbe groupID:").concat(o));}},{key:"reset",value:function value(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear();}}]),e;}(),Fs=function(){function e(t){n(this,e),this._groupModule=t,this._className="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map(),this._checkCountMap=new Map(),this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map(),this._isPagingGetCompleted=!1,t.getInnerEmitterInstance().once(ms,this._initGroupList,this);}return s(e,[{key:"onCheckTimer",value:function value(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage();}},{key:"_checkCachedGroupMessage",value:function value(){var e=this;this._cachedGroupMessageMap.forEach(function(t,o){var n=e._checkCountMap.get(o),a=e._groupModule.hasLocalGroup(o);be.log("".concat(e._className,"._checkCachedGroupMessage groupID:").concat(o," hasLocalGroup:").concat(a," checkCount:").concat(n)),a?(e._notifyCachedGroupMessage(o),e._checkCountMap.delete(o),e._groupModule.deleteUnjoinedAVChatRoom(o)):n>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(o),e._checkCountMap.delete(o)):(n++,e._checkCountMap.set(o,n));});}},{key:"_initGroupList",value:function value(){var e=this;be.log("".concat(this._className,"._initGroupList"));var t=new Va(Ba.GET_GROUP_LIST_IN_STORAGE),o=this._groupModule.getStorageGroupList();if(Qe(o)&&o.length>0){o.forEach(function(t){e._groupModule.initGroupMap(t);}),this._groupModule.emitGroupListUpdate(!0,!1);var n=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(n)).end();}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();be.log("".concat(this._className,"._initGroupList ok"));}},{key:"handleUpdateGroupLastMessage",value:function value(e){var t="".concat(this._className,".handleUpdateGroupLastMessage");if(be.debug("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var o,n,a,s=!1,r=0,i=e.length;r<i;r++){(o=e[r]).type===D.CONV_GROUP&&(n=o.conversationID.split(/^GROUP/)[1],(a=this._groupModule.getLocalGroupProfile(n))&&(a.lastMessage=o.lastMessage,s=!0));}s&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1));}else this.tempConversationList=e;}},{key:"onNewGroupMessage",value:function value(e){be.debug("".concat(this._className,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),o=t.conversationOptionsList,n=t.messageList,a=t.AVChatRoomMessageList;(a.length>0&&this._groupModule.onAVChatRoomMessage(a),this._groupModule.filterModifiedMessage(n),o.length>0)&&(this._groupModule.updateNextMessageSeq(o),this._groupModule.getModule(po).onNewMessage({conversationOptionsList:o,isInstantMessage:!0}));var s=this._groupModule.filterUnmodifiedMessage(n);s.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,s),n.length=0;}},{key:"_newGroupMessageStoredAndSummary",value:function value(e){var t=this,o=e.dataList,n=e.event,a=e.isInstantMessage,s=null,r=[],i=[],c=[],u={},l=this._groupModule.getModule(mo),d=this._groupModule.getModule(No),p=o.length;p>1&&o.sort(function(e,t){return e.sequence-t.sequence;});for(var _=function _(e){var p=mt(o[e]),_=p.groupProfile,g=_.groupID,h=_.communityType,f=void 0===h?0:h,m=_.topicID,M=void 0===m?void 0:m,v=void 0,I=2===f&&!Kt(M);if(I){v=D.CONV_TOPIC,p.to=M;var y=t._groupModule.getModule(lo);y.hasLocalTopic(g,M)||t._getTopicPendingMap.has(M)||(t._getTopicPendingMap.set(M,1),y.getTopicList({groupID:g,topicIDList:[M]}).finally(function(){t._getTopicPendingMap.delete(M);}));}if(2===f&&Kt(M))return"continue";var T=t._groupModule.hasLocalGroup(g);if(!T&&t._groupModule.isUnjoinedAVChatRoom(g))return"continue";if(!T&&!I)return t._cacheGroupMessageAndProbe({groupID:g,event:n,item:p}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(g))return p.event=n,c.push(p),"continue";p.currentUser=t._groupModule.getMyUserID(),p.conversationType=D.CONV_GROUP,p.isSystemMessage=!!p.isSystemMessage,s=new ns(p),p.elements=l.parseElements(p.elements,p.from),s.setElement(p.elements);var E=1===o[e].isModified,C=t._groupModule.getModule(po);if(C.isMessageSentByCurrentInstance(s)?s.isModified=E:E=!1,1===p.onlineOnlyFlag)s._onlineOnlyFlag=!0,C.isMessageSentByCurrentInstance(s)||i.push(s);else{if(!C.pushIntoMessageList(i,s,E))return"continue";d.addMessageSequence({key:Ga,message:s}),a&&s.clientTime>0&&d.addMessageDelay(s.clientTime);var S=s,N=S.conversationID,A=S.sequence,O=C.isRemoteRead({conversationID:N,sequence:A});if(Ze(u[N])){var R=0;"in"===s.flow&&(s._isExcludedFromUnreadCount||O||(R=1)),u[N]=r.push({conversationID:N,unreadCount:R,type:Ze(v)?s.conversationType:v,subType:s.conversationSubType,lastMessage:s._isExcludedFromLastMessage?"":s})-1;}else{var L=u[N];r[L].type=Ze(v)?s.conversationType:v,r[L].subType=s.conversationSubType,r[L].lastMessage=s._isExcludedFromLastMessage?"":s,"in"===s.flow&&(s._isExcludedFromUnreadCount||O||r[L].unreadCount++);}}},g=0;g<p;g++){_(g);}return{conversationOptionsList:r,messageList:i,AVChatRoomMessageList:c};}},{key:"onGroupMessageRevoked",value:function value(e){be.debug("".concat(this._className,".onGroupMessageRevoked nums:").concat(e.dataList.length));var t=this._groupModule.getModule(po),o=[],n=null;e.dataList.forEach(function(e){var a=e.elements.revokedInfos;Ze(a)||a.forEach(function(e){var a=Ze(e.topicID)?"GROUP".concat(e.groupID):"GROUP".concat(e.topicID);(n=t.revoke(a,e.sequence,e.random))&&o.push(n);});}),0!==o.length&&(t.onMessageRevoked(o),this._groupModule.emitOuterEvent(S.MESSAGE_REVOKED,o));}},{key:"_groupListTreeShaking",value:function value(e){for(var t=new Map(M(this._groupModule.getGroupMap())),o=0,n=e.length;o<n;o++){t.delete(e[o].groupID);}this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach(function(e){t.delete(e);});this._groupModule.getGroupMap().forEach(function(e,o){e.isSupportTopic&&t.delete(o);});for(var a=M(t.keys()),s=0,r=a.length;s<r;s++){this._groupModule.deleteGroup(a[s]);}}},{key:"getGroupList",value:function value(e){var t=this,o="".concat(this._className,".getGroupList"),n=new Va(Ba.GET_GROUP_LIST);be.log("".concat(o));var a={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",muteAllMembers:"ShutUpAllMember"},s=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime","AtInfoList"],r=[];e&&e.groupProfileFilter&&e.groupProfileFilter.forEach(function(e){a[e]&&s.push(a[e]);});var i=(e||{}).isGroupWithTopicOnly,c=void 0!==i&&i;return this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:s,groupList:r,isGroupWithTopicOnly:c}).then(function(){be.log("".concat(o," ok. count:").concat(r.length," isGroupWithTopicOnly:").concat(c)),c||t._groupListTreeShaking(r),t._groupModule.updateGroupMap(r);var e=t._groupModule.getLocalGroupList().length;n.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(r.length,", after tree shaking, local count:").concat(e,", isGroupWithTopicOnly:").concat(c)).end(),t.tempConversationList&&(be.log("".concat(o," update last message with tempConversationList, count:").concat(t.tempConversationList.length)),t.handleUpdateGroupLastMessage({data:t.tempConversationList}),t.tempConversationList=null),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),t._groupModule.emitGroupListUpdate(!0,!c);var a=t._groupModule.getLocalGroupList();if(c){var s=a.filter(function(e){return!0===e.isSupportTopic;});return as({groupList:s});}return t._isPagingGetCompleted=!0,as({groupList:a});}).catch(function(e){return t._groupModule.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"isPagingGetCompleted",value:function value(){return this._isPagingGetCompleted;}},{key:"_pagingGetGroupList",value:function value(e){var t=this,o="".concat(this._className,"._pagingGetGroupList"),n=e.isCommunityRelay,a=void 0!==n&&n,s=e.isGroupWithTopicOnly,r=void 0!==s&&s,i=e.limit,c=e.offset,u=e.groupBaseInfoFilter,l=e.groupList;if(r)return this._pagingGetGroupListWithTopic({limit:i,offset:c,groupBaseInfoFilter:u,groupList:l});var d=new Va(Ba.PAGING_GET_GROUP_LIST);return this._groupModule.request({protocolName:pn,requestData:{type:a?D.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:i,offset:c,responseFilter:{groupBaseInfoFilter:u,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then(function(e){var n=e.data,s=n.groups,r=void 0===s?[]:s,p=n.totalCount;l.push.apply(l,M(r)),t._handleGroupAtInfoWithoutTopic(a,r);var _=c+i,g=!(p>_),h="offset:".concat(c," totalCount:").concat(p," isCompleted:").concat(g," ")+"currentCount:".concat(l.length," isCommunityRelay:").concat(a);return d.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(h)).end(),a||g?!a&&g?(be.log("".concat(o," start to get community list")),c=0,t._pagingGetGroupList({limit:i,offset:c,groupBaseInfoFilter:u,groupList:l,isCommunityRelay:!0})):a&&!g?(c=_,t._pagingGetGroupList({limit:i,offset:c,groupBaseInfoFilter:u,groupList:l,isCommunityRelay:!0})):(be.log("".concat(o," ok. totalCount:").concat(l.length)),as({groupList:l})):(c=_,t._pagingGetGroupList({limit:i,offset:c,groupBaseInfoFilter:u,groupList:l}));}).catch(function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];d.setMessage("isCommunityRelay:".concat(a)).setError(e,n,s).end();}),a?(11e3===e.code&&(d=null,be.log("".concat(o," ok. community unavailable"))),_s({groupList:l})):gs(e);});}},{key:"_pagingGetGroupListWithTopic",value:function value(e){var t=this,o="".concat(this._className,"._pagingGetGroupListWithTopic"),n=e.limit,a=e.offset,s=e.groupBaseInfoFilter,r=e.groupList,i=new Va(Ba.PAGING_GET_GROUP_LIST_WITH_TOPIC);return this._groupModule.request({protocolName:pn,requestData:{type:D.GRP_COMMUNITY,memberAccount:this._groupModule.getMyUserID(),limit:n,offset:a,responseFilter:{groupBaseInfoFilter:s,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]},isSupportTopic:1}}).then(function(e){var c=e.data,u=c.groups,l=void 0===u?[]:u,d=c.totalCount;r.push.apply(r,M(l));var p=a+n,_=!(d>p),g="offset:".concat(a," totalCount:").concat(d," isCompleted:").concat(_," ")+"currentCount:".concat(r.length);return i.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(g)).end(),_?(be.log("".concat(o," ok. totalCount:").concat(r.length)),as({groupList:r})):(a=p,t._pagingGetGroupListWithTopic({limit:n,offset:a,groupBaseInfoFilter:s,groupList:r}));}).catch(function(e){return t._groupModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];i.setError(e,n,a).end();}),gs(e);});}},{key:"_cacheGroupMessage",value:function value(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t);}},{key:"_deleteCachedGroupMessage",value:function value(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e);}},{key:"_notifyCachedGroupMessage",value:function value(e){var t=this,o=this._cachedGroupMessageMap.get(e)||[];o.forEach(function(e){t.onNewGroupMessage(e);}),this._deleteCachedGroupMessage(e),be.log("".concat(this._className,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(o.length));}},{key:"_cacheGroupMessageAndProbe",value:function value(e){var t=this,o=e.groupID,n=e.event,a=e.item;this._cacheGroupMessage(o,{event:n,dataList:[a]}),this._groupModule.getGroupSimplifiedInfo(o).then(function(e){e.type===D.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(o)?t._notifyCachedGroupMessage(o):t._groupModule.setUnjoinedAVChatRoom(o):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(o));}),this._checkCountMap.has(o)||this._checkCountMap.set(o,0),be.log("".concat(this._className,"._cacheGroupMessageAndProbe groupID:").concat(o));}},{key:"_handleGroupAtInfoWithoutTopic",value:function value(e,o){var n=this;e&&0!==o.length&&o.forEach(function(e){var o=e.groupID,a=e.groupAtInfoList,s=[];Ze(a)||(a.forEach(function(e){s.push(t(t({},e),{},{groupID:o}));}),n._groupModule.getModule(po).onNewGroupAtTips({dataList:s}));});}},{key:"reset",value:function value(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear(),this._isPagingGetCompleted=!1,this._groupModule.getInnerEmitterInstance().once(ms,this._initGroupList,this);}}]),e;}(),qs={1:"init",2:"modify",3:"clear",4:"delete"},Vs=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupAttributesHandler",this._groupAttributesMap=new Map(),this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(Ms,this._onCloudConfigUpdated,this);}return s(e,[{key:"_onCloudConfigUpdated",value:function value(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");Ze(e)||(this.CACHE_EXPIRE_TIME=Number(e));}},{key:"updateLocalMainSequenceOnReconnected",value:function value(){this._groupAttributesMap.forEach(function(e){e.localMainSequence=0;});}},{key:"onGroupAttributesUpdated",value:function value(e){var t=this,o=e.groupID,n=e.groupAttributeOption,a=n.mainSequence,s=n.hasChangedAttributeInfo,r=n.groupAttributeList,i=void 0===r?[]:r,c=n.operationType;if(be.log("".concat(this._className,".onGroupAttributesUpdated. groupID:").concat(o," hasChangedAttributeInfo:").concat(s," operationType:").concat(c)),!Ze(c)){if(1===s){if(4===c){var u=[];i.forEach(function(e){u.push(e.key);}),i=M(u),u=null;}return this._refreshCachedGroupAttributes({groupID:o,remoteMainSequence:a,groupAttributeList:i,operationType:qs[c]}),void this._emitGroupAttributesUpdated(o);}if(this._groupAttributesMap.has(o)){var l=this._groupAttributesMap.get(o).avChatRoomKey;this._getGroupAttributes({groupID:o,avChatRoomKey:l}).then(function(){t._emitGroupAttributesUpdated(o);});}}}},{key:"initGroupAttributesCache",value:function value(e){var t=e.groupID,o=e.avChatRoomKey;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map(),avChatRoomKey:o}),be.log("".concat(this._className,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(o));}},{key:"initGroupAttributes",value:function value(e){var t=this,o=e.groupID,n=e.groupAttributes,a=this._checkCachedGroupAttributes({groupID:o,funcName:"initGroupAttributes"});if(!0!==a)return gs(a);var s=this._groupAttributesMap.get(o),r=s.remoteMainSequence,i=s.avChatRoomKey,c=new Va(Ba.INIT_GROUP_ATTRIBUTES);return c.setMessage("groupID:".concat(o," mainSequence:").concat(r," groupAttributes:").concat(JSON.stringify(n))),this._groupModule.request({protocolName:qn,requestData:{groupID:o,avChatRoomKey:i,mainSequence:r,groupAttributeList:this._transformGroupAttributes(n)}}).then(function(e){var a=e.data,s=a.mainSequence,r=M(a.groupAttributeList);return r.forEach(function(e){e.value=n[e.key];}),t._refreshCachedGroupAttributes({groupID:o,remoteMainSequence:s,groupAttributeList:r,operationType:"init"}),c.setNetworkType(t._groupModule.getNetworkType()).end(),be.log("".concat(t._className,".initGroupAttributes ok. groupID:").concat(o)),as({groupAttributes:n});}).catch(function(e){return t._groupModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];c.setError(e,n,a).end();}),gs(e);});}},{key:"setGroupAttributes",value:function value(e){var t=this,o=e.groupID,n=e.groupAttributes,a=this._checkCachedGroupAttributes({groupID:o,funcName:"setGroupAttributes"});if(!0!==a)return gs(a);var s=this._groupAttributesMap.get(o),r=s.remoteMainSequence,i=s.avChatRoomKey,c=s.attributes,u=this._transformGroupAttributes(n);u.forEach(function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence);});var l=new Va(Ba.SET_GROUP_ATTRIBUTES);return l.setMessage("groupID:".concat(o," mainSequence:").concat(r," groupAttributes:").concat(JSON.stringify(n))),this._groupModule.request({protocolName:Vn,requestData:{groupID:o,avChatRoomKey:i,mainSequence:r,groupAttributeList:u}}).then(function(e){var a=e.data,s=a.mainSequence,r=M(a.groupAttributeList);return r.forEach(function(e){e.value=n[e.key];}),t._refreshCachedGroupAttributes({groupID:o,remoteMainSequence:s,groupAttributeList:r,operationType:"modify"}),l.setNetworkType(t._groupModule.getNetworkType()).end(),be.log("".concat(t._className,".setGroupAttributes ok. groupID:").concat(o)),as({groupAttributes:n});}).catch(function(e){return t._groupModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];l.setError(e,n,a).end();}),gs(e);});}},{key:"deleteGroupAttributes",value:function value(e){var t=this,o=e.groupID,n=e.keyList,a=void 0===n?[]:n,s=this._checkCachedGroupAttributes({groupID:o,funcName:"deleteGroupAttributes"});if(!0!==s)return gs(s);var r=this._groupAttributesMap.get(o),i=r.remoteMainSequence,c=r.avChatRoomKey,u=r.attributes,l=M(u.keys()),d=Kn,p="clear",_={groupID:o,avChatRoomKey:c,mainSequence:i};if(a.length>0){var g=[];l=[],d=Bn,p="delete",a.forEach(function(e){var t=0;u.has(e)&&(t=u.get(e).sequence,l.push(e)),g.push({key:e,sequence:t});}),_.groupAttributeList=g;}var h=new Va(Ba.DELETE_GROUP_ATTRIBUTES);return h.setMessage("groupID:".concat(o," mainSequence:").concat(i," keyList:").concat(a," protocolName:").concat(d)),this._groupModule.request({protocolName:d,requestData:_}).then(function(e){var n=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:o,remoteMainSequence:n,groupAttributeList:a,operationType:p}),h.setNetworkType(t._groupModule.getNetworkType()).end(),be.log("".concat(t._className,".deleteGroupAttributes ok. groupID:").concat(o)),as({keyList:l});}).catch(function(e){return t._groupModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];h.setError(e,n,a).end();}),gs(e);});}},{key:"getGroupAttributes",value:function value(e){var t=this,o=e.groupID,n=this._checkCachedGroupAttributes({groupID:o,funcName:"getGroupAttributes"});if(!0!==n)return gs(n);var a=this._groupAttributesMap.get(o),s=a.avChatRoomKey,r=a.lastUpdateTime,i=a.localMainSequence,c=a.remoteMainSequence,u=new Va(Ba.GET_GROUP_ATTRIBUTES);if(u.setMessage("groupID:".concat(o," localMainSequence:").concat(i," remoteMainSequence:").concat(c," keyList:").concat(e.keyList)),Date.now()-r>=this.CACHE_EXPIRE_TIME||i<c)return this._getGroupAttributes({groupID:o,avChatRoomKey:s}).then(function(n){u.setMoreMessage("get attributes from remote. count:".concat(n.length)).setNetworkType(t._groupModule.getNetworkType()).end(),be.log("".concat(t._className,".getGroupAttributes from remote. groupID:").concat(o));var a=t._getLocalGroupAttributes(e);return as({groupAttributes:a});}).catch(function(e){return t._groupModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];u.setError(e,n,a).end();}),gs(e);});u.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),be.log("".concat(this._className,".getGroupAttributes from cache. groupID:").concat(o));var l=this._getLocalGroupAttributes(e);return _s({groupAttributes:l});}},{key:"_getGroupAttributes",value:function value(e){var o=this;return this._groupModule.request({protocolName:Hn,requestData:t({},e)}).then(function(t){var n=t.data,a=n.mainSequence,s=n.groupAttributeList,r=M(s);return Ze(a)||o._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:a,groupAttributeList:r,operationType:"get"}),be.log("".concat(o._className,"._getGroupAttributes ok. groupID:").concat(e.groupID)),s;}).catch(function(e){return gs(e);});}},{key:"_getLocalGroupAttributes",value:function value(e){var t=e.groupID,o=e.keyList,n=void 0===o?[]:o,a={};if(!this._groupAttributesMap.has(t))return a;var s=this._groupAttributesMap.get(t).attributes;if(n.length>0)n.forEach(function(e){s.has(e)&&(a[e]=s.get(e).value);});else{var r,i=C(s.keys());try{for(i.s();!(r=i.n()).done;){var c=r.value;a[c]=s.get(c).value;}}catch(u){i.e(u);}finally{i.f();}}return a;}},{key:"_refreshCachedGroupAttributes",value:function value(e){var t=e.groupID,o=e.remoteMainSequence,n=e.groupAttributeList,a=e.operationType;if(this._groupAttributesMap.has(t)){var s=this._groupAttributesMap.get(t),r=s.localMainSequence;if("get"===a||o-r==1)s.remoteMainSequence=o,s.localMainSequence=o,s.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:s,groupAttributeList:n,operationType:a});else{if(r===o)return;s.remoteMainSequence=o;}this._groupAttributesMap.set(t,s);var i="operationType:".concat(a," localMainSequence:").concat(r," remoteMainSequence:").concat(o);be.log("".concat(this._className,"._refreshCachedGroupAttributes. ").concat(i));}}},{key:"_updateCachedAttributes",value:function value(e){var t=e.groupAttributes,o=e.groupAttributeList,n=e.operationType;"clear"!==n?"delete"!==n?("init"===n&&t.attributes.clear(),o.forEach(function(e){var o=e.key,n=e.value,a=e.sequence;t.attributes.set(o,{value:n,sequence:a});})):o.forEach(function(e){t.attributes.delete(e);}):t.attributes.clear();}},{key:"_checkCachedGroupAttributes",value:function value(e){var t=e.groupID,o=e.funcName;if(this._groupModule.hasLocalGroup(t)&&this._groupModule.getLocalGroupProfile(t).type!==D.GRP_AVCHATROOM){return be.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat("非直播群不能使用群属性 API")),new ls({code:Ca.CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM,message:"非直播群不能使用群属性 API"});}var n=this._groupAttributesMap.get(t);if(Ze(n)){var a="如果 groupID:".concat(t," 是直播群,使用 ").concat(o," 前先使用 joinGroup 接口申请加入群组,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return be.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat(a)),new ls({code:Ca.CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN,message:a});}return!0;}},{key:"_transformGroupAttributes",value:function value(e){var t=[];return Object.keys(e).forEach(function(o){t.push({key:o,value:e[o]});}),t;}},{key:"_emitGroupAttributesUpdated",value:function value(e){var t=this._getLocalGroupAttributes({groupID:e});this._groupModule.emitOuterEvent(S.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t});}},{key:"reset",value:function value(){this._groupAttributesMap.clear(),this.CACHE_EXPIRE_TIME=3e4;}}]),e;}(),Bs=function(){function e(t){n(this,e);var o=t.manager,a=t.groupID,s=t.onInit,r=t.onSuccess,i=t.onFail;this._className="Polling",this._manager=o,this._groupModule=o._groupModule,this._onInit=s,this._onSuccess=r,this._onFail=i,this._groupID=a,this._timeoutID=-1,this._isRunning=!1,this._protocolName=Pn;}return s(e,[{key:"start",value:function value(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=Un),be.log("".concat(this._className,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request();}},{key:"isRunning",value:function value(){return this._isRunning;}},{key:"_request",value:function value(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then(function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()));}).catch(function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL));});}},{key:"stop",value:function value(){be.log("".concat(this._className,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1;}}]),e;}(),Ks={3:!0,4:!0,5:!0,6:!0,17:!0},Hs=function(){function e(t){n(this,e),this._groupModule=t,this._className="AVChatRoomHandler",this._joinedGroupMap=new Map(),this._pollingRequestInfoMap=new Map(),this._pollingInstanceMap=new Map(),this.sequencesLinkedList=new Os(200),this.messageIDLinkedList=new Os(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map(),this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map();}return s(e,[{key:"hasJoinedAVChatRoom",value:function value(){return this._joinedGroupMap.size>0;}},{key:"checkJoinedAVChatRoomByID",value:function value(e){return this._joinedGroupMap.has(e);}},{key:"getJoinedAVChatRoom",value:function value(){return this._joinedGroupMap.size>0?M(this._joinedGroupMap.keys()):null;}},{key:"_updateRequestData",value:function value(e){var o=this._pollingRequestInfoMap.get(e);return e===M(this._pollingInstanceMap.keys())[0]?t(t({},o),{},{startBroadcastSeq:this._startBroadcastSeq}):t({},o);}},{key:"_handleSuccess",value:function value(e,t){var o=t.data,n=o.key,a=o.nextSeq,s=o.rspMsgList,r=o.errorCode,i=o.nextBroadcastSeq,c=o.broadcastMessageList;if(0!==r){var u=this._pollingRequestInfoMap.get(e),l=new Va(Ba.LONG_POLLING_AV_ERROR),d=u?"".concat(u.key,"-").concat(u.startSeq):"requestInfo is undefined";l.setMessage("".concat(e,"-").concat(d,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0);}else{if(!this.checkJoinedAVChatRoomByID(e))return;ze(n)&&$e(a)&&this._pollingRequestInfoMap.set(e,{key:n,startSeq:a}),$e(i)&&i>this._startBroadcastSeq&&(this._startBroadcastSeq=i),Qe(s)&&s.length>0?(s.forEach(function(e){e.to=e.groupID;}),this.onMessage(s)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(c);}}},{key:"_handleFailure",value:function value(e,t){}},{key:"onMessage",value:function value(e){if(Qe(e)&&0!==e.length){0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL);var t=null,o=[],n=this._getModule(po),a=this._getModule(No),s=e.length;s>1&&e.sort(function(e,t){return e.sequence-t.sequence;});for(var r=this._getModule(_o),i=0;i<s;i++){if(Ks[e[i].event]){this.receivedMessageCount+=1,t=this.packMessage(e[i],e[i].event);var c=1===e[i].isModified,u=1===e[i].isHistoryMessage;if((r.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var l=t.conversationID;if(this.receivedMessageCount%50==0?this._getModule(Eo).detectFirstRound(l,this.sequencesLinkedList.data()):this.receivedMessageCount%80==0&&this._getModule(Eo).detectSecondRound(l,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var d=this.sequencesLinkedList.tail().value,p=t.sequence-d;p>1&&p<=20?this._getModule(Eo).onMessageMaybeLost(l,d+1,p-1):p<-1&&p>=-20&&this._getModule(Eo).onMessageMaybeLost(l,t.sequence+1,Math.abs(p)-1);}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var _=!1;if(this._isMessageSentByCurrentInstance(t)?c&&(_=!0,t.isModified=c,n.updateMessageIsModifiedProperty(t)):_=!0,_){if(t.conversationType===D.CONV_SYSTEM&&5===t.payload.operationType&&this._onGroupDismissed(t.payload.groupProfile.groupID),!u&&t.conversationType!==D.CONV_SYSTEM){var g=t.conversationID.replace(D.CONV_GROUP,"");this._pollingInstanceMap.has(g)?a.addMessageSequence({key:Ua,message:t}):(t.type!==D.MSG_GRP_TIP&&t.clientTime>0&&a.addMessageDelay(t.clientTime),a.addMessageSequence({key:Pa,message:t}));}o.push(t);}}}else be.warn("".concat(this._className,".onMessage 未处理的 event 类型: ").concat(e[i].event));}if(0!==o.length){this._groupModule.filterModifiedMessage(o);var h=this.packConversationOption(o);if(h.length>0)this._getModule(po).onNewMessage({conversationOptionsList:h,isInstantMessage:!0});be.debug("".concat(this._className,".onMessage count:").concat(o.length)),this._checkMessageStacked(o);var f=this._groupModule.filterUnmodifiedMessage(o);f.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,f),o.length=0;}}}},{key:"_onGroupDismissed",value:function value(e){be.log("".concat(this._className,"._onGroupDismissed groupID:").concat(e)),this._groupModule.deleteLocalGroupAndConversation(e),this.reset(e);}},{key:"_checkMessageStacked",value:function value(e){var t=e.length;t>=100&&(be.warn("".concat(this._className,"._checkMessageStacked 直播群消息堆积数:").concat(e.length,'!可能会导致微信小程序渲染时遇到 "Dom limit exceeded" 的错误,建议接入侧此时只渲染最近的10条消息')),this._reportMessageStackedCount<5&&(new Va(Ba.MESSAGE_STACKED).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(t," groupID:").concat(M(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1));}},{key:"_isMessageSentByCurrentInstance",value:function value(e){return!!this._getModule(po).isMessageSentByCurrentInstance(e);}},{key:"packMessage",value:function value(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?D.CONV_SYSTEM:D.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var o=new ns(e),n=this.packElements(e,t);return o.setElement(n),o;}},{key:"packElements",value:function value(e,o){return 4===o||6===o?(this._updateMemberCountByGroupTips(e),this._onGroupAttributesUpdated(e),{type:D.MSG_GRP_TIP,content:t(t({},e.elements),{},{groupProfile:e.groupProfile})}):5===o?{type:D.MSG_GRP_SYS_NOTICE,content:t(t({},e.elements),{},{groupProfile:t(t({},e.groupProfile),{},{groupID:e.groupID})})}:this._getModule(mo).parseElements(e.elements,e.from);}},{key:"packConversationOption",value:function value(e){for(var t=new Map(),o=0;o<e.length;o++){var n=e[o],a=n.conversationID;if(t.has(a)){var s=t.get(a);s.lastMessage=n,"in"===n.flow&&s.unreadCount++;}else t.set(a,{conversationID:n.conversationID,unreadCount:"out"===n.flow?0:1,type:n.conversationType,subType:n.conversationSubType,lastMessage:n});}return M(t.values());}},{key:"_updateMemberCountByGroupTips",value:function value(e){var t=e.groupProfile.groupID,o=e.elements.onlineMemberInfo,n=void 0===o?void 0:o;if(!Kt(n)){var a=n.onlineMemberNum,s=void 0===a?0:a,r=n.expireTime,i=void 0===r?this.DEFAULT_EXPIRE_TIME:r,c=this._onlineMemberCountMap.get(t)||{},u=Date.now();Kt(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:u,memberCount:s,expireTime:i}):(c.latestUpdateTime=u,c.memberCount=s),be.debug("".concat(this._className,"._updateMemberCountByGroupTips info:"),c),this._onlineMemberCountMap.set(t,c);}}},{key:"_onBroadcastMessage",value:function value(e){if(!Kt(e)){for(var t=[],o=e.length,n=null,a=0;a<o;a++){Ks[e[a].event]?((n=this.packMessage(e[a],e[a].event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(n.ID)||(t.push(n),this._broadcastMessageIDMap.set(n.ID,1))):be.warn("".concat(this._className,"._onBroadcastMessage 未处理的 event 类型: ").concat(e[a].event));}t.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,t);}}},{key:"start",value:function value(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start();}else{var o=new Bs({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});o.start(),this._pollingInstanceMap.set(e,o),be.log("".concat(this._className,".start groupID:").concat(e));}}},{key:"handleJoinResult",value:function value(e){var t=this;return this._preCheck().then(function(){var o=e.longPollingKey,n=e.group,a=n.groupID;return t._joinedGroupMap.set(a,n),t._groupModule.updateGroupMap([n]),t._groupModule.deleteUnjoinedAVChatRoom(a),t._groupModule.emitGroupListUpdate(!0,!1),Ze(o)?_s({status:Ke,group:n}):Promise.resolve();});}},{key:"startRunLoop",value:function value(e){var t=this;return this.handleJoinResult(e).then(function(){var o=e.longPollingKey,n=e.group,a=e.startSeq,s=void 0===a?0:a,r=n.groupID;return t._pollingRequestInfoMap.set(r,{key:o,startSeq:s}),t.start(r),t._groupModule.isLoggedIn()?_s({status:Ke,group:n}):_s({status:Ke});});}},{key:"_preCheck",value:function value(){if(this._getModule(_o).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=m(this._joinedGroupMap.entries().next().value,2),t=e[0],o=e[1];if(this._groupModule.isLoggedIn()){if(!(o.selfInfo.role===D.GRP_MBR_ROLE_OWNER||o.ownerID===this._groupModule.getMyUserID()))return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t);}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve();}},{key:"joinWithoutAuth",value:function value(e){var t=this,o=e.groupID,n="".concat(this._className,".joinWithoutAuth"),a=new Va(Ba.JOIN_WITHOUT_AUTH);return this._groupModule.request({protocolName:Mn,requestData:e}).then(function(e){var s=e.data.longPollingKey;if(t._groupModule.probeNetwork().then(function(e){var t=m(e,2),n=(t[0],t[1]);a.setNetworkType(n).setMessage("groupID:".concat(o," longPollingKey:").concat(s)).end(!0);}),Ze(s))return gs(new ls({code:Ca.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN,message:Sa.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN}));be.log("".concat(n," ok. groupID:").concat(o)),t._getModule(po).setCompleted("".concat(D.CONV_GROUP).concat(o));var r=new Ls({groupID:o});return t.startRunLoop({group:r,longPollingKey:s}),as({status:Ke});}).catch(function(e){return be.error("".concat(n," failed. groupID:").concat(o," error:"),e),t._groupModule.probeNetwork().then(function(t){var n=m(t,2),s=n[0],r=n[1];a.setError(e,s,r).setMessage("groupID:".concat(o)).end(!0);}),gs(e);}).finally(function(){t._groupModule.getModule(ho).reportAtOnce();});}},{key:"getGroupOnlineMemberCount",value:function value(e){var t=this._onlineMemberCountMap.get(e)||{},o=Date.now();return Kt(t)||o-t.lastSyncTime>1e3*t.expireTime&&o-t.latestUpdateTime>1e4&&o-t.lastReqTime>3e3?(t.lastReqTime=o,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then(function(e){return as({memberCount:e.memberCount});}).catch(function(e){return gs(e);})):_s({memberCount:t.memberCount});}},{key:"_getGroupOnlineMemberCount",value:function value(e){var t=this,o="".concat(this._className,"._getGroupOnlineMemberCount");return this._groupModule.request({protocolName:bn,requestData:{groupID:e}}).then(function(n){var a=t._onlineMemberCountMap.get(e)||{},s=n.data,r=s.onlineMemberNum,i=void 0===r?0:r,c=s.expireTime,u=void 0===c?t.DEFAULT_EXPIRE_TIME:c;be.log("".concat(o," ok. groupID:").concat(e," memberCount:").concat(i," expireTime:").concat(u));var l=Date.now();return Kt(a)&&(a.lastReqTime=l),t._onlineMemberCountMap.set(e,Object.assign(a,{lastSyncTime:l,latestUpdateTime:l,memberCount:i,expireTime:u})),{memberCount:i};}).catch(function(n){return be.warn("".concat(o," failed. error:"),n),new Va(Ba.GET_GROUP_ONLINE_MEMBER_COUNT).setCode(n.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(n))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(n);});}},{key:"_onGroupAttributesUpdated",value:function value(e){var t=e.groupID,o=e.elements,n=o.operationType,a=o.newGroupProfile;if(6===n){var s=(void 0===a?void 0:a).groupAttributeOption;Kt(s)||this._groupModule.onGroupAttributesUpdated({groupID:t,groupAttributeOption:s});}}},{key:"_getModule",value:function value(e){return this._groupModule.getModule(e);}},{key:"setPollingInterval",value:function value(e){Ze(e)||($e(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10));}},{key:"setPollingIntervalPlus",value:function value(e){Ze(e)||($e(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10));}},{key:"setPollingNoMessageCount",value:function value(e){Ze(e)||($e(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10));}},{key:"getPollingInterval",value:function value(){return this._pollingInterval;}},{key:"onAVChatRoomMemberBanned",value:function value(e){var t=e.payload.groupProfile.groupID;be.log("".concat(this._className,".onAVChatRoomMemberBanned groupID:").concat(t)),this._groupModule.deleteLocalGroupAndConversation(t),this.reset(t);}},{key:"reset",value:function value(e){if(e){be.log("".concat(this._className,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e);}else{be.log("".concat(this._className,".reset all"));var o,n=C(this._pollingInstanceMap.values());try{for(n.s();!(o=n.n()).done;){o.value.stop();}}catch(a){n.e(a);}finally{n.f();}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear();}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0;}}]),e;}(),xs=1,Ws=15,Ys=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupSystemNoticeHandler",this.pendencyMap=new Map();}return s(e,[{key:"onNewGroupSystemNotice",value:function value(e){var t=e.dataList,o=e.isSyncingEnded,n=e.isInstantMessage;be.debug("".concat(this._className,".onReceiveSystemNotice count:").concat(t.length));var a=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:n}),s=a.eventDataList,r=a.result;s.length>0&&(this._groupModule.getModule(po).onNewMessage({conversationOptionsList:s,isInstantMessage:n}),this._onReceivedGroupSystemNotice({result:r,isInstantMessage:n}));n?r.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,r):!0===o&&this._clearGroupSystemNotice();}},{key:"newSystemNoticeStoredAndSummary",value:function value(e){var o=e.notifiesList,n=e.isInstantMessage,a=null,s=o.length,r=0,i=[],c={conversationID:D.CONV_SYSTEM,unreadCount:0,type:D.CONV_SYSTEM,subType:null,lastMessage:null};for(r=0;r<s;r++){var u=o[r],l=u.groupProfile,d=l.communityType,p=void 0===d?0:d,_=l.topicID,g=void 0===_?void 0:_,h=u.elements,f=h.topicIDList,m=void 0===f?void 0:f,M=h.operationType;if(!(2!==p||Kt(g)&&Kt(m))){if([17,18,20].includes(M)){this._handleTopicSystemNotice(u);continue;}Kt(g)||(u.to=g);}if(u.elements.operationType!==Ws)u.currentUser=this._groupModule.getMyUserID(),u.conversationType=D.CONV_SYSTEM,u.conversationID=D.CONV_SYSTEM,(a=new ns(u)).setElement({type:D.MSG_GRP_SYS_NOTICE,content:t(t({},u.elements),{},{groupProfile:t({},u.groupProfile)})}),a.isSystemMessage=!0,(1===a.sequence&&1===a.random||2===a.sequence&&2===a.random)&&(a.sequence=dt(),a.random=dt(),a.generateMessageID(),be.log("".concat(this._className,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(a.ID))),this._groupModule.getModule(po).pushIntoNoticeResult(i,a)&&(n?c.unreadCount++:a.setIsRead(!0),c.subType=a.conversationSubType);}return c.lastMessage=i[i.length-1],{eventDataList:i.length>0?[c]:[],result:i};}},{key:"_clearGroupSystemNotice",value:function value(){var e=this;this.getPendencyList().then(function(t){t.forEach(function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t);});var o=e._groupModule.getModule(po).getLocalMessageList(D.CONV_SYSTEM),n=[];o.forEach(function(t){var o=t.payload,a=o.operatorID,s=o.operationType,r=o.groupProfile;if(s===xs){var i="".concat(a,"_").concat(r.groupID,"_").concat(r.to),c=e.pendencyMap.get(i);c&&$e(c.handled)&&0!==c.handled&&n.push(t);}}),e.deleteGroupSystemNotice({messageList:n});});}},{key:"deleteGroupSystemNotice",value:function value(e){var t=this,o="".concat(this._className,".deleteGroupSystemNotice");return Qe(e.messageList)&&0!==e.messageList.length?(be.log("".concat(o," ")+e.messageList.map(function(e){return e.ID;})),this._groupModule.request({protocolName:Gn,requestData:{messageListToDelete:e.messageList.map(function(e){return{from:D.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random};})}}).then(function(){be.log("".concat(o," ok"));var n=t._groupModule.getModule(po);return e.messageList.forEach(function(e){n.deleteLocalMessage(e);}),as();}).catch(function(e){return be.error("".concat(o," error:"),e),gs(e);})):_s();}},{key:"getPendencyList",value:function value(e){var t=this;return this._groupModule.request({protocolName:kn,requestData:{startTime:e&&e.startTime?e.startTime:0,limit:e&&e.limit?e.limit:10,handleAccount:this._groupModule.getMyUserID()}}).then(function(e){var o=e.data.pendencyList;return 0!==e.data.nextStartTime?t.getPendencyList({startTime:e.data.nextStartTime}).then(function(e){return[].concat(M(o),M(e));}):o;});}},{key:"_onReceivedGroupSystemNotice",value:function value(e){var t=this,o=e.result;e.isInstantMessage&&o.forEach(function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._groupModule.onAVChatRoomMemberBanned(e);}});}},{key:"_onApplyGroupRequestAgreed",value:function value(e){var t=this,o=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(o)||this._groupModule.getGroupProfile({groupID:o}).then(function(e){var o=e.data.group;if(o){t._groupModule.updateGroupMap([o]);var n=!o.isSupportTopic;t._groupModule.emitGroupListUpdate(!0,n);}});}},{key:"_onMemberKicked",value:function value(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);}},{key:"_onGroupDismissed",value:function value(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var o=this._groupModule._AVChatRoomHandler;o&&o.checkJoinedAVChatRoomByID(t)&&o.reset(t);}},{key:"_onInviteGroup",value:function value(e){var t=this,o=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(o)||this._groupModule.getGroupProfile({groupID:o}).then(function(e){var o=e.data.group;o&&(t._groupModule.updateGroupMap([o]),t._groupModule.emitGroupListUpdate());});}},{key:"_onQuitGroup",value:function value(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);}},{key:"_onSetManager",value:function value(e){var t=e.payload.groupProfile,o=t.to,n=t.groupID,a=this._groupModule.getModule(uo).getLocalGroupMemberInfo(n,o);a&&a.updateRole(D.GRP_MBR_ROLE_ADMIN);}},{key:"_onDeleteManager",value:function value(e){var t=e.payload.groupProfile,o=t.to,n=t.groupID,a=this._groupModule.getModule(uo).getLocalGroupMemberInfo(n,o);a&&a.updateRole(D.GRP_MBR_ROLE_MEMBER);}},{key:"_onMessageRemindTypeSynced",value:function value(e){var t=e.payload.groupProfile.groupID,o=e.payload.messageRemindType;this._groupModule.getModule(po).onGroupMessageRemindTypeSynced({groupID:t,messageRemindType:o});}},{key:"_handleTopicSystemNotice",value:function value(e){var t=e.groupProfile,o=t.groupID,n=t.topicID,a=e.elements,s=a.operationType,r=a.topicIDList,i=a.messageRemindType,c=this._groupModule.getModule(lo);17===s?c.onTopicCreated({groupID:o,topicID:n}):18===s?c.onTopicDeleted({groupID:o,topicIDList:r}):20===s&&c.onTopicMessageRemindTypeUpdated({groupID:o,topicID:n,messageRemindType:i});}},{key:"reset",value:function value(){this.pendencyMap.clear();}}]),e;}(),js=["relayFlag"],$s=function(e){i(a,e);var o=f(a);function a(e){var t;return n(this,a),(t=o.call(this,e))._className="GroupModule",t._commonGroupHandler=null,t._AVChatRoomHandler=null,t._groupSystemNoticeHandler=null,t._commonGroupHandler=new Fs(g(t)),t._groupAttributesHandler=new Vs(g(t)),t._AVChatRoomHandler=new Hs(g(t)),t._groupTipsHandler=new ws(g(t)),t._groupSystemNoticeHandler=new Ys(g(t)),t.groupMap=new Map(),t._unjoinedAVChatRoomList=new Map(),t._receiptDetailCompleteMap=new Map(),t.getInnerEmitterInstance().on(Ms,t._onCloudConfigUpdated,g(t)),t;}return s(a,[{key:"_onCloudConfigUpdated",value:function value(){var e=this.getCloudConfig("polling_interval"),t=this.getCloudConfig("polling_interval_plus"),o=this.getCloudConfig("polling_no_msg_count");this._AVChatRoomHandler&&(be.log("".concat(this._className,"._onCloudConfigUpdated pollingInterval:").concat(e)+" pollingIntervalPlus:".concat(t," pollingNoMessageCount:").concat(o)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(o));}},{key:"onCheckTimer",value:function value(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e));}},{key:"guardForAVChatRoom",value:function value(e){var t=this;if(e.conversationType===D.CONV_GROUP){var o=Tt(e.to)?wt(e.to):e.to;return this.hasLocalGroup(o)?_s():this.getGroupProfile({groupID:o}).then(function(n){var a=n.data.group.type;if(be.log("".concat(t._className,".guardForAVChatRoom. groupID:").concat(o," type:").concat(a)),a===D.GRP_AVCHATROOM){var s="userId:".concat(e.from," 未加入群 groupID:").concat(o,"。发消息前先使用 joinGroup 接口申请加群,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return be.warn("".concat(t._className,".guardForAVChatRoom sendMessage not allowed. ").concat(s)),gs(new ls({code:Ca.MESSAGE_SEND_FAIL,message:s,data:{message:e}}));}return _s();});}return _s();}},{key:"checkJoinedAVChatRoomByID",value:function value(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e);}},{key:"onNewGroupMessage",value:function value(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e);}},{key:"updateNextMessageSeq",value:function value(e){var t=this;if(Qe(e)){var o=this.getModule(lo);e.forEach(function(e){var n=e.conversationID.replace(D.CONV_GROUP,"");if(Tt(n)){var a=n,s=e.lastMessage.sequence+1;n=wt(a);var r=o.getLocalTopic(n,a);r&&(r.updateNextMessageSeq(s),r.updateLastMessage(e.lastMessage));}t.groupMap.has(n)&&(t.groupMap.get(n).nextMessageSeq=e.lastMessage.sequence+1);});}}},{key:"onNewGroupTips",value:function value(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e);}},{key:"onGroupMessageRevoked",value:function value(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e);}},{key:"onNewGroupSystemNotice",value:function value(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e);}},{key:"onGroupMessageReadNotice",value:function value(e){var t=this;e.dataList.forEach(function(e){var o=e.elements.groupMessageReadNotice;if(!Ze(o)){var n=t.getModule(po);o.forEach(function(e){var o=e.groupID,a=e.topicID,s=void 0===a?void 0:a,r=e.lastMessageSeq;be.debug("".concat(t._className,".onGroupMessageReadNotice groupID:").concat(o," lastMessageSeq:").concat(r));var i="".concat(D.CONV_GROUP).concat(o),c=!0;Kt(s)||(i="".concat(D.CONV_GROUP).concat(s),c=!1),n.updateIsReadAfterReadReport({conversationID:i,lastMessageSeq:r}),n.updateUnreadCount(i,c),n.clearGroupAtInfoList(i,c);});}});}},{key:"onReadReceiptList",value:function value(e){var t=this;be.debug("".concat(this._className,".onReadReceiptList options:"),JSON.stringify(e)),e.dataList.forEach(function(e){var o=e.groupProfile,n=e.elements,a=o.groupID,s=t.getModule(po),r=n.readReceiptList;s.updateReadReceiptInfo({groupID:a,readReceiptList:r});});}},{key:"onGroupMessageModified",value:function value(e){be.debug("".concat(this._className,".onGroupMessageModified options:"),JSON.stringify(e));var o=this.getModule(po);e.dataList.forEach(function(e){o.onMessageModified(t(t({},e),{},{conversationType:D.CONV_GROUP,to:e.topicID?e.topicID:e.groupID}));});}},{key:"deleteGroupSystemNotice",value:function value(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e);}},{key:"initGroupMap",value:function value(e){this.groupMap.set(e.groupID,new Ls(e));}},{key:"deleteGroup",value:function value(e){this.groupMap.delete(e);}},{key:"updateGroupMap",value:function value(e){var t,o=this,n=this.getModule(po);e.forEach(function(e){t=e.groupID,o.groupMap.has(t)?o.groupMap.get(t).updateGroup(e):(o.groupMap.set(t,new Ls(e)),n.deleteGroupRomaingMessageInfo(t));});var a,s=this.getMyUserID(),r=C(this.groupMap);try{for(r.s();!(a=r.n()).done;){m(a.value,2)[1].selfInfo.userID=s;}}catch(i){r.e(i);}finally{r.f();}this._setStorageGroupList();}},{key:"getStorageGroupList",value:function value(){return this.getModule(go).getItem("groupMap");}},{key:"_setStorageGroupList",value:function value(){var e=this.getLocalGroupList().filter(function(e){var t=e.type;return!It(t);}).filter(function(e){return!e.isSupportTopic;}).slice(0,20).map(function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type};});this.getModule(go).setItem("groupMap",e);}},{key:"getGroupMap",value:function value(){return this.groupMap;}},{key:"getLocalGroupList",value:function value(){return M(this.groupMap.values());}},{key:"getLocalGroupProfile",value:function value(e){return this.groupMap.get(e);}},{key:"sortLocalGroupList",value:function value(){var e=M(this.groupMap).filter(function(e){var t=m(e,2);t[0];return!Kt(t[1].lastMessage);});e.sort(function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime;}),this.groupMap=new Map(M(e));}},{key:"updateGroupLastMessage",value:function value(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e);}},{key:"emitGroupListUpdate",value:function value(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.getLocalGroupList();if(e&&this.emitOuterEvent(S.GROUP_LIST_UPDATED),t){var n=JSON.parse(JSON.stringify(o)),a=this.getModule(po);a.updateConversationGroupProfile(n);}}},{key:"patchGroupMessageRemindType",value:function value(){var e=this.getLocalGroupList(),t=this.getModule(po),o=0;e.forEach(function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(o+=1);}),be.log("".concat(this._className,".patchGroupMessageRemindType count:").concat(o));}},{key:"recomputeUnreadCount",value:function value(){var e=this.getLocalGroupList(),t=this.getModule(po);e.forEach(function(e){var o=e.groupID,n=e.selfInfo,a=n.excludedUnreadSequenceList,s=n.readedSequence;if(Qe(a)){var r=0;a.forEach(function(t){t>=s&&t<=e.nextMessageSeq-1&&(r+=1);}),r>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(D.CONV_GROUP).concat(o),count:r});}});}},{key:"getMyNameCardByGroupID",value:function value(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:"";}},{key:"isPagingGetCompleted",value:function value(){return!!this._commonGroupHandler&&this._commonGroupHandler.isPagingGetCompleted();}},{key:"getGroupList",value:function value(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):_s();}},{key:"getGroupProfile",value:function value(e){var t=this,o=new Va(Ba.GET_GROUP_PROFILE),n="".concat(this._className,".getGroupProfile"),a=e.groupID,s=e.groupCustomFieldFilter;be.log("".concat(n," groupID:").concat(a));var r={groupIDList:[a],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:s,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(r).then(function(e){var s,r=e.data,i=r.successGroupList,c=r.failureGroupList;if(be.log("".concat(n," ok")),c.length>0)return gs(c[0]);(It(i[0].type)&&!t.hasLocalGroup(a)?s=new Ls(i[0]):(t.updateGroupMap(i),s=t.getLocalGroupProfile(a)),s.isSupportTopic)||t.getModule(po).updateConversationGroupProfile([s]);return o.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(a," type:").concat(s.type," muteAllMembers:").concat(s.muteAllMembers," ownerID:").concat(s.ownerID)).end(),as({group:s});}).catch(function(a){return t.probeNetwork().then(function(t){var n=m(t,2),s=n[0],r=n[1];o.setError(a,s,r).setMessage("groupID:".concat(e.groupID)).end();}),be.error("".concat(n," failed. error:"),a),gs(a);});}},{key:"getGroupProfileAdvance",value:function value(e){var o=this,n="".concat(this._className,".getGroupProfileAdvance"),a=e.groupIDList;Qe(a)&&a.length>50&&(be.warn("".concat(n," 获取群资料的数量不能超过50个")),a.length=50);var s=[],r=[];a.forEach(function(e){yt({groupID:e})?r.push(e):s.push(e);});var i=[];if(s.length>0){var c=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:s}));i.push(c);}if(r.length>0){var u=this._getGroupProfileAdvance(t(t({},e),{},{groupIDList:r,relayFlag:s.length>0}));i.push(u);}return Promise.all(i).then(function(e){var t=[],o=[];return e.forEach(function(e){t.push.apply(t,M(e.successGroupList)),o.push.apply(o,M(e.failureGroupList));}),as({successGroupList:t,failureGroupList:o});}).catch(function(e){return be.error("".concat(o._className,"._getGroupProfileAdvance failed. error:"),e),gs(e);});}},{key:"_getGroupProfileAdvance",value:function value(e){var t=this,o=e.relayFlag,n=void 0!==o&&o,a=_(e,js);return this.request({protocolName:_n,requestData:a}).then(function(e){be.log("".concat(t._className,"._getGroupProfileAdvance ok."));var o=e.data.groups;return{successGroupList:o.filter(function(e){return Ze(e.errorCode)||0===e.errorCode;}),failureGroupList:o.filter(function(e){return e.errorCode&&0!==e.errorCode;}).map(function(e){return new ls({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}});})};}).catch(function(t){return n&&yt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:gs(t);});}},{key:"createGroup",value:function value(e){var o=this,n="".concat(this._className,".createGroup"),a=e.type,s=e.groupID;if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(a))return gs({code:Ca.ILLEGAL_GROUP_TYPE,message:Sa.ILLEGAL_GROUP_TYPE});if(!yt({type:a})){if(!Kt(s)&&yt({groupID:s}))return gs({code:Ca.ILLEGAL_GROUP_ID,message:Sa.ILLEGAL_GROUP_ID});e.isSupportTopic=void 0;}if(It(a)&&!Ze(e.memberList)&&e.memberList.length>0&&(be.warn("".concat(n," 创建 AVChatRoom 时不能添加群成员,自动忽略该字段")),e.memberList=void 0),vt(a)||Ze(e.joinOption)||(be.warn("".concat(n," 创建 Work/Meeting/AVChatRoom/Community 群时不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),yt({type:a})){if(!Kt(s)&&!yt({groupID:s}))return gs({code:Ca.ILLEGAL_GROUP_ID,message:Sa.ILLEGAL_GROUP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0;}var r=new Va(Ba.CREATE_GROUP);be.log("".concat(n," options:"),e);var i=[];return this.request({protocolName:gn,requestData:t(t({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then(function(a){var s=a.data,c=s.groupID,u=s.overLimitUserIDList,l=void 0===u?[]:u;if(i=l,r.setNetworkType(o.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(c," overLimitUserIDList=").concat(l)).end(),be.log("".concat(n," ok groupID:").concat(c," overLimitUserIDList:"),l),e.type===D.GRP_AVCHATROOM)return o.getGroupProfile({groupID:c});if(e.type===D.GRP_COMMUNITY&&1===e.isSupportTopic)return o.getGroupProfile({groupID:c});Kt(e.memberList)||Kt(l)||(e.memberList=e.memberList.filter(function(e){return-1===l.indexOf(e.userID);})),o.updateGroupMap([t(t({},e),{},{groupID:c})]);var d=o.getModule(ao),p=d.createCustomMessage({to:c,conversationType:D.CONV_GROUP,payload:{data:"group_create",extension:"".concat(o.getMyUserID(),"创建群组")}});return d.sendMessageInstance(p),o.emitGroupListUpdate(),o.getGroupProfile({groupID:c});}).then(function(e){var t=e.data.group,o=t.selfInfo,n=o.nameCard,a=o.joinTime;return t.updateSelfInfo({nameCard:n,joinTime:a,messageRemindType:D.MSG_REMIND_ACPT_AND_NOTE,role:D.GRP_MBR_ROLE_OWNER}),as({group:t,overLimitUserIDList:i});}).catch(function(t){return r.setMessage("groupType:".concat(e.type)),o.probeNetwork().then(function(e){var o=m(e,2),n=o[0],a=o[1];r.setError(t,n,a).end();}),be.error("".concat(n," failed. error:"),t),gs(t);});}},{key:"dismissGroup",value:function value(e){var t=this,o="".concat(this._className,".dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===D.GRP_WORK)return gs(new ls({code:Ca.CANNOT_DISMISS_WORK,message:Sa.CANNOT_DISMISS_WORK}));var n=new Va(Ba.DISMISS_GROUP);return n.setMessage("groupID:".concat(e)),be.log("".concat(o," groupID:").concat(e)),this.request({protocolName:hn,requestData:{groupID:e}}).then(function(){return n.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),as({groupID:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"updateGroupProfile",value:function value(e){var t=this,o="".concat(this._className,".updateGroupProfile");!this.hasLocalGroup(e.groupID)||vt(this.getLocalGroupProfile(e.groupID).type)||Ze(e.joinOption)||(be.warn("".concat(o," Work/Meeting/AVChatRoom/Community 群不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),Ze(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off");var n=new Va(Ba.UPDATE_GROUP_PROFILE);return n.setMessage(JSON.stringify(e)),be.log("".concat(o," groupID:").concat(e.groupID)),this.request({protocolName:fn,requestData:e}).then(function(){(n.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok")),t.hasLocalGroup(e.groupID))&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList());return as({group:t.groupMap.get(e.groupID)});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.log("".concat(o," failed. error:"),e),gs(e);});}},{key:"joinGroup",value:function value(e){var t=this,o=e.groupID,n=e.type,a="".concat(this._className,".joinGroup");if(n===D.GRP_WORK){var s=new ls({code:Ca.CANNOT_JOIN_WORK,message:Sa.CANNOT_JOIN_WORK});return gs(s);}if(this.deleteUnjoinedAVChatRoom(o),this.hasLocalGroup(o)){if(!this.isLoggedIn())return _s({status:D.JOIN_STATUS_ALREADY_IN_GROUP});var r=new Va(Ba.APPLY_JOIN_GROUP);return this.getGroupProfile({groupID:o}).then(function(){return r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," joinedStatus:").concat(D.JOIN_STATUS_ALREADY_IN_GROUP)).end(),_s({status:D.JOIN_STATUS_ALREADY_IN_GROUP});}).catch(function(n){return r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," unjoined")).end(),be.warn("".concat(a," ").concat(o," was unjoined, now join!")),t.groupMap.delete(o),t.applyJoinGroup(e);});}return be.log("".concat(a," groupID:").concat(o)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e);}},{key:"applyJoinGroup",value:function value(e){var o=this,n="".concat(this._className,".applyJoinGroup"),a=e.groupID,s=new Va(Ba.APPLY_JOIN_GROUP),r=t({},e),i=this.canIUse(H.AVCHATROOM_HISTORY_MSG);return i&&(r.historyMessageFlag=1),this.getModule(po).deleteTopicRoamingMessageInfo(a),this.request({protocolName:mn,requestData:r}).then(function(e){var t=e.data,r=t.joinedStatus,c=t.longPollingKey,u=t.startSeq,l=t.avChatRoomFlag,d=t.avChatRoomKey,p=t.messageList,_="groupID:".concat(a," joinedStatus:").concat(r," longPollingKey:").concat(c," startSeq:").concat(u)+" avChatRoomFlag:".concat(l," canGetAVChatRoomHistoryMessage:").concat(i,",")+" history message count:".concat(Kt(p)?0:p.length);switch(s.setNetworkType(o.getNetworkType()).setMessage("".concat(_)).end(),be.log("".concat(n," ok. ").concat(_)),r){case He:return as({status:He});case Ke:return o.getGroupProfile({groupID:a}).then(function(e){var t,n=e.data.group,s={status:Ke,group:n};return 1===l?(o.getModule(po).setCompleted("".concat(D.CONV_GROUP).concat(a)),o._groupAttributesHandler.initGroupAttributesCache({groupID:a,avChatRoomKey:d}),(t=Ze(c)?o._AVChatRoomHandler.handleJoinResult({group:n}):o._AVChatRoomHandler.startRunLoop({longPollingKey:c,group:n,startSeq:u})).then(function(){o._onAVChatRoomHistoryMessage(p);}),t):(o.emitGroupListUpdate(!0,!1),as(s));});default:var g=new ls({code:Ca.JOIN_GROUP_FAIL,message:Sa.JOIN_GROUP_FAIL});return be.error("".concat(n," error:"),g),gs(g);}}).catch(function(t){return s.setMessage("groupID:".concat(e.groupID)),o.probeNetwork().then(function(e){var o=m(e,2),n=o[0],a=o[1];s.setError(t,n,a).end();}),be.error("".concat(n," error:"),t),gs(t);});}},{key:"quitGroup",value:function value(e){var t=this,o="".concat(this._className,".quitGroup");be.log("".concat(o," groupID:").concat(e));var n=this.checkJoinedAVChatRoomByID(e);if(!n&&!this.hasLocalGroup(e)){var a=new ls({code:Ca.MEMBER_NOT_IN_GROUP,message:Sa.MEMBER_NOT_IN_GROUP});return gs(a);}if(n&&!this.isLoggedIn())return be.log("".concat(o," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),_s({groupID:e});var s=new Va(Ba.QUIT_GROUP);return s.setMessage("groupID:".concat(e)),this.request({protocolName:vn,requestData:{groupID:e}}).then(function(){return s.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok")),t.deleteLocalGroupAndConversation(e),n&&t._AVChatRoomHandler.reset(e),as({groupID:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"searchGroupByID",value:function value(e){var t=this,o="".concat(this._className,".searchGroupByID"),n={groupIDList:[e]},a=new Va(Ba.SEARCH_GROUP_BY_ID);return a.setMessage("groupID:".concat(e)),be.log("".concat(o," groupID:").concat(e)),this.request({protocolName:In,requestData:n}).then(function(e){var n=e.data.groupProfile;if(0!==n[0].errorCode)throw new ls({code:n[0].errorCode,message:n[0].errorInfo});return a.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok")),as({group:new Ls(n[0])});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];a.setError(e,n,s).end();}),be.warn("".concat(o," failed. error:"),e),gs(e);});}},{key:"changeGroupOwner",value:function value(e){var t=this,o="".concat(this._className,".changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===D.GRP_AVCHATROOM)return gs(new ls({code:Ca.CANNOT_CHANGE_OWNER_IN_AVCHATROOM,message:Sa.CANNOT_CHANGE_OWNER_IN_AVCHATROOM}));if(e.newOwnerID===this.getMyUserID())return gs(new ls({code:Ca.CANNOT_CHANGE_OWNER_TO_SELF,message:Sa.CANNOT_CHANGE_OWNER_TO_SELF}));var n=new Va(Ba.CHANGE_GROUP_OWNER);return n.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),be.log("".concat(o," groupID:").concat(e.groupID)),this.request({protocolName:yn,requestData:e}).then(function(){n.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok"));var a=e.groupID,s=e.newOwnerID;t.groupMap.get(a).ownerID=s;var r=t.getModule(uo).getLocalGroupMemberList(a);if(r instanceof Map){var i=r.get(t.getMyUserID());Ze(i)||(i.updateRole("Member"),t.groupMap.get(a).selfInfo.role="Member");var c=r.get(s);Ze(c)||c.updateRole("Owner");}return t.emitGroupListUpdate(!0,!1),as({group:t.groupMap.get(a)});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"handleGroupApplication",value:function value(e){var o=this,n="".concat(this._className,".handleGroupApplication"),a=e.message.payload,s=a.groupProfile.groupID,r=a.authentication,i=a.messageKey,c=a.operatorID,u=new Va(Ba.HANDLE_GROUP_APPLICATION);return u.setMessage("groupID:".concat(s)),be.log("".concat(n," groupID:").concat(s)),this.request({protocolName:Tn,requestData:t(t({},e),{},{applicant:c,groupID:s,authentication:r,messageKey:i})}).then(function(){return u.setNetworkType(o.getNetworkType()).end(),be.log("".concat(n," ok")),o._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),as({group:o.getLocalGroupProfile(s)});}).catch(function(e){return o.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];u.setError(e,n,a).end();}),be.error("".concat(n," failed. error"),e),gs(e);});}},{key:"handleGroupInvitation",value:function value(e){var o=this,n="".concat(this._className,".handleGroupInvitation"),a=e.message.payload,s=a.groupProfile.groupID,r=a.authentication,i=a.messageKey,c=a.operatorID,u=e.handleAction,l=new Va(Ba.HANDLE_GROUP_INVITATION);return l.setMessage("groupID:".concat(s," inviter:").concat(c," handleAction:").concat(u)),be.log("".concat(n," groupID:").concat(s," inviter:").concat(c," handleAction:").concat(u)),this.request({protocolName:En,requestData:t(t({},e),{},{inviter:c,groupID:s,authentication:r,messageKey:i})}).then(function(){return l.setNetworkType(o.getNetworkType()).end(),be.log("".concat(n," ok")),o._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),as({group:o.getLocalGroupProfile(s)});}).catch(function(e){return o.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];l.setError(e,n,a).end();}),be.error("".concat(n," failed. error"),e),gs(e);});}},{key:"getGroupOnlineMemberCount",value:function value(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):_s({memberCount:0}):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"hasLocalGroup",value:function value(e){return this.groupMap.has(e);}},{key:"deleteLocalGroupAndConversation",value:function value(e){var t=this.checkJoinedAVChatRoomByID(e);(be.log("".concat(this._className,".deleteLocalGroupAndConversation isJoinedAVChatRoom:").concat(t)),t)&&this.getModule(po).deleteLocalConversation("".concat(D.CONV_GROUP).concat(e));if(yt({groupID:e})){var o=this.getLocalGroupProfile(e);if(o&&!0===o.isSupportTopic)this.getModule(lo).deleteTopicListInCommunity(e);}this._deleteLocalGroup(e),this.emitGroupListUpdate(!0,!1);}},{key:"_deleteLocalGroup",value:function value(e){this.groupMap.delete(e),this.getModule(uo).deleteGroupMemberList(e),this._setStorageGroupList();}},{key:"sendMessage",value:function value(e,t){var o=this.createGroupMessagePack(e,t);return this.request(o);}},{key:"createGroupMessagePack",value:function value(e,t){var o=null;t&&t.offlinePushInfo&&(o=t.offlinePushInfo);var n="";ze(e.cloudCustomData)&&e.cloudCustomData.length>0&&(n=e.cloudCustomData);var a=[];if(Xe(t)&&Xe(t.messageControlInfo)){var s=t.messageControlInfo,r=s.excludedFromUnreadCount,i=s.excludedFromLastMessage;!0===r&&a.push("NoUnread"),!0===i&&a.push("NoLastMsg");}var c=e.getGroupAtInfoList(),u={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:n,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==D.MSG_TEXT||Kt(c)?void 0:c,onlineOnlyFlag:this.isOnlineMessage(e,t)?1:0,clientTime:e.clientTime,offlinePushInfo:o?{pushFlag:!0===o.disablePush?1:0,title:o.title||"",desc:o.description||"",ext:o.extension||"",apnsInfo:{badgeMode:!0===o.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:o.androidOPPOChannelID||""}}:void 0,messageControlInfo:a,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1};return Tt(e.to)&&(u.groupID=wt(e.to),u.topicID=e.to),{protocolName:Fo,tjgID:this.generateTjgID(e),requestData:u};}},{key:"revokeMessage",value:function value(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return Tt(e.to)&&(t.groupID=wt(e.to),t.topicID=e.to),this.request({protocolName:Cn,requestData:t});}},{key:"deleteMessage",value:function value(e){var t=e.to,o=e.keyList;be.log("".concat(this._className,".deleteMessage groupID:").concat(t," count:").concat(o.length));var n={groupID:t,deleter:this.getMyUserID(),keyList:o};return Tt(t)&&(n.groupID=wt(t),n.topicID=t),this.request({protocolName:wn,requestData:n});}},{key:"modifyRemoteMessage",value:function value(e){var t=e.to,o=e.sequence,n=e.payload,a=e.type,s=e.version,r=void 0===s?0:s,i=e.cloudCustomData,c=t,u=void 0;Tt(t)&&(c=wt(t),u=t);var l=void 0;return qt(a)&&(l=[]).push({type:a,content:n}),this.request({protocolName:Fn,requestData:{groupID:c,topicID:u,sequence:o,version:r,elements:l,cloudCustomData:i}});}},{key:"getRoamingMessage",value:function value(e){var t=this,o="".concat(this._className,".getRoamingMessage"),n=e.conversationID,a=e.groupID,s=e.sequence,r=new Va(Ba.GET_GROUP_ROAMING_MESSAGES),i=0,c=void 0;return Tt(a)&&(a=wt(c=a)),this._computeLastSequence({groupID:a,topicID:c,sequence:s}).then(function(e){return i=e,be.log("".concat(o," groupID:").concat(a," startSequence:").concat(i)),t.request({protocolName:Nn,requestData:{groupID:a,count:21,sequence:i,topicID:c}});}).then(function(e){var s=e.data,u=s.messageList,l=s.complete;Ze(u)?be.log("".concat(o," ok. complete:").concat(l," but messageList is undefined!")):be.log("".concat(o," ok. complete:").concat(l," count:").concat(u.length)),r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(a," topicID:").concat(c," startSequence:").concat(i," complete:").concat(l," count:").concat(u?u.length:"undefined")).end();var d=t.getModule(po);if(2===l||Kt(u))return d.setCompleted(n),{nextReqID:"",storedMessageList:[]};var p=u[u.length-1].sequence-1;d.updateRoamingMessageSequence(n,p);var _=d.onRoamingMessage(u,n);return d.updateIsRead(n),d.patchConversationLastMessage(n),be.log("".concat(o," nextReqID:").concat(p," stored message count:").concat(_.length)),{nextReqID:p+"",storedMessageList:_};}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];r.setError(e,n,s).setMessage("groupID:".concat(a," topicID:").concat(c," startSequence:").concat(i)).end();}),be.warn("".concat(o," failed. error:"),e),gs(e);});}},{key:"_getGroupIDOfMessage",value:function value(e){return e.conversationID.replace(D.CONV_GROUP,"");}},{key:"getReadReceiptList",value:function value(e){var t=this,o="".concat(this._className,".getReadReceiptList"),n=this._getGroupIDOfMessage(e[0]),a=this.getMyUserID(),s=e.filter(function(e){return e.from===a&&!0===e.needReadReceipt;}).map(function(e){return{sequence:e.sequence};});if(be.log("".concat(o," groupID:").concat(n," sequenceList:").concat(JSON.stringify(s))),0===s.length)return _s({messageList:e});var r=new Va(Ba.GET_READ_RECEIPT);return r.setMessage("groupID:".concat(n)),this.request({protocolName:An,requestData:{groupID:n,sequenceList:s}}).then(function(t){r.end(),be.log("".concat(o," ok"));var n=t.data.readReceiptList;return Qe(n)&&n.forEach(function(t){e.forEach(function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount);});}),as({messageList:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.warn("".concat(o," failed. error:"),e),gs(e);});}},{key:"sendReadReceipt",value:function value(e){var t=this,o=this._getGroupIDOfMessage(e[0]),n=new Va(Ba.SEND_READ_RECEIPT);n.setMessage("groupID:".concat(o));var a=this.getMyUserID(),s=e.filter(function(e){return e.from!==a&&!0===e.needReadReceipt;}).map(function(e){return{sequence:e.sequence};});if(0===s.length)return gs({code:Ca.READ_RECEIPT_MESSAGE_LIST_EMPTY,message:Sa.READ_RECEIPT_MESSAGE_LIST_EMPTY});var r="".concat(this._className,".sendReadReceipt");return be.log("".concat(r,". sequenceList:").concat(JSON.stringify(s))),this.request({protocolName:On,requestData:{groupID:o,sequenceList:s}}).then(function(e){return n.end(),be.log("".concat(r," ok")),as();}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.warn("".concat(r," failed. error:"),e),gs(e);});}},{key:"getReadReceiptDetail",value:function value(e){var t=this,o=e.message,n=e.filter,a=e.cursor,s=e.count,r=this._getGroupIDOfMessage(o),i=o.ID,c=o.sequence,u="".concat(this._className,".getReadReceiptDetail"),l=this._receiptDetailCompleteMap.get(i)||!1,d=0!==n&&1!==n?0:n,p=ze(a)?a:"",_=!$e(s)||s<=0||s>=100?100:s,g="groupID:".concat(r," sequence:").concat(c," cursor:").concat(p," filter:").concat(d," completeFlag:").concat(l);be.log("".concat(u," ").concat(g));var h={cursor:"",isCompleted:!1,messageID:i,unreadUserIDList:[],readUserIDList:[]},f=new Va(Ba.GET_READ_RECEIPT_DETAIL);return f.setMessage(g),this.request({protocolName:Ln,requestData:{groupID:r,sequence:c,flag:d,cursor:p,count:_}}).then(function(e){f.end();var o=e.data,n=o.cursor,a=o.isCompleted,s=o.unreadUserIDList,r=o.readUserIDList;return h.cursor=n,1===a&&(h.isCompleted=!0,t._receiptDetailCompleteMap.set(i,!0)),0===d?h.readUserIDList=r.map(function(e){return e.userID;}):1===d&&(h.unreadUserIDList=s.map(function(e){return e.userID;})),be.log("".concat(u," ok")),as(h);}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];f.setError(e,n,a).end();}),be.warn("".concat(u," failed. error:"),e),gs(e);});}},{key:"getRoamingMessagesHopping",value:function value(e){var t=this,o="".concat(this._className,".getRoamingMessagesHopping"),n=new Va(Ba.GET_GROUP_ROAMING_MESSAGES_HOPPING),a=e.groupID,s=e.count,r=e.sequence,i=e.direction,c=r;1===i&&(c=r+s-1);var u=void 0;Tt(a)&&(a=wt(u=a));var l="".concat(u?"topicID:".concat(u):"groupID:".concat(a)," sequence:").concat(r," direction:").concat(i);return be.log("".concat(o," ").concat(l)),this.request({protocolName:Nn,requestData:{groupID:a,topicID:u,count:s,sequence:c}}).then(function(a){var s=a.data,c=s.messageList,d=s.complete;if(be.log("".concat(o," ok. complete:").concat(d," count:").concat(c?c.length:0)),n.setNetworkType(t.getNetworkType()).setMessage("".concat(l," complete:").concat(d," count:").concat(c?c.length:0)).end(),2===d||Kt(c)){var p=t._computeResult();return as(p);}var _="".concat(D.CONV_GROUP).concat(e.groupID),g=t.getModule(po).onRoamingMessage(c,_,!1),h=t._computeResult({direction:i,sequence:r,topicID:u,messageList:c,resultList:g});return as(h);}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),i=o[0],c=o[1];n.setError(e,i,c).setMessage("groupID:".concat(a," sequence:").concat(r," count:").concat(s)).end();}),be.warn("".concat(o," failed. error:"),e),gs(e);});}},{key:"_computeResult",value:function value(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:""};if(Ze(e))return t.isCompleted=!0,t;var o=e.direction,n=e.sequence,a=e.topicID,s=e.messageList,r=void 0===s?[]:s,i=e.resultList,c=void 0===i?[]:i,u=r.length;if(1===o){if(t.nextMessageSeq=r[0].sequence+1,!Ze(a)){var l=c.findIndex(function(e){return e.sequence===n;});if(-1===l){var d=c.length;return 0===d?r[0].sequence<n&&(t.isCompleted=!0,t.nextMessageSeq=""):c[d-1].sequence<n?(t.isCompleted=!0,t.nextMessageSeq=""):t.messageList=M(c),t;}return t.messageList=c.slice(l),t;}return t.messageList=M(c),t;}return t.nextMessageSeq=r[u-1].sequence-1,t.messageList=M(c),0===t.nextMessageSeq&&(t.isCompleted=!0,t.nextMessageSeq=""),t;}},{key:"setMessageRead",value:function value(e){var t=this,o=e.conversationID,n=e.lastMessageSeq,a="".concat(this._className,".setMessageRead");be.log("".concat(a," conversationID:").concat(o," lastMessageSeq:").concat(n)),$e(n)||be.warn("".concat(a," 请勿修改 Conversation.lastMessage.lastSequence,否则可能会导致已读上报结果不准确"));var s=new Va(Ba.SET_GROUP_MESSAGE_READ);s.setMessage("".concat(o,"-").concat(n));var r=o.replace(D.CONV_GROUP,""),i=void 0;return Tt(r)&&(r=wt(i=r)),this.request({protocolName:Sn,requestData:{groupID:r,topicID:i,messageReadSeq:n}}).then(function(){s.setNetworkType(t.getNetworkType()).end(),be.log("".concat(a," ok."));var e=t.getModule(po);e.updateIsReadAfterReadReport({conversationID:o,lastMessageSeq:n});var c=!0;if(!Ze(i)){c=!1;var u=t.getModule(lo).getLocalTopic(r,i);u&&u.updateSelfInfo({readedSequence:n});}return e.updateUnreadCount(o,c),as();}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.log("".concat(a," failed. error:"),e),gs(e);});}},{key:"_computeLastSequence",value:function value(e){var t=e.groupID,o=e.topicID,n=void 0===o?void 0:o,a=e.sequence;return a>0?Promise.resolve(a):Ze(n)||this.hasLocalGroup(t)?Ze(n)?this.getGroupLastSequence(t):this.getTopicLastSequence({groupID:t,topicID:n}):Promise.resolve(0);}},{key:"getGroupLastSequence",value:function value(e){var t=this,o="".concat(this._className,".getGroupLastSequence"),n=new Va(Ba.GET_GROUP_LAST_SEQUENCE),a=0,s="";if(this.hasLocalGroup(e)){var r=this.getLocalGroupProfile(e),i=r.lastMessage;if(i.lastSequence>0&&!1===i.onlineOnlyFlag)return a=i.lastSequence,s="got lastSequence:".concat(a," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),be.log("".concat(o," ").concat(s)),n.setNetworkType(this.getNetworkType()).setMessage("".concat(s)).end(),Promise.resolve(a);if(r.nextMessageSeq>1)return a=r.nextMessageSeq-1,s="got lastSequence:".concat(a," from local group profile[nextMessageSeq]. groupID:").concat(e),be.log("".concat(o," ").concat(s)),n.setNetworkType(this.getNetworkType()).setMessage("".concat(s)).end(),Promise.resolve(a);}var c="GROUP".concat(e),u=this.getModule(po).getLocalConversation(c);if(u&&u.lastMessage.lastSequence&&!1===u.lastMessage.onlineOnlyFlag)return a=u.lastMessage.lastSequence,s="got lastSequence:".concat(a," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),be.log("".concat(o," ").concat(s)),n.setNetworkType(this.getNetworkType()).setMessage("".concat(s)).end(),Promise.resolve(a);var l={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(l).then(function(r){var i=r.data.successGroupList;return Kt(i)?be.log("".concat(o," successGroupList is empty. groupID:").concat(e)):(a=i[0].nextMessageSeq-1,s="got lastSequence:".concat(a," from getGroupProfileAdvance. groupID:").concat(e),be.log("".concat(o," ").concat(s))),n.setNetworkType(t.getNetworkType()).setMessage("".concat(s)).end(),a;}).catch(function(a){return t.probeNetwork().then(function(t){var o=m(t,2),s=o[0],r=o[1];n.setError(a,s,r).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end();}),be.warn("".concat(o," failed. error:"),a),gs(a);});}},{key:"getTopicLastSequence",value:function value(e){var t=this,o=e.groupID,n=e.topicID,a="".concat(this._className,".getTopicLastSequence"),s=new Va(Ba.GET_TOPIC_LAST_SEQUENCE),r=0,i="",c=this.getModule(lo);return c.hasLocalTopic(o,n)?(r=c.getLocalTopic(o,n).nextMessageSeq-1,i="get lastSequence:".concat(r," from local topic info[nextMessageSeq]. topicID:").concat(n),be.log("".concat(a," ").concat(i)),s.setNetworkType(this.getNetworkType()).setMessage("".concat(i)).end(),Promise.resolve(r)):c.getTopicList({groupID:o,topicIDList:[n]}).then(function(e){var o=e.data.successTopicList;return Kt(o)?be.log("".concat(a," successTopicList is empty. topicID:").concat(n)):(r=o[0].nextMessageSeq-1,i="get lastSequence:".concat(r," from getTopicList. topicID:").concat(n),be.log("".concat(a," ").concat(i))),s.setNetworkType(t.getNetworkType()).setMessage("".concat(i)).end(),r;}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),a=o[0],r=o[1];s.setError(e,a,r).setMessage("get lastSequence failed from getTopicList. topicID:".concat(n)).end();}),be.warn("".concat(a," failed. error:"),e),gs(e);});}},{key:"isMessageFromOrToAVChatroom",value:function value(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e);}},{key:"hasJoinedAVChatRoom",value:function value(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0;}},{key:"getJoinedAVChatRoom",value:function value(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[];}},{key:"isOnlineMessage",value:function value(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly);}},{key:"_canIUseOnlineOnlyFlag",value:function value(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==D.CONV_GROUP;}},{key:"_onAVChatRoomHistoryMessage",value:function value(e){if(!Kt(e)){be.log("".concat(this._className,"._onAVChatRoomHistoryMessage count:").concat(e.length));var o=[];e.forEach(function(e){o.push(t(t({},e),{},{isHistoryMessage:1}));}),this.onAVChatRoomMessage(o);}}},{key:"onAVChatRoomMessage",value:function value(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e);}},{key:"onAVChatRoomMemberBanned",value:function value(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onAVChatRoomMemberBanned(e);}},{key:"getGroupSimplifiedInfo",value:function value(e){var t=this,o=new Va(Ba.GET_GROUP_SIMPLIFIED_INFO),n={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(n).then(function(n){var a=n.data.successGroupList;return o.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(a[0].type)).end(),a[0];}).catch(function(n){t.probeNetwork().then(function(t){var a=m(t,2),s=a[0],r=a[1];o.setError(n,s,r).setMessage("groupID:".concat(e)).end();});});}},{key:"setUnjoinedAVChatRoom",value:function value(e){this._unjoinedAVChatRoomList.set(e,1);}},{key:"deleteUnjoinedAVChatRoom",value:function value(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e);}},{key:"isUnjoinedAVChatRoom",value:function value(e){return this._unjoinedAVChatRoomList.has(e);}},{key:"onGroupAttributesUpdated",value:function value(e){this._groupAttributesHandler&&this._groupAttributesHandler.onGroupAttributesUpdated(e);}},{key:"updateLocalMainSequenceOnReconnected",value:function value(){this._groupAttributesHandler&&this._groupAttributesHandler.updateLocalMainSequenceOnReconnected();}},{key:"initGroupAttributes",value:function value(e){return this._groupAttributesHandler.initGroupAttributes(e);}},{key:"setGroupAttributes",value:function value(e){return this._groupAttributesHandler.setGroupAttributes(e);}},{key:"deleteGroupAttributes",value:function value(e){return this._groupAttributesHandler.deleteGroupAttributes(e);}},{key:"getGroupAttributes",value:function value(e){return this._groupAttributesHandler.getGroupAttributes(e);}},{key:"reset",value:function value(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset();}}]),a;}(Ro),zs=function(){function e(t){n(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t);}return s(e,[{key:"_initMember",value:function value(e){this.updateMember(e);}},{key:"updateMember",value:function value(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&Mt(this.memberCustomField,e.memberCustomField),ct(this,e,["memberCustomField"],t);}},{key:"updateRole",value:function value(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e);}},{key:"updateMuteUntil",value:function value(e){Ze(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3));}},{key:"updateNameCard",value:function value(e){Ze(e)||(this.nameCard=e);}},{key:"updateMemberCustomField",value:function value(e){e&&Mt(this.memberCustomField,e);}}]),e;}(),Js=function(e){i(a,e);var o=f(a);function a(e){var t;return n(this,a),(t=o.call(this,e))._className="GroupMemberModule",t.groupMemberListMap=new Map(),t.getInnerEmitterInstance().on(vs,t._onProfileUpdated,g(t)),t;}return s(a,[{key:"_onProfileUpdated",value:function value(e){for(var t=this,o=e.data,n=function n(e){var n=o[e];t.groupMemberListMap.forEach(function(e){e.has(n.userID)&&e.get(n.userID).updateMember({nick:n.nick,avatar:n.avatar});});},a=0;a<o.length;a++){n(a);}}},{key:"deleteGroupMemberList",value:function value(e){this.groupMemberListMap.delete(e);}},{key:"getGroupMemberList",value:function value(e){var t=this,o=e.groupID,n=e.offset,a=void 0===n?0:n,s=e.count,r=void 0===s?15:s,i="".concat(this._className,".getGroupMemberList"),c=this.getModule(io),u=c.hasLocalGroup(o);if(be.log("".concat(i," groupID:").concat(o," offset:").concat(a," count:").concat(r," hasLocalGroup:").concat(u)),!u)return _s({memberList:[],offset:0});if(c.getLocalGroupProfile(o).type===D.GRP_AVCHATROOM){if(this.canIUse(H.AVCHATROOM_MBR_LIST))return this._getAVChatRoomMemberList({groupID:o,offset:a});be.warn("".concat(i," 从 v2.22.0 起,支持获取直播群在线成员列表,请升级旗舰版套餐且前往 [控制台](https://console.cloud.tencent.com/im) 开启开关。"));}var l=new Va(Ba.GET_GROUP_MEMBER_LIST),d=0,p={groupID:o,limit:r>100?100:r};yt({groupID:o})?p.next="".concat(a):(p.offset=a,d=a+r);var _=[];return this.request({protocolName:xn,requestData:p}).then(function(e){var n=e.data,a=n.members,s=n.memberNum,r=n.next,i=void 0===r?void 0:r;if(Ze(i)||(d=Kt(i)?0:i),!Qe(a)||0===a.length)return d=0,Promise.resolve([]);var c=t.getModule(io);return c.hasLocalGroup(o)&&(c.getLocalGroupProfile(o).memberNum=s),_=t._updateLocalGroupMemberMap(o,a),t.getModule(so).getUserProfile({userIDList:a.map(function(e){return e.userID;}),tagList:[Fe.NICK,Fe.AVATAR]});}).then(function(e){var n=e.data;if(!Qe(n)||0===n.length)return _s({memberList:[],offset:d});var s=n.map(function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar};});return t._updateLocalGroupMemberMap(o,s),_.length<r&&(d=0),l.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," offset:").concat(a," count:").concat(r)).end(),be.log("".concat(i," ok.")),as({memberList:_,offset:d});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];l.setError(e,n,a).end();}),be.error("".concat(i," failed. error:"),e),gs(e);});}},{key:"_getAVChatRoomMemberList",value:function value(e){var t=this,o=e.groupID,n=e.offset,a="".concat(this._className,"._getVChatRoomMemberList"),s=new Va(Ba.GET_AVCHATROOM_MEMBER_LIST);return s.setMessage("groupID:".concat(o," offset:").concat(n)),this.request({protocolName:Wn,requestData:{groupID:o,offset:n}}).then(function(e){var n=e.data,r=n.memberList,i=void 0===r?[]:r,c=n.offset,u=void 0===c?0:c;s.setNetworkType(t.getNetworkType()).end(),be.log("".concat(a," ok, member count:").concat(i.length,", next request timestamp:").concat(u,"."));var l=t._updateLocalGroupMemberMap(o,i);return as({memberList:l,offset:u});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.error("".concat(a," failed. error:"),e),gs(e);});}},{key:"getGroupMemberProfile",value:function value(e){var o=this,n="".concat(this._className,".getGroupMemberProfile"),a=new Va(Ba.GET_GROUP_MEMBER_PROFILE);a.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),be.log("".concat(n," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var s=e.groupID,r=e.userIDList;return this._getGroupMemberProfileAdvance(t(t({},e),{},{userIDList:r})).then(function(e){var t=e.data.members;return Qe(t)&&0!==t.length?(o._updateLocalGroupMemberMap(s,t),o.getModule(so).getUserProfile({userIDList:t.map(function(e){return e.userID;}),tagList:[Fe.NICK,Fe.AVATAR]})):_s([]);}).then(function(e){var t=e.data.map(function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar};});o._updateLocalGroupMemberMap(s,t);var n=r.filter(function(e){return o.hasLocalGroupMember(s,e);}).map(function(e){return o.getLocalGroupMemberInfo(s,e);});return a.setNetworkType(o.getNetworkType()).end(),as({memberList:n});});}},{key:"addGroupMember",value:function value(e){var t=this,o="".concat(this._className,".addGroupMember"),n=e.groupID,a=this.getModule(io).getLocalGroupProfile(n),s=a.type,r=new Va(Ba.ADD_GROUP_MEMBER);if(r.setMessage("groupID:".concat(n," groupType:").concat(s)),It(s)){var i=new ls({code:Ca.CANNOT_ADD_MEMBER_IN_AVCHATROOM,message:Sa.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return r.setCode(Ca.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setError(Sa.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setNetworkType(this.getNetworkType()).end(),gs(i);}return e.userIDList=e.userIDList.map(function(e){return{userID:e};}),be.log("".concat(o," groupID:").concat(n)),this.request({protocolName:jn,requestData:e}).then(function(n){var s=n.data.members;be.log("".concat(o," ok"));var i=s.filter(function(e){return 1===e.result;}).map(function(e){return e.userID;}),c=s.filter(function(e){return 0===e.result;}).map(function(e){return e.userID;}),u=s.filter(function(e){return 2===e.result;}).map(function(e){return e.userID;}),l=s.filter(function(e){return 4===e.result;}).map(function(e){return e.userID;}),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(i,", ")+"failureUserIDList:".concat(c,", ")+"existedUserIDList:".concat(u,", ")+"overLimitUserIDList:".concat(l);return r.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===i.length?as({successUserIDList:i,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l}):(a.memberCount+=i.length,t._updateConversationGroupProfile(a),as({successUserIDList:i,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l,group:a}));}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"deleteGroupMember",value:function value(e){var t=this,o="".concat(this._className,".deleteGroupMember"),n=e.groupID,a=e.userIDList,s=this.getModule(io).getLocalGroupProfile(n);if(Ze(s))return gs({code:Ca.CANNOT_FIND_GROUP,message:Sa.CANNOT_FIND_GROUP});if(It(s.type))return this.canIUse(H.AVCHATROOM_BAN_MBR)?this._banAVChatRoomMember(e):gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var r=new Va(Ba.DELETE_GROUP_MEMBER),i="groupID:".concat(n," ").concat(a.length>5?"userIDList.length:".concat(a.length):"userIDList:".concat(a));return r.setMessage(i),be.log("".concat(o," groupID:").concat(n," userIDList:"),a),this.request({protocolName:$n,requestData:e}).then(function(){return r.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok")),s.memberCount-=1,t._updateConversationGroupProfile(s),t.deleteLocalGroupMembers(n,a),as({group:s,userIDList:a});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"_updateConversationGroupProfile",value:function value(e){this.getModule(po).updateConversationGroupProfile([e]);}},{key:"_banAVChatRoomMember",value:function value(e){var t=this,o="".concat(this._className,"._banAVChatRoomMember"),n=e.groupID,a=e.userIDList,s="groupID:".concat(n," ").concat(a.length>5?"userIDList.length:".concat(a.length):"userIDList:".concat(a)),r=new Va(Ba.BAN_AVCHATROOM_MEMBER);r.setMessage(s),be.log("".concat(o," groupID:").concat(n," userIDList:"),a);var i=this.getModule(io).getLocalGroupProfile(n);return Ze(e.duration)||0===e.duration?gs({code:Ca.BAN_DURATION_INVALID,message:Sa.BAN_DURATION_INVALID}):this.request({protocolName:zn,requestData:e}).then(function(){return r.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok")),t.deleteLocalGroupMembers(n,a),as({group:i,userIDList:a});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"setGroupMemberMuteTime",value:function value(e){var t=this,o=e.groupID,n=e.userID,a=e.muteTime,s="".concat(this._className,".setGroupMemberMuteTime");if(n===this.getMyUserID())return gs(new ls({code:Ca.CANNOT_MUTE_SELF,message:Sa.CANNOT_MUTE_SELF}));be.log("".concat(s," groupID:").concat(o," userID:").concat(n));var r=new Va(Ba.SET_GROUP_MEMBER_MUTE_TIME);return r.setMessage("groupID:".concat(o," userID:").concat(n," muteTime:").concat(a)),this.modifyGroupMemberInfo({groupID:o,userID:n,muteTime:a}).then(function(e){r.setNetworkType(t.getNetworkType()).end(),be.log("".concat(s," ok"));var n=t.getModule(io);return as({group:n.getLocalGroupProfile(o),member:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(s," failed. error:"),e),gs(e);});}},{key:"setGroupMemberRole",value:function value(e){var t=this,o="".concat(this._className,".setGroupMemberRole"),n=e.groupID,a=e.userID,s=e.role,r=this.getModule(io).getLocalGroupProfile(n);if(r.selfInfo.role!==D.GRP_MBR_ROLE_OWNER)return gs({code:Ca.NOT_OWNER,message:Sa.NOT_OWNER});if([D.GRP_WORK,D.GRP_AVCHATROOM].includes(r.type))return gs({code:Ca.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM,message:Sa.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var i=[D.GRP_MBR_ROLE_ADMIN,D.GRP_MBR_ROLE_MEMBER];if(yt({groupID:n})&&i.push(D.GRP_MBR_ROLE_CUSTOM),i.indexOf(s)<0)return gs({code:Ca.INVALID_MEMBER_ROLE,message:Sa.INVALID_MEMBER_ROLE});if(a===this.getMyUserID())return gs({code:Ca.CANNOT_SET_SELF_MEMBER_ROLE,message:Sa.CANNOT_SET_SELF_MEMBER_ROLE});var c=new Va(Ba.SET_GROUP_MEMBER_ROLE);return c.setMessage("groupID:".concat(n," userID:").concat(a," role:").concat(s)),be.log("".concat(o," groupID:").concat(n," userID:").concat(a)),this.modifyGroupMemberInfo({groupID:n,userID:a,role:s}).then(function(e){return c.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok")),as({group:r,member:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];c.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"setGroupMemberNameCard",value:function value(e){var t=this,o="".concat(this._className,".setGroupMemberNameCard"),n=e.groupID,a=e.userID,s=void 0===a?this.getMyUserID():a,r=e.nameCard;be.log("".concat(o," groupID:").concat(n," userID:").concat(s));var i=new Va(Ba.SET_GROUP_MEMBER_NAME_CARD);return i.setMessage("groupID:".concat(n," userID:").concat(s," nameCard:").concat(r)),this.modifyGroupMemberInfo({groupID:n,userID:s,nameCard:r}).then(function(e){be.log("".concat(o," ok")),i.setNetworkType(t.getNetworkType()).end();var a=t.getModule(io).getLocalGroupProfile(n);return s===t.getMyUserID()&&a&&a.setSelfNameCard(r),as({group:a,member:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];i.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"setGroupMemberCustomField",value:function value(e){var t=this,o="".concat(this._className,".setGroupMemberCustomField"),n=e.groupID,a=e.userID,s=void 0===a?this.getMyUserID():a,r=e.memberCustomField;be.log("".concat(o," groupID:").concat(n," userID:").concat(s));var i=new Va(Ba.SET_GROUP_MEMBER_CUSTOM_FIELD);return i.setMessage("groupID:".concat(n," userID:").concat(s," memberCustomField:").concat(JSON.stringify(r))),this.modifyGroupMemberInfo({groupID:n,userID:s,memberCustomField:r}).then(function(e){i.setNetworkType(t.getNetworkType()).end(),be.log("".concat(o," ok"));var a=t.getModule(io).getLocalGroupProfile(n);return as({group:a,member:e});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];i.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"modifyGroupMemberInfo",value:function value(e){var o=this,n=e.groupID,a=e.userID,s=void 0;return Tt(n)&&(n=wt(s=n)),this.request({protocolName:Jn,requestData:t(t({},e),{},{groupID:n,topicID:s})}).then(function(){if(o.hasLocalGroupMember(n,a)){var t=o.getLocalGroupMemberInfo(n,a);return Ze(e.muteTime)||t.updateMuteUntil(e.muteTime),Ze(e.role)||t.updateRole(e.role),Ze(e.nameCard)||t.updateNameCard(e.nameCard),Ze(e.memberCustomField)||t.updateMemberCustomField(e.memberCustomField),t;}return o.getGroupMemberProfile({groupID:n,userIDList:[a]}).then(function(e){return m(e.data.memberList,1)[0];});});}},{key:"_getGroupMemberProfileAdvance",value:function value(e){return this.request({protocolName:Yn,requestData:t(t({},e),{},{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})});}},{key:"_updateLocalGroupMemberMap",value:function value(e,t){var o=this;return Qe(t)&&0!==t.length?t.map(function(t){return o.hasLocalGroupMember(e,t.userID)?o.getLocalGroupMemberInfo(e,t.userID).updateMember(t):o.setLocalGroupMember(e,new zs(t)),o.getLocalGroupMemberInfo(e,t.userID);}):[];}},{key:"deleteLocalGroupMembers",value:function value(e,t){var o=this.groupMemberListMap.get(e);o&&t.forEach(function(e){o.delete(e);});}},{key:"getLocalGroupMemberInfo",value:function value(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null;}},{key:"setLocalGroupMember",value:function value(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var o=new Map().set(t.userID,t);this.groupMemberListMap.set(e,o);}}},{key:"getLocalGroupMemberList",value:function value(e){return this.groupMemberListMap.get(e);}},{key:"hasLocalGroupMember",value:function value(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t);}},{key:"hasLocalGroupMemberMap",value:function value(e){return this.groupMemberListMap.has(e);}},{key:"reset",value:function value(){this.groupMemberListMap.clear();}}]),a;}(Ro),Xs=["topicID","topicName","avatar","introduction","notification","unreadCount","muteAllMembers","customData","groupAtInfoList","nextMessageSeq","selfInfo"],Qs=function Qs(e){return Kt(e)?{lastTime:0,lastSequence:0,fromAccount:"",payload:null,type:"",messageForShow:"",nick:"",version:0,cloudCustomData:"",isRevoked:!1}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",payload:e.payload||null,type:e.type||"",messageForShow:Ft(e.type,e.payload),nick:e.nick||"",version:e.version||0,cloudCustomData:e.cloudCustomData||"",isRevoked:e.isRevoked||!1};},Zs=function(){function e(t){n(this,e),this.topicID="",this.topicName="",this.avatar="",this.introduction="",this.notification="",this.unreadCount=0,this.muteAllMembers=!1,this.customData="",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=Qs(t.lastMessage),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:""},this._initTopic(t);}return s(e,[{key:"_initTopic",value:function value(e){for(var t in e){Xs.indexOf(t)<0||("selfInfo"===t?this.updateSelfInfo(e[t]):this[t]="muteAllMembers"===t?1===e[t]:e[t]);}}},{key:"updateUnreadCount",value:function value(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.unreadCount=e;}},{key:"updateNextMessageSeq",value:function value(e){this.nextMessageSeq=e;}},{key:"updateLastMessage",value:function value(e){this.lastMessage=Qs(e);}},{key:"updateGroupAtInfoList",value:function value(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e));}},{key:"updateTopic",value:function value(e){Ze(e.selfInfo)||this.updateSelfInfo(e.selfInfo),Ze(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),ct(this,e,["groupID","lastMessageTime","selfInfo","muteAllMembers","lastMsg"]);}},{key:"updateSelfInfo",value:function value(e){return 0!==ct(this.selfInfo,e,[],[""]);}},{key:"reduceUnreadCount",value:function value(){return this.unreadCount>=1&&(this.unreadCount-=1,!0);}},{key:"isLastMessageRevoked",value:function value(e){return e.sequence===this.lastMessage.lastSequence;}},{key:"setLastMessageRevoked",value:function value(e){this.lastMessage.isRevoked=e;}}]),e;}(),er=function(e){i(a,e);var o=f(a);function a(e){var t;return n(this,a),(t=o.call(this,e))._className="TopicModule",t._topicMap=new Map(),t._getTopicTimeMap=new Map(),t.TOPIC_CACHE_TIME=300,t.TOPIC_LAST_ACTIVE_TIME=3600,t.getInnerEmitterInstance().on(Ms,t._onCloudConfigUpdated,g(t)),t;}return s(a,[{key:"_onCloudConfigUpdated",value:function value(){var e=this.getCloudConfig("topic_cache_time"),t=this.getCloudConfig("topic_last_active_time");Ze(e)||(this.TOPIC_CACHE_TIME=Number(e)),Ze(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t));}},{key:"onTopicCreated",value:function value(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOuterEvent(S.TOPIC_CREATED,e);}},{key:"onTopicDeleted",value:function value(e){var t=this,o=e.groupID,n=e.topicIDList;(void 0===n?[]:n).forEach(function(e){t._deleteLocalTopic(o,e);}),this.emitOuterEvent(S.TOPIC_DELETED,e);}},{key:"onTopicMessageRemindTypeUpdated",value:function value(e){var t=e.groupID,o=e.topicID,n=e.messageRemindType,a=this.getLocalTopic(t,o);if(a){var s=a.updateSelfInfo({messageRemindType:n});s&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:a}),be.debug("".concat(this._className,".onTopicMessageRemindTypeUpdated topicID:").concat(o)+" messageRemindType:".concat(n," isTopicUpdated:").concat(s));}}},{key:"onTopicProfileUpdated",value:function value(e){var t=e.groupID,o=e.topicID,n=this.getLocalTopic(t,o);n&&(n.updateTopic(e),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:n}));}},{key:"onConversationProxy",value:function value(e){var t=e.topicID,o=e.unreadCount,n=e.groupAtInfoList,a=wt(t),s=this.getLocalTopic(a,t),r=!1;s&&(Ze(o)||s.unreadCount===o||(s.updateUnreadCount(o),r=!0),Ze(n)||(s.updateGroupAtInfoList(n),r=!0)),r&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:a,topic:s});}},{key:"onMessageSent",value:function value(e){var t=e.groupID,o=e.topicID,n=e.lastMessage,a=this.getLocalTopic(t,o);a&&(a.nextMessageSeq+=1,a.updateLastMessage(n),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:a}));}},{key:"onMessageModified",value:function value(e){var t=e.to,o=e.time,n=e.sequence,a=e.elements,s=e.cloudCustomData,r=e.messageVersion,i=wt(t),c=this.getLocalTopic(i,t);if(c){var u=c.lastMessage;be.debug("".concat(this._className,".onMessageModified topicID:").concat(t," lastMessage:"),JSON.stringify(u),"options:",JSON.stringify(e)),u&&(null===u.payload||u.lastTime===o&&u.lastSequence===n&&u.version!==r)&&(u.type=a[0].type,u.payload=a[0].content,u.messageForShow=Ft(u.type,u.payload),u.cloudCustomData=s,u.version=r,u.lastSequence=n,u.lastTime=o,this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:i,topic:c}));}}},{key:"onMessageRevoked",value:function value(e){var t=this;if(0!==e.length){var o=null,n=null,a=!1;e.forEach(function(e){var s=e.to;n=wt(s),(o=t.getLocalTopic(n,s))&&(o.reduceUnreadCount()&&(a=!0),o.isLastMessageRevoked(e)&&(o.setLastMessageRevoked(!0),a=!0));}),a&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:n,topic:o});}}},{key:"getJoinedCommunityList",value:function value(){return this.getModule(io).getGroupList({isGroupWithTopicOnly:!0}).then(function(e){var t=e.data.groupList;return as({groupList:void 0===t?[]:t});}).catch(function(e){return gs(e);});}},{key:"createTopicInCommunity",value:function value(e){var o=this,n="".concat(this._className,".createTopicInCommunity"),a=e.topicID;if(!Ze(a)&&!Tt(a))return gs({code:Ca.ILLEGAL_TOPIC_ID,message:Sa.ILLEGAL_TOPIC_ID});var s=new Va(Ba.CREATE_TOPIC);return this.request({protocolName:_a,requestData:t({},e)}).then(function(a){var r=a.data.topicID;return s.setMessage("topicID:".concat(r)).setNetworkType(o.getNetworkType()).end(),be.log("".concat(n," ok")),o._updateTopicMap([t(t({},e),{},{topicID:r})]),as({topicID:r});}).catch(function(e){return o.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"deleteTopicFromCommunity",value:function value(e){var t=this,o="".concat(this._className,".deleteTopicFromCommunity"),n=e.groupID,a=e.topicIDList,s=void 0===a?[]:a,r=new Va(Ba.DELETE_TOPIC);return r.setMessage("groupID:".concat(n," topicIDList:").concat(s)),this.request({protocolName:ga,requestData:{groupID:n,topicIDList:s}}).then(function(e){var o=e.data.resultList,a=[],s=[];(void 0===o?[]:o).forEach(function(e){var t=e.topicID,o=e.errorCode,n=e.errorInfo;0===o?a.push({topicID:t}):s.push({topicID:t,code:o,message:n});});var i="success count:".concat(a.length,", fail count:").concat(s.length);return r.setMoreMessage("".concat(i)).setNetworkType(t.getNetworkType()).end(),be.log("".concat(i)),a.forEach(function(e){t._deleteLocalTopic(n,e.topicID);}),as({successTopicList:a,failureTopicList:s});}).catch(function(e){return t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"updateTopicProfile",value:function value(e){var o=this,n="".concat(this._className,".updateTopicProfile"),a=new Va(Ba.UPDATE_TOPIC_PROFILE);return a.setMessage("groupID:".concat(e.groupID," topicID:").concat(e.topicID)),be.log("".concat(n," options:"),e),Ze(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?"On":"Off"),this.request({protocolName:ha,requestData:t({},e)}).then(function(){return a.setNetworkType(o.getNetworkType()).end(),be.log("".concat(n," ok")),o._updateTopicMap([e]),as({topic:o.getLocalTopic(e.groupID,e.topicID)});}).catch(function(e){return o.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];a.setError(e,n,s).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"getTopicList",value:function value(e){var o=this,n="".concat(this._className,".getTopicList"),a=e.groupID,s=e.topicIDList,r=void 0===s?[]:s,i=0===r.length,c=new Va(Ba.GET_TOPIC_LIST);if(c.setMessage("groupID:".concat(a)),this._getTopicTimeMap.has(a)){var u=this._getTopicTimeMap.get(a),l=u.isGetAll,d=u.time;if((l||!l&&!i)&&Date.now()-d<1e3*this.TOPIC_CACHE_TIME){var p=this._getLocalTopicList(a,r);if(i||p.length===r.length)return c.setNetworkType(this.getNetworkType()).setMoreMessage("from cache, topic count:".concat(p.length)).end(),be.log("".concat(n," groupID:").concat(a," from cache, topic count:").concat(p.length)),_s({successTopicList:p,failureTopicList:[]});}}return this.request({protocolName:fa,requestData:{groupID:a,topicIDList:r}}).then(function(e){var s=e.data.topicInfoList,r=[],u=[],l=[];(void 0===s?[]:s).forEach(function(e){var o=e.topic,n=e.selfInfo,a=e.errorCode,s=e.errorInfo,i=o.topicID;0===a?(r.push(t(t({},o),{},{selfInfo:n})),u.push(i)):l.push({topicID:i,code:a,message:s});}),o._updateTopicMap(r),o._handleTopicAtInfo(r);var d="success count:".concat(u.length,", fail count:").concat(l.length);c.setNetworkType(o.getNetworkType()).setMoreMessage("".concat(d)).end(),be.log("".concat(n," groupID:").concat(a," from remote, ").concat(d));var p=[];return Kt(u)||(o._getTopicTimeMap.set(a,{time:Date.now(),isGetAll:i}),p=o._getLocalTopicList(a,u)),as({successTopicList:p,failureTopicList:l});}).catch(function(e){return o.probeNetwork(e).then(function(t){var o=m(t,2),n=o[0],a=o[1];c.setError(e,n,a).end();}),be.error("".concat(n," failed. error:"),e),gs(e);});}},{key:"hasLocalTopic",value:function value(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t);}},{key:"getLocalTopic",value:function value(e,t){var o=null;return this._topicMap.has(e)&&(o=this._topicMap.get(e).get(t)),o;}},{key:"_getLocalTopicList",value:function value(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=this._topicMap.get(e),n=[];return o&&(n=M(o.values())),0===t.length?n:n.filter(function(e){return t.includes(e.topicID);});}},{key:"_deleteLocalTopic",value:function value(e,t){this._topicMap.has(e)&&(this._topicMap.get(e).delete(t),be.log("".concat(this._className,"._deleteLocalTopic groupID:").concat(e," topicID:").concat(t)));}},{key:"_updateTopicMap",value:function value(e){var t=this,o=[];(e.forEach(function(e){var n=e.groupID,a=e.topicID,s=null;t._topicMap.has(n)||t._topicMap.set(n,new Map()),t._topicMap.get(n).has(a)?(s=t._topicMap.get(n).get(a)).updateTopic(e):(t._getTopicLastMessage(e),s=new Zs(e),t._topicMap.get(n).set(a,s));var r=s.nextMessageSeq-s.selfInfo.readedSequence-1,i=r>0?r:0;s.updateUnreadCount(i),o.push({conversationID:"".concat(D.CONV_GROUP).concat(a),type:D.CONV_TOPIC,unreadCount:i});}),o.length>0)&&this.getModule(po).updateTopicConversation(o);}},{key:"resetGetTopicTime",value:function value(e){var t=this;Ze(e)?M(this._getTopicTimeMap.keys()).forEach(function(e){t._getTopicTimeMap.set(e,0);}):this._getTopicTimeMap.set(e,0);}},{key:"getTopicListOnReconnected",value:function value(){var e=this,t=M(this._topicMap.keys()),o=[];t.forEach(function(t){var n=[];e._getLocalTopicList(t).forEach(function(t){var o=t.lastMessage.lastTime,a=void 0===o?0:o;Date.now()-1e3*a<1e3*e.TOPIC_LAST_ACTIVE_TIME&&n.push(t.topicID);}),n.length>0&&o.push({groupID:t,topicIDList:n});}),be.log("".concat(this._className,".getTopicListOnReconnected. active community count:").concat(o.length)),this._relayGetTopicList(o);}},{key:"_relayGetTopicList",value:function value(e){var t=this;if(0!==e.length){var o=e.shift(),n=o.topicIDList.length>5?"topicIDList.length:".concat(o.topicIDList.length):"topicIDList:".concat(o.topicIDList),a=new Va(Ba.RELAY_GET_TOPIC_LIST);a.setMessage(n),be.log("".concat(this._className,"._relayGetTopicList. ").concat(n)),this.getTopicList(o).then(function(){a.setNetworkType(t.getNetworkType()).end(),t._relayGetTopicList(e);}).catch(function(o){t.probeNetwork().then(function(e){var t=m(e,2),n=t[0],s=t[1];a.setError(o,n,s).end();}),t._relayGetTopicList(e);});}}},{key:"_handleTopicAtInfo",value:function value(e){var o=this;0!==e.length&&e.forEach(function(e){var n=e.groupID,a=e.topicID,s=e.groupAtInfoList,r=[];Ze(s)||(s.forEach(function(e){r.push(t(t({},e),{},{groupID:n,topicID:a}));}),o.getModule(po).onNewGroupAtTips({dataList:r}));});}},{key:"_getTopicLastMessage",value:function value(e){if(!Ze(e.lastMsg)){var t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:"",nick:e.lastMsg.nick,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData};e.lastMessage=t;}}},{key:"deleteTopicListInCommunity",value:function value(e){var t=this,o=this._getLocalTopicList(e),n=this.getModule(po);o.forEach(function(o){var a=o.topicID;t._deleteLocalTopic(e,a),t._getTopicTimeMap.delete(e),n.deleteLocalConversation("".concat(D.CONV_GROUP).concat(a));});}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600;}}]),a;}(Ro),tr=function(){function e(t){n(this,e),this._userModule=t,this._className="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map(),this.expirationTime=864e5;}return s(e,[{key:"setExpirationTime",value:function value(e){this.expirationTime=e;}},{key:"getUserProfile",value:function value(e){var t=this,o=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),o.length>100&&(be.warn("".concat(this._className,".getUserProfile 获取用户资料人数不能超过100人")),o.length=100);for(var n,a=[],s=[],r=0,i=o.length;r<i;r++){n=o[r],this._userModule.isMyFriend(n)&&this._containsAccount(n)?s.push(this._getProfileFromMap(n)):a.push(n);}if(0===a.length)return _s(s);e.toAccount=a;var c=e.bFromGetMyProfile||!1,u=[];e.toAccount.forEach(function(e){u.push({toAccount:e,standardSequence:0,customSequence:0});}),e.userItem=u;var l=new Va(Ba.GET_USER_PROFILE);return l.setMessage(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o)),this._userModule.request({protocolName:qo,requestData:e}).then(function(e){l.setNetworkType(t._userModule.getNetworkType()).end(),be.info("".concat(t._className,".getUserProfile ok"));var o=t._handleResponse(e).concat(s);return as(c?o[0]:o);}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];l.setError(e,n,a).end();}),be.error("".concat(t._className,".getUserProfile failed. error:"),e),gs(e);});}},{key:"getMyProfile",value:function value(){var e=this._userModule.getMyAccount();if(be.log("".concat(this._className,".getMyProfile myAccount:").concat(e)),this._fillMap(),this._containsAccount(e)){var t=this._getProfileFromMap(e);return be.debug("".concat(this._className,".getMyProfile from cache, myProfile:")+JSON.stringify(t)),_s(t);}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0});}},{key:"_handleResponse",value:function value(e){for(var t,o,n=it.now(),a=e.data.userProfileItem,s=[],r=0,i=a.length;r<i;r++){"@TLS#NOT_FOUND"!==a[r].to&&""!==a[r].to&&(t=a[r].to,o=this._updateMap(t,this._getLatestProfileFromResponse(t,a[r].profileItem)),s.push(o));}return be.log("".concat(this._className,"._handleResponse cost ").concat(it.now()-n," ms")),s;}},{key:"_getLatestProfileFromResponse",value:function value(e,t){var o={};if(o.userID=e,o.profileCustomField=[],!Kt(t))for(var n=0,a=t.length;n<a;n++){if(t[n].tag.indexOf("Tag_Profile_Custom")>-1)o.profileCustomField.push({key:t[n].tag,value:t[n].value});else switch(t[n].tag){case Fe.NICK:o.nick=t[n].value;break;case Fe.GENDER:o.gender=t[n].value;break;case Fe.BIRTHDAY:o.birthday=t[n].value;break;case Fe.LOCATION:o.location=t[n].value;break;case Fe.SELFSIGNATURE:o.selfSignature=t[n].value;break;case Fe.ALLOWTYPE:o.allowType=t[n].value;break;case Fe.LANGUAGE:o.language=t[n].value;break;case Fe.AVATAR:o.avatar=t[n].value;break;case Fe.MESSAGESETTINGS:o.messageSettings=t[n].value;break;case Fe.ADMINFORBIDTYPE:o.adminForbidType=t[n].value;break;case Fe.LEVEL:o.level=t[n].value;break;case Fe.ROLE:o.role=t[n].value;break;default:be.warn("".concat(this._className,"._handleResponse unknown tag:"),t[n].tag,t[n].value);}}return o;}},{key:"updateMyProfile",value:function value(e){var t=this,o="".concat(this._className,".updateMyProfile"),n=new Va(Ba.UPDATE_MY_PROFILE);n.setMessage(JSON.stringify(e));var a=new Ns().validate(e);if(!a.valid)return n.setCode(Ca.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("".concat(o," info:").concat(a.tips)).setNetworkType(this._userModule.getNetworkType()).end(),be.error("".concat(o," info:").concat(a.tips,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),gs({code:Ca.UPDATE_PROFILE_INVALID_PARAM,message:Sa.UPDATE_PROFILE_INVALID_PARAM});var s=[];for(var r in e){Object.prototype.hasOwnProperty.call(e,r)&&("profileCustomField"===r?e.profileCustomField.forEach(function(e){s.push({tag:e.key,value:e.value});}):s.push({tag:Fe[r.toUpperCase()],value:e[r]}));}return 0===s.length?(n.setCode(Ca.UPDATE_PROFILE_NO_KEY).setMoreMessage(Sa.UPDATE_PROFILE_NO_KEY).setNetworkType(this._userModule.getNetworkType()).end(),be.error("".concat(o," info:").concat(Sa.UPDATE_PROFILE_NO_KEY,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),gs({code:Ca.UPDATE_PROFILE_NO_KEY,message:Sa.UPDATE_PROFILE_NO_KEY})):this._userModule.request({protocolName:Vo,requestData:{fromAccount:this._userModule.getMyAccount(),profileItem:s}}).then(function(a){n.setNetworkType(t._userModule.getNetworkType()).end(),be.info("".concat(o," ok"));var s=t._updateMap(t._userModule.getMyAccount(),e);return t._userModule.emitOuterEvent(S.PROFILE_UPDATED,[s]),_s(s);}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"onProfileModified",value:function value(e){var t=e.dataList;if(!Kt(t)){var o,n,a=t.length;be.debug("".concat(this._className,".onProfileModified count:").concat(a," dataList:"),e.dataList);for(var s=[],r=0;r<a;r++){o=t[r].userID,n=this._updateMap(o,this._getLatestProfileFromResponse(o,t[r].profileList)),s.push(n);}s.length>0&&(this._userModule.emitInnerEvent(vs,s),this._userModule.emitOuterEvent(S.PROFILE_UPDATED,s));}}},{key:"_fillMap",value:function value(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),o=0,n=e.length;o<n;o++){t-e[o].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[o].userID,e[o]);}be.log("".concat(this._className,"._fillMap from cache, map.size:").concat(this.accountProfileMap.size));}}},{key:"_updateMap",value:function value(e,t){var o,n=Date.now();return this._containsAccount(e)?(o=this._getProfileFromMap(e),t.profileCustomField&&Mt(o.profileCustomField,t.profileCustomField),ct(o,t,["profileCustomField"]),o.lastUpdatedTime=n):(o=new Ns(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(o.lastUpdatedTime=n,this.accountProfileMap.set(e,o))),this._flushMap(e===this._userModule.getMyAccount()),o;}},{key:"_flushMap",value:function value(e){var t=M(this.accountProfileMap.values()),o=this._userModule.getStorageModule();be.debug("".concat(this._className,"._flushMap length:").concat(t.length," flushAtOnce:").concat(e)),o.setItem(this.TAG,t,e);}},{key:"_containsAccount",value:function value(e){return this.accountProfileMap.has(e);}},{key:"_getProfileFromMap",value:function value(e){return this.accountProfileMap.get(e);}},{key:"_getCachedProfiles",value:function value(){var e=this._userModule.getStorageModule().getItem(this.TAG);return Kt(e)?[]:e;}},{key:"onConversationsProfileUpdated",value:function value(e){for(var t,o,n,a=[],s=0,r=e.length;s<r;s++){o=(t=e[s]).userID,this._userModule.isMyFriend(o)||(this._containsAccount(o)?(n=this._getProfileFromMap(o),ct(n,t)>0&&a.push(o)):a.push(t.userID));}0!==a.length&&(be.info("".concat(this._className,".onConversationsProfileUpdated toAccountList:").concat(a)),this.getUserProfile({userIDList:a}));}},{key:"getNickAndAvatarByUserID",value:function value(e){if(this._containsAccount(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar};}return{nick:"",avatar:""};}},{key:"reset",value:function value(){this._flushMap(!0),this.accountProfileMap.clear();}}]),e;}(),or=s(function e(t){n(this,e),Kt||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0);}),nr=function(){function e(t){n(this,e),this._userModule=t,this._className="BlacklistHandler",this._blacklistMap=new Map(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0;}return s(e,[{key:"getLocalBlacklist",value:function value(){return M(this._blacklistMap.keys());}},{key:"getBlacklist",value:function value(){var e=this,t="".concat(this._className,".getBlacklist"),o={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},n=new Va(Ba.GET_BLACKLIST);return this._userModule.request({protocolName:Bo,requestData:o}).then(function(o){var a=o.data,s=a.blackListItem,r=a.currentSequence,i=Kt(s)?0:s.length;n.setNetworkType(e._userModule.getNetworkType()).setMessage("blackList count:".concat(i)).end(),be.info("".concat(t," ok")),e.currentSequence=r,e._handleResponse(s,!0),e._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,M(e._blacklistMap.keys()));}).catch(function(o){return e._userModule.probeNetwork().then(function(e){var t=m(e,2),a=t[0],s=t[1];n.setError(o,a,s).end();}),be.error("".concat(t," failed. error:"),o),gs(o);});}},{key:"addBlacklist",value:function value(e){var t=this,o="".concat(this._className,".addBlacklist"),n=new Va(Ba.ADD_TO_BLACKLIST);if(!Qe(e.userIDList))return n.setCode(Ca.ADD_BLACKLIST_INVALID_PARAM).setMessage(Sa.ADD_BLACKLIST_INVALID_PARAM).setNetworkType(this._userModule.getNetworkType()).end(),be.error("".concat(o," options.userIDList 必需是数组")),gs({code:Ca.ADD_BLACKLIST_INVALID_PARAM,message:Sa.ADD_BLACKLIST_INVALID_PARAM});var a=this._userModule.getMyAccount();return 1===e.userIDList.length&&e.userIDList[0]===a?(n.setCode(Ca.CANNOT_ADD_SELF_TO_BLACKLIST).setMessage(Sa.CANNOT_ADD_SELF_TO_BLACKLIST).setNetworkType(this._userModule.getNetworkType()).end(),be.error("".concat(o," 不能把自己拉黑")),gs({code:Ca.CANNOT_ADD_SELF_TO_BLACKLIST,message:Sa.CANNOT_ADD_SELF_TO_BLACKLIST})):(e.userIDList.includes(a)&&(e.userIDList=e.userIDList.filter(function(e){return e!==a;}),be.warn("".concat(o," 不能把自己拉黑,已过滤"))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Ko,requestData:e}).then(function(a){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),be.info("".concat(o," ok")),t._handleResponse(a.resultItem,!0),as(M(t._blacklistMap.keys()));}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);}));}},{key:"_handleResponse",value:function value(e,t){if(!Kt(e))for(var o,n,a,s=0,r=e.length;s<r;s++){n=e[s].to,a=e[s].resultCode,(Ze(a)||0===a)&&(t?((o=this._blacklistMap.has(n)?this._blacklistMap.get(n):new or()).userID=n,!Kt(e[s].addBlackTimeStamp)&&(o.timeStamp=e[s].addBlackTimeStamp),this._blacklistMap.set(n,o)):this._blacklistMap.has(n)&&(o=this._blacklistMap.get(n),this._blacklistMap.delete(n)));}be.log("".concat(this._className,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t));}},{key:"deleteBlacklist",value:function value(e){var t=this,o="".concat(this._className,".deleteBlacklist"),n=new Va(Ba.REMOVE_FROM_BLACKLIST);return Qe(e.userIDList)?(e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Ho,requestData:e}).then(function(a){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),be.info("".concat(o," ok")),t._handleResponse(a.data.resultItem,!1),as(M(t._blacklistMap.keys()));}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),a=o[0],s=o[1];n.setError(e,a,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);})):(n.setCode(Ca.DEL_BLACKLIST_INVALID_PARAM).setMessage(Sa.DEL_BLACKLIST_INVALID_PARAM).setNetworkType(this._userModule.getNetworkType()).end(),be.error("".concat(o," options.userIDList 必需是数组")),gs({code:Ca.DEL_BLACKLIST_INVALID_PARAM,message:Sa.DEL_BLACKLIST_INVALID_PARAM}));}},{key:"onAccountDeleted",value:function value(e){for(var t,o=[],n=0,a=e.length;n<a;n++){t=e[n],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),o.push(t));}o.length>0&&(be.log("".concat(this._className,".onAccountDeleted count:").concat(o.length," userIDList:"),o),this._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,M(this._blacklistMap.keys())));}},{key:"onAccountAdded",value:function value(e){for(var t,o=[],n=0,a=e.length;n<a;n++){t=e[n],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new or({userID:t})),o.push(t));}o.length>0&&(be.log("".concat(this._className,".onAccountAdded count:").concat(o.length," userIDList:"),o),this._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,M(this._blacklistMap.keys())));}},{key:"reset",value:function value(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0;}}]),e;}(),ar=function ar(e){var t=String(e).replace(/[=]+$/,""),o="";if(t.length%4==1)return be.warn("decodeBase64 failed: ".concat(e," to be decoded is not correctly encoded.")),"";for(var n,a,s=0,r=0;a=t.charAt(r++);~a&&(n=s%4?64*n+a:a,s++%4)?o+=String.fromCharCode(255&n>>(-2*s&6)):0){a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);}try{return decodeURIComponent(escape(o));}catch(i){return be.warn("decodeBase64 failed: ".concat(e," to be decoded is not correctly encoded.")),"";}},sr=function(){function e(t){n(this,e),this._userModule=t,this._className="UserStatusHandler",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userModule.getInnerEmitterInstance().on(Ms,this._onCloudConfigUpdated,this);}return s(e,[{key:"_onCloudConfigUpdated",value:function value(){var e=this._userModule.getCloudConfig("status_query_count"),t=this._userModule.getCloudConfig("status_sub_count"),o=this._userModule.getCloudConfig("status_unsub_count");be.log("".concat(this._className,"._onCloudConfigUpdated statusQueryCount:").concat(e," statusSubscribeCount:").concat(t)+" statusUnsubscribeCount:".concat(o)),Ze(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),Ze(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),Ze(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(o,10));}},{key:"onUserStatusUpdated",value:function value(e){var t=e.dataList,o=this._userModule.getMyUserID(),n=this._userModule.getModule(_o),a=t.map(function(e){var t=e.to,a=e.statusType,s=e.customStatus,r=ar(s);return t===o&&n.setCustomStatus(r),{userID:t,statusType:a,customStatus:r};});this._userModule.emitOuterEvent(S.USER_STATUS_UPDATED,a);}},{key:"setSelfStatus",value:function value(e){var t=this,o="".concat(this._className,".setSelfStatus"),n=e.customStatus,a=new Va(Ba.SET_SELF_STATUS);return this._userModule.request({protocolName:ma,requestData:{customStatus:n}}).then(function(e){return a.setNetworkType(t._userModule.getNetworkType()).setMessage("customStatus:".concat(n)).end(),be.log("".concat(o," ok. customStatus:").concat(n)),t._userModule.getModule(_o).setCustomStatus(n),as({userID:t._userModule.getMyUserID(),statusType:1,customStatus:n});}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];a.setError(e,n,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"getUserStatus",value:function value(e){var t=this,o="".concat(this._className,".getUserStatus"),n=e.userIDList,a=void 0===n?[]:n,s=this._userModule.getMyUserID(),r=M(a),i=void 0,c=r.indexOf(s);if(c>-1){r.splice(c,1);var u=this._userModule.getModule(_o).getCustomStatus();i={userID:s,statusType:1,customStatus:u};}if(0===r.length)return _s({successUserList:[i],failureUserList:[]});if(!this._userModule.canIUse(H.USER_STATUS))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});r.length>this.MAX_QUERY_USER_COUNT&&(be.warn("".concat(o," 查询用户状态单次请求不能超过").concat(this.MAX_QUERY_USER_COUNT,"个用户")),r=a.slice(0,this.MAX_QUERY_USER_COUNT));var l=new Va(Ba.GET_USER_STATUS);return this._userModule.request({protocolName:Ma,requestData:{userIDList:r}}).then(function(e){var n=e.data,s=n.successUserList,r=void 0===s?[]:s,c=n.failureUserList,u=void 0===c?[]:c,d=r.map(function(e){var t=e.userID,o=e.statusType,n=e.customStatus;return{userID:t,statusType:o,customStatus:ar(n)};}),p=u.map(function(e){var t=e.userID,o=e.invalidUserID,n=e.errorCode,a=e.errorInfo;return{userID:Kt(o)?t:o,code:n,message:a};});Ze(i)||d.unshift(i);var _="userID count:".concat(a.length,", success count:").concat(d.length,", fail count:").concat(p.length);return l.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(_)).end(),be.log("".concat(o," ok. ").concat(_,".")),as({successUserList:d,failureUserList:p});}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];l.setMessage("userID count:".concat(a.length)).setError(e,n,s).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"subscribeUserStatus",value:function value(e){var t=this;if(!this._userModule.canIUse(H.USER_STATUS))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o="".concat(this._className,".subscribeUserStatus"),n=e.userIDList,a=void 0===n?[]:n,s=M(a);s.length>this.MAX_SUBSCRIBE_USER_COUNT&&(be.warn("".concat(o," 订阅用户状态单次请求不能超过").concat(this.MAX_SUBSCRIBE_USER_COUNT,"个用户")),s=a.slice(0,this.MAX_SUBSCRIBE_USER_COUNT));var r=new Va(Ba.SUBSCRIBE_USER_STATUS),i="userID count:".concat(a.length);return be.log("".concat(o," ").concat(i)),this._userModule.request({protocolName:va,requestData:{userIDList:s}}).then(function(e){var n=e.data.failureUserList,a=(void 0===n?[]:n).map(function(e){var t=e.userID,o=e.invalidUserID,n=e.errorCode,a=e.errorInfo;return{userID:Kt(o)?t:o,code:n,message:a};});return r.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(i," fail count:").concat(a.length)).end(),be.log("".concat(o," ok. fail count:").concat(a.length,".")),as({failureUserList:a});}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setMessage("".concat(i)).setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"unsubscribeUserStatus",value:function value(e){var t=this;if(!this._userModule.canIUse(H.USER_STATUS))return gs({code:Ca.CANNOT_USE_COMMERCIAL_ABILITY,message:Sa.CANNOT_USE_COMMERCIAL_ABILITY});var o="".concat(this._className,".unsubscribeUserStatus"),n=(e||{}).userIDList,a=void 0===n?[]:n,s=M(a);a.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(be.warn("".concat(o," 取消订阅用户状态单次请求不能超过").concat(this.MAX_UNSUBSCRIBE_USER_COUNT,"个用户")),s=a.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT));var r=new Va(Ba.UNSUBSCRIBE_USER_STATUS),i="userID count:".concat(a.length);be.log("".concat(o," ").concat(i));var c={userIDList:s};return 0===s.length&&(c.userIDList=void 0,c.unsubscribeAll=1),this._userModule.request({protocolName:Ia,requestData:c}).then(function(e){var n=e.data.failureUserList,a=(void 0===n?[]:n).map(function(e){var t=e.userID,o=e.invalidUserID,n=e.errorCode,a=e.errorInfo;return{userID:Kt(o)?t:o,code:n,message:a};});return r.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(i," fail count:").concat(a.length)).end(),be.log("".concat(o," ok. fail count:").concat(a.length,".")),as({failureUserList:a});}).catch(function(e){return t._userModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];r.setMessage("".concat(i)).setError(e,n,a).end();}),be.error("".concat(o," failed. error:"),e),gs(e);});}},{key:"reset",value:function value(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100;}}]),e;}(),rr=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="UserModule",a._profileHandler=new tr(g(a)),a._blacklistHandler=new nr(g(a)),a._userStatusHandler=new sr(g(a)),a.getInnerEmitterInstance().on(ms,a.onContextUpdated,g(a)),a;}return s(o,[{key:"onContextUpdated",value:function value(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist();}},{key:"onProfileModified",value:function value(e){this._profileHandler.onProfileModified(e);}},{key:"onRelationChainModified",value:function value(e){var t=e.dataList;if(!Kt(t)){var o=[];t.forEach(function(e){e.blackListDelAccount&&o.push.apply(o,M(e.blackListDelAccount));}),o.length>0&&this._blacklistHandler.onAccountDeleted(o);var n=[];t.forEach(function(e){e.blackListAddAccount&&n.push.apply(n,M(e.blackListAddAccount));}),n.length>0&&this._blacklistHandler.onAccountAdded(n);}}},{key:"onConversationsProfileUpdated",value:function value(e){this._profileHandler.onConversationsProfileUpdated(e);}},{key:"getMyAccount",value:function value(){return this.getMyUserID();}},{key:"getMyProfile",value:function value(){return this._profileHandler.getMyProfile();}},{key:"getStorageModule",value:function value(){return this.getModule(go);}},{key:"isMyFriend",value:function value(e){var t=this.getModule(co);return!!t&&t.isMyFriend(e);}},{key:"getUserProfile",value:function value(e){return this._profileHandler.getUserProfile(e);}},{key:"updateMyProfile",value:function value(e){return this._profileHandler.updateMyProfile(e);}},{key:"getNickAndAvatarByUserID",value:function value(e){return this._profileHandler.getNickAndAvatarByUserID(e);}},{key:"getLocalBlacklist",value:function value(){var e=this._blacklistHandler.getLocalBlacklist();return _s(e);}},{key:"addBlacklist",value:function value(e){return this._blacklistHandler.addBlacklist(e);}},{key:"deleteBlacklist",value:function value(e){return this._blacklistHandler.deleteBlacklist(e);}},{key:"onUserStatusUpdated",value:function value(e){this._userStatusHandler.onUserStatusUpdated(e);}},{key:"setSelfStatus",value:function value(e){return this._userStatusHandler.setSelfStatus(e);}},{key:"getUserStatus",value:function value(e){return this._userStatusHandler.getUserStatus(e);}},{key:"subscribeUserStatus",value:function value(e){return this._userStatusHandler.subscribeUserStatus(e);}},{key:"unsubscribeUserStatus",value:function value(e){return this._userStatusHandler.unsubscribeUserStatus(e);}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset();}}]),o;}(Ro),ir=function(){function e(t,o){n(this,e),this._moduleManager=t,this._isLoggedIn=!1,this._SDKAppID=o.SDKAppID,this._userID=o.userID||"",this._userSig=o.userSig||"",this._version="2.22.1",this._a2Key="",this._tinyID="",this._customStatus="",this._contentType="json",this._unlimitedAVChatRoom=o.unlimitedAVChatRoom,this._scene=o.scene||"",this._oversea=o.oversea,this._instanceID=o.instanceID,this._statusInstanceID=0,this._isDevMode=o.devMode,this._proxyServer=o.proxyServer;}return s(e,[{key:"isLoggedIn",value:function value(){return this._isLoggedIn;}},{key:"isOversea",value:function value(){return this._oversea;}},{key:"isPrivateNetWork",value:function value(){return this._proxyServer;}},{key:"isDevMode",value:function value(){return this._isDevMode;}},{key:"isSingaporeSite",value:function value(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7;}},{key:"isKoreaSite",value:function value(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7;}},{key:"isGermanySite",value:function value(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7;}},{key:"isIndiaSite",value:function value(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7;}},{key:"isUnlimitedAVChatRoom",value:function value(){return this._unlimitedAVChatRoom;}},{key:"setUserID",value:function value(e){this._userID=e;}},{key:"getUserID",value:function value(){return this._userID;}},{key:"setUserSig",value:function value(e){this._userSig=e;}},{key:"getUserSig",value:function value(){return this._userSig;}},{key:"getSDKAppID",value:function value(){return this._SDKAppID;}},{key:"setTinyID",value:function value(e){this._tinyID=e,this._isLoggedIn=!0;}},{key:"getTinyID",value:function value(){return this._tinyID;}},{key:"setCustomStatus",value:function value(e){this._customStatus=e;}},{key:"getCustomStatus",value:function value(){return this._customStatus;}},{key:"getScene",value:function value(){return this._isTUIKit()?"tuikit":this._scene;}},{key:"getInstanceID",value:function value(){return this._instanceID;}},{key:"getStatusInstanceID",value:function value(){return this._statusInstanceID;}},{key:"setStatusInstanceID",value:function value(e){this._statusInstanceID=e;}},{key:"getVersion",value:function value(){return this._version;}},{key:"getA2Key",value:function value(){return this._a2Key;}},{key:"setA2Key",value:function value(e){this._a2Key=e;}},{key:"getContentType",value:function value(){return this._contentType;}},{key:"getProxyServer",value:function value(){return this._proxyServer;}},{key:"_isTUIKit",value:function value(){var e=!1,t=!1,o=!1,n=!1,a=[];te&&(a=Object.keys(ne)),oe&&(a=ee?Object.keys(uni):Object.keys(window));for(var s=0,r=a.length;s<r;s++){if(a[s].toLowerCase().includes("uikit")){e=!0;break;}}if(a=null,te&&ot(getApp)){var i=getApp().globalData;Xe(i)&&!0===i.isTUIKit&&(t=!0);}!0===this._moduleManager.getModule(go).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(o=!0);var c=null;if($&&!J&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),z&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),Qe(c)&&c.length>0){for(var u=0,l=c.length;u<l;u++){if(c[u].toLowerCase().includes("tui")){n=!0;break;}}c=null;}return e||t||o||n;}},{key:"reset",value:function value(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._customStatus="",this._statusInstanceID=0;}}]),e;}(),cr=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="SignModule",a._helloInterval=120,a._lastLoginTs=0,a._lastWsHelloTs=0,a._isWebUniapp=0,Is.mixin(g(a)),a;}return s(o,[{key:"onCheckTimer",value:function value(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello();}},{key:"login",value:function value(e){if(this.isLoggedIn()){var t="您已经登录帐号".concat(e.userID,"!如需切换帐号登录,请先调用 logout 接口登出,再调用 login 接口登录。");return be.warn(t),_s({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0});}if(Date.now()-this._lastLoginTs<=15e3)return be.warn("您正在尝试登录帐号".concat(e.userID,"!请勿重复登录。")),gs({code:Ca.REPEAT_LOGIN,message:Sa.REPEAT_LOGIN});be.log("".concat(this._className,".login userID:").concat(e.userID));var o=this._checkLoginInfo(e);if(0!==o.code)return gs(o);var n=this.getModule(_o),a=e.userID,s=e.userSig;return n.setUserID(a),n.setUserSig(s),this.getModule(yo).updateProtocolConfig(),this._login();}},{key:"_login",value:function value(){var e=this,t=this.getModule(_o),o=t.getScene(),n=0,a=new Va(Ba.LOGIN);a.setMessage("".concat(o)).setMoreMessage("identifier:".concat(this.getMyUserID())),ee?"tuikit"===o?a.setUIPlatform(4):a.setUIPlatform(3):te?"tuikit"===o?a.setUIPlatform(12):a.setUIPlatform(11):oe&&(Ee?"tuikit"===o?a.setUIPlatform(17):a.setUIPlatform(16):"tuikit"===o?a.setUIPlatform(14):a.setUIPlatform(13));var s=this.getModule(Oo);if(s.canIUseOfflinePush()){this._isWebUniapp=s.getUniAppPlatform();var r=this._getStatusInstanceID();t.setStatusInstanceID(r),this.getModule(yo).updateProtocolConfig(),n=s.getDeviceBrand();}return this._lastLoginTs=Date.now(),this.request({protocolName:Lo,requestData:{deviceBrand:n,isWebUniapp:this._isWebUniapp}}).then(function(n){e._lastLoginTs=0;var s=Date.now(),r=null,i=n.data,c=i.a2Key,u=i.tinyID,l=i.helloInterval,d=i.instanceID,p=i.timeStamp,_=i.customStatus,g=void 0===_?"":_;be.log("".concat(e._className,".login ok. scene:").concat(o," helloInterval:").concat(l," instanceID:").concat(d," timeStamp:").concat(p));var h=1e3*p,f=s-a.getStartTs(),m=h+parseInt(f/2)-s,M=a.getStartTs()+m;if(a.start(M),function(e,t){Oe=t;var o=new Date();o.setTime(e),be.info("baseTime from server: ".concat(o," offset: ").concat(Oe));}(h,m),!u)throw r=new ls({code:Ca.NO_TINYID,message:Sa.NO_TINYID}),a.setError(r,!0,e.getNetworkType()).end(),r;if(!c)throw r=new ls({code:Ca.NO_A2KEY,message:Sa.NO_A2KEY}),a.setError(r,!0,e.getNetworkType()).end(),r;a.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(l," instanceID:").concat(d," offset:").concat(m)).end(),t.setA2Key(c),t.setTinyID(u),t.setStatusInstanceID(d);var v=ar(g);t.setCustomStatus(v),e.getModule(yo).updateProtocolConfig(),e.emitInnerEvent(ms),e._helloInterval=l,e.triggerReady();var I=e.getModule(Oo);return I.canIUseOfflinePush()&&(uni.setStorageSync("timUniAppInstanceID",d),I.init()),e._fetchCloudControlConfig(),n;}).catch(function(t){return e.probeNetwork().then(function(e){var o=m(e,2),n=o[0],s=o[1];a.setError(t,n,s).end(!0);}),e._moduleManager.setNotReadyReason(Ca.LOGIN_FAILED),be.error("".concat(e._className,".login failed. error:"),t),e._lastLoginTs=0,e._moduleManager.onLoginFailed(),gs(t);});}},{key:"logout",value:function value(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return gs({code:Ca.USER_NOT_LOGGED_IN,message:Sa.USER_NOT_LOGGED_IN});var o=new Va(Ba.LOGOUT);return o.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0),be.info("".concat(this._className,".logout type:").concat(t)),0===t&&this._moduleManager.setNotReadyReason(Ca.LOGGED_OUT),this.request({protocolName:ko,requestData:{type:t}}).then(function(){return e.resetReady(),_s({});}).catch(function(t){return be.error("".concat(e._className,"._logout error:"),t),e.resetReady(),_s({});});}},{key:"_fetchCloudControlConfig",value:function value(){this.getModule(Co).fetchConfig();}},{key:"_getStatusInstanceID",value:function value(){return uni.getStorageSync("timUniAppInstanceID");}},{key:"_hello",value:function value(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:Go,requestData:{isWebUniapp:this._isWebUniapp}}).catch(function(t){be.warn("".concat(e._className,"._hello error:"),t);});}},{key:"getLastWsHelloTs",value:function value(){return this._lastWsHelloTs;}},{key:"_checkLoginInfo",value:function value(e){var t=0,o="";return Kt(this.getModule(_o).getSDKAppID())?(t=Ca.NO_SDKAPPID,o=Sa.NO_SDKAPPID):Kt(e.userID)?(t=Ca.NO_IDENTIFIER,o=Sa.NO_IDENTIFIER):Kt(e.userSig)&&(t=Ca.NO_USERSIG,o=Sa.NO_USERSIG),{code:t,message:o};}},{key:"onMultipleAccountKickedOut",value:function value(e){var t=this;new Va(Ba.KICKED_OUT).setNetworkType(this.getNetworkType()).setMessage("type:".concat(D.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),be.warn("".concat(this._className,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then(function(){t.emitOuterEvent(S.KICKED_OUT,{type:D.KICKED_OUT_MULT_ACCOUNT}),t._moduleManager.setNotReadyReason(Ca.KICKED_OUT_MULT_ACCOUNT),t._moduleManager.reset();});}},{key:"onMultipleDeviceKickedOut",value:function value(e){var t=this;new Va(Ba.KICKED_OUT).setNetworkType(this.getNetworkType()).setMessage("type:".concat(D.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),be.warn("".concat(this._className,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then(function(){t.emitOuterEvent(S.KICKED_OUT,{type:D.KICKED_OUT_MULT_DEVICE}),t._moduleManager.setNotReadyReason(Ca.KICKED_OUT_MULT_DEVICE),t._moduleManager.reset();});}},{key:"onUserSigExpired",value:function value(){new Va(Ba.KICKED_OUT).setNetworkType(this.getNetworkType()).setMessage(D.KICKED_OUT_USERSIG_EXPIRED).end(!0),be.warn("".concat(this._className,".onUserSigExpired: userSig 签名过期被踢下线")),0!==this.getModule(_o).getStatusInstanceID()&&(this.emitOuterEvent(S.KICKED_OUT,{type:D.KICKED_OUT_USERSIG_EXPIRED}),this._moduleManager.setNotReadyReason(Ca.KICKED_OUT_USERSIG_EXPIRED),this._moduleManager.reset());}},{key:"onRestApiKickedOut",value:function value(e){(new Va(Ba.KICKED_OUT).setNetworkType(this.getNetworkType()).setMessage("type:".concat(D.KICKED_OUT_REST_API," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),be.warn("".concat(this._className,".onRestApiKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),0!==this.getModule(_o).getStatusInstanceID())&&(this.emitOuterEvent(S.KICKED_OUT,{type:D.KICKED_OUT_REST_API}),this._moduleManager.setNotReadyReason(Ca.KICKED_OUT_REST_API),this._moduleManager.reset(),this.getModule(To).onRestApiKickedOut());}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0;}}]),o;}(Ro);function ur(){return null;}var lr=function(){function e(t){n(this,e),this._moduleManager=t,this._className="StorageModule",this._storageQueue=new Map(),this._errorTolerantHandle();}return s(e,[{key:"_errorTolerantHandle",value:function value(){te||!Ze(window)&&!Ze(window.localStorage)||(this.getItem=ur,this.setItem=ur,this.removeItem=ur,this.clear=ur);}},{key:"onCheckTimer",value:function value(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush();}}},{key:"_doFlush",value:function value(){try{var e,t=C(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var o=m(e.value,2),n=o[0],a=o[1];this._setStorageSync(this._getKey(n),a);}}catch(s){t.e(s);}finally{t.f();}this._storageQueue.clear();}catch(r){be.warn("".concat(this._className,"._doFlush error:"),r);}}},{key:"_getPrefix",value:function value(){var e=this._moduleManager.getModule(_o);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_");}},{key:"_getKey",value:function value(e){return"".concat(this._getPrefix()).concat(e);}},{key:"getItem",value:function value(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var o=t?this._getKey(e):e;return this.getStorageSync(o);}catch(n){return be.warn("".concat(this._className,".getItem error:"),n),{};}}},{key:"setItem",value:function value(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(o){var a=n?this._getKey(e):e;this._setStorageSync(a,t);}else this._storageQueue.set(e,t);}},{key:"clear",value:function value(){try{te?ne.clearStorageSync():localStorage&&localStorage.clear();}catch(e){be.warn("".concat(this._className,".clear error:"),e);}}},{key:"removeItem",value:function value(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var o=t?this._getKey(e):e;this._removeStorageSync(o);}catch(n){be.warn("".concat(this._className,".removeItem error:"),n);}}},{key:"getSize",value:function value(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var n={size:0,limitSize:5242880,unit:o};if(Object.defineProperty(n,"leftSize",{enumerable:!0,get:function get(){return n.limitSize-n.size;}}),te&&(n.limitSize=1024*ne.getStorageInfoSync().limitSize),e)n.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(te){var a=ne.getStorageInfoSync(),s=a.keys;s.forEach(function(e){n.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length;});}else if(localStorage)for(var r in localStorage){localStorage.hasOwnProperty(r)&&(n.size+=localStorage.getItem(r).length+r.length);}return this._convertUnit(n);}catch(i){be.warn("".concat(this._className," error:"),i);}}},{key:"_convertUnit",value:function value(e){var t={},o=e.unit;for(var n in t.unit=o,e){"number"==typeof e[n]&&("kb"===o.toLowerCase()?t[n]=Math.round(e[n]/1024):"mb"===o.toLowerCase()?t[n]=Math.round(e[n]/1024/1024):t[n]=e[n]);}return t;}},{key:"_setStorageSync",value:function value(e,t){te?Q?my.setStorageSync({key:e,data:t}):ne.setStorageSync(e,t):localStorage&&localStorage.setItem(e,JSON.stringify(t));}},{key:"getStorageSync",value:function value(e){return te?Q?my.getStorageSync({key:e}).data:ne.getStorageSync(e):localStorage?JSON.parse(localStorage.getItem(e)):{};}},{key:"_removeStorageSync",value:function value(e){te?Q?my.removeStorageSync({key:e}):ne.removeStorageSync(e):localStorage&&localStorage.removeItem(e);}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._doFlush();}}]),e;}(),dr=function(){function e(t){n(this,e),this._className="SSOLogBody",this._report=[];}return s(e,[{key:"pushIn",value:function value(e){be.debug("".concat(this._className,".pushIn"),this._report.length,e),this._report.push(e);}},{key:"backfill",value:function value(e){var t;Qe(e)&&0!==e.length&&(be.debug("".concat(this._className,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,M(e)));}},{key:"getLogsNumInMemory",value:function value(){return this._report.length;}},{key:"isEmpty",value:function value(){return 0===this._report.length;}},{key:"_reset",value:function value(){this._report.length=0,this._report=[];}},{key:"getLogsInMemory",value:function value(){var e=this._report.slice();return this._reset(),e;}}]),e;}(),pr=function pr(e){var t=e.getModule(_o);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Re()};},_r=function(e){i(a,e);var o=f(a);function a(e){var t;n(this,a),(t=o.call(this,e))._className="EventStatModule",t.TAG="im-ssolog-event",t._reportBody=new dr(),t.MIN_THRESHOLD=20,t.MAX_THRESHOLD=100,t.WAITING_TIME=6e4,t.REPORT_LEVEL=[4,5,6],t.REPORT_SDKAPPID_BLACKLIST=[],t.REPORT_TINYID_WHITELIST=[],t._lastReportTime=Date.now();var s=t.getInnerEmitterInstance();return s.on(ms,t._onLoginSuccess,g(t)),s.on(Ms,t._onCloudConfigUpdated,g(t)),t;}return s(a,[{key:"reportAtOnce",value:function value(){be.debug("".concat(this._className,".reportAtOnce")),this._report();}},{key:"_onLoginSuccess",value:function value(){var e=this,t=this.getModule(go),o=t.getItem(this.TAG,!1);!Kt(o)&&ot(o.forEach)&&(be.log("".concat(this._className,"._onLoginSuccess get ssolog in storage, count:").concat(o.length)),o.forEach(function(t){e._reportBody.pushIn(t);}),t.removeItem(this.TAG,!1));}},{key:"_onCloudConfigUpdated",value:function value(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),o=this.getCloudConfig("evt_rpt_level"),n=this.getCloudConfig("evt_rpt_sdkappid_bl"),a=this.getCloudConfig("evt_rpt_tinyid_wl");Ze(e)||(this.MIN_THRESHOLD=Number(e)),Ze(t)||(this.WAITING_TIME=Number(t)),Ze(o)||(this.REPORT_LEVEL=o.split(",").map(function(e){return Number(e);})),Ze(n)||(this.REPORT_SDKAPPID_BLACKLIST=n.split(",").map(function(e){return Number(e);})),Ze(a)||(this.REPORT_TINYID_WHITELIST=a.split(","));}},{key:"pushIn",value:function value(e){e instanceof Va&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report());}},{key:"onCheckTimer",value:function value(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report();}},{key:"_filterLogs",value:function value(e){var t=this,o=this.getModule(_o),n=o.getSDKAppID(),a=o.getTinyID();return Ut(this.REPORT_SDKAPPID_BLACKLIST,n)&&!bt(this.REPORT_TINYID_WHITELIST,a)?[]:e.filter(function(e){return t.REPORT_LEVEL.includes(e.level);});}},{key:"_report",value:function value(){var e=this;if(!this._reportBody.isEmpty()){var o=this._reportBody.getLogsInMemory(),n=this._filterLogs(o);if(0!==n.length){var a={header:pr(this),event:n};this.request({protocolName:ea,requestData:t({},a)}).then(function(){e._lastReportTime=Date.now();}).catch(function(t){be.warn("".concat(e._className,".report failed. networkType:").concat(e.getNetworkType()," error:"),t),e._reportBody.backfill(o),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce();});}else this._lastReportTime=Date.now();}}},{key:"_flushAtOnce",value:function value(){var e=this.getModule(go),t=e.getItem(this.TAG,!1),o=this._reportBody.getLogsInMemory();if(Kt(t))be.log("".concat(this._className,"._flushAtOnce count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1);else{var n=o.concat(t);n.length>this.MAX_THRESHOLD&&(n=n.slice(0,this.MAX_THRESHOLD)),be.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);}}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[];}}]),a;}(Ro),gr="none",hr="online",fr=[Ca.OVER_FREQUENCY_LIMIT,Ca.OPEN_SERVICE_OVERLOAD_ERROR],mr=function(){function e(t){n(this,e),this._moduleManager=t,this._networkType="",this._className="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null;}return s(e,[{key:"start",value:function value(){var e=this;te?(ne.getNetworkType({success:function success(t){e._networkType=t.networkType,t.networkType===gr?be.warn("".concat(e._className,".start no network, please check!")):be.info("".concat(e._className,".start networkType:").concat(t.networkType));}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),ne.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=hr,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)));}},{key:"_onWebOnline",value:function value(){this._onNetworkStatusChange({isConnected:!0,networkType:hr});}},{key:"_onWebOffline",value:function value(){this._onNetworkStatusChange({isConnected:!1,networkType:gr});}},{key:"_onNetworkStatusChange",value:function value(e){var t=e.isConnected,o=e.networkType,n=!1;t?(be.info("".concat(this._className,"._onNetworkStatusChange previousNetworkType:").concat(this._networkType," currentNetworkType:").concat(o)),this._networkType!==o&&(n=!0,this._moduleManager.getModule(To).reConnect(!0))):this._networkType!==o&&(n=!0,be.warn("".concat(this._className,"._onNetworkStatusChange no network, please check!")),this._moduleManager.getModule(To).offline());n&&(new Va(Ba.NETWORK_CHANGE).setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(o)).end(),this._networkType=o);}},{key:"probe",value:function value(e){var t=this;return!Ze(e)&&fr.includes(e.code)?Promise.resolve([!0,this._networkType]):new Promise(function(e,o){te?ne.getNetworkType({success:function success(o){t._networkType=o.networkType,o.networkType===gr?(be.warn("".concat(t._className,".probe no network, please check!")),e([!1,o.networkType])):(be.info("".concat(t._className,".probe networkType:").concat(o.networkType)),e([!0,o.networkType]));}}):t._networkType===gr?e([!1,gr]):e([!0,hr]);});}},{key:"getNetworkType",value:function value(){return this._networkType;}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),te?null!==this._mpNetworkStatusCallback&&(ne.offNetworkStatusChange&&(Z||J?ne.offNetworkStatusChange(this._mpNetworkStatusCallback):ne.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null));}}]),e;}(),Mr=O(function(e){var t=Object.prototype.hasOwnProperty,o="~";function n(){}function a(e,t,o){this.fn=e,this.context=t,this.once=o||!1;}function s(e,t,n,s,r){if("function"!=typeof n)throw new TypeError("The listener must be a function");var i=new a(n,s||e,r),c=o?o+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],i]:e._events[c].push(i):(e._events[c]=i,e._eventsCount++),e;}function r(e,t){0==--e._eventsCount?e._events=new n():delete e._events[t];}function i(){this._events=new n(),this._eventsCount=0;}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(o=!1)),i.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events){t.call(e,n)&&a.push(o?n.slice(1):n);}return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a;},i.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,s=n.length,r=new Array(s);a<s;a++){r[a]=n[a].fn;}return r;},i.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0;},i.prototype.emit=function(e,t,n,a,s,r){var i=o?o+e:e;if(!this._events[i])return!1;var c,u,l=this._events[i],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,a),!0;case 5:return l.fn.call(l.context,t,n,a,s),!0;case 6:return l.fn.call(l.context,t,n,a,s,r),!0;}for(u=1,c=new Array(d-1);u<d;u++){c[u-1]=arguments[u];}l.fn.apply(l.context,c);}else{var p,_=l.length;for(u=0;u<_;u++){switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,a);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++){c[p-1]=arguments[p];}l[u].fn.apply(l[u].context,c);}}}return!0;},i.prototype.on=function(e,t,o){return s(this,e,t,o,!1);},i.prototype.once=function(e,t,o){return s(this,e,t,o,!0);},i.prototype.removeListener=function(e,t,n,a){var s=o?o+e:e;if(!this._events[s])return this;if(!t)return r(this,s),this;var i=this._events[s];if(i.fn)i.fn!==t||a&&!i.once||n&&i.context!==n||r(this,s);else{for(var c=0,u=[],l=i.length;c<l;c++){(i[c].fn!==t||a&&!i[c].once||n&&i[c].context!==n)&&u.push(i[c]);}u.length?this._events[s]=1===u.length?u[0]:u:r(this,s);}return this;},i.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&r(this,t)):(this._events=new n(),this._eventsCount=0),this;},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=o,i.EventEmitter=i,e.exports=i;}),vr=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="BigDataChannelModule",a.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},a._bdh_download_server="grouptalk.c2c.qq.com",a._BDHBizID=10001,a._authKey="",a._expireTime=0,a.getInnerEmitterInstance().on(ms,a._getAuthKey,g(a)),a;}return s(o,[{key:"_getAuthKey",value:function value(){var e=this;this.request({protocolName:bo}).then(function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime));});}},{key:"_isFromOlderVersion",value:function value(e){return!(!e.content||2===e.content.downloadFlag);}},{key:"parseElements",value:function value(e,t){if(!Qe(e)||!t)return[];for(var o=[],n=null,a=0;a<e.length;a++){n=e[a],this._needParse(n)?o.push(this._parseElement(n,t)):o.push(e[a]);}return o;}},{key:"_needParse",value:function value(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==D.MSG_AUDIO&&e.type!==D.MSG_FILE&&e.type!==D.MSG_VIDEO);}},{key:"_parseElement",value:function value(e,t){switch(e.type){case D.MSG_AUDIO:return this._parseAudioElement(e,t);case D.MSG_FILE:return this._parseFileElement(e,t);case D.MSG_VIDEO:return this._parseVideoElement(e,t);}}},{key:"_parseAudioElement",value:function value(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e;}},{key:"_parseFileElement",value:function value(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e;}},{key:"_parseVideoElement",value:function value(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e;}},{key:"_genAudioUrl",value:function value(e,t){if(""===this._authKey)return be.warn("".concat(this._className,"._genAudioUrl no authKey!")),"";var o=this.getModule(_o).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(o,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0");}},{key:"_genFileUrl",value:function value(e,t,o){if(""===this._authKey)return be.warn("".concat(this._className,"._genFileUrl no authKey!")),"";o||(o="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var n=this.getModule(_o).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(o));}},{key:"_genVideoUrl",value:function value(e,t){if(""===this._authKey)return be.warn("".concat(this._className,"._genVideoUrl no authKey!")),"";var o=this.getModule(_o).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(o,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0");}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._authKey="",this.expireTime=0;}}]),o;}(Ro),Ir=["requestSnapshotUrl"],yr=function(e){i(a,e);var o=f(a);function a(e){var t;return n(this,a),(t=o.call(this,e))._className="UploadModule",t.TIMUploadPlugin=null,t.timUploadPlugin=null,t.COSSDK=null,t._cosUploadMethod=null,t.expiredTimeLimit=600,t.appid=0,t.bucketName="",t.ciUrl="",t.directory="",t.downloadUrl="",t.uploadUrl="",t.region="ap-shanghai",t.cos=null,t.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},t.uploadFileType="",t.duration=900,t.tryCount=0,t.getInnerEmitterInstance().on(ms,t._init,g(t)),t;}return s(a,[{key:"_init",value:function value(){var e="".concat(this._className,"._init"),t=this.getModule(vo);if(this.TIMUploadPlugin=t.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var o=te?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=t.getPlugin(o),this.COSSDK?(this._getAuthorizationKey(),be.warn("".concat(e," v2.9.2起推荐使用 tim-upload-plugin 代替 ").concat(o,",上传更快更安全。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))):be.warn("".concat(e," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"));}}},{key:"_getAuthorizationKey",value:function value(){var e=this,t=new Va(Ba.GET_COS_AUTH_KEY),o=Math.ceil(Date.now()/1e3);this.request({protocolName:Xn,requestData:{duration:this.expiredTimeLimit}}).then(function(n){var a=n.data;be.log("".concat(e._className,"._getAuthorizationKey ok. data:"),a);var s=a.expiredTime-o;t.setMessage("requestId:".concat(a.requestId," requestTime:").concat(o," expiredTime:").concat(a.expiredTime," diff:").concat(s,"s")).setNetworkType(e.getNetworkType()).end(),!te&&a.region&&(e.region=a.region),e.appid=a.appid,e.bucketName=a.bucketName,e.ciUrl=a.ciUrl,e.directory=a.directory,e.downloadUrl=a.downloadUrl,e.uploadUrl=a.uploadUrl,e.cosOptions={secretId:a.secretId,secretKey:a.secretKey,sessionToken:a.sessionToken,expiredTime:a.expiredTime},be.log("".concat(e._className,"._getAuthorizationKey ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod();}).catch(function(o){e.probeNetwork().then(function(e){var n=m(e,2),a=n[0],s=n[1];t.setError(o,a,s).end();}),be.warn("".concat(e._className,"._getAuthorizationKey failed. error:"),o);});}},{key:"_getCosPreSigUrl",value:function value(e){var t=this,o="".concat(this._className,"._getCosPreSigUrl"),n=Math.ceil(Date.now()/1e3),a=new Va(Ba.GET_COS_PRE_SIG_URL);return this.request({protocolName:Qn,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then(function(e){t.tryCount=0;var s=e.data||{},r=s.expiredTime-n;return be.log("".concat(o," ok. data:"),s),a.setMessage("requestId:".concat(s.requestId," expiredTime:").concat(s.expiredTime," diff:").concat(r,"s")).setNetworkType(t.getNetworkType()).end(),s;}).catch(function(n){return-1===n.code&&(n.code=Ca.COS_GET_SIG_FAIL),t.probeNetwork().then(function(e){var t=m(e,2),o=t[0],s=t[1];a.setError(n,o,s).end();}),be.warn("".concat(o," failed. error:"),n),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,gs({code:Ca.COS_GET_SIG_FAIL,message:Sa.COS_GET_SIG_FAIL}));});}},{key:"_initUploaderMethod",value:function value(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin(),void(this._cosUploadMethod=function(t,o){e.timUploadPlugin.uploadFile(t,o);});this.appid&&(this.cos=te?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=te?function(t,o){e.cos.postObject(t,o);}:function(t,o){e.cos.uploadFiles(t,o);});}},{key:"onCheckTimer",value:function value(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey());}},{key:"_getAuthorization",value:function value(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime});}},{key:"upload",value:function value(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(No);switch(e.type){case D.MSG_IMAGE:return t.addTotalCount(ka),this._uploadImage(e);case D.MSG_FILE:return t.addTotalCount(ka),this._uploadFile(e);case D.MSG_AUDIO:return t.addTotalCount(ka),this._uploadAudio(e);case D.MSG_VIDEO:return t.addTotalCount(ka),this._uploadVideo(e);default:return Promise.resolve();}}},{key:"_uploadImage",value:function value(e){var o=this,n=this.getModule(ao),a=e.getElements()[0],s=n.getMessageOption(e.clientSequence);return this.doUploadImage({file:s.payload.file,to:s.to,onProgress:function onProgress(e){if(a.updatePercent(e),ot(s.onProgress))try{s.onProgress(e);}catch(t){return gs({code:Ca.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Sa.MESSAGE_ONPROGRESS_FUNCTION_ERROR});}}}).then(function(n){var s=n.location,r=n.fileType,i=n.fileSize,c=n.width,u=n.height,l=o.isPrivateNetWork()?s:ft(s);a.updateImageFormat(r);var d=Lt({originUrl:l,originWidth:c,originHeight:u,min:198}),p=Lt({originUrl:l,originWidth:c,originHeight:u,min:720});return a.updateImageInfoArray([{size:i,url:l,width:c,height:u},t({},p),t({},d)]),e;});}},{key:"_uploadFile",value:function value(e){var t=this,o=this.getModule(ao),n=e.getElements()[0],a=o.getMessageOption(e.clientSequence);return this.doUploadFile({file:a.payload.file,to:a.to,onProgress:function onProgress(e){if(n.updatePercent(e),ot(a.onProgress))try{a.onProgress(e);}catch(t){return gs({code:Ca.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Sa.MESSAGE_ONPROGRESS_FUNCTION_ERROR});}}}).then(function(o){var a=o.location,s=t.isPrivateNetWork()?a:ft(a);return n.updateFileUrl(s),e;});}},{key:"_uploadAudio",value:function value(e){var t=this,o=this.getModule(ao),n=e.getElements()[0],a=o.getMessageOption(e.clientSequence);return this.doUploadAudio({file:a.payload.file,to:a.to,onProgress:function onProgress(e){if(n.updatePercent(e),ot(a.onProgress))try{a.onProgress(e);}catch(t){return gs({code:Ca.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Sa.MESSAGE_ONPROGRESS_FUNCTION_ERROR});}}}).then(function(o){var a=o.location,s=t.isPrivateNetWork()?a:ft(a);return n.updateAudioUrl(s),e;});}},{key:"_uploadVideo",value:function value(e){var t=this,o=this.getModule(ao),n=e.getElements()[0],a=o.getMessageOption(e.clientSequence);return this.doUploadVideo({file:a.payload.file,to:a.to,onProgress:function onProgress(e){if(n.updatePercent(e),ot(a.onProgress))try{a.onProgress(e);}catch(t){return gs({code:Ca.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Sa.MESSAGE_ONPROGRESS_FUNCTION_ERROR});}}}).then(function(o){var a=o.location,s=o.snapshotInfo,r=t.isPrivateNetWork()?a:ft(a);return n.updateVideoUrl(r),Kt(s)||n.updateSnapshotInfo(s),e;});}},{key:"doUploadImage",value:function value(e){var t=this;if(!e.file)return gs({code:Ca.MESSAGE_IMAGE_SELECT_FILE_FIRST,message:Sa.MESSAGE_IMAGE_SELECT_FILE_FIRST});var o=this._checkImageType(e.file);if(!0!==o)return o;var n=this._checkImageSize(e.file);if(!0!==n)return n;var a=null;return this._setUploadFileType(Es),this.uploadByCOS(e).then(function(e){return a=e,t.isPrivateNetWork()?Nt(e.location):Nt("https://".concat(e.location));}).then(function(e){return a.width=e.width,a.height=e.height,Promise.resolve(a);});}},{key:"_checkImageType",value:function value(e){var t="";return t=te?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),ys.indexOf(t.toLowerCase())>=0||gs({code:Ca.MESSAGE_IMAGE_TYPES_LIMIT,message:Sa.MESSAGE_IMAGE_TYPES_LIMIT});}},{key:"_checkImageSize",value:function value(e){var t=0;return 0===(t=te?e.size:e.files[0].size)?gs({code:Ca.MESSAGE_FILE_IS_EMPTY,message:"".concat(Sa.MESSAGE_FILE_IS_EMPTY)}):t<20971520||gs({code:Ca.MESSAGE_IMAGE_SIZE_LIMIT,message:"".concat(Sa.MESSAGE_IMAGE_SIZE_LIMIT)});}},{key:"doUploadFile",value:function value(e){var t=null;return e.file?e.file.files[0].size>104857600?gs(t={code:Ca.MESSAGE_FILE_SIZE_LIMIT,message:Sa.MESSAGE_FILE_SIZE_LIMIT}):0===e.file.files[0].size?(t={code:Ca.MESSAGE_FILE_IS_EMPTY,message:"".concat(Sa.MESSAGE_FILE_IS_EMPTY)},gs(t)):(this._setUploadFileType(Ds),this.uploadByCOS(e)):gs(t={code:Ca.MESSAGE_FILE_SELECT_FILE_FIRST,message:Sa.MESSAGE_FILE_SELECT_FILE_FIRST});}},{key:"doUploadVideo",value:function value(e){return e.file.videoFile.size>104857600?gs({code:Ca.MESSAGE_VIDEO_SIZE_LIMIT,message:"".concat(Sa.MESSAGE_VIDEO_SIZE_LIMIT)}):0===e.file.videoFile.size?gs({code:Ca.MESSAGE_FILE_IS_EMPTY,message:"".concat(Sa.MESSAGE_FILE_IS_EMPTY)}):-1===Ts.indexOf(e.file.videoFile.type)?gs({code:Ca.MESSAGE_VIDEO_TYPES_LIMIT,message:"".concat(Sa.MESSAGE_VIDEO_TYPES_LIMIT)}):(this._setUploadFileType(Cs),te?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):oe?this.handleVideoUpload(e):void 0);}},{key:"handleVideoUpload",value:function value(e){var t=this;return new Promise(function(o,n){t.uploadByCOS(e).then(function(e){o(e);}).catch(function(){t.uploadByCOS(e).then(function(e){o(e);}).catch(function(){n(new ls({code:Ca.MESSAGE_VIDEO_UPLOAD_FAIL,message:Sa.MESSAGE_VIDEO_UPLOAD_FAIL}));});});});}},{key:"doUploadAudio",value:function value(e){return e.file?e.file.size>20971520?gs(new ls({code:Ca.MESSAGE_AUDIO_SIZE_LIMIT,message:"".concat(Sa.MESSAGE_AUDIO_SIZE_LIMIT)})):0===e.file.size?gs(new ls({code:Ca.MESSAGE_FILE_IS_EMPTY,message:"".concat(Sa.MESSAGE_FILE_IS_EMPTY)})):(this._setUploadFileType(Ss),this.uploadByCOS(e)):gs(new ls({code:Ca.MESSAGE_AUDIO_UPLOAD_FAIL,message:Sa.MESSAGE_AUDIO_UPLOAD_FAIL}));}},{key:"uploadByCOS",value:function value(e){var t=this,o="".concat(this._className,".uploadByCOS");if(!ot(this._cosUploadMethod))return be.warn("".concat(o," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin")),gs({code:Ca.COS_UNDETECTED,message:Sa.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var n=new Va(Ba.UPLOAD),a=Date.now(),s=this._getFile(e);return new Promise(function(r,i){var c=te?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),u=t;t._cosUploadMethod(c,function(e,c){var l=Object.create(null);if(c){if(e||Qe(c.files)&&c.files[0].error){var d=new ls({code:Ca.MESSAGE_FILE_UPLOAD_FAIL,message:Sa.MESSAGE_FILE_UPLOAD_FAIL});return n.setError(d,!0,t.getNetworkType()).end(),be.log("".concat(o," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(be.warn("".concat(o," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void i(d);}l.fileName=s.name,l.fileSize=s.size,l.fileType=s.type.slice(s.type.indexOf("/")+1).toLowerCase(),l.location=te?c.Location:c.files[0].data.Location;var p=Date.now()-a,_=u._formatFileSize(s.size),g=u._formatSpeed(1e3*s.size/p),h="size:".concat(_," time:").concat(p,"ms speed:").concat(g);be.log("".concat(o," success. name:").concat(s.name," ").concat(h)),r(l);var f=t.getModule(No);return f.addCost(ka,p),f.addFileSize(ka,s.size),void n.setNetworkType(t.getNetworkType()).setMessage(h).end();}var m=new ls({code:Ca.MESSAGE_FILE_UPLOAD_FAIL,message:Sa.MESSAGE_FILE_UPLOAD_FAIL});n.setError(m,!0,u.getNetworkType()).end(),be.warn("".concat(o," failed. error:"),e),403===e.statusCode&&(be.warn("".concat(o," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),i(m);});});}},{key:"_uploadWithPreSigUrl",value:function value(e){var t=this,o="".concat(this._className,"._uploadWithPreSigUrl"),n=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then(function(e){return new Promise(function(a,s){var r=new Va(Ba.UPLOAD),i=e.requestSnapshotUrl,c=void 0===i?void 0:i,u=_(e,Ir),l=Date.now();t._cosUploadMethod(u,function(e,i){var u=Object.create(null);if(e||403===i.statusCode)return r.setError(new ls(e),!0,t.getNetworkType()).end(),be.log("".concat(o," failed, error:"),e),void s(new ls({code:Ca.MESSAGE_FILE_UPLOAD_FAIL,message:Sa.MESSAGE_FILE_UPLOAD_FAIL}));var d=i.data.location||"";t.isPrivateNetWork()||0!==d.indexOf("https://")&&0!==d.indexOf("http://")||(d=d.split("//")[1]),u.fileName=n.name,u.fileSize=n.size,u.fileType=n.type.slice(n.type.indexOf("/")+1).toLowerCase(),u.location=d;var p=Date.now()-l,_=t._formatFileSize(n.size),g=t._formatSpeed(1e3*n.size/p),h="size:".concat(_,",time:").concat(p,"ms,speed:").concat(g," res:").concat(JSON.stringify(i.data));be.log("".concat(o," success name:").concat(n.name,",").concat(h)),r.setNetworkType(t.getNetworkType()).setMessage(h).end();var f=t.getModule(No);if(f.addCost(ka,p),f.addFileSize(ka,n.size),!Kt(c))return t._getSnapshotInfoByUrl(c).then(function(e){u.snapshotInfo=e,a(u);});a(u);});});});}},{key:"_getFile",value:function value(e){var t;return Qe(e.file.files)||(t=e.file.files,"filelist"===at(t))?e.file.files[0]:e.file;}},{key:"_formatFileSize",value:function value(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB";}},{key:"_formatSpeed",value:function value(e){return e<=1048576?Pt(e/1024,1)+"KB/s":Pt(e/1048576,1)+"MB/s";}},{key:"_createCosOptionsWeb",value:function value(e){var t=this._getFile(e),o=t.name,n=o.slice(o.lastIndexOf(".")),a=this._genFileName("".concat(dt(999999)).concat(n));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(a),Body:t}],SliceSize:1048576,onProgress:function onProgress(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent);}catch(o){be.warn("onProgress callback error:",o);}},onFileFinish:function onFileFinish(e,t,o){}};}},{key:"_createCosOptionsWXMiniApp",value:function value(e){var t=this._getFile(e),o=this._genFileName(t.name),n=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(o),FilePath:n,onProgress:function onProgress(t){if(be.log(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent);}catch(o){be.warn("onProgress callback error:",o);}}};}},{key:"_createCosOptionsPreSigUrl",value:function value(e){var t=this,o="",n="",a=0,s=this._getFile(e);if(te)o=this._genFileName(s.name),n=s.url,a=1;else{var r=s.name,i=r.slice(r.lastIndexOf("."));o=this._genFileName("".concat(dt(999999)).concat(i)),n=s,a=0;}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:o,uploadMethod:a,duration:this.duration}).then(function(a){var s=a.uploadUrl,r=a.downloadUrl,i=a.requestSnapshotUrl,c=void 0===i?void 0:i;return{url:s,fileType:t.uploadFileType,fileName:o,resources:n,downloadUrl:r,requestSnapshotUrl:c,onProgress:function onProgress(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent);}catch(o){be.warn("onProgress callback error:",o),be.error(o);}}};});}},{key:"_genFileName",value:function value(e){return"".concat(At(),"-").concat(e);}},{key:"_setUploadFileType",value:function value(e){this.uploadFileType=e;}},{key:"_getSnapshotInfoByUrl",value:function value(e){var t=this,o=new Va(Ba.GET_SNAPSHOT_INFO);return this.request({protocolName:Zn,requestData:{platform:this.getPlatform(),coverName:this._genFileName(dt(99999)),requestSnapshotUrl:e}}).then(function(e){var t=(e.data||{}).snapshotUrl;return o.setMessage("snapshotUrl:".concat(t)).end(),Kt(t)?{}:Nt(t).then(function(e){return{snapshotUrl:t,snapshotWidth:e.width,snapshotHeight:e.height};});}).catch(function(e){return be.warn("".concat(t._className,"._getSnapshotInfoByUrl failed. error:"),e),o.setCode(e.errorCode).setMessage(e.errorInfo).end(),{};});}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset"));}}]),a;}(Ro),Tr=["downloadKey","pbDownloadKey","messageList"],Er=function(){function e(t){n(this,e),this._className="MergerMessageHandler",this._messageModule=t;}return s(e,[{key:"uploadMergerMessage",value:function value(e,t){var o=this;be.debug("".concat(this._className,".uploadMergerMessage message:"),e,"messageBytes:".concat(t));var n=e.payload.messageList,a=n.length,s=new Va(Ba.UPLOAD_MERGER_MESSAGE);return this._messageModule.request({protocolName:ra,requestData:{messageList:n}}).then(function(e){be.debug("".concat(o._className,".uploadMergerMessage ok. response:"),e.data);var n=e.data,r=n.pbDownloadKey,i=n.downloadKey,c={pbDownloadKey:r,downloadKey:i,messageNumber:a};return s.setNetworkType(o._messageModule.getNetworkType()).setMessage("".concat(a,"-").concat(t,"-").concat(i)).end(),c;}).catch(function(e){throw be.warn("".concat(o._className,".uploadMergerMessage failed. error:"),e),o._messageModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];s.setError(e,n,a).end();}),e;});}},{key:"downloadMergerMessage",value:function value(e){var o=this;be.debug("".concat(this._className,".downloadMergerMessage message:"),e);var n=e.payload.downloadKey,a=new Va(Ba.DOWNLOAD_MERGER_MESSAGE);return a.setMessage("downloadKey:".concat(n)),this._messageModule.request({protocolName:ia,requestData:{downloadKey:n}}).then(function(n){if(be.debug("".concat(o._className,".downloadMergerMessage ok. response:"),n.data),ot(e.clearElement)){var s=e.payload,r=(s.downloadKey,s.pbDownloadKey,s.messageList,_(s,Tr));e.clearElement(),e.setElement({type:e.type,content:t({messageList:n.data.messageList},r)});}else{var i=[];n.data.messageList.forEach(function(e){if(!Kt(e)){var t=new es(e);i.push(t);}}),e.payload.messageList=i,e.payload.downloadKey="",e.payload.pbDownloadKey="";}return a.setNetworkType(o._messageModule.getNetworkType()).end(),e;}).catch(function(e){throw be.warn("".concat(o._className,".downloadMergerMessage failed. key:").concat(n," error:"),e),o._messageModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0],s=o[1];a.setError(e,n,s).end();}),e;});}},{key:"createMergerMessagePack",value:function value(e,t,o){return e.conversationType===D.CONV_C2C?this._createC2CMergerMessagePack(e,t,o):this._createGroupMergerMessagePack(e,t,o);}},{key:"_createC2CMergerMessagePack",value:function value(e,t,o){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var a="";ze(e.cloudCustomData)&&e.cloudCustomData.length>0&&(a=e.cloudCustomData);var s=o.pbDownloadKey,r=o.downloadKey,i=o.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,p=this._messageModule.getModule(ro);return{protocolName:wo,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:s,downloadKey:r,title:u,abstractList:l,compatibleText:d,messageNumber:i}}],cloudCustomData:a,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:p&&p.isOnlineMessage(e,t)?0:void 0,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0}};}},{key:"_createGroupMergerMessagePack",value:function value(e,t,o){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var a="";ze(e.cloudCustomData)&&e.cloudCustomData.length>0&&(a=e.cloudCustomData);var s=o.pbDownloadKey,r=o.downloadKey,i=o.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,p=this._messageModule.getModule(io);return{protocolName:Fo,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:s,downloadKey:r,title:u,abstractList:l,compatibleText:d,messageNumber:i}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:a,onlineOnlyFlag:p&&p.isOnlineMessage(e,t)?1:0,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||p.isMessageFromOrToAVChatroom(e.to)?0:1}};}}]),e;}(),Cr={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},Sr=[Ca.MESSAGE_ONPROGRESS_FUNCTION_ERROR,Ca.MESSAGE_IMAGE_SELECT_FILE_FIRST,Ca.MESSAGE_IMAGE_TYPES_LIMIT,Ca.MESSAGE_FILE_IS_EMPTY,Ca.MESSAGE_IMAGE_SIZE_LIMIT,Ca.MESSAGE_FILE_SELECT_FILE_FIRST,Ca.MESSAGE_FILE_SIZE_LIMIT,Ca.MESSAGE_VIDEO_SIZE_LIMIT,Ca.MESSAGE_VIDEO_TYPES_LIMIT,Ca.MESSAGE_AUDIO_UPLOAD_FAIL,Ca.MESSAGE_AUDIO_SIZE_LIMIT,Ca.COS_UNDETECTED];var Dr=function(e){i(a,e);var o=f(a);function a(e){var t;return n(this,a),(t=o.call(this,e))._className="MessageModule",t._messageOptionsMap=new Map(),t._mergerMessageHandler=new Er(g(t)),t;}return s(a,[{key:"createTextMessage",value:function value(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var o=new ns(e),n="string"==typeof e.payload?e.payload:e.payload.text,a=new Ka({text:n}),s=this._getNickAndAvatarByUserID(t);return o.setElement(a),o.setNickAndAvatar(s),o.setNameCard(this._getNameCardByGroupID(o)),o;}},{key:"createImageMessage",value:function value(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var o=new ns(e);if(te){var n=e.payload.file;if(je(n))return void be.warn("小程序环境下调用 createImageMessage 接口时,payload.file 不支持传入 File 对象");var a=n.tempFilePaths[0],s={url:a,name:a.slice(a.lastIndexOf("/")+1),size:n.tempFiles&&n.tempFiles[0].size||1,type:a.slice(a.lastIndexOf(".")+1).toLowerCase()};e.payload.file=s;}else if(oe)if(je(e.payload.file)){var r=e.payload.file;e.payload.file={files:[r]};}else if(Xe(e.payload.file)&&"undefined"!=typeof uni){var i=e.payload.file.tempFiles[0];e.payload.file={files:[i]};}var c=new Ha({imageFormat:we.UNKNOWN,uuid:this._generateUUID(),file:e.payload.file}),u=this._getNickAndAvatarByUserID(t);return o.setElement(c),o.setNickAndAvatar(u),o.setNameCard(this._getNameCardByGroupID(o)),this._messageOptionsMap.set(o.clientSequence,e),o;}},{key:"createAudioMessage",value:function value(e){var t=e.payload.file;if(te){var o={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=o;}var n=this.getMyUserID();e.currentUser=n,e.senderTinyID=this.getMyTinyID();var a=new ns(e),s=new Wa({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size,url:t.tempFilePath,uuid:this._generateUUID()}),r=this._getNickAndAvatarByUserID(n);return a.setElement(s),a.setNickAndAvatar(r),a.setNameCard(this._getNameCardByGroupID(a)),this._messageOptionsMap.set(a.clientSequence,e),a;}},{key:"createVideoMessage",value:function value(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="https://web.sdk.qcloud.com/im/assets/images/transparent.png",e.payload.file.thumbSize=1668;var o={};if(te){if(Q)return void be.warn("createVideoMessage 不支持在支付宝小程序环境下使用");if(je(e.payload.file))return void be.warn("小程序环境下调用 createVideoMessage 接口时,payload.file 不支持传入 File 对象");var n=e.payload.file;o.url=n.tempFilePath,o.name=n.tempFilePath.slice(n.tempFilePath.lastIndexOf("/")+1),o.size=n.size,o.second=n.duration,o.type=n.tempFilePath.slice(n.tempFilePath.lastIndexOf(".")+1).toLowerCase();}else if(oe){if(je(e.payload.file)){var a=e.payload.file;e.payload.file.files=[a];}else if(Xe(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFile;e.payload.file.files=[s];}var r=e.payload.file;o.url=window.URL.createObjectURL(r.files[0]),o.name=r.files[0].name,o.size=r.files[0].size,o.second=r.files[0].duration||0,o.type=r.files[0].type.split("/")[1];}e.payload.file.videoFile=o;var i=new ns(e),c=new Qa({videoFormat:o.type,videoSecond:Pt(o.second,0),videoSize:o.size,remoteVideoUrl:"",videoUrl:o.url,videoUUID:this._generateUUID(),thumbUUID:this._generateUUID(),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),u=this._getNickAndAvatarByUserID(t);return i.setElement(c),i.setNickAndAvatar(u),i.setNameCard(this._getNameCardByGroupID(i)),this._messageOptionsMap.set(i.clientSequence,e),i;}},{key:"createCustomMessage",value:function value(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var o=new ns(e),n=new Xa({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),a=this._getNickAndAvatarByUserID(t);return o.setElement(n),o.setNickAndAvatar(a),o.setNameCard(this._getNameCardByGroupID(o)),o;}},{key:"createFaceMessage",value:function value(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var o=new ns(e),n=new xa(e.payload),a=this._getNickAndAvatarByUserID(t);return o.setElement(n),o.setNickAndAvatar(a),o.setNameCard(this._getNameCardByGroupID(o)),o;}},{key:"createMergerMessage",value:function value(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var o=this._getNickAndAvatarByUserID(t),n=new ns(e),a=new ts(e.payload);return n.setElement(a),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n.setRelayFlag(!0),n;}},{key:"createForwardMessage",value:function value(e){var t=e.to,o=e.conversationType,n=e.priority,a=e.payload,s=e.needReadReceipt,r=this.getMyUserID(),i=this._getNickAndAvatarByUserID(r);if(a.type===D.MSG_GRP_TIP)return gs(new ls({code:Ca.MESSAGE_FORWARD_TYPE_INVALID,message:Sa.MESSAGE_FORWARD_TYPE_INVALID}));var c={to:t,conversationType:o,conversationID:"".concat(o).concat(t),priority:n,isPlaceMessage:0,status:Yt.UNSEND,currentUser:r,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||a.cloudCustomData||"",needReadReceipt:s},u=new ns(c);return u.setElement(a.getElements()[0]),u.setNickAndAvatar(i),u.setNameCard(this._getNameCardByGroupID(a)),u.setRelayFlag(!0),u;}},{key:"downloadMergerMessage",value:function value(e){return this._mergerMessageHandler.downloadMergerMessage(e);}},{key:"createFileMessage",value:function value(e){if(te){var o,n="createFileMessage 接口不可用!";if(!$&&!z&&!Z)return void be.warn("小程序目前不支持选择文件,".concat(n));var a=ne.getSystemInfoSync().SDKVersion;if($&&Rt(a,o="2.5.0")<0)return void be.warn("wx.chooseMessageFile 需要基础库".concat(o,"或更高版本,").concat(n));if(z&&Rt(a,o="1.18.0")<0)return void be.warn("qq.chooseMessageFile 需要基础库".concat(o,"或更高版本,").concat(n));}if(oe||Z){if(je(e.payload.file)){var s=e.payload.file;e.payload.file={files:[s]};}else if(Xe(e.payload.file)&&"undefined"!=typeof uni){var r=e.payload.file,i=r.tempFiles,c=r.files,u=null;Qe(i)?u=i[0]:Qe(c)&&(u=c[0]),e.payload.file={files:[u]};}}else if($||z){var l=e.payload.file.tempFiles,d=t(t({},l[0]),{},{url:l[0].path});e.payload.file={files:[d]};}var p=this.getMyUserID();e.currentUser=p,e.senderTinyID=this.getMyTinyID();var _=new ns(e),g=new Ja({uuid:this._generateUUID(),file:e.payload.file}),h=this._getNickAndAvatarByUserID(p);return _.setElement(g),_.setNickAndAvatar(h),_.setNameCard(this._getNameCardByGroupID(_)),this._messageOptionsMap.set(_.clientSequence,e),_;}},{key:"createLocationMessage",value:function value(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var o=new ns(e),n=new Za(e.payload),a=this._getNickAndAvatarByUserID(t);return o.setElement(n),o.setNickAndAvatar(a),o.setNameCard(this._getNameCardByGroupID(o)),o;}},{key:"_onCannotFindModule",value:function value(){return gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"sendMessageInstance",value:function value(e,t){var o,n=this,a=null;switch(e.conversationType){case D.CONV_C2C:if(!(a=this.getModule(ro)))return this._onCannotFindModule();break;case D.CONV_GROUP:if(!(a=this.getModule(io)))return this._onCannotFindModule();if(yt({groupID:e.to})){var s=a.getLocalGroupProfile(e.to);if(s&&s.isSupportTopic)return gs({code:Ca.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL,message:Sa.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL});if(!Ze(t)&&!Ze(t.messageControlInfo))return gs({code:Ca.MESSAGE_CONTROL_INFO_FAIL,message:Sa.MESSAGE_CONTROL_INFO_FAIL});}break;default:return gs({code:Ca.MESSAGE_SEND_INVALID_CONVERSATION_TYPE,message:Sa.MESSAGE_SEND_INVALID_CONVERSATION_TYPE});}var r=this.getModule(Mo),i=this.getModule(io);return r.upload(e).then(function(){n._getSendMessageSpecifiedKey(e)===La&&n.getModule(No).addSuccessCount(ka);return i.guardForAVChatRoom(e).then(function(){if(!e.isSendable())return gs({code:Ca.MESSAGE_FILE_URL_IS_EMPTY,message:Sa.MESSAGE_FILE_URL_IS_EMPTY});n._addSendMessageTotalCount(e),o=Date.now();var s=function(e){var t="utf-8";oe&&document&&(t=document.charset.toLowerCase());var o,n,a=0;if(n=e.length,"utf-8"===t||"utf8"===t)for(var s=0;s<n;s++){(o=e.codePointAt(s))<=127?a+=1:o<=2047?a+=2:o<=65535?a+=3:(a+=4,s++);}else if("utf-16"===t||"utf16"===t)for(var r=0;r<n;r++){(o=e.codePointAt(r))<=65535?a+=2:(a+=4,r++);}else a=e.replace(/[^\x00-\xff]/g,"aa").length;return a;}(JSON.stringify(e));return e.type===D.MSG_MERGER&&s>7e3?n._mergerMessageHandler.uploadMergerMessage(e,s).then(function(o){var a=n._mergerMessageHandler.createMergerMessagePack(e,t,o);return n.request(a);}):(n.getModule(po).setMessageRandom(e),e.conversationType===D.CONV_C2C||e.conversationType===D.CONV_GROUP?a.sendMessage(e,t):void 0);}).then(function(s){var r=s.data,i=r.time,c=r.sequence,u=r.readReceiptCode;$e(u)&&0!==u&&(new Va(Ba.SEND_MESSAGE_WITH_RECEIPT).setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(c," readReceiptCode:").concat(u)).end(),be.warn("".concat(n._className,".sendMessageInstance readReceiptCode:").concat(u," message:").concat(us[u])));n._addSendMessageSuccessCount(e,o),n._messageOptionsMap.delete(e.clientSequence);var l=n.getModule(po);e.status=Yt.SUCCESS,e.time=i;var d=!1;if(e.conversationType===D.CONV_GROUP)e.sequence=c;else if(e.conversationType===D.CONV_C2C){var p=l.getLatestMessageSentByMe(e.conversationID);if(p){var _=p.nick,g=p.avatar;_===e.nick&&g===e.avatar||(d=!0);}}if(d&&l.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),a.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{l.appendToMessageList(e);var h=e;Xe(t)&&Xe(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,h=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0));var f=e.conversationType;if(Tt(e.to))f=D.CONV_TOPIC,n.getModule(lo).onMessageSent({groupID:wt(e.to),topicID:e.to,lastMessage:h});l.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:f,subType:e.conversationSubType,lastMessage:h}]});}return e.getRelayFlag()||"TIMImageElem"!==e.type||kt(e.payload.imageInfoArray),as({message:e});});}).catch(function(t){return n._onSendMessageFailed(e,t);});}},{key:"_onSendMessageFailed",value:function value(e,t){e.status=Yt.FAIL,this.getModule(po).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var o=new Va(Ba.SEND_MESSAGE);return o.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then(function(e){var n=m(e,2),a=n[0],s=n[1];o.setError(t,a,s).end();}),be.error("".concat(this._className,"._onSendMessageFailed error:"),t),gs(new ls({code:t&&t.code?t.code:Ca.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:Sa.MESSAGE_SEND_FAIL,data:{message:e}}));}},{key:"_getSendMessageSpecifiedKey",value:function value(e){if([D.MSG_IMAGE,D.MSG_AUDIO,D.MSG_VIDEO,D.MSG_FILE].includes(e.type))return La;if(e.conversationType===D.CONV_C2C)return Aa;if(e.conversationType===D.CONV_GROUP){var t=this.getModule(io).getLocalGroupProfile(e.to);if(!t)return;var o=t.type;return It(o)?Ra:Oa;}}},{key:"_addSendMessageTotalCount",value:function value(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(No).addTotalCount(t);}},{key:"_addSendMessageSuccessCount",value:function value(e,t){var o=Math.abs(Date.now()-t),n=this._getSendMessageSpecifiedKey(e);if(n){var a=this.getModule(No);a.addSuccessCount(n),a.addCost(n,o);}}},{key:"_addSendMessageFailCountOnUser",value:function value(e,t){var o,n,a=t.code,s=void 0===a?-1:a,r=this.getModule(No),i=this._getSendMessageSpecifiedKey(e);i===La&&(o=s,n=!1,Sr.includes(o)&&(n=!0),n)?r.addFailedCountOfUserSide(ka):function(e){var t=!1;return Object.values(Cr).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t;}(s)&&i&&r.addFailedCountOfUserSide(i);}},{key:"resendMessage",value:function value(e){return e.isResend=!0,e.status=Yt.UNSEND,this.sendMessageInstance(e);}},{key:"revokeMessage",value:function value(e){var t=this,o=null;if(e.conversationType===D.CONV_C2C){if(!(o=this.getModule(ro)))return this._onCannotFindModule();}else if(e.conversationType===D.CONV_GROUP&&!(o=this.getModule(io)))return this._onCannotFindModule();var n=new Va(Ba.REVOKE_MESSAGE);return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),o.revokeMessage(e).then(function(o){var a=o.data.recallRetList;if(!Kt(a)&&0!==a[0].retCode){var s=new ls({code:a[0].retCode,message:us[a[0].retCode]||Sa.MESSAGE_REVOKE_FAIL,data:{message:e}});return n.setCode(s.code).setMoreMessage(s.message).end(),gs(s);}return be.info("".concat(t._className,".revokeMessage ok. ID:").concat(e.ID)),e.isRevoked=!0,n.end(),t.getModule(po).onMessageRevoked([e]),as({message:e});}).catch(function(o){t.probeNetwork().then(function(e){var t=m(e,2),a=t[0],s=t[1];n.setError(o,a,s).end();});var a=new ls({code:o&&o.code?o.code:Ca.MESSAGE_REVOKE_FAIL,message:o&&o.message?o.message:Sa.MESSAGE_REVOKE_FAIL,data:{message:e}});return be.warn("".concat(t._className,".revokeMessage failed. error:"),o),gs(a);});}},{key:"deleteMessage",value:function value(e){var t=this,o=null,n=e[0],a=n.conversationID,s="",r=[],i=[];if(n.conversationType===D.CONV_C2C)o=this.getModule(ro),s=a.replace(D.CONV_C2C,""),e.forEach(function(e){e&&e.status===Yt.SUCCESS&&e.conversationID===a&&(e._onlineOnlyFlag||r.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),i.push(e));});else if(n.conversationType===D.CONV_GROUP)o=this.getModule(io),s=a.replace(D.CONV_GROUP,""),e.forEach(function(e){e&&e.status===Yt.SUCCESS&&e.conversationID===a&&(e._onlineOnlyFlag||r.push("".concat(e.sequence)),i.push(e));});else if(n.conversationType===D.CONV_SYSTEM)return gs({code:Ca.CANNOT_DELETE_GROUP_SYSTEM_NOTICE,message:Sa.CANNOT_DELETE_GROUP_SYSTEM_NOTICE});if(!o)return this._onCannotFindModule();if(0===r.length)return this._onMessageDeleted(i);r.length>30&&(r=r.slice(0,30),i=i.slice(0,30));var c=new Va(Ba.DELETE_MESSAGE);return c.setMessage("to:".concat(s," count:").concat(r.length)),o.deleteMessage({to:s,keyList:r}).then(function(e){return c.end(),be.info("".concat(t._className,".deleteMessage ok")),t._onMessageDeleted(i);}).catch(function(e){t.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];c.setError(e,n,a).end();}),be.warn("".concat(t._className,".deleteMessage failed. error:"),e);var o=new ls({code:e&&e.code?e.code:Ca.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:Sa.MESSAGE_DELETE_FAIL});return gs(o);});}},{key:"_onMessageDeleted",value:function value(e){return this.getModule(po).onMessageDeleted(e),_s({messageList:e});}},{key:"modifyRemoteMessage",value:function value(e){var t=this,o=null,n=e.conversationType,a=e.to;if(this.getModule(io).isMessageFromOrToAVChatroom(a))return gs({code:Ca.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,message:Sa.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,data:{message:e}});n===D.CONV_C2C?o=this.getModule(ro):n===D.CONV_GROUP&&(o=this.getModule(io));var s=new Va(Ba.MODIFY_MESSAGE);return s.setMessage("to:".concat(a)),o.modifyRemoteMessage(e).then(function(o){s.end(),be.info("".concat(t._className,".modifyRemoteMessage ok"));var n=t._onModifyRemoteMessageResp(e,o.data);return as({message:n});}).catch(function(o){if(s.setCode(o.code).setMoreMessage(o.message).end(),be.warn("".concat(t._className,".modifyRemoteMessage failed. error:"),o),20027===o.code){var n=t._onModifyRemoteMessageResp(e,o.data);return gs({code:Ca.MESSAGE_MODIFY_CONFLICT,message:Sa.MESSAGE_MODIFY_CONFLICT,data:{message:n}});}return gs({code:o.code,message:o.message,data:{message:e}});});}},{key:"_onModifyRemoteMessageResp",value:function value(e,t){be.debug("".concat(this._className,"._onModifyRemoteMessageResp options:"),t);var o=e.conversationType,n=e.from,a=e.to,s=e.random,r=e.sequence,i=e.time,c=t.elements,u=t.messageVersion,l=t.cloudCustomData,d=void 0===l?"":l;return this.getModule(po).onMessageModified({conversationType:o,from:n,to:a,time:i,random:s,sequence:r,elements:c,cloudCustomData:d,messageVersion:u});}},{key:"_generateUUID",value:function value(){var e=this.getModule(_o);return"".concat(e.getSDKAppID(),"-").concat(e.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t){e+=pt[Math.floor(Math.random()*_t)];}return e;}());}},{key:"getMessageOption",value:function value(e){return this._messageOptionsMap.get(e);}},{key:"_getNickAndAvatarByUserID",value:function value(e){return this.getModule(so).getNickAndAvatarByUserID(e);}},{key:"_getNameCardByGroupID",value:function value(e){if(e.conversationType===D.CONV_GROUP){var t=this.getModule(io);if(t)return t.getMyNameCardByGroupID(e.to);}return"";}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._messageOptionsMap.clear();}}]),a;}(Ro),Nr=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="PluginModule",a.plugins={},a;}return s(o,[{key:"registerPlugin",value:function value(e){var t=this;Object.keys(e).forEach(function(o){t.plugins[o]=e[o];}),new Va(Ba.REGISTER_PLUGIN).setMessage("".concat(Object.keys(e))).end();}},{key:"getPlugin",value:function value(e){return this.plugins[e];}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset"));}}]),o;}(Ro),Ar=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="SyncUnreadMessageModule",a._cookie="",a._onlineSyncFlag=!1,a.getInnerEmitterInstance().on(ms,a._onLoginSuccess,g(a)),a;}return s(o,[{key:"_onLoginSuccess",value:function value(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0});}},{key:"_startSync",value:function value(e){var t=this,o=e.cookie,n=e.syncFlag,a=e.isOnlineSync;be.log("".concat(this._className,"._startSync cookie:").concat(o," syncFlag:").concat(n," isOnlineSync:").concat(a)),this.request({protocolName:Uo,requestData:{cookie:o,syncFlag:n,isOnlineSync:a}}).then(function(e){var o=e.data,n=o.cookie,a=o.syncFlag,s=o.eventArray,r=o.messageList,i=o.C2CRemainingUnreadList,c=o.C2CPairUnreadList;if(t._cookie=n,Kt(n));else if(0===a||1===a){if(s)t.getModule(yo).onMessage({head:{},body:{eventArray:s,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!1}});t.getModule(ro).onNewC2CMessage({dataList:r,isInstantMessage:!1,C2CRemainingUnreadList:i,C2CPairUnreadList:c}),t._startSync({cookie:n,syncFlag:a,isOnlineSync:0});}else if(2===a){if(s)t.getModule(yo).onMessage({head:{},body:{eventArray:s,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!0}});t.getModule(ro).onNewC2CMessage({dataList:r,isInstantMessage:t._onlineSyncFlag,C2CRemainingUnreadList:i,C2CPairUnreadList:c});}}).catch(function(e){be.error("".concat(t._className,"._startSync failed. error:"),e);});}},{key:"startOnlineSync",value:function value(){be.log("".concat(this._className,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1});}},{key:"startSyncOnReconnected",value:function value(){be.log("".concat(this._className,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0});}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._onlineSyncFlag=!1,this._cookie="";}}]),o;}(Ro),Or={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList",topicID:"TopicId",customData:"CustomString",isSupportTopic:"SupportTopic",isWebUniapp:"is_web_uniapp"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"hasChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount",TopicId:"topicID",MillionGroupFlag:"communityType",SupportTopic:"isSupportTopic",MsgTopicNewInfo:"newTopicInfo",ShutupAll:"muteAllMembers",CustomString:"customData",TopicFaceUrl:"avatar",TopicIntroduction:"introduction",TopicNotification:"notification",TopicIdArray:"topicIDList",MsgVersion:"messageVersion",C2cMsgModNotifys:"c2cMessageModified",GroupMsgModNotifys:"groupMessageModified",ApplyJoinOption:"joinOption",MsgFlag:"messageRemindType",AtInfoList:"groupAtInfoList",AtFlagList:"groupAtType",AtMsgSeq:"sequence",BanDuration:"duration",BanDescription:"reason"},ignoreKeyWord:["C2C","ID","USP"]};function Rr(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var o;return 0===(e=Array.isArray(e)?e.map(function(e){return e.trim();}).filter(function(e){return e.length;}).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Lr(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(e,t){return t.toUpperCase();}).replace(/\d+(\w|$)/g,function(e){return e.toUpperCase();}),o=e,t.pascalCase?o.charAt(0).toUpperCase()+o.slice(1):o);}var Lr=function Lr(e){for(var t=!1,o=!1,n=!1,a=0;a<e.length;a++){var s=e[a];t&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(e=e.slice(0,a)+"-"+e.slice(a),t=!1,n=o,o=!0,a++):o&&n&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(e=e.slice(0,a-1)+"-"+e.slice(a-1),n=o,o=!1,t=!0):(t=s.toLowerCase()===s&&s.toUpperCase()!==s,n=o,o=s.toUpperCase()===s&&s.toLowerCase()!==s);}return e;};function kr(e,t){var o=0;return function e(t,n){if(++o>100)return o--,t;if(Qe(t)){var a=t.map(function(t){return Je(t)?e(t,n):t;});return o--,a;}if(Je(t)){var s=(r=t,i=function i(e,t){if(!st(t))return!1;if((a=t)!==Rr(a))for(var o=0;o<Or.ignoreKeyWord.length&&!t.includes(Or.ignoreKeyWord[o]);o++){;}var a;return Ze(n[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+Rr(e).slice(1);}(t):n[t];},c=Object.create(null),Object.keys(r).forEach(function(e){var t=i(r[e],e);t&&(c[t]=r[e]);}),c);return s=Dt(s,function(t,o){return Qe(t)||Je(t)?e(t,n):t;}),o--,s;}var r,i,c;}(e,t);}function Gr(e,t){if(Qe(e))return e.map(function(e){return Je(e)?Gr(e,t):e;});if(Je(e)){var o=(n=e,a=function a(e,o){return Ze(t[o])?Rr(o):t[o];},s={},Object.keys(n).forEach(function(e){s[a(n[e],e)]=n[e];}),s);return o=Dt(o,function(e){return Qe(e)||Je(e)?Gr(e,t):e;});}var n,a,s;}var Pr=String.fromCharCode,Ur=function Ur(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var o=0|e.charCodeAt(1);if(56320<=o&&o<=57343){if((t=(t<<10)+o-56613888|0)>65535)return Pr(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t);}else t=65533;}else t<=57343&&(t=65533);return t<=2047?Pr(192|t>>>6,128|63&t):Pr(224|t>>>12,128|t>>>6&63,128|63&t);},br=function br(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,Ur),o=0|t.length,n=new Uint8Array(o),a=0;a<o;a=a+1|0){n[a]=0|t.charCodeAt(a);}return n;},wr=function wr(e){for(var t=new Uint8Array(e),o="",n=0,a=t.length;n<a;){var s=t[n],r=0,i=0;if(s<=127?(r=0,i=255&s):s<=223?(r=1,i=31&s):s<=239?(r=2,i=15&s):s<=244&&(r=3,i=7&s),a-n-r>0)for(var c=0;c<r;){i=i<<6|63&(s=t[n+c+1]),c+=1;}else i=65533,r=a-n;o+=String.fromCodePoint(i),n+=r+1;}return o;},Fr=function(){function e(t){n(this,e),this._handler=t;var o=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=dt(),this._handler.getIsWorkerEnabled()){var a=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) { if (event.data.cmd === "start") { const url = event.data.url; _socket = new WebSocket(url); _socket.binaryType = "arraybuffer"; _socket.onopen = function() { postMessage({ callback: "onOpen" }); }; _socket.onclose = function(e) { postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } }); }; _socket.onmessage = function(e) { postMessage({ callback: "onMessage", data: e.data }); }; _socket.onerror = function(e) { postMessage({ callback: "onError", e: { isTrusted: "true" } }); }; } else if (event.data.cmd === "sendMessage") { if (_socket !== null) { _socket.send(event.data.data); } } else if (event.data.cmd === "stop") { if (_socket !== null) { _socket.close(event.data.code); _socket = null; } }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(a);var s=this;this._workerSocket.onmessage=function(e){var t=e.data,o=t.callback,n=t.e;"onOpen"===o?s._onOpen():"onClose"===o?s._onClose(n):"onError"===o?s._onError(n):"onMessage"===o&&s._onMessage(e.data);},this._workerSocket.postMessage({cmd:"start",id:this._id,url:o});}else te?Q?(ne.connectSocket({url:o,header:{"content-type":"application/json"}}),ne.onSocketClose(this._onClose.bind(this)),ne.onSocketOpen(this._onOpen.bind(this)),ne.onSocketMessage(this._onMessage.bind(this)),ne.onSocketError(this._onError.bind(this))):(this._socket=ne.connectSocket({url:o,header:{"content-type":"application/json"},complete:function complete(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):oe&&(this._socket=new WebSocket(o),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame();}return s(e,[{key:"getID",value:function value(){return this._id;}},{key:"_onOpen",value:function value(){this._handler.onOpen({id:this._id});}},{key:"_onClose",value:function value(e){this._handler.onClose({id:this._id,e:e});}},{key:"_onMessage",value:function value(e){this._handler.onMessage({data:this._canIUseBinaryFrame?wr(e.data):e.data});}},{key:"_onError",value:function value(e){this._handler.onError({id:this._id,e:e});}},{key:"setIsWorkerEnabled",value:function value(e){this._isWorkerEnabled=!0;}},{key:"close",value:function value(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),Q)return ne.offSocketClose(),ne.offSocketMessage(),ne.offSocketOpen(),ne.offSocketError(),void ne.closeSocket();this._socket&&(te?(this._socket.onClose(function(){}),this._socket.onOpen(function(){}),this._socket.onMessage(function(){}),this._socket.onError(function(){})):oe&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),X?this._socket.close({code:e}):this._socket.close(e),this._socket=null);}},{key:"send",value:function value(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?br(e.data).buffer:e.data});else{if(Q)return void ne.sendSocketMessage({data:e.data,fail:function fail(){e.fail&&e.requestID&&e.fail(e.requestID);}});this._socket&&(te?this._socket.send({data:this._canIUseBinaryFrame?br(e.data).buffer:e.data,fail:function fail(){e.fail&&e.requestID&&e.fail(e.requestID);}}):oe&&this._socket.send(this._canIUseBinaryFrame?br(e.data).buffer:e.data));}}}]),e;}(),qr=4e3,Vr=4001,Br=["keyMap"],Kr=["keyMap"],Hr="connected",xr="connecting",Wr="disconnected",Yr=function(){function e(t){n(this,e),this._channelModule=t,this._className="SocketHandler",this._promiseMap=new Map(),this._readyState=Wr,this._simpleRequestMap=new Map(),this.MAX_SIZE=100,this._startSequence=dt(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection();}return s(e,[{key:"_setWebsocketHost",value:function value(){var e=this._channelModule.getModule(_o),t=b;this._channelModule.isOversea()&&(t=w),e.isSingaporeSite()?t=F:e.isKoreaSite()?t=q:e.isGermanySite()?t=V:e.isIndiaSite()&&(t=B),K.HOST.setCurrent(t);}},{key:"_initConnection",value:function value(){Ze(K.HOST.CURRENT.BACKUP)||""===this._url?this._url=K.HOST.CURRENT.DEFAULT:this._url===K.HOST.CURRENT.DEFAULT?this._url=K.HOST.CURRENT.BACKUP:this._url===K.HOST.CURRENT.BACKUP&&(this._url=K.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(_o).getProxyServer();Kt(e)||(this._url=e),this._connect(),this._nextPingTs=0;}},{key:"onCheckTimer",value:function value(e){e%1==0&&this._checkPromiseMap();}},{key:"_checkPromiseMap",value:function value(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach(function(t,o){var n=t.reject,a=t.timestamp,s=15e3;-1!==o.indexOf(Lo)&&(s=9e4),Date.now()-a>=s&&(be.log("".concat(e._className,"._checkPromiseMap request timeout, delete requestID:").concat(o)),e._promiseMap.delete(o),n(new ls({code:Ca.NETWORK_TIMEOUT,message:Sa.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(o));});}},{key:"onOpen",value:function value(e){if(""!==this._readyState){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var o=Date.now()-this._startTs;be.log("".concat(this._className,"._onOpen cost ").concat(o," ms. socketID:").concat(t)),new Va(Ba.WS_ON_OPEN).setMessage(o).setCostTime(o).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=Hr,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen());}}},{key:"onClose",value:function value(e){var t=new Va(Ba.WS_ON_CLOSE),o=e.id,n=e.e,a="sourceSocketID:".concat(o," currentSocketID:").concat(this._socketID," code:").concat(n.code," reason:").concat(n.reason),s=0;0!==this._onOpenTs&&(s=Date.now()-this._onOpenTs),t.setMessage(s).setCostTime(s).setMoreMessage(a).setCode(n.code).end(),be.log("".concat(this._className,"._onClose ").concat(a," onlineTime:").concat(s)),o===this._socketID&&(this._readyState=Wr,s<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose());}},{key:"onError",value:function value(e){var t=e.id,o=e.e,n="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new Va(Ba.WS_ON_ERROR).setMessage(o.errMsg||ut(o)).setMoreMessage(n).setLevel("error").end(),be.warn("".concat(this._className,"._onError"),o,n),t===this._socketID&&(this._readyState="",this._channelModule.onError());}},{key:"onMessage",value:function value(e){var t;try{t=JSON.parse(e.data);}catch(u){new Va(Ba.JSON_PARSE_ERROR).setMessage(e.data).end();}if(t&&t.head){var o=this._getRequestIDFromHead(t.head),n=Gt(t.head),a=Gr(t.body,this._getResponseKeyMap(n));if(be.debug("".concat(this._className,".onMessage ret:").concat(JSON.stringify(a)," requestID:").concat(o," has:").concat(this._promiseMap.has(o))),this._setNextPingTs(),this._promiseMap.has(o)){var s=this._promiseMap.get(o),r=s.resolve,i=s.reject,c=s.timestamp;return this._promiseMap.delete(o),this._calcRTT(c),void(a.errorCode&&0!==a.errorCode?(this._channelModule.onErrorCodeNotZero(a),i(new ls({code:a.errorCode,message:a.errorInfo||"",data:o.includes(Xo)||o.includes(Fn)?{elements:a.elements,messageVersion:a.messageVersion,cloudCustomData:a.cloudCustomData}:void 0}))):r(as(a)));}this._channelModule.onMessage({head:t.head,body:a});}}},{key:"_calcRTT",value:function value(e){var t=Date.now()-e;this._channelModule.getModule(No).addRTT(t);}},{key:"_connect",value:function value(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Fr(this),this._socketID=this._socket.getID(),this._readyState=xr,be.log("".concat(this._className,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new Va(Ba.WS_CONNECT).setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end();}},{key:"getURL",value:function value(){var e=this._channelModule.getModule(_o);e.isDevMode()&&(this._canIUseBinaryFrame=!1);var t=Ot();(Q||$&&"windows"===t||Z)&&(this._canIUseBinaryFrame=!1);var o=-1;"ios"===t?o=de||-1:"android"===t&&(o=_e||-1);var n=this._channelModule.getPlatform(),a=e.getSDKAppID(),s=e.getInstanceID();return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?sdkappid=").concat(a,"&instanceid=").concat(s,"&random=").concat(this._getRandom(),"&platform=").concat(n,"&host=").concat(t,"&version=").concat(o):"".concat(this._url,"/info?sdkappid=").concat(a,"&instanceid=").concat(s,"&random=").concat(this._getRandom(),"&platform=").concat(n,"&host=").concat(t,"&version=").concat(o);}},{key:"_closeConnection",value:function value(e){be.log("".concat(this._className,"._closeConnection socketID:").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=Wr);}},{key:"_resend",value:function value(){var e=this;if(be.log("".concat(this._className,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach(function(t,o){var n=t.uplinkData,a=t.resolve,s=t.reject;e._promiseMap.set(o,{resolve:a,reject:s,timestamp:Date.now(),uplinkData:n}),e._execute(o,n);}),this._simpleRequestMap.size>0){var t,o=C(this._simpleRequestMap);try{for(o.s();!(t=o.n()).done;){var n=m(t.value,2),a=n[0],s=n[1];this._execute(a,s);}}catch(r){o.e(r);}finally{o.f();}this._simpleRequestMap.clear();}}},{key:"send",value:function value(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3);e.keyMap;var o=_(e,Br),n=this._getRequestIDFromHead(e.head),a=JSON.stringify(o);return new Promise(function(e,s){(t._promiseMap.set(n,{resolve:e,reject:s,timestamp:Date.now(),uplinkData:a}),be.debug("".concat(t._className,".send uplinkData:").concat(JSON.stringify(o)," requestID:").concat(n," readyState:").concat(t._readyState)),t._readyState!==Hr)?t._reConnect():(t._execute(n,a),t._channelModule.getModule(No).addRequestCount());});}},{key:"simplySend",value:function value(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3);e.keyMap;var t=_(e,Kr),o=this._getRequestIDFromHead(e.head),n=JSON.stringify(t);this._readyState!==Hr?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(o,n):be.log("".concat(this._className,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(o,n);}},{key:"_execute",value:function value(e,t){this._socket.send({data:t,fail:te?this._onSendFail.bind(this):void 0,requestID:e});}},{key:"_onSendFail",value:function value(e){be.log("".concat(this._className,"._onSendFail requestID:").concat(e));}},{key:"_getSequence",value:function value(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=dt()),e;}},{key:"_getRequestIDFromHead",value:function value(e){return e.servcmd+e.seq;}},{key:"_getResponseKeyMap",value:function value(e){var o=this._channelModule.getKeyMap(e);return t(t({},Or.response),o.response);}},{key:"_reConnect",value:function value(){this._readyState!==Hr&&this._readyState!==xr&&this.forcedReconnect();}},{key:"forcedReconnect",value:function value(){var e=this;be.log("".concat(this._className,".forcedReconnect count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(Vr),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then(function(t){var o=m(t,2),n=o[0];o[1];n?(be.warn("".concat(e._className,".forcedReconnect disconnected from wsserver but network is ok, continue...")),e._closeConnection(Vr),e._initConnection()):e._channelModule.onReconnectFailed();}));}},{key:"getReconnectFlag",value:function value(){return this._reConnectFlag;}},{key:"_setNextPingTs",value:function value(){this._nextPingTs=Date.now()+1e4;}},{key:"getNextPingTs",value:function value(){return this._nextPingTs;}},{key:"isConnected",value:function value(){return this._readyState===Hr;}},{key:"canIUseBinaryFrame",value:function value(){return this._canIUseBinaryFrame;}},{key:"setIsWorkerEnabled",value:function value(e){be.log("".concat(this._className,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e;}},{key:"getIsWorkerEnabled",value:function value(){return this._isWorkerEnabled&&Te;}},{key:"_getRandom",value:function value(){return 0===this._random&&(this._random=Math.random()),this._random;}},{key:"_resetRandom",value:function value(){this._random=0;}},{key:"close",value:function value(){be.log("".concat(this._className,".close")),this._closeConnection(qr),this._promiseMap.clear(),this._startSequence=dt(),this._readyState=Wr,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0;}}]),e;}(),jr=function(e){i(o,e);var t=f(o);function o(e){var a;if(n(this,o),(a=t.call(this,e))._className="ChannelModule",a._socketHandler=new Yr(g(a)),a._probing=!1,a._isAppShowing=!0,a._previousState=D.NET_STATE_CONNECTED,te&&"function"==typeof ne.onAppShow&&"function"==typeof ne.onAppHide){var s=a._onAppHide.bind(g(a)),r=a._onAppShow.bind(g(a));"function"==typeof ne.offAppHide&&ne.offAppHide(s),"function"==typeof ne.offAppShow&&ne.offAppShow(r),ne.onAppHide(s),ne.onAppShow(r);}return a._timerForNotLoggedIn=-1,a._timerForNotLoggedIn=setInterval(a.onCheckTimer.bind(g(a)),1e3),a._fatalErrorFlag=!1,a;}return s(o,[{key:"onCheckTimer",value:function value(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing());}},{key:"onErrorCodeNotZero",value:function value(e){this.getModule(yo).onErrorCodeNotZero(e);}},{key:"onMessage",value:function value(e){this.getModule(yo).onMessage(e);}},{key:"send",value:function value(e){return this._socketHandler?this._previousState!==D.NET_STATE_CONNECTED&&e.head.servcmd.includes(ea)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject();}},{key:"_sendLogViaHTTP",value:function value(e){var t=K.HOST.CURRENT.STAT;return new Promise(function(o,n){var a="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),s=JSON.stringify(e.body),r="application/x-www-form-urlencoded;charset=UTF-8";if(te)ne.request({url:a,data:s,method:"POST",timeout:3e3,header:{"content-type":r},success:function success(){o();},fail:function fail(){n(new ls({code:Ca.NETWORK_ERROR,message:Sa.NETWORK_ERROR}));}});else{var i=new XMLHttpRequest(),c=setTimeout(function(){i.abort(),n(new ls({code:Ca.NETWORK_TIMEOUT,message:Sa.NETWORK_TIMEOUT}));},3e3);i.onreadystatechange=function(){4===i.readyState&&(clearTimeout(c),200===i.status||304===i.status?o():n(new ls({code:Ca.NETWORK_ERROR,message:Sa.NETWORK_ERROR})));},i.open("POST",a,!0),i.setRequestHeader("Content-type",r),i.send(s);}});}},{key:"simplySend",value:function value(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject();}},{key:"onOpen",value:function value(){this._ping();}},{key:"onClose",value:function value(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(D.NET_STATE_DISCONNECTED);this.reConnect();}},{key:"onError",value:function value(){te&&!Z&&be.error("".concat(this._className,".onError 从v2.11.2起,SDK 支持了 WebSocket,如您未添加相关受信域名,请先添加!(如已添加请忽略),升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html")),this._emitNetStateChangeEvent(D.NET_STATE_DISCONNECTED);}},{key:"getKeyMap",value:function value(e){return this.getModule(yo).getKeyMap(e);}},{key:"_onAppHide",value:function value(){this._isAppShowing=!1;}},{key:"_onAppShow",value:function value(){this._isAppShowing=!0;}},{key:"onRequestTimeout",value:function value(e){}},{key:"onReconnected",value:function value(){be.log("".concat(this._className,".onReconnected")),this.getModule(yo).onReconnected(),this._emitNetStateChangeEvent(D.NET_STATE_CONNECTED);}},{key:"onReconnectFailed",value:function value(){be.log("".concat(this._className,".onReconnectFailed")),this._emitNetStateChangeEvent(D.NET_STATE_DISCONNECTED);}},{key:"setIsWorkerEnabled",value:function value(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1);}},{key:"offline",value:function value(){this._emitNetStateChangeEvent(D.NET_STATE_DISCONNECTED);}},{key:"reConnect",value:function value(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var o="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(be.log("".concat(this._className,".reConnect ").concat(o)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===D.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect();}this._emitNetStateChangeEvent(D.NET_STATE_CONNECTING);}}},{key:"_emitNetStateChangeEvent",value:function value(e){this._previousState!==e&&(be.log("".concat(this._className,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(S.NET_STATE_CHANGE,{state:e}));}},{key:"_ping",value:function value(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(yo).getProtocolData({protocolName:ta});this.send(t).then(function(){e._probing=!1;}).catch(function(t){if(be.warn("".concat(e._className,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new Va(Ba.ERROR).setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule(fo).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(D.NET_STATE_DISCONNECTED);e.probeNetwork().then(function(t){var o=m(t,2),n=o[0],a=o[1];be.log("".concat(e._className,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(n," networkType:").concat(a)),n?e.reConnect():e._emitNetStateChangeEvent(D.NET_STATE_DISCONNECTED);});});}}},{key:"_checkNextPing",value:function value(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping();}},{key:"dealloc",value:function value(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn);}},{key:"onRestApiKickedOut",value:function value(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0));}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._previousState=D.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3);}}]),o;}(Ro),$r=["a2","tinyid"],zr=["a2","tinyid"],Jr=function(){function e(t){n(this,e),this._className="ProtocolHandler",this._sessionModule=t,this._configMap=new Map(),this._fillConfigMap();}return s(e,[{key:"_fillConfigMap",value:function value(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),o=this._sessionModule.genCosSpecifiedHead(),n=this._sessionModule.genSSOReportHead();this._configMap.set(Lo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.LOGIN)}),body:{state:"Online",isWebUniapp:0,deviceBrand:0},keyMap:{request:{deviceBrand:"InstType"},response:{InstId:"instanceID",HelloInterval:"helloInterval"}}};}(e)),this._configMap.set(ko,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}};}(e)),this._configMap.set(Go,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.HELLO)}),body:{isWebUniapp:0},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}};}(e)),this._configMap.set(Po,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.STAT_SERVICE,".").concat(K.CMD.KICK_OTHER)}),body:{}};}(e)),this._configMap.set(Xn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_COS_SIGN,".").concat(K.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}};}(o)),this._configMap.set(Qn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.CUSTOM_UPLOAD,".").concat(K.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}};}(o)),this._configMap.set(Zn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.CUSTOM_UPLOAD,".").concat(K.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}};}(o)),this._configMap.set(la,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_CONFIG_MANAGER,".").concat(K.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}};}(e)),this._configMap.set(da,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_CONFIG_MANAGER,".").concat(K.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}};}(e)),this._configMap.set(ca,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_CONFIG_MANAGER,".").concat(K.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}};}(e)),this._configMap.set(ua,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_CONFIG_MANAGER,".").concat(K.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}};}(e)),this._configMap.set(pa,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OVERLOAD_PUSH,".").concat(K.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}};}(e)),this._configMap.set(Uo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"groupID",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}};}(e)),this._configMap.set(bo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}};}(e)),this._configMap.set(wo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"IsNeedReadReceipt"}}};}(e)),this._configMap.set(Fo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt"},response:{MsgTime:"time",MsgSeq:"sequence"}}};}(e)),this._configMap.set(xo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}};}(e)),this._configMap.set(Cn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0,topicID:""},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}};}(e)),this._configMap.set($o,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1,direction:0},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg",direction:"GetDirection"},response:{LastMsgTime:"lastMessageTime",IsNeedReadReceipt:"needReadReceipt"}}};}(e)),this._configMap.set(Xo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.MODIFY_C2C_MESSAGE)}),body:{from:"",to:"",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}};}(e)),this._configMap.set(Nn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:"",topicID:void 0},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",ToTopicId:"topicID"}}};}(e)),this._configMap.set(Wo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}};}(e)),this._configMap.set(Yo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}};}(e)),this._configMap.set(jo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}};}(e)),this._configMap.set(Sn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}};}(e)),this._configMap.set(Dn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}};}(e)),this._configMap.set(Jo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}};}(e)),this._configMap.set(wn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0,topicID:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}};}(e)),this._configMap.set(Fn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.MODIFY_GROUP_MESSAGE)}),body:{groupID:"",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}};}(e)),this._configMap.set(An,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequence:"MsgSeq"}}};}(e)),this._configMap.set(Rn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:"",messageInfoList:void 0},keyMap:{request:{peerAccount:"Peer_Account",messageInfoList:"C2CMsgInfo",fromAccount:"From_Account",toAccount:"To_Account",sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",clientTime:"MsgClientTime"}}};}(e)),this._configMap.set(On,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}};}(e)),this._configMap.set(Ln,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:"MsgSeq",count:"Num"},response:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}};}(e)),this._configMap.set(zo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}};}(e)),this._configMap.set(Zo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}};}(e)),this._configMap.set(Qo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex",GroupId:"convGroupID"}}};}(e)),this._configMap.set(en,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0,clearHistoryMessage:1},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble"}}};}(e)),this._configMap.set(tn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}};}(e)),this._configMap.set(on,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}};}(e)),this._configMap.set(nn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}};}(e)),this._configMap.set(an,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}};}(e)),this._configMap.set(sn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.CREATE_CONVERSATION_GROUP)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"GroupContactItem",groupID:"ToGroupId"},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType"}}};}(e)),this._configMap.set(rn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.DELETE_CONVERSATION_GROUP)}),body:{fromAccount:"",groupName:void 0},keyMap:{request:{},response:{GroupId:"convGroupID"}}};}(e)),this._configMap.set(cn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{oldName:"OldGroupName",newName:"NewGroupName",groupID:"ToGroupId",operationType:"ContactOptType",groupName:"OldGroupName",updateItem:"ContactUpdateItem"},response:{ContactOptType:"operationType",ToGroupId:"groupID",GroupId:"convGroupID"}}};}(e)),this._configMap.set(un,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}},keyMap:{request:{},response:{}}};}(e)),this._configMap.set(ln,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{},response:{}}};}(e)),this._configMap.set(dn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.RECENT_CONTACT,".").concat(K.CMD.GET_CONVERSATION_GROUP_LIST)}),body:{fromAccount:"",startTime:void 0,startIndex:void 0},keyMap:{request:{},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType",CustomMark:"customData",ContactGroupId:"convGroupIDList"}}};}(e)),this._configMap.set(qo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.PROFILE,".").concat(K.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}};}(e)),this._configMap.set(Vo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.PROFILE,".").concat(K.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:Fe.NICK,value:""},{tag:Fe.GENDER,value:""},{tag:Fe.ALLOWTYPE,value:""},{tag:Fe.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}};}(e)),this._configMap.set(Bo,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.FRIEND,".").concat(K.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}};}(e)),this._configMap.set(Ko,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.FRIEND,".").concat(K.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}};}(e)),this._configMap.set(Ho,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.FRIEND,".").concat(K.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}};}(e)),this._configMap.set(ma,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.SET_SELF_STATUS)}),body:{customStatus:""},keyMap:{}};}(e)),this._configMap.set(Ma,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{UserStatusList:"successUserList",ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID",Status:"statusType"}}};}(e)),this._configMap.set(va,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.SUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}};}(e)),this._configMap.set(Ia,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.UNSUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}};}(e)),this._configMap.set(pn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence"}}};}(e)),this._configMap.set(_n,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers"}}};}(e)),this._configMap.set(gn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"",isSupportTopic:void 0},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}};}(e)),this._configMap.set(hn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.DESTROY_GROUP)}),body:{groupID:void 0}};}(e)),this._configMap.set(fn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,maxMemberNum:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0},keyMap:{request:{maxMemberNum:"MaxMemberCount",groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers"}}};}(e)),this._configMap.set(mn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}};}(e)),this._configMap.set(Mn,function(e){e.a2,e.tinyid;return{head:t(t({},_(e,$r)),{},{servcmd:"".concat(K.NAME.BIG_GROUP_NO_AUTH,".").concat(K.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}};}(e)),this._configMap.set(vn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.QUIT_GROUP)}),body:{groupID:void 0}};}(e)),this._configMap.set(In,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption"]}},keyMap:{response:{}}};}(e)),this._configMap.set(yn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}};}(e)),this._configMap.set(Tn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}};}(e)),this._configMap.set(En,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}};}(e)),this._configMap.set(kn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"}}};}(e)),this._configMap.set(Gn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}};}(e)),this._configMap.set(Pn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.BIG_GROUP_LONG_POLLING,".").concat(K.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}};}(e)),this._configMap.set(Un,function(e){e.a2,e.tinyid;return{head:t(t({},_(e,zr)),{},{servcmd:"".concat(K.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(K.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID"}}};}(e)),this._configMap.set(bn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}};}(e)),this._configMap.set(qn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}};}(e)),this._configMap.set(Vn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}};}(e)),this._configMap.set(Bn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}};}(e)),this._configMap.set(Kn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}};}(e)),this._configMap.set(Hn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP_ATTR,".").concat(K.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}};}(e)),this._configMap.set(_a,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP_COMMUNITY,".").concat(K.CMD.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{request:{avatar:"FaceUrl"}}};}(e)),this._configMap.set(ga,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP_COMMUNITY,".").concat(K.CMD.DELETE_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:"TopicIdList"},response:{DestroyResultItem:"resultList"}}};}(e)),this._configMap.set(ha,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP_COMMUNITY,".").concat(K.CMD.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{request:{avatar:"FaceUrl",muteAllMembers:"ShutUpAllMember"}}};}(e)),this._configMap.set(fa,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP_COMMUNITY,".").concat(K.CMD.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:"TopicIdList"},response:{TopicAndSelfInfo:"topicInfoList",TopicInfo:"topic",GroupID:"groupID",ShutUpTime:"muteTime",ShutUpAllFlag:"muteAllMembers",LastMsgTime:"lastMessageTime",MsgSeq:"readedSequence",LastMsgSeq:"sequence"}}};}(e)),this._configMap.set(xn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}};}(e)),this._configMap.set(Wn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP_AVCHATROOM,".").concat(K.CMD.GET_AVCHATROOM_MEMBER_LIST)}),body:{groupID:void 0,offset:void 0},keyMap:{request:{offset:"Timestamp"},response:{NextTimestamp:"offset"}}};}(e)),this._configMap.set(Yn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}};}(e)),this._configMap.set(jn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}};}(e)),this._configMap.set($n,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}};}(e)),this._configMap.set(zn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.BAN_AVCHATROOM_MEMBER)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:""},keyMap:{request:{userIDList:"Members_Account",duration:"Duration",reason:"Description"}}};}(e)),this._configMap.set(Jn,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.GROUP,".").concat(K.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}};}(e)),this._configMap.set(ea,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STAT,".").concat(K.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}};}(n)),this._configMap.set(ta,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.HEARTBEAT,".").concat(K.CMD.ALIVE)}),body:{}};}(e)),this._configMap.set(oa,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_PUSH,".").concat(K.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",C2cMsgInfo:"C2CReadReceiptArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage",IsNeedReadReceipt:"needReadReceipt",Status:"statusType"}}};}(e)),this._configMap.set(na,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_PUSH,".").concat(K.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}};}(e)),this._configMap.set(aa,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.OPEN_IM,".").concat(K.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}};}(e)),this._configMap.set(sa,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}};}(e)),this._configMap.set(ia,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_LONG_MESSAGE,".").concat(K.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}};}(e)),this._configMap.set(ra,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_LONG_MESSAGE,".").concat(K.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}};}(e)),this._configMap.set(Ea,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.SET_TOKEN)}),body:{tokenID:"",pushMsg:0,sdkAppID:0,businessID:"",deviceBrand:"",deviceToken:"",isTpns:0,isWebUniapp:0},keyMap:{request:{tokenID:"TokenID",pushMsg:"PushMsg",sdkAppID:"EnterVersion",businessID:"BusiID",deviceBrand:"InstType",deviceToken:"VarToken",isTpns:"IsTpns"}}};}(e)),this._configMap.set(Ta,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.STAT_FOREGROUND)}),body:{isWebUniapp:0}};}(e)),this._configMap.set(ya,function(e){return{head:t(t({},e),{},{servcmd:"".concat(K.NAME.IM_OPEN_STATUS,".").concat(K.CMD.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{request:{c2cUnreadCount:"C2cUnread",groupUnreadCount:"GrpUnread"}}};}(e));}},{key:"has",value:function value(e){return this._configMap.has(e);}},{key:"get",value:function value(e){return this._configMap.get(e);}},{key:"update",value:function value(){this._fillConfigMap();}},{key:"getKeyMap",value:function value(e){return this.has(e)?this.get(e).keyMap||{}:(be.warn("".concat(this._className,".getKeyMap unknown protocolName:").concat(e)),{});}},{key:"getProtocolData",value:function value(e){var t=e.protocolName,o=e.requestData,n=this.get(t),a=null;if(o){var s=this._simpleDeepCopy(n),r=this._updateService(o,s),i=r.body,c=Object.create(null);for(var u in i){if(Object.prototype.hasOwnProperty.call(i,u)){if(c[u]=i[u],void 0===o[u])continue;c[u]=o[u];}}r.body=c,a=this._getUplinkData(r);}else a=this._getUplinkData(n);return a;}},{key:"_getUplinkData",value:function value(e){var t=this._requestDataCleaner(e),o=Gt(t.head),n=kr(t.body,this._getRequestKeyMap(o));return t.body=n,t;}},{key:"_updateService",value:function value(e,t){var o=Gt(t.head);if(t.head.servcmd.includes(K.NAME.GROUP)){var n=e.type,a=e.groupID,s=void 0===a?void 0:a,r=e.groupIDList,i=void 0===r?[]:r;Ze(s)&&(s=i[0]||""),yt({type:n,groupID:s})&&(t.head.servcmd="".concat(K.NAME.GROUP_COMMUNITY,".").concat(o));}return t;}},{key:"_getRequestKeyMap",value:function value(e){var o=this.getKeyMap(e);return t(t({},Or.request),o.request);}},{key:"_requestDataCleaner",value:function value(e){var t=Array.isArray(e)?[]:Object.create(null);for(var n in e){Object.prototype.hasOwnProperty.call(e,n)&&st(n)&&null!==e[n]&&void 0!==e[n]&&("object"!==o(e[n])?t[n]=e[n]:t[n]=this._requestDataCleaner.bind(this)(e[n]));}return t;}},{key:"_simpleDeepCopy",value:function value(e){for(var t,o=Object.keys(e),n={},a=0,s=o.length;a<s;a++){t=o[a],Qe(e[t])?n[t]=Array.from(e[t]):Je(e[t])?n[t]=this._simpleDeepCopy(e[t]):n[t]=e[t];}return n;}}]),e;}(),Xr=[aa],Qr=function(){function e(t){n(this,e),this._sessionModule=t,this._className="DownlinkHandler",this._eventHandlerMap=new Map(),this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("C2CReadReceiptArray",this._C2CReadReceiptArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._eventHandlerMap.set("c2cMessageModified",this._c2cMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("groupMessageModified",this._groupMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("userStatusList",this._userStatusListHandler.bind(this)),this._keys=M(this._eventHandlerMap.keys());}return s(e,[{key:"_c2cMessageArrayHandler",value:function value(e){var t=this._sessionModule.getModule(ro);if(t){if(e.dataList.forEach(function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t;}}),1===e.needSync)this._sessionModule.getModule(Io).startOnlineSync();t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0});}}},{key:"_c2cMessageModifiedHandler",value:function value(e){var t=this._sessionModule.getModule(ro);t&&t.onC2CMessageModified(e);}},{key:"_groupMessageArrayHandler",value:function value(e){var t=this._sessionModule.getModule(io);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0});}},{key:"_groupMessageModifiedHandler",value:function value(e){var t=this._sessionModule.getModule(io);t&&t.onGroupMessageModified(e);}},{key:"_groupTipsHandler",value:function value(e){var t=this._sessionModule.getModule(io);if(t){var o=e.event,n=e.dataList,a=e.isInstantMessage,s=void 0===a||a,r=e.isSyncingEnded;switch(o){case 4:case 6:t.onNewGroupTips({event:o,dataList:n});break;case 5:n.forEach(function(e){Qe(e.elements.revokedInfos)?t.onGroupMessageRevoked({dataList:n}):Qe(e.elements.groupMessageReadNotice)?t.onGroupMessageReadNotice({dataList:n}):Qe(e.elements.readReceiptList)?t.onReadReceiptList({dataList:n}):t.onNewGroupSystemNotice({dataList:n,isInstantMessage:s,isSyncingEnded:r});});break;case 12:this._sessionModule.getModule(po).onNewGroupAtTips({dataList:n});break;default:be.log("".concat(this._className,"._groupTipsHandler unknown event:").concat(o," dataList:"),n);}}}},{key:"_C2CNotifyMessageArrayHandler",value:function value(e){var t=this,o=e.dataList;if(Qe(o)){var n=this._sessionModule.getModule(ro);o.forEach(function(e){if(Xe(e))if(e.hasOwnProperty("kickoutMsgNotify")){var a=e.kickoutMsgNotify,s=a.kickType,r=a.newInstanceInfo,i=void 0===r?{}:r;1===s?t._sessionModule.onMultipleAccountKickedOut(i):2===s?t._sessionModule.onMultipleDeviceKickedOut(i):3===s&&t._sessionModule.onRestApiKickedOut(i);}else if(e.hasOwnProperty("c2cMessageRevokedNotify"))n&&n.onC2CMessageRevoked({dataList:o});else if(e.hasOwnProperty("c2cMessageReadReceipt"))n&&n.onC2CMessageReadReceipt({dataList:o});else if(e.hasOwnProperty("c2cMessageReadNotice"))n&&n.onC2CMessageReadNotice({dataList:o});else if(e.hasOwnProperty("muteNotificationsSync")){t._sessionModule.getModule(po).onC2CMessageRemindTypeSynced({dataList:o});}});}}},{key:"_C2CReadReceiptArrayHandler",value:function value(e){this._sessionModule.getModule(ro).onReadReceiptList(e);}},{key:"_profileHandler",value:function value(e){this._sessionModule.getModule(so).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(co);t&&t.onFriendProfileModified({dataList:e.dataList});}},{key:"_relationChainHandler",value:function value(e){this._sessionModule.getModule(so).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(co);t&&t.onRelationChainModified({dataList:e.dataList});}},{key:"_recentContactHandler",value:function value(e){var t=e.dataList;if(Qe(t)){var o=this._sessionModule.getModule(po);o&&t.forEach(function(e){var t=e.pushType;if(1===t){var n=e.recentContactDeleteItem;o.onConversationDeleted(n.recentContactList);}else if(2===t){var a=e.recentContactTopItem;o.onConversationPinned(a.recentContactList);}else if(3===t){var s=e.recentContactTopItem;o.onConversationUnpinned(s.recentContactList);}else if(4===t){var r=e.recentContactMarkContact;o.onConversationMarkUpdated(r.recentContactMarkContactItem);}else if(5===t){var i=e.recentContactCreateContactGroup;o.onConversationGroupCreated(i.msgContactGroupContactItem);}else if(6===t){var c=e.recentContactDelContactGroup;o.onConversationGroupDeleted(c.msgGroupItem);}else if(7===t){var u=e.recentContactUpdateContactGroup,l=u.msgUpdateGroup.updateGroupType;1===l?o.onConversationGroupNameUpdated(u.msgUpdateGroup):2===l&&o.onConversationInGroupUpdated(u.msgUpdateGroup);}});}}},{key:"_allMessageReadHandler",value:function value(e){var t=e.dataList,o=this._sessionModule.getModule(po);o&&o.onPushedAllMessageRead(t);}},{key:"_userStatusListHandler",value:function value(e){this._sessionModule.getModule(so).onUserStatusUpdated(e);}},{key:"onMessage",value:function value(e){var t=this,o=e.body;if(this._filterMessageFromIMOpenPush(e)){var n=o.eventArray,a=o.isInstantMessage,s=o.isSyncingEnded,r=o.needSync;if(Qe(n))for(var i=null,c=null,u=0,l=0,d=n.length;l<d;l++){u=(i=n[l]).event;var p=Object.keys(i).find(function(e){return-1!==t._keys.indexOf(e);});p?(c=14===u?{readAllC2CMessage:i[p],groupMessageReadInfoList:i.groupMessageReadNotice||[]}:16===u?{userID:i.userID,readReceiptList:i[p]}:i[p],this._eventHandlerMap.get(p)({event:u,dataList:c,isInstantMessage:a,isSyncingEnded:s,needSync:r})):be.log("".concat(this._className,".onMessage unknown eventItem:").concat(i));}}}},{key:"_filterMessageFromIMOpenPush",value:function value(e){var t=e.head,o=e.body,n=t.servcmd,a=!1;if(Ze(n)||(a=n.includes(K.NAME.IM_CONFIG_MANAGER)||n.includes(K.NAME.OVERLOAD_PUSH)||n.includes(K.NAME.STAT_SERVICE)),!a)return!0;if(n.includes(K.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(Co).onPushedCloudControlConfig(o);else if(n.includes(K.CMD.PUSHED_COMMERCIAL_CONFIG)){this._sessionModule.getModule(Ao).onPushedConfig(o);}else if(n.includes(K.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(o);else if(n.includes(K.CMD.KICK_OTHER)){var s=Date.now();this._sessionModule.reLoginOnKickOther();var r=new Va(Ba.KICK_OTHER),i=this._sessionModule.getModule(no).getLastWsHelloTs(),c=s-i;r.setMessage("last wshello time:".concat(i," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end();}return!1;}}]),e;}(),Zr=[{cmd:K.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:K.CMD.GET_AVCHATROOM_MEMBER_LIST,interval:3,count:1},{cmd:K.CMD.GET_TOPIC_LIST,interval:1,count:10},{cmd:K.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:K.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:K.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:K.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:K.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:K.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1},{cmd:K.CMD.GET_USER_STATUS,interval:5,count:20},{cmd:K.CMD.SUBSCRIBE_USER_STATUS,interval:5,count:20},{cmd:K.CMD.UNSUBSCRIBE_USER_STATUS,interval:5,count:20}],ei=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="SessionModule",a._platform=a.getPlatform(),a._protocolHandler=new Jr(g(a)),a._messageDispatcher=new Qr(g(a)),a._commandFrequencyLimitMap=new Map(),a._commandRequestInfoMap=new Map(),a._serverOverloadInfoMap=new Map(),a._init(),a.getInnerEmitterInstance().on(Ms,a._onCloudConfigUpdated,g(a)),a;}return s(o,[{key:"_init",value:function value(){this._updateCommandFrequencyLimitMap(Zr);}},{key:"_onCloudConfigUpdated",value:function value(){var e=this.getCloudConfig("cmd_frequency_limit");Ze(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e));}},{key:"_updateCommandFrequencyLimitMap",value:function value(e){var t=this;e.forEach(function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count});});}},{key:"updateProtocolConfig",value:function value(){this._protocolHandler.update();}},{key:"request",value:function value(e){be.debug("".concat(this._className,".request options:"),e);var t=e.protocolName,o=e.tjgID;if(!this._protocolHandler.has(t))return be.warn("".concat(this._className,".request unknown protocol:").concat(t)),gs({code:Ca.CANNOT_FIND_PROTOCOL,message:Sa.CANNOT_FIND_PROTOCOL});var n=this.getProtocolData(e),a=n.head.servcmd;if(this._isFrequencyOverLimit(a))return gs({code:Ca.OVER_FREQUENCY_LIMIT,message:Sa.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(a))return gs({code:Ca.OPEN_SERVICE_OVERLOAD_ERROR,message:Sa.OPEN_SERVICE_OVERLOAD_ERROR});Kt(o)||(n.head.tjgID=o);var s=this.getModule(To);return Xr.includes(t)?s.simplySend(n):s.send(n);}},{key:"getKeyMap",value:function value(e){return this._protocolHandler.getKeyMap(e);}},{key:"genCommonHead",value:function value(){var e=this.getModule(_o);return{ver:"v4",platform:this._platform,websdkappid:U,websdkversion:P,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:11827,tjgID:""};}},{key:"genCosSpecifiedHead",value:function value(){var e=this.getModule(_o);return{ver:"v4",platform:this._platform,websdkappid:U,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:11827};}},{key:"genSSOReportHead",value:function value(){var e=this.getModule(_o);return{ver:"v4",platform:this._platform,websdkappid:U,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:11827};}},{key:"getProtocolData",value:function value(e){return this._protocolHandler.getProtocolData(e);}},{key:"onErrorCodeNotZero",value:function value(e){var t=e.errorCode;if(t===Ca.HELLO_ANSWER_KICKED_OUT){var o=e.kickType,n=e.newInstanceInfo,a=void 0===n?{}:n;1===o?this.onMultipleAccountKickedOut(a):2===o?this.onMultipleDeviceKickedOut(a):3===o&&this.onRestApiKickedOut(a);}t!==Ca.MESSAGE_A2KEY_EXPIRED&&t!==Ca.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(To).reConnect());}},{key:"onMessage",value:function value(e){var t=e.body,o=t.needAck,n=void 0===o?0:o,a=t.sessionData;1===n&&this._sendACK(a),this._messageDispatcher.onMessage(e);}},{key:"onReconnected",value:function value(){this._reLoginOnReconnected();}},{key:"reLoginOnKickOther",value:function value(){be.log("".concat(this._className,".reLoginOnKickOther")),this._reLogin();}},{key:"_reLoginOnReconnected",value:function value(){be.log("".concat(this._className,"._reLoginOnReconnected")),this._reLogin();}},{key:"_reLogin",value:function value(){var e=this;if(this.isLoggedIn()){var t=0,o=this.getModule(Oo);o.canIUseOfflinePush()&&(t=o.getUniAppPlatform()),this.request({protocolName:Lo,requestData:{isWebUniapp:t}}).then(function(t){var o=t.data.instanceID;e.getModule(_o).setStatusInstanceID(o),be.log("".concat(e._className,"._reLogin ok. start to sync unread messages")),e.getModule(Io).startSyncOnReconnected(),e.getModule(po).syncConversationList(),e.getModule(Do).startPull(),e.getModule(io).updateLocalMainSequenceOnReconnected();var n=e.getModule(lo);n.resetGetTopicTime(),n.getTopicListOnReconnected();});}}},{key:"onMultipleAccountKickedOut",value:function value(e){this.getModule(no).onMultipleAccountKickedOut(e);}},{key:"onMultipleDeviceKickedOut",value:function value(e){this.getModule(no).onMultipleDeviceKickedOut(e);}},{key:"_onUserSigExpired",value:function value(){this.getModule(no).onUserSigExpired();}},{key:"onRestApiKickedOut",value:function value(e){this.getModule(no).onRestApiKickedOut(e);}},{key:"_sendACK",value:function value(e){this.request({protocolName:aa,requestData:{sessionData:e}});}},{key:"_isFrequencyOverLimit",value:function value(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var o=this._commandFrequencyLimitMap.get(t),n=o.count,a=o.interval,s=this._commandRequestInfoMap.get(t),r=s.startTime,i=s.requestCount;if(Date.now()-r>1e3*a)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;i+=1,this._commandRequestInfoMap.set(t,{startTime:r,requestCount:i});var c=!1;return i>n&&(c=!0),c;}},{key:"_isServerOverload",value:function value(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),o=t.overloadTime,n=t.waitingTime,a=!1;return Date.now()-o<=1e3*n?a=!0:(this._serverOverloadInfoMap.delete(e),a=!1),a;}},{key:"onPushedServerOverload",value:function value(e){var t=e.overloadCommand,o=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:o}),be.warn("".concat(this._className,".onPushedServerOverload waitingTime:").concat(o,"s"));}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._updateCommandFrequencyLimitMap(Zr),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear();}}]),o;}(Ro),ti=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="MessageLossDetectionModule",a._maybeLostSequencesMap=new Map(),a._firstRoundRet=[],a;}return s(o,[{key:"onMessageMaybeLost",value:function value(e,t,o){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var n=this._maybeLostSequencesMap.get(e),a=0;a<o;a++){-1===n.indexOf(t+a)&&n.push(t+a);}}},{key:"detectFirstRound",value:function value(e,t){var o=this._maybeLostSequencesMap.get(e);if(!Kt(o)&&!Kt(t)){var n=o.filter(function(e){return-1===t.indexOf(e);});0===n.length?be.info("".concat(this._className,".detectFirstRound no message loss. conversationID:").concat(e)):this._firstRoundRet=this._firstRoundRet.concat(n),o.length=0;}}},{key:"detectSecondRound",value:function value(e,t){if(!Kt(this._firstRoundRet)&&!Kt(t)){var o=this._firstRoundRet.filter(function(e){return-1===t.indexOf(e);});this._firstRoundRet.length=0;var n,a=o.length;if(0!==a)a<=5?n=e+"-"+o.join("-"):(o.sort(function(e,t){return e-t;}),n=e+" start:"+o[0]+" end:"+o[a-1]+" count:"+a),new Va(Ba.MESSAGE_LOSS).setMessage(n).setNetworkType(this.getNetworkType()).setLevel("warning").end(),be.info("".concat(this._className,".detectSecondRound message loss detected. conversationID:").concat(e," lostSequences:").concat(o));}}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._maybeLostSequencesMap.clear(),this._firstRoundRet.length=0;}}]),o;}(Ro),oi=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="CloudControlModule",a._cloudConfig=new Map(),a._expiredTime=0,a._version=0,a._isFetching=!1,a;}return s(o,[{key:"getCloudConfig",value:function value(e){return Ze(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0;}},{key:"_canFetchConfig",value:function value(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime;}},{key:"fetchConfig",value:function value(){var e=this,t=this._canFetchConfig();if(be.log("".concat(this._className,".fetchConfig canFetchConfig:").concat(t)),t){var o=new Va(Ba.FETCH_CLOUD_CONTROL_CONFIG),n=this.getModule(_o).getSDKAppID();this._isFetching=!0,this.request({protocolName:ca,requestData:{SDKAppID:n,version:this._version}}).then(function(t){e._isFetching=!1,o.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),be.log("".concat(e._className,".fetchConfig ok")),e._parseCloudControlConfig(t.data);}).catch(function(t){e._isFetching=!1,e.probeNetwork().then(function(e){var n=m(e,2),a=n[0],s=n[1];o.setError(t,a,s).end();}),be.log("".concat(e._className,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4);});}}},{key:"onPushedCloudControlConfig",value:function value(e){be.log("".concat(this._className,".onPushedCloudControlConfig")),new Va(Ba.PUSHED_CLOUD_CONTROL_CONFIG).setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e);}},{key:"onCheckTimer",value:function value(e){this._canFetchConfig()&&this.fetchConfig();}},{key:"_parseCloudControlConfig",value:function value(e){var t=this,o="".concat(this._className,"._parseCloudControlConfig"),n=e.errorCode,a=e.errorMessage,s=e.cloudControlConfig,r=e.version,i=e.expiredTime;if(0===n){if(this._version!==r){var c=null;try{c=JSON.parse(s);}catch(u){be.error("".concat(o," JSON parse error:").concat(s));}c&&(this._cloudConfig.clear(),Object.keys(c).forEach(function(e){t._cloudConfig.set(e,c[e]);}),this._version=r,this.emitInnerEvent(Ms));}this._expiredTime=Date.now()+1e3*i;}else Ze(n)?(be.log("".concat(o," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(be.error("".concat(o," errorCode:").concat(n," errorMessage:").concat(a)),this._setExpiredTimeOnResponseError(12e4));}},{key:"_setExpiredTimeOnResponseError",value:function value(e){this._expiredTime=Date.now()+e;}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1;}}]),o;}(Ro),ni=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="PullGroupMessageModule",a._remoteLastMessageSequenceMap=new Map(),a.PULL_LIMIT_COUNT=15,a;}return s(o,[{key:"startPull",value:function value(){var e=this,t=this._getNeedPullConversationList();this._getRemoteLastMessageSequenceList().then(function(){var o=e.getModule(po);t.forEach(function(t){var n=t.conversationID,a=n.replace(D.CONV_GROUP,""),s=o.getGroupLocalLastMessageSequence(n),r=e._remoteLastMessageSequenceMap.get(a)||0,i=r-s;be.log("".concat(e._className,".startPull groupID:").concat(a," localLastMessageSequence:").concat(s," ")+"remoteLastMessageSequence:".concat(r," diff:").concat(i)),s>0&&i>=1&&i<300&&e._pullMissingMessage({groupID:a,localLastMessageSequence:s,remoteLastMessageSequence:r,diff:i});});});}},{key:"_getNeedPullConversationList",value:function value(){return this.getModule(po).getLocalConversationList().filter(function(e){return e.type===D.CONV_GROUP&&e.groupProfile.type!==D.GRP_AVCHATROOM;});}},{key:"_getRemoteLastMessageSequenceList",value:function value(){var e=this;return this.getModule(io).getGroupList().then(function(t){for(var o=t.data.groupList,n=void 0===o?[]:o,a=0;a<n.length;a++){var s=n[a],r=s.groupID,i=s.nextMessageSeq;if(s.type!==D.GRP_AVCHATROOM){var c=i-1;e._remoteLastMessageSequenceMap.set(r,c);}}});}},{key:"_pullMissingMessage",value:function value(e){var t=this,o=e.localLastMessageSequence,n=e.remoteLastMessageSequence,a=e.diff;e.count=a>this.PULL_LIMIT_COUNT?this.PULL_LIMIT_COUNT:a,e.sequence=a>this.PULL_LIMIT_COUNT?o+this.PULL_LIMIT_COUNT:o+a,this._getGroupMissingMessage(e).then(function(s){s.length>0&&(s[0].sequence+1<=n&&(e.localLastMessageSequence=o+t.PULL_LIMIT_COUNT,e.diff=a-t.PULL_LIMIT_COUNT,t._pullMissingMessage(e)),t.getModule(io).onNewGroupMessage({dataList:s,isInstantMessage:!1}));});}},{key:"_getGroupMissingMessage",value:function value(e){var t=this,o=new Va(Ba.GET_GROUP_MISSING_MESSAGE);return this.request({protocolName:Nn,requestData:{groupID:e.groupID,count:e.count,sequence:e.sequence}}).then(function(n){var a=n.data.messageList,s=void 0===a?[]:a;return o.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e.groupID," count:").concat(e.count," sequence:").concat(e.sequence," messageList length:").concat(s.length)).end(),s;}).catch(function(e){t.probeNetwork().then(function(t){var n=m(t,2),a=n[0],s=n[1];o.setError(e,a,s).end();});});}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._remoteLastMessageSequenceMap.clear();}}]),o;}(Ro),ai=function(){function e(){n(this,e),this._className="AvgE2EDelay",this._e2eDelayArray=[];}return s(e,[{key:"addMessageDelay",value:function value(e){var t=ke()-e;t>=0&&this._e2eDelayArray.push(t);}},{key:"_calcAvg",value:function value(e,t){if(0===t)return 0;var o=0;return e.forEach(function(e){o+=e;}),Pt(o/t,1);}},{key:"_calcCountWithLimit",value:function value(e){var t=e.e2eDelayArray,o=e.min,n=e.max;return t.filter(function(e){return o<=e&&e<n;}).length;}},{key:"_calcPercent",value:function value(e,t){var o=Pt(e/t*100,2);return o>100&&(o=100),o;}},{key:"_checkE2EDelayException",value:function value(e,t){var o=e.filter(function(e){return e>t;});if(o.length>0){var n=o.length,a=Math.min.apply(Math,M(o)),s=Math.max.apply(Math,M(o)),r=this._calcAvg(o,n),i=Pt(n/e.length*100,2);if(i>50)new Va(Ba.MESSAGE_E2E_DELAY_EXCEPTION).setMessage("message e2e delay exception. count:".concat(n," min:").concat(a," max:").concat(s," avg:").concat(r," percent:").concat(i)).setLevel("warning").end();}}},{key:"getStatResult",value:function value(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=M(this._e2eDelayArray),o=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),n=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),a=this._calcPercent(o,e),s=this._calcPercent(n,e),r=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:o,percentOfCountLessThan1Second:a,countLessThan3Second:n,percentOfCountLessThan3Second:s,avgDelay:r};}},{key:"reset",value:function value(){this._e2eDelayArray.length=0;}}]),e;}(),si=function(){function e(){n(this,e),this._className="AvgRTT",this._requestCount=0,this._rttArray=[];}return s(e,[{key:"addRequestCount",value:function value(){this._requestCount+=1;}},{key:"addRTT",value:function value(e){this._rttArray.push(e);}},{key:"_calcTotalCount",value:function value(){return this._requestCount;}},{key:"_calcRTTCount",value:function value(e){return e.length;}},{key:"_calcSuccessRateOfRequest",value:function value(e,t){if(0===t)return 0;var o=Pt(e/t*100,2);return o>100&&(o=100),o;}},{key:"_calcAvg",value:function value(e,t){if(0===t)return 0;var o=0;return e.forEach(function(e){o+=e;}),parseInt(o/t);}},{key:"_calcMax",value:function value(){return Math.max.apply(Math,M(this._rttArray));}},{key:"_calcMin",value:function value(){return Math.min.apply(Math,M(this._rttArray));}},{key:"getStatResult",value:function value(){var e=this._calcTotalCount(),t=M(this._rttArray);if(0===e)return null;var o=this._calcRTTCount(t),n=this._calcSuccessRateOfRequest(o,e),a=this._calcAvg(t,o);return be.log("".concat(this._className,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(a)),this.reset(),{totalCount:e,rttCount:o,successRateOfRequest:n,avgRTT:a};}},{key:"reset",value:function value(){this._requestCount=0,this._rttArray.length=0;}}]),e;}(),ri=function(){function e(){n(this,e),this._map=new Map();}return s(e,[{key:"initMap",value:function value(e){var t=this;e.forEach(function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]});});}},{key:"addTotalCount",value:function value(e){return!(Ze(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0);}},{key:"addSuccessCount",value:function value(e){return!(Ze(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0);}},{key:"addFailedCountOfUserSide",value:function value(e){return!(Ze(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0);}},{key:"addCost",value:function value(e,t){return!(Ze(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0);}},{key:"addFileSize",value:function value(e,t){return!(Ze(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0);}},{key:"_calcSuccessRateOfBusiness",value:function value(e){if(Ze(e)||!this._map.has(e))return-1;var t=this._map.get(e),o=Pt(t.successCount/t.totalCount*100,2);return o>100&&(o=100),o;}},{key:"_calcSuccessRateOfPlatform",value:function value(e){if(Ze(e)||!this._map.has(e))return-1;var t=this._map.get(e),o=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(o=Pt(o,2))>100&&(o=100),o;}},{key:"_calcTotalCount",value:function value(e){return Ze(e)||!this._map.has(e)?-1:this._map.get(e).totalCount;}},{key:"_calcSuccessCountOfBusiness",value:function value(e){return Ze(e)||!this._map.has(e)?-1:this._map.get(e).successCount;}},{key:"_calcSuccessCountOfPlatform",value:function value(e){if(Ze(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide;}},{key:"_calcAvg",value:function value(e){return Ze(e)||!this._map.has(e)?-1:e===ka?this._calcAvgSpeed(e):this._calcAvgCost(e);}},{key:"_calcAvgCost",value:function value(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var o=0;return this._map.get(e).costArray.forEach(function(e){o+=e;}),parseInt(o/t);}},{key:"_calcAvgSpeed",value:function value(e){var t=0,o=0;return this._map.get(e).costArray.forEach(function(e){t+=e;}),this._map.get(e).fileSizeArray.forEach(function(e){o+=e;}),parseInt(1e3*o/t);}},{key:"getStatResult",value:function value(e){var t=this._calcTotalCount(e);if(0===t)return null;var o=this._calcSuccessCountOfBusiness(e),n=this._calcSuccessRateOfBusiness(e),a=this._calcSuccessCountOfPlatform(e),s=this._calcSuccessRateOfPlatform(e),r=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:o,successRateOfBusiness:n,successCountOfPlatform:a,successRateOfPlatform:s,avgValue:r};}},{key:"reset",value:function value(e){Ze(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]});}}]),e;}(),ii=function(){function e(){n(this,e),this._lastMap=new Map(),this._currentMap=new Map();}return s(e,[{key:"initMap",value:function value(e){var t=this;e.forEach(function(e){t._lastMap.set(e,new Map()),t._currentMap.set(e,new Map());});}},{key:"addMessageSequence",value:function value(e){var t=e.key,o=e.message;if(Ze(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var n=o.conversationID,a=o.sequence,s=n.replace(D.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(s)){var r=this._lastMap.get(t).get(s),i=r.length-1;a>r[0]&&a<r[i]?(r.push(a),r.sort(),this._lastMap.get(t).set(s,r)):this._addCurrentMap(e);}else this._addCurrentMap(e);return!0;}},{key:"_addCurrentMap",value:function value(e){var t=e.key,o=e.message,n=o.conversationID,a=o.sequence,s=n.replace(D.CONV_GROUP,"");this._currentMap.get(t).has(s)||this._currentMap.get(t).set(s,[]),this._currentMap.get(t).get(s).push(a);}},{key:"_copyData",value:function value(e){if(!Ze(e)){this._lastMap.set(e,new Map());var t,o=this._lastMap.get(e),n=C(this._currentMap.get(e));try{for(n.s();!(t=n.n()).done;){var a=m(t.value,2),s=a[0],r=a[1];o.set(s,r);}}catch(i){n.e(i);}finally{n.f();}o=null,this._currentMap.set(e,new Map());}}},{key:"getStatResult",value:function value(e){if(Ze(this._currentMap.get(e))||Ze(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,o=0;if(this._lastMap.get(e).forEach(function(e,n){var a=M(e.values()),s=a.length,r=a[s-1]-a[0]+1;t+=r,o+=s;}),0===t)return null;var n=Pt(o/t*100,2);return n>100&&(n=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:o,successRateOfMessageReceived:n};}},{key:"reset",value:function value(){this._currentMap.clear(),this._lastMap.clear();}}]),e;}(),ci=function(e){i(a,e);var o=f(a);function a(e){var t;n(this,a),(t=o.call(this,e))._className="QualityStatModule",t.TAG="im-ssolog-quality-stat",t.reportIndex=0,t.wholePeriod=!1,t._qualityItems=[Da,Na,Aa,Oa,Ra,La,ka,Ga,Pa,Ua],t._messageSentItems=[Aa,Oa,Ra,La,ka],t._messageReceivedItems=[Ga,Pa,Ua],t.REPORT_INTERVAL=120,t.REPORT_SDKAPPID_BLACKLIST=[],t.REPORT_TINYID_WHITELIST=[],t._statInfoArr=[],t._avgRTT=new si(),t._avgE2EDelay=new ai(),t._rateMessageSent=new ri(),t._rateMessageReceived=new ii();var s=t.getInnerEmitterInstance();return s.on(ms,t._onLoginSuccess,g(t)),s.on(Ms,t._onCloudConfigUpdated,g(t)),t;}return s(a,[{key:"_onLoginSuccess",value:function value(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(go),o=t.getItem(this.TAG,!1);!Kt(o)&&ot(o.forEach)&&(be.log("".concat(this._className,"._onLoginSuccess.get quality stat log in storage, nums=").concat(o.length)),o.forEach(function(t){e._statInfoArr.push(t);}),t.removeItem(this.TAG,!1));}},{key:"_onCloudConfigUpdated",value:function value(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),o=this.getCloudConfig("q_rpt_tinyid_wl");Ze(e)||(this.REPORT_INTERVAL=Number(e)),Ze(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map(function(e){return Number(e);})),Ze(o)||(this.REPORT_TINYID_WHITELIST=o.split(","));}},{key:"onCheckTimer",value:function value(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report());}},{key:"addRequestCount",value:function value(){this._avgRTT.addRequestCount();}},{key:"addRTT",value:function value(e){this._avgRTT.addRTT(e);}},{key:"addMessageDelay",value:function value(e){this._avgE2EDelay.addMessageDelay(e);}},{key:"addTotalCount",value:function value(e){this._rateMessageSent.addTotalCount(e)||be.warn("".concat(this._className,".addTotalCount invalid key:"),e);}},{key:"addSuccessCount",value:function value(e){this._rateMessageSent.addSuccessCount(e)||be.warn("".concat(this._className,".addSuccessCount invalid key:"),e);}},{key:"addFailedCountOfUserSide",value:function value(e){this._rateMessageSent.addFailedCountOfUserSide(e)||be.warn("".concat(this._className,".addFailedCountOfUserSide invalid key:"),e);}},{key:"addCost",value:function value(e,t){this._rateMessageSent.addCost(e,t)||be.warn("".concat(this._className,".addCost invalid key or cost:"),e,t);}},{key:"addFileSize",value:function value(e,t){this._rateMessageSent.addFileSize(e,t)||be.warn("".concat(this._className,".addFileSize invalid key or size:"),e,t);}},{key:"addMessageSequence",value:function value(e){this._rateMessageReceived.addMessageSequence(e)||be.warn("".concat(this._className,".addMessageSequence invalid key:"),e.key);}},{key:"_getQualityItem",value:function value(e){var o={},n=Fa[this.getNetworkType()];Ze(n)&&(n=8);var a={qualityType:ba[e],timestamp:Re(),networkType:n,extension:""};switch(e){case Da:o=this._avgRTT.getStatResult();break;case Na:o=this._avgE2EDelay.getStatResult();break;case Aa:case Oa:case Ra:case La:case ka:o=this._rateMessageSent.getStatResult(e);break;case Ga:case Pa:case Ua:o=this._rateMessageReceived.getStatResult(e);}return null===o?null:t(t({},a),o);}},{key:"_report",value:function value(e){var t=this,o=[],n=null;Ze(e)?this._qualityItems.forEach(function(e){null!==(n=t._getQualityItem(e))&&(n.reportIndex=t.reportIndex,n.wholePeriod=t.wholePeriod,o.push(n));}):null!==(n=this._getQualityItem(e))&&(n.reportIndex=this.reportIndex,n.wholePeriod=this.wholePeriod,o.push(n)),be.debug("".concat(this._className,"._report"),o),this._statInfoArr.length>0&&(o=o.concat(this._statInfoArr),this._statInfoArr=[]);var a=this.getModule(_o),s=a.getSDKAppID(),r=a.getTinyID();Ut(this.REPORT_SDKAPPID_BLACKLIST,s)&&!bt(this.REPORT_TINYID_WHITELIST,r)&&(o=[]),o.length>0&&this._doReport(o);}},{key:"_doReport",value:function value(e){var o=this,n={header:pr(this),quality:e};this.request({protocolName:ea,requestData:t({},n)}).then(function(){o.reportIndex++,o.wholePeriod=!1;}).catch(function(t){be.warn("".concat(o._className,"._doReport, online:").concat(o.getNetworkType()," error:"),t),o._statInfoArr=o._statInfoArr.concat(e),o._flushAtOnce();});}},{key:"_flushAtOnce",value:function value(){var e=this.getModule(go),t=e.getItem(this.TAG,!1),o=this._statInfoArr;if(Kt(t))be.log("".concat(this._className,"._flushAtOnce count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1);else{var n=o.concat(t);n.length>10&&(n=n.slice(0,10)),be.log("".concat(this.className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);}this._statInfoArr=[];}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset();}}]),a;}(Ro),ui=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._className="WorkerTimerModule",a._isWorkerEnabled=!0,a._workerTimer=null,a._init(),a.getInnerEmitterInstance().on(Ms,a._onCloudConfigUpdated,g(a)),a;}return s(o,[{key:"isWorkerEnabled",value:function value(){return this._isWorkerEnabled&&Te;}},{key:"startWorkerTimer",value:function value(){be.log("".concat(this._className,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start");}},{key:"stopWorkerTimer",value:function value(){be.log("".concat(this._className,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop");}},{key:"_init",value:function value(){if(Te){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) { if (event.data === "start") { if (interval > 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000) } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(){t._moduleManager.onCheckTimer();};}}},{key:"_onCloudConfigUpdated",value:function value(){var e=this.getCloudConfig("enable_worker");be.log("".concat(this._className,"._onCloudConfigUpdated enableWorker:").concat(e)),Ze(e)||"1"===e?!this._isWorkerEnabled&&Te&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._moduleManager.onWorkerTimerEnabled()):this._isWorkerEnabled&&Te&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._moduleManager.onWorkerTimerDisabled());}},{key:"terminate",value:function value(){be.log("".concat(this._className,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null);}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset"));}}]),o;}(Ro),li=function(){function e(){n(this,e),this._className="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map();}return s(e,[{key:"isValidPurchaseBits",value:function value(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e);}},{key:"parsePurchaseBits",value:function value(e){var t="".concat(this._className,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var o=null,n=e.length-1,a=0;n>=0;n--,a++){o=a<32?new L(0,Math.pow(2,a)).toString():new L(Math.pow(2,a-32),0).toString(),"1"===e[n]?this._purchasedFeatureMap.set(o,!0):this._purchasedFeatureMap.set(o,!1);}}else be.warn("".concat(t," invalid purchase bits:").concat(e));}},{key:"hasPurchasedFeature",value:function value(e){return!!this._purchasedFeatureMap.get(e);}},{key:"isFeatureEnabled",value:function value(e){for(var t=parseInt(e).toString(2),o=void 0,n=!0,a=t.length-1,s=0;a>=0;a--,s++){if("1"===t.charAt(a)&&(o=s<32?new L(0,Math.pow(2,s)).toString():new L(Math.pow(2,s-32),0).toString(),!this._purchasedFeatureMap.get(o))){n=!1;break;}}return be.log("".concat(this._className,".isFeatureEnabled decimalNumber:").concat(e," binaryString:").concat(t," ret:").concat(n)),_s({enabled:n});}},{key:"clear",value:function value(){this._purchasedFeatureMap.clear();}}]),e;}(),di=function(){function e(t){n(this,e),this._moduleManager=t,this._className="CommercialConfigModule",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new li();}return s(e,[{key:"_canFetch",value:function value(){return this._getModule(_o).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1);}},{key:"onCheckTimer",value:function value(e){this._canFetch()&&this.fetchConfig();}},{key:"fetchConfig",value:function value(){var e=this,t=this._canFetch(),o="".concat(this._className,".fetchConfig");if(be.log("".concat(o," canFetch:").concat(t)),t){var n=this._getModule(fo),a=new Va(Ba.FETCH_COMMERCIAL_CONFIG);a.setNetworkType(n.getNetworkType());var s=this._getModule(_o).getSDKAppID(),r=this._getModule(yo);this._isFetching=!0,r.request({protocolName:la,requestData:{SDKAppID:s}}).then(function(t){a.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),be.log("".concat(o," ok.")),e._parseConfig(t.data),e._isFetching=!1;}).catch(function(t){n.probe().then(function(e){var o=m(e,2),n=o[0],s=o[1];a.setError(t,n,s).end();}),e._isFetching=!1;});}}},{key:"onPushedConfig",value:function value(e){var t="".concat(this._className,".onPushedConfig");be.log("".concat(t)),new Va(Ba.PUSHED_COMMERCIAL_CONFIG).setNetworkType(this._getModule(fo).getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e);}},{key:"_parseConfig",value:function value(e){var t="".concat(this._className,"._parseConfig"),o=e.errorCode,n=e.errorMessage,a=e.purchaseBits,s=e.expiredTime;0===o?(this._purchasedFeatureHandler.parsePurchaseBits(a),this._expiredTime=Date.now()+1e3*s):Ze(o)?(be.log("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(be.error("".concat(t," errorCode:").concat(o," errorMessage:").concat(n)),this._setExpiredTimeOnResponseError(12e4));}},{key:"_setExpiredTimeOnResponseError",value:function value(e){this._expiredTime=Date.now()+e;}},{key:"canIUse",value:function value(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e);}},{key:"isFeatureEnabled",value:function value(e){return this._purchasedFeatureHandler.isFeatureEnabled(e);}},{key:"_getModule",value:function value(e){return this._moduleManager.getModule(e);}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear();}}]),e;}(),pi=function(e){i(o,e);var t=f(o);function o(e){var a;return n(this,o),(a=t.call(this,e))._moduleManager=e,a._className="OfflinePushModule",a._offlinePushPlugin=void 0,a._androidPushConfig={huaweiPushBussinessId:"",xiaomiPushBussinessId:"",xiaomiPushAppId:"",xiaomiPushAppKey:"",meizuPushBussinessId:"",meizuPushAppId:"",meizuPushAppKey:"",vivoPushBussinessId:"",fcmPushBussinessId:"",oppoPushBussinessId:"",oppoPushAppKey:"",oppoPushAppSecret:""},a._deviceToken="",a._businessID=0,a._iosBusinessID=0,a._c2cUnreadCount=0,a._groupUnreadCount=0,a._isWebUniapp=0,a;}return s(o,[{key:"registerPlugin",value:function value(e){if(Z){this._offlinePushPlugin=e["tim-offline-push-plugin"];var t=e.offlinePushConfig||{},o=t.huaweiBusinessID,n=t.xiaomiBusinessID,a=t.xiaomiAppID,s=t.xiaomiAppKey,r=t.meizuBusinessID,i=t.meizuAppID,c=t.meizuAppKey,u=t.vivoBusinessID,l=t.oppoBusinessID,d=t.oppoAppKey,p=t.oppoAppSecret,_=t.iosBusinessID;this._androidPushConfig.huaweiPushBussinessId=o,this._androidPushConfig.xiaomiPushBussinessId=n,this._androidPushConfig.xiaomiPushAppId=a,this._androidPushConfig.xiaomiPushAppKey=s,this._androidPushConfig.meizuPushBussinessId=r,this._androidPushConfig.meizuPushAppId=i,this._androidPushConfig.meizuPushAppKey=c,this._androidPushConfig.vivoPushBussinessId=u,this._androidPushConfig.oppoPushBussinessId=l,this._androidPushConfig.oppoPushAppKey=d,this._androidPushConfig.oppoPushAppSecret=p,new Va(Ba.REGISTER_PLUGIN).setMessage("tim-offline-push-plugin").end(),this._iosBusinessID=_,this._setDeviceState(),be.log("".concat(this._className,".registerPlugin offlinePushConfig:").concat(e.offlinePushConfig));}else be.warn("!!!离线推送插件仅支持在 uni-app 打包的 native app 环境使用");}},{key:"init",value:function value(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken();}},{key:"_getDeviceToken",value:function value(){var e=this;be.log("".concat(this._className,"._getDeviceToken androidPushConfig:").concat(JSON.stringify(this._androidPushConfig),", iosBusinessID:").concat(this._iosBusinessID)),!Ze(this._offlinePushPlugin)&&ot(this._offlinePushPlugin.getDeviceToken)&&this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,function(t){var o=t.data,n=o.deviceToken,a=o.deviceBrand,s=o.deviceType,r=o.bussinessId;e._deviceToken=n,e._businessID=r||e._iosBusinessID,new Va(Ba.GET_DEVICE_TOKEN).setMessage("androidPushConfig:".concat(JSON.stringify(e._androidPushConfig),", deviceToken:").concat(n,", deviceBrand:").concat(a||s,", businessID:").concat(e._businessID)).end(),e._setToken();});}},{key:"canIUseOfflinePush",value:function value(){return Z&&!Ze(this._offlinePushPlugin);}},{key:"_setDeviceState",value:function value(){var e=this;!Ze(this._offlinePushPlugin)&&ot(this._offlinePushPlugin.setAppShowListener)&&this._offlinePushPlugin.setAppShowListener(function(t){var o=t.appShow;e._moduleManager.isReady()&&(0===o?(e._getConvUnreadCount(),e._onBackground()):1===o&&e._onForeground());});}},{key:"getDeviceBrand",value:function value(){if(!Ze(this._offlinePushPlugin)&&ot(this._offlinePushPlugin.getDeviceType))return(this._offlinePushPlugin.getDeviceType()||{}).deviceType;}},{key:"_setToken",value:function value(){var e=this,t=this.getModule(_o),o=1,n="",a="";Kt(this._deviceToken)&&(o=0);var s=this.getUniAppPlatform(),r=this.getDeviceBrand();be.log("".concat(this._className,".setToken platform:").concat(s)),s===G.IOS||s===G.IPAD||s===G.MAC?a=this._deviceToken:s===G.ANDROID&&(n=this._deviceToken);var i=new Va(Ba.OFFLINE_PUSH_SET_TOKEN);return i.setMessage("deviceToken:".concat(a||n,", businessID:").concat(this._businessID,", deviceBrand:").concat(r,", isWebUniapp:").concat(this._isWebUniapp,", pushMsg:").concat(o)),this.request({protocolName:Ea,requestData:{tokenID:n,pushMsg:o,sdkAppID:t.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:r,deviceToken:a,isWebUniapp:this._isWebUniapp}}).then(function(t){return i.setNetworkType(e.getNetworkType()).end(),be.log("".concat(e._className,".setToken ok")),t;}).catch(function(t){return e.probeNetwork().then(function(e){var o=m(e,2),n=o[0],a=o[1];i.setError(t,n,a).end();}),be.error("".concat(e._className,".setToken failed. error:"),t),gs(t);});}},{key:"_getConvUnreadCount",value:function value(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.getModule(po).getLocalConversationList().forEach(function(t){t.type===D.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===D.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount);});}},{key:"_onBackground",value:function value(){var e=this;this.request({protocolName:ya,requestData:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then(function(t){return be.log("".concat(e._className,"._onBackground ok")),t;}).catch(function(t){be.warn("".concat(e._className,"._onBackground error:"),t);});}},{key:"_onForeground",value:function value(){var e=this;this.request({protocolName:Ta,requestData:{isWebUniapp:this._isWebUniapp}}).then(function(t){return be.log("".concat(e._className,"._onForeground ok")),t;}).catch(function(t){be.warn("".concat(e._className,"._onForeground error:"),t);});}},{key:"getUniAppPlatform",value:function value(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return"ios"===e?G.IOS:"android"===e?G.ANDROID:1002===t?G.IPAD:1001===t?G.MAC:void 0;}},{key:"reset",value:function value(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,be.log("".concat(this._className,".reset"));}}]),o;}(Ro),_i=function(){function e(t){n(this,e);var o=new Va(Ba.SDK_CONSTRUCT);this._className="ModuleManager",this._isReady=!1,this._reason=Ca.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map(),this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(_o,new ir(this,t)),this._moduleMap.set(Ao,new di(this)),this._moduleMap.set(Co,new oi(this)),this._moduleMap.set(So,new ui(this)),this._moduleMap.set(No,new ci(this)),this._moduleMap.set(To,new jr(this)),this._moduleMap.set(yo,new ei(this)),this._moduleMap.set(no,new cr(this)),this._moduleMap.set(ao,new Dr(this)),this._moduleMap.set(so,new rr(this)),this._moduleMap.set(ro,new hs(this)),this._moduleMap.set(po,new bs(this)),this._moduleMap.set(io,new $s(this)),this._moduleMap.set(uo,new Js(this)),this._moduleMap.set(lo,new er(this)),this._moduleMap.set(go,new lr(this)),this._moduleMap.set(ho,new _r(this)),this._moduleMap.set(fo,new mr(this)),this._moduleMap.set(mo,new vr(this)),this._moduleMap.set(Mo,new yr(this)),this._moduleMap.set(vo,new Nr(this)),this._moduleMap.set(Io,new Ar(this)),this._moduleMap.set(Eo,new ti(this)),this._moduleMap.set(Do,new ni(this)),this._moduleMap.set(Oo,new pi(this)),this._eventThrottleMap=new Map();var a=t.instanceID,s=t.oversea,r=t.SDKAppID,i="instanceID:".concat(a," SDKAppID:").concat(r," host:").concat(Ot()," oversea:").concat(s," inBrowser:").concat(oe," inMiniApp:").concat(te)+" workerAvailable:".concat(Te," UserAgent:").concat(se);Va.bindEventStatModule(this._moduleMap.get(ho)),o.setMessage("".concat(i," ").concat(function(){var e="";if(te)try{var t=ne.getSystemInfoSync(),o=t.model,n=t.version,a=t.system,s=t.platform,r=t.SDKVersion;e="model:".concat(o," version:").concat(n," system:").concat(a," platform:").concat(s," SDKVersion:").concat(r);}catch(i){e="";}return e;}())).end(),be.info("SDK ".concat(i)),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList();}return s(e,[{key:"_startTimer",value:function value(){var e=this._moduleMap.get(So),t=e.isWorkerEnabled();be.log("".concat(this._className,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer();}},{key:"_startMainThreadTimer",value:function value(){be.log("".concat(this._className,"._startMainThreadTimer")),this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3));}},{key:"stopTimer",value:function value(){var e=this._moduleMap.get(So),t=e.isWorkerEnabled();be.log("".concat(this._className,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer();}},{key:"_stopMainThreadTimer",value:function value(){be.log("".concat(this._className,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0);}},{key:"_stopMainThreadSocket",value:function value(){be.log("".concat(this._className,"._stopMainThreadSocket"));var e=this._moduleMap.get(To);e.setIsWorkerEnabled(!0),e.reConnect();}},{key:"_startMainThreadSocket",value:function value(){be.log("".concat(this._className,"._startMainThreadSocket"));var e=this._moduleMap.get(To);e.setIsWorkerEnabled(!1),e.reConnect();}},{key:"onWorkerTimerEnabled",value:function value(){be.log("".concat(this._className,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket();}},{key:"onWorkerTimerDisabled",value:function value(){be.log("".concat(this._className,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket();}},{key:"onCheckTimer",value:function value(){this._checkCount+=1;var e,t=C(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var o=m(e.value,2)[1];o.onCheckTimer&&o.onCheckTimer(this._checkCount);}}catch(n){t.e(n);}finally{t.f();}}},{key:"_initReadyList",value:function value(){var e=this;this._readyList=[this._moduleMap.get(no),this._moduleMap.get(po)],this._readyList.forEach(function(t){t.ready(function(){return e._onModuleReady();});});}},{key:"_onModuleReady",value:function value(){var e=!0;if(this._readyList.forEach(function(t){t.isReady()||(e=!1);}),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(S.SDK_READY);var t=Date.now()-this._startLoginTs;be.warn("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var o=this._moduleMap.get(fo).getNetworkType(),n=this._ssoLogForReady.getStartTs()+Oe;this._ssoLogForReady.setNetworkType(o).setMessage(t).start(n).end();}}},{key:"login",value:function value(){0===this._startLoginTs&&(Le(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(fo).start(),this._ssoLogForReady=new Va(Ba.SDK_READY),this._reason=Ca.LOGGING_IN);}},{key:"onLoginFailed",value:function value(){this._startLoginTs=0;}},{key:"getOuterEmitterInstance",value:function value(){return null===this._outerEmitter&&(this._outerEmitter=new Mr(),ps(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var o=this;if(e===S.CONVERSATION_LIST_UPDATED||e===S.FRIEND_LIST_UPDATED||e===S.GROUP_LIST_UPDATED){if(this._eventThrottleMap.has(e)){var n=Date.now(),a=this._eventThrottleMap.get(e);n-a.last<1e3?(a.timeoutID&&clearTimeout(a.timeoutID),a.timeoutID=setTimeout(function(){a.last=n,o._outerEmitter._emit.apply(o._outerEmitter,[e,{name:e,data:o._getEventData(e)}]);},500)):(a.last=n,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]));}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);}else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}]);}.bind(this)),this._outerEmitter;}},{key:"_getEventData",value:function value(e){return e===S.CONVERSATION_LIST_UPDATED?this._moduleMap.get(po).getLocalConversationList():e===S.FRIEND_LIST_UPDATED?this._moduleMap.get(co).getLocalFriendList(!1):e===S.GROUP_LIST_UPDATED?this._moduleMap.get(io).getLocalGroupList():void 0;}},{key:"getInnerEmitterInstance",value:function value(){return null===this._innerEmitter&&(this._innerEmitter=new Mr(),this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var o;Xe(arguments[1])&&arguments[1].data?(be.warn("inner eventData has data property, please check!"),o=[e,{name:arguments[0],data:arguments[1].data}]):o=[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,o);}.bind(this)),this._innerEmitter;}},{key:"hasModule",value:function value(e){return this._moduleMap.has(e);}},{key:"getModule",value:function value(e){return this._moduleMap.get(e);}},{key:"isReady",value:function value(){return this._isReady;}},{key:"getNotReadyReason",value:function value(){return this._reason;}},{key:"setNotReadyReason",value:function value(e){this._reason=e;}},{key:"onError",value:function value(e){be.warn("Oops! code:".concat(e.code," message:").concat(e.message)),new Va(Ba.ERROR).setMessage("code:".concat(e.code," message:").concat(e.message)).setNetworkType(this.getModule(fo).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(S.ERROR,e);}},{key:"reset",value:function value(){be.log("".concat(this._className,".reset")),Le();var e,t=C(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var o=m(e.value,2)[1];o.reset&&o.reset();}}catch(r){t.e(r);}finally{t.f();}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(S.SDK_NOT_READY);var n,a=C(this._eventThrottleMap);try{for(a.s();!(n=a.n()).done;){var s=m(n.value,2)[1];s.timeoutID&&clearTimeout(s.timeoutID);}}catch(r){a.e(r);}finally{a.f();}this._eventThrottleMap.clear();}}]),e;}(),gi=function(){function e(){n(this,e),this._funcMap=new Map();}return s(e,[{key:"defense",value:function value(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map());var n=null;return this._funcMap.get(e).has(t)?n=this._funcMap.get(e).get(t):(n=this._pack(e,t,o),this._funcMap.get(e).set(t,n)),n;}},{key:"defenseOnce",value:function value(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,o);}},{key:"find",value:function value(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)?this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(be.log("SafetyCallback.find: 找不到 func —— ".concat(e,"/").concat(""!==t.name?t.name:"[anonymous]")),null):(be.log("SafetyCallback.find: 找不到 eventName-".concat(e," 对应的 func")),null);}},{key:"delete",value:function value(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0);}},{key:"_pack",value:function value(e,t,o){return function(){try{t.apply(o,Array.from(arguments));}catch(r){var n=Object.values(S).indexOf(e);if(-1!==n){var a=Object.keys(S)[n];be.warn("接入侧事件 TIM.EVENT.".concat(a," 对应的回调函数逻辑存在问题,请检查!"),r);}var s=new Va(Ba.CALLBACK_FUNCTION_ERROR);s.setMessage("eventName:".concat(e)).setMoreMessage(r.message).end();}};}}]),e;}(),hi=function(){function e(t){n(this,e);var o={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:At(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0};this._moduleManager=new _i(o),this._safetyCallbackFactory=new gi();}return s(e,[{key:"onError",value:function value(e){this._moduleManager.onError(e);}},{key:"login",value:function value(e){return this._moduleManager.login(),this._moduleManager.getModule(no).login(e);}},{key:"logout",value:function value(){var e=this;return this._moduleManager.getModule(no).logout().then(function(t){return e._moduleManager.reset(),t;});}},{key:"isReady",value:function value(){return this._moduleManager.isReady();}},{key:"getNotReadyReason",value:function value(){return this._moduleManager.getNotReadyReason();}},{key:"destroy",value:function value(){var e=this;return this.logout().finally(function(){e._moduleManager.stopTimer(),e._moduleManager.getModule(So).terminate(),e._moduleManager.getModule(To).dealloc();var t=e._moduleManager.getOuterEmitterInstance(),o=e._moduleManager.getModule(_o);t.emit(S.SDK_DESTROY,{SDKAppID:o.getSDKAppID()});});}},{key:"on",value:function value(e,t,o){e===S.GROUP_SYSTEM_NOTICE_RECEIVED&&be.warn("!!!TIM.EVENT.GROUP_SYSTEM_NOTICE_RECEIVED v2.6.0起弃用,为了更好的体验,请在 TIM.EVENT.MESSAGE_RECEIVED 事件回调内接收处理群系统通知,详细请参考:https://web.sdk.qcloud.com/im/doc/zh-cn/Message.html#.GroupSystemNoticePayload"),be.debug("on","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,o),o);}},{key:"once",value:function value(e,t,o){be.debug("once","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,o),o||this);}},{key:"off",value:function value(e,t,o,n){be.debug("off","eventName:".concat(e));var a=this._safetyCallbackFactory.find(e,t);null!==a&&(this._moduleManager.getOuterEmitterInstance().off(e,a,o,n),this._safetyCallbackFactory.delete(e,t));}},{key:"registerPlugin",value:function value(e){Ze(e["tim-offline-push-plugin"])?this._moduleManager.getModule(vo).registerPlugin(e):this._moduleManager.getModule(Oo).registerPlugin(e);}},{key:"setLogLevel",value:function value(e){if(e<=0){console.log([""," ________ ______ __ __ __ __ ________ _______","| \\| \\| \\ / \\| \\ _ | \\| \\| \\"," \\$$$$$$$$ \\$$$$$$| $$\\ / $$| $$ / \\ | $$| $$$$$$$$| $$$$$$$\\"," | $$ | $$ | $$$\\ / $$$| $$/ $\\| $$| $$__ | $$__/ $$"," | $$ | $$ | $$$$\\ $$$$| $$ $$$\\ $$| $$ \\ | $$ $$"," | $$ | $$ | $$\\$$ $$ $$| $$ $$\\$$\\$$| $$$$$ | $$$$$$$\\"," | $$ _| $$_ | $$ \\$$$| $$| $$$$ \\$$$$| $$_____ | $$__/ $$"," | $$ | $$ \\| $$ \\$ | $$| $$$ \\$$$| $$ \\| $$ $$"," \\$$ \\$$$$$$ \\$$ \\$$ \\$$ \\$$ \\$$$$$$$$ \\$$$$$$$","",""].join("\n")),console.log("%cIM 智能客服,随时随地解决您的问题 →_→ https://cloud.tencent.com/act/event/smarty-service?from=im-doc","color:#006eff"),console.log("%c从v2.11.2起,SDK 支持了 WebSocket,小程序需要添加受信域名!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html","color:#ff0000");console.log(["","参考以下文档,会更快解决问题哦!(#^.^#)\n","SDK 更新日志: https://cloud.tencent.com/document/product/269/38492\n","SDK 接口文档: https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html\n","常见问题: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-01-faq.html\n","反馈问题?戳我提 issue: https://github.com/tencentyun/TIMSDK/issues\n","如果您需要在生产环境关闭上面的日志,请 tim.setLogLevel(1)\n"].join("\n"));}be.setLevel(e);}},{key:"createTextMessage",value:function value(e){return this._moduleManager.getModule(ao).createTextMessage(e);}},{key:"createTextAtMessage",value:function value(e){return this._moduleManager.getModule(ao).createTextMessage(e);}},{key:"createImageMessage",value:function value(e){return this._moduleManager.getModule(ao).createImageMessage(e);}},{key:"createAudioMessage",value:function value(e){return this._moduleManager.getModule(ao).createAudioMessage(e);}},{key:"createVideoMessage",value:function value(e){return this._moduleManager.getModule(ao).createVideoMessage(e);}},{key:"createCustomMessage",value:function value(e){return this._moduleManager.getModule(ao).createCustomMessage(e);}},{key:"createFaceMessage",value:function value(e){return this._moduleManager.getModule(ao).createFaceMessage(e);}},{key:"createFileMessage",value:function value(e){return this._moduleManager.getModule(ao).createFileMessage(e);}},{key:"createLocationMessage",value:function value(e){return this._moduleManager.getModule(ao).createLocationMessage(e);}},{key:"createMergerMessage",value:function value(e){return this._moduleManager.getModule(ao).createMergerMessage(e);}},{key:"downloadMergerMessage",value:function value(e){return e.type!==D.MSG_MERGER?gs(new ls({code:Ca.MESSAGE_MERGER_TYPE_INVALID,message:Sa.MESSAGE_MERGER_TYPE_INVALID})):Kt(e.payload.downloadKey)?gs(new ls({code:Ca.MESSAGE_MERGER_KEY_INVALID,message:Sa.MESSAGE_MERGER_KEY_INVALID})):this._moduleManager.getModule(ao).downloadMergerMessage(e).catch(function(e){return gs(new ls({code:Ca.MESSAGE_MERGER_DOWNLOAD_FAIL,message:Sa.MESSAGE_MERGER_DOWNLOAD_FAIL}));});}},{key:"createForwardMessage",value:function value(e){return this._moduleManager.getModule(ao).createForwardMessage(e);}},{key:"sendMessage",value:function value(e,t){return e instanceof ns?this._moduleManager.getModule(ao).sendMessageInstance(e,t):gs(new ls({code:Ca.MESSAGE_SEND_NEED_MESSAGE_INSTANCE,message:Sa.MESSAGE_SEND_NEED_MESSAGE_INSTANCE}));}},{key:"callExperimentalAPI",value:function value(e,t){return"handleGroupInvitation"===e?this._moduleManager.getModule(io).handleGroupInvitation(t):"isCommercialAbilityEnabled"===e?this._moduleManager.getModule(Ao).isFeatureEnabled(t):gs(new ls({code:Ca.INVALID_OPERATION,message:Sa.INVALID_OPERATION}));}},{key:"revokeMessage",value:function value(e){return this._moduleManager.getModule(ao).revokeMessage(e);}},{key:"resendMessage",value:function value(e){return this._moduleManager.getModule(ao).resendMessage(e);}},{key:"deleteMessage",value:function value(e){return this._moduleManager.getModule(ao).deleteMessage(e);}},{key:"modifyMessage",value:function value(e){return this._moduleManager.getModule(ao).modifyRemoteMessage(e);}},{key:"getMessageList",value:function value(e){return this._moduleManager.getModule(po).getMessageList(e);}},{key:"getMessageListHopping",value:function value(e){return this._moduleManager.getModule(po).getMessageListHopping(e);}},{key:"sendMessageReadReceipt",value:function value(e){return this._moduleManager.getModule(po).sendReadReceipt(e);}},{key:"getMessageReadReceiptList",value:function value(e){return this._moduleManager.getModule(po).getReadReceiptList(e);}},{key:"getGroupMessageReadMemberList",value:function value(e){return this._moduleManager.getModule(io).getReadReceiptDetail(e);}},{key:"findMessage",value:function value(e){return this._moduleManager.getModule(po).findMessage(e);}},{key:"setMessageRead",value:function value(e){return this._moduleManager.getModule(po).setMessageRead(e);}},{key:"getConversationList",value:function value(e){return this._moduleManager.getModule(po).getConversationList(e);}},{key:"getConversationProfile",value:function value(e){return this._moduleManager.getModule(po).getConversationProfile(e);}},{key:"deleteConversation",value:function value(e){return this._moduleManager.getModule(po).deleteConversation(e);}},{key:"pinConversation",value:function value(e){return this._moduleManager.getModule(po).pinConversation(e);}},{key:"setAllMessageRead",value:function value(e){return this._moduleManager.getModule(po).setAllMessageRead(e);}},{key:"setMessageRemindType",value:function value(e){return this._moduleManager.getModule(po).setMessageRemindType(e);}},{key:"setConversationCustomData",value:function value(e){return this._moduleManager.getModule(po).setConversationCustomData(e);}},{key:"markConversation",value:function value(e){return this._moduleManager.getModule(po).markConversation(e);}},{key:"getConversationGroupList",value:function value(){return this._moduleManager.getModule(po).getConversationGroupList();}},{key:"createConversationGroup",value:function value(e){return this._moduleManager.getModule(po).createConversationGroup(e);}},{key:"deleteConversationGroup",value:function value(e){return this._moduleManager.getModule(po).deleteConversationGroup(e);}},{key:"renameConversationGroup",value:function value(e){return this._moduleManager.getModule(po).renameConversationGroup(e);}},{key:"addConversationsToGroup",value:function value(e){return this._moduleManager.getModule(po).addConversationsToGroup(e);}},{key:"deleteConversationsFromGroup",value:function value(e){return this._moduleManager.getModule(po).deleteConversationsFromGroup(e);}},{key:"getMyProfile",value:function value(){return this._moduleManager.getModule(so).getMyProfile();}},{key:"getUserProfile",value:function value(e){return this._moduleManager.getModule(so).getUserProfile(e);}},{key:"updateMyProfile",value:function value(e){return this._moduleManager.getModule(so).updateMyProfile(e);}},{key:"getBlacklist",value:function value(){return this._moduleManager.getModule(so).getLocalBlacklist();}},{key:"addToBlacklist",value:function value(e){return this._moduleManager.getModule(so).addBlacklist(e);}},{key:"removeFromBlacklist",value:function value(e){return this._moduleManager.getModule(so).deleteBlacklist(e);}},{key:"setSelfStatus",value:function value(e){return this._moduleManager.getModule(so).setSelfStatus(e);}},{key:"getUserStatus",value:function value(e){return this._moduleManager.getModule(so).getUserStatus(e);}},{key:"subscribeUserStatus",value:function value(e){return this._moduleManager.getModule(so).subscribeUserStatus(e);}},{key:"unsubscribeUserStatus",value:function value(e){return this._moduleManager.getModule(so).unsubscribeUserStatus(e);}},{key:"getFriendList",value:function value(){var e=this._moduleManager.getModule(co);return e?e.getLocalFriendList():gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"addFriend",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.addFriend(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"deleteFriend",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.deleteFriend(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"checkFriend",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.checkFriend(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"getFriendProfile",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.getFriendProfile(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"updateFriend",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.updateFriend(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"getFriendApplicationList",value:function value(){var e=this._moduleManager.getModule(co);return e?e.getLocalFriendApplicationList():gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"acceptFriendApplication",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.acceptFriendApplication(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"refuseFriendApplication",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.refuseFriendApplication(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"deleteFriendApplication",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.deleteFriendApplication(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"setFriendApplicationRead",value:function value(){var e=this._moduleManager.getModule(co);return e?e.setFriendApplicationRead():gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"getFriendGroupList",value:function value(){var e=this._moduleManager.getModule(co);return e?e.getLocalFriendGroupList():gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"createFriendGroup",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.createFriendGroup(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"deleteFriendGroup",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.deleteFriendGroup(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"addToFriendGroup",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.addToFriendGroup(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"removeFromFriendGroup",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.removeFromFriendGroup(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"renameFriendGroup",value:function value(e){var t=this._moduleManager.getModule(co);return t?t.renameFriendGroup(e):gs({code:Ca.CANNOT_FIND_MODULE,message:Sa.CANNOT_FIND_MODULE});}},{key:"getGroupList",value:function value(e){return this._moduleManager.getModule(io).getGroupList(e);}},{key:"getGroupProfile",value:function value(e){return this._moduleManager.getModule(io).getGroupProfile(e);}},{key:"createGroup",value:function value(e){return this._moduleManager.getModule(io).createGroup(e);}},{key:"dismissGroup",value:function value(e){return this._moduleManager.getModule(io).dismissGroup(e);}},{key:"updateGroupProfile",value:function value(e){return this._moduleManager.getModule(io).updateGroupProfile(e);}},{key:"joinGroup",value:function value(e){return this._moduleManager.getModule(io).joinGroup(e);}},{key:"quitGroup",value:function value(e){return this._moduleManager.getModule(io).quitGroup(e);}},{key:"searchGroupByID",value:function value(e){return this._moduleManager.getModule(io).searchGroupByID(e);}},{key:"getGroupOnlineMemberCount",value:function value(e){return this._moduleManager.getModule(io).getGroupOnlineMemberCount(e);}},{key:"changeGroupOwner",value:function value(e){return this._moduleManager.getModule(io).changeGroupOwner(e);}},{key:"handleGroupApplication",value:function value(e){return this._moduleManager.getModule(io).handleGroupApplication(e);}},{key:"initGroupAttributes",value:function value(e){return this._moduleManager.getModule(io).initGroupAttributes(e);}},{key:"setGroupAttributes",value:function value(e){return this._moduleManager.getModule(io).setGroupAttributes(e);}},{key:"deleteGroupAttributes",value:function value(e){return this._moduleManager.getModule(io).deleteGroupAttributes(e);}},{key:"getGroupAttributes",value:function value(e){return this._moduleManager.getModule(io).getGroupAttributes(e);}},{key:"getGroupMemberList",value:function value(e){return this._moduleManager.getModule(uo).getGroupMemberList(e);}},{key:"getGroupMemberProfile",value:function value(e){return this._moduleManager.getModule(uo).getGroupMemberProfile(e);}},{key:"addGroupMember",value:function value(e){return this._moduleManager.getModule(uo).addGroupMember(e);}},{key:"deleteGroupMember",value:function value(e){return this._moduleManager.getModule(uo).deleteGroupMember(e);}},{key:"setGroupMemberMuteTime",value:function value(e){return this._moduleManager.getModule(uo).setGroupMemberMuteTime(e);}},{key:"setGroupMemberRole",value:function value(e){return this._moduleManager.getModule(uo).setGroupMemberRole(e);}},{key:"setGroupMemberNameCard",value:function value(e){return this._moduleManager.getModule(uo).setGroupMemberNameCard(e);}},{key:"setGroupMemberCustomField",value:function value(e){return this._moduleManager.getModule(uo).setGroupMemberCustomField(e);}},{key:"getJoinedCommunityList",value:function value(){return this._moduleManager.getModule(lo).getJoinedCommunityList();}},{key:"createTopicInCommunity",value:function value(e){return this._moduleManager.getModule(lo).createTopicInCommunity(e);}},{key:"deleteTopicFromCommunity",value:function value(e){return this._moduleManager.getModule(lo).deleteTopicFromCommunity(e);}},{key:"updateTopicProfile",value:function value(e){return this._moduleManager.getModule(lo).updateTopicProfile(e);}},{key:"getTopicList",value:function value(e){return this._moduleManager.getModule(lo).getTopicList(e);}}]),e;}(),fi={login:"login",logout:"logout",destroy:"destroy",on:"on",off:"off",ready:"ready",setLogLevel:"setLogLevel",joinGroup:"joinGroup",quitGroup:"quitGroup",registerPlugin:"registerPlugin",getGroupOnlineMemberCount:"getGroupOnlineMemberCount"};function mi(e,t){if(e.isReady()||void 0!==fi[t])return!0;var o=e.getNotReadyReason(),n="";Object.getOwnPropertyNames(Ca).forEach(function(e){Ca[e]===o&&(n=Sa[e]);});var a={code:o,message:"".concat(n,"导致 sdk not ready。").concat(t," ").concat(Sa.SDK_IS_NOT_READY,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/module-EVENT.html#.SDK_READY")};return e.onError(a),a;}var Mi={},vi={};return vi.create=function(e){var o=0;if($e(e.SDKAppID))o=e.SDKAppID;else if(be.warn("TIM.create SDKAppID 的类型应该为 Number,请修改!"),o=parseInt(e.SDKAppID),isNaN(o))return be.error("TIM.create failed. 解析 SDKAppID 失败,请检查传参!"),null;if(o&&Mi[o])return Mi[o];be.log("TIM.create");var n=new hi(t(t({},e),{},{SDKAppID:o}));n.on(S.SDK_DESTROY,function(e){Mi[e.data.SDKAppID]=null,delete Mi[e.data.SDKAppID];});var a=function(e){var t=Object.create(null);return Object.keys(oo).forEach(function(o){if(e[o]){var n=oo[o],a=new N();t[n]=function(){var t=Array.from(arguments);return a.use(function(t,n){var a=mi(e,o);return!0===a?n():gs(a);}).use(function(e,t){if(!0===Ht(e,to[o],n))return t();}).use(function(t,n){return e[o].apply(e,t);}),a.run(t);};}}),t;}(n);return Mi[o]=a,be.log("TIM.create ok"),a;},vi.TYPES=D,vi.EVENT=S,vi.VERSION="2.22.1",be.log("TIM.VERSION: ".concat(vi.VERSION)),vi;});
  27855. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/global.js */ 2), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  27856. /***/ }),
  27857. /* 160 */
  27858. /*!**********************************************************************************!*\
  27859. !*** D:/meloinfo/sugarpark-mini-program/node_modules/tim-upload-plugin/index.js ***!
  27860. \**********************************************************************************/
  27861. /*! no static exports found */
  27862. /***/ (function(module, exports, __webpack_require__) {
  27863. /* WEBPACK VAR INJECTION */(function(uni) {var global, factory;global = this, factory = function factory() {function e(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);t && (o = o.filter(function (t) {return Object.getOwnPropertyDescriptor(e, t).enumerable;})), n.push.apply(n, o);}return n;}function t(t) {for (var n = 1; n < arguments.length; n++) {var o = null != arguments[n] ? arguments[n] : {};n % 2 ? e(Object(o), !0).forEach(function (e) {s(t, e, o[e]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : e(Object(o)).forEach(function (e) {Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(o, e));});}return t;}function n(e) {return (n = "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;})(e);}function o(e, t) {if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");}function r(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);}}function a(e, t, n) {return t && r(e.prototype, t), n && r(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;}function s(e, t, n) {return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;}function i(e, t) {if (null == e) return {};var n,o,r = function (e, t) {if (null == e) return {};var n,o,r = {},a = Object.keys(e);for (o = 0; o < a.length; o++) {n = a[o], t.indexOf(n) >= 0 || (r[n] = e[n]);}return r;}(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (o = 0; o < a.length; o++) {n = a[o], t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);}}return r;}var f = "undefined" != typeof wx && "function" == typeof wx.getSystemInfoSync && Boolean(wx.getSystemInfoSync().fontSizeSetting),u = "undefined" != typeof qq && "function" == typeof qq.getSystemInfoSync && Boolean(qq.getSystemInfoSync().fontSizeSetting),l = "undefined" != typeof tt && "function" == typeof tt.getSystemInfoSync && Boolean(tt.getSystemInfoSync().fontSizeSetting),c = "undefined" != typeof swan && "function" == typeof swan.getSystemInfoSync && Boolean(swan.getSystemInfoSync().fontSizeSetting),y = "undefined" != typeof my && "function" == typeof my.getSystemInfoSync && Boolean(my.getSystemInfoSync().fontSizeSetting),d = "undefined" != typeof uni && "undefined" == typeof window,p = f || u || l || c || y || d,g = u ? qq : l ? tt : c ? swan : y ? my : f ? wx : d ? uni : {},h = function h(e) {if ("object" !== n(e) || null === e) return !1;var t = Object.getPrototypeOf(e);if (null === t) return !0;for (var o = t; null !== Object.getPrototypeOf(o);) {o = Object.getPrototypeOf(o);}return t === o;};function m(e) {if (null == e) return !0;if ("boolean" == typeof e) return !1;if ("number" == typeof e) return 0 === e;if ("string" == typeof e) return 0 === e.length;if ("function" == typeof e) return 0 === e.length;if (Array.isArray(e)) return 0 === e.length;if (e instanceof Error) return "" === e.message;if (h(e)) {for (var t in e) {if (Object.prototype.hasOwnProperty.call(e, t)) return !1;}return !0;}return !1;}var b = function () {function e() {o(this, e);}return a(e, [{ key: "request", value: function value(e, t) {var n = this,o = e.downloadUrl || "",r = (e.method || "PUT").toUpperCase(),a = e.url;if (e.qs) {var s = function (e) {var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "&",n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "=";return m(e) ? "" : h(e) ? Object.keys(e).map(function (o) {var r = encodeURIComponent(o) + n;return Array.isArray(e[o]) ? e[o].map(function (e) {return r + encodeURIComponent(e);}).join(t) : r + encodeURIComponent(e[o]);}).filter(Boolean).join(t) : void 0;}(e.qs);s && (a += "".concat(-1 === a.indexOf("?") ? "?" : "&").concat(s));}var i = new XMLHttpRequest();i.open(r, a, !0), i.responseType = e.dataType || "text";var f = e.headers || {};if (!m(f)) for (var u in f) {f.hasOwnProperty(u) && "content-length" !== u.toLowerCase() && "user-agent" !== u.toLowerCase() && "origin" !== u.toLowerCase() && "host" !== u.toLowerCase() && i.setRequestHeader(u, f[u]);}return i.onload = function () {if (200 === i.status) t(null, n._xhrRes(i, n._xhrBody(i, o)));else {var e = { code: i.status, message: JSON.stringify(i.responseText) };t(e, n._xhrRes(i, n._xhrBody(i)));}}, i.onerror = function (e) {var o = n._xhrBody(i),r = { code: i.status, message: JSON.stringify(i.responseText) };o || i.statusText || 0 !== i.status || (e.message = "CORS blocked or network error"), t(r, n._xhrRes(i, o)), r = null;}, e.onProgress && i.upload && (i.upload.onprogress = function (t) {var n = t.total,o = t.loaded,r = Math.floor(100 * o / n);e.onProgress({ total: n, loaded: o, percent: (r >= 100 ? 100 : r) / 100 });}), i.send(e.resources), i;} }, { key: "_xhrRes", value: function value(e, t) {var n = {};return e.getAllResponseHeaders().trim().split("\n").forEach(function (e) {if (e) {var t = e.indexOf(":"),o = e.substr(0, t).trim().toLowerCase(),r = e.substr(t + 1).trim();n[o] = r;}}), { statusCode: e.status, statusMessage: e.statusText, headers: n, data: t };} }, { key: "_xhrBody", value: function value(e, t) {return 200 === e.status && t ? { location: t } : { response: e.responseText };} }]), e;}(),v = ["unknown", "image", "video", "audio", "log"],O = ["name"],S = function () {function e() {o(this, e);}return a(e, [{ key: "request", value: function value(e, n) {var o = this,r = e.resources,a = void 0 === r ? "" : r,s = e.headers,f = void 0 === s ? {} : s,u = e.url,l = e.downloadUrl,c = void 0 === l ? "" : l,d = null,p = "",h = c.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/),m = { url: u, header: f, name: "file", filePath: a, formData: { key: p = (p = decodeURIComponent(h[3])).indexOf("?") > -1 ? p.split("?")[0] : p, success_action_status: 200, "Content-Type": "" }, timeout: e.timeout || 3e5 };if (y) {var b = m;b.name, m = t(t({}, i(b, O)), {}, { fileName: "file", fileType: v[e.fileType] });}return (d = g.uploadFile(t(t({}, m), {}, { success: function success(e) {o._handleResponse({ response: e, downloadUrl: c, callback: n });}, fail: function fail(e) {o._handleResponse({ response: e, downloadUrl: c, callback: n });} }))).onProgressUpdate(function (t) {e.onProgress && e.onProgress({ total: t.totalBytesExpectedToSend, loaded: t.totalBytesSent, percent: Math.floor(t.progress) / 100 });}), d;} }, { key: "_handleResponse", value: function value(e) {var n = e.downloadUrl,o = e.response,r = e.callback,a = o.header,s = {};if (a) for (var i in a) {a.hasOwnProperty(i) && (s[i.toLowerCase()] = a[i]);}var f = +o.statusCode;200 === f ? r(null, { statusCode: f, headers: s, data: t(t({}, o.data), {}, { location: n }) }) : r({ code: f, message: JSON.stringify(o.data) }, { statusCode: f, headers: s, data: void 0 });} }]), e;}();return function () {function e() {o(this, e), console.log("TIMUploadPlugin.VERSION: ".concat("1.0.5")), this.retry = 1, this.tryCount = 0, this.systemClockOffset = 0, this.httpRequest = p ? new S() : new b();}return a(e, [{ key: "uploadFile", value: function value(e, t) {var n = this;return this.httpRequest.request(e, function (o, r) {o && n.tryCount < n.retry && n.allowRetry(o) ? (n.tryCount++, n.uploadFile(e, t)) : (n.tryCount = 0, t(o, r));});} }, { key: "allowRetry", value: function value(e) {var t = !1,n = !1;if (e) {var o = e.headers && (e.headers.date || e.headers.Date) || e.error && e.error.ServerTime;try {var r = e.error && e.error.Code,a = e.error && e.error.Message;("RequestTimeTooSkewed" === r || "AccessDenied" === r && "Request has expired" === a) && (n = !0);} catch (f) {}if (n && o) {var s = Date.now(),i = Date.parse(o);Math.abs(s + this.systemClockOffset - i) >= 3e4 && (this.systemClockOffset = i - s, t = !0);} else 5 === Math.floor(e.statusCode / 100) && (t = !0);}return t;} }]), e;}();}, true ? module.exports = factory() : undefined;
  27864. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  27865. /***/ }),
  27866. /* 161 */,
  27867. /* 162 */,
  27868. /* 163 */,
  27869. /* 164 */,
  27870. /* 165 */,
  27871. /* 166 */,
  27872. /* 167 */,
  27873. /* 168 */,
  27874. /* 169 */,
  27875. /* 170 */,
  27876. /* 171 */,
  27877. /* 172 */,
  27878. /* 173 */,
  27879. /* 174 */,
  27880. /* 175 */,
  27881. /* 176 */,
  27882. /* 177 */,
  27883. /* 178 */,
  27884. /* 179 */,
  27885. /* 180 */,
  27886. /* 181 */,
  27887. /* 182 */,
  27888. /* 183 */,
  27889. /* 184 */,
  27890. /* 185 */,
  27891. /* 186 */,
  27892. /* 187 */,
  27893. /* 188 */,
  27894. /* 189 */,
  27895. /* 190 */,
  27896. /* 191 */,
  27897. /* 192 */,
  27898. /* 193 */,
  27899. /* 194 */,
  27900. /* 195 */,
  27901. /* 196 */,
  27902. /* 197 */,
  27903. /* 198 */,
  27904. /* 199 */,
  27905. /* 200 */,
  27906. /* 201 */,
  27907. /* 202 */,
  27908. /* 203 */,
  27909. /* 204 */,
  27910. /* 205 */,
  27911. /* 206 */,
  27912. /* 207 */,
  27913. /* 208 */,
  27914. /* 209 */
  27915. /*!******************************************************!*\
  27916. !*** D:/meloinfo/sugarpark-mini-program/util/oss.js ***!
  27917. \******************************************************/
  27918. /*! no static exports found */
  27919. /***/ (function(module, exports, __webpack_require__) {
  27920. "use strict";
  27921. /* WEBPACK VAR INJECTION */(function(uni) {var _cryptoJs = _interopRequireDefault(__webpack_require__(/*! crypto-js */ 210));
  27922. var _base = __webpack_require__(/*! ./base64.js */ 246);
  27923. var _moment = _interopRequireDefault(__webpack_require__(/*! moment */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  27924. // 计算签名。
  27925. function computeSignature(accessKeySecret, canonicalString) {
  27926. return _cryptoJs.default.enc.Base64.stringify(_cryptoJs.default.HmacSHA1(canonicalString, accessKeySecret));
  27927. }
  27928. function getPolicy() {
  27929. var date = new Date();
  27930. date.setHours(date.getHours() + 1);
  27931. var policyText = {
  27932. expiration: date.toISOString(), // 设置policy过期时间。
  27933. conditions: [
  27934. // 限制上传大小。
  27935. ["content-length-range", 0, 1024 * 1024 * 1024]] };
  27936. return policyText;
  27937. }
  27938. function getKey(i, ext) {
  27939. var now = new Date();
  27940. var date = (0, _moment.default)(now).format('yyyyMMDD');
  27941. var time = (0, _moment.default)(now).format('HHmmss');
  27942. var longTime = (0, _moment.default)(now).format('yyyyMMDDHHmmss');
  27943. var userId = JSON.parse(uni.getStorageSync('user')).id;
  27944. return "".concat(date, "/").concat(userId, "/").concat(time, "/").concat(longTime).concat(i, ".").concat(ext);
  27945. }
  27946. module.exports = {
  27947. computeSignature: computeSignature,
  27948. getPolicy: getPolicy,
  27949. getKey: getKey };
  27950. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  27951. /***/ }),
  27952. /* 210 */
  27953. /*!**************************************************************************!*\
  27954. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/index.js ***!
  27955. \**************************************************************************/
  27956. /*! no static exports found */
  27957. /***/ (function(module, exports, __webpack_require__) {
  27958. ;(function (root, factory, undef) {
  27959. if (true) {
  27960. // CommonJS
  27961. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./x64-core */ 213), __webpack_require__(/*! ./lib-typedarrays */ 214), __webpack_require__(/*! ./enc-utf16 */ 215), __webpack_require__(/*! ./enc-base64 */ 216), __webpack_require__(/*! ./enc-base64url */ 217), __webpack_require__(/*! ./md5 */ 218), __webpack_require__(/*! ./sha1 */ 219), __webpack_require__(/*! ./sha256 */ 220), __webpack_require__(/*! ./sha224 */ 221), __webpack_require__(/*! ./sha512 */ 222), __webpack_require__(/*! ./sha384 */ 223), __webpack_require__(/*! ./sha3 */ 224), __webpack_require__(/*! ./ripemd160 */ 225), __webpack_require__(/*! ./hmac */ 226), __webpack_require__(/*! ./pbkdf2 */ 227), __webpack_require__(/*! ./evpkdf */ 228), __webpack_require__(/*! ./cipher-core */ 229), __webpack_require__(/*! ./mode-cfb */ 230), __webpack_require__(/*! ./mode-ctr */ 231), __webpack_require__(/*! ./mode-ctr-gladman */ 232), __webpack_require__(/*! ./mode-ofb */ 233), __webpack_require__(/*! ./mode-ecb */ 234), __webpack_require__(/*! ./pad-ansix923 */ 235), __webpack_require__(/*! ./pad-iso10126 */ 236), __webpack_require__(/*! ./pad-iso97971 */ 237), __webpack_require__(/*! ./pad-zeropadding */ 238), __webpack_require__(/*! ./pad-nopadding */ 239), __webpack_require__(/*! ./format-hex */ 240), __webpack_require__(/*! ./aes */ 241), __webpack_require__(/*! ./tripledes */ 242), __webpack_require__(/*! ./rc4 */ 243), __webpack_require__(/*! ./rabbit */ 244), __webpack_require__(/*! ./rabbit-legacy */ 245));
  27962. } else
  27963. {}
  27964. })(this, function (CryptoJS) {
  27965. return CryptoJS;
  27966. });
  27967. /***/ }),
  27968. /* 211 */
  27969. /*!*************************************************************************!*\
  27970. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/core.js ***!
  27971. \*************************************************************************/
  27972. /*! no static exports found */
  27973. /***/ (function(module, exports, __webpack_require__) {
  27974. /* WEBPACK VAR INJECTION */(function(global) {;(function (root, factory) {
  27975. if (true) {
  27976. // CommonJS
  27977. module.exports = exports = factory();
  27978. } else
  27979. {}
  27980. })(this, function () {
  27981. /*globals window, global, require*/
  27982. /**
  27983. * CryptoJS core components.
  27984. */
  27985. var CryptoJS = CryptoJS || function (Math, undefined) {
  27986. var crypto;
  27987. // Native crypto from window (Browser)
  27988. if (typeof window !== 'undefined' && window.crypto) {
  27989. crypto = window.crypto;
  27990. }
  27991. // Native crypto in web worker (Browser)
  27992. if (typeof self !== 'undefined' && self.crypto) {
  27993. crypto = self.crypto;
  27994. }
  27995. // Native crypto from worker
  27996. if (typeof globalThis !== 'undefined' && globalThis.crypto) {
  27997. crypto = globalThis.crypto;
  27998. }
  27999. // Native (experimental IE 11) crypto from window (Browser)
  28000. if (!crypto && typeof window !== 'undefined' && window.msCrypto) {
  28001. crypto = window.msCrypto;
  28002. }
  28003. // Native crypto from global (NodeJS)
  28004. if (!crypto && typeof global !== 'undefined' && global.crypto) {
  28005. crypto = global.crypto;
  28006. }
  28007. // Native crypto import via require (NodeJS)
  28008. if (!crypto && "function" === 'function') {
  28009. try {
  28010. crypto = __webpack_require__(/*! crypto */ 212);
  28011. } catch (err) {}
  28012. }
  28013. /*
  28014. * Cryptographically secure pseudorandom number generator
  28015. *
  28016. * As Math.random() is cryptographically not safe to use
  28017. */
  28018. var cryptoSecureRandomInt = function cryptoSecureRandomInt() {
  28019. if (crypto) {
  28020. // Use getRandomValues method (Browser)
  28021. if (typeof crypto.getRandomValues === 'function') {
  28022. try {
  28023. return crypto.getRandomValues(new Uint32Array(1))[0];
  28024. } catch (err) {}
  28025. }
  28026. // Use randomBytes method (NodeJS)
  28027. if (typeof crypto.randomBytes === 'function') {
  28028. try {
  28029. return crypto.randomBytes(4).readInt32LE();
  28030. } catch (err) {}
  28031. }
  28032. }
  28033. throw new Error('Native crypto module could not be used to get secure random number.');
  28034. };
  28035. /*
  28036. * Local polyfill of Object.create
  28037. */
  28038. var create = Object.create || function () {
  28039. function F() {}
  28040. return function (obj) {
  28041. var subtype;
  28042. F.prototype = obj;
  28043. subtype = new F();
  28044. F.prototype = null;
  28045. return subtype;
  28046. };
  28047. }();
  28048. /**
  28049. * CryptoJS namespace.
  28050. */
  28051. var C = {};
  28052. /**
  28053. * Library namespace.
  28054. */
  28055. var C_lib = C.lib = {};
  28056. /**
  28057. * Base object for prototypal inheritance.
  28058. */
  28059. var Base = C_lib.Base = function () {
  28060. return {
  28061. /**
  28062. * Creates a new object that inherits from this object.
  28063. *
  28064. * @param {Object} overrides Properties to copy into the new object.
  28065. *
  28066. * @return {Object} The new object.
  28067. *
  28068. * @static
  28069. *
  28070. * @example
  28071. *
  28072. * var MyType = CryptoJS.lib.Base.extend({
  28073. * field: 'value',
  28074. *
  28075. * method: function () {
  28076. * }
  28077. * });
  28078. */
  28079. extend: function extend(overrides) {
  28080. // Spawn
  28081. var subtype = create(this);
  28082. // Augment
  28083. if (overrides) {
  28084. subtype.mixIn(overrides);
  28085. }
  28086. // Create default initializer
  28087. if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {
  28088. subtype.init = function () {
  28089. subtype.$super.init.apply(this, arguments);
  28090. };
  28091. }
  28092. // Initializer's prototype is the subtype object
  28093. subtype.init.prototype = subtype;
  28094. // Reference supertype
  28095. subtype.$super = this;
  28096. return subtype;
  28097. },
  28098. /**
  28099. * Extends this object and runs the init method.
  28100. * Arguments to create() will be passed to init().
  28101. *
  28102. * @return {Object} The new object.
  28103. *
  28104. * @static
  28105. *
  28106. * @example
  28107. *
  28108. * var instance = MyType.create();
  28109. */
  28110. create: function create() {
  28111. var instance = this.extend();
  28112. instance.init.apply(instance, arguments);
  28113. return instance;
  28114. },
  28115. /**
  28116. * Initializes a newly created object.
  28117. * Override this method to add some logic when your objects are created.
  28118. *
  28119. * @example
  28120. *
  28121. * var MyType = CryptoJS.lib.Base.extend({
  28122. * init: function () {
  28123. * // ...
  28124. * }
  28125. * });
  28126. */
  28127. init: function init() {
  28128. },
  28129. /**
  28130. * Copies properties into this object.
  28131. *
  28132. * @param {Object} properties The properties to mix in.
  28133. *
  28134. * @example
  28135. *
  28136. * MyType.mixIn({
  28137. * field: 'value'
  28138. * });
  28139. */
  28140. mixIn: function mixIn(properties) {
  28141. for (var propertyName in properties) {
  28142. if (properties.hasOwnProperty(propertyName)) {
  28143. this[propertyName] = properties[propertyName];
  28144. }
  28145. }
  28146. // IE won't copy toString using the loop above
  28147. if (properties.hasOwnProperty('toString')) {
  28148. this.toString = properties.toString;
  28149. }
  28150. },
  28151. /**
  28152. * Creates a copy of this object.
  28153. *
  28154. * @return {Object} The clone.
  28155. *
  28156. * @example
  28157. *
  28158. * var clone = instance.clone();
  28159. */
  28160. clone: function clone() {
  28161. return this.init.prototype.extend(this);
  28162. } };
  28163. }();
  28164. /**
  28165. * An array of 32-bit words.
  28166. *
  28167. * @property {Array} words The array of 32-bit words.
  28168. * @property {number} sigBytes The number of significant bytes in this word array.
  28169. */
  28170. var WordArray = C_lib.WordArray = Base.extend({
  28171. /**
  28172. * Initializes a newly created word array.
  28173. *
  28174. * @param {Array} words (Optional) An array of 32-bit words.
  28175. * @param {number} sigBytes (Optional) The number of significant bytes in the words.
  28176. *
  28177. * @example
  28178. *
  28179. * var wordArray = CryptoJS.lib.WordArray.create();
  28180. * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
  28181. * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
  28182. */
  28183. init: function init(words, sigBytes) {
  28184. words = this.words = words || [];
  28185. if (sigBytes != undefined) {
  28186. this.sigBytes = sigBytes;
  28187. } else {
  28188. this.sigBytes = words.length * 4;
  28189. }
  28190. },
  28191. /**
  28192. * Converts this word array to a string.
  28193. *
  28194. * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
  28195. *
  28196. * @return {string} The stringified word array.
  28197. *
  28198. * @example
  28199. *
  28200. * var string = wordArray + '';
  28201. * var string = wordArray.toString();
  28202. * var string = wordArray.toString(CryptoJS.enc.Utf8);
  28203. */
  28204. toString: function toString(encoder) {
  28205. return (encoder || Hex).stringify(this);
  28206. },
  28207. /**
  28208. * Concatenates a word array to this word array.
  28209. *
  28210. * @param {WordArray} wordArray The word array to append.
  28211. *
  28212. * @return {WordArray} This word array.
  28213. *
  28214. * @example
  28215. *
  28216. * wordArray1.concat(wordArray2);
  28217. */
  28218. concat: function concat(wordArray) {
  28219. // Shortcuts
  28220. var thisWords = this.words;
  28221. var thatWords = wordArray.words;
  28222. var thisSigBytes = this.sigBytes;
  28223. var thatSigBytes = wordArray.sigBytes;
  28224. // Clamp excess bits
  28225. this.clamp();
  28226. // Concat
  28227. if (thisSigBytes % 4) {
  28228. // Copy one byte at a time
  28229. for (var i = 0; i < thatSigBytes; i++) {
  28230. var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  28231. thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8;
  28232. }
  28233. } else {
  28234. // Copy one word at a time
  28235. for (var j = 0; j < thatSigBytes; j += 4) {
  28236. thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2];
  28237. }
  28238. }
  28239. this.sigBytes += thatSigBytes;
  28240. // Chainable
  28241. return this;
  28242. },
  28243. /**
  28244. * Removes insignificant bits.
  28245. *
  28246. * @example
  28247. *
  28248. * wordArray.clamp();
  28249. */
  28250. clamp: function clamp() {
  28251. // Shortcuts
  28252. var words = this.words;
  28253. var sigBytes = this.sigBytes;
  28254. // Clamp
  28255. words[sigBytes >>> 2] &= 0xffffffff << 32 - sigBytes % 4 * 8;
  28256. words.length = Math.ceil(sigBytes / 4);
  28257. },
  28258. /**
  28259. * Creates a copy of this word array.
  28260. *
  28261. * @return {WordArray} The clone.
  28262. *
  28263. * @example
  28264. *
  28265. * var clone = wordArray.clone();
  28266. */
  28267. clone: function clone() {
  28268. var clone = Base.clone.call(this);
  28269. clone.words = this.words.slice(0);
  28270. return clone;
  28271. },
  28272. /**
  28273. * Creates a word array filled with random bytes.
  28274. *
  28275. * @param {number} nBytes The number of random bytes to generate.
  28276. *
  28277. * @return {WordArray} The random word array.
  28278. *
  28279. * @static
  28280. *
  28281. * @example
  28282. *
  28283. * var wordArray = CryptoJS.lib.WordArray.random(16);
  28284. */
  28285. random: function random(nBytes) {
  28286. var words = [];
  28287. for (var i = 0; i < nBytes; i += 4) {
  28288. words.push(cryptoSecureRandomInt());
  28289. }
  28290. return new WordArray.init(words, nBytes);
  28291. } });
  28292. /**
  28293. * Encoder namespace.
  28294. */
  28295. var C_enc = C.enc = {};
  28296. /**
  28297. * Hex encoding strategy.
  28298. */
  28299. var Hex = C_enc.Hex = {
  28300. /**
  28301. * Converts a word array to a hex string.
  28302. *
  28303. * @param {WordArray} wordArray The word array.
  28304. *
  28305. * @return {string} The hex string.
  28306. *
  28307. * @static
  28308. *
  28309. * @example
  28310. *
  28311. * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
  28312. */
  28313. stringify: function stringify(wordArray) {
  28314. // Shortcuts
  28315. var words = wordArray.words;
  28316. var sigBytes = wordArray.sigBytes;
  28317. // Convert
  28318. var hexChars = [];
  28319. for (var i = 0; i < sigBytes; i++) {
  28320. var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  28321. hexChars.push((bite >>> 4).toString(16));
  28322. hexChars.push((bite & 0x0f).toString(16));
  28323. }
  28324. return hexChars.join('');
  28325. },
  28326. /**
  28327. * Converts a hex string to a word array.
  28328. *
  28329. * @param {string} hexStr The hex string.
  28330. *
  28331. * @return {WordArray} The word array.
  28332. *
  28333. * @static
  28334. *
  28335. * @example
  28336. *
  28337. * var wordArray = CryptoJS.enc.Hex.parse(hexString);
  28338. */
  28339. parse: function parse(hexStr) {
  28340. // Shortcut
  28341. var hexStrLength = hexStr.length;
  28342. // Convert
  28343. var words = [];
  28344. for (var i = 0; i < hexStrLength; i += 2) {
  28345. words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4;
  28346. }
  28347. return new WordArray.init(words, hexStrLength / 2);
  28348. } };
  28349. /**
  28350. * Latin1 encoding strategy.
  28351. */
  28352. var Latin1 = C_enc.Latin1 = {
  28353. /**
  28354. * Converts a word array to a Latin1 string.
  28355. *
  28356. * @param {WordArray} wordArray The word array.
  28357. *
  28358. * @return {string} The Latin1 string.
  28359. *
  28360. * @static
  28361. *
  28362. * @example
  28363. *
  28364. * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
  28365. */
  28366. stringify: function stringify(wordArray) {
  28367. // Shortcuts
  28368. var words = wordArray.words;
  28369. var sigBytes = wordArray.sigBytes;
  28370. // Convert
  28371. var latin1Chars = [];
  28372. for (var i = 0; i < sigBytes; i++) {
  28373. var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  28374. latin1Chars.push(String.fromCharCode(bite));
  28375. }
  28376. return latin1Chars.join('');
  28377. },
  28378. /**
  28379. * Converts a Latin1 string to a word array.
  28380. *
  28381. * @param {string} latin1Str The Latin1 string.
  28382. *
  28383. * @return {WordArray} The word array.
  28384. *
  28385. * @static
  28386. *
  28387. * @example
  28388. *
  28389. * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
  28390. */
  28391. parse: function parse(latin1Str) {
  28392. // Shortcut
  28393. var latin1StrLength = latin1Str.length;
  28394. // Convert
  28395. var words = [];
  28396. for (var i = 0; i < latin1StrLength; i++) {
  28397. words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << 24 - i % 4 * 8;
  28398. }
  28399. return new WordArray.init(words, latin1StrLength);
  28400. } };
  28401. /**
  28402. * UTF-8 encoding strategy.
  28403. */
  28404. var Utf8 = C_enc.Utf8 = {
  28405. /**
  28406. * Converts a word array to a UTF-8 string.
  28407. *
  28408. * @param {WordArray} wordArray The word array.
  28409. *
  28410. * @return {string} The UTF-8 string.
  28411. *
  28412. * @static
  28413. *
  28414. * @example
  28415. *
  28416. * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
  28417. */
  28418. stringify: function stringify(wordArray) {
  28419. try {
  28420. return decodeURIComponent(escape(Latin1.stringify(wordArray)));
  28421. } catch (e) {
  28422. throw new Error('Malformed UTF-8 data');
  28423. }
  28424. },
  28425. /**
  28426. * Converts a UTF-8 string to a word array.
  28427. *
  28428. * @param {string} utf8Str The UTF-8 string.
  28429. *
  28430. * @return {WordArray} The word array.
  28431. *
  28432. * @static
  28433. *
  28434. * @example
  28435. *
  28436. * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
  28437. */
  28438. parse: function parse(utf8Str) {
  28439. return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
  28440. } };
  28441. /**
  28442. * Abstract buffered block algorithm template.
  28443. *
  28444. * The property blockSize must be implemented in a concrete subtype.
  28445. *
  28446. * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
  28447. */
  28448. var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
  28449. /**
  28450. * Resets this block algorithm's data buffer to its initial state.
  28451. *
  28452. * @example
  28453. *
  28454. * bufferedBlockAlgorithm.reset();
  28455. */
  28456. reset: function reset() {
  28457. // Initial values
  28458. this._data = new WordArray.init();
  28459. this._nDataBytes = 0;
  28460. },
  28461. /**
  28462. * Adds new data to this block algorithm's buffer.
  28463. *
  28464. * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
  28465. *
  28466. * @example
  28467. *
  28468. * bufferedBlockAlgorithm._append('data');
  28469. * bufferedBlockAlgorithm._append(wordArray);
  28470. */
  28471. _append: function _append(data) {
  28472. // Convert string to WordArray, else assume WordArray already
  28473. if (typeof data == 'string') {
  28474. data = Utf8.parse(data);
  28475. }
  28476. // Append
  28477. this._data.concat(data);
  28478. this._nDataBytes += data.sigBytes;
  28479. },
  28480. /**
  28481. * Processes available data blocks.
  28482. *
  28483. * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
  28484. *
  28485. * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
  28486. *
  28487. * @return {WordArray} The processed data.
  28488. *
  28489. * @example
  28490. *
  28491. * var processedData = bufferedBlockAlgorithm._process();
  28492. * var processedData = bufferedBlockAlgorithm._process(!!'flush');
  28493. */
  28494. _process: function _process(doFlush) {
  28495. var processedWords;
  28496. // Shortcuts
  28497. var data = this._data;
  28498. var dataWords = data.words;
  28499. var dataSigBytes = data.sigBytes;
  28500. var blockSize = this.blockSize;
  28501. var blockSizeBytes = blockSize * 4;
  28502. // Count blocks ready
  28503. var nBlocksReady = dataSigBytes / blockSizeBytes;
  28504. if (doFlush) {
  28505. // Round up to include partial blocks
  28506. nBlocksReady = Math.ceil(nBlocksReady);
  28507. } else {
  28508. // Round down to include only full blocks,
  28509. // less the number of blocks that must remain in the buffer
  28510. nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
  28511. }
  28512. // Count words ready
  28513. var nWordsReady = nBlocksReady * blockSize;
  28514. // Count bytes ready
  28515. var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);
  28516. // Process blocks
  28517. if (nWordsReady) {
  28518. for (var offset = 0; offset < nWordsReady; offset += blockSize) {
  28519. // Perform concrete-algorithm logic
  28520. this._doProcessBlock(dataWords, offset);
  28521. }
  28522. // Remove processed words
  28523. processedWords = dataWords.splice(0, nWordsReady);
  28524. data.sigBytes -= nBytesReady;
  28525. }
  28526. // Return processed words
  28527. return new WordArray.init(processedWords, nBytesReady);
  28528. },
  28529. /**
  28530. * Creates a copy of this object.
  28531. *
  28532. * @return {Object} The clone.
  28533. *
  28534. * @example
  28535. *
  28536. * var clone = bufferedBlockAlgorithm.clone();
  28537. */
  28538. clone: function clone() {
  28539. var clone = Base.clone.call(this);
  28540. clone._data = this._data.clone();
  28541. return clone;
  28542. },
  28543. _minBufferSize: 0 });
  28544. /**
  28545. * Abstract hasher template.
  28546. *
  28547. * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
  28548. */
  28549. var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
  28550. /**
  28551. * Configuration options.
  28552. */
  28553. cfg: Base.extend(),
  28554. /**
  28555. * Initializes a newly created hasher.
  28556. *
  28557. * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
  28558. *
  28559. * @example
  28560. *
  28561. * var hasher = CryptoJS.algo.SHA256.create();
  28562. */
  28563. init: function init(cfg) {
  28564. // Apply config defaults
  28565. this.cfg = this.cfg.extend(cfg);
  28566. // Set initial values
  28567. this.reset();
  28568. },
  28569. /**
  28570. * Resets this hasher to its initial state.
  28571. *
  28572. * @example
  28573. *
  28574. * hasher.reset();
  28575. */
  28576. reset: function reset() {
  28577. // Reset data buffer
  28578. BufferedBlockAlgorithm.reset.call(this);
  28579. // Perform concrete-hasher logic
  28580. this._doReset();
  28581. },
  28582. /**
  28583. * Updates this hasher with a message.
  28584. *
  28585. * @param {WordArray|string} messageUpdate The message to append.
  28586. *
  28587. * @return {Hasher} This hasher.
  28588. *
  28589. * @example
  28590. *
  28591. * hasher.update('message');
  28592. * hasher.update(wordArray);
  28593. */
  28594. update: function update(messageUpdate) {
  28595. // Append
  28596. this._append(messageUpdate);
  28597. // Update the hash
  28598. this._process();
  28599. // Chainable
  28600. return this;
  28601. },
  28602. /**
  28603. * Finalizes the hash computation.
  28604. * Note that the finalize operation is effectively a destructive, read-once operation.
  28605. *
  28606. * @param {WordArray|string} messageUpdate (Optional) A final message update.
  28607. *
  28608. * @return {WordArray} The hash.
  28609. *
  28610. * @example
  28611. *
  28612. * var hash = hasher.finalize();
  28613. * var hash = hasher.finalize('message');
  28614. * var hash = hasher.finalize(wordArray);
  28615. */
  28616. finalize: function finalize(messageUpdate) {
  28617. // Final message update
  28618. if (messageUpdate) {
  28619. this._append(messageUpdate);
  28620. }
  28621. // Perform concrete-hasher logic
  28622. var hash = this._doFinalize();
  28623. return hash;
  28624. },
  28625. blockSize: 512 / 32,
  28626. /**
  28627. * Creates a shortcut function to a hasher's object interface.
  28628. *
  28629. * @param {Hasher} hasher The hasher to create a helper for.
  28630. *
  28631. * @return {Function} The shortcut function.
  28632. *
  28633. * @static
  28634. *
  28635. * @example
  28636. *
  28637. * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
  28638. */
  28639. _createHelper: function _createHelper(hasher) {
  28640. return function (message, cfg) {
  28641. return new hasher.init(cfg).finalize(message);
  28642. };
  28643. },
  28644. /**
  28645. * Creates a shortcut function to the HMAC's object interface.
  28646. *
  28647. * @param {Hasher} hasher The hasher to use in this HMAC helper.
  28648. *
  28649. * @return {Function} The shortcut function.
  28650. *
  28651. * @static
  28652. *
  28653. * @example
  28654. *
  28655. * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
  28656. */
  28657. _createHmacHelper: function _createHmacHelper(hasher) {
  28658. return function (message, key) {
  28659. return new C_algo.HMAC.init(hasher, key).finalize(message);
  28660. };
  28661. } });
  28662. /**
  28663. * Algorithm namespace.
  28664. */
  28665. var C_algo = C.algo = {};
  28666. return C;
  28667. }(Math);
  28668. return CryptoJS;
  28669. });
  28670. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/global.js */ 2)))
  28671. /***/ }),
  28672. /* 212 */
  28673. /*!************************!*\
  28674. !*** crypto (ignored) ***!
  28675. \************************/
  28676. /*! no static exports found */
  28677. /***/ (function(module, exports) {
  28678. /* (ignored) */
  28679. /***/ }),
  28680. /* 213 */
  28681. /*!*****************************************************************************!*\
  28682. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/x64-core.js ***!
  28683. \*****************************************************************************/
  28684. /*! no static exports found */
  28685. /***/ (function(module, exports, __webpack_require__) {
  28686. ;(function (root, factory) {
  28687. if (true) {
  28688. // CommonJS
  28689. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  28690. } else
  28691. {}
  28692. })(this, function (CryptoJS) {
  28693. (function (undefined) {
  28694. // Shortcuts
  28695. var C = CryptoJS;
  28696. var C_lib = C.lib;
  28697. var Base = C_lib.Base;
  28698. var X32WordArray = C_lib.WordArray;
  28699. /**
  28700. * x64 namespace.
  28701. */
  28702. var C_x64 = C.x64 = {};
  28703. /**
  28704. * A 64-bit word.
  28705. */
  28706. var X64Word = C_x64.Word = Base.extend({
  28707. /**
  28708. * Initializes a newly created 64-bit word.
  28709. *
  28710. * @param {number} high The high 32 bits.
  28711. * @param {number} low The low 32 bits.
  28712. *
  28713. * @example
  28714. *
  28715. * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
  28716. */
  28717. init: function init(high, low) {
  28718. this.high = high;
  28719. this.low = low;
  28720. }
  28721. /**
  28722. * Bitwise NOTs this word.
  28723. *
  28724. * @return {X64Word} A new x64-Word object after negating.
  28725. *
  28726. * @example
  28727. *
  28728. * var negated = x64Word.not();
  28729. */
  28730. // not: function () {
  28731. // var high = ~this.high;
  28732. // var low = ~this.low;
  28733. // return X64Word.create(high, low);
  28734. // },
  28735. /**
  28736. * Bitwise ANDs this word with the passed word.
  28737. *
  28738. * @param {X64Word} word The x64-Word to AND with this word.
  28739. *
  28740. * @return {X64Word} A new x64-Word object after ANDing.
  28741. *
  28742. * @example
  28743. *
  28744. * var anded = x64Word.and(anotherX64Word);
  28745. */
  28746. // and: function (word) {
  28747. // var high = this.high & word.high;
  28748. // var low = this.low & word.low;
  28749. // return X64Word.create(high, low);
  28750. // },
  28751. /**
  28752. * Bitwise ORs this word with the passed word.
  28753. *
  28754. * @param {X64Word} word The x64-Word to OR with this word.
  28755. *
  28756. * @return {X64Word} A new x64-Word object after ORing.
  28757. *
  28758. * @example
  28759. *
  28760. * var ored = x64Word.or(anotherX64Word);
  28761. */
  28762. // or: function (word) {
  28763. // var high = this.high | word.high;
  28764. // var low = this.low | word.low;
  28765. // return X64Word.create(high, low);
  28766. // },
  28767. /**
  28768. * Bitwise XORs this word with the passed word.
  28769. *
  28770. * @param {X64Word} word The x64-Word to XOR with this word.
  28771. *
  28772. * @return {X64Word} A new x64-Word object after XORing.
  28773. *
  28774. * @example
  28775. *
  28776. * var xored = x64Word.xor(anotherX64Word);
  28777. */
  28778. // xor: function (word) {
  28779. // var high = this.high ^ word.high;
  28780. // var low = this.low ^ word.low;
  28781. // return X64Word.create(high, low);
  28782. // },
  28783. /**
  28784. * Shifts this word n bits to the left.
  28785. *
  28786. * @param {number} n The number of bits to shift.
  28787. *
  28788. * @return {X64Word} A new x64-Word object after shifting.
  28789. *
  28790. * @example
  28791. *
  28792. * var shifted = x64Word.shiftL(25);
  28793. */
  28794. // shiftL: function (n) {
  28795. // if (n < 32) {
  28796. // var high = (this.high << n) | (this.low >>> (32 - n));
  28797. // var low = this.low << n;
  28798. // } else {
  28799. // var high = this.low << (n - 32);
  28800. // var low = 0;
  28801. // }
  28802. // return X64Word.create(high, low);
  28803. // },
  28804. /**
  28805. * Shifts this word n bits to the right.
  28806. *
  28807. * @param {number} n The number of bits to shift.
  28808. *
  28809. * @return {X64Word} A new x64-Word object after shifting.
  28810. *
  28811. * @example
  28812. *
  28813. * var shifted = x64Word.shiftR(7);
  28814. */
  28815. // shiftR: function (n) {
  28816. // if (n < 32) {
  28817. // var low = (this.low >>> n) | (this.high << (32 - n));
  28818. // var high = this.high >>> n;
  28819. // } else {
  28820. // var low = this.high >>> (n - 32);
  28821. // var high = 0;
  28822. // }
  28823. // return X64Word.create(high, low);
  28824. // },
  28825. /**
  28826. * Rotates this word n bits to the left.
  28827. *
  28828. * @param {number} n The number of bits to rotate.
  28829. *
  28830. * @return {X64Word} A new x64-Word object after rotating.
  28831. *
  28832. * @example
  28833. *
  28834. * var rotated = x64Word.rotL(25);
  28835. */
  28836. // rotL: function (n) {
  28837. // return this.shiftL(n).or(this.shiftR(64 - n));
  28838. // },
  28839. /**
  28840. * Rotates this word n bits to the right.
  28841. *
  28842. * @param {number} n The number of bits to rotate.
  28843. *
  28844. * @return {X64Word} A new x64-Word object after rotating.
  28845. *
  28846. * @example
  28847. *
  28848. * var rotated = x64Word.rotR(7);
  28849. */
  28850. // rotR: function (n) {
  28851. // return this.shiftR(n).or(this.shiftL(64 - n));
  28852. // },
  28853. /**
  28854. * Adds this word with the passed word.
  28855. *
  28856. * @param {X64Word} word The x64-Word to add with this word.
  28857. *
  28858. * @return {X64Word} A new x64-Word object after adding.
  28859. *
  28860. * @example
  28861. *
  28862. * var added = x64Word.add(anotherX64Word);
  28863. */
  28864. // add: function (word) {
  28865. // var low = (this.low + word.low) | 0;
  28866. // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
  28867. // var high = (this.high + word.high + carry) | 0;
  28868. // return X64Word.create(high, low);
  28869. // }
  28870. });
  28871. /**
  28872. * An array of 64-bit words.
  28873. *
  28874. * @property {Array} words The array of CryptoJS.x64.Word objects.
  28875. * @property {number} sigBytes The number of significant bytes in this word array.
  28876. */
  28877. var X64WordArray = C_x64.WordArray = Base.extend({
  28878. /**
  28879. * Initializes a newly created word array.
  28880. *
  28881. * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
  28882. * @param {number} sigBytes (Optional) The number of significant bytes in the words.
  28883. *
  28884. * @example
  28885. *
  28886. * var wordArray = CryptoJS.x64.WordArray.create();
  28887. *
  28888. * var wordArray = CryptoJS.x64.WordArray.create([
  28889. * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
  28890. * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
  28891. * ]);
  28892. *
  28893. * var wordArray = CryptoJS.x64.WordArray.create([
  28894. * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
  28895. * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
  28896. * ], 10);
  28897. */
  28898. init: function init(words, sigBytes) {
  28899. words = this.words = words || [];
  28900. if (sigBytes != undefined) {
  28901. this.sigBytes = sigBytes;
  28902. } else {
  28903. this.sigBytes = words.length * 8;
  28904. }
  28905. },
  28906. /**
  28907. * Converts this 64-bit word array to a 32-bit word array.
  28908. *
  28909. * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
  28910. *
  28911. * @example
  28912. *
  28913. * var x32WordArray = x64WordArray.toX32();
  28914. */
  28915. toX32: function toX32() {
  28916. // Shortcuts
  28917. var x64Words = this.words;
  28918. var x64WordsLength = x64Words.length;
  28919. // Convert
  28920. var x32Words = [];
  28921. for (var i = 0; i < x64WordsLength; i++) {
  28922. var x64Word = x64Words[i];
  28923. x32Words.push(x64Word.high);
  28924. x32Words.push(x64Word.low);
  28925. }
  28926. return X32WordArray.create(x32Words, this.sigBytes);
  28927. },
  28928. /**
  28929. * Creates a copy of this word array.
  28930. *
  28931. * @return {X64WordArray} The clone.
  28932. *
  28933. * @example
  28934. *
  28935. * var clone = x64WordArray.clone();
  28936. */
  28937. clone: function clone() {
  28938. var clone = Base.clone.call(this);
  28939. // Clone "words" array
  28940. var words = clone.words = this.words.slice(0);
  28941. // Clone each X64Word object
  28942. var wordsLength = words.length;
  28943. for (var i = 0; i < wordsLength; i++) {
  28944. words[i] = words[i].clone();
  28945. }
  28946. return clone;
  28947. } });
  28948. })();
  28949. return CryptoJS;
  28950. });
  28951. /***/ }),
  28952. /* 214 */
  28953. /*!************************************************************************************!*\
  28954. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/lib-typedarrays.js ***!
  28955. \************************************************************************************/
  28956. /*! no static exports found */
  28957. /***/ (function(module, exports, __webpack_require__) {
  28958. ;(function (root, factory) {
  28959. if (true) {
  28960. // CommonJS
  28961. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  28962. } else
  28963. {}
  28964. })(this, function (CryptoJS) {
  28965. (function () {
  28966. // Check if typed arrays are supported
  28967. if (typeof ArrayBuffer != 'function') {
  28968. return;
  28969. }
  28970. // Shortcuts
  28971. var C = CryptoJS;
  28972. var C_lib = C.lib;
  28973. var WordArray = C_lib.WordArray;
  28974. // Reference original init
  28975. var superInit = WordArray.init;
  28976. // Augment WordArray.init to handle typed arrays
  28977. var subInit = WordArray.init = function (typedArray) {
  28978. // Convert buffers to uint8
  28979. if (typedArray instanceof ArrayBuffer) {
  28980. typedArray = new Uint8Array(typedArray);
  28981. }
  28982. // Convert other array views to uint8
  28983. if (
  28984. typedArray instanceof Int8Array ||
  28985. typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray ||
  28986. typedArray instanceof Int16Array ||
  28987. typedArray instanceof Uint16Array ||
  28988. typedArray instanceof Int32Array ||
  28989. typedArray instanceof Uint32Array ||
  28990. typedArray instanceof Float32Array ||
  28991. typedArray instanceof Float64Array)
  28992. {
  28993. typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
  28994. }
  28995. // Handle Uint8Array
  28996. if (typedArray instanceof Uint8Array) {
  28997. // Shortcut
  28998. var typedArrayByteLength = typedArray.byteLength;
  28999. // Extract bytes
  29000. var words = [];
  29001. for (var i = 0; i < typedArrayByteLength; i++) {
  29002. words[i >>> 2] |= typedArray[i] << 24 - i % 4 * 8;
  29003. }
  29004. // Initialize this word array
  29005. superInit.call(this, words, typedArrayByteLength);
  29006. } else {
  29007. // Else call normal init
  29008. superInit.apply(this, arguments);
  29009. }
  29010. };
  29011. subInit.prototype = WordArray;
  29012. })();
  29013. return CryptoJS.lib.WordArray;
  29014. });
  29015. /***/ }),
  29016. /* 215 */
  29017. /*!******************************************************************************!*\
  29018. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/enc-utf16.js ***!
  29019. \******************************************************************************/
  29020. /*! no static exports found */
  29021. /***/ (function(module, exports, __webpack_require__) {
  29022. ;(function (root, factory) {
  29023. if (true) {
  29024. // CommonJS
  29025. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  29026. } else
  29027. {}
  29028. })(this, function (CryptoJS) {
  29029. (function () {
  29030. // Shortcuts
  29031. var C = CryptoJS;
  29032. var C_lib = C.lib;
  29033. var WordArray = C_lib.WordArray;
  29034. var C_enc = C.enc;
  29035. /**
  29036. * UTF-16 BE encoding strategy.
  29037. */
  29038. var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {
  29039. /**
  29040. * Converts a word array to a UTF-16 BE string.
  29041. *
  29042. * @param {WordArray} wordArray The word array.
  29043. *
  29044. * @return {string} The UTF-16 BE string.
  29045. *
  29046. * @static
  29047. *
  29048. * @example
  29049. *
  29050. * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
  29051. */
  29052. stringify: function stringify(wordArray) {
  29053. // Shortcuts
  29054. var words = wordArray.words;
  29055. var sigBytes = wordArray.sigBytes;
  29056. // Convert
  29057. var utf16Chars = [];
  29058. for (var i = 0; i < sigBytes; i += 2) {
  29059. var codePoint = words[i >>> 2] >>> 16 - i % 4 * 8 & 0xffff;
  29060. utf16Chars.push(String.fromCharCode(codePoint));
  29061. }
  29062. return utf16Chars.join('');
  29063. },
  29064. /**
  29065. * Converts a UTF-16 BE string to a word array.
  29066. *
  29067. * @param {string} utf16Str The UTF-16 BE string.
  29068. *
  29069. * @return {WordArray} The word array.
  29070. *
  29071. * @static
  29072. *
  29073. * @example
  29074. *
  29075. * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
  29076. */
  29077. parse: function parse(utf16Str) {
  29078. // Shortcut
  29079. var utf16StrLength = utf16Str.length;
  29080. // Convert
  29081. var words = [];
  29082. for (var i = 0; i < utf16StrLength; i++) {
  29083. words[i >>> 1] |= utf16Str.charCodeAt(i) << 16 - i % 2 * 16;
  29084. }
  29085. return WordArray.create(words, utf16StrLength * 2);
  29086. } };
  29087. /**
  29088. * UTF-16 LE encoding strategy.
  29089. */
  29090. C_enc.Utf16LE = {
  29091. /**
  29092. * Converts a word array to a UTF-16 LE string.
  29093. *
  29094. * @param {WordArray} wordArray The word array.
  29095. *
  29096. * @return {string} The UTF-16 LE string.
  29097. *
  29098. * @static
  29099. *
  29100. * @example
  29101. *
  29102. * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
  29103. */
  29104. stringify: function stringify(wordArray) {
  29105. // Shortcuts
  29106. var words = wordArray.words;
  29107. var sigBytes = wordArray.sigBytes;
  29108. // Convert
  29109. var utf16Chars = [];
  29110. for (var i = 0; i < sigBytes; i += 2) {
  29111. var codePoint = swapEndian(words[i >>> 2] >>> 16 - i % 4 * 8 & 0xffff);
  29112. utf16Chars.push(String.fromCharCode(codePoint));
  29113. }
  29114. return utf16Chars.join('');
  29115. },
  29116. /**
  29117. * Converts a UTF-16 LE string to a word array.
  29118. *
  29119. * @param {string} utf16Str The UTF-16 LE string.
  29120. *
  29121. * @return {WordArray} The word array.
  29122. *
  29123. * @static
  29124. *
  29125. * @example
  29126. *
  29127. * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
  29128. */
  29129. parse: function parse(utf16Str) {
  29130. // Shortcut
  29131. var utf16StrLength = utf16Str.length;
  29132. // Convert
  29133. var words = [];
  29134. for (var i = 0; i < utf16StrLength; i++) {
  29135. words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << 16 - i % 2 * 16);
  29136. }
  29137. return WordArray.create(words, utf16StrLength * 2);
  29138. } };
  29139. function swapEndian(word) {
  29140. return word << 8 & 0xff00ff00 | word >>> 8 & 0x00ff00ff;
  29141. }
  29142. })();
  29143. return CryptoJS.enc.Utf16;
  29144. });
  29145. /***/ }),
  29146. /* 216 */
  29147. /*!*******************************************************************************!*\
  29148. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/enc-base64.js ***!
  29149. \*******************************************************************************/
  29150. /*! no static exports found */
  29151. /***/ (function(module, exports, __webpack_require__) {
  29152. ;(function (root, factory) {
  29153. if (true) {
  29154. // CommonJS
  29155. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  29156. } else
  29157. {}
  29158. })(this, function (CryptoJS) {
  29159. (function () {
  29160. // Shortcuts
  29161. var C = CryptoJS;
  29162. var C_lib = C.lib;
  29163. var WordArray = C_lib.WordArray;
  29164. var C_enc = C.enc;
  29165. /**
  29166. * Base64 encoding strategy.
  29167. */
  29168. var Base64 = C_enc.Base64 = {
  29169. /**
  29170. * Converts a word array to a Base64 string.
  29171. *
  29172. * @param {WordArray} wordArray The word array.
  29173. *
  29174. * @return {string} The Base64 string.
  29175. *
  29176. * @static
  29177. *
  29178. * @example
  29179. *
  29180. * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
  29181. */
  29182. stringify: function stringify(wordArray) {
  29183. // Shortcuts
  29184. var words = wordArray.words;
  29185. var sigBytes = wordArray.sigBytes;
  29186. var map = this._map;
  29187. // Clamp excess bits
  29188. wordArray.clamp();
  29189. // Convert
  29190. var base64Chars = [];
  29191. for (var i = 0; i < sigBytes; i += 3) {
  29192. var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  29193. var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
  29194. var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
  29195. var triplet = byte1 << 16 | byte2 << 8 | byte3;
  29196. for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
  29197. base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
  29198. }
  29199. }
  29200. // Add padding
  29201. var paddingChar = map.charAt(64);
  29202. if (paddingChar) {
  29203. while (base64Chars.length % 4) {
  29204. base64Chars.push(paddingChar);
  29205. }
  29206. }
  29207. return base64Chars.join('');
  29208. },
  29209. /**
  29210. * Converts a Base64 string to a word array.
  29211. *
  29212. * @param {string} base64Str The Base64 string.
  29213. *
  29214. * @return {WordArray} The word array.
  29215. *
  29216. * @static
  29217. *
  29218. * @example
  29219. *
  29220. * var wordArray = CryptoJS.enc.Base64.parse(base64String);
  29221. */
  29222. parse: function parse(base64Str) {
  29223. // Shortcuts
  29224. var base64StrLength = base64Str.length;
  29225. var map = this._map;
  29226. var reverseMap = this._reverseMap;
  29227. if (!reverseMap) {
  29228. reverseMap = this._reverseMap = [];
  29229. for (var j = 0; j < map.length; j++) {
  29230. reverseMap[map.charCodeAt(j)] = j;
  29231. }
  29232. }
  29233. // Ignore padding
  29234. var paddingChar = map.charAt(64);
  29235. if (paddingChar) {
  29236. var paddingIndex = base64Str.indexOf(paddingChar);
  29237. if (paddingIndex !== -1) {
  29238. base64StrLength = paddingIndex;
  29239. }
  29240. }
  29241. // Convert
  29242. return parseLoop(base64Str, base64StrLength, reverseMap);
  29243. },
  29244. _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' };
  29245. function parseLoop(base64Str, base64StrLength, reverseMap) {
  29246. var words = [];
  29247. var nBytes = 0;
  29248. for (var i = 0; i < base64StrLength; i++) {
  29249. if (i % 4) {
  29250. var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
  29251. var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
  29252. var bitsCombined = bits1 | bits2;
  29253. words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
  29254. nBytes++;
  29255. }
  29256. }
  29257. return WordArray.create(words, nBytes);
  29258. }
  29259. })();
  29260. return CryptoJS.enc.Base64;
  29261. });
  29262. /***/ }),
  29263. /* 217 */
  29264. /*!**********************************************************************************!*\
  29265. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/enc-base64url.js ***!
  29266. \**********************************************************************************/
  29267. /*! no static exports found */
  29268. /***/ (function(module, exports, __webpack_require__) {
  29269. ;(function (root, factory) {
  29270. if (true) {
  29271. // CommonJS
  29272. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  29273. } else
  29274. {}
  29275. })(this, function (CryptoJS) {
  29276. (function () {
  29277. // Shortcuts
  29278. var C = CryptoJS;
  29279. var C_lib = C.lib;
  29280. var WordArray = C_lib.WordArray;
  29281. var C_enc = C.enc;
  29282. /**
  29283. * Base64url encoding strategy.
  29284. */
  29285. var Base64url = C_enc.Base64url = {
  29286. /**
  29287. * Converts a word array to a Base64url string.
  29288. *
  29289. * @param {WordArray} wordArray The word array.
  29290. *
  29291. * @param {boolean} urlSafe Whether to use url safe
  29292. *
  29293. * @return {string} The Base64url string.
  29294. *
  29295. * @static
  29296. *
  29297. * @example
  29298. *
  29299. * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
  29300. */
  29301. stringify: function stringify(wordArray) {var urlSafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  29302. // Shortcuts
  29303. var words = wordArray.words;
  29304. var sigBytes = wordArray.sigBytes;
  29305. var map = urlSafe ? this._safe_map : this._map;
  29306. // Clamp excess bits
  29307. wordArray.clamp();
  29308. // Convert
  29309. var base64Chars = [];
  29310. for (var i = 0; i < sigBytes; i += 3) {
  29311. var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
  29312. var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
  29313. var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
  29314. var triplet = byte1 << 16 | byte2 << 8 | byte3;
  29315. for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
  29316. base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
  29317. }
  29318. }
  29319. // Add padding
  29320. var paddingChar = map.charAt(64);
  29321. if (paddingChar) {
  29322. while (base64Chars.length % 4) {
  29323. base64Chars.push(paddingChar);
  29324. }
  29325. }
  29326. return base64Chars.join('');
  29327. },
  29328. /**
  29329. * Converts a Base64url string to a word array.
  29330. *
  29331. * @param {string} base64Str The Base64url string.
  29332. *
  29333. * @param {boolean} urlSafe Whether to use url safe
  29334. *
  29335. * @return {WordArray} The word array.
  29336. *
  29337. * @static
  29338. *
  29339. * @example
  29340. *
  29341. * var wordArray = CryptoJS.enc.Base64url.parse(base64String);
  29342. */
  29343. parse: function parse(base64Str) {var urlSafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  29344. // Shortcuts
  29345. var base64StrLength = base64Str.length;
  29346. var map = urlSafe ? this._safe_map : this._map;
  29347. var reverseMap = this._reverseMap;
  29348. if (!reverseMap) {
  29349. reverseMap = this._reverseMap = [];
  29350. for (var j = 0; j < map.length; j++) {
  29351. reverseMap[map.charCodeAt(j)] = j;
  29352. }
  29353. }
  29354. // Ignore padding
  29355. var paddingChar = map.charAt(64);
  29356. if (paddingChar) {
  29357. var paddingIndex = base64Str.indexOf(paddingChar);
  29358. if (paddingIndex !== -1) {
  29359. base64StrLength = paddingIndex;
  29360. }
  29361. }
  29362. // Convert
  29363. return parseLoop(base64Str, base64StrLength, reverseMap);
  29364. },
  29365. _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
  29366. _safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_' };
  29367. function parseLoop(base64Str, base64StrLength, reverseMap) {
  29368. var words = [];
  29369. var nBytes = 0;
  29370. for (var i = 0; i < base64StrLength; i++) {
  29371. if (i % 4) {
  29372. var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
  29373. var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
  29374. var bitsCombined = bits1 | bits2;
  29375. words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
  29376. nBytes++;
  29377. }
  29378. }
  29379. return WordArray.create(words, nBytes);
  29380. }
  29381. })();
  29382. return CryptoJS.enc.Base64url;
  29383. });
  29384. /***/ }),
  29385. /* 218 */
  29386. /*!************************************************************************!*\
  29387. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/md5.js ***!
  29388. \************************************************************************/
  29389. /*! no static exports found */
  29390. /***/ (function(module, exports, __webpack_require__) {
  29391. ;(function (root, factory) {
  29392. if (true) {
  29393. // CommonJS
  29394. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  29395. } else
  29396. {}
  29397. })(this, function (CryptoJS) {
  29398. (function (Math) {
  29399. // Shortcuts
  29400. var C = CryptoJS;
  29401. var C_lib = C.lib;
  29402. var WordArray = C_lib.WordArray;
  29403. var Hasher = C_lib.Hasher;
  29404. var C_algo = C.algo;
  29405. // Constants table
  29406. var T = [];
  29407. // Compute constants
  29408. (function () {
  29409. for (var i = 0; i < 64; i++) {
  29410. T[i] = Math.abs(Math.sin(i + 1)) * 0x100000000 | 0;
  29411. }
  29412. })();
  29413. /**
  29414. * MD5 hash algorithm.
  29415. */
  29416. var MD5 = C_algo.MD5 = Hasher.extend({
  29417. _doReset: function _doReset() {
  29418. this._hash = new WordArray.init([
  29419. 0x67452301, 0xefcdab89,
  29420. 0x98badcfe, 0x10325476]);
  29421. },
  29422. _doProcessBlock: function _doProcessBlock(M, offset) {
  29423. // Swap endian
  29424. for (var i = 0; i < 16; i++) {
  29425. // Shortcuts
  29426. var offset_i = offset + i;
  29427. var M_offset_i = M[offset_i];
  29428. M[offset_i] =
  29429. (M_offset_i << 8 | M_offset_i >>> 24) & 0x00ff00ff |
  29430. (M_offset_i << 24 | M_offset_i >>> 8) & 0xff00ff00;
  29431. }
  29432. // Shortcuts
  29433. var H = this._hash.words;
  29434. var M_offset_0 = M[offset + 0];
  29435. var M_offset_1 = M[offset + 1];
  29436. var M_offset_2 = M[offset + 2];
  29437. var M_offset_3 = M[offset + 3];
  29438. var M_offset_4 = M[offset + 4];
  29439. var M_offset_5 = M[offset + 5];
  29440. var M_offset_6 = M[offset + 6];
  29441. var M_offset_7 = M[offset + 7];
  29442. var M_offset_8 = M[offset + 8];
  29443. var M_offset_9 = M[offset + 9];
  29444. var M_offset_10 = M[offset + 10];
  29445. var M_offset_11 = M[offset + 11];
  29446. var M_offset_12 = M[offset + 12];
  29447. var M_offset_13 = M[offset + 13];
  29448. var M_offset_14 = M[offset + 14];
  29449. var M_offset_15 = M[offset + 15];
  29450. // Working varialbes
  29451. var a = H[0];
  29452. var b = H[1];
  29453. var c = H[2];
  29454. var d = H[3];
  29455. // Computation
  29456. a = FF(a, b, c, d, M_offset_0, 7, T[0]);
  29457. d = FF(d, a, b, c, M_offset_1, 12, T[1]);
  29458. c = FF(c, d, a, b, M_offset_2, 17, T[2]);
  29459. b = FF(b, c, d, a, M_offset_3, 22, T[3]);
  29460. a = FF(a, b, c, d, M_offset_4, 7, T[4]);
  29461. d = FF(d, a, b, c, M_offset_5, 12, T[5]);
  29462. c = FF(c, d, a, b, M_offset_6, 17, T[6]);
  29463. b = FF(b, c, d, a, M_offset_7, 22, T[7]);
  29464. a = FF(a, b, c, d, M_offset_8, 7, T[8]);
  29465. d = FF(d, a, b, c, M_offset_9, 12, T[9]);
  29466. c = FF(c, d, a, b, M_offset_10, 17, T[10]);
  29467. b = FF(b, c, d, a, M_offset_11, 22, T[11]);
  29468. a = FF(a, b, c, d, M_offset_12, 7, T[12]);
  29469. d = FF(d, a, b, c, M_offset_13, 12, T[13]);
  29470. c = FF(c, d, a, b, M_offset_14, 17, T[14]);
  29471. b = FF(b, c, d, a, M_offset_15, 22, T[15]);
  29472. a = GG(a, b, c, d, M_offset_1, 5, T[16]);
  29473. d = GG(d, a, b, c, M_offset_6, 9, T[17]);
  29474. c = GG(c, d, a, b, M_offset_11, 14, T[18]);
  29475. b = GG(b, c, d, a, M_offset_0, 20, T[19]);
  29476. a = GG(a, b, c, d, M_offset_5, 5, T[20]);
  29477. d = GG(d, a, b, c, M_offset_10, 9, T[21]);
  29478. c = GG(c, d, a, b, M_offset_15, 14, T[22]);
  29479. b = GG(b, c, d, a, M_offset_4, 20, T[23]);
  29480. a = GG(a, b, c, d, M_offset_9, 5, T[24]);
  29481. d = GG(d, a, b, c, M_offset_14, 9, T[25]);
  29482. c = GG(c, d, a, b, M_offset_3, 14, T[26]);
  29483. b = GG(b, c, d, a, M_offset_8, 20, T[27]);
  29484. a = GG(a, b, c, d, M_offset_13, 5, T[28]);
  29485. d = GG(d, a, b, c, M_offset_2, 9, T[29]);
  29486. c = GG(c, d, a, b, M_offset_7, 14, T[30]);
  29487. b = GG(b, c, d, a, M_offset_12, 20, T[31]);
  29488. a = HH(a, b, c, d, M_offset_5, 4, T[32]);
  29489. d = HH(d, a, b, c, M_offset_8, 11, T[33]);
  29490. c = HH(c, d, a, b, M_offset_11, 16, T[34]);
  29491. b = HH(b, c, d, a, M_offset_14, 23, T[35]);
  29492. a = HH(a, b, c, d, M_offset_1, 4, T[36]);
  29493. d = HH(d, a, b, c, M_offset_4, 11, T[37]);
  29494. c = HH(c, d, a, b, M_offset_7, 16, T[38]);
  29495. b = HH(b, c, d, a, M_offset_10, 23, T[39]);
  29496. a = HH(a, b, c, d, M_offset_13, 4, T[40]);
  29497. d = HH(d, a, b, c, M_offset_0, 11, T[41]);
  29498. c = HH(c, d, a, b, M_offset_3, 16, T[42]);
  29499. b = HH(b, c, d, a, M_offset_6, 23, T[43]);
  29500. a = HH(a, b, c, d, M_offset_9, 4, T[44]);
  29501. d = HH(d, a, b, c, M_offset_12, 11, T[45]);
  29502. c = HH(c, d, a, b, M_offset_15, 16, T[46]);
  29503. b = HH(b, c, d, a, M_offset_2, 23, T[47]);
  29504. a = II(a, b, c, d, M_offset_0, 6, T[48]);
  29505. d = II(d, a, b, c, M_offset_7, 10, T[49]);
  29506. c = II(c, d, a, b, M_offset_14, 15, T[50]);
  29507. b = II(b, c, d, a, M_offset_5, 21, T[51]);
  29508. a = II(a, b, c, d, M_offset_12, 6, T[52]);
  29509. d = II(d, a, b, c, M_offset_3, 10, T[53]);
  29510. c = II(c, d, a, b, M_offset_10, 15, T[54]);
  29511. b = II(b, c, d, a, M_offset_1, 21, T[55]);
  29512. a = II(a, b, c, d, M_offset_8, 6, T[56]);
  29513. d = II(d, a, b, c, M_offset_15, 10, T[57]);
  29514. c = II(c, d, a, b, M_offset_6, 15, T[58]);
  29515. b = II(b, c, d, a, M_offset_13, 21, T[59]);
  29516. a = II(a, b, c, d, M_offset_4, 6, T[60]);
  29517. d = II(d, a, b, c, M_offset_11, 10, T[61]);
  29518. c = II(c, d, a, b, M_offset_2, 15, T[62]);
  29519. b = II(b, c, d, a, M_offset_9, 21, T[63]);
  29520. // Intermediate hash value
  29521. H[0] = H[0] + a | 0;
  29522. H[1] = H[1] + b | 0;
  29523. H[2] = H[2] + c | 0;
  29524. H[3] = H[3] + d | 0;
  29525. },
  29526. _doFinalize: function _doFinalize() {
  29527. // Shortcuts
  29528. var data = this._data;
  29529. var dataWords = data.words;
  29530. var nBitsTotal = this._nDataBytes * 8;
  29531. var nBitsLeft = data.sigBytes * 8;
  29532. // Add padding
  29533. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  29534. var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);
  29535. var nBitsTotalL = nBitsTotal;
  29536. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] =
  29537. (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 0x00ff00ff |
  29538. (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 0xff00ff00;
  29539. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] =
  29540. (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 0x00ff00ff |
  29541. (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 0xff00ff00;
  29542. data.sigBytes = (dataWords.length + 1) * 4;
  29543. // Hash final blocks
  29544. this._process();
  29545. // Shortcuts
  29546. var hash = this._hash;
  29547. var H = hash.words;
  29548. // Swap endian
  29549. for (var i = 0; i < 4; i++) {
  29550. // Shortcut
  29551. var H_i = H[i];
  29552. H[i] = (H_i << 8 | H_i >>> 24) & 0x00ff00ff |
  29553. (H_i << 24 | H_i >>> 8) & 0xff00ff00;
  29554. }
  29555. // Return final computed hash
  29556. return hash;
  29557. },
  29558. clone: function clone() {
  29559. var clone = Hasher.clone.call(this);
  29560. clone._hash = this._hash.clone();
  29561. return clone;
  29562. } });
  29563. function FF(a, b, c, d, x, s, t) {
  29564. var n = a + (b & c | ~b & d) + x + t;
  29565. return (n << s | n >>> 32 - s) + b;
  29566. }
  29567. function GG(a, b, c, d, x, s, t) {
  29568. var n = a + (b & d | c & ~d) + x + t;
  29569. return (n << s | n >>> 32 - s) + b;
  29570. }
  29571. function HH(a, b, c, d, x, s, t) {
  29572. var n = a + (b ^ c ^ d) + x + t;
  29573. return (n << s | n >>> 32 - s) + b;
  29574. }
  29575. function II(a, b, c, d, x, s, t) {
  29576. var n = a + (c ^ (b | ~d)) + x + t;
  29577. return (n << s | n >>> 32 - s) + b;
  29578. }
  29579. /**
  29580. * Shortcut function to the hasher's object interface.
  29581. *
  29582. * @param {WordArray|string} message The message to hash.
  29583. *
  29584. * @return {WordArray} The hash.
  29585. *
  29586. * @static
  29587. *
  29588. * @example
  29589. *
  29590. * var hash = CryptoJS.MD5('message');
  29591. * var hash = CryptoJS.MD5(wordArray);
  29592. */
  29593. C.MD5 = Hasher._createHelper(MD5);
  29594. /**
  29595. * Shortcut function to the HMAC's object interface.
  29596. *
  29597. * @param {WordArray|string} message The message to hash.
  29598. * @param {WordArray|string} key The secret key.
  29599. *
  29600. * @return {WordArray} The HMAC.
  29601. *
  29602. * @static
  29603. *
  29604. * @example
  29605. *
  29606. * var hmac = CryptoJS.HmacMD5(message, key);
  29607. */
  29608. C.HmacMD5 = Hasher._createHmacHelper(MD5);
  29609. })(Math);
  29610. return CryptoJS.MD5;
  29611. });
  29612. /***/ }),
  29613. /* 219 */
  29614. /*!*************************************************************************!*\
  29615. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/sha1.js ***!
  29616. \*************************************************************************/
  29617. /*! no static exports found */
  29618. /***/ (function(module, exports, __webpack_require__) {
  29619. ;(function (root, factory) {
  29620. if (true) {
  29621. // CommonJS
  29622. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  29623. } else
  29624. {}
  29625. })(this, function (CryptoJS) {
  29626. (function () {
  29627. // Shortcuts
  29628. var C = CryptoJS;
  29629. var C_lib = C.lib;
  29630. var WordArray = C_lib.WordArray;
  29631. var Hasher = C_lib.Hasher;
  29632. var C_algo = C.algo;
  29633. // Reusable object
  29634. var W = [];
  29635. /**
  29636. * SHA-1 hash algorithm.
  29637. */
  29638. var SHA1 = C_algo.SHA1 = Hasher.extend({
  29639. _doReset: function _doReset() {
  29640. this._hash = new WordArray.init([
  29641. 0x67452301, 0xefcdab89,
  29642. 0x98badcfe, 0x10325476,
  29643. 0xc3d2e1f0]);
  29644. },
  29645. _doProcessBlock: function _doProcessBlock(M, offset) {
  29646. // Shortcut
  29647. var H = this._hash.words;
  29648. // Working variables
  29649. var a = H[0];
  29650. var b = H[1];
  29651. var c = H[2];
  29652. var d = H[3];
  29653. var e = H[4];
  29654. // Computation
  29655. for (var i = 0; i < 80; i++) {
  29656. if (i < 16) {
  29657. W[i] = M[offset + i] | 0;
  29658. } else {
  29659. var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
  29660. W[i] = n << 1 | n >>> 31;
  29661. }
  29662. var t = (a << 5 | a >>> 27) + e + W[i];
  29663. if (i < 20) {
  29664. t += (b & c | ~b & d) + 0x5a827999;
  29665. } else if (i < 40) {
  29666. t += (b ^ c ^ d) + 0x6ed9eba1;
  29667. } else if (i < 60) {
  29668. t += (b & c | b & d | c & d) - 0x70e44324;
  29669. } else /* if (i < 80) */{
  29670. t += (b ^ c ^ d) - 0x359d3e2a;
  29671. }
  29672. e = d;
  29673. d = c;
  29674. c = b << 30 | b >>> 2;
  29675. b = a;
  29676. a = t;
  29677. }
  29678. // Intermediate hash value
  29679. H[0] = H[0] + a | 0;
  29680. H[1] = H[1] + b | 0;
  29681. H[2] = H[2] + c | 0;
  29682. H[3] = H[3] + d | 0;
  29683. H[4] = H[4] + e | 0;
  29684. },
  29685. _doFinalize: function _doFinalize() {
  29686. // Shortcuts
  29687. var data = this._data;
  29688. var dataWords = data.words;
  29689. var nBitsTotal = this._nDataBytes * 8;
  29690. var nBitsLeft = data.sigBytes * 8;
  29691. // Add padding
  29692. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  29693. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
  29694. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;
  29695. data.sigBytes = dataWords.length * 4;
  29696. // Hash final blocks
  29697. this._process();
  29698. // Return final computed hash
  29699. return this._hash;
  29700. },
  29701. clone: function clone() {
  29702. var clone = Hasher.clone.call(this);
  29703. clone._hash = this._hash.clone();
  29704. return clone;
  29705. } });
  29706. /**
  29707. * Shortcut function to the hasher's object interface.
  29708. *
  29709. * @param {WordArray|string} message The message to hash.
  29710. *
  29711. * @return {WordArray} The hash.
  29712. *
  29713. * @static
  29714. *
  29715. * @example
  29716. *
  29717. * var hash = CryptoJS.SHA1('message');
  29718. * var hash = CryptoJS.SHA1(wordArray);
  29719. */
  29720. C.SHA1 = Hasher._createHelper(SHA1);
  29721. /**
  29722. * Shortcut function to the HMAC's object interface.
  29723. *
  29724. * @param {WordArray|string} message The message to hash.
  29725. * @param {WordArray|string} key The secret key.
  29726. *
  29727. * @return {WordArray} The HMAC.
  29728. *
  29729. * @static
  29730. *
  29731. * @example
  29732. *
  29733. * var hmac = CryptoJS.HmacSHA1(message, key);
  29734. */
  29735. C.HmacSHA1 = Hasher._createHmacHelper(SHA1);
  29736. })();
  29737. return CryptoJS.SHA1;
  29738. });
  29739. /***/ }),
  29740. /* 220 */
  29741. /*!***************************************************************************!*\
  29742. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/sha256.js ***!
  29743. \***************************************************************************/
  29744. /*! no static exports found */
  29745. /***/ (function(module, exports, __webpack_require__) {
  29746. ;(function (root, factory) {
  29747. if (true) {
  29748. // CommonJS
  29749. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  29750. } else
  29751. {}
  29752. })(this, function (CryptoJS) {
  29753. (function (Math) {
  29754. // Shortcuts
  29755. var C = CryptoJS;
  29756. var C_lib = C.lib;
  29757. var WordArray = C_lib.WordArray;
  29758. var Hasher = C_lib.Hasher;
  29759. var C_algo = C.algo;
  29760. // Initialization and round constants tables
  29761. var H = [];
  29762. var K = [];
  29763. // Compute constants
  29764. (function () {
  29765. function isPrime(n) {
  29766. var sqrtN = Math.sqrt(n);
  29767. for (var factor = 2; factor <= sqrtN; factor++) {
  29768. if (!(n % factor)) {
  29769. return false;
  29770. }
  29771. }
  29772. return true;
  29773. }
  29774. function getFractionalBits(n) {
  29775. return (n - (n | 0)) * 0x100000000 | 0;
  29776. }
  29777. var n = 2;
  29778. var nPrime = 0;
  29779. while (nPrime < 64) {
  29780. if (isPrime(n)) {
  29781. if (nPrime < 8) {
  29782. H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));
  29783. }
  29784. K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));
  29785. nPrime++;
  29786. }
  29787. n++;
  29788. }
  29789. })();
  29790. // Reusable object
  29791. var W = [];
  29792. /**
  29793. * SHA-256 hash algorithm.
  29794. */
  29795. var SHA256 = C_algo.SHA256 = Hasher.extend({
  29796. _doReset: function _doReset() {
  29797. this._hash = new WordArray.init(H.slice(0));
  29798. },
  29799. _doProcessBlock: function _doProcessBlock(M, offset) {
  29800. // Shortcut
  29801. var H = this._hash.words;
  29802. // Working variables
  29803. var a = H[0];
  29804. var b = H[1];
  29805. var c = H[2];
  29806. var d = H[3];
  29807. var e = H[4];
  29808. var f = H[5];
  29809. var g = H[6];
  29810. var h = H[7];
  29811. // Computation
  29812. for (var i = 0; i < 64; i++) {
  29813. if (i < 16) {
  29814. W[i] = M[offset + i] | 0;
  29815. } else {
  29816. var gamma0x = W[i - 15];
  29817. var gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (
  29818. gamma0x << 14 | gamma0x >>> 18) ^
  29819. gamma0x >>> 3;
  29820. var gamma1x = W[i - 2];
  29821. var gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (
  29822. gamma1x << 13 | gamma1x >>> 19) ^
  29823. gamma1x >>> 10;
  29824. W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
  29825. }
  29826. var ch = e & f ^ ~e & g;
  29827. var maj = a & b ^ a & c ^ b & c;
  29828. var sigma0 = (a << 30 | a >>> 2) ^ (a << 19 | a >>> 13) ^ (a << 10 | a >>> 22);
  29829. var sigma1 = (e << 26 | e >>> 6) ^ (e << 21 | e >>> 11) ^ (e << 7 | e >>> 25);
  29830. var t1 = h + sigma1 + ch + K[i] + W[i];
  29831. var t2 = sigma0 + maj;
  29832. h = g;
  29833. g = f;
  29834. f = e;
  29835. e = d + t1 | 0;
  29836. d = c;
  29837. c = b;
  29838. b = a;
  29839. a = t1 + t2 | 0;
  29840. }
  29841. // Intermediate hash value
  29842. H[0] = H[0] + a | 0;
  29843. H[1] = H[1] + b | 0;
  29844. H[2] = H[2] + c | 0;
  29845. H[3] = H[3] + d | 0;
  29846. H[4] = H[4] + e | 0;
  29847. H[5] = H[5] + f | 0;
  29848. H[6] = H[6] + g | 0;
  29849. H[7] = H[7] + h | 0;
  29850. },
  29851. _doFinalize: function _doFinalize() {
  29852. // Shortcuts
  29853. var data = this._data;
  29854. var dataWords = data.words;
  29855. var nBitsTotal = this._nDataBytes * 8;
  29856. var nBitsLeft = data.sigBytes * 8;
  29857. // Add padding
  29858. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  29859. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
  29860. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;
  29861. data.sigBytes = dataWords.length * 4;
  29862. // Hash final blocks
  29863. this._process();
  29864. // Return final computed hash
  29865. return this._hash;
  29866. },
  29867. clone: function clone() {
  29868. var clone = Hasher.clone.call(this);
  29869. clone._hash = this._hash.clone();
  29870. return clone;
  29871. } });
  29872. /**
  29873. * Shortcut function to the hasher's object interface.
  29874. *
  29875. * @param {WordArray|string} message The message to hash.
  29876. *
  29877. * @return {WordArray} The hash.
  29878. *
  29879. * @static
  29880. *
  29881. * @example
  29882. *
  29883. * var hash = CryptoJS.SHA256('message');
  29884. * var hash = CryptoJS.SHA256(wordArray);
  29885. */
  29886. C.SHA256 = Hasher._createHelper(SHA256);
  29887. /**
  29888. * Shortcut function to the HMAC's object interface.
  29889. *
  29890. * @param {WordArray|string} message The message to hash.
  29891. * @param {WordArray|string} key The secret key.
  29892. *
  29893. * @return {WordArray} The HMAC.
  29894. *
  29895. * @static
  29896. *
  29897. * @example
  29898. *
  29899. * var hmac = CryptoJS.HmacSHA256(message, key);
  29900. */
  29901. C.HmacSHA256 = Hasher._createHmacHelper(SHA256);
  29902. })(Math);
  29903. return CryptoJS.SHA256;
  29904. });
  29905. /***/ }),
  29906. /* 221 */
  29907. /*!***************************************************************************!*\
  29908. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/sha224.js ***!
  29909. \***************************************************************************/
  29910. /*! no static exports found */
  29911. /***/ (function(module, exports, __webpack_require__) {
  29912. ;(function (root, factory, undef) {
  29913. if (true) {
  29914. // CommonJS
  29915. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./sha256 */ 220));
  29916. } else
  29917. {}
  29918. })(this, function (CryptoJS) {
  29919. (function () {
  29920. // Shortcuts
  29921. var C = CryptoJS;
  29922. var C_lib = C.lib;
  29923. var WordArray = C_lib.WordArray;
  29924. var C_algo = C.algo;
  29925. var SHA256 = C_algo.SHA256;
  29926. /**
  29927. * SHA-224 hash algorithm.
  29928. */
  29929. var SHA224 = C_algo.SHA224 = SHA256.extend({
  29930. _doReset: function _doReset() {
  29931. this._hash = new WordArray.init([
  29932. 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
  29933. 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4]);
  29934. },
  29935. _doFinalize: function _doFinalize() {
  29936. var hash = SHA256._doFinalize.call(this);
  29937. hash.sigBytes -= 4;
  29938. return hash;
  29939. } });
  29940. /**
  29941. * Shortcut function to the hasher's object interface.
  29942. *
  29943. * @param {WordArray|string} message The message to hash.
  29944. *
  29945. * @return {WordArray} The hash.
  29946. *
  29947. * @static
  29948. *
  29949. * @example
  29950. *
  29951. * var hash = CryptoJS.SHA224('message');
  29952. * var hash = CryptoJS.SHA224(wordArray);
  29953. */
  29954. C.SHA224 = SHA256._createHelper(SHA224);
  29955. /**
  29956. * Shortcut function to the HMAC's object interface.
  29957. *
  29958. * @param {WordArray|string} message The message to hash.
  29959. * @param {WordArray|string} key The secret key.
  29960. *
  29961. * @return {WordArray} The HMAC.
  29962. *
  29963. * @static
  29964. *
  29965. * @example
  29966. *
  29967. * var hmac = CryptoJS.HmacSHA224(message, key);
  29968. */
  29969. C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
  29970. })();
  29971. return CryptoJS.SHA224;
  29972. });
  29973. /***/ }),
  29974. /* 222 */
  29975. /*!***************************************************************************!*\
  29976. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/sha512.js ***!
  29977. \***************************************************************************/
  29978. /*! no static exports found */
  29979. /***/ (function(module, exports, __webpack_require__) {
  29980. ;(function (root, factory, undef) {
  29981. if (true) {
  29982. // CommonJS
  29983. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./x64-core */ 213));
  29984. } else
  29985. {}
  29986. })(this, function (CryptoJS) {
  29987. (function () {
  29988. // Shortcuts
  29989. var C = CryptoJS;
  29990. var C_lib = C.lib;
  29991. var Hasher = C_lib.Hasher;
  29992. var C_x64 = C.x64;
  29993. var X64Word = C_x64.Word;
  29994. var X64WordArray = C_x64.WordArray;
  29995. var C_algo = C.algo;
  29996. function X64Word_create() {
  29997. return X64Word.create.apply(X64Word, arguments);
  29998. }
  29999. // Constants
  30000. var K = [
  30001. X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),
  30002. X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),
  30003. X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),
  30004. X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),
  30005. X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),
  30006. X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),
  30007. X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),
  30008. X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),
  30009. X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),
  30010. X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),
  30011. X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),
  30012. X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),
  30013. X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),
  30014. X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),
  30015. X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),
  30016. X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),
  30017. X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),
  30018. X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),
  30019. X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),
  30020. X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),
  30021. X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),
  30022. X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),
  30023. X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),
  30024. X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),
  30025. X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),
  30026. X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),
  30027. X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),
  30028. X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),
  30029. X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),
  30030. X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),
  30031. X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),
  30032. X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),
  30033. X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),
  30034. X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),
  30035. X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),
  30036. X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),
  30037. X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),
  30038. X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),
  30039. X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),
  30040. X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)];
  30041. // Reusable objects
  30042. var W = [];
  30043. (function () {
  30044. for (var i = 0; i < 80; i++) {
  30045. W[i] = X64Word_create();
  30046. }
  30047. })();
  30048. /**
  30049. * SHA-512 hash algorithm.
  30050. */
  30051. var SHA512 = C_algo.SHA512 = Hasher.extend({
  30052. _doReset: function _doReset() {
  30053. this._hash = new X64WordArray.init([
  30054. new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),
  30055. new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),
  30056. new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),
  30057. new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)]);
  30058. },
  30059. _doProcessBlock: function _doProcessBlock(M, offset) {
  30060. // Shortcuts
  30061. var H = this._hash.words;
  30062. var H0 = H[0];
  30063. var H1 = H[1];
  30064. var H2 = H[2];
  30065. var H3 = H[3];
  30066. var H4 = H[4];
  30067. var H5 = H[5];
  30068. var H6 = H[6];
  30069. var H7 = H[7];
  30070. var H0h = H0.high;
  30071. var H0l = H0.low;
  30072. var H1h = H1.high;
  30073. var H1l = H1.low;
  30074. var H2h = H2.high;
  30075. var H2l = H2.low;
  30076. var H3h = H3.high;
  30077. var H3l = H3.low;
  30078. var H4h = H4.high;
  30079. var H4l = H4.low;
  30080. var H5h = H5.high;
  30081. var H5l = H5.low;
  30082. var H6h = H6.high;
  30083. var H6l = H6.low;
  30084. var H7h = H7.high;
  30085. var H7l = H7.low;
  30086. // Working variables
  30087. var ah = H0h;
  30088. var al = H0l;
  30089. var bh = H1h;
  30090. var bl = H1l;
  30091. var ch = H2h;
  30092. var cl = H2l;
  30093. var dh = H3h;
  30094. var dl = H3l;
  30095. var eh = H4h;
  30096. var el = H4l;
  30097. var fh = H5h;
  30098. var fl = H5l;
  30099. var gh = H6h;
  30100. var gl = H6l;
  30101. var hh = H7h;
  30102. var hl = H7l;
  30103. // Rounds
  30104. for (var i = 0; i < 80; i++) {
  30105. var Wil;
  30106. var Wih;
  30107. // Shortcut
  30108. var Wi = W[i];
  30109. // Extend message
  30110. if (i < 16) {
  30111. Wih = Wi.high = M[offset + i * 2] | 0;
  30112. Wil = Wi.low = M[offset + i * 2 + 1] | 0;
  30113. } else {
  30114. // Gamma0
  30115. var gamma0x = W[i - 15];
  30116. var gamma0xh = gamma0x.high;
  30117. var gamma0xl = gamma0x.low;
  30118. var gamma0h = (gamma0xh >>> 1 | gamma0xl << 31) ^ (gamma0xh >>> 8 | gamma0xl << 24) ^ gamma0xh >>> 7;
  30119. var gamma0l = (gamma0xl >>> 1 | gamma0xh << 31) ^ (gamma0xl >>> 8 | gamma0xh << 24) ^ (gamma0xl >>> 7 | gamma0xh << 25);
  30120. // Gamma1
  30121. var gamma1x = W[i - 2];
  30122. var gamma1xh = gamma1x.high;
  30123. var gamma1xl = gamma1x.low;
  30124. var gamma1h = (gamma1xh >>> 19 | gamma1xl << 13) ^ (gamma1xh << 3 | gamma1xl >>> 29) ^ gamma1xh >>> 6;
  30125. var gamma1l = (gamma1xl >>> 19 | gamma1xh << 13) ^ (gamma1xl << 3 | gamma1xh >>> 29) ^ (gamma1xl >>> 6 | gamma1xh << 26);
  30126. // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
  30127. var Wi7 = W[i - 7];
  30128. var Wi7h = Wi7.high;
  30129. var Wi7l = Wi7.low;
  30130. var Wi16 = W[i - 16];
  30131. var Wi16h = Wi16.high;
  30132. var Wi16l = Wi16.low;
  30133. Wil = gamma0l + Wi7l;
  30134. Wih = gamma0h + Wi7h + (Wil >>> 0 < gamma0l >>> 0 ? 1 : 0);
  30135. Wil = Wil + gamma1l;
  30136. Wih = Wih + gamma1h + (Wil >>> 0 < gamma1l >>> 0 ? 1 : 0);
  30137. Wil = Wil + Wi16l;
  30138. Wih = Wih + Wi16h + (Wil >>> 0 < Wi16l >>> 0 ? 1 : 0);
  30139. Wi.high = Wih;
  30140. Wi.low = Wil;
  30141. }
  30142. var chh = eh & fh ^ ~eh & gh;
  30143. var chl = el & fl ^ ~el & gl;
  30144. var majh = ah & bh ^ ah & ch ^ bh & ch;
  30145. var majl = al & bl ^ al & cl ^ bl & cl;
  30146. var sigma0h = (ah >>> 28 | al << 4) ^ (ah << 30 | al >>> 2) ^ (ah << 25 | al >>> 7);
  30147. var sigma0l = (al >>> 28 | ah << 4) ^ (al << 30 | ah >>> 2) ^ (al << 25 | ah >>> 7);
  30148. var sigma1h = (eh >>> 14 | el << 18) ^ (eh >>> 18 | el << 14) ^ (eh << 23 | el >>> 9);
  30149. var sigma1l = (el >>> 14 | eh << 18) ^ (el >>> 18 | eh << 14) ^ (el << 23 | eh >>> 9);
  30150. // t1 = h + sigma1 + ch + K[i] + W[i]
  30151. var Ki = K[i];
  30152. var Kih = Ki.high;
  30153. var Kil = Ki.low;
  30154. var t1l = hl + sigma1l;
  30155. var t1h = hh + sigma1h + (t1l >>> 0 < hl >>> 0 ? 1 : 0);
  30156. var t1l = t1l + chl;
  30157. var t1h = t1h + chh + (t1l >>> 0 < chl >>> 0 ? 1 : 0);
  30158. var t1l = t1l + Kil;
  30159. var t1h = t1h + Kih + (t1l >>> 0 < Kil >>> 0 ? 1 : 0);
  30160. var t1l = t1l + Wil;
  30161. var t1h = t1h + Wih + (t1l >>> 0 < Wil >>> 0 ? 1 : 0);
  30162. // t2 = sigma0 + maj
  30163. var t2l = sigma0l + majl;
  30164. var t2h = sigma0h + majh + (t2l >>> 0 < sigma0l >>> 0 ? 1 : 0);
  30165. // Update working variables
  30166. hh = gh;
  30167. hl = gl;
  30168. gh = fh;
  30169. gl = fl;
  30170. fh = eh;
  30171. fl = el;
  30172. el = dl + t1l | 0;
  30173. eh = dh + t1h + (el >>> 0 < dl >>> 0 ? 1 : 0) | 0;
  30174. dh = ch;
  30175. dl = cl;
  30176. ch = bh;
  30177. cl = bl;
  30178. bh = ah;
  30179. bl = al;
  30180. al = t1l + t2l | 0;
  30181. ah = t1h + t2h + (al >>> 0 < t1l >>> 0 ? 1 : 0) | 0;
  30182. }
  30183. // Intermediate hash value
  30184. H0l = H0.low = H0l + al;
  30185. H0.high = H0h + ah + (H0l >>> 0 < al >>> 0 ? 1 : 0);
  30186. H1l = H1.low = H1l + bl;
  30187. H1.high = H1h + bh + (H1l >>> 0 < bl >>> 0 ? 1 : 0);
  30188. H2l = H2.low = H2l + cl;
  30189. H2.high = H2h + ch + (H2l >>> 0 < cl >>> 0 ? 1 : 0);
  30190. H3l = H3.low = H3l + dl;
  30191. H3.high = H3h + dh + (H3l >>> 0 < dl >>> 0 ? 1 : 0);
  30192. H4l = H4.low = H4l + el;
  30193. H4.high = H4h + eh + (H4l >>> 0 < el >>> 0 ? 1 : 0);
  30194. H5l = H5.low = H5l + fl;
  30195. H5.high = H5h + fh + (H5l >>> 0 < fl >>> 0 ? 1 : 0);
  30196. H6l = H6.low = H6l + gl;
  30197. H6.high = H6h + gh + (H6l >>> 0 < gl >>> 0 ? 1 : 0);
  30198. H7l = H7.low = H7l + hl;
  30199. H7.high = H7h + hh + (H7l >>> 0 < hl >>> 0 ? 1 : 0);
  30200. },
  30201. _doFinalize: function _doFinalize() {
  30202. // Shortcuts
  30203. var data = this._data;
  30204. var dataWords = data.words;
  30205. var nBitsTotal = this._nDataBytes * 8;
  30206. var nBitsLeft = data.sigBytes * 8;
  30207. // Add padding
  30208. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  30209. dataWords[(nBitsLeft + 128 >>> 10 << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);
  30210. dataWords[(nBitsLeft + 128 >>> 10 << 5) + 31] = nBitsTotal;
  30211. data.sigBytes = dataWords.length * 4;
  30212. // Hash final blocks
  30213. this._process();
  30214. // Convert hash to 32-bit word array before returning
  30215. var hash = this._hash.toX32();
  30216. // Return final computed hash
  30217. return hash;
  30218. },
  30219. clone: function clone() {
  30220. var clone = Hasher.clone.call(this);
  30221. clone._hash = this._hash.clone();
  30222. return clone;
  30223. },
  30224. blockSize: 1024 / 32 });
  30225. /**
  30226. * Shortcut function to the hasher's object interface.
  30227. *
  30228. * @param {WordArray|string} message The message to hash.
  30229. *
  30230. * @return {WordArray} The hash.
  30231. *
  30232. * @static
  30233. *
  30234. * @example
  30235. *
  30236. * var hash = CryptoJS.SHA512('message');
  30237. * var hash = CryptoJS.SHA512(wordArray);
  30238. */
  30239. C.SHA512 = Hasher._createHelper(SHA512);
  30240. /**
  30241. * Shortcut function to the HMAC's object interface.
  30242. *
  30243. * @param {WordArray|string} message The message to hash.
  30244. * @param {WordArray|string} key The secret key.
  30245. *
  30246. * @return {WordArray} The HMAC.
  30247. *
  30248. * @static
  30249. *
  30250. * @example
  30251. *
  30252. * var hmac = CryptoJS.HmacSHA512(message, key);
  30253. */
  30254. C.HmacSHA512 = Hasher._createHmacHelper(SHA512);
  30255. })();
  30256. return CryptoJS.SHA512;
  30257. });
  30258. /***/ }),
  30259. /* 223 */
  30260. /*!***************************************************************************!*\
  30261. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/sha384.js ***!
  30262. \***************************************************************************/
  30263. /*! no static exports found */
  30264. /***/ (function(module, exports, __webpack_require__) {
  30265. ;(function (root, factory, undef) {
  30266. if (true) {
  30267. // CommonJS
  30268. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./x64-core */ 213), __webpack_require__(/*! ./sha512 */ 222));
  30269. } else
  30270. {}
  30271. })(this, function (CryptoJS) {
  30272. (function () {
  30273. // Shortcuts
  30274. var C = CryptoJS;
  30275. var C_x64 = C.x64;
  30276. var X64Word = C_x64.Word;
  30277. var X64WordArray = C_x64.WordArray;
  30278. var C_algo = C.algo;
  30279. var SHA512 = C_algo.SHA512;
  30280. /**
  30281. * SHA-384 hash algorithm.
  30282. */
  30283. var SHA384 = C_algo.SHA384 = SHA512.extend({
  30284. _doReset: function _doReset() {
  30285. this._hash = new X64WordArray.init([
  30286. new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),
  30287. new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),
  30288. new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),
  30289. new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)]);
  30290. },
  30291. _doFinalize: function _doFinalize() {
  30292. var hash = SHA512._doFinalize.call(this);
  30293. hash.sigBytes -= 16;
  30294. return hash;
  30295. } });
  30296. /**
  30297. * Shortcut function to the hasher's object interface.
  30298. *
  30299. * @param {WordArray|string} message The message to hash.
  30300. *
  30301. * @return {WordArray} The hash.
  30302. *
  30303. * @static
  30304. *
  30305. * @example
  30306. *
  30307. * var hash = CryptoJS.SHA384('message');
  30308. * var hash = CryptoJS.SHA384(wordArray);
  30309. */
  30310. C.SHA384 = SHA512._createHelper(SHA384);
  30311. /**
  30312. * Shortcut function to the HMAC's object interface.
  30313. *
  30314. * @param {WordArray|string} message The message to hash.
  30315. * @param {WordArray|string} key The secret key.
  30316. *
  30317. * @return {WordArray} The HMAC.
  30318. *
  30319. * @static
  30320. *
  30321. * @example
  30322. *
  30323. * var hmac = CryptoJS.HmacSHA384(message, key);
  30324. */
  30325. C.HmacSHA384 = SHA512._createHmacHelper(SHA384);
  30326. })();
  30327. return CryptoJS.SHA384;
  30328. });
  30329. /***/ }),
  30330. /* 224 */
  30331. /*!*************************************************************************!*\
  30332. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/sha3.js ***!
  30333. \*************************************************************************/
  30334. /*! no static exports found */
  30335. /***/ (function(module, exports, __webpack_require__) {
  30336. ;(function (root, factory, undef) {
  30337. if (true) {
  30338. // CommonJS
  30339. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./x64-core */ 213));
  30340. } else
  30341. {}
  30342. })(this, function (CryptoJS) {
  30343. (function (Math) {
  30344. // Shortcuts
  30345. var C = CryptoJS;
  30346. var C_lib = C.lib;
  30347. var WordArray = C_lib.WordArray;
  30348. var Hasher = C_lib.Hasher;
  30349. var C_x64 = C.x64;
  30350. var X64Word = C_x64.Word;
  30351. var C_algo = C.algo;
  30352. // Constants tables
  30353. var RHO_OFFSETS = [];
  30354. var PI_INDEXES = [];
  30355. var ROUND_CONSTANTS = [];
  30356. // Compute Constants
  30357. (function () {
  30358. // Compute rho offset constants
  30359. var x = 1,y = 0;
  30360. for (var t = 0; t < 24; t++) {
  30361. RHO_OFFSETS[x + 5 * y] = (t + 1) * (t + 2) / 2 % 64;
  30362. var newX = y % 5;
  30363. var newY = (2 * x + 3 * y) % 5;
  30364. x = newX;
  30365. y = newY;
  30366. }
  30367. // Compute pi index constants
  30368. for (var x = 0; x < 5; x++) {
  30369. for (var y = 0; y < 5; y++) {
  30370. PI_INDEXES[x + 5 * y] = y + (2 * x + 3 * y) % 5 * 5;
  30371. }
  30372. }
  30373. // Compute round constants
  30374. var LFSR = 0x01;
  30375. for (var i = 0; i < 24; i++) {
  30376. var roundConstantMsw = 0;
  30377. var roundConstantLsw = 0;
  30378. for (var j = 0; j < 7; j++) {
  30379. if (LFSR & 0x01) {
  30380. var bitPosition = (1 << j) - 1;
  30381. if (bitPosition < 32) {
  30382. roundConstantLsw ^= 1 << bitPosition;
  30383. } else /* if (bitPosition >= 32) */{
  30384. roundConstantMsw ^= 1 << bitPosition - 32;
  30385. }
  30386. }
  30387. // Compute next LFSR
  30388. if (LFSR & 0x80) {
  30389. // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
  30390. LFSR = LFSR << 1 ^ 0x71;
  30391. } else {
  30392. LFSR <<= 1;
  30393. }
  30394. }
  30395. ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);
  30396. }
  30397. })();
  30398. // Reusable objects for temporary values
  30399. var T = [];
  30400. (function () {
  30401. for (var i = 0; i < 25; i++) {
  30402. T[i] = X64Word.create();
  30403. }
  30404. })();
  30405. /**
  30406. * SHA-3 hash algorithm.
  30407. */
  30408. var SHA3 = C_algo.SHA3 = Hasher.extend({
  30409. /**
  30410. * Configuration options.
  30411. *
  30412. * @property {number} outputLength
  30413. * The desired number of bits in the output hash.
  30414. * Only values permitted are: 224, 256, 384, 512.
  30415. * Default: 512
  30416. */
  30417. cfg: Hasher.cfg.extend({
  30418. outputLength: 512 }),
  30419. _doReset: function _doReset() {
  30420. var state = this._state = [];
  30421. for (var i = 0; i < 25; i++) {
  30422. state[i] = new X64Word.init();
  30423. }
  30424. this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
  30425. },
  30426. _doProcessBlock: function _doProcessBlock(M, offset) {
  30427. // Shortcuts
  30428. var state = this._state;
  30429. var nBlockSizeLanes = this.blockSize / 2;
  30430. // Absorb
  30431. for (var i = 0; i < nBlockSizeLanes; i++) {
  30432. // Shortcuts
  30433. var M2i = M[offset + 2 * i];
  30434. var M2i1 = M[offset + 2 * i + 1];
  30435. // Swap endian
  30436. M2i =
  30437. (M2i << 8 | M2i >>> 24) & 0x00ff00ff |
  30438. (M2i << 24 | M2i >>> 8) & 0xff00ff00;
  30439. M2i1 =
  30440. (M2i1 << 8 | M2i1 >>> 24) & 0x00ff00ff |
  30441. (M2i1 << 24 | M2i1 >>> 8) & 0xff00ff00;
  30442. // Absorb message into state
  30443. var lane = state[i];
  30444. lane.high ^= M2i1;
  30445. lane.low ^= M2i;
  30446. }
  30447. // Rounds
  30448. for (var round = 0; round < 24; round++) {
  30449. // Theta
  30450. for (var x = 0; x < 5; x++) {
  30451. // Mix column lanes
  30452. var tMsw = 0,tLsw = 0;
  30453. for (var y = 0; y < 5; y++) {
  30454. var lane = state[x + 5 * y];
  30455. tMsw ^= lane.high;
  30456. tLsw ^= lane.low;
  30457. }
  30458. // Temporary values
  30459. var Tx = T[x];
  30460. Tx.high = tMsw;
  30461. Tx.low = tLsw;
  30462. }
  30463. for (var x = 0; x < 5; x++) {
  30464. // Shortcuts
  30465. var Tx4 = T[(x + 4) % 5];
  30466. var Tx1 = T[(x + 1) % 5];
  30467. var Tx1Msw = Tx1.high;
  30468. var Tx1Lsw = Tx1.low;
  30469. // Mix surrounding columns
  30470. var tMsw = Tx4.high ^ (Tx1Msw << 1 | Tx1Lsw >>> 31);
  30471. var tLsw = Tx4.low ^ (Tx1Lsw << 1 | Tx1Msw >>> 31);
  30472. for (var y = 0; y < 5; y++) {
  30473. var lane = state[x + 5 * y];
  30474. lane.high ^= tMsw;
  30475. lane.low ^= tLsw;
  30476. }
  30477. }
  30478. // Rho Pi
  30479. for (var laneIndex = 1; laneIndex < 25; laneIndex++) {
  30480. var tMsw;
  30481. var tLsw;
  30482. // Shortcuts
  30483. var lane = state[laneIndex];
  30484. var laneMsw = lane.high;
  30485. var laneLsw = lane.low;
  30486. var rhoOffset = RHO_OFFSETS[laneIndex];
  30487. // Rotate lanes
  30488. if (rhoOffset < 32) {
  30489. tMsw = laneMsw << rhoOffset | laneLsw >>> 32 - rhoOffset;
  30490. tLsw = laneLsw << rhoOffset | laneMsw >>> 32 - rhoOffset;
  30491. } else /* if (rhoOffset >= 32) */{
  30492. tMsw = laneLsw << rhoOffset - 32 | laneMsw >>> 64 - rhoOffset;
  30493. tLsw = laneMsw << rhoOffset - 32 | laneLsw >>> 64 - rhoOffset;
  30494. }
  30495. // Transpose lanes
  30496. var TPiLane = T[PI_INDEXES[laneIndex]];
  30497. TPiLane.high = tMsw;
  30498. TPiLane.low = tLsw;
  30499. }
  30500. // Rho pi at x = y = 0
  30501. var T0 = T[0];
  30502. var state0 = state[0];
  30503. T0.high = state0.high;
  30504. T0.low = state0.low;
  30505. // Chi
  30506. for (var x = 0; x < 5; x++) {
  30507. for (var y = 0; y < 5; y++) {
  30508. // Shortcuts
  30509. var laneIndex = x + 5 * y;
  30510. var lane = state[laneIndex];
  30511. var TLane = T[laneIndex];
  30512. var Tx1Lane = T[(x + 1) % 5 + 5 * y];
  30513. var Tx2Lane = T[(x + 2) % 5 + 5 * y];
  30514. // Mix rows
  30515. lane.high = TLane.high ^ ~Tx1Lane.high & Tx2Lane.high;
  30516. lane.low = TLane.low ^ ~Tx1Lane.low & Tx2Lane.low;
  30517. }
  30518. }
  30519. // Iota
  30520. var lane = state[0];
  30521. var roundConstant = ROUND_CONSTANTS[round];
  30522. lane.high ^= roundConstant.high;
  30523. lane.low ^= roundConstant.low;
  30524. }
  30525. },
  30526. _doFinalize: function _doFinalize() {
  30527. // Shortcuts
  30528. var data = this._data;
  30529. var dataWords = data.words;
  30530. var nBitsTotal = this._nDataBytes * 8;
  30531. var nBitsLeft = data.sigBytes * 8;
  30532. var blockSizeBits = this.blockSize * 32;
  30533. // Add padding
  30534. dataWords[nBitsLeft >>> 5] |= 0x1 << 24 - nBitsLeft % 32;
  30535. dataWords[(Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits >>> 5) - 1] |= 0x80;
  30536. data.sigBytes = dataWords.length * 4;
  30537. // Hash final blocks
  30538. this._process();
  30539. // Shortcuts
  30540. var state = this._state;
  30541. var outputLengthBytes = this.cfg.outputLength / 8;
  30542. var outputLengthLanes = outputLengthBytes / 8;
  30543. // Squeeze
  30544. var hashWords = [];
  30545. for (var i = 0; i < outputLengthLanes; i++) {
  30546. // Shortcuts
  30547. var lane = state[i];
  30548. var laneMsw = lane.high;
  30549. var laneLsw = lane.low;
  30550. // Swap endian
  30551. laneMsw =
  30552. (laneMsw << 8 | laneMsw >>> 24) & 0x00ff00ff |
  30553. (laneMsw << 24 | laneMsw >>> 8) & 0xff00ff00;
  30554. laneLsw =
  30555. (laneLsw << 8 | laneLsw >>> 24) & 0x00ff00ff |
  30556. (laneLsw << 24 | laneLsw >>> 8) & 0xff00ff00;
  30557. // Squeeze state to retrieve hash
  30558. hashWords.push(laneLsw);
  30559. hashWords.push(laneMsw);
  30560. }
  30561. // Return final computed hash
  30562. return new WordArray.init(hashWords, outputLengthBytes);
  30563. },
  30564. clone: function clone() {
  30565. var clone = Hasher.clone.call(this);
  30566. var state = clone._state = this._state.slice(0);
  30567. for (var i = 0; i < 25; i++) {
  30568. state[i] = state[i].clone();
  30569. }
  30570. return clone;
  30571. } });
  30572. /**
  30573. * Shortcut function to the hasher's object interface.
  30574. *
  30575. * @param {WordArray|string} message The message to hash.
  30576. *
  30577. * @return {WordArray} The hash.
  30578. *
  30579. * @static
  30580. *
  30581. * @example
  30582. *
  30583. * var hash = CryptoJS.SHA3('message');
  30584. * var hash = CryptoJS.SHA3(wordArray);
  30585. */
  30586. C.SHA3 = Hasher._createHelper(SHA3);
  30587. /**
  30588. * Shortcut function to the HMAC's object interface.
  30589. *
  30590. * @param {WordArray|string} message The message to hash.
  30591. * @param {WordArray|string} key The secret key.
  30592. *
  30593. * @return {WordArray} The HMAC.
  30594. *
  30595. * @static
  30596. *
  30597. * @example
  30598. *
  30599. * var hmac = CryptoJS.HmacSHA3(message, key);
  30600. */
  30601. C.HmacSHA3 = Hasher._createHmacHelper(SHA3);
  30602. })(Math);
  30603. return CryptoJS.SHA3;
  30604. });
  30605. /***/ }),
  30606. /* 225 */
  30607. /*!******************************************************************************!*\
  30608. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/ripemd160.js ***!
  30609. \******************************************************************************/
  30610. /*! no static exports found */
  30611. /***/ (function(module, exports, __webpack_require__) {
  30612. ;(function (root, factory) {
  30613. if (true) {
  30614. // CommonJS
  30615. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  30616. } else
  30617. {}
  30618. })(this, function (CryptoJS) {
  30619. /** @preserve
  30620. (c) 2012 by Cédric Mesnil. All rights reserved.
  30621. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  30622. - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  30623. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  30624. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30625. */
  30626. (function (Math) {
  30627. // Shortcuts
  30628. var C = CryptoJS;
  30629. var C_lib = C.lib;
  30630. var WordArray = C_lib.WordArray;
  30631. var Hasher = C_lib.Hasher;
  30632. var C_algo = C.algo;
  30633. // Constants table
  30634. var _zl = WordArray.create([
  30635. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
  30636. 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
  30637. 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
  30638. 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
  30639. 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);
  30640. var _zr = WordArray.create([
  30641. 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
  30642. 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
  30643. 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
  30644. 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
  30645. 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);
  30646. var _sl = WordArray.create([
  30647. 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
  30648. 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
  30649. 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
  30650. 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
  30651. 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]);
  30652. var _sr = WordArray.create([
  30653. 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
  30654. 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
  30655. 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
  30656. 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
  30657. 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]);
  30658. var _hl = WordArray.create([0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);
  30659. var _hr = WordArray.create([0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
  30660. /**
  30661. * RIPEMD160 hash algorithm.
  30662. */
  30663. var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({
  30664. _doReset: function _doReset() {
  30665. this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
  30666. },
  30667. _doProcessBlock: function _doProcessBlock(M, offset) {
  30668. // Swap endian
  30669. for (var i = 0; i < 16; i++) {
  30670. // Shortcuts
  30671. var offset_i = offset + i;
  30672. var M_offset_i = M[offset_i];
  30673. // Swap
  30674. M[offset_i] =
  30675. (M_offset_i << 8 | M_offset_i >>> 24) & 0x00ff00ff |
  30676. (M_offset_i << 24 | M_offset_i >>> 8) & 0xff00ff00;
  30677. }
  30678. // Shortcut
  30679. var H = this._hash.words;
  30680. var hl = _hl.words;
  30681. var hr = _hr.words;
  30682. var zl = _zl.words;
  30683. var zr = _zr.words;
  30684. var sl = _sl.words;
  30685. var sr = _sr.words;
  30686. // Working variables
  30687. var al, bl, cl, dl, el;
  30688. var ar, br, cr, dr, er;
  30689. ar = al = H[0];
  30690. br = bl = H[1];
  30691. cr = cl = H[2];
  30692. dr = dl = H[3];
  30693. er = el = H[4];
  30694. // Computation
  30695. var t;
  30696. for (var i = 0; i < 80; i += 1) {
  30697. t = al + M[offset + zl[i]] | 0;
  30698. if (i < 16) {
  30699. t += f1(bl, cl, dl) + hl[0];
  30700. } else if (i < 32) {
  30701. t += f2(bl, cl, dl) + hl[1];
  30702. } else if (i < 48) {
  30703. t += f3(bl, cl, dl) + hl[2];
  30704. } else if (i < 64) {
  30705. t += f4(bl, cl, dl) + hl[3];
  30706. } else {// if (i<80) {
  30707. t += f5(bl, cl, dl) + hl[4];
  30708. }
  30709. t = t | 0;
  30710. t = rotl(t, sl[i]);
  30711. t = t + el | 0;
  30712. al = el;
  30713. el = dl;
  30714. dl = rotl(cl, 10);
  30715. cl = bl;
  30716. bl = t;
  30717. t = ar + M[offset + zr[i]] | 0;
  30718. if (i < 16) {
  30719. t += f5(br, cr, dr) + hr[0];
  30720. } else if (i < 32) {
  30721. t += f4(br, cr, dr) + hr[1];
  30722. } else if (i < 48) {
  30723. t += f3(br, cr, dr) + hr[2];
  30724. } else if (i < 64) {
  30725. t += f2(br, cr, dr) + hr[3];
  30726. } else {// if (i<80) {
  30727. t += f1(br, cr, dr) + hr[4];
  30728. }
  30729. t = t | 0;
  30730. t = rotl(t, sr[i]);
  30731. t = t + er | 0;
  30732. ar = er;
  30733. er = dr;
  30734. dr = rotl(cr, 10);
  30735. cr = br;
  30736. br = t;
  30737. }
  30738. // Intermediate hash value
  30739. t = H[1] + cl + dr | 0;
  30740. H[1] = H[2] + dl + er | 0;
  30741. H[2] = H[3] + el + ar | 0;
  30742. H[3] = H[4] + al + br | 0;
  30743. H[4] = H[0] + bl + cr | 0;
  30744. H[0] = t;
  30745. },
  30746. _doFinalize: function _doFinalize() {
  30747. // Shortcuts
  30748. var data = this._data;
  30749. var dataWords = data.words;
  30750. var nBitsTotal = this._nDataBytes * 8;
  30751. var nBitsLeft = data.sigBytes * 8;
  30752. // Add padding
  30753. dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
  30754. dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] =
  30755. (nBitsTotal << 8 | nBitsTotal >>> 24) & 0x00ff00ff |
  30756. (nBitsTotal << 24 | nBitsTotal >>> 8) & 0xff00ff00;
  30757. data.sigBytes = (dataWords.length + 1) * 4;
  30758. // Hash final blocks
  30759. this._process();
  30760. // Shortcuts
  30761. var hash = this._hash;
  30762. var H = hash.words;
  30763. // Swap endian
  30764. for (var i = 0; i < 5; i++) {
  30765. // Shortcut
  30766. var H_i = H[i];
  30767. // Swap
  30768. H[i] = (H_i << 8 | H_i >>> 24) & 0x00ff00ff |
  30769. (H_i << 24 | H_i >>> 8) & 0xff00ff00;
  30770. }
  30771. // Return final computed hash
  30772. return hash;
  30773. },
  30774. clone: function clone() {
  30775. var clone = Hasher.clone.call(this);
  30776. clone._hash = this._hash.clone();
  30777. return clone;
  30778. } });
  30779. function f1(x, y, z) {
  30780. return x ^ y ^ z;
  30781. }
  30782. function f2(x, y, z) {
  30783. return x & y | ~x & z;
  30784. }
  30785. function f3(x, y, z) {
  30786. return (x | ~y) ^ z;
  30787. }
  30788. function f4(x, y, z) {
  30789. return x & z | y & ~z;
  30790. }
  30791. function f5(x, y, z) {
  30792. return x ^ (y | ~z);
  30793. }
  30794. function rotl(x, n) {
  30795. return x << n | x >>> 32 - n;
  30796. }
  30797. /**
  30798. * Shortcut function to the hasher's object interface.
  30799. *
  30800. * @param {WordArray|string} message The message to hash.
  30801. *
  30802. * @return {WordArray} The hash.
  30803. *
  30804. * @static
  30805. *
  30806. * @example
  30807. *
  30808. * var hash = CryptoJS.RIPEMD160('message');
  30809. * var hash = CryptoJS.RIPEMD160(wordArray);
  30810. */
  30811. C.RIPEMD160 = Hasher._createHelper(RIPEMD160);
  30812. /**
  30813. * Shortcut function to the HMAC's object interface.
  30814. *
  30815. * @param {WordArray|string} message The message to hash.
  30816. * @param {WordArray|string} key The secret key.
  30817. *
  30818. * @return {WordArray} The HMAC.
  30819. *
  30820. * @static
  30821. *
  30822. * @example
  30823. *
  30824. * var hmac = CryptoJS.HmacRIPEMD160(message, key);
  30825. */
  30826. C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);
  30827. })(Math);
  30828. return CryptoJS.RIPEMD160;
  30829. });
  30830. /***/ }),
  30831. /* 226 */
  30832. /*!*************************************************************************!*\
  30833. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/hmac.js ***!
  30834. \*************************************************************************/
  30835. /*! no static exports found */
  30836. /***/ (function(module, exports, __webpack_require__) {
  30837. ;(function (root, factory) {
  30838. if (true) {
  30839. // CommonJS
  30840. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211));
  30841. } else
  30842. {}
  30843. })(this, function (CryptoJS) {
  30844. (function () {
  30845. // Shortcuts
  30846. var C = CryptoJS;
  30847. var C_lib = C.lib;
  30848. var Base = C_lib.Base;
  30849. var C_enc = C.enc;
  30850. var Utf8 = C_enc.Utf8;
  30851. var C_algo = C.algo;
  30852. /**
  30853. * HMAC algorithm.
  30854. */
  30855. var HMAC = C_algo.HMAC = Base.extend({
  30856. /**
  30857. * Initializes a newly created HMAC.
  30858. *
  30859. * @param {Hasher} hasher The hash algorithm to use.
  30860. * @param {WordArray|string} key The secret key.
  30861. *
  30862. * @example
  30863. *
  30864. * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
  30865. */
  30866. init: function init(hasher, key) {
  30867. // Init hasher
  30868. hasher = this._hasher = new hasher.init();
  30869. // Convert string to WordArray, else assume WordArray already
  30870. if (typeof key == 'string') {
  30871. key = Utf8.parse(key);
  30872. }
  30873. // Shortcuts
  30874. var hasherBlockSize = hasher.blockSize;
  30875. var hasherBlockSizeBytes = hasherBlockSize * 4;
  30876. // Allow arbitrary length keys
  30877. if (key.sigBytes > hasherBlockSizeBytes) {
  30878. key = hasher.finalize(key);
  30879. }
  30880. // Clamp excess bits
  30881. key.clamp();
  30882. // Clone key for inner and outer pads
  30883. var oKey = this._oKey = key.clone();
  30884. var iKey = this._iKey = key.clone();
  30885. // Shortcuts
  30886. var oKeyWords = oKey.words;
  30887. var iKeyWords = iKey.words;
  30888. // XOR keys with pad constants
  30889. for (var i = 0; i < hasherBlockSize; i++) {
  30890. oKeyWords[i] ^= 0x5c5c5c5c;
  30891. iKeyWords[i] ^= 0x36363636;
  30892. }
  30893. oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;
  30894. // Set initial values
  30895. this.reset();
  30896. },
  30897. /**
  30898. * Resets this HMAC to its initial state.
  30899. *
  30900. * @example
  30901. *
  30902. * hmacHasher.reset();
  30903. */
  30904. reset: function reset() {
  30905. // Shortcut
  30906. var hasher = this._hasher;
  30907. // Reset
  30908. hasher.reset();
  30909. hasher.update(this._iKey);
  30910. },
  30911. /**
  30912. * Updates this HMAC with a message.
  30913. *
  30914. * @param {WordArray|string} messageUpdate The message to append.
  30915. *
  30916. * @return {HMAC} This HMAC instance.
  30917. *
  30918. * @example
  30919. *
  30920. * hmacHasher.update('message');
  30921. * hmacHasher.update(wordArray);
  30922. */
  30923. update: function update(messageUpdate) {
  30924. this._hasher.update(messageUpdate);
  30925. // Chainable
  30926. return this;
  30927. },
  30928. /**
  30929. * Finalizes the HMAC computation.
  30930. * Note that the finalize operation is effectively a destructive, read-once operation.
  30931. *
  30932. * @param {WordArray|string} messageUpdate (Optional) A final message update.
  30933. *
  30934. * @return {WordArray} The HMAC.
  30935. *
  30936. * @example
  30937. *
  30938. * var hmac = hmacHasher.finalize();
  30939. * var hmac = hmacHasher.finalize('message');
  30940. * var hmac = hmacHasher.finalize(wordArray);
  30941. */
  30942. finalize: function finalize(messageUpdate) {
  30943. // Shortcut
  30944. var hasher = this._hasher;
  30945. // Compute HMAC
  30946. var innerHash = hasher.finalize(messageUpdate);
  30947. hasher.reset();
  30948. var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));
  30949. return hmac;
  30950. } });
  30951. })();
  30952. });
  30953. /***/ }),
  30954. /* 227 */
  30955. /*!***************************************************************************!*\
  30956. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/pbkdf2.js ***!
  30957. \***************************************************************************/
  30958. /*! no static exports found */
  30959. /***/ (function(module, exports, __webpack_require__) {
  30960. ;(function (root, factory, undef) {
  30961. if (true) {
  30962. // CommonJS
  30963. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./sha1 */ 219), __webpack_require__(/*! ./hmac */ 226));
  30964. } else
  30965. {}
  30966. })(this, function (CryptoJS) {
  30967. (function () {
  30968. // Shortcuts
  30969. var C = CryptoJS;
  30970. var C_lib = C.lib;
  30971. var Base = C_lib.Base;
  30972. var WordArray = C_lib.WordArray;
  30973. var C_algo = C.algo;
  30974. var SHA1 = C_algo.SHA1;
  30975. var HMAC = C_algo.HMAC;
  30976. /**
  30977. * Password-Based Key Derivation Function 2 algorithm.
  30978. */
  30979. var PBKDF2 = C_algo.PBKDF2 = Base.extend({
  30980. /**
  30981. * Configuration options.
  30982. *
  30983. * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
  30984. * @property {Hasher} hasher The hasher to use. Default: SHA1
  30985. * @property {number} iterations The number of iterations to perform. Default: 1
  30986. */
  30987. cfg: Base.extend({
  30988. keySize: 128 / 32,
  30989. hasher: SHA1,
  30990. iterations: 1 }),
  30991. /**
  30992. * Initializes a newly created key derivation function.
  30993. *
  30994. * @param {Object} cfg (Optional) The configuration options to use for the derivation.
  30995. *
  30996. * @example
  30997. *
  30998. * var kdf = CryptoJS.algo.PBKDF2.create();
  30999. * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
  31000. * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
  31001. */
  31002. init: function init(cfg) {
  31003. this.cfg = this.cfg.extend(cfg);
  31004. },
  31005. /**
  31006. * Computes the Password-Based Key Derivation Function 2.
  31007. *
  31008. * @param {WordArray|string} password The password.
  31009. * @param {WordArray|string} salt A salt.
  31010. *
  31011. * @return {WordArray} The derived key.
  31012. *
  31013. * @example
  31014. *
  31015. * var key = kdf.compute(password, salt);
  31016. */
  31017. compute: function compute(password, salt) {
  31018. // Shortcut
  31019. var cfg = this.cfg;
  31020. // Init HMAC
  31021. var hmac = HMAC.create(cfg.hasher, password);
  31022. // Initial values
  31023. var derivedKey = WordArray.create();
  31024. var blockIndex = WordArray.create([0x00000001]);
  31025. // Shortcuts
  31026. var derivedKeyWords = derivedKey.words;
  31027. var blockIndexWords = blockIndex.words;
  31028. var keySize = cfg.keySize;
  31029. var iterations = cfg.iterations;
  31030. // Generate key
  31031. while (derivedKeyWords.length < keySize) {
  31032. var block = hmac.update(salt).finalize(blockIndex);
  31033. hmac.reset();
  31034. // Shortcuts
  31035. var blockWords = block.words;
  31036. var blockWordsLength = blockWords.length;
  31037. // Iterations
  31038. var intermediate = block;
  31039. for (var i = 1; i < iterations; i++) {
  31040. intermediate = hmac.finalize(intermediate);
  31041. hmac.reset();
  31042. // Shortcut
  31043. var intermediateWords = intermediate.words;
  31044. // XOR intermediate with block
  31045. for (var j = 0; j < blockWordsLength; j++) {
  31046. blockWords[j] ^= intermediateWords[j];
  31047. }
  31048. }
  31049. derivedKey.concat(block);
  31050. blockIndexWords[0]++;
  31051. }
  31052. derivedKey.sigBytes = keySize * 4;
  31053. return derivedKey;
  31054. } });
  31055. /**
  31056. * Computes the Password-Based Key Derivation Function 2.
  31057. *
  31058. * @param {WordArray|string} password The password.
  31059. * @param {WordArray|string} salt A salt.
  31060. * @param {Object} cfg (Optional) The configuration options to use for this computation.
  31061. *
  31062. * @return {WordArray} The derived key.
  31063. *
  31064. * @static
  31065. *
  31066. * @example
  31067. *
  31068. * var key = CryptoJS.PBKDF2(password, salt);
  31069. * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
  31070. * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
  31071. */
  31072. C.PBKDF2 = function (password, salt, cfg) {
  31073. return PBKDF2.create(cfg).compute(password, salt);
  31074. };
  31075. })();
  31076. return CryptoJS.PBKDF2;
  31077. });
  31078. /***/ }),
  31079. /* 228 */
  31080. /*!***************************************************************************!*\
  31081. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/evpkdf.js ***!
  31082. \***************************************************************************/
  31083. /*! no static exports found */
  31084. /***/ (function(module, exports, __webpack_require__) {
  31085. ;(function (root, factory, undef) {
  31086. if (true) {
  31087. // CommonJS
  31088. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./sha1 */ 219), __webpack_require__(/*! ./hmac */ 226));
  31089. } else
  31090. {}
  31091. })(this, function (CryptoJS) {
  31092. (function () {
  31093. // Shortcuts
  31094. var C = CryptoJS;
  31095. var C_lib = C.lib;
  31096. var Base = C_lib.Base;
  31097. var WordArray = C_lib.WordArray;
  31098. var C_algo = C.algo;
  31099. var MD5 = C_algo.MD5;
  31100. /**
  31101. * This key derivation function is meant to conform with EVP_BytesToKey.
  31102. * www.openssl.org/docs/crypto/EVP_BytesToKey.html
  31103. */
  31104. var EvpKDF = C_algo.EvpKDF = Base.extend({
  31105. /**
  31106. * Configuration options.
  31107. *
  31108. * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
  31109. * @property {Hasher} hasher The hash algorithm to use. Default: MD5
  31110. * @property {number} iterations The number of iterations to perform. Default: 1
  31111. */
  31112. cfg: Base.extend({
  31113. keySize: 128 / 32,
  31114. hasher: MD5,
  31115. iterations: 1 }),
  31116. /**
  31117. * Initializes a newly created key derivation function.
  31118. *
  31119. * @param {Object} cfg (Optional) The configuration options to use for the derivation.
  31120. *
  31121. * @example
  31122. *
  31123. * var kdf = CryptoJS.algo.EvpKDF.create();
  31124. * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
  31125. * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
  31126. */
  31127. init: function init(cfg) {
  31128. this.cfg = this.cfg.extend(cfg);
  31129. },
  31130. /**
  31131. * Derives a key from a password.
  31132. *
  31133. * @param {WordArray|string} password The password.
  31134. * @param {WordArray|string} salt A salt.
  31135. *
  31136. * @return {WordArray} The derived key.
  31137. *
  31138. * @example
  31139. *
  31140. * var key = kdf.compute(password, salt);
  31141. */
  31142. compute: function compute(password, salt) {
  31143. var block;
  31144. // Shortcut
  31145. var cfg = this.cfg;
  31146. // Init hasher
  31147. var hasher = cfg.hasher.create();
  31148. // Initial values
  31149. var derivedKey = WordArray.create();
  31150. // Shortcuts
  31151. var derivedKeyWords = derivedKey.words;
  31152. var keySize = cfg.keySize;
  31153. var iterations = cfg.iterations;
  31154. // Generate key
  31155. while (derivedKeyWords.length < keySize) {
  31156. if (block) {
  31157. hasher.update(block);
  31158. }
  31159. block = hasher.update(password).finalize(salt);
  31160. hasher.reset();
  31161. // Iterations
  31162. for (var i = 1; i < iterations; i++) {
  31163. block = hasher.finalize(block);
  31164. hasher.reset();
  31165. }
  31166. derivedKey.concat(block);
  31167. }
  31168. derivedKey.sigBytes = keySize * 4;
  31169. return derivedKey;
  31170. } });
  31171. /**
  31172. * Derives a key from a password.
  31173. *
  31174. * @param {WordArray|string} password The password.
  31175. * @param {WordArray|string} salt A salt.
  31176. * @param {Object} cfg (Optional) The configuration options to use for this computation.
  31177. *
  31178. * @return {WordArray} The derived key.
  31179. *
  31180. * @static
  31181. *
  31182. * @example
  31183. *
  31184. * var key = CryptoJS.EvpKDF(password, salt);
  31185. * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
  31186. * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
  31187. */
  31188. C.EvpKDF = function (password, salt, cfg) {
  31189. return EvpKDF.create(cfg).compute(password, salt);
  31190. };
  31191. })();
  31192. return CryptoJS.EvpKDF;
  31193. });
  31194. /***/ }),
  31195. /* 229 */
  31196. /*!********************************************************************************!*\
  31197. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/cipher-core.js ***!
  31198. \********************************************************************************/
  31199. /*! no static exports found */
  31200. /***/ (function(module, exports, __webpack_require__) {
  31201. ;(function (root, factory, undef) {
  31202. if (true) {
  31203. // CommonJS
  31204. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./evpkdf */ 228));
  31205. } else
  31206. {}
  31207. })(this, function (CryptoJS) {
  31208. /**
  31209. * Cipher core components.
  31210. */
  31211. CryptoJS.lib.Cipher || function (undefined) {
  31212. // Shortcuts
  31213. var C = CryptoJS;
  31214. var C_lib = C.lib;
  31215. var Base = C_lib.Base;
  31216. var WordArray = C_lib.WordArray;
  31217. var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
  31218. var C_enc = C.enc;
  31219. var Utf8 = C_enc.Utf8;
  31220. var Base64 = C_enc.Base64;
  31221. var C_algo = C.algo;
  31222. var EvpKDF = C_algo.EvpKDF;
  31223. /**
  31224. * Abstract base cipher template.
  31225. *
  31226. * @property {number} keySize This cipher's key size. Default: 4 (128 bits)
  31227. * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
  31228. * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
  31229. * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
  31230. */
  31231. var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
  31232. /**
  31233. * Configuration options.
  31234. *
  31235. * @property {WordArray} iv The IV to use for this operation.
  31236. */
  31237. cfg: Base.extend(),
  31238. /**
  31239. * Creates this cipher in encryption mode.
  31240. *
  31241. * @param {WordArray} key The key.
  31242. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  31243. *
  31244. * @return {Cipher} A cipher instance.
  31245. *
  31246. * @static
  31247. *
  31248. * @example
  31249. *
  31250. * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
  31251. */
  31252. createEncryptor: function createEncryptor(key, cfg) {
  31253. return this.create(this._ENC_XFORM_MODE, key, cfg);
  31254. },
  31255. /**
  31256. * Creates this cipher in decryption mode.
  31257. *
  31258. * @param {WordArray} key The key.
  31259. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  31260. *
  31261. * @return {Cipher} A cipher instance.
  31262. *
  31263. * @static
  31264. *
  31265. * @example
  31266. *
  31267. * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
  31268. */
  31269. createDecryptor: function createDecryptor(key, cfg) {
  31270. return this.create(this._DEC_XFORM_MODE, key, cfg);
  31271. },
  31272. /**
  31273. * Initializes a newly created cipher.
  31274. *
  31275. * @param {number} xformMode Either the encryption or decryption transormation mode constant.
  31276. * @param {WordArray} key The key.
  31277. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  31278. *
  31279. * @example
  31280. *
  31281. * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
  31282. */
  31283. init: function init(xformMode, key, cfg) {
  31284. // Apply config defaults
  31285. this.cfg = this.cfg.extend(cfg);
  31286. // Store transform mode and key
  31287. this._xformMode = xformMode;
  31288. this._key = key;
  31289. // Set initial values
  31290. this.reset();
  31291. },
  31292. /**
  31293. * Resets this cipher to its initial state.
  31294. *
  31295. * @example
  31296. *
  31297. * cipher.reset();
  31298. */
  31299. reset: function reset() {
  31300. // Reset data buffer
  31301. BufferedBlockAlgorithm.reset.call(this);
  31302. // Perform concrete-cipher logic
  31303. this._doReset();
  31304. },
  31305. /**
  31306. * Adds data to be encrypted or decrypted.
  31307. *
  31308. * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
  31309. *
  31310. * @return {WordArray} The data after processing.
  31311. *
  31312. * @example
  31313. *
  31314. * var encrypted = cipher.process('data');
  31315. * var encrypted = cipher.process(wordArray);
  31316. */
  31317. process: function process(dataUpdate) {
  31318. // Append
  31319. this._append(dataUpdate);
  31320. // Process available blocks
  31321. return this._process();
  31322. },
  31323. /**
  31324. * Finalizes the encryption or decryption process.
  31325. * Note that the finalize operation is effectively a destructive, read-once operation.
  31326. *
  31327. * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
  31328. *
  31329. * @return {WordArray} The data after final processing.
  31330. *
  31331. * @example
  31332. *
  31333. * var encrypted = cipher.finalize();
  31334. * var encrypted = cipher.finalize('data');
  31335. * var encrypted = cipher.finalize(wordArray);
  31336. */
  31337. finalize: function finalize(dataUpdate) {
  31338. // Final data update
  31339. if (dataUpdate) {
  31340. this._append(dataUpdate);
  31341. }
  31342. // Perform concrete-cipher logic
  31343. var finalProcessedData = this._doFinalize();
  31344. return finalProcessedData;
  31345. },
  31346. keySize: 128 / 32,
  31347. ivSize: 128 / 32,
  31348. _ENC_XFORM_MODE: 1,
  31349. _DEC_XFORM_MODE: 2,
  31350. /**
  31351. * Creates shortcut functions to a cipher's object interface.
  31352. *
  31353. * @param {Cipher} cipher The cipher to create a helper for.
  31354. *
  31355. * @return {Object} An object with encrypt and decrypt shortcut functions.
  31356. *
  31357. * @static
  31358. *
  31359. * @example
  31360. *
  31361. * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
  31362. */
  31363. _createHelper: function () {
  31364. function selectCipherStrategy(key) {
  31365. if (typeof key == 'string') {
  31366. return PasswordBasedCipher;
  31367. } else {
  31368. return SerializableCipher;
  31369. }
  31370. }
  31371. return function (cipher) {
  31372. return {
  31373. encrypt: function encrypt(message, key, cfg) {
  31374. return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
  31375. },
  31376. decrypt: function decrypt(ciphertext, key, cfg) {
  31377. return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
  31378. } };
  31379. };
  31380. }() });
  31381. /**
  31382. * Abstract base stream cipher template.
  31383. *
  31384. * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
  31385. */
  31386. var StreamCipher = C_lib.StreamCipher = Cipher.extend({
  31387. _doFinalize: function _doFinalize() {
  31388. // Process partial blocks
  31389. var finalProcessedBlocks = this._process(!!'flush');
  31390. return finalProcessedBlocks;
  31391. },
  31392. blockSize: 1 });
  31393. /**
  31394. * Mode namespace.
  31395. */
  31396. var C_mode = C.mode = {};
  31397. /**
  31398. * Abstract base block cipher mode template.
  31399. */
  31400. var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
  31401. /**
  31402. * Creates this mode for encryption.
  31403. *
  31404. * @param {Cipher} cipher A block cipher instance.
  31405. * @param {Array} iv The IV words.
  31406. *
  31407. * @static
  31408. *
  31409. * @example
  31410. *
  31411. * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
  31412. */
  31413. createEncryptor: function createEncryptor(cipher, iv) {
  31414. return this.Encryptor.create(cipher, iv);
  31415. },
  31416. /**
  31417. * Creates this mode for decryption.
  31418. *
  31419. * @param {Cipher} cipher A block cipher instance.
  31420. * @param {Array} iv The IV words.
  31421. *
  31422. * @static
  31423. *
  31424. * @example
  31425. *
  31426. * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
  31427. */
  31428. createDecryptor: function createDecryptor(cipher, iv) {
  31429. return this.Decryptor.create(cipher, iv);
  31430. },
  31431. /**
  31432. * Initializes a newly created mode.
  31433. *
  31434. * @param {Cipher} cipher A block cipher instance.
  31435. * @param {Array} iv The IV words.
  31436. *
  31437. * @example
  31438. *
  31439. * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
  31440. */
  31441. init: function init(cipher, iv) {
  31442. this._cipher = cipher;
  31443. this._iv = iv;
  31444. } });
  31445. /**
  31446. * Cipher Block Chaining mode.
  31447. */
  31448. var CBC = C_mode.CBC = function () {
  31449. /**
  31450. * Abstract base CBC mode.
  31451. */
  31452. var CBC = BlockCipherMode.extend();
  31453. /**
  31454. * CBC encryptor.
  31455. */
  31456. CBC.Encryptor = CBC.extend({
  31457. /**
  31458. * Processes the data block at offset.
  31459. *
  31460. * @param {Array} words The data words to operate on.
  31461. * @param {number} offset The offset where the block starts.
  31462. *
  31463. * @example
  31464. *
  31465. * mode.processBlock(data.words, offset);
  31466. */
  31467. processBlock: function processBlock(words, offset) {
  31468. // Shortcuts
  31469. var cipher = this._cipher;
  31470. var blockSize = cipher.blockSize;
  31471. // XOR and encrypt
  31472. xorBlock.call(this, words, offset, blockSize);
  31473. cipher.encryptBlock(words, offset);
  31474. // Remember this block to use with next block
  31475. this._prevBlock = words.slice(offset, offset + blockSize);
  31476. } });
  31477. /**
  31478. * CBC decryptor.
  31479. */
  31480. CBC.Decryptor = CBC.extend({
  31481. /**
  31482. * Processes the data block at offset.
  31483. *
  31484. * @param {Array} words The data words to operate on.
  31485. * @param {number} offset The offset where the block starts.
  31486. *
  31487. * @example
  31488. *
  31489. * mode.processBlock(data.words, offset);
  31490. */
  31491. processBlock: function processBlock(words, offset) {
  31492. // Shortcuts
  31493. var cipher = this._cipher;
  31494. var blockSize = cipher.blockSize;
  31495. // Remember this block to use with next block
  31496. var thisBlock = words.slice(offset, offset + blockSize);
  31497. // Decrypt and XOR
  31498. cipher.decryptBlock(words, offset);
  31499. xorBlock.call(this, words, offset, blockSize);
  31500. // This block becomes the previous block
  31501. this._prevBlock = thisBlock;
  31502. } });
  31503. function xorBlock(words, offset, blockSize) {
  31504. var block;
  31505. // Shortcut
  31506. var iv = this._iv;
  31507. // Choose mixing block
  31508. if (iv) {
  31509. block = iv;
  31510. // Remove IV for subsequent blocks
  31511. this._iv = undefined;
  31512. } else {
  31513. block = this._prevBlock;
  31514. }
  31515. // XOR blocks
  31516. for (var i = 0; i < blockSize; i++) {
  31517. words[offset + i] ^= block[i];
  31518. }
  31519. }
  31520. return CBC;
  31521. }();
  31522. /**
  31523. * Padding namespace.
  31524. */
  31525. var C_pad = C.pad = {};
  31526. /**
  31527. * PKCS #5/7 padding strategy.
  31528. */
  31529. var Pkcs7 = C_pad.Pkcs7 = {
  31530. /**
  31531. * Pads data using the algorithm defined in PKCS #5/7.
  31532. *
  31533. * @param {WordArray} data The data to pad.
  31534. * @param {number} blockSize The multiple that the data should be padded to.
  31535. *
  31536. * @static
  31537. *
  31538. * @example
  31539. *
  31540. * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
  31541. */
  31542. pad: function pad(data, blockSize) {
  31543. // Shortcut
  31544. var blockSizeBytes = blockSize * 4;
  31545. // Count padding bytes
  31546. var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
  31547. // Create padding word
  31548. var paddingWord = nPaddingBytes << 24 | nPaddingBytes << 16 | nPaddingBytes << 8 | nPaddingBytes;
  31549. // Create padding
  31550. var paddingWords = [];
  31551. for (var i = 0; i < nPaddingBytes; i += 4) {
  31552. paddingWords.push(paddingWord);
  31553. }
  31554. var padding = WordArray.create(paddingWords, nPaddingBytes);
  31555. // Add padding
  31556. data.concat(padding);
  31557. },
  31558. /**
  31559. * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
  31560. *
  31561. * @param {WordArray} data The data to unpad.
  31562. *
  31563. * @static
  31564. *
  31565. * @example
  31566. *
  31567. * CryptoJS.pad.Pkcs7.unpad(wordArray);
  31568. */
  31569. unpad: function unpad(data) {
  31570. // Get number of padding bytes from last byte
  31571. var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff;
  31572. // Remove padding
  31573. data.sigBytes -= nPaddingBytes;
  31574. } };
  31575. /**
  31576. * Abstract base block cipher template.
  31577. *
  31578. * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
  31579. */
  31580. var BlockCipher = C_lib.BlockCipher = Cipher.extend({
  31581. /**
  31582. * Configuration options.
  31583. *
  31584. * @property {Mode} mode The block mode to use. Default: CBC
  31585. * @property {Padding} padding The padding strategy to use. Default: Pkcs7
  31586. */
  31587. cfg: Cipher.cfg.extend({
  31588. mode: CBC,
  31589. padding: Pkcs7 }),
  31590. reset: function reset() {
  31591. var modeCreator;
  31592. // Reset cipher
  31593. Cipher.reset.call(this);
  31594. // Shortcuts
  31595. var cfg = this.cfg;
  31596. var iv = cfg.iv;
  31597. var mode = cfg.mode;
  31598. // Reset block mode
  31599. if (this._xformMode == this._ENC_XFORM_MODE) {
  31600. modeCreator = mode.createEncryptor;
  31601. } else /* if (this._xformMode == this._DEC_XFORM_MODE) */{
  31602. modeCreator = mode.createDecryptor;
  31603. // Keep at least one block in the buffer for unpadding
  31604. this._minBufferSize = 1;
  31605. }
  31606. if (this._mode && this._mode.__creator == modeCreator) {
  31607. this._mode.init(this, iv && iv.words);
  31608. } else {
  31609. this._mode = modeCreator.call(mode, this, iv && iv.words);
  31610. this._mode.__creator = modeCreator;
  31611. }
  31612. },
  31613. _doProcessBlock: function _doProcessBlock(words, offset) {
  31614. this._mode.processBlock(words, offset);
  31615. },
  31616. _doFinalize: function _doFinalize() {
  31617. var finalProcessedBlocks;
  31618. // Shortcut
  31619. var padding = this.cfg.padding;
  31620. // Finalize
  31621. if (this._xformMode == this._ENC_XFORM_MODE) {
  31622. // Pad data
  31623. padding.pad(this._data, this.blockSize);
  31624. // Process final blocks
  31625. finalProcessedBlocks = this._process(!!'flush');
  31626. } else /* if (this._xformMode == this._DEC_XFORM_MODE) */{
  31627. // Process final blocks
  31628. finalProcessedBlocks = this._process(!!'flush');
  31629. // Unpad data
  31630. padding.unpad(finalProcessedBlocks);
  31631. }
  31632. return finalProcessedBlocks;
  31633. },
  31634. blockSize: 128 / 32 });
  31635. /**
  31636. * A collection of cipher parameters.
  31637. *
  31638. * @property {WordArray} ciphertext The raw ciphertext.
  31639. * @property {WordArray} key The key to this ciphertext.
  31640. * @property {WordArray} iv The IV used in the ciphering operation.
  31641. * @property {WordArray} salt The salt used with a key derivation function.
  31642. * @property {Cipher} algorithm The cipher algorithm.
  31643. * @property {Mode} mode The block mode used in the ciphering operation.
  31644. * @property {Padding} padding The padding scheme used in the ciphering operation.
  31645. * @property {number} blockSize The block size of the cipher.
  31646. * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
  31647. */
  31648. var CipherParams = C_lib.CipherParams = Base.extend({
  31649. /**
  31650. * Initializes a newly created cipher params object.
  31651. *
  31652. * @param {Object} cipherParams An object with any of the possible cipher parameters.
  31653. *
  31654. * @example
  31655. *
  31656. * var cipherParams = CryptoJS.lib.CipherParams.create({
  31657. * ciphertext: ciphertextWordArray,
  31658. * key: keyWordArray,
  31659. * iv: ivWordArray,
  31660. * salt: saltWordArray,
  31661. * algorithm: CryptoJS.algo.AES,
  31662. * mode: CryptoJS.mode.CBC,
  31663. * padding: CryptoJS.pad.PKCS7,
  31664. * blockSize: 4,
  31665. * formatter: CryptoJS.format.OpenSSL
  31666. * });
  31667. */
  31668. init: function init(cipherParams) {
  31669. this.mixIn(cipherParams);
  31670. },
  31671. /**
  31672. * Converts this cipher params object to a string.
  31673. *
  31674. * @param {Format} formatter (Optional) The formatting strategy to use.
  31675. *
  31676. * @return {string} The stringified cipher params.
  31677. *
  31678. * @throws Error If neither the formatter nor the default formatter is set.
  31679. *
  31680. * @example
  31681. *
  31682. * var string = cipherParams + '';
  31683. * var string = cipherParams.toString();
  31684. * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
  31685. */
  31686. toString: function toString(formatter) {
  31687. return (formatter || this.formatter).stringify(this);
  31688. } });
  31689. /**
  31690. * Format namespace.
  31691. */
  31692. var C_format = C.format = {};
  31693. /**
  31694. * OpenSSL formatting strategy.
  31695. */
  31696. var OpenSSLFormatter = C_format.OpenSSL = {
  31697. /**
  31698. * Converts a cipher params object to an OpenSSL-compatible string.
  31699. *
  31700. * @param {CipherParams} cipherParams The cipher params object.
  31701. *
  31702. * @return {string} The OpenSSL-compatible string.
  31703. *
  31704. * @static
  31705. *
  31706. * @example
  31707. *
  31708. * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
  31709. */
  31710. stringify: function stringify(cipherParams) {
  31711. var wordArray;
  31712. // Shortcuts
  31713. var ciphertext = cipherParams.ciphertext;
  31714. var salt = cipherParams.salt;
  31715. // Format
  31716. if (salt) {
  31717. wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);
  31718. } else {
  31719. wordArray = ciphertext;
  31720. }
  31721. return wordArray.toString(Base64);
  31722. },
  31723. /**
  31724. * Converts an OpenSSL-compatible string to a cipher params object.
  31725. *
  31726. * @param {string} openSSLStr The OpenSSL-compatible string.
  31727. *
  31728. * @return {CipherParams} The cipher params object.
  31729. *
  31730. * @static
  31731. *
  31732. * @example
  31733. *
  31734. * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
  31735. */
  31736. parse: function parse(openSSLStr) {
  31737. var salt;
  31738. // Parse base64
  31739. var ciphertext = Base64.parse(openSSLStr);
  31740. // Shortcut
  31741. var ciphertextWords = ciphertext.words;
  31742. // Test for salt
  31743. if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {
  31744. // Extract salt
  31745. salt = WordArray.create(ciphertextWords.slice(2, 4));
  31746. // Remove salt from ciphertext
  31747. ciphertextWords.splice(0, 4);
  31748. ciphertext.sigBytes -= 16;
  31749. }
  31750. return CipherParams.create({ ciphertext: ciphertext, salt: salt });
  31751. } };
  31752. /**
  31753. * A cipher wrapper that returns ciphertext as a serializable cipher params object.
  31754. */
  31755. var SerializableCipher = C_lib.SerializableCipher = Base.extend({
  31756. /**
  31757. * Configuration options.
  31758. *
  31759. * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
  31760. */
  31761. cfg: Base.extend({
  31762. format: OpenSSLFormatter }),
  31763. /**
  31764. * Encrypts a message.
  31765. *
  31766. * @param {Cipher} cipher The cipher algorithm to use.
  31767. * @param {WordArray|string} message The message to encrypt.
  31768. * @param {WordArray} key The key.
  31769. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  31770. *
  31771. * @return {CipherParams} A cipher params object.
  31772. *
  31773. * @static
  31774. *
  31775. * @example
  31776. *
  31777. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
  31778. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
  31779. * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  31780. */
  31781. encrypt: function encrypt(cipher, message, key, cfg) {
  31782. // Apply config defaults
  31783. cfg = this.cfg.extend(cfg);
  31784. // Encrypt
  31785. var encryptor = cipher.createEncryptor(key, cfg);
  31786. var ciphertext = encryptor.finalize(message);
  31787. // Shortcut
  31788. var cipherCfg = encryptor.cfg;
  31789. // Create and return serializable cipher params
  31790. return CipherParams.create({
  31791. ciphertext: ciphertext,
  31792. key: key,
  31793. iv: cipherCfg.iv,
  31794. algorithm: cipher,
  31795. mode: cipherCfg.mode,
  31796. padding: cipherCfg.padding,
  31797. blockSize: cipher.blockSize,
  31798. formatter: cfg.format });
  31799. },
  31800. /**
  31801. * Decrypts serialized ciphertext.
  31802. *
  31803. * @param {Cipher} cipher The cipher algorithm to use.
  31804. * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
  31805. * @param {WordArray} key The key.
  31806. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  31807. *
  31808. * @return {WordArray} The plaintext.
  31809. *
  31810. * @static
  31811. *
  31812. * @example
  31813. *
  31814. * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  31815. * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
  31816. */
  31817. decrypt: function decrypt(cipher, ciphertext, key, cfg) {
  31818. // Apply config defaults
  31819. cfg = this.cfg.extend(cfg);
  31820. // Convert string to CipherParams
  31821. ciphertext = this._parse(ciphertext, cfg.format);
  31822. // Decrypt
  31823. var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
  31824. return plaintext;
  31825. },
  31826. /**
  31827. * Converts serialized ciphertext to CipherParams,
  31828. * else assumed CipherParams already and returns ciphertext unchanged.
  31829. *
  31830. * @param {CipherParams|string} ciphertext The ciphertext.
  31831. * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
  31832. *
  31833. * @return {CipherParams} The unserialized ciphertext.
  31834. *
  31835. * @static
  31836. *
  31837. * @example
  31838. *
  31839. * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
  31840. */
  31841. _parse: function _parse(ciphertext, format) {
  31842. if (typeof ciphertext == 'string') {
  31843. return format.parse(ciphertext, this);
  31844. } else {
  31845. return ciphertext;
  31846. }
  31847. } });
  31848. /**
  31849. * Key derivation function namespace.
  31850. */
  31851. var C_kdf = C.kdf = {};
  31852. /**
  31853. * OpenSSL key derivation function.
  31854. */
  31855. var OpenSSLKdf = C_kdf.OpenSSL = {
  31856. /**
  31857. * Derives a key and IV from a password.
  31858. *
  31859. * @param {string} password The password to derive from.
  31860. * @param {number} keySize The size in words of the key to generate.
  31861. * @param {number} ivSize The size in words of the IV to generate.
  31862. * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
  31863. *
  31864. * @return {CipherParams} A cipher params object with the key, IV, and salt.
  31865. *
  31866. * @static
  31867. *
  31868. * @example
  31869. *
  31870. * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
  31871. * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
  31872. */
  31873. execute: function execute(password, keySize, ivSize, salt) {
  31874. // Generate random salt
  31875. if (!salt) {
  31876. salt = WordArray.random(64 / 8);
  31877. }
  31878. // Derive key and IV
  31879. var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
  31880. // Separate key and IV
  31881. var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
  31882. key.sigBytes = keySize * 4;
  31883. // Return params
  31884. return CipherParams.create({ key: key, iv: iv, salt: salt });
  31885. } };
  31886. /**
  31887. * A serializable cipher wrapper that derives the key from a password,
  31888. * and returns ciphertext as a serializable cipher params object.
  31889. */
  31890. var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
  31891. /**
  31892. * Configuration options.
  31893. *
  31894. * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
  31895. */
  31896. cfg: SerializableCipher.cfg.extend({
  31897. kdf: OpenSSLKdf }),
  31898. /**
  31899. * Encrypts a message using a password.
  31900. *
  31901. * @param {Cipher} cipher The cipher algorithm to use.
  31902. * @param {WordArray|string} message The message to encrypt.
  31903. * @param {string} password The password.
  31904. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  31905. *
  31906. * @return {CipherParams} A cipher params object.
  31907. *
  31908. * @static
  31909. *
  31910. * @example
  31911. *
  31912. * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
  31913. * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
  31914. */
  31915. encrypt: function encrypt(cipher, message, password, cfg) {
  31916. // Apply config defaults
  31917. cfg = this.cfg.extend(cfg);
  31918. // Derive key and other params
  31919. var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
  31920. // Add IV to config
  31921. cfg.iv = derivedParams.iv;
  31922. // Encrypt
  31923. var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
  31924. // Mix in derived params
  31925. ciphertext.mixIn(derivedParams);
  31926. return ciphertext;
  31927. },
  31928. /**
  31929. * Decrypts serialized ciphertext using a password.
  31930. *
  31931. * @param {Cipher} cipher The cipher algorithm to use.
  31932. * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
  31933. * @param {string} password The password.
  31934. * @param {Object} cfg (Optional) The configuration options to use for this operation.
  31935. *
  31936. * @return {WordArray} The plaintext.
  31937. *
  31938. * @static
  31939. *
  31940. * @example
  31941. *
  31942. * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
  31943. * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
  31944. */
  31945. decrypt: function decrypt(cipher, ciphertext, password, cfg) {
  31946. // Apply config defaults
  31947. cfg = this.cfg.extend(cfg);
  31948. // Convert string to CipherParams
  31949. ciphertext = this._parse(ciphertext, cfg.format);
  31950. // Derive key and other params
  31951. var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
  31952. // Add IV to config
  31953. cfg.iv = derivedParams.iv;
  31954. // Decrypt
  31955. var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
  31956. return plaintext;
  31957. } });
  31958. }();
  31959. });
  31960. /***/ }),
  31961. /* 230 */
  31962. /*!*****************************************************************************!*\
  31963. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/mode-cfb.js ***!
  31964. \*****************************************************************************/
  31965. /*! no static exports found */
  31966. /***/ (function(module, exports, __webpack_require__) {
  31967. ;(function (root, factory, undef) {
  31968. if (true) {
  31969. // CommonJS
  31970. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  31971. } else
  31972. {}
  31973. })(this, function (CryptoJS) {
  31974. /**
  31975. * Cipher Feedback block mode.
  31976. */
  31977. CryptoJS.mode.CFB = function () {
  31978. var CFB = CryptoJS.lib.BlockCipherMode.extend();
  31979. CFB.Encryptor = CFB.extend({
  31980. processBlock: function processBlock(words, offset) {
  31981. // Shortcuts
  31982. var cipher = this._cipher;
  31983. var blockSize = cipher.blockSize;
  31984. generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
  31985. // Remember this block to use with next block
  31986. this._prevBlock = words.slice(offset, offset + blockSize);
  31987. } });
  31988. CFB.Decryptor = CFB.extend({
  31989. processBlock: function processBlock(words, offset) {
  31990. // Shortcuts
  31991. var cipher = this._cipher;
  31992. var blockSize = cipher.blockSize;
  31993. // Remember this block to use with next block
  31994. var thisBlock = words.slice(offset, offset + blockSize);
  31995. generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
  31996. // This block becomes the previous block
  31997. this._prevBlock = thisBlock;
  31998. } });
  31999. function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {
  32000. var keystream;
  32001. // Shortcut
  32002. var iv = this._iv;
  32003. // Generate keystream
  32004. if (iv) {
  32005. keystream = iv.slice(0);
  32006. // Remove IV for subsequent blocks
  32007. this._iv = undefined;
  32008. } else {
  32009. keystream = this._prevBlock;
  32010. }
  32011. cipher.encryptBlock(keystream, 0);
  32012. // Encrypt
  32013. for (var i = 0; i < blockSize; i++) {
  32014. words[offset + i] ^= keystream[i];
  32015. }
  32016. }
  32017. return CFB;
  32018. }();
  32019. return CryptoJS.mode.CFB;
  32020. });
  32021. /***/ }),
  32022. /* 231 */
  32023. /*!*****************************************************************************!*\
  32024. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/mode-ctr.js ***!
  32025. \*****************************************************************************/
  32026. /*! no static exports found */
  32027. /***/ (function(module, exports, __webpack_require__) {
  32028. ;(function (root, factory, undef) {
  32029. if (true) {
  32030. // CommonJS
  32031. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32032. } else
  32033. {}
  32034. })(this, function (CryptoJS) {
  32035. /**
  32036. * Counter block mode.
  32037. */
  32038. CryptoJS.mode.CTR = function () {
  32039. var CTR = CryptoJS.lib.BlockCipherMode.extend();
  32040. var Encryptor = CTR.Encryptor = CTR.extend({
  32041. processBlock: function processBlock(words, offset) {
  32042. // Shortcuts
  32043. var cipher = this._cipher;
  32044. var blockSize = cipher.blockSize;
  32045. var iv = this._iv;
  32046. var counter = this._counter;
  32047. // Generate keystream
  32048. if (iv) {
  32049. counter = this._counter = iv.slice(0);
  32050. // Remove IV for subsequent blocks
  32051. this._iv = undefined;
  32052. }
  32053. var keystream = counter.slice(0);
  32054. cipher.encryptBlock(keystream, 0);
  32055. // Increment counter
  32056. counter[blockSize - 1] = counter[blockSize - 1] + 1 | 0;
  32057. // Encrypt
  32058. for (var i = 0; i < blockSize; i++) {
  32059. words[offset + i] ^= keystream[i];
  32060. }
  32061. } });
  32062. CTR.Decryptor = Encryptor;
  32063. return CTR;
  32064. }();
  32065. return CryptoJS.mode.CTR;
  32066. });
  32067. /***/ }),
  32068. /* 232 */
  32069. /*!*************************************************************************************!*\
  32070. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/mode-ctr-gladman.js ***!
  32071. \*************************************************************************************/
  32072. /*! no static exports found */
  32073. /***/ (function(module, exports, __webpack_require__) {
  32074. ;(function (root, factory, undef) {
  32075. if (true) {
  32076. // CommonJS
  32077. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32078. } else
  32079. {}
  32080. })(this, function (CryptoJS) {
  32081. /** @preserve
  32082. * Counter block mode compatible with Dr Brian Gladman fileenc.c
  32083. * derived from CryptoJS.mode.CTR
  32084. * Jan Hruby jhruby.web@gmail.com
  32085. */
  32086. CryptoJS.mode.CTRGladman = function () {
  32087. var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();
  32088. function incWord(word)
  32089. {
  32090. if ((word >> 24 & 0xff) === 0xff) {//overflow
  32091. var b1 = word >> 16 & 0xff;
  32092. var b2 = word >> 8 & 0xff;
  32093. var b3 = word & 0xff;
  32094. if (b1 === 0xff) // overflow b1
  32095. {
  32096. b1 = 0;
  32097. if (b2 === 0xff)
  32098. {
  32099. b2 = 0;
  32100. if (b3 === 0xff)
  32101. {
  32102. b3 = 0;
  32103. } else
  32104. {
  32105. ++b3;
  32106. }
  32107. } else
  32108. {
  32109. ++b2;
  32110. }
  32111. } else
  32112. {
  32113. ++b1;
  32114. }
  32115. word = 0;
  32116. word += b1 << 16;
  32117. word += b2 << 8;
  32118. word += b3;
  32119. } else
  32120. {
  32121. word += 0x01 << 24;
  32122. }
  32123. return word;
  32124. }
  32125. function incCounter(counter)
  32126. {
  32127. if ((counter[0] = incWord(counter[0])) === 0)
  32128. {
  32129. // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
  32130. counter[1] = incWord(counter[1]);
  32131. }
  32132. return counter;
  32133. }
  32134. var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({
  32135. processBlock: function processBlock(words, offset) {
  32136. // Shortcuts
  32137. var cipher = this._cipher;
  32138. var blockSize = cipher.blockSize;
  32139. var iv = this._iv;
  32140. var counter = this._counter;
  32141. // Generate keystream
  32142. if (iv) {
  32143. counter = this._counter = iv.slice(0);
  32144. // Remove IV for subsequent blocks
  32145. this._iv = undefined;
  32146. }
  32147. incCounter(counter);
  32148. var keystream = counter.slice(0);
  32149. cipher.encryptBlock(keystream, 0);
  32150. // Encrypt
  32151. for (var i = 0; i < blockSize; i++) {
  32152. words[offset + i] ^= keystream[i];
  32153. }
  32154. } });
  32155. CTRGladman.Decryptor = Encryptor;
  32156. return CTRGladman;
  32157. }();
  32158. return CryptoJS.mode.CTRGladman;
  32159. });
  32160. /***/ }),
  32161. /* 233 */
  32162. /*!*****************************************************************************!*\
  32163. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/mode-ofb.js ***!
  32164. \*****************************************************************************/
  32165. /*! no static exports found */
  32166. /***/ (function(module, exports, __webpack_require__) {
  32167. ;(function (root, factory, undef) {
  32168. if (true) {
  32169. // CommonJS
  32170. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32171. } else
  32172. {}
  32173. })(this, function (CryptoJS) {
  32174. /**
  32175. * Output Feedback block mode.
  32176. */
  32177. CryptoJS.mode.OFB = function () {
  32178. var OFB = CryptoJS.lib.BlockCipherMode.extend();
  32179. var Encryptor = OFB.Encryptor = OFB.extend({
  32180. processBlock: function processBlock(words, offset) {
  32181. // Shortcuts
  32182. var cipher = this._cipher;
  32183. var blockSize = cipher.blockSize;
  32184. var iv = this._iv;
  32185. var keystream = this._keystream;
  32186. // Generate keystream
  32187. if (iv) {
  32188. keystream = this._keystream = iv.slice(0);
  32189. // Remove IV for subsequent blocks
  32190. this._iv = undefined;
  32191. }
  32192. cipher.encryptBlock(keystream, 0);
  32193. // Encrypt
  32194. for (var i = 0; i < blockSize; i++) {
  32195. words[offset + i] ^= keystream[i];
  32196. }
  32197. } });
  32198. OFB.Decryptor = Encryptor;
  32199. return OFB;
  32200. }();
  32201. return CryptoJS.mode.OFB;
  32202. });
  32203. /***/ }),
  32204. /* 234 */
  32205. /*!*****************************************************************************!*\
  32206. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/mode-ecb.js ***!
  32207. \*****************************************************************************/
  32208. /*! no static exports found */
  32209. /***/ (function(module, exports, __webpack_require__) {
  32210. ;(function (root, factory, undef) {
  32211. if (true) {
  32212. // CommonJS
  32213. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32214. } else
  32215. {}
  32216. })(this, function (CryptoJS) {
  32217. /**
  32218. * Electronic Codebook block mode.
  32219. */
  32220. CryptoJS.mode.ECB = function () {
  32221. var ECB = CryptoJS.lib.BlockCipherMode.extend();
  32222. ECB.Encryptor = ECB.extend({
  32223. processBlock: function processBlock(words, offset) {
  32224. this._cipher.encryptBlock(words, offset);
  32225. } });
  32226. ECB.Decryptor = ECB.extend({
  32227. processBlock: function processBlock(words, offset) {
  32228. this._cipher.decryptBlock(words, offset);
  32229. } });
  32230. return ECB;
  32231. }();
  32232. return CryptoJS.mode.ECB;
  32233. });
  32234. /***/ }),
  32235. /* 235 */
  32236. /*!*********************************************************************************!*\
  32237. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/pad-ansix923.js ***!
  32238. \*********************************************************************************/
  32239. /*! no static exports found */
  32240. /***/ (function(module, exports, __webpack_require__) {
  32241. ;(function (root, factory, undef) {
  32242. if (true) {
  32243. // CommonJS
  32244. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32245. } else
  32246. {}
  32247. })(this, function (CryptoJS) {
  32248. /**
  32249. * ANSI X.923 padding strategy.
  32250. */
  32251. CryptoJS.pad.AnsiX923 = {
  32252. pad: function pad(data, blockSize) {
  32253. // Shortcuts
  32254. var dataSigBytes = data.sigBytes;
  32255. var blockSizeBytes = blockSize * 4;
  32256. // Count padding bytes
  32257. var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;
  32258. // Compute last byte position
  32259. var lastBytePos = dataSigBytes + nPaddingBytes - 1;
  32260. // Pad
  32261. data.clamp();
  32262. data.words[lastBytePos >>> 2] |= nPaddingBytes << 24 - lastBytePos % 4 * 8;
  32263. data.sigBytes += nPaddingBytes;
  32264. },
  32265. unpad: function unpad(data) {
  32266. // Get number of padding bytes from last byte
  32267. var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff;
  32268. // Remove padding
  32269. data.sigBytes -= nPaddingBytes;
  32270. } };
  32271. return CryptoJS.pad.Ansix923;
  32272. });
  32273. /***/ }),
  32274. /* 236 */
  32275. /*!*********************************************************************************!*\
  32276. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/pad-iso10126.js ***!
  32277. \*********************************************************************************/
  32278. /*! no static exports found */
  32279. /***/ (function(module, exports, __webpack_require__) {
  32280. ;(function (root, factory, undef) {
  32281. if (true) {
  32282. // CommonJS
  32283. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32284. } else
  32285. {}
  32286. })(this, function (CryptoJS) {
  32287. /**
  32288. * ISO 10126 padding strategy.
  32289. */
  32290. CryptoJS.pad.Iso10126 = {
  32291. pad: function pad(data, blockSize) {
  32292. // Shortcut
  32293. var blockSizeBytes = blockSize * 4;
  32294. // Count padding bytes
  32295. var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
  32296. // Pad
  32297. data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).
  32298. concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
  32299. },
  32300. unpad: function unpad(data) {
  32301. // Get number of padding bytes from last byte
  32302. var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff;
  32303. // Remove padding
  32304. data.sigBytes -= nPaddingBytes;
  32305. } };
  32306. return CryptoJS.pad.Iso10126;
  32307. });
  32308. /***/ }),
  32309. /* 237 */
  32310. /*!*********************************************************************************!*\
  32311. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/pad-iso97971.js ***!
  32312. \*********************************************************************************/
  32313. /*! no static exports found */
  32314. /***/ (function(module, exports, __webpack_require__) {
  32315. ;(function (root, factory, undef) {
  32316. if (true) {
  32317. // CommonJS
  32318. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32319. } else
  32320. {}
  32321. })(this, function (CryptoJS) {
  32322. /**
  32323. * ISO/IEC 9797-1 Padding Method 2.
  32324. */
  32325. CryptoJS.pad.Iso97971 = {
  32326. pad: function pad(data, blockSize) {
  32327. // Add 0x80 byte
  32328. data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));
  32329. // Zero pad the rest
  32330. CryptoJS.pad.ZeroPadding.pad(data, blockSize);
  32331. },
  32332. unpad: function unpad(data) {
  32333. // Remove zero padding
  32334. CryptoJS.pad.ZeroPadding.unpad(data);
  32335. // Remove one more byte -- the 0x80 byte
  32336. data.sigBytes--;
  32337. } };
  32338. return CryptoJS.pad.Iso97971;
  32339. });
  32340. /***/ }),
  32341. /* 238 */
  32342. /*!************************************************************************************!*\
  32343. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/pad-zeropadding.js ***!
  32344. \************************************************************************************/
  32345. /*! no static exports found */
  32346. /***/ (function(module, exports, __webpack_require__) {
  32347. ;(function (root, factory, undef) {
  32348. if (true) {
  32349. // CommonJS
  32350. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32351. } else
  32352. {}
  32353. })(this, function (CryptoJS) {
  32354. /**
  32355. * Zero padding strategy.
  32356. */
  32357. CryptoJS.pad.ZeroPadding = {
  32358. pad: function pad(data, blockSize) {
  32359. // Shortcut
  32360. var blockSizeBytes = blockSize * 4;
  32361. // Pad
  32362. data.clamp();
  32363. data.sigBytes += blockSizeBytes - (data.sigBytes % blockSizeBytes || blockSizeBytes);
  32364. },
  32365. unpad: function unpad(data) {
  32366. // Shortcut
  32367. var dataWords = data.words;
  32368. // Unpad
  32369. var i = data.sigBytes - 1;
  32370. for (var i = data.sigBytes - 1; i >= 0; i--) {
  32371. if (dataWords[i >>> 2] >>> 24 - i % 4 * 8 & 0xff) {
  32372. data.sigBytes = i + 1;
  32373. break;
  32374. }
  32375. }
  32376. } };
  32377. return CryptoJS.pad.ZeroPadding;
  32378. });
  32379. /***/ }),
  32380. /* 239 */
  32381. /*!**********************************************************************************!*\
  32382. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/pad-nopadding.js ***!
  32383. \**********************************************************************************/
  32384. /*! no static exports found */
  32385. /***/ (function(module, exports, __webpack_require__) {
  32386. ;(function (root, factory, undef) {
  32387. if (true) {
  32388. // CommonJS
  32389. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32390. } else
  32391. {}
  32392. })(this, function (CryptoJS) {
  32393. /**
  32394. * A noop padding strategy.
  32395. */
  32396. CryptoJS.pad.NoPadding = {
  32397. pad: function pad() {
  32398. },
  32399. unpad: function unpad() {
  32400. } };
  32401. return CryptoJS.pad.NoPadding;
  32402. });
  32403. /***/ }),
  32404. /* 240 */
  32405. /*!*******************************************************************************!*\
  32406. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/format-hex.js ***!
  32407. \*******************************************************************************/
  32408. /*! no static exports found */
  32409. /***/ (function(module, exports, __webpack_require__) {
  32410. ;(function (root, factory, undef) {
  32411. if (true) {
  32412. // CommonJS
  32413. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./cipher-core */ 229));
  32414. } else
  32415. {}
  32416. })(this, function (CryptoJS) {
  32417. (function (undefined) {
  32418. // Shortcuts
  32419. var C = CryptoJS;
  32420. var C_lib = C.lib;
  32421. var CipherParams = C_lib.CipherParams;
  32422. var C_enc = C.enc;
  32423. var Hex = C_enc.Hex;
  32424. var C_format = C.format;
  32425. var HexFormatter = C_format.Hex = {
  32426. /**
  32427. * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
  32428. *
  32429. * @param {CipherParams} cipherParams The cipher params object.
  32430. *
  32431. * @return {string} The hexadecimally encoded string.
  32432. *
  32433. * @static
  32434. *
  32435. * @example
  32436. *
  32437. * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
  32438. */
  32439. stringify: function stringify(cipherParams) {
  32440. return cipherParams.ciphertext.toString(Hex);
  32441. },
  32442. /**
  32443. * Converts a hexadecimally encoded ciphertext string to a cipher params object.
  32444. *
  32445. * @param {string} input The hexadecimally encoded string.
  32446. *
  32447. * @return {CipherParams} The cipher params object.
  32448. *
  32449. * @static
  32450. *
  32451. * @example
  32452. *
  32453. * var cipherParams = CryptoJS.format.Hex.parse(hexString);
  32454. */
  32455. parse: function parse(input) {
  32456. var ciphertext = Hex.parse(input);
  32457. return CipherParams.create({ ciphertext: ciphertext });
  32458. } };
  32459. })();
  32460. return CryptoJS.format.Hex;
  32461. });
  32462. /***/ }),
  32463. /* 241 */
  32464. /*!************************************************************************!*\
  32465. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/aes.js ***!
  32466. \************************************************************************/
  32467. /*! no static exports found */
  32468. /***/ (function(module, exports, __webpack_require__) {
  32469. ;(function (root, factory, undef) {
  32470. if (true) {
  32471. // CommonJS
  32472. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./enc-base64 */ 216), __webpack_require__(/*! ./md5 */ 218), __webpack_require__(/*! ./evpkdf */ 228), __webpack_require__(/*! ./cipher-core */ 229));
  32473. } else
  32474. {}
  32475. })(this, function (CryptoJS) {
  32476. (function () {
  32477. // Shortcuts
  32478. var C = CryptoJS;
  32479. var C_lib = C.lib;
  32480. var BlockCipher = C_lib.BlockCipher;
  32481. var C_algo = C.algo;
  32482. // Lookup tables
  32483. var SBOX = [];
  32484. var INV_SBOX = [];
  32485. var SUB_MIX_0 = [];
  32486. var SUB_MIX_1 = [];
  32487. var SUB_MIX_2 = [];
  32488. var SUB_MIX_3 = [];
  32489. var INV_SUB_MIX_0 = [];
  32490. var INV_SUB_MIX_1 = [];
  32491. var INV_SUB_MIX_2 = [];
  32492. var INV_SUB_MIX_3 = [];
  32493. // Compute lookup tables
  32494. (function () {
  32495. // Compute double table
  32496. var d = [];
  32497. for (var i = 0; i < 256; i++) {
  32498. if (i < 128) {
  32499. d[i] = i << 1;
  32500. } else {
  32501. d[i] = i << 1 ^ 0x11b;
  32502. }
  32503. }
  32504. // Walk GF(2^8)
  32505. var x = 0;
  32506. var xi = 0;
  32507. for (var i = 0; i < 256; i++) {
  32508. // Compute sbox
  32509. var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4;
  32510. sx = sx >>> 8 ^ sx & 0xff ^ 0x63;
  32511. SBOX[x] = sx;
  32512. INV_SBOX[sx] = x;
  32513. // Compute multiplication
  32514. var x2 = d[x];
  32515. var x4 = d[x2];
  32516. var x8 = d[x4];
  32517. // Compute sub bytes, mix columns tables
  32518. var t = d[sx] * 0x101 ^ sx * 0x1010100;
  32519. SUB_MIX_0[x] = t << 24 | t >>> 8;
  32520. SUB_MIX_1[x] = t << 16 | t >>> 16;
  32521. SUB_MIX_2[x] = t << 8 | t >>> 24;
  32522. SUB_MIX_3[x] = t;
  32523. // Compute inv sub bytes, inv mix columns tables
  32524. var t = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100;
  32525. INV_SUB_MIX_0[sx] = t << 24 | t >>> 8;
  32526. INV_SUB_MIX_1[sx] = t << 16 | t >>> 16;
  32527. INV_SUB_MIX_2[sx] = t << 8 | t >>> 24;
  32528. INV_SUB_MIX_3[sx] = t;
  32529. // Compute next counter
  32530. if (!x) {
  32531. x = xi = 1;
  32532. } else {
  32533. x = x2 ^ d[d[d[x8 ^ x2]]];
  32534. xi ^= d[d[xi]];
  32535. }
  32536. }
  32537. })();
  32538. // Precomputed Rcon lookup
  32539. var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
  32540. /**
  32541. * AES block cipher algorithm.
  32542. */
  32543. var AES = C_algo.AES = BlockCipher.extend({
  32544. _doReset: function _doReset() {
  32545. var t;
  32546. // Skip reset of nRounds has been set before and key did not change
  32547. if (this._nRounds && this._keyPriorReset === this._key) {
  32548. return;
  32549. }
  32550. // Shortcuts
  32551. var key = this._keyPriorReset = this._key;
  32552. var keyWords = key.words;
  32553. var keySize = key.sigBytes / 4;
  32554. // Compute number of rounds
  32555. var nRounds = this._nRounds = keySize + 6;
  32556. // Compute number of key schedule rows
  32557. var ksRows = (nRounds + 1) * 4;
  32558. // Compute key schedule
  32559. var keySchedule = this._keySchedule = [];
  32560. for (var ksRow = 0; ksRow < ksRows; ksRow++) {
  32561. if (ksRow < keySize) {
  32562. keySchedule[ksRow] = keyWords[ksRow];
  32563. } else {
  32564. t = keySchedule[ksRow - 1];
  32565. if (!(ksRow % keySize)) {
  32566. // Rot word
  32567. t = t << 8 | t >>> 24;
  32568. // Sub word
  32569. t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff];
  32570. // Mix Rcon
  32571. t ^= RCON[ksRow / keySize | 0] << 24;
  32572. } else if (keySize > 6 && ksRow % keySize == 4) {
  32573. // Sub word
  32574. t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff];
  32575. }
  32576. keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
  32577. }
  32578. }
  32579. // Compute inv key schedule
  32580. var invKeySchedule = this._invKeySchedule = [];
  32581. for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {
  32582. var ksRow = ksRows - invKsRow;
  32583. if (invKsRow % 4) {
  32584. var t = keySchedule[ksRow];
  32585. } else {
  32586. var t = keySchedule[ksRow - 4];
  32587. }
  32588. if (invKsRow < 4 || ksRow <= 4) {
  32589. invKeySchedule[invKsRow] = t;
  32590. } else {
  32591. invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[t >>> 16 & 0xff]] ^
  32592. INV_SUB_MIX_2[SBOX[t >>> 8 & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
  32593. }
  32594. }
  32595. },
  32596. encryptBlock: function encryptBlock(M, offset) {
  32597. this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
  32598. },
  32599. decryptBlock: function decryptBlock(M, offset) {
  32600. // Swap 2nd and 4th rows
  32601. var t = M[offset + 1];
  32602. M[offset + 1] = M[offset + 3];
  32603. M[offset + 3] = t;
  32604. this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);
  32605. // Inv swap 2nd and 4th rows
  32606. var t = M[offset + 1];
  32607. M[offset + 1] = M[offset + 3];
  32608. M[offset + 3] = t;
  32609. },
  32610. _doCryptBlock: function _doCryptBlock(M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
  32611. // Shortcut
  32612. var nRounds = this._nRounds;
  32613. // Get input, add round key
  32614. var s0 = M[offset] ^ keySchedule[0];
  32615. var s1 = M[offset + 1] ^ keySchedule[1];
  32616. var s2 = M[offset + 2] ^ keySchedule[2];
  32617. var s3 = M[offset + 3] ^ keySchedule[3];
  32618. // Key schedule row counter
  32619. var ksRow = 4;
  32620. // Rounds
  32621. for (var round = 1; round < nRounds; round++) {
  32622. // Shift rows, sub bytes, mix columns, add round key
  32623. var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[s1 >>> 16 & 0xff] ^ SUB_MIX_2[s2 >>> 8 & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];
  32624. var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[s2 >>> 16 & 0xff] ^ SUB_MIX_2[s3 >>> 8 & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];
  32625. var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[s3 >>> 16 & 0xff] ^ SUB_MIX_2[s0 >>> 8 & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];
  32626. var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[s0 >>> 16 & 0xff] ^ SUB_MIX_2[s1 >>> 8 & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];
  32627. // Update state
  32628. s0 = t0;
  32629. s1 = t1;
  32630. s2 = t2;
  32631. s3 = t3;
  32632. }
  32633. // Shift rows, sub bytes, add round key
  32634. var t0 = (SBOX[s0 >>> 24] << 24 | SBOX[s1 >>> 16 & 0xff] << 16 | SBOX[s2 >>> 8 & 0xff] << 8 | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];
  32635. var t1 = (SBOX[s1 >>> 24] << 24 | SBOX[s2 >>> 16 & 0xff] << 16 | SBOX[s3 >>> 8 & 0xff] << 8 | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];
  32636. var t2 = (SBOX[s2 >>> 24] << 24 | SBOX[s3 >>> 16 & 0xff] << 16 | SBOX[s0 >>> 8 & 0xff] << 8 | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];
  32637. var t3 = (SBOX[s3 >>> 24] << 24 | SBOX[s0 >>> 16 & 0xff] << 16 | SBOX[s1 >>> 8 & 0xff] << 8 | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];
  32638. // Set output
  32639. M[offset] = t0;
  32640. M[offset + 1] = t1;
  32641. M[offset + 2] = t2;
  32642. M[offset + 3] = t3;
  32643. },
  32644. keySize: 256 / 32 });
  32645. /**
  32646. * Shortcut functions to the cipher's object interface.
  32647. *
  32648. * @example
  32649. *
  32650. * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
  32651. * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);
  32652. */
  32653. C.AES = BlockCipher._createHelper(AES);
  32654. })();
  32655. return CryptoJS.AES;
  32656. });
  32657. /***/ }),
  32658. /* 242 */
  32659. /*!******************************************************************************!*\
  32660. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/tripledes.js ***!
  32661. \******************************************************************************/
  32662. /*! no static exports found */
  32663. /***/ (function(module, exports, __webpack_require__) {
  32664. ;(function (root, factory, undef) {
  32665. if (true) {
  32666. // CommonJS
  32667. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./enc-base64 */ 216), __webpack_require__(/*! ./md5 */ 218), __webpack_require__(/*! ./evpkdf */ 228), __webpack_require__(/*! ./cipher-core */ 229));
  32668. } else
  32669. {}
  32670. })(this, function (CryptoJS) {
  32671. (function () {
  32672. // Shortcuts
  32673. var C = CryptoJS;
  32674. var C_lib = C.lib;
  32675. var WordArray = C_lib.WordArray;
  32676. var BlockCipher = C_lib.BlockCipher;
  32677. var C_algo = C.algo;
  32678. // Permuted Choice 1 constants
  32679. var PC1 = [
  32680. 57, 49, 41, 33, 25, 17, 9, 1,
  32681. 58, 50, 42, 34, 26, 18, 10, 2,
  32682. 59, 51, 43, 35, 27, 19, 11, 3,
  32683. 60, 52, 44, 36, 63, 55, 47, 39,
  32684. 31, 23, 15, 7, 62, 54, 46, 38,
  32685. 30, 22, 14, 6, 61, 53, 45, 37,
  32686. 29, 21, 13, 5, 28, 20, 12, 4];
  32687. // Permuted Choice 2 constants
  32688. var PC2 = [
  32689. 14, 17, 11, 24, 1, 5,
  32690. 3, 28, 15, 6, 21, 10,
  32691. 23, 19, 12, 4, 26, 8,
  32692. 16, 7, 27, 20, 13, 2,
  32693. 41, 52, 31, 37, 47, 55,
  32694. 30, 40, 51, 45, 33, 48,
  32695. 44, 49, 39, 56, 34, 53,
  32696. 46, 42, 50, 36, 29, 32];
  32697. // Cumulative bit shift constants
  32698. var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
  32699. // SBOXes and round permutation constants
  32700. var SBOX_P = [
  32701. {
  32702. 0x0: 0x808200,
  32703. 0x10000000: 0x8000,
  32704. 0x20000000: 0x808002,
  32705. 0x30000000: 0x2,
  32706. 0x40000000: 0x200,
  32707. 0x50000000: 0x808202,
  32708. 0x60000000: 0x800202,
  32709. 0x70000000: 0x800000,
  32710. 0x80000000: 0x202,
  32711. 0x90000000: 0x800200,
  32712. 0xa0000000: 0x8200,
  32713. 0xb0000000: 0x808000,
  32714. 0xc0000000: 0x8002,
  32715. 0xd0000000: 0x800002,
  32716. 0xe0000000: 0x0,
  32717. 0xf0000000: 0x8202,
  32718. 0x8000000: 0x0,
  32719. 0x18000000: 0x808202,
  32720. 0x28000000: 0x8202,
  32721. 0x38000000: 0x8000,
  32722. 0x48000000: 0x808200,
  32723. 0x58000000: 0x200,
  32724. 0x68000000: 0x808002,
  32725. 0x78000000: 0x2,
  32726. 0x88000000: 0x800200,
  32727. 0x98000000: 0x8200,
  32728. 0xa8000000: 0x808000,
  32729. 0xb8000000: 0x800202,
  32730. 0xc8000000: 0x800002,
  32731. 0xd8000000: 0x8002,
  32732. 0xe8000000: 0x202,
  32733. 0xf8000000: 0x800000,
  32734. 0x1: 0x8000,
  32735. 0x10000001: 0x2,
  32736. 0x20000001: 0x808200,
  32737. 0x30000001: 0x800000,
  32738. 0x40000001: 0x808002,
  32739. 0x50000001: 0x8200,
  32740. 0x60000001: 0x200,
  32741. 0x70000001: 0x800202,
  32742. 0x80000001: 0x808202,
  32743. 0x90000001: 0x808000,
  32744. 0xa0000001: 0x800002,
  32745. 0xb0000001: 0x8202,
  32746. 0xc0000001: 0x202,
  32747. 0xd0000001: 0x800200,
  32748. 0xe0000001: 0x8002,
  32749. 0xf0000001: 0x0,
  32750. 0x8000001: 0x808202,
  32751. 0x18000001: 0x808000,
  32752. 0x28000001: 0x800000,
  32753. 0x38000001: 0x200,
  32754. 0x48000001: 0x8000,
  32755. 0x58000001: 0x800002,
  32756. 0x68000001: 0x2,
  32757. 0x78000001: 0x8202,
  32758. 0x88000001: 0x8002,
  32759. 0x98000001: 0x800202,
  32760. 0xa8000001: 0x202,
  32761. 0xb8000001: 0x808200,
  32762. 0xc8000001: 0x800200,
  32763. 0xd8000001: 0x0,
  32764. 0xe8000001: 0x8200,
  32765. 0xf8000001: 0x808002 },
  32766. {
  32767. 0x0: 0x40084010,
  32768. 0x1000000: 0x4000,
  32769. 0x2000000: 0x80000,
  32770. 0x3000000: 0x40080010,
  32771. 0x4000000: 0x40000010,
  32772. 0x5000000: 0x40084000,
  32773. 0x6000000: 0x40004000,
  32774. 0x7000000: 0x10,
  32775. 0x8000000: 0x84000,
  32776. 0x9000000: 0x40004010,
  32777. 0xa000000: 0x40000000,
  32778. 0xb000000: 0x84010,
  32779. 0xc000000: 0x80010,
  32780. 0xd000000: 0x0,
  32781. 0xe000000: 0x4010,
  32782. 0xf000000: 0x40080000,
  32783. 0x800000: 0x40004000,
  32784. 0x1800000: 0x84010,
  32785. 0x2800000: 0x10,
  32786. 0x3800000: 0x40004010,
  32787. 0x4800000: 0x40084010,
  32788. 0x5800000: 0x40000000,
  32789. 0x6800000: 0x80000,
  32790. 0x7800000: 0x40080010,
  32791. 0x8800000: 0x80010,
  32792. 0x9800000: 0x0,
  32793. 0xa800000: 0x4000,
  32794. 0xb800000: 0x40080000,
  32795. 0xc800000: 0x40000010,
  32796. 0xd800000: 0x84000,
  32797. 0xe800000: 0x40084000,
  32798. 0xf800000: 0x4010,
  32799. 0x10000000: 0x0,
  32800. 0x11000000: 0x40080010,
  32801. 0x12000000: 0x40004010,
  32802. 0x13000000: 0x40084000,
  32803. 0x14000000: 0x40080000,
  32804. 0x15000000: 0x10,
  32805. 0x16000000: 0x84010,
  32806. 0x17000000: 0x4000,
  32807. 0x18000000: 0x4010,
  32808. 0x19000000: 0x80000,
  32809. 0x1a000000: 0x80010,
  32810. 0x1b000000: 0x40000010,
  32811. 0x1c000000: 0x84000,
  32812. 0x1d000000: 0x40004000,
  32813. 0x1e000000: 0x40000000,
  32814. 0x1f000000: 0x40084010,
  32815. 0x10800000: 0x84010,
  32816. 0x11800000: 0x80000,
  32817. 0x12800000: 0x40080000,
  32818. 0x13800000: 0x4000,
  32819. 0x14800000: 0x40004000,
  32820. 0x15800000: 0x40084010,
  32821. 0x16800000: 0x10,
  32822. 0x17800000: 0x40000000,
  32823. 0x18800000: 0x40084000,
  32824. 0x19800000: 0x40000010,
  32825. 0x1a800000: 0x40004010,
  32826. 0x1b800000: 0x80010,
  32827. 0x1c800000: 0x0,
  32828. 0x1d800000: 0x4010,
  32829. 0x1e800000: 0x40080010,
  32830. 0x1f800000: 0x84000 },
  32831. {
  32832. 0x0: 0x104,
  32833. 0x100000: 0x0,
  32834. 0x200000: 0x4000100,
  32835. 0x300000: 0x10104,
  32836. 0x400000: 0x10004,
  32837. 0x500000: 0x4000004,
  32838. 0x600000: 0x4010104,
  32839. 0x700000: 0x4010000,
  32840. 0x800000: 0x4000000,
  32841. 0x900000: 0x4010100,
  32842. 0xa00000: 0x10100,
  32843. 0xb00000: 0x4010004,
  32844. 0xc00000: 0x4000104,
  32845. 0xd00000: 0x10000,
  32846. 0xe00000: 0x4,
  32847. 0xf00000: 0x100,
  32848. 0x80000: 0x4010100,
  32849. 0x180000: 0x4010004,
  32850. 0x280000: 0x0,
  32851. 0x380000: 0x4000100,
  32852. 0x480000: 0x4000004,
  32853. 0x580000: 0x10000,
  32854. 0x680000: 0x10004,
  32855. 0x780000: 0x104,
  32856. 0x880000: 0x4,
  32857. 0x980000: 0x100,
  32858. 0xa80000: 0x4010000,
  32859. 0xb80000: 0x10104,
  32860. 0xc80000: 0x10100,
  32861. 0xd80000: 0x4000104,
  32862. 0xe80000: 0x4010104,
  32863. 0xf80000: 0x4000000,
  32864. 0x1000000: 0x4010100,
  32865. 0x1100000: 0x10004,
  32866. 0x1200000: 0x10000,
  32867. 0x1300000: 0x4000100,
  32868. 0x1400000: 0x100,
  32869. 0x1500000: 0x4010104,
  32870. 0x1600000: 0x4000004,
  32871. 0x1700000: 0x0,
  32872. 0x1800000: 0x4000104,
  32873. 0x1900000: 0x4000000,
  32874. 0x1a00000: 0x4,
  32875. 0x1b00000: 0x10100,
  32876. 0x1c00000: 0x4010000,
  32877. 0x1d00000: 0x104,
  32878. 0x1e00000: 0x10104,
  32879. 0x1f00000: 0x4010004,
  32880. 0x1080000: 0x4000000,
  32881. 0x1180000: 0x104,
  32882. 0x1280000: 0x4010100,
  32883. 0x1380000: 0x0,
  32884. 0x1480000: 0x10004,
  32885. 0x1580000: 0x4000100,
  32886. 0x1680000: 0x100,
  32887. 0x1780000: 0x4010004,
  32888. 0x1880000: 0x10000,
  32889. 0x1980000: 0x4010104,
  32890. 0x1a80000: 0x10104,
  32891. 0x1b80000: 0x4000004,
  32892. 0x1c80000: 0x4000104,
  32893. 0x1d80000: 0x4010000,
  32894. 0x1e80000: 0x4,
  32895. 0x1f80000: 0x10100 },
  32896. {
  32897. 0x0: 0x80401000,
  32898. 0x10000: 0x80001040,
  32899. 0x20000: 0x401040,
  32900. 0x30000: 0x80400000,
  32901. 0x40000: 0x0,
  32902. 0x50000: 0x401000,
  32903. 0x60000: 0x80000040,
  32904. 0x70000: 0x400040,
  32905. 0x80000: 0x80000000,
  32906. 0x90000: 0x400000,
  32907. 0xa0000: 0x40,
  32908. 0xb0000: 0x80001000,
  32909. 0xc0000: 0x80400040,
  32910. 0xd0000: 0x1040,
  32911. 0xe0000: 0x1000,
  32912. 0xf0000: 0x80401040,
  32913. 0x8000: 0x80001040,
  32914. 0x18000: 0x40,
  32915. 0x28000: 0x80400040,
  32916. 0x38000: 0x80001000,
  32917. 0x48000: 0x401000,
  32918. 0x58000: 0x80401040,
  32919. 0x68000: 0x0,
  32920. 0x78000: 0x80400000,
  32921. 0x88000: 0x1000,
  32922. 0x98000: 0x80401000,
  32923. 0xa8000: 0x400000,
  32924. 0xb8000: 0x1040,
  32925. 0xc8000: 0x80000000,
  32926. 0xd8000: 0x400040,
  32927. 0xe8000: 0x401040,
  32928. 0xf8000: 0x80000040,
  32929. 0x100000: 0x400040,
  32930. 0x110000: 0x401000,
  32931. 0x120000: 0x80000040,
  32932. 0x130000: 0x0,
  32933. 0x140000: 0x1040,
  32934. 0x150000: 0x80400040,
  32935. 0x160000: 0x80401000,
  32936. 0x170000: 0x80001040,
  32937. 0x180000: 0x80401040,
  32938. 0x190000: 0x80000000,
  32939. 0x1a0000: 0x80400000,
  32940. 0x1b0000: 0x401040,
  32941. 0x1c0000: 0x80001000,
  32942. 0x1d0000: 0x400000,
  32943. 0x1e0000: 0x40,
  32944. 0x1f0000: 0x1000,
  32945. 0x108000: 0x80400000,
  32946. 0x118000: 0x80401040,
  32947. 0x128000: 0x0,
  32948. 0x138000: 0x401000,
  32949. 0x148000: 0x400040,
  32950. 0x158000: 0x80000000,
  32951. 0x168000: 0x80001040,
  32952. 0x178000: 0x40,
  32953. 0x188000: 0x80000040,
  32954. 0x198000: 0x1000,
  32955. 0x1a8000: 0x80001000,
  32956. 0x1b8000: 0x80400040,
  32957. 0x1c8000: 0x1040,
  32958. 0x1d8000: 0x80401000,
  32959. 0x1e8000: 0x400000,
  32960. 0x1f8000: 0x401040 },
  32961. {
  32962. 0x0: 0x80,
  32963. 0x1000: 0x1040000,
  32964. 0x2000: 0x40000,
  32965. 0x3000: 0x20000000,
  32966. 0x4000: 0x20040080,
  32967. 0x5000: 0x1000080,
  32968. 0x6000: 0x21000080,
  32969. 0x7000: 0x40080,
  32970. 0x8000: 0x1000000,
  32971. 0x9000: 0x20040000,
  32972. 0xa000: 0x20000080,
  32973. 0xb000: 0x21040080,
  32974. 0xc000: 0x21040000,
  32975. 0xd000: 0x0,
  32976. 0xe000: 0x1040080,
  32977. 0xf000: 0x21000000,
  32978. 0x800: 0x1040080,
  32979. 0x1800: 0x21000080,
  32980. 0x2800: 0x80,
  32981. 0x3800: 0x1040000,
  32982. 0x4800: 0x40000,
  32983. 0x5800: 0x20040080,
  32984. 0x6800: 0x21040000,
  32985. 0x7800: 0x20000000,
  32986. 0x8800: 0x20040000,
  32987. 0x9800: 0x0,
  32988. 0xa800: 0x21040080,
  32989. 0xb800: 0x1000080,
  32990. 0xc800: 0x20000080,
  32991. 0xd800: 0x21000000,
  32992. 0xe800: 0x1000000,
  32993. 0xf800: 0x40080,
  32994. 0x10000: 0x40000,
  32995. 0x11000: 0x80,
  32996. 0x12000: 0x20000000,
  32997. 0x13000: 0x21000080,
  32998. 0x14000: 0x1000080,
  32999. 0x15000: 0x21040000,
  33000. 0x16000: 0x20040080,
  33001. 0x17000: 0x1000000,
  33002. 0x18000: 0x21040080,
  33003. 0x19000: 0x21000000,
  33004. 0x1a000: 0x1040000,
  33005. 0x1b000: 0x20040000,
  33006. 0x1c000: 0x40080,
  33007. 0x1d000: 0x20000080,
  33008. 0x1e000: 0x0,
  33009. 0x1f000: 0x1040080,
  33010. 0x10800: 0x21000080,
  33011. 0x11800: 0x1000000,
  33012. 0x12800: 0x1040000,
  33013. 0x13800: 0x20040080,
  33014. 0x14800: 0x20000000,
  33015. 0x15800: 0x1040080,
  33016. 0x16800: 0x80,
  33017. 0x17800: 0x21040000,
  33018. 0x18800: 0x40080,
  33019. 0x19800: 0x21040080,
  33020. 0x1a800: 0x0,
  33021. 0x1b800: 0x21000000,
  33022. 0x1c800: 0x1000080,
  33023. 0x1d800: 0x40000,
  33024. 0x1e800: 0x20040000,
  33025. 0x1f800: 0x20000080 },
  33026. {
  33027. 0x0: 0x10000008,
  33028. 0x100: 0x2000,
  33029. 0x200: 0x10200000,
  33030. 0x300: 0x10202008,
  33031. 0x400: 0x10002000,
  33032. 0x500: 0x200000,
  33033. 0x600: 0x200008,
  33034. 0x700: 0x10000000,
  33035. 0x800: 0x0,
  33036. 0x900: 0x10002008,
  33037. 0xa00: 0x202000,
  33038. 0xb00: 0x8,
  33039. 0xc00: 0x10200008,
  33040. 0xd00: 0x202008,
  33041. 0xe00: 0x2008,
  33042. 0xf00: 0x10202000,
  33043. 0x80: 0x10200000,
  33044. 0x180: 0x10202008,
  33045. 0x280: 0x8,
  33046. 0x380: 0x200000,
  33047. 0x480: 0x202008,
  33048. 0x580: 0x10000008,
  33049. 0x680: 0x10002000,
  33050. 0x780: 0x2008,
  33051. 0x880: 0x200008,
  33052. 0x980: 0x2000,
  33053. 0xa80: 0x10002008,
  33054. 0xb80: 0x10200008,
  33055. 0xc80: 0x0,
  33056. 0xd80: 0x10202000,
  33057. 0xe80: 0x202000,
  33058. 0xf80: 0x10000000,
  33059. 0x1000: 0x10002000,
  33060. 0x1100: 0x10200008,
  33061. 0x1200: 0x10202008,
  33062. 0x1300: 0x2008,
  33063. 0x1400: 0x200000,
  33064. 0x1500: 0x10000000,
  33065. 0x1600: 0x10000008,
  33066. 0x1700: 0x202000,
  33067. 0x1800: 0x202008,
  33068. 0x1900: 0x0,
  33069. 0x1a00: 0x8,
  33070. 0x1b00: 0x10200000,
  33071. 0x1c00: 0x2000,
  33072. 0x1d00: 0x10002008,
  33073. 0x1e00: 0x10202000,
  33074. 0x1f00: 0x200008,
  33075. 0x1080: 0x8,
  33076. 0x1180: 0x202000,
  33077. 0x1280: 0x200000,
  33078. 0x1380: 0x10000008,
  33079. 0x1480: 0x10002000,
  33080. 0x1580: 0x2008,
  33081. 0x1680: 0x10202008,
  33082. 0x1780: 0x10200000,
  33083. 0x1880: 0x10202000,
  33084. 0x1980: 0x10200008,
  33085. 0x1a80: 0x2000,
  33086. 0x1b80: 0x202008,
  33087. 0x1c80: 0x200008,
  33088. 0x1d80: 0x0,
  33089. 0x1e80: 0x10000000,
  33090. 0x1f80: 0x10002008 },
  33091. {
  33092. 0x0: 0x100000,
  33093. 0x10: 0x2000401,
  33094. 0x20: 0x400,
  33095. 0x30: 0x100401,
  33096. 0x40: 0x2100401,
  33097. 0x50: 0x0,
  33098. 0x60: 0x1,
  33099. 0x70: 0x2100001,
  33100. 0x80: 0x2000400,
  33101. 0x90: 0x100001,
  33102. 0xa0: 0x2000001,
  33103. 0xb0: 0x2100400,
  33104. 0xc0: 0x2100000,
  33105. 0xd0: 0x401,
  33106. 0xe0: 0x100400,
  33107. 0xf0: 0x2000000,
  33108. 0x8: 0x2100001,
  33109. 0x18: 0x0,
  33110. 0x28: 0x2000401,
  33111. 0x38: 0x2100400,
  33112. 0x48: 0x100000,
  33113. 0x58: 0x2000001,
  33114. 0x68: 0x2000000,
  33115. 0x78: 0x401,
  33116. 0x88: 0x100401,
  33117. 0x98: 0x2000400,
  33118. 0xa8: 0x2100000,
  33119. 0xb8: 0x100001,
  33120. 0xc8: 0x400,
  33121. 0xd8: 0x2100401,
  33122. 0xe8: 0x1,
  33123. 0xf8: 0x100400,
  33124. 0x100: 0x2000000,
  33125. 0x110: 0x100000,
  33126. 0x120: 0x2000401,
  33127. 0x130: 0x2100001,
  33128. 0x140: 0x100001,
  33129. 0x150: 0x2000400,
  33130. 0x160: 0x2100400,
  33131. 0x170: 0x100401,
  33132. 0x180: 0x401,
  33133. 0x190: 0x2100401,
  33134. 0x1a0: 0x100400,
  33135. 0x1b0: 0x1,
  33136. 0x1c0: 0x0,
  33137. 0x1d0: 0x2100000,
  33138. 0x1e0: 0x2000001,
  33139. 0x1f0: 0x400,
  33140. 0x108: 0x100400,
  33141. 0x118: 0x2000401,
  33142. 0x128: 0x2100001,
  33143. 0x138: 0x1,
  33144. 0x148: 0x2000000,
  33145. 0x158: 0x100000,
  33146. 0x168: 0x401,
  33147. 0x178: 0x2100400,
  33148. 0x188: 0x2000001,
  33149. 0x198: 0x2100000,
  33150. 0x1a8: 0x0,
  33151. 0x1b8: 0x2100401,
  33152. 0x1c8: 0x100401,
  33153. 0x1d8: 0x400,
  33154. 0x1e8: 0x2000400,
  33155. 0x1f8: 0x100001 },
  33156. {
  33157. 0x0: 0x8000820,
  33158. 0x1: 0x20000,
  33159. 0x2: 0x8000000,
  33160. 0x3: 0x20,
  33161. 0x4: 0x20020,
  33162. 0x5: 0x8020820,
  33163. 0x6: 0x8020800,
  33164. 0x7: 0x800,
  33165. 0x8: 0x8020000,
  33166. 0x9: 0x8000800,
  33167. 0xa: 0x20800,
  33168. 0xb: 0x8020020,
  33169. 0xc: 0x820,
  33170. 0xd: 0x0,
  33171. 0xe: 0x8000020,
  33172. 0xf: 0x20820,
  33173. 0x80000000: 0x800,
  33174. 0x80000001: 0x8020820,
  33175. 0x80000002: 0x8000820,
  33176. 0x80000003: 0x8000000,
  33177. 0x80000004: 0x8020000,
  33178. 0x80000005: 0x20800,
  33179. 0x80000006: 0x20820,
  33180. 0x80000007: 0x20,
  33181. 0x80000008: 0x8000020,
  33182. 0x80000009: 0x820,
  33183. 0x8000000a: 0x20020,
  33184. 0x8000000b: 0x8020800,
  33185. 0x8000000c: 0x0,
  33186. 0x8000000d: 0x8020020,
  33187. 0x8000000e: 0x8000800,
  33188. 0x8000000f: 0x20000,
  33189. 0x10: 0x20820,
  33190. 0x11: 0x8020800,
  33191. 0x12: 0x20,
  33192. 0x13: 0x800,
  33193. 0x14: 0x8000800,
  33194. 0x15: 0x8000020,
  33195. 0x16: 0x8020020,
  33196. 0x17: 0x20000,
  33197. 0x18: 0x0,
  33198. 0x19: 0x20020,
  33199. 0x1a: 0x8020000,
  33200. 0x1b: 0x8000820,
  33201. 0x1c: 0x8020820,
  33202. 0x1d: 0x20800,
  33203. 0x1e: 0x820,
  33204. 0x1f: 0x8000000,
  33205. 0x80000010: 0x20000,
  33206. 0x80000011: 0x800,
  33207. 0x80000012: 0x8020020,
  33208. 0x80000013: 0x20820,
  33209. 0x80000014: 0x20,
  33210. 0x80000015: 0x8020000,
  33211. 0x80000016: 0x8000000,
  33212. 0x80000017: 0x8000820,
  33213. 0x80000018: 0x8020820,
  33214. 0x80000019: 0x8000020,
  33215. 0x8000001a: 0x8000800,
  33216. 0x8000001b: 0x0,
  33217. 0x8000001c: 0x20800,
  33218. 0x8000001d: 0x820,
  33219. 0x8000001e: 0x20020,
  33220. 0x8000001f: 0x8020800 }];
  33221. // Masks that select the SBOX input
  33222. var SBOX_MASK = [
  33223. 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,
  33224. 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f];
  33225. /**
  33226. * DES block cipher algorithm.
  33227. */
  33228. var DES = C_algo.DES = BlockCipher.extend({
  33229. _doReset: function _doReset() {
  33230. // Shortcuts
  33231. var key = this._key;
  33232. var keyWords = key.words;
  33233. // Select 56 bits according to PC1
  33234. var keyBits = [];
  33235. for (var i = 0; i < 56; i++) {
  33236. var keyBitPos = PC1[i] - 1;
  33237. keyBits[i] = keyWords[keyBitPos >>> 5] >>> 31 - keyBitPos % 32 & 1;
  33238. }
  33239. // Assemble 16 subkeys
  33240. var subKeys = this._subKeys = [];
  33241. for (var nSubKey = 0; nSubKey < 16; nSubKey++) {
  33242. // Create subkey
  33243. var subKey = subKeys[nSubKey] = [];
  33244. // Shortcut
  33245. var bitShift = BIT_SHIFTS[nSubKey];
  33246. // Select 48 bits according to PC2
  33247. for (var i = 0; i < 24; i++) {
  33248. // Select from the left 28 key bits
  33249. subKey[i / 6 | 0] |= keyBits[(PC2[i] - 1 + bitShift) % 28] << 31 - i % 6;
  33250. // Select from the right 28 key bits
  33251. subKey[4 + (i / 6 | 0)] |= keyBits[28 + (PC2[i + 24] - 1 + bitShift) % 28] << 31 - i % 6;
  33252. }
  33253. // Since each subkey is applied to an expanded 32-bit input,
  33254. // the subkey can be broken into 8 values scaled to 32-bits,
  33255. // which allows the key to be used without expansion
  33256. subKey[0] = subKey[0] << 1 | subKey[0] >>> 31;
  33257. for (var i = 1; i < 7; i++) {
  33258. subKey[i] = subKey[i] >>> (i - 1) * 4 + 3;
  33259. }
  33260. subKey[7] = subKey[7] << 5 | subKey[7] >>> 27;
  33261. }
  33262. // Compute inverse subkeys
  33263. var invSubKeys = this._invSubKeys = [];
  33264. for (var i = 0; i < 16; i++) {
  33265. invSubKeys[i] = subKeys[15 - i];
  33266. }
  33267. },
  33268. encryptBlock: function encryptBlock(M, offset) {
  33269. this._doCryptBlock(M, offset, this._subKeys);
  33270. },
  33271. decryptBlock: function decryptBlock(M, offset) {
  33272. this._doCryptBlock(M, offset, this._invSubKeys);
  33273. },
  33274. _doCryptBlock: function _doCryptBlock(M, offset, subKeys) {
  33275. // Get input
  33276. this._lBlock = M[offset];
  33277. this._rBlock = M[offset + 1];
  33278. // Initial permutation
  33279. exchangeLR.call(this, 4, 0x0f0f0f0f);
  33280. exchangeLR.call(this, 16, 0x0000ffff);
  33281. exchangeRL.call(this, 2, 0x33333333);
  33282. exchangeRL.call(this, 8, 0x00ff00ff);
  33283. exchangeLR.call(this, 1, 0x55555555);
  33284. // Rounds
  33285. for (var round = 0; round < 16; round++) {
  33286. // Shortcuts
  33287. var subKey = subKeys[round];
  33288. var lBlock = this._lBlock;
  33289. var rBlock = this._rBlock;
  33290. // Feistel function
  33291. var f = 0;
  33292. for (var i = 0; i < 8; i++) {
  33293. f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];
  33294. }
  33295. this._lBlock = rBlock;
  33296. this._rBlock = lBlock ^ f;
  33297. }
  33298. // Undo swap from last round
  33299. var t = this._lBlock;
  33300. this._lBlock = this._rBlock;
  33301. this._rBlock = t;
  33302. // Final permutation
  33303. exchangeLR.call(this, 1, 0x55555555);
  33304. exchangeRL.call(this, 8, 0x00ff00ff);
  33305. exchangeRL.call(this, 2, 0x33333333);
  33306. exchangeLR.call(this, 16, 0x0000ffff);
  33307. exchangeLR.call(this, 4, 0x0f0f0f0f);
  33308. // Set output
  33309. M[offset] = this._lBlock;
  33310. M[offset + 1] = this._rBlock;
  33311. },
  33312. keySize: 64 / 32,
  33313. ivSize: 64 / 32,
  33314. blockSize: 64 / 32 });
  33315. // Swap bits across the left and right words
  33316. function exchangeLR(offset, mask) {
  33317. var t = (this._lBlock >>> offset ^ this._rBlock) & mask;
  33318. this._rBlock ^= t;
  33319. this._lBlock ^= t << offset;
  33320. }
  33321. function exchangeRL(offset, mask) {
  33322. var t = (this._rBlock >>> offset ^ this._lBlock) & mask;
  33323. this._lBlock ^= t;
  33324. this._rBlock ^= t << offset;
  33325. }
  33326. /**
  33327. * Shortcut functions to the cipher's object interface.
  33328. *
  33329. * @example
  33330. *
  33331. * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
  33332. * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);
  33333. */
  33334. C.DES = BlockCipher._createHelper(DES);
  33335. /**
  33336. * Triple-DES block cipher algorithm.
  33337. */
  33338. var TripleDES = C_algo.TripleDES = BlockCipher.extend({
  33339. _doReset: function _doReset() {
  33340. // Shortcuts
  33341. var key = this._key;
  33342. var keyWords = key.words;
  33343. // Make sure the key length is valid (64, 128 or >= 192 bit)
  33344. if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {
  33345. throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');
  33346. }
  33347. // Extend the key according to the keying options defined in 3DES standard
  33348. var key1 = keyWords.slice(0, 2);
  33349. var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);
  33350. var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6);
  33351. // Create DES instances
  33352. this._des1 = DES.createEncryptor(WordArray.create(key1));
  33353. this._des2 = DES.createEncryptor(WordArray.create(key2));
  33354. this._des3 = DES.createEncryptor(WordArray.create(key3));
  33355. },
  33356. encryptBlock: function encryptBlock(M, offset) {
  33357. this._des1.encryptBlock(M, offset);
  33358. this._des2.decryptBlock(M, offset);
  33359. this._des3.encryptBlock(M, offset);
  33360. },
  33361. decryptBlock: function decryptBlock(M, offset) {
  33362. this._des3.decryptBlock(M, offset);
  33363. this._des2.encryptBlock(M, offset);
  33364. this._des1.decryptBlock(M, offset);
  33365. },
  33366. keySize: 192 / 32,
  33367. ivSize: 64 / 32,
  33368. blockSize: 64 / 32 });
  33369. /**
  33370. * Shortcut functions to the cipher's object interface.
  33371. *
  33372. * @example
  33373. *
  33374. * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
  33375. * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
  33376. */
  33377. C.TripleDES = BlockCipher._createHelper(TripleDES);
  33378. })();
  33379. return CryptoJS.TripleDES;
  33380. });
  33381. /***/ }),
  33382. /* 243 */
  33383. /*!************************************************************************!*\
  33384. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/rc4.js ***!
  33385. \************************************************************************/
  33386. /*! no static exports found */
  33387. /***/ (function(module, exports, __webpack_require__) {
  33388. ;(function (root, factory, undef) {
  33389. if (true) {
  33390. // CommonJS
  33391. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./enc-base64 */ 216), __webpack_require__(/*! ./md5 */ 218), __webpack_require__(/*! ./evpkdf */ 228), __webpack_require__(/*! ./cipher-core */ 229));
  33392. } else
  33393. {}
  33394. })(this, function (CryptoJS) {
  33395. (function () {
  33396. // Shortcuts
  33397. var C = CryptoJS;
  33398. var C_lib = C.lib;
  33399. var StreamCipher = C_lib.StreamCipher;
  33400. var C_algo = C.algo;
  33401. /**
  33402. * RC4 stream cipher algorithm.
  33403. */
  33404. var RC4 = C_algo.RC4 = StreamCipher.extend({
  33405. _doReset: function _doReset() {
  33406. // Shortcuts
  33407. var key = this._key;
  33408. var keyWords = key.words;
  33409. var keySigBytes = key.sigBytes;
  33410. // Init sbox
  33411. var S = this._S = [];
  33412. for (var i = 0; i < 256; i++) {
  33413. S[i] = i;
  33414. }
  33415. // Key setup
  33416. for (var i = 0, j = 0; i < 256; i++) {
  33417. var keyByteIndex = i % keySigBytes;
  33418. var keyByte = keyWords[keyByteIndex >>> 2] >>> 24 - keyByteIndex % 4 * 8 & 0xff;
  33419. j = (j + S[i] + keyByte) % 256;
  33420. // Swap
  33421. var t = S[i];
  33422. S[i] = S[j];
  33423. S[j] = t;
  33424. }
  33425. // Counters
  33426. this._i = this._j = 0;
  33427. },
  33428. _doProcessBlock: function _doProcessBlock(M, offset) {
  33429. M[offset] ^= generateKeystreamWord.call(this);
  33430. },
  33431. keySize: 256 / 32,
  33432. ivSize: 0 });
  33433. function generateKeystreamWord() {
  33434. // Shortcuts
  33435. var S = this._S;
  33436. var i = this._i;
  33437. var j = this._j;
  33438. // Generate keystream word
  33439. var keystreamWord = 0;
  33440. for (var n = 0; n < 4; n++) {
  33441. i = (i + 1) % 256;
  33442. j = (j + S[i]) % 256;
  33443. // Swap
  33444. var t = S[i];
  33445. S[i] = S[j];
  33446. S[j] = t;
  33447. keystreamWord |= S[(S[i] + S[j]) % 256] << 24 - n * 8;
  33448. }
  33449. // Update counters
  33450. this._i = i;
  33451. this._j = j;
  33452. return keystreamWord;
  33453. }
  33454. /**
  33455. * Shortcut functions to the cipher's object interface.
  33456. *
  33457. * @example
  33458. *
  33459. * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
  33460. * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
  33461. */
  33462. C.RC4 = StreamCipher._createHelper(RC4);
  33463. /**
  33464. * Modified RC4 stream cipher algorithm.
  33465. */
  33466. var RC4Drop = C_algo.RC4Drop = RC4.extend({
  33467. /**
  33468. * Configuration options.
  33469. *
  33470. * @property {number} drop The number of keystream words to drop. Default 192
  33471. */
  33472. cfg: RC4.cfg.extend({
  33473. drop: 192 }),
  33474. _doReset: function _doReset() {
  33475. RC4._doReset.call(this);
  33476. // Drop
  33477. for (var i = this.cfg.drop; i > 0; i--) {
  33478. generateKeystreamWord.call(this);
  33479. }
  33480. } });
  33481. /**
  33482. * Shortcut functions to the cipher's object interface.
  33483. *
  33484. * @example
  33485. *
  33486. * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
  33487. * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
  33488. */
  33489. C.RC4Drop = StreamCipher._createHelper(RC4Drop);
  33490. })();
  33491. return CryptoJS.RC4;
  33492. });
  33493. /***/ }),
  33494. /* 244 */
  33495. /*!***************************************************************************!*\
  33496. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/rabbit.js ***!
  33497. \***************************************************************************/
  33498. /*! no static exports found */
  33499. /***/ (function(module, exports, __webpack_require__) {
  33500. ;(function (root, factory, undef) {
  33501. if (true) {
  33502. // CommonJS
  33503. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./enc-base64 */ 216), __webpack_require__(/*! ./md5 */ 218), __webpack_require__(/*! ./evpkdf */ 228), __webpack_require__(/*! ./cipher-core */ 229));
  33504. } else
  33505. {}
  33506. })(this, function (CryptoJS) {
  33507. (function () {
  33508. // Shortcuts
  33509. var C = CryptoJS;
  33510. var C_lib = C.lib;
  33511. var StreamCipher = C_lib.StreamCipher;
  33512. var C_algo = C.algo;
  33513. // Reusable objects
  33514. var S = [];
  33515. var C_ = [];
  33516. var G = [];
  33517. /**
  33518. * Rabbit stream cipher algorithm
  33519. */
  33520. var Rabbit = C_algo.Rabbit = StreamCipher.extend({
  33521. _doReset: function _doReset() {
  33522. // Shortcuts
  33523. var K = this._key.words;
  33524. var iv = this.cfg.iv;
  33525. // Swap endian
  33526. for (var i = 0; i < 4; i++) {
  33527. K[i] = (K[i] << 8 | K[i] >>> 24) & 0x00ff00ff |
  33528. (K[i] << 24 | K[i] >>> 8) & 0xff00ff00;
  33529. }
  33530. // Generate initial state values
  33531. var X = this._X = [
  33532. K[0], K[3] << 16 | K[2] >>> 16,
  33533. K[1], K[0] << 16 | K[3] >>> 16,
  33534. K[2], K[1] << 16 | K[0] >>> 16,
  33535. K[3], K[2] << 16 | K[1] >>> 16];
  33536. // Generate initial counter values
  33537. var C = this._C = [
  33538. K[2] << 16 | K[2] >>> 16, K[0] & 0xffff0000 | K[1] & 0x0000ffff,
  33539. K[3] << 16 | K[3] >>> 16, K[1] & 0xffff0000 | K[2] & 0x0000ffff,
  33540. K[0] << 16 | K[0] >>> 16, K[2] & 0xffff0000 | K[3] & 0x0000ffff,
  33541. K[1] << 16 | K[1] >>> 16, K[3] & 0xffff0000 | K[0] & 0x0000ffff];
  33542. // Carry bit
  33543. this._b = 0;
  33544. // Iterate the system four times
  33545. for (var i = 0; i < 4; i++) {
  33546. nextState.call(this);
  33547. }
  33548. // Modify the counters
  33549. for (var i = 0; i < 8; i++) {
  33550. C[i] ^= X[i + 4 & 7];
  33551. }
  33552. // IV setup
  33553. if (iv) {
  33554. // Shortcuts
  33555. var IV = iv.words;
  33556. var IV_0 = IV[0];
  33557. var IV_1 = IV[1];
  33558. // Generate four subvectors
  33559. var i0 = (IV_0 << 8 | IV_0 >>> 24) & 0x00ff00ff | (IV_0 << 24 | IV_0 >>> 8) & 0xff00ff00;
  33560. var i2 = (IV_1 << 8 | IV_1 >>> 24) & 0x00ff00ff | (IV_1 << 24 | IV_1 >>> 8) & 0xff00ff00;
  33561. var i1 = i0 >>> 16 | i2 & 0xffff0000;
  33562. var i3 = i2 << 16 | i0 & 0x0000ffff;
  33563. // Modify counter values
  33564. C[0] ^= i0;
  33565. C[1] ^= i1;
  33566. C[2] ^= i2;
  33567. C[3] ^= i3;
  33568. C[4] ^= i0;
  33569. C[5] ^= i1;
  33570. C[6] ^= i2;
  33571. C[7] ^= i3;
  33572. // Iterate the system four times
  33573. for (var i = 0; i < 4; i++) {
  33574. nextState.call(this);
  33575. }
  33576. }
  33577. },
  33578. _doProcessBlock: function _doProcessBlock(M, offset) {
  33579. // Shortcut
  33580. var X = this._X;
  33581. // Iterate the system
  33582. nextState.call(this);
  33583. // Generate four keystream words
  33584. S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16;
  33585. S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16;
  33586. S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16;
  33587. S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16;
  33588. for (var i = 0; i < 4; i++) {
  33589. // Swap endian
  33590. S[i] = (S[i] << 8 | S[i] >>> 24) & 0x00ff00ff |
  33591. (S[i] << 24 | S[i] >>> 8) & 0xff00ff00;
  33592. // Encrypt
  33593. M[offset + i] ^= S[i];
  33594. }
  33595. },
  33596. blockSize: 128 / 32,
  33597. ivSize: 64 / 32 });
  33598. function nextState() {
  33599. // Shortcuts
  33600. var X = this._X;
  33601. var C = this._C;
  33602. // Save old counter values
  33603. for (var i = 0; i < 8; i++) {
  33604. C_[i] = C[i];
  33605. }
  33606. // Calculate new counter values
  33607. C[0] = C[0] + 0x4d34d34d + this._b | 0;
  33608. C[1] = C[1] + 0xd34d34d3 + (C[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0;
  33609. C[2] = C[2] + 0x34d34d34 + (C[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0;
  33610. C[3] = C[3] + 0x4d34d34d + (C[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0;
  33611. C[4] = C[4] + 0xd34d34d3 + (C[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0;
  33612. C[5] = C[5] + 0x34d34d34 + (C[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0;
  33613. C[6] = C[6] + 0x4d34d34d + (C[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0;
  33614. C[7] = C[7] + 0xd34d34d3 + (C[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0;
  33615. this._b = C[7] >>> 0 < C_[7] >>> 0 ? 1 : 0;
  33616. // Calculate the g-values
  33617. for (var i = 0; i < 8; i++) {
  33618. var gx = X[i] + C[i];
  33619. // Construct high and low argument for squaring
  33620. var ga = gx & 0xffff;
  33621. var gb = gx >>> 16;
  33622. // Calculate high and low result of squaring
  33623. var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb;
  33624. var gl = ((gx & 0xffff0000) * gx | 0) + ((gx & 0x0000ffff) * gx | 0);
  33625. // High XOR low
  33626. G[i] = gh ^ gl;
  33627. }
  33628. // Calculate new state values
  33629. X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0;
  33630. X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0;
  33631. X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0;
  33632. X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0;
  33633. X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0;
  33634. X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0;
  33635. X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0;
  33636. X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0;
  33637. }
  33638. /**
  33639. * Shortcut functions to the cipher's object interface.
  33640. *
  33641. * @example
  33642. *
  33643. * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
  33644. * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);
  33645. */
  33646. C.Rabbit = StreamCipher._createHelper(Rabbit);
  33647. })();
  33648. return CryptoJS.Rabbit;
  33649. });
  33650. /***/ }),
  33651. /* 245 */
  33652. /*!**********************************************************************************!*\
  33653. !*** D:/meloinfo/sugarpark-mini-program/node_modules/crypto-js/rabbit-legacy.js ***!
  33654. \**********************************************************************************/
  33655. /*! no static exports found */
  33656. /***/ (function(module, exports, __webpack_require__) {
  33657. ;(function (root, factory, undef) {
  33658. if (true) {
  33659. // CommonJS
  33660. module.exports = exports = factory(__webpack_require__(/*! ./core */ 211), __webpack_require__(/*! ./enc-base64 */ 216), __webpack_require__(/*! ./md5 */ 218), __webpack_require__(/*! ./evpkdf */ 228), __webpack_require__(/*! ./cipher-core */ 229));
  33661. } else
  33662. {}
  33663. })(this, function (CryptoJS) {
  33664. (function () {
  33665. // Shortcuts
  33666. var C = CryptoJS;
  33667. var C_lib = C.lib;
  33668. var StreamCipher = C_lib.StreamCipher;
  33669. var C_algo = C.algo;
  33670. // Reusable objects
  33671. var S = [];
  33672. var C_ = [];
  33673. var G = [];
  33674. /**
  33675. * Rabbit stream cipher algorithm.
  33676. *
  33677. * This is a legacy version that neglected to convert the key to little-endian.
  33678. * This error doesn't affect the cipher's security,
  33679. * but it does affect its compatibility with other implementations.
  33680. */
  33681. var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({
  33682. _doReset: function _doReset() {
  33683. // Shortcuts
  33684. var K = this._key.words;
  33685. var iv = this.cfg.iv;
  33686. // Generate initial state values
  33687. var X = this._X = [
  33688. K[0], K[3] << 16 | K[2] >>> 16,
  33689. K[1], K[0] << 16 | K[3] >>> 16,
  33690. K[2], K[1] << 16 | K[0] >>> 16,
  33691. K[3], K[2] << 16 | K[1] >>> 16];
  33692. // Generate initial counter values
  33693. var C = this._C = [
  33694. K[2] << 16 | K[2] >>> 16, K[0] & 0xffff0000 | K[1] & 0x0000ffff,
  33695. K[3] << 16 | K[3] >>> 16, K[1] & 0xffff0000 | K[2] & 0x0000ffff,
  33696. K[0] << 16 | K[0] >>> 16, K[2] & 0xffff0000 | K[3] & 0x0000ffff,
  33697. K[1] << 16 | K[1] >>> 16, K[3] & 0xffff0000 | K[0] & 0x0000ffff];
  33698. // Carry bit
  33699. this._b = 0;
  33700. // Iterate the system four times
  33701. for (var i = 0; i < 4; i++) {
  33702. nextState.call(this);
  33703. }
  33704. // Modify the counters
  33705. for (var i = 0; i < 8; i++) {
  33706. C[i] ^= X[i + 4 & 7];
  33707. }
  33708. // IV setup
  33709. if (iv) {
  33710. // Shortcuts
  33711. var IV = iv.words;
  33712. var IV_0 = IV[0];
  33713. var IV_1 = IV[1];
  33714. // Generate four subvectors
  33715. var i0 = (IV_0 << 8 | IV_0 >>> 24) & 0x00ff00ff | (IV_0 << 24 | IV_0 >>> 8) & 0xff00ff00;
  33716. var i2 = (IV_1 << 8 | IV_1 >>> 24) & 0x00ff00ff | (IV_1 << 24 | IV_1 >>> 8) & 0xff00ff00;
  33717. var i1 = i0 >>> 16 | i2 & 0xffff0000;
  33718. var i3 = i2 << 16 | i0 & 0x0000ffff;
  33719. // Modify counter values
  33720. C[0] ^= i0;
  33721. C[1] ^= i1;
  33722. C[2] ^= i2;
  33723. C[3] ^= i3;
  33724. C[4] ^= i0;
  33725. C[5] ^= i1;
  33726. C[6] ^= i2;
  33727. C[7] ^= i3;
  33728. // Iterate the system four times
  33729. for (var i = 0; i < 4; i++) {
  33730. nextState.call(this);
  33731. }
  33732. }
  33733. },
  33734. _doProcessBlock: function _doProcessBlock(M, offset) {
  33735. // Shortcut
  33736. var X = this._X;
  33737. // Iterate the system
  33738. nextState.call(this);
  33739. // Generate four keystream words
  33740. S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16;
  33741. S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16;
  33742. S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16;
  33743. S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16;
  33744. for (var i = 0; i < 4; i++) {
  33745. // Swap endian
  33746. S[i] = (S[i] << 8 | S[i] >>> 24) & 0x00ff00ff |
  33747. (S[i] << 24 | S[i] >>> 8) & 0xff00ff00;
  33748. // Encrypt
  33749. M[offset + i] ^= S[i];
  33750. }
  33751. },
  33752. blockSize: 128 / 32,
  33753. ivSize: 64 / 32 });
  33754. function nextState() {
  33755. // Shortcuts
  33756. var X = this._X;
  33757. var C = this._C;
  33758. // Save old counter values
  33759. for (var i = 0; i < 8; i++) {
  33760. C_[i] = C[i];
  33761. }
  33762. // Calculate new counter values
  33763. C[0] = C[0] + 0x4d34d34d + this._b | 0;
  33764. C[1] = C[1] + 0xd34d34d3 + (C[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0;
  33765. C[2] = C[2] + 0x34d34d34 + (C[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0;
  33766. C[3] = C[3] + 0x4d34d34d + (C[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0;
  33767. C[4] = C[4] + 0xd34d34d3 + (C[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0;
  33768. C[5] = C[5] + 0x34d34d34 + (C[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0;
  33769. C[6] = C[6] + 0x4d34d34d + (C[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0;
  33770. C[7] = C[7] + 0xd34d34d3 + (C[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0;
  33771. this._b = C[7] >>> 0 < C_[7] >>> 0 ? 1 : 0;
  33772. // Calculate the g-values
  33773. for (var i = 0; i < 8; i++) {
  33774. var gx = X[i] + C[i];
  33775. // Construct high and low argument for squaring
  33776. var ga = gx & 0xffff;
  33777. var gb = gx >>> 16;
  33778. // Calculate high and low result of squaring
  33779. var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb;
  33780. var gl = ((gx & 0xffff0000) * gx | 0) + ((gx & 0x0000ffff) * gx | 0);
  33781. // High XOR low
  33782. G[i] = gh ^ gl;
  33783. }
  33784. // Calculate new state values
  33785. X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0;
  33786. X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0;
  33787. X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0;
  33788. X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0;
  33789. X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0;
  33790. X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0;
  33791. X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0;
  33792. X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0;
  33793. }
  33794. /**
  33795. * Shortcut functions to the cipher's object interface.
  33796. *
  33797. * @example
  33798. *
  33799. * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
  33800. * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
  33801. */
  33802. C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);
  33803. })();
  33804. return CryptoJS.RabbitLegacy;
  33805. });
  33806. /***/ }),
  33807. /* 246 */
  33808. /*!*********************************************************!*\
  33809. !*** D:/meloinfo/sugarpark-mini-program/util/base64.js ***!
  33810. \*********************************************************/
  33811. /*! no static exports found */
  33812. /***/ (function(module, exports, __webpack_require__) {
  33813. /* WEBPACK VAR INJECTION */(function(global, Buffer) {//
  33814. // THIS FILE IS AUTOMATICALLY GENERATED! DO NOT EDIT BY HAND!
  33815. //
  33816. ;
  33817. (function (global, factory) {
  33818. true ?
  33819. module.exports = factory() :
  33820. undefined;
  33821. })(typeof self !== 'undefined' ? self :
  33822. typeof window !== 'undefined' ? window :
  33823. typeof global !== 'undefined' ? global :
  33824. this, function () {
  33825. 'use strict';
  33826. /**
  33827. * base64.ts
  33828. *
  33829. * Licensed under the BSD 3-Clause License.
  33830. * http://opensource.org/licenses/BSD-3-Clause
  33831. *
  33832. * References:
  33833. * http://en.wikipedia.org/wiki/Base64
  33834. *
  33835. * @author Dan Kogai (https://github.com/dankogai)
  33836. */
  33837. var version = '3.7.2';
  33838. /**
  33839. * @deprecated use lowercase `version`.
  33840. */
  33841. var VERSION = version;
  33842. var _hasatob = typeof atob === 'function';
  33843. var _hasbtoa = typeof btoa === 'function';
  33844. var _hasBuffer = typeof Buffer === 'function';
  33845. var _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
  33846. var _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
  33847. var b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  33848. var b64chs = Array.prototype.slice.call(b64ch);
  33849. var b64tab = function (a) {
  33850. var tab = {};
  33851. a.forEach(function (c, i) {return tab[c] = i;});
  33852. return tab;
  33853. }(b64chs);
  33854. var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
  33855. var _fromCC = String.fromCharCode.bind(String);
  33856. var _U8Afrom = typeof Uint8Array.from === 'function' ?
  33857. Uint8Array.from.bind(Uint8Array) :
  33858. function (it, fn) {
  33859. if (fn === void 0) {fn = function fn(x) {return x;};}
  33860. return new Uint8Array(Array.prototype.slice.call(it, 0).map(fn));
  33861. };
  33862. var _mkUriSafe = function _mkUriSafe(src) {return src.
  33863. replace(/=/g, '').replace(/[+\/]/g, function (m0) {return m0 == '+' ? '-' : '_';});};
  33864. var _tidyB64 = function _tidyB64(s) {return s.replace(/[^A-Za-z0-9\+\/]/g, '');};
  33865. /**
  33866. * polyfill version of `btoa`
  33867. */
  33868. var btoaPolyfill = function btoaPolyfill(bin) {
  33869. // console.log('polyfilled');
  33870. var u32,c0,c1,c2,asc = '';
  33871. var pad = bin.length % 3;
  33872. for (var i = 0; i < bin.length;) {
  33873. if ((c0 = bin.charCodeAt(i++)) > 255 ||
  33874. (c1 = bin.charCodeAt(i++)) > 255 ||
  33875. (c2 = bin.charCodeAt(i++)) > 255)
  33876. throw new TypeError('invalid character found');
  33877. u32 = c0 << 16 | c1 << 8 | c2;
  33878. asc += b64chs[u32 >> 18 & 63] +
  33879. b64chs[u32 >> 12 & 63] +
  33880. b64chs[u32 >> 6 & 63] +
  33881. b64chs[u32 & 63];
  33882. }
  33883. return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
  33884. };
  33885. /**
  33886. * does what `window.btoa` of web browsers do.
  33887. * @param {String} bin binary string
  33888. * @returns {string} Base64-encoded string
  33889. */
  33890. var _btoa = _hasbtoa ? function (bin) {return btoa(bin);} :
  33891. _hasBuffer ? function (bin) {return Buffer.from(bin, 'binary').toString('base64');} :
  33892. btoaPolyfill;
  33893. var _fromUint8Array = _hasBuffer ?
  33894. function (u8a) {return Buffer.from(u8a).toString('base64');} :
  33895. function (u8a) {
  33896. // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
  33897. var maxargs = 0x1000;
  33898. var strs = [];
  33899. for (var i = 0, l = u8a.length; i < l; i += maxargs) {
  33900. strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
  33901. }
  33902. return _btoa(strs.join(''));
  33903. };
  33904. /**
  33905. * converts a Uint8Array to a Base64 string.
  33906. * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
  33907. * @returns {string} Base64 string
  33908. */
  33909. var fromUint8Array = function fromUint8Array(u8a, urlsafe) {
  33910. if (urlsafe === void 0) {urlsafe = false;}
  33911. return urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
  33912. };
  33913. // This trick is found broken https://github.com/dankogai/js-base64/issues/130
  33914. // const utob = (src: string) => unescape(encodeURIComponent(src));
  33915. // reverting good old fationed regexp
  33916. var cb_utob = function cb_utob(c) {
  33917. if (c.length < 2) {
  33918. var cc = c.charCodeAt(0);
  33919. return cc < 0x80 ? c :
  33920. cc < 0x800 ? _fromCC(0xc0 | cc >>> 6) +
  33921. _fromCC(0x80 | cc & 0x3f) :
  33922. _fromCC(0xe0 | cc >>> 12 & 0x0f) +
  33923. _fromCC(0x80 | cc >>> 6 & 0x3f) +
  33924. _fromCC(0x80 | cc & 0x3f);
  33925. } else
  33926. {
  33927. var cc = 0x10000 +
  33928. (c.charCodeAt(0) - 0xD800) * 0x400 + (
  33929. c.charCodeAt(1) - 0xDC00);
  33930. return _fromCC(0xf0 | cc >>> 18 & 0x07) +
  33931. _fromCC(0x80 | cc >>> 12 & 0x3f) +
  33932. _fromCC(0x80 | cc >>> 6 & 0x3f) +
  33933. _fromCC(0x80 | cc & 0x3f);
  33934. }
  33935. };
  33936. var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
  33937. /**
  33938. * @deprecated should have been internal use only.
  33939. * @param {string} src UTF-8 string
  33940. * @returns {string} UTF-16 string
  33941. */
  33942. var utob = function utob(u) {return u.replace(re_utob, cb_utob);};
  33943. //
  33944. var _encode = _hasBuffer ?
  33945. function (s) {return Buffer.from(s, 'utf8').toString('base64');} :
  33946. _TE ?
  33947. function (s) {return _fromUint8Array(_TE.encode(s));} :
  33948. function (s) {return _btoa(utob(s));};
  33949. /**
  33950. * converts a UTF-8-encoded string to a Base64 string.
  33951. * @param {boolean} [urlsafe] if `true` make the result URL-safe
  33952. * @returns {string} Base64 string
  33953. */
  33954. var encode = function encode(src, urlsafe) {
  33955. if (urlsafe === void 0) {urlsafe = false;}
  33956. return urlsafe ?
  33957. _mkUriSafe(_encode(src)) :
  33958. _encode(src);
  33959. };
  33960. /**
  33961. * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
  33962. * @returns {string} Base64 string
  33963. */
  33964. var encodeURI = function encodeURI(src) {return encode(src, true);};
  33965. // This trick is found broken https://github.com/dankogai/js-base64/issues/130
  33966. // const btou = (src: string) => decodeURIComponent(escape(src));
  33967. // reverting good old fationed regexp
  33968. var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
  33969. var cb_btou = function cb_btou(cccc) {
  33970. switch (cccc.length) {
  33971. case 4:
  33972. var cp = (0x07 & cccc.charCodeAt(0)) << 18 |
  33973. (0x3f & cccc.charCodeAt(1)) << 12 |
  33974. (0x3f & cccc.charCodeAt(2)) << 6 |
  33975. 0x3f & cccc.charCodeAt(3),offset = cp - 0x10000;
  33976. return _fromCC((offset >>> 10) + 0xD800) +
  33977. _fromCC((offset & 0x3FF) + 0xDC00);
  33978. case 3:
  33979. return _fromCC((0x0f & cccc.charCodeAt(0)) << 12 |
  33980. (0x3f & cccc.charCodeAt(1)) << 6 |
  33981. 0x3f & cccc.charCodeAt(2));
  33982. default:
  33983. return _fromCC((0x1f & cccc.charCodeAt(0)) << 6 |
  33984. 0x3f & cccc.charCodeAt(1));}
  33985. };
  33986. /**
  33987. * @deprecated should have been internal use only.
  33988. * @param {string} src UTF-16 string
  33989. * @returns {string} UTF-8 string
  33990. */
  33991. var btou = function btou(b) {return b.replace(re_btou, cb_btou);};
  33992. /**
  33993. * polyfill version of `atob`
  33994. */
  33995. var atobPolyfill = function atobPolyfill(asc) {
  33996. // console.log('polyfilled');
  33997. asc = asc.replace(/\s+/g, '');
  33998. if (!b64re.test(asc))
  33999. throw new TypeError('malformed base64.');
  34000. asc += '=='.slice(2 - (asc.length & 3));
  34001. var u24,bin = '',r1,r2;
  34002. for (var i = 0; i < asc.length;) {
  34003. u24 = b64tab[asc.charAt(i++)] << 18 |
  34004. b64tab[asc.charAt(i++)] << 12 |
  34005. (r1 = b64tab[asc.charAt(i++)]) << 6 | (
  34006. r2 = b64tab[asc.charAt(i++)]);
  34007. bin += r1 === 64 ? _fromCC(u24 >> 16 & 255) :
  34008. r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255) :
  34009. _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);
  34010. }
  34011. return bin;
  34012. };
  34013. /**
  34014. * does what `window.atob` of web browsers do.
  34015. * @param {String} asc Base64-encoded string
  34016. * @returns {string} binary string
  34017. */
  34018. var _atob = _hasatob ? function (asc) {return atob(_tidyB64(asc));} :
  34019. _hasBuffer ? function (asc) {return Buffer.from(asc, 'base64').toString('binary');} :
  34020. atobPolyfill;
  34021. //
  34022. var _toUint8Array = _hasBuffer ?
  34023. function (a) {return _U8Afrom(Buffer.from(a, 'base64'));} :
  34024. function (a) {return _U8Afrom(_atob(a), function (c) {return c.charCodeAt(0);});};
  34025. /**
  34026. * converts a Base64 string to a Uint8Array.
  34027. */
  34028. var toUint8Array = function toUint8Array(a) {return _toUint8Array(_unURI(a));};
  34029. //
  34030. var _decode = _hasBuffer ?
  34031. function (a) {return Buffer.from(a, 'base64').toString('utf8');} :
  34032. _TD ?
  34033. function (a) {return _TD.decode(_toUint8Array(a));} :
  34034. function (a) {return btou(_atob(a));};
  34035. var _unURI = function _unURI(a) {return _tidyB64(a.replace(/[-_]/g, function (m0) {return m0 == '-' ? '+' : '/';}));};
  34036. /**
  34037. * converts a Base64 string to a UTF-8 string.
  34038. * @param {String} src Base64 string. Both normal and URL-safe are supported
  34039. * @returns {string} UTF-8 string
  34040. */
  34041. var decode = function decode(src) {return _decode(_unURI(src));};
  34042. /**
  34043. * check if a value is a valid Base64 string
  34044. * @param {String} src a value to check
  34045. */
  34046. var isValid = function isValid(src) {
  34047. if (typeof src !== 'string')
  34048. return false;
  34049. var s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
  34050. return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
  34051. };
  34052. //
  34053. var _noEnum = function _noEnum(v) {
  34054. return {
  34055. value: v, enumerable: false, writable: true, configurable: true };
  34056. };
  34057. /**
  34058. * extend String.prototype with relevant methods
  34059. */
  34060. var extendString = function extendString() {
  34061. var _add = function _add(name, body) {return Object.defineProperty(String.prototype, name, _noEnum(body));};
  34062. _add('fromBase64', function () {return decode(this);});
  34063. _add('toBase64', function (urlsafe) {return encode(this, urlsafe);});
  34064. _add('toBase64URI', function () {return encode(this, true);});
  34065. _add('toBase64URL', function () {return encode(this, true);});
  34066. _add('toUint8Array', function () {return toUint8Array(this);});
  34067. };
  34068. /**
  34069. * extend Uint8Array.prototype with relevant methods
  34070. */
  34071. var extendUint8Array = function extendUint8Array() {
  34072. var _add = function _add(name, body) {return Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));};
  34073. _add('toBase64', function (urlsafe) {return fromUint8Array(this, urlsafe);});
  34074. _add('toBase64URI', function () {return fromUint8Array(this, true);});
  34075. _add('toBase64URL', function () {return fromUint8Array(this, true);});
  34076. };
  34077. /**
  34078. * extend Builtin prototypes with relevant methods
  34079. */
  34080. var extendBuiltins = function extendBuiltins() {
  34081. extendString();
  34082. extendUint8Array();
  34083. };
  34084. var gBase64 = {
  34085. version: version,
  34086. VERSION: VERSION,
  34087. atob: _atob,
  34088. atobPolyfill: atobPolyfill,
  34089. btoa: _btoa,
  34090. btoaPolyfill: btoaPolyfill,
  34091. fromBase64: decode,
  34092. toBase64: encode,
  34093. encode: encode,
  34094. encodeURI: encodeURI,
  34095. encodeURL: encodeURI,
  34096. utob: utob,
  34097. btou: btou,
  34098. decode: decode,
  34099. isValid: isValid,
  34100. fromUint8Array: fromUint8Array,
  34101. toUint8Array: toUint8Array,
  34102. extendString: extendString,
  34103. extendUint8Array: extendUint8Array,
  34104. extendBuiltins: extendBuiltins };
  34105. //
  34106. // export Base64 to the namespace
  34107. //
  34108. // ES5 is yet to have Object.assign() that may make transpilers unhappy.
  34109. // gBase64.Base64 = Object.assign({}, gBase64);
  34110. gBase64.Base64 = {};
  34111. Object.keys(gBase64).forEach(function (k) {return gBase64.Base64[k] = gBase64[k];});
  34112. return gBase64;
  34113. });
  34114. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/global.js */ 2), __webpack_require__(/*! ./../../../HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 247).Buffer))
  34115. /***/ }),
  34116. /* 247 */
  34117. /*!**************************************!*\
  34118. !*** ./node_modules/buffer/index.js ***!
  34119. \**************************************/
  34120. /*! no static exports found */
  34121. /***/ (function(module, exports, __webpack_require__) {
  34122. "use strict";
  34123. /* WEBPACK VAR INJECTION */(function(global) {/*!
  34124. * The buffer module from node.js, for the browser.
  34125. *
  34126. * @author Feross Aboukhadijeh <http://feross.org>
  34127. * @license MIT
  34128. */
  34129. /* eslint-disable no-proto */
  34130. var base64 = __webpack_require__(/*! base64-js */ 248)
  34131. var ieee754 = __webpack_require__(/*! ieee754 */ 249)
  34132. var isArray = __webpack_require__(/*! isarray */ 250)
  34133. exports.Buffer = Buffer
  34134. exports.SlowBuffer = SlowBuffer
  34135. exports.INSPECT_MAX_BYTES = 50
  34136. /**
  34137. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  34138. * === true Use Uint8Array implementation (fastest)
  34139. * === false Use Object implementation (most compatible, even IE6)
  34140. *
  34141. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  34142. * Opera 11.6+, iOS 4.2+.
  34143. *
  34144. * Due to various browser bugs, sometimes the Object implementation will be used even
  34145. * when the browser supports typed arrays.
  34146. *
  34147. * Note:
  34148. *
  34149. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  34150. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  34151. *
  34152. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  34153. *
  34154. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  34155. * incorrect length in some situations.
  34156. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  34157. * get the Object implementation, which is slower but behaves correctly.
  34158. */
  34159. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  34160. ? global.TYPED_ARRAY_SUPPORT
  34161. : typedArraySupport()
  34162. /*
  34163. * Export kMaxLength after typed array support is determined.
  34164. */
  34165. exports.kMaxLength = kMaxLength()
  34166. function typedArraySupport () {
  34167. try {
  34168. var arr = new Uint8Array(1)
  34169. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  34170. return arr.foo() === 42 && // typed array instances can be augmented
  34171. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  34172. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  34173. } catch (e) {
  34174. return false
  34175. }
  34176. }
  34177. function kMaxLength () {
  34178. return Buffer.TYPED_ARRAY_SUPPORT
  34179. ? 0x7fffffff
  34180. : 0x3fffffff
  34181. }
  34182. function createBuffer (that, length) {
  34183. if (kMaxLength() < length) {
  34184. throw new RangeError('Invalid typed array length')
  34185. }
  34186. if (Buffer.TYPED_ARRAY_SUPPORT) {
  34187. // Return an augmented `Uint8Array` instance, for best performance
  34188. that = new Uint8Array(length)
  34189. that.__proto__ = Buffer.prototype
  34190. } else {
  34191. // Fallback: Return an object instance of the Buffer class
  34192. if (that === null) {
  34193. that = new Buffer(length)
  34194. }
  34195. that.length = length
  34196. }
  34197. return that
  34198. }
  34199. /**
  34200. * The Buffer constructor returns instances of `Uint8Array` that have their
  34201. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  34202. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  34203. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  34204. * returns a single octet.
  34205. *
  34206. * The `Uint8Array` prototype remains unmodified.
  34207. */
  34208. function Buffer (arg, encodingOrOffset, length) {
  34209. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  34210. return new Buffer(arg, encodingOrOffset, length)
  34211. }
  34212. // Common case.
  34213. if (typeof arg === 'number') {
  34214. if (typeof encodingOrOffset === 'string') {
  34215. throw new Error(
  34216. 'If encoding is specified then the first argument must be a string'
  34217. )
  34218. }
  34219. return allocUnsafe(this, arg)
  34220. }
  34221. return from(this, arg, encodingOrOffset, length)
  34222. }
  34223. Buffer.poolSize = 8192 // not used by this implementation
  34224. // TODO: Legacy, not needed anymore. Remove in next major version.
  34225. Buffer._augment = function (arr) {
  34226. arr.__proto__ = Buffer.prototype
  34227. return arr
  34228. }
  34229. function from (that, value, encodingOrOffset, length) {
  34230. if (typeof value === 'number') {
  34231. throw new TypeError('"value" argument must not be a number')
  34232. }
  34233. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  34234. return fromArrayBuffer(that, value, encodingOrOffset, length)
  34235. }
  34236. if (typeof value === 'string') {
  34237. return fromString(that, value, encodingOrOffset)
  34238. }
  34239. return fromObject(that, value)
  34240. }
  34241. /**
  34242. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  34243. * if value is a number.
  34244. * Buffer.from(str[, encoding])
  34245. * Buffer.from(array)
  34246. * Buffer.from(buffer)
  34247. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  34248. **/
  34249. Buffer.from = function (value, encodingOrOffset, length) {
  34250. return from(null, value, encodingOrOffset, length)
  34251. }
  34252. if (Buffer.TYPED_ARRAY_SUPPORT) {
  34253. Buffer.prototype.__proto__ = Uint8Array.prototype
  34254. Buffer.__proto__ = Uint8Array
  34255. if (typeof Symbol !== 'undefined' && Symbol.species &&
  34256. Buffer[Symbol.species] === Buffer) {
  34257. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  34258. Object.defineProperty(Buffer, Symbol.species, {
  34259. value: null,
  34260. configurable: true
  34261. })
  34262. }
  34263. }
  34264. function assertSize (size) {
  34265. if (typeof size !== 'number') {
  34266. throw new TypeError('"size" argument must be a number')
  34267. } else if (size < 0) {
  34268. throw new RangeError('"size" argument must not be negative')
  34269. }
  34270. }
  34271. function alloc (that, size, fill, encoding) {
  34272. assertSize(size)
  34273. if (size <= 0) {
  34274. return createBuffer(that, size)
  34275. }
  34276. if (fill !== undefined) {
  34277. // Only pay attention to encoding if it's a string. This
  34278. // prevents accidentally sending in a number that would
  34279. // be interpretted as a start offset.
  34280. return typeof encoding === 'string'
  34281. ? createBuffer(that, size).fill(fill, encoding)
  34282. : createBuffer(that, size).fill(fill)
  34283. }
  34284. return createBuffer(that, size)
  34285. }
  34286. /**
  34287. * Creates a new filled Buffer instance.
  34288. * alloc(size[, fill[, encoding]])
  34289. **/
  34290. Buffer.alloc = function (size, fill, encoding) {
  34291. return alloc(null, size, fill, encoding)
  34292. }
  34293. function allocUnsafe (that, size) {
  34294. assertSize(size)
  34295. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  34296. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  34297. for (var i = 0; i < size; ++i) {
  34298. that[i] = 0
  34299. }
  34300. }
  34301. return that
  34302. }
  34303. /**
  34304. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  34305. * */
  34306. Buffer.allocUnsafe = function (size) {
  34307. return allocUnsafe(null, size)
  34308. }
  34309. /**
  34310. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  34311. */
  34312. Buffer.allocUnsafeSlow = function (size) {
  34313. return allocUnsafe(null, size)
  34314. }
  34315. function fromString (that, string, encoding) {
  34316. if (typeof encoding !== 'string' || encoding === '') {
  34317. encoding = 'utf8'
  34318. }
  34319. if (!Buffer.isEncoding(encoding)) {
  34320. throw new TypeError('"encoding" must be a valid string encoding')
  34321. }
  34322. var length = byteLength(string, encoding) | 0
  34323. that = createBuffer(that, length)
  34324. var actual = that.write(string, encoding)
  34325. if (actual !== length) {
  34326. // Writing a hex string, for example, that contains invalid characters will
  34327. // cause everything after the first invalid character to be ignored. (e.g.
  34328. // 'abxxcd' will be treated as 'ab')
  34329. that = that.slice(0, actual)
  34330. }
  34331. return that
  34332. }
  34333. function fromArrayLike (that, array) {
  34334. var length = array.length < 0 ? 0 : checked(array.length) | 0
  34335. that = createBuffer(that, length)
  34336. for (var i = 0; i < length; i += 1) {
  34337. that[i] = array[i] & 255
  34338. }
  34339. return that
  34340. }
  34341. function fromArrayBuffer (that, array, byteOffset, length) {
  34342. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  34343. if (byteOffset < 0 || array.byteLength < byteOffset) {
  34344. throw new RangeError('\'offset\' is out of bounds')
  34345. }
  34346. if (array.byteLength < byteOffset + (length || 0)) {
  34347. throw new RangeError('\'length\' is out of bounds')
  34348. }
  34349. if (byteOffset === undefined && length === undefined) {
  34350. array = new Uint8Array(array)
  34351. } else if (length === undefined) {
  34352. array = new Uint8Array(array, byteOffset)
  34353. } else {
  34354. array = new Uint8Array(array, byteOffset, length)
  34355. }
  34356. if (Buffer.TYPED_ARRAY_SUPPORT) {
  34357. // Return an augmented `Uint8Array` instance, for best performance
  34358. that = array
  34359. that.__proto__ = Buffer.prototype
  34360. } else {
  34361. // Fallback: Return an object instance of the Buffer class
  34362. that = fromArrayLike(that, array)
  34363. }
  34364. return that
  34365. }
  34366. function fromObject (that, obj) {
  34367. if (Buffer.isBuffer(obj)) {
  34368. var len = checked(obj.length) | 0
  34369. that = createBuffer(that, len)
  34370. if (that.length === 0) {
  34371. return that
  34372. }
  34373. obj.copy(that, 0, 0, len)
  34374. return that
  34375. }
  34376. if (obj) {
  34377. if ((typeof ArrayBuffer !== 'undefined' &&
  34378. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  34379. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  34380. return createBuffer(that, 0)
  34381. }
  34382. return fromArrayLike(that, obj)
  34383. }
  34384. if (obj.type === 'Buffer' && isArray(obj.data)) {
  34385. return fromArrayLike(that, obj.data)
  34386. }
  34387. }
  34388. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  34389. }
  34390. function checked (length) {
  34391. // Note: cannot use `length < kMaxLength()` here because that fails when
  34392. // length is NaN (which is otherwise coerced to zero.)
  34393. if (length >= kMaxLength()) {
  34394. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  34395. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  34396. }
  34397. return length | 0
  34398. }
  34399. function SlowBuffer (length) {
  34400. if (+length != length) { // eslint-disable-line eqeqeq
  34401. length = 0
  34402. }
  34403. return Buffer.alloc(+length)
  34404. }
  34405. Buffer.isBuffer = function isBuffer (b) {
  34406. return !!(b != null && b._isBuffer)
  34407. }
  34408. Buffer.compare = function compare (a, b) {
  34409. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  34410. throw new TypeError('Arguments must be Buffers')
  34411. }
  34412. if (a === b) return 0
  34413. var x = a.length
  34414. var y = b.length
  34415. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  34416. if (a[i] !== b[i]) {
  34417. x = a[i]
  34418. y = b[i]
  34419. break
  34420. }
  34421. }
  34422. if (x < y) return -1
  34423. if (y < x) return 1
  34424. return 0
  34425. }
  34426. Buffer.isEncoding = function isEncoding (encoding) {
  34427. switch (String(encoding).toLowerCase()) {
  34428. case 'hex':
  34429. case 'utf8':
  34430. case 'utf-8':
  34431. case 'ascii':
  34432. case 'latin1':
  34433. case 'binary':
  34434. case 'base64':
  34435. case 'ucs2':
  34436. case 'ucs-2':
  34437. case 'utf16le':
  34438. case 'utf-16le':
  34439. return true
  34440. default:
  34441. return false
  34442. }
  34443. }
  34444. Buffer.concat = function concat (list, length) {
  34445. if (!isArray(list)) {
  34446. throw new TypeError('"list" argument must be an Array of Buffers')
  34447. }
  34448. if (list.length === 0) {
  34449. return Buffer.alloc(0)
  34450. }
  34451. var i
  34452. if (length === undefined) {
  34453. length = 0
  34454. for (i = 0; i < list.length; ++i) {
  34455. length += list[i].length
  34456. }
  34457. }
  34458. var buffer = Buffer.allocUnsafe(length)
  34459. var pos = 0
  34460. for (i = 0; i < list.length; ++i) {
  34461. var buf = list[i]
  34462. if (!Buffer.isBuffer(buf)) {
  34463. throw new TypeError('"list" argument must be an Array of Buffers')
  34464. }
  34465. buf.copy(buffer, pos)
  34466. pos += buf.length
  34467. }
  34468. return buffer
  34469. }
  34470. function byteLength (string, encoding) {
  34471. if (Buffer.isBuffer(string)) {
  34472. return string.length
  34473. }
  34474. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  34475. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  34476. return string.byteLength
  34477. }
  34478. if (typeof string !== 'string') {
  34479. string = '' + string
  34480. }
  34481. var len = string.length
  34482. if (len === 0) return 0
  34483. // Use a for loop to avoid recursion
  34484. var loweredCase = false
  34485. for (;;) {
  34486. switch (encoding) {
  34487. case 'ascii':
  34488. case 'latin1':
  34489. case 'binary':
  34490. return len
  34491. case 'utf8':
  34492. case 'utf-8':
  34493. case undefined:
  34494. return utf8ToBytes(string).length
  34495. case 'ucs2':
  34496. case 'ucs-2':
  34497. case 'utf16le':
  34498. case 'utf-16le':
  34499. return len * 2
  34500. case 'hex':
  34501. return len >>> 1
  34502. case 'base64':
  34503. return base64ToBytes(string).length
  34504. default:
  34505. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  34506. encoding = ('' + encoding).toLowerCase()
  34507. loweredCase = true
  34508. }
  34509. }
  34510. }
  34511. Buffer.byteLength = byteLength
  34512. function slowToString (encoding, start, end) {
  34513. var loweredCase = false
  34514. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  34515. // property of a typed array.
  34516. // This behaves neither like String nor Uint8Array in that we set start/end
  34517. // to their upper/lower bounds if the value passed is out of range.
  34518. // undefined is handled specially as per ECMA-262 6th Edition,
  34519. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  34520. if (start === undefined || start < 0) {
  34521. start = 0
  34522. }
  34523. // Return early if start > this.length. Done here to prevent potential uint32
  34524. // coercion fail below.
  34525. if (start > this.length) {
  34526. return ''
  34527. }
  34528. if (end === undefined || end > this.length) {
  34529. end = this.length
  34530. }
  34531. if (end <= 0) {
  34532. return ''
  34533. }
  34534. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  34535. end >>>= 0
  34536. start >>>= 0
  34537. if (end <= start) {
  34538. return ''
  34539. }
  34540. if (!encoding) encoding = 'utf8'
  34541. while (true) {
  34542. switch (encoding) {
  34543. case 'hex':
  34544. return hexSlice(this, start, end)
  34545. case 'utf8':
  34546. case 'utf-8':
  34547. return utf8Slice(this, start, end)
  34548. case 'ascii':
  34549. return asciiSlice(this, start, end)
  34550. case 'latin1':
  34551. case 'binary':
  34552. return latin1Slice(this, start, end)
  34553. case 'base64':
  34554. return base64Slice(this, start, end)
  34555. case 'ucs2':
  34556. case 'ucs-2':
  34557. case 'utf16le':
  34558. case 'utf-16le':
  34559. return utf16leSlice(this, start, end)
  34560. default:
  34561. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  34562. encoding = (encoding + '').toLowerCase()
  34563. loweredCase = true
  34564. }
  34565. }
  34566. }
  34567. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  34568. // Buffer instances.
  34569. Buffer.prototype._isBuffer = true
  34570. function swap (b, n, m) {
  34571. var i = b[n]
  34572. b[n] = b[m]
  34573. b[m] = i
  34574. }
  34575. Buffer.prototype.swap16 = function swap16 () {
  34576. var len = this.length
  34577. if (len % 2 !== 0) {
  34578. throw new RangeError('Buffer size must be a multiple of 16-bits')
  34579. }
  34580. for (var i = 0; i < len; i += 2) {
  34581. swap(this, i, i + 1)
  34582. }
  34583. return this
  34584. }
  34585. Buffer.prototype.swap32 = function swap32 () {
  34586. var len = this.length
  34587. if (len % 4 !== 0) {
  34588. throw new RangeError('Buffer size must be a multiple of 32-bits')
  34589. }
  34590. for (var i = 0; i < len; i += 4) {
  34591. swap(this, i, i + 3)
  34592. swap(this, i + 1, i + 2)
  34593. }
  34594. return this
  34595. }
  34596. Buffer.prototype.swap64 = function swap64 () {
  34597. var len = this.length
  34598. if (len % 8 !== 0) {
  34599. throw new RangeError('Buffer size must be a multiple of 64-bits')
  34600. }
  34601. for (var i = 0; i < len; i += 8) {
  34602. swap(this, i, i + 7)
  34603. swap(this, i + 1, i + 6)
  34604. swap(this, i + 2, i + 5)
  34605. swap(this, i + 3, i + 4)
  34606. }
  34607. return this
  34608. }
  34609. Buffer.prototype.toString = function toString () {
  34610. var length = this.length | 0
  34611. if (length === 0) return ''
  34612. if (arguments.length === 0) return utf8Slice(this, 0, length)
  34613. return slowToString.apply(this, arguments)
  34614. }
  34615. Buffer.prototype.equals = function equals (b) {
  34616. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  34617. if (this === b) return true
  34618. return Buffer.compare(this, b) === 0
  34619. }
  34620. Buffer.prototype.inspect = function inspect () {
  34621. var str = ''
  34622. var max = exports.INSPECT_MAX_BYTES
  34623. if (this.length > 0) {
  34624. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  34625. if (this.length > max) str += ' ... '
  34626. }
  34627. return '<Buffer ' + str + '>'
  34628. }
  34629. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  34630. if (!Buffer.isBuffer(target)) {
  34631. throw new TypeError('Argument must be a Buffer')
  34632. }
  34633. if (start === undefined) {
  34634. start = 0
  34635. }
  34636. if (end === undefined) {
  34637. end = target ? target.length : 0
  34638. }
  34639. if (thisStart === undefined) {
  34640. thisStart = 0
  34641. }
  34642. if (thisEnd === undefined) {
  34643. thisEnd = this.length
  34644. }
  34645. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  34646. throw new RangeError('out of range index')
  34647. }
  34648. if (thisStart >= thisEnd && start >= end) {
  34649. return 0
  34650. }
  34651. if (thisStart >= thisEnd) {
  34652. return -1
  34653. }
  34654. if (start >= end) {
  34655. return 1
  34656. }
  34657. start >>>= 0
  34658. end >>>= 0
  34659. thisStart >>>= 0
  34660. thisEnd >>>= 0
  34661. if (this === target) return 0
  34662. var x = thisEnd - thisStart
  34663. var y = end - start
  34664. var len = Math.min(x, y)
  34665. var thisCopy = this.slice(thisStart, thisEnd)
  34666. var targetCopy = target.slice(start, end)
  34667. for (var i = 0; i < len; ++i) {
  34668. if (thisCopy[i] !== targetCopy[i]) {
  34669. x = thisCopy[i]
  34670. y = targetCopy[i]
  34671. break
  34672. }
  34673. }
  34674. if (x < y) return -1
  34675. if (y < x) return 1
  34676. return 0
  34677. }
  34678. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  34679. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  34680. //
  34681. // Arguments:
  34682. // - buffer - a Buffer to search
  34683. // - val - a string, Buffer, or number
  34684. // - byteOffset - an index into `buffer`; will be clamped to an int32
  34685. // - encoding - an optional encoding, relevant is val is a string
  34686. // - dir - true for indexOf, false for lastIndexOf
  34687. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  34688. // Empty buffer means no match
  34689. if (buffer.length === 0) return -1
  34690. // Normalize byteOffset
  34691. if (typeof byteOffset === 'string') {
  34692. encoding = byteOffset
  34693. byteOffset = 0
  34694. } else if (byteOffset > 0x7fffffff) {
  34695. byteOffset = 0x7fffffff
  34696. } else if (byteOffset < -0x80000000) {
  34697. byteOffset = -0x80000000
  34698. }
  34699. byteOffset = +byteOffset // Coerce to Number.
  34700. if (isNaN(byteOffset)) {
  34701. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  34702. byteOffset = dir ? 0 : (buffer.length - 1)
  34703. }
  34704. // Normalize byteOffset: negative offsets start from the end of the buffer
  34705. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  34706. if (byteOffset >= buffer.length) {
  34707. if (dir) return -1
  34708. else byteOffset = buffer.length - 1
  34709. } else if (byteOffset < 0) {
  34710. if (dir) byteOffset = 0
  34711. else return -1
  34712. }
  34713. // Normalize val
  34714. if (typeof val === 'string') {
  34715. val = Buffer.from(val, encoding)
  34716. }
  34717. // Finally, search either indexOf (if dir is true) or lastIndexOf
  34718. if (Buffer.isBuffer(val)) {
  34719. // Special case: looking for empty string/buffer always fails
  34720. if (val.length === 0) {
  34721. return -1
  34722. }
  34723. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  34724. } else if (typeof val === 'number') {
  34725. val = val & 0xFF // Search for a byte value [0-255]
  34726. if (Buffer.TYPED_ARRAY_SUPPORT &&
  34727. typeof Uint8Array.prototype.indexOf === 'function') {
  34728. if (dir) {
  34729. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  34730. } else {
  34731. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  34732. }
  34733. }
  34734. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  34735. }
  34736. throw new TypeError('val must be string, number or Buffer')
  34737. }
  34738. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  34739. var indexSize = 1
  34740. var arrLength = arr.length
  34741. var valLength = val.length
  34742. if (encoding !== undefined) {
  34743. encoding = String(encoding).toLowerCase()
  34744. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  34745. encoding === 'utf16le' || encoding === 'utf-16le') {
  34746. if (arr.length < 2 || val.length < 2) {
  34747. return -1
  34748. }
  34749. indexSize = 2
  34750. arrLength /= 2
  34751. valLength /= 2
  34752. byteOffset /= 2
  34753. }
  34754. }
  34755. function read (buf, i) {
  34756. if (indexSize === 1) {
  34757. return buf[i]
  34758. } else {
  34759. return buf.readUInt16BE(i * indexSize)
  34760. }
  34761. }
  34762. var i
  34763. if (dir) {
  34764. var foundIndex = -1
  34765. for (i = byteOffset; i < arrLength; i++) {
  34766. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  34767. if (foundIndex === -1) foundIndex = i
  34768. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  34769. } else {
  34770. if (foundIndex !== -1) i -= i - foundIndex
  34771. foundIndex = -1
  34772. }
  34773. }
  34774. } else {
  34775. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  34776. for (i = byteOffset; i >= 0; i--) {
  34777. var found = true
  34778. for (var j = 0; j < valLength; j++) {
  34779. if (read(arr, i + j) !== read(val, j)) {
  34780. found = false
  34781. break
  34782. }
  34783. }
  34784. if (found) return i
  34785. }
  34786. }
  34787. return -1
  34788. }
  34789. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  34790. return this.indexOf(val, byteOffset, encoding) !== -1
  34791. }
  34792. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  34793. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  34794. }
  34795. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  34796. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  34797. }
  34798. function hexWrite (buf, string, offset, length) {
  34799. offset = Number(offset) || 0
  34800. var remaining = buf.length - offset
  34801. if (!length) {
  34802. length = remaining
  34803. } else {
  34804. length = Number(length)
  34805. if (length > remaining) {
  34806. length = remaining
  34807. }
  34808. }
  34809. // must be an even number of digits
  34810. var strLen = string.length
  34811. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  34812. if (length > strLen / 2) {
  34813. length = strLen / 2
  34814. }
  34815. for (var i = 0; i < length; ++i) {
  34816. var parsed = parseInt(string.substr(i * 2, 2), 16)
  34817. if (isNaN(parsed)) return i
  34818. buf[offset + i] = parsed
  34819. }
  34820. return i
  34821. }
  34822. function utf8Write (buf, string, offset, length) {
  34823. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  34824. }
  34825. function asciiWrite (buf, string, offset, length) {
  34826. return blitBuffer(asciiToBytes(string), buf, offset, length)
  34827. }
  34828. function latin1Write (buf, string, offset, length) {
  34829. return asciiWrite(buf, string, offset, length)
  34830. }
  34831. function base64Write (buf, string, offset, length) {
  34832. return blitBuffer(base64ToBytes(string), buf, offset, length)
  34833. }
  34834. function ucs2Write (buf, string, offset, length) {
  34835. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  34836. }
  34837. Buffer.prototype.write = function write (string, offset, length, encoding) {
  34838. // Buffer#write(string)
  34839. if (offset === undefined) {
  34840. encoding = 'utf8'
  34841. length = this.length
  34842. offset = 0
  34843. // Buffer#write(string, encoding)
  34844. } else if (length === undefined && typeof offset === 'string') {
  34845. encoding = offset
  34846. length = this.length
  34847. offset = 0
  34848. // Buffer#write(string, offset[, length][, encoding])
  34849. } else if (isFinite(offset)) {
  34850. offset = offset | 0
  34851. if (isFinite(length)) {
  34852. length = length | 0
  34853. if (encoding === undefined) encoding = 'utf8'
  34854. } else {
  34855. encoding = length
  34856. length = undefined
  34857. }
  34858. // legacy write(string, encoding, offset, length) - remove in v0.13
  34859. } else {
  34860. throw new Error(
  34861. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  34862. )
  34863. }
  34864. var remaining = this.length - offset
  34865. if (length === undefined || length > remaining) length = remaining
  34866. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  34867. throw new RangeError('Attempt to write outside buffer bounds')
  34868. }
  34869. if (!encoding) encoding = 'utf8'
  34870. var loweredCase = false
  34871. for (;;) {
  34872. switch (encoding) {
  34873. case 'hex':
  34874. return hexWrite(this, string, offset, length)
  34875. case 'utf8':
  34876. case 'utf-8':
  34877. return utf8Write(this, string, offset, length)
  34878. case 'ascii':
  34879. return asciiWrite(this, string, offset, length)
  34880. case 'latin1':
  34881. case 'binary':
  34882. return latin1Write(this, string, offset, length)
  34883. case 'base64':
  34884. // Warning: maxLength not taken into account in base64Write
  34885. return base64Write(this, string, offset, length)
  34886. case 'ucs2':
  34887. case 'ucs-2':
  34888. case 'utf16le':
  34889. case 'utf-16le':
  34890. return ucs2Write(this, string, offset, length)
  34891. default:
  34892. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  34893. encoding = ('' + encoding).toLowerCase()
  34894. loweredCase = true
  34895. }
  34896. }
  34897. }
  34898. Buffer.prototype.toJSON = function toJSON () {
  34899. return {
  34900. type: 'Buffer',
  34901. data: Array.prototype.slice.call(this._arr || this, 0)
  34902. }
  34903. }
  34904. function base64Slice (buf, start, end) {
  34905. if (start === 0 && end === buf.length) {
  34906. return base64.fromByteArray(buf)
  34907. } else {
  34908. return base64.fromByteArray(buf.slice(start, end))
  34909. }
  34910. }
  34911. function utf8Slice (buf, start, end) {
  34912. end = Math.min(buf.length, end)
  34913. var res = []
  34914. var i = start
  34915. while (i < end) {
  34916. var firstByte = buf[i]
  34917. var codePoint = null
  34918. var bytesPerSequence = (firstByte > 0xEF) ? 4
  34919. : (firstByte > 0xDF) ? 3
  34920. : (firstByte > 0xBF) ? 2
  34921. : 1
  34922. if (i + bytesPerSequence <= end) {
  34923. var secondByte, thirdByte, fourthByte, tempCodePoint
  34924. switch (bytesPerSequence) {
  34925. case 1:
  34926. if (firstByte < 0x80) {
  34927. codePoint = firstByte
  34928. }
  34929. break
  34930. case 2:
  34931. secondByte = buf[i + 1]
  34932. if ((secondByte & 0xC0) === 0x80) {
  34933. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  34934. if (tempCodePoint > 0x7F) {
  34935. codePoint = tempCodePoint
  34936. }
  34937. }
  34938. break
  34939. case 3:
  34940. secondByte = buf[i + 1]
  34941. thirdByte = buf[i + 2]
  34942. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  34943. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  34944. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  34945. codePoint = tempCodePoint
  34946. }
  34947. }
  34948. break
  34949. case 4:
  34950. secondByte = buf[i + 1]
  34951. thirdByte = buf[i + 2]
  34952. fourthByte = buf[i + 3]
  34953. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  34954. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  34955. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  34956. codePoint = tempCodePoint
  34957. }
  34958. }
  34959. }
  34960. }
  34961. if (codePoint === null) {
  34962. // we did not generate a valid codePoint so insert a
  34963. // replacement char (U+FFFD) and advance only 1 byte
  34964. codePoint = 0xFFFD
  34965. bytesPerSequence = 1
  34966. } else if (codePoint > 0xFFFF) {
  34967. // encode to utf16 (surrogate pair dance)
  34968. codePoint -= 0x10000
  34969. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  34970. codePoint = 0xDC00 | codePoint & 0x3FF
  34971. }
  34972. res.push(codePoint)
  34973. i += bytesPerSequence
  34974. }
  34975. return decodeCodePointsArray(res)
  34976. }
  34977. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  34978. // the lowest limit is Chrome, with 0x10000 args.
  34979. // We go 1 magnitude less, for safety
  34980. var MAX_ARGUMENTS_LENGTH = 0x1000
  34981. function decodeCodePointsArray (codePoints) {
  34982. var len = codePoints.length
  34983. if (len <= MAX_ARGUMENTS_LENGTH) {
  34984. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  34985. }
  34986. // Decode in chunks to avoid "call stack size exceeded".
  34987. var res = ''
  34988. var i = 0
  34989. while (i < len) {
  34990. res += String.fromCharCode.apply(
  34991. String,
  34992. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  34993. )
  34994. }
  34995. return res
  34996. }
  34997. function asciiSlice (buf, start, end) {
  34998. var ret = ''
  34999. end = Math.min(buf.length, end)
  35000. for (var i = start; i < end; ++i) {
  35001. ret += String.fromCharCode(buf[i] & 0x7F)
  35002. }
  35003. return ret
  35004. }
  35005. function latin1Slice (buf, start, end) {
  35006. var ret = ''
  35007. end = Math.min(buf.length, end)
  35008. for (var i = start; i < end; ++i) {
  35009. ret += String.fromCharCode(buf[i])
  35010. }
  35011. return ret
  35012. }
  35013. function hexSlice (buf, start, end) {
  35014. var len = buf.length
  35015. if (!start || start < 0) start = 0
  35016. if (!end || end < 0 || end > len) end = len
  35017. var out = ''
  35018. for (var i = start; i < end; ++i) {
  35019. out += toHex(buf[i])
  35020. }
  35021. return out
  35022. }
  35023. function utf16leSlice (buf, start, end) {
  35024. var bytes = buf.slice(start, end)
  35025. var res = ''
  35026. for (var i = 0; i < bytes.length; i += 2) {
  35027. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  35028. }
  35029. return res
  35030. }
  35031. Buffer.prototype.slice = function slice (start, end) {
  35032. var len = this.length
  35033. start = ~~start
  35034. end = end === undefined ? len : ~~end
  35035. if (start < 0) {
  35036. start += len
  35037. if (start < 0) start = 0
  35038. } else if (start > len) {
  35039. start = len
  35040. }
  35041. if (end < 0) {
  35042. end += len
  35043. if (end < 0) end = 0
  35044. } else if (end > len) {
  35045. end = len
  35046. }
  35047. if (end < start) end = start
  35048. var newBuf
  35049. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35050. newBuf = this.subarray(start, end)
  35051. newBuf.__proto__ = Buffer.prototype
  35052. } else {
  35053. var sliceLen = end - start
  35054. newBuf = new Buffer(sliceLen, undefined)
  35055. for (var i = 0; i < sliceLen; ++i) {
  35056. newBuf[i] = this[i + start]
  35057. }
  35058. }
  35059. return newBuf
  35060. }
  35061. /*
  35062. * Need to make sure that buffer isn't trying to write out of bounds.
  35063. */
  35064. function checkOffset (offset, ext, length) {
  35065. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  35066. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  35067. }
  35068. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  35069. offset = offset | 0
  35070. byteLength = byteLength | 0
  35071. if (!noAssert) checkOffset(offset, byteLength, this.length)
  35072. var val = this[offset]
  35073. var mul = 1
  35074. var i = 0
  35075. while (++i < byteLength && (mul *= 0x100)) {
  35076. val += this[offset + i] * mul
  35077. }
  35078. return val
  35079. }
  35080. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  35081. offset = offset | 0
  35082. byteLength = byteLength | 0
  35083. if (!noAssert) {
  35084. checkOffset(offset, byteLength, this.length)
  35085. }
  35086. var val = this[offset + --byteLength]
  35087. var mul = 1
  35088. while (byteLength > 0 && (mul *= 0x100)) {
  35089. val += this[offset + --byteLength] * mul
  35090. }
  35091. return val
  35092. }
  35093. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  35094. if (!noAssert) checkOffset(offset, 1, this.length)
  35095. return this[offset]
  35096. }
  35097. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  35098. if (!noAssert) checkOffset(offset, 2, this.length)
  35099. return this[offset] | (this[offset + 1] << 8)
  35100. }
  35101. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  35102. if (!noAssert) checkOffset(offset, 2, this.length)
  35103. return (this[offset] << 8) | this[offset + 1]
  35104. }
  35105. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  35106. if (!noAssert) checkOffset(offset, 4, this.length)
  35107. return ((this[offset]) |
  35108. (this[offset + 1] << 8) |
  35109. (this[offset + 2] << 16)) +
  35110. (this[offset + 3] * 0x1000000)
  35111. }
  35112. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  35113. if (!noAssert) checkOffset(offset, 4, this.length)
  35114. return (this[offset] * 0x1000000) +
  35115. ((this[offset + 1] << 16) |
  35116. (this[offset + 2] << 8) |
  35117. this[offset + 3])
  35118. }
  35119. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  35120. offset = offset | 0
  35121. byteLength = byteLength | 0
  35122. if (!noAssert) checkOffset(offset, byteLength, this.length)
  35123. var val = this[offset]
  35124. var mul = 1
  35125. var i = 0
  35126. while (++i < byteLength && (mul *= 0x100)) {
  35127. val += this[offset + i] * mul
  35128. }
  35129. mul *= 0x80
  35130. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  35131. return val
  35132. }
  35133. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  35134. offset = offset | 0
  35135. byteLength = byteLength | 0
  35136. if (!noAssert) checkOffset(offset, byteLength, this.length)
  35137. var i = byteLength
  35138. var mul = 1
  35139. var val = this[offset + --i]
  35140. while (i > 0 && (mul *= 0x100)) {
  35141. val += this[offset + --i] * mul
  35142. }
  35143. mul *= 0x80
  35144. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  35145. return val
  35146. }
  35147. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  35148. if (!noAssert) checkOffset(offset, 1, this.length)
  35149. if (!(this[offset] & 0x80)) return (this[offset])
  35150. return ((0xff - this[offset] + 1) * -1)
  35151. }
  35152. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  35153. if (!noAssert) checkOffset(offset, 2, this.length)
  35154. var val = this[offset] | (this[offset + 1] << 8)
  35155. return (val & 0x8000) ? val | 0xFFFF0000 : val
  35156. }
  35157. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  35158. if (!noAssert) checkOffset(offset, 2, this.length)
  35159. var val = this[offset + 1] | (this[offset] << 8)
  35160. return (val & 0x8000) ? val | 0xFFFF0000 : val
  35161. }
  35162. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  35163. if (!noAssert) checkOffset(offset, 4, this.length)
  35164. return (this[offset]) |
  35165. (this[offset + 1] << 8) |
  35166. (this[offset + 2] << 16) |
  35167. (this[offset + 3] << 24)
  35168. }
  35169. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  35170. if (!noAssert) checkOffset(offset, 4, this.length)
  35171. return (this[offset] << 24) |
  35172. (this[offset + 1] << 16) |
  35173. (this[offset + 2] << 8) |
  35174. (this[offset + 3])
  35175. }
  35176. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  35177. if (!noAssert) checkOffset(offset, 4, this.length)
  35178. return ieee754.read(this, offset, true, 23, 4)
  35179. }
  35180. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  35181. if (!noAssert) checkOffset(offset, 4, this.length)
  35182. return ieee754.read(this, offset, false, 23, 4)
  35183. }
  35184. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  35185. if (!noAssert) checkOffset(offset, 8, this.length)
  35186. return ieee754.read(this, offset, true, 52, 8)
  35187. }
  35188. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  35189. if (!noAssert) checkOffset(offset, 8, this.length)
  35190. return ieee754.read(this, offset, false, 52, 8)
  35191. }
  35192. function checkInt (buf, value, offset, ext, max, min) {
  35193. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  35194. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  35195. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  35196. }
  35197. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  35198. value = +value
  35199. offset = offset | 0
  35200. byteLength = byteLength | 0
  35201. if (!noAssert) {
  35202. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  35203. checkInt(this, value, offset, byteLength, maxBytes, 0)
  35204. }
  35205. var mul = 1
  35206. var i = 0
  35207. this[offset] = value & 0xFF
  35208. while (++i < byteLength && (mul *= 0x100)) {
  35209. this[offset + i] = (value / mul) & 0xFF
  35210. }
  35211. return offset + byteLength
  35212. }
  35213. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  35214. value = +value
  35215. offset = offset | 0
  35216. byteLength = byteLength | 0
  35217. if (!noAssert) {
  35218. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  35219. checkInt(this, value, offset, byteLength, maxBytes, 0)
  35220. }
  35221. var i = byteLength - 1
  35222. var mul = 1
  35223. this[offset + i] = value & 0xFF
  35224. while (--i >= 0 && (mul *= 0x100)) {
  35225. this[offset + i] = (value / mul) & 0xFF
  35226. }
  35227. return offset + byteLength
  35228. }
  35229. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  35230. value = +value
  35231. offset = offset | 0
  35232. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  35233. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  35234. this[offset] = (value & 0xff)
  35235. return offset + 1
  35236. }
  35237. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  35238. if (value < 0) value = 0xffff + value + 1
  35239. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  35240. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  35241. (littleEndian ? i : 1 - i) * 8
  35242. }
  35243. }
  35244. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  35245. value = +value
  35246. offset = offset | 0
  35247. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  35248. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35249. this[offset] = (value & 0xff)
  35250. this[offset + 1] = (value >>> 8)
  35251. } else {
  35252. objectWriteUInt16(this, value, offset, true)
  35253. }
  35254. return offset + 2
  35255. }
  35256. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  35257. value = +value
  35258. offset = offset | 0
  35259. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  35260. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35261. this[offset] = (value >>> 8)
  35262. this[offset + 1] = (value & 0xff)
  35263. } else {
  35264. objectWriteUInt16(this, value, offset, false)
  35265. }
  35266. return offset + 2
  35267. }
  35268. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  35269. if (value < 0) value = 0xffffffff + value + 1
  35270. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  35271. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  35272. }
  35273. }
  35274. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  35275. value = +value
  35276. offset = offset | 0
  35277. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  35278. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35279. this[offset + 3] = (value >>> 24)
  35280. this[offset + 2] = (value >>> 16)
  35281. this[offset + 1] = (value >>> 8)
  35282. this[offset] = (value & 0xff)
  35283. } else {
  35284. objectWriteUInt32(this, value, offset, true)
  35285. }
  35286. return offset + 4
  35287. }
  35288. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  35289. value = +value
  35290. offset = offset | 0
  35291. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  35292. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35293. this[offset] = (value >>> 24)
  35294. this[offset + 1] = (value >>> 16)
  35295. this[offset + 2] = (value >>> 8)
  35296. this[offset + 3] = (value & 0xff)
  35297. } else {
  35298. objectWriteUInt32(this, value, offset, false)
  35299. }
  35300. return offset + 4
  35301. }
  35302. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  35303. value = +value
  35304. offset = offset | 0
  35305. if (!noAssert) {
  35306. var limit = Math.pow(2, 8 * byteLength - 1)
  35307. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  35308. }
  35309. var i = 0
  35310. var mul = 1
  35311. var sub = 0
  35312. this[offset] = value & 0xFF
  35313. while (++i < byteLength && (mul *= 0x100)) {
  35314. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  35315. sub = 1
  35316. }
  35317. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  35318. }
  35319. return offset + byteLength
  35320. }
  35321. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  35322. value = +value
  35323. offset = offset | 0
  35324. if (!noAssert) {
  35325. var limit = Math.pow(2, 8 * byteLength - 1)
  35326. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  35327. }
  35328. var i = byteLength - 1
  35329. var mul = 1
  35330. var sub = 0
  35331. this[offset + i] = value & 0xFF
  35332. while (--i >= 0 && (mul *= 0x100)) {
  35333. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  35334. sub = 1
  35335. }
  35336. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  35337. }
  35338. return offset + byteLength
  35339. }
  35340. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  35341. value = +value
  35342. offset = offset | 0
  35343. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  35344. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  35345. if (value < 0) value = 0xff + value + 1
  35346. this[offset] = (value & 0xff)
  35347. return offset + 1
  35348. }
  35349. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  35350. value = +value
  35351. offset = offset | 0
  35352. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  35353. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35354. this[offset] = (value & 0xff)
  35355. this[offset + 1] = (value >>> 8)
  35356. } else {
  35357. objectWriteUInt16(this, value, offset, true)
  35358. }
  35359. return offset + 2
  35360. }
  35361. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  35362. value = +value
  35363. offset = offset | 0
  35364. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  35365. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35366. this[offset] = (value >>> 8)
  35367. this[offset + 1] = (value & 0xff)
  35368. } else {
  35369. objectWriteUInt16(this, value, offset, false)
  35370. }
  35371. return offset + 2
  35372. }
  35373. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  35374. value = +value
  35375. offset = offset | 0
  35376. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  35377. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35378. this[offset] = (value & 0xff)
  35379. this[offset + 1] = (value >>> 8)
  35380. this[offset + 2] = (value >>> 16)
  35381. this[offset + 3] = (value >>> 24)
  35382. } else {
  35383. objectWriteUInt32(this, value, offset, true)
  35384. }
  35385. return offset + 4
  35386. }
  35387. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  35388. value = +value
  35389. offset = offset | 0
  35390. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  35391. if (value < 0) value = 0xffffffff + value + 1
  35392. if (Buffer.TYPED_ARRAY_SUPPORT) {
  35393. this[offset] = (value >>> 24)
  35394. this[offset + 1] = (value >>> 16)
  35395. this[offset + 2] = (value >>> 8)
  35396. this[offset + 3] = (value & 0xff)
  35397. } else {
  35398. objectWriteUInt32(this, value, offset, false)
  35399. }
  35400. return offset + 4
  35401. }
  35402. function checkIEEE754 (buf, value, offset, ext, max, min) {
  35403. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  35404. if (offset < 0) throw new RangeError('Index out of range')
  35405. }
  35406. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  35407. if (!noAssert) {
  35408. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  35409. }
  35410. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  35411. return offset + 4
  35412. }
  35413. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  35414. return writeFloat(this, value, offset, true, noAssert)
  35415. }
  35416. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  35417. return writeFloat(this, value, offset, false, noAssert)
  35418. }
  35419. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  35420. if (!noAssert) {
  35421. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  35422. }
  35423. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  35424. return offset + 8
  35425. }
  35426. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  35427. return writeDouble(this, value, offset, true, noAssert)
  35428. }
  35429. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  35430. return writeDouble(this, value, offset, false, noAssert)
  35431. }
  35432. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  35433. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  35434. if (!start) start = 0
  35435. if (!end && end !== 0) end = this.length
  35436. if (targetStart >= target.length) targetStart = target.length
  35437. if (!targetStart) targetStart = 0
  35438. if (end > 0 && end < start) end = start
  35439. // Copy 0 bytes; we're done
  35440. if (end === start) return 0
  35441. if (target.length === 0 || this.length === 0) return 0
  35442. // Fatal error conditions
  35443. if (targetStart < 0) {
  35444. throw new RangeError('targetStart out of bounds')
  35445. }
  35446. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  35447. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  35448. // Are we oob?
  35449. if (end > this.length) end = this.length
  35450. if (target.length - targetStart < end - start) {
  35451. end = target.length - targetStart + start
  35452. }
  35453. var len = end - start
  35454. var i
  35455. if (this === target && start < targetStart && targetStart < end) {
  35456. // descending copy from end
  35457. for (i = len - 1; i >= 0; --i) {
  35458. target[i + targetStart] = this[i + start]
  35459. }
  35460. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  35461. // ascending copy from start
  35462. for (i = 0; i < len; ++i) {
  35463. target[i + targetStart] = this[i + start]
  35464. }
  35465. } else {
  35466. Uint8Array.prototype.set.call(
  35467. target,
  35468. this.subarray(start, start + len),
  35469. targetStart
  35470. )
  35471. }
  35472. return len
  35473. }
  35474. // Usage:
  35475. // buffer.fill(number[, offset[, end]])
  35476. // buffer.fill(buffer[, offset[, end]])
  35477. // buffer.fill(string[, offset[, end]][, encoding])
  35478. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  35479. // Handle string cases:
  35480. if (typeof val === 'string') {
  35481. if (typeof start === 'string') {
  35482. encoding = start
  35483. start = 0
  35484. end = this.length
  35485. } else if (typeof end === 'string') {
  35486. encoding = end
  35487. end = this.length
  35488. }
  35489. if (val.length === 1) {
  35490. var code = val.charCodeAt(0)
  35491. if (code < 256) {
  35492. val = code
  35493. }
  35494. }
  35495. if (encoding !== undefined && typeof encoding !== 'string') {
  35496. throw new TypeError('encoding must be a string')
  35497. }
  35498. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  35499. throw new TypeError('Unknown encoding: ' + encoding)
  35500. }
  35501. } else if (typeof val === 'number') {
  35502. val = val & 255
  35503. }
  35504. // Invalid ranges are not set to a default, so can range check early.
  35505. if (start < 0 || this.length < start || this.length < end) {
  35506. throw new RangeError('Out of range index')
  35507. }
  35508. if (end <= start) {
  35509. return this
  35510. }
  35511. start = start >>> 0
  35512. end = end === undefined ? this.length : end >>> 0
  35513. if (!val) val = 0
  35514. var i
  35515. if (typeof val === 'number') {
  35516. for (i = start; i < end; ++i) {
  35517. this[i] = val
  35518. }
  35519. } else {
  35520. var bytes = Buffer.isBuffer(val)
  35521. ? val
  35522. : utf8ToBytes(new Buffer(val, encoding).toString())
  35523. var len = bytes.length
  35524. for (i = 0; i < end - start; ++i) {
  35525. this[i + start] = bytes[i % len]
  35526. }
  35527. }
  35528. return this
  35529. }
  35530. // HELPER FUNCTIONS
  35531. // ================
  35532. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  35533. function base64clean (str) {
  35534. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  35535. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  35536. // Node converts strings with length < 2 to ''
  35537. if (str.length < 2) return ''
  35538. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  35539. while (str.length % 4 !== 0) {
  35540. str = str + '='
  35541. }
  35542. return str
  35543. }
  35544. function stringtrim (str) {
  35545. if (str.trim) return str.trim()
  35546. return str.replace(/^\s+|\s+$/g, '')
  35547. }
  35548. function toHex (n) {
  35549. if (n < 16) return '0' + n.toString(16)
  35550. return n.toString(16)
  35551. }
  35552. function utf8ToBytes (string, units) {
  35553. units = units || Infinity
  35554. var codePoint
  35555. var length = string.length
  35556. var leadSurrogate = null
  35557. var bytes = []
  35558. for (var i = 0; i < length; ++i) {
  35559. codePoint = string.charCodeAt(i)
  35560. // is surrogate component
  35561. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  35562. // last char was a lead
  35563. if (!leadSurrogate) {
  35564. // no lead yet
  35565. if (codePoint > 0xDBFF) {
  35566. // unexpected trail
  35567. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  35568. continue
  35569. } else if (i + 1 === length) {
  35570. // unpaired lead
  35571. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  35572. continue
  35573. }
  35574. // valid lead
  35575. leadSurrogate = codePoint
  35576. continue
  35577. }
  35578. // 2 leads in a row
  35579. if (codePoint < 0xDC00) {
  35580. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  35581. leadSurrogate = codePoint
  35582. continue
  35583. }
  35584. // valid surrogate pair
  35585. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  35586. } else if (leadSurrogate) {
  35587. // valid bmp char, but last char was a lead
  35588. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  35589. }
  35590. leadSurrogate = null
  35591. // encode utf8
  35592. if (codePoint < 0x80) {
  35593. if ((units -= 1) < 0) break
  35594. bytes.push(codePoint)
  35595. } else if (codePoint < 0x800) {
  35596. if ((units -= 2) < 0) break
  35597. bytes.push(
  35598. codePoint >> 0x6 | 0xC0,
  35599. codePoint & 0x3F | 0x80
  35600. )
  35601. } else if (codePoint < 0x10000) {
  35602. if ((units -= 3) < 0) break
  35603. bytes.push(
  35604. codePoint >> 0xC | 0xE0,
  35605. codePoint >> 0x6 & 0x3F | 0x80,
  35606. codePoint & 0x3F | 0x80
  35607. )
  35608. } else if (codePoint < 0x110000) {
  35609. if ((units -= 4) < 0) break
  35610. bytes.push(
  35611. codePoint >> 0x12 | 0xF0,
  35612. codePoint >> 0xC & 0x3F | 0x80,
  35613. codePoint >> 0x6 & 0x3F | 0x80,
  35614. codePoint & 0x3F | 0x80
  35615. )
  35616. } else {
  35617. throw new Error('Invalid code point')
  35618. }
  35619. }
  35620. return bytes
  35621. }
  35622. function asciiToBytes (str) {
  35623. var byteArray = []
  35624. for (var i = 0; i < str.length; ++i) {
  35625. // Node's code seems to be doing this and not & 0x7F..
  35626. byteArray.push(str.charCodeAt(i) & 0xFF)
  35627. }
  35628. return byteArray
  35629. }
  35630. function utf16leToBytes (str, units) {
  35631. var c, hi, lo
  35632. var byteArray = []
  35633. for (var i = 0; i < str.length; ++i) {
  35634. if ((units -= 2) < 0) break
  35635. c = str.charCodeAt(i)
  35636. hi = c >> 8
  35637. lo = c % 256
  35638. byteArray.push(lo)
  35639. byteArray.push(hi)
  35640. }
  35641. return byteArray
  35642. }
  35643. function base64ToBytes (str) {
  35644. return base64.toByteArray(base64clean(str))
  35645. }
  35646. function blitBuffer (src, dst, offset, length) {
  35647. for (var i = 0; i < length; ++i) {
  35648. if ((i + offset >= dst.length) || (i >= src.length)) break
  35649. dst[i + offset] = src[i]
  35650. }
  35651. return i
  35652. }
  35653. function isnan (val) {
  35654. return val !== val // eslint-disable-line no-self-compare
  35655. }
  35656. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 2)))
  35657. /***/ }),
  35658. /* 248 */
  35659. /*!*****************************************!*\
  35660. !*** ./node_modules/base64-js/index.js ***!
  35661. \*****************************************/
  35662. /*! no static exports found */
  35663. /***/ (function(module, exports, __webpack_require__) {
  35664. "use strict";
  35665. exports.byteLength = byteLength
  35666. exports.toByteArray = toByteArray
  35667. exports.fromByteArray = fromByteArray
  35668. var lookup = []
  35669. var revLookup = []
  35670. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  35671. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  35672. for (var i = 0, len = code.length; i < len; ++i) {
  35673. lookup[i] = code[i]
  35674. revLookup[code.charCodeAt(i)] = i
  35675. }
  35676. // Support decoding URL-safe base64 strings, as Node.js does.
  35677. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  35678. revLookup['-'.charCodeAt(0)] = 62
  35679. revLookup['_'.charCodeAt(0)] = 63
  35680. function getLens (b64) {
  35681. var len = b64.length
  35682. if (len % 4 > 0) {
  35683. throw new Error('Invalid string. Length must be a multiple of 4')
  35684. }
  35685. // Trim off extra bytes after placeholder bytes are found
  35686. // See: https://github.com/beatgammit/base64-js/issues/42
  35687. var validLen = b64.indexOf('=')
  35688. if (validLen === -1) validLen = len
  35689. var placeHoldersLen = validLen === len
  35690. ? 0
  35691. : 4 - (validLen % 4)
  35692. return [validLen, placeHoldersLen]
  35693. }
  35694. // base64 is 4/3 + up to two characters of the original data
  35695. function byteLength (b64) {
  35696. var lens = getLens(b64)
  35697. var validLen = lens[0]
  35698. var placeHoldersLen = lens[1]
  35699. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  35700. }
  35701. function _byteLength (b64, validLen, placeHoldersLen) {
  35702. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  35703. }
  35704. function toByteArray (b64) {
  35705. var tmp
  35706. var lens = getLens(b64)
  35707. var validLen = lens[0]
  35708. var placeHoldersLen = lens[1]
  35709. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  35710. var curByte = 0
  35711. // if there are placeholders, only get up to the last complete 4 chars
  35712. var len = placeHoldersLen > 0
  35713. ? validLen - 4
  35714. : validLen
  35715. var i
  35716. for (i = 0; i < len; i += 4) {
  35717. tmp =
  35718. (revLookup[b64.charCodeAt(i)] << 18) |
  35719. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  35720. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  35721. revLookup[b64.charCodeAt(i + 3)]
  35722. arr[curByte++] = (tmp >> 16) & 0xFF
  35723. arr[curByte++] = (tmp >> 8) & 0xFF
  35724. arr[curByte++] = tmp & 0xFF
  35725. }
  35726. if (placeHoldersLen === 2) {
  35727. tmp =
  35728. (revLookup[b64.charCodeAt(i)] << 2) |
  35729. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  35730. arr[curByte++] = tmp & 0xFF
  35731. }
  35732. if (placeHoldersLen === 1) {
  35733. tmp =
  35734. (revLookup[b64.charCodeAt(i)] << 10) |
  35735. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  35736. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  35737. arr[curByte++] = (tmp >> 8) & 0xFF
  35738. arr[curByte++] = tmp & 0xFF
  35739. }
  35740. return arr
  35741. }
  35742. function tripletToBase64 (num) {
  35743. return lookup[num >> 18 & 0x3F] +
  35744. lookup[num >> 12 & 0x3F] +
  35745. lookup[num >> 6 & 0x3F] +
  35746. lookup[num & 0x3F]
  35747. }
  35748. function encodeChunk (uint8, start, end) {
  35749. var tmp
  35750. var output = []
  35751. for (var i = start; i < end; i += 3) {
  35752. tmp =
  35753. ((uint8[i] << 16) & 0xFF0000) +
  35754. ((uint8[i + 1] << 8) & 0xFF00) +
  35755. (uint8[i + 2] & 0xFF)
  35756. output.push(tripletToBase64(tmp))
  35757. }
  35758. return output.join('')
  35759. }
  35760. function fromByteArray (uint8) {
  35761. var tmp
  35762. var len = uint8.length
  35763. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  35764. var parts = []
  35765. var maxChunkLength = 16383 // must be multiple of 3
  35766. // go through the array every three bytes, we'll deal with trailing stuff later
  35767. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  35768. parts.push(encodeChunk(
  35769. uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)
  35770. ))
  35771. }
  35772. // pad the end with zeros, but make sure to not forget the extra bytes
  35773. if (extraBytes === 1) {
  35774. tmp = uint8[len - 1]
  35775. parts.push(
  35776. lookup[tmp >> 2] +
  35777. lookup[(tmp << 4) & 0x3F] +
  35778. '=='
  35779. )
  35780. } else if (extraBytes === 2) {
  35781. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  35782. parts.push(
  35783. lookup[tmp >> 10] +
  35784. lookup[(tmp >> 4) & 0x3F] +
  35785. lookup[(tmp << 2) & 0x3F] +
  35786. '='
  35787. )
  35788. }
  35789. return parts.join('')
  35790. }
  35791. /***/ }),
  35792. /* 249 */
  35793. /*!***************************************!*\
  35794. !*** ./node_modules/ieee754/index.js ***!
  35795. \***************************************/
  35796. /*! no static exports found */
  35797. /***/ (function(module, exports) {
  35798. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  35799. var e, m
  35800. var eLen = (nBytes * 8) - mLen - 1
  35801. var eMax = (1 << eLen) - 1
  35802. var eBias = eMax >> 1
  35803. var nBits = -7
  35804. var i = isLE ? (nBytes - 1) : 0
  35805. var d = isLE ? -1 : 1
  35806. var s = buffer[offset + i]
  35807. i += d
  35808. e = s & ((1 << (-nBits)) - 1)
  35809. s >>= (-nBits)
  35810. nBits += eLen
  35811. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  35812. m = e & ((1 << (-nBits)) - 1)
  35813. e >>= (-nBits)
  35814. nBits += mLen
  35815. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  35816. if (e === 0) {
  35817. e = 1 - eBias
  35818. } else if (e === eMax) {
  35819. return m ? NaN : ((s ? -1 : 1) * Infinity)
  35820. } else {
  35821. m = m + Math.pow(2, mLen)
  35822. e = e - eBias
  35823. }
  35824. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  35825. }
  35826. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  35827. var e, m, c
  35828. var eLen = (nBytes * 8) - mLen - 1
  35829. var eMax = (1 << eLen) - 1
  35830. var eBias = eMax >> 1
  35831. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  35832. var i = isLE ? 0 : (nBytes - 1)
  35833. var d = isLE ? 1 : -1
  35834. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  35835. value = Math.abs(value)
  35836. if (isNaN(value) || value === Infinity) {
  35837. m = isNaN(value) ? 1 : 0
  35838. e = eMax
  35839. } else {
  35840. e = Math.floor(Math.log(value) / Math.LN2)
  35841. if (value * (c = Math.pow(2, -e)) < 1) {
  35842. e--
  35843. c *= 2
  35844. }
  35845. if (e + eBias >= 1) {
  35846. value += rt / c
  35847. } else {
  35848. value += rt * Math.pow(2, 1 - eBias)
  35849. }
  35850. if (value * c >= 2) {
  35851. e++
  35852. c /= 2
  35853. }
  35854. if (e + eBias >= eMax) {
  35855. m = 0
  35856. e = eMax
  35857. } else if (e + eBias >= 1) {
  35858. m = ((value * c) - 1) * Math.pow(2, mLen)
  35859. e = e + eBias
  35860. } else {
  35861. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  35862. e = 0
  35863. }
  35864. }
  35865. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  35866. e = (e << mLen) | m
  35867. eLen += mLen
  35868. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  35869. buffer[offset + i - d] |= s * 128
  35870. }
  35871. /***/ }),
  35872. /* 250 */
  35873. /*!***************************************!*\
  35874. !*** ./node_modules/isarray/index.js ***!
  35875. \***************************************/
  35876. /*! no static exports found */
  35877. /***/ (function(module, exports) {
  35878. var toString = {}.toString;
  35879. module.exports = Array.isArray || function (arr) {
  35880. return toString.call(arr) == '[object Array]';
  35881. };
  35882. /***/ }),
  35883. /* 251 */,
  35884. /* 252 */,
  35885. /* 253 */,
  35886. /* 254 */,
  35887. /* 255 */,
  35888. /* 256 */,
  35889. /* 257 */,
  35890. /* 258 */,
  35891. /* 259 */,
  35892. /* 260 */,
  35893. /* 261 */,
  35894. /* 262 */,
  35895. /* 263 */,
  35896. /* 264 */,
  35897. /* 265 */,
  35898. /* 266 */,
  35899. /* 267 */,
  35900. /* 268 */,
  35901. /* 269 */,
  35902. /* 270 */,
  35903. /* 271 */,
  35904. /* 272 */,
  35905. /* 273 */,
  35906. /* 274 */,
  35907. /* 275 */,
  35908. /* 276 */,
  35909. /* 277 */,
  35910. /* 278 */,
  35911. /* 279 */,
  35912. /* 280 */,
  35913. /* 281 */,
  35914. /* 282 */,
  35915. /* 283 */,
  35916. /* 284 */,
  35917. /* 285 */,
  35918. /* 286 */,
  35919. /* 287 */,
  35920. /* 288 */,
  35921. /* 289 */,
  35922. /* 290 */,
  35923. /* 291 */,
  35924. /* 292 */,
  35925. /* 293 */,
  35926. /* 294 */,
  35927. /* 295 */,
  35928. /* 296 */,
  35929. /* 297 */,
  35930. /* 298 */,
  35931. /* 299 */,
  35932. /* 300 */,
  35933. /* 301 */,
  35934. /* 302 */,
  35935. /* 303 */,
  35936. /* 304 */,
  35937. /* 305 */,
  35938. /* 306 */,
  35939. /* 307 */
  35940. /*!**********************************************************!*\
  35941. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  35942. \**********************************************************/
  35943. /*! no static exports found */
  35944. /***/ (function(module, exports, __webpack_require__) {
  35945. module.exports = __webpack_require__(/*! regenerator-runtime */ 308);
  35946. /***/ }),
  35947. /* 308 */
  35948. /*!************************************************************!*\
  35949. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  35950. \************************************************************/
  35951. /*! no static exports found */
  35952. /***/ (function(module, exports, __webpack_require__) {
  35953. /**
  35954. * Copyright (c) 2014-present, Facebook, Inc.
  35955. *
  35956. * This source code is licensed under the MIT license found in the
  35957. * LICENSE file in the root directory of this source tree.
  35958. */
  35959. // This method of obtaining a reference to the global object needs to be
  35960. // kept identical to the way it is obtained in runtime.js
  35961. var g = (function() {
  35962. return this || (typeof self === "object" && self);
  35963. })() || Function("return this")();
  35964. // Use `getOwnPropertyNames` because not all browsers support calling
  35965. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  35966. var hadRuntime = g.regeneratorRuntime &&
  35967. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  35968. // Save the old regeneratorRuntime in case it needs to be restored later.
  35969. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  35970. // Force reevalutation of runtime.js.
  35971. g.regeneratorRuntime = undefined;
  35972. module.exports = __webpack_require__(/*! ./runtime */ 309);
  35973. if (hadRuntime) {
  35974. // Restore the original runtime.
  35975. g.regeneratorRuntime = oldRuntime;
  35976. } else {
  35977. // Remove the global property added by runtime.js.
  35978. try {
  35979. delete g.regeneratorRuntime;
  35980. } catch(e) {
  35981. g.regeneratorRuntime = undefined;
  35982. }
  35983. }
  35984. /***/ }),
  35985. /* 309 */
  35986. /*!*****************************************************!*\
  35987. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  35988. \*****************************************************/
  35989. /*! no static exports found */
  35990. /***/ (function(module, exports) {
  35991. /**
  35992. * Copyright (c) 2014-present, Facebook, Inc.
  35993. *
  35994. * This source code is licensed under the MIT license found in the
  35995. * LICENSE file in the root directory of this source tree.
  35996. */
  35997. !(function(global) {
  35998. "use strict";
  35999. var Op = Object.prototype;
  36000. var hasOwn = Op.hasOwnProperty;
  36001. var undefined; // More compressible than void 0.
  36002. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  36003. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  36004. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  36005. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  36006. var inModule = typeof module === "object";
  36007. var runtime = global.regeneratorRuntime;
  36008. if (runtime) {
  36009. if (inModule) {
  36010. // If regeneratorRuntime is defined globally and we're in a module,
  36011. // make the exports object identical to regeneratorRuntime.
  36012. module.exports = runtime;
  36013. }
  36014. // Don't bother evaluating the rest of this file if the runtime was
  36015. // already defined globally.
  36016. return;
  36017. }
  36018. // Define the runtime globally (as expected by generated code) as either
  36019. // module.exports (if we're in a module) or a new, empty object.
  36020. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  36021. function wrap(innerFn, outerFn, self, tryLocsList) {
  36022. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  36023. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  36024. var generator = Object.create(protoGenerator.prototype);
  36025. var context = new Context(tryLocsList || []);
  36026. // The ._invoke method unifies the implementations of the .next,
  36027. // .throw, and .return methods.
  36028. generator._invoke = makeInvokeMethod(innerFn, self, context);
  36029. return generator;
  36030. }
  36031. runtime.wrap = wrap;
  36032. // Try/catch helper to minimize deoptimizations. Returns a completion
  36033. // record like context.tryEntries[i].completion. This interface could
  36034. // have been (and was previously) designed to take a closure to be
  36035. // invoked without arguments, but in all the cases we care about we
  36036. // already have an existing method we want to call, so there's no need
  36037. // to create a new function object. We can even get away with assuming
  36038. // the method takes exactly one argument, since that happens to be true
  36039. // in every case, so we don't have to touch the arguments object. The
  36040. // only additional allocation required is the completion record, which
  36041. // has a stable shape and so hopefully should be cheap to allocate.
  36042. function tryCatch(fn, obj, arg) {
  36043. try {
  36044. return { type: "normal", arg: fn.call(obj, arg) };
  36045. } catch (err) {
  36046. return { type: "throw", arg: err };
  36047. }
  36048. }
  36049. var GenStateSuspendedStart = "suspendedStart";
  36050. var GenStateSuspendedYield = "suspendedYield";
  36051. var GenStateExecuting = "executing";
  36052. var GenStateCompleted = "completed";
  36053. // Returning this object from the innerFn has the same effect as
  36054. // breaking out of the dispatch switch statement.
  36055. var ContinueSentinel = {};
  36056. // Dummy constructor functions that we use as the .constructor and
  36057. // .constructor.prototype properties for functions that return Generator
  36058. // objects. For full spec compliance, you may wish to configure your
  36059. // minifier not to mangle the names of these two functions.
  36060. function Generator() {}
  36061. function GeneratorFunction() {}
  36062. function GeneratorFunctionPrototype() {}
  36063. // This is a polyfill for %IteratorPrototype% for environments that
  36064. // don't natively support it.
  36065. var IteratorPrototype = {};
  36066. IteratorPrototype[iteratorSymbol] = function () {
  36067. return this;
  36068. };
  36069. var getProto = Object.getPrototypeOf;
  36070. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  36071. if (NativeIteratorPrototype &&
  36072. NativeIteratorPrototype !== Op &&
  36073. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  36074. // This environment has a native %IteratorPrototype%; use it instead
  36075. // of the polyfill.
  36076. IteratorPrototype = NativeIteratorPrototype;
  36077. }
  36078. var Gp = GeneratorFunctionPrototype.prototype =
  36079. Generator.prototype = Object.create(IteratorPrototype);
  36080. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  36081. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  36082. GeneratorFunctionPrototype[toStringTagSymbol] =
  36083. GeneratorFunction.displayName = "GeneratorFunction";
  36084. // Helper for defining the .next, .throw, and .return methods of the
  36085. // Iterator interface in terms of a single ._invoke method.
  36086. function defineIteratorMethods(prototype) {
  36087. ["next", "throw", "return"].forEach(function(method) {
  36088. prototype[method] = function(arg) {
  36089. return this._invoke(method, arg);
  36090. };
  36091. });
  36092. }
  36093. runtime.isGeneratorFunction = function(genFun) {
  36094. var ctor = typeof genFun === "function" && genFun.constructor;
  36095. return ctor
  36096. ? ctor === GeneratorFunction ||
  36097. // For the native GeneratorFunction constructor, the best we can
  36098. // do is to check its .name property.
  36099. (ctor.displayName || ctor.name) === "GeneratorFunction"
  36100. : false;
  36101. };
  36102. runtime.mark = function(genFun) {
  36103. if (Object.setPrototypeOf) {
  36104. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  36105. } else {
  36106. genFun.__proto__ = GeneratorFunctionPrototype;
  36107. if (!(toStringTagSymbol in genFun)) {
  36108. genFun[toStringTagSymbol] = "GeneratorFunction";
  36109. }
  36110. }
  36111. genFun.prototype = Object.create(Gp);
  36112. return genFun;
  36113. };
  36114. // Within the body of any async function, `await x` is transformed to
  36115. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  36116. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  36117. // meant to be awaited.
  36118. runtime.awrap = function(arg) {
  36119. return { __await: arg };
  36120. };
  36121. function AsyncIterator(generator) {
  36122. function invoke(method, arg, resolve, reject) {
  36123. var record = tryCatch(generator[method], generator, arg);
  36124. if (record.type === "throw") {
  36125. reject(record.arg);
  36126. } else {
  36127. var result = record.arg;
  36128. var value = result.value;
  36129. if (value &&
  36130. typeof value === "object" &&
  36131. hasOwn.call(value, "__await")) {
  36132. return Promise.resolve(value.__await).then(function(value) {
  36133. invoke("next", value, resolve, reject);
  36134. }, function(err) {
  36135. invoke("throw", err, resolve, reject);
  36136. });
  36137. }
  36138. return Promise.resolve(value).then(function(unwrapped) {
  36139. // When a yielded Promise is resolved, its final value becomes
  36140. // the .value of the Promise<{value,done}> result for the
  36141. // current iteration.
  36142. result.value = unwrapped;
  36143. resolve(result);
  36144. }, function(error) {
  36145. // If a rejected Promise was yielded, throw the rejection back
  36146. // into the async generator function so it can be handled there.
  36147. return invoke("throw", error, resolve, reject);
  36148. });
  36149. }
  36150. }
  36151. var previousPromise;
  36152. function enqueue(method, arg) {
  36153. function callInvokeWithMethodAndArg() {
  36154. return new Promise(function(resolve, reject) {
  36155. invoke(method, arg, resolve, reject);
  36156. });
  36157. }
  36158. return previousPromise =
  36159. // If enqueue has been called before, then we want to wait until
  36160. // all previous Promises have been resolved before calling invoke,
  36161. // so that results are always delivered in the correct order. If
  36162. // enqueue has not been called before, then it is important to
  36163. // call invoke immediately, without waiting on a callback to fire,
  36164. // so that the async generator function has the opportunity to do
  36165. // any necessary setup in a predictable way. This predictability
  36166. // is why the Promise constructor synchronously invokes its
  36167. // executor callback, and why async functions synchronously
  36168. // execute code before the first await. Since we implement simple
  36169. // async functions in terms of async generators, it is especially
  36170. // important to get this right, even though it requires care.
  36171. previousPromise ? previousPromise.then(
  36172. callInvokeWithMethodAndArg,
  36173. // Avoid propagating failures to Promises returned by later
  36174. // invocations of the iterator.
  36175. callInvokeWithMethodAndArg
  36176. ) : callInvokeWithMethodAndArg();
  36177. }
  36178. // Define the unified helper method that is used to implement .next,
  36179. // .throw, and .return (see defineIteratorMethods).
  36180. this._invoke = enqueue;
  36181. }
  36182. defineIteratorMethods(AsyncIterator.prototype);
  36183. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  36184. return this;
  36185. };
  36186. runtime.AsyncIterator = AsyncIterator;
  36187. // Note that simple async functions are implemented on top of
  36188. // AsyncIterator objects; they just return a Promise for the value of
  36189. // the final result produced by the iterator.
  36190. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  36191. var iter = new AsyncIterator(
  36192. wrap(innerFn, outerFn, self, tryLocsList)
  36193. );
  36194. return runtime.isGeneratorFunction(outerFn)
  36195. ? iter // If outerFn is a generator, return the full iterator.
  36196. : iter.next().then(function(result) {
  36197. return result.done ? result.value : iter.next();
  36198. });
  36199. };
  36200. function makeInvokeMethod(innerFn, self, context) {
  36201. var state = GenStateSuspendedStart;
  36202. return function invoke(method, arg) {
  36203. if (state === GenStateExecuting) {
  36204. throw new Error("Generator is already running");
  36205. }
  36206. if (state === GenStateCompleted) {
  36207. if (method === "throw") {
  36208. throw arg;
  36209. }
  36210. // Be forgiving, per 25.3.3.3.3 of the spec:
  36211. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  36212. return doneResult();
  36213. }
  36214. context.method = method;
  36215. context.arg = arg;
  36216. while (true) {
  36217. var delegate = context.delegate;
  36218. if (delegate) {
  36219. var delegateResult = maybeInvokeDelegate(delegate, context);
  36220. if (delegateResult) {
  36221. if (delegateResult === ContinueSentinel) continue;
  36222. return delegateResult;
  36223. }
  36224. }
  36225. if (context.method === "next") {
  36226. // Setting context._sent for legacy support of Babel's
  36227. // function.sent implementation.
  36228. context.sent = context._sent = context.arg;
  36229. } else if (context.method === "throw") {
  36230. if (state === GenStateSuspendedStart) {
  36231. state = GenStateCompleted;
  36232. throw context.arg;
  36233. }
  36234. context.dispatchException(context.arg);
  36235. } else if (context.method === "return") {
  36236. context.abrupt("return", context.arg);
  36237. }
  36238. state = GenStateExecuting;
  36239. var record = tryCatch(innerFn, self, context);
  36240. if (record.type === "normal") {
  36241. // If an exception is thrown from innerFn, we leave state ===
  36242. // GenStateExecuting and loop back for another invocation.
  36243. state = context.done
  36244. ? GenStateCompleted
  36245. : GenStateSuspendedYield;
  36246. if (record.arg === ContinueSentinel) {
  36247. continue;
  36248. }
  36249. return {
  36250. value: record.arg,
  36251. done: context.done
  36252. };
  36253. } else if (record.type === "throw") {
  36254. state = GenStateCompleted;
  36255. // Dispatch the exception by looping back around to the
  36256. // context.dispatchException(context.arg) call above.
  36257. context.method = "throw";
  36258. context.arg = record.arg;
  36259. }
  36260. }
  36261. };
  36262. }
  36263. // Call delegate.iterator[context.method](context.arg) and handle the
  36264. // result, either by returning a { value, done } result from the
  36265. // delegate iterator, or by modifying context.method and context.arg,
  36266. // setting context.delegate to null, and returning the ContinueSentinel.
  36267. function maybeInvokeDelegate(delegate, context) {
  36268. var method = delegate.iterator[context.method];
  36269. if (method === undefined) {
  36270. // A .throw or .return when the delegate iterator has no .throw
  36271. // method always terminates the yield* loop.
  36272. context.delegate = null;
  36273. if (context.method === "throw") {
  36274. if (delegate.iterator.return) {
  36275. // If the delegate iterator has a return method, give it a
  36276. // chance to clean up.
  36277. context.method = "return";
  36278. context.arg = undefined;
  36279. maybeInvokeDelegate(delegate, context);
  36280. if (context.method === "throw") {
  36281. // If maybeInvokeDelegate(context) changed context.method from
  36282. // "return" to "throw", let that override the TypeError below.
  36283. return ContinueSentinel;
  36284. }
  36285. }
  36286. context.method = "throw";
  36287. context.arg = new TypeError(
  36288. "The iterator does not provide a 'throw' method");
  36289. }
  36290. return ContinueSentinel;
  36291. }
  36292. var record = tryCatch(method, delegate.iterator, context.arg);
  36293. if (record.type === "throw") {
  36294. context.method = "throw";
  36295. context.arg = record.arg;
  36296. context.delegate = null;
  36297. return ContinueSentinel;
  36298. }
  36299. var info = record.arg;
  36300. if (! info) {
  36301. context.method = "throw";
  36302. context.arg = new TypeError("iterator result is not an object");
  36303. context.delegate = null;
  36304. return ContinueSentinel;
  36305. }
  36306. if (info.done) {
  36307. // Assign the result of the finished delegate to the temporary
  36308. // variable specified by delegate.resultName (see delegateYield).
  36309. context[delegate.resultName] = info.value;
  36310. // Resume execution at the desired location (see delegateYield).
  36311. context.next = delegate.nextLoc;
  36312. // If context.method was "throw" but the delegate handled the
  36313. // exception, let the outer generator proceed normally. If
  36314. // context.method was "next", forget context.arg since it has been
  36315. // "consumed" by the delegate iterator. If context.method was
  36316. // "return", allow the original .return call to continue in the
  36317. // outer generator.
  36318. if (context.method !== "return") {
  36319. context.method = "next";
  36320. context.arg = undefined;
  36321. }
  36322. } else {
  36323. // Re-yield the result returned by the delegate method.
  36324. return info;
  36325. }
  36326. // The delegate iterator is finished, so forget it and continue with
  36327. // the outer generator.
  36328. context.delegate = null;
  36329. return ContinueSentinel;
  36330. }
  36331. // Define Generator.prototype.{next,throw,return} in terms of the
  36332. // unified ._invoke helper method.
  36333. defineIteratorMethods(Gp);
  36334. Gp[toStringTagSymbol] = "Generator";
  36335. // A Generator should always return itself as the iterator object when the
  36336. // @@iterator function is called on it. Some browsers' implementations of the
  36337. // iterator prototype chain incorrectly implement this, causing the Generator
  36338. // object to not be returned from this call. This ensures that doesn't happen.
  36339. // See https://github.com/facebook/regenerator/issues/274 for more details.
  36340. Gp[iteratorSymbol] = function() {
  36341. return this;
  36342. };
  36343. Gp.toString = function() {
  36344. return "[object Generator]";
  36345. };
  36346. function pushTryEntry(locs) {
  36347. var entry = { tryLoc: locs[0] };
  36348. if (1 in locs) {
  36349. entry.catchLoc = locs[1];
  36350. }
  36351. if (2 in locs) {
  36352. entry.finallyLoc = locs[2];
  36353. entry.afterLoc = locs[3];
  36354. }
  36355. this.tryEntries.push(entry);
  36356. }
  36357. function resetTryEntry(entry) {
  36358. var record = entry.completion || {};
  36359. record.type = "normal";
  36360. delete record.arg;
  36361. entry.completion = record;
  36362. }
  36363. function Context(tryLocsList) {
  36364. // The root entry object (effectively a try statement without a catch
  36365. // or a finally block) gives us a place to store values thrown from
  36366. // locations where there is no enclosing try statement.
  36367. this.tryEntries = [{ tryLoc: "root" }];
  36368. tryLocsList.forEach(pushTryEntry, this);
  36369. this.reset(true);
  36370. }
  36371. runtime.keys = function(object) {
  36372. var keys = [];
  36373. for (var key in object) {
  36374. keys.push(key);
  36375. }
  36376. keys.reverse();
  36377. // Rather than returning an object with a next method, we keep
  36378. // things simple and return the next function itself.
  36379. return function next() {
  36380. while (keys.length) {
  36381. var key = keys.pop();
  36382. if (key in object) {
  36383. next.value = key;
  36384. next.done = false;
  36385. return next;
  36386. }
  36387. }
  36388. // To avoid creating an additional object, we just hang the .value
  36389. // and .done properties off the next function object itself. This
  36390. // also ensures that the minifier will not anonymize the function.
  36391. next.done = true;
  36392. return next;
  36393. };
  36394. };
  36395. function values(iterable) {
  36396. if (iterable) {
  36397. var iteratorMethod = iterable[iteratorSymbol];
  36398. if (iteratorMethod) {
  36399. return iteratorMethod.call(iterable);
  36400. }
  36401. if (typeof iterable.next === "function") {
  36402. return iterable;
  36403. }
  36404. if (!isNaN(iterable.length)) {
  36405. var i = -1, next = function next() {
  36406. while (++i < iterable.length) {
  36407. if (hasOwn.call(iterable, i)) {
  36408. next.value = iterable[i];
  36409. next.done = false;
  36410. return next;
  36411. }
  36412. }
  36413. next.value = undefined;
  36414. next.done = true;
  36415. return next;
  36416. };
  36417. return next.next = next;
  36418. }
  36419. }
  36420. // Return an iterator with no values.
  36421. return { next: doneResult };
  36422. }
  36423. runtime.values = values;
  36424. function doneResult() {
  36425. return { value: undefined, done: true };
  36426. }
  36427. Context.prototype = {
  36428. constructor: Context,
  36429. reset: function(skipTempReset) {
  36430. this.prev = 0;
  36431. this.next = 0;
  36432. // Resetting context._sent for legacy support of Babel's
  36433. // function.sent implementation.
  36434. this.sent = this._sent = undefined;
  36435. this.done = false;
  36436. this.delegate = null;
  36437. this.method = "next";
  36438. this.arg = undefined;
  36439. this.tryEntries.forEach(resetTryEntry);
  36440. if (!skipTempReset) {
  36441. for (var name in this) {
  36442. // Not sure about the optimal order of these conditions:
  36443. if (name.charAt(0) === "t" &&
  36444. hasOwn.call(this, name) &&
  36445. !isNaN(+name.slice(1))) {
  36446. this[name] = undefined;
  36447. }
  36448. }
  36449. }
  36450. },
  36451. stop: function() {
  36452. this.done = true;
  36453. var rootEntry = this.tryEntries[0];
  36454. var rootRecord = rootEntry.completion;
  36455. if (rootRecord.type === "throw") {
  36456. throw rootRecord.arg;
  36457. }
  36458. return this.rval;
  36459. },
  36460. dispatchException: function(exception) {
  36461. if (this.done) {
  36462. throw exception;
  36463. }
  36464. var context = this;
  36465. function handle(loc, caught) {
  36466. record.type = "throw";
  36467. record.arg = exception;
  36468. context.next = loc;
  36469. if (caught) {
  36470. // If the dispatched exception was caught by a catch block,
  36471. // then let that catch block handle the exception normally.
  36472. context.method = "next";
  36473. context.arg = undefined;
  36474. }
  36475. return !! caught;
  36476. }
  36477. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  36478. var entry = this.tryEntries[i];
  36479. var record = entry.completion;
  36480. if (entry.tryLoc === "root") {
  36481. // Exception thrown outside of any try block that could handle
  36482. // it, so set the completion value of the entire function to
  36483. // throw the exception.
  36484. return handle("end");
  36485. }
  36486. if (entry.tryLoc <= this.prev) {
  36487. var hasCatch = hasOwn.call(entry, "catchLoc");
  36488. var hasFinally = hasOwn.call(entry, "finallyLoc");
  36489. if (hasCatch && hasFinally) {
  36490. if (this.prev < entry.catchLoc) {
  36491. return handle(entry.catchLoc, true);
  36492. } else if (this.prev < entry.finallyLoc) {
  36493. return handle(entry.finallyLoc);
  36494. }
  36495. } else if (hasCatch) {
  36496. if (this.prev < entry.catchLoc) {
  36497. return handle(entry.catchLoc, true);
  36498. }
  36499. } else if (hasFinally) {
  36500. if (this.prev < entry.finallyLoc) {
  36501. return handle(entry.finallyLoc);
  36502. }
  36503. } else {
  36504. throw new Error("try statement without catch or finally");
  36505. }
  36506. }
  36507. }
  36508. },
  36509. abrupt: function(type, arg) {
  36510. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  36511. var entry = this.tryEntries[i];
  36512. if (entry.tryLoc <= this.prev &&
  36513. hasOwn.call(entry, "finallyLoc") &&
  36514. this.prev < entry.finallyLoc) {
  36515. var finallyEntry = entry;
  36516. break;
  36517. }
  36518. }
  36519. if (finallyEntry &&
  36520. (type === "break" ||
  36521. type === "continue") &&
  36522. finallyEntry.tryLoc <= arg &&
  36523. arg <= finallyEntry.finallyLoc) {
  36524. // Ignore the finally entry if control is not jumping to a
  36525. // location outside the try/catch block.
  36526. finallyEntry = null;
  36527. }
  36528. var record = finallyEntry ? finallyEntry.completion : {};
  36529. record.type = type;
  36530. record.arg = arg;
  36531. if (finallyEntry) {
  36532. this.method = "next";
  36533. this.next = finallyEntry.finallyLoc;
  36534. return ContinueSentinel;
  36535. }
  36536. return this.complete(record);
  36537. },
  36538. complete: function(record, afterLoc) {
  36539. if (record.type === "throw") {
  36540. throw record.arg;
  36541. }
  36542. if (record.type === "break" ||
  36543. record.type === "continue") {
  36544. this.next = record.arg;
  36545. } else if (record.type === "return") {
  36546. this.rval = this.arg = record.arg;
  36547. this.method = "return";
  36548. this.next = "end";
  36549. } else if (record.type === "normal" && afterLoc) {
  36550. this.next = afterLoc;
  36551. }
  36552. return ContinueSentinel;
  36553. },
  36554. finish: function(finallyLoc) {
  36555. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  36556. var entry = this.tryEntries[i];
  36557. if (entry.finallyLoc === finallyLoc) {
  36558. this.complete(entry.completion, entry.afterLoc);
  36559. resetTryEntry(entry);
  36560. return ContinueSentinel;
  36561. }
  36562. }
  36563. },
  36564. "catch": function(tryLoc) {
  36565. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  36566. var entry = this.tryEntries[i];
  36567. if (entry.tryLoc === tryLoc) {
  36568. var record = entry.completion;
  36569. if (record.type === "throw") {
  36570. var thrown = record.arg;
  36571. resetTryEntry(entry);
  36572. }
  36573. return thrown;
  36574. }
  36575. }
  36576. // The context.catch method must only be called with a location
  36577. // argument that corresponds to a known catch block.
  36578. throw new Error("illegal catch attempt");
  36579. },
  36580. delegateYield: function(iterable, resultName, nextLoc) {
  36581. this.delegate = {
  36582. iterator: values(iterable),
  36583. resultName: resultName,
  36584. nextLoc: nextLoc
  36585. };
  36586. if (this.method === "next") {
  36587. // Deliberately forget the last sent value so that we don't
  36588. // accidentally pass it on to the delegate.
  36589. this.arg = undefined;
  36590. }
  36591. return ContinueSentinel;
  36592. }
  36593. };
  36594. })(
  36595. // In sloppy mode, unbound `this` refers to the global object, fallback to
  36596. // Function constructor if we're in global strict mode. That is sadly a form
  36597. // of indirect eval which violates Content Security Policy.
  36598. (function() {
  36599. return this || (typeof self === "object" && self);
  36600. })() || Function("return this")()
  36601. );
  36602. /***/ }),
  36603. /* 310 */,
  36604. /* 311 */,
  36605. /* 312 */,
  36606. /* 313 */,
  36607. /* 314 */,
  36608. /* 315 */,
  36609. /* 316 */,
  36610. /* 317 */,
  36611. /* 318 */,
  36612. /* 319 */,
  36613. /* 320 */,
  36614. /* 321 */,
  36615. /* 322 */,
  36616. /* 323 */,
  36617. /* 324 */,
  36618. /* 325 */,
  36619. /* 326 */,
  36620. /* 327 */,
  36621. /* 328 */,
  36622. /* 329 */,
  36623. /* 330 */,
  36624. /* 331 */,
  36625. /* 332 */,
  36626. /* 333 */,
  36627. /* 334 */,
  36628. /* 335 */,
  36629. /* 336 */,
  36630. /* 337 */,
  36631. /* 338 */,
  36632. /* 339 */,
  36633. /* 340 */,
  36634. /* 341 */,
  36635. /* 342 */,
  36636. /* 343 */,
  36637. /* 344 */,
  36638. /* 345 */,
  36639. /* 346 */,
  36640. /* 347 */,
  36641. /* 348 */,
  36642. /* 349 */,
  36643. /* 350 */,
  36644. /* 351 */,
  36645. /* 352 */,
  36646. /* 353 */,
  36647. /* 354 */,
  36648. /* 355 */,
  36649. /* 356 */,
  36650. /* 357 */,
  36651. /* 358 */,
  36652. /* 359 */,
  36653. /* 360 */,
  36654. /* 361 */,
  36655. /* 362 */,
  36656. /* 363 */,
  36657. /* 364 */,
  36658. /* 365 */,
  36659. /* 366 */,
  36660. /* 367 */,
  36661. /* 368 */,
  36662. /* 369 */,
  36663. /* 370 */,
  36664. /* 371 */,
  36665. /* 372 */,
  36666. /* 373 */,
  36667. /* 374 */,
  36668. /* 375 */,
  36669. /* 376 */,
  36670. /* 377 */,
  36671. /* 378 */,
  36672. /* 379 */,
  36673. /* 380 */,
  36674. /* 381 */,
  36675. /* 382 */,
  36676. /* 383 */,
  36677. /* 384 */,
  36678. /* 385 */,
  36679. /* 386 */,
  36680. /* 387 */,
  36681. /* 388 */,
  36682. /* 389 */,
  36683. /* 390 */,
  36684. /* 391 */,
  36685. /* 392 */,
  36686. /* 393 */,
  36687. /* 394 */,
  36688. /* 395 */,
  36689. /* 396 */,
  36690. /* 397 */,
  36691. /* 398 */,
  36692. /* 399 */,
  36693. /* 400 */,
  36694. /* 401 */,
  36695. /* 402 */,
  36696. /* 403 */,
  36697. /* 404 */,
  36698. /* 405 */,
  36699. /* 406 */,
  36700. /* 407 */,
  36701. /* 408 */,
  36702. /* 409 */,
  36703. /* 410 */,
  36704. /* 411 */,
  36705. /* 412 */,
  36706. /* 413 */,
  36707. /* 414 */,
  36708. /* 415 */,
  36709. /* 416 */,
  36710. /* 417 */,
  36711. /* 418 */,
  36712. /* 419 */,
  36713. /* 420 */,
  36714. /* 421 */,
  36715. /* 422 */,
  36716. /* 423 */,
  36717. /* 424 */,
  36718. /* 425 */,
  36719. /* 426 */,
  36720. /* 427 */,
  36721. /* 428 */,
  36722. /* 429 */,
  36723. /* 430 */,
  36724. /* 431 */,
  36725. /* 432 */,
  36726. /* 433 */,
  36727. /* 434 */,
  36728. /* 435 */,
  36729. /* 436 */,
  36730. /* 437 */,
  36731. /* 438 */,
  36732. /* 439 */,
  36733. /* 440 */,
  36734. /* 441 */,
  36735. /* 442 */,
  36736. /* 443 */,
  36737. /* 444 */,
  36738. /* 445 */,
  36739. /* 446 */,
  36740. /* 447 */,
  36741. /* 448 */,
  36742. /* 449 */,
  36743. /* 450 */,
  36744. /* 451 */,
  36745. /* 452 */,
  36746. /* 453 */,
  36747. /* 454 */,
  36748. /* 455 */,
  36749. /* 456 */
  36750. /*!**********************************************************************!*\
  36751. !*** D:/meloinfo/sugarpark-mini-program/components/base/emojiMap.js ***!
  36752. \**********************************************************************/
  36753. /*! no static exports found */
  36754. /***/ (function(module, exports, __webpack_require__) {
  36755. "use strict";
  36756. Object.defineProperty(exports, "__esModule", { value: true });exports.emojiName = exports.emojiMap = exports.emojiUrl = void 0;var emojiUrl = 'https://web.sdk.qcloud.com/im/assets/emoji/';exports.emojiUrl = emojiUrl;
  36757. var emojiMap = {
  36758. '[NO]': 'emoji_0@2x.png',
  36759. '[OK]': 'emoji_1@2x.png',
  36760. '[下雨]': 'emoji_2@2x.png',
  36761. '[么么哒]': 'emoji_3@2x.png',
  36762. '[乒乓]': 'emoji_4@2x.png',
  36763. '[便便]': 'emoji_5@2x.png',
  36764. '[信封]': 'emoji_6@2x.png',
  36765. '[偷笑]': 'emoji_7@2x.png',
  36766. '[傲慢]': 'emoji_8@2x.png',
  36767. '[再见]': 'emoji_9@2x.png',
  36768. '[冷汗]': 'emoji_10@2x.png',
  36769. '[凋谢]': 'emoji_11@2x.png',
  36770. '[刀]': 'emoji_12@2x.png',
  36771. '[删除]': 'emoji_13@2x.png',
  36772. '[勾引]': 'emoji_14@2x.png',
  36773. '[发呆]': 'emoji_15@2x.png',
  36774. '[发抖]': 'emoji_16@2x.png',
  36775. '[可怜]': 'emoji_17@2x.png',
  36776. '[可爱]': 'emoji_18@2x.png',
  36777. '[右哼哼]': 'emoji_19@2x.png',
  36778. '[右太极]': 'emoji_20@2x.png',
  36779. '[右车头]': 'emoji_21@2x.png',
  36780. '[吐]': 'emoji_22@2x.png',
  36781. '[吓]': 'emoji_23@2x.png',
  36782. '[咒骂]': 'emoji_24@2x.png',
  36783. '[咖啡]': 'emoji_25@2x.png',
  36784. '[啤酒]': 'emoji_26@2x.png',
  36785. '[嘘]': 'emoji_27@2x.png',
  36786. '[回头]': 'emoji_28@2x.png',
  36787. '[困]': 'emoji_29@2x.png',
  36788. '[坏笑]': 'emoji_30@2x.png',
  36789. '[多云]': 'emoji_31@2x.png',
  36790. '[大兵]': 'emoji_32@2x.png',
  36791. '[大哭]': 'emoji_33@2x.png',
  36792. '[太阳]': 'emoji_34@2x.png',
  36793. '[奋斗]': 'emoji_35@2x.png',
  36794. '[奶瓶]': 'emoji_36@2x.png',
  36795. '[委屈]': 'emoji_37@2x.png',
  36796. '[害羞]': 'emoji_38@2x.png',
  36797. '[尴尬]': 'emoji_39@2x.png',
  36798. '[左哼哼]': 'emoji_40@2x.png',
  36799. '[左太极]': 'emoji_41@2x.png',
  36800. '[左车头]': 'emoji_42@2x.png',
  36801. '[差劲]': 'emoji_43@2x.png',
  36802. '[弱]': 'emoji_44@2x.png',
  36803. '[强]': 'emoji_45@2x.png',
  36804. '[彩带]': 'emoji_46@2x.png',
  36805. '[彩球]': 'emoji_47@2x.png',
  36806. '[得意]': 'emoji_48@2x.png',
  36807. '[微笑]': 'emoji_49@2x.png',
  36808. '[心碎了]': 'emoji_50@2x.png',
  36809. '[快哭了]': 'emoji_51@2x.png',
  36810. '[怄火]': 'emoji_52@2x.png',
  36811. '[怒]': 'emoji_53@2x.png',
  36812. '[惊恐]': 'emoji_54@2x.png',
  36813. '[惊讶]': 'emoji_55@2x.png',
  36814. '[憨笑]': 'emoji_56@2x.png',
  36815. '[手枪]': 'emoji_57@2x.png',
  36816. '[打哈欠]': 'emoji_58@2x.png',
  36817. '[抓狂]': 'emoji_59@2x.png',
  36818. '[折磨]': 'emoji_60@2x.png',
  36819. '[抠鼻]': 'emoji_61@2x.png',
  36820. '[抱抱]': 'emoji_62@2x.png',
  36821. '[抱拳]': 'emoji_63@2x.png',
  36822. '[拳头]': 'emoji_64@2x.png',
  36823. '[挥手]': 'emoji_65@2x.png',
  36824. '[握手]': 'emoji_66@2x.png',
  36825. '[撇嘴]': 'emoji_67@2x.png',
  36826. '[擦汗]': 'emoji_68@2x.png',
  36827. '[敲打]': 'emoji_69@2x.png',
  36828. '[晕]': 'emoji_70@2x.png',
  36829. '[月亮]': 'emoji_71@2x.png',
  36830. '[棒棒糖]': 'emoji_72@2x.png',
  36831. '[汽车]': 'emoji_73@2x.png',
  36832. '[沙发]': 'emoji_74@2x.png',
  36833. '[流汗]': 'emoji_75@2x.png',
  36834. '[流泪]': 'emoji_76@2x.png',
  36835. '[激动]': 'emoji_77@2x.png',
  36836. '[灯泡]': 'emoji_78@2x.png',
  36837. '[炸弹]': 'emoji_79@2x.png',
  36838. '[熊猫]': 'emoji_80@2x.png',
  36839. '[爆筋]': 'emoji_81@2x.png',
  36840. '[爱你]': 'emoji_82@2x.png',
  36841. '[爱心]': 'emoji_83@2x.png',
  36842. '[爱情]': 'emoji_84@2x.png',
  36843. '[猪头]': 'emoji_85@2x.png',
  36844. '[猫咪]': 'emoji_86@2x.png',
  36845. '[献吻]': 'emoji_87@2x.png',
  36846. '[玫瑰]': 'emoji_88@2x.png',
  36847. '[瓢虫]': 'emoji_89@2x.png',
  36848. '[疑问]': 'emoji_90@2x.png',
  36849. '[白眼]': 'emoji_91@2x.png',
  36850. '[皮球]': 'emoji_92@2x.png',
  36851. '[睡觉]': 'emoji_93@2x.png',
  36852. '[磕头]': 'emoji_94@2x.png',
  36853. '[示爱]': 'emoji_95@2x.png',
  36854. '[礼品袋]': 'emoji_96@2x.png',
  36855. '[礼物]': 'emoji_97@2x.png',
  36856. '[篮球]': 'emoji_98@2x.png',
  36857. '[米饭]': 'emoji_99@2x.png',
  36858. '[糗大了]': 'emoji_100@2x.png',
  36859. '[红双喜]': 'emoji_101@2x.png',
  36860. '[红灯笼]': 'emoji_102@2x.png',
  36861. '[纸巾]': 'emoji_103@2x.png',
  36862. '[胜利]': 'emoji_104@2x.png',
  36863. '[色]': 'emoji_105@2x.png',
  36864. '[药]': 'emoji_106@2x.png',
  36865. '[菜刀]': 'emoji_107@2x.png',
  36866. '[蛋糕]': 'emoji_108@2x.png',
  36867. '[蜡烛]': 'emoji_109@2x.png',
  36868. '[街舞]': 'emoji_110@2x.png',
  36869. '[衰]': 'emoji_111@2x.png',
  36870. '[西瓜]': 'emoji_112@2x.png',
  36871. '[调皮]': 'emoji_113@2x.png',
  36872. '[象棋]': 'emoji_114@2x.png',
  36873. '[跳绳]': 'emoji_115@2x.png',
  36874. '[跳跳]': 'emoji_116@2x.png',
  36875. '[车厢]': 'emoji_117@2x.png',
  36876. '[转圈]': 'emoji_118@2x.png',
  36877. '[鄙视]': 'emoji_119@2x.png',
  36878. '[酷]': 'emoji_120@2x.png',
  36879. '[钞票]': 'emoji_121@2x.png',
  36880. '[钻戒]': 'emoji_122@2x.png',
  36881. '[闪电]': 'emoji_123@2x.png',
  36882. '[闭嘴]': 'emoji_124@2x.png',
  36883. '[闹钟]': 'emoji_125@2x.png',
  36884. '[阴险]': 'emoji_126@2x.png',
  36885. '[难过]': 'emoji_127@2x.png',
  36886. '[雨伞]': 'emoji_128@2x.png',
  36887. '[青蛙]': 'emoji_129@2x.png',
  36888. '[面条]': 'emoji_130@2x.png',
  36889. '[鞭炮]': 'emoji_131@2x.png',
  36890. '[风车]': 'emoji_132@2x.png',
  36891. '[飞吻]': 'emoji_133@2x.png',
  36892. '[飞机]': 'emoji_134@2x.png',
  36893. '[饥饿]': 'emoji_135@2x.png',
  36894. '[香蕉]': 'emoji_136@2x.png',
  36895. '[骷髅]': 'emoji_137@2x.png',
  36896. '[麦克风]': 'emoji_138@2x.png',
  36897. '[麻将]': 'emoji_139@2x.png',
  36898. '[鼓掌]': 'emoji_140@2x.png',
  36899. '[龇牙]': 'emoji_141@2x.png' };exports.emojiMap = emojiMap;
  36900. var emojiName = ['[龇牙]', '[调皮]', '[流汗]', '[偷笑]', '[再见]', '[敲打]', '[擦汗]', '[猪头]', '[玫瑰]', '[流泪]', '[大哭]', '[嘘]', '[酷]', '[抓狂]', '[委屈]', '[便便]', '[炸弹]', '[菜刀]', '[可爱]', '[色]', '[害羞]', '[得意]', '[吐]', '[微笑]', '[怒]', '[尴尬]', '[惊恐]', '[冷汗]', '[爱心]', '[示爱]', '[白眼]', '[傲慢]', '[难过]', '[惊讶]', '[疑问]', '[困]', '[么么哒]', '[憨笑]', '[爱情]', '[衰]', '[撇嘴]', '[阴险]', '[奋斗]', '[发呆]', '[右哼哼]', '[抱抱]', '[坏笑]', '[飞吻]', '[鄙视]', '[晕]', '[大兵]', '[可怜]', '[强]', '[弱]', '[握手]', '[胜利]', '[抱拳]', '[凋谢]', '[米饭]', '[蛋糕]', '[西瓜]', '[啤酒]', '[瓢虫]', '[勾引]', '[OK]', '[爱你]', '[咖啡]', '[月亮]', '[刀]', '[发抖]', '[差劲]', '[拳头]', '[心碎了]', '[太阳]', '[礼物]', '[皮球]', '[骷髅]', '[挥手]', '[闪电]', '[饥饿]', '[困]', '[咒骂]', '[折磨]', '[抠鼻]', '[鼓掌]', '[糗大了]', '[左哼哼]', '[打哈欠]', '[快哭了]', '[吓]', '[篮球]', '[乒乓]', '[NO]', '[跳跳]', '[怄火]', '[转圈]', '[磕头]', '[回头]', '[跳绳]', '[激动]', '[街舞]', '[献吻]', '[左太极]', '[右太极]', '[闭嘴]', '[猫咪]', '[红双喜]', '[鞭炮]', '[红灯笼]', '[麻将]', '[麦克风]', '[礼品袋]', '[信封]', '[象棋]', '[彩带]', '[蜡烛]', '[爆筋]', '[棒棒糖]', '[奶瓶]', '[面条]', '[香蕉]', '[飞机]', '[左车头]', '[车厢]', '[右车头]', '[多云]', '[下雨]', '[钞票]', '[熊猫]', '[灯泡]', '[风车]', '[闹钟]', '[雨伞]', '[彩球]', '[钻戒]', '[沙发]', '[纸巾]', '[手枪]', '[青蛙]'];exports.emojiName = emojiName;
  36901. /***/ }),
  36902. /* 457 */,
  36903. /* 458 */,
  36904. /* 459 */,
  36905. /* 460 */,
  36906. /* 461 */,
  36907. /* 462 */,
  36908. /* 463 */,
  36909. /* 464 */,
  36910. /* 465 */,
  36911. /* 466 */,
  36912. /* 467 */,
  36913. /* 468 */,
  36914. /* 469 */,
  36915. /* 470 */,
  36916. /* 471 */
  36917. /*!**************************************************************************************************************!*\
  36918. !*** D:/meloinfo/sugarpark-mini-program/node_modules/@dcloudio/uni-ui/lib/uni-transition/createAnimation.js ***!
  36919. \**************************************************************************************************************/
  36920. /*! no static exports found */
  36921. /***/ (function(module, exports, __webpack_require__) {
  36922. "use strict";
  36923. /* 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 = {
  36924. // duration: 300,
  36925. // timingFunction: 'linear',
  36926. // delay: 0,
  36927. // transformOrigin: '50% 50% 0'
  36928. // }
  36929. var
  36930. MPAnimation = /*#__PURE__*/function () {
  36931. function MPAnimation(options, _this) {_classCallCheck(this, MPAnimation);
  36932. this.options = options;
  36933. this.animation = uni.createAnimation(options);
  36934. this.currentStepAnimates = {};
  36935. this.next = 0;
  36936. this.$ = _this;
  36937. }_createClass(MPAnimation, [{ key: "_nvuePushAnimates", value: function _nvuePushAnimates(
  36938. type, args) {
  36939. var aniObj = this.currentStepAnimates[this.next];
  36940. var styles = {};
  36941. if (!aniObj) {
  36942. styles = {
  36943. styles: {},
  36944. config: {} };
  36945. } else {
  36946. styles = aniObj;
  36947. }
  36948. if (animateTypes1.includes(type)) {
  36949. if (!styles.styles.transform) {
  36950. styles.styles.transform = '';
  36951. }
  36952. var unit = '';
  36953. if (type === 'rotate') {
  36954. unit = 'deg';
  36955. }
  36956. styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
  36957. } else {
  36958. styles.styles[type] = "".concat(args);
  36959. }
  36960. this.currentStepAnimates[this.next] = styles;
  36961. } }, { key: "_animateRun", value: function _animateRun()
  36962. {var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  36963. var ref = this.$.$refs['ani'].ref;
  36964. if (!ref) return;
  36965. return new Promise(function (resolve, reject) {
  36966. nvueAnimation.transition(ref, _objectSpread({
  36967. styles: styles },
  36968. config),
  36969. function (res) {
  36970. resolve();
  36971. });
  36972. });
  36973. } }, { key: "_nvueNextAnimate", value: function _nvueNextAnimate(
  36974. animates) {var _this2 = this;var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var fn = arguments.length > 2 ? arguments[2] : undefined;
  36975. var obj = animates[step];
  36976. if (obj) {var
  36977. styles =
  36978. obj.styles,config = obj.config;
  36979. this._animateRun(styles, config).then(function () {
  36980. step += 1;
  36981. _this2._nvueNextAnimate(animates, step, fn);
  36982. });
  36983. } else {
  36984. this.currentStepAnimates = {};
  36985. typeof fn === 'function' && fn();
  36986. this.isEnd = true;
  36987. }
  36988. } }, { key: "step", value: function step()
  36989. {var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  36990. this.animation.step(config);
  36991. return this;
  36992. } }, { key: "run", value: function run(
  36993. fn) {
  36994. this.$.animationData = this.animation.export();
  36995. this.$.timer = setTimeout(function () {
  36996. typeof fn === 'function' && fn();
  36997. }, this.$.durationTime);
  36998. } }]);return MPAnimation;}();
  36999. var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d',
  37000. 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY',
  37001. 'translateZ'];
  37002. var animateTypes2 = ['opacity', 'backgroundColor'];
  37003. var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
  37004. animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
  37005. MPAnimation.prototype[type] = function () {var _this$animation;
  37006. (_this$animation = this.animation)[type].apply(_this$animation, arguments);
  37007. return this;
  37008. };
  37009. });
  37010. function createAnimation(option, _this) {
  37011. if (!_this) return;
  37012. clearTimeout(_this.timer);
  37013. return new MPAnimation(option, _this);
  37014. }
  37015. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  37016. /***/ }),
  37017. /* 472 */,
  37018. /* 473 */,
  37019. /* 474 */,
  37020. /* 475 */,
  37021. /* 476 */,
  37022. /* 477 */
  37023. /*!****************************************************************************!*\
  37024. !*** D:/meloinfo/sugarpark-mini-program/components/base/message-facade.js ***!
  37025. \****************************************************************************/
  37026. /*! no static exports found */
  37027. /***/ (function(module, exports, __webpack_require__) {
  37028. "use strict";
  37029. Object.defineProperty(exports, "__esModule", { value: true });exports.parseText = parseText;exports.parseGroupSystemNotice = parseGroupSystemNotice;exports.parseGroupTip = parseGroupTip;exports.parseImage = parseImage;exports.parseVideo = parseVideo;exports.parseAudio = parseAudio;var _emojiMap = __webpack_require__(/*! ./emojiMap */ 456);function _createForOfIteratorHelper(o, allowArrayLike) {var it;if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {if (it) o = it;var i = 0;var F = function F() {};return { s: F, n: function n() {if (i >= o.length) return { done: true };return { done: false, value: o[i++] };}, e: function e(_e) {throw _e;}, f: F };}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion = true,didErr = false,err;return { s: function s() {it = o[Symbol.iterator]();}, n: function n() {var step = it.next();normalCompletion = step.done;return step;}, e: function e(_e2) {didErr = true;err = _e2;}, f: function f() {try {if (!normalCompletion && it.return != null) it.return();} finally {if (didErr) throw err;}} };}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;}
  37030. /** 传入message.element(群系统消息SystemMessage,群提示消息GroupTip除外)
  37031. * content = {
  37032. * type: 'TIMTextElem',
  37033. * content: {
  37034. * text: 'AAA[龇牙]AAA[龇牙]AAA[龇牙AAA]'
  37035. * }
  37036. *}
  37037. **/
  37038. // 群提示消息的含义 (opType)
  37039. var GROUP_TIP_TYPE = {
  37040. MEMBER_JOIN: 1,
  37041. MEMBER_QUIT: 2,
  37042. MEMBER_KICKED_OUT: 3,
  37043. MEMBER_SET_ADMIN: 4,
  37044. // 被设置为管理员
  37045. MEMBER_CANCELED_ADMIN: 5,
  37046. // 被取消管理员
  37047. GROUP_INFO_MODIFIED: 6,
  37048. // 修改群资料,转让群组为该类型,msgBody.msgGroupNewInfo.ownerAccount表示新群主的ID
  37049. MEMBER_INFO_MODIFIED: 7 // 修改群成员信息
  37050. };
  37051. // 解析小程序text, 表情信息也是[嘻嘻]文本
  37052. function parseText(message) {
  37053. var renderDom = [];
  37054. var temp = message.payload.text;
  37055. var left = -1;
  37056. var right = -1;
  37057. while (temp !== '') {
  37058. left = temp.indexOf('[');
  37059. right = temp.indexOf(']');
  37060. switch (left) {
  37061. case 0:
  37062. if (right === -1) {
  37063. renderDom.push({
  37064. name: 'span',
  37065. text: temp });
  37066. temp = '';
  37067. } else {
  37068. var _emoji = temp.slice(0, right + 1);
  37069. if (_emojiMap.emojiMap[_emoji]) {
  37070. renderDom.push({
  37071. name: 'img',
  37072. src: _emojiMap.emojiUrl + _emojiMap.emojiMap[_emoji] });
  37073. temp = temp.substring(right + 1);
  37074. } else {
  37075. renderDom.push({
  37076. name: 'span',
  37077. text: '[' });
  37078. temp = temp.slice(1);
  37079. }
  37080. }
  37081. break;
  37082. case -1:
  37083. renderDom.push({
  37084. name: 'span',
  37085. text: temp });
  37086. temp = '';
  37087. break;
  37088. default:
  37089. renderDom.push({
  37090. name: 'span',
  37091. text: temp.slice(0, left) });
  37092. temp = temp.substring(left);
  37093. break;}
  37094. }
  37095. return renderDom;
  37096. } // 解析群系统消息
  37097. function parseGroupSystemNotice(message) {var
  37098. payload =
  37099. message.payload;
  37100. var groupName = payload.groupProfile.name || payload.groupProfile.groupID;var
  37101. groupID =
  37102. payload.groupProfile.groupID;
  37103. var text;
  37104. switch (payload.operationType) {
  37105. case 1:
  37106. text = "".concat(payload.operatorID, " \u7533\u8BF7\u52A0\u5165\u7FA4\u7EC4\uFF1A").concat(groupName, "\uFF08\u7FA4ID:").concat(groupID, ")");
  37107. break;
  37108. case 2:
  37109. text = "\u6210\u529F\u52A0\u5165\u7FA4\u7EC4\uFF1A".concat(groupName, " \uFF08\u7FA4ID:").concat(groupID, ")");
  37110. break;
  37111. case 3:
  37112. text = "\u7533\u8BF7\u52A0\u5165\u7FA4\u7EC4\uFF1A".concat(groupName, " \uFF08\u7FA4ID:").concat(groupID, ")\u88AB\u62D2\u7EDD");
  37113. break;
  37114. case 4:
  37115. text = "\u88AB\u7BA1\u7406\u5458".concat(payload.operatorID, "\u8E22\u51FA\u7FA4\u7EC4\uFF1A").concat(groupName, "\uFF08\u7FA4ID:").concat(groupID, ")");
  37116. break;
  37117. case 5:
  37118. text = "\u7FA4\uFF1A".concat(groupName, " \uFF08\u7FA4ID:").concat(groupID, ")\u5DF2\u88AB").concat(payload.operatorID, "\u89E3\u6563");
  37119. break;
  37120. case 6:
  37121. text = "\u6211\uFF08\u7528\u6237ID:".concat(payload.operatorID, "\uFF09\u6210\u529F\u521B\u5EFA\u7FA4\u804A:").concat(groupName, "\uFF08\u7FA4ID:").concat(groupID, ")");
  37122. break;
  37123. case 7:
  37124. text = "\u7528\u6237ID\uFF1A".concat(payload.operatorID, "\u9080\u8BF7\u4F60\u52A0\u7FA4\uFF1A").concat(groupName, "\uFF08\u7FA4ID:").concat(groupID, ")");
  37125. break;
  37126. case 8:
  37127. text = "\u4F60\u9000\u51FA\u7FA4\u7EC4\uFF1A".concat(groupName, "\uFF08\u7FA4ID:").concat(groupID, ")");
  37128. break;
  37129. case 9:
  37130. text = "\u4F60\u88AB".concat(payload.operatorID, "\u8BBE\u7F6E\u4E3A\u7FA4\uFF1A").concat(groupName, "\uFF08\u7FA4ID:").concat(groupID, ")\u7684\u7BA1\u7406\u5458");
  37131. break;
  37132. case 10:
  37133. text = "\u4F60\u88AB".concat(payload.operatorID, "\u64A4\u9500\u7FA4\uFF1A").concat(groupName, " \uFF08\u7FA4ID:").concat(groupID, ")\u7684\u7BA1\u7406\u5458\u8EAB\u4EFD");
  37134. break;
  37135. case 255:
  37136. text = "\u81EA\u5B9A\u4E49\u7FA4\u7CFB\u7EDF\u901A\u77E5: ".concat(payload.userDefinedField);
  37137. break;}
  37138. return text;
  37139. } // 解析群提示消息
  37140. function parseGroupTip(message) {var
  37141. payload =
  37142. message.payload;
  37143. var userName = message.nick || payload.userIDList.join(',');
  37144. var tip;
  37145. var user;
  37146. switch (payload.operationType) {
  37147. case GROUP_TIP_TYPE.MEMBER_JOIN:
  37148. tip = "".concat(userName, " \u52A0\u5165\u7FA4\u804A");
  37149. break;
  37150. case GROUP_TIP_TYPE.MEMBER_QUIT:
  37151. tip = "\u7FA4\u6210\u5458\u9000\u7FA4\uFF1A".concat(userName);
  37152. break;
  37153. case GROUP_TIP_TYPE.MEMBER_KICKED_OUT:
  37154. tip = "\u7FA4\u6210\u5458\u88AB\u8E22\uFF1A".concat(userName);
  37155. break;
  37156. case GROUP_TIP_TYPE.MEMBER_SET_ADMIN:
  37157. tip = "".concat(payload.operatorID, "\u5C06 ").concat(userName, "\u8BBE\u7F6E\u4E3A\u7BA1\u7406\u5458");
  37158. break;
  37159. case GROUP_TIP_TYPE.MEMBER_CANCELED_ADMIN:
  37160. tip = "".concat(payload.operatorID, "\u5C06 ").concat(userName, "\u53D6\u6D88\u4F5C\u4E3A\u7BA1\u7406\u5458");
  37161. break;
  37162. case GROUP_TIP_TYPE.GROUP_INFO_MODIFIED:
  37163. tip = '群资料修改';
  37164. break;
  37165. case GROUP_TIP_TYPE.MEMBER_INFO_MODIFIED:var _iterator = _createForOfIteratorHelper(
  37166. payload.memberList),_step;try {for (_iterator.s(); !(_step = _iterator.n()).done;) {var member = _step.value;
  37167. if (member.muteTime > 0) {
  37168. tip = "\u7FA4\u6210\u5458\uFF1A".concat(member.userID, "\u88AB\u7981\u8A00").concat(member.muteTime, "\u79D2");
  37169. } else {
  37170. tip = "\u7FA4\u6210\u5458\uFF1A".concat(member.userID, "\u88AB\u53D6\u6D88\u7981\u8A00");
  37171. }
  37172. }} catch (err) {_iterator.e(err);} finally {_iterator.f();}
  37173. break;
  37174. case 256:
  37175. user = message.nick || message.from;
  37176. if (payload.text === '无应答') {
  37177. user = payload.userIDList.join(',');
  37178. }
  37179. tip = payload.text === '结束群聊' ? '结束群聊' : "\"".concat(user, "\" ").concat(payload.text);
  37180. break;}
  37181. return [{
  37182. name: 'groupTip',
  37183. text: tip }];
  37184. } // 解析图片消息
  37185. function parseImage(message) {
  37186. var renderDom = [{
  37187. name: 'image',
  37188. // 这里默认渲染的是 1080P 的图片
  37189. src: message.payload.imageInfoArray[0].url }];
  37190. return renderDom;
  37191. } // 解析视频消息
  37192. function parseVideo(message) {
  37193. var renderDom = {
  37194. name: 'video',
  37195. src: message.payload.videoUrl };
  37196. return renderDom;
  37197. } // 解析语音消息
  37198. function parseAudio(message) {
  37199. var renderDom = {
  37200. name: 'audio',
  37201. src: message.payload.url,
  37202. second: message.payload.second === 0 ? 1 : message.payload.second };
  37203. return renderDom;
  37204. }
  37205. /***/ }),
  37206. /* 478 */,
  37207. /* 479 */,
  37208. /* 480 */,
  37209. /* 481 */,
  37210. /* 482 */,
  37211. /* 483 */,
  37212. /* 484 */,
  37213. /* 485 */,
  37214. /* 486 */,
  37215. /* 487 */,
  37216. /* 488 */,
  37217. /* 489 */,
  37218. /* 490 */,
  37219. /* 491 */,
  37220. /* 492 */,
  37221. /* 493 */,
  37222. /* 494 */,
  37223. /* 495 */,
  37224. /* 496 */,
  37225. /* 497 */,
  37226. /* 498 */,
  37227. /* 499 */,
  37228. /* 500 */,
  37229. /* 501 */,
  37230. /* 502 */,
  37231. /* 503 */,
  37232. /* 504 */,
  37233. /* 505 */,
  37234. /* 506 */
  37235. /*!********************************************************************!*\
  37236. !*** D:/meloinfo/sugarpark-mini-program/components/base/common.js ***!
  37237. \********************************************************************/
  37238. /*! no static exports found */
  37239. /***/ (function(module, exports, __webpack_require__) {
  37240. "use strict";
  37241. Object.defineProperty(exports, "__esModule", { value: true });exports.caculateTimeago = caculateTimeago;exports.formateTime = formateTime;function caculateTimeago(dateTimeStamp) {
  37242. var minute = 1000 * 60; // 把分,时,天,周,半个月,一个月用毫秒表示
  37243. var hour = minute * 60;
  37244. var day = hour * 24;
  37245. var week = day * 7;
  37246. var now = new Date().getTime(); // 获取当前时间毫秒
  37247. var diffValue = now - dateTimeStamp; // 时间差
  37248. var result = '';
  37249. if (diffValue < 0) {
  37250. return;
  37251. }
  37252. var minC = diffValue / minute; // 计算时间差的分,时,天,周,月
  37253. var hourC = diffValue / hour;
  37254. var dayC = diffValue / day;
  37255. var weekC = diffValue / week;
  37256. if (weekC >= 1 && weekC <= 4) {
  37257. result = " ".concat(parseInt(weekC, 10), "\u5468\u524D");
  37258. } else if (dayC >= 1 && dayC <= 6) {
  37259. result = " ".concat(parseInt(dayC, 10), "\u5929\u524D");
  37260. } else if (hourC >= 1 && hourC <= 23) {
  37261. result = " ".concat(parseInt(hourC, 10), "\u5C0F\u65F6\u524D");
  37262. } else if (minC >= 1 && minC <= 59) {
  37263. result = " ".concat(parseInt(minC, 10), "\u5206\u949F\u524D");
  37264. } else if (diffValue >= 0 && diffValue <= minute) {
  37265. result = '刚刚';
  37266. } else {
  37267. var datetime = new Date();
  37268. datetime.setTime(dateTimeStamp);
  37269. var Nyear = datetime.getFullYear();
  37270. var Nmonth = datetime.getMonth() + 1 < 10 ? "0".concat(datetime.getMonth() + 1) : datetime.getMonth() + 1;
  37271. var Ndate = datetime.getDate() < 10 ? "0".concat(datetime.getDate()) : datetime.getDate();
  37272. result = "".concat(Nyear, "-").concat(Nmonth, "-").concat(Ndate);
  37273. }
  37274. return result;
  37275. }
  37276. function formateTime(secondTime) {
  37277. var time = secondTime;
  37278. var newTime;
  37279. var hour;
  37280. var minite;
  37281. var seconds;
  37282. if (time >= 3600) {
  37283. hour = parseInt(time / 3600) < 10 ? "0".concat(parseInt(time / 3600)) : parseInt(time / 3600);
  37284. minite = parseInt(time % 60 / 60) < 10 ? "0".concat(parseInt(time % 60 / 60)) : parseInt(time % 60 / 60);
  37285. seconds = time % 3600 < 10 ? "0".concat(time % 3600) : time % 3600;
  37286. if (seconds > 60) {
  37287. minite = parseInt(seconds / 60) < 10 ? "0".concat(parseInt(seconds / 60)) : parseInt(seconds / 60);
  37288. seconds = seconds % 60 < 10 ? "0".concat(seconds % 60) : seconds % 60;
  37289. }
  37290. newTime = "".concat(hour, ":").concat(minite, ":").concat(seconds);
  37291. } else if (time >= 60 && time < 3600) {
  37292. minite = parseInt(time / 60) < 10 ? "0".concat(parseInt(time / 60)) : parseInt(time / 60);
  37293. seconds = time % 60 < 10 ? "0".concat(time % 60) : time % 60;
  37294. newTime = "00:".concat(minite, ":").concat(seconds);
  37295. } else if (time < 60) {
  37296. seconds = time < 10 ? "0".concat(time) : time;
  37297. newTime = "00:00:".concat(seconds);
  37298. }
  37299. return newTime;
  37300. }
  37301. /***/ }),
  37302. /* 507 */,
  37303. /* 508 */,
  37304. /* 509 */,
  37305. /* 510 */,
  37306. /* 511 */,
  37307. /* 512 */,
  37308. /* 513 */,
  37309. /* 514 */,
  37310. /* 515 */,
  37311. /* 516 */,
  37312. /* 517 */,
  37313. /* 518 */,
  37314. /* 519 */,
  37315. /* 520 */,
  37316. /* 521 */,
  37317. /* 522 */,
  37318. /* 523 */,
  37319. /* 524 */,
  37320. /* 525 */,
  37321. /* 526 */,
  37322. /* 527 */,
  37323. /* 528 */,
  37324. /* 529 */,
  37325. /* 530 */,
  37326. /* 531 */,
  37327. /* 532 */,
  37328. /* 533 */,
  37329. /* 534 */,
  37330. /* 535 */,
  37331. /* 536 */,
  37332. /* 537 */,
  37333. /* 538 */,
  37334. /* 539 */,
  37335. /* 540 */,
  37336. /* 541 */,
  37337. /* 542 */,
  37338. /* 543 */,
  37339. /* 544 */,
  37340. /* 545 */,
  37341. /* 546 */,
  37342. /* 547 */,
  37343. /* 548 */,
  37344. /* 549 */,
  37345. /* 550 */,
  37346. /* 551 */,
  37347. /* 552 */,
  37348. /* 553 */,
  37349. /* 554 */,
  37350. /* 555 */,
  37351. /* 556 */,
  37352. /* 557 */,
  37353. /* 558 */,
  37354. /* 559 */,
  37355. /* 560 */,
  37356. /* 561 */,
  37357. /* 562 */,
  37358. /* 563 */,
  37359. /* 564 */,
  37360. /* 565 */,
  37361. /* 566 */,
  37362. /* 567 */,
  37363. /* 568 */,
  37364. /* 569 */,
  37365. /* 570 */,
  37366. /* 571 */,
  37367. /* 572 */,
  37368. /* 573 */,
  37369. /* 574 */,
  37370. /* 575 */,
  37371. /* 576 */,
  37372. /* 577 */,
  37373. /* 578 */,
  37374. /* 579 */
  37375. /*!***********************************************************************************!*\
  37376. !*** D:/meloinfo/sugarpark-mini-program/node_modules/vue-jsonp/dist/index.esm.js ***!
  37377. \***********************************************************************************/
  37378. /*! no static exports found */
  37379. /***/ (function(module, exports, __webpack_require__) {
  37380. "use strict";
  37381. Object.defineProperty(exports, "__esModule", { value: true });exports.jsonp = o;exports.VueJsonp = void 0;function e(t, n) {t = t.replace(/=/g, "");var o = [];switch (n.constructor) {case String:case Number:case Boolean:o.push(encodeURIComponent(t) + "=" + encodeURIComponent(n));break;case Array:n.forEach(function (n) {o = o.concat(e(t + "[]=", n));});break;case Object:Object.keys(n).forEach(function (r) {var a = n[r];o = o.concat(e(t + "[" + r + "]", a));});}return o;}function t(e) {var n = [];return e.forEach(function (e) {"string" == typeof e ? n.push(e) : n = n.concat(t(e));}), n;}
  37382. /**
  37383. * Vue Jsonp.
  37384. * # Carry Your World #
  37385. *
  37386. * @author: LancerComet
  37387. * @license: MIT
  37388. */var n = { install: function install(e) {e.prototype.$jsonp = o;} };exports.VueJsonp = n;function o(n, o, r) {if (void 0 === o && (o = {}), "string" != typeof n) throw new Error('[Vue-jsonp] Type of param "url" is not string.');if ("object" != typeof o || !o) throw new Error("[Vue-jsonp] Invalid params, should be an object.");return r = "number" == typeof r ? r : 5e3, new Promise(function (a, c) {var u = "string" == typeof o.callbackQuery ? o.callbackQuery : "callback",i = "string" == typeof o.callbackName ? o.callbackName : "jsonp_" + (Math.floor(1e5 * Math.random()) * Date.now()).toString(16);o[u] = i, delete o.callbackQuery, delete o.callbackName;var s = [];Object.keys(o).forEach(function (t) {s = s.concat(e(t, o[t]));});var l = t(s).join("&"),f = function f() {p(), clearTimeout(m), c({ status: 400, statusText: "Bad Request" });},p = function p() {b.removeEventListener("error", f);},d = function d() {document.body.removeChild(b), delete window[i];},m = null;r > -1 && (m = setTimeout(function () {p(), d(), c({ statusText: "Request Timeout", status: 408 });}, r)), window[i] = function (e) {clearTimeout(m), p(), d(), a(e);};var b = document.createElement("script");b.addEventListener("error", f), b.src = n + (/\?/.test(n) ? "&" : "?") + l, document.body.appendChild(b);});}
  37389. /***/ })
  37390. ]]);
  37391. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map