Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

moment-with-locales.js 603KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083
  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. })));