Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

moment-with-locales.js 582KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454
  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 and will be removed in an upcoming major release. Please refer to ' +
  2227. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2228. function (config) {
  2229. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2230. }
  2231. );
  2232. // Pick the first defined of two or three arguments.
  2233. function defaults(a, b, c) {
  2234. if (a != null) {
  2235. return a;
  2236. }
  2237. if (b != null) {
  2238. return b;
  2239. }
  2240. return c;
  2241. }
  2242. function currentDateArray(config) {
  2243. // hooks is actually the exported moment object
  2244. var nowValue = new Date(hooks.now());
  2245. if (config._useUTC) {
  2246. return [
  2247. nowValue.getUTCFullYear(),
  2248. nowValue.getUTCMonth(),
  2249. nowValue.getUTCDate(),
  2250. ];
  2251. }
  2252. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  2253. }
  2254. // convert an array to a date.
  2255. // the array should mirror the parameters below
  2256. // note: all values past the year are optional and will default to the lowest possible value.
  2257. // [year, month, day , hour, minute, second, millisecond]
  2258. function configFromArray(config) {
  2259. var i,
  2260. date,
  2261. input = [],
  2262. currentDate,
  2263. expectedWeekday,
  2264. yearToUse;
  2265. if (config._d) {
  2266. return;
  2267. }
  2268. currentDate = currentDateArray(config);
  2269. //compute day of the year from weeks and weekdays
  2270. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  2271. dayOfYearFromWeekInfo(config);
  2272. }
  2273. //if the day of the year is set, figure out what it is
  2274. if (config._dayOfYear != null) {
  2275. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  2276. if (
  2277. config._dayOfYear > daysInYear(yearToUse) ||
  2278. config._dayOfYear === 0
  2279. ) {
  2280. getParsingFlags(config)._overflowDayOfYear = true;
  2281. }
  2282. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  2283. config._a[MONTH] = date.getUTCMonth();
  2284. config._a[DATE] = date.getUTCDate();
  2285. }
  2286. // Default to current date.
  2287. // * if no year, month, day of month are given, default to today
  2288. // * if day of month is given, default month and year
  2289. // * if month is given, default only year
  2290. // * if year is given, don't default anything
  2291. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  2292. config._a[i] = input[i] = currentDate[i];
  2293. }
  2294. // Zero out whatever was not defaulted, including time
  2295. for (; i < 7; i++) {
  2296. config._a[i] = input[i] =
  2297. config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
  2298. }
  2299. // Check for 24:00:00.000
  2300. if (
  2301. config._a[HOUR] === 24 &&
  2302. config._a[MINUTE] === 0 &&
  2303. config._a[SECOND] === 0 &&
  2304. config._a[MILLISECOND] === 0
  2305. ) {
  2306. config._nextDay = true;
  2307. config._a[HOUR] = 0;
  2308. }
  2309. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  2310. null,
  2311. input
  2312. );
  2313. expectedWeekday = config._useUTC
  2314. ? config._d.getUTCDay()
  2315. : config._d.getDay();
  2316. // Apply timezone offset from input. The actual utcOffset can be changed
  2317. // with parseZone.
  2318. if (config._tzm != null) {
  2319. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2320. }
  2321. if (config._nextDay) {
  2322. config._a[HOUR] = 24;
  2323. }
  2324. // check for mismatching day of week
  2325. if (
  2326. config._w &&
  2327. typeof config._w.d !== 'undefined' &&
  2328. config._w.d !== expectedWeekday
  2329. ) {
  2330. getParsingFlags(config).weekdayMismatch = true;
  2331. }
  2332. }
  2333. function dayOfYearFromWeekInfo(config) {
  2334. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  2335. w = config._w;
  2336. if (w.GG != null || w.W != null || w.E != null) {
  2337. dow = 1;
  2338. doy = 4;
  2339. // TODO: We need to take the current isoWeekYear, but that depends on
  2340. // how we interpret now (local, utc, fixed offset). So create
  2341. // a now version of current config (take local/utc/offset flags, and
  2342. // create now).
  2343. weekYear = defaults(
  2344. w.GG,
  2345. config._a[YEAR],
  2346. weekOfYear(createLocal(), 1, 4).year
  2347. );
  2348. week = defaults(w.W, 1);
  2349. weekday = defaults(w.E, 1);
  2350. if (weekday < 1 || weekday > 7) {
  2351. weekdayOverflow = true;
  2352. }
  2353. } else {
  2354. dow = config._locale._week.dow;
  2355. doy = config._locale._week.doy;
  2356. curWeek = weekOfYear(createLocal(), dow, doy);
  2357. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  2358. // Default to current week.
  2359. week = defaults(w.w, curWeek.week);
  2360. if (w.d != null) {
  2361. // weekday -- low day numbers are considered next week
  2362. weekday = w.d;
  2363. if (weekday < 0 || weekday > 6) {
  2364. weekdayOverflow = true;
  2365. }
  2366. } else if (w.e != null) {
  2367. // local weekday -- counting starts from beginning of week
  2368. weekday = w.e + dow;
  2369. if (w.e < 0 || w.e > 6) {
  2370. weekdayOverflow = true;
  2371. }
  2372. } else {
  2373. // default to beginning of week
  2374. weekday = dow;
  2375. }
  2376. }
  2377. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  2378. getParsingFlags(config)._overflowWeeks = true;
  2379. } else if (weekdayOverflow != null) {
  2380. getParsingFlags(config)._overflowWeekday = true;
  2381. } else {
  2382. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  2383. config._a[YEAR] = temp.year;
  2384. config._dayOfYear = temp.dayOfYear;
  2385. }
  2386. }
  2387. // constant that refers to the ISO standard
  2388. hooks.ISO_8601 = function () {};
  2389. // constant that refers to the RFC 2822 form
  2390. hooks.RFC_2822 = function () {};
  2391. // date from string and format string
  2392. function configFromStringAndFormat(config) {
  2393. // TODO: Move this to another part of the creation flow to prevent circular deps
  2394. if (config._f === hooks.ISO_8601) {
  2395. configFromISO(config);
  2396. return;
  2397. }
  2398. if (config._f === hooks.RFC_2822) {
  2399. configFromRFC2822(config);
  2400. return;
  2401. }
  2402. config._a = [];
  2403. getParsingFlags(config).empty = true;
  2404. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2405. var string = '' + config._i,
  2406. i,
  2407. parsedInput,
  2408. tokens,
  2409. token,
  2410. skipped,
  2411. stringLength = string.length,
  2412. totalParsedInputLength = 0,
  2413. era;
  2414. tokens =
  2415. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2416. for (i = 0; i < tokens.length; i++) {
  2417. token = tokens[i];
  2418. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  2419. [])[0];
  2420. // console.log('token', token, 'parsedInput', parsedInput,
  2421. // 'regex', getParseRegexForToken(token, config));
  2422. if (parsedInput) {
  2423. skipped = string.substr(0, string.indexOf(parsedInput));
  2424. if (skipped.length > 0) {
  2425. getParsingFlags(config).unusedInput.push(skipped);
  2426. }
  2427. string = string.slice(
  2428. string.indexOf(parsedInput) + parsedInput.length
  2429. );
  2430. totalParsedInputLength += parsedInput.length;
  2431. }
  2432. // don't parse if it's not a known token
  2433. if (formatTokenFunctions[token]) {
  2434. if (parsedInput) {
  2435. getParsingFlags(config).empty = false;
  2436. } else {
  2437. getParsingFlags(config).unusedTokens.push(token);
  2438. }
  2439. addTimeToArrayFromToken(token, parsedInput, config);
  2440. } else if (config._strict && !parsedInput) {
  2441. getParsingFlags(config).unusedTokens.push(token);
  2442. }
  2443. }
  2444. // add remaining unparsed input length to the string
  2445. getParsingFlags(config).charsLeftOver =
  2446. stringLength - totalParsedInputLength;
  2447. if (string.length > 0) {
  2448. getParsingFlags(config).unusedInput.push(string);
  2449. }
  2450. // clear _12h flag if hour is <= 12
  2451. if (
  2452. config._a[HOUR] <= 12 &&
  2453. getParsingFlags(config).bigHour === true &&
  2454. config._a[HOUR] > 0
  2455. ) {
  2456. getParsingFlags(config).bigHour = undefined;
  2457. }
  2458. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2459. getParsingFlags(config).meridiem = config._meridiem;
  2460. // handle meridiem
  2461. config._a[HOUR] = meridiemFixWrap(
  2462. config._locale,
  2463. config._a[HOUR],
  2464. config._meridiem
  2465. );
  2466. // handle era
  2467. era = getParsingFlags(config).era;
  2468. if (era !== null) {
  2469. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  2470. }
  2471. configFromArray(config);
  2472. checkOverflow(config);
  2473. }
  2474. function meridiemFixWrap(locale, hour, meridiem) {
  2475. var isPm;
  2476. if (meridiem == null) {
  2477. // nothing to do
  2478. return hour;
  2479. }
  2480. if (locale.meridiemHour != null) {
  2481. return locale.meridiemHour(hour, meridiem);
  2482. } else if (locale.isPM != null) {
  2483. // Fallback
  2484. isPm = locale.isPM(meridiem);
  2485. if (isPm && hour < 12) {
  2486. hour += 12;
  2487. }
  2488. if (!isPm && hour === 12) {
  2489. hour = 0;
  2490. }
  2491. return hour;
  2492. } else {
  2493. // this is not supposed to happen
  2494. return hour;
  2495. }
  2496. }
  2497. // date from string and array of format strings
  2498. function configFromStringAndArray(config) {
  2499. var tempConfig,
  2500. bestMoment,
  2501. scoreToBeat,
  2502. i,
  2503. currentScore,
  2504. validFormatFound,
  2505. bestFormatIsValid = false;
  2506. if (config._f.length === 0) {
  2507. getParsingFlags(config).invalidFormat = true;
  2508. config._d = new Date(NaN);
  2509. return;
  2510. }
  2511. for (i = 0; i < config._f.length; i++) {
  2512. currentScore = 0;
  2513. validFormatFound = false;
  2514. tempConfig = copyConfig({}, config);
  2515. if (config._useUTC != null) {
  2516. tempConfig._useUTC = config._useUTC;
  2517. }
  2518. tempConfig._f = config._f[i];
  2519. configFromStringAndFormat(tempConfig);
  2520. if (isValid(tempConfig)) {
  2521. validFormatFound = true;
  2522. }
  2523. // if there is any input that was not parsed add a penalty for that format
  2524. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2525. //or tokens
  2526. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2527. getParsingFlags(tempConfig).score = currentScore;
  2528. if (!bestFormatIsValid) {
  2529. if (
  2530. scoreToBeat == null ||
  2531. currentScore < scoreToBeat ||
  2532. validFormatFound
  2533. ) {
  2534. scoreToBeat = currentScore;
  2535. bestMoment = tempConfig;
  2536. if (validFormatFound) {
  2537. bestFormatIsValid = true;
  2538. }
  2539. }
  2540. } else {
  2541. if (currentScore < scoreToBeat) {
  2542. scoreToBeat = currentScore;
  2543. bestMoment = tempConfig;
  2544. }
  2545. }
  2546. }
  2547. extend(config, bestMoment || tempConfig);
  2548. }
  2549. function configFromObject(config) {
  2550. if (config._d) {
  2551. return;
  2552. }
  2553. var i = normalizeObjectUnits(config._i),
  2554. dayOrDate = i.day === undefined ? i.date : i.day;
  2555. config._a = map(
  2556. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  2557. function (obj) {
  2558. return obj && parseInt(obj, 10);
  2559. }
  2560. );
  2561. configFromArray(config);
  2562. }
  2563. function createFromConfig(config) {
  2564. var res = new Moment(checkOverflow(prepareConfig(config)));
  2565. if (res._nextDay) {
  2566. // Adding is smart enough around DST
  2567. res.add(1, 'd');
  2568. res._nextDay = undefined;
  2569. }
  2570. return res;
  2571. }
  2572. function prepareConfig(config) {
  2573. var input = config._i,
  2574. format = config._f;
  2575. config._locale = config._locale || getLocale(config._l);
  2576. if (input === null || (format === undefined && input === '')) {
  2577. return createInvalid({ nullInput: true });
  2578. }
  2579. if (typeof input === 'string') {
  2580. config._i = input = config._locale.preparse(input);
  2581. }
  2582. if (isMoment(input)) {
  2583. return new Moment(checkOverflow(input));
  2584. } else if (isDate(input)) {
  2585. config._d = input;
  2586. } else if (isArray(format)) {
  2587. configFromStringAndArray(config);
  2588. } else if (format) {
  2589. configFromStringAndFormat(config);
  2590. } else {
  2591. configFromInput(config);
  2592. }
  2593. if (!isValid(config)) {
  2594. config._d = null;
  2595. }
  2596. return config;
  2597. }
  2598. function configFromInput(config) {
  2599. var input = config._i;
  2600. if (isUndefined(input)) {
  2601. config._d = new Date(hooks.now());
  2602. } else if (isDate(input)) {
  2603. config._d = new Date(input.valueOf());
  2604. } else if (typeof input === 'string') {
  2605. configFromString(config);
  2606. } else if (isArray(input)) {
  2607. config._a = map(input.slice(0), function (obj) {
  2608. return parseInt(obj, 10);
  2609. });
  2610. configFromArray(config);
  2611. } else if (isObject(input)) {
  2612. configFromObject(config);
  2613. } else if (isNumber(input)) {
  2614. // from milliseconds
  2615. config._d = new Date(input);
  2616. } else {
  2617. hooks.createFromInputFallback(config);
  2618. }
  2619. }
  2620. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2621. var c = {};
  2622. if (format === true || format === false) {
  2623. strict = format;
  2624. format = undefined;
  2625. }
  2626. if (locale === true || locale === false) {
  2627. strict = locale;
  2628. locale = undefined;
  2629. }
  2630. if (
  2631. (isObject(input) && isObjectEmpty(input)) ||
  2632. (isArray(input) && input.length === 0)
  2633. ) {
  2634. input = undefined;
  2635. }
  2636. // object construction must be done this way.
  2637. // https://github.com/moment/moment/issues/1423
  2638. c._isAMomentObject = true;
  2639. c._useUTC = c._isUTC = isUTC;
  2640. c._l = locale;
  2641. c._i = input;
  2642. c._f = format;
  2643. c._strict = strict;
  2644. return createFromConfig(c);
  2645. }
  2646. function createLocal(input, format, locale, strict) {
  2647. return createLocalOrUTC(input, format, locale, strict, false);
  2648. }
  2649. var prototypeMin = deprecate(
  2650. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2651. function () {
  2652. var other = createLocal.apply(null, arguments);
  2653. if (this.isValid() && other.isValid()) {
  2654. return other < this ? this : other;
  2655. } else {
  2656. return createInvalid();
  2657. }
  2658. }
  2659. ),
  2660. prototypeMax = deprecate(
  2661. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2662. function () {
  2663. var other = createLocal.apply(null, arguments);
  2664. if (this.isValid() && other.isValid()) {
  2665. return other > this ? this : other;
  2666. } else {
  2667. return createInvalid();
  2668. }
  2669. }
  2670. );
  2671. // Pick a moment m from moments so that m[fn](other) is true for all
  2672. // other. This relies on the function fn to be transitive.
  2673. //
  2674. // moments should either be an array of moment objects or an array, whose
  2675. // first element is an array of moment objects.
  2676. function pickBy(fn, moments) {
  2677. var res, i;
  2678. if (moments.length === 1 && isArray(moments[0])) {
  2679. moments = moments[0];
  2680. }
  2681. if (!moments.length) {
  2682. return createLocal();
  2683. }
  2684. res = moments[0];
  2685. for (i = 1; i < moments.length; ++i) {
  2686. if (!moments[i].isValid() || moments[i][fn](res)) {
  2687. res = moments[i];
  2688. }
  2689. }
  2690. return res;
  2691. }
  2692. // TODO: Use [].sort instead?
  2693. function min() {
  2694. var args = [].slice.call(arguments, 0);
  2695. return pickBy('isBefore', args);
  2696. }
  2697. function max() {
  2698. var args = [].slice.call(arguments, 0);
  2699. return pickBy('isAfter', args);
  2700. }
  2701. var now = function () {
  2702. return Date.now ? Date.now() : +new Date();
  2703. };
  2704. var ordering = [
  2705. 'year',
  2706. 'quarter',
  2707. 'month',
  2708. 'week',
  2709. 'day',
  2710. 'hour',
  2711. 'minute',
  2712. 'second',
  2713. 'millisecond',
  2714. ];
  2715. function isDurationValid(m) {
  2716. var key,
  2717. unitHasDecimal = false,
  2718. i;
  2719. for (key in m) {
  2720. if (
  2721. hasOwnProp(m, key) &&
  2722. !(
  2723. indexOf.call(ordering, key) !== -1 &&
  2724. (m[key] == null || !isNaN(m[key]))
  2725. )
  2726. ) {
  2727. return false;
  2728. }
  2729. }
  2730. for (i = 0; i < ordering.length; ++i) {
  2731. if (m[ordering[i]]) {
  2732. if (unitHasDecimal) {
  2733. return false; // only allow non-integers for smallest unit
  2734. }
  2735. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2736. unitHasDecimal = true;
  2737. }
  2738. }
  2739. }
  2740. return true;
  2741. }
  2742. function isValid$1() {
  2743. return this._isValid;
  2744. }
  2745. function createInvalid$1() {
  2746. return createDuration(NaN);
  2747. }
  2748. function Duration(duration) {
  2749. var normalizedInput = normalizeObjectUnits(duration),
  2750. years = normalizedInput.year || 0,
  2751. quarters = normalizedInput.quarter || 0,
  2752. months = normalizedInput.month || 0,
  2753. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2754. days = normalizedInput.day || 0,
  2755. hours = normalizedInput.hour || 0,
  2756. minutes = normalizedInput.minute || 0,
  2757. seconds = normalizedInput.second || 0,
  2758. milliseconds = normalizedInput.millisecond || 0;
  2759. this._isValid = isDurationValid(normalizedInput);
  2760. // representation for dateAddRemove
  2761. this._milliseconds =
  2762. +milliseconds +
  2763. seconds * 1e3 + // 1000
  2764. minutes * 6e4 + // 1000 * 60
  2765. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2766. // Because of dateAddRemove treats 24 hours as different from a
  2767. // day when working around DST, we need to store them separately
  2768. this._days = +days + weeks * 7;
  2769. // It is impossible to translate months into days without knowing
  2770. // which months you are are talking about, so we have to store
  2771. // it separately.
  2772. this._months = +months + quarters * 3 + years * 12;
  2773. this._data = {};
  2774. this._locale = getLocale();
  2775. this._bubble();
  2776. }
  2777. function isDuration(obj) {
  2778. return obj instanceof Duration;
  2779. }
  2780. function absRound(number) {
  2781. if (number < 0) {
  2782. return Math.round(-1 * number) * -1;
  2783. } else {
  2784. return Math.round(number);
  2785. }
  2786. }
  2787. // compare two arrays, return the number of differences
  2788. function compareArrays(array1, array2, dontConvert) {
  2789. var len = Math.min(array1.length, array2.length),
  2790. lengthDiff = Math.abs(array1.length - array2.length),
  2791. diffs = 0,
  2792. i;
  2793. for (i = 0; i < len; i++) {
  2794. if (
  2795. (dontConvert && array1[i] !== array2[i]) ||
  2796. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  2797. ) {
  2798. diffs++;
  2799. }
  2800. }
  2801. return diffs + lengthDiff;
  2802. }
  2803. // FORMATTING
  2804. function offset(token, separator) {
  2805. addFormatToken(token, 0, 0, function () {
  2806. var offset = this.utcOffset(),
  2807. sign = '+';
  2808. if (offset < 0) {
  2809. offset = -offset;
  2810. sign = '-';
  2811. }
  2812. return (
  2813. sign +
  2814. zeroFill(~~(offset / 60), 2) +
  2815. separator +
  2816. zeroFill(~~offset % 60, 2)
  2817. );
  2818. });
  2819. }
  2820. offset('Z', ':');
  2821. offset('ZZ', '');
  2822. // PARSING
  2823. addRegexToken('Z', matchShortOffset);
  2824. addRegexToken('ZZ', matchShortOffset);
  2825. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2826. config._useUTC = true;
  2827. config._tzm = offsetFromString(matchShortOffset, input);
  2828. });
  2829. // HELPERS
  2830. // timezone chunker
  2831. // '+10:00' > ['10', '00']
  2832. // '-1530' > ['-15', '30']
  2833. var chunkOffset = /([\+\-]|\d\d)/gi;
  2834. function offsetFromString(matcher, string) {
  2835. var matches = (string || '').match(matcher),
  2836. chunk,
  2837. parts,
  2838. minutes;
  2839. if (matches === null) {
  2840. return null;
  2841. }
  2842. chunk = matches[matches.length - 1] || [];
  2843. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2844. minutes = +(parts[1] * 60) + toInt(parts[2]);
  2845. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  2846. }
  2847. // Return a moment from input, that is local/utc/zone equivalent to model.
  2848. function cloneWithOffset(input, model) {
  2849. var res, diff;
  2850. if (model._isUTC) {
  2851. res = model.clone();
  2852. diff =
  2853. (isMoment(input) || isDate(input)
  2854. ? input.valueOf()
  2855. : createLocal(input).valueOf()) - res.valueOf();
  2856. // Use low-level api, because this fn is low-level api.
  2857. res._d.setTime(res._d.valueOf() + diff);
  2858. hooks.updateOffset(res, false);
  2859. return res;
  2860. } else {
  2861. return createLocal(input).local();
  2862. }
  2863. }
  2864. function getDateOffset(m) {
  2865. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2866. // https://github.com/moment/moment/pull/1871
  2867. return -Math.round(m._d.getTimezoneOffset());
  2868. }
  2869. // HOOKS
  2870. // This function will be called whenever a moment is mutated.
  2871. // It is intended to keep the offset in sync with the timezone.
  2872. hooks.updateOffset = function () {};
  2873. // MOMENTS
  2874. // keepLocalTime = true means only change the timezone, without
  2875. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2876. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2877. // +0200, so we adjust the time as needed, to be valid.
  2878. //
  2879. // Keeping the time actually adds/subtracts (one hour)
  2880. // from the actual represented time. That is why we call updateOffset
  2881. // a second time. In case it wants us to change the offset again
  2882. // _changeInProgress == true case, then we have to adjust, because
  2883. // there is no such time in the given timezone.
  2884. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2885. var offset = this._offset || 0,
  2886. localAdjust;
  2887. if (!this.isValid()) {
  2888. return input != null ? this : NaN;
  2889. }
  2890. if (input != null) {
  2891. if (typeof input === 'string') {
  2892. input = offsetFromString(matchShortOffset, input);
  2893. if (input === null) {
  2894. return this;
  2895. }
  2896. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2897. input = input * 60;
  2898. }
  2899. if (!this._isUTC && keepLocalTime) {
  2900. localAdjust = getDateOffset(this);
  2901. }
  2902. this._offset = input;
  2903. this._isUTC = true;
  2904. if (localAdjust != null) {
  2905. this.add(localAdjust, 'm');
  2906. }
  2907. if (offset !== input) {
  2908. if (!keepLocalTime || this._changeInProgress) {
  2909. addSubtract(
  2910. this,
  2911. createDuration(input - offset, 'm'),
  2912. 1,
  2913. false
  2914. );
  2915. } else if (!this._changeInProgress) {
  2916. this._changeInProgress = true;
  2917. hooks.updateOffset(this, true);
  2918. this._changeInProgress = null;
  2919. }
  2920. }
  2921. return this;
  2922. } else {
  2923. return this._isUTC ? offset : getDateOffset(this);
  2924. }
  2925. }
  2926. function getSetZone(input, keepLocalTime) {
  2927. if (input != null) {
  2928. if (typeof input !== 'string') {
  2929. input = -input;
  2930. }
  2931. this.utcOffset(input, keepLocalTime);
  2932. return this;
  2933. } else {
  2934. return -this.utcOffset();
  2935. }
  2936. }
  2937. function setOffsetToUTC(keepLocalTime) {
  2938. return this.utcOffset(0, keepLocalTime);
  2939. }
  2940. function setOffsetToLocal(keepLocalTime) {
  2941. if (this._isUTC) {
  2942. this.utcOffset(0, keepLocalTime);
  2943. this._isUTC = false;
  2944. if (keepLocalTime) {
  2945. this.subtract(getDateOffset(this), 'm');
  2946. }
  2947. }
  2948. return this;
  2949. }
  2950. function setOffsetToParsedOffset() {
  2951. if (this._tzm != null) {
  2952. this.utcOffset(this._tzm, false, true);
  2953. } else if (typeof this._i === 'string') {
  2954. var tZone = offsetFromString(matchOffset, this._i);
  2955. if (tZone != null) {
  2956. this.utcOffset(tZone);
  2957. } else {
  2958. this.utcOffset(0, true);
  2959. }
  2960. }
  2961. return this;
  2962. }
  2963. function hasAlignedHourOffset(input) {
  2964. if (!this.isValid()) {
  2965. return false;
  2966. }
  2967. input = input ? createLocal(input).utcOffset() : 0;
  2968. return (this.utcOffset() - input) % 60 === 0;
  2969. }
  2970. function isDaylightSavingTime() {
  2971. return (
  2972. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2973. this.utcOffset() > this.clone().month(5).utcOffset()
  2974. );
  2975. }
  2976. function isDaylightSavingTimeShifted() {
  2977. if (!isUndefined(this._isDSTShifted)) {
  2978. return this._isDSTShifted;
  2979. }
  2980. var c = {},
  2981. other;
  2982. copyConfig(c, this);
  2983. c = prepareConfig(c);
  2984. if (c._a) {
  2985. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2986. this._isDSTShifted =
  2987. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  2988. } else {
  2989. this._isDSTShifted = false;
  2990. }
  2991. return this._isDSTShifted;
  2992. }
  2993. function isLocal() {
  2994. return this.isValid() ? !this._isUTC : false;
  2995. }
  2996. function isUtcOffset() {
  2997. return this.isValid() ? this._isUTC : false;
  2998. }
  2999. function isUtc() {
  3000. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  3001. }
  3002. // ASP.NET json date format regex
  3003. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  3004. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  3005. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  3006. // and further modified to allow for strings containing both week and day
  3007. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  3008. function createDuration(input, key) {
  3009. var duration = input,
  3010. // matching against regexp is expensive, do it on demand
  3011. match = null,
  3012. sign,
  3013. ret,
  3014. diffRes;
  3015. if (isDuration(input)) {
  3016. duration = {
  3017. ms: input._milliseconds,
  3018. d: input._days,
  3019. M: input._months,
  3020. };
  3021. } else if (isNumber(input) || !isNaN(+input)) {
  3022. duration = {};
  3023. if (key) {
  3024. duration[key] = +input;
  3025. } else {
  3026. duration.milliseconds = +input;
  3027. }
  3028. } else if ((match = aspNetRegex.exec(input))) {
  3029. sign = match[1] === '-' ? -1 : 1;
  3030. duration = {
  3031. y: 0,
  3032. d: toInt(match[DATE]) * sign,
  3033. h: toInt(match[HOUR]) * sign,
  3034. m: toInt(match[MINUTE]) * sign,
  3035. s: toInt(match[SECOND]) * sign,
  3036. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
  3037. };
  3038. } else if ((match = isoRegex.exec(input))) {
  3039. sign = match[1] === '-' ? -1 : 1;
  3040. duration = {
  3041. y: parseIso(match[2], sign),
  3042. M: parseIso(match[3], sign),
  3043. w: parseIso(match[4], sign),
  3044. d: parseIso(match[5], sign),
  3045. h: parseIso(match[6], sign),
  3046. m: parseIso(match[7], sign),
  3047. s: parseIso(match[8], sign),
  3048. };
  3049. } else if (duration == null) {
  3050. // checks for null or undefined
  3051. duration = {};
  3052. } else if (
  3053. typeof duration === 'object' &&
  3054. ('from' in duration || 'to' in duration)
  3055. ) {
  3056. diffRes = momentsDifference(
  3057. createLocal(duration.from),
  3058. createLocal(duration.to)
  3059. );
  3060. duration = {};
  3061. duration.ms = diffRes.milliseconds;
  3062. duration.M = diffRes.months;
  3063. }
  3064. ret = new Duration(duration);
  3065. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  3066. ret._locale = input._locale;
  3067. }
  3068. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  3069. ret._isValid = input._isValid;
  3070. }
  3071. return ret;
  3072. }
  3073. createDuration.fn = Duration.prototype;
  3074. createDuration.invalid = createInvalid$1;
  3075. function parseIso(inp, sign) {
  3076. // We'd normally use ~~inp for this, but unfortunately it also
  3077. // converts floats to ints.
  3078. // inp may be undefined, so careful calling replace on it.
  3079. var res = inp && parseFloat(inp.replace(',', '.'));
  3080. // apply sign while we're at it
  3081. return (isNaN(res) ? 0 : res) * sign;
  3082. }
  3083. function positiveMomentsDifference(base, other) {
  3084. var res = {};
  3085. res.months =
  3086. other.month() - base.month() + (other.year() - base.year()) * 12;
  3087. if (base.clone().add(res.months, 'M').isAfter(other)) {
  3088. --res.months;
  3089. }
  3090. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  3091. return res;
  3092. }
  3093. function momentsDifference(base, other) {
  3094. var res;
  3095. if (!(base.isValid() && other.isValid())) {
  3096. return { milliseconds: 0, months: 0 };
  3097. }
  3098. other = cloneWithOffset(other, base);
  3099. if (base.isBefore(other)) {
  3100. res = positiveMomentsDifference(base, other);
  3101. } else {
  3102. res = positiveMomentsDifference(other, base);
  3103. res.milliseconds = -res.milliseconds;
  3104. res.months = -res.months;
  3105. }
  3106. return res;
  3107. }
  3108. // TODO: remove 'name' arg after deprecation is removed
  3109. function createAdder(direction, name) {
  3110. return function (val, period) {
  3111. var dur, tmp;
  3112. //invert the arguments, but complain about it
  3113. if (period !== null && !isNaN(+period)) {
  3114. deprecateSimple(
  3115. name,
  3116. 'moment().' +
  3117. name +
  3118. '(period, number) is deprecated. Please use moment().' +
  3119. name +
  3120. '(number, period). ' +
  3121. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
  3122. );
  3123. tmp = val;
  3124. val = period;
  3125. period = tmp;
  3126. }
  3127. dur = createDuration(val, period);
  3128. addSubtract(this, dur, direction);
  3129. return this;
  3130. };
  3131. }
  3132. function addSubtract(mom, duration, isAdding, updateOffset) {
  3133. var milliseconds = duration._milliseconds,
  3134. days = absRound(duration._days),
  3135. months = absRound(duration._months);
  3136. if (!mom.isValid()) {
  3137. // No op
  3138. return;
  3139. }
  3140. updateOffset = updateOffset == null ? true : updateOffset;
  3141. if (months) {
  3142. setMonth(mom, get(mom, 'Month') + months * isAdding);
  3143. }
  3144. if (days) {
  3145. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  3146. }
  3147. if (milliseconds) {
  3148. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  3149. }
  3150. if (updateOffset) {
  3151. hooks.updateOffset(mom, days || months);
  3152. }
  3153. }
  3154. var add = createAdder(1, 'add'),
  3155. subtract = createAdder(-1, 'subtract');
  3156. function isString(input) {
  3157. return typeof input === 'string' || input instanceof String;
  3158. }
  3159. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  3160. function isMomentInput(input) {
  3161. return (
  3162. isMoment(input) ||
  3163. isDate(input) ||
  3164. isString(input) ||
  3165. isNumber(input) ||
  3166. isNumberOrStringArray(input) ||
  3167. isMomentInputObject(input) ||
  3168. input === null ||
  3169. input === undefined
  3170. );
  3171. }
  3172. function isMomentInputObject(input) {
  3173. var objectTest = isObject(input) && !isObjectEmpty(input),
  3174. propertyTest = false,
  3175. properties = [
  3176. 'years',
  3177. 'year',
  3178. 'y',
  3179. 'months',
  3180. 'month',
  3181. 'M',
  3182. 'days',
  3183. 'day',
  3184. 'd',
  3185. 'dates',
  3186. 'date',
  3187. 'D',
  3188. 'hours',
  3189. 'hour',
  3190. 'h',
  3191. 'minutes',
  3192. 'minute',
  3193. 'm',
  3194. 'seconds',
  3195. 'second',
  3196. 's',
  3197. 'milliseconds',
  3198. 'millisecond',
  3199. 'ms',
  3200. ],
  3201. i,
  3202. property;
  3203. for (i = 0; i < properties.length; i += 1) {
  3204. property = properties[i];
  3205. propertyTest = propertyTest || hasOwnProp(input, property);
  3206. }
  3207. return objectTest && propertyTest;
  3208. }
  3209. function isNumberOrStringArray(input) {
  3210. var arrayTest = isArray(input),
  3211. dataTypeTest = false;
  3212. if (arrayTest) {
  3213. dataTypeTest =
  3214. input.filter(function (item) {
  3215. return !isNumber(item) && isString(input);
  3216. }).length === 0;
  3217. }
  3218. return arrayTest && dataTypeTest;
  3219. }
  3220. function isCalendarSpec(input) {
  3221. var objectTest = isObject(input) && !isObjectEmpty(input),
  3222. propertyTest = false,
  3223. properties = [
  3224. 'sameDay',
  3225. 'nextDay',
  3226. 'lastDay',
  3227. 'nextWeek',
  3228. 'lastWeek',
  3229. 'sameElse',
  3230. ],
  3231. i,
  3232. property;
  3233. for (i = 0; i < properties.length; i += 1) {
  3234. property = properties[i];
  3235. propertyTest = propertyTest || hasOwnProp(input, property);
  3236. }
  3237. return objectTest && propertyTest;
  3238. }
  3239. function getCalendarFormat(myMoment, now) {
  3240. var diff = myMoment.diff(now, 'days', true);
  3241. return diff < -6
  3242. ? 'sameElse'
  3243. : diff < -1
  3244. ? 'lastWeek'
  3245. : diff < 0
  3246. ? 'lastDay'
  3247. : diff < 1
  3248. ? 'sameDay'
  3249. : diff < 2
  3250. ? 'nextDay'
  3251. : diff < 7
  3252. ? 'nextWeek'
  3253. : 'sameElse';
  3254. }
  3255. function calendar$1(time, formats) {
  3256. // Support for single parameter, formats only overload to the calendar function
  3257. if (arguments.length === 1) {
  3258. 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.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.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.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.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.25.3';
  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. hooks.defineLocale('ar-dz', {
  4975. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  4976. '_'
  4977. ),
  4978. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  4979. '_'
  4980. ),
  4981. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4982. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  4983. weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
  4984. weekdaysParseExact: true,
  4985. longDateFormat: {
  4986. LT: 'HH:mm',
  4987. LTS: 'HH:mm:ss',
  4988. L: 'DD/MM/YYYY',
  4989. LL: 'D MMMM YYYY',
  4990. LLL: 'D MMMM YYYY HH:mm',
  4991. LLLL: 'dddd D MMMM YYYY HH:mm',
  4992. },
  4993. calendar: {
  4994. sameDay: '[اليوم على الساعة] LT',
  4995. nextDay: '[غدا على الساعة] LT',
  4996. nextWeek: 'dddd [على الساعة] LT',
  4997. lastDay: '[أمس على الساعة] LT',
  4998. lastWeek: 'dddd [على الساعة] LT',
  4999. sameElse: 'L',
  5000. },
  5001. relativeTime: {
  5002. future: 'في %s',
  5003. past: 'منذ %s',
  5004. s: 'ثوان',
  5005. ss: '%d ثانية',
  5006. m: 'دقيقة',
  5007. mm: '%d دقائق',
  5008. h: 'ساعة',
  5009. hh: '%d ساعات',
  5010. d: 'يوم',
  5011. dd: '%d أيام',
  5012. M: 'شهر',
  5013. MM: '%d أشهر',
  5014. y: 'سنة',
  5015. yy: '%d سنوات',
  5016. },
  5017. week: {
  5018. dow: 0, // Sunday is the first day of the week.
  5019. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5020. },
  5021. });
  5022. //! moment.js locale configuration
  5023. hooks.defineLocale('ar-kw', {
  5024. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5025. '_'
  5026. ),
  5027. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5028. '_'
  5029. ),
  5030. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5031. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5032. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5033. weekdaysParseExact: true,
  5034. longDateFormat: {
  5035. LT: 'HH:mm',
  5036. LTS: 'HH:mm:ss',
  5037. L: 'DD/MM/YYYY',
  5038. LL: 'D MMMM YYYY',
  5039. LLL: 'D MMMM YYYY HH:mm',
  5040. LLLL: 'dddd D MMMM YYYY HH:mm',
  5041. },
  5042. calendar: {
  5043. sameDay: '[اليوم على الساعة] LT',
  5044. nextDay: '[غدا على الساعة] LT',
  5045. nextWeek: 'dddd [على الساعة] LT',
  5046. lastDay: '[أمس على الساعة] LT',
  5047. lastWeek: 'dddd [على الساعة] LT',
  5048. sameElse: 'L',
  5049. },
  5050. relativeTime: {
  5051. future: 'في %s',
  5052. past: 'منذ %s',
  5053. s: 'ثوان',
  5054. ss: '%d ثانية',
  5055. m: 'دقيقة',
  5056. mm: '%d دقائق',
  5057. h: 'ساعة',
  5058. hh: '%d ساعات',
  5059. d: 'يوم',
  5060. dd: '%d أيام',
  5061. M: 'شهر',
  5062. MM: '%d أشهر',
  5063. y: 'سنة',
  5064. yy: '%d سنوات',
  5065. },
  5066. week: {
  5067. dow: 0, // Sunday is the first day of the week.
  5068. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5069. },
  5070. });
  5071. //! moment.js locale configuration
  5072. var symbolMap = {
  5073. '1': '1',
  5074. '2': '2',
  5075. '3': '3',
  5076. '4': '4',
  5077. '5': '5',
  5078. '6': '6',
  5079. '7': '7',
  5080. '8': '8',
  5081. '9': '9',
  5082. '0': '0',
  5083. },
  5084. pluralForm = function (n) {
  5085. return n === 0
  5086. ? 0
  5087. : n === 1
  5088. ? 1
  5089. : n === 2
  5090. ? 2
  5091. : n % 100 >= 3 && n % 100 <= 10
  5092. ? 3
  5093. : n % 100 >= 11
  5094. ? 4
  5095. : 5;
  5096. },
  5097. plurals = {
  5098. s: [
  5099. 'أقل من ثانية',
  5100. 'ثانية واحدة',
  5101. ['ثانيتان', 'ثانيتين'],
  5102. '%d ثوان',
  5103. '%d ثانية',
  5104. '%d ثانية',
  5105. ],
  5106. m: [
  5107. 'أقل من دقيقة',
  5108. 'دقيقة واحدة',
  5109. ['دقيقتان', 'دقيقتين'],
  5110. '%d دقائق',
  5111. '%d دقيقة',
  5112. '%d دقيقة',
  5113. ],
  5114. h: [
  5115. 'أقل من ساعة',
  5116. 'ساعة واحدة',
  5117. ['ساعتان', 'ساعتين'],
  5118. '%d ساعات',
  5119. '%d ساعة',
  5120. '%d ساعة',
  5121. ],
  5122. d: [
  5123. 'أقل من يوم',
  5124. 'يوم واحد',
  5125. ['يومان', 'يومين'],
  5126. '%d أيام',
  5127. '%d يومًا',
  5128. '%d يوم',
  5129. ],
  5130. M: [
  5131. 'أقل من شهر',
  5132. 'شهر واحد',
  5133. ['شهران', 'شهرين'],
  5134. '%d أشهر',
  5135. '%d شهرا',
  5136. '%d شهر',
  5137. ],
  5138. y: [
  5139. 'أقل من عام',
  5140. 'عام واحد',
  5141. ['عامان', 'عامين'],
  5142. '%d أعوام',
  5143. '%d عامًا',
  5144. '%d عام',
  5145. ],
  5146. },
  5147. pluralize = function (u) {
  5148. return function (number, withoutSuffix, string, isFuture) {
  5149. var f = pluralForm(number),
  5150. str = plurals[u][pluralForm(number)];
  5151. if (f === 2) {
  5152. str = str[withoutSuffix ? 0 : 1];
  5153. }
  5154. return str.replace(/%d/i, number);
  5155. };
  5156. },
  5157. months$1 = [
  5158. 'يناير',
  5159. 'فبراير',
  5160. 'مارس',
  5161. 'أبريل',
  5162. 'مايو',
  5163. 'يونيو',
  5164. 'يوليو',
  5165. 'أغسطس',
  5166. 'سبتمبر',
  5167. 'أكتوبر',
  5168. 'نوفمبر',
  5169. 'ديسمبر',
  5170. ];
  5171. hooks.defineLocale('ar-ly', {
  5172. months: months$1,
  5173. monthsShort: months$1,
  5174. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5175. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5176. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5177. weekdaysParseExact: true,
  5178. longDateFormat: {
  5179. LT: 'HH:mm',
  5180. LTS: 'HH:mm:ss',
  5181. L: 'D/\u200FM/\u200FYYYY',
  5182. LL: 'D MMMM YYYY',
  5183. LLL: 'D MMMM YYYY HH:mm',
  5184. LLLL: 'dddd D MMMM YYYY HH:mm',
  5185. },
  5186. meridiemParse: /ص|م/,
  5187. isPM: function (input) {
  5188. return 'م' === input;
  5189. },
  5190. meridiem: function (hour, minute, isLower) {
  5191. if (hour < 12) {
  5192. return 'ص';
  5193. } else {
  5194. return 'م';
  5195. }
  5196. },
  5197. calendar: {
  5198. sameDay: '[اليوم عند الساعة] LT',
  5199. nextDay: '[غدًا عند الساعة] LT',
  5200. nextWeek: 'dddd [عند الساعة] LT',
  5201. lastDay: '[أمس عند الساعة] LT',
  5202. lastWeek: 'dddd [عند الساعة] LT',
  5203. sameElse: 'L',
  5204. },
  5205. relativeTime: {
  5206. future: 'بعد %s',
  5207. past: 'منذ %s',
  5208. s: pluralize('s'),
  5209. ss: pluralize('s'),
  5210. m: pluralize('m'),
  5211. mm: pluralize('m'),
  5212. h: pluralize('h'),
  5213. hh: pluralize('h'),
  5214. d: pluralize('d'),
  5215. dd: pluralize('d'),
  5216. M: pluralize('M'),
  5217. MM: pluralize('M'),
  5218. y: pluralize('y'),
  5219. yy: pluralize('y'),
  5220. },
  5221. preparse: function (string) {
  5222. return string.replace(/،/g, ',');
  5223. },
  5224. postformat: function (string) {
  5225. return string
  5226. .replace(/\d/g, function (match) {
  5227. return symbolMap[match];
  5228. })
  5229. .replace(/,/g, '،');
  5230. },
  5231. week: {
  5232. dow: 6, // Saturday is the first day of the week.
  5233. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5234. },
  5235. });
  5236. //! moment.js locale configuration
  5237. hooks.defineLocale('ar-ma', {
  5238. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5239. '_'
  5240. ),
  5241. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5242. '_'
  5243. ),
  5244. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5245. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5246. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5247. weekdaysParseExact: true,
  5248. longDateFormat: {
  5249. LT: 'HH:mm',
  5250. LTS: 'HH:mm:ss',
  5251. L: 'DD/MM/YYYY',
  5252. LL: 'D MMMM YYYY',
  5253. LLL: 'D MMMM YYYY HH:mm',
  5254. LLLL: 'dddd D MMMM YYYY HH:mm',
  5255. },
  5256. calendar: {
  5257. sameDay: '[اليوم على الساعة] LT',
  5258. nextDay: '[غدا على الساعة] LT',
  5259. nextWeek: 'dddd [على الساعة] LT',
  5260. lastDay: '[أمس على الساعة] LT',
  5261. lastWeek: 'dddd [على الساعة] LT',
  5262. sameElse: 'L',
  5263. },
  5264. relativeTime: {
  5265. future: 'في %s',
  5266. past: 'منذ %s',
  5267. s: 'ثوان',
  5268. ss: '%d ثانية',
  5269. m: 'دقيقة',
  5270. mm: '%d دقائق',
  5271. h: 'ساعة',
  5272. hh: '%d ساعات',
  5273. d: 'يوم',
  5274. dd: '%d أيام',
  5275. M: 'شهر',
  5276. MM: '%d أشهر',
  5277. y: 'سنة',
  5278. yy: '%d سنوات',
  5279. },
  5280. week: {
  5281. dow: 6, // Saturday is the first day of the week.
  5282. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5283. },
  5284. });
  5285. //! moment.js locale configuration
  5286. var symbolMap$1 = {
  5287. '1': '١',
  5288. '2': '٢',
  5289. '3': '٣',
  5290. '4': '٤',
  5291. '5': '٥',
  5292. '6': '٦',
  5293. '7': '٧',
  5294. '8': '٨',
  5295. '9': '٩',
  5296. '0': '٠',
  5297. },
  5298. numberMap = {
  5299. '١': '1',
  5300. '٢': '2',
  5301. '٣': '3',
  5302. '٤': '4',
  5303. '٥': '5',
  5304. '٦': '6',
  5305. '٧': '7',
  5306. '٨': '8',
  5307. '٩': '9',
  5308. '٠': '0',
  5309. };
  5310. hooks.defineLocale('ar-sa', {
  5311. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5312. '_'
  5313. ),
  5314. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5315. '_'
  5316. ),
  5317. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5318. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5319. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5320. weekdaysParseExact: true,
  5321. longDateFormat: {
  5322. LT: 'HH:mm',
  5323. LTS: 'HH:mm:ss',
  5324. L: 'DD/MM/YYYY',
  5325. LL: 'D MMMM YYYY',
  5326. LLL: 'D MMMM YYYY HH:mm',
  5327. LLLL: 'dddd D MMMM YYYY HH:mm',
  5328. },
  5329. meridiemParse: /ص|م/,
  5330. isPM: function (input) {
  5331. return 'م' === input;
  5332. },
  5333. meridiem: function (hour, minute, isLower) {
  5334. if (hour < 12) {
  5335. return 'ص';
  5336. } else {
  5337. return 'م';
  5338. }
  5339. },
  5340. calendar: {
  5341. sameDay: '[اليوم على الساعة] LT',
  5342. nextDay: '[غدا على الساعة] LT',
  5343. nextWeek: 'dddd [على الساعة] LT',
  5344. lastDay: '[أمس على الساعة] LT',
  5345. lastWeek: 'dddd [على الساعة] LT',
  5346. sameElse: 'L',
  5347. },
  5348. relativeTime: {
  5349. future: 'في %s',
  5350. past: 'منذ %s',
  5351. s: 'ثوان',
  5352. ss: '%d ثانية',
  5353. m: 'دقيقة',
  5354. mm: '%d دقائق',
  5355. h: 'ساعة',
  5356. hh: '%d ساعات',
  5357. d: 'يوم',
  5358. dd: '%d أيام',
  5359. M: 'شهر',
  5360. MM: '%d أشهر',
  5361. y: 'سنة',
  5362. yy: '%d سنوات',
  5363. },
  5364. preparse: function (string) {
  5365. return string
  5366. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5367. return numberMap[match];
  5368. })
  5369. .replace(/،/g, ',');
  5370. },
  5371. postformat: function (string) {
  5372. return string
  5373. .replace(/\d/g, function (match) {
  5374. return symbolMap$1[match];
  5375. })
  5376. .replace(/,/g, '،');
  5377. },
  5378. week: {
  5379. dow: 0, // Sunday is the first day of the week.
  5380. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5381. },
  5382. });
  5383. //! moment.js locale configuration
  5384. hooks.defineLocale('ar-tn', {
  5385. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5386. '_'
  5387. ),
  5388. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5389. '_'
  5390. ),
  5391. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5392. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5393. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5394. weekdaysParseExact: true,
  5395. longDateFormat: {
  5396. LT: 'HH:mm',
  5397. LTS: 'HH:mm:ss',
  5398. L: 'DD/MM/YYYY',
  5399. LL: 'D MMMM YYYY',
  5400. LLL: 'D MMMM YYYY HH:mm',
  5401. LLLL: 'dddd D MMMM YYYY HH:mm',
  5402. },
  5403. calendar: {
  5404. sameDay: '[اليوم على الساعة] LT',
  5405. nextDay: '[غدا على الساعة] LT',
  5406. nextWeek: 'dddd [على الساعة] LT',
  5407. lastDay: '[أمس على الساعة] LT',
  5408. lastWeek: 'dddd [على الساعة] LT',
  5409. sameElse: 'L',
  5410. },
  5411. relativeTime: {
  5412. future: 'في %s',
  5413. past: 'منذ %s',
  5414. s: 'ثوان',
  5415. ss: '%d ثانية',
  5416. m: 'دقيقة',
  5417. mm: '%d دقائق',
  5418. h: 'ساعة',
  5419. hh: '%d ساعات',
  5420. d: 'يوم',
  5421. dd: '%d أيام',
  5422. M: 'شهر',
  5423. MM: '%d أشهر',
  5424. y: 'سنة',
  5425. yy: '%d سنوات',
  5426. },
  5427. week: {
  5428. dow: 1, // Monday is the first day of the week.
  5429. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5430. },
  5431. });
  5432. //! moment.js locale configuration
  5433. var symbolMap$2 = {
  5434. '1': '١',
  5435. '2': '٢',
  5436. '3': '٣',
  5437. '4': '٤',
  5438. '5': '٥',
  5439. '6': '٦',
  5440. '7': '٧',
  5441. '8': '٨',
  5442. '9': '٩',
  5443. '0': '٠',
  5444. },
  5445. numberMap$1 = {
  5446. '١': '1',
  5447. '٢': '2',
  5448. '٣': '3',
  5449. '٤': '4',
  5450. '٥': '5',
  5451. '٦': '6',
  5452. '٧': '7',
  5453. '٨': '8',
  5454. '٩': '9',
  5455. '٠': '0',
  5456. },
  5457. pluralForm$1 = function (n) {
  5458. return n === 0
  5459. ? 0
  5460. : n === 1
  5461. ? 1
  5462. : n === 2
  5463. ? 2
  5464. : n % 100 >= 3 && n % 100 <= 10
  5465. ? 3
  5466. : n % 100 >= 11
  5467. ? 4
  5468. : 5;
  5469. },
  5470. plurals$1 = {
  5471. s: [
  5472. 'أقل من ثانية',
  5473. 'ثانية واحدة',
  5474. ['ثانيتان', 'ثانيتين'],
  5475. '%d ثوان',
  5476. '%d ثانية',
  5477. '%d ثانية',
  5478. ],
  5479. m: [
  5480. 'أقل من دقيقة',
  5481. 'دقيقة واحدة',
  5482. ['دقيقتان', 'دقيقتين'],
  5483. '%d دقائق',
  5484. '%d دقيقة',
  5485. '%d دقيقة',
  5486. ],
  5487. h: [
  5488. 'أقل من ساعة',
  5489. 'ساعة واحدة',
  5490. ['ساعتان', 'ساعتين'],
  5491. '%d ساعات',
  5492. '%d ساعة',
  5493. '%d ساعة',
  5494. ],
  5495. d: [
  5496. 'أقل من يوم',
  5497. 'يوم واحد',
  5498. ['يومان', 'يومين'],
  5499. '%d أيام',
  5500. '%d يومًا',
  5501. '%d يوم',
  5502. ],
  5503. M: [
  5504. 'أقل من شهر',
  5505. 'شهر واحد',
  5506. ['شهران', 'شهرين'],
  5507. '%d أشهر',
  5508. '%d شهرا',
  5509. '%d شهر',
  5510. ],
  5511. y: [
  5512. 'أقل من عام',
  5513. 'عام واحد',
  5514. ['عامان', 'عامين'],
  5515. '%d أعوام',
  5516. '%d عامًا',
  5517. '%d عام',
  5518. ],
  5519. },
  5520. pluralize$1 = function (u) {
  5521. return function (number, withoutSuffix, string, isFuture) {
  5522. var f = pluralForm$1(number),
  5523. str = plurals$1[u][pluralForm$1(number)];
  5524. if (f === 2) {
  5525. str = str[withoutSuffix ? 0 : 1];
  5526. }
  5527. return str.replace(/%d/i, number);
  5528. };
  5529. },
  5530. months$2 = [
  5531. 'يناير',
  5532. 'فبراير',
  5533. 'مارس',
  5534. 'أبريل',
  5535. 'مايو',
  5536. 'يونيو',
  5537. 'يوليو',
  5538. 'أغسطس',
  5539. 'سبتمبر',
  5540. 'أكتوبر',
  5541. 'نوفمبر',
  5542. 'ديسمبر',
  5543. ];
  5544. hooks.defineLocale('ar', {
  5545. months: months$2,
  5546. monthsShort: months$2,
  5547. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5548. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5549. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5550. weekdaysParseExact: true,
  5551. longDateFormat: {
  5552. LT: 'HH:mm',
  5553. LTS: 'HH:mm:ss',
  5554. L: 'D/\u200FM/\u200FYYYY',
  5555. LL: 'D MMMM YYYY',
  5556. LLL: 'D MMMM YYYY HH:mm',
  5557. LLLL: 'dddd D MMMM YYYY HH:mm',
  5558. },
  5559. meridiemParse: /ص|م/,
  5560. isPM: function (input) {
  5561. return 'م' === input;
  5562. },
  5563. meridiem: function (hour, minute, isLower) {
  5564. if (hour < 12) {
  5565. return 'ص';
  5566. } else {
  5567. return 'م';
  5568. }
  5569. },
  5570. calendar: {
  5571. sameDay: '[اليوم عند الساعة] LT',
  5572. nextDay: '[غدًا عند الساعة] LT',
  5573. nextWeek: 'dddd [عند الساعة] LT',
  5574. lastDay: '[أمس عند الساعة] LT',
  5575. lastWeek: 'dddd [عند الساعة] LT',
  5576. sameElse: 'L',
  5577. },
  5578. relativeTime: {
  5579. future: 'بعد %s',
  5580. past: 'منذ %s',
  5581. s: pluralize$1('s'),
  5582. ss: pluralize$1('s'),
  5583. m: pluralize$1('m'),
  5584. mm: pluralize$1('m'),
  5585. h: pluralize$1('h'),
  5586. hh: pluralize$1('h'),
  5587. d: pluralize$1('d'),
  5588. dd: pluralize$1('d'),
  5589. M: pluralize$1('M'),
  5590. MM: pluralize$1('M'),
  5591. y: pluralize$1('y'),
  5592. yy: pluralize$1('y'),
  5593. },
  5594. preparse: function (string) {
  5595. return string
  5596. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5597. return numberMap$1[match];
  5598. })
  5599. .replace(/،/g, ',');
  5600. },
  5601. postformat: function (string) {
  5602. return string
  5603. .replace(/\d/g, function (match) {
  5604. return symbolMap$2[match];
  5605. })
  5606. .replace(/,/g, '،');
  5607. },
  5608. week: {
  5609. dow: 6, // Saturday is the first day of the week.
  5610. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5611. },
  5612. });
  5613. //! moment.js locale configuration
  5614. var suffixes = {
  5615. 1: '-inci',
  5616. 5: '-inci',
  5617. 8: '-inci',
  5618. 70: '-inci',
  5619. 80: '-inci',
  5620. 2: '-nci',
  5621. 7: '-nci',
  5622. 20: '-nci',
  5623. 50: '-nci',
  5624. 3: '-üncü',
  5625. 4: '-üncü',
  5626. 100: '-üncü',
  5627. 6: '-ncı',
  5628. 9: '-uncu',
  5629. 10: '-uncu',
  5630. 30: '-uncu',
  5631. 60: '-ıncı',
  5632. 90: '-ıncı',
  5633. };
  5634. hooks.defineLocale('az', {
  5635. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  5636. '_'
  5637. ),
  5638. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  5639. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  5640. '_'
  5641. ),
  5642. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  5643. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  5644. weekdaysParseExact: true,
  5645. longDateFormat: {
  5646. LT: 'HH:mm',
  5647. LTS: 'HH:mm:ss',
  5648. L: 'DD.MM.YYYY',
  5649. LL: 'D MMMM YYYY',
  5650. LLL: 'D MMMM YYYY HH:mm',
  5651. LLLL: 'dddd, D MMMM YYYY HH:mm',
  5652. },
  5653. calendar: {
  5654. sameDay: '[bugün saat] LT',
  5655. nextDay: '[sabah saat] LT',
  5656. nextWeek: '[gələn həftə] dddd [saat] LT',
  5657. lastDay: '[dünən] LT',
  5658. lastWeek: '[keçən həftə] dddd [saat] LT',
  5659. sameElse: 'L',
  5660. },
  5661. relativeTime: {
  5662. future: '%s sonra',
  5663. past: '%s əvvəl',
  5664. s: 'birneçə saniyə',
  5665. ss: '%d saniyə',
  5666. m: 'bir dəqiqə',
  5667. mm: '%d dəqiqə',
  5668. h: 'bir saat',
  5669. hh: '%d saat',
  5670. d: 'bir gün',
  5671. dd: '%d gün',
  5672. M: 'bir ay',
  5673. MM: '%d ay',
  5674. y: 'bir il',
  5675. yy: '%d il',
  5676. },
  5677. meridiemParse: /gecə|səhər|gündüz|axşam/,
  5678. isPM: function (input) {
  5679. return /^(gündüz|axşam)$/.test(input);
  5680. },
  5681. meridiem: function (hour, minute, isLower) {
  5682. if (hour < 4) {
  5683. return 'gecə';
  5684. } else if (hour < 12) {
  5685. return 'səhər';
  5686. } else if (hour < 17) {
  5687. return 'gündüz';
  5688. } else {
  5689. return 'axşam';
  5690. }
  5691. },
  5692. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  5693. ordinal: function (number) {
  5694. if (number === 0) {
  5695. // special case for zero
  5696. return number + '-ıncı';
  5697. }
  5698. var a = number % 10,
  5699. b = (number % 100) - a,
  5700. c = number >= 100 ? 100 : null;
  5701. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  5702. },
  5703. week: {
  5704. dow: 1, // Monday is the first day of the week.
  5705. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5706. },
  5707. });
  5708. //! moment.js locale configuration
  5709. function plural(word, num) {
  5710. var forms = word.split('_');
  5711. return num % 10 === 1 && num % 100 !== 11
  5712. ? forms[0]
  5713. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  5714. ? forms[1]
  5715. : forms[2];
  5716. }
  5717. function relativeTimeWithPlural(number, withoutSuffix, key) {
  5718. var format = {
  5719. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  5720. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  5721. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  5722. dd: 'дзень_дні_дзён',
  5723. MM: 'месяц_месяцы_месяцаў',
  5724. yy: 'год_гады_гадоў',
  5725. };
  5726. if (key === 'm') {
  5727. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  5728. } else if (key === 'h') {
  5729. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  5730. } else {
  5731. return number + ' ' + plural(format[key], +number);
  5732. }
  5733. }
  5734. hooks.defineLocale('be', {
  5735. months: {
  5736. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  5737. '_'
  5738. ),
  5739. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  5740. '_'
  5741. ),
  5742. },
  5743. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
  5744. '_'
  5745. ),
  5746. weekdays: {
  5747. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  5748. '_'
  5749. ),
  5750. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  5751. '_'
  5752. ),
  5753. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
  5754. },
  5755. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5756. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5757. longDateFormat: {
  5758. LT: 'HH:mm',
  5759. LTS: 'HH:mm:ss',
  5760. L: 'DD.MM.YYYY',
  5761. LL: 'D MMMM YYYY г.',
  5762. LLL: 'D MMMM YYYY г., HH:mm',
  5763. LLLL: 'dddd, D MMMM YYYY г., HH:mm',
  5764. },
  5765. calendar: {
  5766. sameDay: '[Сёння ў] LT',
  5767. nextDay: '[Заўтра ў] LT',
  5768. lastDay: '[Учора ў] LT',
  5769. nextWeek: function () {
  5770. return '[У] dddd [ў] LT';
  5771. },
  5772. lastWeek: function () {
  5773. switch (this.day()) {
  5774. case 0:
  5775. case 3:
  5776. case 5:
  5777. case 6:
  5778. return '[У мінулую] dddd [ў] LT';
  5779. case 1:
  5780. case 2:
  5781. case 4:
  5782. return '[У мінулы] dddd [ў] LT';
  5783. }
  5784. },
  5785. sameElse: 'L',
  5786. },
  5787. relativeTime: {
  5788. future: 'праз %s',
  5789. past: '%s таму',
  5790. s: 'некалькі секунд',
  5791. m: relativeTimeWithPlural,
  5792. mm: relativeTimeWithPlural,
  5793. h: relativeTimeWithPlural,
  5794. hh: relativeTimeWithPlural,
  5795. d: 'дзень',
  5796. dd: relativeTimeWithPlural,
  5797. M: 'месяц',
  5798. MM: relativeTimeWithPlural,
  5799. y: 'год',
  5800. yy: relativeTimeWithPlural,
  5801. },
  5802. meridiemParse: /ночы|раніцы|дня|вечара/,
  5803. isPM: function (input) {
  5804. return /^(дня|вечара)$/.test(input);
  5805. },
  5806. meridiem: function (hour, minute, isLower) {
  5807. if (hour < 4) {
  5808. return 'ночы';
  5809. } else if (hour < 12) {
  5810. return 'раніцы';
  5811. } else if (hour < 17) {
  5812. return 'дня';
  5813. } else {
  5814. return 'вечара';
  5815. }
  5816. },
  5817. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  5818. ordinal: function (number, period) {
  5819. switch (period) {
  5820. case 'M':
  5821. case 'd':
  5822. case 'DDD':
  5823. case 'w':
  5824. case 'W':
  5825. return (number % 10 === 2 || number % 10 === 3) &&
  5826. number % 100 !== 12 &&
  5827. number % 100 !== 13
  5828. ? number + '-і'
  5829. : number + '-ы';
  5830. case 'D':
  5831. return number + '-га';
  5832. default:
  5833. return number;
  5834. }
  5835. },
  5836. week: {
  5837. dow: 1, // Monday is the first day of the week.
  5838. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5839. },
  5840. });
  5841. //! moment.js locale configuration
  5842. hooks.defineLocale('bg', {
  5843. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  5844. '_'
  5845. ),
  5846. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  5847. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  5848. '_'
  5849. ),
  5850. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  5851. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5852. longDateFormat: {
  5853. LT: 'H:mm',
  5854. LTS: 'H:mm:ss',
  5855. L: 'D.MM.YYYY',
  5856. LL: 'D MMMM YYYY',
  5857. LLL: 'D MMMM YYYY H:mm',
  5858. LLLL: 'dddd, D MMMM YYYY H:mm',
  5859. },
  5860. calendar: {
  5861. sameDay: '[Днес в] LT',
  5862. nextDay: '[Утре в] LT',
  5863. nextWeek: 'dddd [в] LT',
  5864. lastDay: '[Вчера в] LT',
  5865. lastWeek: function () {
  5866. switch (this.day()) {
  5867. case 0:
  5868. case 3:
  5869. case 6:
  5870. return '[Миналата] dddd [в] LT';
  5871. case 1:
  5872. case 2:
  5873. case 4:
  5874. case 5:
  5875. return '[Миналия] dddd [в] LT';
  5876. }
  5877. },
  5878. sameElse: 'L',
  5879. },
  5880. relativeTime: {
  5881. future: 'след %s',
  5882. past: 'преди %s',
  5883. s: 'няколко секунди',
  5884. ss: '%d секунди',
  5885. m: 'минута',
  5886. mm: '%d минути',
  5887. h: 'час',
  5888. hh: '%d часа',
  5889. d: 'ден',
  5890. dd: '%d дена',
  5891. M: 'месец',
  5892. MM: '%d месеца',
  5893. y: 'година',
  5894. yy: '%d години',
  5895. },
  5896. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  5897. ordinal: function (number) {
  5898. var lastDigit = number % 10,
  5899. last2Digits = number % 100;
  5900. if (number === 0) {
  5901. return number + '-ев';
  5902. } else if (last2Digits === 0) {
  5903. return number + '-ен';
  5904. } else if (last2Digits > 10 && last2Digits < 20) {
  5905. return number + '-ти';
  5906. } else if (lastDigit === 1) {
  5907. return number + '-ви';
  5908. } else if (lastDigit === 2) {
  5909. return number + '-ри';
  5910. } else if (lastDigit === 7 || lastDigit === 8) {
  5911. return number + '-ми';
  5912. } else {
  5913. return number + '-ти';
  5914. }
  5915. },
  5916. week: {
  5917. dow: 1, // Monday is the first day of the week.
  5918. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5919. },
  5920. });
  5921. //! moment.js locale configuration
  5922. hooks.defineLocale('bm', {
  5923. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  5924. '_'
  5925. ),
  5926. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  5927. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  5928. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  5929. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  5930. longDateFormat: {
  5931. LT: 'HH:mm',
  5932. LTS: 'HH:mm:ss',
  5933. L: 'DD/MM/YYYY',
  5934. LL: 'MMMM [tile] D [san] YYYY',
  5935. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  5936. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  5937. },
  5938. calendar: {
  5939. sameDay: '[Bi lɛrɛ] LT',
  5940. nextDay: '[Sini lɛrɛ] LT',
  5941. nextWeek: 'dddd [don lɛrɛ] LT',
  5942. lastDay: '[Kunu lɛrɛ] LT',
  5943. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  5944. sameElse: 'L',
  5945. },
  5946. relativeTime: {
  5947. future: '%s kɔnɔ',
  5948. past: 'a bɛ %s bɔ',
  5949. s: 'sanga dama dama',
  5950. ss: 'sekondi %d',
  5951. m: 'miniti kelen',
  5952. mm: 'miniti %d',
  5953. h: 'lɛrɛ kelen',
  5954. hh: 'lɛrɛ %d',
  5955. d: 'tile kelen',
  5956. dd: 'tile %d',
  5957. M: 'kalo kelen',
  5958. MM: 'kalo %d',
  5959. y: 'san kelen',
  5960. yy: 'san %d',
  5961. },
  5962. week: {
  5963. dow: 1, // Monday is the first day of the week.
  5964. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5965. },
  5966. });
  5967. //! moment.js locale configuration
  5968. var symbolMap$3 = {
  5969. '1': '১',
  5970. '2': '২',
  5971. '3': '৩',
  5972. '4': '৪',
  5973. '5': '৫',
  5974. '6': '৬',
  5975. '7': '৭',
  5976. '8': '৮',
  5977. '9': '৯',
  5978. '0': '০',
  5979. },
  5980. numberMap$2 = {
  5981. '১': '1',
  5982. '২': '2',
  5983. '৩': '3',
  5984. '৪': '4',
  5985. '৫': '5',
  5986. '৬': '6',
  5987. '৭': '7',
  5988. '৮': '8',
  5989. '৯': '9',
  5990. '০': '0',
  5991. };
  5992. hooks.defineLocale('bn', {
  5993. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  5994. '_'
  5995. ),
  5996. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  5997. '_'
  5998. ),
  5999. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6000. '_'
  6001. ),
  6002. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6003. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6004. longDateFormat: {
  6005. LT: 'A h:mm সময়',
  6006. LTS: 'A h:mm:ss সময়',
  6007. L: 'DD/MM/YYYY',
  6008. LL: 'D MMMM YYYY',
  6009. LLL: 'D MMMM YYYY, A h:mm সময়',
  6010. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6011. },
  6012. calendar: {
  6013. sameDay: '[আজ] LT',
  6014. nextDay: '[আগামীকাল] LT',
  6015. nextWeek: 'dddd, LT',
  6016. lastDay: '[গতকাল] LT',
  6017. lastWeek: '[গত] dddd, LT',
  6018. sameElse: 'L',
  6019. },
  6020. relativeTime: {
  6021. future: '%s পরে',
  6022. past: '%s আগে',
  6023. s: 'কয়েক সেকেন্ড',
  6024. ss: '%d সেকেন্ড',
  6025. m: 'এক মিনিট',
  6026. mm: '%d মিনিট',
  6027. h: 'এক ঘন্টা',
  6028. hh: '%d ঘন্টা',
  6029. d: 'এক দিন',
  6030. dd: '%d দিন',
  6031. M: 'এক মাস',
  6032. MM: '%d মাস',
  6033. y: 'এক বছর',
  6034. yy: '%d বছর',
  6035. },
  6036. preparse: function (string) {
  6037. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6038. return numberMap$2[match];
  6039. });
  6040. },
  6041. postformat: function (string) {
  6042. return string.replace(/\d/g, function (match) {
  6043. return symbolMap$3[match];
  6044. });
  6045. },
  6046. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6047. meridiemHour: function (hour, meridiem) {
  6048. if (hour === 12) {
  6049. hour = 0;
  6050. }
  6051. if (
  6052. (meridiem === 'রাত' && hour >= 4) ||
  6053. (meridiem === 'দুপুর' && hour < 5) ||
  6054. meridiem === 'বিকাল'
  6055. ) {
  6056. return hour + 12;
  6057. } else {
  6058. return hour;
  6059. }
  6060. },
  6061. meridiem: function (hour, minute, isLower) {
  6062. if (hour < 4) {
  6063. return 'রাত';
  6064. } else if (hour < 10) {
  6065. return 'সকাল';
  6066. } else if (hour < 17) {
  6067. return 'দুপুর';
  6068. } else if (hour < 20) {
  6069. return 'বিকাল';
  6070. } else {
  6071. return 'রাত';
  6072. }
  6073. },
  6074. week: {
  6075. dow: 0, // Sunday is the first day of the week.
  6076. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6077. },
  6078. });
  6079. //! moment.js locale configuration
  6080. var symbolMap$4 = {
  6081. '1': '༡',
  6082. '2': '༢',
  6083. '3': '༣',
  6084. '4': '༤',
  6085. '5': '༥',
  6086. '6': '༦',
  6087. '7': '༧',
  6088. '8': '༨',
  6089. '9': '༩',
  6090. '0': '༠',
  6091. },
  6092. numberMap$3 = {
  6093. '༡': '1',
  6094. '༢': '2',
  6095. '༣': '3',
  6096. '༤': '4',
  6097. '༥': '5',
  6098. '༦': '6',
  6099. '༧': '7',
  6100. '༨': '8',
  6101. '༩': '9',
  6102. '༠': '0',
  6103. };
  6104. hooks.defineLocale('bo', {
  6105. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  6106. '_'
  6107. ),
  6108. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  6109. '_'
  6110. ),
  6111. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  6112. monthsParseExact: true,
  6113. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  6114. '_'
  6115. ),
  6116. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  6117. '_'
  6118. ),
  6119. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  6120. longDateFormat: {
  6121. LT: 'A h:mm',
  6122. LTS: 'A h:mm:ss',
  6123. L: 'DD/MM/YYYY',
  6124. LL: 'D MMMM YYYY',
  6125. LLL: 'D MMMM YYYY, A h:mm',
  6126. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  6127. },
  6128. calendar: {
  6129. sameDay: '[དི་རིང] LT',
  6130. nextDay: '[སང་ཉིན] LT',
  6131. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  6132. lastDay: '[ཁ་སང] LT',
  6133. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6134. sameElse: 'L',
  6135. },
  6136. relativeTime: {
  6137. future: '%s ལ་',
  6138. past: '%s སྔན་ལ',
  6139. s: 'ལམ་སང',
  6140. ss: '%d སྐར་ཆ།',
  6141. m: 'སྐར་མ་གཅིག',
  6142. mm: '%d སྐར་མ',
  6143. h: 'ཆུ་ཚོད་གཅིག',
  6144. hh: '%d ཆུ་ཚོད',
  6145. d: 'ཉིན་གཅིག',
  6146. dd: '%d ཉིན་',
  6147. M: 'ཟླ་བ་གཅིག',
  6148. MM: '%d ཟླ་བ',
  6149. y: 'ལོ་གཅིག',
  6150. yy: '%d ལོ',
  6151. },
  6152. preparse: function (string) {
  6153. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6154. return numberMap$3[match];
  6155. });
  6156. },
  6157. postformat: function (string) {
  6158. return string.replace(/\d/g, function (match) {
  6159. return symbolMap$4[match];
  6160. });
  6161. },
  6162. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6163. meridiemHour: function (hour, meridiem) {
  6164. if (hour === 12) {
  6165. hour = 0;
  6166. }
  6167. if (
  6168. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  6169. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6170. meridiem === 'དགོང་དག'
  6171. ) {
  6172. return hour + 12;
  6173. } else {
  6174. return hour;
  6175. }
  6176. },
  6177. meridiem: function (hour, minute, isLower) {
  6178. if (hour < 4) {
  6179. return 'མཚན་མོ';
  6180. } else if (hour < 10) {
  6181. return 'ཞོགས་ཀས';
  6182. } else if (hour < 17) {
  6183. return 'ཉིན་གུང';
  6184. } else if (hour < 20) {
  6185. return 'དགོང་དག';
  6186. } else {
  6187. return 'མཚན་མོ';
  6188. }
  6189. },
  6190. week: {
  6191. dow: 0, // Sunday is the first day of the week.
  6192. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6193. },
  6194. });
  6195. //! moment.js locale configuration
  6196. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6197. var format = {
  6198. mm: 'munutenn',
  6199. MM: 'miz',
  6200. dd: 'devezh',
  6201. };
  6202. return number + ' ' + mutation(format[key], number);
  6203. }
  6204. function specialMutationForYears(number) {
  6205. switch (lastNumber(number)) {
  6206. case 1:
  6207. case 3:
  6208. case 4:
  6209. case 5:
  6210. case 9:
  6211. return number + ' bloaz';
  6212. default:
  6213. return number + ' vloaz';
  6214. }
  6215. }
  6216. function lastNumber(number) {
  6217. if (number > 9) {
  6218. return lastNumber(number % 10);
  6219. }
  6220. return number;
  6221. }
  6222. function mutation(text, number) {
  6223. if (number === 2) {
  6224. return softMutation(text);
  6225. }
  6226. return text;
  6227. }
  6228. function softMutation(text) {
  6229. var mutationTable = {
  6230. m: 'v',
  6231. b: 'v',
  6232. d: 'z',
  6233. };
  6234. if (mutationTable[text.charAt(0)] === undefined) {
  6235. return text;
  6236. }
  6237. return mutationTable[text.charAt(0)] + text.substring(1);
  6238. }
  6239. hooks.defineLocale('br', {
  6240. months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split(
  6241. '_'
  6242. ),
  6243. monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split('_'),
  6244. weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'),
  6245. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6246. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6247. weekdaysParseExact: true,
  6248. longDateFormat: {
  6249. LT: 'HH:mm',
  6250. LTS: 'HH:mm:ss',
  6251. L: 'DD/MM/YYYY',
  6252. LL: 'D [a viz] MMMM YYYY',
  6253. LLL: 'D [a viz] MMMM YYYY HH:mm',
  6254. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
  6255. },
  6256. calendar: {
  6257. sameDay: '[Hiziv da] LT',
  6258. nextDay: "[Warc'hoazh da] LT",
  6259. nextWeek: 'dddd [da] LT',
  6260. lastDay: "[Dec'h da] LT",
  6261. lastWeek: 'dddd [paset da] LT',
  6262. sameElse: 'L',
  6263. },
  6264. relativeTime: {
  6265. future: 'a-benn %s',
  6266. past: "%s 'zo",
  6267. s: 'un nebeud segondennoù',
  6268. ss: '%d eilenn',
  6269. m: 'ur vunutenn',
  6270. mm: relativeTimeWithMutation,
  6271. h: 'un eur',
  6272. hh: '%d eur',
  6273. d: 'un devezh',
  6274. dd: relativeTimeWithMutation,
  6275. M: 'ur miz',
  6276. MM: relativeTimeWithMutation,
  6277. y: 'ur bloaz',
  6278. yy: specialMutationForYears,
  6279. },
  6280. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6281. ordinal: function (number) {
  6282. var output = number === 1 ? 'añ' : 'vet';
  6283. return number + output;
  6284. },
  6285. week: {
  6286. dow: 1, // Monday is the first day of the week.
  6287. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6288. },
  6289. });
  6290. //! moment.js locale configuration
  6291. function translate(number, withoutSuffix, key) {
  6292. var result = number + ' ';
  6293. switch (key) {
  6294. case 'ss':
  6295. if (number === 1) {
  6296. result += 'sekunda';
  6297. } else if (number === 2 || number === 3 || number === 4) {
  6298. result += 'sekunde';
  6299. } else {
  6300. result += 'sekundi';
  6301. }
  6302. return result;
  6303. case 'm':
  6304. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6305. case 'mm':
  6306. if (number === 1) {
  6307. result += 'minuta';
  6308. } else if (number === 2 || number === 3 || number === 4) {
  6309. result += 'minute';
  6310. } else {
  6311. result += 'minuta';
  6312. }
  6313. return result;
  6314. case 'h':
  6315. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6316. case 'hh':
  6317. if (number === 1) {
  6318. result += 'sat';
  6319. } else if (number === 2 || number === 3 || number === 4) {
  6320. result += 'sata';
  6321. } else {
  6322. result += 'sati';
  6323. }
  6324. return result;
  6325. case 'dd':
  6326. if (number === 1) {
  6327. result += 'dan';
  6328. } else {
  6329. result += 'dana';
  6330. }
  6331. return result;
  6332. case 'MM':
  6333. if (number === 1) {
  6334. result += 'mjesec';
  6335. } else if (number === 2 || number === 3 || number === 4) {
  6336. result += 'mjeseca';
  6337. } else {
  6338. result += 'mjeseci';
  6339. }
  6340. return result;
  6341. case 'yy':
  6342. if (number === 1) {
  6343. result += 'godina';
  6344. } else if (number === 2 || number === 3 || number === 4) {
  6345. result += 'godine';
  6346. } else {
  6347. result += 'godina';
  6348. }
  6349. return result;
  6350. }
  6351. }
  6352. hooks.defineLocale('bs', {
  6353. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  6354. '_'
  6355. ),
  6356. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  6357. '_'
  6358. ),
  6359. monthsParseExact: true,
  6360. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  6361. '_'
  6362. ),
  6363. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6364. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  6365. weekdaysParseExact: true,
  6366. longDateFormat: {
  6367. LT: 'H:mm',
  6368. LTS: 'H:mm:ss',
  6369. L: 'DD.MM.YYYY',
  6370. LL: 'D. MMMM YYYY',
  6371. LLL: 'D. MMMM YYYY H:mm',
  6372. LLLL: 'dddd, D. MMMM YYYY H:mm',
  6373. },
  6374. calendar: {
  6375. sameDay: '[danas u] LT',
  6376. nextDay: '[sutra u] LT',
  6377. nextWeek: function () {
  6378. switch (this.day()) {
  6379. case 0:
  6380. return '[u] [nedjelju] [u] LT';
  6381. case 3:
  6382. return '[u] [srijedu] [u] LT';
  6383. case 6:
  6384. return '[u] [subotu] [u] LT';
  6385. case 1:
  6386. case 2:
  6387. case 4:
  6388. case 5:
  6389. return '[u] dddd [u] LT';
  6390. }
  6391. },
  6392. lastDay: '[jučer u] LT',
  6393. lastWeek: function () {
  6394. switch (this.day()) {
  6395. case 0:
  6396. case 3:
  6397. return '[prošlu] dddd [u] LT';
  6398. case 6:
  6399. return '[prošle] [subote] [u] LT';
  6400. case 1:
  6401. case 2:
  6402. case 4:
  6403. case 5:
  6404. return '[prošli] dddd [u] LT';
  6405. }
  6406. },
  6407. sameElse: 'L',
  6408. },
  6409. relativeTime: {
  6410. future: 'za %s',
  6411. past: 'prije %s',
  6412. s: 'par sekundi',
  6413. ss: translate,
  6414. m: translate,
  6415. mm: translate,
  6416. h: translate,
  6417. hh: translate,
  6418. d: 'dan',
  6419. dd: translate,
  6420. M: 'mjesec',
  6421. MM: translate,
  6422. y: 'godinu',
  6423. yy: translate,
  6424. },
  6425. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6426. ordinal: '%d.',
  6427. week: {
  6428. dow: 1, // Monday is the first day of the week.
  6429. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6430. },
  6431. });
  6432. //! moment.js locale configuration
  6433. hooks.defineLocale('ca', {
  6434. months: {
  6435. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  6436. '_'
  6437. ),
  6438. 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(
  6439. '_'
  6440. ),
  6441. isFormat: /D[oD]?(\s)+MMMM/,
  6442. },
  6443. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  6444. '_'
  6445. ),
  6446. monthsParseExact: true,
  6447. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  6448. '_'
  6449. ),
  6450. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6451. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6452. weekdaysParseExact: true,
  6453. longDateFormat: {
  6454. LT: 'H:mm',
  6455. LTS: 'H:mm:ss',
  6456. L: 'DD/MM/YYYY',
  6457. LL: 'D MMMM [de] YYYY',
  6458. ll: 'D MMM YYYY',
  6459. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  6460. lll: 'D MMM YYYY, H:mm',
  6461. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  6462. llll: 'ddd D MMM YYYY, H:mm',
  6463. },
  6464. calendar: {
  6465. sameDay: function () {
  6466. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6467. },
  6468. nextDay: function () {
  6469. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6470. },
  6471. nextWeek: function () {
  6472. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6473. },
  6474. lastDay: function () {
  6475. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6476. },
  6477. lastWeek: function () {
  6478. return (
  6479. '[el] dddd [passat a ' +
  6480. (this.hours() !== 1 ? 'les' : 'la') +
  6481. '] LT'
  6482. );
  6483. },
  6484. sameElse: 'L',
  6485. },
  6486. relativeTime: {
  6487. future: "d'aquí %s",
  6488. past: 'fa %s',
  6489. s: 'uns segons',
  6490. ss: '%d segons',
  6491. m: 'un minut',
  6492. mm: '%d minuts',
  6493. h: 'una hora',
  6494. hh: '%d hores',
  6495. d: 'un dia',
  6496. dd: '%d dies',
  6497. M: 'un mes',
  6498. MM: '%d mesos',
  6499. y: 'un any',
  6500. yy: '%d anys',
  6501. },
  6502. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  6503. ordinal: function (number, period) {
  6504. var output =
  6505. number === 1
  6506. ? 'r'
  6507. : number === 2
  6508. ? 'n'
  6509. : number === 3
  6510. ? 'r'
  6511. : number === 4
  6512. ? 't'
  6513. : 'è';
  6514. if (period === 'w' || period === 'W') {
  6515. output = 'a';
  6516. }
  6517. return number + output;
  6518. },
  6519. week: {
  6520. dow: 1, // Monday is the first day of the week.
  6521. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6522. },
  6523. });
  6524. //! moment.js locale configuration
  6525. var months$3 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  6526. '_'
  6527. ),
  6528. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  6529. monthsParse = [
  6530. /^led/i,
  6531. /^úno/i,
  6532. /^bře/i,
  6533. /^dub/i,
  6534. /^kvě/i,
  6535. /^(čvn|červen$|června)/i,
  6536. /^(čvc|červenec|července)/i,
  6537. /^srp/i,
  6538. /^zář/i,
  6539. /^říj/i,
  6540. /^lis/i,
  6541. /^pro/i,
  6542. ],
  6543. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6544. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6545. monthsRegex$1 = /^(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;
  6546. function plural$1(n) {
  6547. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  6548. }
  6549. function translate$1(number, withoutSuffix, key, isFuture) {
  6550. var result = number + ' ';
  6551. switch (key) {
  6552. case 's': // a few seconds / in a few seconds / a few seconds ago
  6553. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  6554. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  6555. if (withoutSuffix || isFuture) {
  6556. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  6557. } else {
  6558. return result + 'sekundami';
  6559. }
  6560. case 'm': // a minute / in a minute / a minute ago
  6561. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  6562. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  6563. if (withoutSuffix || isFuture) {
  6564. return result + (plural$1(number) ? 'minuty' : 'minut');
  6565. } else {
  6566. return result + 'minutami';
  6567. }
  6568. case 'h': // an hour / in an hour / an hour ago
  6569. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  6570. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  6571. if (withoutSuffix || isFuture) {
  6572. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  6573. } else {
  6574. return result + 'hodinami';
  6575. }
  6576. case 'd': // a day / in a day / a day ago
  6577. return withoutSuffix || isFuture ? 'den' : 'dnem';
  6578. case 'dd': // 9 days / in 9 days / 9 days ago
  6579. if (withoutSuffix || isFuture) {
  6580. return result + (plural$1(number) ? 'dny' : 'dní');
  6581. } else {
  6582. return result + 'dny';
  6583. }
  6584. case 'M': // a month / in a month / a month ago
  6585. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  6586. case 'MM': // 9 months / in 9 months / 9 months ago
  6587. if (withoutSuffix || isFuture) {
  6588. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  6589. } else {
  6590. return result + 'měsíci';
  6591. }
  6592. case 'y': // a year / in a year / a year ago
  6593. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  6594. case 'yy': // 9 years / in 9 years / 9 years ago
  6595. if (withoutSuffix || isFuture) {
  6596. return result + (plural$1(number) ? 'roky' : 'let');
  6597. } else {
  6598. return result + 'lety';
  6599. }
  6600. }
  6601. }
  6602. hooks.defineLocale('cs', {
  6603. months: months$3,
  6604. monthsShort: monthsShort,
  6605. monthsRegex: monthsRegex$1,
  6606. monthsShortRegex: monthsRegex$1,
  6607. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6608. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6609. 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,
  6610. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  6611. monthsParse: monthsParse,
  6612. longMonthsParse: monthsParse,
  6613. shortMonthsParse: monthsParse,
  6614. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  6615. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  6616. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  6617. longDateFormat: {
  6618. LT: 'H:mm',
  6619. LTS: 'H:mm:ss',
  6620. L: 'DD.MM.YYYY',
  6621. LL: 'D. MMMM YYYY',
  6622. LLL: 'D. MMMM YYYY H:mm',
  6623. LLLL: 'dddd D. MMMM YYYY H:mm',
  6624. l: 'D. M. YYYY',
  6625. },
  6626. calendar: {
  6627. sameDay: '[dnes v] LT',
  6628. nextDay: '[zítra v] LT',
  6629. nextWeek: function () {
  6630. switch (this.day()) {
  6631. case 0:
  6632. return '[v neděli v] LT';
  6633. case 1:
  6634. case 2:
  6635. return '[v] dddd [v] LT';
  6636. case 3:
  6637. return '[ve středu v] LT';
  6638. case 4:
  6639. return '[ve čtvrtek v] LT';
  6640. case 5:
  6641. return '[v pátek v] LT';
  6642. case 6:
  6643. return '[v sobotu v] LT';
  6644. }
  6645. },
  6646. lastDay: '[včera v] LT',
  6647. lastWeek: function () {
  6648. switch (this.day()) {
  6649. case 0:
  6650. return '[minulou neděli v] LT';
  6651. case 1:
  6652. case 2:
  6653. return '[minulé] dddd [v] LT';
  6654. case 3:
  6655. return '[minulou středu v] LT';
  6656. case 4:
  6657. case 5:
  6658. return '[minulý] dddd [v] LT';
  6659. case 6:
  6660. return '[minulou sobotu v] LT';
  6661. }
  6662. },
  6663. sameElse: 'L',
  6664. },
  6665. relativeTime: {
  6666. future: 'za %s',
  6667. past: 'před %s',
  6668. s: translate$1,
  6669. ss: translate$1,
  6670. m: translate$1,
  6671. mm: translate$1,
  6672. h: translate$1,
  6673. hh: translate$1,
  6674. d: translate$1,
  6675. dd: translate$1,
  6676. M: translate$1,
  6677. MM: translate$1,
  6678. y: translate$1,
  6679. yy: translate$1,
  6680. },
  6681. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6682. ordinal: '%d.',
  6683. week: {
  6684. dow: 1, // Monday is the first day of the week.
  6685. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6686. },
  6687. });
  6688. //! moment.js locale configuration
  6689. hooks.defineLocale('cv', {
  6690. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  6691. '_'
  6692. ),
  6693. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  6694. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  6695. '_'
  6696. ),
  6697. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  6698. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  6699. longDateFormat: {
  6700. LT: 'HH:mm',
  6701. LTS: 'HH:mm:ss',
  6702. L: 'DD-MM-YYYY',
  6703. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  6704. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6705. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6706. },
  6707. calendar: {
  6708. sameDay: '[Паян] LT [сехетре]',
  6709. nextDay: '[Ыран] LT [сехетре]',
  6710. lastDay: '[Ӗнер] LT [сехетре]',
  6711. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  6712. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  6713. sameElse: 'L',
  6714. },
  6715. relativeTime: {
  6716. future: function (output) {
  6717. var affix = /сехет$/i.exec(output)
  6718. ? 'рен'
  6719. : /ҫул$/i.exec(output)
  6720. ? 'тан'
  6721. : 'ран';
  6722. return output + affix;
  6723. },
  6724. past: '%s каялла',
  6725. s: 'пӗр-ик ҫеккунт',
  6726. ss: '%d ҫеккунт',
  6727. m: 'пӗр минут',
  6728. mm: '%d минут',
  6729. h: 'пӗр сехет',
  6730. hh: '%d сехет',
  6731. d: 'пӗр кун',
  6732. dd: '%d кун',
  6733. M: 'пӗр уйӑх',
  6734. MM: '%d уйӑх',
  6735. y: 'пӗр ҫул',
  6736. yy: '%d ҫул',
  6737. },
  6738. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  6739. ordinal: '%d-мӗш',
  6740. week: {
  6741. dow: 1, // Monday is the first day of the week.
  6742. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6743. },
  6744. });
  6745. //! moment.js locale configuration
  6746. hooks.defineLocale('cy', {
  6747. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  6748. '_'
  6749. ),
  6750. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  6751. '_'
  6752. ),
  6753. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  6754. '_'
  6755. ),
  6756. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  6757. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  6758. weekdaysParseExact: true,
  6759. // time formats are the same as en-gb
  6760. longDateFormat: {
  6761. LT: 'HH:mm',
  6762. LTS: 'HH:mm:ss',
  6763. L: 'DD/MM/YYYY',
  6764. LL: 'D MMMM YYYY',
  6765. LLL: 'D MMMM YYYY HH:mm',
  6766. LLLL: 'dddd, D MMMM YYYY HH:mm',
  6767. },
  6768. calendar: {
  6769. sameDay: '[Heddiw am] LT',
  6770. nextDay: '[Yfory am] LT',
  6771. nextWeek: 'dddd [am] LT',
  6772. lastDay: '[Ddoe am] LT',
  6773. lastWeek: 'dddd [diwethaf am] LT',
  6774. sameElse: 'L',
  6775. },
  6776. relativeTime: {
  6777. future: 'mewn %s',
  6778. past: '%s yn ôl',
  6779. s: 'ychydig eiliadau',
  6780. ss: '%d eiliad',
  6781. m: 'munud',
  6782. mm: '%d munud',
  6783. h: 'awr',
  6784. hh: '%d awr',
  6785. d: 'diwrnod',
  6786. dd: '%d diwrnod',
  6787. M: 'mis',
  6788. MM: '%d mis',
  6789. y: 'blwyddyn',
  6790. yy: '%d flynedd',
  6791. },
  6792. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  6793. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  6794. ordinal: function (number) {
  6795. var b = number,
  6796. output = '',
  6797. lookup = [
  6798. '',
  6799. 'af',
  6800. 'il',
  6801. 'ydd',
  6802. 'ydd',
  6803. 'ed',
  6804. 'ed',
  6805. 'ed',
  6806. 'fed',
  6807. 'fed',
  6808. 'fed', // 1af to 10fed
  6809. 'eg',
  6810. 'fed',
  6811. 'eg',
  6812. 'eg',
  6813. 'fed',
  6814. 'eg',
  6815. 'eg',
  6816. 'fed',
  6817. 'eg',
  6818. 'fed', // 11eg to 20fed
  6819. ];
  6820. if (b > 20) {
  6821. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  6822. output = 'fed'; // not 30ain, 70ain or 90ain
  6823. } else {
  6824. output = 'ain';
  6825. }
  6826. } else if (b > 0) {
  6827. output = lookup[b];
  6828. }
  6829. return number + output;
  6830. },
  6831. week: {
  6832. dow: 1, // Monday is the first day of the week.
  6833. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6834. },
  6835. });
  6836. //! moment.js locale configuration
  6837. hooks.defineLocale('da', {
  6838. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  6839. '_'
  6840. ),
  6841. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  6842. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  6843. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  6844. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  6845. longDateFormat: {
  6846. LT: 'HH:mm',
  6847. LTS: 'HH:mm:ss',
  6848. L: 'DD.MM.YYYY',
  6849. LL: 'D. MMMM YYYY',
  6850. LLL: 'D. MMMM YYYY HH:mm',
  6851. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
  6852. },
  6853. calendar: {
  6854. sameDay: '[i dag kl.] LT',
  6855. nextDay: '[i morgen kl.] LT',
  6856. nextWeek: 'på dddd [kl.] LT',
  6857. lastDay: '[i går kl.] LT',
  6858. lastWeek: '[i] dddd[s kl.] LT',
  6859. sameElse: 'L',
  6860. },
  6861. relativeTime: {
  6862. future: 'om %s',
  6863. past: '%s siden',
  6864. s: 'få sekunder',
  6865. ss: '%d sekunder',
  6866. m: 'et minut',
  6867. mm: '%d minutter',
  6868. h: 'en time',
  6869. hh: '%d timer',
  6870. d: 'en dag',
  6871. dd: '%d dage',
  6872. M: 'en måned',
  6873. MM: '%d måneder',
  6874. y: 'et år',
  6875. yy: '%d år',
  6876. },
  6877. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6878. ordinal: '%d.',
  6879. week: {
  6880. dow: 1, // Monday is the first day of the week.
  6881. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6882. },
  6883. });
  6884. //! moment.js locale configuration
  6885. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  6886. var format = {
  6887. m: ['eine Minute', 'einer Minute'],
  6888. h: ['eine Stunde', 'einer Stunde'],
  6889. d: ['ein Tag', 'einem Tag'],
  6890. dd: [number + ' Tage', number + ' Tagen'],
  6891. M: ['ein Monat', 'einem Monat'],
  6892. MM: [number + ' Monate', number + ' Monaten'],
  6893. y: ['ein Jahr', 'einem Jahr'],
  6894. yy: [number + ' Jahre', number + ' Jahren'],
  6895. };
  6896. return withoutSuffix ? format[key][0] : format[key][1];
  6897. }
  6898. hooks.defineLocale('de-at', {
  6899. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  6900. '_'
  6901. ),
  6902. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  6903. '_'
  6904. ),
  6905. monthsParseExact: true,
  6906. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  6907. '_'
  6908. ),
  6909. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  6910. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  6911. weekdaysParseExact: true,
  6912. longDateFormat: {
  6913. LT: 'HH:mm',
  6914. LTS: 'HH:mm:ss',
  6915. L: 'DD.MM.YYYY',
  6916. LL: 'D. MMMM YYYY',
  6917. LLL: 'D. MMMM YYYY HH:mm',
  6918. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  6919. },
  6920. calendar: {
  6921. sameDay: '[heute um] LT [Uhr]',
  6922. sameElse: 'L',
  6923. nextDay: '[morgen um] LT [Uhr]',
  6924. nextWeek: 'dddd [um] LT [Uhr]',
  6925. lastDay: '[gestern um] LT [Uhr]',
  6926. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  6927. },
  6928. relativeTime: {
  6929. future: 'in %s',
  6930. past: 'vor %s',
  6931. s: 'ein paar Sekunden',
  6932. ss: '%d Sekunden',
  6933. m: processRelativeTime,
  6934. mm: '%d Minuten',
  6935. h: processRelativeTime,
  6936. hh: '%d Stunden',
  6937. d: processRelativeTime,
  6938. dd: processRelativeTime,
  6939. M: processRelativeTime,
  6940. MM: processRelativeTime,
  6941. y: processRelativeTime,
  6942. yy: processRelativeTime,
  6943. },
  6944. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6945. ordinal: '%d.',
  6946. week: {
  6947. dow: 1, // Monday is the first day of the week.
  6948. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6949. },
  6950. });
  6951. //! moment.js locale configuration
  6952. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  6953. var format = {
  6954. m: ['eine Minute', 'einer Minute'],
  6955. h: ['eine Stunde', 'einer Stunde'],
  6956. d: ['ein Tag', 'einem Tag'],
  6957. dd: [number + ' Tage', number + ' Tagen'],
  6958. M: ['ein Monat', 'einem Monat'],
  6959. MM: [number + ' Monate', number + ' Monaten'],
  6960. y: ['ein Jahr', 'einem Jahr'],
  6961. yy: [number + ' Jahre', number + ' Jahren'],
  6962. };
  6963. return withoutSuffix ? format[key][0] : format[key][1];
  6964. }
  6965. hooks.defineLocale('de-ch', {
  6966. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  6967. '_'
  6968. ),
  6969. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  6970. '_'
  6971. ),
  6972. monthsParseExact: true,
  6973. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  6974. '_'
  6975. ),
  6976. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  6977. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  6978. weekdaysParseExact: true,
  6979. longDateFormat: {
  6980. LT: 'HH:mm',
  6981. LTS: 'HH:mm:ss',
  6982. L: 'DD.MM.YYYY',
  6983. LL: 'D. MMMM YYYY',
  6984. LLL: 'D. MMMM YYYY HH:mm',
  6985. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  6986. },
  6987. calendar: {
  6988. sameDay: '[heute um] LT [Uhr]',
  6989. sameElse: 'L',
  6990. nextDay: '[morgen um] LT [Uhr]',
  6991. nextWeek: 'dddd [um] LT [Uhr]',
  6992. lastDay: '[gestern um] LT [Uhr]',
  6993. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  6994. },
  6995. relativeTime: {
  6996. future: 'in %s',
  6997. past: 'vor %s',
  6998. s: 'ein paar Sekunden',
  6999. ss: '%d Sekunden',
  7000. m: processRelativeTime$1,
  7001. mm: '%d Minuten',
  7002. h: processRelativeTime$1,
  7003. hh: '%d Stunden',
  7004. d: processRelativeTime$1,
  7005. dd: processRelativeTime$1,
  7006. M: processRelativeTime$1,
  7007. MM: processRelativeTime$1,
  7008. y: processRelativeTime$1,
  7009. yy: processRelativeTime$1,
  7010. },
  7011. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7012. ordinal: '%d.',
  7013. week: {
  7014. dow: 1, // Monday is the first day of the week.
  7015. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7016. },
  7017. });
  7018. //! moment.js locale configuration
  7019. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  7020. var format = {
  7021. m: ['eine Minute', 'einer Minute'],
  7022. h: ['eine Stunde', 'einer Stunde'],
  7023. d: ['ein Tag', 'einem Tag'],
  7024. dd: [number + ' Tage', number + ' Tagen'],
  7025. M: ['ein Monat', 'einem Monat'],
  7026. MM: [number + ' Monate', number + ' Monaten'],
  7027. y: ['ein Jahr', 'einem Jahr'],
  7028. yy: [number + ' Jahre', number + ' Jahren'],
  7029. };
  7030. return withoutSuffix ? format[key][0] : format[key][1];
  7031. }
  7032. hooks.defineLocale('de', {
  7033. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7034. '_'
  7035. ),
  7036. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7037. '_'
  7038. ),
  7039. monthsParseExact: true,
  7040. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7041. '_'
  7042. ),
  7043. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7044. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7045. weekdaysParseExact: true,
  7046. longDateFormat: {
  7047. LT: 'HH:mm',
  7048. LTS: 'HH:mm:ss',
  7049. L: 'DD.MM.YYYY',
  7050. LL: 'D. MMMM YYYY',
  7051. LLL: 'D. MMMM YYYY HH:mm',
  7052. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7053. },
  7054. calendar: {
  7055. sameDay: '[heute um] LT [Uhr]',
  7056. sameElse: 'L',
  7057. nextDay: '[morgen um] LT [Uhr]',
  7058. nextWeek: 'dddd [um] LT [Uhr]',
  7059. lastDay: '[gestern um] LT [Uhr]',
  7060. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7061. },
  7062. relativeTime: {
  7063. future: 'in %s',
  7064. past: 'vor %s',
  7065. s: 'ein paar Sekunden',
  7066. ss: '%d Sekunden',
  7067. m: processRelativeTime$2,
  7068. mm: '%d Minuten',
  7069. h: processRelativeTime$2,
  7070. hh: '%d Stunden',
  7071. d: processRelativeTime$2,
  7072. dd: processRelativeTime$2,
  7073. M: processRelativeTime$2,
  7074. MM: processRelativeTime$2,
  7075. y: processRelativeTime$2,
  7076. yy: processRelativeTime$2,
  7077. },
  7078. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7079. ordinal: '%d.',
  7080. week: {
  7081. dow: 1, // Monday is the first day of the week.
  7082. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7083. },
  7084. });
  7085. //! moment.js locale configuration
  7086. var months$4 = [
  7087. 'ޖެނުއަރީ',
  7088. 'ފެބްރުއަރީ',
  7089. 'މާރިޗު',
  7090. 'އޭޕްރީލު',
  7091. 'މޭ',
  7092. 'ޖޫން',
  7093. 'ޖުލައި',
  7094. 'އޯގަސްޓު',
  7095. 'ސެޕްޓެމްބަރު',
  7096. 'އޮކްޓޯބަރު',
  7097. 'ނޮވެމްބަރު',
  7098. 'ޑިސެމްބަރު',
  7099. ],
  7100. weekdays = [
  7101. 'އާދިއްތަ',
  7102. 'ހޯމަ',
  7103. 'އަންގާރަ',
  7104. 'ބުދަ',
  7105. 'ބުރާސްފަތި',
  7106. 'ހުކުރު',
  7107. 'ހޮނިހިރު',
  7108. ];
  7109. hooks.defineLocale('dv', {
  7110. months: months$4,
  7111. monthsShort: months$4,
  7112. weekdays: weekdays,
  7113. weekdaysShort: weekdays,
  7114. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7115. longDateFormat: {
  7116. LT: 'HH:mm',
  7117. LTS: 'HH:mm:ss',
  7118. L: 'D/M/YYYY',
  7119. LL: 'D MMMM YYYY',
  7120. LLL: 'D MMMM YYYY HH:mm',
  7121. LLLL: 'dddd D MMMM YYYY HH:mm',
  7122. },
  7123. meridiemParse: /މކ|މފ/,
  7124. isPM: function (input) {
  7125. return 'މފ' === input;
  7126. },
  7127. meridiem: function (hour, minute, isLower) {
  7128. if (hour < 12) {
  7129. return 'މކ';
  7130. } else {
  7131. return 'މފ';
  7132. }
  7133. },
  7134. calendar: {
  7135. sameDay: '[މިއަދު] LT',
  7136. nextDay: '[މާދަމާ] LT',
  7137. nextWeek: 'dddd LT',
  7138. lastDay: '[އިއްޔެ] LT',
  7139. lastWeek: '[ފާއިތުވި] dddd LT',
  7140. sameElse: 'L',
  7141. },
  7142. relativeTime: {
  7143. future: 'ތެރޭގައި %s',
  7144. past: 'ކުރިން %s',
  7145. s: 'ސިކުންތުކޮޅެއް',
  7146. ss: 'd% ސިކުންތު',
  7147. m: 'މިނިޓެއް',
  7148. mm: 'މިނިޓު %d',
  7149. h: 'ގަޑިއިރެއް',
  7150. hh: 'ގަޑިއިރު %d',
  7151. d: 'ދުވަހެއް',
  7152. dd: 'ދުވަސް %d',
  7153. M: 'މަހެއް',
  7154. MM: 'މަސް %d',
  7155. y: 'އަހަރެއް',
  7156. yy: 'އަހަރު %d',
  7157. },
  7158. preparse: function (string) {
  7159. return string.replace(/،/g, ',');
  7160. },
  7161. postformat: function (string) {
  7162. return string.replace(/,/g, '،');
  7163. },
  7164. week: {
  7165. dow: 7, // Sunday is the first day of the week.
  7166. doy: 12, // The week that contains Jan 12th is the first week of the year.
  7167. },
  7168. });
  7169. //! moment.js locale configuration
  7170. function isFunction$1(input) {
  7171. return (
  7172. (typeof Function !== 'undefined' && input instanceof Function) ||
  7173. Object.prototype.toString.call(input) === '[object Function]'
  7174. );
  7175. }
  7176. hooks.defineLocale('el', {
  7177. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  7178. '_'
  7179. ),
  7180. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  7181. '_'
  7182. ),
  7183. months: function (momentToFormat, format) {
  7184. if (!momentToFormat) {
  7185. return this._monthsNominativeEl;
  7186. } else if (
  7187. typeof format === 'string' &&
  7188. /D/.test(format.substring(0, format.indexOf('MMMM')))
  7189. ) {
  7190. // if there is a day number before 'MMMM'
  7191. return this._monthsGenitiveEl[momentToFormat.month()];
  7192. } else {
  7193. return this._monthsNominativeEl[momentToFormat.month()];
  7194. }
  7195. },
  7196. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7197. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  7198. '_'
  7199. ),
  7200. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7201. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7202. meridiem: function (hours, minutes, isLower) {
  7203. if (hours > 11) {
  7204. return isLower ? 'μμ' : 'ΜΜ';
  7205. } else {
  7206. return isLower ? 'πμ' : 'ΠΜ';
  7207. }
  7208. },
  7209. isPM: function (input) {
  7210. return (input + '').toLowerCase()[0] === 'μ';
  7211. },
  7212. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  7213. longDateFormat: {
  7214. LT: 'h:mm A',
  7215. LTS: 'h:mm:ss A',
  7216. L: 'DD/MM/YYYY',
  7217. LL: 'D MMMM YYYY',
  7218. LLL: 'D MMMM YYYY h:mm A',
  7219. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7220. },
  7221. calendarEl: {
  7222. sameDay: '[Σήμερα {}] LT',
  7223. nextDay: '[Αύριο {}] LT',
  7224. nextWeek: 'dddd [{}] LT',
  7225. lastDay: '[Χθες {}] LT',
  7226. lastWeek: function () {
  7227. switch (this.day()) {
  7228. case 6:
  7229. return '[το προηγούμενο] dddd [{}] LT';
  7230. default:
  7231. return '[την προηγούμενη] dddd [{}] LT';
  7232. }
  7233. },
  7234. sameElse: 'L',
  7235. },
  7236. calendar: function (key, mom) {
  7237. var output = this._calendarEl[key],
  7238. hours = mom && mom.hours();
  7239. if (isFunction$1(output)) {
  7240. output = output.apply(mom);
  7241. }
  7242. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  7243. },
  7244. relativeTime: {
  7245. future: 'σε %s',
  7246. past: '%s πριν',
  7247. s: 'λίγα δευτερόλεπτα',
  7248. ss: '%d δευτερόλεπτα',
  7249. m: 'ένα λεπτό',
  7250. mm: '%d λεπτά',
  7251. h: 'μία ώρα',
  7252. hh: '%d ώρες',
  7253. d: 'μία μέρα',
  7254. dd: '%d μέρες',
  7255. M: 'ένας μήνας',
  7256. MM: '%d μήνες',
  7257. y: 'ένας χρόνος',
  7258. yy: '%d χρόνια',
  7259. },
  7260. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7261. ordinal: '%dη',
  7262. week: {
  7263. dow: 1, // Monday is the first day of the week.
  7264. doy: 4, // The week that contains Jan 4st is the first week of the year.
  7265. },
  7266. });
  7267. //! moment.js locale configuration
  7268. hooks.defineLocale('en-au', {
  7269. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7270. '_'
  7271. ),
  7272. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7273. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7274. '_'
  7275. ),
  7276. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7277. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7278. longDateFormat: {
  7279. LT: 'h:mm A',
  7280. LTS: 'h:mm:ss A',
  7281. L: 'DD/MM/YYYY',
  7282. LL: 'D MMMM YYYY',
  7283. LLL: 'D MMMM YYYY h:mm A',
  7284. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7285. },
  7286. calendar: {
  7287. sameDay: '[Today at] LT',
  7288. nextDay: '[Tomorrow at] LT',
  7289. nextWeek: 'dddd [at] LT',
  7290. lastDay: '[Yesterday at] LT',
  7291. lastWeek: '[Last] dddd [at] LT',
  7292. sameElse: 'L',
  7293. },
  7294. relativeTime: {
  7295. future: 'in %s',
  7296. past: '%s ago',
  7297. s: 'a few seconds',
  7298. ss: '%d seconds',
  7299. m: 'a minute',
  7300. mm: '%d minutes',
  7301. h: 'an hour',
  7302. hh: '%d hours',
  7303. d: 'a day',
  7304. dd: '%d days',
  7305. M: 'a month',
  7306. MM: '%d months',
  7307. y: 'a year',
  7308. yy: '%d years',
  7309. },
  7310. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7311. ordinal: function (number) {
  7312. var b = number % 10,
  7313. output =
  7314. ~~((number % 100) / 10) === 1
  7315. ? 'th'
  7316. : b === 1
  7317. ? 'st'
  7318. : b === 2
  7319. ? 'nd'
  7320. : b === 3
  7321. ? 'rd'
  7322. : 'th';
  7323. return number + output;
  7324. },
  7325. week: {
  7326. dow: 1, // Monday is the first day of the week.
  7327. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7328. },
  7329. });
  7330. //! moment.js locale configuration
  7331. hooks.defineLocale('en-ca', {
  7332. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7333. '_'
  7334. ),
  7335. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7336. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7337. '_'
  7338. ),
  7339. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7340. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7341. longDateFormat: {
  7342. LT: 'h:mm A',
  7343. LTS: 'h:mm:ss A',
  7344. L: 'YYYY-MM-DD',
  7345. LL: 'MMMM D, YYYY',
  7346. LLL: 'MMMM D, YYYY h:mm A',
  7347. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  7348. },
  7349. calendar: {
  7350. sameDay: '[Today at] LT',
  7351. nextDay: '[Tomorrow at] LT',
  7352. nextWeek: 'dddd [at] LT',
  7353. lastDay: '[Yesterday at] LT',
  7354. lastWeek: '[Last] dddd [at] LT',
  7355. sameElse: 'L',
  7356. },
  7357. relativeTime: {
  7358. future: 'in %s',
  7359. past: '%s ago',
  7360. s: 'a few seconds',
  7361. ss: '%d seconds',
  7362. m: 'a minute',
  7363. mm: '%d minutes',
  7364. h: 'an hour',
  7365. hh: '%d hours',
  7366. d: 'a day',
  7367. dd: '%d days',
  7368. M: 'a month',
  7369. MM: '%d months',
  7370. y: 'a year',
  7371. yy: '%d years',
  7372. },
  7373. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7374. ordinal: function (number) {
  7375. var b = number % 10,
  7376. output =
  7377. ~~((number % 100) / 10) === 1
  7378. ? 'th'
  7379. : b === 1
  7380. ? 'st'
  7381. : b === 2
  7382. ? 'nd'
  7383. : b === 3
  7384. ? 'rd'
  7385. : 'th';
  7386. return number + output;
  7387. },
  7388. });
  7389. //! moment.js locale configuration
  7390. hooks.defineLocale('en-gb', {
  7391. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7392. '_'
  7393. ),
  7394. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7395. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7396. '_'
  7397. ),
  7398. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7399. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7400. longDateFormat: {
  7401. LT: 'HH:mm',
  7402. LTS: 'HH:mm:ss',
  7403. L: 'DD/MM/YYYY',
  7404. LL: 'D MMMM YYYY',
  7405. LLL: 'D MMMM YYYY HH:mm',
  7406. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7407. },
  7408. calendar: {
  7409. sameDay: '[Today at] LT',
  7410. nextDay: '[Tomorrow at] LT',
  7411. nextWeek: 'dddd [at] LT',
  7412. lastDay: '[Yesterday at] LT',
  7413. lastWeek: '[Last] dddd [at] LT',
  7414. sameElse: 'L',
  7415. },
  7416. relativeTime: {
  7417. future: 'in %s',
  7418. past: '%s ago',
  7419. s: 'a few seconds',
  7420. ss: '%d seconds',
  7421. m: 'a minute',
  7422. mm: '%d minutes',
  7423. h: 'an hour',
  7424. hh: '%d hours',
  7425. d: 'a day',
  7426. dd: '%d days',
  7427. M: 'a month',
  7428. MM: '%d months',
  7429. y: 'a year',
  7430. yy: '%d years',
  7431. },
  7432. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7433. ordinal: function (number) {
  7434. var b = number % 10,
  7435. output =
  7436. ~~((number % 100) / 10) === 1
  7437. ? 'th'
  7438. : b === 1
  7439. ? 'st'
  7440. : b === 2
  7441. ? 'nd'
  7442. : b === 3
  7443. ? 'rd'
  7444. : 'th';
  7445. return number + output;
  7446. },
  7447. week: {
  7448. dow: 1, // Monday is the first day of the week.
  7449. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7450. },
  7451. });
  7452. //! moment.js locale configuration
  7453. hooks.defineLocale('en-ie', {
  7454. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7455. '_'
  7456. ),
  7457. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7458. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7459. '_'
  7460. ),
  7461. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7462. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7463. longDateFormat: {
  7464. LT: 'HH:mm',
  7465. LTS: 'HH:mm:ss',
  7466. L: 'DD/MM/YYYY',
  7467. LL: 'D MMMM YYYY',
  7468. LLL: 'D MMMM YYYY HH:mm',
  7469. LLLL: 'dddd D MMMM YYYY HH:mm',
  7470. },
  7471. calendar: {
  7472. sameDay: '[Today at] LT',
  7473. nextDay: '[Tomorrow at] LT',
  7474. nextWeek: 'dddd [at] LT',
  7475. lastDay: '[Yesterday at] LT',
  7476. lastWeek: '[Last] dddd [at] LT',
  7477. sameElse: 'L',
  7478. },
  7479. relativeTime: {
  7480. future: 'in %s',
  7481. past: '%s ago',
  7482. s: 'a few seconds',
  7483. ss: '%d seconds',
  7484. m: 'a minute',
  7485. mm: '%d minutes',
  7486. h: 'an hour',
  7487. hh: '%d hours',
  7488. d: 'a day',
  7489. dd: '%d days',
  7490. M: 'a month',
  7491. MM: '%d months',
  7492. y: 'a year',
  7493. yy: '%d years',
  7494. },
  7495. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7496. ordinal: function (number) {
  7497. var b = number % 10,
  7498. output =
  7499. ~~((number % 100) / 10) === 1
  7500. ? 'th'
  7501. : b === 1
  7502. ? 'st'
  7503. : b === 2
  7504. ? 'nd'
  7505. : b === 3
  7506. ? 'rd'
  7507. : 'th';
  7508. return number + output;
  7509. },
  7510. week: {
  7511. dow: 1, // Monday is the first day of the week.
  7512. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7513. },
  7514. });
  7515. //! moment.js locale configuration
  7516. hooks.defineLocale('en-il', {
  7517. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7518. '_'
  7519. ),
  7520. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7521. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7522. '_'
  7523. ),
  7524. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7525. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7526. longDateFormat: {
  7527. LT: 'HH:mm',
  7528. LTS: 'HH:mm:ss',
  7529. L: 'DD/MM/YYYY',
  7530. LL: 'D MMMM YYYY',
  7531. LLL: 'D MMMM YYYY HH:mm',
  7532. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7533. },
  7534. calendar: {
  7535. sameDay: '[Today at] LT',
  7536. nextDay: '[Tomorrow at] LT',
  7537. nextWeek: 'dddd [at] LT',
  7538. lastDay: '[Yesterday at] LT',
  7539. lastWeek: '[Last] dddd [at] LT',
  7540. sameElse: 'L',
  7541. },
  7542. relativeTime: {
  7543. future: 'in %s',
  7544. past: '%s ago',
  7545. s: 'a few seconds',
  7546. ss: '%d seconds',
  7547. m: 'a minute',
  7548. mm: '%d minutes',
  7549. h: 'an hour',
  7550. hh: '%d hours',
  7551. d: 'a day',
  7552. dd: '%d days',
  7553. M: 'a month',
  7554. MM: '%d months',
  7555. y: 'a year',
  7556. yy: '%d years',
  7557. },
  7558. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7559. ordinal: function (number) {
  7560. var b = number % 10,
  7561. output =
  7562. ~~((number % 100) / 10) === 1
  7563. ? 'th'
  7564. : b === 1
  7565. ? 'st'
  7566. : b === 2
  7567. ? 'nd'
  7568. : b === 3
  7569. ? 'rd'
  7570. : 'th';
  7571. return number + output;
  7572. },
  7573. });
  7574. //! moment.js locale configuration
  7575. hooks.defineLocale('en-in', {
  7576. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7577. '_'
  7578. ),
  7579. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7580. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7581. '_'
  7582. ),
  7583. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7584. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7585. longDateFormat: {
  7586. LT: 'h:mm A',
  7587. LTS: 'h:mm:ss A',
  7588. L: 'DD/MM/YYYY',
  7589. LL: 'D MMMM YYYY',
  7590. LLL: 'D MMMM YYYY h:mm A',
  7591. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7592. },
  7593. calendar: {
  7594. sameDay: '[Today at] LT',
  7595. nextDay: '[Tomorrow at] LT',
  7596. nextWeek: 'dddd [at] LT',
  7597. lastDay: '[Yesterday at] LT',
  7598. lastWeek: '[Last] dddd [at] LT',
  7599. sameElse: 'L',
  7600. },
  7601. relativeTime: {
  7602. future: 'in %s',
  7603. past: '%s ago',
  7604. s: 'a few seconds',
  7605. ss: '%d seconds',
  7606. m: 'a minute',
  7607. mm: '%d minutes',
  7608. h: 'an hour',
  7609. hh: '%d hours',
  7610. d: 'a day',
  7611. dd: '%d days',
  7612. M: 'a month',
  7613. MM: '%d months',
  7614. y: 'a year',
  7615. yy: '%d years',
  7616. },
  7617. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7618. ordinal: function (number) {
  7619. var b = number % 10,
  7620. output =
  7621. ~~((number % 100) / 10) === 1
  7622. ? 'th'
  7623. : b === 1
  7624. ? 'st'
  7625. : b === 2
  7626. ? 'nd'
  7627. : b === 3
  7628. ? 'rd'
  7629. : 'th';
  7630. return number + output;
  7631. },
  7632. week: {
  7633. dow: 1, // Monday is the first day of the week.
  7634. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7635. },
  7636. });
  7637. //! moment.js locale configuration
  7638. hooks.defineLocale('en-nz', {
  7639. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7640. '_'
  7641. ),
  7642. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7643. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7644. '_'
  7645. ),
  7646. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7647. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7648. longDateFormat: {
  7649. LT: 'h:mm A',
  7650. LTS: 'h:mm:ss A',
  7651. L: 'DD/MM/YYYY',
  7652. LL: 'D MMMM YYYY',
  7653. LLL: 'D MMMM YYYY h:mm A',
  7654. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7655. },
  7656. calendar: {
  7657. sameDay: '[Today at] LT',
  7658. nextDay: '[Tomorrow at] LT',
  7659. nextWeek: 'dddd [at] LT',
  7660. lastDay: '[Yesterday at] LT',
  7661. lastWeek: '[Last] dddd [at] LT',
  7662. sameElse: 'L',
  7663. },
  7664. relativeTime: {
  7665. future: 'in %s',
  7666. past: '%s ago',
  7667. s: 'a few seconds',
  7668. ss: '%d seconds',
  7669. m: 'a minute',
  7670. mm: '%d minutes',
  7671. h: 'an hour',
  7672. hh: '%d hours',
  7673. d: 'a day',
  7674. dd: '%d days',
  7675. M: 'a month',
  7676. MM: '%d months',
  7677. y: 'a year',
  7678. yy: '%d years',
  7679. },
  7680. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7681. ordinal: function (number) {
  7682. var b = number % 10,
  7683. output =
  7684. ~~((number % 100) / 10) === 1
  7685. ? 'th'
  7686. : b === 1
  7687. ? 'st'
  7688. : b === 2
  7689. ? 'nd'
  7690. : b === 3
  7691. ? 'rd'
  7692. : 'th';
  7693. return number + output;
  7694. },
  7695. week: {
  7696. dow: 1, // Monday is the first day of the week.
  7697. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7698. },
  7699. });
  7700. //! moment.js locale configuration
  7701. hooks.defineLocale('en-sg', {
  7702. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7703. '_'
  7704. ),
  7705. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7706. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7707. '_'
  7708. ),
  7709. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7710. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7711. longDateFormat: {
  7712. LT: 'HH:mm',
  7713. LTS: 'HH:mm:ss',
  7714. L: 'DD/MM/YYYY',
  7715. LL: 'D MMMM YYYY',
  7716. LLL: 'D MMMM YYYY HH:mm',
  7717. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7718. },
  7719. calendar: {
  7720. sameDay: '[Today at] LT',
  7721. nextDay: '[Tomorrow at] LT',
  7722. nextWeek: 'dddd [at] LT',
  7723. lastDay: '[Yesterday at] LT',
  7724. lastWeek: '[Last] dddd [at] LT',
  7725. sameElse: 'L',
  7726. },
  7727. relativeTime: {
  7728. future: 'in %s',
  7729. past: '%s ago',
  7730. s: 'a few seconds',
  7731. ss: '%d seconds',
  7732. m: 'a minute',
  7733. mm: '%d minutes',
  7734. h: 'an hour',
  7735. hh: '%d hours',
  7736. d: 'a day',
  7737. dd: '%d days',
  7738. M: 'a month',
  7739. MM: '%d months',
  7740. y: 'a year',
  7741. yy: '%d years',
  7742. },
  7743. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7744. ordinal: function (number) {
  7745. var b = number % 10,
  7746. output =
  7747. ~~((number % 100) / 10) === 1
  7748. ? 'th'
  7749. : b === 1
  7750. ? 'st'
  7751. : b === 2
  7752. ? 'nd'
  7753. : b === 3
  7754. ? 'rd'
  7755. : 'th';
  7756. return number + output;
  7757. },
  7758. week: {
  7759. dow: 1, // Monday is the first day of the week.
  7760. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7761. },
  7762. });
  7763. //! moment.js locale configuration
  7764. hooks.defineLocale('eo', {
  7765. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  7766. '_'
  7767. ),
  7768. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  7769. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  7770. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  7771. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  7772. longDateFormat: {
  7773. LT: 'HH:mm',
  7774. LTS: 'HH:mm:ss',
  7775. L: 'YYYY-MM-DD',
  7776. LL: '[la] D[-an de] MMMM, YYYY',
  7777. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  7778. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  7779. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
  7780. },
  7781. meridiemParse: /[ap]\.t\.m/i,
  7782. isPM: function (input) {
  7783. return input.charAt(0).toLowerCase() === 'p';
  7784. },
  7785. meridiem: function (hours, minutes, isLower) {
  7786. if (hours > 11) {
  7787. return isLower ? 'p.t.m.' : 'P.T.M.';
  7788. } else {
  7789. return isLower ? 'a.t.m.' : 'A.T.M.';
  7790. }
  7791. },
  7792. calendar: {
  7793. sameDay: '[Hodiaŭ je] LT',
  7794. nextDay: '[Morgaŭ je] LT',
  7795. nextWeek: 'dddd[n je] LT',
  7796. lastDay: '[Hieraŭ je] LT',
  7797. lastWeek: '[pasintan] dddd[n je] LT',
  7798. sameElse: 'L',
  7799. },
  7800. relativeTime: {
  7801. future: 'post %s',
  7802. past: 'antaŭ %s',
  7803. s: 'kelkaj sekundoj',
  7804. ss: '%d sekundoj',
  7805. m: 'unu minuto',
  7806. mm: '%d minutoj',
  7807. h: 'unu horo',
  7808. hh: '%d horoj',
  7809. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  7810. dd: '%d tagoj',
  7811. M: 'unu monato',
  7812. MM: '%d monatoj',
  7813. y: 'unu jaro',
  7814. yy: '%d jaroj',
  7815. },
  7816. dayOfMonthOrdinalParse: /\d{1,2}a/,
  7817. ordinal: '%da',
  7818. week: {
  7819. dow: 1, // Monday is the first day of the week.
  7820. doy: 7, // The week that contains Jan 7th is the first week of the year.
  7821. },
  7822. });
  7823. //! moment.js locale configuration
  7824. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  7825. '_'
  7826. ),
  7827. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  7828. monthsParse$1 = [
  7829. /^ene/i,
  7830. /^feb/i,
  7831. /^mar/i,
  7832. /^abr/i,
  7833. /^may/i,
  7834. /^jun/i,
  7835. /^jul/i,
  7836. /^ago/i,
  7837. /^sep/i,
  7838. /^oct/i,
  7839. /^nov/i,
  7840. /^dic/i,
  7841. ],
  7842. monthsRegex$2 = /^(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;
  7843. hooks.defineLocale('es-do', {
  7844. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  7845. '_'
  7846. ),
  7847. monthsShort: function (m, format) {
  7848. if (!m) {
  7849. return monthsShortDot;
  7850. } else if (/-MMM-/.test(format)) {
  7851. return monthsShort$1[m.month()];
  7852. } else {
  7853. return monthsShortDot[m.month()];
  7854. }
  7855. },
  7856. monthsRegex: monthsRegex$2,
  7857. monthsShortRegex: monthsRegex$2,
  7858. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  7859. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  7860. monthsParse: monthsParse$1,
  7861. longMonthsParse: monthsParse$1,
  7862. shortMonthsParse: monthsParse$1,
  7863. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  7864. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  7865. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  7866. weekdaysParseExact: true,
  7867. longDateFormat: {
  7868. LT: 'h:mm A',
  7869. LTS: 'h:mm:ss A',
  7870. L: 'DD/MM/YYYY',
  7871. LL: 'D [de] MMMM [de] YYYY',
  7872. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  7873. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  7874. },
  7875. calendar: {
  7876. sameDay: function () {
  7877. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7878. },
  7879. nextDay: function () {
  7880. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7881. },
  7882. nextWeek: function () {
  7883. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7884. },
  7885. lastDay: function () {
  7886. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7887. },
  7888. lastWeek: function () {
  7889. return (
  7890. '[el] dddd [pasado a la' +
  7891. (this.hours() !== 1 ? 's' : '') +
  7892. '] LT'
  7893. );
  7894. },
  7895. sameElse: 'L',
  7896. },
  7897. relativeTime: {
  7898. future: 'en %s',
  7899. past: 'hace %s',
  7900. s: 'unos segundos',
  7901. ss: '%d segundos',
  7902. m: 'un minuto',
  7903. mm: '%d minutos',
  7904. h: 'una hora',
  7905. hh: '%d horas',
  7906. d: 'un día',
  7907. dd: '%d días',
  7908. M: 'un mes',
  7909. MM: '%d meses',
  7910. y: 'un año',
  7911. yy: '%d años',
  7912. },
  7913. dayOfMonthOrdinalParse: /\d{1,2}º/,
  7914. ordinal: '%dº',
  7915. week: {
  7916. dow: 1, // Monday is the first day of the week.
  7917. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7918. },
  7919. });
  7920. //! moment.js locale configuration
  7921. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  7922. '_'
  7923. ),
  7924. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  7925. monthsParse$2 = [
  7926. /^ene/i,
  7927. /^feb/i,
  7928. /^mar/i,
  7929. /^abr/i,
  7930. /^may/i,
  7931. /^jun/i,
  7932. /^jul/i,
  7933. /^ago/i,
  7934. /^sep/i,
  7935. /^oct/i,
  7936. /^nov/i,
  7937. /^dic/i,
  7938. ],
  7939. 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;
  7940. hooks.defineLocale('es-us', {
  7941. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  7942. '_'
  7943. ),
  7944. monthsShort: function (m, format) {
  7945. if (!m) {
  7946. return monthsShortDot$1;
  7947. } else if (/-MMM-/.test(format)) {
  7948. return monthsShort$2[m.month()];
  7949. } else {
  7950. return monthsShortDot$1[m.month()];
  7951. }
  7952. },
  7953. monthsRegex: monthsRegex$3,
  7954. monthsShortRegex: monthsRegex$3,
  7955. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  7956. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  7957. monthsParse: monthsParse$2,
  7958. longMonthsParse: monthsParse$2,
  7959. shortMonthsParse: monthsParse$2,
  7960. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  7961. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  7962. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  7963. weekdaysParseExact: true,
  7964. longDateFormat: {
  7965. LT: 'h:mm A',
  7966. LTS: 'h:mm:ss A',
  7967. L: 'MM/DD/YYYY',
  7968. LL: 'D [de] MMMM [de] YYYY',
  7969. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  7970. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  7971. },
  7972. calendar: {
  7973. sameDay: function () {
  7974. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7975. },
  7976. nextDay: function () {
  7977. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7978. },
  7979. nextWeek: function () {
  7980. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7981. },
  7982. lastDay: function () {
  7983. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  7984. },
  7985. lastWeek: function () {
  7986. return (
  7987. '[el] dddd [pasado a la' +
  7988. (this.hours() !== 1 ? 's' : '') +
  7989. '] LT'
  7990. );
  7991. },
  7992. sameElse: 'L',
  7993. },
  7994. relativeTime: {
  7995. future: 'en %s',
  7996. past: 'hace %s',
  7997. s: 'unos segundos',
  7998. ss: '%d segundos',
  7999. m: 'un minuto',
  8000. mm: '%d minutos',
  8001. h: 'una hora',
  8002. hh: '%d horas',
  8003. d: 'un día',
  8004. dd: '%d días',
  8005. M: 'un mes',
  8006. MM: '%d meses',
  8007. y: 'un año',
  8008. yy: '%d años',
  8009. },
  8010. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8011. ordinal: '%dº',
  8012. week: {
  8013. dow: 0, // Sunday is the first day of the week.
  8014. doy: 6, // The week that contains Jan 6th is the first week of the year.
  8015. },
  8016. });
  8017. //! moment.js locale configuration
  8018. var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8019. '_'
  8020. ),
  8021. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8022. monthsParse$3 = [
  8023. /^ene/i,
  8024. /^feb/i,
  8025. /^mar/i,
  8026. /^abr/i,
  8027. /^may/i,
  8028. /^jun/i,
  8029. /^jul/i,
  8030. /^ago/i,
  8031. /^sep/i,
  8032. /^oct/i,
  8033. /^nov/i,
  8034. /^dic/i,
  8035. ],
  8036. 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;
  8037. hooks.defineLocale('es', {
  8038. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8039. '_'
  8040. ),
  8041. monthsShort: function (m, format) {
  8042. if (!m) {
  8043. return monthsShortDot$2;
  8044. } else if (/-MMM-/.test(format)) {
  8045. return monthsShort$3[m.month()];
  8046. } else {
  8047. return monthsShortDot$2[m.month()];
  8048. }
  8049. },
  8050. monthsRegex: monthsRegex$4,
  8051. monthsShortRegex: monthsRegex$4,
  8052. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8053. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8054. monthsParse: monthsParse$3,
  8055. longMonthsParse: monthsParse$3,
  8056. shortMonthsParse: monthsParse$3,
  8057. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8058. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8059. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8060. weekdaysParseExact: true,
  8061. longDateFormat: {
  8062. LT: 'H:mm',
  8063. LTS: 'H:mm:ss',
  8064. L: 'DD/MM/YYYY',
  8065. LL: 'D [de] MMMM [de] YYYY',
  8066. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8067. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8068. },
  8069. calendar: {
  8070. sameDay: function () {
  8071. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8072. },
  8073. nextDay: function () {
  8074. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8075. },
  8076. nextWeek: function () {
  8077. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8078. },
  8079. lastDay: function () {
  8080. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8081. },
  8082. lastWeek: function () {
  8083. return (
  8084. '[el] dddd [pasado a la' +
  8085. (this.hours() !== 1 ? 's' : '') +
  8086. '] LT'
  8087. );
  8088. },
  8089. sameElse: 'L',
  8090. },
  8091. relativeTime: {
  8092. future: 'en %s',
  8093. past: 'hace %s',
  8094. s: 'unos segundos',
  8095. ss: '%d segundos',
  8096. m: 'un minuto',
  8097. mm: '%d minutos',
  8098. h: 'una hora',
  8099. hh: '%d horas',
  8100. d: 'un día',
  8101. dd: '%d días',
  8102. M: 'un mes',
  8103. MM: '%d meses',
  8104. y: 'un año',
  8105. yy: '%d años',
  8106. },
  8107. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8108. ordinal: '%dº',
  8109. week: {
  8110. dow: 1, // Monday is the first day of the week.
  8111. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8112. },
  8113. invalidDate: 'Fecha invalida',
  8114. });
  8115. //! moment.js locale configuration
  8116. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  8117. var format = {
  8118. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8119. ss: [number + 'sekundi', number + 'sekundit'],
  8120. m: ['ühe minuti', 'üks minut'],
  8121. mm: [number + ' minuti', number + ' minutit'],
  8122. h: ['ühe tunni', 'tund aega', 'üks tund'],
  8123. hh: [number + ' tunni', number + ' tundi'],
  8124. d: ['ühe päeva', 'üks päev'],
  8125. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  8126. MM: [number + ' kuu', number + ' kuud'],
  8127. y: ['ühe aasta', 'aasta', 'üks aasta'],
  8128. yy: [number + ' aasta', number + ' aastat'],
  8129. };
  8130. if (withoutSuffix) {
  8131. return format[key][2] ? format[key][2] : format[key][1];
  8132. }
  8133. return isFuture ? format[key][0] : format[key][1];
  8134. }
  8135. hooks.defineLocale('et', {
  8136. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  8137. '_'
  8138. ),
  8139. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
  8140. '_'
  8141. ),
  8142. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  8143. '_'
  8144. ),
  8145. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  8146. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  8147. longDateFormat: {
  8148. LT: 'H:mm',
  8149. LTS: 'H:mm:ss',
  8150. L: 'DD.MM.YYYY',
  8151. LL: 'D. MMMM YYYY',
  8152. LLL: 'D. MMMM YYYY H:mm',
  8153. LLLL: 'dddd, D. MMMM YYYY H:mm',
  8154. },
  8155. calendar: {
  8156. sameDay: '[Täna,] LT',
  8157. nextDay: '[Homme,] LT',
  8158. nextWeek: '[Järgmine] dddd LT',
  8159. lastDay: '[Eile,] LT',
  8160. lastWeek: '[Eelmine] dddd LT',
  8161. sameElse: 'L',
  8162. },
  8163. relativeTime: {
  8164. future: '%s pärast',
  8165. past: '%s tagasi',
  8166. s: processRelativeTime$3,
  8167. ss: processRelativeTime$3,
  8168. m: processRelativeTime$3,
  8169. mm: processRelativeTime$3,
  8170. h: processRelativeTime$3,
  8171. hh: processRelativeTime$3,
  8172. d: processRelativeTime$3,
  8173. dd: '%d päeva',
  8174. M: processRelativeTime$3,
  8175. MM: processRelativeTime$3,
  8176. y: processRelativeTime$3,
  8177. yy: processRelativeTime$3,
  8178. },
  8179. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8180. ordinal: '%d.',
  8181. week: {
  8182. dow: 1, // Monday is the first day of the week.
  8183. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8184. },
  8185. });
  8186. //! moment.js locale configuration
  8187. hooks.defineLocale('eu', {
  8188. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  8189. '_'
  8190. ),
  8191. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  8192. '_'
  8193. ),
  8194. monthsParseExact: true,
  8195. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  8196. '_'
  8197. ),
  8198. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8199. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  8200. weekdaysParseExact: true,
  8201. longDateFormat: {
  8202. LT: 'HH:mm',
  8203. LTS: 'HH:mm:ss',
  8204. L: 'YYYY-MM-DD',
  8205. LL: 'YYYY[ko] MMMM[ren] D[a]',
  8206. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8207. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8208. l: 'YYYY-M-D',
  8209. ll: 'YYYY[ko] MMM D[a]',
  8210. lll: 'YYYY[ko] MMM D[a] HH:mm',
  8211. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
  8212. },
  8213. calendar: {
  8214. sameDay: '[gaur] LT[etan]',
  8215. nextDay: '[bihar] LT[etan]',
  8216. nextWeek: 'dddd LT[etan]',
  8217. lastDay: '[atzo] LT[etan]',
  8218. lastWeek: '[aurreko] dddd LT[etan]',
  8219. sameElse: 'L',
  8220. },
  8221. relativeTime: {
  8222. future: '%s barru',
  8223. past: 'duela %s',
  8224. s: 'segundo batzuk',
  8225. ss: '%d segundo',
  8226. m: 'minutu bat',
  8227. mm: '%d minutu',
  8228. h: 'ordu bat',
  8229. hh: '%d ordu',
  8230. d: 'egun bat',
  8231. dd: '%d egun',
  8232. M: 'hilabete bat',
  8233. MM: '%d hilabete',
  8234. y: 'urte bat',
  8235. yy: '%d urte',
  8236. },
  8237. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8238. ordinal: '%d.',
  8239. week: {
  8240. dow: 1, // Monday is the first day of the week.
  8241. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8242. },
  8243. });
  8244. //! moment.js locale configuration
  8245. var symbolMap$5 = {
  8246. '1': '۱',
  8247. '2': '۲',
  8248. '3': '۳',
  8249. '4': '۴',
  8250. '5': '۵',
  8251. '6': '۶',
  8252. '7': '۷',
  8253. '8': '۸',
  8254. '9': '۹',
  8255. '0': '۰',
  8256. },
  8257. numberMap$4 = {
  8258. '۱': '1',
  8259. '۲': '2',
  8260. '۳': '3',
  8261. '۴': '4',
  8262. '۵': '5',
  8263. '۶': '6',
  8264. '۷': '7',
  8265. '۸': '8',
  8266. '۹': '9',
  8267. '۰': '0',
  8268. };
  8269. hooks.defineLocale('fa', {
  8270. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8271. '_'
  8272. ),
  8273. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8274. '_'
  8275. ),
  8276. weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8277. '_'
  8278. ),
  8279. weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8280. '_'
  8281. ),
  8282. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8283. weekdaysParseExact: true,
  8284. longDateFormat: {
  8285. LT: 'HH:mm',
  8286. LTS: 'HH:mm:ss',
  8287. L: 'DD/MM/YYYY',
  8288. LL: 'D MMMM YYYY',
  8289. LLL: 'D MMMM YYYY HH:mm',
  8290. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8291. },
  8292. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8293. isPM: function (input) {
  8294. return /بعد از ظهر/.test(input);
  8295. },
  8296. meridiem: function (hour, minute, isLower) {
  8297. if (hour < 12) {
  8298. return 'قبل از ظهر';
  8299. } else {
  8300. return 'بعد از ظهر';
  8301. }
  8302. },
  8303. calendar: {
  8304. sameDay: '[امروز ساعت] LT',
  8305. nextDay: '[فردا ساعت] LT',
  8306. nextWeek: 'dddd [ساعت] LT',
  8307. lastDay: '[دیروز ساعت] LT',
  8308. lastWeek: 'dddd [پیش] [ساعت] LT',
  8309. sameElse: 'L',
  8310. },
  8311. relativeTime: {
  8312. future: 'در %s',
  8313. past: '%s پیش',
  8314. s: 'چند ثانیه',
  8315. ss: '%d ثانیه',
  8316. m: 'یک دقیقه',
  8317. mm: '%d دقیقه',
  8318. h: 'یک ساعت',
  8319. hh: '%d ساعت',
  8320. d: 'یک روز',
  8321. dd: '%d روز',
  8322. M: 'یک ماه',
  8323. MM: '%d ماه',
  8324. y: 'یک سال',
  8325. yy: '%d سال',
  8326. },
  8327. preparse: function (string) {
  8328. return string
  8329. .replace(/[۰-۹]/g, function (match) {
  8330. return numberMap$4[match];
  8331. })
  8332. .replace(/،/g, ',');
  8333. },
  8334. postformat: function (string) {
  8335. return string
  8336. .replace(/\d/g, function (match) {
  8337. return symbolMap$5[match];
  8338. })
  8339. .replace(/,/g, '،');
  8340. },
  8341. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8342. ordinal: '%dم',
  8343. week: {
  8344. dow: 6, // Saturday is the first day of the week.
  8345. doy: 12, // The week that contains Jan 12th is the first week of the year.
  8346. },
  8347. });
  8348. //! moment.js locale configuration
  8349. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  8350. ' '
  8351. ),
  8352. numbersFuture = [
  8353. 'nolla',
  8354. 'yhden',
  8355. 'kahden',
  8356. 'kolmen',
  8357. 'neljän',
  8358. 'viiden',
  8359. 'kuuden',
  8360. numbersPast[7],
  8361. numbersPast[8],
  8362. numbersPast[9],
  8363. ];
  8364. function translate$2(number, withoutSuffix, key, isFuture) {
  8365. var result = '';
  8366. switch (key) {
  8367. case 's':
  8368. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8369. case 'ss':
  8370. return isFuture ? 'sekunnin' : 'sekuntia';
  8371. case 'm':
  8372. return isFuture ? 'minuutin' : 'minuutti';
  8373. case 'mm':
  8374. result = isFuture ? 'minuutin' : 'minuuttia';
  8375. break;
  8376. case 'h':
  8377. return isFuture ? 'tunnin' : 'tunti';
  8378. case 'hh':
  8379. result = isFuture ? 'tunnin' : 'tuntia';
  8380. break;
  8381. case 'd':
  8382. return isFuture ? 'päivän' : 'päivä';
  8383. case 'dd':
  8384. result = isFuture ? 'päivän' : 'päivää';
  8385. break;
  8386. case 'M':
  8387. return isFuture ? 'kuukauden' : 'kuukausi';
  8388. case 'MM':
  8389. result = isFuture ? 'kuukauden' : 'kuukautta';
  8390. break;
  8391. case 'y':
  8392. return isFuture ? 'vuoden' : 'vuosi';
  8393. case 'yy':
  8394. result = isFuture ? 'vuoden' : 'vuotta';
  8395. break;
  8396. }
  8397. result = verbalNumber(number, isFuture) + ' ' + result;
  8398. return result;
  8399. }
  8400. function verbalNumber(number, isFuture) {
  8401. return number < 10
  8402. ? isFuture
  8403. ? numbersFuture[number]
  8404. : numbersPast[number]
  8405. : number;
  8406. }
  8407. hooks.defineLocale('fi', {
  8408. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  8409. '_'
  8410. ),
  8411. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  8412. '_'
  8413. ),
  8414. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  8415. '_'
  8416. ),
  8417. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8418. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8419. longDateFormat: {
  8420. LT: 'HH.mm',
  8421. LTS: 'HH.mm.ss',
  8422. L: 'DD.MM.YYYY',
  8423. LL: 'Do MMMM[ta] YYYY',
  8424. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  8425. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  8426. l: 'D.M.YYYY',
  8427. ll: 'Do MMM YYYY',
  8428. lll: 'Do MMM YYYY, [klo] HH.mm',
  8429. llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
  8430. },
  8431. calendar: {
  8432. sameDay: '[tänään] [klo] LT',
  8433. nextDay: '[huomenna] [klo] LT',
  8434. nextWeek: 'dddd [klo] LT',
  8435. lastDay: '[eilen] [klo] LT',
  8436. lastWeek: '[viime] dddd[na] [klo] LT',
  8437. sameElse: 'L',
  8438. },
  8439. relativeTime: {
  8440. future: '%s päästä',
  8441. past: '%s sitten',
  8442. s: translate$2,
  8443. ss: translate$2,
  8444. m: translate$2,
  8445. mm: translate$2,
  8446. h: translate$2,
  8447. hh: translate$2,
  8448. d: translate$2,
  8449. dd: translate$2,
  8450. M: translate$2,
  8451. MM: translate$2,
  8452. y: translate$2,
  8453. yy: translate$2,
  8454. },
  8455. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8456. ordinal: '%d.',
  8457. week: {
  8458. dow: 1, // Monday is the first day of the week.
  8459. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8460. },
  8461. });
  8462. //! moment.js locale configuration
  8463. hooks.defineLocale('fil', {
  8464. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  8465. '_'
  8466. ),
  8467. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  8468. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  8469. '_'
  8470. ),
  8471. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  8472. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  8473. longDateFormat: {
  8474. LT: 'HH:mm',
  8475. LTS: 'HH:mm:ss',
  8476. L: 'MM/D/YYYY',
  8477. LL: 'MMMM D, YYYY',
  8478. LLL: 'MMMM D, YYYY HH:mm',
  8479. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  8480. },
  8481. calendar: {
  8482. sameDay: 'LT [ngayong araw]',
  8483. nextDay: '[Bukas ng] LT',
  8484. nextWeek: 'LT [sa susunod na] dddd',
  8485. lastDay: 'LT [kahapon]',
  8486. lastWeek: 'LT [noong nakaraang] dddd',
  8487. sameElse: 'L',
  8488. },
  8489. relativeTime: {
  8490. future: 'sa loob ng %s',
  8491. past: '%s ang nakalipas',
  8492. s: 'ilang segundo',
  8493. ss: '%d segundo',
  8494. m: 'isang minuto',
  8495. mm: '%d minuto',
  8496. h: 'isang oras',
  8497. hh: '%d oras',
  8498. d: 'isang araw',
  8499. dd: '%d araw',
  8500. M: 'isang buwan',
  8501. MM: '%d buwan',
  8502. y: 'isang taon',
  8503. yy: '%d taon',
  8504. },
  8505. dayOfMonthOrdinalParse: /\d{1,2}/,
  8506. ordinal: function (number) {
  8507. return number;
  8508. },
  8509. week: {
  8510. dow: 1, // Monday is the first day of the week.
  8511. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8512. },
  8513. });
  8514. //! moment.js locale configuration
  8515. hooks.defineLocale('fo', {
  8516. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  8517. '_'
  8518. ),
  8519. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8520. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  8521. '_'
  8522. ),
  8523. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  8524. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  8525. longDateFormat: {
  8526. LT: 'HH:mm',
  8527. LTS: 'HH:mm:ss',
  8528. L: 'DD/MM/YYYY',
  8529. LL: 'D MMMM YYYY',
  8530. LLL: 'D MMMM YYYY HH:mm',
  8531. LLLL: 'dddd D. MMMM, YYYY HH:mm',
  8532. },
  8533. calendar: {
  8534. sameDay: '[Í dag kl.] LT',
  8535. nextDay: '[Í morgin kl.] LT',
  8536. nextWeek: 'dddd [kl.] LT',
  8537. lastDay: '[Í gjár kl.] LT',
  8538. lastWeek: '[síðstu] dddd [kl] LT',
  8539. sameElse: 'L',
  8540. },
  8541. relativeTime: {
  8542. future: 'um %s',
  8543. past: '%s síðani',
  8544. s: 'fá sekund',
  8545. ss: '%d sekundir',
  8546. m: 'ein minuttur',
  8547. mm: '%d minuttir',
  8548. h: 'ein tími',
  8549. hh: '%d tímar',
  8550. d: 'ein dagur',
  8551. dd: '%d dagar',
  8552. M: 'ein mánaður',
  8553. MM: '%d mánaðir',
  8554. y: 'eitt ár',
  8555. yy: '%d ár',
  8556. },
  8557. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8558. ordinal: '%d.',
  8559. week: {
  8560. dow: 1, // Monday is the first day of the week.
  8561. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8562. },
  8563. });
  8564. //! moment.js locale configuration
  8565. hooks.defineLocale('fr-ca', {
  8566. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8567. '_'
  8568. ),
  8569. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8570. '_'
  8571. ),
  8572. monthsParseExact: true,
  8573. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8574. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8575. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8576. weekdaysParseExact: true,
  8577. longDateFormat: {
  8578. LT: 'HH:mm',
  8579. LTS: 'HH:mm:ss',
  8580. L: 'YYYY-MM-DD',
  8581. LL: 'D MMMM YYYY',
  8582. LLL: 'D MMMM YYYY HH:mm',
  8583. LLLL: 'dddd D MMMM YYYY HH:mm',
  8584. },
  8585. calendar: {
  8586. sameDay: '[Aujourd’hui à] LT',
  8587. nextDay: '[Demain à] LT',
  8588. nextWeek: 'dddd [à] LT',
  8589. lastDay: '[Hier à] LT',
  8590. lastWeek: 'dddd [dernier à] LT',
  8591. sameElse: 'L',
  8592. },
  8593. relativeTime: {
  8594. future: 'dans %s',
  8595. past: 'il y a %s',
  8596. s: 'quelques secondes',
  8597. ss: '%d secondes',
  8598. m: 'une minute',
  8599. mm: '%d minutes',
  8600. h: 'une heure',
  8601. hh: '%d heures',
  8602. d: 'un jour',
  8603. dd: '%d jours',
  8604. M: 'un mois',
  8605. MM: '%d mois',
  8606. y: 'un an',
  8607. yy: '%d ans',
  8608. },
  8609. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  8610. ordinal: function (number, period) {
  8611. switch (period) {
  8612. // Words with masculine grammatical gender: mois, trimestre, jour
  8613. default:
  8614. case 'M':
  8615. case 'Q':
  8616. case 'D':
  8617. case 'DDD':
  8618. case 'd':
  8619. return number + (number === 1 ? 'er' : 'e');
  8620. // Words with feminine grammatical gender: semaine
  8621. case 'w':
  8622. case 'W':
  8623. return number + (number === 1 ? 're' : 'e');
  8624. }
  8625. },
  8626. });
  8627. //! moment.js locale configuration
  8628. hooks.defineLocale('fr-ch', {
  8629. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8630. '_'
  8631. ),
  8632. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8633. '_'
  8634. ),
  8635. monthsParseExact: true,
  8636. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8637. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8638. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8639. weekdaysParseExact: true,
  8640. longDateFormat: {
  8641. LT: 'HH:mm',
  8642. LTS: 'HH:mm:ss',
  8643. L: 'DD.MM.YYYY',
  8644. LL: 'D MMMM YYYY',
  8645. LLL: 'D MMMM YYYY HH:mm',
  8646. LLLL: 'dddd D MMMM YYYY HH:mm',
  8647. },
  8648. calendar: {
  8649. sameDay: '[Aujourd’hui à] LT',
  8650. nextDay: '[Demain à] LT',
  8651. nextWeek: 'dddd [à] LT',
  8652. lastDay: '[Hier à] LT',
  8653. lastWeek: 'dddd [dernier à] LT',
  8654. sameElse: 'L',
  8655. },
  8656. relativeTime: {
  8657. future: 'dans %s',
  8658. past: 'il y a %s',
  8659. s: 'quelques secondes',
  8660. ss: '%d secondes',
  8661. m: 'une minute',
  8662. mm: '%d minutes',
  8663. h: 'une heure',
  8664. hh: '%d heures',
  8665. d: 'un jour',
  8666. dd: '%d jours',
  8667. M: 'un mois',
  8668. MM: '%d mois',
  8669. y: 'un an',
  8670. yy: '%d ans',
  8671. },
  8672. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  8673. ordinal: function (number, period) {
  8674. switch (period) {
  8675. // Words with masculine grammatical gender: mois, trimestre, jour
  8676. default:
  8677. case 'M':
  8678. case 'Q':
  8679. case 'D':
  8680. case 'DDD':
  8681. case 'd':
  8682. return number + (number === 1 ? 'er' : 'e');
  8683. // Words with feminine grammatical gender: semaine
  8684. case 'w':
  8685. case 'W':
  8686. return number + (number === 1 ? 're' : 'e');
  8687. }
  8688. },
  8689. week: {
  8690. dow: 1, // Monday is the first day of the week.
  8691. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8692. },
  8693. });
  8694. //! moment.js locale configuration
  8695. hooks.defineLocale('fr', {
  8696. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8697. '_'
  8698. ),
  8699. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8700. '_'
  8701. ),
  8702. monthsParseExact: true,
  8703. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8704. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8705. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8706. weekdaysParseExact: true,
  8707. longDateFormat: {
  8708. LT: 'HH:mm',
  8709. LTS: 'HH:mm:ss',
  8710. L: 'DD/MM/YYYY',
  8711. LL: 'D MMMM YYYY',
  8712. LLL: 'D MMMM YYYY HH:mm',
  8713. LLLL: 'dddd D MMMM YYYY HH:mm',
  8714. },
  8715. calendar: {
  8716. sameDay: '[Aujourd’hui à] LT',
  8717. nextDay: '[Demain à] LT',
  8718. nextWeek: 'dddd [à] LT',
  8719. lastDay: '[Hier à] LT',
  8720. lastWeek: 'dddd [dernier à] LT',
  8721. sameElse: 'L',
  8722. },
  8723. relativeTime: {
  8724. future: 'dans %s',
  8725. past: 'il y a %s',
  8726. s: 'quelques secondes',
  8727. ss: '%d secondes',
  8728. m: 'une minute',
  8729. mm: '%d minutes',
  8730. h: 'une heure',
  8731. hh: '%d heures',
  8732. d: 'un jour',
  8733. dd: '%d jours',
  8734. M: 'un mois',
  8735. MM: '%d mois',
  8736. y: 'un an',
  8737. yy: '%d ans',
  8738. },
  8739. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  8740. ordinal: function (number, period) {
  8741. switch (period) {
  8742. // TODO: Return 'e' when day of month > 1. Move this case inside
  8743. // block for masculine words below.
  8744. // See https://github.com/moment/moment/issues/3375
  8745. case 'D':
  8746. return number + (number === 1 ? 'er' : '');
  8747. // Words with masculine grammatical gender: mois, trimestre, jour
  8748. default:
  8749. case 'M':
  8750. case 'Q':
  8751. case 'DDD':
  8752. case 'd':
  8753. return number + (number === 1 ? 'er' : 'e');
  8754. // Words with feminine grammatical gender: semaine
  8755. case 'w':
  8756. case 'W':
  8757. return number + (number === 1 ? 're' : 'e');
  8758. }
  8759. },
  8760. week: {
  8761. dow: 1, // Monday is the first day of the week.
  8762. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8763. },
  8764. });
  8765. //! moment.js locale configuration
  8766. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
  8767. '_'
  8768. ),
  8769. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
  8770. '_'
  8771. );
  8772. hooks.defineLocale('fy', {
  8773. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  8774. '_'
  8775. ),
  8776. monthsShort: function (m, format) {
  8777. if (!m) {
  8778. return monthsShortWithDots;
  8779. } else if (/-MMM-/.test(format)) {
  8780. return monthsShortWithoutDots[m.month()];
  8781. } else {
  8782. return monthsShortWithDots[m.month()];
  8783. }
  8784. },
  8785. monthsParseExact: true,
  8786. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  8787. '_'
  8788. ),
  8789. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  8790. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  8791. weekdaysParseExact: true,
  8792. longDateFormat: {
  8793. LT: 'HH:mm',
  8794. LTS: 'HH:mm:ss',
  8795. L: 'DD-MM-YYYY',
  8796. LL: 'D MMMM YYYY',
  8797. LLL: 'D MMMM YYYY HH:mm',
  8798. LLLL: 'dddd D MMMM YYYY HH:mm',
  8799. },
  8800. calendar: {
  8801. sameDay: '[hjoed om] LT',
  8802. nextDay: '[moarn om] LT',
  8803. nextWeek: 'dddd [om] LT',
  8804. lastDay: '[juster om] LT',
  8805. lastWeek: '[ôfrûne] dddd [om] LT',
  8806. sameElse: 'L',
  8807. },
  8808. relativeTime: {
  8809. future: 'oer %s',
  8810. past: '%s lyn',
  8811. s: 'in pear sekonden',
  8812. ss: '%d sekonden',
  8813. m: 'ien minút',
  8814. mm: '%d minuten',
  8815. h: 'ien oere',
  8816. hh: '%d oeren',
  8817. d: 'ien dei',
  8818. dd: '%d dagen',
  8819. M: 'ien moanne',
  8820. MM: '%d moannen',
  8821. y: 'ien jier',
  8822. yy: '%d jierren',
  8823. },
  8824. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  8825. ordinal: function (number) {
  8826. return (
  8827. number +
  8828. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  8829. );
  8830. },
  8831. week: {
  8832. dow: 1, // Monday is the first day of the week.
  8833. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8834. },
  8835. });
  8836. //! moment.js locale configuration
  8837. var months$5 = [
  8838. 'Eanáir',
  8839. 'Feabhra',
  8840. 'Márta',
  8841. 'Aibreán',
  8842. 'Bealtaine',
  8843. 'Meitheamh',
  8844. 'Iúil',
  8845. 'Lúnasa',
  8846. 'Meán Fómhair',
  8847. 'Deireadh Fómhair',
  8848. 'Samhain',
  8849. 'Nollaig',
  8850. ],
  8851. monthsShort$4 = [
  8852. 'Ean',
  8853. 'Feabh',
  8854. 'Márt',
  8855. 'Aib',
  8856. 'Beal',
  8857. 'Meith',
  8858. 'Iúil',
  8859. 'Lún',
  8860. 'M.F.',
  8861. 'D.F.',
  8862. 'Samh',
  8863. 'Noll',
  8864. ],
  8865. weekdays$1 = [
  8866. 'Dé Domhnaigh',
  8867. 'Dé Luain',
  8868. 'Dé Máirt',
  8869. 'Dé Céadaoin',
  8870. 'Déardaoin',
  8871. 'Dé hAoine',
  8872. 'Dé Sathairn',
  8873. ],
  8874. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  8875. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  8876. hooks.defineLocale('ga', {
  8877. months: months$5,
  8878. monthsShort: monthsShort$4,
  8879. monthsParseExact: true,
  8880. weekdays: weekdays$1,
  8881. weekdaysShort: weekdaysShort,
  8882. weekdaysMin: weekdaysMin,
  8883. longDateFormat: {
  8884. LT: 'HH:mm',
  8885. LTS: 'HH:mm:ss',
  8886. L: 'DD/MM/YYYY',
  8887. LL: 'D MMMM YYYY',
  8888. LLL: 'D MMMM YYYY HH:mm',
  8889. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8890. },
  8891. calendar: {
  8892. sameDay: '[Inniu ag] LT',
  8893. nextDay: '[Amárach ag] LT',
  8894. nextWeek: 'dddd [ag] LT',
  8895. lastDay: '[Inné ag] LT',
  8896. lastWeek: 'dddd [seo caite] [ag] LT',
  8897. sameElse: 'L',
  8898. },
  8899. relativeTime: {
  8900. future: 'i %s',
  8901. past: '%s ó shin',
  8902. s: 'cúpla soicind',
  8903. ss: '%d soicind',
  8904. m: 'nóiméad',
  8905. mm: '%d nóiméad',
  8906. h: 'uair an chloig',
  8907. hh: '%d uair an chloig',
  8908. d: 'lá',
  8909. dd: '%d lá',
  8910. M: 'mí',
  8911. MM: '%d míonna',
  8912. y: 'bliain',
  8913. yy: '%d bliain',
  8914. },
  8915. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  8916. ordinal: function (number) {
  8917. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  8918. return number + output;
  8919. },
  8920. week: {
  8921. dow: 1, // Monday is the first day of the week.
  8922. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8923. },
  8924. });
  8925. //! moment.js locale configuration
  8926. var months$6 = [
  8927. 'Am Faoilleach',
  8928. 'An Gearran',
  8929. 'Am Màrt',
  8930. 'An Giblean',
  8931. 'An Cèitean',
  8932. 'An t-Ògmhios',
  8933. 'An t-Iuchar',
  8934. 'An Lùnastal',
  8935. 'An t-Sultain',
  8936. 'An Dàmhair',
  8937. 'An t-Samhain',
  8938. 'An Dùbhlachd',
  8939. ],
  8940. monthsShort$5 = [
  8941. 'Faoi',
  8942. 'Gear',
  8943. 'Màrt',
  8944. 'Gibl',
  8945. 'Cèit',
  8946. 'Ògmh',
  8947. 'Iuch',
  8948. 'Lùn',
  8949. 'Sult',
  8950. 'Dàmh',
  8951. 'Samh',
  8952. 'Dùbh',
  8953. ],
  8954. weekdays$2 = [
  8955. 'Didòmhnaich',
  8956. 'Diluain',
  8957. 'Dimàirt',
  8958. 'Diciadain',
  8959. 'Diardaoin',
  8960. 'Dihaoine',
  8961. 'Disathairne',
  8962. ],
  8963. weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  8964. weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  8965. hooks.defineLocale('gd', {
  8966. months: months$6,
  8967. monthsShort: monthsShort$5,
  8968. monthsParseExact: true,
  8969. weekdays: weekdays$2,
  8970. weekdaysShort: weekdaysShort$1,
  8971. weekdaysMin: weekdaysMin$1,
  8972. longDateFormat: {
  8973. LT: 'HH:mm',
  8974. LTS: 'HH:mm:ss',
  8975. L: 'DD/MM/YYYY',
  8976. LL: 'D MMMM YYYY',
  8977. LLL: 'D MMMM YYYY HH:mm',
  8978. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8979. },
  8980. calendar: {
  8981. sameDay: '[An-diugh aig] LT',
  8982. nextDay: '[A-màireach aig] LT',
  8983. nextWeek: 'dddd [aig] LT',
  8984. lastDay: '[An-dè aig] LT',
  8985. lastWeek: 'dddd [seo chaidh] [aig] LT',
  8986. sameElse: 'L',
  8987. },
  8988. relativeTime: {
  8989. future: 'ann an %s',
  8990. past: 'bho chionn %s',
  8991. s: 'beagan diogan',
  8992. ss: '%d diogan',
  8993. m: 'mionaid',
  8994. mm: '%d mionaidean',
  8995. h: 'uair',
  8996. hh: '%d uairean',
  8997. d: 'latha',
  8998. dd: '%d latha',
  8999. M: 'mìos',
  9000. MM: '%d mìosan',
  9001. y: 'bliadhna',
  9002. yy: '%d bliadhna',
  9003. },
  9004. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9005. ordinal: function (number) {
  9006. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9007. return number + output;
  9008. },
  9009. week: {
  9010. dow: 1, // Monday is the first day of the week.
  9011. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9012. },
  9013. });
  9014. //! moment.js locale configuration
  9015. hooks.defineLocale('gl', {
  9016. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  9017. '_'
  9018. ),
  9019. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  9020. '_'
  9021. ),
  9022. monthsParseExact: true,
  9023. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9024. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9025. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9026. weekdaysParseExact: true,
  9027. longDateFormat: {
  9028. LT: 'H:mm',
  9029. LTS: 'H:mm:ss',
  9030. L: 'DD/MM/YYYY',
  9031. LL: 'D [de] MMMM [de] YYYY',
  9032. LLL: 'D [de] MMMM [de] YYYY H:mm',
  9033. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  9034. },
  9035. calendar: {
  9036. sameDay: function () {
  9037. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9038. },
  9039. nextDay: function () {
  9040. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9041. },
  9042. nextWeek: function () {
  9043. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  9044. },
  9045. lastDay: function () {
  9046. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  9047. },
  9048. lastWeek: function () {
  9049. return (
  9050. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  9051. );
  9052. },
  9053. sameElse: 'L',
  9054. },
  9055. relativeTime: {
  9056. future: function (str) {
  9057. if (str.indexOf('un') === 0) {
  9058. return 'n' + str;
  9059. }
  9060. return 'en ' + str;
  9061. },
  9062. past: 'hai %s',
  9063. s: 'uns segundos',
  9064. ss: '%d segundos',
  9065. m: 'un minuto',
  9066. mm: '%d minutos',
  9067. h: 'unha hora',
  9068. hh: '%d horas',
  9069. d: 'un día',
  9070. dd: '%d días',
  9071. M: 'un mes',
  9072. MM: '%d meses',
  9073. y: 'un ano',
  9074. yy: '%d anos',
  9075. },
  9076. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9077. ordinal: '%dº',
  9078. week: {
  9079. dow: 1, // Monday is the first day of the week.
  9080. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9081. },
  9082. });
  9083. //! moment.js locale configuration
  9084. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  9085. var format = {
  9086. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  9087. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  9088. m: ['एका मिणटान', 'एक मिनूट'],
  9089. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  9090. h: ['एका वरान', 'एक वर'],
  9091. hh: [number + ' वरांनी', number + ' वरां'],
  9092. d: ['एका दिसान', 'एक दीस'],
  9093. dd: [number + ' दिसांनी', number + ' दीस'],
  9094. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  9095. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  9096. y: ['एका वर्सान', 'एक वर्स'],
  9097. yy: [number + ' वर्सांनी', number + ' वर्सां'],
  9098. };
  9099. return isFuture ? format[key][0] : format[key][1];
  9100. }
  9101. hooks.defineLocale('gom-deva', {
  9102. months: {
  9103. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  9104. '_'
  9105. ),
  9106. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  9107. '_'
  9108. ),
  9109. isFormat: /MMMM(\s)+D[oD]?/,
  9110. },
  9111. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  9112. '_'
  9113. ),
  9114. monthsParseExact: true,
  9115. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  9116. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  9117. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  9118. weekdaysParseExact: true,
  9119. longDateFormat: {
  9120. LT: 'A h:mm [वाजतां]',
  9121. LTS: 'A h:mm:ss [वाजतां]',
  9122. L: 'DD-MM-YYYY',
  9123. LL: 'D MMMM YYYY',
  9124. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  9125. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  9126. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
  9127. },
  9128. calendar: {
  9129. sameDay: '[आयज] LT',
  9130. nextDay: '[फाल्यां] LT',
  9131. nextWeek: '[फुडलो] dddd[,] LT',
  9132. lastDay: '[काल] LT',
  9133. lastWeek: '[फाटलो] dddd[,] LT',
  9134. sameElse: 'L',
  9135. },
  9136. relativeTime: {
  9137. future: '%s',
  9138. past: '%s आदीं',
  9139. s: processRelativeTime$4,
  9140. ss: processRelativeTime$4,
  9141. m: processRelativeTime$4,
  9142. mm: processRelativeTime$4,
  9143. h: processRelativeTime$4,
  9144. hh: processRelativeTime$4,
  9145. d: processRelativeTime$4,
  9146. dd: processRelativeTime$4,
  9147. M: processRelativeTime$4,
  9148. MM: processRelativeTime$4,
  9149. y: processRelativeTime$4,
  9150. yy: processRelativeTime$4,
  9151. },
  9152. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  9153. ordinal: function (number, period) {
  9154. switch (period) {
  9155. // the ordinal 'वेर' only applies to day of the month
  9156. case 'D':
  9157. return number + 'वेर';
  9158. default:
  9159. case 'M':
  9160. case 'Q':
  9161. case 'DDD':
  9162. case 'd':
  9163. case 'w':
  9164. case 'W':
  9165. return number;
  9166. }
  9167. },
  9168. week: {
  9169. dow: 1, // Monday is the first day of the week.
  9170. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9171. },
  9172. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  9173. meridiemHour: function (hour, meridiem) {
  9174. if (hour === 12) {
  9175. hour = 0;
  9176. }
  9177. if (meridiem === 'राती') {
  9178. return hour < 4 ? hour : hour + 12;
  9179. } else if (meridiem === 'सकाळीं') {
  9180. return hour;
  9181. } else if (meridiem === 'दनपारां') {
  9182. return hour > 12 ? hour : hour + 12;
  9183. } else if (meridiem === 'सांजे') {
  9184. return hour + 12;
  9185. }
  9186. },
  9187. meridiem: function (hour, minute, isLower) {
  9188. if (hour < 4) {
  9189. return 'राती';
  9190. } else if (hour < 12) {
  9191. return 'सकाळीं';
  9192. } else if (hour < 16) {
  9193. return 'दनपारां';
  9194. } else if (hour < 20) {
  9195. return 'सांजे';
  9196. } else {
  9197. return 'राती';
  9198. }
  9199. },
  9200. });
  9201. //! moment.js locale configuration
  9202. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9203. var format = {
  9204. s: ['thoddea sekondamni', 'thodde sekond'],
  9205. ss: [number + ' sekondamni', number + ' sekond'],
  9206. m: ['eka mintan', 'ek minut'],
  9207. mm: [number + ' mintamni', number + ' mintam'],
  9208. h: ['eka voran', 'ek vor'],
  9209. hh: [number + ' voramni', number + ' voram'],
  9210. d: ['eka disan', 'ek dis'],
  9211. dd: [number + ' disamni', number + ' dis'],
  9212. M: ['eka mhoinean', 'ek mhoino'],
  9213. MM: [number + ' mhoineamni', number + ' mhoine'],
  9214. y: ['eka vorsan', 'ek voros'],
  9215. yy: [number + ' vorsamni', number + ' vorsam'],
  9216. };
  9217. return isFuture ? format[key][0] : format[key][1];
  9218. }
  9219. hooks.defineLocale('gom-latn', {
  9220. months: {
  9221. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  9222. '_'
  9223. ),
  9224. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  9225. '_'
  9226. ),
  9227. isFormat: /MMMM(\s)+D[oD]?/,
  9228. },
  9229. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
  9230. '_'
  9231. ),
  9232. monthsParseExact: true,
  9233. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  9234. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9235. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9236. weekdaysParseExact: true,
  9237. longDateFormat: {
  9238. LT: 'A h:mm [vazta]',
  9239. LTS: 'A h:mm:ss [vazta]',
  9240. L: 'DD-MM-YYYY',
  9241. LL: 'D MMMM YYYY',
  9242. LLL: 'D MMMM YYYY A h:mm [vazta]',
  9243. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  9244. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  9245. },
  9246. calendar: {
  9247. sameDay: '[Aiz] LT',
  9248. nextDay: '[Faleam] LT',
  9249. nextWeek: '[Fuddlo] dddd[,] LT',
  9250. lastDay: '[Kal] LT',
  9251. lastWeek: '[Fattlo] dddd[,] LT',
  9252. sameElse: 'L',
  9253. },
  9254. relativeTime: {
  9255. future: '%s',
  9256. past: '%s adim',
  9257. s: processRelativeTime$5,
  9258. ss: processRelativeTime$5,
  9259. m: processRelativeTime$5,
  9260. mm: processRelativeTime$5,
  9261. h: processRelativeTime$5,
  9262. hh: processRelativeTime$5,
  9263. d: processRelativeTime$5,
  9264. dd: processRelativeTime$5,
  9265. M: processRelativeTime$5,
  9266. MM: processRelativeTime$5,
  9267. y: processRelativeTime$5,
  9268. yy: processRelativeTime$5,
  9269. },
  9270. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  9271. ordinal: function (number, period) {
  9272. switch (period) {
  9273. // the ordinal 'er' only applies to day of the month
  9274. case 'D':
  9275. return number + 'er';
  9276. default:
  9277. case 'M':
  9278. case 'Q':
  9279. case 'DDD':
  9280. case 'd':
  9281. case 'w':
  9282. case 'W':
  9283. return number;
  9284. }
  9285. },
  9286. week: {
  9287. dow: 1, // Monday is the first day of the week.
  9288. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9289. },
  9290. meridiemParse: /rati|sokallim|donparam|sanje/,
  9291. meridiemHour: function (hour, meridiem) {
  9292. if (hour === 12) {
  9293. hour = 0;
  9294. }
  9295. if (meridiem === 'rati') {
  9296. return hour < 4 ? hour : hour + 12;
  9297. } else if (meridiem === 'sokallim') {
  9298. return hour;
  9299. } else if (meridiem === 'donparam') {
  9300. return hour > 12 ? hour : hour + 12;
  9301. } else if (meridiem === 'sanje') {
  9302. return hour + 12;
  9303. }
  9304. },
  9305. meridiem: function (hour, minute, isLower) {
  9306. if (hour < 4) {
  9307. return 'rati';
  9308. } else if (hour < 12) {
  9309. return 'sokallim';
  9310. } else if (hour < 16) {
  9311. return 'donparam';
  9312. } else if (hour < 20) {
  9313. return 'sanje';
  9314. } else {
  9315. return 'rati';
  9316. }
  9317. },
  9318. });
  9319. //! moment.js locale configuration
  9320. var symbolMap$6 = {
  9321. '1': '૧',
  9322. '2': '૨',
  9323. '3': '૩',
  9324. '4': '૪',
  9325. '5': '૫',
  9326. '6': '૬',
  9327. '7': '૭',
  9328. '8': '૮',
  9329. '9': '૯',
  9330. '0': '૦',
  9331. },
  9332. numberMap$5 = {
  9333. '૧': '1',
  9334. '૨': '2',
  9335. '૩': '3',
  9336. '૪': '4',
  9337. '૫': '5',
  9338. '૬': '6',
  9339. '૭': '7',
  9340. '૮': '8',
  9341. '૯': '9',
  9342. '૦': '0',
  9343. };
  9344. hooks.defineLocale('gu', {
  9345. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  9346. '_'
  9347. ),
  9348. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  9349. '_'
  9350. ),
  9351. monthsParseExact: true,
  9352. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  9353. '_'
  9354. ),
  9355. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  9356. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  9357. longDateFormat: {
  9358. LT: 'A h:mm વાગ્યે',
  9359. LTS: 'A h:mm:ss વાગ્યે',
  9360. L: 'DD/MM/YYYY',
  9361. LL: 'D MMMM YYYY',
  9362. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  9363. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
  9364. },
  9365. calendar: {
  9366. sameDay: '[આજ] LT',
  9367. nextDay: '[કાલે] LT',
  9368. nextWeek: 'dddd, LT',
  9369. lastDay: '[ગઇકાલે] LT',
  9370. lastWeek: '[પાછલા] dddd, LT',
  9371. sameElse: 'L',
  9372. },
  9373. relativeTime: {
  9374. future: '%s મા',
  9375. past: '%s પેહલા',
  9376. s: 'અમુક પળો',
  9377. ss: '%d સેકંડ',
  9378. m: 'એક મિનિટ',
  9379. mm: '%d મિનિટ',
  9380. h: 'એક કલાક',
  9381. hh: '%d કલાક',
  9382. d: 'એક દિવસ',
  9383. dd: '%d દિવસ',
  9384. M: 'એક મહિનો',
  9385. MM: '%d મહિનો',
  9386. y: 'એક વર્ષ',
  9387. yy: '%d વર્ષ',
  9388. },
  9389. preparse: function (string) {
  9390. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  9391. return numberMap$5[match];
  9392. });
  9393. },
  9394. postformat: function (string) {
  9395. return string.replace(/\d/g, function (match) {
  9396. return symbolMap$6[match];
  9397. });
  9398. },
  9399. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  9400. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  9401. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  9402. meridiemHour: function (hour, meridiem) {
  9403. if (hour === 12) {
  9404. hour = 0;
  9405. }
  9406. if (meridiem === 'રાત') {
  9407. return hour < 4 ? hour : hour + 12;
  9408. } else if (meridiem === 'સવાર') {
  9409. return hour;
  9410. } else if (meridiem === 'બપોર') {
  9411. return hour >= 10 ? hour : hour + 12;
  9412. } else if (meridiem === 'સાંજ') {
  9413. return hour + 12;
  9414. }
  9415. },
  9416. meridiem: function (hour, minute, isLower) {
  9417. if (hour < 4) {
  9418. return 'રાત';
  9419. } else if (hour < 10) {
  9420. return 'સવાર';
  9421. } else if (hour < 17) {
  9422. return 'બપોર';
  9423. } else if (hour < 20) {
  9424. return 'સાંજ';
  9425. } else {
  9426. return 'રાત';
  9427. }
  9428. },
  9429. week: {
  9430. dow: 0, // Sunday is the first day of the week.
  9431. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9432. },
  9433. });
  9434. //! moment.js locale configuration
  9435. hooks.defineLocale('he', {
  9436. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  9437. '_'
  9438. ),
  9439. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
  9440. '_'
  9441. ),
  9442. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  9443. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  9444. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  9445. longDateFormat: {
  9446. LT: 'HH:mm',
  9447. LTS: 'HH:mm:ss',
  9448. L: 'DD/MM/YYYY',
  9449. LL: 'D [ב]MMMM YYYY',
  9450. LLL: 'D [ב]MMMM YYYY HH:mm',
  9451. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  9452. l: 'D/M/YYYY',
  9453. ll: 'D MMM YYYY',
  9454. lll: 'D MMM YYYY HH:mm',
  9455. llll: 'ddd, D MMM YYYY HH:mm',
  9456. },
  9457. calendar: {
  9458. sameDay: '[היום ב־]LT',
  9459. nextDay: '[מחר ב־]LT',
  9460. nextWeek: 'dddd [בשעה] LT',
  9461. lastDay: '[אתמול ב־]LT',
  9462. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  9463. sameElse: 'L',
  9464. },
  9465. relativeTime: {
  9466. future: 'בעוד %s',
  9467. past: 'לפני %s',
  9468. s: 'מספר שניות',
  9469. ss: '%d שניות',
  9470. m: 'דקה',
  9471. mm: '%d דקות',
  9472. h: 'שעה',
  9473. hh: function (number) {
  9474. if (number === 2) {
  9475. return 'שעתיים';
  9476. }
  9477. return number + ' שעות';
  9478. },
  9479. d: 'יום',
  9480. dd: function (number) {
  9481. if (number === 2) {
  9482. return 'יומיים';
  9483. }
  9484. return number + ' ימים';
  9485. },
  9486. M: 'חודש',
  9487. MM: function (number) {
  9488. if (number === 2) {
  9489. return 'חודשיים';
  9490. }
  9491. return number + ' חודשים';
  9492. },
  9493. y: 'שנה',
  9494. yy: function (number) {
  9495. if (number === 2) {
  9496. return 'שנתיים';
  9497. } else if (number % 10 === 0 && number !== 10) {
  9498. return number + ' שנה';
  9499. }
  9500. return number + ' שנים';
  9501. },
  9502. },
  9503. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  9504. isPM: function (input) {
  9505. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  9506. },
  9507. meridiem: function (hour, minute, isLower) {
  9508. if (hour < 5) {
  9509. return 'לפנות בוקר';
  9510. } else if (hour < 10) {
  9511. return 'בבוקר';
  9512. } else if (hour < 12) {
  9513. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  9514. } else if (hour < 18) {
  9515. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  9516. } else {
  9517. return 'בערב';
  9518. }
  9519. },
  9520. });
  9521. //! moment.js locale configuration
  9522. var symbolMap$7 = {
  9523. '1': '१',
  9524. '2': '२',
  9525. '3': '३',
  9526. '4': '४',
  9527. '5': '५',
  9528. '6': '६',
  9529. '7': '७',
  9530. '8': '८',
  9531. '9': '९',
  9532. '0': '०',
  9533. },
  9534. numberMap$6 = {
  9535. '१': '1',
  9536. '२': '2',
  9537. '३': '3',
  9538. '४': '4',
  9539. '५': '5',
  9540. '६': '6',
  9541. '७': '7',
  9542. '८': '8',
  9543. '९': '9',
  9544. '०': '0',
  9545. };
  9546. hooks.defineLocale('hi', {
  9547. months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  9548. '_'
  9549. ),
  9550. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
  9551. '_'
  9552. ),
  9553. monthsParseExact: true,
  9554. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9555. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  9556. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9557. longDateFormat: {
  9558. LT: 'A h:mm बजे',
  9559. LTS: 'A h:mm:ss बजे',
  9560. L: 'DD/MM/YYYY',
  9561. LL: 'D MMMM YYYY',
  9562. LLL: 'D MMMM YYYY, A h:mm बजे',
  9563. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
  9564. },
  9565. calendar: {
  9566. sameDay: '[आज] LT',
  9567. nextDay: '[कल] LT',
  9568. nextWeek: 'dddd, LT',
  9569. lastDay: '[कल] LT',
  9570. lastWeek: '[पिछले] dddd, LT',
  9571. sameElse: 'L',
  9572. },
  9573. relativeTime: {
  9574. future: '%s में',
  9575. past: '%s पहले',
  9576. s: 'कुछ ही क्षण',
  9577. ss: '%d सेकंड',
  9578. m: 'एक मिनट',
  9579. mm: '%d मिनट',
  9580. h: 'एक घंटा',
  9581. hh: '%d घंटे',
  9582. d: 'एक दिन',
  9583. dd: '%d दिन',
  9584. M: 'एक महीने',
  9585. MM: '%d महीने',
  9586. y: 'एक वर्ष',
  9587. yy: '%d वर्ष',
  9588. },
  9589. preparse: function (string) {
  9590. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9591. return numberMap$6[match];
  9592. });
  9593. },
  9594. postformat: function (string) {
  9595. return string.replace(/\d/g, function (match) {
  9596. return symbolMap$7[match];
  9597. });
  9598. },
  9599. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  9600. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  9601. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  9602. meridiemHour: function (hour, meridiem) {
  9603. if (hour === 12) {
  9604. hour = 0;
  9605. }
  9606. if (meridiem === 'रात') {
  9607. return hour < 4 ? hour : hour + 12;
  9608. } else if (meridiem === 'सुबह') {
  9609. return hour;
  9610. } else if (meridiem === 'दोपहर') {
  9611. return hour >= 10 ? hour : hour + 12;
  9612. } else if (meridiem === 'शाम') {
  9613. return hour + 12;
  9614. }
  9615. },
  9616. meridiem: function (hour, minute, isLower) {
  9617. if (hour < 4) {
  9618. return 'रात';
  9619. } else if (hour < 10) {
  9620. return 'सुबह';
  9621. } else if (hour < 17) {
  9622. return 'दोपहर';
  9623. } else if (hour < 20) {
  9624. return 'शाम';
  9625. } else {
  9626. return 'रात';
  9627. }
  9628. },
  9629. week: {
  9630. dow: 0, // Sunday is the first day of the week.
  9631. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9632. },
  9633. });
  9634. //! moment.js locale configuration
  9635. function translate$3(number, withoutSuffix, key) {
  9636. var result = number + ' ';
  9637. switch (key) {
  9638. case 'ss':
  9639. if (number === 1) {
  9640. result += 'sekunda';
  9641. } else if (number === 2 || number === 3 || number === 4) {
  9642. result += 'sekunde';
  9643. } else {
  9644. result += 'sekundi';
  9645. }
  9646. return result;
  9647. case 'm':
  9648. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  9649. case 'mm':
  9650. if (number === 1) {
  9651. result += 'minuta';
  9652. } else if (number === 2 || number === 3 || number === 4) {
  9653. result += 'minute';
  9654. } else {
  9655. result += 'minuta';
  9656. }
  9657. return result;
  9658. case 'h':
  9659. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  9660. case 'hh':
  9661. if (number === 1) {
  9662. result += 'sat';
  9663. } else if (number === 2 || number === 3 || number === 4) {
  9664. result += 'sata';
  9665. } else {
  9666. result += 'sati';
  9667. }
  9668. return result;
  9669. case 'dd':
  9670. if (number === 1) {
  9671. result += 'dan';
  9672. } else {
  9673. result += 'dana';
  9674. }
  9675. return result;
  9676. case 'MM':
  9677. if (number === 1) {
  9678. result += 'mjesec';
  9679. } else if (number === 2 || number === 3 || number === 4) {
  9680. result += 'mjeseca';
  9681. } else {
  9682. result += 'mjeseci';
  9683. }
  9684. return result;
  9685. case 'yy':
  9686. if (number === 1) {
  9687. result += 'godina';
  9688. } else if (number === 2 || number === 3 || number === 4) {
  9689. result += 'godine';
  9690. } else {
  9691. result += 'godina';
  9692. }
  9693. return result;
  9694. }
  9695. }
  9696. hooks.defineLocale('hr', {
  9697. months: {
  9698. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  9699. '_'
  9700. ),
  9701. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  9702. '_'
  9703. ),
  9704. },
  9705. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  9706. '_'
  9707. ),
  9708. monthsParseExact: true,
  9709. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  9710. '_'
  9711. ),
  9712. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  9713. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  9714. weekdaysParseExact: true,
  9715. longDateFormat: {
  9716. LT: 'H:mm',
  9717. LTS: 'H:mm:ss',
  9718. L: 'DD.MM.YYYY',
  9719. LL: 'Do MMMM YYYY',
  9720. LLL: 'Do MMMM YYYY H:mm',
  9721. LLLL: 'dddd, Do MMMM YYYY H:mm',
  9722. },
  9723. calendar: {
  9724. sameDay: '[danas u] LT',
  9725. nextDay: '[sutra u] LT',
  9726. nextWeek: function () {
  9727. switch (this.day()) {
  9728. case 0:
  9729. return '[u] [nedjelju] [u] LT';
  9730. case 3:
  9731. return '[u] [srijedu] [u] LT';
  9732. case 6:
  9733. return '[u] [subotu] [u] LT';
  9734. case 1:
  9735. case 2:
  9736. case 4:
  9737. case 5:
  9738. return '[u] dddd [u] LT';
  9739. }
  9740. },
  9741. lastDay: '[jučer u] LT',
  9742. lastWeek: function () {
  9743. switch (this.day()) {
  9744. case 0:
  9745. return '[prošlu] [nedjelju] [u] LT';
  9746. case 3:
  9747. return '[prošlu] [srijedu] [u] LT';
  9748. case 6:
  9749. return '[prošle] [subote] [u] LT';
  9750. case 1:
  9751. case 2:
  9752. case 4:
  9753. case 5:
  9754. return '[prošli] dddd [u] LT';
  9755. }
  9756. },
  9757. sameElse: 'L',
  9758. },
  9759. relativeTime: {
  9760. future: 'za %s',
  9761. past: 'prije %s',
  9762. s: 'par sekundi',
  9763. ss: translate$3,
  9764. m: translate$3,
  9765. mm: translate$3,
  9766. h: translate$3,
  9767. hh: translate$3,
  9768. d: 'dan',
  9769. dd: translate$3,
  9770. M: 'mjesec',
  9771. MM: translate$3,
  9772. y: 'godinu',
  9773. yy: translate$3,
  9774. },
  9775. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9776. ordinal: '%d.',
  9777. week: {
  9778. dow: 1, // Monday is the first day of the week.
  9779. doy: 7, // The week that contains Jan 7th is the first week of the year.
  9780. },
  9781. });
  9782. //! moment.js locale configuration
  9783. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
  9784. ' '
  9785. );
  9786. function translate$4(number, withoutSuffix, key, isFuture) {
  9787. var num = number;
  9788. switch (key) {
  9789. case 's':
  9790. return isFuture || withoutSuffix
  9791. ? 'néhány másodperc'
  9792. : 'néhány másodperce';
  9793. case 'ss':
  9794. return num + (isFuture || withoutSuffix)
  9795. ? ' másodperc'
  9796. : ' másodperce';
  9797. case 'm':
  9798. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9799. case 'mm':
  9800. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9801. case 'h':
  9802. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9803. case 'hh':
  9804. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9805. case 'd':
  9806. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  9807. case 'dd':
  9808. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  9809. case 'M':
  9810. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  9811. case 'MM':
  9812. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  9813. case 'y':
  9814. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  9815. case 'yy':
  9816. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  9817. }
  9818. return '';
  9819. }
  9820. function week(isFuture) {
  9821. return (
  9822. (isFuture ? '' : '[múlt] ') +
  9823. '[' +
  9824. weekEndings[this.day()] +
  9825. '] LT[-kor]'
  9826. );
  9827. }
  9828. hooks.defineLocale('hu', {
  9829. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  9830. '_'
  9831. ),
  9832. monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(
  9833. '_'
  9834. ),
  9835. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  9836. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  9837. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  9838. longDateFormat: {
  9839. LT: 'H:mm',
  9840. LTS: 'H:mm:ss',
  9841. L: 'YYYY.MM.DD.',
  9842. LL: 'YYYY. MMMM D.',
  9843. LLL: 'YYYY. MMMM D. H:mm',
  9844. LLLL: 'YYYY. MMMM D., dddd H:mm',
  9845. },
  9846. meridiemParse: /de|du/i,
  9847. isPM: function (input) {
  9848. return input.charAt(1).toLowerCase() === 'u';
  9849. },
  9850. meridiem: function (hours, minutes, isLower) {
  9851. if (hours < 12) {
  9852. return isLower === true ? 'de' : 'DE';
  9853. } else {
  9854. return isLower === true ? 'du' : 'DU';
  9855. }
  9856. },
  9857. calendar: {
  9858. sameDay: '[ma] LT[-kor]',
  9859. nextDay: '[holnap] LT[-kor]',
  9860. nextWeek: function () {
  9861. return week.call(this, true);
  9862. },
  9863. lastDay: '[tegnap] LT[-kor]',
  9864. lastWeek: function () {
  9865. return week.call(this, false);
  9866. },
  9867. sameElse: 'L',
  9868. },
  9869. relativeTime: {
  9870. future: '%s múlva',
  9871. past: '%s',
  9872. s: translate$4,
  9873. ss: translate$4,
  9874. m: translate$4,
  9875. mm: translate$4,
  9876. h: translate$4,
  9877. hh: translate$4,
  9878. d: translate$4,
  9879. dd: translate$4,
  9880. M: translate$4,
  9881. MM: translate$4,
  9882. y: translate$4,
  9883. yy: translate$4,
  9884. },
  9885. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9886. ordinal: '%d.',
  9887. week: {
  9888. dow: 1, // Monday is the first day of the week.
  9889. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9890. },
  9891. });
  9892. //! moment.js locale configuration
  9893. hooks.defineLocale('hy-am', {
  9894. months: {
  9895. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  9896. '_'
  9897. ),
  9898. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  9899. '_'
  9900. ),
  9901. },
  9902. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  9903. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  9904. '_'
  9905. ),
  9906. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  9907. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  9908. longDateFormat: {
  9909. LT: 'HH:mm',
  9910. LTS: 'HH:mm:ss',
  9911. L: 'DD.MM.YYYY',
  9912. LL: 'D MMMM YYYY թ.',
  9913. LLL: 'D MMMM YYYY թ., HH:mm',
  9914. LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
  9915. },
  9916. calendar: {
  9917. sameDay: '[այսօր] LT',
  9918. nextDay: '[վաղը] LT',
  9919. lastDay: '[երեկ] LT',
  9920. nextWeek: function () {
  9921. return 'dddd [օրը ժամը] LT';
  9922. },
  9923. lastWeek: function () {
  9924. return '[անցած] dddd [օրը ժամը] LT';
  9925. },
  9926. sameElse: 'L',
  9927. },
  9928. relativeTime: {
  9929. future: '%s հետո',
  9930. past: '%s առաջ',
  9931. s: 'մի քանի վայրկյան',
  9932. ss: '%d վայրկյան',
  9933. m: 'րոպե',
  9934. mm: '%d րոպե',
  9935. h: 'ժամ',
  9936. hh: '%d ժամ',
  9937. d: 'օր',
  9938. dd: '%d օր',
  9939. M: 'ամիս',
  9940. MM: '%d ամիս',
  9941. y: 'տարի',
  9942. yy: '%d տարի',
  9943. },
  9944. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  9945. isPM: function (input) {
  9946. return /^(ցերեկվա|երեկոյան)$/.test(input);
  9947. },
  9948. meridiem: function (hour) {
  9949. if (hour < 4) {
  9950. return 'գիշերվա';
  9951. } else if (hour < 12) {
  9952. return 'առավոտվա';
  9953. } else if (hour < 17) {
  9954. return 'ցերեկվա';
  9955. } else {
  9956. return 'երեկոյան';
  9957. }
  9958. },
  9959. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  9960. ordinal: function (number, period) {
  9961. switch (period) {
  9962. case 'DDD':
  9963. case 'w':
  9964. case 'W':
  9965. case 'DDDo':
  9966. if (number === 1) {
  9967. return number + '-ին';
  9968. }
  9969. return number + '-րդ';
  9970. default:
  9971. return number;
  9972. }
  9973. },
  9974. week: {
  9975. dow: 1, // Monday is the first day of the week.
  9976. doy: 7, // The week that contains Jan 7th is the first week of the year.
  9977. },
  9978. });
  9979. //! moment.js locale configuration
  9980. hooks.defineLocale('id', {
  9981. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  9982. '_'
  9983. ),
  9984. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  9985. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  9986. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  9987. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  9988. longDateFormat: {
  9989. LT: 'HH.mm',
  9990. LTS: 'HH.mm.ss',
  9991. L: 'DD/MM/YYYY',
  9992. LL: 'D MMMM YYYY',
  9993. LLL: 'D MMMM YYYY [pukul] HH.mm',
  9994. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  9995. },
  9996. meridiemParse: /pagi|siang|sore|malam/,
  9997. meridiemHour: function (hour, meridiem) {
  9998. if (hour === 12) {
  9999. hour = 0;
  10000. }
  10001. if (meridiem === 'pagi') {
  10002. return hour;
  10003. } else if (meridiem === 'siang') {
  10004. return hour >= 11 ? hour : hour + 12;
  10005. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10006. return hour + 12;
  10007. }
  10008. },
  10009. meridiem: function (hours, minutes, isLower) {
  10010. if (hours < 11) {
  10011. return 'pagi';
  10012. } else if (hours < 15) {
  10013. return 'siang';
  10014. } else if (hours < 19) {
  10015. return 'sore';
  10016. } else {
  10017. return 'malam';
  10018. }
  10019. },
  10020. calendar: {
  10021. sameDay: '[Hari ini pukul] LT',
  10022. nextDay: '[Besok pukul] LT',
  10023. nextWeek: 'dddd [pukul] LT',
  10024. lastDay: '[Kemarin pukul] LT',
  10025. lastWeek: 'dddd [lalu pukul] LT',
  10026. sameElse: 'L',
  10027. },
  10028. relativeTime: {
  10029. future: 'dalam %s',
  10030. past: '%s yang lalu',
  10031. s: 'beberapa detik',
  10032. ss: '%d detik',
  10033. m: 'semenit',
  10034. mm: '%d menit',
  10035. h: 'sejam',
  10036. hh: '%d jam',
  10037. d: 'sehari',
  10038. dd: '%d hari',
  10039. M: 'sebulan',
  10040. MM: '%d bulan',
  10041. y: 'setahun',
  10042. yy: '%d tahun',
  10043. },
  10044. week: {
  10045. dow: 1, // Monday is the first day of the week.
  10046. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10047. },
  10048. });
  10049. //! moment.js locale configuration
  10050. function plural$2(n) {
  10051. if (n % 100 === 11) {
  10052. return true;
  10053. } else if (n % 10 === 1) {
  10054. return false;
  10055. }
  10056. return true;
  10057. }
  10058. function translate$5(number, withoutSuffix, key, isFuture) {
  10059. var result = number + ' ';
  10060. switch (key) {
  10061. case 's':
  10062. return withoutSuffix || isFuture
  10063. ? 'nokkrar sekúndur'
  10064. : 'nokkrum sekúndum';
  10065. case 'ss':
  10066. if (plural$2(number)) {
  10067. return (
  10068. result +
  10069. (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
  10070. );
  10071. }
  10072. return result + 'sekúnda';
  10073. case 'm':
  10074. return withoutSuffix ? 'mínúta' : 'mínútu';
  10075. case 'mm':
  10076. if (plural$2(number)) {
  10077. return (
  10078. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
  10079. );
  10080. } else if (withoutSuffix) {
  10081. return result + 'mínúta';
  10082. }
  10083. return result + 'mínútu';
  10084. case 'hh':
  10085. if (plural$2(number)) {
  10086. return (
  10087. result +
  10088. (withoutSuffix || isFuture
  10089. ? 'klukkustundir'
  10090. : 'klukkustundum')
  10091. );
  10092. }
  10093. return result + 'klukkustund';
  10094. case 'd':
  10095. if (withoutSuffix) {
  10096. return 'dagur';
  10097. }
  10098. return isFuture ? 'dag' : 'degi';
  10099. case 'dd':
  10100. if (plural$2(number)) {
  10101. if (withoutSuffix) {
  10102. return result + 'dagar';
  10103. }
  10104. return result + (isFuture ? 'daga' : 'dögum');
  10105. } else if (withoutSuffix) {
  10106. return result + 'dagur';
  10107. }
  10108. return result + (isFuture ? 'dag' : 'degi');
  10109. case 'M':
  10110. if (withoutSuffix) {
  10111. return 'mánuður';
  10112. }
  10113. return isFuture ? 'mánuð' : 'mánuði';
  10114. case 'MM':
  10115. if (plural$2(number)) {
  10116. if (withoutSuffix) {
  10117. return result + 'mánuðir';
  10118. }
  10119. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10120. } else if (withoutSuffix) {
  10121. return result + 'mánuður';
  10122. }
  10123. return result + (isFuture ? 'mánuð' : 'mánuði');
  10124. case 'y':
  10125. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10126. case 'yy':
  10127. if (plural$2(number)) {
  10128. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10129. }
  10130. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10131. }
  10132. }
  10133. hooks.defineLocale('is', {
  10134. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  10135. '_'
  10136. ),
  10137. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10138. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  10139. '_'
  10140. ),
  10141. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10142. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10143. longDateFormat: {
  10144. LT: 'H:mm',
  10145. LTS: 'H:mm:ss',
  10146. L: 'DD.MM.YYYY',
  10147. LL: 'D. MMMM YYYY',
  10148. LLL: 'D. MMMM YYYY [kl.] H:mm',
  10149. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
  10150. },
  10151. calendar: {
  10152. sameDay: '[í dag kl.] LT',
  10153. nextDay: '[á morgun kl.] LT',
  10154. nextWeek: 'dddd [kl.] LT',
  10155. lastDay: '[í gær kl.] LT',
  10156. lastWeek: '[síðasta] dddd [kl.] LT',
  10157. sameElse: 'L',
  10158. },
  10159. relativeTime: {
  10160. future: 'eftir %s',
  10161. past: 'fyrir %s síðan',
  10162. s: translate$5,
  10163. ss: translate$5,
  10164. m: translate$5,
  10165. mm: translate$5,
  10166. h: 'klukkustund',
  10167. hh: translate$5,
  10168. d: translate$5,
  10169. dd: translate$5,
  10170. M: translate$5,
  10171. MM: translate$5,
  10172. y: translate$5,
  10173. yy: translate$5,
  10174. },
  10175. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10176. ordinal: '%d.',
  10177. week: {
  10178. dow: 1, // Monday is the first day of the week.
  10179. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10180. },
  10181. });
  10182. //! moment.js locale configuration
  10183. hooks.defineLocale('it-ch', {
  10184. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10185. '_'
  10186. ),
  10187. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10188. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10189. '_'
  10190. ),
  10191. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10192. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10193. longDateFormat: {
  10194. LT: 'HH:mm',
  10195. LTS: 'HH:mm:ss',
  10196. L: 'DD.MM.YYYY',
  10197. LL: 'D MMMM YYYY',
  10198. LLL: 'D MMMM YYYY HH:mm',
  10199. LLLL: 'dddd D MMMM YYYY HH:mm',
  10200. },
  10201. calendar: {
  10202. sameDay: '[Oggi alle] LT',
  10203. nextDay: '[Domani alle] LT',
  10204. nextWeek: 'dddd [alle] LT',
  10205. lastDay: '[Ieri alle] LT',
  10206. lastWeek: function () {
  10207. switch (this.day()) {
  10208. case 0:
  10209. return '[la scorsa] dddd [alle] LT';
  10210. default:
  10211. return '[lo scorso] dddd [alle] LT';
  10212. }
  10213. },
  10214. sameElse: 'L',
  10215. },
  10216. relativeTime: {
  10217. future: function (s) {
  10218. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10219. },
  10220. past: '%s fa',
  10221. s: 'alcuni secondi',
  10222. ss: '%d secondi',
  10223. m: 'un minuto',
  10224. mm: '%d minuti',
  10225. h: "un'ora",
  10226. hh: '%d ore',
  10227. d: 'un giorno',
  10228. dd: '%d giorni',
  10229. M: 'un mese',
  10230. MM: '%d mesi',
  10231. y: 'un anno',
  10232. yy: '%d anni',
  10233. },
  10234. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10235. ordinal: '%dº',
  10236. week: {
  10237. dow: 1, // Monday is the first day of the week.
  10238. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10239. },
  10240. });
  10241. //! moment.js locale configuration
  10242. hooks.defineLocale('it', {
  10243. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10244. '_'
  10245. ),
  10246. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10247. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10248. '_'
  10249. ),
  10250. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10251. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10252. longDateFormat: {
  10253. LT: 'HH:mm',
  10254. LTS: 'HH:mm:ss',
  10255. L: 'DD/MM/YYYY',
  10256. LL: 'D MMMM YYYY',
  10257. LLL: 'D MMMM YYYY HH:mm',
  10258. LLLL: 'dddd D MMMM YYYY HH:mm',
  10259. },
  10260. calendar: {
  10261. sameDay: function () {
  10262. return (
  10263. '[Oggi a' +
  10264. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10265. ']LT'
  10266. );
  10267. },
  10268. nextDay: function () {
  10269. return (
  10270. '[Domani a' +
  10271. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10272. ']LT'
  10273. );
  10274. },
  10275. nextWeek: function () {
  10276. return (
  10277. 'dddd [a' +
  10278. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10279. ']LT'
  10280. );
  10281. },
  10282. lastDay: function () {
  10283. return (
  10284. '[Ieri a' +
  10285. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10286. ']LT'
  10287. );
  10288. },
  10289. lastWeek: function () {
  10290. switch (this.day()) {
  10291. case 0:
  10292. return (
  10293. '[La scorsa] dddd [a' +
  10294. (this.hours() > 1
  10295. ? 'lle '
  10296. : this.hours() === 0
  10297. ? ' '
  10298. : "ll'") +
  10299. ']LT'
  10300. );
  10301. default:
  10302. return (
  10303. '[Lo scorso] dddd [a' +
  10304. (this.hours() > 1
  10305. ? 'lle '
  10306. : this.hours() === 0
  10307. ? ' '
  10308. : "ll'") +
  10309. ']LT'
  10310. );
  10311. }
  10312. },
  10313. sameElse: 'L',
  10314. },
  10315. relativeTime: {
  10316. future: function (s) {
  10317. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10318. },
  10319. past: '%s fa',
  10320. s: 'alcuni secondi',
  10321. ss: '%d secondi',
  10322. m: 'un minuto',
  10323. mm: '%d minuti',
  10324. h: "un'ora",
  10325. hh: '%d ore',
  10326. d: 'un giorno',
  10327. dd: '%d giorni',
  10328. M: 'un mese',
  10329. MM: '%d mesi',
  10330. y: 'un anno',
  10331. yy: '%d anni',
  10332. },
  10333. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10334. ordinal: '%dº',
  10335. week: {
  10336. dow: 1, // Monday is the first day of the week.
  10337. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10338. },
  10339. });
  10340. //! moment.js locale configuration
  10341. hooks.defineLocale('ja', {
  10342. eras: [
  10343. {
  10344. since: '2019-05-01',
  10345. offset: 1,
  10346. name: '令和',
  10347. narrow: '㋿',
  10348. abbr: 'R',
  10349. },
  10350. {
  10351. since: '1989-01-08',
  10352. until: '2019-04-30',
  10353. offset: 1,
  10354. name: '平成',
  10355. narrow: '㍻',
  10356. abbr: 'H',
  10357. },
  10358. {
  10359. since: '1926-12-25',
  10360. until: '1989-01-07',
  10361. offset: 1,
  10362. name: '昭和',
  10363. narrow: '㍼',
  10364. abbr: 'S',
  10365. },
  10366. {
  10367. since: '1912-07-30',
  10368. until: '1926-12-24',
  10369. offset: 1,
  10370. name: '大正',
  10371. narrow: '㍽',
  10372. abbr: 'T',
  10373. },
  10374. {
  10375. since: '1873-01-01',
  10376. until: '1912-07-29',
  10377. offset: 6,
  10378. name: '明治',
  10379. narrow: '㍾',
  10380. abbr: 'M',
  10381. },
  10382. {
  10383. since: '0001-01-01',
  10384. until: '1873-12-31',
  10385. offset: 1,
  10386. name: '西暦',
  10387. narrow: 'AD',
  10388. abbr: 'AD',
  10389. },
  10390. {
  10391. since: '0000-12-31',
  10392. until: -Infinity,
  10393. offset: 1,
  10394. name: '紀元前',
  10395. narrow: 'BC',
  10396. abbr: 'BC',
  10397. },
  10398. ],
  10399. eraYearOrdinalRegex: /(元|\d+)年/,
  10400. eraYearOrdinalParse: function (input, match) {
  10401. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  10402. },
  10403. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10404. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  10405. '_'
  10406. ),
  10407. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10408. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  10409. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  10410. longDateFormat: {
  10411. LT: 'HH:mm',
  10412. LTS: 'HH:mm:ss',
  10413. L: 'YYYY/MM/DD',
  10414. LL: 'YYYY年M月D日',
  10415. LLL: 'YYYY年M月D日 HH:mm',
  10416. LLLL: 'YYYY年M月D日 dddd HH:mm',
  10417. l: 'YYYY/MM/DD',
  10418. ll: 'YYYY年M月D日',
  10419. lll: 'YYYY年M月D日 HH:mm',
  10420. llll: 'YYYY年M月D日(ddd) HH:mm',
  10421. },
  10422. meridiemParse: /午前|午後/i,
  10423. isPM: function (input) {
  10424. return input === '午後';
  10425. },
  10426. meridiem: function (hour, minute, isLower) {
  10427. if (hour < 12) {
  10428. return '午前';
  10429. } else {
  10430. return '午後';
  10431. }
  10432. },
  10433. calendar: {
  10434. sameDay: '[今日] LT',
  10435. nextDay: '[明日] LT',
  10436. nextWeek: function (now) {
  10437. if (now.week() !== this.week()) {
  10438. return '[来週]dddd LT';
  10439. } else {
  10440. return 'dddd LT';
  10441. }
  10442. },
  10443. lastDay: '[昨日] LT',
  10444. lastWeek: function (now) {
  10445. if (this.week() !== now.week()) {
  10446. return '[先週]dddd LT';
  10447. } else {
  10448. return 'dddd LT';
  10449. }
  10450. },
  10451. sameElse: 'L',
  10452. },
  10453. dayOfMonthOrdinalParse: /\d{1,2}日/,
  10454. ordinal: function (number, period) {
  10455. switch (period) {
  10456. case 'y':
  10457. return number === 1 ? '元年' : number + '年';
  10458. case 'd':
  10459. case 'D':
  10460. case 'DDD':
  10461. return number + '日';
  10462. default:
  10463. return number;
  10464. }
  10465. },
  10466. relativeTime: {
  10467. future: '%s後',
  10468. past: '%s前',
  10469. s: '数秒',
  10470. ss: '%d秒',
  10471. m: '1分',
  10472. mm: '%d分',
  10473. h: '1時間',
  10474. hh: '%d時間',
  10475. d: '1日',
  10476. dd: '%d日',
  10477. M: '1ヶ月',
  10478. MM: '%dヶ月',
  10479. y: '1年',
  10480. yy: '%d年',
  10481. },
  10482. });
  10483. //! moment.js locale configuration
  10484. hooks.defineLocale('jv', {
  10485. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  10486. '_'
  10487. ),
  10488. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  10489. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  10490. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  10491. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  10492. longDateFormat: {
  10493. LT: 'HH.mm',
  10494. LTS: 'HH.mm.ss',
  10495. L: 'DD/MM/YYYY',
  10496. LL: 'D MMMM YYYY',
  10497. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10498. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10499. },
  10500. meridiemParse: /enjing|siyang|sonten|ndalu/,
  10501. meridiemHour: function (hour, meridiem) {
  10502. if (hour === 12) {
  10503. hour = 0;
  10504. }
  10505. if (meridiem === 'enjing') {
  10506. return hour;
  10507. } else if (meridiem === 'siyang') {
  10508. return hour >= 11 ? hour : hour + 12;
  10509. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  10510. return hour + 12;
  10511. }
  10512. },
  10513. meridiem: function (hours, minutes, isLower) {
  10514. if (hours < 11) {
  10515. return 'enjing';
  10516. } else if (hours < 15) {
  10517. return 'siyang';
  10518. } else if (hours < 19) {
  10519. return 'sonten';
  10520. } else {
  10521. return 'ndalu';
  10522. }
  10523. },
  10524. calendar: {
  10525. sameDay: '[Dinten puniko pukul] LT',
  10526. nextDay: '[Mbenjang pukul] LT',
  10527. nextWeek: 'dddd [pukul] LT',
  10528. lastDay: '[Kala wingi pukul] LT',
  10529. lastWeek: 'dddd [kepengker pukul] LT',
  10530. sameElse: 'L',
  10531. },
  10532. relativeTime: {
  10533. future: 'wonten ing %s',
  10534. past: '%s ingkang kepengker',
  10535. s: 'sawetawis detik',
  10536. ss: '%d detik',
  10537. m: 'setunggal menit',
  10538. mm: '%d menit',
  10539. h: 'setunggal jam',
  10540. hh: '%d jam',
  10541. d: 'sedinten',
  10542. dd: '%d dinten',
  10543. M: 'sewulan',
  10544. MM: '%d wulan',
  10545. y: 'setaun',
  10546. yy: '%d taun',
  10547. },
  10548. week: {
  10549. dow: 1, // Monday is the first day of the week.
  10550. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10551. },
  10552. });
  10553. //! moment.js locale configuration
  10554. hooks.defineLocale('ka', {
  10555. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  10556. '_'
  10557. ),
  10558. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  10559. weekdays: {
  10560. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  10561. '_'
  10562. ),
  10563. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  10564. '_'
  10565. ),
  10566. isFormat: /(წინა|შემდეგ)/,
  10567. },
  10568. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  10569. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  10570. longDateFormat: {
  10571. LT: 'HH:mm',
  10572. LTS: 'HH:mm:ss',
  10573. L: 'DD/MM/YYYY',
  10574. LL: 'D MMMM YYYY',
  10575. LLL: 'D MMMM YYYY HH:mm',
  10576. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10577. },
  10578. calendar: {
  10579. sameDay: '[დღეს] LT[-ზე]',
  10580. nextDay: '[ხვალ] LT[-ზე]',
  10581. lastDay: '[გუშინ] LT[-ზე]',
  10582. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  10583. lastWeek: '[წინა] dddd LT-ზე',
  10584. sameElse: 'L',
  10585. },
  10586. relativeTime: {
  10587. future: function (s) {
  10588. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (
  10589. $0,
  10590. $1,
  10591. $2
  10592. ) {
  10593. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  10594. });
  10595. },
  10596. past: function (s) {
  10597. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  10598. return s.replace(/(ი|ე)$/, 'ის წინ');
  10599. }
  10600. if (/წელი/.test(s)) {
  10601. return s.replace(/წელი$/, 'წლის წინ');
  10602. }
  10603. return s;
  10604. },
  10605. s: 'რამდენიმე წამი',
  10606. ss: '%d წამი',
  10607. m: 'წუთი',
  10608. mm: '%d წუთი',
  10609. h: 'საათი',
  10610. hh: '%d საათი',
  10611. d: 'დღე',
  10612. dd: '%d დღე',
  10613. M: 'თვე',
  10614. MM: '%d თვე',
  10615. y: 'წელი',
  10616. yy: '%d წელი',
  10617. },
  10618. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  10619. ordinal: function (number) {
  10620. if (number === 0) {
  10621. return number;
  10622. }
  10623. if (number === 1) {
  10624. return number + '-ლი';
  10625. }
  10626. if (
  10627. number < 20 ||
  10628. (number <= 100 && number % 20 === 0) ||
  10629. number % 100 === 0
  10630. ) {
  10631. return 'მე-' + number;
  10632. }
  10633. return number + '-ე';
  10634. },
  10635. week: {
  10636. dow: 1,
  10637. doy: 7,
  10638. },
  10639. });
  10640. //! moment.js locale configuration
  10641. var suffixes$1 = {
  10642. 0: '-ші',
  10643. 1: '-ші',
  10644. 2: '-ші',
  10645. 3: '-ші',
  10646. 4: '-ші',
  10647. 5: '-ші',
  10648. 6: '-шы',
  10649. 7: '-ші',
  10650. 8: '-ші',
  10651. 9: '-шы',
  10652. 10: '-шы',
  10653. 20: '-шы',
  10654. 30: '-шы',
  10655. 40: '-шы',
  10656. 50: '-ші',
  10657. 60: '-шы',
  10658. 70: '-ші',
  10659. 80: '-ші',
  10660. 90: '-шы',
  10661. 100: '-ші',
  10662. };
  10663. hooks.defineLocale('kk', {
  10664. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  10665. '_'
  10666. ),
  10667. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  10668. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  10669. '_'
  10670. ),
  10671. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  10672. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  10673. longDateFormat: {
  10674. LT: 'HH:mm',
  10675. LTS: 'HH:mm:ss',
  10676. L: 'DD.MM.YYYY',
  10677. LL: 'D MMMM YYYY',
  10678. LLL: 'D MMMM YYYY HH:mm',
  10679. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10680. },
  10681. calendar: {
  10682. sameDay: '[Бүгін сағат] LT',
  10683. nextDay: '[Ертең сағат] LT',
  10684. nextWeek: 'dddd [сағат] LT',
  10685. lastDay: '[Кеше сағат] LT',
  10686. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  10687. sameElse: 'L',
  10688. },
  10689. relativeTime: {
  10690. future: '%s ішінде',
  10691. past: '%s бұрын',
  10692. s: 'бірнеше секунд',
  10693. ss: '%d секунд',
  10694. m: 'бір минут',
  10695. mm: '%d минут',
  10696. h: 'бір сағат',
  10697. hh: '%d сағат',
  10698. d: 'бір күн',
  10699. dd: '%d күн',
  10700. M: 'бір ай',
  10701. MM: '%d ай',
  10702. y: 'бір жыл',
  10703. yy: '%d жыл',
  10704. },
  10705. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  10706. ordinal: function (number) {
  10707. var a = number % 10,
  10708. b = number >= 100 ? 100 : null;
  10709. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  10710. },
  10711. week: {
  10712. dow: 1, // Monday is the first day of the week.
  10713. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10714. },
  10715. });
  10716. //! moment.js locale configuration
  10717. var symbolMap$8 = {
  10718. '1': '១',
  10719. '2': '២',
  10720. '3': '៣',
  10721. '4': '៤',
  10722. '5': '៥',
  10723. '6': '៦',
  10724. '7': '៧',
  10725. '8': '៨',
  10726. '9': '៩',
  10727. '0': '០',
  10728. },
  10729. numberMap$7 = {
  10730. '១': '1',
  10731. '២': '2',
  10732. '៣': '3',
  10733. '៤': '4',
  10734. '៥': '5',
  10735. '៦': '6',
  10736. '៧': '7',
  10737. '៨': '8',
  10738. '៩': '9',
  10739. '០': '0',
  10740. };
  10741. hooks.defineLocale('km', {
  10742. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  10743. '_'
  10744. ),
  10745. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  10746. '_'
  10747. ),
  10748. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  10749. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  10750. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  10751. weekdaysParseExact: true,
  10752. longDateFormat: {
  10753. LT: 'HH:mm',
  10754. LTS: 'HH:mm:ss',
  10755. L: 'DD/MM/YYYY',
  10756. LL: 'D MMMM YYYY',
  10757. LLL: 'D MMMM YYYY HH:mm',
  10758. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10759. },
  10760. meridiemParse: /ព្រឹក|ល្ងាច/,
  10761. isPM: function (input) {
  10762. return input === 'ល្ងាច';
  10763. },
  10764. meridiem: function (hour, minute, isLower) {
  10765. if (hour < 12) {
  10766. return 'ព្រឹក';
  10767. } else {
  10768. return 'ល្ងាច';
  10769. }
  10770. },
  10771. calendar: {
  10772. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  10773. nextDay: '[ស្អែក ម៉ោង] LT',
  10774. nextWeek: 'dddd [ម៉ោង] LT',
  10775. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  10776. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  10777. sameElse: 'L',
  10778. },
  10779. relativeTime: {
  10780. future: '%sទៀត',
  10781. past: '%sមុន',
  10782. s: 'ប៉ុន្មានវិនាទី',
  10783. ss: '%d វិនាទី',
  10784. m: 'មួយនាទី',
  10785. mm: '%d នាទី',
  10786. h: 'មួយម៉ោង',
  10787. hh: '%d ម៉ោង',
  10788. d: 'មួយថ្ងៃ',
  10789. dd: '%d ថ្ងៃ',
  10790. M: 'មួយខែ',
  10791. MM: '%d ខែ',
  10792. y: 'មួយឆ្នាំ',
  10793. yy: '%d ឆ្នាំ',
  10794. },
  10795. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  10796. ordinal: 'ទី%d',
  10797. preparse: function (string) {
  10798. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  10799. return numberMap$7[match];
  10800. });
  10801. },
  10802. postformat: function (string) {
  10803. return string.replace(/\d/g, function (match) {
  10804. return symbolMap$8[match];
  10805. });
  10806. },
  10807. week: {
  10808. dow: 1, // Monday is the first day of the week.
  10809. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10810. },
  10811. });
  10812. //! moment.js locale configuration
  10813. var symbolMap$9 = {
  10814. '1': '೧',
  10815. '2': '೨',
  10816. '3': '೩',
  10817. '4': '೪',
  10818. '5': '೫',
  10819. '6': '೬',
  10820. '7': '೭',
  10821. '8': '೮',
  10822. '9': '೯',
  10823. '0': '೦',
  10824. },
  10825. numberMap$8 = {
  10826. '೧': '1',
  10827. '೨': '2',
  10828. '೩': '3',
  10829. '೪': '4',
  10830. '೫': '5',
  10831. '೬': '6',
  10832. '೭': '7',
  10833. '೮': '8',
  10834. '೯': '9',
  10835. '೦': '0',
  10836. };
  10837. hooks.defineLocale('kn', {
  10838. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  10839. '_'
  10840. ),
  10841. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  10842. '_'
  10843. ),
  10844. monthsParseExact: true,
  10845. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  10846. '_'
  10847. ),
  10848. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  10849. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  10850. longDateFormat: {
  10851. LT: 'A h:mm',
  10852. LTS: 'A h:mm:ss',
  10853. L: 'DD/MM/YYYY',
  10854. LL: 'D MMMM YYYY',
  10855. LLL: 'D MMMM YYYY, A h:mm',
  10856. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  10857. },
  10858. calendar: {
  10859. sameDay: '[ಇಂದು] LT',
  10860. nextDay: '[ನಾಳೆ] LT',
  10861. nextWeek: 'dddd, LT',
  10862. lastDay: '[ನಿನ್ನೆ] LT',
  10863. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  10864. sameElse: 'L',
  10865. },
  10866. relativeTime: {
  10867. future: '%s ನಂತರ',
  10868. past: '%s ಹಿಂದೆ',
  10869. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  10870. ss: '%d ಸೆಕೆಂಡುಗಳು',
  10871. m: 'ಒಂದು ನಿಮಿಷ',
  10872. mm: '%d ನಿಮಿಷ',
  10873. h: 'ಒಂದು ಗಂಟೆ',
  10874. hh: '%d ಗಂಟೆ',
  10875. d: 'ಒಂದು ದಿನ',
  10876. dd: '%d ದಿನ',
  10877. M: 'ಒಂದು ತಿಂಗಳು',
  10878. MM: '%d ತಿಂಗಳು',
  10879. y: 'ಒಂದು ವರ್ಷ',
  10880. yy: '%d ವರ್ಷ',
  10881. },
  10882. preparse: function (string) {
  10883. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  10884. return numberMap$8[match];
  10885. });
  10886. },
  10887. postformat: function (string) {
  10888. return string.replace(/\d/g, function (match) {
  10889. return symbolMap$9[match];
  10890. });
  10891. },
  10892. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  10893. meridiemHour: function (hour, meridiem) {
  10894. if (hour === 12) {
  10895. hour = 0;
  10896. }
  10897. if (meridiem === 'ರಾತ್ರಿ') {
  10898. return hour < 4 ? hour : hour + 12;
  10899. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  10900. return hour;
  10901. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  10902. return hour >= 10 ? hour : hour + 12;
  10903. } else if (meridiem === 'ಸಂಜೆ') {
  10904. return hour + 12;
  10905. }
  10906. },
  10907. meridiem: function (hour, minute, isLower) {
  10908. if (hour < 4) {
  10909. return 'ರಾತ್ರಿ';
  10910. } else if (hour < 10) {
  10911. return 'ಬೆಳಿಗ್ಗೆ';
  10912. } else if (hour < 17) {
  10913. return 'ಮಧ್ಯಾಹ್ನ';
  10914. } else if (hour < 20) {
  10915. return 'ಸಂಜೆ';
  10916. } else {
  10917. return 'ರಾತ್ರಿ';
  10918. }
  10919. },
  10920. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  10921. ordinal: function (number) {
  10922. return number + 'ನೇ';
  10923. },
  10924. week: {
  10925. dow: 0, // Sunday is the first day of the week.
  10926. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10927. },
  10928. });
  10929. //! moment.js locale configuration
  10930. hooks.defineLocale('ko', {
  10931. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  10932. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  10933. '_'
  10934. ),
  10935. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  10936. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  10937. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  10938. longDateFormat: {
  10939. LT: 'A h:mm',
  10940. LTS: 'A h:mm:ss',
  10941. L: 'YYYY.MM.DD.',
  10942. LL: 'YYYY년 MMMM D일',
  10943. LLL: 'YYYY년 MMMM D일 A h:mm',
  10944. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  10945. l: 'YYYY.MM.DD.',
  10946. ll: 'YYYY년 MMMM D일',
  10947. lll: 'YYYY년 MMMM D일 A h:mm',
  10948. llll: 'YYYY년 MMMM D일 dddd A h:mm',
  10949. },
  10950. calendar: {
  10951. sameDay: '오늘 LT',
  10952. nextDay: '내일 LT',
  10953. nextWeek: 'dddd LT',
  10954. lastDay: '어제 LT',
  10955. lastWeek: '지난주 dddd LT',
  10956. sameElse: 'L',
  10957. },
  10958. relativeTime: {
  10959. future: '%s 후',
  10960. past: '%s 전',
  10961. s: '몇 초',
  10962. ss: '%d초',
  10963. m: '1분',
  10964. mm: '%d분',
  10965. h: '한 시간',
  10966. hh: '%d시간',
  10967. d: '하루',
  10968. dd: '%d일',
  10969. M: '한 달',
  10970. MM: '%d달',
  10971. y: '일 년',
  10972. yy: '%d년',
  10973. },
  10974. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  10975. ordinal: function (number, period) {
  10976. switch (period) {
  10977. case 'd':
  10978. case 'D':
  10979. case 'DDD':
  10980. return number + '일';
  10981. case 'M':
  10982. return number + '월';
  10983. case 'w':
  10984. case 'W':
  10985. return number + '주';
  10986. default:
  10987. return number;
  10988. }
  10989. },
  10990. meridiemParse: /오전|오후/,
  10991. isPM: function (token) {
  10992. return token === '오후';
  10993. },
  10994. meridiem: function (hour, minute, isUpper) {
  10995. return hour < 12 ? '오전' : '오후';
  10996. },
  10997. });
  10998. //! moment.js locale configuration
  10999. var symbolMap$a = {
  11000. '1': '١',
  11001. '2': '٢',
  11002. '3': '٣',
  11003. '4': '٤',
  11004. '5': '٥',
  11005. '6': '٦',
  11006. '7': '٧',
  11007. '8': '٨',
  11008. '9': '٩',
  11009. '0': '٠',
  11010. },
  11011. numberMap$9 = {
  11012. '١': '1',
  11013. '٢': '2',
  11014. '٣': '3',
  11015. '٤': '4',
  11016. '٥': '5',
  11017. '٦': '6',
  11018. '٧': '7',
  11019. '٨': '8',
  11020. '٩': '9',
  11021. '٠': '0',
  11022. },
  11023. months$7 = [
  11024. 'کانونی دووەم',
  11025. 'شوبات',
  11026. 'ئازار',
  11027. 'نیسان',
  11028. 'ئایار',
  11029. 'حوزەیران',
  11030. 'تەمموز',
  11031. 'ئاب',
  11032. 'ئەیلوول',
  11033. 'تشرینی یەكەم',
  11034. 'تشرینی دووەم',
  11035. 'كانونی یەکەم',
  11036. ];
  11037. hooks.defineLocale('ku', {
  11038. months: months$7,
  11039. monthsShort: months$7,
  11040. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  11041. '_'
  11042. ),
  11043. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
  11044. '_'
  11045. ),
  11046. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  11047. weekdaysParseExact: true,
  11048. longDateFormat: {
  11049. LT: 'HH:mm',
  11050. LTS: 'HH:mm:ss',
  11051. L: 'DD/MM/YYYY',
  11052. LL: 'D MMMM YYYY',
  11053. LLL: 'D MMMM YYYY HH:mm',
  11054. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11055. },
  11056. meridiemParse: /ئێواره‌|به‌یانی/,
  11057. isPM: function (input) {
  11058. return /ئێواره‌/.test(input);
  11059. },
  11060. meridiem: function (hour, minute, isLower) {
  11061. if (hour < 12) {
  11062. return 'به‌یانی';
  11063. } else {
  11064. return 'ئێواره‌';
  11065. }
  11066. },
  11067. calendar: {
  11068. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  11069. nextDay: '[به‌یانی كاتژمێر] LT',
  11070. nextWeek: 'dddd [كاتژمێر] LT',
  11071. lastDay: '[دوێنێ كاتژمێر] LT',
  11072. lastWeek: 'dddd [كاتژمێر] LT',
  11073. sameElse: 'L',
  11074. },
  11075. relativeTime: {
  11076. future: 'له‌ %s',
  11077. past: '%s',
  11078. s: 'چه‌ند چركه‌یه‌ك',
  11079. ss: 'چركه‌ %d',
  11080. m: 'یه‌ك خوله‌ك',
  11081. mm: '%d خوله‌ك',
  11082. h: 'یه‌ك كاتژمێر',
  11083. hh: '%d كاتژمێر',
  11084. d: 'یه‌ك ڕۆژ',
  11085. dd: '%d ڕۆژ',
  11086. M: 'یه‌ك مانگ',
  11087. MM: '%d مانگ',
  11088. y: 'یه‌ك ساڵ',
  11089. yy: '%d ساڵ',
  11090. },
  11091. preparse: function (string) {
  11092. return string
  11093. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  11094. return numberMap$9[match];
  11095. })
  11096. .replace(/،/g, ',');
  11097. },
  11098. postformat: function (string) {
  11099. return string
  11100. .replace(/\d/g, function (match) {
  11101. return symbolMap$a[match];
  11102. })
  11103. .replace(/,/g, '،');
  11104. },
  11105. week: {
  11106. dow: 6, // Saturday is the first day of the week.
  11107. doy: 12, // The week that contains Jan 12th is the first week of the year.
  11108. },
  11109. });
  11110. //! moment.js locale configuration
  11111. var suffixes$2 = {
  11112. 0: '-чү',
  11113. 1: '-чи',
  11114. 2: '-чи',
  11115. 3: '-чү',
  11116. 4: '-чү',
  11117. 5: '-чи',
  11118. 6: '-чы',
  11119. 7: '-чи',
  11120. 8: '-чи',
  11121. 9: '-чу',
  11122. 10: '-чу',
  11123. 20: '-чы',
  11124. 30: '-чу',
  11125. 40: '-чы',
  11126. 50: '-чү',
  11127. 60: '-чы',
  11128. 70: '-чи',
  11129. 80: '-чи',
  11130. 90: '-чу',
  11131. 100: '-чү',
  11132. };
  11133. hooks.defineLocale('ky', {
  11134. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  11135. '_'
  11136. ),
  11137. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  11138. '_'
  11139. ),
  11140. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  11141. '_'
  11142. ),
  11143. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11144. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11145. longDateFormat: {
  11146. LT: 'HH:mm',
  11147. LTS: 'HH:mm:ss',
  11148. L: 'DD.MM.YYYY',
  11149. LL: 'D MMMM YYYY',
  11150. LLL: 'D MMMM YYYY HH:mm',
  11151. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11152. },
  11153. calendar: {
  11154. sameDay: '[Бүгүн саат] LT',
  11155. nextDay: '[Эртең саат] LT',
  11156. nextWeek: 'dddd [саат] LT',
  11157. lastDay: '[Кечээ саат] LT',
  11158. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  11159. sameElse: 'L',
  11160. },
  11161. relativeTime: {
  11162. future: '%s ичинде',
  11163. past: '%s мурун',
  11164. s: 'бирнече секунд',
  11165. ss: '%d секунд',
  11166. m: 'бир мүнөт',
  11167. mm: '%d мүнөт',
  11168. h: 'бир саат',
  11169. hh: '%d саат',
  11170. d: 'бир күн',
  11171. dd: '%d күн',
  11172. M: 'бир ай',
  11173. MM: '%d ай',
  11174. y: 'бир жыл',
  11175. yy: '%d жыл',
  11176. },
  11177. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11178. ordinal: function (number) {
  11179. var a = number % 10,
  11180. b = number >= 100 ? 100 : null;
  11181. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  11182. },
  11183. week: {
  11184. dow: 1, // Monday is the first day of the week.
  11185. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11186. },
  11187. });
  11188. //! moment.js locale configuration
  11189. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  11190. var format = {
  11191. m: ['eng Minutt', 'enger Minutt'],
  11192. h: ['eng Stonn', 'enger Stonn'],
  11193. d: ['een Dag', 'engem Dag'],
  11194. M: ['ee Mount', 'engem Mount'],
  11195. y: ['ee Joer', 'engem Joer'],
  11196. };
  11197. return withoutSuffix ? format[key][0] : format[key][1];
  11198. }
  11199. function processFutureTime(string) {
  11200. var number = string.substr(0, string.indexOf(' '));
  11201. if (eifelerRegelAppliesToNumber(number)) {
  11202. return 'a ' + string;
  11203. }
  11204. return 'an ' + string;
  11205. }
  11206. function processPastTime(string) {
  11207. var number = string.substr(0, string.indexOf(' '));
  11208. if (eifelerRegelAppliesToNumber(number)) {
  11209. return 'viru ' + string;
  11210. }
  11211. return 'virun ' + string;
  11212. }
  11213. /**
  11214. * Returns true if the word before the given number loses the '-n' ending.
  11215. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11216. *
  11217. * @param number {integer}
  11218. * @returns {boolean}
  11219. */
  11220. function eifelerRegelAppliesToNumber(number) {
  11221. number = parseInt(number, 10);
  11222. if (isNaN(number)) {
  11223. return false;
  11224. }
  11225. if (number < 0) {
  11226. // Negative Number --> always true
  11227. return true;
  11228. } else if (number < 10) {
  11229. // Only 1 digit
  11230. if (4 <= number && number <= 7) {
  11231. return true;
  11232. }
  11233. return false;
  11234. } else if (number < 100) {
  11235. // 2 digits
  11236. var lastDigit = number % 10,
  11237. firstDigit = number / 10;
  11238. if (lastDigit === 0) {
  11239. return eifelerRegelAppliesToNumber(firstDigit);
  11240. }
  11241. return eifelerRegelAppliesToNumber(lastDigit);
  11242. } else if (number < 10000) {
  11243. // 3 or 4 digits --> recursively check first digit
  11244. while (number >= 10) {
  11245. number = number / 10;
  11246. }
  11247. return eifelerRegelAppliesToNumber(number);
  11248. } else {
  11249. // Anything larger than 4 digits: recursively check first n-3 digits
  11250. number = number / 1000;
  11251. return eifelerRegelAppliesToNumber(number);
  11252. }
  11253. }
  11254. hooks.defineLocale('lb', {
  11255. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  11256. '_'
  11257. ),
  11258. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  11259. '_'
  11260. ),
  11261. monthsParseExact: true,
  11262. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  11263. '_'
  11264. ),
  11265. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11266. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11267. weekdaysParseExact: true,
  11268. longDateFormat: {
  11269. LT: 'H:mm [Auer]',
  11270. LTS: 'H:mm:ss [Auer]',
  11271. L: 'DD.MM.YYYY',
  11272. LL: 'D. MMMM YYYY',
  11273. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11274. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
  11275. },
  11276. calendar: {
  11277. sameDay: '[Haut um] LT',
  11278. sameElse: 'L',
  11279. nextDay: '[Muer um] LT',
  11280. nextWeek: 'dddd [um] LT',
  11281. lastDay: '[Gëschter um] LT',
  11282. lastWeek: function () {
  11283. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11284. switch (this.day()) {
  11285. case 2:
  11286. case 4:
  11287. return '[Leschten] dddd [um] LT';
  11288. default:
  11289. return '[Leschte] dddd [um] LT';
  11290. }
  11291. },
  11292. },
  11293. relativeTime: {
  11294. future: processFutureTime,
  11295. past: processPastTime,
  11296. s: 'e puer Sekonnen',
  11297. ss: '%d Sekonnen',
  11298. m: processRelativeTime$6,
  11299. mm: '%d Minutten',
  11300. h: processRelativeTime$6,
  11301. hh: '%d Stonnen',
  11302. d: processRelativeTime$6,
  11303. dd: '%d Deeg',
  11304. M: processRelativeTime$6,
  11305. MM: '%d Méint',
  11306. y: processRelativeTime$6,
  11307. yy: '%d Joer',
  11308. },
  11309. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11310. ordinal: '%d.',
  11311. week: {
  11312. dow: 1, // Monday is the first day of the week.
  11313. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11314. },
  11315. });
  11316. //! moment.js locale configuration
  11317. hooks.defineLocale('lo', {
  11318. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11319. '_'
  11320. ),
  11321. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11322. '_'
  11323. ),
  11324. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11325. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11326. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11327. weekdaysParseExact: true,
  11328. longDateFormat: {
  11329. LT: 'HH:mm',
  11330. LTS: 'HH:mm:ss',
  11331. L: 'DD/MM/YYYY',
  11332. LL: 'D MMMM YYYY',
  11333. LLL: 'D MMMM YYYY HH:mm',
  11334. LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
  11335. },
  11336. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11337. isPM: function (input) {
  11338. return input === 'ຕອນແລງ';
  11339. },
  11340. meridiem: function (hour, minute, isLower) {
  11341. if (hour < 12) {
  11342. return 'ຕອນເຊົ້າ';
  11343. } else {
  11344. return 'ຕອນແລງ';
  11345. }
  11346. },
  11347. calendar: {
  11348. sameDay: '[ມື້ນີ້ເວລາ] LT',
  11349. nextDay: '[ມື້ອື່ນເວລາ] LT',
  11350. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11351. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  11352. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11353. sameElse: 'L',
  11354. },
  11355. relativeTime: {
  11356. future: 'ອີກ %s',
  11357. past: '%sຜ່ານມາ',
  11358. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  11359. ss: '%d ວິນາທີ',
  11360. m: '1 ນາທີ',
  11361. mm: '%d ນາທີ',
  11362. h: '1 ຊົ່ວໂມງ',
  11363. hh: '%d ຊົ່ວໂມງ',
  11364. d: '1 ມື້',
  11365. dd: '%d ມື້',
  11366. M: '1 ເດືອນ',
  11367. MM: '%d ເດືອນ',
  11368. y: '1 ປີ',
  11369. yy: '%d ປີ',
  11370. },
  11371. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11372. ordinal: function (number) {
  11373. return 'ທີ່' + number;
  11374. },
  11375. });
  11376. //! moment.js locale configuration
  11377. var units = {
  11378. ss: 'sekundė_sekundžių_sekundes',
  11379. m: 'minutė_minutės_minutę',
  11380. mm: 'minutės_minučių_minutes',
  11381. h: 'valanda_valandos_valandą',
  11382. hh: 'valandos_valandų_valandas',
  11383. d: 'diena_dienos_dieną',
  11384. dd: 'dienos_dienų_dienas',
  11385. M: 'mėnuo_mėnesio_mėnesį',
  11386. MM: 'mėnesiai_mėnesių_mėnesius',
  11387. y: 'metai_metų_metus',
  11388. yy: 'metai_metų_metus',
  11389. };
  11390. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11391. if (withoutSuffix) {
  11392. return 'kelios sekundės';
  11393. } else {
  11394. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11395. }
  11396. }
  11397. function translateSingular(number, withoutSuffix, key, isFuture) {
  11398. return withoutSuffix
  11399. ? forms(key)[0]
  11400. : isFuture
  11401. ? forms(key)[1]
  11402. : forms(key)[2];
  11403. }
  11404. function special(number) {
  11405. return number % 10 === 0 || (number > 10 && number < 20);
  11406. }
  11407. function forms(key) {
  11408. return units[key].split('_');
  11409. }
  11410. function translate$6(number, withoutSuffix, key, isFuture) {
  11411. var result = number + ' ';
  11412. if (number === 1) {
  11413. return (
  11414. result + translateSingular(number, withoutSuffix, key[0], isFuture)
  11415. );
  11416. } else if (withoutSuffix) {
  11417. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11418. } else {
  11419. if (isFuture) {
  11420. return result + forms(key)[1];
  11421. } else {
  11422. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11423. }
  11424. }
  11425. }
  11426. hooks.defineLocale('lt', {
  11427. months: {
  11428. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  11429. '_'
  11430. ),
  11431. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  11432. '_'
  11433. ),
  11434. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  11435. },
  11436. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11437. weekdays: {
  11438. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  11439. '_'
  11440. ),
  11441. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  11442. '_'
  11443. ),
  11444. isFormat: /dddd HH:mm/,
  11445. },
  11446. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  11447. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  11448. weekdaysParseExact: true,
  11449. longDateFormat: {
  11450. LT: 'HH:mm',
  11451. LTS: 'HH:mm:ss',
  11452. L: 'YYYY-MM-DD',
  11453. LL: 'YYYY [m.] MMMM D [d.]',
  11454. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11455. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  11456. l: 'YYYY-MM-DD',
  11457. ll: 'YYYY [m.] MMMM D [d.]',
  11458. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11459. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  11460. },
  11461. calendar: {
  11462. sameDay: '[Šiandien] LT',
  11463. nextDay: '[Rytoj] LT',
  11464. nextWeek: 'dddd LT',
  11465. lastDay: '[Vakar] LT',
  11466. lastWeek: '[Praėjusį] dddd LT',
  11467. sameElse: 'L',
  11468. },
  11469. relativeTime: {
  11470. future: 'po %s',
  11471. past: 'prieš %s',
  11472. s: translateSeconds,
  11473. ss: translate$6,
  11474. m: translateSingular,
  11475. mm: translate$6,
  11476. h: translateSingular,
  11477. hh: translate$6,
  11478. d: translateSingular,
  11479. dd: translate$6,
  11480. M: translateSingular,
  11481. MM: translate$6,
  11482. y: translateSingular,
  11483. yy: translate$6,
  11484. },
  11485. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  11486. ordinal: function (number) {
  11487. return number + '-oji';
  11488. },
  11489. week: {
  11490. dow: 1, // Monday is the first day of the week.
  11491. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11492. },
  11493. });
  11494. //! moment.js locale configuration
  11495. var units$1 = {
  11496. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  11497. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11498. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11499. h: 'stundas_stundām_stunda_stundas'.split('_'),
  11500. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  11501. d: 'dienas_dienām_diena_dienas'.split('_'),
  11502. dd: 'dienas_dienām_diena_dienas'.split('_'),
  11503. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11504. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11505. y: 'gada_gadiem_gads_gadi'.split('_'),
  11506. yy: 'gada_gadiem_gads_gadi'.split('_'),
  11507. };
  11508. /**
  11509. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  11510. */
  11511. function format$1(forms, number, withoutSuffix) {
  11512. if (withoutSuffix) {
  11513. // E.g. "21 minūte", "3 minūtes".
  11514. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  11515. } else {
  11516. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  11517. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  11518. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  11519. }
  11520. }
  11521. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  11522. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  11523. }
  11524. function relativeTimeWithSingular(number, withoutSuffix, key) {
  11525. return format$1(units$1[key], number, withoutSuffix);
  11526. }
  11527. function relativeSeconds(number, withoutSuffix) {
  11528. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  11529. }
  11530. hooks.defineLocale('lv', {
  11531. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  11532. '_'
  11533. ),
  11534. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  11535. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  11536. '_'
  11537. ),
  11538. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11539. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11540. weekdaysParseExact: true,
  11541. longDateFormat: {
  11542. LT: 'HH:mm',
  11543. LTS: 'HH:mm:ss',
  11544. L: 'DD.MM.YYYY.',
  11545. LL: 'YYYY. [gada] D. MMMM',
  11546. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  11547. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
  11548. },
  11549. calendar: {
  11550. sameDay: '[Šodien pulksten] LT',
  11551. nextDay: '[Rīt pulksten] LT',
  11552. nextWeek: 'dddd [pulksten] LT',
  11553. lastDay: '[Vakar pulksten] LT',
  11554. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  11555. sameElse: 'L',
  11556. },
  11557. relativeTime: {
  11558. future: 'pēc %s',
  11559. past: 'pirms %s',
  11560. s: relativeSeconds,
  11561. ss: relativeTimeWithPlural$1,
  11562. m: relativeTimeWithSingular,
  11563. mm: relativeTimeWithPlural$1,
  11564. h: relativeTimeWithSingular,
  11565. hh: relativeTimeWithPlural$1,
  11566. d: relativeTimeWithSingular,
  11567. dd: relativeTimeWithPlural$1,
  11568. M: relativeTimeWithSingular,
  11569. MM: relativeTimeWithPlural$1,
  11570. y: relativeTimeWithSingular,
  11571. yy: relativeTimeWithPlural$1,
  11572. },
  11573. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11574. ordinal: '%d.',
  11575. week: {
  11576. dow: 1, // Monday is the first day of the week.
  11577. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11578. },
  11579. });
  11580. //! moment.js locale configuration
  11581. var translator = {
  11582. words: {
  11583. //Different grammatical cases
  11584. ss: ['sekund', 'sekunda', 'sekundi'],
  11585. m: ['jedan minut', 'jednog minuta'],
  11586. mm: ['minut', 'minuta', 'minuta'],
  11587. h: ['jedan sat', 'jednog sata'],
  11588. hh: ['sat', 'sata', 'sati'],
  11589. dd: ['dan', 'dana', 'dana'],
  11590. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  11591. yy: ['godina', 'godine', 'godina'],
  11592. },
  11593. correctGrammaticalCase: function (number, wordKey) {
  11594. return number === 1
  11595. ? wordKey[0]
  11596. : number >= 2 && number <= 4
  11597. ? wordKey[1]
  11598. : wordKey[2];
  11599. },
  11600. translate: function (number, withoutSuffix, key) {
  11601. var wordKey = translator.words[key];
  11602. if (key.length === 1) {
  11603. return withoutSuffix ? wordKey[0] : wordKey[1];
  11604. } else {
  11605. return (
  11606. number +
  11607. ' ' +
  11608. translator.correctGrammaticalCase(number, wordKey)
  11609. );
  11610. }
  11611. },
  11612. };
  11613. hooks.defineLocale('me', {
  11614. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  11615. '_'
  11616. ),
  11617. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  11618. '_'
  11619. ),
  11620. monthsParseExact: true,
  11621. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  11622. '_'
  11623. ),
  11624. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  11625. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  11626. weekdaysParseExact: true,
  11627. longDateFormat: {
  11628. LT: 'H:mm',
  11629. LTS: 'H:mm:ss',
  11630. L: 'DD.MM.YYYY',
  11631. LL: 'D. MMMM YYYY',
  11632. LLL: 'D. MMMM YYYY H:mm',
  11633. LLLL: 'dddd, D. MMMM YYYY H:mm',
  11634. },
  11635. calendar: {
  11636. sameDay: '[danas u] LT',
  11637. nextDay: '[sjutra u] LT',
  11638. nextWeek: function () {
  11639. switch (this.day()) {
  11640. case 0:
  11641. return '[u] [nedjelju] [u] LT';
  11642. case 3:
  11643. return '[u] [srijedu] [u] LT';
  11644. case 6:
  11645. return '[u] [subotu] [u] LT';
  11646. case 1:
  11647. case 2:
  11648. case 4:
  11649. case 5:
  11650. return '[u] dddd [u] LT';
  11651. }
  11652. },
  11653. lastDay: '[juče u] LT',
  11654. lastWeek: function () {
  11655. var lastWeekDays = [
  11656. '[prošle] [nedjelje] [u] LT',
  11657. '[prošlog] [ponedjeljka] [u] LT',
  11658. '[prošlog] [utorka] [u] LT',
  11659. '[prošle] [srijede] [u] LT',
  11660. '[prošlog] [četvrtka] [u] LT',
  11661. '[prošlog] [petka] [u] LT',
  11662. '[prošle] [subote] [u] LT',
  11663. ];
  11664. return lastWeekDays[this.day()];
  11665. },
  11666. sameElse: 'L',
  11667. },
  11668. relativeTime: {
  11669. future: 'za %s',
  11670. past: 'prije %s',
  11671. s: 'nekoliko sekundi',
  11672. ss: translator.translate,
  11673. m: translator.translate,
  11674. mm: translator.translate,
  11675. h: translator.translate,
  11676. hh: translator.translate,
  11677. d: 'dan',
  11678. dd: translator.translate,
  11679. M: 'mjesec',
  11680. MM: translator.translate,
  11681. y: 'godinu',
  11682. yy: translator.translate,
  11683. },
  11684. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11685. ordinal: '%d.',
  11686. week: {
  11687. dow: 1, // Monday is the first day of the week.
  11688. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11689. },
  11690. });
  11691. //! moment.js locale configuration
  11692. hooks.defineLocale('mi', {
  11693. 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(
  11694. '_'
  11695. ),
  11696. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  11697. '_'
  11698. ),
  11699. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11700. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11701. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11702. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  11703. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  11704. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11705. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11706. longDateFormat: {
  11707. LT: 'HH:mm',
  11708. LTS: 'HH:mm:ss',
  11709. L: 'DD/MM/YYYY',
  11710. LL: 'D MMMM YYYY',
  11711. LLL: 'D MMMM YYYY [i] HH:mm',
  11712. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  11713. },
  11714. calendar: {
  11715. sameDay: '[i teie mahana, i] LT',
  11716. nextDay: '[apopo i] LT',
  11717. nextWeek: 'dddd [i] LT',
  11718. lastDay: '[inanahi i] LT',
  11719. lastWeek: 'dddd [whakamutunga i] LT',
  11720. sameElse: 'L',
  11721. },
  11722. relativeTime: {
  11723. future: 'i roto i %s',
  11724. past: '%s i mua',
  11725. s: 'te hēkona ruarua',
  11726. ss: '%d hēkona',
  11727. m: 'he meneti',
  11728. mm: '%d meneti',
  11729. h: 'te haora',
  11730. hh: '%d haora',
  11731. d: 'he ra',
  11732. dd: '%d ra',
  11733. M: 'he marama',
  11734. MM: '%d marama',
  11735. y: 'he tau',
  11736. yy: '%d tau',
  11737. },
  11738. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11739. ordinal: '%dº',
  11740. week: {
  11741. dow: 1, // Monday is the first day of the week.
  11742. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11743. },
  11744. });
  11745. //! moment.js locale configuration
  11746. hooks.defineLocale('mk', {
  11747. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  11748. '_'
  11749. ),
  11750. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  11751. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  11752. '_'
  11753. ),
  11754. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  11755. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  11756. longDateFormat: {
  11757. LT: 'H:mm',
  11758. LTS: 'H:mm:ss',
  11759. L: 'D.MM.YYYY',
  11760. LL: 'D MMMM YYYY',
  11761. LLL: 'D MMMM YYYY H:mm',
  11762. LLLL: 'dddd, D MMMM YYYY H:mm',
  11763. },
  11764. calendar: {
  11765. sameDay: '[Денес во] LT',
  11766. nextDay: '[Утре во] LT',
  11767. nextWeek: '[Во] dddd [во] LT',
  11768. lastDay: '[Вчера во] LT',
  11769. lastWeek: function () {
  11770. switch (this.day()) {
  11771. case 0:
  11772. case 3:
  11773. case 6:
  11774. return '[Изминатата] dddd [во] LT';
  11775. case 1:
  11776. case 2:
  11777. case 4:
  11778. case 5:
  11779. return '[Изминатиот] dddd [во] LT';
  11780. }
  11781. },
  11782. sameElse: 'L',
  11783. },
  11784. relativeTime: {
  11785. future: 'за %s',
  11786. past: 'пред %s',
  11787. s: 'неколку секунди',
  11788. ss: '%d секунди',
  11789. m: 'една минута',
  11790. mm: '%d минути',
  11791. h: 'еден час',
  11792. hh: '%d часа',
  11793. d: 'еден ден',
  11794. dd: '%d дена',
  11795. M: 'еден месец',
  11796. MM: '%d месеци',
  11797. y: 'една година',
  11798. yy: '%d години',
  11799. },
  11800. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  11801. ordinal: function (number) {
  11802. var lastDigit = number % 10,
  11803. last2Digits = number % 100;
  11804. if (number === 0) {
  11805. return number + '-ев';
  11806. } else if (last2Digits === 0) {
  11807. return number + '-ен';
  11808. } else if (last2Digits > 10 && last2Digits < 20) {
  11809. return number + '-ти';
  11810. } else if (lastDigit === 1) {
  11811. return number + '-ви';
  11812. } else if (lastDigit === 2) {
  11813. return number + '-ри';
  11814. } else if (lastDigit === 7 || lastDigit === 8) {
  11815. return number + '-ми';
  11816. } else {
  11817. return number + '-ти';
  11818. }
  11819. },
  11820. week: {
  11821. dow: 1, // Monday is the first day of the week.
  11822. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11823. },
  11824. });
  11825. //! moment.js locale configuration
  11826. hooks.defineLocale('ml', {
  11827. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  11828. '_'
  11829. ),
  11830. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  11831. '_'
  11832. ),
  11833. monthsParseExact: true,
  11834. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  11835. '_'
  11836. ),
  11837. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  11838. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  11839. longDateFormat: {
  11840. LT: 'A h:mm -നു',
  11841. LTS: 'A h:mm:ss -നു',
  11842. L: 'DD/MM/YYYY',
  11843. LL: 'D MMMM YYYY',
  11844. LLL: 'D MMMM YYYY, A h:mm -നു',
  11845. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
  11846. },
  11847. calendar: {
  11848. sameDay: '[ഇന്ന്] LT',
  11849. nextDay: '[നാളെ] LT',
  11850. nextWeek: 'dddd, LT',
  11851. lastDay: '[ഇന്നലെ] LT',
  11852. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  11853. sameElse: 'L',
  11854. },
  11855. relativeTime: {
  11856. future: '%s കഴിഞ്ഞ്',
  11857. past: '%s മുൻപ്',
  11858. s: 'അൽപ നിമിഷങ്ങൾ',
  11859. ss: '%d സെക്കൻഡ്',
  11860. m: 'ഒരു മിനിറ്റ്',
  11861. mm: '%d മിനിറ്റ്',
  11862. h: 'ഒരു മണിക്കൂർ',
  11863. hh: '%d മണിക്കൂർ',
  11864. d: 'ഒരു ദിവസം',
  11865. dd: '%d ദിവസം',
  11866. M: 'ഒരു മാസം',
  11867. MM: '%d മാസം',
  11868. y: 'ഒരു വർഷം',
  11869. yy: '%d വർഷം',
  11870. },
  11871. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  11872. meridiemHour: function (hour, meridiem) {
  11873. if (hour === 12) {
  11874. hour = 0;
  11875. }
  11876. if (
  11877. (meridiem === 'രാത്രി' && hour >= 4) ||
  11878. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  11879. meridiem === 'വൈകുന്നേരം'
  11880. ) {
  11881. return hour + 12;
  11882. } else {
  11883. return hour;
  11884. }
  11885. },
  11886. meridiem: function (hour, minute, isLower) {
  11887. if (hour < 4) {
  11888. return 'രാത്രി';
  11889. } else if (hour < 12) {
  11890. return 'രാവിലെ';
  11891. } else if (hour < 17) {
  11892. return 'ഉച്ച കഴിഞ്ഞ്';
  11893. } else if (hour < 20) {
  11894. return 'വൈകുന്നേരം';
  11895. } else {
  11896. return 'രാത്രി';
  11897. }
  11898. },
  11899. });
  11900. //! moment.js locale configuration
  11901. function translate$7(number, withoutSuffix, key, isFuture) {
  11902. switch (key) {
  11903. case 's':
  11904. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  11905. case 'ss':
  11906. return number + (withoutSuffix ? ' секунд' : ' секундын');
  11907. case 'm':
  11908. case 'mm':
  11909. return number + (withoutSuffix ? ' минут' : ' минутын');
  11910. case 'h':
  11911. case 'hh':
  11912. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  11913. case 'd':
  11914. case 'dd':
  11915. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  11916. case 'M':
  11917. case 'MM':
  11918. return number + (withoutSuffix ? ' сар' : ' сарын');
  11919. case 'y':
  11920. case 'yy':
  11921. return number + (withoutSuffix ? ' жил' : ' жилийн');
  11922. default:
  11923. return number;
  11924. }
  11925. }
  11926. hooks.defineLocale('mn', {
  11927. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  11928. '_'
  11929. ),
  11930. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  11931. '_'
  11932. ),
  11933. monthsParseExact: true,
  11934. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  11935. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  11936. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  11937. weekdaysParseExact: true,
  11938. longDateFormat: {
  11939. LT: 'HH:mm',
  11940. LTS: 'HH:mm:ss',
  11941. L: 'YYYY-MM-DD',
  11942. LL: 'YYYY оны MMMMын D',
  11943. LLL: 'YYYY оны MMMMын D HH:mm',
  11944. LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
  11945. },
  11946. meridiemParse: /ҮӨ|ҮХ/i,
  11947. isPM: function (input) {
  11948. return input === 'ҮХ';
  11949. },
  11950. meridiem: function (hour, minute, isLower) {
  11951. if (hour < 12) {
  11952. return 'ҮӨ';
  11953. } else {
  11954. return 'ҮХ';
  11955. }
  11956. },
  11957. calendar: {
  11958. sameDay: '[Өнөөдөр] LT',
  11959. nextDay: '[Маргааш] LT',
  11960. nextWeek: '[Ирэх] dddd LT',
  11961. lastDay: '[Өчигдөр] LT',
  11962. lastWeek: '[Өнгөрсөн] dddd LT',
  11963. sameElse: 'L',
  11964. },
  11965. relativeTime: {
  11966. future: '%s дараа',
  11967. past: '%s өмнө',
  11968. s: translate$7,
  11969. ss: translate$7,
  11970. m: translate$7,
  11971. mm: translate$7,
  11972. h: translate$7,
  11973. hh: translate$7,
  11974. d: translate$7,
  11975. dd: translate$7,
  11976. M: translate$7,
  11977. MM: translate$7,
  11978. y: translate$7,
  11979. yy: translate$7,
  11980. },
  11981. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  11982. ordinal: function (number, period) {
  11983. switch (period) {
  11984. case 'd':
  11985. case 'D':
  11986. case 'DDD':
  11987. return number + ' өдөр';
  11988. default:
  11989. return number;
  11990. }
  11991. },
  11992. });
  11993. //! moment.js locale configuration
  11994. var symbolMap$b = {
  11995. '1': '१',
  11996. '2': '२',
  11997. '3': '३',
  11998. '4': '४',
  11999. '5': '५',
  12000. '6': '६',
  12001. '7': '७',
  12002. '8': '८',
  12003. '9': '९',
  12004. '0': '०',
  12005. },
  12006. numberMap$a = {
  12007. '१': '1',
  12008. '२': '2',
  12009. '३': '3',
  12010. '४': '4',
  12011. '५': '5',
  12012. '६': '6',
  12013. '७': '7',
  12014. '८': '8',
  12015. '९': '9',
  12016. '०': '0',
  12017. };
  12018. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  12019. var output = '';
  12020. if (withoutSuffix) {
  12021. switch (string) {
  12022. case 's':
  12023. output = 'काही सेकंद';
  12024. break;
  12025. case 'ss':
  12026. output = '%d सेकंद';
  12027. break;
  12028. case 'm':
  12029. output = 'एक मिनिट';
  12030. break;
  12031. case 'mm':
  12032. output = '%d मिनिटे';
  12033. break;
  12034. case 'h':
  12035. output = 'एक तास';
  12036. break;
  12037. case 'hh':
  12038. output = '%d तास';
  12039. break;
  12040. case 'd':
  12041. output = 'एक दिवस';
  12042. break;
  12043. case 'dd':
  12044. output = '%d दिवस';
  12045. break;
  12046. case 'M':
  12047. output = 'एक महिना';
  12048. break;
  12049. case 'MM':
  12050. output = '%d महिने';
  12051. break;
  12052. case 'y':
  12053. output = 'एक वर्ष';
  12054. break;
  12055. case 'yy':
  12056. output = '%d वर्षे';
  12057. break;
  12058. }
  12059. } else {
  12060. switch (string) {
  12061. case 's':
  12062. output = 'काही सेकंदां';
  12063. break;
  12064. case 'ss':
  12065. output = '%d सेकंदां';
  12066. break;
  12067. case 'm':
  12068. output = 'एका मिनिटा';
  12069. break;
  12070. case 'mm':
  12071. output = '%d मिनिटां';
  12072. break;
  12073. case 'h':
  12074. output = 'एका तासा';
  12075. break;
  12076. case 'hh':
  12077. output = '%d तासां';
  12078. break;
  12079. case 'd':
  12080. output = 'एका दिवसा';
  12081. break;
  12082. case 'dd':
  12083. output = '%d दिवसां';
  12084. break;
  12085. case 'M':
  12086. output = 'एका महिन्या';
  12087. break;
  12088. case 'MM':
  12089. output = '%d महिन्यां';
  12090. break;
  12091. case 'y':
  12092. output = 'एका वर्षा';
  12093. break;
  12094. case 'yy':
  12095. output = '%d वर्षां';
  12096. break;
  12097. }
  12098. }
  12099. return output.replace(/%d/i, number);
  12100. }
  12101. hooks.defineLocale('mr', {
  12102. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  12103. '_'
  12104. ),
  12105. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  12106. '_'
  12107. ),
  12108. monthsParseExact: true,
  12109. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12110. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12111. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12112. longDateFormat: {
  12113. LT: 'A h:mm वाजता',
  12114. LTS: 'A h:mm:ss वाजता',
  12115. L: 'DD/MM/YYYY',
  12116. LL: 'D MMMM YYYY',
  12117. LLL: 'D MMMM YYYY, A h:mm वाजता',
  12118. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
  12119. },
  12120. calendar: {
  12121. sameDay: '[आज] LT',
  12122. nextDay: '[उद्या] LT',
  12123. nextWeek: 'dddd, LT',
  12124. lastDay: '[काल] LT',
  12125. lastWeek: '[मागील] dddd, LT',
  12126. sameElse: 'L',
  12127. },
  12128. relativeTime: {
  12129. future: '%sमध्ये',
  12130. past: '%sपूर्वी',
  12131. s: relativeTimeMr,
  12132. ss: relativeTimeMr,
  12133. m: relativeTimeMr,
  12134. mm: relativeTimeMr,
  12135. h: relativeTimeMr,
  12136. hh: relativeTimeMr,
  12137. d: relativeTimeMr,
  12138. dd: relativeTimeMr,
  12139. M: relativeTimeMr,
  12140. MM: relativeTimeMr,
  12141. y: relativeTimeMr,
  12142. yy: relativeTimeMr,
  12143. },
  12144. preparse: function (string) {
  12145. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12146. return numberMap$a[match];
  12147. });
  12148. },
  12149. postformat: function (string) {
  12150. return string.replace(/\d/g, function (match) {
  12151. return symbolMap$b[match];
  12152. });
  12153. },
  12154. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  12155. meridiemHour: function (hour, meridiem) {
  12156. if (hour === 12) {
  12157. hour = 0;
  12158. }
  12159. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  12160. return hour;
  12161. } else if (
  12162. meridiem === 'दुपारी' ||
  12163. meridiem === 'सायंकाळी' ||
  12164. meridiem === 'रात्री'
  12165. ) {
  12166. return hour >= 12 ? hour : hour + 12;
  12167. }
  12168. },
  12169. meridiem: function (hour, minute, isLower) {
  12170. if (hour >= 0 && hour < 6) {
  12171. return 'पहाटे';
  12172. } else if (hour < 12) {
  12173. return 'सकाळी';
  12174. } else if (hour < 17) {
  12175. return 'दुपारी';
  12176. } else if (hour < 20) {
  12177. return 'सायंकाळी';
  12178. } else {
  12179. return 'रात्री';
  12180. }
  12181. },
  12182. week: {
  12183. dow: 0, // Sunday is the first day of the week.
  12184. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12185. },
  12186. });
  12187. //! moment.js locale configuration
  12188. hooks.defineLocale('ms-my', {
  12189. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12190. '_'
  12191. ),
  12192. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12193. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12194. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12195. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12196. longDateFormat: {
  12197. LT: 'HH.mm',
  12198. LTS: 'HH.mm.ss',
  12199. L: 'DD/MM/YYYY',
  12200. LL: 'D MMMM YYYY',
  12201. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12202. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12203. },
  12204. meridiemParse: /pagi|tengahari|petang|malam/,
  12205. meridiemHour: function (hour, meridiem) {
  12206. if (hour === 12) {
  12207. hour = 0;
  12208. }
  12209. if (meridiem === 'pagi') {
  12210. return hour;
  12211. } else if (meridiem === 'tengahari') {
  12212. return hour >= 11 ? hour : hour + 12;
  12213. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12214. return hour + 12;
  12215. }
  12216. },
  12217. meridiem: function (hours, minutes, isLower) {
  12218. if (hours < 11) {
  12219. return 'pagi';
  12220. } else if (hours < 15) {
  12221. return 'tengahari';
  12222. } else if (hours < 19) {
  12223. return 'petang';
  12224. } else {
  12225. return 'malam';
  12226. }
  12227. },
  12228. calendar: {
  12229. sameDay: '[Hari ini pukul] LT',
  12230. nextDay: '[Esok pukul] LT',
  12231. nextWeek: 'dddd [pukul] LT',
  12232. lastDay: '[Kelmarin pukul] LT',
  12233. lastWeek: 'dddd [lepas pukul] LT',
  12234. sameElse: 'L',
  12235. },
  12236. relativeTime: {
  12237. future: 'dalam %s',
  12238. past: '%s yang lepas',
  12239. s: 'beberapa saat',
  12240. ss: '%d saat',
  12241. m: 'seminit',
  12242. mm: '%d minit',
  12243. h: 'sejam',
  12244. hh: '%d jam',
  12245. d: 'sehari',
  12246. dd: '%d hari',
  12247. M: 'sebulan',
  12248. MM: '%d bulan',
  12249. y: 'setahun',
  12250. yy: '%d tahun',
  12251. },
  12252. week: {
  12253. dow: 1, // Monday is the first day of the week.
  12254. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12255. },
  12256. });
  12257. //! moment.js locale configuration
  12258. hooks.defineLocale('ms', {
  12259. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12260. '_'
  12261. ),
  12262. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12263. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12264. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12265. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12266. longDateFormat: {
  12267. LT: 'HH.mm',
  12268. LTS: 'HH.mm.ss',
  12269. L: 'DD/MM/YYYY',
  12270. LL: 'D MMMM YYYY',
  12271. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12272. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12273. },
  12274. meridiemParse: /pagi|tengahari|petang|malam/,
  12275. meridiemHour: function (hour, meridiem) {
  12276. if (hour === 12) {
  12277. hour = 0;
  12278. }
  12279. if (meridiem === 'pagi') {
  12280. return hour;
  12281. } else if (meridiem === 'tengahari') {
  12282. return hour >= 11 ? hour : hour + 12;
  12283. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12284. return hour + 12;
  12285. }
  12286. },
  12287. meridiem: function (hours, minutes, isLower) {
  12288. if (hours < 11) {
  12289. return 'pagi';
  12290. } else if (hours < 15) {
  12291. return 'tengahari';
  12292. } else if (hours < 19) {
  12293. return 'petang';
  12294. } else {
  12295. return 'malam';
  12296. }
  12297. },
  12298. calendar: {
  12299. sameDay: '[Hari ini pukul] LT',
  12300. nextDay: '[Esok pukul] LT',
  12301. nextWeek: 'dddd [pukul] LT',
  12302. lastDay: '[Kelmarin pukul] LT',
  12303. lastWeek: 'dddd [lepas pukul] LT',
  12304. sameElse: 'L',
  12305. },
  12306. relativeTime: {
  12307. future: 'dalam %s',
  12308. past: '%s yang lepas',
  12309. s: 'beberapa saat',
  12310. ss: '%d saat',
  12311. m: 'seminit',
  12312. mm: '%d minit',
  12313. h: 'sejam',
  12314. hh: '%d jam',
  12315. d: 'sehari',
  12316. dd: '%d hari',
  12317. M: 'sebulan',
  12318. MM: '%d bulan',
  12319. y: 'setahun',
  12320. yy: '%d tahun',
  12321. },
  12322. week: {
  12323. dow: 1, // Monday is the first day of the week.
  12324. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12325. },
  12326. });
  12327. //! moment.js locale configuration
  12328. hooks.defineLocale('mt', {
  12329. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  12330. '_'
  12331. ),
  12332. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  12333. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  12334. '_'
  12335. ),
  12336. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  12337. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  12338. longDateFormat: {
  12339. LT: 'HH:mm',
  12340. LTS: 'HH:mm:ss',
  12341. L: 'DD/MM/YYYY',
  12342. LL: 'D MMMM YYYY',
  12343. LLL: 'D MMMM YYYY HH:mm',
  12344. LLLL: 'dddd, D MMMM YYYY HH:mm',
  12345. },
  12346. calendar: {
  12347. sameDay: '[Illum fil-]LT',
  12348. nextDay: '[Għada fil-]LT',
  12349. nextWeek: 'dddd [fil-]LT',
  12350. lastDay: '[Il-bieraħ fil-]LT',
  12351. lastWeek: 'dddd [li għadda] [fil-]LT',
  12352. sameElse: 'L',
  12353. },
  12354. relativeTime: {
  12355. future: 'f’ %s',
  12356. past: '%s ilu',
  12357. s: 'ftit sekondi',
  12358. ss: '%d sekondi',
  12359. m: 'minuta',
  12360. mm: '%d minuti',
  12361. h: 'siegħa',
  12362. hh: '%d siegħat',
  12363. d: 'ġurnata',
  12364. dd: '%d ġranet',
  12365. M: 'xahar',
  12366. MM: '%d xhur',
  12367. y: 'sena',
  12368. yy: '%d sni',
  12369. },
  12370. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12371. ordinal: '%dº',
  12372. week: {
  12373. dow: 1, // Monday is the first day of the week.
  12374. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12375. },
  12376. });
  12377. //! moment.js locale configuration
  12378. var symbolMap$c = {
  12379. '1': '၁',
  12380. '2': '၂',
  12381. '3': '၃',
  12382. '4': '၄',
  12383. '5': '၅',
  12384. '6': '၆',
  12385. '7': '၇',
  12386. '8': '၈',
  12387. '9': '၉',
  12388. '0': '၀',
  12389. },
  12390. numberMap$b = {
  12391. '၁': '1',
  12392. '၂': '2',
  12393. '၃': '3',
  12394. '၄': '4',
  12395. '၅': '5',
  12396. '၆': '6',
  12397. '၇': '7',
  12398. '၈': '8',
  12399. '၉': '9',
  12400. '၀': '0',
  12401. };
  12402. hooks.defineLocale('my', {
  12403. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  12404. '_'
  12405. ),
  12406. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12407. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  12408. '_'
  12409. ),
  12410. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12411. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12412. longDateFormat: {
  12413. LT: 'HH:mm',
  12414. LTS: 'HH:mm:ss',
  12415. L: 'DD/MM/YYYY',
  12416. LL: 'D MMMM YYYY',
  12417. LLL: 'D MMMM YYYY HH:mm',
  12418. LLLL: 'dddd D MMMM YYYY HH:mm',
  12419. },
  12420. calendar: {
  12421. sameDay: '[ယနေ.] LT [မှာ]',
  12422. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12423. nextWeek: 'dddd LT [မှာ]',
  12424. lastDay: '[မနေ.က] LT [မှာ]',
  12425. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12426. sameElse: 'L',
  12427. },
  12428. relativeTime: {
  12429. future: 'လာမည့် %s မှာ',
  12430. past: 'လွန်ခဲ့သော %s က',
  12431. s: 'စက္ကန်.အနည်းငယ်',
  12432. ss: '%d စက္ကန့်',
  12433. m: 'တစ်မိနစ်',
  12434. mm: '%d မိနစ်',
  12435. h: 'တစ်နာရီ',
  12436. hh: '%d နာရီ',
  12437. d: 'တစ်ရက်',
  12438. dd: '%d ရက်',
  12439. M: 'တစ်လ',
  12440. MM: '%d လ',
  12441. y: 'တစ်နှစ်',
  12442. yy: '%d နှစ်',
  12443. },
  12444. preparse: function (string) {
  12445. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  12446. return numberMap$b[match];
  12447. });
  12448. },
  12449. postformat: function (string) {
  12450. return string.replace(/\d/g, function (match) {
  12451. return symbolMap$c[match];
  12452. });
  12453. },
  12454. week: {
  12455. dow: 1, // Monday is the first day of the week.
  12456. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12457. },
  12458. });
  12459. //! moment.js locale configuration
  12460. hooks.defineLocale('nb', {
  12461. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12462. '_'
  12463. ),
  12464. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  12465. '_'
  12466. ),
  12467. monthsParseExact: true,
  12468. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  12469. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  12470. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  12471. weekdaysParseExact: true,
  12472. longDateFormat: {
  12473. LT: 'HH:mm',
  12474. LTS: 'HH:mm:ss',
  12475. L: 'DD.MM.YYYY',
  12476. LL: 'D. MMMM YYYY',
  12477. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  12478. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  12479. },
  12480. calendar: {
  12481. sameDay: '[i dag kl.] LT',
  12482. nextDay: '[i morgen kl.] LT',
  12483. nextWeek: 'dddd [kl.] LT',
  12484. lastDay: '[i går kl.] LT',
  12485. lastWeek: '[forrige] dddd [kl.] LT',
  12486. sameElse: 'L',
  12487. },
  12488. relativeTime: {
  12489. future: 'om %s',
  12490. past: '%s siden',
  12491. s: 'noen sekunder',
  12492. ss: '%d sekunder',
  12493. m: 'ett minutt',
  12494. mm: '%d minutter',
  12495. h: 'en time',
  12496. hh: '%d timer',
  12497. d: 'en dag',
  12498. dd: '%d dager',
  12499. M: 'en måned',
  12500. MM: '%d måneder',
  12501. y: 'ett år',
  12502. yy: '%d år',
  12503. },
  12504. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12505. ordinal: '%d.',
  12506. week: {
  12507. dow: 1, // Monday is the first day of the week.
  12508. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12509. },
  12510. });
  12511. //! moment.js locale configuration
  12512. var symbolMap$d = {
  12513. '1': '१',
  12514. '2': '२',
  12515. '3': '३',
  12516. '4': '४',
  12517. '5': '५',
  12518. '6': '६',
  12519. '7': '७',
  12520. '8': '८',
  12521. '9': '९',
  12522. '0': '०',
  12523. },
  12524. numberMap$c = {
  12525. '१': '1',
  12526. '२': '2',
  12527. '३': '3',
  12528. '४': '4',
  12529. '५': '5',
  12530. '६': '6',
  12531. '७': '7',
  12532. '८': '8',
  12533. '९': '9',
  12534. '०': '0',
  12535. };
  12536. hooks.defineLocale('ne', {
  12537. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  12538. '_'
  12539. ),
  12540. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  12541. '_'
  12542. ),
  12543. monthsParseExact: true,
  12544. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  12545. '_'
  12546. ),
  12547. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  12548. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  12549. weekdaysParseExact: true,
  12550. longDateFormat: {
  12551. LT: 'Aको h:mm बजे',
  12552. LTS: 'Aको h:mm:ss बजे',
  12553. L: 'DD/MM/YYYY',
  12554. LL: 'D MMMM YYYY',
  12555. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  12556. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  12557. },
  12558. preparse: function (string) {
  12559. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12560. return numberMap$c[match];
  12561. });
  12562. },
  12563. postformat: function (string) {
  12564. return string.replace(/\d/g, function (match) {
  12565. return symbolMap$d[match];
  12566. });
  12567. },
  12568. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  12569. meridiemHour: function (hour, meridiem) {
  12570. if (hour === 12) {
  12571. hour = 0;
  12572. }
  12573. if (meridiem === 'राति') {
  12574. return hour < 4 ? hour : hour + 12;
  12575. } else if (meridiem === 'बिहान') {
  12576. return hour;
  12577. } else if (meridiem === 'दिउँसो') {
  12578. return hour >= 10 ? hour : hour + 12;
  12579. } else if (meridiem === 'साँझ') {
  12580. return hour + 12;
  12581. }
  12582. },
  12583. meridiem: function (hour, minute, isLower) {
  12584. if (hour < 3) {
  12585. return 'राति';
  12586. } else if (hour < 12) {
  12587. return 'बिहान';
  12588. } else if (hour < 16) {
  12589. return 'दिउँसो';
  12590. } else if (hour < 20) {
  12591. return 'साँझ';
  12592. } else {
  12593. return 'राति';
  12594. }
  12595. },
  12596. calendar: {
  12597. sameDay: '[आज] LT',
  12598. nextDay: '[भोलि] LT',
  12599. nextWeek: '[आउँदो] dddd[,] LT',
  12600. lastDay: '[हिजो] LT',
  12601. lastWeek: '[गएको] dddd[,] LT',
  12602. sameElse: 'L',
  12603. },
  12604. relativeTime: {
  12605. future: '%sमा',
  12606. past: '%s अगाडि',
  12607. s: 'केही क्षण',
  12608. ss: '%d सेकेण्ड',
  12609. m: 'एक मिनेट',
  12610. mm: '%d मिनेट',
  12611. h: 'एक घण्टा',
  12612. hh: '%d घण्टा',
  12613. d: 'एक दिन',
  12614. dd: '%d दिन',
  12615. M: 'एक महिना',
  12616. MM: '%d महिना',
  12617. y: 'एक बर्ष',
  12618. yy: '%d बर्ष',
  12619. },
  12620. week: {
  12621. dow: 0, // Sunday is the first day of the week.
  12622. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12623. },
  12624. });
  12625. //! moment.js locale configuration
  12626. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  12627. '_'
  12628. ),
  12629. monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  12630. '_'
  12631. ),
  12632. monthsParse$4 = [
  12633. /^jan/i,
  12634. /^feb/i,
  12635. /^maart|mrt.?$/i,
  12636. /^apr/i,
  12637. /^mei$/i,
  12638. /^jun[i.]?$/i,
  12639. /^jul[i.]?$/i,
  12640. /^aug/i,
  12641. /^sep/i,
  12642. /^okt/i,
  12643. /^nov/i,
  12644. /^dec/i,
  12645. ],
  12646. monthsRegex$5 = /^(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;
  12647. hooks.defineLocale('nl-be', {
  12648. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  12649. '_'
  12650. ),
  12651. monthsShort: function (m, format) {
  12652. if (!m) {
  12653. return monthsShortWithDots$1;
  12654. } else if (/-MMM-/.test(format)) {
  12655. return monthsShortWithoutDots$1[m.month()];
  12656. } else {
  12657. return monthsShortWithDots$1[m.month()];
  12658. }
  12659. },
  12660. monthsRegex: monthsRegex$5,
  12661. monthsShortRegex: monthsRegex$5,
  12662. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  12663. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12664. monthsParse: monthsParse$4,
  12665. longMonthsParse: monthsParse$4,
  12666. shortMonthsParse: monthsParse$4,
  12667. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  12668. '_'
  12669. ),
  12670. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12671. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  12672. weekdaysParseExact: true,
  12673. longDateFormat: {
  12674. LT: 'HH:mm',
  12675. LTS: 'HH:mm:ss',
  12676. L: 'DD/MM/YYYY',
  12677. LL: 'D MMMM YYYY',
  12678. LLL: 'D MMMM YYYY HH:mm',
  12679. LLLL: 'dddd D MMMM YYYY HH:mm',
  12680. },
  12681. calendar: {
  12682. sameDay: '[vandaag om] LT',
  12683. nextDay: '[morgen om] LT',
  12684. nextWeek: 'dddd [om] LT',
  12685. lastDay: '[gisteren om] LT',
  12686. lastWeek: '[afgelopen] dddd [om] LT',
  12687. sameElse: 'L',
  12688. },
  12689. relativeTime: {
  12690. future: 'over %s',
  12691. past: '%s geleden',
  12692. s: 'een paar seconden',
  12693. ss: '%d seconden',
  12694. m: 'één minuut',
  12695. mm: '%d minuten',
  12696. h: 'één uur',
  12697. hh: '%d uur',
  12698. d: 'één dag',
  12699. dd: '%d dagen',
  12700. M: 'één maand',
  12701. MM: '%d maanden',
  12702. y: 'één jaar',
  12703. yy: '%d jaar',
  12704. },
  12705. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12706. ordinal: function (number) {
  12707. return (
  12708. number +
  12709. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  12710. );
  12711. },
  12712. week: {
  12713. dow: 1, // Monday is the first day of the week.
  12714. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12715. },
  12716. });
  12717. //! moment.js locale configuration
  12718. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  12719. '_'
  12720. ),
  12721. monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  12722. '_'
  12723. ),
  12724. monthsParse$5 = [
  12725. /^jan/i,
  12726. /^feb/i,
  12727. /^maart|mrt.?$/i,
  12728. /^apr/i,
  12729. /^mei$/i,
  12730. /^jun[i.]?$/i,
  12731. /^jul[i.]?$/i,
  12732. /^aug/i,
  12733. /^sep/i,
  12734. /^okt/i,
  12735. /^nov/i,
  12736. /^dec/i,
  12737. ],
  12738. monthsRegex$6 = /^(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;
  12739. hooks.defineLocale('nl', {
  12740. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  12741. '_'
  12742. ),
  12743. monthsShort: function (m, format) {
  12744. if (!m) {
  12745. return monthsShortWithDots$2;
  12746. } else if (/-MMM-/.test(format)) {
  12747. return monthsShortWithoutDots$2[m.month()];
  12748. } else {
  12749. return monthsShortWithDots$2[m.month()];
  12750. }
  12751. },
  12752. monthsRegex: monthsRegex$6,
  12753. monthsShortRegex: monthsRegex$6,
  12754. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  12755. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12756. monthsParse: monthsParse$5,
  12757. longMonthsParse: monthsParse$5,
  12758. shortMonthsParse: monthsParse$5,
  12759. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  12760. '_'
  12761. ),
  12762. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12763. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  12764. weekdaysParseExact: true,
  12765. longDateFormat: {
  12766. LT: 'HH:mm',
  12767. LTS: 'HH:mm:ss',
  12768. L: 'DD-MM-YYYY',
  12769. LL: 'D MMMM YYYY',
  12770. LLL: 'D MMMM YYYY HH:mm',
  12771. LLLL: 'dddd D MMMM YYYY HH:mm',
  12772. },
  12773. calendar: {
  12774. sameDay: '[vandaag om] LT',
  12775. nextDay: '[morgen om] LT',
  12776. nextWeek: 'dddd [om] LT',
  12777. lastDay: '[gisteren om] LT',
  12778. lastWeek: '[afgelopen] dddd [om] LT',
  12779. sameElse: 'L',
  12780. },
  12781. relativeTime: {
  12782. future: 'over %s',
  12783. past: '%s geleden',
  12784. s: 'een paar seconden',
  12785. ss: '%d seconden',
  12786. m: 'één minuut',
  12787. mm: '%d minuten',
  12788. h: 'één uur',
  12789. hh: '%d uur',
  12790. d: 'één dag',
  12791. dd: '%d dagen',
  12792. M: 'één maand',
  12793. MM: '%d maanden',
  12794. y: 'één jaar',
  12795. yy: '%d jaar',
  12796. },
  12797. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12798. ordinal: function (number) {
  12799. return (
  12800. number +
  12801. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  12802. );
  12803. },
  12804. week: {
  12805. dow: 1, // Monday is the first day of the week.
  12806. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12807. },
  12808. });
  12809. //! moment.js locale configuration
  12810. hooks.defineLocale('nn', {
  12811. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12812. '_'
  12813. ),
  12814. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  12815. '_'
  12816. ),
  12817. monthsParseExact: true,
  12818. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  12819. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  12820. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  12821. weekdaysParseExact: true,
  12822. longDateFormat: {
  12823. LT: 'HH:mm',
  12824. LTS: 'HH:mm:ss',
  12825. L: 'DD.MM.YYYY',
  12826. LL: 'D. MMMM YYYY',
  12827. LLL: 'D. MMMM YYYY [kl.] H:mm',
  12828. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  12829. },
  12830. calendar: {
  12831. sameDay: '[I dag klokka] LT',
  12832. nextDay: '[I morgon klokka] LT',
  12833. nextWeek: 'dddd [klokka] LT',
  12834. lastDay: '[I går klokka] LT',
  12835. lastWeek: '[Føregåande] dddd [klokka] LT',
  12836. sameElse: 'L',
  12837. },
  12838. relativeTime: {
  12839. future: 'om %s',
  12840. past: '%s sidan',
  12841. s: 'nokre sekund',
  12842. ss: '%d sekund',
  12843. m: 'eit minutt',
  12844. mm: '%d minutt',
  12845. h: 'ein time',
  12846. hh: '%d timar',
  12847. d: 'ein dag',
  12848. dd: '%d dagar',
  12849. M: 'ein månad',
  12850. MM: '%d månader',
  12851. y: 'eit år',
  12852. yy: '%d år',
  12853. },
  12854. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12855. ordinal: '%d.',
  12856. week: {
  12857. dow: 1, // Monday is the first day of the week.
  12858. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12859. },
  12860. });
  12861. //! moment.js locale configuration
  12862. hooks.defineLocale('oc-lnc', {
  12863. months: {
  12864. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  12865. '_'
  12866. ),
  12867. 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(
  12868. '_'
  12869. ),
  12870. isFormat: /D[oD]?(\s)+MMMM/,
  12871. },
  12872. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  12873. '_'
  12874. ),
  12875. monthsParseExact: true,
  12876. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  12877. '_'
  12878. ),
  12879. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  12880. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  12881. weekdaysParseExact: true,
  12882. longDateFormat: {
  12883. LT: 'H:mm',
  12884. LTS: 'H:mm:ss',
  12885. L: 'DD/MM/YYYY',
  12886. LL: 'D MMMM [de] YYYY',
  12887. ll: 'D MMM YYYY',
  12888. LLL: 'D MMMM [de] YYYY [a] H:mm',
  12889. lll: 'D MMM YYYY, H:mm',
  12890. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  12891. llll: 'ddd D MMM YYYY, H:mm',
  12892. },
  12893. calendar: {
  12894. sameDay: '[uèi a] LT',
  12895. nextDay: '[deman a] LT',
  12896. nextWeek: 'dddd [a] LT',
  12897. lastDay: '[ièr a] LT',
  12898. lastWeek: 'dddd [passat a] LT',
  12899. sameElse: 'L',
  12900. },
  12901. relativeTime: {
  12902. future: "d'aquí %s",
  12903. past: 'fa %s',
  12904. s: 'unas segondas',
  12905. ss: '%d segondas',
  12906. m: 'una minuta',
  12907. mm: '%d minutas',
  12908. h: 'una ora',
  12909. hh: '%d oras',
  12910. d: 'un jorn',
  12911. dd: '%d jorns',
  12912. M: 'un mes',
  12913. MM: '%d meses',
  12914. y: 'un an',
  12915. yy: '%d ans',
  12916. },
  12917. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  12918. ordinal: function (number, period) {
  12919. var output =
  12920. number === 1
  12921. ? 'r'
  12922. : number === 2
  12923. ? 'n'
  12924. : number === 3
  12925. ? 'r'
  12926. : number === 4
  12927. ? 't'
  12928. : 'è';
  12929. if (period === 'w' || period === 'W') {
  12930. output = 'a';
  12931. }
  12932. return number + output;
  12933. },
  12934. week: {
  12935. dow: 1, // Monday is the first day of the week.
  12936. doy: 4,
  12937. },
  12938. });
  12939. //! moment.js locale configuration
  12940. var symbolMap$e = {
  12941. '1': '੧',
  12942. '2': '੨',
  12943. '3': '੩',
  12944. '4': '੪',
  12945. '5': '੫',
  12946. '6': '੬',
  12947. '7': '੭',
  12948. '8': '੮',
  12949. '9': '੯',
  12950. '0': '੦',
  12951. },
  12952. numberMap$d = {
  12953. '੧': '1',
  12954. '੨': '2',
  12955. '੩': '3',
  12956. '੪': '4',
  12957. '੫': '5',
  12958. '੬': '6',
  12959. '੭': '7',
  12960. '੮': '8',
  12961. '੯': '9',
  12962. '੦': '0',
  12963. };
  12964. hooks.defineLocale('pa-in', {
  12965. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  12966. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  12967. '_'
  12968. ),
  12969. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  12970. '_'
  12971. ),
  12972. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  12973. '_'
  12974. ),
  12975. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  12976. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  12977. longDateFormat: {
  12978. LT: 'A h:mm ਵਜੇ',
  12979. LTS: 'A h:mm:ss ਵਜੇ',
  12980. L: 'DD/MM/YYYY',
  12981. LL: 'D MMMM YYYY',
  12982. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  12983. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
  12984. },
  12985. calendar: {
  12986. sameDay: '[ਅਜ] LT',
  12987. nextDay: '[ਕਲ] LT',
  12988. nextWeek: '[ਅਗਲਾ] dddd, LT',
  12989. lastDay: '[ਕਲ] LT',
  12990. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  12991. sameElse: 'L',
  12992. },
  12993. relativeTime: {
  12994. future: '%s ਵਿੱਚ',
  12995. past: '%s ਪਿਛਲੇ',
  12996. s: 'ਕੁਝ ਸਕਿੰਟ',
  12997. ss: '%d ਸਕਿੰਟ',
  12998. m: 'ਇਕ ਮਿੰਟ',
  12999. mm: '%d ਮਿੰਟ',
  13000. h: 'ਇੱਕ ਘੰਟਾ',
  13001. hh: '%d ਘੰਟੇ',
  13002. d: 'ਇੱਕ ਦਿਨ',
  13003. dd: '%d ਦਿਨ',
  13004. M: 'ਇੱਕ ਮਹੀਨਾ',
  13005. MM: '%d ਮਹੀਨੇ',
  13006. y: 'ਇੱਕ ਸਾਲ',
  13007. yy: '%d ਸਾਲ',
  13008. },
  13009. preparse: function (string) {
  13010. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13011. return numberMap$d[match];
  13012. });
  13013. },
  13014. postformat: function (string) {
  13015. return string.replace(/\d/g, function (match) {
  13016. return symbolMap$e[match];
  13017. });
  13018. },
  13019. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13020. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13021. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13022. meridiemHour: function (hour, meridiem) {
  13023. if (hour === 12) {
  13024. hour = 0;
  13025. }
  13026. if (meridiem === 'ਰਾਤ') {
  13027. return hour < 4 ? hour : hour + 12;
  13028. } else if (meridiem === 'ਸਵੇਰ') {
  13029. return hour;
  13030. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13031. return hour >= 10 ? hour : hour + 12;
  13032. } else if (meridiem === 'ਸ਼ਾਮ') {
  13033. return hour + 12;
  13034. }
  13035. },
  13036. meridiem: function (hour, minute, isLower) {
  13037. if (hour < 4) {
  13038. return 'ਰਾਤ';
  13039. } else if (hour < 10) {
  13040. return 'ਸਵੇਰ';
  13041. } else if (hour < 17) {
  13042. return 'ਦੁਪਹਿਰ';
  13043. } else if (hour < 20) {
  13044. return 'ਸ਼ਾਮ';
  13045. } else {
  13046. return 'ਰਾਤ';
  13047. }
  13048. },
  13049. week: {
  13050. dow: 0, // Sunday is the first day of the week.
  13051. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13052. },
  13053. });
  13054. //! moment.js locale configuration
  13055. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  13056. '_'
  13057. ),
  13058. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  13059. '_'
  13060. );
  13061. function plural$3(n) {
  13062. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  13063. }
  13064. function translate$8(number, withoutSuffix, key) {
  13065. var result = number + ' ';
  13066. switch (key) {
  13067. case 'ss':
  13068. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  13069. case 'm':
  13070. return withoutSuffix ? 'minuta' : 'minutę';
  13071. case 'mm':
  13072. return result + (plural$3(number) ? 'minuty' : 'minut');
  13073. case 'h':
  13074. return withoutSuffix ? 'godzina' : 'godzinę';
  13075. case 'hh':
  13076. return result + (plural$3(number) ? 'godziny' : 'godzin');
  13077. case 'MM':
  13078. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  13079. case 'yy':
  13080. return result + (plural$3(number) ? 'lata' : 'lat');
  13081. }
  13082. }
  13083. hooks.defineLocale('pl', {
  13084. months: function (momentToFormat, format) {
  13085. if (!momentToFormat) {
  13086. return monthsNominative;
  13087. } else if (format === '') {
  13088. // Hack: if format empty we know this is used to generate
  13089. // RegExp by moment. Give then back both valid forms of months
  13090. // in RegExp ready format.
  13091. return (
  13092. '(' +
  13093. monthsSubjective[momentToFormat.month()] +
  13094. '|' +
  13095. monthsNominative[momentToFormat.month()] +
  13096. ')'
  13097. );
  13098. } else if (/D MMMM/.test(format)) {
  13099. return monthsSubjective[momentToFormat.month()];
  13100. } else {
  13101. return monthsNominative[momentToFormat.month()];
  13102. }
  13103. },
  13104. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13105. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
  13106. '_'
  13107. ),
  13108. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13109. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13110. longDateFormat: {
  13111. LT: 'HH:mm',
  13112. LTS: 'HH:mm:ss',
  13113. L: 'DD.MM.YYYY',
  13114. LL: 'D MMMM YYYY',
  13115. LLL: 'D MMMM YYYY HH:mm',
  13116. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13117. },
  13118. calendar: {
  13119. sameDay: '[Dziś o] LT',
  13120. nextDay: '[Jutro o] LT',
  13121. nextWeek: function () {
  13122. switch (this.day()) {
  13123. case 0:
  13124. return '[W niedzielę o] LT';
  13125. case 2:
  13126. return '[We wtorek o] LT';
  13127. case 3:
  13128. return '[W środę o] LT';
  13129. case 6:
  13130. return '[W sobotę o] LT';
  13131. default:
  13132. return '[W] dddd [o] LT';
  13133. }
  13134. },
  13135. lastDay: '[Wczoraj o] LT',
  13136. lastWeek: function () {
  13137. switch (this.day()) {
  13138. case 0:
  13139. return '[W zeszłą niedzielę o] LT';
  13140. case 3:
  13141. return '[W zeszłą środę o] LT';
  13142. case 6:
  13143. return '[W zeszłą sobotę o] LT';
  13144. default:
  13145. return '[W zeszły] dddd [o] LT';
  13146. }
  13147. },
  13148. sameElse: 'L',
  13149. },
  13150. relativeTime: {
  13151. future: 'za %s',
  13152. past: '%s temu',
  13153. s: 'kilka sekund',
  13154. ss: translate$8,
  13155. m: translate$8,
  13156. mm: translate$8,
  13157. h: translate$8,
  13158. hh: translate$8,
  13159. d: '1 dzień',
  13160. dd: '%d dni',
  13161. M: 'miesiąc',
  13162. MM: translate$8,
  13163. y: 'rok',
  13164. yy: translate$8,
  13165. },
  13166. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13167. ordinal: '%d.',
  13168. week: {
  13169. dow: 1, // Monday is the first day of the week.
  13170. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13171. },
  13172. });
  13173. //! moment.js locale configuration
  13174. hooks.defineLocale('pt-br', {
  13175. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13176. '_'
  13177. ),
  13178. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13179. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  13180. '_'
  13181. ),
  13182. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  13183. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  13184. weekdaysParseExact: true,
  13185. longDateFormat: {
  13186. LT: 'HH:mm',
  13187. LTS: 'HH:mm:ss',
  13188. L: 'DD/MM/YYYY',
  13189. LL: 'D [de] MMMM [de] YYYY',
  13190. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  13191. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
  13192. },
  13193. calendar: {
  13194. sameDay: '[Hoje às] LT',
  13195. nextDay: '[Amanhã às] LT',
  13196. nextWeek: 'dddd [às] LT',
  13197. lastDay: '[Ontem às] LT',
  13198. lastWeek: function () {
  13199. return this.day() === 0 || this.day() === 6
  13200. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13201. : '[Última] dddd [às] LT'; // Monday - Friday
  13202. },
  13203. sameElse: 'L',
  13204. },
  13205. relativeTime: {
  13206. future: 'em %s',
  13207. past: 'há %s',
  13208. s: 'poucos segundos',
  13209. ss: '%d segundos',
  13210. m: 'um minuto',
  13211. mm: '%d minutos',
  13212. h: 'uma hora',
  13213. hh: '%d horas',
  13214. d: 'um dia',
  13215. dd: '%d dias',
  13216. M: 'um mês',
  13217. MM: '%d meses',
  13218. y: 'um ano',
  13219. yy: '%d anos',
  13220. },
  13221. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13222. ordinal: '%dº',
  13223. });
  13224. //! moment.js locale configuration
  13225. hooks.defineLocale('pt', {
  13226. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13227. '_'
  13228. ),
  13229. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13230. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  13231. '_'
  13232. ),
  13233. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13234. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13235. weekdaysParseExact: true,
  13236. longDateFormat: {
  13237. LT: 'HH:mm',
  13238. LTS: 'HH:mm:ss',
  13239. L: 'DD/MM/YYYY',
  13240. LL: 'D [de] MMMM [de] YYYY',
  13241. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  13242. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
  13243. },
  13244. calendar: {
  13245. sameDay: '[Hoje às] LT',
  13246. nextDay: '[Amanhã às] LT',
  13247. nextWeek: 'dddd [às] LT',
  13248. lastDay: '[Ontem às] LT',
  13249. lastWeek: function () {
  13250. return this.day() === 0 || this.day() === 6
  13251. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13252. : '[Última] dddd [às] LT'; // Monday - Friday
  13253. },
  13254. sameElse: 'L',
  13255. },
  13256. relativeTime: {
  13257. future: 'em %s',
  13258. past: 'há %s',
  13259. s: 'segundos',
  13260. ss: '%d segundos',
  13261. m: 'um minuto',
  13262. mm: '%d minutos',
  13263. h: 'uma hora',
  13264. hh: '%d horas',
  13265. d: 'um dia',
  13266. dd: '%d dias',
  13267. M: 'um mês',
  13268. MM: '%d meses',
  13269. y: 'um ano',
  13270. yy: '%d anos',
  13271. },
  13272. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13273. ordinal: '%dº',
  13274. week: {
  13275. dow: 1, // Monday is the first day of the week.
  13276. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13277. },
  13278. });
  13279. //! moment.js locale configuration
  13280. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  13281. var format = {
  13282. ss: 'secunde',
  13283. mm: 'minute',
  13284. hh: 'ore',
  13285. dd: 'zile',
  13286. MM: 'luni',
  13287. yy: 'ani',
  13288. },
  13289. separator = ' ';
  13290. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13291. separator = ' de ';
  13292. }
  13293. return number + separator + format[key];
  13294. }
  13295. hooks.defineLocale('ro', {
  13296. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  13297. '_'
  13298. ),
  13299. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  13300. '_'
  13301. ),
  13302. monthsParseExact: true,
  13303. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13304. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13305. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13306. longDateFormat: {
  13307. LT: 'H:mm',
  13308. LTS: 'H:mm:ss',
  13309. L: 'DD.MM.YYYY',
  13310. LL: 'D MMMM YYYY',
  13311. LLL: 'D MMMM YYYY H:mm',
  13312. LLLL: 'dddd, D MMMM YYYY H:mm',
  13313. },
  13314. calendar: {
  13315. sameDay: '[azi la] LT',
  13316. nextDay: '[mâine la] LT',
  13317. nextWeek: 'dddd [la] LT',
  13318. lastDay: '[ieri la] LT',
  13319. lastWeek: '[fosta] dddd [la] LT',
  13320. sameElse: 'L',
  13321. },
  13322. relativeTime: {
  13323. future: 'peste %s',
  13324. past: '%s în urmă',
  13325. s: 'câteva secunde',
  13326. ss: relativeTimeWithPlural$2,
  13327. m: 'un minut',
  13328. mm: relativeTimeWithPlural$2,
  13329. h: 'o oră',
  13330. hh: relativeTimeWithPlural$2,
  13331. d: 'o zi',
  13332. dd: relativeTimeWithPlural$2,
  13333. M: 'o lună',
  13334. MM: relativeTimeWithPlural$2,
  13335. y: 'un an',
  13336. yy: relativeTimeWithPlural$2,
  13337. },
  13338. week: {
  13339. dow: 1, // Monday is the first day of the week.
  13340. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13341. },
  13342. });
  13343. //! moment.js locale configuration
  13344. function plural$4(word, num) {
  13345. var forms = word.split('_');
  13346. return num % 10 === 1 && num % 100 !== 11
  13347. ? forms[0]
  13348. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  13349. ? forms[1]
  13350. : forms[2];
  13351. }
  13352. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  13353. var format = {
  13354. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  13355. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13356. hh: 'час_часа_часов',
  13357. dd: 'день_дня_дней',
  13358. MM: 'месяц_месяца_месяцев',
  13359. yy: 'год_года_лет',
  13360. };
  13361. if (key === 'm') {
  13362. return withoutSuffix ? 'минута' : 'минуту';
  13363. } else {
  13364. return number + ' ' + plural$4(format[key], +number);
  13365. }
  13366. }
  13367. var monthsParse$6 = [
  13368. /^янв/i,
  13369. /^фев/i,
  13370. /^мар/i,
  13371. /^апр/i,
  13372. /^ма[йя]/i,
  13373. /^июн/i,
  13374. /^июл/i,
  13375. /^авг/i,
  13376. /^сен/i,
  13377. /^окт/i,
  13378. /^ноя/i,
  13379. /^дек/i,
  13380. ];
  13381. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13382. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13383. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13384. hooks.defineLocale('ru', {
  13385. months: {
  13386. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  13387. '_'
  13388. ),
  13389. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  13390. '_'
  13391. ),
  13392. },
  13393. monthsShort: {
  13394. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  13395. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  13396. '_'
  13397. ),
  13398. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  13399. '_'
  13400. ),
  13401. },
  13402. weekdays: {
  13403. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  13404. '_'
  13405. ),
  13406. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  13407. '_'
  13408. ),
  13409. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/,
  13410. },
  13411. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13412. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13413. monthsParse: monthsParse$6,
  13414. longMonthsParse: monthsParse$6,
  13415. shortMonthsParse: monthsParse$6,
  13416. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  13417. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13418. // копия предыдущего
  13419. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13420. // полные названия с падежами
  13421. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  13422. // Выражение, которое соотвествует только сокращённым формам
  13423. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  13424. longDateFormat: {
  13425. LT: 'H:mm',
  13426. LTS: 'H:mm:ss',
  13427. L: 'DD.MM.YYYY',
  13428. LL: 'D MMMM YYYY г.',
  13429. LLL: 'D MMMM YYYY г., H:mm',
  13430. LLLL: 'dddd, D MMMM YYYY г., H:mm',
  13431. },
  13432. calendar: {
  13433. sameDay: '[Сегодня, в] LT',
  13434. nextDay: '[Завтра, в] LT',
  13435. lastDay: '[Вчера, в] LT',
  13436. nextWeek: function (now) {
  13437. if (now.week() !== this.week()) {
  13438. switch (this.day()) {
  13439. case 0:
  13440. return '[В следующее] dddd, [в] LT';
  13441. case 1:
  13442. case 2:
  13443. case 4:
  13444. return '[В следующий] dddd, [в] LT';
  13445. case 3:
  13446. case 5:
  13447. case 6:
  13448. return '[В следующую] dddd, [в] LT';
  13449. }
  13450. } else {
  13451. if (this.day() === 2) {
  13452. return '[Во] dddd, [в] LT';
  13453. } else {
  13454. return '[В] dddd, [в] LT';
  13455. }
  13456. }
  13457. },
  13458. lastWeek: function (now) {
  13459. if (now.week() !== this.week()) {
  13460. switch (this.day()) {
  13461. case 0:
  13462. return '[В прошлое] dddd, [в] LT';
  13463. case 1:
  13464. case 2:
  13465. case 4:
  13466. return '[В прошлый] dddd, [в] LT';
  13467. case 3:
  13468. case 5:
  13469. case 6:
  13470. return '[В прошлую] dddd, [в] LT';
  13471. }
  13472. } else {
  13473. if (this.day() === 2) {
  13474. return '[Во] dddd, [в] LT';
  13475. } else {
  13476. return '[В] dddd, [в] LT';
  13477. }
  13478. }
  13479. },
  13480. sameElse: 'L',
  13481. },
  13482. relativeTime: {
  13483. future: 'через %s',
  13484. past: '%s назад',
  13485. s: 'несколько секунд',
  13486. ss: relativeTimeWithPlural$3,
  13487. m: relativeTimeWithPlural$3,
  13488. mm: relativeTimeWithPlural$3,
  13489. h: 'час',
  13490. hh: relativeTimeWithPlural$3,
  13491. d: 'день',
  13492. dd: relativeTimeWithPlural$3,
  13493. M: 'месяц',
  13494. MM: relativeTimeWithPlural$3,
  13495. y: 'год',
  13496. yy: relativeTimeWithPlural$3,
  13497. },
  13498. meridiemParse: /ночи|утра|дня|вечера/i,
  13499. isPM: function (input) {
  13500. return /^(дня|вечера)$/.test(input);
  13501. },
  13502. meridiem: function (hour, minute, isLower) {
  13503. if (hour < 4) {
  13504. return 'ночи';
  13505. } else if (hour < 12) {
  13506. return 'утра';
  13507. } else if (hour < 17) {
  13508. return 'дня';
  13509. } else {
  13510. return 'вечера';
  13511. }
  13512. },
  13513. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  13514. ordinal: function (number, period) {
  13515. switch (period) {
  13516. case 'M':
  13517. case 'd':
  13518. case 'DDD':
  13519. return number + '-й';
  13520. case 'D':
  13521. return number + '-го';
  13522. case 'w':
  13523. case 'W':
  13524. return number + '-я';
  13525. default:
  13526. return number;
  13527. }
  13528. },
  13529. week: {
  13530. dow: 1, // Monday is the first day of the week.
  13531. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13532. },
  13533. });
  13534. //! moment.js locale configuration
  13535. var months$8 = [
  13536. 'جنوري',
  13537. 'فيبروري',
  13538. 'مارچ',
  13539. 'اپريل',
  13540. 'مئي',
  13541. 'جون',
  13542. 'جولاءِ',
  13543. 'آگسٽ',
  13544. 'سيپٽمبر',
  13545. 'آڪٽوبر',
  13546. 'نومبر',
  13547. 'ڊسمبر',
  13548. ],
  13549. days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  13550. hooks.defineLocale('sd', {
  13551. months: months$8,
  13552. monthsShort: months$8,
  13553. weekdays: days$1,
  13554. weekdaysShort: days$1,
  13555. weekdaysMin: days$1,
  13556. longDateFormat: {
  13557. LT: 'HH:mm',
  13558. LTS: 'HH:mm:ss',
  13559. L: 'DD/MM/YYYY',
  13560. LL: 'D MMMM YYYY',
  13561. LLL: 'D MMMM YYYY HH:mm',
  13562. LLLL: 'dddd، D MMMM YYYY HH:mm',
  13563. },
  13564. meridiemParse: /صبح|شام/,
  13565. isPM: function (input) {
  13566. return 'شام' === input;
  13567. },
  13568. meridiem: function (hour, minute, isLower) {
  13569. if (hour < 12) {
  13570. return 'صبح';
  13571. }
  13572. return 'شام';
  13573. },
  13574. calendar: {
  13575. sameDay: '[اڄ] LT',
  13576. nextDay: '[سڀاڻي] LT',
  13577. nextWeek: 'dddd [اڳين هفتي تي] LT',
  13578. lastDay: '[ڪالهه] LT',
  13579. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  13580. sameElse: 'L',
  13581. },
  13582. relativeTime: {
  13583. future: '%s پوء',
  13584. past: '%s اڳ',
  13585. s: 'چند سيڪنڊ',
  13586. ss: '%d سيڪنڊ',
  13587. m: 'هڪ منٽ',
  13588. mm: '%d منٽ',
  13589. h: 'هڪ ڪلاڪ',
  13590. hh: '%d ڪلاڪ',
  13591. d: 'هڪ ڏينهن',
  13592. dd: '%d ڏينهن',
  13593. M: 'هڪ مهينو',
  13594. MM: '%d مهينا',
  13595. y: 'هڪ سال',
  13596. yy: '%d سال',
  13597. },
  13598. preparse: function (string) {
  13599. return string.replace(/،/g, ',');
  13600. },
  13601. postformat: function (string) {
  13602. return string.replace(/,/g, '،');
  13603. },
  13604. week: {
  13605. dow: 1, // Monday is the first day of the week.
  13606. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13607. },
  13608. });
  13609. //! moment.js locale configuration
  13610. hooks.defineLocale('se', {
  13611. 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(
  13612. '_'
  13613. ),
  13614. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
  13615. '_'
  13616. ),
  13617. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  13618. '_'
  13619. ),
  13620. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  13621. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  13622. longDateFormat: {
  13623. LT: 'HH:mm',
  13624. LTS: 'HH:mm:ss',
  13625. L: 'DD.MM.YYYY',
  13626. LL: 'MMMM D. [b.] YYYY',
  13627. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  13628. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
  13629. },
  13630. calendar: {
  13631. sameDay: '[otne ti] LT',
  13632. nextDay: '[ihttin ti] LT',
  13633. nextWeek: 'dddd [ti] LT',
  13634. lastDay: '[ikte ti] LT',
  13635. lastWeek: '[ovddit] dddd [ti] LT',
  13636. sameElse: 'L',
  13637. },
  13638. relativeTime: {
  13639. future: '%s geažes',
  13640. past: 'maŋit %s',
  13641. s: 'moadde sekunddat',
  13642. ss: '%d sekunddat',
  13643. m: 'okta minuhta',
  13644. mm: '%d minuhtat',
  13645. h: 'okta diimmu',
  13646. hh: '%d diimmut',
  13647. d: 'okta beaivi',
  13648. dd: '%d beaivvit',
  13649. M: 'okta mánnu',
  13650. MM: '%d mánut',
  13651. y: 'okta jahki',
  13652. yy: '%d jagit',
  13653. },
  13654. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13655. ordinal: '%d.',
  13656. week: {
  13657. dow: 1, // Monday is the first day of the week.
  13658. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13659. },
  13660. });
  13661. //! moment.js locale configuration
  13662. /*jshint -W100*/
  13663. hooks.defineLocale('si', {
  13664. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  13665. '_'
  13666. ),
  13667. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  13668. '_'
  13669. ),
  13670. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  13671. '_'
  13672. ),
  13673. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  13674. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  13675. weekdaysParseExact: true,
  13676. longDateFormat: {
  13677. LT: 'a h:mm',
  13678. LTS: 'a h:mm:ss',
  13679. L: 'YYYY/MM/DD',
  13680. LL: 'YYYY MMMM D',
  13681. LLL: 'YYYY MMMM D, a h:mm',
  13682. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
  13683. },
  13684. calendar: {
  13685. sameDay: '[අද] LT[ට]',
  13686. nextDay: '[හෙට] LT[ට]',
  13687. nextWeek: 'dddd LT[ට]',
  13688. lastDay: '[ඊයේ] LT[ට]',
  13689. lastWeek: '[පසුගිය] dddd LT[ට]',
  13690. sameElse: 'L',
  13691. },
  13692. relativeTime: {
  13693. future: '%sකින්',
  13694. past: '%sකට පෙර',
  13695. s: 'තත්පර කිහිපය',
  13696. ss: 'තත්පර %d',
  13697. m: 'මිනිත්තුව',
  13698. mm: 'මිනිත්තු %d',
  13699. h: 'පැය',
  13700. hh: 'පැය %d',
  13701. d: 'දිනය',
  13702. dd: 'දින %d',
  13703. M: 'මාසය',
  13704. MM: 'මාස %d',
  13705. y: 'වසර',
  13706. yy: 'වසර %d',
  13707. },
  13708. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  13709. ordinal: function (number) {
  13710. return number + ' වැනි';
  13711. },
  13712. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  13713. isPM: function (input) {
  13714. return input === 'ප.ව.' || input === 'පස් වරු';
  13715. },
  13716. meridiem: function (hours, minutes, isLower) {
  13717. if (hours > 11) {
  13718. return isLower ? 'ප.ව.' : 'පස් වරු';
  13719. } else {
  13720. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  13721. }
  13722. },
  13723. });
  13724. //! moment.js locale configuration
  13725. var months$9 = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  13726. '_'
  13727. ),
  13728. monthsShort$6 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  13729. function plural$5(n) {
  13730. return n > 1 && n < 5;
  13731. }
  13732. function translate$9(number, withoutSuffix, key, isFuture) {
  13733. var result = number + ' ';
  13734. switch (key) {
  13735. case 's': // a few seconds / in a few seconds / a few seconds ago
  13736. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  13737. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  13738. if (withoutSuffix || isFuture) {
  13739. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  13740. } else {
  13741. return result + 'sekundami';
  13742. }
  13743. case 'm': // a minute / in a minute / a minute ago
  13744. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  13745. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  13746. if (withoutSuffix || isFuture) {
  13747. return result + (plural$5(number) ? 'minúty' : 'minút');
  13748. } else {
  13749. return result + 'minútami';
  13750. }
  13751. case 'h': // an hour / in an hour / an hour ago
  13752. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  13753. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  13754. if (withoutSuffix || isFuture) {
  13755. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  13756. } else {
  13757. return result + 'hodinami';
  13758. }
  13759. case 'd': // a day / in a day / a day ago
  13760. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  13761. case 'dd': // 9 days / in 9 days / 9 days ago
  13762. if (withoutSuffix || isFuture) {
  13763. return result + (plural$5(number) ? 'dni' : 'dní');
  13764. } else {
  13765. return result + 'dňami';
  13766. }
  13767. case 'M': // a month / in a month / a month ago
  13768. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  13769. case 'MM': // 9 months / in 9 months / 9 months ago
  13770. if (withoutSuffix || isFuture) {
  13771. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  13772. } else {
  13773. return result + 'mesiacmi';
  13774. }
  13775. case 'y': // a year / in a year / a year ago
  13776. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  13777. case 'yy': // 9 years / in 9 years / 9 years ago
  13778. if (withoutSuffix || isFuture) {
  13779. return result + (plural$5(number) ? 'roky' : 'rokov');
  13780. } else {
  13781. return result + 'rokmi';
  13782. }
  13783. }
  13784. }
  13785. hooks.defineLocale('sk', {
  13786. months: months$9,
  13787. monthsShort: monthsShort$6,
  13788. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  13789. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  13790. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  13791. longDateFormat: {
  13792. LT: 'H:mm',
  13793. LTS: 'H:mm:ss',
  13794. L: 'DD.MM.YYYY',
  13795. LL: 'D. MMMM YYYY',
  13796. LLL: 'D. MMMM YYYY H:mm',
  13797. LLLL: 'dddd D. MMMM YYYY H:mm',
  13798. },
  13799. calendar: {
  13800. sameDay: '[dnes o] LT',
  13801. nextDay: '[zajtra o] LT',
  13802. nextWeek: function () {
  13803. switch (this.day()) {
  13804. case 0:
  13805. return '[v nedeľu o] LT';
  13806. case 1:
  13807. case 2:
  13808. return '[v] dddd [o] LT';
  13809. case 3:
  13810. return '[v stredu o] LT';
  13811. case 4:
  13812. return '[vo štvrtok o] LT';
  13813. case 5:
  13814. return '[v piatok o] LT';
  13815. case 6:
  13816. return '[v sobotu o] LT';
  13817. }
  13818. },
  13819. lastDay: '[včera o] LT',
  13820. lastWeek: function () {
  13821. switch (this.day()) {
  13822. case 0:
  13823. return '[minulú nedeľu o] LT';
  13824. case 1:
  13825. case 2:
  13826. return '[minulý] dddd [o] LT';
  13827. case 3:
  13828. return '[minulú stredu o] LT';
  13829. case 4:
  13830. case 5:
  13831. return '[minulý] dddd [o] LT';
  13832. case 6:
  13833. return '[minulú sobotu o] LT';
  13834. }
  13835. },
  13836. sameElse: 'L',
  13837. },
  13838. relativeTime: {
  13839. future: 'za %s',
  13840. past: 'pred %s',
  13841. s: translate$9,
  13842. ss: translate$9,
  13843. m: translate$9,
  13844. mm: translate$9,
  13845. h: translate$9,
  13846. hh: translate$9,
  13847. d: translate$9,
  13848. dd: translate$9,
  13849. M: translate$9,
  13850. MM: translate$9,
  13851. y: translate$9,
  13852. yy: translate$9,
  13853. },
  13854. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13855. ordinal: '%d.',
  13856. week: {
  13857. dow: 1, // Monday is the first day of the week.
  13858. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13859. },
  13860. });
  13861. //! moment.js locale configuration
  13862. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  13863. var result = number + ' ';
  13864. switch (key) {
  13865. case 's':
  13866. return withoutSuffix || isFuture
  13867. ? 'nekaj sekund'
  13868. : 'nekaj sekundami';
  13869. case 'ss':
  13870. if (number === 1) {
  13871. result += withoutSuffix ? 'sekundo' : 'sekundi';
  13872. } else if (number === 2) {
  13873. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  13874. } else if (number < 5) {
  13875. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  13876. } else {
  13877. result += 'sekund';
  13878. }
  13879. return result;
  13880. case 'm':
  13881. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  13882. case 'mm':
  13883. if (number === 1) {
  13884. result += withoutSuffix ? 'minuta' : 'minuto';
  13885. } else if (number === 2) {
  13886. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  13887. } else if (number < 5) {
  13888. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  13889. } else {
  13890. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  13891. }
  13892. return result;
  13893. case 'h':
  13894. return withoutSuffix ? 'ena ura' : 'eno uro';
  13895. case 'hh':
  13896. if (number === 1) {
  13897. result += withoutSuffix ? 'ura' : 'uro';
  13898. } else if (number === 2) {
  13899. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  13900. } else if (number < 5) {
  13901. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  13902. } else {
  13903. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  13904. }
  13905. return result;
  13906. case 'd':
  13907. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  13908. case 'dd':
  13909. if (number === 1) {
  13910. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  13911. } else if (number === 2) {
  13912. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  13913. } else {
  13914. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  13915. }
  13916. return result;
  13917. case 'M':
  13918. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  13919. case 'MM':
  13920. if (number === 1) {
  13921. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  13922. } else if (number === 2) {
  13923. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  13924. } else if (number < 5) {
  13925. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  13926. } else {
  13927. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  13928. }
  13929. return result;
  13930. case 'y':
  13931. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  13932. case 'yy':
  13933. if (number === 1) {
  13934. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  13935. } else if (number === 2) {
  13936. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  13937. } else if (number < 5) {
  13938. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  13939. } else {
  13940. result += withoutSuffix || isFuture ? 'let' : 'leti';
  13941. }
  13942. return result;
  13943. }
  13944. }
  13945. hooks.defineLocale('sl', {
  13946. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  13947. '_'
  13948. ),
  13949. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  13950. '_'
  13951. ),
  13952. monthsParseExact: true,
  13953. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  13954. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  13955. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  13956. weekdaysParseExact: true,
  13957. longDateFormat: {
  13958. LT: 'H:mm',
  13959. LTS: 'H:mm:ss',
  13960. L: 'DD. MM. YYYY',
  13961. LL: 'D. MMMM YYYY',
  13962. LLL: 'D. MMMM YYYY H:mm',
  13963. LLLL: 'dddd, D. MMMM YYYY H:mm',
  13964. },
  13965. calendar: {
  13966. sameDay: '[danes ob] LT',
  13967. nextDay: '[jutri ob] LT',
  13968. nextWeek: function () {
  13969. switch (this.day()) {
  13970. case 0:
  13971. return '[v] [nedeljo] [ob] LT';
  13972. case 3:
  13973. return '[v] [sredo] [ob] LT';
  13974. case 6:
  13975. return '[v] [soboto] [ob] LT';
  13976. case 1:
  13977. case 2:
  13978. case 4:
  13979. case 5:
  13980. return '[v] dddd [ob] LT';
  13981. }
  13982. },
  13983. lastDay: '[včeraj ob] LT',
  13984. lastWeek: function () {
  13985. switch (this.day()) {
  13986. case 0:
  13987. return '[prejšnjo] [nedeljo] [ob] LT';
  13988. case 3:
  13989. return '[prejšnjo] [sredo] [ob] LT';
  13990. case 6:
  13991. return '[prejšnjo] [soboto] [ob] LT';
  13992. case 1:
  13993. case 2:
  13994. case 4:
  13995. case 5:
  13996. return '[prejšnji] dddd [ob] LT';
  13997. }
  13998. },
  13999. sameElse: 'L',
  14000. },
  14001. relativeTime: {
  14002. future: 'čez %s',
  14003. past: 'pred %s',
  14004. s: processRelativeTime$7,
  14005. ss: processRelativeTime$7,
  14006. m: processRelativeTime$7,
  14007. mm: processRelativeTime$7,
  14008. h: processRelativeTime$7,
  14009. hh: processRelativeTime$7,
  14010. d: processRelativeTime$7,
  14011. dd: processRelativeTime$7,
  14012. M: processRelativeTime$7,
  14013. MM: processRelativeTime$7,
  14014. y: processRelativeTime$7,
  14015. yy: processRelativeTime$7,
  14016. },
  14017. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14018. ordinal: '%d.',
  14019. week: {
  14020. dow: 1, // Monday is the first day of the week.
  14021. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14022. },
  14023. });
  14024. //! moment.js locale configuration
  14025. hooks.defineLocale('sq', {
  14026. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  14027. '_'
  14028. ),
  14029. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14030. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  14031. '_'
  14032. ),
  14033. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14034. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14035. weekdaysParseExact: true,
  14036. meridiemParse: /PD|MD/,
  14037. isPM: function (input) {
  14038. return input.charAt(0) === 'M';
  14039. },
  14040. meridiem: function (hours, minutes, isLower) {
  14041. return hours < 12 ? 'PD' : 'MD';
  14042. },
  14043. longDateFormat: {
  14044. LT: 'HH:mm',
  14045. LTS: 'HH:mm:ss',
  14046. L: 'DD/MM/YYYY',
  14047. LL: 'D MMMM YYYY',
  14048. LLL: 'D MMMM YYYY HH:mm',
  14049. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14050. },
  14051. calendar: {
  14052. sameDay: '[Sot në] LT',
  14053. nextDay: '[Nesër në] LT',
  14054. nextWeek: 'dddd [në] LT',
  14055. lastDay: '[Dje në] LT',
  14056. lastWeek: 'dddd [e kaluar në] LT',
  14057. sameElse: 'L',
  14058. },
  14059. relativeTime: {
  14060. future: 'në %s',
  14061. past: '%s më parë',
  14062. s: 'disa sekonda',
  14063. ss: '%d sekonda',
  14064. m: 'një minutë',
  14065. mm: '%d minuta',
  14066. h: 'një orë',
  14067. hh: '%d orë',
  14068. d: 'një ditë',
  14069. dd: '%d ditë',
  14070. M: 'një muaj',
  14071. MM: '%d muaj',
  14072. y: 'një vit',
  14073. yy: '%d vite',
  14074. },
  14075. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14076. ordinal: '%d.',
  14077. week: {
  14078. dow: 1, // Monday is the first day of the week.
  14079. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14080. },
  14081. });
  14082. //! moment.js locale configuration
  14083. var translator$1 = {
  14084. words: {
  14085. //Different grammatical cases
  14086. ss: ['секунда', 'секунде', 'секунди'],
  14087. m: ['један минут', 'једне минуте'],
  14088. mm: ['минут', 'минуте', 'минута'],
  14089. h: ['један сат', 'једног сата'],
  14090. hh: ['сат', 'сата', 'сати'],
  14091. dd: ['дан', 'дана', 'дана'],
  14092. MM: ['месец', 'месеца', 'месеци'],
  14093. yy: ['година', 'године', 'година'],
  14094. },
  14095. correctGrammaticalCase: function (number, wordKey) {
  14096. return number === 1
  14097. ? wordKey[0]
  14098. : number >= 2 && number <= 4
  14099. ? wordKey[1]
  14100. : wordKey[2];
  14101. },
  14102. translate: function (number, withoutSuffix, key) {
  14103. var wordKey = translator$1.words[key];
  14104. if (key.length === 1) {
  14105. return withoutSuffix ? wordKey[0] : wordKey[1];
  14106. } else {
  14107. return (
  14108. number +
  14109. ' ' +
  14110. translator$1.correctGrammaticalCase(number, wordKey)
  14111. );
  14112. }
  14113. },
  14114. };
  14115. hooks.defineLocale('sr-cyrl', {
  14116. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  14117. '_'
  14118. ),
  14119. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
  14120. '_'
  14121. ),
  14122. monthsParseExact: true,
  14123. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  14124. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14125. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14126. weekdaysParseExact: true,
  14127. longDateFormat: {
  14128. LT: 'H:mm',
  14129. LTS: 'H:mm:ss',
  14130. L: 'DD.MM.YYYY',
  14131. LL: 'D. MMMM YYYY',
  14132. LLL: 'D. MMMM YYYY H:mm',
  14133. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14134. },
  14135. calendar: {
  14136. sameDay: '[данас у] LT',
  14137. nextDay: '[сутра у] LT',
  14138. nextWeek: function () {
  14139. switch (this.day()) {
  14140. case 0:
  14141. return '[у] [недељу] [у] LT';
  14142. case 3:
  14143. return '[у] [среду] [у] LT';
  14144. case 6:
  14145. return '[у] [суботу] [у] LT';
  14146. case 1:
  14147. case 2:
  14148. case 4:
  14149. case 5:
  14150. return '[у] dddd [у] LT';
  14151. }
  14152. },
  14153. lastDay: '[јуче у] LT',
  14154. lastWeek: function () {
  14155. var lastWeekDays = [
  14156. '[прошле] [недеље] [у] LT',
  14157. '[прошлог] [понедељка] [у] LT',
  14158. '[прошлог] [уторка] [у] LT',
  14159. '[прошле] [среде] [у] LT',
  14160. '[прошлог] [четвртка] [у] LT',
  14161. '[прошлог] [петка] [у] LT',
  14162. '[прошле] [суботе] [у] LT',
  14163. ];
  14164. return lastWeekDays[this.day()];
  14165. },
  14166. sameElse: 'L',
  14167. },
  14168. relativeTime: {
  14169. future: 'за %s',
  14170. past: 'пре %s',
  14171. s: 'неколико секунди',
  14172. ss: translator$1.translate,
  14173. m: translator$1.translate,
  14174. mm: translator$1.translate,
  14175. h: translator$1.translate,
  14176. hh: translator$1.translate,
  14177. d: 'дан',
  14178. dd: translator$1.translate,
  14179. M: 'месец',
  14180. MM: translator$1.translate,
  14181. y: 'годину',
  14182. yy: translator$1.translate,
  14183. },
  14184. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14185. ordinal: '%d.',
  14186. week: {
  14187. dow: 1, // Monday is the first day of the week.
  14188. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14189. },
  14190. });
  14191. //! moment.js locale configuration
  14192. var translator$2 = {
  14193. words: {
  14194. //Different grammatical cases
  14195. ss: ['sekunda', 'sekunde', 'sekundi'],
  14196. m: ['jedan minut', 'jedne minute'],
  14197. mm: ['minut', 'minute', 'minuta'],
  14198. h: ['jedan sat', 'jednog sata'],
  14199. hh: ['sat', 'sata', 'sati'],
  14200. dd: ['dan', 'dana', 'dana'],
  14201. MM: ['mesec', 'meseca', 'meseci'],
  14202. yy: ['godina', 'godine', 'godina'],
  14203. },
  14204. correctGrammaticalCase: function (number, wordKey) {
  14205. return number === 1
  14206. ? wordKey[0]
  14207. : number >= 2 && number <= 4
  14208. ? wordKey[1]
  14209. : wordKey[2];
  14210. },
  14211. translate: function (number, withoutSuffix, key) {
  14212. var wordKey = translator$2.words[key];
  14213. if (key.length === 1) {
  14214. return withoutSuffix ? wordKey[0] : wordKey[1];
  14215. } else {
  14216. return (
  14217. number +
  14218. ' ' +
  14219. translator$2.correctGrammaticalCase(number, wordKey)
  14220. );
  14221. }
  14222. },
  14223. };
  14224. hooks.defineLocale('sr', {
  14225. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  14226. '_'
  14227. ),
  14228. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  14229. '_'
  14230. ),
  14231. monthsParseExact: true,
  14232. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  14233. '_'
  14234. ),
  14235. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14236. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14237. weekdaysParseExact: true,
  14238. longDateFormat: {
  14239. LT: 'H:mm',
  14240. LTS: 'H:mm:ss',
  14241. L: 'DD.MM.YYYY',
  14242. LL: 'D. MMMM YYYY',
  14243. LLL: 'D. MMMM YYYY H:mm',
  14244. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14245. },
  14246. calendar: {
  14247. sameDay: '[danas u] LT',
  14248. nextDay: '[sutra u] LT',
  14249. nextWeek: function () {
  14250. switch (this.day()) {
  14251. case 0:
  14252. return '[u] [nedelju] [u] LT';
  14253. case 3:
  14254. return '[u] [sredu] [u] LT';
  14255. case 6:
  14256. return '[u] [subotu] [u] LT';
  14257. case 1:
  14258. case 2:
  14259. case 4:
  14260. case 5:
  14261. return '[u] dddd [u] LT';
  14262. }
  14263. },
  14264. lastDay: '[juče u] LT',
  14265. lastWeek: function () {
  14266. var lastWeekDays = [
  14267. '[prošle] [nedelje] [u] LT',
  14268. '[prošlog] [ponedeljka] [u] LT',
  14269. '[prošlog] [utorka] [u] LT',
  14270. '[prošle] [srede] [u] LT',
  14271. '[prošlog] [četvrtka] [u] LT',
  14272. '[prošlog] [petka] [u] LT',
  14273. '[prošle] [subote] [u] LT',
  14274. ];
  14275. return lastWeekDays[this.day()];
  14276. },
  14277. sameElse: 'L',
  14278. },
  14279. relativeTime: {
  14280. future: 'za %s',
  14281. past: 'pre %s',
  14282. s: 'nekoliko sekundi',
  14283. ss: translator$2.translate,
  14284. m: translator$2.translate,
  14285. mm: translator$2.translate,
  14286. h: translator$2.translate,
  14287. hh: translator$2.translate,
  14288. d: 'dan',
  14289. dd: translator$2.translate,
  14290. M: 'mesec',
  14291. MM: translator$2.translate,
  14292. y: 'godinu',
  14293. yy: translator$2.translate,
  14294. },
  14295. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14296. ordinal: '%d.',
  14297. week: {
  14298. dow: 1, // Monday is the first day of the week.
  14299. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14300. },
  14301. });
  14302. //! moment.js locale configuration
  14303. hooks.defineLocale('ss', {
  14304. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  14305. '_'
  14306. ),
  14307. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14308. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  14309. '_'
  14310. ),
  14311. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14312. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14313. weekdaysParseExact: true,
  14314. longDateFormat: {
  14315. LT: 'h:mm A',
  14316. LTS: 'h:mm:ss A',
  14317. L: 'DD/MM/YYYY',
  14318. LL: 'D MMMM YYYY',
  14319. LLL: 'D MMMM YYYY h:mm A',
  14320. LLLL: 'dddd, D MMMM YYYY h:mm A',
  14321. },
  14322. calendar: {
  14323. sameDay: '[Namuhla nga] LT',
  14324. nextDay: '[Kusasa nga] LT',
  14325. nextWeek: 'dddd [nga] LT',
  14326. lastDay: '[Itolo nga] LT',
  14327. lastWeek: 'dddd [leliphelile] [nga] LT',
  14328. sameElse: 'L',
  14329. },
  14330. relativeTime: {
  14331. future: 'nga %s',
  14332. past: 'wenteka nga %s',
  14333. s: 'emizuzwana lomcane',
  14334. ss: '%d mzuzwana',
  14335. m: 'umzuzu',
  14336. mm: '%d emizuzu',
  14337. h: 'lihora',
  14338. hh: '%d emahora',
  14339. d: 'lilanga',
  14340. dd: '%d emalanga',
  14341. M: 'inyanga',
  14342. MM: '%d tinyanga',
  14343. y: 'umnyaka',
  14344. yy: '%d iminyaka',
  14345. },
  14346. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14347. meridiem: function (hours, minutes, isLower) {
  14348. if (hours < 11) {
  14349. return 'ekuseni';
  14350. } else if (hours < 15) {
  14351. return 'emini';
  14352. } else if (hours < 19) {
  14353. return 'entsambama';
  14354. } else {
  14355. return 'ebusuku';
  14356. }
  14357. },
  14358. meridiemHour: function (hour, meridiem) {
  14359. if (hour === 12) {
  14360. hour = 0;
  14361. }
  14362. if (meridiem === 'ekuseni') {
  14363. return hour;
  14364. } else if (meridiem === 'emini') {
  14365. return hour >= 11 ? hour : hour + 12;
  14366. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14367. if (hour === 0) {
  14368. return 0;
  14369. }
  14370. return hour + 12;
  14371. }
  14372. },
  14373. dayOfMonthOrdinalParse: /\d{1,2}/,
  14374. ordinal: '%d',
  14375. week: {
  14376. dow: 1, // Monday is the first day of the week.
  14377. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14378. },
  14379. });
  14380. //! moment.js locale configuration
  14381. hooks.defineLocale('sv', {
  14382. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  14383. '_'
  14384. ),
  14385. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  14386. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14387. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  14388. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  14389. longDateFormat: {
  14390. LT: 'HH:mm',
  14391. LTS: 'HH:mm:ss',
  14392. L: 'YYYY-MM-DD',
  14393. LL: 'D MMMM YYYY',
  14394. LLL: 'D MMMM YYYY [kl.] HH:mm',
  14395. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  14396. lll: 'D MMM YYYY HH:mm',
  14397. llll: 'ddd D MMM YYYY HH:mm',
  14398. },
  14399. calendar: {
  14400. sameDay: '[Idag] LT',
  14401. nextDay: '[Imorgon] LT',
  14402. lastDay: '[Igår] LT',
  14403. nextWeek: '[På] dddd LT',
  14404. lastWeek: '[I] dddd[s] LT',
  14405. sameElse: 'L',
  14406. },
  14407. relativeTime: {
  14408. future: 'om %s',
  14409. past: 'för %s sedan',
  14410. s: 'några sekunder',
  14411. ss: '%d sekunder',
  14412. m: 'en minut',
  14413. mm: '%d minuter',
  14414. h: 'en timme',
  14415. hh: '%d timmar',
  14416. d: 'en dag',
  14417. dd: '%d dagar',
  14418. M: 'en månad',
  14419. MM: '%d månader',
  14420. y: 'ett år',
  14421. yy: '%d år',
  14422. },
  14423. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  14424. ordinal: function (number) {
  14425. var b = number % 10,
  14426. output =
  14427. ~~((number % 100) / 10) === 1
  14428. ? ':e'
  14429. : b === 1
  14430. ? ':a'
  14431. : b === 2
  14432. ? ':a'
  14433. : b === 3
  14434. ? ':e'
  14435. : ':e';
  14436. return number + output;
  14437. },
  14438. week: {
  14439. dow: 1, // Monday is the first day of the week.
  14440. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14441. },
  14442. });
  14443. //! moment.js locale configuration
  14444. hooks.defineLocale('sw', {
  14445. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  14446. '_'
  14447. ),
  14448. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  14449. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  14450. '_'
  14451. ),
  14452. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  14453. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  14454. weekdaysParseExact: true,
  14455. longDateFormat: {
  14456. LT: 'HH:mm',
  14457. LTS: 'HH:mm:ss',
  14458. L: 'DD.MM.YYYY',
  14459. LL: 'D MMMM YYYY',
  14460. LLL: 'D MMMM YYYY HH:mm',
  14461. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14462. },
  14463. calendar: {
  14464. sameDay: '[leo saa] LT',
  14465. nextDay: '[kesho saa] LT',
  14466. nextWeek: '[wiki ijayo] dddd [saat] LT',
  14467. lastDay: '[jana] LT',
  14468. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  14469. sameElse: 'L',
  14470. },
  14471. relativeTime: {
  14472. future: '%s baadaye',
  14473. past: 'tokea %s',
  14474. s: 'hivi punde',
  14475. ss: 'sekunde %d',
  14476. m: 'dakika moja',
  14477. mm: 'dakika %d',
  14478. h: 'saa limoja',
  14479. hh: 'masaa %d',
  14480. d: 'siku moja',
  14481. dd: 'masiku %d',
  14482. M: 'mwezi mmoja',
  14483. MM: 'miezi %d',
  14484. y: 'mwaka mmoja',
  14485. yy: 'miaka %d',
  14486. },
  14487. week: {
  14488. dow: 1, // Monday is the first day of the week.
  14489. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14490. },
  14491. });
  14492. //! moment.js locale configuration
  14493. var symbolMap$f = {
  14494. '1': '௧',
  14495. '2': '௨',
  14496. '3': '௩',
  14497. '4': '௪',
  14498. '5': '௫',
  14499. '6': '௬',
  14500. '7': '௭',
  14501. '8': '௮',
  14502. '9': '௯',
  14503. '0': '௦',
  14504. },
  14505. numberMap$e = {
  14506. '௧': '1',
  14507. '௨': '2',
  14508. '௩': '3',
  14509. '௪': '4',
  14510. '௫': '5',
  14511. '௬': '6',
  14512. '௭': '7',
  14513. '௮': '8',
  14514. '௯': '9',
  14515. '௦': '0',
  14516. };
  14517. hooks.defineLocale('ta', {
  14518. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14519. '_'
  14520. ),
  14521. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14522. '_'
  14523. ),
  14524. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  14525. '_'
  14526. ),
  14527. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  14528. '_'
  14529. ),
  14530. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  14531. longDateFormat: {
  14532. LT: 'HH:mm',
  14533. LTS: 'HH:mm:ss',
  14534. L: 'DD/MM/YYYY',
  14535. LL: 'D MMMM YYYY',
  14536. LLL: 'D MMMM YYYY, HH:mm',
  14537. LLLL: 'dddd, D MMMM YYYY, HH:mm',
  14538. },
  14539. calendar: {
  14540. sameDay: '[இன்று] LT',
  14541. nextDay: '[நாளை] LT',
  14542. nextWeek: 'dddd, LT',
  14543. lastDay: '[நேற்று] LT',
  14544. lastWeek: '[கடந்த வாரம்] dddd, LT',
  14545. sameElse: 'L',
  14546. },
  14547. relativeTime: {
  14548. future: '%s இல்',
  14549. past: '%s முன்',
  14550. s: 'ஒரு சில விநாடிகள்',
  14551. ss: '%d விநாடிகள்',
  14552. m: 'ஒரு நிமிடம்',
  14553. mm: '%d நிமிடங்கள்',
  14554. h: 'ஒரு மணி நேரம்',
  14555. hh: '%d மணி நேரம்',
  14556. d: 'ஒரு நாள்',
  14557. dd: '%d நாட்கள்',
  14558. M: 'ஒரு மாதம்',
  14559. MM: '%d மாதங்கள்',
  14560. y: 'ஒரு வருடம்',
  14561. yy: '%d ஆண்டுகள்',
  14562. },
  14563. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  14564. ordinal: function (number) {
  14565. return number + 'வது';
  14566. },
  14567. preparse: function (string) {
  14568. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  14569. return numberMap$e[match];
  14570. });
  14571. },
  14572. postformat: function (string) {
  14573. return string.replace(/\d/g, function (match) {
  14574. return symbolMap$f[match];
  14575. });
  14576. },
  14577. // refer http://ta.wikipedia.org/s/1er1
  14578. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  14579. meridiem: function (hour, minute, isLower) {
  14580. if (hour < 2) {
  14581. return ' யாமம்';
  14582. } else if (hour < 6) {
  14583. return ' வைகறை'; // வைகறை
  14584. } else if (hour < 10) {
  14585. return ' காலை'; // காலை
  14586. } else if (hour < 14) {
  14587. return ' நண்பகல்'; // நண்பகல்
  14588. } else if (hour < 18) {
  14589. return ' எற்பாடு'; // எற்பாடு
  14590. } else if (hour < 22) {
  14591. return ' மாலை'; // மாலை
  14592. } else {
  14593. return ' யாமம்';
  14594. }
  14595. },
  14596. meridiemHour: function (hour, meridiem) {
  14597. if (hour === 12) {
  14598. hour = 0;
  14599. }
  14600. if (meridiem === 'யாமம்') {
  14601. return hour < 2 ? hour : hour + 12;
  14602. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  14603. return hour;
  14604. } else if (meridiem === 'நண்பகல்') {
  14605. return hour >= 10 ? hour : hour + 12;
  14606. } else {
  14607. return hour + 12;
  14608. }
  14609. },
  14610. week: {
  14611. dow: 0, // Sunday is the first day of the week.
  14612. doy: 6, // The week that contains Jan 6th is the first week of the year.
  14613. },
  14614. });
  14615. //! moment.js locale configuration
  14616. hooks.defineLocale('te', {
  14617. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  14618. '_'
  14619. ),
  14620. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  14621. '_'
  14622. ),
  14623. monthsParseExact: true,
  14624. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  14625. '_'
  14626. ),
  14627. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  14628. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  14629. longDateFormat: {
  14630. LT: 'A h:mm',
  14631. LTS: 'A h:mm:ss',
  14632. L: 'DD/MM/YYYY',
  14633. LL: 'D MMMM YYYY',
  14634. LLL: 'D MMMM YYYY, A h:mm',
  14635. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  14636. },
  14637. calendar: {
  14638. sameDay: '[నేడు] LT',
  14639. nextDay: '[రేపు] LT',
  14640. nextWeek: 'dddd, LT',
  14641. lastDay: '[నిన్న] LT',
  14642. lastWeek: '[గత] dddd, LT',
  14643. sameElse: 'L',
  14644. },
  14645. relativeTime: {
  14646. future: '%s లో',
  14647. past: '%s క్రితం',
  14648. s: 'కొన్ని క్షణాలు',
  14649. ss: '%d సెకన్లు',
  14650. m: 'ఒక నిమిషం',
  14651. mm: '%d నిమిషాలు',
  14652. h: 'ఒక గంట',
  14653. hh: '%d గంటలు',
  14654. d: 'ఒక రోజు',
  14655. dd: '%d రోజులు',
  14656. M: 'ఒక నెల',
  14657. MM: '%d నెలలు',
  14658. y: 'ఒక సంవత్సరం',
  14659. yy: '%d సంవత్సరాలు',
  14660. },
  14661. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  14662. ordinal: '%dవ',
  14663. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  14664. meridiemHour: function (hour, meridiem) {
  14665. if (hour === 12) {
  14666. hour = 0;
  14667. }
  14668. if (meridiem === 'రాత్రి') {
  14669. return hour < 4 ? hour : hour + 12;
  14670. } else if (meridiem === 'ఉదయం') {
  14671. return hour;
  14672. } else if (meridiem === 'మధ్యాహ్నం') {
  14673. return hour >= 10 ? hour : hour + 12;
  14674. } else if (meridiem === 'సాయంత్రం') {
  14675. return hour + 12;
  14676. }
  14677. },
  14678. meridiem: function (hour, minute, isLower) {
  14679. if (hour < 4) {
  14680. return 'రాత్రి';
  14681. } else if (hour < 10) {
  14682. return 'ఉదయం';
  14683. } else if (hour < 17) {
  14684. return 'మధ్యాహ్నం';
  14685. } else if (hour < 20) {
  14686. return 'సాయంత్రం';
  14687. } else {
  14688. return 'రాత్రి';
  14689. }
  14690. },
  14691. week: {
  14692. dow: 0, // Sunday is the first day of the week.
  14693. doy: 6, // The week that contains Jan 6th is the first week of the year.
  14694. },
  14695. });
  14696. //! moment.js locale configuration
  14697. hooks.defineLocale('tet', {
  14698. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  14699. '_'
  14700. ),
  14701. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  14702. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  14703. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  14704. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  14705. longDateFormat: {
  14706. LT: 'HH:mm',
  14707. LTS: 'HH:mm:ss',
  14708. L: 'DD/MM/YYYY',
  14709. LL: 'D MMMM YYYY',
  14710. LLL: 'D MMMM YYYY HH:mm',
  14711. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14712. },
  14713. calendar: {
  14714. sameDay: '[Ohin iha] LT',
  14715. nextDay: '[Aban iha] LT',
  14716. nextWeek: 'dddd [iha] LT',
  14717. lastDay: '[Horiseik iha] LT',
  14718. lastWeek: 'dddd [semana kotuk] [iha] LT',
  14719. sameElse: 'L',
  14720. },
  14721. relativeTime: {
  14722. future: 'iha %s',
  14723. past: '%s liuba',
  14724. s: 'segundu balun',
  14725. ss: 'segundu %d',
  14726. m: 'minutu ida',
  14727. mm: 'minutu %d',
  14728. h: 'oras ida',
  14729. hh: 'oras %d',
  14730. d: 'loron ida',
  14731. dd: 'loron %d',
  14732. M: 'fulan ida',
  14733. MM: 'fulan %d',
  14734. y: 'tinan ida',
  14735. yy: 'tinan %d',
  14736. },
  14737. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  14738. ordinal: function (number) {
  14739. var b = number % 10,
  14740. output =
  14741. ~~((number % 100) / 10) === 1
  14742. ? 'th'
  14743. : b === 1
  14744. ? 'st'
  14745. : b === 2
  14746. ? 'nd'
  14747. : b === 3
  14748. ? 'rd'
  14749. : 'th';
  14750. return number + output;
  14751. },
  14752. week: {
  14753. dow: 1, // Monday is the first day of the week.
  14754. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14755. },
  14756. });
  14757. //! moment.js locale configuration
  14758. var suffixes$3 = {
  14759. 0: '-ум',
  14760. 1: '-ум',
  14761. 2: '-юм',
  14762. 3: '-юм',
  14763. 4: '-ум',
  14764. 5: '-ум',
  14765. 6: '-ум',
  14766. 7: '-ум',
  14767. 8: '-ум',
  14768. 9: '-ум',
  14769. 10: '-ум',
  14770. 12: '-ум',
  14771. 13: '-ум',
  14772. 20: '-ум',
  14773. 30: '-юм',
  14774. 40: '-ум',
  14775. 50: '-ум',
  14776. 60: '-ум',
  14777. 70: '-ум',
  14778. 80: '-ум',
  14779. 90: '-ум',
  14780. 100: '-ум',
  14781. };
  14782. hooks.defineLocale('tg', {
  14783. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  14784. '_'
  14785. ),
  14786. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  14787. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  14788. '_'
  14789. ),
  14790. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  14791. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  14792. longDateFormat: {
  14793. LT: 'HH:mm',
  14794. LTS: 'HH:mm:ss',
  14795. L: 'DD/MM/YYYY',
  14796. LL: 'D MMMM YYYY',
  14797. LLL: 'D MMMM YYYY HH:mm',
  14798. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14799. },
  14800. calendar: {
  14801. sameDay: '[Имрӯз соати] LT',
  14802. nextDay: '[Пагоҳ соати] LT',
  14803. lastDay: '[Дирӯз соати] LT',
  14804. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  14805. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  14806. sameElse: 'L',
  14807. },
  14808. relativeTime: {
  14809. future: 'баъди %s',
  14810. past: '%s пеш',
  14811. s: 'якчанд сония',
  14812. m: 'як дақиқа',
  14813. mm: '%d дақиқа',
  14814. h: 'як соат',
  14815. hh: '%d соат',
  14816. d: 'як рӯз',
  14817. dd: '%d рӯз',
  14818. M: 'як моҳ',
  14819. MM: '%d моҳ',
  14820. y: 'як сол',
  14821. yy: '%d сол',
  14822. },
  14823. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  14824. meridiemHour: function (hour, meridiem) {
  14825. if (hour === 12) {
  14826. hour = 0;
  14827. }
  14828. if (meridiem === 'шаб') {
  14829. return hour < 4 ? hour : hour + 12;
  14830. } else if (meridiem === 'субҳ') {
  14831. return hour;
  14832. } else if (meridiem === 'рӯз') {
  14833. return hour >= 11 ? hour : hour + 12;
  14834. } else if (meridiem === 'бегоҳ') {
  14835. return hour + 12;
  14836. }
  14837. },
  14838. meridiem: function (hour, minute, isLower) {
  14839. if (hour < 4) {
  14840. return 'шаб';
  14841. } else if (hour < 11) {
  14842. return 'субҳ';
  14843. } else if (hour < 16) {
  14844. return 'рӯз';
  14845. } else if (hour < 19) {
  14846. return 'бегоҳ';
  14847. } else {
  14848. return 'шаб';
  14849. }
  14850. },
  14851. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  14852. ordinal: function (number) {
  14853. var a = number % 10,
  14854. b = number >= 100 ? 100 : null;
  14855. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  14856. },
  14857. week: {
  14858. dow: 1, // Monday is the first day of the week.
  14859. doy: 7, // The week that contains Jan 1th is the first week of the year.
  14860. },
  14861. });
  14862. //! moment.js locale configuration
  14863. hooks.defineLocale('th', {
  14864. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  14865. '_'
  14866. ),
  14867. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  14868. '_'
  14869. ),
  14870. monthsParseExact: true,
  14871. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  14872. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  14873. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  14874. weekdaysParseExact: true,
  14875. longDateFormat: {
  14876. LT: 'H:mm',
  14877. LTS: 'H:mm:ss',
  14878. L: 'DD/MM/YYYY',
  14879. LL: 'D MMMM YYYY',
  14880. LLL: 'D MMMM YYYY เวลา H:mm',
  14881. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
  14882. },
  14883. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  14884. isPM: function (input) {
  14885. return input === 'หลังเที่ยง';
  14886. },
  14887. meridiem: function (hour, minute, isLower) {
  14888. if (hour < 12) {
  14889. return 'ก่อนเที่ยง';
  14890. } else {
  14891. return 'หลังเที่ยง';
  14892. }
  14893. },
  14894. calendar: {
  14895. sameDay: '[วันนี้ เวลา] LT',
  14896. nextDay: '[พรุ่งนี้ เวลา] LT',
  14897. nextWeek: 'dddd[หน้า เวลา] LT',
  14898. lastDay: '[เมื่อวานนี้ เวลา] LT',
  14899. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  14900. sameElse: 'L',
  14901. },
  14902. relativeTime: {
  14903. future: 'อีก %s',
  14904. past: '%sที่แล้ว',
  14905. s: 'ไม่กี่วินาที',
  14906. ss: '%d วินาที',
  14907. m: '1 นาที',
  14908. mm: '%d นาที',
  14909. h: '1 ชั่วโมง',
  14910. hh: '%d ชั่วโมง',
  14911. d: '1 วัน',
  14912. dd: '%d วัน',
  14913. M: '1 เดือน',
  14914. MM: '%d เดือน',
  14915. y: '1 ปี',
  14916. yy: '%d ปี',
  14917. },
  14918. });
  14919. //! moment.js locale configuration
  14920. hooks.defineLocale('tl-ph', {
  14921. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  14922. '_'
  14923. ),
  14924. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  14925. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  14926. '_'
  14927. ),
  14928. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  14929. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  14930. longDateFormat: {
  14931. LT: 'HH:mm',
  14932. LTS: 'HH:mm:ss',
  14933. L: 'MM/D/YYYY',
  14934. LL: 'MMMM D, YYYY',
  14935. LLL: 'MMMM D, YYYY HH:mm',
  14936. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  14937. },
  14938. calendar: {
  14939. sameDay: 'LT [ngayong araw]',
  14940. nextDay: '[Bukas ng] LT',
  14941. nextWeek: 'LT [sa susunod na] dddd',
  14942. lastDay: 'LT [kahapon]',
  14943. lastWeek: 'LT [noong nakaraang] dddd',
  14944. sameElse: 'L',
  14945. },
  14946. relativeTime: {
  14947. future: 'sa loob ng %s',
  14948. past: '%s ang nakalipas',
  14949. s: 'ilang segundo',
  14950. ss: '%d segundo',
  14951. m: 'isang minuto',
  14952. mm: '%d minuto',
  14953. h: 'isang oras',
  14954. hh: '%d oras',
  14955. d: 'isang araw',
  14956. dd: '%d araw',
  14957. M: 'isang buwan',
  14958. MM: '%d buwan',
  14959. y: 'isang taon',
  14960. yy: '%d taon',
  14961. },
  14962. dayOfMonthOrdinalParse: /\d{1,2}/,
  14963. ordinal: function (number) {
  14964. return number;
  14965. },
  14966. week: {
  14967. dow: 1, // Monday is the first day of the week.
  14968. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14969. },
  14970. });
  14971. //! moment.js locale configuration
  14972. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  14973. function translateFuture(output) {
  14974. var time = output;
  14975. time =
  14976. output.indexOf('jaj') !== -1
  14977. ? time.slice(0, -3) + 'leS'
  14978. : output.indexOf('jar') !== -1
  14979. ? time.slice(0, -3) + 'waQ'
  14980. : output.indexOf('DIS') !== -1
  14981. ? time.slice(0, -3) + 'nem'
  14982. : time + ' pIq';
  14983. return time;
  14984. }
  14985. function translatePast(output) {
  14986. var time = output;
  14987. time =
  14988. output.indexOf('jaj') !== -1
  14989. ? time.slice(0, -3) + 'Hu’'
  14990. : output.indexOf('jar') !== -1
  14991. ? time.slice(0, -3) + 'wen'
  14992. : output.indexOf('DIS') !== -1
  14993. ? time.slice(0, -3) + 'ben'
  14994. : time + ' ret';
  14995. return time;
  14996. }
  14997. function translate$a(number, withoutSuffix, string, isFuture) {
  14998. var numberNoun = numberAsNoun(number);
  14999. switch (string) {
  15000. case 'ss':
  15001. return numberNoun + ' lup';
  15002. case 'mm':
  15003. return numberNoun + ' tup';
  15004. case 'hh':
  15005. return numberNoun + ' rep';
  15006. case 'dd':
  15007. return numberNoun + ' jaj';
  15008. case 'MM':
  15009. return numberNoun + ' jar';
  15010. case 'yy':
  15011. return numberNoun + ' DIS';
  15012. }
  15013. }
  15014. function numberAsNoun(number) {
  15015. var hundred = Math.floor((number % 1000) / 100),
  15016. ten = Math.floor((number % 100) / 10),
  15017. one = number % 10,
  15018. word = '';
  15019. if (hundred > 0) {
  15020. word += numbersNouns[hundred] + 'vatlh';
  15021. }
  15022. if (ten > 0) {
  15023. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  15024. }
  15025. if (one > 0) {
  15026. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  15027. }
  15028. return word === '' ? 'pagh' : word;
  15029. }
  15030. hooks.defineLocale('tlh', {
  15031. 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(
  15032. '_'
  15033. ),
  15034. 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(
  15035. '_'
  15036. ),
  15037. monthsParseExact: true,
  15038. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15039. '_'
  15040. ),
  15041. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15042. '_'
  15043. ),
  15044. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15045. '_'
  15046. ),
  15047. longDateFormat: {
  15048. LT: 'HH:mm',
  15049. LTS: 'HH:mm:ss',
  15050. L: 'DD.MM.YYYY',
  15051. LL: 'D MMMM YYYY',
  15052. LLL: 'D MMMM YYYY HH:mm',
  15053. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15054. },
  15055. calendar: {
  15056. sameDay: '[DaHjaj] LT',
  15057. nextDay: '[wa’leS] LT',
  15058. nextWeek: 'LLL',
  15059. lastDay: '[wa’Hu’] LT',
  15060. lastWeek: 'LLL',
  15061. sameElse: 'L',
  15062. },
  15063. relativeTime: {
  15064. future: translateFuture,
  15065. past: translatePast,
  15066. s: 'puS lup',
  15067. ss: translate$a,
  15068. m: 'wa’ tup',
  15069. mm: translate$a,
  15070. h: 'wa’ rep',
  15071. hh: translate$a,
  15072. d: 'wa’ jaj',
  15073. dd: translate$a,
  15074. M: 'wa’ jar',
  15075. MM: translate$a,
  15076. y: 'wa’ DIS',
  15077. yy: translate$a,
  15078. },
  15079. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15080. ordinal: '%d.',
  15081. week: {
  15082. dow: 1, // Monday is the first day of the week.
  15083. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15084. },
  15085. });
  15086. //! moment.js locale configuration
  15087. var suffixes$4 = {
  15088. 1: "'inci",
  15089. 5: "'inci",
  15090. 8: "'inci",
  15091. 70: "'inci",
  15092. 80: "'inci",
  15093. 2: "'nci",
  15094. 7: "'nci",
  15095. 20: "'nci",
  15096. 50: "'nci",
  15097. 3: "'üncü",
  15098. 4: "'üncü",
  15099. 100: "'üncü",
  15100. 6: "'ncı",
  15101. 9: "'uncu",
  15102. 10: "'uncu",
  15103. 30: "'uncu",
  15104. 60: "'ıncı",
  15105. 90: "'ıncı",
  15106. };
  15107. hooks.defineLocale('tr', {
  15108. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  15109. '_'
  15110. ),
  15111. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  15112. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  15113. '_'
  15114. ),
  15115. weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  15116. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  15117. longDateFormat: {
  15118. LT: 'HH:mm',
  15119. LTS: 'HH:mm:ss',
  15120. L: 'DD.MM.YYYY',
  15121. LL: 'D MMMM YYYY',
  15122. LLL: 'D MMMM YYYY HH:mm',
  15123. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15124. },
  15125. calendar: {
  15126. sameDay: '[bugün saat] LT',
  15127. nextDay: '[yarın saat] LT',
  15128. nextWeek: '[gelecek] dddd [saat] LT',
  15129. lastDay: '[dün] LT',
  15130. lastWeek: '[geçen] dddd [saat] LT',
  15131. sameElse: 'L',
  15132. },
  15133. relativeTime: {
  15134. future: '%s sonra',
  15135. past: '%s önce',
  15136. s: 'birkaç saniye',
  15137. ss: '%d saniye',
  15138. m: 'bir dakika',
  15139. mm: '%d dakika',
  15140. h: 'bir saat',
  15141. hh: '%d saat',
  15142. d: 'bir gün',
  15143. dd: '%d gün',
  15144. M: 'bir ay',
  15145. MM: '%d ay',
  15146. y: 'bir yıl',
  15147. yy: '%d yıl',
  15148. },
  15149. ordinal: function (number, period) {
  15150. switch (period) {
  15151. case 'd':
  15152. case 'D':
  15153. case 'Do':
  15154. case 'DD':
  15155. return number;
  15156. default:
  15157. if (number === 0) {
  15158. // special case for zero
  15159. return number + "'ıncı";
  15160. }
  15161. var a = number % 10,
  15162. b = (number % 100) - a,
  15163. c = number >= 100 ? 100 : null;
  15164. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  15165. }
  15166. },
  15167. week: {
  15168. dow: 1, // Monday is the first day of the week.
  15169. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15170. },
  15171. });
  15172. //! moment.js locale configuration
  15173. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15174. // This is currently too difficult (maybe even impossible) to add.
  15175. hooks.defineLocale('tzl', {
  15176. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  15177. '_'
  15178. ),
  15179. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15180. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15181. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15182. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15183. longDateFormat: {
  15184. LT: 'HH.mm',
  15185. LTS: 'HH.mm.ss',
  15186. L: 'DD.MM.YYYY',
  15187. LL: 'D. MMMM [dallas] YYYY',
  15188. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  15189. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  15190. },
  15191. meridiemParse: /d\'o|d\'a/i,
  15192. isPM: function (input) {
  15193. return "d'o" === input.toLowerCase();
  15194. },
  15195. meridiem: function (hours, minutes, isLower) {
  15196. if (hours > 11) {
  15197. return isLower ? "d'o" : "D'O";
  15198. } else {
  15199. return isLower ? "d'a" : "D'A";
  15200. }
  15201. },
  15202. calendar: {
  15203. sameDay: '[oxhi à] LT',
  15204. nextDay: '[demà à] LT',
  15205. nextWeek: 'dddd [à] LT',
  15206. lastDay: '[ieiri à] LT',
  15207. lastWeek: '[sür el] dddd [lasteu à] LT',
  15208. sameElse: 'L',
  15209. },
  15210. relativeTime: {
  15211. future: 'osprei %s',
  15212. past: 'ja%s',
  15213. s: processRelativeTime$8,
  15214. ss: processRelativeTime$8,
  15215. m: processRelativeTime$8,
  15216. mm: processRelativeTime$8,
  15217. h: processRelativeTime$8,
  15218. hh: processRelativeTime$8,
  15219. d: processRelativeTime$8,
  15220. dd: processRelativeTime$8,
  15221. M: processRelativeTime$8,
  15222. MM: processRelativeTime$8,
  15223. y: processRelativeTime$8,
  15224. yy: processRelativeTime$8,
  15225. },
  15226. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15227. ordinal: '%d.',
  15228. week: {
  15229. dow: 1, // Monday is the first day of the week.
  15230. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15231. },
  15232. });
  15233. function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
  15234. var format = {
  15235. s: ['viensas secunds', "'iensas secunds"],
  15236. ss: [number + ' secunds', '' + number + ' secunds'],
  15237. m: ["'n míut", "'iens míut"],
  15238. mm: [number + ' míuts', '' + number + ' míuts'],
  15239. h: ["'n þora", "'iensa þora"],
  15240. hh: [number + ' þoras', '' + number + ' þoras'],
  15241. d: ["'n ziua", "'iensa ziua"],
  15242. dd: [number + ' ziuas', '' + number + ' ziuas'],
  15243. M: ["'n mes", "'iens mes"],
  15244. MM: [number + ' mesen', '' + number + ' mesen'],
  15245. y: ["'n ar", "'iens ar"],
  15246. yy: [number + ' ars', '' + number + ' ars'],
  15247. };
  15248. return isFuture
  15249. ? format[key][0]
  15250. : withoutSuffix
  15251. ? format[key][0]
  15252. : format[key][1];
  15253. }
  15254. //! moment.js locale configuration
  15255. hooks.defineLocale('tzm-latn', {
  15256. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15257. '_'
  15258. ),
  15259. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15260. '_'
  15261. ),
  15262. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15263. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15264. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15265. longDateFormat: {
  15266. LT: 'HH:mm',
  15267. LTS: 'HH:mm:ss',
  15268. L: 'DD/MM/YYYY',
  15269. LL: 'D MMMM YYYY',
  15270. LLL: 'D MMMM YYYY HH:mm',
  15271. LLLL: 'dddd D MMMM YYYY HH:mm',
  15272. },
  15273. calendar: {
  15274. sameDay: '[asdkh g] LT',
  15275. nextDay: '[aska g] LT',
  15276. nextWeek: 'dddd [g] LT',
  15277. lastDay: '[assant g] LT',
  15278. lastWeek: 'dddd [g] LT',
  15279. sameElse: 'L',
  15280. },
  15281. relativeTime: {
  15282. future: 'dadkh s yan %s',
  15283. past: 'yan %s',
  15284. s: 'imik',
  15285. ss: '%d imik',
  15286. m: 'minuḍ',
  15287. mm: '%d minuḍ',
  15288. h: 'saɛa',
  15289. hh: '%d tassaɛin',
  15290. d: 'ass',
  15291. dd: '%d ossan',
  15292. M: 'ayowr',
  15293. MM: '%d iyyirn',
  15294. y: 'asgas',
  15295. yy: '%d isgasn',
  15296. },
  15297. week: {
  15298. dow: 6, // Saturday is the first day of the week.
  15299. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15300. },
  15301. });
  15302. //! moment.js locale configuration
  15303. hooks.defineLocale('tzm', {
  15304. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15305. '_'
  15306. ),
  15307. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15308. '_'
  15309. ),
  15310. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15311. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15312. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15313. longDateFormat: {
  15314. LT: 'HH:mm',
  15315. LTS: 'HH:mm:ss',
  15316. L: 'DD/MM/YYYY',
  15317. LL: 'D MMMM YYYY',
  15318. LLL: 'D MMMM YYYY HH:mm',
  15319. LLLL: 'dddd D MMMM YYYY HH:mm',
  15320. },
  15321. calendar: {
  15322. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  15323. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  15324. nextWeek: 'dddd [ⴴ] LT',
  15325. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  15326. lastWeek: 'dddd [ⴴ] LT',
  15327. sameElse: 'L',
  15328. },
  15329. relativeTime: {
  15330. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  15331. past: 'ⵢⴰⵏ %s',
  15332. s: 'ⵉⵎⵉⴽ',
  15333. ss: '%d ⵉⵎⵉⴽ',
  15334. m: 'ⵎⵉⵏⵓⴺ',
  15335. mm: '%d ⵎⵉⵏⵓⴺ',
  15336. h: 'ⵙⴰⵄⴰ',
  15337. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  15338. d: 'ⴰⵙⵙ',
  15339. dd: '%d oⵙⵙⴰⵏ',
  15340. M: 'ⴰⵢoⵓⵔ',
  15341. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  15342. y: 'ⴰⵙⴳⴰⵙ',
  15343. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  15344. },
  15345. week: {
  15346. dow: 6, // Saturday is the first day of the week.
  15347. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15348. },
  15349. });
  15350. //! moment.js language configuration
  15351. hooks.defineLocale('ug-cn', {
  15352. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15353. '_'
  15354. ),
  15355. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15356. '_'
  15357. ),
  15358. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  15359. '_'
  15360. ),
  15361. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15362. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15363. longDateFormat: {
  15364. LT: 'HH:mm',
  15365. LTS: 'HH:mm:ss',
  15366. L: 'YYYY-MM-DD',
  15367. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  15368. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15369. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15370. },
  15371. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  15372. meridiemHour: function (hour, meridiem) {
  15373. if (hour === 12) {
  15374. hour = 0;
  15375. }
  15376. if (
  15377. meridiem === 'يېرىم كېچە' ||
  15378. meridiem === 'سەھەر' ||
  15379. meridiem === 'چۈشتىن بۇرۇن'
  15380. ) {
  15381. return hour;
  15382. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  15383. return hour + 12;
  15384. } else {
  15385. return hour >= 11 ? hour : hour + 12;
  15386. }
  15387. },
  15388. meridiem: function (hour, minute, isLower) {
  15389. var hm = hour * 100 + minute;
  15390. if (hm < 600) {
  15391. return 'يېرىم كېچە';
  15392. } else if (hm < 900) {
  15393. return 'سەھەر';
  15394. } else if (hm < 1130) {
  15395. return 'چۈشتىن بۇرۇن';
  15396. } else if (hm < 1230) {
  15397. return 'چۈش';
  15398. } else if (hm < 1800) {
  15399. return 'چۈشتىن كېيىن';
  15400. } else {
  15401. return 'كەچ';
  15402. }
  15403. },
  15404. calendar: {
  15405. sameDay: '[بۈگۈن سائەت] LT',
  15406. nextDay: '[ئەتە سائەت] LT',
  15407. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  15408. lastDay: '[تۆنۈگۈن] LT',
  15409. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  15410. sameElse: 'L',
  15411. },
  15412. relativeTime: {
  15413. future: '%s كېيىن',
  15414. past: '%s بۇرۇن',
  15415. s: 'نەچچە سېكونت',
  15416. ss: '%d سېكونت',
  15417. m: 'بىر مىنۇت',
  15418. mm: '%d مىنۇت',
  15419. h: 'بىر سائەت',
  15420. hh: '%d سائەت',
  15421. d: 'بىر كۈن',
  15422. dd: '%d كۈن',
  15423. M: 'بىر ئاي',
  15424. MM: '%d ئاي',
  15425. y: 'بىر يىل',
  15426. yy: '%d يىل',
  15427. },
  15428. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  15429. ordinal: function (number, period) {
  15430. switch (period) {
  15431. case 'd':
  15432. case 'D':
  15433. case 'DDD':
  15434. return number + '-كۈنى';
  15435. case 'w':
  15436. case 'W':
  15437. return number + '-ھەپتە';
  15438. default:
  15439. return number;
  15440. }
  15441. },
  15442. preparse: function (string) {
  15443. return string.replace(/،/g, ',');
  15444. },
  15445. postformat: function (string) {
  15446. return string.replace(/,/g, '،');
  15447. },
  15448. week: {
  15449. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  15450. dow: 1, // Monday is the first day of the week.
  15451. doy: 7, // The week that contains Jan 1st is the first week of the year.
  15452. },
  15453. });
  15454. //! moment.js locale configuration
  15455. function plural$6(word, num) {
  15456. var forms = word.split('_');
  15457. return num % 10 === 1 && num % 100 !== 11
  15458. ? forms[0]
  15459. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  15460. ? forms[1]
  15461. : forms[2];
  15462. }
  15463. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  15464. var format = {
  15465. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  15466. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  15467. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  15468. dd: 'день_дні_днів',
  15469. MM: 'місяць_місяці_місяців',
  15470. yy: 'рік_роки_років',
  15471. };
  15472. if (key === 'm') {
  15473. return withoutSuffix ? 'хвилина' : 'хвилину';
  15474. } else if (key === 'h') {
  15475. return withoutSuffix ? 'година' : 'годину';
  15476. } else {
  15477. return number + ' ' + plural$6(format[key], +number);
  15478. }
  15479. }
  15480. function weekdaysCaseReplace(m, format) {
  15481. var weekdays = {
  15482. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  15483. '_'
  15484. ),
  15485. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  15486. '_'
  15487. ),
  15488. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  15489. '_'
  15490. ),
  15491. },
  15492. nounCase;
  15493. if (m === true) {
  15494. return weekdays['nominative']
  15495. .slice(1, 7)
  15496. .concat(weekdays['nominative'].slice(0, 1));
  15497. }
  15498. if (!m) {
  15499. return weekdays['nominative'];
  15500. }
  15501. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
  15502. ? 'accusative'
  15503. : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
  15504. ? 'genitive'
  15505. : 'nominative';
  15506. return weekdays[nounCase][m.day()];
  15507. }
  15508. function processHoursFunction(str) {
  15509. return function () {
  15510. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  15511. };
  15512. }
  15513. hooks.defineLocale('uk', {
  15514. months: {
  15515. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  15516. '_'
  15517. ),
  15518. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  15519. '_'
  15520. ),
  15521. },
  15522. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  15523. '_'
  15524. ),
  15525. weekdays: weekdaysCaseReplace,
  15526. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15527. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15528. longDateFormat: {
  15529. LT: 'HH:mm',
  15530. LTS: 'HH:mm:ss',
  15531. L: 'DD.MM.YYYY',
  15532. LL: 'D MMMM YYYY р.',
  15533. LLL: 'D MMMM YYYY р., HH:mm',
  15534. LLLL: 'dddd, D MMMM YYYY р., HH:mm',
  15535. },
  15536. calendar: {
  15537. sameDay: processHoursFunction('[Сьогодні '),
  15538. nextDay: processHoursFunction('[Завтра '),
  15539. lastDay: processHoursFunction('[Вчора '),
  15540. nextWeek: processHoursFunction('[У] dddd ['),
  15541. lastWeek: function () {
  15542. switch (this.day()) {
  15543. case 0:
  15544. case 3:
  15545. case 5:
  15546. case 6:
  15547. return processHoursFunction('[Минулої] dddd [').call(this);
  15548. case 1:
  15549. case 2:
  15550. case 4:
  15551. return processHoursFunction('[Минулого] dddd [').call(this);
  15552. }
  15553. },
  15554. sameElse: 'L',
  15555. },
  15556. relativeTime: {
  15557. future: 'за %s',
  15558. past: '%s тому',
  15559. s: 'декілька секунд',
  15560. ss: relativeTimeWithPlural$4,
  15561. m: relativeTimeWithPlural$4,
  15562. mm: relativeTimeWithPlural$4,
  15563. h: 'годину',
  15564. hh: relativeTimeWithPlural$4,
  15565. d: 'день',
  15566. dd: relativeTimeWithPlural$4,
  15567. M: 'місяць',
  15568. MM: relativeTimeWithPlural$4,
  15569. y: 'рік',
  15570. yy: relativeTimeWithPlural$4,
  15571. },
  15572. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  15573. meridiemParse: /ночі|ранку|дня|вечора/,
  15574. isPM: function (input) {
  15575. return /^(дня|вечора)$/.test(input);
  15576. },
  15577. meridiem: function (hour, minute, isLower) {
  15578. if (hour < 4) {
  15579. return 'ночі';
  15580. } else if (hour < 12) {
  15581. return 'ранку';
  15582. } else if (hour < 17) {
  15583. return 'дня';
  15584. } else {
  15585. return 'вечора';
  15586. }
  15587. },
  15588. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  15589. ordinal: function (number, period) {
  15590. switch (period) {
  15591. case 'M':
  15592. case 'd':
  15593. case 'DDD':
  15594. case 'w':
  15595. case 'W':
  15596. return number + '-й';
  15597. case 'D':
  15598. return number + '-го';
  15599. default:
  15600. return number;
  15601. }
  15602. },
  15603. week: {
  15604. dow: 1, // Monday is the first day of the week.
  15605. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15606. },
  15607. });
  15608. //! moment.js locale configuration
  15609. var months$a = [
  15610. 'جنوری',
  15611. 'فروری',
  15612. 'مارچ',
  15613. 'اپریل',
  15614. 'مئی',
  15615. 'جون',
  15616. 'جولائی',
  15617. 'اگست',
  15618. 'ستمبر',
  15619. 'اکتوبر',
  15620. 'نومبر',
  15621. 'دسمبر',
  15622. ],
  15623. days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  15624. hooks.defineLocale('ur', {
  15625. months: months$a,
  15626. monthsShort: months$a,
  15627. weekdays: days$2,
  15628. weekdaysShort: days$2,
  15629. weekdaysMin: days$2,
  15630. longDateFormat: {
  15631. LT: 'HH:mm',
  15632. LTS: 'HH:mm:ss',
  15633. L: 'DD/MM/YYYY',
  15634. LL: 'D MMMM YYYY',
  15635. LLL: 'D MMMM YYYY HH:mm',
  15636. LLLL: 'dddd، D MMMM YYYY HH:mm',
  15637. },
  15638. meridiemParse: /صبح|شام/,
  15639. isPM: function (input) {
  15640. return 'شام' === input;
  15641. },
  15642. meridiem: function (hour, minute, isLower) {
  15643. if (hour < 12) {
  15644. return 'صبح';
  15645. }
  15646. return 'شام';
  15647. },
  15648. calendar: {
  15649. sameDay: '[آج بوقت] LT',
  15650. nextDay: '[کل بوقت] LT',
  15651. nextWeek: 'dddd [بوقت] LT',
  15652. lastDay: '[گذشتہ روز بوقت] LT',
  15653. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  15654. sameElse: 'L',
  15655. },
  15656. relativeTime: {
  15657. future: '%s بعد',
  15658. past: '%s قبل',
  15659. s: 'چند سیکنڈ',
  15660. ss: '%d سیکنڈ',
  15661. m: 'ایک منٹ',
  15662. mm: '%d منٹ',
  15663. h: 'ایک گھنٹہ',
  15664. hh: '%d گھنٹے',
  15665. d: 'ایک دن',
  15666. dd: '%d دن',
  15667. M: 'ایک ماہ',
  15668. MM: '%d ماہ',
  15669. y: 'ایک سال',
  15670. yy: '%d سال',
  15671. },
  15672. preparse: function (string) {
  15673. return string.replace(/،/g, ',');
  15674. },
  15675. postformat: function (string) {
  15676. return string.replace(/,/g, '،');
  15677. },
  15678. week: {
  15679. dow: 1, // Monday is the first day of the week.
  15680. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15681. },
  15682. });
  15683. //! moment.js locale configuration
  15684. hooks.defineLocale('uz-latn', {
  15685. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  15686. '_'
  15687. ),
  15688. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  15689. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  15690. '_'
  15691. ),
  15692. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  15693. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  15694. longDateFormat: {
  15695. LT: 'HH:mm',
  15696. LTS: 'HH:mm:ss',
  15697. L: 'DD/MM/YYYY',
  15698. LL: 'D MMMM YYYY',
  15699. LLL: 'D MMMM YYYY HH:mm',
  15700. LLLL: 'D MMMM YYYY, dddd HH:mm',
  15701. },
  15702. calendar: {
  15703. sameDay: '[Bugun soat] LT [da]',
  15704. nextDay: '[Ertaga] LT [da]',
  15705. nextWeek: 'dddd [kuni soat] LT [da]',
  15706. lastDay: '[Kecha soat] LT [da]',
  15707. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  15708. sameElse: 'L',
  15709. },
  15710. relativeTime: {
  15711. future: 'Yaqin %s ichida',
  15712. past: 'Bir necha %s oldin',
  15713. s: 'soniya',
  15714. ss: '%d soniya',
  15715. m: 'bir daqiqa',
  15716. mm: '%d daqiqa',
  15717. h: 'bir soat',
  15718. hh: '%d soat',
  15719. d: 'bir kun',
  15720. dd: '%d kun',
  15721. M: 'bir oy',
  15722. MM: '%d oy',
  15723. y: 'bir yil',
  15724. yy: '%d yil',
  15725. },
  15726. week: {
  15727. dow: 1, // Monday is the first day of the week.
  15728. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15729. },
  15730. });
  15731. //! moment.js locale configuration
  15732. hooks.defineLocale('uz', {
  15733. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  15734. '_'
  15735. ),
  15736. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  15737. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  15738. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  15739. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  15740. longDateFormat: {
  15741. LT: 'HH:mm',
  15742. LTS: 'HH:mm:ss',
  15743. L: 'DD/MM/YYYY',
  15744. LL: 'D MMMM YYYY',
  15745. LLL: 'D MMMM YYYY HH:mm',
  15746. LLLL: 'D MMMM YYYY, dddd HH:mm',
  15747. },
  15748. calendar: {
  15749. sameDay: '[Бугун соат] LT [да]',
  15750. nextDay: '[Эртага] LT [да]',
  15751. nextWeek: 'dddd [куни соат] LT [да]',
  15752. lastDay: '[Кеча соат] LT [да]',
  15753. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  15754. sameElse: 'L',
  15755. },
  15756. relativeTime: {
  15757. future: 'Якин %s ичида',
  15758. past: 'Бир неча %s олдин',
  15759. s: 'фурсат',
  15760. ss: '%d фурсат',
  15761. m: 'бир дакика',
  15762. mm: '%d дакика',
  15763. h: 'бир соат',
  15764. hh: '%d соат',
  15765. d: 'бир кун',
  15766. dd: '%d кун',
  15767. M: 'бир ой',
  15768. MM: '%d ой',
  15769. y: 'бир йил',
  15770. yy: '%d йил',
  15771. },
  15772. week: {
  15773. dow: 1, // Monday is the first day of the week.
  15774. doy: 7, // The week that contains Jan 4th is the first week of the year.
  15775. },
  15776. });
  15777. //! moment.js locale configuration
  15778. hooks.defineLocale('vi', {
  15779. 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(
  15780. '_'
  15781. ),
  15782. monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split(
  15783. '_'
  15784. ),
  15785. monthsParseExact: true,
  15786. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  15787. '_'
  15788. ),
  15789. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  15790. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  15791. weekdaysParseExact: true,
  15792. meridiemParse: /sa|ch/i,
  15793. isPM: function (input) {
  15794. return /^ch$/i.test(input);
  15795. },
  15796. meridiem: function (hours, minutes, isLower) {
  15797. if (hours < 12) {
  15798. return isLower ? 'sa' : 'SA';
  15799. } else {
  15800. return isLower ? 'ch' : 'CH';
  15801. }
  15802. },
  15803. longDateFormat: {
  15804. LT: 'HH:mm',
  15805. LTS: 'HH:mm:ss',
  15806. L: 'DD/MM/YYYY',
  15807. LL: 'D MMMM [năm] YYYY',
  15808. LLL: 'D MMMM [năm] YYYY HH:mm',
  15809. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  15810. l: 'DD/M/YYYY',
  15811. ll: 'D MMM YYYY',
  15812. lll: 'D MMM YYYY HH:mm',
  15813. llll: 'ddd, D MMM YYYY HH:mm',
  15814. },
  15815. calendar: {
  15816. sameDay: '[Hôm nay lúc] LT',
  15817. nextDay: '[Ngày mai lúc] LT',
  15818. nextWeek: 'dddd [tuần tới lúc] LT',
  15819. lastDay: '[Hôm qua lúc] LT',
  15820. lastWeek: 'dddd [tuần trước lúc] LT',
  15821. sameElse: 'L',
  15822. },
  15823. relativeTime: {
  15824. future: '%s tới',
  15825. past: '%s trước',
  15826. s: 'vài giây',
  15827. ss: '%d giây',
  15828. m: 'một phút',
  15829. mm: '%d phút',
  15830. h: 'một giờ',
  15831. hh: '%d giờ',
  15832. d: 'một ngày',
  15833. dd: '%d ngày',
  15834. M: 'một tháng',
  15835. MM: '%d tháng',
  15836. y: 'một năm',
  15837. yy: '%d năm',
  15838. },
  15839. dayOfMonthOrdinalParse: /\d{1,2}/,
  15840. ordinal: function (number) {
  15841. return number;
  15842. },
  15843. week: {
  15844. dow: 1, // Monday is the first day of the week.
  15845. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15846. },
  15847. });
  15848. //! moment.js locale configuration
  15849. hooks.defineLocale('x-pseudo', {
  15850. 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(
  15851. '_'
  15852. ),
  15853. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  15854. '_'
  15855. ),
  15856. monthsParseExact: true,
  15857. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  15858. '_'
  15859. ),
  15860. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  15861. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  15862. weekdaysParseExact: true,
  15863. longDateFormat: {
  15864. LT: 'HH:mm',
  15865. L: 'DD/MM/YYYY',
  15866. LL: 'D MMMM YYYY',
  15867. LLL: 'D MMMM YYYY HH:mm',
  15868. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15869. },
  15870. calendar: {
  15871. sameDay: '[T~ódá~ý át] LT',
  15872. nextDay: '[T~ómó~rró~w át] LT',
  15873. nextWeek: 'dddd [át] LT',
  15874. lastDay: '[Ý~ést~érdá~ý át] LT',
  15875. lastWeek: '[L~ást] dddd [át] LT',
  15876. sameElse: 'L',
  15877. },
  15878. relativeTime: {
  15879. future: 'í~ñ %s',
  15880. past: '%s á~gó',
  15881. s: 'á ~féw ~sécó~ñds',
  15882. ss: '%d s~écóñ~ds',
  15883. m: 'á ~míñ~úté',
  15884. mm: '%d m~íñú~tés',
  15885. h: 'á~ñ hó~úr',
  15886. hh: '%d h~óúrs',
  15887. d: 'á ~dáý',
  15888. dd: '%d d~áýs',
  15889. M: 'á ~móñ~th',
  15890. MM: '%d m~óñt~hs',
  15891. y: 'á ~ýéár',
  15892. yy: '%d ý~éárs',
  15893. },
  15894. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  15895. ordinal: function (number) {
  15896. var b = number % 10,
  15897. output =
  15898. ~~((number % 100) / 10) === 1
  15899. ? 'th'
  15900. : b === 1
  15901. ? 'st'
  15902. : b === 2
  15903. ? 'nd'
  15904. : b === 3
  15905. ? 'rd'
  15906. : 'th';
  15907. return number + output;
  15908. },
  15909. week: {
  15910. dow: 1, // Monday is the first day of the week.
  15911. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15912. },
  15913. });
  15914. //! moment.js locale configuration
  15915. hooks.defineLocale('yo', {
  15916. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  15917. '_'
  15918. ),
  15919. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  15920. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  15921. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  15922. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  15923. longDateFormat: {
  15924. LT: 'h:mm A',
  15925. LTS: 'h:mm:ss A',
  15926. L: 'DD/MM/YYYY',
  15927. LL: 'D MMMM YYYY',
  15928. LLL: 'D MMMM YYYY h:mm A',
  15929. LLLL: 'dddd, D MMMM YYYY h:mm A',
  15930. },
  15931. calendar: {
  15932. sameDay: '[Ònì ni] LT',
  15933. nextDay: '[Ọ̀la ni] LT',
  15934. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  15935. lastDay: '[Àna ni] LT',
  15936. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  15937. sameElse: 'L',
  15938. },
  15939. relativeTime: {
  15940. future: 'ní %s',
  15941. past: '%s kọjá',
  15942. s: 'ìsẹjú aayá die',
  15943. ss: 'aayá %d',
  15944. m: 'ìsẹjú kan',
  15945. mm: 'ìsẹjú %d',
  15946. h: 'wákati kan',
  15947. hh: 'wákati %d',
  15948. d: 'ọjọ́ kan',
  15949. dd: 'ọjọ́ %d',
  15950. M: 'osù kan',
  15951. MM: 'osù %d',
  15952. y: 'ọdún kan',
  15953. yy: 'ọdún %d',
  15954. },
  15955. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  15956. ordinal: 'ọjọ́ %d',
  15957. week: {
  15958. dow: 1, // Monday is the first day of the week.
  15959. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15960. },
  15961. });
  15962. //! moment.js locale configuration
  15963. hooks.defineLocale('zh-cn', {
  15964. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  15965. '_'
  15966. ),
  15967. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  15968. '_'
  15969. ),
  15970. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  15971. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  15972. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  15973. longDateFormat: {
  15974. LT: 'HH:mm',
  15975. LTS: 'HH:mm:ss',
  15976. L: 'YYYY/MM/DD',
  15977. LL: 'YYYY年M月D日',
  15978. LLL: 'YYYY年M月D日Ah点mm分',
  15979. LLLL: 'YYYY年M月D日ddddAh点mm分',
  15980. l: 'YYYY/M/D',
  15981. ll: 'YYYY年M月D日',
  15982. lll: 'YYYY年M月D日 HH:mm',
  15983. llll: 'YYYY年M月D日dddd HH:mm',
  15984. },
  15985. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  15986. meridiemHour: function (hour, meridiem) {
  15987. if (hour === 12) {
  15988. hour = 0;
  15989. }
  15990. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  15991. return hour;
  15992. } else if (meridiem === '下午' || meridiem === '晚上') {
  15993. return hour + 12;
  15994. } else {
  15995. // '中午'
  15996. return hour >= 11 ? hour : hour + 12;
  15997. }
  15998. },
  15999. meridiem: function (hour, minute, isLower) {
  16000. var hm = hour * 100 + minute;
  16001. if (hm < 600) {
  16002. return '凌晨';
  16003. } else if (hm < 900) {
  16004. return '早上';
  16005. } else if (hm < 1130) {
  16006. return '上午';
  16007. } else if (hm < 1230) {
  16008. return '中午';
  16009. } else if (hm < 1800) {
  16010. return '下午';
  16011. } else {
  16012. return '晚上';
  16013. }
  16014. },
  16015. calendar: {
  16016. sameDay: '[今天]LT',
  16017. nextDay: '[明天]LT',
  16018. nextWeek: '[下]ddddLT',
  16019. lastDay: '[昨天]LT',
  16020. lastWeek: '[上]ddddLT',
  16021. sameElse: 'L',
  16022. },
  16023. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  16024. ordinal: function (number, period) {
  16025. switch (period) {
  16026. case 'd':
  16027. case 'D':
  16028. case 'DDD':
  16029. return number + '日';
  16030. case 'M':
  16031. return number + '月';
  16032. case 'w':
  16033. case 'W':
  16034. return number + '周';
  16035. default:
  16036. return number;
  16037. }
  16038. },
  16039. relativeTime: {
  16040. future: '%s后',
  16041. past: '%s前',
  16042. s: '几秒',
  16043. ss: '%d 秒',
  16044. m: '1 分钟',
  16045. mm: '%d 分钟',
  16046. h: '1 小时',
  16047. hh: '%d 小时',
  16048. d: '1 天',
  16049. dd: '%d 天',
  16050. M: '1 个月',
  16051. MM: '%d 个月',
  16052. y: '1 年',
  16053. yy: '%d 年',
  16054. },
  16055. week: {
  16056. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16057. dow: 1, // Monday is the first day of the week.
  16058. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16059. },
  16060. });
  16061. //! moment.js locale configuration
  16062. hooks.defineLocale('zh-hk', {
  16063. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16064. '_'
  16065. ),
  16066. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16067. '_'
  16068. ),
  16069. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16070. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16071. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16072. longDateFormat: {
  16073. LT: 'HH:mm',
  16074. LTS: 'HH:mm:ss',
  16075. L: 'YYYY/MM/DD',
  16076. LL: 'YYYY年M月D日',
  16077. LLL: 'YYYY年M月D日 HH:mm',
  16078. LLLL: 'YYYY年M月D日dddd HH:mm',
  16079. l: 'YYYY/M/D',
  16080. ll: 'YYYY年M月D日',
  16081. lll: 'YYYY年M月D日 HH:mm',
  16082. llll: 'YYYY年M月D日dddd HH:mm',
  16083. },
  16084. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16085. meridiemHour: function (hour, meridiem) {
  16086. if (hour === 12) {
  16087. hour = 0;
  16088. }
  16089. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16090. return hour;
  16091. } else if (meridiem === '中午') {
  16092. return hour >= 11 ? hour : hour + 12;
  16093. } else if (meridiem === '下午' || meridiem === '晚上') {
  16094. return hour + 12;
  16095. }
  16096. },
  16097. meridiem: function (hour, minute, isLower) {
  16098. var hm = hour * 100 + minute;
  16099. if (hm < 600) {
  16100. return '凌晨';
  16101. } else if (hm < 900) {
  16102. return '早上';
  16103. } else if (hm < 1200) {
  16104. return '上午';
  16105. } else if (hm === 1200) {
  16106. return '中午';
  16107. } else if (hm < 1800) {
  16108. return '下午';
  16109. } else {
  16110. return '晚上';
  16111. }
  16112. },
  16113. calendar: {
  16114. sameDay: '[今天]LT',
  16115. nextDay: '[明天]LT',
  16116. nextWeek: '[下]ddddLT',
  16117. lastDay: '[昨天]LT',
  16118. lastWeek: '[上]ddddLT',
  16119. sameElse: 'L',
  16120. },
  16121. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16122. ordinal: function (number, period) {
  16123. switch (period) {
  16124. case 'd':
  16125. case 'D':
  16126. case 'DDD':
  16127. return number + '日';
  16128. case 'M':
  16129. return number + '月';
  16130. case 'w':
  16131. case 'W':
  16132. return number + '週';
  16133. default:
  16134. return number;
  16135. }
  16136. },
  16137. relativeTime: {
  16138. future: '%s後',
  16139. past: '%s前',
  16140. s: '幾秒',
  16141. ss: '%d 秒',
  16142. m: '1 分鐘',
  16143. mm: '%d 分鐘',
  16144. h: '1 小時',
  16145. hh: '%d 小時',
  16146. d: '1 天',
  16147. dd: '%d 天',
  16148. M: '1 個月',
  16149. MM: '%d 個月',
  16150. y: '1 年',
  16151. yy: '%d 年',
  16152. },
  16153. });
  16154. //! moment.js locale configuration
  16155. hooks.defineLocale('zh-mo', {
  16156. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16157. '_'
  16158. ),
  16159. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16160. '_'
  16161. ),
  16162. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16163. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16164. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16165. longDateFormat: {
  16166. LT: 'HH:mm',
  16167. LTS: 'HH:mm:ss',
  16168. L: 'DD/MM/YYYY',
  16169. LL: 'YYYY年M月D日',
  16170. LLL: 'YYYY年M月D日 HH:mm',
  16171. LLLL: 'YYYY年M月D日dddd HH:mm',
  16172. l: 'D/M/YYYY',
  16173. ll: 'YYYY年M月D日',
  16174. lll: 'YYYY年M月D日 HH:mm',
  16175. llll: 'YYYY年M月D日dddd HH:mm',
  16176. },
  16177. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16178. meridiemHour: function (hour, meridiem) {
  16179. if (hour === 12) {
  16180. hour = 0;
  16181. }
  16182. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16183. return hour;
  16184. } else if (meridiem === '中午') {
  16185. return hour >= 11 ? hour : hour + 12;
  16186. } else if (meridiem === '下午' || meridiem === '晚上') {
  16187. return hour + 12;
  16188. }
  16189. },
  16190. meridiem: function (hour, minute, isLower) {
  16191. var hm = hour * 100 + minute;
  16192. if (hm < 600) {
  16193. return '凌晨';
  16194. } else if (hm < 900) {
  16195. return '早上';
  16196. } else if (hm < 1130) {
  16197. return '上午';
  16198. } else if (hm < 1230) {
  16199. return '中午';
  16200. } else if (hm < 1800) {
  16201. return '下午';
  16202. } else {
  16203. return '晚上';
  16204. }
  16205. },
  16206. calendar: {
  16207. sameDay: '[今天] LT',
  16208. nextDay: '[明天] LT',
  16209. nextWeek: '[下]dddd LT',
  16210. lastDay: '[昨天] LT',
  16211. lastWeek: '[上]dddd LT',
  16212. sameElse: 'L',
  16213. },
  16214. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16215. ordinal: function (number, period) {
  16216. switch (period) {
  16217. case 'd':
  16218. case 'D':
  16219. case 'DDD':
  16220. return number + '日';
  16221. case 'M':
  16222. return number + '月';
  16223. case 'w':
  16224. case 'W':
  16225. return number + '週';
  16226. default:
  16227. return number;
  16228. }
  16229. },
  16230. relativeTime: {
  16231. future: '%s內',
  16232. past: '%s前',
  16233. s: '幾秒',
  16234. ss: '%d 秒',
  16235. m: '1 分鐘',
  16236. mm: '%d 分鐘',
  16237. h: '1 小時',
  16238. hh: '%d 小時',
  16239. d: '1 天',
  16240. dd: '%d 天',
  16241. M: '1 個月',
  16242. MM: '%d 個月',
  16243. y: '1 年',
  16244. yy: '%d 年',
  16245. },
  16246. });
  16247. //! moment.js locale configuration
  16248. hooks.defineLocale('zh-tw', {
  16249. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16250. '_'
  16251. ),
  16252. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16253. '_'
  16254. ),
  16255. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16256. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16257. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16258. longDateFormat: {
  16259. LT: 'HH:mm',
  16260. LTS: 'HH:mm:ss',
  16261. L: 'YYYY/MM/DD',
  16262. LL: 'YYYY年M月D日',
  16263. LLL: 'YYYY年M月D日 HH:mm',
  16264. LLLL: 'YYYY年M月D日dddd HH:mm',
  16265. l: 'YYYY/M/D',
  16266. ll: 'YYYY年M月D日',
  16267. lll: 'YYYY年M月D日 HH:mm',
  16268. llll: 'YYYY年M月D日dddd HH:mm',
  16269. },
  16270. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16271. meridiemHour: function (hour, meridiem) {
  16272. if (hour === 12) {
  16273. hour = 0;
  16274. }
  16275. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16276. return hour;
  16277. } else if (meridiem === '中午') {
  16278. return hour >= 11 ? hour : hour + 12;
  16279. } else if (meridiem === '下午' || meridiem === '晚上') {
  16280. return hour + 12;
  16281. }
  16282. },
  16283. meridiem: function (hour, minute, isLower) {
  16284. var hm = hour * 100 + minute;
  16285. if (hm < 600) {
  16286. return '凌晨';
  16287. } else if (hm < 900) {
  16288. return '早上';
  16289. } else if (hm < 1130) {
  16290. return '上午';
  16291. } else if (hm < 1230) {
  16292. return '中午';
  16293. } else if (hm < 1800) {
  16294. return '下午';
  16295. } else {
  16296. return '晚上';
  16297. }
  16298. },
  16299. calendar: {
  16300. sameDay: '[今天] LT',
  16301. nextDay: '[明天] LT',
  16302. nextWeek: '[下]dddd LT',
  16303. lastDay: '[昨天] LT',
  16304. lastWeek: '[上]dddd LT',
  16305. sameElse: 'L',
  16306. },
  16307. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16308. ordinal: function (number, period) {
  16309. switch (period) {
  16310. case 'd':
  16311. case 'D':
  16312. case 'DDD':
  16313. return number + '日';
  16314. case 'M':
  16315. return number + '月';
  16316. case 'w':
  16317. case 'W':
  16318. return number + '週';
  16319. default:
  16320. return number;
  16321. }
  16322. },
  16323. relativeTime: {
  16324. future: '%s後',
  16325. past: '%s前',
  16326. s: '幾秒',
  16327. ss: '%d 秒',
  16328. m: '1 分鐘',
  16329. mm: '%d 分鐘',
  16330. h: '1 小時',
  16331. hh: '%d 小時',
  16332. d: '1 天',
  16333. dd: '%d 天',
  16334. M: '1 個月',
  16335. MM: '%d 個月',
  16336. y: '1 年',
  16337. yy: '%d 年',
  16338. },
  16339. });
  16340. hooks.locale('en');
  16341. return hooks;
  16342. })));