moment-with-locales.js 443 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251
  1. //! moment.js
  2. //! version : 2.15.1
  3. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  4. //! license : MIT
  5. //! momentjs.com
  6. ;(function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  8. typeof define === 'function' && define.amd ? define(factory) :
  9. global.moment = factory()
  10. }(this, function () { 'use strict';
  11. var hookCallback;
  12. function utils_hooks__hooks () {
  13. return hookCallback.apply(null, arguments);
  14. }
  15. // This is done to register the method called with moment()
  16. // without creating circular dependencies.
  17. function setHookCallback (callback) {
  18. hookCallback = callback;
  19. }
  20. function isArray(input) {
  21. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  22. }
  23. function isObject(input) {
  24. // IE8 will treat undefined and null as object if it wasn't for
  25. // input != null
  26. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  27. }
  28. function isObjectEmpty(obj) {
  29. var k;
  30. for (k in obj) {
  31. // even if its not own property I'd still call it non-empty
  32. return false;
  33. }
  34. return true;
  35. }
  36. function isDate(input) {
  37. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  38. }
  39. function map(arr, fn) {
  40. var res = [], i;
  41. for (i = 0; i < arr.length; ++i) {
  42. res.push(fn(arr[i], i));
  43. }
  44. return res;
  45. }
  46. function hasOwnProp(a, b) {
  47. return Object.prototype.hasOwnProperty.call(a, b);
  48. }
  49. function extend(a, b) {
  50. for (var i in b) {
  51. if (hasOwnProp(b, i)) {
  52. a[i] = b[i];
  53. }
  54. }
  55. if (hasOwnProp(b, 'toString')) {
  56. a.toString = b.toString;
  57. }
  58. if (hasOwnProp(b, 'valueOf')) {
  59. a.valueOf = b.valueOf;
  60. }
  61. return a;
  62. }
  63. function create_utc__createUTC (input, format, locale, strict) {
  64. return createLocalOrUTC(input, format, locale, strict, true).utc();
  65. }
  66. function defaultParsingFlags() {
  67. // We need to deep clone this object.
  68. return {
  69. empty : false,
  70. unusedTokens : [],
  71. unusedInput : [],
  72. overflow : -2,
  73. charsLeftOver : 0,
  74. nullInput : false,
  75. invalidMonth : null,
  76. invalidFormat : false,
  77. userInvalidated : false,
  78. iso : false,
  79. parsedDateParts : [],
  80. meridiem : null
  81. };
  82. }
  83. function getParsingFlags(m) {
  84. if (m._pf == null) {
  85. m._pf = defaultParsingFlags();
  86. }
  87. return m._pf;
  88. }
  89. var some;
  90. if (Array.prototype.some) {
  91. some = Array.prototype.some;
  92. } else {
  93. some = function (fun) {
  94. var t = Object(this);
  95. var len = t.length >>> 0;
  96. for (var i = 0; i < len; i++) {
  97. if (i in t && fun.call(this, t[i], i, t)) {
  98. return true;
  99. }
  100. }
  101. return false;
  102. };
  103. }
  104. function valid__isValid(m) {
  105. if (m._isValid == null) {
  106. var flags = getParsingFlags(m);
  107. var parsedParts = some.call(flags.parsedDateParts, function (i) {
  108. return i != null;
  109. });
  110. var isNowValid = !isNaN(m._d.getTime()) &&
  111. flags.overflow < 0 &&
  112. !flags.empty &&
  113. !flags.invalidMonth &&
  114. !flags.invalidWeekday &&
  115. !flags.nullInput &&
  116. !flags.invalidFormat &&
  117. !flags.userInvalidated &&
  118. (!flags.meridiem || (flags.meridiem && parsedParts));
  119. if (m._strict) {
  120. isNowValid = isNowValid &&
  121. flags.charsLeftOver === 0 &&
  122. flags.unusedTokens.length === 0 &&
  123. flags.bigHour === undefined;
  124. }
  125. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  126. m._isValid = isNowValid;
  127. }
  128. else {
  129. return isNowValid;
  130. }
  131. }
  132. return m._isValid;
  133. }
  134. function valid__createInvalid (flags) {
  135. var m = create_utc__createUTC(NaN);
  136. if (flags != null) {
  137. extend(getParsingFlags(m), flags);
  138. }
  139. else {
  140. getParsingFlags(m).userInvalidated = true;
  141. }
  142. return m;
  143. }
  144. function isUndefined(input) {
  145. return input === void 0;
  146. }
  147. // Plugins that add properties should also add the key here (null value),
  148. // so we can properly clone ourselves.
  149. var momentProperties = utils_hooks__hooks.momentProperties = [];
  150. function copyConfig(to, from) {
  151. var i, prop, val;
  152. if (!isUndefined(from._isAMomentObject)) {
  153. to._isAMomentObject = from._isAMomentObject;
  154. }
  155. if (!isUndefined(from._i)) {
  156. to._i = from._i;
  157. }
  158. if (!isUndefined(from._f)) {
  159. to._f = from._f;
  160. }
  161. if (!isUndefined(from._l)) {
  162. to._l = from._l;
  163. }
  164. if (!isUndefined(from._strict)) {
  165. to._strict = from._strict;
  166. }
  167. if (!isUndefined(from._tzm)) {
  168. to._tzm = from._tzm;
  169. }
  170. if (!isUndefined(from._isUTC)) {
  171. to._isUTC = from._isUTC;
  172. }
  173. if (!isUndefined(from._offset)) {
  174. to._offset = from._offset;
  175. }
  176. if (!isUndefined(from._pf)) {
  177. to._pf = getParsingFlags(from);
  178. }
  179. if (!isUndefined(from._locale)) {
  180. to._locale = from._locale;
  181. }
  182. if (momentProperties.length > 0) {
  183. for (i in momentProperties) {
  184. prop = momentProperties[i];
  185. val = from[prop];
  186. if (!isUndefined(val)) {
  187. to[prop] = val;
  188. }
  189. }
  190. }
  191. return to;
  192. }
  193. var updateInProgress = false;
  194. // Moment prototype object
  195. function Moment(config) {
  196. copyConfig(this, config);
  197. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  198. // Prevent infinite loop in case updateOffset creates new moment
  199. // objects.
  200. if (updateInProgress === false) {
  201. updateInProgress = true;
  202. utils_hooks__hooks.updateOffset(this);
  203. updateInProgress = false;
  204. }
  205. }
  206. function isMoment (obj) {
  207. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  208. }
  209. function absFloor (number) {
  210. if (number < 0) {
  211. // -0 -> 0
  212. return Math.ceil(number) || 0;
  213. } else {
  214. return Math.floor(number);
  215. }
  216. }
  217. function toInt(argumentForCoercion) {
  218. var coercedNumber = +argumentForCoercion,
  219. value = 0;
  220. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  221. value = absFloor(coercedNumber);
  222. }
  223. return value;
  224. }
  225. // compare two arrays, return the number of differences
  226. function compareArrays(array1, array2, dontConvert) {
  227. var len = Math.min(array1.length, array2.length),
  228. lengthDiff = Math.abs(array1.length - array2.length),
  229. diffs = 0,
  230. i;
  231. for (i = 0; i < len; i++) {
  232. if ((dontConvert && array1[i] !== array2[i]) ||
  233. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  234. diffs++;
  235. }
  236. }
  237. return diffs + lengthDiff;
  238. }
  239. function warn(msg) {
  240. if (utils_hooks__hooks.suppressDeprecationWarnings === false &&
  241. (typeof console !== 'undefined') && console.warn) {
  242. console.warn('Deprecation warning: ' + msg);
  243. }
  244. }
  245. function deprecate(msg, fn) {
  246. var firstTime = true;
  247. return extend(function () {
  248. if (utils_hooks__hooks.deprecationHandler != null) {
  249. utils_hooks__hooks.deprecationHandler(null, msg);
  250. }
  251. if (firstTime) {
  252. var args = [];
  253. var arg;
  254. for (var i = 0; i < arguments.length; i++) {
  255. arg = '';
  256. if (typeof arguments[i] === 'object') {
  257. arg += '\n[' + i + '] ';
  258. for (var key in arguments[0]) {
  259. arg += key + ': ' + arguments[0][key] + ', ';
  260. }
  261. arg = arg.slice(0, -2); // Remove trailing comma and space
  262. } else {
  263. arg = arguments[i];
  264. }
  265. args.push(arg);
  266. }
  267. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
  268. firstTime = false;
  269. }
  270. return fn.apply(this, arguments);
  271. }, fn);
  272. }
  273. var deprecations = {};
  274. function deprecateSimple(name, msg) {
  275. if (utils_hooks__hooks.deprecationHandler != null) {
  276. utils_hooks__hooks.deprecationHandler(name, msg);
  277. }
  278. if (!deprecations[name]) {
  279. warn(msg);
  280. deprecations[name] = true;
  281. }
  282. }
  283. utils_hooks__hooks.suppressDeprecationWarnings = false;
  284. utils_hooks__hooks.deprecationHandler = null;
  285. function isFunction(input) {
  286. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  287. }
  288. function locale_set__set (config) {
  289. var prop, i;
  290. for (i in config) {
  291. prop = config[i];
  292. if (isFunction(prop)) {
  293. this[i] = prop;
  294. } else {
  295. this['_' + i] = prop;
  296. }
  297. }
  298. this._config = config;
  299. // Lenient ordinal parsing accepts just a number in addition to
  300. // number + (possibly) stuff coming from _ordinalParseLenient.
  301. this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + (/\d{1,2}/).source);
  302. }
  303. function mergeConfigs(parentConfig, childConfig) {
  304. var res = extend({}, parentConfig), prop;
  305. for (prop in childConfig) {
  306. if (hasOwnProp(childConfig, prop)) {
  307. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  308. res[prop] = {};
  309. extend(res[prop], parentConfig[prop]);
  310. extend(res[prop], childConfig[prop]);
  311. } else if (childConfig[prop] != null) {
  312. res[prop] = childConfig[prop];
  313. } else {
  314. delete res[prop];
  315. }
  316. }
  317. }
  318. for (prop in parentConfig) {
  319. if (hasOwnProp(parentConfig, prop) &&
  320. !hasOwnProp(childConfig, prop) &&
  321. isObject(parentConfig[prop])) {
  322. // make sure changes to properties don't modify parent config
  323. res[prop] = extend({}, res[prop]);
  324. }
  325. }
  326. return res;
  327. }
  328. function Locale(config) {
  329. if (config != null) {
  330. this.set(config);
  331. }
  332. }
  333. var keys;
  334. if (Object.keys) {
  335. keys = Object.keys;
  336. } else {
  337. keys = function (obj) {
  338. var i, res = [];
  339. for (i in obj) {
  340. if (hasOwnProp(obj, i)) {
  341. res.push(i);
  342. }
  343. }
  344. return res;
  345. };
  346. }
  347. var defaultCalendar = {
  348. sameDay : '[Today at] LT',
  349. nextDay : '[Tomorrow at] LT',
  350. nextWeek : 'dddd [at] LT',
  351. lastDay : '[Yesterday at] LT',
  352. lastWeek : '[Last] dddd [at] LT',
  353. sameElse : 'L'
  354. };
  355. function locale_calendar__calendar (key, mom, now) {
  356. var output = this._calendar[key] || this._calendar['sameElse'];
  357. return isFunction(output) ? output.call(mom, now) : output;
  358. }
  359. var defaultLongDateFormat = {
  360. LTS : 'h:mm:ss A',
  361. LT : 'h:mm A',
  362. L : 'MM/DD/YYYY',
  363. LL : 'MMMM D, YYYY',
  364. LLL : 'MMMM D, YYYY h:mm A',
  365. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  366. };
  367. function longDateFormat (key) {
  368. var format = this._longDateFormat[key],
  369. formatUpper = this._longDateFormat[key.toUpperCase()];
  370. if (format || !formatUpper) {
  371. return format;
  372. }
  373. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  374. return val.slice(1);
  375. });
  376. return this._longDateFormat[key];
  377. }
  378. var defaultInvalidDate = 'Invalid date';
  379. function invalidDate () {
  380. return this._invalidDate;
  381. }
  382. var defaultOrdinal = '%d';
  383. var defaultOrdinalParse = /\d{1,2}/;
  384. function ordinal (number) {
  385. return this._ordinal.replace('%d', number);
  386. }
  387. var defaultRelativeTime = {
  388. future : 'in %s',
  389. past : '%s ago',
  390. s : 'a few seconds',
  391. m : 'a minute',
  392. mm : '%d minutes',
  393. h : 'an hour',
  394. hh : '%d hours',
  395. d : 'a day',
  396. dd : '%d days',
  397. M : 'a month',
  398. MM : '%d months',
  399. y : 'a year',
  400. yy : '%d years'
  401. };
  402. function relative__relativeTime (number, withoutSuffix, string, isFuture) {
  403. var output = this._relativeTime[string];
  404. return (isFunction(output)) ?
  405. output(number, withoutSuffix, string, isFuture) :
  406. output.replace(/%d/i, number);
  407. }
  408. function pastFuture (diff, output) {
  409. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  410. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  411. }
  412. var aliases = {};
  413. function addUnitAlias (unit, shorthand) {
  414. var lowerCase = unit.toLowerCase();
  415. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  416. }
  417. function normalizeUnits(units) {
  418. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  419. }
  420. function normalizeObjectUnits(inputObject) {
  421. var normalizedInput = {},
  422. normalizedProp,
  423. prop;
  424. for (prop in inputObject) {
  425. if (hasOwnProp(inputObject, prop)) {
  426. normalizedProp = normalizeUnits(prop);
  427. if (normalizedProp) {
  428. normalizedInput[normalizedProp] = inputObject[prop];
  429. }
  430. }
  431. }
  432. return normalizedInput;
  433. }
  434. var priorities = {};
  435. function addUnitPriority(unit, priority) {
  436. priorities[unit] = priority;
  437. }
  438. function getPrioritizedUnits(unitsObj) {
  439. var units = [];
  440. for (var u in unitsObj) {
  441. units.push({unit: u, priority: priorities[u]});
  442. }
  443. units.sort(function (a, b) {
  444. return a.priority - b.priority;
  445. });
  446. return units;
  447. }
  448. function makeGetSet (unit, keepTime) {
  449. return function (value) {
  450. if (value != null) {
  451. get_set__set(this, unit, value);
  452. utils_hooks__hooks.updateOffset(this, keepTime);
  453. return this;
  454. } else {
  455. return get_set__get(this, unit);
  456. }
  457. };
  458. }
  459. function get_set__get (mom, unit) {
  460. return mom.isValid() ?
  461. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  462. }
  463. function get_set__set (mom, unit, value) {
  464. if (mom.isValid()) {
  465. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  466. }
  467. }
  468. // MOMENTS
  469. function stringGet (units) {
  470. units = normalizeUnits(units);
  471. if (isFunction(this[units])) {
  472. return this[units]();
  473. }
  474. return this;
  475. }
  476. function stringSet (units, value) {
  477. if (typeof units === 'object') {
  478. units = normalizeObjectUnits(units);
  479. var prioritized = getPrioritizedUnits(units);
  480. for (var i = 0; i < prioritized.length; i++) {
  481. this[prioritized[i].unit](units[prioritized[i].unit]);
  482. }
  483. } else {
  484. units = normalizeUnits(units);
  485. if (isFunction(this[units])) {
  486. return this[units](value);
  487. }
  488. }
  489. return this;
  490. }
  491. function zeroFill(number, targetLength, forceSign) {
  492. var absNumber = '' + Math.abs(number),
  493. zerosToFill = targetLength - absNumber.length,
  494. sign = number >= 0;
  495. return (sign ? (forceSign ? '+' : '') : '-') +
  496. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  497. }
  498. 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;
  499. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  500. var formatFunctions = {};
  501. var formatTokenFunctions = {};
  502. // token: 'M'
  503. // padded: ['MM', 2]
  504. // ordinal: 'Mo'
  505. // callback: function () { this.month() + 1 }
  506. function addFormatToken (token, padded, ordinal, callback) {
  507. var func = callback;
  508. if (typeof callback === 'string') {
  509. func = function () {
  510. return this[callback]();
  511. };
  512. }
  513. if (token) {
  514. formatTokenFunctions[token] = func;
  515. }
  516. if (padded) {
  517. formatTokenFunctions[padded[0]] = function () {
  518. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  519. };
  520. }
  521. if (ordinal) {
  522. formatTokenFunctions[ordinal] = function () {
  523. return this.localeData().ordinal(func.apply(this, arguments), token);
  524. };
  525. }
  526. }
  527. function removeFormattingTokens(input) {
  528. if (input.match(/\[[\s\S]/)) {
  529. return input.replace(/^\[|\]$/g, '');
  530. }
  531. return input.replace(/\\/g, '');
  532. }
  533. function makeFormatFunction(format) {
  534. var array = format.match(formattingTokens), i, length;
  535. for (i = 0, length = array.length; i < length; i++) {
  536. if (formatTokenFunctions[array[i]]) {
  537. array[i] = formatTokenFunctions[array[i]];
  538. } else {
  539. array[i] = removeFormattingTokens(array[i]);
  540. }
  541. }
  542. return function (mom) {
  543. var output = '', i;
  544. for (i = 0; i < length; i++) {
  545. output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
  546. }
  547. return output;
  548. };
  549. }
  550. // format date using native date object
  551. function formatMoment(m, format) {
  552. if (!m.isValid()) {
  553. return m.localeData().invalidDate();
  554. }
  555. format = expandFormat(format, m.localeData());
  556. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  557. return formatFunctions[format](m);
  558. }
  559. function expandFormat(format, locale) {
  560. var i = 5;
  561. function replaceLongDateFormatTokens(input) {
  562. return locale.longDateFormat(input) || input;
  563. }
  564. localFormattingTokens.lastIndex = 0;
  565. while (i >= 0 && localFormattingTokens.test(format)) {
  566. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  567. localFormattingTokens.lastIndex = 0;
  568. i -= 1;
  569. }
  570. return format;
  571. }
  572. var match1 = /\d/; // 0 - 9
  573. var match2 = /\d\d/; // 00 - 99
  574. var match3 = /\d{3}/; // 000 - 999
  575. var match4 = /\d{4}/; // 0000 - 9999
  576. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  577. var match1to2 = /\d\d?/; // 0 - 99
  578. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  579. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  580. var match1to3 = /\d{1,3}/; // 0 - 999
  581. var match1to4 = /\d{1,4}/; // 0 - 9999
  582. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  583. var matchUnsigned = /\d+/; // 0 - inf
  584. var matchSigned = /[+-]?\d+/; // -inf - inf
  585. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  586. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  587. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  588. // any word (or two) characters or numbers including two/three word month in arabic.
  589. // includes scottish gaelic two word and hyphenated months
  590. var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
  591. var regexes = {};
  592. function addRegexToken (token, regex, strictRegex) {
  593. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  594. return (isStrict && strictRegex) ? strictRegex : regex;
  595. };
  596. }
  597. function getParseRegexForToken (token, config) {
  598. if (!hasOwnProp(regexes, token)) {
  599. return new RegExp(unescapeFormat(token));
  600. }
  601. return regexes[token](config._strict, config._locale);
  602. }
  603. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  604. function unescapeFormat(s) {
  605. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  606. return p1 || p2 || p3 || p4;
  607. }));
  608. }
  609. function regexEscape(s) {
  610. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  611. }
  612. var tokens = {};
  613. function addParseToken (token, callback) {
  614. var i, func = callback;
  615. if (typeof token === 'string') {
  616. token = [token];
  617. }
  618. if (typeof callback === 'number') {
  619. func = function (input, array) {
  620. array[callback] = toInt(input);
  621. };
  622. }
  623. for (i = 0; i < token.length; i++) {
  624. tokens[token[i]] = func;
  625. }
  626. }
  627. function addWeekParseToken (token, callback) {
  628. addParseToken(token, function (input, array, config, token) {
  629. config._w = config._w || {};
  630. callback(input, config._w, config, token);
  631. });
  632. }
  633. function addTimeToArrayFromToken(token, input, config) {
  634. if (input != null && hasOwnProp(tokens, token)) {
  635. tokens[token](input, config._a, config, token);
  636. }
  637. }
  638. var YEAR = 0;
  639. var MONTH = 1;
  640. var DATE = 2;
  641. var HOUR = 3;
  642. var MINUTE = 4;
  643. var SECOND = 5;
  644. var MILLISECOND = 6;
  645. var WEEK = 7;
  646. var WEEKDAY = 8;
  647. var indexOf;
  648. if (Array.prototype.indexOf) {
  649. indexOf = Array.prototype.indexOf;
  650. } else {
  651. indexOf = function (o) {
  652. // I know
  653. var i;
  654. for (i = 0; i < this.length; ++i) {
  655. if (this[i] === o) {
  656. return i;
  657. }
  658. }
  659. return -1;
  660. };
  661. }
  662. function daysInMonth(year, month) {
  663. return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
  664. }
  665. // FORMATTING
  666. addFormatToken('M', ['MM', 2], 'Mo', function () {
  667. return this.month() + 1;
  668. });
  669. addFormatToken('MMM', 0, 0, function (format) {
  670. return this.localeData().monthsShort(this, format);
  671. });
  672. addFormatToken('MMMM', 0, 0, function (format) {
  673. return this.localeData().months(this, format);
  674. });
  675. // ALIASES
  676. addUnitAlias('month', 'M');
  677. // PRIORITY
  678. addUnitPriority('month', 8);
  679. // PARSING
  680. addRegexToken('M', match1to2);
  681. addRegexToken('MM', match1to2, match2);
  682. addRegexToken('MMM', function (isStrict, locale) {
  683. return locale.monthsShortRegex(isStrict);
  684. });
  685. addRegexToken('MMMM', function (isStrict, locale) {
  686. return locale.monthsRegex(isStrict);
  687. });
  688. addParseToken(['M', 'MM'], function (input, array) {
  689. array[MONTH] = toInt(input) - 1;
  690. });
  691. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  692. var month = config._locale.monthsParse(input, token, config._strict);
  693. // if we didn't find a month name, mark the date as invalid.
  694. if (month != null) {
  695. array[MONTH] = month;
  696. } else {
  697. getParsingFlags(config).invalidMonth = input;
  698. }
  699. });
  700. // LOCALES
  701. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/;
  702. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  703. function localeMonths (m, format) {
  704. if (!m) {
  705. return this._months;
  706. }
  707. return isArray(this._months) ? this._months[m.month()] :
  708. this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  709. }
  710. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  711. function localeMonthsShort (m, format) {
  712. if (!m) {
  713. return this._monthsShort;
  714. }
  715. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  716. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  717. }
  718. function units_month__handleStrictParse(monthName, format, strict) {
  719. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  720. if (!this._monthsParse) {
  721. // this is not used
  722. this._monthsParse = [];
  723. this._longMonthsParse = [];
  724. this._shortMonthsParse = [];
  725. for (i = 0; i < 12; ++i) {
  726. mom = create_utc__createUTC([2000, i]);
  727. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  728. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  729. }
  730. }
  731. if (strict) {
  732. if (format === 'MMM') {
  733. ii = indexOf.call(this._shortMonthsParse, llc);
  734. return ii !== -1 ? ii : null;
  735. } else {
  736. ii = indexOf.call(this._longMonthsParse, llc);
  737. return ii !== -1 ? ii : null;
  738. }
  739. } else {
  740. if (format === 'MMM') {
  741. ii = indexOf.call(this._shortMonthsParse, llc);
  742. if (ii !== -1) {
  743. return ii;
  744. }
  745. ii = indexOf.call(this._longMonthsParse, llc);
  746. return ii !== -1 ? ii : null;
  747. } else {
  748. ii = indexOf.call(this._longMonthsParse, llc);
  749. if (ii !== -1) {
  750. return ii;
  751. }
  752. ii = indexOf.call(this._shortMonthsParse, llc);
  753. return ii !== -1 ? ii : null;
  754. }
  755. }
  756. }
  757. function localeMonthsParse (monthName, format, strict) {
  758. var i, mom, regex;
  759. if (this._monthsParseExact) {
  760. return units_month__handleStrictParse.call(this, monthName, format, strict);
  761. }
  762. if (!this._monthsParse) {
  763. this._monthsParse = [];
  764. this._longMonthsParse = [];
  765. this._shortMonthsParse = [];
  766. }
  767. // TODO: add sorting
  768. // Sorting makes sure if one month (or abbr) is a prefix of another
  769. // see sorting in computeMonthsParse
  770. for (i = 0; i < 12; i++) {
  771. // make the regex if we don't have it already
  772. mom = create_utc__createUTC([2000, i]);
  773. if (strict && !this._longMonthsParse[i]) {
  774. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  775. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  776. }
  777. if (!strict && !this._monthsParse[i]) {
  778. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  779. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  780. }
  781. // test the regex
  782. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  783. return i;
  784. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  785. return i;
  786. } else if (!strict && this._monthsParse[i].test(monthName)) {
  787. return i;
  788. }
  789. }
  790. }
  791. // MOMENTS
  792. function setMonth (mom, value) {
  793. var dayOfMonth;
  794. if (!mom.isValid()) {
  795. // No op
  796. return mom;
  797. }
  798. if (typeof value === 'string') {
  799. if (/^\d+$/.test(value)) {
  800. value = toInt(value);
  801. } else {
  802. value = mom.localeData().monthsParse(value);
  803. // TODO: Another silent failure?
  804. if (typeof value !== 'number') {
  805. return mom;
  806. }
  807. }
  808. }
  809. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  810. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  811. return mom;
  812. }
  813. function getSetMonth (value) {
  814. if (value != null) {
  815. setMonth(this, value);
  816. utils_hooks__hooks.updateOffset(this, true);
  817. return this;
  818. } else {
  819. return get_set__get(this, 'Month');
  820. }
  821. }
  822. function getDaysInMonth () {
  823. return daysInMonth(this.year(), this.month());
  824. }
  825. var defaultMonthsShortRegex = matchWord;
  826. function monthsShortRegex (isStrict) {
  827. if (this._monthsParseExact) {
  828. if (!hasOwnProp(this, '_monthsRegex')) {
  829. computeMonthsParse.call(this);
  830. }
  831. if (isStrict) {
  832. return this._monthsShortStrictRegex;
  833. } else {
  834. return this._monthsShortRegex;
  835. }
  836. } else {
  837. if (!hasOwnProp(this, '_monthsShortRegex')) {
  838. this._monthsShortRegex = defaultMonthsShortRegex;
  839. }
  840. return this._monthsShortStrictRegex && isStrict ?
  841. this._monthsShortStrictRegex : this._monthsShortRegex;
  842. }
  843. }
  844. var defaultMonthsRegex = matchWord;
  845. function units_month__monthsRegex (isStrict) {
  846. if (this._monthsParseExact) {
  847. if (!hasOwnProp(this, '_monthsRegex')) {
  848. computeMonthsParse.call(this);
  849. }
  850. if (isStrict) {
  851. return this._monthsStrictRegex;
  852. } else {
  853. return this._monthsRegex;
  854. }
  855. } else {
  856. if (!hasOwnProp(this, '_monthsRegex')) {
  857. this._monthsRegex = defaultMonthsRegex;
  858. }
  859. return this._monthsStrictRegex && isStrict ?
  860. this._monthsStrictRegex : this._monthsRegex;
  861. }
  862. }
  863. function computeMonthsParse () {
  864. function cmpLenRev(a, b) {
  865. return b.length - a.length;
  866. }
  867. var shortPieces = [], longPieces = [], mixedPieces = [],
  868. i, mom;
  869. for (i = 0; i < 12; i++) {
  870. // make the regex if we don't have it already
  871. mom = create_utc__createUTC([2000, i]);
  872. shortPieces.push(this.monthsShort(mom, ''));
  873. longPieces.push(this.months(mom, ''));
  874. mixedPieces.push(this.months(mom, ''));
  875. mixedPieces.push(this.monthsShort(mom, ''));
  876. }
  877. // Sorting makes sure if one month (or abbr) is a prefix of another it
  878. // will match the longer piece.
  879. shortPieces.sort(cmpLenRev);
  880. longPieces.sort(cmpLenRev);
  881. mixedPieces.sort(cmpLenRev);
  882. for (i = 0; i < 12; i++) {
  883. shortPieces[i] = regexEscape(shortPieces[i]);
  884. longPieces[i] = regexEscape(longPieces[i]);
  885. }
  886. for (i = 0; i < 24; i++) {
  887. mixedPieces[i] = regexEscape(mixedPieces[i]);
  888. }
  889. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  890. this._monthsShortRegex = this._monthsRegex;
  891. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  892. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  893. }
  894. // FORMATTING
  895. addFormatToken('Y', 0, 0, function () {
  896. var y = this.year();
  897. return y <= 9999 ? '' + y : '+' + y;
  898. });
  899. addFormatToken(0, ['YY', 2], 0, function () {
  900. return this.year() % 100;
  901. });
  902. addFormatToken(0, ['YYYY', 4], 0, 'year');
  903. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  904. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  905. // ALIASES
  906. addUnitAlias('year', 'y');
  907. // PRIORITIES
  908. addUnitPriority('year', 1);
  909. // PARSING
  910. addRegexToken('Y', matchSigned);
  911. addRegexToken('YY', match1to2, match2);
  912. addRegexToken('YYYY', match1to4, match4);
  913. addRegexToken('YYYYY', match1to6, match6);
  914. addRegexToken('YYYYYY', match1to6, match6);
  915. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  916. addParseToken('YYYY', function (input, array) {
  917. array[YEAR] = input.length === 2 ? utils_hooks__hooks.parseTwoDigitYear(input) : toInt(input);
  918. });
  919. addParseToken('YY', function (input, array) {
  920. array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);
  921. });
  922. addParseToken('Y', function (input, array) {
  923. array[YEAR] = parseInt(input, 10);
  924. });
  925. // HELPERS
  926. function daysInYear(year) {
  927. return isLeapYear(year) ? 366 : 365;
  928. }
  929. function isLeapYear(year) {
  930. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  931. }
  932. // HOOKS
  933. utils_hooks__hooks.parseTwoDigitYear = function (input) {
  934. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  935. };
  936. // MOMENTS
  937. var getSetYear = makeGetSet('FullYear', true);
  938. function getIsLeapYear () {
  939. return isLeapYear(this.year());
  940. }
  941. function createDate (y, m, d, h, M, s, ms) {
  942. //can't just apply() to create a date:
  943. //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
  944. var date = new Date(y, m, d, h, M, s, ms);
  945. //the date constructor remaps years 0-99 to 1900-1999
  946. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  947. date.setFullYear(y);
  948. }
  949. return date;
  950. }
  951. function createUTCDate (y) {
  952. var date = new Date(Date.UTC.apply(null, arguments));
  953. //the Date.UTC function remaps years 0-99 to 1900-1999
  954. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  955. date.setUTCFullYear(y);
  956. }
  957. return date;
  958. }
  959. // start-of-first-week - start-of-year
  960. function firstWeekOffset(year, dow, doy) {
  961. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  962. fwd = 7 + dow - doy,
  963. // first-week day local weekday -- which local weekday is fwd
  964. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  965. return -fwdlw + fwd - 1;
  966. }
  967. //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  968. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  969. var localWeekday = (7 + weekday - dow) % 7,
  970. weekOffset = firstWeekOffset(year, dow, doy),
  971. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  972. resYear, resDayOfYear;
  973. if (dayOfYear <= 0) {
  974. resYear = year - 1;
  975. resDayOfYear = daysInYear(resYear) + dayOfYear;
  976. } else if (dayOfYear > daysInYear(year)) {
  977. resYear = year + 1;
  978. resDayOfYear = dayOfYear - daysInYear(year);
  979. } else {
  980. resYear = year;
  981. resDayOfYear = dayOfYear;
  982. }
  983. return {
  984. year: resYear,
  985. dayOfYear: resDayOfYear
  986. };
  987. }
  988. function weekOfYear(mom, dow, doy) {
  989. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  990. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  991. resWeek, resYear;
  992. if (week < 1) {
  993. resYear = mom.year() - 1;
  994. resWeek = week + weeksInYear(resYear, dow, doy);
  995. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  996. resWeek = week - weeksInYear(mom.year(), dow, doy);
  997. resYear = mom.year() + 1;
  998. } else {
  999. resYear = mom.year();
  1000. resWeek = week;
  1001. }
  1002. return {
  1003. week: resWeek,
  1004. year: resYear
  1005. };
  1006. }
  1007. function weeksInYear(year, dow, doy) {
  1008. var weekOffset = firstWeekOffset(year, dow, doy),
  1009. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1010. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1011. }
  1012. // FORMATTING
  1013. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1014. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1015. // ALIASES
  1016. addUnitAlias('week', 'w');
  1017. addUnitAlias('isoWeek', 'W');
  1018. // PRIORITIES
  1019. addUnitPriority('week', 5);
  1020. addUnitPriority('isoWeek', 5);
  1021. // PARSING
  1022. addRegexToken('w', match1to2);
  1023. addRegexToken('ww', match1to2, match2);
  1024. addRegexToken('W', match1to2);
  1025. addRegexToken('WW', match1to2, match2);
  1026. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  1027. week[token.substr(0, 1)] = toInt(input);
  1028. });
  1029. // HELPERS
  1030. // LOCALES
  1031. function localeWeek (mom) {
  1032. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1033. }
  1034. var defaultLocaleWeek = {
  1035. dow : 0, // Sunday is the first day of the week.
  1036. doy : 6 // The week that contains Jan 1st is the first week of the year.
  1037. };
  1038. function localeFirstDayOfWeek () {
  1039. return this._week.dow;
  1040. }
  1041. function localeFirstDayOfYear () {
  1042. return this._week.doy;
  1043. }
  1044. // MOMENTS
  1045. function getSetWeek (input) {
  1046. var week = this.localeData().week(this);
  1047. return input == null ? week : this.add((input - week) * 7, 'd');
  1048. }
  1049. function getSetISOWeek (input) {
  1050. var week = weekOfYear(this, 1, 4).week;
  1051. return input == null ? week : this.add((input - week) * 7, 'd');
  1052. }
  1053. // FORMATTING
  1054. addFormatToken('d', 0, 'do', 'day');
  1055. addFormatToken('dd', 0, 0, function (format) {
  1056. return this.localeData().weekdaysMin(this, format);
  1057. });
  1058. addFormatToken('ddd', 0, 0, function (format) {
  1059. return this.localeData().weekdaysShort(this, format);
  1060. });
  1061. addFormatToken('dddd', 0, 0, function (format) {
  1062. return this.localeData().weekdays(this, format);
  1063. });
  1064. addFormatToken('e', 0, 0, 'weekday');
  1065. addFormatToken('E', 0, 0, 'isoWeekday');
  1066. // ALIASES
  1067. addUnitAlias('day', 'd');
  1068. addUnitAlias('weekday', 'e');
  1069. addUnitAlias('isoWeekday', 'E');
  1070. // PRIORITY
  1071. addUnitPriority('day', 11);
  1072. addUnitPriority('weekday', 11);
  1073. addUnitPriority('isoWeekday', 11);
  1074. // PARSING
  1075. addRegexToken('d', match1to2);
  1076. addRegexToken('e', match1to2);
  1077. addRegexToken('E', match1to2);
  1078. addRegexToken('dd', function (isStrict, locale) {
  1079. return locale.weekdaysMinRegex(isStrict);
  1080. });
  1081. addRegexToken('ddd', function (isStrict, locale) {
  1082. return locale.weekdaysShortRegex(isStrict);
  1083. });
  1084. addRegexToken('dddd', function (isStrict, locale) {
  1085. return locale.weekdaysRegex(isStrict);
  1086. });
  1087. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1088. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1089. // if we didn't get a weekday name, mark the date as invalid
  1090. if (weekday != null) {
  1091. week.d = weekday;
  1092. } else {
  1093. getParsingFlags(config).invalidWeekday = input;
  1094. }
  1095. });
  1096. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1097. week[token] = toInt(input);
  1098. });
  1099. // HELPERS
  1100. function parseWeekday(input, locale) {
  1101. if (typeof input !== 'string') {
  1102. return input;
  1103. }
  1104. if (!isNaN(input)) {
  1105. return parseInt(input, 10);
  1106. }
  1107. input = locale.weekdaysParse(input);
  1108. if (typeof input === 'number') {
  1109. return input;
  1110. }
  1111. return null;
  1112. }
  1113. function parseIsoWeekday(input, locale) {
  1114. if (typeof input === 'string') {
  1115. return locale.weekdaysParse(input) % 7 || 7;
  1116. }
  1117. return isNaN(input) ? null : input;
  1118. }
  1119. // LOCALES
  1120. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  1121. function localeWeekdays (m, format) {
  1122. if (!m) {
  1123. return this._weekdays;
  1124. }
  1125. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  1126. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  1127. }
  1128. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  1129. function localeWeekdaysShort (m) {
  1130. return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  1131. }
  1132. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  1133. function localeWeekdaysMin (m) {
  1134. return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  1135. }
  1136. function day_of_week__handleStrictParse(weekdayName, format, strict) {
  1137. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  1138. if (!this._weekdaysParse) {
  1139. this._weekdaysParse = [];
  1140. this._shortWeekdaysParse = [];
  1141. this._minWeekdaysParse = [];
  1142. for (i = 0; i < 7; ++i) {
  1143. mom = create_utc__createUTC([2000, 1]).day(i);
  1144. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  1145. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  1146. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1147. }
  1148. }
  1149. if (strict) {
  1150. if (format === 'dddd') {
  1151. ii = indexOf.call(this._weekdaysParse, llc);
  1152. return ii !== -1 ? ii : null;
  1153. } else if (format === 'ddd') {
  1154. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1155. return ii !== -1 ? ii : null;
  1156. } else {
  1157. ii = indexOf.call(this._minWeekdaysParse, llc);
  1158. return ii !== -1 ? ii : null;
  1159. }
  1160. } else {
  1161. if (format === 'dddd') {
  1162. ii = indexOf.call(this._weekdaysParse, llc);
  1163. if (ii !== -1) {
  1164. return ii;
  1165. }
  1166. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1167. if (ii !== -1) {
  1168. return ii;
  1169. }
  1170. ii = indexOf.call(this._minWeekdaysParse, llc);
  1171. return ii !== -1 ? ii : null;
  1172. } else if (format === 'ddd') {
  1173. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1174. if (ii !== -1) {
  1175. return ii;
  1176. }
  1177. ii = indexOf.call(this._weekdaysParse, llc);
  1178. if (ii !== -1) {
  1179. return ii;
  1180. }
  1181. ii = indexOf.call(this._minWeekdaysParse, llc);
  1182. return ii !== -1 ? ii : null;
  1183. } else {
  1184. ii = indexOf.call(this._minWeekdaysParse, llc);
  1185. if (ii !== -1) {
  1186. return ii;
  1187. }
  1188. ii = indexOf.call(this._weekdaysParse, llc);
  1189. if (ii !== -1) {
  1190. return ii;
  1191. }
  1192. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1193. return ii !== -1 ? ii : null;
  1194. }
  1195. }
  1196. }
  1197. function localeWeekdaysParse (weekdayName, format, strict) {
  1198. var i, mom, regex;
  1199. if (this._weekdaysParseExact) {
  1200. return day_of_week__handleStrictParse.call(this, weekdayName, format, strict);
  1201. }
  1202. if (!this._weekdaysParse) {
  1203. this._weekdaysParse = [];
  1204. this._minWeekdaysParse = [];
  1205. this._shortWeekdaysParse = [];
  1206. this._fullWeekdaysParse = [];
  1207. }
  1208. for (i = 0; i < 7; i++) {
  1209. // make the regex if we don't have it already
  1210. mom = create_utc__createUTC([2000, 1]).day(i);
  1211. if (strict && !this._fullWeekdaysParse[i]) {
  1212. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  1213. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  1214. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  1215. }
  1216. if (!this._weekdaysParse[i]) {
  1217. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  1218. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1219. }
  1220. // test the regex
  1221. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  1222. return i;
  1223. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  1224. return i;
  1225. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  1226. return i;
  1227. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1228. return i;
  1229. }
  1230. }
  1231. }
  1232. // MOMENTS
  1233. function getSetDayOfWeek (input) {
  1234. if (!this.isValid()) {
  1235. return input != null ? this : NaN;
  1236. }
  1237. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1238. if (input != null) {
  1239. input = parseWeekday(input, this.localeData());
  1240. return this.add(input - day, 'd');
  1241. } else {
  1242. return day;
  1243. }
  1244. }
  1245. function getSetLocaleDayOfWeek (input) {
  1246. if (!this.isValid()) {
  1247. return input != null ? this : NaN;
  1248. }
  1249. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1250. return input == null ? weekday : this.add(input - weekday, 'd');
  1251. }
  1252. function getSetISODayOfWeek (input) {
  1253. if (!this.isValid()) {
  1254. return input != null ? this : NaN;
  1255. }
  1256. // behaves the same as moment#day except
  1257. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1258. // as a setter, sunday should belong to the previous week.
  1259. if (input != null) {
  1260. var weekday = parseIsoWeekday(input, this.localeData());
  1261. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1262. } else {
  1263. return this.day() || 7;
  1264. }
  1265. }
  1266. var defaultWeekdaysRegex = matchWord;
  1267. function weekdaysRegex (isStrict) {
  1268. if (this._weekdaysParseExact) {
  1269. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1270. computeWeekdaysParse.call(this);
  1271. }
  1272. if (isStrict) {
  1273. return this._weekdaysStrictRegex;
  1274. } else {
  1275. return this._weekdaysRegex;
  1276. }
  1277. } else {
  1278. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1279. this._weekdaysRegex = defaultWeekdaysRegex;
  1280. }
  1281. return this._weekdaysStrictRegex && isStrict ?
  1282. this._weekdaysStrictRegex : this._weekdaysRegex;
  1283. }
  1284. }
  1285. var defaultWeekdaysShortRegex = matchWord;
  1286. function weekdaysShortRegex (isStrict) {
  1287. if (this._weekdaysParseExact) {
  1288. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1289. computeWeekdaysParse.call(this);
  1290. }
  1291. if (isStrict) {
  1292. return this._weekdaysShortStrictRegex;
  1293. } else {
  1294. return this._weekdaysShortRegex;
  1295. }
  1296. } else {
  1297. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1298. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1299. }
  1300. return this._weekdaysShortStrictRegex && isStrict ?
  1301. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  1302. }
  1303. }
  1304. var defaultWeekdaysMinRegex = matchWord;
  1305. function weekdaysMinRegex (isStrict) {
  1306. if (this._weekdaysParseExact) {
  1307. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1308. computeWeekdaysParse.call(this);
  1309. }
  1310. if (isStrict) {
  1311. return this._weekdaysMinStrictRegex;
  1312. } else {
  1313. return this._weekdaysMinRegex;
  1314. }
  1315. } else {
  1316. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1317. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1318. }
  1319. return this._weekdaysMinStrictRegex && isStrict ?
  1320. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  1321. }
  1322. }
  1323. function computeWeekdaysParse () {
  1324. function cmpLenRev(a, b) {
  1325. return b.length - a.length;
  1326. }
  1327. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  1328. i, mom, minp, shortp, longp;
  1329. for (i = 0; i < 7; i++) {
  1330. // make the regex if we don't have it already
  1331. mom = create_utc__createUTC([2000, 1]).day(i);
  1332. minp = this.weekdaysMin(mom, '');
  1333. shortp = this.weekdaysShort(mom, '');
  1334. longp = this.weekdays(mom, '');
  1335. minPieces.push(minp);
  1336. shortPieces.push(shortp);
  1337. longPieces.push(longp);
  1338. mixedPieces.push(minp);
  1339. mixedPieces.push(shortp);
  1340. mixedPieces.push(longp);
  1341. }
  1342. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1343. // will match the longer piece.
  1344. minPieces.sort(cmpLenRev);
  1345. shortPieces.sort(cmpLenRev);
  1346. longPieces.sort(cmpLenRev);
  1347. mixedPieces.sort(cmpLenRev);
  1348. for (i = 0; i < 7; i++) {
  1349. shortPieces[i] = regexEscape(shortPieces[i]);
  1350. longPieces[i] = regexEscape(longPieces[i]);
  1351. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1352. }
  1353. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1354. this._weekdaysShortRegex = this._weekdaysRegex;
  1355. this._weekdaysMinRegex = this._weekdaysRegex;
  1356. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  1357. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  1358. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  1359. }
  1360. // FORMATTING
  1361. function hFormat() {
  1362. return this.hours() % 12 || 12;
  1363. }
  1364. function kFormat() {
  1365. return this.hours() || 24;
  1366. }
  1367. addFormatToken('H', ['HH', 2], 0, 'hour');
  1368. addFormatToken('h', ['hh', 2], 0, hFormat);
  1369. addFormatToken('k', ['kk', 2], 0, kFormat);
  1370. addFormatToken('hmm', 0, 0, function () {
  1371. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1372. });
  1373. addFormatToken('hmmss', 0, 0, function () {
  1374. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  1375. zeroFill(this.seconds(), 2);
  1376. });
  1377. addFormatToken('Hmm', 0, 0, function () {
  1378. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1379. });
  1380. addFormatToken('Hmmss', 0, 0, function () {
  1381. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  1382. zeroFill(this.seconds(), 2);
  1383. });
  1384. function meridiem (token, lowercase) {
  1385. addFormatToken(token, 0, 0, function () {
  1386. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  1387. });
  1388. }
  1389. meridiem('a', true);
  1390. meridiem('A', false);
  1391. // ALIASES
  1392. addUnitAlias('hour', 'h');
  1393. // PRIORITY
  1394. addUnitPriority('hour', 13);
  1395. // PARSING
  1396. function matchMeridiem (isStrict, locale) {
  1397. return locale._meridiemParse;
  1398. }
  1399. addRegexToken('a', matchMeridiem);
  1400. addRegexToken('A', matchMeridiem);
  1401. addRegexToken('H', match1to2);
  1402. addRegexToken('h', match1to2);
  1403. addRegexToken('HH', match1to2, match2);
  1404. addRegexToken('hh', match1to2, match2);
  1405. addRegexToken('hmm', match3to4);
  1406. addRegexToken('hmmss', match5to6);
  1407. addRegexToken('Hmm', match3to4);
  1408. addRegexToken('Hmmss', match5to6);
  1409. addParseToken(['H', 'HH'], HOUR);
  1410. addParseToken(['a', 'A'], function (input, array, config) {
  1411. config._isPm = config._locale.isPM(input);
  1412. config._meridiem = input;
  1413. });
  1414. addParseToken(['h', 'hh'], function (input, array, config) {
  1415. array[HOUR] = toInt(input);
  1416. getParsingFlags(config).bigHour = true;
  1417. });
  1418. addParseToken('hmm', function (input, array, config) {
  1419. var pos = input.length - 2;
  1420. array[HOUR] = toInt(input.substr(0, pos));
  1421. array[MINUTE] = toInt(input.substr(pos));
  1422. getParsingFlags(config).bigHour = true;
  1423. });
  1424. addParseToken('hmmss', function (input, array, config) {
  1425. var pos1 = input.length - 4;
  1426. var pos2 = input.length - 2;
  1427. array[HOUR] = toInt(input.substr(0, pos1));
  1428. array[MINUTE] = toInt(input.substr(pos1, 2));
  1429. array[SECOND] = toInt(input.substr(pos2));
  1430. getParsingFlags(config).bigHour = true;
  1431. });
  1432. addParseToken('Hmm', function (input, array, config) {
  1433. var pos = input.length - 2;
  1434. array[HOUR] = toInt(input.substr(0, pos));
  1435. array[MINUTE] = toInt(input.substr(pos));
  1436. });
  1437. addParseToken('Hmmss', function (input, array, config) {
  1438. var pos1 = input.length - 4;
  1439. var pos2 = input.length - 2;
  1440. array[HOUR] = toInt(input.substr(0, pos1));
  1441. array[MINUTE] = toInt(input.substr(pos1, 2));
  1442. array[SECOND] = toInt(input.substr(pos2));
  1443. });
  1444. // LOCALES
  1445. function localeIsPM (input) {
  1446. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1447. // Using charAt should be more compatible.
  1448. return ((input + '').toLowerCase().charAt(0) === 'p');
  1449. }
  1450. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  1451. function localeMeridiem (hours, minutes, isLower) {
  1452. if (hours > 11) {
  1453. return isLower ? 'pm' : 'PM';
  1454. } else {
  1455. return isLower ? 'am' : 'AM';
  1456. }
  1457. }
  1458. // MOMENTS
  1459. // Setting the hour should keep the time, because the user explicitly
  1460. // specified which hour he wants. So trying to maintain the same hour (in
  1461. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1462. // this rule.
  1463. var getSetHour = makeGetSet('Hours', true);
  1464. var baseConfig = {
  1465. calendar: defaultCalendar,
  1466. longDateFormat: defaultLongDateFormat,
  1467. invalidDate: defaultInvalidDate,
  1468. ordinal: defaultOrdinal,
  1469. ordinalParse: defaultOrdinalParse,
  1470. relativeTime: defaultRelativeTime,
  1471. months: defaultLocaleMonths,
  1472. monthsShort: defaultLocaleMonthsShort,
  1473. week: defaultLocaleWeek,
  1474. weekdays: defaultLocaleWeekdays,
  1475. weekdaysMin: defaultLocaleWeekdaysMin,
  1476. weekdaysShort: defaultLocaleWeekdaysShort,
  1477. meridiemParse: defaultLocaleMeridiemParse
  1478. };
  1479. // internal storage for locale config files
  1480. var locales = {};
  1481. var globalLocale;
  1482. function normalizeLocale(key) {
  1483. return key ? key.toLowerCase().replace('_', '-') : key;
  1484. }
  1485. // pick the locale from the array
  1486. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1487. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1488. function chooseLocale(names) {
  1489. var i = 0, j, next, locale, split;
  1490. while (i < names.length) {
  1491. split = normalizeLocale(names[i]).split('-');
  1492. j = split.length;
  1493. next = normalizeLocale(names[i + 1]);
  1494. next = next ? next.split('-') : null;
  1495. while (j > 0) {
  1496. locale = loadLocale(split.slice(0, j).join('-'));
  1497. if (locale) {
  1498. return locale;
  1499. }
  1500. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  1501. //the next array item is better than a shallower substring of this one
  1502. break;
  1503. }
  1504. j--;
  1505. }
  1506. i++;
  1507. }
  1508. return null;
  1509. }
  1510. function loadLocale(name) {
  1511. var oldLocale = null;
  1512. // TODO: Find a better way to register and load all the locales in Node
  1513. if (!locales[name] && (typeof module !== 'undefined') &&
  1514. module && module.exports) {
  1515. try {
  1516. oldLocale = globalLocale._abbr;
  1517. require('./locale/' + name);
  1518. // because defineLocale currently also sets the global locale, we
  1519. // want to undo that for lazy loaded locales
  1520. locale_locales__getSetGlobalLocale(oldLocale);
  1521. } catch (e) { }
  1522. }
  1523. return locales[name];
  1524. }
  1525. // This function will load locale and then set the global locale. If
  1526. // no arguments are passed in, it will simply return the current global
  1527. // locale key.
  1528. function locale_locales__getSetGlobalLocale (key, values) {
  1529. var data;
  1530. if (key) {
  1531. if (isUndefined(values)) {
  1532. data = locale_locales__getLocale(key);
  1533. }
  1534. else {
  1535. data = defineLocale(key, values);
  1536. }
  1537. if (data) {
  1538. // moment.duration._locale = moment._locale = data;
  1539. globalLocale = data;
  1540. }
  1541. }
  1542. return globalLocale._abbr;
  1543. }
  1544. function defineLocale (name, config) {
  1545. if (config !== null) {
  1546. var parentConfig = baseConfig;
  1547. config.abbr = name;
  1548. if (locales[name] != null) {
  1549. deprecateSimple('defineLocaleOverride',
  1550. 'use moment.updateLocale(localeName, config) to change ' +
  1551. 'an existing locale. moment.defineLocale(localeName, ' +
  1552. 'config) should only be used for creating a new locale ' +
  1553. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  1554. parentConfig = locales[name]._config;
  1555. } else if (config.parentLocale != null) {
  1556. if (locales[config.parentLocale] != null) {
  1557. parentConfig = locales[config.parentLocale]._config;
  1558. } else {
  1559. // treat as if there is no base config
  1560. deprecateSimple('parentLocaleUndefined',
  1561. 'specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/');
  1562. }
  1563. }
  1564. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1565. // backwards compat for now: also set the locale
  1566. locale_locales__getSetGlobalLocale(name);
  1567. return locales[name];
  1568. } else {
  1569. // useful for testing
  1570. delete locales[name];
  1571. return null;
  1572. }
  1573. }
  1574. function updateLocale(name, config) {
  1575. if (config != null) {
  1576. var locale, parentConfig = baseConfig;
  1577. // MERGE
  1578. if (locales[name] != null) {
  1579. parentConfig = locales[name]._config;
  1580. }
  1581. config = mergeConfigs(parentConfig, config);
  1582. locale = new Locale(config);
  1583. locale.parentLocale = locales[name];
  1584. locales[name] = locale;
  1585. // backwards compat for now: also set the locale
  1586. locale_locales__getSetGlobalLocale(name);
  1587. } else {
  1588. // pass null for config to unupdate, useful for tests
  1589. if (locales[name] != null) {
  1590. if (locales[name].parentLocale != null) {
  1591. locales[name] = locales[name].parentLocale;
  1592. } else if (locales[name] != null) {
  1593. delete locales[name];
  1594. }
  1595. }
  1596. }
  1597. return locales[name];
  1598. }
  1599. // returns locale data
  1600. function locale_locales__getLocale (key) {
  1601. var locale;
  1602. if (key && key._locale && key._locale._abbr) {
  1603. key = key._locale._abbr;
  1604. }
  1605. if (!key) {
  1606. return globalLocale;
  1607. }
  1608. if (!isArray(key)) {
  1609. //short-circuit everything else
  1610. locale = loadLocale(key);
  1611. if (locale) {
  1612. return locale;
  1613. }
  1614. key = [key];
  1615. }
  1616. return chooseLocale(key);
  1617. }
  1618. function locale_locales__listLocales() {
  1619. return keys(locales);
  1620. }
  1621. function checkOverflow (m) {
  1622. var overflow;
  1623. var a = m._a;
  1624. if (a && getParsingFlags(m).overflow === -2) {
  1625. overflow =
  1626. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  1627. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  1628. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  1629. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  1630. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  1631. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  1632. -1;
  1633. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  1634. overflow = DATE;
  1635. }
  1636. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1637. overflow = WEEK;
  1638. }
  1639. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1640. overflow = WEEKDAY;
  1641. }
  1642. getParsingFlags(m).overflow = overflow;
  1643. }
  1644. return m;
  1645. }
  1646. // iso 8601 regex
  1647. // 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)
  1648. 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)?)?/;
  1649. 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)?)?/;
  1650. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  1651. var isoDates = [
  1652. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  1653. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  1654. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  1655. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  1656. ['YYYY-DDD', /\d{4}-\d{3}/],
  1657. ['YYYY-MM', /\d{4}-\d\d/, false],
  1658. ['YYYYYYMMDD', /[+-]\d{10}/],
  1659. ['YYYYMMDD', /\d{8}/],
  1660. // YYYYMM is NOT allowed by the standard
  1661. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  1662. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  1663. ['YYYYDDD', /\d{7}/]
  1664. ];
  1665. // iso time formats and regexes
  1666. var isoTimes = [
  1667. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  1668. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  1669. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  1670. ['HH:mm', /\d\d:\d\d/],
  1671. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  1672. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  1673. ['HHmmss', /\d\d\d\d\d\d/],
  1674. ['HHmm', /\d\d\d\d/],
  1675. ['HH', /\d\d/]
  1676. ];
  1677. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  1678. // date from iso format
  1679. function configFromISO(config) {
  1680. var i, l,
  1681. string = config._i,
  1682. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  1683. allowTime, dateFormat, timeFormat, tzFormat;
  1684. if (match) {
  1685. getParsingFlags(config).iso = true;
  1686. for (i = 0, l = isoDates.length; i < l; i++) {
  1687. if (isoDates[i][1].exec(match[1])) {
  1688. dateFormat = isoDates[i][0];
  1689. allowTime = isoDates[i][2] !== false;
  1690. break;
  1691. }
  1692. }
  1693. if (dateFormat == null) {
  1694. config._isValid = false;
  1695. return;
  1696. }
  1697. if (match[3]) {
  1698. for (i = 0, l = isoTimes.length; i < l; i++) {
  1699. if (isoTimes[i][1].exec(match[3])) {
  1700. // match[2] should be 'T' or space
  1701. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  1702. break;
  1703. }
  1704. }
  1705. if (timeFormat == null) {
  1706. config._isValid = false;
  1707. return;
  1708. }
  1709. }
  1710. if (!allowTime && timeFormat != null) {
  1711. config._isValid = false;
  1712. return;
  1713. }
  1714. if (match[4]) {
  1715. if (tzRegex.exec(match[4])) {
  1716. tzFormat = 'Z';
  1717. } else {
  1718. config._isValid = false;
  1719. return;
  1720. }
  1721. }
  1722. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  1723. configFromStringAndFormat(config);
  1724. } else {
  1725. config._isValid = false;
  1726. }
  1727. }
  1728. // date from iso format or fallback
  1729. function configFromString(config) {
  1730. var matched = aspNetJsonRegex.exec(config._i);
  1731. if (matched !== null) {
  1732. config._d = new Date(+matched[1]);
  1733. return;
  1734. }
  1735. configFromISO(config);
  1736. if (config._isValid === false) {
  1737. delete config._isValid;
  1738. utils_hooks__hooks.createFromInputFallback(config);
  1739. }
  1740. }
  1741. utils_hooks__hooks.createFromInputFallback = deprecate(
  1742. 'value provided is not in a recognized ISO format. moment construction falls back to js Date(), ' +
  1743. 'which is not reliable across all browsers and versions. Non ISO date formats are ' +
  1744. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  1745. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  1746. function (config) {
  1747. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  1748. }
  1749. );
  1750. // Pick the first defined of two or three arguments.
  1751. function defaults(a, b, c) {
  1752. if (a != null) {
  1753. return a;
  1754. }
  1755. if (b != null) {
  1756. return b;
  1757. }
  1758. return c;
  1759. }
  1760. function currentDateArray(config) {
  1761. // hooks is actually the exported moment object
  1762. var nowValue = new Date(utils_hooks__hooks.now());
  1763. if (config._useUTC) {
  1764. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  1765. }
  1766. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  1767. }
  1768. // convert an array to a date.
  1769. // the array should mirror the parameters below
  1770. // note: all values past the year are optional and will default to the lowest possible value.
  1771. // [year, month, day , hour, minute, second, millisecond]
  1772. function configFromArray (config) {
  1773. var i, date, input = [], currentDate, yearToUse;
  1774. if (config._d) {
  1775. return;
  1776. }
  1777. currentDate = currentDateArray(config);
  1778. //compute day of the year from weeks and weekdays
  1779. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  1780. dayOfYearFromWeekInfo(config);
  1781. }
  1782. //if the day of the year is set, figure out what it is
  1783. if (config._dayOfYear) {
  1784. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  1785. if (config._dayOfYear > daysInYear(yearToUse)) {
  1786. getParsingFlags(config)._overflowDayOfYear = true;
  1787. }
  1788. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  1789. config._a[MONTH] = date.getUTCMonth();
  1790. config._a[DATE] = date.getUTCDate();
  1791. }
  1792. // Default to current date.
  1793. // * if no year, month, day of month are given, default to today
  1794. // * if day of month is given, default month and year
  1795. // * if month is given, default only year
  1796. // * if year is given, don't default anything
  1797. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  1798. config._a[i] = input[i] = currentDate[i];
  1799. }
  1800. // Zero out whatever was not defaulted, including time
  1801. for (; i < 7; i++) {
  1802. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  1803. }
  1804. // Check for 24:00:00.000
  1805. if (config._a[HOUR] === 24 &&
  1806. config._a[MINUTE] === 0 &&
  1807. config._a[SECOND] === 0 &&
  1808. config._a[MILLISECOND] === 0) {
  1809. config._nextDay = true;
  1810. config._a[HOUR] = 0;
  1811. }
  1812. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  1813. // Apply timezone offset from input. The actual utcOffset can be changed
  1814. // with parseZone.
  1815. if (config._tzm != null) {
  1816. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1817. }
  1818. if (config._nextDay) {
  1819. config._a[HOUR] = 24;
  1820. }
  1821. }
  1822. function dayOfYearFromWeekInfo(config) {
  1823. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  1824. w = config._w;
  1825. if (w.GG != null || w.W != null || w.E != null) {
  1826. dow = 1;
  1827. doy = 4;
  1828. // TODO: We need to take the current isoWeekYear, but that depends on
  1829. // how we interpret now (local, utc, fixed offset). So create
  1830. // a now version of current config (take local/utc/offset flags, and
  1831. // create now).
  1832. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);
  1833. week = defaults(w.W, 1);
  1834. weekday = defaults(w.E, 1);
  1835. if (weekday < 1 || weekday > 7) {
  1836. weekdayOverflow = true;
  1837. }
  1838. } else {
  1839. dow = config._locale._week.dow;
  1840. doy = config._locale._week.doy;
  1841. weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);
  1842. week = defaults(w.w, 1);
  1843. if (w.d != null) {
  1844. // weekday -- low day numbers are considered next week
  1845. weekday = w.d;
  1846. if (weekday < 0 || weekday > 6) {
  1847. weekdayOverflow = true;
  1848. }
  1849. } else if (w.e != null) {
  1850. // local weekday -- counting starts from begining of week
  1851. weekday = w.e + dow;
  1852. if (w.e < 0 || w.e > 6) {
  1853. weekdayOverflow = true;
  1854. }
  1855. } else {
  1856. // default to begining of week
  1857. weekday = dow;
  1858. }
  1859. }
  1860. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  1861. getParsingFlags(config)._overflowWeeks = true;
  1862. } else if (weekdayOverflow != null) {
  1863. getParsingFlags(config)._overflowWeekday = true;
  1864. } else {
  1865. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  1866. config._a[YEAR] = temp.year;
  1867. config._dayOfYear = temp.dayOfYear;
  1868. }
  1869. }
  1870. // constant that refers to the ISO standard
  1871. utils_hooks__hooks.ISO_8601 = function () {};
  1872. // date from string and format string
  1873. function configFromStringAndFormat(config) {
  1874. // TODO: Move this to another part of the creation flow to prevent circular deps
  1875. if (config._f === utils_hooks__hooks.ISO_8601) {
  1876. configFromISO(config);
  1877. return;
  1878. }
  1879. config._a = [];
  1880. getParsingFlags(config).empty = true;
  1881. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  1882. var string = '' + config._i,
  1883. i, parsedInput, tokens, token, skipped,
  1884. stringLength = string.length,
  1885. totalParsedInputLength = 0;
  1886. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  1887. for (i = 0; i < tokens.length; i++) {
  1888. token = tokens[i];
  1889. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  1890. // console.log('token', token, 'parsedInput', parsedInput,
  1891. // 'regex', getParseRegexForToken(token, config));
  1892. if (parsedInput) {
  1893. skipped = string.substr(0, string.indexOf(parsedInput));
  1894. if (skipped.length > 0) {
  1895. getParsingFlags(config).unusedInput.push(skipped);
  1896. }
  1897. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  1898. totalParsedInputLength += parsedInput.length;
  1899. }
  1900. // don't parse if it's not a known token
  1901. if (formatTokenFunctions[token]) {
  1902. if (parsedInput) {
  1903. getParsingFlags(config).empty = false;
  1904. }
  1905. else {
  1906. getParsingFlags(config).unusedTokens.push(token);
  1907. }
  1908. addTimeToArrayFromToken(token, parsedInput, config);
  1909. }
  1910. else if (config._strict && !parsedInput) {
  1911. getParsingFlags(config).unusedTokens.push(token);
  1912. }
  1913. }
  1914. // add remaining unparsed input length to the string
  1915. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  1916. if (string.length > 0) {
  1917. getParsingFlags(config).unusedInput.push(string);
  1918. }
  1919. // clear _12h flag if hour is <= 12
  1920. if (config._a[HOUR] <= 12 &&
  1921. getParsingFlags(config).bigHour === true &&
  1922. config._a[HOUR] > 0) {
  1923. getParsingFlags(config).bigHour = undefined;
  1924. }
  1925. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  1926. getParsingFlags(config).meridiem = config._meridiem;
  1927. // handle meridiem
  1928. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  1929. configFromArray(config);
  1930. checkOverflow(config);
  1931. }
  1932. function meridiemFixWrap (locale, hour, meridiem) {
  1933. var isPm;
  1934. if (meridiem == null) {
  1935. // nothing to do
  1936. return hour;
  1937. }
  1938. if (locale.meridiemHour != null) {
  1939. return locale.meridiemHour(hour, meridiem);
  1940. } else if (locale.isPM != null) {
  1941. // Fallback
  1942. isPm = locale.isPM(meridiem);
  1943. if (isPm && hour < 12) {
  1944. hour += 12;
  1945. }
  1946. if (!isPm && hour === 12) {
  1947. hour = 0;
  1948. }
  1949. return hour;
  1950. } else {
  1951. // this is not supposed to happen
  1952. return hour;
  1953. }
  1954. }
  1955. // date from string and array of format strings
  1956. function configFromStringAndArray(config) {
  1957. var tempConfig,
  1958. bestMoment,
  1959. scoreToBeat,
  1960. i,
  1961. currentScore;
  1962. if (config._f.length === 0) {
  1963. getParsingFlags(config).invalidFormat = true;
  1964. config._d = new Date(NaN);
  1965. return;
  1966. }
  1967. for (i = 0; i < config._f.length; i++) {
  1968. currentScore = 0;
  1969. tempConfig = copyConfig({}, config);
  1970. if (config._useUTC != null) {
  1971. tempConfig._useUTC = config._useUTC;
  1972. }
  1973. tempConfig._f = config._f[i];
  1974. configFromStringAndFormat(tempConfig);
  1975. if (!valid__isValid(tempConfig)) {
  1976. continue;
  1977. }
  1978. // if there is any input that was not parsed add a penalty for that format
  1979. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  1980. //or tokens
  1981. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  1982. getParsingFlags(tempConfig).score = currentScore;
  1983. if (scoreToBeat == null || currentScore < scoreToBeat) {
  1984. scoreToBeat = currentScore;
  1985. bestMoment = tempConfig;
  1986. }
  1987. }
  1988. extend(config, bestMoment || tempConfig);
  1989. }
  1990. function configFromObject(config) {
  1991. if (config._d) {
  1992. return;
  1993. }
  1994. var i = normalizeObjectUnits(config._i);
  1995. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  1996. return obj && parseInt(obj, 10);
  1997. });
  1998. configFromArray(config);
  1999. }
  2000. function createFromConfig (config) {
  2001. var res = new Moment(checkOverflow(prepareConfig(config)));
  2002. if (res._nextDay) {
  2003. // Adding is smart enough around DST
  2004. res.add(1, 'd');
  2005. res._nextDay = undefined;
  2006. }
  2007. return res;
  2008. }
  2009. function prepareConfig (config) {
  2010. var input = config._i,
  2011. format = config._f;
  2012. config._locale = config._locale || locale_locales__getLocale(config._l);
  2013. if (input === null || (format === undefined && input === '')) {
  2014. return valid__createInvalid({nullInput: true});
  2015. }
  2016. if (typeof input === 'string') {
  2017. config._i = input = config._locale.preparse(input);
  2018. }
  2019. if (isMoment(input)) {
  2020. return new Moment(checkOverflow(input));
  2021. } else if (isArray(format)) {
  2022. configFromStringAndArray(config);
  2023. } else if (isDate(input)) {
  2024. config._d = input;
  2025. } else if (format) {
  2026. configFromStringAndFormat(config);
  2027. } else {
  2028. configFromInput(config);
  2029. }
  2030. if (!valid__isValid(config)) {
  2031. config._d = null;
  2032. }
  2033. return config;
  2034. }
  2035. function configFromInput(config) {
  2036. var input = config._i;
  2037. if (input === undefined) {
  2038. config._d = new Date(utils_hooks__hooks.now());
  2039. } else if (isDate(input)) {
  2040. config._d = new Date(input.valueOf());
  2041. } else if (typeof input === 'string') {
  2042. configFromString(config);
  2043. } else if (isArray(input)) {
  2044. config._a = map(input.slice(0), function (obj) {
  2045. return parseInt(obj, 10);
  2046. });
  2047. configFromArray(config);
  2048. } else if (typeof(input) === 'object') {
  2049. configFromObject(config);
  2050. } else if (typeof(input) === 'number') {
  2051. // from milliseconds
  2052. config._d = new Date(input);
  2053. } else {
  2054. utils_hooks__hooks.createFromInputFallback(config);
  2055. }
  2056. }
  2057. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  2058. var c = {};
  2059. if (typeof(locale) === 'boolean') {
  2060. strict = locale;
  2061. locale = undefined;
  2062. }
  2063. if ((isObject(input) && isObjectEmpty(input)) ||
  2064. (isArray(input) && input.length === 0)) {
  2065. input = undefined;
  2066. }
  2067. // object construction must be done this way.
  2068. // https://github.com/moment/moment/issues/1423
  2069. c._isAMomentObject = true;
  2070. c._useUTC = c._isUTC = isUTC;
  2071. c._l = locale;
  2072. c._i = input;
  2073. c._f = format;
  2074. c._strict = strict;
  2075. return createFromConfig(c);
  2076. }
  2077. function local__createLocal (input, format, locale, strict) {
  2078. return createLocalOrUTC(input, format, locale, strict, false);
  2079. }
  2080. var prototypeMin = deprecate(
  2081. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2082. function () {
  2083. var other = local__createLocal.apply(null, arguments);
  2084. if (this.isValid() && other.isValid()) {
  2085. return other < this ? this : other;
  2086. } else {
  2087. return valid__createInvalid();
  2088. }
  2089. }
  2090. );
  2091. var prototypeMax = deprecate(
  2092. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2093. function () {
  2094. var other = local__createLocal.apply(null, arguments);
  2095. if (this.isValid() && other.isValid()) {
  2096. return other > this ? this : other;
  2097. } else {
  2098. return valid__createInvalid();
  2099. }
  2100. }
  2101. );
  2102. // Pick a moment m from moments so that m[fn](other) is true for all
  2103. // other. This relies on the function fn to be transitive.
  2104. //
  2105. // moments should either be an array of moment objects or an array, whose
  2106. // first element is an array of moment objects.
  2107. function pickBy(fn, moments) {
  2108. var res, i;
  2109. if (moments.length === 1 && isArray(moments[0])) {
  2110. moments = moments[0];
  2111. }
  2112. if (!moments.length) {
  2113. return local__createLocal();
  2114. }
  2115. res = moments[0];
  2116. for (i = 1; i < moments.length; ++i) {
  2117. if (!moments[i].isValid() || moments[i][fn](res)) {
  2118. res = moments[i];
  2119. }
  2120. }
  2121. return res;
  2122. }
  2123. // TODO: Use [].sort instead?
  2124. function min () {
  2125. var args = [].slice.call(arguments, 0);
  2126. return pickBy('isBefore', args);
  2127. }
  2128. function max () {
  2129. var args = [].slice.call(arguments, 0);
  2130. return pickBy('isAfter', args);
  2131. }
  2132. var now = function () {
  2133. return Date.now ? Date.now() : +(new Date());
  2134. };
  2135. function Duration (duration) {
  2136. var normalizedInput = normalizeObjectUnits(duration),
  2137. years = normalizedInput.year || 0,
  2138. quarters = normalizedInput.quarter || 0,
  2139. months = normalizedInput.month || 0,
  2140. weeks = normalizedInput.week || 0,
  2141. days = normalizedInput.day || 0,
  2142. hours = normalizedInput.hour || 0,
  2143. minutes = normalizedInput.minute || 0,
  2144. seconds = normalizedInput.second || 0,
  2145. milliseconds = normalizedInput.millisecond || 0;
  2146. // representation for dateAddRemove
  2147. this._milliseconds = +milliseconds +
  2148. seconds * 1e3 + // 1000
  2149. minutes * 6e4 + // 1000 * 60
  2150. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2151. // Because of dateAddRemove treats 24 hours as different from a
  2152. // day when working around DST, we need to store them separately
  2153. this._days = +days +
  2154. weeks * 7;
  2155. // It is impossible translate months into days without knowing
  2156. // which months you are are talking about, so we have to store
  2157. // it separately.
  2158. this._months = +months +
  2159. quarters * 3 +
  2160. years * 12;
  2161. this._data = {};
  2162. this._locale = locale_locales__getLocale();
  2163. this._bubble();
  2164. }
  2165. function isDuration (obj) {
  2166. return obj instanceof Duration;
  2167. }
  2168. function absRound (number) {
  2169. if (number < 0) {
  2170. return Math.round(-1 * number) * -1;
  2171. } else {
  2172. return Math.round(number);
  2173. }
  2174. }
  2175. // FORMATTING
  2176. function offset (token, separator) {
  2177. addFormatToken(token, 0, 0, function () {
  2178. var offset = this.utcOffset();
  2179. var sign = '+';
  2180. if (offset < 0) {
  2181. offset = -offset;
  2182. sign = '-';
  2183. }
  2184. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  2185. });
  2186. }
  2187. offset('Z', ':');
  2188. offset('ZZ', '');
  2189. // PARSING
  2190. addRegexToken('Z', matchShortOffset);
  2191. addRegexToken('ZZ', matchShortOffset);
  2192. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2193. config._useUTC = true;
  2194. config._tzm = offsetFromString(matchShortOffset, input);
  2195. });
  2196. // HELPERS
  2197. // timezone chunker
  2198. // '+10:00' > ['10', '00']
  2199. // '-1530' > ['-15', '30']
  2200. var chunkOffset = /([\+\-]|\d\d)/gi;
  2201. function offsetFromString(matcher, string) {
  2202. var matches = ((string || '').match(matcher) || []);
  2203. var chunk = matches[matches.length - 1] || [];
  2204. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2205. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  2206. return parts[0] === '+' ? minutes : -minutes;
  2207. }
  2208. // Return a moment from input, that is local/utc/zone equivalent to model.
  2209. function cloneWithOffset(input, model) {
  2210. var res, diff;
  2211. if (model._isUTC) {
  2212. res = model.clone();
  2213. diff = (isMoment(input) || isDate(input) ? input.valueOf() : local__createLocal(input).valueOf()) - res.valueOf();
  2214. // Use low-level api, because this fn is low-level api.
  2215. res._d.setTime(res._d.valueOf() + diff);
  2216. utils_hooks__hooks.updateOffset(res, false);
  2217. return res;
  2218. } else {
  2219. return local__createLocal(input).local();
  2220. }
  2221. }
  2222. function getDateOffset (m) {
  2223. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2224. // https://github.com/moment/moment/pull/1871
  2225. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  2226. }
  2227. // HOOKS
  2228. // This function will be called whenever a moment is mutated.
  2229. // It is intended to keep the offset in sync with the timezone.
  2230. utils_hooks__hooks.updateOffset = function () {};
  2231. // MOMENTS
  2232. // keepLocalTime = true means only change the timezone, without
  2233. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2234. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2235. // +0200, so we adjust the time as needed, to be valid.
  2236. //
  2237. // Keeping the time actually adds/subtracts (one hour)
  2238. // from the actual represented time. That is why we call updateOffset
  2239. // a second time. In case it wants us to change the offset again
  2240. // _changeInProgress == true case, then we have to adjust, because
  2241. // there is no such time in the given timezone.
  2242. function getSetOffset (input, keepLocalTime) {
  2243. var offset = this._offset || 0,
  2244. localAdjust;
  2245. if (!this.isValid()) {
  2246. return input != null ? this : NaN;
  2247. }
  2248. if (input != null) {
  2249. if (typeof input === 'string') {
  2250. input = offsetFromString(matchShortOffset, input);
  2251. } else if (Math.abs(input) < 16) {
  2252. input = input * 60;
  2253. }
  2254. if (!this._isUTC && keepLocalTime) {
  2255. localAdjust = getDateOffset(this);
  2256. }
  2257. this._offset = input;
  2258. this._isUTC = true;
  2259. if (localAdjust != null) {
  2260. this.add(localAdjust, 'm');
  2261. }
  2262. if (offset !== input) {
  2263. if (!keepLocalTime || this._changeInProgress) {
  2264. add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);
  2265. } else if (!this._changeInProgress) {
  2266. this._changeInProgress = true;
  2267. utils_hooks__hooks.updateOffset(this, true);
  2268. this._changeInProgress = null;
  2269. }
  2270. }
  2271. return this;
  2272. } else {
  2273. return this._isUTC ? offset : getDateOffset(this);
  2274. }
  2275. }
  2276. function getSetZone (input, keepLocalTime) {
  2277. if (input != null) {
  2278. if (typeof input !== 'string') {
  2279. input = -input;
  2280. }
  2281. this.utcOffset(input, keepLocalTime);
  2282. return this;
  2283. } else {
  2284. return -this.utcOffset();
  2285. }
  2286. }
  2287. function setOffsetToUTC (keepLocalTime) {
  2288. return this.utcOffset(0, keepLocalTime);
  2289. }
  2290. function setOffsetToLocal (keepLocalTime) {
  2291. if (this._isUTC) {
  2292. this.utcOffset(0, keepLocalTime);
  2293. this._isUTC = false;
  2294. if (keepLocalTime) {
  2295. this.subtract(getDateOffset(this), 'm');
  2296. }
  2297. }
  2298. return this;
  2299. }
  2300. function setOffsetToParsedOffset () {
  2301. if (this._tzm) {
  2302. this.utcOffset(this._tzm);
  2303. } else if (typeof this._i === 'string') {
  2304. var tZone = offsetFromString(matchOffset, this._i);
  2305. if (tZone === 0) {
  2306. this.utcOffset(0, true);
  2307. } else {
  2308. this.utcOffset(offsetFromString(matchOffset, this._i));
  2309. }
  2310. }
  2311. return this;
  2312. }
  2313. function hasAlignedHourOffset (input) {
  2314. if (!this.isValid()) {
  2315. return false;
  2316. }
  2317. input = input ? local__createLocal(input).utcOffset() : 0;
  2318. return (this.utcOffset() - input) % 60 === 0;
  2319. }
  2320. function isDaylightSavingTime () {
  2321. return (
  2322. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2323. this.utcOffset() > this.clone().month(5).utcOffset()
  2324. );
  2325. }
  2326. function isDaylightSavingTimeShifted () {
  2327. if (!isUndefined(this._isDSTShifted)) {
  2328. return this._isDSTShifted;
  2329. }
  2330. var c = {};
  2331. copyConfig(c, this);
  2332. c = prepareConfig(c);
  2333. if (c._a) {
  2334. var other = c._isUTC ? create_utc__createUTC(c._a) : local__createLocal(c._a);
  2335. this._isDSTShifted = this.isValid() &&
  2336. compareArrays(c._a, other.toArray()) > 0;
  2337. } else {
  2338. this._isDSTShifted = false;
  2339. }
  2340. return this._isDSTShifted;
  2341. }
  2342. function isLocal () {
  2343. return this.isValid() ? !this._isUTC : false;
  2344. }
  2345. function isUtcOffset () {
  2346. return this.isValid() ? this._isUTC : false;
  2347. }
  2348. function isUtc () {
  2349. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2350. }
  2351. // ASP.NET json date format regex
  2352. var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
  2353. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  2354. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  2355. // and further modified to allow for strings containing both week and day
  2356. 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)?)?$/;
  2357. function create__createDuration (input, key) {
  2358. var duration = input,
  2359. // matching against regexp is expensive, do it on demand
  2360. match = null,
  2361. sign,
  2362. ret,
  2363. diffRes;
  2364. if (isDuration(input)) {
  2365. duration = {
  2366. ms : input._milliseconds,
  2367. d : input._days,
  2368. M : input._months
  2369. };
  2370. } else if (typeof input === 'number') {
  2371. duration = {};
  2372. if (key) {
  2373. duration[key] = input;
  2374. } else {
  2375. duration.milliseconds = input;
  2376. }
  2377. } else if (!!(match = aspNetRegex.exec(input))) {
  2378. sign = (match[1] === '-') ? -1 : 1;
  2379. duration = {
  2380. y : 0,
  2381. d : toInt(match[DATE]) * sign,
  2382. h : toInt(match[HOUR]) * sign,
  2383. m : toInt(match[MINUTE]) * sign,
  2384. s : toInt(match[SECOND]) * sign,
  2385. ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  2386. };
  2387. } else if (!!(match = isoRegex.exec(input))) {
  2388. sign = (match[1] === '-') ? -1 : 1;
  2389. duration = {
  2390. y : parseIso(match[2], sign),
  2391. M : parseIso(match[3], sign),
  2392. w : parseIso(match[4], sign),
  2393. d : parseIso(match[5], sign),
  2394. h : parseIso(match[6], sign),
  2395. m : parseIso(match[7], sign),
  2396. s : parseIso(match[8], sign)
  2397. };
  2398. } else if (duration == null) {// checks for null or undefined
  2399. duration = {};
  2400. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  2401. diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));
  2402. duration = {};
  2403. duration.ms = diffRes.milliseconds;
  2404. duration.M = diffRes.months;
  2405. }
  2406. ret = new Duration(duration);
  2407. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  2408. ret._locale = input._locale;
  2409. }
  2410. return ret;
  2411. }
  2412. create__createDuration.fn = Duration.prototype;
  2413. function parseIso (inp, sign) {
  2414. // We'd normally use ~~inp for this, but unfortunately it also
  2415. // converts floats to ints.
  2416. // inp may be undefined, so careful calling replace on it.
  2417. var res = inp && parseFloat(inp.replace(',', '.'));
  2418. // apply sign while we're at it
  2419. return (isNaN(res) ? 0 : res) * sign;
  2420. }
  2421. function positiveMomentsDifference(base, other) {
  2422. var res = {milliseconds: 0, months: 0};
  2423. res.months = other.month() - base.month() +
  2424. (other.year() - base.year()) * 12;
  2425. if (base.clone().add(res.months, 'M').isAfter(other)) {
  2426. --res.months;
  2427. }
  2428. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  2429. return res;
  2430. }
  2431. function momentsDifference(base, other) {
  2432. var res;
  2433. if (!(base.isValid() && other.isValid())) {
  2434. return {milliseconds: 0, months: 0};
  2435. }
  2436. other = cloneWithOffset(other, base);
  2437. if (base.isBefore(other)) {
  2438. res = positiveMomentsDifference(base, other);
  2439. } else {
  2440. res = positiveMomentsDifference(other, base);
  2441. res.milliseconds = -res.milliseconds;
  2442. res.months = -res.months;
  2443. }
  2444. return res;
  2445. }
  2446. // TODO: remove 'name' arg after deprecation is removed
  2447. function createAdder(direction, name) {
  2448. return function (val, period) {
  2449. var dur, tmp;
  2450. //invert the arguments, but complain about it
  2451. if (period !== null && !isNaN(+period)) {
  2452. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
  2453. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  2454. tmp = val; val = period; period = tmp;
  2455. }
  2456. val = typeof val === 'string' ? +val : val;
  2457. dur = create__createDuration(val, period);
  2458. add_subtract__addSubtract(this, dur, direction);
  2459. return this;
  2460. };
  2461. }
  2462. function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {
  2463. var milliseconds = duration._milliseconds,
  2464. days = absRound(duration._days),
  2465. months = absRound(duration._months);
  2466. if (!mom.isValid()) {
  2467. // No op
  2468. return;
  2469. }
  2470. updateOffset = updateOffset == null ? true : updateOffset;
  2471. if (milliseconds) {
  2472. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  2473. }
  2474. if (days) {
  2475. get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);
  2476. }
  2477. if (months) {
  2478. setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);
  2479. }
  2480. if (updateOffset) {
  2481. utils_hooks__hooks.updateOffset(mom, days || months);
  2482. }
  2483. }
  2484. var add_subtract__add = createAdder(1, 'add');
  2485. var add_subtract__subtract = createAdder(-1, 'subtract');
  2486. function getCalendarFormat(myMoment, now) {
  2487. var diff = myMoment.diff(now, 'days', true);
  2488. return diff < -6 ? 'sameElse' :
  2489. diff < -1 ? 'lastWeek' :
  2490. diff < 0 ? 'lastDay' :
  2491. diff < 1 ? 'sameDay' :
  2492. diff < 2 ? 'nextDay' :
  2493. diff < 7 ? 'nextWeek' : 'sameElse';
  2494. }
  2495. function moment_calendar__calendar (time, formats) {
  2496. // We want to compare the start of today, vs this.
  2497. // Getting start-of-today depends on whether we're local/utc/offset or not.
  2498. var now = time || local__createLocal(),
  2499. sod = cloneWithOffset(now, this).startOf('day'),
  2500. format = utils_hooks__hooks.calendarFormat(this, sod) || 'sameElse';
  2501. var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  2502. return this.format(output || this.localeData().calendar(format, this, local__createLocal(now)));
  2503. }
  2504. function clone () {
  2505. return new Moment(this);
  2506. }
  2507. function isAfter (input, units) {
  2508. var localInput = isMoment(input) ? input : local__createLocal(input);
  2509. if (!(this.isValid() && localInput.isValid())) {
  2510. return false;
  2511. }
  2512. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2513. if (units === 'millisecond') {
  2514. return this.valueOf() > localInput.valueOf();
  2515. } else {
  2516. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  2517. }
  2518. }
  2519. function isBefore (input, units) {
  2520. var localInput = isMoment(input) ? input : local__createLocal(input);
  2521. if (!(this.isValid() && localInput.isValid())) {
  2522. return false;
  2523. }
  2524. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2525. if (units === 'millisecond') {
  2526. return this.valueOf() < localInput.valueOf();
  2527. } else {
  2528. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  2529. }
  2530. }
  2531. function isBetween (from, to, units, inclusivity) {
  2532. inclusivity = inclusivity || '()';
  2533. return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
  2534. (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
  2535. }
  2536. function isSame (input, units) {
  2537. var localInput = isMoment(input) ? input : local__createLocal(input),
  2538. inputMs;
  2539. if (!(this.isValid() && localInput.isValid())) {
  2540. return false;
  2541. }
  2542. units = normalizeUnits(units || 'millisecond');
  2543. if (units === 'millisecond') {
  2544. return this.valueOf() === localInput.valueOf();
  2545. } else {
  2546. inputMs = localInput.valueOf();
  2547. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  2548. }
  2549. }
  2550. function isSameOrAfter (input, units) {
  2551. return this.isSame(input, units) || this.isAfter(input,units);
  2552. }
  2553. function isSameOrBefore (input, units) {
  2554. return this.isSame(input, units) || this.isBefore(input,units);
  2555. }
  2556. function diff (input, units, asFloat) {
  2557. var that,
  2558. zoneDelta,
  2559. delta, output;
  2560. if (!this.isValid()) {
  2561. return NaN;
  2562. }
  2563. that = cloneWithOffset(input, this);
  2564. if (!that.isValid()) {
  2565. return NaN;
  2566. }
  2567. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  2568. units = normalizeUnits(units);
  2569. if (units === 'year' || units === 'month' || units === 'quarter') {
  2570. output = monthDiff(this, that);
  2571. if (units === 'quarter') {
  2572. output = output / 3;
  2573. } else if (units === 'year') {
  2574. output = output / 12;
  2575. }
  2576. } else {
  2577. delta = this - that;
  2578. output = units === 'second' ? delta / 1e3 : // 1000
  2579. units === 'minute' ? delta / 6e4 : // 1000 * 60
  2580. units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
  2581. units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
  2582. units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
  2583. delta;
  2584. }
  2585. return asFloat ? output : absFloor(output);
  2586. }
  2587. function monthDiff (a, b) {
  2588. // difference in months
  2589. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  2590. // b is in (anchor - 1 month, anchor + 1 month)
  2591. anchor = a.clone().add(wholeMonthDiff, 'months'),
  2592. anchor2, adjust;
  2593. if (b - anchor < 0) {
  2594. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  2595. // linear across the month
  2596. adjust = (b - anchor) / (anchor - anchor2);
  2597. } else {
  2598. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  2599. // linear across the month
  2600. adjust = (b - anchor) / (anchor2 - anchor);
  2601. }
  2602. //check for negative zero, return zero if negative zero
  2603. return -(wholeMonthDiff + adjust) || 0;
  2604. }
  2605. utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  2606. utils_hooks__hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  2607. function toString () {
  2608. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  2609. }
  2610. function moment_format__toISOString () {
  2611. var m = this.clone().utc();
  2612. if (0 < m.year() && m.year() <= 9999) {
  2613. if (isFunction(Date.prototype.toISOString)) {
  2614. // native implementation is ~50x faster, use it when we can
  2615. return this.toDate().toISOString();
  2616. } else {
  2617. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2618. }
  2619. } else {
  2620. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2621. }
  2622. }
  2623. function moment_format__format (inputString) {
  2624. if (!inputString) {
  2625. inputString = this.isUtc() ? utils_hooks__hooks.defaultFormatUtc : utils_hooks__hooks.defaultFormat;
  2626. }
  2627. var output = formatMoment(this, inputString);
  2628. return this.localeData().postformat(output);
  2629. }
  2630. function from (time, withoutSuffix) {
  2631. if (this.isValid() &&
  2632. ((isMoment(time) && time.isValid()) ||
  2633. local__createLocal(time).isValid())) {
  2634. return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  2635. } else {
  2636. return this.localeData().invalidDate();
  2637. }
  2638. }
  2639. function fromNow (withoutSuffix) {
  2640. return this.from(local__createLocal(), withoutSuffix);
  2641. }
  2642. function to (time, withoutSuffix) {
  2643. if (this.isValid() &&
  2644. ((isMoment(time) && time.isValid()) ||
  2645. local__createLocal(time).isValid())) {
  2646. return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  2647. } else {
  2648. return this.localeData().invalidDate();
  2649. }
  2650. }
  2651. function toNow (withoutSuffix) {
  2652. return this.to(local__createLocal(), withoutSuffix);
  2653. }
  2654. // If passed a locale key, it will set the locale for this
  2655. // instance. Otherwise, it will return the locale configuration
  2656. // variables for this instance.
  2657. function locale (key) {
  2658. var newLocaleData;
  2659. if (key === undefined) {
  2660. return this._locale._abbr;
  2661. } else {
  2662. newLocaleData = locale_locales__getLocale(key);
  2663. if (newLocaleData != null) {
  2664. this._locale = newLocaleData;
  2665. }
  2666. return this;
  2667. }
  2668. }
  2669. var lang = deprecate(
  2670. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  2671. function (key) {
  2672. if (key === undefined) {
  2673. return this.localeData();
  2674. } else {
  2675. return this.locale(key);
  2676. }
  2677. }
  2678. );
  2679. function localeData () {
  2680. return this._locale;
  2681. }
  2682. function startOf (units) {
  2683. units = normalizeUnits(units);
  2684. // the following switch intentionally omits break keywords
  2685. // to utilize falling through the cases.
  2686. switch (units) {
  2687. case 'year':
  2688. this.month(0);
  2689. /* falls through */
  2690. case 'quarter':
  2691. case 'month':
  2692. this.date(1);
  2693. /* falls through */
  2694. case 'week':
  2695. case 'isoWeek':
  2696. case 'day':
  2697. case 'date':
  2698. this.hours(0);
  2699. /* falls through */
  2700. case 'hour':
  2701. this.minutes(0);
  2702. /* falls through */
  2703. case 'minute':
  2704. this.seconds(0);
  2705. /* falls through */
  2706. case 'second':
  2707. this.milliseconds(0);
  2708. }
  2709. // weeks are a special case
  2710. if (units === 'week') {
  2711. this.weekday(0);
  2712. }
  2713. if (units === 'isoWeek') {
  2714. this.isoWeekday(1);
  2715. }
  2716. // quarters are also special
  2717. if (units === 'quarter') {
  2718. this.month(Math.floor(this.month() / 3) * 3);
  2719. }
  2720. return this;
  2721. }
  2722. function endOf (units) {
  2723. units = normalizeUnits(units);
  2724. if (units === undefined || units === 'millisecond') {
  2725. return this;
  2726. }
  2727. // 'date' is an alias for 'day', so it should be considered as such.
  2728. if (units === 'date') {
  2729. units = 'day';
  2730. }
  2731. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  2732. }
  2733. function to_type__valueOf () {
  2734. return this._d.valueOf() - ((this._offset || 0) * 60000);
  2735. }
  2736. function unix () {
  2737. return Math.floor(this.valueOf() / 1000);
  2738. }
  2739. function toDate () {
  2740. return new Date(this.valueOf());
  2741. }
  2742. function toArray () {
  2743. var m = this;
  2744. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  2745. }
  2746. function toObject () {
  2747. var m = this;
  2748. return {
  2749. years: m.year(),
  2750. months: m.month(),
  2751. date: m.date(),
  2752. hours: m.hours(),
  2753. minutes: m.minutes(),
  2754. seconds: m.seconds(),
  2755. milliseconds: m.milliseconds()
  2756. };
  2757. }
  2758. function toJSON () {
  2759. // new Date(NaN).toJSON() === null
  2760. return this.isValid() ? this.toISOString() : null;
  2761. }
  2762. function moment_valid__isValid () {
  2763. return valid__isValid(this);
  2764. }
  2765. function parsingFlags () {
  2766. return extend({}, getParsingFlags(this));
  2767. }
  2768. function invalidAt () {
  2769. return getParsingFlags(this).overflow;
  2770. }
  2771. function creationData() {
  2772. return {
  2773. input: this._i,
  2774. format: this._f,
  2775. locale: this._locale,
  2776. isUTC: this._isUTC,
  2777. strict: this._strict
  2778. };
  2779. }
  2780. // FORMATTING
  2781. addFormatToken(0, ['gg', 2], 0, function () {
  2782. return this.weekYear() % 100;
  2783. });
  2784. addFormatToken(0, ['GG', 2], 0, function () {
  2785. return this.isoWeekYear() % 100;
  2786. });
  2787. function addWeekYearFormatToken (token, getter) {
  2788. addFormatToken(0, [token, token.length], 0, getter);
  2789. }
  2790. addWeekYearFormatToken('gggg', 'weekYear');
  2791. addWeekYearFormatToken('ggggg', 'weekYear');
  2792. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  2793. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  2794. // ALIASES
  2795. addUnitAlias('weekYear', 'gg');
  2796. addUnitAlias('isoWeekYear', 'GG');
  2797. // PRIORITY
  2798. addUnitPriority('weekYear', 1);
  2799. addUnitPriority('isoWeekYear', 1);
  2800. // PARSING
  2801. addRegexToken('G', matchSigned);
  2802. addRegexToken('g', matchSigned);
  2803. addRegexToken('GG', match1to2, match2);
  2804. addRegexToken('gg', match1to2, match2);
  2805. addRegexToken('GGGG', match1to4, match4);
  2806. addRegexToken('gggg', match1to4, match4);
  2807. addRegexToken('GGGGG', match1to6, match6);
  2808. addRegexToken('ggggg', match1to6, match6);
  2809. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  2810. week[token.substr(0, 2)] = toInt(input);
  2811. });
  2812. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  2813. week[token] = utils_hooks__hooks.parseTwoDigitYear(input);
  2814. });
  2815. // MOMENTS
  2816. function getSetWeekYear (input) {
  2817. return getSetWeekYearHelper.call(this,
  2818. input,
  2819. this.week(),
  2820. this.weekday(),
  2821. this.localeData()._week.dow,
  2822. this.localeData()._week.doy);
  2823. }
  2824. function getSetISOWeekYear (input) {
  2825. return getSetWeekYearHelper.call(this,
  2826. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  2827. }
  2828. function getISOWeeksInYear () {
  2829. return weeksInYear(this.year(), 1, 4);
  2830. }
  2831. function getWeeksInYear () {
  2832. var weekInfo = this.localeData()._week;
  2833. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  2834. }
  2835. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  2836. var weeksTarget;
  2837. if (input == null) {
  2838. return weekOfYear(this, dow, doy).year;
  2839. } else {
  2840. weeksTarget = weeksInYear(input, dow, doy);
  2841. if (week > weeksTarget) {
  2842. week = weeksTarget;
  2843. }
  2844. return setWeekAll.call(this, input, week, weekday, dow, doy);
  2845. }
  2846. }
  2847. function setWeekAll(weekYear, week, weekday, dow, doy) {
  2848. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  2849. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  2850. this.year(date.getUTCFullYear());
  2851. this.month(date.getUTCMonth());
  2852. this.date(date.getUTCDate());
  2853. return this;
  2854. }
  2855. // FORMATTING
  2856. addFormatToken('Q', 0, 'Qo', 'quarter');
  2857. // ALIASES
  2858. addUnitAlias('quarter', 'Q');
  2859. // PRIORITY
  2860. addUnitPriority('quarter', 7);
  2861. // PARSING
  2862. addRegexToken('Q', match1);
  2863. addParseToken('Q', function (input, array) {
  2864. array[MONTH] = (toInt(input) - 1) * 3;
  2865. });
  2866. // MOMENTS
  2867. function getSetQuarter (input) {
  2868. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  2869. }
  2870. // FORMATTING
  2871. addFormatToken('D', ['DD', 2], 'Do', 'date');
  2872. // ALIASES
  2873. addUnitAlias('date', 'D');
  2874. // PRIOROITY
  2875. addUnitPriority('date', 9);
  2876. // PARSING
  2877. addRegexToken('D', match1to2);
  2878. addRegexToken('DD', match1to2, match2);
  2879. addRegexToken('Do', function (isStrict, locale) {
  2880. return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;
  2881. });
  2882. addParseToken(['D', 'DD'], DATE);
  2883. addParseToken('Do', function (input, array) {
  2884. array[DATE] = toInt(input.match(match1to2)[0], 10);
  2885. });
  2886. // MOMENTS
  2887. var getSetDayOfMonth = makeGetSet('Date', true);
  2888. // FORMATTING
  2889. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  2890. // ALIASES
  2891. addUnitAlias('dayOfYear', 'DDD');
  2892. // PRIORITY
  2893. addUnitPriority('dayOfYear', 4);
  2894. // PARSING
  2895. addRegexToken('DDD', match1to3);
  2896. addRegexToken('DDDD', match3);
  2897. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  2898. config._dayOfYear = toInt(input);
  2899. });
  2900. // HELPERS
  2901. // MOMENTS
  2902. function getSetDayOfYear (input) {
  2903. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  2904. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  2905. }
  2906. // FORMATTING
  2907. addFormatToken('m', ['mm', 2], 0, 'minute');
  2908. // ALIASES
  2909. addUnitAlias('minute', 'm');
  2910. // PRIORITY
  2911. addUnitPriority('minute', 14);
  2912. // PARSING
  2913. addRegexToken('m', match1to2);
  2914. addRegexToken('mm', match1to2, match2);
  2915. addParseToken(['m', 'mm'], MINUTE);
  2916. // MOMENTS
  2917. var getSetMinute = makeGetSet('Minutes', false);
  2918. // FORMATTING
  2919. addFormatToken('s', ['ss', 2], 0, 'second');
  2920. // ALIASES
  2921. addUnitAlias('second', 's');
  2922. // PRIORITY
  2923. addUnitPriority('second', 15);
  2924. // PARSING
  2925. addRegexToken('s', match1to2);
  2926. addRegexToken('ss', match1to2, match2);
  2927. addParseToken(['s', 'ss'], SECOND);
  2928. // MOMENTS
  2929. var getSetSecond = makeGetSet('Seconds', false);
  2930. // FORMATTING
  2931. addFormatToken('S', 0, 0, function () {
  2932. return ~~(this.millisecond() / 100);
  2933. });
  2934. addFormatToken(0, ['SS', 2], 0, function () {
  2935. return ~~(this.millisecond() / 10);
  2936. });
  2937. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  2938. addFormatToken(0, ['SSSS', 4], 0, function () {
  2939. return this.millisecond() * 10;
  2940. });
  2941. addFormatToken(0, ['SSSSS', 5], 0, function () {
  2942. return this.millisecond() * 100;
  2943. });
  2944. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  2945. return this.millisecond() * 1000;
  2946. });
  2947. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  2948. return this.millisecond() * 10000;
  2949. });
  2950. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  2951. return this.millisecond() * 100000;
  2952. });
  2953. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  2954. return this.millisecond() * 1000000;
  2955. });
  2956. // ALIASES
  2957. addUnitAlias('millisecond', 'ms');
  2958. // PRIORITY
  2959. addUnitPriority('millisecond', 16);
  2960. // PARSING
  2961. addRegexToken('S', match1to3, match1);
  2962. addRegexToken('SS', match1to3, match2);
  2963. addRegexToken('SSS', match1to3, match3);
  2964. var token;
  2965. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  2966. addRegexToken(token, matchUnsigned);
  2967. }
  2968. function parseMs(input, array) {
  2969. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  2970. }
  2971. for (token = 'S'; token.length <= 9; token += 'S') {
  2972. addParseToken(token, parseMs);
  2973. }
  2974. // MOMENTS
  2975. var getSetMillisecond = makeGetSet('Milliseconds', false);
  2976. // FORMATTING
  2977. addFormatToken('z', 0, 0, 'zoneAbbr');
  2978. addFormatToken('zz', 0, 0, 'zoneName');
  2979. // MOMENTS
  2980. function getZoneAbbr () {
  2981. return this._isUTC ? 'UTC' : '';
  2982. }
  2983. function getZoneName () {
  2984. return this._isUTC ? 'Coordinated Universal Time' : '';
  2985. }
  2986. var momentPrototype__proto = Moment.prototype;
  2987. momentPrototype__proto.add = add_subtract__add;
  2988. momentPrototype__proto.calendar = moment_calendar__calendar;
  2989. momentPrototype__proto.clone = clone;
  2990. momentPrototype__proto.diff = diff;
  2991. momentPrototype__proto.endOf = endOf;
  2992. momentPrototype__proto.format = moment_format__format;
  2993. momentPrototype__proto.from = from;
  2994. momentPrototype__proto.fromNow = fromNow;
  2995. momentPrototype__proto.to = to;
  2996. momentPrototype__proto.toNow = toNow;
  2997. momentPrototype__proto.get = stringGet;
  2998. momentPrototype__proto.invalidAt = invalidAt;
  2999. momentPrototype__proto.isAfter = isAfter;
  3000. momentPrototype__proto.isBefore = isBefore;
  3001. momentPrototype__proto.isBetween = isBetween;
  3002. momentPrototype__proto.isSame = isSame;
  3003. momentPrototype__proto.isSameOrAfter = isSameOrAfter;
  3004. momentPrototype__proto.isSameOrBefore = isSameOrBefore;
  3005. momentPrototype__proto.isValid = moment_valid__isValid;
  3006. momentPrototype__proto.lang = lang;
  3007. momentPrototype__proto.locale = locale;
  3008. momentPrototype__proto.localeData = localeData;
  3009. momentPrototype__proto.max = prototypeMax;
  3010. momentPrototype__proto.min = prototypeMin;
  3011. momentPrototype__proto.parsingFlags = parsingFlags;
  3012. momentPrototype__proto.set = stringSet;
  3013. momentPrototype__proto.startOf = startOf;
  3014. momentPrototype__proto.subtract = add_subtract__subtract;
  3015. momentPrototype__proto.toArray = toArray;
  3016. momentPrototype__proto.toObject = toObject;
  3017. momentPrototype__proto.toDate = toDate;
  3018. momentPrototype__proto.toISOString = moment_format__toISOString;
  3019. momentPrototype__proto.toJSON = toJSON;
  3020. momentPrototype__proto.toString = toString;
  3021. momentPrototype__proto.unix = unix;
  3022. momentPrototype__proto.valueOf = to_type__valueOf;
  3023. momentPrototype__proto.creationData = creationData;
  3024. // Year
  3025. momentPrototype__proto.year = getSetYear;
  3026. momentPrototype__proto.isLeapYear = getIsLeapYear;
  3027. // Week Year
  3028. momentPrototype__proto.weekYear = getSetWeekYear;
  3029. momentPrototype__proto.isoWeekYear = getSetISOWeekYear;
  3030. // Quarter
  3031. momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;
  3032. // Month
  3033. momentPrototype__proto.month = getSetMonth;
  3034. momentPrototype__proto.daysInMonth = getDaysInMonth;
  3035. // Week
  3036. momentPrototype__proto.week = momentPrototype__proto.weeks = getSetWeek;
  3037. momentPrototype__proto.isoWeek = momentPrototype__proto.isoWeeks = getSetISOWeek;
  3038. momentPrototype__proto.weeksInYear = getWeeksInYear;
  3039. momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;
  3040. // Day
  3041. momentPrototype__proto.date = getSetDayOfMonth;
  3042. momentPrototype__proto.day = momentPrototype__proto.days = getSetDayOfWeek;
  3043. momentPrototype__proto.weekday = getSetLocaleDayOfWeek;
  3044. momentPrototype__proto.isoWeekday = getSetISODayOfWeek;
  3045. momentPrototype__proto.dayOfYear = getSetDayOfYear;
  3046. // Hour
  3047. momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;
  3048. // Minute
  3049. momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;
  3050. // Second
  3051. momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;
  3052. // Millisecond
  3053. momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;
  3054. // Offset
  3055. momentPrototype__proto.utcOffset = getSetOffset;
  3056. momentPrototype__proto.utc = setOffsetToUTC;
  3057. momentPrototype__proto.local = setOffsetToLocal;
  3058. momentPrototype__proto.parseZone = setOffsetToParsedOffset;
  3059. momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;
  3060. momentPrototype__proto.isDST = isDaylightSavingTime;
  3061. momentPrototype__proto.isLocal = isLocal;
  3062. momentPrototype__proto.isUtcOffset = isUtcOffset;
  3063. momentPrototype__proto.isUtc = isUtc;
  3064. momentPrototype__proto.isUTC = isUtc;
  3065. // Timezone
  3066. momentPrototype__proto.zoneAbbr = getZoneAbbr;
  3067. momentPrototype__proto.zoneName = getZoneName;
  3068. // Deprecations
  3069. momentPrototype__proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  3070. momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  3071. momentPrototype__proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  3072. momentPrototype__proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  3073. momentPrototype__proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  3074. var momentPrototype = momentPrototype__proto;
  3075. function moment_moment__createUnix (input) {
  3076. return local__createLocal(input * 1000);
  3077. }
  3078. function moment_moment__createInZone () {
  3079. return local__createLocal.apply(null, arguments).parseZone();
  3080. }
  3081. function preParsePostFormat (string) {
  3082. return string;
  3083. }
  3084. var prototype__proto = Locale.prototype;
  3085. prototype__proto.calendar = locale_calendar__calendar;
  3086. prototype__proto.longDateFormat = longDateFormat;
  3087. prototype__proto.invalidDate = invalidDate;
  3088. prototype__proto.ordinal = ordinal;
  3089. prototype__proto.preparse = preParsePostFormat;
  3090. prototype__proto.postformat = preParsePostFormat;
  3091. prototype__proto.relativeTime = relative__relativeTime;
  3092. prototype__proto.pastFuture = pastFuture;
  3093. prototype__proto.set = locale_set__set;
  3094. // Month
  3095. prototype__proto.months = localeMonths;
  3096. prototype__proto.monthsShort = localeMonthsShort;
  3097. prototype__proto.monthsParse = localeMonthsParse;
  3098. prototype__proto.monthsRegex = units_month__monthsRegex;
  3099. prototype__proto.monthsShortRegex = monthsShortRegex;
  3100. // Week
  3101. prototype__proto.week = localeWeek;
  3102. prototype__proto.firstDayOfYear = localeFirstDayOfYear;
  3103. prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;
  3104. // Day of Week
  3105. prototype__proto.weekdays = localeWeekdays;
  3106. prototype__proto.weekdaysMin = localeWeekdaysMin;
  3107. prototype__proto.weekdaysShort = localeWeekdaysShort;
  3108. prototype__proto.weekdaysParse = localeWeekdaysParse;
  3109. prototype__proto.weekdaysRegex = weekdaysRegex;
  3110. prototype__proto.weekdaysShortRegex = weekdaysShortRegex;
  3111. prototype__proto.weekdaysMinRegex = weekdaysMinRegex;
  3112. // Hours
  3113. prototype__proto.isPM = localeIsPM;
  3114. prototype__proto.meridiem = localeMeridiem;
  3115. function lists__get (format, index, field, setter) {
  3116. var locale = locale_locales__getLocale();
  3117. var utc = create_utc__createUTC().set(setter, index);
  3118. return locale[field](utc, format);
  3119. }
  3120. function listMonthsImpl (format, index, field) {
  3121. if (typeof format === 'number') {
  3122. index = format;
  3123. format = undefined;
  3124. }
  3125. format = format || '';
  3126. if (index != null) {
  3127. return lists__get(format, index, field, 'month');
  3128. }
  3129. var i;
  3130. var out = [];
  3131. for (i = 0; i < 12; i++) {
  3132. out[i] = lists__get(format, i, field, 'month');
  3133. }
  3134. return out;
  3135. }
  3136. // ()
  3137. // (5)
  3138. // (fmt, 5)
  3139. // (fmt)
  3140. // (true)
  3141. // (true, 5)
  3142. // (true, fmt, 5)
  3143. // (true, fmt)
  3144. function listWeekdaysImpl (localeSorted, format, index, field) {
  3145. if (typeof localeSorted === 'boolean') {
  3146. if (typeof format === 'number') {
  3147. index = format;
  3148. format = undefined;
  3149. }
  3150. format = format || '';
  3151. } else {
  3152. format = localeSorted;
  3153. index = format;
  3154. localeSorted = false;
  3155. if (typeof format === 'number') {
  3156. index = format;
  3157. format = undefined;
  3158. }
  3159. format = format || '';
  3160. }
  3161. var locale = locale_locales__getLocale(),
  3162. shift = localeSorted ? locale._week.dow : 0;
  3163. if (index != null) {
  3164. return lists__get(format, (index + shift) % 7, field, 'day');
  3165. }
  3166. var i;
  3167. var out = [];
  3168. for (i = 0; i < 7; i++) {
  3169. out[i] = lists__get(format, (i + shift) % 7, field, 'day');
  3170. }
  3171. return out;
  3172. }
  3173. function lists__listMonths (format, index) {
  3174. return listMonthsImpl(format, index, 'months');
  3175. }
  3176. function lists__listMonthsShort (format, index) {
  3177. return listMonthsImpl(format, index, 'monthsShort');
  3178. }
  3179. function lists__listWeekdays (localeSorted, format, index) {
  3180. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  3181. }
  3182. function lists__listWeekdaysShort (localeSorted, format, index) {
  3183. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  3184. }
  3185. function lists__listWeekdaysMin (localeSorted, format, index) {
  3186. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  3187. }
  3188. locale_locales__getSetGlobalLocale('en', {
  3189. ordinalParse: /\d{1,2}(th|st|nd|rd)/,
  3190. ordinal : function (number) {
  3191. var b = number % 10,
  3192. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  3193. (b === 1) ? 'st' :
  3194. (b === 2) ? 'nd' :
  3195. (b === 3) ? 'rd' : 'th';
  3196. return number + output;
  3197. }
  3198. });
  3199. // Side effect imports
  3200. utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);
  3201. utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);
  3202. var mathAbs = Math.abs;
  3203. function duration_abs__abs () {
  3204. var data = this._data;
  3205. this._milliseconds = mathAbs(this._milliseconds);
  3206. this._days = mathAbs(this._days);
  3207. this._months = mathAbs(this._months);
  3208. data.milliseconds = mathAbs(data.milliseconds);
  3209. data.seconds = mathAbs(data.seconds);
  3210. data.minutes = mathAbs(data.minutes);
  3211. data.hours = mathAbs(data.hours);
  3212. data.months = mathAbs(data.months);
  3213. data.years = mathAbs(data.years);
  3214. return this;
  3215. }
  3216. function duration_add_subtract__addSubtract (duration, input, value, direction) {
  3217. var other = create__createDuration(input, value);
  3218. duration._milliseconds += direction * other._milliseconds;
  3219. duration._days += direction * other._days;
  3220. duration._months += direction * other._months;
  3221. return duration._bubble();
  3222. }
  3223. // supports only 2.0-style add(1, 's') or add(duration)
  3224. function duration_add_subtract__add (input, value) {
  3225. return duration_add_subtract__addSubtract(this, input, value, 1);
  3226. }
  3227. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  3228. function duration_add_subtract__subtract (input, value) {
  3229. return duration_add_subtract__addSubtract(this, input, value, -1);
  3230. }
  3231. function absCeil (number) {
  3232. if (number < 0) {
  3233. return Math.floor(number);
  3234. } else {
  3235. return Math.ceil(number);
  3236. }
  3237. }
  3238. function bubble () {
  3239. var milliseconds = this._milliseconds;
  3240. var days = this._days;
  3241. var months = this._months;
  3242. var data = this._data;
  3243. var seconds, minutes, hours, years, monthsFromDays;
  3244. // if we have a mix of positive and negative values, bubble down first
  3245. // check: https://github.com/moment/moment/issues/2166
  3246. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  3247. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  3248. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  3249. days = 0;
  3250. months = 0;
  3251. }
  3252. // The following code bubbles up values, see the tests for
  3253. // examples of what that means.
  3254. data.milliseconds = milliseconds % 1000;
  3255. seconds = absFloor(milliseconds / 1000);
  3256. data.seconds = seconds % 60;
  3257. minutes = absFloor(seconds / 60);
  3258. data.minutes = minutes % 60;
  3259. hours = absFloor(minutes / 60);
  3260. data.hours = hours % 24;
  3261. days += absFloor(hours / 24);
  3262. // convert days to months
  3263. monthsFromDays = absFloor(daysToMonths(days));
  3264. months += monthsFromDays;
  3265. days -= absCeil(monthsToDays(monthsFromDays));
  3266. // 12 months -> 1 year
  3267. years = absFloor(months / 12);
  3268. months %= 12;
  3269. data.days = days;
  3270. data.months = months;
  3271. data.years = years;
  3272. return this;
  3273. }
  3274. function daysToMonths (days) {
  3275. // 400 years have 146097 days (taking into account leap year rules)
  3276. // 400 years have 12 months === 4800
  3277. return days * 4800 / 146097;
  3278. }
  3279. function monthsToDays (months) {
  3280. // the reverse of daysToMonths
  3281. return months * 146097 / 4800;
  3282. }
  3283. function as (units) {
  3284. var days;
  3285. var months;
  3286. var milliseconds = this._milliseconds;
  3287. units = normalizeUnits(units);
  3288. if (units === 'month' || units === 'year') {
  3289. days = this._days + milliseconds / 864e5;
  3290. months = this._months + daysToMonths(days);
  3291. return units === 'month' ? months : months / 12;
  3292. } else {
  3293. // handle milliseconds separately because of floating point math errors (issue #1867)
  3294. days = this._days + Math.round(monthsToDays(this._months));
  3295. switch (units) {
  3296. case 'week' : return days / 7 + milliseconds / 6048e5;
  3297. case 'day' : return days + milliseconds / 864e5;
  3298. case 'hour' : return days * 24 + milliseconds / 36e5;
  3299. case 'minute' : return days * 1440 + milliseconds / 6e4;
  3300. case 'second' : return days * 86400 + milliseconds / 1000;
  3301. // Math.floor prevents floating point math errors here
  3302. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  3303. default: throw new Error('Unknown unit ' + units);
  3304. }
  3305. }
  3306. }
  3307. // TODO: Use this.as('ms')?
  3308. function duration_as__valueOf () {
  3309. return (
  3310. this._milliseconds +
  3311. this._days * 864e5 +
  3312. (this._months % 12) * 2592e6 +
  3313. toInt(this._months / 12) * 31536e6
  3314. );
  3315. }
  3316. function makeAs (alias) {
  3317. return function () {
  3318. return this.as(alias);
  3319. };
  3320. }
  3321. var asMilliseconds = makeAs('ms');
  3322. var asSeconds = makeAs('s');
  3323. var asMinutes = makeAs('m');
  3324. var asHours = makeAs('h');
  3325. var asDays = makeAs('d');
  3326. var asWeeks = makeAs('w');
  3327. var asMonths = makeAs('M');
  3328. var asYears = makeAs('y');
  3329. function duration_get__get (units) {
  3330. units = normalizeUnits(units);
  3331. return this[units + 's']();
  3332. }
  3333. function makeGetter(name) {
  3334. return function () {
  3335. return this._data[name];
  3336. };
  3337. }
  3338. var milliseconds = makeGetter('milliseconds');
  3339. var seconds = makeGetter('seconds');
  3340. var minutes = makeGetter('minutes');
  3341. var hours = makeGetter('hours');
  3342. var days = makeGetter('days');
  3343. var duration_get__months = makeGetter('months');
  3344. var years = makeGetter('years');
  3345. function weeks () {
  3346. return absFloor(this.days() / 7);
  3347. }
  3348. var round = Math.round;
  3349. var thresholds = {
  3350. s: 45, // seconds to minute
  3351. m: 45, // minutes to hour
  3352. h: 22, // hours to day
  3353. d: 26, // days to month
  3354. M: 11 // months to year
  3355. };
  3356. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  3357. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  3358. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  3359. }
  3360. function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {
  3361. var duration = create__createDuration(posNegDuration).abs();
  3362. var seconds = round(duration.as('s'));
  3363. var minutes = round(duration.as('m'));
  3364. var hours = round(duration.as('h'));
  3365. var days = round(duration.as('d'));
  3366. var months = round(duration.as('M'));
  3367. var years = round(duration.as('y'));
  3368. var a = seconds < thresholds.s && ['s', seconds] ||
  3369. minutes <= 1 && ['m'] ||
  3370. minutes < thresholds.m && ['mm', minutes] ||
  3371. hours <= 1 && ['h'] ||
  3372. hours < thresholds.h && ['hh', hours] ||
  3373. days <= 1 && ['d'] ||
  3374. days < thresholds.d && ['dd', days] ||
  3375. months <= 1 && ['M'] ||
  3376. months < thresholds.M && ['MM', months] ||
  3377. years <= 1 && ['y'] || ['yy', years];
  3378. a[2] = withoutSuffix;
  3379. a[3] = +posNegDuration > 0;
  3380. a[4] = locale;
  3381. return substituteTimeAgo.apply(null, a);
  3382. }
  3383. // This function allows you to set the rounding function for relative time strings
  3384. function duration_humanize__getSetRelativeTimeRounding (roundingFunction) {
  3385. if (roundingFunction === undefined) {
  3386. return round;
  3387. }
  3388. if (typeof(roundingFunction) === 'function') {
  3389. round = roundingFunction;
  3390. return true;
  3391. }
  3392. return false;
  3393. }
  3394. // This function allows you to set a threshold for relative time strings
  3395. function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {
  3396. if (thresholds[threshold] === undefined) {
  3397. return false;
  3398. }
  3399. if (limit === undefined) {
  3400. return thresholds[threshold];
  3401. }
  3402. thresholds[threshold] = limit;
  3403. return true;
  3404. }
  3405. function humanize (withSuffix) {
  3406. var locale = this.localeData();
  3407. var output = duration_humanize__relativeTime(this, !withSuffix, locale);
  3408. if (withSuffix) {
  3409. output = locale.pastFuture(+this, output);
  3410. }
  3411. return locale.postformat(output);
  3412. }
  3413. var iso_string__abs = Math.abs;
  3414. function iso_string__toISOString() {
  3415. // for ISO strings we do not use the normal bubbling rules:
  3416. // * milliseconds bubble up until they become hours
  3417. // * days do not bubble at all
  3418. // * months bubble up until they become years
  3419. // This is because there is no context-free conversion between hours and days
  3420. // (think of clock changes)
  3421. // and also not between days and months (28-31 days per month)
  3422. var seconds = iso_string__abs(this._milliseconds) / 1000;
  3423. var days = iso_string__abs(this._days);
  3424. var months = iso_string__abs(this._months);
  3425. var minutes, hours, years;
  3426. // 3600 seconds -> 60 minutes -> 1 hour
  3427. minutes = absFloor(seconds / 60);
  3428. hours = absFloor(minutes / 60);
  3429. seconds %= 60;
  3430. minutes %= 60;
  3431. // 12 months -> 1 year
  3432. years = absFloor(months / 12);
  3433. months %= 12;
  3434. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  3435. var Y = years;
  3436. var M = months;
  3437. var D = days;
  3438. var h = hours;
  3439. var m = minutes;
  3440. var s = seconds;
  3441. var total = this.asSeconds();
  3442. if (!total) {
  3443. // this is the same as C#'s (Noda) and python (isodate)...
  3444. // but not other JS (goog.date)
  3445. return 'P0D';
  3446. }
  3447. return (total < 0 ? '-' : '') +
  3448. 'P' +
  3449. (Y ? Y + 'Y' : '') +
  3450. (M ? M + 'M' : '') +
  3451. (D ? D + 'D' : '') +
  3452. ((h || m || s) ? 'T' : '') +
  3453. (h ? h + 'H' : '') +
  3454. (m ? m + 'M' : '') +
  3455. (s ? s + 'S' : '');
  3456. }
  3457. var duration_prototype__proto = Duration.prototype;
  3458. duration_prototype__proto.abs = duration_abs__abs;
  3459. duration_prototype__proto.add = duration_add_subtract__add;
  3460. duration_prototype__proto.subtract = duration_add_subtract__subtract;
  3461. duration_prototype__proto.as = as;
  3462. duration_prototype__proto.asMilliseconds = asMilliseconds;
  3463. duration_prototype__proto.asSeconds = asSeconds;
  3464. duration_prototype__proto.asMinutes = asMinutes;
  3465. duration_prototype__proto.asHours = asHours;
  3466. duration_prototype__proto.asDays = asDays;
  3467. duration_prototype__proto.asWeeks = asWeeks;
  3468. duration_prototype__proto.asMonths = asMonths;
  3469. duration_prototype__proto.asYears = asYears;
  3470. duration_prototype__proto.valueOf = duration_as__valueOf;
  3471. duration_prototype__proto._bubble = bubble;
  3472. duration_prototype__proto.get = duration_get__get;
  3473. duration_prototype__proto.milliseconds = milliseconds;
  3474. duration_prototype__proto.seconds = seconds;
  3475. duration_prototype__proto.minutes = minutes;
  3476. duration_prototype__proto.hours = hours;
  3477. duration_prototype__proto.days = days;
  3478. duration_prototype__proto.weeks = weeks;
  3479. duration_prototype__proto.months = duration_get__months;
  3480. duration_prototype__proto.years = years;
  3481. duration_prototype__proto.humanize = humanize;
  3482. duration_prototype__proto.toISOString = iso_string__toISOString;
  3483. duration_prototype__proto.toString = iso_string__toISOString;
  3484. duration_prototype__proto.toJSON = iso_string__toISOString;
  3485. duration_prototype__proto.locale = locale;
  3486. duration_prototype__proto.localeData = localeData;
  3487. // Deprecations
  3488. duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);
  3489. duration_prototype__proto.lang = lang;
  3490. // Side effect imports
  3491. // FORMATTING
  3492. addFormatToken('X', 0, 0, 'unix');
  3493. addFormatToken('x', 0, 0, 'valueOf');
  3494. // PARSING
  3495. addRegexToken('x', matchSigned);
  3496. addRegexToken('X', matchTimestamp);
  3497. addParseToken('X', function (input, array, config) {
  3498. config._d = new Date(parseFloat(input, 10) * 1000);
  3499. });
  3500. addParseToken('x', function (input, array, config) {
  3501. config._d = new Date(toInt(input));
  3502. });
  3503. // Side effect imports
  3504. ;
  3505. utils_hooks__hooks.version = '2.15.1';
  3506. setHookCallback(local__createLocal);
  3507. utils_hooks__hooks.fn = momentPrototype;
  3508. utils_hooks__hooks.min = min;
  3509. utils_hooks__hooks.max = max;
  3510. utils_hooks__hooks.now = now;
  3511. utils_hooks__hooks.utc = create_utc__createUTC;
  3512. utils_hooks__hooks.unix = moment_moment__createUnix;
  3513. utils_hooks__hooks.months = lists__listMonths;
  3514. utils_hooks__hooks.isDate = isDate;
  3515. utils_hooks__hooks.locale = locale_locales__getSetGlobalLocale;
  3516. utils_hooks__hooks.invalid = valid__createInvalid;
  3517. utils_hooks__hooks.duration = create__createDuration;
  3518. utils_hooks__hooks.isMoment = isMoment;
  3519. utils_hooks__hooks.weekdays = lists__listWeekdays;
  3520. utils_hooks__hooks.parseZone = moment_moment__createInZone;
  3521. utils_hooks__hooks.localeData = locale_locales__getLocale;
  3522. utils_hooks__hooks.isDuration = isDuration;
  3523. utils_hooks__hooks.monthsShort = lists__listMonthsShort;
  3524. utils_hooks__hooks.weekdaysMin = lists__listWeekdaysMin;
  3525. utils_hooks__hooks.defineLocale = defineLocale;
  3526. utils_hooks__hooks.updateLocale = updateLocale;
  3527. utils_hooks__hooks.locales = locale_locales__listLocales;
  3528. utils_hooks__hooks.weekdaysShort = lists__listWeekdaysShort;
  3529. utils_hooks__hooks.normalizeUnits = normalizeUnits;
  3530. utils_hooks__hooks.relativeTimeRounding = duration_humanize__getSetRelativeTimeRounding;
  3531. utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;
  3532. utils_hooks__hooks.calendarFormat = getCalendarFormat;
  3533. utils_hooks__hooks.prototype = momentPrototype;
  3534. var moment__default = utils_hooks__hooks;
  3535. var af = moment__default.defineLocale('af', {
  3536. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  3537. monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  3538. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  3539. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  3540. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  3541. meridiemParse: /vm|nm/i,
  3542. isPM : function (input) {
  3543. return /^nm$/i.test(input);
  3544. },
  3545. meridiem : function (hours, minutes, isLower) {
  3546. if (hours < 12) {
  3547. return isLower ? 'vm' : 'VM';
  3548. } else {
  3549. return isLower ? 'nm' : 'NM';
  3550. }
  3551. },
  3552. longDateFormat : {
  3553. LT : 'HH:mm',
  3554. LTS : 'HH:mm:ss',
  3555. L : 'DD/MM/YYYY',
  3556. LL : 'D MMMM YYYY',
  3557. LLL : 'D MMMM YYYY HH:mm',
  3558. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3559. },
  3560. calendar : {
  3561. sameDay : '[Vandag om] LT',
  3562. nextDay : '[Môre om] LT',
  3563. nextWeek : 'dddd [om] LT',
  3564. lastDay : '[Gister om] LT',
  3565. lastWeek : '[Laas] dddd [om] LT',
  3566. sameElse : 'L'
  3567. },
  3568. relativeTime : {
  3569. future : 'oor %s',
  3570. past : '%s gelede',
  3571. s : '\'n paar sekondes',
  3572. m : '\'n minuut',
  3573. mm : '%d minute',
  3574. h : '\'n uur',
  3575. hh : '%d ure',
  3576. d : '\'n dag',
  3577. dd : '%d dae',
  3578. M : '\'n maand',
  3579. MM : '%d maande',
  3580. y : '\'n jaar',
  3581. yy : '%d jaar'
  3582. },
  3583. ordinalParse: /\d{1,2}(ste|de)/,
  3584. ordinal : function (number) {
  3585. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  3586. },
  3587. week : {
  3588. dow : 1, // Maandag is die eerste dag van die week.
  3589. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  3590. }
  3591. });
  3592. var ar_ly__symbolMap = {
  3593. '1': '1',
  3594. '2': '2',
  3595. '3': '3',
  3596. '4': '4',
  3597. '5': '5',
  3598. '6': '6',
  3599. '7': '7',
  3600. '8': '8',
  3601. '9': '9',
  3602. '0': '0'
  3603. }, ar_ly__pluralForm = function (n) {
  3604. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  3605. }, ar_ly__plurals = {
  3606. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  3607. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  3608. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  3609. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  3610. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  3611. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  3612. }, ar_ly__pluralize = function (u) {
  3613. return function (number, withoutSuffix, string, isFuture) {
  3614. var f = ar_ly__pluralForm(number),
  3615. str = ar_ly__plurals[u][ar_ly__pluralForm(number)];
  3616. if (f === 2) {
  3617. str = str[withoutSuffix ? 0 : 1];
  3618. }
  3619. return str.replace(/%d/i, number);
  3620. };
  3621. }, ar_ly__months = [
  3622. 'يناير',
  3623. 'فبراير',
  3624. 'مارس',
  3625. 'أبريل',
  3626. 'مايو',
  3627. 'يونيو',
  3628. 'يوليو',
  3629. 'أغسطس',
  3630. 'سبتمبر',
  3631. 'أكتوبر',
  3632. 'نوفمبر',
  3633. 'ديسمبر'
  3634. ];
  3635. var ar_ly = moment__default.defineLocale('ar-ly', {
  3636. months : ar_ly__months,
  3637. monthsShort : ar_ly__months,
  3638. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3639. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3640. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3641. weekdaysParseExact : true,
  3642. longDateFormat : {
  3643. LT : 'HH:mm',
  3644. LTS : 'HH:mm:ss',
  3645. L : 'D/\u200FM/\u200FYYYY',
  3646. LL : 'D MMMM YYYY',
  3647. LLL : 'D MMMM YYYY HH:mm',
  3648. LLLL : 'dddd D MMMM YYYY HH:mm'
  3649. },
  3650. meridiemParse: /ص|م/,
  3651. isPM : function (input) {
  3652. return 'م' === input;
  3653. },
  3654. meridiem : function (hour, minute, isLower) {
  3655. if (hour < 12) {
  3656. return 'ص';
  3657. } else {
  3658. return 'م';
  3659. }
  3660. },
  3661. calendar : {
  3662. sameDay: '[اليوم عند الساعة] LT',
  3663. nextDay: '[غدًا عند الساعة] LT',
  3664. nextWeek: 'dddd [عند الساعة] LT',
  3665. lastDay: '[أمس عند الساعة] LT',
  3666. lastWeek: 'dddd [عند الساعة] LT',
  3667. sameElse: 'L'
  3668. },
  3669. relativeTime : {
  3670. future : 'بعد %s',
  3671. past : 'منذ %s',
  3672. s : ar_ly__pluralize('s'),
  3673. m : ar_ly__pluralize('m'),
  3674. mm : ar_ly__pluralize('m'),
  3675. h : ar_ly__pluralize('h'),
  3676. hh : ar_ly__pluralize('h'),
  3677. d : ar_ly__pluralize('d'),
  3678. dd : ar_ly__pluralize('d'),
  3679. M : ar_ly__pluralize('M'),
  3680. MM : ar_ly__pluralize('M'),
  3681. y : ar_ly__pluralize('y'),
  3682. yy : ar_ly__pluralize('y')
  3683. },
  3684. preparse: function (string) {
  3685. return string.replace(/\u200f/g, '').replace(/،/g, ',');
  3686. },
  3687. postformat: function (string) {
  3688. return string.replace(/\d/g, function (match) {
  3689. return ar_ly__symbolMap[match];
  3690. }).replace(/,/g, '،');
  3691. },
  3692. week : {
  3693. dow : 6, // Saturday is the first day of the week.
  3694. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3695. }
  3696. });
  3697. var ar_ma = moment__default.defineLocale('ar-ma', {
  3698. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3699. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3700. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3701. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3702. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3703. weekdaysParseExact : true,
  3704. longDateFormat : {
  3705. LT : 'HH:mm',
  3706. LTS : 'HH:mm:ss',
  3707. L : 'DD/MM/YYYY',
  3708. LL : 'D MMMM YYYY',
  3709. LLL : 'D MMMM YYYY HH:mm',
  3710. LLLL : 'dddd D MMMM YYYY HH:mm'
  3711. },
  3712. calendar : {
  3713. sameDay: '[اليوم على الساعة] LT',
  3714. nextDay: '[غدا على الساعة] LT',
  3715. nextWeek: 'dddd [على الساعة] LT',
  3716. lastDay: '[أمس على الساعة] LT',
  3717. lastWeek: 'dddd [على الساعة] LT',
  3718. sameElse: 'L'
  3719. },
  3720. relativeTime : {
  3721. future : 'في %s',
  3722. past : 'منذ %s',
  3723. s : 'ثوان',
  3724. m : 'دقيقة',
  3725. mm : '%d دقائق',
  3726. h : 'ساعة',
  3727. hh : '%d ساعات',
  3728. d : 'يوم',
  3729. dd : '%d أيام',
  3730. M : 'شهر',
  3731. MM : '%d أشهر',
  3732. y : 'سنة',
  3733. yy : '%d سنوات'
  3734. },
  3735. week : {
  3736. dow : 6, // Saturday is the first day of the week.
  3737. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3738. }
  3739. });
  3740. var ar_sa__symbolMap = {
  3741. '1': '١',
  3742. '2': '٢',
  3743. '3': '٣',
  3744. '4': '٤',
  3745. '5': '٥',
  3746. '6': '٦',
  3747. '7': '٧',
  3748. '8': '٨',
  3749. '9': '٩',
  3750. '0': '٠'
  3751. }, ar_sa__numberMap = {
  3752. '١': '1',
  3753. '٢': '2',
  3754. '٣': '3',
  3755. '٤': '4',
  3756. '٥': '5',
  3757. '٦': '6',
  3758. '٧': '7',
  3759. '٨': '8',
  3760. '٩': '9',
  3761. '٠': '0'
  3762. };
  3763. var ar_sa = moment__default.defineLocale('ar-sa', {
  3764. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3765. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3766. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3767. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3768. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3769. weekdaysParseExact : true,
  3770. longDateFormat : {
  3771. LT : 'HH:mm',
  3772. LTS : 'HH:mm:ss',
  3773. L : 'DD/MM/YYYY',
  3774. LL : 'D MMMM YYYY',
  3775. LLL : 'D MMMM YYYY HH:mm',
  3776. LLLL : 'dddd D MMMM YYYY HH:mm'
  3777. },
  3778. meridiemParse: /ص|م/,
  3779. isPM : function (input) {
  3780. return 'م' === input;
  3781. },
  3782. meridiem : function (hour, minute, isLower) {
  3783. if (hour < 12) {
  3784. return 'ص';
  3785. } else {
  3786. return 'م';
  3787. }
  3788. },
  3789. calendar : {
  3790. sameDay: '[اليوم على الساعة] LT',
  3791. nextDay: '[غدا على الساعة] LT',
  3792. nextWeek: 'dddd [على الساعة] LT',
  3793. lastDay: '[أمس على الساعة] LT',
  3794. lastWeek: 'dddd [على الساعة] LT',
  3795. sameElse: 'L'
  3796. },
  3797. relativeTime : {
  3798. future : 'في %s',
  3799. past : 'منذ %s',
  3800. s : 'ثوان',
  3801. m : 'دقيقة',
  3802. mm : '%d دقائق',
  3803. h : 'ساعة',
  3804. hh : '%d ساعات',
  3805. d : 'يوم',
  3806. dd : '%d أيام',
  3807. M : 'شهر',
  3808. MM : '%d أشهر',
  3809. y : 'سنة',
  3810. yy : '%d سنوات'
  3811. },
  3812. preparse: function (string) {
  3813. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  3814. return ar_sa__numberMap[match];
  3815. }).replace(/،/g, ',');
  3816. },
  3817. postformat: function (string) {
  3818. return string.replace(/\d/g, function (match) {
  3819. return ar_sa__symbolMap[match];
  3820. }).replace(/,/g, '،');
  3821. },
  3822. week : {
  3823. dow : 6, // Saturday is the first day of the week.
  3824. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3825. }
  3826. });
  3827. var ar_tn = moment__default.defineLocale('ar-tn', {
  3828. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3829. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3830. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3831. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3832. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3833. weekdaysParseExact : true,
  3834. longDateFormat: {
  3835. LT: 'HH:mm',
  3836. LTS: 'HH:mm:ss',
  3837. L: 'DD/MM/YYYY',
  3838. LL: 'D MMMM YYYY',
  3839. LLL: 'D MMMM YYYY HH:mm',
  3840. LLLL: 'dddd D MMMM YYYY HH:mm'
  3841. },
  3842. calendar: {
  3843. sameDay: '[اليوم على الساعة] LT',
  3844. nextDay: '[غدا على الساعة] LT',
  3845. nextWeek: 'dddd [على الساعة] LT',
  3846. lastDay: '[أمس على الساعة] LT',
  3847. lastWeek: 'dddd [على الساعة] LT',
  3848. sameElse: 'L'
  3849. },
  3850. relativeTime: {
  3851. future: 'في %s',
  3852. past: 'منذ %s',
  3853. s: 'ثوان',
  3854. m: 'دقيقة',
  3855. mm: '%d دقائق',
  3856. h: 'ساعة',
  3857. hh: '%d ساعات',
  3858. d: 'يوم',
  3859. dd: '%d أيام',
  3860. M: 'شهر',
  3861. MM: '%d أشهر',
  3862. y: 'سنة',
  3863. yy: '%d سنوات'
  3864. },
  3865. week: {
  3866. dow: 1, // Monday is the first day of the week.
  3867. doy: 4 // The week that contains Jan 4th is the first week of the year.
  3868. }
  3869. });
  3870. var ar__symbolMap = {
  3871. '1': '١',
  3872. '2': '٢',
  3873. '3': '٣',
  3874. '4': '٤',
  3875. '5': '٥',
  3876. '6': '٦',
  3877. '7': '٧',
  3878. '8': '٨',
  3879. '9': '٩',
  3880. '0': '٠'
  3881. }, ar__numberMap = {
  3882. '١': '1',
  3883. '٢': '2',
  3884. '٣': '3',
  3885. '٤': '4',
  3886. '٥': '5',
  3887. '٦': '6',
  3888. '٧': '7',
  3889. '٨': '8',
  3890. '٩': '9',
  3891. '٠': '0'
  3892. }, ar__pluralForm = function (n) {
  3893. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  3894. }, ar__plurals = {
  3895. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  3896. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  3897. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  3898. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  3899. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  3900. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  3901. }, ar__pluralize = function (u) {
  3902. return function (number, withoutSuffix, string, isFuture) {
  3903. var f = ar__pluralForm(number),
  3904. str = ar__plurals[u][ar__pluralForm(number)];
  3905. if (f === 2) {
  3906. str = str[withoutSuffix ? 0 : 1];
  3907. }
  3908. return str.replace(/%d/i, number);
  3909. };
  3910. }, ar__months = [
  3911. 'كانون الثاني يناير',
  3912. 'شباط فبراير',
  3913. 'آذار مارس',
  3914. 'نيسان أبريل',
  3915. 'أيار مايو',
  3916. 'حزيران يونيو',
  3917. 'تموز يوليو',
  3918. 'آب أغسطس',
  3919. 'أيلول سبتمبر',
  3920. 'تشرين الأول أكتوبر',
  3921. 'تشرين الثاني نوفمبر',
  3922. 'كانون الأول ديسمبر'
  3923. ];
  3924. var ar = moment__default.defineLocale('ar', {
  3925. months : ar__months,
  3926. monthsShort : ar__months,
  3927. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3928. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3929. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3930. weekdaysParseExact : true,
  3931. longDateFormat : {
  3932. LT : 'HH:mm',
  3933. LTS : 'HH:mm:ss',
  3934. L : 'D/\u200FM/\u200FYYYY',
  3935. LL : 'D MMMM YYYY',
  3936. LLL : 'D MMMM YYYY HH:mm',
  3937. LLLL : 'dddd D MMMM YYYY HH:mm'
  3938. },
  3939. meridiemParse: /ص|م/,
  3940. isPM : function (input) {
  3941. return 'م' === input;
  3942. },
  3943. meridiem : function (hour, minute, isLower) {
  3944. if (hour < 12) {
  3945. return 'ص';
  3946. } else {
  3947. return 'م';
  3948. }
  3949. },
  3950. calendar : {
  3951. sameDay: '[اليوم عند الساعة] LT',
  3952. nextDay: '[غدًا عند الساعة] LT',
  3953. nextWeek: 'dddd [عند الساعة] LT',
  3954. lastDay: '[أمس عند الساعة] LT',
  3955. lastWeek: 'dddd [عند الساعة] LT',
  3956. sameElse: 'L'
  3957. },
  3958. relativeTime : {
  3959. future : 'بعد %s',
  3960. past : 'منذ %s',
  3961. s : ar__pluralize('s'),
  3962. m : ar__pluralize('m'),
  3963. mm : ar__pluralize('m'),
  3964. h : ar__pluralize('h'),
  3965. hh : ar__pluralize('h'),
  3966. d : ar__pluralize('d'),
  3967. dd : ar__pluralize('d'),
  3968. M : ar__pluralize('M'),
  3969. MM : ar__pluralize('M'),
  3970. y : ar__pluralize('y'),
  3971. yy : ar__pluralize('y')
  3972. },
  3973. preparse: function (string) {
  3974. return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  3975. return ar__numberMap[match];
  3976. }).replace(/،/g, ',');
  3977. },
  3978. postformat: function (string) {
  3979. return string.replace(/\d/g, function (match) {
  3980. return ar__symbolMap[match];
  3981. }).replace(/,/g, '،');
  3982. },
  3983. week : {
  3984. dow : 6, // Saturday is the first day of the week.
  3985. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3986. }
  3987. });
  3988. var az__suffixes = {
  3989. 1: '-inci',
  3990. 5: '-inci',
  3991. 8: '-inci',
  3992. 70: '-inci',
  3993. 80: '-inci',
  3994. 2: '-nci',
  3995. 7: '-nci',
  3996. 20: '-nci',
  3997. 50: '-nci',
  3998. 3: '-üncü',
  3999. 4: '-üncü',
  4000. 100: '-üncü',
  4001. 6: '-ncı',
  4002. 9: '-uncu',
  4003. 10: '-uncu',
  4004. 30: '-uncu',
  4005. 60: '-ıncı',
  4006. 90: '-ıncı'
  4007. };
  4008. var az = moment__default.defineLocale('az', {
  4009. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  4010. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  4011. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  4012. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  4013. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  4014. weekdaysParseExact : true,
  4015. longDateFormat : {
  4016. LT : 'HH:mm',
  4017. LTS : 'HH:mm:ss',
  4018. L : 'DD.MM.YYYY',
  4019. LL : 'D MMMM YYYY',
  4020. LLL : 'D MMMM YYYY HH:mm',
  4021. LLLL : 'dddd, D MMMM YYYY HH:mm'
  4022. },
  4023. calendar : {
  4024. sameDay : '[bugün saat] LT',
  4025. nextDay : '[sabah saat] LT',
  4026. nextWeek : '[gələn həftə] dddd [saat] LT',
  4027. lastDay : '[dünən] LT',
  4028. lastWeek : '[keçən həftə] dddd [saat] LT',
  4029. sameElse : 'L'
  4030. },
  4031. relativeTime : {
  4032. future : '%s sonra',
  4033. past : '%s əvvəl',
  4034. s : 'birneçə saniyyə',
  4035. m : 'bir dəqiqə',
  4036. mm : '%d dəqiqə',
  4037. h : 'bir saat',
  4038. hh : '%d saat',
  4039. d : 'bir gün',
  4040. dd : '%d gün',
  4041. M : 'bir ay',
  4042. MM : '%d ay',
  4043. y : 'bir il',
  4044. yy : '%d il'
  4045. },
  4046. meridiemParse: /gecə|səhər|gündüz|axşam/,
  4047. isPM : function (input) {
  4048. return /^(gündüz|axşam)$/.test(input);
  4049. },
  4050. meridiem : function (hour, minute, isLower) {
  4051. if (hour < 4) {
  4052. return 'gecə';
  4053. } else if (hour < 12) {
  4054. return 'səhər';
  4055. } else if (hour < 17) {
  4056. return 'gündüz';
  4057. } else {
  4058. return 'axşam';
  4059. }
  4060. },
  4061. ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  4062. ordinal : function (number) {
  4063. if (number === 0) { // special case for zero
  4064. return number + '-ıncı';
  4065. }
  4066. var a = number % 10,
  4067. b = number % 100 - a,
  4068. c = number >= 100 ? 100 : null;
  4069. return number + (az__suffixes[a] || az__suffixes[b] || az__suffixes[c]);
  4070. },
  4071. week : {
  4072. dow : 1, // Monday is the first day of the week.
  4073. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4074. }
  4075. });
  4076. function be__plural(word, num) {
  4077. var forms = word.split('_');
  4078. 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]);
  4079. }
  4080. function be__relativeTimeWithPlural(number, withoutSuffix, key) {
  4081. var format = {
  4082. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  4083. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  4084. 'dd': 'дзень_дні_дзён',
  4085. 'MM': 'месяц_месяцы_месяцаў',
  4086. 'yy': 'год_гады_гадоў'
  4087. };
  4088. if (key === 'm') {
  4089. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  4090. }
  4091. else if (key === 'h') {
  4092. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  4093. }
  4094. else {
  4095. return number + ' ' + be__plural(format[key], +number);
  4096. }
  4097. }
  4098. var be = moment__default.defineLocale('be', {
  4099. months : {
  4100. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  4101. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  4102. },
  4103. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  4104. weekdays : {
  4105. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  4106. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  4107. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  4108. },
  4109. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4110. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4111. longDateFormat : {
  4112. LT : 'HH:mm',
  4113. LTS : 'HH:mm:ss',
  4114. L : 'DD.MM.YYYY',
  4115. LL : 'D MMMM YYYY г.',
  4116. LLL : 'D MMMM YYYY г., HH:mm',
  4117. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  4118. },
  4119. calendar : {
  4120. sameDay: '[Сёння ў] LT',
  4121. nextDay: '[Заўтра ў] LT',
  4122. lastDay: '[Учора ў] LT',
  4123. nextWeek: function () {
  4124. return '[У] dddd [ў] LT';
  4125. },
  4126. lastWeek: function () {
  4127. switch (this.day()) {
  4128. case 0:
  4129. case 3:
  4130. case 5:
  4131. case 6:
  4132. return '[У мінулую] dddd [ў] LT';
  4133. case 1:
  4134. case 2:
  4135. case 4:
  4136. return '[У мінулы] dddd [ў] LT';
  4137. }
  4138. },
  4139. sameElse: 'L'
  4140. },
  4141. relativeTime : {
  4142. future : 'праз %s',
  4143. past : '%s таму',
  4144. s : 'некалькі секунд',
  4145. m : be__relativeTimeWithPlural,
  4146. mm : be__relativeTimeWithPlural,
  4147. h : be__relativeTimeWithPlural,
  4148. hh : be__relativeTimeWithPlural,
  4149. d : 'дзень',
  4150. dd : be__relativeTimeWithPlural,
  4151. M : 'месяц',
  4152. MM : be__relativeTimeWithPlural,
  4153. y : 'год',
  4154. yy : be__relativeTimeWithPlural
  4155. },
  4156. meridiemParse: /ночы|раніцы|дня|вечара/,
  4157. isPM : function (input) {
  4158. return /^(дня|вечара)$/.test(input);
  4159. },
  4160. meridiem : function (hour, minute, isLower) {
  4161. if (hour < 4) {
  4162. return 'ночы';
  4163. } else if (hour < 12) {
  4164. return 'раніцы';
  4165. } else if (hour < 17) {
  4166. return 'дня';
  4167. } else {
  4168. return 'вечара';
  4169. }
  4170. },
  4171. ordinalParse: /\d{1,2}-(і|ы|га)/,
  4172. ordinal: function (number, period) {
  4173. switch (period) {
  4174. case 'M':
  4175. case 'd':
  4176. case 'DDD':
  4177. case 'w':
  4178. case 'W':
  4179. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  4180. case 'D':
  4181. return number + '-га';
  4182. default:
  4183. return number;
  4184. }
  4185. },
  4186. week : {
  4187. dow : 1, // Monday is the first day of the week.
  4188. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4189. }
  4190. });
  4191. var bg = moment__default.defineLocale('bg', {
  4192. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  4193. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  4194. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  4195. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  4196. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  4197. longDateFormat : {
  4198. LT : 'H:mm',
  4199. LTS : 'H:mm:ss',
  4200. L : 'D.MM.YYYY',
  4201. LL : 'D MMMM YYYY',
  4202. LLL : 'D MMMM YYYY H:mm',
  4203. LLLL : 'dddd, D MMMM YYYY H:mm'
  4204. },
  4205. calendar : {
  4206. sameDay : '[Днес в] LT',
  4207. nextDay : '[Утре в] LT',
  4208. nextWeek : 'dddd [в] LT',
  4209. lastDay : '[Вчера в] LT',
  4210. lastWeek : function () {
  4211. switch (this.day()) {
  4212. case 0:
  4213. case 3:
  4214. case 6:
  4215. return '[В изминалата] dddd [в] LT';
  4216. case 1:
  4217. case 2:
  4218. case 4:
  4219. case 5:
  4220. return '[В изминалия] dddd [в] LT';
  4221. }
  4222. },
  4223. sameElse : 'L'
  4224. },
  4225. relativeTime : {
  4226. future : 'след %s',
  4227. past : 'преди %s',
  4228. s : 'няколко секунди',
  4229. m : 'минута',
  4230. mm : '%d минути',
  4231. h : 'час',
  4232. hh : '%d часа',
  4233. d : 'ден',
  4234. dd : '%d дни',
  4235. M : 'месец',
  4236. MM : '%d месеца',
  4237. y : 'година',
  4238. yy : '%d години'
  4239. },
  4240. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  4241. ordinal : function (number) {
  4242. var lastDigit = number % 10,
  4243. last2Digits = number % 100;
  4244. if (number === 0) {
  4245. return number + '-ев';
  4246. } else if (last2Digits === 0) {
  4247. return number + '-ен';
  4248. } else if (last2Digits > 10 && last2Digits < 20) {
  4249. return number + '-ти';
  4250. } else if (lastDigit === 1) {
  4251. return number + '-ви';
  4252. } else if (lastDigit === 2) {
  4253. return number + '-ри';
  4254. } else if (lastDigit === 7 || lastDigit === 8) {
  4255. return number + '-ми';
  4256. } else {
  4257. return number + '-ти';
  4258. }
  4259. },
  4260. week : {
  4261. dow : 1, // Monday is the first day of the week.
  4262. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4263. }
  4264. });
  4265. var bn__symbolMap = {
  4266. '1': '১',
  4267. '2': '২',
  4268. '3': '৩',
  4269. '4': '৪',
  4270. '5': '৫',
  4271. '6': '৬',
  4272. '7': '৭',
  4273. '8': '৮',
  4274. '9': '৯',
  4275. '0': '০'
  4276. },
  4277. bn__numberMap = {
  4278. '১': '1',
  4279. '২': '2',
  4280. '৩': '3',
  4281. '৪': '4',
  4282. '৫': '5',
  4283. '৬': '6',
  4284. '৭': '7',
  4285. '৮': '8',
  4286. '৯': '9',
  4287. '০': '0'
  4288. };
  4289. var bn = moment__default.defineLocale('bn', {
  4290. months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  4291. monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  4292. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  4293. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  4294. weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
  4295. longDateFormat : {
  4296. LT : 'A h:mm সময়',
  4297. LTS : 'A h:mm:ss সময়',
  4298. L : 'DD/MM/YYYY',
  4299. LL : 'D MMMM YYYY',
  4300. LLL : 'D MMMM YYYY, A h:mm সময়',
  4301. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  4302. },
  4303. calendar : {
  4304. sameDay : '[আজ] LT',
  4305. nextDay : '[আগামীকাল] LT',
  4306. nextWeek : 'dddd, LT',
  4307. lastDay : '[গতকাল] LT',
  4308. lastWeek : '[গত] dddd, LT',
  4309. sameElse : 'L'
  4310. },
  4311. relativeTime : {
  4312. future : '%s পরে',
  4313. past : '%s আগে',
  4314. s : 'কয়েক সেকেন্ড',
  4315. m : 'এক মিনিট',
  4316. mm : '%d মিনিট',
  4317. h : 'এক ঘন্টা',
  4318. hh : '%d ঘন্টা',
  4319. d : 'এক দিন',
  4320. dd : '%d দিন',
  4321. M : 'এক মাস',
  4322. MM : '%d মাস',
  4323. y : 'এক বছর',
  4324. yy : '%d বছর'
  4325. },
  4326. preparse: function (string) {
  4327. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  4328. return bn__numberMap[match];
  4329. });
  4330. },
  4331. postformat: function (string) {
  4332. return string.replace(/\d/g, function (match) {
  4333. return bn__symbolMap[match];
  4334. });
  4335. },
  4336. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  4337. meridiemHour : function (hour, meridiem) {
  4338. if (hour === 12) {
  4339. hour = 0;
  4340. }
  4341. if ((meridiem === 'রাত' && hour >= 4) ||
  4342. (meridiem === 'দুপুর' && hour < 5) ||
  4343. meridiem === 'বিকাল') {
  4344. return hour + 12;
  4345. } else {
  4346. return hour;
  4347. }
  4348. },
  4349. meridiem : function (hour, minute, isLower) {
  4350. if (hour < 4) {
  4351. return 'রাত';
  4352. } else if (hour < 10) {
  4353. return 'সকাল';
  4354. } else if (hour < 17) {
  4355. return 'দুপুর';
  4356. } else if (hour < 20) {
  4357. return 'বিকাল';
  4358. } else {
  4359. return 'রাত';
  4360. }
  4361. },
  4362. week : {
  4363. dow : 0, // Sunday is the first day of the week.
  4364. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4365. }
  4366. });
  4367. var bo__symbolMap = {
  4368. '1': '༡',
  4369. '2': '༢',
  4370. '3': '༣',
  4371. '4': '༤',
  4372. '5': '༥',
  4373. '6': '༦',
  4374. '7': '༧',
  4375. '8': '༨',
  4376. '9': '༩',
  4377. '0': '༠'
  4378. },
  4379. bo__numberMap = {
  4380. '༡': '1',
  4381. '༢': '2',
  4382. '༣': '3',
  4383. '༤': '4',
  4384. '༥': '5',
  4385. '༦': '6',
  4386. '༧': '7',
  4387. '༨': '8',
  4388. '༩': '9',
  4389. '༠': '0'
  4390. };
  4391. var bo = moment__default.defineLocale('bo', {
  4392. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4393. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4394. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  4395. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4396. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4397. longDateFormat : {
  4398. LT : 'A h:mm',
  4399. LTS : 'A h:mm:ss',
  4400. L : 'DD/MM/YYYY',
  4401. LL : 'D MMMM YYYY',
  4402. LLL : 'D MMMM YYYY, A h:mm',
  4403. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  4404. },
  4405. calendar : {
  4406. sameDay : '[དི་རིང] LT',
  4407. nextDay : '[སང་ཉིན] LT',
  4408. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  4409. lastDay : '[ཁ་སང] LT',
  4410. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  4411. sameElse : 'L'
  4412. },
  4413. relativeTime : {
  4414. future : '%s ལ་',
  4415. past : '%s སྔན་ལ',
  4416. s : 'ལམ་སང',
  4417. m : 'སྐར་མ་གཅིག',
  4418. mm : '%d སྐར་མ',
  4419. h : 'ཆུ་ཚོད་གཅིག',
  4420. hh : '%d ཆུ་ཚོད',
  4421. d : 'ཉིན་གཅིག',
  4422. dd : '%d ཉིན་',
  4423. M : 'ཟླ་བ་གཅིག',
  4424. MM : '%d ཟླ་བ',
  4425. y : 'ལོ་གཅིག',
  4426. yy : '%d ལོ'
  4427. },
  4428. preparse: function (string) {
  4429. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  4430. return bo__numberMap[match];
  4431. });
  4432. },
  4433. postformat: function (string) {
  4434. return string.replace(/\d/g, function (match) {
  4435. return bo__symbolMap[match];
  4436. });
  4437. },
  4438. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  4439. meridiemHour : function (hour, meridiem) {
  4440. if (hour === 12) {
  4441. hour = 0;
  4442. }
  4443. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  4444. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  4445. meridiem === 'དགོང་དག') {
  4446. return hour + 12;
  4447. } else {
  4448. return hour;
  4449. }
  4450. },
  4451. meridiem : function (hour, minute, isLower) {
  4452. if (hour < 4) {
  4453. return 'མཚན་མོ';
  4454. } else if (hour < 10) {
  4455. return 'ཞོགས་ཀས';
  4456. } else if (hour < 17) {
  4457. return 'ཉིན་གུང';
  4458. } else if (hour < 20) {
  4459. return 'དགོང་དག';
  4460. } else {
  4461. return 'མཚན་མོ';
  4462. }
  4463. },
  4464. week : {
  4465. dow : 0, // Sunday is the first day of the week.
  4466. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4467. }
  4468. });
  4469. function relativeTimeWithMutation(number, withoutSuffix, key) {
  4470. var format = {
  4471. 'mm': 'munutenn',
  4472. 'MM': 'miz',
  4473. 'dd': 'devezh'
  4474. };
  4475. return number + ' ' + mutation(format[key], number);
  4476. }
  4477. function specialMutationForYears(number) {
  4478. switch (lastNumber(number)) {
  4479. case 1:
  4480. case 3:
  4481. case 4:
  4482. case 5:
  4483. case 9:
  4484. return number + ' bloaz';
  4485. default:
  4486. return number + ' vloaz';
  4487. }
  4488. }
  4489. function lastNumber(number) {
  4490. if (number > 9) {
  4491. return lastNumber(number % 10);
  4492. }
  4493. return number;
  4494. }
  4495. function mutation(text, number) {
  4496. if (number === 2) {
  4497. return softMutation(text);
  4498. }
  4499. return text;
  4500. }
  4501. function softMutation(text) {
  4502. var mutationTable = {
  4503. 'm': 'v',
  4504. 'b': 'v',
  4505. 'd': 'z'
  4506. };
  4507. if (mutationTable[text.charAt(0)] === undefined) {
  4508. return text;
  4509. }
  4510. return mutationTable[text.charAt(0)] + text.substring(1);
  4511. }
  4512. var br = moment__default.defineLocale('br', {
  4513. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  4514. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  4515. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  4516. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  4517. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  4518. weekdaysParseExact : true,
  4519. longDateFormat : {
  4520. LT : 'h[e]mm A',
  4521. LTS : 'h[e]mm:ss A',
  4522. L : 'DD/MM/YYYY',
  4523. LL : 'D [a viz] MMMM YYYY',
  4524. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  4525. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  4526. },
  4527. calendar : {
  4528. sameDay : '[Hiziv da] LT',
  4529. nextDay : '[Warc\'hoazh da] LT',
  4530. nextWeek : 'dddd [da] LT',
  4531. lastDay : '[Dec\'h da] LT',
  4532. lastWeek : 'dddd [paset da] LT',
  4533. sameElse : 'L'
  4534. },
  4535. relativeTime : {
  4536. future : 'a-benn %s',
  4537. past : '%s \'zo',
  4538. s : 'un nebeud segondennoù',
  4539. m : 'ur vunutenn',
  4540. mm : relativeTimeWithMutation,
  4541. h : 'un eur',
  4542. hh : '%d eur',
  4543. d : 'un devezh',
  4544. dd : relativeTimeWithMutation,
  4545. M : 'ur miz',
  4546. MM : relativeTimeWithMutation,
  4547. y : 'ur bloaz',
  4548. yy : specialMutationForYears
  4549. },
  4550. ordinalParse: /\d{1,2}(añ|vet)/,
  4551. ordinal : function (number) {
  4552. var output = (number === 1) ? 'añ' : 'vet';
  4553. return number + output;
  4554. },
  4555. week : {
  4556. dow : 1, // Monday is the first day of the week.
  4557. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4558. }
  4559. });
  4560. function bs__translate(number, withoutSuffix, key) {
  4561. var result = number + ' ';
  4562. switch (key) {
  4563. case 'm':
  4564. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  4565. case 'mm':
  4566. if (number === 1) {
  4567. result += 'minuta';
  4568. } else if (number === 2 || number === 3 || number === 4) {
  4569. result += 'minute';
  4570. } else {
  4571. result += 'minuta';
  4572. }
  4573. return result;
  4574. case 'h':
  4575. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  4576. case 'hh':
  4577. if (number === 1) {
  4578. result += 'sat';
  4579. } else if (number === 2 || number === 3 || number === 4) {
  4580. result += 'sata';
  4581. } else {
  4582. result += 'sati';
  4583. }
  4584. return result;
  4585. case 'dd':
  4586. if (number === 1) {
  4587. result += 'dan';
  4588. } else {
  4589. result += 'dana';
  4590. }
  4591. return result;
  4592. case 'MM':
  4593. if (number === 1) {
  4594. result += 'mjesec';
  4595. } else if (number === 2 || number === 3 || number === 4) {
  4596. result += 'mjeseca';
  4597. } else {
  4598. result += 'mjeseci';
  4599. }
  4600. return result;
  4601. case 'yy':
  4602. if (number === 1) {
  4603. result += 'godina';
  4604. } else if (number === 2 || number === 3 || number === 4) {
  4605. result += 'godine';
  4606. } else {
  4607. result += 'godina';
  4608. }
  4609. return result;
  4610. }
  4611. }
  4612. var bs = moment__default.defineLocale('bs', {
  4613. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  4614. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  4615. monthsParseExact: true,
  4616. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  4617. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  4618. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  4619. weekdaysParseExact : true,
  4620. longDateFormat : {
  4621. LT : 'H:mm',
  4622. LTS : 'H:mm:ss',
  4623. L : 'DD.MM.YYYY',
  4624. LL : 'D. MMMM YYYY',
  4625. LLL : 'D. MMMM YYYY H:mm',
  4626. LLLL : 'dddd, D. MMMM YYYY H:mm'
  4627. },
  4628. calendar : {
  4629. sameDay : '[danas u] LT',
  4630. nextDay : '[sutra u] LT',
  4631. nextWeek : function () {
  4632. switch (this.day()) {
  4633. case 0:
  4634. return '[u] [nedjelju] [u] LT';
  4635. case 3:
  4636. return '[u] [srijedu] [u] LT';
  4637. case 6:
  4638. return '[u] [subotu] [u] LT';
  4639. case 1:
  4640. case 2:
  4641. case 4:
  4642. case 5:
  4643. return '[u] dddd [u] LT';
  4644. }
  4645. },
  4646. lastDay : '[jučer u] LT',
  4647. lastWeek : function () {
  4648. switch (this.day()) {
  4649. case 0:
  4650. case 3:
  4651. return '[prošlu] dddd [u] LT';
  4652. case 6:
  4653. return '[prošle] [subote] [u] LT';
  4654. case 1:
  4655. case 2:
  4656. case 4:
  4657. case 5:
  4658. return '[prošli] dddd [u] LT';
  4659. }
  4660. },
  4661. sameElse : 'L'
  4662. },
  4663. relativeTime : {
  4664. future : 'za %s',
  4665. past : 'prije %s',
  4666. s : 'par sekundi',
  4667. m : bs__translate,
  4668. mm : bs__translate,
  4669. h : bs__translate,
  4670. hh : bs__translate,
  4671. d : 'dan',
  4672. dd : bs__translate,
  4673. M : 'mjesec',
  4674. MM : bs__translate,
  4675. y : 'godinu',
  4676. yy : bs__translate
  4677. },
  4678. ordinalParse: /\d{1,2}\./,
  4679. ordinal : '%d.',
  4680. week : {
  4681. dow : 1, // Monday is the first day of the week.
  4682. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4683. }
  4684. });
  4685. var ca = moment__default.defineLocale('ca', {
  4686. months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  4687. monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
  4688. monthsParseExact : true,
  4689. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  4690. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  4691. weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  4692. weekdaysParseExact : true,
  4693. longDateFormat : {
  4694. LT : 'H:mm',
  4695. LTS : 'H:mm:ss',
  4696. L : 'DD/MM/YYYY',
  4697. LL : 'D MMMM YYYY',
  4698. LLL : 'D MMMM YYYY H:mm',
  4699. LLLL : 'dddd D MMMM YYYY H:mm'
  4700. },
  4701. calendar : {
  4702. sameDay : function () {
  4703. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4704. },
  4705. nextDay : function () {
  4706. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4707. },
  4708. nextWeek : function () {
  4709. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4710. },
  4711. lastDay : function () {
  4712. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4713. },
  4714. lastWeek : function () {
  4715. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4716. },
  4717. sameElse : 'L'
  4718. },
  4719. relativeTime : {
  4720. future : 'en %s',
  4721. past : 'fa %s',
  4722. s : 'uns segons',
  4723. m : 'un minut',
  4724. mm : '%d minuts',
  4725. h : 'una hora',
  4726. hh : '%d hores',
  4727. d : 'un dia',
  4728. dd : '%d dies',
  4729. M : 'un mes',
  4730. MM : '%d mesos',
  4731. y : 'un any',
  4732. yy : '%d anys'
  4733. },
  4734. ordinalParse: /\d{1,2}(r|n|t|è|a)/,
  4735. ordinal : function (number, period) {
  4736. var output = (number === 1) ? 'r' :
  4737. (number === 2) ? 'n' :
  4738. (number === 3) ? 'r' :
  4739. (number === 4) ? 't' : 'è';
  4740. if (period === 'w' || period === 'W') {
  4741. output = 'a';
  4742. }
  4743. return number + output;
  4744. },
  4745. week : {
  4746. dow : 1, // Monday is the first day of the week.
  4747. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4748. }
  4749. });
  4750. var cs__months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  4751. cs__monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  4752. function cs__plural(n) {
  4753. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  4754. }
  4755. function cs__translate(number, withoutSuffix, key, isFuture) {
  4756. var result = number + ' ';
  4757. switch (key) {
  4758. case 's': // a few seconds / in a few seconds / a few seconds ago
  4759. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  4760. case 'm': // a minute / in a minute / a minute ago
  4761. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  4762. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  4763. if (withoutSuffix || isFuture) {
  4764. return result + (cs__plural(number) ? 'minuty' : 'minut');
  4765. } else {
  4766. return result + 'minutami';
  4767. }
  4768. break;
  4769. case 'h': // an hour / in an hour / an hour ago
  4770. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  4771. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  4772. if (withoutSuffix || isFuture) {
  4773. return result + (cs__plural(number) ? 'hodiny' : 'hodin');
  4774. } else {
  4775. return result + 'hodinami';
  4776. }
  4777. break;
  4778. case 'd': // a day / in a day / a day ago
  4779. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  4780. case 'dd': // 9 days / in 9 days / 9 days ago
  4781. if (withoutSuffix || isFuture) {
  4782. return result + (cs__plural(number) ? 'dny' : 'dní');
  4783. } else {
  4784. return result + 'dny';
  4785. }
  4786. break;
  4787. case 'M': // a month / in a month / a month ago
  4788. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  4789. case 'MM': // 9 months / in 9 months / 9 months ago
  4790. if (withoutSuffix || isFuture) {
  4791. return result + (cs__plural(number) ? 'měsíce' : 'měsíců');
  4792. } else {
  4793. return result + 'měsíci';
  4794. }
  4795. break;
  4796. case 'y': // a year / in a year / a year ago
  4797. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  4798. case 'yy': // 9 years / in 9 years / 9 years ago
  4799. if (withoutSuffix || isFuture) {
  4800. return result + (cs__plural(number) ? 'roky' : 'let');
  4801. } else {
  4802. return result + 'lety';
  4803. }
  4804. break;
  4805. }
  4806. }
  4807. var cs = moment__default.defineLocale('cs', {
  4808. months : cs__months,
  4809. monthsShort : cs__monthsShort,
  4810. monthsParse : (function (months, monthsShort) {
  4811. var i, _monthsParse = [];
  4812. for (i = 0; i < 12; i++) {
  4813. // use custom parser to solve problem with July (červenec)
  4814. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  4815. }
  4816. return _monthsParse;
  4817. }(cs__months, cs__monthsShort)),
  4818. shortMonthsParse : (function (monthsShort) {
  4819. var i, _shortMonthsParse = [];
  4820. for (i = 0; i < 12; i++) {
  4821. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  4822. }
  4823. return _shortMonthsParse;
  4824. }(cs__monthsShort)),
  4825. longMonthsParse : (function (months) {
  4826. var i, _longMonthsParse = [];
  4827. for (i = 0; i < 12; i++) {
  4828. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  4829. }
  4830. return _longMonthsParse;
  4831. }(cs__months)),
  4832. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  4833. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  4834. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  4835. longDateFormat : {
  4836. LT: 'H:mm',
  4837. LTS : 'H:mm:ss',
  4838. L : 'DD.MM.YYYY',
  4839. LL : 'D. MMMM YYYY',
  4840. LLL : 'D. MMMM YYYY H:mm',
  4841. LLLL : 'dddd D. MMMM YYYY H:mm',
  4842. l : 'D. M. YYYY'
  4843. },
  4844. calendar : {
  4845. sameDay: '[dnes v] LT',
  4846. nextDay: '[zítra v] LT',
  4847. nextWeek: function () {
  4848. switch (this.day()) {
  4849. case 0:
  4850. return '[v neděli v] LT';
  4851. case 1:
  4852. case 2:
  4853. return '[v] dddd [v] LT';
  4854. case 3:
  4855. return '[ve středu v] LT';
  4856. case 4:
  4857. return '[ve čtvrtek v] LT';
  4858. case 5:
  4859. return '[v pátek v] LT';
  4860. case 6:
  4861. return '[v sobotu v] LT';
  4862. }
  4863. },
  4864. lastDay: '[včera v] LT',
  4865. lastWeek: function () {
  4866. switch (this.day()) {
  4867. case 0:
  4868. return '[minulou neděli v] LT';
  4869. case 1:
  4870. case 2:
  4871. return '[minulé] dddd [v] LT';
  4872. case 3:
  4873. return '[minulou středu v] LT';
  4874. case 4:
  4875. case 5:
  4876. return '[minulý] dddd [v] LT';
  4877. case 6:
  4878. return '[minulou sobotu v] LT';
  4879. }
  4880. },
  4881. sameElse: 'L'
  4882. },
  4883. relativeTime : {
  4884. future : 'za %s',
  4885. past : 'před %s',
  4886. s : cs__translate,
  4887. m : cs__translate,
  4888. mm : cs__translate,
  4889. h : cs__translate,
  4890. hh : cs__translate,
  4891. d : cs__translate,
  4892. dd : cs__translate,
  4893. M : cs__translate,
  4894. MM : cs__translate,
  4895. y : cs__translate,
  4896. yy : cs__translate
  4897. },
  4898. ordinalParse : /\d{1,2}\./,
  4899. ordinal : '%d.',
  4900. week : {
  4901. dow : 1, // Monday is the first day of the week.
  4902. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4903. }
  4904. });
  4905. var cv = moment__default.defineLocale('cv', {
  4906. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  4907. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  4908. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  4909. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  4910. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  4911. longDateFormat : {
  4912. LT : 'HH:mm',
  4913. LTS : 'HH:mm:ss',
  4914. L : 'DD-MM-YYYY',
  4915. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  4916. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  4917. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  4918. },
  4919. calendar : {
  4920. sameDay: '[Паян] LT [сехетре]',
  4921. nextDay: '[Ыран] LT [сехетре]',
  4922. lastDay: '[Ӗнер] LT [сехетре]',
  4923. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  4924. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  4925. sameElse: 'L'
  4926. },
  4927. relativeTime : {
  4928. future : function (output) {
  4929. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  4930. return output + affix;
  4931. },
  4932. past : '%s каялла',
  4933. s : 'пӗр-ик ҫеккунт',
  4934. m : 'пӗр минут',
  4935. mm : '%d минут',
  4936. h : 'пӗр сехет',
  4937. hh : '%d сехет',
  4938. d : 'пӗр кун',
  4939. dd : '%d кун',
  4940. M : 'пӗр уйӑх',
  4941. MM : '%d уйӑх',
  4942. y : 'пӗр ҫул',
  4943. yy : '%d ҫул'
  4944. },
  4945. ordinalParse: /\d{1,2}-мӗш/,
  4946. ordinal : '%d-мӗш',
  4947. week : {
  4948. dow : 1, // Monday is the first day of the week.
  4949. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4950. }
  4951. });
  4952. var cy = moment__default.defineLocale('cy', {
  4953. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  4954. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  4955. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  4956. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  4957. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  4958. weekdaysParseExact : true,
  4959. // time formats are the same as en-gb
  4960. longDateFormat: {
  4961. LT: 'HH:mm',
  4962. LTS : 'HH:mm:ss',
  4963. L: 'DD/MM/YYYY',
  4964. LL: 'D MMMM YYYY',
  4965. LLL: 'D MMMM YYYY HH:mm',
  4966. LLLL: 'dddd, D MMMM YYYY HH:mm'
  4967. },
  4968. calendar: {
  4969. sameDay: '[Heddiw am] LT',
  4970. nextDay: '[Yfory am] LT',
  4971. nextWeek: 'dddd [am] LT',
  4972. lastDay: '[Ddoe am] LT',
  4973. lastWeek: 'dddd [diwethaf am] LT',
  4974. sameElse: 'L'
  4975. },
  4976. relativeTime: {
  4977. future: 'mewn %s',
  4978. past: '%s yn ôl',
  4979. s: 'ychydig eiliadau',
  4980. m: 'munud',
  4981. mm: '%d munud',
  4982. h: 'awr',
  4983. hh: '%d awr',
  4984. d: 'diwrnod',
  4985. dd: '%d diwrnod',
  4986. M: 'mis',
  4987. MM: '%d mis',
  4988. y: 'blwyddyn',
  4989. yy: '%d flynedd'
  4990. },
  4991. ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  4992. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  4993. ordinal: function (number) {
  4994. var b = number,
  4995. output = '',
  4996. lookup = [
  4997. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  4998. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  4999. ];
  5000. if (b > 20) {
  5001. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  5002. output = 'fed'; // not 30ain, 70ain or 90ain
  5003. } else {
  5004. output = 'ain';
  5005. }
  5006. } else if (b > 0) {
  5007. output = lookup[b];
  5008. }
  5009. return number + output;
  5010. },
  5011. week : {
  5012. dow : 1, // Monday is the first day of the week.
  5013. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5014. }
  5015. });
  5016. var da = moment__default.defineLocale('da', {
  5017. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  5018. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  5019. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  5020. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  5021. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  5022. longDateFormat : {
  5023. LT : 'HH:mm',
  5024. LTS : 'HH:mm:ss',
  5025. L : 'DD/MM/YYYY',
  5026. LL : 'D. MMMM YYYY',
  5027. LLL : 'D. MMMM YYYY HH:mm',
  5028. LLLL : 'dddd [d.] D. MMMM YYYY HH:mm'
  5029. },
  5030. calendar : {
  5031. sameDay : '[I dag kl.] LT',
  5032. nextDay : '[I morgen kl.] LT',
  5033. nextWeek : 'dddd [kl.] LT',
  5034. lastDay : '[I går kl.] LT',
  5035. lastWeek : '[sidste] dddd [kl] LT',
  5036. sameElse : 'L'
  5037. },
  5038. relativeTime : {
  5039. future : 'om %s',
  5040. past : '%s siden',
  5041. s : 'få sekunder',
  5042. m : 'et minut',
  5043. mm : '%d minutter',
  5044. h : 'en time',
  5045. hh : '%d timer',
  5046. d : 'en dag',
  5047. dd : '%d dage',
  5048. M : 'en måned',
  5049. MM : '%d måneder',
  5050. y : 'et år',
  5051. yy : '%d år'
  5052. },
  5053. ordinalParse: /\d{1,2}\./,
  5054. ordinal : '%d.',
  5055. week : {
  5056. dow : 1, // Monday is the first day of the week.
  5057. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5058. }
  5059. });
  5060. function de_at__processRelativeTime(number, withoutSuffix, key, isFuture) {
  5061. var format = {
  5062. 'm': ['eine Minute', 'einer Minute'],
  5063. 'h': ['eine Stunde', 'einer Stunde'],
  5064. 'd': ['ein Tag', 'einem Tag'],
  5065. 'dd': [number + ' Tage', number + ' Tagen'],
  5066. 'M': ['ein Monat', 'einem Monat'],
  5067. 'MM': [number + ' Monate', number + ' Monaten'],
  5068. 'y': ['ein Jahr', 'einem Jahr'],
  5069. 'yy': [number + ' Jahre', number + ' Jahren']
  5070. };
  5071. return withoutSuffix ? format[key][0] : format[key][1];
  5072. }
  5073. var de_at = moment__default.defineLocale('de-at', {
  5074. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5075. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5076. monthsParseExact : true,
  5077. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5078. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5079. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5080. weekdaysParseExact : true,
  5081. longDateFormat : {
  5082. LT: 'HH:mm',
  5083. LTS: 'HH:mm:ss',
  5084. L : 'DD.MM.YYYY',
  5085. LL : 'D. MMMM YYYY',
  5086. LLL : 'D. MMMM YYYY HH:mm',
  5087. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5088. },
  5089. calendar : {
  5090. sameDay: '[heute um] LT [Uhr]',
  5091. sameElse: 'L',
  5092. nextDay: '[morgen um] LT [Uhr]',
  5093. nextWeek: 'dddd [um] LT [Uhr]',
  5094. lastDay: '[gestern um] LT [Uhr]',
  5095. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5096. },
  5097. relativeTime : {
  5098. future : 'in %s',
  5099. past : 'vor %s',
  5100. s : 'ein paar Sekunden',
  5101. m : de_at__processRelativeTime,
  5102. mm : '%d Minuten',
  5103. h : de_at__processRelativeTime,
  5104. hh : '%d Stunden',
  5105. d : de_at__processRelativeTime,
  5106. dd : de_at__processRelativeTime,
  5107. M : de_at__processRelativeTime,
  5108. MM : de_at__processRelativeTime,
  5109. y : de_at__processRelativeTime,
  5110. yy : de_at__processRelativeTime
  5111. },
  5112. ordinalParse: /\d{1,2}\./,
  5113. ordinal : '%d.',
  5114. week : {
  5115. dow : 1, // Monday is the first day of the week.
  5116. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5117. }
  5118. });
  5119. function de__processRelativeTime(number, withoutSuffix, key, isFuture) {
  5120. var format = {
  5121. 'm': ['eine Minute', 'einer Minute'],
  5122. 'h': ['eine Stunde', 'einer Stunde'],
  5123. 'd': ['ein Tag', 'einem Tag'],
  5124. 'dd': [number + ' Tage', number + ' Tagen'],
  5125. 'M': ['ein Monat', 'einem Monat'],
  5126. 'MM': [number + ' Monate', number + ' Monaten'],
  5127. 'y': ['ein Jahr', 'einem Jahr'],
  5128. 'yy': [number + ' Jahre', number + ' Jahren']
  5129. };
  5130. return withoutSuffix ? format[key][0] : format[key][1];
  5131. }
  5132. var de = moment__default.defineLocale('de', {
  5133. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5134. monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5135. monthsParseExact : true,
  5136. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5137. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5138. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5139. weekdaysParseExact : true,
  5140. longDateFormat : {
  5141. LT: 'HH:mm',
  5142. LTS: 'HH:mm:ss',
  5143. L : 'DD.MM.YYYY',
  5144. LL : 'D. MMMM YYYY',
  5145. LLL : 'D. MMMM YYYY HH:mm',
  5146. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5147. },
  5148. calendar : {
  5149. sameDay: '[heute um] LT [Uhr]',
  5150. sameElse: 'L',
  5151. nextDay: '[morgen um] LT [Uhr]',
  5152. nextWeek: 'dddd [um] LT [Uhr]',
  5153. lastDay: '[gestern um] LT [Uhr]',
  5154. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5155. },
  5156. relativeTime : {
  5157. future : 'in %s',
  5158. past : 'vor %s',
  5159. s : 'ein paar Sekunden',
  5160. m : de__processRelativeTime,
  5161. mm : '%d Minuten',
  5162. h : de__processRelativeTime,
  5163. hh : '%d Stunden',
  5164. d : de__processRelativeTime,
  5165. dd : de__processRelativeTime,
  5166. M : de__processRelativeTime,
  5167. MM : de__processRelativeTime,
  5168. y : de__processRelativeTime,
  5169. yy : de__processRelativeTime
  5170. },
  5171. ordinalParse: /\d{1,2}\./,
  5172. ordinal : '%d.',
  5173. week : {
  5174. dow : 1, // Monday is the first day of the week.
  5175. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5176. }
  5177. });
  5178. var dv__months = [
  5179. 'ޖެނުއަރީ',
  5180. 'ފެބްރުއަރީ',
  5181. 'މާރިޗު',
  5182. 'އޭޕްރީލު',
  5183. 'މޭ',
  5184. 'ޖޫން',
  5185. 'ޖުލައި',
  5186. 'އޯގަސްޓު',
  5187. 'ސެޕްޓެމްބަރު',
  5188. 'އޮކްޓޯބަރު',
  5189. 'ނޮވެމްބަރު',
  5190. 'ޑިސެމްބަރު'
  5191. ], dv__weekdays = [
  5192. 'އާދިއްތަ',
  5193. 'ހޯމަ',
  5194. 'އަންގާރަ',
  5195. 'ބުދަ',
  5196. 'ބުރާސްފަތި',
  5197. 'ހުކުރު',
  5198. 'ހޮނިހިރު'
  5199. ];
  5200. var dv = moment__default.defineLocale('dv', {
  5201. months : dv__months,
  5202. monthsShort : dv__months,
  5203. weekdays : dv__weekdays,
  5204. weekdaysShort : dv__weekdays,
  5205. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  5206. longDateFormat : {
  5207. LT : 'HH:mm',
  5208. LTS : 'HH:mm:ss',
  5209. L : 'D/M/YYYY',
  5210. LL : 'D MMMM YYYY',
  5211. LLL : 'D MMMM YYYY HH:mm',
  5212. LLLL : 'dddd D MMMM YYYY HH:mm'
  5213. },
  5214. meridiemParse: /މކ|މފ/,
  5215. isPM : function (input) {
  5216. return 'މފ' === input;
  5217. },
  5218. meridiem : function (hour, minute, isLower) {
  5219. if (hour < 12) {
  5220. return 'މކ';
  5221. } else {
  5222. return 'މފ';
  5223. }
  5224. },
  5225. calendar : {
  5226. sameDay : '[މިއަދު] LT',
  5227. nextDay : '[މާދަމާ] LT',
  5228. nextWeek : 'dddd LT',
  5229. lastDay : '[އިއްޔެ] LT',
  5230. lastWeek : '[ފާއިތުވި] dddd LT',
  5231. sameElse : 'L'
  5232. },
  5233. relativeTime : {
  5234. future : 'ތެރޭގައި %s',
  5235. past : 'ކުރިން %s',
  5236. s : 'ސިކުންތުކޮޅެއް',
  5237. m : 'މިނިޓެއް',
  5238. mm : 'މިނިޓު %d',
  5239. h : 'ގަޑިއިރެއް',
  5240. hh : 'ގަޑިއިރު %d',
  5241. d : 'ދުވަހެއް',
  5242. dd : 'ދުވަސް %d',
  5243. M : 'މަހެއް',
  5244. MM : 'މަސް %d',
  5245. y : 'އަހަރެއް',
  5246. yy : 'އަހަރު %d'
  5247. },
  5248. preparse: function (string) {
  5249. return string.replace(/،/g, ',');
  5250. },
  5251. postformat: function (string) {
  5252. return string.replace(/,/g, '،');
  5253. },
  5254. week : {
  5255. dow : 7, // Sunday is the first day of the week.
  5256. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5257. }
  5258. });
  5259. var el = moment__default.defineLocale('el', {
  5260. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  5261. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  5262. months : function (momentToFormat, format) {
  5263. if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  5264. return this._monthsGenitiveEl[momentToFormat.month()];
  5265. } else {
  5266. return this._monthsNominativeEl[momentToFormat.month()];
  5267. }
  5268. },
  5269. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  5270. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  5271. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  5272. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  5273. meridiem : function (hours, minutes, isLower) {
  5274. if (hours > 11) {
  5275. return isLower ? 'μμ' : 'ΜΜ';
  5276. } else {
  5277. return isLower ? 'πμ' : 'ΠΜ';
  5278. }
  5279. },
  5280. isPM : function (input) {
  5281. return ((input + '').toLowerCase()[0] === 'μ');
  5282. },
  5283. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  5284. longDateFormat : {
  5285. LT : 'h:mm A',
  5286. LTS : 'h:mm:ss A',
  5287. L : 'DD/MM/YYYY',
  5288. LL : 'D MMMM YYYY',
  5289. LLL : 'D MMMM YYYY h:mm A',
  5290. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5291. },
  5292. calendarEl : {
  5293. sameDay : '[Σήμερα {}] LT',
  5294. nextDay : '[Αύριο {}] LT',
  5295. nextWeek : 'dddd [{}] LT',
  5296. lastDay : '[Χθες {}] LT',
  5297. lastWeek : function () {
  5298. switch (this.day()) {
  5299. case 6:
  5300. return '[το προηγούμενο] dddd [{}] LT';
  5301. default:
  5302. return '[την προηγούμενη] dddd [{}] LT';
  5303. }
  5304. },
  5305. sameElse : 'L'
  5306. },
  5307. calendar : function (key, mom) {
  5308. var output = this._calendarEl[key],
  5309. hours = mom && mom.hours();
  5310. if (isFunction(output)) {
  5311. output = output.apply(mom);
  5312. }
  5313. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  5314. },
  5315. relativeTime : {
  5316. future : 'σε %s',
  5317. past : '%s πριν',
  5318. s : 'λίγα δευτερόλεπτα',
  5319. m : 'ένα λεπτό',
  5320. mm : '%d λεπτά',
  5321. h : 'μία ώρα',
  5322. hh : '%d ώρες',
  5323. d : 'μία μέρα',
  5324. dd : '%d μέρες',
  5325. M : 'ένας μήνας',
  5326. MM : '%d μήνες',
  5327. y : 'ένας χρόνος',
  5328. yy : '%d χρόνια'
  5329. },
  5330. ordinalParse: /\d{1,2}η/,
  5331. ordinal: '%dη',
  5332. week : {
  5333. dow : 1, // Monday is the first day of the week.
  5334. doy : 4 // The week that contains Jan 4st is the first week of the year.
  5335. }
  5336. });
  5337. var en_au = moment__default.defineLocale('en-au', {
  5338. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5339. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5340. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5341. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5342. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5343. longDateFormat : {
  5344. LT : 'h:mm A',
  5345. LTS : 'h:mm:ss A',
  5346. L : 'DD/MM/YYYY',
  5347. LL : 'D MMMM YYYY',
  5348. LLL : 'D MMMM YYYY h:mm A',
  5349. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5350. },
  5351. calendar : {
  5352. sameDay : '[Today at] LT',
  5353. nextDay : '[Tomorrow at] LT',
  5354. nextWeek : 'dddd [at] LT',
  5355. lastDay : '[Yesterday at] LT',
  5356. lastWeek : '[Last] dddd [at] LT',
  5357. sameElse : 'L'
  5358. },
  5359. relativeTime : {
  5360. future : 'in %s',
  5361. past : '%s ago',
  5362. s : 'a few seconds',
  5363. m : 'a minute',
  5364. mm : '%d minutes',
  5365. h : 'an hour',
  5366. hh : '%d hours',
  5367. d : 'a day',
  5368. dd : '%d days',
  5369. M : 'a month',
  5370. MM : '%d months',
  5371. y : 'a year',
  5372. yy : '%d years'
  5373. },
  5374. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5375. ordinal : function (number) {
  5376. var b = number % 10,
  5377. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5378. (b === 1) ? 'st' :
  5379. (b === 2) ? 'nd' :
  5380. (b === 3) ? 'rd' : 'th';
  5381. return number + output;
  5382. },
  5383. week : {
  5384. dow : 1, // Monday is the first day of the week.
  5385. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5386. }
  5387. });
  5388. var en_ca = moment__default.defineLocale('en-ca', {
  5389. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5390. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5391. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5392. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5393. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5394. longDateFormat : {
  5395. LT : 'h:mm A',
  5396. LTS : 'h:mm:ss A',
  5397. L : 'YYYY-MM-DD',
  5398. LL : 'MMMM D, YYYY',
  5399. LLL : 'MMMM D, YYYY h:mm A',
  5400. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  5401. },
  5402. calendar : {
  5403. sameDay : '[Today at] LT',
  5404. nextDay : '[Tomorrow at] LT',
  5405. nextWeek : 'dddd [at] LT',
  5406. lastDay : '[Yesterday at] LT',
  5407. lastWeek : '[Last] dddd [at] LT',
  5408. sameElse : 'L'
  5409. },
  5410. relativeTime : {
  5411. future : 'in %s',
  5412. past : '%s ago',
  5413. s : 'a few seconds',
  5414. m : 'a minute',
  5415. mm : '%d minutes',
  5416. h : 'an hour',
  5417. hh : '%d hours',
  5418. d : 'a day',
  5419. dd : '%d days',
  5420. M : 'a month',
  5421. MM : '%d months',
  5422. y : 'a year',
  5423. yy : '%d years'
  5424. },
  5425. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5426. ordinal : function (number) {
  5427. var b = number % 10,
  5428. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5429. (b === 1) ? 'st' :
  5430. (b === 2) ? 'nd' :
  5431. (b === 3) ? 'rd' : 'th';
  5432. return number + output;
  5433. }
  5434. });
  5435. var en_gb = moment__default.defineLocale('en-gb', {
  5436. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5437. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5438. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5439. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5440. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5441. longDateFormat : {
  5442. LT : 'HH:mm',
  5443. LTS : 'HH:mm:ss',
  5444. L : 'DD/MM/YYYY',
  5445. LL : 'D MMMM YYYY',
  5446. LLL : 'D MMMM YYYY HH:mm',
  5447. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5448. },
  5449. calendar : {
  5450. sameDay : '[Today at] LT',
  5451. nextDay : '[Tomorrow at] LT',
  5452. nextWeek : 'dddd [at] LT',
  5453. lastDay : '[Yesterday at] LT',
  5454. lastWeek : '[Last] dddd [at] LT',
  5455. sameElse : 'L'
  5456. },
  5457. relativeTime : {
  5458. future : 'in %s',
  5459. past : '%s ago',
  5460. s : 'a few seconds',
  5461. m : 'a minute',
  5462. mm : '%d minutes',
  5463. h : 'an hour',
  5464. hh : '%d hours',
  5465. d : 'a day',
  5466. dd : '%d days',
  5467. M : 'a month',
  5468. MM : '%d months',
  5469. y : 'a year',
  5470. yy : '%d years'
  5471. },
  5472. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5473. ordinal : function (number) {
  5474. var b = number % 10,
  5475. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5476. (b === 1) ? 'st' :
  5477. (b === 2) ? 'nd' :
  5478. (b === 3) ? 'rd' : 'th';
  5479. return number + output;
  5480. },
  5481. week : {
  5482. dow : 1, // Monday is the first day of the week.
  5483. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5484. }
  5485. });
  5486. var en_ie = moment__default.defineLocale('en-ie', {
  5487. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5488. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5489. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5490. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5491. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5492. longDateFormat : {
  5493. LT : 'HH:mm',
  5494. LTS : 'HH:mm:ss',
  5495. L : 'DD-MM-YYYY',
  5496. LL : 'D MMMM YYYY',
  5497. LLL : 'D MMMM YYYY HH:mm',
  5498. LLLL : 'dddd D MMMM YYYY HH:mm'
  5499. },
  5500. calendar : {
  5501. sameDay : '[Today at] LT',
  5502. nextDay : '[Tomorrow at] LT',
  5503. nextWeek : 'dddd [at] LT',
  5504. lastDay : '[Yesterday at] LT',
  5505. lastWeek : '[Last] dddd [at] LT',
  5506. sameElse : 'L'
  5507. },
  5508. relativeTime : {
  5509. future : 'in %s',
  5510. past : '%s ago',
  5511. s : 'a few seconds',
  5512. m : 'a minute',
  5513. mm : '%d minutes',
  5514. h : 'an hour',
  5515. hh : '%d hours',
  5516. d : 'a day',
  5517. dd : '%d days',
  5518. M : 'a month',
  5519. MM : '%d months',
  5520. y : 'a year',
  5521. yy : '%d years'
  5522. },
  5523. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5524. ordinal : function (number) {
  5525. var b = number % 10,
  5526. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5527. (b === 1) ? 'st' :
  5528. (b === 2) ? 'nd' :
  5529. (b === 3) ? 'rd' : 'th';
  5530. return number + output;
  5531. },
  5532. week : {
  5533. dow : 1, // Monday is the first day of the week.
  5534. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5535. }
  5536. });
  5537. var en_nz = moment__default.defineLocale('en-nz', {
  5538. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5539. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5540. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5541. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5542. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5543. longDateFormat : {
  5544. LT : 'h:mm A',
  5545. LTS : 'h:mm:ss A',
  5546. L : 'DD/MM/YYYY',
  5547. LL : 'D MMMM YYYY',
  5548. LLL : 'D MMMM YYYY h:mm A',
  5549. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5550. },
  5551. calendar : {
  5552. sameDay : '[Today at] LT',
  5553. nextDay : '[Tomorrow at] LT',
  5554. nextWeek : 'dddd [at] LT',
  5555. lastDay : '[Yesterday at] LT',
  5556. lastWeek : '[Last] dddd [at] LT',
  5557. sameElse : 'L'
  5558. },
  5559. relativeTime : {
  5560. future : 'in %s',
  5561. past : '%s ago',
  5562. s : 'a few seconds',
  5563. m : 'a minute',
  5564. mm : '%d minutes',
  5565. h : 'an hour',
  5566. hh : '%d hours',
  5567. d : 'a day',
  5568. dd : '%d days',
  5569. M : 'a month',
  5570. MM : '%d months',
  5571. y : 'a year',
  5572. yy : '%d years'
  5573. },
  5574. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  5575. ordinal : function (number) {
  5576. var b = number % 10,
  5577. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5578. (b === 1) ? 'st' :
  5579. (b === 2) ? 'nd' :
  5580. (b === 3) ? 'rd' : 'th';
  5581. return number + output;
  5582. },
  5583. week : {
  5584. dow : 1, // Monday is the first day of the week.
  5585. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5586. }
  5587. });
  5588. var eo = moment__default.defineLocale('eo', {
  5589. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  5590. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  5591. weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
  5592. weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
  5593. weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
  5594. longDateFormat : {
  5595. LT : 'HH:mm',
  5596. LTS : 'HH:mm:ss',
  5597. L : 'YYYY-MM-DD',
  5598. LL : 'D[-an de] MMMM, YYYY',
  5599. LLL : 'D[-an de] MMMM, YYYY HH:mm',
  5600. LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
  5601. },
  5602. meridiemParse: /[ap]\.t\.m/i,
  5603. isPM: function (input) {
  5604. return input.charAt(0).toLowerCase() === 'p';
  5605. },
  5606. meridiem : function (hours, minutes, isLower) {
  5607. if (hours > 11) {
  5608. return isLower ? 'p.t.m.' : 'P.T.M.';
  5609. } else {
  5610. return isLower ? 'a.t.m.' : 'A.T.M.';
  5611. }
  5612. },
  5613. calendar : {
  5614. sameDay : '[Hodiaŭ je] LT',
  5615. nextDay : '[Morgaŭ je] LT',
  5616. nextWeek : 'dddd [je] LT',
  5617. lastDay : '[Hieraŭ je] LT',
  5618. lastWeek : '[pasinta] dddd [je] LT',
  5619. sameElse : 'L'
  5620. },
  5621. relativeTime : {
  5622. future : 'je %s',
  5623. past : 'antaŭ %s',
  5624. s : 'sekundoj',
  5625. m : 'minuto',
  5626. mm : '%d minutoj',
  5627. h : 'horo',
  5628. hh : '%d horoj',
  5629. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  5630. dd : '%d tagoj',
  5631. M : 'monato',
  5632. MM : '%d monatoj',
  5633. y : 'jaro',
  5634. yy : '%d jaroj'
  5635. },
  5636. ordinalParse: /\d{1,2}a/,
  5637. ordinal : '%da',
  5638. week : {
  5639. dow : 1, // Monday is the first day of the week.
  5640. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5641. }
  5642. });
  5643. var es_do__monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  5644. es_do__monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  5645. var es_do = moment__default.defineLocale('es-do', {
  5646. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  5647. monthsShort : function (m, format) {
  5648. if (/-MMM-/.test(format)) {
  5649. return es_do__monthsShort[m.month()];
  5650. } else {
  5651. return es_do__monthsShortDot[m.month()];
  5652. }
  5653. },
  5654. monthsParseExact : true,
  5655. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  5656. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  5657. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  5658. weekdaysParseExact : true,
  5659. longDateFormat : {
  5660. LT : 'h:mm A',
  5661. LTS : 'h:mm:ss A',
  5662. L : 'DD/MM/YYYY',
  5663. LL : 'D [de] MMMM [de] YYYY',
  5664. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  5665. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  5666. },
  5667. calendar : {
  5668. sameDay : function () {
  5669. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5670. },
  5671. nextDay : function () {
  5672. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5673. },
  5674. nextWeek : function () {
  5675. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5676. },
  5677. lastDay : function () {
  5678. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5679. },
  5680. lastWeek : function () {
  5681. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5682. },
  5683. sameElse : 'L'
  5684. },
  5685. relativeTime : {
  5686. future : 'en %s',
  5687. past : 'hace %s',
  5688. s : 'unos segundos',
  5689. m : 'un minuto',
  5690. mm : '%d minutos',
  5691. h : 'una hora',
  5692. hh : '%d horas',
  5693. d : 'un día',
  5694. dd : '%d días',
  5695. M : 'un mes',
  5696. MM : '%d meses',
  5697. y : 'un año',
  5698. yy : '%d años'
  5699. },
  5700. ordinalParse : /\d{1,2}º/,
  5701. ordinal : '%dº',
  5702. week : {
  5703. dow : 1, // Monday is the first day of the week.
  5704. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5705. }
  5706. });
  5707. var es__monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  5708. es__monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  5709. var es = moment__default.defineLocale('es', {
  5710. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  5711. monthsShort : function (m, format) {
  5712. if (/-MMM-/.test(format)) {
  5713. return es__monthsShort[m.month()];
  5714. } else {
  5715. return es__monthsShortDot[m.month()];
  5716. }
  5717. },
  5718. monthsParseExact : true,
  5719. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  5720. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  5721. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  5722. weekdaysParseExact : true,
  5723. longDateFormat : {
  5724. LT : 'H:mm',
  5725. LTS : 'H:mm:ss',
  5726. L : 'DD/MM/YYYY',
  5727. LL : 'D [de] MMMM [de] YYYY',
  5728. LLL : 'D [de] MMMM [de] YYYY H:mm',
  5729. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  5730. },
  5731. calendar : {
  5732. sameDay : function () {
  5733. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5734. },
  5735. nextDay : function () {
  5736. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5737. },
  5738. nextWeek : function () {
  5739. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5740. },
  5741. lastDay : function () {
  5742. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5743. },
  5744. lastWeek : function () {
  5745. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5746. },
  5747. sameElse : 'L'
  5748. },
  5749. relativeTime : {
  5750. future : 'en %s',
  5751. past : 'hace %s',
  5752. s : 'unos segundos',
  5753. m : 'un minuto',
  5754. mm : '%d minutos',
  5755. h : 'una hora',
  5756. hh : '%d horas',
  5757. d : 'un día',
  5758. dd : '%d días',
  5759. M : 'un mes',
  5760. MM : '%d meses',
  5761. y : 'un año',
  5762. yy : '%d años'
  5763. },
  5764. ordinalParse : /\d{1,2}º/,
  5765. ordinal : '%dº',
  5766. week : {
  5767. dow : 1, // Monday is the first day of the week.
  5768. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5769. }
  5770. });
  5771. function et__processRelativeTime(number, withoutSuffix, key, isFuture) {
  5772. var format = {
  5773. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  5774. 'm' : ['ühe minuti', 'üks minut'],
  5775. 'mm': [number + ' minuti', number + ' minutit'],
  5776. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  5777. 'hh': [number + ' tunni', number + ' tundi'],
  5778. 'd' : ['ühe päeva', 'üks päev'],
  5779. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  5780. 'MM': [number + ' kuu', number + ' kuud'],
  5781. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  5782. 'yy': [number + ' aasta', number + ' aastat']
  5783. };
  5784. if (withoutSuffix) {
  5785. return format[key][2] ? format[key][2] : format[key][1];
  5786. }
  5787. return isFuture ? format[key][0] : format[key][1];
  5788. }
  5789. var et = moment__default.defineLocale('et', {
  5790. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  5791. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  5792. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  5793. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  5794. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  5795. longDateFormat : {
  5796. LT : 'H:mm',
  5797. LTS : 'H:mm:ss',
  5798. L : 'DD.MM.YYYY',
  5799. LL : 'D. MMMM YYYY',
  5800. LLL : 'D. MMMM YYYY H:mm',
  5801. LLLL : 'dddd, D. MMMM YYYY H:mm'
  5802. },
  5803. calendar : {
  5804. sameDay : '[Täna,] LT',
  5805. nextDay : '[Homme,] LT',
  5806. nextWeek : '[Järgmine] dddd LT',
  5807. lastDay : '[Eile,] LT',
  5808. lastWeek : '[Eelmine] dddd LT',
  5809. sameElse : 'L'
  5810. },
  5811. relativeTime : {
  5812. future : '%s pärast',
  5813. past : '%s tagasi',
  5814. s : et__processRelativeTime,
  5815. m : et__processRelativeTime,
  5816. mm : et__processRelativeTime,
  5817. h : et__processRelativeTime,
  5818. hh : et__processRelativeTime,
  5819. d : et__processRelativeTime,
  5820. dd : '%d päeva',
  5821. M : et__processRelativeTime,
  5822. MM : et__processRelativeTime,
  5823. y : et__processRelativeTime,
  5824. yy : et__processRelativeTime
  5825. },
  5826. ordinalParse: /\d{1,2}\./,
  5827. ordinal : '%d.',
  5828. week : {
  5829. dow : 1, // Monday is the first day of the week.
  5830. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5831. }
  5832. });
  5833. var eu = moment__default.defineLocale('eu', {
  5834. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  5835. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  5836. monthsParseExact : true,
  5837. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  5838. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  5839. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  5840. weekdaysParseExact : true,
  5841. longDateFormat : {
  5842. LT : 'HH:mm',
  5843. LTS : 'HH:mm:ss',
  5844. L : 'YYYY-MM-DD',
  5845. LL : 'YYYY[ko] MMMM[ren] D[a]',
  5846. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  5847. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  5848. l : 'YYYY-M-D',
  5849. ll : 'YYYY[ko] MMM D[a]',
  5850. lll : 'YYYY[ko] MMM D[a] HH:mm',
  5851. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  5852. },
  5853. calendar : {
  5854. sameDay : '[gaur] LT[etan]',
  5855. nextDay : '[bihar] LT[etan]',
  5856. nextWeek : 'dddd LT[etan]',
  5857. lastDay : '[atzo] LT[etan]',
  5858. lastWeek : '[aurreko] dddd LT[etan]',
  5859. sameElse : 'L'
  5860. },
  5861. relativeTime : {
  5862. future : '%s barru',
  5863. past : 'duela %s',
  5864. s : 'segundo batzuk',
  5865. m : 'minutu bat',
  5866. mm : '%d minutu',
  5867. h : 'ordu bat',
  5868. hh : '%d ordu',
  5869. d : 'egun bat',
  5870. dd : '%d egun',
  5871. M : 'hilabete bat',
  5872. MM : '%d hilabete',
  5873. y : 'urte bat',
  5874. yy : '%d urte'
  5875. },
  5876. ordinalParse: /\d{1,2}\./,
  5877. ordinal : '%d.',
  5878. week : {
  5879. dow : 1, // Monday is the first day of the week.
  5880. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5881. }
  5882. });
  5883. var fa__symbolMap = {
  5884. '1': '۱',
  5885. '2': '۲',
  5886. '3': '۳',
  5887. '4': '۴',
  5888. '5': '۵',
  5889. '6': '۶',
  5890. '7': '۷',
  5891. '8': '۸',
  5892. '9': '۹',
  5893. '0': '۰'
  5894. }, fa__numberMap = {
  5895. '۱': '1',
  5896. '۲': '2',
  5897. '۳': '3',
  5898. '۴': '4',
  5899. '۵': '5',
  5900. '۶': '6',
  5901. '۷': '7',
  5902. '۸': '8',
  5903. '۹': '9',
  5904. '۰': '0'
  5905. };
  5906. var fa = moment__default.defineLocale('fa', {
  5907. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  5908. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  5909. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  5910. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  5911. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  5912. weekdaysParseExact : true,
  5913. longDateFormat : {
  5914. LT : 'HH:mm',
  5915. LTS : 'HH:mm:ss',
  5916. L : 'DD/MM/YYYY',
  5917. LL : 'D MMMM YYYY',
  5918. LLL : 'D MMMM YYYY HH:mm',
  5919. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5920. },
  5921. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  5922. isPM: function (input) {
  5923. return /بعد از ظهر/.test(input);
  5924. },
  5925. meridiem : function (hour, minute, isLower) {
  5926. if (hour < 12) {
  5927. return 'قبل از ظهر';
  5928. } else {
  5929. return 'بعد از ظهر';
  5930. }
  5931. },
  5932. calendar : {
  5933. sameDay : '[امروز ساعت] LT',
  5934. nextDay : '[فردا ساعت] LT',
  5935. nextWeek : 'dddd [ساعت] LT',
  5936. lastDay : '[دیروز ساعت] LT',
  5937. lastWeek : 'dddd [پیش] [ساعت] LT',
  5938. sameElse : 'L'
  5939. },
  5940. relativeTime : {
  5941. future : 'در %s',
  5942. past : '%s پیش',
  5943. s : 'چندین ثانیه',
  5944. m : 'یک دقیقه',
  5945. mm : '%d دقیقه',
  5946. h : 'یک ساعت',
  5947. hh : '%d ساعت',
  5948. d : 'یک روز',
  5949. dd : '%d روز',
  5950. M : 'یک ماه',
  5951. MM : '%d ماه',
  5952. y : 'یک سال',
  5953. yy : '%d سال'
  5954. },
  5955. preparse: function (string) {
  5956. return string.replace(/[۰-۹]/g, function (match) {
  5957. return fa__numberMap[match];
  5958. }).replace(/،/g, ',');
  5959. },
  5960. postformat: function (string) {
  5961. return string.replace(/\d/g, function (match) {
  5962. return fa__symbolMap[match];
  5963. }).replace(/,/g, '،');
  5964. },
  5965. ordinalParse: /\d{1,2}م/,
  5966. ordinal : '%dم',
  5967. week : {
  5968. dow : 6, // Saturday is the first day of the week.
  5969. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5970. }
  5971. });
  5972. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  5973. numbersFuture = [
  5974. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  5975. numbersPast[7], numbersPast[8], numbersPast[9]
  5976. ];
  5977. function fi__translate(number, withoutSuffix, key, isFuture) {
  5978. var result = '';
  5979. switch (key) {
  5980. case 's':
  5981. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  5982. case 'm':
  5983. return isFuture ? 'minuutin' : 'minuutti';
  5984. case 'mm':
  5985. result = isFuture ? 'minuutin' : 'minuuttia';
  5986. break;
  5987. case 'h':
  5988. return isFuture ? 'tunnin' : 'tunti';
  5989. case 'hh':
  5990. result = isFuture ? 'tunnin' : 'tuntia';
  5991. break;
  5992. case 'd':
  5993. return isFuture ? 'päivän' : 'päivä';
  5994. case 'dd':
  5995. result = isFuture ? 'päivän' : 'päivää';
  5996. break;
  5997. case 'M':
  5998. return isFuture ? 'kuukauden' : 'kuukausi';
  5999. case 'MM':
  6000. result = isFuture ? 'kuukauden' : 'kuukautta';
  6001. break;
  6002. case 'y':
  6003. return isFuture ? 'vuoden' : 'vuosi';
  6004. case 'yy':
  6005. result = isFuture ? 'vuoden' : 'vuotta';
  6006. break;
  6007. }
  6008. result = verbalNumber(number, isFuture) + ' ' + result;
  6009. return result;
  6010. }
  6011. function verbalNumber(number, isFuture) {
  6012. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  6013. }
  6014. var fi = moment__default.defineLocale('fi', {
  6015. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  6016. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  6017. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  6018. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6019. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6020. longDateFormat : {
  6021. LT : 'HH.mm',
  6022. LTS : 'HH.mm.ss',
  6023. L : 'DD.MM.YYYY',
  6024. LL : 'Do MMMM[ta] YYYY',
  6025. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  6026. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  6027. l : 'D.M.YYYY',
  6028. ll : 'Do MMM YYYY',
  6029. lll : 'Do MMM YYYY, [klo] HH.mm',
  6030. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  6031. },
  6032. calendar : {
  6033. sameDay : '[tänään] [klo] LT',
  6034. nextDay : '[huomenna] [klo] LT',
  6035. nextWeek : 'dddd [klo] LT',
  6036. lastDay : '[eilen] [klo] LT',
  6037. lastWeek : '[viime] dddd[na] [klo] LT',
  6038. sameElse : 'L'
  6039. },
  6040. relativeTime : {
  6041. future : '%s päästä',
  6042. past : '%s sitten',
  6043. s : fi__translate,
  6044. m : fi__translate,
  6045. mm : fi__translate,
  6046. h : fi__translate,
  6047. hh : fi__translate,
  6048. d : fi__translate,
  6049. dd : fi__translate,
  6050. M : fi__translate,
  6051. MM : fi__translate,
  6052. y : fi__translate,
  6053. yy : fi__translate
  6054. },
  6055. ordinalParse: /\d{1,2}\./,
  6056. ordinal : '%d.',
  6057. week : {
  6058. dow : 1, // Monday is the first day of the week.
  6059. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6060. }
  6061. });
  6062. var fo = moment__default.defineLocale('fo', {
  6063. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  6064. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  6065. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  6066. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  6067. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  6068. longDateFormat : {
  6069. LT : 'HH:mm',
  6070. LTS : 'HH:mm:ss',
  6071. L : 'DD/MM/YYYY',
  6072. LL : 'D MMMM YYYY',
  6073. LLL : 'D MMMM YYYY HH:mm',
  6074. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  6075. },
  6076. calendar : {
  6077. sameDay : '[Í dag kl.] LT',
  6078. nextDay : '[Í morgin kl.] LT',
  6079. nextWeek : 'dddd [kl.] LT',
  6080. lastDay : '[Í gjár kl.] LT',
  6081. lastWeek : '[síðstu] dddd [kl] LT',
  6082. sameElse : 'L'
  6083. },
  6084. relativeTime : {
  6085. future : 'um %s',
  6086. past : '%s síðani',
  6087. s : 'fá sekund',
  6088. m : 'ein minutt',
  6089. mm : '%d minuttir',
  6090. h : 'ein tími',
  6091. hh : '%d tímar',
  6092. d : 'ein dagur',
  6093. dd : '%d dagar',
  6094. M : 'ein mánaði',
  6095. MM : '%d mánaðir',
  6096. y : 'eitt ár',
  6097. yy : '%d ár'
  6098. },
  6099. ordinalParse: /\d{1,2}\./,
  6100. ordinal : '%d.',
  6101. week : {
  6102. dow : 1, // Monday is the first day of the week.
  6103. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6104. }
  6105. });
  6106. var fr_ca = moment__default.defineLocale('fr-ca', {
  6107. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6108. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6109. monthsParseExact : true,
  6110. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6111. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6112. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6113. weekdaysParseExact : true,
  6114. longDateFormat : {
  6115. LT : 'HH:mm',
  6116. LTS : 'HH:mm:ss',
  6117. L : 'YYYY-MM-DD',
  6118. LL : 'D MMMM YYYY',
  6119. LLL : 'D MMMM YYYY HH:mm',
  6120. LLLL : 'dddd D MMMM YYYY HH:mm'
  6121. },
  6122. calendar : {
  6123. sameDay: '[Aujourd\'hui à] LT',
  6124. nextDay: '[Demain à] LT',
  6125. nextWeek: 'dddd [à] LT',
  6126. lastDay: '[Hier à] LT',
  6127. lastWeek: 'dddd [dernier à] LT',
  6128. sameElse: 'L'
  6129. },
  6130. relativeTime : {
  6131. future : 'dans %s',
  6132. past : 'il y a %s',
  6133. s : 'quelques secondes',
  6134. m : 'une minute',
  6135. mm : '%d minutes',
  6136. h : 'une heure',
  6137. hh : '%d heures',
  6138. d : 'un jour',
  6139. dd : '%d jours',
  6140. M : 'un mois',
  6141. MM : '%d mois',
  6142. y : 'un an',
  6143. yy : '%d ans'
  6144. },
  6145. ordinalParse: /\d{1,2}(er|e)/,
  6146. ordinal : function (number) {
  6147. return number + (number === 1 ? 'er' : 'e');
  6148. }
  6149. });
  6150. var fr_ch = moment__default.defineLocale('fr-ch', {
  6151. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6152. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6153. monthsParseExact : true,
  6154. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6155. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6156. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6157. weekdaysParseExact : true,
  6158. longDateFormat : {
  6159. LT : 'HH:mm',
  6160. LTS : 'HH:mm:ss',
  6161. L : 'DD.MM.YYYY',
  6162. LL : 'D MMMM YYYY',
  6163. LLL : 'D MMMM YYYY HH:mm',
  6164. LLLL : 'dddd D MMMM YYYY HH:mm'
  6165. },
  6166. calendar : {
  6167. sameDay: '[Aujourd\'hui à] LT',
  6168. nextDay: '[Demain à] LT',
  6169. nextWeek: 'dddd [à] LT',
  6170. lastDay: '[Hier à] LT',
  6171. lastWeek: 'dddd [dernier à] LT',
  6172. sameElse: 'L'
  6173. },
  6174. relativeTime : {
  6175. future : 'dans %s',
  6176. past : 'il y a %s',
  6177. s : 'quelques secondes',
  6178. m : 'une minute',
  6179. mm : '%d minutes',
  6180. h : 'une heure',
  6181. hh : '%d heures',
  6182. d : 'un jour',
  6183. dd : '%d jours',
  6184. M : 'un mois',
  6185. MM : '%d mois',
  6186. y : 'un an',
  6187. yy : '%d ans'
  6188. },
  6189. ordinalParse: /\d{1,2}(er|e)/,
  6190. ordinal : function (number) {
  6191. return number + (number === 1 ? 'er' : 'e');
  6192. },
  6193. week : {
  6194. dow : 1, // Monday is the first day of the week.
  6195. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6196. }
  6197. });
  6198. var fr = moment__default.defineLocale('fr', {
  6199. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6200. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6201. monthsParseExact : true,
  6202. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6203. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6204. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6205. weekdaysParseExact : true,
  6206. longDateFormat : {
  6207. LT : 'HH:mm',
  6208. LTS : 'HH:mm:ss',
  6209. L : 'DD/MM/YYYY',
  6210. LL : 'D MMMM YYYY',
  6211. LLL : 'D MMMM YYYY HH:mm',
  6212. LLLL : 'dddd D MMMM YYYY HH:mm'
  6213. },
  6214. calendar : {
  6215. sameDay: '[Aujourd\'hui à] LT',
  6216. nextDay: '[Demain à] LT',
  6217. nextWeek: 'dddd [à] LT',
  6218. lastDay: '[Hier à] LT',
  6219. lastWeek: 'dddd [dernier à] LT',
  6220. sameElse: 'L'
  6221. },
  6222. relativeTime : {
  6223. future : 'dans %s',
  6224. past : 'il y a %s',
  6225. s : 'quelques secondes',
  6226. m : 'une minute',
  6227. mm : '%d minutes',
  6228. h : 'une heure',
  6229. hh : '%d heures',
  6230. d : 'un jour',
  6231. dd : '%d jours',
  6232. M : 'un mois',
  6233. MM : '%d mois',
  6234. y : 'un an',
  6235. yy : '%d ans'
  6236. },
  6237. ordinalParse: /\d{1,2}(er|)/,
  6238. ordinal : function (number) {
  6239. return number + (number === 1 ? 'er' : '');
  6240. },
  6241. week : {
  6242. dow : 1, // Monday is the first day of the week.
  6243. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6244. }
  6245. });
  6246. var fy__monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  6247. fy__monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  6248. var fy = moment__default.defineLocale('fy', {
  6249. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  6250. monthsShort : function (m, format) {
  6251. if (/-MMM-/.test(format)) {
  6252. return fy__monthsShortWithoutDots[m.month()];
  6253. } else {
  6254. return fy__monthsShortWithDots[m.month()];
  6255. }
  6256. },
  6257. monthsParseExact : true,
  6258. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  6259. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  6260. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  6261. weekdaysParseExact : true,
  6262. longDateFormat : {
  6263. LT : 'HH:mm',
  6264. LTS : 'HH:mm:ss',
  6265. L : 'DD-MM-YYYY',
  6266. LL : 'D MMMM YYYY',
  6267. LLL : 'D MMMM YYYY HH:mm',
  6268. LLLL : 'dddd D MMMM YYYY HH:mm'
  6269. },
  6270. calendar : {
  6271. sameDay: '[hjoed om] LT',
  6272. nextDay: '[moarn om] LT',
  6273. nextWeek: 'dddd [om] LT',
  6274. lastDay: '[juster om] LT',
  6275. lastWeek: '[ôfrûne] dddd [om] LT',
  6276. sameElse: 'L'
  6277. },
  6278. relativeTime : {
  6279. future : 'oer %s',
  6280. past : '%s lyn',
  6281. s : 'in pear sekonden',
  6282. m : 'ien minút',
  6283. mm : '%d minuten',
  6284. h : 'ien oere',
  6285. hh : '%d oeren',
  6286. d : 'ien dei',
  6287. dd : '%d dagen',
  6288. M : 'ien moanne',
  6289. MM : '%d moannen',
  6290. y : 'ien jier',
  6291. yy : '%d jierren'
  6292. },
  6293. ordinalParse: /\d{1,2}(ste|de)/,
  6294. ordinal : function (number) {
  6295. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  6296. },
  6297. week : {
  6298. dow : 1, // Monday is the first day of the week.
  6299. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6300. }
  6301. });
  6302. var gd__months = [
  6303. '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'
  6304. ];
  6305. var gd__monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  6306. var gd__weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  6307. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  6308. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  6309. var gd = moment__default.defineLocale('gd', {
  6310. months : gd__months,
  6311. monthsShort : gd__monthsShort,
  6312. monthsParseExact : true,
  6313. weekdays : gd__weekdays,
  6314. weekdaysShort : weekdaysShort,
  6315. weekdaysMin : weekdaysMin,
  6316. longDateFormat : {
  6317. LT : 'HH:mm',
  6318. LTS : 'HH:mm:ss',
  6319. L : 'DD/MM/YYYY',
  6320. LL : 'D MMMM YYYY',
  6321. LLL : 'D MMMM YYYY HH:mm',
  6322. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6323. },
  6324. calendar : {
  6325. sameDay : '[An-diugh aig] LT',
  6326. nextDay : '[A-màireach aig] LT',
  6327. nextWeek : 'dddd [aig] LT',
  6328. lastDay : '[An-dè aig] LT',
  6329. lastWeek : 'dddd [seo chaidh] [aig] LT',
  6330. sameElse : 'L'
  6331. },
  6332. relativeTime : {
  6333. future : 'ann an %s',
  6334. past : 'bho chionn %s',
  6335. s : 'beagan diogan',
  6336. m : 'mionaid',
  6337. mm : '%d mionaidean',
  6338. h : 'uair',
  6339. hh : '%d uairean',
  6340. d : 'latha',
  6341. dd : '%d latha',
  6342. M : 'mìos',
  6343. MM : '%d mìosan',
  6344. y : 'bliadhna',
  6345. yy : '%d bliadhna'
  6346. },
  6347. ordinalParse : /\d{1,2}(d|na|mh)/,
  6348. ordinal : function (number) {
  6349. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  6350. return number + output;
  6351. },
  6352. week : {
  6353. dow : 1, // Monday is the first day of the week.
  6354. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6355. }
  6356. });
  6357. var gl = moment__default.defineLocale('gl', {
  6358. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  6359. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  6360. monthsParseExact: true,
  6361. weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  6362. weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  6363. weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  6364. weekdaysParseExact : true,
  6365. longDateFormat : {
  6366. LT : 'H:mm',
  6367. LTS : 'H:mm:ss',
  6368. L : 'DD/MM/YYYY',
  6369. LL : 'D [de] MMMM [de] YYYY',
  6370. LLL : 'D [de] MMMM [de] YYYY H:mm',
  6371. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  6372. },
  6373. calendar : {
  6374. sameDay : function () {
  6375. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6376. },
  6377. nextDay : function () {
  6378. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6379. },
  6380. nextWeek : function () {
  6381. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6382. },
  6383. lastDay : function () {
  6384. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  6385. },
  6386. lastWeek : function () {
  6387. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6388. },
  6389. sameElse : 'L'
  6390. },
  6391. relativeTime : {
  6392. future : function (str) {
  6393. if (str.indexOf('un') === 0) {
  6394. return 'n' + str;
  6395. }
  6396. return 'en ' + str;
  6397. },
  6398. past : 'hai %s',
  6399. s : 'uns segundos',
  6400. m : 'un minuto',
  6401. mm : '%d minutos',
  6402. h : 'unha hora',
  6403. hh : '%d horas',
  6404. d : 'un día',
  6405. dd : '%d días',
  6406. M : 'un mes',
  6407. MM : '%d meses',
  6408. y : 'un ano',
  6409. yy : '%d anos'
  6410. },
  6411. ordinalParse : /\d{1,2}º/,
  6412. ordinal : '%dº',
  6413. week : {
  6414. dow : 1, // Monday is the first day of the week.
  6415. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6416. }
  6417. });
  6418. var he = moment__default.defineLocale('he', {
  6419. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  6420. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  6421. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  6422. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  6423. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  6424. longDateFormat : {
  6425. LT : 'HH:mm',
  6426. LTS : 'HH:mm:ss',
  6427. L : 'DD/MM/YYYY',
  6428. LL : 'D [ב]MMMM YYYY',
  6429. LLL : 'D [ב]MMMM YYYY HH:mm',
  6430. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  6431. l : 'D/M/YYYY',
  6432. ll : 'D MMM YYYY',
  6433. lll : 'D MMM YYYY HH:mm',
  6434. llll : 'ddd, D MMM YYYY HH:mm'
  6435. },
  6436. calendar : {
  6437. sameDay : '[היום ב־]LT',
  6438. nextDay : '[מחר ב־]LT',
  6439. nextWeek : 'dddd [בשעה] LT',
  6440. lastDay : '[אתמול ב־]LT',
  6441. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  6442. sameElse : 'L'
  6443. },
  6444. relativeTime : {
  6445. future : 'בעוד %s',
  6446. past : 'לפני %s',
  6447. s : 'מספר שניות',
  6448. m : 'דקה',
  6449. mm : '%d דקות',
  6450. h : 'שעה',
  6451. hh : function (number) {
  6452. if (number === 2) {
  6453. return 'שעתיים';
  6454. }
  6455. return number + ' שעות';
  6456. },
  6457. d : 'יום',
  6458. dd : function (number) {
  6459. if (number === 2) {
  6460. return 'יומיים';
  6461. }
  6462. return number + ' ימים';
  6463. },
  6464. M : 'חודש',
  6465. MM : function (number) {
  6466. if (number === 2) {
  6467. return 'חודשיים';
  6468. }
  6469. return number + ' חודשים';
  6470. },
  6471. y : 'שנה',
  6472. yy : function (number) {
  6473. if (number === 2) {
  6474. return 'שנתיים';
  6475. } else if (number % 10 === 0 && number !== 10) {
  6476. return number + ' שנה';
  6477. }
  6478. return number + ' שנים';
  6479. }
  6480. },
  6481. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  6482. isPM : function (input) {
  6483. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  6484. },
  6485. meridiem : function (hour, minute, isLower) {
  6486. if (hour < 5) {
  6487. return 'לפנות בוקר';
  6488. } else if (hour < 10) {
  6489. return 'בבוקר';
  6490. } else if (hour < 12) {
  6491. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  6492. } else if (hour < 18) {
  6493. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  6494. } else {
  6495. return 'בערב';
  6496. }
  6497. }
  6498. });
  6499. var hi__symbolMap = {
  6500. '1': '१',
  6501. '2': '२',
  6502. '3': '३',
  6503. '4': '४',
  6504. '5': '५',
  6505. '6': '६',
  6506. '7': '७',
  6507. '8': '८',
  6508. '9': '९',
  6509. '0': '०'
  6510. },
  6511. hi__numberMap = {
  6512. '१': '1',
  6513. '२': '2',
  6514. '३': '3',
  6515. '४': '4',
  6516. '५': '5',
  6517. '६': '6',
  6518. '७': '7',
  6519. '८': '8',
  6520. '९': '9',
  6521. '०': '0'
  6522. };
  6523. var hi = moment__default.defineLocale('hi', {
  6524. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  6525. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  6526. monthsParseExact: true,
  6527. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  6528. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  6529. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  6530. longDateFormat : {
  6531. LT : 'A h:mm बजे',
  6532. LTS : 'A h:mm:ss बजे',
  6533. L : 'DD/MM/YYYY',
  6534. LL : 'D MMMM YYYY',
  6535. LLL : 'D MMMM YYYY, A h:mm बजे',
  6536. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  6537. },
  6538. calendar : {
  6539. sameDay : '[आज] LT',
  6540. nextDay : '[कल] LT',
  6541. nextWeek : 'dddd, LT',
  6542. lastDay : '[कल] LT',
  6543. lastWeek : '[पिछले] dddd, LT',
  6544. sameElse : 'L'
  6545. },
  6546. relativeTime : {
  6547. future : '%s में',
  6548. past : '%s पहले',
  6549. s : 'कुछ ही क्षण',
  6550. m : 'एक मिनट',
  6551. mm : '%d मिनट',
  6552. h : 'एक घंटा',
  6553. hh : '%d घंटे',
  6554. d : 'एक दिन',
  6555. dd : '%d दिन',
  6556. M : 'एक महीने',
  6557. MM : '%d महीने',
  6558. y : 'एक वर्ष',
  6559. yy : '%d वर्ष'
  6560. },
  6561. preparse: function (string) {
  6562. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  6563. return hi__numberMap[match];
  6564. });
  6565. },
  6566. postformat: function (string) {
  6567. return string.replace(/\d/g, function (match) {
  6568. return hi__symbolMap[match];
  6569. });
  6570. },
  6571. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  6572. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  6573. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  6574. meridiemHour : function (hour, meridiem) {
  6575. if (hour === 12) {
  6576. hour = 0;
  6577. }
  6578. if (meridiem === 'रात') {
  6579. return hour < 4 ? hour : hour + 12;
  6580. } else if (meridiem === 'सुबह') {
  6581. return hour;
  6582. } else if (meridiem === 'दोपहर') {
  6583. return hour >= 10 ? hour : hour + 12;
  6584. } else if (meridiem === 'शाम') {
  6585. return hour + 12;
  6586. }
  6587. },
  6588. meridiem : function (hour, minute, isLower) {
  6589. if (hour < 4) {
  6590. return 'रात';
  6591. } else if (hour < 10) {
  6592. return 'सुबह';
  6593. } else if (hour < 17) {
  6594. return 'दोपहर';
  6595. } else if (hour < 20) {
  6596. return 'शाम';
  6597. } else {
  6598. return 'रात';
  6599. }
  6600. },
  6601. week : {
  6602. dow : 0, // Sunday is the first day of the week.
  6603. doy : 6 // The week that contains Jan 1st is the first week of the year.
  6604. }
  6605. });
  6606. function hr__translate(number, withoutSuffix, key) {
  6607. var result = number + ' ';
  6608. switch (key) {
  6609. case 'm':
  6610. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6611. case 'mm':
  6612. if (number === 1) {
  6613. result += 'minuta';
  6614. } else if (number === 2 || number === 3 || number === 4) {
  6615. result += 'minute';
  6616. } else {
  6617. result += 'minuta';
  6618. }
  6619. return result;
  6620. case 'h':
  6621. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6622. case 'hh':
  6623. if (number === 1) {
  6624. result += 'sat';
  6625. } else if (number === 2 || number === 3 || number === 4) {
  6626. result += 'sata';
  6627. } else {
  6628. result += 'sati';
  6629. }
  6630. return result;
  6631. case 'dd':
  6632. if (number === 1) {
  6633. result += 'dan';
  6634. } else {
  6635. result += 'dana';
  6636. }
  6637. return result;
  6638. case 'MM':
  6639. if (number === 1) {
  6640. result += 'mjesec';
  6641. } else if (number === 2 || number === 3 || number === 4) {
  6642. result += 'mjeseca';
  6643. } else {
  6644. result += 'mjeseci';
  6645. }
  6646. return result;
  6647. case 'yy':
  6648. if (number === 1) {
  6649. result += 'godina';
  6650. } else if (number === 2 || number === 3 || number === 4) {
  6651. result += 'godine';
  6652. } else {
  6653. result += 'godina';
  6654. }
  6655. return result;
  6656. }
  6657. }
  6658. var hr = moment__default.defineLocale('hr', {
  6659. months : {
  6660. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  6661. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  6662. },
  6663. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  6664. monthsParseExact: true,
  6665. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  6666. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6667. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  6668. weekdaysParseExact : true,
  6669. longDateFormat : {
  6670. LT : 'H:mm',
  6671. LTS : 'H:mm:ss',
  6672. L : 'DD.MM.YYYY',
  6673. LL : 'D. MMMM YYYY',
  6674. LLL : 'D. MMMM YYYY H:mm',
  6675. LLLL : 'dddd, D. MMMM YYYY H:mm'
  6676. },
  6677. calendar : {
  6678. sameDay : '[danas u] LT',
  6679. nextDay : '[sutra u] LT',
  6680. nextWeek : function () {
  6681. switch (this.day()) {
  6682. case 0:
  6683. return '[u] [nedjelju] [u] LT';
  6684. case 3:
  6685. return '[u] [srijedu] [u] LT';
  6686. case 6:
  6687. return '[u] [subotu] [u] LT';
  6688. case 1:
  6689. case 2:
  6690. case 4:
  6691. case 5:
  6692. return '[u] dddd [u] LT';
  6693. }
  6694. },
  6695. lastDay : '[jučer u] LT',
  6696. lastWeek : function () {
  6697. switch (this.day()) {
  6698. case 0:
  6699. case 3:
  6700. return '[prošlu] dddd [u] LT';
  6701. case 6:
  6702. return '[prošle] [subote] [u] LT';
  6703. case 1:
  6704. case 2:
  6705. case 4:
  6706. case 5:
  6707. return '[prošli] dddd [u] LT';
  6708. }
  6709. },
  6710. sameElse : 'L'
  6711. },
  6712. relativeTime : {
  6713. future : 'za %s',
  6714. past : 'prije %s',
  6715. s : 'par sekundi',
  6716. m : hr__translate,
  6717. mm : hr__translate,
  6718. h : hr__translate,
  6719. hh : hr__translate,
  6720. d : 'dan',
  6721. dd : hr__translate,
  6722. M : 'mjesec',
  6723. MM : hr__translate,
  6724. y : 'godinu',
  6725. yy : hr__translate
  6726. },
  6727. ordinalParse: /\d{1,2}\./,
  6728. ordinal : '%d.',
  6729. week : {
  6730. dow : 1, // Monday is the first day of the week.
  6731. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6732. }
  6733. });
  6734. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  6735. function hu__translate(number, withoutSuffix, key, isFuture) {
  6736. var num = number,
  6737. suffix;
  6738. switch (key) {
  6739. case 's':
  6740. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  6741. case 'm':
  6742. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  6743. case 'mm':
  6744. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  6745. case 'h':
  6746. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  6747. case 'hh':
  6748. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  6749. case 'd':
  6750. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  6751. case 'dd':
  6752. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  6753. case 'M':
  6754. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  6755. case 'MM':
  6756. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  6757. case 'y':
  6758. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  6759. case 'yy':
  6760. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  6761. }
  6762. return '';
  6763. }
  6764. function week(isFuture) {
  6765. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  6766. }
  6767. var hu = moment__default.defineLocale('hu', {
  6768. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  6769. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  6770. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  6771. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  6772. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  6773. longDateFormat : {
  6774. LT : 'H:mm',
  6775. LTS : 'H:mm:ss',
  6776. L : 'YYYY.MM.DD.',
  6777. LL : 'YYYY. MMMM D.',
  6778. LLL : 'YYYY. MMMM D. H:mm',
  6779. LLLL : 'YYYY. MMMM D., dddd H:mm'
  6780. },
  6781. meridiemParse: /de|du/i,
  6782. isPM: function (input) {
  6783. return input.charAt(1).toLowerCase() === 'u';
  6784. },
  6785. meridiem : function (hours, minutes, isLower) {
  6786. if (hours < 12) {
  6787. return isLower === true ? 'de' : 'DE';
  6788. } else {
  6789. return isLower === true ? 'du' : 'DU';
  6790. }
  6791. },
  6792. calendar : {
  6793. sameDay : '[ma] LT[-kor]',
  6794. nextDay : '[holnap] LT[-kor]',
  6795. nextWeek : function () {
  6796. return week.call(this, true);
  6797. },
  6798. lastDay : '[tegnap] LT[-kor]',
  6799. lastWeek : function () {
  6800. return week.call(this, false);
  6801. },
  6802. sameElse : 'L'
  6803. },
  6804. relativeTime : {
  6805. future : '%s múlva',
  6806. past : '%s',
  6807. s : hu__translate,
  6808. m : hu__translate,
  6809. mm : hu__translate,
  6810. h : hu__translate,
  6811. hh : hu__translate,
  6812. d : hu__translate,
  6813. dd : hu__translate,
  6814. M : hu__translate,
  6815. MM : hu__translate,
  6816. y : hu__translate,
  6817. yy : hu__translate
  6818. },
  6819. ordinalParse: /\d{1,2}\./,
  6820. ordinal : '%d.',
  6821. week : {
  6822. dow : 1, // Monday is the first day of the week.
  6823. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6824. }
  6825. });
  6826. var hy_am = moment__default.defineLocale('hy-am', {
  6827. months : {
  6828. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  6829. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  6830. },
  6831. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  6832. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  6833. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  6834. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  6835. longDateFormat : {
  6836. LT : 'HH:mm',
  6837. LTS : 'HH:mm:ss',
  6838. L : 'DD.MM.YYYY',
  6839. LL : 'D MMMM YYYY թ.',
  6840. LLL : 'D MMMM YYYY թ., HH:mm',
  6841. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  6842. },
  6843. calendar : {
  6844. sameDay: '[այսօր] LT',
  6845. nextDay: '[վաղը] LT',
  6846. lastDay: '[երեկ] LT',
  6847. nextWeek: function () {
  6848. return 'dddd [օրը ժամը] LT';
  6849. },
  6850. lastWeek: function () {
  6851. return '[անցած] dddd [օրը ժամը] LT';
  6852. },
  6853. sameElse: 'L'
  6854. },
  6855. relativeTime : {
  6856. future : '%s հետո',
  6857. past : '%s առաջ',
  6858. s : 'մի քանի վայրկյան',
  6859. m : 'րոպե',
  6860. mm : '%d րոպե',
  6861. h : 'ժամ',
  6862. hh : '%d ժամ',
  6863. d : 'օր',
  6864. dd : '%d օր',
  6865. M : 'ամիս',
  6866. MM : '%d ամիս',
  6867. y : 'տարի',
  6868. yy : '%d տարի'
  6869. },
  6870. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  6871. isPM: function (input) {
  6872. return /^(ցերեկվա|երեկոյան)$/.test(input);
  6873. },
  6874. meridiem : function (hour) {
  6875. if (hour < 4) {
  6876. return 'գիշերվա';
  6877. } else if (hour < 12) {
  6878. return 'առավոտվա';
  6879. } else if (hour < 17) {
  6880. return 'ցերեկվա';
  6881. } else {
  6882. return 'երեկոյան';
  6883. }
  6884. },
  6885. ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  6886. ordinal: function (number, period) {
  6887. switch (period) {
  6888. case 'DDD':
  6889. case 'w':
  6890. case 'W':
  6891. case 'DDDo':
  6892. if (number === 1) {
  6893. return number + '-ին';
  6894. }
  6895. return number + '-րդ';
  6896. default:
  6897. return number;
  6898. }
  6899. },
  6900. week : {
  6901. dow : 1, // Monday is the first day of the week.
  6902. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6903. }
  6904. });
  6905. var id = moment__default.defineLocale('id', {
  6906. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  6907. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  6908. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  6909. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  6910. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  6911. longDateFormat : {
  6912. LT : 'HH.mm',
  6913. LTS : 'HH.mm.ss',
  6914. L : 'DD/MM/YYYY',
  6915. LL : 'D MMMM YYYY',
  6916. LLL : 'D MMMM YYYY [pukul] HH.mm',
  6917. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  6918. },
  6919. meridiemParse: /pagi|siang|sore|malam/,
  6920. meridiemHour : function (hour, meridiem) {
  6921. if (hour === 12) {
  6922. hour = 0;
  6923. }
  6924. if (meridiem === 'pagi') {
  6925. return hour;
  6926. } else if (meridiem === 'siang') {
  6927. return hour >= 11 ? hour : hour + 12;
  6928. } else if (meridiem === 'sore' || meridiem === 'malam') {
  6929. return hour + 12;
  6930. }
  6931. },
  6932. meridiem : function (hours, minutes, isLower) {
  6933. if (hours < 11) {
  6934. return 'pagi';
  6935. } else if (hours < 15) {
  6936. return 'siang';
  6937. } else if (hours < 19) {
  6938. return 'sore';
  6939. } else {
  6940. return 'malam';
  6941. }
  6942. },
  6943. calendar : {
  6944. sameDay : '[Hari ini pukul] LT',
  6945. nextDay : '[Besok pukul] LT',
  6946. nextWeek : 'dddd [pukul] LT',
  6947. lastDay : '[Kemarin pukul] LT',
  6948. lastWeek : 'dddd [lalu pukul] LT',
  6949. sameElse : 'L'
  6950. },
  6951. relativeTime : {
  6952. future : 'dalam %s',
  6953. past : '%s yang lalu',
  6954. s : 'beberapa detik',
  6955. m : 'semenit',
  6956. mm : '%d menit',
  6957. h : 'sejam',
  6958. hh : '%d jam',
  6959. d : 'sehari',
  6960. dd : '%d hari',
  6961. M : 'sebulan',
  6962. MM : '%d bulan',
  6963. y : 'setahun',
  6964. yy : '%d tahun'
  6965. },
  6966. week : {
  6967. dow : 1, // Monday is the first day of the week.
  6968. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6969. }
  6970. });
  6971. function is__plural(n) {
  6972. if (n % 100 === 11) {
  6973. return true;
  6974. } else if (n % 10 === 1) {
  6975. return false;
  6976. }
  6977. return true;
  6978. }
  6979. function is__translate(number, withoutSuffix, key, isFuture) {
  6980. var result = number + ' ';
  6981. switch (key) {
  6982. case 's':
  6983. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  6984. case 'm':
  6985. return withoutSuffix ? 'mínúta' : 'mínútu';
  6986. case 'mm':
  6987. if (is__plural(number)) {
  6988. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  6989. } else if (withoutSuffix) {
  6990. return result + 'mínúta';
  6991. }
  6992. return result + 'mínútu';
  6993. case 'hh':
  6994. if (is__plural(number)) {
  6995. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  6996. }
  6997. return result + 'klukkustund';
  6998. case 'd':
  6999. if (withoutSuffix) {
  7000. return 'dagur';
  7001. }
  7002. return isFuture ? 'dag' : 'degi';
  7003. case 'dd':
  7004. if (is__plural(number)) {
  7005. if (withoutSuffix) {
  7006. return result + 'dagar';
  7007. }
  7008. return result + (isFuture ? 'daga' : 'dögum');
  7009. } else if (withoutSuffix) {
  7010. return result + 'dagur';
  7011. }
  7012. return result + (isFuture ? 'dag' : 'degi');
  7013. case 'M':
  7014. if (withoutSuffix) {
  7015. return 'mánuður';
  7016. }
  7017. return isFuture ? 'mánuð' : 'mánuði';
  7018. case 'MM':
  7019. if (is__plural(number)) {
  7020. if (withoutSuffix) {
  7021. return result + 'mánuðir';
  7022. }
  7023. return result + (isFuture ? 'mánuði' : 'mánuðum');
  7024. } else if (withoutSuffix) {
  7025. return result + 'mánuður';
  7026. }
  7027. return result + (isFuture ? 'mánuð' : 'mánuði');
  7028. case 'y':
  7029. return withoutSuffix || isFuture ? 'ár' : 'ári';
  7030. case 'yy':
  7031. if (is__plural(number)) {
  7032. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  7033. }
  7034. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  7035. }
  7036. }
  7037. var is = moment__default.defineLocale('is', {
  7038. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  7039. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  7040. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  7041. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  7042. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  7043. longDateFormat : {
  7044. LT : 'H:mm',
  7045. LTS : 'H:mm:ss',
  7046. L : 'DD.MM.YYYY',
  7047. LL : 'D. MMMM YYYY',
  7048. LLL : 'D. MMMM YYYY [kl.] H:mm',
  7049. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  7050. },
  7051. calendar : {
  7052. sameDay : '[í dag kl.] LT',
  7053. nextDay : '[á morgun kl.] LT',
  7054. nextWeek : 'dddd [kl.] LT',
  7055. lastDay : '[í gær kl.] LT',
  7056. lastWeek : '[síðasta] dddd [kl.] LT',
  7057. sameElse : 'L'
  7058. },
  7059. relativeTime : {
  7060. future : 'eftir %s',
  7061. past : 'fyrir %s síðan',
  7062. s : is__translate,
  7063. m : is__translate,
  7064. mm : is__translate,
  7065. h : 'klukkustund',
  7066. hh : is__translate,
  7067. d : is__translate,
  7068. dd : is__translate,
  7069. M : is__translate,
  7070. MM : is__translate,
  7071. y : is__translate,
  7072. yy : is__translate
  7073. },
  7074. ordinalParse: /\d{1,2}\./,
  7075. ordinal : '%d.',
  7076. week : {
  7077. dow : 1, // Monday is the first day of the week.
  7078. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7079. }
  7080. });
  7081. var it = moment__default.defineLocale('it', {
  7082. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  7083. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  7084. weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
  7085. weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
  7086. weekdaysMin : 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),
  7087. longDateFormat : {
  7088. LT : 'HH:mm',
  7089. LTS : 'HH:mm:ss',
  7090. L : 'DD/MM/YYYY',
  7091. LL : 'D MMMM YYYY',
  7092. LLL : 'D MMMM YYYY HH:mm',
  7093. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7094. },
  7095. calendar : {
  7096. sameDay: '[Oggi alle] LT',
  7097. nextDay: '[Domani alle] LT',
  7098. nextWeek: 'dddd [alle] LT',
  7099. lastDay: '[Ieri alle] LT',
  7100. lastWeek: function () {
  7101. switch (this.day()) {
  7102. case 0:
  7103. return '[la scorsa] dddd [alle] LT';
  7104. default:
  7105. return '[lo scorso] dddd [alle] LT';
  7106. }
  7107. },
  7108. sameElse: 'L'
  7109. },
  7110. relativeTime : {
  7111. future : function (s) {
  7112. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  7113. },
  7114. past : '%s fa',
  7115. s : 'alcuni secondi',
  7116. m : 'un minuto',
  7117. mm : '%d minuti',
  7118. h : 'un\'ora',
  7119. hh : '%d ore',
  7120. d : 'un giorno',
  7121. dd : '%d giorni',
  7122. M : 'un mese',
  7123. MM : '%d mesi',
  7124. y : 'un anno',
  7125. yy : '%d anni'
  7126. },
  7127. ordinalParse : /\d{1,2}º/,
  7128. ordinal: '%dº',
  7129. week : {
  7130. dow : 1, // Monday is the first day of the week.
  7131. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7132. }
  7133. });
  7134. var ja = moment__default.defineLocale('ja', {
  7135. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  7136. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  7137. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  7138. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  7139. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  7140. longDateFormat : {
  7141. LT : 'Ah時m分',
  7142. LTS : 'Ah時m分s秒',
  7143. L : 'YYYY/MM/DD',
  7144. LL : 'YYYY年M月D日',
  7145. LLL : 'YYYY年M月D日Ah時m分',
  7146. LLLL : 'YYYY年M月D日Ah時m分 dddd'
  7147. },
  7148. meridiemParse: /午前|午後/i,
  7149. isPM : function (input) {
  7150. return input === '午後';
  7151. },
  7152. meridiem : function (hour, minute, isLower) {
  7153. if (hour < 12) {
  7154. return '午前';
  7155. } else {
  7156. return '午後';
  7157. }
  7158. },
  7159. calendar : {
  7160. sameDay : '[今日] LT',
  7161. nextDay : '[明日] LT',
  7162. nextWeek : '[来週]dddd LT',
  7163. lastDay : '[昨日] LT',
  7164. lastWeek : '[前週]dddd LT',
  7165. sameElse : 'L'
  7166. },
  7167. ordinalParse : /\d{1,2}日/,
  7168. ordinal : function (number, period) {
  7169. switch (period) {
  7170. case 'd':
  7171. case 'D':
  7172. case 'DDD':
  7173. return number + '日';
  7174. default:
  7175. return number;
  7176. }
  7177. },
  7178. relativeTime : {
  7179. future : '%s後',
  7180. past : '%s前',
  7181. s : '数秒',
  7182. m : '1分',
  7183. mm : '%d分',
  7184. h : '1時間',
  7185. hh : '%d時間',
  7186. d : '1日',
  7187. dd : '%d日',
  7188. M : '1ヶ月',
  7189. MM : '%dヶ月',
  7190. y : '1年',
  7191. yy : '%d年'
  7192. }
  7193. });
  7194. var jv = moment__default.defineLocale('jv', {
  7195. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  7196. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  7197. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  7198. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  7199. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  7200. longDateFormat : {
  7201. LT : 'HH.mm',
  7202. LTS : 'HH.mm.ss',
  7203. L : 'DD/MM/YYYY',
  7204. LL : 'D MMMM YYYY',
  7205. LLL : 'D MMMM YYYY [pukul] HH.mm',
  7206. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  7207. },
  7208. meridiemParse: /enjing|siyang|sonten|ndalu/,
  7209. meridiemHour : function (hour, meridiem) {
  7210. if (hour === 12) {
  7211. hour = 0;
  7212. }
  7213. if (meridiem === 'enjing') {
  7214. return hour;
  7215. } else if (meridiem === 'siyang') {
  7216. return hour >= 11 ? hour : hour + 12;
  7217. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  7218. return hour + 12;
  7219. }
  7220. },
  7221. meridiem : function (hours, minutes, isLower) {
  7222. if (hours < 11) {
  7223. return 'enjing';
  7224. } else if (hours < 15) {
  7225. return 'siyang';
  7226. } else if (hours < 19) {
  7227. return 'sonten';
  7228. } else {
  7229. return 'ndalu';
  7230. }
  7231. },
  7232. calendar : {
  7233. sameDay : '[Dinten puniko pukul] LT',
  7234. nextDay : '[Mbenjang pukul] LT',
  7235. nextWeek : 'dddd [pukul] LT',
  7236. lastDay : '[Kala wingi pukul] LT',
  7237. lastWeek : 'dddd [kepengker pukul] LT',
  7238. sameElse : 'L'
  7239. },
  7240. relativeTime : {
  7241. future : 'wonten ing %s',
  7242. past : '%s ingkang kepengker',
  7243. s : 'sawetawis detik',
  7244. m : 'setunggal menit',
  7245. mm : '%d menit',
  7246. h : 'setunggal jam',
  7247. hh : '%d jam',
  7248. d : 'sedinten',
  7249. dd : '%d dinten',
  7250. M : 'sewulan',
  7251. MM : '%d wulan',
  7252. y : 'setaun',
  7253. yy : '%d taun'
  7254. },
  7255. week : {
  7256. dow : 1, // Monday is the first day of the week.
  7257. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7258. }
  7259. });
  7260. var ka = moment__default.defineLocale('ka', {
  7261. months : {
  7262. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  7263. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  7264. },
  7265. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  7266. weekdays : {
  7267. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  7268. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  7269. isFormat: /(წინა|შემდეგ)/
  7270. },
  7271. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  7272. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  7273. longDateFormat : {
  7274. LT : 'h:mm A',
  7275. LTS : 'h:mm:ss A',
  7276. L : 'DD/MM/YYYY',
  7277. LL : 'D MMMM YYYY',
  7278. LLL : 'D MMMM YYYY h:mm A',
  7279. LLLL : 'dddd, D MMMM YYYY h:mm A'
  7280. },
  7281. calendar : {
  7282. sameDay : '[დღეს] LT[-ზე]',
  7283. nextDay : '[ხვალ] LT[-ზე]',
  7284. lastDay : '[გუშინ] LT[-ზე]',
  7285. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  7286. lastWeek : '[წინა] dddd LT-ზე',
  7287. sameElse : 'L'
  7288. },
  7289. relativeTime : {
  7290. future : function (s) {
  7291. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  7292. s.replace(/ი$/, 'ში') :
  7293. s + 'ში';
  7294. },
  7295. past : function (s) {
  7296. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  7297. return s.replace(/(ი|ე)$/, 'ის წინ');
  7298. }
  7299. if ((/წელი/).test(s)) {
  7300. return s.replace(/წელი$/, 'წლის წინ');
  7301. }
  7302. },
  7303. s : 'რამდენიმე წამი',
  7304. m : 'წუთი',
  7305. mm : '%d წუთი',
  7306. h : 'საათი',
  7307. hh : '%d საათი',
  7308. d : 'დღე',
  7309. dd : '%d დღე',
  7310. M : 'თვე',
  7311. MM : '%d თვე',
  7312. y : 'წელი',
  7313. yy : '%d წელი'
  7314. },
  7315. ordinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  7316. ordinal : function (number) {
  7317. if (number === 0) {
  7318. return number;
  7319. }
  7320. if (number === 1) {
  7321. return number + '-ლი';
  7322. }
  7323. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  7324. return 'მე-' + number;
  7325. }
  7326. return number + '-ე';
  7327. },
  7328. week : {
  7329. dow : 1,
  7330. doy : 7
  7331. }
  7332. });
  7333. var kk__suffixes = {
  7334. 0: '-ші',
  7335. 1: '-ші',
  7336. 2: '-ші',
  7337. 3: '-ші',
  7338. 4: '-ші',
  7339. 5: '-ші',
  7340. 6: '-шы',
  7341. 7: '-ші',
  7342. 8: '-ші',
  7343. 9: '-шы',
  7344. 10: '-шы',
  7345. 20: '-шы',
  7346. 30: '-шы',
  7347. 40: '-шы',
  7348. 50: '-ші',
  7349. 60: '-шы',
  7350. 70: '-ші',
  7351. 80: '-ші',
  7352. 90: '-шы',
  7353. 100: '-ші'
  7354. };
  7355. var kk = moment__default.defineLocale('kk', {
  7356. months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  7357. monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  7358. weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  7359. weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  7360. weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  7361. longDateFormat : {
  7362. LT : 'HH:mm',
  7363. LTS : 'HH:mm:ss',
  7364. L : 'DD.MM.YYYY',
  7365. LL : 'D MMMM YYYY',
  7366. LLL : 'D MMMM YYYY HH:mm',
  7367. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7368. },
  7369. calendar : {
  7370. sameDay : '[Бүгін сағат] LT',
  7371. nextDay : '[Ертең сағат] LT',
  7372. nextWeek : 'dddd [сағат] LT',
  7373. lastDay : '[Кеше сағат] LT',
  7374. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  7375. sameElse : 'L'
  7376. },
  7377. relativeTime : {
  7378. future : '%s ішінде',
  7379. past : '%s бұрын',
  7380. s : 'бірнеше секунд',
  7381. m : 'бір минут',
  7382. mm : '%d минут',
  7383. h : 'бір сағат',
  7384. hh : '%d сағат',
  7385. d : 'бір күн',
  7386. dd : '%d күн',
  7387. M : 'бір ай',
  7388. MM : '%d ай',
  7389. y : 'бір жыл',
  7390. yy : '%d жыл'
  7391. },
  7392. ordinalParse: /\d{1,2}-(ші|шы)/,
  7393. ordinal : function (number) {
  7394. var a = number % 10,
  7395. b = number >= 100 ? 100 : null;
  7396. return number + (kk__suffixes[number] || kk__suffixes[a] || kk__suffixes[b]);
  7397. },
  7398. week : {
  7399. dow : 1, // Monday is the first day of the week.
  7400. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7401. }
  7402. });
  7403. var km = moment__default.defineLocale('km', {
  7404. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  7405. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  7406. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  7407. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  7408. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  7409. longDateFormat: {
  7410. LT: 'HH:mm',
  7411. LTS : 'HH:mm:ss',
  7412. L: 'DD/MM/YYYY',
  7413. LL: 'D MMMM YYYY',
  7414. LLL: 'D MMMM YYYY HH:mm',
  7415. LLLL: 'dddd, D MMMM YYYY HH:mm'
  7416. },
  7417. calendar: {
  7418. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  7419. nextDay: '[ស្អែក ម៉ោង] LT',
  7420. nextWeek: 'dddd [ម៉ោង] LT',
  7421. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  7422. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  7423. sameElse: 'L'
  7424. },
  7425. relativeTime: {
  7426. future: '%sទៀត',
  7427. past: '%sមុន',
  7428. s: 'ប៉ុន្មានវិនាទី',
  7429. m: 'មួយនាទី',
  7430. mm: '%d នាទី',
  7431. h: 'មួយម៉ោង',
  7432. hh: '%d ម៉ោង',
  7433. d: 'មួយថ្ងៃ',
  7434. dd: '%d ថ្ងៃ',
  7435. M: 'មួយខែ',
  7436. MM: '%d ខែ',
  7437. y: 'មួយឆ្នាំ',
  7438. yy: '%d ឆ្នាំ'
  7439. },
  7440. week: {
  7441. dow: 1, // Monday is the first day of the week.
  7442. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7443. }
  7444. });
  7445. var ko = moment__default.defineLocale('ko', {
  7446. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  7447. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  7448. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  7449. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  7450. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  7451. longDateFormat : {
  7452. LT : 'A h시 m분',
  7453. LTS : 'A h시 m분 s초',
  7454. L : 'YYYY.MM.DD',
  7455. LL : 'YYYY년 MMMM D일',
  7456. LLL : 'YYYY년 MMMM D일 A h시 m분',
  7457. LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'
  7458. },
  7459. calendar : {
  7460. sameDay : '오늘 LT',
  7461. nextDay : '내일 LT',
  7462. nextWeek : 'dddd LT',
  7463. lastDay : '어제 LT',
  7464. lastWeek : '지난주 dddd LT',
  7465. sameElse : 'L'
  7466. },
  7467. relativeTime : {
  7468. future : '%s 후',
  7469. past : '%s 전',
  7470. s : '몇 초',
  7471. ss : '%d초',
  7472. m : '일분',
  7473. mm : '%d분',
  7474. h : '한 시간',
  7475. hh : '%d시간',
  7476. d : '하루',
  7477. dd : '%d일',
  7478. M : '한 달',
  7479. MM : '%d달',
  7480. y : '일 년',
  7481. yy : '%d년'
  7482. },
  7483. ordinalParse : /\d{1,2}일/,
  7484. ordinal : '%d일',
  7485. meridiemParse : /오전|오후/,
  7486. isPM : function (token) {
  7487. return token === '오후';
  7488. },
  7489. meridiem : function (hour, minute, isUpper) {
  7490. return hour < 12 ? '오전' : '오후';
  7491. }
  7492. });
  7493. var ky__suffixes = {
  7494. 0: '-чү',
  7495. 1: '-чи',
  7496. 2: '-чи',
  7497. 3: '-чү',
  7498. 4: '-чү',
  7499. 5: '-чи',
  7500. 6: '-чы',
  7501. 7: '-чи',
  7502. 8: '-чи',
  7503. 9: '-чу',
  7504. 10: '-чу',
  7505. 20: '-чы',
  7506. 30: '-чу',
  7507. 40: '-чы',
  7508. 50: '-чү',
  7509. 60: '-чы',
  7510. 70: '-чи',
  7511. 80: '-чи',
  7512. 90: '-чу',
  7513. 100: '-чү'
  7514. };
  7515. var ky = moment__default.defineLocale('ky', {
  7516. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  7517. monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  7518. weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  7519. weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  7520. weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  7521. longDateFormat : {
  7522. LT : 'HH:mm',
  7523. LTS : 'HH:mm:ss',
  7524. L : 'DD.MM.YYYY',
  7525. LL : 'D MMMM YYYY',
  7526. LLL : 'D MMMM YYYY HH:mm',
  7527. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7528. },
  7529. calendar : {
  7530. sameDay : '[Бүгүн саат] LT',
  7531. nextDay : '[Эртең саат] LT',
  7532. nextWeek : 'dddd [саат] LT',
  7533. lastDay : '[Кече саат] LT',
  7534. lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
  7535. sameElse : 'L'
  7536. },
  7537. relativeTime : {
  7538. future : '%s ичинде',
  7539. past : '%s мурун',
  7540. s : 'бирнече секунд',
  7541. m : 'бир мүнөт',
  7542. mm : '%d мүнөт',
  7543. h : 'бир саат',
  7544. hh : '%d саат',
  7545. d : 'бир күн',
  7546. dd : '%d күн',
  7547. M : 'бир ай',
  7548. MM : '%d ай',
  7549. y : 'бир жыл',
  7550. yy : '%d жыл'
  7551. },
  7552. ordinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  7553. ordinal : function (number) {
  7554. var a = number % 10,
  7555. b = number >= 100 ? 100 : null;
  7556. return number + (ky__suffixes[number] || ky__suffixes[a] || ky__suffixes[b]);
  7557. },
  7558. week : {
  7559. dow : 1, // Monday is the first day of the week.
  7560. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7561. }
  7562. });
  7563. function lb__processRelativeTime(number, withoutSuffix, key, isFuture) {
  7564. var format = {
  7565. 'm': ['eng Minutt', 'enger Minutt'],
  7566. 'h': ['eng Stonn', 'enger Stonn'],
  7567. 'd': ['een Dag', 'engem Dag'],
  7568. 'M': ['ee Mount', 'engem Mount'],
  7569. 'y': ['ee Joer', 'engem Joer']
  7570. };
  7571. return withoutSuffix ? format[key][0] : format[key][1];
  7572. }
  7573. function processFutureTime(string) {
  7574. var number = string.substr(0, string.indexOf(' '));
  7575. if (eifelerRegelAppliesToNumber(number)) {
  7576. return 'a ' + string;
  7577. }
  7578. return 'an ' + string;
  7579. }
  7580. function processPastTime(string) {
  7581. var number = string.substr(0, string.indexOf(' '));
  7582. if (eifelerRegelAppliesToNumber(number)) {
  7583. return 'viru ' + string;
  7584. }
  7585. return 'virun ' + string;
  7586. }
  7587. /**
  7588. * Returns true if the word before the given number loses the '-n' ending.
  7589. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  7590. *
  7591. * @param number {integer}
  7592. * @returns {boolean}
  7593. */
  7594. function eifelerRegelAppliesToNumber(number) {
  7595. number = parseInt(number, 10);
  7596. if (isNaN(number)) {
  7597. return false;
  7598. }
  7599. if (number < 0) {
  7600. // Negative Number --> always true
  7601. return true;
  7602. } else if (number < 10) {
  7603. // Only 1 digit
  7604. if (4 <= number && number <= 7) {
  7605. return true;
  7606. }
  7607. return false;
  7608. } else if (number < 100) {
  7609. // 2 digits
  7610. var lastDigit = number % 10, firstDigit = number / 10;
  7611. if (lastDigit === 0) {
  7612. return eifelerRegelAppliesToNumber(firstDigit);
  7613. }
  7614. return eifelerRegelAppliesToNumber(lastDigit);
  7615. } else if (number < 10000) {
  7616. // 3 or 4 digits --> recursively check first digit
  7617. while (number >= 10) {
  7618. number = number / 10;
  7619. }
  7620. return eifelerRegelAppliesToNumber(number);
  7621. } else {
  7622. // Anything larger than 4 digits: recursively check first n-3 digits
  7623. number = number / 1000;
  7624. return eifelerRegelAppliesToNumber(number);
  7625. }
  7626. }
  7627. var lb = moment__default.defineLocale('lb', {
  7628. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  7629. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  7630. monthsParseExact : true,
  7631. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  7632. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  7633. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  7634. weekdaysParseExact : true,
  7635. longDateFormat: {
  7636. LT: 'H:mm [Auer]',
  7637. LTS: 'H:mm:ss [Auer]',
  7638. L: 'DD.MM.YYYY',
  7639. LL: 'D. MMMM YYYY',
  7640. LLL: 'D. MMMM YYYY H:mm [Auer]',
  7641. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  7642. },
  7643. calendar: {
  7644. sameDay: '[Haut um] LT',
  7645. sameElse: 'L',
  7646. nextDay: '[Muer um] LT',
  7647. nextWeek: 'dddd [um] LT',
  7648. lastDay: '[Gëschter um] LT',
  7649. lastWeek: function () {
  7650. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  7651. switch (this.day()) {
  7652. case 2:
  7653. case 4:
  7654. return '[Leschten] dddd [um] LT';
  7655. default:
  7656. return '[Leschte] dddd [um] LT';
  7657. }
  7658. }
  7659. },
  7660. relativeTime : {
  7661. future : processFutureTime,
  7662. past : processPastTime,
  7663. s : 'e puer Sekonnen',
  7664. m : lb__processRelativeTime,
  7665. mm : '%d Minutten',
  7666. h : lb__processRelativeTime,
  7667. hh : '%d Stonnen',
  7668. d : lb__processRelativeTime,
  7669. dd : '%d Deeg',
  7670. M : lb__processRelativeTime,
  7671. MM : '%d Méint',
  7672. y : lb__processRelativeTime,
  7673. yy : '%d Joer'
  7674. },
  7675. ordinalParse: /\d{1,2}\./,
  7676. ordinal: '%d.',
  7677. week: {
  7678. dow: 1, // Monday is the first day of the week.
  7679. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7680. }
  7681. });
  7682. var lo = moment__default.defineLocale('lo', {
  7683. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  7684. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  7685. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  7686. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  7687. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  7688. weekdaysParseExact : true,
  7689. longDateFormat : {
  7690. LT : 'HH:mm',
  7691. LTS : 'HH:mm:ss',
  7692. L : 'DD/MM/YYYY',
  7693. LL : 'D MMMM YYYY',
  7694. LLL : 'D MMMM YYYY HH:mm',
  7695. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  7696. },
  7697. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  7698. isPM: function (input) {
  7699. return input === 'ຕອນແລງ';
  7700. },
  7701. meridiem : function (hour, minute, isLower) {
  7702. if (hour < 12) {
  7703. return 'ຕອນເຊົ້າ';
  7704. } else {
  7705. return 'ຕອນແລງ';
  7706. }
  7707. },
  7708. calendar : {
  7709. sameDay : '[ມື້ນີ້ເວລາ] LT',
  7710. nextDay : '[ມື້ອື່ນເວລາ] LT',
  7711. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  7712. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  7713. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  7714. sameElse : 'L'
  7715. },
  7716. relativeTime : {
  7717. future : 'ອີກ %s',
  7718. past : '%sຜ່ານມາ',
  7719. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  7720. m : '1 ນາທີ',
  7721. mm : '%d ນາທີ',
  7722. h : '1 ຊົ່ວໂມງ',
  7723. hh : '%d ຊົ່ວໂມງ',
  7724. d : '1 ມື້',
  7725. dd : '%d ມື້',
  7726. M : '1 ເດືອນ',
  7727. MM : '%d ເດືອນ',
  7728. y : '1 ປີ',
  7729. yy : '%d ປີ'
  7730. },
  7731. ordinalParse: /(ທີ່)\d{1,2}/,
  7732. ordinal : function (number) {
  7733. return 'ທີ່' + number;
  7734. }
  7735. });
  7736. var lt__units = {
  7737. 'm' : 'minutė_minutės_minutę',
  7738. 'mm': 'minutės_minučių_minutes',
  7739. 'h' : 'valanda_valandos_valandą',
  7740. 'hh': 'valandos_valandų_valandas',
  7741. 'd' : 'diena_dienos_dieną',
  7742. 'dd': 'dienos_dienų_dienas',
  7743. 'M' : 'mėnuo_mėnesio_mėnesį',
  7744. 'MM': 'mėnesiai_mėnesių_mėnesius',
  7745. 'y' : 'metai_metų_metus',
  7746. 'yy': 'metai_metų_metus'
  7747. };
  7748. function translateSeconds(number, withoutSuffix, key, isFuture) {
  7749. if (withoutSuffix) {
  7750. return 'kelios sekundės';
  7751. } else {
  7752. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  7753. }
  7754. }
  7755. function translateSingular(number, withoutSuffix, key, isFuture) {
  7756. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  7757. }
  7758. function special(number) {
  7759. return number % 10 === 0 || (number > 10 && number < 20);
  7760. }
  7761. function forms(key) {
  7762. return lt__units[key].split('_');
  7763. }
  7764. function lt__translate(number, withoutSuffix, key, isFuture) {
  7765. var result = number + ' ';
  7766. if (number === 1) {
  7767. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  7768. } else if (withoutSuffix) {
  7769. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  7770. } else {
  7771. if (isFuture) {
  7772. return result + forms(key)[1];
  7773. } else {
  7774. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  7775. }
  7776. }
  7777. }
  7778. var lt = moment__default.defineLocale('lt', {
  7779. months : {
  7780. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  7781. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  7782. isFormat: /D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?|MMMM?(\[[^\[\]]*\]|\s+)+D[oD]?/
  7783. },
  7784. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  7785. weekdays : {
  7786. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  7787. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  7788. isFormat: /dddd HH:mm/
  7789. },
  7790. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  7791. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  7792. weekdaysParseExact : true,
  7793. longDateFormat : {
  7794. LT : 'HH:mm',
  7795. LTS : 'HH:mm:ss',
  7796. L : 'YYYY-MM-DD',
  7797. LL : 'YYYY [m.] MMMM D [d.]',
  7798. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  7799. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  7800. l : 'YYYY-MM-DD',
  7801. ll : 'YYYY [m.] MMMM D [d.]',
  7802. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  7803. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  7804. },
  7805. calendar : {
  7806. sameDay : '[Šiandien] LT',
  7807. nextDay : '[Rytoj] LT',
  7808. nextWeek : 'dddd LT',
  7809. lastDay : '[Vakar] LT',
  7810. lastWeek : '[Praėjusį] dddd LT',
  7811. sameElse : 'L'
  7812. },
  7813. relativeTime : {
  7814. future : 'po %s',
  7815. past : 'prieš %s',
  7816. s : translateSeconds,
  7817. m : translateSingular,
  7818. mm : lt__translate,
  7819. h : translateSingular,
  7820. hh : lt__translate,
  7821. d : translateSingular,
  7822. dd : lt__translate,
  7823. M : translateSingular,
  7824. MM : lt__translate,
  7825. y : translateSingular,
  7826. yy : lt__translate
  7827. },
  7828. ordinalParse: /\d{1,2}-oji/,
  7829. ordinal : function (number) {
  7830. return number + '-oji';
  7831. },
  7832. week : {
  7833. dow : 1, // Monday is the first day of the week.
  7834. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7835. }
  7836. });
  7837. var lv__units = {
  7838. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  7839. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  7840. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  7841. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  7842. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  7843. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  7844. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  7845. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  7846. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  7847. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  7848. };
  7849. /**
  7850. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  7851. */
  7852. function lv__format(forms, number, withoutSuffix) {
  7853. if (withoutSuffix) {
  7854. // E.g. "21 minūte", "3 minūtes".
  7855. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  7856. } else {
  7857. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  7858. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  7859. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  7860. }
  7861. }
  7862. function lv__relativeTimeWithPlural(number, withoutSuffix, key) {
  7863. return number + ' ' + lv__format(lv__units[key], number, withoutSuffix);
  7864. }
  7865. function relativeTimeWithSingular(number, withoutSuffix, key) {
  7866. return lv__format(lv__units[key], number, withoutSuffix);
  7867. }
  7868. function relativeSeconds(number, withoutSuffix) {
  7869. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  7870. }
  7871. var lv = moment__default.defineLocale('lv', {
  7872. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  7873. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  7874. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  7875. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  7876. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  7877. weekdaysParseExact : true,
  7878. longDateFormat : {
  7879. LT : 'HH:mm',
  7880. LTS : 'HH:mm:ss',
  7881. L : 'DD.MM.YYYY.',
  7882. LL : 'YYYY. [gada] D. MMMM',
  7883. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  7884. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  7885. },
  7886. calendar : {
  7887. sameDay : '[Šodien pulksten] LT',
  7888. nextDay : '[Rīt pulksten] LT',
  7889. nextWeek : 'dddd [pulksten] LT',
  7890. lastDay : '[Vakar pulksten] LT',
  7891. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  7892. sameElse : 'L'
  7893. },
  7894. relativeTime : {
  7895. future : 'pēc %s',
  7896. past : 'pirms %s',
  7897. s : relativeSeconds,
  7898. m : relativeTimeWithSingular,
  7899. mm : lv__relativeTimeWithPlural,
  7900. h : relativeTimeWithSingular,
  7901. hh : lv__relativeTimeWithPlural,
  7902. d : relativeTimeWithSingular,
  7903. dd : lv__relativeTimeWithPlural,
  7904. M : relativeTimeWithSingular,
  7905. MM : lv__relativeTimeWithPlural,
  7906. y : relativeTimeWithSingular,
  7907. yy : lv__relativeTimeWithPlural
  7908. },
  7909. ordinalParse: /\d{1,2}\./,
  7910. ordinal : '%d.',
  7911. week : {
  7912. dow : 1, // Monday is the first day of the week.
  7913. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7914. }
  7915. });
  7916. var me__translator = {
  7917. words: { //Different grammatical cases
  7918. m: ['jedan minut', 'jednog minuta'],
  7919. mm: ['minut', 'minuta', 'minuta'],
  7920. h: ['jedan sat', 'jednog sata'],
  7921. hh: ['sat', 'sata', 'sati'],
  7922. dd: ['dan', 'dana', 'dana'],
  7923. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  7924. yy: ['godina', 'godine', 'godina']
  7925. },
  7926. correctGrammaticalCase: function (number, wordKey) {
  7927. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  7928. },
  7929. translate: function (number, withoutSuffix, key) {
  7930. var wordKey = me__translator.words[key];
  7931. if (key.length === 1) {
  7932. return withoutSuffix ? wordKey[0] : wordKey[1];
  7933. } else {
  7934. return number + ' ' + me__translator.correctGrammaticalCase(number, wordKey);
  7935. }
  7936. }
  7937. };
  7938. var me = moment__default.defineLocale('me', {
  7939. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  7940. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  7941. monthsParseExact : true,
  7942. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  7943. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  7944. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  7945. weekdaysParseExact : true,
  7946. longDateFormat: {
  7947. LT: 'H:mm',
  7948. LTS : 'H:mm:ss',
  7949. L: 'DD.MM.YYYY',
  7950. LL: 'D. MMMM YYYY',
  7951. LLL: 'D. MMMM YYYY H:mm',
  7952. LLLL: 'dddd, D. MMMM YYYY H:mm'
  7953. },
  7954. calendar: {
  7955. sameDay: '[danas u] LT',
  7956. nextDay: '[sjutra u] LT',
  7957. nextWeek: function () {
  7958. switch (this.day()) {
  7959. case 0:
  7960. return '[u] [nedjelju] [u] LT';
  7961. case 3:
  7962. return '[u] [srijedu] [u] LT';
  7963. case 6:
  7964. return '[u] [subotu] [u] LT';
  7965. case 1:
  7966. case 2:
  7967. case 4:
  7968. case 5:
  7969. return '[u] dddd [u] LT';
  7970. }
  7971. },
  7972. lastDay : '[juče u] LT',
  7973. lastWeek : function () {
  7974. var lastWeekDays = [
  7975. '[prošle] [nedjelje] [u] LT',
  7976. '[prošlog] [ponedjeljka] [u] LT',
  7977. '[prošlog] [utorka] [u] LT',
  7978. '[prošle] [srijede] [u] LT',
  7979. '[prošlog] [četvrtka] [u] LT',
  7980. '[prošlog] [petka] [u] LT',
  7981. '[prošle] [subote] [u] LT'
  7982. ];
  7983. return lastWeekDays[this.day()];
  7984. },
  7985. sameElse : 'L'
  7986. },
  7987. relativeTime : {
  7988. future : 'za %s',
  7989. past : 'prije %s',
  7990. s : 'nekoliko sekundi',
  7991. m : me__translator.translate,
  7992. mm : me__translator.translate,
  7993. h : me__translator.translate,
  7994. hh : me__translator.translate,
  7995. d : 'dan',
  7996. dd : me__translator.translate,
  7997. M : 'mjesec',
  7998. MM : me__translator.translate,
  7999. y : 'godinu',
  8000. yy : me__translator.translate
  8001. },
  8002. ordinalParse: /\d{1,2}\./,
  8003. ordinal : '%d.',
  8004. week : {
  8005. dow : 1, // Monday is the first day of the week.
  8006. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8007. }
  8008. });
  8009. var mi = moment__default.defineLocale('mi', {
  8010. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
  8011. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  8012. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8013. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8014. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8015. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  8016. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  8017. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  8018. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  8019. longDateFormat: {
  8020. LT: 'HH:mm',
  8021. LTS: 'HH:mm:ss',
  8022. L: 'DD/MM/YYYY',
  8023. LL: 'D MMMM YYYY',
  8024. LLL: 'D MMMM YYYY [i] HH:mm',
  8025. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  8026. },
  8027. calendar: {
  8028. sameDay: '[i teie mahana, i] LT',
  8029. nextDay: '[apopo i] LT',
  8030. nextWeek: 'dddd [i] LT',
  8031. lastDay: '[inanahi i] LT',
  8032. lastWeek: 'dddd [whakamutunga i] LT',
  8033. sameElse: 'L'
  8034. },
  8035. relativeTime: {
  8036. future: 'i roto i %s',
  8037. past: '%s i mua',
  8038. s: 'te hēkona ruarua',
  8039. m: 'he meneti',
  8040. mm: '%d meneti',
  8041. h: 'te haora',
  8042. hh: '%d haora',
  8043. d: 'he ra',
  8044. dd: '%d ra',
  8045. M: 'he marama',
  8046. MM: '%d marama',
  8047. y: 'he tau',
  8048. yy: '%d tau'
  8049. },
  8050. ordinalParse: /\d{1,2}º/,
  8051. ordinal: '%dº',
  8052. week : {
  8053. dow : 1, // Monday is the first day of the week.
  8054. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8055. }
  8056. });
  8057. var mk = moment__default.defineLocale('mk', {
  8058. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  8059. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  8060. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  8061. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  8062. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  8063. longDateFormat : {
  8064. LT : 'H:mm',
  8065. LTS : 'H:mm:ss',
  8066. L : 'D.MM.YYYY',
  8067. LL : 'D MMMM YYYY',
  8068. LLL : 'D MMMM YYYY H:mm',
  8069. LLLL : 'dddd, D MMMM YYYY H:mm'
  8070. },
  8071. calendar : {
  8072. sameDay : '[Денес во] LT',
  8073. nextDay : '[Утре во] LT',
  8074. nextWeek : '[Во] dddd [во] LT',
  8075. lastDay : '[Вчера во] LT',
  8076. lastWeek : function () {
  8077. switch (this.day()) {
  8078. case 0:
  8079. case 3:
  8080. case 6:
  8081. return '[Изминатата] dddd [во] LT';
  8082. case 1:
  8083. case 2:
  8084. case 4:
  8085. case 5:
  8086. return '[Изминатиот] dddd [во] LT';
  8087. }
  8088. },
  8089. sameElse : 'L'
  8090. },
  8091. relativeTime : {
  8092. future : 'после %s',
  8093. past : 'пред %s',
  8094. s : 'неколку секунди',
  8095. m : 'минута',
  8096. mm : '%d минути',
  8097. h : 'час',
  8098. hh : '%d часа',
  8099. d : 'ден',
  8100. dd : '%d дена',
  8101. M : 'месец',
  8102. MM : '%d месеци',
  8103. y : 'година',
  8104. yy : '%d години'
  8105. },
  8106. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  8107. ordinal : function (number) {
  8108. var lastDigit = number % 10,
  8109. last2Digits = number % 100;
  8110. if (number === 0) {
  8111. return number + '-ев';
  8112. } else if (last2Digits === 0) {
  8113. return number + '-ен';
  8114. } else if (last2Digits > 10 && last2Digits < 20) {
  8115. return number + '-ти';
  8116. } else if (lastDigit === 1) {
  8117. return number + '-ви';
  8118. } else if (lastDigit === 2) {
  8119. return number + '-ри';
  8120. } else if (lastDigit === 7 || lastDigit === 8) {
  8121. return number + '-ми';
  8122. } else {
  8123. return number + '-ти';
  8124. }
  8125. },
  8126. week : {
  8127. dow : 1, // Monday is the first day of the week.
  8128. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8129. }
  8130. });
  8131. var ml = moment__default.defineLocale('ml', {
  8132. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  8133. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  8134. monthsParseExact : true,
  8135. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  8136. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  8137. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  8138. longDateFormat : {
  8139. LT : 'A h:mm -നു',
  8140. LTS : 'A h:mm:ss -നു',
  8141. L : 'DD/MM/YYYY',
  8142. LL : 'D MMMM YYYY',
  8143. LLL : 'D MMMM YYYY, A h:mm -നു',
  8144. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  8145. },
  8146. calendar : {
  8147. sameDay : '[ഇന്ന്] LT',
  8148. nextDay : '[നാളെ] LT',
  8149. nextWeek : 'dddd, LT',
  8150. lastDay : '[ഇന്നലെ] LT',
  8151. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  8152. sameElse : 'L'
  8153. },
  8154. relativeTime : {
  8155. future : '%s കഴിഞ്ഞ്',
  8156. past : '%s മുൻപ്',
  8157. s : 'അൽപ നിമിഷങ്ങൾ',
  8158. m : 'ഒരു മിനിറ്റ്',
  8159. mm : '%d മിനിറ്റ്',
  8160. h : 'ഒരു മണിക്കൂർ',
  8161. hh : '%d മണിക്കൂർ',
  8162. d : 'ഒരു ദിവസം',
  8163. dd : '%d ദിവസം',
  8164. M : 'ഒരു മാസം',
  8165. MM : '%d മാസം',
  8166. y : 'ഒരു വർഷം',
  8167. yy : '%d വർഷം'
  8168. },
  8169. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  8170. meridiemHour : function (hour, meridiem) {
  8171. if (hour === 12) {
  8172. hour = 0;
  8173. }
  8174. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  8175. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  8176. meridiem === 'വൈകുന്നേരം') {
  8177. return hour + 12;
  8178. } else {
  8179. return hour;
  8180. }
  8181. },
  8182. meridiem : function (hour, minute, isLower) {
  8183. if (hour < 4) {
  8184. return 'രാത്രി';
  8185. } else if (hour < 12) {
  8186. return 'രാവിലെ';
  8187. } else if (hour < 17) {
  8188. return 'ഉച്ച കഴിഞ്ഞ്';
  8189. } else if (hour < 20) {
  8190. return 'വൈകുന്നേരം';
  8191. } else {
  8192. return 'രാത്രി';
  8193. }
  8194. }
  8195. });
  8196. var mr__symbolMap = {
  8197. '1': '१',
  8198. '2': '२',
  8199. '3': '३',
  8200. '4': '४',
  8201. '5': '५',
  8202. '6': '६',
  8203. '7': '७',
  8204. '8': '८',
  8205. '9': '९',
  8206. '0': '०'
  8207. },
  8208. mr__numberMap = {
  8209. '१': '1',
  8210. '२': '2',
  8211. '३': '3',
  8212. '४': '4',
  8213. '५': '5',
  8214. '६': '6',
  8215. '७': '7',
  8216. '८': '8',
  8217. '९': '9',
  8218. '०': '0'
  8219. };
  8220. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  8221. {
  8222. var output = '';
  8223. if (withoutSuffix) {
  8224. switch (string) {
  8225. case 's': output = 'काही सेकंद'; break;
  8226. case 'm': output = 'एक मिनिट'; break;
  8227. case 'mm': output = '%d मिनिटे'; break;
  8228. case 'h': output = 'एक तास'; break;
  8229. case 'hh': output = '%d तास'; break;
  8230. case 'd': output = 'एक दिवस'; break;
  8231. case 'dd': output = '%d दिवस'; break;
  8232. case 'M': output = 'एक महिना'; break;
  8233. case 'MM': output = '%d महिने'; break;
  8234. case 'y': output = 'एक वर्ष'; break;
  8235. case 'yy': output = '%d वर्षे'; break;
  8236. }
  8237. }
  8238. else {
  8239. switch (string) {
  8240. case 's': output = 'काही सेकंदां'; break;
  8241. case 'm': output = 'एका मिनिटा'; break;
  8242. case 'mm': output = '%d मिनिटां'; break;
  8243. case 'h': output = 'एका तासा'; break;
  8244. case 'hh': output = '%d तासां'; break;
  8245. case 'd': output = 'एका दिवसा'; break;
  8246. case 'dd': output = '%d दिवसां'; break;
  8247. case 'M': output = 'एका महिन्या'; break;
  8248. case 'MM': output = '%d महिन्यां'; break;
  8249. case 'y': output = 'एका वर्षा'; break;
  8250. case 'yy': output = '%d वर्षां'; break;
  8251. }
  8252. }
  8253. return output.replace(/%d/i, number);
  8254. }
  8255. var mr = moment__default.defineLocale('mr', {
  8256. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  8257. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  8258. monthsParseExact : true,
  8259. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  8260. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  8261. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  8262. longDateFormat : {
  8263. LT : 'A h:mm वाजता',
  8264. LTS : 'A h:mm:ss वाजता',
  8265. L : 'DD/MM/YYYY',
  8266. LL : 'D MMMM YYYY',
  8267. LLL : 'D MMMM YYYY, A h:mm वाजता',
  8268. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  8269. },
  8270. calendar : {
  8271. sameDay : '[आज] LT',
  8272. nextDay : '[उद्या] LT',
  8273. nextWeek : 'dddd, LT',
  8274. lastDay : '[काल] LT',
  8275. lastWeek: '[मागील] dddd, LT',
  8276. sameElse : 'L'
  8277. },
  8278. relativeTime : {
  8279. future: '%sमध्ये',
  8280. past: '%sपूर्वी',
  8281. s: relativeTimeMr,
  8282. m: relativeTimeMr,
  8283. mm: relativeTimeMr,
  8284. h: relativeTimeMr,
  8285. hh: relativeTimeMr,
  8286. d: relativeTimeMr,
  8287. dd: relativeTimeMr,
  8288. M: relativeTimeMr,
  8289. MM: relativeTimeMr,
  8290. y: relativeTimeMr,
  8291. yy: relativeTimeMr
  8292. },
  8293. preparse: function (string) {
  8294. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  8295. return mr__numberMap[match];
  8296. });
  8297. },
  8298. postformat: function (string) {
  8299. return string.replace(/\d/g, function (match) {
  8300. return mr__symbolMap[match];
  8301. });
  8302. },
  8303. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  8304. meridiemHour : function (hour, meridiem) {
  8305. if (hour === 12) {
  8306. hour = 0;
  8307. }
  8308. if (meridiem === 'रात्री') {
  8309. return hour < 4 ? hour : hour + 12;
  8310. } else if (meridiem === 'सकाळी') {
  8311. return hour;
  8312. } else if (meridiem === 'दुपारी') {
  8313. return hour >= 10 ? hour : hour + 12;
  8314. } else if (meridiem === 'सायंकाळी') {
  8315. return hour + 12;
  8316. }
  8317. },
  8318. meridiem: function (hour, minute, isLower) {
  8319. if (hour < 4) {
  8320. return 'रात्री';
  8321. } else if (hour < 10) {
  8322. return 'सकाळी';
  8323. } else if (hour < 17) {
  8324. return 'दुपारी';
  8325. } else if (hour < 20) {
  8326. return 'सायंकाळी';
  8327. } else {
  8328. return 'रात्री';
  8329. }
  8330. },
  8331. week : {
  8332. dow : 0, // Sunday is the first day of the week.
  8333. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8334. }
  8335. });
  8336. var ms_my = moment__default.defineLocale('ms-my', {
  8337. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  8338. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  8339. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  8340. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  8341. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  8342. longDateFormat : {
  8343. LT : 'HH.mm',
  8344. LTS : 'HH.mm.ss',
  8345. L : 'DD/MM/YYYY',
  8346. LL : 'D MMMM YYYY',
  8347. LLL : 'D MMMM YYYY [pukul] HH.mm',
  8348. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  8349. },
  8350. meridiemParse: /pagi|tengahari|petang|malam/,
  8351. meridiemHour: function (hour, meridiem) {
  8352. if (hour === 12) {
  8353. hour = 0;
  8354. }
  8355. if (meridiem === 'pagi') {
  8356. return hour;
  8357. } else if (meridiem === 'tengahari') {
  8358. return hour >= 11 ? hour : hour + 12;
  8359. } else if (meridiem === 'petang' || meridiem === 'malam') {
  8360. return hour + 12;
  8361. }
  8362. },
  8363. meridiem : function (hours, minutes, isLower) {
  8364. if (hours < 11) {
  8365. return 'pagi';
  8366. } else if (hours < 15) {
  8367. return 'tengahari';
  8368. } else if (hours < 19) {
  8369. return 'petang';
  8370. } else {
  8371. return 'malam';
  8372. }
  8373. },
  8374. calendar : {
  8375. sameDay : '[Hari ini pukul] LT',
  8376. nextDay : '[Esok pukul] LT',
  8377. nextWeek : 'dddd [pukul] LT',
  8378. lastDay : '[Kelmarin pukul] LT',
  8379. lastWeek : 'dddd [lepas pukul] LT',
  8380. sameElse : 'L'
  8381. },
  8382. relativeTime : {
  8383. future : 'dalam %s',
  8384. past : '%s yang lepas',
  8385. s : 'beberapa saat',
  8386. m : 'seminit',
  8387. mm : '%d minit',
  8388. h : 'sejam',
  8389. hh : '%d jam',
  8390. d : 'sehari',
  8391. dd : '%d hari',
  8392. M : 'sebulan',
  8393. MM : '%d bulan',
  8394. y : 'setahun',
  8395. yy : '%d tahun'
  8396. },
  8397. week : {
  8398. dow : 1, // Monday is the first day of the week.
  8399. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8400. }
  8401. });
  8402. var locale_ms = moment__default.defineLocale('ms', {
  8403. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  8404. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  8405. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  8406. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  8407. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  8408. longDateFormat : {
  8409. LT : 'HH.mm',
  8410. LTS : 'HH.mm.ss',
  8411. L : 'DD/MM/YYYY',
  8412. LL : 'D MMMM YYYY',
  8413. LLL : 'D MMMM YYYY [pukul] HH.mm',
  8414. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  8415. },
  8416. meridiemParse: /pagi|tengahari|petang|malam/,
  8417. meridiemHour: function (hour, meridiem) {
  8418. if (hour === 12) {
  8419. hour = 0;
  8420. }
  8421. if (meridiem === 'pagi') {
  8422. return hour;
  8423. } else if (meridiem === 'tengahari') {
  8424. return hour >= 11 ? hour : hour + 12;
  8425. } else if (meridiem === 'petang' || meridiem === 'malam') {
  8426. return hour + 12;
  8427. }
  8428. },
  8429. meridiem : function (hours, minutes, isLower) {
  8430. if (hours < 11) {
  8431. return 'pagi';
  8432. } else if (hours < 15) {
  8433. return 'tengahari';
  8434. } else if (hours < 19) {
  8435. return 'petang';
  8436. } else {
  8437. return 'malam';
  8438. }
  8439. },
  8440. calendar : {
  8441. sameDay : '[Hari ini pukul] LT',
  8442. nextDay : '[Esok pukul] LT',
  8443. nextWeek : 'dddd [pukul] LT',
  8444. lastDay : '[Kelmarin pukul] LT',
  8445. lastWeek : 'dddd [lepas pukul] LT',
  8446. sameElse : 'L'
  8447. },
  8448. relativeTime : {
  8449. future : 'dalam %s',
  8450. past : '%s yang lepas',
  8451. s : 'beberapa saat',
  8452. m : 'seminit',
  8453. mm : '%d minit',
  8454. h : 'sejam',
  8455. hh : '%d jam',
  8456. d : 'sehari',
  8457. dd : '%d hari',
  8458. M : 'sebulan',
  8459. MM : '%d bulan',
  8460. y : 'setahun',
  8461. yy : '%d tahun'
  8462. },
  8463. week : {
  8464. dow : 1, // Monday is the first day of the week.
  8465. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8466. }
  8467. });
  8468. var my__symbolMap = {
  8469. '1': '၁',
  8470. '2': '၂',
  8471. '3': '၃',
  8472. '4': '၄',
  8473. '5': '၅',
  8474. '6': '၆',
  8475. '7': '၇',
  8476. '8': '၈',
  8477. '9': '၉',
  8478. '0': '၀'
  8479. }, my__numberMap = {
  8480. '၁': '1',
  8481. '၂': '2',
  8482. '၃': '3',
  8483. '၄': '4',
  8484. '၅': '5',
  8485. '၆': '6',
  8486. '၇': '7',
  8487. '၈': '8',
  8488. '၉': '9',
  8489. '၀': '0'
  8490. };
  8491. var my = moment__default.defineLocale('my', {
  8492. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  8493. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  8494. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  8495. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  8496. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  8497. longDateFormat: {
  8498. LT: 'HH:mm',
  8499. LTS: 'HH:mm:ss',
  8500. L: 'DD/MM/YYYY',
  8501. LL: 'D MMMM YYYY',
  8502. LLL: 'D MMMM YYYY HH:mm',
  8503. LLLL: 'dddd D MMMM YYYY HH:mm'
  8504. },
  8505. calendar: {
  8506. sameDay: '[ယနေ.] LT [မှာ]',
  8507. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  8508. nextWeek: 'dddd LT [မှာ]',
  8509. lastDay: '[မနေ.က] LT [မှာ]',
  8510. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  8511. sameElse: 'L'
  8512. },
  8513. relativeTime: {
  8514. future: 'လာမည့် %s မှာ',
  8515. past: 'လွန်ခဲ့သော %s က',
  8516. s: 'စက္ကန်.အနည်းငယ်',
  8517. m: 'တစ်မိနစ်',
  8518. mm: '%d မိနစ်',
  8519. h: 'တစ်နာရီ',
  8520. hh: '%d နာရီ',
  8521. d: 'တစ်ရက်',
  8522. dd: '%d ရက်',
  8523. M: 'တစ်လ',
  8524. MM: '%d လ',
  8525. y: 'တစ်နှစ်',
  8526. yy: '%d နှစ်'
  8527. },
  8528. preparse: function (string) {
  8529. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  8530. return my__numberMap[match];
  8531. });
  8532. },
  8533. postformat: function (string) {
  8534. return string.replace(/\d/g, function (match) {
  8535. return my__symbolMap[match];
  8536. });
  8537. },
  8538. week: {
  8539. dow: 1, // Monday is the first day of the week.
  8540. doy: 4 // The week that contains Jan 1st is the first week of the year.
  8541. }
  8542. });
  8543. var nb = moment__default.defineLocale('nb', {
  8544. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  8545. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  8546. monthsParseExact : true,
  8547. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  8548. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  8549. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  8550. weekdaysParseExact : true,
  8551. longDateFormat : {
  8552. LT : 'HH:mm',
  8553. LTS : 'HH:mm:ss',
  8554. L : 'DD.MM.YYYY',
  8555. LL : 'D. MMMM YYYY',
  8556. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  8557. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  8558. },
  8559. calendar : {
  8560. sameDay: '[i dag kl.] LT',
  8561. nextDay: '[i morgen kl.] LT',
  8562. nextWeek: 'dddd [kl.] LT',
  8563. lastDay: '[i går kl.] LT',
  8564. lastWeek: '[forrige] dddd [kl.] LT',
  8565. sameElse: 'L'
  8566. },
  8567. relativeTime : {
  8568. future : 'om %s',
  8569. past : '%s siden',
  8570. s : 'noen sekunder',
  8571. m : 'ett minutt',
  8572. mm : '%d minutter',
  8573. h : 'en time',
  8574. hh : '%d timer',
  8575. d : 'en dag',
  8576. dd : '%d dager',
  8577. M : 'en måned',
  8578. MM : '%d måneder',
  8579. y : 'ett år',
  8580. yy : '%d år'
  8581. },
  8582. ordinalParse: /\d{1,2}\./,
  8583. ordinal : '%d.',
  8584. week : {
  8585. dow : 1, // Monday is the first day of the week.
  8586. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8587. }
  8588. });
  8589. var ne__symbolMap = {
  8590. '1': '१',
  8591. '2': '२',
  8592. '3': '३',
  8593. '4': '४',
  8594. '5': '५',
  8595. '6': '६',
  8596. '7': '७',
  8597. '8': '८',
  8598. '9': '९',
  8599. '0': '०'
  8600. },
  8601. ne__numberMap = {
  8602. '१': '1',
  8603. '२': '2',
  8604. '३': '3',
  8605. '४': '4',
  8606. '५': '5',
  8607. '६': '6',
  8608. '७': '7',
  8609. '८': '8',
  8610. '९': '9',
  8611. '०': '0'
  8612. };
  8613. var ne = moment__default.defineLocale('ne', {
  8614. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  8615. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  8616. monthsParseExact : true,
  8617. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  8618. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  8619. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  8620. weekdaysParseExact : true,
  8621. longDateFormat : {
  8622. LT : 'Aको h:mm बजे',
  8623. LTS : 'Aको h:mm:ss बजे',
  8624. L : 'DD/MM/YYYY',
  8625. LL : 'D MMMM YYYY',
  8626. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  8627. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  8628. },
  8629. preparse: function (string) {
  8630. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  8631. return ne__numberMap[match];
  8632. });
  8633. },
  8634. postformat: function (string) {
  8635. return string.replace(/\d/g, function (match) {
  8636. return ne__symbolMap[match];
  8637. });
  8638. },
  8639. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  8640. meridiemHour : function (hour, meridiem) {
  8641. if (hour === 12) {
  8642. hour = 0;
  8643. }
  8644. if (meridiem === 'राति') {
  8645. return hour < 4 ? hour : hour + 12;
  8646. } else if (meridiem === 'बिहान') {
  8647. return hour;
  8648. } else if (meridiem === 'दिउँसो') {
  8649. return hour >= 10 ? hour : hour + 12;
  8650. } else if (meridiem === 'साँझ') {
  8651. return hour + 12;
  8652. }
  8653. },
  8654. meridiem : function (hour, minute, isLower) {
  8655. if (hour < 3) {
  8656. return 'राति';
  8657. } else if (hour < 12) {
  8658. return 'बिहान';
  8659. } else if (hour < 16) {
  8660. return 'दिउँसो';
  8661. } else if (hour < 20) {
  8662. return 'साँझ';
  8663. } else {
  8664. return 'राति';
  8665. }
  8666. },
  8667. calendar : {
  8668. sameDay : '[आज] LT',
  8669. nextDay : '[भोलि] LT',
  8670. nextWeek : '[आउँदो] dddd[,] LT',
  8671. lastDay : '[हिजो] LT',
  8672. lastWeek : '[गएको] dddd[,] LT',
  8673. sameElse : 'L'
  8674. },
  8675. relativeTime : {
  8676. future : '%sमा',
  8677. past : '%s अगाडि',
  8678. s : 'केही क्षण',
  8679. m : 'एक मिनेट',
  8680. mm : '%d मिनेट',
  8681. h : 'एक घण्टा',
  8682. hh : '%d घण्टा',
  8683. d : 'एक दिन',
  8684. dd : '%d दिन',
  8685. M : 'एक महिना',
  8686. MM : '%d महिना',
  8687. y : 'एक बर्ष',
  8688. yy : '%d बर्ष'
  8689. },
  8690. week : {
  8691. dow : 0, // Sunday is the first day of the week.
  8692. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8693. }
  8694. });
  8695. var nl__monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  8696. nl__monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  8697. var nl__monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
  8698. var nl__monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  8699. var nl = moment__default.defineLocale('nl', {
  8700. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  8701. monthsShort : function (m, format) {
  8702. if (/-MMM-/.test(format)) {
  8703. return nl__monthsShortWithoutDots[m.month()];
  8704. } else {
  8705. return nl__monthsShortWithDots[m.month()];
  8706. }
  8707. },
  8708. monthsRegex: nl__monthsRegex,
  8709. monthsShortRegex: nl__monthsRegex,
  8710. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  8711. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  8712. monthsParse : nl__monthsParse,
  8713. longMonthsParse : nl__monthsParse,
  8714. shortMonthsParse : nl__monthsParse,
  8715. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  8716. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  8717. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  8718. weekdaysParseExact : true,
  8719. longDateFormat : {
  8720. LT : 'HH:mm',
  8721. LTS : 'HH:mm:ss',
  8722. L : 'DD-MM-YYYY',
  8723. LL : 'D MMMM YYYY',
  8724. LLL : 'D MMMM YYYY HH:mm',
  8725. LLLL : 'dddd D MMMM YYYY HH:mm'
  8726. },
  8727. calendar : {
  8728. sameDay: '[vandaag om] LT',
  8729. nextDay: '[morgen om] LT',
  8730. nextWeek: 'dddd [om] LT',
  8731. lastDay: '[gisteren om] LT',
  8732. lastWeek: '[afgelopen] dddd [om] LT',
  8733. sameElse: 'L'
  8734. },
  8735. relativeTime : {
  8736. future : 'over %s',
  8737. past : '%s geleden',
  8738. s : 'een paar seconden',
  8739. m : 'één minuut',
  8740. mm : '%d minuten',
  8741. h : 'één uur',
  8742. hh : '%d uur',
  8743. d : 'één dag',
  8744. dd : '%d dagen',
  8745. M : 'één maand',
  8746. MM : '%d maanden',
  8747. y : 'één jaar',
  8748. yy : '%d jaar'
  8749. },
  8750. ordinalParse: /\d{1,2}(ste|de)/,
  8751. ordinal : function (number) {
  8752. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  8753. },
  8754. week : {
  8755. dow : 1, // Monday is the first day of the week.
  8756. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8757. }
  8758. });
  8759. var nn = moment__default.defineLocale('nn', {
  8760. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  8761. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8762. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  8763. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  8764. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  8765. longDateFormat : {
  8766. LT : 'HH:mm',
  8767. LTS : 'HH:mm:ss',
  8768. L : 'DD.MM.YYYY',
  8769. LL : 'D. MMMM YYYY',
  8770. LLL : 'D. MMMM YYYY [kl.] H:mm',
  8771. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  8772. },
  8773. calendar : {
  8774. sameDay: '[I dag klokka] LT',
  8775. nextDay: '[I morgon klokka] LT',
  8776. nextWeek: 'dddd [klokka] LT',
  8777. lastDay: '[I går klokka] LT',
  8778. lastWeek: '[Føregåande] dddd [klokka] LT',
  8779. sameElse: 'L'
  8780. },
  8781. relativeTime : {
  8782. future : 'om %s',
  8783. past : '%s sidan',
  8784. s : 'nokre sekund',
  8785. m : 'eit minutt',
  8786. mm : '%d minutt',
  8787. h : 'ein time',
  8788. hh : '%d timar',
  8789. d : 'ein dag',
  8790. dd : '%d dagar',
  8791. M : 'ein månad',
  8792. MM : '%d månader',
  8793. y : 'eit år',
  8794. yy : '%d år'
  8795. },
  8796. ordinalParse: /\d{1,2}\./,
  8797. ordinal : '%d.',
  8798. week : {
  8799. dow : 1, // Monday is the first day of the week.
  8800. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8801. }
  8802. });
  8803. var pa_in__symbolMap = {
  8804. '1': '੧',
  8805. '2': '੨',
  8806. '3': '੩',
  8807. '4': '੪',
  8808. '5': '੫',
  8809. '6': '੬',
  8810. '7': '੭',
  8811. '8': '੮',
  8812. '9': '੯',
  8813. '0': '੦'
  8814. },
  8815. pa_in__numberMap = {
  8816. '੧': '1',
  8817. '੨': '2',
  8818. '੩': '3',
  8819. '੪': '4',
  8820. '੫': '5',
  8821. '੬': '6',
  8822. '੭': '7',
  8823. '੮': '8',
  8824. '੯': '9',
  8825. '੦': '0'
  8826. };
  8827. var pa_in = moment__default.defineLocale('pa-in', {
  8828. // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
  8829. months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  8830. monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  8831. weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  8832. weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  8833. weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  8834. longDateFormat : {
  8835. LT : 'A h:mm ਵਜੇ',
  8836. LTS : 'A h:mm:ss ਵਜੇ',
  8837. L : 'DD/MM/YYYY',
  8838. LL : 'D MMMM YYYY',
  8839. LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
  8840. LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  8841. },
  8842. calendar : {
  8843. sameDay : '[ਅਜ] LT',
  8844. nextDay : '[ਕਲ] LT',
  8845. nextWeek : 'dddd, LT',
  8846. lastDay : '[ਕਲ] LT',
  8847. lastWeek : '[ਪਿਛਲੇ] dddd, LT',
  8848. sameElse : 'L'
  8849. },
  8850. relativeTime : {
  8851. future : '%s ਵਿੱਚ',
  8852. past : '%s ਪਿਛਲੇ',
  8853. s : 'ਕੁਝ ਸਕਿੰਟ',
  8854. m : 'ਇਕ ਮਿੰਟ',
  8855. mm : '%d ਮਿੰਟ',
  8856. h : 'ਇੱਕ ਘੰਟਾ',
  8857. hh : '%d ਘੰਟੇ',
  8858. d : 'ਇੱਕ ਦਿਨ',
  8859. dd : '%d ਦਿਨ',
  8860. M : 'ਇੱਕ ਮਹੀਨਾ',
  8861. MM : '%d ਮਹੀਨੇ',
  8862. y : 'ਇੱਕ ਸਾਲ',
  8863. yy : '%d ਸਾਲ'
  8864. },
  8865. preparse: function (string) {
  8866. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  8867. return pa_in__numberMap[match];
  8868. });
  8869. },
  8870. postformat: function (string) {
  8871. return string.replace(/\d/g, function (match) {
  8872. return pa_in__symbolMap[match];
  8873. });
  8874. },
  8875. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  8876. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  8877. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  8878. meridiemHour : function (hour, meridiem) {
  8879. if (hour === 12) {
  8880. hour = 0;
  8881. }
  8882. if (meridiem === 'ਰਾਤ') {
  8883. return hour < 4 ? hour : hour + 12;
  8884. } else if (meridiem === 'ਸਵੇਰ') {
  8885. return hour;
  8886. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  8887. return hour >= 10 ? hour : hour + 12;
  8888. } else if (meridiem === 'ਸ਼ਾਮ') {
  8889. return hour + 12;
  8890. }
  8891. },
  8892. meridiem : function (hour, minute, isLower) {
  8893. if (hour < 4) {
  8894. return 'ਰਾਤ';
  8895. } else if (hour < 10) {
  8896. return 'ਸਵੇਰ';
  8897. } else if (hour < 17) {
  8898. return 'ਦੁਪਹਿਰ';
  8899. } else if (hour < 20) {
  8900. return 'ਸ਼ਾਮ';
  8901. } else {
  8902. return 'ਰਾਤ';
  8903. }
  8904. },
  8905. week : {
  8906. dow : 0, // Sunday is the first day of the week.
  8907. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8908. }
  8909. });
  8910. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  8911. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  8912. function pl__plural(n) {
  8913. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  8914. }
  8915. function pl__translate(number, withoutSuffix, key) {
  8916. var result = number + ' ';
  8917. switch (key) {
  8918. case 'm':
  8919. return withoutSuffix ? 'minuta' : 'minutę';
  8920. case 'mm':
  8921. return result + (pl__plural(number) ? 'minuty' : 'minut');
  8922. case 'h':
  8923. return withoutSuffix ? 'godzina' : 'godzinę';
  8924. case 'hh':
  8925. return result + (pl__plural(number) ? 'godziny' : 'godzin');
  8926. case 'MM':
  8927. return result + (pl__plural(number) ? 'miesiące' : 'miesięcy');
  8928. case 'yy':
  8929. return result + (pl__plural(number) ? 'lata' : 'lat');
  8930. }
  8931. }
  8932. var pl = moment__default.defineLocale('pl', {
  8933. months : function (momentToFormat, format) {
  8934. if (format === '') {
  8935. // Hack: if format empty we know this is used to generate
  8936. // RegExp by moment. Give then back both valid forms of months
  8937. // in RegExp ready format.
  8938. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  8939. } else if (/D MMMM/.test(format)) {
  8940. return monthsSubjective[momentToFormat.month()];
  8941. } else {
  8942. return monthsNominative[momentToFormat.month()];
  8943. }
  8944. },
  8945. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  8946. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  8947. weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
  8948. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  8949. longDateFormat : {
  8950. LT : 'HH:mm',
  8951. LTS : 'HH:mm:ss',
  8952. L : 'DD.MM.YYYY',
  8953. LL : 'D MMMM YYYY',
  8954. LLL : 'D MMMM YYYY HH:mm',
  8955. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8956. },
  8957. calendar : {
  8958. sameDay: '[Dziś o] LT',
  8959. nextDay: '[Jutro o] LT',
  8960. nextWeek: '[W] dddd [o] LT',
  8961. lastDay: '[Wczoraj o] LT',
  8962. lastWeek: function () {
  8963. switch (this.day()) {
  8964. case 0:
  8965. return '[W zeszłą niedzielę o] LT';
  8966. case 3:
  8967. return '[W zeszłą środę o] LT';
  8968. case 6:
  8969. return '[W zeszłą sobotę o] LT';
  8970. default:
  8971. return '[W zeszły] dddd [o] LT';
  8972. }
  8973. },
  8974. sameElse: 'L'
  8975. },
  8976. relativeTime : {
  8977. future : 'za %s',
  8978. past : '%s temu',
  8979. s : 'kilka sekund',
  8980. m : pl__translate,
  8981. mm : pl__translate,
  8982. h : pl__translate,
  8983. hh : pl__translate,
  8984. d : '1 dzień',
  8985. dd : '%d dni',
  8986. M : 'miesiąc',
  8987. MM : pl__translate,
  8988. y : 'rok',
  8989. yy : pl__translate
  8990. },
  8991. ordinalParse: /\d{1,2}\./,
  8992. ordinal : '%d.',
  8993. week : {
  8994. dow : 1, // Monday is the first day of the week.
  8995. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8996. }
  8997. });
  8998. var pt_br = moment__default.defineLocale('pt-br', {
  8999. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  9000. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  9001. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  9002. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  9003. weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
  9004. weekdaysParseExact : true,
  9005. longDateFormat : {
  9006. LT : 'HH:mm',
  9007. LTS : 'HH:mm:ss',
  9008. L : 'DD/MM/YYYY',
  9009. LL : 'D [de] MMMM [de] YYYY',
  9010. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  9011. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  9012. },
  9013. calendar : {
  9014. sameDay: '[Hoje às] LT',
  9015. nextDay: '[Amanhã às] LT',
  9016. nextWeek: 'dddd [às] LT',
  9017. lastDay: '[Ontem às] LT',
  9018. lastWeek: function () {
  9019. return (this.day() === 0 || this.day() === 6) ?
  9020. '[Último] dddd [às] LT' : // Saturday + Sunday
  9021. '[Última] dddd [às] LT'; // Monday - Friday
  9022. },
  9023. sameElse: 'L'
  9024. },
  9025. relativeTime : {
  9026. future : 'em %s',
  9027. past : '%s atrás',
  9028. s : 'poucos segundos',
  9029. m : 'um minuto',
  9030. mm : '%d minutos',
  9031. h : 'uma hora',
  9032. hh : '%d horas',
  9033. d : 'um dia',
  9034. dd : '%d dias',
  9035. M : 'um mês',
  9036. MM : '%d meses',
  9037. y : 'um ano',
  9038. yy : '%d anos'
  9039. },
  9040. ordinalParse: /\d{1,2}º/,
  9041. ordinal : '%dº'
  9042. });
  9043. var pt = moment__default.defineLocale('pt', {
  9044. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  9045. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  9046. weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
  9047. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  9048. weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
  9049. weekdaysParseExact : true,
  9050. longDateFormat : {
  9051. LT : 'HH:mm',
  9052. LTS : 'HH:mm:ss',
  9053. L : 'DD/MM/YYYY',
  9054. LL : 'D [de] MMMM [de] YYYY',
  9055. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  9056. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  9057. },
  9058. calendar : {
  9059. sameDay: '[Hoje às] LT',
  9060. nextDay: '[Amanhã às] LT',
  9061. nextWeek: 'dddd [às] LT',
  9062. lastDay: '[Ontem às] LT',
  9063. lastWeek: function () {
  9064. return (this.day() === 0 || this.day() === 6) ?
  9065. '[Último] dddd [às] LT' : // Saturday + Sunday
  9066. '[Última] dddd [às] LT'; // Monday - Friday
  9067. },
  9068. sameElse: 'L'
  9069. },
  9070. relativeTime : {
  9071. future : 'em %s',
  9072. past : 'há %s',
  9073. s : 'segundos',
  9074. m : 'um minuto',
  9075. mm : '%d minutos',
  9076. h : 'uma hora',
  9077. hh : '%d horas',
  9078. d : 'um dia',
  9079. dd : '%d dias',
  9080. M : 'um mês',
  9081. MM : '%d meses',
  9082. y : 'um ano',
  9083. yy : '%d anos'
  9084. },
  9085. ordinalParse: /\d{1,2}º/,
  9086. ordinal : '%dº',
  9087. week : {
  9088. dow : 1, // Monday is the first day of the week.
  9089. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9090. }
  9091. });
  9092. function ro__relativeTimeWithPlural(number, withoutSuffix, key) {
  9093. var format = {
  9094. 'mm': 'minute',
  9095. 'hh': 'ore',
  9096. 'dd': 'zile',
  9097. 'MM': 'luni',
  9098. 'yy': 'ani'
  9099. },
  9100. separator = ' ';
  9101. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  9102. separator = ' de ';
  9103. }
  9104. return number + separator + format[key];
  9105. }
  9106. var ro = moment__default.defineLocale('ro', {
  9107. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  9108. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  9109. monthsParseExact: true,
  9110. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  9111. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  9112. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  9113. longDateFormat : {
  9114. LT : 'H:mm',
  9115. LTS : 'H:mm:ss',
  9116. L : 'DD.MM.YYYY',
  9117. LL : 'D MMMM YYYY',
  9118. LLL : 'D MMMM YYYY H:mm',
  9119. LLLL : 'dddd, D MMMM YYYY H:mm'
  9120. },
  9121. calendar : {
  9122. sameDay: '[azi la] LT',
  9123. nextDay: '[mâine la] LT',
  9124. nextWeek: 'dddd [la] LT',
  9125. lastDay: '[ieri la] LT',
  9126. lastWeek: '[fosta] dddd [la] LT',
  9127. sameElse: 'L'
  9128. },
  9129. relativeTime : {
  9130. future : 'peste %s',
  9131. past : '%s în urmă',
  9132. s : 'câteva secunde',
  9133. m : 'un minut',
  9134. mm : ro__relativeTimeWithPlural,
  9135. h : 'o oră',
  9136. hh : ro__relativeTimeWithPlural,
  9137. d : 'o zi',
  9138. dd : ro__relativeTimeWithPlural,
  9139. M : 'o lună',
  9140. MM : ro__relativeTimeWithPlural,
  9141. y : 'un an',
  9142. yy : ro__relativeTimeWithPlural
  9143. },
  9144. week : {
  9145. dow : 1, // Monday is the first day of the week.
  9146. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9147. }
  9148. });
  9149. function ru__plural(word, num) {
  9150. var forms = word.split('_');
  9151. 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]);
  9152. }
  9153. function ru__relativeTimeWithPlural(number, withoutSuffix, key) {
  9154. var format = {
  9155. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  9156. 'hh': 'час_часа_часов',
  9157. 'dd': 'день_дня_дней',
  9158. 'MM': 'месяц_месяца_месяцев',
  9159. 'yy': 'год_года_лет'
  9160. };
  9161. if (key === 'm') {
  9162. return withoutSuffix ? 'минута' : 'минуту';
  9163. }
  9164. else {
  9165. return number + ' ' + ru__plural(format[key], +number);
  9166. }
  9167. }
  9168. var ru__monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  9169. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  9170. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  9171. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  9172. var ru = moment__default.defineLocale('ru', {
  9173. months : {
  9174. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  9175. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  9176. },
  9177. monthsShort : {
  9178. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  9179. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  9180. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  9181. },
  9182. weekdays : {
  9183. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  9184. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  9185. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  9186. },
  9187. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  9188. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  9189. monthsParse : ru__monthsParse,
  9190. longMonthsParse : ru__monthsParse,
  9191. shortMonthsParse : ru__monthsParse,
  9192. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  9193. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  9194. // копия предыдущего
  9195. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  9196. // полные названия с падежами
  9197. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  9198. // Выражение, которое соотвествует только сокращённым формам
  9199. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  9200. longDateFormat : {
  9201. LT : 'HH:mm',
  9202. LTS : 'HH:mm:ss',
  9203. L : 'DD.MM.YYYY',
  9204. LL : 'D MMMM YYYY г.',
  9205. LLL : 'D MMMM YYYY г., HH:mm',
  9206. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  9207. },
  9208. calendar : {
  9209. sameDay: '[Сегодня в] LT',
  9210. nextDay: '[Завтра в] LT',
  9211. lastDay: '[Вчера в] LT',
  9212. nextWeek: function (now) {
  9213. if (now.week() !== this.week()) {
  9214. switch (this.day()) {
  9215. case 0:
  9216. return '[В следующее] dddd [в] LT';
  9217. case 1:
  9218. case 2:
  9219. case 4:
  9220. return '[В следующий] dddd [в] LT';
  9221. case 3:
  9222. case 5:
  9223. case 6:
  9224. return '[В следующую] dddd [в] LT';
  9225. }
  9226. } else {
  9227. if (this.day() === 2) {
  9228. return '[Во] dddd [в] LT';
  9229. } else {
  9230. return '[В] dddd [в] LT';
  9231. }
  9232. }
  9233. },
  9234. lastWeek: function (now) {
  9235. if (now.week() !== this.week()) {
  9236. switch (this.day()) {
  9237. case 0:
  9238. return '[В прошлое] dddd [в] LT';
  9239. case 1:
  9240. case 2:
  9241. case 4:
  9242. return '[В прошлый] dddd [в] LT';
  9243. case 3:
  9244. case 5:
  9245. case 6:
  9246. return '[В прошлую] dddd [в] LT';
  9247. }
  9248. } else {
  9249. if (this.day() === 2) {
  9250. return '[Во] dddd [в] LT';
  9251. } else {
  9252. return '[В] dddd [в] LT';
  9253. }
  9254. }
  9255. },
  9256. sameElse: 'L'
  9257. },
  9258. relativeTime : {
  9259. future : 'через %s',
  9260. past : '%s назад',
  9261. s : 'несколько секунд',
  9262. m : ru__relativeTimeWithPlural,
  9263. mm : ru__relativeTimeWithPlural,
  9264. h : 'час',
  9265. hh : ru__relativeTimeWithPlural,
  9266. d : 'день',
  9267. dd : ru__relativeTimeWithPlural,
  9268. M : 'месяц',
  9269. MM : ru__relativeTimeWithPlural,
  9270. y : 'год',
  9271. yy : ru__relativeTimeWithPlural
  9272. },
  9273. meridiemParse: /ночи|утра|дня|вечера/i,
  9274. isPM : function (input) {
  9275. return /^(дня|вечера)$/.test(input);
  9276. },
  9277. meridiem : function (hour, minute, isLower) {
  9278. if (hour < 4) {
  9279. return 'ночи';
  9280. } else if (hour < 12) {
  9281. return 'утра';
  9282. } else if (hour < 17) {
  9283. return 'дня';
  9284. } else {
  9285. return 'вечера';
  9286. }
  9287. },
  9288. ordinalParse: /\d{1,2}-(й|го|я)/,
  9289. ordinal: function (number, period) {
  9290. switch (period) {
  9291. case 'M':
  9292. case 'd':
  9293. case 'DDD':
  9294. return number + '-й';
  9295. case 'D':
  9296. return number + '-го';
  9297. case 'w':
  9298. case 'W':
  9299. return number + '-я';
  9300. default:
  9301. return number;
  9302. }
  9303. },
  9304. week : {
  9305. dow : 1, // Monday is the first day of the week.
  9306. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9307. }
  9308. });
  9309. var se = moment__default.defineLocale('se', {
  9310. 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('_'),
  9311. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  9312. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  9313. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  9314. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  9315. longDateFormat : {
  9316. LT : 'HH:mm',
  9317. LTS : 'HH:mm:ss',
  9318. L : 'DD.MM.YYYY',
  9319. LL : 'MMMM D. [b.] YYYY',
  9320. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  9321. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  9322. },
  9323. calendar : {
  9324. sameDay: '[otne ti] LT',
  9325. nextDay: '[ihttin ti] LT',
  9326. nextWeek: 'dddd [ti] LT',
  9327. lastDay: '[ikte ti] LT',
  9328. lastWeek: '[ovddit] dddd [ti] LT',
  9329. sameElse: 'L'
  9330. },
  9331. relativeTime : {
  9332. future : '%s geažes',
  9333. past : 'maŋit %s',
  9334. s : 'moadde sekunddat',
  9335. m : 'okta minuhta',
  9336. mm : '%d minuhtat',
  9337. h : 'okta diimmu',
  9338. hh : '%d diimmut',
  9339. d : 'okta beaivi',
  9340. dd : '%d beaivvit',
  9341. M : 'okta mánnu',
  9342. MM : '%d mánut',
  9343. y : 'okta jahki',
  9344. yy : '%d jagit'
  9345. },
  9346. ordinalParse: /\d{1,2}\./,
  9347. ordinal : '%d.',
  9348. week : {
  9349. dow : 1, // Monday is the first day of the week.
  9350. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9351. }
  9352. });
  9353. /*jshint -W100*/
  9354. var si = moment__default.defineLocale('si', {
  9355. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  9356. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  9357. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  9358. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  9359. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  9360. weekdaysParseExact : true,
  9361. longDateFormat : {
  9362. LT : 'a h:mm',
  9363. LTS : 'a h:mm:ss',
  9364. L : 'YYYY/MM/DD',
  9365. LL : 'YYYY MMMM D',
  9366. LLL : 'YYYY MMMM D, a h:mm',
  9367. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  9368. },
  9369. calendar : {
  9370. sameDay : '[අද] LT[ට]',
  9371. nextDay : '[හෙට] LT[ට]',
  9372. nextWeek : 'dddd LT[ට]',
  9373. lastDay : '[ඊයේ] LT[ට]',
  9374. lastWeek : '[පසුගිය] dddd LT[ට]',
  9375. sameElse : 'L'
  9376. },
  9377. relativeTime : {
  9378. future : '%sකින්',
  9379. past : '%sකට පෙර',
  9380. s : 'තත්පර කිහිපය',
  9381. m : 'මිනිත්තුව',
  9382. mm : 'මිනිත්තු %d',
  9383. h : 'පැය',
  9384. hh : 'පැය %d',
  9385. d : 'දිනය',
  9386. dd : 'දින %d',
  9387. M : 'මාසය',
  9388. MM : 'මාස %d',
  9389. y : 'වසර',
  9390. yy : 'වසර %d'
  9391. },
  9392. ordinalParse: /\d{1,2} වැනි/,
  9393. ordinal : function (number) {
  9394. return number + ' වැනි';
  9395. },
  9396. meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  9397. isPM : function (input) {
  9398. return input === 'ප.ව.' || input === 'පස් වරු';
  9399. },
  9400. meridiem : function (hours, minutes, isLower) {
  9401. if (hours > 11) {
  9402. return isLower ? 'ප.ව.' : 'පස් වරු';
  9403. } else {
  9404. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  9405. }
  9406. }
  9407. });
  9408. var sk__months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  9409. sk__monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  9410. function sk__plural(n) {
  9411. return (n > 1) && (n < 5);
  9412. }
  9413. function sk__translate(number, withoutSuffix, key, isFuture) {
  9414. var result = number + ' ';
  9415. switch (key) {
  9416. case 's': // a few seconds / in a few seconds / a few seconds ago
  9417. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  9418. case 'm': // a minute / in a minute / a minute ago
  9419. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  9420. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  9421. if (withoutSuffix || isFuture) {
  9422. return result + (sk__plural(number) ? 'minúty' : 'minút');
  9423. } else {
  9424. return result + 'minútami';
  9425. }
  9426. break;
  9427. case 'h': // an hour / in an hour / an hour ago
  9428. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  9429. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  9430. if (withoutSuffix || isFuture) {
  9431. return result + (sk__plural(number) ? 'hodiny' : 'hodín');
  9432. } else {
  9433. return result + 'hodinami';
  9434. }
  9435. break;
  9436. case 'd': // a day / in a day / a day ago
  9437. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  9438. case 'dd': // 9 days / in 9 days / 9 days ago
  9439. if (withoutSuffix || isFuture) {
  9440. return result + (sk__plural(number) ? 'dni' : 'dní');
  9441. } else {
  9442. return result + 'dňami';
  9443. }
  9444. break;
  9445. case 'M': // a month / in a month / a month ago
  9446. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  9447. case 'MM': // 9 months / in 9 months / 9 months ago
  9448. if (withoutSuffix || isFuture) {
  9449. return result + (sk__plural(number) ? 'mesiace' : 'mesiacov');
  9450. } else {
  9451. return result + 'mesiacmi';
  9452. }
  9453. break;
  9454. case 'y': // a year / in a year / a year ago
  9455. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  9456. case 'yy': // 9 years / in 9 years / 9 years ago
  9457. if (withoutSuffix || isFuture) {
  9458. return result + (sk__plural(number) ? 'roky' : 'rokov');
  9459. } else {
  9460. return result + 'rokmi';
  9461. }
  9462. break;
  9463. }
  9464. }
  9465. var sk = moment__default.defineLocale('sk', {
  9466. months : sk__months,
  9467. monthsShort : sk__monthsShort,
  9468. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  9469. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  9470. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  9471. longDateFormat : {
  9472. LT: 'H:mm',
  9473. LTS : 'H:mm:ss',
  9474. L : 'DD.MM.YYYY',
  9475. LL : 'D. MMMM YYYY',
  9476. LLL : 'D. MMMM YYYY H:mm',
  9477. LLLL : 'dddd D. MMMM YYYY H:mm'
  9478. },
  9479. calendar : {
  9480. sameDay: '[dnes o] LT',
  9481. nextDay: '[zajtra o] LT',
  9482. nextWeek: function () {
  9483. switch (this.day()) {
  9484. case 0:
  9485. return '[v nedeľu o] LT';
  9486. case 1:
  9487. case 2:
  9488. return '[v] dddd [o] LT';
  9489. case 3:
  9490. return '[v stredu o] LT';
  9491. case 4:
  9492. return '[vo štvrtok o] LT';
  9493. case 5:
  9494. return '[v piatok o] LT';
  9495. case 6:
  9496. return '[v sobotu o] LT';
  9497. }
  9498. },
  9499. lastDay: '[včera o] LT',
  9500. lastWeek: function () {
  9501. switch (this.day()) {
  9502. case 0:
  9503. return '[minulú nedeľu o] LT';
  9504. case 1:
  9505. case 2:
  9506. return '[minulý] dddd [o] LT';
  9507. case 3:
  9508. return '[minulú stredu o] LT';
  9509. case 4:
  9510. case 5:
  9511. return '[minulý] dddd [o] LT';
  9512. case 6:
  9513. return '[minulú sobotu o] LT';
  9514. }
  9515. },
  9516. sameElse: 'L'
  9517. },
  9518. relativeTime : {
  9519. future : 'za %s',
  9520. past : 'pred %s',
  9521. s : sk__translate,
  9522. m : sk__translate,
  9523. mm : sk__translate,
  9524. h : sk__translate,
  9525. hh : sk__translate,
  9526. d : sk__translate,
  9527. dd : sk__translate,
  9528. M : sk__translate,
  9529. MM : sk__translate,
  9530. y : sk__translate,
  9531. yy : sk__translate
  9532. },
  9533. ordinalParse: /\d{1,2}\./,
  9534. ordinal : '%d.',
  9535. week : {
  9536. dow : 1, // Monday is the first day of the week.
  9537. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9538. }
  9539. });
  9540. function sl__processRelativeTime(number, withoutSuffix, key, isFuture) {
  9541. var result = number + ' ';
  9542. switch (key) {
  9543. case 's':
  9544. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  9545. case 'm':
  9546. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  9547. case 'mm':
  9548. if (number === 1) {
  9549. result += withoutSuffix ? 'minuta' : 'minuto';
  9550. } else if (number === 2) {
  9551. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  9552. } else if (number < 5) {
  9553. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  9554. } else {
  9555. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  9556. }
  9557. return result;
  9558. case 'h':
  9559. return withoutSuffix ? 'ena ura' : 'eno uro';
  9560. case 'hh':
  9561. if (number === 1) {
  9562. result += withoutSuffix ? 'ura' : 'uro';
  9563. } else if (number === 2) {
  9564. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  9565. } else if (number < 5) {
  9566. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  9567. } else {
  9568. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  9569. }
  9570. return result;
  9571. case 'd':
  9572. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  9573. case 'dd':
  9574. if (number === 1) {
  9575. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  9576. } else if (number === 2) {
  9577. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  9578. } else {
  9579. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  9580. }
  9581. return result;
  9582. case 'M':
  9583. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  9584. case 'MM':
  9585. if (number === 1) {
  9586. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  9587. } else if (number === 2) {
  9588. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  9589. } else if (number < 5) {
  9590. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  9591. } else {
  9592. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  9593. }
  9594. return result;
  9595. case 'y':
  9596. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  9597. case 'yy':
  9598. if (number === 1) {
  9599. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  9600. } else if (number === 2) {
  9601. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  9602. } else if (number < 5) {
  9603. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  9604. } else {
  9605. result += withoutSuffix || isFuture ? 'let' : 'leti';
  9606. }
  9607. return result;
  9608. }
  9609. }
  9610. var sl = moment__default.defineLocale('sl', {
  9611. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  9612. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  9613. monthsParseExact: true,
  9614. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  9615. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  9616. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  9617. weekdaysParseExact : true,
  9618. longDateFormat : {
  9619. LT : 'H:mm',
  9620. LTS : 'H:mm:ss',
  9621. L : 'DD.MM.YYYY',
  9622. LL : 'D. MMMM YYYY',
  9623. LLL : 'D. MMMM YYYY H:mm',
  9624. LLLL : 'dddd, D. MMMM YYYY H:mm'
  9625. },
  9626. calendar : {
  9627. sameDay : '[danes ob] LT',
  9628. nextDay : '[jutri ob] LT',
  9629. nextWeek : function () {
  9630. switch (this.day()) {
  9631. case 0:
  9632. return '[v] [nedeljo] [ob] LT';
  9633. case 3:
  9634. return '[v] [sredo] [ob] LT';
  9635. case 6:
  9636. return '[v] [soboto] [ob] LT';
  9637. case 1:
  9638. case 2:
  9639. case 4:
  9640. case 5:
  9641. return '[v] dddd [ob] LT';
  9642. }
  9643. },
  9644. lastDay : '[včeraj ob] LT',
  9645. lastWeek : function () {
  9646. switch (this.day()) {
  9647. case 0:
  9648. return '[prejšnjo] [nedeljo] [ob] LT';
  9649. case 3:
  9650. return '[prejšnjo] [sredo] [ob] LT';
  9651. case 6:
  9652. return '[prejšnjo] [soboto] [ob] LT';
  9653. case 1:
  9654. case 2:
  9655. case 4:
  9656. case 5:
  9657. return '[prejšnji] dddd [ob] LT';
  9658. }
  9659. },
  9660. sameElse : 'L'
  9661. },
  9662. relativeTime : {
  9663. future : 'čez %s',
  9664. past : 'pred %s',
  9665. s : sl__processRelativeTime,
  9666. m : sl__processRelativeTime,
  9667. mm : sl__processRelativeTime,
  9668. h : sl__processRelativeTime,
  9669. hh : sl__processRelativeTime,
  9670. d : sl__processRelativeTime,
  9671. dd : sl__processRelativeTime,
  9672. M : sl__processRelativeTime,
  9673. MM : sl__processRelativeTime,
  9674. y : sl__processRelativeTime,
  9675. yy : sl__processRelativeTime
  9676. },
  9677. ordinalParse: /\d{1,2}\./,
  9678. ordinal : '%d.',
  9679. week : {
  9680. dow : 1, // Monday is the first day of the week.
  9681. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9682. }
  9683. });
  9684. var sq = moment__default.defineLocale('sq', {
  9685. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  9686. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  9687. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  9688. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  9689. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  9690. weekdaysParseExact : true,
  9691. meridiemParse: /PD|MD/,
  9692. isPM: function (input) {
  9693. return input.charAt(0) === 'M';
  9694. },
  9695. meridiem : function (hours, minutes, isLower) {
  9696. return hours < 12 ? 'PD' : 'MD';
  9697. },
  9698. longDateFormat : {
  9699. LT : 'HH:mm',
  9700. LTS : 'HH:mm:ss',
  9701. L : 'DD/MM/YYYY',
  9702. LL : 'D MMMM YYYY',
  9703. LLL : 'D MMMM YYYY HH:mm',
  9704. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9705. },
  9706. calendar : {
  9707. sameDay : '[Sot në] LT',
  9708. nextDay : '[Nesër në] LT',
  9709. nextWeek : 'dddd [në] LT',
  9710. lastDay : '[Dje në] LT',
  9711. lastWeek : 'dddd [e kaluar në] LT',
  9712. sameElse : 'L'
  9713. },
  9714. relativeTime : {
  9715. future : 'në %s',
  9716. past : '%s më parë',
  9717. s : 'disa sekonda',
  9718. m : 'një minutë',
  9719. mm : '%d minuta',
  9720. h : 'një orë',
  9721. hh : '%d orë',
  9722. d : 'një ditë',
  9723. dd : '%d ditë',
  9724. M : 'një muaj',
  9725. MM : '%d muaj',
  9726. y : 'një vit',
  9727. yy : '%d vite'
  9728. },
  9729. ordinalParse: /\d{1,2}\./,
  9730. ordinal : '%d.',
  9731. week : {
  9732. dow : 1, // Monday is the first day of the week.
  9733. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9734. }
  9735. });
  9736. var sr_cyrl__translator = {
  9737. words: { //Different grammatical cases
  9738. m: ['један минут', 'једне минуте'],
  9739. mm: ['минут', 'минуте', 'минута'],
  9740. h: ['један сат', 'једног сата'],
  9741. hh: ['сат', 'сата', 'сати'],
  9742. dd: ['дан', 'дана', 'дана'],
  9743. MM: ['месец', 'месеца', 'месеци'],
  9744. yy: ['година', 'године', 'година']
  9745. },
  9746. correctGrammaticalCase: function (number, wordKey) {
  9747. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  9748. },
  9749. translate: function (number, withoutSuffix, key) {
  9750. var wordKey = sr_cyrl__translator.words[key];
  9751. if (key.length === 1) {
  9752. return withoutSuffix ? wordKey[0] : wordKey[1];
  9753. } else {
  9754. return number + ' ' + sr_cyrl__translator.correctGrammaticalCase(number, wordKey);
  9755. }
  9756. }
  9757. };
  9758. var sr_cyrl = moment__default.defineLocale('sr-cyrl', {
  9759. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  9760. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  9761. monthsParseExact: true,
  9762. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  9763. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  9764. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  9765. weekdaysParseExact : true,
  9766. longDateFormat: {
  9767. LT: 'H:mm',
  9768. LTS : 'H:mm:ss',
  9769. L: 'DD.MM.YYYY',
  9770. LL: 'D. MMMM YYYY',
  9771. LLL: 'D. MMMM YYYY H:mm',
  9772. LLLL: 'dddd, D. MMMM YYYY H:mm'
  9773. },
  9774. calendar: {
  9775. sameDay: '[данас у] LT',
  9776. nextDay: '[сутра у] LT',
  9777. nextWeek: function () {
  9778. switch (this.day()) {
  9779. case 0:
  9780. return '[у] [недељу] [у] LT';
  9781. case 3:
  9782. return '[у] [среду] [у] LT';
  9783. case 6:
  9784. return '[у] [суботу] [у] LT';
  9785. case 1:
  9786. case 2:
  9787. case 4:
  9788. case 5:
  9789. return '[у] dddd [у] LT';
  9790. }
  9791. },
  9792. lastDay : '[јуче у] LT',
  9793. lastWeek : function () {
  9794. var lastWeekDays = [
  9795. '[прошле] [недеље] [у] LT',
  9796. '[прошлог] [понедељка] [у] LT',
  9797. '[прошлог] [уторка] [у] LT',
  9798. '[прошле] [среде] [у] LT',
  9799. '[прошлог] [четвртка] [у] LT',
  9800. '[прошлог] [петка] [у] LT',
  9801. '[прошле] [суботе] [у] LT'
  9802. ];
  9803. return lastWeekDays[this.day()];
  9804. },
  9805. sameElse : 'L'
  9806. },
  9807. relativeTime : {
  9808. future : 'за %s',
  9809. past : 'пре %s',
  9810. s : 'неколико секунди',
  9811. m : sr_cyrl__translator.translate,
  9812. mm : sr_cyrl__translator.translate,
  9813. h : sr_cyrl__translator.translate,
  9814. hh : sr_cyrl__translator.translate,
  9815. d : 'дан',
  9816. dd : sr_cyrl__translator.translate,
  9817. M : 'месец',
  9818. MM : sr_cyrl__translator.translate,
  9819. y : 'годину',
  9820. yy : sr_cyrl__translator.translate
  9821. },
  9822. ordinalParse: /\d{1,2}\./,
  9823. ordinal : '%d.',
  9824. week : {
  9825. dow : 1, // Monday is the first day of the week.
  9826. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9827. }
  9828. });
  9829. var sr__translator = {
  9830. words: { //Different grammatical cases
  9831. m: ['jedan minut', 'jedne minute'],
  9832. mm: ['minut', 'minute', 'minuta'],
  9833. h: ['jedan sat', 'jednog sata'],
  9834. hh: ['sat', 'sata', 'sati'],
  9835. dd: ['dan', 'dana', 'dana'],
  9836. MM: ['mesec', 'meseca', 'meseci'],
  9837. yy: ['godina', 'godine', 'godina']
  9838. },
  9839. correctGrammaticalCase: function (number, wordKey) {
  9840. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  9841. },
  9842. translate: function (number, withoutSuffix, key) {
  9843. var wordKey = sr__translator.words[key];
  9844. if (key.length === 1) {
  9845. return withoutSuffix ? wordKey[0] : wordKey[1];
  9846. } else {
  9847. return number + ' ' + sr__translator.correctGrammaticalCase(number, wordKey);
  9848. }
  9849. }
  9850. };
  9851. var sr = moment__default.defineLocale('sr', {
  9852. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  9853. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  9854. monthsParseExact: true,
  9855. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  9856. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  9857. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  9858. weekdaysParseExact : true,
  9859. longDateFormat: {
  9860. LT: 'H:mm',
  9861. LTS : 'H:mm:ss',
  9862. L: 'DD.MM.YYYY',
  9863. LL: 'D. MMMM YYYY',
  9864. LLL: 'D. MMMM YYYY H:mm',
  9865. LLLL: 'dddd, D. MMMM YYYY H:mm'
  9866. },
  9867. calendar: {
  9868. sameDay: '[danas u] LT',
  9869. nextDay: '[sutra u] LT',
  9870. nextWeek: function () {
  9871. switch (this.day()) {
  9872. case 0:
  9873. return '[u] [nedelju] [u] LT';
  9874. case 3:
  9875. return '[u] [sredu] [u] LT';
  9876. case 6:
  9877. return '[u] [subotu] [u] LT';
  9878. case 1:
  9879. case 2:
  9880. case 4:
  9881. case 5:
  9882. return '[u] dddd [u] LT';
  9883. }
  9884. },
  9885. lastDay : '[juče u] LT',
  9886. lastWeek : function () {
  9887. var lastWeekDays = [
  9888. '[prošle] [nedelje] [u] LT',
  9889. '[prošlog] [ponedeljka] [u] LT',
  9890. '[prošlog] [utorka] [u] LT',
  9891. '[prošle] [srede] [u] LT',
  9892. '[prošlog] [četvrtka] [u] LT',
  9893. '[prošlog] [petka] [u] LT',
  9894. '[prošle] [subote] [u] LT'
  9895. ];
  9896. return lastWeekDays[this.day()];
  9897. },
  9898. sameElse : 'L'
  9899. },
  9900. relativeTime : {
  9901. future : 'za %s',
  9902. past : 'pre %s',
  9903. s : 'nekoliko sekundi',
  9904. m : sr__translator.translate,
  9905. mm : sr__translator.translate,
  9906. h : sr__translator.translate,
  9907. hh : sr__translator.translate,
  9908. d : 'dan',
  9909. dd : sr__translator.translate,
  9910. M : 'mesec',
  9911. MM : sr__translator.translate,
  9912. y : 'godinu',
  9913. yy : sr__translator.translate
  9914. },
  9915. ordinalParse: /\d{1,2}\./,
  9916. ordinal : '%d.',
  9917. week : {
  9918. dow : 1, // Monday is the first day of the week.
  9919. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9920. }
  9921. });
  9922. var ss = moment__default.defineLocale('ss', {
  9923. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  9924. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  9925. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  9926. weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  9927. weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  9928. weekdaysParseExact : true,
  9929. longDateFormat : {
  9930. LT : 'h:mm A',
  9931. LTS : 'h:mm:ss A',
  9932. L : 'DD/MM/YYYY',
  9933. LL : 'D MMMM YYYY',
  9934. LLL : 'D MMMM YYYY h:mm A',
  9935. LLLL : 'dddd, D MMMM YYYY h:mm A'
  9936. },
  9937. calendar : {
  9938. sameDay : '[Namuhla nga] LT',
  9939. nextDay : '[Kusasa nga] LT',
  9940. nextWeek : 'dddd [nga] LT',
  9941. lastDay : '[Itolo nga] LT',
  9942. lastWeek : 'dddd [leliphelile] [nga] LT',
  9943. sameElse : 'L'
  9944. },
  9945. relativeTime : {
  9946. future : 'nga %s',
  9947. past : 'wenteka nga %s',
  9948. s : 'emizuzwana lomcane',
  9949. m : 'umzuzu',
  9950. mm : '%d emizuzu',
  9951. h : 'lihora',
  9952. hh : '%d emahora',
  9953. d : 'lilanga',
  9954. dd : '%d emalanga',
  9955. M : 'inyanga',
  9956. MM : '%d tinyanga',
  9957. y : 'umnyaka',
  9958. yy : '%d iminyaka'
  9959. },
  9960. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  9961. meridiem : function (hours, minutes, isLower) {
  9962. if (hours < 11) {
  9963. return 'ekuseni';
  9964. } else if (hours < 15) {
  9965. return 'emini';
  9966. } else if (hours < 19) {
  9967. return 'entsambama';
  9968. } else {
  9969. return 'ebusuku';
  9970. }
  9971. },
  9972. meridiemHour : function (hour, meridiem) {
  9973. if (hour === 12) {
  9974. hour = 0;
  9975. }
  9976. if (meridiem === 'ekuseni') {
  9977. return hour;
  9978. } else if (meridiem === 'emini') {
  9979. return hour >= 11 ? hour : hour + 12;
  9980. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  9981. if (hour === 0) {
  9982. return 0;
  9983. }
  9984. return hour + 12;
  9985. }
  9986. },
  9987. ordinalParse: /\d{1,2}/,
  9988. ordinal : '%d',
  9989. week : {
  9990. dow : 1, // Monday is the first day of the week.
  9991. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9992. }
  9993. });
  9994. var sv = moment__default.defineLocale('sv', {
  9995. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  9996. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  9997. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  9998. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  9999. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  10000. longDateFormat : {
  10001. LT : 'HH:mm',
  10002. LTS : 'HH:mm:ss',
  10003. L : 'YYYY-MM-DD',
  10004. LL : 'D MMMM YYYY',
  10005. LLL : 'D MMMM YYYY [kl.] HH:mm',
  10006. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  10007. lll : 'D MMM YYYY HH:mm',
  10008. llll : 'ddd D MMM YYYY HH:mm'
  10009. },
  10010. calendar : {
  10011. sameDay: '[Idag] LT',
  10012. nextDay: '[Imorgon] LT',
  10013. lastDay: '[Igår] LT',
  10014. nextWeek: '[På] dddd LT',
  10015. lastWeek: '[I] dddd[s] LT',
  10016. sameElse: 'L'
  10017. },
  10018. relativeTime : {
  10019. future : 'om %s',
  10020. past : 'för %s sedan',
  10021. s : 'några sekunder',
  10022. m : 'en minut',
  10023. mm : '%d minuter',
  10024. h : 'en timme',
  10025. hh : '%d timmar',
  10026. d : 'en dag',
  10027. dd : '%d dagar',
  10028. M : 'en månad',
  10029. MM : '%d månader',
  10030. y : 'ett år',
  10031. yy : '%d år'
  10032. },
  10033. ordinalParse: /\d{1,2}(e|a)/,
  10034. ordinal : function (number) {
  10035. var b = number % 10,
  10036. output = (~~(number % 100 / 10) === 1) ? 'e' :
  10037. (b === 1) ? 'a' :
  10038. (b === 2) ? 'a' :
  10039. (b === 3) ? 'e' : 'e';
  10040. return number + output;
  10041. },
  10042. week : {
  10043. dow : 1, // Monday is the first day of the week.
  10044. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10045. }
  10046. });
  10047. var sw = moment__default.defineLocale('sw', {
  10048. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  10049. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  10050. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  10051. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  10052. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  10053. weekdaysParseExact : true,
  10054. longDateFormat : {
  10055. LT : 'HH:mm',
  10056. LTS : 'HH:mm:ss',
  10057. L : 'DD.MM.YYYY',
  10058. LL : 'D MMMM YYYY',
  10059. LLL : 'D MMMM YYYY HH:mm',
  10060. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10061. },
  10062. calendar : {
  10063. sameDay : '[leo saa] LT',
  10064. nextDay : '[kesho saa] LT',
  10065. nextWeek : '[wiki ijayo] dddd [saat] LT',
  10066. lastDay : '[jana] LT',
  10067. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  10068. sameElse : 'L'
  10069. },
  10070. relativeTime : {
  10071. future : '%s baadaye',
  10072. past : 'tokea %s',
  10073. s : 'hivi punde',
  10074. m : 'dakika moja',
  10075. mm : 'dakika %d',
  10076. h : 'saa limoja',
  10077. hh : 'masaa %d',
  10078. d : 'siku moja',
  10079. dd : 'masiku %d',
  10080. M : 'mwezi mmoja',
  10081. MM : 'miezi %d',
  10082. y : 'mwaka mmoja',
  10083. yy : 'miaka %d'
  10084. },
  10085. week : {
  10086. dow : 1, // Monday is the first day of the week.
  10087. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10088. }
  10089. });
  10090. var ta__symbolMap = {
  10091. '1': '௧',
  10092. '2': '௨',
  10093. '3': '௩',
  10094. '4': '௪',
  10095. '5': '௫',
  10096. '6': '௬',
  10097. '7': '௭',
  10098. '8': '௮',
  10099. '9': '௯',
  10100. '0': '௦'
  10101. }, ta__numberMap = {
  10102. '௧': '1',
  10103. '௨': '2',
  10104. '௩': '3',
  10105. '௪': '4',
  10106. '௫': '5',
  10107. '௬': '6',
  10108. '௭': '7',
  10109. '௮': '8',
  10110. '௯': '9',
  10111. '௦': '0'
  10112. };
  10113. var ta = moment__default.defineLocale('ta', {
  10114. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  10115. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  10116. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  10117. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  10118. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  10119. longDateFormat : {
  10120. LT : 'HH:mm',
  10121. LTS : 'HH:mm:ss',
  10122. L : 'DD/MM/YYYY',
  10123. LL : 'D MMMM YYYY',
  10124. LLL : 'D MMMM YYYY, HH:mm',
  10125. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  10126. },
  10127. calendar : {
  10128. sameDay : '[இன்று] LT',
  10129. nextDay : '[நாளை] LT',
  10130. nextWeek : 'dddd, LT',
  10131. lastDay : '[நேற்று] LT',
  10132. lastWeek : '[கடந்த வாரம்] dddd, LT',
  10133. sameElse : 'L'
  10134. },
  10135. relativeTime : {
  10136. future : '%s இல்',
  10137. past : '%s முன்',
  10138. s : 'ஒரு சில விநாடிகள்',
  10139. m : 'ஒரு நிமிடம்',
  10140. mm : '%d நிமிடங்கள்',
  10141. h : 'ஒரு மணி நேரம்',
  10142. hh : '%d மணி நேரம்',
  10143. d : 'ஒரு நாள்',
  10144. dd : '%d நாட்கள்',
  10145. M : 'ஒரு மாதம்',
  10146. MM : '%d மாதங்கள்',
  10147. y : 'ஒரு வருடம்',
  10148. yy : '%d ஆண்டுகள்'
  10149. },
  10150. ordinalParse: /\d{1,2}வது/,
  10151. ordinal : function (number) {
  10152. return number + 'வது';
  10153. },
  10154. preparse: function (string) {
  10155. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  10156. return ta__numberMap[match];
  10157. });
  10158. },
  10159. postformat: function (string) {
  10160. return string.replace(/\d/g, function (match) {
  10161. return ta__symbolMap[match];
  10162. });
  10163. },
  10164. // refer http://ta.wikipedia.org/s/1er1
  10165. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  10166. meridiem : function (hour, minute, isLower) {
  10167. if (hour < 2) {
  10168. return ' யாமம்';
  10169. } else if (hour < 6) {
  10170. return ' வைகறை'; // வைகறை
  10171. } else if (hour < 10) {
  10172. return ' காலை'; // காலை
  10173. } else if (hour < 14) {
  10174. return ' நண்பகல்'; // நண்பகல்
  10175. } else if (hour < 18) {
  10176. return ' எற்பாடு'; // எற்பாடு
  10177. } else if (hour < 22) {
  10178. return ' மாலை'; // மாலை
  10179. } else {
  10180. return ' யாமம்';
  10181. }
  10182. },
  10183. meridiemHour : function (hour, meridiem) {
  10184. if (hour === 12) {
  10185. hour = 0;
  10186. }
  10187. if (meridiem === 'யாமம்') {
  10188. return hour < 2 ? hour : hour + 12;
  10189. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  10190. return hour;
  10191. } else if (meridiem === 'நண்பகல்') {
  10192. return hour >= 10 ? hour : hour + 12;
  10193. } else {
  10194. return hour + 12;
  10195. }
  10196. },
  10197. week : {
  10198. dow : 0, // Sunday is the first day of the week.
  10199. doy : 6 // The week that contains Jan 1st is the first week of the year.
  10200. }
  10201. });
  10202. var te = moment__default.defineLocale('te', {
  10203. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  10204. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  10205. monthsParseExact : true,
  10206. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  10207. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  10208. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  10209. longDateFormat : {
  10210. LT : 'A h:mm',
  10211. LTS : 'A h:mm:ss',
  10212. L : 'DD/MM/YYYY',
  10213. LL : 'D MMMM YYYY',
  10214. LLL : 'D MMMM YYYY, A h:mm',
  10215. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  10216. },
  10217. calendar : {
  10218. sameDay : '[నేడు] LT',
  10219. nextDay : '[రేపు] LT',
  10220. nextWeek : 'dddd, LT',
  10221. lastDay : '[నిన్న] LT',
  10222. lastWeek : '[గత] dddd, LT',
  10223. sameElse : 'L'
  10224. },
  10225. relativeTime : {
  10226. future : '%s లో',
  10227. past : '%s క్రితం',
  10228. s : 'కొన్ని క్షణాలు',
  10229. m : 'ఒక నిమిషం',
  10230. mm : '%d నిమిషాలు',
  10231. h : 'ఒక గంట',
  10232. hh : '%d గంటలు',
  10233. d : 'ఒక రోజు',
  10234. dd : '%d రోజులు',
  10235. M : 'ఒక నెల',
  10236. MM : '%d నెలలు',
  10237. y : 'ఒక సంవత్సరం',
  10238. yy : '%d సంవత్సరాలు'
  10239. },
  10240. ordinalParse : /\d{1,2}వ/,
  10241. ordinal : '%dవ',
  10242. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  10243. meridiemHour : function (hour, meridiem) {
  10244. if (hour === 12) {
  10245. hour = 0;
  10246. }
  10247. if (meridiem === 'రాత్రి') {
  10248. return hour < 4 ? hour : hour + 12;
  10249. } else if (meridiem === 'ఉదయం') {
  10250. return hour;
  10251. } else if (meridiem === 'మధ్యాహ్నం') {
  10252. return hour >= 10 ? hour : hour + 12;
  10253. } else if (meridiem === 'సాయంత్రం') {
  10254. return hour + 12;
  10255. }
  10256. },
  10257. meridiem : function (hour, minute, isLower) {
  10258. if (hour < 4) {
  10259. return 'రాత్రి';
  10260. } else if (hour < 10) {
  10261. return 'ఉదయం';
  10262. } else if (hour < 17) {
  10263. return 'మధ్యాహ్నం';
  10264. } else if (hour < 20) {
  10265. return 'సాయంత్రం';
  10266. } else {
  10267. return 'రాత్రి';
  10268. }
  10269. },
  10270. week : {
  10271. dow : 0, // Sunday is the first day of the week.
  10272. doy : 6 // The week that contains Jan 1st is the first week of the year.
  10273. }
  10274. });
  10275. var th = moment__default.defineLocale('th', {
  10276. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  10277. monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  10278. monthsParseExact: true,
  10279. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  10280. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  10281. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  10282. weekdaysParseExact : true,
  10283. longDateFormat : {
  10284. LT : 'H:mm',
  10285. LTS : 'H:mm:ss',
  10286. L : 'YYYY/MM/DD',
  10287. LL : 'D MMMM YYYY',
  10288. LLL : 'D MMMM YYYY เวลา H:mm',
  10289. LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
  10290. },
  10291. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  10292. isPM: function (input) {
  10293. return input === 'หลังเที่ยง';
  10294. },
  10295. meridiem : function (hour, minute, isLower) {
  10296. if (hour < 12) {
  10297. return 'ก่อนเที่ยง';
  10298. } else {
  10299. return 'หลังเที่ยง';
  10300. }
  10301. },
  10302. calendar : {
  10303. sameDay : '[วันนี้ เวลา] LT',
  10304. nextDay : '[พรุ่งนี้ เวลา] LT',
  10305. nextWeek : 'dddd[หน้า เวลา] LT',
  10306. lastDay : '[เมื่อวานนี้ เวลา] LT',
  10307. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  10308. sameElse : 'L'
  10309. },
  10310. relativeTime : {
  10311. future : 'อีก %s',
  10312. past : '%sที่แล้ว',
  10313. s : 'ไม่กี่วินาที',
  10314. m : '1 นาที',
  10315. mm : '%d นาที',
  10316. h : '1 ชั่วโมง',
  10317. hh : '%d ชั่วโมง',
  10318. d : '1 วัน',
  10319. dd : '%d วัน',
  10320. M : '1 เดือน',
  10321. MM : '%d เดือน',
  10322. y : '1 ปี',
  10323. yy : '%d ปี'
  10324. }
  10325. });
  10326. var tl_ph = moment__default.defineLocale('tl-ph', {
  10327. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  10328. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  10329. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  10330. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  10331. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  10332. longDateFormat : {
  10333. LT : 'HH:mm',
  10334. LTS : 'HH:mm:ss',
  10335. L : 'MM/D/YYYY',
  10336. LL : 'MMMM D, YYYY',
  10337. LLL : 'MMMM D, YYYY HH:mm',
  10338. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  10339. },
  10340. calendar : {
  10341. sameDay: '[Ngayon sa] LT',
  10342. nextDay: '[Bukas sa] LT',
  10343. nextWeek: 'dddd [sa] LT',
  10344. lastDay: '[Kahapon sa] LT',
  10345. lastWeek: 'dddd [huling linggo] LT',
  10346. sameElse: 'L'
  10347. },
  10348. relativeTime : {
  10349. future : 'sa loob ng %s',
  10350. past : '%s ang nakalipas',
  10351. s : 'ilang segundo',
  10352. m : 'isang minuto',
  10353. mm : '%d minuto',
  10354. h : 'isang oras',
  10355. hh : '%d oras',
  10356. d : 'isang araw',
  10357. dd : '%d araw',
  10358. M : 'isang buwan',
  10359. MM : '%d buwan',
  10360. y : 'isang taon',
  10361. yy : '%d taon'
  10362. },
  10363. ordinalParse: /\d{1,2}/,
  10364. ordinal : function (number) {
  10365. return number;
  10366. },
  10367. week : {
  10368. dow : 1, // Monday is the first day of the week.
  10369. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10370. }
  10371. });
  10372. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  10373. function translateFuture(output) {
  10374. var time = output;
  10375. time = (output.indexOf('jaj') !== -1) ?
  10376. time.slice(0, -3) + 'leS' :
  10377. (output.indexOf('jar') !== -1) ?
  10378. time.slice(0, -3) + 'waQ' :
  10379. (output.indexOf('DIS') !== -1) ?
  10380. time.slice(0, -3) + 'nem' :
  10381. time + ' pIq';
  10382. return time;
  10383. }
  10384. function translatePast(output) {
  10385. var time = output;
  10386. time = (output.indexOf('jaj') !== -1) ?
  10387. time.slice(0, -3) + 'Hu’' :
  10388. (output.indexOf('jar') !== -1) ?
  10389. time.slice(0, -3) + 'wen' :
  10390. (output.indexOf('DIS') !== -1) ?
  10391. time.slice(0, -3) + 'ben' :
  10392. time + ' ret';
  10393. return time;
  10394. }
  10395. function tlh__translate(number, withoutSuffix, string, isFuture) {
  10396. var numberNoun = numberAsNoun(number);
  10397. switch (string) {
  10398. case 'mm':
  10399. return numberNoun + ' tup';
  10400. case 'hh':
  10401. return numberNoun + ' rep';
  10402. case 'dd':
  10403. return numberNoun + ' jaj';
  10404. case 'MM':
  10405. return numberNoun + ' jar';
  10406. case 'yy':
  10407. return numberNoun + ' DIS';
  10408. }
  10409. }
  10410. function numberAsNoun(number) {
  10411. var hundred = Math.floor((number % 1000) / 100),
  10412. ten = Math.floor((number % 100) / 10),
  10413. one = number % 10,
  10414. word = '';
  10415. if (hundred > 0) {
  10416. word += numbersNouns[hundred] + 'vatlh';
  10417. }
  10418. if (ten > 0) {
  10419. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  10420. }
  10421. if (one > 0) {
  10422. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  10423. }
  10424. return (word === '') ? 'pagh' : word;
  10425. }
  10426. var tlh = moment__default.defineLocale('tlh', {
  10427. 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('_'),
  10428. 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('_'),
  10429. monthsParseExact : true,
  10430. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  10431. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  10432. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  10433. longDateFormat : {
  10434. LT : 'HH:mm',
  10435. LTS : 'HH:mm:ss',
  10436. L : 'DD.MM.YYYY',
  10437. LL : 'D MMMM YYYY',
  10438. LLL : 'D MMMM YYYY HH:mm',
  10439. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10440. },
  10441. calendar : {
  10442. sameDay: '[DaHjaj] LT',
  10443. nextDay: '[wa’leS] LT',
  10444. nextWeek: 'LLL',
  10445. lastDay: '[wa’Hu’] LT',
  10446. lastWeek: 'LLL',
  10447. sameElse: 'L'
  10448. },
  10449. relativeTime : {
  10450. future : translateFuture,
  10451. past : translatePast,
  10452. s : 'puS lup',
  10453. m : 'wa’ tup',
  10454. mm : tlh__translate,
  10455. h : 'wa’ rep',
  10456. hh : tlh__translate,
  10457. d : 'wa’ jaj',
  10458. dd : tlh__translate,
  10459. M : 'wa’ jar',
  10460. MM : tlh__translate,
  10461. y : 'wa’ DIS',
  10462. yy : tlh__translate
  10463. },
  10464. ordinalParse: /\d{1,2}\./,
  10465. ordinal : '%d.',
  10466. week : {
  10467. dow : 1, // Monday is the first day of the week.
  10468. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10469. }
  10470. });
  10471. var tr__suffixes = {
  10472. 1: '\'inci',
  10473. 5: '\'inci',
  10474. 8: '\'inci',
  10475. 70: '\'inci',
  10476. 80: '\'inci',
  10477. 2: '\'nci',
  10478. 7: '\'nci',
  10479. 20: '\'nci',
  10480. 50: '\'nci',
  10481. 3: '\'üncü',
  10482. 4: '\'üncü',
  10483. 100: '\'üncü',
  10484. 6: '\'ncı',
  10485. 9: '\'uncu',
  10486. 10: '\'uncu',
  10487. 30: '\'uncu',
  10488. 60: '\'ıncı',
  10489. 90: '\'ıncı'
  10490. };
  10491. var tr = moment__default.defineLocale('tr', {
  10492. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  10493. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  10494. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  10495. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  10496. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  10497. longDateFormat : {
  10498. LT : 'HH:mm',
  10499. LTS : 'HH:mm:ss',
  10500. L : 'DD.MM.YYYY',
  10501. LL : 'D MMMM YYYY',
  10502. LLL : 'D MMMM YYYY HH:mm',
  10503. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10504. },
  10505. calendar : {
  10506. sameDay : '[bugün saat] LT',
  10507. nextDay : '[yarın saat] LT',
  10508. nextWeek : '[haftaya] dddd [saat] LT',
  10509. lastDay : '[dün] LT',
  10510. lastWeek : '[geçen hafta] dddd [saat] LT',
  10511. sameElse : 'L'
  10512. },
  10513. relativeTime : {
  10514. future : '%s sonra',
  10515. past : '%s önce',
  10516. s : 'birkaç saniye',
  10517. m : 'bir dakika',
  10518. mm : '%d dakika',
  10519. h : 'bir saat',
  10520. hh : '%d saat',
  10521. d : 'bir gün',
  10522. dd : '%d gün',
  10523. M : 'bir ay',
  10524. MM : '%d ay',
  10525. y : 'bir yıl',
  10526. yy : '%d yıl'
  10527. },
  10528. ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  10529. ordinal : function (number) {
  10530. if (number === 0) { // special case for zero
  10531. return number + '\'ıncı';
  10532. }
  10533. var a = number % 10,
  10534. b = number % 100 - a,
  10535. c = number >= 100 ? 100 : null;
  10536. return number + (tr__suffixes[a] || tr__suffixes[b] || tr__suffixes[c]);
  10537. },
  10538. week : {
  10539. dow : 1, // Monday is the first day of the week.
  10540. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10541. }
  10542. });
  10543. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  10544. // This is currently too difficult (maybe even impossible) to add.
  10545. var tzl = moment__default.defineLocale('tzl', {
  10546. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  10547. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  10548. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  10549. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  10550. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  10551. longDateFormat : {
  10552. LT : 'HH.mm',
  10553. LTS : 'HH.mm.ss',
  10554. L : 'DD.MM.YYYY',
  10555. LL : 'D. MMMM [dallas] YYYY',
  10556. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  10557. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  10558. },
  10559. meridiemParse: /d\'o|d\'a/i,
  10560. isPM : function (input) {
  10561. return 'd\'o' === input.toLowerCase();
  10562. },
  10563. meridiem : function (hours, minutes, isLower) {
  10564. if (hours > 11) {
  10565. return isLower ? 'd\'o' : 'D\'O';
  10566. } else {
  10567. return isLower ? 'd\'a' : 'D\'A';
  10568. }
  10569. },
  10570. calendar : {
  10571. sameDay : '[oxhi à] LT',
  10572. nextDay : '[demà à] LT',
  10573. nextWeek : 'dddd [à] LT',
  10574. lastDay : '[ieiri à] LT',
  10575. lastWeek : '[sür el] dddd [lasteu à] LT',
  10576. sameElse : 'L'
  10577. },
  10578. relativeTime : {
  10579. future : 'osprei %s',
  10580. past : 'ja%s',
  10581. s : tzl__processRelativeTime,
  10582. m : tzl__processRelativeTime,
  10583. mm : tzl__processRelativeTime,
  10584. h : tzl__processRelativeTime,
  10585. hh : tzl__processRelativeTime,
  10586. d : tzl__processRelativeTime,
  10587. dd : tzl__processRelativeTime,
  10588. M : tzl__processRelativeTime,
  10589. MM : tzl__processRelativeTime,
  10590. y : tzl__processRelativeTime,
  10591. yy : tzl__processRelativeTime
  10592. },
  10593. ordinalParse: /\d{1,2}\./,
  10594. ordinal : '%d.',
  10595. week : {
  10596. dow : 1, // Monday is the first day of the week.
  10597. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10598. }
  10599. });
  10600. function tzl__processRelativeTime(number, withoutSuffix, key, isFuture) {
  10601. var format = {
  10602. 's': ['viensas secunds', '\'iensas secunds'],
  10603. 'm': ['\'n míut', '\'iens míut'],
  10604. 'mm': [number + ' míuts', '' + number + ' míuts'],
  10605. 'h': ['\'n þora', '\'iensa þora'],
  10606. 'hh': [number + ' þoras', '' + number + ' þoras'],
  10607. 'd': ['\'n ziua', '\'iensa ziua'],
  10608. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  10609. 'M': ['\'n mes', '\'iens mes'],
  10610. 'MM': [number + ' mesen', '' + number + ' mesen'],
  10611. 'y': ['\'n ar', '\'iens ar'],
  10612. 'yy': [number + ' ars', '' + number + ' ars']
  10613. };
  10614. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  10615. }
  10616. var tzm_latn = moment__default.defineLocale('tzm-latn', {
  10617. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  10618. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  10619. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  10620. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  10621. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  10622. longDateFormat : {
  10623. LT : 'HH:mm',
  10624. LTS : 'HH:mm:ss',
  10625. L : 'DD/MM/YYYY',
  10626. LL : 'D MMMM YYYY',
  10627. LLL : 'D MMMM YYYY HH:mm',
  10628. LLLL : 'dddd D MMMM YYYY HH:mm'
  10629. },
  10630. calendar : {
  10631. sameDay: '[asdkh g] LT',
  10632. nextDay: '[aska g] LT',
  10633. nextWeek: 'dddd [g] LT',
  10634. lastDay: '[assant g] LT',
  10635. lastWeek: 'dddd [g] LT',
  10636. sameElse: 'L'
  10637. },
  10638. relativeTime : {
  10639. future : 'dadkh s yan %s',
  10640. past : 'yan %s',
  10641. s : 'imik',
  10642. m : 'minuḍ',
  10643. mm : '%d minuḍ',
  10644. h : 'saɛa',
  10645. hh : '%d tassaɛin',
  10646. d : 'ass',
  10647. dd : '%d ossan',
  10648. M : 'ayowr',
  10649. MM : '%d iyyirn',
  10650. y : 'asgas',
  10651. yy : '%d isgasn'
  10652. },
  10653. week : {
  10654. dow : 6, // Saturday is the first day of the week.
  10655. doy : 12 // The week that contains Jan 1st is the first week of the year.
  10656. }
  10657. });
  10658. var tzm = moment__default.defineLocale('tzm', {
  10659. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  10660. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  10661. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  10662. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  10663. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  10664. longDateFormat : {
  10665. LT : 'HH:mm',
  10666. LTS: 'HH:mm:ss',
  10667. L : 'DD/MM/YYYY',
  10668. LL : 'D MMMM YYYY',
  10669. LLL : 'D MMMM YYYY HH:mm',
  10670. LLLL : 'dddd D MMMM YYYY HH:mm'
  10671. },
  10672. calendar : {
  10673. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  10674. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  10675. nextWeek: 'dddd [ⴴ] LT',
  10676. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  10677. lastWeek: 'dddd [ⴴ] LT',
  10678. sameElse: 'L'
  10679. },
  10680. relativeTime : {
  10681. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  10682. past : 'ⵢⴰⵏ %s',
  10683. s : 'ⵉⵎⵉⴽ',
  10684. m : 'ⵎⵉⵏⵓⴺ',
  10685. mm : '%d ⵎⵉⵏⵓⴺ',
  10686. h : 'ⵙⴰⵄⴰ',
  10687. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  10688. d : 'ⴰⵙⵙ',
  10689. dd : '%d oⵙⵙⴰⵏ',
  10690. M : 'ⴰⵢoⵓⵔ',
  10691. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  10692. y : 'ⴰⵙⴳⴰⵙ',
  10693. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  10694. },
  10695. week : {
  10696. dow : 6, // Saturday is the first day of the week.
  10697. doy : 12 // The week that contains Jan 1st is the first week of the year.
  10698. }
  10699. });
  10700. function uk__plural(word, num) {
  10701. var forms = word.split('_');
  10702. 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]);
  10703. }
  10704. function uk__relativeTimeWithPlural(number, withoutSuffix, key) {
  10705. var format = {
  10706. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  10707. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  10708. 'dd': 'день_дні_днів',
  10709. 'MM': 'місяць_місяці_місяців',
  10710. 'yy': 'рік_роки_років'
  10711. };
  10712. if (key === 'm') {
  10713. return withoutSuffix ? 'хвилина' : 'хвилину';
  10714. }
  10715. else if (key === 'h') {
  10716. return withoutSuffix ? 'година' : 'годину';
  10717. }
  10718. else {
  10719. return number + ' ' + uk__plural(format[key], +number);
  10720. }
  10721. }
  10722. function weekdaysCaseReplace(m, format) {
  10723. var weekdays = {
  10724. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  10725. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  10726. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  10727. },
  10728. nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  10729. 'accusative' :
  10730. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  10731. 'genitive' :
  10732. 'nominative');
  10733. return weekdays[nounCase][m.day()];
  10734. }
  10735. function processHoursFunction(str) {
  10736. return function () {
  10737. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  10738. };
  10739. }
  10740. var uk = moment__default.defineLocale('uk', {
  10741. months : {
  10742. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  10743. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  10744. },
  10745. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  10746. weekdays : weekdaysCaseReplace,
  10747. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  10748. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  10749. longDateFormat : {
  10750. LT : 'HH:mm',
  10751. LTS : 'HH:mm:ss',
  10752. L : 'DD.MM.YYYY',
  10753. LL : 'D MMMM YYYY р.',
  10754. LLL : 'D MMMM YYYY р., HH:mm',
  10755. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  10756. },
  10757. calendar : {
  10758. sameDay: processHoursFunction('[Сьогодні '),
  10759. nextDay: processHoursFunction('[Завтра '),
  10760. lastDay: processHoursFunction('[Вчора '),
  10761. nextWeek: processHoursFunction('[У] dddd ['),
  10762. lastWeek: function () {
  10763. switch (this.day()) {
  10764. case 0:
  10765. case 3:
  10766. case 5:
  10767. case 6:
  10768. return processHoursFunction('[Минулої] dddd [').call(this);
  10769. case 1:
  10770. case 2:
  10771. case 4:
  10772. return processHoursFunction('[Минулого] dddd [').call(this);
  10773. }
  10774. },
  10775. sameElse: 'L'
  10776. },
  10777. relativeTime : {
  10778. future : 'за %s',
  10779. past : '%s тому',
  10780. s : 'декілька секунд',
  10781. m : uk__relativeTimeWithPlural,
  10782. mm : uk__relativeTimeWithPlural,
  10783. h : 'годину',
  10784. hh : uk__relativeTimeWithPlural,
  10785. d : 'день',
  10786. dd : uk__relativeTimeWithPlural,
  10787. M : 'місяць',
  10788. MM : uk__relativeTimeWithPlural,
  10789. y : 'рік',
  10790. yy : uk__relativeTimeWithPlural
  10791. },
  10792. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  10793. meridiemParse: /ночі|ранку|дня|вечора/,
  10794. isPM: function (input) {
  10795. return /^(дня|вечора)$/.test(input);
  10796. },
  10797. meridiem : function (hour, minute, isLower) {
  10798. if (hour < 4) {
  10799. return 'ночі';
  10800. } else if (hour < 12) {
  10801. return 'ранку';
  10802. } else if (hour < 17) {
  10803. return 'дня';
  10804. } else {
  10805. return 'вечора';
  10806. }
  10807. },
  10808. ordinalParse: /\d{1,2}-(й|го)/,
  10809. ordinal: function (number, period) {
  10810. switch (period) {
  10811. case 'M':
  10812. case 'd':
  10813. case 'DDD':
  10814. case 'w':
  10815. case 'W':
  10816. return number + '-й';
  10817. case 'D':
  10818. return number + '-го';
  10819. default:
  10820. return number;
  10821. }
  10822. },
  10823. week : {
  10824. dow : 1, // Monday is the first day of the week.
  10825. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10826. }
  10827. });
  10828. var uz = moment__default.defineLocale('uz', {
  10829. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  10830. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  10831. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  10832. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  10833. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  10834. longDateFormat : {
  10835. LT : 'HH:mm',
  10836. LTS : 'HH:mm:ss',
  10837. L : 'DD/MM/YYYY',
  10838. LL : 'D MMMM YYYY',
  10839. LLL : 'D MMMM YYYY HH:mm',
  10840. LLLL : 'D MMMM YYYY, dddd HH:mm'
  10841. },
  10842. calendar : {
  10843. sameDay : '[Бугун соат] LT [да]',
  10844. nextDay : '[Эртага] LT [да]',
  10845. nextWeek : 'dddd [куни соат] LT [да]',
  10846. lastDay : '[Кеча соат] LT [да]',
  10847. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  10848. sameElse : 'L'
  10849. },
  10850. relativeTime : {
  10851. future : 'Якин %s ичида',
  10852. past : 'Бир неча %s олдин',
  10853. s : 'фурсат',
  10854. m : 'бир дакика',
  10855. mm : '%d дакика',
  10856. h : 'бир соат',
  10857. hh : '%d соат',
  10858. d : 'бир кун',
  10859. dd : '%d кун',
  10860. M : 'бир ой',
  10861. MM : '%d ой',
  10862. y : 'бир йил',
  10863. yy : '%d йил'
  10864. },
  10865. week : {
  10866. dow : 1, // Monday is the first day of the week.
  10867. doy : 7 // The week that contains Jan 4th is the first week of the year.
  10868. }
  10869. });
  10870. var vi = moment__default.defineLocale('vi', {
  10871. 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('_'),
  10872. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  10873. monthsParseExact : true,
  10874. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  10875. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  10876. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  10877. weekdaysParseExact : true,
  10878. meridiemParse: /sa|ch/i,
  10879. isPM : function (input) {
  10880. return /^ch$/i.test(input);
  10881. },
  10882. meridiem : function (hours, minutes, isLower) {
  10883. if (hours < 12) {
  10884. return isLower ? 'sa' : 'SA';
  10885. } else {
  10886. return isLower ? 'ch' : 'CH';
  10887. }
  10888. },
  10889. longDateFormat : {
  10890. LT : 'HH:mm',
  10891. LTS : 'HH:mm:ss',
  10892. L : 'DD/MM/YYYY',
  10893. LL : 'D MMMM [năm] YYYY',
  10894. LLL : 'D MMMM [năm] YYYY HH:mm',
  10895. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  10896. l : 'DD/M/YYYY',
  10897. ll : 'D MMM YYYY',
  10898. lll : 'D MMM YYYY HH:mm',
  10899. llll : 'ddd, D MMM YYYY HH:mm'
  10900. },
  10901. calendar : {
  10902. sameDay: '[Hôm nay lúc] LT',
  10903. nextDay: '[Ngày mai lúc] LT',
  10904. nextWeek: 'dddd [tuần tới lúc] LT',
  10905. lastDay: '[Hôm qua lúc] LT',
  10906. lastWeek: 'dddd [tuần rồi lúc] LT',
  10907. sameElse: 'L'
  10908. },
  10909. relativeTime : {
  10910. future : '%s tới',
  10911. past : '%s trước',
  10912. s : 'vài giây',
  10913. m : 'một phút',
  10914. mm : '%d phút',
  10915. h : 'một giờ',
  10916. hh : '%d giờ',
  10917. d : 'một ngày',
  10918. dd : '%d ngày',
  10919. M : 'một tháng',
  10920. MM : '%d tháng',
  10921. y : 'một năm',
  10922. yy : '%d năm'
  10923. },
  10924. ordinalParse: /\d{1,2}/,
  10925. ordinal : function (number) {
  10926. return number;
  10927. },
  10928. week : {
  10929. dow : 1, // Monday is the first day of the week.
  10930. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10931. }
  10932. });
  10933. var x_pseudo = moment__default.defineLocale('x-pseudo', {
  10934. 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('_'),
  10935. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  10936. monthsParseExact : true,
  10937. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  10938. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  10939. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  10940. weekdaysParseExact : true,
  10941. longDateFormat : {
  10942. LT : 'HH:mm',
  10943. L : 'DD/MM/YYYY',
  10944. LL : 'D MMMM YYYY',
  10945. LLL : 'D MMMM YYYY HH:mm',
  10946. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10947. },
  10948. calendar : {
  10949. sameDay : '[T~ódá~ý át] LT',
  10950. nextDay : '[T~ómó~rró~w át] LT',
  10951. nextWeek : 'dddd [át] LT',
  10952. lastDay : '[Ý~ést~érdá~ý át] LT',
  10953. lastWeek : '[L~ást] dddd [át] LT',
  10954. sameElse : 'L'
  10955. },
  10956. relativeTime : {
  10957. future : 'í~ñ %s',
  10958. past : '%s á~gó',
  10959. s : 'á ~féw ~sécó~ñds',
  10960. m : 'á ~míñ~úté',
  10961. mm : '%d m~íñú~tés',
  10962. h : 'á~ñ hó~úr',
  10963. hh : '%d h~óúrs',
  10964. d : 'á ~dáý',
  10965. dd : '%d d~áýs',
  10966. M : 'á ~móñ~th',
  10967. MM : '%d m~óñt~hs',
  10968. y : 'á ~ýéár',
  10969. yy : '%d ý~éárs'
  10970. },
  10971. ordinalParse: /\d{1,2}(th|st|nd|rd)/,
  10972. ordinal : function (number) {
  10973. var b = number % 10,
  10974. output = (~~(number % 100 / 10) === 1) ? 'th' :
  10975. (b === 1) ? 'st' :
  10976. (b === 2) ? 'nd' :
  10977. (b === 3) ? 'rd' : 'th';
  10978. return number + output;
  10979. },
  10980. week : {
  10981. dow : 1, // Monday is the first day of the week.
  10982. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10983. }
  10984. });
  10985. var zh_cn = moment__default.defineLocale('zh-cn', {
  10986. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  10987. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10988. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  10989. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  10990. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  10991. longDateFormat : {
  10992. LT : 'Ah点mm分',
  10993. LTS : 'Ah点m分s秒',
  10994. L : 'YYYY-MM-DD',
  10995. LL : 'YYYY年MMMD日',
  10996. LLL : 'YYYY年MMMD日Ah点mm分',
  10997. LLLL : 'YYYY年MMMD日ddddAh点mm分',
  10998. l : 'YYYY-MM-DD',
  10999. ll : 'YYYY年MMMD日',
  11000. lll : 'YYYY年MMMD日Ah点mm分',
  11001. llll : 'YYYY年MMMD日ddddAh点mm分'
  11002. },
  11003. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  11004. meridiemHour: function (hour, meridiem) {
  11005. if (hour === 12) {
  11006. hour = 0;
  11007. }
  11008. if (meridiem === '凌晨' || meridiem === '早上' ||
  11009. meridiem === '上午') {
  11010. return hour;
  11011. } else if (meridiem === '下午' || meridiem === '晚上') {
  11012. return hour + 12;
  11013. } else {
  11014. // '中午'
  11015. return hour >= 11 ? hour : hour + 12;
  11016. }
  11017. },
  11018. meridiem : function (hour, minute, isLower) {
  11019. var hm = hour * 100 + minute;
  11020. if (hm < 600) {
  11021. return '凌晨';
  11022. } else if (hm < 900) {
  11023. return '早上';
  11024. } else if (hm < 1130) {
  11025. return '上午';
  11026. } else if (hm < 1230) {
  11027. return '中午';
  11028. } else if (hm < 1800) {
  11029. return '下午';
  11030. } else {
  11031. return '晚上';
  11032. }
  11033. },
  11034. calendar : {
  11035. sameDay : function () {
  11036. return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
  11037. },
  11038. nextDay : function () {
  11039. return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
  11040. },
  11041. lastDay : function () {
  11042. return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
  11043. },
  11044. nextWeek : function () {
  11045. var startOfWeek, prefix;
  11046. startOfWeek = moment__default().startOf('week');
  11047. prefix = this.diff(startOfWeek, 'days') >= 7 ? '[下]' : '[本]';
  11048. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  11049. },
  11050. lastWeek : function () {
  11051. var startOfWeek, prefix;
  11052. startOfWeek = moment__default().startOf('week');
  11053. prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
  11054. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  11055. },
  11056. sameElse : 'LL'
  11057. },
  11058. ordinalParse: /\d{1,2}(日|月|周)/,
  11059. ordinal : function (number, period) {
  11060. switch (period) {
  11061. case 'd':
  11062. case 'D':
  11063. case 'DDD':
  11064. return number + '日';
  11065. case 'M':
  11066. return number + '月';
  11067. case 'w':
  11068. case 'W':
  11069. return number + '周';
  11070. default:
  11071. return number;
  11072. }
  11073. },
  11074. relativeTime : {
  11075. future : '%s内',
  11076. past : '%s前',
  11077. s : '几秒',
  11078. m : '1 分钟',
  11079. mm : '%d 分钟',
  11080. h : '1 小时',
  11081. hh : '%d 小时',
  11082. d : '1 天',
  11083. dd : '%d 天',
  11084. M : '1 个月',
  11085. MM : '%d 个月',
  11086. y : '1 年',
  11087. yy : '%d 年'
  11088. },
  11089. week : {
  11090. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  11091. dow : 1, // Monday is the first day of the week.
  11092. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11093. }
  11094. });
  11095. var zh_hk = moment__default.defineLocale('zh-hk', {
  11096. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  11097. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  11098. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  11099. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  11100. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  11101. longDateFormat : {
  11102. LT : 'Ah點mm分',
  11103. LTS : 'Ah點m分s秒',
  11104. L : 'YYYY年MMMD日',
  11105. LL : 'YYYY年MMMD日',
  11106. LLL : 'YYYY年MMMD日Ah點mm分',
  11107. LLLL : 'YYYY年MMMD日ddddAh點mm分',
  11108. l : 'YYYY年MMMD日',
  11109. ll : 'YYYY年MMMD日',
  11110. lll : 'YYYY年MMMD日Ah點mm分',
  11111. llll : 'YYYY年MMMD日ddddAh點mm分'
  11112. },
  11113. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  11114. meridiemHour : function (hour, meridiem) {
  11115. if (hour === 12) {
  11116. hour = 0;
  11117. }
  11118. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  11119. return hour;
  11120. } else if (meridiem === '中午') {
  11121. return hour >= 11 ? hour : hour + 12;
  11122. } else if (meridiem === '下午' || meridiem === '晚上') {
  11123. return hour + 12;
  11124. }
  11125. },
  11126. meridiem : function (hour, minute, isLower) {
  11127. var hm = hour * 100 + minute;
  11128. if (hm < 600) {
  11129. return '凌晨';
  11130. } else if (hm < 900) {
  11131. return '早上';
  11132. } else if (hm < 1130) {
  11133. return '上午';
  11134. } else if (hm < 1230) {
  11135. return '中午';
  11136. } else if (hm < 1800) {
  11137. return '下午';
  11138. } else {
  11139. return '晚上';
  11140. }
  11141. },
  11142. calendar : {
  11143. sameDay : '[今天]LT',
  11144. nextDay : '[明天]LT',
  11145. nextWeek : '[下]ddddLT',
  11146. lastDay : '[昨天]LT',
  11147. lastWeek : '[上]ddddLT',
  11148. sameElse : 'L'
  11149. },
  11150. ordinalParse: /\d{1,2}(日|月|週)/,
  11151. ordinal : function (number, period) {
  11152. switch (period) {
  11153. case 'd' :
  11154. case 'D' :
  11155. case 'DDD' :
  11156. return number + '日';
  11157. case 'M' :
  11158. return number + '月';
  11159. case 'w' :
  11160. case 'W' :
  11161. return number + '週';
  11162. default :
  11163. return number;
  11164. }
  11165. },
  11166. relativeTime : {
  11167. future : '%s內',
  11168. past : '%s前',
  11169. s : '幾秒',
  11170. m : '1 分鐘',
  11171. mm : '%d 分鐘',
  11172. h : '1 小時',
  11173. hh : '%d 小時',
  11174. d : '1 天',
  11175. dd : '%d 天',
  11176. M : '1 個月',
  11177. MM : '%d 個月',
  11178. y : '1 年',
  11179. yy : '%d 年'
  11180. }
  11181. });
  11182. var zh_tw = moment__default.defineLocale('zh-tw', {
  11183. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  11184. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  11185. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  11186. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  11187. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  11188. longDateFormat : {
  11189. LT : 'Ah點mm分',
  11190. LTS : 'Ah點m分s秒',
  11191. L : 'YYYY年MMMD日',
  11192. LL : 'YYYY年MMMD日',
  11193. LLL : 'YYYY年MMMD日Ah點mm分',
  11194. LLLL : 'YYYY年MMMD日ddddAh點mm分',
  11195. l : 'YYYY年MMMD日',
  11196. ll : 'YYYY年MMMD日',
  11197. lll : 'YYYY年MMMD日Ah點mm分',
  11198. llll : 'YYYY年MMMD日ddddAh點mm分'
  11199. },
  11200. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  11201. meridiemHour : function (hour, meridiem) {
  11202. if (hour === 12) {
  11203. hour = 0;
  11204. }
  11205. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  11206. return hour;
  11207. } else if (meridiem === '中午') {
  11208. return hour >= 11 ? hour : hour + 12;
  11209. } else if (meridiem === '下午' || meridiem === '晚上') {
  11210. return hour + 12;
  11211. }
  11212. },
  11213. meridiem : function (hour, minute, isLower) {
  11214. var hm = hour * 100 + minute;
  11215. if (hm < 600) {
  11216. return '凌晨';
  11217. } else if (hm < 900) {
  11218. return '早上';
  11219. } else if (hm < 1130) {
  11220. return '上午';
  11221. } else if (hm < 1230) {
  11222. return '中午';
  11223. } else if (hm < 1800) {
  11224. return '下午';
  11225. } else {
  11226. return '晚上';
  11227. }
  11228. },
  11229. calendar : {
  11230. sameDay : '[今天]LT',
  11231. nextDay : '[明天]LT',
  11232. nextWeek : '[下]ddddLT',
  11233. lastDay : '[昨天]LT',
  11234. lastWeek : '[上]ddddLT',
  11235. sameElse : 'L'
  11236. },
  11237. ordinalParse: /\d{1,2}(日|月|週)/,
  11238. ordinal : function (number, period) {
  11239. switch (period) {
  11240. case 'd' :
  11241. case 'D' :
  11242. case 'DDD' :
  11243. return number + '日';
  11244. case 'M' :
  11245. return number + '月';
  11246. case 'w' :
  11247. case 'W' :
  11248. return number + '週';
  11249. default :
  11250. return number;
  11251. }
  11252. },
  11253. relativeTime : {
  11254. future : '%s內',
  11255. past : '%s前',
  11256. s : '幾秒',
  11257. m : '1 分鐘',
  11258. mm : '%d 分鐘',
  11259. h : '1 小時',
  11260. hh : '%d 小時',
  11261. d : '1 天',
  11262. dd : '%d 天',
  11263. M : '1 個月',
  11264. MM : '%d 個月',
  11265. y : '1 年',
  11266. yy : '%d 年'
  11267. }
  11268. });
  11269. var moment_with_locales = moment__default;
  11270. moment_with_locales.locale('en');
  11271. return moment_with_locales;
  11272. }));