moment-with-locales.js 437 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051
  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 utils_hooks__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 input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  17. }
  18. function isDate(input) {
  19. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  20. }
  21. function map(arr, fn) {
  22. var res = [], i;
  23. for (i = 0; i < arr.length; ++i) {
  24. res.push(fn(arr[i], i));
  25. }
  26. return res;
  27. }
  28. function hasOwnProp(a, b) {
  29. return Object.prototype.hasOwnProperty.call(a, b);
  30. }
  31. function extend(a, b) {
  32. for (var i in b) {
  33. if (hasOwnProp(b, i)) {
  34. a[i] = b[i];
  35. }
  36. }
  37. if (hasOwnProp(b, 'toString')) {
  38. a.toString = b.toString;
  39. }
  40. if (hasOwnProp(b, 'valueOf')) {
  41. a.valueOf = b.valueOf;
  42. }
  43. return a;
  44. }
  45. function create_utc__createUTC (input, format, locale, strict) {
  46. return createLocalOrUTC(input, format, locale, strict, true).utc();
  47. }
  48. function defaultParsingFlags() {
  49. // We need to deep clone this object.
  50. return {
  51. empty : false,
  52. unusedTokens : [],
  53. unusedInput : [],
  54. overflow : -2,
  55. charsLeftOver : 0,
  56. nullInput : false,
  57. invalidMonth : null,
  58. invalidFormat : false,
  59. userInvalidated : false,
  60. iso : false,
  61. parsedDateParts : [],
  62. meridiem : null
  63. };
  64. }
  65. function getParsingFlags(m) {
  66. if (m._pf == null) {
  67. m._pf = defaultParsingFlags();
  68. }
  69. return m._pf;
  70. }
  71. var some;
  72. if (Array.prototype.some) {
  73. some = Array.prototype.some;
  74. } else {
  75. some = function (fun) {
  76. var t = Object(this);
  77. var len = t.length >>> 0;
  78. for (var i = 0; i < len; i++) {
  79. if (i in t && fun.call(this, t[i], i, t)) {
  80. return true;
  81. }
  82. }
  83. return false;
  84. };
  85. }
  86. function valid__isValid(m) {
  87. if (m._isValid == null) {
  88. var flags = getParsingFlags(m);
  89. var parsedParts = some.call(flags.parsedDateParts, function (i) {
  90. return i != null;
  91. });
  92. m._isValid = !isNaN(m._d.getTime()) &&
  93. flags.overflow < 0 &&
  94. !flags.empty &&
  95. !flags.invalidMonth &&
  96. !flags.invalidWeekday &&
  97. !flags.nullInput &&
  98. !flags.invalidFormat &&
  99. !flags.userInvalidated &&
  100. (!flags.meridiem || (flags.meridiem && parsedParts));
  101. if (m._strict) {
  102. m._isValid = m._isValid &&
  103. flags.charsLeftOver === 0 &&
  104. flags.unusedTokens.length === 0 &&
  105. flags.bigHour === undefined;
  106. }
  107. }
  108. return m._isValid;
  109. }
  110. function valid__createInvalid (flags) {
  111. var m = create_utc__createUTC(NaN);
  112. if (flags != null) {
  113. extend(getParsingFlags(m), flags);
  114. }
  115. else {
  116. getParsingFlags(m).userInvalidated = true;
  117. }
  118. return m;
  119. }
  120. function isUndefined(input) {
  121. return input === void 0;
  122. }
  123. // Plugins that add properties should also add the key here (null value),
  124. // so we can properly clone ourselves.
  125. var momentProperties = utils_hooks__hooks.momentProperties = [];
  126. function copyConfig(to, from) {
  127. var i, prop, val;
  128. if (!isUndefined(from._isAMomentObject)) {
  129. to._isAMomentObject = from._isAMomentObject;
  130. }
  131. if (!isUndefined(from._i)) {
  132. to._i = from._i;
  133. }
  134. if (!isUndefined(from._f)) {
  135. to._f = from._f;
  136. }
  137. if (!isUndefined(from._l)) {
  138. to._l = from._l;
  139. }
  140. if (!isUndefined(from._strict)) {
  141. to._strict = from._strict;
  142. }
  143. if (!isUndefined(from._tzm)) {
  144. to._tzm = from._tzm;
  145. }
  146. if (!isUndefined(from._isUTC)) {
  147. to._isUTC = from._isUTC;
  148. }
  149. if (!isUndefined(from._offset)) {
  150. to._offset = from._offset;
  151. }
  152. if (!isUndefined(from._pf)) {
  153. to._pf = getParsingFlags(from);
  154. }
  155. if (!isUndefined(from._locale)) {
  156. to._locale = from._locale;
  157. }
  158. if (momentProperties.length > 0) {
  159. for (i in momentProperties) {
  160. prop = momentProperties[i];
  161. val = from[prop];
  162. if (!isUndefined(val)) {
  163. to[prop] = val;
  164. }
  165. }
  166. }
  167. return to;
  168. }
  169. var updateInProgress = false;
  170. // Moment prototype object
  171. function Moment(config) {
  172. copyConfig(this, config);
  173. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  174. // Prevent infinite loop in case updateOffset creates new moment
  175. // objects.
  176. if (updateInProgress === false) {
  177. updateInProgress = true;
  178. utils_hooks__hooks.updateOffset(this);
  179. updateInProgress = false;
  180. }
  181. }
  182. function isMoment (obj) {
  183. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  184. }
  185. function absFloor (number) {
  186. if (number < 0) {
  187. return Math.ceil(number);
  188. } else {
  189. return Math.floor(number);
  190. }
  191. }
  192. function toInt(argumentForCoercion) {
  193. var coercedNumber = +argumentForCoercion,
  194. value = 0;
  195. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  196. value = absFloor(coercedNumber);
  197. }
  198. return value;
  199. }
  200. // compare two arrays, return the number of differences
  201. function compareArrays(array1, array2, dontConvert) {
  202. var len = Math.min(array1.length, array2.length),
  203. lengthDiff = Math.abs(array1.length - array2.length),
  204. diffs = 0,
  205. i;
  206. for (i = 0; i < len; i++) {
  207. if ((dontConvert && array1[i] !== array2[i]) ||
  208. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  209. diffs++;
  210. }
  211. }
  212. return diffs + lengthDiff;
  213. }
  214. function warn(msg) {
  215. if (utils_hooks__hooks.suppressDeprecationWarnings === false &&
  216. (typeof console !== 'undefined') && console.warn) {
  217. console.warn('Deprecation warning: ' + msg);
  218. }
  219. }
  220. function deprecate(msg, fn) {
  221. var firstTime = true;
  222. return extend(function () {
  223. if (utils_hooks__hooks.deprecationHandler != null) {
  224. utils_hooks__hooks.deprecationHandler(null, msg);
  225. }
  226. if (firstTime) {
  227. warn(msg + '\nArguments: ' + Array.prototype.slice.call(arguments).join(', ') + '\n' + (new Error()).stack);
  228. firstTime = false;
  229. }
  230. return fn.apply(this, arguments);
  231. }, fn);
  232. }
  233. var deprecations = {};
  234. function deprecateSimple(name, msg) {
  235. if (utils_hooks__hooks.deprecationHandler != null) {
  236. utils_hooks__hooks.deprecationHandler(name, msg);
  237. }
  238. if (!deprecations[name]) {
  239. warn(msg);
  240. deprecations[name] = true;
  241. }
  242. }
  243. utils_hooks__hooks.suppressDeprecationWarnings = false;
  244. utils_hooks__hooks.deprecationHandler = null;
  245. function isFunction(input) {
  246. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  247. }
  248. function isObject(input) {
  249. return Object.prototype.toString.call(input) === '[object Object]';
  250. }
  251. function locale_set__set (config) {
  252. var prop, i;
  253. for (i in config) {
  254. prop = config[i];
  255. if (isFunction(prop)) {
  256. this[i] = prop;
  257. } else {
  258. this['_' + i] = prop;
  259. }
  260. }
  261. this._config = config;
  262. // Lenient ordinal parsing accepts just a number in addition to
  263. // number + (possibly) stuff coming from _ordinalParseLenient.
  264. this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + (/\d{1,2}/).source);
  265. }
  266. function mergeConfigs(parentConfig, childConfig) {
  267. var res = extend({}, parentConfig), prop;
  268. for (prop in childConfig) {
  269. if (hasOwnProp(childConfig, prop)) {
  270. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  271. res[prop] = {};
  272. extend(res[prop], parentConfig[prop]);
  273. extend(res[prop], childConfig[prop]);
  274. } else if (childConfig[prop] != null) {
  275. res[prop] = childConfig[prop];
  276. } else {
  277. delete res[prop];
  278. }
  279. }
  280. }
  281. return res;
  282. }
  283. function Locale(config) {
  284. if (config != null) {
  285. this.set(config);
  286. }
  287. }
  288. var keys;
  289. if (Object.keys) {
  290. keys = Object.keys;
  291. } else {
  292. keys = function (obj) {
  293. var i, res = [];
  294. for (i in obj) {
  295. if (hasOwnProp(obj, i)) {
  296. res.push(i);
  297. }
  298. }
  299. return res;
  300. };
  301. }
  302. // internal storage for locale config files
  303. var locales = {};
  304. var globalLocale;
  305. function normalizeLocale(key) {
  306. return key ? key.toLowerCase().replace('_', '-') : key;
  307. }
  308. // pick the locale from the array
  309. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  310. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  311. function chooseLocale(names) {
  312. var i = 0, j, next, locale, split;
  313. while (i < names.length) {
  314. split = normalizeLocale(names[i]).split('-');
  315. j = split.length;
  316. next = normalizeLocale(names[i + 1]);
  317. next = next ? next.split('-') : null;
  318. while (j > 0) {
  319. locale = loadLocale(split.slice(0, j).join('-'));
  320. if (locale) {
  321. return locale;
  322. }
  323. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  324. //the next array item is better than a shallower substring of this one
  325. break;
  326. }
  327. j--;
  328. }
  329. i++;
  330. }
  331. return null;
  332. }
  333. function loadLocale(name) {
  334. var oldLocale = null;
  335. // TODO: Find a better way to register and load all the locales in Node
  336. if (!locales[name] && (typeof module !== 'undefined') &&
  337. module && module.exports) {
  338. try {
  339. oldLocale = globalLocale._abbr;
  340. require('./locale/' + name);
  341. // because defineLocale currently also sets the global locale, we
  342. // want to undo that for lazy loaded locales
  343. locale_locales__getSetGlobalLocale(oldLocale);
  344. } catch (e) { }
  345. }
  346. return locales[name];
  347. }
  348. // This function will load locale and then set the global locale. If
  349. // no arguments are passed in, it will simply return the current global
  350. // locale key.
  351. function locale_locales__getSetGlobalLocale (key, values) {
  352. var data;
  353. if (key) {
  354. if (isUndefined(values)) {
  355. data = locale_locales__getLocale(key);
  356. }
  357. else {
  358. data = defineLocale(key, values);
  359. }
  360. if (data) {
  361. // moment.duration._locale = moment._locale = data;
  362. globalLocale = data;
  363. }
  364. }
  365. return globalLocale._abbr;
  366. }
  367. function defineLocale (name, config) {
  368. if (config !== null) {
  369. config.abbr = name;
  370. if (locales[name] != null) {
  371. deprecateSimple('defineLocaleOverride',
  372. 'use moment.updateLocale(localeName, config) to change ' +
  373. 'an existing locale. moment.defineLocale(localeName, ' +
  374. 'config) should only be used for creating a new locale');
  375. config = mergeConfigs(locales[name]._config, config);
  376. } else if (config.parentLocale != null) {
  377. if (locales[config.parentLocale] != null) {
  378. config = mergeConfigs(locales[config.parentLocale]._config, config);
  379. } else {
  380. // treat as if there is no base config
  381. deprecateSimple('parentLocaleUndefined',
  382. 'specified parentLocale is not defined yet');
  383. }
  384. }
  385. locales[name] = new Locale(config);
  386. // backwards compat for now: also set the locale
  387. locale_locales__getSetGlobalLocale(name);
  388. return locales[name];
  389. } else {
  390. // useful for testing
  391. delete locales[name];
  392. return null;
  393. }
  394. }
  395. function updateLocale(name, config) {
  396. if (config != null) {
  397. var locale;
  398. if (locales[name] != null) {
  399. config = mergeConfigs(locales[name]._config, config);
  400. }
  401. locale = new Locale(config);
  402. locale.parentLocale = locales[name];
  403. locales[name] = locale;
  404. // backwards compat for now: also set the locale
  405. locale_locales__getSetGlobalLocale(name);
  406. } else {
  407. // pass null for config to unupdate, useful for tests
  408. if (locales[name] != null) {
  409. if (locales[name].parentLocale != null) {
  410. locales[name] = locales[name].parentLocale;
  411. } else if (locales[name] != null) {
  412. delete locales[name];
  413. }
  414. }
  415. }
  416. return locales[name];
  417. }
  418. // returns locale data
  419. function locale_locales__getLocale (key) {
  420. var locale;
  421. if (key && key._locale && key._locale._abbr) {
  422. key = key._locale._abbr;
  423. }
  424. if (!key) {
  425. return globalLocale;
  426. }
  427. if (!isArray(key)) {
  428. //short-circuit everything else
  429. locale = loadLocale(key);
  430. if (locale) {
  431. return locale;
  432. }
  433. key = [key];
  434. }
  435. return chooseLocale(key);
  436. }
  437. function locale_locales__listLocales() {
  438. return keys(locales);
  439. }
  440. var aliases = {};
  441. function addUnitAlias (unit, shorthand) {
  442. var lowerCase = unit.toLowerCase();
  443. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  444. }
  445. function normalizeUnits(units) {
  446. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  447. }
  448. function normalizeObjectUnits(inputObject) {
  449. var normalizedInput = {},
  450. normalizedProp,
  451. prop;
  452. for (prop in inputObject) {
  453. if (hasOwnProp(inputObject, prop)) {
  454. normalizedProp = normalizeUnits(prop);
  455. if (normalizedProp) {
  456. normalizedInput[normalizedProp] = inputObject[prop];
  457. }
  458. }
  459. }
  460. return normalizedInput;
  461. }
  462. function makeGetSet (unit, keepTime) {
  463. return function (value) {
  464. if (value != null) {
  465. get_set__set(this, unit, value);
  466. utils_hooks__hooks.updateOffset(this, keepTime);
  467. return this;
  468. } else {
  469. return get_set__get(this, unit);
  470. }
  471. };
  472. }
  473. function get_set__get (mom, unit) {
  474. return mom.isValid() ?
  475. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  476. }
  477. function get_set__set (mom, unit, value) {
  478. if (mom.isValid()) {
  479. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  480. }
  481. }
  482. // MOMENTS
  483. function getSet (units, value) {
  484. var unit;
  485. if (typeof units === 'object') {
  486. for (unit in units) {
  487. this.set(unit, units[unit]);
  488. }
  489. } else {
  490. units = normalizeUnits(units);
  491. if (isFunction(this[units])) {
  492. return this[units](value);
  493. }
  494. }
  495. return this;
  496. }
  497. function zeroFill(number, targetLength, forceSign) {
  498. var absNumber = '' + Math.abs(number),
  499. zerosToFill = targetLength - absNumber.length,
  500. sign = number >= 0;
  501. return (sign ? (forceSign ? '+' : '') : '-') +
  502. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  503. }
  504. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
  505. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  506. var formatFunctions = {};
  507. var formatTokenFunctions = {};
  508. // token: 'M'
  509. // padded: ['MM', 2]
  510. // ordinal: 'Mo'
  511. // callback: function () { this.month() + 1 }
  512. function addFormatToken (token, padded, ordinal, callback) {
  513. var func = callback;
  514. if (typeof callback === 'string') {
  515. func = function () {
  516. return this[callback]();
  517. };
  518. }
  519. if (token) {
  520. formatTokenFunctions[token] = func;
  521. }
  522. if (padded) {
  523. formatTokenFunctions[padded[0]] = function () {
  524. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  525. };
  526. }
  527. if (ordinal) {
  528. formatTokenFunctions[ordinal] = function () {
  529. return this.localeData().ordinal(func.apply(this, arguments), token);
  530. };
  531. }
  532. }
  533. function removeFormattingTokens(input) {
  534. if (input.match(/\[[\s\S]/)) {
  535. return input.replace(/^\[|\]$/g, '');
  536. }
  537. return input.replace(/\\/g, '');
  538. }
  539. function makeFormatFunction(format) {
  540. var array = format.match(formattingTokens), i, length;
  541. for (i = 0, length = array.length; i < length; i++) {
  542. if (formatTokenFunctions[array[i]]) {
  543. array[i] = formatTokenFunctions[array[i]];
  544. } else {
  545. array[i] = removeFormattingTokens(array[i]);
  546. }
  547. }
  548. return function (mom) {
  549. var output = '', i;
  550. for (i = 0; i < length; i++) {
  551. output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
  552. }
  553. return output;
  554. };
  555. }
  556. // format date using native date object
  557. function formatMoment(m, format) {
  558. if (!m.isValid()) {
  559. return m.localeData().invalidDate();
  560. }
  561. format = expandFormat(format, m.localeData());
  562. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  563. return formatFunctions[format](m);
  564. }
  565. function expandFormat(format, locale) {
  566. var i = 5;
  567. function replaceLongDateFormatTokens(input) {
  568. return locale.longDateFormat(input) || input;
  569. }
  570. localFormattingTokens.lastIndex = 0;
  571. while (i >= 0 && localFormattingTokens.test(format)) {
  572. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  573. localFormattingTokens.lastIndex = 0;
  574. i -= 1;
  575. }
  576. return format;
  577. }
  578. var match1 = /\d/; // 0 - 9
  579. var match2 = /\d\d/; // 00 - 99
  580. var match3 = /\d{3}/; // 000 - 999
  581. var match4 = /\d{4}/; // 0000 - 9999
  582. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  583. var match1to2 = /\d\d?/; // 0 - 99
  584. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  585. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  586. var match1to3 = /\d{1,3}/; // 0 - 999
  587. var match1to4 = /\d{1,4}/; // 0 - 9999
  588. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  589. var matchUnsigned = /\d+/; // 0 - inf
  590. var matchSigned = /[+-]?\d+/; // -inf - inf
  591. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  592. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  593. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  594. // any word (or two) characters or numbers including two/three word month in arabic.
  595. // includes scottish gaelic two word and hyphenated months
  596. var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
  597. var regexes = {};
  598. function addRegexToken (token, regex, strictRegex) {
  599. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  600. return (isStrict && strictRegex) ? strictRegex : regex;
  601. };
  602. }
  603. function getParseRegexForToken (token, config) {
  604. if (!hasOwnProp(regexes, token)) {
  605. return new RegExp(unescapeFormat(token));
  606. }
  607. return regexes[token](config._strict, config._locale);
  608. }
  609. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  610. function unescapeFormat(s) {
  611. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  612. return p1 || p2 || p3 || p4;
  613. }));
  614. }
  615. function regexEscape(s) {
  616. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  617. }
  618. var tokens = {};
  619. function addParseToken (token, callback) {
  620. var i, func = callback;
  621. if (typeof token === 'string') {
  622. token = [token];
  623. }
  624. if (typeof callback === 'number') {
  625. func = function (input, array) {
  626. array[callback] = toInt(input);
  627. };
  628. }
  629. for (i = 0; i < token.length; i++) {
  630. tokens[token[i]] = func;
  631. }
  632. }
  633. function addWeekParseToken (token, callback) {
  634. addParseToken(token, function (input, array, config, token) {
  635. config._w = config._w || {};
  636. callback(input, config._w, config, token);
  637. });
  638. }
  639. function addTimeToArrayFromToken(token, input, config) {
  640. if (input != null && hasOwnProp(tokens, token)) {
  641. tokens[token](input, config._a, config, token);
  642. }
  643. }
  644. var YEAR = 0;
  645. var MONTH = 1;
  646. var DATE = 2;
  647. var HOUR = 3;
  648. var MINUTE = 4;
  649. var SECOND = 5;
  650. var MILLISECOND = 6;
  651. var WEEK = 7;
  652. var WEEKDAY = 8;
  653. var indexOf;
  654. if (Array.prototype.indexOf) {
  655. indexOf = Array.prototype.indexOf;
  656. } else {
  657. indexOf = function (o) {
  658. // I know
  659. var i;
  660. for (i = 0; i < this.length; ++i) {
  661. if (this[i] === o) {
  662. return i;
  663. }
  664. }
  665. return -1;
  666. };
  667. }
  668. function daysInMonth(year, month) {
  669. return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
  670. }
  671. // FORMATTING
  672. addFormatToken('M', ['MM', 2], 'Mo', function () {
  673. return this.month() + 1;
  674. });
  675. addFormatToken('MMM', 0, 0, function (format) {
  676. return this.localeData().monthsShort(this, format);
  677. });
  678. addFormatToken('MMMM', 0, 0, function (format) {
  679. return this.localeData().months(this, format);
  680. });
  681. // ALIASES
  682. addUnitAlias('month', 'M');
  683. // PARSING
  684. addRegexToken('M', match1to2);
  685. addRegexToken('MM', match1to2, match2);
  686. addRegexToken('MMM', function (isStrict, locale) {
  687. return locale.monthsShortRegex(isStrict);
  688. });
  689. addRegexToken('MMMM', function (isStrict, locale) {
  690. return locale.monthsRegex(isStrict);
  691. });
  692. addParseToken(['M', 'MM'], function (input, array) {
  693. array[MONTH] = toInt(input) - 1;
  694. });
  695. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  696. var month = config._locale.monthsParse(input, token, config._strict);
  697. // if we didn't find a month name, mark the date as invalid.
  698. if (month != null) {
  699. array[MONTH] = month;
  700. } else {
  701. getParsingFlags(config).invalidMonth = input;
  702. }
  703. });
  704. // LOCALES
  705. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/;
  706. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  707. function localeMonths (m, format) {
  708. return isArray(this._months) ? this._months[m.month()] :
  709. this._months[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  710. }
  711. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  712. function localeMonthsShort (m, format) {
  713. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  714. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  715. }
  716. function units_month__handleStrictParse(monthName, format, strict) {
  717. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  718. if (!this._monthsParse) {
  719. // this is not used
  720. this._monthsParse = [];
  721. this._longMonthsParse = [];
  722. this._shortMonthsParse = [];
  723. for (i = 0; i < 12; ++i) {
  724. mom = create_utc__createUTC([2000, i]);
  725. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  726. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  727. }
  728. }
  729. if (strict) {
  730. if (format === 'MMM') {
  731. ii = indexOf.call(this._shortMonthsParse, llc);
  732. return ii !== -1 ? ii : null;
  733. } else {
  734. ii = indexOf.call(this._longMonthsParse, llc);
  735. return ii !== -1 ? ii : null;
  736. }
  737. } else {
  738. if (format === 'MMM') {
  739. ii = indexOf.call(this._shortMonthsParse, llc);
  740. if (ii !== -1) {
  741. return ii;
  742. }
  743. ii = indexOf.call(this._longMonthsParse, llc);
  744. return ii !== -1 ? ii : null;
  745. } else {
  746. ii = indexOf.call(this._longMonthsParse, llc);
  747. if (ii !== -1) {
  748. return ii;
  749. }
  750. ii = indexOf.call(this._shortMonthsParse, llc);
  751. return ii !== -1 ? ii : null;
  752. }
  753. }
  754. }
  755. function localeMonthsParse (monthName, format, strict) {
  756. var i, mom, regex;
  757. if (this._monthsParseExact) {
  758. return units_month__handleStrictParse.call(this, monthName, format, strict);
  759. }
  760. if (!this._monthsParse) {
  761. this._monthsParse = [];
  762. this._longMonthsParse = [];
  763. this._shortMonthsParse = [];
  764. }
  765. // TODO: add sorting
  766. // Sorting makes sure if one month (or abbr) is a prefix of another
  767. // see sorting in computeMonthsParse
  768. for (i = 0; i < 12; i++) {
  769. // make the regex if we don't have it already
  770. mom = create_utc__createUTC([2000, i]);
  771. if (strict && !this._longMonthsParse[i]) {
  772. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  773. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  774. }
  775. if (!strict && !this._monthsParse[i]) {
  776. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  777. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  778. }
  779. // test the regex
  780. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  781. return i;
  782. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  783. return i;
  784. } else if (!strict && this._monthsParse[i].test(monthName)) {
  785. return i;
  786. }
  787. }
  788. }
  789. // MOMENTS
  790. function setMonth (mom, value) {
  791. var dayOfMonth;
  792. if (!mom.isValid()) {
  793. // No op
  794. return mom;
  795. }
  796. if (typeof value === 'string') {
  797. if (/^\d+$/.test(value)) {
  798. value = toInt(value);
  799. } else {
  800. value = mom.localeData().monthsParse(value);
  801. // TODO: Another silent failure?
  802. if (typeof value !== 'number') {
  803. return mom;
  804. }
  805. }
  806. }
  807. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  808. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  809. return mom;
  810. }
  811. function getSetMonth (value) {
  812. if (value != null) {
  813. setMonth(this, value);
  814. utils_hooks__hooks.updateOffset(this, true);
  815. return this;
  816. } else {
  817. return get_set__get(this, 'Month');
  818. }
  819. }
  820. function getDaysInMonth () {
  821. return daysInMonth(this.year(), this.month());
  822. }
  823. var defaultMonthsShortRegex = matchWord;
  824. function monthsShortRegex (isStrict) {
  825. if (this._monthsParseExact) {
  826. if (!hasOwnProp(this, '_monthsRegex')) {
  827. computeMonthsParse.call(this);
  828. }
  829. if (isStrict) {
  830. return this._monthsShortStrictRegex;
  831. } else {
  832. return this._monthsShortRegex;
  833. }
  834. } else {
  835. return this._monthsShortStrictRegex && isStrict ?
  836. this._monthsShortStrictRegex : this._monthsShortRegex;
  837. }
  838. }
  839. var defaultMonthsRegex = matchWord;
  840. function monthsRegex (isStrict) {
  841. if (this._monthsParseExact) {
  842. if (!hasOwnProp(this, '_monthsRegex')) {
  843. computeMonthsParse.call(this);
  844. }
  845. if (isStrict) {
  846. return this._monthsStrictRegex;
  847. } else {
  848. return this._monthsRegex;
  849. }
  850. } else {
  851. return this._monthsStrictRegex && isStrict ?
  852. this._monthsStrictRegex : this._monthsRegex;
  853. }
  854. }
  855. function computeMonthsParse () {
  856. function cmpLenRev(a, b) {
  857. return b.length - a.length;
  858. }
  859. var shortPieces = [], longPieces = [], mixedPieces = [],
  860. i, mom;
  861. for (i = 0; i < 12; i++) {
  862. // make the regex if we don't have it already
  863. mom = create_utc__createUTC([2000, i]);
  864. shortPieces.push(this.monthsShort(mom, ''));
  865. longPieces.push(this.months(mom, ''));
  866. mixedPieces.push(this.months(mom, ''));
  867. mixedPieces.push(this.monthsShort(mom, ''));
  868. }
  869. // Sorting makes sure if one month (or abbr) is a prefix of another it
  870. // will match the longer piece.
  871. shortPieces.sort(cmpLenRev);
  872. longPieces.sort(cmpLenRev);
  873. mixedPieces.sort(cmpLenRev);
  874. for (i = 0; i < 12; i++) {
  875. shortPieces[i] = regexEscape(shortPieces[i]);
  876. longPieces[i] = regexEscape(longPieces[i]);
  877. mixedPieces[i] = regexEscape(mixedPieces[i]);
  878. }
  879. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  880. this._monthsShortRegex = this._monthsRegex;
  881. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  882. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  883. }
  884. function checkOverflow (m) {
  885. var overflow;
  886. var a = m._a;
  887. if (a && getParsingFlags(m).overflow === -2) {
  888. overflow =
  889. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  890. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  891. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  892. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  893. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  894. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  895. -1;
  896. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  897. overflow = DATE;
  898. }
  899. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  900. overflow = WEEK;
  901. }
  902. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  903. overflow = WEEKDAY;
  904. }
  905. getParsingFlags(m).overflow = overflow;
  906. }
  907. return m;
  908. }
  909. // iso 8601 regex
  910. // 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)
  911. 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)?)?/;
  912. var 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)?)?/;
  913. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  914. var isoDates = [
  915. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  916. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  917. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  918. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  919. ['YYYY-DDD', /\d{4}-\d{3}/],
  920. ['YYYY-MM', /\d{4}-\d\d/, false],
  921. ['YYYYYYMMDD', /[+-]\d{10}/],
  922. ['YYYYMMDD', /\d{8}/],
  923. // YYYYMM is NOT allowed by the standard
  924. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  925. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  926. ['YYYYDDD', /\d{7}/]
  927. ];
  928. // iso time formats and regexes
  929. var isoTimes = [
  930. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  931. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  932. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  933. ['HH:mm', /\d\d:\d\d/],
  934. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  935. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  936. ['HHmmss', /\d\d\d\d\d\d/],
  937. ['HHmm', /\d\d\d\d/],
  938. ['HH', /\d\d/]
  939. ];
  940. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  941. // date from iso format
  942. function configFromISO(config) {
  943. var i, l,
  944. string = config._i,
  945. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  946. allowTime, dateFormat, timeFormat, tzFormat;
  947. if (match) {
  948. getParsingFlags(config).iso = true;
  949. for (i = 0, l = isoDates.length; i < l; i++) {
  950. if (isoDates[i][1].exec(match[1])) {
  951. dateFormat = isoDates[i][0];
  952. allowTime = isoDates[i][2] !== false;
  953. break;
  954. }
  955. }
  956. if (dateFormat == null) {
  957. config._isValid = false;
  958. return;
  959. }
  960. if (match[3]) {
  961. for (i = 0, l = isoTimes.length; i < l; i++) {
  962. if (isoTimes[i][1].exec(match[3])) {
  963. // match[2] should be 'T' or space
  964. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  965. break;
  966. }
  967. }
  968. if (timeFormat == null) {
  969. config._isValid = false;
  970. return;
  971. }
  972. }
  973. if (!allowTime && timeFormat != null) {
  974. config._isValid = false;
  975. return;
  976. }
  977. if (match[4]) {
  978. if (tzRegex.exec(match[4])) {
  979. tzFormat = 'Z';
  980. } else {
  981. config._isValid = false;
  982. return;
  983. }
  984. }
  985. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  986. configFromStringAndFormat(config);
  987. } else {
  988. config._isValid = false;
  989. }
  990. }
  991. // date from iso format or fallback
  992. function configFromString(config) {
  993. var matched = aspNetJsonRegex.exec(config._i);
  994. if (matched !== null) {
  995. config._d = new Date(+matched[1]);
  996. return;
  997. }
  998. configFromISO(config);
  999. if (config._isValid === false) {
  1000. delete config._isValid;
  1001. utils_hooks__hooks.createFromInputFallback(config);
  1002. }
  1003. }
  1004. utils_hooks__hooks.createFromInputFallback = deprecate(
  1005. 'moment construction falls back to js Date. This is ' +
  1006. 'discouraged and will be removed in upcoming major ' +
  1007. 'release. Please refer to ' +
  1008. 'https://github.com/moment/moment/issues/1407 for more info.',
  1009. function (config) {
  1010. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  1011. }
  1012. );
  1013. function createDate (y, m, d, h, M, s, ms) {
  1014. //can't just apply() to create a date:
  1015. //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
  1016. var date = new Date(y, m, d, h, M, s, ms);
  1017. //the date constructor remaps years 0-99 to 1900-1999
  1018. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  1019. date.setFullYear(y);
  1020. }
  1021. return date;
  1022. }
  1023. function createUTCDate (y) {
  1024. var date = new Date(Date.UTC.apply(null, arguments));
  1025. //the Date.UTC function remaps years 0-99 to 1900-1999
  1026. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  1027. date.setUTCFullYear(y);
  1028. }
  1029. return date;
  1030. }
  1031. // FORMATTING
  1032. addFormatToken('Y', 0, 0, function () {
  1033. var y = this.year();
  1034. return y <= 9999 ? '' + y : '+' + y;
  1035. });
  1036. addFormatToken(0, ['YY', 2], 0, function () {
  1037. return this.year() % 100;
  1038. });
  1039. addFormatToken(0, ['YYYY', 4], 0, 'year');
  1040. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  1041. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  1042. // ALIASES
  1043. addUnitAlias('year', 'y');
  1044. // PARSING
  1045. addRegexToken('Y', matchSigned);
  1046. addRegexToken('YY', match1to2, match2);
  1047. addRegexToken('YYYY', match1to4, match4);
  1048. addRegexToken('YYYYY', match1to6, match6);
  1049. addRegexToken('YYYYYY', match1to6, match6);
  1050. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  1051. addParseToken('YYYY', function (input, array) {
  1052. array[YEAR] = input.length === 2 ? utils_hooks__hooks.parseTwoDigitYear(input) : toInt(input);
  1053. });
  1054. addParseToken('YY', function (input, array) {
  1055. array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);
  1056. });
  1057. addParseToken('Y', function (input, array) {
  1058. array[YEAR] = parseInt(input, 10);
  1059. });
  1060. // HELPERS
  1061. function daysInYear(year) {
  1062. return isLeapYear(year) ? 366 : 365;
  1063. }
  1064. function isLeapYear(year) {
  1065. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  1066. }
  1067. // HOOKS
  1068. utils_hooks__hooks.parseTwoDigitYear = function (input) {
  1069. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  1070. };
  1071. // MOMENTS
  1072. var getSetYear = makeGetSet('FullYear', true);
  1073. function getIsLeapYear () {
  1074. return isLeapYear(this.year());
  1075. }
  1076. // start-of-first-week - start-of-year
  1077. function firstWeekOffset(year, dow, doy) {
  1078. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1079. fwd = 7 + dow - doy,
  1080. // first-week day local weekday -- which local weekday is fwd
  1081. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1082. return -fwdlw + fwd - 1;
  1083. }
  1084. //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1085. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1086. var localWeekday = (7 + weekday - dow) % 7,
  1087. weekOffset = firstWeekOffset(year, dow, doy),
  1088. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1089. resYear, resDayOfYear;
  1090. if (dayOfYear <= 0) {
  1091. resYear = year - 1;
  1092. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1093. } else if (dayOfYear > daysInYear(year)) {
  1094. resYear = year + 1;
  1095. resDayOfYear = dayOfYear - daysInYear(year);
  1096. } else {
  1097. resYear = year;
  1098. resDayOfYear = dayOfYear;
  1099. }
  1100. return {
  1101. year: resYear,
  1102. dayOfYear: resDayOfYear
  1103. };
  1104. }
  1105. function weekOfYear(mom, dow, doy) {
  1106. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1107. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1108. resWeek, resYear;
  1109. if (week < 1) {
  1110. resYear = mom.year() - 1;
  1111. resWeek = week + weeksInYear(resYear, dow, doy);
  1112. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1113. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1114. resYear = mom.year() + 1;
  1115. } else {
  1116. resYear = mom.year();
  1117. resWeek = week;
  1118. }
  1119. return {
  1120. week: resWeek,
  1121. year: resYear
  1122. };
  1123. }
  1124. function weeksInYear(year, dow, doy) {
  1125. var weekOffset = firstWeekOffset(year, dow, doy),
  1126. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1127. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1128. }
  1129. // Pick the first defined of two or three arguments.
  1130. function defaults(a, b, c) {
  1131. if (a != null) {
  1132. return a;
  1133. }
  1134. if (b != null) {
  1135. return b;
  1136. }
  1137. return c;
  1138. }
  1139. function currentDateArray(config) {
  1140. // hooks is actually the exported moment object
  1141. var nowValue = new Date(utils_hooks__hooks.now());
  1142. if (config._useUTC) {
  1143. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  1144. }
  1145. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  1146. }
  1147. // convert an array to a date.
  1148. // the array should mirror the parameters below
  1149. // note: all values past the year are optional and will default to the lowest possible value.
  1150. // [year, month, day , hour, minute, second, millisecond]
  1151. function configFromArray (config) {
  1152. var i, date, input = [], currentDate, yearToUse;
  1153. if (config._d) {
  1154. return;
  1155. }
  1156. currentDate = currentDateArray(config);
  1157. //compute day of the year from weeks and weekdays
  1158. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  1159. dayOfYearFromWeekInfo(config);
  1160. }
  1161. //if the day of the year is set, figure out what it is
  1162. if (config._dayOfYear) {
  1163. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  1164. if (config._dayOfYear > daysInYear(yearToUse)) {
  1165. getParsingFlags(config)._overflowDayOfYear = true;
  1166. }
  1167. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  1168. config._a[MONTH] = date.getUTCMonth();
  1169. config._a[DATE] = date.getUTCDate();
  1170. }
  1171. // Default to current date.
  1172. // * if no year, month, day of month are given, default to today
  1173. // * if day of month is given, default month and year
  1174. // * if month is given, default only year
  1175. // * if year is given, don't default anything
  1176. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  1177. config._a[i] = input[i] = currentDate[i];
  1178. }
  1179. // Zero out whatever was not defaulted, including time
  1180. for (; i < 7; i++) {
  1181. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  1182. }
  1183. // Check for 24:00:00.000
  1184. if (config._a[HOUR] === 24 &&
  1185. config._a[MINUTE] === 0 &&
  1186. config._a[SECOND] === 0 &&
  1187. config._a[MILLISECOND] === 0) {
  1188. config._nextDay = true;
  1189. config._a[HOUR] = 0;
  1190. }
  1191. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  1192. // Apply timezone offset from input. The actual utcOffset can be changed
  1193. // with parseZone.
  1194. if (config._tzm != null) {
  1195. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1196. }
  1197. if (config._nextDay) {
  1198. config._a[HOUR] = 24;
  1199. }
  1200. }
  1201. function dayOfYearFromWeekInfo(config) {
  1202. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  1203. w = config._w;
  1204. if (w.GG != null || w.W != null || w.E != null) {
  1205. dow = 1;
  1206. doy = 4;
  1207. // TODO: We need to take the current isoWeekYear, but that depends on
  1208. // how we interpret now (local, utc, fixed offset). So create
  1209. // a now version of current config (take local/utc/offset flags, and
  1210. // create now).
  1211. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);
  1212. week = defaults(w.W, 1);
  1213. weekday = defaults(w.E, 1);
  1214. if (weekday < 1 || weekday > 7) {
  1215. weekdayOverflow = true;
  1216. }
  1217. } else {
  1218. dow = config._locale._week.dow;
  1219. doy = config._locale._week.doy;
  1220. weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);
  1221. week = defaults(w.w, 1);
  1222. if (w.d != null) {
  1223. // weekday -- low day numbers are considered next week
  1224. weekday = w.d;
  1225. if (weekday < 0 || weekday > 6) {
  1226. weekdayOverflow = true;
  1227. }
  1228. } else if (w.e != null) {
  1229. // local weekday -- counting starts from begining of week
  1230. weekday = w.e + dow;
  1231. if (w.e < 0 || w.e > 6) {
  1232. weekdayOverflow = true;
  1233. }
  1234. } else {
  1235. // default to begining of week
  1236. weekday = dow;
  1237. }
  1238. }
  1239. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  1240. getParsingFlags(config)._overflowWeeks = true;
  1241. } else if (weekdayOverflow != null) {
  1242. getParsingFlags(config)._overflowWeekday = true;
  1243. } else {
  1244. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  1245. config._a[YEAR] = temp.year;
  1246. config._dayOfYear = temp.dayOfYear;
  1247. }
  1248. }
  1249. // constant that refers to the ISO standard
  1250. utils_hooks__hooks.ISO_8601 = function () {};
  1251. // date from string and format string
  1252. function configFromStringAndFormat(config) {
  1253. // TODO: Move this to another part of the creation flow to prevent circular deps
  1254. if (config._f === utils_hooks__hooks.ISO_8601) {
  1255. configFromISO(config);
  1256. return;
  1257. }
  1258. config._a = [];
  1259. getParsingFlags(config).empty = true;
  1260. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  1261. var string = '' + config._i,
  1262. i, parsedInput, tokens, token, skipped,
  1263. stringLength = string.length,
  1264. totalParsedInputLength = 0;
  1265. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  1266. for (i = 0; i < tokens.length; i++) {
  1267. token = tokens[i];
  1268. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  1269. // console.log('token', token, 'parsedInput', parsedInput,
  1270. // 'regex', getParseRegexForToken(token, config));
  1271. if (parsedInput) {
  1272. skipped = string.substr(0, string.indexOf(parsedInput));
  1273. if (skipped.length > 0) {
  1274. getParsingFlags(config).unusedInput.push(skipped);
  1275. }
  1276. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  1277. totalParsedInputLength += parsedInput.length;
  1278. }
  1279. // don't parse if it's not a known token
  1280. if (formatTokenFunctions[token]) {
  1281. if (parsedInput) {
  1282. getParsingFlags(config).empty = false;
  1283. }
  1284. else {
  1285. getParsingFlags(config).unusedTokens.push(token);
  1286. }
  1287. addTimeToArrayFromToken(token, parsedInput, config);
  1288. }
  1289. else if (config._strict && !parsedInput) {
  1290. getParsingFlags(config).unusedTokens.push(token);
  1291. }
  1292. }
  1293. // add remaining unparsed input length to the string
  1294. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  1295. if (string.length > 0) {
  1296. getParsingFlags(config).unusedInput.push(string);
  1297. }
  1298. // clear _12h flag if hour is <= 12
  1299. if (getParsingFlags(config).bigHour === true &&
  1300. config._a[HOUR] <= 12 &&
  1301. config._a[HOUR] > 0) {
  1302. getParsingFlags(config).bigHour = undefined;
  1303. }
  1304. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  1305. getParsingFlags(config).meridiem = config._meridiem;
  1306. // handle meridiem
  1307. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  1308. configFromArray(config);
  1309. checkOverflow(config);
  1310. }
  1311. function meridiemFixWrap (locale, hour, meridiem) {
  1312. var isPm;
  1313. if (meridiem == null) {
  1314. // nothing to do
  1315. return hour;
  1316. }
  1317. if (locale.meridiemHour != null) {
  1318. return locale.meridiemHour(hour, meridiem);
  1319. } else if (locale.isPM != null) {
  1320. // Fallback
  1321. isPm = locale.isPM(meridiem);
  1322. if (isPm && hour < 12) {
  1323. hour += 12;
  1324. }
  1325. if (!isPm && hour === 12) {
  1326. hour = 0;
  1327. }
  1328. return hour;
  1329. } else {
  1330. // this is not supposed to happen
  1331. return hour;
  1332. }
  1333. }
  1334. // date from string and array of format strings
  1335. function configFromStringAndArray(config) {
  1336. var tempConfig,
  1337. bestMoment,
  1338. scoreToBeat,
  1339. i,
  1340. currentScore;
  1341. if (config._f.length === 0) {
  1342. getParsingFlags(config).invalidFormat = true;
  1343. config._d = new Date(NaN);
  1344. return;
  1345. }
  1346. for (i = 0; i < config._f.length; i++) {
  1347. currentScore = 0;
  1348. tempConfig = copyConfig({}, config);
  1349. if (config._useUTC != null) {
  1350. tempConfig._useUTC = config._useUTC;
  1351. }
  1352. tempConfig._f = config._f[i];
  1353. configFromStringAndFormat(tempConfig);
  1354. if (!valid__isValid(tempConfig)) {
  1355. continue;
  1356. }
  1357. // if there is any input that was not parsed add a penalty for that format
  1358. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  1359. //or tokens
  1360. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  1361. getParsingFlags(tempConfig).score = currentScore;
  1362. if (scoreToBeat == null || currentScore < scoreToBeat) {
  1363. scoreToBeat = currentScore;
  1364. bestMoment = tempConfig;
  1365. }
  1366. }
  1367. extend(config, bestMoment || tempConfig);
  1368. }
  1369. function configFromObject(config) {
  1370. if (config._d) {
  1371. return;
  1372. }
  1373. var i = normalizeObjectUnits(config._i);
  1374. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  1375. return obj && parseInt(obj, 10);
  1376. });
  1377. configFromArray(config);
  1378. }
  1379. function createFromConfig (config) {
  1380. var res = new Moment(checkOverflow(prepareConfig(config)));
  1381. if (res._nextDay) {
  1382. // Adding is smart enough around DST
  1383. res.add(1, 'd');
  1384. res._nextDay = undefined;
  1385. }
  1386. return res;
  1387. }
  1388. function prepareConfig (config) {
  1389. var input = config._i,
  1390. format = config._f;
  1391. config._locale = config._locale || locale_locales__getLocale(config._l);
  1392. if (input === null || (format === undefined && input === '')) {
  1393. return valid__createInvalid({nullInput: true});
  1394. }
  1395. if (typeof input === 'string') {
  1396. config._i = input = config._locale.preparse(input);
  1397. }
  1398. if (isMoment(input)) {
  1399. return new Moment(checkOverflow(input));
  1400. } else if (isArray(format)) {
  1401. configFromStringAndArray(config);
  1402. } else if (format) {
  1403. configFromStringAndFormat(config);
  1404. } else if (isDate(input)) {
  1405. config._d = input;
  1406. } else {
  1407. configFromInput(config);
  1408. }
  1409. if (!valid__isValid(config)) {
  1410. config._d = null;
  1411. }
  1412. return config;
  1413. }
  1414. function configFromInput(config) {
  1415. var input = config._i;
  1416. if (input === undefined) {
  1417. config._d = new Date(utils_hooks__hooks.now());
  1418. } else if (isDate(input)) {
  1419. config._d = new Date(input.valueOf());
  1420. } else if (typeof input === 'string') {
  1421. configFromString(config);
  1422. } else if (isArray(input)) {
  1423. config._a = map(input.slice(0), function (obj) {
  1424. return parseInt(obj, 10);
  1425. });
  1426. configFromArray(config);
  1427. } else if (typeof(input) === 'object') {
  1428. configFromObject(config);
  1429. } else if (typeof(input) === 'number') {
  1430. // from milliseconds
  1431. config._d = new Date(input);
  1432. } else {
  1433. utils_hooks__hooks.createFromInputFallback(config);
  1434. }
  1435. }
  1436. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  1437. var c = {};
  1438. if (typeof(locale) === 'boolean') {
  1439. strict = locale;
  1440. locale = undefined;
  1441. }
  1442. // object construction must be done this way.
  1443. // https://github.com/moment/moment/issues/1423
  1444. c._isAMomentObject = true;
  1445. c._useUTC = c._isUTC = isUTC;
  1446. c._l = locale;
  1447. c._i = input;
  1448. c._f = format;
  1449. c._strict = strict;
  1450. return createFromConfig(c);
  1451. }
  1452. function local__createLocal (input, format, locale, strict) {
  1453. return createLocalOrUTC(input, format, locale, strict, false);
  1454. }
  1455. var prototypeMin = deprecate(
  1456. 'moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
  1457. function () {
  1458. var other = local__createLocal.apply(null, arguments);
  1459. if (this.isValid() && other.isValid()) {
  1460. return other < this ? this : other;
  1461. } else {
  1462. return valid__createInvalid();
  1463. }
  1464. }
  1465. );
  1466. var prototypeMax = deprecate(
  1467. 'moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
  1468. function () {
  1469. var other = local__createLocal.apply(null, arguments);
  1470. if (this.isValid() && other.isValid()) {
  1471. return other > this ? this : other;
  1472. } else {
  1473. return valid__createInvalid();
  1474. }
  1475. }
  1476. );
  1477. // Pick a moment m from moments so that m[fn](other) is true for all
  1478. // other. This relies on the function fn to be transitive.
  1479. //
  1480. // moments should either be an array of moment objects or an array, whose
  1481. // first element is an array of moment objects.
  1482. function pickBy(fn, moments) {
  1483. var res, i;
  1484. if (moments.length === 1 && isArray(moments[0])) {
  1485. moments = moments[0];
  1486. }
  1487. if (!moments.length) {
  1488. return local__createLocal();
  1489. }
  1490. res = moments[0];
  1491. for (i = 1; i < moments.length; ++i) {
  1492. if (!moments[i].isValid() || moments[i][fn](res)) {
  1493. res = moments[i];
  1494. }
  1495. }
  1496. return res;
  1497. }
  1498. // TODO: Use [].sort instead?
  1499. function min () {
  1500. var args = [].slice.call(arguments, 0);
  1501. return pickBy('isBefore', args);
  1502. }
  1503. function max () {
  1504. var args = [].slice.call(arguments, 0);
  1505. return pickBy('isAfter', args);
  1506. }
  1507. var now = function () {
  1508. return Date.now ? Date.now() : +(new Date());
  1509. };
  1510. function Duration (duration) {
  1511. var normalizedInput = normalizeObjectUnits(duration),
  1512. years = normalizedInput.year || 0,
  1513. quarters = normalizedInput.quarter || 0,
  1514. months = normalizedInput.month || 0,
  1515. weeks = normalizedInput.week || 0,
  1516. days = normalizedInput.day || 0,
  1517. hours = normalizedInput.hour || 0,
  1518. minutes = normalizedInput.minute || 0,
  1519. seconds = normalizedInput.second || 0,
  1520. milliseconds = normalizedInput.millisecond || 0;
  1521. // representation for dateAddRemove
  1522. this._milliseconds = +milliseconds +
  1523. seconds * 1e3 + // 1000
  1524. minutes * 6e4 + // 1000 * 60
  1525. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  1526. // Because of dateAddRemove treats 24 hours as different from a
  1527. // day when working around DST, we need to store them separately
  1528. this._days = +days +
  1529. weeks * 7;
  1530. // It is impossible translate months into days without knowing
  1531. // which months you are are talking about, so we have to store
  1532. // it separately.
  1533. this._months = +months +
  1534. quarters * 3 +
  1535. years * 12;
  1536. this._data = {};
  1537. this._locale = locale_locales__getLocale();
  1538. this._bubble();
  1539. }
  1540. function isDuration (obj) {
  1541. return obj instanceof Duration;
  1542. }
  1543. // FORMATTING
  1544. function offset (token, separator) {
  1545. addFormatToken(token, 0, 0, function () {
  1546. var offset = this.utcOffset();
  1547. var sign = '+';
  1548. if (offset < 0) {
  1549. offset = -offset;
  1550. sign = '-';
  1551. }
  1552. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  1553. });
  1554. }
  1555. offset('Z', ':');
  1556. offset('ZZ', '');
  1557. // PARSING
  1558. addRegexToken('Z', matchShortOffset);
  1559. addRegexToken('ZZ', matchShortOffset);
  1560. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  1561. config._useUTC = true;
  1562. config._tzm = offsetFromString(matchShortOffset, input);
  1563. });
  1564. // HELPERS
  1565. // timezone chunker
  1566. // '+10:00' > ['10', '00']
  1567. // '-1530' > ['-15', '30']
  1568. var chunkOffset = /([\+\-]|\d\d)/gi;
  1569. function offsetFromString(matcher, string) {
  1570. var matches = ((string || '').match(matcher) || []);
  1571. var chunk = matches[matches.length - 1] || [];
  1572. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  1573. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  1574. return parts[0] === '+' ? minutes : -minutes;
  1575. }
  1576. // Return a moment from input, that is local/utc/zone equivalent to model.
  1577. function cloneWithOffset(input, model) {
  1578. var res, diff;
  1579. if (model._isUTC) {
  1580. res = model.clone();
  1581. diff = (isMoment(input) || isDate(input) ? input.valueOf() : local__createLocal(input).valueOf()) - res.valueOf();
  1582. // Use low-level api, because this fn is low-level api.
  1583. res._d.setTime(res._d.valueOf() + diff);
  1584. utils_hooks__hooks.updateOffset(res, false);
  1585. return res;
  1586. } else {
  1587. return local__createLocal(input).local();
  1588. }
  1589. }
  1590. function getDateOffset (m) {
  1591. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  1592. // https://github.com/moment/moment/pull/1871
  1593. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  1594. }
  1595. // HOOKS
  1596. // This function will be called whenever a moment is mutated.
  1597. // It is intended to keep the offset in sync with the timezone.
  1598. utils_hooks__hooks.updateOffset = function () {};
  1599. // MOMENTS
  1600. // keepLocalTime = true means only change the timezone, without
  1601. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  1602. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  1603. // +0200, so we adjust the time as needed, to be valid.
  1604. //
  1605. // Keeping the time actually adds/subtracts (one hour)
  1606. // from the actual represented time. That is why we call updateOffset
  1607. // a second time. In case it wants us to change the offset again
  1608. // _changeInProgress == true case, then we have to adjust, because
  1609. // there is no such time in the given timezone.
  1610. function getSetOffset (input, keepLocalTime) {
  1611. var offset = this._offset || 0,
  1612. localAdjust;
  1613. if (!this.isValid()) {
  1614. return input != null ? this : NaN;
  1615. }
  1616. if (input != null) {
  1617. if (typeof input === 'string') {
  1618. input = offsetFromString(matchShortOffset, input);
  1619. } else if (Math.abs(input) < 16) {
  1620. input = input * 60;
  1621. }
  1622. if (!this._isUTC && keepLocalTime) {
  1623. localAdjust = getDateOffset(this);
  1624. }
  1625. this._offset = input;
  1626. this._isUTC = true;
  1627. if (localAdjust != null) {
  1628. this.add(localAdjust, 'm');
  1629. }
  1630. if (offset !== input) {
  1631. if (!keepLocalTime || this._changeInProgress) {
  1632. add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);
  1633. } else if (!this._changeInProgress) {
  1634. this._changeInProgress = true;
  1635. utils_hooks__hooks.updateOffset(this, true);
  1636. this._changeInProgress = null;
  1637. }
  1638. }
  1639. return this;
  1640. } else {
  1641. return this._isUTC ? offset : getDateOffset(this);
  1642. }
  1643. }
  1644. function getSetZone (input, keepLocalTime) {
  1645. if (input != null) {
  1646. if (typeof input !== 'string') {
  1647. input = -input;
  1648. }
  1649. this.utcOffset(input, keepLocalTime);
  1650. return this;
  1651. } else {
  1652. return -this.utcOffset();
  1653. }
  1654. }
  1655. function setOffsetToUTC (keepLocalTime) {
  1656. return this.utcOffset(0, keepLocalTime);
  1657. }
  1658. function setOffsetToLocal (keepLocalTime) {
  1659. if (this._isUTC) {
  1660. this.utcOffset(0, keepLocalTime);
  1661. this._isUTC = false;
  1662. if (keepLocalTime) {
  1663. this.subtract(getDateOffset(this), 'm');
  1664. }
  1665. }
  1666. return this;
  1667. }
  1668. function setOffsetToParsedOffset () {
  1669. if (this._tzm) {
  1670. this.utcOffset(this._tzm);
  1671. } else if (typeof this._i === 'string') {
  1672. this.utcOffset(offsetFromString(matchOffset, this._i));
  1673. }
  1674. return this;
  1675. }
  1676. function hasAlignedHourOffset (input) {
  1677. if (!this.isValid()) {
  1678. return false;
  1679. }
  1680. input = input ? local__createLocal(input).utcOffset() : 0;
  1681. return (this.utcOffset() - input) % 60 === 0;
  1682. }
  1683. function isDaylightSavingTime () {
  1684. return (
  1685. this.utcOffset() > this.clone().month(0).utcOffset() ||
  1686. this.utcOffset() > this.clone().month(5).utcOffset()
  1687. );
  1688. }
  1689. function isDaylightSavingTimeShifted () {
  1690. if (!isUndefined(this._isDSTShifted)) {
  1691. return this._isDSTShifted;
  1692. }
  1693. var c = {};
  1694. copyConfig(c, this);
  1695. c = prepareConfig(c);
  1696. if (c._a) {
  1697. var other = c._isUTC ? create_utc__createUTC(c._a) : local__createLocal(c._a);
  1698. this._isDSTShifted = this.isValid() &&
  1699. compareArrays(c._a, other.toArray()) > 0;
  1700. } else {
  1701. this._isDSTShifted = false;
  1702. }
  1703. return this._isDSTShifted;
  1704. }
  1705. function isLocal () {
  1706. return this.isValid() ? !this._isUTC : false;
  1707. }
  1708. function isUtcOffset () {
  1709. return this.isValid() ? this._isUTC : false;
  1710. }
  1711. function isUtc () {
  1712. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  1713. }
  1714. // ASP.NET json date format regex
  1715. var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/;
  1716. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  1717. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  1718. // and further modified to allow for strings containing both week and day
  1719. var isoRegex = /^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;
  1720. function create__createDuration (input, key) {
  1721. var duration = input,
  1722. // matching against regexp is expensive, do it on demand
  1723. match = null,
  1724. sign,
  1725. ret,
  1726. diffRes;
  1727. if (isDuration(input)) {
  1728. duration = {
  1729. ms : input._milliseconds,
  1730. d : input._days,
  1731. M : input._months
  1732. };
  1733. } else if (typeof input === 'number') {
  1734. duration = {};
  1735. if (key) {
  1736. duration[key] = input;
  1737. } else {
  1738. duration.milliseconds = input;
  1739. }
  1740. } else if (!!(match = aspNetRegex.exec(input))) {
  1741. sign = (match[1] === '-') ? -1 : 1;
  1742. duration = {
  1743. y : 0,
  1744. d : toInt(match[DATE]) * sign,
  1745. h : toInt(match[HOUR]) * sign,
  1746. m : toInt(match[MINUTE]) * sign,
  1747. s : toInt(match[SECOND]) * sign,
  1748. ms : toInt(match[MILLISECOND]) * sign
  1749. };
  1750. } else if (!!(match = isoRegex.exec(input))) {
  1751. sign = (match[1] === '-') ? -1 : 1;
  1752. duration = {
  1753. y : parseIso(match[2], sign),
  1754. M : parseIso(match[3], sign),
  1755. w : parseIso(match[4], sign),
  1756. d : parseIso(match[5], sign),
  1757. h : parseIso(match[6], sign),
  1758. m : parseIso(match[7], sign),
  1759. s : parseIso(match[8], sign)
  1760. };
  1761. } else if (duration == null) {// checks for null or undefined
  1762. duration = {};
  1763. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  1764. diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));
  1765. duration = {};
  1766. duration.ms = diffRes.milliseconds;
  1767. duration.M = diffRes.months;
  1768. }
  1769. ret = new Duration(duration);
  1770. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  1771. ret._locale = input._locale;
  1772. }
  1773. return ret;
  1774. }
  1775. create__createDuration.fn = Duration.prototype;
  1776. function parseIso (inp, sign) {
  1777. // We'd normally use ~~inp for this, but unfortunately it also
  1778. // converts floats to ints.
  1779. // inp may be undefined, so careful calling replace on it.
  1780. var res = inp && parseFloat(inp.replace(',', '.'));
  1781. // apply sign while we're at it
  1782. return (isNaN(res) ? 0 : res) * sign;
  1783. }
  1784. function positiveMomentsDifference(base, other) {
  1785. var res = {milliseconds: 0, months: 0};
  1786. res.months = other.month() - base.month() +
  1787. (other.year() - base.year()) * 12;
  1788. if (base.clone().add(res.months, 'M').isAfter(other)) {
  1789. --res.months;
  1790. }
  1791. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  1792. return res;
  1793. }
  1794. function momentsDifference(base, other) {
  1795. var res;
  1796. if (!(base.isValid() && other.isValid())) {
  1797. return {milliseconds: 0, months: 0};
  1798. }
  1799. other = cloneWithOffset(other, base);
  1800. if (base.isBefore(other)) {
  1801. res = positiveMomentsDifference(base, other);
  1802. } else {
  1803. res = positiveMomentsDifference(other, base);
  1804. res.milliseconds = -res.milliseconds;
  1805. res.months = -res.months;
  1806. }
  1807. return res;
  1808. }
  1809. function absRound (number) {
  1810. if (number < 0) {
  1811. return Math.round(-1 * number) * -1;
  1812. } else {
  1813. return Math.round(number);
  1814. }
  1815. }
  1816. // TODO: remove 'name' arg after deprecation is removed
  1817. function createAdder(direction, name) {
  1818. return function (val, period) {
  1819. var dur, tmp;
  1820. //invert the arguments, but complain about it
  1821. if (period !== null && !isNaN(+period)) {
  1822. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
  1823. tmp = val; val = period; period = tmp;
  1824. }
  1825. val = typeof val === 'string' ? +val : val;
  1826. dur = create__createDuration(val, period);
  1827. add_subtract__addSubtract(this, dur, direction);
  1828. return this;
  1829. };
  1830. }
  1831. function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {
  1832. var milliseconds = duration._milliseconds,
  1833. days = absRound(duration._days),
  1834. months = absRound(duration._months);
  1835. if (!mom.isValid()) {
  1836. // No op
  1837. return;
  1838. }
  1839. updateOffset = updateOffset == null ? true : updateOffset;
  1840. if (milliseconds) {
  1841. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  1842. }
  1843. if (days) {
  1844. get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);
  1845. }
  1846. if (months) {
  1847. setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);
  1848. }
  1849. if (updateOffset) {
  1850. utils_hooks__hooks.updateOffset(mom, days || months);
  1851. }
  1852. }
  1853. var add_subtract__add = createAdder(1, 'add');
  1854. var add_subtract__subtract = createAdder(-1, 'subtract');
  1855. function moment_calendar__calendar (time, formats) {
  1856. // We want to compare the start of today, vs this.
  1857. // Getting start-of-today depends on whether we're local/utc/offset or not.
  1858. var now = time || local__createLocal(),
  1859. sod = cloneWithOffset(now, this).startOf('day'),
  1860. diff = this.diff(sod, 'days', true),
  1861. format = diff < -6 ? 'sameElse' :
  1862. diff < -1 ? 'lastWeek' :
  1863. diff < 0 ? 'lastDay' :
  1864. diff < 1 ? 'sameDay' :
  1865. diff < 2 ? 'nextDay' :
  1866. diff < 7 ? 'nextWeek' : 'sameElse';
  1867. var output = formats && (isFunction(formats[format]) ? formats[format]() : formats[format]);
  1868. return this.format(output || this.localeData().calendar(format, this, local__createLocal(now)));
  1869. }
  1870. function clone () {
  1871. return new Moment(this);
  1872. }
  1873. function isAfter (input, units) {
  1874. var localInput = isMoment(input) ? input : local__createLocal(input);
  1875. if (!(this.isValid() && localInput.isValid())) {
  1876. return false;
  1877. }
  1878. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  1879. if (units === 'millisecond') {
  1880. return this.valueOf() > localInput.valueOf();
  1881. } else {
  1882. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  1883. }
  1884. }
  1885. function isBefore (input, units) {
  1886. var localInput = isMoment(input) ? input : local__createLocal(input);
  1887. if (!(this.isValid() && localInput.isValid())) {
  1888. return false;
  1889. }
  1890. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  1891. if (units === 'millisecond') {
  1892. return this.valueOf() < localInput.valueOf();
  1893. } else {
  1894. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  1895. }
  1896. }
  1897. function isBetween (from, to, units, inclusivity) {
  1898. inclusivity = inclusivity || '()';
  1899. return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
  1900. (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
  1901. }
  1902. function isSame (input, units) {
  1903. var localInput = isMoment(input) ? input : local__createLocal(input),
  1904. inputMs;
  1905. if (!(this.isValid() && localInput.isValid())) {
  1906. return false;
  1907. }
  1908. units = normalizeUnits(units || 'millisecond');
  1909. if (units === 'millisecond') {
  1910. return this.valueOf() === localInput.valueOf();
  1911. } else {
  1912. inputMs = localInput.valueOf();
  1913. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  1914. }
  1915. }
  1916. function isSameOrAfter (input, units) {
  1917. return this.isSame(input, units) || this.isAfter(input,units);
  1918. }
  1919. function isSameOrBefore (input, units) {
  1920. return this.isSame(input, units) || this.isBefore(input,units);
  1921. }
  1922. function diff (input, units, asFloat) {
  1923. var that,
  1924. zoneDelta,
  1925. delta, output;
  1926. if (!this.isValid()) {
  1927. return NaN;
  1928. }
  1929. that = cloneWithOffset(input, this);
  1930. if (!that.isValid()) {
  1931. return NaN;
  1932. }
  1933. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  1934. units = normalizeUnits(units);
  1935. if (units === 'year' || units === 'month' || units === 'quarter') {
  1936. output = monthDiff(this, that);
  1937. if (units === 'quarter') {
  1938. output = output / 3;
  1939. } else if (units === 'year') {
  1940. output = output / 12;
  1941. }
  1942. } else {
  1943. delta = this - that;
  1944. output = units === 'second' ? delta / 1e3 : // 1000
  1945. units === 'minute' ? delta / 6e4 : // 1000 * 60
  1946. units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
  1947. units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
  1948. units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
  1949. delta;
  1950. }
  1951. return asFloat ? output : absFloor(output);
  1952. }
  1953. function monthDiff (a, b) {
  1954. // difference in months
  1955. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  1956. // b is in (anchor - 1 month, anchor + 1 month)
  1957. anchor = a.clone().add(wholeMonthDiff, 'months'),
  1958. anchor2, adjust;
  1959. if (b - anchor < 0) {
  1960. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  1961. // linear across the month
  1962. adjust = (b - anchor) / (anchor - anchor2);
  1963. } else {
  1964. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  1965. // linear across the month
  1966. adjust = (b - anchor) / (anchor2 - anchor);
  1967. }
  1968. //check for negative zero, return zero if negative zero
  1969. return -(wholeMonthDiff + adjust) || 0;
  1970. }
  1971. utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  1972. utils_hooks__hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  1973. function toString () {
  1974. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  1975. }
  1976. function moment_format__toISOString () {
  1977. var m = this.clone().utc();
  1978. if (0 < m.year() && m.year() <= 9999) {
  1979. if (isFunction(Date.prototype.toISOString)) {
  1980. // native implementation is ~50x faster, use it when we can
  1981. return this.toDate().toISOString();
  1982. } else {
  1983. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  1984. }
  1985. } else {
  1986. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  1987. }
  1988. }
  1989. function moment_format__format (inputString) {
  1990. if (!inputString) {
  1991. inputString = this.isUtc() ? utils_hooks__hooks.defaultFormatUtc : utils_hooks__hooks.defaultFormat;
  1992. }
  1993. var output = formatMoment(this, inputString);
  1994. return this.localeData().postformat(output);
  1995. }
  1996. function from (time, withoutSuffix) {
  1997. if (this.isValid() &&
  1998. ((isMoment(time) && time.isValid()) ||
  1999. local__createLocal(time).isValid())) {
  2000. return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  2001. } else {
  2002. return this.localeData().invalidDate();
  2003. }
  2004. }
  2005. function fromNow (withoutSuffix) {
  2006. return this.from(local__createLocal(), withoutSuffix);
  2007. }
  2008. function to (time, withoutSuffix) {
  2009. if (this.isValid() &&
  2010. ((isMoment(time) && time.isValid()) ||
  2011. local__createLocal(time).isValid())) {
  2012. return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  2013. } else {
  2014. return this.localeData().invalidDate();
  2015. }
  2016. }
  2017. function toNow (withoutSuffix) {
  2018. return this.to(local__createLocal(), withoutSuffix);
  2019. }
  2020. // If passed a locale key, it will set the locale for this
  2021. // instance. Otherwise, it will return the locale configuration
  2022. // variables for this instance.
  2023. function locale (key) {
  2024. var newLocaleData;
  2025. if (key === undefined) {
  2026. return this._locale._abbr;
  2027. } else {
  2028. newLocaleData = locale_locales__getLocale(key);
  2029. if (newLocaleData != null) {
  2030. this._locale = newLocaleData;
  2031. }
  2032. return this;
  2033. }
  2034. }
  2035. var lang = deprecate(
  2036. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  2037. function (key) {
  2038. if (key === undefined) {
  2039. return this.localeData();
  2040. } else {
  2041. return this.locale(key);
  2042. }
  2043. }
  2044. );
  2045. function localeData () {
  2046. return this._locale;
  2047. }
  2048. function startOf (units) {
  2049. units = normalizeUnits(units);
  2050. // the following switch intentionally omits break keywords
  2051. // to utilize falling through the cases.
  2052. switch (units) {
  2053. case 'year':
  2054. this.month(0);
  2055. /* falls through */
  2056. case 'quarter':
  2057. case 'month':
  2058. this.date(1);
  2059. /* falls through */
  2060. case 'week':
  2061. case 'isoWeek':
  2062. case 'day':
  2063. case 'date':
  2064. this.hours(0);
  2065. /* falls through */
  2066. case 'hour':
  2067. this.minutes(0);
  2068. /* falls through */
  2069. case 'minute':
  2070. this.seconds(0);
  2071. /* falls through */
  2072. case 'second':
  2073. this.milliseconds(0);
  2074. }
  2075. // weeks are a special case
  2076. if (units === 'week') {
  2077. this.weekday(0);
  2078. }
  2079. if (units === 'isoWeek') {
  2080. this.isoWeekday(1);
  2081. }
  2082. // quarters are also special
  2083. if (units === 'quarter') {
  2084. this.month(Math.floor(this.month() / 3) * 3);
  2085. }
  2086. return this;
  2087. }
  2088. function endOf (units) {
  2089. units = normalizeUnits(units);
  2090. if (units === undefined || units === 'millisecond') {
  2091. return this;
  2092. }
  2093. // 'date' is an alias for 'day', so it should be considered as such.
  2094. if (units === 'date') {
  2095. units = 'day';
  2096. }
  2097. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  2098. }
  2099. function to_type__valueOf () {
  2100. return this._d.valueOf() - ((this._offset || 0) * 60000);
  2101. }
  2102. function unix () {
  2103. return Math.floor(this.valueOf() / 1000);
  2104. }
  2105. function toDate () {
  2106. return this._offset ? new Date(this.valueOf()) : this._d;
  2107. }
  2108. function toArray () {
  2109. var m = this;
  2110. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  2111. }
  2112. function toObject () {
  2113. var m = this;
  2114. return {
  2115. years: m.year(),
  2116. months: m.month(),
  2117. date: m.date(),
  2118. hours: m.hours(),
  2119. minutes: m.minutes(),
  2120. seconds: m.seconds(),
  2121. milliseconds: m.milliseconds()
  2122. };
  2123. }
  2124. function toJSON () {
  2125. // new Date(NaN).toJSON() === null
  2126. return this.isValid() ? this.toISOString() : null;
  2127. }
  2128. function moment_valid__isValid () {
  2129. return valid__isValid(this);
  2130. }
  2131. function parsingFlags () {
  2132. return extend({}, getParsingFlags(this));
  2133. }
  2134. function invalidAt () {
  2135. return getParsingFlags(this).overflow;
  2136. }
  2137. function creationData() {
  2138. return {
  2139. input: this._i,
  2140. format: this._f,
  2141. locale: this._locale,
  2142. isUTC: this._isUTC,
  2143. strict: this._strict
  2144. };
  2145. }
  2146. // FORMATTING
  2147. addFormatToken(0, ['gg', 2], 0, function () {
  2148. return this.weekYear() % 100;
  2149. });
  2150. addFormatToken(0, ['GG', 2], 0, function () {
  2151. return this.isoWeekYear() % 100;
  2152. });
  2153. function addWeekYearFormatToken (token, getter) {
  2154. addFormatToken(0, [token, token.length], 0, getter);
  2155. }
  2156. addWeekYearFormatToken('gggg', 'weekYear');
  2157. addWeekYearFormatToken('ggggg', 'weekYear');
  2158. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  2159. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  2160. // ALIASES
  2161. addUnitAlias('weekYear', 'gg');
  2162. addUnitAlias('isoWeekYear', 'GG');
  2163. // PARSING
  2164. addRegexToken('G', matchSigned);
  2165. addRegexToken('g', matchSigned);
  2166. addRegexToken('GG', match1to2, match2);
  2167. addRegexToken('gg', match1to2, match2);
  2168. addRegexToken('GGGG', match1to4, match4);
  2169. addRegexToken('gggg', match1to4, match4);
  2170. addRegexToken('GGGGG', match1to6, match6);
  2171. addRegexToken('ggggg', match1to6, match6);
  2172. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  2173. week[token.substr(0, 2)] = toInt(input);
  2174. });
  2175. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  2176. week[token] = utils_hooks__hooks.parseTwoDigitYear(input);
  2177. });
  2178. // MOMENTS
  2179. function getSetWeekYear (input) {
  2180. return getSetWeekYearHelper.call(this,
  2181. input,
  2182. this.week(),
  2183. this.weekday(),
  2184. this.localeData()._week.dow,
  2185. this.localeData()._week.doy);
  2186. }
  2187. function getSetISOWeekYear (input) {
  2188. return getSetWeekYearHelper.call(this,
  2189. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  2190. }
  2191. function getISOWeeksInYear () {
  2192. return weeksInYear(this.year(), 1, 4);
  2193. }
  2194. function getWeeksInYear () {
  2195. var weekInfo = this.localeData()._week;
  2196. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  2197. }
  2198. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  2199. var weeksTarget;
  2200. if (input == null) {
  2201. return weekOfYear(this, dow, doy).year;
  2202. } else {
  2203. weeksTarget = weeksInYear(input, dow, doy);
  2204. if (week > weeksTarget) {
  2205. week = weeksTarget;
  2206. }
  2207. return setWeekAll.call(this, input, week, weekday, dow, doy);
  2208. }
  2209. }
  2210. function setWeekAll(weekYear, week, weekday, dow, doy) {
  2211. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  2212. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  2213. this.year(date.getUTCFullYear());
  2214. this.month(date.getUTCMonth());
  2215. this.date(date.getUTCDate());
  2216. return this;
  2217. }
  2218. // FORMATTING
  2219. addFormatToken('Q', 0, 'Qo', 'quarter');
  2220. // ALIASES
  2221. addUnitAlias('quarter', 'Q');
  2222. // PARSING
  2223. addRegexToken('Q', match1);
  2224. addParseToken('Q', function (input, array) {
  2225. array[MONTH] = (toInt(input) - 1) * 3;
  2226. });
  2227. // MOMENTS
  2228. function getSetQuarter (input) {
  2229. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  2230. }
  2231. // FORMATTING
  2232. addFormatToken('w', ['ww', 2], 'wo', 'week');
  2233. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  2234. // ALIASES
  2235. addUnitAlias('week', 'w');
  2236. addUnitAlias('isoWeek', 'W');
  2237. // PARSING
  2238. addRegexToken('w', match1to2);
  2239. addRegexToken('ww', match1to2, match2);
  2240. addRegexToken('W', match1to2);
  2241. addRegexToken('WW', match1to2, match2);
  2242. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  2243. week[token.substr(0, 1)] = toInt(input);
  2244. });
  2245. // HELPERS
  2246. // LOCALES
  2247. function localeWeek (mom) {
  2248. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  2249. }
  2250. var defaultLocaleWeek = {
  2251. dow : 0, // Sunday is the first day of the week.
  2252. doy : 6 // The week that contains Jan 1st is the first week of the year.
  2253. };
  2254. function localeFirstDayOfWeek () {
  2255. return this._week.dow;
  2256. }
  2257. function localeFirstDayOfYear () {
  2258. return this._week.doy;
  2259. }
  2260. // MOMENTS
  2261. function getSetWeek (input) {
  2262. var week = this.localeData().week(this);
  2263. return input == null ? week : this.add((input - week) * 7, 'd');
  2264. }
  2265. function getSetISOWeek (input) {
  2266. var week = weekOfYear(this, 1, 4).week;
  2267. return input == null ? week : this.add((input - week) * 7, 'd');
  2268. }
  2269. // FORMATTING
  2270. addFormatToken('D', ['DD', 2], 'Do', 'date');
  2271. // ALIASES
  2272. addUnitAlias('date', 'D');
  2273. // PARSING
  2274. addRegexToken('D', match1to2);
  2275. addRegexToken('DD', match1to2, match2);
  2276. addRegexToken('Do', function (isStrict, locale) {
  2277. return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;
  2278. });
  2279. addParseToken(['D', 'DD'], DATE);
  2280. addParseToken('Do', function (input, array) {
  2281. array[DATE] = toInt(input.match(match1to2)[0], 10);
  2282. });
  2283. // MOMENTS
  2284. var getSetDayOfMonth = makeGetSet('Date', true);
  2285. // FORMATTING
  2286. addFormatToken('d', 0, 'do', 'day');
  2287. addFormatToken('dd', 0, 0, function (format) {
  2288. return this.localeData().weekdaysMin(this, format);
  2289. });
  2290. addFormatToken('ddd', 0, 0, function (format) {
  2291. return this.localeData().weekdaysShort(this, format);
  2292. });
  2293. addFormatToken('dddd', 0, 0, function (format) {
  2294. return this.localeData().weekdays(this, format);
  2295. });
  2296. addFormatToken('e', 0, 0, 'weekday');
  2297. addFormatToken('E', 0, 0, 'isoWeekday');
  2298. // ALIASES
  2299. addUnitAlias('day', 'd');
  2300. addUnitAlias('weekday', 'e');
  2301. addUnitAlias('isoWeekday', 'E');
  2302. // PARSING
  2303. addRegexToken('d', match1to2);
  2304. addRegexToken('e', match1to2);
  2305. addRegexToken('E', match1to2);
  2306. addRegexToken('dd', function (isStrict, locale) {
  2307. return locale.weekdaysMinRegex(isStrict);
  2308. });
  2309. addRegexToken('ddd', function (isStrict, locale) {
  2310. return locale.weekdaysShortRegex(isStrict);
  2311. });
  2312. addRegexToken('dddd', function (isStrict, locale) {
  2313. return locale.weekdaysRegex(isStrict);
  2314. });
  2315. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  2316. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  2317. // if we didn't get a weekday name, mark the date as invalid
  2318. if (weekday != null) {
  2319. week.d = weekday;
  2320. } else {
  2321. getParsingFlags(config).invalidWeekday = input;
  2322. }
  2323. });
  2324. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  2325. week[token] = toInt(input);
  2326. });
  2327. // HELPERS
  2328. function parseWeekday(input, locale) {
  2329. if (typeof input !== 'string') {
  2330. return input;
  2331. }
  2332. if (!isNaN(input)) {
  2333. return parseInt(input, 10);
  2334. }
  2335. input = locale.weekdaysParse(input);
  2336. if (typeof input === 'number') {
  2337. return input;
  2338. }
  2339. return null;
  2340. }
  2341. // LOCALES
  2342. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  2343. function localeWeekdays (m, format) {
  2344. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  2345. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  2346. }
  2347. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  2348. function localeWeekdaysShort (m) {
  2349. return this._weekdaysShort[m.day()];
  2350. }
  2351. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  2352. function localeWeekdaysMin (m) {
  2353. return this._weekdaysMin[m.day()];
  2354. }
  2355. function day_of_week__handleStrictParse(weekdayName, format, strict) {
  2356. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  2357. if (!this._weekdaysParse) {
  2358. this._weekdaysParse = [];
  2359. this._shortWeekdaysParse = [];
  2360. this._minWeekdaysParse = [];
  2361. for (i = 0; i < 7; ++i) {
  2362. mom = create_utc__createUTC([2000, 1]).day(i);
  2363. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  2364. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  2365. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  2366. }
  2367. }
  2368. if (strict) {
  2369. if (format === 'dddd') {
  2370. ii = indexOf.call(this._weekdaysParse, llc);
  2371. return ii !== -1 ? ii : null;
  2372. } else if (format === 'ddd') {
  2373. ii = indexOf.call(this._shortWeekdaysParse, llc);
  2374. return ii !== -1 ? ii : null;
  2375. } else {
  2376. ii = indexOf.call(this._minWeekdaysParse, llc);
  2377. return ii !== -1 ? ii : null;
  2378. }
  2379. } else {
  2380. if (format === 'dddd') {
  2381. ii = indexOf.call(this._weekdaysParse, llc);
  2382. if (ii !== -1) {
  2383. return ii;
  2384. }
  2385. ii = indexOf.call(this._shortWeekdaysParse, llc);
  2386. if (ii !== -1) {
  2387. return ii;
  2388. }
  2389. ii = indexOf.call(this._minWeekdaysParse, llc);
  2390. return ii !== -1 ? ii : null;
  2391. } else if (format === 'ddd') {
  2392. ii = indexOf.call(this._shortWeekdaysParse, llc);
  2393. if (ii !== -1) {
  2394. return ii;
  2395. }
  2396. ii = indexOf.call(this._weekdaysParse, llc);
  2397. if (ii !== -1) {
  2398. return ii;
  2399. }
  2400. ii = indexOf.call(this._minWeekdaysParse, llc);
  2401. return ii !== -1 ? ii : null;
  2402. } else {
  2403. ii = indexOf.call(this._minWeekdaysParse, llc);
  2404. if (ii !== -1) {
  2405. return ii;
  2406. }
  2407. ii = indexOf.call(this._weekdaysParse, llc);
  2408. if (ii !== -1) {
  2409. return ii;
  2410. }
  2411. ii = indexOf.call(this._shortWeekdaysParse, llc);
  2412. return ii !== -1 ? ii : null;
  2413. }
  2414. }
  2415. }
  2416. function localeWeekdaysParse (weekdayName, format, strict) {
  2417. var i, mom, regex;
  2418. if (this._weekdaysParseExact) {
  2419. return day_of_week__handleStrictParse.call(this, weekdayName, format, strict);
  2420. }
  2421. if (!this._weekdaysParse) {
  2422. this._weekdaysParse = [];
  2423. this._minWeekdaysParse = [];
  2424. this._shortWeekdaysParse = [];
  2425. this._fullWeekdaysParse = [];
  2426. }
  2427. for (i = 0; i < 7; i++) {
  2428. // make the regex if we don't have it already
  2429. mom = create_utc__createUTC([2000, 1]).day(i);
  2430. if (strict && !this._fullWeekdaysParse[i]) {
  2431. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  2432. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  2433. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  2434. }
  2435. if (!this._weekdaysParse[i]) {
  2436. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  2437. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  2438. }
  2439. // test the regex
  2440. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  2441. return i;
  2442. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  2443. return i;
  2444. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  2445. return i;
  2446. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  2447. return i;
  2448. }
  2449. }
  2450. }
  2451. // MOMENTS
  2452. function getSetDayOfWeek (input) {
  2453. if (!this.isValid()) {
  2454. return input != null ? this : NaN;
  2455. }
  2456. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  2457. if (input != null) {
  2458. input = parseWeekday(input, this.localeData());
  2459. return this.add(input - day, 'd');
  2460. } else {
  2461. return day;
  2462. }
  2463. }
  2464. function getSetLocaleDayOfWeek (input) {
  2465. if (!this.isValid()) {
  2466. return input != null ? this : NaN;
  2467. }
  2468. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  2469. return input == null ? weekday : this.add(input - weekday, 'd');
  2470. }
  2471. function getSetISODayOfWeek (input) {
  2472. if (!this.isValid()) {
  2473. return input != null ? this : NaN;
  2474. }
  2475. // behaves the same as moment#day except
  2476. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  2477. // as a setter, sunday should belong to the previous week.
  2478. return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);
  2479. }
  2480. var defaultWeekdaysRegex = matchWord;
  2481. function weekdaysRegex (isStrict) {
  2482. if (this._weekdaysParseExact) {
  2483. if (!hasOwnProp(this, '_weekdaysRegex')) {
  2484. computeWeekdaysParse.call(this);
  2485. }
  2486. if (isStrict) {
  2487. return this._weekdaysStrictRegex;
  2488. } else {
  2489. return this._weekdaysRegex;
  2490. }
  2491. } else {
  2492. return this._weekdaysStrictRegex && isStrict ?
  2493. this._weekdaysStrictRegex : this._weekdaysRegex;
  2494. }
  2495. }
  2496. var defaultWeekdaysShortRegex = matchWord;
  2497. function weekdaysShortRegex (isStrict) {
  2498. if (this._weekdaysParseExact) {
  2499. if (!hasOwnProp(this, '_weekdaysRegex')) {
  2500. computeWeekdaysParse.call(this);
  2501. }
  2502. if (isStrict) {
  2503. return this._weekdaysShortStrictRegex;
  2504. } else {
  2505. return this._weekdaysShortRegex;
  2506. }
  2507. } else {
  2508. return this._weekdaysShortStrictRegex && isStrict ?
  2509. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  2510. }
  2511. }
  2512. var defaultWeekdaysMinRegex = matchWord;
  2513. function weekdaysMinRegex (isStrict) {
  2514. if (this._weekdaysParseExact) {
  2515. if (!hasOwnProp(this, '_weekdaysRegex')) {
  2516. computeWeekdaysParse.call(this);
  2517. }
  2518. if (isStrict) {
  2519. return this._weekdaysMinStrictRegex;
  2520. } else {
  2521. return this._weekdaysMinRegex;
  2522. }
  2523. } else {
  2524. return this._weekdaysMinStrictRegex && isStrict ?
  2525. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  2526. }
  2527. }
  2528. function computeWeekdaysParse () {
  2529. function cmpLenRev(a, b) {
  2530. return b.length - a.length;
  2531. }
  2532. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  2533. i, mom, minp, shortp, longp;
  2534. for (i = 0; i < 7; i++) {
  2535. // make the regex if we don't have it already
  2536. mom = create_utc__createUTC([2000, 1]).day(i);
  2537. minp = this.weekdaysMin(mom, '');
  2538. shortp = this.weekdaysShort(mom, '');
  2539. longp = this.weekdays(mom, '');
  2540. minPieces.push(minp);
  2541. shortPieces.push(shortp);
  2542. longPieces.push(longp);
  2543. mixedPieces.push(minp);
  2544. mixedPieces.push(shortp);
  2545. mixedPieces.push(longp);
  2546. }
  2547. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  2548. // will match the longer piece.
  2549. minPieces.sort(cmpLenRev);
  2550. shortPieces.sort(cmpLenRev);
  2551. longPieces.sort(cmpLenRev);
  2552. mixedPieces.sort(cmpLenRev);
  2553. for (i = 0; i < 7; i++) {
  2554. shortPieces[i] = regexEscape(shortPieces[i]);
  2555. longPieces[i] = regexEscape(longPieces[i]);
  2556. mixedPieces[i] = regexEscape(mixedPieces[i]);
  2557. }
  2558. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  2559. this._weekdaysShortRegex = this._weekdaysRegex;
  2560. this._weekdaysMinRegex = this._weekdaysRegex;
  2561. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  2562. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  2563. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  2564. }
  2565. // FORMATTING
  2566. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  2567. // ALIASES
  2568. addUnitAlias('dayOfYear', 'DDD');
  2569. // PARSING
  2570. addRegexToken('DDD', match1to3);
  2571. addRegexToken('DDDD', match3);
  2572. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  2573. config._dayOfYear = toInt(input);
  2574. });
  2575. // HELPERS
  2576. // MOMENTS
  2577. function getSetDayOfYear (input) {
  2578. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  2579. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  2580. }
  2581. // FORMATTING
  2582. function hFormat() {
  2583. return this.hours() % 12 || 12;
  2584. }
  2585. function kFormat() {
  2586. return this.hours() || 24;
  2587. }
  2588. addFormatToken('H', ['HH', 2], 0, 'hour');
  2589. addFormatToken('h', ['hh', 2], 0, hFormat);
  2590. addFormatToken('k', ['kk', 2], 0, kFormat);
  2591. addFormatToken('hmm', 0, 0, function () {
  2592. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  2593. });
  2594. addFormatToken('hmmss', 0, 0, function () {
  2595. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  2596. zeroFill(this.seconds(), 2);
  2597. });
  2598. addFormatToken('Hmm', 0, 0, function () {
  2599. return '' + this.hours() + zeroFill(this.minutes(), 2);
  2600. });
  2601. addFormatToken('Hmmss', 0, 0, function () {
  2602. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  2603. zeroFill(this.seconds(), 2);
  2604. });
  2605. function meridiem (token, lowercase) {
  2606. addFormatToken(token, 0, 0, function () {
  2607. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  2608. });
  2609. }
  2610. meridiem('a', true);
  2611. meridiem('A', false);
  2612. // ALIASES
  2613. addUnitAlias('hour', 'h');
  2614. // PARSING
  2615. function matchMeridiem (isStrict, locale) {
  2616. return locale._meridiemParse;
  2617. }
  2618. addRegexToken('a', matchMeridiem);
  2619. addRegexToken('A', matchMeridiem);
  2620. addRegexToken('H', match1to2);
  2621. addRegexToken('h', match1to2);
  2622. addRegexToken('HH', match1to2, match2);
  2623. addRegexToken('hh', match1to2, match2);
  2624. addRegexToken('hmm', match3to4);
  2625. addRegexToken('hmmss', match5to6);
  2626. addRegexToken('Hmm', match3to4);
  2627. addRegexToken('Hmmss', match5to6);
  2628. addParseToken(['H', 'HH'], HOUR);
  2629. addParseToken(['a', 'A'], function (input, array, config) {
  2630. config._isPm = config._locale.isPM(input);
  2631. config._meridiem = input;
  2632. });
  2633. addParseToken(['h', 'hh'], function (input, array, config) {
  2634. array[HOUR] = toInt(input);
  2635. getParsingFlags(config).bigHour = true;
  2636. });
  2637. addParseToken('hmm', function (input, array, config) {
  2638. var pos = input.length - 2;
  2639. array[HOUR] = toInt(input.substr(0, pos));
  2640. array[MINUTE] = toInt(input.substr(pos));
  2641. getParsingFlags(config).bigHour = true;
  2642. });
  2643. addParseToken('hmmss', function (input, array, config) {
  2644. var pos1 = input.length - 4;
  2645. var pos2 = input.length - 2;
  2646. array[HOUR] = toInt(input.substr(0, pos1));
  2647. array[MINUTE] = toInt(input.substr(pos1, 2));
  2648. array[SECOND] = toInt(input.substr(pos2));
  2649. getParsingFlags(config).bigHour = true;
  2650. });
  2651. addParseToken('Hmm', function (input, array, config) {
  2652. var pos = input.length - 2;
  2653. array[HOUR] = toInt(input.substr(0, pos));
  2654. array[MINUTE] = toInt(input.substr(pos));
  2655. });
  2656. addParseToken('Hmmss', function (input, array, config) {
  2657. var pos1 = input.length - 4;
  2658. var pos2 = input.length - 2;
  2659. array[HOUR] = toInt(input.substr(0, pos1));
  2660. array[MINUTE] = toInt(input.substr(pos1, 2));
  2661. array[SECOND] = toInt(input.substr(pos2));
  2662. });
  2663. // LOCALES
  2664. function localeIsPM (input) {
  2665. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  2666. // Using charAt should be more compatible.
  2667. return ((input + '').toLowerCase().charAt(0) === 'p');
  2668. }
  2669. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  2670. function localeMeridiem (hours, minutes, isLower) {
  2671. if (hours > 11) {
  2672. return isLower ? 'pm' : 'PM';
  2673. } else {
  2674. return isLower ? 'am' : 'AM';
  2675. }
  2676. }
  2677. // MOMENTS
  2678. // Setting the hour should keep the time, because the user explicitly
  2679. // specified which hour he wants. So trying to maintain the same hour (in
  2680. // a new timezone) makes sense. Adding/subtracting hours does not follow
  2681. // this rule.
  2682. var getSetHour = makeGetSet('Hours', true);
  2683. // FORMATTING
  2684. addFormatToken('m', ['mm', 2], 0, 'minute');
  2685. // ALIASES
  2686. addUnitAlias('minute', 'm');
  2687. // PARSING
  2688. addRegexToken('m', match1to2);
  2689. addRegexToken('mm', match1to2, match2);
  2690. addParseToken(['m', 'mm'], MINUTE);
  2691. // MOMENTS
  2692. var getSetMinute = makeGetSet('Minutes', false);
  2693. // FORMATTING
  2694. addFormatToken('s', ['ss', 2], 0, 'second');
  2695. // ALIASES
  2696. addUnitAlias('second', 's');
  2697. // PARSING
  2698. addRegexToken('s', match1to2);
  2699. addRegexToken('ss', match1to2, match2);
  2700. addParseToken(['s', 'ss'], SECOND);
  2701. // MOMENTS
  2702. var getSetSecond = makeGetSet('Seconds', false);
  2703. // FORMATTING
  2704. addFormatToken('S', 0, 0, function () {
  2705. return ~~(this.millisecond() / 100);
  2706. });
  2707. addFormatToken(0, ['SS', 2], 0, function () {
  2708. return ~~(this.millisecond() / 10);
  2709. });
  2710. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  2711. addFormatToken(0, ['SSSS', 4], 0, function () {
  2712. return this.millisecond() * 10;
  2713. });
  2714. addFormatToken(0, ['SSSSS', 5], 0, function () {
  2715. return this.millisecond() * 100;
  2716. });
  2717. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  2718. return this.millisecond() * 1000;
  2719. });
  2720. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  2721. return this.millisecond() * 10000;
  2722. });
  2723. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  2724. return this.millisecond() * 100000;
  2725. });
  2726. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  2727. return this.millisecond() * 1000000;
  2728. });
  2729. // ALIASES
  2730. addUnitAlias('millisecond', 'ms');
  2731. // PARSING
  2732. addRegexToken('S', match1to3, match1);
  2733. addRegexToken('SS', match1to3, match2);
  2734. addRegexToken('SSS', match1to3, match3);
  2735. var token;
  2736. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  2737. addRegexToken(token, matchUnsigned);
  2738. }
  2739. function parseMs(input, array) {
  2740. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  2741. }
  2742. for (token = 'S'; token.length <= 9; token += 'S') {
  2743. addParseToken(token, parseMs);
  2744. }
  2745. // MOMENTS
  2746. var getSetMillisecond = makeGetSet('Milliseconds', false);
  2747. // FORMATTING
  2748. addFormatToken('z', 0, 0, 'zoneAbbr');
  2749. addFormatToken('zz', 0, 0, 'zoneName');
  2750. // MOMENTS
  2751. function getZoneAbbr () {
  2752. return this._isUTC ? 'UTC' : '';
  2753. }
  2754. function getZoneName () {
  2755. return this._isUTC ? 'Coordinated Universal Time' : '';
  2756. }
  2757. var momentPrototype__proto = Moment.prototype;
  2758. momentPrototype__proto.add = add_subtract__add;
  2759. momentPrototype__proto.calendar = moment_calendar__calendar;
  2760. momentPrototype__proto.clone = clone;
  2761. momentPrototype__proto.diff = diff;
  2762. momentPrototype__proto.endOf = endOf;
  2763. momentPrototype__proto.format = moment_format__format;
  2764. momentPrototype__proto.from = from;
  2765. momentPrototype__proto.fromNow = fromNow;
  2766. momentPrototype__proto.to = to;
  2767. momentPrototype__proto.toNow = toNow;
  2768. momentPrototype__proto.get = getSet;
  2769. momentPrototype__proto.invalidAt = invalidAt;
  2770. momentPrototype__proto.isAfter = isAfter;
  2771. momentPrototype__proto.isBefore = isBefore;
  2772. momentPrototype__proto.isBetween = isBetween;
  2773. momentPrototype__proto.isSame = isSame;
  2774. momentPrototype__proto.isSameOrAfter = isSameOrAfter;
  2775. momentPrototype__proto.isSameOrBefore = isSameOrBefore;
  2776. momentPrototype__proto.isValid = moment_valid__isValid;
  2777. momentPrototype__proto.lang = lang;
  2778. momentPrototype__proto.locale = locale;
  2779. momentPrototype__proto.localeData = localeData;
  2780. momentPrototype__proto.max = prototypeMax;
  2781. momentPrototype__proto.min = prototypeMin;
  2782. momentPrototype__proto.parsingFlags = parsingFlags;
  2783. momentPrototype__proto.set = getSet;
  2784. momentPrototype__proto.startOf = startOf;
  2785. momentPrototype__proto.subtract = add_subtract__subtract;
  2786. momentPrototype__proto.toArray = toArray;
  2787. momentPrototype__proto.toObject = toObject;
  2788. momentPrototype__proto.toDate = toDate;
  2789. momentPrototype__proto.toISOString = moment_format__toISOString;
  2790. momentPrototype__proto.toJSON = toJSON;
  2791. momentPrototype__proto.toString = toString;
  2792. momentPrototype__proto.unix = unix;
  2793. momentPrototype__proto.valueOf = to_type__valueOf;
  2794. momentPrototype__proto.creationData = creationData;
  2795. // Year
  2796. momentPrototype__proto.year = getSetYear;
  2797. momentPrototype__proto.isLeapYear = getIsLeapYear;
  2798. // Week Year
  2799. momentPrototype__proto.weekYear = getSetWeekYear;
  2800. momentPrototype__proto.isoWeekYear = getSetISOWeekYear;
  2801. // Quarter
  2802. momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;
  2803. // Month
  2804. momentPrototype__proto.month = getSetMonth;
  2805. momentPrototype__proto.daysInMonth = getDaysInMonth;
  2806. // Week
  2807. momentPrototype__proto.week = momentPrototype__proto.weeks = getSetWeek;
  2808. momentPrototype__proto.isoWeek = momentPrototype__proto.isoWeeks = getSetISOWeek;
  2809. momentPrototype__proto.weeksInYear = getWeeksInYear;
  2810. momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;
  2811. // Day
  2812. momentPrototype__proto.date = getSetDayOfMonth;
  2813. momentPrototype__proto.day = momentPrototype__proto.days = getSetDayOfWeek;
  2814. momentPrototype__proto.weekday = getSetLocaleDayOfWeek;
  2815. momentPrototype__proto.isoWeekday = getSetISODayOfWeek;
  2816. momentPrototype__proto.dayOfYear = getSetDayOfYear;
  2817. // Hour
  2818. momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;
  2819. // Minute
  2820. momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;
  2821. // Second
  2822. momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;
  2823. // Millisecond
  2824. momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;
  2825. // Offset
  2826. momentPrototype__proto.utcOffset = getSetOffset;
  2827. momentPrototype__proto.utc = setOffsetToUTC;
  2828. momentPrototype__proto.local = setOffsetToLocal;
  2829. momentPrototype__proto.parseZone = setOffsetToParsedOffset;
  2830. momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;
  2831. momentPrototype__proto.isDST = isDaylightSavingTime;
  2832. momentPrototype__proto.isDSTShifted = isDaylightSavingTimeShifted;
  2833. momentPrototype__proto.isLocal = isLocal;
  2834. momentPrototype__proto.isUtcOffset = isUtcOffset;
  2835. momentPrototype__proto.isUtc = isUtc;
  2836. momentPrototype__proto.isUTC = isUtc;
  2837. // Timezone
  2838. momentPrototype__proto.zoneAbbr = getZoneAbbr;
  2839. momentPrototype__proto.zoneName = getZoneName;
  2840. // Deprecations
  2841. momentPrototype__proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  2842. momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  2843. momentPrototype__proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  2844. momentPrototype__proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779', getSetZone);
  2845. var momentPrototype = momentPrototype__proto;
  2846. function moment_moment__createUnix (input) {
  2847. return local__createLocal(input * 1000);
  2848. }
  2849. function moment_moment__createInZone () {
  2850. return local__createLocal.apply(null, arguments).parseZone();
  2851. }
  2852. var defaultCalendar = {
  2853. sameDay : '[Today at] LT',
  2854. nextDay : '[Tomorrow at] LT',
  2855. nextWeek : 'dddd [at] LT',
  2856. lastDay : '[Yesterday at] LT',
  2857. lastWeek : '[Last] dddd [at] LT',
  2858. sameElse : 'L'
  2859. };
  2860. function locale_calendar__calendar (key, mom, now) {
  2861. var output = this._calendar[key];
  2862. return isFunction(output) ? output.call(mom, now) : output;
  2863. }
  2864. var defaultLongDateFormat = {
  2865. LTS : 'h:mm:ss A',
  2866. LT : 'h:mm A',
  2867. L : 'MM/DD/YYYY',
  2868. LL : 'MMMM D, YYYY',
  2869. LLL : 'MMMM D, YYYY h:mm A',
  2870. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  2871. };
  2872. function longDateFormat (key) {
  2873. var format = this._longDateFormat[key],
  2874. formatUpper = this._longDateFormat[key.toUpperCase()];
  2875. if (format || !formatUpper) {
  2876. return format;
  2877. }
  2878. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  2879. return val.slice(1);
  2880. });
  2881. return this._longDateFormat[key];
  2882. }
  2883. var defaultInvalidDate = 'Invalid date';
  2884. function invalidDate () {
  2885. return this._invalidDate;
  2886. }
  2887. var defaultOrdinal = '%d';
  2888. var defaultOrdinalParse = /\d{1,2}/;
  2889. function ordinal (number) {
  2890. return this._ordinal.replace('%d', number);
  2891. }
  2892. function preParsePostFormat (string) {
  2893. return string;
  2894. }
  2895. var defaultRelativeTime = {
  2896. future : 'in %s',
  2897. past : '%s ago',
  2898. s : 'a few seconds',
  2899. m : 'a minute',
  2900. mm : '%d minutes',
  2901. h : 'an hour',
  2902. hh : '%d hours',
  2903. d : 'a day',
  2904. dd : '%d days',
  2905. M : 'a month',
  2906. MM : '%d months',
  2907. y : 'a year',
  2908. yy : '%d years'
  2909. };
  2910. function relative__relativeTime (number, withoutSuffix, string, isFuture) {
  2911. var output = this._relativeTime[string];
  2912. return (isFunction(output)) ?
  2913. output(number, withoutSuffix, string, isFuture) :
  2914. output.replace(/%d/i, number);
  2915. }
  2916. function pastFuture (diff, output) {
  2917. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  2918. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  2919. }
  2920. var prototype__proto = Locale.prototype;
  2921. prototype__proto._calendar = defaultCalendar;
  2922. prototype__proto.calendar = locale_calendar__calendar;
  2923. prototype__proto._longDateFormat = defaultLongDateFormat;
  2924. prototype__proto.longDateFormat = longDateFormat;
  2925. prototype__proto._invalidDate = defaultInvalidDate;
  2926. prototype__proto.invalidDate = invalidDate;
  2927. prototype__proto._ordinal = defaultOrdinal;
  2928. prototype__proto.ordinal = ordinal;
  2929. prototype__proto._ordinalParse = defaultOrdinalParse;
  2930. prototype__proto.preparse = preParsePostFormat;
  2931. prototype__proto.postformat = preParsePostFormat;
  2932. prototype__proto._relativeTime = defaultRelativeTime;
  2933. prototype__proto.relativeTime = relative__relativeTime;
  2934. prototype__proto.pastFuture = pastFuture;
  2935. prototype__proto.set = locale_set__set;
  2936. // Month
  2937. prototype__proto.months = localeMonths;
  2938. prototype__proto._months = defaultLocaleMonths;
  2939. prototype__proto.monthsShort = localeMonthsShort;
  2940. prototype__proto._monthsShort = defaultLocaleMonthsShort;
  2941. prototype__proto.monthsParse = localeMonthsParse;
  2942. prototype__proto._monthsRegex = defaultMonthsRegex;
  2943. prototype__proto.monthsRegex = monthsRegex;
  2944. prototype__proto._monthsShortRegex = defaultMonthsShortRegex;
  2945. prototype__proto.monthsShortRegex = monthsShortRegex;
  2946. // Week
  2947. prototype__proto.week = localeWeek;
  2948. prototype__proto._week = defaultLocaleWeek;
  2949. prototype__proto.firstDayOfYear = localeFirstDayOfYear;
  2950. prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;
  2951. // Day of Week
  2952. prototype__proto.weekdays = localeWeekdays;
  2953. prototype__proto._weekdays = defaultLocaleWeekdays;
  2954. prototype__proto.weekdaysMin = localeWeekdaysMin;
  2955. prototype__proto._weekdaysMin = defaultLocaleWeekdaysMin;
  2956. prototype__proto.weekdaysShort = localeWeekdaysShort;
  2957. prototype__proto._weekdaysShort = defaultLocaleWeekdaysShort;
  2958. prototype__proto.weekdaysParse = localeWeekdaysParse;
  2959. prototype__proto._weekdaysRegex = defaultWeekdaysRegex;
  2960. prototype__proto.weekdaysRegex = weekdaysRegex;
  2961. prototype__proto._weekdaysShortRegex = defaultWeekdaysShortRegex;
  2962. prototype__proto.weekdaysShortRegex = weekdaysShortRegex;
  2963. prototype__proto._weekdaysMinRegex = defaultWeekdaysMinRegex;
  2964. prototype__proto.weekdaysMinRegex = weekdaysMinRegex;
  2965. // Hours
  2966. prototype__proto.isPM = localeIsPM;
  2967. prototype__proto._meridiemParse = defaultLocaleMeridiemParse;
  2968. prototype__proto.meridiem = localeMeridiem;
  2969. function lists__get (format, index, field, setter) {
  2970. var locale = locale_locales__getLocale();
  2971. var utc = create_utc__createUTC().set(setter, index);
  2972. return locale[field](utc, format);
  2973. }
  2974. function listMonthsImpl (format, index, field) {
  2975. if (typeof format === 'number') {
  2976. index = format;
  2977. format = undefined;
  2978. }
  2979. format = format || '';
  2980. if (index != null) {
  2981. return lists__get(format, index, field, 'month');
  2982. }
  2983. var i;
  2984. var out = [];
  2985. for (i = 0; i < 12; i++) {
  2986. out[i] = lists__get(format, i, field, 'month');
  2987. }
  2988. return out;
  2989. }
  2990. // ()
  2991. // (5)
  2992. // (fmt, 5)
  2993. // (fmt)
  2994. // (true)
  2995. // (true, 5)
  2996. // (true, fmt, 5)
  2997. // (true, fmt)
  2998. function listWeekdaysImpl (localeSorted, format, index, field) {
  2999. if (typeof localeSorted === 'boolean') {
  3000. if (typeof format === 'number') {
  3001. index = format;
  3002. format = undefined;
  3003. }
  3004. format = format || '';
  3005. } else {
  3006. format = localeSorted;
  3007. index = format;
  3008. localeSorted = false;
  3009. if (typeof format === 'number') {
  3010. index = format;
  3011. format = undefined;
  3012. }
  3013. format = format || '';
  3014. }
  3015. var locale = locale_locales__getLocale(),
  3016. shift = localeSorted ? locale._week.dow : 0;
  3017. if (index != null) {
  3018. return lists__get(format, (index + shift) % 7, field, 'day');
  3019. }
  3020. var i;
  3021. var out = [];
  3022. for (i = 0; i < 7; i++) {
  3023. out[i] = lists__get(format, (i + shift) % 7, field, 'day');
  3024. }
  3025. return out;
  3026. }
  3027. function lists__listMonths (format, index) {
  3028. return listMonthsImpl(format, index, 'months');
  3029. }
  3030. function lists__listMonthsShort (format, index) {
  3031. return listMonthsImpl(format, index, 'monthsShort');
  3032. }
  3033. function lists__listWeekdays (localeSorted, format, index) {
  3034. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  3035. }
  3036. function lists__listWeekdaysShort (localeSorted, format, index) {
  3037. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  3038. }
  3039. function lists__listWeekdaysMin (localeSorted, format, index) {
  3040. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  3041. }
  3042. locale_locales__getSetGlobalLocale('en', {
  3043. ordinalParse: /\d{1,2}(th|st|nd|rd)/,
  3044. ordinal : function (number) {
  3045. var b = number % 10,
  3046. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  3047. (b === 1) ? 'st' :
  3048. (b === 2) ? 'nd' :
  3049. (b === 3) ? 'rd' : 'th';
  3050. return number + output;
  3051. }
  3052. });
  3053. // Side effect imports
  3054. utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);
  3055. utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);
  3056. var mathAbs = Math.abs;
  3057. function duration_abs__abs () {
  3058. var data = this._data;
  3059. this._milliseconds = mathAbs(this._milliseconds);
  3060. this._days = mathAbs(this._days);
  3061. this._months = mathAbs(this._months);
  3062. data.milliseconds = mathAbs(data.milliseconds);
  3063. data.seconds = mathAbs(data.seconds);
  3064. data.minutes = mathAbs(data.minutes);
  3065. data.hours = mathAbs(data.hours);
  3066. data.months = mathAbs(data.months);
  3067. data.years = mathAbs(data.years);
  3068. return this;
  3069. }
  3070. function duration_add_subtract__addSubtract (duration, input, value, direction) {
  3071. var other = create__createDuration(input, value);
  3072. duration._milliseconds += direction * other._milliseconds;
  3073. duration._days += direction * other._days;
  3074. duration._months += direction * other._months;
  3075. return duration._bubble();
  3076. }
  3077. // supports only 2.0-style add(1, 's') or add(duration)
  3078. function duration_add_subtract__add (input, value) {
  3079. return duration_add_subtract__addSubtract(this, input, value, 1);
  3080. }
  3081. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  3082. function duration_add_subtract__subtract (input, value) {
  3083. return duration_add_subtract__addSubtract(this, input, value, -1);
  3084. }
  3085. function absCeil (number) {
  3086. if (number < 0) {
  3087. return Math.floor(number);
  3088. } else {
  3089. return Math.ceil(number);
  3090. }
  3091. }
  3092. function bubble () {
  3093. var milliseconds = this._milliseconds;
  3094. var days = this._days;
  3095. var months = this._months;
  3096. var data = this._data;
  3097. var seconds, minutes, hours, years, monthsFromDays;
  3098. // if we have a mix of positive and negative values, bubble down first
  3099. // check: https://github.com/moment/moment/issues/2166
  3100. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  3101. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  3102. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  3103. days = 0;
  3104. months = 0;
  3105. }
  3106. // The following code bubbles up values, see the tests for
  3107. // examples of what that means.
  3108. data.milliseconds = milliseconds % 1000;
  3109. seconds = absFloor(milliseconds / 1000);
  3110. data.seconds = seconds % 60;
  3111. minutes = absFloor(seconds / 60);
  3112. data.minutes = minutes % 60;
  3113. hours = absFloor(minutes / 60);
  3114. data.hours = hours % 24;
  3115. days += absFloor(hours / 24);
  3116. // convert days to months
  3117. monthsFromDays = absFloor(daysToMonths(days));
  3118. months += monthsFromDays;
  3119. days -= absCeil(monthsToDays(monthsFromDays));
  3120. // 12 months -> 1 year
  3121. years = absFloor(months / 12);
  3122. months %= 12;
  3123. data.days = days;
  3124. data.months = months;
  3125. data.years = years;
  3126. return this;
  3127. }
  3128. function daysToMonths (days) {
  3129. // 400 years have 146097 days (taking into account leap year rules)
  3130. // 400 years have 12 months === 4800
  3131. return days * 4800 / 146097;
  3132. }
  3133. function monthsToDays (months) {
  3134. // the reverse of daysToMonths
  3135. return months * 146097 / 4800;
  3136. }
  3137. function as (units) {
  3138. var days;
  3139. var months;
  3140. var milliseconds = this._milliseconds;
  3141. units = normalizeUnits(units);
  3142. if (units === 'month' || units === 'year') {
  3143. days = this._days + milliseconds / 864e5;
  3144. months = this._months + daysToMonths(days);
  3145. return units === 'month' ? months : months / 12;
  3146. } else {
  3147. // handle milliseconds separately because of floating point math errors (issue #1867)
  3148. days = this._days + Math.round(monthsToDays(this._months));
  3149. switch (units) {
  3150. case 'week' : return days / 7 + milliseconds / 6048e5;
  3151. case 'day' : return days + milliseconds / 864e5;
  3152. case 'hour' : return days * 24 + milliseconds / 36e5;
  3153. case 'minute' : return days * 1440 + milliseconds / 6e4;
  3154. case 'second' : return days * 86400 + milliseconds / 1000;
  3155. // Math.floor prevents floating point math errors here
  3156. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  3157. default: throw new Error('Unknown unit ' + units);
  3158. }
  3159. }
  3160. }
  3161. // TODO: Use this.as('ms')?
  3162. function duration_as__valueOf () {
  3163. return (
  3164. this._milliseconds +
  3165. this._days * 864e5 +
  3166. (this._months % 12) * 2592e6 +
  3167. toInt(this._months / 12) * 31536e6
  3168. );
  3169. }
  3170. function makeAs (alias) {
  3171. return function () {
  3172. return this.as(alias);
  3173. };
  3174. }
  3175. var asMilliseconds = makeAs('ms');
  3176. var asSeconds = makeAs('s');
  3177. var asMinutes = makeAs('m');
  3178. var asHours = makeAs('h');
  3179. var asDays = makeAs('d');
  3180. var asWeeks = makeAs('w');
  3181. var asMonths = makeAs('M');
  3182. var asYears = makeAs('y');
  3183. function duration_get__get (units) {
  3184. units = normalizeUnits(units);
  3185. return this[units + 's']();
  3186. }
  3187. function makeGetter(name) {
  3188. return function () {
  3189. return this._data[name];
  3190. };
  3191. }
  3192. var milliseconds = makeGetter('milliseconds');
  3193. var seconds = makeGetter('seconds');
  3194. var minutes = makeGetter('minutes');
  3195. var hours = makeGetter('hours');
  3196. var days = makeGetter('days');
  3197. var duration_get__months = makeGetter('months');
  3198. var years = makeGetter('years');
  3199. function weeks () {
  3200. return absFloor(this.days() / 7);
  3201. }
  3202. var round = Math.round;
  3203. var thresholds = {
  3204. s: 45, // seconds to minute
  3205. m: 45, // minutes to hour
  3206. h: 22, // hours to day
  3207. d: 26, // days to month
  3208. M: 11 // months to year
  3209. };
  3210. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  3211. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  3212. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  3213. }
  3214. function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {
  3215. var duration = create__createDuration(posNegDuration).abs();
  3216. var seconds = round(duration.as('s'));
  3217. var minutes = round(duration.as('m'));
  3218. var hours = round(duration.as('h'));
  3219. var days = round(duration.as('d'));
  3220. var months = round(duration.as('M'));
  3221. var years = round(duration.as('y'));
  3222. var a = seconds < thresholds.s && ['s', seconds] ||
  3223. minutes <= 1 && ['m'] ||
  3224. minutes < thresholds.m && ['mm', minutes] ||
  3225. hours <= 1 && ['h'] ||
  3226. hours < thresholds.h && ['hh', hours] ||
  3227. days <= 1 && ['d'] ||
  3228. days < thresholds.d && ['dd', days] ||
  3229. months <= 1 && ['M'] ||
  3230. months < thresholds.M && ['MM', months] ||
  3231. years <= 1 && ['y'] || ['yy', years];
  3232. a[2] = withoutSuffix;
  3233. a[3] = +posNegDuration > 0;
  3234. a[4] = locale;
  3235. return substituteTimeAgo.apply(null, a);
  3236. }
  3237. // This function allows you to set a threshold for relative time strings
  3238. function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {
  3239. if (thresholds[threshold] === undefined) {
  3240. return false;
  3241. }
  3242. if (limit === undefined) {
  3243. return thresholds[threshold];
  3244. }
  3245. thresholds[threshold] = limit;
  3246. return true;
  3247. }
  3248. function humanize (withSuffix) {
  3249. var locale = this.localeData();
  3250. var output = duration_humanize__relativeTime(this, !withSuffix, locale);
  3251. if (withSuffix) {
  3252. output = locale.pastFuture(+this, output);
  3253. }
  3254. return locale.postformat(output);
  3255. }
  3256. var iso_string__abs = Math.abs;
  3257. function iso_string__toISOString() {
  3258. // for ISO strings we do not use the normal bubbling rules:
  3259. // * milliseconds bubble up until they become hours
  3260. // * days do not bubble at all
  3261. // * months bubble up until they become years
  3262. // This is because there is no context-free conversion between hours and days
  3263. // (think of clock changes)
  3264. // and also not between days and months (28-31 days per month)
  3265. var seconds = iso_string__abs(this._milliseconds) / 1000;
  3266. var days = iso_string__abs(this._days);
  3267. var months = iso_string__abs(this._months);
  3268. var minutes, hours, years;
  3269. // 3600 seconds -> 60 minutes -> 1 hour
  3270. minutes = absFloor(seconds / 60);
  3271. hours = absFloor(minutes / 60);
  3272. seconds %= 60;
  3273. minutes %= 60;
  3274. // 12 months -> 1 year
  3275. years = absFloor(months / 12);
  3276. months %= 12;
  3277. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  3278. var Y = years;
  3279. var M = months;
  3280. var D = days;
  3281. var h = hours;
  3282. var m = minutes;
  3283. var s = seconds;
  3284. var total = this.asSeconds();
  3285. if (!total) {
  3286. // this is the same as C#'s (Noda) and python (isodate)...
  3287. // but not other JS (goog.date)
  3288. return 'P0D';
  3289. }
  3290. return (total < 0 ? '-' : '') +
  3291. 'P' +
  3292. (Y ? Y + 'Y' : '') +
  3293. (M ? M + 'M' : '') +
  3294. (D ? D + 'D' : '') +
  3295. ((h || m || s) ? 'T' : '') +
  3296. (h ? h + 'H' : '') +
  3297. (m ? m + 'M' : '') +
  3298. (s ? s + 'S' : '');
  3299. }
  3300. var duration_prototype__proto = Duration.prototype;
  3301. duration_prototype__proto.abs = duration_abs__abs;
  3302. duration_prototype__proto.add = duration_add_subtract__add;
  3303. duration_prototype__proto.subtract = duration_add_subtract__subtract;
  3304. duration_prototype__proto.as = as;
  3305. duration_prototype__proto.asMilliseconds = asMilliseconds;
  3306. duration_prototype__proto.asSeconds = asSeconds;
  3307. duration_prototype__proto.asMinutes = asMinutes;
  3308. duration_prototype__proto.asHours = asHours;
  3309. duration_prototype__proto.asDays = asDays;
  3310. duration_prototype__proto.asWeeks = asWeeks;
  3311. duration_prototype__proto.asMonths = asMonths;
  3312. duration_prototype__proto.asYears = asYears;
  3313. duration_prototype__proto.valueOf = duration_as__valueOf;
  3314. duration_prototype__proto._bubble = bubble;
  3315. duration_prototype__proto.get = duration_get__get;
  3316. duration_prototype__proto.milliseconds = milliseconds;
  3317. duration_prototype__proto.seconds = seconds;
  3318. duration_prototype__proto.minutes = minutes;
  3319. duration_prototype__proto.hours = hours;
  3320. duration_prototype__proto.days = days;
  3321. duration_prototype__proto.weeks = weeks;
  3322. duration_prototype__proto.months = duration_get__months;
  3323. duration_prototype__proto.years = years;
  3324. duration_prototype__proto.humanize = humanize;
  3325. duration_prototype__proto.toISOString = iso_string__toISOString;
  3326. duration_prototype__proto.toString = iso_string__toISOString;
  3327. duration_prototype__proto.toJSON = iso_string__toISOString;
  3328. duration_prototype__proto.locale = locale;
  3329. duration_prototype__proto.localeData = localeData;
  3330. // Deprecations
  3331. duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);
  3332. duration_prototype__proto.lang = lang;
  3333. // Side effect imports
  3334. // FORMATTING
  3335. addFormatToken('X', 0, 0, 'unix');
  3336. addFormatToken('x', 0, 0, 'valueOf');
  3337. // PARSING
  3338. addRegexToken('x', matchSigned);
  3339. addRegexToken('X', matchTimestamp);
  3340. addParseToken('X', function (input, array, config) {
  3341. config._d = new Date(parseFloat(input, 10) * 1000);
  3342. });
  3343. addParseToken('x', function (input, array, config) {
  3344. config._d = new Date(toInt(input));
  3345. });
  3346. // Side effect imports
  3347. ;
  3348. //! moment.js
  3349. //! version : 2.13.0
  3350. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  3351. //! license : MIT
  3352. //! momentjs.com
  3353. utils_hooks__hooks.version = '2.13.0';
  3354. setHookCallback(local__createLocal);
  3355. utils_hooks__hooks.fn = momentPrototype;
  3356. utils_hooks__hooks.min = min;
  3357. utils_hooks__hooks.max = max;
  3358. utils_hooks__hooks.now = now;
  3359. utils_hooks__hooks.utc = create_utc__createUTC;
  3360. utils_hooks__hooks.unix = moment_moment__createUnix;
  3361. utils_hooks__hooks.months = lists__listMonths;
  3362. utils_hooks__hooks.isDate = isDate;
  3363. utils_hooks__hooks.locale = locale_locales__getSetGlobalLocale;
  3364. utils_hooks__hooks.invalid = valid__createInvalid;
  3365. utils_hooks__hooks.duration = create__createDuration;
  3366. utils_hooks__hooks.isMoment = isMoment;
  3367. utils_hooks__hooks.weekdays = lists__listWeekdays;
  3368. utils_hooks__hooks.parseZone = moment_moment__createInZone;
  3369. utils_hooks__hooks.localeData = locale_locales__getLocale;
  3370. utils_hooks__hooks.isDuration = isDuration;
  3371. utils_hooks__hooks.monthsShort = lists__listMonthsShort;
  3372. utils_hooks__hooks.weekdaysMin = lists__listWeekdaysMin;
  3373. utils_hooks__hooks.defineLocale = defineLocale;
  3374. utils_hooks__hooks.updateLocale = updateLocale;
  3375. utils_hooks__hooks.locales = locale_locales__listLocales;
  3376. utils_hooks__hooks.weekdaysShort = lists__listWeekdaysShort;
  3377. utils_hooks__hooks.normalizeUnits = normalizeUnits;
  3378. utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;
  3379. utils_hooks__hooks.prototype = momentPrototype;
  3380. var moment__default = utils_hooks__hooks;
  3381. //! moment.js locale configuration
  3382. //! locale : afrikaans (af)
  3383. //! author : Werner Mollentze : https://github.com/wernerm
  3384. var af = moment__default.defineLocale('af', {
  3385. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  3386. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  3387. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  3388. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  3389. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  3390. meridiemParse: /vm|nm/i,
  3391. isPM : function (input) {
  3392. return /^nm$/i.test(input);
  3393. },
  3394. meridiem : function (hours, minutes, isLower) {
  3395. if (hours < 12) {
  3396. return isLower ? 'vm' : 'VM';
  3397. } else {
  3398. return isLower ? 'nm' : 'NM';
  3399. }
  3400. },
  3401. longDateFormat : {
  3402. LT : 'HH:mm',
  3403. LTS : 'HH:mm:ss',
  3404. L : 'DD/MM/YYYY',
  3405. LL : 'D MMMM YYYY',
  3406. LLL : 'D MMMM YYYY HH:mm',
  3407. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3408. },
  3409. calendar : {
  3410. sameDay : '[Vandag om] LT',
  3411. nextDay : '[Môre om] LT',
  3412. nextWeek : 'dddd [om] LT',
  3413. lastDay : '[Gister om] LT',
  3414. lastWeek : '[Laas] dddd [om] LT',
  3415. sameElse : 'L'
  3416. },
  3417. relativeTime : {
  3418. future : 'oor %s',
  3419. past : '%s gelede',
  3420. s : '\'n paar sekondes',
  3421. m : '\'n minuut',
  3422. mm : '%d minute',
  3423. h : '\'n uur',
  3424. hh : '%d ure',
  3425. d : '\'n dag',
  3426. dd : '%d dae',
  3427. M : '\'n maand',
  3428. MM : '%d maande',
  3429. y : '\'n jaar',
  3430. yy : '%d jaar'
  3431. },
  3432. ordinalParse: /\d{1,2}(ste|de)/,
  3433. ordinal : function (number) {
  3434. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  3435. },
  3436. week : {
  3437. dow : 1, // Maandag is die eerste dag van die week.
  3438. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  3439. }
  3440. });
  3441. //! moment.js locale configuration
  3442. //! locale : Moroccan Arabic (ar-ma)
  3443. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  3444. //! author : Abdel Said : https://github.com/abdelsaid
  3445. var ar_ma = moment__default.defineLocale('ar-ma', {
  3446. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3447. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3448. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3449. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3450. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3451. weekdaysParseExact : true,
  3452. longDateFormat : {
  3453. LT : 'HH:mm',
  3454. LTS : 'HH:mm:ss',
  3455. L : 'DD/MM/YYYY',
  3456. LL : 'D MMMM YYYY',
  3457. LLL : 'D MMMM YYYY HH:mm',
  3458. LLLL : 'dddd D MMMM YYYY HH:mm'
  3459. },
  3460. calendar : {
  3461. sameDay: '[اليوم على الساعة] LT',
  3462. nextDay: '[غدا على الساعة] LT',
  3463. nextWeek: 'dddd [على الساعة] LT',
  3464. lastDay: '[أمس على الساعة] LT',
  3465. lastWeek: 'dddd [على الساعة] LT',
  3466. sameElse: 'L'
  3467. },
  3468. relativeTime : {
  3469. future : 'في %s',
  3470. past : 'منذ %s',
  3471. s : 'ثوان',
  3472. m : 'دقيقة',
  3473. mm : '%d دقائق',
  3474. h : 'ساعة',
  3475. hh : '%d ساعات',
  3476. d : 'يوم',
  3477. dd : '%d أيام',
  3478. M : 'شهر',
  3479. MM : '%d أشهر',
  3480. y : 'سنة',
  3481. yy : '%d سنوات'
  3482. },
  3483. week : {
  3484. dow : 6, // Saturday is the first day of the week.
  3485. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3486. }
  3487. });
  3488. //! moment.js locale configuration
  3489. //! locale : Arabic Saudi Arabia (ar-sa)
  3490. //! author : Suhail Alkowaileet : https://github.com/xsoh
  3491. var ar_sa__symbolMap = {
  3492. '1': '١',
  3493. '2': '٢',
  3494. '3': '٣',
  3495. '4': '٤',
  3496. '5': '٥',
  3497. '6': '٦',
  3498. '7': '٧',
  3499. '8': '٨',
  3500. '9': '٩',
  3501. '0': '٠'
  3502. }, ar_sa__numberMap = {
  3503. '١': '1',
  3504. '٢': '2',
  3505. '٣': '3',
  3506. '٤': '4',
  3507. '٥': '5',
  3508. '٦': '6',
  3509. '٧': '7',
  3510. '٨': '8',
  3511. '٩': '9',
  3512. '٠': '0'
  3513. };
  3514. var ar_sa = moment__default.defineLocale('ar-sa', {
  3515. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3516. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3517. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3518. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3519. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3520. weekdaysParseExact : true,
  3521. longDateFormat : {
  3522. LT : 'HH:mm',
  3523. LTS : 'HH:mm:ss',
  3524. L : 'DD/MM/YYYY',
  3525. LL : 'D MMMM YYYY',
  3526. LLL : 'D MMMM YYYY HH:mm',
  3527. LLLL : 'dddd D MMMM YYYY HH:mm'
  3528. },
  3529. meridiemParse: /ص|م/,
  3530. isPM : function (input) {
  3531. return 'م' === input;
  3532. },
  3533. meridiem : function (hour, minute, isLower) {
  3534. if (hour < 12) {
  3535. return 'ص';
  3536. } else {
  3537. return 'م';
  3538. }
  3539. },
  3540. calendar : {
  3541. sameDay: '[اليوم على الساعة] LT',
  3542. nextDay: '[غدا على الساعة] LT',
  3543. nextWeek: 'dddd [على الساعة] LT',
  3544. lastDay: '[أمس على الساعة] LT',
  3545. lastWeek: 'dddd [على الساعة] LT',
  3546. sameElse: 'L'
  3547. },
  3548. relativeTime : {
  3549. future : 'في %s',
  3550. past : 'منذ %s',
  3551. s : 'ثوان',
  3552. m : 'دقيقة',
  3553. mm : '%d دقائق',
  3554. h : 'ساعة',
  3555. hh : '%d ساعات',
  3556. d : 'يوم',
  3557. dd : '%d أيام',
  3558. M : 'شهر',
  3559. MM : '%d أشهر',
  3560. y : 'سنة',
  3561. yy : '%d سنوات'
  3562. },
  3563. preparse: function (string) {
  3564. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  3565. return ar_sa__numberMap[match];
  3566. }).replace(/،/g, ',');
  3567. },
  3568. postformat: function (string) {
  3569. return string.replace(/\d/g, function (match) {
  3570. return ar_sa__symbolMap[match];
  3571. }).replace(/,/g, '،');
  3572. },
  3573. week : {
  3574. dow : 6, // Saturday is the first day of the week.
  3575. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3576. }
  3577. });
  3578. //! moment.js locale configuration
  3579. //! locale : Tunisian Arabic (ar-tn)
  3580. var ar_tn = moment__default.defineLocale('ar-tn', {
  3581. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3582. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3583. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3584. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3585. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3586. weekdaysParseExact : true,
  3587. longDateFormat: {
  3588. LT: 'HH:mm',
  3589. LTS: 'HH:mm:ss',
  3590. L: 'DD/MM/YYYY',
  3591. LL: 'D MMMM YYYY',
  3592. LLL: 'D MMMM YYYY HH:mm',
  3593. LLLL: 'dddd D MMMM YYYY HH:mm'
  3594. },
  3595. calendar: {
  3596. sameDay: '[اليوم على الساعة] LT',
  3597. nextDay: '[غدا على الساعة] LT',
  3598. nextWeek: 'dddd [على الساعة] LT',
  3599. lastDay: '[أمس على الساعة] LT',
  3600. lastWeek: 'dddd [على الساعة] LT',
  3601. sameElse: 'L'
  3602. },
  3603. relativeTime: {
  3604. future: 'في %s',
  3605. past: 'منذ %s',
  3606. s: 'ثوان',
  3607. m: 'دقيقة',
  3608. mm: '%d دقائق',
  3609. h: 'ساعة',
  3610. hh: '%d ساعات',
  3611. d: 'يوم',
  3612. dd: '%d أيام',
  3613. M: 'شهر',
  3614. MM: '%d أشهر',
  3615. y: 'سنة',
  3616. yy: '%d سنوات'
  3617. },
  3618. week: {
  3619. dow: 1, // Monday is the first day of the week.
  3620. doy: 4 // The week that contains Jan 4th is the first week of the year.
  3621. }
  3622. });
  3623. //! moment.js locale configuration
  3624. //! Locale: Arabic (ar)
  3625. //! Author: Abdel Said: https://github.com/abdelsaid
  3626. //! Changes in months, weekdays: Ahmed Elkhatib
  3627. //! Native plural forms: forabi https://github.com/forabi
  3628. var ar__symbolMap = {
  3629. '1': '١',
  3630. '2': '٢',
  3631. '3': '٣',
  3632. '4': '٤',
  3633. '5': '٥',
  3634. '6': '٦',
  3635. '7': '٧',
  3636. '8': '٨',
  3637. '9': '٩',
  3638. '0': '٠'
  3639. }, ar__numberMap = {
  3640. '١': '1',
  3641. '٢': '2',
  3642. '٣': '3',
  3643. '٤': '4',
  3644. '٥': '5',
  3645. '٦': '6',
  3646. '٧': '7',
  3647. '٨': '8',
  3648. '٩': '9',
  3649. '٠': '0'
  3650. }, pluralForm = function (n) {
  3651. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  3652. }, plurals = {
  3653. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  3654. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  3655. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  3656. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  3657. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  3658. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  3659. }, pluralize = function (u) {
  3660. return function (number, withoutSuffix, string, isFuture) {
  3661. var f = pluralForm(number),
  3662. str = plurals[u][pluralForm(number)];
  3663. if (f === 2) {
  3664. str = str[withoutSuffix ? 0 : 1];
  3665. }
  3666. return str.replace(/%d/i, number);
  3667. };
  3668. }, ar__months = [
  3669. 'كانون الثاني يناير',
  3670. 'شباط فبراير',
  3671. 'آذار مارس',
  3672. 'نيسان أبريل',
  3673. 'أيار مايو',
  3674. 'حزيران يونيو',
  3675. 'تموز يوليو',
  3676. 'آب أغسطس',
  3677. 'أيلول سبتمبر',
  3678. 'تشرين الأول أكتوبر',
  3679. 'تشرين الثاني نوفمبر',
  3680. 'كانون الأول ديسمبر'
  3681. ];
  3682. var ar = moment__default.defineLocale('ar', {
  3683. months : ar__months,
  3684. monthsShort : ar__months,
  3685. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3686. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3687. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3688. weekdaysParseExact : true,
  3689. longDateFormat : {
  3690. LT : 'HH:mm',
  3691. LTS : 'HH:mm:ss',
  3692. L : 'D/\u200FM/\u200FYYYY',
  3693. LL : 'D MMMM YYYY',
  3694. LLL : 'D MMMM YYYY HH:mm',
  3695. LLLL : 'dddd D MMMM YYYY HH:mm'
  3696. },
  3697. meridiemParse: /ص|م/,
  3698. isPM : function (input) {
  3699. return 'م' === input;
  3700. },
  3701. meridiem : function (hour, minute, isLower) {
  3702. if (hour < 12) {
  3703. return 'ص';
  3704. } else {
  3705. return 'م';
  3706. }
  3707. },
  3708. calendar : {
  3709. sameDay: '[اليوم عند الساعة] LT',
  3710. nextDay: '[غدًا عند الساعة] LT',
  3711. nextWeek: 'dddd [عند الساعة] LT',
  3712. lastDay: '[أمس عند الساعة] LT',
  3713. lastWeek: 'dddd [عند الساعة] LT',
  3714. sameElse: 'L'
  3715. },
  3716. relativeTime : {
  3717. future : 'بعد %s',
  3718. past : 'منذ %s',
  3719. s : pluralize('s'),
  3720. m : pluralize('m'),
  3721. mm : pluralize('m'),
  3722. h : pluralize('h'),
  3723. hh : pluralize('h'),
  3724. d : pluralize('d'),
  3725. dd : pluralize('d'),
  3726. M : pluralize('M'),
  3727. MM : pluralize('M'),
  3728. y : pluralize('y'),
  3729. yy : pluralize('y')
  3730. },
  3731. preparse: function (string) {
  3732. return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  3733. return ar__numberMap[match];
  3734. }).replace(/،/g, ',');
  3735. },
  3736. postformat: function (string) {
  3737. return string.replace(/\d/g, function (match) {
  3738. return ar__symbolMap[match];
  3739. }).replace(/,/g, '،');
  3740. },
  3741. week : {
  3742. dow : 6, // Saturday is the first day of the week.
  3743. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3744. }
  3745. });
  3746. //! moment.js locale configuration
  3747. //! locale : azerbaijani (az)
  3748. //! author : topchiyev : https://github.com/topchiyev
  3749. var az__suffixes = {
  3750. 1: '-inci',
  3751. 5: '-inci',
  3752. 8: '-inci',
  3753. 70: '-inci',
  3754. 80: '-inci',
  3755. 2: '-nci',
  3756. 7: '-nci',
  3757. 20: '-nci',
  3758. 50: '-nci',
  3759. 3: '-üncü',
  3760. 4: '-üncü',
  3761. 100: '-üncü',
  3762. 6: '-ncı',
  3763. 9: '-uncu',
  3764. 10: '-uncu',
  3765. 30: '-uncu',
  3766. 60: '-ıncı',
  3767. 90: '-ıncı'
  3768. };
  3769. var az = moment__default.defineLocale('az', {
  3770. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  3771. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  3772. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  3773. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  3774. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  3775. weekdaysParseExact : true,
  3776. longDateFormat : {
  3777. LT : 'HH:mm',
  3778. LTS : 'HH:mm:ss',
  3779. L : 'DD.MM.YYYY',
  3780. LL : 'D MMMM YYYY',
  3781. LLL : 'D MMMM YYYY HH:mm',
  3782. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3783. },
  3784. calendar : {
  3785. sameDay : '[bugün saat] LT',
  3786. nextDay : '[sabah saat] LT',
  3787. nextWeek : '[gələn həftə] dddd [saat] LT',
  3788. lastDay : '[dünən] LT',
  3789. lastWeek : '[keçən həftə] dddd [saat] LT',
  3790. sameElse : 'L'
  3791. },
  3792. relativeTime : {
  3793. future : '%s sonra',
  3794. past : '%s əvvəl',
  3795. s : 'birneçə saniyyə',
  3796. m : 'bir dəqiqə',
  3797. mm : '%d dəqiqə',
  3798. h : 'bir saat',
  3799. hh : '%d saat',
  3800. d : 'bir gün',
  3801. dd : '%d gün',
  3802. M : 'bir ay',
  3803. MM : '%d ay',
  3804. y : 'bir il',
  3805. yy : '%d il'
  3806. },
  3807. meridiemParse: /gecə|səhər|gündüz|axşam/,
  3808. isPM : function (input) {
  3809. return /^(gündüz|axşam)$/.test(input);
  3810. },
  3811. meridiem : function (hour, minute, isLower) {
  3812. if (hour < 4) {
  3813. return 'gecə';
  3814. } else if (hour < 12) {
  3815. return 'səhər';
  3816. } else if (hour < 17) {
  3817. return 'gündüz';
  3818. } else {
  3819. return 'axşam';
  3820. }
  3821. },
  3822. ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  3823. ordinal : function (number) {
  3824. if (number === 0) { // special case for zero
  3825. return number + '-ıncı';
  3826. }
  3827. var a = number % 10,
  3828. b = number % 100 - a,
  3829. c = number >= 100 ? 100 : null;
  3830. return number + (az__suffixes[a] || az__suffixes[b] || az__suffixes[c]);
  3831. },
  3832. week : {
  3833. dow : 1, // Monday is the first day of the week.
  3834. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3835. }
  3836. });
  3837. //! moment.js locale configuration
  3838. //! locale : belarusian (be)
  3839. //! author : Dmitry Demidov : https://github.com/demidov91
  3840. //! author: Praleska: http://praleska.pro/
  3841. //! Author : Menelion Elensúle : https://github.com/Oire
  3842. function be__plural(word, num) {
  3843. var forms = word.split('_');
  3844. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  3845. }
  3846. function be__relativeTimeWithPlural(number, withoutSuffix, key) {
  3847. var format = {
  3848. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  3849. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  3850. 'dd': 'дзень_дні_дзён',
  3851. 'MM': 'месяц_месяцы_месяцаў',
  3852. 'yy': 'год_гады_гадоў'
  3853. };
  3854. if (key === 'm') {
  3855. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  3856. }
  3857. else if (key === 'h') {
  3858. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  3859. }
  3860. else {
  3861. return number + ' ' + be__plural(format[key], +number);
  3862. }
  3863. }
  3864. var be = moment__default.defineLocale('be', {
  3865. months : {
  3866. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  3867. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  3868. },
  3869. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  3870. weekdays : {
  3871. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  3872. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  3873. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  3874. },
  3875. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  3876. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  3877. longDateFormat : {
  3878. LT : 'HH:mm',
  3879. LTS : 'HH:mm:ss',
  3880. L : 'DD.MM.YYYY',
  3881. LL : 'D MMMM YYYY г.',
  3882. LLL : 'D MMMM YYYY г., HH:mm',
  3883. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  3884. },
  3885. calendar : {
  3886. sameDay: '[Сёння ў] LT',
  3887. nextDay: '[Заўтра ў] LT',
  3888. lastDay: '[Учора ў] LT',
  3889. nextWeek: function () {
  3890. return '[У] dddd [ў] LT';
  3891. },
  3892. lastWeek: function () {
  3893. switch (this.day()) {
  3894. case 0:
  3895. case 3:
  3896. case 5:
  3897. case 6:
  3898. return '[У мінулую] dddd [ў] LT';
  3899. case 1:
  3900. case 2:
  3901. case 4:
  3902. return '[У мінулы] dddd [ў] LT';
  3903. }
  3904. },
  3905. sameElse: 'L'
  3906. },
  3907. relativeTime : {
  3908. future : 'праз %s',
  3909. past : '%s таму',
  3910. s : 'некалькі секунд',
  3911. m : be__relativeTimeWithPlural,
  3912. mm : be__relativeTimeWithPlural,
  3913. h : be__relativeTimeWithPlural,
  3914. hh : be__relativeTimeWithPlural,
  3915. d : 'дзень',
  3916. dd : be__relativeTimeWithPlural,
  3917. M : 'месяц',
  3918. MM : be__relativeTimeWithPlural,
  3919. y : 'год',
  3920. yy : be__relativeTimeWithPlural
  3921. },
  3922. meridiemParse: /ночы|раніцы|дня|вечара/,
  3923. isPM : function (input) {
  3924. return /^(дня|вечара)$/.test(input);
  3925. },
  3926. meridiem : function (hour, minute, isLower) {
  3927. if (hour < 4) {
  3928. return 'ночы';
  3929. } else if (hour < 12) {
  3930. return 'раніцы';
  3931. } else if (hour < 17) {
  3932. return 'дня';
  3933. } else {
  3934. return 'вечара';
  3935. }
  3936. },
  3937. ordinalParse: /\d{1,2}-(і|ы|га)/,
  3938. ordinal: function (number, period) {
  3939. switch (period) {
  3940. case 'M':
  3941. case 'd':
  3942. case 'DDD':
  3943. case 'w':
  3944. case 'W':
  3945. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  3946. case 'D':
  3947. return number + '-га';
  3948. default:
  3949. return number;
  3950. }
  3951. },
  3952. week : {
  3953. dow : 1, // Monday is the first day of the week.
  3954. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3955. }
  3956. });
  3957. //! moment.js locale configuration
  3958. //! locale : bulgarian (bg)
  3959. //! author : Krasen Borisov : https://github.com/kraz
  3960. var bg = moment__default.defineLocale('bg', {
  3961. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  3962. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  3963. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  3964. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  3965. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  3966. longDateFormat : {
  3967. LT : 'H:mm',
  3968. LTS : 'H:mm:ss',
  3969. L : 'D.MM.YYYY',
  3970. LL : 'D MMMM YYYY',
  3971. LLL : 'D MMMM YYYY H:mm',
  3972. LLLL : 'dddd, D MMMM YYYY H:mm'
  3973. },
  3974. calendar : {
  3975. sameDay : '[Днес в] LT',
  3976. nextDay : '[Утре в] LT',
  3977. nextWeek : 'dddd [в] LT',
  3978. lastDay : '[Вчера в] LT',
  3979. lastWeek : function () {
  3980. switch (this.day()) {
  3981. case 0:
  3982. case 3:
  3983. case 6:
  3984. return '[В изминалата] dddd [в] LT';
  3985. case 1:
  3986. case 2:
  3987. case 4:
  3988. case 5:
  3989. return '[В изминалия] dddd [в] LT';
  3990. }
  3991. },
  3992. sameElse : 'L'
  3993. },
  3994. relativeTime : {
  3995. future : 'след %s',
  3996. past : 'преди %s',
  3997. s : 'няколко секунди',
  3998. m : 'минута',
  3999. mm : '%d минути',
  4000. h : 'час',
  4001. hh : '%d часа',
  4002. d : 'ден',
  4003. dd : '%d дни',
  4004. M : 'месец',
  4005. MM : '%d месеца',
  4006. y : 'година',
  4007. yy : '%d години'
  4008. },
  4009. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  4010. ordinal : function (number) {
  4011. var lastDigit = number % 10,
  4012. last2Digits = number % 100;
  4013. if (number === 0) {
  4014. return number + '-ев';
  4015. } else if (last2Digits === 0) {
  4016. return number + '-ен';
  4017. } else if (last2Digits > 10 && last2Digits < 20) {
  4018. return number + '-ти';
  4019. } else if (lastDigit === 1) {
  4020. return number + '-ви';
  4021. } else if (lastDigit === 2) {
  4022. return number + '-ри';
  4023. } else if (lastDigit === 7 || lastDigit === 8) {
  4024. return number + '-ми';
  4025. } else {
  4026. return number + '-ти';
  4027. }
  4028. },
  4029. week : {
  4030. dow : 1, // Monday is the first day of the week.
  4031. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4032. }
  4033. });
  4034. //! moment.js locale configuration
  4035. //! locale : Bengali (bn)
  4036. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  4037. var bn__symbolMap = {
  4038. '1': '১',
  4039. '2': '২',
  4040. '3': '৩',
  4041. '4': '৪',
  4042. '5': '৫',
  4043. '6': '৬',
  4044. '7': '৭',
  4045. '8': '৮',
  4046. '9': '৯',
  4047. '0': '০'
  4048. },
  4049. bn__numberMap = {
  4050. '১': '1',
  4051. '২': '2',
  4052. '৩': '3',
  4053. '৪': '4',
  4054. '৫': '5',
  4055. '৬': '6',
  4056. '৭': '7',
  4057. '৮': '8',
  4058. '৯': '9',
  4059. '০': '0'
  4060. };
  4061. var bn = moment__default.defineLocale('bn', {
  4062. months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  4063. monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
  4064. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার'.split('_'),
  4065. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি'.split('_'),
  4066. weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
  4067. longDateFormat : {
  4068. LT : 'A h:mm সময়',
  4069. LTS : 'A h:mm:ss সময়',
  4070. L : 'DD/MM/YYYY',
  4071. LL : 'D MMMM YYYY',
  4072. LLL : 'D MMMM YYYY, A h:mm সময়',
  4073. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  4074. },
  4075. calendar : {
  4076. sameDay : '[আজ] LT',
  4077. nextDay : '[আগামীকাল] LT',
  4078. nextWeek : 'dddd, LT',
  4079. lastDay : '[গতকাল] LT',
  4080. lastWeek : '[গত] dddd, LT',
  4081. sameElse : 'L'
  4082. },
  4083. relativeTime : {
  4084. future : '%s পরে',
  4085. past : '%s আগে',
  4086. s : 'কয়েক সেকেন্ড',
  4087. m : 'এক মিনিট',
  4088. mm : '%d মিনিট',
  4089. h : 'এক ঘন্টা',
  4090. hh : '%d ঘন্টা',
  4091. d : 'এক দিন',
  4092. dd : '%d দিন',
  4093. M : 'এক মাস',
  4094. MM : '%d মাস',
  4095. y : 'এক বছর',
  4096. yy : '%d বছর'
  4097. },
  4098. preparse: function (string) {
  4099. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  4100. return bn__numberMap[match];
  4101. });
  4102. },
  4103. postformat: function (string) {
  4104. return string.replace(/\d/g, function (match) {
  4105. return bn__symbolMap[match];
  4106. });
  4107. },
  4108. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  4109. meridiemHour : function (hour, meridiem) {
  4110. if (hour === 12) {
  4111. hour = 0;
  4112. }
  4113. if ((meridiem === 'রাত' && hour >= 4) ||
  4114. (meridiem === 'দুপুর' && hour < 5) ||
  4115. meridiem === 'বিকাল') {
  4116. return hour + 12;
  4117. } else {
  4118. return hour;
  4119. }
  4120. },
  4121. meridiem : function (hour, minute, isLower) {
  4122. if (hour < 4) {
  4123. return 'রাত';
  4124. } else if (hour < 10) {
  4125. return 'সকাল';
  4126. } else if (hour < 17) {
  4127. return 'দুপুর';
  4128. } else if (hour < 20) {
  4129. return 'বিকাল';
  4130. } else {
  4131. return 'রাত';
  4132. }
  4133. },
  4134. week : {
  4135. dow : 0, // Sunday is the first day of the week.
  4136. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4137. }
  4138. });
  4139. //! moment.js locale configuration
  4140. //! locale : tibetan (bo)
  4141. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  4142. var bo__symbolMap = {
  4143. '1': '༡',
  4144. '2': '༢',
  4145. '3': '༣',
  4146. '4': '༤',
  4147. '5': '༥',
  4148. '6': '༦',
  4149. '7': '༧',
  4150. '8': '༨',
  4151. '9': '༩',
  4152. '0': '༠'
  4153. },
  4154. bo__numberMap = {
  4155. '༡': '1',
  4156. '༢': '2',
  4157. '༣': '3',
  4158. '༤': '4',
  4159. '༥': '5',
  4160. '༦': '6',
  4161. '༧': '7',
  4162. '༨': '8',
  4163. '༩': '9',
  4164. '༠': '0'
  4165. };
  4166. var bo = moment__default.defineLocale('bo', {
  4167. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4168. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4169. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  4170. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4171. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4172. longDateFormat : {
  4173. LT : 'A h:mm',
  4174. LTS : 'A h:mm:ss',
  4175. L : 'DD/MM/YYYY',
  4176. LL : 'D MMMM YYYY',
  4177. LLL : 'D MMMM YYYY, A h:mm',
  4178. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  4179. },
  4180. calendar : {
  4181. sameDay : '[དི་རིང] LT',
  4182. nextDay : '[སང་ཉིན] LT',
  4183. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  4184. lastDay : '[ཁ་སང] LT',
  4185. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  4186. sameElse : 'L'
  4187. },
  4188. relativeTime : {
  4189. future : '%s ལ་',
  4190. past : '%s སྔན་ལ',
  4191. s : 'ལམ་སང',
  4192. m : 'སྐར་མ་གཅིག',
  4193. mm : '%d སྐར་མ',
  4194. h : 'ཆུ་ཚོད་གཅིག',
  4195. hh : '%d ཆུ་ཚོད',
  4196. d : 'ཉིན་གཅིག',
  4197. dd : '%d ཉིན་',
  4198. M : 'ཟླ་བ་གཅིག',
  4199. MM : '%d ཟླ་བ',
  4200. y : 'ལོ་གཅིག',
  4201. yy : '%d ལོ'
  4202. },
  4203. preparse: function (string) {
  4204. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  4205. return bo__numberMap[match];
  4206. });
  4207. },
  4208. postformat: function (string) {
  4209. return string.replace(/\d/g, function (match) {
  4210. return bo__symbolMap[match];
  4211. });
  4212. },
  4213. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  4214. meridiemHour : function (hour, meridiem) {
  4215. if (hour === 12) {
  4216. hour = 0;
  4217. }
  4218. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  4219. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  4220. meridiem === 'དགོང་དག') {
  4221. return hour + 12;
  4222. } else {
  4223. return hour;
  4224. }
  4225. },
  4226. meridiem : function (hour, minute, isLower) {
  4227. if (hour < 4) {
  4228. return 'མཚན་མོ';
  4229. } else if (hour < 10) {
  4230. return 'ཞོགས་ཀས';
  4231. } else if (hour < 17) {
  4232. return 'ཉིན་གུང';
  4233. } else if (hour < 20) {
  4234. return 'དགོང་དག';
  4235. } else {
  4236. return 'མཚན་མོ';
  4237. }
  4238. },
  4239. week : {
  4240. dow : 0, // Sunday is the first day of the week.
  4241. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4242. }
  4243. });
  4244. //! moment.js locale configuration
  4245. //! locale : breton (br)
  4246. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  4247. function relativeTimeWithMutation(number, withoutSuffix, key) {
  4248. var format = {
  4249. 'mm': 'munutenn',
  4250. 'MM': 'miz',
  4251. 'dd': 'devezh'
  4252. };
  4253. return number + ' ' + mutation(format[key], number);
  4254. }
  4255. function specialMutationForYears(number) {
  4256. switch (lastNumber(number)) {
  4257. case 1:
  4258. case 3:
  4259. case 4:
  4260. case 5:
  4261. case 9:
  4262. return number + ' bloaz';
  4263. default:
  4264. return number + ' vloaz';
  4265. }
  4266. }
  4267. function lastNumber(number) {
  4268. if (number > 9) {
  4269. return lastNumber(number % 10);
  4270. }
  4271. return number;
  4272. }
  4273. function mutation(text, number) {
  4274. if (number === 2) {
  4275. return softMutation(text);
  4276. }
  4277. return text;
  4278. }
  4279. function softMutation(text) {
  4280. var mutationTable = {
  4281. 'm': 'v',
  4282. 'b': 'v',
  4283. 'd': 'z'
  4284. };
  4285. if (mutationTable[text.charAt(0)] === undefined) {
  4286. return text;
  4287. }
  4288. return mutationTable[text.charAt(0)] + text.substring(1);
  4289. }
  4290. var br = moment__default.defineLocale('br', {
  4291. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  4292. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  4293. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  4294. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  4295. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  4296. weekdaysParseExact : true,
  4297. longDateFormat : {
  4298. LT : 'h[e]mm A',
  4299. LTS : 'h[e]mm:ss A',
  4300. L : 'DD/MM/YYYY',
  4301. LL : 'D [a viz] MMMM YYYY',
  4302. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  4303. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  4304. },
  4305. calendar : {
  4306. sameDay : '[Hiziv da] LT',
  4307. nextDay : '[Warc\'hoazh da] LT',
  4308. nextWeek : 'dddd [da] LT',
  4309. lastDay : '[Dec\'h da] LT',
  4310. lastWeek : 'dddd [paset da] LT',
  4311. sameElse : 'L'
  4312. },
  4313. relativeTime : {
  4314. future : 'a-benn %s',
  4315. past : '%s \'zo',
  4316. s : 'un nebeud segondennoù',
  4317. m : 'ur vunutenn',
  4318. mm : relativeTimeWithMutation,
  4319. h : 'un eur',
  4320. hh : '%d eur',
  4321. d : 'un devezh',
  4322. dd : relativeTimeWithMutation,
  4323. M : 'ur miz',
  4324. MM : relativeTimeWithMutation,
  4325. y : 'ur bloaz',
  4326. yy : specialMutationForYears
  4327. },
  4328. ordinalParse: /\d{1,2}(añ|vet)/,
  4329. ordinal : function (number) {
  4330. var output = (number === 1) ? 'añ' : 'vet';
  4331. return number + output;
  4332. },
  4333. week : {
  4334. dow : 1, // Monday is the first day of the week.
  4335. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4336. }
  4337. });
  4338. //! moment.js locale configuration
  4339. //! locale : bosnian (bs)
  4340. //! author : Nedim Cholich : https://github.com/frontyard
  4341. //! based on (hr) translation by Bojan Marković
  4342. function bs__translate(number, withoutSuffix, key) {
  4343. var result = number + ' ';
  4344. switch (key) {
  4345. case 'm':
  4346. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  4347. case 'mm':
  4348. if (number === 1) {
  4349. result += 'minuta';
  4350. } else if (number === 2 || number === 3 || number === 4) {
  4351. result += 'minute';
  4352. } else {
  4353. result += 'minuta';
  4354. }
  4355. return result;
  4356. case 'h':
  4357. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  4358. case 'hh':
  4359. if (number === 1) {
  4360. result += 'sat';
  4361. } else if (number === 2 || number === 3 || number === 4) {
  4362. result += 'sata';
  4363. } else {
  4364. result += 'sati';
  4365. }
  4366. return result;
  4367. case 'dd':
  4368. if (number === 1) {
  4369. result += 'dan';
  4370. } else {
  4371. result += 'dana';
  4372. }
  4373. return result;
  4374. case 'MM':
  4375. if (number === 1) {
  4376. result += 'mjesec';
  4377. } else if (number === 2 || number === 3 || number === 4) {
  4378. result += 'mjeseca';
  4379. } else {
  4380. result += 'mjeseci';
  4381. }
  4382. return result;
  4383. case 'yy':
  4384. if (number === 1) {
  4385. result += 'godina';
  4386. } else if (number === 2 || number === 3 || number === 4) {
  4387. result += 'godine';
  4388. } else {
  4389. result += 'godina';
  4390. }
  4391. return result;
  4392. }
  4393. }
  4394. var bs = moment__default.defineLocale('bs', {
  4395. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  4396. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  4397. monthsParseExact: true,
  4398. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  4399. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  4400. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  4401. weekdaysParseExact : true,
  4402. longDateFormat : {
  4403. LT : 'H:mm',
  4404. LTS : 'H:mm:ss',
  4405. L : 'DD. MM. YYYY',
  4406. LL : 'D. MMMM YYYY',
  4407. LLL : 'D. MMMM YYYY H:mm',
  4408. LLLL : 'dddd, D. MMMM YYYY H:mm'
  4409. },
  4410. calendar : {
  4411. sameDay : '[danas u] LT',
  4412. nextDay : '[sutra u] LT',
  4413. nextWeek : function () {
  4414. switch (this.day()) {
  4415. case 0:
  4416. return '[u] [nedjelju] [u] LT';
  4417. case 3:
  4418. return '[u] [srijedu] [u] LT';
  4419. case 6:
  4420. return '[u] [subotu] [u] LT';
  4421. case 1:
  4422. case 2:
  4423. case 4:
  4424. case 5:
  4425. return '[u] dddd [u] LT';
  4426. }
  4427. },
  4428. lastDay : '[jučer u] LT',
  4429. lastWeek : function () {
  4430. switch (this.day()) {
  4431. case 0:
  4432. case 3:
  4433. return '[prošlu] dddd [u] LT';
  4434. case 6:
  4435. return '[prošle] [subote] [u] LT';
  4436. case 1:
  4437. case 2:
  4438. case 4:
  4439. case 5:
  4440. return '[prošli] dddd [u] LT';
  4441. }
  4442. },
  4443. sameElse : 'L'
  4444. },
  4445. relativeTime : {
  4446. future : 'za %s',
  4447. past : 'prije %s',
  4448. s : 'par sekundi',
  4449. m : bs__translate,
  4450. mm : bs__translate,
  4451. h : bs__translate,
  4452. hh : bs__translate,
  4453. d : 'dan',
  4454. dd : bs__translate,
  4455. M : 'mjesec',
  4456. MM : bs__translate,
  4457. y : 'godinu',
  4458. yy : bs__translate
  4459. },
  4460. ordinalParse: /\d{1,2}\./,
  4461. ordinal : '%d.',
  4462. week : {
  4463. dow : 1, // Monday is the first day of the week.
  4464. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4465. }
  4466. });
  4467. //! moment.js locale configuration
  4468. //! locale : catalan (ca)
  4469. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  4470. var ca = moment__default.defineLocale('ca', {
  4471. months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  4472. monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
  4473. monthsParseExact : true,
  4474. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  4475. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  4476. weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  4477. weekdaysParseExact : true,
  4478. longDateFormat : {
  4479. LT : 'H:mm',
  4480. LTS : 'H:mm:ss',
  4481. L : 'DD/MM/YYYY',
  4482. LL : 'D MMMM YYYY',
  4483. LLL : 'D MMMM YYYY H:mm',
  4484. LLLL : 'dddd D MMMM YYYY H:mm'
  4485. },
  4486. calendar : {
  4487. sameDay : function () {
  4488. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4489. },
  4490. nextDay : function () {
  4491. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4492. },
  4493. nextWeek : function () {
  4494. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4495. },
  4496. lastDay : function () {
  4497. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4498. },
  4499. lastWeek : function () {
  4500. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4501. },
  4502. sameElse : 'L'
  4503. },
  4504. relativeTime : {
  4505. future : 'en %s',
  4506. past : 'fa %s',
  4507. s : 'uns segons',
  4508. m : 'un minut',
  4509. mm : '%d minuts',
  4510. h : 'una hora',
  4511. hh : '%d hores',
  4512. d : 'un dia',
  4513. dd : '%d dies',
  4514. M : 'un mes',
  4515. MM : '%d mesos',
  4516. y : 'un any',
  4517. yy : '%d anys'
  4518. },
  4519. ordinalParse: /\d{1,2}(r|n|t|è|a)/,
  4520. ordinal : function (number, period) {
  4521. var output = (number === 1) ? 'r' :
  4522. (number === 2) ? 'n' :
  4523. (number === 3) ? 'r' :
  4524. (number === 4) ? 't' : 'è';
  4525. if (period === 'w' || period === 'W') {
  4526. output = 'a';
  4527. }
  4528. return number + output;
  4529. },
  4530. week : {
  4531. dow : 1, // Monday is the first day of the week.
  4532. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4533. }
  4534. });
  4535. //! moment.js locale configuration
  4536. //! locale : czech (cs)
  4537. //! author : petrbela : https://github.com/petrbela
  4538. var cs__months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  4539. cs__monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  4540. function cs__plural(n) {
  4541. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  4542. }
  4543. function cs__translate(number, withoutSuffix, key, isFuture) {
  4544. var result = number + ' ';
  4545. switch (key) {
  4546. case 's': // a few seconds / in a few seconds / a few seconds ago
  4547. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  4548. case 'm': // a minute / in a minute / a minute ago
  4549. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  4550. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  4551. if (withoutSuffix || isFuture) {
  4552. return result + (cs__plural(number) ? 'minuty' : 'minut');
  4553. } else {
  4554. return result + 'minutami';
  4555. }
  4556. break;
  4557. case 'h': // an hour / in an hour / an hour ago
  4558. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  4559. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  4560. if (withoutSuffix || isFuture) {
  4561. return result + (cs__plural(number) ? 'hodiny' : 'hodin');
  4562. } else {
  4563. return result + 'hodinami';
  4564. }
  4565. break;
  4566. case 'd': // a day / in a day / a day ago
  4567. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  4568. case 'dd': // 9 days / in 9 days / 9 days ago
  4569. if (withoutSuffix || isFuture) {
  4570. return result + (cs__plural(number) ? 'dny' : 'dní');
  4571. } else {
  4572. return result + 'dny';
  4573. }
  4574. break;
  4575. case 'M': // a month / in a month / a month ago
  4576. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  4577. case 'MM': // 9 months / in 9 months / 9 months ago
  4578. if (withoutSuffix || isFuture) {
  4579. return result + (cs__plural(number) ? 'měsíce' : 'měsíců');
  4580. } else {
  4581. return result + 'měsíci';
  4582. }
  4583. break;
  4584. case 'y': // a year / in a year / a year ago
  4585. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  4586. case 'yy': // 9 years / in 9 years / 9 years ago
  4587. if (withoutSuffix || isFuture) {
  4588. return result + (cs__plural(number) ? 'roky' : 'let');
  4589. } else {
  4590. return result + 'lety';
  4591. }
  4592. break;
  4593. }
  4594. }
  4595. var cs = moment__default.defineLocale('cs', {
  4596. months : cs__months,
  4597. monthsShort : cs__monthsShort,
  4598. monthsParse : (function (months, monthsShort) {
  4599. var i, _monthsParse = [];
  4600. for (i = 0; i < 12; i++) {
  4601. // use custom parser to solve problem with July (červenec)
  4602. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  4603. }
  4604. return _monthsParse;
  4605. }(cs__months, cs__monthsShort)),
  4606. shortMonthsParse : (function (monthsShort) {
  4607. var i, _shortMonthsParse = [];
  4608. for (i = 0; i < 12; i++) {
  4609. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  4610. }
  4611. return _shortMonthsParse;
  4612. }(cs__monthsShort)),
  4613. longMonthsParse : (function (months) {
  4614. var i, _longMonthsParse = [];
  4615. for (i = 0; i < 12; i++) {
  4616. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  4617. }
  4618. return _longMonthsParse;
  4619. }(cs__months)),
  4620. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  4621. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  4622. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  4623. longDateFormat : {
  4624. LT: 'H:mm',
  4625. LTS : 'H:mm:ss',
  4626. L : 'DD.MM.YYYY',
  4627. LL : 'D. MMMM YYYY',
  4628. LLL : 'D. MMMM YYYY H:mm',
  4629. LLLL : 'dddd D. MMMM YYYY H:mm'
  4630. },
  4631. calendar : {
  4632. sameDay: '[dnes v] LT',
  4633. nextDay: '[zítra v] LT',
  4634. nextWeek: function () {
  4635. switch (this.day()) {
  4636. case 0:
  4637. return '[v neděli v] LT';
  4638. case 1:
  4639. case 2:
  4640. return '[v] dddd [v] LT';
  4641. case 3:
  4642. return '[ve středu v] LT';
  4643. case 4:
  4644. return '[ve čtvrtek v] LT';
  4645. case 5:
  4646. return '[v pátek v] LT';
  4647. case 6:
  4648. return '[v sobotu v] LT';
  4649. }
  4650. },
  4651. lastDay: '[včera v] LT',
  4652. lastWeek: function () {
  4653. switch (this.day()) {
  4654. case 0:
  4655. return '[minulou neděli v] LT';
  4656. case 1:
  4657. case 2:
  4658. return '[minulé] dddd [v] LT';
  4659. case 3:
  4660. return '[minulou středu v] LT';
  4661. case 4:
  4662. case 5:
  4663. return '[minulý] dddd [v] LT';
  4664. case 6:
  4665. return '[minulou sobotu v] LT';
  4666. }
  4667. },
  4668. sameElse: 'L'
  4669. },
  4670. relativeTime : {
  4671. future : 'za %s',
  4672. past : 'před %s',
  4673. s : cs__translate,
  4674. m : cs__translate,
  4675. mm : cs__translate,
  4676. h : cs__translate,
  4677. hh : cs__translate,
  4678. d : cs__translate,
  4679. dd : cs__translate,
  4680. M : cs__translate,
  4681. MM : cs__translate,
  4682. y : cs__translate,
  4683. yy : cs__translate
  4684. },
  4685. ordinalParse : /\d{1,2}\./,
  4686. ordinal : '%d.',
  4687. week : {
  4688. dow : 1, // Monday is the first day of the week.
  4689. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4690. }
  4691. });
  4692. //! moment.js locale configuration
  4693. //! locale : chuvash (cv)
  4694. //! author : Anatoly Mironov : https://github.com/mirontoli
  4695. var cv = moment__default.defineLocale('cv', {
  4696. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  4697. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  4698. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  4699. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  4700. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  4701. longDateFormat : {
  4702. LT : 'HH:mm',
  4703. LTS : 'HH:mm:ss',
  4704. L : 'DD-MM-YYYY',
  4705. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  4706. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  4707. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  4708. },
  4709. calendar : {
  4710. sameDay: '[Паян] LT [сехетре]',
  4711. nextDay: '[Ыран] LT [сехетре]',
  4712. lastDay: '[Ӗнер] LT [сехетре]',
  4713. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  4714. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  4715. sameElse: 'L'
  4716. },
  4717. relativeTime : {
  4718. future : function (output) {
  4719. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  4720. return output + affix;
  4721. },
  4722. past : '%s каялла',
  4723. s : 'пӗр-ик ҫеккунт',
  4724. m : 'пӗр минут',
  4725. mm : '%d минут',
  4726. h : 'пӗр сехет',
  4727. hh : '%d сехет',
  4728. d : 'пӗр кун',
  4729. dd : '%d кун',
  4730. M : 'пӗр уйӑх',
  4731. MM : '%d уйӑх',
  4732. y : 'пӗр ҫул',
  4733. yy : '%d ҫул'
  4734. },
  4735. ordinalParse: /\d{1,2}-мӗш/,
  4736. ordinal : '%d-мӗш',
  4737. week : {
  4738. dow : 1, // Monday is the first day of the week.
  4739. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4740. }
  4741. });
  4742. //! moment.js locale configuration
  4743. //! locale : Welsh (cy)
  4744. //! author : Robert Allen
  4745. var cy = moment__default.defineLocale('cy', {
  4746. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  4747. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  4748. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  4749. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  4750. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  4751. weekdaysParseExact : true,
  4752. // time formats are the same as en-gb
  4753. longDateFormat: {
  4754. LT: 'HH:mm',
  4755. LTS : 'HH:mm:ss',
  4756. L: 'DD/MM/YYYY',
  4757. LL: 'D MMMM YYYY',
  4758. LLL: 'D MMMM YYYY HH:mm',
  4759. LLLL: 'dddd, D MMMM YYYY HH:mm'
  4760. },
  4761. calendar: {
  4762. sameDay: '[Heddiw am] LT',
  4763. nextDay: '[Yfory am] LT',
  4764. nextWeek: 'dddd [am] LT',
  4765. lastDay: '[Ddoe am] LT',
  4766. lastWeek: 'dddd [diwethaf am] LT',
  4767. sameElse: 'L'
  4768. },
  4769. relativeTime: {
  4770. future: 'mewn %s',
  4771. past: '%s yn ôl',
  4772. s: 'ychydig eiliadau',
  4773. m: 'munud',
  4774. mm: '%d munud',
  4775. h: 'awr',
  4776. hh: '%d awr',
  4777. d: 'diwrnod',
  4778. dd: '%d diwrnod',
  4779. M: 'mis',
  4780. MM: '%d mis',
  4781. y: 'blwyddyn',
  4782. yy: '%d flynedd'
  4783. },
  4784. ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  4785. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  4786. ordinal: function (number) {
  4787. var b = number,
  4788. output = '',
  4789. lookup = [
  4790. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  4791. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  4792. ];
  4793. if (b > 20) {
  4794. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  4795. output = 'fed'; // not 30ain, 70ain or 90ain
  4796. } else {
  4797. output = 'ain';
  4798. }
  4799. } else if (b > 0) {
  4800. output = lookup[b];
  4801. }
  4802. return number + output;
  4803. },
  4804. week : {
  4805. dow : 1, // Monday is the first day of the week.
  4806. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4807. }
  4808. });
  4809. //! moment.js locale configuration
  4810. //! locale : danish (da)
  4811. //! author : Ulrik Nielsen : https://github.com/mrbase
  4812. var da = moment__default.defineLocale('da', {
  4813. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  4814. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  4815. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  4816. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  4817. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  4818. longDateFormat : {
  4819. LT : 'HH:mm',
  4820. LTS : 'HH:mm:ss',
  4821. L : 'DD/MM/YYYY',
  4822. LL : 'D. MMMM YYYY',
  4823. LLL : 'D. MMMM YYYY HH:mm',
  4824. LLLL : 'dddd [d.] D. MMMM YYYY HH:mm'
  4825. },
  4826. calendar : {
  4827. sameDay : '[I dag kl.] LT',
  4828. nextDay : '[I morgen kl.] LT',
  4829. nextWeek : 'dddd [kl.] LT',
  4830. lastDay : '[I går kl.] LT',
  4831. lastWeek : '[sidste] dddd [kl] LT',
  4832. sameElse : 'L'
  4833. },
  4834. relativeTime : {
  4835. future : 'om %s',
  4836. past : '%s siden',
  4837. s : 'få sekunder',
  4838. m : 'et minut',
  4839. mm : '%d minutter',
  4840. h : 'en time',
  4841. hh : '%d timer',
  4842. d : 'en dag',
  4843. dd : '%d dage',
  4844. M : 'en måned',
  4845. MM : '%d måneder',
  4846. y : 'et år',
  4847. yy : '%d år'
  4848. },
  4849. ordinalParse: /\d{1,2}\./,
  4850. ordinal : '%d.',
  4851. week : {
  4852. dow : 1, // Monday is the first day of the week.
  4853. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4854. }
  4855. });
  4856. //! moment.js locale configuration
  4857. //! locale : austrian german (de-at)
  4858. //! author : lluchs : https://github.com/lluchs
  4859. //! author: Menelion Elensúle: https://github.com/Oire
  4860. //! author : Martin Groller : https://github.com/MadMG
  4861. //! author : Mikolaj Dadela : https://github.com/mik01aj
  4862. function de_at__processRelativeTime(number, withoutSuffix, key, isFuture) {
  4863. var format = {
  4864. 'm': ['eine Minute', 'einer Minute'],
  4865. 'h': ['eine Stunde', 'einer Stunde'],
  4866. 'd': ['ein Tag', 'einem Tag'],
  4867. 'dd': [number + ' Tage', number + ' Tagen'],
  4868. 'M': ['ein Monat', 'einem Monat'],
  4869. 'MM': [number + ' Monate', number + ' Monaten'],
  4870. 'y': ['ein Jahr', 'einem Jahr'],
  4871. 'yy': [number + ' Jahre', number + ' Jahren']
  4872. };
  4873. return withoutSuffix ? format[key][0] : format[key][1];
  4874. }
  4875. var de_at = moment__default.defineLocale('de-at', {
  4876. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  4877. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  4878. monthsParseExact : true,
  4879. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  4880. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  4881. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  4882. weekdaysParseExact : true,
  4883. longDateFormat : {
  4884. LT: 'HH:mm',
  4885. LTS: 'HH:mm:ss',
  4886. L : 'DD.MM.YYYY',
  4887. LL : 'D. MMMM YYYY',
  4888. LLL : 'D. MMMM YYYY HH:mm',
  4889. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  4890. },
  4891. calendar : {
  4892. sameDay: '[heute um] LT [Uhr]',
  4893. sameElse: 'L',
  4894. nextDay: '[morgen um] LT [Uhr]',
  4895. nextWeek: 'dddd [um] LT [Uhr]',
  4896. lastDay: '[gestern um] LT [Uhr]',
  4897. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  4898. },
  4899. relativeTime : {
  4900. future : 'in %s',
  4901. past : 'vor %s',
  4902. s : 'ein paar Sekunden',
  4903. m : de_at__processRelativeTime,
  4904. mm : '%d Minuten',
  4905. h : de_at__processRelativeTime,
  4906. hh : '%d Stunden',
  4907. d : de_at__processRelativeTime,
  4908. dd : de_at__processRelativeTime,
  4909. M : de_at__processRelativeTime,
  4910. MM : de_at__processRelativeTime,
  4911. y : de_at__processRelativeTime,
  4912. yy : de_at__processRelativeTime
  4913. },
  4914. ordinalParse: /\d{1,2}\./,
  4915. ordinal : '%d.',
  4916. week : {
  4917. dow : 1, // Monday is the first day of the week.
  4918. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4919. }
  4920. });
  4921. //! moment.js locale configuration
  4922. //! locale : german (de)
  4923. //! author : lluchs : https://github.com/lluchs
  4924. //! author: Menelion Elensúle: https://github.com/Oire
  4925. //! author : Mikolaj Dadela : https://github.com/mik01aj
  4926. function de__processRelativeTime(number, withoutSuffix, key, isFuture) {
  4927. var format = {
  4928. 'm': ['eine Minute', 'einer Minute'],
  4929. 'h': ['eine Stunde', 'einer Stunde'],
  4930. 'd': ['ein Tag', 'einem Tag'],
  4931. 'dd': [number + ' Tage', number + ' Tagen'],
  4932. 'M': ['ein Monat', 'einem Monat'],
  4933. 'MM': [number + ' Monate', number + ' Monaten'],
  4934. 'y': ['ein Jahr', 'einem Jahr'],
  4935. 'yy': [number + ' Jahre', number + ' Jahren']
  4936. };
  4937. return withoutSuffix ? format[key][0] : format[key][1];
  4938. }
  4939. var de = moment__default.defineLocale('de', {
  4940. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  4941. monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  4942. monthsParseExact : true,
  4943. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  4944. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  4945. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  4946. weekdaysParseExact : true,
  4947. longDateFormat : {
  4948. LT: 'HH:mm',
  4949. LTS: 'HH:mm:ss',
  4950. L : 'DD.MM.YYYY',
  4951. LL : 'D. MMMM YYYY',
  4952. LLL : 'D. MMMM YYYY HH:mm',
  4953. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  4954. },
  4955. calendar : {
  4956. sameDay: '[heute um] LT [Uhr]',
  4957. sameElse: 'L',
  4958. nextDay: '[morgen um] LT [Uhr]',
  4959. nextWeek: 'dddd [um] LT [Uhr]',
  4960. lastDay: '[gestern um] LT [Uhr]',
  4961. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  4962. },
  4963. relativeTime : {
  4964. future : 'in %s',
  4965. past : 'vor %s',
  4966. s : 'ein paar Sekunden',
  4967. m : de__processRelativeTime,
  4968. mm : '%d Minuten',
  4969. h : de__processRelativeTime,
  4970. hh : '%d Stunden',
  4971. d : de__processRelativeTime,
  4972. dd : de__processRelativeTime,
  4973. M : de__processRelativeTime,
  4974. MM : de__processRelativeTime,
  4975. y : de__processRelativeTime,
  4976. yy : de__processRelativeTime
  4977. },
  4978. ordinalParse: /\d{1,2}\./,
  4979. ordinal : '%d.',
  4980. week : {
  4981. dow : 1, // Monday is the first day of the week.
  4982. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4983. }
  4984. });
  4985. //! moment.js locale configuration
  4986. //! locale : dhivehi (dv)
  4987. //! author : Jawish Hameed : https://github.com/jawish
  4988. var dv__months = [
  4989. 'ޖެނުއަރީ',
  4990. 'ފެބްރުއަރީ',
  4991. 'މާރިޗު',
  4992. 'އޭޕްރީލު',
  4993. 'މޭ',
  4994. 'ޖޫން',
  4995. 'ޖުލައި',
  4996. 'އޯގަސްޓު',
  4997. 'ސެޕްޓެމްބަރު',
  4998. 'އޮކްޓޯބަރު',
  4999. 'ނޮވެމްބަރު',
  5000. 'ޑިސެމްބަރު'
  5001. ], dv__weekdays = [
  5002. 'އާދިއްތަ',
  5003. 'ހޯމަ',
  5004. 'އަންގާރަ',
  5005. 'ބުދަ',
  5006. 'ބުރާސްފަތި',
  5007. 'ހުކުރު',
  5008. 'ހޮނިހިރު'
  5009. ];
  5010. var dv = moment__default.defineLocale('dv', {
  5011. months : dv__months,
  5012. monthsShort : dv__months,
  5013. weekdays : dv__weekdays,
  5014. weekdaysShort : dv__weekdays,
  5015. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  5016. longDateFormat : {
  5017. LT : 'HH:mm',
  5018. LTS : 'HH:mm:ss',
  5019. L : 'D/M/YYYY',
  5020. LL : 'D MMMM YYYY',
  5021. LLL : 'D MMMM YYYY HH:mm',
  5022. LLLL : 'dddd D MMMM YYYY HH:mm'
  5023. },
  5024. meridiemParse: /މކ|މފ/,
  5025. isPM : function (input) {
  5026. return 'މފ' === input;
  5027. },
  5028. meridiem : function (hour, minute, isLower) {
  5029. if (hour < 12) {
  5030. return 'މކ';
  5031. } else {
  5032. return 'މފ';
  5033. }
  5034. },
  5035. calendar : {
  5036. sameDay : '[މިއަދު] LT',
  5037. nextDay : '[މާދަމާ] LT',
  5038. nextWeek : 'dddd LT',
  5039. lastDay : '[އިއްޔެ] LT',
  5040. lastWeek : '[ފާއިތުވި] dddd LT',
  5041. sameElse : 'L'
  5042. },
  5043. relativeTime : {
  5044. future : 'ތެރޭގައި %s',
  5045. past : 'ކުރިން %s',
  5046. s : 'ސިކުންތުކޮޅެއް',
  5047. m : 'މިނިޓެއް',
  5048. mm : 'މިނިޓު %d',
  5049. h : 'ގަޑިއިރެއް',
  5050. hh : 'ގަޑިއިރު %d',
  5051. d : 'ދުވަހެއް',
  5052. dd : 'ދުވަސް %d',
  5053. M : 'މަހެއް',
  5054. MM : 'މަސް %d',
  5055. y : 'އަހަރެއް',
  5056. yy : 'އަހަރު %d'
  5057. },
  5058. preparse: function (string) {
  5059. return string.replace(/،/g, ',');
  5060. },
  5061. postformat: function (string) {
  5062. return string.replace(/,/g, '،');
  5063. },
  5064. week : {
  5065. dow : 7, // Sunday is the first day of the week.
  5066. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5067. }
  5068. });
  5069. //! moment.js locale configuration
  5070. //! locale : modern greek (el)
  5071. //! author : Aggelos Karalias : https://github.com/mehiel
  5072. var el = moment__default.defineLocale('el', {
  5073. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  5074. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  5075. months : function (momentToFormat, format) {
  5076. if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  5077. return this._monthsGenitiveEl[momentToFormat.month()];
  5078. } else {
  5079. return this._monthsNominativeEl[momentToFormat.month()];
  5080. }
  5081. },
  5082. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  5083. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  5084. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  5085. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  5086. meridiem : function (hours, minutes, isLower) {
  5087. if (hours > 11) {
  5088. return isLower ? 'μμ' : 'ΜΜ';
  5089. } else {
  5090. return isLower ? 'πμ' : 'ΠΜ';
  5091. }
  5092. },
  5093. isPM : function (input) {
  5094. return ((input + '').toLowerCase()[0] === 'μ');
  5095. },
  5096. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  5097. longDateFormat : {
  5098. LT : 'h:mm A',
  5099. LTS : 'h:mm:ss A',
  5100. L : 'DD/MM/YYYY',
  5101. LL : 'D MMMM YYYY',
  5102. LLL : 'D MMMM YYYY h:mm A',
  5103. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5104. },
  5105. calendarEl : {
  5106. sameDay : '[Σήμερα {}] LT',
  5107. nextDay : '[Αύριο {}] LT',
  5108. nextWeek : 'dddd [{}] LT',
  5109. lastDay : '[Χθες {}] LT',
  5110. lastWeek : function () {
  5111. switch (this.day()) {
  5112. case 6:
  5113. return '[το προηγούμενο] dddd [{}] LT';
  5114. default:
  5115. return '[την προηγούμενη] dddd [{}] LT';
  5116. }
  5117. },
  5118. sameElse : 'L'
  5119. },
  5120. calendar : function (key, mom) {
  5121. var output = this._calendarEl[key],
  5122. hours = mom && mom.hours();
  5123. if (isFunction(output)) {
  5124. output = output.apply(mom);
  5125. }
  5126. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  5127. },
  5128. relativeTime : {
  5129. future : 'σε %s',
  5130. past : '%s πριν',
  5131. s : 'λίγα δευτερόλεπτα',
  5132. m : 'ένα λεπτό',
  5133. mm : '%d λεπτά',
  5134. h : 'μία ώρα',
  5135. hh : '%d ώρες',
  5136. d : 'μία μέρα',
  5137. dd : '%d μέρες',
  5138. M : 'ένας μήνας',
  5139. MM : '%d μήνες',
  5140. y : 'ένας χρόνος',
  5141. yy : '%d χρόνια'
  5142. },
  5143. ordinalParse: /\d{1,2}η/,
  5144. ordinal: '%dη',
  5145. week : {
  5146. dow : 1, // Monday is the first day of the week.
  5147. doy : 4 // The week that contains Jan 4st is the first week of the year.
  5148. }
  5149. });
  5150. //! moment.js locale configuration
  5151. //! locale : australian english (en-au)
  5152. var en_au = moment__default.defineLocale('en-au', {
  5153. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5154. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5155. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5156. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5157. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5158. longDateFormat : {
  5159. LT : 'h:mm A',
  5160. LTS : 'h:mm:ss A',
  5161. L : 'DD/MM/YYYY',
  5162. LL : 'D MMMM YYYY',
  5163. LLL : 'D MMMM YYYY h:mm A',
  5164. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5165. },
  5166. calendar : {
  5167. sameDay : '[Today at] LT',
  5168. nextDay : '[Tomorrow at] LT',
  5169. nextWeek : 'dddd [at] LT',
  5170. lastDay : '[Yesterday at] LT',
  5171. lastWeek : '[Last] dddd [at] LT',
  5172. sameElse : 'L'
  5173. },
  5174. relativeTime : {
  5175. future : 'in %s',
  5176. past : '%s ago',
  5177. s : 'a few seconds',
  5178. m : 'a minute',
  5179. mm : '%d minutes',
  5180. h : 'an hour',
  5181. hh : '%d hours',
  5182. d : 'a day',
  5183. dd : '%d days',
  5184. M : 'a month',
  5185. MM : '%d months',
  5186. y : 'a year',
  5187. yy : '%d years'
  5188. },
  5189. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5190. ordinal : function (number) {
  5191. var b = number % 10,
  5192. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5193. (b === 1) ? 'st' :
  5194. (b === 2) ? 'nd' :
  5195. (b === 3) ? 'rd' : 'th';
  5196. return number + output;
  5197. },
  5198. week : {
  5199. dow : 1, // Monday is the first day of the week.
  5200. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5201. }
  5202. });
  5203. //! moment.js locale configuration
  5204. //! locale : canadian english (en-ca)
  5205. //! author : Jonathan Abourbih : https://github.com/jonbca
  5206. var en_ca = moment__default.defineLocale('en-ca', {
  5207. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5208. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5209. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5210. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5211. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5212. longDateFormat : {
  5213. LT : 'h:mm A',
  5214. LTS : 'h:mm:ss A',
  5215. L : 'YYYY-MM-DD',
  5216. LL : 'MMMM D, YYYY',
  5217. LLL : 'MMMM D, YYYY h:mm A',
  5218. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  5219. },
  5220. calendar : {
  5221. sameDay : '[Today at] LT',
  5222. nextDay : '[Tomorrow at] LT',
  5223. nextWeek : 'dddd [at] LT',
  5224. lastDay : '[Yesterday at] LT',
  5225. lastWeek : '[Last] dddd [at] LT',
  5226. sameElse : 'L'
  5227. },
  5228. relativeTime : {
  5229. future : 'in %s',
  5230. past : '%s ago',
  5231. s : 'a few seconds',
  5232. m : 'a minute',
  5233. mm : '%d minutes',
  5234. h : 'an hour',
  5235. hh : '%d hours',
  5236. d : 'a day',
  5237. dd : '%d days',
  5238. M : 'a month',
  5239. MM : '%d months',
  5240. y : 'a year',
  5241. yy : '%d years'
  5242. },
  5243. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5244. ordinal : function (number) {
  5245. var b = number % 10,
  5246. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5247. (b === 1) ? 'st' :
  5248. (b === 2) ? 'nd' :
  5249. (b === 3) ? 'rd' : 'th';
  5250. return number + output;
  5251. }
  5252. });
  5253. //! moment.js locale configuration
  5254. //! locale : great britain english (en-gb)
  5255. //! author : Chris Gedrim : https://github.com/chrisgedrim
  5256. var en_gb = moment__default.defineLocale('en-gb', {
  5257. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5258. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5259. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5260. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5261. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5262. longDateFormat : {
  5263. LT : 'HH:mm',
  5264. LTS : 'HH:mm:ss',
  5265. L : 'DD/MM/YYYY',
  5266. LL : 'D MMMM YYYY',
  5267. LLL : 'D MMMM YYYY HH:mm',
  5268. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5269. },
  5270. calendar : {
  5271. sameDay : '[Today at] LT',
  5272. nextDay : '[Tomorrow at] LT',
  5273. nextWeek : 'dddd [at] LT',
  5274. lastDay : '[Yesterday at] LT',
  5275. lastWeek : '[Last] dddd [at] LT',
  5276. sameElse : 'L'
  5277. },
  5278. relativeTime : {
  5279. future : 'in %s',
  5280. past : '%s ago',
  5281. s : 'a few seconds',
  5282. m : 'a minute',
  5283. mm : '%d minutes',
  5284. h : 'an hour',
  5285. hh : '%d hours',
  5286. d : 'a day',
  5287. dd : '%d days',
  5288. M : 'a month',
  5289. MM : '%d months',
  5290. y : 'a year',
  5291. yy : '%d years'
  5292. },
  5293. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5294. ordinal : function (number) {
  5295. var b = number % 10,
  5296. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5297. (b === 1) ? 'st' :
  5298. (b === 2) ? 'nd' :
  5299. (b === 3) ? 'rd' : 'th';
  5300. return number + output;
  5301. },
  5302. week : {
  5303. dow : 1, // Monday is the first day of the week.
  5304. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5305. }
  5306. });
  5307. //! moment.js locale configuration
  5308. //! locale : Irish english (en-ie)
  5309. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  5310. var en_ie = moment__default.defineLocale('en-ie', {
  5311. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5312. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5313. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5314. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5315. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5316. longDateFormat : {
  5317. LT : 'HH:mm',
  5318. LTS : 'HH:mm:ss',
  5319. L : 'DD-MM-YYYY',
  5320. LL : 'D MMMM YYYY',
  5321. LLL : 'D MMMM YYYY HH:mm',
  5322. LLLL : 'dddd D MMMM YYYY HH:mm'
  5323. },
  5324. calendar : {
  5325. sameDay : '[Today at] LT',
  5326. nextDay : '[Tomorrow at] LT',
  5327. nextWeek : 'dddd [at] LT',
  5328. lastDay : '[Yesterday at] LT',
  5329. lastWeek : '[Last] dddd [at] LT',
  5330. sameElse : 'L'
  5331. },
  5332. relativeTime : {
  5333. future : 'in %s',
  5334. past : '%s ago',
  5335. s : 'a few seconds',
  5336. m : 'a minute',
  5337. mm : '%d minutes',
  5338. h : 'an hour',
  5339. hh : '%d hours',
  5340. d : 'a day',
  5341. dd : '%d days',
  5342. M : 'a month',
  5343. MM : '%d months',
  5344. y : 'a year',
  5345. yy : '%d years'
  5346. },
  5347. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5348. ordinal : function (number) {
  5349. var b = number % 10,
  5350. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5351. (b === 1) ? 'st' :
  5352. (b === 2) ? 'nd' :
  5353. (b === 3) ? 'rd' : 'th';
  5354. return number + output;
  5355. },
  5356. week : {
  5357. dow : 1, // Monday is the first day of the week.
  5358. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5359. }
  5360. });
  5361. //! moment.js locale configuration
  5362. //! locale : New Zealand english (en-nz)
  5363. var en_nz = moment__default.defineLocale('en-nz', {
  5364. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5365. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5366. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5367. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5368. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5369. longDateFormat : {
  5370. LT : 'h:mm A',
  5371. LTS : 'h:mm:ss A',
  5372. L : 'DD/MM/YYYY',
  5373. LL : 'D MMMM YYYY',
  5374. LLL : 'D MMMM YYYY h:mm A',
  5375. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5376. },
  5377. calendar : {
  5378. sameDay : '[Today at] LT',
  5379. nextDay : '[Tomorrow at] LT',
  5380. nextWeek : 'dddd [at] LT',
  5381. lastDay : '[Yesterday at] LT',
  5382. lastWeek : '[Last] dddd [at] LT',
  5383. sameElse : 'L'
  5384. },
  5385. relativeTime : {
  5386. future : 'in %s',
  5387. past : '%s ago',
  5388. s : 'a few seconds',
  5389. m : 'a minute',
  5390. mm : '%d minutes',
  5391. h : 'an hour',
  5392. hh : '%d hours',
  5393. d : 'a day',
  5394. dd : '%d days',
  5395. M : 'a month',
  5396. MM : '%d months',
  5397. y : 'a year',
  5398. yy : '%d years'
  5399. },
  5400. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5401. ordinal : function (number) {
  5402. var b = number % 10,
  5403. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5404. (b === 1) ? 'st' :
  5405. (b === 2) ? 'nd' :
  5406. (b === 3) ? 'rd' : 'th';
  5407. return number + output;
  5408. },
  5409. week : {
  5410. dow : 1, // Monday is the first day of the week.
  5411. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5412. }
  5413. });
  5414. //! moment.js locale configuration
  5415. //! locale : esperanto (eo)
  5416. //! author : Colin Dean : https://github.com/colindean
  5417. //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
  5418. //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
  5419. var eo = moment__default.defineLocale('eo', {
  5420. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  5421. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  5422. weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
  5423. weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
  5424. weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
  5425. longDateFormat : {
  5426. LT : 'HH:mm',
  5427. LTS : 'HH:mm:ss',
  5428. L : 'YYYY-MM-DD',
  5429. LL : 'D[-an de] MMMM, YYYY',
  5430. LLL : 'D[-an de] MMMM, YYYY HH:mm',
  5431. LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
  5432. },
  5433. meridiemParse: /[ap]\.t\.m/i,
  5434. isPM: function (input) {
  5435. return input.charAt(0).toLowerCase() === 'p';
  5436. },
  5437. meridiem : function (hours, minutes, isLower) {
  5438. if (hours > 11) {
  5439. return isLower ? 'p.t.m.' : 'P.T.M.';
  5440. } else {
  5441. return isLower ? 'a.t.m.' : 'A.T.M.';
  5442. }
  5443. },
  5444. calendar : {
  5445. sameDay : '[Hodiaŭ je] LT',
  5446. nextDay : '[Morgaŭ je] LT',
  5447. nextWeek : 'dddd [je] LT',
  5448. lastDay : '[Hieraŭ je] LT',
  5449. lastWeek : '[pasinta] dddd [je] LT',
  5450. sameElse : 'L'
  5451. },
  5452. relativeTime : {
  5453. future : 'je %s',
  5454. past : 'antaŭ %s',
  5455. s : 'sekundoj',
  5456. m : 'minuto',
  5457. mm : '%d minutoj',
  5458. h : 'horo',
  5459. hh : '%d horoj',
  5460. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  5461. dd : '%d tagoj',
  5462. M : 'monato',
  5463. MM : '%d monatoj',
  5464. y : 'jaro',
  5465. yy : '%d jaroj'
  5466. },
  5467. ordinalParse: /\d{1,2}a/,
  5468. ordinal : '%da',
  5469. week : {
  5470. dow : 1, // Monday is the first day of the week.
  5471. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5472. }
  5473. });
  5474. //! moment.js locale configuration
  5475. //! locale : spanish (es)
  5476. //! author : Julio Napurí : https://github.com/julionc
  5477. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  5478. es__monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  5479. var es = moment__default.defineLocale('es', {
  5480. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  5481. monthsShort : function (m, format) {
  5482. if (/-MMM-/.test(format)) {
  5483. return es__monthsShort[m.month()];
  5484. } else {
  5485. return monthsShortDot[m.month()];
  5486. }
  5487. },
  5488. monthsParseExact : true,
  5489. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  5490. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  5491. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  5492. weekdaysParseExact : true,
  5493. longDateFormat : {
  5494. LT : 'H:mm',
  5495. LTS : 'H:mm:ss',
  5496. L : 'DD/MM/YYYY',
  5497. LL : 'D [de] MMMM [de] YYYY',
  5498. LLL : 'D [de] MMMM [de] YYYY H:mm',
  5499. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  5500. },
  5501. calendar : {
  5502. sameDay : function () {
  5503. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5504. },
  5505. nextDay : function () {
  5506. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5507. },
  5508. nextWeek : function () {
  5509. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5510. },
  5511. lastDay : function () {
  5512. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5513. },
  5514. lastWeek : function () {
  5515. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5516. },
  5517. sameElse : 'L'
  5518. },
  5519. relativeTime : {
  5520. future : 'en %s',
  5521. past : 'hace %s',
  5522. s : 'unos segundos',
  5523. m : 'un minuto',
  5524. mm : '%d minutos',
  5525. h : 'una hora',
  5526. hh : '%d horas',
  5527. d : 'un día',
  5528. dd : '%d días',
  5529. M : 'un mes',
  5530. MM : '%d meses',
  5531. y : 'un año',
  5532. yy : '%d años'
  5533. },
  5534. ordinalParse : /\d{1,2}º/,
  5535. ordinal : '%dº',
  5536. week : {
  5537. dow : 1, // Monday is the first day of the week.
  5538. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5539. }
  5540. });
  5541. //! moment.js locale configuration
  5542. //! locale : estonian (et)
  5543. //! author : Henry Kehlmann : https://github.com/madhenry
  5544. //! improvements : Illimar Tambek : https://github.com/ragulka
  5545. function et__processRelativeTime(number, withoutSuffix, key, isFuture) {
  5546. var format = {
  5547. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  5548. 'm' : ['ühe minuti', 'üks minut'],
  5549. 'mm': [number + ' minuti', number + ' minutit'],
  5550. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  5551. 'hh': [number + ' tunni', number + ' tundi'],
  5552. 'd' : ['ühe päeva', 'üks päev'],
  5553. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  5554. 'MM': [number + ' kuu', number + ' kuud'],
  5555. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  5556. 'yy': [number + ' aasta', number + ' aastat']
  5557. };
  5558. if (withoutSuffix) {
  5559. return format[key][2] ? format[key][2] : format[key][1];
  5560. }
  5561. return isFuture ? format[key][0] : format[key][1];
  5562. }
  5563. var et = moment__default.defineLocale('et', {
  5564. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  5565. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  5566. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  5567. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  5568. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  5569. longDateFormat : {
  5570. LT : 'H:mm',
  5571. LTS : 'H:mm:ss',
  5572. L : 'DD.MM.YYYY',
  5573. LL : 'D. MMMM YYYY',
  5574. LLL : 'D. MMMM YYYY H:mm',
  5575. LLLL : 'dddd, D. MMMM YYYY H:mm'
  5576. },
  5577. calendar : {
  5578. sameDay : '[Täna,] LT',
  5579. nextDay : '[Homme,] LT',
  5580. nextWeek : '[Järgmine] dddd LT',
  5581. lastDay : '[Eile,] LT',
  5582. lastWeek : '[Eelmine] dddd LT',
  5583. sameElse : 'L'
  5584. },
  5585. relativeTime : {
  5586. future : '%s pärast',
  5587. past : '%s tagasi',
  5588. s : et__processRelativeTime,
  5589. m : et__processRelativeTime,
  5590. mm : et__processRelativeTime,
  5591. h : et__processRelativeTime,
  5592. hh : et__processRelativeTime,
  5593. d : et__processRelativeTime,
  5594. dd : '%d päeva',
  5595. M : et__processRelativeTime,
  5596. MM : et__processRelativeTime,
  5597. y : et__processRelativeTime,
  5598. yy : et__processRelativeTime
  5599. },
  5600. ordinalParse: /\d{1,2}\./,
  5601. ordinal : '%d.',
  5602. week : {
  5603. dow : 1, // Monday is the first day of the week.
  5604. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5605. }
  5606. });
  5607. //! moment.js locale configuration
  5608. //! locale : euskara (eu)
  5609. //! author : Eneko Illarramendi : https://github.com/eillarra
  5610. var eu = moment__default.defineLocale('eu', {
  5611. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  5612. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  5613. monthsParseExact : true,
  5614. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  5615. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  5616. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  5617. weekdaysParseExact : true,
  5618. longDateFormat : {
  5619. LT : 'HH:mm',
  5620. LTS : 'HH:mm:ss',
  5621. L : 'YYYY-MM-DD',
  5622. LL : 'YYYY[ko] MMMM[ren] D[a]',
  5623. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  5624. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  5625. l : 'YYYY-M-D',
  5626. ll : 'YYYY[ko] MMM D[a]',
  5627. lll : 'YYYY[ko] MMM D[a] HH:mm',
  5628. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  5629. },
  5630. calendar : {
  5631. sameDay : '[gaur] LT[etan]',
  5632. nextDay : '[bihar] LT[etan]',
  5633. nextWeek : 'dddd LT[etan]',
  5634. lastDay : '[atzo] LT[etan]',
  5635. lastWeek : '[aurreko] dddd LT[etan]',
  5636. sameElse : 'L'
  5637. },
  5638. relativeTime : {
  5639. future : '%s barru',
  5640. past : 'duela %s',
  5641. s : 'segundo batzuk',
  5642. m : 'minutu bat',
  5643. mm : '%d minutu',
  5644. h : 'ordu bat',
  5645. hh : '%d ordu',
  5646. d : 'egun bat',
  5647. dd : '%d egun',
  5648. M : 'hilabete bat',
  5649. MM : '%d hilabete',
  5650. y : 'urte bat',
  5651. yy : '%d urte'
  5652. },
  5653. ordinalParse: /\d{1,2}\./,
  5654. ordinal : '%d.',
  5655. week : {
  5656. dow : 1, // Monday is the first day of the week.
  5657. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5658. }
  5659. });
  5660. //! moment.js locale configuration
  5661. //! locale : Persian (fa)
  5662. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  5663. var fa__symbolMap = {
  5664. '1': '۱',
  5665. '2': '۲',
  5666. '3': '۳',
  5667. '4': '۴',
  5668. '5': '۵',
  5669. '6': '۶',
  5670. '7': '۷',
  5671. '8': '۸',
  5672. '9': '۹',
  5673. '0': '۰'
  5674. }, fa__numberMap = {
  5675. '۱': '1',
  5676. '۲': '2',
  5677. '۳': '3',
  5678. '۴': '4',
  5679. '۵': '5',
  5680. '۶': '6',
  5681. '۷': '7',
  5682. '۸': '8',
  5683. '۹': '9',
  5684. '۰': '0'
  5685. };
  5686. var fa = moment__default.defineLocale('fa', {
  5687. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  5688. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  5689. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  5690. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  5691. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  5692. weekdaysParseExact : true,
  5693. longDateFormat : {
  5694. LT : 'HH:mm',
  5695. LTS : 'HH:mm:ss',
  5696. L : 'DD/MM/YYYY',
  5697. LL : 'D MMMM YYYY',
  5698. LLL : 'D MMMM YYYY HH:mm',
  5699. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5700. },
  5701. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  5702. isPM: function (input) {
  5703. return /بعد از ظهر/.test(input);
  5704. },
  5705. meridiem : function (hour, minute, isLower) {
  5706. if (hour < 12) {
  5707. return 'قبل از ظهر';
  5708. } else {
  5709. return 'بعد از ظهر';
  5710. }
  5711. },
  5712. calendar : {
  5713. sameDay : '[امروز ساعت] LT',
  5714. nextDay : '[فردا ساعت] LT',
  5715. nextWeek : 'dddd [ساعت] LT',
  5716. lastDay : '[دیروز ساعت] LT',
  5717. lastWeek : 'dddd [پیش] [ساعت] LT',
  5718. sameElse : 'L'
  5719. },
  5720. relativeTime : {
  5721. future : 'در %s',
  5722. past : '%s پیش',
  5723. s : 'چندین ثانیه',
  5724. m : 'یک دقیقه',
  5725. mm : '%d دقیقه',
  5726. h : 'یک ساعت',
  5727. hh : '%d ساعت',
  5728. d : 'یک روز',
  5729. dd : '%d روز',
  5730. M : 'یک ماه',
  5731. MM : '%d ماه',
  5732. y : 'یک سال',
  5733. yy : '%d سال'
  5734. },
  5735. preparse: function (string) {
  5736. return string.replace(/[۰-۹]/g, function (match) {
  5737. return fa__numberMap[match];
  5738. }).replace(/،/g, ',');
  5739. },
  5740. postformat: function (string) {
  5741. return string.replace(/\d/g, function (match) {
  5742. return fa__symbolMap[match];
  5743. }).replace(/,/g, '،');
  5744. },
  5745. ordinalParse: /\d{1,2}م/,
  5746. ordinal : '%dم',
  5747. week : {
  5748. dow : 6, // Saturday is the first day of the week.
  5749. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5750. }
  5751. });
  5752. //! moment.js locale configuration
  5753. //! locale : finnish (fi)
  5754. //! author : Tarmo Aidantausta : https://github.com/bleadof
  5755. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  5756. numbersFuture = [
  5757. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  5758. numbersPast[7], numbersPast[8], numbersPast[9]
  5759. ];
  5760. function fi__translate(number, withoutSuffix, key, isFuture) {
  5761. var result = '';
  5762. switch (key) {
  5763. case 's':
  5764. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  5765. case 'm':
  5766. return isFuture ? 'minuutin' : 'minuutti';
  5767. case 'mm':
  5768. result = isFuture ? 'minuutin' : 'minuuttia';
  5769. break;
  5770. case 'h':
  5771. return isFuture ? 'tunnin' : 'tunti';
  5772. case 'hh':
  5773. result = isFuture ? 'tunnin' : 'tuntia';
  5774. break;
  5775. case 'd':
  5776. return isFuture ? 'päivän' : 'päivä';
  5777. case 'dd':
  5778. result = isFuture ? 'päivän' : 'päivää';
  5779. break;
  5780. case 'M':
  5781. return isFuture ? 'kuukauden' : 'kuukausi';
  5782. case 'MM':
  5783. result = isFuture ? 'kuukauden' : 'kuukautta';
  5784. break;
  5785. case 'y':
  5786. return isFuture ? 'vuoden' : 'vuosi';
  5787. case 'yy':
  5788. result = isFuture ? 'vuoden' : 'vuotta';
  5789. break;
  5790. }
  5791. result = verbalNumber(number, isFuture) + ' ' + result;
  5792. return result;
  5793. }
  5794. function verbalNumber(number, isFuture) {
  5795. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  5796. }
  5797. var fi = moment__default.defineLocale('fi', {
  5798. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  5799. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  5800. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  5801. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  5802. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  5803. longDateFormat : {
  5804. LT : 'HH.mm',
  5805. LTS : 'HH.mm.ss',
  5806. L : 'DD.MM.YYYY',
  5807. LL : 'Do MMMM[ta] YYYY',
  5808. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  5809. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  5810. l : 'D.M.YYYY',
  5811. ll : 'Do MMM YYYY',
  5812. lll : 'Do MMM YYYY, [klo] HH.mm',
  5813. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  5814. },
  5815. calendar : {
  5816. sameDay : '[tänään] [klo] LT',
  5817. nextDay : '[huomenna] [klo] LT',
  5818. nextWeek : 'dddd [klo] LT',
  5819. lastDay : '[eilen] [klo] LT',
  5820. lastWeek : '[viime] dddd[na] [klo] LT',
  5821. sameElse : 'L'
  5822. },
  5823. relativeTime : {
  5824. future : '%s päästä',
  5825. past : '%s sitten',
  5826. s : fi__translate,
  5827. m : fi__translate,
  5828. mm : fi__translate,
  5829. h : fi__translate,
  5830. hh : fi__translate,
  5831. d : fi__translate,
  5832. dd : fi__translate,
  5833. M : fi__translate,
  5834. MM : fi__translate,
  5835. y : fi__translate,
  5836. yy : fi__translate
  5837. },
  5838. ordinalParse: /\d{1,2}\./,
  5839. ordinal : '%d.',
  5840. week : {
  5841. dow : 1, // Monday is the first day of the week.
  5842. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5843. }
  5844. });
  5845. //! moment.js locale configuration
  5846. //! locale : faroese (fo)
  5847. //! author : Ragnar Johannesen : https://github.com/ragnar123
  5848. var fo = moment__default.defineLocale('fo', {
  5849. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  5850. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  5851. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  5852. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  5853. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  5854. longDateFormat : {
  5855. LT : 'HH:mm',
  5856. LTS : 'HH:mm:ss',
  5857. L : 'DD/MM/YYYY',
  5858. LL : 'D MMMM YYYY',
  5859. LLL : 'D MMMM YYYY HH:mm',
  5860. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  5861. },
  5862. calendar : {
  5863. sameDay : '[Í dag kl.] LT',
  5864. nextDay : '[Í morgin kl.] LT',
  5865. nextWeek : 'dddd [kl.] LT',
  5866. lastDay : '[Í gjár kl.] LT',
  5867. lastWeek : '[síðstu] dddd [kl] LT',
  5868. sameElse : 'L'
  5869. },
  5870. relativeTime : {
  5871. future : 'um %s',
  5872. past : '%s síðani',
  5873. s : 'fá sekund',
  5874. m : 'ein minutt',
  5875. mm : '%d minuttir',
  5876. h : 'ein tími',
  5877. hh : '%d tímar',
  5878. d : 'ein dagur',
  5879. dd : '%d dagar',
  5880. M : 'ein mánaði',
  5881. MM : '%d mánaðir',
  5882. y : 'eitt ár',
  5883. yy : '%d ár'
  5884. },
  5885. ordinalParse: /\d{1,2}\./,
  5886. ordinal : '%d.',
  5887. week : {
  5888. dow : 1, // Monday is the first day of the week.
  5889. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5890. }
  5891. });
  5892. //! moment.js locale configuration
  5893. //! locale : canadian french (fr-ca)
  5894. //! author : Jonathan Abourbih : https://github.com/jonbca
  5895. var fr_ca = moment__default.defineLocale('fr-ca', {
  5896. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  5897. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  5898. monthsParseExact : true,
  5899. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  5900. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  5901. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  5902. weekdaysParseExact : true,
  5903. longDateFormat : {
  5904. LT : 'HH:mm',
  5905. LTS : 'HH:mm:ss',
  5906. L : 'YYYY-MM-DD',
  5907. LL : 'D MMMM YYYY',
  5908. LLL : 'D MMMM YYYY HH:mm',
  5909. LLLL : 'dddd D MMMM YYYY HH:mm'
  5910. },
  5911. calendar : {
  5912. sameDay: '[Aujourd\'hui à] LT',
  5913. nextDay: '[Demain à] LT',
  5914. nextWeek: 'dddd [à] LT',
  5915. lastDay: '[Hier à] LT',
  5916. lastWeek: 'dddd [dernier à] LT',
  5917. sameElse: 'L'
  5918. },
  5919. relativeTime : {
  5920. future : 'dans %s',
  5921. past : 'il y a %s',
  5922. s : 'quelques secondes',
  5923. m : 'une minute',
  5924. mm : '%d minutes',
  5925. h : 'une heure',
  5926. hh : '%d heures',
  5927. d : 'un jour',
  5928. dd : '%d jours',
  5929. M : 'un mois',
  5930. MM : '%d mois',
  5931. y : 'un an',
  5932. yy : '%d ans'
  5933. },
  5934. ordinalParse: /\d{1,2}(er|e)/,
  5935. ordinal : function (number) {
  5936. return number + (number === 1 ? 'er' : 'e');
  5937. }
  5938. });
  5939. //! moment.js locale configuration
  5940. //! locale : swiss french (fr)
  5941. //! author : Gaspard Bucher : https://github.com/gaspard
  5942. var fr_ch = moment__default.defineLocale('fr-ch', {
  5943. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  5944. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  5945. monthsParseExact : true,
  5946. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  5947. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  5948. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  5949. weekdaysParseExact : true,
  5950. longDateFormat : {
  5951. LT : 'HH:mm',
  5952. LTS : 'HH:mm:ss',
  5953. L : 'DD.MM.YYYY',
  5954. LL : 'D MMMM YYYY',
  5955. LLL : 'D MMMM YYYY HH:mm',
  5956. LLLL : 'dddd D MMMM YYYY HH:mm'
  5957. },
  5958. calendar : {
  5959. sameDay: '[Aujourd\'hui à] LT',
  5960. nextDay: '[Demain à] LT',
  5961. nextWeek: 'dddd [à] LT',
  5962. lastDay: '[Hier à] LT',
  5963. lastWeek: 'dddd [dernier à] LT',
  5964. sameElse: 'L'
  5965. },
  5966. relativeTime : {
  5967. future : 'dans %s',
  5968. past : 'il y a %s',
  5969. s : 'quelques secondes',
  5970. m : 'une minute',
  5971. mm : '%d minutes',
  5972. h : 'une heure',
  5973. hh : '%d heures',
  5974. d : 'un jour',
  5975. dd : '%d jours',
  5976. M : 'un mois',
  5977. MM : '%d mois',
  5978. y : 'un an',
  5979. yy : '%d ans'
  5980. },
  5981. ordinalParse: /\d{1,2}(er|e)/,
  5982. ordinal : function (number) {
  5983. return number + (number === 1 ? 'er' : 'e');
  5984. },
  5985. week : {
  5986. dow : 1, // Monday is the first day of the week.
  5987. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5988. }
  5989. });
  5990. //! moment.js locale configuration
  5991. //! locale : french (fr)
  5992. //! author : John Fischer : https://github.com/jfroffice
  5993. var fr = moment__default.defineLocale('fr', {
  5994. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  5995. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  5996. monthsParseExact : true,
  5997. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  5998. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  5999. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6000. weekdaysParseExact : true,
  6001. longDateFormat : {
  6002. LT : 'HH:mm',
  6003. LTS : 'HH:mm:ss',
  6004. L : 'DD/MM/YYYY',
  6005. LL : 'D MMMM YYYY',
  6006. LLL : 'D MMMM YYYY HH:mm',
  6007. LLLL : 'dddd D MMMM YYYY HH:mm'
  6008. },
  6009. calendar : {
  6010. sameDay: '[Aujourd\'hui à] LT',
  6011. nextDay: '[Demain à] LT',
  6012. nextWeek: 'dddd [à] LT',
  6013. lastDay: '[Hier à] LT',
  6014. lastWeek: 'dddd [dernier à] LT',
  6015. sameElse: 'L'
  6016. },
  6017. relativeTime : {
  6018. future : 'dans %s',
  6019. past : 'il y a %s',
  6020. s : 'quelques secondes',
  6021. m : 'une minute',
  6022. mm : '%d minutes',
  6023. h : 'une heure',
  6024. hh : '%d heures',
  6025. d : 'un jour',
  6026. dd : '%d jours',
  6027. M : 'un mois',
  6028. MM : '%d mois',
  6029. y : 'un an',
  6030. yy : '%d ans'
  6031. },
  6032. ordinalParse: /\d{1,2}(er|)/,
  6033. ordinal : function (number) {
  6034. return number + (number === 1 ? 'er' : '');
  6035. },
  6036. week : {
  6037. dow : 1, // Monday is the first day of the week.
  6038. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6039. }
  6040. });
  6041. //! moment.js locale configuration
  6042. //! locale : frisian (fy)
  6043. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  6044. var fy__monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  6045. fy__monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  6046. var fy = moment__default.defineLocale('fy', {
  6047. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  6048. monthsShort : function (m, format) {
  6049. if (/-MMM-/.test(format)) {
  6050. return fy__monthsShortWithoutDots[m.month()];
  6051. } else {
  6052. return fy__monthsShortWithDots[m.month()];
  6053. }
  6054. },
  6055. monthsParseExact : true,
  6056. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  6057. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  6058. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  6059. weekdaysParseExact : true,
  6060. longDateFormat : {
  6061. LT : 'HH:mm',
  6062. LTS : 'HH:mm:ss',
  6063. L : 'DD-MM-YYYY',
  6064. LL : 'D MMMM YYYY',
  6065. LLL : 'D MMMM YYYY HH:mm',
  6066. LLLL : 'dddd D MMMM YYYY HH:mm'
  6067. },
  6068. calendar : {
  6069. sameDay: '[hjoed om] LT',
  6070. nextDay: '[moarn om] LT',
  6071. nextWeek: 'dddd [om] LT',
  6072. lastDay: '[juster om] LT',
  6073. lastWeek: '[ôfrûne] dddd [om] LT',
  6074. sameElse: 'L'
  6075. },
  6076. relativeTime : {
  6077. future : 'oer %s',
  6078. past : '%s lyn',
  6079. s : 'in pear sekonden',
  6080. m : 'ien minút',
  6081. mm : '%d minuten',
  6082. h : 'ien oere',
  6083. hh : '%d oeren',
  6084. d : 'ien dei',
  6085. dd : '%d dagen',
  6086. M : 'ien moanne',
  6087. MM : '%d moannen',
  6088. y : 'ien jier',
  6089. yy : '%d jierren'
  6090. },
  6091. ordinalParse: /\d{1,2}(ste|de)/,
  6092. ordinal : function (number) {
  6093. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  6094. },
  6095. week : {
  6096. dow : 1, // Monday is the first day of the week.
  6097. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6098. }
  6099. });
  6100. //! moment.js locale configuration
  6101. //! locale : great britain scottish gealic (gd)
  6102. //! author : Jon Ashdown : https://github.com/jonashdown
  6103. var gd__months = [
  6104. 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
  6105. ];
  6106. var gd__monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  6107. var gd__weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  6108. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  6109. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  6110. var gd = moment__default.defineLocale('gd', {
  6111. months : gd__months,
  6112. monthsShort : gd__monthsShort,
  6113. monthsParseExact : true,
  6114. weekdays : gd__weekdays,
  6115. weekdaysShort : weekdaysShort,
  6116. weekdaysMin : weekdaysMin,
  6117. longDateFormat : {
  6118. LT : 'HH:mm',
  6119. LTS : 'HH:mm:ss',
  6120. L : 'DD/MM/YYYY',
  6121. LL : 'D MMMM YYYY',
  6122. LLL : 'D MMMM YYYY HH:mm',
  6123. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6124. },
  6125. calendar : {
  6126. sameDay : '[An-diugh aig] LT',
  6127. nextDay : '[A-màireach aig] LT',
  6128. nextWeek : 'dddd [aig] LT',
  6129. lastDay : '[An-dè aig] LT',
  6130. lastWeek : 'dddd [seo chaidh] [aig] LT',
  6131. sameElse : 'L'
  6132. },
  6133. relativeTime : {
  6134. future : 'ann an %s',
  6135. past : 'bho chionn %s',
  6136. s : 'beagan diogan',
  6137. m : 'mionaid',
  6138. mm : '%d mionaidean',
  6139. h : 'uair',
  6140. hh : '%d uairean',
  6141. d : 'latha',
  6142. dd : '%d latha',
  6143. M : 'mìos',
  6144. MM : '%d mìosan',
  6145. y : 'bliadhna',
  6146. yy : '%d bliadhna'
  6147. },
  6148. ordinalParse : /\d{1,2}(d|na|mh)/,
  6149. ordinal : function (number) {
  6150. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  6151. return number + output;
  6152. },
  6153. week : {
  6154. dow : 1, // Monday is the first day of the week.
  6155. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6156. }
  6157. });
  6158. //! moment.js locale configuration
  6159. //! locale : galician (gl)
  6160. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  6161. var gl = moment__default.defineLocale('gl', {
  6162. months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
  6163. monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
  6164. monthsParseExact: true,
  6165. weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
  6166. weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),
  6167. weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),
  6168. weekdaysParseExact : true,
  6169. longDateFormat : {
  6170. LT : 'H:mm',
  6171. LTS : 'H:mm:ss',
  6172. L : 'DD/MM/YYYY',
  6173. LL : 'D MMMM YYYY',
  6174. LLL : 'D MMMM YYYY H:mm',
  6175. LLLL : 'dddd D MMMM YYYY H:mm'
  6176. },
  6177. calendar : {
  6178. sameDay : function () {
  6179. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6180. },
  6181. nextDay : function () {
  6182. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6183. },
  6184. nextWeek : function () {
  6185. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6186. },
  6187. lastDay : function () {
  6188. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  6189. },
  6190. lastWeek : function () {
  6191. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6192. },
  6193. sameElse : 'L'
  6194. },
  6195. relativeTime : {
  6196. future : function (str) {
  6197. if (str === 'uns segundos') {
  6198. return 'nuns segundos';
  6199. }
  6200. return 'en ' + str;
  6201. },
  6202. past : 'hai %s',
  6203. s : 'uns segundos',
  6204. m : 'un minuto',
  6205. mm : '%d minutos',
  6206. h : 'unha hora',
  6207. hh : '%d horas',
  6208. d : 'un día',
  6209. dd : '%d días',
  6210. M : 'un mes',
  6211. MM : '%d meses',
  6212. y : 'un ano',
  6213. yy : '%d anos'
  6214. },
  6215. ordinalParse : /\d{1,2}º/,
  6216. ordinal : '%dº',
  6217. week : {
  6218. dow : 1, // Monday is the first day of the week.
  6219. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6220. }
  6221. });
  6222. //! moment.js locale configuration
  6223. //! locale : Hebrew (he)
  6224. //! author : Tomer Cohen : https://github.com/tomer
  6225. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  6226. //! author : Tal Ater : https://github.com/TalAter
  6227. var he = moment__default.defineLocale('he', {
  6228. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  6229. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  6230. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  6231. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  6232. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  6233. longDateFormat : {
  6234. LT : 'HH:mm',
  6235. LTS : 'HH:mm:ss',
  6236. L : 'DD/MM/YYYY',
  6237. LL : 'D [ב]MMMM YYYY',
  6238. LLL : 'D [ב]MMMM YYYY HH:mm',
  6239. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  6240. l : 'D/M/YYYY',
  6241. ll : 'D MMM YYYY',
  6242. lll : 'D MMM YYYY HH:mm',
  6243. llll : 'ddd, D MMM YYYY HH:mm'
  6244. },
  6245. calendar : {
  6246. sameDay : '[היום ב־]LT',
  6247. nextDay : '[מחר ב־]LT',
  6248. nextWeek : 'dddd [בשעה] LT',
  6249. lastDay : '[אתמול ב־]LT',
  6250. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  6251. sameElse : 'L'
  6252. },
  6253. relativeTime : {
  6254. future : 'בעוד %s',
  6255. past : 'לפני %s',
  6256. s : 'מספר שניות',
  6257. m : 'דקה',
  6258. mm : '%d דקות',
  6259. h : 'שעה',
  6260. hh : function (number) {
  6261. if (number === 2) {
  6262. return 'שעתיים';
  6263. }
  6264. return number + ' שעות';
  6265. },
  6266. d : 'יום',
  6267. dd : function (number) {
  6268. if (number === 2) {
  6269. return 'יומיים';
  6270. }
  6271. return number + ' ימים';
  6272. },
  6273. M : 'חודש',
  6274. MM : function (number) {
  6275. if (number === 2) {
  6276. return 'חודשיים';
  6277. }
  6278. return number + ' חודשים';
  6279. },
  6280. y : 'שנה',
  6281. yy : function (number) {
  6282. if (number === 2) {
  6283. return 'שנתיים';
  6284. } else if (number % 10 === 0 && number !== 10) {
  6285. return number + ' שנה';
  6286. }
  6287. return number + ' שנים';
  6288. }
  6289. },
  6290. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  6291. isPM : function (input) {
  6292. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  6293. },
  6294. meridiem : function (hour, minute, isLower) {
  6295. if (hour < 5) {
  6296. return 'לפנות בוקר';
  6297. } else if (hour < 10) {
  6298. return 'בבוקר';
  6299. } else if (hour < 12) {
  6300. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  6301. } else if (hour < 18) {
  6302. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  6303. } else {
  6304. return 'בערב';
  6305. }
  6306. }
  6307. });
  6308. //! moment.js locale configuration
  6309. //! locale : hindi (hi)
  6310. //! author : Mayank Singhal : https://github.com/mayanksinghal
  6311. var hi__symbolMap = {
  6312. '1': '१',
  6313. '2': '२',
  6314. '3': '३',
  6315. '4': '४',
  6316. '5': '५',
  6317. '6': '६',
  6318. '7': '७',
  6319. '8': '८',
  6320. '9': '९',
  6321. '0': '०'
  6322. },
  6323. hi__numberMap = {
  6324. '१': '1',
  6325. '२': '2',
  6326. '३': '3',
  6327. '४': '4',
  6328. '५': '5',
  6329. '६': '6',
  6330. '७': '7',
  6331. '८': '8',
  6332. '९': '9',
  6333. '०': '0'
  6334. };
  6335. var hi = moment__default.defineLocale('hi', {
  6336. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  6337. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  6338. monthsParseExact: true,
  6339. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  6340. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  6341. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  6342. longDateFormat : {
  6343. LT : 'A h:mm बजे',
  6344. LTS : 'A h:mm:ss बजे',
  6345. L : 'DD/MM/YYYY',
  6346. LL : 'D MMMM YYYY',
  6347. LLL : 'D MMMM YYYY, A h:mm बजे',
  6348. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  6349. },
  6350. calendar : {
  6351. sameDay : '[आज] LT',
  6352. nextDay : '[कल] LT',
  6353. nextWeek : 'dddd, LT',
  6354. lastDay : '[कल] LT',
  6355. lastWeek : '[पिछले] dddd, LT',
  6356. sameElse : 'L'
  6357. },
  6358. relativeTime : {
  6359. future : '%s में',
  6360. past : '%s पहले',
  6361. s : 'कुछ ही क्षण',
  6362. m : 'एक मिनट',
  6363. mm : '%d मिनट',
  6364. h : 'एक घंटा',
  6365. hh : '%d घंटे',
  6366. d : 'एक दिन',
  6367. dd : '%d दिन',
  6368. M : 'एक महीने',
  6369. MM : '%d महीने',
  6370. y : 'एक वर्ष',
  6371. yy : '%d वर्ष'
  6372. },
  6373. preparse: function (string) {
  6374. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  6375. return hi__numberMap[match];
  6376. });
  6377. },
  6378. postformat: function (string) {
  6379. return string.replace(/\d/g, function (match) {
  6380. return hi__symbolMap[match];
  6381. });
  6382. },
  6383. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  6384. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  6385. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  6386. meridiemHour : function (hour, meridiem) {
  6387. if (hour === 12) {
  6388. hour = 0;
  6389. }
  6390. if (meridiem === 'रात') {
  6391. return hour < 4 ? hour : hour + 12;
  6392. } else if (meridiem === 'सुबह') {
  6393. return hour;
  6394. } else if (meridiem === 'दोपहर') {
  6395. return hour >= 10 ? hour : hour + 12;
  6396. } else if (meridiem === 'शाम') {
  6397. return hour + 12;
  6398. }
  6399. },
  6400. meridiem : function (hour, minute, isLower) {
  6401. if (hour < 4) {
  6402. return 'रात';
  6403. } else if (hour < 10) {
  6404. return 'सुबह';
  6405. } else if (hour < 17) {
  6406. return 'दोपहर';
  6407. } else if (hour < 20) {
  6408. return 'शाम';
  6409. } else {
  6410. return 'रात';
  6411. }
  6412. },
  6413. week : {
  6414. dow : 0, // Sunday is the first day of the week.
  6415. doy : 6 // The week that contains Jan 1st is the first week of the year.
  6416. }
  6417. });
  6418. //! moment.js locale configuration
  6419. //! locale : hrvatski (hr)
  6420. //! author : Bojan Marković : https://github.com/bmarkovic
  6421. function hr__translate(number, withoutSuffix, key) {
  6422. var result = number + ' ';
  6423. switch (key) {
  6424. case 'm':
  6425. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6426. case 'mm':
  6427. if (number === 1) {
  6428. result += 'minuta';
  6429. } else if (number === 2 || number === 3 || number === 4) {
  6430. result += 'minute';
  6431. } else {
  6432. result += 'minuta';
  6433. }
  6434. return result;
  6435. case 'h':
  6436. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6437. case 'hh':
  6438. if (number === 1) {
  6439. result += 'sat';
  6440. } else if (number === 2 || number === 3 || number === 4) {
  6441. result += 'sata';
  6442. } else {
  6443. result += 'sati';
  6444. }
  6445. return result;
  6446. case 'dd':
  6447. if (number === 1) {
  6448. result += 'dan';
  6449. } else {
  6450. result += 'dana';
  6451. }
  6452. return result;
  6453. case 'MM':
  6454. if (number === 1) {
  6455. result += 'mjesec';
  6456. } else if (number === 2 || number === 3 || number === 4) {
  6457. result += 'mjeseca';
  6458. } else {
  6459. result += 'mjeseci';
  6460. }
  6461. return result;
  6462. case 'yy':
  6463. if (number === 1) {
  6464. result += 'godina';
  6465. } else if (number === 2 || number === 3 || number === 4) {
  6466. result += 'godine';
  6467. } else {
  6468. result += 'godina';
  6469. }
  6470. return result;
  6471. }
  6472. }
  6473. var hr = moment__default.defineLocale('hr', {
  6474. months : {
  6475. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  6476. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  6477. },
  6478. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  6479. monthsParseExact: true,
  6480. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  6481. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6482. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  6483. weekdaysParseExact : true,
  6484. longDateFormat : {
  6485. LT : 'H:mm',
  6486. LTS : 'H:mm:ss',
  6487. L : 'DD. MM. YYYY',
  6488. LL : 'D. MMMM YYYY',
  6489. LLL : 'D. MMMM YYYY H:mm',
  6490. LLLL : 'dddd, D. MMMM YYYY H:mm'
  6491. },
  6492. calendar : {
  6493. sameDay : '[danas u] LT',
  6494. nextDay : '[sutra u] LT',
  6495. nextWeek : function () {
  6496. switch (this.day()) {
  6497. case 0:
  6498. return '[u] [nedjelju] [u] LT';
  6499. case 3:
  6500. return '[u] [srijedu] [u] LT';
  6501. case 6:
  6502. return '[u] [subotu] [u] LT';
  6503. case 1:
  6504. case 2:
  6505. case 4:
  6506. case 5:
  6507. return '[u] dddd [u] LT';
  6508. }
  6509. },
  6510. lastDay : '[jučer u] LT',
  6511. lastWeek : function () {
  6512. switch (this.day()) {
  6513. case 0:
  6514. case 3:
  6515. return '[prošlu] dddd [u] LT';
  6516. case 6:
  6517. return '[prošle] [subote] [u] LT';
  6518. case 1:
  6519. case 2:
  6520. case 4:
  6521. case 5:
  6522. return '[prošli] dddd [u] LT';
  6523. }
  6524. },
  6525. sameElse : 'L'
  6526. },
  6527. relativeTime : {
  6528. future : 'za %s',
  6529. past : 'prije %s',
  6530. s : 'par sekundi',
  6531. m : hr__translate,
  6532. mm : hr__translate,
  6533. h : hr__translate,
  6534. hh : hr__translate,
  6535. d : 'dan',
  6536. dd : hr__translate,
  6537. M : 'mjesec',
  6538. MM : hr__translate,
  6539. y : 'godinu',
  6540. yy : hr__translate
  6541. },
  6542. ordinalParse: /\d{1,2}\./,
  6543. ordinal : '%d.',
  6544. week : {
  6545. dow : 1, // Monday is the first day of the week.
  6546. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6547. }
  6548. });
  6549. //! moment.js locale configuration
  6550. //! locale : hungarian (hu)
  6551. //! author : Adam Brunner : https://github.com/adambrunner
  6552. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  6553. function hu__translate(number, withoutSuffix, key, isFuture) {
  6554. var num = number,
  6555. suffix;
  6556. switch (key) {
  6557. case 's':
  6558. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  6559. case 'm':
  6560. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  6561. case 'mm':
  6562. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  6563. case 'h':
  6564. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  6565. case 'hh':
  6566. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  6567. case 'd':
  6568. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  6569. case 'dd':
  6570. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  6571. case 'M':
  6572. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  6573. case 'MM':
  6574. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  6575. case 'y':
  6576. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  6577. case 'yy':
  6578. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  6579. }
  6580. return '';
  6581. }
  6582. function week(isFuture) {
  6583. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  6584. }
  6585. var hu = moment__default.defineLocale('hu', {
  6586. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  6587. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  6588. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  6589. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  6590. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  6591. longDateFormat : {
  6592. LT : 'H:mm',
  6593. LTS : 'H:mm:ss',
  6594. L : 'YYYY.MM.DD.',
  6595. LL : 'YYYY. MMMM D.',
  6596. LLL : 'YYYY. MMMM D. H:mm',
  6597. LLLL : 'YYYY. MMMM D., dddd H:mm'
  6598. },
  6599. meridiemParse: /de|du/i,
  6600. isPM: function (input) {
  6601. return input.charAt(1).toLowerCase() === 'u';
  6602. },
  6603. meridiem : function (hours, minutes, isLower) {
  6604. if (hours < 12) {
  6605. return isLower === true ? 'de' : 'DE';
  6606. } else {
  6607. return isLower === true ? 'du' : 'DU';
  6608. }
  6609. },
  6610. calendar : {
  6611. sameDay : '[ma] LT[-kor]',
  6612. nextDay : '[holnap] LT[-kor]',
  6613. nextWeek : function () {
  6614. return week.call(this, true);
  6615. },
  6616. lastDay : '[tegnap] LT[-kor]',
  6617. lastWeek : function () {
  6618. return week.call(this, false);
  6619. },
  6620. sameElse : 'L'
  6621. },
  6622. relativeTime : {
  6623. future : '%s múlva',
  6624. past : '%s',
  6625. s : hu__translate,
  6626. m : hu__translate,
  6627. mm : hu__translate,
  6628. h : hu__translate,
  6629. hh : hu__translate,
  6630. d : hu__translate,
  6631. dd : hu__translate,
  6632. M : hu__translate,
  6633. MM : hu__translate,
  6634. y : hu__translate,
  6635. yy : hu__translate
  6636. },
  6637. ordinalParse: /\d{1,2}\./,
  6638. ordinal : '%d.',
  6639. week : {
  6640. dow : 1, // Monday is the first day of the week.
  6641. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6642. }
  6643. });
  6644. //! moment.js locale configuration
  6645. //! locale : Armenian (hy-am)
  6646. //! author : Armendarabyan : https://github.com/armendarabyan
  6647. var hy_am = moment__default.defineLocale('hy-am', {
  6648. months : {
  6649. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  6650. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  6651. },
  6652. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  6653. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  6654. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  6655. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  6656. longDateFormat : {
  6657. LT : 'HH:mm',
  6658. LTS : 'HH:mm:ss',
  6659. L : 'DD.MM.YYYY',
  6660. LL : 'D MMMM YYYY թ.',
  6661. LLL : 'D MMMM YYYY թ., HH:mm',
  6662. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  6663. },
  6664. calendar : {
  6665. sameDay: '[այսօր] LT',
  6666. nextDay: '[վաղը] LT',
  6667. lastDay: '[երեկ] LT',
  6668. nextWeek: function () {
  6669. return 'dddd [օրը ժամը] LT';
  6670. },
  6671. lastWeek: function () {
  6672. return '[անցած] dddd [օրը ժամը] LT';
  6673. },
  6674. sameElse: 'L'
  6675. },
  6676. relativeTime : {
  6677. future : '%s հետո',
  6678. past : '%s առաջ',
  6679. s : 'մի քանի վայրկյան',
  6680. m : 'րոպե',
  6681. mm : '%d րոպե',
  6682. h : 'ժամ',
  6683. hh : '%d ժամ',
  6684. d : 'օր',
  6685. dd : '%d օր',
  6686. M : 'ամիս',
  6687. MM : '%d ամիս',
  6688. y : 'տարի',
  6689. yy : '%d տարի'
  6690. },
  6691. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  6692. isPM: function (input) {
  6693. return /^(ցերեկվա|երեկոյան)$/.test(input);
  6694. },
  6695. meridiem : function (hour) {
  6696. if (hour < 4) {
  6697. return 'գիշերվա';
  6698. } else if (hour < 12) {
  6699. return 'առավոտվա';
  6700. } else if (hour < 17) {
  6701. return 'ցերեկվա';
  6702. } else {
  6703. return 'երեկոյան';
  6704. }
  6705. },
  6706. ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  6707. ordinal: function (number, period) {
  6708. switch (period) {
  6709. case 'DDD':
  6710. case 'w':
  6711. case 'W':
  6712. case 'DDDo':
  6713. if (number === 1) {
  6714. return number + '-ին';
  6715. }
  6716. return number + '-րդ';
  6717. default:
  6718. return number;
  6719. }
  6720. },
  6721. week : {
  6722. dow : 1, // Monday is the first day of the week.
  6723. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6724. }
  6725. });
  6726. //! moment.js locale configuration
  6727. //! locale : Bahasa Indonesia (id)
  6728. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  6729. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  6730. var id = moment__default.defineLocale('id', {
  6731. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  6732. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  6733. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  6734. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  6735. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  6736. longDateFormat : {
  6737. LT : 'HH.mm',
  6738. LTS : 'HH.mm.ss',
  6739. L : 'DD/MM/YYYY',
  6740. LL : 'D MMMM YYYY',
  6741. LLL : 'D MMMM YYYY [pukul] HH.mm',
  6742. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  6743. },
  6744. meridiemParse: /pagi|siang|sore|malam/,
  6745. meridiemHour : function (hour, meridiem) {
  6746. if (hour === 12) {
  6747. hour = 0;
  6748. }
  6749. if (meridiem === 'pagi') {
  6750. return hour;
  6751. } else if (meridiem === 'siang') {
  6752. return hour >= 11 ? hour : hour + 12;
  6753. } else if (meridiem === 'sore' || meridiem === 'malam') {
  6754. return hour + 12;
  6755. }
  6756. },
  6757. meridiem : function (hours, minutes, isLower) {
  6758. if (hours < 11) {
  6759. return 'pagi';
  6760. } else if (hours < 15) {
  6761. return 'siang';
  6762. } else if (hours < 19) {
  6763. return 'sore';
  6764. } else {
  6765. return 'malam';
  6766. }
  6767. },
  6768. calendar : {
  6769. sameDay : '[Hari ini pukul] LT',
  6770. nextDay : '[Besok pukul] LT',
  6771. nextWeek : 'dddd [pukul] LT',
  6772. lastDay : '[Kemarin pukul] LT',
  6773. lastWeek : 'dddd [lalu pukul] LT',
  6774. sameElse : 'L'
  6775. },
  6776. relativeTime : {
  6777. future : 'dalam %s',
  6778. past : '%s yang lalu',
  6779. s : 'beberapa detik',
  6780. m : 'semenit',
  6781. mm : '%d menit',
  6782. h : 'sejam',
  6783. hh : '%d jam',
  6784. d : 'sehari',
  6785. dd : '%d hari',
  6786. M : 'sebulan',
  6787. MM : '%d bulan',
  6788. y : 'setahun',
  6789. yy : '%d tahun'
  6790. },
  6791. week : {
  6792. dow : 1, // Monday is the first day of the week.
  6793. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6794. }
  6795. });
  6796. //! moment.js locale configuration
  6797. //! locale : icelandic (is)
  6798. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  6799. function is__plural(n) {
  6800. if (n % 100 === 11) {
  6801. return true;
  6802. } else if (n % 10 === 1) {
  6803. return false;
  6804. }
  6805. return true;
  6806. }
  6807. function is__translate(number, withoutSuffix, key, isFuture) {
  6808. var result = number + ' ';
  6809. switch (key) {
  6810. case 's':
  6811. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  6812. case 'm':
  6813. return withoutSuffix ? 'mínúta' : 'mínútu';
  6814. case 'mm':
  6815. if (is__plural(number)) {
  6816. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  6817. } else if (withoutSuffix) {
  6818. return result + 'mínúta';
  6819. }
  6820. return result + 'mínútu';
  6821. case 'hh':
  6822. if (is__plural(number)) {
  6823. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  6824. }
  6825. return result + 'klukkustund';
  6826. case 'd':
  6827. if (withoutSuffix) {
  6828. return 'dagur';
  6829. }
  6830. return isFuture ? 'dag' : 'degi';
  6831. case 'dd':
  6832. if (is__plural(number)) {
  6833. if (withoutSuffix) {
  6834. return result + 'dagar';
  6835. }
  6836. return result + (isFuture ? 'daga' : 'dögum');
  6837. } else if (withoutSuffix) {
  6838. return result + 'dagur';
  6839. }
  6840. return result + (isFuture ? 'dag' : 'degi');
  6841. case 'M':
  6842. if (withoutSuffix) {
  6843. return 'mánuður';
  6844. }
  6845. return isFuture ? 'mánuð' : 'mánuði';
  6846. case 'MM':
  6847. if (is__plural(number)) {
  6848. if (withoutSuffix) {
  6849. return result + 'mánuðir';
  6850. }
  6851. return result + (isFuture ? 'mánuði' : 'mánuðum');
  6852. } else if (withoutSuffix) {
  6853. return result + 'mánuður';
  6854. }
  6855. return result + (isFuture ? 'mánuð' : 'mánuði');
  6856. case 'y':
  6857. return withoutSuffix || isFuture ? 'ár' : 'ári';
  6858. case 'yy':
  6859. if (is__plural(number)) {
  6860. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  6861. }
  6862. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  6863. }
  6864. }
  6865. var is = moment__default.defineLocale('is', {
  6866. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  6867. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  6868. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  6869. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  6870. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  6871. longDateFormat : {
  6872. LT : 'H:mm',
  6873. LTS : 'H:mm:ss',
  6874. L : 'DD.MM.YYYY',
  6875. LL : 'D. MMMM YYYY',
  6876. LLL : 'D. MMMM YYYY [kl.] H:mm',
  6877. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  6878. },
  6879. calendar : {
  6880. sameDay : '[í dag kl.] LT',
  6881. nextDay : '[á morgun kl.] LT',
  6882. nextWeek : 'dddd [kl.] LT',
  6883. lastDay : '[í gær kl.] LT',
  6884. lastWeek : '[síðasta] dddd [kl.] LT',
  6885. sameElse : 'L'
  6886. },
  6887. relativeTime : {
  6888. future : 'eftir %s',
  6889. past : 'fyrir %s síðan',
  6890. s : is__translate,
  6891. m : is__translate,
  6892. mm : is__translate,
  6893. h : 'klukkustund',
  6894. hh : is__translate,
  6895. d : is__translate,
  6896. dd : is__translate,
  6897. M : is__translate,
  6898. MM : is__translate,
  6899. y : is__translate,
  6900. yy : is__translate
  6901. },
  6902. ordinalParse: /\d{1,2}\./,
  6903. ordinal : '%d.',
  6904. week : {
  6905. dow : 1, // Monday is the first day of the week.
  6906. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6907. }
  6908. });
  6909. //! moment.js locale configuration
  6910. //! locale : italian (it)
  6911. //! author : Lorenzo : https://github.com/aliem
  6912. //! author: Mattia Larentis: https://github.com/nostalgiaz
  6913. var it = moment__default.defineLocale('it', {
  6914. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  6915. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  6916. weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
  6917. weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
  6918. weekdaysMin : 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),
  6919. longDateFormat : {
  6920. LT : 'HH:mm',
  6921. LTS : 'HH:mm:ss',
  6922. L : 'DD/MM/YYYY',
  6923. LL : 'D MMMM YYYY',
  6924. LLL : 'D MMMM YYYY HH:mm',
  6925. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6926. },
  6927. calendar : {
  6928. sameDay: '[Oggi alle] LT',
  6929. nextDay: '[Domani alle] LT',
  6930. nextWeek: 'dddd [alle] LT',
  6931. lastDay: '[Ieri alle] LT',
  6932. lastWeek: function () {
  6933. switch (this.day()) {
  6934. case 0:
  6935. return '[la scorsa] dddd [alle] LT';
  6936. default:
  6937. return '[lo scorso] dddd [alle] LT';
  6938. }
  6939. },
  6940. sameElse: 'L'
  6941. },
  6942. relativeTime : {
  6943. future : function (s) {
  6944. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  6945. },
  6946. past : '%s fa',
  6947. s : 'alcuni secondi',
  6948. m : 'un minuto',
  6949. mm : '%d minuti',
  6950. h : 'un\'ora',
  6951. hh : '%d ore',
  6952. d : 'un giorno',
  6953. dd : '%d giorni',
  6954. M : 'un mese',
  6955. MM : '%d mesi',
  6956. y : 'un anno',
  6957. yy : '%d anni'
  6958. },
  6959. ordinalParse : /\d{1,2}º/,
  6960. ordinal: '%dº',
  6961. week : {
  6962. dow : 1, // Monday is the first day of the week.
  6963. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6964. }
  6965. });
  6966. //! moment.js locale configuration
  6967. //! locale : japanese (ja)
  6968. //! author : LI Long : https://github.com/baryon
  6969. var ja = moment__default.defineLocale('ja', {
  6970. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  6971. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  6972. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  6973. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  6974. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  6975. longDateFormat : {
  6976. LT : 'Ah時m分',
  6977. LTS : 'Ah時m分s秒',
  6978. L : 'YYYY/MM/DD',
  6979. LL : 'YYYY年M月D日',
  6980. LLL : 'YYYY年M月D日Ah時m分',
  6981. LLLL : 'YYYY年M月D日Ah時m分 dddd'
  6982. },
  6983. meridiemParse: /午前|午後/i,
  6984. isPM : function (input) {
  6985. return input === '午後';
  6986. },
  6987. meridiem : function (hour, minute, isLower) {
  6988. if (hour < 12) {
  6989. return '午前';
  6990. } else {
  6991. return '午後';
  6992. }
  6993. },
  6994. calendar : {
  6995. sameDay : '[今日] LT',
  6996. nextDay : '[明日] LT',
  6997. nextWeek : '[来週]dddd LT',
  6998. lastDay : '[昨日] LT',
  6999. lastWeek : '[前週]dddd LT',
  7000. sameElse : 'L'
  7001. },
  7002. ordinalParse : /\d{1,2}日/,
  7003. ordinal : function (number, period) {
  7004. switch (period) {
  7005. case 'd':
  7006. case 'D':
  7007. case 'DDD':
  7008. return number + '日';
  7009. default:
  7010. return number;
  7011. }
  7012. },
  7013. relativeTime : {
  7014. future : '%s後',
  7015. past : '%s前',
  7016. s : '数秒',
  7017. m : '1分',
  7018. mm : '%d分',
  7019. h : '1時間',
  7020. hh : '%d時間',
  7021. d : '1日',
  7022. dd : '%d日',
  7023. M : '1ヶ月',
  7024. MM : '%dヶ月',
  7025. y : '1年',
  7026. yy : '%d年'
  7027. }
  7028. });
  7029. //! moment.js locale configuration
  7030. //! locale : Boso Jowo (jv)
  7031. //! author : Rony Lantip : https://github.com/lantip
  7032. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  7033. var jv = moment__default.defineLocale('jv', {
  7034. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  7035. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  7036. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  7037. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  7038. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  7039. longDateFormat : {
  7040. LT : 'HH.mm',
  7041. LTS : 'HH.mm.ss',
  7042. L : 'DD/MM/YYYY',
  7043. LL : 'D MMMM YYYY',
  7044. LLL : 'D MMMM YYYY [pukul] HH.mm',
  7045. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  7046. },
  7047. meridiemParse: /enjing|siyang|sonten|ndalu/,
  7048. meridiemHour : function (hour, meridiem) {
  7049. if (hour === 12) {
  7050. hour = 0;
  7051. }
  7052. if (meridiem === 'enjing') {
  7053. return hour;
  7054. } else if (meridiem === 'siyang') {
  7055. return hour >= 11 ? hour : hour + 12;
  7056. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  7057. return hour + 12;
  7058. }
  7059. },
  7060. meridiem : function (hours, minutes, isLower) {
  7061. if (hours < 11) {
  7062. return 'enjing';
  7063. } else if (hours < 15) {
  7064. return 'siyang';
  7065. } else if (hours < 19) {
  7066. return 'sonten';
  7067. } else {
  7068. return 'ndalu';
  7069. }
  7070. },
  7071. calendar : {
  7072. sameDay : '[Dinten puniko pukul] LT',
  7073. nextDay : '[Mbenjang pukul] LT',
  7074. nextWeek : 'dddd [pukul] LT',
  7075. lastDay : '[Kala wingi pukul] LT',
  7076. lastWeek : 'dddd [kepengker pukul] LT',
  7077. sameElse : 'L'
  7078. },
  7079. relativeTime : {
  7080. future : 'wonten ing %s',
  7081. past : '%s ingkang kepengker',
  7082. s : 'sawetawis detik',
  7083. m : 'setunggal menit',
  7084. mm : '%d menit',
  7085. h : 'setunggal jam',
  7086. hh : '%d jam',
  7087. d : 'sedinten',
  7088. dd : '%d dinten',
  7089. M : 'sewulan',
  7090. MM : '%d wulan',
  7091. y : 'setaun',
  7092. yy : '%d taun'
  7093. },
  7094. week : {
  7095. dow : 1, // Monday is the first day of the week.
  7096. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7097. }
  7098. });
  7099. //! moment.js locale configuration
  7100. //! locale : Georgian (ka)
  7101. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  7102. var ka = moment__default.defineLocale('ka', {
  7103. months : {
  7104. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  7105. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  7106. },
  7107. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  7108. weekdays : {
  7109. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  7110. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  7111. isFormat: /(წინა|შემდეგ)/
  7112. },
  7113. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  7114. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  7115. longDateFormat : {
  7116. LT : 'h:mm A',
  7117. LTS : 'h:mm:ss A',
  7118. L : 'DD/MM/YYYY',
  7119. LL : 'D MMMM YYYY',
  7120. LLL : 'D MMMM YYYY h:mm A',
  7121. LLLL : 'dddd, D MMMM YYYY h:mm A'
  7122. },
  7123. calendar : {
  7124. sameDay : '[დღეს] LT[-ზე]',
  7125. nextDay : '[ხვალ] LT[-ზე]',
  7126. lastDay : '[გუშინ] LT[-ზე]',
  7127. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  7128. lastWeek : '[წინა] dddd LT-ზე',
  7129. sameElse : 'L'
  7130. },
  7131. relativeTime : {
  7132. future : function (s) {
  7133. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  7134. s.replace(/ი$/, 'ში') :
  7135. s + 'ში';
  7136. },
  7137. past : function (s) {
  7138. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  7139. return s.replace(/(ი|ე)$/, 'ის წინ');
  7140. }
  7141. if ((/წელი/).test(s)) {
  7142. return s.replace(/წელი$/, 'წლის წინ');
  7143. }
  7144. },
  7145. s : 'რამდენიმე წამი',
  7146. m : 'წუთი',
  7147. mm : '%d წუთი',
  7148. h : 'საათი',
  7149. hh : '%d საათი',
  7150. d : 'დღე',
  7151. dd : '%d დღე',
  7152. M : 'თვე',
  7153. MM : '%d თვე',
  7154. y : 'წელი',
  7155. yy : '%d წელი'
  7156. },
  7157. ordinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  7158. ordinal : function (number) {
  7159. if (number === 0) {
  7160. return number;
  7161. }
  7162. if (number === 1) {
  7163. return number + '-ლი';
  7164. }
  7165. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  7166. return 'მე-' + number;
  7167. }
  7168. return number + '-ე';
  7169. },
  7170. week : {
  7171. dow : 1,
  7172. doy : 7
  7173. }
  7174. });
  7175. //! moment.js locale configuration
  7176. //! locale : kazakh (kk)
  7177. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  7178. var kk__suffixes = {
  7179. 0: '-ші',
  7180. 1: '-ші',
  7181. 2: '-ші',
  7182. 3: '-ші',
  7183. 4: '-ші',
  7184. 5: '-ші',
  7185. 6: '-шы',
  7186. 7: '-ші',
  7187. 8: '-ші',
  7188. 9: '-шы',
  7189. 10: '-шы',
  7190. 20: '-шы',
  7191. 30: '-шы',
  7192. 40: '-шы',
  7193. 50: '-ші',
  7194. 60: '-шы',
  7195. 70: '-ші',
  7196. 80: '-ші',
  7197. 90: '-шы',
  7198. 100: '-ші'
  7199. };
  7200. var kk = moment__default.defineLocale('kk', {
  7201. months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  7202. monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  7203. weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  7204. weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  7205. weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  7206. longDateFormat : {
  7207. LT : 'HH:mm',
  7208. LTS : 'HH:mm:ss',
  7209. L : 'DD.MM.YYYY',
  7210. LL : 'D MMMM YYYY',
  7211. LLL : 'D MMMM YYYY HH:mm',
  7212. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7213. },
  7214. calendar : {
  7215. sameDay : '[Бүгін сағат] LT',
  7216. nextDay : '[Ертең сағат] LT',
  7217. nextWeek : 'dddd [сағат] LT',
  7218. lastDay : '[Кеше сағат] LT',
  7219. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  7220. sameElse : 'L'
  7221. },
  7222. relativeTime : {
  7223. future : '%s ішінде',
  7224. past : '%s бұрын',
  7225. s : 'бірнеше секунд',
  7226. m : 'бір минут',
  7227. mm : '%d минут',
  7228. h : 'бір сағат',
  7229. hh : '%d сағат',
  7230. d : 'бір күн',
  7231. dd : '%d күн',
  7232. M : 'бір ай',
  7233. MM : '%d ай',
  7234. y : 'бір жыл',
  7235. yy : '%d жыл'
  7236. },
  7237. ordinalParse: /\d{1,2}-(ші|шы)/,
  7238. ordinal : function (number) {
  7239. var a = number % 10,
  7240. b = number >= 100 ? 100 : null;
  7241. return number + (kk__suffixes[number] || kk__suffixes[a] || kk__suffixes[b]);
  7242. },
  7243. week : {
  7244. dow : 1, // Monday is the first day of the week.
  7245. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7246. }
  7247. });
  7248. //! moment.js locale configuration
  7249. //! locale : khmer (km)
  7250. //! author : Kruy Vanna : https://github.com/kruyvanna
  7251. var km = moment__default.defineLocale('km', {
  7252. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  7253. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  7254. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  7255. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  7256. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  7257. longDateFormat: {
  7258. LT: 'HH:mm',
  7259. LTS : 'HH:mm:ss',
  7260. L: 'DD/MM/YYYY',
  7261. LL: 'D MMMM YYYY',
  7262. LLL: 'D MMMM YYYY HH:mm',
  7263. LLLL: 'dddd, D MMMM YYYY HH:mm'
  7264. },
  7265. calendar: {
  7266. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  7267. nextDay: '[ស្អែក ម៉ោង] LT',
  7268. nextWeek: 'dddd [ម៉ោង] LT',
  7269. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  7270. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  7271. sameElse: 'L'
  7272. },
  7273. relativeTime: {
  7274. future: '%sទៀត',
  7275. past: '%sមុន',
  7276. s: 'ប៉ុន្មានវិនាទី',
  7277. m: 'មួយនាទី',
  7278. mm: '%d នាទី',
  7279. h: 'មួយម៉ោង',
  7280. hh: '%d ម៉ោង',
  7281. d: 'មួយថ្ងៃ',
  7282. dd: '%d ថ្ងៃ',
  7283. M: 'មួយខែ',
  7284. MM: '%d ខែ',
  7285. y: 'មួយឆ្នាំ',
  7286. yy: '%d ឆ្នាំ'
  7287. },
  7288. week: {
  7289. dow: 1, // Monday is the first day of the week.
  7290. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7291. }
  7292. });
  7293. //! moment.js locale configuration
  7294. //! locale : korean (ko)
  7295. //!
  7296. //! authors
  7297. //!
  7298. //! - Kyungwook, Park : https://github.com/kyungw00k
  7299. //! - Jeeeyul Lee <jeeeyul@gmail.com>
  7300. var ko = moment__default.defineLocale('ko', {
  7301. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  7302. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  7303. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  7304. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  7305. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  7306. longDateFormat : {
  7307. LT : 'A h시 m분',
  7308. LTS : 'A h시 m분 s초',
  7309. L : 'YYYY.MM.DD',
  7310. LL : 'YYYY년 MMMM D일',
  7311. LLL : 'YYYY년 MMMM D일 A h시 m분',
  7312. LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'
  7313. },
  7314. calendar : {
  7315. sameDay : '오늘 LT',
  7316. nextDay : '내일 LT',
  7317. nextWeek : 'dddd LT',
  7318. lastDay : '어제 LT',
  7319. lastWeek : '지난주 dddd LT',
  7320. sameElse : 'L'
  7321. },
  7322. relativeTime : {
  7323. future : '%s 후',
  7324. past : '%s 전',
  7325. s : '몇 초',
  7326. ss : '%d초',
  7327. m : '일분',
  7328. mm : '%d분',
  7329. h : '한 시간',
  7330. hh : '%d시간',
  7331. d : '하루',
  7332. dd : '%d일',
  7333. M : '한 달',
  7334. MM : '%d달',
  7335. y : '일 년',
  7336. yy : '%d년'
  7337. },
  7338. ordinalParse : /\d{1,2}일/,
  7339. ordinal : '%d일',
  7340. meridiemParse : /오전|오후/,
  7341. isPM : function (token) {
  7342. return token === '오후';
  7343. },
  7344. meridiem : function (hour, minute, isUpper) {
  7345. return hour < 12 ? '오전' : '오후';
  7346. }
  7347. });
  7348. //! moment.js locale configuration
  7349. //! locale : kyrgyz (ky)
  7350. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  7351. var ky__suffixes = {
  7352. 0: '-чү',
  7353. 1: '-чи',
  7354. 2: '-чи',
  7355. 3: '-чү',
  7356. 4: '-чү',
  7357. 5: '-чи',
  7358. 6: '-чы',
  7359. 7: '-чи',
  7360. 8: '-чи',
  7361. 9: '-чу',
  7362. 10: '-чу',
  7363. 20: '-чы',
  7364. 30: '-чу',
  7365. 40: '-чы',
  7366. 50: '-чү',
  7367. 60: '-чы',
  7368. 70: '-чи',
  7369. 80: '-чи',
  7370. 90: '-чу',
  7371. 100: '-чү'
  7372. };
  7373. var ky = moment__default.defineLocale('ky', {
  7374. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  7375. monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  7376. weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  7377. weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  7378. weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  7379. longDateFormat : {
  7380. LT : 'HH:mm',
  7381. LTS : 'HH:mm:ss',
  7382. L : 'DD.MM.YYYY',
  7383. LL : 'D MMMM YYYY',
  7384. LLL : 'D MMMM YYYY HH:mm',
  7385. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7386. },
  7387. calendar : {
  7388. sameDay : '[Бүгүн саат] LT',
  7389. nextDay : '[Эртең саат] LT',
  7390. nextWeek : 'dddd [саат] LT',
  7391. lastDay : '[Кече саат] LT',
  7392. lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
  7393. sameElse : 'L'
  7394. },
  7395. relativeTime : {
  7396. future : '%s ичинде',
  7397. past : '%s мурун',
  7398. s : 'бирнече секунд',
  7399. m : 'бир мүнөт',
  7400. mm : '%d мүнөт',
  7401. h : 'бир саат',
  7402. hh : '%d саат',
  7403. d : 'бир күн',
  7404. dd : '%d күн',
  7405. M : 'бир ай',
  7406. MM : '%d ай',
  7407. y : 'бир жыл',
  7408. yy : '%d жыл'
  7409. },
  7410. ordinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  7411. ordinal : function (number) {
  7412. var a = number % 10,
  7413. b = number >= 100 ? 100 : null;
  7414. return number + (ky__suffixes[number] || ky__suffixes[a] || ky__suffixes[b]);
  7415. },
  7416. week : {
  7417. dow : 1, // Monday is the first day of the week.
  7418. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7419. }
  7420. });
  7421. //! moment.js locale configuration
  7422. //! locale : Luxembourgish (lb)
  7423. //! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
  7424. function lb__processRelativeTime(number, withoutSuffix, key, isFuture) {
  7425. var format = {
  7426. 'm': ['eng Minutt', 'enger Minutt'],
  7427. 'h': ['eng Stonn', 'enger Stonn'],
  7428. 'd': ['een Dag', 'engem Dag'],
  7429. 'M': ['ee Mount', 'engem Mount'],
  7430. 'y': ['ee Joer', 'engem Joer']
  7431. };
  7432. return withoutSuffix ? format[key][0] : format[key][1];
  7433. }
  7434. function processFutureTime(string) {
  7435. var number = string.substr(0, string.indexOf(' '));
  7436. if (eifelerRegelAppliesToNumber(number)) {
  7437. return 'a ' + string;
  7438. }
  7439. return 'an ' + string;
  7440. }
  7441. function processPastTime(string) {
  7442. var number = string.substr(0, string.indexOf(' '));
  7443. if (eifelerRegelAppliesToNumber(number)) {
  7444. return 'viru ' + string;
  7445. }
  7446. return 'virun ' + string;
  7447. }
  7448. /**
  7449. * Returns true if the word before the given number loses the '-n' ending.
  7450. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  7451. *
  7452. * @param number {integer}
  7453. * @returns {boolean}
  7454. */
  7455. function eifelerRegelAppliesToNumber(number) {
  7456. number = parseInt(number, 10);
  7457. if (isNaN(number)) {
  7458. return false;
  7459. }
  7460. if (number < 0) {
  7461. // Negative Number --> always true
  7462. return true;
  7463. } else if (number < 10) {
  7464. // Only 1 digit
  7465. if (4 <= number && number <= 7) {
  7466. return true;
  7467. }
  7468. return false;
  7469. } else if (number < 100) {
  7470. // 2 digits
  7471. var lastDigit = number % 10, firstDigit = number / 10;
  7472. if (lastDigit === 0) {
  7473. return eifelerRegelAppliesToNumber(firstDigit);
  7474. }
  7475. return eifelerRegelAppliesToNumber(lastDigit);
  7476. } else if (number < 10000) {
  7477. // 3 or 4 digits --> recursively check first digit
  7478. while (number >= 10) {
  7479. number = number / 10;
  7480. }
  7481. return eifelerRegelAppliesToNumber(number);
  7482. } else {
  7483. // Anything larger than 4 digits: recursively check first n-3 digits
  7484. number = number / 1000;
  7485. return eifelerRegelAppliesToNumber(number);
  7486. }
  7487. }
  7488. var lb = moment__default.defineLocale('lb', {
  7489. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  7490. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  7491. monthsParseExact : true,
  7492. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  7493. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  7494. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  7495. weekdaysParseExact : true,
  7496. longDateFormat: {
  7497. LT: 'H:mm [Auer]',
  7498. LTS: 'H:mm:ss [Auer]',
  7499. L: 'DD.MM.YYYY',
  7500. LL: 'D. MMMM YYYY',
  7501. LLL: 'D. MMMM YYYY H:mm [Auer]',
  7502. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  7503. },
  7504. calendar: {
  7505. sameDay: '[Haut um] LT',
  7506. sameElse: 'L',
  7507. nextDay: '[Muer um] LT',
  7508. nextWeek: 'dddd [um] LT',
  7509. lastDay: '[Gëschter um] LT',
  7510. lastWeek: function () {
  7511. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  7512. switch (this.day()) {
  7513. case 2:
  7514. case 4:
  7515. return '[Leschten] dddd [um] LT';
  7516. default:
  7517. return '[Leschte] dddd [um] LT';
  7518. }
  7519. }
  7520. },
  7521. relativeTime : {
  7522. future : processFutureTime,
  7523. past : processPastTime,
  7524. s : 'e puer Sekonnen',
  7525. m : lb__processRelativeTime,
  7526. mm : '%d Minutten',
  7527. h : lb__processRelativeTime,
  7528. hh : '%d Stonnen',
  7529. d : lb__processRelativeTime,
  7530. dd : '%d Deeg',
  7531. M : lb__processRelativeTime,
  7532. MM : '%d Méint',
  7533. y : lb__processRelativeTime,
  7534. yy : '%d Joer'
  7535. },
  7536. ordinalParse: /\d{1,2}\./,
  7537. ordinal: '%d.',
  7538. week: {
  7539. dow: 1, // Monday is the first day of the week.
  7540. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7541. }
  7542. });
  7543. //! moment.js locale configuration
  7544. //! locale : lao (lo)
  7545. //! author : Ryan Hart : https://github.com/ryanhart2
  7546. var lo = moment__default.defineLocale('lo', {
  7547. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  7548. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  7549. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  7550. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  7551. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  7552. weekdaysParseExact : true,
  7553. longDateFormat : {
  7554. LT : 'HH:mm',
  7555. LTS : 'HH:mm:ss',
  7556. L : 'DD/MM/YYYY',
  7557. LL : 'D MMMM YYYY',
  7558. LLL : 'D MMMM YYYY HH:mm',
  7559. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  7560. },
  7561. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  7562. isPM: function (input) {
  7563. return input === 'ຕອນແລງ';
  7564. },
  7565. meridiem : function (hour, minute, isLower) {
  7566. if (hour < 12) {
  7567. return 'ຕອນເຊົ້າ';
  7568. } else {
  7569. return 'ຕອນແລງ';
  7570. }
  7571. },
  7572. calendar : {
  7573. sameDay : '[ມື້ນີ້ເວລາ] LT',
  7574. nextDay : '[ມື້ອື່ນເວລາ] LT',
  7575. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  7576. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  7577. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  7578. sameElse : 'L'
  7579. },
  7580. relativeTime : {
  7581. future : 'ອີກ %s',
  7582. past : '%sຜ່ານມາ',
  7583. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  7584. m : '1 ນາທີ',
  7585. mm : '%d ນາທີ',
  7586. h : '1 ຊົ່ວໂມງ',
  7587. hh : '%d ຊົ່ວໂມງ',
  7588. d : '1 ມື້',
  7589. dd : '%d ມື້',
  7590. M : '1 ເດືອນ',
  7591. MM : '%d ເດືອນ',
  7592. y : '1 ປີ',
  7593. yy : '%d ປີ'
  7594. },
  7595. ordinalParse: /(ທີ່)\d{1,2}/,
  7596. ordinal : function (number) {
  7597. return 'ທີ່' + number;
  7598. }
  7599. });
  7600. //! moment.js locale configuration
  7601. //! locale : Lithuanian (lt)
  7602. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  7603. var lt__units = {
  7604. 'm' : 'minutė_minutės_minutę',
  7605. 'mm': 'minutės_minučių_minutes',
  7606. 'h' : 'valanda_valandos_valandą',
  7607. 'hh': 'valandos_valandų_valandas',
  7608. 'd' : 'diena_dienos_dieną',
  7609. 'dd': 'dienos_dienų_dienas',
  7610. 'M' : 'mėnuo_mėnesio_mėnesį',
  7611. 'MM': 'mėnesiai_mėnesių_mėnesius',
  7612. 'y' : 'metai_metų_metus',
  7613. 'yy': 'metai_metų_metus'
  7614. };
  7615. function translateSeconds(number, withoutSuffix, key, isFuture) {
  7616. if (withoutSuffix) {
  7617. return 'kelios sekundės';
  7618. } else {
  7619. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  7620. }
  7621. }
  7622. function translateSingular(number, withoutSuffix, key, isFuture) {
  7623. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  7624. }
  7625. function special(number) {
  7626. return number % 10 === 0 || (number > 10 && number < 20);
  7627. }
  7628. function forms(key) {
  7629. return lt__units[key].split('_');
  7630. }
  7631. function lt__translate(number, withoutSuffix, key, isFuture) {
  7632. var result = number + ' ';
  7633. if (number === 1) {
  7634. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  7635. } else if (withoutSuffix) {
  7636. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  7637. } else {
  7638. if (isFuture) {
  7639. return result + forms(key)[1];
  7640. } else {
  7641. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  7642. }
  7643. }
  7644. }
  7645. var lt = moment__default.defineLocale('lt', {
  7646. months : {
  7647. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  7648. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_')
  7649. },
  7650. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  7651. weekdays : {
  7652. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  7653. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  7654. isFormat: /dddd HH:mm/
  7655. },
  7656. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  7657. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  7658. weekdaysParseExact : true,
  7659. longDateFormat : {
  7660. LT : 'HH:mm',
  7661. LTS : 'HH:mm:ss',
  7662. L : 'YYYY-MM-DD',
  7663. LL : 'YYYY [m.] MMMM D [d.]',
  7664. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  7665. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  7666. l : 'YYYY-MM-DD',
  7667. ll : 'YYYY [m.] MMMM D [d.]',
  7668. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  7669. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  7670. },
  7671. calendar : {
  7672. sameDay : '[Šiandien] LT',
  7673. nextDay : '[Rytoj] LT',
  7674. nextWeek : 'dddd LT',
  7675. lastDay : '[Vakar] LT',
  7676. lastWeek : '[Praėjusį] dddd LT',
  7677. sameElse : 'L'
  7678. },
  7679. relativeTime : {
  7680. future : 'po %s',
  7681. past : 'prieš %s',
  7682. s : translateSeconds,
  7683. m : translateSingular,
  7684. mm : lt__translate,
  7685. h : translateSingular,
  7686. hh : lt__translate,
  7687. d : translateSingular,
  7688. dd : lt__translate,
  7689. M : translateSingular,
  7690. MM : lt__translate,
  7691. y : translateSingular,
  7692. yy : lt__translate
  7693. },
  7694. ordinalParse: /\d{1,2}-oji/,
  7695. ordinal : function (number) {
  7696. return number + '-oji';
  7697. },
  7698. week : {
  7699. dow : 1, // Monday is the first day of the week.
  7700. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7701. }
  7702. });
  7703. //! moment.js locale configuration
  7704. //! locale : latvian (lv)
  7705. //! author : Kristaps Karlsons : https://github.com/skakri
  7706. //! author : Jānis Elmeris : https://github.com/JanisE
  7707. var lv__units = {
  7708. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  7709. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  7710. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  7711. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  7712. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  7713. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  7714. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  7715. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  7716. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  7717. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  7718. };
  7719. /**
  7720. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  7721. */
  7722. function lv__format(forms, number, withoutSuffix) {
  7723. if (withoutSuffix) {
  7724. // E.g. "21 minūte", "3 minūtes".
  7725. return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
  7726. } else {
  7727. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  7728. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  7729. return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
  7730. }
  7731. }
  7732. function lv__relativeTimeWithPlural(number, withoutSuffix, key) {
  7733. return number + ' ' + lv__format(lv__units[key], number, withoutSuffix);
  7734. }
  7735. function relativeTimeWithSingular(number, withoutSuffix, key) {
  7736. return lv__format(lv__units[key], number, withoutSuffix);
  7737. }
  7738. function relativeSeconds(number, withoutSuffix) {
  7739. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  7740. }
  7741. var lv = moment__default.defineLocale('lv', {
  7742. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  7743. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  7744. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  7745. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  7746. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  7747. weekdaysParseExact : true,
  7748. longDateFormat : {
  7749. LT : 'HH:mm',
  7750. LTS : 'HH:mm:ss',
  7751. L : 'DD.MM.YYYY.',
  7752. LL : 'YYYY. [gada] D. MMMM',
  7753. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  7754. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  7755. },
  7756. calendar : {
  7757. sameDay : '[Šodien pulksten] LT',
  7758. nextDay : '[Rīt pulksten] LT',
  7759. nextWeek : 'dddd [pulksten] LT',
  7760. lastDay : '[Vakar pulksten] LT',
  7761. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  7762. sameElse : 'L'
  7763. },
  7764. relativeTime : {
  7765. future : 'pēc %s',
  7766. past : 'pirms %s',
  7767. s : relativeSeconds,
  7768. m : relativeTimeWithSingular,
  7769. mm : lv__relativeTimeWithPlural,
  7770. h : relativeTimeWithSingular,
  7771. hh : lv__relativeTimeWithPlural,
  7772. d : relativeTimeWithSingular,
  7773. dd : lv__relativeTimeWithPlural,
  7774. M : relativeTimeWithSingular,
  7775. MM : lv__relativeTimeWithPlural,
  7776. y : relativeTimeWithSingular,
  7777. yy : lv__relativeTimeWithPlural
  7778. },
  7779. ordinalParse: /\d{1,2}\./,
  7780. ordinal : '%d.',
  7781. week : {
  7782. dow : 1, // Monday is the first day of the week.
  7783. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7784. }
  7785. });
  7786. //! moment.js locale configuration
  7787. //! locale : Montenegrin (me)
  7788. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  7789. var me__translator = {
  7790. words: { //Different grammatical cases
  7791. m: ['jedan minut', 'jednog minuta'],
  7792. mm: ['minut', 'minuta', 'minuta'],
  7793. h: ['jedan sat', 'jednog sata'],
  7794. hh: ['sat', 'sata', 'sati'],
  7795. dd: ['dan', 'dana', 'dana'],
  7796. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  7797. yy: ['godina', 'godine', 'godina']
  7798. },
  7799. correctGrammaticalCase: function (number, wordKey) {
  7800. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  7801. },
  7802. translate: function (number, withoutSuffix, key) {
  7803. var wordKey = me__translator.words[key];
  7804. if (key.length === 1) {
  7805. return withoutSuffix ? wordKey[0] : wordKey[1];
  7806. } else {
  7807. return number + ' ' + me__translator.correctGrammaticalCase(number, wordKey);
  7808. }
  7809. }
  7810. };
  7811. var me = moment__default.defineLocale('me', {
  7812. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  7813. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  7814. monthsParseExact : true,
  7815. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  7816. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  7817. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  7818. weekdaysParseExact : true,
  7819. longDateFormat: {
  7820. LT: 'H:mm',
  7821. LTS : 'H:mm:ss',
  7822. L: 'DD. MM. YYYY',
  7823. LL: 'D. MMMM YYYY',
  7824. LLL: 'D. MMMM YYYY H:mm',
  7825. LLLL: 'dddd, D. MMMM YYYY H:mm'
  7826. },
  7827. calendar: {
  7828. sameDay: '[danas u] LT',
  7829. nextDay: '[sjutra u] LT',
  7830. nextWeek: function () {
  7831. switch (this.day()) {
  7832. case 0:
  7833. return '[u] [nedjelju] [u] LT';
  7834. case 3:
  7835. return '[u] [srijedu] [u] LT';
  7836. case 6:
  7837. return '[u] [subotu] [u] LT';
  7838. case 1:
  7839. case 2:
  7840. case 4:
  7841. case 5:
  7842. return '[u] dddd [u] LT';
  7843. }
  7844. },
  7845. lastDay : '[juče u] LT',
  7846. lastWeek : function () {
  7847. var lastWeekDays = [
  7848. '[prošle] [nedjelje] [u] LT',
  7849. '[prošlog] [ponedjeljka] [u] LT',
  7850. '[prošlog] [utorka] [u] LT',
  7851. '[prošle] [srijede] [u] LT',
  7852. '[prošlog] [četvrtka] [u] LT',
  7853. '[prošlog] [petka] [u] LT',
  7854. '[prošle] [subote] [u] LT'
  7855. ];
  7856. return lastWeekDays[this.day()];
  7857. },
  7858. sameElse : 'L'
  7859. },
  7860. relativeTime : {
  7861. future : 'za %s',
  7862. past : 'prije %s',
  7863. s : 'nekoliko sekundi',
  7864. m : me__translator.translate,
  7865. mm : me__translator.translate,
  7866. h : me__translator.translate,
  7867. hh : me__translator.translate,
  7868. d : 'dan',
  7869. dd : me__translator.translate,
  7870. M : 'mjesec',
  7871. MM : me__translator.translate,
  7872. y : 'godinu',
  7873. yy : me__translator.translate
  7874. },
  7875. ordinalParse: /\d{1,2}\./,
  7876. ordinal : '%d.',
  7877. week : {
  7878. dow : 1, // Monday is the first day of the week.
  7879. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7880. }
  7881. });
  7882. //! moment.js locale configuration
  7883. //! locale : macedonian (mk)
  7884. //! author : Borislav Mickov : https://github.com/B0k0
  7885. var mk = moment__default.defineLocale('mk', {
  7886. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  7887. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  7888. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  7889. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  7890. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  7891. longDateFormat : {
  7892. LT : 'H:mm',
  7893. LTS : 'H:mm:ss',
  7894. L : 'D.MM.YYYY',
  7895. LL : 'D MMMM YYYY',
  7896. LLL : 'D MMMM YYYY H:mm',
  7897. LLLL : 'dddd, D MMMM YYYY H:mm'
  7898. },
  7899. calendar : {
  7900. sameDay : '[Денес во] LT',
  7901. nextDay : '[Утре во] LT',
  7902. nextWeek : '[Во] dddd [во] LT',
  7903. lastDay : '[Вчера во] LT',
  7904. lastWeek : function () {
  7905. switch (this.day()) {
  7906. case 0:
  7907. case 3:
  7908. case 6:
  7909. return '[Изминатата] dddd [во] LT';
  7910. case 1:
  7911. case 2:
  7912. case 4:
  7913. case 5:
  7914. return '[Изминатиот] dddd [во] LT';
  7915. }
  7916. },
  7917. sameElse : 'L'
  7918. },
  7919. relativeTime : {
  7920. future : 'после %s',
  7921. past : 'пред %s',
  7922. s : 'неколку секунди',
  7923. m : 'минута',
  7924. mm : '%d минути',
  7925. h : 'час',
  7926. hh : '%d часа',
  7927. d : 'ден',
  7928. dd : '%d дена',
  7929. M : 'месец',
  7930. MM : '%d месеци',
  7931. y : 'година',
  7932. yy : '%d години'
  7933. },
  7934. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  7935. ordinal : function (number) {
  7936. var lastDigit = number % 10,
  7937. last2Digits = number % 100;
  7938. if (number === 0) {
  7939. return number + '-ев';
  7940. } else if (last2Digits === 0) {
  7941. return number + '-ен';
  7942. } else if (last2Digits > 10 && last2Digits < 20) {
  7943. return number + '-ти';
  7944. } else if (lastDigit === 1) {
  7945. return number + '-ви';
  7946. } else if (lastDigit === 2) {
  7947. return number + '-ри';
  7948. } else if (lastDigit === 7 || lastDigit === 8) {
  7949. return number + '-ми';
  7950. } else {
  7951. return number + '-ти';
  7952. }
  7953. },
  7954. week : {
  7955. dow : 1, // Monday is the first day of the week.
  7956. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7957. }
  7958. });
  7959. //! moment.js locale configuration
  7960. //! locale : malayalam (ml)
  7961. //! author : Floyd Pink : https://github.com/floydpink
  7962. var ml = moment__default.defineLocale('ml', {
  7963. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  7964. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  7965. monthsParseExact : true,
  7966. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  7967. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  7968. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  7969. longDateFormat : {
  7970. LT : 'A h:mm -നു',
  7971. LTS : 'A h:mm:ss -നു',
  7972. L : 'DD/MM/YYYY',
  7973. LL : 'D MMMM YYYY',
  7974. LLL : 'D MMMM YYYY, A h:mm -നു',
  7975. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  7976. },
  7977. calendar : {
  7978. sameDay : '[ഇന്ന്] LT',
  7979. nextDay : '[നാളെ] LT',
  7980. nextWeek : 'dddd, LT',
  7981. lastDay : '[ഇന്നലെ] LT',
  7982. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  7983. sameElse : 'L'
  7984. },
  7985. relativeTime : {
  7986. future : '%s കഴിഞ്ഞ്',
  7987. past : '%s മുൻപ്',
  7988. s : 'അൽപ നിമിഷങ്ങൾ',
  7989. m : 'ഒരു മിനിറ്റ്',
  7990. mm : '%d മിനിറ്റ്',
  7991. h : 'ഒരു മണിക്കൂർ',
  7992. hh : '%d മണിക്കൂർ',
  7993. d : 'ഒരു ദിവസം',
  7994. dd : '%d ദിവസം',
  7995. M : 'ഒരു മാസം',
  7996. MM : '%d മാസം',
  7997. y : 'ഒരു വർഷം',
  7998. yy : '%d വർഷം'
  7999. },
  8000. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  8001. meridiemHour : function (hour, meridiem) {
  8002. if (hour === 12) {
  8003. hour = 0;
  8004. }
  8005. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  8006. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  8007. meridiem === 'വൈകുന്നേരം') {
  8008. return hour + 12;
  8009. } else {
  8010. return hour;
  8011. }
  8012. },
  8013. meridiem : function (hour, minute, isLower) {
  8014. if (hour < 4) {
  8015. return 'രാത്രി';
  8016. } else if (hour < 12) {
  8017. return 'രാവിലെ';
  8018. } else if (hour < 17) {
  8019. return 'ഉച്ച കഴിഞ്ഞ്';
  8020. } else if (hour < 20) {
  8021. return 'വൈകുന്നേരം';
  8022. } else {
  8023. return 'രാത്രി';
  8024. }
  8025. }
  8026. });
  8027. //! moment.js locale configuration
  8028. //! locale : Marathi (mr)
  8029. //! author : Harshad Kale : https://github.com/kalehv
  8030. //! author : Vivek Athalye : https://github.com/vnathalye
  8031. var mr__symbolMap = {
  8032. '1': '१',
  8033. '2': '२',
  8034. '3': '३',
  8035. '4': '४',
  8036. '5': '५',
  8037. '6': '६',
  8038. '7': '७',
  8039. '8': '८',
  8040. '9': '९',
  8041. '0': '०'
  8042. },
  8043. mr__numberMap = {
  8044. '१': '1',
  8045. '२': '2',
  8046. '३': '3',
  8047. '४': '4',
  8048. '५': '5',
  8049. '६': '6',
  8050. '७': '7',
  8051. '८': '8',
  8052. '९': '9',
  8053. '०': '0'
  8054. };
  8055. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  8056. {
  8057. var output = '';
  8058. if (withoutSuffix) {
  8059. switch (string) {
  8060. case 's': output = 'काही सेकंद'; break;
  8061. case 'm': output = 'एक मिनिट'; break;
  8062. case 'mm': output = '%d मिनिटे'; break;
  8063. case 'h': output = 'एक तास'; break;
  8064. case 'hh': output = '%d तास'; break;
  8065. case 'd': output = 'एक दिवस'; break;
  8066. case 'dd': output = '%d दिवस'; break;
  8067. case 'M': output = 'एक महिना'; break;
  8068. case 'MM': output = '%d महिने'; break;
  8069. case 'y': output = 'एक वर्ष'; break;
  8070. case 'yy': output = '%d वर्षे'; break;
  8071. }
  8072. }
  8073. else {
  8074. switch (string) {
  8075. case 's': output = 'काही सेकंदां'; break;
  8076. case 'm': output = 'एका मिनिटा'; break;
  8077. case 'mm': output = '%d मिनिटां'; break;
  8078. case 'h': output = 'एका तासा'; break;
  8079. case 'hh': output = '%d तासां'; break;
  8080. case 'd': output = 'एका दिवसा'; break;
  8081. case 'dd': output = '%d दिवसां'; break;
  8082. case 'M': output = 'एका महिन्या'; break;
  8083. case 'MM': output = '%d महिन्यां'; break;
  8084. case 'y': output = 'एका वर्षा'; break;
  8085. case 'yy': output = '%d वर्षां'; break;
  8086. }
  8087. }
  8088. return output.replace(/%d/i, number);
  8089. }
  8090. var mr = moment__default.defineLocale('mr', {
  8091. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  8092. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  8093. monthsParseExact : true,
  8094. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  8095. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  8096. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  8097. longDateFormat : {
  8098. LT : 'A h:mm वाजता',
  8099. LTS : 'A h:mm:ss वाजता',
  8100. L : 'DD/MM/YYYY',
  8101. LL : 'D MMMM YYYY',
  8102. LLL : 'D MMMM YYYY, A h:mm वाजता',
  8103. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  8104. },
  8105. calendar : {
  8106. sameDay : '[आज] LT',
  8107. nextDay : '[उद्या] LT',
  8108. nextWeek : 'dddd, LT',
  8109. lastDay : '[काल] LT',
  8110. lastWeek: '[मागील] dddd, LT',
  8111. sameElse : 'L'
  8112. },
  8113. relativeTime : {
  8114. future: '%sमध्ये',
  8115. past: '%sपूर्वी',
  8116. s: relativeTimeMr,
  8117. m: relativeTimeMr,
  8118. mm: relativeTimeMr,
  8119. h: relativeTimeMr,
  8120. hh: relativeTimeMr,
  8121. d: relativeTimeMr,
  8122. dd: relativeTimeMr,
  8123. M: relativeTimeMr,
  8124. MM: relativeTimeMr,
  8125. y: relativeTimeMr,
  8126. yy: relativeTimeMr
  8127. },
  8128. preparse: function (string) {
  8129. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  8130. return mr__numberMap[match];
  8131. });
  8132. },
  8133. postformat: function (string) {
  8134. return string.replace(/\d/g, function (match) {
  8135. return mr__symbolMap[match];
  8136. });
  8137. },
  8138. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  8139. meridiemHour : function (hour, meridiem) {
  8140. if (hour === 12) {
  8141. hour = 0;
  8142. }
  8143. if (meridiem === 'रात्री') {
  8144. return hour < 4 ? hour : hour + 12;
  8145. } else if (meridiem === 'सकाळी') {
  8146. return hour;
  8147. } else if (meridiem === 'दुपारी') {
  8148. return hour >= 10 ? hour : hour + 12;
  8149. } else if (meridiem === 'सायंकाळी') {
  8150. return hour + 12;
  8151. }
  8152. },
  8153. meridiem: function (hour, minute, isLower) {
  8154. if (hour < 4) {
  8155. return 'रात्री';
  8156. } else if (hour < 10) {
  8157. return 'सकाळी';
  8158. } else if (hour < 17) {
  8159. return 'दुपारी';
  8160. } else if (hour < 20) {
  8161. return 'सायंकाळी';
  8162. } else {
  8163. return 'रात्री';
  8164. }
  8165. },
  8166. week : {
  8167. dow : 0, // Sunday is the first day of the week.
  8168. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8169. }
  8170. });
  8171. //! moment.js locale configuration
  8172. //! locale : Bahasa Malaysia (ms-MY)
  8173. //! author : Weldan Jamili : https://github.com/weldan
  8174. var ms_my = moment__default.defineLocale('ms-my', {
  8175. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  8176. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  8177. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  8178. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  8179. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  8180. longDateFormat : {
  8181. LT : 'HH.mm',
  8182. LTS : 'HH.mm.ss',
  8183. L : 'DD/MM/YYYY',
  8184. LL : 'D MMMM YYYY',
  8185. LLL : 'D MMMM YYYY [pukul] HH.mm',
  8186. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  8187. },
  8188. meridiemParse: /pagi|tengahari|petang|malam/,
  8189. meridiemHour: function (hour, meridiem) {
  8190. if (hour === 12) {
  8191. hour = 0;
  8192. }
  8193. if (meridiem === 'pagi') {
  8194. return hour;
  8195. } else if (meridiem === 'tengahari') {
  8196. return hour >= 11 ? hour : hour + 12;
  8197. } else if (meridiem === 'petang' || meridiem === 'malam') {
  8198. return hour + 12;
  8199. }
  8200. },
  8201. meridiem : function (hours, minutes, isLower) {
  8202. if (hours < 11) {
  8203. return 'pagi';
  8204. } else if (hours < 15) {
  8205. return 'tengahari';
  8206. } else if (hours < 19) {
  8207. return 'petang';
  8208. } else {
  8209. return 'malam';
  8210. }
  8211. },
  8212. calendar : {
  8213. sameDay : '[Hari ini pukul] LT',
  8214. nextDay : '[Esok pukul] LT',
  8215. nextWeek : 'dddd [pukul] LT',
  8216. lastDay : '[Kelmarin pukul] LT',
  8217. lastWeek : 'dddd [lepas pukul] LT',
  8218. sameElse : 'L'
  8219. },
  8220. relativeTime : {
  8221. future : 'dalam %s',
  8222. past : '%s yang lepas',
  8223. s : 'beberapa saat',
  8224. m : 'seminit',
  8225. mm : '%d minit',
  8226. h : 'sejam',
  8227. hh : '%d jam',
  8228. d : 'sehari',
  8229. dd : '%d hari',
  8230. M : 'sebulan',
  8231. MM : '%d bulan',
  8232. y : 'setahun',
  8233. yy : '%d tahun'
  8234. },
  8235. week : {
  8236. dow : 1, // Monday is the first day of the week.
  8237. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8238. }
  8239. });
  8240. //! moment.js locale configuration
  8241. //! locale : Bahasa Malaysia (ms-MY)
  8242. //! author : Weldan Jamili : https://github.com/weldan
  8243. var locale_ms = moment__default.defineLocale('ms', {
  8244. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  8245. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  8246. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  8247. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  8248. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  8249. longDateFormat : {
  8250. LT : 'HH.mm',
  8251. LTS : 'HH.mm.ss',
  8252. L : 'DD/MM/YYYY',
  8253. LL : 'D MMMM YYYY',
  8254. LLL : 'D MMMM YYYY [pukul] HH.mm',
  8255. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  8256. },
  8257. meridiemParse: /pagi|tengahari|petang|malam/,
  8258. meridiemHour: function (hour, meridiem) {
  8259. if (hour === 12) {
  8260. hour = 0;
  8261. }
  8262. if (meridiem === 'pagi') {
  8263. return hour;
  8264. } else if (meridiem === 'tengahari') {
  8265. return hour >= 11 ? hour : hour + 12;
  8266. } else if (meridiem === 'petang' || meridiem === 'malam') {
  8267. return hour + 12;
  8268. }
  8269. },
  8270. meridiem : function (hours, minutes, isLower) {
  8271. if (hours < 11) {
  8272. return 'pagi';
  8273. } else if (hours < 15) {
  8274. return 'tengahari';
  8275. } else if (hours < 19) {
  8276. return 'petang';
  8277. } else {
  8278. return 'malam';
  8279. }
  8280. },
  8281. calendar : {
  8282. sameDay : '[Hari ini pukul] LT',
  8283. nextDay : '[Esok pukul] LT',
  8284. nextWeek : 'dddd [pukul] LT',
  8285. lastDay : '[Kelmarin pukul] LT',
  8286. lastWeek : 'dddd [lepas pukul] LT',
  8287. sameElse : 'L'
  8288. },
  8289. relativeTime : {
  8290. future : 'dalam %s',
  8291. past : '%s yang lepas',
  8292. s : 'beberapa saat',
  8293. m : 'seminit',
  8294. mm : '%d minit',
  8295. h : 'sejam',
  8296. hh : '%d jam',
  8297. d : 'sehari',
  8298. dd : '%d hari',
  8299. M : 'sebulan',
  8300. MM : '%d bulan',
  8301. y : 'setahun',
  8302. yy : '%d tahun'
  8303. },
  8304. week : {
  8305. dow : 1, // Monday is the first day of the week.
  8306. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8307. }
  8308. });
  8309. //! moment.js locale configuration
  8310. //! locale : Burmese (my)
  8311. //! author : Squar team, mysquar.com
  8312. var my__symbolMap = {
  8313. '1': '၁',
  8314. '2': '၂',
  8315. '3': '၃',
  8316. '4': '၄',
  8317. '5': '၅',
  8318. '6': '၆',
  8319. '7': '၇',
  8320. '8': '၈',
  8321. '9': '၉',
  8322. '0': '၀'
  8323. }, my__numberMap = {
  8324. '၁': '1',
  8325. '၂': '2',
  8326. '၃': '3',
  8327. '၄': '4',
  8328. '၅': '5',
  8329. '၆': '6',
  8330. '၇': '7',
  8331. '၈': '8',
  8332. '၉': '9',
  8333. '၀': '0'
  8334. };
  8335. var my = moment__default.defineLocale('my', {
  8336. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  8337. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  8338. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  8339. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  8340. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  8341. longDateFormat: {
  8342. LT: 'HH:mm',
  8343. LTS: 'HH:mm:ss',
  8344. L: 'DD/MM/YYYY',
  8345. LL: 'D MMMM YYYY',
  8346. LLL: 'D MMMM YYYY HH:mm',
  8347. LLLL: 'dddd D MMMM YYYY HH:mm'
  8348. },
  8349. calendar: {
  8350. sameDay: '[ယနေ.] LT [မှာ]',
  8351. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  8352. nextWeek: 'dddd LT [မှာ]',
  8353. lastDay: '[မနေ.က] LT [မှာ]',
  8354. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  8355. sameElse: 'L'
  8356. },
  8357. relativeTime: {
  8358. future: 'လာမည့် %s မှာ',
  8359. past: 'လွန်ခဲ့သော %s က',
  8360. s: 'စက္ကန်.အနည်းငယ်',
  8361. m: 'တစ်မိနစ်',
  8362. mm: '%d မိနစ်',
  8363. h: 'တစ်နာရီ',
  8364. hh: '%d နာရီ',
  8365. d: 'တစ်ရက်',
  8366. dd: '%d ရက်',
  8367. M: 'တစ်လ',
  8368. MM: '%d လ',
  8369. y: 'တစ်နှစ်',
  8370. yy: '%d နှစ်'
  8371. },
  8372. preparse: function (string) {
  8373. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  8374. return my__numberMap[match];
  8375. });
  8376. },
  8377. postformat: function (string) {
  8378. return string.replace(/\d/g, function (match) {
  8379. return my__symbolMap[match];
  8380. });
  8381. },
  8382. week: {
  8383. dow: 1, // Monday is the first day of the week.
  8384. doy: 4 // The week that contains Jan 1st is the first week of the year.
  8385. }
  8386. });
  8387. //! moment.js locale configuration
  8388. //! locale : norwegian bokmål (nb)
  8389. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  8390. //! Sigurd Gartmann : https://github.com/sigurdga
  8391. var nb = moment__default.defineLocale('nb', {
  8392. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  8393. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  8394. monthsParseExact : true,
  8395. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  8396. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  8397. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  8398. weekdaysParseExact : true,
  8399. longDateFormat : {
  8400. LT : 'HH:mm',
  8401. LTS : 'HH:mm:ss',
  8402. L : 'DD.MM.YYYY',
  8403. LL : 'D. MMMM YYYY',
  8404. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  8405. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  8406. },
  8407. calendar : {
  8408. sameDay: '[i dag kl.] LT',
  8409. nextDay: '[i morgen kl.] LT',
  8410. nextWeek: 'dddd [kl.] LT',
  8411. lastDay: '[i går kl.] LT',
  8412. lastWeek: '[forrige] dddd [kl.] LT',
  8413. sameElse: 'L'
  8414. },
  8415. relativeTime : {
  8416. future : 'om %s',
  8417. past : '%s siden',
  8418. s : 'noen sekunder',
  8419. m : 'ett minutt',
  8420. mm : '%d minutter',
  8421. h : 'en time',
  8422. hh : '%d timer',
  8423. d : 'en dag',
  8424. dd : '%d dager',
  8425. M : 'en måned',
  8426. MM : '%d måneder',
  8427. y : 'ett år',
  8428. yy : '%d år'
  8429. },
  8430. ordinalParse: /\d{1,2}\./,
  8431. ordinal : '%d.',
  8432. week : {
  8433. dow : 1, // Monday is the first day of the week.
  8434. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8435. }
  8436. });
  8437. //! moment.js locale configuration
  8438. //! locale : nepali/nepalese
  8439. //! author : suvash : https://github.com/suvash
  8440. var ne__symbolMap = {
  8441. '1': '१',
  8442. '2': '२',
  8443. '3': '३',
  8444. '4': '४',
  8445. '5': '५',
  8446. '6': '६',
  8447. '7': '७',
  8448. '8': '८',
  8449. '9': '९',
  8450. '0': '०'
  8451. },
  8452. ne__numberMap = {
  8453. '१': '1',
  8454. '२': '2',
  8455. '३': '3',
  8456. '४': '4',
  8457. '५': '5',
  8458. '६': '6',
  8459. '७': '7',
  8460. '८': '8',
  8461. '९': '9',
  8462. '०': '0'
  8463. };
  8464. var ne = moment__default.defineLocale('ne', {
  8465. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  8466. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  8467. monthsParseExact : true,
  8468. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  8469. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  8470. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  8471. weekdaysParseExact : true,
  8472. longDateFormat : {
  8473. LT : 'Aको h:mm बजे',
  8474. LTS : 'Aको h:mm:ss बजे',
  8475. L : 'DD/MM/YYYY',
  8476. LL : 'D MMMM YYYY',
  8477. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  8478. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  8479. },
  8480. preparse: function (string) {
  8481. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  8482. return ne__numberMap[match];
  8483. });
  8484. },
  8485. postformat: function (string) {
  8486. return string.replace(/\d/g, function (match) {
  8487. return ne__symbolMap[match];
  8488. });
  8489. },
  8490. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  8491. meridiemHour : function (hour, meridiem) {
  8492. if (hour === 12) {
  8493. hour = 0;
  8494. }
  8495. if (meridiem === 'राति') {
  8496. return hour < 4 ? hour : hour + 12;
  8497. } else if (meridiem === 'बिहान') {
  8498. return hour;
  8499. } else if (meridiem === 'दिउँसो') {
  8500. return hour >= 10 ? hour : hour + 12;
  8501. } else if (meridiem === 'साँझ') {
  8502. return hour + 12;
  8503. }
  8504. },
  8505. meridiem : function (hour, minute, isLower) {
  8506. if (hour < 3) {
  8507. return 'राति';
  8508. } else if (hour < 12) {
  8509. return 'बिहान';
  8510. } else if (hour < 16) {
  8511. return 'दिउँसो';
  8512. } else if (hour < 20) {
  8513. return 'साँझ';
  8514. } else {
  8515. return 'राति';
  8516. }
  8517. },
  8518. calendar : {
  8519. sameDay : '[आज] LT',
  8520. nextDay : '[भोलि] LT',
  8521. nextWeek : '[आउँदो] dddd[,] LT',
  8522. lastDay : '[हिजो] LT',
  8523. lastWeek : '[गएको] dddd[,] LT',
  8524. sameElse : 'L'
  8525. },
  8526. relativeTime : {
  8527. future : '%sमा',
  8528. past : '%s अगाडि',
  8529. s : 'केही क्षण',
  8530. m : 'एक मिनेट',
  8531. mm : '%d मिनेट',
  8532. h : 'एक घण्टा',
  8533. hh : '%d घण्टा',
  8534. d : 'एक दिन',
  8535. dd : '%d दिन',
  8536. M : 'एक महिना',
  8537. MM : '%d महिना',
  8538. y : 'एक बर्ष',
  8539. yy : '%d बर्ष'
  8540. },
  8541. week : {
  8542. dow : 0, // Sunday is the first day of the week.
  8543. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8544. }
  8545. });
  8546. //! moment.js locale configuration
  8547. //! locale : dutch (nl)
  8548. //! author : Joris Röling : https://github.com/jjupiter
  8549. var nl__monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  8550. nl__monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  8551. var nl = moment__default.defineLocale('nl', {
  8552. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  8553. monthsShort : function (m, format) {
  8554. if (/-MMM-/.test(format)) {
  8555. return nl__monthsShortWithoutDots[m.month()];
  8556. } else {
  8557. return nl__monthsShortWithDots[m.month()];
  8558. }
  8559. },
  8560. monthsParseExact : true,
  8561. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  8562. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  8563. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  8564. weekdaysParseExact : true,
  8565. longDateFormat : {
  8566. LT : 'HH:mm',
  8567. LTS : 'HH:mm:ss',
  8568. L : 'DD-MM-YYYY',
  8569. LL : 'D MMMM YYYY',
  8570. LLL : 'D MMMM YYYY HH:mm',
  8571. LLLL : 'dddd D MMMM YYYY HH:mm'
  8572. },
  8573. calendar : {
  8574. sameDay: '[vandaag om] LT',
  8575. nextDay: '[morgen om] LT',
  8576. nextWeek: 'dddd [om] LT',
  8577. lastDay: '[gisteren om] LT',
  8578. lastWeek: '[afgelopen] dddd [om] LT',
  8579. sameElse: 'L'
  8580. },
  8581. relativeTime : {
  8582. future : 'over %s',
  8583. past : '%s geleden',
  8584. s : 'een paar seconden',
  8585. m : 'één minuut',
  8586. mm : '%d minuten',
  8587. h : 'één uur',
  8588. hh : '%d uur',
  8589. d : 'één dag',
  8590. dd : '%d dagen',
  8591. M : 'één maand',
  8592. MM : '%d maanden',
  8593. y : 'één jaar',
  8594. yy : '%d jaar'
  8595. },
  8596. ordinalParse: /\d{1,2}(ste|de)/,
  8597. ordinal : function (number) {
  8598. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  8599. },
  8600. week : {
  8601. dow : 1, // Monday is the first day of the week.
  8602. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8603. }
  8604. });
  8605. //! moment.js locale configuration
  8606. //! locale : norwegian nynorsk (nn)
  8607. //! author : https://github.com/mechuwind
  8608. var nn = moment__default.defineLocale('nn', {
  8609. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  8610. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8611. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  8612. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  8613. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  8614. longDateFormat : {
  8615. LT : 'HH:mm',
  8616. LTS : 'HH:mm:ss',
  8617. L : 'DD.MM.YYYY',
  8618. LL : 'D. MMMM YYYY',
  8619. LLL : 'D. MMMM YYYY [kl.] H:mm',
  8620. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  8621. },
  8622. calendar : {
  8623. sameDay: '[I dag klokka] LT',
  8624. nextDay: '[I morgon klokka] LT',
  8625. nextWeek: 'dddd [klokka] LT',
  8626. lastDay: '[I går klokka] LT',
  8627. lastWeek: '[Føregåande] dddd [klokka] LT',
  8628. sameElse: 'L'
  8629. },
  8630. relativeTime : {
  8631. future : 'om %s',
  8632. past : '%s sidan',
  8633. s : 'nokre sekund',
  8634. m : 'eit minutt',
  8635. mm : '%d minutt',
  8636. h : 'ein time',
  8637. hh : '%d timar',
  8638. d : 'ein dag',
  8639. dd : '%d dagar',
  8640. M : 'ein månad',
  8641. MM : '%d månader',
  8642. y : 'eit år',
  8643. yy : '%d år'
  8644. },
  8645. ordinalParse: /\d{1,2}\./,
  8646. ordinal : '%d.',
  8647. week : {
  8648. dow : 1, // Monday is the first day of the week.
  8649. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8650. }
  8651. });
  8652. //! moment.js locale configuration
  8653. //! locale : punjabi india (pa-in)
  8654. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  8655. var pa_in__symbolMap = {
  8656. '1': '੧',
  8657. '2': '੨',
  8658. '3': '੩',
  8659. '4': '੪',
  8660. '5': '੫',
  8661. '6': '੬',
  8662. '7': '੭',
  8663. '8': '੮',
  8664. '9': '੯',
  8665. '0': '੦'
  8666. },
  8667. pa_in__numberMap = {
  8668. '੧': '1',
  8669. '੨': '2',
  8670. '੩': '3',
  8671. '੪': '4',
  8672. '੫': '5',
  8673. '੬': '6',
  8674. '੭': '7',
  8675. '੮': '8',
  8676. '੯': '9',
  8677. '੦': '0'
  8678. };
  8679. var pa_in = moment__default.defineLocale('pa-in', {
  8680. // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
  8681. months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  8682. monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  8683. weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  8684. weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  8685. weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  8686. longDateFormat : {
  8687. LT : 'A h:mm ਵਜੇ',
  8688. LTS : 'A h:mm:ss ਵਜੇ',
  8689. L : 'DD/MM/YYYY',
  8690. LL : 'D MMMM YYYY',
  8691. LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
  8692. LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  8693. },
  8694. calendar : {
  8695. sameDay : '[ਅਜ] LT',
  8696. nextDay : '[ਕਲ] LT',
  8697. nextWeek : 'dddd, LT',
  8698. lastDay : '[ਕਲ] LT',
  8699. lastWeek : '[ਪਿਛਲੇ] dddd, LT',
  8700. sameElse : 'L'
  8701. },
  8702. relativeTime : {
  8703. future : '%s ਵਿੱਚ',
  8704. past : '%s ਪਿਛਲੇ',
  8705. s : 'ਕੁਝ ਸਕਿੰਟ',
  8706. m : 'ਇਕ ਮਿੰਟ',
  8707. mm : '%d ਮਿੰਟ',
  8708. h : 'ਇੱਕ ਘੰਟਾ',
  8709. hh : '%d ਘੰਟੇ',
  8710. d : 'ਇੱਕ ਦਿਨ',
  8711. dd : '%d ਦਿਨ',
  8712. M : 'ਇੱਕ ਮਹੀਨਾ',
  8713. MM : '%d ਮਹੀਨੇ',
  8714. y : 'ਇੱਕ ਸਾਲ',
  8715. yy : '%d ਸਾਲ'
  8716. },
  8717. preparse: function (string) {
  8718. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  8719. return pa_in__numberMap[match];
  8720. });
  8721. },
  8722. postformat: function (string) {
  8723. return string.replace(/\d/g, function (match) {
  8724. return pa_in__symbolMap[match];
  8725. });
  8726. },
  8727. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  8728. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  8729. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  8730. meridiemHour : function (hour, meridiem) {
  8731. if (hour === 12) {
  8732. hour = 0;
  8733. }
  8734. if (meridiem === 'ਰਾਤ') {
  8735. return hour < 4 ? hour : hour + 12;
  8736. } else if (meridiem === 'ਸਵੇਰ') {
  8737. return hour;
  8738. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  8739. return hour >= 10 ? hour : hour + 12;
  8740. } else if (meridiem === 'ਸ਼ਾਮ') {
  8741. return hour + 12;
  8742. }
  8743. },
  8744. meridiem : function (hour, minute, isLower) {
  8745. if (hour < 4) {
  8746. return 'ਰਾਤ';
  8747. } else if (hour < 10) {
  8748. return 'ਸਵੇਰ';
  8749. } else if (hour < 17) {
  8750. return 'ਦੁਪਹਿਰ';
  8751. } else if (hour < 20) {
  8752. return 'ਸ਼ਾਮ';
  8753. } else {
  8754. return 'ਰਾਤ';
  8755. }
  8756. },
  8757. week : {
  8758. dow : 0, // Sunday is the first day of the week.
  8759. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8760. }
  8761. });
  8762. //! moment.js locale configuration
  8763. //! locale : polish (pl)
  8764. //! author : Rafal Hirsz : https://github.com/evoL
  8765. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  8766. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  8767. function pl__plural(n) {
  8768. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  8769. }
  8770. function pl__translate(number, withoutSuffix, key) {
  8771. var result = number + ' ';
  8772. switch (key) {
  8773. case 'm':
  8774. return withoutSuffix ? 'minuta' : 'minutę';
  8775. case 'mm':
  8776. return result + (pl__plural(number) ? 'minuty' : 'minut');
  8777. case 'h':
  8778. return withoutSuffix ? 'godzina' : 'godzinę';
  8779. case 'hh':
  8780. return result + (pl__plural(number) ? 'godziny' : 'godzin');
  8781. case 'MM':
  8782. return result + (pl__plural(number) ? 'miesiące' : 'miesięcy');
  8783. case 'yy':
  8784. return result + (pl__plural(number) ? 'lata' : 'lat');
  8785. }
  8786. }
  8787. var pl = moment__default.defineLocale('pl', {
  8788. months : function (momentToFormat, format) {
  8789. if (format === '') {
  8790. // Hack: if format empty we know this is used to generate
  8791. // RegExp by moment. Give then back both valid forms of months
  8792. // in RegExp ready format.
  8793. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  8794. } else if (/D MMMM/.test(format)) {
  8795. return monthsSubjective[momentToFormat.month()];
  8796. } else {
  8797. return monthsNominative[momentToFormat.month()];
  8798. }
  8799. },
  8800. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  8801. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  8802. weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
  8803. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  8804. longDateFormat : {
  8805. LT : 'HH:mm',
  8806. LTS : 'HH:mm:ss',
  8807. L : 'DD.MM.YYYY',
  8808. LL : 'D MMMM YYYY',
  8809. LLL : 'D MMMM YYYY HH:mm',
  8810. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8811. },
  8812. calendar : {
  8813. sameDay: '[Dziś o] LT',
  8814. nextDay: '[Jutro o] LT',
  8815. nextWeek: '[W] dddd [o] LT',
  8816. lastDay: '[Wczoraj o] LT',
  8817. lastWeek: function () {
  8818. switch (this.day()) {
  8819. case 0:
  8820. return '[W zeszłą niedzielę o] LT';
  8821. case 3:
  8822. return '[W zeszłą środę o] LT';
  8823. case 6:
  8824. return '[W zeszłą sobotę o] LT';
  8825. default:
  8826. return '[W zeszły] dddd [o] LT';
  8827. }
  8828. },
  8829. sameElse: 'L'
  8830. },
  8831. relativeTime : {
  8832. future : 'za %s',
  8833. past : '%s temu',
  8834. s : 'kilka sekund',
  8835. m : pl__translate,
  8836. mm : pl__translate,
  8837. h : pl__translate,
  8838. hh : pl__translate,
  8839. d : '1 dzień',
  8840. dd : '%d dni',
  8841. M : 'miesiąc',
  8842. MM : pl__translate,
  8843. y : 'rok',
  8844. yy : pl__translate
  8845. },
  8846. ordinalParse: /\d{1,2}\./,
  8847. ordinal : '%d.',
  8848. week : {
  8849. dow : 1, // Monday is the first day of the week.
  8850. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8851. }
  8852. });
  8853. //! moment.js locale configuration
  8854. //! locale : brazilian portuguese (pt-br)
  8855. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  8856. var pt_br = moment__default.defineLocale('pt-br', {
  8857. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  8858. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  8859. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  8860. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  8861. weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
  8862. weekdaysParseExact : true,
  8863. longDateFormat : {
  8864. LT : 'HH:mm',
  8865. LTS : 'HH:mm:ss',
  8866. L : 'DD/MM/YYYY',
  8867. LL : 'D [de] MMMM [de] YYYY',
  8868. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  8869. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  8870. },
  8871. calendar : {
  8872. sameDay: '[Hoje às] LT',
  8873. nextDay: '[Amanhã às] LT',
  8874. nextWeek: 'dddd [às] LT',
  8875. lastDay: '[Ontem às] LT',
  8876. lastWeek: function () {
  8877. return (this.day() === 0 || this.day() === 6) ?
  8878. '[Último] dddd [às] LT' : // Saturday + Sunday
  8879. '[Última] dddd [às] LT'; // Monday - Friday
  8880. },
  8881. sameElse: 'L'
  8882. },
  8883. relativeTime : {
  8884. future : 'em %s',
  8885. past : '%s atrás',
  8886. s : 'poucos segundos',
  8887. m : 'um minuto',
  8888. mm : '%d minutos',
  8889. h : 'uma hora',
  8890. hh : '%d horas',
  8891. d : 'um dia',
  8892. dd : '%d dias',
  8893. M : 'um mês',
  8894. MM : '%d meses',
  8895. y : 'um ano',
  8896. yy : '%d anos'
  8897. },
  8898. ordinalParse: /\d{1,2}º/,
  8899. ordinal : '%dº'
  8900. });
  8901. //! moment.js locale configuration
  8902. //! locale : portuguese (pt)
  8903. //! author : Jefferson : https://github.com/jalex79
  8904. var pt = moment__default.defineLocale('pt', {
  8905. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  8906. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  8907. weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
  8908. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  8909. weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
  8910. weekdaysParseExact : true,
  8911. longDateFormat : {
  8912. LT : 'HH:mm',
  8913. LTS : 'HH:mm:ss',
  8914. L : 'DD/MM/YYYY',
  8915. LL : 'D [de] MMMM [de] YYYY',
  8916. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  8917. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  8918. },
  8919. calendar : {
  8920. sameDay: '[Hoje às] LT',
  8921. nextDay: '[Amanhã às] LT',
  8922. nextWeek: 'dddd [às] LT',
  8923. lastDay: '[Ontem às] LT',
  8924. lastWeek: function () {
  8925. return (this.day() === 0 || this.day() === 6) ?
  8926. '[Último] dddd [às] LT' : // Saturday + Sunday
  8927. '[Última] dddd [às] LT'; // Monday - Friday
  8928. },
  8929. sameElse: 'L'
  8930. },
  8931. relativeTime : {
  8932. future : 'em %s',
  8933. past : 'há %s',
  8934. s : 'segundos',
  8935. m : 'um minuto',
  8936. mm : '%d minutos',
  8937. h : 'uma hora',
  8938. hh : '%d horas',
  8939. d : 'um dia',
  8940. dd : '%d dias',
  8941. M : 'um mês',
  8942. MM : '%d meses',
  8943. y : 'um ano',
  8944. yy : '%d anos'
  8945. },
  8946. ordinalParse: /\d{1,2}º/,
  8947. ordinal : '%dº',
  8948. week : {
  8949. dow : 1, // Monday is the first day of the week.
  8950. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8951. }
  8952. });
  8953. //! moment.js locale configuration
  8954. //! locale : romanian (ro)
  8955. //! author : Vlad Gurdiga : https://github.com/gurdiga
  8956. //! author : Valentin Agachi : https://github.com/avaly
  8957. function ro__relativeTimeWithPlural(number, withoutSuffix, key) {
  8958. var format = {
  8959. 'mm': 'minute',
  8960. 'hh': 'ore',
  8961. 'dd': 'zile',
  8962. 'MM': 'luni',
  8963. 'yy': 'ani'
  8964. },
  8965. separator = ' ';
  8966. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  8967. separator = ' de ';
  8968. }
  8969. return number + separator + format[key];
  8970. }
  8971. var ro = moment__default.defineLocale('ro', {
  8972. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  8973. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  8974. monthsParseExact: true,
  8975. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  8976. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  8977. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  8978. longDateFormat : {
  8979. LT : 'H:mm',
  8980. LTS : 'H:mm:ss',
  8981. L : 'DD.MM.YYYY',
  8982. LL : 'D MMMM YYYY',
  8983. LLL : 'D MMMM YYYY H:mm',
  8984. LLLL : 'dddd, D MMMM YYYY H:mm'
  8985. },
  8986. calendar : {
  8987. sameDay: '[azi la] LT',
  8988. nextDay: '[mâine la] LT',
  8989. nextWeek: 'dddd [la] LT',
  8990. lastDay: '[ieri la] LT',
  8991. lastWeek: '[fosta] dddd [la] LT',
  8992. sameElse: 'L'
  8993. },
  8994. relativeTime : {
  8995. future : 'peste %s',
  8996. past : '%s în urmă',
  8997. s : 'câteva secunde',
  8998. m : 'un minut',
  8999. mm : ro__relativeTimeWithPlural,
  9000. h : 'o oră',
  9001. hh : ro__relativeTimeWithPlural,
  9002. d : 'o zi',
  9003. dd : ro__relativeTimeWithPlural,
  9004. M : 'o lună',
  9005. MM : ro__relativeTimeWithPlural,
  9006. y : 'un an',
  9007. yy : ro__relativeTimeWithPlural
  9008. },
  9009. week : {
  9010. dow : 1, // Monday is the first day of the week.
  9011. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9012. }
  9013. });
  9014. //! moment.js locale configuration
  9015. //! locale : russian (ru)
  9016. //! author : Viktorminator : https://github.com/Viktorminator
  9017. //! Author : Menelion Elensúle : https://github.com/Oire
  9018. //! author : Коренберг Марк : https://github.com/socketpair
  9019. function ru__plural(word, num) {
  9020. var forms = word.split('_');
  9021. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  9022. }
  9023. function ru__relativeTimeWithPlural(number, withoutSuffix, key) {
  9024. var format = {
  9025. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  9026. 'hh': 'час_часа_часов',
  9027. 'dd': 'день_дня_дней',
  9028. 'MM': 'месяц_месяца_месяцев',
  9029. 'yy': 'год_года_лет'
  9030. };
  9031. if (key === 'm') {
  9032. return withoutSuffix ? 'минута' : 'минуту';
  9033. }
  9034. else {
  9035. return number + ' ' + ru__plural(format[key], +number);
  9036. }
  9037. }
  9038. var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  9039. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  9040. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  9041. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  9042. var ru = moment__default.defineLocale('ru', {
  9043. months : {
  9044. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  9045. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  9046. },
  9047. monthsShort : {
  9048. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  9049. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  9050. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  9051. },
  9052. weekdays : {
  9053. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  9054. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  9055. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  9056. },
  9057. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  9058. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  9059. monthsParse : monthsParse,
  9060. longMonthsParse : monthsParse,
  9061. shortMonthsParse : monthsParse,
  9062. monthsRegex: /^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|сент\.|февр\.|нояб\.|июнь|янв.|июль|дек.|авг.|апр.|марта|мар[.т]|окт.|июн[яь]|июл[яь]|ма[яй])/i,
  9063. monthsShortRegex: /^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|сент\.|февр\.|нояб\.|июнь|янв.|июль|дек.|авг.|апр.|марта|мар[.т]|окт.|июн[яь]|июл[яь]|ма[яй])/i,
  9064. monthsStrictRegex: /^(сентябр[яь]|октябр[яь]|декабр[яь]|феврал[яь]|январ[яь]|апрел[яь]|августа?|ноябр[яь]|марта?|июн[яь]|июл[яь]|ма[яй])/i,
  9065. monthsShortStrictRegex: /^(нояб\.|февр\.|сент\.|июль|янв\.|июн[яь]|мар[.т]|авг\.|апр\.|окт\.|дек\.|ма[яй])/i,
  9066. longDateFormat : {
  9067. LT : 'HH:mm',
  9068. LTS : 'HH:mm:ss',
  9069. L : 'DD.MM.YYYY',
  9070. LL : 'D MMMM YYYY г.',
  9071. LLL : 'D MMMM YYYY г., HH:mm',
  9072. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  9073. },
  9074. calendar : {
  9075. sameDay: '[Сегодня в] LT',
  9076. nextDay: '[Завтра в] LT',
  9077. lastDay: '[Вчера в] LT',
  9078. nextWeek: function (now) {
  9079. if (now.week() !== this.week()) {
  9080. switch (this.day()) {
  9081. case 0:
  9082. return '[В следующее] dddd [в] LT';
  9083. case 1:
  9084. case 2:
  9085. case 4:
  9086. return '[В следующий] dddd [в] LT';
  9087. case 3:
  9088. case 5:
  9089. case 6:
  9090. return '[В следующую] dddd [в] LT';
  9091. }
  9092. } else {
  9093. if (this.day() === 2) {
  9094. return '[Во] dddd [в] LT';
  9095. } else {
  9096. return '[В] dddd [в] LT';
  9097. }
  9098. }
  9099. },
  9100. lastWeek: function (now) {
  9101. if (now.week() !== this.week()) {
  9102. switch (this.day()) {
  9103. case 0:
  9104. return '[В прошлое] dddd [в] LT';
  9105. case 1:
  9106. case 2:
  9107. case 4:
  9108. return '[В прошлый] dddd [в] LT';
  9109. case 3:
  9110. case 5:
  9111. case 6:
  9112. return '[В прошлую] dddd [в] LT';
  9113. }
  9114. } else {
  9115. if (this.day() === 2) {
  9116. return '[Во] dddd [в] LT';
  9117. } else {
  9118. return '[В] dddd [в] LT';
  9119. }
  9120. }
  9121. },
  9122. sameElse: 'L'
  9123. },
  9124. relativeTime : {
  9125. future : 'через %s',
  9126. past : '%s назад',
  9127. s : 'несколько секунд',
  9128. m : ru__relativeTimeWithPlural,
  9129. mm : ru__relativeTimeWithPlural,
  9130. h : 'час',
  9131. hh : ru__relativeTimeWithPlural,
  9132. d : 'день',
  9133. dd : ru__relativeTimeWithPlural,
  9134. M : 'месяц',
  9135. MM : ru__relativeTimeWithPlural,
  9136. y : 'год',
  9137. yy : ru__relativeTimeWithPlural
  9138. },
  9139. meridiemParse: /ночи|утра|дня|вечера/i,
  9140. isPM : function (input) {
  9141. return /^(дня|вечера)$/.test(input);
  9142. },
  9143. meridiem : function (hour, minute, isLower) {
  9144. if (hour < 4) {
  9145. return 'ночи';
  9146. } else if (hour < 12) {
  9147. return 'утра';
  9148. } else if (hour < 17) {
  9149. return 'дня';
  9150. } else {
  9151. return 'вечера';
  9152. }
  9153. },
  9154. ordinalParse: /\d{1,2}-(й|го|я)/,
  9155. ordinal: function (number, period) {
  9156. switch (period) {
  9157. case 'M':
  9158. case 'd':
  9159. case 'DDD':
  9160. return number + '-й';
  9161. case 'D':
  9162. return number + '-го';
  9163. case 'w':
  9164. case 'W':
  9165. return number + '-я';
  9166. default:
  9167. return number;
  9168. }
  9169. },
  9170. week : {
  9171. dow : 1, // Monday is the first day of the week.
  9172. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9173. }
  9174. });
  9175. //! moment.js locale configuration
  9176. //! locale : Northern Sami (se)
  9177. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  9178. var se = moment__default.defineLocale('se', {
  9179. 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('_'),
  9180. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  9181. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  9182. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  9183. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  9184. longDateFormat : {
  9185. LT : 'HH:mm',
  9186. LTS : 'HH:mm:ss',
  9187. L : 'DD.MM.YYYY',
  9188. LL : 'MMMM D. [b.] YYYY',
  9189. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  9190. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  9191. },
  9192. calendar : {
  9193. sameDay: '[otne ti] LT',
  9194. nextDay: '[ihttin ti] LT',
  9195. nextWeek: 'dddd [ti] LT',
  9196. lastDay: '[ikte ti] LT',
  9197. lastWeek: '[ovddit] dddd [ti] LT',
  9198. sameElse: 'L'
  9199. },
  9200. relativeTime : {
  9201. future : '%s geažes',
  9202. past : 'maŋit %s',
  9203. s : 'moadde sekunddat',
  9204. m : 'okta minuhta',
  9205. mm : '%d minuhtat',
  9206. h : 'okta diimmu',
  9207. hh : '%d diimmut',
  9208. d : 'okta beaivi',
  9209. dd : '%d beaivvit',
  9210. M : 'okta mánnu',
  9211. MM : '%d mánut',
  9212. y : 'okta jahki',
  9213. yy : '%d jagit'
  9214. },
  9215. ordinalParse: /\d{1,2}\./,
  9216. ordinal : '%d.',
  9217. week : {
  9218. dow : 1, // Monday is the first day of the week.
  9219. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9220. }
  9221. });
  9222. //! moment.js locale configuration
  9223. //! locale : Sinhalese (si)
  9224. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  9225. /*jshint -W100*/
  9226. var si = moment__default.defineLocale('si', {
  9227. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  9228. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  9229. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  9230. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  9231. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  9232. weekdaysParseExact : true,
  9233. longDateFormat : {
  9234. LT : 'a h:mm',
  9235. LTS : 'a h:mm:ss',
  9236. L : 'YYYY/MM/DD',
  9237. LL : 'YYYY MMMM D',
  9238. LLL : 'YYYY MMMM D, a h:mm',
  9239. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  9240. },
  9241. calendar : {
  9242. sameDay : '[අද] LT[ට]',
  9243. nextDay : '[හෙට] LT[ට]',
  9244. nextWeek : 'dddd LT[ට]',
  9245. lastDay : '[ඊයේ] LT[ට]',
  9246. lastWeek : '[පසුගිය] dddd LT[ට]',
  9247. sameElse : 'L'
  9248. },
  9249. relativeTime : {
  9250. future : '%sකින්',
  9251. past : '%sකට පෙර',
  9252. s : 'තත්පර කිහිපය',
  9253. m : 'මිනිත්තුව',
  9254. mm : 'මිනිත්තු %d',
  9255. h : 'පැය',
  9256. hh : 'පැය %d',
  9257. d : 'දිනය',
  9258. dd : 'දින %d',
  9259. M : 'මාසය',
  9260. MM : 'මාස %d',
  9261. y : 'වසර',
  9262. yy : 'වසර %d'
  9263. },
  9264. ordinalParse: /\d{1,2} වැනි/,
  9265. ordinal : function (number) {
  9266. return number + ' වැනි';
  9267. },
  9268. meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  9269. isPM : function (input) {
  9270. return input === 'ප.ව.' || input === 'පස් වරු';
  9271. },
  9272. meridiem : function (hours, minutes, isLower) {
  9273. if (hours > 11) {
  9274. return isLower ? 'ප.ව.' : 'පස් වරු';
  9275. } else {
  9276. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  9277. }
  9278. }
  9279. });
  9280. //! moment.js locale configuration
  9281. //! locale : slovak (sk)
  9282. //! author : Martin Minka : https://github.com/k2s
  9283. //! based on work of petrbela : https://github.com/petrbela
  9284. var sk__months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  9285. sk__monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  9286. function sk__plural(n) {
  9287. return (n > 1) && (n < 5);
  9288. }
  9289. function sk__translate(number, withoutSuffix, key, isFuture) {
  9290. var result = number + ' ';
  9291. switch (key) {
  9292. case 's': // a few seconds / in a few seconds / a few seconds ago
  9293. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  9294. case 'm': // a minute / in a minute / a minute ago
  9295. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  9296. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  9297. if (withoutSuffix || isFuture) {
  9298. return result + (sk__plural(number) ? 'minúty' : 'minút');
  9299. } else {
  9300. return result + 'minútami';
  9301. }
  9302. break;
  9303. case 'h': // an hour / in an hour / an hour ago
  9304. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  9305. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  9306. if (withoutSuffix || isFuture) {
  9307. return result + (sk__plural(number) ? 'hodiny' : 'hodín');
  9308. } else {
  9309. return result + 'hodinami';
  9310. }
  9311. break;
  9312. case 'd': // a day / in a day / a day ago
  9313. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  9314. case 'dd': // 9 days / in 9 days / 9 days ago
  9315. if (withoutSuffix || isFuture) {
  9316. return result + (sk__plural(number) ? 'dni' : 'dní');
  9317. } else {
  9318. return result + 'dňami';
  9319. }
  9320. break;
  9321. case 'M': // a month / in a month / a month ago
  9322. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  9323. case 'MM': // 9 months / in 9 months / 9 months ago
  9324. if (withoutSuffix || isFuture) {
  9325. return result + (sk__plural(number) ? 'mesiace' : 'mesiacov');
  9326. } else {
  9327. return result + 'mesiacmi';
  9328. }
  9329. break;
  9330. case 'y': // a year / in a year / a year ago
  9331. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  9332. case 'yy': // 9 years / in 9 years / 9 years ago
  9333. if (withoutSuffix || isFuture) {
  9334. return result + (sk__plural(number) ? 'roky' : 'rokov');
  9335. } else {
  9336. return result + 'rokmi';
  9337. }
  9338. break;
  9339. }
  9340. }
  9341. var sk = moment__default.defineLocale('sk', {
  9342. months : sk__months,
  9343. monthsShort : sk__monthsShort,
  9344. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  9345. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  9346. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  9347. longDateFormat : {
  9348. LT: 'H:mm',
  9349. LTS : 'H:mm:ss',
  9350. L : 'DD.MM.YYYY',
  9351. LL : 'D. MMMM YYYY',
  9352. LLL : 'D. MMMM YYYY H:mm',
  9353. LLLL : 'dddd D. MMMM YYYY H:mm'
  9354. },
  9355. calendar : {
  9356. sameDay: '[dnes o] LT',
  9357. nextDay: '[zajtra o] LT',
  9358. nextWeek: function () {
  9359. switch (this.day()) {
  9360. case 0:
  9361. return '[v nedeľu o] LT';
  9362. case 1:
  9363. case 2:
  9364. return '[v] dddd [o] LT';
  9365. case 3:
  9366. return '[v stredu o] LT';
  9367. case 4:
  9368. return '[vo štvrtok o] LT';
  9369. case 5:
  9370. return '[v piatok o] LT';
  9371. case 6:
  9372. return '[v sobotu o] LT';
  9373. }
  9374. },
  9375. lastDay: '[včera o] LT',
  9376. lastWeek: function () {
  9377. switch (this.day()) {
  9378. case 0:
  9379. return '[minulú nedeľu o] LT';
  9380. case 1:
  9381. case 2:
  9382. return '[minulý] dddd [o] LT';
  9383. case 3:
  9384. return '[minulú stredu o] LT';
  9385. case 4:
  9386. case 5:
  9387. return '[minulý] dddd [o] LT';
  9388. case 6:
  9389. return '[minulú sobotu o] LT';
  9390. }
  9391. },
  9392. sameElse: 'L'
  9393. },
  9394. relativeTime : {
  9395. future : 'za %s',
  9396. past : 'pred %s',
  9397. s : sk__translate,
  9398. m : sk__translate,
  9399. mm : sk__translate,
  9400. h : sk__translate,
  9401. hh : sk__translate,
  9402. d : sk__translate,
  9403. dd : sk__translate,
  9404. M : sk__translate,
  9405. MM : sk__translate,
  9406. y : sk__translate,
  9407. yy : sk__translate
  9408. },
  9409. ordinalParse: /\d{1,2}\./,
  9410. ordinal : '%d.',
  9411. week : {
  9412. dow : 1, // Monday is the first day of the week.
  9413. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9414. }
  9415. });
  9416. //! moment.js locale configuration
  9417. //! locale : slovenian (sl)
  9418. //! author : Robert Sedovšek : https://github.com/sedovsek
  9419. function sl__processRelativeTime(number, withoutSuffix, key, isFuture) {
  9420. var result = number + ' ';
  9421. switch (key) {
  9422. case 's':
  9423. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  9424. case 'm':
  9425. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  9426. case 'mm':
  9427. if (number === 1) {
  9428. result += withoutSuffix ? 'minuta' : 'minuto';
  9429. } else if (number === 2) {
  9430. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  9431. } else if (number < 5) {
  9432. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  9433. } else {
  9434. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  9435. }
  9436. return result;
  9437. case 'h':
  9438. return withoutSuffix ? 'ena ura' : 'eno uro';
  9439. case 'hh':
  9440. if (number === 1) {
  9441. result += withoutSuffix ? 'ura' : 'uro';
  9442. } else if (number === 2) {
  9443. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  9444. } else if (number < 5) {
  9445. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  9446. } else {
  9447. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  9448. }
  9449. return result;
  9450. case 'd':
  9451. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  9452. case 'dd':
  9453. if (number === 1) {
  9454. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  9455. } else if (number === 2) {
  9456. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  9457. } else {
  9458. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  9459. }
  9460. return result;
  9461. case 'M':
  9462. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  9463. case 'MM':
  9464. if (number === 1) {
  9465. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  9466. } else if (number === 2) {
  9467. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  9468. } else if (number < 5) {
  9469. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  9470. } else {
  9471. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  9472. }
  9473. return result;
  9474. case 'y':
  9475. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  9476. case 'yy':
  9477. if (number === 1) {
  9478. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  9479. } else if (number === 2) {
  9480. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  9481. } else if (number < 5) {
  9482. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  9483. } else {
  9484. result += withoutSuffix || isFuture ? 'let' : 'leti';
  9485. }
  9486. return result;
  9487. }
  9488. }
  9489. var sl = moment__default.defineLocale('sl', {
  9490. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  9491. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  9492. monthsParseExact: true,
  9493. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  9494. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  9495. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  9496. weekdaysParseExact : true,
  9497. longDateFormat : {
  9498. LT : 'H:mm',
  9499. LTS : 'H:mm:ss',
  9500. L : 'DD. MM. YYYY',
  9501. LL : 'D. MMMM YYYY',
  9502. LLL : 'D. MMMM YYYY H:mm',
  9503. LLLL : 'dddd, D. MMMM YYYY H:mm'
  9504. },
  9505. calendar : {
  9506. sameDay : '[danes ob] LT',
  9507. nextDay : '[jutri ob] LT',
  9508. nextWeek : function () {
  9509. switch (this.day()) {
  9510. case 0:
  9511. return '[v] [nedeljo] [ob] LT';
  9512. case 3:
  9513. return '[v] [sredo] [ob] LT';
  9514. case 6:
  9515. return '[v] [soboto] [ob] LT';
  9516. case 1:
  9517. case 2:
  9518. case 4:
  9519. case 5:
  9520. return '[v] dddd [ob] LT';
  9521. }
  9522. },
  9523. lastDay : '[včeraj ob] LT',
  9524. lastWeek : function () {
  9525. switch (this.day()) {
  9526. case 0:
  9527. return '[prejšnjo] [nedeljo] [ob] LT';
  9528. case 3:
  9529. return '[prejšnjo] [sredo] [ob] LT';
  9530. case 6:
  9531. return '[prejšnjo] [soboto] [ob] LT';
  9532. case 1:
  9533. case 2:
  9534. case 4:
  9535. case 5:
  9536. return '[prejšnji] dddd [ob] LT';
  9537. }
  9538. },
  9539. sameElse : 'L'
  9540. },
  9541. relativeTime : {
  9542. future : 'čez %s',
  9543. past : 'pred %s',
  9544. s : sl__processRelativeTime,
  9545. m : sl__processRelativeTime,
  9546. mm : sl__processRelativeTime,
  9547. h : sl__processRelativeTime,
  9548. hh : sl__processRelativeTime,
  9549. d : sl__processRelativeTime,
  9550. dd : sl__processRelativeTime,
  9551. M : sl__processRelativeTime,
  9552. MM : sl__processRelativeTime,
  9553. y : sl__processRelativeTime,
  9554. yy : sl__processRelativeTime
  9555. },
  9556. ordinalParse: /\d{1,2}\./,
  9557. ordinal : '%d.',
  9558. week : {
  9559. dow : 1, // Monday is the first day of the week.
  9560. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9561. }
  9562. });
  9563. //! moment.js locale configuration
  9564. //! locale : Albanian (sq)
  9565. //! author : Flakërim Ismani : https://github.com/flakerimi
  9566. //! author: Menelion Elensúle: https://github.com/Oire (tests)
  9567. //! author : Oerd Cukalla : https://github.com/oerd (fixes)
  9568. var sq = moment__default.defineLocale('sq', {
  9569. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  9570. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  9571. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  9572. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  9573. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  9574. weekdaysParseExact : true,
  9575. meridiemParse: /PD|MD/,
  9576. isPM: function (input) {
  9577. return input.charAt(0) === 'M';
  9578. },
  9579. meridiem : function (hours, minutes, isLower) {
  9580. return hours < 12 ? 'PD' : 'MD';
  9581. },
  9582. longDateFormat : {
  9583. LT : 'HH:mm',
  9584. LTS : 'HH:mm:ss',
  9585. L : 'DD/MM/YYYY',
  9586. LL : 'D MMMM YYYY',
  9587. LLL : 'D MMMM YYYY HH:mm',
  9588. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9589. },
  9590. calendar : {
  9591. sameDay : '[Sot në] LT',
  9592. nextDay : '[Nesër në] LT',
  9593. nextWeek : 'dddd [në] LT',
  9594. lastDay : '[Dje në] LT',
  9595. lastWeek : 'dddd [e kaluar në] LT',
  9596. sameElse : 'L'
  9597. },
  9598. relativeTime : {
  9599. future : 'në %s',
  9600. past : '%s më parë',
  9601. s : 'disa sekonda',
  9602. m : 'një minutë',
  9603. mm : '%d minuta',
  9604. h : 'një orë',
  9605. hh : '%d orë',
  9606. d : 'një ditë',
  9607. dd : '%d ditë',
  9608. M : 'një muaj',
  9609. MM : '%d muaj',
  9610. y : 'një vit',
  9611. yy : '%d vite'
  9612. },
  9613. ordinalParse: /\d{1,2}\./,
  9614. ordinal : '%d.',
  9615. week : {
  9616. dow : 1, // Monday is the first day of the week.
  9617. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9618. }
  9619. });
  9620. //! moment.js locale configuration
  9621. //! locale : Serbian-cyrillic (sr-cyrl)
  9622. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  9623. var sr_cyrl__translator = {
  9624. words: { //Different grammatical cases
  9625. m: ['један минут', 'једне минуте'],
  9626. mm: ['минут', 'минуте', 'минута'],
  9627. h: ['један сат', 'једног сата'],
  9628. hh: ['сат', 'сата', 'сати'],
  9629. dd: ['дан', 'дана', 'дана'],
  9630. MM: ['месец', 'месеца', 'месеци'],
  9631. yy: ['година', 'године', 'година']
  9632. },
  9633. correctGrammaticalCase: function (number, wordKey) {
  9634. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  9635. },
  9636. translate: function (number, withoutSuffix, key) {
  9637. var wordKey = sr_cyrl__translator.words[key];
  9638. if (key.length === 1) {
  9639. return withoutSuffix ? wordKey[0] : wordKey[1];
  9640. } else {
  9641. return number + ' ' + sr_cyrl__translator.correctGrammaticalCase(number, wordKey);
  9642. }
  9643. }
  9644. };
  9645. var sr_cyrl = moment__default.defineLocale('sr-cyrl', {
  9646. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  9647. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  9648. monthsParseExact: true,
  9649. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  9650. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  9651. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  9652. weekdaysParseExact : true,
  9653. longDateFormat: {
  9654. LT: 'H:mm',
  9655. LTS : 'H:mm:ss',
  9656. L: 'DD. MM. YYYY',
  9657. LL: 'D. MMMM YYYY',
  9658. LLL: 'D. MMMM YYYY H:mm',
  9659. LLLL: 'dddd, D. MMMM YYYY H:mm'
  9660. },
  9661. calendar: {
  9662. sameDay: '[данас у] LT',
  9663. nextDay: '[сутра у] LT',
  9664. nextWeek: function () {
  9665. switch (this.day()) {
  9666. case 0:
  9667. return '[у] [недељу] [у] LT';
  9668. case 3:
  9669. return '[у] [среду] [у] LT';
  9670. case 6:
  9671. return '[у] [суботу] [у] LT';
  9672. case 1:
  9673. case 2:
  9674. case 4:
  9675. case 5:
  9676. return '[у] dddd [у] LT';
  9677. }
  9678. },
  9679. lastDay : '[јуче у] LT',
  9680. lastWeek : function () {
  9681. var lastWeekDays = [
  9682. '[прошле] [недеље] [у] LT',
  9683. '[прошлог] [понедељка] [у] LT',
  9684. '[прошлог] [уторка] [у] LT',
  9685. '[прошле] [среде] [у] LT',
  9686. '[прошлог] [четвртка] [у] LT',
  9687. '[прошлог] [петка] [у] LT',
  9688. '[прошле] [суботе] [у] LT'
  9689. ];
  9690. return lastWeekDays[this.day()];
  9691. },
  9692. sameElse : 'L'
  9693. },
  9694. relativeTime : {
  9695. future : 'за %s',
  9696. past : 'пре %s',
  9697. s : 'неколико секунди',
  9698. m : sr_cyrl__translator.translate,
  9699. mm : sr_cyrl__translator.translate,
  9700. h : sr_cyrl__translator.translate,
  9701. hh : sr_cyrl__translator.translate,
  9702. d : 'дан',
  9703. dd : sr_cyrl__translator.translate,
  9704. M : 'месец',
  9705. MM : sr_cyrl__translator.translate,
  9706. y : 'годину',
  9707. yy : sr_cyrl__translator.translate
  9708. },
  9709. ordinalParse: /\d{1,2}\./,
  9710. ordinal : '%d.',
  9711. week : {
  9712. dow : 1, // Monday is the first day of the week.
  9713. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9714. }
  9715. });
  9716. //! moment.js locale configuration
  9717. //! locale : Serbian-latin (sr)
  9718. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  9719. var sr__translator = {
  9720. words: { //Different grammatical cases
  9721. m: ['jedan minut', 'jedne minute'],
  9722. mm: ['minut', 'minute', 'minuta'],
  9723. h: ['jedan sat', 'jednog sata'],
  9724. hh: ['sat', 'sata', 'sati'],
  9725. dd: ['dan', 'dana', 'dana'],
  9726. MM: ['mesec', 'meseca', 'meseci'],
  9727. yy: ['godina', 'godine', 'godina']
  9728. },
  9729. correctGrammaticalCase: function (number, wordKey) {
  9730. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  9731. },
  9732. translate: function (number, withoutSuffix, key) {
  9733. var wordKey = sr__translator.words[key];
  9734. if (key.length === 1) {
  9735. return withoutSuffix ? wordKey[0] : wordKey[1];
  9736. } else {
  9737. return number + ' ' + sr__translator.correctGrammaticalCase(number, wordKey);
  9738. }
  9739. }
  9740. };
  9741. var sr = moment__default.defineLocale('sr', {
  9742. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  9743. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  9744. monthsParseExact: true,
  9745. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  9746. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  9747. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  9748. weekdaysParseExact : true,
  9749. longDateFormat: {
  9750. LT: 'H:mm',
  9751. LTS : 'H:mm:ss',
  9752. L: 'DD. MM. YYYY',
  9753. LL: 'D. MMMM YYYY',
  9754. LLL: 'D. MMMM YYYY H:mm',
  9755. LLLL: 'dddd, D. MMMM YYYY H:mm'
  9756. },
  9757. calendar: {
  9758. sameDay: '[danas u] LT',
  9759. nextDay: '[sutra u] LT',
  9760. nextWeek: function () {
  9761. switch (this.day()) {
  9762. case 0:
  9763. return '[u] [nedelju] [u] LT';
  9764. case 3:
  9765. return '[u] [sredu] [u] LT';
  9766. case 6:
  9767. return '[u] [subotu] [u] LT';
  9768. case 1:
  9769. case 2:
  9770. case 4:
  9771. case 5:
  9772. return '[u] dddd [u] LT';
  9773. }
  9774. },
  9775. lastDay : '[juče u] LT',
  9776. lastWeek : function () {
  9777. var lastWeekDays = [
  9778. '[prošle] [nedelje] [u] LT',
  9779. '[prošlog] [ponedeljka] [u] LT',
  9780. '[prošlog] [utorka] [u] LT',
  9781. '[prošle] [srede] [u] LT',
  9782. '[prošlog] [četvrtka] [u] LT',
  9783. '[prošlog] [petka] [u] LT',
  9784. '[prošle] [subote] [u] LT'
  9785. ];
  9786. return lastWeekDays[this.day()];
  9787. },
  9788. sameElse : 'L'
  9789. },
  9790. relativeTime : {
  9791. future : 'za %s',
  9792. past : 'pre %s',
  9793. s : 'nekoliko sekundi',
  9794. m : sr__translator.translate,
  9795. mm : sr__translator.translate,
  9796. h : sr__translator.translate,
  9797. hh : sr__translator.translate,
  9798. d : 'dan',
  9799. dd : sr__translator.translate,
  9800. M : 'mesec',
  9801. MM : sr__translator.translate,
  9802. y : 'godinu',
  9803. yy : sr__translator.translate
  9804. },
  9805. ordinalParse: /\d{1,2}\./,
  9806. ordinal : '%d.',
  9807. week : {
  9808. dow : 1, // Monday is the first day of the week.
  9809. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9810. }
  9811. });
  9812. //! moment.js locale configuration
  9813. //! locale : siSwati (ss)
  9814. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  9815. var ss = moment__default.defineLocale('ss', {
  9816. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  9817. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  9818. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  9819. weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  9820. weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  9821. weekdaysParseExact : true,
  9822. longDateFormat : {
  9823. LT : 'h:mm A',
  9824. LTS : 'h:mm:ss A',
  9825. L : 'DD/MM/YYYY',
  9826. LL : 'D MMMM YYYY',
  9827. LLL : 'D MMMM YYYY h:mm A',
  9828. LLLL : 'dddd, D MMMM YYYY h:mm A'
  9829. },
  9830. calendar : {
  9831. sameDay : '[Namuhla nga] LT',
  9832. nextDay : '[Kusasa nga] LT',
  9833. nextWeek : 'dddd [nga] LT',
  9834. lastDay : '[Itolo nga] LT',
  9835. lastWeek : 'dddd [leliphelile] [nga] LT',
  9836. sameElse : 'L'
  9837. },
  9838. relativeTime : {
  9839. future : 'nga %s',
  9840. past : 'wenteka nga %s',
  9841. s : 'emizuzwana lomcane',
  9842. m : 'umzuzu',
  9843. mm : '%d emizuzu',
  9844. h : 'lihora',
  9845. hh : '%d emahora',
  9846. d : 'lilanga',
  9847. dd : '%d emalanga',
  9848. M : 'inyanga',
  9849. MM : '%d tinyanga',
  9850. y : 'umnyaka',
  9851. yy : '%d iminyaka'
  9852. },
  9853. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  9854. meridiem : function (hours, minutes, isLower) {
  9855. if (hours < 11) {
  9856. return 'ekuseni';
  9857. } else if (hours < 15) {
  9858. return 'emini';
  9859. } else if (hours < 19) {
  9860. return 'entsambama';
  9861. } else {
  9862. return 'ebusuku';
  9863. }
  9864. },
  9865. meridiemHour : function (hour, meridiem) {
  9866. if (hour === 12) {
  9867. hour = 0;
  9868. }
  9869. if (meridiem === 'ekuseni') {
  9870. return hour;
  9871. } else if (meridiem === 'emini') {
  9872. return hour >= 11 ? hour : hour + 12;
  9873. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  9874. if (hour === 0) {
  9875. return 0;
  9876. }
  9877. return hour + 12;
  9878. }
  9879. },
  9880. ordinalParse: /\d{1,2}/,
  9881. ordinal : '%d',
  9882. week : {
  9883. dow : 1, // Monday is the first day of the week.
  9884. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9885. }
  9886. });
  9887. //! moment.js locale configuration
  9888. //! locale : swedish (sv)
  9889. //! author : Jens Alm : https://github.com/ulmus
  9890. var sv = moment__default.defineLocale('sv', {
  9891. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  9892. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  9893. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  9894. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  9895. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  9896. longDateFormat : {
  9897. LT : 'HH:mm',
  9898. LTS : 'HH:mm:ss',
  9899. L : 'YYYY-MM-DD',
  9900. LL : 'D MMMM YYYY',
  9901. LLL : 'D MMMM YYYY [kl.] HH:mm',
  9902. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  9903. lll : 'D MMM YYYY HH:mm',
  9904. llll : 'ddd D MMM YYYY HH:mm'
  9905. },
  9906. calendar : {
  9907. sameDay: '[Idag] LT',
  9908. nextDay: '[Imorgon] LT',
  9909. lastDay: '[Igår] LT',
  9910. nextWeek: '[På] dddd LT',
  9911. lastWeek: '[I] dddd[s] LT',
  9912. sameElse: 'L'
  9913. },
  9914. relativeTime : {
  9915. future : 'om %s',
  9916. past : 'för %s sedan',
  9917. s : 'några sekunder',
  9918. m : 'en minut',
  9919. mm : '%d minuter',
  9920. h : 'en timme',
  9921. hh : '%d timmar',
  9922. d : 'en dag',
  9923. dd : '%d dagar',
  9924. M : 'en månad',
  9925. MM : '%d månader',
  9926. y : 'ett år',
  9927. yy : '%d år'
  9928. },
  9929. ordinalParse: /\d{1,2}(e|a)/,
  9930. ordinal : function (number) {
  9931. var b = number % 10,
  9932. output = (~~(number % 100 / 10) === 1) ? 'e' :
  9933. (b === 1) ? 'a' :
  9934. (b === 2) ? 'a' :
  9935. (b === 3) ? 'e' : 'e';
  9936. return number + output;
  9937. },
  9938. week : {
  9939. dow : 1, // Monday is the first day of the week.
  9940. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9941. }
  9942. });
  9943. //! moment.js locale configuration
  9944. //! locale : swahili (sw)
  9945. //! author : Fahad Kassim : https://github.com/fadsel
  9946. var sw = moment__default.defineLocale('sw', {
  9947. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  9948. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  9949. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  9950. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  9951. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  9952. weekdaysParseExact : true,
  9953. longDateFormat : {
  9954. LT : 'HH:mm',
  9955. LTS : 'HH:mm:ss',
  9956. L : 'DD.MM.YYYY',
  9957. LL : 'D MMMM YYYY',
  9958. LLL : 'D MMMM YYYY HH:mm',
  9959. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9960. },
  9961. calendar : {
  9962. sameDay : '[leo saa] LT',
  9963. nextDay : '[kesho saa] LT',
  9964. nextWeek : '[wiki ijayo] dddd [saat] LT',
  9965. lastDay : '[jana] LT',
  9966. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  9967. sameElse : 'L'
  9968. },
  9969. relativeTime : {
  9970. future : '%s baadaye',
  9971. past : 'tokea %s',
  9972. s : 'hivi punde',
  9973. m : 'dakika moja',
  9974. mm : 'dakika %d',
  9975. h : 'saa limoja',
  9976. hh : 'masaa %d',
  9977. d : 'siku moja',
  9978. dd : 'masiku %d',
  9979. M : 'mwezi mmoja',
  9980. MM : 'miezi %d',
  9981. y : 'mwaka mmoja',
  9982. yy : 'miaka %d'
  9983. },
  9984. week : {
  9985. dow : 1, // Monday is the first day of the week.
  9986. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9987. }
  9988. });
  9989. //! moment.js locale configuration
  9990. //! locale : tamil (ta)
  9991. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  9992. var ta__symbolMap = {
  9993. '1': '௧',
  9994. '2': '௨',
  9995. '3': '௩',
  9996. '4': '௪',
  9997. '5': '௫',
  9998. '6': '௬',
  9999. '7': '௭',
  10000. '8': '௮',
  10001. '9': '௯',
  10002. '0': '௦'
  10003. }, ta__numberMap = {
  10004. '௧': '1',
  10005. '௨': '2',
  10006. '௩': '3',
  10007. '௪': '4',
  10008. '௫': '5',
  10009. '௬': '6',
  10010. '௭': '7',
  10011. '௮': '8',
  10012. '௯': '9',
  10013. '௦': '0'
  10014. };
  10015. var ta = moment__default.defineLocale('ta', {
  10016. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  10017. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  10018. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  10019. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  10020. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  10021. longDateFormat : {
  10022. LT : 'HH:mm',
  10023. LTS : 'HH:mm:ss',
  10024. L : 'DD/MM/YYYY',
  10025. LL : 'D MMMM YYYY',
  10026. LLL : 'D MMMM YYYY, HH:mm',
  10027. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  10028. },
  10029. calendar : {
  10030. sameDay : '[இன்று] LT',
  10031. nextDay : '[நாளை] LT',
  10032. nextWeek : 'dddd, LT',
  10033. lastDay : '[நேற்று] LT',
  10034. lastWeek : '[கடந்த வாரம்] dddd, LT',
  10035. sameElse : 'L'
  10036. },
  10037. relativeTime : {
  10038. future : '%s இல்',
  10039. past : '%s முன்',
  10040. s : 'ஒரு சில விநாடிகள்',
  10041. m : 'ஒரு நிமிடம்',
  10042. mm : '%d நிமிடங்கள்',
  10043. h : 'ஒரு மணி நேரம்',
  10044. hh : '%d மணி நேரம்',
  10045. d : 'ஒரு நாள்',
  10046. dd : '%d நாட்கள்',
  10047. M : 'ஒரு மாதம்',
  10048. MM : '%d மாதங்கள்',
  10049. y : 'ஒரு வருடம்',
  10050. yy : '%d ஆண்டுகள்'
  10051. },
  10052. ordinalParse: /\d{1,2}வது/,
  10053. ordinal : function (number) {
  10054. return number + 'வது';
  10055. },
  10056. preparse: function (string) {
  10057. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  10058. return ta__numberMap[match];
  10059. });
  10060. },
  10061. postformat: function (string) {
  10062. return string.replace(/\d/g, function (match) {
  10063. return ta__symbolMap[match];
  10064. });
  10065. },
  10066. // refer http://ta.wikipedia.org/s/1er1
  10067. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  10068. meridiem : function (hour, minute, isLower) {
  10069. if (hour < 2) {
  10070. return ' யாமம்';
  10071. } else if (hour < 6) {
  10072. return ' வைகறை'; // வைகறை
  10073. } else if (hour < 10) {
  10074. return ' காலை'; // காலை
  10075. } else if (hour < 14) {
  10076. return ' நண்பகல்'; // நண்பகல்
  10077. } else if (hour < 18) {
  10078. return ' எற்பாடு'; // எற்பாடு
  10079. } else if (hour < 22) {
  10080. return ' மாலை'; // மாலை
  10081. } else {
  10082. return ' யாமம்';
  10083. }
  10084. },
  10085. meridiemHour : function (hour, meridiem) {
  10086. if (hour === 12) {
  10087. hour = 0;
  10088. }
  10089. if (meridiem === 'யாமம்') {
  10090. return hour < 2 ? hour : hour + 12;
  10091. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  10092. return hour;
  10093. } else if (meridiem === 'நண்பகல்') {
  10094. return hour >= 10 ? hour : hour + 12;
  10095. } else {
  10096. return hour + 12;
  10097. }
  10098. },
  10099. week : {
  10100. dow : 0, // Sunday is the first day of the week.
  10101. doy : 6 // The week that contains Jan 1st is the first week of the year.
  10102. }
  10103. });
  10104. //! moment.js locale configuration
  10105. //! locale : telugu (te)
  10106. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  10107. var te = moment__default.defineLocale('te', {
  10108. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  10109. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  10110. monthsParseExact : true,
  10111. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  10112. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  10113. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  10114. longDateFormat : {
  10115. LT : 'A h:mm',
  10116. LTS : 'A h:mm:ss',
  10117. L : 'DD/MM/YYYY',
  10118. LL : 'D MMMM YYYY',
  10119. LLL : 'D MMMM YYYY, A h:mm',
  10120. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  10121. },
  10122. calendar : {
  10123. sameDay : '[నేడు] LT',
  10124. nextDay : '[రేపు] LT',
  10125. nextWeek : 'dddd, LT',
  10126. lastDay : '[నిన్న] LT',
  10127. lastWeek : '[గత] dddd, LT',
  10128. sameElse : 'L'
  10129. },
  10130. relativeTime : {
  10131. future : '%s లో',
  10132. past : '%s క్రితం',
  10133. s : 'కొన్ని క్షణాలు',
  10134. m : 'ఒక నిమిషం',
  10135. mm : '%d నిమిషాలు',
  10136. h : 'ఒక గంట',
  10137. hh : '%d గంటలు',
  10138. d : 'ఒక రోజు',
  10139. dd : '%d రోజులు',
  10140. M : 'ఒక నెల',
  10141. MM : '%d నెలలు',
  10142. y : 'ఒక సంవత్సరం',
  10143. yy : '%d సంవత్సరాలు'
  10144. },
  10145. ordinalParse : /\d{1,2}వ/,
  10146. ordinal : '%dవ',
  10147. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  10148. meridiemHour : function (hour, meridiem) {
  10149. if (hour === 12) {
  10150. hour = 0;
  10151. }
  10152. if (meridiem === 'రాత్రి') {
  10153. return hour < 4 ? hour : hour + 12;
  10154. } else if (meridiem === 'ఉదయం') {
  10155. return hour;
  10156. } else if (meridiem === 'మధ్యాహ్నం') {
  10157. return hour >= 10 ? hour : hour + 12;
  10158. } else if (meridiem === 'సాయంత్రం') {
  10159. return hour + 12;
  10160. }
  10161. },
  10162. meridiem : function (hour, minute, isLower) {
  10163. if (hour < 4) {
  10164. return 'రాత్రి';
  10165. } else if (hour < 10) {
  10166. return 'ఉదయం';
  10167. } else if (hour < 17) {
  10168. return 'మధ్యాహ్నం';
  10169. } else if (hour < 20) {
  10170. return 'సాయంత్రం';
  10171. } else {
  10172. return 'రాత్రి';
  10173. }
  10174. },
  10175. week : {
  10176. dow : 0, // Sunday is the first day of the week.
  10177. doy : 6 // The week that contains Jan 1st is the first week of the year.
  10178. }
  10179. });
  10180. //! moment.js locale configuration
  10181. //! locale : thai (th)
  10182. //! author : Kridsada Thanabulpong : https://github.com/sirn
  10183. var th = moment__default.defineLocale('th', {
  10184. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  10185. monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),
  10186. monthsParseExact: true,
  10187. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  10188. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  10189. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  10190. weekdaysParseExact : true,
  10191. longDateFormat : {
  10192. LT : 'H นาฬิกา m นาที',
  10193. LTS : 'H นาฬิกา m นาที s วินาที',
  10194. L : 'YYYY/MM/DD',
  10195. LL : 'D MMMM YYYY',
  10196. LLL : 'D MMMM YYYY เวลา H นาฬิกา m นาที',
  10197. LLLL : 'วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที'
  10198. },
  10199. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  10200. isPM: function (input) {
  10201. return input === 'หลังเที่ยง';
  10202. },
  10203. meridiem : function (hour, minute, isLower) {
  10204. if (hour < 12) {
  10205. return 'ก่อนเที่ยง';
  10206. } else {
  10207. return 'หลังเที่ยง';
  10208. }
  10209. },
  10210. calendar : {
  10211. sameDay : '[วันนี้ เวลา] LT',
  10212. nextDay : '[พรุ่งนี้ เวลา] LT',
  10213. nextWeek : 'dddd[หน้า เวลา] LT',
  10214. lastDay : '[เมื่อวานนี้ เวลา] LT',
  10215. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  10216. sameElse : 'L'
  10217. },
  10218. relativeTime : {
  10219. future : 'อีก %s',
  10220. past : '%sที่แล้ว',
  10221. s : 'ไม่กี่วินาที',
  10222. m : '1 นาที',
  10223. mm : '%d นาที',
  10224. h : '1 ชั่วโมง',
  10225. hh : '%d ชั่วโมง',
  10226. d : '1 วัน',
  10227. dd : '%d วัน',
  10228. M : '1 เดือน',
  10229. MM : '%d เดือน',
  10230. y : '1 ปี',
  10231. yy : '%d ปี'
  10232. }
  10233. });
  10234. //! moment.js locale configuration
  10235. //! locale : Tagalog/Filipino (tl-ph)
  10236. //! author : Dan Hagman
  10237. var tl_ph = moment__default.defineLocale('tl-ph', {
  10238. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  10239. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  10240. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  10241. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  10242. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  10243. longDateFormat : {
  10244. LT : 'HH:mm',
  10245. LTS : 'HH:mm:ss',
  10246. L : 'MM/D/YYYY',
  10247. LL : 'MMMM D, YYYY',
  10248. LLL : 'MMMM D, YYYY HH:mm',
  10249. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  10250. },
  10251. calendar : {
  10252. sameDay: '[Ngayon sa] LT',
  10253. nextDay: '[Bukas sa] LT',
  10254. nextWeek: 'dddd [sa] LT',
  10255. lastDay: '[Kahapon sa] LT',
  10256. lastWeek: 'dddd [huling linggo] LT',
  10257. sameElse: 'L'
  10258. },
  10259. relativeTime : {
  10260. future : 'sa loob ng %s',
  10261. past : '%s ang nakalipas',
  10262. s : 'ilang segundo',
  10263. m : 'isang minuto',
  10264. mm : '%d minuto',
  10265. h : 'isang oras',
  10266. hh : '%d oras',
  10267. d : 'isang araw',
  10268. dd : '%d araw',
  10269. M : 'isang buwan',
  10270. MM : '%d buwan',
  10271. y : 'isang taon',
  10272. yy : '%d taon'
  10273. },
  10274. ordinalParse: /\d{1,2}/,
  10275. ordinal : function (number) {
  10276. return number;
  10277. },
  10278. week : {
  10279. dow : 1, // Monday is the first day of the week.
  10280. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10281. }
  10282. });
  10283. //! moment.js locale configuration
  10284. //! locale : Klingon (tlh)
  10285. //! author : Dominika Kruk : https://github.com/amaranthrose
  10286. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  10287. function translateFuture(output) {
  10288. var time = output;
  10289. time = (output.indexOf('jaj') !== -1) ?
  10290. time.slice(0, -3) + 'leS' :
  10291. (output.indexOf('jar') !== -1) ?
  10292. time.slice(0, -3) + 'waQ' :
  10293. (output.indexOf('DIS') !== -1) ?
  10294. time.slice(0, -3) + 'nem' :
  10295. time + ' pIq';
  10296. return time;
  10297. }
  10298. function translatePast(output) {
  10299. var time = output;
  10300. time = (output.indexOf('jaj') !== -1) ?
  10301. time.slice(0, -3) + 'Hu’' :
  10302. (output.indexOf('jar') !== -1) ?
  10303. time.slice(0, -3) + 'wen' :
  10304. (output.indexOf('DIS') !== -1) ?
  10305. time.slice(0, -3) + 'ben' :
  10306. time + ' ret';
  10307. return time;
  10308. }
  10309. function tlh__translate(number, withoutSuffix, string, isFuture) {
  10310. var numberNoun = numberAsNoun(number);
  10311. switch (string) {
  10312. case 'mm':
  10313. return numberNoun + ' tup';
  10314. case 'hh':
  10315. return numberNoun + ' rep';
  10316. case 'dd':
  10317. return numberNoun + ' jaj';
  10318. case 'MM':
  10319. return numberNoun + ' jar';
  10320. case 'yy':
  10321. return numberNoun + ' DIS';
  10322. }
  10323. }
  10324. function numberAsNoun(number) {
  10325. var hundred = Math.floor((number % 1000) / 100),
  10326. ten = Math.floor((number % 100) / 10),
  10327. one = number % 10,
  10328. word = '';
  10329. if (hundred > 0) {
  10330. word += numbersNouns[hundred] + 'vatlh';
  10331. }
  10332. if (ten > 0) {
  10333. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  10334. }
  10335. if (one > 0) {
  10336. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  10337. }
  10338. return (word === '') ? 'pagh' : word;
  10339. }
  10340. var tlh = moment__default.defineLocale('tlh', {
  10341. 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('_'),
  10342. 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('_'),
  10343. monthsParseExact : true,
  10344. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  10345. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  10346. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  10347. longDateFormat : {
  10348. LT : 'HH:mm',
  10349. LTS : 'HH:mm:ss',
  10350. L : 'DD.MM.YYYY',
  10351. LL : 'D MMMM YYYY',
  10352. LLL : 'D MMMM YYYY HH:mm',
  10353. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10354. },
  10355. calendar : {
  10356. sameDay: '[DaHjaj] LT',
  10357. nextDay: '[wa’leS] LT',
  10358. nextWeek: 'LLL',
  10359. lastDay: '[wa’Hu’] LT',
  10360. lastWeek: 'LLL',
  10361. sameElse: 'L'
  10362. },
  10363. relativeTime : {
  10364. future : translateFuture,
  10365. past : translatePast,
  10366. s : 'puS lup',
  10367. m : 'wa’ tup',
  10368. mm : tlh__translate,
  10369. h : 'wa’ rep',
  10370. hh : tlh__translate,
  10371. d : 'wa’ jaj',
  10372. dd : tlh__translate,
  10373. M : 'wa’ jar',
  10374. MM : tlh__translate,
  10375. y : 'wa’ DIS',
  10376. yy : tlh__translate
  10377. },
  10378. ordinalParse: /\d{1,2}\./,
  10379. ordinal : '%d.',
  10380. week : {
  10381. dow : 1, // Monday is the first day of the week.
  10382. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10383. }
  10384. });
  10385. //! moment.js locale configuration
  10386. //! locale : turkish (tr)
  10387. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  10388. //! Burak Yiğit Kaya: https://github.com/BYK
  10389. var tr__suffixes = {
  10390. 1: '\'inci',
  10391. 5: '\'inci',
  10392. 8: '\'inci',
  10393. 70: '\'inci',
  10394. 80: '\'inci',
  10395. 2: '\'nci',
  10396. 7: '\'nci',
  10397. 20: '\'nci',
  10398. 50: '\'nci',
  10399. 3: '\'üncü',
  10400. 4: '\'üncü',
  10401. 100: '\'üncü',
  10402. 6: '\'ncı',
  10403. 9: '\'uncu',
  10404. 10: '\'uncu',
  10405. 30: '\'uncu',
  10406. 60: '\'ıncı',
  10407. 90: '\'ıncı'
  10408. };
  10409. var tr = moment__default.defineLocale('tr', {
  10410. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  10411. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  10412. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  10413. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  10414. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  10415. longDateFormat : {
  10416. LT : 'HH:mm',
  10417. LTS : 'HH:mm:ss',
  10418. L : 'DD.MM.YYYY',
  10419. LL : 'D MMMM YYYY',
  10420. LLL : 'D MMMM YYYY HH:mm',
  10421. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10422. },
  10423. calendar : {
  10424. sameDay : '[bugün saat] LT',
  10425. nextDay : '[yarın saat] LT',
  10426. nextWeek : '[haftaya] dddd [saat] LT',
  10427. lastDay : '[dün] LT',
  10428. lastWeek : '[geçen hafta] dddd [saat] LT',
  10429. sameElse : 'L'
  10430. },
  10431. relativeTime : {
  10432. future : '%s sonra',
  10433. past : '%s önce',
  10434. s : 'birkaç saniye',
  10435. m : 'bir dakika',
  10436. mm : '%d dakika',
  10437. h : 'bir saat',
  10438. hh : '%d saat',
  10439. d : 'bir gün',
  10440. dd : '%d gün',
  10441. M : 'bir ay',
  10442. MM : '%d ay',
  10443. y : 'bir yıl',
  10444. yy : '%d yıl'
  10445. },
  10446. ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  10447. ordinal : function (number) {
  10448. if (number === 0) { // special case for zero
  10449. return number + '\'ıncı';
  10450. }
  10451. var a = number % 10,
  10452. b = number % 100 - a,
  10453. c = number >= 100 ? 100 : null;
  10454. return number + (tr__suffixes[a] || tr__suffixes[b] || tr__suffixes[c]);
  10455. },
  10456. week : {
  10457. dow : 1, // Monday is the first day of the week.
  10458. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10459. }
  10460. });
  10461. //! moment.js locale configuration
  10462. //! locale : talossan (tzl)
  10463. //! author : Robin van der Vliet : https://github.com/robin0van0der0v with the help of Iustì Canun
  10464. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  10465. // This is currently too difficult (maybe even impossible) to add.
  10466. var tzl = moment__default.defineLocale('tzl', {
  10467. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  10468. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  10469. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  10470. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  10471. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  10472. longDateFormat : {
  10473. LT : 'HH.mm',
  10474. LTS : 'HH.mm.ss',
  10475. L : 'DD.MM.YYYY',
  10476. LL : 'D. MMMM [dallas] YYYY',
  10477. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  10478. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  10479. },
  10480. meridiemParse: /d\'o|d\'a/i,
  10481. isPM : function (input) {
  10482. return 'd\'o' === input.toLowerCase();
  10483. },
  10484. meridiem : function (hours, minutes, isLower) {
  10485. if (hours > 11) {
  10486. return isLower ? 'd\'o' : 'D\'O';
  10487. } else {
  10488. return isLower ? 'd\'a' : 'D\'A';
  10489. }
  10490. },
  10491. calendar : {
  10492. sameDay : '[oxhi à] LT',
  10493. nextDay : '[demà à] LT',
  10494. nextWeek : 'dddd [à] LT',
  10495. lastDay : '[ieiri à] LT',
  10496. lastWeek : '[sür el] dddd [lasteu à] LT',
  10497. sameElse : 'L'
  10498. },
  10499. relativeTime : {
  10500. future : 'osprei %s',
  10501. past : 'ja%s',
  10502. s : tzl__processRelativeTime,
  10503. m : tzl__processRelativeTime,
  10504. mm : tzl__processRelativeTime,
  10505. h : tzl__processRelativeTime,
  10506. hh : tzl__processRelativeTime,
  10507. d : tzl__processRelativeTime,
  10508. dd : tzl__processRelativeTime,
  10509. M : tzl__processRelativeTime,
  10510. MM : tzl__processRelativeTime,
  10511. y : tzl__processRelativeTime,
  10512. yy : tzl__processRelativeTime
  10513. },
  10514. ordinalParse: /\d{1,2}\./,
  10515. ordinal : '%d.',
  10516. week : {
  10517. dow : 1, // Monday is the first day of the week.
  10518. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10519. }
  10520. });
  10521. function tzl__processRelativeTime(number, withoutSuffix, key, isFuture) {
  10522. var format = {
  10523. 's': ['viensas secunds', '\'iensas secunds'],
  10524. 'm': ['\'n míut', '\'iens míut'],
  10525. 'mm': [number + ' míuts', '' + number + ' míuts'],
  10526. 'h': ['\'n þora', '\'iensa þora'],
  10527. 'hh': [number + ' þoras', '' + number + ' þoras'],
  10528. 'd': ['\'n ziua', '\'iensa ziua'],
  10529. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  10530. 'M': ['\'n mes', '\'iens mes'],
  10531. 'MM': [number + ' mesen', '' + number + ' mesen'],
  10532. 'y': ['\'n ar', '\'iens ar'],
  10533. 'yy': [number + ' ars', '' + number + ' ars']
  10534. };
  10535. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  10536. }
  10537. //! moment.js locale configuration
  10538. //! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)
  10539. //! author : Abdel Said : https://github.com/abdelsaid
  10540. var tzm_latn = moment__default.defineLocale('tzm-latn', {
  10541. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  10542. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  10543. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  10544. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  10545. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  10546. longDateFormat : {
  10547. LT : 'HH:mm',
  10548. LTS : 'HH:mm:ss',
  10549. L : 'DD/MM/YYYY',
  10550. LL : 'D MMMM YYYY',
  10551. LLL : 'D MMMM YYYY HH:mm',
  10552. LLLL : 'dddd D MMMM YYYY HH:mm'
  10553. },
  10554. calendar : {
  10555. sameDay: '[asdkh g] LT',
  10556. nextDay: '[aska g] LT',
  10557. nextWeek: 'dddd [g] LT',
  10558. lastDay: '[assant g] LT',
  10559. lastWeek: 'dddd [g] LT',
  10560. sameElse: 'L'
  10561. },
  10562. relativeTime : {
  10563. future : 'dadkh s yan %s',
  10564. past : 'yan %s',
  10565. s : 'imik',
  10566. m : 'minuḍ',
  10567. mm : '%d minuḍ',
  10568. h : 'saɛa',
  10569. hh : '%d tassaɛin',
  10570. d : 'ass',
  10571. dd : '%d ossan',
  10572. M : 'ayowr',
  10573. MM : '%d iyyirn',
  10574. y : 'asgas',
  10575. yy : '%d isgasn'
  10576. },
  10577. week : {
  10578. dow : 6, // Saturday is the first day of the week.
  10579. doy : 12 // The week that contains Jan 1st is the first week of the year.
  10580. }
  10581. });
  10582. //! moment.js locale configuration
  10583. //! locale : Morocco Central Atlas Tamaziɣt (tzm)
  10584. //! author : Abdel Said : https://github.com/abdelsaid
  10585. var tzm = moment__default.defineLocale('tzm', {
  10586. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  10587. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  10588. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  10589. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  10590. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  10591. longDateFormat : {
  10592. LT : 'HH:mm',
  10593. LTS: 'HH:mm:ss',
  10594. L : 'DD/MM/YYYY',
  10595. LL : 'D MMMM YYYY',
  10596. LLL : 'D MMMM YYYY HH:mm',
  10597. LLLL : 'dddd D MMMM YYYY HH:mm'
  10598. },
  10599. calendar : {
  10600. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  10601. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  10602. nextWeek: 'dddd [ⴴ] LT',
  10603. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  10604. lastWeek: 'dddd [ⴴ] LT',
  10605. sameElse: 'L'
  10606. },
  10607. relativeTime : {
  10608. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  10609. past : 'ⵢⴰⵏ %s',
  10610. s : 'ⵉⵎⵉⴽ',
  10611. m : 'ⵎⵉⵏⵓⴺ',
  10612. mm : '%d ⵎⵉⵏⵓⴺ',
  10613. h : 'ⵙⴰⵄⴰ',
  10614. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  10615. d : 'ⴰⵙⵙ',
  10616. dd : '%d oⵙⵙⴰⵏ',
  10617. M : 'ⴰⵢoⵓⵔ',
  10618. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  10619. y : 'ⴰⵙⴳⴰⵙ',
  10620. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  10621. },
  10622. week : {
  10623. dow : 6, // Saturday is the first day of the week.
  10624. doy : 12 // The week that contains Jan 1st is the first week of the year.
  10625. }
  10626. });
  10627. //! moment.js locale configuration
  10628. //! locale : ukrainian (uk)
  10629. //! author : zemlanin : https://github.com/zemlanin
  10630. //! Author : Menelion Elensúle : https://github.com/Oire
  10631. function uk__plural(word, num) {
  10632. var forms = word.split('_');
  10633. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  10634. }
  10635. function uk__relativeTimeWithPlural(number, withoutSuffix, key) {
  10636. var format = {
  10637. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  10638. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  10639. 'dd': 'день_дні_днів',
  10640. 'MM': 'місяць_місяці_місяців',
  10641. 'yy': 'рік_роки_років'
  10642. };
  10643. if (key === 'm') {
  10644. return withoutSuffix ? 'хвилина' : 'хвилину';
  10645. }
  10646. else if (key === 'h') {
  10647. return withoutSuffix ? 'година' : 'годину';
  10648. }
  10649. else {
  10650. return number + ' ' + uk__plural(format[key], +number);
  10651. }
  10652. }
  10653. function weekdaysCaseReplace(m, format) {
  10654. var weekdays = {
  10655. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  10656. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  10657. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  10658. },
  10659. nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  10660. 'accusative' :
  10661. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  10662. 'genitive' :
  10663. 'nominative');
  10664. return weekdays[nounCase][m.day()];
  10665. }
  10666. function processHoursFunction(str) {
  10667. return function () {
  10668. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  10669. };
  10670. }
  10671. var uk = moment__default.defineLocale('uk', {
  10672. months : {
  10673. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  10674. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  10675. },
  10676. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  10677. weekdays : weekdaysCaseReplace,
  10678. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  10679. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  10680. longDateFormat : {
  10681. LT : 'HH:mm',
  10682. LTS : 'HH:mm:ss',
  10683. L : 'DD.MM.YYYY',
  10684. LL : 'D MMMM YYYY р.',
  10685. LLL : 'D MMMM YYYY р., HH:mm',
  10686. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  10687. },
  10688. calendar : {
  10689. sameDay: processHoursFunction('[Сьогодні '),
  10690. nextDay: processHoursFunction('[Завтра '),
  10691. lastDay: processHoursFunction('[Вчора '),
  10692. nextWeek: processHoursFunction('[У] dddd ['),
  10693. lastWeek: function () {
  10694. switch (this.day()) {
  10695. case 0:
  10696. case 3:
  10697. case 5:
  10698. case 6:
  10699. return processHoursFunction('[Минулої] dddd [').call(this);
  10700. case 1:
  10701. case 2:
  10702. case 4:
  10703. return processHoursFunction('[Минулого] dddd [').call(this);
  10704. }
  10705. },
  10706. sameElse: 'L'
  10707. },
  10708. relativeTime : {
  10709. future : 'за %s',
  10710. past : '%s тому',
  10711. s : 'декілька секунд',
  10712. m : uk__relativeTimeWithPlural,
  10713. mm : uk__relativeTimeWithPlural,
  10714. h : 'годину',
  10715. hh : uk__relativeTimeWithPlural,
  10716. d : 'день',
  10717. dd : uk__relativeTimeWithPlural,
  10718. M : 'місяць',
  10719. MM : uk__relativeTimeWithPlural,
  10720. y : 'рік',
  10721. yy : uk__relativeTimeWithPlural
  10722. },
  10723. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  10724. meridiemParse: /ночі|ранку|дня|вечора/,
  10725. isPM: function (input) {
  10726. return /^(дня|вечора)$/.test(input);
  10727. },
  10728. meridiem : function (hour, minute, isLower) {
  10729. if (hour < 4) {
  10730. return 'ночі';
  10731. } else if (hour < 12) {
  10732. return 'ранку';
  10733. } else if (hour < 17) {
  10734. return 'дня';
  10735. } else {
  10736. return 'вечора';
  10737. }
  10738. },
  10739. ordinalParse: /\d{1,2}-(й|го)/,
  10740. ordinal: function (number, period) {
  10741. switch (period) {
  10742. case 'M':
  10743. case 'd':
  10744. case 'DDD':
  10745. case 'w':
  10746. case 'W':
  10747. return number + '-й';
  10748. case 'D':
  10749. return number + '-го';
  10750. default:
  10751. return number;
  10752. }
  10753. },
  10754. week : {
  10755. dow : 1, // Monday is the first day of the week.
  10756. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10757. }
  10758. });
  10759. //! moment.js locale configuration
  10760. //! locale : uzbek (uz)
  10761. //! author : Sardor Muminov : https://github.com/muminoff
  10762. var uz = moment__default.defineLocale('uz', {
  10763. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  10764. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  10765. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  10766. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  10767. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  10768. longDateFormat : {
  10769. LT : 'HH:mm',
  10770. LTS : 'HH:mm:ss',
  10771. L : 'DD/MM/YYYY',
  10772. LL : 'D MMMM YYYY',
  10773. LLL : 'D MMMM YYYY HH:mm',
  10774. LLLL : 'D MMMM YYYY, dddd HH:mm'
  10775. },
  10776. calendar : {
  10777. sameDay : '[Бугун соат] LT [да]',
  10778. nextDay : '[Эртага] LT [да]',
  10779. nextWeek : 'dddd [куни соат] LT [да]',
  10780. lastDay : '[Кеча соат] LT [да]',
  10781. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  10782. sameElse : 'L'
  10783. },
  10784. relativeTime : {
  10785. future : 'Якин %s ичида',
  10786. past : 'Бир неча %s олдин',
  10787. s : 'фурсат',
  10788. m : 'бир дакика',
  10789. mm : '%d дакика',
  10790. h : 'бир соат',
  10791. hh : '%d соат',
  10792. d : 'бир кун',
  10793. dd : '%d кун',
  10794. M : 'бир ой',
  10795. MM : '%d ой',
  10796. y : 'бир йил',
  10797. yy : '%d йил'
  10798. },
  10799. week : {
  10800. dow : 1, // Monday is the first day of the week.
  10801. doy : 7 // The week that contains Jan 4th is the first week of the year.
  10802. }
  10803. });
  10804. //! moment.js locale configuration
  10805. //! locale : vietnamese (vi)
  10806. //! author : Bang Nguyen : https://github.com/bangnk
  10807. var vi = moment__default.defineLocale('vi', {
  10808. 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('_'),
  10809. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  10810. monthsParseExact : true,
  10811. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  10812. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  10813. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  10814. weekdaysParseExact : true,
  10815. meridiemParse: /sa|ch/i,
  10816. isPM : function (input) {
  10817. return /^ch$/i.test(input);
  10818. },
  10819. meridiem : function (hours, minutes, isLower) {
  10820. if (hours < 12) {
  10821. return isLower ? 'sa' : 'SA';
  10822. } else {
  10823. return isLower ? 'ch' : 'CH';
  10824. }
  10825. },
  10826. longDateFormat : {
  10827. LT : 'HH:mm',
  10828. LTS : 'HH:mm:ss',
  10829. L : 'DD/MM/YYYY',
  10830. LL : 'D MMMM [năm] YYYY',
  10831. LLL : 'D MMMM [năm] YYYY HH:mm',
  10832. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  10833. l : 'DD/M/YYYY',
  10834. ll : 'D MMM YYYY',
  10835. lll : 'D MMM YYYY HH:mm',
  10836. llll : 'ddd, D MMM YYYY HH:mm'
  10837. },
  10838. calendar : {
  10839. sameDay: '[Hôm nay lúc] LT',
  10840. nextDay: '[Ngày mai lúc] LT',
  10841. nextWeek: 'dddd [tuần tới lúc] LT',
  10842. lastDay: '[Hôm qua lúc] LT',
  10843. lastWeek: 'dddd [tuần rồi lúc] LT',
  10844. sameElse: 'L'
  10845. },
  10846. relativeTime : {
  10847. future : '%s tới',
  10848. past : '%s trước',
  10849. s : 'vài giây',
  10850. m : 'một phút',
  10851. mm : '%d phút',
  10852. h : 'một giờ',
  10853. hh : '%d giờ',
  10854. d : 'một ngày',
  10855. dd : '%d ngày',
  10856. M : 'một tháng',
  10857. MM : '%d tháng',
  10858. y : 'một năm',
  10859. yy : '%d năm'
  10860. },
  10861. ordinalParse: /\d{1,2}/,
  10862. ordinal : function (number) {
  10863. return number;
  10864. },
  10865. week : {
  10866. dow : 1, // Monday is the first day of the week.
  10867. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10868. }
  10869. });
  10870. //! moment.js locale configuration
  10871. //! locale : pseudo (x-pseudo)
  10872. //! author : Andrew Hood : https://github.com/andrewhood125
  10873. var x_pseudo = moment__default.defineLocale('x-pseudo', {
  10874. 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('_'),
  10875. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  10876. monthsParseExact : true,
  10877. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  10878. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  10879. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  10880. weekdaysParseExact : true,
  10881. longDateFormat : {
  10882. LT : 'HH:mm',
  10883. L : 'DD/MM/YYYY',
  10884. LL : 'D MMMM YYYY',
  10885. LLL : 'D MMMM YYYY HH:mm',
  10886. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10887. },
  10888. calendar : {
  10889. sameDay : '[T~ódá~ý át] LT',
  10890. nextDay : '[T~ómó~rró~w át] LT',
  10891. nextWeek : 'dddd [át] LT',
  10892. lastDay : '[Ý~ést~érdá~ý át] LT',
  10893. lastWeek : '[L~ást] dddd [át] LT',
  10894. sameElse : 'L'
  10895. },
  10896. relativeTime : {
  10897. future : 'í~ñ %s',
  10898. past : '%s á~gó',
  10899. s : 'á ~féw ~sécó~ñds',
  10900. m : 'á ~míñ~úté',
  10901. mm : '%d m~íñú~tés',
  10902. h : 'á~ñ hó~úr',
  10903. hh : '%d h~óúrs',
  10904. d : 'á ~dáý',
  10905. dd : '%d d~áýs',
  10906. M : 'á ~móñ~th',
  10907. MM : '%d m~óñt~hs',
  10908. y : 'á ~ýéár',
  10909. yy : '%d ý~éárs'
  10910. },
  10911. ordinalParse: /\d{1,2}(th|st|nd|rd)/,
  10912. ordinal : function (number) {
  10913. var b = number % 10,
  10914. output = (~~(number % 100 / 10) === 1) ? 'th' :
  10915. (b === 1) ? 'st' :
  10916. (b === 2) ? 'nd' :
  10917. (b === 3) ? 'rd' : 'th';
  10918. return number + output;
  10919. },
  10920. week : {
  10921. dow : 1, // Monday is the first day of the week.
  10922. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10923. }
  10924. });
  10925. //! moment.js locale configuration
  10926. //! locale : chinese (zh-cn)
  10927. //! author : suupic : https://github.com/suupic
  10928. //! author : Zeno Zeng : https://github.com/zenozeng
  10929. var zh_cn = moment__default.defineLocale('zh-cn', {
  10930. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  10931. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10932. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  10933. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  10934. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  10935. longDateFormat : {
  10936. LT : 'Ah点mm分',
  10937. LTS : 'Ah点m分s秒',
  10938. L : 'YYYY-MM-DD',
  10939. LL : 'YYYY年MMMD日',
  10940. LLL : 'YYYY年MMMD日Ah点mm分',
  10941. LLLL : 'YYYY年MMMD日ddddAh点mm分',
  10942. l : 'YYYY-MM-DD',
  10943. ll : 'YYYY年MMMD日',
  10944. lll : 'YYYY年MMMD日Ah点mm分',
  10945. llll : 'YYYY年MMMD日ddddAh点mm分'
  10946. },
  10947. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  10948. meridiemHour: function (hour, meridiem) {
  10949. if (hour === 12) {
  10950. hour = 0;
  10951. }
  10952. if (meridiem === '凌晨' || meridiem === '早上' ||
  10953. meridiem === '上午') {
  10954. return hour;
  10955. } else if (meridiem === '下午' || meridiem === '晚上') {
  10956. return hour + 12;
  10957. } else {
  10958. // '中午'
  10959. return hour >= 11 ? hour : hour + 12;
  10960. }
  10961. },
  10962. meridiem : function (hour, minute, isLower) {
  10963. var hm = hour * 100 + minute;
  10964. if (hm < 600) {
  10965. return '凌晨';
  10966. } else if (hm < 900) {
  10967. return '早上';
  10968. } else if (hm < 1130) {
  10969. return '上午';
  10970. } else if (hm < 1230) {
  10971. return '中午';
  10972. } else if (hm < 1800) {
  10973. return '下午';
  10974. } else {
  10975. return '晚上';
  10976. }
  10977. },
  10978. calendar : {
  10979. sameDay : function () {
  10980. return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
  10981. },
  10982. nextDay : function () {
  10983. return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
  10984. },
  10985. lastDay : function () {
  10986. return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
  10987. },
  10988. nextWeek : function () {
  10989. var startOfWeek, prefix;
  10990. startOfWeek = moment__default().startOf('week');
  10991. prefix = this.diff(startOfWeek, 'days') >= 7 ? '[下]' : '[本]';
  10992. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  10993. },
  10994. lastWeek : function () {
  10995. var startOfWeek, prefix;
  10996. startOfWeek = moment__default().startOf('week');
  10997. prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
  10998. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  10999. },
  11000. sameElse : 'LL'
  11001. },
  11002. ordinalParse: /\d{1,2}(日|月|周)/,
  11003. ordinal : function (number, period) {
  11004. switch (period) {
  11005. case 'd':
  11006. case 'D':
  11007. case 'DDD':
  11008. return number + '日';
  11009. case 'M':
  11010. return number + '月';
  11011. case 'w':
  11012. case 'W':
  11013. return number + '周';
  11014. default:
  11015. return number;
  11016. }
  11017. },
  11018. relativeTime : {
  11019. future : '%s内',
  11020. past : '%s前',
  11021. s : '几秒',
  11022. m : '1 分钟',
  11023. mm : '%d 分钟',
  11024. h : '1 小时',
  11025. hh : '%d 小时',
  11026. d : '1 天',
  11027. dd : '%d 天',
  11028. M : '1 个月',
  11029. MM : '%d 个月',
  11030. y : '1 年',
  11031. yy : '%d 年'
  11032. },
  11033. week : {
  11034. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  11035. dow : 1, // Monday is the first day of the week.
  11036. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11037. }
  11038. });
  11039. //! moment.js locale configuration
  11040. //! locale : traditional chinese (zh-tw)
  11041. //! author : Ben : https://github.com/ben-lin
  11042. var zh_tw = moment__default.defineLocale('zh-tw', {
  11043. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  11044. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  11045. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  11046. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  11047. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  11048. longDateFormat : {
  11049. LT : 'Ah點mm分',
  11050. LTS : 'Ah點m分s秒',
  11051. L : 'YYYY年MMMD日',
  11052. LL : 'YYYY年MMMD日',
  11053. LLL : 'YYYY年MMMD日Ah點mm分',
  11054. LLLL : 'YYYY年MMMD日ddddAh點mm分',
  11055. l : 'YYYY年MMMD日',
  11056. ll : 'YYYY年MMMD日',
  11057. lll : 'YYYY年MMMD日Ah點mm分',
  11058. llll : 'YYYY年MMMD日ddddAh點mm分'
  11059. },
  11060. meridiemParse: /早上|上午|中午|下午|晚上/,
  11061. meridiemHour : function (hour, meridiem) {
  11062. if (hour === 12) {
  11063. hour = 0;
  11064. }
  11065. if (meridiem === '早上' || meridiem === '上午') {
  11066. return hour;
  11067. } else if (meridiem === '中午') {
  11068. return hour >= 11 ? hour : hour + 12;
  11069. } else if (meridiem === '下午' || meridiem === '晚上') {
  11070. return hour + 12;
  11071. }
  11072. },
  11073. meridiem : function (hour, minute, isLower) {
  11074. var hm = hour * 100 + minute;
  11075. if (hm < 900) {
  11076. return '早上';
  11077. } else if (hm < 1130) {
  11078. return '上午';
  11079. } else if (hm < 1230) {
  11080. return '中午';
  11081. } else if (hm < 1800) {
  11082. return '下午';
  11083. } else {
  11084. return '晚上';
  11085. }
  11086. },
  11087. calendar : {
  11088. sameDay : '[今天]LT',
  11089. nextDay : '[明天]LT',
  11090. nextWeek : '[下]ddddLT',
  11091. lastDay : '[昨天]LT',
  11092. lastWeek : '[上]ddddLT',
  11093. sameElse : 'L'
  11094. },
  11095. ordinalParse: /\d{1,2}(日|月|週)/,
  11096. ordinal : function (number, period) {
  11097. switch (period) {
  11098. case 'd' :
  11099. case 'D' :
  11100. case 'DDD' :
  11101. return number + '日';
  11102. case 'M' :
  11103. return number + '月';
  11104. case 'w' :
  11105. case 'W' :
  11106. return number + '週';
  11107. default :
  11108. return number;
  11109. }
  11110. },
  11111. relativeTime : {
  11112. future : '%s內',
  11113. past : '%s前',
  11114. s : '幾秒',
  11115. m : '1分鐘',
  11116. mm : '%d分鐘',
  11117. h : '1小時',
  11118. hh : '%d小時',
  11119. d : '1天',
  11120. dd : '%d天',
  11121. M : '1個月',
  11122. MM : '%d個月',
  11123. y : '1年',
  11124. yy : '%d年'
  11125. }
  11126. });
  11127. var moment_with_locales = moment__default;
  11128. moment_with_locales.locale('en');
  11129. return moment_with_locales;
  11130. }));