moment-with-locales.js 603 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084
  1. ;(function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. global.moment = factory()
  5. }(this, (function () { 'use strict';
  6. var hookCallback;
  7. function hooks() {
  8. return hookCallback.apply(null, arguments);
  9. }
  10. // This is done to register the method called with moment()
  11. // without creating circular dependencies.
  12. function setHookCallback(callback) {
  13. hookCallback = callback;
  14. }
  15. function isArray(input) {
  16. return (
  17. input instanceof Array ||
  18. Object.prototype.toString.call(input) === '[object Array]'
  19. );
  20. }
  21. function isObject(input) {
  22. // IE8 will treat undefined and null as object if it wasn't for
  23. // input != null
  24. return (
  25. input != null &&
  26. Object.prototype.toString.call(input) === '[object Object]'
  27. );
  28. }
  29. function hasOwnProp(a, b) {
  30. return Object.prototype.hasOwnProperty.call(a, b);
  31. }
  32. function isObjectEmpty(obj) {
  33. if (Object.getOwnPropertyNames) {
  34. return Object.getOwnPropertyNames(obj).length === 0;
  35. } else {
  36. var k;
  37. for (k in obj) {
  38. if (hasOwnProp(obj, k)) {
  39. return false;
  40. }
  41. }
  42. return true;
  43. }
  44. }
  45. function isUndefined(input) {
  46. return input === void 0;
  47. }
  48. function isNumber(input) {
  49. return (
  50. typeof input === 'number' ||
  51. Object.prototype.toString.call(input) === '[object Number]'
  52. );
  53. }
  54. function isDate(input) {
  55. return (
  56. input instanceof Date ||
  57. Object.prototype.toString.call(input) === '[object Date]'
  58. );
  59. }
  60. function map(arr, fn) {
  61. var res = [],
  62. i;
  63. for (i = 0; i < arr.length; ++i) {
  64. res.push(fn(arr[i], i));
  65. }
  66. return res;
  67. }
  68. function extend(a, b) {
  69. for (var i in b) {
  70. if (hasOwnProp(b, i)) {
  71. a[i] = b[i];
  72. }
  73. }
  74. if (hasOwnProp(b, 'toString')) {
  75. a.toString = b.toString;
  76. }
  77. if (hasOwnProp(b, 'valueOf')) {
  78. a.valueOf = b.valueOf;
  79. }
  80. return a;
  81. }
  82. function createUTC(input, format, locale, strict) {
  83. return createLocalOrUTC(input, format, locale, strict, true).utc();
  84. }
  85. function defaultParsingFlags() {
  86. // We need to deep clone this object.
  87. return {
  88. empty: false,
  89. unusedTokens: [],
  90. unusedInput: [],
  91. overflow: -2,
  92. charsLeftOver: 0,
  93. nullInput: false,
  94. invalidEra: null,
  95. invalidMonth: null,
  96. invalidFormat: false,
  97. userInvalidated: false,
  98. iso: false,
  99. parsedDateParts: [],
  100. era: null,
  101. meridiem: null,
  102. rfc2822: false,
  103. weekdayMismatch: false,
  104. };
  105. }
  106. function getParsingFlags(m) {
  107. if (m._pf == null) {
  108. m._pf = defaultParsingFlags();
  109. }
  110. return m._pf;
  111. }
  112. var some;
  113. if (Array.prototype.some) {
  114. some = Array.prototype.some;
  115. } else {
  116. some = function (fun) {
  117. var t = Object(this),
  118. len = t.length >>> 0,
  119. i;
  120. for (i = 0; i < len; i++) {
  121. if (i in t && fun.call(this, t[i], i, t)) {
  122. return true;
  123. }
  124. }
  125. return false;
  126. };
  127. }
  128. function isValid(m) {
  129. if (m._isValid == null) {
  130. var flags = getParsingFlags(m),
  131. parsedParts = some.call(flags.parsedDateParts, function (i) {
  132. return i != null;
  133. }),
  134. isNowValid =
  135. !isNaN(m._d.getTime()) &&
  136. flags.overflow < 0 &&
  137. !flags.empty &&
  138. !flags.invalidEra &&
  139. !flags.invalidMonth &&
  140. !flags.invalidWeekday &&
  141. !flags.weekdayMismatch &&
  142. !flags.nullInput &&
  143. !flags.invalidFormat &&
  144. !flags.userInvalidated &&
  145. (!flags.meridiem || (flags.meridiem && parsedParts));
  146. if (m._strict) {
  147. isNowValid =
  148. isNowValid &&
  149. flags.charsLeftOver === 0 &&
  150. flags.unusedTokens.length === 0 &&
  151. flags.bigHour === undefined;
  152. }
  153. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  154. m._isValid = isNowValid;
  155. } else {
  156. return isNowValid;
  157. }
  158. }
  159. return m._isValid;
  160. }
  161. function createInvalid(flags) {
  162. var m = createUTC(NaN);
  163. if (flags != null) {
  164. extend(getParsingFlags(m), flags);
  165. } else {
  166. getParsingFlags(m).userInvalidated = true;
  167. }
  168. return m;
  169. }
  170. // Plugins that add properties should also add the key here (null value),
  171. // so we can properly clone ourselves.
  172. var momentProperties = (hooks.momentProperties = []),
  173. updateInProgress = false;
  174. function copyConfig(to, from) {
  175. var i, prop, val;
  176. if (!isUndefined(from._isAMomentObject)) {
  177. to._isAMomentObject = from._isAMomentObject;
  178. }
  179. if (!isUndefined(from._i)) {
  180. to._i = from._i;
  181. }
  182. if (!isUndefined(from._f)) {
  183. to._f = from._f;
  184. }
  185. if (!isUndefined(from._l)) {
  186. to._l = from._l;
  187. }
  188. if (!isUndefined(from._strict)) {
  189. to._strict = from._strict;
  190. }
  191. if (!isUndefined(from._tzm)) {
  192. to._tzm = from._tzm;
  193. }
  194. if (!isUndefined(from._isUTC)) {
  195. to._isUTC = from._isUTC;
  196. }
  197. if (!isUndefined(from._offset)) {
  198. to._offset = from._offset;
  199. }
  200. if (!isUndefined(from._pf)) {
  201. to._pf = getParsingFlags(from);
  202. }
  203. if (!isUndefined(from._locale)) {
  204. to._locale = from._locale;
  205. }
  206. if (momentProperties.length > 0) {
  207. for (i = 0; i < momentProperties.length; i++) {
  208. prop = momentProperties[i];
  209. val = from[prop];
  210. if (!isUndefined(val)) {
  211. to[prop] = val;
  212. }
  213. }
  214. }
  215. return to;
  216. }
  217. // Moment prototype object
  218. function Moment(config) {
  219. copyConfig(this, config);
  220. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  221. if (!this.isValid()) {
  222. this._d = new Date(NaN);
  223. }
  224. // Prevent infinite loop in case updateOffset creates new moment
  225. // objects.
  226. if (updateInProgress === false) {
  227. updateInProgress = true;
  228. hooks.updateOffset(this);
  229. updateInProgress = false;
  230. }
  231. }
  232. function isMoment(obj) {
  233. return (
  234. obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
  235. );
  236. }
  237. function warn(msg) {
  238. if (
  239. hooks.suppressDeprecationWarnings === false &&
  240. typeof console !== 'undefined' &&
  241. console.warn
  242. ) {
  243. console.warn('Deprecation warning: ' + msg);
  244. }
  245. }
  246. function deprecate(msg, fn) {
  247. var firstTime = true;
  248. return extend(function () {
  249. if (hooks.deprecationHandler != null) {
  250. hooks.deprecationHandler(null, msg);
  251. }
  252. if (firstTime) {
  253. var args = [],
  254. arg,
  255. i,
  256. key;
  257. for (i = 0; i < arguments.length; i++) {
  258. arg = '';
  259. if (typeof arguments[i] === 'object') {
  260. arg += '\n[' + i + '] ';
  261. for (key in arguments[0]) {
  262. if (hasOwnProp(arguments[0], key)) {
  263. arg += key + ': ' + arguments[0][key] + ', ';
  264. }
  265. }
  266. arg = arg.slice(0, -2); // Remove trailing comma and space
  267. } else {
  268. arg = arguments[i];
  269. }
  270. args.push(arg);
  271. }
  272. warn(
  273. msg +
  274. '\nArguments: ' +
  275. Array.prototype.slice.call(args).join('') +
  276. '\n' +
  277. new Error().stack
  278. );
  279. firstTime = false;
  280. }
  281. return fn.apply(this, arguments);
  282. }, fn);
  283. }
  284. var deprecations = {};
  285. function deprecateSimple(name, msg) {
  286. if (hooks.deprecationHandler != null) {
  287. hooks.deprecationHandler(name, msg);
  288. }
  289. if (!deprecations[name]) {
  290. warn(msg);
  291. deprecations[name] = true;
  292. }
  293. }
  294. hooks.suppressDeprecationWarnings = false;
  295. hooks.deprecationHandler = null;
  296. function isFunction(input) {
  297. return (
  298. (typeof Function !== 'undefined' && input instanceof Function) ||
  299. Object.prototype.toString.call(input) === '[object Function]'
  300. );
  301. }
  302. function set(config) {
  303. var prop, i;
  304. for (i in config) {
  305. if (hasOwnProp(config, i)) {
  306. prop = config[i];
  307. if (isFunction(prop)) {
  308. this[i] = prop;
  309. } else {
  310. this['_' + i] = prop;
  311. }
  312. }
  313. }
  314. this._config = config;
  315. // Lenient ordinal parsing accepts just a number in addition to
  316. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  317. // TODO: Remove "ordinalParse" fallback in next major release.
  318. this._dayOfMonthOrdinalParseLenient = new RegExp(
  319. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  320. '|' +
  321. /\d{1,2}/.source
  322. );
  323. }
  324. function mergeConfigs(parentConfig, childConfig) {
  325. var res = extend({}, parentConfig),
  326. prop;
  327. for (prop in childConfig) {
  328. if (hasOwnProp(childConfig, prop)) {
  329. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  330. res[prop] = {};
  331. extend(res[prop], parentConfig[prop]);
  332. extend(res[prop], childConfig[prop]);
  333. } else if (childConfig[prop] != null) {
  334. res[prop] = childConfig[prop];
  335. } else {
  336. delete res[prop];
  337. }
  338. }
  339. }
  340. for (prop in parentConfig) {
  341. if (
  342. hasOwnProp(parentConfig, prop) &&
  343. !hasOwnProp(childConfig, prop) &&
  344. isObject(parentConfig[prop])
  345. ) {
  346. // make sure changes to properties don't modify parent config
  347. res[prop] = extend({}, res[prop]);
  348. }
  349. }
  350. return res;
  351. }
  352. function Locale(config) {
  353. if (config != null) {
  354. this.set(config);
  355. }
  356. }
  357. var keys;
  358. if (Object.keys) {
  359. keys = Object.keys;
  360. } else {
  361. keys = function (obj) {
  362. var i,
  363. res = [];
  364. for (i in obj) {
  365. if (hasOwnProp(obj, i)) {
  366. res.push(i);
  367. }
  368. }
  369. return res;
  370. };
  371. }
  372. var defaultCalendar = {
  373. sameDay: '[Today at] LT',
  374. nextDay: '[Tomorrow at] LT',
  375. nextWeek: 'dddd [at] LT',
  376. lastDay: '[Yesterday at] LT',
  377. lastWeek: '[Last] dddd [at] LT',
  378. sameElse: 'L',
  379. };
  380. function calendar(key, mom, now) {
  381. var output = this._calendar[key] || this._calendar['sameElse'];
  382. return isFunction(output) ? output.call(mom, now) : output;
  383. }
  384. function zeroFill(number, targetLength, forceSign) {
  385. var absNumber = '' + Math.abs(number),
  386. zerosToFill = targetLength - absNumber.length,
  387. sign = number >= 0;
  388. return (
  389. (sign ? (forceSign ? '+' : '') : '-') +
  390. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
  391. absNumber
  392. );
  393. }
  394. var formattingTokens = /(\[[^\[]*\])|(\\)?([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,
  395. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  396. formatFunctions = {},
  397. formatTokenFunctions = {};
  398. // token: 'M'
  399. // padded: ['MM', 2]
  400. // ordinal: 'Mo'
  401. // callback: function () { this.month() + 1 }
  402. function addFormatToken(token, padded, ordinal, callback) {
  403. var func = callback;
  404. if (typeof callback === 'string') {
  405. func = function () {
  406. return this[callback]();
  407. };
  408. }
  409. if (token) {
  410. formatTokenFunctions[token] = func;
  411. }
  412. if (padded) {
  413. formatTokenFunctions[padded[0]] = function () {
  414. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  415. };
  416. }
  417. if (ordinal) {
  418. formatTokenFunctions[ordinal] = function () {
  419. return this.localeData().ordinal(
  420. func.apply(this, arguments),
  421. token
  422. );
  423. };
  424. }
  425. }
  426. function removeFormattingTokens(input) {
  427. if (input.match(/\[[\s\S]/)) {
  428. return input.replace(/^\[|\]$/g, '');
  429. }
  430. return input.replace(/\\/g, '');
  431. }
  432. function makeFormatFunction(format) {
  433. var array = format.match(formattingTokens),
  434. i,
  435. length;
  436. for (i = 0, length = array.length; i < length; i++) {
  437. if (formatTokenFunctions[array[i]]) {
  438. array[i] = formatTokenFunctions[array[i]];
  439. } else {
  440. array[i] = removeFormattingTokens(array[i]);
  441. }
  442. }
  443. return function (mom) {
  444. var output = '',
  445. i;
  446. for (i = 0; i < length; i++) {
  447. output += isFunction(array[i])
  448. ? array[i].call(mom, format)
  449. : array[i];
  450. }
  451. return output;
  452. };
  453. }
  454. // format date using native date object
  455. function formatMoment(m, format) {
  456. if (!m.isValid()) {
  457. return m.localeData().invalidDate();
  458. }
  459. format = expandFormat(format, m.localeData());
  460. formatFunctions[format] =
  461. formatFunctions[format] || makeFormatFunction(format);
  462. return formatFunctions[format](m);
  463. }
  464. function expandFormat(format, locale) {
  465. var i = 5;
  466. function replaceLongDateFormatTokens(input) {
  467. return locale.longDateFormat(input) || input;
  468. }
  469. localFormattingTokens.lastIndex = 0;
  470. while (i >= 0 && localFormattingTokens.test(format)) {
  471. format = format.replace(
  472. localFormattingTokens,
  473. replaceLongDateFormatTokens
  474. );
  475. localFormattingTokens.lastIndex = 0;
  476. i -= 1;
  477. }
  478. return format;
  479. }
  480. var defaultLongDateFormat = {
  481. LTS: 'h:mm:ss A',
  482. LT: 'h:mm A',
  483. L: 'MM/DD/YYYY',
  484. LL: 'MMMM D, YYYY',
  485. LLL: 'MMMM D, YYYY h:mm A',
  486. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  487. };
  488. function longDateFormat(key) {
  489. var format = this._longDateFormat[key],
  490. formatUpper = this._longDateFormat[key.toUpperCase()];
  491. if (format || !formatUpper) {
  492. return format;
  493. }
  494. this._longDateFormat[key] = formatUpper
  495. .match(formattingTokens)
  496. .map(function (tok) {
  497. if (
  498. tok === 'MMMM' ||
  499. tok === 'MM' ||
  500. tok === 'DD' ||
  501. tok === 'dddd'
  502. ) {
  503. return tok.slice(1);
  504. }
  505. return tok;
  506. })
  507. .join('');
  508. return this._longDateFormat[key];
  509. }
  510. var defaultInvalidDate = 'Invalid date';
  511. function invalidDate() {
  512. return this._invalidDate;
  513. }
  514. var defaultOrdinal = '%d',
  515. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  516. function ordinal(number) {
  517. return this._ordinal.replace('%d', number);
  518. }
  519. var defaultRelativeTime = {
  520. future: 'in %s',
  521. past: '%s ago',
  522. s: 'a few seconds',
  523. ss: '%d seconds',
  524. m: 'a minute',
  525. mm: '%d minutes',
  526. h: 'an hour',
  527. hh: '%d hours',
  528. d: 'a day',
  529. dd: '%d days',
  530. w: 'a week',
  531. ww: '%d weeks',
  532. M: 'a month',
  533. MM: '%d months',
  534. y: 'a year',
  535. yy: '%d years',
  536. };
  537. function relativeTime(number, withoutSuffix, string, isFuture) {
  538. var output = this._relativeTime[string];
  539. return isFunction(output)
  540. ? output(number, withoutSuffix, string, isFuture)
  541. : output.replace(/%d/i, number);
  542. }
  543. function pastFuture(diff, output) {
  544. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  545. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  546. }
  547. var aliases = {};
  548. function addUnitAlias(unit, shorthand) {
  549. var lowerCase = unit.toLowerCase();
  550. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  551. }
  552. function normalizeUnits(units) {
  553. return typeof units === 'string'
  554. ? aliases[units] || aliases[units.toLowerCase()]
  555. : undefined;
  556. }
  557. function normalizeObjectUnits(inputObject) {
  558. var normalizedInput = {},
  559. normalizedProp,
  560. prop;
  561. for (prop in inputObject) {
  562. if (hasOwnProp(inputObject, prop)) {
  563. normalizedProp = normalizeUnits(prop);
  564. if (normalizedProp) {
  565. normalizedInput[normalizedProp] = inputObject[prop];
  566. }
  567. }
  568. }
  569. return normalizedInput;
  570. }
  571. var priorities = {};
  572. function addUnitPriority(unit, priority) {
  573. priorities[unit] = priority;
  574. }
  575. function getPrioritizedUnits(unitsObj) {
  576. var units = [],
  577. u;
  578. for (u in unitsObj) {
  579. if (hasOwnProp(unitsObj, u)) {
  580. units.push({ unit: u, priority: priorities[u] });
  581. }
  582. }
  583. units.sort(function (a, b) {
  584. return a.priority - b.priority;
  585. });
  586. return units;
  587. }
  588. function isLeapYear(year) {
  589. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  590. }
  591. function absFloor(number) {
  592. if (number < 0) {
  593. // -0 -> 0
  594. return Math.ceil(number) || 0;
  595. } else {
  596. return Math.floor(number);
  597. }
  598. }
  599. function toInt(argumentForCoercion) {
  600. var coercedNumber = +argumentForCoercion,
  601. value = 0;
  602. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  603. value = absFloor(coercedNumber);
  604. }
  605. return value;
  606. }
  607. function makeGetSet(unit, keepTime) {
  608. return function (value) {
  609. if (value != null) {
  610. set$1(this, unit, value);
  611. hooks.updateOffset(this, keepTime);
  612. return this;
  613. } else {
  614. return get(this, unit);
  615. }
  616. };
  617. }
  618. function get(mom, unit) {
  619. return mom.isValid()
  620. ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
  621. : NaN;
  622. }
  623. function set$1(mom, unit, value) {
  624. if (mom.isValid() && !isNaN(value)) {
  625. if (
  626. unit === 'FullYear' &&
  627. isLeapYear(mom.year()) &&
  628. mom.month() === 1 &&
  629. mom.date() === 29
  630. ) {
  631. value = toInt(value);
  632. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
  633. value,
  634. mom.month(),
  635. daysInMonth(value, mom.month())
  636. );
  637. } else {
  638. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  639. }
  640. }
  641. }
  642. // MOMENTS
  643. function stringGet(units) {
  644. units = normalizeUnits(units);
  645. if (isFunction(this[units])) {
  646. return this[units]();
  647. }
  648. return this;
  649. }
  650. function stringSet(units, value) {
  651. if (typeof units === 'object') {
  652. units = normalizeObjectUnits(units);
  653. var prioritized = getPrioritizedUnits(units),
  654. i;
  655. for (i = 0; i < prioritized.length; i++) {
  656. this[prioritized[i].unit](units[prioritized[i].unit]);
  657. }
  658. } else {
  659. units = normalizeUnits(units);
  660. if (isFunction(this[units])) {
  661. return this[units](value);
  662. }
  663. }
  664. return this;
  665. }
  666. var match1 = /\d/, // 0 - 9
  667. match2 = /\d\d/, // 00 - 99
  668. match3 = /\d{3}/, // 000 - 999
  669. match4 = /\d{4}/, // 0000 - 9999
  670. match6 = /[+-]?\d{6}/, // -999999 - 999999
  671. match1to2 = /\d\d?/, // 0 - 99
  672. match3to4 = /\d\d\d\d?/, // 999 - 9999
  673. match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
  674. match1to3 = /\d{1,3}/, // 0 - 999
  675. match1to4 = /\d{1,4}/, // 0 - 9999
  676. match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
  677. matchUnsigned = /\d+/, // 0 - inf
  678. matchSigned = /[+-]?\d+/, // -inf - inf
  679. matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
  680. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  681. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
  682. // any word (or two) characters or numbers including two/three word month in arabic.
  683. // includes scottish gaelic two word and hyphenated months
  684. matchWord = /[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,
  685. regexes;
  686. regexes = {};
  687. function addRegexToken(token, regex, strictRegex) {
  688. regexes[token] = isFunction(regex)
  689. ? regex
  690. : function (isStrict, localeData) {
  691. return isStrict && strictRegex ? strictRegex : regex;
  692. };
  693. }
  694. function getParseRegexForToken(token, config) {
  695. if (!hasOwnProp(regexes, token)) {
  696. return new RegExp(unescapeFormat(token));
  697. }
  698. return regexes[token](config._strict, config._locale);
  699. }
  700. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  701. function unescapeFormat(s) {
  702. return regexEscape(
  703. s
  704. .replace('\\', '')
  705. .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
  706. matched,
  707. p1,
  708. p2,
  709. p3,
  710. p4
  711. ) {
  712. return p1 || p2 || p3 || p4;
  713. })
  714. );
  715. }
  716. function regexEscape(s) {
  717. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  718. }
  719. var tokens = {};
  720. function addParseToken(token, callback) {
  721. var i,
  722. func = callback;
  723. if (typeof token === 'string') {
  724. token = [token];
  725. }
  726. if (isNumber(callback)) {
  727. func = function (input, array) {
  728. array[callback] = toInt(input);
  729. };
  730. }
  731. for (i = 0; i < token.length; i++) {
  732. tokens[token[i]] = func;
  733. }
  734. }
  735. function addWeekParseToken(token, callback) {
  736. addParseToken(token, function (input, array, config, token) {
  737. config._w = config._w || {};
  738. callback(input, config._w, config, token);
  739. });
  740. }
  741. function addTimeToArrayFromToken(token, input, config) {
  742. if (input != null && hasOwnProp(tokens, token)) {
  743. tokens[token](input, config._a, config, token);
  744. }
  745. }
  746. var YEAR = 0,
  747. MONTH = 1,
  748. DATE = 2,
  749. HOUR = 3,
  750. MINUTE = 4,
  751. SECOND = 5,
  752. MILLISECOND = 6,
  753. WEEK = 7,
  754. WEEKDAY = 8;
  755. function mod(n, x) {
  756. return ((n % x) + x) % x;
  757. }
  758. var indexOf;
  759. if (Array.prototype.indexOf) {
  760. indexOf = Array.prototype.indexOf;
  761. } else {
  762. indexOf = function (o) {
  763. // I know
  764. var i;
  765. for (i = 0; i < this.length; ++i) {
  766. if (this[i] === o) {
  767. return i;
  768. }
  769. }
  770. return -1;
  771. };
  772. }
  773. function daysInMonth(year, month) {
  774. if (isNaN(year) || isNaN(month)) {
  775. return NaN;
  776. }
  777. var modMonth = mod(month, 12);
  778. year += (month - modMonth) / 12;
  779. return modMonth === 1
  780. ? isLeapYear(year)
  781. ? 29
  782. : 28
  783. : 31 - ((modMonth % 7) % 2);
  784. }
  785. // FORMATTING
  786. addFormatToken('M', ['MM', 2], 'Mo', function () {
  787. return this.month() + 1;
  788. });
  789. addFormatToken('MMM', 0, 0, function (format) {
  790. return this.localeData().monthsShort(this, format);
  791. });
  792. addFormatToken('MMMM', 0, 0, function (format) {
  793. return this.localeData().months(this, format);
  794. });
  795. // ALIASES
  796. addUnitAlias('month', 'M');
  797. // PRIORITY
  798. addUnitPriority('month', 8);
  799. // PARSING
  800. addRegexToken('M', match1to2);
  801. addRegexToken('MM', match1to2, match2);
  802. addRegexToken('MMM', function (isStrict, locale) {
  803. return locale.monthsShortRegex(isStrict);
  804. });
  805. addRegexToken('MMMM', function (isStrict, locale) {
  806. return locale.monthsRegex(isStrict);
  807. });
  808. addParseToken(['M', 'MM'], function (input, array) {
  809. array[MONTH] = toInt(input) - 1;
  810. });
  811. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  812. var month = config._locale.monthsParse(input, token, config._strict);
  813. // if we didn't find a month name, mark the date as invalid.
  814. if (month != null) {
  815. array[MONTH] = month;
  816. } else {
  817. getParsingFlags(config).invalidMonth = input;
  818. }
  819. });
  820. // LOCALES
  821. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  822. '_'
  823. ),
  824. defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
  825. '_'
  826. ),
  827. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  828. defaultMonthsShortRegex = matchWord,
  829. defaultMonthsRegex = matchWord;
  830. function localeMonths(m, format) {
  831. if (!m) {
  832. return isArray(this._months)
  833. ? this._months
  834. : this._months['standalone'];
  835. }
  836. return isArray(this._months)
  837. ? this._months[m.month()]
  838. : this._months[
  839. (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
  840. ? 'format'
  841. : 'standalone'
  842. ][m.month()];
  843. }
  844. function localeMonthsShort(m, format) {
  845. if (!m) {
  846. return isArray(this._monthsShort)
  847. ? this._monthsShort
  848. : this._monthsShort['standalone'];
  849. }
  850. return isArray(this._monthsShort)
  851. ? this._monthsShort[m.month()]
  852. : this._monthsShort[
  853. MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
  854. ][m.month()];
  855. }
  856. function handleStrictParse(monthName, format, strict) {
  857. var i,
  858. ii,
  859. mom,
  860. llc = monthName.toLocaleLowerCase();
  861. if (!this._monthsParse) {
  862. // this is not used
  863. this._monthsParse = [];
  864. this._longMonthsParse = [];
  865. this._shortMonthsParse = [];
  866. for (i = 0; i < 12; ++i) {
  867. mom = createUTC([2000, i]);
  868. this._shortMonthsParse[i] = this.monthsShort(
  869. mom,
  870. ''
  871. ).toLocaleLowerCase();
  872. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  873. }
  874. }
  875. if (strict) {
  876. if (format === 'MMM') {
  877. ii = indexOf.call(this._shortMonthsParse, llc);
  878. return ii !== -1 ? ii : null;
  879. } else {
  880. ii = indexOf.call(this._longMonthsParse, llc);
  881. return ii !== -1 ? ii : null;
  882. }
  883. } else {
  884. if (format === 'MMM') {
  885. ii = indexOf.call(this._shortMonthsParse, llc);
  886. if (ii !== -1) {
  887. return ii;
  888. }
  889. ii = indexOf.call(this._longMonthsParse, llc);
  890. return ii !== -1 ? ii : null;
  891. } else {
  892. ii = indexOf.call(this._longMonthsParse, llc);
  893. if (ii !== -1) {
  894. return ii;
  895. }
  896. ii = indexOf.call(this._shortMonthsParse, llc);
  897. return ii !== -1 ? ii : null;
  898. }
  899. }
  900. }
  901. function localeMonthsParse(monthName, format, strict) {
  902. var i, mom, regex;
  903. if (this._monthsParseExact) {
  904. return handleStrictParse.call(this, monthName, format, strict);
  905. }
  906. if (!this._monthsParse) {
  907. this._monthsParse = [];
  908. this._longMonthsParse = [];
  909. this._shortMonthsParse = [];
  910. }
  911. // TODO: add sorting
  912. // Sorting makes sure if one month (or abbr) is a prefix of another
  913. // see sorting in computeMonthsParse
  914. for (i = 0; i < 12; i++) {
  915. // make the regex if we don't have it already
  916. mom = createUTC([2000, i]);
  917. if (strict && !this._longMonthsParse[i]) {
  918. this._longMonthsParse[i] = new RegExp(
  919. '^' + this.months(mom, '').replace('.', '') + '$',
  920. 'i'
  921. );
  922. this._shortMonthsParse[i] = new RegExp(
  923. '^' + this.monthsShort(mom, '').replace('.', '') + '$',
  924. 'i'
  925. );
  926. }
  927. if (!strict && !this._monthsParse[i]) {
  928. regex =
  929. '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  930. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  931. }
  932. // test the regex
  933. if (
  934. strict &&
  935. format === 'MMMM' &&
  936. this._longMonthsParse[i].test(monthName)
  937. ) {
  938. return i;
  939. } else if (
  940. strict &&
  941. format === 'MMM' &&
  942. this._shortMonthsParse[i].test(monthName)
  943. ) {
  944. return i;
  945. } else if (!strict && this._monthsParse[i].test(monthName)) {
  946. return i;
  947. }
  948. }
  949. }
  950. // MOMENTS
  951. function setMonth(mom, value) {
  952. var dayOfMonth;
  953. if (!mom.isValid()) {
  954. // No op
  955. return mom;
  956. }
  957. if (typeof value === 'string') {
  958. if (/^\d+$/.test(value)) {
  959. value = toInt(value);
  960. } else {
  961. value = mom.localeData().monthsParse(value);
  962. // TODO: Another silent failure?
  963. if (!isNumber(value)) {
  964. return mom;
  965. }
  966. }
  967. }
  968. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  969. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  970. return mom;
  971. }
  972. function getSetMonth(value) {
  973. if (value != null) {
  974. setMonth(this, value);
  975. hooks.updateOffset(this, true);
  976. return this;
  977. } else {
  978. return get(this, 'Month');
  979. }
  980. }
  981. function getDaysInMonth() {
  982. return daysInMonth(this.year(), this.month());
  983. }
  984. function monthsShortRegex(isStrict) {
  985. if (this._monthsParseExact) {
  986. if (!hasOwnProp(this, '_monthsRegex')) {
  987. computeMonthsParse.call(this);
  988. }
  989. if (isStrict) {
  990. return this._monthsShortStrictRegex;
  991. } else {
  992. return this._monthsShortRegex;
  993. }
  994. } else {
  995. if (!hasOwnProp(this, '_monthsShortRegex')) {
  996. this._monthsShortRegex = defaultMonthsShortRegex;
  997. }
  998. return this._monthsShortStrictRegex && isStrict
  999. ? this._monthsShortStrictRegex
  1000. : this._monthsShortRegex;
  1001. }
  1002. }
  1003. function monthsRegex(isStrict) {
  1004. if (this._monthsParseExact) {
  1005. if (!hasOwnProp(this, '_monthsRegex')) {
  1006. computeMonthsParse.call(this);
  1007. }
  1008. if (isStrict) {
  1009. return this._monthsStrictRegex;
  1010. } else {
  1011. return this._monthsRegex;
  1012. }
  1013. } else {
  1014. if (!hasOwnProp(this, '_monthsRegex')) {
  1015. this._monthsRegex = defaultMonthsRegex;
  1016. }
  1017. return this._monthsStrictRegex && isStrict
  1018. ? this._monthsStrictRegex
  1019. : this._monthsRegex;
  1020. }
  1021. }
  1022. function computeMonthsParse() {
  1023. function cmpLenRev(a, b) {
  1024. return b.length - a.length;
  1025. }
  1026. var shortPieces = [],
  1027. longPieces = [],
  1028. mixedPieces = [],
  1029. i,
  1030. mom;
  1031. for (i = 0; i < 12; i++) {
  1032. // make the regex if we don't have it already
  1033. mom = createUTC([2000, i]);
  1034. shortPieces.push(this.monthsShort(mom, ''));
  1035. longPieces.push(this.months(mom, ''));
  1036. mixedPieces.push(this.months(mom, ''));
  1037. mixedPieces.push(this.monthsShort(mom, ''));
  1038. }
  1039. // Sorting makes sure if one month (or abbr) is a prefix of another it
  1040. // will match the longer piece.
  1041. shortPieces.sort(cmpLenRev);
  1042. longPieces.sort(cmpLenRev);
  1043. mixedPieces.sort(cmpLenRev);
  1044. for (i = 0; i < 12; i++) {
  1045. shortPieces[i] = regexEscape(shortPieces[i]);
  1046. longPieces[i] = regexEscape(longPieces[i]);
  1047. }
  1048. for (i = 0; i < 24; i++) {
  1049. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1050. }
  1051. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1052. this._monthsShortRegex = this._monthsRegex;
  1053. this._monthsStrictRegex = new RegExp(
  1054. '^(' + longPieces.join('|') + ')',
  1055. 'i'
  1056. );
  1057. this._monthsShortStrictRegex = new RegExp(
  1058. '^(' + shortPieces.join('|') + ')',
  1059. 'i'
  1060. );
  1061. }
  1062. // FORMATTING
  1063. addFormatToken('Y', 0, 0, function () {
  1064. var y = this.year();
  1065. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  1066. });
  1067. addFormatToken(0, ['YY', 2], 0, function () {
  1068. return this.year() % 100;
  1069. });
  1070. addFormatToken(0, ['YYYY', 4], 0, 'year');
  1071. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  1072. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  1073. // ALIASES
  1074. addUnitAlias('year', 'y');
  1075. // PRIORITIES
  1076. addUnitPriority('year', 1);
  1077. // PARSING
  1078. addRegexToken('Y', matchSigned);
  1079. addRegexToken('YY', match1to2, match2);
  1080. addRegexToken('YYYY', match1to4, match4);
  1081. addRegexToken('YYYYY', match1to6, match6);
  1082. addRegexToken('YYYYYY', match1to6, match6);
  1083. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  1084. addParseToken('YYYY', function (input, array) {
  1085. array[YEAR] =
  1086. input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  1087. });
  1088. addParseToken('YY', function (input, array) {
  1089. array[YEAR] = hooks.parseTwoDigitYear(input);
  1090. });
  1091. addParseToken('Y', function (input, array) {
  1092. array[YEAR] = parseInt(input, 10);
  1093. });
  1094. // HELPERS
  1095. function daysInYear(year) {
  1096. return isLeapYear(year) ? 366 : 365;
  1097. }
  1098. // HOOKS
  1099. hooks.parseTwoDigitYear = function (input) {
  1100. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  1101. };
  1102. // MOMENTS
  1103. var getSetYear = makeGetSet('FullYear', true);
  1104. function getIsLeapYear() {
  1105. return isLeapYear(this.year());
  1106. }
  1107. function createDate(y, m, d, h, M, s, ms) {
  1108. // can't just apply() to create a date:
  1109. // https://stackoverflow.com/q/181348
  1110. var date;
  1111. // the date constructor remaps years 0-99 to 1900-1999
  1112. if (y < 100 && y >= 0) {
  1113. // preserve leap years using a full 400 year cycle, then reset
  1114. date = new Date(y + 400, m, d, h, M, s, ms);
  1115. if (isFinite(date.getFullYear())) {
  1116. date.setFullYear(y);
  1117. }
  1118. } else {
  1119. date = new Date(y, m, d, h, M, s, ms);
  1120. }
  1121. return date;
  1122. }
  1123. function createUTCDate(y) {
  1124. var date, args;
  1125. // the Date.UTC function remaps years 0-99 to 1900-1999
  1126. if (y < 100 && y >= 0) {
  1127. args = Array.prototype.slice.call(arguments);
  1128. // preserve leap years using a full 400 year cycle, then reset
  1129. args[0] = y + 400;
  1130. date = new Date(Date.UTC.apply(null, args));
  1131. if (isFinite(date.getUTCFullYear())) {
  1132. date.setUTCFullYear(y);
  1133. }
  1134. } else {
  1135. date = new Date(Date.UTC.apply(null, arguments));
  1136. }
  1137. return date;
  1138. }
  1139. // start-of-first-week - start-of-year
  1140. function firstWeekOffset(year, dow, doy) {
  1141. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1142. fwd = 7 + dow - doy,
  1143. // first-week day local weekday -- which local weekday is fwd
  1144. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1145. return -fwdlw + fwd - 1;
  1146. }
  1147. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1148. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1149. var localWeekday = (7 + weekday - dow) % 7,
  1150. weekOffset = firstWeekOffset(year, dow, doy),
  1151. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1152. resYear,
  1153. resDayOfYear;
  1154. if (dayOfYear <= 0) {
  1155. resYear = year - 1;
  1156. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1157. } else if (dayOfYear > daysInYear(year)) {
  1158. resYear = year + 1;
  1159. resDayOfYear = dayOfYear - daysInYear(year);
  1160. } else {
  1161. resYear = year;
  1162. resDayOfYear = dayOfYear;
  1163. }
  1164. return {
  1165. year: resYear,
  1166. dayOfYear: resDayOfYear,
  1167. };
  1168. }
  1169. function weekOfYear(mom, dow, doy) {
  1170. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1171. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1172. resWeek,
  1173. resYear;
  1174. if (week < 1) {
  1175. resYear = mom.year() - 1;
  1176. resWeek = week + weeksInYear(resYear, dow, doy);
  1177. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1178. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1179. resYear = mom.year() + 1;
  1180. } else {
  1181. resYear = mom.year();
  1182. resWeek = week;
  1183. }
  1184. return {
  1185. week: resWeek,
  1186. year: resYear,
  1187. };
  1188. }
  1189. function weeksInYear(year, dow, doy) {
  1190. var weekOffset = firstWeekOffset(year, dow, doy),
  1191. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1192. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1193. }
  1194. // FORMATTING
  1195. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1196. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1197. // ALIASES
  1198. addUnitAlias('week', 'w');
  1199. addUnitAlias('isoWeek', 'W');
  1200. // PRIORITIES
  1201. addUnitPriority('week', 5);
  1202. addUnitPriority('isoWeek', 5);
  1203. // PARSING
  1204. addRegexToken('w', match1to2);
  1205. addRegexToken('ww', match1to2, match2);
  1206. addRegexToken('W', match1to2);
  1207. addRegexToken('WW', match1to2, match2);
  1208. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
  1209. input,
  1210. week,
  1211. config,
  1212. token
  1213. ) {
  1214. week[token.substr(0, 1)] = toInt(input);
  1215. });
  1216. // HELPERS
  1217. // LOCALES
  1218. function localeWeek(mom) {
  1219. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1220. }
  1221. var defaultLocaleWeek = {
  1222. dow: 0, // Sunday is the first day of the week.
  1223. doy: 6, // The week that contains Jan 6th is the first week of the year.
  1224. };
  1225. function localeFirstDayOfWeek() {
  1226. return this._week.dow;
  1227. }
  1228. function localeFirstDayOfYear() {
  1229. return this._week.doy;
  1230. }
  1231. // MOMENTS
  1232. function getSetWeek(input) {
  1233. var week = this.localeData().week(this);
  1234. return input == null ? week : this.add((input - week) * 7, 'd');
  1235. }
  1236. function getSetISOWeek(input) {
  1237. var week = weekOfYear(this, 1, 4).week;
  1238. return input == null ? week : this.add((input - week) * 7, 'd');
  1239. }
  1240. // FORMATTING
  1241. addFormatToken('d', 0, 'do', 'day');
  1242. addFormatToken('dd', 0, 0, function (format) {
  1243. return this.localeData().weekdaysMin(this, format);
  1244. });
  1245. addFormatToken('ddd', 0, 0, function (format) {
  1246. return this.localeData().weekdaysShort(this, format);
  1247. });
  1248. addFormatToken('dddd', 0, 0, function (format) {
  1249. return this.localeData().weekdays(this, format);
  1250. });
  1251. addFormatToken('e', 0, 0, 'weekday');
  1252. addFormatToken('E', 0, 0, 'isoWeekday');
  1253. // ALIASES
  1254. addUnitAlias('day', 'd');
  1255. addUnitAlias('weekday', 'e');
  1256. addUnitAlias('isoWeekday', 'E');
  1257. // PRIORITY
  1258. addUnitPriority('day', 11);
  1259. addUnitPriority('weekday', 11);
  1260. addUnitPriority('isoWeekday', 11);
  1261. // PARSING
  1262. addRegexToken('d', match1to2);
  1263. addRegexToken('e', match1to2);
  1264. addRegexToken('E', match1to2);
  1265. addRegexToken('dd', function (isStrict, locale) {
  1266. return locale.weekdaysMinRegex(isStrict);
  1267. });
  1268. addRegexToken('ddd', function (isStrict, locale) {
  1269. return locale.weekdaysShortRegex(isStrict);
  1270. });
  1271. addRegexToken('dddd', function (isStrict, locale) {
  1272. return locale.weekdaysRegex(isStrict);
  1273. });
  1274. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1275. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1276. // if we didn't get a weekday name, mark the date as invalid
  1277. if (weekday != null) {
  1278. week.d = weekday;
  1279. } else {
  1280. getParsingFlags(config).invalidWeekday = input;
  1281. }
  1282. });
  1283. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1284. week[token] = toInt(input);
  1285. });
  1286. // HELPERS
  1287. function parseWeekday(input, locale) {
  1288. if (typeof input !== 'string') {
  1289. return input;
  1290. }
  1291. if (!isNaN(input)) {
  1292. return parseInt(input, 10);
  1293. }
  1294. input = locale.weekdaysParse(input);
  1295. if (typeof input === 'number') {
  1296. return input;
  1297. }
  1298. return null;
  1299. }
  1300. function parseIsoWeekday(input, locale) {
  1301. if (typeof input === 'string') {
  1302. return locale.weekdaysParse(input) % 7 || 7;
  1303. }
  1304. return isNaN(input) ? null : input;
  1305. }
  1306. // LOCALES
  1307. function shiftWeekdays(ws, n) {
  1308. return ws.slice(n, 7).concat(ws.slice(0, n));
  1309. }
  1310. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  1311. '_'
  1312. ),
  1313. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1314. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1315. defaultWeekdaysRegex = matchWord,
  1316. defaultWeekdaysShortRegex = matchWord,
  1317. defaultWeekdaysMinRegex = matchWord;
  1318. function localeWeekdays(m, format) {
  1319. var weekdays = isArray(this._weekdays)
  1320. ? this._weekdays
  1321. : this._weekdays[
  1322. m && m !== true && this._weekdays.isFormat.test(format)
  1323. ? 'format'
  1324. : 'standalone'
  1325. ];
  1326. return m === true
  1327. ? shiftWeekdays(weekdays, this._week.dow)
  1328. : m
  1329. ? weekdays[m.day()]
  1330. : weekdays;
  1331. }
  1332. function localeWeekdaysShort(m) {
  1333. return m === true
  1334. ? shiftWeekdays(this._weekdaysShort, this._week.dow)
  1335. : m
  1336. ? this._weekdaysShort[m.day()]
  1337. : this._weekdaysShort;
  1338. }
  1339. function localeWeekdaysMin(m) {
  1340. return m === true
  1341. ? shiftWeekdays(this._weekdaysMin, this._week.dow)
  1342. : m
  1343. ? this._weekdaysMin[m.day()]
  1344. : this._weekdaysMin;
  1345. }
  1346. function handleStrictParse$1(weekdayName, format, strict) {
  1347. var i,
  1348. ii,
  1349. mom,
  1350. llc = weekdayName.toLocaleLowerCase();
  1351. if (!this._weekdaysParse) {
  1352. this._weekdaysParse = [];
  1353. this._shortWeekdaysParse = [];
  1354. this._minWeekdaysParse = [];
  1355. for (i = 0; i < 7; ++i) {
  1356. mom = createUTC([2000, 1]).day(i);
  1357. this._minWeekdaysParse[i] = this.weekdaysMin(
  1358. mom,
  1359. ''
  1360. ).toLocaleLowerCase();
  1361. this._shortWeekdaysParse[i] = this.weekdaysShort(
  1362. mom,
  1363. ''
  1364. ).toLocaleLowerCase();
  1365. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1366. }
  1367. }
  1368. if (strict) {
  1369. if (format === 'dddd') {
  1370. ii = indexOf.call(this._weekdaysParse, llc);
  1371. return ii !== -1 ? ii : null;
  1372. } else if (format === 'ddd') {
  1373. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1374. return ii !== -1 ? ii : null;
  1375. } else {
  1376. ii = indexOf.call(this._minWeekdaysParse, llc);
  1377. return ii !== -1 ? ii : null;
  1378. }
  1379. } else {
  1380. if (format === 'dddd') {
  1381. ii = indexOf.call(this._weekdaysParse, llc);
  1382. if (ii !== -1) {
  1383. return ii;
  1384. }
  1385. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1386. if (ii !== -1) {
  1387. return ii;
  1388. }
  1389. ii = indexOf.call(this._minWeekdaysParse, llc);
  1390. return ii !== -1 ? ii : null;
  1391. } else if (format === 'ddd') {
  1392. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1393. if (ii !== -1) {
  1394. return ii;
  1395. }
  1396. ii = indexOf.call(this._weekdaysParse, llc);
  1397. if (ii !== -1) {
  1398. return ii;
  1399. }
  1400. ii = indexOf.call(this._minWeekdaysParse, llc);
  1401. return ii !== -1 ? ii : null;
  1402. } else {
  1403. ii = indexOf.call(this._minWeekdaysParse, llc);
  1404. if (ii !== -1) {
  1405. return ii;
  1406. }
  1407. ii = indexOf.call(this._weekdaysParse, llc);
  1408. if (ii !== -1) {
  1409. return ii;
  1410. }
  1411. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1412. return ii !== -1 ? ii : null;
  1413. }
  1414. }
  1415. }
  1416. function localeWeekdaysParse(weekdayName, format, strict) {
  1417. var i, mom, regex;
  1418. if (this._weekdaysParseExact) {
  1419. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1420. }
  1421. if (!this._weekdaysParse) {
  1422. this._weekdaysParse = [];
  1423. this._minWeekdaysParse = [];
  1424. this._shortWeekdaysParse = [];
  1425. this._fullWeekdaysParse = [];
  1426. }
  1427. for (i = 0; i < 7; i++) {
  1428. // make the regex if we don't have it already
  1429. mom = createUTC([2000, 1]).day(i);
  1430. if (strict && !this._fullWeekdaysParse[i]) {
  1431. this._fullWeekdaysParse[i] = new RegExp(
  1432. '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
  1433. 'i'
  1434. );
  1435. this._shortWeekdaysParse[i] = new RegExp(
  1436. '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
  1437. 'i'
  1438. );
  1439. this._minWeekdaysParse[i] = new RegExp(
  1440. '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
  1441. 'i'
  1442. );
  1443. }
  1444. if (!this._weekdaysParse[i]) {
  1445. regex =
  1446. '^' +
  1447. this.weekdays(mom, '') +
  1448. '|^' +
  1449. this.weekdaysShort(mom, '') +
  1450. '|^' +
  1451. this.weekdaysMin(mom, '');
  1452. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1453. }
  1454. // test the regex
  1455. if (
  1456. strict &&
  1457. format === 'dddd' &&
  1458. this._fullWeekdaysParse[i].test(weekdayName)
  1459. ) {
  1460. return i;
  1461. } else if (
  1462. strict &&
  1463. format === 'ddd' &&
  1464. this._shortWeekdaysParse[i].test(weekdayName)
  1465. ) {
  1466. return i;
  1467. } else if (
  1468. strict &&
  1469. format === 'dd' &&
  1470. this._minWeekdaysParse[i].test(weekdayName)
  1471. ) {
  1472. return i;
  1473. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1474. return i;
  1475. }
  1476. }
  1477. }
  1478. // MOMENTS
  1479. function getSetDayOfWeek(input) {
  1480. if (!this.isValid()) {
  1481. return input != null ? this : NaN;
  1482. }
  1483. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1484. if (input != null) {
  1485. input = parseWeekday(input, this.localeData());
  1486. return this.add(input - day, 'd');
  1487. } else {
  1488. return day;
  1489. }
  1490. }
  1491. function getSetLocaleDayOfWeek(input) {
  1492. if (!this.isValid()) {
  1493. return input != null ? this : NaN;
  1494. }
  1495. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1496. return input == null ? weekday : this.add(input - weekday, 'd');
  1497. }
  1498. function getSetISODayOfWeek(input) {
  1499. if (!this.isValid()) {
  1500. return input != null ? this : NaN;
  1501. }
  1502. // behaves the same as moment#day except
  1503. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1504. // as a setter, sunday should belong to the previous week.
  1505. if (input != null) {
  1506. var weekday = parseIsoWeekday(input, this.localeData());
  1507. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1508. } else {
  1509. return this.day() || 7;
  1510. }
  1511. }
  1512. function weekdaysRegex(isStrict) {
  1513. if (this._weekdaysParseExact) {
  1514. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1515. computeWeekdaysParse.call(this);
  1516. }
  1517. if (isStrict) {
  1518. return this._weekdaysStrictRegex;
  1519. } else {
  1520. return this._weekdaysRegex;
  1521. }
  1522. } else {
  1523. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1524. this._weekdaysRegex = defaultWeekdaysRegex;
  1525. }
  1526. return this._weekdaysStrictRegex && isStrict
  1527. ? this._weekdaysStrictRegex
  1528. : this._weekdaysRegex;
  1529. }
  1530. }
  1531. function weekdaysShortRegex(isStrict) {
  1532. if (this._weekdaysParseExact) {
  1533. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1534. computeWeekdaysParse.call(this);
  1535. }
  1536. if (isStrict) {
  1537. return this._weekdaysShortStrictRegex;
  1538. } else {
  1539. return this._weekdaysShortRegex;
  1540. }
  1541. } else {
  1542. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1543. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1544. }
  1545. return this._weekdaysShortStrictRegex && isStrict
  1546. ? this._weekdaysShortStrictRegex
  1547. : this._weekdaysShortRegex;
  1548. }
  1549. }
  1550. function weekdaysMinRegex(isStrict) {
  1551. if (this._weekdaysParseExact) {
  1552. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1553. computeWeekdaysParse.call(this);
  1554. }
  1555. if (isStrict) {
  1556. return this._weekdaysMinStrictRegex;
  1557. } else {
  1558. return this._weekdaysMinRegex;
  1559. }
  1560. } else {
  1561. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1562. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1563. }
  1564. return this._weekdaysMinStrictRegex && isStrict
  1565. ? this._weekdaysMinStrictRegex
  1566. : this._weekdaysMinRegex;
  1567. }
  1568. }
  1569. function computeWeekdaysParse() {
  1570. function cmpLenRev(a, b) {
  1571. return b.length - a.length;
  1572. }
  1573. var minPieces = [],
  1574. shortPieces = [],
  1575. longPieces = [],
  1576. mixedPieces = [],
  1577. i,
  1578. mom,
  1579. minp,
  1580. shortp,
  1581. longp;
  1582. for (i = 0; i < 7; i++) {
  1583. // make the regex if we don't have it already
  1584. mom = createUTC([2000, 1]).day(i);
  1585. minp = regexEscape(this.weekdaysMin(mom, ''));
  1586. shortp = regexEscape(this.weekdaysShort(mom, ''));
  1587. longp = regexEscape(this.weekdays(mom, ''));
  1588. minPieces.push(minp);
  1589. shortPieces.push(shortp);
  1590. longPieces.push(longp);
  1591. mixedPieces.push(minp);
  1592. mixedPieces.push(shortp);
  1593. mixedPieces.push(longp);
  1594. }
  1595. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1596. // will match the longer piece.
  1597. minPieces.sort(cmpLenRev);
  1598. shortPieces.sort(cmpLenRev);
  1599. longPieces.sort(cmpLenRev);
  1600. mixedPieces.sort(cmpLenRev);
  1601. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1602. this._weekdaysShortRegex = this._weekdaysRegex;
  1603. this._weekdaysMinRegex = this._weekdaysRegex;
  1604. this._weekdaysStrictRegex = new RegExp(
  1605. '^(' + longPieces.join('|') + ')',
  1606. 'i'
  1607. );
  1608. this._weekdaysShortStrictRegex = new RegExp(
  1609. '^(' + shortPieces.join('|') + ')',
  1610. 'i'
  1611. );
  1612. this._weekdaysMinStrictRegex = new RegExp(
  1613. '^(' + minPieces.join('|') + ')',
  1614. 'i'
  1615. );
  1616. }
  1617. // FORMATTING
  1618. function hFormat() {
  1619. return this.hours() % 12 || 12;
  1620. }
  1621. function kFormat() {
  1622. return this.hours() || 24;
  1623. }
  1624. addFormatToken('H', ['HH', 2], 0, 'hour');
  1625. addFormatToken('h', ['hh', 2], 0, hFormat);
  1626. addFormatToken('k', ['kk', 2], 0, kFormat);
  1627. addFormatToken('hmm', 0, 0, function () {
  1628. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1629. });
  1630. addFormatToken('hmmss', 0, 0, function () {
  1631. return (
  1632. '' +
  1633. hFormat.apply(this) +
  1634. zeroFill(this.minutes(), 2) +
  1635. zeroFill(this.seconds(), 2)
  1636. );
  1637. });
  1638. addFormatToken('Hmm', 0, 0, function () {
  1639. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1640. });
  1641. addFormatToken('Hmmss', 0, 0, function () {
  1642. return (
  1643. '' +
  1644. this.hours() +
  1645. zeroFill(this.minutes(), 2) +
  1646. zeroFill(this.seconds(), 2)
  1647. );
  1648. });
  1649. function meridiem(token, lowercase) {
  1650. addFormatToken(token, 0, 0, function () {
  1651. return this.localeData().meridiem(
  1652. this.hours(),
  1653. this.minutes(),
  1654. lowercase
  1655. );
  1656. });
  1657. }
  1658. meridiem('a', true);
  1659. meridiem('A', false);
  1660. // ALIASES
  1661. addUnitAlias('hour', 'h');
  1662. // PRIORITY
  1663. addUnitPriority('hour', 13);
  1664. // PARSING
  1665. function matchMeridiem(isStrict, locale) {
  1666. return locale._meridiemParse;
  1667. }
  1668. addRegexToken('a', matchMeridiem);
  1669. addRegexToken('A', matchMeridiem);
  1670. addRegexToken('H', match1to2);
  1671. addRegexToken('h', match1to2);
  1672. addRegexToken('k', match1to2);
  1673. addRegexToken('HH', match1to2, match2);
  1674. addRegexToken('hh', match1to2, match2);
  1675. addRegexToken('kk', match1to2, match2);
  1676. addRegexToken('hmm', match3to4);
  1677. addRegexToken('hmmss', match5to6);
  1678. addRegexToken('Hmm', match3to4);
  1679. addRegexToken('Hmmss', match5to6);
  1680. addParseToken(['H', 'HH'], HOUR);
  1681. addParseToken(['k', 'kk'], function (input, array, config) {
  1682. var kInput = toInt(input);
  1683. array[HOUR] = kInput === 24 ? 0 : kInput;
  1684. });
  1685. addParseToken(['a', 'A'], function (input, array, config) {
  1686. config._isPm = config._locale.isPM(input);
  1687. config._meridiem = input;
  1688. });
  1689. addParseToken(['h', 'hh'], function (input, array, config) {
  1690. array[HOUR] = toInt(input);
  1691. getParsingFlags(config).bigHour = true;
  1692. });
  1693. addParseToken('hmm', function (input, array, config) {
  1694. var pos = input.length - 2;
  1695. array[HOUR] = toInt(input.substr(0, pos));
  1696. array[MINUTE] = toInt(input.substr(pos));
  1697. getParsingFlags(config).bigHour = true;
  1698. });
  1699. addParseToken('hmmss', function (input, array, config) {
  1700. var pos1 = input.length - 4,
  1701. pos2 = input.length - 2;
  1702. array[HOUR] = toInt(input.substr(0, pos1));
  1703. array[MINUTE] = toInt(input.substr(pos1, 2));
  1704. array[SECOND] = toInt(input.substr(pos2));
  1705. getParsingFlags(config).bigHour = true;
  1706. });
  1707. addParseToken('Hmm', function (input, array, config) {
  1708. var pos = input.length - 2;
  1709. array[HOUR] = toInt(input.substr(0, pos));
  1710. array[MINUTE] = toInt(input.substr(pos));
  1711. });
  1712. addParseToken('Hmmss', function (input, array, config) {
  1713. var pos1 = input.length - 4,
  1714. pos2 = input.length - 2;
  1715. array[HOUR] = toInt(input.substr(0, pos1));
  1716. array[MINUTE] = toInt(input.substr(pos1, 2));
  1717. array[SECOND] = toInt(input.substr(pos2));
  1718. });
  1719. // LOCALES
  1720. function localeIsPM(input) {
  1721. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1722. // Using charAt should be more compatible.
  1723. return (input + '').toLowerCase().charAt(0) === 'p';
  1724. }
  1725. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  1726. // Setting the hour should keep the time, because the user explicitly
  1727. // specified which hour they want. So trying to maintain the same hour (in
  1728. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1729. // this rule.
  1730. getSetHour = makeGetSet('Hours', true);
  1731. function localeMeridiem(hours, minutes, isLower) {
  1732. if (hours > 11) {
  1733. return isLower ? 'pm' : 'PM';
  1734. } else {
  1735. return isLower ? 'am' : 'AM';
  1736. }
  1737. }
  1738. var baseConfig = {
  1739. calendar: defaultCalendar,
  1740. longDateFormat: defaultLongDateFormat,
  1741. invalidDate: defaultInvalidDate,
  1742. ordinal: defaultOrdinal,
  1743. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1744. relativeTime: defaultRelativeTime,
  1745. months: defaultLocaleMonths,
  1746. monthsShort: defaultLocaleMonthsShort,
  1747. week: defaultLocaleWeek,
  1748. weekdays: defaultLocaleWeekdays,
  1749. weekdaysMin: defaultLocaleWeekdaysMin,
  1750. weekdaysShort: defaultLocaleWeekdaysShort,
  1751. meridiemParse: defaultLocaleMeridiemParse,
  1752. };
  1753. // internal storage for locale config files
  1754. var locales = {},
  1755. localeFamilies = {},
  1756. globalLocale;
  1757. function commonPrefix(arr1, arr2) {
  1758. var i,
  1759. minl = Math.min(arr1.length, arr2.length);
  1760. for (i = 0; i < minl; i += 1) {
  1761. if (arr1[i] !== arr2[i]) {
  1762. return i;
  1763. }
  1764. }
  1765. return minl;
  1766. }
  1767. function normalizeLocale(key) {
  1768. return key ? key.toLowerCase().replace('_', '-') : key;
  1769. }
  1770. // pick the locale from the array
  1771. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1772. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1773. function chooseLocale(names) {
  1774. var i = 0,
  1775. j,
  1776. next,
  1777. locale,
  1778. split;
  1779. while (i < names.length) {
  1780. split = normalizeLocale(names[i]).split('-');
  1781. j = split.length;
  1782. next = normalizeLocale(names[i + 1]);
  1783. next = next ? next.split('-') : null;
  1784. while (j > 0) {
  1785. locale = loadLocale(split.slice(0, j).join('-'));
  1786. if (locale) {
  1787. return locale;
  1788. }
  1789. if (
  1790. next &&
  1791. next.length >= j &&
  1792. commonPrefix(split, next) >= j - 1
  1793. ) {
  1794. //the next array item is better than a shallower substring of this one
  1795. break;
  1796. }
  1797. j--;
  1798. }
  1799. i++;
  1800. }
  1801. return globalLocale;
  1802. }
  1803. function loadLocale(name) {
  1804. var oldLocale = null,
  1805. aliasedRequire;
  1806. // TODO: Find a better way to register and load all the locales in Node
  1807. if (
  1808. locales[name] === undefined &&
  1809. typeof module !== 'undefined' &&
  1810. module &&
  1811. module.exports
  1812. ) {
  1813. try {
  1814. oldLocale = globalLocale._abbr;
  1815. aliasedRequire = require;
  1816. aliasedRequire('./locale/' + name);
  1817. getSetGlobalLocale(oldLocale);
  1818. } catch (e) {
  1819. // mark as not found to avoid repeating expensive file require call causing high CPU
  1820. // when trying to find en-US, en_US, en-us for every format call
  1821. locales[name] = null; // null means not found
  1822. }
  1823. }
  1824. return locales[name];
  1825. }
  1826. // This function will load locale and then set the global locale. If
  1827. // no arguments are passed in, it will simply return the current global
  1828. // locale key.
  1829. function getSetGlobalLocale(key, values) {
  1830. var data;
  1831. if (key) {
  1832. if (isUndefined(values)) {
  1833. data = getLocale(key);
  1834. } else {
  1835. data = defineLocale(key, values);
  1836. }
  1837. if (data) {
  1838. // moment.duration._locale = moment._locale = data;
  1839. globalLocale = data;
  1840. } else {
  1841. if (typeof console !== 'undefined' && console.warn) {
  1842. //warn user if arguments are passed but the locale could not be set
  1843. console.warn(
  1844. 'Locale ' + key + ' not found. Did you forget to load it?'
  1845. );
  1846. }
  1847. }
  1848. }
  1849. return globalLocale._abbr;
  1850. }
  1851. function defineLocale(name, config) {
  1852. if (config !== null) {
  1853. var locale,
  1854. parentConfig = baseConfig;
  1855. config.abbr = name;
  1856. if (locales[name] != null) {
  1857. deprecateSimple(
  1858. 'defineLocaleOverride',
  1859. 'use moment.updateLocale(localeName, config) to change ' +
  1860. 'an existing locale. moment.defineLocale(localeName, ' +
  1861. 'config) should only be used for creating a new locale ' +
  1862. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
  1863. );
  1864. parentConfig = locales[name]._config;
  1865. } else if (config.parentLocale != null) {
  1866. if (locales[config.parentLocale] != null) {
  1867. parentConfig = locales[config.parentLocale]._config;
  1868. } else {
  1869. locale = loadLocale(config.parentLocale);
  1870. if (locale != null) {
  1871. parentConfig = locale._config;
  1872. } else {
  1873. if (!localeFamilies[config.parentLocale]) {
  1874. localeFamilies[config.parentLocale] = [];
  1875. }
  1876. localeFamilies[config.parentLocale].push({
  1877. name: name,
  1878. config: config,
  1879. });
  1880. return null;
  1881. }
  1882. }
  1883. }
  1884. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1885. if (localeFamilies[name]) {
  1886. localeFamilies[name].forEach(function (x) {
  1887. defineLocale(x.name, x.config);
  1888. });
  1889. }
  1890. // backwards compat for now: also set the locale
  1891. // make sure we set the locale AFTER all child locales have been
  1892. // created, so we won't end up with the child locale set.
  1893. getSetGlobalLocale(name);
  1894. return locales[name];
  1895. } else {
  1896. // useful for testing
  1897. delete locales[name];
  1898. return null;
  1899. }
  1900. }
  1901. function updateLocale(name, config) {
  1902. if (config != null) {
  1903. var locale,
  1904. tmpLocale,
  1905. parentConfig = baseConfig;
  1906. if (locales[name] != null && locales[name].parentLocale != null) {
  1907. // Update existing child locale in-place to avoid memory-leaks
  1908. locales[name].set(mergeConfigs(locales[name]._config, config));
  1909. } else {
  1910. // MERGE
  1911. tmpLocale = loadLocale(name);
  1912. if (tmpLocale != null) {
  1913. parentConfig = tmpLocale._config;
  1914. }
  1915. config = mergeConfigs(parentConfig, config);
  1916. if (tmpLocale == null) {
  1917. // updateLocale is called for creating a new locale
  1918. // Set abbr so it will have a name (getters return
  1919. // undefined otherwise).
  1920. config.abbr = name;
  1921. }
  1922. locale = new Locale(config);
  1923. locale.parentLocale = locales[name];
  1924. locales[name] = locale;
  1925. }
  1926. // backwards compat for now: also set the locale
  1927. getSetGlobalLocale(name);
  1928. } else {
  1929. // pass null for config to unupdate, useful for tests
  1930. if (locales[name] != null) {
  1931. if (locales[name].parentLocale != null) {
  1932. locales[name] = locales[name].parentLocale;
  1933. if (name === getSetGlobalLocale()) {
  1934. getSetGlobalLocale(name);
  1935. }
  1936. } else if (locales[name] != null) {
  1937. delete locales[name];
  1938. }
  1939. }
  1940. }
  1941. return locales[name];
  1942. }
  1943. // returns locale data
  1944. function getLocale(key) {
  1945. var locale;
  1946. if (key && key._locale && key._locale._abbr) {
  1947. key = key._locale._abbr;
  1948. }
  1949. if (!key) {
  1950. return globalLocale;
  1951. }
  1952. if (!isArray(key)) {
  1953. //short-circuit everything else
  1954. locale = loadLocale(key);
  1955. if (locale) {
  1956. return locale;
  1957. }
  1958. key = [key];
  1959. }
  1960. return chooseLocale(key);
  1961. }
  1962. function listLocales() {
  1963. return keys(locales);
  1964. }
  1965. function checkOverflow(m) {
  1966. var overflow,
  1967. a = m._a;
  1968. if (a && getParsingFlags(m).overflow === -2) {
  1969. overflow =
  1970. a[MONTH] < 0 || a[MONTH] > 11
  1971. ? MONTH
  1972. : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
  1973. ? DATE
  1974. : a[HOUR] < 0 ||
  1975. a[HOUR] > 24 ||
  1976. (a[HOUR] === 24 &&
  1977. (a[MINUTE] !== 0 ||
  1978. a[SECOND] !== 0 ||
  1979. a[MILLISECOND] !== 0))
  1980. ? HOUR
  1981. : a[MINUTE] < 0 || a[MINUTE] > 59
  1982. ? MINUTE
  1983. : a[SECOND] < 0 || a[SECOND] > 59
  1984. ? SECOND
  1985. : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
  1986. ? MILLISECOND
  1987. : -1;
  1988. if (
  1989. getParsingFlags(m)._overflowDayOfYear &&
  1990. (overflow < YEAR || overflow > DATE)
  1991. ) {
  1992. overflow = DATE;
  1993. }
  1994. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1995. overflow = WEEK;
  1996. }
  1997. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1998. overflow = WEEKDAY;
  1999. }
  2000. getParsingFlags(m).overflow = overflow;
  2001. }
  2002. return m;
  2003. }
  2004. // iso 8601 regex
  2005. // 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)
  2006. var extendedIsoRegex = /^\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)?)?$/,
  2007. basicIsoRegex = /^\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)?)?$/,
  2008. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  2009. isoDates = [
  2010. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  2011. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  2012. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  2013. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  2014. ['YYYY-DDD', /\d{4}-\d{3}/],
  2015. ['YYYY-MM', /\d{4}-\d\d/, false],
  2016. ['YYYYYYMMDD', /[+-]\d{10}/],
  2017. ['YYYYMMDD', /\d{8}/],
  2018. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  2019. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  2020. ['YYYYDDD', /\d{7}/],
  2021. ['YYYYMM', /\d{6}/, false],
  2022. ['YYYY', /\d{4}/, false],
  2023. ],
  2024. // iso time formats and regexes
  2025. isoTimes = [
  2026. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  2027. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  2028. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  2029. ['HH:mm', /\d\d:\d\d/],
  2030. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  2031. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  2032. ['HHmmss', /\d\d\d\d\d\d/],
  2033. ['HHmm', /\d\d\d\d/],
  2034. ['HH', /\d\d/],
  2035. ],
  2036. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  2037. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  2038. rfc2822 = /^(?:(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}))$/,
  2039. obsOffsets = {
  2040. UT: 0,
  2041. GMT: 0,
  2042. EDT: -4 * 60,
  2043. EST: -5 * 60,
  2044. CDT: -5 * 60,
  2045. CST: -6 * 60,
  2046. MDT: -6 * 60,
  2047. MST: -7 * 60,
  2048. PDT: -7 * 60,
  2049. PST: -8 * 60,
  2050. };
  2051. // date from iso format
  2052. function configFromISO(config) {
  2053. var i,
  2054. l,
  2055. string = config._i,
  2056. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  2057. allowTime,
  2058. dateFormat,
  2059. timeFormat,
  2060. tzFormat;
  2061. if (match) {
  2062. getParsingFlags(config).iso = true;
  2063. for (i = 0, l = isoDates.length; i < l; i++) {
  2064. if (isoDates[i][1].exec(match[1])) {
  2065. dateFormat = isoDates[i][0];
  2066. allowTime = isoDates[i][2] !== false;
  2067. break;
  2068. }
  2069. }
  2070. if (dateFormat == null) {
  2071. config._isValid = false;
  2072. return;
  2073. }
  2074. if (match[3]) {
  2075. for (i = 0, l = isoTimes.length; i < l; i++) {
  2076. if (isoTimes[i][1].exec(match[3])) {
  2077. // match[2] should be 'T' or space
  2078. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  2079. break;
  2080. }
  2081. }
  2082. if (timeFormat == null) {
  2083. config._isValid = false;
  2084. return;
  2085. }
  2086. }
  2087. if (!allowTime && timeFormat != null) {
  2088. config._isValid = false;
  2089. return;
  2090. }
  2091. if (match[4]) {
  2092. if (tzRegex.exec(match[4])) {
  2093. tzFormat = 'Z';
  2094. } else {
  2095. config._isValid = false;
  2096. return;
  2097. }
  2098. }
  2099. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  2100. configFromStringAndFormat(config);
  2101. } else {
  2102. config._isValid = false;
  2103. }
  2104. }
  2105. function extractFromRFC2822Strings(
  2106. yearStr,
  2107. monthStr,
  2108. dayStr,
  2109. hourStr,
  2110. minuteStr,
  2111. secondStr
  2112. ) {
  2113. var result = [
  2114. untruncateYear(yearStr),
  2115. defaultLocaleMonthsShort.indexOf(monthStr),
  2116. parseInt(dayStr, 10),
  2117. parseInt(hourStr, 10),
  2118. parseInt(minuteStr, 10),
  2119. ];
  2120. if (secondStr) {
  2121. result.push(parseInt(secondStr, 10));
  2122. }
  2123. return result;
  2124. }
  2125. function untruncateYear(yearStr) {
  2126. var year = parseInt(yearStr, 10);
  2127. if (year <= 49) {
  2128. return 2000 + year;
  2129. } else if (year <= 999) {
  2130. return 1900 + year;
  2131. }
  2132. return year;
  2133. }
  2134. function preprocessRFC2822(s) {
  2135. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  2136. return s
  2137. .replace(/\([^)]*\)|[\n\t]/g, ' ')
  2138. .replace(/(\s\s+)/g, ' ')
  2139. .replace(/^\s\s*/, '')
  2140. .replace(/\s\s*$/, '');
  2141. }
  2142. function checkWeekday(weekdayStr, parsedInput, config) {
  2143. if (weekdayStr) {
  2144. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  2145. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  2146. weekdayActual = new Date(
  2147. parsedInput[0],
  2148. parsedInput[1],
  2149. parsedInput[2]
  2150. ).getDay();
  2151. if (weekdayProvided !== weekdayActual) {
  2152. getParsingFlags(config).weekdayMismatch = true;
  2153. config._isValid = false;
  2154. return false;
  2155. }
  2156. }
  2157. return true;
  2158. }
  2159. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  2160. if (obsOffset) {
  2161. return obsOffsets[obsOffset];
  2162. } else if (militaryOffset) {
  2163. // the only allowed military tz is Z
  2164. return 0;
  2165. } else {
  2166. var hm = parseInt(numOffset, 10),
  2167. m = hm % 100,
  2168. h = (hm - m) / 100;
  2169. return h * 60 + m;
  2170. }
  2171. }
  2172. // date and time from ref 2822 format
  2173. function configFromRFC2822(config) {
  2174. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  2175. parsedArray;
  2176. if (match) {
  2177. parsedArray = extractFromRFC2822Strings(
  2178. match[4],
  2179. match[3],
  2180. match[2],
  2181. match[5],
  2182. match[6],
  2183. match[7]
  2184. );
  2185. if (!checkWeekday(match[1], parsedArray, config)) {
  2186. return;
  2187. }
  2188. config._a = parsedArray;
  2189. config._tzm = calculateOffset(match[8], match[9], match[10]);
  2190. config._d = createUTCDate.apply(null, config._a);
  2191. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2192. getParsingFlags(config).rfc2822 = true;
  2193. } else {
  2194. config._isValid = false;
  2195. }
  2196. }
  2197. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  2198. function configFromString(config) {
  2199. var matched = aspNetJsonRegex.exec(config._i);
  2200. if (matched !== null) {
  2201. config._d = new Date(+matched[1]);
  2202. return;
  2203. }
  2204. configFromISO(config);
  2205. if (config._isValid === false) {
  2206. delete config._isValid;
  2207. } else {
  2208. return;
  2209. }
  2210. configFromRFC2822(config);
  2211. if (config._isValid === false) {
  2212. delete config._isValid;
  2213. } else {
  2214. return;
  2215. }
  2216. if (config._strict) {
  2217. config._isValid = false;
  2218. } else {
  2219. // Final attempt, use Input Fallback
  2220. hooks.createFromInputFallback(config);
  2221. }
  2222. }
  2223. hooks.createFromInputFallback = deprecate(
  2224. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2225. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2226. 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2227. function (config) {
  2228. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2229. }
  2230. );
  2231. // Pick the first defined of two or three arguments.
  2232. function defaults(a, b, c) {
  2233. if (a != null) {
  2234. return a;
  2235. }
  2236. if (b != null) {
  2237. return b;
  2238. }
  2239. return c;
  2240. }
  2241. function currentDateArray(config) {
  2242. // hooks is actually the exported moment object
  2243. var nowValue = new Date(hooks.now());
  2244. if (config._useUTC) {
  2245. return [
  2246. nowValue.getUTCFullYear(),
  2247. nowValue.getUTCMonth(),
  2248. nowValue.getUTCDate(),
  2249. ];
  2250. }
  2251. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  2252. }
  2253. // convert an array to a date.
  2254. // the array should mirror the parameters below
  2255. // note: all values past the year are optional and will default to the lowest possible value.
  2256. // [year, month, day , hour, minute, second, millisecond]
  2257. function configFromArray(config) {
  2258. var i,
  2259. date,
  2260. input = [],
  2261. currentDate,
  2262. expectedWeekday,
  2263. yearToUse;
  2264. if (config._d) {
  2265. return;
  2266. }
  2267. currentDate = currentDateArray(config);
  2268. //compute day of the year from weeks and weekdays
  2269. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  2270. dayOfYearFromWeekInfo(config);
  2271. }
  2272. //if the day of the year is set, figure out what it is
  2273. if (config._dayOfYear != null) {
  2274. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  2275. if (
  2276. config._dayOfYear > daysInYear(yearToUse) ||
  2277. config._dayOfYear === 0
  2278. ) {
  2279. getParsingFlags(config)._overflowDayOfYear = true;
  2280. }
  2281. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  2282. config._a[MONTH] = date.getUTCMonth();
  2283. config._a[DATE] = date.getUTCDate();
  2284. }
  2285. // Default to current date.
  2286. // * if no year, month, day of month are given, default to today
  2287. // * if day of month is given, default month and year
  2288. // * if month is given, default only year
  2289. // * if year is given, don't default anything
  2290. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  2291. config._a[i] = input[i] = currentDate[i];
  2292. }
  2293. // Zero out whatever was not defaulted, including time
  2294. for (; i < 7; i++) {
  2295. config._a[i] = input[i] =
  2296. config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
  2297. }
  2298. // Check for 24:00:00.000
  2299. if (
  2300. config._a[HOUR] === 24 &&
  2301. config._a[MINUTE] === 0 &&
  2302. config._a[SECOND] === 0 &&
  2303. config._a[MILLISECOND] === 0
  2304. ) {
  2305. config._nextDay = true;
  2306. config._a[HOUR] = 0;
  2307. }
  2308. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  2309. null,
  2310. input
  2311. );
  2312. expectedWeekday = config._useUTC
  2313. ? config._d.getUTCDay()
  2314. : config._d.getDay();
  2315. // Apply timezone offset from input. The actual utcOffset can be changed
  2316. // with parseZone.
  2317. if (config._tzm != null) {
  2318. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2319. }
  2320. if (config._nextDay) {
  2321. config._a[HOUR] = 24;
  2322. }
  2323. // check for mismatching day of week
  2324. if (
  2325. config._w &&
  2326. typeof config._w.d !== 'undefined' &&
  2327. config._w.d !== expectedWeekday
  2328. ) {
  2329. getParsingFlags(config).weekdayMismatch = true;
  2330. }
  2331. }
  2332. function dayOfYearFromWeekInfo(config) {
  2333. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  2334. w = config._w;
  2335. if (w.GG != null || w.W != null || w.E != null) {
  2336. dow = 1;
  2337. doy = 4;
  2338. // TODO: We need to take the current isoWeekYear, but that depends on
  2339. // how we interpret now (local, utc, fixed offset). So create
  2340. // a now version of current config (take local/utc/offset flags, and
  2341. // create now).
  2342. weekYear = defaults(
  2343. w.GG,
  2344. config._a[YEAR],
  2345. weekOfYear(createLocal(), 1, 4).year
  2346. );
  2347. week = defaults(w.W, 1);
  2348. weekday = defaults(w.E, 1);
  2349. if (weekday < 1 || weekday > 7) {
  2350. weekdayOverflow = true;
  2351. }
  2352. } else {
  2353. dow = config._locale._week.dow;
  2354. doy = config._locale._week.doy;
  2355. curWeek = weekOfYear(createLocal(), dow, doy);
  2356. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  2357. // Default to current week.
  2358. week = defaults(w.w, curWeek.week);
  2359. if (w.d != null) {
  2360. // weekday -- low day numbers are considered next week
  2361. weekday = w.d;
  2362. if (weekday < 0 || weekday > 6) {
  2363. weekdayOverflow = true;
  2364. }
  2365. } else if (w.e != null) {
  2366. // local weekday -- counting starts from beginning of week
  2367. weekday = w.e + dow;
  2368. if (w.e < 0 || w.e > 6) {
  2369. weekdayOverflow = true;
  2370. }
  2371. } else {
  2372. // default to beginning of week
  2373. weekday = dow;
  2374. }
  2375. }
  2376. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  2377. getParsingFlags(config)._overflowWeeks = true;
  2378. } else if (weekdayOverflow != null) {
  2379. getParsingFlags(config)._overflowWeekday = true;
  2380. } else {
  2381. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  2382. config._a[YEAR] = temp.year;
  2383. config._dayOfYear = temp.dayOfYear;
  2384. }
  2385. }
  2386. // constant that refers to the ISO standard
  2387. hooks.ISO_8601 = function () {};
  2388. // constant that refers to the RFC 2822 form
  2389. hooks.RFC_2822 = function () {};
  2390. // date from string and format string
  2391. function configFromStringAndFormat(config) {
  2392. // TODO: Move this to another part of the creation flow to prevent circular deps
  2393. if (config._f === hooks.ISO_8601) {
  2394. configFromISO(config);
  2395. return;
  2396. }
  2397. if (config._f === hooks.RFC_2822) {
  2398. configFromRFC2822(config);
  2399. return;
  2400. }
  2401. config._a = [];
  2402. getParsingFlags(config).empty = true;
  2403. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2404. var string = '' + config._i,
  2405. i,
  2406. parsedInput,
  2407. tokens,
  2408. token,
  2409. skipped,
  2410. stringLength = string.length,
  2411. totalParsedInputLength = 0,
  2412. era;
  2413. tokens =
  2414. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2415. for (i = 0; i < tokens.length; i++) {
  2416. token = tokens[i];
  2417. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  2418. [])[0];
  2419. if (parsedInput) {
  2420. skipped = string.substr(0, string.indexOf(parsedInput));
  2421. if (skipped.length > 0) {
  2422. getParsingFlags(config).unusedInput.push(skipped);
  2423. }
  2424. string = string.slice(
  2425. string.indexOf(parsedInput) + parsedInput.length
  2426. );
  2427. totalParsedInputLength += parsedInput.length;
  2428. }
  2429. // don't parse if it's not a known token
  2430. if (formatTokenFunctions[token]) {
  2431. if (parsedInput) {
  2432. getParsingFlags(config).empty = false;
  2433. } else {
  2434. getParsingFlags(config).unusedTokens.push(token);
  2435. }
  2436. addTimeToArrayFromToken(token, parsedInput, config);
  2437. } else if (config._strict && !parsedInput) {
  2438. getParsingFlags(config).unusedTokens.push(token);
  2439. }
  2440. }
  2441. // add remaining unparsed input length to the string
  2442. getParsingFlags(config).charsLeftOver =
  2443. stringLength - totalParsedInputLength;
  2444. if (string.length > 0) {
  2445. getParsingFlags(config).unusedInput.push(string);
  2446. }
  2447. // clear _12h flag if hour is <= 12
  2448. if (
  2449. config._a[HOUR] <= 12 &&
  2450. getParsingFlags(config).bigHour === true &&
  2451. config._a[HOUR] > 0
  2452. ) {
  2453. getParsingFlags(config).bigHour = undefined;
  2454. }
  2455. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2456. getParsingFlags(config).meridiem = config._meridiem;
  2457. // handle meridiem
  2458. config._a[HOUR] = meridiemFixWrap(
  2459. config._locale,
  2460. config._a[HOUR],
  2461. config._meridiem
  2462. );
  2463. // handle era
  2464. era = getParsingFlags(config).era;
  2465. if (era !== null) {
  2466. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  2467. }
  2468. configFromArray(config);
  2469. checkOverflow(config);
  2470. }
  2471. function meridiemFixWrap(locale, hour, meridiem) {
  2472. var isPm;
  2473. if (meridiem == null) {
  2474. // nothing to do
  2475. return hour;
  2476. }
  2477. if (locale.meridiemHour != null) {
  2478. return locale.meridiemHour(hour, meridiem);
  2479. } else if (locale.isPM != null) {
  2480. // Fallback
  2481. isPm = locale.isPM(meridiem);
  2482. if (isPm && hour < 12) {
  2483. hour += 12;
  2484. }
  2485. if (!isPm && hour === 12) {
  2486. hour = 0;
  2487. }
  2488. return hour;
  2489. } else {
  2490. // this is not supposed to happen
  2491. return hour;
  2492. }
  2493. }
  2494. // date from string and array of format strings
  2495. function configFromStringAndArray(config) {
  2496. var tempConfig,
  2497. bestMoment,
  2498. scoreToBeat,
  2499. i,
  2500. currentScore,
  2501. validFormatFound,
  2502. bestFormatIsValid = false;
  2503. if (config._f.length === 0) {
  2504. getParsingFlags(config).invalidFormat = true;
  2505. config._d = new Date(NaN);
  2506. return;
  2507. }
  2508. for (i = 0; i < config._f.length; i++) {
  2509. currentScore = 0;
  2510. validFormatFound = false;
  2511. tempConfig = copyConfig({}, config);
  2512. if (config._useUTC != null) {
  2513. tempConfig._useUTC = config._useUTC;
  2514. }
  2515. tempConfig._f = config._f[i];
  2516. configFromStringAndFormat(tempConfig);
  2517. if (isValid(tempConfig)) {
  2518. validFormatFound = true;
  2519. }
  2520. // if there is any input that was not parsed add a penalty for that format
  2521. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2522. //or tokens
  2523. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2524. getParsingFlags(tempConfig).score = currentScore;
  2525. if (!bestFormatIsValid) {
  2526. if (
  2527. scoreToBeat == null ||
  2528. currentScore < scoreToBeat ||
  2529. validFormatFound
  2530. ) {
  2531. scoreToBeat = currentScore;
  2532. bestMoment = tempConfig;
  2533. if (validFormatFound) {
  2534. bestFormatIsValid = true;
  2535. }
  2536. }
  2537. } else {
  2538. if (currentScore < scoreToBeat) {
  2539. scoreToBeat = currentScore;
  2540. bestMoment = tempConfig;
  2541. }
  2542. }
  2543. }
  2544. extend(config, bestMoment || tempConfig);
  2545. }
  2546. function configFromObject(config) {
  2547. if (config._d) {
  2548. return;
  2549. }
  2550. var i = normalizeObjectUnits(config._i),
  2551. dayOrDate = i.day === undefined ? i.date : i.day;
  2552. config._a = map(
  2553. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  2554. function (obj) {
  2555. return obj && parseInt(obj, 10);
  2556. }
  2557. );
  2558. configFromArray(config);
  2559. }
  2560. function createFromConfig(config) {
  2561. var res = new Moment(checkOverflow(prepareConfig(config)));
  2562. if (res._nextDay) {
  2563. // Adding is smart enough around DST
  2564. res.add(1, 'd');
  2565. res._nextDay = undefined;
  2566. }
  2567. return res;
  2568. }
  2569. function prepareConfig(config) {
  2570. var input = config._i,
  2571. format = config._f;
  2572. config._locale = config._locale || getLocale(config._l);
  2573. if (input === null || (format === undefined && input === '')) {
  2574. return createInvalid({ nullInput: true });
  2575. }
  2576. if (typeof input === 'string') {
  2577. config._i = input = config._locale.preparse(input);
  2578. }
  2579. if (isMoment(input)) {
  2580. return new Moment(checkOverflow(input));
  2581. } else if (isDate(input)) {
  2582. config._d = input;
  2583. } else if (isArray(format)) {
  2584. configFromStringAndArray(config);
  2585. } else if (format) {
  2586. configFromStringAndFormat(config);
  2587. } else {
  2588. configFromInput(config);
  2589. }
  2590. if (!isValid(config)) {
  2591. config._d = null;
  2592. }
  2593. return config;
  2594. }
  2595. function configFromInput(config) {
  2596. var input = config._i;
  2597. if (isUndefined(input)) {
  2598. config._d = new Date(hooks.now());
  2599. } else if (isDate(input)) {
  2600. config._d = new Date(input.valueOf());
  2601. } else if (typeof input === 'string') {
  2602. configFromString(config);
  2603. } else if (isArray(input)) {
  2604. config._a = map(input.slice(0), function (obj) {
  2605. return parseInt(obj, 10);
  2606. });
  2607. configFromArray(config);
  2608. } else if (isObject(input)) {
  2609. configFromObject(config);
  2610. } else if (isNumber(input)) {
  2611. // from milliseconds
  2612. config._d = new Date(input);
  2613. } else {
  2614. hooks.createFromInputFallback(config);
  2615. }
  2616. }
  2617. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2618. var c = {};
  2619. if (format === true || format === false) {
  2620. strict = format;
  2621. format = undefined;
  2622. }
  2623. if (locale === true || locale === false) {
  2624. strict = locale;
  2625. locale = undefined;
  2626. }
  2627. if (
  2628. (isObject(input) && isObjectEmpty(input)) ||
  2629. (isArray(input) && input.length === 0)
  2630. ) {
  2631. input = undefined;
  2632. }
  2633. // object construction must be done this way.
  2634. // https://github.com/moment/moment/issues/1423
  2635. c._isAMomentObject = true;
  2636. c._useUTC = c._isUTC = isUTC;
  2637. c._l = locale;
  2638. c._i = input;
  2639. c._f = format;
  2640. c._strict = strict;
  2641. return createFromConfig(c);
  2642. }
  2643. function createLocal(input, format, locale, strict) {
  2644. return createLocalOrUTC(input, format, locale, strict, false);
  2645. }
  2646. var prototypeMin = deprecate(
  2647. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2648. function () {
  2649. var other = createLocal.apply(null, arguments);
  2650. if (this.isValid() && other.isValid()) {
  2651. return other < this ? this : other;
  2652. } else {
  2653. return createInvalid();
  2654. }
  2655. }
  2656. ),
  2657. prototypeMax = deprecate(
  2658. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2659. function () {
  2660. var other = createLocal.apply(null, arguments);
  2661. if (this.isValid() && other.isValid()) {
  2662. return other > this ? this : other;
  2663. } else {
  2664. return createInvalid();
  2665. }
  2666. }
  2667. );
  2668. // Pick a moment m from moments so that m[fn](other) is true for all
  2669. // other. This relies on the function fn to be transitive.
  2670. //
  2671. // moments should either be an array of moment objects or an array, whose
  2672. // first element is an array of moment objects.
  2673. function pickBy(fn, moments) {
  2674. var res, i;
  2675. if (moments.length === 1 && isArray(moments[0])) {
  2676. moments = moments[0];
  2677. }
  2678. if (!moments.length) {
  2679. return createLocal();
  2680. }
  2681. res = moments[0];
  2682. for (i = 1; i < moments.length; ++i) {
  2683. if (!moments[i].isValid() || moments[i][fn](res)) {
  2684. res = moments[i];
  2685. }
  2686. }
  2687. return res;
  2688. }
  2689. // TODO: Use [].sort instead?
  2690. function min() {
  2691. var args = [].slice.call(arguments, 0);
  2692. return pickBy('isBefore', args);
  2693. }
  2694. function max() {
  2695. var args = [].slice.call(arguments, 0);
  2696. return pickBy('isAfter', args);
  2697. }
  2698. var now = function () {
  2699. return Date.now ? Date.now() : +new Date();
  2700. };
  2701. var ordering = [
  2702. 'year',
  2703. 'quarter',
  2704. 'month',
  2705. 'week',
  2706. 'day',
  2707. 'hour',
  2708. 'minute',
  2709. 'second',
  2710. 'millisecond',
  2711. ];
  2712. function isDurationValid(m) {
  2713. var key,
  2714. unitHasDecimal = false,
  2715. i;
  2716. for (key in m) {
  2717. if (
  2718. hasOwnProp(m, key) &&
  2719. !(
  2720. indexOf.call(ordering, key) !== -1 &&
  2721. (m[key] == null || !isNaN(m[key]))
  2722. )
  2723. ) {
  2724. return false;
  2725. }
  2726. }
  2727. for (i = 0; i < ordering.length; ++i) {
  2728. if (m[ordering[i]]) {
  2729. if (unitHasDecimal) {
  2730. return false; // only allow non-integers for smallest unit
  2731. }
  2732. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2733. unitHasDecimal = true;
  2734. }
  2735. }
  2736. }
  2737. return true;
  2738. }
  2739. function isValid$1() {
  2740. return this._isValid;
  2741. }
  2742. function createInvalid$1() {
  2743. return createDuration(NaN);
  2744. }
  2745. function Duration(duration) {
  2746. var normalizedInput = normalizeObjectUnits(duration),
  2747. years = normalizedInput.year || 0,
  2748. quarters = normalizedInput.quarter || 0,
  2749. months = normalizedInput.month || 0,
  2750. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2751. days = normalizedInput.day || 0,
  2752. hours = normalizedInput.hour || 0,
  2753. minutes = normalizedInput.minute || 0,
  2754. seconds = normalizedInput.second || 0,
  2755. milliseconds = normalizedInput.millisecond || 0;
  2756. this._isValid = isDurationValid(normalizedInput);
  2757. // representation for dateAddRemove
  2758. this._milliseconds =
  2759. +milliseconds +
  2760. seconds * 1e3 + // 1000
  2761. minutes * 6e4 + // 1000 * 60
  2762. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2763. // Because of dateAddRemove treats 24 hours as different from a
  2764. // day when working around DST, we need to store them separately
  2765. this._days = +days + weeks * 7;
  2766. // It is impossible to translate months into days without knowing
  2767. // which months you are are talking about, so we have to store
  2768. // it separately.
  2769. this._months = +months + quarters * 3 + years * 12;
  2770. this._data = {};
  2771. this._locale = getLocale();
  2772. this._bubble();
  2773. }
  2774. function isDuration(obj) {
  2775. return obj instanceof Duration;
  2776. }
  2777. function absRound(number) {
  2778. if (number < 0) {
  2779. return Math.round(-1 * number) * -1;
  2780. } else {
  2781. return Math.round(number);
  2782. }
  2783. }
  2784. // compare two arrays, return the number of differences
  2785. function compareArrays(array1, array2, dontConvert) {
  2786. var len = Math.min(array1.length, array2.length),
  2787. lengthDiff = Math.abs(array1.length - array2.length),
  2788. diffs = 0,
  2789. i;
  2790. for (i = 0; i < len; i++) {
  2791. if (
  2792. (dontConvert && array1[i] !== array2[i]) ||
  2793. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  2794. ) {
  2795. diffs++;
  2796. }
  2797. }
  2798. return diffs + lengthDiff;
  2799. }
  2800. // FORMATTING
  2801. function offset(token, separator) {
  2802. addFormatToken(token, 0, 0, function () {
  2803. var offset = this.utcOffset(),
  2804. sign = '+';
  2805. if (offset < 0) {
  2806. offset = -offset;
  2807. sign = '-';
  2808. }
  2809. return (
  2810. sign +
  2811. zeroFill(~~(offset / 60), 2) +
  2812. separator +
  2813. zeroFill(~~offset % 60, 2)
  2814. );
  2815. });
  2816. }
  2817. offset('Z', ':');
  2818. offset('ZZ', '');
  2819. // PARSING
  2820. addRegexToken('Z', matchShortOffset);
  2821. addRegexToken('ZZ', matchShortOffset);
  2822. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2823. config._useUTC = true;
  2824. config._tzm = offsetFromString(matchShortOffset, input);
  2825. });
  2826. // HELPERS
  2827. // timezone chunker
  2828. // '+10:00' > ['10', '00']
  2829. // '-1530' > ['-15', '30']
  2830. var chunkOffset = /([\+\-]|\d\d)/gi;
  2831. function offsetFromString(matcher, string) {
  2832. var matches = (string || '').match(matcher),
  2833. chunk,
  2834. parts,
  2835. minutes;
  2836. if (matches === null) {
  2837. return null;
  2838. }
  2839. chunk = matches[matches.length - 1] || [];
  2840. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2841. minutes = +(parts[1] * 60) + toInt(parts[2]);
  2842. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  2843. }
  2844. // Return a moment from input, that is local/utc/zone equivalent to model.
  2845. function cloneWithOffset(input, model) {
  2846. var res, diff;
  2847. if (model._isUTC) {
  2848. res = model.clone();
  2849. diff =
  2850. (isMoment(input) || isDate(input)
  2851. ? input.valueOf()
  2852. : createLocal(input).valueOf()) - res.valueOf();
  2853. // Use low-level api, because this fn is low-level api.
  2854. res._d.setTime(res._d.valueOf() + diff);
  2855. hooks.updateOffset(res, false);
  2856. return res;
  2857. } else {
  2858. return createLocal(input).local();
  2859. }
  2860. }
  2861. function getDateOffset(m) {
  2862. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2863. // https://github.com/moment/moment/pull/1871
  2864. return -Math.round(m._d.getTimezoneOffset());
  2865. }
  2866. // HOOKS
  2867. // This function will be called whenever a moment is mutated.
  2868. // It is intended to keep the offset in sync with the timezone.
  2869. hooks.updateOffset = function () {};
  2870. // MOMENTS
  2871. // keepLocalTime = true means only change the timezone, without
  2872. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2873. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2874. // +0200, so we adjust the time as needed, to be valid.
  2875. //
  2876. // Keeping the time actually adds/subtracts (one hour)
  2877. // from the actual represented time. That is why we call updateOffset
  2878. // a second time. In case it wants us to change the offset again
  2879. // _changeInProgress == true case, then we have to adjust, because
  2880. // there is no such time in the given timezone.
  2881. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2882. var offset = this._offset || 0,
  2883. localAdjust;
  2884. if (!this.isValid()) {
  2885. return input != null ? this : NaN;
  2886. }
  2887. if (input != null) {
  2888. if (typeof input === 'string') {
  2889. input = offsetFromString(matchShortOffset, input);
  2890. if (input === null) {
  2891. return this;
  2892. }
  2893. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2894. input = input * 60;
  2895. }
  2896. if (!this._isUTC && keepLocalTime) {
  2897. localAdjust = getDateOffset(this);
  2898. }
  2899. this._offset = input;
  2900. this._isUTC = true;
  2901. if (localAdjust != null) {
  2902. this.add(localAdjust, 'm');
  2903. }
  2904. if (offset !== input) {
  2905. if (!keepLocalTime || this._changeInProgress) {
  2906. addSubtract(
  2907. this,
  2908. createDuration(input - offset, 'm'),
  2909. 1,
  2910. false
  2911. );
  2912. } else if (!this._changeInProgress) {
  2913. this._changeInProgress = true;
  2914. hooks.updateOffset(this, true);
  2915. this._changeInProgress = null;
  2916. }
  2917. }
  2918. return this;
  2919. } else {
  2920. return this._isUTC ? offset : getDateOffset(this);
  2921. }
  2922. }
  2923. function getSetZone(input, keepLocalTime) {
  2924. if (input != null) {
  2925. if (typeof input !== 'string') {
  2926. input = -input;
  2927. }
  2928. this.utcOffset(input, keepLocalTime);
  2929. return this;
  2930. } else {
  2931. return -this.utcOffset();
  2932. }
  2933. }
  2934. function setOffsetToUTC(keepLocalTime) {
  2935. return this.utcOffset(0, keepLocalTime);
  2936. }
  2937. function setOffsetToLocal(keepLocalTime) {
  2938. if (this._isUTC) {
  2939. this.utcOffset(0, keepLocalTime);
  2940. this._isUTC = false;
  2941. if (keepLocalTime) {
  2942. this.subtract(getDateOffset(this), 'm');
  2943. }
  2944. }
  2945. return this;
  2946. }
  2947. function setOffsetToParsedOffset() {
  2948. if (this._tzm != null) {
  2949. this.utcOffset(this._tzm, false, true);
  2950. } else if (typeof this._i === 'string') {
  2951. var tZone = offsetFromString(matchOffset, this._i);
  2952. if (tZone != null) {
  2953. this.utcOffset(tZone);
  2954. } else {
  2955. this.utcOffset(0, true);
  2956. }
  2957. }
  2958. return this;
  2959. }
  2960. function hasAlignedHourOffset(input) {
  2961. if (!this.isValid()) {
  2962. return false;
  2963. }
  2964. input = input ? createLocal(input).utcOffset() : 0;
  2965. return (this.utcOffset() - input) % 60 === 0;
  2966. }
  2967. function isDaylightSavingTime() {
  2968. return (
  2969. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2970. this.utcOffset() > this.clone().month(5).utcOffset()
  2971. );
  2972. }
  2973. function isDaylightSavingTimeShifted() {
  2974. if (!isUndefined(this._isDSTShifted)) {
  2975. return this._isDSTShifted;
  2976. }
  2977. var c = {},
  2978. other;
  2979. copyConfig(c, this);
  2980. c = prepareConfig(c);
  2981. if (c._a) {
  2982. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2983. this._isDSTShifted =
  2984. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  2985. } else {
  2986. this._isDSTShifted = false;
  2987. }
  2988. return this._isDSTShifted;
  2989. }
  2990. function isLocal() {
  2991. return this.isValid() ? !this._isUTC : false;
  2992. }
  2993. function isUtcOffset() {
  2994. return this.isValid() ? this._isUTC : false;
  2995. }
  2996. function isUtc() {
  2997. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2998. }
  2999. // ASP.NET json date format regex
  3000. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  3001. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  3002. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  3003. // and further modified to allow for strings containing both week and day
  3004. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  3005. function createDuration(input, key) {
  3006. var duration = input,
  3007. // matching against regexp is expensive, do it on demand
  3008. match = null,
  3009. sign,
  3010. ret,
  3011. diffRes;
  3012. if (isDuration(input)) {
  3013. duration = {
  3014. ms: input._milliseconds,
  3015. d: input._days,
  3016. M: input._months,
  3017. };
  3018. } else if (isNumber(input) || !isNaN(+input)) {
  3019. duration = {};
  3020. if (key) {
  3021. duration[key] = +input;
  3022. } else {
  3023. duration.milliseconds = +input;
  3024. }
  3025. } else if ((match = aspNetRegex.exec(input))) {
  3026. sign = match[1] === '-' ? -1 : 1;
  3027. duration = {
  3028. y: 0,
  3029. d: toInt(match[DATE]) * sign,
  3030. h: toInt(match[HOUR]) * sign,
  3031. m: toInt(match[MINUTE]) * sign,
  3032. s: toInt(match[SECOND]) * sign,
  3033. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
  3034. };
  3035. } else if ((match = isoRegex.exec(input))) {
  3036. sign = match[1] === '-' ? -1 : 1;
  3037. duration = {
  3038. y: parseIso(match[2], sign),
  3039. M: parseIso(match[3], sign),
  3040. w: parseIso(match[4], sign),
  3041. d: parseIso(match[5], sign),
  3042. h: parseIso(match[6], sign),
  3043. m: parseIso(match[7], sign),
  3044. s: parseIso(match[8], sign),
  3045. };
  3046. } else if (duration == null) {
  3047. // checks for null or undefined
  3048. duration = {};
  3049. } else if (
  3050. typeof duration === 'object' &&
  3051. ('from' in duration || 'to' in duration)
  3052. ) {
  3053. diffRes = momentsDifference(
  3054. createLocal(duration.from),
  3055. createLocal(duration.to)
  3056. );
  3057. duration = {};
  3058. duration.ms = diffRes.milliseconds;
  3059. duration.M = diffRes.months;
  3060. }
  3061. ret = new Duration(duration);
  3062. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  3063. ret._locale = input._locale;
  3064. }
  3065. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  3066. ret._isValid = input._isValid;
  3067. }
  3068. return ret;
  3069. }
  3070. createDuration.fn = Duration.prototype;
  3071. createDuration.invalid = createInvalid$1;
  3072. function parseIso(inp, sign) {
  3073. // We'd normally use ~~inp for this, but unfortunately it also
  3074. // converts floats to ints.
  3075. // inp may be undefined, so careful calling replace on it.
  3076. var res = inp && parseFloat(inp.replace(',', '.'));
  3077. // apply sign while we're at it
  3078. return (isNaN(res) ? 0 : res) * sign;
  3079. }
  3080. function positiveMomentsDifference(base, other) {
  3081. var res = {};
  3082. res.months =
  3083. other.month() - base.month() + (other.year() - base.year()) * 12;
  3084. if (base.clone().add(res.months, 'M').isAfter(other)) {
  3085. --res.months;
  3086. }
  3087. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  3088. return res;
  3089. }
  3090. function momentsDifference(base, other) {
  3091. var res;
  3092. if (!(base.isValid() && other.isValid())) {
  3093. return { milliseconds: 0, months: 0 };
  3094. }
  3095. other = cloneWithOffset(other, base);
  3096. if (base.isBefore(other)) {
  3097. res = positiveMomentsDifference(base, other);
  3098. } else {
  3099. res = positiveMomentsDifference(other, base);
  3100. res.milliseconds = -res.milliseconds;
  3101. res.months = -res.months;
  3102. }
  3103. return res;
  3104. }
  3105. // TODO: remove 'name' arg after deprecation is removed
  3106. function createAdder(direction, name) {
  3107. return function (val, period) {
  3108. var dur, tmp;
  3109. //invert the arguments, but complain about it
  3110. if (period !== null && !isNaN(+period)) {
  3111. deprecateSimple(
  3112. name,
  3113. 'moment().' +
  3114. name +
  3115. '(period, number) is deprecated. Please use moment().' +
  3116. name +
  3117. '(number, period). ' +
  3118. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
  3119. );
  3120. tmp = val;
  3121. val = period;
  3122. period = tmp;
  3123. }
  3124. dur = createDuration(val, period);
  3125. addSubtract(this, dur, direction);
  3126. return this;
  3127. };
  3128. }
  3129. function addSubtract(mom, duration, isAdding, updateOffset) {
  3130. var milliseconds = duration._milliseconds,
  3131. days = absRound(duration._days),
  3132. months = absRound(duration._months);
  3133. if (!mom.isValid()) {
  3134. // No op
  3135. return;
  3136. }
  3137. updateOffset = updateOffset == null ? true : updateOffset;
  3138. if (months) {
  3139. setMonth(mom, get(mom, 'Month') + months * isAdding);
  3140. }
  3141. if (days) {
  3142. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  3143. }
  3144. if (milliseconds) {
  3145. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  3146. }
  3147. if (updateOffset) {
  3148. hooks.updateOffset(mom, days || months);
  3149. }
  3150. }
  3151. var add = createAdder(1, 'add'),
  3152. subtract = createAdder(-1, 'subtract');
  3153. function isString(input) {
  3154. return typeof input === 'string' || input instanceof String;
  3155. }
  3156. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  3157. function isMomentInput(input) {
  3158. return (
  3159. isMoment(input) ||
  3160. isDate(input) ||
  3161. isString(input) ||
  3162. isNumber(input) ||
  3163. isNumberOrStringArray(input) ||
  3164. isMomentInputObject(input) ||
  3165. input === null ||
  3166. input === undefined
  3167. );
  3168. }
  3169. function isMomentInputObject(input) {
  3170. var objectTest = isObject(input) && !isObjectEmpty(input),
  3171. propertyTest = false,
  3172. properties = [
  3173. 'years',
  3174. 'year',
  3175. 'y',
  3176. 'months',
  3177. 'month',
  3178. 'M',
  3179. 'days',
  3180. 'day',
  3181. 'd',
  3182. 'dates',
  3183. 'date',
  3184. 'D',
  3185. 'hours',
  3186. 'hour',
  3187. 'h',
  3188. 'minutes',
  3189. 'minute',
  3190. 'm',
  3191. 'seconds',
  3192. 'second',
  3193. 's',
  3194. 'milliseconds',
  3195. 'millisecond',
  3196. 'ms',
  3197. ],
  3198. i,
  3199. property;
  3200. for (i = 0; i < properties.length; i += 1) {
  3201. property = properties[i];
  3202. propertyTest = propertyTest || hasOwnProp(input, property);
  3203. }
  3204. return objectTest && propertyTest;
  3205. }
  3206. function isNumberOrStringArray(input) {
  3207. var arrayTest = isArray(input),
  3208. dataTypeTest = false;
  3209. if (arrayTest) {
  3210. dataTypeTest =
  3211. input.filter(function (item) {
  3212. return !isNumber(item) && isString(input);
  3213. }).length === 0;
  3214. }
  3215. return arrayTest && dataTypeTest;
  3216. }
  3217. function isCalendarSpec(input) {
  3218. var objectTest = isObject(input) && !isObjectEmpty(input),
  3219. propertyTest = false,
  3220. properties = [
  3221. 'sameDay',
  3222. 'nextDay',
  3223. 'lastDay',
  3224. 'nextWeek',
  3225. 'lastWeek',
  3226. 'sameElse',
  3227. ],
  3228. i,
  3229. property;
  3230. for (i = 0; i < properties.length; i += 1) {
  3231. property = properties[i];
  3232. propertyTest = propertyTest || hasOwnProp(input, property);
  3233. }
  3234. return objectTest && propertyTest;
  3235. }
  3236. function getCalendarFormat(myMoment, now) {
  3237. var diff = myMoment.diff(now, 'days', true);
  3238. return diff < -6
  3239. ? 'sameElse'
  3240. : diff < -1
  3241. ? 'lastWeek'
  3242. : diff < 0
  3243. ? 'lastDay'
  3244. : diff < 1
  3245. ? 'sameDay'
  3246. : diff < 2
  3247. ? 'nextDay'
  3248. : diff < 7
  3249. ? 'nextWeek'
  3250. : 'sameElse';
  3251. }
  3252. function calendar$1(time, formats) {
  3253. // Support for single parameter, formats only overload to the calendar function
  3254. if (arguments.length === 1) {
  3255. if (!arguments[0]) {
  3256. time = undefined;
  3257. formats = undefined;
  3258. } else if (isMomentInput(arguments[0])) {
  3259. time = arguments[0];
  3260. formats = undefined;
  3261. } else if (isCalendarSpec(arguments[0])) {
  3262. formats = arguments[0];
  3263. time = undefined;
  3264. }
  3265. }
  3266. // We want to compare the start of today, vs this.
  3267. // Getting start-of-today depends on whether we're local/utc/offset or not.
  3268. var now = time || createLocal(),
  3269. sod = cloneWithOffset(now, this).startOf('day'),
  3270. format = hooks.calendarFormat(this, sod) || 'sameElse',
  3271. output =
  3272. formats &&
  3273. (isFunction(formats[format])
  3274. ? formats[format].call(this, now)
  3275. : formats[format]);
  3276. return this.format(
  3277. output || this.localeData().calendar(format, this, createLocal(now))
  3278. );
  3279. }
  3280. function clone() {
  3281. return new Moment(this);
  3282. }
  3283. function isAfter(input, units) {
  3284. var localInput = isMoment(input) ? input : createLocal(input);
  3285. if (!(this.isValid() && localInput.isValid())) {
  3286. return false;
  3287. }
  3288. units = normalizeUnits(units) || 'millisecond';
  3289. if (units === 'millisecond') {
  3290. return this.valueOf() > localInput.valueOf();
  3291. } else {
  3292. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  3293. }
  3294. }
  3295. function isBefore(input, units) {
  3296. var localInput = isMoment(input) ? input : createLocal(input);
  3297. if (!(this.isValid() && localInput.isValid())) {
  3298. return false;
  3299. }
  3300. units = normalizeUnits(units) || 'millisecond';
  3301. if (units === 'millisecond') {
  3302. return this.valueOf() < localInput.valueOf();
  3303. } else {
  3304. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  3305. }
  3306. }
  3307. function isBetween(from, to, units, inclusivity) {
  3308. var localFrom = isMoment(from) ? from : createLocal(from),
  3309. localTo = isMoment(to) ? to : createLocal(to);
  3310. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  3311. return false;
  3312. }
  3313. inclusivity = inclusivity || '()';
  3314. return (
  3315. (inclusivity[0] === '('
  3316. ? this.isAfter(localFrom, units)
  3317. : !this.isBefore(localFrom, units)) &&
  3318. (inclusivity[1] === ')'
  3319. ? this.isBefore(localTo, units)
  3320. : !this.isAfter(localTo, units))
  3321. );
  3322. }
  3323. function isSame(input, units) {
  3324. var localInput = isMoment(input) ? input : createLocal(input),
  3325. inputMs;
  3326. if (!(this.isValid() && localInput.isValid())) {
  3327. return false;
  3328. }
  3329. units = normalizeUnits(units) || 'millisecond';
  3330. if (units === 'millisecond') {
  3331. return this.valueOf() === localInput.valueOf();
  3332. } else {
  3333. inputMs = localInput.valueOf();
  3334. return (
  3335. this.clone().startOf(units).valueOf() <= inputMs &&
  3336. inputMs <= this.clone().endOf(units).valueOf()
  3337. );
  3338. }
  3339. }
  3340. function isSameOrAfter(input, units) {
  3341. return this.isSame(input, units) || this.isAfter(input, units);
  3342. }
  3343. function isSameOrBefore(input, units) {
  3344. return this.isSame(input, units) || this.isBefore(input, units);
  3345. }
  3346. function diff(input, units, asFloat) {
  3347. var that, zoneDelta, output;
  3348. if (!this.isValid()) {
  3349. return NaN;
  3350. }
  3351. that = cloneWithOffset(input, this);
  3352. if (!that.isValid()) {
  3353. return NaN;
  3354. }
  3355. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  3356. units = normalizeUnits(units);
  3357. switch (units) {
  3358. case 'year':
  3359. output = monthDiff(this, that) / 12;
  3360. break;
  3361. case 'month':
  3362. output = monthDiff(this, that);
  3363. break;
  3364. case 'quarter':
  3365. output = monthDiff(this, that) / 3;
  3366. break;
  3367. case 'second':
  3368. output = (this - that) / 1e3;
  3369. break; // 1000
  3370. case 'minute':
  3371. output = (this - that) / 6e4;
  3372. break; // 1000 * 60
  3373. case 'hour':
  3374. output = (this - that) / 36e5;
  3375. break; // 1000 * 60 * 60
  3376. case 'day':
  3377. output = (this - that - zoneDelta) / 864e5;
  3378. break; // 1000 * 60 * 60 * 24, negate dst
  3379. case 'week':
  3380. output = (this - that - zoneDelta) / 6048e5;
  3381. break; // 1000 * 60 * 60 * 24 * 7, negate dst
  3382. default:
  3383. output = this - that;
  3384. }
  3385. return asFloat ? output : absFloor(output);
  3386. }
  3387. function monthDiff(a, b) {
  3388. if (a.date() < b.date()) {
  3389. // end-of-month calculations work correct when the start month has more
  3390. // days than the end month.
  3391. return -monthDiff(b, a);
  3392. }
  3393. // difference in months
  3394. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  3395. // b is in (anchor - 1 month, anchor + 1 month)
  3396. anchor = a.clone().add(wholeMonthDiff, 'months'),
  3397. anchor2,
  3398. adjust;
  3399. if (b - anchor < 0) {
  3400. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  3401. // linear across the month
  3402. adjust = (b - anchor) / (anchor - anchor2);
  3403. } else {
  3404. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  3405. // linear across the month
  3406. adjust = (b - anchor) / (anchor2 - anchor);
  3407. }
  3408. //check for negative zero, return zero if negative zero
  3409. return -(wholeMonthDiff + adjust) || 0;
  3410. }
  3411. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  3412. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  3413. function toString() {
  3414. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  3415. }
  3416. function toISOString(keepOffset) {
  3417. if (!this.isValid()) {
  3418. return null;
  3419. }
  3420. var utc = keepOffset !== true,
  3421. m = utc ? this.clone().utc() : this;
  3422. if (m.year() < 0 || m.year() > 9999) {
  3423. return formatMoment(
  3424. m,
  3425. utc
  3426. ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
  3427. : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3428. );
  3429. }
  3430. if (isFunction(Date.prototype.toISOString)) {
  3431. // native implementation is ~50x faster, use it when we can
  3432. if (utc) {
  3433. return this.toDate().toISOString();
  3434. } else {
  3435. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
  3436. .toISOString()
  3437. .replace('Z', formatMoment(m, 'Z'));
  3438. }
  3439. }
  3440. return formatMoment(
  3441. m,
  3442. utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3443. );
  3444. }
  3445. /**
  3446. * Return a human readable representation of a moment that can
  3447. * also be evaluated to get a new moment which is the same
  3448. *
  3449. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  3450. */
  3451. function inspect() {
  3452. if (!this.isValid()) {
  3453. return 'moment.invalid(/* ' + this._i + ' */)';
  3454. }
  3455. var func = 'moment',
  3456. zone = '',
  3457. prefix,
  3458. year,
  3459. datetime,
  3460. suffix;
  3461. if (!this.isLocal()) {
  3462. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  3463. zone = 'Z';
  3464. }
  3465. prefix = '[' + func + '("]';
  3466. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  3467. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  3468. suffix = zone + '[")]';
  3469. return this.format(prefix + year + datetime + suffix);
  3470. }
  3471. function format(inputString) {
  3472. if (!inputString) {
  3473. inputString = this.isUtc()
  3474. ? hooks.defaultFormatUtc
  3475. : hooks.defaultFormat;
  3476. }
  3477. var output = formatMoment(this, inputString);
  3478. return this.localeData().postformat(output);
  3479. }
  3480. function from(time, withoutSuffix) {
  3481. if (
  3482. this.isValid() &&
  3483. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3484. ) {
  3485. return createDuration({ to: this, from: time })
  3486. .locale(this.locale())
  3487. .humanize(!withoutSuffix);
  3488. } else {
  3489. return this.localeData().invalidDate();
  3490. }
  3491. }
  3492. function fromNow(withoutSuffix) {
  3493. return this.from(createLocal(), withoutSuffix);
  3494. }
  3495. function to(time, withoutSuffix) {
  3496. if (
  3497. this.isValid() &&
  3498. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3499. ) {
  3500. return createDuration({ from: this, to: time })
  3501. .locale(this.locale())
  3502. .humanize(!withoutSuffix);
  3503. } else {
  3504. return this.localeData().invalidDate();
  3505. }
  3506. }
  3507. function toNow(withoutSuffix) {
  3508. return this.to(createLocal(), withoutSuffix);
  3509. }
  3510. // If passed a locale key, it will set the locale for this
  3511. // instance. Otherwise, it will return the locale configuration
  3512. // variables for this instance.
  3513. function locale(key) {
  3514. var newLocaleData;
  3515. if (key === undefined) {
  3516. return this._locale._abbr;
  3517. } else {
  3518. newLocaleData = getLocale(key);
  3519. if (newLocaleData != null) {
  3520. this._locale = newLocaleData;
  3521. }
  3522. return this;
  3523. }
  3524. }
  3525. var lang = deprecate(
  3526. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  3527. function (key) {
  3528. if (key === undefined) {
  3529. return this.localeData();
  3530. } else {
  3531. return this.locale(key);
  3532. }
  3533. }
  3534. );
  3535. function localeData() {
  3536. return this._locale;
  3537. }
  3538. var MS_PER_SECOND = 1000,
  3539. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  3540. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  3541. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  3542. // actual modulo - handles negative numbers (for dates before 1970):
  3543. function mod$1(dividend, divisor) {
  3544. return ((dividend % divisor) + divisor) % divisor;
  3545. }
  3546. function localStartOfDate(y, m, d) {
  3547. // the date constructor remaps years 0-99 to 1900-1999
  3548. if (y < 100 && y >= 0) {
  3549. // preserve leap years using a full 400 year cycle, then reset
  3550. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  3551. } else {
  3552. return new Date(y, m, d).valueOf();
  3553. }
  3554. }
  3555. function utcStartOfDate(y, m, d) {
  3556. // Date.UTC remaps years 0-99 to 1900-1999
  3557. if (y < 100 && y >= 0) {
  3558. // preserve leap years using a full 400 year cycle, then reset
  3559. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  3560. } else {
  3561. return Date.UTC(y, m, d);
  3562. }
  3563. }
  3564. function startOf(units) {
  3565. var time, startOfDate;
  3566. units = normalizeUnits(units);
  3567. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3568. return this;
  3569. }
  3570. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3571. switch (units) {
  3572. case 'year':
  3573. time = startOfDate(this.year(), 0, 1);
  3574. break;
  3575. case 'quarter':
  3576. time = startOfDate(
  3577. this.year(),
  3578. this.month() - (this.month() % 3),
  3579. 1
  3580. );
  3581. break;
  3582. case 'month':
  3583. time = startOfDate(this.year(), this.month(), 1);
  3584. break;
  3585. case 'week':
  3586. time = startOfDate(
  3587. this.year(),
  3588. this.month(),
  3589. this.date() - this.weekday()
  3590. );
  3591. break;
  3592. case 'isoWeek':
  3593. time = startOfDate(
  3594. this.year(),
  3595. this.month(),
  3596. this.date() - (this.isoWeekday() - 1)
  3597. );
  3598. break;
  3599. case 'day':
  3600. case 'date':
  3601. time = startOfDate(this.year(), this.month(), this.date());
  3602. break;
  3603. case 'hour':
  3604. time = this._d.valueOf();
  3605. time -= mod$1(
  3606. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3607. MS_PER_HOUR
  3608. );
  3609. break;
  3610. case 'minute':
  3611. time = this._d.valueOf();
  3612. time -= mod$1(time, MS_PER_MINUTE);
  3613. break;
  3614. case 'second':
  3615. time = this._d.valueOf();
  3616. time -= mod$1(time, MS_PER_SECOND);
  3617. break;
  3618. }
  3619. this._d.setTime(time);
  3620. hooks.updateOffset(this, true);
  3621. return this;
  3622. }
  3623. function endOf(units) {
  3624. var time, startOfDate;
  3625. units = normalizeUnits(units);
  3626. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3627. return this;
  3628. }
  3629. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3630. switch (units) {
  3631. case 'year':
  3632. time = startOfDate(this.year() + 1, 0, 1) - 1;
  3633. break;
  3634. case 'quarter':
  3635. time =
  3636. startOfDate(
  3637. this.year(),
  3638. this.month() - (this.month() % 3) + 3,
  3639. 1
  3640. ) - 1;
  3641. break;
  3642. case 'month':
  3643. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  3644. break;
  3645. case 'week':
  3646. time =
  3647. startOfDate(
  3648. this.year(),
  3649. this.month(),
  3650. this.date() - this.weekday() + 7
  3651. ) - 1;
  3652. break;
  3653. case 'isoWeek':
  3654. time =
  3655. startOfDate(
  3656. this.year(),
  3657. this.month(),
  3658. this.date() - (this.isoWeekday() - 1) + 7
  3659. ) - 1;
  3660. break;
  3661. case 'day':
  3662. case 'date':
  3663. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  3664. break;
  3665. case 'hour':
  3666. time = this._d.valueOf();
  3667. time +=
  3668. MS_PER_HOUR -
  3669. mod$1(
  3670. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3671. MS_PER_HOUR
  3672. ) -
  3673. 1;
  3674. break;
  3675. case 'minute':
  3676. time = this._d.valueOf();
  3677. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  3678. break;
  3679. case 'second':
  3680. time = this._d.valueOf();
  3681. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  3682. break;
  3683. }
  3684. this._d.setTime(time);
  3685. hooks.updateOffset(this, true);
  3686. return this;
  3687. }
  3688. function valueOf() {
  3689. return this._d.valueOf() - (this._offset || 0) * 60000;
  3690. }
  3691. function unix() {
  3692. return Math.floor(this.valueOf() / 1000);
  3693. }
  3694. function toDate() {
  3695. return new Date(this.valueOf());
  3696. }
  3697. function toArray() {
  3698. var m = this;
  3699. return [
  3700. m.year(),
  3701. m.month(),
  3702. m.date(),
  3703. m.hour(),
  3704. m.minute(),
  3705. m.second(),
  3706. m.millisecond(),
  3707. ];
  3708. }
  3709. function toObject() {
  3710. var m = this;
  3711. return {
  3712. years: m.year(),
  3713. months: m.month(),
  3714. date: m.date(),
  3715. hours: m.hours(),
  3716. minutes: m.minutes(),
  3717. seconds: m.seconds(),
  3718. milliseconds: m.milliseconds(),
  3719. };
  3720. }
  3721. function toJSON() {
  3722. // new Date(NaN).toJSON() === null
  3723. return this.isValid() ? this.toISOString() : null;
  3724. }
  3725. function isValid$2() {
  3726. return isValid(this);
  3727. }
  3728. function parsingFlags() {
  3729. return extend({}, getParsingFlags(this));
  3730. }
  3731. function invalidAt() {
  3732. return getParsingFlags(this).overflow;
  3733. }
  3734. function creationData() {
  3735. return {
  3736. input: this._i,
  3737. format: this._f,
  3738. locale: this._locale,
  3739. isUTC: this._isUTC,
  3740. strict: this._strict,
  3741. };
  3742. }
  3743. addFormatToken('N', 0, 0, 'eraAbbr');
  3744. addFormatToken('NN', 0, 0, 'eraAbbr');
  3745. addFormatToken('NNN', 0, 0, 'eraAbbr');
  3746. addFormatToken('NNNN', 0, 0, 'eraName');
  3747. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  3748. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  3749. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  3750. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  3751. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  3752. addRegexToken('N', matchEraAbbr);
  3753. addRegexToken('NN', matchEraAbbr);
  3754. addRegexToken('NNN', matchEraAbbr);
  3755. addRegexToken('NNNN', matchEraName);
  3756. addRegexToken('NNNNN', matchEraNarrow);
  3757. addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
  3758. input,
  3759. array,
  3760. config,
  3761. token
  3762. ) {
  3763. var era = config._locale.erasParse(input, token, config._strict);
  3764. if (era) {
  3765. getParsingFlags(config).era = era;
  3766. } else {
  3767. getParsingFlags(config).invalidEra = input;
  3768. }
  3769. });
  3770. addRegexToken('y', matchUnsigned);
  3771. addRegexToken('yy', matchUnsigned);
  3772. addRegexToken('yyy', matchUnsigned);
  3773. addRegexToken('yyyy', matchUnsigned);
  3774. addRegexToken('yo', matchEraYearOrdinal);
  3775. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  3776. addParseToken(['yo'], function (input, array, config, token) {
  3777. var match;
  3778. if (config._locale._eraYearOrdinalRegex) {
  3779. match = input.match(config._locale._eraYearOrdinalRegex);
  3780. }
  3781. if (config._locale.eraYearOrdinalParse) {
  3782. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  3783. } else {
  3784. array[YEAR] = parseInt(input, 10);
  3785. }
  3786. });
  3787. function localeEras(m, format) {
  3788. var i,
  3789. l,
  3790. date,
  3791. eras = this._eras || getLocale('en')._eras;
  3792. for (i = 0, l = eras.length; i < l; ++i) {
  3793. switch (typeof eras[i].since) {
  3794. case 'string':
  3795. // truncate time
  3796. date = hooks(eras[i].since).startOf('day');
  3797. eras[i].since = date.valueOf();
  3798. break;
  3799. }
  3800. switch (typeof eras[i].until) {
  3801. case 'undefined':
  3802. eras[i].until = +Infinity;
  3803. break;
  3804. case 'string':
  3805. // truncate time
  3806. date = hooks(eras[i].until).startOf('day').valueOf();
  3807. eras[i].until = date.valueOf();
  3808. break;
  3809. }
  3810. }
  3811. return eras;
  3812. }
  3813. function localeErasParse(eraName, format, strict) {
  3814. var i,
  3815. l,
  3816. eras = this.eras(),
  3817. name,
  3818. abbr,
  3819. narrow;
  3820. eraName = eraName.toUpperCase();
  3821. for (i = 0, l = eras.length; i < l; ++i) {
  3822. name = eras[i].name.toUpperCase();
  3823. abbr = eras[i].abbr.toUpperCase();
  3824. narrow = eras[i].narrow.toUpperCase();
  3825. if (strict) {
  3826. switch (format) {
  3827. case 'N':
  3828. case 'NN':
  3829. case 'NNN':
  3830. if (abbr === eraName) {
  3831. return eras[i];
  3832. }
  3833. break;
  3834. case 'NNNN':
  3835. if (name === eraName) {
  3836. return eras[i];
  3837. }
  3838. break;
  3839. case 'NNNNN':
  3840. if (narrow === eraName) {
  3841. return eras[i];
  3842. }
  3843. break;
  3844. }
  3845. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  3846. return eras[i];
  3847. }
  3848. }
  3849. }
  3850. function localeErasConvertYear(era, year) {
  3851. var dir = era.since <= era.until ? +1 : -1;
  3852. if (year === undefined) {
  3853. return hooks(era.since).year();
  3854. } else {
  3855. return hooks(era.since).year() + (year - era.offset) * dir;
  3856. }
  3857. }
  3858. function getEraName() {
  3859. var i,
  3860. l,
  3861. val,
  3862. eras = this.localeData().eras();
  3863. for (i = 0, l = eras.length; i < l; ++i) {
  3864. // truncate time
  3865. val = this.clone().startOf('day').valueOf();
  3866. if (eras[i].since <= val && val <= eras[i].until) {
  3867. return eras[i].name;
  3868. }
  3869. if (eras[i].until <= val && val <= eras[i].since) {
  3870. return eras[i].name;
  3871. }
  3872. }
  3873. return '';
  3874. }
  3875. function getEraNarrow() {
  3876. var i,
  3877. l,
  3878. val,
  3879. eras = this.localeData().eras();
  3880. for (i = 0, l = eras.length; i < l; ++i) {
  3881. // truncate time
  3882. val = this.clone().startOf('day').valueOf();
  3883. if (eras[i].since <= val && val <= eras[i].until) {
  3884. return eras[i].narrow;
  3885. }
  3886. if (eras[i].until <= val && val <= eras[i].since) {
  3887. return eras[i].narrow;
  3888. }
  3889. }
  3890. return '';
  3891. }
  3892. function getEraAbbr() {
  3893. var i,
  3894. l,
  3895. val,
  3896. eras = this.localeData().eras();
  3897. for (i = 0, l = eras.length; i < l; ++i) {
  3898. // truncate time
  3899. val = this.clone().startOf('day').valueOf();
  3900. if (eras[i].since <= val && val <= eras[i].until) {
  3901. return eras[i].abbr;
  3902. }
  3903. if (eras[i].until <= val && val <= eras[i].since) {
  3904. return eras[i].abbr;
  3905. }
  3906. }
  3907. return '';
  3908. }
  3909. function getEraYear() {
  3910. var i,
  3911. l,
  3912. dir,
  3913. val,
  3914. eras = this.localeData().eras();
  3915. for (i = 0, l = eras.length; i < l; ++i) {
  3916. dir = eras[i].since <= eras[i].until ? +1 : -1;
  3917. // truncate time
  3918. val = this.clone().startOf('day').valueOf();
  3919. if (
  3920. (eras[i].since <= val && val <= eras[i].until) ||
  3921. (eras[i].until <= val && val <= eras[i].since)
  3922. ) {
  3923. return (
  3924. (this.year() - hooks(eras[i].since).year()) * dir +
  3925. eras[i].offset
  3926. );
  3927. }
  3928. }
  3929. return this.year();
  3930. }
  3931. function erasNameRegex(isStrict) {
  3932. if (!hasOwnProp(this, '_erasNameRegex')) {
  3933. computeErasParse.call(this);
  3934. }
  3935. return isStrict ? this._erasNameRegex : this._erasRegex;
  3936. }
  3937. function erasAbbrRegex(isStrict) {
  3938. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  3939. computeErasParse.call(this);
  3940. }
  3941. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  3942. }
  3943. function erasNarrowRegex(isStrict) {
  3944. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  3945. computeErasParse.call(this);
  3946. }
  3947. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  3948. }
  3949. function matchEraAbbr(isStrict, locale) {
  3950. return locale.erasAbbrRegex(isStrict);
  3951. }
  3952. function matchEraName(isStrict, locale) {
  3953. return locale.erasNameRegex(isStrict);
  3954. }
  3955. function matchEraNarrow(isStrict, locale) {
  3956. return locale.erasNarrowRegex(isStrict);
  3957. }
  3958. function matchEraYearOrdinal(isStrict, locale) {
  3959. return locale._eraYearOrdinalRegex || matchUnsigned;
  3960. }
  3961. function computeErasParse() {
  3962. var abbrPieces = [],
  3963. namePieces = [],
  3964. narrowPieces = [],
  3965. mixedPieces = [],
  3966. i,
  3967. l,
  3968. eras = this.eras();
  3969. for (i = 0, l = eras.length; i < l; ++i) {
  3970. namePieces.push(regexEscape(eras[i].name));
  3971. abbrPieces.push(regexEscape(eras[i].abbr));
  3972. narrowPieces.push(regexEscape(eras[i].narrow));
  3973. mixedPieces.push(regexEscape(eras[i].name));
  3974. mixedPieces.push(regexEscape(eras[i].abbr));
  3975. mixedPieces.push(regexEscape(eras[i].narrow));
  3976. }
  3977. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  3978. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  3979. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  3980. this._erasNarrowRegex = new RegExp(
  3981. '^(' + narrowPieces.join('|') + ')',
  3982. 'i'
  3983. );
  3984. }
  3985. // FORMATTING
  3986. addFormatToken(0, ['gg', 2], 0, function () {
  3987. return this.weekYear() % 100;
  3988. });
  3989. addFormatToken(0, ['GG', 2], 0, function () {
  3990. return this.isoWeekYear() % 100;
  3991. });
  3992. function addWeekYearFormatToken(token, getter) {
  3993. addFormatToken(0, [token, token.length], 0, getter);
  3994. }
  3995. addWeekYearFormatToken('gggg', 'weekYear');
  3996. addWeekYearFormatToken('ggggg', 'weekYear');
  3997. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  3998. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  3999. // ALIASES
  4000. addUnitAlias('weekYear', 'gg');
  4001. addUnitAlias('isoWeekYear', 'GG');
  4002. // PRIORITY
  4003. addUnitPriority('weekYear', 1);
  4004. addUnitPriority('isoWeekYear', 1);
  4005. // PARSING
  4006. addRegexToken('G', matchSigned);
  4007. addRegexToken('g', matchSigned);
  4008. addRegexToken('GG', match1to2, match2);
  4009. addRegexToken('gg', match1to2, match2);
  4010. addRegexToken('GGGG', match1to4, match4);
  4011. addRegexToken('gggg', match1to4, match4);
  4012. addRegexToken('GGGGG', match1to6, match6);
  4013. addRegexToken('ggggg', match1to6, match6);
  4014. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
  4015. input,
  4016. week,
  4017. config,
  4018. token
  4019. ) {
  4020. week[token.substr(0, 2)] = toInt(input);
  4021. });
  4022. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  4023. week[token] = hooks.parseTwoDigitYear(input);
  4024. });
  4025. // MOMENTS
  4026. function getSetWeekYear(input) {
  4027. return getSetWeekYearHelper.call(
  4028. this,
  4029. input,
  4030. this.week(),
  4031. this.weekday(),
  4032. this.localeData()._week.dow,
  4033. this.localeData()._week.doy
  4034. );
  4035. }
  4036. function getSetISOWeekYear(input) {
  4037. return getSetWeekYearHelper.call(
  4038. this,
  4039. input,
  4040. this.isoWeek(),
  4041. this.isoWeekday(),
  4042. 1,
  4043. 4
  4044. );
  4045. }
  4046. function getISOWeeksInYear() {
  4047. return weeksInYear(this.year(), 1, 4);
  4048. }
  4049. function getISOWeeksInISOWeekYear() {
  4050. return weeksInYear(this.isoWeekYear(), 1, 4);
  4051. }
  4052. function getWeeksInYear() {
  4053. var weekInfo = this.localeData()._week;
  4054. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  4055. }
  4056. function getWeeksInWeekYear() {
  4057. var weekInfo = this.localeData()._week;
  4058. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  4059. }
  4060. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  4061. var weeksTarget;
  4062. if (input == null) {
  4063. return weekOfYear(this, dow, doy).year;
  4064. } else {
  4065. weeksTarget = weeksInYear(input, dow, doy);
  4066. if (week > weeksTarget) {
  4067. week = weeksTarget;
  4068. }
  4069. return setWeekAll.call(this, input, week, weekday, dow, doy);
  4070. }
  4071. }
  4072. function setWeekAll(weekYear, week, weekday, dow, doy) {
  4073. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  4074. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  4075. this.year(date.getUTCFullYear());
  4076. this.month(date.getUTCMonth());
  4077. this.date(date.getUTCDate());
  4078. return this;
  4079. }
  4080. // FORMATTING
  4081. addFormatToken('Q', 0, 'Qo', 'quarter');
  4082. // ALIASES
  4083. addUnitAlias('quarter', 'Q');
  4084. // PRIORITY
  4085. addUnitPriority('quarter', 7);
  4086. // PARSING
  4087. addRegexToken('Q', match1);
  4088. addParseToken('Q', function (input, array) {
  4089. array[MONTH] = (toInt(input) - 1) * 3;
  4090. });
  4091. // MOMENTS
  4092. function getSetQuarter(input) {
  4093. return input == null
  4094. ? Math.ceil((this.month() + 1) / 3)
  4095. : this.month((input - 1) * 3 + (this.month() % 3));
  4096. }
  4097. // FORMATTING
  4098. addFormatToken('D', ['DD', 2], 'Do', 'date');
  4099. // ALIASES
  4100. addUnitAlias('date', 'D');
  4101. // PRIORITY
  4102. addUnitPriority('date', 9);
  4103. // PARSING
  4104. addRegexToken('D', match1to2);
  4105. addRegexToken('DD', match1to2, match2);
  4106. addRegexToken('Do', function (isStrict, locale) {
  4107. // TODO: Remove "ordinalParse" fallback in next major release.
  4108. return isStrict
  4109. ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
  4110. : locale._dayOfMonthOrdinalParseLenient;
  4111. });
  4112. addParseToken(['D', 'DD'], DATE);
  4113. addParseToken('Do', function (input, array) {
  4114. array[DATE] = toInt(input.match(match1to2)[0]);
  4115. });
  4116. // MOMENTS
  4117. var getSetDayOfMonth = makeGetSet('Date', true);
  4118. // FORMATTING
  4119. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  4120. // ALIASES
  4121. addUnitAlias('dayOfYear', 'DDD');
  4122. // PRIORITY
  4123. addUnitPriority('dayOfYear', 4);
  4124. // PARSING
  4125. addRegexToken('DDD', match1to3);
  4126. addRegexToken('DDDD', match3);
  4127. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  4128. config._dayOfYear = toInt(input);
  4129. });
  4130. // HELPERS
  4131. // MOMENTS
  4132. function getSetDayOfYear(input) {
  4133. var dayOfYear =
  4134. Math.round(
  4135. (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
  4136. ) + 1;
  4137. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  4138. }
  4139. // FORMATTING
  4140. addFormatToken('m', ['mm', 2], 0, 'minute');
  4141. // ALIASES
  4142. addUnitAlias('minute', 'm');
  4143. // PRIORITY
  4144. addUnitPriority('minute', 14);
  4145. // PARSING
  4146. addRegexToken('m', match1to2);
  4147. addRegexToken('mm', match1to2, match2);
  4148. addParseToken(['m', 'mm'], MINUTE);
  4149. // MOMENTS
  4150. var getSetMinute = makeGetSet('Minutes', false);
  4151. // FORMATTING
  4152. addFormatToken('s', ['ss', 2], 0, 'second');
  4153. // ALIASES
  4154. addUnitAlias('second', 's');
  4155. // PRIORITY
  4156. addUnitPriority('second', 15);
  4157. // PARSING
  4158. addRegexToken('s', match1to2);
  4159. addRegexToken('ss', match1to2, match2);
  4160. addParseToken(['s', 'ss'], SECOND);
  4161. // MOMENTS
  4162. var getSetSecond = makeGetSet('Seconds', false);
  4163. // FORMATTING
  4164. addFormatToken('S', 0, 0, function () {
  4165. return ~~(this.millisecond() / 100);
  4166. });
  4167. addFormatToken(0, ['SS', 2], 0, function () {
  4168. return ~~(this.millisecond() / 10);
  4169. });
  4170. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  4171. addFormatToken(0, ['SSSS', 4], 0, function () {
  4172. return this.millisecond() * 10;
  4173. });
  4174. addFormatToken(0, ['SSSSS', 5], 0, function () {
  4175. return this.millisecond() * 100;
  4176. });
  4177. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  4178. return this.millisecond() * 1000;
  4179. });
  4180. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  4181. return this.millisecond() * 10000;
  4182. });
  4183. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  4184. return this.millisecond() * 100000;
  4185. });
  4186. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  4187. return this.millisecond() * 1000000;
  4188. });
  4189. // ALIASES
  4190. addUnitAlias('millisecond', 'ms');
  4191. // PRIORITY
  4192. addUnitPriority('millisecond', 16);
  4193. // PARSING
  4194. addRegexToken('S', match1to3, match1);
  4195. addRegexToken('SS', match1to3, match2);
  4196. addRegexToken('SSS', match1to3, match3);
  4197. var token, getSetMillisecond;
  4198. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  4199. addRegexToken(token, matchUnsigned);
  4200. }
  4201. function parseMs(input, array) {
  4202. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  4203. }
  4204. for (token = 'S'; token.length <= 9; token += 'S') {
  4205. addParseToken(token, parseMs);
  4206. }
  4207. getSetMillisecond = makeGetSet('Milliseconds', false);
  4208. // FORMATTING
  4209. addFormatToken('z', 0, 0, 'zoneAbbr');
  4210. addFormatToken('zz', 0, 0, 'zoneName');
  4211. // MOMENTS
  4212. function getZoneAbbr() {
  4213. return this._isUTC ? 'UTC' : '';
  4214. }
  4215. function getZoneName() {
  4216. return this._isUTC ? 'Coordinated Universal Time' : '';
  4217. }
  4218. var proto = Moment.prototype;
  4219. proto.add = add;
  4220. proto.calendar = calendar$1;
  4221. proto.clone = clone;
  4222. proto.diff = diff;
  4223. proto.endOf = endOf;
  4224. proto.format = format;
  4225. proto.from = from;
  4226. proto.fromNow = fromNow;
  4227. proto.to = to;
  4228. proto.toNow = toNow;
  4229. proto.get = stringGet;
  4230. proto.invalidAt = invalidAt;
  4231. proto.isAfter = isAfter;
  4232. proto.isBefore = isBefore;
  4233. proto.isBetween = isBetween;
  4234. proto.isSame = isSame;
  4235. proto.isSameOrAfter = isSameOrAfter;
  4236. proto.isSameOrBefore = isSameOrBefore;
  4237. proto.isValid = isValid$2;
  4238. proto.lang = lang;
  4239. proto.locale = locale;
  4240. proto.localeData = localeData;
  4241. proto.max = prototypeMax;
  4242. proto.min = prototypeMin;
  4243. proto.parsingFlags = parsingFlags;
  4244. proto.set = stringSet;
  4245. proto.startOf = startOf;
  4246. proto.subtract = subtract;
  4247. proto.toArray = toArray;
  4248. proto.toObject = toObject;
  4249. proto.toDate = toDate;
  4250. proto.toISOString = toISOString;
  4251. proto.inspect = inspect;
  4252. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  4253. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  4254. return 'Moment<' + this.format() + '>';
  4255. };
  4256. }
  4257. proto.toJSON = toJSON;
  4258. proto.toString = toString;
  4259. proto.unix = unix;
  4260. proto.valueOf = valueOf;
  4261. proto.creationData = creationData;
  4262. proto.eraName = getEraName;
  4263. proto.eraNarrow = getEraNarrow;
  4264. proto.eraAbbr = getEraAbbr;
  4265. proto.eraYear = getEraYear;
  4266. proto.year = getSetYear;
  4267. proto.isLeapYear = getIsLeapYear;
  4268. proto.weekYear = getSetWeekYear;
  4269. proto.isoWeekYear = getSetISOWeekYear;
  4270. proto.quarter = proto.quarters = getSetQuarter;
  4271. proto.month = getSetMonth;
  4272. proto.daysInMonth = getDaysInMonth;
  4273. proto.week = proto.weeks = getSetWeek;
  4274. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  4275. proto.weeksInYear = getWeeksInYear;
  4276. proto.weeksInWeekYear = getWeeksInWeekYear;
  4277. proto.isoWeeksInYear = getISOWeeksInYear;
  4278. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  4279. proto.date = getSetDayOfMonth;
  4280. proto.day = proto.days = getSetDayOfWeek;
  4281. proto.weekday = getSetLocaleDayOfWeek;
  4282. proto.isoWeekday = getSetISODayOfWeek;
  4283. proto.dayOfYear = getSetDayOfYear;
  4284. proto.hour = proto.hours = getSetHour;
  4285. proto.minute = proto.minutes = getSetMinute;
  4286. proto.second = proto.seconds = getSetSecond;
  4287. proto.millisecond = proto.milliseconds = getSetMillisecond;
  4288. proto.utcOffset = getSetOffset;
  4289. proto.utc = setOffsetToUTC;
  4290. proto.local = setOffsetToLocal;
  4291. proto.parseZone = setOffsetToParsedOffset;
  4292. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  4293. proto.isDST = isDaylightSavingTime;
  4294. proto.isLocal = isLocal;
  4295. proto.isUtcOffset = isUtcOffset;
  4296. proto.isUtc = isUtc;
  4297. proto.isUTC = isUtc;
  4298. proto.zoneAbbr = getZoneAbbr;
  4299. proto.zoneName = getZoneName;
  4300. proto.dates = deprecate(
  4301. 'dates accessor is deprecated. Use date instead.',
  4302. getSetDayOfMonth
  4303. );
  4304. proto.months = deprecate(
  4305. 'months accessor is deprecated. Use month instead',
  4306. getSetMonth
  4307. );
  4308. proto.years = deprecate(
  4309. 'years accessor is deprecated. Use year instead',
  4310. getSetYear
  4311. );
  4312. proto.zone = deprecate(
  4313. 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
  4314. getSetZone
  4315. );
  4316. proto.isDSTShifted = deprecate(
  4317. 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
  4318. isDaylightSavingTimeShifted
  4319. );
  4320. function createUnix(input) {
  4321. return createLocal(input * 1000);
  4322. }
  4323. function createInZone() {
  4324. return createLocal.apply(null, arguments).parseZone();
  4325. }
  4326. function preParsePostFormat(string) {
  4327. return string;
  4328. }
  4329. var proto$1 = Locale.prototype;
  4330. proto$1.calendar = calendar;
  4331. proto$1.longDateFormat = longDateFormat;
  4332. proto$1.invalidDate = invalidDate;
  4333. proto$1.ordinal = ordinal;
  4334. proto$1.preparse = preParsePostFormat;
  4335. proto$1.postformat = preParsePostFormat;
  4336. proto$1.relativeTime = relativeTime;
  4337. proto$1.pastFuture = pastFuture;
  4338. proto$1.set = set;
  4339. proto$1.eras = localeEras;
  4340. proto$1.erasParse = localeErasParse;
  4341. proto$1.erasConvertYear = localeErasConvertYear;
  4342. proto$1.erasAbbrRegex = erasAbbrRegex;
  4343. proto$1.erasNameRegex = erasNameRegex;
  4344. proto$1.erasNarrowRegex = erasNarrowRegex;
  4345. proto$1.months = localeMonths;
  4346. proto$1.monthsShort = localeMonthsShort;
  4347. proto$1.monthsParse = localeMonthsParse;
  4348. proto$1.monthsRegex = monthsRegex;
  4349. proto$1.monthsShortRegex = monthsShortRegex;
  4350. proto$1.week = localeWeek;
  4351. proto$1.firstDayOfYear = localeFirstDayOfYear;
  4352. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  4353. proto$1.weekdays = localeWeekdays;
  4354. proto$1.weekdaysMin = localeWeekdaysMin;
  4355. proto$1.weekdaysShort = localeWeekdaysShort;
  4356. proto$1.weekdaysParse = localeWeekdaysParse;
  4357. proto$1.weekdaysRegex = weekdaysRegex;
  4358. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  4359. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  4360. proto$1.isPM = localeIsPM;
  4361. proto$1.meridiem = localeMeridiem;
  4362. function get$1(format, index, field, setter) {
  4363. var locale = getLocale(),
  4364. utc = createUTC().set(setter, index);
  4365. return locale[field](utc, format);
  4366. }
  4367. function listMonthsImpl(format, index, field) {
  4368. if (isNumber(format)) {
  4369. index = format;
  4370. format = undefined;
  4371. }
  4372. format = format || '';
  4373. if (index != null) {
  4374. return get$1(format, index, field, 'month');
  4375. }
  4376. var i,
  4377. out = [];
  4378. for (i = 0; i < 12; i++) {
  4379. out[i] = get$1(format, i, field, 'month');
  4380. }
  4381. return out;
  4382. }
  4383. // ()
  4384. // (5)
  4385. // (fmt, 5)
  4386. // (fmt)
  4387. // (true)
  4388. // (true, 5)
  4389. // (true, fmt, 5)
  4390. // (true, fmt)
  4391. function listWeekdaysImpl(localeSorted, format, index, field) {
  4392. if (typeof localeSorted === 'boolean') {
  4393. if (isNumber(format)) {
  4394. index = format;
  4395. format = undefined;
  4396. }
  4397. format = format || '';
  4398. } else {
  4399. format = localeSorted;
  4400. index = format;
  4401. localeSorted = false;
  4402. if (isNumber(format)) {
  4403. index = format;
  4404. format = undefined;
  4405. }
  4406. format = format || '';
  4407. }
  4408. var locale = getLocale(),
  4409. shift = localeSorted ? locale._week.dow : 0,
  4410. i,
  4411. out = [];
  4412. if (index != null) {
  4413. return get$1(format, (index + shift) % 7, field, 'day');
  4414. }
  4415. for (i = 0; i < 7; i++) {
  4416. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  4417. }
  4418. return out;
  4419. }
  4420. function listMonths(format, index) {
  4421. return listMonthsImpl(format, index, 'months');
  4422. }
  4423. function listMonthsShort(format, index) {
  4424. return listMonthsImpl(format, index, 'monthsShort');
  4425. }
  4426. function listWeekdays(localeSorted, format, index) {
  4427. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  4428. }
  4429. function listWeekdaysShort(localeSorted, format, index) {
  4430. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  4431. }
  4432. function listWeekdaysMin(localeSorted, format, index) {
  4433. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  4434. }
  4435. getSetGlobalLocale('en', {
  4436. eras: [
  4437. {
  4438. since: '0001-01-01',
  4439. until: +Infinity,
  4440. offset: 1,
  4441. name: 'Anno Domini',
  4442. narrow: 'AD',
  4443. abbr: 'AD',
  4444. },
  4445. {
  4446. since: '0000-12-31',
  4447. until: -Infinity,
  4448. offset: 1,
  4449. name: 'Before Christ',
  4450. narrow: 'BC',
  4451. abbr: 'BC',
  4452. },
  4453. ],
  4454. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  4455. ordinal: function (number) {
  4456. var b = number % 10,
  4457. output =
  4458. toInt((number % 100) / 10) === 1
  4459. ? 'th'
  4460. : b === 1
  4461. ? 'st'
  4462. : b === 2
  4463. ? 'nd'
  4464. : b === 3
  4465. ? 'rd'
  4466. : 'th';
  4467. return number + output;
  4468. },
  4469. });
  4470. // Side effect imports
  4471. hooks.lang = deprecate(
  4472. 'moment.lang is deprecated. Use moment.locale instead.',
  4473. getSetGlobalLocale
  4474. );
  4475. hooks.langData = deprecate(
  4476. 'moment.langData is deprecated. Use moment.localeData instead.',
  4477. getLocale
  4478. );
  4479. var mathAbs = Math.abs;
  4480. function abs() {
  4481. var data = this._data;
  4482. this._milliseconds = mathAbs(this._milliseconds);
  4483. this._days = mathAbs(this._days);
  4484. this._months = mathAbs(this._months);
  4485. data.milliseconds = mathAbs(data.milliseconds);
  4486. data.seconds = mathAbs(data.seconds);
  4487. data.minutes = mathAbs(data.minutes);
  4488. data.hours = mathAbs(data.hours);
  4489. data.months = mathAbs(data.months);
  4490. data.years = mathAbs(data.years);
  4491. return this;
  4492. }
  4493. function addSubtract$1(duration, input, value, direction) {
  4494. var other = createDuration(input, value);
  4495. duration._milliseconds += direction * other._milliseconds;
  4496. duration._days += direction * other._days;
  4497. duration._months += direction * other._months;
  4498. return duration._bubble();
  4499. }
  4500. // supports only 2.0-style add(1, 's') or add(duration)
  4501. function add$1(input, value) {
  4502. return addSubtract$1(this, input, value, 1);
  4503. }
  4504. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  4505. function subtract$1(input, value) {
  4506. return addSubtract$1(this, input, value, -1);
  4507. }
  4508. function absCeil(number) {
  4509. if (number < 0) {
  4510. return Math.floor(number);
  4511. } else {
  4512. return Math.ceil(number);
  4513. }
  4514. }
  4515. function bubble() {
  4516. var milliseconds = this._milliseconds,
  4517. days = this._days,
  4518. months = this._months,
  4519. data = this._data,
  4520. seconds,
  4521. minutes,
  4522. hours,
  4523. years,
  4524. monthsFromDays;
  4525. // if we have a mix of positive and negative values, bubble down first
  4526. // check: https://github.com/moment/moment/issues/2166
  4527. if (
  4528. !(
  4529. (milliseconds >= 0 && days >= 0 && months >= 0) ||
  4530. (milliseconds <= 0 && days <= 0 && months <= 0)
  4531. )
  4532. ) {
  4533. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  4534. days = 0;
  4535. months = 0;
  4536. }
  4537. // The following code bubbles up values, see the tests for
  4538. // examples of what that means.
  4539. data.milliseconds = milliseconds % 1000;
  4540. seconds = absFloor(milliseconds / 1000);
  4541. data.seconds = seconds % 60;
  4542. minutes = absFloor(seconds / 60);
  4543. data.minutes = minutes % 60;
  4544. hours = absFloor(minutes / 60);
  4545. data.hours = hours % 24;
  4546. days += absFloor(hours / 24);
  4547. // convert days to months
  4548. monthsFromDays = absFloor(daysToMonths(days));
  4549. months += monthsFromDays;
  4550. days -= absCeil(monthsToDays(monthsFromDays));
  4551. // 12 months -> 1 year
  4552. years = absFloor(months / 12);
  4553. months %= 12;
  4554. data.days = days;
  4555. data.months = months;
  4556. data.years = years;
  4557. return this;
  4558. }
  4559. function daysToMonths(days) {
  4560. // 400 years have 146097 days (taking into account leap year rules)
  4561. // 400 years have 12 months === 4800
  4562. return (days * 4800) / 146097;
  4563. }
  4564. function monthsToDays(months) {
  4565. // the reverse of daysToMonths
  4566. return (months * 146097) / 4800;
  4567. }
  4568. function as(units) {
  4569. if (!this.isValid()) {
  4570. return NaN;
  4571. }
  4572. var days,
  4573. months,
  4574. milliseconds = this._milliseconds;
  4575. units = normalizeUnits(units);
  4576. if (units === 'month' || units === 'quarter' || units === 'year') {
  4577. days = this._days + milliseconds / 864e5;
  4578. months = this._months + daysToMonths(days);
  4579. switch (units) {
  4580. case 'month':
  4581. return months;
  4582. case 'quarter':
  4583. return months / 3;
  4584. case 'year':
  4585. return months / 12;
  4586. }
  4587. } else {
  4588. // handle milliseconds separately because of floating point math errors (issue #1867)
  4589. days = this._days + Math.round(monthsToDays(this._months));
  4590. switch (units) {
  4591. case 'week':
  4592. return days / 7 + milliseconds / 6048e5;
  4593. case 'day':
  4594. return days + milliseconds / 864e5;
  4595. case 'hour':
  4596. return days * 24 + milliseconds / 36e5;
  4597. case 'minute':
  4598. return days * 1440 + milliseconds / 6e4;
  4599. case 'second':
  4600. return days * 86400 + milliseconds / 1000;
  4601. // Math.floor prevents floating point math errors here
  4602. case 'millisecond':
  4603. return Math.floor(days * 864e5) + milliseconds;
  4604. default:
  4605. throw new Error('Unknown unit ' + units);
  4606. }
  4607. }
  4608. }
  4609. // TODO: Use this.as('ms')?
  4610. function valueOf$1() {
  4611. if (!this.isValid()) {
  4612. return NaN;
  4613. }
  4614. return (
  4615. this._milliseconds +
  4616. this._days * 864e5 +
  4617. (this._months % 12) * 2592e6 +
  4618. toInt(this._months / 12) * 31536e6
  4619. );
  4620. }
  4621. function makeAs(alias) {
  4622. return function () {
  4623. return this.as(alias);
  4624. };
  4625. }
  4626. var asMilliseconds = makeAs('ms'),
  4627. asSeconds = makeAs('s'),
  4628. asMinutes = makeAs('m'),
  4629. asHours = makeAs('h'),
  4630. asDays = makeAs('d'),
  4631. asWeeks = makeAs('w'),
  4632. asMonths = makeAs('M'),
  4633. asQuarters = makeAs('Q'),
  4634. asYears = makeAs('y');
  4635. function clone$1() {
  4636. return createDuration(this);
  4637. }
  4638. function get$2(units) {
  4639. units = normalizeUnits(units);
  4640. return this.isValid() ? this[units + 's']() : NaN;
  4641. }
  4642. function makeGetter(name) {
  4643. return function () {
  4644. return this.isValid() ? this._data[name] : NaN;
  4645. };
  4646. }
  4647. var milliseconds = makeGetter('milliseconds'),
  4648. seconds = makeGetter('seconds'),
  4649. minutes = makeGetter('minutes'),
  4650. hours = makeGetter('hours'),
  4651. days = makeGetter('days'),
  4652. months = makeGetter('months'),
  4653. years = makeGetter('years');
  4654. function weeks() {
  4655. return absFloor(this.days() / 7);
  4656. }
  4657. var round = Math.round,
  4658. thresholds = {
  4659. ss: 44, // a few seconds to seconds
  4660. s: 45, // seconds to minute
  4661. m: 45, // minutes to hour
  4662. h: 22, // hours to day
  4663. d: 26, // days to month/week
  4664. w: null, // weeks to month
  4665. M: 11, // months to year
  4666. };
  4667. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  4668. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  4669. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  4670. }
  4671. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  4672. var duration = createDuration(posNegDuration).abs(),
  4673. seconds = round(duration.as('s')),
  4674. minutes = round(duration.as('m')),
  4675. hours = round(duration.as('h')),
  4676. days = round(duration.as('d')),
  4677. months = round(duration.as('M')),
  4678. weeks = round(duration.as('w')),
  4679. years = round(duration.as('y')),
  4680. a =
  4681. (seconds <= thresholds.ss && ['s', seconds]) ||
  4682. (seconds < thresholds.s && ['ss', seconds]) ||
  4683. (minutes <= 1 && ['m']) ||
  4684. (minutes < thresholds.m && ['mm', minutes]) ||
  4685. (hours <= 1 && ['h']) ||
  4686. (hours < thresholds.h && ['hh', hours]) ||
  4687. (days <= 1 && ['d']) ||
  4688. (days < thresholds.d && ['dd', days]);
  4689. if (thresholds.w != null) {
  4690. a =
  4691. a ||
  4692. (weeks <= 1 && ['w']) ||
  4693. (weeks < thresholds.w && ['ww', weeks]);
  4694. }
  4695. a = a ||
  4696. (months <= 1 && ['M']) ||
  4697. (months < thresholds.M && ['MM', months]) ||
  4698. (years <= 1 && ['y']) || ['yy', years];
  4699. a[2] = withoutSuffix;
  4700. a[3] = +posNegDuration > 0;
  4701. a[4] = locale;
  4702. return substituteTimeAgo.apply(null, a);
  4703. }
  4704. // This function allows you to set the rounding function for relative time strings
  4705. function getSetRelativeTimeRounding(roundingFunction) {
  4706. if (roundingFunction === undefined) {
  4707. return round;
  4708. }
  4709. if (typeof roundingFunction === 'function') {
  4710. round = roundingFunction;
  4711. return true;
  4712. }
  4713. return false;
  4714. }
  4715. // This function allows you to set a threshold for relative time strings
  4716. function getSetRelativeTimeThreshold(threshold, limit) {
  4717. if (thresholds[threshold] === undefined) {
  4718. return false;
  4719. }
  4720. if (limit === undefined) {
  4721. return thresholds[threshold];
  4722. }
  4723. thresholds[threshold] = limit;
  4724. if (threshold === 's') {
  4725. thresholds.ss = limit - 1;
  4726. }
  4727. return true;
  4728. }
  4729. function humanize(argWithSuffix, argThresholds) {
  4730. if (!this.isValid()) {
  4731. return this.localeData().invalidDate();
  4732. }
  4733. var withSuffix = false,
  4734. th = thresholds,
  4735. locale,
  4736. output;
  4737. if (typeof argWithSuffix === 'object') {
  4738. argThresholds = argWithSuffix;
  4739. argWithSuffix = false;
  4740. }
  4741. if (typeof argWithSuffix === 'boolean') {
  4742. withSuffix = argWithSuffix;
  4743. }
  4744. if (typeof argThresholds === 'object') {
  4745. th = Object.assign({}, thresholds, argThresholds);
  4746. if (argThresholds.s != null && argThresholds.ss == null) {
  4747. th.ss = argThresholds.s - 1;
  4748. }
  4749. }
  4750. locale = this.localeData();
  4751. output = relativeTime$1(this, !withSuffix, th, locale);
  4752. if (withSuffix) {
  4753. output = locale.pastFuture(+this, output);
  4754. }
  4755. return locale.postformat(output);
  4756. }
  4757. var abs$1 = Math.abs;
  4758. function sign(x) {
  4759. return (x > 0) - (x < 0) || +x;
  4760. }
  4761. function toISOString$1() {
  4762. // for ISO strings we do not use the normal bubbling rules:
  4763. // * milliseconds bubble up until they become hours
  4764. // * days do not bubble at all
  4765. // * months bubble up until they become years
  4766. // This is because there is no context-free conversion between hours and days
  4767. // (think of clock changes)
  4768. // and also not between days and months (28-31 days per month)
  4769. if (!this.isValid()) {
  4770. return this.localeData().invalidDate();
  4771. }
  4772. var seconds = abs$1(this._milliseconds) / 1000,
  4773. days = abs$1(this._days),
  4774. months = abs$1(this._months),
  4775. minutes,
  4776. hours,
  4777. years,
  4778. s,
  4779. total = this.asSeconds(),
  4780. totalSign,
  4781. ymSign,
  4782. daysSign,
  4783. hmsSign;
  4784. if (!total) {
  4785. // this is the same as C#'s (Noda) and python (isodate)...
  4786. // but not other JS (goog.date)
  4787. return 'P0D';
  4788. }
  4789. // 3600 seconds -> 60 minutes -> 1 hour
  4790. minutes = absFloor(seconds / 60);
  4791. hours = absFloor(minutes / 60);
  4792. seconds %= 60;
  4793. minutes %= 60;
  4794. // 12 months -> 1 year
  4795. years = absFloor(months / 12);
  4796. months %= 12;
  4797. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  4798. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  4799. totalSign = total < 0 ? '-' : '';
  4800. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  4801. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  4802. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  4803. return (
  4804. totalSign +
  4805. 'P' +
  4806. (years ? ymSign + years + 'Y' : '') +
  4807. (months ? ymSign + months + 'M' : '') +
  4808. (days ? daysSign + days + 'D' : '') +
  4809. (hours || minutes || seconds ? 'T' : '') +
  4810. (hours ? hmsSign + hours + 'H' : '') +
  4811. (minutes ? hmsSign + minutes + 'M' : '') +
  4812. (seconds ? hmsSign + s + 'S' : '')
  4813. );
  4814. }
  4815. var proto$2 = Duration.prototype;
  4816. proto$2.isValid = isValid$1;
  4817. proto$2.abs = abs;
  4818. proto$2.add = add$1;
  4819. proto$2.subtract = subtract$1;
  4820. proto$2.as = as;
  4821. proto$2.asMilliseconds = asMilliseconds;
  4822. proto$2.asSeconds = asSeconds;
  4823. proto$2.asMinutes = asMinutes;
  4824. proto$2.asHours = asHours;
  4825. proto$2.asDays = asDays;
  4826. proto$2.asWeeks = asWeeks;
  4827. proto$2.asMonths = asMonths;
  4828. proto$2.asQuarters = asQuarters;
  4829. proto$2.asYears = asYears;
  4830. proto$2.valueOf = valueOf$1;
  4831. proto$2._bubble = bubble;
  4832. proto$2.clone = clone$1;
  4833. proto$2.get = get$2;
  4834. proto$2.milliseconds = milliseconds;
  4835. proto$2.seconds = seconds;
  4836. proto$2.minutes = minutes;
  4837. proto$2.hours = hours;
  4838. proto$2.days = days;
  4839. proto$2.weeks = weeks;
  4840. proto$2.months = months;
  4841. proto$2.years = years;
  4842. proto$2.humanize = humanize;
  4843. proto$2.toISOString = toISOString$1;
  4844. proto$2.toString = toISOString$1;
  4845. proto$2.toJSON = toISOString$1;
  4846. proto$2.locale = locale;
  4847. proto$2.localeData = localeData;
  4848. proto$2.toIsoString = deprecate(
  4849. 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
  4850. toISOString$1
  4851. );
  4852. proto$2.lang = lang;
  4853. // FORMATTING
  4854. addFormatToken('X', 0, 0, 'unix');
  4855. addFormatToken('x', 0, 0, 'valueOf');
  4856. // PARSING
  4857. addRegexToken('x', matchSigned);
  4858. addRegexToken('X', matchTimestamp);
  4859. addParseToken('X', function (input, array, config) {
  4860. config._d = new Date(parseFloat(input) * 1000);
  4861. });
  4862. addParseToken('x', function (input, array, config) {
  4863. config._d = new Date(toInt(input));
  4864. });
  4865. //! moment.js
  4866. hooks.version = '2.29.1';
  4867. setHookCallback(createLocal);
  4868. hooks.fn = proto;
  4869. hooks.min = min;
  4870. hooks.max = max;
  4871. hooks.now = now;
  4872. hooks.utc = createUTC;
  4873. hooks.unix = createUnix;
  4874. hooks.months = listMonths;
  4875. hooks.isDate = isDate;
  4876. hooks.locale = getSetGlobalLocale;
  4877. hooks.invalid = createInvalid;
  4878. hooks.duration = createDuration;
  4879. hooks.isMoment = isMoment;
  4880. hooks.weekdays = listWeekdays;
  4881. hooks.parseZone = createInZone;
  4882. hooks.localeData = getLocale;
  4883. hooks.isDuration = isDuration;
  4884. hooks.monthsShort = listMonthsShort;
  4885. hooks.weekdaysMin = listWeekdaysMin;
  4886. hooks.defineLocale = defineLocale;
  4887. hooks.updateLocale = updateLocale;
  4888. hooks.locales = listLocales;
  4889. hooks.weekdaysShort = listWeekdaysShort;
  4890. hooks.normalizeUnits = normalizeUnits;
  4891. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  4892. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  4893. hooks.calendarFormat = getCalendarFormat;
  4894. hooks.prototype = proto;
  4895. // currently HTML5 input type only supports 24-hour formats
  4896. hooks.HTML5_FMT = {
  4897. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  4898. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  4899. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  4900. DATE: 'YYYY-MM-DD', // <input type="date" />
  4901. TIME: 'HH:mm', // <input type="time" />
  4902. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  4903. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  4904. WEEK: 'GGGG-[W]WW', // <input type="week" />
  4905. MONTH: 'YYYY-MM', // <input type="month" />
  4906. };
  4907. //! moment.js locale configuration
  4908. hooks.defineLocale('af', {
  4909. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
  4910. '_'
  4911. ),
  4912. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  4913. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
  4914. '_'
  4915. ),
  4916. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  4917. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  4918. meridiemParse: /vm|nm/i,
  4919. isPM: function (input) {
  4920. return /^nm$/i.test(input);
  4921. },
  4922. meridiem: function (hours, minutes, isLower) {
  4923. if (hours < 12) {
  4924. return isLower ? 'vm' : 'VM';
  4925. } else {
  4926. return isLower ? 'nm' : 'NM';
  4927. }
  4928. },
  4929. longDateFormat: {
  4930. LT: 'HH:mm',
  4931. LTS: 'HH:mm:ss',
  4932. L: 'DD/MM/YYYY',
  4933. LL: 'D MMMM YYYY',
  4934. LLL: 'D MMMM YYYY HH:mm',
  4935. LLLL: 'dddd, D MMMM YYYY HH:mm',
  4936. },
  4937. calendar: {
  4938. sameDay: '[Vandag om] LT',
  4939. nextDay: '[Môre om] LT',
  4940. nextWeek: 'dddd [om] LT',
  4941. lastDay: '[Gister om] LT',
  4942. lastWeek: '[Laas] dddd [om] LT',
  4943. sameElse: 'L',
  4944. },
  4945. relativeTime: {
  4946. future: 'oor %s',
  4947. past: '%s gelede',
  4948. s: "'n paar sekondes",
  4949. ss: '%d sekondes',
  4950. m: "'n minuut",
  4951. mm: '%d minute',
  4952. h: "'n uur",
  4953. hh: '%d ure',
  4954. d: "'n dag",
  4955. dd: '%d dae',
  4956. M: "'n maand",
  4957. MM: '%d maande',
  4958. y: "'n jaar",
  4959. yy: '%d jaar',
  4960. },
  4961. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  4962. ordinal: function (number) {
  4963. return (
  4964. number +
  4965. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  4966. ); // Thanks to Joris Röling : https://github.com/jjupiter
  4967. },
  4968. week: {
  4969. dow: 1, // Maandag is die eerste dag van die week.
  4970. doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  4971. },
  4972. });
  4973. //! moment.js locale configuration
  4974. var pluralForm = function (n) {
  4975. return n === 0
  4976. ? 0
  4977. : n === 1
  4978. ? 1
  4979. : n === 2
  4980. ? 2
  4981. : n % 100 >= 3 && n % 100 <= 10
  4982. ? 3
  4983. : n % 100 >= 11
  4984. ? 4
  4985. : 5;
  4986. },
  4987. plurals = {
  4988. s: [
  4989. 'أقل من ثانية',
  4990. 'ثانية واحدة',
  4991. ['ثانيتان', 'ثانيتين'],
  4992. '%d ثوان',
  4993. '%d ثانية',
  4994. '%d ثانية',
  4995. ],
  4996. m: [
  4997. 'أقل من دقيقة',
  4998. 'دقيقة واحدة',
  4999. ['دقيقتان', 'دقيقتين'],
  5000. '%d دقائق',
  5001. '%d دقيقة',
  5002. '%d دقيقة',
  5003. ],
  5004. h: [
  5005. 'أقل من ساعة',
  5006. 'ساعة واحدة',
  5007. ['ساعتان', 'ساعتين'],
  5008. '%d ساعات',
  5009. '%d ساعة',
  5010. '%d ساعة',
  5011. ],
  5012. d: [
  5013. 'أقل من يوم',
  5014. 'يوم واحد',
  5015. ['يومان', 'يومين'],
  5016. '%d أيام',
  5017. '%d يومًا',
  5018. '%d يوم',
  5019. ],
  5020. M: [
  5021. 'أقل من شهر',
  5022. 'شهر واحد',
  5023. ['شهران', 'شهرين'],
  5024. '%d أشهر',
  5025. '%d شهرا',
  5026. '%d شهر',
  5027. ],
  5028. y: [
  5029. 'أقل من عام',
  5030. 'عام واحد',
  5031. ['عامان', 'عامين'],
  5032. '%d أعوام',
  5033. '%d عامًا',
  5034. '%d عام',
  5035. ],
  5036. },
  5037. pluralize = function (u) {
  5038. return function (number, withoutSuffix, string, isFuture) {
  5039. var f = pluralForm(number),
  5040. str = plurals[u][pluralForm(number)];
  5041. if (f === 2) {
  5042. str = str[withoutSuffix ? 0 : 1];
  5043. }
  5044. return str.replace(/%d/i, number);
  5045. };
  5046. },
  5047. months$1 = [
  5048. 'جانفي',
  5049. 'فيفري',
  5050. 'مارس',
  5051. 'أفريل',
  5052. 'ماي',
  5053. 'جوان',
  5054. 'جويلية',
  5055. 'أوت',
  5056. 'سبتمبر',
  5057. 'أكتوبر',
  5058. 'نوفمبر',
  5059. 'ديسمبر',
  5060. ];
  5061. hooks.defineLocale('ar-dz', {
  5062. months: months$1,
  5063. monthsShort: months$1,
  5064. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5065. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5066. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5067. weekdaysParseExact: true,
  5068. longDateFormat: {
  5069. LT: 'HH:mm',
  5070. LTS: 'HH:mm:ss',
  5071. L: 'D/\u200FM/\u200FYYYY',
  5072. LL: 'D MMMM YYYY',
  5073. LLL: 'D MMMM YYYY HH:mm',
  5074. LLLL: 'dddd D MMMM YYYY HH:mm',
  5075. },
  5076. meridiemParse: /ص|م/,
  5077. isPM: function (input) {
  5078. return 'م' === input;
  5079. },
  5080. meridiem: function (hour, minute, isLower) {
  5081. if (hour < 12) {
  5082. return 'ص';
  5083. } else {
  5084. return 'م';
  5085. }
  5086. },
  5087. calendar: {
  5088. sameDay: '[اليوم عند الساعة] LT',
  5089. nextDay: '[غدًا عند الساعة] LT',
  5090. nextWeek: 'dddd [عند الساعة] LT',
  5091. lastDay: '[أمس عند الساعة] LT',
  5092. lastWeek: 'dddd [عند الساعة] LT',
  5093. sameElse: 'L',
  5094. },
  5095. relativeTime: {
  5096. future: 'بعد %s',
  5097. past: 'منذ %s',
  5098. s: pluralize('s'),
  5099. ss: pluralize('s'),
  5100. m: pluralize('m'),
  5101. mm: pluralize('m'),
  5102. h: pluralize('h'),
  5103. hh: pluralize('h'),
  5104. d: pluralize('d'),
  5105. dd: pluralize('d'),
  5106. M: pluralize('M'),
  5107. MM: pluralize('M'),
  5108. y: pluralize('y'),
  5109. yy: pluralize('y'),
  5110. },
  5111. postformat: function (string) {
  5112. return string.replace(/,/g, '،');
  5113. },
  5114. week: {
  5115. dow: 0, // Sunday is the first day of the week.
  5116. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5117. },
  5118. });
  5119. //! moment.js locale configuration
  5120. hooks.defineLocale('ar-kw', {
  5121. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5122. '_'
  5123. ),
  5124. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5125. '_'
  5126. ),
  5127. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5128. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5129. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5130. weekdaysParseExact: true,
  5131. longDateFormat: {
  5132. LT: 'HH:mm',
  5133. LTS: 'HH:mm:ss',
  5134. L: 'DD/MM/YYYY',
  5135. LL: 'D MMMM YYYY',
  5136. LLL: 'D MMMM YYYY HH:mm',
  5137. LLLL: 'dddd D MMMM YYYY HH:mm',
  5138. },
  5139. calendar: {
  5140. sameDay: '[اليوم على الساعة] LT',
  5141. nextDay: '[غدا على الساعة] LT',
  5142. nextWeek: 'dddd [على الساعة] LT',
  5143. lastDay: '[أمس على الساعة] LT',
  5144. lastWeek: 'dddd [على الساعة] LT',
  5145. sameElse: 'L',
  5146. },
  5147. relativeTime: {
  5148. future: 'في %s',
  5149. past: 'منذ %s',
  5150. s: 'ثوان',
  5151. ss: '%d ثانية',
  5152. m: 'دقيقة',
  5153. mm: '%d دقائق',
  5154. h: 'ساعة',
  5155. hh: '%d ساعات',
  5156. d: 'يوم',
  5157. dd: '%d أيام',
  5158. M: 'شهر',
  5159. MM: '%d أشهر',
  5160. y: 'سنة',
  5161. yy: '%d سنوات',
  5162. },
  5163. week: {
  5164. dow: 0, // Sunday is the first day of the week.
  5165. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5166. },
  5167. });
  5168. //! moment.js locale configuration
  5169. var symbolMap = {
  5170. 1: '1',
  5171. 2: '2',
  5172. 3: '3',
  5173. 4: '4',
  5174. 5: '5',
  5175. 6: '6',
  5176. 7: '7',
  5177. 8: '8',
  5178. 9: '9',
  5179. 0: '0',
  5180. },
  5181. pluralForm$1 = function (n) {
  5182. return n === 0
  5183. ? 0
  5184. : n === 1
  5185. ? 1
  5186. : n === 2
  5187. ? 2
  5188. : n % 100 >= 3 && n % 100 <= 10
  5189. ? 3
  5190. : n % 100 >= 11
  5191. ? 4
  5192. : 5;
  5193. },
  5194. plurals$1 = {
  5195. s: [
  5196. 'أقل من ثانية',
  5197. 'ثانية واحدة',
  5198. ['ثانيتان', 'ثانيتين'],
  5199. '%d ثوان',
  5200. '%d ثانية',
  5201. '%d ثانية',
  5202. ],
  5203. m: [
  5204. 'أقل من دقيقة',
  5205. 'دقيقة واحدة',
  5206. ['دقيقتان', 'دقيقتين'],
  5207. '%d دقائق',
  5208. '%d دقيقة',
  5209. '%d دقيقة',
  5210. ],
  5211. h: [
  5212. 'أقل من ساعة',
  5213. 'ساعة واحدة',
  5214. ['ساعتان', 'ساعتين'],
  5215. '%d ساعات',
  5216. '%d ساعة',
  5217. '%d ساعة',
  5218. ],
  5219. d: [
  5220. 'أقل من يوم',
  5221. 'يوم واحد',
  5222. ['يومان', 'يومين'],
  5223. '%d أيام',
  5224. '%d يومًا',
  5225. '%d يوم',
  5226. ],
  5227. M: [
  5228. 'أقل من شهر',
  5229. 'شهر واحد',
  5230. ['شهران', 'شهرين'],
  5231. '%d أشهر',
  5232. '%d شهرا',
  5233. '%d شهر',
  5234. ],
  5235. y: [
  5236. 'أقل من عام',
  5237. 'عام واحد',
  5238. ['عامان', 'عامين'],
  5239. '%d أعوام',
  5240. '%d عامًا',
  5241. '%d عام',
  5242. ],
  5243. },
  5244. pluralize$1 = function (u) {
  5245. return function (number, withoutSuffix, string, isFuture) {
  5246. var f = pluralForm$1(number),
  5247. str = plurals$1[u][pluralForm$1(number)];
  5248. if (f === 2) {
  5249. str = str[withoutSuffix ? 0 : 1];
  5250. }
  5251. return str.replace(/%d/i, number);
  5252. };
  5253. },
  5254. months$2 = [
  5255. 'يناير',
  5256. 'فبراير',
  5257. 'مارس',
  5258. 'أبريل',
  5259. 'مايو',
  5260. 'يونيو',
  5261. 'يوليو',
  5262. 'أغسطس',
  5263. 'سبتمبر',
  5264. 'أكتوبر',
  5265. 'نوفمبر',
  5266. 'ديسمبر',
  5267. ];
  5268. hooks.defineLocale('ar-ly', {
  5269. months: months$2,
  5270. monthsShort: months$2,
  5271. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5272. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5273. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5274. weekdaysParseExact: true,
  5275. longDateFormat: {
  5276. LT: 'HH:mm',
  5277. LTS: 'HH:mm:ss',
  5278. L: 'D/\u200FM/\u200FYYYY',
  5279. LL: 'D MMMM YYYY',
  5280. LLL: 'D MMMM YYYY HH:mm',
  5281. LLLL: 'dddd D MMMM YYYY HH:mm',
  5282. },
  5283. meridiemParse: /ص|م/,
  5284. isPM: function (input) {
  5285. return 'م' === input;
  5286. },
  5287. meridiem: function (hour, minute, isLower) {
  5288. if (hour < 12) {
  5289. return 'ص';
  5290. } else {
  5291. return 'م';
  5292. }
  5293. },
  5294. calendar: {
  5295. sameDay: '[اليوم عند الساعة] LT',
  5296. nextDay: '[غدًا عند الساعة] LT',
  5297. nextWeek: 'dddd [عند الساعة] LT',
  5298. lastDay: '[أمس عند الساعة] LT',
  5299. lastWeek: 'dddd [عند الساعة] LT',
  5300. sameElse: 'L',
  5301. },
  5302. relativeTime: {
  5303. future: 'بعد %s',
  5304. past: 'منذ %s',
  5305. s: pluralize$1('s'),
  5306. ss: pluralize$1('s'),
  5307. m: pluralize$1('m'),
  5308. mm: pluralize$1('m'),
  5309. h: pluralize$1('h'),
  5310. hh: pluralize$1('h'),
  5311. d: pluralize$1('d'),
  5312. dd: pluralize$1('d'),
  5313. M: pluralize$1('M'),
  5314. MM: pluralize$1('M'),
  5315. y: pluralize$1('y'),
  5316. yy: pluralize$1('y'),
  5317. },
  5318. preparse: function (string) {
  5319. return string.replace(/،/g, ',');
  5320. },
  5321. postformat: function (string) {
  5322. return string
  5323. .replace(/\d/g, function (match) {
  5324. return symbolMap[match];
  5325. })
  5326. .replace(/,/g, '،');
  5327. },
  5328. week: {
  5329. dow: 6, // Saturday is the first day of the week.
  5330. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5331. },
  5332. });
  5333. //! moment.js locale configuration
  5334. hooks.defineLocale('ar-ma', {
  5335. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5336. '_'
  5337. ),
  5338. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5339. '_'
  5340. ),
  5341. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5342. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5343. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5344. weekdaysParseExact: true,
  5345. longDateFormat: {
  5346. LT: 'HH:mm',
  5347. LTS: 'HH:mm:ss',
  5348. L: 'DD/MM/YYYY',
  5349. LL: 'D MMMM YYYY',
  5350. LLL: 'D MMMM YYYY HH:mm',
  5351. LLLL: 'dddd D MMMM YYYY HH:mm',
  5352. },
  5353. calendar: {
  5354. sameDay: '[اليوم على الساعة] LT',
  5355. nextDay: '[غدا على الساعة] LT',
  5356. nextWeek: 'dddd [على الساعة] LT',
  5357. lastDay: '[أمس على الساعة] LT',
  5358. lastWeek: 'dddd [على الساعة] LT',
  5359. sameElse: 'L',
  5360. },
  5361. relativeTime: {
  5362. future: 'في %s',
  5363. past: 'منذ %s',
  5364. s: 'ثوان',
  5365. ss: '%d ثانية',
  5366. m: 'دقيقة',
  5367. mm: '%d دقائق',
  5368. h: 'ساعة',
  5369. hh: '%d ساعات',
  5370. d: 'يوم',
  5371. dd: '%d أيام',
  5372. M: 'شهر',
  5373. MM: '%d أشهر',
  5374. y: 'سنة',
  5375. yy: '%d سنوات',
  5376. },
  5377. week: {
  5378. dow: 1, // Monday is the first day of the week.
  5379. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5380. },
  5381. });
  5382. //! moment.js locale configuration
  5383. var symbolMap$1 = {
  5384. 1: '١',
  5385. 2: '٢',
  5386. 3: '٣',
  5387. 4: '٤',
  5388. 5: '٥',
  5389. 6: '٦',
  5390. 7: '٧',
  5391. 8: '٨',
  5392. 9: '٩',
  5393. 0: '٠',
  5394. },
  5395. numberMap = {
  5396. '١': '1',
  5397. '٢': '2',
  5398. '٣': '3',
  5399. '٤': '4',
  5400. '٥': '5',
  5401. '٦': '6',
  5402. '٧': '7',
  5403. '٨': '8',
  5404. '٩': '9',
  5405. '٠': '0',
  5406. };
  5407. hooks.defineLocale('ar-sa', {
  5408. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5409. '_'
  5410. ),
  5411. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5412. '_'
  5413. ),
  5414. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5415. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5416. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5417. weekdaysParseExact: true,
  5418. longDateFormat: {
  5419. LT: 'HH:mm',
  5420. LTS: 'HH:mm:ss',
  5421. L: 'DD/MM/YYYY',
  5422. LL: 'D MMMM YYYY',
  5423. LLL: 'D MMMM YYYY HH:mm',
  5424. LLLL: 'dddd D MMMM YYYY HH:mm',
  5425. },
  5426. meridiemParse: /ص|م/,
  5427. isPM: function (input) {
  5428. return 'م' === input;
  5429. },
  5430. meridiem: function (hour, minute, isLower) {
  5431. if (hour < 12) {
  5432. return 'ص';
  5433. } else {
  5434. return 'م';
  5435. }
  5436. },
  5437. calendar: {
  5438. sameDay: '[اليوم على الساعة] LT',
  5439. nextDay: '[غدا على الساعة] LT',
  5440. nextWeek: 'dddd [على الساعة] LT',
  5441. lastDay: '[أمس على الساعة] LT',
  5442. lastWeek: 'dddd [على الساعة] LT',
  5443. sameElse: 'L',
  5444. },
  5445. relativeTime: {
  5446. future: 'في %s',
  5447. past: 'منذ %s',
  5448. s: 'ثوان',
  5449. ss: '%d ثانية',
  5450. m: 'دقيقة',
  5451. mm: '%d دقائق',
  5452. h: 'ساعة',
  5453. hh: '%d ساعات',
  5454. d: 'يوم',
  5455. dd: '%d أيام',
  5456. M: 'شهر',
  5457. MM: '%d أشهر',
  5458. y: 'سنة',
  5459. yy: '%d سنوات',
  5460. },
  5461. preparse: function (string) {
  5462. return string
  5463. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5464. return numberMap[match];
  5465. })
  5466. .replace(/،/g, ',');
  5467. },
  5468. postformat: function (string) {
  5469. return string
  5470. .replace(/\d/g, function (match) {
  5471. return symbolMap$1[match];
  5472. })
  5473. .replace(/,/g, '،');
  5474. },
  5475. week: {
  5476. dow: 0, // Sunday is the first day of the week.
  5477. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5478. },
  5479. });
  5480. //! moment.js locale configuration
  5481. hooks.defineLocale('ar-tn', {
  5482. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5483. '_'
  5484. ),
  5485. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5486. '_'
  5487. ),
  5488. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5489. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5490. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5491. weekdaysParseExact: true,
  5492. longDateFormat: {
  5493. LT: 'HH:mm',
  5494. LTS: 'HH:mm:ss',
  5495. L: 'DD/MM/YYYY',
  5496. LL: 'D MMMM YYYY',
  5497. LLL: 'D MMMM YYYY HH:mm',
  5498. LLLL: 'dddd D MMMM YYYY HH:mm',
  5499. },
  5500. calendar: {
  5501. sameDay: '[اليوم على الساعة] LT',
  5502. nextDay: '[غدا على الساعة] LT',
  5503. nextWeek: 'dddd [على الساعة] LT',
  5504. lastDay: '[أمس على الساعة] LT',
  5505. lastWeek: 'dddd [على الساعة] LT',
  5506. sameElse: 'L',
  5507. },
  5508. relativeTime: {
  5509. future: 'في %s',
  5510. past: 'منذ %s',
  5511. s: 'ثوان',
  5512. ss: '%d ثانية',
  5513. m: 'دقيقة',
  5514. mm: '%d دقائق',
  5515. h: 'ساعة',
  5516. hh: '%d ساعات',
  5517. d: 'يوم',
  5518. dd: '%d أيام',
  5519. M: 'شهر',
  5520. MM: '%d أشهر',
  5521. y: 'سنة',
  5522. yy: '%d سنوات',
  5523. },
  5524. week: {
  5525. dow: 1, // Monday is the first day of the week.
  5526. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5527. },
  5528. });
  5529. //! moment.js locale configuration
  5530. var symbolMap$2 = {
  5531. 1: '١',
  5532. 2: '٢',
  5533. 3: '٣',
  5534. 4: '٤',
  5535. 5: '٥',
  5536. 6: '٦',
  5537. 7: '٧',
  5538. 8: '٨',
  5539. 9: '٩',
  5540. 0: '٠',
  5541. },
  5542. numberMap$1 = {
  5543. '١': '1',
  5544. '٢': '2',
  5545. '٣': '3',
  5546. '٤': '4',
  5547. '٥': '5',
  5548. '٦': '6',
  5549. '٧': '7',
  5550. '٨': '8',
  5551. '٩': '9',
  5552. '٠': '0',
  5553. },
  5554. pluralForm$2 = function (n) {
  5555. return n === 0
  5556. ? 0
  5557. : n === 1
  5558. ? 1
  5559. : n === 2
  5560. ? 2
  5561. : n % 100 >= 3 && n % 100 <= 10
  5562. ? 3
  5563. : n % 100 >= 11
  5564. ? 4
  5565. : 5;
  5566. },
  5567. plurals$2 = {
  5568. s: [
  5569. 'أقل من ثانية',
  5570. 'ثانية واحدة',
  5571. ['ثانيتان', 'ثانيتين'],
  5572. '%d ثوان',
  5573. '%d ثانية',
  5574. '%d ثانية',
  5575. ],
  5576. m: [
  5577. 'أقل من دقيقة',
  5578. 'دقيقة واحدة',
  5579. ['دقيقتان', 'دقيقتين'],
  5580. '%d دقائق',
  5581. '%d دقيقة',
  5582. '%d دقيقة',
  5583. ],
  5584. h: [
  5585. 'أقل من ساعة',
  5586. 'ساعة واحدة',
  5587. ['ساعتان', 'ساعتين'],
  5588. '%d ساعات',
  5589. '%d ساعة',
  5590. '%d ساعة',
  5591. ],
  5592. d: [
  5593. 'أقل من يوم',
  5594. 'يوم واحد',
  5595. ['يومان', 'يومين'],
  5596. '%d أيام',
  5597. '%d يومًا',
  5598. '%d يوم',
  5599. ],
  5600. M: [
  5601. 'أقل من شهر',
  5602. 'شهر واحد',
  5603. ['شهران', 'شهرين'],
  5604. '%d أشهر',
  5605. '%d شهرا',
  5606. '%d شهر',
  5607. ],
  5608. y: [
  5609. 'أقل من عام',
  5610. 'عام واحد',
  5611. ['عامان', 'عامين'],
  5612. '%d أعوام',
  5613. '%d عامًا',
  5614. '%d عام',
  5615. ],
  5616. },
  5617. pluralize$2 = function (u) {
  5618. return function (number, withoutSuffix, string, isFuture) {
  5619. var f = pluralForm$2(number),
  5620. str = plurals$2[u][pluralForm$2(number)];
  5621. if (f === 2) {
  5622. str = str[withoutSuffix ? 0 : 1];
  5623. }
  5624. return str.replace(/%d/i, number);
  5625. };
  5626. },
  5627. months$3 = [
  5628. 'يناير',
  5629. 'فبراير',
  5630. 'مارس',
  5631. 'أبريل',
  5632. 'مايو',
  5633. 'يونيو',
  5634. 'يوليو',
  5635. 'أغسطس',
  5636. 'سبتمبر',
  5637. 'أكتوبر',
  5638. 'نوفمبر',
  5639. 'ديسمبر',
  5640. ];
  5641. hooks.defineLocale('ar', {
  5642. months: months$3,
  5643. monthsShort: months$3,
  5644. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5645. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5646. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5647. weekdaysParseExact: true,
  5648. longDateFormat: {
  5649. LT: 'HH:mm',
  5650. LTS: 'HH:mm:ss',
  5651. L: 'D/\u200FM/\u200FYYYY',
  5652. LL: 'D MMMM YYYY',
  5653. LLL: 'D MMMM YYYY HH:mm',
  5654. LLLL: 'dddd D MMMM YYYY HH:mm',
  5655. },
  5656. meridiemParse: /ص|م/,
  5657. isPM: function (input) {
  5658. return 'م' === input;
  5659. },
  5660. meridiem: function (hour, minute, isLower) {
  5661. if (hour < 12) {
  5662. return 'ص';
  5663. } else {
  5664. return 'م';
  5665. }
  5666. },
  5667. calendar: {
  5668. sameDay: '[اليوم عند الساعة] LT',
  5669. nextDay: '[غدًا عند الساعة] LT',
  5670. nextWeek: 'dddd [عند الساعة] LT',
  5671. lastDay: '[أمس عند الساعة] LT',
  5672. lastWeek: 'dddd [عند الساعة] LT',
  5673. sameElse: 'L',
  5674. },
  5675. relativeTime: {
  5676. future: 'بعد %s',
  5677. past: 'منذ %s',
  5678. s: pluralize$2('s'),
  5679. ss: pluralize$2('s'),
  5680. m: pluralize$2('m'),
  5681. mm: pluralize$2('m'),
  5682. h: pluralize$2('h'),
  5683. hh: pluralize$2('h'),
  5684. d: pluralize$2('d'),
  5685. dd: pluralize$2('d'),
  5686. M: pluralize$2('M'),
  5687. MM: pluralize$2('M'),
  5688. y: pluralize$2('y'),
  5689. yy: pluralize$2('y'),
  5690. },
  5691. preparse: function (string) {
  5692. return string
  5693. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5694. return numberMap$1[match];
  5695. })
  5696. .replace(/،/g, ',');
  5697. },
  5698. postformat: function (string) {
  5699. return string
  5700. .replace(/\d/g, function (match) {
  5701. return symbolMap$2[match];
  5702. })
  5703. .replace(/,/g, '،');
  5704. },
  5705. week: {
  5706. dow: 6, // Saturday is the first day of the week.
  5707. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5708. },
  5709. });
  5710. //! moment.js locale configuration
  5711. var suffixes = {
  5712. 1: '-inci',
  5713. 5: '-inci',
  5714. 8: '-inci',
  5715. 70: '-inci',
  5716. 80: '-inci',
  5717. 2: '-nci',
  5718. 7: '-nci',
  5719. 20: '-nci',
  5720. 50: '-nci',
  5721. 3: '-üncü',
  5722. 4: '-üncü',
  5723. 100: '-üncü',
  5724. 6: '-ncı',
  5725. 9: '-uncu',
  5726. 10: '-uncu',
  5727. 30: '-uncu',
  5728. 60: '-ıncı',
  5729. 90: '-ıncı',
  5730. };
  5731. hooks.defineLocale('az', {
  5732. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  5733. '_'
  5734. ),
  5735. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  5736. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  5737. '_'
  5738. ),
  5739. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  5740. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  5741. weekdaysParseExact: true,
  5742. longDateFormat: {
  5743. LT: 'HH:mm',
  5744. LTS: 'HH:mm:ss',
  5745. L: 'DD.MM.YYYY',
  5746. LL: 'D MMMM YYYY',
  5747. LLL: 'D MMMM YYYY HH:mm',
  5748. LLLL: 'dddd, D MMMM YYYY HH:mm',
  5749. },
  5750. calendar: {
  5751. sameDay: '[bugün saat] LT',
  5752. nextDay: '[sabah saat] LT',
  5753. nextWeek: '[gələn həftə] dddd [saat] LT',
  5754. lastDay: '[dünən] LT',
  5755. lastWeek: '[keçən həftə] dddd [saat] LT',
  5756. sameElse: 'L',
  5757. },
  5758. relativeTime: {
  5759. future: '%s sonra',
  5760. past: '%s əvvəl',
  5761. s: 'bir neçə saniyə',
  5762. ss: '%d saniyə',
  5763. m: 'bir dəqiqə',
  5764. mm: '%d dəqiqə',
  5765. h: 'bir saat',
  5766. hh: '%d saat',
  5767. d: 'bir gün',
  5768. dd: '%d gün',
  5769. M: 'bir ay',
  5770. MM: '%d ay',
  5771. y: 'bir il',
  5772. yy: '%d il',
  5773. },
  5774. meridiemParse: /gecə|səhər|gündüz|axşam/,
  5775. isPM: function (input) {
  5776. return /^(gündüz|axşam)$/.test(input);
  5777. },
  5778. meridiem: function (hour, minute, isLower) {
  5779. if (hour < 4) {
  5780. return 'gecə';
  5781. } else if (hour < 12) {
  5782. return 'səhər';
  5783. } else if (hour < 17) {
  5784. return 'gündüz';
  5785. } else {
  5786. return 'axşam';
  5787. }
  5788. },
  5789. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  5790. ordinal: function (number) {
  5791. if (number === 0) {
  5792. // special case for zero
  5793. return number + '-ıncı';
  5794. }
  5795. var a = number % 10,
  5796. b = (number % 100) - a,
  5797. c = number >= 100 ? 100 : null;
  5798. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  5799. },
  5800. week: {
  5801. dow: 1, // Monday is the first day of the week.
  5802. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5803. },
  5804. });
  5805. //! moment.js locale configuration
  5806. function plural(word, num) {
  5807. var forms = word.split('_');
  5808. return num % 10 === 1 && num % 100 !== 11
  5809. ? forms[0]
  5810. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  5811. ? forms[1]
  5812. : forms[2];
  5813. }
  5814. function relativeTimeWithPlural(number, withoutSuffix, key) {
  5815. var format = {
  5816. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  5817. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  5818. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  5819. dd: 'дзень_дні_дзён',
  5820. MM: 'месяц_месяцы_месяцаў',
  5821. yy: 'год_гады_гадоў',
  5822. };
  5823. if (key === 'm') {
  5824. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  5825. } else if (key === 'h') {
  5826. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  5827. } else {
  5828. return number + ' ' + plural(format[key], +number);
  5829. }
  5830. }
  5831. hooks.defineLocale('be', {
  5832. months: {
  5833. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  5834. '_'
  5835. ),
  5836. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  5837. '_'
  5838. ),
  5839. },
  5840. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
  5841. '_'
  5842. ),
  5843. weekdays: {
  5844. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  5845. '_'
  5846. ),
  5847. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  5848. '_'
  5849. ),
  5850. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
  5851. },
  5852. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5853. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5854. longDateFormat: {
  5855. LT: 'HH:mm',
  5856. LTS: 'HH:mm:ss',
  5857. L: 'DD.MM.YYYY',
  5858. LL: 'D MMMM YYYY г.',
  5859. LLL: 'D MMMM YYYY г., HH:mm',
  5860. LLLL: 'dddd, D MMMM YYYY г., HH:mm',
  5861. },
  5862. calendar: {
  5863. sameDay: '[Сёння ў] LT',
  5864. nextDay: '[Заўтра ў] LT',
  5865. lastDay: '[Учора ў] LT',
  5866. nextWeek: function () {
  5867. return '[У] dddd [ў] LT';
  5868. },
  5869. lastWeek: function () {
  5870. switch (this.day()) {
  5871. case 0:
  5872. case 3:
  5873. case 5:
  5874. case 6:
  5875. return '[У мінулую] dddd [ў] LT';
  5876. case 1:
  5877. case 2:
  5878. case 4:
  5879. return '[У мінулы] dddd [ў] LT';
  5880. }
  5881. },
  5882. sameElse: 'L',
  5883. },
  5884. relativeTime: {
  5885. future: 'праз %s',
  5886. past: '%s таму',
  5887. s: 'некалькі секунд',
  5888. m: relativeTimeWithPlural,
  5889. mm: relativeTimeWithPlural,
  5890. h: relativeTimeWithPlural,
  5891. hh: relativeTimeWithPlural,
  5892. d: 'дзень',
  5893. dd: relativeTimeWithPlural,
  5894. M: 'месяц',
  5895. MM: relativeTimeWithPlural,
  5896. y: 'год',
  5897. yy: relativeTimeWithPlural,
  5898. },
  5899. meridiemParse: /ночы|раніцы|дня|вечара/,
  5900. isPM: function (input) {
  5901. return /^(дня|вечара)$/.test(input);
  5902. },
  5903. meridiem: function (hour, minute, isLower) {
  5904. if (hour < 4) {
  5905. return 'ночы';
  5906. } else if (hour < 12) {
  5907. return 'раніцы';
  5908. } else if (hour < 17) {
  5909. return 'дня';
  5910. } else {
  5911. return 'вечара';
  5912. }
  5913. },
  5914. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  5915. ordinal: function (number, period) {
  5916. switch (period) {
  5917. case 'M':
  5918. case 'd':
  5919. case 'DDD':
  5920. case 'w':
  5921. case 'W':
  5922. return (number % 10 === 2 || number % 10 === 3) &&
  5923. number % 100 !== 12 &&
  5924. number % 100 !== 13
  5925. ? number + '-і'
  5926. : number + '-ы';
  5927. case 'D':
  5928. return number + '-га';
  5929. default:
  5930. return number;
  5931. }
  5932. },
  5933. week: {
  5934. dow: 1, // Monday is the first day of the week.
  5935. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5936. },
  5937. });
  5938. //! moment.js locale configuration
  5939. hooks.defineLocale('bg', {
  5940. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  5941. '_'
  5942. ),
  5943. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  5944. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  5945. '_'
  5946. ),
  5947. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  5948. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5949. longDateFormat: {
  5950. LT: 'H:mm',
  5951. LTS: 'H:mm:ss',
  5952. L: 'D.MM.YYYY',
  5953. LL: 'D MMMM YYYY',
  5954. LLL: 'D MMMM YYYY H:mm',
  5955. LLLL: 'dddd, D MMMM YYYY H:mm',
  5956. },
  5957. calendar: {
  5958. sameDay: '[Днес в] LT',
  5959. nextDay: '[Утре в] LT',
  5960. nextWeek: 'dddd [в] LT',
  5961. lastDay: '[Вчера в] LT',
  5962. lastWeek: function () {
  5963. switch (this.day()) {
  5964. case 0:
  5965. case 3:
  5966. case 6:
  5967. return '[Миналата] dddd [в] LT';
  5968. case 1:
  5969. case 2:
  5970. case 4:
  5971. case 5:
  5972. return '[Миналия] dddd [в] LT';
  5973. }
  5974. },
  5975. sameElse: 'L',
  5976. },
  5977. relativeTime: {
  5978. future: 'след %s',
  5979. past: 'преди %s',
  5980. s: 'няколко секунди',
  5981. ss: '%d секунди',
  5982. m: 'минута',
  5983. mm: '%d минути',
  5984. h: 'час',
  5985. hh: '%d часа',
  5986. d: 'ден',
  5987. dd: '%d дена',
  5988. w: 'седмица',
  5989. ww: '%d седмици',
  5990. M: 'месец',
  5991. MM: '%d месеца',
  5992. y: 'година',
  5993. yy: '%d години',
  5994. },
  5995. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  5996. ordinal: function (number) {
  5997. var lastDigit = number % 10,
  5998. last2Digits = number % 100;
  5999. if (number === 0) {
  6000. return number + '-ев';
  6001. } else if (last2Digits === 0) {
  6002. return number + '-ен';
  6003. } else if (last2Digits > 10 && last2Digits < 20) {
  6004. return number + '-ти';
  6005. } else if (lastDigit === 1) {
  6006. return number + '-ви';
  6007. } else if (lastDigit === 2) {
  6008. return number + '-ри';
  6009. } else if (lastDigit === 7 || lastDigit === 8) {
  6010. return number + '-ми';
  6011. } else {
  6012. return number + '-ти';
  6013. }
  6014. },
  6015. week: {
  6016. dow: 1, // Monday is the first day of the week.
  6017. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6018. },
  6019. });
  6020. //! moment.js locale configuration
  6021. hooks.defineLocale('bm', {
  6022. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  6023. '_'
  6024. ),
  6025. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6026. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6027. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6028. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6029. longDateFormat: {
  6030. LT: 'HH:mm',
  6031. LTS: 'HH:mm:ss',
  6032. L: 'DD/MM/YYYY',
  6033. LL: 'MMMM [tile] D [san] YYYY',
  6034. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6035. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6036. },
  6037. calendar: {
  6038. sameDay: '[Bi lɛrɛ] LT',
  6039. nextDay: '[Sini lɛrɛ] LT',
  6040. nextWeek: 'dddd [don lɛrɛ] LT',
  6041. lastDay: '[Kunu lɛrɛ] LT',
  6042. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  6043. sameElse: 'L',
  6044. },
  6045. relativeTime: {
  6046. future: '%s kɔnɔ',
  6047. past: 'a bɛ %s bɔ',
  6048. s: 'sanga dama dama',
  6049. ss: 'sekondi %d',
  6050. m: 'miniti kelen',
  6051. mm: 'miniti %d',
  6052. h: 'lɛrɛ kelen',
  6053. hh: 'lɛrɛ %d',
  6054. d: 'tile kelen',
  6055. dd: 'tile %d',
  6056. M: 'kalo kelen',
  6057. MM: 'kalo %d',
  6058. y: 'san kelen',
  6059. yy: 'san %d',
  6060. },
  6061. week: {
  6062. dow: 1, // Monday is the first day of the week.
  6063. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6064. },
  6065. });
  6066. //! moment.js locale configuration
  6067. var symbolMap$3 = {
  6068. 1: '১',
  6069. 2: '২',
  6070. 3: '৩',
  6071. 4: '৪',
  6072. 5: '৫',
  6073. 6: '৬',
  6074. 7: '৭',
  6075. 8: '৮',
  6076. 9: '৯',
  6077. 0: '০',
  6078. },
  6079. numberMap$2 = {
  6080. '১': '1',
  6081. '২': '2',
  6082. '৩': '3',
  6083. '৪': '4',
  6084. '৫': '5',
  6085. '৬': '6',
  6086. '৭': '7',
  6087. '৮': '8',
  6088. '৯': '9',
  6089. '০': '0',
  6090. };
  6091. hooks.defineLocale('bn-bd', {
  6092. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6093. '_'
  6094. ),
  6095. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6096. '_'
  6097. ),
  6098. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6099. '_'
  6100. ),
  6101. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6102. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6103. longDateFormat: {
  6104. LT: 'A h:mm সময়',
  6105. LTS: 'A h:mm:ss সময়',
  6106. L: 'DD/MM/YYYY',
  6107. LL: 'D MMMM YYYY',
  6108. LLL: 'D MMMM YYYY, A h:mm সময়',
  6109. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6110. },
  6111. calendar: {
  6112. sameDay: '[আজ] LT',
  6113. nextDay: '[আগামীকাল] LT',
  6114. nextWeek: 'dddd, LT',
  6115. lastDay: '[গতকাল] LT',
  6116. lastWeek: '[গত] dddd, LT',
  6117. sameElse: 'L',
  6118. },
  6119. relativeTime: {
  6120. future: '%s পরে',
  6121. past: '%s আগে',
  6122. s: 'কয়েক সেকেন্ড',
  6123. ss: '%d সেকেন্ড',
  6124. m: 'এক মিনিট',
  6125. mm: '%d মিনিট',
  6126. h: 'এক ঘন্টা',
  6127. hh: '%d ঘন্টা',
  6128. d: 'এক দিন',
  6129. dd: '%d দিন',
  6130. M: 'এক মাস',
  6131. MM: '%d মাস',
  6132. y: 'এক বছর',
  6133. yy: '%d বছর',
  6134. },
  6135. preparse: function (string) {
  6136. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6137. return numberMap$2[match];
  6138. });
  6139. },
  6140. postformat: function (string) {
  6141. return string.replace(/\d/g, function (match) {
  6142. return symbolMap$3[match];
  6143. });
  6144. },
  6145. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  6146. meridiemHour: function (hour, meridiem) {
  6147. if (hour === 12) {
  6148. hour = 0;
  6149. }
  6150. if (meridiem === 'রাত') {
  6151. return hour < 4 ? hour : hour + 12;
  6152. } else if (meridiem === 'ভোর') {
  6153. return hour;
  6154. } else if (meridiem === 'সকাল') {
  6155. return hour;
  6156. } else if (meridiem === 'দুপুর') {
  6157. return hour >= 3 ? hour : hour + 12;
  6158. } else if (meridiem === 'বিকাল') {
  6159. return hour + 12;
  6160. } else if (meridiem === 'সন্ধ্যা') {
  6161. return hour + 12;
  6162. }
  6163. },
  6164. meridiem: function (hour, minute, isLower) {
  6165. if (hour < 4) {
  6166. return 'রাত';
  6167. } else if (hour < 6) {
  6168. return 'ভোর';
  6169. } else if (hour < 12) {
  6170. return 'সকাল';
  6171. } else if (hour < 15) {
  6172. return 'দুপুর';
  6173. } else if (hour < 18) {
  6174. return 'বিকাল';
  6175. } else if (hour < 20) {
  6176. return 'সন্ধ্যা';
  6177. } else {
  6178. return 'রাত';
  6179. }
  6180. },
  6181. week: {
  6182. dow: 0, // Sunday is the first day of the week.
  6183. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6184. },
  6185. });
  6186. //! moment.js locale configuration
  6187. var symbolMap$4 = {
  6188. 1: '১',
  6189. 2: '২',
  6190. 3: '৩',
  6191. 4: '৪',
  6192. 5: '৫',
  6193. 6: '৬',
  6194. 7: '৭',
  6195. 8: '৮',
  6196. 9: '৯',
  6197. 0: '০',
  6198. },
  6199. numberMap$3 = {
  6200. '১': '1',
  6201. '২': '2',
  6202. '৩': '3',
  6203. '৪': '4',
  6204. '৫': '5',
  6205. '৬': '6',
  6206. '৭': '7',
  6207. '৮': '8',
  6208. '৯': '9',
  6209. '০': '0',
  6210. };
  6211. hooks.defineLocale('bn', {
  6212. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6213. '_'
  6214. ),
  6215. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6216. '_'
  6217. ),
  6218. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6219. '_'
  6220. ),
  6221. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6222. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6223. longDateFormat: {
  6224. LT: 'A h:mm সময়',
  6225. LTS: 'A h:mm:ss সময়',
  6226. L: 'DD/MM/YYYY',
  6227. LL: 'D MMMM YYYY',
  6228. LLL: 'D MMMM YYYY, A h:mm সময়',
  6229. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6230. },
  6231. calendar: {
  6232. sameDay: '[আজ] LT',
  6233. nextDay: '[আগামীকাল] LT',
  6234. nextWeek: 'dddd, LT',
  6235. lastDay: '[গতকাল] LT',
  6236. lastWeek: '[গত] dddd, LT',
  6237. sameElse: 'L',
  6238. },
  6239. relativeTime: {
  6240. future: '%s পরে',
  6241. past: '%s আগে',
  6242. s: 'কয়েক সেকেন্ড',
  6243. ss: '%d সেকেন্ড',
  6244. m: 'এক মিনিট',
  6245. mm: '%d মিনিট',
  6246. h: 'এক ঘন্টা',
  6247. hh: '%d ঘন্টা',
  6248. d: 'এক দিন',
  6249. dd: '%d দিন',
  6250. M: 'এক মাস',
  6251. MM: '%d মাস',
  6252. y: 'এক বছর',
  6253. yy: '%d বছর',
  6254. },
  6255. preparse: function (string) {
  6256. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6257. return numberMap$3[match];
  6258. });
  6259. },
  6260. postformat: function (string) {
  6261. return string.replace(/\d/g, function (match) {
  6262. return symbolMap$4[match];
  6263. });
  6264. },
  6265. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6266. meridiemHour: function (hour, meridiem) {
  6267. if (hour === 12) {
  6268. hour = 0;
  6269. }
  6270. if (
  6271. (meridiem === 'রাত' && hour >= 4) ||
  6272. (meridiem === 'দুপুর' && hour < 5) ||
  6273. meridiem === 'বিকাল'
  6274. ) {
  6275. return hour + 12;
  6276. } else {
  6277. return hour;
  6278. }
  6279. },
  6280. meridiem: function (hour, minute, isLower) {
  6281. if (hour < 4) {
  6282. return 'রাত';
  6283. } else if (hour < 10) {
  6284. return 'সকাল';
  6285. } else if (hour < 17) {
  6286. return 'দুপুর';
  6287. } else if (hour < 20) {
  6288. return 'বিকাল';
  6289. } else {
  6290. return 'রাত';
  6291. }
  6292. },
  6293. week: {
  6294. dow: 0, // Sunday is the first day of the week.
  6295. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6296. },
  6297. });
  6298. //! moment.js locale configuration
  6299. var symbolMap$5 = {
  6300. 1: '༡',
  6301. 2: '༢',
  6302. 3: '༣',
  6303. 4: '༤',
  6304. 5: '༥',
  6305. 6: '༦',
  6306. 7: '༧',
  6307. 8: '༨',
  6308. 9: '༩',
  6309. 0: '༠',
  6310. },
  6311. numberMap$4 = {
  6312. '༡': '1',
  6313. '༢': '2',
  6314. '༣': '3',
  6315. '༤': '4',
  6316. '༥': '5',
  6317. '༦': '6',
  6318. '༧': '7',
  6319. '༨': '8',
  6320. '༩': '9',
  6321. '༠': '0',
  6322. };
  6323. hooks.defineLocale('bo', {
  6324. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  6325. '_'
  6326. ),
  6327. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  6328. '_'
  6329. ),
  6330. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  6331. monthsParseExact: true,
  6332. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  6333. '_'
  6334. ),
  6335. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  6336. '_'
  6337. ),
  6338. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  6339. longDateFormat: {
  6340. LT: 'A h:mm',
  6341. LTS: 'A h:mm:ss',
  6342. L: 'DD/MM/YYYY',
  6343. LL: 'D MMMM YYYY',
  6344. LLL: 'D MMMM YYYY, A h:mm',
  6345. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  6346. },
  6347. calendar: {
  6348. sameDay: '[དི་རིང] LT',
  6349. nextDay: '[སང་ཉིན] LT',
  6350. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  6351. lastDay: '[ཁ་སང] LT',
  6352. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6353. sameElse: 'L',
  6354. },
  6355. relativeTime: {
  6356. future: '%s ལ་',
  6357. past: '%s སྔན་ལ',
  6358. s: 'ལམ་སང',
  6359. ss: '%d སྐར་ཆ།',
  6360. m: 'སྐར་མ་གཅིག',
  6361. mm: '%d སྐར་མ',
  6362. h: 'ཆུ་ཚོད་གཅིག',
  6363. hh: '%d ཆུ་ཚོད',
  6364. d: 'ཉིན་གཅིག',
  6365. dd: '%d ཉིན་',
  6366. M: 'ཟླ་བ་གཅིག',
  6367. MM: '%d ཟླ་བ',
  6368. y: 'ལོ་གཅིག',
  6369. yy: '%d ལོ',
  6370. },
  6371. preparse: function (string) {
  6372. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6373. return numberMap$4[match];
  6374. });
  6375. },
  6376. postformat: function (string) {
  6377. return string.replace(/\d/g, function (match) {
  6378. return symbolMap$5[match];
  6379. });
  6380. },
  6381. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6382. meridiemHour: function (hour, meridiem) {
  6383. if (hour === 12) {
  6384. hour = 0;
  6385. }
  6386. if (
  6387. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  6388. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6389. meridiem === 'དགོང་དག'
  6390. ) {
  6391. return hour + 12;
  6392. } else {
  6393. return hour;
  6394. }
  6395. },
  6396. meridiem: function (hour, minute, isLower) {
  6397. if (hour < 4) {
  6398. return 'མཚན་མོ';
  6399. } else if (hour < 10) {
  6400. return 'ཞོགས་ཀས';
  6401. } else if (hour < 17) {
  6402. return 'ཉིན་གུང';
  6403. } else if (hour < 20) {
  6404. return 'དགོང་དག';
  6405. } else {
  6406. return 'མཚན་མོ';
  6407. }
  6408. },
  6409. week: {
  6410. dow: 0, // Sunday is the first day of the week.
  6411. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6412. },
  6413. });
  6414. //! moment.js locale configuration
  6415. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6416. var format = {
  6417. mm: 'munutenn',
  6418. MM: 'miz',
  6419. dd: 'devezh',
  6420. };
  6421. return number + ' ' + mutation(format[key], number);
  6422. }
  6423. function specialMutationForYears(number) {
  6424. switch (lastNumber(number)) {
  6425. case 1:
  6426. case 3:
  6427. case 4:
  6428. case 5:
  6429. case 9:
  6430. return number + ' bloaz';
  6431. default:
  6432. return number + ' vloaz';
  6433. }
  6434. }
  6435. function lastNumber(number) {
  6436. if (number > 9) {
  6437. return lastNumber(number % 10);
  6438. }
  6439. return number;
  6440. }
  6441. function mutation(text, number) {
  6442. if (number === 2) {
  6443. return softMutation(text);
  6444. }
  6445. return text;
  6446. }
  6447. function softMutation(text) {
  6448. var mutationTable = {
  6449. m: 'v',
  6450. b: 'v',
  6451. d: 'z',
  6452. };
  6453. if (mutationTable[text.charAt(0)] === undefined) {
  6454. return text;
  6455. }
  6456. return mutationTable[text.charAt(0)] + text.substring(1);
  6457. }
  6458. var monthsParse = [
  6459. /^gen/i,
  6460. /^c[ʼ\']hwe/i,
  6461. /^meu/i,
  6462. /^ebr/i,
  6463. /^mae/i,
  6464. /^(mez|eve)/i,
  6465. /^gou/i,
  6466. /^eos/i,
  6467. /^gwe/i,
  6468. /^her/i,
  6469. /^du/i,
  6470. /^ker/i,
  6471. ],
  6472. monthsRegex$1 = /^(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,
  6473. monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  6474. monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6475. fullWeekdaysParse = [
  6476. /^sul/i,
  6477. /^lun/i,
  6478. /^meurzh/i,
  6479. /^merc[ʼ\']her/i,
  6480. /^yaou/i,
  6481. /^gwener/i,
  6482. /^sadorn/i,
  6483. ],
  6484. shortWeekdaysParse = [
  6485. /^Sul/i,
  6486. /^Lun/i,
  6487. /^Meu/i,
  6488. /^Mer/i,
  6489. /^Yao/i,
  6490. /^Gwe/i,
  6491. /^Sad/i,
  6492. ],
  6493. minWeekdaysParse = [
  6494. /^Su/i,
  6495. /^Lu/i,
  6496. /^Me([^r]|$)/i,
  6497. /^Mer/i,
  6498. /^Ya/i,
  6499. /^Gw/i,
  6500. /^Sa/i,
  6501. ];
  6502. hooks.defineLocale('br', {
  6503. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
  6504. '_'
  6505. ),
  6506. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  6507. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  6508. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6509. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6510. weekdaysParse: minWeekdaysParse,
  6511. fullWeekdaysParse: fullWeekdaysParse,
  6512. shortWeekdaysParse: shortWeekdaysParse,
  6513. minWeekdaysParse: minWeekdaysParse,
  6514. monthsRegex: monthsRegex$1,
  6515. monthsShortRegex: monthsRegex$1,
  6516. monthsStrictRegex: monthsStrictRegex,
  6517. monthsShortStrictRegex: monthsShortStrictRegex,
  6518. monthsParse: monthsParse,
  6519. longMonthsParse: monthsParse,
  6520. shortMonthsParse: monthsParse,
  6521. longDateFormat: {
  6522. LT: 'HH:mm',
  6523. LTS: 'HH:mm:ss',
  6524. L: 'DD/MM/YYYY',
  6525. LL: 'D [a viz] MMMM YYYY',
  6526. LLL: 'D [a viz] MMMM YYYY HH:mm',
  6527. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
  6528. },
  6529. calendar: {
  6530. sameDay: '[Hiziv da] LT',
  6531. nextDay: '[Warcʼhoazh da] LT',
  6532. nextWeek: 'dddd [da] LT',
  6533. lastDay: '[Decʼh da] LT',
  6534. lastWeek: 'dddd [paset da] LT',
  6535. sameElse: 'L',
  6536. },
  6537. relativeTime: {
  6538. future: 'a-benn %s',
  6539. past: '%s ʼzo',
  6540. s: 'un nebeud segondennoù',
  6541. ss: '%d eilenn',
  6542. m: 'ur vunutenn',
  6543. mm: relativeTimeWithMutation,
  6544. h: 'un eur',
  6545. hh: '%d eur',
  6546. d: 'un devezh',
  6547. dd: relativeTimeWithMutation,
  6548. M: 'ur miz',
  6549. MM: relativeTimeWithMutation,
  6550. y: 'ur bloaz',
  6551. yy: specialMutationForYears,
  6552. },
  6553. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6554. ordinal: function (number) {
  6555. var output = number === 1 ? 'añ' : 'vet';
  6556. return number + output;
  6557. },
  6558. week: {
  6559. dow: 1, // Monday is the first day of the week.
  6560. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6561. },
  6562. meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
  6563. isPM: function (token) {
  6564. return token === 'g.m.';
  6565. },
  6566. meridiem: function (hour, minute, isLower) {
  6567. return hour < 12 ? 'a.m.' : 'g.m.';
  6568. },
  6569. });
  6570. //! moment.js locale configuration
  6571. function translate(number, withoutSuffix, key) {
  6572. var result = number + ' ';
  6573. switch (key) {
  6574. case 'ss':
  6575. if (number === 1) {
  6576. result += 'sekunda';
  6577. } else if (number === 2 || number === 3 || number === 4) {
  6578. result += 'sekunde';
  6579. } else {
  6580. result += 'sekundi';
  6581. }
  6582. return result;
  6583. case 'm':
  6584. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6585. case 'mm':
  6586. if (number === 1) {
  6587. result += 'minuta';
  6588. } else if (number === 2 || number === 3 || number === 4) {
  6589. result += 'minute';
  6590. } else {
  6591. result += 'minuta';
  6592. }
  6593. return result;
  6594. case 'h':
  6595. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6596. case 'hh':
  6597. if (number === 1) {
  6598. result += 'sat';
  6599. } else if (number === 2 || number === 3 || number === 4) {
  6600. result += 'sata';
  6601. } else {
  6602. result += 'sati';
  6603. }
  6604. return result;
  6605. case 'dd':
  6606. if (number === 1) {
  6607. result += 'dan';
  6608. } else {
  6609. result += 'dana';
  6610. }
  6611. return result;
  6612. case 'MM':
  6613. if (number === 1) {
  6614. result += 'mjesec';
  6615. } else if (number === 2 || number === 3 || number === 4) {
  6616. result += 'mjeseca';
  6617. } else {
  6618. result += 'mjeseci';
  6619. }
  6620. return result;
  6621. case 'yy':
  6622. if (number === 1) {
  6623. result += 'godina';
  6624. } else if (number === 2 || number === 3 || number === 4) {
  6625. result += 'godine';
  6626. } else {
  6627. result += 'godina';
  6628. }
  6629. return result;
  6630. }
  6631. }
  6632. hooks.defineLocale('bs', {
  6633. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  6634. '_'
  6635. ),
  6636. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  6637. '_'
  6638. ),
  6639. monthsParseExact: true,
  6640. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  6641. '_'
  6642. ),
  6643. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6644. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  6645. weekdaysParseExact: true,
  6646. longDateFormat: {
  6647. LT: 'H:mm',
  6648. LTS: 'H:mm:ss',
  6649. L: 'DD.MM.YYYY',
  6650. LL: 'D. MMMM YYYY',
  6651. LLL: 'D. MMMM YYYY H:mm',
  6652. LLLL: 'dddd, D. MMMM YYYY H:mm',
  6653. },
  6654. calendar: {
  6655. sameDay: '[danas u] LT',
  6656. nextDay: '[sutra u] LT',
  6657. nextWeek: function () {
  6658. switch (this.day()) {
  6659. case 0:
  6660. return '[u] [nedjelju] [u] LT';
  6661. case 3:
  6662. return '[u] [srijedu] [u] LT';
  6663. case 6:
  6664. return '[u] [subotu] [u] LT';
  6665. case 1:
  6666. case 2:
  6667. case 4:
  6668. case 5:
  6669. return '[u] dddd [u] LT';
  6670. }
  6671. },
  6672. lastDay: '[jučer u] LT',
  6673. lastWeek: function () {
  6674. switch (this.day()) {
  6675. case 0:
  6676. case 3:
  6677. return '[prošlu] dddd [u] LT';
  6678. case 6:
  6679. return '[prošle] [subote] [u] LT';
  6680. case 1:
  6681. case 2:
  6682. case 4:
  6683. case 5:
  6684. return '[prošli] dddd [u] LT';
  6685. }
  6686. },
  6687. sameElse: 'L',
  6688. },
  6689. relativeTime: {
  6690. future: 'za %s',
  6691. past: 'prije %s',
  6692. s: 'par sekundi',
  6693. ss: translate,
  6694. m: translate,
  6695. mm: translate,
  6696. h: translate,
  6697. hh: translate,
  6698. d: 'dan',
  6699. dd: translate,
  6700. M: 'mjesec',
  6701. MM: translate,
  6702. y: 'godinu',
  6703. yy: translate,
  6704. },
  6705. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6706. ordinal: '%d.',
  6707. week: {
  6708. dow: 1, // Monday is the first day of the week.
  6709. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6710. },
  6711. });
  6712. //! moment.js locale configuration
  6713. hooks.defineLocale('ca', {
  6714. months: {
  6715. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  6716. '_'
  6717. ),
  6718. 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(
  6719. '_'
  6720. ),
  6721. isFormat: /D[oD]?(\s)+MMMM/,
  6722. },
  6723. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  6724. '_'
  6725. ),
  6726. monthsParseExact: true,
  6727. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  6728. '_'
  6729. ),
  6730. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6731. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6732. weekdaysParseExact: true,
  6733. longDateFormat: {
  6734. LT: 'H:mm',
  6735. LTS: 'H:mm:ss',
  6736. L: 'DD/MM/YYYY',
  6737. LL: 'D MMMM [de] YYYY',
  6738. ll: 'D MMM YYYY',
  6739. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  6740. lll: 'D MMM YYYY, H:mm',
  6741. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  6742. llll: 'ddd D MMM YYYY, H:mm',
  6743. },
  6744. calendar: {
  6745. sameDay: function () {
  6746. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6747. },
  6748. nextDay: function () {
  6749. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6750. },
  6751. nextWeek: function () {
  6752. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6753. },
  6754. lastDay: function () {
  6755. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6756. },
  6757. lastWeek: function () {
  6758. return (
  6759. '[el] dddd [passat a ' +
  6760. (this.hours() !== 1 ? 'les' : 'la') +
  6761. '] LT'
  6762. );
  6763. },
  6764. sameElse: 'L',
  6765. },
  6766. relativeTime: {
  6767. future: "d'aquí %s",
  6768. past: 'fa %s',
  6769. s: 'uns segons',
  6770. ss: '%d segons',
  6771. m: 'un minut',
  6772. mm: '%d minuts',
  6773. h: 'una hora',
  6774. hh: '%d hores',
  6775. d: 'un dia',
  6776. dd: '%d dies',
  6777. M: 'un mes',
  6778. MM: '%d mesos',
  6779. y: 'un any',
  6780. yy: '%d anys',
  6781. },
  6782. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  6783. ordinal: function (number, period) {
  6784. var output =
  6785. number === 1
  6786. ? 'r'
  6787. : number === 2
  6788. ? 'n'
  6789. : number === 3
  6790. ? 'r'
  6791. : number === 4
  6792. ? 't'
  6793. : 'è';
  6794. if (period === 'w' || period === 'W') {
  6795. output = 'a';
  6796. }
  6797. return number + output;
  6798. },
  6799. week: {
  6800. dow: 1, // Monday is the first day of the week.
  6801. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6802. },
  6803. });
  6804. //! moment.js locale configuration
  6805. var months$4 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  6806. '_'
  6807. ),
  6808. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  6809. monthsParse$1 = [
  6810. /^led/i,
  6811. /^úno/i,
  6812. /^bře/i,
  6813. /^dub/i,
  6814. /^kvě/i,
  6815. /^(čvn|červen$|června)/i,
  6816. /^(čvc|červenec|července)/i,
  6817. /^srp/i,
  6818. /^zář/i,
  6819. /^říj/i,
  6820. /^lis/i,
  6821. /^pro/i,
  6822. ],
  6823. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6824. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6825. monthsRegex$2 = /^(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;
  6826. function plural$1(n) {
  6827. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  6828. }
  6829. function translate$1(number, withoutSuffix, key, isFuture) {
  6830. var result = number + ' ';
  6831. switch (key) {
  6832. case 's': // a few seconds / in a few seconds / a few seconds ago
  6833. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  6834. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  6835. if (withoutSuffix || isFuture) {
  6836. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  6837. } else {
  6838. return result + 'sekundami';
  6839. }
  6840. case 'm': // a minute / in a minute / a minute ago
  6841. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  6842. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  6843. if (withoutSuffix || isFuture) {
  6844. return result + (plural$1(number) ? 'minuty' : 'minut');
  6845. } else {
  6846. return result + 'minutami';
  6847. }
  6848. case 'h': // an hour / in an hour / an hour ago
  6849. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  6850. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  6851. if (withoutSuffix || isFuture) {
  6852. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  6853. } else {
  6854. return result + 'hodinami';
  6855. }
  6856. case 'd': // a day / in a day / a day ago
  6857. return withoutSuffix || isFuture ? 'den' : 'dnem';
  6858. case 'dd': // 9 days / in 9 days / 9 days ago
  6859. if (withoutSuffix || isFuture) {
  6860. return result + (plural$1(number) ? 'dny' : 'dní');
  6861. } else {
  6862. return result + 'dny';
  6863. }
  6864. case 'M': // a month / in a month / a month ago
  6865. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  6866. case 'MM': // 9 months / in 9 months / 9 months ago
  6867. if (withoutSuffix || isFuture) {
  6868. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  6869. } else {
  6870. return result + 'měsíci';
  6871. }
  6872. case 'y': // a year / in a year / a year ago
  6873. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  6874. case 'yy': // 9 years / in 9 years / 9 years ago
  6875. if (withoutSuffix || isFuture) {
  6876. return result + (plural$1(number) ? 'roky' : 'let');
  6877. } else {
  6878. return result + 'lety';
  6879. }
  6880. }
  6881. }
  6882. hooks.defineLocale('cs', {
  6883. months: months$4,
  6884. monthsShort: monthsShort,
  6885. monthsRegex: monthsRegex$2,
  6886. monthsShortRegex: monthsRegex$2,
  6887. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6888. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6889. monthsStrictRegex: /^(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,
  6890. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  6891. monthsParse: monthsParse$1,
  6892. longMonthsParse: monthsParse$1,
  6893. shortMonthsParse: monthsParse$1,
  6894. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  6895. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  6896. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  6897. longDateFormat: {
  6898. LT: 'H:mm',
  6899. LTS: 'H:mm:ss',
  6900. L: 'DD.MM.YYYY',
  6901. LL: 'D. MMMM YYYY',
  6902. LLL: 'D. MMMM YYYY H:mm',
  6903. LLLL: 'dddd D. MMMM YYYY H:mm',
  6904. l: 'D. M. YYYY',
  6905. },
  6906. calendar: {
  6907. sameDay: '[dnes v] LT',
  6908. nextDay: '[zítra v] LT',
  6909. nextWeek: function () {
  6910. switch (this.day()) {
  6911. case 0:
  6912. return '[v neděli v] LT';
  6913. case 1:
  6914. case 2:
  6915. return '[v] dddd [v] LT';
  6916. case 3:
  6917. return '[ve středu v] LT';
  6918. case 4:
  6919. return '[ve čtvrtek v] LT';
  6920. case 5:
  6921. return '[v pátek v] LT';
  6922. case 6:
  6923. return '[v sobotu v] LT';
  6924. }
  6925. },
  6926. lastDay: '[včera v] LT',
  6927. lastWeek: function () {
  6928. switch (this.day()) {
  6929. case 0:
  6930. return '[minulou neděli v] LT';
  6931. case 1:
  6932. case 2:
  6933. return '[minulé] dddd [v] LT';
  6934. case 3:
  6935. return '[minulou středu v] LT';
  6936. case 4:
  6937. case 5:
  6938. return '[minulý] dddd [v] LT';
  6939. case 6:
  6940. return '[minulou sobotu v] LT';
  6941. }
  6942. },
  6943. sameElse: 'L',
  6944. },
  6945. relativeTime: {
  6946. future: 'za %s',
  6947. past: 'před %s',
  6948. s: translate$1,
  6949. ss: translate$1,
  6950. m: translate$1,
  6951. mm: translate$1,
  6952. h: translate$1,
  6953. hh: translate$1,
  6954. d: translate$1,
  6955. dd: translate$1,
  6956. M: translate$1,
  6957. MM: translate$1,
  6958. y: translate$1,
  6959. yy: translate$1,
  6960. },
  6961. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6962. ordinal: '%d.',
  6963. week: {
  6964. dow: 1, // Monday is the first day of the week.
  6965. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6966. },
  6967. });
  6968. //! moment.js locale configuration
  6969. hooks.defineLocale('cv', {
  6970. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  6971. '_'
  6972. ),
  6973. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  6974. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  6975. '_'
  6976. ),
  6977. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  6978. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  6979. longDateFormat: {
  6980. LT: 'HH:mm',
  6981. LTS: 'HH:mm:ss',
  6982. L: 'DD-MM-YYYY',
  6983. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  6984. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6985. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6986. },
  6987. calendar: {
  6988. sameDay: '[Паян] LT [сехетре]',
  6989. nextDay: '[Ыран] LT [сехетре]',
  6990. lastDay: '[Ӗнер] LT [сехетре]',
  6991. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  6992. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  6993. sameElse: 'L',
  6994. },
  6995. relativeTime: {
  6996. future: function (output) {
  6997. var affix = /сехет$/i.exec(output)
  6998. ? 'рен'
  6999. : /ҫул$/i.exec(output)
  7000. ? 'тан'
  7001. : 'ран';
  7002. return output + affix;
  7003. },
  7004. past: '%s каялла',
  7005. s: 'пӗр-ик ҫеккунт',
  7006. ss: '%d ҫеккунт',
  7007. m: 'пӗр минут',
  7008. mm: '%d минут',
  7009. h: 'пӗр сехет',
  7010. hh: '%d сехет',
  7011. d: 'пӗр кун',
  7012. dd: '%d кун',
  7013. M: 'пӗр уйӑх',
  7014. MM: '%d уйӑх',
  7015. y: 'пӗр ҫул',
  7016. yy: '%d ҫул',
  7017. },
  7018. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  7019. ordinal: '%d-мӗш',
  7020. week: {
  7021. dow: 1, // Monday is the first day of the week.
  7022. doy: 7, // The week that contains Jan 7th is the first week of the year.
  7023. },
  7024. });
  7025. //! moment.js locale configuration
  7026. hooks.defineLocale('cy', {
  7027. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  7028. '_'
  7029. ),
  7030. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  7031. '_'
  7032. ),
  7033. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  7034. '_'
  7035. ),
  7036. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  7037. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  7038. weekdaysParseExact: true,
  7039. // time formats are the same as en-gb
  7040. longDateFormat: {
  7041. LT: 'HH:mm',
  7042. LTS: 'HH:mm:ss',
  7043. L: 'DD/MM/YYYY',
  7044. LL: 'D MMMM YYYY',
  7045. LLL: 'D MMMM YYYY HH:mm',
  7046. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7047. },
  7048. calendar: {
  7049. sameDay: '[Heddiw am] LT',
  7050. nextDay: '[Yfory am] LT',
  7051. nextWeek: 'dddd [am] LT',
  7052. lastDay: '[Ddoe am] LT',
  7053. lastWeek: 'dddd [diwethaf am] LT',
  7054. sameElse: 'L',
  7055. },
  7056. relativeTime: {
  7057. future: 'mewn %s',
  7058. past: '%s yn ôl',
  7059. s: 'ychydig eiliadau',
  7060. ss: '%d eiliad',
  7061. m: 'munud',
  7062. mm: '%d munud',
  7063. h: 'awr',
  7064. hh: '%d awr',
  7065. d: 'diwrnod',
  7066. dd: '%d diwrnod',
  7067. M: 'mis',
  7068. MM: '%d mis',
  7069. y: 'blwyddyn',
  7070. yy: '%d flynedd',
  7071. },
  7072. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  7073. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  7074. ordinal: function (number) {
  7075. var b = number,
  7076. output = '',
  7077. lookup = [
  7078. '',
  7079. 'af',
  7080. 'il',
  7081. 'ydd',
  7082. 'ydd',
  7083. 'ed',
  7084. 'ed',
  7085. 'ed',
  7086. 'fed',
  7087. 'fed',
  7088. 'fed', // 1af to 10fed
  7089. 'eg',
  7090. 'fed',
  7091. 'eg',
  7092. 'eg',
  7093. 'fed',
  7094. 'eg',
  7095. 'eg',
  7096. 'fed',
  7097. 'eg',
  7098. 'fed', // 11eg to 20fed
  7099. ];
  7100. if (b > 20) {
  7101. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  7102. output = 'fed'; // not 30ain, 70ain or 90ain
  7103. } else {
  7104. output = 'ain';
  7105. }
  7106. } else if (b > 0) {
  7107. output = lookup[b];
  7108. }
  7109. return number + output;
  7110. },
  7111. week: {
  7112. dow: 1, // Monday is the first day of the week.
  7113. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7114. },
  7115. });
  7116. //! moment.js locale configuration
  7117. hooks.defineLocale('da', {
  7118. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  7119. '_'
  7120. ),
  7121. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  7122. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  7123. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7124. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7125. longDateFormat: {
  7126. LT: 'HH:mm',
  7127. LTS: 'HH:mm:ss',
  7128. L: 'DD.MM.YYYY',
  7129. LL: 'D. MMMM YYYY',
  7130. LLL: 'D. MMMM YYYY HH:mm',
  7131. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
  7132. },
  7133. calendar: {
  7134. sameDay: '[i dag kl.] LT',
  7135. nextDay: '[i morgen kl.] LT',
  7136. nextWeek: 'på dddd [kl.] LT',
  7137. lastDay: '[i går kl.] LT',
  7138. lastWeek: '[i] dddd[s kl.] LT',
  7139. sameElse: 'L',
  7140. },
  7141. relativeTime: {
  7142. future: 'om %s',
  7143. past: '%s siden',
  7144. s: 'få sekunder',
  7145. ss: '%d sekunder',
  7146. m: 'et minut',
  7147. mm: '%d minutter',
  7148. h: 'en time',
  7149. hh: '%d timer',
  7150. d: 'en dag',
  7151. dd: '%d dage',
  7152. M: 'en måned',
  7153. MM: '%d måneder',
  7154. y: 'et år',
  7155. yy: '%d år',
  7156. },
  7157. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7158. ordinal: '%d.',
  7159. week: {
  7160. dow: 1, // Monday is the first day of the week.
  7161. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7162. },
  7163. });
  7164. //! moment.js locale configuration
  7165. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7166. var format = {
  7167. m: ['eine Minute', 'einer Minute'],
  7168. h: ['eine Stunde', 'einer Stunde'],
  7169. d: ['ein Tag', 'einem Tag'],
  7170. dd: [number + ' Tage', number + ' Tagen'],
  7171. w: ['eine Woche', 'einer Woche'],
  7172. M: ['ein Monat', 'einem Monat'],
  7173. MM: [number + ' Monate', number + ' Monaten'],
  7174. y: ['ein Jahr', 'einem Jahr'],
  7175. yy: [number + ' Jahre', number + ' Jahren'],
  7176. };
  7177. return withoutSuffix ? format[key][0] : format[key][1];
  7178. }
  7179. hooks.defineLocale('de-at', {
  7180. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7181. '_'
  7182. ),
  7183. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7184. '_'
  7185. ),
  7186. monthsParseExact: true,
  7187. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7188. '_'
  7189. ),
  7190. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7191. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7192. weekdaysParseExact: true,
  7193. longDateFormat: {
  7194. LT: 'HH:mm',
  7195. LTS: 'HH:mm:ss',
  7196. L: 'DD.MM.YYYY',
  7197. LL: 'D. MMMM YYYY',
  7198. LLL: 'D. MMMM YYYY HH:mm',
  7199. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7200. },
  7201. calendar: {
  7202. sameDay: '[heute um] LT [Uhr]',
  7203. sameElse: 'L',
  7204. nextDay: '[morgen um] LT [Uhr]',
  7205. nextWeek: 'dddd [um] LT [Uhr]',
  7206. lastDay: '[gestern um] LT [Uhr]',
  7207. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7208. },
  7209. relativeTime: {
  7210. future: 'in %s',
  7211. past: 'vor %s',
  7212. s: 'ein paar Sekunden',
  7213. ss: '%d Sekunden',
  7214. m: processRelativeTime,
  7215. mm: '%d Minuten',
  7216. h: processRelativeTime,
  7217. hh: '%d Stunden',
  7218. d: processRelativeTime,
  7219. dd: processRelativeTime,
  7220. w: processRelativeTime,
  7221. ww: '%d Wochen',
  7222. M: processRelativeTime,
  7223. MM: processRelativeTime,
  7224. y: processRelativeTime,
  7225. yy: processRelativeTime,
  7226. },
  7227. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7228. ordinal: '%d.',
  7229. week: {
  7230. dow: 1, // Monday is the first day of the week.
  7231. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7232. },
  7233. });
  7234. //! moment.js locale configuration
  7235. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  7236. var format = {
  7237. m: ['eine Minute', 'einer Minute'],
  7238. h: ['eine Stunde', 'einer Stunde'],
  7239. d: ['ein Tag', 'einem Tag'],
  7240. dd: [number + ' Tage', number + ' Tagen'],
  7241. w: ['eine Woche', 'einer Woche'],
  7242. M: ['ein Monat', 'einem Monat'],
  7243. MM: [number + ' Monate', number + ' Monaten'],
  7244. y: ['ein Jahr', 'einem Jahr'],
  7245. yy: [number + ' Jahre', number + ' Jahren'],
  7246. };
  7247. return withoutSuffix ? format[key][0] : format[key][1];
  7248. }
  7249. hooks.defineLocale('de-ch', {
  7250. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7251. '_'
  7252. ),
  7253. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7254. '_'
  7255. ),
  7256. monthsParseExact: true,
  7257. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7258. '_'
  7259. ),
  7260. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7261. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7262. weekdaysParseExact: true,
  7263. longDateFormat: {
  7264. LT: 'HH:mm',
  7265. LTS: 'HH:mm:ss',
  7266. L: 'DD.MM.YYYY',
  7267. LL: 'D. MMMM YYYY',
  7268. LLL: 'D. MMMM YYYY HH:mm',
  7269. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7270. },
  7271. calendar: {
  7272. sameDay: '[heute um] LT [Uhr]',
  7273. sameElse: 'L',
  7274. nextDay: '[morgen um] LT [Uhr]',
  7275. nextWeek: 'dddd [um] LT [Uhr]',
  7276. lastDay: '[gestern um] LT [Uhr]',
  7277. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7278. },
  7279. relativeTime: {
  7280. future: 'in %s',
  7281. past: 'vor %s',
  7282. s: 'ein paar Sekunden',
  7283. ss: '%d Sekunden',
  7284. m: processRelativeTime$1,
  7285. mm: '%d Minuten',
  7286. h: processRelativeTime$1,
  7287. hh: '%d Stunden',
  7288. d: processRelativeTime$1,
  7289. dd: processRelativeTime$1,
  7290. w: processRelativeTime$1,
  7291. ww: '%d Wochen',
  7292. M: processRelativeTime$1,
  7293. MM: processRelativeTime$1,
  7294. y: processRelativeTime$1,
  7295. yy: processRelativeTime$1,
  7296. },
  7297. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7298. ordinal: '%d.',
  7299. week: {
  7300. dow: 1, // Monday is the first day of the week.
  7301. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7302. },
  7303. });
  7304. //! moment.js locale configuration
  7305. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  7306. var format = {
  7307. m: ['eine Minute', 'einer Minute'],
  7308. h: ['eine Stunde', 'einer Stunde'],
  7309. d: ['ein Tag', 'einem Tag'],
  7310. dd: [number + ' Tage', number + ' Tagen'],
  7311. w: ['eine Woche', 'einer Woche'],
  7312. M: ['ein Monat', 'einem Monat'],
  7313. MM: [number + ' Monate', number + ' Monaten'],
  7314. y: ['ein Jahr', 'einem Jahr'],
  7315. yy: [number + ' Jahre', number + ' Jahren'],
  7316. };
  7317. return withoutSuffix ? format[key][0] : format[key][1];
  7318. }
  7319. hooks.defineLocale('de', {
  7320. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7321. '_'
  7322. ),
  7323. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7324. '_'
  7325. ),
  7326. monthsParseExact: true,
  7327. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7328. '_'
  7329. ),
  7330. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7331. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7332. weekdaysParseExact: true,
  7333. longDateFormat: {
  7334. LT: 'HH:mm',
  7335. LTS: 'HH:mm:ss',
  7336. L: 'DD.MM.YYYY',
  7337. LL: 'D. MMMM YYYY',
  7338. LLL: 'D. MMMM YYYY HH:mm',
  7339. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7340. },
  7341. calendar: {
  7342. sameDay: '[heute um] LT [Uhr]',
  7343. sameElse: 'L',
  7344. nextDay: '[morgen um] LT [Uhr]',
  7345. nextWeek: 'dddd [um] LT [Uhr]',
  7346. lastDay: '[gestern um] LT [Uhr]',
  7347. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7348. },
  7349. relativeTime: {
  7350. future: 'in %s',
  7351. past: 'vor %s',
  7352. s: 'ein paar Sekunden',
  7353. ss: '%d Sekunden',
  7354. m: processRelativeTime$2,
  7355. mm: '%d Minuten',
  7356. h: processRelativeTime$2,
  7357. hh: '%d Stunden',
  7358. d: processRelativeTime$2,
  7359. dd: processRelativeTime$2,
  7360. w: processRelativeTime$2,
  7361. ww: '%d Wochen',
  7362. M: processRelativeTime$2,
  7363. MM: processRelativeTime$2,
  7364. y: processRelativeTime$2,
  7365. yy: processRelativeTime$2,
  7366. },
  7367. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7368. ordinal: '%d.',
  7369. week: {
  7370. dow: 1, // Monday is the first day of the week.
  7371. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7372. },
  7373. });
  7374. //! moment.js locale configuration
  7375. var months$5 = [
  7376. 'ޖެނުއަރީ',
  7377. 'ފެބްރުއަރީ',
  7378. 'މާރިޗު',
  7379. 'އޭޕްރީލު',
  7380. 'މޭ',
  7381. 'ޖޫން',
  7382. 'ޖުލައި',
  7383. 'އޯގަސްޓު',
  7384. 'ސެޕްޓެމްބަރު',
  7385. 'އޮކްޓޯބަރު',
  7386. 'ނޮވެމްބަރު',
  7387. 'ޑިސެމްބަރު',
  7388. ],
  7389. weekdays = [
  7390. 'އާދިއްތަ',
  7391. 'ހޯމަ',
  7392. 'އަންގާރަ',
  7393. 'ބުދަ',
  7394. 'ބުރާސްފަތި',
  7395. 'ހުކުރު',
  7396. 'ހޮނިހިރު',
  7397. ];
  7398. hooks.defineLocale('dv', {
  7399. months: months$5,
  7400. monthsShort: months$5,
  7401. weekdays: weekdays,
  7402. weekdaysShort: weekdays,
  7403. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7404. longDateFormat: {
  7405. LT: 'HH:mm',
  7406. LTS: 'HH:mm:ss',
  7407. L: 'D/M/YYYY',
  7408. LL: 'D MMMM YYYY',
  7409. LLL: 'D MMMM YYYY HH:mm',
  7410. LLLL: 'dddd D MMMM YYYY HH:mm',
  7411. },
  7412. meridiemParse: /މކ|މފ/,
  7413. isPM: function (input) {
  7414. return 'މފ' === input;
  7415. },
  7416. meridiem: function (hour, minute, isLower) {
  7417. if (hour < 12) {
  7418. return 'މކ';
  7419. } else {
  7420. return 'މފ';
  7421. }
  7422. },
  7423. calendar: {
  7424. sameDay: '[މިއަދު] LT',
  7425. nextDay: '[މާދަމާ] LT',
  7426. nextWeek: 'dddd LT',
  7427. lastDay: '[އިއްޔެ] LT',
  7428. lastWeek: '[ފާއިތުވި] dddd LT',
  7429. sameElse: 'L',
  7430. },
  7431. relativeTime: {
  7432. future: 'ތެރޭގައި %s',
  7433. past: 'ކުރިން %s',
  7434. s: 'ސިކުންތުކޮޅެއް',
  7435. ss: 'd% ސިކުންތު',
  7436. m: 'މިނިޓެއް',
  7437. mm: 'މިނިޓު %d',
  7438. h: 'ގަޑިއިރެއް',
  7439. hh: 'ގަޑިއިރު %d',
  7440. d: 'ދުވަހެއް',
  7441. dd: 'ދުވަސް %d',
  7442. M: 'މަހެއް',
  7443. MM: 'މަސް %d',
  7444. y: 'އަހަރެއް',
  7445. yy: 'އަހަރު %d',
  7446. },
  7447. preparse: function (string) {
  7448. return string.replace(/،/g, ',');
  7449. },
  7450. postformat: function (string) {
  7451. return string.replace(/,/g, '،');
  7452. },
  7453. week: {
  7454. dow: 7, // Sunday is the first day of the week.
  7455. doy: 12, // The week that contains Jan 12th is the first week of the year.
  7456. },
  7457. });
  7458. //! moment.js locale configuration
  7459. function isFunction$1(input) {
  7460. return (
  7461. (typeof Function !== 'undefined' && input instanceof Function) ||
  7462. Object.prototype.toString.call(input) === '[object Function]'
  7463. );
  7464. }
  7465. hooks.defineLocale('el', {
  7466. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  7467. '_'
  7468. ),
  7469. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  7470. '_'
  7471. ),
  7472. months: function (momentToFormat, format) {
  7473. if (!momentToFormat) {
  7474. return this._monthsNominativeEl;
  7475. } else if (
  7476. typeof format === 'string' &&
  7477. /D/.test(format.substring(0, format.indexOf('MMMM')))
  7478. ) {
  7479. // if there is a day number before 'MMMM'
  7480. return this._monthsGenitiveEl[momentToFormat.month()];
  7481. } else {
  7482. return this._monthsNominativeEl[momentToFormat.month()];
  7483. }
  7484. },
  7485. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7486. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  7487. '_'
  7488. ),
  7489. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7490. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7491. meridiem: function (hours, minutes, isLower) {
  7492. if (hours > 11) {
  7493. return isLower ? 'μμ' : 'ΜΜ';
  7494. } else {
  7495. return isLower ? 'πμ' : 'ΠΜ';
  7496. }
  7497. },
  7498. isPM: function (input) {
  7499. return (input + '').toLowerCase()[0] === 'μ';
  7500. },
  7501. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  7502. longDateFormat: {
  7503. LT: 'h:mm A',
  7504. LTS: 'h:mm:ss A',
  7505. L: 'DD/MM/YYYY',
  7506. LL: 'D MMMM YYYY',
  7507. LLL: 'D MMMM YYYY h:mm A',
  7508. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7509. },
  7510. calendarEl: {
  7511. sameDay: '[Σήμερα {}] LT',
  7512. nextDay: '[Αύριο {}] LT',
  7513. nextWeek: 'dddd [{}] LT',
  7514. lastDay: '[Χθες {}] LT',
  7515. lastWeek: function () {
  7516. switch (this.day()) {
  7517. case 6:
  7518. return '[το προηγούμενο] dddd [{}] LT';
  7519. default:
  7520. return '[την προηγούμενη] dddd [{}] LT';
  7521. }
  7522. },
  7523. sameElse: 'L',
  7524. },
  7525. calendar: function (key, mom) {
  7526. var output = this._calendarEl[key],
  7527. hours = mom && mom.hours();
  7528. if (isFunction$1(output)) {
  7529. output = output.apply(mom);
  7530. }
  7531. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  7532. },
  7533. relativeTime: {
  7534. future: 'σε %s',
  7535. past: '%s πριν',
  7536. s: 'λίγα δευτερόλεπτα',
  7537. ss: '%d δευτερόλεπτα',
  7538. m: 'ένα λεπτό',
  7539. mm: '%d λεπτά',
  7540. h: 'μία ώρα',
  7541. hh: '%d ώρες',
  7542. d: 'μία μέρα',
  7543. dd: '%d μέρες',
  7544. M: 'ένας μήνας',
  7545. MM: '%d μήνες',
  7546. y: 'ένας χρόνος',
  7547. yy: '%d χρόνια',
  7548. },
  7549. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7550. ordinal: '%dη',
  7551. week: {
  7552. dow: 1, // Monday is the first day of the week.
  7553. doy: 4, // The week that contains Jan 4st is the first week of the year.
  7554. },
  7555. });
  7556. //! moment.js locale configuration
  7557. hooks.defineLocale('en-au', {
  7558. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7559. '_'
  7560. ),
  7561. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7562. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7563. '_'
  7564. ),
  7565. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7566. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7567. longDateFormat: {
  7568. LT: 'h:mm A',
  7569. LTS: 'h:mm:ss A',
  7570. L: 'DD/MM/YYYY',
  7571. LL: 'D MMMM YYYY',
  7572. LLL: 'D MMMM YYYY h:mm A',
  7573. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7574. },
  7575. calendar: {
  7576. sameDay: '[Today at] LT',
  7577. nextDay: '[Tomorrow at] LT',
  7578. nextWeek: 'dddd [at] LT',
  7579. lastDay: '[Yesterday at] LT',
  7580. lastWeek: '[Last] dddd [at] LT',
  7581. sameElse: 'L',
  7582. },
  7583. relativeTime: {
  7584. future: 'in %s',
  7585. past: '%s ago',
  7586. s: 'a few seconds',
  7587. ss: '%d seconds',
  7588. m: 'a minute',
  7589. mm: '%d minutes',
  7590. h: 'an hour',
  7591. hh: '%d hours',
  7592. d: 'a day',
  7593. dd: '%d days',
  7594. M: 'a month',
  7595. MM: '%d months',
  7596. y: 'a year',
  7597. yy: '%d years',
  7598. },
  7599. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7600. ordinal: function (number) {
  7601. var b = number % 10,
  7602. output =
  7603. ~~((number % 100) / 10) === 1
  7604. ? 'th'
  7605. : b === 1
  7606. ? 'st'
  7607. : b === 2
  7608. ? 'nd'
  7609. : b === 3
  7610. ? 'rd'
  7611. : 'th';
  7612. return number + output;
  7613. },
  7614. week: {
  7615. dow: 0, // Sunday is the first day of the week.
  7616. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7617. },
  7618. });
  7619. //! moment.js locale configuration
  7620. hooks.defineLocale('en-ca', {
  7621. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7622. '_'
  7623. ),
  7624. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7625. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7626. '_'
  7627. ),
  7628. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7629. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7630. longDateFormat: {
  7631. LT: 'h:mm A',
  7632. LTS: 'h:mm:ss A',
  7633. L: 'YYYY-MM-DD',
  7634. LL: 'MMMM D, YYYY',
  7635. LLL: 'MMMM D, YYYY h:mm A',
  7636. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  7637. },
  7638. calendar: {
  7639. sameDay: '[Today at] LT',
  7640. nextDay: '[Tomorrow at] LT',
  7641. nextWeek: 'dddd [at] LT',
  7642. lastDay: '[Yesterday at] LT',
  7643. lastWeek: '[Last] dddd [at] LT',
  7644. sameElse: 'L',
  7645. },
  7646. relativeTime: {
  7647. future: 'in %s',
  7648. past: '%s ago',
  7649. s: 'a few seconds',
  7650. ss: '%d seconds',
  7651. m: 'a minute',
  7652. mm: '%d minutes',
  7653. h: 'an hour',
  7654. hh: '%d hours',
  7655. d: 'a day',
  7656. dd: '%d days',
  7657. M: 'a month',
  7658. MM: '%d months',
  7659. y: 'a year',
  7660. yy: '%d years',
  7661. },
  7662. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7663. ordinal: function (number) {
  7664. var b = number % 10,
  7665. output =
  7666. ~~((number % 100) / 10) === 1
  7667. ? 'th'
  7668. : b === 1
  7669. ? 'st'
  7670. : b === 2
  7671. ? 'nd'
  7672. : b === 3
  7673. ? 'rd'
  7674. : 'th';
  7675. return number + output;
  7676. },
  7677. });
  7678. //! moment.js locale configuration
  7679. hooks.defineLocale('en-gb', {
  7680. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7681. '_'
  7682. ),
  7683. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7684. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7685. '_'
  7686. ),
  7687. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7688. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7689. longDateFormat: {
  7690. LT: 'HH:mm',
  7691. LTS: 'HH:mm:ss',
  7692. L: 'DD/MM/YYYY',
  7693. LL: 'D MMMM YYYY',
  7694. LLL: 'D MMMM YYYY HH:mm',
  7695. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7696. },
  7697. calendar: {
  7698. sameDay: '[Today at] LT',
  7699. nextDay: '[Tomorrow at] LT',
  7700. nextWeek: 'dddd [at] LT',
  7701. lastDay: '[Yesterday at] LT',
  7702. lastWeek: '[Last] dddd [at] LT',
  7703. sameElse: 'L',
  7704. },
  7705. relativeTime: {
  7706. future: 'in %s',
  7707. past: '%s ago',
  7708. s: 'a few seconds',
  7709. ss: '%d seconds',
  7710. m: 'a minute',
  7711. mm: '%d minutes',
  7712. h: 'an hour',
  7713. hh: '%d hours',
  7714. d: 'a day',
  7715. dd: '%d days',
  7716. M: 'a month',
  7717. MM: '%d months',
  7718. y: 'a year',
  7719. yy: '%d years',
  7720. },
  7721. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7722. ordinal: function (number) {
  7723. var b = number % 10,
  7724. output =
  7725. ~~((number % 100) / 10) === 1
  7726. ? 'th'
  7727. : b === 1
  7728. ? 'st'
  7729. : b === 2
  7730. ? 'nd'
  7731. : b === 3
  7732. ? 'rd'
  7733. : 'th';
  7734. return number + output;
  7735. },
  7736. week: {
  7737. dow: 1, // Monday is the first day of the week.
  7738. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7739. },
  7740. });
  7741. //! moment.js locale configuration
  7742. hooks.defineLocale('en-ie', {
  7743. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7744. '_'
  7745. ),
  7746. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7747. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7748. '_'
  7749. ),
  7750. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7751. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7752. longDateFormat: {
  7753. LT: 'HH:mm',
  7754. LTS: 'HH:mm:ss',
  7755. L: 'DD/MM/YYYY',
  7756. LL: 'D MMMM YYYY',
  7757. LLL: 'D MMMM YYYY HH:mm',
  7758. LLLL: 'dddd D MMMM YYYY HH:mm',
  7759. },
  7760. calendar: {
  7761. sameDay: '[Today at] LT',
  7762. nextDay: '[Tomorrow at] LT',
  7763. nextWeek: 'dddd [at] LT',
  7764. lastDay: '[Yesterday at] LT',
  7765. lastWeek: '[Last] dddd [at] LT',
  7766. sameElse: 'L',
  7767. },
  7768. relativeTime: {
  7769. future: 'in %s',
  7770. past: '%s ago',
  7771. s: 'a few seconds',
  7772. ss: '%d seconds',
  7773. m: 'a minute',
  7774. mm: '%d minutes',
  7775. h: 'an hour',
  7776. hh: '%d hours',
  7777. d: 'a day',
  7778. dd: '%d days',
  7779. M: 'a month',
  7780. MM: '%d months',
  7781. y: 'a year',
  7782. yy: '%d years',
  7783. },
  7784. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7785. ordinal: function (number) {
  7786. var b = number % 10,
  7787. output =
  7788. ~~((number % 100) / 10) === 1
  7789. ? 'th'
  7790. : b === 1
  7791. ? 'st'
  7792. : b === 2
  7793. ? 'nd'
  7794. : b === 3
  7795. ? 'rd'
  7796. : 'th';
  7797. return number + output;
  7798. },
  7799. week: {
  7800. dow: 1, // Monday is the first day of the week.
  7801. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7802. },
  7803. });
  7804. //! moment.js locale configuration
  7805. hooks.defineLocale('en-il', {
  7806. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7807. '_'
  7808. ),
  7809. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7810. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7811. '_'
  7812. ),
  7813. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7814. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7815. longDateFormat: {
  7816. LT: 'HH:mm',
  7817. LTS: 'HH:mm:ss',
  7818. L: 'DD/MM/YYYY',
  7819. LL: 'D MMMM YYYY',
  7820. LLL: 'D MMMM YYYY HH:mm',
  7821. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7822. },
  7823. calendar: {
  7824. sameDay: '[Today at] LT',
  7825. nextDay: '[Tomorrow at] LT',
  7826. nextWeek: 'dddd [at] LT',
  7827. lastDay: '[Yesterday at] LT',
  7828. lastWeek: '[Last] dddd [at] LT',
  7829. sameElse: 'L',
  7830. },
  7831. relativeTime: {
  7832. future: 'in %s',
  7833. past: '%s ago',
  7834. s: 'a few seconds',
  7835. ss: '%d seconds',
  7836. m: 'a minute',
  7837. mm: '%d minutes',
  7838. h: 'an hour',
  7839. hh: '%d hours',
  7840. d: 'a day',
  7841. dd: '%d days',
  7842. M: 'a month',
  7843. MM: '%d months',
  7844. y: 'a year',
  7845. yy: '%d years',
  7846. },
  7847. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7848. ordinal: function (number) {
  7849. var b = number % 10,
  7850. output =
  7851. ~~((number % 100) / 10) === 1
  7852. ? 'th'
  7853. : b === 1
  7854. ? 'st'
  7855. : b === 2
  7856. ? 'nd'
  7857. : b === 3
  7858. ? 'rd'
  7859. : 'th';
  7860. return number + output;
  7861. },
  7862. });
  7863. //! moment.js locale configuration
  7864. hooks.defineLocale('en-in', {
  7865. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7866. '_'
  7867. ),
  7868. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7869. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7870. '_'
  7871. ),
  7872. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7873. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7874. longDateFormat: {
  7875. LT: 'h:mm A',
  7876. LTS: 'h:mm:ss A',
  7877. L: 'DD/MM/YYYY',
  7878. LL: 'D MMMM YYYY',
  7879. LLL: 'D MMMM YYYY h:mm A',
  7880. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7881. },
  7882. calendar: {
  7883. sameDay: '[Today at] LT',
  7884. nextDay: '[Tomorrow at] LT',
  7885. nextWeek: 'dddd [at] LT',
  7886. lastDay: '[Yesterday at] LT',
  7887. lastWeek: '[Last] dddd [at] LT',
  7888. sameElse: 'L',
  7889. },
  7890. relativeTime: {
  7891. future: 'in %s',
  7892. past: '%s ago',
  7893. s: 'a few seconds',
  7894. ss: '%d seconds',
  7895. m: 'a minute',
  7896. mm: '%d minutes',
  7897. h: 'an hour',
  7898. hh: '%d hours',
  7899. d: 'a day',
  7900. dd: '%d days',
  7901. M: 'a month',
  7902. MM: '%d months',
  7903. y: 'a year',
  7904. yy: '%d years',
  7905. },
  7906. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7907. ordinal: function (number) {
  7908. var b = number % 10,
  7909. output =
  7910. ~~((number % 100) / 10) === 1
  7911. ? 'th'
  7912. : b === 1
  7913. ? 'st'
  7914. : b === 2
  7915. ? 'nd'
  7916. : b === 3
  7917. ? 'rd'
  7918. : 'th';
  7919. return number + output;
  7920. },
  7921. week: {
  7922. dow: 0, // Sunday is the first day of the week.
  7923. doy: 6, // The week that contains Jan 1st is the first week of the year.
  7924. },
  7925. });
  7926. //! moment.js locale configuration
  7927. hooks.defineLocale('en-nz', {
  7928. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7929. '_'
  7930. ),
  7931. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7932. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7933. '_'
  7934. ),
  7935. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7936. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7937. longDateFormat: {
  7938. LT: 'h:mm A',
  7939. LTS: 'h:mm:ss A',
  7940. L: 'DD/MM/YYYY',
  7941. LL: 'D MMMM YYYY',
  7942. LLL: 'D MMMM YYYY h:mm A',
  7943. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7944. },
  7945. calendar: {
  7946. sameDay: '[Today at] LT',
  7947. nextDay: '[Tomorrow at] LT',
  7948. nextWeek: 'dddd [at] LT',
  7949. lastDay: '[Yesterday at] LT',
  7950. lastWeek: '[Last] dddd [at] LT',
  7951. sameElse: 'L',
  7952. },
  7953. relativeTime: {
  7954. future: 'in %s',
  7955. past: '%s ago',
  7956. s: 'a few seconds',
  7957. ss: '%d seconds',
  7958. m: 'a minute',
  7959. mm: '%d minutes',
  7960. h: 'an hour',
  7961. hh: '%d hours',
  7962. d: 'a day',
  7963. dd: '%d days',
  7964. M: 'a month',
  7965. MM: '%d months',
  7966. y: 'a year',
  7967. yy: '%d years',
  7968. },
  7969. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7970. ordinal: function (number) {
  7971. var b = number % 10,
  7972. output =
  7973. ~~((number % 100) / 10) === 1
  7974. ? 'th'
  7975. : b === 1
  7976. ? 'st'
  7977. : b === 2
  7978. ? 'nd'
  7979. : b === 3
  7980. ? 'rd'
  7981. : 'th';
  7982. return number + output;
  7983. },
  7984. week: {
  7985. dow: 1, // Monday is the first day of the week.
  7986. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7987. },
  7988. });
  7989. //! moment.js locale configuration
  7990. hooks.defineLocale('en-sg', {
  7991. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7992. '_'
  7993. ),
  7994. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7995. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7996. '_'
  7997. ),
  7998. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7999. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8000. longDateFormat: {
  8001. LT: 'HH:mm',
  8002. LTS: 'HH:mm:ss',
  8003. L: 'DD/MM/YYYY',
  8004. LL: 'D MMMM YYYY',
  8005. LLL: 'D MMMM YYYY HH:mm',
  8006. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8007. },
  8008. calendar: {
  8009. sameDay: '[Today at] LT',
  8010. nextDay: '[Tomorrow at] LT',
  8011. nextWeek: 'dddd [at] LT',
  8012. lastDay: '[Yesterday at] LT',
  8013. lastWeek: '[Last] dddd [at] LT',
  8014. sameElse: 'L',
  8015. },
  8016. relativeTime: {
  8017. future: 'in %s',
  8018. past: '%s ago',
  8019. s: 'a few seconds',
  8020. ss: '%d seconds',
  8021. m: 'a minute',
  8022. mm: '%d minutes',
  8023. h: 'an hour',
  8024. hh: '%d hours',
  8025. d: 'a day',
  8026. dd: '%d days',
  8027. M: 'a month',
  8028. MM: '%d months',
  8029. y: 'a year',
  8030. yy: '%d years',
  8031. },
  8032. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8033. ordinal: function (number) {
  8034. var b = number % 10,
  8035. output =
  8036. ~~((number % 100) / 10) === 1
  8037. ? 'th'
  8038. : b === 1
  8039. ? 'st'
  8040. : b === 2
  8041. ? 'nd'
  8042. : b === 3
  8043. ? 'rd'
  8044. : 'th';
  8045. return number + output;
  8046. },
  8047. week: {
  8048. dow: 1, // Monday is the first day of the week.
  8049. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8050. },
  8051. });
  8052. //! moment.js locale configuration
  8053. hooks.defineLocale('eo', {
  8054. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  8055. '_'
  8056. ),
  8057. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  8058. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  8059. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  8060. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  8061. longDateFormat: {
  8062. LT: 'HH:mm',
  8063. LTS: 'HH:mm:ss',
  8064. L: 'YYYY-MM-DD',
  8065. LL: '[la] D[-an de] MMMM, YYYY',
  8066. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  8067. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  8068. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
  8069. },
  8070. meridiemParse: /[ap]\.t\.m/i,
  8071. isPM: function (input) {
  8072. return input.charAt(0).toLowerCase() === 'p';
  8073. },
  8074. meridiem: function (hours, minutes, isLower) {
  8075. if (hours > 11) {
  8076. return isLower ? 'p.t.m.' : 'P.T.M.';
  8077. } else {
  8078. return isLower ? 'a.t.m.' : 'A.T.M.';
  8079. }
  8080. },
  8081. calendar: {
  8082. sameDay: '[Hodiaŭ je] LT',
  8083. nextDay: '[Morgaŭ je] LT',
  8084. nextWeek: 'dddd[n je] LT',
  8085. lastDay: '[Hieraŭ je] LT',
  8086. lastWeek: '[pasintan] dddd[n je] LT',
  8087. sameElse: 'L',
  8088. },
  8089. relativeTime: {
  8090. future: 'post %s',
  8091. past: 'antaŭ %s',
  8092. s: 'kelkaj sekundoj',
  8093. ss: '%d sekundoj',
  8094. m: 'unu minuto',
  8095. mm: '%d minutoj',
  8096. h: 'unu horo',
  8097. hh: '%d horoj',
  8098. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  8099. dd: '%d tagoj',
  8100. M: 'unu monato',
  8101. MM: '%d monatoj',
  8102. y: 'unu jaro',
  8103. yy: '%d jaroj',
  8104. },
  8105. dayOfMonthOrdinalParse: /\d{1,2}a/,
  8106. ordinal: '%da',
  8107. week: {
  8108. dow: 1, // Monday is the first day of the week.
  8109. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8110. },
  8111. });
  8112. //! moment.js locale configuration
  8113. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8114. '_'
  8115. ),
  8116. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8117. monthsParse$2 = [
  8118. /^ene/i,
  8119. /^feb/i,
  8120. /^mar/i,
  8121. /^abr/i,
  8122. /^may/i,
  8123. /^jun/i,
  8124. /^jul/i,
  8125. /^ago/i,
  8126. /^sep/i,
  8127. /^oct/i,
  8128. /^nov/i,
  8129. /^dic/i,
  8130. ],
  8131. monthsRegex$3 = /^(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;
  8132. hooks.defineLocale('es-do', {
  8133. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8134. '_'
  8135. ),
  8136. monthsShort: function (m, format) {
  8137. if (!m) {
  8138. return monthsShortDot;
  8139. } else if (/-MMM-/.test(format)) {
  8140. return monthsShort$1[m.month()];
  8141. } else {
  8142. return monthsShortDot[m.month()];
  8143. }
  8144. },
  8145. monthsRegex: monthsRegex$3,
  8146. monthsShortRegex: monthsRegex$3,
  8147. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8148. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8149. monthsParse: monthsParse$2,
  8150. longMonthsParse: monthsParse$2,
  8151. shortMonthsParse: monthsParse$2,
  8152. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8153. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8154. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8155. weekdaysParseExact: true,
  8156. longDateFormat: {
  8157. LT: 'h:mm A',
  8158. LTS: 'h:mm:ss A',
  8159. L: 'DD/MM/YYYY',
  8160. LL: 'D [de] MMMM [de] YYYY',
  8161. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8162. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8163. },
  8164. calendar: {
  8165. sameDay: function () {
  8166. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8167. },
  8168. nextDay: function () {
  8169. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8170. },
  8171. nextWeek: function () {
  8172. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8173. },
  8174. lastDay: function () {
  8175. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8176. },
  8177. lastWeek: function () {
  8178. return (
  8179. '[el] dddd [pasado a la' +
  8180. (this.hours() !== 1 ? 's' : '') +
  8181. '] LT'
  8182. );
  8183. },
  8184. sameElse: 'L',
  8185. },
  8186. relativeTime: {
  8187. future: 'en %s',
  8188. past: 'hace %s',
  8189. s: 'unos segundos',
  8190. ss: '%d segundos',
  8191. m: 'un minuto',
  8192. mm: '%d minutos',
  8193. h: 'una hora',
  8194. hh: '%d horas',
  8195. d: 'un día',
  8196. dd: '%d días',
  8197. w: 'una semana',
  8198. ww: '%d semanas',
  8199. M: 'un mes',
  8200. MM: '%d meses',
  8201. y: 'un año',
  8202. yy: '%d años',
  8203. },
  8204. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8205. ordinal: '%dº',
  8206. week: {
  8207. dow: 1, // Monday is the first day of the week.
  8208. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8209. },
  8210. });
  8211. //! moment.js locale configuration
  8212. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8213. '_'
  8214. ),
  8215. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8216. monthsParse$3 = [
  8217. /^ene/i,
  8218. /^feb/i,
  8219. /^mar/i,
  8220. /^abr/i,
  8221. /^may/i,
  8222. /^jun/i,
  8223. /^jul/i,
  8224. /^ago/i,
  8225. /^sep/i,
  8226. /^oct/i,
  8227. /^nov/i,
  8228. /^dic/i,
  8229. ],
  8230. monthsRegex$4 = /^(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;
  8231. hooks.defineLocale('es-mx', {
  8232. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8233. '_'
  8234. ),
  8235. monthsShort: function (m, format) {
  8236. if (!m) {
  8237. return monthsShortDot$1;
  8238. } else if (/-MMM-/.test(format)) {
  8239. return monthsShort$2[m.month()];
  8240. } else {
  8241. return monthsShortDot$1[m.month()];
  8242. }
  8243. },
  8244. monthsRegex: monthsRegex$4,
  8245. monthsShortRegex: monthsRegex$4,
  8246. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8247. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8248. monthsParse: monthsParse$3,
  8249. longMonthsParse: monthsParse$3,
  8250. shortMonthsParse: monthsParse$3,
  8251. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8252. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8253. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8254. weekdaysParseExact: true,
  8255. longDateFormat: {
  8256. LT: 'H:mm',
  8257. LTS: 'H:mm:ss',
  8258. L: 'DD/MM/YYYY',
  8259. LL: 'D [de] MMMM [de] YYYY',
  8260. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8261. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8262. },
  8263. calendar: {
  8264. sameDay: function () {
  8265. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8266. },
  8267. nextDay: function () {
  8268. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8269. },
  8270. nextWeek: function () {
  8271. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8272. },
  8273. lastDay: function () {
  8274. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8275. },
  8276. lastWeek: function () {
  8277. return (
  8278. '[el] dddd [pasado a la' +
  8279. (this.hours() !== 1 ? 's' : '') +
  8280. '] LT'
  8281. );
  8282. },
  8283. sameElse: 'L',
  8284. },
  8285. relativeTime: {
  8286. future: 'en %s',
  8287. past: 'hace %s',
  8288. s: 'unos segundos',
  8289. ss: '%d segundos',
  8290. m: 'un minuto',
  8291. mm: '%d minutos',
  8292. h: 'una hora',
  8293. hh: '%d horas',
  8294. d: 'un día',
  8295. dd: '%d días',
  8296. w: 'una semana',
  8297. ww: '%d semanas',
  8298. M: 'un mes',
  8299. MM: '%d meses',
  8300. y: 'un año',
  8301. yy: '%d años',
  8302. },
  8303. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8304. ordinal: '%dº',
  8305. week: {
  8306. dow: 0, // Sunday is the first day of the week.
  8307. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8308. },
  8309. invalidDate: 'Fecha inválida',
  8310. });
  8311. //! moment.js locale configuration
  8312. var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8313. '_'
  8314. ),
  8315. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8316. monthsParse$4 = [
  8317. /^ene/i,
  8318. /^feb/i,
  8319. /^mar/i,
  8320. /^abr/i,
  8321. /^may/i,
  8322. /^jun/i,
  8323. /^jul/i,
  8324. /^ago/i,
  8325. /^sep/i,
  8326. /^oct/i,
  8327. /^nov/i,
  8328. /^dic/i,
  8329. ],
  8330. monthsRegex$5 = /^(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;
  8331. hooks.defineLocale('es-us', {
  8332. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8333. '_'
  8334. ),
  8335. monthsShort: function (m, format) {
  8336. if (!m) {
  8337. return monthsShortDot$2;
  8338. } else if (/-MMM-/.test(format)) {
  8339. return monthsShort$3[m.month()];
  8340. } else {
  8341. return monthsShortDot$2[m.month()];
  8342. }
  8343. },
  8344. monthsRegex: monthsRegex$5,
  8345. monthsShortRegex: monthsRegex$5,
  8346. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8347. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8348. monthsParse: monthsParse$4,
  8349. longMonthsParse: monthsParse$4,
  8350. shortMonthsParse: monthsParse$4,
  8351. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8352. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8353. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8354. weekdaysParseExact: true,
  8355. longDateFormat: {
  8356. LT: 'h:mm A',
  8357. LTS: 'h:mm:ss A',
  8358. L: 'MM/DD/YYYY',
  8359. LL: 'D [de] MMMM [de] YYYY',
  8360. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8361. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8362. },
  8363. calendar: {
  8364. sameDay: function () {
  8365. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8366. },
  8367. nextDay: function () {
  8368. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8369. },
  8370. nextWeek: function () {
  8371. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8372. },
  8373. lastDay: function () {
  8374. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8375. },
  8376. lastWeek: function () {
  8377. return (
  8378. '[el] dddd [pasado a la' +
  8379. (this.hours() !== 1 ? 's' : '') +
  8380. '] LT'
  8381. );
  8382. },
  8383. sameElse: 'L',
  8384. },
  8385. relativeTime: {
  8386. future: 'en %s',
  8387. past: 'hace %s',
  8388. s: 'unos segundos',
  8389. ss: '%d segundos',
  8390. m: 'un minuto',
  8391. mm: '%d minutos',
  8392. h: 'una hora',
  8393. hh: '%d horas',
  8394. d: 'un día',
  8395. dd: '%d días',
  8396. w: 'una semana',
  8397. ww: '%d semanas',
  8398. M: 'un mes',
  8399. MM: '%d meses',
  8400. y: 'un año',
  8401. yy: '%d años',
  8402. },
  8403. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8404. ordinal: '%dº',
  8405. week: {
  8406. dow: 0, // Sunday is the first day of the week.
  8407. doy: 6, // The week that contains Jan 6th is the first week of the year.
  8408. },
  8409. });
  8410. //! moment.js locale configuration
  8411. var monthsShortDot$3 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8412. '_'
  8413. ),
  8414. monthsShort$4 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8415. monthsParse$5 = [
  8416. /^ene/i,
  8417. /^feb/i,
  8418. /^mar/i,
  8419. /^abr/i,
  8420. /^may/i,
  8421. /^jun/i,
  8422. /^jul/i,
  8423. /^ago/i,
  8424. /^sep/i,
  8425. /^oct/i,
  8426. /^nov/i,
  8427. /^dic/i,
  8428. ],
  8429. monthsRegex$6 = /^(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;
  8430. hooks.defineLocale('es', {
  8431. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8432. '_'
  8433. ),
  8434. monthsShort: function (m, format) {
  8435. if (!m) {
  8436. return monthsShortDot$3;
  8437. } else if (/-MMM-/.test(format)) {
  8438. return monthsShort$4[m.month()];
  8439. } else {
  8440. return monthsShortDot$3[m.month()];
  8441. }
  8442. },
  8443. monthsRegex: monthsRegex$6,
  8444. monthsShortRegex: monthsRegex$6,
  8445. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8446. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8447. monthsParse: monthsParse$5,
  8448. longMonthsParse: monthsParse$5,
  8449. shortMonthsParse: monthsParse$5,
  8450. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8451. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8452. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8453. weekdaysParseExact: true,
  8454. longDateFormat: {
  8455. LT: 'H:mm',
  8456. LTS: 'H:mm:ss',
  8457. L: 'DD/MM/YYYY',
  8458. LL: 'D [de] MMMM [de] YYYY',
  8459. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8460. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8461. },
  8462. calendar: {
  8463. sameDay: function () {
  8464. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8465. },
  8466. nextDay: function () {
  8467. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8468. },
  8469. nextWeek: function () {
  8470. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8471. },
  8472. lastDay: function () {
  8473. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8474. },
  8475. lastWeek: function () {
  8476. return (
  8477. '[el] dddd [pasado a la' +
  8478. (this.hours() !== 1 ? 's' : '') +
  8479. '] LT'
  8480. );
  8481. },
  8482. sameElse: 'L',
  8483. },
  8484. relativeTime: {
  8485. future: 'en %s',
  8486. past: 'hace %s',
  8487. s: 'unos segundos',
  8488. ss: '%d segundos',
  8489. m: 'un minuto',
  8490. mm: '%d minutos',
  8491. h: 'una hora',
  8492. hh: '%d horas',
  8493. d: 'un día',
  8494. dd: '%d días',
  8495. w: 'una semana',
  8496. ww: '%d semanas',
  8497. M: 'un mes',
  8498. MM: '%d meses',
  8499. y: 'un año',
  8500. yy: '%d años',
  8501. },
  8502. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8503. ordinal: '%dº',
  8504. week: {
  8505. dow: 1, // Monday is the first day of the week.
  8506. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8507. },
  8508. invalidDate: 'Fecha inválida',
  8509. });
  8510. //! moment.js locale configuration
  8511. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  8512. var format = {
  8513. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8514. ss: [number + 'sekundi', number + 'sekundit'],
  8515. m: ['ühe minuti', 'üks minut'],
  8516. mm: [number + ' minuti', number + ' minutit'],
  8517. h: ['ühe tunni', 'tund aega', 'üks tund'],
  8518. hh: [number + ' tunni', number + ' tundi'],
  8519. d: ['ühe päeva', 'üks päev'],
  8520. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  8521. MM: [number + ' kuu', number + ' kuud'],
  8522. y: ['ühe aasta', 'aasta', 'üks aasta'],
  8523. yy: [number + ' aasta', number + ' aastat'],
  8524. };
  8525. if (withoutSuffix) {
  8526. return format[key][2] ? format[key][2] : format[key][1];
  8527. }
  8528. return isFuture ? format[key][0] : format[key][1];
  8529. }
  8530. hooks.defineLocale('et', {
  8531. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  8532. '_'
  8533. ),
  8534. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
  8535. '_'
  8536. ),
  8537. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  8538. '_'
  8539. ),
  8540. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  8541. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  8542. longDateFormat: {
  8543. LT: 'H:mm',
  8544. LTS: 'H:mm:ss',
  8545. L: 'DD.MM.YYYY',
  8546. LL: 'D. MMMM YYYY',
  8547. LLL: 'D. MMMM YYYY H:mm',
  8548. LLLL: 'dddd, D. MMMM YYYY H:mm',
  8549. },
  8550. calendar: {
  8551. sameDay: '[Täna,] LT',
  8552. nextDay: '[Homme,] LT',
  8553. nextWeek: '[Järgmine] dddd LT',
  8554. lastDay: '[Eile,] LT',
  8555. lastWeek: '[Eelmine] dddd LT',
  8556. sameElse: 'L',
  8557. },
  8558. relativeTime: {
  8559. future: '%s pärast',
  8560. past: '%s tagasi',
  8561. s: processRelativeTime$3,
  8562. ss: processRelativeTime$3,
  8563. m: processRelativeTime$3,
  8564. mm: processRelativeTime$3,
  8565. h: processRelativeTime$3,
  8566. hh: processRelativeTime$3,
  8567. d: processRelativeTime$3,
  8568. dd: '%d päeva',
  8569. M: processRelativeTime$3,
  8570. MM: processRelativeTime$3,
  8571. y: processRelativeTime$3,
  8572. yy: processRelativeTime$3,
  8573. },
  8574. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8575. ordinal: '%d.',
  8576. week: {
  8577. dow: 1, // Monday is the first day of the week.
  8578. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8579. },
  8580. });
  8581. //! moment.js locale configuration
  8582. hooks.defineLocale('eu', {
  8583. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  8584. '_'
  8585. ),
  8586. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  8587. '_'
  8588. ),
  8589. monthsParseExact: true,
  8590. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  8591. '_'
  8592. ),
  8593. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8594. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  8595. weekdaysParseExact: true,
  8596. longDateFormat: {
  8597. LT: 'HH:mm',
  8598. LTS: 'HH:mm:ss',
  8599. L: 'YYYY-MM-DD',
  8600. LL: 'YYYY[ko] MMMM[ren] D[a]',
  8601. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8602. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8603. l: 'YYYY-M-D',
  8604. ll: 'YYYY[ko] MMM D[a]',
  8605. lll: 'YYYY[ko] MMM D[a] HH:mm',
  8606. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
  8607. },
  8608. calendar: {
  8609. sameDay: '[gaur] LT[etan]',
  8610. nextDay: '[bihar] LT[etan]',
  8611. nextWeek: 'dddd LT[etan]',
  8612. lastDay: '[atzo] LT[etan]',
  8613. lastWeek: '[aurreko] dddd LT[etan]',
  8614. sameElse: 'L',
  8615. },
  8616. relativeTime: {
  8617. future: '%s barru',
  8618. past: 'duela %s',
  8619. s: 'segundo batzuk',
  8620. ss: '%d segundo',
  8621. m: 'minutu bat',
  8622. mm: '%d minutu',
  8623. h: 'ordu bat',
  8624. hh: '%d ordu',
  8625. d: 'egun bat',
  8626. dd: '%d egun',
  8627. M: 'hilabete bat',
  8628. MM: '%d hilabete',
  8629. y: 'urte bat',
  8630. yy: '%d urte',
  8631. },
  8632. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8633. ordinal: '%d.',
  8634. week: {
  8635. dow: 1, // Monday is the first day of the week.
  8636. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8637. },
  8638. });
  8639. //! moment.js locale configuration
  8640. var symbolMap$6 = {
  8641. 1: '۱',
  8642. 2: '۲',
  8643. 3: '۳',
  8644. 4: '۴',
  8645. 5: '۵',
  8646. 6: '۶',
  8647. 7: '۷',
  8648. 8: '۸',
  8649. 9: '۹',
  8650. 0: '۰',
  8651. },
  8652. numberMap$5 = {
  8653. '۱': '1',
  8654. '۲': '2',
  8655. '۳': '3',
  8656. '۴': '4',
  8657. '۵': '5',
  8658. '۶': '6',
  8659. '۷': '7',
  8660. '۸': '8',
  8661. '۹': '9',
  8662. '۰': '0',
  8663. };
  8664. hooks.defineLocale('fa', {
  8665. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8666. '_'
  8667. ),
  8668. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8669. '_'
  8670. ),
  8671. weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8672. '_'
  8673. ),
  8674. weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8675. '_'
  8676. ),
  8677. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8678. weekdaysParseExact: true,
  8679. longDateFormat: {
  8680. LT: 'HH:mm',
  8681. LTS: 'HH:mm:ss',
  8682. L: 'DD/MM/YYYY',
  8683. LL: 'D MMMM YYYY',
  8684. LLL: 'D MMMM YYYY HH:mm',
  8685. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8686. },
  8687. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8688. isPM: function (input) {
  8689. return /بعد از ظهر/.test(input);
  8690. },
  8691. meridiem: function (hour, minute, isLower) {
  8692. if (hour < 12) {
  8693. return 'قبل از ظهر';
  8694. } else {
  8695. return 'بعد از ظهر';
  8696. }
  8697. },
  8698. calendar: {
  8699. sameDay: '[امروز ساعت] LT',
  8700. nextDay: '[فردا ساعت] LT',
  8701. nextWeek: 'dddd [ساعت] LT',
  8702. lastDay: '[دیروز ساعت] LT',
  8703. lastWeek: 'dddd [پیش] [ساعت] LT',
  8704. sameElse: 'L',
  8705. },
  8706. relativeTime: {
  8707. future: 'در %s',
  8708. past: '%s پیش',
  8709. s: 'چند ثانیه',
  8710. ss: '%d ثانیه',
  8711. m: 'یک دقیقه',
  8712. mm: '%d دقیقه',
  8713. h: 'یک ساعت',
  8714. hh: '%d ساعت',
  8715. d: 'یک روز',
  8716. dd: '%d روز',
  8717. M: 'یک ماه',
  8718. MM: '%d ماه',
  8719. y: 'یک سال',
  8720. yy: '%d سال',
  8721. },
  8722. preparse: function (string) {
  8723. return string
  8724. .replace(/[۰-۹]/g, function (match) {
  8725. return numberMap$5[match];
  8726. })
  8727. .replace(/،/g, ',');
  8728. },
  8729. postformat: function (string) {
  8730. return string
  8731. .replace(/\d/g, function (match) {
  8732. return symbolMap$6[match];
  8733. })
  8734. .replace(/,/g, '،');
  8735. },
  8736. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8737. ordinal: '%dم',
  8738. week: {
  8739. dow: 6, // Saturday is the first day of the week.
  8740. doy: 12, // The week that contains Jan 12th is the first week of the year.
  8741. },
  8742. });
  8743. //! moment.js locale configuration
  8744. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  8745. ' '
  8746. ),
  8747. numbersFuture = [
  8748. 'nolla',
  8749. 'yhden',
  8750. 'kahden',
  8751. 'kolmen',
  8752. 'neljän',
  8753. 'viiden',
  8754. 'kuuden',
  8755. numbersPast[7],
  8756. numbersPast[8],
  8757. numbersPast[9],
  8758. ];
  8759. function translate$2(number, withoutSuffix, key, isFuture) {
  8760. var result = '';
  8761. switch (key) {
  8762. case 's':
  8763. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8764. case 'ss':
  8765. result = isFuture ? 'sekunnin' : 'sekuntia';
  8766. break;
  8767. case 'm':
  8768. return isFuture ? 'minuutin' : 'minuutti';
  8769. case 'mm':
  8770. result = isFuture ? 'minuutin' : 'minuuttia';
  8771. break;
  8772. case 'h':
  8773. return isFuture ? 'tunnin' : 'tunti';
  8774. case 'hh':
  8775. result = isFuture ? 'tunnin' : 'tuntia';
  8776. break;
  8777. case 'd':
  8778. return isFuture ? 'päivän' : 'päivä';
  8779. case 'dd':
  8780. result = isFuture ? 'päivän' : 'päivää';
  8781. break;
  8782. case 'M':
  8783. return isFuture ? 'kuukauden' : 'kuukausi';
  8784. case 'MM':
  8785. result = isFuture ? 'kuukauden' : 'kuukautta';
  8786. break;
  8787. case 'y':
  8788. return isFuture ? 'vuoden' : 'vuosi';
  8789. case 'yy':
  8790. result = isFuture ? 'vuoden' : 'vuotta';
  8791. break;
  8792. }
  8793. result = verbalNumber(number, isFuture) + ' ' + result;
  8794. return result;
  8795. }
  8796. function verbalNumber(number, isFuture) {
  8797. return number < 10
  8798. ? isFuture
  8799. ? numbersFuture[number]
  8800. : numbersPast[number]
  8801. : number;
  8802. }
  8803. hooks.defineLocale('fi', {
  8804. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  8805. '_'
  8806. ),
  8807. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  8808. '_'
  8809. ),
  8810. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  8811. '_'
  8812. ),
  8813. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8814. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8815. longDateFormat: {
  8816. LT: 'HH.mm',
  8817. LTS: 'HH.mm.ss',
  8818. L: 'DD.MM.YYYY',
  8819. LL: 'Do MMMM[ta] YYYY',
  8820. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  8821. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  8822. l: 'D.M.YYYY',
  8823. ll: 'Do MMM YYYY',
  8824. lll: 'Do MMM YYYY, [klo] HH.mm',
  8825. llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
  8826. },
  8827. calendar: {
  8828. sameDay: '[tänään] [klo] LT',
  8829. nextDay: '[huomenna] [klo] LT',
  8830. nextWeek: 'dddd [klo] LT',
  8831. lastDay: '[eilen] [klo] LT',
  8832. lastWeek: '[viime] dddd[na] [klo] LT',
  8833. sameElse: 'L',
  8834. },
  8835. relativeTime: {
  8836. future: '%s päästä',
  8837. past: '%s sitten',
  8838. s: translate$2,
  8839. ss: translate$2,
  8840. m: translate$2,
  8841. mm: translate$2,
  8842. h: translate$2,
  8843. hh: translate$2,
  8844. d: translate$2,
  8845. dd: translate$2,
  8846. M: translate$2,
  8847. MM: translate$2,
  8848. y: translate$2,
  8849. yy: translate$2,
  8850. },
  8851. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8852. ordinal: '%d.',
  8853. week: {
  8854. dow: 1, // Monday is the first day of the week.
  8855. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8856. },
  8857. });
  8858. //! moment.js locale configuration
  8859. hooks.defineLocale('fil', {
  8860. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  8861. '_'
  8862. ),
  8863. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  8864. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  8865. '_'
  8866. ),
  8867. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  8868. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  8869. longDateFormat: {
  8870. LT: 'HH:mm',
  8871. LTS: 'HH:mm:ss',
  8872. L: 'MM/D/YYYY',
  8873. LL: 'MMMM D, YYYY',
  8874. LLL: 'MMMM D, YYYY HH:mm',
  8875. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  8876. },
  8877. calendar: {
  8878. sameDay: 'LT [ngayong araw]',
  8879. nextDay: '[Bukas ng] LT',
  8880. nextWeek: 'LT [sa susunod na] dddd',
  8881. lastDay: 'LT [kahapon]',
  8882. lastWeek: 'LT [noong nakaraang] dddd',
  8883. sameElse: 'L',
  8884. },
  8885. relativeTime: {
  8886. future: 'sa loob ng %s',
  8887. past: '%s ang nakalipas',
  8888. s: 'ilang segundo',
  8889. ss: '%d segundo',
  8890. m: 'isang minuto',
  8891. mm: '%d minuto',
  8892. h: 'isang oras',
  8893. hh: '%d oras',
  8894. d: 'isang araw',
  8895. dd: '%d araw',
  8896. M: 'isang buwan',
  8897. MM: '%d buwan',
  8898. y: 'isang taon',
  8899. yy: '%d taon',
  8900. },
  8901. dayOfMonthOrdinalParse: /\d{1,2}/,
  8902. ordinal: function (number) {
  8903. return number;
  8904. },
  8905. week: {
  8906. dow: 1, // Monday is the first day of the week.
  8907. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8908. },
  8909. });
  8910. //! moment.js locale configuration
  8911. hooks.defineLocale('fo', {
  8912. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  8913. '_'
  8914. ),
  8915. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8916. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  8917. '_'
  8918. ),
  8919. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  8920. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  8921. longDateFormat: {
  8922. LT: 'HH:mm',
  8923. LTS: 'HH:mm:ss',
  8924. L: 'DD/MM/YYYY',
  8925. LL: 'D MMMM YYYY',
  8926. LLL: 'D MMMM YYYY HH:mm',
  8927. LLLL: 'dddd D. MMMM, YYYY HH:mm',
  8928. },
  8929. calendar: {
  8930. sameDay: '[Í dag kl.] LT',
  8931. nextDay: '[Í morgin kl.] LT',
  8932. nextWeek: 'dddd [kl.] LT',
  8933. lastDay: '[Í gjár kl.] LT',
  8934. lastWeek: '[síðstu] dddd [kl] LT',
  8935. sameElse: 'L',
  8936. },
  8937. relativeTime: {
  8938. future: 'um %s',
  8939. past: '%s síðani',
  8940. s: 'fá sekund',
  8941. ss: '%d sekundir',
  8942. m: 'ein minuttur',
  8943. mm: '%d minuttir',
  8944. h: 'ein tími',
  8945. hh: '%d tímar',
  8946. d: 'ein dagur',
  8947. dd: '%d dagar',
  8948. M: 'ein mánaður',
  8949. MM: '%d mánaðir',
  8950. y: 'eitt ár',
  8951. yy: '%d ár',
  8952. },
  8953. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8954. ordinal: '%d.',
  8955. week: {
  8956. dow: 1, // Monday is the first day of the week.
  8957. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8958. },
  8959. });
  8960. //! moment.js locale configuration
  8961. hooks.defineLocale('fr-ca', {
  8962. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8963. '_'
  8964. ),
  8965. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8966. '_'
  8967. ),
  8968. monthsParseExact: true,
  8969. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8970. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8971. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8972. weekdaysParseExact: true,
  8973. longDateFormat: {
  8974. LT: 'HH:mm',
  8975. LTS: 'HH:mm:ss',
  8976. L: 'YYYY-MM-DD',
  8977. LL: 'D MMMM YYYY',
  8978. LLL: 'D MMMM YYYY HH:mm',
  8979. LLLL: 'dddd D MMMM YYYY HH:mm',
  8980. },
  8981. calendar: {
  8982. sameDay: '[Aujourd’hui à] LT',
  8983. nextDay: '[Demain à] LT',
  8984. nextWeek: 'dddd [à] LT',
  8985. lastDay: '[Hier à] LT',
  8986. lastWeek: 'dddd [dernier à] LT',
  8987. sameElse: 'L',
  8988. },
  8989. relativeTime: {
  8990. future: 'dans %s',
  8991. past: 'il y a %s',
  8992. s: 'quelques secondes',
  8993. ss: '%d secondes',
  8994. m: 'une minute',
  8995. mm: '%d minutes',
  8996. h: 'une heure',
  8997. hh: '%d heures',
  8998. d: 'un jour',
  8999. dd: '%d jours',
  9000. M: 'un mois',
  9001. MM: '%d mois',
  9002. y: 'un an',
  9003. yy: '%d ans',
  9004. },
  9005. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9006. ordinal: function (number, period) {
  9007. switch (period) {
  9008. // Words with masculine grammatical gender: mois, trimestre, jour
  9009. default:
  9010. case 'M':
  9011. case 'Q':
  9012. case 'D':
  9013. case 'DDD':
  9014. case 'd':
  9015. return number + (number === 1 ? 'er' : 'e');
  9016. // Words with feminine grammatical gender: semaine
  9017. case 'w':
  9018. case 'W':
  9019. return number + (number === 1 ? 're' : 'e');
  9020. }
  9021. },
  9022. });
  9023. //! moment.js locale configuration
  9024. hooks.defineLocale('fr-ch', {
  9025. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9026. '_'
  9027. ),
  9028. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9029. '_'
  9030. ),
  9031. monthsParseExact: true,
  9032. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9033. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9034. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9035. weekdaysParseExact: true,
  9036. longDateFormat: {
  9037. LT: 'HH:mm',
  9038. LTS: 'HH:mm:ss',
  9039. L: 'DD.MM.YYYY',
  9040. LL: 'D MMMM YYYY',
  9041. LLL: 'D MMMM YYYY HH:mm',
  9042. LLLL: 'dddd D MMMM YYYY HH:mm',
  9043. },
  9044. calendar: {
  9045. sameDay: '[Aujourd’hui à] LT',
  9046. nextDay: '[Demain à] LT',
  9047. nextWeek: 'dddd [à] LT',
  9048. lastDay: '[Hier à] LT',
  9049. lastWeek: 'dddd [dernier à] LT',
  9050. sameElse: 'L',
  9051. },
  9052. relativeTime: {
  9053. future: 'dans %s',
  9054. past: 'il y a %s',
  9055. s: 'quelques secondes',
  9056. ss: '%d secondes',
  9057. m: 'une minute',
  9058. mm: '%d minutes',
  9059. h: 'une heure',
  9060. hh: '%d heures',
  9061. d: 'un jour',
  9062. dd: '%d jours',
  9063. M: 'un mois',
  9064. MM: '%d mois',
  9065. y: 'un an',
  9066. yy: '%d ans',
  9067. },
  9068. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9069. ordinal: function (number, period) {
  9070. switch (period) {
  9071. // Words with masculine grammatical gender: mois, trimestre, jour
  9072. default:
  9073. case 'M':
  9074. case 'Q':
  9075. case 'D':
  9076. case 'DDD':
  9077. case 'd':
  9078. return number + (number === 1 ? 'er' : 'e');
  9079. // Words with feminine grammatical gender: semaine
  9080. case 'w':
  9081. case 'W':
  9082. return number + (number === 1 ? 're' : 'e');
  9083. }
  9084. },
  9085. week: {
  9086. dow: 1, // Monday is the first day of the week.
  9087. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9088. },
  9089. });
  9090. //! moment.js locale configuration
  9091. var monthsStrictRegex$1 = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  9092. monthsShortStrictRegex$1 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  9093. monthsRegex$7 = /(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,
  9094. monthsParse$6 = [
  9095. /^janv/i,
  9096. /^févr/i,
  9097. /^mars/i,
  9098. /^avr/i,
  9099. /^mai/i,
  9100. /^juin/i,
  9101. /^juil/i,
  9102. /^août/i,
  9103. /^sept/i,
  9104. /^oct/i,
  9105. /^nov/i,
  9106. /^déc/i,
  9107. ];
  9108. hooks.defineLocale('fr', {
  9109. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9110. '_'
  9111. ),
  9112. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9113. '_'
  9114. ),
  9115. monthsRegex: monthsRegex$7,
  9116. monthsShortRegex: monthsRegex$7,
  9117. monthsStrictRegex: monthsStrictRegex$1,
  9118. monthsShortStrictRegex: monthsShortStrictRegex$1,
  9119. monthsParse: monthsParse$6,
  9120. longMonthsParse: monthsParse$6,
  9121. shortMonthsParse: monthsParse$6,
  9122. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9123. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9124. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9125. weekdaysParseExact: true,
  9126. longDateFormat: {
  9127. LT: 'HH:mm',
  9128. LTS: 'HH:mm:ss',
  9129. L: 'DD/MM/YYYY',
  9130. LL: 'D MMMM YYYY',
  9131. LLL: 'D MMMM YYYY HH:mm',
  9132. LLLL: 'dddd D MMMM YYYY HH:mm',
  9133. },
  9134. calendar: {
  9135. sameDay: '[Aujourd’hui à] LT',
  9136. nextDay: '[Demain à] LT',
  9137. nextWeek: 'dddd [à] LT',
  9138. lastDay: '[Hier à] LT',
  9139. lastWeek: 'dddd [dernier à] LT',
  9140. sameElse: 'L',
  9141. },
  9142. relativeTime: {
  9143. future: 'dans %s',
  9144. past: 'il y a %s',
  9145. s: 'quelques secondes',
  9146. ss: '%d secondes',
  9147. m: 'une minute',
  9148. mm: '%d minutes',
  9149. h: 'une heure',
  9150. hh: '%d heures',
  9151. d: 'un jour',
  9152. dd: '%d jours',
  9153. w: 'une semaine',
  9154. ww: '%d semaines',
  9155. M: 'un mois',
  9156. MM: '%d mois',
  9157. y: 'un an',
  9158. yy: '%d ans',
  9159. },
  9160. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  9161. ordinal: function (number, period) {
  9162. switch (period) {
  9163. // TODO: Return 'e' when day of month > 1. Move this case inside
  9164. // block for masculine words below.
  9165. // See https://github.com/moment/moment/issues/3375
  9166. case 'D':
  9167. return number + (number === 1 ? 'er' : '');
  9168. // Words with masculine grammatical gender: mois, trimestre, jour
  9169. default:
  9170. case 'M':
  9171. case 'Q':
  9172. case 'DDD':
  9173. case 'd':
  9174. return number + (number === 1 ? 'er' : 'e');
  9175. // Words with feminine grammatical gender: semaine
  9176. case 'w':
  9177. case 'W':
  9178. return number + (number === 1 ? 're' : 'e');
  9179. }
  9180. },
  9181. week: {
  9182. dow: 1, // Monday is the first day of the week.
  9183. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9184. },
  9185. });
  9186. //! moment.js locale configuration
  9187. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
  9188. '_'
  9189. ),
  9190. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
  9191. '_'
  9192. );
  9193. hooks.defineLocale('fy', {
  9194. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  9195. '_'
  9196. ),
  9197. monthsShort: function (m, format) {
  9198. if (!m) {
  9199. return monthsShortWithDots;
  9200. } else if (/-MMM-/.test(format)) {
  9201. return monthsShortWithoutDots[m.month()];
  9202. } else {
  9203. return monthsShortWithDots[m.month()];
  9204. }
  9205. },
  9206. monthsParseExact: true,
  9207. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  9208. '_'
  9209. ),
  9210. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  9211. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  9212. weekdaysParseExact: true,
  9213. longDateFormat: {
  9214. LT: 'HH:mm',
  9215. LTS: 'HH:mm:ss',
  9216. L: 'DD-MM-YYYY',
  9217. LL: 'D MMMM YYYY',
  9218. LLL: 'D MMMM YYYY HH:mm',
  9219. LLLL: 'dddd D MMMM YYYY HH:mm',
  9220. },
  9221. calendar: {
  9222. sameDay: '[hjoed om] LT',
  9223. nextDay: '[moarn om] LT',
  9224. nextWeek: 'dddd [om] LT',
  9225. lastDay: '[juster om] LT',
  9226. lastWeek: '[ôfrûne] dddd [om] LT',
  9227. sameElse: 'L',
  9228. },
  9229. relativeTime: {
  9230. future: 'oer %s',
  9231. past: '%s lyn',
  9232. s: 'in pear sekonden',
  9233. ss: '%d sekonden',
  9234. m: 'ien minút',
  9235. mm: '%d minuten',
  9236. h: 'ien oere',
  9237. hh: '%d oeren',
  9238. d: 'ien dei',
  9239. dd: '%d dagen',
  9240. M: 'ien moanne',
  9241. MM: '%d moannen',
  9242. y: 'ien jier',
  9243. yy: '%d jierren',
  9244. },
  9245. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9246. ordinal: function (number) {
  9247. return (
  9248. number +
  9249. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  9250. );
  9251. },
  9252. week: {
  9253. dow: 1, // Monday is the first day of the week.
  9254. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9255. },
  9256. });
  9257. //! moment.js locale configuration
  9258. var months$6 = [
  9259. 'Eanáir',
  9260. 'Feabhra',
  9261. 'Márta',
  9262. 'Aibreán',
  9263. 'Bealtaine',
  9264. 'Meitheamh',
  9265. 'Iúil',
  9266. 'Lúnasa',
  9267. 'Meán Fómhair',
  9268. 'Deireadh Fómhair',
  9269. 'Samhain',
  9270. 'Nollaig',
  9271. ],
  9272. monthsShort$5 = [
  9273. 'Ean',
  9274. 'Feabh',
  9275. 'Márt',
  9276. 'Aib',
  9277. 'Beal',
  9278. 'Meith',
  9279. 'Iúil',
  9280. 'Lún',
  9281. 'M.F.',
  9282. 'D.F.',
  9283. 'Samh',
  9284. 'Noll',
  9285. ],
  9286. weekdays$1 = [
  9287. 'Dé Domhnaigh',
  9288. 'Dé Luain',
  9289. 'Dé Máirt',
  9290. 'Dé Céadaoin',
  9291. 'Déardaoin',
  9292. 'Dé hAoine',
  9293. 'Dé Sathairn',
  9294. ],
  9295. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  9296. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  9297. hooks.defineLocale('ga', {
  9298. months: months$6,
  9299. monthsShort: monthsShort$5,
  9300. monthsParseExact: true,
  9301. weekdays: weekdays$1,
  9302. weekdaysShort: weekdaysShort,
  9303. weekdaysMin: weekdaysMin,
  9304. longDateFormat: {
  9305. LT: 'HH:mm',
  9306. LTS: 'HH:mm:ss',
  9307. L: 'DD/MM/YYYY',
  9308. LL: 'D MMMM YYYY',
  9309. LLL: 'D MMMM YYYY HH:mm',
  9310. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9311. },
  9312. calendar: {
  9313. sameDay: '[Inniu ag] LT',
  9314. nextDay: '[Amárach ag] LT',
  9315. nextWeek: 'dddd [ag] LT',
  9316. lastDay: '[Inné ag] LT',
  9317. lastWeek: 'dddd [seo caite] [ag] LT',
  9318. sameElse: 'L',
  9319. },
  9320. relativeTime: {
  9321. future: 'i %s',
  9322. past: '%s ó shin',
  9323. s: 'cúpla soicind',
  9324. ss: '%d soicind',
  9325. m: 'nóiméad',
  9326. mm: '%d nóiméad',
  9327. h: 'uair an chloig',
  9328. hh: '%d uair an chloig',
  9329. d: 'lá',
  9330. dd: '%d lá',
  9331. M: 'mí',
  9332. MM: '%d míonna',
  9333. y: 'bliain',
  9334. yy: '%d bliain',
  9335. },
  9336. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9337. ordinal: function (number) {
  9338. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9339. return number + output;
  9340. },
  9341. week: {
  9342. dow: 1, // Monday is the first day of the week.
  9343. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9344. },
  9345. });
  9346. //! moment.js locale configuration
  9347. var months$7 = [
  9348. 'Am Faoilleach',
  9349. 'An Gearran',
  9350. 'Am Màrt',
  9351. 'An Giblean',
  9352. 'An Cèitean',
  9353. 'An t-Ògmhios',
  9354. 'An t-Iuchar',
  9355. 'An Lùnastal',
  9356. 'An t-Sultain',
  9357. 'An Dàmhair',
  9358. 'An t-Samhain',
  9359. 'An Dùbhlachd',
  9360. ],
  9361. monthsShort$6 = [
  9362. 'Faoi',
  9363. 'Gear',
  9364. 'Màrt',
  9365. 'Gibl',
  9366. 'Cèit',
  9367. 'Ògmh',
  9368. 'Iuch',
  9369. 'Lùn',
  9370. 'Sult',
  9371. 'Dàmh',
  9372. 'Samh',
  9373. 'Dùbh',
  9374. ],
  9375. weekdays$2 = [
  9376. 'Didòmhnaich',
  9377. 'Diluain',
  9378. 'Dimàirt',
  9379. 'Diciadain',
  9380. 'Diardaoin',
  9381. 'Dihaoine',
  9382. 'Disathairne',
  9383. ],
  9384. weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  9385. weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9386. hooks.defineLocale('gd', {
  9387. months: months$7,
  9388. monthsShort: monthsShort$6,
  9389. monthsParseExact: true,
  9390. weekdays: weekdays$2,
  9391. weekdaysShort: weekdaysShort$1,
  9392. weekdaysMin: weekdaysMin$1,
  9393. longDateFormat: {
  9394. LT: 'HH:mm',
  9395. LTS: 'HH:mm:ss',
  9396. L: 'DD/MM/YYYY',
  9397. LL: 'D MMMM YYYY',
  9398. LLL: 'D MMMM YYYY HH:mm',
  9399. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9400. },
  9401. calendar: {
  9402. sameDay: '[An-diugh aig] LT',
  9403. nextDay: '[A-màireach aig] LT',
  9404. nextWeek: 'dddd [aig] LT',
  9405. lastDay: '[An-dè aig] LT',
  9406. lastWeek: 'dddd [seo chaidh] [aig] LT',
  9407. sameElse: 'L',
  9408. },
  9409. relativeTime: {
  9410. future: 'ann an %s',
  9411. past: 'bho chionn %s',
  9412. s: 'beagan diogan',
  9413. ss: '%d diogan',
  9414. m: 'mionaid',
  9415. mm: '%d mionaidean',
  9416. h: 'uair',
  9417. hh: '%d uairean',
  9418. d: 'latha',
  9419. dd: '%d latha',
  9420. M: 'mìos',
  9421. MM: '%d mìosan',
  9422. y: 'bliadhna',
  9423. yy: '%d bliadhna',
  9424. },
  9425. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9426. ordinal: function (number) {
  9427. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9428. return number + output;
  9429. },
  9430. week: {
  9431. dow: 1, // Monday is the first day of the week.
  9432. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9433. },
  9434. });
  9435. //! moment.js locale configuration
  9436. hooks.defineLocale('gl', {
  9437. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  9438. '_'
  9439. ),
  9440. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  9441. '_'
  9442. ),
  9443. monthsParseExact: true,
  9444. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9445. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9446. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9447. weekdaysParseExact: true,
  9448. longDateFormat: {
  9449. LT: 'H:mm',
  9450. LTS: 'H:mm:ss',
  9451. L: 'DD/MM/YYYY',
  9452. LL: 'D [de] MMMM [de] YYYY',
  9453. LLL: 'D [de] MMMM [de] YYYY H:mm',
  9454. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  9455. },
  9456. calendar: {
  9457. sameDay: function () {
  9458. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9459. },
  9460. nextDay: function () {
  9461. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9462. },
  9463. nextWeek: function () {
  9464. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  9465. },
  9466. lastDay: function () {
  9467. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  9468. },
  9469. lastWeek: function () {
  9470. return (
  9471. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  9472. );
  9473. },
  9474. sameElse: 'L',
  9475. },
  9476. relativeTime: {
  9477. future: function (str) {
  9478. if (str.indexOf('un') === 0) {
  9479. return 'n' + str;
  9480. }
  9481. return 'en ' + str;
  9482. },
  9483. past: 'hai %s',
  9484. s: 'uns segundos',
  9485. ss: '%d segundos',
  9486. m: 'un minuto',
  9487. mm: '%d minutos',
  9488. h: 'unha hora',
  9489. hh: '%d horas',
  9490. d: 'un día',
  9491. dd: '%d días',
  9492. M: 'un mes',
  9493. MM: '%d meses',
  9494. y: 'un ano',
  9495. yy: '%d anos',
  9496. },
  9497. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9498. ordinal: '%dº',
  9499. week: {
  9500. dow: 1, // Monday is the first day of the week.
  9501. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9502. },
  9503. });
  9504. //! moment.js locale configuration
  9505. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  9506. var format = {
  9507. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  9508. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  9509. m: ['एका मिणटान', 'एक मिनूट'],
  9510. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  9511. h: ['एका वरान', 'एक वर'],
  9512. hh: [number + ' वरांनी', number + ' वरां'],
  9513. d: ['एका दिसान', 'एक दीस'],
  9514. dd: [number + ' दिसांनी', number + ' दीस'],
  9515. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  9516. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  9517. y: ['एका वर्सान', 'एक वर्स'],
  9518. yy: [number + ' वर्सांनी', number + ' वर्सां'],
  9519. };
  9520. return isFuture ? format[key][0] : format[key][1];
  9521. }
  9522. hooks.defineLocale('gom-deva', {
  9523. months: {
  9524. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  9525. '_'
  9526. ),
  9527. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  9528. '_'
  9529. ),
  9530. isFormat: /MMMM(\s)+D[oD]?/,
  9531. },
  9532. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  9533. '_'
  9534. ),
  9535. monthsParseExact: true,
  9536. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  9537. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  9538. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  9539. weekdaysParseExact: true,
  9540. longDateFormat: {
  9541. LT: 'A h:mm [वाजतां]',
  9542. LTS: 'A h:mm:ss [वाजतां]',
  9543. L: 'DD-MM-YYYY',
  9544. LL: 'D MMMM YYYY',
  9545. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  9546. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  9547. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
  9548. },
  9549. calendar: {
  9550. sameDay: '[आयज] LT',
  9551. nextDay: '[फाल्यां] LT',
  9552. nextWeek: '[फुडलो] dddd[,] LT',
  9553. lastDay: '[काल] LT',
  9554. lastWeek: '[फाटलो] dddd[,] LT',
  9555. sameElse: 'L',
  9556. },
  9557. relativeTime: {
  9558. future: '%s',
  9559. past: '%s आदीं',
  9560. s: processRelativeTime$4,
  9561. ss: processRelativeTime$4,
  9562. m: processRelativeTime$4,
  9563. mm: processRelativeTime$4,
  9564. h: processRelativeTime$4,
  9565. hh: processRelativeTime$4,
  9566. d: processRelativeTime$4,
  9567. dd: processRelativeTime$4,
  9568. M: processRelativeTime$4,
  9569. MM: processRelativeTime$4,
  9570. y: processRelativeTime$4,
  9571. yy: processRelativeTime$4,
  9572. },
  9573. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  9574. ordinal: function (number, period) {
  9575. switch (period) {
  9576. // the ordinal 'वेर' only applies to day of the month
  9577. case 'D':
  9578. return number + 'वेर';
  9579. default:
  9580. case 'M':
  9581. case 'Q':
  9582. case 'DDD':
  9583. case 'd':
  9584. case 'w':
  9585. case 'W':
  9586. return number;
  9587. }
  9588. },
  9589. week: {
  9590. dow: 0, // Sunday is the first day of the week
  9591. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9592. },
  9593. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  9594. meridiemHour: function (hour, meridiem) {
  9595. if (hour === 12) {
  9596. hour = 0;
  9597. }
  9598. if (meridiem === 'राती') {
  9599. return hour < 4 ? hour : hour + 12;
  9600. } else if (meridiem === 'सकाळीं') {
  9601. return hour;
  9602. } else if (meridiem === 'दनपारां') {
  9603. return hour > 12 ? hour : hour + 12;
  9604. } else if (meridiem === 'सांजे') {
  9605. return hour + 12;
  9606. }
  9607. },
  9608. meridiem: function (hour, minute, isLower) {
  9609. if (hour < 4) {
  9610. return 'राती';
  9611. } else if (hour < 12) {
  9612. return 'सकाळीं';
  9613. } else if (hour < 16) {
  9614. return 'दनपारां';
  9615. } else if (hour < 20) {
  9616. return 'सांजे';
  9617. } else {
  9618. return 'राती';
  9619. }
  9620. },
  9621. });
  9622. //! moment.js locale configuration
  9623. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9624. var format = {
  9625. s: ['thoddea sekondamni', 'thodde sekond'],
  9626. ss: [number + ' sekondamni', number + ' sekond'],
  9627. m: ['eka mintan', 'ek minut'],
  9628. mm: [number + ' mintamni', number + ' mintam'],
  9629. h: ['eka voran', 'ek vor'],
  9630. hh: [number + ' voramni', number + ' voram'],
  9631. d: ['eka disan', 'ek dis'],
  9632. dd: [number + ' disamni', number + ' dis'],
  9633. M: ['eka mhoinean', 'ek mhoino'],
  9634. MM: [number + ' mhoineamni', number + ' mhoine'],
  9635. y: ['eka vorsan', 'ek voros'],
  9636. yy: [number + ' vorsamni', number + ' vorsam'],
  9637. };
  9638. return isFuture ? format[key][0] : format[key][1];
  9639. }
  9640. hooks.defineLocale('gom-latn', {
  9641. months: {
  9642. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  9643. '_'
  9644. ),
  9645. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  9646. '_'
  9647. ),
  9648. isFormat: /MMMM(\s)+D[oD]?/,
  9649. },
  9650. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
  9651. '_'
  9652. ),
  9653. monthsParseExact: true,
  9654. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  9655. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9656. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9657. weekdaysParseExact: true,
  9658. longDateFormat: {
  9659. LT: 'A h:mm [vazta]',
  9660. LTS: 'A h:mm:ss [vazta]',
  9661. L: 'DD-MM-YYYY',
  9662. LL: 'D MMMM YYYY',
  9663. LLL: 'D MMMM YYYY A h:mm [vazta]',
  9664. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  9665. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  9666. },
  9667. calendar: {
  9668. sameDay: '[Aiz] LT',
  9669. nextDay: '[Faleam] LT',
  9670. nextWeek: '[Fuddlo] dddd[,] LT',
  9671. lastDay: '[Kal] LT',
  9672. lastWeek: '[Fattlo] dddd[,] LT',
  9673. sameElse: 'L',
  9674. },
  9675. relativeTime: {
  9676. future: '%s',
  9677. past: '%s adim',
  9678. s: processRelativeTime$5,
  9679. ss: processRelativeTime$5,
  9680. m: processRelativeTime$5,
  9681. mm: processRelativeTime$5,
  9682. h: processRelativeTime$5,
  9683. hh: processRelativeTime$5,
  9684. d: processRelativeTime$5,
  9685. dd: processRelativeTime$5,
  9686. M: processRelativeTime$5,
  9687. MM: processRelativeTime$5,
  9688. y: processRelativeTime$5,
  9689. yy: processRelativeTime$5,
  9690. },
  9691. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  9692. ordinal: function (number, period) {
  9693. switch (period) {
  9694. // the ordinal 'er' only applies to day of the month
  9695. case 'D':
  9696. return number + 'er';
  9697. default:
  9698. case 'M':
  9699. case 'Q':
  9700. case 'DDD':
  9701. case 'd':
  9702. case 'w':
  9703. case 'W':
  9704. return number;
  9705. }
  9706. },
  9707. week: {
  9708. dow: 0, // Sunday is the first day of the week
  9709. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9710. },
  9711. meridiemParse: /rati|sokallim|donparam|sanje/,
  9712. meridiemHour: function (hour, meridiem) {
  9713. if (hour === 12) {
  9714. hour = 0;
  9715. }
  9716. if (meridiem === 'rati') {
  9717. return hour < 4 ? hour : hour + 12;
  9718. } else if (meridiem === 'sokallim') {
  9719. return hour;
  9720. } else if (meridiem === 'donparam') {
  9721. return hour > 12 ? hour : hour + 12;
  9722. } else if (meridiem === 'sanje') {
  9723. return hour + 12;
  9724. }
  9725. },
  9726. meridiem: function (hour, minute, isLower) {
  9727. if (hour < 4) {
  9728. return 'rati';
  9729. } else if (hour < 12) {
  9730. return 'sokallim';
  9731. } else if (hour < 16) {
  9732. return 'donparam';
  9733. } else if (hour < 20) {
  9734. return 'sanje';
  9735. } else {
  9736. return 'rati';
  9737. }
  9738. },
  9739. });
  9740. //! moment.js locale configuration
  9741. var symbolMap$7 = {
  9742. 1: '૧',
  9743. 2: '૨',
  9744. 3: '૩',
  9745. 4: '૪',
  9746. 5: '૫',
  9747. 6: '૬',
  9748. 7: '૭',
  9749. 8: '૮',
  9750. 9: '૯',
  9751. 0: '૦',
  9752. },
  9753. numberMap$6 = {
  9754. '૧': '1',
  9755. '૨': '2',
  9756. '૩': '3',
  9757. '૪': '4',
  9758. '૫': '5',
  9759. '૬': '6',
  9760. '૭': '7',
  9761. '૮': '8',
  9762. '૯': '9',
  9763. '૦': '0',
  9764. };
  9765. hooks.defineLocale('gu', {
  9766. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  9767. '_'
  9768. ),
  9769. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  9770. '_'
  9771. ),
  9772. monthsParseExact: true,
  9773. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  9774. '_'
  9775. ),
  9776. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  9777. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  9778. longDateFormat: {
  9779. LT: 'A h:mm વાગ્યે',
  9780. LTS: 'A h:mm:ss વાગ્યે',
  9781. L: 'DD/MM/YYYY',
  9782. LL: 'D MMMM YYYY',
  9783. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  9784. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
  9785. },
  9786. calendar: {
  9787. sameDay: '[આજ] LT',
  9788. nextDay: '[કાલે] LT',
  9789. nextWeek: 'dddd, LT',
  9790. lastDay: '[ગઇકાલે] LT',
  9791. lastWeek: '[પાછલા] dddd, LT',
  9792. sameElse: 'L',
  9793. },
  9794. relativeTime: {
  9795. future: '%s મા',
  9796. past: '%s પહેલા',
  9797. s: 'અમુક પળો',
  9798. ss: '%d સેકંડ',
  9799. m: 'એક મિનિટ',
  9800. mm: '%d મિનિટ',
  9801. h: 'એક કલાક',
  9802. hh: '%d કલાક',
  9803. d: 'એક દિવસ',
  9804. dd: '%d દિવસ',
  9805. M: 'એક મહિનો',
  9806. MM: '%d મહિનો',
  9807. y: 'એક વર્ષ',
  9808. yy: '%d વર્ષ',
  9809. },
  9810. preparse: function (string) {
  9811. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  9812. return numberMap$6[match];
  9813. });
  9814. },
  9815. postformat: function (string) {
  9816. return string.replace(/\d/g, function (match) {
  9817. return symbolMap$7[match];
  9818. });
  9819. },
  9820. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  9821. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  9822. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  9823. meridiemHour: function (hour, meridiem) {
  9824. if (hour === 12) {
  9825. hour = 0;
  9826. }
  9827. if (meridiem === 'રાત') {
  9828. return hour < 4 ? hour : hour + 12;
  9829. } else if (meridiem === 'સવાર') {
  9830. return hour;
  9831. } else if (meridiem === 'બપોર') {
  9832. return hour >= 10 ? hour : hour + 12;
  9833. } else if (meridiem === 'સાંજ') {
  9834. return hour + 12;
  9835. }
  9836. },
  9837. meridiem: function (hour, minute, isLower) {
  9838. if (hour < 4) {
  9839. return 'રાત';
  9840. } else if (hour < 10) {
  9841. return 'સવાર';
  9842. } else if (hour < 17) {
  9843. return 'બપોર';
  9844. } else if (hour < 20) {
  9845. return 'સાંજ';
  9846. } else {
  9847. return 'રાત';
  9848. }
  9849. },
  9850. week: {
  9851. dow: 0, // Sunday is the first day of the week.
  9852. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9853. },
  9854. });
  9855. //! moment.js locale configuration
  9856. hooks.defineLocale('he', {
  9857. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  9858. '_'
  9859. ),
  9860. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
  9861. '_'
  9862. ),
  9863. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  9864. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  9865. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  9866. longDateFormat: {
  9867. LT: 'HH:mm',
  9868. LTS: 'HH:mm:ss',
  9869. L: 'DD/MM/YYYY',
  9870. LL: 'D [ב]MMMM YYYY',
  9871. LLL: 'D [ב]MMMM YYYY HH:mm',
  9872. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  9873. l: 'D/M/YYYY',
  9874. ll: 'D MMM YYYY',
  9875. lll: 'D MMM YYYY HH:mm',
  9876. llll: 'ddd, D MMM YYYY HH:mm',
  9877. },
  9878. calendar: {
  9879. sameDay: '[היום ב־]LT',
  9880. nextDay: '[מחר ב־]LT',
  9881. nextWeek: 'dddd [בשעה] LT',
  9882. lastDay: '[אתמול ב־]LT',
  9883. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  9884. sameElse: 'L',
  9885. },
  9886. relativeTime: {
  9887. future: 'בעוד %s',
  9888. past: 'לפני %s',
  9889. s: 'מספר שניות',
  9890. ss: '%d שניות',
  9891. m: 'דקה',
  9892. mm: '%d דקות',
  9893. h: 'שעה',
  9894. hh: function (number) {
  9895. if (number === 2) {
  9896. return 'שעתיים';
  9897. }
  9898. return number + ' שעות';
  9899. },
  9900. d: 'יום',
  9901. dd: function (number) {
  9902. if (number === 2) {
  9903. return 'יומיים';
  9904. }
  9905. return number + ' ימים';
  9906. },
  9907. M: 'חודש',
  9908. MM: function (number) {
  9909. if (number === 2) {
  9910. return 'חודשיים';
  9911. }
  9912. return number + ' חודשים';
  9913. },
  9914. y: 'שנה',
  9915. yy: function (number) {
  9916. if (number === 2) {
  9917. return 'שנתיים';
  9918. } else if (number % 10 === 0 && number !== 10) {
  9919. return number + ' שנה';
  9920. }
  9921. return number + ' שנים';
  9922. },
  9923. },
  9924. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  9925. isPM: function (input) {
  9926. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  9927. },
  9928. meridiem: function (hour, minute, isLower) {
  9929. if (hour < 5) {
  9930. return 'לפנות בוקר';
  9931. } else if (hour < 10) {
  9932. return 'בבוקר';
  9933. } else if (hour < 12) {
  9934. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  9935. } else if (hour < 18) {
  9936. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  9937. } else {
  9938. return 'בערב';
  9939. }
  9940. },
  9941. });
  9942. //! moment.js locale configuration
  9943. var symbolMap$8 = {
  9944. 1: '१',
  9945. 2: '२',
  9946. 3: '३',
  9947. 4: '४',
  9948. 5: '५',
  9949. 6: '६',
  9950. 7: '७',
  9951. 8: '८',
  9952. 9: '९',
  9953. 0: '०',
  9954. },
  9955. numberMap$7 = {
  9956. '१': '1',
  9957. '२': '2',
  9958. '३': '3',
  9959. '४': '4',
  9960. '५': '5',
  9961. '६': '6',
  9962. '७': '7',
  9963. '८': '8',
  9964. '९': '9',
  9965. '०': '0',
  9966. },
  9967. monthsParse$7 = [
  9968. /^जन/i,
  9969. /^फ़र|फर/i,
  9970. /^मार्च/i,
  9971. /^अप्रै/i,
  9972. /^मई/i,
  9973. /^जून/i,
  9974. /^जुल/i,
  9975. /^अग/i,
  9976. /^सितं|सित/i,
  9977. /^अक्टू/i,
  9978. /^नव|नवं/i,
  9979. /^दिसं|दिस/i,
  9980. ],
  9981. shortMonthsParse = [
  9982. /^जन/i,
  9983. /^फ़र/i,
  9984. /^मार्च/i,
  9985. /^अप्रै/i,
  9986. /^मई/i,
  9987. /^जून/i,
  9988. /^जुल/i,
  9989. /^अग/i,
  9990. /^सित/i,
  9991. /^अक्टू/i,
  9992. /^नव/i,
  9993. /^दिस/i,
  9994. ];
  9995. hooks.defineLocale('hi', {
  9996. months: {
  9997. format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  9998. '_'
  9999. ),
  10000. standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
  10001. '_'
  10002. ),
  10003. },
  10004. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
  10005. '_'
  10006. ),
  10007. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  10008. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  10009. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  10010. longDateFormat: {
  10011. LT: 'A h:mm बजे',
  10012. LTS: 'A h:mm:ss बजे',
  10013. L: 'DD/MM/YYYY',
  10014. LL: 'D MMMM YYYY',
  10015. LLL: 'D MMMM YYYY, A h:mm बजे',
  10016. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
  10017. },
  10018. monthsParse: monthsParse$7,
  10019. longMonthsParse: monthsParse$7,
  10020. shortMonthsParse: shortMonthsParse,
  10021. monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  10022. monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  10023. monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  10024. monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  10025. calendar: {
  10026. sameDay: '[आज] LT',
  10027. nextDay: '[कल] LT',
  10028. nextWeek: 'dddd, LT',
  10029. lastDay: '[कल] LT',
  10030. lastWeek: '[पिछले] dddd, LT',
  10031. sameElse: 'L',
  10032. },
  10033. relativeTime: {
  10034. future: '%s में',
  10035. past: '%s पहले',
  10036. s: 'कुछ ही क्षण',
  10037. ss: '%d सेकंड',
  10038. m: 'एक मिनट',
  10039. mm: '%d मिनट',
  10040. h: 'एक घंटा',
  10041. hh: '%d घंटे',
  10042. d: 'एक दिन',
  10043. dd: '%d दिन',
  10044. M: 'एक महीने',
  10045. MM: '%d महीने',
  10046. y: 'एक वर्ष',
  10047. yy: '%d वर्ष',
  10048. },
  10049. preparse: function (string) {
  10050. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  10051. return numberMap$7[match];
  10052. });
  10053. },
  10054. postformat: function (string) {
  10055. return string.replace(/\d/g, function (match) {
  10056. return symbolMap$8[match];
  10057. });
  10058. },
  10059. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  10060. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  10061. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  10062. meridiemHour: function (hour, meridiem) {
  10063. if (hour === 12) {
  10064. hour = 0;
  10065. }
  10066. if (meridiem === 'रात') {
  10067. return hour < 4 ? hour : hour + 12;
  10068. } else if (meridiem === 'सुबह') {
  10069. return hour;
  10070. } else if (meridiem === 'दोपहर') {
  10071. return hour >= 10 ? hour : hour + 12;
  10072. } else if (meridiem === 'शाम') {
  10073. return hour + 12;
  10074. }
  10075. },
  10076. meridiem: function (hour, minute, isLower) {
  10077. if (hour < 4) {
  10078. return 'रात';
  10079. } else if (hour < 10) {
  10080. return 'सुबह';
  10081. } else if (hour < 17) {
  10082. return 'दोपहर';
  10083. } else if (hour < 20) {
  10084. return 'शाम';
  10085. } else {
  10086. return 'रात';
  10087. }
  10088. },
  10089. week: {
  10090. dow: 0, // Sunday is the first day of the week.
  10091. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10092. },
  10093. });
  10094. //! moment.js locale configuration
  10095. function translate$3(number, withoutSuffix, key) {
  10096. var result = number + ' ';
  10097. switch (key) {
  10098. case 'ss':
  10099. if (number === 1) {
  10100. result += 'sekunda';
  10101. } else if (number === 2 || number === 3 || number === 4) {
  10102. result += 'sekunde';
  10103. } else {
  10104. result += 'sekundi';
  10105. }
  10106. return result;
  10107. case 'm':
  10108. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  10109. case 'mm':
  10110. if (number === 1) {
  10111. result += 'minuta';
  10112. } else if (number === 2 || number === 3 || number === 4) {
  10113. result += 'minute';
  10114. } else {
  10115. result += 'minuta';
  10116. }
  10117. return result;
  10118. case 'h':
  10119. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  10120. case 'hh':
  10121. if (number === 1) {
  10122. result += 'sat';
  10123. } else if (number === 2 || number === 3 || number === 4) {
  10124. result += 'sata';
  10125. } else {
  10126. result += 'sati';
  10127. }
  10128. return result;
  10129. case 'dd':
  10130. if (number === 1) {
  10131. result += 'dan';
  10132. } else {
  10133. result += 'dana';
  10134. }
  10135. return result;
  10136. case 'MM':
  10137. if (number === 1) {
  10138. result += 'mjesec';
  10139. } else if (number === 2 || number === 3 || number === 4) {
  10140. result += 'mjeseca';
  10141. } else {
  10142. result += 'mjeseci';
  10143. }
  10144. return result;
  10145. case 'yy':
  10146. if (number === 1) {
  10147. result += 'godina';
  10148. } else if (number === 2 || number === 3 || number === 4) {
  10149. result += 'godine';
  10150. } else {
  10151. result += 'godina';
  10152. }
  10153. return result;
  10154. }
  10155. }
  10156. hooks.defineLocale('hr', {
  10157. months: {
  10158. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  10159. '_'
  10160. ),
  10161. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  10162. '_'
  10163. ),
  10164. },
  10165. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  10166. '_'
  10167. ),
  10168. monthsParseExact: true,
  10169. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  10170. '_'
  10171. ),
  10172. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  10173. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  10174. weekdaysParseExact: true,
  10175. longDateFormat: {
  10176. LT: 'H:mm',
  10177. LTS: 'H:mm:ss',
  10178. L: 'DD.MM.YYYY',
  10179. LL: 'Do MMMM YYYY',
  10180. LLL: 'Do MMMM YYYY H:mm',
  10181. LLLL: 'dddd, Do MMMM YYYY H:mm',
  10182. },
  10183. calendar: {
  10184. sameDay: '[danas u] LT',
  10185. nextDay: '[sutra u] LT',
  10186. nextWeek: function () {
  10187. switch (this.day()) {
  10188. case 0:
  10189. return '[u] [nedjelju] [u] LT';
  10190. case 3:
  10191. return '[u] [srijedu] [u] LT';
  10192. case 6:
  10193. return '[u] [subotu] [u] LT';
  10194. case 1:
  10195. case 2:
  10196. case 4:
  10197. case 5:
  10198. return '[u] dddd [u] LT';
  10199. }
  10200. },
  10201. lastDay: '[jučer u] LT',
  10202. lastWeek: function () {
  10203. switch (this.day()) {
  10204. case 0:
  10205. return '[prošlu] [nedjelju] [u] LT';
  10206. case 3:
  10207. return '[prošlu] [srijedu] [u] LT';
  10208. case 6:
  10209. return '[prošle] [subote] [u] LT';
  10210. case 1:
  10211. case 2:
  10212. case 4:
  10213. case 5:
  10214. return '[prošli] dddd [u] LT';
  10215. }
  10216. },
  10217. sameElse: 'L',
  10218. },
  10219. relativeTime: {
  10220. future: 'za %s',
  10221. past: 'prije %s',
  10222. s: 'par sekundi',
  10223. ss: translate$3,
  10224. m: translate$3,
  10225. mm: translate$3,
  10226. h: translate$3,
  10227. hh: translate$3,
  10228. d: 'dan',
  10229. dd: translate$3,
  10230. M: 'mjesec',
  10231. MM: translate$3,
  10232. y: 'godinu',
  10233. yy: translate$3,
  10234. },
  10235. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10236. ordinal: '%d.',
  10237. week: {
  10238. dow: 1, // Monday is the first day of the week.
  10239. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10240. },
  10241. });
  10242. //! moment.js locale configuration
  10243. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
  10244. ' '
  10245. );
  10246. function translate$4(number, withoutSuffix, key, isFuture) {
  10247. var num = number;
  10248. switch (key) {
  10249. case 's':
  10250. return isFuture || withoutSuffix
  10251. ? 'néhány másodperc'
  10252. : 'néhány másodperce';
  10253. case 'ss':
  10254. return num + (isFuture || withoutSuffix)
  10255. ? ' másodperc'
  10256. : ' másodperce';
  10257. case 'm':
  10258. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10259. case 'mm':
  10260. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10261. case 'h':
  10262. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10263. case 'hh':
  10264. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10265. case 'd':
  10266. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10267. case 'dd':
  10268. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10269. case 'M':
  10270. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10271. case 'MM':
  10272. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10273. case 'y':
  10274. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10275. case 'yy':
  10276. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10277. }
  10278. return '';
  10279. }
  10280. function week(isFuture) {
  10281. return (
  10282. (isFuture ? '' : '[múlt] ') +
  10283. '[' +
  10284. weekEndings[this.day()] +
  10285. '] LT[-kor]'
  10286. );
  10287. }
  10288. hooks.defineLocale('hu', {
  10289. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  10290. '_'
  10291. ),
  10292. monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
  10293. '_'
  10294. ),
  10295. monthsParseExact: true,
  10296. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10297. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10298. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  10299. longDateFormat: {
  10300. LT: 'H:mm',
  10301. LTS: 'H:mm:ss',
  10302. L: 'YYYY.MM.DD.',
  10303. LL: 'YYYY. MMMM D.',
  10304. LLL: 'YYYY. MMMM D. H:mm',
  10305. LLLL: 'YYYY. MMMM D., dddd H:mm',
  10306. },
  10307. meridiemParse: /de|du/i,
  10308. isPM: function (input) {
  10309. return input.charAt(1).toLowerCase() === 'u';
  10310. },
  10311. meridiem: function (hours, minutes, isLower) {
  10312. if (hours < 12) {
  10313. return isLower === true ? 'de' : 'DE';
  10314. } else {
  10315. return isLower === true ? 'du' : 'DU';
  10316. }
  10317. },
  10318. calendar: {
  10319. sameDay: '[ma] LT[-kor]',
  10320. nextDay: '[holnap] LT[-kor]',
  10321. nextWeek: function () {
  10322. return week.call(this, true);
  10323. },
  10324. lastDay: '[tegnap] LT[-kor]',
  10325. lastWeek: function () {
  10326. return week.call(this, false);
  10327. },
  10328. sameElse: 'L',
  10329. },
  10330. relativeTime: {
  10331. future: '%s múlva',
  10332. past: '%s',
  10333. s: translate$4,
  10334. ss: translate$4,
  10335. m: translate$4,
  10336. mm: translate$4,
  10337. h: translate$4,
  10338. hh: translate$4,
  10339. d: translate$4,
  10340. dd: translate$4,
  10341. M: translate$4,
  10342. MM: translate$4,
  10343. y: translate$4,
  10344. yy: translate$4,
  10345. },
  10346. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10347. ordinal: '%d.',
  10348. week: {
  10349. dow: 1, // Monday is the first day of the week.
  10350. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10351. },
  10352. });
  10353. //! moment.js locale configuration
  10354. hooks.defineLocale('hy-am', {
  10355. months: {
  10356. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  10357. '_'
  10358. ),
  10359. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  10360. '_'
  10361. ),
  10362. },
  10363. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10364. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  10365. '_'
  10366. ),
  10367. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10368. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10369. longDateFormat: {
  10370. LT: 'HH:mm',
  10371. LTS: 'HH:mm:ss',
  10372. L: 'DD.MM.YYYY',
  10373. LL: 'D MMMM YYYY թ.',
  10374. LLL: 'D MMMM YYYY թ., HH:mm',
  10375. LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
  10376. },
  10377. calendar: {
  10378. sameDay: '[այսօր] LT',
  10379. nextDay: '[վաղը] LT',
  10380. lastDay: '[երեկ] LT',
  10381. nextWeek: function () {
  10382. return 'dddd [օրը ժամը] LT';
  10383. },
  10384. lastWeek: function () {
  10385. return '[անցած] dddd [օրը ժամը] LT';
  10386. },
  10387. sameElse: 'L',
  10388. },
  10389. relativeTime: {
  10390. future: '%s հետո',
  10391. past: '%s առաջ',
  10392. s: 'մի քանի վայրկյան',
  10393. ss: '%d վայրկյան',
  10394. m: 'րոպե',
  10395. mm: '%d րոպե',
  10396. h: 'ժամ',
  10397. hh: '%d ժամ',
  10398. d: 'օր',
  10399. dd: '%d օր',
  10400. M: 'ամիս',
  10401. MM: '%d ամիս',
  10402. y: 'տարի',
  10403. yy: '%d տարի',
  10404. },
  10405. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10406. isPM: function (input) {
  10407. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10408. },
  10409. meridiem: function (hour) {
  10410. if (hour < 4) {
  10411. return 'գիշերվա';
  10412. } else if (hour < 12) {
  10413. return 'առավոտվա';
  10414. } else if (hour < 17) {
  10415. return 'ցերեկվա';
  10416. } else {
  10417. return 'երեկոյան';
  10418. }
  10419. },
  10420. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10421. ordinal: function (number, period) {
  10422. switch (period) {
  10423. case 'DDD':
  10424. case 'w':
  10425. case 'W':
  10426. case 'DDDo':
  10427. if (number === 1) {
  10428. return number + '-ին';
  10429. }
  10430. return number + '-րդ';
  10431. default:
  10432. return number;
  10433. }
  10434. },
  10435. week: {
  10436. dow: 1, // Monday is the first day of the week.
  10437. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10438. },
  10439. });
  10440. //! moment.js locale configuration
  10441. hooks.defineLocale('id', {
  10442. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  10443. '_'
  10444. ),
  10445. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  10446. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10447. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10448. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10449. longDateFormat: {
  10450. LT: 'HH.mm',
  10451. LTS: 'HH.mm.ss',
  10452. L: 'DD/MM/YYYY',
  10453. LL: 'D MMMM YYYY',
  10454. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10455. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10456. },
  10457. meridiemParse: /pagi|siang|sore|malam/,
  10458. meridiemHour: function (hour, meridiem) {
  10459. if (hour === 12) {
  10460. hour = 0;
  10461. }
  10462. if (meridiem === 'pagi') {
  10463. return hour;
  10464. } else if (meridiem === 'siang') {
  10465. return hour >= 11 ? hour : hour + 12;
  10466. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10467. return hour + 12;
  10468. }
  10469. },
  10470. meridiem: function (hours, minutes, isLower) {
  10471. if (hours < 11) {
  10472. return 'pagi';
  10473. } else if (hours < 15) {
  10474. return 'siang';
  10475. } else if (hours < 19) {
  10476. return 'sore';
  10477. } else {
  10478. return 'malam';
  10479. }
  10480. },
  10481. calendar: {
  10482. sameDay: '[Hari ini pukul] LT',
  10483. nextDay: '[Besok pukul] LT',
  10484. nextWeek: 'dddd [pukul] LT',
  10485. lastDay: '[Kemarin pukul] LT',
  10486. lastWeek: 'dddd [lalu pukul] LT',
  10487. sameElse: 'L',
  10488. },
  10489. relativeTime: {
  10490. future: 'dalam %s',
  10491. past: '%s yang lalu',
  10492. s: 'beberapa detik',
  10493. ss: '%d detik',
  10494. m: 'semenit',
  10495. mm: '%d menit',
  10496. h: 'sejam',
  10497. hh: '%d jam',
  10498. d: 'sehari',
  10499. dd: '%d hari',
  10500. M: 'sebulan',
  10501. MM: '%d bulan',
  10502. y: 'setahun',
  10503. yy: '%d tahun',
  10504. },
  10505. week: {
  10506. dow: 0, // Sunday is the first day of the week.
  10507. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10508. },
  10509. });
  10510. //! moment.js locale configuration
  10511. function plural$2(n) {
  10512. if (n % 100 === 11) {
  10513. return true;
  10514. } else if (n % 10 === 1) {
  10515. return false;
  10516. }
  10517. return true;
  10518. }
  10519. function translate$5(number, withoutSuffix, key, isFuture) {
  10520. var result = number + ' ';
  10521. switch (key) {
  10522. case 's':
  10523. return withoutSuffix || isFuture
  10524. ? 'nokkrar sekúndur'
  10525. : 'nokkrum sekúndum';
  10526. case 'ss':
  10527. if (plural$2(number)) {
  10528. return (
  10529. result +
  10530. (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
  10531. );
  10532. }
  10533. return result + 'sekúnda';
  10534. case 'm':
  10535. return withoutSuffix ? 'mínúta' : 'mínútu';
  10536. case 'mm':
  10537. if (plural$2(number)) {
  10538. return (
  10539. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
  10540. );
  10541. } else if (withoutSuffix) {
  10542. return result + 'mínúta';
  10543. }
  10544. return result + 'mínútu';
  10545. case 'hh':
  10546. if (plural$2(number)) {
  10547. return (
  10548. result +
  10549. (withoutSuffix || isFuture
  10550. ? 'klukkustundir'
  10551. : 'klukkustundum')
  10552. );
  10553. }
  10554. return result + 'klukkustund';
  10555. case 'd':
  10556. if (withoutSuffix) {
  10557. return 'dagur';
  10558. }
  10559. return isFuture ? 'dag' : 'degi';
  10560. case 'dd':
  10561. if (plural$2(number)) {
  10562. if (withoutSuffix) {
  10563. return result + 'dagar';
  10564. }
  10565. return result + (isFuture ? 'daga' : 'dögum');
  10566. } else if (withoutSuffix) {
  10567. return result + 'dagur';
  10568. }
  10569. return result + (isFuture ? 'dag' : 'degi');
  10570. case 'M':
  10571. if (withoutSuffix) {
  10572. return 'mánuður';
  10573. }
  10574. return isFuture ? 'mánuð' : 'mánuði';
  10575. case 'MM':
  10576. if (plural$2(number)) {
  10577. if (withoutSuffix) {
  10578. return result + 'mánuðir';
  10579. }
  10580. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10581. } else if (withoutSuffix) {
  10582. return result + 'mánuður';
  10583. }
  10584. return result + (isFuture ? 'mánuð' : 'mánuði');
  10585. case 'y':
  10586. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10587. case 'yy':
  10588. if (plural$2(number)) {
  10589. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10590. }
  10591. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10592. }
  10593. }
  10594. hooks.defineLocale('is', {
  10595. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  10596. '_'
  10597. ),
  10598. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10599. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  10600. '_'
  10601. ),
  10602. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10603. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10604. longDateFormat: {
  10605. LT: 'H:mm',
  10606. LTS: 'H:mm:ss',
  10607. L: 'DD.MM.YYYY',
  10608. LL: 'D. MMMM YYYY',
  10609. LLL: 'D. MMMM YYYY [kl.] H:mm',
  10610. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
  10611. },
  10612. calendar: {
  10613. sameDay: '[í dag kl.] LT',
  10614. nextDay: '[á morgun kl.] LT',
  10615. nextWeek: 'dddd [kl.] LT',
  10616. lastDay: '[í gær kl.] LT',
  10617. lastWeek: '[síðasta] dddd [kl.] LT',
  10618. sameElse: 'L',
  10619. },
  10620. relativeTime: {
  10621. future: 'eftir %s',
  10622. past: 'fyrir %s síðan',
  10623. s: translate$5,
  10624. ss: translate$5,
  10625. m: translate$5,
  10626. mm: translate$5,
  10627. h: 'klukkustund',
  10628. hh: translate$5,
  10629. d: translate$5,
  10630. dd: translate$5,
  10631. M: translate$5,
  10632. MM: translate$5,
  10633. y: translate$5,
  10634. yy: translate$5,
  10635. },
  10636. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10637. ordinal: '%d.',
  10638. week: {
  10639. dow: 1, // Monday is the first day of the week.
  10640. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10641. },
  10642. });
  10643. //! moment.js locale configuration
  10644. hooks.defineLocale('it-ch', {
  10645. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10646. '_'
  10647. ),
  10648. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10649. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10650. '_'
  10651. ),
  10652. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10653. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10654. longDateFormat: {
  10655. LT: 'HH:mm',
  10656. LTS: 'HH:mm:ss',
  10657. L: 'DD.MM.YYYY',
  10658. LL: 'D MMMM YYYY',
  10659. LLL: 'D MMMM YYYY HH:mm',
  10660. LLLL: 'dddd D MMMM YYYY HH:mm',
  10661. },
  10662. calendar: {
  10663. sameDay: '[Oggi alle] LT',
  10664. nextDay: '[Domani alle] LT',
  10665. nextWeek: 'dddd [alle] LT',
  10666. lastDay: '[Ieri alle] LT',
  10667. lastWeek: function () {
  10668. switch (this.day()) {
  10669. case 0:
  10670. return '[la scorsa] dddd [alle] LT';
  10671. default:
  10672. return '[lo scorso] dddd [alle] LT';
  10673. }
  10674. },
  10675. sameElse: 'L',
  10676. },
  10677. relativeTime: {
  10678. future: function (s) {
  10679. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10680. },
  10681. past: '%s fa',
  10682. s: 'alcuni secondi',
  10683. ss: '%d secondi',
  10684. m: 'un minuto',
  10685. mm: '%d minuti',
  10686. h: "un'ora",
  10687. hh: '%d ore',
  10688. d: 'un giorno',
  10689. dd: '%d giorni',
  10690. M: 'un mese',
  10691. MM: '%d mesi',
  10692. y: 'un anno',
  10693. yy: '%d anni',
  10694. },
  10695. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10696. ordinal: '%dº',
  10697. week: {
  10698. dow: 1, // Monday is the first day of the week.
  10699. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10700. },
  10701. });
  10702. //! moment.js locale configuration
  10703. hooks.defineLocale('it', {
  10704. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10705. '_'
  10706. ),
  10707. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10708. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10709. '_'
  10710. ),
  10711. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10712. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10713. longDateFormat: {
  10714. LT: 'HH:mm',
  10715. LTS: 'HH:mm:ss',
  10716. L: 'DD/MM/YYYY',
  10717. LL: 'D MMMM YYYY',
  10718. LLL: 'D MMMM YYYY HH:mm',
  10719. LLLL: 'dddd D MMMM YYYY HH:mm',
  10720. },
  10721. calendar: {
  10722. sameDay: function () {
  10723. return (
  10724. '[Oggi a' +
  10725. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10726. ']LT'
  10727. );
  10728. },
  10729. nextDay: function () {
  10730. return (
  10731. '[Domani a' +
  10732. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10733. ']LT'
  10734. );
  10735. },
  10736. nextWeek: function () {
  10737. return (
  10738. 'dddd [a' +
  10739. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10740. ']LT'
  10741. );
  10742. },
  10743. lastDay: function () {
  10744. return (
  10745. '[Ieri a' +
  10746. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10747. ']LT'
  10748. );
  10749. },
  10750. lastWeek: function () {
  10751. switch (this.day()) {
  10752. case 0:
  10753. return (
  10754. '[La scorsa] dddd [a' +
  10755. (this.hours() > 1
  10756. ? 'lle '
  10757. : this.hours() === 0
  10758. ? ' '
  10759. : "ll'") +
  10760. ']LT'
  10761. );
  10762. default:
  10763. return (
  10764. '[Lo scorso] dddd [a' +
  10765. (this.hours() > 1
  10766. ? 'lle '
  10767. : this.hours() === 0
  10768. ? ' '
  10769. : "ll'") +
  10770. ']LT'
  10771. );
  10772. }
  10773. },
  10774. sameElse: 'L',
  10775. },
  10776. relativeTime: {
  10777. future: 'tra %s',
  10778. past: '%s fa',
  10779. s: 'alcuni secondi',
  10780. ss: '%d secondi',
  10781. m: 'un minuto',
  10782. mm: '%d minuti',
  10783. h: "un'ora",
  10784. hh: '%d ore',
  10785. d: 'un giorno',
  10786. dd: '%d giorni',
  10787. w: 'una settimana',
  10788. ww: '%d settimane',
  10789. M: 'un mese',
  10790. MM: '%d mesi',
  10791. y: 'un anno',
  10792. yy: '%d anni',
  10793. },
  10794. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10795. ordinal: '%dº',
  10796. week: {
  10797. dow: 1, // Monday is the first day of the week.
  10798. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10799. },
  10800. });
  10801. //! moment.js locale configuration
  10802. hooks.defineLocale('ja', {
  10803. eras: [
  10804. {
  10805. since: '2019-05-01',
  10806. offset: 1,
  10807. name: '令和',
  10808. narrow: '㋿',
  10809. abbr: 'R',
  10810. },
  10811. {
  10812. since: '1989-01-08',
  10813. until: '2019-04-30',
  10814. offset: 1,
  10815. name: '平成',
  10816. narrow: '㍻',
  10817. abbr: 'H',
  10818. },
  10819. {
  10820. since: '1926-12-25',
  10821. until: '1989-01-07',
  10822. offset: 1,
  10823. name: '昭和',
  10824. narrow: '㍼',
  10825. abbr: 'S',
  10826. },
  10827. {
  10828. since: '1912-07-30',
  10829. until: '1926-12-24',
  10830. offset: 1,
  10831. name: '大正',
  10832. narrow: '㍽',
  10833. abbr: 'T',
  10834. },
  10835. {
  10836. since: '1873-01-01',
  10837. until: '1912-07-29',
  10838. offset: 6,
  10839. name: '明治',
  10840. narrow: '㍾',
  10841. abbr: 'M',
  10842. },
  10843. {
  10844. since: '0001-01-01',
  10845. until: '1873-12-31',
  10846. offset: 1,
  10847. name: '西暦',
  10848. narrow: 'AD',
  10849. abbr: 'AD',
  10850. },
  10851. {
  10852. since: '0000-12-31',
  10853. until: -Infinity,
  10854. offset: 1,
  10855. name: '紀元前',
  10856. narrow: 'BC',
  10857. abbr: 'BC',
  10858. },
  10859. ],
  10860. eraYearOrdinalRegex: /(元|\d+)年/,
  10861. eraYearOrdinalParse: function (input, match) {
  10862. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  10863. },
  10864. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10865. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  10866. '_'
  10867. ),
  10868. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10869. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  10870. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  10871. longDateFormat: {
  10872. LT: 'HH:mm',
  10873. LTS: 'HH:mm:ss',
  10874. L: 'YYYY/MM/DD',
  10875. LL: 'YYYY年M月D日',
  10876. LLL: 'YYYY年M月D日 HH:mm',
  10877. LLLL: 'YYYY年M月D日 dddd HH:mm',
  10878. l: 'YYYY/MM/DD',
  10879. ll: 'YYYY年M月D日',
  10880. lll: 'YYYY年M月D日 HH:mm',
  10881. llll: 'YYYY年M月D日(ddd) HH:mm',
  10882. },
  10883. meridiemParse: /午前|午後/i,
  10884. isPM: function (input) {
  10885. return input === '午後';
  10886. },
  10887. meridiem: function (hour, minute, isLower) {
  10888. if (hour < 12) {
  10889. return '午前';
  10890. } else {
  10891. return '午後';
  10892. }
  10893. },
  10894. calendar: {
  10895. sameDay: '[今日] LT',
  10896. nextDay: '[明日] LT',
  10897. nextWeek: function (now) {
  10898. if (now.week() !== this.week()) {
  10899. return '[来週]dddd LT';
  10900. } else {
  10901. return 'dddd LT';
  10902. }
  10903. },
  10904. lastDay: '[昨日] LT',
  10905. lastWeek: function (now) {
  10906. if (this.week() !== now.week()) {
  10907. return '[先週]dddd LT';
  10908. } else {
  10909. return 'dddd LT';
  10910. }
  10911. },
  10912. sameElse: 'L',
  10913. },
  10914. dayOfMonthOrdinalParse: /\d{1,2}日/,
  10915. ordinal: function (number, period) {
  10916. switch (period) {
  10917. case 'y':
  10918. return number === 1 ? '元年' : number + '年';
  10919. case 'd':
  10920. case 'D':
  10921. case 'DDD':
  10922. return number + '日';
  10923. default:
  10924. return number;
  10925. }
  10926. },
  10927. relativeTime: {
  10928. future: '%s後',
  10929. past: '%s前',
  10930. s: '数秒',
  10931. ss: '%d秒',
  10932. m: '1分',
  10933. mm: '%d分',
  10934. h: '1時間',
  10935. hh: '%d時間',
  10936. d: '1日',
  10937. dd: '%d日',
  10938. M: '1ヶ月',
  10939. MM: '%dヶ月',
  10940. y: '1年',
  10941. yy: '%d年',
  10942. },
  10943. });
  10944. //! moment.js locale configuration
  10945. hooks.defineLocale('jv', {
  10946. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  10947. '_'
  10948. ),
  10949. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  10950. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  10951. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  10952. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  10953. longDateFormat: {
  10954. LT: 'HH.mm',
  10955. LTS: 'HH.mm.ss',
  10956. L: 'DD/MM/YYYY',
  10957. LL: 'D MMMM YYYY',
  10958. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10959. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10960. },
  10961. meridiemParse: /enjing|siyang|sonten|ndalu/,
  10962. meridiemHour: function (hour, meridiem) {
  10963. if (hour === 12) {
  10964. hour = 0;
  10965. }
  10966. if (meridiem === 'enjing') {
  10967. return hour;
  10968. } else if (meridiem === 'siyang') {
  10969. return hour >= 11 ? hour : hour + 12;
  10970. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  10971. return hour + 12;
  10972. }
  10973. },
  10974. meridiem: function (hours, minutes, isLower) {
  10975. if (hours < 11) {
  10976. return 'enjing';
  10977. } else if (hours < 15) {
  10978. return 'siyang';
  10979. } else if (hours < 19) {
  10980. return 'sonten';
  10981. } else {
  10982. return 'ndalu';
  10983. }
  10984. },
  10985. calendar: {
  10986. sameDay: '[Dinten puniko pukul] LT',
  10987. nextDay: '[Mbenjang pukul] LT',
  10988. nextWeek: 'dddd [pukul] LT',
  10989. lastDay: '[Kala wingi pukul] LT',
  10990. lastWeek: 'dddd [kepengker pukul] LT',
  10991. sameElse: 'L',
  10992. },
  10993. relativeTime: {
  10994. future: 'wonten ing %s',
  10995. past: '%s ingkang kepengker',
  10996. s: 'sawetawis detik',
  10997. ss: '%d detik',
  10998. m: 'setunggal menit',
  10999. mm: '%d menit',
  11000. h: 'setunggal jam',
  11001. hh: '%d jam',
  11002. d: 'sedinten',
  11003. dd: '%d dinten',
  11004. M: 'sewulan',
  11005. MM: '%d wulan',
  11006. y: 'setaun',
  11007. yy: '%d taun',
  11008. },
  11009. week: {
  11010. dow: 1, // Monday is the first day of the week.
  11011. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11012. },
  11013. });
  11014. //! moment.js locale configuration
  11015. hooks.defineLocale('ka', {
  11016. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  11017. '_'
  11018. ),
  11019. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  11020. weekdays: {
  11021. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  11022. '_'
  11023. ),
  11024. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  11025. '_'
  11026. ),
  11027. isFormat: /(წინა|შემდეგ)/,
  11028. },
  11029. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  11030. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  11031. longDateFormat: {
  11032. LT: 'HH:mm',
  11033. LTS: 'HH:mm:ss',
  11034. L: 'DD/MM/YYYY',
  11035. LL: 'D MMMM YYYY',
  11036. LLL: 'D MMMM YYYY HH:mm',
  11037. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11038. },
  11039. calendar: {
  11040. sameDay: '[დღეს] LT[-ზე]',
  11041. nextDay: '[ხვალ] LT[-ზე]',
  11042. lastDay: '[გუშინ] LT[-ზე]',
  11043. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  11044. lastWeek: '[წინა] dddd LT-ზე',
  11045. sameElse: 'L',
  11046. },
  11047. relativeTime: {
  11048. future: function (s) {
  11049. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (
  11050. $0,
  11051. $1,
  11052. $2
  11053. ) {
  11054. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  11055. });
  11056. },
  11057. past: function (s) {
  11058. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  11059. return s.replace(/(ი|ე)$/, 'ის წინ');
  11060. }
  11061. if (/წელი/.test(s)) {
  11062. return s.replace(/წელი$/, 'წლის წინ');
  11063. }
  11064. return s;
  11065. },
  11066. s: 'რამდენიმე წამი',
  11067. ss: '%d წამი',
  11068. m: 'წუთი',
  11069. mm: '%d წუთი',
  11070. h: 'საათი',
  11071. hh: '%d საათი',
  11072. d: 'დღე',
  11073. dd: '%d დღე',
  11074. M: 'თვე',
  11075. MM: '%d თვე',
  11076. y: 'წელი',
  11077. yy: '%d წელი',
  11078. },
  11079. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  11080. ordinal: function (number) {
  11081. if (number === 0) {
  11082. return number;
  11083. }
  11084. if (number === 1) {
  11085. return number + '-ლი';
  11086. }
  11087. if (
  11088. number < 20 ||
  11089. (number <= 100 && number % 20 === 0) ||
  11090. number % 100 === 0
  11091. ) {
  11092. return 'მე-' + number;
  11093. }
  11094. return number + '-ე';
  11095. },
  11096. week: {
  11097. dow: 1,
  11098. doy: 7,
  11099. },
  11100. });
  11101. //! moment.js locale configuration
  11102. var suffixes$1 = {
  11103. 0: '-ші',
  11104. 1: '-ші',
  11105. 2: '-ші',
  11106. 3: '-ші',
  11107. 4: '-ші',
  11108. 5: '-ші',
  11109. 6: '-шы',
  11110. 7: '-ші',
  11111. 8: '-ші',
  11112. 9: '-шы',
  11113. 10: '-шы',
  11114. 20: '-шы',
  11115. 30: '-шы',
  11116. 40: '-шы',
  11117. 50: '-ші',
  11118. 60: '-шы',
  11119. 70: '-ші',
  11120. 80: '-ші',
  11121. 90: '-шы',
  11122. 100: '-ші',
  11123. };
  11124. hooks.defineLocale('kk', {
  11125. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  11126. '_'
  11127. ),
  11128. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  11129. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  11130. '_'
  11131. ),
  11132. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  11133. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  11134. longDateFormat: {
  11135. LT: 'HH:mm',
  11136. LTS: 'HH:mm:ss',
  11137. L: 'DD.MM.YYYY',
  11138. LL: 'D MMMM YYYY',
  11139. LLL: 'D MMMM YYYY HH:mm',
  11140. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11141. },
  11142. calendar: {
  11143. sameDay: '[Бүгін сағат] LT',
  11144. nextDay: '[Ертең сағат] LT',
  11145. nextWeek: 'dddd [сағат] LT',
  11146. lastDay: '[Кеше сағат] LT',
  11147. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  11148. sameElse: 'L',
  11149. },
  11150. relativeTime: {
  11151. future: '%s ішінде',
  11152. past: '%s бұрын',
  11153. s: 'бірнеше секунд',
  11154. ss: '%d секунд',
  11155. m: 'бір минут',
  11156. mm: '%d минут',
  11157. h: 'бір сағат',
  11158. hh: '%d сағат',
  11159. d: 'бір күн',
  11160. dd: '%d күн',
  11161. M: 'бір ай',
  11162. MM: '%d ай',
  11163. y: 'бір жыл',
  11164. yy: '%d жыл',
  11165. },
  11166. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  11167. ordinal: function (number) {
  11168. var a = number % 10,
  11169. b = number >= 100 ? 100 : null;
  11170. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  11171. },
  11172. week: {
  11173. dow: 1, // Monday is the first day of the week.
  11174. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11175. },
  11176. });
  11177. //! moment.js locale configuration
  11178. var symbolMap$9 = {
  11179. 1: '១',
  11180. 2: '២',
  11181. 3: '៣',
  11182. 4: '៤',
  11183. 5: '៥',
  11184. 6: '៦',
  11185. 7: '៧',
  11186. 8: '៨',
  11187. 9: '៩',
  11188. 0: '០',
  11189. },
  11190. numberMap$8 = {
  11191. '១': '1',
  11192. '២': '2',
  11193. '៣': '3',
  11194. '៤': '4',
  11195. '៥': '5',
  11196. '៦': '6',
  11197. '៧': '7',
  11198. '៨': '8',
  11199. '៩': '9',
  11200. '០': '0',
  11201. };
  11202. hooks.defineLocale('km', {
  11203. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11204. '_'
  11205. ),
  11206. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11207. '_'
  11208. ),
  11209. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  11210. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11211. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11212. weekdaysParseExact: true,
  11213. longDateFormat: {
  11214. LT: 'HH:mm',
  11215. LTS: 'HH:mm:ss',
  11216. L: 'DD/MM/YYYY',
  11217. LL: 'D MMMM YYYY',
  11218. LLL: 'D MMMM YYYY HH:mm',
  11219. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11220. },
  11221. meridiemParse: /ព្រឹក|ល្ងាច/,
  11222. isPM: function (input) {
  11223. return input === 'ល្ងាច';
  11224. },
  11225. meridiem: function (hour, minute, isLower) {
  11226. if (hour < 12) {
  11227. return 'ព្រឹក';
  11228. } else {
  11229. return 'ល្ងាច';
  11230. }
  11231. },
  11232. calendar: {
  11233. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  11234. nextDay: '[ស្អែក ម៉ោង] LT',
  11235. nextWeek: 'dddd [ម៉ោង] LT',
  11236. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  11237. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  11238. sameElse: 'L',
  11239. },
  11240. relativeTime: {
  11241. future: '%sទៀត',
  11242. past: '%sមុន',
  11243. s: 'ប៉ុន្មានវិនាទី',
  11244. ss: '%d វិនាទី',
  11245. m: 'មួយនាទី',
  11246. mm: '%d នាទី',
  11247. h: 'មួយម៉ោង',
  11248. hh: '%d ម៉ោង',
  11249. d: 'មួយថ្ងៃ',
  11250. dd: '%d ថ្ងៃ',
  11251. M: 'មួយខែ',
  11252. MM: '%d ខែ',
  11253. y: 'មួយឆ្នាំ',
  11254. yy: '%d ឆ្នាំ',
  11255. },
  11256. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  11257. ordinal: 'ទី%d',
  11258. preparse: function (string) {
  11259. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  11260. return numberMap$8[match];
  11261. });
  11262. },
  11263. postformat: function (string) {
  11264. return string.replace(/\d/g, function (match) {
  11265. return symbolMap$9[match];
  11266. });
  11267. },
  11268. week: {
  11269. dow: 1, // Monday is the first day of the week.
  11270. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11271. },
  11272. });
  11273. //! moment.js locale configuration
  11274. var symbolMap$a = {
  11275. 1: '೧',
  11276. 2: '೨',
  11277. 3: '೩',
  11278. 4: '೪',
  11279. 5: '೫',
  11280. 6: '೬',
  11281. 7: '೭',
  11282. 8: '೮',
  11283. 9: '೯',
  11284. 0: '೦',
  11285. },
  11286. numberMap$9 = {
  11287. '೧': '1',
  11288. '೨': '2',
  11289. '೩': '3',
  11290. '೪': '4',
  11291. '೫': '5',
  11292. '೬': '6',
  11293. '೭': '7',
  11294. '೮': '8',
  11295. '೯': '9',
  11296. '೦': '0',
  11297. };
  11298. hooks.defineLocale('kn', {
  11299. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  11300. '_'
  11301. ),
  11302. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  11303. '_'
  11304. ),
  11305. monthsParseExact: true,
  11306. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  11307. '_'
  11308. ),
  11309. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  11310. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  11311. longDateFormat: {
  11312. LT: 'A h:mm',
  11313. LTS: 'A h:mm:ss',
  11314. L: 'DD/MM/YYYY',
  11315. LL: 'D MMMM YYYY',
  11316. LLL: 'D MMMM YYYY, A h:mm',
  11317. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  11318. },
  11319. calendar: {
  11320. sameDay: '[ಇಂದು] LT',
  11321. nextDay: '[ನಾಳೆ] LT',
  11322. nextWeek: 'dddd, LT',
  11323. lastDay: '[ನಿನ್ನೆ] LT',
  11324. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  11325. sameElse: 'L',
  11326. },
  11327. relativeTime: {
  11328. future: '%s ನಂತರ',
  11329. past: '%s ಹಿಂದೆ',
  11330. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  11331. ss: '%d ಸೆಕೆಂಡುಗಳು',
  11332. m: 'ಒಂದು ನಿಮಿಷ',
  11333. mm: '%d ನಿಮಿಷ',
  11334. h: 'ಒಂದು ಗಂಟೆ',
  11335. hh: '%d ಗಂಟೆ',
  11336. d: 'ಒಂದು ದಿನ',
  11337. dd: '%d ದಿನ',
  11338. M: 'ಒಂದು ತಿಂಗಳು',
  11339. MM: '%d ತಿಂಗಳು',
  11340. y: 'ಒಂದು ವರ್ಷ',
  11341. yy: '%d ವರ್ಷ',
  11342. },
  11343. preparse: function (string) {
  11344. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  11345. return numberMap$9[match];
  11346. });
  11347. },
  11348. postformat: function (string) {
  11349. return string.replace(/\d/g, function (match) {
  11350. return symbolMap$a[match];
  11351. });
  11352. },
  11353. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  11354. meridiemHour: function (hour, meridiem) {
  11355. if (hour === 12) {
  11356. hour = 0;
  11357. }
  11358. if (meridiem === 'ರಾತ್ರಿ') {
  11359. return hour < 4 ? hour : hour + 12;
  11360. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  11361. return hour;
  11362. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  11363. return hour >= 10 ? hour : hour + 12;
  11364. } else if (meridiem === 'ಸಂಜೆ') {
  11365. return hour + 12;
  11366. }
  11367. },
  11368. meridiem: function (hour, minute, isLower) {
  11369. if (hour < 4) {
  11370. return 'ರಾತ್ರಿ';
  11371. } else if (hour < 10) {
  11372. return 'ಬೆಳಿಗ್ಗೆ';
  11373. } else if (hour < 17) {
  11374. return 'ಮಧ್ಯಾಹ್ನ';
  11375. } else if (hour < 20) {
  11376. return 'ಸಂಜೆ';
  11377. } else {
  11378. return 'ರಾತ್ರಿ';
  11379. }
  11380. },
  11381. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  11382. ordinal: function (number) {
  11383. return number + 'ನೇ';
  11384. },
  11385. week: {
  11386. dow: 0, // Sunday is the first day of the week.
  11387. doy: 6, // The week that contains Jan 6th is the first week of the year.
  11388. },
  11389. });
  11390. //! moment.js locale configuration
  11391. hooks.defineLocale('ko', {
  11392. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11393. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  11394. '_'
  11395. ),
  11396. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  11397. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  11398. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  11399. longDateFormat: {
  11400. LT: 'A h:mm',
  11401. LTS: 'A h:mm:ss',
  11402. L: 'YYYY.MM.DD.',
  11403. LL: 'YYYY년 MMMM D일',
  11404. LLL: 'YYYY년 MMMM D일 A h:mm',
  11405. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  11406. l: 'YYYY.MM.DD.',
  11407. ll: 'YYYY년 MMMM D일',
  11408. lll: 'YYYY년 MMMM D일 A h:mm',
  11409. llll: 'YYYY년 MMMM D일 dddd A h:mm',
  11410. },
  11411. calendar: {
  11412. sameDay: '오늘 LT',
  11413. nextDay: '내일 LT',
  11414. nextWeek: 'dddd LT',
  11415. lastDay: '어제 LT',
  11416. lastWeek: '지난주 dddd LT',
  11417. sameElse: 'L',
  11418. },
  11419. relativeTime: {
  11420. future: '%s 후',
  11421. past: '%s 전',
  11422. s: '몇 초',
  11423. ss: '%d초',
  11424. m: '1분',
  11425. mm: '%d분',
  11426. h: '한 시간',
  11427. hh: '%d시간',
  11428. d: '하루',
  11429. dd: '%d일',
  11430. M: '한 달',
  11431. MM: '%d달',
  11432. y: '일 년',
  11433. yy: '%d년',
  11434. },
  11435. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  11436. ordinal: function (number, period) {
  11437. switch (period) {
  11438. case 'd':
  11439. case 'D':
  11440. case 'DDD':
  11441. return number + '일';
  11442. case 'M':
  11443. return number + '월';
  11444. case 'w':
  11445. case 'W':
  11446. return number + '주';
  11447. default:
  11448. return number;
  11449. }
  11450. },
  11451. meridiemParse: /오전|오후/,
  11452. isPM: function (token) {
  11453. return token === '오후';
  11454. },
  11455. meridiem: function (hour, minute, isUpper) {
  11456. return hour < 12 ? '오전' : '오후';
  11457. },
  11458. });
  11459. //! moment.js locale configuration
  11460. var symbolMap$b = {
  11461. 1: '١',
  11462. 2: '٢',
  11463. 3: '٣',
  11464. 4: '٤',
  11465. 5: '٥',
  11466. 6: '٦',
  11467. 7: '٧',
  11468. 8: '٨',
  11469. 9: '٩',
  11470. 0: '٠',
  11471. },
  11472. numberMap$a = {
  11473. '١': '1',
  11474. '٢': '2',
  11475. '٣': '3',
  11476. '٤': '4',
  11477. '٥': '5',
  11478. '٦': '6',
  11479. '٧': '7',
  11480. '٨': '8',
  11481. '٩': '9',
  11482. '٠': '0',
  11483. },
  11484. months$8 = [
  11485. 'کانونی دووەم',
  11486. 'شوبات',
  11487. 'ئازار',
  11488. 'نیسان',
  11489. 'ئایار',
  11490. 'حوزەیران',
  11491. 'تەمموز',
  11492. 'ئاب',
  11493. 'ئەیلوول',
  11494. 'تشرینی یەكەم',
  11495. 'تشرینی دووەم',
  11496. 'كانونی یەکەم',
  11497. ];
  11498. hooks.defineLocale('ku', {
  11499. months: months$8,
  11500. monthsShort: months$8,
  11501. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  11502. '_'
  11503. ),
  11504. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
  11505. '_'
  11506. ),
  11507. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  11508. weekdaysParseExact: true,
  11509. longDateFormat: {
  11510. LT: 'HH:mm',
  11511. LTS: 'HH:mm:ss',
  11512. L: 'DD/MM/YYYY',
  11513. LL: 'D MMMM YYYY',
  11514. LLL: 'D MMMM YYYY HH:mm',
  11515. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11516. },
  11517. meridiemParse: /ئێواره‌|به‌یانی/,
  11518. isPM: function (input) {
  11519. return /ئێواره‌/.test(input);
  11520. },
  11521. meridiem: function (hour, minute, isLower) {
  11522. if (hour < 12) {
  11523. return 'به‌یانی';
  11524. } else {
  11525. return 'ئێواره‌';
  11526. }
  11527. },
  11528. calendar: {
  11529. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  11530. nextDay: '[به‌یانی كاتژمێر] LT',
  11531. nextWeek: 'dddd [كاتژمێر] LT',
  11532. lastDay: '[دوێنێ كاتژمێر] LT',
  11533. lastWeek: 'dddd [كاتژمێر] LT',
  11534. sameElse: 'L',
  11535. },
  11536. relativeTime: {
  11537. future: 'له‌ %s',
  11538. past: '%s',
  11539. s: 'چه‌ند چركه‌یه‌ك',
  11540. ss: 'چركه‌ %d',
  11541. m: 'یه‌ك خوله‌ك',
  11542. mm: '%d خوله‌ك',
  11543. h: 'یه‌ك كاتژمێر',
  11544. hh: '%d كاتژمێر',
  11545. d: 'یه‌ك ڕۆژ',
  11546. dd: '%d ڕۆژ',
  11547. M: 'یه‌ك مانگ',
  11548. MM: '%d مانگ',
  11549. y: 'یه‌ك ساڵ',
  11550. yy: '%d ساڵ',
  11551. },
  11552. preparse: function (string) {
  11553. return string
  11554. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  11555. return numberMap$a[match];
  11556. })
  11557. .replace(/،/g, ',');
  11558. },
  11559. postformat: function (string) {
  11560. return string
  11561. .replace(/\d/g, function (match) {
  11562. return symbolMap$b[match];
  11563. })
  11564. .replace(/,/g, '،');
  11565. },
  11566. week: {
  11567. dow: 6, // Saturday is the first day of the week.
  11568. doy: 12, // The week that contains Jan 12th is the first week of the year.
  11569. },
  11570. });
  11571. //! moment.js locale configuration
  11572. var suffixes$2 = {
  11573. 0: '-чү',
  11574. 1: '-чи',
  11575. 2: '-чи',
  11576. 3: '-чү',
  11577. 4: '-чү',
  11578. 5: '-чи',
  11579. 6: '-чы',
  11580. 7: '-чи',
  11581. 8: '-чи',
  11582. 9: '-чу',
  11583. 10: '-чу',
  11584. 20: '-чы',
  11585. 30: '-чу',
  11586. 40: '-чы',
  11587. 50: '-чү',
  11588. 60: '-чы',
  11589. 70: '-чи',
  11590. 80: '-чи',
  11591. 90: '-чу',
  11592. 100: '-чү',
  11593. };
  11594. hooks.defineLocale('ky', {
  11595. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  11596. '_'
  11597. ),
  11598. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  11599. '_'
  11600. ),
  11601. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  11602. '_'
  11603. ),
  11604. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11605. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11606. longDateFormat: {
  11607. LT: 'HH:mm',
  11608. LTS: 'HH:mm:ss',
  11609. L: 'DD.MM.YYYY',
  11610. LL: 'D MMMM YYYY',
  11611. LLL: 'D MMMM YYYY HH:mm',
  11612. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11613. },
  11614. calendar: {
  11615. sameDay: '[Бүгүн саат] LT',
  11616. nextDay: '[Эртең саат] LT',
  11617. nextWeek: 'dddd [саат] LT',
  11618. lastDay: '[Кечээ саат] LT',
  11619. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  11620. sameElse: 'L',
  11621. },
  11622. relativeTime: {
  11623. future: '%s ичинде',
  11624. past: '%s мурун',
  11625. s: 'бирнече секунд',
  11626. ss: '%d секунд',
  11627. m: 'бир мүнөт',
  11628. mm: '%d мүнөт',
  11629. h: 'бир саат',
  11630. hh: '%d саат',
  11631. d: 'бир күн',
  11632. dd: '%d күн',
  11633. M: 'бир ай',
  11634. MM: '%d ай',
  11635. y: 'бир жыл',
  11636. yy: '%d жыл',
  11637. },
  11638. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11639. ordinal: function (number) {
  11640. var a = number % 10,
  11641. b = number >= 100 ? 100 : null;
  11642. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  11643. },
  11644. week: {
  11645. dow: 1, // Monday is the first day of the week.
  11646. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11647. },
  11648. });
  11649. //! moment.js locale configuration
  11650. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  11651. var format = {
  11652. m: ['eng Minutt', 'enger Minutt'],
  11653. h: ['eng Stonn', 'enger Stonn'],
  11654. d: ['een Dag', 'engem Dag'],
  11655. M: ['ee Mount', 'engem Mount'],
  11656. y: ['ee Joer', 'engem Joer'],
  11657. };
  11658. return withoutSuffix ? format[key][0] : format[key][1];
  11659. }
  11660. function processFutureTime(string) {
  11661. var number = string.substr(0, string.indexOf(' '));
  11662. if (eifelerRegelAppliesToNumber(number)) {
  11663. return 'a ' + string;
  11664. }
  11665. return 'an ' + string;
  11666. }
  11667. function processPastTime(string) {
  11668. var number = string.substr(0, string.indexOf(' '));
  11669. if (eifelerRegelAppliesToNumber(number)) {
  11670. return 'viru ' + string;
  11671. }
  11672. return 'virun ' + string;
  11673. }
  11674. /**
  11675. * Returns true if the word before the given number loses the '-n' ending.
  11676. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11677. *
  11678. * @param number {integer}
  11679. * @returns {boolean}
  11680. */
  11681. function eifelerRegelAppliesToNumber(number) {
  11682. number = parseInt(number, 10);
  11683. if (isNaN(number)) {
  11684. return false;
  11685. }
  11686. if (number < 0) {
  11687. // Negative Number --> always true
  11688. return true;
  11689. } else if (number < 10) {
  11690. // Only 1 digit
  11691. if (4 <= number && number <= 7) {
  11692. return true;
  11693. }
  11694. return false;
  11695. } else if (number < 100) {
  11696. // 2 digits
  11697. var lastDigit = number % 10,
  11698. firstDigit = number / 10;
  11699. if (lastDigit === 0) {
  11700. return eifelerRegelAppliesToNumber(firstDigit);
  11701. }
  11702. return eifelerRegelAppliesToNumber(lastDigit);
  11703. } else if (number < 10000) {
  11704. // 3 or 4 digits --> recursively check first digit
  11705. while (number >= 10) {
  11706. number = number / 10;
  11707. }
  11708. return eifelerRegelAppliesToNumber(number);
  11709. } else {
  11710. // Anything larger than 4 digits: recursively check first n-3 digits
  11711. number = number / 1000;
  11712. return eifelerRegelAppliesToNumber(number);
  11713. }
  11714. }
  11715. hooks.defineLocale('lb', {
  11716. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  11717. '_'
  11718. ),
  11719. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  11720. '_'
  11721. ),
  11722. monthsParseExact: true,
  11723. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  11724. '_'
  11725. ),
  11726. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11727. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11728. weekdaysParseExact: true,
  11729. longDateFormat: {
  11730. LT: 'H:mm [Auer]',
  11731. LTS: 'H:mm:ss [Auer]',
  11732. L: 'DD.MM.YYYY',
  11733. LL: 'D. MMMM YYYY',
  11734. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11735. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
  11736. },
  11737. calendar: {
  11738. sameDay: '[Haut um] LT',
  11739. sameElse: 'L',
  11740. nextDay: '[Muer um] LT',
  11741. nextWeek: 'dddd [um] LT',
  11742. lastDay: '[Gëschter um] LT',
  11743. lastWeek: function () {
  11744. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11745. switch (this.day()) {
  11746. case 2:
  11747. case 4:
  11748. return '[Leschten] dddd [um] LT';
  11749. default:
  11750. return '[Leschte] dddd [um] LT';
  11751. }
  11752. },
  11753. },
  11754. relativeTime: {
  11755. future: processFutureTime,
  11756. past: processPastTime,
  11757. s: 'e puer Sekonnen',
  11758. ss: '%d Sekonnen',
  11759. m: processRelativeTime$6,
  11760. mm: '%d Minutten',
  11761. h: processRelativeTime$6,
  11762. hh: '%d Stonnen',
  11763. d: processRelativeTime$6,
  11764. dd: '%d Deeg',
  11765. M: processRelativeTime$6,
  11766. MM: '%d Méint',
  11767. y: processRelativeTime$6,
  11768. yy: '%d Joer',
  11769. },
  11770. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11771. ordinal: '%d.',
  11772. week: {
  11773. dow: 1, // Monday is the first day of the week.
  11774. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11775. },
  11776. });
  11777. //! moment.js locale configuration
  11778. hooks.defineLocale('lo', {
  11779. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11780. '_'
  11781. ),
  11782. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11783. '_'
  11784. ),
  11785. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11786. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11787. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11788. weekdaysParseExact: true,
  11789. longDateFormat: {
  11790. LT: 'HH:mm',
  11791. LTS: 'HH:mm:ss',
  11792. L: 'DD/MM/YYYY',
  11793. LL: 'D MMMM YYYY',
  11794. LLL: 'D MMMM YYYY HH:mm',
  11795. LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
  11796. },
  11797. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11798. isPM: function (input) {
  11799. return input === 'ຕອນແລງ';
  11800. },
  11801. meridiem: function (hour, minute, isLower) {
  11802. if (hour < 12) {
  11803. return 'ຕອນເຊົ້າ';
  11804. } else {
  11805. return 'ຕອນແລງ';
  11806. }
  11807. },
  11808. calendar: {
  11809. sameDay: '[ມື້ນີ້ເວລາ] LT',
  11810. nextDay: '[ມື້ອື່ນເວລາ] LT',
  11811. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11812. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  11813. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11814. sameElse: 'L',
  11815. },
  11816. relativeTime: {
  11817. future: 'ອີກ %s',
  11818. past: '%sຜ່ານມາ',
  11819. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  11820. ss: '%d ວິນາທີ',
  11821. m: '1 ນາທີ',
  11822. mm: '%d ນາທີ',
  11823. h: '1 ຊົ່ວໂມງ',
  11824. hh: '%d ຊົ່ວໂມງ',
  11825. d: '1 ມື້',
  11826. dd: '%d ມື້',
  11827. M: '1 ເດືອນ',
  11828. MM: '%d ເດືອນ',
  11829. y: '1 ປີ',
  11830. yy: '%d ປີ',
  11831. },
  11832. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11833. ordinal: function (number) {
  11834. return 'ທີ່' + number;
  11835. },
  11836. });
  11837. //! moment.js locale configuration
  11838. var units = {
  11839. ss: 'sekundė_sekundžių_sekundes',
  11840. m: 'minutė_minutės_minutę',
  11841. mm: 'minutės_minučių_minutes',
  11842. h: 'valanda_valandos_valandą',
  11843. hh: 'valandos_valandų_valandas',
  11844. d: 'diena_dienos_dieną',
  11845. dd: 'dienos_dienų_dienas',
  11846. M: 'mėnuo_mėnesio_mėnesį',
  11847. MM: 'mėnesiai_mėnesių_mėnesius',
  11848. y: 'metai_metų_metus',
  11849. yy: 'metai_metų_metus',
  11850. };
  11851. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11852. if (withoutSuffix) {
  11853. return 'kelios sekundės';
  11854. } else {
  11855. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11856. }
  11857. }
  11858. function translateSingular(number, withoutSuffix, key, isFuture) {
  11859. return withoutSuffix
  11860. ? forms(key)[0]
  11861. : isFuture
  11862. ? forms(key)[1]
  11863. : forms(key)[2];
  11864. }
  11865. function special(number) {
  11866. return number % 10 === 0 || (number > 10 && number < 20);
  11867. }
  11868. function forms(key) {
  11869. return units[key].split('_');
  11870. }
  11871. function translate$6(number, withoutSuffix, key, isFuture) {
  11872. var result = number + ' ';
  11873. if (number === 1) {
  11874. return (
  11875. result + translateSingular(number, withoutSuffix, key[0], isFuture)
  11876. );
  11877. } else if (withoutSuffix) {
  11878. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11879. } else {
  11880. if (isFuture) {
  11881. return result + forms(key)[1];
  11882. } else {
  11883. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11884. }
  11885. }
  11886. }
  11887. hooks.defineLocale('lt', {
  11888. months: {
  11889. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  11890. '_'
  11891. ),
  11892. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  11893. '_'
  11894. ),
  11895. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  11896. },
  11897. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11898. weekdays: {
  11899. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  11900. '_'
  11901. ),
  11902. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  11903. '_'
  11904. ),
  11905. isFormat: /dddd HH:mm/,
  11906. },
  11907. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  11908. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  11909. weekdaysParseExact: true,
  11910. longDateFormat: {
  11911. LT: 'HH:mm',
  11912. LTS: 'HH:mm:ss',
  11913. L: 'YYYY-MM-DD',
  11914. LL: 'YYYY [m.] MMMM D [d.]',
  11915. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11916. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  11917. l: 'YYYY-MM-DD',
  11918. ll: 'YYYY [m.] MMMM D [d.]',
  11919. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11920. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  11921. },
  11922. calendar: {
  11923. sameDay: '[Šiandien] LT',
  11924. nextDay: '[Rytoj] LT',
  11925. nextWeek: 'dddd LT',
  11926. lastDay: '[Vakar] LT',
  11927. lastWeek: '[Praėjusį] dddd LT',
  11928. sameElse: 'L',
  11929. },
  11930. relativeTime: {
  11931. future: 'po %s',
  11932. past: 'prieš %s',
  11933. s: translateSeconds,
  11934. ss: translate$6,
  11935. m: translateSingular,
  11936. mm: translate$6,
  11937. h: translateSingular,
  11938. hh: translate$6,
  11939. d: translateSingular,
  11940. dd: translate$6,
  11941. M: translateSingular,
  11942. MM: translate$6,
  11943. y: translateSingular,
  11944. yy: translate$6,
  11945. },
  11946. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  11947. ordinal: function (number) {
  11948. return number + '-oji';
  11949. },
  11950. week: {
  11951. dow: 1, // Monday is the first day of the week.
  11952. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11953. },
  11954. });
  11955. //! moment.js locale configuration
  11956. var units$1 = {
  11957. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  11958. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11959. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11960. h: 'stundas_stundām_stunda_stundas'.split('_'),
  11961. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  11962. d: 'dienas_dienām_diena_dienas'.split('_'),
  11963. dd: 'dienas_dienām_diena_dienas'.split('_'),
  11964. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11965. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11966. y: 'gada_gadiem_gads_gadi'.split('_'),
  11967. yy: 'gada_gadiem_gads_gadi'.split('_'),
  11968. };
  11969. /**
  11970. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  11971. */
  11972. function format$1(forms, number, withoutSuffix) {
  11973. if (withoutSuffix) {
  11974. // E.g. "21 minūte", "3 minūtes".
  11975. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  11976. } else {
  11977. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  11978. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  11979. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  11980. }
  11981. }
  11982. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  11983. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  11984. }
  11985. function relativeTimeWithSingular(number, withoutSuffix, key) {
  11986. return format$1(units$1[key], number, withoutSuffix);
  11987. }
  11988. function relativeSeconds(number, withoutSuffix) {
  11989. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  11990. }
  11991. hooks.defineLocale('lv', {
  11992. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  11993. '_'
  11994. ),
  11995. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  11996. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  11997. '_'
  11998. ),
  11999. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  12000. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  12001. weekdaysParseExact: true,
  12002. longDateFormat: {
  12003. LT: 'HH:mm',
  12004. LTS: 'HH:mm:ss',
  12005. L: 'DD.MM.YYYY.',
  12006. LL: 'YYYY. [gada] D. MMMM',
  12007. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  12008. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
  12009. },
  12010. calendar: {
  12011. sameDay: '[Šodien pulksten] LT',
  12012. nextDay: '[Rīt pulksten] LT',
  12013. nextWeek: 'dddd [pulksten] LT',
  12014. lastDay: '[Vakar pulksten] LT',
  12015. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  12016. sameElse: 'L',
  12017. },
  12018. relativeTime: {
  12019. future: 'pēc %s',
  12020. past: 'pirms %s',
  12021. s: relativeSeconds,
  12022. ss: relativeTimeWithPlural$1,
  12023. m: relativeTimeWithSingular,
  12024. mm: relativeTimeWithPlural$1,
  12025. h: relativeTimeWithSingular,
  12026. hh: relativeTimeWithPlural$1,
  12027. d: relativeTimeWithSingular,
  12028. dd: relativeTimeWithPlural$1,
  12029. M: relativeTimeWithSingular,
  12030. MM: relativeTimeWithPlural$1,
  12031. y: relativeTimeWithSingular,
  12032. yy: relativeTimeWithPlural$1,
  12033. },
  12034. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12035. ordinal: '%d.',
  12036. week: {
  12037. dow: 1, // Monday is the first day of the week.
  12038. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12039. },
  12040. });
  12041. //! moment.js locale configuration
  12042. var translator = {
  12043. words: {
  12044. //Different grammatical cases
  12045. ss: ['sekund', 'sekunda', 'sekundi'],
  12046. m: ['jedan minut', 'jednog minuta'],
  12047. mm: ['minut', 'minuta', 'minuta'],
  12048. h: ['jedan sat', 'jednog sata'],
  12049. hh: ['sat', 'sata', 'sati'],
  12050. dd: ['dan', 'dana', 'dana'],
  12051. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  12052. yy: ['godina', 'godine', 'godina'],
  12053. },
  12054. correctGrammaticalCase: function (number, wordKey) {
  12055. return number === 1
  12056. ? wordKey[0]
  12057. : number >= 2 && number <= 4
  12058. ? wordKey[1]
  12059. : wordKey[2];
  12060. },
  12061. translate: function (number, withoutSuffix, key) {
  12062. var wordKey = translator.words[key];
  12063. if (key.length === 1) {
  12064. return withoutSuffix ? wordKey[0] : wordKey[1];
  12065. } else {
  12066. return (
  12067. number +
  12068. ' ' +
  12069. translator.correctGrammaticalCase(number, wordKey)
  12070. );
  12071. }
  12072. },
  12073. };
  12074. hooks.defineLocale('me', {
  12075. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  12076. '_'
  12077. ),
  12078. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  12079. '_'
  12080. ),
  12081. monthsParseExact: true,
  12082. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  12083. '_'
  12084. ),
  12085. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  12086. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  12087. weekdaysParseExact: true,
  12088. longDateFormat: {
  12089. LT: 'H:mm',
  12090. LTS: 'H:mm:ss',
  12091. L: 'DD.MM.YYYY',
  12092. LL: 'D. MMMM YYYY',
  12093. LLL: 'D. MMMM YYYY H:mm',
  12094. LLLL: 'dddd, D. MMMM YYYY H:mm',
  12095. },
  12096. calendar: {
  12097. sameDay: '[danas u] LT',
  12098. nextDay: '[sjutra u] LT',
  12099. nextWeek: function () {
  12100. switch (this.day()) {
  12101. case 0:
  12102. return '[u] [nedjelju] [u] LT';
  12103. case 3:
  12104. return '[u] [srijedu] [u] LT';
  12105. case 6:
  12106. return '[u] [subotu] [u] LT';
  12107. case 1:
  12108. case 2:
  12109. case 4:
  12110. case 5:
  12111. return '[u] dddd [u] LT';
  12112. }
  12113. },
  12114. lastDay: '[juče u] LT',
  12115. lastWeek: function () {
  12116. var lastWeekDays = [
  12117. '[prošle] [nedjelje] [u] LT',
  12118. '[prošlog] [ponedjeljka] [u] LT',
  12119. '[prošlog] [utorka] [u] LT',
  12120. '[prošle] [srijede] [u] LT',
  12121. '[prošlog] [četvrtka] [u] LT',
  12122. '[prošlog] [petka] [u] LT',
  12123. '[prošle] [subote] [u] LT',
  12124. ];
  12125. return lastWeekDays[this.day()];
  12126. },
  12127. sameElse: 'L',
  12128. },
  12129. relativeTime: {
  12130. future: 'za %s',
  12131. past: 'prije %s',
  12132. s: 'nekoliko sekundi',
  12133. ss: translator.translate,
  12134. m: translator.translate,
  12135. mm: translator.translate,
  12136. h: translator.translate,
  12137. hh: translator.translate,
  12138. d: 'dan',
  12139. dd: translator.translate,
  12140. M: 'mjesec',
  12141. MM: translator.translate,
  12142. y: 'godinu',
  12143. yy: translator.translate,
  12144. },
  12145. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12146. ordinal: '%d.',
  12147. week: {
  12148. dow: 1, // Monday is the first day of the week.
  12149. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12150. },
  12151. });
  12152. //! moment.js locale configuration
  12153. hooks.defineLocale('mi', {
  12154. 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(
  12155. '_'
  12156. ),
  12157. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  12158. '_'
  12159. ),
  12160. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12161. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12162. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12163. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  12164. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  12165. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12166. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12167. longDateFormat: {
  12168. LT: 'HH:mm',
  12169. LTS: 'HH:mm:ss',
  12170. L: 'DD/MM/YYYY',
  12171. LL: 'D MMMM YYYY',
  12172. LLL: 'D MMMM YYYY [i] HH:mm',
  12173. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  12174. },
  12175. calendar: {
  12176. sameDay: '[i teie mahana, i] LT',
  12177. nextDay: '[apopo i] LT',
  12178. nextWeek: 'dddd [i] LT',
  12179. lastDay: '[inanahi i] LT',
  12180. lastWeek: 'dddd [whakamutunga i] LT',
  12181. sameElse: 'L',
  12182. },
  12183. relativeTime: {
  12184. future: 'i roto i %s',
  12185. past: '%s i mua',
  12186. s: 'te hēkona ruarua',
  12187. ss: '%d hēkona',
  12188. m: 'he meneti',
  12189. mm: '%d meneti',
  12190. h: 'te haora',
  12191. hh: '%d haora',
  12192. d: 'he ra',
  12193. dd: '%d ra',
  12194. M: 'he marama',
  12195. MM: '%d marama',
  12196. y: 'he tau',
  12197. yy: '%d tau',
  12198. },
  12199. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12200. ordinal: '%dº',
  12201. week: {
  12202. dow: 1, // Monday is the first day of the week.
  12203. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12204. },
  12205. });
  12206. //! moment.js locale configuration
  12207. hooks.defineLocale('mk', {
  12208. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  12209. '_'
  12210. ),
  12211. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  12212. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  12213. '_'
  12214. ),
  12215. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  12216. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  12217. longDateFormat: {
  12218. LT: 'H:mm',
  12219. LTS: 'H:mm:ss',
  12220. L: 'D.MM.YYYY',
  12221. LL: 'D MMMM YYYY',
  12222. LLL: 'D MMMM YYYY H:mm',
  12223. LLLL: 'dddd, D MMMM YYYY H:mm',
  12224. },
  12225. calendar: {
  12226. sameDay: '[Денес во] LT',
  12227. nextDay: '[Утре во] LT',
  12228. nextWeek: '[Во] dddd [во] LT',
  12229. lastDay: '[Вчера во] LT',
  12230. lastWeek: function () {
  12231. switch (this.day()) {
  12232. case 0:
  12233. case 3:
  12234. case 6:
  12235. return '[Изминатата] dddd [во] LT';
  12236. case 1:
  12237. case 2:
  12238. case 4:
  12239. case 5:
  12240. return '[Изминатиот] dddd [во] LT';
  12241. }
  12242. },
  12243. sameElse: 'L',
  12244. },
  12245. relativeTime: {
  12246. future: 'за %s',
  12247. past: 'пред %s',
  12248. s: 'неколку секунди',
  12249. ss: '%d секунди',
  12250. m: 'една минута',
  12251. mm: '%d минути',
  12252. h: 'еден час',
  12253. hh: '%d часа',
  12254. d: 'еден ден',
  12255. dd: '%d дена',
  12256. M: 'еден месец',
  12257. MM: '%d месеци',
  12258. y: 'една година',
  12259. yy: '%d години',
  12260. },
  12261. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  12262. ordinal: function (number) {
  12263. var lastDigit = number % 10,
  12264. last2Digits = number % 100;
  12265. if (number === 0) {
  12266. return number + '-ев';
  12267. } else if (last2Digits === 0) {
  12268. return number + '-ен';
  12269. } else if (last2Digits > 10 && last2Digits < 20) {
  12270. return number + '-ти';
  12271. } else if (lastDigit === 1) {
  12272. return number + '-ви';
  12273. } else if (lastDigit === 2) {
  12274. return number + '-ри';
  12275. } else if (lastDigit === 7 || lastDigit === 8) {
  12276. return number + '-ми';
  12277. } else {
  12278. return number + '-ти';
  12279. }
  12280. },
  12281. week: {
  12282. dow: 1, // Monday is the first day of the week.
  12283. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12284. },
  12285. });
  12286. //! moment.js locale configuration
  12287. hooks.defineLocale('ml', {
  12288. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  12289. '_'
  12290. ),
  12291. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  12292. '_'
  12293. ),
  12294. monthsParseExact: true,
  12295. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  12296. '_'
  12297. ),
  12298. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  12299. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  12300. longDateFormat: {
  12301. LT: 'A h:mm -നു',
  12302. LTS: 'A h:mm:ss -നു',
  12303. L: 'DD/MM/YYYY',
  12304. LL: 'D MMMM YYYY',
  12305. LLL: 'D MMMM YYYY, A h:mm -നു',
  12306. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
  12307. },
  12308. calendar: {
  12309. sameDay: '[ഇന്ന്] LT',
  12310. nextDay: '[നാളെ] LT',
  12311. nextWeek: 'dddd, LT',
  12312. lastDay: '[ഇന്നലെ] LT',
  12313. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  12314. sameElse: 'L',
  12315. },
  12316. relativeTime: {
  12317. future: '%s കഴിഞ്ഞ്',
  12318. past: '%s മുൻപ്',
  12319. s: 'അൽപ നിമിഷങ്ങൾ',
  12320. ss: '%d സെക്കൻഡ്',
  12321. m: 'ഒരു മിനിറ്റ്',
  12322. mm: '%d മിനിറ്റ്',
  12323. h: 'ഒരു മണിക്കൂർ',
  12324. hh: '%d മണിക്കൂർ',
  12325. d: 'ഒരു ദിവസം',
  12326. dd: '%d ദിവസം',
  12327. M: 'ഒരു മാസം',
  12328. MM: '%d മാസം',
  12329. y: 'ഒരു വർഷം',
  12330. yy: '%d വർഷം',
  12331. },
  12332. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  12333. meridiemHour: function (hour, meridiem) {
  12334. if (hour === 12) {
  12335. hour = 0;
  12336. }
  12337. if (
  12338. (meridiem === 'രാത്രി' && hour >= 4) ||
  12339. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  12340. meridiem === 'വൈകുന്നേരം'
  12341. ) {
  12342. return hour + 12;
  12343. } else {
  12344. return hour;
  12345. }
  12346. },
  12347. meridiem: function (hour, minute, isLower) {
  12348. if (hour < 4) {
  12349. return 'രാത്രി';
  12350. } else if (hour < 12) {
  12351. return 'രാവിലെ';
  12352. } else if (hour < 17) {
  12353. return 'ഉച്ച കഴിഞ്ഞ്';
  12354. } else if (hour < 20) {
  12355. return 'വൈകുന്നേരം';
  12356. } else {
  12357. return 'രാത്രി';
  12358. }
  12359. },
  12360. });
  12361. //! moment.js locale configuration
  12362. function translate$7(number, withoutSuffix, key, isFuture) {
  12363. switch (key) {
  12364. case 's':
  12365. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  12366. case 'ss':
  12367. return number + (withoutSuffix ? ' секунд' : ' секундын');
  12368. case 'm':
  12369. case 'mm':
  12370. return number + (withoutSuffix ? ' минут' : ' минутын');
  12371. case 'h':
  12372. case 'hh':
  12373. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  12374. case 'd':
  12375. case 'dd':
  12376. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  12377. case 'M':
  12378. case 'MM':
  12379. return number + (withoutSuffix ? ' сар' : ' сарын');
  12380. case 'y':
  12381. case 'yy':
  12382. return number + (withoutSuffix ? ' жил' : ' жилийн');
  12383. default:
  12384. return number;
  12385. }
  12386. }
  12387. hooks.defineLocale('mn', {
  12388. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  12389. '_'
  12390. ),
  12391. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  12392. '_'
  12393. ),
  12394. monthsParseExact: true,
  12395. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  12396. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  12397. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  12398. weekdaysParseExact: true,
  12399. longDateFormat: {
  12400. LT: 'HH:mm',
  12401. LTS: 'HH:mm:ss',
  12402. L: 'YYYY-MM-DD',
  12403. LL: 'YYYY оны MMMMын D',
  12404. LLL: 'YYYY оны MMMMын D HH:mm',
  12405. LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
  12406. },
  12407. meridiemParse: /ҮӨ|ҮХ/i,
  12408. isPM: function (input) {
  12409. return input === 'ҮХ';
  12410. },
  12411. meridiem: function (hour, minute, isLower) {
  12412. if (hour < 12) {
  12413. return 'ҮӨ';
  12414. } else {
  12415. return 'ҮХ';
  12416. }
  12417. },
  12418. calendar: {
  12419. sameDay: '[Өнөөдөр] LT',
  12420. nextDay: '[Маргааш] LT',
  12421. nextWeek: '[Ирэх] dddd LT',
  12422. lastDay: '[Өчигдөр] LT',
  12423. lastWeek: '[Өнгөрсөн] dddd LT',
  12424. sameElse: 'L',
  12425. },
  12426. relativeTime: {
  12427. future: '%s дараа',
  12428. past: '%s өмнө',
  12429. s: translate$7,
  12430. ss: translate$7,
  12431. m: translate$7,
  12432. mm: translate$7,
  12433. h: translate$7,
  12434. hh: translate$7,
  12435. d: translate$7,
  12436. dd: translate$7,
  12437. M: translate$7,
  12438. MM: translate$7,
  12439. y: translate$7,
  12440. yy: translate$7,
  12441. },
  12442. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  12443. ordinal: function (number, period) {
  12444. switch (period) {
  12445. case 'd':
  12446. case 'D':
  12447. case 'DDD':
  12448. return number + ' өдөр';
  12449. default:
  12450. return number;
  12451. }
  12452. },
  12453. });
  12454. //! moment.js locale configuration
  12455. var symbolMap$c = {
  12456. 1: '१',
  12457. 2: '२',
  12458. 3: '३',
  12459. 4: '४',
  12460. 5: '५',
  12461. 6: '६',
  12462. 7: '७',
  12463. 8: '८',
  12464. 9: '९',
  12465. 0: '०',
  12466. },
  12467. numberMap$b = {
  12468. '१': '1',
  12469. '२': '2',
  12470. '३': '3',
  12471. '४': '4',
  12472. '५': '5',
  12473. '६': '6',
  12474. '७': '7',
  12475. '८': '8',
  12476. '९': '9',
  12477. '०': '0',
  12478. };
  12479. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  12480. var output = '';
  12481. if (withoutSuffix) {
  12482. switch (string) {
  12483. case 's':
  12484. output = 'काही सेकंद';
  12485. break;
  12486. case 'ss':
  12487. output = '%d सेकंद';
  12488. break;
  12489. case 'm':
  12490. output = 'एक मिनिट';
  12491. break;
  12492. case 'mm':
  12493. output = '%d मिनिटे';
  12494. break;
  12495. case 'h':
  12496. output = 'एक तास';
  12497. break;
  12498. case 'hh':
  12499. output = '%d तास';
  12500. break;
  12501. case 'd':
  12502. output = 'एक दिवस';
  12503. break;
  12504. case 'dd':
  12505. output = '%d दिवस';
  12506. break;
  12507. case 'M':
  12508. output = 'एक महिना';
  12509. break;
  12510. case 'MM':
  12511. output = '%d महिने';
  12512. break;
  12513. case 'y':
  12514. output = 'एक वर्ष';
  12515. break;
  12516. case 'yy':
  12517. output = '%d वर्षे';
  12518. break;
  12519. }
  12520. } else {
  12521. switch (string) {
  12522. case 's':
  12523. output = 'काही सेकंदां';
  12524. break;
  12525. case 'ss':
  12526. output = '%d सेकंदां';
  12527. break;
  12528. case 'm':
  12529. output = 'एका मिनिटा';
  12530. break;
  12531. case 'mm':
  12532. output = '%d मिनिटां';
  12533. break;
  12534. case 'h':
  12535. output = 'एका तासा';
  12536. break;
  12537. case 'hh':
  12538. output = '%d तासां';
  12539. break;
  12540. case 'd':
  12541. output = 'एका दिवसा';
  12542. break;
  12543. case 'dd':
  12544. output = '%d दिवसां';
  12545. break;
  12546. case 'M':
  12547. output = 'एका महिन्या';
  12548. break;
  12549. case 'MM':
  12550. output = '%d महिन्यां';
  12551. break;
  12552. case 'y':
  12553. output = 'एका वर्षा';
  12554. break;
  12555. case 'yy':
  12556. output = '%d वर्षां';
  12557. break;
  12558. }
  12559. }
  12560. return output.replace(/%d/i, number);
  12561. }
  12562. hooks.defineLocale('mr', {
  12563. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  12564. '_'
  12565. ),
  12566. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  12567. '_'
  12568. ),
  12569. monthsParseExact: true,
  12570. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12571. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12572. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12573. longDateFormat: {
  12574. LT: 'A h:mm वाजता',
  12575. LTS: 'A h:mm:ss वाजता',
  12576. L: 'DD/MM/YYYY',
  12577. LL: 'D MMMM YYYY',
  12578. LLL: 'D MMMM YYYY, A h:mm वाजता',
  12579. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
  12580. },
  12581. calendar: {
  12582. sameDay: '[आज] LT',
  12583. nextDay: '[उद्या] LT',
  12584. nextWeek: 'dddd, LT',
  12585. lastDay: '[काल] LT',
  12586. lastWeek: '[मागील] dddd, LT',
  12587. sameElse: 'L',
  12588. },
  12589. relativeTime: {
  12590. future: '%sमध्ये',
  12591. past: '%sपूर्वी',
  12592. s: relativeTimeMr,
  12593. ss: relativeTimeMr,
  12594. m: relativeTimeMr,
  12595. mm: relativeTimeMr,
  12596. h: relativeTimeMr,
  12597. hh: relativeTimeMr,
  12598. d: relativeTimeMr,
  12599. dd: relativeTimeMr,
  12600. M: relativeTimeMr,
  12601. MM: relativeTimeMr,
  12602. y: relativeTimeMr,
  12603. yy: relativeTimeMr,
  12604. },
  12605. preparse: function (string) {
  12606. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12607. return numberMap$b[match];
  12608. });
  12609. },
  12610. postformat: function (string) {
  12611. return string.replace(/\d/g, function (match) {
  12612. return symbolMap$c[match];
  12613. });
  12614. },
  12615. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  12616. meridiemHour: function (hour, meridiem) {
  12617. if (hour === 12) {
  12618. hour = 0;
  12619. }
  12620. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  12621. return hour;
  12622. } else if (
  12623. meridiem === 'दुपारी' ||
  12624. meridiem === 'सायंकाळी' ||
  12625. meridiem === 'रात्री'
  12626. ) {
  12627. return hour >= 12 ? hour : hour + 12;
  12628. }
  12629. },
  12630. meridiem: function (hour, minute, isLower) {
  12631. if (hour >= 0 && hour < 6) {
  12632. return 'पहाटे';
  12633. } else if (hour < 12) {
  12634. return 'सकाळी';
  12635. } else if (hour < 17) {
  12636. return 'दुपारी';
  12637. } else if (hour < 20) {
  12638. return 'सायंकाळी';
  12639. } else {
  12640. return 'रात्री';
  12641. }
  12642. },
  12643. week: {
  12644. dow: 0, // Sunday is the first day of the week.
  12645. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12646. },
  12647. });
  12648. //! moment.js locale configuration
  12649. hooks.defineLocale('ms-my', {
  12650. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12651. '_'
  12652. ),
  12653. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12654. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12655. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12656. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12657. longDateFormat: {
  12658. LT: 'HH.mm',
  12659. LTS: 'HH.mm.ss',
  12660. L: 'DD/MM/YYYY',
  12661. LL: 'D MMMM YYYY',
  12662. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12663. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12664. },
  12665. meridiemParse: /pagi|tengahari|petang|malam/,
  12666. meridiemHour: function (hour, meridiem) {
  12667. if (hour === 12) {
  12668. hour = 0;
  12669. }
  12670. if (meridiem === 'pagi') {
  12671. return hour;
  12672. } else if (meridiem === 'tengahari') {
  12673. return hour >= 11 ? hour : hour + 12;
  12674. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12675. return hour + 12;
  12676. }
  12677. },
  12678. meridiem: function (hours, minutes, isLower) {
  12679. if (hours < 11) {
  12680. return 'pagi';
  12681. } else if (hours < 15) {
  12682. return 'tengahari';
  12683. } else if (hours < 19) {
  12684. return 'petang';
  12685. } else {
  12686. return 'malam';
  12687. }
  12688. },
  12689. calendar: {
  12690. sameDay: '[Hari ini pukul] LT',
  12691. nextDay: '[Esok pukul] LT',
  12692. nextWeek: 'dddd [pukul] LT',
  12693. lastDay: '[Kelmarin pukul] LT',
  12694. lastWeek: 'dddd [lepas pukul] LT',
  12695. sameElse: 'L',
  12696. },
  12697. relativeTime: {
  12698. future: 'dalam %s',
  12699. past: '%s yang lepas',
  12700. s: 'beberapa saat',
  12701. ss: '%d saat',
  12702. m: 'seminit',
  12703. mm: '%d minit',
  12704. h: 'sejam',
  12705. hh: '%d jam',
  12706. d: 'sehari',
  12707. dd: '%d hari',
  12708. M: 'sebulan',
  12709. MM: '%d bulan',
  12710. y: 'setahun',
  12711. yy: '%d tahun',
  12712. },
  12713. week: {
  12714. dow: 1, // Monday is the first day of the week.
  12715. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12716. },
  12717. });
  12718. //! moment.js locale configuration
  12719. hooks.defineLocale('ms', {
  12720. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12721. '_'
  12722. ),
  12723. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12724. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12725. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12726. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12727. longDateFormat: {
  12728. LT: 'HH.mm',
  12729. LTS: 'HH.mm.ss',
  12730. L: 'DD/MM/YYYY',
  12731. LL: 'D MMMM YYYY',
  12732. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12733. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12734. },
  12735. meridiemParse: /pagi|tengahari|petang|malam/,
  12736. meridiemHour: function (hour, meridiem) {
  12737. if (hour === 12) {
  12738. hour = 0;
  12739. }
  12740. if (meridiem === 'pagi') {
  12741. return hour;
  12742. } else if (meridiem === 'tengahari') {
  12743. return hour >= 11 ? hour : hour + 12;
  12744. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12745. return hour + 12;
  12746. }
  12747. },
  12748. meridiem: function (hours, minutes, isLower) {
  12749. if (hours < 11) {
  12750. return 'pagi';
  12751. } else if (hours < 15) {
  12752. return 'tengahari';
  12753. } else if (hours < 19) {
  12754. return 'petang';
  12755. } else {
  12756. return 'malam';
  12757. }
  12758. },
  12759. calendar: {
  12760. sameDay: '[Hari ini pukul] LT',
  12761. nextDay: '[Esok pukul] LT',
  12762. nextWeek: 'dddd [pukul] LT',
  12763. lastDay: '[Kelmarin pukul] LT',
  12764. lastWeek: 'dddd [lepas pukul] LT',
  12765. sameElse: 'L',
  12766. },
  12767. relativeTime: {
  12768. future: 'dalam %s',
  12769. past: '%s yang lepas',
  12770. s: 'beberapa saat',
  12771. ss: '%d saat',
  12772. m: 'seminit',
  12773. mm: '%d minit',
  12774. h: 'sejam',
  12775. hh: '%d jam',
  12776. d: 'sehari',
  12777. dd: '%d hari',
  12778. M: 'sebulan',
  12779. MM: '%d bulan',
  12780. y: 'setahun',
  12781. yy: '%d tahun',
  12782. },
  12783. week: {
  12784. dow: 1, // Monday is the first day of the week.
  12785. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12786. },
  12787. });
  12788. //! moment.js locale configuration
  12789. hooks.defineLocale('mt', {
  12790. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  12791. '_'
  12792. ),
  12793. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  12794. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  12795. '_'
  12796. ),
  12797. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  12798. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  12799. longDateFormat: {
  12800. LT: 'HH:mm',
  12801. LTS: 'HH:mm:ss',
  12802. L: 'DD/MM/YYYY',
  12803. LL: 'D MMMM YYYY',
  12804. LLL: 'D MMMM YYYY HH:mm',
  12805. LLLL: 'dddd, D MMMM YYYY HH:mm',
  12806. },
  12807. calendar: {
  12808. sameDay: '[Illum fil-]LT',
  12809. nextDay: '[Għada fil-]LT',
  12810. nextWeek: 'dddd [fil-]LT',
  12811. lastDay: '[Il-bieraħ fil-]LT',
  12812. lastWeek: 'dddd [li għadda] [fil-]LT',
  12813. sameElse: 'L',
  12814. },
  12815. relativeTime: {
  12816. future: 'f’ %s',
  12817. past: '%s ilu',
  12818. s: 'ftit sekondi',
  12819. ss: '%d sekondi',
  12820. m: 'minuta',
  12821. mm: '%d minuti',
  12822. h: 'siegħa',
  12823. hh: '%d siegħat',
  12824. d: 'ġurnata',
  12825. dd: '%d ġranet',
  12826. M: 'xahar',
  12827. MM: '%d xhur',
  12828. y: 'sena',
  12829. yy: '%d sni',
  12830. },
  12831. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12832. ordinal: '%dº',
  12833. week: {
  12834. dow: 1, // Monday is the first day of the week.
  12835. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12836. },
  12837. });
  12838. //! moment.js locale configuration
  12839. var symbolMap$d = {
  12840. 1: '၁',
  12841. 2: '၂',
  12842. 3: '၃',
  12843. 4: '၄',
  12844. 5: '၅',
  12845. 6: '၆',
  12846. 7: '၇',
  12847. 8: '၈',
  12848. 9: '၉',
  12849. 0: '၀',
  12850. },
  12851. numberMap$c = {
  12852. '၁': '1',
  12853. '၂': '2',
  12854. '၃': '3',
  12855. '၄': '4',
  12856. '၅': '5',
  12857. '၆': '6',
  12858. '၇': '7',
  12859. '၈': '8',
  12860. '၉': '9',
  12861. '၀': '0',
  12862. };
  12863. hooks.defineLocale('my', {
  12864. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  12865. '_'
  12866. ),
  12867. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12868. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  12869. '_'
  12870. ),
  12871. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12872. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12873. longDateFormat: {
  12874. LT: 'HH:mm',
  12875. LTS: 'HH:mm:ss',
  12876. L: 'DD/MM/YYYY',
  12877. LL: 'D MMMM YYYY',
  12878. LLL: 'D MMMM YYYY HH:mm',
  12879. LLLL: 'dddd D MMMM YYYY HH:mm',
  12880. },
  12881. calendar: {
  12882. sameDay: '[ယနေ.] LT [မှာ]',
  12883. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12884. nextWeek: 'dddd LT [မှာ]',
  12885. lastDay: '[မနေ.က] LT [မှာ]',
  12886. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12887. sameElse: 'L',
  12888. },
  12889. relativeTime: {
  12890. future: 'လာမည့် %s မှာ',
  12891. past: 'လွန်ခဲ့သော %s က',
  12892. s: 'စက္ကန်.အနည်းငယ်',
  12893. ss: '%d စက္ကန့်',
  12894. m: 'တစ်မိနစ်',
  12895. mm: '%d မိနစ်',
  12896. h: 'တစ်နာရီ',
  12897. hh: '%d နာရီ',
  12898. d: 'တစ်ရက်',
  12899. dd: '%d ရက်',
  12900. M: 'တစ်လ',
  12901. MM: '%d လ',
  12902. y: 'တစ်နှစ်',
  12903. yy: '%d နှစ်',
  12904. },
  12905. preparse: function (string) {
  12906. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  12907. return numberMap$c[match];
  12908. });
  12909. },
  12910. postformat: function (string) {
  12911. return string.replace(/\d/g, function (match) {
  12912. return symbolMap$d[match];
  12913. });
  12914. },
  12915. week: {
  12916. dow: 1, // Monday is the first day of the week.
  12917. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12918. },
  12919. });
  12920. //! moment.js locale configuration
  12921. hooks.defineLocale('nb', {
  12922. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12923. '_'
  12924. ),
  12925. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  12926. '_'
  12927. ),
  12928. monthsParseExact: true,
  12929. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  12930. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  12931. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  12932. weekdaysParseExact: true,
  12933. longDateFormat: {
  12934. LT: 'HH:mm',
  12935. LTS: 'HH:mm:ss',
  12936. L: 'DD.MM.YYYY',
  12937. LL: 'D. MMMM YYYY',
  12938. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  12939. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  12940. },
  12941. calendar: {
  12942. sameDay: '[i dag kl.] LT',
  12943. nextDay: '[i morgen kl.] LT',
  12944. nextWeek: 'dddd [kl.] LT',
  12945. lastDay: '[i går kl.] LT',
  12946. lastWeek: '[forrige] dddd [kl.] LT',
  12947. sameElse: 'L',
  12948. },
  12949. relativeTime: {
  12950. future: 'om %s',
  12951. past: '%s siden',
  12952. s: 'noen sekunder',
  12953. ss: '%d sekunder',
  12954. m: 'ett minutt',
  12955. mm: '%d minutter',
  12956. h: 'en time',
  12957. hh: '%d timer',
  12958. d: 'en dag',
  12959. dd: '%d dager',
  12960. w: 'en uke',
  12961. ww: '%d uker',
  12962. M: 'en måned',
  12963. MM: '%d måneder',
  12964. y: 'ett år',
  12965. yy: '%d år',
  12966. },
  12967. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12968. ordinal: '%d.',
  12969. week: {
  12970. dow: 1, // Monday is the first day of the week.
  12971. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12972. },
  12973. });
  12974. //! moment.js locale configuration
  12975. var symbolMap$e = {
  12976. 1: '१',
  12977. 2: '२',
  12978. 3: '३',
  12979. 4: '४',
  12980. 5: '५',
  12981. 6: '६',
  12982. 7: '७',
  12983. 8: '८',
  12984. 9: '९',
  12985. 0: '०',
  12986. },
  12987. numberMap$d = {
  12988. '१': '1',
  12989. '२': '2',
  12990. '३': '3',
  12991. '४': '4',
  12992. '५': '5',
  12993. '६': '6',
  12994. '७': '7',
  12995. '८': '8',
  12996. '९': '9',
  12997. '०': '0',
  12998. };
  12999. hooks.defineLocale('ne', {
  13000. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  13001. '_'
  13002. ),
  13003. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  13004. '_'
  13005. ),
  13006. monthsParseExact: true,
  13007. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  13008. '_'
  13009. ),
  13010. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  13011. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  13012. weekdaysParseExact: true,
  13013. longDateFormat: {
  13014. LT: 'Aको h:mm बजे',
  13015. LTS: 'Aको h:mm:ss बजे',
  13016. L: 'DD/MM/YYYY',
  13017. LL: 'D MMMM YYYY',
  13018. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  13019. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  13020. },
  13021. preparse: function (string) {
  13022. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  13023. return numberMap$d[match];
  13024. });
  13025. },
  13026. postformat: function (string) {
  13027. return string.replace(/\d/g, function (match) {
  13028. return symbolMap$e[match];
  13029. });
  13030. },
  13031. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  13032. meridiemHour: function (hour, meridiem) {
  13033. if (hour === 12) {
  13034. hour = 0;
  13035. }
  13036. if (meridiem === 'राति') {
  13037. return hour < 4 ? hour : hour + 12;
  13038. } else if (meridiem === 'बिहान') {
  13039. return hour;
  13040. } else if (meridiem === 'दिउँसो') {
  13041. return hour >= 10 ? hour : hour + 12;
  13042. } else if (meridiem === 'साँझ') {
  13043. return hour + 12;
  13044. }
  13045. },
  13046. meridiem: function (hour, minute, isLower) {
  13047. if (hour < 3) {
  13048. return 'राति';
  13049. } else if (hour < 12) {
  13050. return 'बिहान';
  13051. } else if (hour < 16) {
  13052. return 'दिउँसो';
  13053. } else if (hour < 20) {
  13054. return 'साँझ';
  13055. } else {
  13056. return 'राति';
  13057. }
  13058. },
  13059. calendar: {
  13060. sameDay: '[आज] LT',
  13061. nextDay: '[भोलि] LT',
  13062. nextWeek: '[आउँदो] dddd[,] LT',
  13063. lastDay: '[हिजो] LT',
  13064. lastWeek: '[गएको] dddd[,] LT',
  13065. sameElse: 'L',
  13066. },
  13067. relativeTime: {
  13068. future: '%sमा',
  13069. past: '%s अगाडि',
  13070. s: 'केही क्षण',
  13071. ss: '%d सेकेण्ड',
  13072. m: 'एक मिनेट',
  13073. mm: '%d मिनेट',
  13074. h: 'एक घण्टा',
  13075. hh: '%d घण्टा',
  13076. d: 'एक दिन',
  13077. dd: '%d दिन',
  13078. M: 'एक महिना',
  13079. MM: '%d महिना',
  13080. y: 'एक बर्ष',
  13081. yy: '%d बर्ष',
  13082. },
  13083. week: {
  13084. dow: 0, // Sunday is the first day of the week.
  13085. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13086. },
  13087. });
  13088. //! moment.js locale configuration
  13089. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  13090. '_'
  13091. ),
  13092. monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  13093. '_'
  13094. ),
  13095. monthsParse$8 = [
  13096. /^jan/i,
  13097. /^feb/i,
  13098. /^maart|mrt.?$/i,
  13099. /^apr/i,
  13100. /^mei$/i,
  13101. /^jun[i.]?$/i,
  13102. /^jul[i.]?$/i,
  13103. /^aug/i,
  13104. /^sep/i,
  13105. /^okt/i,
  13106. /^nov/i,
  13107. /^dec/i,
  13108. ],
  13109. monthsRegex$8 = /^(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;
  13110. hooks.defineLocale('nl-be', {
  13111. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13112. '_'
  13113. ),
  13114. monthsShort: function (m, format) {
  13115. if (!m) {
  13116. return monthsShortWithDots$1;
  13117. } else if (/-MMM-/.test(format)) {
  13118. return monthsShortWithoutDots$1[m.month()];
  13119. } else {
  13120. return monthsShortWithDots$1[m.month()];
  13121. }
  13122. },
  13123. monthsRegex: monthsRegex$8,
  13124. monthsShortRegex: monthsRegex$8,
  13125. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13126. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13127. monthsParse: monthsParse$8,
  13128. longMonthsParse: monthsParse$8,
  13129. shortMonthsParse: monthsParse$8,
  13130. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  13131. '_'
  13132. ),
  13133. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13134. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13135. weekdaysParseExact: true,
  13136. longDateFormat: {
  13137. LT: 'HH:mm',
  13138. LTS: 'HH:mm:ss',
  13139. L: 'DD/MM/YYYY',
  13140. LL: 'D MMMM YYYY',
  13141. LLL: 'D MMMM YYYY HH:mm',
  13142. LLLL: 'dddd D MMMM YYYY HH:mm',
  13143. },
  13144. calendar: {
  13145. sameDay: '[vandaag om] LT',
  13146. nextDay: '[morgen om] LT',
  13147. nextWeek: 'dddd [om] LT',
  13148. lastDay: '[gisteren om] LT',
  13149. lastWeek: '[afgelopen] dddd [om] LT',
  13150. sameElse: 'L',
  13151. },
  13152. relativeTime: {
  13153. future: 'over %s',
  13154. past: '%s geleden',
  13155. s: 'een paar seconden',
  13156. ss: '%d seconden',
  13157. m: 'één minuut',
  13158. mm: '%d minuten',
  13159. h: 'één uur',
  13160. hh: '%d uur',
  13161. d: 'één dag',
  13162. dd: '%d dagen',
  13163. M: 'één maand',
  13164. MM: '%d maanden',
  13165. y: 'één jaar',
  13166. yy: '%d jaar',
  13167. },
  13168. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13169. ordinal: function (number) {
  13170. return (
  13171. number +
  13172. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13173. );
  13174. },
  13175. week: {
  13176. dow: 1, // Monday is the first day of the week.
  13177. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13178. },
  13179. });
  13180. //! moment.js locale configuration
  13181. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  13182. '_'
  13183. ),
  13184. monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  13185. '_'
  13186. ),
  13187. monthsParse$9 = [
  13188. /^jan/i,
  13189. /^feb/i,
  13190. /^maart|mrt.?$/i,
  13191. /^apr/i,
  13192. /^mei$/i,
  13193. /^jun[i.]?$/i,
  13194. /^jul[i.]?$/i,
  13195. /^aug/i,
  13196. /^sep/i,
  13197. /^okt/i,
  13198. /^nov/i,
  13199. /^dec/i,
  13200. ],
  13201. monthsRegex$9 = /^(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;
  13202. hooks.defineLocale('nl', {
  13203. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13204. '_'
  13205. ),
  13206. monthsShort: function (m, format) {
  13207. if (!m) {
  13208. return monthsShortWithDots$2;
  13209. } else if (/-MMM-/.test(format)) {
  13210. return monthsShortWithoutDots$2[m.month()];
  13211. } else {
  13212. return monthsShortWithDots$2[m.month()];
  13213. }
  13214. },
  13215. monthsRegex: monthsRegex$9,
  13216. monthsShortRegex: monthsRegex$9,
  13217. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13218. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13219. monthsParse: monthsParse$9,
  13220. longMonthsParse: monthsParse$9,
  13221. shortMonthsParse: monthsParse$9,
  13222. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  13223. '_'
  13224. ),
  13225. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13226. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13227. weekdaysParseExact: true,
  13228. longDateFormat: {
  13229. LT: 'HH:mm',
  13230. LTS: 'HH:mm:ss',
  13231. L: 'DD-MM-YYYY',
  13232. LL: 'D MMMM YYYY',
  13233. LLL: 'D MMMM YYYY HH:mm',
  13234. LLLL: 'dddd D MMMM YYYY HH:mm',
  13235. },
  13236. calendar: {
  13237. sameDay: '[vandaag om] LT',
  13238. nextDay: '[morgen om] LT',
  13239. nextWeek: 'dddd [om] LT',
  13240. lastDay: '[gisteren om] LT',
  13241. lastWeek: '[afgelopen] dddd [om] LT',
  13242. sameElse: 'L',
  13243. },
  13244. relativeTime: {
  13245. future: 'over %s',
  13246. past: '%s geleden',
  13247. s: 'een paar seconden',
  13248. ss: '%d seconden',
  13249. m: 'één minuut',
  13250. mm: '%d minuten',
  13251. h: 'één uur',
  13252. hh: '%d uur',
  13253. d: 'één dag',
  13254. dd: '%d dagen',
  13255. w: 'één week',
  13256. ww: '%d weken',
  13257. M: 'één maand',
  13258. MM: '%d maanden',
  13259. y: 'één jaar',
  13260. yy: '%d jaar',
  13261. },
  13262. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13263. ordinal: function (number) {
  13264. return (
  13265. number +
  13266. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13267. );
  13268. },
  13269. week: {
  13270. dow: 1, // Monday is the first day of the week.
  13271. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13272. },
  13273. });
  13274. //! moment.js locale configuration
  13275. hooks.defineLocale('nn', {
  13276. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  13277. '_'
  13278. ),
  13279. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  13280. '_'
  13281. ),
  13282. monthsParseExact: true,
  13283. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  13284. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  13285. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  13286. weekdaysParseExact: true,
  13287. longDateFormat: {
  13288. LT: 'HH:mm',
  13289. LTS: 'HH:mm:ss',
  13290. L: 'DD.MM.YYYY',
  13291. LL: 'D. MMMM YYYY',
  13292. LLL: 'D. MMMM YYYY [kl.] H:mm',
  13293. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13294. },
  13295. calendar: {
  13296. sameDay: '[I dag klokka] LT',
  13297. nextDay: '[I morgon klokka] LT',
  13298. nextWeek: 'dddd [klokka] LT',
  13299. lastDay: '[I går klokka] LT',
  13300. lastWeek: '[Føregåande] dddd [klokka] LT',
  13301. sameElse: 'L',
  13302. },
  13303. relativeTime: {
  13304. future: 'om %s',
  13305. past: '%s sidan',
  13306. s: 'nokre sekund',
  13307. ss: '%d sekund',
  13308. m: 'eit minutt',
  13309. mm: '%d minutt',
  13310. h: 'ein time',
  13311. hh: '%d timar',
  13312. d: 'ein dag',
  13313. dd: '%d dagar',
  13314. w: 'ei veke',
  13315. ww: '%d veker',
  13316. M: 'ein månad',
  13317. MM: '%d månader',
  13318. y: 'eit år',
  13319. yy: '%d år',
  13320. },
  13321. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13322. ordinal: '%d.',
  13323. week: {
  13324. dow: 1, // Monday is the first day of the week.
  13325. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13326. },
  13327. });
  13328. //! moment.js locale configuration
  13329. hooks.defineLocale('oc-lnc', {
  13330. months: {
  13331. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  13332. '_'
  13333. ),
  13334. 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(
  13335. '_'
  13336. ),
  13337. isFormat: /D[oD]?(\s)+MMMM/,
  13338. },
  13339. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  13340. '_'
  13341. ),
  13342. monthsParseExact: true,
  13343. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  13344. '_'
  13345. ),
  13346. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  13347. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  13348. weekdaysParseExact: true,
  13349. longDateFormat: {
  13350. LT: 'H:mm',
  13351. LTS: 'H:mm:ss',
  13352. L: 'DD/MM/YYYY',
  13353. LL: 'D MMMM [de] YYYY',
  13354. ll: 'D MMM YYYY',
  13355. LLL: 'D MMMM [de] YYYY [a] H:mm',
  13356. lll: 'D MMM YYYY, H:mm',
  13357. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  13358. llll: 'ddd D MMM YYYY, H:mm',
  13359. },
  13360. calendar: {
  13361. sameDay: '[uèi a] LT',
  13362. nextDay: '[deman a] LT',
  13363. nextWeek: 'dddd [a] LT',
  13364. lastDay: '[ièr a] LT',
  13365. lastWeek: 'dddd [passat a] LT',
  13366. sameElse: 'L',
  13367. },
  13368. relativeTime: {
  13369. future: "d'aquí %s",
  13370. past: 'fa %s',
  13371. s: 'unas segondas',
  13372. ss: '%d segondas',
  13373. m: 'una minuta',
  13374. mm: '%d minutas',
  13375. h: 'una ora',
  13376. hh: '%d oras',
  13377. d: 'un jorn',
  13378. dd: '%d jorns',
  13379. M: 'un mes',
  13380. MM: '%d meses',
  13381. y: 'un an',
  13382. yy: '%d ans',
  13383. },
  13384. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  13385. ordinal: function (number, period) {
  13386. var output =
  13387. number === 1
  13388. ? 'r'
  13389. : number === 2
  13390. ? 'n'
  13391. : number === 3
  13392. ? 'r'
  13393. : number === 4
  13394. ? 't'
  13395. : 'è';
  13396. if (period === 'w' || period === 'W') {
  13397. output = 'a';
  13398. }
  13399. return number + output;
  13400. },
  13401. week: {
  13402. dow: 1, // Monday is the first day of the week.
  13403. doy: 4,
  13404. },
  13405. });
  13406. //! moment.js locale configuration
  13407. var symbolMap$f = {
  13408. 1: '੧',
  13409. 2: '੨',
  13410. 3: '੩',
  13411. 4: '੪',
  13412. 5: '੫',
  13413. 6: '੬',
  13414. 7: '੭',
  13415. 8: '੮',
  13416. 9: '੯',
  13417. 0: '੦',
  13418. },
  13419. numberMap$e = {
  13420. '੧': '1',
  13421. '੨': '2',
  13422. '੩': '3',
  13423. '੪': '4',
  13424. '੫': '5',
  13425. '੬': '6',
  13426. '੭': '7',
  13427. '੮': '8',
  13428. '੯': '9',
  13429. '੦': '0',
  13430. };
  13431. hooks.defineLocale('pa-in', {
  13432. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  13433. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13434. '_'
  13435. ),
  13436. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13437. '_'
  13438. ),
  13439. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  13440. '_'
  13441. ),
  13442. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13443. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13444. longDateFormat: {
  13445. LT: 'A h:mm ਵਜੇ',
  13446. LTS: 'A h:mm:ss ਵਜੇ',
  13447. L: 'DD/MM/YYYY',
  13448. LL: 'D MMMM YYYY',
  13449. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  13450. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
  13451. },
  13452. calendar: {
  13453. sameDay: '[ਅਜ] LT',
  13454. nextDay: '[ਕਲ] LT',
  13455. nextWeek: '[ਅਗਲਾ] dddd, LT',
  13456. lastDay: '[ਕਲ] LT',
  13457. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  13458. sameElse: 'L',
  13459. },
  13460. relativeTime: {
  13461. future: '%s ਵਿੱਚ',
  13462. past: '%s ਪਿਛਲੇ',
  13463. s: 'ਕੁਝ ਸਕਿੰਟ',
  13464. ss: '%d ਸਕਿੰਟ',
  13465. m: 'ਇਕ ਮਿੰਟ',
  13466. mm: '%d ਮਿੰਟ',
  13467. h: 'ਇੱਕ ਘੰਟਾ',
  13468. hh: '%d ਘੰਟੇ',
  13469. d: 'ਇੱਕ ਦਿਨ',
  13470. dd: '%d ਦਿਨ',
  13471. M: 'ਇੱਕ ਮਹੀਨਾ',
  13472. MM: '%d ਮਹੀਨੇ',
  13473. y: 'ਇੱਕ ਸਾਲ',
  13474. yy: '%d ਸਾਲ',
  13475. },
  13476. preparse: function (string) {
  13477. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13478. return numberMap$e[match];
  13479. });
  13480. },
  13481. postformat: function (string) {
  13482. return string.replace(/\d/g, function (match) {
  13483. return symbolMap$f[match];
  13484. });
  13485. },
  13486. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13487. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13488. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13489. meridiemHour: function (hour, meridiem) {
  13490. if (hour === 12) {
  13491. hour = 0;
  13492. }
  13493. if (meridiem === 'ਰਾਤ') {
  13494. return hour < 4 ? hour : hour + 12;
  13495. } else if (meridiem === 'ਸਵੇਰ') {
  13496. return hour;
  13497. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13498. return hour >= 10 ? hour : hour + 12;
  13499. } else if (meridiem === 'ਸ਼ਾਮ') {
  13500. return hour + 12;
  13501. }
  13502. },
  13503. meridiem: function (hour, minute, isLower) {
  13504. if (hour < 4) {
  13505. return 'ਰਾਤ';
  13506. } else if (hour < 10) {
  13507. return 'ਸਵੇਰ';
  13508. } else if (hour < 17) {
  13509. return 'ਦੁਪਹਿਰ';
  13510. } else if (hour < 20) {
  13511. return 'ਸ਼ਾਮ';
  13512. } else {
  13513. return 'ਰਾਤ';
  13514. }
  13515. },
  13516. week: {
  13517. dow: 0, // Sunday is the first day of the week.
  13518. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13519. },
  13520. });
  13521. //! moment.js locale configuration
  13522. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  13523. '_'
  13524. ),
  13525. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  13526. '_'
  13527. ),
  13528. monthsParse$a = [
  13529. /^sty/i,
  13530. /^lut/i,
  13531. /^mar/i,
  13532. /^kwi/i,
  13533. /^maj/i,
  13534. /^cze/i,
  13535. /^lip/i,
  13536. /^sie/i,
  13537. /^wrz/i,
  13538. /^paź/i,
  13539. /^lis/i,
  13540. /^gru/i,
  13541. ];
  13542. function plural$3(n) {
  13543. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  13544. }
  13545. function translate$8(number, withoutSuffix, key) {
  13546. var result = number + ' ';
  13547. switch (key) {
  13548. case 'ss':
  13549. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  13550. case 'm':
  13551. return withoutSuffix ? 'minuta' : 'minutę';
  13552. case 'mm':
  13553. return result + (plural$3(number) ? 'minuty' : 'minut');
  13554. case 'h':
  13555. return withoutSuffix ? 'godzina' : 'godzinę';
  13556. case 'hh':
  13557. return result + (plural$3(number) ? 'godziny' : 'godzin');
  13558. case 'ww':
  13559. return result + (plural$3(number) ? 'tygodnie' : 'tygodni');
  13560. case 'MM':
  13561. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  13562. case 'yy':
  13563. return result + (plural$3(number) ? 'lata' : 'lat');
  13564. }
  13565. }
  13566. hooks.defineLocale('pl', {
  13567. months: function (momentToFormat, format) {
  13568. if (!momentToFormat) {
  13569. return monthsNominative;
  13570. } else if (/D MMMM/.test(format)) {
  13571. return monthsSubjective[momentToFormat.month()];
  13572. } else {
  13573. return monthsNominative[momentToFormat.month()];
  13574. }
  13575. },
  13576. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13577. monthsParse: monthsParse$a,
  13578. longMonthsParse: monthsParse$a,
  13579. shortMonthsParse: monthsParse$a,
  13580. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
  13581. '_'
  13582. ),
  13583. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13584. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13585. longDateFormat: {
  13586. LT: 'HH:mm',
  13587. LTS: 'HH:mm:ss',
  13588. L: 'DD.MM.YYYY',
  13589. LL: 'D MMMM YYYY',
  13590. LLL: 'D MMMM YYYY HH:mm',
  13591. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13592. },
  13593. calendar: {
  13594. sameDay: '[Dziś o] LT',
  13595. nextDay: '[Jutro o] LT',
  13596. nextWeek: function () {
  13597. switch (this.day()) {
  13598. case 0:
  13599. return '[W niedzielę o] LT';
  13600. case 2:
  13601. return '[We wtorek o] LT';
  13602. case 3:
  13603. return '[W środę o] LT';
  13604. case 6:
  13605. return '[W sobotę o] LT';
  13606. default:
  13607. return '[W] dddd [o] LT';
  13608. }
  13609. },
  13610. lastDay: '[Wczoraj o] LT',
  13611. lastWeek: function () {
  13612. switch (this.day()) {
  13613. case 0:
  13614. return '[W zeszłą niedzielę o] LT';
  13615. case 3:
  13616. return '[W zeszłą środę o] LT';
  13617. case 6:
  13618. return '[W zeszłą sobotę o] LT';
  13619. default:
  13620. return '[W zeszły] dddd [o] LT';
  13621. }
  13622. },
  13623. sameElse: 'L',
  13624. },
  13625. relativeTime: {
  13626. future: 'za %s',
  13627. past: '%s temu',
  13628. s: 'kilka sekund',
  13629. ss: translate$8,
  13630. m: translate$8,
  13631. mm: translate$8,
  13632. h: translate$8,
  13633. hh: translate$8,
  13634. d: '1 dzień',
  13635. dd: '%d dni',
  13636. w: 'tydzień',
  13637. ww: translate$8,
  13638. M: 'miesiąc',
  13639. MM: translate$8,
  13640. y: 'rok',
  13641. yy: translate$8,
  13642. },
  13643. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13644. ordinal: '%d.',
  13645. week: {
  13646. dow: 1, // Monday is the first day of the week.
  13647. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13648. },
  13649. });
  13650. //! moment.js locale configuration
  13651. hooks.defineLocale('pt-br', {
  13652. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13653. '_'
  13654. ),
  13655. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13656. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  13657. '_'
  13658. ),
  13659. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  13660. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  13661. weekdaysParseExact: true,
  13662. longDateFormat: {
  13663. LT: 'HH:mm',
  13664. LTS: 'HH:mm:ss',
  13665. L: 'DD/MM/YYYY',
  13666. LL: 'D [de] MMMM [de] YYYY',
  13667. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  13668. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
  13669. },
  13670. calendar: {
  13671. sameDay: '[Hoje às] LT',
  13672. nextDay: '[Amanhã às] LT',
  13673. nextWeek: 'dddd [às] LT',
  13674. lastDay: '[Ontem às] LT',
  13675. lastWeek: function () {
  13676. return this.day() === 0 || this.day() === 6
  13677. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13678. : '[Última] dddd [às] LT'; // Monday - Friday
  13679. },
  13680. sameElse: 'L',
  13681. },
  13682. relativeTime: {
  13683. future: 'em %s',
  13684. past: 'há %s',
  13685. s: 'poucos segundos',
  13686. ss: '%d segundos',
  13687. m: 'um minuto',
  13688. mm: '%d minutos',
  13689. h: 'uma hora',
  13690. hh: '%d horas',
  13691. d: 'um dia',
  13692. dd: '%d dias',
  13693. M: 'um mês',
  13694. MM: '%d meses',
  13695. y: 'um ano',
  13696. yy: '%d anos',
  13697. },
  13698. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13699. ordinal: '%dº',
  13700. invalidDate: 'Data inválida',
  13701. });
  13702. //! moment.js locale configuration
  13703. hooks.defineLocale('pt', {
  13704. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13705. '_'
  13706. ),
  13707. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13708. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  13709. '_'
  13710. ),
  13711. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13712. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13713. weekdaysParseExact: true,
  13714. longDateFormat: {
  13715. LT: 'HH:mm',
  13716. LTS: 'HH:mm:ss',
  13717. L: 'DD/MM/YYYY',
  13718. LL: 'D [de] MMMM [de] YYYY',
  13719. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  13720. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
  13721. },
  13722. calendar: {
  13723. sameDay: '[Hoje às] LT',
  13724. nextDay: '[Amanhã às] LT',
  13725. nextWeek: 'dddd [às] LT',
  13726. lastDay: '[Ontem às] LT',
  13727. lastWeek: function () {
  13728. return this.day() === 0 || this.day() === 6
  13729. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13730. : '[Última] dddd [às] LT'; // Monday - Friday
  13731. },
  13732. sameElse: 'L',
  13733. },
  13734. relativeTime: {
  13735. future: 'em %s',
  13736. past: 'há %s',
  13737. s: 'segundos',
  13738. ss: '%d segundos',
  13739. m: 'um minuto',
  13740. mm: '%d minutos',
  13741. h: 'uma hora',
  13742. hh: '%d horas',
  13743. d: 'um dia',
  13744. dd: '%d dias',
  13745. w: 'uma semana',
  13746. ww: '%d semanas',
  13747. M: 'um mês',
  13748. MM: '%d meses',
  13749. y: 'um ano',
  13750. yy: '%d anos',
  13751. },
  13752. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13753. ordinal: '%dº',
  13754. week: {
  13755. dow: 1, // Monday is the first day of the week.
  13756. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13757. },
  13758. });
  13759. //! moment.js locale configuration
  13760. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  13761. var format = {
  13762. ss: 'secunde',
  13763. mm: 'minute',
  13764. hh: 'ore',
  13765. dd: 'zile',
  13766. ww: 'săptămâni',
  13767. MM: 'luni',
  13768. yy: 'ani',
  13769. },
  13770. separator = ' ';
  13771. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13772. separator = ' de ';
  13773. }
  13774. return number + separator + format[key];
  13775. }
  13776. hooks.defineLocale('ro', {
  13777. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  13778. '_'
  13779. ),
  13780. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  13781. '_'
  13782. ),
  13783. monthsParseExact: true,
  13784. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13785. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13786. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13787. longDateFormat: {
  13788. LT: 'H:mm',
  13789. LTS: 'H:mm:ss',
  13790. L: 'DD.MM.YYYY',
  13791. LL: 'D MMMM YYYY',
  13792. LLL: 'D MMMM YYYY H:mm',
  13793. LLLL: 'dddd, D MMMM YYYY H:mm',
  13794. },
  13795. calendar: {
  13796. sameDay: '[azi la] LT',
  13797. nextDay: '[mâine la] LT',
  13798. nextWeek: 'dddd [la] LT',
  13799. lastDay: '[ieri la] LT',
  13800. lastWeek: '[fosta] dddd [la] LT',
  13801. sameElse: 'L',
  13802. },
  13803. relativeTime: {
  13804. future: 'peste %s',
  13805. past: '%s în urmă',
  13806. s: 'câteva secunde',
  13807. ss: relativeTimeWithPlural$2,
  13808. m: 'un minut',
  13809. mm: relativeTimeWithPlural$2,
  13810. h: 'o oră',
  13811. hh: relativeTimeWithPlural$2,
  13812. d: 'o zi',
  13813. dd: relativeTimeWithPlural$2,
  13814. w: 'o săptămână',
  13815. ww: relativeTimeWithPlural$2,
  13816. M: 'o lună',
  13817. MM: relativeTimeWithPlural$2,
  13818. y: 'un an',
  13819. yy: relativeTimeWithPlural$2,
  13820. },
  13821. week: {
  13822. dow: 1, // Monday is the first day of the week.
  13823. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13824. },
  13825. });
  13826. //! moment.js locale configuration
  13827. function plural$4(word, num) {
  13828. var forms = word.split('_');
  13829. return num % 10 === 1 && num % 100 !== 11
  13830. ? forms[0]
  13831. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  13832. ? forms[1]
  13833. : forms[2];
  13834. }
  13835. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  13836. var format = {
  13837. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  13838. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13839. hh: 'час_часа_часов',
  13840. dd: 'день_дня_дней',
  13841. ww: 'неделя_недели_недель',
  13842. MM: 'месяц_месяца_месяцев',
  13843. yy: 'год_года_лет',
  13844. };
  13845. if (key === 'm') {
  13846. return withoutSuffix ? 'минута' : 'минуту';
  13847. } else {
  13848. return number + ' ' + plural$4(format[key], +number);
  13849. }
  13850. }
  13851. var monthsParse$b = [
  13852. /^янв/i,
  13853. /^фев/i,
  13854. /^мар/i,
  13855. /^апр/i,
  13856. /^ма[йя]/i,
  13857. /^июн/i,
  13858. /^июл/i,
  13859. /^авг/i,
  13860. /^сен/i,
  13861. /^окт/i,
  13862. /^ноя/i,
  13863. /^дек/i,
  13864. ];
  13865. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13866. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13867. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13868. hooks.defineLocale('ru', {
  13869. months: {
  13870. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  13871. '_'
  13872. ),
  13873. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  13874. '_'
  13875. ),
  13876. },
  13877. monthsShort: {
  13878. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  13879. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  13880. '_'
  13881. ),
  13882. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  13883. '_'
  13884. ),
  13885. },
  13886. weekdays: {
  13887. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  13888. '_'
  13889. ),
  13890. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  13891. '_'
  13892. ),
  13893. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
  13894. },
  13895. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13896. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13897. monthsParse: monthsParse$b,
  13898. longMonthsParse: monthsParse$b,
  13899. shortMonthsParse: monthsParse$b,
  13900. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  13901. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13902. // копия предыдущего
  13903. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13904. // полные названия с падежами
  13905. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  13906. // Выражение, которое соответствует только сокращённым формам
  13907. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  13908. longDateFormat: {
  13909. LT: 'H:mm',
  13910. LTS: 'H:mm:ss',
  13911. L: 'DD.MM.YYYY',
  13912. LL: 'D MMMM YYYY г.',
  13913. LLL: 'D MMMM YYYY г., H:mm',
  13914. LLLL: 'dddd, D MMMM YYYY г., H:mm',
  13915. },
  13916. calendar: {
  13917. sameDay: '[Сегодня, в] LT',
  13918. nextDay: '[Завтра, в] LT',
  13919. lastDay: '[Вчера, в] LT',
  13920. nextWeek: function (now) {
  13921. if (now.week() !== this.week()) {
  13922. switch (this.day()) {
  13923. case 0:
  13924. return '[В следующее] dddd, [в] LT';
  13925. case 1:
  13926. case 2:
  13927. case 4:
  13928. return '[В следующий] dddd, [в] LT';
  13929. case 3:
  13930. case 5:
  13931. case 6:
  13932. return '[В следующую] dddd, [в] LT';
  13933. }
  13934. } else {
  13935. if (this.day() === 2) {
  13936. return '[Во] dddd, [в] LT';
  13937. } else {
  13938. return '[В] dddd, [в] LT';
  13939. }
  13940. }
  13941. },
  13942. lastWeek: function (now) {
  13943. if (now.week() !== this.week()) {
  13944. switch (this.day()) {
  13945. case 0:
  13946. return '[В прошлое] dddd, [в] LT';
  13947. case 1:
  13948. case 2:
  13949. case 4:
  13950. return '[В прошлый] dddd, [в] LT';
  13951. case 3:
  13952. case 5:
  13953. case 6:
  13954. return '[В прошлую] dddd, [в] LT';
  13955. }
  13956. } else {
  13957. if (this.day() === 2) {
  13958. return '[Во] dddd, [в] LT';
  13959. } else {
  13960. return '[В] dddd, [в] LT';
  13961. }
  13962. }
  13963. },
  13964. sameElse: 'L',
  13965. },
  13966. relativeTime: {
  13967. future: 'через %s',
  13968. past: '%s назад',
  13969. s: 'несколько секунд',
  13970. ss: relativeTimeWithPlural$3,
  13971. m: relativeTimeWithPlural$3,
  13972. mm: relativeTimeWithPlural$3,
  13973. h: 'час',
  13974. hh: relativeTimeWithPlural$3,
  13975. d: 'день',
  13976. dd: relativeTimeWithPlural$3,
  13977. w: 'неделя',
  13978. ww: relativeTimeWithPlural$3,
  13979. M: 'месяц',
  13980. MM: relativeTimeWithPlural$3,
  13981. y: 'год',
  13982. yy: relativeTimeWithPlural$3,
  13983. },
  13984. meridiemParse: /ночи|утра|дня|вечера/i,
  13985. isPM: function (input) {
  13986. return /^(дня|вечера)$/.test(input);
  13987. },
  13988. meridiem: function (hour, minute, isLower) {
  13989. if (hour < 4) {
  13990. return 'ночи';
  13991. } else if (hour < 12) {
  13992. return 'утра';
  13993. } else if (hour < 17) {
  13994. return 'дня';
  13995. } else {
  13996. return 'вечера';
  13997. }
  13998. },
  13999. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  14000. ordinal: function (number, period) {
  14001. switch (period) {
  14002. case 'M':
  14003. case 'd':
  14004. case 'DDD':
  14005. return number + '-й';
  14006. case 'D':
  14007. return number + '-го';
  14008. case 'w':
  14009. case 'W':
  14010. return number + '-я';
  14011. default:
  14012. return number;
  14013. }
  14014. },
  14015. week: {
  14016. dow: 1, // Monday is the first day of the week.
  14017. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14018. },
  14019. });
  14020. //! moment.js locale configuration
  14021. var months$9 = [
  14022. 'جنوري',
  14023. 'فيبروري',
  14024. 'مارچ',
  14025. 'اپريل',
  14026. 'مئي',
  14027. 'جون',
  14028. 'جولاءِ',
  14029. 'آگسٽ',
  14030. 'سيپٽمبر',
  14031. 'آڪٽوبر',
  14032. 'نومبر',
  14033. 'ڊسمبر',
  14034. ],
  14035. days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  14036. hooks.defineLocale('sd', {
  14037. months: months$9,
  14038. monthsShort: months$9,
  14039. weekdays: days$1,
  14040. weekdaysShort: days$1,
  14041. weekdaysMin: days$1,
  14042. longDateFormat: {
  14043. LT: 'HH:mm',
  14044. LTS: 'HH:mm:ss',
  14045. L: 'DD/MM/YYYY',
  14046. LL: 'D MMMM YYYY',
  14047. LLL: 'D MMMM YYYY HH:mm',
  14048. LLLL: 'dddd، D MMMM YYYY HH:mm',
  14049. },
  14050. meridiemParse: /صبح|شام/,
  14051. isPM: function (input) {
  14052. return 'شام' === input;
  14053. },
  14054. meridiem: function (hour, minute, isLower) {
  14055. if (hour < 12) {
  14056. return 'صبح';
  14057. }
  14058. return 'شام';
  14059. },
  14060. calendar: {
  14061. sameDay: '[اڄ] LT',
  14062. nextDay: '[سڀاڻي] LT',
  14063. nextWeek: 'dddd [اڳين هفتي تي] LT',
  14064. lastDay: '[ڪالهه] LT',
  14065. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  14066. sameElse: 'L',
  14067. },
  14068. relativeTime: {
  14069. future: '%s پوء',
  14070. past: '%s اڳ',
  14071. s: 'چند سيڪنڊ',
  14072. ss: '%d سيڪنڊ',
  14073. m: 'هڪ منٽ',
  14074. mm: '%d منٽ',
  14075. h: 'هڪ ڪلاڪ',
  14076. hh: '%d ڪلاڪ',
  14077. d: 'هڪ ڏينهن',
  14078. dd: '%d ڏينهن',
  14079. M: 'هڪ مهينو',
  14080. MM: '%d مهينا',
  14081. y: 'هڪ سال',
  14082. yy: '%d سال',
  14083. },
  14084. preparse: function (string) {
  14085. return string.replace(/،/g, ',');
  14086. },
  14087. postformat: function (string) {
  14088. return string.replace(/,/g, '،');
  14089. },
  14090. week: {
  14091. dow: 1, // Monday is the first day of the week.
  14092. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14093. },
  14094. });
  14095. //! moment.js locale configuration
  14096. hooks.defineLocale('se', {
  14097. 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(
  14098. '_'
  14099. ),
  14100. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
  14101. '_'
  14102. ),
  14103. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  14104. '_'
  14105. ),
  14106. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  14107. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  14108. longDateFormat: {
  14109. LT: 'HH:mm',
  14110. LTS: 'HH:mm:ss',
  14111. L: 'DD.MM.YYYY',
  14112. LL: 'MMMM D. [b.] YYYY',
  14113. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  14114. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
  14115. },
  14116. calendar: {
  14117. sameDay: '[otne ti] LT',
  14118. nextDay: '[ihttin ti] LT',
  14119. nextWeek: 'dddd [ti] LT',
  14120. lastDay: '[ikte ti] LT',
  14121. lastWeek: '[ovddit] dddd [ti] LT',
  14122. sameElse: 'L',
  14123. },
  14124. relativeTime: {
  14125. future: '%s geažes',
  14126. past: 'maŋit %s',
  14127. s: 'moadde sekunddat',
  14128. ss: '%d sekunddat',
  14129. m: 'okta minuhta',
  14130. mm: '%d minuhtat',
  14131. h: 'okta diimmu',
  14132. hh: '%d diimmut',
  14133. d: 'okta beaivi',
  14134. dd: '%d beaivvit',
  14135. M: 'okta mánnu',
  14136. MM: '%d mánut',
  14137. y: 'okta jahki',
  14138. yy: '%d jagit',
  14139. },
  14140. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14141. ordinal: '%d.',
  14142. week: {
  14143. dow: 1, // Monday is the first day of the week.
  14144. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14145. },
  14146. });
  14147. //! moment.js locale configuration
  14148. /*jshint -W100*/
  14149. hooks.defineLocale('si', {
  14150. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  14151. '_'
  14152. ),
  14153. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  14154. '_'
  14155. ),
  14156. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  14157. '_'
  14158. ),
  14159. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  14160. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  14161. weekdaysParseExact: true,
  14162. longDateFormat: {
  14163. LT: 'a h:mm',
  14164. LTS: 'a h:mm:ss',
  14165. L: 'YYYY/MM/DD',
  14166. LL: 'YYYY MMMM D',
  14167. LLL: 'YYYY MMMM D, a h:mm',
  14168. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
  14169. },
  14170. calendar: {
  14171. sameDay: '[අද] LT[ට]',
  14172. nextDay: '[හෙට] LT[ට]',
  14173. nextWeek: 'dddd LT[ට]',
  14174. lastDay: '[ඊයේ] LT[ට]',
  14175. lastWeek: '[පසුගිය] dddd LT[ට]',
  14176. sameElse: 'L',
  14177. },
  14178. relativeTime: {
  14179. future: '%sකින්',
  14180. past: '%sකට පෙර',
  14181. s: 'තත්පර කිහිපය',
  14182. ss: 'තත්පර %d',
  14183. m: 'මිනිත්තුව',
  14184. mm: 'මිනිත්තු %d',
  14185. h: 'පැය',
  14186. hh: 'පැය %d',
  14187. d: 'දිනය',
  14188. dd: 'දින %d',
  14189. M: 'මාසය',
  14190. MM: 'මාස %d',
  14191. y: 'වසර',
  14192. yy: 'වසර %d',
  14193. },
  14194. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  14195. ordinal: function (number) {
  14196. return number + ' වැනි';
  14197. },
  14198. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  14199. isPM: function (input) {
  14200. return input === 'ප.ව.' || input === 'පස් වරු';
  14201. },
  14202. meridiem: function (hours, minutes, isLower) {
  14203. if (hours > 11) {
  14204. return isLower ? 'ප.ව.' : 'පස් වරු';
  14205. } else {
  14206. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  14207. }
  14208. },
  14209. });
  14210. //! moment.js locale configuration
  14211. var months$a = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  14212. '_'
  14213. ),
  14214. monthsShort$7 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  14215. function plural$5(n) {
  14216. return n > 1 && n < 5;
  14217. }
  14218. function translate$9(number, withoutSuffix, key, isFuture) {
  14219. var result = number + ' ';
  14220. switch (key) {
  14221. case 's': // a few seconds / in a few seconds / a few seconds ago
  14222. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  14223. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  14224. if (withoutSuffix || isFuture) {
  14225. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  14226. } else {
  14227. return result + 'sekundami';
  14228. }
  14229. case 'm': // a minute / in a minute / a minute ago
  14230. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  14231. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  14232. if (withoutSuffix || isFuture) {
  14233. return result + (plural$5(number) ? 'minúty' : 'minút');
  14234. } else {
  14235. return result + 'minútami';
  14236. }
  14237. case 'h': // an hour / in an hour / an hour ago
  14238. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  14239. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  14240. if (withoutSuffix || isFuture) {
  14241. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  14242. } else {
  14243. return result + 'hodinami';
  14244. }
  14245. case 'd': // a day / in a day / a day ago
  14246. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  14247. case 'dd': // 9 days / in 9 days / 9 days ago
  14248. if (withoutSuffix || isFuture) {
  14249. return result + (plural$5(number) ? 'dni' : 'dní');
  14250. } else {
  14251. return result + 'dňami';
  14252. }
  14253. case 'M': // a month / in a month / a month ago
  14254. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  14255. case 'MM': // 9 months / in 9 months / 9 months ago
  14256. if (withoutSuffix || isFuture) {
  14257. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  14258. } else {
  14259. return result + 'mesiacmi';
  14260. }
  14261. case 'y': // a year / in a year / a year ago
  14262. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  14263. case 'yy': // 9 years / in 9 years / 9 years ago
  14264. if (withoutSuffix || isFuture) {
  14265. return result + (plural$5(number) ? 'roky' : 'rokov');
  14266. } else {
  14267. return result + 'rokmi';
  14268. }
  14269. }
  14270. }
  14271. hooks.defineLocale('sk', {
  14272. months: months$a,
  14273. monthsShort: monthsShort$7,
  14274. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  14275. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  14276. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  14277. longDateFormat: {
  14278. LT: 'H:mm',
  14279. LTS: 'H:mm:ss',
  14280. L: 'DD.MM.YYYY',
  14281. LL: 'D. MMMM YYYY',
  14282. LLL: 'D. MMMM YYYY H:mm',
  14283. LLLL: 'dddd D. MMMM YYYY H:mm',
  14284. },
  14285. calendar: {
  14286. sameDay: '[dnes o] LT',
  14287. nextDay: '[zajtra o] LT',
  14288. nextWeek: function () {
  14289. switch (this.day()) {
  14290. case 0:
  14291. return '[v nedeľu o] LT';
  14292. case 1:
  14293. case 2:
  14294. return '[v] dddd [o] LT';
  14295. case 3:
  14296. return '[v stredu o] LT';
  14297. case 4:
  14298. return '[vo štvrtok o] LT';
  14299. case 5:
  14300. return '[v piatok o] LT';
  14301. case 6:
  14302. return '[v sobotu o] LT';
  14303. }
  14304. },
  14305. lastDay: '[včera o] LT',
  14306. lastWeek: function () {
  14307. switch (this.day()) {
  14308. case 0:
  14309. return '[minulú nedeľu o] LT';
  14310. case 1:
  14311. case 2:
  14312. return '[minulý] dddd [o] LT';
  14313. case 3:
  14314. return '[minulú stredu o] LT';
  14315. case 4:
  14316. case 5:
  14317. return '[minulý] dddd [o] LT';
  14318. case 6:
  14319. return '[minulú sobotu o] LT';
  14320. }
  14321. },
  14322. sameElse: 'L',
  14323. },
  14324. relativeTime: {
  14325. future: 'za %s',
  14326. past: 'pred %s',
  14327. s: translate$9,
  14328. ss: translate$9,
  14329. m: translate$9,
  14330. mm: translate$9,
  14331. h: translate$9,
  14332. hh: translate$9,
  14333. d: translate$9,
  14334. dd: translate$9,
  14335. M: translate$9,
  14336. MM: translate$9,
  14337. y: translate$9,
  14338. yy: translate$9,
  14339. },
  14340. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14341. ordinal: '%d.',
  14342. week: {
  14343. dow: 1, // Monday is the first day of the week.
  14344. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14345. },
  14346. });
  14347. //! moment.js locale configuration
  14348. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  14349. var result = number + ' ';
  14350. switch (key) {
  14351. case 's':
  14352. return withoutSuffix || isFuture
  14353. ? 'nekaj sekund'
  14354. : 'nekaj sekundami';
  14355. case 'ss':
  14356. if (number === 1) {
  14357. result += withoutSuffix ? 'sekundo' : 'sekundi';
  14358. } else if (number === 2) {
  14359. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  14360. } else if (number < 5) {
  14361. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  14362. } else {
  14363. result += 'sekund';
  14364. }
  14365. return result;
  14366. case 'm':
  14367. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  14368. case 'mm':
  14369. if (number === 1) {
  14370. result += withoutSuffix ? 'minuta' : 'minuto';
  14371. } else if (number === 2) {
  14372. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  14373. } else if (number < 5) {
  14374. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  14375. } else {
  14376. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  14377. }
  14378. return result;
  14379. case 'h':
  14380. return withoutSuffix ? 'ena ura' : 'eno uro';
  14381. case 'hh':
  14382. if (number === 1) {
  14383. result += withoutSuffix ? 'ura' : 'uro';
  14384. } else if (number === 2) {
  14385. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  14386. } else if (number < 5) {
  14387. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  14388. } else {
  14389. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  14390. }
  14391. return result;
  14392. case 'd':
  14393. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  14394. case 'dd':
  14395. if (number === 1) {
  14396. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  14397. } else if (number === 2) {
  14398. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  14399. } else {
  14400. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  14401. }
  14402. return result;
  14403. case 'M':
  14404. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  14405. case 'MM':
  14406. if (number === 1) {
  14407. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  14408. } else if (number === 2) {
  14409. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  14410. } else if (number < 5) {
  14411. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  14412. } else {
  14413. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  14414. }
  14415. return result;
  14416. case 'y':
  14417. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  14418. case 'yy':
  14419. if (number === 1) {
  14420. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  14421. } else if (number === 2) {
  14422. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  14423. } else if (number < 5) {
  14424. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  14425. } else {
  14426. result += withoutSuffix || isFuture ? 'let' : 'leti';
  14427. }
  14428. return result;
  14429. }
  14430. }
  14431. hooks.defineLocale('sl', {
  14432. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  14433. '_'
  14434. ),
  14435. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  14436. '_'
  14437. ),
  14438. monthsParseExact: true,
  14439. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  14440. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  14441. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  14442. weekdaysParseExact: true,
  14443. longDateFormat: {
  14444. LT: 'H:mm',
  14445. LTS: 'H:mm:ss',
  14446. L: 'DD. MM. YYYY',
  14447. LL: 'D. MMMM YYYY',
  14448. LLL: 'D. MMMM YYYY H:mm',
  14449. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14450. },
  14451. calendar: {
  14452. sameDay: '[danes ob] LT',
  14453. nextDay: '[jutri ob] LT',
  14454. nextWeek: function () {
  14455. switch (this.day()) {
  14456. case 0:
  14457. return '[v] [nedeljo] [ob] LT';
  14458. case 3:
  14459. return '[v] [sredo] [ob] LT';
  14460. case 6:
  14461. return '[v] [soboto] [ob] LT';
  14462. case 1:
  14463. case 2:
  14464. case 4:
  14465. case 5:
  14466. return '[v] dddd [ob] LT';
  14467. }
  14468. },
  14469. lastDay: '[včeraj ob] LT',
  14470. lastWeek: function () {
  14471. switch (this.day()) {
  14472. case 0:
  14473. return '[prejšnjo] [nedeljo] [ob] LT';
  14474. case 3:
  14475. return '[prejšnjo] [sredo] [ob] LT';
  14476. case 6:
  14477. return '[prejšnjo] [soboto] [ob] LT';
  14478. case 1:
  14479. case 2:
  14480. case 4:
  14481. case 5:
  14482. return '[prejšnji] dddd [ob] LT';
  14483. }
  14484. },
  14485. sameElse: 'L',
  14486. },
  14487. relativeTime: {
  14488. future: 'čez %s',
  14489. past: 'pred %s',
  14490. s: processRelativeTime$7,
  14491. ss: processRelativeTime$7,
  14492. m: processRelativeTime$7,
  14493. mm: processRelativeTime$7,
  14494. h: processRelativeTime$7,
  14495. hh: processRelativeTime$7,
  14496. d: processRelativeTime$7,
  14497. dd: processRelativeTime$7,
  14498. M: processRelativeTime$7,
  14499. MM: processRelativeTime$7,
  14500. y: processRelativeTime$7,
  14501. yy: processRelativeTime$7,
  14502. },
  14503. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14504. ordinal: '%d.',
  14505. week: {
  14506. dow: 1, // Monday is the first day of the week.
  14507. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14508. },
  14509. });
  14510. //! moment.js locale configuration
  14511. hooks.defineLocale('sq', {
  14512. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  14513. '_'
  14514. ),
  14515. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14516. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  14517. '_'
  14518. ),
  14519. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14520. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14521. weekdaysParseExact: true,
  14522. meridiemParse: /PD|MD/,
  14523. isPM: function (input) {
  14524. return input.charAt(0) === 'M';
  14525. },
  14526. meridiem: function (hours, minutes, isLower) {
  14527. return hours < 12 ? 'PD' : 'MD';
  14528. },
  14529. longDateFormat: {
  14530. LT: 'HH:mm',
  14531. LTS: 'HH:mm:ss',
  14532. L: 'DD/MM/YYYY',
  14533. LL: 'D MMMM YYYY',
  14534. LLL: 'D MMMM YYYY HH:mm',
  14535. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14536. },
  14537. calendar: {
  14538. sameDay: '[Sot në] LT',
  14539. nextDay: '[Nesër në] LT',
  14540. nextWeek: 'dddd [në] LT',
  14541. lastDay: '[Dje në] LT',
  14542. lastWeek: 'dddd [e kaluar në] LT',
  14543. sameElse: 'L',
  14544. },
  14545. relativeTime: {
  14546. future: 'në %s',
  14547. past: '%s më parë',
  14548. s: 'disa sekonda',
  14549. ss: '%d sekonda',
  14550. m: 'një minutë',
  14551. mm: '%d minuta',
  14552. h: 'një orë',
  14553. hh: '%d orë',
  14554. d: 'një ditë',
  14555. dd: '%d ditë',
  14556. M: 'një muaj',
  14557. MM: '%d muaj',
  14558. y: 'një vit',
  14559. yy: '%d vite',
  14560. },
  14561. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14562. ordinal: '%d.',
  14563. week: {
  14564. dow: 1, // Monday is the first day of the week.
  14565. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14566. },
  14567. });
  14568. //! moment.js locale configuration
  14569. var translator$1 = {
  14570. words: {
  14571. //Different grammatical cases
  14572. ss: ['секунда', 'секунде', 'секунди'],
  14573. m: ['један минут', 'једне минуте'],
  14574. mm: ['минут', 'минуте', 'минута'],
  14575. h: ['један сат', 'једног сата'],
  14576. hh: ['сат', 'сата', 'сати'],
  14577. dd: ['дан', 'дана', 'дана'],
  14578. MM: ['месец', 'месеца', 'месеци'],
  14579. yy: ['година', 'године', 'година'],
  14580. },
  14581. correctGrammaticalCase: function (number, wordKey) {
  14582. return number === 1
  14583. ? wordKey[0]
  14584. : number >= 2 && number <= 4
  14585. ? wordKey[1]
  14586. : wordKey[2];
  14587. },
  14588. translate: function (number, withoutSuffix, key) {
  14589. var wordKey = translator$1.words[key];
  14590. if (key.length === 1) {
  14591. return withoutSuffix ? wordKey[0] : wordKey[1];
  14592. } else {
  14593. return (
  14594. number +
  14595. ' ' +
  14596. translator$1.correctGrammaticalCase(number, wordKey)
  14597. );
  14598. }
  14599. },
  14600. };
  14601. hooks.defineLocale('sr-cyrl', {
  14602. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  14603. '_'
  14604. ),
  14605. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
  14606. '_'
  14607. ),
  14608. monthsParseExact: true,
  14609. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  14610. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14611. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14612. weekdaysParseExact: true,
  14613. longDateFormat: {
  14614. LT: 'H:mm',
  14615. LTS: 'H:mm:ss',
  14616. L: 'D. M. YYYY.',
  14617. LL: 'D. MMMM YYYY.',
  14618. LLL: 'D. MMMM YYYY. H:mm',
  14619. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  14620. },
  14621. calendar: {
  14622. sameDay: '[данас у] LT',
  14623. nextDay: '[сутра у] LT',
  14624. nextWeek: function () {
  14625. switch (this.day()) {
  14626. case 0:
  14627. return '[у] [недељу] [у] LT';
  14628. case 3:
  14629. return '[у] [среду] [у] LT';
  14630. case 6:
  14631. return '[у] [суботу] [у] LT';
  14632. case 1:
  14633. case 2:
  14634. case 4:
  14635. case 5:
  14636. return '[у] dddd [у] LT';
  14637. }
  14638. },
  14639. lastDay: '[јуче у] LT',
  14640. lastWeek: function () {
  14641. var lastWeekDays = [
  14642. '[прошле] [недеље] [у] LT',
  14643. '[прошлог] [понедељка] [у] LT',
  14644. '[прошлог] [уторка] [у] LT',
  14645. '[прошле] [среде] [у] LT',
  14646. '[прошлог] [четвртка] [у] LT',
  14647. '[прошлог] [петка] [у] LT',
  14648. '[прошле] [суботе] [у] LT',
  14649. ];
  14650. return lastWeekDays[this.day()];
  14651. },
  14652. sameElse: 'L',
  14653. },
  14654. relativeTime: {
  14655. future: 'за %s',
  14656. past: 'пре %s',
  14657. s: 'неколико секунди',
  14658. ss: translator$1.translate,
  14659. m: translator$1.translate,
  14660. mm: translator$1.translate,
  14661. h: translator$1.translate,
  14662. hh: translator$1.translate,
  14663. d: 'дан',
  14664. dd: translator$1.translate,
  14665. M: 'месец',
  14666. MM: translator$1.translate,
  14667. y: 'годину',
  14668. yy: translator$1.translate,
  14669. },
  14670. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14671. ordinal: '%d.',
  14672. week: {
  14673. dow: 1, // Monday is the first day of the week.
  14674. doy: 7, // The week that contains Jan 1st is the first week of the year.
  14675. },
  14676. });
  14677. //! moment.js locale configuration
  14678. var translator$2 = {
  14679. words: {
  14680. //Different grammatical cases
  14681. ss: ['sekunda', 'sekunde', 'sekundi'],
  14682. m: ['jedan minut', 'jedne minute'],
  14683. mm: ['minut', 'minute', 'minuta'],
  14684. h: ['jedan sat', 'jednog sata'],
  14685. hh: ['sat', 'sata', 'sati'],
  14686. dd: ['dan', 'dana', 'dana'],
  14687. MM: ['mesec', 'meseca', 'meseci'],
  14688. yy: ['godina', 'godine', 'godina'],
  14689. },
  14690. correctGrammaticalCase: function (number, wordKey) {
  14691. return number === 1
  14692. ? wordKey[0]
  14693. : number >= 2 && number <= 4
  14694. ? wordKey[1]
  14695. : wordKey[2];
  14696. },
  14697. translate: function (number, withoutSuffix, key) {
  14698. var wordKey = translator$2.words[key];
  14699. if (key.length === 1) {
  14700. return withoutSuffix ? wordKey[0] : wordKey[1];
  14701. } else {
  14702. return (
  14703. number +
  14704. ' ' +
  14705. translator$2.correctGrammaticalCase(number, wordKey)
  14706. );
  14707. }
  14708. },
  14709. };
  14710. hooks.defineLocale('sr', {
  14711. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  14712. '_'
  14713. ),
  14714. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  14715. '_'
  14716. ),
  14717. monthsParseExact: true,
  14718. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  14719. '_'
  14720. ),
  14721. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14722. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14723. weekdaysParseExact: true,
  14724. longDateFormat: {
  14725. LT: 'H:mm',
  14726. LTS: 'H:mm:ss',
  14727. L: 'D. M. YYYY.',
  14728. LL: 'D. MMMM YYYY.',
  14729. LLL: 'D. MMMM YYYY. H:mm',
  14730. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  14731. },
  14732. calendar: {
  14733. sameDay: '[danas u] LT',
  14734. nextDay: '[sutra u] LT',
  14735. nextWeek: function () {
  14736. switch (this.day()) {
  14737. case 0:
  14738. return '[u] [nedelju] [u] LT';
  14739. case 3:
  14740. return '[u] [sredu] [u] LT';
  14741. case 6:
  14742. return '[u] [subotu] [u] LT';
  14743. case 1:
  14744. case 2:
  14745. case 4:
  14746. case 5:
  14747. return '[u] dddd [u] LT';
  14748. }
  14749. },
  14750. lastDay: '[juče u] LT',
  14751. lastWeek: function () {
  14752. var lastWeekDays = [
  14753. '[prošle] [nedelje] [u] LT',
  14754. '[prošlog] [ponedeljka] [u] LT',
  14755. '[prošlog] [utorka] [u] LT',
  14756. '[prošle] [srede] [u] LT',
  14757. '[prošlog] [četvrtka] [u] LT',
  14758. '[prošlog] [petka] [u] LT',
  14759. '[prošle] [subote] [u] LT',
  14760. ];
  14761. return lastWeekDays[this.day()];
  14762. },
  14763. sameElse: 'L',
  14764. },
  14765. relativeTime: {
  14766. future: 'za %s',
  14767. past: 'pre %s',
  14768. s: 'nekoliko sekundi',
  14769. ss: translator$2.translate,
  14770. m: translator$2.translate,
  14771. mm: translator$2.translate,
  14772. h: translator$2.translate,
  14773. hh: translator$2.translate,
  14774. d: 'dan',
  14775. dd: translator$2.translate,
  14776. M: 'mesec',
  14777. MM: translator$2.translate,
  14778. y: 'godinu',
  14779. yy: translator$2.translate,
  14780. },
  14781. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14782. ordinal: '%d.',
  14783. week: {
  14784. dow: 1, // Monday is the first day of the week.
  14785. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14786. },
  14787. });
  14788. //! moment.js locale configuration
  14789. hooks.defineLocale('ss', {
  14790. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  14791. '_'
  14792. ),
  14793. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14794. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  14795. '_'
  14796. ),
  14797. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14798. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14799. weekdaysParseExact: true,
  14800. longDateFormat: {
  14801. LT: 'h:mm A',
  14802. LTS: 'h:mm:ss A',
  14803. L: 'DD/MM/YYYY',
  14804. LL: 'D MMMM YYYY',
  14805. LLL: 'D MMMM YYYY h:mm A',
  14806. LLLL: 'dddd, D MMMM YYYY h:mm A',
  14807. },
  14808. calendar: {
  14809. sameDay: '[Namuhla nga] LT',
  14810. nextDay: '[Kusasa nga] LT',
  14811. nextWeek: 'dddd [nga] LT',
  14812. lastDay: '[Itolo nga] LT',
  14813. lastWeek: 'dddd [leliphelile] [nga] LT',
  14814. sameElse: 'L',
  14815. },
  14816. relativeTime: {
  14817. future: 'nga %s',
  14818. past: 'wenteka nga %s',
  14819. s: 'emizuzwana lomcane',
  14820. ss: '%d mzuzwana',
  14821. m: 'umzuzu',
  14822. mm: '%d emizuzu',
  14823. h: 'lihora',
  14824. hh: '%d emahora',
  14825. d: 'lilanga',
  14826. dd: '%d emalanga',
  14827. M: 'inyanga',
  14828. MM: '%d tinyanga',
  14829. y: 'umnyaka',
  14830. yy: '%d iminyaka',
  14831. },
  14832. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14833. meridiem: function (hours, minutes, isLower) {
  14834. if (hours < 11) {
  14835. return 'ekuseni';
  14836. } else if (hours < 15) {
  14837. return 'emini';
  14838. } else if (hours < 19) {
  14839. return 'entsambama';
  14840. } else {
  14841. return 'ebusuku';
  14842. }
  14843. },
  14844. meridiemHour: function (hour, meridiem) {
  14845. if (hour === 12) {
  14846. hour = 0;
  14847. }
  14848. if (meridiem === 'ekuseni') {
  14849. return hour;
  14850. } else if (meridiem === 'emini') {
  14851. return hour >= 11 ? hour : hour + 12;
  14852. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14853. if (hour === 0) {
  14854. return 0;
  14855. }
  14856. return hour + 12;
  14857. }
  14858. },
  14859. dayOfMonthOrdinalParse: /\d{1,2}/,
  14860. ordinal: '%d',
  14861. week: {
  14862. dow: 1, // Monday is the first day of the week.
  14863. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14864. },
  14865. });
  14866. //! moment.js locale configuration
  14867. hooks.defineLocale('sv', {
  14868. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  14869. '_'
  14870. ),
  14871. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  14872. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14873. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  14874. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  14875. longDateFormat: {
  14876. LT: 'HH:mm',
  14877. LTS: 'HH:mm:ss',
  14878. L: 'YYYY-MM-DD',
  14879. LL: 'D MMMM YYYY',
  14880. LLL: 'D MMMM YYYY [kl.] HH:mm',
  14881. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  14882. lll: 'D MMM YYYY HH:mm',
  14883. llll: 'ddd D MMM YYYY HH:mm',
  14884. },
  14885. calendar: {
  14886. sameDay: '[Idag] LT',
  14887. nextDay: '[Imorgon] LT',
  14888. lastDay: '[Igår] LT',
  14889. nextWeek: '[På] dddd LT',
  14890. lastWeek: '[I] dddd[s] LT',
  14891. sameElse: 'L',
  14892. },
  14893. relativeTime: {
  14894. future: 'om %s',
  14895. past: 'för %s sedan',
  14896. s: 'några sekunder',
  14897. ss: '%d sekunder',
  14898. m: 'en minut',
  14899. mm: '%d minuter',
  14900. h: 'en timme',
  14901. hh: '%d timmar',
  14902. d: 'en dag',
  14903. dd: '%d dagar',
  14904. M: 'en månad',
  14905. MM: '%d månader',
  14906. y: 'ett år',
  14907. yy: '%d år',
  14908. },
  14909. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  14910. ordinal: function (number) {
  14911. var b = number % 10,
  14912. output =
  14913. ~~((number % 100) / 10) === 1
  14914. ? ':e'
  14915. : b === 1
  14916. ? ':a'
  14917. : b === 2
  14918. ? ':a'
  14919. : b === 3
  14920. ? ':e'
  14921. : ':e';
  14922. return number + output;
  14923. },
  14924. week: {
  14925. dow: 1, // Monday is the first day of the week.
  14926. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14927. },
  14928. });
  14929. //! moment.js locale configuration
  14930. hooks.defineLocale('sw', {
  14931. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  14932. '_'
  14933. ),
  14934. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  14935. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  14936. '_'
  14937. ),
  14938. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  14939. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  14940. weekdaysParseExact: true,
  14941. longDateFormat: {
  14942. LT: 'hh:mm A',
  14943. LTS: 'HH:mm:ss',
  14944. L: 'DD.MM.YYYY',
  14945. LL: 'D MMMM YYYY',
  14946. LLL: 'D MMMM YYYY HH:mm',
  14947. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14948. },
  14949. calendar: {
  14950. sameDay: '[leo saa] LT',
  14951. nextDay: '[kesho saa] LT',
  14952. nextWeek: '[wiki ijayo] dddd [saat] LT',
  14953. lastDay: '[jana] LT',
  14954. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  14955. sameElse: 'L',
  14956. },
  14957. relativeTime: {
  14958. future: '%s baadaye',
  14959. past: 'tokea %s',
  14960. s: 'hivi punde',
  14961. ss: 'sekunde %d',
  14962. m: 'dakika moja',
  14963. mm: 'dakika %d',
  14964. h: 'saa limoja',
  14965. hh: 'masaa %d',
  14966. d: 'siku moja',
  14967. dd: 'siku %d',
  14968. M: 'mwezi mmoja',
  14969. MM: 'miezi %d',
  14970. y: 'mwaka mmoja',
  14971. yy: 'miaka %d',
  14972. },
  14973. week: {
  14974. dow: 1, // Monday is the first day of the week.
  14975. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14976. },
  14977. });
  14978. //! moment.js locale configuration
  14979. var symbolMap$g = {
  14980. 1: '௧',
  14981. 2: '௨',
  14982. 3: '௩',
  14983. 4: '௪',
  14984. 5: '௫',
  14985. 6: '௬',
  14986. 7: '௭',
  14987. 8: '௮',
  14988. 9: '௯',
  14989. 0: '௦',
  14990. },
  14991. numberMap$f = {
  14992. '௧': '1',
  14993. '௨': '2',
  14994. '௩': '3',
  14995. '௪': '4',
  14996. '௫': '5',
  14997. '௬': '6',
  14998. '௭': '7',
  14999. '௮': '8',
  15000. '௯': '9',
  15001. '௦': '0',
  15002. };
  15003. hooks.defineLocale('ta', {
  15004. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  15005. '_'
  15006. ),
  15007. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  15008. '_'
  15009. ),
  15010. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  15011. '_'
  15012. ),
  15013. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  15014. '_'
  15015. ),
  15016. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  15017. longDateFormat: {
  15018. LT: 'HH:mm',
  15019. LTS: 'HH:mm:ss',
  15020. L: 'DD/MM/YYYY',
  15021. LL: 'D MMMM YYYY',
  15022. LLL: 'D MMMM YYYY, HH:mm',
  15023. LLLL: 'dddd, D MMMM YYYY, HH:mm',
  15024. },
  15025. calendar: {
  15026. sameDay: '[இன்று] LT',
  15027. nextDay: '[நாளை] LT',
  15028. nextWeek: 'dddd, LT',
  15029. lastDay: '[நேற்று] LT',
  15030. lastWeek: '[கடந்த வாரம்] dddd, LT',
  15031. sameElse: 'L',
  15032. },
  15033. relativeTime: {
  15034. future: '%s இல்',
  15035. past: '%s முன்',
  15036. s: 'ஒரு சில விநாடிகள்',
  15037. ss: '%d விநாடிகள்',
  15038. m: 'ஒரு நிமிடம்',
  15039. mm: '%d நிமிடங்கள்',
  15040. h: 'ஒரு மணி நேரம்',
  15041. hh: '%d மணி நேரம்',
  15042. d: 'ஒரு நாள்',
  15043. dd: '%d நாட்கள்',
  15044. M: 'ஒரு மாதம்',
  15045. MM: '%d மாதங்கள்',
  15046. y: 'ஒரு வருடம்',
  15047. yy: '%d ஆண்டுகள்',
  15048. },
  15049. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  15050. ordinal: function (number) {
  15051. return number + 'வது';
  15052. },
  15053. preparse: function (string) {
  15054. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  15055. return numberMap$f[match];
  15056. });
  15057. },
  15058. postformat: function (string) {
  15059. return string.replace(/\d/g, function (match) {
  15060. return symbolMap$g[match];
  15061. });
  15062. },
  15063. // refer http://ta.wikipedia.org/s/1er1
  15064. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  15065. meridiem: function (hour, minute, isLower) {
  15066. if (hour < 2) {
  15067. return ' யாமம்';
  15068. } else if (hour < 6) {
  15069. return ' வைகறை'; // வைகறை
  15070. } else if (hour < 10) {
  15071. return ' காலை'; // காலை
  15072. } else if (hour < 14) {
  15073. return ' நண்பகல்'; // நண்பகல்
  15074. } else if (hour < 18) {
  15075. return ' எற்பாடு'; // எற்பாடு
  15076. } else if (hour < 22) {
  15077. return ' மாலை'; // மாலை
  15078. } else {
  15079. return ' யாமம்';
  15080. }
  15081. },
  15082. meridiemHour: function (hour, meridiem) {
  15083. if (hour === 12) {
  15084. hour = 0;
  15085. }
  15086. if (meridiem === 'யாமம்') {
  15087. return hour < 2 ? hour : hour + 12;
  15088. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  15089. return hour;
  15090. } else if (meridiem === 'நண்பகல்') {
  15091. return hour >= 10 ? hour : hour + 12;
  15092. } else {
  15093. return hour + 12;
  15094. }
  15095. },
  15096. week: {
  15097. dow: 0, // Sunday is the first day of the week.
  15098. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15099. },
  15100. });
  15101. //! moment.js locale configuration
  15102. hooks.defineLocale('te', {
  15103. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  15104. '_'
  15105. ),
  15106. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  15107. '_'
  15108. ),
  15109. monthsParseExact: true,
  15110. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  15111. '_'
  15112. ),
  15113. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  15114. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  15115. longDateFormat: {
  15116. LT: 'A h:mm',
  15117. LTS: 'A h:mm:ss',
  15118. L: 'DD/MM/YYYY',
  15119. LL: 'D MMMM YYYY',
  15120. LLL: 'D MMMM YYYY, A h:mm',
  15121. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  15122. },
  15123. calendar: {
  15124. sameDay: '[నేడు] LT',
  15125. nextDay: '[రేపు] LT',
  15126. nextWeek: 'dddd, LT',
  15127. lastDay: '[నిన్న] LT',
  15128. lastWeek: '[గత] dddd, LT',
  15129. sameElse: 'L',
  15130. },
  15131. relativeTime: {
  15132. future: '%s లో',
  15133. past: '%s క్రితం',
  15134. s: 'కొన్ని క్షణాలు',
  15135. ss: '%d సెకన్లు',
  15136. m: 'ఒక నిమిషం',
  15137. mm: '%d నిమిషాలు',
  15138. h: 'ఒక గంట',
  15139. hh: '%d గంటలు',
  15140. d: 'ఒక రోజు',
  15141. dd: '%d రోజులు',
  15142. M: 'ఒక నెల',
  15143. MM: '%d నెలలు',
  15144. y: 'ఒక సంవత్సరం',
  15145. yy: '%d సంవత్సరాలు',
  15146. },
  15147. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  15148. ordinal: '%dవ',
  15149. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  15150. meridiemHour: function (hour, meridiem) {
  15151. if (hour === 12) {
  15152. hour = 0;
  15153. }
  15154. if (meridiem === 'రాత్రి') {
  15155. return hour < 4 ? hour : hour + 12;
  15156. } else if (meridiem === 'ఉదయం') {
  15157. return hour;
  15158. } else if (meridiem === 'మధ్యాహ్నం') {
  15159. return hour >= 10 ? hour : hour + 12;
  15160. } else if (meridiem === 'సాయంత్రం') {
  15161. return hour + 12;
  15162. }
  15163. },
  15164. meridiem: function (hour, minute, isLower) {
  15165. if (hour < 4) {
  15166. return 'రాత్రి';
  15167. } else if (hour < 10) {
  15168. return 'ఉదయం';
  15169. } else if (hour < 17) {
  15170. return 'మధ్యాహ్నం';
  15171. } else if (hour < 20) {
  15172. return 'సాయంత్రం';
  15173. } else {
  15174. return 'రాత్రి';
  15175. }
  15176. },
  15177. week: {
  15178. dow: 0, // Sunday is the first day of the week.
  15179. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15180. },
  15181. });
  15182. //! moment.js locale configuration
  15183. hooks.defineLocale('tet', {
  15184. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  15185. '_'
  15186. ),
  15187. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  15188. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  15189. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  15190. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  15191. longDateFormat: {
  15192. LT: 'HH:mm',
  15193. LTS: 'HH:mm:ss',
  15194. L: 'DD/MM/YYYY',
  15195. LL: 'D MMMM YYYY',
  15196. LLL: 'D MMMM YYYY HH:mm',
  15197. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15198. },
  15199. calendar: {
  15200. sameDay: '[Ohin iha] LT',
  15201. nextDay: '[Aban iha] LT',
  15202. nextWeek: 'dddd [iha] LT',
  15203. lastDay: '[Horiseik iha] LT',
  15204. lastWeek: 'dddd [semana kotuk] [iha] LT',
  15205. sameElse: 'L',
  15206. },
  15207. relativeTime: {
  15208. future: 'iha %s',
  15209. past: '%s liuba',
  15210. s: 'segundu balun',
  15211. ss: 'segundu %d',
  15212. m: 'minutu ida',
  15213. mm: 'minutu %d',
  15214. h: 'oras ida',
  15215. hh: 'oras %d',
  15216. d: 'loron ida',
  15217. dd: 'loron %d',
  15218. M: 'fulan ida',
  15219. MM: 'fulan %d',
  15220. y: 'tinan ida',
  15221. yy: 'tinan %d',
  15222. },
  15223. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  15224. ordinal: function (number) {
  15225. var b = number % 10,
  15226. output =
  15227. ~~((number % 100) / 10) === 1
  15228. ? 'th'
  15229. : b === 1
  15230. ? 'st'
  15231. : b === 2
  15232. ? 'nd'
  15233. : b === 3
  15234. ? 'rd'
  15235. : 'th';
  15236. return number + output;
  15237. },
  15238. week: {
  15239. dow: 1, // Monday is the first day of the week.
  15240. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15241. },
  15242. });
  15243. //! moment.js locale configuration
  15244. var suffixes$3 = {
  15245. 0: '-ум',
  15246. 1: '-ум',
  15247. 2: '-юм',
  15248. 3: '-юм',
  15249. 4: '-ум',
  15250. 5: '-ум',
  15251. 6: '-ум',
  15252. 7: '-ум',
  15253. 8: '-ум',
  15254. 9: '-ум',
  15255. 10: '-ум',
  15256. 12: '-ум',
  15257. 13: '-ум',
  15258. 20: '-ум',
  15259. 30: '-юм',
  15260. 40: '-ум',
  15261. 50: '-ум',
  15262. 60: '-ум',
  15263. 70: '-ум',
  15264. 80: '-ум',
  15265. 90: '-ум',
  15266. 100: '-ум',
  15267. };
  15268. hooks.defineLocale('tg', {
  15269. months: {
  15270. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
  15271. '_'
  15272. ),
  15273. standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  15274. '_'
  15275. ),
  15276. },
  15277. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  15278. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  15279. '_'
  15280. ),
  15281. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  15282. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  15283. longDateFormat: {
  15284. LT: 'HH:mm',
  15285. LTS: 'HH:mm:ss',
  15286. L: 'DD.MM.YYYY',
  15287. LL: 'D MMMM YYYY',
  15288. LLL: 'D MMMM YYYY HH:mm',
  15289. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15290. },
  15291. calendar: {
  15292. sameDay: '[Имрӯз соати] LT',
  15293. nextDay: '[Фардо соати] LT',
  15294. lastDay: '[Дирӯз соати] LT',
  15295. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  15296. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  15297. sameElse: 'L',
  15298. },
  15299. relativeTime: {
  15300. future: 'баъди %s',
  15301. past: '%s пеш',
  15302. s: 'якчанд сония',
  15303. m: 'як дақиқа',
  15304. mm: '%d дақиқа',
  15305. h: 'як соат',
  15306. hh: '%d соат',
  15307. d: 'як рӯз',
  15308. dd: '%d рӯз',
  15309. M: 'як моҳ',
  15310. MM: '%d моҳ',
  15311. y: 'як сол',
  15312. yy: '%d сол',
  15313. },
  15314. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  15315. meridiemHour: function (hour, meridiem) {
  15316. if (hour === 12) {
  15317. hour = 0;
  15318. }
  15319. if (meridiem === 'шаб') {
  15320. return hour < 4 ? hour : hour + 12;
  15321. } else if (meridiem === 'субҳ') {
  15322. return hour;
  15323. } else if (meridiem === 'рӯз') {
  15324. return hour >= 11 ? hour : hour + 12;
  15325. } else if (meridiem === 'бегоҳ') {
  15326. return hour + 12;
  15327. }
  15328. },
  15329. meridiem: function (hour, minute, isLower) {
  15330. if (hour < 4) {
  15331. return 'шаб';
  15332. } else if (hour < 11) {
  15333. return 'субҳ';
  15334. } else if (hour < 16) {
  15335. return 'рӯз';
  15336. } else if (hour < 19) {
  15337. return 'бегоҳ';
  15338. } else {
  15339. return 'шаб';
  15340. }
  15341. },
  15342. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  15343. ordinal: function (number) {
  15344. var a = number % 10,
  15345. b = number >= 100 ? 100 : null;
  15346. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  15347. },
  15348. week: {
  15349. dow: 1, // Monday is the first day of the week.
  15350. doy: 7, // The week that contains Jan 1th is the first week of the year.
  15351. },
  15352. });
  15353. //! moment.js locale configuration
  15354. hooks.defineLocale('th', {
  15355. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  15356. '_'
  15357. ),
  15358. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  15359. '_'
  15360. ),
  15361. monthsParseExact: true,
  15362. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  15363. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  15364. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  15365. weekdaysParseExact: true,
  15366. longDateFormat: {
  15367. LT: 'H:mm',
  15368. LTS: 'H:mm:ss',
  15369. L: 'DD/MM/YYYY',
  15370. LL: 'D MMMM YYYY',
  15371. LLL: 'D MMMM YYYY เวลา H:mm',
  15372. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
  15373. },
  15374. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  15375. isPM: function (input) {
  15376. return input === 'หลังเที่ยง';
  15377. },
  15378. meridiem: function (hour, minute, isLower) {
  15379. if (hour < 12) {
  15380. return 'ก่อนเที่ยง';
  15381. } else {
  15382. return 'หลังเที่ยง';
  15383. }
  15384. },
  15385. calendar: {
  15386. sameDay: '[วันนี้ เวลา] LT',
  15387. nextDay: '[พรุ่งนี้ เวลา] LT',
  15388. nextWeek: 'dddd[หน้า เวลา] LT',
  15389. lastDay: '[เมื่อวานนี้ เวลา] LT',
  15390. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  15391. sameElse: 'L',
  15392. },
  15393. relativeTime: {
  15394. future: 'อีก %s',
  15395. past: '%sที่แล้ว',
  15396. s: 'ไม่กี่วินาที',
  15397. ss: '%d วินาที',
  15398. m: '1 นาที',
  15399. mm: '%d นาที',
  15400. h: '1 ชั่วโมง',
  15401. hh: '%d ชั่วโมง',
  15402. d: '1 วัน',
  15403. dd: '%d วัน',
  15404. w: '1 สัปดาห์',
  15405. ww: '%d สัปดาห์',
  15406. M: '1 เดือน',
  15407. MM: '%d เดือน',
  15408. y: '1 ปี',
  15409. yy: '%d ปี',
  15410. },
  15411. });
  15412. //! moment.js locale configuration
  15413. var suffixes$4 = {
  15414. 1: "'inji",
  15415. 5: "'inji",
  15416. 8: "'inji",
  15417. 70: "'inji",
  15418. 80: "'inji",
  15419. 2: "'nji",
  15420. 7: "'nji",
  15421. 20: "'nji",
  15422. 50: "'nji",
  15423. 3: "'ünji",
  15424. 4: "'ünji",
  15425. 100: "'ünji",
  15426. 6: "'njy",
  15427. 9: "'unjy",
  15428. 10: "'unjy",
  15429. 30: "'unjy",
  15430. 60: "'ynjy",
  15431. 90: "'ynjy",
  15432. };
  15433. hooks.defineLocale('tk', {
  15434. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  15435. '_'
  15436. ),
  15437. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  15438. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  15439. '_'
  15440. ),
  15441. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  15442. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  15443. longDateFormat: {
  15444. LT: 'HH:mm',
  15445. LTS: 'HH:mm:ss',
  15446. L: 'DD.MM.YYYY',
  15447. LL: 'D MMMM YYYY',
  15448. LLL: 'D MMMM YYYY HH:mm',
  15449. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15450. },
  15451. calendar: {
  15452. sameDay: '[bugün sagat] LT',
  15453. nextDay: '[ertir sagat] LT',
  15454. nextWeek: '[indiki] dddd [sagat] LT',
  15455. lastDay: '[düýn] LT',
  15456. lastWeek: '[geçen] dddd [sagat] LT',
  15457. sameElse: 'L',
  15458. },
  15459. relativeTime: {
  15460. future: '%s soň',
  15461. past: '%s öň',
  15462. s: 'birnäçe sekunt',
  15463. m: 'bir minut',
  15464. mm: '%d minut',
  15465. h: 'bir sagat',
  15466. hh: '%d sagat',
  15467. d: 'bir gün',
  15468. dd: '%d gün',
  15469. M: 'bir aý',
  15470. MM: '%d aý',
  15471. y: 'bir ýyl',
  15472. yy: '%d ýyl',
  15473. },
  15474. ordinal: function (number, period) {
  15475. switch (period) {
  15476. case 'd':
  15477. case 'D':
  15478. case 'Do':
  15479. case 'DD':
  15480. return number;
  15481. default:
  15482. if (number === 0) {
  15483. // special case for zero
  15484. return number + "'unjy";
  15485. }
  15486. var a = number % 10,
  15487. b = (number % 100) - a,
  15488. c = number >= 100 ? 100 : null;
  15489. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  15490. }
  15491. },
  15492. week: {
  15493. dow: 1, // Monday is the first day of the week.
  15494. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15495. },
  15496. });
  15497. //! moment.js locale configuration
  15498. hooks.defineLocale('tl-ph', {
  15499. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  15500. '_'
  15501. ),
  15502. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  15503. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  15504. '_'
  15505. ),
  15506. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  15507. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  15508. longDateFormat: {
  15509. LT: 'HH:mm',
  15510. LTS: 'HH:mm:ss',
  15511. L: 'MM/D/YYYY',
  15512. LL: 'MMMM D, YYYY',
  15513. LLL: 'MMMM D, YYYY HH:mm',
  15514. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  15515. },
  15516. calendar: {
  15517. sameDay: 'LT [ngayong araw]',
  15518. nextDay: '[Bukas ng] LT',
  15519. nextWeek: 'LT [sa susunod na] dddd',
  15520. lastDay: 'LT [kahapon]',
  15521. lastWeek: 'LT [noong nakaraang] dddd',
  15522. sameElse: 'L',
  15523. },
  15524. relativeTime: {
  15525. future: 'sa loob ng %s',
  15526. past: '%s ang nakalipas',
  15527. s: 'ilang segundo',
  15528. ss: '%d segundo',
  15529. m: 'isang minuto',
  15530. mm: '%d minuto',
  15531. h: 'isang oras',
  15532. hh: '%d oras',
  15533. d: 'isang araw',
  15534. dd: '%d araw',
  15535. M: 'isang buwan',
  15536. MM: '%d buwan',
  15537. y: 'isang taon',
  15538. yy: '%d taon',
  15539. },
  15540. dayOfMonthOrdinalParse: /\d{1,2}/,
  15541. ordinal: function (number) {
  15542. return number;
  15543. },
  15544. week: {
  15545. dow: 1, // Monday is the first day of the week.
  15546. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15547. },
  15548. });
  15549. //! moment.js locale configuration
  15550. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  15551. function translateFuture(output) {
  15552. var time = output;
  15553. time =
  15554. output.indexOf('jaj') !== -1
  15555. ? time.slice(0, -3) + 'leS'
  15556. : output.indexOf('jar') !== -1
  15557. ? time.slice(0, -3) + 'waQ'
  15558. : output.indexOf('DIS') !== -1
  15559. ? time.slice(0, -3) + 'nem'
  15560. : time + ' pIq';
  15561. return time;
  15562. }
  15563. function translatePast(output) {
  15564. var time = output;
  15565. time =
  15566. output.indexOf('jaj') !== -1
  15567. ? time.slice(0, -3) + 'Hu’'
  15568. : output.indexOf('jar') !== -1
  15569. ? time.slice(0, -3) + 'wen'
  15570. : output.indexOf('DIS') !== -1
  15571. ? time.slice(0, -3) + 'ben'
  15572. : time + ' ret';
  15573. return time;
  15574. }
  15575. function translate$a(number, withoutSuffix, string, isFuture) {
  15576. var numberNoun = numberAsNoun(number);
  15577. switch (string) {
  15578. case 'ss':
  15579. return numberNoun + ' lup';
  15580. case 'mm':
  15581. return numberNoun + ' tup';
  15582. case 'hh':
  15583. return numberNoun + ' rep';
  15584. case 'dd':
  15585. return numberNoun + ' jaj';
  15586. case 'MM':
  15587. return numberNoun + ' jar';
  15588. case 'yy':
  15589. return numberNoun + ' DIS';
  15590. }
  15591. }
  15592. function numberAsNoun(number) {
  15593. var hundred = Math.floor((number % 1000) / 100),
  15594. ten = Math.floor((number % 100) / 10),
  15595. one = number % 10,
  15596. word = '';
  15597. if (hundred > 0) {
  15598. word += numbersNouns[hundred] + 'vatlh';
  15599. }
  15600. if (ten > 0) {
  15601. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  15602. }
  15603. if (one > 0) {
  15604. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  15605. }
  15606. return word === '' ? 'pagh' : word;
  15607. }
  15608. hooks.defineLocale('tlh', {
  15609. 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(
  15610. '_'
  15611. ),
  15612. monthsShort: '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(
  15613. '_'
  15614. ),
  15615. monthsParseExact: true,
  15616. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15617. '_'
  15618. ),
  15619. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15620. '_'
  15621. ),
  15622. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15623. '_'
  15624. ),
  15625. longDateFormat: {
  15626. LT: 'HH:mm',
  15627. LTS: 'HH:mm:ss',
  15628. L: 'DD.MM.YYYY',
  15629. LL: 'D MMMM YYYY',
  15630. LLL: 'D MMMM YYYY HH:mm',
  15631. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15632. },
  15633. calendar: {
  15634. sameDay: '[DaHjaj] LT',
  15635. nextDay: '[wa’leS] LT',
  15636. nextWeek: 'LLL',
  15637. lastDay: '[wa’Hu’] LT',
  15638. lastWeek: 'LLL',
  15639. sameElse: 'L',
  15640. },
  15641. relativeTime: {
  15642. future: translateFuture,
  15643. past: translatePast,
  15644. s: 'puS lup',
  15645. ss: translate$a,
  15646. m: 'wa’ tup',
  15647. mm: translate$a,
  15648. h: 'wa’ rep',
  15649. hh: translate$a,
  15650. d: 'wa’ jaj',
  15651. dd: translate$a,
  15652. M: 'wa’ jar',
  15653. MM: translate$a,
  15654. y: 'wa’ DIS',
  15655. yy: translate$a,
  15656. },
  15657. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15658. ordinal: '%d.',
  15659. week: {
  15660. dow: 1, // Monday is the first day of the week.
  15661. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15662. },
  15663. });
  15664. //! moment.js locale configuration
  15665. var suffixes$5 = {
  15666. 1: "'inci",
  15667. 5: "'inci",
  15668. 8: "'inci",
  15669. 70: "'inci",
  15670. 80: "'inci",
  15671. 2: "'nci",
  15672. 7: "'nci",
  15673. 20: "'nci",
  15674. 50: "'nci",
  15675. 3: "'üncü",
  15676. 4: "'üncü",
  15677. 100: "'üncü",
  15678. 6: "'ncı",
  15679. 9: "'uncu",
  15680. 10: "'uncu",
  15681. 30: "'uncu",
  15682. 60: "'ıncı",
  15683. 90: "'ıncı",
  15684. };
  15685. hooks.defineLocale('tr', {
  15686. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  15687. '_'
  15688. ),
  15689. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  15690. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  15691. '_'
  15692. ),
  15693. weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  15694. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  15695. meridiem: function (hours, minutes, isLower) {
  15696. if (hours < 12) {
  15697. return isLower ? 'öö' : 'ÖÖ';
  15698. } else {
  15699. return isLower ? 'ös' : 'ÖS';
  15700. }
  15701. },
  15702. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  15703. isPM: function (input) {
  15704. return input === 'ös' || input === 'ÖS';
  15705. },
  15706. longDateFormat: {
  15707. LT: 'HH:mm',
  15708. LTS: 'HH:mm:ss',
  15709. L: 'DD.MM.YYYY',
  15710. LL: 'D MMMM YYYY',
  15711. LLL: 'D MMMM YYYY HH:mm',
  15712. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15713. },
  15714. calendar: {
  15715. sameDay: '[bugün saat] LT',
  15716. nextDay: '[yarın saat] LT',
  15717. nextWeek: '[gelecek] dddd [saat] LT',
  15718. lastDay: '[dün] LT',
  15719. lastWeek: '[geçen] dddd [saat] LT',
  15720. sameElse: 'L',
  15721. },
  15722. relativeTime: {
  15723. future: '%s sonra',
  15724. past: '%s önce',
  15725. s: 'birkaç saniye',
  15726. ss: '%d saniye',
  15727. m: 'bir dakika',
  15728. mm: '%d dakika',
  15729. h: 'bir saat',
  15730. hh: '%d saat',
  15731. d: 'bir gün',
  15732. dd: '%d gün',
  15733. w: 'bir hafta',
  15734. ww: '%d hafta',
  15735. M: 'bir ay',
  15736. MM: '%d ay',
  15737. y: 'bir yıl',
  15738. yy: '%d yıl',
  15739. },
  15740. ordinal: function (number, period) {
  15741. switch (period) {
  15742. case 'd':
  15743. case 'D':
  15744. case 'Do':
  15745. case 'DD':
  15746. return number;
  15747. default:
  15748. if (number === 0) {
  15749. // special case for zero
  15750. return number + "'ıncı";
  15751. }
  15752. var a = number % 10,
  15753. b = (number % 100) - a,
  15754. c = number >= 100 ? 100 : null;
  15755. return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]);
  15756. }
  15757. },
  15758. week: {
  15759. dow: 1, // Monday is the first day of the week.
  15760. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15761. },
  15762. });
  15763. //! moment.js locale configuration
  15764. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15765. // This is currently too difficult (maybe even impossible) to add.
  15766. hooks.defineLocale('tzl', {
  15767. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  15768. '_'
  15769. ),
  15770. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15771. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15772. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15773. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15774. longDateFormat: {
  15775. LT: 'HH.mm',
  15776. LTS: 'HH.mm.ss',
  15777. L: 'DD.MM.YYYY',
  15778. LL: 'D. MMMM [dallas] YYYY',
  15779. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  15780. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  15781. },
  15782. meridiemParse: /d\'o|d\'a/i,
  15783. isPM: function (input) {
  15784. return "d'o" === input.toLowerCase();
  15785. },
  15786. meridiem: function (hours, minutes, isLower) {
  15787. if (hours > 11) {
  15788. return isLower ? "d'o" : "D'O";
  15789. } else {
  15790. return isLower ? "d'a" : "D'A";
  15791. }
  15792. },
  15793. calendar: {
  15794. sameDay: '[oxhi à] LT',
  15795. nextDay: '[demà à] LT',
  15796. nextWeek: 'dddd [à] LT',
  15797. lastDay: '[ieiri à] LT',
  15798. lastWeek: '[sür el] dddd [lasteu à] LT',
  15799. sameElse: 'L',
  15800. },
  15801. relativeTime: {
  15802. future: 'osprei %s',
  15803. past: 'ja%s',
  15804. s: processRelativeTime$8,
  15805. ss: processRelativeTime$8,
  15806. m: processRelativeTime$8,
  15807. mm: processRelativeTime$8,
  15808. h: processRelativeTime$8,
  15809. hh: processRelativeTime$8,
  15810. d: processRelativeTime$8,
  15811. dd: processRelativeTime$8,
  15812. M: processRelativeTime$8,
  15813. MM: processRelativeTime$8,
  15814. y: processRelativeTime$8,
  15815. yy: processRelativeTime$8,
  15816. },
  15817. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15818. ordinal: '%d.',
  15819. week: {
  15820. dow: 1, // Monday is the first day of the week.
  15821. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15822. },
  15823. });
  15824. function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
  15825. var format = {
  15826. s: ['viensas secunds', "'iensas secunds"],
  15827. ss: [number + ' secunds', '' + number + ' secunds'],
  15828. m: ["'n míut", "'iens míut"],
  15829. mm: [number + ' míuts', '' + number + ' míuts'],
  15830. h: ["'n þora", "'iensa þora"],
  15831. hh: [number + ' þoras', '' + number + ' þoras'],
  15832. d: ["'n ziua", "'iensa ziua"],
  15833. dd: [number + ' ziuas', '' + number + ' ziuas'],
  15834. M: ["'n mes", "'iens mes"],
  15835. MM: [number + ' mesen', '' + number + ' mesen'],
  15836. y: ["'n ar", "'iens ar"],
  15837. yy: [number + ' ars', '' + number + ' ars'],
  15838. };
  15839. return isFuture
  15840. ? format[key][0]
  15841. : withoutSuffix
  15842. ? format[key][0]
  15843. : format[key][1];
  15844. }
  15845. //! moment.js locale configuration
  15846. hooks.defineLocale('tzm-latn', {
  15847. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15848. '_'
  15849. ),
  15850. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15851. '_'
  15852. ),
  15853. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15854. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15855. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15856. longDateFormat: {
  15857. LT: 'HH:mm',
  15858. LTS: 'HH:mm:ss',
  15859. L: 'DD/MM/YYYY',
  15860. LL: 'D MMMM YYYY',
  15861. LLL: 'D MMMM YYYY HH:mm',
  15862. LLLL: 'dddd D MMMM YYYY HH:mm',
  15863. },
  15864. calendar: {
  15865. sameDay: '[asdkh g] LT',
  15866. nextDay: '[aska g] LT',
  15867. nextWeek: 'dddd [g] LT',
  15868. lastDay: '[assant g] LT',
  15869. lastWeek: 'dddd [g] LT',
  15870. sameElse: 'L',
  15871. },
  15872. relativeTime: {
  15873. future: 'dadkh s yan %s',
  15874. past: 'yan %s',
  15875. s: 'imik',
  15876. ss: '%d imik',
  15877. m: 'minuḍ',
  15878. mm: '%d minuḍ',
  15879. h: 'saɛa',
  15880. hh: '%d tassaɛin',
  15881. d: 'ass',
  15882. dd: '%d ossan',
  15883. M: 'ayowr',
  15884. MM: '%d iyyirn',
  15885. y: 'asgas',
  15886. yy: '%d isgasn',
  15887. },
  15888. week: {
  15889. dow: 6, // Saturday is the first day of the week.
  15890. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15891. },
  15892. });
  15893. //! moment.js locale configuration
  15894. hooks.defineLocale('tzm', {
  15895. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15896. '_'
  15897. ),
  15898. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15899. '_'
  15900. ),
  15901. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15902. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15903. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15904. longDateFormat: {
  15905. LT: 'HH:mm',
  15906. LTS: 'HH:mm:ss',
  15907. L: 'DD/MM/YYYY',
  15908. LL: 'D MMMM YYYY',
  15909. LLL: 'D MMMM YYYY HH:mm',
  15910. LLLL: 'dddd D MMMM YYYY HH:mm',
  15911. },
  15912. calendar: {
  15913. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  15914. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  15915. nextWeek: 'dddd [ⴴ] LT',
  15916. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  15917. lastWeek: 'dddd [ⴴ] LT',
  15918. sameElse: 'L',
  15919. },
  15920. relativeTime: {
  15921. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  15922. past: 'ⵢⴰⵏ %s',
  15923. s: 'ⵉⵎⵉⴽ',
  15924. ss: '%d ⵉⵎⵉⴽ',
  15925. m: 'ⵎⵉⵏⵓⴺ',
  15926. mm: '%d ⵎⵉⵏⵓⴺ',
  15927. h: 'ⵙⴰⵄⴰ',
  15928. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  15929. d: 'ⴰⵙⵙ',
  15930. dd: '%d oⵙⵙⴰⵏ',
  15931. M: 'ⴰⵢoⵓⵔ',
  15932. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  15933. y: 'ⴰⵙⴳⴰⵙ',
  15934. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  15935. },
  15936. week: {
  15937. dow: 6, // Saturday is the first day of the week.
  15938. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15939. },
  15940. });
  15941. //! moment.js locale configuration
  15942. hooks.defineLocale('ug-cn', {
  15943. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15944. '_'
  15945. ),
  15946. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15947. '_'
  15948. ),
  15949. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  15950. '_'
  15951. ),
  15952. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15953. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15954. longDateFormat: {
  15955. LT: 'HH:mm',
  15956. LTS: 'HH:mm:ss',
  15957. L: 'YYYY-MM-DD',
  15958. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  15959. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15960. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15961. },
  15962. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  15963. meridiemHour: function (hour, meridiem) {
  15964. if (hour === 12) {
  15965. hour = 0;
  15966. }
  15967. if (
  15968. meridiem === 'يېرىم كېچە' ||
  15969. meridiem === 'سەھەر' ||
  15970. meridiem === 'چۈشتىن بۇرۇن'
  15971. ) {
  15972. return hour;
  15973. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  15974. return hour + 12;
  15975. } else {
  15976. return hour >= 11 ? hour : hour + 12;
  15977. }
  15978. },
  15979. meridiem: function (hour, minute, isLower) {
  15980. var hm = hour * 100 + minute;
  15981. if (hm < 600) {
  15982. return 'يېرىم كېچە';
  15983. } else if (hm < 900) {
  15984. return 'سەھەر';
  15985. } else if (hm < 1130) {
  15986. return 'چۈشتىن بۇرۇن';
  15987. } else if (hm < 1230) {
  15988. return 'چۈش';
  15989. } else if (hm < 1800) {
  15990. return 'چۈشتىن كېيىن';
  15991. } else {
  15992. return 'كەچ';
  15993. }
  15994. },
  15995. calendar: {
  15996. sameDay: '[بۈگۈن سائەت] LT',
  15997. nextDay: '[ئەتە سائەت] LT',
  15998. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  15999. lastDay: '[تۆنۈگۈن] LT',
  16000. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  16001. sameElse: 'L',
  16002. },
  16003. relativeTime: {
  16004. future: '%s كېيىن',
  16005. past: '%s بۇرۇن',
  16006. s: 'نەچچە سېكونت',
  16007. ss: '%d سېكونت',
  16008. m: 'بىر مىنۇت',
  16009. mm: '%d مىنۇت',
  16010. h: 'بىر سائەت',
  16011. hh: '%d سائەت',
  16012. d: 'بىر كۈن',
  16013. dd: '%d كۈن',
  16014. M: 'بىر ئاي',
  16015. MM: '%d ئاي',
  16016. y: 'بىر يىل',
  16017. yy: '%d يىل',
  16018. },
  16019. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  16020. ordinal: function (number, period) {
  16021. switch (period) {
  16022. case 'd':
  16023. case 'D':
  16024. case 'DDD':
  16025. return number + '-كۈنى';
  16026. case 'w':
  16027. case 'W':
  16028. return number + '-ھەپتە';
  16029. default:
  16030. return number;
  16031. }
  16032. },
  16033. preparse: function (string) {
  16034. return string.replace(/،/g, ',');
  16035. },
  16036. postformat: function (string) {
  16037. return string.replace(/,/g, '،');
  16038. },
  16039. week: {
  16040. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16041. dow: 1, // Monday is the first day of the week.
  16042. doy: 7, // The week that contains Jan 1st is the first week of the year.
  16043. },
  16044. });
  16045. //! moment.js locale configuration
  16046. function plural$6(word, num) {
  16047. var forms = word.split('_');
  16048. return num % 10 === 1 && num % 100 !== 11
  16049. ? forms[0]
  16050. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  16051. ? forms[1]
  16052. : forms[2];
  16053. }
  16054. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  16055. var format = {
  16056. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  16057. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  16058. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  16059. dd: 'день_дні_днів',
  16060. MM: 'місяць_місяці_місяців',
  16061. yy: 'рік_роки_років',
  16062. };
  16063. if (key === 'm') {
  16064. return withoutSuffix ? 'хвилина' : 'хвилину';
  16065. } else if (key === 'h') {
  16066. return withoutSuffix ? 'година' : 'годину';
  16067. } else {
  16068. return number + ' ' + plural$6(format[key], +number);
  16069. }
  16070. }
  16071. function weekdaysCaseReplace(m, format) {
  16072. var weekdays = {
  16073. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  16074. '_'
  16075. ),
  16076. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  16077. '_'
  16078. ),
  16079. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  16080. '_'
  16081. ),
  16082. },
  16083. nounCase;
  16084. if (m === true) {
  16085. return weekdays['nominative']
  16086. .slice(1, 7)
  16087. .concat(weekdays['nominative'].slice(0, 1));
  16088. }
  16089. if (!m) {
  16090. return weekdays['nominative'];
  16091. }
  16092. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
  16093. ? 'accusative'
  16094. : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
  16095. ? 'genitive'
  16096. : 'nominative';
  16097. return weekdays[nounCase][m.day()];
  16098. }
  16099. function processHoursFunction(str) {
  16100. return function () {
  16101. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  16102. };
  16103. }
  16104. hooks.defineLocale('uk', {
  16105. months: {
  16106. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  16107. '_'
  16108. ),
  16109. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  16110. '_'
  16111. ),
  16112. },
  16113. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  16114. '_'
  16115. ),
  16116. weekdays: weekdaysCaseReplace,
  16117. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16118. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16119. longDateFormat: {
  16120. LT: 'HH:mm',
  16121. LTS: 'HH:mm:ss',
  16122. L: 'DD.MM.YYYY',
  16123. LL: 'D MMMM YYYY р.',
  16124. LLL: 'D MMMM YYYY р., HH:mm',
  16125. LLLL: 'dddd, D MMMM YYYY р., HH:mm',
  16126. },
  16127. calendar: {
  16128. sameDay: processHoursFunction('[Сьогодні '),
  16129. nextDay: processHoursFunction('[Завтра '),
  16130. lastDay: processHoursFunction('[Вчора '),
  16131. nextWeek: processHoursFunction('[У] dddd ['),
  16132. lastWeek: function () {
  16133. switch (this.day()) {
  16134. case 0:
  16135. case 3:
  16136. case 5:
  16137. case 6:
  16138. return processHoursFunction('[Минулої] dddd [').call(this);
  16139. case 1:
  16140. case 2:
  16141. case 4:
  16142. return processHoursFunction('[Минулого] dddd [').call(this);
  16143. }
  16144. },
  16145. sameElse: 'L',
  16146. },
  16147. relativeTime: {
  16148. future: 'за %s',
  16149. past: '%s тому',
  16150. s: 'декілька секунд',
  16151. ss: relativeTimeWithPlural$4,
  16152. m: relativeTimeWithPlural$4,
  16153. mm: relativeTimeWithPlural$4,
  16154. h: 'годину',
  16155. hh: relativeTimeWithPlural$4,
  16156. d: 'день',
  16157. dd: relativeTimeWithPlural$4,
  16158. M: 'місяць',
  16159. MM: relativeTimeWithPlural$4,
  16160. y: 'рік',
  16161. yy: relativeTimeWithPlural$4,
  16162. },
  16163. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  16164. meridiemParse: /ночі|ранку|дня|вечора/,
  16165. isPM: function (input) {
  16166. return /^(дня|вечора)$/.test(input);
  16167. },
  16168. meridiem: function (hour, minute, isLower) {
  16169. if (hour < 4) {
  16170. return 'ночі';
  16171. } else if (hour < 12) {
  16172. return 'ранку';
  16173. } else if (hour < 17) {
  16174. return 'дня';
  16175. } else {
  16176. return 'вечора';
  16177. }
  16178. },
  16179. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  16180. ordinal: function (number, period) {
  16181. switch (period) {
  16182. case 'M':
  16183. case 'd':
  16184. case 'DDD':
  16185. case 'w':
  16186. case 'W':
  16187. return number + '-й';
  16188. case 'D':
  16189. return number + '-го';
  16190. default:
  16191. return number;
  16192. }
  16193. },
  16194. week: {
  16195. dow: 1, // Monday is the first day of the week.
  16196. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16197. },
  16198. });
  16199. //! moment.js locale configuration
  16200. var months$b = [
  16201. 'جنوری',
  16202. 'فروری',
  16203. 'مارچ',
  16204. 'اپریل',
  16205. 'مئی',
  16206. 'جون',
  16207. 'جولائی',
  16208. 'اگست',
  16209. 'ستمبر',
  16210. 'اکتوبر',
  16211. 'نومبر',
  16212. 'دسمبر',
  16213. ],
  16214. days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  16215. hooks.defineLocale('ur', {
  16216. months: months$b,
  16217. monthsShort: months$b,
  16218. weekdays: days$2,
  16219. weekdaysShort: days$2,
  16220. weekdaysMin: days$2,
  16221. longDateFormat: {
  16222. LT: 'HH:mm',
  16223. LTS: 'HH:mm:ss',
  16224. L: 'DD/MM/YYYY',
  16225. LL: 'D MMMM YYYY',
  16226. LLL: 'D MMMM YYYY HH:mm',
  16227. LLLL: 'dddd، D MMMM YYYY HH:mm',
  16228. },
  16229. meridiemParse: /صبح|شام/,
  16230. isPM: function (input) {
  16231. return 'شام' === input;
  16232. },
  16233. meridiem: function (hour, minute, isLower) {
  16234. if (hour < 12) {
  16235. return 'صبح';
  16236. }
  16237. return 'شام';
  16238. },
  16239. calendar: {
  16240. sameDay: '[آج بوقت] LT',
  16241. nextDay: '[کل بوقت] LT',
  16242. nextWeek: 'dddd [بوقت] LT',
  16243. lastDay: '[گذشتہ روز بوقت] LT',
  16244. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  16245. sameElse: 'L',
  16246. },
  16247. relativeTime: {
  16248. future: '%s بعد',
  16249. past: '%s قبل',
  16250. s: 'چند سیکنڈ',
  16251. ss: '%d سیکنڈ',
  16252. m: 'ایک منٹ',
  16253. mm: '%d منٹ',
  16254. h: 'ایک گھنٹہ',
  16255. hh: '%d گھنٹے',
  16256. d: 'ایک دن',
  16257. dd: '%d دن',
  16258. M: 'ایک ماہ',
  16259. MM: '%d ماہ',
  16260. y: 'ایک سال',
  16261. yy: '%d سال',
  16262. },
  16263. preparse: function (string) {
  16264. return string.replace(/،/g, ',');
  16265. },
  16266. postformat: function (string) {
  16267. return string.replace(/,/g, '،');
  16268. },
  16269. week: {
  16270. dow: 1, // Monday is the first day of the week.
  16271. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16272. },
  16273. });
  16274. //! moment.js locale configuration
  16275. hooks.defineLocale('uz-latn', {
  16276. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  16277. '_'
  16278. ),
  16279. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  16280. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  16281. '_'
  16282. ),
  16283. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  16284. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  16285. longDateFormat: {
  16286. LT: 'HH:mm',
  16287. LTS: 'HH:mm:ss',
  16288. L: 'DD/MM/YYYY',
  16289. LL: 'D MMMM YYYY',
  16290. LLL: 'D MMMM YYYY HH:mm',
  16291. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16292. },
  16293. calendar: {
  16294. sameDay: '[Bugun soat] LT [da]',
  16295. nextDay: '[Ertaga] LT [da]',
  16296. nextWeek: 'dddd [kuni soat] LT [da]',
  16297. lastDay: '[Kecha soat] LT [da]',
  16298. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  16299. sameElse: 'L',
  16300. },
  16301. relativeTime: {
  16302. future: 'Yaqin %s ichida',
  16303. past: 'Bir necha %s oldin',
  16304. s: 'soniya',
  16305. ss: '%d soniya',
  16306. m: 'bir daqiqa',
  16307. mm: '%d daqiqa',
  16308. h: 'bir soat',
  16309. hh: '%d soat',
  16310. d: 'bir kun',
  16311. dd: '%d kun',
  16312. M: 'bir oy',
  16313. MM: '%d oy',
  16314. y: 'bir yil',
  16315. yy: '%d yil',
  16316. },
  16317. week: {
  16318. dow: 1, // Monday is the first day of the week.
  16319. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16320. },
  16321. });
  16322. //! moment.js locale configuration
  16323. hooks.defineLocale('uz', {
  16324. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  16325. '_'
  16326. ),
  16327. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  16328. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  16329. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  16330. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  16331. longDateFormat: {
  16332. LT: 'HH:mm',
  16333. LTS: 'HH:mm:ss',
  16334. L: 'DD/MM/YYYY',
  16335. LL: 'D MMMM YYYY',
  16336. LLL: 'D MMMM YYYY HH:mm',
  16337. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16338. },
  16339. calendar: {
  16340. sameDay: '[Бугун соат] LT [да]',
  16341. nextDay: '[Эртага] LT [да]',
  16342. nextWeek: 'dddd [куни соат] LT [да]',
  16343. lastDay: '[Кеча соат] LT [да]',
  16344. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  16345. sameElse: 'L',
  16346. },
  16347. relativeTime: {
  16348. future: 'Якин %s ичида',
  16349. past: 'Бир неча %s олдин',
  16350. s: 'фурсат',
  16351. ss: '%d фурсат',
  16352. m: 'бир дакика',
  16353. mm: '%d дакика',
  16354. h: 'бир соат',
  16355. hh: '%d соат',
  16356. d: 'бир кун',
  16357. dd: '%d кун',
  16358. M: 'бир ой',
  16359. MM: '%d ой',
  16360. y: 'бир йил',
  16361. yy: '%d йил',
  16362. },
  16363. week: {
  16364. dow: 1, // Monday is the first day of the week.
  16365. doy: 7, // The week that contains Jan 4th is the first week of the year.
  16366. },
  16367. });
  16368. //! moment.js locale configuration
  16369. hooks.defineLocale('vi', {
  16370. 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(
  16371. '_'
  16372. ),
  16373. monthsShort: '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(
  16374. '_'
  16375. ),
  16376. monthsParseExact: true,
  16377. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  16378. '_'
  16379. ),
  16380. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16381. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16382. weekdaysParseExact: true,
  16383. meridiemParse: /sa|ch/i,
  16384. isPM: function (input) {
  16385. return /^ch$/i.test(input);
  16386. },
  16387. meridiem: function (hours, minutes, isLower) {
  16388. if (hours < 12) {
  16389. return isLower ? 'sa' : 'SA';
  16390. } else {
  16391. return isLower ? 'ch' : 'CH';
  16392. }
  16393. },
  16394. longDateFormat: {
  16395. LT: 'HH:mm',
  16396. LTS: 'HH:mm:ss',
  16397. L: 'DD/MM/YYYY',
  16398. LL: 'D MMMM [năm] YYYY',
  16399. LLL: 'D MMMM [năm] YYYY HH:mm',
  16400. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  16401. l: 'DD/M/YYYY',
  16402. ll: 'D MMM YYYY',
  16403. lll: 'D MMM YYYY HH:mm',
  16404. llll: 'ddd, D MMM YYYY HH:mm',
  16405. },
  16406. calendar: {
  16407. sameDay: '[Hôm nay lúc] LT',
  16408. nextDay: '[Ngày mai lúc] LT',
  16409. nextWeek: 'dddd [tuần tới lúc] LT',
  16410. lastDay: '[Hôm qua lúc] LT',
  16411. lastWeek: 'dddd [tuần trước lúc] LT',
  16412. sameElse: 'L',
  16413. },
  16414. relativeTime: {
  16415. future: '%s tới',
  16416. past: '%s trước',
  16417. s: 'vài giây',
  16418. ss: '%d giây',
  16419. m: 'một phút',
  16420. mm: '%d phút',
  16421. h: 'một giờ',
  16422. hh: '%d giờ',
  16423. d: 'một ngày',
  16424. dd: '%d ngày',
  16425. w: 'một tuần',
  16426. ww: '%d tuần',
  16427. M: 'một tháng',
  16428. MM: '%d tháng',
  16429. y: 'một năm',
  16430. yy: '%d năm',
  16431. },
  16432. dayOfMonthOrdinalParse: /\d{1,2}/,
  16433. ordinal: function (number) {
  16434. return number;
  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. });
  16441. //! moment.js locale configuration
  16442. hooks.defineLocale('x-pseudo', {
  16443. 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(
  16444. '_'
  16445. ),
  16446. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  16447. '_'
  16448. ),
  16449. monthsParseExact: true,
  16450. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  16451. '_'
  16452. ),
  16453. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16454. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  16455. weekdaysParseExact: true,
  16456. longDateFormat: {
  16457. LT: 'HH:mm',
  16458. L: 'DD/MM/YYYY',
  16459. LL: 'D MMMM YYYY',
  16460. LLL: 'D MMMM YYYY HH:mm',
  16461. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16462. },
  16463. calendar: {
  16464. sameDay: '[T~ódá~ý át] LT',
  16465. nextDay: '[T~ómó~rró~w át] LT',
  16466. nextWeek: 'dddd [át] LT',
  16467. lastDay: '[Ý~ést~érdá~ý át] LT',
  16468. lastWeek: '[L~ást] dddd [át] LT',
  16469. sameElse: 'L',
  16470. },
  16471. relativeTime: {
  16472. future: 'í~ñ %s',
  16473. past: '%s á~gó',
  16474. s: 'á ~féw ~sécó~ñds',
  16475. ss: '%d s~écóñ~ds',
  16476. m: 'á ~míñ~úté',
  16477. mm: '%d m~íñú~tés',
  16478. h: 'á~ñ hó~úr',
  16479. hh: '%d h~óúrs',
  16480. d: 'á ~dáý',
  16481. dd: '%d d~áýs',
  16482. M: 'á ~móñ~th',
  16483. MM: '%d m~óñt~hs',
  16484. y: 'á ~ýéár',
  16485. yy: '%d ý~éárs',
  16486. },
  16487. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  16488. ordinal: function (number) {
  16489. var b = number % 10,
  16490. output =
  16491. ~~((number % 100) / 10) === 1
  16492. ? 'th'
  16493. : b === 1
  16494. ? 'st'
  16495. : b === 2
  16496. ? 'nd'
  16497. : b === 3
  16498. ? 'rd'
  16499. : 'th';
  16500. return number + output;
  16501. },
  16502. week: {
  16503. dow: 1, // Monday is the first day of the week.
  16504. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16505. },
  16506. });
  16507. //! moment.js locale configuration
  16508. hooks.defineLocale('yo', {
  16509. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  16510. '_'
  16511. ),
  16512. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  16513. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  16514. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  16515. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16516. longDateFormat: {
  16517. LT: 'h:mm A',
  16518. LTS: 'h:mm:ss A',
  16519. L: 'DD/MM/YYYY',
  16520. LL: 'D MMMM YYYY',
  16521. LLL: 'D MMMM YYYY h:mm A',
  16522. LLLL: 'dddd, D MMMM YYYY h:mm A',
  16523. },
  16524. calendar: {
  16525. sameDay: '[Ònì ni] LT',
  16526. nextDay: '[Ọ̀la ni] LT',
  16527. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  16528. lastDay: '[Àna ni] LT',
  16529. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  16530. sameElse: 'L',
  16531. },
  16532. relativeTime: {
  16533. future: 'ní %s',
  16534. past: '%s kọjá',
  16535. s: 'ìsẹjú aayá die',
  16536. ss: 'aayá %d',
  16537. m: 'ìsẹjú kan',
  16538. mm: 'ìsẹjú %d',
  16539. h: 'wákati kan',
  16540. hh: 'wákati %d',
  16541. d: 'ọjọ́ kan',
  16542. dd: 'ọjọ́ %d',
  16543. M: 'osù kan',
  16544. MM: 'osù %d',
  16545. y: 'ọdún kan',
  16546. yy: 'ọdún %d',
  16547. },
  16548. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  16549. ordinal: 'ọjọ́ %d',
  16550. week: {
  16551. dow: 1, // Monday is the first day of the week.
  16552. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16553. },
  16554. });
  16555. //! moment.js locale configuration
  16556. hooks.defineLocale('zh-cn', {
  16557. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16558. '_'
  16559. ),
  16560. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16561. '_'
  16562. ),
  16563. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16564. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  16565. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16566. longDateFormat: {
  16567. LT: 'HH:mm',
  16568. LTS: 'HH:mm:ss',
  16569. L: 'YYYY/MM/DD',
  16570. LL: 'YYYY年M月D日',
  16571. LLL: 'YYYY年M月D日Ah点mm分',
  16572. LLLL: 'YYYY年M月D日ddddAh点mm分',
  16573. l: 'YYYY/M/D',
  16574. ll: 'YYYY年M月D日',
  16575. lll: 'YYYY年M月D日 HH:mm',
  16576. llll: 'YYYY年M月D日dddd HH:mm',
  16577. },
  16578. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16579. meridiemHour: function (hour, meridiem) {
  16580. if (hour === 12) {
  16581. hour = 0;
  16582. }
  16583. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16584. return hour;
  16585. } else if (meridiem === '下午' || meridiem === '晚上') {
  16586. return hour + 12;
  16587. } else {
  16588. // '中午'
  16589. return hour >= 11 ? hour : hour + 12;
  16590. }
  16591. },
  16592. meridiem: function (hour, minute, isLower) {
  16593. var hm = hour * 100 + minute;
  16594. if (hm < 600) {
  16595. return '凌晨';
  16596. } else if (hm < 900) {
  16597. return '早上';
  16598. } else if (hm < 1130) {
  16599. return '上午';
  16600. } else if (hm < 1230) {
  16601. return '中午';
  16602. } else if (hm < 1800) {
  16603. return '下午';
  16604. } else {
  16605. return '晚上';
  16606. }
  16607. },
  16608. calendar: {
  16609. sameDay: '[今天]LT',
  16610. nextDay: '[明天]LT',
  16611. nextWeek: function (now) {
  16612. if (now.week() !== this.week()) {
  16613. return '[下]dddLT';
  16614. } else {
  16615. return '[本]dddLT';
  16616. }
  16617. },
  16618. lastDay: '[昨天]LT',
  16619. lastWeek: function (now) {
  16620. if (this.week() !== now.week()) {
  16621. return '[上]dddLT';
  16622. } else {
  16623. return '[本]dddLT';
  16624. }
  16625. },
  16626. sameElse: 'L',
  16627. },
  16628. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  16629. ordinal: function (number, period) {
  16630. switch (period) {
  16631. case 'd':
  16632. case 'D':
  16633. case 'DDD':
  16634. return number + '日';
  16635. case 'M':
  16636. return number + '月';
  16637. case 'w':
  16638. case 'W':
  16639. return number + '周';
  16640. default:
  16641. return number;
  16642. }
  16643. },
  16644. relativeTime: {
  16645. future: '%s后',
  16646. past: '%s前',
  16647. s: '几秒',
  16648. ss: '%d 秒',
  16649. m: '1 分钟',
  16650. mm: '%d 分钟',
  16651. h: '1 小时',
  16652. hh: '%d 小时',
  16653. d: '1 天',
  16654. dd: '%d 天',
  16655. w: '1 周',
  16656. ww: '%d 周',
  16657. M: '1 个月',
  16658. MM: '%d 个月',
  16659. y: '1 年',
  16660. yy: '%d 年',
  16661. },
  16662. week: {
  16663. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16664. dow: 1, // Monday is the first day of the week.
  16665. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16666. },
  16667. });
  16668. //! moment.js locale configuration
  16669. hooks.defineLocale('zh-hk', {
  16670. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16671. '_'
  16672. ),
  16673. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16674. '_'
  16675. ),
  16676. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16677. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16678. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16679. longDateFormat: {
  16680. LT: 'HH:mm',
  16681. LTS: 'HH:mm:ss',
  16682. L: 'YYYY/MM/DD',
  16683. LL: 'YYYY年M月D日',
  16684. LLL: 'YYYY年M月D日 HH:mm',
  16685. LLLL: 'YYYY年M月D日dddd HH:mm',
  16686. l: 'YYYY/M/D',
  16687. ll: 'YYYY年M月D日',
  16688. lll: 'YYYY年M月D日 HH:mm',
  16689. llll: 'YYYY年M月D日dddd HH:mm',
  16690. },
  16691. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16692. meridiemHour: function (hour, meridiem) {
  16693. if (hour === 12) {
  16694. hour = 0;
  16695. }
  16696. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16697. return hour;
  16698. } else if (meridiem === '中午') {
  16699. return hour >= 11 ? hour : hour + 12;
  16700. } else if (meridiem === '下午' || meridiem === '晚上') {
  16701. return hour + 12;
  16702. }
  16703. },
  16704. meridiem: function (hour, minute, isLower) {
  16705. var hm = hour * 100 + minute;
  16706. if (hm < 600) {
  16707. return '凌晨';
  16708. } else if (hm < 900) {
  16709. return '早上';
  16710. } else if (hm < 1200) {
  16711. return '上午';
  16712. } else if (hm === 1200) {
  16713. return '中午';
  16714. } else if (hm < 1800) {
  16715. return '下午';
  16716. } else {
  16717. return '晚上';
  16718. }
  16719. },
  16720. calendar: {
  16721. sameDay: '[今天]LT',
  16722. nextDay: '[明天]LT',
  16723. nextWeek: '[下]ddddLT',
  16724. lastDay: '[昨天]LT',
  16725. lastWeek: '[上]ddddLT',
  16726. sameElse: 'L',
  16727. },
  16728. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16729. ordinal: function (number, period) {
  16730. switch (period) {
  16731. case 'd':
  16732. case 'D':
  16733. case 'DDD':
  16734. return number + '日';
  16735. case 'M':
  16736. return number + '月';
  16737. case 'w':
  16738. case 'W':
  16739. return number + '週';
  16740. default:
  16741. return number;
  16742. }
  16743. },
  16744. relativeTime: {
  16745. future: '%s後',
  16746. past: '%s前',
  16747. s: '幾秒',
  16748. ss: '%d 秒',
  16749. m: '1 分鐘',
  16750. mm: '%d 分鐘',
  16751. h: '1 小時',
  16752. hh: '%d 小時',
  16753. d: '1 天',
  16754. dd: '%d 天',
  16755. M: '1 個月',
  16756. MM: '%d 個月',
  16757. y: '1 年',
  16758. yy: '%d 年',
  16759. },
  16760. });
  16761. //! moment.js locale configuration
  16762. hooks.defineLocale('zh-mo', {
  16763. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16764. '_'
  16765. ),
  16766. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16767. '_'
  16768. ),
  16769. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16770. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16771. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16772. longDateFormat: {
  16773. LT: 'HH:mm',
  16774. LTS: 'HH:mm:ss',
  16775. L: 'DD/MM/YYYY',
  16776. LL: 'YYYY年M月D日',
  16777. LLL: 'YYYY年M月D日 HH:mm',
  16778. LLLL: 'YYYY年M月D日dddd HH:mm',
  16779. l: 'D/M/YYYY',
  16780. ll: 'YYYY年M月D日',
  16781. lll: 'YYYY年M月D日 HH:mm',
  16782. llll: 'YYYY年M月D日dddd HH:mm',
  16783. },
  16784. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16785. meridiemHour: function (hour, meridiem) {
  16786. if (hour === 12) {
  16787. hour = 0;
  16788. }
  16789. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16790. return hour;
  16791. } else if (meridiem === '中午') {
  16792. return hour >= 11 ? hour : hour + 12;
  16793. } else if (meridiem === '下午' || meridiem === '晚上') {
  16794. return hour + 12;
  16795. }
  16796. },
  16797. meridiem: function (hour, minute, isLower) {
  16798. var hm = hour * 100 + minute;
  16799. if (hm < 600) {
  16800. return '凌晨';
  16801. } else if (hm < 900) {
  16802. return '早上';
  16803. } else if (hm < 1130) {
  16804. return '上午';
  16805. } else if (hm < 1230) {
  16806. return '中午';
  16807. } else if (hm < 1800) {
  16808. return '下午';
  16809. } else {
  16810. return '晚上';
  16811. }
  16812. },
  16813. calendar: {
  16814. sameDay: '[今天] LT',
  16815. nextDay: '[明天] LT',
  16816. nextWeek: '[下]dddd LT',
  16817. lastDay: '[昨天] LT',
  16818. lastWeek: '[上]dddd LT',
  16819. sameElse: 'L',
  16820. },
  16821. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16822. ordinal: function (number, period) {
  16823. switch (period) {
  16824. case 'd':
  16825. case 'D':
  16826. case 'DDD':
  16827. return number + '日';
  16828. case 'M':
  16829. return number + '月';
  16830. case 'w':
  16831. case 'W':
  16832. return number + '週';
  16833. default:
  16834. return number;
  16835. }
  16836. },
  16837. relativeTime: {
  16838. future: '%s內',
  16839. past: '%s前',
  16840. s: '幾秒',
  16841. ss: '%d 秒',
  16842. m: '1 分鐘',
  16843. mm: '%d 分鐘',
  16844. h: '1 小時',
  16845. hh: '%d 小時',
  16846. d: '1 天',
  16847. dd: '%d 天',
  16848. M: '1 個月',
  16849. MM: '%d 個月',
  16850. y: '1 年',
  16851. yy: '%d 年',
  16852. },
  16853. });
  16854. //! moment.js locale configuration
  16855. hooks.defineLocale('zh-tw', {
  16856. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16857. '_'
  16858. ),
  16859. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16860. '_'
  16861. ),
  16862. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16863. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16864. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16865. longDateFormat: {
  16866. LT: 'HH:mm',
  16867. LTS: 'HH:mm:ss',
  16868. L: 'YYYY/MM/DD',
  16869. LL: 'YYYY年M月D日',
  16870. LLL: 'YYYY年M月D日 HH:mm',
  16871. LLLL: 'YYYY年M月D日dddd HH:mm',
  16872. l: 'YYYY/M/D',
  16873. ll: 'YYYY年M月D日',
  16874. lll: 'YYYY年M月D日 HH:mm',
  16875. llll: 'YYYY年M月D日dddd HH:mm',
  16876. },
  16877. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16878. meridiemHour: function (hour, meridiem) {
  16879. if (hour === 12) {
  16880. hour = 0;
  16881. }
  16882. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16883. return hour;
  16884. } else if (meridiem === '中午') {
  16885. return hour >= 11 ? hour : hour + 12;
  16886. } else if (meridiem === '下午' || meridiem === '晚上') {
  16887. return hour + 12;
  16888. }
  16889. },
  16890. meridiem: function (hour, minute, isLower) {
  16891. var hm = hour * 100 + minute;
  16892. if (hm < 600) {
  16893. return '凌晨';
  16894. } else if (hm < 900) {
  16895. return '早上';
  16896. } else if (hm < 1130) {
  16897. return '上午';
  16898. } else if (hm < 1230) {
  16899. return '中午';
  16900. } else if (hm < 1800) {
  16901. return '下午';
  16902. } else {
  16903. return '晚上';
  16904. }
  16905. },
  16906. calendar: {
  16907. sameDay: '[今天] LT',
  16908. nextDay: '[明天] LT',
  16909. nextWeek: '[下]dddd LT',
  16910. lastDay: '[昨天] LT',
  16911. lastWeek: '[上]dddd LT',
  16912. sameElse: 'L',
  16913. },
  16914. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16915. ordinal: function (number, period) {
  16916. switch (period) {
  16917. case 'd':
  16918. case 'D':
  16919. case 'DDD':
  16920. return number + '日';
  16921. case 'M':
  16922. return number + '月';
  16923. case 'w':
  16924. case 'W':
  16925. return number + '週';
  16926. default:
  16927. return number;
  16928. }
  16929. },
  16930. relativeTime: {
  16931. future: '%s後',
  16932. past: '%s前',
  16933. s: '幾秒',
  16934. ss: '%d 秒',
  16935. m: '1 分鐘',
  16936. mm: '%d 分鐘',
  16937. h: '1 小時',
  16938. hh: '%d 小時',
  16939. d: '1 天',
  16940. dd: '%d 天',
  16941. M: '1 個月',
  16942. MM: '%d 個月',
  16943. y: '1 年',
  16944. yy: '%d 年',
  16945. },
  16946. });
  16947. hooks.locale('en');
  16948. return hooks;
  16949. })));