Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

moment-with-locales.js 529KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765
  1. ;(function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. global.moment = factory()
  5. }(this, (function () { 'use strict';
  6. var hookCallback;
  7. function hooks () {
  8. return hookCallback.apply(null, arguments);
  9. }
  10. // This is done to register the method called with moment()
  11. // without creating circular dependencies.
  12. function setHookCallback (callback) {
  13. hookCallback = callback;
  14. }
  15. function isArray(input) {
  16. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  17. }
  18. function isObject(input) {
  19. // IE8 will treat undefined and null as object if it wasn't for
  20. // input != null
  21. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  22. }
  23. function isObjectEmpty(obj) {
  24. if (Object.getOwnPropertyNames) {
  25. return (Object.getOwnPropertyNames(obj).length === 0);
  26. } else {
  27. var k;
  28. for (k in obj) {
  29. if (obj.hasOwnProperty(k)) {
  30. return false;
  31. }
  32. }
  33. return true;
  34. }
  35. }
  36. function isUndefined(input) {
  37. return input === void 0;
  38. }
  39. function isNumber(input) {
  40. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  41. }
  42. function isDate(input) {
  43. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  44. }
  45. function map(arr, fn) {
  46. var res = [], i;
  47. for (i = 0; i < arr.length; ++i) {
  48. res.push(fn(arr[i], i));
  49. }
  50. return res;
  51. }
  52. function hasOwnProp(a, b) {
  53. return Object.prototype.hasOwnProperty.call(a, b);
  54. }
  55. function extend(a, b) {
  56. for (var i in b) {
  57. if (hasOwnProp(b, i)) {
  58. a[i] = b[i];
  59. }
  60. }
  61. if (hasOwnProp(b, 'toString')) {
  62. a.toString = b.toString;
  63. }
  64. if (hasOwnProp(b, 'valueOf')) {
  65. a.valueOf = b.valueOf;
  66. }
  67. return a;
  68. }
  69. function createUTC (input, format, locale, strict) {
  70. return createLocalOrUTC(input, format, locale, strict, true).utc();
  71. }
  72. function defaultParsingFlags() {
  73. // We need to deep clone this object.
  74. return {
  75. empty : false,
  76. unusedTokens : [],
  77. unusedInput : [],
  78. overflow : -2,
  79. charsLeftOver : 0,
  80. nullInput : false,
  81. invalidMonth : null,
  82. invalidFormat : false,
  83. userInvalidated : false,
  84. iso : false,
  85. parsedDateParts : [],
  86. meridiem : null,
  87. rfc2822 : false,
  88. weekdayMismatch : false
  89. };
  90. }
  91. function getParsingFlags(m) {
  92. if (m._pf == null) {
  93. m._pf = defaultParsingFlags();
  94. }
  95. return m._pf;
  96. }
  97. var some;
  98. if (Array.prototype.some) {
  99. some = Array.prototype.some;
  100. } else {
  101. some = function (fun) {
  102. var t = Object(this);
  103. var len = t.length >>> 0;
  104. for (var i = 0; i < len; i++) {
  105. if (i in t && fun.call(this, t[i], i, t)) {
  106. return true;
  107. }
  108. }
  109. return false;
  110. };
  111. }
  112. function isValid(m) {
  113. if (m._isValid == null) {
  114. var flags = getParsingFlags(m);
  115. var parsedParts = some.call(flags.parsedDateParts, function (i) {
  116. return i != null;
  117. });
  118. var isNowValid = !isNaN(m._d.getTime()) &&
  119. flags.overflow < 0 &&
  120. !flags.empty &&
  121. !flags.invalidMonth &&
  122. !flags.invalidWeekday &&
  123. !flags.weekdayMismatch &&
  124. !flags.nullInput &&
  125. !flags.invalidFormat &&
  126. !flags.userInvalidated &&
  127. (!flags.meridiem || (flags.meridiem && parsedParts));
  128. if (m._strict) {
  129. isNowValid = isNowValid &&
  130. flags.charsLeftOver === 0 &&
  131. flags.unusedTokens.length === 0 &&
  132. flags.bigHour === undefined;
  133. }
  134. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  135. m._isValid = isNowValid;
  136. }
  137. else {
  138. return isNowValid;
  139. }
  140. }
  141. return m._isValid;
  142. }
  143. function createInvalid (flags) {
  144. var m = createUTC(NaN);
  145. if (flags != null) {
  146. extend(getParsingFlags(m), flags);
  147. }
  148. else {
  149. getParsingFlags(m).userInvalidated = true;
  150. }
  151. return m;
  152. }
  153. // Plugins that add properties should also add the key here (null value),
  154. // so we can properly clone ourselves.
  155. var momentProperties = hooks.momentProperties = [];
  156. function copyConfig(to, from) {
  157. var i, prop, val;
  158. if (!isUndefined(from._isAMomentObject)) {
  159. to._isAMomentObject = from._isAMomentObject;
  160. }
  161. if (!isUndefined(from._i)) {
  162. to._i = from._i;
  163. }
  164. if (!isUndefined(from._f)) {
  165. to._f = from._f;
  166. }
  167. if (!isUndefined(from._l)) {
  168. to._l = from._l;
  169. }
  170. if (!isUndefined(from._strict)) {
  171. to._strict = from._strict;
  172. }
  173. if (!isUndefined(from._tzm)) {
  174. to._tzm = from._tzm;
  175. }
  176. if (!isUndefined(from._isUTC)) {
  177. to._isUTC = from._isUTC;
  178. }
  179. if (!isUndefined(from._offset)) {
  180. to._offset = from._offset;
  181. }
  182. if (!isUndefined(from._pf)) {
  183. to._pf = getParsingFlags(from);
  184. }
  185. if (!isUndefined(from._locale)) {
  186. to._locale = from._locale;
  187. }
  188. if (momentProperties.length > 0) {
  189. for (i = 0; i < momentProperties.length; i++) {
  190. prop = momentProperties[i];
  191. val = from[prop];
  192. if (!isUndefined(val)) {
  193. to[prop] = val;
  194. }
  195. }
  196. }
  197. return to;
  198. }
  199. var updateInProgress = false;
  200. // Moment prototype object
  201. function Moment(config) {
  202. copyConfig(this, config);
  203. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  204. if (!this.isValid()) {
  205. this._d = new Date(NaN);
  206. }
  207. // Prevent infinite loop in case updateOffset creates new moment
  208. // objects.
  209. if (updateInProgress === false) {
  210. updateInProgress = true;
  211. hooks.updateOffset(this);
  212. updateInProgress = false;
  213. }
  214. }
  215. function isMoment (obj) {
  216. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  217. }
  218. function absFloor (number) {
  219. if (number < 0) {
  220. // -0 -> 0
  221. return Math.ceil(number) || 0;
  222. } else {
  223. return Math.floor(number);
  224. }
  225. }
  226. function toInt(argumentForCoercion) {
  227. var coercedNumber = +argumentForCoercion,
  228. value = 0;
  229. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  230. value = absFloor(coercedNumber);
  231. }
  232. return value;
  233. }
  234. // compare two arrays, return the number of differences
  235. function compareArrays(array1, array2, dontConvert) {
  236. var len = Math.min(array1.length, array2.length),
  237. lengthDiff = Math.abs(array1.length - array2.length),
  238. diffs = 0,
  239. i;
  240. for (i = 0; i < len; i++) {
  241. if ((dontConvert && array1[i] !== array2[i]) ||
  242. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  243. diffs++;
  244. }
  245. }
  246. return diffs + lengthDiff;
  247. }
  248. function warn(msg) {
  249. if (hooks.suppressDeprecationWarnings === false &&
  250. (typeof console !== 'undefined') && console.warn) {
  251. console.warn('Deprecation warning: ' + msg);
  252. }
  253. }
  254. function deprecate(msg, fn) {
  255. var firstTime = true;
  256. return extend(function () {
  257. if (hooks.deprecationHandler != null) {
  258. hooks.deprecationHandler(null, msg);
  259. }
  260. if (firstTime) {
  261. var args = [];
  262. var arg;
  263. for (var i = 0; i < arguments.length; i++) {
  264. arg = '';
  265. if (typeof arguments[i] === 'object') {
  266. arg += '\n[' + i + '] ';
  267. for (var key in arguments[0]) {
  268. arg += key + ': ' + arguments[0][key] + ', ';
  269. }
  270. arg = arg.slice(0, -2); // Remove trailing comma and space
  271. } else {
  272. arg = arguments[i];
  273. }
  274. args.push(arg);
  275. }
  276. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
  277. firstTime = false;
  278. }
  279. return fn.apply(this, arguments);
  280. }, fn);
  281. }
  282. var deprecations = {};
  283. function deprecateSimple(name, msg) {
  284. if (hooks.deprecationHandler != null) {
  285. hooks.deprecationHandler(name, msg);
  286. }
  287. if (!deprecations[name]) {
  288. warn(msg);
  289. deprecations[name] = true;
  290. }
  291. }
  292. hooks.suppressDeprecationWarnings = false;
  293. hooks.deprecationHandler = null;
  294. function isFunction(input) {
  295. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  296. }
  297. function set (config) {
  298. var prop, i;
  299. for (i in config) {
  300. prop = config[i];
  301. if (isFunction(prop)) {
  302. this[i] = prop;
  303. } else {
  304. this['_' + i] = prop;
  305. }
  306. }
  307. this._config = config;
  308. // Lenient ordinal parsing accepts just a number in addition to
  309. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  310. // TODO: Remove "ordinalParse" fallback in next major release.
  311. this._dayOfMonthOrdinalParseLenient = new RegExp(
  312. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  313. '|' + (/\d{1,2}/).source);
  314. }
  315. function mergeConfigs(parentConfig, childConfig) {
  316. var res = extend({}, parentConfig), prop;
  317. for (prop in childConfig) {
  318. if (hasOwnProp(childConfig, prop)) {
  319. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  320. res[prop] = {};
  321. extend(res[prop], parentConfig[prop]);
  322. extend(res[prop], childConfig[prop]);
  323. } else if (childConfig[prop] != null) {
  324. res[prop] = childConfig[prop];
  325. } else {
  326. delete res[prop];
  327. }
  328. }
  329. }
  330. for (prop in parentConfig) {
  331. if (hasOwnProp(parentConfig, prop) &&
  332. !hasOwnProp(childConfig, prop) &&
  333. isObject(parentConfig[prop])) {
  334. // make sure changes to properties don't modify parent config
  335. res[prop] = extend({}, res[prop]);
  336. }
  337. }
  338. return res;
  339. }
  340. function Locale(config) {
  341. if (config != null) {
  342. this.set(config);
  343. }
  344. }
  345. var keys;
  346. if (Object.keys) {
  347. keys = Object.keys;
  348. } else {
  349. keys = function (obj) {
  350. var i, res = [];
  351. for (i in obj) {
  352. if (hasOwnProp(obj, i)) {
  353. res.push(i);
  354. }
  355. }
  356. return res;
  357. };
  358. }
  359. var defaultCalendar = {
  360. sameDay : '[Today at] LT',
  361. nextDay : '[Tomorrow at] LT',
  362. nextWeek : 'dddd [at] LT',
  363. lastDay : '[Yesterday at] LT',
  364. lastWeek : '[Last] dddd [at] LT',
  365. sameElse : 'L'
  366. };
  367. function calendar (key, mom, now) {
  368. var output = this._calendar[key] || this._calendar['sameElse'];
  369. return isFunction(output) ? output.call(mom, now) : output;
  370. }
  371. var defaultLongDateFormat = {
  372. LTS : 'h:mm:ss A',
  373. LT : 'h:mm A',
  374. L : 'MM/DD/YYYY',
  375. LL : 'MMMM D, YYYY',
  376. LLL : 'MMMM D, YYYY h:mm A',
  377. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  378. };
  379. function longDateFormat (key) {
  380. var format = this._longDateFormat[key],
  381. formatUpper = this._longDateFormat[key.toUpperCase()];
  382. if (format || !formatUpper) {
  383. return format;
  384. }
  385. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  386. return val.slice(1);
  387. });
  388. return this._longDateFormat[key];
  389. }
  390. var defaultInvalidDate = 'Invalid date';
  391. function invalidDate () {
  392. return this._invalidDate;
  393. }
  394. var defaultOrdinal = '%d';
  395. var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  396. function ordinal (number) {
  397. return this._ordinal.replace('%d', number);
  398. }
  399. var defaultRelativeTime = {
  400. future : 'in %s',
  401. past : '%s ago',
  402. s : 'a few seconds',
  403. ss : '%d seconds',
  404. m : 'a minute',
  405. mm : '%d minutes',
  406. h : 'an hour',
  407. hh : '%d hours',
  408. d : 'a day',
  409. dd : '%d days',
  410. M : 'a month',
  411. MM : '%d months',
  412. y : 'a year',
  413. yy : '%d years'
  414. };
  415. function relativeTime (number, withoutSuffix, string, isFuture) {
  416. var output = this._relativeTime[string];
  417. return (isFunction(output)) ?
  418. output(number, withoutSuffix, string, isFuture) :
  419. output.replace(/%d/i, number);
  420. }
  421. function pastFuture (diff, output) {
  422. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  423. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  424. }
  425. var aliases = {};
  426. function addUnitAlias (unit, shorthand) {
  427. var lowerCase = unit.toLowerCase();
  428. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  429. }
  430. function normalizeUnits(units) {
  431. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  432. }
  433. function normalizeObjectUnits(inputObject) {
  434. var normalizedInput = {},
  435. normalizedProp,
  436. prop;
  437. for (prop in inputObject) {
  438. if (hasOwnProp(inputObject, prop)) {
  439. normalizedProp = normalizeUnits(prop);
  440. if (normalizedProp) {
  441. normalizedInput[normalizedProp] = inputObject[prop];
  442. }
  443. }
  444. }
  445. return normalizedInput;
  446. }
  447. var priorities = {};
  448. function addUnitPriority(unit, priority) {
  449. priorities[unit] = priority;
  450. }
  451. function getPrioritizedUnits(unitsObj) {
  452. var units = [];
  453. for (var u in unitsObj) {
  454. units.push({unit: u, priority: priorities[u]});
  455. }
  456. units.sort(function (a, b) {
  457. return a.priority - b.priority;
  458. });
  459. return units;
  460. }
  461. function zeroFill(number, targetLength, forceSign) {
  462. var absNumber = '' + Math.abs(number),
  463. zerosToFill = targetLength - absNumber.length,
  464. sign = number >= 0;
  465. return (sign ? (forceSign ? '+' : '') : '-') +
  466. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  467. }
  468. 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;
  469. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  470. var formatFunctions = {};
  471. var formatTokenFunctions = {};
  472. // token: 'M'
  473. // padded: ['MM', 2]
  474. // ordinal: 'Mo'
  475. // callback: function () { this.month() + 1 }
  476. function addFormatToken (token, padded, ordinal, callback) {
  477. var func = callback;
  478. if (typeof callback === 'string') {
  479. func = function () {
  480. return this[callback]();
  481. };
  482. }
  483. if (token) {
  484. formatTokenFunctions[token] = func;
  485. }
  486. if (padded) {
  487. formatTokenFunctions[padded[0]] = function () {
  488. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  489. };
  490. }
  491. if (ordinal) {
  492. formatTokenFunctions[ordinal] = function () {
  493. return this.localeData().ordinal(func.apply(this, arguments), token);
  494. };
  495. }
  496. }
  497. function removeFormattingTokens(input) {
  498. if (input.match(/\[[\s\S]/)) {
  499. return input.replace(/^\[|\]$/g, '');
  500. }
  501. return input.replace(/\\/g, '');
  502. }
  503. function makeFormatFunction(format) {
  504. var array = format.match(formattingTokens), i, length;
  505. for (i = 0, length = array.length; i < length; i++) {
  506. if (formatTokenFunctions[array[i]]) {
  507. array[i] = formatTokenFunctions[array[i]];
  508. } else {
  509. array[i] = removeFormattingTokens(array[i]);
  510. }
  511. }
  512. return function (mom) {
  513. var output = '', i;
  514. for (i = 0; i < length; i++) {
  515. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  516. }
  517. return output;
  518. };
  519. }
  520. // format date using native date object
  521. function formatMoment(m, format) {
  522. if (!m.isValid()) {
  523. return m.localeData().invalidDate();
  524. }
  525. format = expandFormat(format, m.localeData());
  526. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  527. return formatFunctions[format](m);
  528. }
  529. function expandFormat(format, locale) {
  530. var i = 5;
  531. function replaceLongDateFormatTokens(input) {
  532. return locale.longDateFormat(input) || input;
  533. }
  534. localFormattingTokens.lastIndex = 0;
  535. while (i >= 0 && localFormattingTokens.test(format)) {
  536. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  537. localFormattingTokens.lastIndex = 0;
  538. i -= 1;
  539. }
  540. return format;
  541. }
  542. var match1 = /\d/; // 0 - 9
  543. var match2 = /\d\d/; // 00 - 99
  544. var match3 = /\d{3}/; // 000 - 999
  545. var match4 = /\d{4}/; // 0000 - 9999
  546. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  547. var match1to2 = /\d\d?/; // 0 - 99
  548. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  549. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  550. var match1to3 = /\d{1,3}/; // 0 - 999
  551. var match1to4 = /\d{1,4}/; // 0 - 9999
  552. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  553. var matchUnsigned = /\d+/; // 0 - inf
  554. var matchSigned = /[+-]?\d+/; // -inf - inf
  555. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  556. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  557. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  558. // any word (or two) characters or numbers including two/three word month in arabic.
  559. // includes scottish gaelic two word and hyphenated months
  560. var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
  561. var regexes = {};
  562. function addRegexToken (token, regex, strictRegex) {
  563. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  564. return (isStrict && strictRegex) ? strictRegex : regex;
  565. };
  566. }
  567. function getParseRegexForToken (token, config) {
  568. if (!hasOwnProp(regexes, token)) {
  569. return new RegExp(unescapeFormat(token));
  570. }
  571. return regexes[token](config._strict, config._locale);
  572. }
  573. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  574. function unescapeFormat(s) {
  575. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  576. return p1 || p2 || p3 || p4;
  577. }));
  578. }
  579. function regexEscape(s) {
  580. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  581. }
  582. var tokens = {};
  583. function addParseToken (token, callback) {
  584. var i, func = callback;
  585. if (typeof token === 'string') {
  586. token = [token];
  587. }
  588. if (isNumber(callback)) {
  589. func = function (input, array) {
  590. array[callback] = toInt(input);
  591. };
  592. }
  593. for (i = 0; i < token.length; i++) {
  594. tokens[token[i]] = func;
  595. }
  596. }
  597. function addWeekParseToken (token, callback) {
  598. addParseToken(token, function (input, array, config, token) {
  599. config._w = config._w || {};
  600. callback(input, config._w, config, token);
  601. });
  602. }
  603. function addTimeToArrayFromToken(token, input, config) {
  604. if (input != null && hasOwnProp(tokens, token)) {
  605. tokens[token](input, config._a, config, token);
  606. }
  607. }
  608. var YEAR = 0;
  609. var MONTH = 1;
  610. var DATE = 2;
  611. var HOUR = 3;
  612. var MINUTE = 4;
  613. var SECOND = 5;
  614. var MILLISECOND = 6;
  615. var WEEK = 7;
  616. var WEEKDAY = 8;
  617. // FORMATTING
  618. addFormatToken('Y', 0, 0, function () {
  619. var y = this.year();
  620. return y <= 9999 ? '' + y : '+' + y;
  621. });
  622. addFormatToken(0, ['YY', 2], 0, function () {
  623. return this.year() % 100;
  624. });
  625. addFormatToken(0, ['YYYY', 4], 0, 'year');
  626. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  627. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  628. // ALIASES
  629. addUnitAlias('year', 'y');
  630. // PRIORITIES
  631. addUnitPriority('year', 1);
  632. // PARSING
  633. addRegexToken('Y', matchSigned);
  634. addRegexToken('YY', match1to2, match2);
  635. addRegexToken('YYYY', match1to4, match4);
  636. addRegexToken('YYYYY', match1to6, match6);
  637. addRegexToken('YYYYYY', match1to6, match6);
  638. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  639. addParseToken('YYYY', function (input, array) {
  640. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  641. });
  642. addParseToken('YY', function (input, array) {
  643. array[YEAR] = hooks.parseTwoDigitYear(input);
  644. });
  645. addParseToken('Y', function (input, array) {
  646. array[YEAR] = parseInt(input, 10);
  647. });
  648. // HELPERS
  649. function daysInYear(year) {
  650. return isLeapYear(year) ? 366 : 365;
  651. }
  652. function isLeapYear(year) {
  653. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  654. }
  655. // HOOKS
  656. hooks.parseTwoDigitYear = function (input) {
  657. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  658. };
  659. // MOMENTS
  660. var getSetYear = makeGetSet('FullYear', true);
  661. function getIsLeapYear () {
  662. return isLeapYear(this.year());
  663. }
  664. function makeGetSet (unit, keepTime) {
  665. return function (value) {
  666. if (value != null) {
  667. set$1(this, unit, value);
  668. hooks.updateOffset(this, keepTime);
  669. return this;
  670. } else {
  671. return get(this, unit);
  672. }
  673. };
  674. }
  675. function get (mom, unit) {
  676. return mom.isValid() ?
  677. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  678. }
  679. function set$1 (mom, unit, value) {
  680. if (mom.isValid() && !isNaN(value)) {
  681. if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
  682. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
  683. }
  684. else {
  685. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  686. }
  687. }
  688. }
  689. // MOMENTS
  690. function stringGet (units) {
  691. units = normalizeUnits(units);
  692. if (isFunction(this[units])) {
  693. return this[units]();
  694. }
  695. return this;
  696. }
  697. function stringSet (units, value) {
  698. if (typeof units === 'object') {
  699. units = normalizeObjectUnits(units);
  700. var prioritized = getPrioritizedUnits(units);
  701. for (var i = 0; i < prioritized.length; i++) {
  702. this[prioritized[i].unit](units[prioritized[i].unit]);
  703. }
  704. } else {
  705. units = normalizeUnits(units);
  706. if (isFunction(this[units])) {
  707. return this[units](value);
  708. }
  709. }
  710. return this;
  711. }
  712. function mod(n, x) {
  713. return ((n % x) + x) % x;
  714. }
  715. var indexOf;
  716. if (Array.prototype.indexOf) {
  717. indexOf = Array.prototype.indexOf;
  718. } else {
  719. indexOf = function (o) {
  720. // I know
  721. var i;
  722. for (i = 0; i < this.length; ++i) {
  723. if (this[i] === o) {
  724. return i;
  725. }
  726. }
  727. return -1;
  728. };
  729. }
  730. function daysInMonth(year, month) {
  731. if (isNaN(year) || isNaN(month)) {
  732. return NaN;
  733. }
  734. var modMonth = mod(month, 12);
  735. year += (month - modMonth) / 12;
  736. return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
  737. }
  738. // FORMATTING
  739. addFormatToken('M', ['MM', 2], 'Mo', function () {
  740. return this.month() + 1;
  741. });
  742. addFormatToken('MMM', 0, 0, function (format) {
  743. return this.localeData().monthsShort(this, format);
  744. });
  745. addFormatToken('MMMM', 0, 0, function (format) {
  746. return this.localeData().months(this, format);
  747. });
  748. // ALIASES
  749. addUnitAlias('month', 'M');
  750. // PRIORITY
  751. addUnitPriority('month', 8);
  752. // PARSING
  753. addRegexToken('M', match1to2);
  754. addRegexToken('MM', match1to2, match2);
  755. addRegexToken('MMM', function (isStrict, locale) {
  756. return locale.monthsShortRegex(isStrict);
  757. });
  758. addRegexToken('MMMM', function (isStrict, locale) {
  759. return locale.monthsRegex(isStrict);
  760. });
  761. addParseToken(['M', 'MM'], function (input, array) {
  762. array[MONTH] = toInt(input) - 1;
  763. });
  764. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  765. var month = config._locale.monthsParse(input, token, config._strict);
  766. // if we didn't find a month name, mark the date as invalid.
  767. if (month != null) {
  768. array[MONTH] = month;
  769. } else {
  770. getParsingFlags(config).invalidMonth = input;
  771. }
  772. });
  773. // LOCALES
  774. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
  775. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  776. function localeMonths (m, format) {
  777. if (!m) {
  778. return isArray(this._months) ? this._months :
  779. this._months['standalone'];
  780. }
  781. return isArray(this._months) ? this._months[m.month()] :
  782. this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  783. }
  784. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  785. function localeMonthsShort (m, format) {
  786. if (!m) {
  787. return isArray(this._monthsShort) ? this._monthsShort :
  788. this._monthsShort['standalone'];
  789. }
  790. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  791. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  792. }
  793. function handleStrictParse(monthName, format, strict) {
  794. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  795. if (!this._monthsParse) {
  796. // this is not used
  797. this._monthsParse = [];
  798. this._longMonthsParse = [];
  799. this._shortMonthsParse = [];
  800. for (i = 0; i < 12; ++i) {
  801. mom = createUTC([2000, i]);
  802. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  803. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  804. }
  805. }
  806. if (strict) {
  807. if (format === 'MMM') {
  808. ii = indexOf.call(this._shortMonthsParse, llc);
  809. return ii !== -1 ? ii : null;
  810. } else {
  811. ii = indexOf.call(this._longMonthsParse, llc);
  812. return ii !== -1 ? ii : null;
  813. }
  814. } else {
  815. if (format === 'MMM') {
  816. ii = indexOf.call(this._shortMonthsParse, llc);
  817. if (ii !== -1) {
  818. return ii;
  819. }
  820. ii = indexOf.call(this._longMonthsParse, llc);
  821. return ii !== -1 ? ii : null;
  822. } else {
  823. ii = indexOf.call(this._longMonthsParse, llc);
  824. if (ii !== -1) {
  825. return ii;
  826. }
  827. ii = indexOf.call(this._shortMonthsParse, llc);
  828. return ii !== -1 ? ii : null;
  829. }
  830. }
  831. }
  832. function localeMonthsParse (monthName, format, strict) {
  833. var i, mom, regex;
  834. if (this._monthsParseExact) {
  835. return handleStrictParse.call(this, monthName, format, strict);
  836. }
  837. if (!this._monthsParse) {
  838. this._monthsParse = [];
  839. this._longMonthsParse = [];
  840. this._shortMonthsParse = [];
  841. }
  842. // TODO: add sorting
  843. // Sorting makes sure if one month (or abbr) is a prefix of another
  844. // see sorting in computeMonthsParse
  845. for (i = 0; i < 12; i++) {
  846. // make the regex if we don't have it already
  847. mom = createUTC([2000, i]);
  848. if (strict && !this._longMonthsParse[i]) {
  849. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  850. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  851. }
  852. if (!strict && !this._monthsParse[i]) {
  853. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  854. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  855. }
  856. // test the regex
  857. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  858. return i;
  859. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  860. return i;
  861. } else if (!strict && this._monthsParse[i].test(monthName)) {
  862. return i;
  863. }
  864. }
  865. }
  866. // MOMENTS
  867. function setMonth (mom, value) {
  868. var dayOfMonth;
  869. if (!mom.isValid()) {
  870. // No op
  871. return mom;
  872. }
  873. if (typeof value === 'string') {
  874. if (/^\d+$/.test(value)) {
  875. value = toInt(value);
  876. } else {
  877. value = mom.localeData().monthsParse(value);
  878. // TODO: Another silent failure?
  879. if (!isNumber(value)) {
  880. return mom;
  881. }
  882. }
  883. }
  884. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  885. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  886. return mom;
  887. }
  888. function getSetMonth (value) {
  889. if (value != null) {
  890. setMonth(this, value);
  891. hooks.updateOffset(this, true);
  892. return this;
  893. } else {
  894. return get(this, 'Month');
  895. }
  896. }
  897. function getDaysInMonth () {
  898. return daysInMonth(this.year(), this.month());
  899. }
  900. var defaultMonthsShortRegex = matchWord;
  901. function monthsShortRegex (isStrict) {
  902. if (this._monthsParseExact) {
  903. if (!hasOwnProp(this, '_monthsRegex')) {
  904. computeMonthsParse.call(this);
  905. }
  906. if (isStrict) {
  907. return this._monthsShortStrictRegex;
  908. } else {
  909. return this._monthsShortRegex;
  910. }
  911. } else {
  912. if (!hasOwnProp(this, '_monthsShortRegex')) {
  913. this._monthsShortRegex = defaultMonthsShortRegex;
  914. }
  915. return this._monthsShortStrictRegex && isStrict ?
  916. this._monthsShortStrictRegex : this._monthsShortRegex;
  917. }
  918. }
  919. var defaultMonthsRegex = matchWord;
  920. function monthsRegex (isStrict) {
  921. if (this._monthsParseExact) {
  922. if (!hasOwnProp(this, '_monthsRegex')) {
  923. computeMonthsParse.call(this);
  924. }
  925. if (isStrict) {
  926. return this._monthsStrictRegex;
  927. } else {
  928. return this._monthsRegex;
  929. }
  930. } else {
  931. if (!hasOwnProp(this, '_monthsRegex')) {
  932. this._monthsRegex = defaultMonthsRegex;
  933. }
  934. return this._monthsStrictRegex && isStrict ?
  935. this._monthsStrictRegex : this._monthsRegex;
  936. }
  937. }
  938. function computeMonthsParse () {
  939. function cmpLenRev(a, b) {
  940. return b.length - a.length;
  941. }
  942. var shortPieces = [], longPieces = [], mixedPieces = [],
  943. i, mom;
  944. for (i = 0; i < 12; i++) {
  945. // make the regex if we don't have it already
  946. mom = createUTC([2000, i]);
  947. shortPieces.push(this.monthsShort(mom, ''));
  948. longPieces.push(this.months(mom, ''));
  949. mixedPieces.push(this.months(mom, ''));
  950. mixedPieces.push(this.monthsShort(mom, ''));
  951. }
  952. // Sorting makes sure if one month (or abbr) is a prefix of another it
  953. // will match the longer piece.
  954. shortPieces.sort(cmpLenRev);
  955. longPieces.sort(cmpLenRev);
  956. mixedPieces.sort(cmpLenRev);
  957. for (i = 0; i < 12; i++) {
  958. shortPieces[i] = regexEscape(shortPieces[i]);
  959. longPieces[i] = regexEscape(longPieces[i]);
  960. }
  961. for (i = 0; i < 24; i++) {
  962. mixedPieces[i] = regexEscape(mixedPieces[i]);
  963. }
  964. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  965. this._monthsShortRegex = this._monthsRegex;
  966. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  967. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  968. }
  969. function createDate (y, m, d, h, M, s, ms) {
  970. // can't just apply() to create a date:
  971. // https://stackoverflow.com/q/181348
  972. var date;
  973. // the date constructor remaps years 0-99 to 1900-1999
  974. if (y < 100 && y >= 0) {
  975. // preserve leap years using a full 400 year cycle, then reset
  976. date = new Date(y + 400, m, d, h, M, s, ms);
  977. if (isFinite(date.getFullYear())) {
  978. date.setFullYear(y);
  979. }
  980. } else {
  981. date = new Date(y, m, d, h, M, s, ms);
  982. }
  983. return date;
  984. }
  985. function createUTCDate (y) {
  986. var date;
  987. // the Date.UTC function remaps years 0-99 to 1900-1999
  988. if (y < 100 && y >= 0) {
  989. var args = Array.prototype.slice.call(arguments);
  990. // preserve leap years using a full 400 year cycle, then reset
  991. args[0] = y + 400;
  992. date = new Date(Date.UTC.apply(null, args));
  993. if (isFinite(date.getUTCFullYear())) {
  994. date.setUTCFullYear(y);
  995. }
  996. } else {
  997. date = new Date(Date.UTC.apply(null, arguments));
  998. }
  999. return date;
  1000. }
  1001. // start-of-first-week - start-of-year
  1002. function firstWeekOffset(year, dow, doy) {
  1003. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1004. fwd = 7 + dow - doy,
  1005. // first-week day local weekday -- which local weekday is fwd
  1006. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1007. return -fwdlw + fwd - 1;
  1008. }
  1009. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1010. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1011. var localWeekday = (7 + weekday - dow) % 7,
  1012. weekOffset = firstWeekOffset(year, dow, doy),
  1013. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1014. resYear, resDayOfYear;
  1015. if (dayOfYear <= 0) {
  1016. resYear = year - 1;
  1017. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1018. } else if (dayOfYear > daysInYear(year)) {
  1019. resYear = year + 1;
  1020. resDayOfYear = dayOfYear - daysInYear(year);
  1021. } else {
  1022. resYear = year;
  1023. resDayOfYear = dayOfYear;
  1024. }
  1025. return {
  1026. year: resYear,
  1027. dayOfYear: resDayOfYear
  1028. };
  1029. }
  1030. function weekOfYear(mom, dow, doy) {
  1031. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1032. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1033. resWeek, resYear;
  1034. if (week < 1) {
  1035. resYear = mom.year() - 1;
  1036. resWeek = week + weeksInYear(resYear, dow, doy);
  1037. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1038. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1039. resYear = mom.year() + 1;
  1040. } else {
  1041. resYear = mom.year();
  1042. resWeek = week;
  1043. }
  1044. return {
  1045. week: resWeek,
  1046. year: resYear
  1047. };
  1048. }
  1049. function weeksInYear(year, dow, doy) {
  1050. var weekOffset = firstWeekOffset(year, dow, doy),
  1051. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1052. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1053. }
  1054. // FORMATTING
  1055. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1056. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1057. // ALIASES
  1058. addUnitAlias('week', 'w');
  1059. addUnitAlias('isoWeek', 'W');
  1060. // PRIORITIES
  1061. addUnitPriority('week', 5);
  1062. addUnitPriority('isoWeek', 5);
  1063. // PARSING
  1064. addRegexToken('w', match1to2);
  1065. addRegexToken('ww', match1to2, match2);
  1066. addRegexToken('W', match1to2);
  1067. addRegexToken('WW', match1to2, match2);
  1068. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  1069. week[token.substr(0, 1)] = toInt(input);
  1070. });
  1071. // HELPERS
  1072. // LOCALES
  1073. function localeWeek (mom) {
  1074. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1075. }
  1076. var defaultLocaleWeek = {
  1077. dow : 0, // Sunday is the first day of the week.
  1078. doy : 6 // The week that contains Jan 6th is the first week of the year.
  1079. };
  1080. function localeFirstDayOfWeek () {
  1081. return this._week.dow;
  1082. }
  1083. function localeFirstDayOfYear () {
  1084. return this._week.doy;
  1085. }
  1086. // MOMENTS
  1087. function getSetWeek (input) {
  1088. var week = this.localeData().week(this);
  1089. return input == null ? week : this.add((input - week) * 7, 'd');
  1090. }
  1091. function getSetISOWeek (input) {
  1092. var week = weekOfYear(this, 1, 4).week;
  1093. return input == null ? week : this.add((input - week) * 7, 'd');
  1094. }
  1095. // FORMATTING
  1096. addFormatToken('d', 0, 'do', 'day');
  1097. addFormatToken('dd', 0, 0, function (format) {
  1098. return this.localeData().weekdaysMin(this, format);
  1099. });
  1100. addFormatToken('ddd', 0, 0, function (format) {
  1101. return this.localeData().weekdaysShort(this, format);
  1102. });
  1103. addFormatToken('dddd', 0, 0, function (format) {
  1104. return this.localeData().weekdays(this, format);
  1105. });
  1106. addFormatToken('e', 0, 0, 'weekday');
  1107. addFormatToken('E', 0, 0, 'isoWeekday');
  1108. // ALIASES
  1109. addUnitAlias('day', 'd');
  1110. addUnitAlias('weekday', 'e');
  1111. addUnitAlias('isoWeekday', 'E');
  1112. // PRIORITY
  1113. addUnitPriority('day', 11);
  1114. addUnitPriority('weekday', 11);
  1115. addUnitPriority('isoWeekday', 11);
  1116. // PARSING
  1117. addRegexToken('d', match1to2);
  1118. addRegexToken('e', match1to2);
  1119. addRegexToken('E', match1to2);
  1120. addRegexToken('dd', function (isStrict, locale) {
  1121. return locale.weekdaysMinRegex(isStrict);
  1122. });
  1123. addRegexToken('ddd', function (isStrict, locale) {
  1124. return locale.weekdaysShortRegex(isStrict);
  1125. });
  1126. addRegexToken('dddd', function (isStrict, locale) {
  1127. return locale.weekdaysRegex(isStrict);
  1128. });
  1129. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1130. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1131. // if we didn't get a weekday name, mark the date as invalid
  1132. if (weekday != null) {
  1133. week.d = weekday;
  1134. } else {
  1135. getParsingFlags(config).invalidWeekday = input;
  1136. }
  1137. });
  1138. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1139. week[token] = toInt(input);
  1140. });
  1141. // HELPERS
  1142. function parseWeekday(input, locale) {
  1143. if (typeof input !== 'string') {
  1144. return input;
  1145. }
  1146. if (!isNaN(input)) {
  1147. return parseInt(input, 10);
  1148. }
  1149. input = locale.weekdaysParse(input);
  1150. if (typeof input === 'number') {
  1151. return input;
  1152. }
  1153. return null;
  1154. }
  1155. function parseIsoWeekday(input, locale) {
  1156. if (typeof input === 'string') {
  1157. return locale.weekdaysParse(input) % 7 || 7;
  1158. }
  1159. return isNaN(input) ? null : input;
  1160. }
  1161. // LOCALES
  1162. function shiftWeekdays (ws, n) {
  1163. return ws.slice(n, 7).concat(ws.slice(0, n));
  1164. }
  1165. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  1166. function localeWeekdays (m, format) {
  1167. var weekdays = isArray(this._weekdays) ? this._weekdays :
  1168. this._weekdays[(m && m !== true && this._weekdays.isFormat.test(format)) ? 'format' : 'standalone'];
  1169. return (m === true) ? shiftWeekdays(weekdays, this._week.dow)
  1170. : (m) ? weekdays[m.day()] : weekdays;
  1171. }
  1172. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  1173. function localeWeekdaysShort (m) {
  1174. return (m === true) ? shiftWeekdays(this._weekdaysShort, this._week.dow)
  1175. : (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  1176. }
  1177. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  1178. function localeWeekdaysMin (m) {
  1179. return (m === true) ? shiftWeekdays(this._weekdaysMin, this._week.dow)
  1180. : (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  1181. }
  1182. function handleStrictParse$1(weekdayName, format, strict) {
  1183. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  1184. if (!this._weekdaysParse) {
  1185. this._weekdaysParse = [];
  1186. this._shortWeekdaysParse = [];
  1187. this._minWeekdaysParse = [];
  1188. for (i = 0; i < 7; ++i) {
  1189. mom = createUTC([2000, 1]).day(i);
  1190. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  1191. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  1192. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1193. }
  1194. }
  1195. if (strict) {
  1196. if (format === 'dddd') {
  1197. ii = indexOf.call(this._weekdaysParse, llc);
  1198. return ii !== -1 ? ii : null;
  1199. } else if (format === 'ddd') {
  1200. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1201. return ii !== -1 ? ii : null;
  1202. } else {
  1203. ii = indexOf.call(this._minWeekdaysParse, llc);
  1204. return ii !== -1 ? ii : null;
  1205. }
  1206. } else {
  1207. if (format === 'dddd') {
  1208. ii = indexOf.call(this._weekdaysParse, llc);
  1209. if (ii !== -1) {
  1210. return ii;
  1211. }
  1212. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1213. if (ii !== -1) {
  1214. return ii;
  1215. }
  1216. ii = indexOf.call(this._minWeekdaysParse, llc);
  1217. return ii !== -1 ? ii : null;
  1218. } else if (format === 'ddd') {
  1219. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1220. if (ii !== -1) {
  1221. return ii;
  1222. }
  1223. ii = indexOf.call(this._weekdaysParse, llc);
  1224. if (ii !== -1) {
  1225. return ii;
  1226. }
  1227. ii = indexOf.call(this._minWeekdaysParse, llc);
  1228. return ii !== -1 ? ii : null;
  1229. } else {
  1230. ii = indexOf.call(this._minWeekdaysParse, llc);
  1231. if (ii !== -1) {
  1232. return ii;
  1233. }
  1234. ii = indexOf.call(this._weekdaysParse, llc);
  1235. if (ii !== -1) {
  1236. return ii;
  1237. }
  1238. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1239. return ii !== -1 ? ii : null;
  1240. }
  1241. }
  1242. }
  1243. function localeWeekdaysParse (weekdayName, format, strict) {
  1244. var i, mom, regex;
  1245. if (this._weekdaysParseExact) {
  1246. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1247. }
  1248. if (!this._weekdaysParse) {
  1249. this._weekdaysParse = [];
  1250. this._minWeekdaysParse = [];
  1251. this._shortWeekdaysParse = [];
  1252. this._fullWeekdaysParse = [];
  1253. }
  1254. for (i = 0; i < 7; i++) {
  1255. // make the regex if we don't have it already
  1256. mom = createUTC([2000, 1]).day(i);
  1257. if (strict && !this._fullWeekdaysParse[i]) {
  1258. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
  1259. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
  1260. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
  1261. }
  1262. if (!this._weekdaysParse[i]) {
  1263. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  1264. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1265. }
  1266. // test the regex
  1267. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  1268. return i;
  1269. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  1270. return i;
  1271. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  1272. return i;
  1273. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1274. return i;
  1275. }
  1276. }
  1277. }
  1278. // MOMENTS
  1279. function getSetDayOfWeek (input) {
  1280. if (!this.isValid()) {
  1281. return input != null ? this : NaN;
  1282. }
  1283. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1284. if (input != null) {
  1285. input = parseWeekday(input, this.localeData());
  1286. return this.add(input - day, 'd');
  1287. } else {
  1288. return day;
  1289. }
  1290. }
  1291. function getSetLocaleDayOfWeek (input) {
  1292. if (!this.isValid()) {
  1293. return input != null ? this : NaN;
  1294. }
  1295. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1296. return input == null ? weekday : this.add(input - weekday, 'd');
  1297. }
  1298. function getSetISODayOfWeek (input) {
  1299. if (!this.isValid()) {
  1300. return input != null ? this : NaN;
  1301. }
  1302. // behaves the same as moment#day except
  1303. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1304. // as a setter, sunday should belong to the previous week.
  1305. if (input != null) {
  1306. var weekday = parseIsoWeekday(input, this.localeData());
  1307. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1308. } else {
  1309. return this.day() || 7;
  1310. }
  1311. }
  1312. var defaultWeekdaysRegex = matchWord;
  1313. function weekdaysRegex (isStrict) {
  1314. if (this._weekdaysParseExact) {
  1315. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1316. computeWeekdaysParse.call(this);
  1317. }
  1318. if (isStrict) {
  1319. return this._weekdaysStrictRegex;
  1320. } else {
  1321. return this._weekdaysRegex;
  1322. }
  1323. } else {
  1324. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1325. this._weekdaysRegex = defaultWeekdaysRegex;
  1326. }
  1327. return this._weekdaysStrictRegex && isStrict ?
  1328. this._weekdaysStrictRegex : this._weekdaysRegex;
  1329. }
  1330. }
  1331. var defaultWeekdaysShortRegex = matchWord;
  1332. function weekdaysShortRegex (isStrict) {
  1333. if (this._weekdaysParseExact) {
  1334. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1335. computeWeekdaysParse.call(this);
  1336. }
  1337. if (isStrict) {
  1338. return this._weekdaysShortStrictRegex;
  1339. } else {
  1340. return this._weekdaysShortRegex;
  1341. }
  1342. } else {
  1343. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1344. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1345. }
  1346. return this._weekdaysShortStrictRegex && isStrict ?
  1347. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  1348. }
  1349. }
  1350. var defaultWeekdaysMinRegex = matchWord;
  1351. function weekdaysMinRegex (isStrict) {
  1352. if (this._weekdaysParseExact) {
  1353. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1354. computeWeekdaysParse.call(this);
  1355. }
  1356. if (isStrict) {
  1357. return this._weekdaysMinStrictRegex;
  1358. } else {
  1359. return this._weekdaysMinRegex;
  1360. }
  1361. } else {
  1362. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1363. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1364. }
  1365. return this._weekdaysMinStrictRegex && isStrict ?
  1366. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  1367. }
  1368. }
  1369. function computeWeekdaysParse () {
  1370. function cmpLenRev(a, b) {
  1371. return b.length - a.length;
  1372. }
  1373. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  1374. i, mom, minp, shortp, longp;
  1375. for (i = 0; i < 7; i++) {
  1376. // make the regex if we don't have it already
  1377. mom = createUTC([2000, 1]).day(i);
  1378. minp = this.weekdaysMin(mom, '');
  1379. shortp = this.weekdaysShort(mom, '');
  1380. longp = this.weekdays(mom, '');
  1381. minPieces.push(minp);
  1382. shortPieces.push(shortp);
  1383. longPieces.push(longp);
  1384. mixedPieces.push(minp);
  1385. mixedPieces.push(shortp);
  1386. mixedPieces.push(longp);
  1387. }
  1388. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1389. // will match the longer piece.
  1390. minPieces.sort(cmpLenRev);
  1391. shortPieces.sort(cmpLenRev);
  1392. longPieces.sort(cmpLenRev);
  1393. mixedPieces.sort(cmpLenRev);
  1394. for (i = 0; i < 7; i++) {
  1395. shortPieces[i] = regexEscape(shortPieces[i]);
  1396. longPieces[i] = regexEscape(longPieces[i]);
  1397. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1398. }
  1399. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1400. this._weekdaysShortRegex = this._weekdaysRegex;
  1401. this._weekdaysMinRegex = this._weekdaysRegex;
  1402. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  1403. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  1404. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  1405. }
  1406. // FORMATTING
  1407. function hFormat() {
  1408. return this.hours() % 12 || 12;
  1409. }
  1410. function kFormat() {
  1411. return this.hours() || 24;
  1412. }
  1413. addFormatToken('H', ['HH', 2], 0, 'hour');
  1414. addFormatToken('h', ['hh', 2], 0, hFormat);
  1415. addFormatToken('k', ['kk', 2], 0, kFormat);
  1416. addFormatToken('hmm', 0, 0, function () {
  1417. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1418. });
  1419. addFormatToken('hmmss', 0, 0, function () {
  1420. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  1421. zeroFill(this.seconds(), 2);
  1422. });
  1423. addFormatToken('Hmm', 0, 0, function () {
  1424. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1425. });
  1426. addFormatToken('Hmmss', 0, 0, function () {
  1427. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  1428. zeroFill(this.seconds(), 2);
  1429. });
  1430. function meridiem (token, lowercase) {
  1431. addFormatToken(token, 0, 0, function () {
  1432. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  1433. });
  1434. }
  1435. meridiem('a', true);
  1436. meridiem('A', false);
  1437. // ALIASES
  1438. addUnitAlias('hour', 'h');
  1439. // PRIORITY
  1440. addUnitPriority('hour', 13);
  1441. // PARSING
  1442. function matchMeridiem (isStrict, locale) {
  1443. return locale._meridiemParse;
  1444. }
  1445. addRegexToken('a', matchMeridiem);
  1446. addRegexToken('A', matchMeridiem);
  1447. addRegexToken('H', match1to2);
  1448. addRegexToken('h', match1to2);
  1449. addRegexToken('k', match1to2);
  1450. addRegexToken('HH', match1to2, match2);
  1451. addRegexToken('hh', match1to2, match2);
  1452. addRegexToken('kk', match1to2, match2);
  1453. addRegexToken('hmm', match3to4);
  1454. addRegexToken('hmmss', match5to6);
  1455. addRegexToken('Hmm', match3to4);
  1456. addRegexToken('Hmmss', match5to6);
  1457. addParseToken(['H', 'HH'], HOUR);
  1458. addParseToken(['k', 'kk'], function (input, array, config) {
  1459. var kInput = toInt(input);
  1460. array[HOUR] = kInput === 24 ? 0 : kInput;
  1461. });
  1462. addParseToken(['a', 'A'], function (input, array, config) {
  1463. config._isPm = config._locale.isPM(input);
  1464. config._meridiem = input;
  1465. });
  1466. addParseToken(['h', 'hh'], function (input, array, config) {
  1467. array[HOUR] = toInt(input);
  1468. getParsingFlags(config).bigHour = true;
  1469. });
  1470. addParseToken('hmm', function (input, array, config) {
  1471. var pos = input.length - 2;
  1472. array[HOUR] = toInt(input.substr(0, pos));
  1473. array[MINUTE] = toInt(input.substr(pos));
  1474. getParsingFlags(config).bigHour = true;
  1475. });
  1476. addParseToken('hmmss', function (input, array, config) {
  1477. var pos1 = input.length - 4;
  1478. var pos2 = input.length - 2;
  1479. array[HOUR] = toInt(input.substr(0, pos1));
  1480. array[MINUTE] = toInt(input.substr(pos1, 2));
  1481. array[SECOND] = toInt(input.substr(pos2));
  1482. getParsingFlags(config).bigHour = true;
  1483. });
  1484. addParseToken('Hmm', function (input, array, config) {
  1485. var pos = input.length - 2;
  1486. array[HOUR] = toInt(input.substr(0, pos));
  1487. array[MINUTE] = toInt(input.substr(pos));
  1488. });
  1489. addParseToken('Hmmss', function (input, array, config) {
  1490. var pos1 = input.length - 4;
  1491. var pos2 = input.length - 2;
  1492. array[HOUR] = toInt(input.substr(0, pos1));
  1493. array[MINUTE] = toInt(input.substr(pos1, 2));
  1494. array[SECOND] = toInt(input.substr(pos2));
  1495. });
  1496. // LOCALES
  1497. function localeIsPM (input) {
  1498. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1499. // Using charAt should be more compatible.
  1500. return ((input + '').toLowerCase().charAt(0) === 'p');
  1501. }
  1502. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  1503. function localeMeridiem (hours, minutes, isLower) {
  1504. if (hours > 11) {
  1505. return isLower ? 'pm' : 'PM';
  1506. } else {
  1507. return isLower ? 'am' : 'AM';
  1508. }
  1509. }
  1510. // MOMENTS
  1511. // Setting the hour should keep the time, because the user explicitly
  1512. // specified which hour they want. So trying to maintain the same hour (in
  1513. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1514. // this rule.
  1515. var getSetHour = makeGetSet('Hours', true);
  1516. var baseConfig = {
  1517. calendar: defaultCalendar,
  1518. longDateFormat: defaultLongDateFormat,
  1519. invalidDate: defaultInvalidDate,
  1520. ordinal: defaultOrdinal,
  1521. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1522. relativeTime: defaultRelativeTime,
  1523. months: defaultLocaleMonths,
  1524. monthsShort: defaultLocaleMonthsShort,
  1525. week: defaultLocaleWeek,
  1526. weekdays: defaultLocaleWeekdays,
  1527. weekdaysMin: defaultLocaleWeekdaysMin,
  1528. weekdaysShort: defaultLocaleWeekdaysShort,
  1529. meridiemParse: defaultLocaleMeridiemParse
  1530. };
  1531. // internal storage for locale config files
  1532. var locales = {};
  1533. var localeFamilies = {};
  1534. var globalLocale;
  1535. function normalizeLocale(key) {
  1536. return key ? key.toLowerCase().replace('_', '-') : key;
  1537. }
  1538. // pick the locale from the array
  1539. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1540. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1541. function chooseLocale(names) {
  1542. var i = 0, j, next, locale, split;
  1543. while (i < names.length) {
  1544. split = normalizeLocale(names[i]).split('-');
  1545. j = split.length;
  1546. next = normalizeLocale(names[i + 1]);
  1547. next = next ? next.split('-') : null;
  1548. while (j > 0) {
  1549. locale = loadLocale(split.slice(0, j).join('-'));
  1550. if (locale) {
  1551. return locale;
  1552. }
  1553. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  1554. //the next array item is better than a shallower substring of this one
  1555. break;
  1556. }
  1557. j--;
  1558. }
  1559. i++;
  1560. }
  1561. return globalLocale;
  1562. }
  1563. function loadLocale(name) {
  1564. var oldLocale = null;
  1565. // TODO: Find a better way to register and load all the locales in Node
  1566. if (!locales[name] && (typeof module !== 'undefined') &&
  1567. module && module.exports) {
  1568. try {
  1569. oldLocale = globalLocale._abbr;
  1570. var aliasedRequire = require;
  1571. aliasedRequire('./locale/' + name);
  1572. getSetGlobalLocale(oldLocale);
  1573. } catch (e) {}
  1574. }
  1575. return locales[name];
  1576. }
  1577. // This function will load locale and then set the global locale. If
  1578. // no arguments are passed in, it will simply return the current global
  1579. // locale key.
  1580. function getSetGlobalLocale (key, values) {
  1581. var data;
  1582. if (key) {
  1583. if (isUndefined(values)) {
  1584. data = getLocale(key);
  1585. }
  1586. else {
  1587. data = defineLocale(key, values);
  1588. }
  1589. if (data) {
  1590. // moment.duration._locale = moment._locale = data;
  1591. globalLocale = data;
  1592. }
  1593. else {
  1594. if ((typeof console !== 'undefined') && console.warn) {
  1595. //warn user if arguments are passed but the locale could not be set
  1596. console.warn('Locale ' + key + ' not found. Did you forget to load it?');
  1597. }
  1598. }
  1599. }
  1600. return globalLocale._abbr;
  1601. }
  1602. function defineLocale (name, config) {
  1603. if (config !== null) {
  1604. var locale, parentConfig = baseConfig;
  1605. config.abbr = name;
  1606. if (locales[name] != null) {
  1607. deprecateSimple('defineLocaleOverride',
  1608. 'use moment.updateLocale(localeName, config) to change ' +
  1609. 'an existing locale. moment.defineLocale(localeName, ' +
  1610. 'config) should only be used for creating a new locale ' +
  1611. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  1612. parentConfig = locales[name]._config;
  1613. } else if (config.parentLocale != null) {
  1614. if (locales[config.parentLocale] != null) {
  1615. parentConfig = locales[config.parentLocale]._config;
  1616. } else {
  1617. locale = loadLocale(config.parentLocale);
  1618. if (locale != null) {
  1619. parentConfig = locale._config;
  1620. } else {
  1621. if (!localeFamilies[config.parentLocale]) {
  1622. localeFamilies[config.parentLocale] = [];
  1623. }
  1624. localeFamilies[config.parentLocale].push({
  1625. name: name,
  1626. config: config
  1627. });
  1628. return null;
  1629. }
  1630. }
  1631. }
  1632. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1633. if (localeFamilies[name]) {
  1634. localeFamilies[name].forEach(function (x) {
  1635. defineLocale(x.name, x.config);
  1636. });
  1637. }
  1638. // backwards compat for now: also set the locale
  1639. // make sure we set the locale AFTER all child locales have been
  1640. // created, so we won't end up with the child locale set.
  1641. getSetGlobalLocale(name);
  1642. return locales[name];
  1643. } else {
  1644. // useful for testing
  1645. delete locales[name];
  1646. return null;
  1647. }
  1648. }
  1649. function updateLocale(name, config) {
  1650. if (config != null) {
  1651. var locale, tmpLocale, parentConfig = baseConfig;
  1652. // MERGE
  1653. tmpLocale = loadLocale(name);
  1654. if (tmpLocale != null) {
  1655. parentConfig = tmpLocale._config;
  1656. }
  1657. config = mergeConfigs(parentConfig, config);
  1658. locale = new Locale(config);
  1659. locale.parentLocale = locales[name];
  1660. locales[name] = locale;
  1661. // backwards compat for now: also set the locale
  1662. getSetGlobalLocale(name);
  1663. } else {
  1664. // pass null for config to unupdate, useful for tests
  1665. if (locales[name] != null) {
  1666. if (locales[name].parentLocale != null) {
  1667. locales[name] = locales[name].parentLocale;
  1668. } else if (locales[name] != null) {
  1669. delete locales[name];
  1670. }
  1671. }
  1672. }
  1673. return locales[name];
  1674. }
  1675. // returns locale data
  1676. function getLocale (key) {
  1677. var locale;
  1678. if (key && key._locale && key._locale._abbr) {
  1679. key = key._locale._abbr;
  1680. }
  1681. if (!key) {
  1682. return globalLocale;
  1683. }
  1684. if (!isArray(key)) {
  1685. //short-circuit everything else
  1686. locale = loadLocale(key);
  1687. if (locale) {
  1688. return locale;
  1689. }
  1690. key = [key];
  1691. }
  1692. return chooseLocale(key);
  1693. }
  1694. function listLocales() {
  1695. return keys(locales);
  1696. }
  1697. function checkOverflow (m) {
  1698. var overflow;
  1699. var a = m._a;
  1700. if (a && getParsingFlags(m).overflow === -2) {
  1701. overflow =
  1702. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  1703. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  1704. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  1705. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  1706. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  1707. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  1708. -1;
  1709. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  1710. overflow = DATE;
  1711. }
  1712. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1713. overflow = WEEK;
  1714. }
  1715. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1716. overflow = WEEKDAY;
  1717. }
  1718. getParsingFlags(m).overflow = overflow;
  1719. }
  1720. return m;
  1721. }
  1722. // Pick the first defined of two or three arguments.
  1723. function defaults(a, b, c) {
  1724. if (a != null) {
  1725. return a;
  1726. }
  1727. if (b != null) {
  1728. return b;
  1729. }
  1730. return c;
  1731. }
  1732. function currentDateArray(config) {
  1733. // hooks is actually the exported moment object
  1734. var nowValue = new Date(hooks.now());
  1735. if (config._useUTC) {
  1736. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  1737. }
  1738. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  1739. }
  1740. // convert an array to a date.
  1741. // the array should mirror the parameters below
  1742. // note: all values past the year are optional and will default to the lowest possible value.
  1743. // [year, month, day , hour, minute, second, millisecond]
  1744. function configFromArray (config) {
  1745. var i, date, input = [], currentDate, expectedWeekday, yearToUse;
  1746. if (config._d) {
  1747. return;
  1748. }
  1749. currentDate = currentDateArray(config);
  1750. //compute day of the year from weeks and weekdays
  1751. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  1752. dayOfYearFromWeekInfo(config);
  1753. }
  1754. //if the day of the year is set, figure out what it is
  1755. if (config._dayOfYear != null) {
  1756. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  1757. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  1758. getParsingFlags(config)._overflowDayOfYear = true;
  1759. }
  1760. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  1761. config._a[MONTH] = date.getUTCMonth();
  1762. config._a[DATE] = date.getUTCDate();
  1763. }
  1764. // Default to current date.
  1765. // * if no year, month, day of month are given, default to today
  1766. // * if day of month is given, default month and year
  1767. // * if month is given, default only year
  1768. // * if year is given, don't default anything
  1769. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  1770. config._a[i] = input[i] = currentDate[i];
  1771. }
  1772. // Zero out whatever was not defaulted, including time
  1773. for (; i < 7; i++) {
  1774. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  1775. }
  1776. // Check for 24:00:00.000
  1777. if (config._a[HOUR] === 24 &&
  1778. config._a[MINUTE] === 0 &&
  1779. config._a[SECOND] === 0 &&
  1780. config._a[MILLISECOND] === 0) {
  1781. config._nextDay = true;
  1782. config._a[HOUR] = 0;
  1783. }
  1784. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  1785. expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
  1786. // Apply timezone offset from input. The actual utcOffset can be changed
  1787. // with parseZone.
  1788. if (config._tzm != null) {
  1789. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1790. }
  1791. if (config._nextDay) {
  1792. config._a[HOUR] = 24;
  1793. }
  1794. // check for mismatching day of week
  1795. if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
  1796. getParsingFlags(config).weekdayMismatch = true;
  1797. }
  1798. }
  1799. function dayOfYearFromWeekInfo(config) {
  1800. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  1801. w = config._w;
  1802. if (w.GG != null || w.W != null || w.E != null) {
  1803. dow = 1;
  1804. doy = 4;
  1805. // TODO: We need to take the current isoWeekYear, but that depends on
  1806. // how we interpret now (local, utc, fixed offset). So create
  1807. // a now version of current config (take local/utc/offset flags, and
  1808. // create now).
  1809. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  1810. week = defaults(w.W, 1);
  1811. weekday = defaults(w.E, 1);
  1812. if (weekday < 1 || weekday > 7) {
  1813. weekdayOverflow = true;
  1814. }
  1815. } else {
  1816. dow = config._locale._week.dow;
  1817. doy = config._locale._week.doy;
  1818. var curWeek = weekOfYear(createLocal(), dow, doy);
  1819. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  1820. // Default to current week.
  1821. week = defaults(w.w, curWeek.week);
  1822. if (w.d != null) {
  1823. // weekday -- low day numbers are considered next week
  1824. weekday = w.d;
  1825. if (weekday < 0 || weekday > 6) {
  1826. weekdayOverflow = true;
  1827. }
  1828. } else if (w.e != null) {
  1829. // local weekday -- counting starts from beginning of week
  1830. weekday = w.e + dow;
  1831. if (w.e < 0 || w.e > 6) {
  1832. weekdayOverflow = true;
  1833. }
  1834. } else {
  1835. // default to beginning of week
  1836. weekday = dow;
  1837. }
  1838. }
  1839. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  1840. getParsingFlags(config)._overflowWeeks = true;
  1841. } else if (weekdayOverflow != null) {
  1842. getParsingFlags(config)._overflowWeekday = true;
  1843. } else {
  1844. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  1845. config._a[YEAR] = temp.year;
  1846. config._dayOfYear = temp.dayOfYear;
  1847. }
  1848. }
  1849. // iso 8601 regex
  1850. // 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)
  1851. 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)?)?$/;
  1852. 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)?)?$/;
  1853. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  1854. var isoDates = [
  1855. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  1856. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  1857. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  1858. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  1859. ['YYYY-DDD', /\d{4}-\d{3}/],
  1860. ['YYYY-MM', /\d{4}-\d\d/, false],
  1861. ['YYYYYYMMDD', /[+-]\d{10}/],
  1862. ['YYYYMMDD', /\d{8}/],
  1863. // YYYYMM is NOT allowed by the standard
  1864. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  1865. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  1866. ['YYYYDDD', /\d{7}/]
  1867. ];
  1868. // iso time formats and regexes
  1869. var isoTimes = [
  1870. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  1871. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  1872. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  1873. ['HH:mm', /\d\d:\d\d/],
  1874. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  1875. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  1876. ['HHmmss', /\d\d\d\d\d\d/],
  1877. ['HHmm', /\d\d\d\d/],
  1878. ['HH', /\d\d/]
  1879. ];
  1880. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  1881. // date from iso format
  1882. function configFromISO(config) {
  1883. var i, l,
  1884. string = config._i,
  1885. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  1886. allowTime, dateFormat, timeFormat, tzFormat;
  1887. if (match) {
  1888. getParsingFlags(config).iso = true;
  1889. for (i = 0, l = isoDates.length; i < l; i++) {
  1890. if (isoDates[i][1].exec(match[1])) {
  1891. dateFormat = isoDates[i][0];
  1892. allowTime = isoDates[i][2] !== false;
  1893. break;
  1894. }
  1895. }
  1896. if (dateFormat == null) {
  1897. config._isValid = false;
  1898. return;
  1899. }
  1900. if (match[3]) {
  1901. for (i = 0, l = isoTimes.length; i < l; i++) {
  1902. if (isoTimes[i][1].exec(match[3])) {
  1903. // match[2] should be 'T' or space
  1904. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  1905. break;
  1906. }
  1907. }
  1908. if (timeFormat == null) {
  1909. config._isValid = false;
  1910. return;
  1911. }
  1912. }
  1913. if (!allowTime && timeFormat != null) {
  1914. config._isValid = false;
  1915. return;
  1916. }
  1917. if (match[4]) {
  1918. if (tzRegex.exec(match[4])) {
  1919. tzFormat = 'Z';
  1920. } else {
  1921. config._isValid = false;
  1922. return;
  1923. }
  1924. }
  1925. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  1926. configFromStringAndFormat(config);
  1927. } else {
  1928. config._isValid = false;
  1929. }
  1930. }
  1931. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  1932. var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
  1933. function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
  1934. var result = [
  1935. untruncateYear(yearStr),
  1936. defaultLocaleMonthsShort.indexOf(monthStr),
  1937. parseInt(dayStr, 10),
  1938. parseInt(hourStr, 10),
  1939. parseInt(minuteStr, 10)
  1940. ];
  1941. if (secondStr) {
  1942. result.push(parseInt(secondStr, 10));
  1943. }
  1944. return result;
  1945. }
  1946. function untruncateYear(yearStr) {
  1947. var year = parseInt(yearStr, 10);
  1948. if (year <= 49) {
  1949. return 2000 + year;
  1950. } else if (year <= 999) {
  1951. return 1900 + year;
  1952. }
  1953. return year;
  1954. }
  1955. function preprocessRFC2822(s) {
  1956. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  1957. return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
  1958. }
  1959. function checkWeekday(weekdayStr, parsedInput, config) {
  1960. if (weekdayStr) {
  1961. // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
  1962. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  1963. weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
  1964. if (weekdayProvided !== weekdayActual) {
  1965. getParsingFlags(config).weekdayMismatch = true;
  1966. config._isValid = false;
  1967. return false;
  1968. }
  1969. }
  1970. return true;
  1971. }
  1972. var obsOffsets = {
  1973. UT: 0,
  1974. GMT: 0,
  1975. EDT: -4 * 60,
  1976. EST: -5 * 60,
  1977. CDT: -5 * 60,
  1978. CST: -6 * 60,
  1979. MDT: -6 * 60,
  1980. MST: -7 * 60,
  1981. PDT: -7 * 60,
  1982. PST: -8 * 60
  1983. };
  1984. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  1985. if (obsOffset) {
  1986. return obsOffsets[obsOffset];
  1987. } else if (militaryOffset) {
  1988. // the only allowed military tz is Z
  1989. return 0;
  1990. } else {
  1991. var hm = parseInt(numOffset, 10);
  1992. var m = hm % 100, h = (hm - m) / 100;
  1993. return h * 60 + m;
  1994. }
  1995. }
  1996. // date and time from ref 2822 format
  1997. function configFromRFC2822(config) {
  1998. var match = rfc2822.exec(preprocessRFC2822(config._i));
  1999. if (match) {
  2000. var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
  2001. if (!checkWeekday(match[1], parsedArray, config)) {
  2002. return;
  2003. }
  2004. config._a = parsedArray;
  2005. config._tzm = calculateOffset(match[8], match[9], match[10]);
  2006. config._d = createUTCDate.apply(null, config._a);
  2007. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2008. getParsingFlags(config).rfc2822 = true;
  2009. } else {
  2010. config._isValid = false;
  2011. }
  2012. }
  2013. // date from iso format or fallback
  2014. function configFromString(config) {
  2015. var matched = aspNetJsonRegex.exec(config._i);
  2016. if (matched !== null) {
  2017. config._d = new Date(+matched[1]);
  2018. return;
  2019. }
  2020. configFromISO(config);
  2021. if (config._isValid === false) {
  2022. delete config._isValid;
  2023. } else {
  2024. return;
  2025. }
  2026. configFromRFC2822(config);
  2027. if (config._isValid === false) {
  2028. delete config._isValid;
  2029. } else {
  2030. return;
  2031. }
  2032. // Final attempt, use Input Fallback
  2033. hooks.createFromInputFallback(config);
  2034. }
  2035. hooks.createFromInputFallback = deprecate(
  2036. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2037. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2038. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  2039. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2040. function (config) {
  2041. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2042. }
  2043. );
  2044. // constant that refers to the ISO standard
  2045. hooks.ISO_8601 = function () {};
  2046. // constant that refers to the RFC 2822 form
  2047. hooks.RFC_2822 = function () {};
  2048. // date from string and format string
  2049. function configFromStringAndFormat(config) {
  2050. // TODO: Move this to another part of the creation flow to prevent circular deps
  2051. if (config._f === hooks.ISO_8601) {
  2052. configFromISO(config);
  2053. return;
  2054. }
  2055. if (config._f === hooks.RFC_2822) {
  2056. configFromRFC2822(config);
  2057. return;
  2058. }
  2059. config._a = [];
  2060. getParsingFlags(config).empty = true;
  2061. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2062. var string = '' + config._i,
  2063. i, parsedInput, tokens, token, skipped,
  2064. stringLength = string.length,
  2065. totalParsedInputLength = 0;
  2066. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2067. for (i = 0; i < tokens.length; i++) {
  2068. token = tokens[i];
  2069. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  2070. // console.log('token', token, 'parsedInput', parsedInput,
  2071. // 'regex', getParseRegexForToken(token, config));
  2072. if (parsedInput) {
  2073. skipped = string.substr(0, string.indexOf(parsedInput));
  2074. if (skipped.length > 0) {
  2075. getParsingFlags(config).unusedInput.push(skipped);
  2076. }
  2077. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  2078. totalParsedInputLength += parsedInput.length;
  2079. }
  2080. // don't parse if it's not a known token
  2081. if (formatTokenFunctions[token]) {
  2082. if (parsedInput) {
  2083. getParsingFlags(config).empty = false;
  2084. }
  2085. else {
  2086. getParsingFlags(config).unusedTokens.push(token);
  2087. }
  2088. addTimeToArrayFromToken(token, parsedInput, config);
  2089. }
  2090. else if (config._strict && !parsedInput) {
  2091. getParsingFlags(config).unusedTokens.push(token);
  2092. }
  2093. }
  2094. // add remaining unparsed input length to the string
  2095. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  2096. if (string.length > 0) {
  2097. getParsingFlags(config).unusedInput.push(string);
  2098. }
  2099. // clear _12h flag if hour is <= 12
  2100. if (config._a[HOUR] <= 12 &&
  2101. getParsingFlags(config).bigHour === true &&
  2102. config._a[HOUR] > 0) {
  2103. getParsingFlags(config).bigHour = undefined;
  2104. }
  2105. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2106. getParsingFlags(config).meridiem = config._meridiem;
  2107. // handle meridiem
  2108. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  2109. configFromArray(config);
  2110. checkOverflow(config);
  2111. }
  2112. function meridiemFixWrap (locale, hour, meridiem) {
  2113. var isPm;
  2114. if (meridiem == null) {
  2115. // nothing to do
  2116. return hour;
  2117. }
  2118. if (locale.meridiemHour != null) {
  2119. return locale.meridiemHour(hour, meridiem);
  2120. } else if (locale.isPM != null) {
  2121. // Fallback
  2122. isPm = locale.isPM(meridiem);
  2123. if (isPm && hour < 12) {
  2124. hour += 12;
  2125. }
  2126. if (!isPm && hour === 12) {
  2127. hour = 0;
  2128. }
  2129. return hour;
  2130. } else {
  2131. // this is not supposed to happen
  2132. return hour;
  2133. }
  2134. }
  2135. // date from string and array of format strings
  2136. function configFromStringAndArray(config) {
  2137. var tempConfig,
  2138. bestMoment,
  2139. scoreToBeat,
  2140. i,
  2141. currentScore;
  2142. if (config._f.length === 0) {
  2143. getParsingFlags(config).invalidFormat = true;
  2144. config._d = new Date(NaN);
  2145. return;
  2146. }
  2147. for (i = 0; i < config._f.length; i++) {
  2148. currentScore = 0;
  2149. tempConfig = copyConfig({}, config);
  2150. if (config._useUTC != null) {
  2151. tempConfig._useUTC = config._useUTC;
  2152. }
  2153. tempConfig._f = config._f[i];
  2154. configFromStringAndFormat(tempConfig);
  2155. if (!isValid(tempConfig)) {
  2156. continue;
  2157. }
  2158. // if there is any input that was not parsed add a penalty for that format
  2159. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2160. //or tokens
  2161. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2162. getParsingFlags(tempConfig).score = currentScore;
  2163. if (scoreToBeat == null || currentScore < scoreToBeat) {
  2164. scoreToBeat = currentScore;
  2165. bestMoment = tempConfig;
  2166. }
  2167. }
  2168. extend(config, bestMoment || tempConfig);
  2169. }
  2170. function configFromObject(config) {
  2171. if (config._d) {
  2172. return;
  2173. }
  2174. var i = normalizeObjectUnits(config._i);
  2175. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  2176. return obj && parseInt(obj, 10);
  2177. });
  2178. configFromArray(config);
  2179. }
  2180. function createFromConfig (config) {
  2181. var res = new Moment(checkOverflow(prepareConfig(config)));
  2182. if (res._nextDay) {
  2183. // Adding is smart enough around DST
  2184. res.add(1, 'd');
  2185. res._nextDay = undefined;
  2186. }
  2187. return res;
  2188. }
  2189. function prepareConfig (config) {
  2190. var input = config._i,
  2191. format = config._f;
  2192. config._locale = config._locale || getLocale(config._l);
  2193. if (input === null || (format === undefined && input === '')) {
  2194. return createInvalid({nullInput: true});
  2195. }
  2196. if (typeof input === 'string') {
  2197. config._i = input = config._locale.preparse(input);
  2198. }
  2199. if (isMoment(input)) {
  2200. return new Moment(checkOverflow(input));
  2201. } else if (isDate(input)) {
  2202. config._d = input;
  2203. } else if (isArray(format)) {
  2204. configFromStringAndArray(config);
  2205. } else if (format) {
  2206. configFromStringAndFormat(config);
  2207. } else {
  2208. configFromInput(config);
  2209. }
  2210. if (!isValid(config)) {
  2211. config._d = null;
  2212. }
  2213. return config;
  2214. }
  2215. function configFromInput(config) {
  2216. var input = config._i;
  2217. if (isUndefined(input)) {
  2218. config._d = new Date(hooks.now());
  2219. } else if (isDate(input)) {
  2220. config._d = new Date(input.valueOf());
  2221. } else if (typeof input === 'string') {
  2222. configFromString(config);
  2223. } else if (isArray(input)) {
  2224. config._a = map(input.slice(0), function (obj) {
  2225. return parseInt(obj, 10);
  2226. });
  2227. configFromArray(config);
  2228. } else if (isObject(input)) {
  2229. configFromObject(config);
  2230. } else if (isNumber(input)) {
  2231. // from milliseconds
  2232. config._d = new Date(input);
  2233. } else {
  2234. hooks.createFromInputFallback(config);
  2235. }
  2236. }
  2237. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  2238. var c = {};
  2239. if (locale === true || locale === false) {
  2240. strict = locale;
  2241. locale = undefined;
  2242. }
  2243. if ((isObject(input) && isObjectEmpty(input)) ||
  2244. (isArray(input) && input.length === 0)) {
  2245. input = undefined;
  2246. }
  2247. // object construction must be done this way.
  2248. // https://github.com/moment/moment/issues/1423
  2249. c._isAMomentObject = true;
  2250. c._useUTC = c._isUTC = isUTC;
  2251. c._l = locale;
  2252. c._i = input;
  2253. c._f = format;
  2254. c._strict = strict;
  2255. return createFromConfig(c);
  2256. }
  2257. function createLocal (input, format, locale, strict) {
  2258. return createLocalOrUTC(input, format, locale, strict, false);
  2259. }
  2260. var prototypeMin = deprecate(
  2261. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2262. function () {
  2263. var other = createLocal.apply(null, arguments);
  2264. if (this.isValid() && other.isValid()) {
  2265. return other < this ? this : other;
  2266. } else {
  2267. return createInvalid();
  2268. }
  2269. }
  2270. );
  2271. var prototypeMax = deprecate(
  2272. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2273. function () {
  2274. var other = createLocal.apply(null, arguments);
  2275. if (this.isValid() && other.isValid()) {
  2276. return other > this ? this : other;
  2277. } else {
  2278. return createInvalid();
  2279. }
  2280. }
  2281. );
  2282. // Pick a moment m from moments so that m[fn](other) is true for all
  2283. // other. This relies on the function fn to be transitive.
  2284. //
  2285. // moments should either be an array of moment objects or an array, whose
  2286. // first element is an array of moment objects.
  2287. function pickBy(fn, moments) {
  2288. var res, i;
  2289. if (moments.length === 1 && isArray(moments[0])) {
  2290. moments = moments[0];
  2291. }
  2292. if (!moments.length) {
  2293. return createLocal();
  2294. }
  2295. res = moments[0];
  2296. for (i = 1; i < moments.length; ++i) {
  2297. if (!moments[i].isValid() || moments[i][fn](res)) {
  2298. res = moments[i];
  2299. }
  2300. }
  2301. return res;
  2302. }
  2303. // TODO: Use [].sort instead?
  2304. function min () {
  2305. var args = [].slice.call(arguments, 0);
  2306. return pickBy('isBefore', args);
  2307. }
  2308. function max () {
  2309. var args = [].slice.call(arguments, 0);
  2310. return pickBy('isAfter', args);
  2311. }
  2312. var now = function () {
  2313. return Date.now ? Date.now() : +(new Date());
  2314. };
  2315. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  2316. function isDurationValid(m) {
  2317. for (var key in m) {
  2318. if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  2319. return false;
  2320. }
  2321. }
  2322. var unitHasDecimal = false;
  2323. for (var i = 0; i < ordering.length; ++i) {
  2324. if (m[ordering[i]]) {
  2325. if (unitHasDecimal) {
  2326. return false; // only allow non-integers for smallest unit
  2327. }
  2328. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2329. unitHasDecimal = true;
  2330. }
  2331. }
  2332. }
  2333. return true;
  2334. }
  2335. function isValid$1() {
  2336. return this._isValid;
  2337. }
  2338. function createInvalid$1() {
  2339. return createDuration(NaN);
  2340. }
  2341. function Duration (duration) {
  2342. var normalizedInput = normalizeObjectUnits(duration),
  2343. years = normalizedInput.year || 0,
  2344. quarters = normalizedInput.quarter || 0,
  2345. months = normalizedInput.month || 0,
  2346. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2347. days = normalizedInput.day || 0,
  2348. hours = normalizedInput.hour || 0,
  2349. minutes = normalizedInput.minute || 0,
  2350. seconds = normalizedInput.second || 0,
  2351. milliseconds = normalizedInput.millisecond || 0;
  2352. this._isValid = isDurationValid(normalizedInput);
  2353. // representation for dateAddRemove
  2354. this._milliseconds = +milliseconds +
  2355. seconds * 1e3 + // 1000
  2356. minutes * 6e4 + // 1000 * 60
  2357. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2358. // Because of dateAddRemove treats 24 hours as different from a
  2359. // day when working around DST, we need to store them separately
  2360. this._days = +days +
  2361. weeks * 7;
  2362. // It is impossible to translate months into days without knowing
  2363. // which months you are are talking about, so we have to store
  2364. // it separately.
  2365. this._months = +months +
  2366. quarters * 3 +
  2367. years * 12;
  2368. this._data = {};
  2369. this._locale = getLocale();
  2370. this._bubble();
  2371. }
  2372. function isDuration (obj) {
  2373. return obj instanceof Duration;
  2374. }
  2375. function absRound (number) {
  2376. if (number < 0) {
  2377. return Math.round(-1 * number) * -1;
  2378. } else {
  2379. return Math.round(number);
  2380. }
  2381. }
  2382. // FORMATTING
  2383. function offset (token, separator) {
  2384. addFormatToken(token, 0, 0, function () {
  2385. var offset = this.utcOffset();
  2386. var sign = '+';
  2387. if (offset < 0) {
  2388. offset = -offset;
  2389. sign = '-';
  2390. }
  2391. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  2392. });
  2393. }
  2394. offset('Z', ':');
  2395. offset('ZZ', '');
  2396. // PARSING
  2397. addRegexToken('Z', matchShortOffset);
  2398. addRegexToken('ZZ', matchShortOffset);
  2399. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2400. config._useUTC = true;
  2401. config._tzm = offsetFromString(matchShortOffset, input);
  2402. });
  2403. // HELPERS
  2404. // timezone chunker
  2405. // '+10:00' > ['10', '00']
  2406. // '-1530' > ['-15', '30']
  2407. var chunkOffset = /([\+\-]|\d\d)/gi;
  2408. function offsetFromString(matcher, string) {
  2409. var matches = (string || '').match(matcher);
  2410. if (matches === null) {
  2411. return null;
  2412. }
  2413. var chunk = matches[matches.length - 1] || [];
  2414. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2415. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  2416. return minutes === 0 ?
  2417. 0 :
  2418. parts[0] === '+' ? minutes : -minutes;
  2419. }
  2420. // Return a moment from input, that is local/utc/zone equivalent to model.
  2421. function cloneWithOffset(input, model) {
  2422. var res, diff;
  2423. if (model._isUTC) {
  2424. res = model.clone();
  2425. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  2426. // Use low-level api, because this fn is low-level api.
  2427. res._d.setTime(res._d.valueOf() + diff);
  2428. hooks.updateOffset(res, false);
  2429. return res;
  2430. } else {
  2431. return createLocal(input).local();
  2432. }
  2433. }
  2434. function getDateOffset (m) {
  2435. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2436. // https://github.com/moment/moment/pull/1871
  2437. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  2438. }
  2439. // HOOKS
  2440. // This function will be called whenever a moment is mutated.
  2441. // It is intended to keep the offset in sync with the timezone.
  2442. hooks.updateOffset = function () {};
  2443. // MOMENTS
  2444. // keepLocalTime = true means only change the timezone, without
  2445. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2446. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2447. // +0200, so we adjust the time as needed, to be valid.
  2448. //
  2449. // Keeping the time actually adds/subtracts (one hour)
  2450. // from the actual represented time. That is why we call updateOffset
  2451. // a second time. In case it wants us to change the offset again
  2452. // _changeInProgress == true case, then we have to adjust, because
  2453. // there is no such time in the given timezone.
  2454. function getSetOffset (input, keepLocalTime, keepMinutes) {
  2455. var offset = this._offset || 0,
  2456. localAdjust;
  2457. if (!this.isValid()) {
  2458. return input != null ? this : NaN;
  2459. }
  2460. if (input != null) {
  2461. if (typeof input === 'string') {
  2462. input = offsetFromString(matchShortOffset, input);
  2463. if (input === null) {
  2464. return this;
  2465. }
  2466. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2467. input = input * 60;
  2468. }
  2469. if (!this._isUTC && keepLocalTime) {
  2470. localAdjust = getDateOffset(this);
  2471. }
  2472. this._offset = input;
  2473. this._isUTC = true;
  2474. if (localAdjust != null) {
  2475. this.add(localAdjust, 'm');
  2476. }
  2477. if (offset !== input) {
  2478. if (!keepLocalTime || this._changeInProgress) {
  2479. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  2480. } else if (!this._changeInProgress) {
  2481. this._changeInProgress = true;
  2482. hooks.updateOffset(this, true);
  2483. this._changeInProgress = null;
  2484. }
  2485. }
  2486. return this;
  2487. } else {
  2488. return this._isUTC ? offset : getDateOffset(this);
  2489. }
  2490. }
  2491. function getSetZone (input, keepLocalTime) {
  2492. if (input != null) {
  2493. if (typeof input !== 'string') {
  2494. input = -input;
  2495. }
  2496. this.utcOffset(input, keepLocalTime);
  2497. return this;
  2498. } else {
  2499. return -this.utcOffset();
  2500. }
  2501. }
  2502. function setOffsetToUTC (keepLocalTime) {
  2503. return this.utcOffset(0, keepLocalTime);
  2504. }
  2505. function setOffsetToLocal (keepLocalTime) {
  2506. if (this._isUTC) {
  2507. this.utcOffset(0, keepLocalTime);
  2508. this._isUTC = false;
  2509. if (keepLocalTime) {
  2510. this.subtract(getDateOffset(this), 'm');
  2511. }
  2512. }
  2513. return this;
  2514. }
  2515. function setOffsetToParsedOffset () {
  2516. if (this._tzm != null) {
  2517. this.utcOffset(this._tzm, false, true);
  2518. } else if (typeof this._i === 'string') {
  2519. var tZone = offsetFromString(matchOffset, this._i);
  2520. if (tZone != null) {
  2521. this.utcOffset(tZone);
  2522. }
  2523. else {
  2524. this.utcOffset(0, true);
  2525. }
  2526. }
  2527. return this;
  2528. }
  2529. function hasAlignedHourOffset (input) {
  2530. if (!this.isValid()) {
  2531. return false;
  2532. }
  2533. input = input ? createLocal(input).utcOffset() : 0;
  2534. return (this.utcOffset() - input) % 60 === 0;
  2535. }
  2536. function isDaylightSavingTime () {
  2537. return (
  2538. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2539. this.utcOffset() > this.clone().month(5).utcOffset()
  2540. );
  2541. }
  2542. function isDaylightSavingTimeShifted () {
  2543. if (!isUndefined(this._isDSTShifted)) {
  2544. return this._isDSTShifted;
  2545. }
  2546. var c = {};
  2547. copyConfig(c, this);
  2548. c = prepareConfig(c);
  2549. if (c._a) {
  2550. var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2551. this._isDSTShifted = this.isValid() &&
  2552. compareArrays(c._a, other.toArray()) > 0;
  2553. } else {
  2554. this._isDSTShifted = false;
  2555. }
  2556. return this._isDSTShifted;
  2557. }
  2558. function isLocal () {
  2559. return this.isValid() ? !this._isUTC : false;
  2560. }
  2561. function isUtcOffset () {
  2562. return this.isValid() ? this._isUTC : false;
  2563. }
  2564. function isUtc () {
  2565. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2566. }
  2567. // ASP.NET json date format regex
  2568. var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
  2569. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  2570. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  2571. // and further modified to allow for strings containing both week and day
  2572. 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)?)?$/;
  2573. function createDuration (input, key) {
  2574. var duration = input,
  2575. // matching against regexp is expensive, do it on demand
  2576. match = null,
  2577. sign,
  2578. ret,
  2579. diffRes;
  2580. if (isDuration(input)) {
  2581. duration = {
  2582. ms : input._milliseconds,
  2583. d : input._days,
  2584. M : input._months
  2585. };
  2586. } else if (isNumber(input)) {
  2587. duration = {};
  2588. if (key) {
  2589. duration[key] = input;
  2590. } else {
  2591. duration.milliseconds = input;
  2592. }
  2593. } else if (!!(match = aspNetRegex.exec(input))) {
  2594. sign = (match[1] === '-') ? -1 : 1;
  2595. duration = {
  2596. y : 0,
  2597. d : toInt(match[DATE]) * sign,
  2598. h : toInt(match[HOUR]) * sign,
  2599. m : toInt(match[MINUTE]) * sign,
  2600. s : toInt(match[SECOND]) * sign,
  2601. ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  2602. };
  2603. } else if (!!(match = isoRegex.exec(input))) {
  2604. sign = (match[1] === '-') ? -1 : 1;
  2605. duration = {
  2606. y : parseIso(match[2], sign),
  2607. M : parseIso(match[3], sign),
  2608. w : parseIso(match[4], sign),
  2609. d : parseIso(match[5], sign),
  2610. h : parseIso(match[6], sign),
  2611. m : parseIso(match[7], sign),
  2612. s : parseIso(match[8], sign)
  2613. };
  2614. } else if (duration == null) {// checks for null or undefined
  2615. duration = {};
  2616. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  2617. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  2618. duration = {};
  2619. duration.ms = diffRes.milliseconds;
  2620. duration.M = diffRes.months;
  2621. }
  2622. ret = new Duration(duration);
  2623. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  2624. ret._locale = input._locale;
  2625. }
  2626. return ret;
  2627. }
  2628. createDuration.fn = Duration.prototype;
  2629. createDuration.invalid = createInvalid$1;
  2630. function parseIso (inp, sign) {
  2631. // We'd normally use ~~inp for this, but unfortunately it also
  2632. // converts floats to ints.
  2633. // inp may be undefined, so careful calling replace on it.
  2634. var res = inp && parseFloat(inp.replace(',', '.'));
  2635. // apply sign while we're at it
  2636. return (isNaN(res) ? 0 : res) * sign;
  2637. }
  2638. function positiveMomentsDifference(base, other) {
  2639. var res = {};
  2640. res.months = other.month() - base.month() +
  2641. (other.year() - base.year()) * 12;
  2642. if (base.clone().add(res.months, 'M').isAfter(other)) {
  2643. --res.months;
  2644. }
  2645. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  2646. return res;
  2647. }
  2648. function momentsDifference(base, other) {
  2649. var res;
  2650. if (!(base.isValid() && other.isValid())) {
  2651. return {milliseconds: 0, months: 0};
  2652. }
  2653. other = cloneWithOffset(other, base);
  2654. if (base.isBefore(other)) {
  2655. res = positiveMomentsDifference(base, other);
  2656. } else {
  2657. res = positiveMomentsDifference(other, base);
  2658. res.milliseconds = -res.milliseconds;
  2659. res.months = -res.months;
  2660. }
  2661. return res;
  2662. }
  2663. // TODO: remove 'name' arg after deprecation is removed
  2664. function createAdder(direction, name) {
  2665. return function (val, period) {
  2666. var dur, tmp;
  2667. //invert the arguments, but complain about it
  2668. if (period !== null && !isNaN(+period)) {
  2669. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
  2670. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  2671. tmp = val; val = period; period = tmp;
  2672. }
  2673. val = typeof val === 'string' ? +val : val;
  2674. dur = createDuration(val, period);
  2675. addSubtract(this, dur, direction);
  2676. return this;
  2677. };
  2678. }
  2679. function addSubtract (mom, duration, isAdding, updateOffset) {
  2680. var milliseconds = duration._milliseconds,
  2681. days = absRound(duration._days),
  2682. months = absRound(duration._months);
  2683. if (!mom.isValid()) {
  2684. // No op
  2685. return;
  2686. }
  2687. updateOffset = updateOffset == null ? true : updateOffset;
  2688. if (months) {
  2689. setMonth(mom, get(mom, 'Month') + months * isAdding);
  2690. }
  2691. if (days) {
  2692. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  2693. }
  2694. if (milliseconds) {
  2695. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  2696. }
  2697. if (updateOffset) {
  2698. hooks.updateOffset(mom, days || months);
  2699. }
  2700. }
  2701. var add = createAdder(1, 'add');
  2702. var subtract = createAdder(-1, 'subtract');
  2703. function getCalendarFormat(myMoment, now) {
  2704. var diff = myMoment.diff(now, 'days', true);
  2705. return diff < -6 ? 'sameElse' :
  2706. diff < -1 ? 'lastWeek' :
  2707. diff < 0 ? 'lastDay' :
  2708. diff < 1 ? 'sameDay' :
  2709. diff < 2 ? 'nextDay' :
  2710. diff < 7 ? 'nextWeek' : 'sameElse';
  2711. }
  2712. function calendar$1 (time, formats) {
  2713. // We want to compare the start of today, vs this.
  2714. // Getting start-of-today depends on whether we're local/utc/offset or not.
  2715. var now = time || createLocal(),
  2716. sod = cloneWithOffset(now, this).startOf('day'),
  2717. format = hooks.calendarFormat(this, sod) || 'sameElse';
  2718. var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  2719. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  2720. }
  2721. function clone () {
  2722. return new Moment(this);
  2723. }
  2724. function isAfter (input, units) {
  2725. var localInput = isMoment(input) ? input : createLocal(input);
  2726. if (!(this.isValid() && localInput.isValid())) {
  2727. return false;
  2728. }
  2729. units = normalizeUnits(units) || 'millisecond';
  2730. if (units === 'millisecond') {
  2731. return this.valueOf() > localInput.valueOf();
  2732. } else {
  2733. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  2734. }
  2735. }
  2736. function isBefore (input, units) {
  2737. var localInput = isMoment(input) ? input : createLocal(input);
  2738. if (!(this.isValid() && localInput.isValid())) {
  2739. return false;
  2740. }
  2741. units = normalizeUnits(units) || 'millisecond';
  2742. if (units === 'millisecond') {
  2743. return this.valueOf() < localInput.valueOf();
  2744. } else {
  2745. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  2746. }
  2747. }
  2748. function isBetween (from, to, units, inclusivity) {
  2749. var localFrom = isMoment(from) ? from : createLocal(from),
  2750. localTo = isMoment(to) ? to : createLocal(to);
  2751. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  2752. return false;
  2753. }
  2754. inclusivity = inclusivity || '()';
  2755. return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) &&
  2756. (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
  2757. }
  2758. function isSame (input, units) {
  2759. var localInput = isMoment(input) ? input : createLocal(input),
  2760. inputMs;
  2761. if (!(this.isValid() && localInput.isValid())) {
  2762. return false;
  2763. }
  2764. units = normalizeUnits(units) || 'millisecond';
  2765. if (units === 'millisecond') {
  2766. return this.valueOf() === localInput.valueOf();
  2767. } else {
  2768. inputMs = localInput.valueOf();
  2769. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  2770. }
  2771. }
  2772. function isSameOrAfter (input, units) {
  2773. return this.isSame(input, units) || this.isAfter(input, units);
  2774. }
  2775. function isSameOrBefore (input, units) {
  2776. return this.isSame(input, units) || this.isBefore(input, units);
  2777. }
  2778. function diff (input, units, asFloat) {
  2779. var that,
  2780. zoneDelta,
  2781. output;
  2782. if (!this.isValid()) {
  2783. return NaN;
  2784. }
  2785. that = cloneWithOffset(input, this);
  2786. if (!that.isValid()) {
  2787. return NaN;
  2788. }
  2789. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  2790. units = normalizeUnits(units);
  2791. switch (units) {
  2792. case 'year': output = monthDiff(this, that) / 12; break;
  2793. case 'month': output = monthDiff(this, that); break;
  2794. case 'quarter': output = monthDiff(this, that) / 3; break;
  2795. case 'second': output = (this - that) / 1e3; break; // 1000
  2796. case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
  2797. case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
  2798. case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
  2799. case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
  2800. default: output = this - that;
  2801. }
  2802. return asFloat ? output : absFloor(output);
  2803. }
  2804. function monthDiff (a, b) {
  2805. // difference in months
  2806. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  2807. // b is in (anchor - 1 month, anchor + 1 month)
  2808. anchor = a.clone().add(wholeMonthDiff, 'months'),
  2809. anchor2, adjust;
  2810. if (b - anchor < 0) {
  2811. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  2812. // linear across the month
  2813. adjust = (b - anchor) / (anchor - anchor2);
  2814. } else {
  2815. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  2816. // linear across the month
  2817. adjust = (b - anchor) / (anchor2 - anchor);
  2818. }
  2819. //check for negative zero, return zero if negative zero
  2820. return -(wholeMonthDiff + adjust) || 0;
  2821. }
  2822. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  2823. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  2824. function toString () {
  2825. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  2826. }
  2827. function toISOString(keepOffset) {
  2828. if (!this.isValid()) {
  2829. return null;
  2830. }
  2831. var utc = keepOffset !== true;
  2832. var m = utc ? this.clone().utc() : this;
  2833. if (m.year() < 0 || m.year() > 9999) {
  2834. return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
  2835. }
  2836. if (isFunction(Date.prototype.toISOString)) {
  2837. // native implementation is ~50x faster, use it when we can
  2838. if (utc) {
  2839. return this.toDate().toISOString();
  2840. } else {
  2841. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
  2842. }
  2843. }
  2844. return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
  2845. }
  2846. /**
  2847. * Return a human readable representation of a moment that can
  2848. * also be evaluated to get a new moment which is the same
  2849. *
  2850. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  2851. */
  2852. function inspect () {
  2853. if (!this.isValid()) {
  2854. return 'moment.invalid(/* ' + this._i + ' */)';
  2855. }
  2856. var func = 'moment';
  2857. var zone = '';
  2858. if (!this.isLocal()) {
  2859. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  2860. zone = 'Z';
  2861. }
  2862. var prefix = '[' + func + '("]';
  2863. var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
  2864. var datetime = '-MM-DD[T]HH:mm:ss.SSS';
  2865. var suffix = zone + '[")]';
  2866. return this.format(prefix + year + datetime + suffix);
  2867. }
  2868. function format (inputString) {
  2869. if (!inputString) {
  2870. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  2871. }
  2872. var output = formatMoment(this, inputString);
  2873. return this.localeData().postformat(output);
  2874. }
  2875. function from (time, withoutSuffix) {
  2876. if (this.isValid() &&
  2877. ((isMoment(time) && time.isValid()) ||
  2878. createLocal(time).isValid())) {
  2879. return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  2880. } else {
  2881. return this.localeData().invalidDate();
  2882. }
  2883. }
  2884. function fromNow (withoutSuffix) {
  2885. return this.from(createLocal(), withoutSuffix);
  2886. }
  2887. function to (time, withoutSuffix) {
  2888. if (this.isValid() &&
  2889. ((isMoment(time) && time.isValid()) ||
  2890. createLocal(time).isValid())) {
  2891. return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  2892. } else {
  2893. return this.localeData().invalidDate();
  2894. }
  2895. }
  2896. function toNow (withoutSuffix) {
  2897. return this.to(createLocal(), withoutSuffix);
  2898. }
  2899. // If passed a locale key, it will set the locale for this
  2900. // instance. Otherwise, it will return the locale configuration
  2901. // variables for this instance.
  2902. function locale (key) {
  2903. var newLocaleData;
  2904. if (key === undefined) {
  2905. return this._locale._abbr;
  2906. } else {
  2907. newLocaleData = getLocale(key);
  2908. if (newLocaleData != null) {
  2909. this._locale = newLocaleData;
  2910. }
  2911. return this;
  2912. }
  2913. }
  2914. var lang = deprecate(
  2915. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  2916. function (key) {
  2917. if (key === undefined) {
  2918. return this.localeData();
  2919. } else {
  2920. return this.locale(key);
  2921. }
  2922. }
  2923. );
  2924. function localeData () {
  2925. return this._locale;
  2926. }
  2927. var MS_PER_SECOND = 1000;
  2928. var MS_PER_MINUTE = 60 * MS_PER_SECOND;
  2929. var MS_PER_HOUR = 60 * MS_PER_MINUTE;
  2930. var MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  2931. // actual modulo - handles negative numbers (for dates before 1970):
  2932. function mod$1(dividend, divisor) {
  2933. return (dividend % divisor + divisor) % divisor;
  2934. }
  2935. function localStartOfDate(y, m, d) {
  2936. // the date constructor remaps years 0-99 to 1900-1999
  2937. if (y < 100 && y >= 0) {
  2938. // preserve leap years using a full 400 year cycle, then reset
  2939. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  2940. } else {
  2941. return new Date(y, m, d).valueOf();
  2942. }
  2943. }
  2944. function utcStartOfDate(y, m, d) {
  2945. // Date.UTC remaps years 0-99 to 1900-1999
  2946. if (y < 100 && y >= 0) {
  2947. // preserve leap years using a full 400 year cycle, then reset
  2948. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  2949. } else {
  2950. return Date.UTC(y, m, d);
  2951. }
  2952. }
  2953. function startOf (units) {
  2954. var time;
  2955. units = normalizeUnits(units);
  2956. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  2957. return this;
  2958. }
  2959. var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  2960. switch (units) {
  2961. case 'year':
  2962. time = startOfDate(this.year(), 0, 1);
  2963. break;
  2964. case 'quarter':
  2965. time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
  2966. break;
  2967. case 'month':
  2968. time = startOfDate(this.year(), this.month(), 1);
  2969. break;
  2970. case 'week':
  2971. time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
  2972. break;
  2973. case 'isoWeek':
  2974. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
  2975. break;
  2976. case 'day':
  2977. case 'date':
  2978. time = startOfDate(this.year(), this.month(), this.date());
  2979. break;
  2980. case 'hour':
  2981. time = this._d.valueOf();
  2982. time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
  2983. break;
  2984. case 'minute':
  2985. time = this._d.valueOf();
  2986. time -= mod$1(time, MS_PER_MINUTE);
  2987. break;
  2988. case 'second':
  2989. time = this._d.valueOf();
  2990. time -= mod$1(time, MS_PER_SECOND);
  2991. break;
  2992. }
  2993. this._d.setTime(time);
  2994. hooks.updateOffset(this, true);
  2995. return this;
  2996. }
  2997. function endOf (units) {
  2998. var time;
  2999. units = normalizeUnits(units);
  3000. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3001. return this;
  3002. }
  3003. var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3004. switch (units) {
  3005. case 'year':
  3006. time = startOfDate(this.year() + 1, 0, 1) - 1;
  3007. break;
  3008. case 'quarter':
  3009. time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
  3010. break;
  3011. case 'month':
  3012. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  3013. break;
  3014. case 'week':
  3015. time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
  3016. break;
  3017. case 'isoWeek':
  3018. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
  3019. break;
  3020. case 'day':
  3021. case 'date':
  3022. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  3023. break;
  3024. case 'hour':
  3025. time = this._d.valueOf();
  3026. time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
  3027. break;
  3028. case 'minute':
  3029. time = this._d.valueOf();
  3030. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  3031. break;
  3032. case 'second':
  3033. time = this._d.valueOf();
  3034. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  3035. break;
  3036. }
  3037. this._d.setTime(time);
  3038. hooks.updateOffset(this, true);
  3039. return this;
  3040. }
  3041. function valueOf () {
  3042. return this._d.valueOf() - ((this._offset || 0) * 60000);
  3043. }
  3044. function unix () {
  3045. return Math.floor(this.valueOf() / 1000);
  3046. }
  3047. function toDate () {
  3048. return new Date(this.valueOf());
  3049. }
  3050. function toArray () {
  3051. var m = this;
  3052. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  3053. }
  3054. function toObject () {
  3055. var m = this;
  3056. return {
  3057. years: m.year(),
  3058. months: m.month(),
  3059. date: m.date(),
  3060. hours: m.hours(),
  3061. minutes: m.minutes(),
  3062. seconds: m.seconds(),
  3063. milliseconds: m.milliseconds()
  3064. };
  3065. }
  3066. function toJSON () {
  3067. // new Date(NaN).toJSON() === null
  3068. return this.isValid() ? this.toISOString() : null;
  3069. }
  3070. function isValid$2 () {
  3071. return isValid(this);
  3072. }
  3073. function parsingFlags () {
  3074. return extend({}, getParsingFlags(this));
  3075. }
  3076. function invalidAt () {
  3077. return getParsingFlags(this).overflow;
  3078. }
  3079. function creationData() {
  3080. return {
  3081. input: this._i,
  3082. format: this._f,
  3083. locale: this._locale,
  3084. isUTC: this._isUTC,
  3085. strict: this._strict
  3086. };
  3087. }
  3088. // FORMATTING
  3089. addFormatToken(0, ['gg', 2], 0, function () {
  3090. return this.weekYear() % 100;
  3091. });
  3092. addFormatToken(0, ['GG', 2], 0, function () {
  3093. return this.isoWeekYear() % 100;
  3094. });
  3095. function addWeekYearFormatToken (token, getter) {
  3096. addFormatToken(0, [token, token.length], 0, getter);
  3097. }
  3098. addWeekYearFormatToken('gggg', 'weekYear');
  3099. addWeekYearFormatToken('ggggg', 'weekYear');
  3100. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  3101. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  3102. // ALIASES
  3103. addUnitAlias('weekYear', 'gg');
  3104. addUnitAlias('isoWeekYear', 'GG');
  3105. // PRIORITY
  3106. addUnitPriority('weekYear', 1);
  3107. addUnitPriority('isoWeekYear', 1);
  3108. // PARSING
  3109. addRegexToken('G', matchSigned);
  3110. addRegexToken('g', matchSigned);
  3111. addRegexToken('GG', match1to2, match2);
  3112. addRegexToken('gg', match1to2, match2);
  3113. addRegexToken('GGGG', match1to4, match4);
  3114. addRegexToken('gggg', match1to4, match4);
  3115. addRegexToken('GGGGG', match1to6, match6);
  3116. addRegexToken('ggggg', match1to6, match6);
  3117. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  3118. week[token.substr(0, 2)] = toInt(input);
  3119. });
  3120. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  3121. week[token] = hooks.parseTwoDigitYear(input);
  3122. });
  3123. // MOMENTS
  3124. function getSetWeekYear (input) {
  3125. return getSetWeekYearHelper.call(this,
  3126. input,
  3127. this.week(),
  3128. this.weekday(),
  3129. this.localeData()._week.dow,
  3130. this.localeData()._week.doy);
  3131. }
  3132. function getSetISOWeekYear (input) {
  3133. return getSetWeekYearHelper.call(this,
  3134. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  3135. }
  3136. function getISOWeeksInYear () {
  3137. return weeksInYear(this.year(), 1, 4);
  3138. }
  3139. function getWeeksInYear () {
  3140. var weekInfo = this.localeData()._week;
  3141. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  3142. }
  3143. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  3144. var weeksTarget;
  3145. if (input == null) {
  3146. return weekOfYear(this, dow, doy).year;
  3147. } else {
  3148. weeksTarget = weeksInYear(input, dow, doy);
  3149. if (week > weeksTarget) {
  3150. week = weeksTarget;
  3151. }
  3152. return setWeekAll.call(this, input, week, weekday, dow, doy);
  3153. }
  3154. }
  3155. function setWeekAll(weekYear, week, weekday, dow, doy) {
  3156. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  3157. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  3158. this.year(date.getUTCFullYear());
  3159. this.month(date.getUTCMonth());
  3160. this.date(date.getUTCDate());
  3161. return this;
  3162. }
  3163. // FORMATTING
  3164. addFormatToken('Q', 0, 'Qo', 'quarter');
  3165. // ALIASES
  3166. addUnitAlias('quarter', 'Q');
  3167. // PRIORITY
  3168. addUnitPriority('quarter', 7);
  3169. // PARSING
  3170. addRegexToken('Q', match1);
  3171. addParseToken('Q', function (input, array) {
  3172. array[MONTH] = (toInt(input) - 1) * 3;
  3173. });
  3174. // MOMENTS
  3175. function getSetQuarter (input) {
  3176. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  3177. }
  3178. // FORMATTING
  3179. addFormatToken('D', ['DD', 2], 'Do', 'date');
  3180. // ALIASES
  3181. addUnitAlias('date', 'D');
  3182. // PRIORITY
  3183. addUnitPriority('date', 9);
  3184. // PARSING
  3185. addRegexToken('D', match1to2);
  3186. addRegexToken('DD', match1to2, match2);
  3187. addRegexToken('Do', function (isStrict, locale) {
  3188. // TODO: Remove "ordinalParse" fallback in next major release.
  3189. return isStrict ?
  3190. (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
  3191. locale._dayOfMonthOrdinalParseLenient;
  3192. });
  3193. addParseToken(['D', 'DD'], DATE);
  3194. addParseToken('Do', function (input, array) {
  3195. array[DATE] = toInt(input.match(match1to2)[0]);
  3196. });
  3197. // MOMENTS
  3198. var getSetDayOfMonth = makeGetSet('Date', true);
  3199. // FORMATTING
  3200. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  3201. // ALIASES
  3202. addUnitAlias('dayOfYear', 'DDD');
  3203. // PRIORITY
  3204. addUnitPriority('dayOfYear', 4);
  3205. // PARSING
  3206. addRegexToken('DDD', match1to3);
  3207. addRegexToken('DDDD', match3);
  3208. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  3209. config._dayOfYear = toInt(input);
  3210. });
  3211. // HELPERS
  3212. // MOMENTS
  3213. function getSetDayOfYear (input) {
  3214. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  3215. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  3216. }
  3217. // FORMATTING
  3218. addFormatToken('m', ['mm', 2], 0, 'minute');
  3219. // ALIASES
  3220. addUnitAlias('minute', 'm');
  3221. // PRIORITY
  3222. addUnitPriority('minute', 14);
  3223. // PARSING
  3224. addRegexToken('m', match1to2);
  3225. addRegexToken('mm', match1to2, match2);
  3226. addParseToken(['m', 'mm'], MINUTE);
  3227. // MOMENTS
  3228. var getSetMinute = makeGetSet('Minutes', false);
  3229. // FORMATTING
  3230. addFormatToken('s', ['ss', 2], 0, 'second');
  3231. // ALIASES
  3232. addUnitAlias('second', 's');
  3233. // PRIORITY
  3234. addUnitPriority('second', 15);
  3235. // PARSING
  3236. addRegexToken('s', match1to2);
  3237. addRegexToken('ss', match1to2, match2);
  3238. addParseToken(['s', 'ss'], SECOND);
  3239. // MOMENTS
  3240. var getSetSecond = makeGetSet('Seconds', false);
  3241. // FORMATTING
  3242. addFormatToken('S', 0, 0, function () {
  3243. return ~~(this.millisecond() / 100);
  3244. });
  3245. addFormatToken(0, ['SS', 2], 0, function () {
  3246. return ~~(this.millisecond() / 10);
  3247. });
  3248. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  3249. addFormatToken(0, ['SSSS', 4], 0, function () {
  3250. return this.millisecond() * 10;
  3251. });
  3252. addFormatToken(0, ['SSSSS', 5], 0, function () {
  3253. return this.millisecond() * 100;
  3254. });
  3255. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  3256. return this.millisecond() * 1000;
  3257. });
  3258. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  3259. return this.millisecond() * 10000;
  3260. });
  3261. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  3262. return this.millisecond() * 100000;
  3263. });
  3264. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  3265. return this.millisecond() * 1000000;
  3266. });
  3267. // ALIASES
  3268. addUnitAlias('millisecond', 'ms');
  3269. // PRIORITY
  3270. addUnitPriority('millisecond', 16);
  3271. // PARSING
  3272. addRegexToken('S', match1to3, match1);
  3273. addRegexToken('SS', match1to3, match2);
  3274. addRegexToken('SSS', match1to3, match3);
  3275. var token;
  3276. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  3277. addRegexToken(token, matchUnsigned);
  3278. }
  3279. function parseMs(input, array) {
  3280. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  3281. }
  3282. for (token = 'S'; token.length <= 9; token += 'S') {
  3283. addParseToken(token, parseMs);
  3284. }
  3285. // MOMENTS
  3286. var getSetMillisecond = makeGetSet('Milliseconds', false);
  3287. // FORMATTING
  3288. addFormatToken('z', 0, 0, 'zoneAbbr');
  3289. addFormatToken('zz', 0, 0, 'zoneName');
  3290. // MOMENTS
  3291. function getZoneAbbr () {
  3292. return this._isUTC ? 'UTC' : '';
  3293. }
  3294. function getZoneName () {
  3295. return this._isUTC ? 'Coordinated Universal Time' : '';
  3296. }
  3297. var proto = Moment.prototype;
  3298. proto.add = add;
  3299. proto.calendar = calendar$1;
  3300. proto.clone = clone;
  3301. proto.diff = diff;
  3302. proto.endOf = endOf;
  3303. proto.format = format;
  3304. proto.from = from;
  3305. proto.fromNow = fromNow;
  3306. proto.to = to;
  3307. proto.toNow = toNow;
  3308. proto.get = stringGet;
  3309. proto.invalidAt = invalidAt;
  3310. proto.isAfter = isAfter;
  3311. proto.isBefore = isBefore;
  3312. proto.isBetween = isBetween;
  3313. proto.isSame = isSame;
  3314. proto.isSameOrAfter = isSameOrAfter;
  3315. proto.isSameOrBefore = isSameOrBefore;
  3316. proto.isValid = isValid$2;
  3317. proto.lang = lang;
  3318. proto.locale = locale;
  3319. proto.localeData = localeData;
  3320. proto.max = prototypeMax;
  3321. proto.min = prototypeMin;
  3322. proto.parsingFlags = parsingFlags;
  3323. proto.set = stringSet;
  3324. proto.startOf = startOf;
  3325. proto.subtract = subtract;
  3326. proto.toArray = toArray;
  3327. proto.toObject = toObject;
  3328. proto.toDate = toDate;
  3329. proto.toISOString = toISOString;
  3330. proto.inspect = inspect;
  3331. proto.toJSON = toJSON;
  3332. proto.toString = toString;
  3333. proto.unix = unix;
  3334. proto.valueOf = valueOf;
  3335. proto.creationData = creationData;
  3336. proto.year = getSetYear;
  3337. proto.isLeapYear = getIsLeapYear;
  3338. proto.weekYear = getSetWeekYear;
  3339. proto.isoWeekYear = getSetISOWeekYear;
  3340. proto.quarter = proto.quarters = getSetQuarter;
  3341. proto.month = getSetMonth;
  3342. proto.daysInMonth = getDaysInMonth;
  3343. proto.week = proto.weeks = getSetWeek;
  3344. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  3345. proto.weeksInYear = getWeeksInYear;
  3346. proto.isoWeeksInYear = getISOWeeksInYear;
  3347. proto.date = getSetDayOfMonth;
  3348. proto.day = proto.days = getSetDayOfWeek;
  3349. proto.weekday = getSetLocaleDayOfWeek;
  3350. proto.isoWeekday = getSetISODayOfWeek;
  3351. proto.dayOfYear = getSetDayOfYear;
  3352. proto.hour = proto.hours = getSetHour;
  3353. proto.minute = proto.minutes = getSetMinute;
  3354. proto.second = proto.seconds = getSetSecond;
  3355. proto.millisecond = proto.milliseconds = getSetMillisecond;
  3356. proto.utcOffset = getSetOffset;
  3357. proto.utc = setOffsetToUTC;
  3358. proto.local = setOffsetToLocal;
  3359. proto.parseZone = setOffsetToParsedOffset;
  3360. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  3361. proto.isDST = isDaylightSavingTime;
  3362. proto.isLocal = isLocal;
  3363. proto.isUtcOffset = isUtcOffset;
  3364. proto.isUtc = isUtc;
  3365. proto.isUTC = isUtc;
  3366. proto.zoneAbbr = getZoneAbbr;
  3367. proto.zoneName = getZoneName;
  3368. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  3369. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  3370. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  3371. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  3372. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  3373. function createUnix (input) {
  3374. return createLocal(input * 1000);
  3375. }
  3376. function createInZone () {
  3377. return createLocal.apply(null, arguments).parseZone();
  3378. }
  3379. function preParsePostFormat (string) {
  3380. return string;
  3381. }
  3382. var proto$1 = Locale.prototype;
  3383. proto$1.calendar = calendar;
  3384. proto$1.longDateFormat = longDateFormat;
  3385. proto$1.invalidDate = invalidDate;
  3386. proto$1.ordinal = ordinal;
  3387. proto$1.preparse = preParsePostFormat;
  3388. proto$1.postformat = preParsePostFormat;
  3389. proto$1.relativeTime = relativeTime;
  3390. proto$1.pastFuture = pastFuture;
  3391. proto$1.set = set;
  3392. proto$1.months = localeMonths;
  3393. proto$1.monthsShort = localeMonthsShort;
  3394. proto$1.monthsParse = localeMonthsParse;
  3395. proto$1.monthsRegex = monthsRegex;
  3396. proto$1.monthsShortRegex = monthsShortRegex;
  3397. proto$1.week = localeWeek;
  3398. proto$1.firstDayOfYear = localeFirstDayOfYear;
  3399. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  3400. proto$1.weekdays = localeWeekdays;
  3401. proto$1.weekdaysMin = localeWeekdaysMin;
  3402. proto$1.weekdaysShort = localeWeekdaysShort;
  3403. proto$1.weekdaysParse = localeWeekdaysParse;
  3404. proto$1.weekdaysRegex = weekdaysRegex;
  3405. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  3406. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  3407. proto$1.isPM = localeIsPM;
  3408. proto$1.meridiem = localeMeridiem;
  3409. function get$1 (format, index, field, setter) {
  3410. var locale = getLocale();
  3411. var utc = createUTC().set(setter, index);
  3412. return locale[field](utc, format);
  3413. }
  3414. function listMonthsImpl (format, index, field) {
  3415. if (isNumber(format)) {
  3416. index = format;
  3417. format = undefined;
  3418. }
  3419. format = format || '';
  3420. if (index != null) {
  3421. return get$1(format, index, field, 'month');
  3422. }
  3423. var i;
  3424. var out = [];
  3425. for (i = 0; i < 12; i++) {
  3426. out[i] = get$1(format, i, field, 'month');
  3427. }
  3428. return out;
  3429. }
  3430. // ()
  3431. // (5)
  3432. // (fmt, 5)
  3433. // (fmt)
  3434. // (true)
  3435. // (true, 5)
  3436. // (true, fmt, 5)
  3437. // (true, fmt)
  3438. function listWeekdaysImpl (localeSorted, format, index, field) {
  3439. if (typeof localeSorted === 'boolean') {
  3440. if (isNumber(format)) {
  3441. index = format;
  3442. format = undefined;
  3443. }
  3444. format = format || '';
  3445. } else {
  3446. format = localeSorted;
  3447. index = format;
  3448. localeSorted = false;
  3449. if (isNumber(format)) {
  3450. index = format;
  3451. format = undefined;
  3452. }
  3453. format = format || '';
  3454. }
  3455. var locale = getLocale(),
  3456. shift = localeSorted ? locale._week.dow : 0;
  3457. if (index != null) {
  3458. return get$1(format, (index + shift) % 7, field, 'day');
  3459. }
  3460. var i;
  3461. var out = [];
  3462. for (i = 0; i < 7; i++) {
  3463. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  3464. }
  3465. return out;
  3466. }
  3467. function listMonths (format, index) {
  3468. return listMonthsImpl(format, index, 'months');
  3469. }
  3470. function listMonthsShort (format, index) {
  3471. return listMonthsImpl(format, index, 'monthsShort');
  3472. }
  3473. function listWeekdays (localeSorted, format, index) {
  3474. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  3475. }
  3476. function listWeekdaysShort (localeSorted, format, index) {
  3477. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  3478. }
  3479. function listWeekdaysMin (localeSorted, format, index) {
  3480. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  3481. }
  3482. getSetGlobalLocale('en', {
  3483. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  3484. ordinal : function (number) {
  3485. var b = number % 10,
  3486. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  3487. (b === 1) ? 'st' :
  3488. (b === 2) ? 'nd' :
  3489. (b === 3) ? 'rd' : 'th';
  3490. return number + output;
  3491. }
  3492. });
  3493. // Side effect imports
  3494. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  3495. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  3496. var mathAbs = Math.abs;
  3497. function abs () {
  3498. var data = this._data;
  3499. this._milliseconds = mathAbs(this._milliseconds);
  3500. this._days = mathAbs(this._days);
  3501. this._months = mathAbs(this._months);
  3502. data.milliseconds = mathAbs(data.milliseconds);
  3503. data.seconds = mathAbs(data.seconds);
  3504. data.minutes = mathAbs(data.minutes);
  3505. data.hours = mathAbs(data.hours);
  3506. data.months = mathAbs(data.months);
  3507. data.years = mathAbs(data.years);
  3508. return this;
  3509. }
  3510. function addSubtract$1 (duration, input, value, direction) {
  3511. var other = createDuration(input, value);
  3512. duration._milliseconds += direction * other._milliseconds;
  3513. duration._days += direction * other._days;
  3514. duration._months += direction * other._months;
  3515. return duration._bubble();
  3516. }
  3517. // supports only 2.0-style add(1, 's') or add(duration)
  3518. function add$1 (input, value) {
  3519. return addSubtract$1(this, input, value, 1);
  3520. }
  3521. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  3522. function subtract$1 (input, value) {
  3523. return addSubtract$1(this, input, value, -1);
  3524. }
  3525. function absCeil (number) {
  3526. if (number < 0) {
  3527. return Math.floor(number);
  3528. } else {
  3529. return Math.ceil(number);
  3530. }
  3531. }
  3532. function bubble () {
  3533. var milliseconds = this._milliseconds;
  3534. var days = this._days;
  3535. var months = this._months;
  3536. var data = this._data;
  3537. var seconds, minutes, hours, years, monthsFromDays;
  3538. // if we have a mix of positive and negative values, bubble down first
  3539. // check: https://github.com/moment/moment/issues/2166
  3540. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  3541. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  3542. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  3543. days = 0;
  3544. months = 0;
  3545. }
  3546. // The following code bubbles up values, see the tests for
  3547. // examples of what that means.
  3548. data.milliseconds = milliseconds % 1000;
  3549. seconds = absFloor(milliseconds / 1000);
  3550. data.seconds = seconds % 60;
  3551. minutes = absFloor(seconds / 60);
  3552. data.minutes = minutes % 60;
  3553. hours = absFloor(minutes / 60);
  3554. data.hours = hours % 24;
  3555. days += absFloor(hours / 24);
  3556. // convert days to months
  3557. monthsFromDays = absFloor(daysToMonths(days));
  3558. months += monthsFromDays;
  3559. days -= absCeil(monthsToDays(monthsFromDays));
  3560. // 12 months -> 1 year
  3561. years = absFloor(months / 12);
  3562. months %= 12;
  3563. data.days = days;
  3564. data.months = months;
  3565. data.years = years;
  3566. return this;
  3567. }
  3568. function daysToMonths (days) {
  3569. // 400 years have 146097 days (taking into account leap year rules)
  3570. // 400 years have 12 months === 4800
  3571. return days * 4800 / 146097;
  3572. }
  3573. function monthsToDays (months) {
  3574. // the reverse of daysToMonths
  3575. return months * 146097 / 4800;
  3576. }
  3577. function as (units) {
  3578. if (!this.isValid()) {
  3579. return NaN;
  3580. }
  3581. var days;
  3582. var months;
  3583. var milliseconds = this._milliseconds;
  3584. units = normalizeUnits(units);
  3585. if (units === 'month' || units === 'quarter' || units === 'year') {
  3586. days = this._days + milliseconds / 864e5;
  3587. months = this._months + daysToMonths(days);
  3588. switch (units) {
  3589. case 'month': return months;
  3590. case 'quarter': return months / 3;
  3591. case 'year': return months / 12;
  3592. }
  3593. } else {
  3594. // handle milliseconds separately because of floating point math errors (issue #1867)
  3595. days = this._days + Math.round(monthsToDays(this._months));
  3596. switch (units) {
  3597. case 'week' : return days / 7 + milliseconds / 6048e5;
  3598. case 'day' : return days + milliseconds / 864e5;
  3599. case 'hour' : return days * 24 + milliseconds / 36e5;
  3600. case 'minute' : return days * 1440 + milliseconds / 6e4;
  3601. case 'second' : return days * 86400 + milliseconds / 1000;
  3602. // Math.floor prevents floating point math errors here
  3603. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  3604. default: throw new Error('Unknown unit ' + units);
  3605. }
  3606. }
  3607. }
  3608. // TODO: Use this.as('ms')?
  3609. function valueOf$1 () {
  3610. if (!this.isValid()) {
  3611. return NaN;
  3612. }
  3613. return (
  3614. this._milliseconds +
  3615. this._days * 864e5 +
  3616. (this._months % 12) * 2592e6 +
  3617. toInt(this._months / 12) * 31536e6
  3618. );
  3619. }
  3620. function makeAs (alias) {
  3621. return function () {
  3622. return this.as(alias);
  3623. };
  3624. }
  3625. var asMilliseconds = makeAs('ms');
  3626. var asSeconds = makeAs('s');
  3627. var asMinutes = makeAs('m');
  3628. var asHours = makeAs('h');
  3629. var asDays = makeAs('d');
  3630. var asWeeks = makeAs('w');
  3631. var asMonths = makeAs('M');
  3632. var asQuarters = makeAs('Q');
  3633. var asYears = makeAs('y');
  3634. function clone$1 () {
  3635. return createDuration(this);
  3636. }
  3637. function get$2 (units) {
  3638. units = normalizeUnits(units);
  3639. return this.isValid() ? this[units + 's']() : NaN;
  3640. }
  3641. function makeGetter(name) {
  3642. return function () {
  3643. return this.isValid() ? this._data[name] : NaN;
  3644. };
  3645. }
  3646. var milliseconds = makeGetter('milliseconds');
  3647. var seconds = makeGetter('seconds');
  3648. var minutes = makeGetter('minutes');
  3649. var hours = makeGetter('hours');
  3650. var days = makeGetter('days');
  3651. var months = makeGetter('months');
  3652. var years = makeGetter('years');
  3653. function weeks () {
  3654. return absFloor(this.days() / 7);
  3655. }
  3656. var round = Math.round;
  3657. var thresholds = {
  3658. ss: 44, // a few seconds to seconds
  3659. s : 45, // seconds to minute
  3660. m : 45, // minutes to hour
  3661. h : 22, // hours to day
  3662. d : 26, // days to month
  3663. M : 11 // months to year
  3664. };
  3665. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  3666. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  3667. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  3668. }
  3669. function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
  3670. var duration = createDuration(posNegDuration).abs();
  3671. var seconds = round(duration.as('s'));
  3672. var minutes = round(duration.as('m'));
  3673. var hours = round(duration.as('h'));
  3674. var days = round(duration.as('d'));
  3675. var months = round(duration.as('M'));
  3676. var years = round(duration.as('y'));
  3677. var a = seconds <= thresholds.ss && ['s', seconds] ||
  3678. seconds < thresholds.s && ['ss', seconds] ||
  3679. minutes <= 1 && ['m'] ||
  3680. minutes < thresholds.m && ['mm', minutes] ||
  3681. hours <= 1 && ['h'] ||
  3682. hours < thresholds.h && ['hh', hours] ||
  3683. days <= 1 && ['d'] ||
  3684. days < thresholds.d && ['dd', days] ||
  3685. months <= 1 && ['M'] ||
  3686. months < thresholds.M && ['MM', months] ||
  3687. years <= 1 && ['y'] || ['yy', years];
  3688. a[2] = withoutSuffix;
  3689. a[3] = +posNegDuration > 0;
  3690. a[4] = locale;
  3691. return substituteTimeAgo.apply(null, a);
  3692. }
  3693. // This function allows you to set the rounding function for relative time strings
  3694. function getSetRelativeTimeRounding (roundingFunction) {
  3695. if (roundingFunction === undefined) {
  3696. return round;
  3697. }
  3698. if (typeof(roundingFunction) === 'function') {
  3699. round = roundingFunction;
  3700. return true;
  3701. }
  3702. return false;
  3703. }
  3704. // This function allows you to set a threshold for relative time strings
  3705. function getSetRelativeTimeThreshold (threshold, limit) {
  3706. if (thresholds[threshold] === undefined) {
  3707. return false;
  3708. }
  3709. if (limit === undefined) {
  3710. return thresholds[threshold];
  3711. }
  3712. thresholds[threshold] = limit;
  3713. if (threshold === 's') {
  3714. thresholds.ss = limit - 1;
  3715. }
  3716. return true;
  3717. }
  3718. function humanize (withSuffix) {
  3719. if (!this.isValid()) {
  3720. return this.localeData().invalidDate();
  3721. }
  3722. var locale = this.localeData();
  3723. var output = relativeTime$1(this, !withSuffix, locale);
  3724. if (withSuffix) {
  3725. output = locale.pastFuture(+this, output);
  3726. }
  3727. return locale.postformat(output);
  3728. }
  3729. var abs$1 = Math.abs;
  3730. function sign(x) {
  3731. return ((x > 0) - (x < 0)) || +x;
  3732. }
  3733. function toISOString$1() {
  3734. // for ISO strings we do not use the normal bubbling rules:
  3735. // * milliseconds bubble up until they become hours
  3736. // * days do not bubble at all
  3737. // * months bubble up until they become years
  3738. // This is because there is no context-free conversion between hours and days
  3739. // (think of clock changes)
  3740. // and also not between days and months (28-31 days per month)
  3741. if (!this.isValid()) {
  3742. return this.localeData().invalidDate();
  3743. }
  3744. var seconds = abs$1(this._milliseconds) / 1000;
  3745. var days = abs$1(this._days);
  3746. var months = abs$1(this._months);
  3747. var minutes, hours, years;
  3748. // 3600 seconds -> 60 minutes -> 1 hour
  3749. minutes = absFloor(seconds / 60);
  3750. hours = absFloor(minutes / 60);
  3751. seconds %= 60;
  3752. minutes %= 60;
  3753. // 12 months -> 1 year
  3754. years = absFloor(months / 12);
  3755. months %= 12;
  3756. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  3757. var Y = years;
  3758. var M = months;
  3759. var D = days;
  3760. var h = hours;
  3761. var m = minutes;
  3762. var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  3763. var total = this.asSeconds();
  3764. if (!total) {
  3765. // this is the same as C#'s (Noda) and python (isodate)...
  3766. // but not other JS (goog.date)
  3767. return 'P0D';
  3768. }
  3769. var totalSign = total < 0 ? '-' : '';
  3770. var ymSign = sign(this._months) !== sign(total) ? '-' : '';
  3771. var daysSign = sign(this._days) !== sign(total) ? '-' : '';
  3772. var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  3773. return totalSign + 'P' +
  3774. (Y ? ymSign + Y + 'Y' : '') +
  3775. (M ? ymSign + M + 'M' : '') +
  3776. (D ? daysSign + D + 'D' : '') +
  3777. ((h || m || s) ? 'T' : '') +
  3778. (h ? hmsSign + h + 'H' : '') +
  3779. (m ? hmsSign + m + 'M' : '') +
  3780. (s ? hmsSign + s + 'S' : '');
  3781. }
  3782. var proto$2 = Duration.prototype;
  3783. proto$2.isValid = isValid$1;
  3784. proto$2.abs = abs;
  3785. proto$2.add = add$1;
  3786. proto$2.subtract = subtract$1;
  3787. proto$2.as = as;
  3788. proto$2.asMilliseconds = asMilliseconds;
  3789. proto$2.asSeconds = asSeconds;
  3790. proto$2.asMinutes = asMinutes;
  3791. proto$2.asHours = asHours;
  3792. proto$2.asDays = asDays;
  3793. proto$2.asWeeks = asWeeks;
  3794. proto$2.asMonths = asMonths;
  3795. proto$2.asQuarters = asQuarters;
  3796. proto$2.asYears = asYears;
  3797. proto$2.valueOf = valueOf$1;
  3798. proto$2._bubble = bubble;
  3799. proto$2.clone = clone$1;
  3800. proto$2.get = get$2;
  3801. proto$2.milliseconds = milliseconds;
  3802. proto$2.seconds = seconds;
  3803. proto$2.minutes = minutes;
  3804. proto$2.hours = hours;
  3805. proto$2.days = days;
  3806. proto$2.weeks = weeks;
  3807. proto$2.months = months;
  3808. proto$2.years = years;
  3809. proto$2.humanize = humanize;
  3810. proto$2.toISOString = toISOString$1;
  3811. proto$2.toString = toISOString$1;
  3812. proto$2.toJSON = toISOString$1;
  3813. proto$2.locale = locale;
  3814. proto$2.localeData = localeData;
  3815. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  3816. proto$2.lang = lang;
  3817. // Side effect imports
  3818. // FORMATTING
  3819. addFormatToken('X', 0, 0, 'unix');
  3820. addFormatToken('x', 0, 0, 'valueOf');
  3821. // PARSING
  3822. addRegexToken('x', matchSigned);
  3823. addRegexToken('X', matchTimestamp);
  3824. addParseToken('X', function (input, array, config) {
  3825. config._d = new Date(parseFloat(input, 10) * 1000);
  3826. });
  3827. addParseToken('x', function (input, array, config) {
  3828. config._d = new Date(toInt(input));
  3829. });
  3830. // Side effect imports
  3831. //! moment.js
  3832. hooks.version = '2.24.0';
  3833. setHookCallback(createLocal);
  3834. hooks.fn = proto;
  3835. hooks.min = min;
  3836. hooks.max = max;
  3837. hooks.now = now;
  3838. hooks.utc = createUTC;
  3839. hooks.unix = createUnix;
  3840. hooks.months = listMonths;
  3841. hooks.isDate = isDate;
  3842. hooks.locale = getSetGlobalLocale;
  3843. hooks.invalid = createInvalid;
  3844. hooks.duration = createDuration;
  3845. hooks.isMoment = isMoment;
  3846. hooks.weekdays = listWeekdays;
  3847. hooks.parseZone = createInZone;
  3848. hooks.localeData = getLocale;
  3849. hooks.isDuration = isDuration;
  3850. hooks.monthsShort = listMonthsShort;
  3851. hooks.weekdaysMin = listWeekdaysMin;
  3852. hooks.defineLocale = defineLocale;
  3853. hooks.updateLocale = updateLocale;
  3854. hooks.locales = listLocales;
  3855. hooks.weekdaysShort = listWeekdaysShort;
  3856. hooks.normalizeUnits = normalizeUnits;
  3857. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  3858. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  3859. hooks.calendarFormat = getCalendarFormat;
  3860. hooks.prototype = proto;
  3861. // currently HTML5 input type only supports 24-hour formats
  3862. hooks.HTML5_FMT = {
  3863. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  3864. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  3865. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  3866. DATE: 'YYYY-MM-DD', // <input type="date" />
  3867. TIME: 'HH:mm', // <input type="time" />
  3868. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  3869. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  3870. WEEK: 'GGGG-[W]WW', // <input type="week" />
  3871. MONTH: 'YYYY-MM' // <input type="month" />
  3872. };
  3873. //! moment.js locale configuration
  3874. hooks.defineLocale('af', {
  3875. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  3876. monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  3877. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  3878. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  3879. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  3880. meridiemParse: /vm|nm/i,
  3881. isPM : function (input) {
  3882. return /^nm$/i.test(input);
  3883. },
  3884. meridiem : function (hours, minutes, isLower) {
  3885. if (hours < 12) {
  3886. return isLower ? 'vm' : 'VM';
  3887. } else {
  3888. return isLower ? 'nm' : 'NM';
  3889. }
  3890. },
  3891. longDateFormat : {
  3892. LT : 'HH:mm',
  3893. LTS : 'HH:mm:ss',
  3894. L : 'DD/MM/YYYY',
  3895. LL : 'D MMMM YYYY',
  3896. LLL : 'D MMMM YYYY HH:mm',
  3897. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3898. },
  3899. calendar : {
  3900. sameDay : '[Vandag om] LT',
  3901. nextDay : '[Môre om] LT',
  3902. nextWeek : 'dddd [om] LT',
  3903. lastDay : '[Gister om] LT',
  3904. lastWeek : '[Laas] dddd [om] LT',
  3905. sameElse : 'L'
  3906. },
  3907. relativeTime : {
  3908. future : 'oor %s',
  3909. past : '%s gelede',
  3910. s : '\'n paar sekondes',
  3911. ss : '%d sekondes',
  3912. m : '\'n minuut',
  3913. mm : '%d minute',
  3914. h : '\'n uur',
  3915. hh : '%d ure',
  3916. d : '\'n dag',
  3917. dd : '%d dae',
  3918. M : '\'n maand',
  3919. MM : '%d maande',
  3920. y : '\'n jaar',
  3921. yy : '%d jaar'
  3922. },
  3923. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  3924. ordinal : function (number) {
  3925. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  3926. },
  3927. week : {
  3928. dow : 1, // Maandag is die eerste dag van die week.
  3929. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  3930. }
  3931. });
  3932. //! moment.js locale configuration
  3933. hooks.defineLocale('ar-dz', {
  3934. months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3935. monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3936. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3937. weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3938. weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
  3939. weekdaysParseExact : true,
  3940. longDateFormat : {
  3941. LT : 'HH:mm',
  3942. LTS : 'HH:mm:ss',
  3943. L : 'DD/MM/YYYY',
  3944. LL : 'D MMMM YYYY',
  3945. LLL : 'D MMMM YYYY HH:mm',
  3946. LLLL : 'dddd D MMMM YYYY HH:mm'
  3947. },
  3948. calendar : {
  3949. sameDay: '[اليوم على الساعة] LT',
  3950. nextDay: '[غدا على الساعة] LT',
  3951. nextWeek: 'dddd [على الساعة] LT',
  3952. lastDay: '[أمس على الساعة] LT',
  3953. lastWeek: 'dddd [على الساعة] LT',
  3954. sameElse: 'L'
  3955. },
  3956. relativeTime : {
  3957. future : 'في %s',
  3958. past : 'منذ %s',
  3959. s : 'ثوان',
  3960. ss : '%d ثانية',
  3961. m : 'دقيقة',
  3962. mm : '%d دقائق',
  3963. h : 'ساعة',
  3964. hh : '%d ساعات',
  3965. d : 'يوم',
  3966. dd : '%d أيام',
  3967. M : 'شهر',
  3968. MM : '%d أشهر',
  3969. y : 'سنة',
  3970. yy : '%d سنوات'
  3971. },
  3972. week : {
  3973. dow : 0, // Sunday is the first day of the week.
  3974. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3975. }
  3976. });
  3977. //! moment.js locale configuration
  3978. hooks.defineLocale('ar-kw', {
  3979. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3980. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3981. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3982. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3983. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3984. weekdaysParseExact : true,
  3985. longDateFormat : {
  3986. LT : 'HH:mm',
  3987. LTS : 'HH:mm:ss',
  3988. L : 'DD/MM/YYYY',
  3989. LL : 'D MMMM YYYY',
  3990. LLL : 'D MMMM YYYY HH:mm',
  3991. LLLL : 'dddd D MMMM YYYY HH:mm'
  3992. },
  3993. calendar : {
  3994. sameDay: '[اليوم على الساعة] LT',
  3995. nextDay: '[غدا على الساعة] LT',
  3996. nextWeek: 'dddd [على الساعة] LT',
  3997. lastDay: '[أمس على الساعة] LT',
  3998. lastWeek: 'dddd [على الساعة] LT',
  3999. sameElse: 'L'
  4000. },
  4001. relativeTime : {
  4002. future : 'في %s',
  4003. past : 'منذ %s',
  4004. s : 'ثوان',
  4005. ss : '%d ثانية',
  4006. m : 'دقيقة',
  4007. mm : '%d دقائق',
  4008. h : 'ساعة',
  4009. hh : '%d ساعات',
  4010. d : 'يوم',
  4011. dd : '%d أيام',
  4012. M : 'شهر',
  4013. MM : '%d أشهر',
  4014. y : 'سنة',
  4015. yy : '%d سنوات'
  4016. },
  4017. week : {
  4018. dow : 0, // Sunday is the first day of the week.
  4019. doy : 12 // The week that contains Jan 12th is the first week of the year.
  4020. }
  4021. });
  4022. //! moment.js locale configuration
  4023. var symbolMap = {
  4024. '1': '1',
  4025. '2': '2',
  4026. '3': '3',
  4027. '4': '4',
  4028. '5': '5',
  4029. '6': '6',
  4030. '7': '7',
  4031. '8': '8',
  4032. '9': '9',
  4033. '0': '0'
  4034. }, pluralForm = function (n) {
  4035. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  4036. }, plurals = {
  4037. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  4038. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  4039. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  4040. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  4041. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  4042. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  4043. }, pluralize = function (u) {
  4044. return function (number, withoutSuffix, string, isFuture) {
  4045. var f = pluralForm(number),
  4046. str = plurals[u][pluralForm(number)];
  4047. if (f === 2) {
  4048. str = str[withoutSuffix ? 0 : 1];
  4049. }
  4050. return str.replace(/%d/i, number);
  4051. };
  4052. }, months$1 = [
  4053. 'يناير',
  4054. 'فبراير',
  4055. 'مارس',
  4056. 'أبريل',
  4057. 'مايو',
  4058. 'يونيو',
  4059. 'يوليو',
  4060. 'أغسطس',
  4061. 'سبتمبر',
  4062. 'أكتوبر',
  4063. 'نوفمبر',
  4064. 'ديسمبر'
  4065. ];
  4066. hooks.defineLocale('ar-ly', {
  4067. months : months$1,
  4068. monthsShort : months$1,
  4069. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4070. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4071. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4072. weekdaysParseExact : true,
  4073. longDateFormat : {
  4074. LT : 'HH:mm',
  4075. LTS : 'HH:mm:ss',
  4076. L : 'D/\u200FM/\u200FYYYY',
  4077. LL : 'D MMMM YYYY',
  4078. LLL : 'D MMMM YYYY HH:mm',
  4079. LLLL : 'dddd D MMMM YYYY HH:mm'
  4080. },
  4081. meridiemParse: /ص|م/,
  4082. isPM : function (input) {
  4083. return 'م' === input;
  4084. },
  4085. meridiem : function (hour, minute, isLower) {
  4086. if (hour < 12) {
  4087. return 'ص';
  4088. } else {
  4089. return 'م';
  4090. }
  4091. },
  4092. calendar : {
  4093. sameDay: '[اليوم عند الساعة] LT',
  4094. nextDay: '[غدًا عند الساعة] LT',
  4095. nextWeek: 'dddd [عند الساعة] LT',
  4096. lastDay: '[أمس عند الساعة] LT',
  4097. lastWeek: 'dddd [عند الساعة] LT',
  4098. sameElse: 'L'
  4099. },
  4100. relativeTime : {
  4101. future : 'بعد %s',
  4102. past : 'منذ %s',
  4103. s : pluralize('s'),
  4104. ss : pluralize('s'),
  4105. m : pluralize('m'),
  4106. mm : pluralize('m'),
  4107. h : pluralize('h'),
  4108. hh : pluralize('h'),
  4109. d : pluralize('d'),
  4110. dd : pluralize('d'),
  4111. M : pluralize('M'),
  4112. MM : pluralize('M'),
  4113. y : pluralize('y'),
  4114. yy : pluralize('y')
  4115. },
  4116. preparse: function (string) {
  4117. return string.replace(/،/g, ',');
  4118. },
  4119. postformat: function (string) {
  4120. return string.replace(/\d/g, function (match) {
  4121. return symbolMap[match];
  4122. }).replace(/,/g, '،');
  4123. },
  4124. week : {
  4125. dow : 6, // Saturday is the first day of the week.
  4126. doy : 12 // The week that contains Jan 12th is the first week of the year.
  4127. }
  4128. });
  4129. //! moment.js locale configuration
  4130. hooks.defineLocale('ar-ma', {
  4131. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4132. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4133. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4134. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  4135. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4136. weekdaysParseExact : true,
  4137. longDateFormat : {
  4138. LT : 'HH:mm',
  4139. LTS : 'HH:mm:ss',
  4140. L : 'DD/MM/YYYY',
  4141. LL : 'D MMMM YYYY',
  4142. LLL : 'D MMMM YYYY HH:mm',
  4143. LLLL : 'dddd D MMMM YYYY HH:mm'
  4144. },
  4145. calendar : {
  4146. sameDay: '[اليوم على الساعة] LT',
  4147. nextDay: '[غدا على الساعة] LT',
  4148. nextWeek: 'dddd [على الساعة] LT',
  4149. lastDay: '[أمس على الساعة] LT',
  4150. lastWeek: 'dddd [على الساعة] LT',
  4151. sameElse: 'L'
  4152. },
  4153. relativeTime : {
  4154. future : 'في %s',
  4155. past : 'منذ %s',
  4156. s : 'ثوان',
  4157. ss : '%d ثانية',
  4158. m : 'دقيقة',
  4159. mm : '%d دقائق',
  4160. h : 'ساعة',
  4161. hh : '%d ساعات',
  4162. d : 'يوم',
  4163. dd : '%d أيام',
  4164. M : 'شهر',
  4165. MM : '%d أشهر',
  4166. y : 'سنة',
  4167. yy : '%d سنوات'
  4168. },
  4169. week : {
  4170. dow : 6, // Saturday is the first day of the week.
  4171. doy : 12 // The week that contains Jan 12th is the first week of the year.
  4172. }
  4173. });
  4174. //! moment.js locale configuration
  4175. var symbolMap$1 = {
  4176. '1': '١',
  4177. '2': '٢',
  4178. '3': '٣',
  4179. '4': '٤',
  4180. '5': '٥',
  4181. '6': '٦',
  4182. '7': '٧',
  4183. '8': '٨',
  4184. '9': '٩',
  4185. '0': '٠'
  4186. }, numberMap = {
  4187. '١': '1',
  4188. '٢': '2',
  4189. '٣': '3',
  4190. '٤': '4',
  4191. '٥': '5',
  4192. '٦': '6',
  4193. '٧': '7',
  4194. '٨': '8',
  4195. '٩': '9',
  4196. '٠': '0'
  4197. };
  4198. hooks.defineLocale('ar-sa', {
  4199. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4200. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4201. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4202. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4203. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4204. weekdaysParseExact : true,
  4205. longDateFormat : {
  4206. LT : 'HH:mm',
  4207. LTS : 'HH:mm:ss',
  4208. L : 'DD/MM/YYYY',
  4209. LL : 'D MMMM YYYY',
  4210. LLL : 'D MMMM YYYY HH:mm',
  4211. LLLL : 'dddd D MMMM YYYY HH:mm'
  4212. },
  4213. meridiemParse: /ص|م/,
  4214. isPM : function (input) {
  4215. return 'م' === input;
  4216. },
  4217. meridiem : function (hour, minute, isLower) {
  4218. if (hour < 12) {
  4219. return 'ص';
  4220. } else {
  4221. return 'م';
  4222. }
  4223. },
  4224. calendar : {
  4225. sameDay: '[اليوم على الساعة] LT',
  4226. nextDay: '[غدا على الساعة] LT',
  4227. nextWeek: 'dddd [على الساعة] LT',
  4228. lastDay: '[أمس على الساعة] LT',
  4229. lastWeek: 'dddd [على الساعة] LT',
  4230. sameElse: 'L'
  4231. },
  4232. relativeTime : {
  4233. future : 'في %s',
  4234. past : 'منذ %s',
  4235. s : 'ثوان',
  4236. ss : '%d ثانية',
  4237. m : 'دقيقة',
  4238. mm : '%d دقائق',
  4239. h : 'ساعة',
  4240. hh : '%d ساعات',
  4241. d : 'يوم',
  4242. dd : '%d أيام',
  4243. M : 'شهر',
  4244. MM : '%d أشهر',
  4245. y : 'سنة',
  4246. yy : '%d سنوات'
  4247. },
  4248. preparse: function (string) {
  4249. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4250. return numberMap[match];
  4251. }).replace(/،/g, ',');
  4252. },
  4253. postformat: function (string) {
  4254. return string.replace(/\d/g, function (match) {
  4255. return symbolMap$1[match];
  4256. }).replace(/,/g, '،');
  4257. },
  4258. week : {
  4259. dow : 0, // Sunday is the first day of the week.
  4260. doy : 6 // The week that contains Jan 6th is the first week of the year.
  4261. }
  4262. });
  4263. //! moment.js locale configuration
  4264. hooks.defineLocale('ar-tn', {
  4265. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4266. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4267. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4268. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4269. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4270. weekdaysParseExact : true,
  4271. longDateFormat: {
  4272. LT: 'HH:mm',
  4273. LTS: 'HH:mm:ss',
  4274. L: 'DD/MM/YYYY',
  4275. LL: 'D MMMM YYYY',
  4276. LLL: 'D MMMM YYYY HH:mm',
  4277. LLLL: 'dddd D MMMM YYYY HH:mm'
  4278. },
  4279. calendar: {
  4280. sameDay: '[اليوم على الساعة] LT',
  4281. nextDay: '[غدا على الساعة] LT',
  4282. nextWeek: 'dddd [على الساعة] LT',
  4283. lastDay: '[أمس على الساعة] LT',
  4284. lastWeek: 'dddd [على الساعة] LT',
  4285. sameElse: 'L'
  4286. },
  4287. relativeTime: {
  4288. future: 'في %s',
  4289. past: 'منذ %s',
  4290. s: 'ثوان',
  4291. ss : '%d ثانية',
  4292. m: 'دقيقة',
  4293. mm: '%d دقائق',
  4294. h: 'ساعة',
  4295. hh: '%d ساعات',
  4296. d: 'يوم',
  4297. dd: '%d أيام',
  4298. M: 'شهر',
  4299. MM: '%d أشهر',
  4300. y: 'سنة',
  4301. yy: '%d سنوات'
  4302. },
  4303. week: {
  4304. dow: 1, // Monday is the first day of the week.
  4305. doy: 4 // The week that contains Jan 4th is the first week of the year.
  4306. }
  4307. });
  4308. //! moment.js locale configuration
  4309. var symbolMap$2 = {
  4310. '1': '١',
  4311. '2': '٢',
  4312. '3': '٣',
  4313. '4': '٤',
  4314. '5': '٥',
  4315. '6': '٦',
  4316. '7': '٧',
  4317. '8': '٨',
  4318. '9': '٩',
  4319. '0': '٠'
  4320. }, numberMap$1 = {
  4321. '١': '1',
  4322. '٢': '2',
  4323. '٣': '3',
  4324. '٤': '4',
  4325. '٥': '5',
  4326. '٦': '6',
  4327. '٧': '7',
  4328. '٨': '8',
  4329. '٩': '9',
  4330. '٠': '0'
  4331. }, pluralForm$1 = function (n) {
  4332. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  4333. }, plurals$1 = {
  4334. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  4335. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  4336. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  4337. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  4338. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  4339. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  4340. }, pluralize$1 = function (u) {
  4341. return function (number, withoutSuffix, string, isFuture) {
  4342. var f = pluralForm$1(number),
  4343. str = plurals$1[u][pluralForm$1(number)];
  4344. if (f === 2) {
  4345. str = str[withoutSuffix ? 0 : 1];
  4346. }
  4347. return str.replace(/%d/i, number);
  4348. };
  4349. }, months$2 = [
  4350. 'يناير',
  4351. 'فبراير',
  4352. 'مارس',
  4353. 'أبريل',
  4354. 'مايو',
  4355. 'يونيو',
  4356. 'يوليو',
  4357. 'أغسطس',
  4358. 'سبتمبر',
  4359. 'أكتوبر',
  4360. 'نوفمبر',
  4361. 'ديسمبر'
  4362. ];
  4363. hooks.defineLocale('ar', {
  4364. months : months$2,
  4365. monthsShort : months$2,
  4366. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4367. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4368. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4369. weekdaysParseExact : true,
  4370. longDateFormat : {
  4371. LT : 'HH:mm',
  4372. LTS : 'HH:mm:ss',
  4373. L : 'D/\u200FM/\u200FYYYY',
  4374. LL : 'D MMMM YYYY',
  4375. LLL : 'D MMMM YYYY HH:mm',
  4376. LLLL : 'dddd D MMMM YYYY HH:mm'
  4377. },
  4378. meridiemParse: /ص|م/,
  4379. isPM : function (input) {
  4380. return 'م' === input;
  4381. },
  4382. meridiem : function (hour, minute, isLower) {
  4383. if (hour < 12) {
  4384. return 'ص';
  4385. } else {
  4386. return 'م';
  4387. }
  4388. },
  4389. calendar : {
  4390. sameDay: '[اليوم عند الساعة] LT',
  4391. nextDay: '[غدًا عند الساعة] LT',
  4392. nextWeek: 'dddd [عند الساعة] LT',
  4393. lastDay: '[أمس عند الساعة] LT',
  4394. lastWeek: 'dddd [عند الساعة] LT',
  4395. sameElse: 'L'
  4396. },
  4397. relativeTime : {
  4398. future : 'بعد %s',
  4399. past : 'منذ %s',
  4400. s : pluralize$1('s'),
  4401. ss : pluralize$1('s'),
  4402. m : pluralize$1('m'),
  4403. mm : pluralize$1('m'),
  4404. h : pluralize$1('h'),
  4405. hh : pluralize$1('h'),
  4406. d : pluralize$1('d'),
  4407. dd : pluralize$1('d'),
  4408. M : pluralize$1('M'),
  4409. MM : pluralize$1('M'),
  4410. y : pluralize$1('y'),
  4411. yy : pluralize$1('y')
  4412. },
  4413. preparse: function (string) {
  4414. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4415. return numberMap$1[match];
  4416. }).replace(/،/g, ',');
  4417. },
  4418. postformat: function (string) {
  4419. return string.replace(/\d/g, function (match) {
  4420. return symbolMap$2[match];
  4421. }).replace(/,/g, '،');
  4422. },
  4423. week : {
  4424. dow : 6, // Saturday is the first day of the week.
  4425. doy : 12 // The week that contains Jan 12th is the first week of the year.
  4426. }
  4427. });
  4428. //! moment.js locale configuration
  4429. var suffixes = {
  4430. 1: '-inci',
  4431. 5: '-inci',
  4432. 8: '-inci',
  4433. 70: '-inci',
  4434. 80: '-inci',
  4435. 2: '-nci',
  4436. 7: '-nci',
  4437. 20: '-nci',
  4438. 50: '-nci',
  4439. 3: '-üncü',
  4440. 4: '-üncü',
  4441. 100: '-üncü',
  4442. 6: '-ncı',
  4443. 9: '-uncu',
  4444. 10: '-uncu',
  4445. 30: '-uncu',
  4446. 60: '-ıncı',
  4447. 90: '-ıncı'
  4448. };
  4449. hooks.defineLocale('az', {
  4450. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  4451. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  4452. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  4453. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  4454. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  4455. weekdaysParseExact : true,
  4456. longDateFormat : {
  4457. LT : 'HH:mm',
  4458. LTS : 'HH:mm:ss',
  4459. L : 'DD.MM.YYYY',
  4460. LL : 'D MMMM YYYY',
  4461. LLL : 'D MMMM YYYY HH:mm',
  4462. LLLL : 'dddd, D MMMM YYYY HH:mm'
  4463. },
  4464. calendar : {
  4465. sameDay : '[bugün saat] LT',
  4466. nextDay : '[sabah saat] LT',
  4467. nextWeek : '[gələn həftə] dddd [saat] LT',
  4468. lastDay : '[dünən] LT',
  4469. lastWeek : '[keçən həftə] dddd [saat] LT',
  4470. sameElse : 'L'
  4471. },
  4472. relativeTime : {
  4473. future : '%s sonra',
  4474. past : '%s əvvəl',
  4475. s : 'birneçə saniyə',
  4476. ss : '%d saniyə',
  4477. m : 'bir dəqiqə',
  4478. mm : '%d dəqiqə',
  4479. h : 'bir saat',
  4480. hh : '%d saat',
  4481. d : 'bir gün',
  4482. dd : '%d gün',
  4483. M : 'bir ay',
  4484. MM : '%d ay',
  4485. y : 'bir il',
  4486. yy : '%d il'
  4487. },
  4488. meridiemParse: /gecə|səhər|gündüz|axşam/,
  4489. isPM : function (input) {
  4490. return /^(gündüz|axşam)$/.test(input);
  4491. },
  4492. meridiem : function (hour, minute, isLower) {
  4493. if (hour < 4) {
  4494. return 'gecə';
  4495. } else if (hour < 12) {
  4496. return 'səhər';
  4497. } else if (hour < 17) {
  4498. return 'gündüz';
  4499. } else {
  4500. return 'axşam';
  4501. }
  4502. },
  4503. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  4504. ordinal : function (number) {
  4505. if (number === 0) { // special case for zero
  4506. return number + '-ıncı';
  4507. }
  4508. var a = number % 10,
  4509. b = number % 100 - a,
  4510. c = number >= 100 ? 100 : null;
  4511. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  4512. },
  4513. week : {
  4514. dow : 1, // Monday is the first day of the week.
  4515. doy : 7 // The week that contains Jan 7th is the first week of the year.
  4516. }
  4517. });
  4518. //! moment.js locale configuration
  4519. function plural(word, num) {
  4520. var forms = word.split('_');
  4521. 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]);
  4522. }
  4523. function relativeTimeWithPlural(number, withoutSuffix, key) {
  4524. var format = {
  4525. 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  4526. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  4527. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  4528. 'dd': 'дзень_дні_дзён',
  4529. 'MM': 'месяц_месяцы_месяцаў',
  4530. 'yy': 'год_гады_гадоў'
  4531. };
  4532. if (key === 'm') {
  4533. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  4534. }
  4535. else if (key === 'h') {
  4536. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  4537. }
  4538. else {
  4539. return number + ' ' + plural(format[key], +number);
  4540. }
  4541. }
  4542. hooks.defineLocale('be', {
  4543. months : {
  4544. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  4545. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  4546. },
  4547. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  4548. weekdays : {
  4549. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  4550. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  4551. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
  4552. },
  4553. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4554. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4555. longDateFormat : {
  4556. LT : 'HH:mm',
  4557. LTS : 'HH:mm:ss',
  4558. L : 'DD.MM.YYYY',
  4559. LL : 'D MMMM YYYY г.',
  4560. LLL : 'D MMMM YYYY г., HH:mm',
  4561. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  4562. },
  4563. calendar : {
  4564. sameDay: '[Сёння ў] LT',
  4565. nextDay: '[Заўтра ў] LT',
  4566. lastDay: '[Учора ў] LT',
  4567. nextWeek: function () {
  4568. return '[У] dddd [ў] LT';
  4569. },
  4570. lastWeek: function () {
  4571. switch (this.day()) {
  4572. case 0:
  4573. case 3:
  4574. case 5:
  4575. case 6:
  4576. return '[У мінулую] dddd [ў] LT';
  4577. case 1:
  4578. case 2:
  4579. case 4:
  4580. return '[У мінулы] dddd [ў] LT';
  4581. }
  4582. },
  4583. sameElse: 'L'
  4584. },
  4585. relativeTime : {
  4586. future : 'праз %s',
  4587. past : '%s таму',
  4588. s : 'некалькі секунд',
  4589. m : relativeTimeWithPlural,
  4590. mm : relativeTimeWithPlural,
  4591. h : relativeTimeWithPlural,
  4592. hh : relativeTimeWithPlural,
  4593. d : 'дзень',
  4594. dd : relativeTimeWithPlural,
  4595. M : 'месяц',
  4596. MM : relativeTimeWithPlural,
  4597. y : 'год',
  4598. yy : relativeTimeWithPlural
  4599. },
  4600. meridiemParse: /ночы|раніцы|дня|вечара/,
  4601. isPM : function (input) {
  4602. return /^(дня|вечара)$/.test(input);
  4603. },
  4604. meridiem : function (hour, minute, isLower) {
  4605. if (hour < 4) {
  4606. return 'ночы';
  4607. } else if (hour < 12) {
  4608. return 'раніцы';
  4609. } else if (hour < 17) {
  4610. return 'дня';
  4611. } else {
  4612. return 'вечара';
  4613. }
  4614. },
  4615. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  4616. ordinal: function (number, period) {
  4617. switch (period) {
  4618. case 'M':
  4619. case 'd':
  4620. case 'DDD':
  4621. case 'w':
  4622. case 'W':
  4623. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  4624. case 'D':
  4625. return number + '-га';
  4626. default:
  4627. return number;
  4628. }
  4629. },
  4630. week : {
  4631. dow : 1, // Monday is the first day of the week.
  4632. doy : 7 // The week that contains Jan 7th is the first week of the year.
  4633. }
  4634. });
  4635. //! moment.js locale configuration
  4636. hooks.defineLocale('bg', {
  4637. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  4638. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  4639. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  4640. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  4641. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  4642. longDateFormat : {
  4643. LT : 'H:mm',
  4644. LTS : 'H:mm:ss',
  4645. L : 'D.MM.YYYY',
  4646. LL : 'D MMMM YYYY',
  4647. LLL : 'D MMMM YYYY H:mm',
  4648. LLLL : 'dddd, D MMMM YYYY H:mm'
  4649. },
  4650. calendar : {
  4651. sameDay : '[Днес в] LT',
  4652. nextDay : '[Утре в] LT',
  4653. nextWeek : 'dddd [в] LT',
  4654. lastDay : '[Вчера в] LT',
  4655. lastWeek : function () {
  4656. switch (this.day()) {
  4657. case 0:
  4658. case 3:
  4659. case 6:
  4660. return '[В изминалата] dddd [в] LT';
  4661. case 1:
  4662. case 2:
  4663. case 4:
  4664. case 5:
  4665. return '[В изминалия] dddd [в] LT';
  4666. }
  4667. },
  4668. sameElse : 'L'
  4669. },
  4670. relativeTime : {
  4671. future : 'след %s',
  4672. past : 'преди %s',
  4673. s : 'няколко секунди',
  4674. ss : '%d секунди',
  4675. m : 'минута',
  4676. mm : '%d минути',
  4677. h : 'час',
  4678. hh : '%d часа',
  4679. d : 'ден',
  4680. dd : '%d дни',
  4681. M : 'месец',
  4682. MM : '%d месеца',
  4683. y : 'година',
  4684. yy : '%d години'
  4685. },
  4686. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  4687. ordinal : function (number) {
  4688. var lastDigit = number % 10,
  4689. last2Digits = number % 100;
  4690. if (number === 0) {
  4691. return number + '-ев';
  4692. } else if (last2Digits === 0) {
  4693. return number + '-ен';
  4694. } else if (last2Digits > 10 && last2Digits < 20) {
  4695. return number + '-ти';
  4696. } else if (lastDigit === 1) {
  4697. return number + '-ви';
  4698. } else if (lastDigit === 2) {
  4699. return number + '-ри';
  4700. } else if (lastDigit === 7 || lastDigit === 8) {
  4701. return number + '-ми';
  4702. } else {
  4703. return number + '-ти';
  4704. }
  4705. },
  4706. week : {
  4707. dow : 1, // Monday is the first day of the week.
  4708. doy : 7 // The week that contains Jan 7th is the first week of the year.
  4709. }
  4710. });
  4711. //! moment.js locale configuration
  4712. hooks.defineLocale('bm', {
  4713. months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
  4714. monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  4715. weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  4716. weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  4717. weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  4718. longDateFormat : {
  4719. LT : 'HH:mm',
  4720. LTS : 'HH:mm:ss',
  4721. L : 'DD/MM/YYYY',
  4722. LL : 'MMMM [tile] D [san] YYYY',
  4723. LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  4724. LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
  4725. },
  4726. calendar : {
  4727. sameDay : '[Bi lɛrɛ] LT',
  4728. nextDay : '[Sini lɛrɛ] LT',
  4729. nextWeek : 'dddd [don lɛrɛ] LT',
  4730. lastDay : '[Kunu lɛrɛ] LT',
  4731. lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
  4732. sameElse : 'L'
  4733. },
  4734. relativeTime : {
  4735. future : '%s kɔnɔ',
  4736. past : 'a bɛ %s bɔ',
  4737. s : 'sanga dama dama',
  4738. ss : 'sekondi %d',
  4739. m : 'miniti kelen',
  4740. mm : 'miniti %d',
  4741. h : 'lɛrɛ kelen',
  4742. hh : 'lɛrɛ %d',
  4743. d : 'tile kelen',
  4744. dd : 'tile %d',
  4745. M : 'kalo kelen',
  4746. MM : 'kalo %d',
  4747. y : 'san kelen',
  4748. yy : 'san %d'
  4749. },
  4750. week : {
  4751. dow : 1, // Monday is the first day of the week.
  4752. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4753. }
  4754. });
  4755. //! moment.js locale configuration
  4756. var symbolMap$3 = {
  4757. '1': '১',
  4758. '2': '২',
  4759. '3': '৩',
  4760. '4': '৪',
  4761. '5': '৫',
  4762. '6': '৬',
  4763. '7': '৭',
  4764. '8': '৮',
  4765. '9': '৯',
  4766. '0': '০'
  4767. },
  4768. numberMap$2 = {
  4769. '১': '1',
  4770. '২': '2',
  4771. '৩': '3',
  4772. '৪': '4',
  4773. '৫': '5',
  4774. '৬': '6',
  4775. '৭': '7',
  4776. '৮': '8',
  4777. '৯': '9',
  4778. '০': '0'
  4779. };
  4780. hooks.defineLocale('bn', {
  4781. months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  4782. monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  4783. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  4784. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  4785. weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
  4786. longDateFormat : {
  4787. LT : 'A h:mm সময়',
  4788. LTS : 'A h:mm:ss সময়',
  4789. L : 'DD/MM/YYYY',
  4790. LL : 'D MMMM YYYY',
  4791. LLL : 'D MMMM YYYY, A h:mm সময়',
  4792. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  4793. },
  4794. calendar : {
  4795. sameDay : '[আজ] LT',
  4796. nextDay : '[আগামীকাল] LT',
  4797. nextWeek : 'dddd, LT',
  4798. lastDay : '[গতকাল] LT',
  4799. lastWeek : '[গত] dddd, LT',
  4800. sameElse : 'L'
  4801. },
  4802. relativeTime : {
  4803. future : '%s পরে',
  4804. past : '%s আগে',
  4805. s : 'কয়েক সেকেন্ড',
  4806. ss : '%d সেকেন্ড',
  4807. m : 'এক মিনিট',
  4808. mm : '%d মিনিট',
  4809. h : 'এক ঘন্টা',
  4810. hh : '%d ঘন্টা',
  4811. d : 'এক দিন',
  4812. dd : '%d দিন',
  4813. M : 'এক মাস',
  4814. MM : '%d মাস',
  4815. y : 'এক বছর',
  4816. yy : '%d বছর'
  4817. },
  4818. preparse: function (string) {
  4819. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  4820. return numberMap$2[match];
  4821. });
  4822. },
  4823. postformat: function (string) {
  4824. return string.replace(/\d/g, function (match) {
  4825. return symbolMap$3[match];
  4826. });
  4827. },
  4828. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  4829. meridiemHour : function (hour, meridiem) {
  4830. if (hour === 12) {
  4831. hour = 0;
  4832. }
  4833. if ((meridiem === 'রাত' && hour >= 4) ||
  4834. (meridiem === 'দুপুর' && hour < 5) ||
  4835. meridiem === 'বিকাল') {
  4836. return hour + 12;
  4837. } else {
  4838. return hour;
  4839. }
  4840. },
  4841. meridiem : function (hour, minute, isLower) {
  4842. if (hour < 4) {
  4843. return 'রাত';
  4844. } else if (hour < 10) {
  4845. return 'সকাল';
  4846. } else if (hour < 17) {
  4847. return 'দুপুর';
  4848. } else if (hour < 20) {
  4849. return 'বিকাল';
  4850. } else {
  4851. return 'রাত';
  4852. }
  4853. },
  4854. week : {
  4855. dow : 0, // Sunday is the first day of the week.
  4856. doy : 6 // The week that contains Jan 6th is the first week of the year.
  4857. }
  4858. });
  4859. //! moment.js locale configuration
  4860. var symbolMap$4 = {
  4861. '1': '༡',
  4862. '2': '༢',
  4863. '3': '༣',
  4864. '4': '༤',
  4865. '5': '༥',
  4866. '6': '༦',
  4867. '7': '༧',
  4868. '8': '༨',
  4869. '9': '༩',
  4870. '0': '༠'
  4871. },
  4872. numberMap$3 = {
  4873. '༡': '1',
  4874. '༢': '2',
  4875. '༣': '3',
  4876. '༤': '4',
  4877. '༥': '5',
  4878. '༦': '6',
  4879. '༧': '7',
  4880. '༨': '8',
  4881. '༩': '9',
  4882. '༠': '0'
  4883. };
  4884. hooks.defineLocale('bo', {
  4885. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4886. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4887. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  4888. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4889. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4890. longDateFormat : {
  4891. LT : 'A h:mm',
  4892. LTS : 'A h:mm:ss',
  4893. L : 'DD/MM/YYYY',
  4894. LL : 'D MMMM YYYY',
  4895. LLL : 'D MMMM YYYY, A h:mm',
  4896. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  4897. },
  4898. calendar : {
  4899. sameDay : '[དི་རིང] LT',
  4900. nextDay : '[སང་ཉིན] LT',
  4901. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  4902. lastDay : '[ཁ་སང] LT',
  4903. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  4904. sameElse : 'L'
  4905. },
  4906. relativeTime : {
  4907. future : '%s ལ་',
  4908. past : '%s སྔན་ལ',
  4909. s : 'ལམ་སང',
  4910. ss : '%d སྐར་ཆ།',
  4911. m : 'སྐར་མ་གཅིག',
  4912. mm : '%d སྐར་མ',
  4913. h : 'ཆུ་ཚོད་གཅིག',
  4914. hh : '%d ཆུ་ཚོད',
  4915. d : 'ཉིན་གཅིག',
  4916. dd : '%d ཉིན་',
  4917. M : 'ཟླ་བ་གཅིག',
  4918. MM : '%d ཟླ་བ',
  4919. y : 'ལོ་གཅིག',
  4920. yy : '%d ལོ'
  4921. },
  4922. preparse: function (string) {
  4923. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  4924. return numberMap$3[match];
  4925. });
  4926. },
  4927. postformat: function (string) {
  4928. return string.replace(/\d/g, function (match) {
  4929. return symbolMap$4[match];
  4930. });
  4931. },
  4932. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  4933. meridiemHour : function (hour, meridiem) {
  4934. if (hour === 12) {
  4935. hour = 0;
  4936. }
  4937. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  4938. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  4939. meridiem === 'དགོང་དག') {
  4940. return hour + 12;
  4941. } else {
  4942. return hour;
  4943. }
  4944. },
  4945. meridiem : function (hour, minute, isLower) {
  4946. if (hour < 4) {
  4947. return 'མཚན་མོ';
  4948. } else if (hour < 10) {
  4949. return 'ཞོགས་ཀས';
  4950. } else if (hour < 17) {
  4951. return 'ཉིན་གུང';
  4952. } else if (hour < 20) {
  4953. return 'དགོང་དག';
  4954. } else {
  4955. return 'མཚན་མོ';
  4956. }
  4957. },
  4958. week : {
  4959. dow : 0, // Sunday is the first day of the week.
  4960. doy : 6 // The week that contains Jan 6th is the first week of the year.
  4961. }
  4962. });
  4963. //! moment.js locale configuration
  4964. function relativeTimeWithMutation(number, withoutSuffix, key) {
  4965. var format = {
  4966. 'mm': 'munutenn',
  4967. 'MM': 'miz',
  4968. 'dd': 'devezh'
  4969. };
  4970. return number + ' ' + mutation(format[key], number);
  4971. }
  4972. function specialMutationForYears(number) {
  4973. switch (lastNumber(number)) {
  4974. case 1:
  4975. case 3:
  4976. case 4:
  4977. case 5:
  4978. case 9:
  4979. return number + ' bloaz';
  4980. default:
  4981. return number + ' vloaz';
  4982. }
  4983. }
  4984. function lastNumber(number) {
  4985. if (number > 9) {
  4986. return lastNumber(number % 10);
  4987. }
  4988. return number;
  4989. }
  4990. function mutation(text, number) {
  4991. if (number === 2) {
  4992. return softMutation(text);
  4993. }
  4994. return text;
  4995. }
  4996. function softMutation(text) {
  4997. var mutationTable = {
  4998. 'm': 'v',
  4999. 'b': 'v',
  5000. 'd': 'z'
  5001. };
  5002. if (mutationTable[text.charAt(0)] === undefined) {
  5003. return text;
  5004. }
  5005. return mutationTable[text.charAt(0)] + text.substring(1);
  5006. }
  5007. hooks.defineLocale('br', {
  5008. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  5009. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  5010. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  5011. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  5012. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  5013. weekdaysParseExact : true,
  5014. longDateFormat : {
  5015. LT : 'h[e]mm A',
  5016. LTS : 'h[e]mm:ss A',
  5017. L : 'DD/MM/YYYY',
  5018. LL : 'D [a viz] MMMM YYYY',
  5019. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  5020. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  5021. },
  5022. calendar : {
  5023. sameDay : '[Hiziv da] LT',
  5024. nextDay : '[Warc\'hoazh da] LT',
  5025. nextWeek : 'dddd [da] LT',
  5026. lastDay : '[Dec\'h da] LT',
  5027. lastWeek : 'dddd [paset da] LT',
  5028. sameElse : 'L'
  5029. },
  5030. relativeTime : {
  5031. future : 'a-benn %s',
  5032. past : '%s \'zo',
  5033. s : 'un nebeud segondennoù',
  5034. ss : '%d eilenn',
  5035. m : 'ur vunutenn',
  5036. mm : relativeTimeWithMutation,
  5037. h : 'un eur',
  5038. hh : '%d eur',
  5039. d : 'un devezh',
  5040. dd : relativeTimeWithMutation,
  5041. M : 'ur miz',
  5042. MM : relativeTimeWithMutation,
  5043. y : 'ur bloaz',
  5044. yy : specialMutationForYears
  5045. },
  5046. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  5047. ordinal : function (number) {
  5048. var output = (number === 1) ? 'añ' : 'vet';
  5049. return number + output;
  5050. },
  5051. week : {
  5052. dow : 1, // Monday is the first day of the week.
  5053. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5054. }
  5055. });
  5056. //! moment.js locale configuration
  5057. function translate(number, withoutSuffix, key) {
  5058. var result = number + ' ';
  5059. switch (key) {
  5060. case 'ss':
  5061. if (number === 1) {
  5062. result += 'sekunda';
  5063. } else if (number === 2 || number === 3 || number === 4) {
  5064. result += 'sekunde';
  5065. } else {
  5066. result += 'sekundi';
  5067. }
  5068. return result;
  5069. case 'm':
  5070. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  5071. case 'mm':
  5072. if (number === 1) {
  5073. result += 'minuta';
  5074. } else if (number === 2 || number === 3 || number === 4) {
  5075. result += 'minute';
  5076. } else {
  5077. result += 'minuta';
  5078. }
  5079. return result;
  5080. case 'h':
  5081. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  5082. case 'hh':
  5083. if (number === 1) {
  5084. result += 'sat';
  5085. } else if (number === 2 || number === 3 || number === 4) {
  5086. result += 'sata';
  5087. } else {
  5088. result += 'sati';
  5089. }
  5090. return result;
  5091. case 'dd':
  5092. if (number === 1) {
  5093. result += 'dan';
  5094. } else {
  5095. result += 'dana';
  5096. }
  5097. return result;
  5098. case 'MM':
  5099. if (number === 1) {
  5100. result += 'mjesec';
  5101. } else if (number === 2 || number === 3 || number === 4) {
  5102. result += 'mjeseca';
  5103. } else {
  5104. result += 'mjeseci';
  5105. }
  5106. return result;
  5107. case 'yy':
  5108. if (number === 1) {
  5109. result += 'godina';
  5110. } else if (number === 2 || number === 3 || number === 4) {
  5111. result += 'godine';
  5112. } else {
  5113. result += 'godina';
  5114. }
  5115. return result;
  5116. }
  5117. }
  5118. hooks.defineLocale('bs', {
  5119. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  5120. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  5121. monthsParseExact: true,
  5122. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  5123. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  5124. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  5125. weekdaysParseExact : true,
  5126. longDateFormat : {
  5127. LT : 'H:mm',
  5128. LTS : 'H:mm:ss',
  5129. L : 'DD.MM.YYYY',
  5130. LL : 'D. MMMM YYYY',
  5131. LLL : 'D. MMMM YYYY H:mm',
  5132. LLLL : 'dddd, D. MMMM YYYY H:mm'
  5133. },
  5134. calendar : {
  5135. sameDay : '[danas u] LT',
  5136. nextDay : '[sutra u] LT',
  5137. nextWeek : function () {
  5138. switch (this.day()) {
  5139. case 0:
  5140. return '[u] [nedjelju] [u] LT';
  5141. case 3:
  5142. return '[u] [srijedu] [u] LT';
  5143. case 6:
  5144. return '[u] [subotu] [u] LT';
  5145. case 1:
  5146. case 2:
  5147. case 4:
  5148. case 5:
  5149. return '[u] dddd [u] LT';
  5150. }
  5151. },
  5152. lastDay : '[jučer u] LT',
  5153. lastWeek : function () {
  5154. switch (this.day()) {
  5155. case 0:
  5156. case 3:
  5157. return '[prošlu] dddd [u] LT';
  5158. case 6:
  5159. return '[prošle] [subote] [u] LT';
  5160. case 1:
  5161. case 2:
  5162. case 4:
  5163. case 5:
  5164. return '[prošli] dddd [u] LT';
  5165. }
  5166. },
  5167. sameElse : 'L'
  5168. },
  5169. relativeTime : {
  5170. future : 'za %s',
  5171. past : 'prije %s',
  5172. s : 'par sekundi',
  5173. ss : translate,
  5174. m : translate,
  5175. mm : translate,
  5176. h : translate,
  5177. hh : translate,
  5178. d : 'dan',
  5179. dd : translate,
  5180. M : 'mjesec',
  5181. MM : translate,
  5182. y : 'godinu',
  5183. yy : translate
  5184. },
  5185. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5186. ordinal : '%d.',
  5187. week : {
  5188. dow : 1, // Monday is the first day of the week.
  5189. doy : 7 // The week that contains Jan 7th is the first week of the year.
  5190. }
  5191. });
  5192. //! moment.js locale configuration
  5193. hooks.defineLocale('ca', {
  5194. months : {
  5195. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  5196. format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
  5197. isFormat: /D[oD]?(\s)+MMMM/
  5198. },
  5199. monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  5200. monthsParseExact : true,
  5201. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  5202. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  5203. weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  5204. weekdaysParseExact : true,
  5205. longDateFormat : {
  5206. LT : 'H:mm',
  5207. LTS : 'H:mm:ss',
  5208. L : 'DD/MM/YYYY',
  5209. LL : 'D MMMM [de] YYYY',
  5210. ll : 'D MMM YYYY',
  5211. LLL : 'D MMMM [de] YYYY [a les] H:mm',
  5212. lll : 'D MMM YYYY, H:mm',
  5213. LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
  5214. llll : 'ddd D MMM YYYY, H:mm'
  5215. },
  5216. calendar : {
  5217. sameDay : function () {
  5218. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5219. },
  5220. nextDay : function () {
  5221. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5222. },
  5223. nextWeek : function () {
  5224. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5225. },
  5226. lastDay : function () {
  5227. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5228. },
  5229. lastWeek : function () {
  5230. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5231. },
  5232. sameElse : 'L'
  5233. },
  5234. relativeTime : {
  5235. future : 'd\'aquí %s',
  5236. past : 'fa %s',
  5237. s : 'uns segons',
  5238. ss : '%d segons',
  5239. m : 'un minut',
  5240. mm : '%d minuts',
  5241. h : 'una hora',
  5242. hh : '%d hores',
  5243. d : 'un dia',
  5244. dd : '%d dies',
  5245. M : 'un mes',
  5246. MM : '%d mesos',
  5247. y : 'un any',
  5248. yy : '%d anys'
  5249. },
  5250. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  5251. ordinal : function (number, period) {
  5252. var output = (number === 1) ? 'r' :
  5253. (number === 2) ? 'n' :
  5254. (number === 3) ? 'r' :
  5255. (number === 4) ? 't' : 'è';
  5256. if (period === 'w' || period === 'W') {
  5257. output = 'a';
  5258. }
  5259. return number + output;
  5260. },
  5261. week : {
  5262. dow : 1, // Monday is the first day of the week.
  5263. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5264. }
  5265. });
  5266. //! moment.js locale configuration
  5267. var months$3 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  5268. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  5269. var monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i];
  5270. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  5271. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  5272. var monthsRegex$1 = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  5273. function plural$1(n) {
  5274. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  5275. }
  5276. function translate$1(number, withoutSuffix, key, isFuture) {
  5277. var result = number + ' ';
  5278. switch (key) {
  5279. case 's': // a few seconds / in a few seconds / a few seconds ago
  5280. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  5281. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  5282. if (withoutSuffix || isFuture) {
  5283. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  5284. } else {
  5285. return result + 'sekundami';
  5286. }
  5287. break;
  5288. case 'm': // a minute / in a minute / a minute ago
  5289. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  5290. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  5291. if (withoutSuffix || isFuture) {
  5292. return result + (plural$1(number) ? 'minuty' : 'minut');
  5293. } else {
  5294. return result + 'minutami';
  5295. }
  5296. break;
  5297. case 'h': // an hour / in an hour / an hour ago
  5298. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  5299. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  5300. if (withoutSuffix || isFuture) {
  5301. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  5302. } else {
  5303. return result + 'hodinami';
  5304. }
  5305. break;
  5306. case 'd': // a day / in a day / a day ago
  5307. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  5308. case 'dd': // 9 days / in 9 days / 9 days ago
  5309. if (withoutSuffix || isFuture) {
  5310. return result + (plural$1(number) ? 'dny' : 'dní');
  5311. } else {
  5312. return result + 'dny';
  5313. }
  5314. break;
  5315. case 'M': // a month / in a month / a month ago
  5316. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  5317. case 'MM': // 9 months / in 9 months / 9 months ago
  5318. if (withoutSuffix || isFuture) {
  5319. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  5320. } else {
  5321. return result + 'měsíci';
  5322. }
  5323. break;
  5324. case 'y': // a year / in a year / a year ago
  5325. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  5326. case 'yy': // 9 years / in 9 years / 9 years ago
  5327. if (withoutSuffix || isFuture) {
  5328. return result + (plural$1(number) ? 'roky' : 'let');
  5329. } else {
  5330. return result + 'lety';
  5331. }
  5332. break;
  5333. }
  5334. }
  5335. hooks.defineLocale('cs', {
  5336. months : months$3,
  5337. monthsShort : monthsShort,
  5338. monthsRegex : monthsRegex$1,
  5339. monthsShortRegex : monthsRegex$1,
  5340. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  5341. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  5342. monthsStrictRegex : /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  5343. monthsShortStrictRegex : /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  5344. monthsParse : monthsParse,
  5345. longMonthsParse : monthsParse,
  5346. shortMonthsParse : monthsParse,
  5347. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  5348. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  5349. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  5350. longDateFormat : {
  5351. LT: 'H:mm',
  5352. LTS : 'H:mm:ss',
  5353. L : 'DD.MM.YYYY',
  5354. LL : 'D. MMMM YYYY',
  5355. LLL : 'D. MMMM YYYY H:mm',
  5356. LLLL : 'dddd D. MMMM YYYY H:mm',
  5357. l : 'D. M. YYYY'
  5358. },
  5359. calendar : {
  5360. sameDay: '[dnes v] LT',
  5361. nextDay: '[zítra v] LT',
  5362. nextWeek: function () {
  5363. switch (this.day()) {
  5364. case 0:
  5365. return '[v neděli v] LT';
  5366. case 1:
  5367. case 2:
  5368. return '[v] dddd [v] LT';
  5369. case 3:
  5370. return '[ve středu v] LT';
  5371. case 4:
  5372. return '[ve čtvrtek v] LT';
  5373. case 5:
  5374. return '[v pátek v] LT';
  5375. case 6:
  5376. return '[v sobotu v] LT';
  5377. }
  5378. },
  5379. lastDay: '[včera v] LT',
  5380. lastWeek: function () {
  5381. switch (this.day()) {
  5382. case 0:
  5383. return '[minulou neděli v] LT';
  5384. case 1:
  5385. case 2:
  5386. return '[minulé] dddd [v] LT';
  5387. case 3:
  5388. return '[minulou středu v] LT';
  5389. case 4:
  5390. case 5:
  5391. return '[minulý] dddd [v] LT';
  5392. case 6:
  5393. return '[minulou sobotu v] LT';
  5394. }
  5395. },
  5396. sameElse: 'L'
  5397. },
  5398. relativeTime : {
  5399. future : 'za %s',
  5400. past : 'před %s',
  5401. s : translate$1,
  5402. ss : translate$1,
  5403. m : translate$1,
  5404. mm : translate$1,
  5405. h : translate$1,
  5406. hh : translate$1,
  5407. d : translate$1,
  5408. dd : translate$1,
  5409. M : translate$1,
  5410. MM : translate$1,
  5411. y : translate$1,
  5412. yy : translate$1
  5413. },
  5414. dayOfMonthOrdinalParse : /\d{1,2}\./,
  5415. ordinal : '%d.',
  5416. week : {
  5417. dow : 1, // Monday is the first day of the week.
  5418. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5419. }
  5420. });
  5421. //! moment.js locale configuration
  5422. hooks.defineLocale('cv', {
  5423. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  5424. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  5425. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  5426. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  5427. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  5428. longDateFormat : {
  5429. LT : 'HH:mm',
  5430. LTS : 'HH:mm:ss',
  5431. L : 'DD-MM-YYYY',
  5432. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  5433. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  5434. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  5435. },
  5436. calendar : {
  5437. sameDay: '[Паян] LT [сехетре]',
  5438. nextDay: '[Ыран] LT [сехетре]',
  5439. lastDay: '[Ӗнер] LT [сехетре]',
  5440. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  5441. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  5442. sameElse: 'L'
  5443. },
  5444. relativeTime : {
  5445. future : function (output) {
  5446. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  5447. return output + affix;
  5448. },
  5449. past : '%s каялла',
  5450. s : 'пӗр-ик ҫеккунт',
  5451. ss : '%d ҫеккунт',
  5452. m : 'пӗр минут',
  5453. mm : '%d минут',
  5454. h : 'пӗр сехет',
  5455. hh : '%d сехет',
  5456. d : 'пӗр кун',
  5457. dd : '%d кун',
  5458. M : 'пӗр уйӑх',
  5459. MM : '%d уйӑх',
  5460. y : 'пӗр ҫул',
  5461. yy : '%d ҫул'
  5462. },
  5463. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  5464. ordinal : '%d-мӗш',
  5465. week : {
  5466. dow : 1, // Monday is the first day of the week.
  5467. doy : 7 // The week that contains Jan 7th is the first week of the year.
  5468. }
  5469. });
  5470. //! moment.js locale configuration
  5471. hooks.defineLocale('cy', {
  5472. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  5473. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  5474. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  5475. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  5476. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  5477. weekdaysParseExact : true,
  5478. // time formats are the same as en-gb
  5479. longDateFormat: {
  5480. LT: 'HH:mm',
  5481. LTS : 'HH:mm:ss',
  5482. L: 'DD/MM/YYYY',
  5483. LL: 'D MMMM YYYY',
  5484. LLL: 'D MMMM YYYY HH:mm',
  5485. LLLL: 'dddd, D MMMM YYYY HH:mm'
  5486. },
  5487. calendar: {
  5488. sameDay: '[Heddiw am] LT',
  5489. nextDay: '[Yfory am] LT',
  5490. nextWeek: 'dddd [am] LT',
  5491. lastDay: '[Ddoe am] LT',
  5492. lastWeek: 'dddd [diwethaf am] LT',
  5493. sameElse: 'L'
  5494. },
  5495. relativeTime: {
  5496. future: 'mewn %s',
  5497. past: '%s yn ôl',
  5498. s: 'ychydig eiliadau',
  5499. ss: '%d eiliad',
  5500. m: 'munud',
  5501. mm: '%d munud',
  5502. h: 'awr',
  5503. hh: '%d awr',
  5504. d: 'diwrnod',
  5505. dd: '%d diwrnod',
  5506. M: 'mis',
  5507. MM: '%d mis',
  5508. y: 'blwyddyn',
  5509. yy: '%d flynedd'
  5510. },
  5511. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  5512. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  5513. ordinal: function (number) {
  5514. var b = number,
  5515. output = '',
  5516. lookup = [
  5517. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  5518. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  5519. ];
  5520. if (b > 20) {
  5521. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  5522. output = 'fed'; // not 30ain, 70ain or 90ain
  5523. } else {
  5524. output = 'ain';
  5525. }
  5526. } else if (b > 0) {
  5527. output = lookup[b];
  5528. }
  5529. return number + output;
  5530. },
  5531. week : {
  5532. dow : 1, // Monday is the first day of the week.
  5533. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5534. }
  5535. });
  5536. //! moment.js locale configuration
  5537. hooks.defineLocale('da', {
  5538. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  5539. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  5540. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  5541. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  5542. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  5543. longDateFormat : {
  5544. LT : 'HH:mm',
  5545. LTS : 'HH:mm:ss',
  5546. L : 'DD.MM.YYYY',
  5547. LL : 'D. MMMM YYYY',
  5548. LLL : 'D. MMMM YYYY HH:mm',
  5549. LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  5550. },
  5551. calendar : {
  5552. sameDay : '[i dag kl.] LT',
  5553. nextDay : '[i morgen kl.] LT',
  5554. nextWeek : 'på dddd [kl.] LT',
  5555. lastDay : '[i går kl.] LT',
  5556. lastWeek : '[i] dddd[s kl.] LT',
  5557. sameElse : 'L'
  5558. },
  5559. relativeTime : {
  5560. future : 'om %s',
  5561. past : '%s siden',
  5562. s : 'få sekunder',
  5563. ss : '%d sekunder',
  5564. m : 'et minut',
  5565. mm : '%d minutter',
  5566. h : 'en time',
  5567. hh : '%d timer',
  5568. d : 'en dag',
  5569. dd : '%d dage',
  5570. M : 'en måned',
  5571. MM : '%d måneder',
  5572. y : 'et år',
  5573. yy : '%d år'
  5574. },
  5575. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5576. ordinal : '%d.',
  5577. week : {
  5578. dow : 1, // Monday is the first day of the week.
  5579. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5580. }
  5581. });
  5582. //! moment.js locale configuration
  5583. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  5584. var format = {
  5585. 'm': ['eine Minute', 'einer Minute'],
  5586. 'h': ['eine Stunde', 'einer Stunde'],
  5587. 'd': ['ein Tag', 'einem Tag'],
  5588. 'dd': [number + ' Tage', number + ' Tagen'],
  5589. 'M': ['ein Monat', 'einem Monat'],
  5590. 'MM': [number + ' Monate', number + ' Monaten'],
  5591. 'y': ['ein Jahr', 'einem Jahr'],
  5592. 'yy': [number + ' Jahre', number + ' Jahren']
  5593. };
  5594. return withoutSuffix ? format[key][0] : format[key][1];
  5595. }
  5596. hooks.defineLocale('de-at', {
  5597. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5598. monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  5599. monthsParseExact : true,
  5600. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5601. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5602. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5603. weekdaysParseExact : true,
  5604. longDateFormat : {
  5605. LT: 'HH:mm',
  5606. LTS: 'HH:mm:ss',
  5607. L : 'DD.MM.YYYY',
  5608. LL : 'D. MMMM YYYY',
  5609. LLL : 'D. MMMM YYYY HH:mm',
  5610. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5611. },
  5612. calendar : {
  5613. sameDay: '[heute um] LT [Uhr]',
  5614. sameElse: 'L',
  5615. nextDay: '[morgen um] LT [Uhr]',
  5616. nextWeek: 'dddd [um] LT [Uhr]',
  5617. lastDay: '[gestern um] LT [Uhr]',
  5618. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5619. },
  5620. relativeTime : {
  5621. future : 'in %s',
  5622. past : 'vor %s',
  5623. s : 'ein paar Sekunden',
  5624. ss : '%d Sekunden',
  5625. m : processRelativeTime,
  5626. mm : '%d Minuten',
  5627. h : processRelativeTime,
  5628. hh : '%d Stunden',
  5629. d : processRelativeTime,
  5630. dd : processRelativeTime,
  5631. M : processRelativeTime,
  5632. MM : processRelativeTime,
  5633. y : processRelativeTime,
  5634. yy : processRelativeTime
  5635. },
  5636. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5637. ordinal : '%d.',
  5638. week : {
  5639. dow : 1, // Monday is the first day of the week.
  5640. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5641. }
  5642. });
  5643. //! moment.js locale configuration
  5644. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  5645. var format = {
  5646. 'm': ['eine Minute', 'einer Minute'],
  5647. 'h': ['eine Stunde', 'einer Stunde'],
  5648. 'd': ['ein Tag', 'einem Tag'],
  5649. 'dd': [number + ' Tage', number + ' Tagen'],
  5650. 'M': ['ein Monat', 'einem Monat'],
  5651. 'MM': [number + ' Monate', number + ' Monaten'],
  5652. 'y': ['ein Jahr', 'einem Jahr'],
  5653. 'yy': [number + ' Jahre', number + ' Jahren']
  5654. };
  5655. return withoutSuffix ? format[key][0] : format[key][1];
  5656. }
  5657. hooks.defineLocale('de-ch', {
  5658. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5659. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  5660. monthsParseExact : true,
  5661. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5662. weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5663. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5664. weekdaysParseExact : true,
  5665. longDateFormat : {
  5666. LT: 'HH:mm',
  5667. LTS: 'HH:mm:ss',
  5668. L : 'DD.MM.YYYY',
  5669. LL : 'D. MMMM YYYY',
  5670. LLL : 'D. MMMM YYYY HH:mm',
  5671. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5672. },
  5673. calendar : {
  5674. sameDay: '[heute um] LT [Uhr]',
  5675. sameElse: 'L',
  5676. nextDay: '[morgen um] LT [Uhr]',
  5677. nextWeek: 'dddd [um] LT [Uhr]',
  5678. lastDay: '[gestern um] LT [Uhr]',
  5679. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5680. },
  5681. relativeTime : {
  5682. future : 'in %s',
  5683. past : 'vor %s',
  5684. s : 'ein paar Sekunden',
  5685. ss : '%d Sekunden',
  5686. m : processRelativeTime$1,
  5687. mm : '%d Minuten',
  5688. h : processRelativeTime$1,
  5689. hh : '%d Stunden',
  5690. d : processRelativeTime$1,
  5691. dd : processRelativeTime$1,
  5692. M : processRelativeTime$1,
  5693. MM : processRelativeTime$1,
  5694. y : processRelativeTime$1,
  5695. yy : processRelativeTime$1
  5696. },
  5697. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5698. ordinal : '%d.',
  5699. week : {
  5700. dow : 1, // Monday is the first day of the week.
  5701. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5702. }
  5703. });
  5704. //! moment.js locale configuration
  5705. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  5706. var format = {
  5707. 'm': ['eine Minute', 'einer Minute'],
  5708. 'h': ['eine Stunde', 'einer Stunde'],
  5709. 'd': ['ein Tag', 'einem Tag'],
  5710. 'dd': [number + ' Tage', number + ' Tagen'],
  5711. 'M': ['ein Monat', 'einem Monat'],
  5712. 'MM': [number + ' Monate', number + ' Monaten'],
  5713. 'y': ['ein Jahr', 'einem Jahr'],
  5714. 'yy': [number + ' Jahre', number + ' Jahren']
  5715. };
  5716. return withoutSuffix ? format[key][0] : format[key][1];
  5717. }
  5718. hooks.defineLocale('de', {
  5719. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5720. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  5721. monthsParseExact : true,
  5722. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5723. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5724. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5725. weekdaysParseExact : true,
  5726. longDateFormat : {
  5727. LT: 'HH:mm',
  5728. LTS: 'HH:mm:ss',
  5729. L : 'DD.MM.YYYY',
  5730. LL : 'D. MMMM YYYY',
  5731. LLL : 'D. MMMM YYYY HH:mm',
  5732. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5733. },
  5734. calendar : {
  5735. sameDay: '[heute um] LT [Uhr]',
  5736. sameElse: 'L',
  5737. nextDay: '[morgen um] LT [Uhr]',
  5738. nextWeek: 'dddd [um] LT [Uhr]',
  5739. lastDay: '[gestern um] LT [Uhr]',
  5740. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5741. },
  5742. relativeTime : {
  5743. future : 'in %s',
  5744. past : 'vor %s',
  5745. s : 'ein paar Sekunden',
  5746. ss : '%d Sekunden',
  5747. m : processRelativeTime$2,
  5748. mm : '%d Minuten',
  5749. h : processRelativeTime$2,
  5750. hh : '%d Stunden',
  5751. d : processRelativeTime$2,
  5752. dd : processRelativeTime$2,
  5753. M : processRelativeTime$2,
  5754. MM : processRelativeTime$2,
  5755. y : processRelativeTime$2,
  5756. yy : processRelativeTime$2
  5757. },
  5758. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5759. ordinal : '%d.',
  5760. week : {
  5761. dow : 1, // Monday is the first day of the week.
  5762. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5763. }
  5764. });
  5765. //! moment.js locale configuration
  5766. var months$4 = [
  5767. 'ޖެނުއަރީ',
  5768. 'ފެބްރުއަރީ',
  5769. 'މާރިޗު',
  5770. 'އޭޕްރީލު',
  5771. 'މޭ',
  5772. 'ޖޫން',
  5773. 'ޖުލައި',
  5774. 'އޯގަސްޓު',
  5775. 'ސެޕްޓެމްބަރު',
  5776. 'އޮކްޓޯބަރު',
  5777. 'ނޮވެމްބަރު',
  5778. 'ޑިސެމްބަރު'
  5779. ], weekdays = [
  5780. 'އާދިއްތަ',
  5781. 'ހޯމަ',
  5782. 'އަންގާރަ',
  5783. 'ބުދަ',
  5784. 'ބުރާސްފަތި',
  5785. 'ހުކުރު',
  5786. 'ހޮނިހިރު'
  5787. ];
  5788. hooks.defineLocale('dv', {
  5789. months : months$4,
  5790. monthsShort : months$4,
  5791. weekdays : weekdays,
  5792. weekdaysShort : weekdays,
  5793. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  5794. longDateFormat : {
  5795. LT : 'HH:mm',
  5796. LTS : 'HH:mm:ss',
  5797. L : 'D/M/YYYY',
  5798. LL : 'D MMMM YYYY',
  5799. LLL : 'D MMMM YYYY HH:mm',
  5800. LLLL : 'dddd D MMMM YYYY HH:mm'
  5801. },
  5802. meridiemParse: /މކ|މފ/,
  5803. isPM : function (input) {
  5804. return 'މފ' === input;
  5805. },
  5806. meridiem : function (hour, minute, isLower) {
  5807. if (hour < 12) {
  5808. return 'މކ';
  5809. } else {
  5810. return 'މފ';
  5811. }
  5812. },
  5813. calendar : {
  5814. sameDay : '[މިއަދު] LT',
  5815. nextDay : '[މާދަމާ] LT',
  5816. nextWeek : 'dddd LT',
  5817. lastDay : '[އިއްޔެ] LT',
  5818. lastWeek : '[ފާއިތުވި] dddd LT',
  5819. sameElse : 'L'
  5820. },
  5821. relativeTime : {
  5822. future : 'ތެރޭގައި %s',
  5823. past : 'ކުރިން %s',
  5824. s : 'ސިކުންތުކޮޅެއް',
  5825. ss : 'd% ސިކުންތު',
  5826. m : 'މިނިޓެއް',
  5827. mm : 'މިނިޓު %d',
  5828. h : 'ގަޑިއިރެއް',
  5829. hh : 'ގަޑިއިރު %d',
  5830. d : 'ދުވަހެއް',
  5831. dd : 'ދުވަސް %d',
  5832. M : 'މަހެއް',
  5833. MM : 'މަސް %d',
  5834. y : 'އަހަރެއް',
  5835. yy : 'އަހަރު %d'
  5836. },
  5837. preparse: function (string) {
  5838. return string.replace(/،/g, ',');
  5839. },
  5840. postformat: function (string) {
  5841. return string.replace(/,/g, '،');
  5842. },
  5843. week : {
  5844. dow : 7, // Sunday is the first day of the week.
  5845. doy : 12 // The week that contains Jan 12th is the first week of the year.
  5846. }
  5847. });
  5848. //! moment.js locale configuration
  5849. hooks.defineLocale('el', {
  5850. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  5851. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  5852. months : function (momentToFormat, format) {
  5853. if (!momentToFormat) {
  5854. return this._monthsNominativeEl;
  5855. } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  5856. return this._monthsGenitiveEl[momentToFormat.month()];
  5857. } else {
  5858. return this._monthsNominativeEl[momentToFormat.month()];
  5859. }
  5860. },
  5861. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  5862. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  5863. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  5864. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  5865. meridiem : function (hours, minutes, isLower) {
  5866. if (hours > 11) {
  5867. return isLower ? 'μμ' : 'ΜΜ';
  5868. } else {
  5869. return isLower ? 'πμ' : 'ΠΜ';
  5870. }
  5871. },
  5872. isPM : function (input) {
  5873. return ((input + '').toLowerCase()[0] === 'μ');
  5874. },
  5875. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  5876. longDateFormat : {
  5877. LT : 'h:mm A',
  5878. LTS : 'h:mm:ss A',
  5879. L : 'DD/MM/YYYY',
  5880. LL : 'D MMMM YYYY',
  5881. LLL : 'D MMMM YYYY h:mm A',
  5882. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5883. },
  5884. calendarEl : {
  5885. sameDay : '[Σήμερα {}] LT',
  5886. nextDay : '[Αύριο {}] LT',
  5887. nextWeek : 'dddd [{}] LT',
  5888. lastDay : '[Χθες {}] LT',
  5889. lastWeek : function () {
  5890. switch (this.day()) {
  5891. case 6:
  5892. return '[το προηγούμενο] dddd [{}] LT';
  5893. default:
  5894. return '[την προηγούμενη] dddd [{}] LT';
  5895. }
  5896. },
  5897. sameElse : 'L'
  5898. },
  5899. calendar : function (key, mom) {
  5900. var output = this._calendarEl[key],
  5901. hours = mom && mom.hours();
  5902. if (isFunction(output)) {
  5903. output = output.apply(mom);
  5904. }
  5905. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  5906. },
  5907. relativeTime : {
  5908. future : 'σε %s',
  5909. past : '%s πριν',
  5910. s : 'λίγα δευτερόλεπτα',
  5911. ss : '%d δευτερόλεπτα',
  5912. m : 'ένα λεπτό',
  5913. mm : '%d λεπτά',
  5914. h : 'μία ώρα',
  5915. hh : '%d ώρες',
  5916. d : 'μία μέρα',
  5917. dd : '%d μέρες',
  5918. M : 'ένας μήνας',
  5919. MM : '%d μήνες',
  5920. y : 'ένας χρόνος',
  5921. yy : '%d χρόνια'
  5922. },
  5923. dayOfMonthOrdinalParse: /\d{1,2}η/,
  5924. ordinal: '%dη',
  5925. week : {
  5926. dow : 1, // Monday is the first day of the week.
  5927. doy : 4 // The week that contains Jan 4st is the first week of the year.
  5928. }
  5929. });
  5930. //! moment.js locale configuration
  5931. hooks.defineLocale('en-SG', {
  5932. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5933. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5934. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5935. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5936. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5937. longDateFormat : {
  5938. LT : 'HH:mm',
  5939. LTS : 'HH:mm:ss',
  5940. L : 'DD/MM/YYYY',
  5941. LL : 'D MMMM YYYY',
  5942. LLL : 'D MMMM YYYY HH:mm',
  5943. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5944. },
  5945. calendar : {
  5946. sameDay : '[Today at] LT',
  5947. nextDay : '[Tomorrow at] LT',
  5948. nextWeek : 'dddd [at] LT',
  5949. lastDay : '[Yesterday at] LT',
  5950. lastWeek : '[Last] dddd [at] LT',
  5951. sameElse : 'L'
  5952. },
  5953. relativeTime : {
  5954. future : 'in %s',
  5955. past : '%s ago',
  5956. s : 'a few seconds',
  5957. ss : '%d seconds',
  5958. m : 'a minute',
  5959. mm : '%d minutes',
  5960. h : 'an hour',
  5961. hh : '%d hours',
  5962. d : 'a day',
  5963. dd : '%d days',
  5964. M : 'a month',
  5965. MM : '%d months',
  5966. y : 'a year',
  5967. yy : '%d years'
  5968. },
  5969. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5970. ordinal : function (number) {
  5971. var b = number % 10,
  5972. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5973. (b === 1) ? 'st' :
  5974. (b === 2) ? 'nd' :
  5975. (b === 3) ? 'rd' : 'th';
  5976. return number + output;
  5977. },
  5978. week : {
  5979. dow : 1, // Monday is the first day of the week.
  5980. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5981. }
  5982. });
  5983. //! moment.js locale configuration
  5984. hooks.defineLocale('en-au', {
  5985. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5986. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5987. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5988. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5989. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5990. longDateFormat : {
  5991. LT : 'h:mm A',
  5992. LTS : 'h:mm:ss A',
  5993. L : 'DD/MM/YYYY',
  5994. LL : 'D MMMM YYYY',
  5995. LLL : 'D MMMM YYYY h:mm A',
  5996. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5997. },
  5998. calendar : {
  5999. sameDay : '[Today at] LT',
  6000. nextDay : '[Tomorrow at] LT',
  6001. nextWeek : 'dddd [at] LT',
  6002. lastDay : '[Yesterday at] LT',
  6003. lastWeek : '[Last] dddd [at] LT',
  6004. sameElse : 'L'
  6005. },
  6006. relativeTime : {
  6007. future : 'in %s',
  6008. past : '%s ago',
  6009. s : 'a few seconds',
  6010. ss : '%d seconds',
  6011. m : 'a minute',
  6012. mm : '%d minutes',
  6013. h : 'an hour',
  6014. hh : '%d hours',
  6015. d : 'a day',
  6016. dd : '%d days',
  6017. M : 'a month',
  6018. MM : '%d months',
  6019. y : 'a year',
  6020. yy : '%d years'
  6021. },
  6022. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6023. ordinal : function (number) {
  6024. var b = number % 10,
  6025. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6026. (b === 1) ? 'st' :
  6027. (b === 2) ? 'nd' :
  6028. (b === 3) ? 'rd' : 'th';
  6029. return number + output;
  6030. },
  6031. week : {
  6032. dow : 1, // Monday is the first day of the week.
  6033. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6034. }
  6035. });
  6036. //! moment.js locale configuration
  6037. hooks.defineLocale('en-ca', {
  6038. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6039. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6040. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6041. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6042. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6043. longDateFormat : {
  6044. LT : 'h:mm A',
  6045. LTS : 'h:mm:ss A',
  6046. L : 'YYYY-MM-DD',
  6047. LL : 'MMMM D, YYYY',
  6048. LLL : 'MMMM D, YYYY h:mm A',
  6049. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  6050. },
  6051. calendar : {
  6052. sameDay : '[Today at] LT',
  6053. nextDay : '[Tomorrow at] LT',
  6054. nextWeek : 'dddd [at] LT',
  6055. lastDay : '[Yesterday at] LT',
  6056. lastWeek : '[Last] dddd [at] LT',
  6057. sameElse : 'L'
  6058. },
  6059. relativeTime : {
  6060. future : 'in %s',
  6061. past : '%s ago',
  6062. s : 'a few seconds',
  6063. ss : '%d seconds',
  6064. m : 'a minute',
  6065. mm : '%d minutes',
  6066. h : 'an hour',
  6067. hh : '%d hours',
  6068. d : 'a day',
  6069. dd : '%d days',
  6070. M : 'a month',
  6071. MM : '%d months',
  6072. y : 'a year',
  6073. yy : '%d years'
  6074. },
  6075. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6076. ordinal : function (number) {
  6077. var b = number % 10,
  6078. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6079. (b === 1) ? 'st' :
  6080. (b === 2) ? 'nd' :
  6081. (b === 3) ? 'rd' : 'th';
  6082. return number + output;
  6083. }
  6084. });
  6085. //! moment.js locale configuration
  6086. hooks.defineLocale('en-gb', {
  6087. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6088. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6089. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6090. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6091. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6092. longDateFormat : {
  6093. LT : 'HH:mm',
  6094. LTS : 'HH:mm:ss',
  6095. L : 'DD/MM/YYYY',
  6096. LL : 'D MMMM YYYY',
  6097. LLL : 'D MMMM YYYY HH:mm',
  6098. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6099. },
  6100. calendar : {
  6101. sameDay : '[Today at] LT',
  6102. nextDay : '[Tomorrow at] LT',
  6103. nextWeek : 'dddd [at] LT',
  6104. lastDay : '[Yesterday at] LT',
  6105. lastWeek : '[Last] dddd [at] LT',
  6106. sameElse : 'L'
  6107. },
  6108. relativeTime : {
  6109. future : 'in %s',
  6110. past : '%s ago',
  6111. s : 'a few seconds',
  6112. ss : '%d seconds',
  6113. m : 'a minute',
  6114. mm : '%d minutes',
  6115. h : 'an hour',
  6116. hh : '%d hours',
  6117. d : 'a day',
  6118. dd : '%d days',
  6119. M : 'a month',
  6120. MM : '%d months',
  6121. y : 'a year',
  6122. yy : '%d years'
  6123. },
  6124. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6125. ordinal : function (number) {
  6126. var b = number % 10,
  6127. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6128. (b === 1) ? 'st' :
  6129. (b === 2) ? 'nd' :
  6130. (b === 3) ? 'rd' : 'th';
  6131. return number + output;
  6132. },
  6133. week : {
  6134. dow : 1, // Monday is the first day of the week.
  6135. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6136. }
  6137. });
  6138. //! moment.js locale configuration
  6139. hooks.defineLocale('en-ie', {
  6140. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6141. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6142. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6143. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6144. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6145. longDateFormat : {
  6146. LT : 'HH:mm',
  6147. LTS : 'HH:mm:ss',
  6148. L : 'DD/MM/YYYY',
  6149. LL : 'D MMMM YYYY',
  6150. LLL : 'D MMMM YYYY HH:mm',
  6151. LLLL : 'dddd D MMMM YYYY HH:mm'
  6152. },
  6153. calendar : {
  6154. sameDay : '[Today at] LT',
  6155. nextDay : '[Tomorrow at] LT',
  6156. nextWeek : 'dddd [at] LT',
  6157. lastDay : '[Yesterday at] LT',
  6158. lastWeek : '[Last] dddd [at] LT',
  6159. sameElse : 'L'
  6160. },
  6161. relativeTime : {
  6162. future : 'in %s',
  6163. past : '%s ago',
  6164. s : 'a few seconds',
  6165. ss : '%d seconds',
  6166. m : 'a minute',
  6167. mm : '%d minutes',
  6168. h : 'an hour',
  6169. hh : '%d hours',
  6170. d : 'a day',
  6171. dd : '%d days',
  6172. M : 'a month',
  6173. MM : '%d months',
  6174. y : 'a year',
  6175. yy : '%d years'
  6176. },
  6177. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6178. ordinal : function (number) {
  6179. var b = number % 10,
  6180. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6181. (b === 1) ? 'st' :
  6182. (b === 2) ? 'nd' :
  6183. (b === 3) ? 'rd' : 'th';
  6184. return number + output;
  6185. },
  6186. week : {
  6187. dow : 1, // Monday is the first day of the week.
  6188. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6189. }
  6190. });
  6191. //! moment.js locale configuration
  6192. hooks.defineLocale('en-il', {
  6193. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6194. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6195. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6196. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6197. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6198. longDateFormat : {
  6199. LT : 'HH:mm',
  6200. LTS : 'HH:mm:ss',
  6201. L : 'DD/MM/YYYY',
  6202. LL : 'D MMMM YYYY',
  6203. LLL : 'D MMMM YYYY HH:mm',
  6204. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6205. },
  6206. calendar : {
  6207. sameDay : '[Today at] LT',
  6208. nextDay : '[Tomorrow at] LT',
  6209. nextWeek : 'dddd [at] LT',
  6210. lastDay : '[Yesterday at] LT',
  6211. lastWeek : '[Last] dddd [at] LT',
  6212. sameElse : 'L'
  6213. },
  6214. relativeTime : {
  6215. future : 'in %s',
  6216. past : '%s ago',
  6217. s : 'a few seconds',
  6218. m : 'a minute',
  6219. mm : '%d minutes',
  6220. h : 'an hour',
  6221. hh : '%d hours',
  6222. d : 'a day',
  6223. dd : '%d days',
  6224. M : 'a month',
  6225. MM : '%d months',
  6226. y : 'a year',
  6227. yy : '%d years'
  6228. },
  6229. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6230. ordinal : function (number) {
  6231. var b = number % 10,
  6232. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6233. (b === 1) ? 'st' :
  6234. (b === 2) ? 'nd' :
  6235. (b === 3) ? 'rd' : 'th';
  6236. return number + output;
  6237. }
  6238. });
  6239. //! moment.js locale configuration
  6240. hooks.defineLocale('en-nz', {
  6241. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6242. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6243. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6244. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6245. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6246. longDateFormat : {
  6247. LT : 'h:mm A',
  6248. LTS : 'h:mm:ss A',
  6249. L : 'DD/MM/YYYY',
  6250. LL : 'D MMMM YYYY',
  6251. LLL : 'D MMMM YYYY h:mm A',
  6252. LLLL : 'dddd, D MMMM YYYY h:mm A'
  6253. },
  6254. calendar : {
  6255. sameDay : '[Today at] LT',
  6256. nextDay : '[Tomorrow at] LT',
  6257. nextWeek : 'dddd [at] LT',
  6258. lastDay : '[Yesterday at] LT',
  6259. lastWeek : '[Last] dddd [at] LT',
  6260. sameElse : 'L'
  6261. },
  6262. relativeTime : {
  6263. future : 'in %s',
  6264. past : '%s ago',
  6265. s : 'a few seconds',
  6266. ss : '%d seconds',
  6267. m : 'a minute',
  6268. mm : '%d minutes',
  6269. h : 'an hour',
  6270. hh : '%d hours',
  6271. d : 'a day',
  6272. dd : '%d days',
  6273. M : 'a month',
  6274. MM : '%d months',
  6275. y : 'a year',
  6276. yy : '%d years'
  6277. },
  6278. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6279. ordinal : function (number) {
  6280. var b = number % 10,
  6281. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6282. (b === 1) ? 'st' :
  6283. (b === 2) ? 'nd' :
  6284. (b === 3) ? 'rd' : 'th';
  6285. return number + output;
  6286. },
  6287. week : {
  6288. dow : 1, // Monday is the first day of the week.
  6289. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6290. }
  6291. });
  6292. //! moment.js locale configuration
  6293. hooks.defineLocale('eo', {
  6294. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  6295. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  6296. weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  6297. weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  6298. weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  6299. longDateFormat : {
  6300. LT : 'HH:mm',
  6301. LTS : 'HH:mm:ss',
  6302. L : 'YYYY-MM-DD',
  6303. LL : 'D[-a de] MMMM, YYYY',
  6304. LLL : 'D[-a de] MMMM, YYYY HH:mm',
  6305. LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
  6306. },
  6307. meridiemParse: /[ap]\.t\.m/i,
  6308. isPM: function (input) {
  6309. return input.charAt(0).toLowerCase() === 'p';
  6310. },
  6311. meridiem : function (hours, minutes, isLower) {
  6312. if (hours > 11) {
  6313. return isLower ? 'p.t.m.' : 'P.T.M.';
  6314. } else {
  6315. return isLower ? 'a.t.m.' : 'A.T.M.';
  6316. }
  6317. },
  6318. calendar : {
  6319. sameDay : '[Hodiaŭ je] LT',
  6320. nextDay : '[Morgaŭ je] LT',
  6321. nextWeek : 'dddd [je] LT',
  6322. lastDay : '[Hieraŭ je] LT',
  6323. lastWeek : '[pasinta] dddd [je] LT',
  6324. sameElse : 'L'
  6325. },
  6326. relativeTime : {
  6327. future : 'post %s',
  6328. past : 'antaŭ %s',
  6329. s : 'sekundoj',
  6330. ss : '%d sekundoj',
  6331. m : 'minuto',
  6332. mm : '%d minutoj',
  6333. h : 'horo',
  6334. hh : '%d horoj',
  6335. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  6336. dd : '%d tagoj',
  6337. M : 'monato',
  6338. MM : '%d monatoj',
  6339. y : 'jaro',
  6340. yy : '%d jaroj'
  6341. },
  6342. dayOfMonthOrdinalParse: /\d{1,2}a/,
  6343. ordinal : '%da',
  6344. week : {
  6345. dow : 1, // Monday is the first day of the week.
  6346. doy : 7 // The week that contains Jan 7th is the first week of the year.
  6347. }
  6348. });
  6349. //! moment.js locale configuration
  6350. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  6351. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6352. var monthsParse$1 = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  6353. var monthsRegex$2 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  6354. hooks.defineLocale('es-do', {
  6355. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6356. monthsShort : function (m, format) {
  6357. if (!m) {
  6358. return monthsShortDot;
  6359. } else if (/-MMM-/.test(format)) {
  6360. return monthsShort$1[m.month()];
  6361. } else {
  6362. return monthsShortDot[m.month()];
  6363. }
  6364. },
  6365. monthsRegex: monthsRegex$2,
  6366. monthsShortRegex: monthsRegex$2,
  6367. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  6368. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  6369. monthsParse: monthsParse$1,
  6370. longMonthsParse: monthsParse$1,
  6371. shortMonthsParse: monthsParse$1,
  6372. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6373. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6374. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6375. weekdaysParseExact : true,
  6376. longDateFormat : {
  6377. LT : 'h:mm A',
  6378. LTS : 'h:mm:ss A',
  6379. L : 'DD/MM/YYYY',
  6380. LL : 'D [de] MMMM [de] YYYY',
  6381. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  6382. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  6383. },
  6384. calendar : {
  6385. sameDay : function () {
  6386. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6387. },
  6388. nextDay : function () {
  6389. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6390. },
  6391. nextWeek : function () {
  6392. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6393. },
  6394. lastDay : function () {
  6395. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6396. },
  6397. lastWeek : function () {
  6398. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6399. },
  6400. sameElse : 'L'
  6401. },
  6402. relativeTime : {
  6403. future : 'en %s',
  6404. past : 'hace %s',
  6405. s : 'unos segundos',
  6406. ss : '%d segundos',
  6407. m : 'un minuto',
  6408. mm : '%d minutos',
  6409. h : 'una hora',
  6410. hh : '%d horas',
  6411. d : 'un día',
  6412. dd : '%d días',
  6413. M : 'un mes',
  6414. MM : '%d meses',
  6415. y : 'un año',
  6416. yy : '%d años'
  6417. },
  6418. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6419. ordinal : '%dº',
  6420. week : {
  6421. dow : 1, // Monday is the first day of the week.
  6422. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6423. }
  6424. });
  6425. //! moment.js locale configuration
  6426. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  6427. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6428. var monthsParse$2 = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  6429. var monthsRegex$3 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  6430. hooks.defineLocale('es-us', {
  6431. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6432. monthsShort : function (m, format) {
  6433. if (!m) {
  6434. return monthsShortDot$1;
  6435. } else if (/-MMM-/.test(format)) {
  6436. return monthsShort$2[m.month()];
  6437. } else {
  6438. return monthsShortDot$1[m.month()];
  6439. }
  6440. },
  6441. monthsRegex: monthsRegex$3,
  6442. monthsShortRegex: monthsRegex$3,
  6443. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  6444. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  6445. monthsParse: monthsParse$2,
  6446. longMonthsParse: monthsParse$2,
  6447. shortMonthsParse: monthsParse$2,
  6448. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6449. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6450. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6451. weekdaysParseExact : true,
  6452. longDateFormat : {
  6453. LT : 'h:mm A',
  6454. LTS : 'h:mm:ss A',
  6455. L : 'MM/DD/YYYY',
  6456. LL : 'D [de] MMMM [de] YYYY',
  6457. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  6458. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  6459. },
  6460. calendar : {
  6461. sameDay : function () {
  6462. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6463. },
  6464. nextDay : function () {
  6465. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6466. },
  6467. nextWeek : function () {
  6468. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6469. },
  6470. lastDay : function () {
  6471. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6472. },
  6473. lastWeek : function () {
  6474. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6475. },
  6476. sameElse : 'L'
  6477. },
  6478. relativeTime : {
  6479. future : 'en %s',
  6480. past : 'hace %s',
  6481. s : 'unos segundos',
  6482. ss : '%d segundos',
  6483. m : 'un minuto',
  6484. mm : '%d minutos',
  6485. h : 'una hora',
  6486. hh : '%d horas',
  6487. d : 'un día',
  6488. dd : '%d días',
  6489. M : 'un mes',
  6490. MM : '%d meses',
  6491. y : 'un año',
  6492. yy : '%d años'
  6493. },
  6494. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6495. ordinal : '%dº',
  6496. week : {
  6497. dow : 0, // Sunday is the first day of the week.
  6498. doy : 6 // The week that contains Jan 6th is the first week of the year.
  6499. }
  6500. });
  6501. //! moment.js locale configuration
  6502. var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  6503. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6504. var monthsParse$3 = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  6505. var monthsRegex$4 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  6506. hooks.defineLocale('es', {
  6507. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6508. monthsShort : function (m, format) {
  6509. if (!m) {
  6510. return monthsShortDot$2;
  6511. } else if (/-MMM-/.test(format)) {
  6512. return monthsShort$3[m.month()];
  6513. } else {
  6514. return monthsShortDot$2[m.month()];
  6515. }
  6516. },
  6517. monthsRegex : monthsRegex$4,
  6518. monthsShortRegex : monthsRegex$4,
  6519. monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  6520. monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  6521. monthsParse : monthsParse$3,
  6522. longMonthsParse : monthsParse$3,
  6523. shortMonthsParse : monthsParse$3,
  6524. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6525. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6526. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6527. weekdaysParseExact : true,
  6528. longDateFormat : {
  6529. LT : 'H:mm',
  6530. LTS : 'H:mm:ss',
  6531. L : 'DD/MM/YYYY',
  6532. LL : 'D [de] MMMM [de] YYYY',
  6533. LLL : 'D [de] MMMM [de] YYYY H:mm',
  6534. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  6535. },
  6536. calendar : {
  6537. sameDay : function () {
  6538. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6539. },
  6540. nextDay : function () {
  6541. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6542. },
  6543. nextWeek : function () {
  6544. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6545. },
  6546. lastDay : function () {
  6547. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6548. },
  6549. lastWeek : function () {
  6550. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6551. },
  6552. sameElse : 'L'
  6553. },
  6554. relativeTime : {
  6555. future : 'en %s',
  6556. past : 'hace %s',
  6557. s : 'unos segundos',
  6558. ss : '%d segundos',
  6559. m : 'un minuto',
  6560. mm : '%d minutos',
  6561. h : 'una hora',
  6562. hh : '%d horas',
  6563. d : 'un día',
  6564. dd : '%d días',
  6565. M : 'un mes',
  6566. MM : '%d meses',
  6567. y : 'un año',
  6568. yy : '%d años'
  6569. },
  6570. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6571. ordinal : '%dº',
  6572. week : {
  6573. dow : 1, // Monday is the first day of the week.
  6574. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6575. }
  6576. });
  6577. //! moment.js locale configuration
  6578. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  6579. var format = {
  6580. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  6581. 'ss': [number + 'sekundi', number + 'sekundit'],
  6582. 'm' : ['ühe minuti', 'üks minut'],
  6583. 'mm': [number + ' minuti', number + ' minutit'],
  6584. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  6585. 'hh': [number + ' tunni', number + ' tundi'],
  6586. 'd' : ['ühe päeva', 'üks päev'],
  6587. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  6588. 'MM': [number + ' kuu', number + ' kuud'],
  6589. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  6590. 'yy': [number + ' aasta', number + ' aastat']
  6591. };
  6592. if (withoutSuffix) {
  6593. return format[key][2] ? format[key][2] : format[key][1];
  6594. }
  6595. return isFuture ? format[key][0] : format[key][1];
  6596. }
  6597. hooks.defineLocale('et', {
  6598. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  6599. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  6600. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  6601. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  6602. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  6603. longDateFormat : {
  6604. LT : 'H:mm',
  6605. LTS : 'H:mm:ss',
  6606. L : 'DD.MM.YYYY',
  6607. LL : 'D. MMMM YYYY',
  6608. LLL : 'D. MMMM YYYY H:mm',
  6609. LLLL : 'dddd, D. MMMM YYYY H:mm'
  6610. },
  6611. calendar : {
  6612. sameDay : '[Täna,] LT',
  6613. nextDay : '[Homme,] LT',
  6614. nextWeek : '[Järgmine] dddd LT',
  6615. lastDay : '[Eile,] LT',
  6616. lastWeek : '[Eelmine] dddd LT',
  6617. sameElse : 'L'
  6618. },
  6619. relativeTime : {
  6620. future : '%s pärast',
  6621. past : '%s tagasi',
  6622. s : processRelativeTime$3,
  6623. ss : processRelativeTime$3,
  6624. m : processRelativeTime$3,
  6625. mm : processRelativeTime$3,
  6626. h : processRelativeTime$3,
  6627. hh : processRelativeTime$3,
  6628. d : processRelativeTime$3,
  6629. dd : '%d päeva',
  6630. M : processRelativeTime$3,
  6631. MM : processRelativeTime$3,
  6632. y : processRelativeTime$3,
  6633. yy : processRelativeTime$3
  6634. },
  6635. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6636. ordinal : '%d.',
  6637. week : {
  6638. dow : 1, // Monday is the first day of the week.
  6639. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6640. }
  6641. });
  6642. //! moment.js locale configuration
  6643. hooks.defineLocale('eu', {
  6644. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  6645. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  6646. monthsParseExact : true,
  6647. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  6648. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  6649. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  6650. weekdaysParseExact : true,
  6651. longDateFormat : {
  6652. LT : 'HH:mm',
  6653. LTS : 'HH:mm:ss',
  6654. L : 'YYYY-MM-DD',
  6655. LL : 'YYYY[ko] MMMM[ren] D[a]',
  6656. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  6657. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  6658. l : 'YYYY-M-D',
  6659. ll : 'YYYY[ko] MMM D[a]',
  6660. lll : 'YYYY[ko] MMM D[a] HH:mm',
  6661. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  6662. },
  6663. calendar : {
  6664. sameDay : '[gaur] LT[etan]',
  6665. nextDay : '[bihar] LT[etan]',
  6666. nextWeek : 'dddd LT[etan]',
  6667. lastDay : '[atzo] LT[etan]',
  6668. lastWeek : '[aurreko] dddd LT[etan]',
  6669. sameElse : 'L'
  6670. },
  6671. relativeTime : {
  6672. future : '%s barru',
  6673. past : 'duela %s',
  6674. s : 'segundo batzuk',
  6675. ss : '%d segundo',
  6676. m : 'minutu bat',
  6677. mm : '%d minutu',
  6678. h : 'ordu bat',
  6679. hh : '%d ordu',
  6680. d : 'egun bat',
  6681. dd : '%d egun',
  6682. M : 'hilabete bat',
  6683. MM : '%d hilabete',
  6684. y : 'urte bat',
  6685. yy : '%d urte'
  6686. },
  6687. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6688. ordinal : '%d.',
  6689. week : {
  6690. dow : 1, // Monday is the first day of the week.
  6691. doy : 7 // The week that contains Jan 7th is the first week of the year.
  6692. }
  6693. });
  6694. //! moment.js locale configuration
  6695. var symbolMap$5 = {
  6696. '1': '۱',
  6697. '2': '۲',
  6698. '3': '۳',
  6699. '4': '۴',
  6700. '5': '۵',
  6701. '6': '۶',
  6702. '7': '۷',
  6703. '8': '۸',
  6704. '9': '۹',
  6705. '0': '۰'
  6706. }, numberMap$4 = {
  6707. '۱': '1',
  6708. '۲': '2',
  6709. '۳': '3',
  6710. '۴': '4',
  6711. '۵': '5',
  6712. '۶': '6',
  6713. '۷': '7',
  6714. '۸': '8',
  6715. '۹': '9',
  6716. '۰': '0'
  6717. };
  6718. hooks.defineLocale('fa', {
  6719. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6720. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6721. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6722. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6723. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  6724. weekdaysParseExact : true,
  6725. longDateFormat : {
  6726. LT : 'HH:mm',
  6727. LTS : 'HH:mm:ss',
  6728. L : 'DD/MM/YYYY',
  6729. LL : 'D MMMM YYYY',
  6730. LLL : 'D MMMM YYYY HH:mm',
  6731. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6732. },
  6733. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  6734. isPM: function (input) {
  6735. return /بعد از ظهر/.test(input);
  6736. },
  6737. meridiem : function (hour, minute, isLower) {
  6738. if (hour < 12) {
  6739. return 'قبل از ظهر';
  6740. } else {
  6741. return 'بعد از ظهر';
  6742. }
  6743. },
  6744. calendar : {
  6745. sameDay : '[امروز ساعت] LT',
  6746. nextDay : '[فردا ساعت] LT',
  6747. nextWeek : 'dddd [ساعت] LT',
  6748. lastDay : '[دیروز ساعت] LT',
  6749. lastWeek : 'dddd [پیش] [ساعت] LT',
  6750. sameElse : 'L'
  6751. },
  6752. relativeTime : {
  6753. future : 'در %s',
  6754. past : '%s پیش',
  6755. s : 'چند ثانیه',
  6756. ss : 'ثانیه d%',
  6757. m : 'یک دقیقه',
  6758. mm : '%d دقیقه',
  6759. h : 'یک ساعت',
  6760. hh : '%d ساعت',
  6761. d : 'یک روز',
  6762. dd : '%d روز',
  6763. M : 'یک ماه',
  6764. MM : '%d ماه',
  6765. y : 'یک سال',
  6766. yy : '%d سال'
  6767. },
  6768. preparse: function (string) {
  6769. return string.replace(/[۰-۹]/g, function (match) {
  6770. return numberMap$4[match];
  6771. }).replace(/،/g, ',');
  6772. },
  6773. postformat: function (string) {
  6774. return string.replace(/\d/g, function (match) {
  6775. return symbolMap$5[match];
  6776. }).replace(/,/g, '،');
  6777. },
  6778. dayOfMonthOrdinalParse: /\d{1,2}م/,
  6779. ordinal : '%dم',
  6780. week : {
  6781. dow : 6, // Saturday is the first day of the week.
  6782. doy : 12 // The week that contains Jan 12th is the first week of the year.
  6783. }
  6784. });
  6785. //! moment.js locale configuration
  6786. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  6787. numbersFuture = [
  6788. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  6789. numbersPast[7], numbersPast[8], numbersPast[9]
  6790. ];
  6791. function translate$2(number, withoutSuffix, key, isFuture) {
  6792. var result = '';
  6793. switch (key) {
  6794. case 's':
  6795. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  6796. case 'ss':
  6797. return isFuture ? 'sekunnin' : 'sekuntia';
  6798. case 'm':
  6799. return isFuture ? 'minuutin' : 'minuutti';
  6800. case 'mm':
  6801. result = isFuture ? 'minuutin' : 'minuuttia';
  6802. break;
  6803. case 'h':
  6804. return isFuture ? 'tunnin' : 'tunti';
  6805. case 'hh':
  6806. result = isFuture ? 'tunnin' : 'tuntia';
  6807. break;
  6808. case 'd':
  6809. return isFuture ? 'päivän' : 'päivä';
  6810. case 'dd':
  6811. result = isFuture ? 'päivän' : 'päivää';
  6812. break;
  6813. case 'M':
  6814. return isFuture ? 'kuukauden' : 'kuukausi';
  6815. case 'MM':
  6816. result = isFuture ? 'kuukauden' : 'kuukautta';
  6817. break;
  6818. case 'y':
  6819. return isFuture ? 'vuoden' : 'vuosi';
  6820. case 'yy':
  6821. result = isFuture ? 'vuoden' : 'vuotta';
  6822. break;
  6823. }
  6824. result = verbalNumber(number, isFuture) + ' ' + result;
  6825. return result;
  6826. }
  6827. function verbalNumber(number, isFuture) {
  6828. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  6829. }
  6830. hooks.defineLocale('fi', {
  6831. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  6832. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  6833. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  6834. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6835. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6836. longDateFormat : {
  6837. LT : 'HH.mm',
  6838. LTS : 'HH.mm.ss',
  6839. L : 'DD.MM.YYYY',
  6840. LL : 'Do MMMM[ta] YYYY',
  6841. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  6842. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  6843. l : 'D.M.YYYY',
  6844. ll : 'Do MMM YYYY',
  6845. lll : 'Do MMM YYYY, [klo] HH.mm',
  6846. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  6847. },
  6848. calendar : {
  6849. sameDay : '[tänään] [klo] LT',
  6850. nextDay : '[huomenna] [klo] LT',
  6851. nextWeek : 'dddd [klo] LT',
  6852. lastDay : '[eilen] [klo] LT',
  6853. lastWeek : '[viime] dddd[na] [klo] LT',
  6854. sameElse : 'L'
  6855. },
  6856. relativeTime : {
  6857. future : '%s päästä',
  6858. past : '%s sitten',
  6859. s : translate$2,
  6860. ss : translate$2,
  6861. m : translate$2,
  6862. mm : translate$2,
  6863. h : translate$2,
  6864. hh : translate$2,
  6865. d : translate$2,
  6866. dd : translate$2,
  6867. M : translate$2,
  6868. MM : translate$2,
  6869. y : translate$2,
  6870. yy : translate$2
  6871. },
  6872. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6873. ordinal : '%d.',
  6874. week : {
  6875. dow : 1, // Monday is the first day of the week.
  6876. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6877. }
  6878. });
  6879. //! moment.js locale configuration
  6880. hooks.defineLocale('fo', {
  6881. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  6882. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  6883. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  6884. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  6885. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  6886. longDateFormat : {
  6887. LT : 'HH:mm',
  6888. LTS : 'HH:mm:ss',
  6889. L : 'DD/MM/YYYY',
  6890. LL : 'D MMMM YYYY',
  6891. LLL : 'D MMMM YYYY HH:mm',
  6892. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  6893. },
  6894. calendar : {
  6895. sameDay : '[Í dag kl.] LT',
  6896. nextDay : '[Í morgin kl.] LT',
  6897. nextWeek : 'dddd [kl.] LT',
  6898. lastDay : '[Í gjár kl.] LT',
  6899. lastWeek : '[síðstu] dddd [kl] LT',
  6900. sameElse : 'L'
  6901. },
  6902. relativeTime : {
  6903. future : 'um %s',
  6904. past : '%s síðani',
  6905. s : 'fá sekund',
  6906. ss : '%d sekundir',
  6907. m : 'ein minuttur',
  6908. mm : '%d minuttir',
  6909. h : 'ein tími',
  6910. hh : '%d tímar',
  6911. d : 'ein dagur',
  6912. dd : '%d dagar',
  6913. M : 'ein mánaður',
  6914. MM : '%d mánaðir',
  6915. y : 'eitt ár',
  6916. yy : '%d ár'
  6917. },
  6918. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6919. ordinal : '%d.',
  6920. week : {
  6921. dow : 1, // Monday is the first day of the week.
  6922. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6923. }
  6924. });
  6925. //! moment.js locale configuration
  6926. hooks.defineLocale('fr-ca', {
  6927. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6928. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6929. monthsParseExact : true,
  6930. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6931. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6932. weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
  6933. weekdaysParseExact : true,
  6934. longDateFormat : {
  6935. LT : 'HH:mm',
  6936. LTS : 'HH:mm:ss',
  6937. L : 'YYYY-MM-DD',
  6938. LL : 'D MMMM YYYY',
  6939. LLL : 'D MMMM YYYY HH:mm',
  6940. LLLL : 'dddd D MMMM YYYY HH:mm'
  6941. },
  6942. calendar : {
  6943. sameDay : '[Aujourd’hui à] LT',
  6944. nextDay : '[Demain à] LT',
  6945. nextWeek : 'dddd [à] LT',
  6946. lastDay : '[Hier à] LT',
  6947. lastWeek : 'dddd [dernier à] LT',
  6948. sameElse : 'L'
  6949. },
  6950. relativeTime : {
  6951. future : 'dans %s',
  6952. past : 'il y a %s',
  6953. s : 'quelques secondes',
  6954. ss : '%d secondes',
  6955. m : 'une minute',
  6956. mm : '%d minutes',
  6957. h : 'une heure',
  6958. hh : '%d heures',
  6959. d : 'un jour',
  6960. dd : '%d jours',
  6961. M : 'un mois',
  6962. MM : '%d mois',
  6963. y : 'un an',
  6964. yy : '%d ans'
  6965. },
  6966. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  6967. ordinal : function (number, period) {
  6968. switch (period) {
  6969. // Words with masculine grammatical gender: mois, trimestre, jour
  6970. default:
  6971. case 'M':
  6972. case 'Q':
  6973. case 'D':
  6974. case 'DDD':
  6975. case 'd':
  6976. return number + (number === 1 ? 'er' : 'e');
  6977. // Words with feminine grammatical gender: semaine
  6978. case 'w':
  6979. case 'W':
  6980. return number + (number === 1 ? 're' : 'e');
  6981. }
  6982. }
  6983. });
  6984. //! moment.js locale configuration
  6985. hooks.defineLocale('fr-ch', {
  6986. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6987. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6988. monthsParseExact : true,
  6989. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6990. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6991. weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
  6992. weekdaysParseExact : true,
  6993. longDateFormat : {
  6994. LT : 'HH:mm',
  6995. LTS : 'HH:mm:ss',
  6996. L : 'DD.MM.YYYY',
  6997. LL : 'D MMMM YYYY',
  6998. LLL : 'D MMMM YYYY HH:mm',
  6999. LLLL : 'dddd D MMMM YYYY HH:mm'
  7000. },
  7001. calendar : {
  7002. sameDay : '[Aujourd’hui à] LT',
  7003. nextDay : '[Demain à] LT',
  7004. nextWeek : 'dddd [à] LT',
  7005. lastDay : '[Hier à] LT',
  7006. lastWeek : 'dddd [dernier à] LT',
  7007. sameElse : 'L'
  7008. },
  7009. relativeTime : {
  7010. future : 'dans %s',
  7011. past : 'il y a %s',
  7012. s : 'quelques secondes',
  7013. ss : '%d secondes',
  7014. m : 'une minute',
  7015. mm : '%d minutes',
  7016. h : 'une heure',
  7017. hh : '%d heures',
  7018. d : 'un jour',
  7019. dd : '%d jours',
  7020. M : 'un mois',
  7021. MM : '%d mois',
  7022. y : 'un an',
  7023. yy : '%d ans'
  7024. },
  7025. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  7026. ordinal : function (number, period) {
  7027. switch (period) {
  7028. // Words with masculine grammatical gender: mois, trimestre, jour
  7029. default:
  7030. case 'M':
  7031. case 'Q':
  7032. case 'D':
  7033. case 'DDD':
  7034. case 'd':
  7035. return number + (number === 1 ? 'er' : 'e');
  7036. // Words with feminine grammatical gender: semaine
  7037. case 'w':
  7038. case 'W':
  7039. return number + (number === 1 ? 're' : 'e');
  7040. }
  7041. },
  7042. week : {
  7043. dow : 1, // Monday is the first day of the week.
  7044. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7045. }
  7046. });
  7047. //! moment.js locale configuration
  7048. hooks.defineLocale('fr', {
  7049. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  7050. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  7051. monthsParseExact : true,
  7052. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  7053. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  7054. weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
  7055. weekdaysParseExact : true,
  7056. longDateFormat : {
  7057. LT : 'HH:mm',
  7058. LTS : 'HH:mm:ss',
  7059. L : 'DD/MM/YYYY',
  7060. LL : 'D MMMM YYYY',
  7061. LLL : 'D MMMM YYYY HH:mm',
  7062. LLLL : 'dddd D MMMM YYYY HH:mm'
  7063. },
  7064. calendar : {
  7065. sameDay : '[Aujourd’hui à] LT',
  7066. nextDay : '[Demain à] LT',
  7067. nextWeek : 'dddd [à] LT',
  7068. lastDay : '[Hier à] LT',
  7069. lastWeek : 'dddd [dernier à] LT',
  7070. sameElse : 'L'
  7071. },
  7072. relativeTime : {
  7073. future : 'dans %s',
  7074. past : 'il y a %s',
  7075. s : 'quelques secondes',
  7076. ss : '%d secondes',
  7077. m : 'une minute',
  7078. mm : '%d minutes',
  7079. h : 'une heure',
  7080. hh : '%d heures',
  7081. d : 'un jour',
  7082. dd : '%d jours',
  7083. M : 'un mois',
  7084. MM : '%d mois',
  7085. y : 'un an',
  7086. yy : '%d ans'
  7087. },
  7088. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  7089. ordinal : function (number, period) {
  7090. switch (period) {
  7091. // TODO: Return 'e' when day of month > 1. Move this case inside
  7092. // block for masculine words below.
  7093. // See https://github.com/moment/moment/issues/3375
  7094. case 'D':
  7095. return number + (number === 1 ? 'er' : '');
  7096. // Words with masculine grammatical gender: mois, trimestre, jour
  7097. default:
  7098. case 'M':
  7099. case 'Q':
  7100. case 'DDD':
  7101. case 'd':
  7102. return number + (number === 1 ? 'er' : 'e');
  7103. // Words with feminine grammatical gender: semaine
  7104. case 'w':
  7105. case 'W':
  7106. return number + (number === 1 ? 're' : 'e');
  7107. }
  7108. },
  7109. week : {
  7110. dow : 1, // Monday is the first day of the week.
  7111. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7112. }
  7113. });
  7114. //! moment.js locale configuration
  7115. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  7116. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  7117. hooks.defineLocale('fy', {
  7118. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  7119. monthsShort : function (m, format) {
  7120. if (!m) {
  7121. return monthsShortWithDots;
  7122. } else if (/-MMM-/.test(format)) {
  7123. return monthsShortWithoutDots[m.month()];
  7124. } else {
  7125. return monthsShortWithDots[m.month()];
  7126. }
  7127. },
  7128. monthsParseExact : true,
  7129. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  7130. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  7131. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  7132. weekdaysParseExact : true,
  7133. longDateFormat : {
  7134. LT : 'HH:mm',
  7135. LTS : 'HH:mm:ss',
  7136. L : 'DD-MM-YYYY',
  7137. LL : 'D MMMM YYYY',
  7138. LLL : 'D MMMM YYYY HH:mm',
  7139. LLLL : 'dddd D MMMM YYYY HH:mm'
  7140. },
  7141. calendar : {
  7142. sameDay: '[hjoed om] LT',
  7143. nextDay: '[moarn om] LT',
  7144. nextWeek: 'dddd [om] LT',
  7145. lastDay: '[juster om] LT',
  7146. lastWeek: '[ôfrûne] dddd [om] LT',
  7147. sameElse: 'L'
  7148. },
  7149. relativeTime : {
  7150. future : 'oer %s',
  7151. past : '%s lyn',
  7152. s : 'in pear sekonden',
  7153. ss : '%d sekonden',
  7154. m : 'ien minút',
  7155. mm : '%d minuten',
  7156. h : 'ien oere',
  7157. hh : '%d oeren',
  7158. d : 'ien dei',
  7159. dd : '%d dagen',
  7160. M : 'ien moanne',
  7161. MM : '%d moannen',
  7162. y : 'ien jier',
  7163. yy : '%d jierren'
  7164. },
  7165. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  7166. ordinal : function (number) {
  7167. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  7168. },
  7169. week : {
  7170. dow : 1, // Monday is the first day of the week.
  7171. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7172. }
  7173. });
  7174. //! moment.js locale configuration
  7175. var months$5 = [
  7176. 'Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Méitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deaireadh Fómhair', 'Samhain', 'Nollaig'
  7177. ];
  7178. var monthsShort$4 = ['Eaná', 'Feab', 'Márt', 'Aibr', 'Beal', 'Méit', 'Iúil', 'Lúna', 'Meán', 'Deai', 'Samh', 'Noll'];
  7179. var weekdays$1 = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Satharn'];
  7180. var weekdaysShort = ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'];
  7181. var weekdaysMin = ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'];
  7182. hooks.defineLocale('ga', {
  7183. months: months$5,
  7184. monthsShort: monthsShort$4,
  7185. monthsParseExact: true,
  7186. weekdays: weekdays$1,
  7187. weekdaysShort: weekdaysShort,
  7188. weekdaysMin: weekdaysMin,
  7189. longDateFormat: {
  7190. LT: 'HH:mm',
  7191. LTS: 'HH:mm:ss',
  7192. L: 'DD/MM/YYYY',
  7193. LL: 'D MMMM YYYY',
  7194. LLL: 'D MMMM YYYY HH:mm',
  7195. LLLL: 'dddd, D MMMM YYYY HH:mm'
  7196. },
  7197. calendar: {
  7198. sameDay: '[Inniu ag] LT',
  7199. nextDay: '[Amárach ag] LT',
  7200. nextWeek: 'dddd [ag] LT',
  7201. lastDay: '[Inné aig] LT',
  7202. lastWeek: 'dddd [seo caite] [ag] LT',
  7203. sameElse: 'L'
  7204. },
  7205. relativeTime: {
  7206. future: 'i %s',
  7207. past: '%s ó shin',
  7208. s: 'cúpla soicind',
  7209. ss: '%d soicind',
  7210. m: 'nóiméad',
  7211. mm: '%d nóiméad',
  7212. h: 'uair an chloig',
  7213. hh: '%d uair an chloig',
  7214. d: 'lá',
  7215. dd: '%d lá',
  7216. M: 'mí',
  7217. MM: '%d mí',
  7218. y: 'bliain',
  7219. yy: '%d bliain'
  7220. },
  7221. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  7222. ordinal: function (number) {
  7223. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  7224. return number + output;
  7225. },
  7226. week: {
  7227. dow: 1, // Monday is the first day of the week.
  7228. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7229. }
  7230. });
  7231. //! moment.js locale configuration
  7232. var months$6 = [
  7233. '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'
  7234. ];
  7235. var monthsShort$5 = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  7236. var weekdays$2 = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  7237. var weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  7238. var weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  7239. hooks.defineLocale('gd', {
  7240. months : months$6,
  7241. monthsShort : monthsShort$5,
  7242. monthsParseExact : true,
  7243. weekdays : weekdays$2,
  7244. weekdaysShort : weekdaysShort$1,
  7245. weekdaysMin : weekdaysMin$1,
  7246. longDateFormat : {
  7247. LT : 'HH:mm',
  7248. LTS : 'HH:mm:ss',
  7249. L : 'DD/MM/YYYY',
  7250. LL : 'D MMMM YYYY',
  7251. LLL : 'D MMMM YYYY HH:mm',
  7252. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7253. },
  7254. calendar : {
  7255. sameDay : '[An-diugh aig] LT',
  7256. nextDay : '[A-màireach aig] LT',
  7257. nextWeek : 'dddd [aig] LT',
  7258. lastDay : '[An-dè aig] LT',
  7259. lastWeek : 'dddd [seo chaidh] [aig] LT',
  7260. sameElse : 'L'
  7261. },
  7262. relativeTime : {
  7263. future : 'ann an %s',
  7264. past : 'bho chionn %s',
  7265. s : 'beagan diogan',
  7266. ss : '%d diogan',
  7267. m : 'mionaid',
  7268. mm : '%d mionaidean',
  7269. h : 'uair',
  7270. hh : '%d uairean',
  7271. d : 'latha',
  7272. dd : '%d latha',
  7273. M : 'mìos',
  7274. MM : '%d mìosan',
  7275. y : 'bliadhna',
  7276. yy : '%d bliadhna'
  7277. },
  7278. dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
  7279. ordinal : function (number) {
  7280. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  7281. return number + output;
  7282. },
  7283. week : {
  7284. dow : 1, // Monday is the first day of the week.
  7285. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7286. }
  7287. });
  7288. //! moment.js locale configuration
  7289. hooks.defineLocale('gl', {
  7290. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  7291. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  7292. monthsParseExact: true,
  7293. weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  7294. weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  7295. weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  7296. weekdaysParseExact : true,
  7297. longDateFormat : {
  7298. LT : 'H:mm',
  7299. LTS : 'H:mm:ss',
  7300. L : 'DD/MM/YYYY',
  7301. LL : 'D [de] MMMM [de] YYYY',
  7302. LLL : 'D [de] MMMM [de] YYYY H:mm',
  7303. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  7304. },
  7305. calendar : {
  7306. sameDay : function () {
  7307. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  7308. },
  7309. nextDay : function () {
  7310. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  7311. },
  7312. nextWeek : function () {
  7313. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  7314. },
  7315. lastDay : function () {
  7316. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  7317. },
  7318. lastWeek : function () {
  7319. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  7320. },
  7321. sameElse : 'L'
  7322. },
  7323. relativeTime : {
  7324. future : function (str) {
  7325. if (str.indexOf('un') === 0) {
  7326. return 'n' + str;
  7327. }
  7328. return 'en ' + str;
  7329. },
  7330. past : 'hai %s',
  7331. s : 'uns segundos',
  7332. ss : '%d segundos',
  7333. m : 'un minuto',
  7334. mm : '%d minutos',
  7335. h : 'unha hora',
  7336. hh : '%d horas',
  7337. d : 'un día',
  7338. dd : '%d días',
  7339. M : 'un mes',
  7340. MM : '%d meses',
  7341. y : 'un ano',
  7342. yy : '%d anos'
  7343. },
  7344. dayOfMonthOrdinalParse : /\d{1,2}º/,
  7345. ordinal : '%dº',
  7346. week : {
  7347. dow : 1, // Monday is the first day of the week.
  7348. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7349. }
  7350. });
  7351. //! moment.js locale configuration
  7352. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  7353. var format = {
  7354. 's': ['thodde secondanim', 'thodde second'],
  7355. 'ss': [number + ' secondanim', number + ' second'],
  7356. 'm': ['eka mintan', 'ek minute'],
  7357. 'mm': [number + ' mintanim', number + ' mintam'],
  7358. 'h': ['eka voran', 'ek vor'],
  7359. 'hh': [number + ' voranim', number + ' voram'],
  7360. 'd': ['eka disan', 'ek dis'],
  7361. 'dd': [number + ' disanim', number + ' dis'],
  7362. 'M': ['eka mhoinean', 'ek mhoino'],
  7363. 'MM': [number + ' mhoineanim', number + ' mhoine'],
  7364. 'y': ['eka vorsan', 'ek voros'],
  7365. 'yy': [number + ' vorsanim', number + ' vorsam']
  7366. };
  7367. return withoutSuffix ? format[key][0] : format[key][1];
  7368. }
  7369. hooks.defineLocale('gom-latn', {
  7370. months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  7371. monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  7372. monthsParseExact : true,
  7373. weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
  7374. weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  7375. weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  7376. weekdaysParseExact : true,
  7377. longDateFormat : {
  7378. LT : 'A h:mm [vazta]',
  7379. LTS : 'A h:mm:ss [vazta]',
  7380. L : 'DD-MM-YYYY',
  7381. LL : 'D MMMM YYYY',
  7382. LLL : 'D MMMM YYYY A h:mm [vazta]',
  7383. LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
  7384. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  7385. },
  7386. calendar : {
  7387. sameDay: '[Aiz] LT',
  7388. nextDay: '[Faleam] LT',
  7389. nextWeek: '[Ieta to] dddd[,] LT',
  7390. lastDay: '[Kal] LT',
  7391. lastWeek: '[Fatlo] dddd[,] LT',
  7392. sameElse: 'L'
  7393. },
  7394. relativeTime : {
  7395. future : '%s',
  7396. past : '%s adim',
  7397. s : processRelativeTime$4,
  7398. ss : processRelativeTime$4,
  7399. m : processRelativeTime$4,
  7400. mm : processRelativeTime$4,
  7401. h : processRelativeTime$4,
  7402. hh : processRelativeTime$4,
  7403. d : processRelativeTime$4,
  7404. dd : processRelativeTime$4,
  7405. M : processRelativeTime$4,
  7406. MM : processRelativeTime$4,
  7407. y : processRelativeTime$4,
  7408. yy : processRelativeTime$4
  7409. },
  7410. dayOfMonthOrdinalParse : /\d{1,2}(er)/,
  7411. ordinal : function (number, period) {
  7412. switch (period) {
  7413. // the ordinal 'er' only applies to day of the month
  7414. case 'D':
  7415. return number + 'er';
  7416. default:
  7417. case 'M':
  7418. case 'Q':
  7419. case 'DDD':
  7420. case 'd':
  7421. case 'w':
  7422. case 'W':
  7423. return number;
  7424. }
  7425. },
  7426. week : {
  7427. dow : 1, // Monday is the first day of the week.
  7428. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7429. },
  7430. meridiemParse: /rati|sokalli|donparam|sanje/,
  7431. meridiemHour : function (hour, meridiem) {
  7432. if (hour === 12) {
  7433. hour = 0;
  7434. }
  7435. if (meridiem === 'rati') {
  7436. return hour < 4 ? hour : hour + 12;
  7437. } else if (meridiem === 'sokalli') {
  7438. return hour;
  7439. } else if (meridiem === 'donparam') {
  7440. return hour > 12 ? hour : hour + 12;
  7441. } else if (meridiem === 'sanje') {
  7442. return hour + 12;
  7443. }
  7444. },
  7445. meridiem : function (hour, minute, isLower) {
  7446. if (hour < 4) {
  7447. return 'rati';
  7448. } else if (hour < 12) {
  7449. return 'sokalli';
  7450. } else if (hour < 16) {
  7451. return 'donparam';
  7452. } else if (hour < 20) {
  7453. return 'sanje';
  7454. } else {
  7455. return 'rati';
  7456. }
  7457. }
  7458. });
  7459. //! moment.js locale configuration
  7460. var symbolMap$6 = {
  7461. '1': '૧',
  7462. '2': '૨',
  7463. '3': '૩',
  7464. '4': '૪',
  7465. '5': '૫',
  7466. '6': '૬',
  7467. '7': '૭',
  7468. '8': '૮',
  7469. '9': '૯',
  7470. '0': '૦'
  7471. },
  7472. numberMap$5 = {
  7473. '૧': '1',
  7474. '૨': '2',
  7475. '૩': '3',
  7476. '૪': '4',
  7477. '૫': '5',
  7478. '૬': '6',
  7479. '૭': '7',
  7480. '૮': '8',
  7481. '૯': '9',
  7482. '૦': '0'
  7483. };
  7484. hooks.defineLocale('gu', {
  7485. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
  7486. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
  7487. monthsParseExact: true,
  7488. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
  7489. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  7490. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  7491. longDateFormat: {
  7492. LT: 'A h:mm વાગ્યે',
  7493. LTS: 'A h:mm:ss વાગ્યે',
  7494. L: 'DD/MM/YYYY',
  7495. LL: 'D MMMM YYYY',
  7496. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  7497. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
  7498. },
  7499. calendar: {
  7500. sameDay: '[આજ] LT',
  7501. nextDay: '[કાલે] LT',
  7502. nextWeek: 'dddd, LT',
  7503. lastDay: '[ગઇકાલે] LT',
  7504. lastWeek: '[પાછલા] dddd, LT',
  7505. sameElse: 'L'
  7506. },
  7507. relativeTime: {
  7508. future: '%s મા',
  7509. past: '%s પેહલા',
  7510. s: 'અમુક પળો',
  7511. ss: '%d સેકંડ',
  7512. m: 'એક મિનિટ',
  7513. mm: '%d મિનિટ',
  7514. h: 'એક કલાક',
  7515. hh: '%d કલાક',
  7516. d: 'એક દિવસ',
  7517. dd: '%d દિવસ',
  7518. M: 'એક મહિનો',
  7519. MM: '%d મહિનો',
  7520. y: 'એક વર્ષ',
  7521. yy: '%d વર્ષ'
  7522. },
  7523. preparse: function (string) {
  7524. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  7525. return numberMap$5[match];
  7526. });
  7527. },
  7528. postformat: function (string) {
  7529. return string.replace(/\d/g, function (match) {
  7530. return symbolMap$6[match];
  7531. });
  7532. },
  7533. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  7534. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  7535. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  7536. meridiemHour: function (hour, meridiem) {
  7537. if (hour === 12) {
  7538. hour = 0;
  7539. }
  7540. if (meridiem === 'રાત') {
  7541. return hour < 4 ? hour : hour + 12;
  7542. } else if (meridiem === 'સવાર') {
  7543. return hour;
  7544. } else if (meridiem === 'બપોર') {
  7545. return hour >= 10 ? hour : hour + 12;
  7546. } else if (meridiem === 'સાંજ') {
  7547. return hour + 12;
  7548. }
  7549. },
  7550. meridiem: function (hour, minute, isLower) {
  7551. if (hour < 4) {
  7552. return 'રાત';
  7553. } else if (hour < 10) {
  7554. return 'સવાર';
  7555. } else if (hour < 17) {
  7556. return 'બપોર';
  7557. } else if (hour < 20) {
  7558. return 'સાંજ';
  7559. } else {
  7560. return 'રાત';
  7561. }
  7562. },
  7563. week: {
  7564. dow: 0, // Sunday is the first day of the week.
  7565. doy: 6 // The week that contains Jan 6th is the first week of the year.
  7566. }
  7567. });
  7568. //! moment.js locale configuration
  7569. hooks.defineLocale('he', {
  7570. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  7571. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  7572. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  7573. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  7574. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  7575. longDateFormat : {
  7576. LT : 'HH:mm',
  7577. LTS : 'HH:mm:ss',
  7578. L : 'DD/MM/YYYY',
  7579. LL : 'D [ב]MMMM YYYY',
  7580. LLL : 'D [ב]MMMM YYYY HH:mm',
  7581. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  7582. l : 'D/M/YYYY',
  7583. ll : 'D MMM YYYY',
  7584. lll : 'D MMM YYYY HH:mm',
  7585. llll : 'ddd, D MMM YYYY HH:mm'
  7586. },
  7587. calendar : {
  7588. sameDay : '[היום ב־]LT',
  7589. nextDay : '[מחר ב־]LT',
  7590. nextWeek : 'dddd [בשעה] LT',
  7591. lastDay : '[אתמול ב־]LT',
  7592. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  7593. sameElse : 'L'
  7594. },
  7595. relativeTime : {
  7596. future : 'בעוד %s',
  7597. past : 'לפני %s',
  7598. s : 'מספר שניות',
  7599. ss : '%d שניות',
  7600. m : 'דקה',
  7601. mm : '%d דקות',
  7602. h : 'שעה',
  7603. hh : function (number) {
  7604. if (number === 2) {
  7605. return 'שעתיים';
  7606. }
  7607. return number + ' שעות';
  7608. },
  7609. d : 'יום',
  7610. dd : function (number) {
  7611. if (number === 2) {
  7612. return 'יומיים';
  7613. }
  7614. return number + ' ימים';
  7615. },
  7616. M : 'חודש',
  7617. MM : function (number) {
  7618. if (number === 2) {
  7619. return 'חודשיים';
  7620. }
  7621. return number + ' חודשים';
  7622. },
  7623. y : 'שנה',
  7624. yy : function (number) {
  7625. if (number === 2) {
  7626. return 'שנתיים';
  7627. } else if (number % 10 === 0 && number !== 10) {
  7628. return number + ' שנה';
  7629. }
  7630. return number + ' שנים';
  7631. }
  7632. },
  7633. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  7634. isPM : function (input) {
  7635. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  7636. },
  7637. meridiem : function (hour, minute, isLower) {
  7638. if (hour < 5) {
  7639. return 'לפנות בוקר';
  7640. } else if (hour < 10) {
  7641. return 'בבוקר';
  7642. } else if (hour < 12) {
  7643. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  7644. } else if (hour < 18) {
  7645. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  7646. } else {
  7647. return 'בערב';
  7648. }
  7649. }
  7650. });
  7651. //! moment.js locale configuration
  7652. var symbolMap$7 = {
  7653. '1': '१',
  7654. '2': '२',
  7655. '3': '३',
  7656. '4': '४',
  7657. '5': '५',
  7658. '6': '६',
  7659. '7': '७',
  7660. '8': '८',
  7661. '9': '९',
  7662. '0': '०'
  7663. },
  7664. numberMap$6 = {
  7665. '१': '1',
  7666. '२': '2',
  7667. '३': '3',
  7668. '४': '4',
  7669. '५': '5',
  7670. '६': '6',
  7671. '७': '7',
  7672. '८': '8',
  7673. '९': '9',
  7674. '०': '0'
  7675. };
  7676. hooks.defineLocale('hi', {
  7677. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  7678. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  7679. monthsParseExact: true,
  7680. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  7681. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  7682. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  7683. longDateFormat : {
  7684. LT : 'A h:mm बजे',
  7685. LTS : 'A h:mm:ss बजे',
  7686. L : 'DD/MM/YYYY',
  7687. LL : 'D MMMM YYYY',
  7688. LLL : 'D MMMM YYYY, A h:mm बजे',
  7689. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  7690. },
  7691. calendar : {
  7692. sameDay : '[आज] LT',
  7693. nextDay : '[कल] LT',
  7694. nextWeek : 'dddd, LT',
  7695. lastDay : '[कल] LT',
  7696. lastWeek : '[पिछले] dddd, LT',
  7697. sameElse : 'L'
  7698. },
  7699. relativeTime : {
  7700. future : '%s में',
  7701. past : '%s पहले',
  7702. s : 'कुछ ही क्षण',
  7703. ss : '%d सेकंड',
  7704. m : 'एक मिनट',
  7705. mm : '%d मिनट',
  7706. h : 'एक घंटा',
  7707. hh : '%d घंटे',
  7708. d : 'एक दिन',
  7709. dd : '%d दिन',
  7710. M : 'एक महीने',
  7711. MM : '%d महीने',
  7712. y : 'एक वर्ष',
  7713. yy : '%d वर्ष'
  7714. },
  7715. preparse: function (string) {
  7716. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  7717. return numberMap$6[match];
  7718. });
  7719. },
  7720. postformat: function (string) {
  7721. return string.replace(/\d/g, function (match) {
  7722. return symbolMap$7[match];
  7723. });
  7724. },
  7725. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  7726. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  7727. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  7728. meridiemHour : function (hour, meridiem) {
  7729. if (hour === 12) {
  7730. hour = 0;
  7731. }
  7732. if (meridiem === 'रात') {
  7733. return hour < 4 ? hour : hour + 12;
  7734. } else if (meridiem === 'सुबह') {
  7735. return hour;
  7736. } else if (meridiem === 'दोपहर') {
  7737. return hour >= 10 ? hour : hour + 12;
  7738. } else if (meridiem === 'शाम') {
  7739. return hour + 12;
  7740. }
  7741. },
  7742. meridiem : function (hour, minute, isLower) {
  7743. if (hour < 4) {
  7744. return 'रात';
  7745. } else if (hour < 10) {
  7746. return 'सुबह';
  7747. } else if (hour < 17) {
  7748. return 'दोपहर';
  7749. } else if (hour < 20) {
  7750. return 'शाम';
  7751. } else {
  7752. return 'रात';
  7753. }
  7754. },
  7755. week : {
  7756. dow : 0, // Sunday is the first day of the week.
  7757. doy : 6 // The week that contains Jan 6th is the first week of the year.
  7758. }
  7759. });
  7760. //! moment.js locale configuration
  7761. function translate$3(number, withoutSuffix, key) {
  7762. var result = number + ' ';
  7763. switch (key) {
  7764. case 'ss':
  7765. if (number === 1) {
  7766. result += 'sekunda';
  7767. } else if (number === 2 || number === 3 || number === 4) {
  7768. result += 'sekunde';
  7769. } else {
  7770. result += 'sekundi';
  7771. }
  7772. return result;
  7773. case 'm':
  7774. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  7775. case 'mm':
  7776. if (number === 1) {
  7777. result += 'minuta';
  7778. } else if (number === 2 || number === 3 || number === 4) {
  7779. result += 'minute';
  7780. } else {
  7781. result += 'minuta';
  7782. }
  7783. return result;
  7784. case 'h':
  7785. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  7786. case 'hh':
  7787. if (number === 1) {
  7788. result += 'sat';
  7789. } else if (number === 2 || number === 3 || number === 4) {
  7790. result += 'sata';
  7791. } else {
  7792. result += 'sati';
  7793. }
  7794. return result;
  7795. case 'dd':
  7796. if (number === 1) {
  7797. result += 'dan';
  7798. } else {
  7799. result += 'dana';
  7800. }
  7801. return result;
  7802. case 'MM':
  7803. if (number === 1) {
  7804. result += 'mjesec';
  7805. } else if (number === 2 || number === 3 || number === 4) {
  7806. result += 'mjeseca';
  7807. } else {
  7808. result += 'mjeseci';
  7809. }
  7810. return result;
  7811. case 'yy':
  7812. if (number === 1) {
  7813. result += 'godina';
  7814. } else if (number === 2 || number === 3 || number === 4) {
  7815. result += 'godine';
  7816. } else {
  7817. result += 'godina';
  7818. }
  7819. return result;
  7820. }
  7821. }
  7822. hooks.defineLocale('hr', {
  7823. months : {
  7824. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  7825. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  7826. },
  7827. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  7828. monthsParseExact: true,
  7829. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  7830. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  7831. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  7832. weekdaysParseExact : true,
  7833. longDateFormat : {
  7834. LT : 'H:mm',
  7835. LTS : 'H:mm:ss',
  7836. L : 'DD.MM.YYYY',
  7837. LL : 'D. MMMM YYYY',
  7838. LLL : 'D. MMMM YYYY H:mm',
  7839. LLLL : 'dddd, D. MMMM YYYY H:mm'
  7840. },
  7841. calendar : {
  7842. sameDay : '[danas u] LT',
  7843. nextDay : '[sutra u] LT',
  7844. nextWeek : function () {
  7845. switch (this.day()) {
  7846. case 0:
  7847. return '[u] [nedjelju] [u] LT';
  7848. case 3:
  7849. return '[u] [srijedu] [u] LT';
  7850. case 6:
  7851. return '[u] [subotu] [u] LT';
  7852. case 1:
  7853. case 2:
  7854. case 4:
  7855. case 5:
  7856. return '[u] dddd [u] LT';
  7857. }
  7858. },
  7859. lastDay : '[jučer u] LT',
  7860. lastWeek : function () {
  7861. switch (this.day()) {
  7862. case 0:
  7863. case 3:
  7864. return '[prošlu] dddd [u] LT';
  7865. case 6:
  7866. return '[prošle] [subote] [u] LT';
  7867. case 1:
  7868. case 2:
  7869. case 4:
  7870. case 5:
  7871. return '[prošli] dddd [u] LT';
  7872. }
  7873. },
  7874. sameElse : 'L'
  7875. },
  7876. relativeTime : {
  7877. future : 'za %s',
  7878. past : 'prije %s',
  7879. s : 'par sekundi',
  7880. ss : translate$3,
  7881. m : translate$3,
  7882. mm : translate$3,
  7883. h : translate$3,
  7884. hh : translate$3,
  7885. d : 'dan',
  7886. dd : translate$3,
  7887. M : 'mjesec',
  7888. MM : translate$3,
  7889. y : 'godinu',
  7890. yy : translate$3
  7891. },
  7892. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7893. ordinal : '%d.',
  7894. week : {
  7895. dow : 1, // Monday is the first day of the week.
  7896. doy : 7 // The week that contains Jan 7th is the first week of the year.
  7897. }
  7898. });
  7899. //! moment.js locale configuration
  7900. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  7901. function translate$4(number, withoutSuffix, key, isFuture) {
  7902. var num = number;
  7903. switch (key) {
  7904. case 's':
  7905. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  7906. case 'ss':
  7907. return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
  7908. case 'm':
  7909. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7910. case 'mm':
  7911. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7912. case 'h':
  7913. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7914. case 'hh':
  7915. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7916. case 'd':
  7917. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7918. case 'dd':
  7919. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7920. case 'M':
  7921. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7922. case 'MM':
  7923. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7924. case 'y':
  7925. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  7926. case 'yy':
  7927. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  7928. }
  7929. return '';
  7930. }
  7931. function week(isFuture) {
  7932. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  7933. }
  7934. hooks.defineLocale('hu', {
  7935. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  7936. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  7937. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  7938. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  7939. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  7940. longDateFormat : {
  7941. LT : 'H:mm',
  7942. LTS : 'H:mm:ss',
  7943. L : 'YYYY.MM.DD.',
  7944. LL : 'YYYY. MMMM D.',
  7945. LLL : 'YYYY. MMMM D. H:mm',
  7946. LLLL : 'YYYY. MMMM D., dddd H:mm'
  7947. },
  7948. meridiemParse: /de|du/i,
  7949. isPM: function (input) {
  7950. return input.charAt(1).toLowerCase() === 'u';
  7951. },
  7952. meridiem : function (hours, minutes, isLower) {
  7953. if (hours < 12) {
  7954. return isLower === true ? 'de' : 'DE';
  7955. } else {
  7956. return isLower === true ? 'du' : 'DU';
  7957. }
  7958. },
  7959. calendar : {
  7960. sameDay : '[ma] LT[-kor]',
  7961. nextDay : '[holnap] LT[-kor]',
  7962. nextWeek : function () {
  7963. return week.call(this, true);
  7964. },
  7965. lastDay : '[tegnap] LT[-kor]',
  7966. lastWeek : function () {
  7967. return week.call(this, false);
  7968. },
  7969. sameElse : 'L'
  7970. },
  7971. relativeTime : {
  7972. future : '%s múlva',
  7973. past : '%s',
  7974. s : translate$4,
  7975. ss : translate$4,
  7976. m : translate$4,
  7977. mm : translate$4,
  7978. h : translate$4,
  7979. hh : translate$4,
  7980. d : translate$4,
  7981. dd : translate$4,
  7982. M : translate$4,
  7983. MM : translate$4,
  7984. y : translate$4,
  7985. yy : translate$4
  7986. },
  7987. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7988. ordinal : '%d.',
  7989. week : {
  7990. dow : 1, // Monday is the first day of the week.
  7991. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7992. }
  7993. });
  7994. //! moment.js locale configuration
  7995. hooks.defineLocale('hy-am', {
  7996. months : {
  7997. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  7998. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  7999. },
  8000. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  8001. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  8002. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  8003. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  8004. longDateFormat : {
  8005. LT : 'HH:mm',
  8006. LTS : 'HH:mm:ss',
  8007. L : 'DD.MM.YYYY',
  8008. LL : 'D MMMM YYYY թ.',
  8009. LLL : 'D MMMM YYYY թ., HH:mm',
  8010. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  8011. },
  8012. calendar : {
  8013. sameDay: '[այսօր] LT',
  8014. nextDay: '[վաղը] LT',
  8015. lastDay: '[երեկ] LT',
  8016. nextWeek: function () {
  8017. return 'dddd [օրը ժամը] LT';
  8018. },
  8019. lastWeek: function () {
  8020. return '[անցած] dddd [օրը ժամը] LT';
  8021. },
  8022. sameElse: 'L'
  8023. },
  8024. relativeTime : {
  8025. future : '%s հետո',
  8026. past : '%s առաջ',
  8027. s : 'մի քանի վայրկյան',
  8028. ss : '%d վայրկյան',
  8029. m : 'րոպե',
  8030. mm : '%d րոպե',
  8031. h : 'ժամ',
  8032. hh : '%d ժամ',
  8033. d : 'օր',
  8034. dd : '%d օր',
  8035. M : 'ամիս',
  8036. MM : '%d ամիս',
  8037. y : 'տարի',
  8038. yy : '%d տարի'
  8039. },
  8040. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  8041. isPM: function (input) {
  8042. return /^(ցերեկվա|երեկոյան)$/.test(input);
  8043. },
  8044. meridiem : function (hour) {
  8045. if (hour < 4) {
  8046. return 'գիշերվա';
  8047. } else if (hour < 12) {
  8048. return 'առավոտվա';
  8049. } else if (hour < 17) {
  8050. return 'ցերեկվա';
  8051. } else {
  8052. return 'երեկոյան';
  8053. }
  8054. },
  8055. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  8056. ordinal: function (number, period) {
  8057. switch (period) {
  8058. case 'DDD':
  8059. case 'w':
  8060. case 'W':
  8061. case 'DDDo':
  8062. if (number === 1) {
  8063. return number + '-ին';
  8064. }
  8065. return number + '-րդ';
  8066. default:
  8067. return number;
  8068. }
  8069. },
  8070. week : {
  8071. dow : 1, // Monday is the first day of the week.
  8072. doy : 7 // The week that contains Jan 7th is the first week of the year.
  8073. }
  8074. });
  8075. //! moment.js locale configuration
  8076. hooks.defineLocale('id', {
  8077. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  8078. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  8079. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  8080. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  8081. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  8082. longDateFormat : {
  8083. LT : 'HH.mm',
  8084. LTS : 'HH.mm.ss',
  8085. L : 'DD/MM/YYYY',
  8086. LL : 'D MMMM YYYY',
  8087. LLL : 'D MMMM YYYY [pukul] HH.mm',
  8088. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  8089. },
  8090. meridiemParse: /pagi|siang|sore|malam/,
  8091. meridiemHour : function (hour, meridiem) {
  8092. if (hour === 12) {
  8093. hour = 0;
  8094. }
  8095. if (meridiem === 'pagi') {
  8096. return hour;
  8097. } else if (meridiem === 'siang') {
  8098. return hour >= 11 ? hour : hour + 12;
  8099. } else if (meridiem === 'sore' || meridiem === 'malam') {
  8100. return hour + 12;
  8101. }
  8102. },
  8103. meridiem : function (hours, minutes, isLower) {
  8104. if (hours < 11) {
  8105. return 'pagi';
  8106. } else if (hours < 15) {
  8107. return 'siang';
  8108. } else if (hours < 19) {
  8109. return 'sore';
  8110. } else {
  8111. return 'malam';
  8112. }
  8113. },
  8114. calendar : {
  8115. sameDay : '[Hari ini pukul] LT',
  8116. nextDay : '[Besok pukul] LT',
  8117. nextWeek : 'dddd [pukul] LT',
  8118. lastDay : '[Kemarin pukul] LT',
  8119. lastWeek : 'dddd [lalu pukul] LT',
  8120. sameElse : 'L'
  8121. },
  8122. relativeTime : {
  8123. future : 'dalam %s',
  8124. past : '%s yang lalu',
  8125. s : 'beberapa detik',
  8126. ss : '%d detik',
  8127. m : 'semenit',
  8128. mm : '%d menit',
  8129. h : 'sejam',
  8130. hh : '%d jam',
  8131. d : 'sehari',
  8132. dd : '%d hari',
  8133. M : 'sebulan',
  8134. MM : '%d bulan',
  8135. y : 'setahun',
  8136. yy : '%d tahun'
  8137. },
  8138. week : {
  8139. dow : 1, // Monday is the first day of the week.
  8140. doy : 7 // The week that contains Jan 7th is the first week of the year.
  8141. }
  8142. });
  8143. //! moment.js locale configuration
  8144. function plural$2(n) {
  8145. if (n % 100 === 11) {
  8146. return true;
  8147. } else if (n % 10 === 1) {
  8148. return false;
  8149. }
  8150. return true;
  8151. }
  8152. function translate$5(number, withoutSuffix, key, isFuture) {
  8153. var result = number + ' ';
  8154. switch (key) {
  8155. case 's':
  8156. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  8157. case 'ss':
  8158. if (plural$2(number)) {
  8159. return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
  8160. }
  8161. return result + 'sekúnda';
  8162. case 'm':
  8163. return withoutSuffix ? 'mínúta' : 'mínútu';
  8164. case 'mm':
  8165. if (plural$2(number)) {
  8166. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  8167. } else if (withoutSuffix) {
  8168. return result + 'mínúta';
  8169. }
  8170. return result + 'mínútu';
  8171. case 'hh':
  8172. if (plural$2(number)) {
  8173. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  8174. }
  8175. return result + 'klukkustund';
  8176. case 'd':
  8177. if (withoutSuffix) {
  8178. return 'dagur';
  8179. }
  8180. return isFuture ? 'dag' : 'degi';
  8181. case 'dd':
  8182. if (plural$2(number)) {
  8183. if (withoutSuffix) {
  8184. return result + 'dagar';
  8185. }
  8186. return result + (isFuture ? 'daga' : 'dögum');
  8187. } else if (withoutSuffix) {
  8188. return result + 'dagur';
  8189. }
  8190. return result + (isFuture ? 'dag' : 'degi');
  8191. case 'M':
  8192. if (withoutSuffix) {
  8193. return 'mánuður';
  8194. }
  8195. return isFuture ? 'mánuð' : 'mánuði';
  8196. case 'MM':
  8197. if (plural$2(number)) {
  8198. if (withoutSuffix) {
  8199. return result + 'mánuðir';
  8200. }
  8201. return result + (isFuture ? 'mánuði' : 'mánuðum');
  8202. } else if (withoutSuffix) {
  8203. return result + 'mánuður';
  8204. }
  8205. return result + (isFuture ? 'mánuð' : 'mánuði');
  8206. case 'y':
  8207. return withoutSuffix || isFuture ? 'ár' : 'ári';
  8208. case 'yy':
  8209. if (plural$2(number)) {
  8210. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  8211. }
  8212. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  8213. }
  8214. }
  8215. hooks.defineLocale('is', {
  8216. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  8217. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  8218. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  8219. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  8220. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  8221. longDateFormat : {
  8222. LT : 'H:mm',
  8223. LTS : 'H:mm:ss',
  8224. L : 'DD.MM.YYYY',
  8225. LL : 'D. MMMM YYYY',
  8226. LLL : 'D. MMMM YYYY [kl.] H:mm',
  8227. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  8228. },
  8229. calendar : {
  8230. sameDay : '[í dag kl.] LT',
  8231. nextDay : '[á morgun kl.] LT',
  8232. nextWeek : 'dddd [kl.] LT',
  8233. lastDay : '[í gær kl.] LT',
  8234. lastWeek : '[síðasta] dddd [kl.] LT',
  8235. sameElse : 'L'
  8236. },
  8237. relativeTime : {
  8238. future : 'eftir %s',
  8239. past : 'fyrir %s síðan',
  8240. s : translate$5,
  8241. ss : translate$5,
  8242. m : translate$5,
  8243. mm : translate$5,
  8244. h : 'klukkustund',
  8245. hh : translate$5,
  8246. d : translate$5,
  8247. dd : translate$5,
  8248. M : translate$5,
  8249. MM : translate$5,
  8250. y : translate$5,
  8251. yy : translate$5
  8252. },
  8253. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8254. ordinal : '%d.',
  8255. week : {
  8256. dow : 1, // Monday is the first day of the week.
  8257. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8258. }
  8259. });
  8260. //! moment.js locale configuration
  8261. hooks.defineLocale('it-ch', {
  8262. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  8263. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  8264. weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  8265. weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  8266. weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
  8267. longDateFormat : {
  8268. LT : 'HH:mm',
  8269. LTS : 'HH:mm:ss',
  8270. L : 'DD.MM.YYYY',
  8271. LL : 'D MMMM YYYY',
  8272. LLL : 'D MMMM YYYY HH:mm',
  8273. LLLL : 'dddd D MMMM YYYY HH:mm'
  8274. },
  8275. calendar : {
  8276. sameDay: '[Oggi alle] LT',
  8277. nextDay: '[Domani alle] LT',
  8278. nextWeek: 'dddd [alle] LT',
  8279. lastDay: '[Ieri alle] LT',
  8280. lastWeek: function () {
  8281. switch (this.day()) {
  8282. case 0:
  8283. return '[la scorsa] dddd [alle] LT';
  8284. default:
  8285. return '[lo scorso] dddd [alle] LT';
  8286. }
  8287. },
  8288. sameElse: 'L'
  8289. },
  8290. relativeTime : {
  8291. future : function (s) {
  8292. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  8293. },
  8294. past : '%s fa',
  8295. s : 'alcuni secondi',
  8296. ss : '%d secondi',
  8297. m : 'un minuto',
  8298. mm : '%d minuti',
  8299. h : 'un\'ora',
  8300. hh : '%d ore',
  8301. d : 'un giorno',
  8302. dd : '%d giorni',
  8303. M : 'un mese',
  8304. MM : '%d mesi',
  8305. y : 'un anno',
  8306. yy : '%d anni'
  8307. },
  8308. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8309. ordinal: '%dº',
  8310. week : {
  8311. dow : 1, // Monday is the first day of the week.
  8312. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8313. }
  8314. });
  8315. //! moment.js locale configuration
  8316. hooks.defineLocale('it', {
  8317. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  8318. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  8319. weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  8320. weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  8321. weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
  8322. longDateFormat : {
  8323. LT : 'HH:mm',
  8324. LTS : 'HH:mm:ss',
  8325. L : 'DD/MM/YYYY',
  8326. LL : 'D MMMM YYYY',
  8327. LLL : 'D MMMM YYYY HH:mm',
  8328. LLLL : 'dddd D MMMM YYYY HH:mm'
  8329. },
  8330. calendar : {
  8331. sameDay: '[Oggi alle] LT',
  8332. nextDay: '[Domani alle] LT',
  8333. nextWeek: 'dddd [alle] LT',
  8334. lastDay: '[Ieri alle] LT',
  8335. lastWeek: function () {
  8336. switch (this.day()) {
  8337. case 0:
  8338. return '[la scorsa] dddd [alle] LT';
  8339. default:
  8340. return '[lo scorso] dddd [alle] LT';
  8341. }
  8342. },
  8343. sameElse: 'L'
  8344. },
  8345. relativeTime : {
  8346. future : function (s) {
  8347. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  8348. },
  8349. past : '%s fa',
  8350. s : 'alcuni secondi',
  8351. ss : '%d secondi',
  8352. m : 'un minuto',
  8353. mm : '%d minuti',
  8354. h : 'un\'ora',
  8355. hh : '%d ore',
  8356. d : 'un giorno',
  8357. dd : '%d giorni',
  8358. M : 'un mese',
  8359. MM : '%d mesi',
  8360. y : 'un anno',
  8361. yy : '%d anni'
  8362. },
  8363. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8364. ordinal: '%dº',
  8365. week : {
  8366. dow : 1, // Monday is the first day of the week.
  8367. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8368. }
  8369. });
  8370. //! moment.js locale configuration
  8371. hooks.defineLocale('ja', {
  8372. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  8373. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  8374. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  8375. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  8376. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  8377. longDateFormat : {
  8378. LT : 'HH:mm',
  8379. LTS : 'HH:mm:ss',
  8380. L : 'YYYY/MM/DD',
  8381. LL : 'YYYY年M月D日',
  8382. LLL : 'YYYY年M月D日 HH:mm',
  8383. LLLL : 'YYYY年M月D日 dddd HH:mm',
  8384. l : 'YYYY/MM/DD',
  8385. ll : 'YYYY年M月D日',
  8386. lll : 'YYYY年M月D日 HH:mm',
  8387. llll : 'YYYY年M月D日(ddd) HH:mm'
  8388. },
  8389. meridiemParse: /午前|午後/i,
  8390. isPM : function (input) {
  8391. return input === '午後';
  8392. },
  8393. meridiem : function (hour, minute, isLower) {
  8394. if (hour < 12) {
  8395. return '午前';
  8396. } else {
  8397. return '午後';
  8398. }
  8399. },
  8400. calendar : {
  8401. sameDay : '[今日] LT',
  8402. nextDay : '[明日] LT',
  8403. nextWeek : function (now) {
  8404. if (now.week() < this.week()) {
  8405. return '[来週]dddd LT';
  8406. } else {
  8407. return 'dddd LT';
  8408. }
  8409. },
  8410. lastDay : '[昨日] LT',
  8411. lastWeek : function (now) {
  8412. if (this.week() < now.week()) {
  8413. return '[先週]dddd LT';
  8414. } else {
  8415. return 'dddd LT';
  8416. }
  8417. },
  8418. sameElse : 'L'
  8419. },
  8420. dayOfMonthOrdinalParse : /\d{1,2}日/,
  8421. ordinal : function (number, period) {
  8422. switch (period) {
  8423. case 'd':
  8424. case 'D':
  8425. case 'DDD':
  8426. return number + '日';
  8427. default:
  8428. return number;
  8429. }
  8430. },
  8431. relativeTime : {
  8432. future : '%s後',
  8433. past : '%s前',
  8434. s : '数秒',
  8435. ss : '%d秒',
  8436. m : '1分',
  8437. mm : '%d分',
  8438. h : '1時間',
  8439. hh : '%d時間',
  8440. d : '1日',
  8441. dd : '%d日',
  8442. M : '1ヶ月',
  8443. MM : '%dヶ月',
  8444. y : '1年',
  8445. yy : '%d年'
  8446. }
  8447. });
  8448. //! moment.js locale configuration
  8449. hooks.defineLocale('jv', {
  8450. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  8451. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  8452. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  8453. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  8454. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  8455. longDateFormat : {
  8456. LT : 'HH.mm',
  8457. LTS : 'HH.mm.ss',
  8458. L : 'DD/MM/YYYY',
  8459. LL : 'D MMMM YYYY',
  8460. LLL : 'D MMMM YYYY [pukul] HH.mm',
  8461. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  8462. },
  8463. meridiemParse: /enjing|siyang|sonten|ndalu/,
  8464. meridiemHour : function (hour, meridiem) {
  8465. if (hour === 12) {
  8466. hour = 0;
  8467. }
  8468. if (meridiem === 'enjing') {
  8469. return hour;
  8470. } else if (meridiem === 'siyang') {
  8471. return hour >= 11 ? hour : hour + 12;
  8472. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  8473. return hour + 12;
  8474. }
  8475. },
  8476. meridiem : function (hours, minutes, isLower) {
  8477. if (hours < 11) {
  8478. return 'enjing';
  8479. } else if (hours < 15) {
  8480. return 'siyang';
  8481. } else if (hours < 19) {
  8482. return 'sonten';
  8483. } else {
  8484. return 'ndalu';
  8485. }
  8486. },
  8487. calendar : {
  8488. sameDay : '[Dinten puniko pukul] LT',
  8489. nextDay : '[Mbenjang pukul] LT',
  8490. nextWeek : 'dddd [pukul] LT',
  8491. lastDay : '[Kala wingi pukul] LT',
  8492. lastWeek : 'dddd [kepengker pukul] LT',
  8493. sameElse : 'L'
  8494. },
  8495. relativeTime : {
  8496. future : 'wonten ing %s',
  8497. past : '%s ingkang kepengker',
  8498. s : 'sawetawis detik',
  8499. ss : '%d detik',
  8500. m : 'setunggal menit',
  8501. mm : '%d menit',
  8502. h : 'setunggal jam',
  8503. hh : '%d jam',
  8504. d : 'sedinten',
  8505. dd : '%d dinten',
  8506. M : 'sewulan',
  8507. MM : '%d wulan',
  8508. y : 'setaun',
  8509. yy : '%d taun'
  8510. },
  8511. week : {
  8512. dow : 1, // Monday is the first day of the week.
  8513. doy : 7 // The week that contains Jan 7th is the first week of the year.
  8514. }
  8515. });
  8516. //! moment.js locale configuration
  8517. hooks.defineLocale('ka', {
  8518. months : {
  8519. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  8520. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  8521. },
  8522. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  8523. weekdays : {
  8524. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  8525. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  8526. isFormat: /(წინა|შემდეგ)/
  8527. },
  8528. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  8529. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  8530. longDateFormat : {
  8531. LT : 'h:mm A',
  8532. LTS : 'h:mm:ss A',
  8533. L : 'DD/MM/YYYY',
  8534. LL : 'D MMMM YYYY',
  8535. LLL : 'D MMMM YYYY h:mm A',
  8536. LLLL : 'dddd, D MMMM YYYY h:mm A'
  8537. },
  8538. calendar : {
  8539. sameDay : '[დღეს] LT[-ზე]',
  8540. nextDay : '[ხვალ] LT[-ზე]',
  8541. lastDay : '[გუშინ] LT[-ზე]',
  8542. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  8543. lastWeek : '[წინა] dddd LT-ზე',
  8544. sameElse : 'L'
  8545. },
  8546. relativeTime : {
  8547. future : function (s) {
  8548. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  8549. s.replace(/ი$/, 'ში') :
  8550. s + 'ში';
  8551. },
  8552. past : function (s) {
  8553. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  8554. return s.replace(/(ი|ე)$/, 'ის წინ');
  8555. }
  8556. if ((/წელი/).test(s)) {
  8557. return s.replace(/წელი$/, 'წლის წინ');
  8558. }
  8559. },
  8560. s : 'რამდენიმე წამი',
  8561. ss : '%d წამი',
  8562. m : 'წუთი',
  8563. mm : '%d წუთი',
  8564. h : 'საათი',
  8565. hh : '%d საათი',
  8566. d : 'დღე',
  8567. dd : '%d დღე',
  8568. M : 'თვე',
  8569. MM : '%d თვე',
  8570. y : 'წელი',
  8571. yy : '%d წელი'
  8572. },
  8573. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  8574. ordinal : function (number) {
  8575. if (number === 0) {
  8576. return number;
  8577. }
  8578. if (number === 1) {
  8579. return number + '-ლი';
  8580. }
  8581. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  8582. return 'მე-' + number;
  8583. }
  8584. return number + '-ე';
  8585. },
  8586. week : {
  8587. dow : 1,
  8588. doy : 7
  8589. }
  8590. });
  8591. //! moment.js locale configuration
  8592. var suffixes$1 = {
  8593. 0: '-ші',
  8594. 1: '-ші',
  8595. 2: '-ші',
  8596. 3: '-ші',
  8597. 4: '-ші',
  8598. 5: '-ші',
  8599. 6: '-шы',
  8600. 7: '-ші',
  8601. 8: '-ші',
  8602. 9: '-шы',
  8603. 10: '-шы',
  8604. 20: '-шы',
  8605. 30: '-шы',
  8606. 40: '-шы',
  8607. 50: '-ші',
  8608. 60: '-шы',
  8609. 70: '-ші',
  8610. 80: '-ші',
  8611. 90: '-шы',
  8612. 100: '-ші'
  8613. };
  8614. hooks.defineLocale('kk', {
  8615. months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  8616. monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  8617. weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  8618. weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  8619. weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  8620. longDateFormat : {
  8621. LT : 'HH:mm',
  8622. LTS : 'HH:mm:ss',
  8623. L : 'DD.MM.YYYY',
  8624. LL : 'D MMMM YYYY',
  8625. LLL : 'D MMMM YYYY HH:mm',
  8626. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8627. },
  8628. calendar : {
  8629. sameDay : '[Бүгін сағат] LT',
  8630. nextDay : '[Ертең сағат] LT',
  8631. nextWeek : 'dddd [сағат] LT',
  8632. lastDay : '[Кеше сағат] LT',
  8633. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  8634. sameElse : 'L'
  8635. },
  8636. relativeTime : {
  8637. future : '%s ішінде',
  8638. past : '%s бұрын',
  8639. s : 'бірнеше секунд',
  8640. ss : '%d секунд',
  8641. m : 'бір минут',
  8642. mm : '%d минут',
  8643. h : 'бір сағат',
  8644. hh : '%d сағат',
  8645. d : 'бір күн',
  8646. dd : '%d күн',
  8647. M : 'бір ай',
  8648. MM : '%d ай',
  8649. y : 'бір жыл',
  8650. yy : '%d жыл'
  8651. },
  8652. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  8653. ordinal : function (number) {
  8654. var a = number % 10,
  8655. b = number >= 100 ? 100 : null;
  8656. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  8657. },
  8658. week : {
  8659. dow : 1, // Monday is the first day of the week.
  8660. doy : 7 // The week that contains Jan 7th is the first week of the year.
  8661. }
  8662. });
  8663. //! moment.js locale configuration
  8664. var symbolMap$8 = {
  8665. '1': '១',
  8666. '2': '២',
  8667. '3': '៣',
  8668. '4': '៤',
  8669. '5': '៥',
  8670. '6': '៦',
  8671. '7': '៧',
  8672. '8': '៨',
  8673. '9': '៩',
  8674. '0': '០'
  8675. }, numberMap$7 = {
  8676. '១': '1',
  8677. '២': '2',
  8678. '៣': '3',
  8679. '៤': '4',
  8680. '៥': '5',
  8681. '៦': '6',
  8682. '៧': '7',
  8683. '៨': '8',
  8684. '៩': '9',
  8685. '០': '0'
  8686. };
  8687. hooks.defineLocale('km', {
  8688. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  8689. '_'
  8690. ),
  8691. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  8692. '_'
  8693. ),
  8694. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8695. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  8696. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  8697. weekdaysParseExact: true,
  8698. longDateFormat: {
  8699. LT: 'HH:mm',
  8700. LTS: 'HH:mm:ss',
  8701. L: 'DD/MM/YYYY',
  8702. LL: 'D MMMM YYYY',
  8703. LLL: 'D MMMM YYYY HH:mm',
  8704. LLLL: 'dddd, D MMMM YYYY HH:mm'
  8705. },
  8706. meridiemParse: /ព្រឹក|ល្ងាច/,
  8707. isPM: function (input) {
  8708. return input === 'ល្ងាច';
  8709. },
  8710. meridiem: function (hour, minute, isLower) {
  8711. if (hour < 12) {
  8712. return 'ព្រឹក';
  8713. } else {
  8714. return 'ល្ងាច';
  8715. }
  8716. },
  8717. calendar: {
  8718. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  8719. nextDay: '[ស្អែក ម៉ោង] LT',
  8720. nextWeek: 'dddd [ម៉ោង] LT',
  8721. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  8722. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  8723. sameElse: 'L'
  8724. },
  8725. relativeTime: {
  8726. future: '%sទៀត',
  8727. past: '%sមុន',
  8728. s: 'ប៉ុន្មានវិនាទី',
  8729. ss: '%d វិនាទី',
  8730. m: 'មួយនាទី',
  8731. mm: '%d នាទី',
  8732. h: 'មួយម៉ោង',
  8733. hh: '%d ម៉ោង',
  8734. d: 'មួយថ្ងៃ',
  8735. dd: '%d ថ្ងៃ',
  8736. M: 'មួយខែ',
  8737. MM: '%d ខែ',
  8738. y: 'មួយឆ្នាំ',
  8739. yy: '%d ឆ្នាំ'
  8740. },
  8741. dayOfMonthOrdinalParse : /ទី\d{1,2}/,
  8742. ordinal : 'ទី%d',
  8743. preparse: function (string) {
  8744. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  8745. return numberMap$7[match];
  8746. });
  8747. },
  8748. postformat: function (string) {
  8749. return string.replace(/\d/g, function (match) {
  8750. return symbolMap$8[match];
  8751. });
  8752. },
  8753. week: {
  8754. dow: 1, // Monday is the first day of the week.
  8755. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8756. }
  8757. });
  8758. //! moment.js locale configuration
  8759. var symbolMap$9 = {
  8760. '1': '೧',
  8761. '2': '೨',
  8762. '3': '೩',
  8763. '4': '೪',
  8764. '5': '೫',
  8765. '6': '೬',
  8766. '7': '೭',
  8767. '8': '೮',
  8768. '9': '೯',
  8769. '0': '೦'
  8770. },
  8771. numberMap$8 = {
  8772. '೧': '1',
  8773. '೨': '2',
  8774. '೩': '3',
  8775. '೪': '4',
  8776. '೫': '5',
  8777. '೬': '6',
  8778. '೭': '7',
  8779. '೮': '8',
  8780. '೯': '9',
  8781. '೦': '0'
  8782. };
  8783. hooks.defineLocale('kn', {
  8784. months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  8785. monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
  8786. monthsParseExact: true,
  8787. weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  8788. weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  8789. weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  8790. longDateFormat : {
  8791. LT : 'A h:mm',
  8792. LTS : 'A h:mm:ss',
  8793. L : 'DD/MM/YYYY',
  8794. LL : 'D MMMM YYYY',
  8795. LLL : 'D MMMM YYYY, A h:mm',
  8796. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  8797. },
  8798. calendar : {
  8799. sameDay : '[ಇಂದು] LT',
  8800. nextDay : '[ನಾಳೆ] LT',
  8801. nextWeek : 'dddd, LT',
  8802. lastDay : '[ನಿನ್ನೆ] LT',
  8803. lastWeek : '[ಕೊನೆಯ] dddd, LT',
  8804. sameElse : 'L'
  8805. },
  8806. relativeTime : {
  8807. future : '%s ನಂತರ',
  8808. past : '%s ಹಿಂದೆ',
  8809. s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
  8810. ss : '%d ಸೆಕೆಂಡುಗಳು',
  8811. m : 'ಒಂದು ನಿಮಿಷ',
  8812. mm : '%d ನಿಮಿಷ',
  8813. h : 'ಒಂದು ಗಂಟೆ',
  8814. hh : '%d ಗಂಟೆ',
  8815. d : 'ಒಂದು ದಿನ',
  8816. dd : '%d ದಿನ',
  8817. M : 'ಒಂದು ತಿಂಗಳು',
  8818. MM : '%d ತಿಂಗಳು',
  8819. y : 'ಒಂದು ವರ್ಷ',
  8820. yy : '%d ವರ್ಷ'
  8821. },
  8822. preparse: function (string) {
  8823. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  8824. return numberMap$8[match];
  8825. });
  8826. },
  8827. postformat: function (string) {
  8828. return string.replace(/\d/g, function (match) {
  8829. return symbolMap$9[match];
  8830. });
  8831. },
  8832. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  8833. meridiemHour : function (hour, meridiem) {
  8834. if (hour === 12) {
  8835. hour = 0;
  8836. }
  8837. if (meridiem === 'ರಾತ್ರಿ') {
  8838. return hour < 4 ? hour : hour + 12;
  8839. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  8840. return hour;
  8841. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  8842. return hour >= 10 ? hour : hour + 12;
  8843. } else if (meridiem === 'ಸಂಜೆ') {
  8844. return hour + 12;
  8845. }
  8846. },
  8847. meridiem : function (hour, minute, isLower) {
  8848. if (hour < 4) {
  8849. return 'ರಾತ್ರಿ';
  8850. } else if (hour < 10) {
  8851. return 'ಬೆಳಿಗ್ಗೆ';
  8852. } else if (hour < 17) {
  8853. return 'ಮಧ್ಯಾಹ್ನ';
  8854. } else if (hour < 20) {
  8855. return 'ಸಂಜೆ';
  8856. } else {
  8857. return 'ರಾತ್ರಿ';
  8858. }
  8859. },
  8860. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  8861. ordinal : function (number) {
  8862. return number + 'ನೇ';
  8863. },
  8864. week : {
  8865. dow : 0, // Sunday is the first day of the week.
  8866. doy : 6 // The week that contains Jan 6th is the first week of the year.
  8867. }
  8868. });
  8869. //! moment.js locale configuration
  8870. hooks.defineLocale('ko', {
  8871. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8872. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8873. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  8874. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  8875. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  8876. longDateFormat : {
  8877. LT : 'A h:mm',
  8878. LTS : 'A h:mm:ss',
  8879. L : 'YYYY.MM.DD.',
  8880. LL : 'YYYY년 MMMM D일',
  8881. LLL : 'YYYY년 MMMM D일 A h:mm',
  8882. LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
  8883. l : 'YYYY.MM.DD.',
  8884. ll : 'YYYY년 MMMM D일',
  8885. lll : 'YYYY년 MMMM D일 A h:mm',
  8886. llll : 'YYYY년 MMMM D일 dddd A h:mm'
  8887. },
  8888. calendar : {
  8889. sameDay : '오늘 LT',
  8890. nextDay : '내일 LT',
  8891. nextWeek : 'dddd LT',
  8892. lastDay : '어제 LT',
  8893. lastWeek : '지난주 dddd LT',
  8894. sameElse : 'L'
  8895. },
  8896. relativeTime : {
  8897. future : '%s 후',
  8898. past : '%s 전',
  8899. s : '몇 초',
  8900. ss : '%d초',
  8901. m : '1분',
  8902. mm : '%d분',
  8903. h : '한 시간',
  8904. hh : '%d시간',
  8905. d : '하루',
  8906. dd : '%d일',
  8907. M : '한 달',
  8908. MM : '%d달',
  8909. y : '일 년',
  8910. yy : '%d년'
  8911. },
  8912. dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
  8913. ordinal : function (number, period) {
  8914. switch (period) {
  8915. case 'd':
  8916. case 'D':
  8917. case 'DDD':
  8918. return number + '일';
  8919. case 'M':
  8920. return number + '월';
  8921. case 'w':
  8922. case 'W':
  8923. return number + '주';
  8924. default:
  8925. return number;
  8926. }
  8927. },
  8928. meridiemParse : /오전|오후/,
  8929. isPM : function (token) {
  8930. return token === '오후';
  8931. },
  8932. meridiem : function (hour, minute, isUpper) {
  8933. return hour < 12 ? '오전' : '오후';
  8934. }
  8935. });
  8936. //! moment.js locale configuration
  8937. var symbolMap$a = {
  8938. '1': '١',
  8939. '2': '٢',
  8940. '3': '٣',
  8941. '4': '٤',
  8942. '5': '٥',
  8943. '6': '٦',
  8944. '7': '٧',
  8945. '8': '٨',
  8946. '9': '٩',
  8947. '0': '٠'
  8948. }, numberMap$9 = {
  8949. '١': '1',
  8950. '٢': '2',
  8951. '٣': '3',
  8952. '٤': '4',
  8953. '٥': '5',
  8954. '٦': '6',
  8955. '٧': '7',
  8956. '٨': '8',
  8957. '٩': '9',
  8958. '٠': '0'
  8959. },
  8960. months$7 = [
  8961. 'کانونی دووەم',
  8962. 'شوبات',
  8963. 'ئازار',
  8964. 'نیسان',
  8965. 'ئایار',
  8966. 'حوزەیران',
  8967. 'تەمموز',
  8968. 'ئاب',
  8969. 'ئەیلوول',
  8970. 'تشرینی یەكەم',
  8971. 'تشرینی دووەم',
  8972. 'كانونی یەکەم'
  8973. ];
  8974. hooks.defineLocale('ku', {
  8975. months : months$7,
  8976. monthsShort : months$7,
  8977. weekdays : 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
  8978. weekdaysShort : 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
  8979. weekdaysMin : 'ی_د_س_چ_پ_ه_ش'.split('_'),
  8980. weekdaysParseExact : true,
  8981. longDateFormat : {
  8982. LT : 'HH:mm',
  8983. LTS : 'HH:mm:ss',
  8984. L : 'DD/MM/YYYY',
  8985. LL : 'D MMMM YYYY',
  8986. LLL : 'D MMMM YYYY HH:mm',
  8987. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8988. },
  8989. meridiemParse: /ئێواره‌|به‌یانی/,
  8990. isPM: function (input) {
  8991. return /ئێواره‌/.test(input);
  8992. },
  8993. meridiem : function (hour, minute, isLower) {
  8994. if (hour < 12) {
  8995. return 'به‌یانی';
  8996. } else {
  8997. return 'ئێواره‌';
  8998. }
  8999. },
  9000. calendar : {
  9001. sameDay : '[ئه‌مرۆ كاتژمێر] LT',
  9002. nextDay : '[به‌یانی كاتژمێر] LT',
  9003. nextWeek : 'dddd [كاتژمێر] LT',
  9004. lastDay : '[دوێنێ كاتژمێر] LT',
  9005. lastWeek : 'dddd [كاتژمێر] LT',
  9006. sameElse : 'L'
  9007. },
  9008. relativeTime : {
  9009. future : 'له‌ %s',
  9010. past : '%s',
  9011. s : 'چه‌ند چركه‌یه‌ك',
  9012. ss : 'چركه‌ %d',
  9013. m : 'یه‌ك خوله‌ك',
  9014. mm : '%d خوله‌ك',
  9015. h : 'یه‌ك كاتژمێر',
  9016. hh : '%d كاتژمێر',
  9017. d : 'یه‌ك ڕۆژ',
  9018. dd : '%d ڕۆژ',
  9019. M : 'یه‌ك مانگ',
  9020. MM : '%d مانگ',
  9021. y : 'یه‌ك ساڵ',
  9022. yy : '%d ساڵ'
  9023. },
  9024. preparse: function (string) {
  9025. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  9026. return numberMap$9[match];
  9027. }).replace(/،/g, ',');
  9028. },
  9029. postformat: function (string) {
  9030. return string.replace(/\d/g, function (match) {
  9031. return symbolMap$a[match];
  9032. }).replace(/,/g, '،');
  9033. },
  9034. week : {
  9035. dow : 6, // Saturday is the first day of the week.
  9036. doy : 12 // The week that contains Jan 12th is the first week of the year.
  9037. }
  9038. });
  9039. //! moment.js locale configuration
  9040. var suffixes$2 = {
  9041. 0: '-чү',
  9042. 1: '-чи',
  9043. 2: '-чи',
  9044. 3: '-чү',
  9045. 4: '-чү',
  9046. 5: '-чи',
  9047. 6: '-чы',
  9048. 7: '-чи',
  9049. 8: '-чи',
  9050. 9: '-чу',
  9051. 10: '-чу',
  9052. 20: '-чы',
  9053. 30: '-чу',
  9054. 40: '-чы',
  9055. 50: '-чү',
  9056. 60: '-чы',
  9057. 70: '-чи',
  9058. 80: '-чи',
  9059. 90: '-чу',
  9060. 100: '-чү'
  9061. };
  9062. hooks.defineLocale('ky', {
  9063. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  9064. monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  9065. weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  9066. weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  9067. weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  9068. longDateFormat : {
  9069. LT : 'HH:mm',
  9070. LTS : 'HH:mm:ss',
  9071. L : 'DD.MM.YYYY',
  9072. LL : 'D MMMM YYYY',
  9073. LLL : 'D MMMM YYYY HH:mm',
  9074. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9075. },
  9076. calendar : {
  9077. sameDay : '[Бүгүн саат] LT',
  9078. nextDay : '[Эртең саат] LT',
  9079. nextWeek : 'dddd [саат] LT',
  9080. lastDay : '[Кечээ саат] LT',
  9081. lastWeek : '[Өткөн аптанын] dddd [күнү] [саат] LT',
  9082. sameElse : 'L'
  9083. },
  9084. relativeTime : {
  9085. future : '%s ичинде',
  9086. past : '%s мурун',
  9087. s : 'бирнече секунд',
  9088. ss : '%d секунд',
  9089. m : 'бир мүнөт',
  9090. mm : '%d мүнөт',
  9091. h : 'бир саат',
  9092. hh : '%d саат',
  9093. d : 'бир күн',
  9094. dd : '%d күн',
  9095. M : 'бир ай',
  9096. MM : '%d ай',
  9097. y : 'бир жыл',
  9098. yy : '%d жыл'
  9099. },
  9100. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  9101. ordinal : function (number) {
  9102. var a = number % 10,
  9103. b = number >= 100 ? 100 : null;
  9104. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  9105. },
  9106. week : {
  9107. dow : 1, // Monday is the first day of the week.
  9108. doy : 7 // The week that contains Jan 7th is the first week of the year.
  9109. }
  9110. });
  9111. //! moment.js locale configuration
  9112. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9113. var format = {
  9114. 'm': ['eng Minutt', 'enger Minutt'],
  9115. 'h': ['eng Stonn', 'enger Stonn'],
  9116. 'd': ['een Dag', 'engem Dag'],
  9117. 'M': ['ee Mount', 'engem Mount'],
  9118. 'y': ['ee Joer', 'engem Joer']
  9119. };
  9120. return withoutSuffix ? format[key][0] : format[key][1];
  9121. }
  9122. function processFutureTime(string) {
  9123. var number = string.substr(0, string.indexOf(' '));
  9124. if (eifelerRegelAppliesToNumber(number)) {
  9125. return 'a ' + string;
  9126. }
  9127. return 'an ' + string;
  9128. }
  9129. function processPastTime(string) {
  9130. var number = string.substr(0, string.indexOf(' '));
  9131. if (eifelerRegelAppliesToNumber(number)) {
  9132. return 'viru ' + string;
  9133. }
  9134. return 'virun ' + string;
  9135. }
  9136. /**
  9137. * Returns true if the word before the given number loses the '-n' ending.
  9138. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  9139. *
  9140. * @param number {integer}
  9141. * @returns {boolean}
  9142. */
  9143. function eifelerRegelAppliesToNumber(number) {
  9144. number = parseInt(number, 10);
  9145. if (isNaN(number)) {
  9146. return false;
  9147. }
  9148. if (number < 0) {
  9149. // Negative Number --> always true
  9150. return true;
  9151. } else if (number < 10) {
  9152. // Only 1 digit
  9153. if (4 <= number && number <= 7) {
  9154. return true;
  9155. }
  9156. return false;
  9157. } else if (number < 100) {
  9158. // 2 digits
  9159. var lastDigit = number % 10, firstDigit = number / 10;
  9160. if (lastDigit === 0) {
  9161. return eifelerRegelAppliesToNumber(firstDigit);
  9162. }
  9163. return eifelerRegelAppliesToNumber(lastDigit);
  9164. } else if (number < 10000) {
  9165. // 3 or 4 digits --> recursively check first digit
  9166. while (number >= 10) {
  9167. number = number / 10;
  9168. }
  9169. return eifelerRegelAppliesToNumber(number);
  9170. } else {
  9171. // Anything larger than 4 digits: recursively check first n-3 digits
  9172. number = number / 1000;
  9173. return eifelerRegelAppliesToNumber(number);
  9174. }
  9175. }
  9176. hooks.defineLocale('lb', {
  9177. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  9178. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  9179. monthsParseExact : true,
  9180. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  9181. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  9182. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  9183. weekdaysParseExact : true,
  9184. longDateFormat: {
  9185. LT: 'H:mm [Auer]',
  9186. LTS: 'H:mm:ss [Auer]',
  9187. L: 'DD.MM.YYYY',
  9188. LL: 'D. MMMM YYYY',
  9189. LLL: 'D. MMMM YYYY H:mm [Auer]',
  9190. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  9191. },
  9192. calendar: {
  9193. sameDay: '[Haut um] LT',
  9194. sameElse: 'L',
  9195. nextDay: '[Muer um] LT',
  9196. nextWeek: 'dddd [um] LT',
  9197. lastDay: '[Gëschter um] LT',
  9198. lastWeek: function () {
  9199. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  9200. switch (this.day()) {
  9201. case 2:
  9202. case 4:
  9203. return '[Leschten] dddd [um] LT';
  9204. default:
  9205. return '[Leschte] dddd [um] LT';
  9206. }
  9207. }
  9208. },
  9209. relativeTime : {
  9210. future : processFutureTime,
  9211. past : processPastTime,
  9212. s : 'e puer Sekonnen',
  9213. ss : '%d Sekonnen',
  9214. m : processRelativeTime$5,
  9215. mm : '%d Minutten',
  9216. h : processRelativeTime$5,
  9217. hh : '%d Stonnen',
  9218. d : processRelativeTime$5,
  9219. dd : '%d Deeg',
  9220. M : processRelativeTime$5,
  9221. MM : '%d Méint',
  9222. y : processRelativeTime$5,
  9223. yy : '%d Joer'
  9224. },
  9225. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9226. ordinal: '%d.',
  9227. week: {
  9228. dow: 1, // Monday is the first day of the week.
  9229. doy: 4 // The week that contains Jan 4th is the first week of the year.
  9230. }
  9231. });
  9232. //! moment.js locale configuration
  9233. hooks.defineLocale('lo', {
  9234. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  9235. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  9236. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  9237. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  9238. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  9239. weekdaysParseExact : true,
  9240. longDateFormat : {
  9241. LT : 'HH:mm',
  9242. LTS : 'HH:mm:ss',
  9243. L : 'DD/MM/YYYY',
  9244. LL : 'D MMMM YYYY',
  9245. LLL : 'D MMMM YYYY HH:mm',
  9246. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  9247. },
  9248. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  9249. isPM: function (input) {
  9250. return input === 'ຕອນແລງ';
  9251. },
  9252. meridiem : function (hour, minute, isLower) {
  9253. if (hour < 12) {
  9254. return 'ຕອນເຊົ້າ';
  9255. } else {
  9256. return 'ຕອນແລງ';
  9257. }
  9258. },
  9259. calendar : {
  9260. sameDay : '[ມື້ນີ້ເວລາ] LT',
  9261. nextDay : '[ມື້ອື່ນເວລາ] LT',
  9262. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  9263. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  9264. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  9265. sameElse : 'L'
  9266. },
  9267. relativeTime : {
  9268. future : 'ອີກ %s',
  9269. past : '%sຜ່ານມາ',
  9270. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  9271. ss : '%d ວິນາທີ' ,
  9272. m : '1 ນາທີ',
  9273. mm : '%d ນາທີ',
  9274. h : '1 ຊົ່ວໂມງ',
  9275. hh : '%d ຊົ່ວໂມງ',
  9276. d : '1 ມື້',
  9277. dd : '%d ມື້',
  9278. M : '1 ເດືອນ',
  9279. MM : '%d ເດືອນ',
  9280. y : '1 ປີ',
  9281. yy : '%d ປີ'
  9282. },
  9283. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  9284. ordinal : function (number) {
  9285. return 'ທີ່' + number;
  9286. }
  9287. });
  9288. //! moment.js locale configuration
  9289. var units = {
  9290. 'ss' : 'sekundė_sekundžių_sekundes',
  9291. 'm' : 'minutė_minutės_minutę',
  9292. 'mm': 'minutės_minučių_minutes',
  9293. 'h' : 'valanda_valandos_valandą',
  9294. 'hh': 'valandos_valandų_valandas',
  9295. 'd' : 'diena_dienos_dieną',
  9296. 'dd': 'dienos_dienų_dienas',
  9297. 'M' : 'mėnuo_mėnesio_mėnesį',
  9298. 'MM': 'mėnesiai_mėnesių_mėnesius',
  9299. 'y' : 'metai_metų_metus',
  9300. 'yy': 'metai_metų_metus'
  9301. };
  9302. function translateSeconds(number, withoutSuffix, key, isFuture) {
  9303. if (withoutSuffix) {
  9304. return 'kelios sekundės';
  9305. } else {
  9306. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  9307. }
  9308. }
  9309. function translateSingular(number, withoutSuffix, key, isFuture) {
  9310. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  9311. }
  9312. function special(number) {
  9313. return number % 10 === 0 || (number > 10 && number < 20);
  9314. }
  9315. function forms(key) {
  9316. return units[key].split('_');
  9317. }
  9318. function translate$6(number, withoutSuffix, key, isFuture) {
  9319. var result = number + ' ';
  9320. if (number === 1) {
  9321. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  9322. } else if (withoutSuffix) {
  9323. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  9324. } else {
  9325. if (isFuture) {
  9326. return result + forms(key)[1];
  9327. } else {
  9328. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  9329. }
  9330. }
  9331. }
  9332. hooks.defineLocale('lt', {
  9333. months : {
  9334. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  9335. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  9336. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  9337. },
  9338. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  9339. weekdays : {
  9340. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  9341. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  9342. isFormat: /dddd HH:mm/
  9343. },
  9344. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  9345. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  9346. weekdaysParseExact : true,
  9347. longDateFormat : {
  9348. LT : 'HH:mm',
  9349. LTS : 'HH:mm:ss',
  9350. L : 'YYYY-MM-DD',
  9351. LL : 'YYYY [m.] MMMM D [d.]',
  9352. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  9353. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  9354. l : 'YYYY-MM-DD',
  9355. ll : 'YYYY [m.] MMMM D [d.]',
  9356. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  9357. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  9358. },
  9359. calendar : {
  9360. sameDay : '[Šiandien] LT',
  9361. nextDay : '[Rytoj] LT',
  9362. nextWeek : 'dddd LT',
  9363. lastDay : '[Vakar] LT',
  9364. lastWeek : '[Praėjusį] dddd LT',
  9365. sameElse : 'L'
  9366. },
  9367. relativeTime : {
  9368. future : 'po %s',
  9369. past : 'prieš %s',
  9370. s : translateSeconds,
  9371. ss : translate$6,
  9372. m : translateSingular,
  9373. mm : translate$6,
  9374. h : translateSingular,
  9375. hh : translate$6,
  9376. d : translateSingular,
  9377. dd : translate$6,
  9378. M : translateSingular,
  9379. MM : translate$6,
  9380. y : translateSingular,
  9381. yy : translate$6
  9382. },
  9383. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  9384. ordinal : function (number) {
  9385. return number + '-oji';
  9386. },
  9387. week : {
  9388. dow : 1, // Monday is the first day of the week.
  9389. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9390. }
  9391. });
  9392. //! moment.js locale configuration
  9393. var units$1 = {
  9394. 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  9395. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  9396. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  9397. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  9398. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  9399. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  9400. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  9401. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  9402. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  9403. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  9404. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  9405. };
  9406. /**
  9407. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  9408. */
  9409. function format$1(forms, number, withoutSuffix) {
  9410. if (withoutSuffix) {
  9411. // E.g. "21 minūte", "3 minūtes".
  9412. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  9413. } else {
  9414. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  9415. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  9416. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  9417. }
  9418. }
  9419. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  9420. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  9421. }
  9422. function relativeTimeWithSingular(number, withoutSuffix, key) {
  9423. return format$1(units$1[key], number, withoutSuffix);
  9424. }
  9425. function relativeSeconds(number, withoutSuffix) {
  9426. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  9427. }
  9428. hooks.defineLocale('lv', {
  9429. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  9430. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  9431. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  9432. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  9433. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  9434. weekdaysParseExact : true,
  9435. longDateFormat : {
  9436. LT : 'HH:mm',
  9437. LTS : 'HH:mm:ss',
  9438. L : 'DD.MM.YYYY.',
  9439. LL : 'YYYY. [gada] D. MMMM',
  9440. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  9441. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  9442. },
  9443. calendar : {
  9444. sameDay : '[Šodien pulksten] LT',
  9445. nextDay : '[Rīt pulksten] LT',
  9446. nextWeek : 'dddd [pulksten] LT',
  9447. lastDay : '[Vakar pulksten] LT',
  9448. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  9449. sameElse : 'L'
  9450. },
  9451. relativeTime : {
  9452. future : 'pēc %s',
  9453. past : 'pirms %s',
  9454. s : relativeSeconds,
  9455. ss : relativeTimeWithPlural$1,
  9456. m : relativeTimeWithSingular,
  9457. mm : relativeTimeWithPlural$1,
  9458. h : relativeTimeWithSingular,
  9459. hh : relativeTimeWithPlural$1,
  9460. d : relativeTimeWithSingular,
  9461. dd : relativeTimeWithPlural$1,
  9462. M : relativeTimeWithSingular,
  9463. MM : relativeTimeWithPlural$1,
  9464. y : relativeTimeWithSingular,
  9465. yy : relativeTimeWithPlural$1
  9466. },
  9467. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9468. ordinal : '%d.',
  9469. week : {
  9470. dow : 1, // Monday is the first day of the week.
  9471. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9472. }
  9473. });
  9474. //! moment.js locale configuration
  9475. var translator = {
  9476. words: { //Different grammatical cases
  9477. ss: ['sekund', 'sekunda', 'sekundi'],
  9478. m: ['jedan minut', 'jednog minuta'],
  9479. mm: ['minut', 'minuta', 'minuta'],
  9480. h: ['jedan sat', 'jednog sata'],
  9481. hh: ['sat', 'sata', 'sati'],
  9482. dd: ['dan', 'dana', 'dana'],
  9483. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  9484. yy: ['godina', 'godine', 'godina']
  9485. },
  9486. correctGrammaticalCase: function (number, wordKey) {
  9487. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  9488. },
  9489. translate: function (number, withoutSuffix, key) {
  9490. var wordKey = translator.words[key];
  9491. if (key.length === 1) {
  9492. return withoutSuffix ? wordKey[0] : wordKey[1];
  9493. } else {
  9494. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  9495. }
  9496. }
  9497. };
  9498. hooks.defineLocale('me', {
  9499. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  9500. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  9501. monthsParseExact : true,
  9502. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  9503. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  9504. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  9505. weekdaysParseExact : true,
  9506. longDateFormat: {
  9507. LT: 'H:mm',
  9508. LTS : 'H:mm:ss',
  9509. L: 'DD.MM.YYYY',
  9510. LL: 'D. MMMM YYYY',
  9511. LLL: 'D. MMMM YYYY H:mm',
  9512. LLLL: 'dddd, D. MMMM YYYY H:mm'
  9513. },
  9514. calendar: {
  9515. sameDay: '[danas u] LT',
  9516. nextDay: '[sjutra u] LT',
  9517. nextWeek: function () {
  9518. switch (this.day()) {
  9519. case 0:
  9520. return '[u] [nedjelju] [u] LT';
  9521. case 3:
  9522. return '[u] [srijedu] [u] LT';
  9523. case 6:
  9524. return '[u] [subotu] [u] LT';
  9525. case 1:
  9526. case 2:
  9527. case 4:
  9528. case 5:
  9529. return '[u] dddd [u] LT';
  9530. }
  9531. },
  9532. lastDay : '[juče u] LT',
  9533. lastWeek : function () {
  9534. var lastWeekDays = [
  9535. '[prošle] [nedjelje] [u] LT',
  9536. '[prošlog] [ponedjeljka] [u] LT',
  9537. '[prošlog] [utorka] [u] LT',
  9538. '[prošle] [srijede] [u] LT',
  9539. '[prošlog] [četvrtka] [u] LT',
  9540. '[prošlog] [petka] [u] LT',
  9541. '[prošle] [subote] [u] LT'
  9542. ];
  9543. return lastWeekDays[this.day()];
  9544. },
  9545. sameElse : 'L'
  9546. },
  9547. relativeTime : {
  9548. future : 'za %s',
  9549. past : 'prije %s',
  9550. s : 'nekoliko sekundi',
  9551. ss : translator.translate,
  9552. m : translator.translate,
  9553. mm : translator.translate,
  9554. h : translator.translate,
  9555. hh : translator.translate,
  9556. d : 'dan',
  9557. dd : translator.translate,
  9558. M : 'mjesec',
  9559. MM : translator.translate,
  9560. y : 'godinu',
  9561. yy : translator.translate
  9562. },
  9563. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9564. ordinal : '%d.',
  9565. week : {
  9566. dow : 1, // Monday is the first day of the week.
  9567. doy : 7 // The week that contains Jan 7th is the first week of the year.
  9568. }
  9569. });
  9570. //! moment.js locale configuration
  9571. hooks.defineLocale('mi', {
  9572. 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('_'),
  9573. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  9574. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  9575. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  9576. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  9577. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  9578. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  9579. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  9580. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  9581. longDateFormat: {
  9582. LT: 'HH:mm',
  9583. LTS: 'HH:mm:ss',
  9584. L: 'DD/MM/YYYY',
  9585. LL: 'D MMMM YYYY',
  9586. LLL: 'D MMMM YYYY [i] HH:mm',
  9587. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  9588. },
  9589. calendar: {
  9590. sameDay: '[i teie mahana, i] LT',
  9591. nextDay: '[apopo i] LT',
  9592. nextWeek: 'dddd [i] LT',
  9593. lastDay: '[inanahi i] LT',
  9594. lastWeek: 'dddd [whakamutunga i] LT',
  9595. sameElse: 'L'
  9596. },
  9597. relativeTime: {
  9598. future: 'i roto i %s',
  9599. past: '%s i mua',
  9600. s: 'te hēkona ruarua',
  9601. ss: '%d hēkona',
  9602. m: 'he meneti',
  9603. mm: '%d meneti',
  9604. h: 'te haora',
  9605. hh: '%d haora',
  9606. d: 'he ra',
  9607. dd: '%d ra',
  9608. M: 'he marama',
  9609. MM: '%d marama',
  9610. y: 'he tau',
  9611. yy: '%d tau'
  9612. },
  9613. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9614. ordinal: '%dº',
  9615. week : {
  9616. dow : 1, // Monday is the first day of the week.
  9617. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9618. }
  9619. });
  9620. //! moment.js locale configuration
  9621. hooks.defineLocale('mk', {
  9622. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  9623. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  9624. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  9625. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  9626. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  9627. longDateFormat : {
  9628. LT : 'H:mm',
  9629. LTS : 'H:mm:ss',
  9630. L : 'D.MM.YYYY',
  9631. LL : 'D MMMM YYYY',
  9632. LLL : 'D MMMM YYYY H:mm',
  9633. LLLL : 'dddd, D MMMM YYYY H:mm'
  9634. },
  9635. calendar : {
  9636. sameDay : '[Денес во] LT',
  9637. nextDay : '[Утре во] LT',
  9638. nextWeek : '[Во] dddd [во] LT',
  9639. lastDay : '[Вчера во] LT',
  9640. lastWeek : function () {
  9641. switch (this.day()) {
  9642. case 0:
  9643. case 3:
  9644. case 6:
  9645. return '[Изминатата] dddd [во] LT';
  9646. case 1:
  9647. case 2:
  9648. case 4:
  9649. case 5:
  9650. return '[Изминатиот] dddd [во] LT';
  9651. }
  9652. },
  9653. sameElse : 'L'
  9654. },
  9655. relativeTime : {
  9656. future : 'после %s',
  9657. past : 'пред %s',
  9658. s : 'неколку секунди',
  9659. ss : '%d секунди',
  9660. m : 'минута',
  9661. mm : '%d минути',
  9662. h : 'час',
  9663. hh : '%d часа',
  9664. d : 'ден',
  9665. dd : '%d дена',
  9666. M : 'месец',
  9667. MM : '%d месеци',
  9668. y : 'година',
  9669. yy : '%d години'
  9670. },
  9671. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  9672. ordinal : function (number) {
  9673. var lastDigit = number % 10,
  9674. last2Digits = number % 100;
  9675. if (number === 0) {
  9676. return number + '-ев';
  9677. } else if (last2Digits === 0) {
  9678. return number + '-ен';
  9679. } else if (last2Digits > 10 && last2Digits < 20) {
  9680. return number + '-ти';
  9681. } else if (lastDigit === 1) {
  9682. return number + '-ви';
  9683. } else if (lastDigit === 2) {
  9684. return number + '-ри';
  9685. } else if (lastDigit === 7 || lastDigit === 8) {
  9686. return number + '-ми';
  9687. } else {
  9688. return number + '-ти';
  9689. }
  9690. },
  9691. week : {
  9692. dow : 1, // Monday is the first day of the week.
  9693. doy : 7 // The week that contains Jan 7th is the first week of the year.
  9694. }
  9695. });
  9696. //! moment.js locale configuration
  9697. hooks.defineLocale('ml', {
  9698. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  9699. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  9700. monthsParseExact : true,
  9701. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  9702. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  9703. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  9704. longDateFormat : {
  9705. LT : 'A h:mm -നു',
  9706. LTS : 'A h:mm:ss -നു',
  9707. L : 'DD/MM/YYYY',
  9708. LL : 'D MMMM YYYY',
  9709. LLL : 'D MMMM YYYY, A h:mm -നു',
  9710. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  9711. },
  9712. calendar : {
  9713. sameDay : '[ഇന്ന്] LT',
  9714. nextDay : '[നാളെ] LT',
  9715. nextWeek : 'dddd, LT',
  9716. lastDay : '[ഇന്നലെ] LT',
  9717. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  9718. sameElse : 'L'
  9719. },
  9720. relativeTime : {
  9721. future : '%s കഴിഞ്ഞ്',
  9722. past : '%s മുൻപ്',
  9723. s : 'അൽപ നിമിഷങ്ങൾ',
  9724. ss : '%d സെക്കൻഡ്',
  9725. m : 'ഒരു മിനിറ്റ്',
  9726. mm : '%d മിനിറ്റ്',
  9727. h : 'ഒരു മണിക്കൂർ',
  9728. hh : '%d മണിക്കൂർ',
  9729. d : 'ഒരു ദിവസം',
  9730. dd : '%d ദിവസം',
  9731. M : 'ഒരു മാസം',
  9732. MM : '%d മാസം',
  9733. y : 'ഒരു വർഷം',
  9734. yy : '%d വർഷം'
  9735. },
  9736. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  9737. meridiemHour : function (hour, meridiem) {
  9738. if (hour === 12) {
  9739. hour = 0;
  9740. }
  9741. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  9742. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  9743. meridiem === 'വൈകുന്നേരം') {
  9744. return hour + 12;
  9745. } else {
  9746. return hour;
  9747. }
  9748. },
  9749. meridiem : function (hour, minute, isLower) {
  9750. if (hour < 4) {
  9751. return 'രാത്രി';
  9752. } else if (hour < 12) {
  9753. return 'രാവിലെ';
  9754. } else if (hour < 17) {
  9755. return 'ഉച്ച കഴിഞ്ഞ്';
  9756. } else if (hour < 20) {
  9757. return 'വൈകുന്നേരം';
  9758. } else {
  9759. return 'രാത്രി';
  9760. }
  9761. }
  9762. });
  9763. //! moment.js locale configuration
  9764. function translate$7(number, withoutSuffix, key, isFuture) {
  9765. switch (key) {
  9766. case 's':
  9767. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  9768. case 'ss':
  9769. return number + (withoutSuffix ? ' секунд' : ' секундын');
  9770. case 'm':
  9771. case 'mm':
  9772. return number + (withoutSuffix ? ' минут' : ' минутын');
  9773. case 'h':
  9774. case 'hh':
  9775. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  9776. case 'd':
  9777. case 'dd':
  9778. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  9779. case 'M':
  9780. case 'MM':
  9781. return number + (withoutSuffix ? ' сар' : ' сарын');
  9782. case 'y':
  9783. case 'yy':
  9784. return number + (withoutSuffix ? ' жил' : ' жилийн');
  9785. default:
  9786. return number;
  9787. }
  9788. }
  9789. hooks.defineLocale('mn', {
  9790. months : 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
  9791. monthsShort : '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
  9792. monthsParseExact : true,
  9793. weekdays : 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  9794. weekdaysShort : 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  9795. weekdaysMin : 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  9796. weekdaysParseExact : true,
  9797. longDateFormat : {
  9798. LT : 'HH:mm',
  9799. LTS : 'HH:mm:ss',
  9800. L : 'YYYY-MM-DD',
  9801. LL : 'YYYY оны MMMMын D',
  9802. LLL : 'YYYY оны MMMMын D HH:mm',
  9803. LLLL : 'dddd, YYYY оны MMMMын D HH:mm'
  9804. },
  9805. meridiemParse: /ҮӨ|ҮХ/i,
  9806. isPM : function (input) {
  9807. return input === 'ҮХ';
  9808. },
  9809. meridiem : function (hour, minute, isLower) {
  9810. if (hour < 12) {
  9811. return 'ҮӨ';
  9812. } else {
  9813. return 'ҮХ';
  9814. }
  9815. },
  9816. calendar : {
  9817. sameDay : '[Өнөөдөр] LT',
  9818. nextDay : '[Маргааш] LT',
  9819. nextWeek : '[Ирэх] dddd LT',
  9820. lastDay : '[Өчигдөр] LT',
  9821. lastWeek : '[Өнгөрсөн] dddd LT',
  9822. sameElse : 'L'
  9823. },
  9824. relativeTime : {
  9825. future : '%s дараа',
  9826. past : '%s өмнө',
  9827. s : translate$7,
  9828. ss : translate$7,
  9829. m : translate$7,
  9830. mm : translate$7,
  9831. h : translate$7,
  9832. hh : translate$7,
  9833. d : translate$7,
  9834. dd : translate$7,
  9835. M : translate$7,
  9836. MM : translate$7,
  9837. y : translate$7,
  9838. yy : translate$7
  9839. },
  9840. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  9841. ordinal : function (number, period) {
  9842. switch (period) {
  9843. case 'd':
  9844. case 'D':
  9845. case 'DDD':
  9846. return number + ' өдөр';
  9847. default:
  9848. return number;
  9849. }
  9850. }
  9851. });
  9852. //! moment.js locale configuration
  9853. var symbolMap$b = {
  9854. '1': '१',
  9855. '2': '२',
  9856. '3': '३',
  9857. '4': '४',
  9858. '5': '५',
  9859. '6': '६',
  9860. '7': '७',
  9861. '8': '८',
  9862. '9': '९',
  9863. '0': '०'
  9864. },
  9865. numberMap$a = {
  9866. '१': '1',
  9867. '२': '2',
  9868. '३': '3',
  9869. '४': '4',
  9870. '५': '5',
  9871. '६': '6',
  9872. '७': '7',
  9873. '८': '8',
  9874. '९': '9',
  9875. '०': '0'
  9876. };
  9877. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  9878. {
  9879. var output = '';
  9880. if (withoutSuffix) {
  9881. switch (string) {
  9882. case 's': output = 'काही सेकंद'; break;
  9883. case 'ss': output = '%d सेकंद'; break;
  9884. case 'm': output = 'एक मिनिट'; break;
  9885. case 'mm': output = '%d मिनिटे'; break;
  9886. case 'h': output = 'एक तास'; break;
  9887. case 'hh': output = '%d तास'; break;
  9888. case 'd': output = 'एक दिवस'; break;
  9889. case 'dd': output = '%d दिवस'; break;
  9890. case 'M': output = 'एक महिना'; break;
  9891. case 'MM': output = '%d महिने'; break;
  9892. case 'y': output = 'एक वर्ष'; break;
  9893. case 'yy': output = '%d वर्षे'; break;
  9894. }
  9895. }
  9896. else {
  9897. switch (string) {
  9898. case 's': output = 'काही सेकंदां'; break;
  9899. case 'ss': output = '%d सेकंदां'; break;
  9900. case 'm': output = 'एका मिनिटा'; break;
  9901. case 'mm': output = '%d मिनिटां'; break;
  9902. case 'h': output = 'एका तासा'; break;
  9903. case 'hh': output = '%d तासां'; break;
  9904. case 'd': output = 'एका दिवसा'; break;
  9905. case 'dd': output = '%d दिवसां'; break;
  9906. case 'M': output = 'एका महिन्या'; break;
  9907. case 'MM': output = '%d महिन्यां'; break;
  9908. case 'y': output = 'एका वर्षा'; break;
  9909. case 'yy': output = '%d वर्षां'; break;
  9910. }
  9911. }
  9912. return output.replace(/%d/i, number);
  9913. }
  9914. hooks.defineLocale('mr', {
  9915. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  9916. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  9917. monthsParseExact : true,
  9918. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9919. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  9920. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9921. longDateFormat : {
  9922. LT : 'A h:mm वाजता',
  9923. LTS : 'A h:mm:ss वाजता',
  9924. L : 'DD/MM/YYYY',
  9925. LL : 'D MMMM YYYY',
  9926. LLL : 'D MMMM YYYY, A h:mm वाजता',
  9927. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  9928. },
  9929. calendar : {
  9930. sameDay : '[आज] LT',
  9931. nextDay : '[उद्या] LT',
  9932. nextWeek : 'dddd, LT',
  9933. lastDay : '[काल] LT',
  9934. lastWeek: '[मागील] dddd, LT',
  9935. sameElse : 'L'
  9936. },
  9937. relativeTime : {
  9938. future: '%sमध्ये',
  9939. past: '%sपूर्वी',
  9940. s: relativeTimeMr,
  9941. ss: relativeTimeMr,
  9942. m: relativeTimeMr,
  9943. mm: relativeTimeMr,
  9944. h: relativeTimeMr,
  9945. hh: relativeTimeMr,
  9946. d: relativeTimeMr,
  9947. dd: relativeTimeMr,
  9948. M: relativeTimeMr,
  9949. MM: relativeTimeMr,
  9950. y: relativeTimeMr,
  9951. yy: relativeTimeMr
  9952. },
  9953. preparse: function (string) {
  9954. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9955. return numberMap$a[match];
  9956. });
  9957. },
  9958. postformat: function (string) {
  9959. return string.replace(/\d/g, function (match) {
  9960. return symbolMap$b[match];
  9961. });
  9962. },
  9963. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  9964. meridiemHour : function (hour, meridiem) {
  9965. if (hour === 12) {
  9966. hour = 0;
  9967. }
  9968. if (meridiem === 'रात्री') {
  9969. return hour < 4 ? hour : hour + 12;
  9970. } else if (meridiem === 'सकाळी') {
  9971. return hour;
  9972. } else if (meridiem === 'दुपारी') {
  9973. return hour >= 10 ? hour : hour + 12;
  9974. } else if (meridiem === 'सायंकाळी') {
  9975. return hour + 12;
  9976. }
  9977. },
  9978. meridiem: function (hour, minute, isLower) {
  9979. if (hour < 4) {
  9980. return 'रात्री';
  9981. } else if (hour < 10) {
  9982. return 'सकाळी';
  9983. } else if (hour < 17) {
  9984. return 'दुपारी';
  9985. } else if (hour < 20) {
  9986. return 'सायंकाळी';
  9987. } else {
  9988. return 'रात्री';
  9989. }
  9990. },
  9991. week : {
  9992. dow : 0, // Sunday is the first day of the week.
  9993. doy : 6 // The week that contains Jan 6th is the first week of the year.
  9994. }
  9995. });
  9996. //! moment.js locale configuration
  9997. hooks.defineLocale('ms-my', {
  9998. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  9999. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  10000. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  10001. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  10002. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  10003. longDateFormat : {
  10004. LT : 'HH.mm',
  10005. LTS : 'HH.mm.ss',
  10006. L : 'DD/MM/YYYY',
  10007. LL : 'D MMMM YYYY',
  10008. LLL : 'D MMMM YYYY [pukul] HH.mm',
  10009. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  10010. },
  10011. meridiemParse: /pagi|tengahari|petang|malam/,
  10012. meridiemHour: function (hour, meridiem) {
  10013. if (hour === 12) {
  10014. hour = 0;
  10015. }
  10016. if (meridiem === 'pagi') {
  10017. return hour;
  10018. } else if (meridiem === 'tengahari') {
  10019. return hour >= 11 ? hour : hour + 12;
  10020. } else if (meridiem === 'petang' || meridiem === 'malam') {
  10021. return hour + 12;
  10022. }
  10023. },
  10024. meridiem : function (hours, minutes, isLower) {
  10025. if (hours < 11) {
  10026. return 'pagi';
  10027. } else if (hours < 15) {
  10028. return 'tengahari';
  10029. } else if (hours < 19) {
  10030. return 'petang';
  10031. } else {
  10032. return 'malam';
  10033. }
  10034. },
  10035. calendar : {
  10036. sameDay : '[Hari ini pukul] LT',
  10037. nextDay : '[Esok pukul] LT',
  10038. nextWeek : 'dddd [pukul] LT',
  10039. lastDay : '[Kelmarin pukul] LT',
  10040. lastWeek : 'dddd [lepas pukul] LT',
  10041. sameElse : 'L'
  10042. },
  10043. relativeTime : {
  10044. future : 'dalam %s',
  10045. past : '%s yang lepas',
  10046. s : 'beberapa saat',
  10047. ss : '%d saat',
  10048. m : 'seminit',
  10049. mm : '%d minit',
  10050. h : 'sejam',
  10051. hh : '%d jam',
  10052. d : 'sehari',
  10053. dd : '%d hari',
  10054. M : 'sebulan',
  10055. MM : '%d bulan',
  10056. y : 'setahun',
  10057. yy : '%d tahun'
  10058. },
  10059. week : {
  10060. dow : 1, // Monday is the first day of the week.
  10061. doy : 7 // The week that contains Jan 7th is the first week of the year.
  10062. }
  10063. });
  10064. //! moment.js locale configuration
  10065. hooks.defineLocale('ms', {
  10066. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  10067. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  10068. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  10069. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  10070. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  10071. longDateFormat : {
  10072. LT : 'HH.mm',
  10073. LTS : 'HH.mm.ss',
  10074. L : 'DD/MM/YYYY',
  10075. LL : 'D MMMM YYYY',
  10076. LLL : 'D MMMM YYYY [pukul] HH.mm',
  10077. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  10078. },
  10079. meridiemParse: /pagi|tengahari|petang|malam/,
  10080. meridiemHour: function (hour, meridiem) {
  10081. if (hour === 12) {
  10082. hour = 0;
  10083. }
  10084. if (meridiem === 'pagi') {
  10085. return hour;
  10086. } else if (meridiem === 'tengahari') {
  10087. return hour >= 11 ? hour : hour + 12;
  10088. } else if (meridiem === 'petang' || meridiem === 'malam') {
  10089. return hour + 12;
  10090. }
  10091. },
  10092. meridiem : function (hours, minutes, isLower) {
  10093. if (hours < 11) {
  10094. return 'pagi';
  10095. } else if (hours < 15) {
  10096. return 'tengahari';
  10097. } else if (hours < 19) {
  10098. return 'petang';
  10099. } else {
  10100. return 'malam';
  10101. }
  10102. },
  10103. calendar : {
  10104. sameDay : '[Hari ini pukul] LT',
  10105. nextDay : '[Esok pukul] LT',
  10106. nextWeek : 'dddd [pukul] LT',
  10107. lastDay : '[Kelmarin pukul] LT',
  10108. lastWeek : 'dddd [lepas pukul] LT',
  10109. sameElse : 'L'
  10110. },
  10111. relativeTime : {
  10112. future : 'dalam %s',
  10113. past : '%s yang lepas',
  10114. s : 'beberapa saat',
  10115. ss : '%d saat',
  10116. m : 'seminit',
  10117. mm : '%d minit',
  10118. h : 'sejam',
  10119. hh : '%d jam',
  10120. d : 'sehari',
  10121. dd : '%d hari',
  10122. M : 'sebulan',
  10123. MM : '%d bulan',
  10124. y : 'setahun',
  10125. yy : '%d tahun'
  10126. },
  10127. week : {
  10128. dow : 1, // Monday is the first day of the week.
  10129. doy : 7 // The week that contains Jan 7th is the first week of the year.
  10130. }
  10131. });
  10132. //! moment.js locale configuration
  10133. hooks.defineLocale('mt', {
  10134. months : 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
  10135. monthsShort : 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  10136. weekdays : 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
  10137. weekdaysShort : 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  10138. weekdaysMin : 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  10139. longDateFormat : {
  10140. LT : 'HH:mm',
  10141. LTS : 'HH:mm:ss',
  10142. L : 'DD/MM/YYYY',
  10143. LL : 'D MMMM YYYY',
  10144. LLL : 'D MMMM YYYY HH:mm',
  10145. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10146. },
  10147. calendar : {
  10148. sameDay : '[Illum fil-]LT',
  10149. nextDay : '[Għada fil-]LT',
  10150. nextWeek : 'dddd [fil-]LT',
  10151. lastDay : '[Il-bieraħ fil-]LT',
  10152. lastWeek : 'dddd [li għadda] [fil-]LT',
  10153. sameElse : 'L'
  10154. },
  10155. relativeTime : {
  10156. future : 'f’ %s',
  10157. past : '%s ilu',
  10158. s : 'ftit sekondi',
  10159. ss : '%d sekondi',
  10160. m : 'minuta',
  10161. mm : '%d minuti',
  10162. h : 'siegħa',
  10163. hh : '%d siegħat',
  10164. d : 'ġurnata',
  10165. dd : '%d ġranet',
  10166. M : 'xahar',
  10167. MM : '%d xhur',
  10168. y : 'sena',
  10169. yy : '%d sni'
  10170. },
  10171. dayOfMonthOrdinalParse : /\d{1,2}º/,
  10172. ordinal: '%dº',
  10173. week : {
  10174. dow : 1, // Monday is the first day of the week.
  10175. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10176. }
  10177. });
  10178. //! moment.js locale configuration
  10179. var symbolMap$c = {
  10180. '1': '၁',
  10181. '2': '၂',
  10182. '3': '၃',
  10183. '4': '၄',
  10184. '5': '၅',
  10185. '6': '၆',
  10186. '7': '၇',
  10187. '8': '၈',
  10188. '9': '၉',
  10189. '0': '၀'
  10190. }, numberMap$b = {
  10191. '၁': '1',
  10192. '၂': '2',
  10193. '၃': '3',
  10194. '၄': '4',
  10195. '၅': '5',
  10196. '၆': '6',
  10197. '၇': '7',
  10198. '၈': '8',
  10199. '၉': '9',
  10200. '၀': '0'
  10201. };
  10202. hooks.defineLocale('my', {
  10203. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  10204. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  10205. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  10206. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  10207. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  10208. longDateFormat: {
  10209. LT: 'HH:mm',
  10210. LTS: 'HH:mm:ss',
  10211. L: 'DD/MM/YYYY',
  10212. LL: 'D MMMM YYYY',
  10213. LLL: 'D MMMM YYYY HH:mm',
  10214. LLLL: 'dddd D MMMM YYYY HH:mm'
  10215. },
  10216. calendar: {
  10217. sameDay: '[ယနေ.] LT [မှာ]',
  10218. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  10219. nextWeek: 'dddd LT [မှာ]',
  10220. lastDay: '[မနေ.က] LT [မှာ]',
  10221. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  10222. sameElse: 'L'
  10223. },
  10224. relativeTime: {
  10225. future: 'လာမည့် %s မှာ',
  10226. past: 'လွန်ခဲ့သော %s က',
  10227. s: 'စက္ကန်.အနည်းငယ်',
  10228. ss : '%d စက္ကန့်',
  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. preparse: function (string) {
  10241. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  10242. return numberMap$b[match];
  10243. });
  10244. },
  10245. postformat: function (string) {
  10246. return string.replace(/\d/g, function (match) {
  10247. return symbolMap$c[match];
  10248. });
  10249. },
  10250. week: {
  10251. dow: 1, // Monday is the first day of the week.
  10252. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10253. }
  10254. });
  10255. //! moment.js locale configuration
  10256. hooks.defineLocale('nb', {
  10257. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  10258. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  10259. monthsParseExact : true,
  10260. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  10261. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  10262. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  10263. weekdaysParseExact : true,
  10264. longDateFormat : {
  10265. LT : 'HH:mm',
  10266. LTS : 'HH:mm:ss',
  10267. L : 'DD.MM.YYYY',
  10268. LL : 'D. MMMM YYYY',
  10269. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  10270. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  10271. },
  10272. calendar : {
  10273. sameDay: '[i dag kl.] LT',
  10274. nextDay: '[i morgen kl.] LT',
  10275. nextWeek: 'dddd [kl.] LT',
  10276. lastDay: '[i går kl.] LT',
  10277. lastWeek: '[forrige] dddd [kl.] LT',
  10278. sameElse: 'L'
  10279. },
  10280. relativeTime : {
  10281. future : 'om %s',
  10282. past : '%s siden',
  10283. s : 'noen sekunder',
  10284. ss : '%d sekunder',
  10285. m : 'ett minutt',
  10286. mm : '%d minutter',
  10287. h : 'en time',
  10288. hh : '%d timer',
  10289. d : 'en dag',
  10290. dd : '%d dager',
  10291. M : 'en måned',
  10292. MM : '%d måneder',
  10293. y : 'ett år',
  10294. yy : '%d år'
  10295. },
  10296. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10297. ordinal : '%d.',
  10298. week : {
  10299. dow : 1, // Monday is the first day of the week.
  10300. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10301. }
  10302. });
  10303. //! moment.js locale configuration
  10304. var symbolMap$d = {
  10305. '1': '१',
  10306. '2': '२',
  10307. '3': '३',
  10308. '4': '४',
  10309. '5': '५',
  10310. '6': '६',
  10311. '7': '७',
  10312. '8': '८',
  10313. '9': '९',
  10314. '0': '०'
  10315. },
  10316. numberMap$c = {
  10317. '१': '1',
  10318. '२': '2',
  10319. '३': '3',
  10320. '४': '4',
  10321. '५': '5',
  10322. '६': '6',
  10323. '७': '7',
  10324. '८': '8',
  10325. '९': '9',
  10326. '०': '0'
  10327. };
  10328. hooks.defineLocale('ne', {
  10329. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  10330. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  10331. monthsParseExact : true,
  10332. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  10333. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  10334. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  10335. weekdaysParseExact : true,
  10336. longDateFormat : {
  10337. LT : 'Aको h:mm बजे',
  10338. LTS : 'Aको h:mm:ss बजे',
  10339. L : 'DD/MM/YYYY',
  10340. LL : 'D MMMM YYYY',
  10341. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  10342. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  10343. },
  10344. preparse: function (string) {
  10345. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  10346. return numberMap$c[match];
  10347. });
  10348. },
  10349. postformat: function (string) {
  10350. return string.replace(/\d/g, function (match) {
  10351. return symbolMap$d[match];
  10352. });
  10353. },
  10354. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  10355. meridiemHour : function (hour, meridiem) {
  10356. if (hour === 12) {
  10357. hour = 0;
  10358. }
  10359. if (meridiem === 'राति') {
  10360. return hour < 4 ? hour : hour + 12;
  10361. } else if (meridiem === 'बिहान') {
  10362. return hour;
  10363. } else if (meridiem === 'दिउँसो') {
  10364. return hour >= 10 ? hour : hour + 12;
  10365. } else if (meridiem === 'साँझ') {
  10366. return hour + 12;
  10367. }
  10368. },
  10369. meridiem : function (hour, minute, isLower) {
  10370. if (hour < 3) {
  10371. return 'राति';
  10372. } else if (hour < 12) {
  10373. return 'बिहान';
  10374. } else if (hour < 16) {
  10375. return 'दिउँसो';
  10376. } else if (hour < 20) {
  10377. return 'साँझ';
  10378. } else {
  10379. return 'राति';
  10380. }
  10381. },
  10382. calendar : {
  10383. sameDay : '[आज] LT',
  10384. nextDay : '[भोलि] LT',
  10385. nextWeek : '[आउँदो] dddd[,] LT',
  10386. lastDay : '[हिजो] LT',
  10387. lastWeek : '[गएको] dddd[,] LT',
  10388. sameElse : 'L'
  10389. },
  10390. relativeTime : {
  10391. future : '%sमा',
  10392. past : '%s अगाडि',
  10393. s : 'केही क्षण',
  10394. ss : '%d सेकेण्ड',
  10395. m : 'एक मिनेट',
  10396. mm : '%d मिनेट',
  10397. h : 'एक घण्टा',
  10398. hh : '%d घण्टा',
  10399. d : 'एक दिन',
  10400. dd : '%d दिन',
  10401. M : 'एक महिना',
  10402. MM : '%d महिना',
  10403. y : 'एक बर्ष',
  10404. yy : '%d बर्ष'
  10405. },
  10406. week : {
  10407. dow : 0, // Sunday is the first day of the week.
  10408. doy : 6 // The week that contains Jan 6th is the first week of the year.
  10409. }
  10410. });
  10411. //! moment.js locale configuration
  10412. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  10413. monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  10414. var monthsParse$4 = [/^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];
  10415. var monthsRegex$5 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  10416. hooks.defineLocale('nl-be', {
  10417. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  10418. monthsShort : function (m, format) {
  10419. if (!m) {
  10420. return monthsShortWithDots$1;
  10421. } else if (/-MMM-/.test(format)) {
  10422. return monthsShortWithoutDots$1[m.month()];
  10423. } else {
  10424. return monthsShortWithDots$1[m.month()];
  10425. }
  10426. },
  10427. monthsRegex: monthsRegex$5,
  10428. monthsShortRegex: monthsRegex$5,
  10429. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  10430. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  10431. monthsParse : monthsParse$4,
  10432. longMonthsParse : monthsParse$4,
  10433. shortMonthsParse : monthsParse$4,
  10434. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  10435. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  10436. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  10437. weekdaysParseExact : true,
  10438. longDateFormat : {
  10439. LT : 'HH:mm',
  10440. LTS : 'HH:mm:ss',
  10441. L : 'DD/MM/YYYY',
  10442. LL : 'D MMMM YYYY',
  10443. LLL : 'D MMMM YYYY HH:mm',
  10444. LLLL : 'dddd D MMMM YYYY HH:mm'
  10445. },
  10446. calendar : {
  10447. sameDay: '[vandaag om] LT',
  10448. nextDay: '[morgen om] LT',
  10449. nextWeek: 'dddd [om] LT',
  10450. lastDay: '[gisteren om] LT',
  10451. lastWeek: '[afgelopen] dddd [om] LT',
  10452. sameElse: 'L'
  10453. },
  10454. relativeTime : {
  10455. future : 'over %s',
  10456. past : '%s geleden',
  10457. s : 'een paar seconden',
  10458. ss : '%d seconden',
  10459. m : 'één minuut',
  10460. mm : '%d minuten',
  10461. h : 'één uur',
  10462. hh : '%d uur',
  10463. d : 'één dag',
  10464. dd : '%d dagen',
  10465. M : 'één maand',
  10466. MM : '%d maanden',
  10467. y : 'één jaar',
  10468. yy : '%d jaar'
  10469. },
  10470. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  10471. ordinal : function (number) {
  10472. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  10473. },
  10474. week : {
  10475. dow : 1, // Monday is the first day of the week.
  10476. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10477. }
  10478. });
  10479. //! moment.js locale configuration
  10480. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  10481. monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  10482. var monthsParse$5 = [/^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];
  10483. var monthsRegex$6 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  10484. hooks.defineLocale('nl', {
  10485. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  10486. monthsShort : function (m, format) {
  10487. if (!m) {
  10488. return monthsShortWithDots$2;
  10489. } else if (/-MMM-/.test(format)) {
  10490. return monthsShortWithoutDots$2[m.month()];
  10491. } else {
  10492. return monthsShortWithDots$2[m.month()];
  10493. }
  10494. },
  10495. monthsRegex: monthsRegex$6,
  10496. monthsShortRegex: monthsRegex$6,
  10497. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  10498. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  10499. monthsParse : monthsParse$5,
  10500. longMonthsParse : monthsParse$5,
  10501. shortMonthsParse : monthsParse$5,
  10502. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  10503. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  10504. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  10505. weekdaysParseExact : true,
  10506. longDateFormat : {
  10507. LT : 'HH:mm',
  10508. LTS : 'HH:mm:ss',
  10509. L : 'DD-MM-YYYY',
  10510. LL : 'D MMMM YYYY',
  10511. LLL : 'D MMMM YYYY HH:mm',
  10512. LLLL : 'dddd D MMMM YYYY HH:mm'
  10513. },
  10514. calendar : {
  10515. sameDay: '[vandaag om] LT',
  10516. nextDay: '[morgen om] LT',
  10517. nextWeek: 'dddd [om] LT',
  10518. lastDay: '[gisteren om] LT',
  10519. lastWeek: '[afgelopen] dddd [om] LT',
  10520. sameElse: 'L'
  10521. },
  10522. relativeTime : {
  10523. future : 'over %s',
  10524. past : '%s geleden',
  10525. s : 'een paar seconden',
  10526. ss : '%d seconden',
  10527. m : 'één minuut',
  10528. mm : '%d minuten',
  10529. h : 'één uur',
  10530. hh : '%d uur',
  10531. d : 'één dag',
  10532. dd : '%d dagen',
  10533. M : 'één maand',
  10534. MM : '%d maanden',
  10535. y : 'één jaar',
  10536. yy : '%d jaar'
  10537. },
  10538. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  10539. ordinal : function (number) {
  10540. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  10541. },
  10542. week : {
  10543. dow : 1, // Monday is the first day of the week.
  10544. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10545. }
  10546. });
  10547. //! moment.js locale configuration
  10548. hooks.defineLocale('nn', {
  10549. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  10550. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  10551. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  10552. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  10553. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  10554. longDateFormat : {
  10555. LT : 'HH:mm',
  10556. LTS : 'HH:mm:ss',
  10557. L : 'DD.MM.YYYY',
  10558. LL : 'D. MMMM YYYY',
  10559. LLL : 'D. MMMM YYYY [kl.] H:mm',
  10560. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  10561. },
  10562. calendar : {
  10563. sameDay: '[I dag klokka] LT',
  10564. nextDay: '[I morgon klokka] LT',
  10565. nextWeek: 'dddd [klokka] LT',
  10566. lastDay: '[I går klokka] LT',
  10567. lastWeek: '[Føregåande] dddd [klokka] LT',
  10568. sameElse: 'L'
  10569. },
  10570. relativeTime : {
  10571. future : 'om %s',
  10572. past : '%s sidan',
  10573. s : 'nokre sekund',
  10574. ss : '%d sekund',
  10575. m : 'eit minutt',
  10576. mm : '%d minutt',
  10577. h : 'ein time',
  10578. hh : '%d timar',
  10579. d : 'ein dag',
  10580. dd : '%d dagar',
  10581. M : 'ein månad',
  10582. MM : '%d månader',
  10583. y : 'eit år',
  10584. yy : '%d år'
  10585. },
  10586. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10587. ordinal : '%d.',
  10588. week : {
  10589. dow : 1, // Monday is the first day of the week.
  10590. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10591. }
  10592. });
  10593. //! moment.js locale configuration
  10594. var symbolMap$e = {
  10595. '1': '੧',
  10596. '2': '੨',
  10597. '3': '੩',
  10598. '4': '੪',
  10599. '5': '੫',
  10600. '6': '੬',
  10601. '7': '੭',
  10602. '8': '੮',
  10603. '9': '੯',
  10604. '0': '੦'
  10605. },
  10606. numberMap$d = {
  10607. '੧': '1',
  10608. '੨': '2',
  10609. '੩': '3',
  10610. '੪': '4',
  10611. '੫': '5',
  10612. '੬': '6',
  10613. '੭': '7',
  10614. '੮': '8',
  10615. '੯': '9',
  10616. '੦': '0'
  10617. };
  10618. hooks.defineLocale('pa-in', {
  10619. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  10620. months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  10621. monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  10622. weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  10623. weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  10624. weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  10625. longDateFormat : {
  10626. LT : 'A h:mm ਵਜੇ',
  10627. LTS : 'A h:mm:ss ਵਜੇ',
  10628. L : 'DD/MM/YYYY',
  10629. LL : 'D MMMM YYYY',
  10630. LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
  10631. LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  10632. },
  10633. calendar : {
  10634. sameDay : '[ਅਜ] LT',
  10635. nextDay : '[ਕਲ] LT',
  10636. nextWeek : '[ਅਗਲਾ] dddd, LT',
  10637. lastDay : '[ਕਲ] LT',
  10638. lastWeek : '[ਪਿਛਲੇ] dddd, LT',
  10639. sameElse : 'L'
  10640. },
  10641. relativeTime : {
  10642. future : '%s ਵਿੱਚ',
  10643. past : '%s ਪਿਛਲੇ',
  10644. s : 'ਕੁਝ ਸਕਿੰਟ',
  10645. ss : '%d ਸਕਿੰਟ',
  10646. m : 'ਇਕ ਮਿੰਟ',
  10647. mm : '%d ਮਿੰਟ',
  10648. h : 'ਇੱਕ ਘੰਟਾ',
  10649. hh : '%d ਘੰਟੇ',
  10650. d : 'ਇੱਕ ਦਿਨ',
  10651. dd : '%d ਦਿਨ',
  10652. M : 'ਇੱਕ ਮਹੀਨਾ',
  10653. MM : '%d ਮਹੀਨੇ',
  10654. y : 'ਇੱਕ ਸਾਲ',
  10655. yy : '%d ਸਾਲ'
  10656. },
  10657. preparse: function (string) {
  10658. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  10659. return numberMap$d[match];
  10660. });
  10661. },
  10662. postformat: function (string) {
  10663. return string.replace(/\d/g, function (match) {
  10664. return symbolMap$e[match];
  10665. });
  10666. },
  10667. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  10668. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  10669. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  10670. meridiemHour : function (hour, meridiem) {
  10671. if (hour === 12) {
  10672. hour = 0;
  10673. }
  10674. if (meridiem === 'ਰਾਤ') {
  10675. return hour < 4 ? hour : hour + 12;
  10676. } else if (meridiem === 'ਸਵੇਰ') {
  10677. return hour;
  10678. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  10679. return hour >= 10 ? hour : hour + 12;
  10680. } else if (meridiem === 'ਸ਼ਾਮ') {
  10681. return hour + 12;
  10682. }
  10683. },
  10684. meridiem : function (hour, minute, isLower) {
  10685. if (hour < 4) {
  10686. return 'ਰਾਤ';
  10687. } else if (hour < 10) {
  10688. return 'ਸਵੇਰ';
  10689. } else if (hour < 17) {
  10690. return 'ਦੁਪਹਿਰ';
  10691. } else if (hour < 20) {
  10692. return 'ਸ਼ਾਮ';
  10693. } else {
  10694. return 'ਰਾਤ';
  10695. }
  10696. },
  10697. week : {
  10698. dow : 0, // Sunday is the first day of the week.
  10699. doy : 6 // The week that contains Jan 6th is the first week of the year.
  10700. }
  10701. });
  10702. //! moment.js locale configuration
  10703. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  10704. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  10705. function plural$3(n) {
  10706. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  10707. }
  10708. function translate$8(number, withoutSuffix, key) {
  10709. var result = number + ' ';
  10710. switch (key) {
  10711. case 'ss':
  10712. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  10713. case 'm':
  10714. return withoutSuffix ? 'minuta' : 'minutę';
  10715. case 'mm':
  10716. return result + (plural$3(number) ? 'minuty' : 'minut');
  10717. case 'h':
  10718. return withoutSuffix ? 'godzina' : 'godzinę';
  10719. case 'hh':
  10720. return result + (plural$3(number) ? 'godziny' : 'godzin');
  10721. case 'MM':
  10722. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  10723. case 'yy':
  10724. return result + (plural$3(number) ? 'lata' : 'lat');
  10725. }
  10726. }
  10727. hooks.defineLocale('pl', {
  10728. months : function (momentToFormat, format) {
  10729. if (!momentToFormat) {
  10730. return monthsNominative;
  10731. } else if (format === '') {
  10732. // Hack: if format empty we know this is used to generate
  10733. // RegExp by moment. Give then back both valid forms of months
  10734. // in RegExp ready format.
  10735. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  10736. } else if (/D MMMM/.test(format)) {
  10737. return monthsSubjective[momentToFormat.month()];
  10738. } else {
  10739. return monthsNominative[momentToFormat.month()];
  10740. }
  10741. },
  10742. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  10743. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  10744. weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  10745. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  10746. longDateFormat : {
  10747. LT : 'HH:mm',
  10748. LTS : 'HH:mm:ss',
  10749. L : 'DD.MM.YYYY',
  10750. LL : 'D MMMM YYYY',
  10751. LLL : 'D MMMM YYYY HH:mm',
  10752. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10753. },
  10754. calendar : {
  10755. sameDay: '[Dziś o] LT',
  10756. nextDay: '[Jutro o] LT',
  10757. nextWeek: function () {
  10758. switch (this.day()) {
  10759. case 0:
  10760. return '[W niedzielę o] LT';
  10761. case 2:
  10762. return '[We wtorek o] LT';
  10763. case 3:
  10764. return '[W środę o] LT';
  10765. case 6:
  10766. return '[W sobotę o] LT';
  10767. default:
  10768. return '[W] dddd [o] LT';
  10769. }
  10770. },
  10771. lastDay: '[Wczoraj o] LT',
  10772. lastWeek: function () {
  10773. switch (this.day()) {
  10774. case 0:
  10775. return '[W zeszłą niedzielę o] LT';
  10776. case 3:
  10777. return '[W zeszłą środę o] LT';
  10778. case 6:
  10779. return '[W zeszłą sobotę o] LT';
  10780. default:
  10781. return '[W zeszły] dddd [o] LT';
  10782. }
  10783. },
  10784. sameElse: 'L'
  10785. },
  10786. relativeTime : {
  10787. future : 'za %s',
  10788. past : '%s temu',
  10789. s : 'kilka sekund',
  10790. ss : translate$8,
  10791. m : translate$8,
  10792. mm : translate$8,
  10793. h : translate$8,
  10794. hh : translate$8,
  10795. d : '1 dzień',
  10796. dd : '%d dni',
  10797. M : 'miesiąc',
  10798. MM : translate$8,
  10799. y : 'rok',
  10800. yy : translate$8
  10801. },
  10802. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10803. ordinal : '%d.',
  10804. week : {
  10805. dow : 1, // Monday is the first day of the week.
  10806. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10807. }
  10808. });
  10809. //! moment.js locale configuration
  10810. hooks.defineLocale('pt-br', {
  10811. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  10812. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  10813. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  10814. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  10815. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  10816. weekdaysParseExact : true,
  10817. longDateFormat : {
  10818. LT : 'HH:mm',
  10819. LTS : 'HH:mm:ss',
  10820. L : 'DD/MM/YYYY',
  10821. LL : 'D [de] MMMM [de] YYYY',
  10822. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  10823. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  10824. },
  10825. calendar : {
  10826. sameDay: '[Hoje às] LT',
  10827. nextDay: '[Amanhã às] LT',
  10828. nextWeek: 'dddd [às] LT',
  10829. lastDay: '[Ontem às] LT',
  10830. lastWeek: function () {
  10831. return (this.day() === 0 || this.day() === 6) ?
  10832. '[Último] dddd [às] LT' : // Saturday + Sunday
  10833. '[Última] dddd [às] LT'; // Monday - Friday
  10834. },
  10835. sameElse: 'L'
  10836. },
  10837. relativeTime : {
  10838. future : 'em %s',
  10839. past : 'há %s',
  10840. s : 'poucos segundos',
  10841. ss : '%d segundos',
  10842. m : 'um minuto',
  10843. mm : '%d minutos',
  10844. h : 'uma hora',
  10845. hh : '%d horas',
  10846. d : 'um dia',
  10847. dd : '%d dias',
  10848. M : 'um mês',
  10849. MM : '%d meses',
  10850. y : 'um ano',
  10851. yy : '%d anos'
  10852. },
  10853. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10854. ordinal : '%dº'
  10855. });
  10856. //! moment.js locale configuration
  10857. hooks.defineLocale('pt', {
  10858. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  10859. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  10860. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  10861. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  10862. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  10863. weekdaysParseExact : true,
  10864. longDateFormat : {
  10865. LT : 'HH:mm',
  10866. LTS : 'HH:mm:ss',
  10867. L : 'DD/MM/YYYY',
  10868. LL : 'D [de] MMMM [de] YYYY',
  10869. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  10870. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  10871. },
  10872. calendar : {
  10873. sameDay: '[Hoje às] LT',
  10874. nextDay: '[Amanhã às] LT',
  10875. nextWeek: 'dddd [às] LT',
  10876. lastDay: '[Ontem às] LT',
  10877. lastWeek: function () {
  10878. return (this.day() === 0 || this.day() === 6) ?
  10879. '[Último] dddd [às] LT' : // Saturday + Sunday
  10880. '[Última] dddd [às] LT'; // Monday - Friday
  10881. },
  10882. sameElse: 'L'
  10883. },
  10884. relativeTime : {
  10885. future : 'em %s',
  10886. past : 'há %s',
  10887. s : 'segundos',
  10888. ss : '%d segundos',
  10889. m : 'um minuto',
  10890. mm : '%d minutos',
  10891. h : 'uma hora',
  10892. hh : '%d horas',
  10893. d : 'um dia',
  10894. dd : '%d dias',
  10895. M : 'um mês',
  10896. MM : '%d meses',
  10897. y : 'um ano',
  10898. yy : '%d anos'
  10899. },
  10900. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10901. ordinal : '%dº',
  10902. week : {
  10903. dow : 1, // Monday is the first day of the week.
  10904. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10905. }
  10906. });
  10907. //! moment.js locale configuration
  10908. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  10909. var format = {
  10910. 'ss': 'secunde',
  10911. 'mm': 'minute',
  10912. 'hh': 'ore',
  10913. 'dd': 'zile',
  10914. 'MM': 'luni',
  10915. 'yy': 'ani'
  10916. },
  10917. separator = ' ';
  10918. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  10919. separator = ' de ';
  10920. }
  10921. return number + separator + format[key];
  10922. }
  10923. hooks.defineLocale('ro', {
  10924. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  10925. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  10926. monthsParseExact: true,
  10927. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  10928. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  10929. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  10930. longDateFormat : {
  10931. LT : 'H:mm',
  10932. LTS : 'H:mm:ss',
  10933. L : 'DD.MM.YYYY',
  10934. LL : 'D MMMM YYYY',
  10935. LLL : 'D MMMM YYYY H:mm',
  10936. LLLL : 'dddd, D MMMM YYYY H:mm'
  10937. },
  10938. calendar : {
  10939. sameDay: '[azi la] LT',
  10940. nextDay: '[mâine la] LT',
  10941. nextWeek: 'dddd [la] LT',
  10942. lastDay: '[ieri la] LT',
  10943. lastWeek: '[fosta] dddd [la] LT',
  10944. sameElse: 'L'
  10945. },
  10946. relativeTime : {
  10947. future : 'peste %s',
  10948. past : '%s în urmă',
  10949. s : 'câteva secunde',
  10950. ss : relativeTimeWithPlural$2,
  10951. m : 'un minut',
  10952. mm : relativeTimeWithPlural$2,
  10953. h : 'o oră',
  10954. hh : relativeTimeWithPlural$2,
  10955. d : 'o zi',
  10956. dd : relativeTimeWithPlural$2,
  10957. M : 'o lună',
  10958. MM : relativeTimeWithPlural$2,
  10959. y : 'un an',
  10960. yy : relativeTimeWithPlural$2
  10961. },
  10962. week : {
  10963. dow : 1, // Monday is the first day of the week.
  10964. doy : 7 // The week that contains Jan 7th is the first week of the year.
  10965. }
  10966. });
  10967. //! moment.js locale configuration
  10968. function plural$4(word, num) {
  10969. var forms = word.split('_');
  10970. 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]);
  10971. }
  10972. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  10973. var format = {
  10974. 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  10975. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  10976. 'hh': 'час_часа_часов',
  10977. 'dd': 'день_дня_дней',
  10978. 'MM': 'месяц_месяца_месяцев',
  10979. 'yy': 'год_года_лет'
  10980. };
  10981. if (key === 'm') {
  10982. return withoutSuffix ? 'минута' : 'минуту';
  10983. }
  10984. else {
  10985. return number + ' ' + plural$4(format[key], +number);
  10986. }
  10987. }
  10988. var monthsParse$6 = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  10989. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  10990. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  10991. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  10992. hooks.defineLocale('ru', {
  10993. months : {
  10994. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  10995. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  10996. },
  10997. monthsShort : {
  10998. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  10999. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  11000. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  11001. },
  11002. weekdays : {
  11003. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  11004. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  11005. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  11006. },
  11007. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  11008. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  11009. monthsParse : monthsParse$6,
  11010. longMonthsParse : monthsParse$6,
  11011. shortMonthsParse : monthsParse$6,
  11012. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  11013. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  11014. // копия предыдущего
  11015. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  11016. // полные названия с падежами
  11017. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  11018. // Выражение, которое соотвествует только сокращённым формам
  11019. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  11020. longDateFormat : {
  11021. LT : 'H:mm',
  11022. LTS : 'H:mm:ss',
  11023. L : 'DD.MM.YYYY',
  11024. LL : 'D MMMM YYYY г.',
  11025. LLL : 'D MMMM YYYY г., H:mm',
  11026. LLLL : 'dddd, D MMMM YYYY г., H:mm'
  11027. },
  11028. calendar : {
  11029. sameDay: '[Сегодня, в] LT',
  11030. nextDay: '[Завтра, в] LT',
  11031. lastDay: '[Вчера, в] LT',
  11032. nextWeek: function (now) {
  11033. if (now.week() !== this.week()) {
  11034. switch (this.day()) {
  11035. case 0:
  11036. return '[В следующее] dddd, [в] LT';
  11037. case 1:
  11038. case 2:
  11039. case 4:
  11040. return '[В следующий] dddd, [в] LT';
  11041. case 3:
  11042. case 5:
  11043. case 6:
  11044. return '[В следующую] dddd, [в] LT';
  11045. }
  11046. } else {
  11047. if (this.day() === 2) {
  11048. return '[Во] dddd, [в] LT';
  11049. } else {
  11050. return '[В] dddd, [в] LT';
  11051. }
  11052. }
  11053. },
  11054. lastWeek: function (now) {
  11055. if (now.week() !== this.week()) {
  11056. switch (this.day()) {
  11057. case 0:
  11058. return '[В прошлое] dddd, [в] LT';
  11059. case 1:
  11060. case 2:
  11061. case 4:
  11062. return '[В прошлый] dddd, [в] LT';
  11063. case 3:
  11064. case 5:
  11065. case 6:
  11066. return '[В прошлую] dddd, [в] LT';
  11067. }
  11068. } else {
  11069. if (this.day() === 2) {
  11070. return '[Во] dddd, [в] LT';
  11071. } else {
  11072. return '[В] dddd, [в] LT';
  11073. }
  11074. }
  11075. },
  11076. sameElse: 'L'
  11077. },
  11078. relativeTime : {
  11079. future : 'через %s',
  11080. past : '%s назад',
  11081. s : 'несколько секунд',
  11082. ss : relativeTimeWithPlural$3,
  11083. m : relativeTimeWithPlural$3,
  11084. mm : relativeTimeWithPlural$3,
  11085. h : 'час',
  11086. hh : relativeTimeWithPlural$3,
  11087. d : 'день',
  11088. dd : relativeTimeWithPlural$3,
  11089. M : 'месяц',
  11090. MM : relativeTimeWithPlural$3,
  11091. y : 'год',
  11092. yy : relativeTimeWithPlural$3
  11093. },
  11094. meridiemParse: /ночи|утра|дня|вечера/i,
  11095. isPM : function (input) {
  11096. return /^(дня|вечера)$/.test(input);
  11097. },
  11098. meridiem : function (hour, minute, isLower) {
  11099. if (hour < 4) {
  11100. return 'ночи';
  11101. } else if (hour < 12) {
  11102. return 'утра';
  11103. } else if (hour < 17) {
  11104. return 'дня';
  11105. } else {
  11106. return 'вечера';
  11107. }
  11108. },
  11109. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  11110. ordinal: function (number, period) {
  11111. switch (period) {
  11112. case 'M':
  11113. case 'd':
  11114. case 'DDD':
  11115. return number + '-й';
  11116. case 'D':
  11117. return number + '-го';
  11118. case 'w':
  11119. case 'W':
  11120. return number + '-я';
  11121. default:
  11122. return number;
  11123. }
  11124. },
  11125. week : {
  11126. dow : 1, // Monday is the first day of the week.
  11127. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11128. }
  11129. });
  11130. //! moment.js locale configuration
  11131. var months$8 = [
  11132. 'جنوري',
  11133. 'فيبروري',
  11134. 'مارچ',
  11135. 'اپريل',
  11136. 'مئي',
  11137. 'جون',
  11138. 'جولاءِ',
  11139. 'آگسٽ',
  11140. 'سيپٽمبر',
  11141. 'آڪٽوبر',
  11142. 'نومبر',
  11143. 'ڊسمبر'
  11144. ];
  11145. var days$1 = [
  11146. 'آچر',
  11147. 'سومر',
  11148. 'اڱارو',
  11149. 'اربع',
  11150. 'خميس',
  11151. 'جمع',
  11152. 'ڇنڇر'
  11153. ];
  11154. hooks.defineLocale('sd', {
  11155. months : months$8,
  11156. monthsShort : months$8,
  11157. weekdays : days$1,
  11158. weekdaysShort : days$1,
  11159. weekdaysMin : days$1,
  11160. longDateFormat : {
  11161. LT : 'HH:mm',
  11162. LTS : 'HH:mm:ss',
  11163. L : 'DD/MM/YYYY',
  11164. LL : 'D MMMM YYYY',
  11165. LLL : 'D MMMM YYYY HH:mm',
  11166. LLLL : 'dddd، D MMMM YYYY HH:mm'
  11167. },
  11168. meridiemParse: /صبح|شام/,
  11169. isPM : function (input) {
  11170. return 'شام' === input;
  11171. },
  11172. meridiem : function (hour, minute, isLower) {
  11173. if (hour < 12) {
  11174. return 'صبح';
  11175. }
  11176. return 'شام';
  11177. },
  11178. calendar : {
  11179. sameDay : '[اڄ] LT',
  11180. nextDay : '[سڀاڻي] LT',
  11181. nextWeek : 'dddd [اڳين هفتي تي] LT',
  11182. lastDay : '[ڪالهه] LT',
  11183. lastWeek : '[گزريل هفتي] dddd [تي] LT',
  11184. sameElse : 'L'
  11185. },
  11186. relativeTime : {
  11187. future : '%s پوء',
  11188. past : '%s اڳ',
  11189. s : 'چند سيڪنڊ',
  11190. ss : '%d سيڪنڊ',
  11191. m : 'هڪ منٽ',
  11192. mm : '%d منٽ',
  11193. h : 'هڪ ڪلاڪ',
  11194. hh : '%d ڪلاڪ',
  11195. d : 'هڪ ڏينهن',
  11196. dd : '%d ڏينهن',
  11197. M : 'هڪ مهينو',
  11198. MM : '%d مهينا',
  11199. y : 'هڪ سال',
  11200. yy : '%d سال'
  11201. },
  11202. preparse: function (string) {
  11203. return string.replace(/،/g, ',');
  11204. },
  11205. postformat: function (string) {
  11206. return string.replace(/,/g, '،');
  11207. },
  11208. week : {
  11209. dow : 1, // Monday is the first day of the week.
  11210. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11211. }
  11212. });
  11213. //! moment.js locale configuration
  11214. hooks.defineLocale('se', {
  11215. 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('_'),
  11216. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  11217. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  11218. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  11219. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  11220. longDateFormat : {
  11221. LT : 'HH:mm',
  11222. LTS : 'HH:mm:ss',
  11223. L : 'DD.MM.YYYY',
  11224. LL : 'MMMM D. [b.] YYYY',
  11225. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  11226. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  11227. },
  11228. calendar : {
  11229. sameDay: '[otne ti] LT',
  11230. nextDay: '[ihttin ti] LT',
  11231. nextWeek: 'dddd [ti] LT',
  11232. lastDay: '[ikte ti] LT',
  11233. lastWeek: '[ovddit] dddd [ti] LT',
  11234. sameElse: 'L'
  11235. },
  11236. relativeTime : {
  11237. future : '%s geažes',
  11238. past : 'maŋit %s',
  11239. s : 'moadde sekunddat',
  11240. ss: '%d sekunddat',
  11241. m : 'okta minuhta',
  11242. mm : '%d minuhtat',
  11243. h : 'okta diimmu',
  11244. hh : '%d diimmut',
  11245. d : 'okta beaivi',
  11246. dd : '%d beaivvit',
  11247. M : 'okta mánnu',
  11248. MM : '%d mánut',
  11249. y : 'okta jahki',
  11250. yy : '%d jagit'
  11251. },
  11252. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11253. ordinal : '%d.',
  11254. week : {
  11255. dow : 1, // Monday is the first day of the week.
  11256. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11257. }
  11258. });
  11259. //! moment.js locale configuration
  11260. /*jshint -W100*/
  11261. hooks.defineLocale('si', {
  11262. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  11263. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  11264. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  11265. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  11266. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  11267. weekdaysParseExact : true,
  11268. longDateFormat : {
  11269. LT : 'a h:mm',
  11270. LTS : 'a h:mm:ss',
  11271. L : 'YYYY/MM/DD',
  11272. LL : 'YYYY MMMM D',
  11273. LLL : 'YYYY MMMM D, a h:mm',
  11274. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  11275. },
  11276. calendar : {
  11277. sameDay : '[අද] LT[ට]',
  11278. nextDay : '[හෙට] LT[ට]',
  11279. nextWeek : 'dddd LT[ට]',
  11280. lastDay : '[ඊයේ] LT[ට]',
  11281. lastWeek : '[පසුගිය] dddd LT[ට]',
  11282. sameElse : 'L'
  11283. },
  11284. relativeTime : {
  11285. future : '%sකින්',
  11286. past : '%sකට පෙර',
  11287. s : 'තත්පර කිහිපය',
  11288. ss : 'තත්පර %d',
  11289. m : 'මිනිත්තුව',
  11290. mm : 'මිනිත්තු %d',
  11291. h : 'පැය',
  11292. hh : 'පැය %d',
  11293. d : 'දිනය',
  11294. dd : 'දින %d',
  11295. M : 'මාසය',
  11296. MM : 'මාස %d',
  11297. y : 'වසර',
  11298. yy : 'වසර %d'
  11299. },
  11300. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  11301. ordinal : function (number) {
  11302. return number + ' වැනි';
  11303. },
  11304. meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  11305. isPM : function (input) {
  11306. return input === 'ප.ව.' || input === 'පස් වරු';
  11307. },
  11308. meridiem : function (hours, minutes, isLower) {
  11309. if (hours > 11) {
  11310. return isLower ? 'ප.ව.' : 'පස් වරු';
  11311. } else {
  11312. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  11313. }
  11314. }
  11315. });
  11316. //! moment.js locale configuration
  11317. var months$9 = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  11318. monthsShort$6 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  11319. function plural$5(n) {
  11320. return (n > 1) && (n < 5);
  11321. }
  11322. function translate$9(number, withoutSuffix, key, isFuture) {
  11323. var result = number + ' ';
  11324. switch (key) {
  11325. case 's': // a few seconds / in a few seconds / a few seconds ago
  11326. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  11327. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  11328. if (withoutSuffix || isFuture) {
  11329. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  11330. } else {
  11331. return result + 'sekundami';
  11332. }
  11333. break;
  11334. case 'm': // a minute / in a minute / a minute ago
  11335. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  11336. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  11337. if (withoutSuffix || isFuture) {
  11338. return result + (plural$5(number) ? 'minúty' : 'minút');
  11339. } else {
  11340. return result + 'minútami';
  11341. }
  11342. break;
  11343. case 'h': // an hour / in an hour / an hour ago
  11344. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  11345. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  11346. if (withoutSuffix || isFuture) {
  11347. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  11348. } else {
  11349. return result + 'hodinami';
  11350. }
  11351. break;
  11352. case 'd': // a day / in a day / a day ago
  11353. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  11354. case 'dd': // 9 days / in 9 days / 9 days ago
  11355. if (withoutSuffix || isFuture) {
  11356. return result + (plural$5(number) ? 'dni' : 'dní');
  11357. } else {
  11358. return result + 'dňami';
  11359. }
  11360. break;
  11361. case 'M': // a month / in a month / a month ago
  11362. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  11363. case 'MM': // 9 months / in 9 months / 9 months ago
  11364. if (withoutSuffix || isFuture) {
  11365. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  11366. } else {
  11367. return result + 'mesiacmi';
  11368. }
  11369. break;
  11370. case 'y': // a year / in a year / a year ago
  11371. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  11372. case 'yy': // 9 years / in 9 years / 9 years ago
  11373. if (withoutSuffix || isFuture) {
  11374. return result + (plural$5(number) ? 'roky' : 'rokov');
  11375. } else {
  11376. return result + 'rokmi';
  11377. }
  11378. break;
  11379. }
  11380. }
  11381. hooks.defineLocale('sk', {
  11382. months : months$9,
  11383. monthsShort : monthsShort$6,
  11384. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  11385. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  11386. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  11387. longDateFormat : {
  11388. LT: 'H:mm',
  11389. LTS : 'H:mm:ss',
  11390. L : 'DD.MM.YYYY',
  11391. LL : 'D. MMMM YYYY',
  11392. LLL : 'D. MMMM YYYY H:mm',
  11393. LLLL : 'dddd D. MMMM YYYY H:mm'
  11394. },
  11395. calendar : {
  11396. sameDay: '[dnes o] LT',
  11397. nextDay: '[zajtra o] LT',
  11398. nextWeek: function () {
  11399. switch (this.day()) {
  11400. case 0:
  11401. return '[v nedeľu o] LT';
  11402. case 1:
  11403. case 2:
  11404. return '[v] dddd [o] LT';
  11405. case 3:
  11406. return '[v stredu o] LT';
  11407. case 4:
  11408. return '[vo štvrtok o] LT';
  11409. case 5:
  11410. return '[v piatok o] LT';
  11411. case 6:
  11412. return '[v sobotu o] LT';
  11413. }
  11414. },
  11415. lastDay: '[včera o] LT',
  11416. lastWeek: function () {
  11417. switch (this.day()) {
  11418. case 0:
  11419. return '[minulú nedeľu o] LT';
  11420. case 1:
  11421. case 2:
  11422. return '[minulý] dddd [o] LT';
  11423. case 3:
  11424. return '[minulú stredu o] LT';
  11425. case 4:
  11426. case 5:
  11427. return '[minulý] dddd [o] LT';
  11428. case 6:
  11429. return '[minulú sobotu o] LT';
  11430. }
  11431. },
  11432. sameElse: 'L'
  11433. },
  11434. relativeTime : {
  11435. future : 'za %s',
  11436. past : 'pred %s',
  11437. s : translate$9,
  11438. ss : translate$9,
  11439. m : translate$9,
  11440. mm : translate$9,
  11441. h : translate$9,
  11442. hh : translate$9,
  11443. d : translate$9,
  11444. dd : translate$9,
  11445. M : translate$9,
  11446. MM : translate$9,
  11447. y : translate$9,
  11448. yy : translate$9
  11449. },
  11450. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11451. ordinal : '%d.',
  11452. week : {
  11453. dow : 1, // Monday is the first day of the week.
  11454. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11455. }
  11456. });
  11457. //! moment.js locale configuration
  11458. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  11459. var result = number + ' ';
  11460. switch (key) {
  11461. case 's':
  11462. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  11463. case 'ss':
  11464. if (number === 1) {
  11465. result += withoutSuffix ? 'sekundo' : 'sekundi';
  11466. } else if (number === 2) {
  11467. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  11468. } else if (number < 5) {
  11469. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  11470. } else {
  11471. result += 'sekund';
  11472. }
  11473. return result;
  11474. case 'm':
  11475. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  11476. case 'mm':
  11477. if (number === 1) {
  11478. result += withoutSuffix ? 'minuta' : 'minuto';
  11479. } else if (number === 2) {
  11480. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  11481. } else if (number < 5) {
  11482. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  11483. } else {
  11484. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  11485. }
  11486. return result;
  11487. case 'h':
  11488. return withoutSuffix ? 'ena ura' : 'eno uro';
  11489. case 'hh':
  11490. if (number === 1) {
  11491. result += withoutSuffix ? 'ura' : 'uro';
  11492. } else if (number === 2) {
  11493. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  11494. } else if (number < 5) {
  11495. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  11496. } else {
  11497. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  11498. }
  11499. return result;
  11500. case 'd':
  11501. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  11502. case 'dd':
  11503. if (number === 1) {
  11504. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  11505. } else if (number === 2) {
  11506. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  11507. } else {
  11508. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  11509. }
  11510. return result;
  11511. case 'M':
  11512. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  11513. case 'MM':
  11514. if (number === 1) {
  11515. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  11516. } else if (number === 2) {
  11517. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  11518. } else if (number < 5) {
  11519. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  11520. } else {
  11521. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  11522. }
  11523. return result;
  11524. case 'y':
  11525. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  11526. case 'yy':
  11527. if (number === 1) {
  11528. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  11529. } else if (number === 2) {
  11530. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  11531. } else if (number < 5) {
  11532. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  11533. } else {
  11534. result += withoutSuffix || isFuture ? 'let' : 'leti';
  11535. }
  11536. return result;
  11537. }
  11538. }
  11539. hooks.defineLocale('sl', {
  11540. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  11541. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  11542. monthsParseExact: true,
  11543. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  11544. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  11545. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  11546. weekdaysParseExact : true,
  11547. longDateFormat : {
  11548. LT : 'H:mm',
  11549. LTS : 'H:mm:ss',
  11550. L : 'DD.MM.YYYY',
  11551. LL : 'D. MMMM YYYY',
  11552. LLL : 'D. MMMM YYYY H:mm',
  11553. LLLL : 'dddd, D. MMMM YYYY H:mm'
  11554. },
  11555. calendar : {
  11556. sameDay : '[danes ob] LT',
  11557. nextDay : '[jutri ob] LT',
  11558. nextWeek : function () {
  11559. switch (this.day()) {
  11560. case 0:
  11561. return '[v] [nedeljo] [ob] LT';
  11562. case 3:
  11563. return '[v] [sredo] [ob] LT';
  11564. case 6:
  11565. return '[v] [soboto] [ob] LT';
  11566. case 1:
  11567. case 2:
  11568. case 4:
  11569. case 5:
  11570. return '[v] dddd [ob] LT';
  11571. }
  11572. },
  11573. lastDay : '[včeraj ob] LT',
  11574. lastWeek : function () {
  11575. switch (this.day()) {
  11576. case 0:
  11577. return '[prejšnjo] [nedeljo] [ob] LT';
  11578. case 3:
  11579. return '[prejšnjo] [sredo] [ob] LT';
  11580. case 6:
  11581. return '[prejšnjo] [soboto] [ob] LT';
  11582. case 1:
  11583. case 2:
  11584. case 4:
  11585. case 5:
  11586. return '[prejšnji] dddd [ob] LT';
  11587. }
  11588. },
  11589. sameElse : 'L'
  11590. },
  11591. relativeTime : {
  11592. future : 'čez %s',
  11593. past : 'pred %s',
  11594. s : processRelativeTime$6,
  11595. ss : processRelativeTime$6,
  11596. m : processRelativeTime$6,
  11597. mm : processRelativeTime$6,
  11598. h : processRelativeTime$6,
  11599. hh : processRelativeTime$6,
  11600. d : processRelativeTime$6,
  11601. dd : processRelativeTime$6,
  11602. M : processRelativeTime$6,
  11603. MM : processRelativeTime$6,
  11604. y : processRelativeTime$6,
  11605. yy : processRelativeTime$6
  11606. },
  11607. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11608. ordinal : '%d.',
  11609. week : {
  11610. dow : 1, // Monday is the first day of the week.
  11611. doy : 7 // The week that contains Jan 7th is the first week of the year.
  11612. }
  11613. });
  11614. //! moment.js locale configuration
  11615. hooks.defineLocale('sq', {
  11616. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  11617. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  11618. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  11619. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  11620. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  11621. weekdaysParseExact : true,
  11622. meridiemParse: /PD|MD/,
  11623. isPM: function (input) {
  11624. return input.charAt(0) === 'M';
  11625. },
  11626. meridiem : function (hours, minutes, isLower) {
  11627. return hours < 12 ? 'PD' : 'MD';
  11628. },
  11629. longDateFormat : {
  11630. LT : 'HH:mm',
  11631. LTS : 'HH:mm:ss',
  11632. L : 'DD/MM/YYYY',
  11633. LL : 'D MMMM YYYY',
  11634. LLL : 'D MMMM YYYY HH:mm',
  11635. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11636. },
  11637. calendar : {
  11638. sameDay : '[Sot në] LT',
  11639. nextDay : '[Nesër në] LT',
  11640. nextWeek : 'dddd [në] LT',
  11641. lastDay : '[Dje në] LT',
  11642. lastWeek : 'dddd [e kaluar në] LT',
  11643. sameElse : 'L'
  11644. },
  11645. relativeTime : {
  11646. future : 'në %s',
  11647. past : '%s më parë',
  11648. s : 'disa sekonda',
  11649. ss : '%d sekonda',
  11650. m : 'një minutë',
  11651. mm : '%d minuta',
  11652. h : 'një orë',
  11653. hh : '%d orë',
  11654. d : 'një ditë',
  11655. dd : '%d ditë',
  11656. M : 'një muaj',
  11657. MM : '%d muaj',
  11658. y : 'një vit',
  11659. yy : '%d vite'
  11660. },
  11661. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11662. ordinal : '%d.',
  11663. week : {
  11664. dow : 1, // Monday is the first day of the week.
  11665. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11666. }
  11667. });
  11668. //! moment.js locale configuration
  11669. var translator$1 = {
  11670. words: { //Different grammatical cases
  11671. ss: ['секунда', 'секунде', 'секунди'],
  11672. m: ['један минут', 'једне минуте'],
  11673. mm: ['минут', 'минуте', 'минута'],
  11674. h: ['један сат', 'једног сата'],
  11675. hh: ['сат', 'сата', 'сати'],
  11676. dd: ['дан', 'дана', 'дана'],
  11677. MM: ['месец', 'месеца', 'месеци'],
  11678. yy: ['година', 'године', 'година']
  11679. },
  11680. correctGrammaticalCase: function (number, wordKey) {
  11681. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  11682. },
  11683. translate: function (number, withoutSuffix, key) {
  11684. var wordKey = translator$1.words[key];
  11685. if (key.length === 1) {
  11686. return withoutSuffix ? wordKey[0] : wordKey[1];
  11687. } else {
  11688. return number + ' ' + translator$1.correctGrammaticalCase(number, wordKey);
  11689. }
  11690. }
  11691. };
  11692. hooks.defineLocale('sr-cyrl', {
  11693. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  11694. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  11695. monthsParseExact: true,
  11696. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  11697. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  11698. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  11699. weekdaysParseExact : true,
  11700. longDateFormat: {
  11701. LT: 'H:mm',
  11702. LTS : 'H:mm:ss',
  11703. L: 'DD.MM.YYYY',
  11704. LL: 'D. MMMM YYYY',
  11705. LLL: 'D. MMMM YYYY H:mm',
  11706. LLLL: 'dddd, D. MMMM YYYY H:mm'
  11707. },
  11708. calendar: {
  11709. sameDay: '[данас у] LT',
  11710. nextDay: '[сутра у] LT',
  11711. nextWeek: function () {
  11712. switch (this.day()) {
  11713. case 0:
  11714. return '[у] [недељу] [у] LT';
  11715. case 3:
  11716. return '[у] [среду] [у] LT';
  11717. case 6:
  11718. return '[у] [суботу] [у] LT';
  11719. case 1:
  11720. case 2:
  11721. case 4:
  11722. case 5:
  11723. return '[у] dddd [у] LT';
  11724. }
  11725. },
  11726. lastDay : '[јуче у] LT',
  11727. lastWeek : function () {
  11728. var lastWeekDays = [
  11729. '[прошле] [недеље] [у] LT',
  11730. '[прошлог] [понедељка] [у] LT',
  11731. '[прошлог] [уторка] [у] LT',
  11732. '[прошле] [среде] [у] LT',
  11733. '[прошлог] [четвртка] [у] LT',
  11734. '[прошлог] [петка] [у] LT',
  11735. '[прошле] [суботе] [у] LT'
  11736. ];
  11737. return lastWeekDays[this.day()];
  11738. },
  11739. sameElse : 'L'
  11740. },
  11741. relativeTime : {
  11742. future : 'за %s',
  11743. past : 'пре %s',
  11744. s : 'неколико секунди',
  11745. ss : translator$1.translate,
  11746. m : translator$1.translate,
  11747. mm : translator$1.translate,
  11748. h : translator$1.translate,
  11749. hh : translator$1.translate,
  11750. d : 'дан',
  11751. dd : translator$1.translate,
  11752. M : 'месец',
  11753. MM : translator$1.translate,
  11754. y : 'годину',
  11755. yy : translator$1.translate
  11756. },
  11757. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11758. ordinal : '%d.',
  11759. week : {
  11760. dow : 1, // Monday is the first day of the week.
  11761. doy : 7 // The week that contains Jan 7th is the first week of the year.
  11762. }
  11763. });
  11764. //! moment.js locale configuration
  11765. var translator$2 = {
  11766. words: { //Different grammatical cases
  11767. ss: ['sekunda', 'sekunde', 'sekundi'],
  11768. m: ['jedan minut', 'jedne minute'],
  11769. mm: ['minut', 'minute', 'minuta'],
  11770. h: ['jedan sat', 'jednog sata'],
  11771. hh: ['sat', 'sata', 'sati'],
  11772. dd: ['dan', 'dana', 'dana'],
  11773. MM: ['mesec', 'meseca', 'meseci'],
  11774. yy: ['godina', 'godine', 'godina']
  11775. },
  11776. correctGrammaticalCase: function (number, wordKey) {
  11777. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  11778. },
  11779. translate: function (number, withoutSuffix, key) {
  11780. var wordKey = translator$2.words[key];
  11781. if (key.length === 1) {
  11782. return withoutSuffix ? wordKey[0] : wordKey[1];
  11783. } else {
  11784. return number + ' ' + translator$2.correctGrammaticalCase(number, wordKey);
  11785. }
  11786. }
  11787. };
  11788. hooks.defineLocale('sr', {
  11789. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  11790. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  11791. monthsParseExact: true,
  11792. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  11793. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  11794. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  11795. weekdaysParseExact : true,
  11796. longDateFormat: {
  11797. LT: 'H:mm',
  11798. LTS : 'H:mm:ss',
  11799. L: 'DD.MM.YYYY',
  11800. LL: 'D. MMMM YYYY',
  11801. LLL: 'D. MMMM YYYY H:mm',
  11802. LLLL: 'dddd, D. MMMM YYYY H:mm'
  11803. },
  11804. calendar: {
  11805. sameDay: '[danas u] LT',
  11806. nextDay: '[sutra u] LT',
  11807. nextWeek: function () {
  11808. switch (this.day()) {
  11809. case 0:
  11810. return '[u] [nedelju] [u] LT';
  11811. case 3:
  11812. return '[u] [sredu] [u] LT';
  11813. case 6:
  11814. return '[u] [subotu] [u] LT';
  11815. case 1:
  11816. case 2:
  11817. case 4:
  11818. case 5:
  11819. return '[u] dddd [u] LT';
  11820. }
  11821. },
  11822. lastDay : '[juče u] LT',
  11823. lastWeek : function () {
  11824. var lastWeekDays = [
  11825. '[prošle] [nedelje] [u] LT',
  11826. '[prošlog] [ponedeljka] [u] LT',
  11827. '[prošlog] [utorka] [u] LT',
  11828. '[prošle] [srede] [u] LT',
  11829. '[prošlog] [četvrtka] [u] LT',
  11830. '[prošlog] [petka] [u] LT',
  11831. '[prošle] [subote] [u] LT'
  11832. ];
  11833. return lastWeekDays[this.day()];
  11834. },
  11835. sameElse : 'L'
  11836. },
  11837. relativeTime : {
  11838. future : 'za %s',
  11839. past : 'pre %s',
  11840. s : 'nekoliko sekundi',
  11841. ss : translator$2.translate,
  11842. m : translator$2.translate,
  11843. mm : translator$2.translate,
  11844. h : translator$2.translate,
  11845. hh : translator$2.translate,
  11846. d : 'dan',
  11847. dd : translator$2.translate,
  11848. M : 'mesec',
  11849. MM : translator$2.translate,
  11850. y : 'godinu',
  11851. yy : translator$2.translate
  11852. },
  11853. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11854. ordinal : '%d.',
  11855. week : {
  11856. dow : 1, // Monday is the first day of the week.
  11857. doy : 7 // The week that contains Jan 7th is the first week of the year.
  11858. }
  11859. });
  11860. //! moment.js locale configuration
  11861. hooks.defineLocale('ss', {
  11862. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  11863. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  11864. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  11865. weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  11866. weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  11867. weekdaysParseExact : true,
  11868. longDateFormat : {
  11869. LT : 'h:mm A',
  11870. LTS : 'h:mm:ss A',
  11871. L : 'DD/MM/YYYY',
  11872. LL : 'D MMMM YYYY',
  11873. LLL : 'D MMMM YYYY h:mm A',
  11874. LLLL : 'dddd, D MMMM YYYY h:mm A'
  11875. },
  11876. calendar : {
  11877. sameDay : '[Namuhla nga] LT',
  11878. nextDay : '[Kusasa nga] LT',
  11879. nextWeek : 'dddd [nga] LT',
  11880. lastDay : '[Itolo nga] LT',
  11881. lastWeek : 'dddd [leliphelile] [nga] LT',
  11882. sameElse : 'L'
  11883. },
  11884. relativeTime : {
  11885. future : 'nga %s',
  11886. past : 'wenteka nga %s',
  11887. s : 'emizuzwana lomcane',
  11888. ss : '%d mzuzwana',
  11889. m : 'umzuzu',
  11890. mm : '%d emizuzu',
  11891. h : 'lihora',
  11892. hh : '%d emahora',
  11893. d : 'lilanga',
  11894. dd : '%d emalanga',
  11895. M : 'inyanga',
  11896. MM : '%d tinyanga',
  11897. y : 'umnyaka',
  11898. yy : '%d iminyaka'
  11899. },
  11900. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  11901. meridiem : function (hours, minutes, isLower) {
  11902. if (hours < 11) {
  11903. return 'ekuseni';
  11904. } else if (hours < 15) {
  11905. return 'emini';
  11906. } else if (hours < 19) {
  11907. return 'entsambama';
  11908. } else {
  11909. return 'ebusuku';
  11910. }
  11911. },
  11912. meridiemHour : function (hour, meridiem) {
  11913. if (hour === 12) {
  11914. hour = 0;
  11915. }
  11916. if (meridiem === 'ekuseni') {
  11917. return hour;
  11918. } else if (meridiem === 'emini') {
  11919. return hour >= 11 ? hour : hour + 12;
  11920. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  11921. if (hour === 0) {
  11922. return 0;
  11923. }
  11924. return hour + 12;
  11925. }
  11926. },
  11927. dayOfMonthOrdinalParse: /\d{1,2}/,
  11928. ordinal : '%d',
  11929. week : {
  11930. dow : 1, // Monday is the first day of the week.
  11931. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11932. }
  11933. });
  11934. //! moment.js locale configuration
  11935. hooks.defineLocale('sv', {
  11936. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  11937. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  11938. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  11939. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  11940. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  11941. longDateFormat : {
  11942. LT : 'HH:mm',
  11943. LTS : 'HH:mm:ss',
  11944. L : 'YYYY-MM-DD',
  11945. LL : 'D MMMM YYYY',
  11946. LLL : 'D MMMM YYYY [kl.] HH:mm',
  11947. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  11948. lll : 'D MMM YYYY HH:mm',
  11949. llll : 'ddd D MMM YYYY HH:mm'
  11950. },
  11951. calendar : {
  11952. sameDay: '[Idag] LT',
  11953. nextDay: '[Imorgon] LT',
  11954. lastDay: '[Igår] LT',
  11955. nextWeek: '[På] dddd LT',
  11956. lastWeek: '[I] dddd[s] LT',
  11957. sameElse: 'L'
  11958. },
  11959. relativeTime : {
  11960. future : 'om %s',
  11961. past : 'för %s sedan',
  11962. s : 'några sekunder',
  11963. ss : '%d sekunder',
  11964. m : 'en minut',
  11965. mm : '%d minuter',
  11966. h : 'en timme',
  11967. hh : '%d timmar',
  11968. d : 'en dag',
  11969. dd : '%d dagar',
  11970. M : 'en månad',
  11971. MM : '%d månader',
  11972. y : 'ett år',
  11973. yy : '%d år'
  11974. },
  11975. dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
  11976. ordinal : function (number) {
  11977. var b = number % 10,
  11978. output = (~~(number % 100 / 10) === 1) ? 'e' :
  11979. (b === 1) ? 'a' :
  11980. (b === 2) ? 'a' :
  11981. (b === 3) ? 'e' : 'e';
  11982. return number + output;
  11983. },
  11984. week : {
  11985. dow : 1, // Monday is the first day of the week.
  11986. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11987. }
  11988. });
  11989. //! moment.js locale configuration
  11990. hooks.defineLocale('sw', {
  11991. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  11992. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  11993. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  11994. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  11995. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  11996. weekdaysParseExact : true,
  11997. longDateFormat : {
  11998. LT : 'HH:mm',
  11999. LTS : 'HH:mm:ss',
  12000. L : 'DD.MM.YYYY',
  12001. LL : 'D MMMM YYYY',
  12002. LLL : 'D MMMM YYYY HH:mm',
  12003. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12004. },
  12005. calendar : {
  12006. sameDay : '[leo saa] LT',
  12007. nextDay : '[kesho saa] LT',
  12008. nextWeek : '[wiki ijayo] dddd [saat] LT',
  12009. lastDay : '[jana] LT',
  12010. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  12011. sameElse : 'L'
  12012. },
  12013. relativeTime : {
  12014. future : '%s baadaye',
  12015. past : 'tokea %s',
  12016. s : 'hivi punde',
  12017. ss : 'sekunde %d',
  12018. m : 'dakika moja',
  12019. mm : 'dakika %d',
  12020. h : 'saa limoja',
  12021. hh : 'masaa %d',
  12022. d : 'siku moja',
  12023. dd : 'masiku %d',
  12024. M : 'mwezi mmoja',
  12025. MM : 'miezi %d',
  12026. y : 'mwaka mmoja',
  12027. yy : 'miaka %d'
  12028. },
  12029. week : {
  12030. dow : 1, // Monday is the first day of the week.
  12031. doy : 7 // The week that contains Jan 7th is the first week of the year.
  12032. }
  12033. });
  12034. //! moment.js locale configuration
  12035. var symbolMap$f = {
  12036. '1': '௧',
  12037. '2': '௨',
  12038. '3': '௩',
  12039. '4': '௪',
  12040. '5': '௫',
  12041. '6': '௬',
  12042. '7': '௭',
  12043. '8': '௮',
  12044. '9': '௯',
  12045. '0': '௦'
  12046. }, numberMap$e = {
  12047. '௧': '1',
  12048. '௨': '2',
  12049. '௩': '3',
  12050. '௪': '4',
  12051. '௫': '5',
  12052. '௬': '6',
  12053. '௭': '7',
  12054. '௮': '8',
  12055. '௯': '9',
  12056. '௦': '0'
  12057. };
  12058. hooks.defineLocale('ta', {
  12059. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  12060. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  12061. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  12062. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  12063. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  12064. longDateFormat : {
  12065. LT : 'HH:mm',
  12066. LTS : 'HH:mm:ss',
  12067. L : 'DD/MM/YYYY',
  12068. LL : 'D MMMM YYYY',
  12069. LLL : 'D MMMM YYYY, HH:mm',
  12070. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  12071. },
  12072. calendar : {
  12073. sameDay : '[இன்று] LT',
  12074. nextDay : '[நாளை] LT',
  12075. nextWeek : 'dddd, LT',
  12076. lastDay : '[நேற்று] LT',
  12077. lastWeek : '[கடந்த வாரம்] dddd, LT',
  12078. sameElse : 'L'
  12079. },
  12080. relativeTime : {
  12081. future : '%s இல்',
  12082. past : '%s முன்',
  12083. s : 'ஒரு சில விநாடிகள்',
  12084. ss : '%d விநாடிகள்',
  12085. m : 'ஒரு நிமிடம்',
  12086. mm : '%d நிமிடங்கள்',
  12087. h : 'ஒரு மணி நேரம்',
  12088. hh : '%d மணி நேரம்',
  12089. d : 'ஒரு நாள்',
  12090. dd : '%d நாட்கள்',
  12091. M : 'ஒரு மாதம்',
  12092. MM : '%d மாதங்கள்',
  12093. y : 'ஒரு வருடம்',
  12094. yy : '%d ஆண்டுகள்'
  12095. },
  12096. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  12097. ordinal : function (number) {
  12098. return number + 'வது';
  12099. },
  12100. preparse: function (string) {
  12101. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  12102. return numberMap$e[match];
  12103. });
  12104. },
  12105. postformat: function (string) {
  12106. return string.replace(/\d/g, function (match) {
  12107. return symbolMap$f[match];
  12108. });
  12109. },
  12110. // refer http://ta.wikipedia.org/s/1er1
  12111. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  12112. meridiem : function (hour, minute, isLower) {
  12113. if (hour < 2) {
  12114. return ' யாமம்';
  12115. } else if (hour < 6) {
  12116. return ' வைகறை'; // வைகறை
  12117. } else if (hour < 10) {
  12118. return ' காலை'; // காலை
  12119. } else if (hour < 14) {
  12120. return ' நண்பகல்'; // நண்பகல்
  12121. } else if (hour < 18) {
  12122. return ' எற்பாடு'; // எற்பாடு
  12123. } else if (hour < 22) {
  12124. return ' மாலை'; // மாலை
  12125. } else {
  12126. return ' யாமம்';
  12127. }
  12128. },
  12129. meridiemHour : function (hour, meridiem) {
  12130. if (hour === 12) {
  12131. hour = 0;
  12132. }
  12133. if (meridiem === 'யாமம்') {
  12134. return hour < 2 ? hour : hour + 12;
  12135. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  12136. return hour;
  12137. } else if (meridiem === 'நண்பகல்') {
  12138. return hour >= 10 ? hour : hour + 12;
  12139. } else {
  12140. return hour + 12;
  12141. }
  12142. },
  12143. week : {
  12144. dow : 0, // Sunday is the first day of the week.
  12145. doy : 6 // The week that contains Jan 6th is the first week of the year.
  12146. }
  12147. });
  12148. //! moment.js locale configuration
  12149. hooks.defineLocale('te', {
  12150. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  12151. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  12152. monthsParseExact : true,
  12153. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  12154. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  12155. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  12156. longDateFormat : {
  12157. LT : 'A h:mm',
  12158. LTS : 'A h:mm:ss',
  12159. L : 'DD/MM/YYYY',
  12160. LL : 'D MMMM YYYY',
  12161. LLL : 'D MMMM YYYY, A h:mm',
  12162. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  12163. },
  12164. calendar : {
  12165. sameDay : '[నేడు] LT',
  12166. nextDay : '[రేపు] LT',
  12167. nextWeek : 'dddd, LT',
  12168. lastDay : '[నిన్న] LT',
  12169. lastWeek : '[గత] dddd, LT',
  12170. sameElse : 'L'
  12171. },
  12172. relativeTime : {
  12173. future : '%s లో',
  12174. past : '%s క్రితం',
  12175. s : 'కొన్ని క్షణాలు',
  12176. ss : '%d సెకన్లు',
  12177. m : 'ఒక నిమిషం',
  12178. mm : '%d నిమిషాలు',
  12179. h : 'ఒక గంట',
  12180. hh : '%d గంటలు',
  12181. d : 'ఒక రోజు',
  12182. dd : '%d రోజులు',
  12183. M : 'ఒక నెల',
  12184. MM : '%d నెలలు',
  12185. y : 'ఒక సంవత్సరం',
  12186. yy : '%d సంవత్సరాలు'
  12187. },
  12188. dayOfMonthOrdinalParse : /\d{1,2}వ/,
  12189. ordinal : '%dవ',
  12190. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  12191. meridiemHour : function (hour, meridiem) {
  12192. if (hour === 12) {
  12193. hour = 0;
  12194. }
  12195. if (meridiem === 'రాత్రి') {
  12196. return hour < 4 ? hour : hour + 12;
  12197. } else if (meridiem === 'ఉదయం') {
  12198. return hour;
  12199. } else if (meridiem === 'మధ్యాహ్నం') {
  12200. return hour >= 10 ? hour : hour + 12;
  12201. } else if (meridiem === 'సాయంత్రం') {
  12202. return hour + 12;
  12203. }
  12204. },
  12205. meridiem : function (hour, minute, isLower) {
  12206. if (hour < 4) {
  12207. return 'రాత్రి';
  12208. } else if (hour < 10) {
  12209. return 'ఉదయం';
  12210. } else if (hour < 17) {
  12211. return 'మధ్యాహ్నం';
  12212. } else if (hour < 20) {
  12213. return 'సాయంత్రం';
  12214. } else {
  12215. return 'రాత్రి';
  12216. }
  12217. },
  12218. week : {
  12219. dow : 0, // Sunday is the first day of the week.
  12220. doy : 6 // The week that contains Jan 6th is the first week of the year.
  12221. }
  12222. });
  12223. //! moment.js locale configuration
  12224. hooks.defineLocale('tet', {
  12225. months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  12226. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  12227. weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  12228. weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  12229. weekdaysMin : 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  12230. longDateFormat : {
  12231. LT : 'HH:mm',
  12232. LTS : 'HH:mm:ss',
  12233. L : 'DD/MM/YYYY',
  12234. LL : 'D MMMM YYYY',
  12235. LLL : 'D MMMM YYYY HH:mm',
  12236. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12237. },
  12238. calendar : {
  12239. sameDay: '[Ohin iha] LT',
  12240. nextDay: '[Aban iha] LT',
  12241. nextWeek: 'dddd [iha] LT',
  12242. lastDay: '[Horiseik iha] LT',
  12243. lastWeek: 'dddd [semana kotuk] [iha] LT',
  12244. sameElse: 'L'
  12245. },
  12246. relativeTime : {
  12247. future : 'iha %s',
  12248. past : '%s liuba',
  12249. s : 'minutu balun',
  12250. ss : 'minutu %d',
  12251. m : 'minutu ida',
  12252. mm : 'minutu %d',
  12253. h : 'oras ida',
  12254. hh : 'oras %d',
  12255. d : 'loron ida',
  12256. dd : 'loron %d',
  12257. M : 'fulan ida',
  12258. MM : 'fulan %d',
  12259. y : 'tinan ida',
  12260. yy : 'tinan %d'
  12261. },
  12262. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  12263. ordinal : function (number) {
  12264. var b = number % 10,
  12265. output = (~~(number % 100 / 10) === 1) ? 'th' :
  12266. (b === 1) ? 'st' :
  12267. (b === 2) ? 'nd' :
  12268. (b === 3) ? 'rd' : 'th';
  12269. return number + output;
  12270. },
  12271. week : {
  12272. dow : 1, // Monday is the first day of the week.
  12273. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12274. }
  12275. });
  12276. //! moment.js locale configuration
  12277. var suffixes$3 = {
  12278. 0: '-ум',
  12279. 1: '-ум',
  12280. 2: '-юм',
  12281. 3: '-юм',
  12282. 4: '-ум',
  12283. 5: '-ум',
  12284. 6: '-ум',
  12285. 7: '-ум',
  12286. 8: '-ум',
  12287. 9: '-ум',
  12288. 10: '-ум',
  12289. 12: '-ум',
  12290. 13: '-ум',
  12291. 20: '-ум',
  12292. 30: '-юм',
  12293. 40: '-ум',
  12294. 50: '-ум',
  12295. 60: '-ум',
  12296. 70: '-ум',
  12297. 80: '-ум',
  12298. 90: '-ум',
  12299. 100: '-ум'
  12300. };
  12301. hooks.defineLocale('tg', {
  12302. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  12303. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  12304. weekdays : 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
  12305. weekdaysShort : 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  12306. weekdaysMin : 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  12307. longDateFormat : {
  12308. LT : 'HH:mm',
  12309. LTS : 'HH:mm:ss',
  12310. L : 'DD/MM/YYYY',
  12311. LL : 'D MMMM YYYY',
  12312. LLL : 'D MMMM YYYY HH:mm',
  12313. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12314. },
  12315. calendar : {
  12316. sameDay : '[Имрӯз соати] LT',
  12317. nextDay : '[Пагоҳ соати] LT',
  12318. lastDay : '[Дирӯз соати] LT',
  12319. nextWeek : 'dddd[и] [ҳафтаи оянда соати] LT',
  12320. lastWeek : 'dddd[и] [ҳафтаи гузашта соати] LT',
  12321. sameElse : 'L'
  12322. },
  12323. relativeTime : {
  12324. future : 'баъди %s',
  12325. past : '%s пеш',
  12326. s : 'якчанд сония',
  12327. m : 'як дақиқа',
  12328. mm : '%d дақиқа',
  12329. h : 'як соат',
  12330. hh : '%d соат',
  12331. d : 'як рӯз',
  12332. dd : '%d рӯз',
  12333. M : 'як моҳ',
  12334. MM : '%d моҳ',
  12335. y : 'як сол',
  12336. yy : '%d сол'
  12337. },
  12338. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  12339. meridiemHour: function (hour, meridiem) {
  12340. if (hour === 12) {
  12341. hour = 0;
  12342. }
  12343. if (meridiem === 'шаб') {
  12344. return hour < 4 ? hour : hour + 12;
  12345. } else if (meridiem === 'субҳ') {
  12346. return hour;
  12347. } else if (meridiem === 'рӯз') {
  12348. return hour >= 11 ? hour : hour + 12;
  12349. } else if (meridiem === 'бегоҳ') {
  12350. return hour + 12;
  12351. }
  12352. },
  12353. meridiem: function (hour, minute, isLower) {
  12354. if (hour < 4) {
  12355. return 'шаб';
  12356. } else if (hour < 11) {
  12357. return 'субҳ';
  12358. } else if (hour < 16) {
  12359. return 'рӯз';
  12360. } else if (hour < 19) {
  12361. return 'бегоҳ';
  12362. } else {
  12363. return 'шаб';
  12364. }
  12365. },
  12366. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  12367. ordinal: function (number) {
  12368. var a = number % 10,
  12369. b = number >= 100 ? 100 : null;
  12370. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  12371. },
  12372. week : {
  12373. dow : 1, // Monday is the first day of the week.
  12374. doy : 7 // The week that contains Jan 1th is the first week of the year.
  12375. }
  12376. });
  12377. //! moment.js locale configuration
  12378. hooks.defineLocale('th', {
  12379. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  12380. monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  12381. monthsParseExact: true,
  12382. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  12383. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  12384. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  12385. weekdaysParseExact : true,
  12386. longDateFormat : {
  12387. LT : 'H:mm',
  12388. LTS : 'H:mm:ss',
  12389. L : 'DD/MM/YYYY',
  12390. LL : 'D MMMM YYYY',
  12391. LLL : 'D MMMM YYYY เวลา H:mm',
  12392. LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
  12393. },
  12394. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  12395. isPM: function (input) {
  12396. return input === 'หลังเที่ยง';
  12397. },
  12398. meridiem : function (hour, minute, isLower) {
  12399. if (hour < 12) {
  12400. return 'ก่อนเที่ยง';
  12401. } else {
  12402. return 'หลังเที่ยง';
  12403. }
  12404. },
  12405. calendar : {
  12406. sameDay : '[วันนี้ เวลา] LT',
  12407. nextDay : '[พรุ่งนี้ เวลา] LT',
  12408. nextWeek : 'dddd[หน้า เวลา] LT',
  12409. lastDay : '[เมื่อวานนี้ เวลา] LT',
  12410. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  12411. sameElse : 'L'
  12412. },
  12413. relativeTime : {
  12414. future : 'อีก %s',
  12415. past : '%sที่แล้ว',
  12416. s : 'ไม่กี่วินาที',
  12417. ss : '%d วินาที',
  12418. m : '1 นาที',
  12419. mm : '%d นาที',
  12420. h : '1 ชั่วโมง',
  12421. hh : '%d ชั่วโมง',
  12422. d : '1 วัน',
  12423. dd : '%d วัน',
  12424. M : '1 เดือน',
  12425. MM : '%d เดือน',
  12426. y : '1 ปี',
  12427. yy : '%d ปี'
  12428. }
  12429. });
  12430. //! moment.js locale configuration
  12431. hooks.defineLocale('tl-ph', {
  12432. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  12433. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  12434. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  12435. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  12436. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  12437. longDateFormat : {
  12438. LT : 'HH:mm',
  12439. LTS : 'HH:mm:ss',
  12440. L : 'MM/D/YYYY',
  12441. LL : 'MMMM D, YYYY',
  12442. LLL : 'MMMM D, YYYY HH:mm',
  12443. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  12444. },
  12445. calendar : {
  12446. sameDay: 'LT [ngayong araw]',
  12447. nextDay: '[Bukas ng] LT',
  12448. nextWeek: 'LT [sa susunod na] dddd',
  12449. lastDay: 'LT [kahapon]',
  12450. lastWeek: 'LT [noong nakaraang] dddd',
  12451. sameElse: 'L'
  12452. },
  12453. relativeTime : {
  12454. future : 'sa loob ng %s',
  12455. past : '%s ang nakalipas',
  12456. s : 'ilang segundo',
  12457. ss : '%d segundo',
  12458. m : 'isang minuto',
  12459. mm : '%d minuto',
  12460. h : 'isang oras',
  12461. hh : '%d oras',
  12462. d : 'isang araw',
  12463. dd : '%d araw',
  12464. M : 'isang buwan',
  12465. MM : '%d buwan',
  12466. y : 'isang taon',
  12467. yy : '%d taon'
  12468. },
  12469. dayOfMonthOrdinalParse: /\d{1,2}/,
  12470. ordinal : function (number) {
  12471. return number;
  12472. },
  12473. week : {
  12474. dow : 1, // Monday is the first day of the week.
  12475. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12476. }
  12477. });
  12478. //! moment.js locale configuration
  12479. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  12480. function translateFuture(output) {
  12481. var time = output;
  12482. time = (output.indexOf('jaj') !== -1) ?
  12483. time.slice(0, -3) + 'leS' :
  12484. (output.indexOf('jar') !== -1) ?
  12485. time.slice(0, -3) + 'waQ' :
  12486. (output.indexOf('DIS') !== -1) ?
  12487. time.slice(0, -3) + 'nem' :
  12488. time + ' pIq';
  12489. return time;
  12490. }
  12491. function translatePast(output) {
  12492. var time = output;
  12493. time = (output.indexOf('jaj') !== -1) ?
  12494. time.slice(0, -3) + 'Hu’' :
  12495. (output.indexOf('jar') !== -1) ?
  12496. time.slice(0, -3) + 'wen' :
  12497. (output.indexOf('DIS') !== -1) ?
  12498. time.slice(0, -3) + 'ben' :
  12499. time + ' ret';
  12500. return time;
  12501. }
  12502. function translate$a(number, withoutSuffix, string, isFuture) {
  12503. var numberNoun = numberAsNoun(number);
  12504. switch (string) {
  12505. case 'ss':
  12506. return numberNoun + ' lup';
  12507. case 'mm':
  12508. return numberNoun + ' tup';
  12509. case 'hh':
  12510. return numberNoun + ' rep';
  12511. case 'dd':
  12512. return numberNoun + ' jaj';
  12513. case 'MM':
  12514. return numberNoun + ' jar';
  12515. case 'yy':
  12516. return numberNoun + ' DIS';
  12517. }
  12518. }
  12519. function numberAsNoun(number) {
  12520. var hundred = Math.floor((number % 1000) / 100),
  12521. ten = Math.floor((number % 100) / 10),
  12522. one = number % 10,
  12523. word = '';
  12524. if (hundred > 0) {
  12525. word += numbersNouns[hundred] + 'vatlh';
  12526. }
  12527. if (ten > 0) {
  12528. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  12529. }
  12530. if (one > 0) {
  12531. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  12532. }
  12533. return (word === '') ? 'pagh' : word;
  12534. }
  12535. hooks.defineLocale('tlh', {
  12536. 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('_'),
  12537. 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('_'),
  12538. monthsParseExact : true,
  12539. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  12540. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  12541. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  12542. longDateFormat : {
  12543. LT : 'HH:mm',
  12544. LTS : 'HH:mm:ss',
  12545. L : 'DD.MM.YYYY',
  12546. LL : 'D MMMM YYYY',
  12547. LLL : 'D MMMM YYYY HH:mm',
  12548. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12549. },
  12550. calendar : {
  12551. sameDay: '[DaHjaj] LT',
  12552. nextDay: '[wa’leS] LT',
  12553. nextWeek: 'LLL',
  12554. lastDay: '[wa’Hu’] LT',
  12555. lastWeek: 'LLL',
  12556. sameElse: 'L'
  12557. },
  12558. relativeTime : {
  12559. future : translateFuture,
  12560. past : translatePast,
  12561. s : 'puS lup',
  12562. ss : translate$a,
  12563. m : 'wa’ tup',
  12564. mm : translate$a,
  12565. h : 'wa’ rep',
  12566. hh : translate$a,
  12567. d : 'wa’ jaj',
  12568. dd : translate$a,
  12569. M : 'wa’ jar',
  12570. MM : translate$a,
  12571. y : 'wa’ DIS',
  12572. yy : translate$a
  12573. },
  12574. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12575. ordinal : '%d.',
  12576. week : {
  12577. dow : 1, // Monday is the first day of the week.
  12578. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12579. }
  12580. });
  12581. var suffixes$4 = {
  12582. 1: '\'inci',
  12583. 5: '\'inci',
  12584. 8: '\'inci',
  12585. 70: '\'inci',
  12586. 80: '\'inci',
  12587. 2: '\'nci',
  12588. 7: '\'nci',
  12589. 20: '\'nci',
  12590. 50: '\'nci',
  12591. 3: '\'üncü',
  12592. 4: '\'üncü',
  12593. 100: '\'üncü',
  12594. 6: '\'ncı',
  12595. 9: '\'uncu',
  12596. 10: '\'uncu',
  12597. 30: '\'uncu',
  12598. 60: '\'ıncı',
  12599. 90: '\'ıncı'
  12600. };
  12601. hooks.defineLocale('tr', {
  12602. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  12603. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  12604. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  12605. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  12606. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  12607. longDateFormat : {
  12608. LT : 'HH:mm',
  12609. LTS : 'HH:mm:ss',
  12610. L : 'DD.MM.YYYY',
  12611. LL : 'D MMMM YYYY',
  12612. LLL : 'D MMMM YYYY HH:mm',
  12613. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12614. },
  12615. calendar : {
  12616. sameDay : '[bugün saat] LT',
  12617. nextDay : '[yarın saat] LT',
  12618. nextWeek : '[gelecek] dddd [saat] LT',
  12619. lastDay : '[dün] LT',
  12620. lastWeek : '[geçen] dddd [saat] LT',
  12621. sameElse : 'L'
  12622. },
  12623. relativeTime : {
  12624. future : '%s sonra',
  12625. past : '%s önce',
  12626. s : 'birkaç saniye',
  12627. ss : '%d saniye',
  12628. m : 'bir dakika',
  12629. mm : '%d dakika',
  12630. h : 'bir saat',
  12631. hh : '%d saat',
  12632. d : 'bir gün',
  12633. dd : '%d gün',
  12634. M : 'bir ay',
  12635. MM : '%d ay',
  12636. y : 'bir yıl',
  12637. yy : '%d yıl'
  12638. },
  12639. ordinal: function (number, period) {
  12640. switch (period) {
  12641. case 'd':
  12642. case 'D':
  12643. case 'Do':
  12644. case 'DD':
  12645. return number;
  12646. default:
  12647. if (number === 0) { // special case for zero
  12648. return number + '\'ıncı';
  12649. }
  12650. var a = number % 10,
  12651. b = number % 100 - a,
  12652. c = number >= 100 ? 100 : null;
  12653. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  12654. }
  12655. },
  12656. week : {
  12657. dow : 1, // Monday is the first day of the week.
  12658. doy : 7 // The week that contains Jan 7th is the first week of the year.
  12659. }
  12660. });
  12661. //! moment.js locale configuration
  12662. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  12663. // This is currently too difficult (maybe even impossible) to add.
  12664. hooks.defineLocale('tzl', {
  12665. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  12666. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  12667. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  12668. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  12669. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  12670. longDateFormat : {
  12671. LT : 'HH.mm',
  12672. LTS : 'HH.mm.ss',
  12673. L : 'DD.MM.YYYY',
  12674. LL : 'D. MMMM [dallas] YYYY',
  12675. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  12676. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  12677. },
  12678. meridiemParse: /d\'o|d\'a/i,
  12679. isPM : function (input) {
  12680. return 'd\'o' === input.toLowerCase();
  12681. },
  12682. meridiem : function (hours, minutes, isLower) {
  12683. if (hours > 11) {
  12684. return isLower ? 'd\'o' : 'D\'O';
  12685. } else {
  12686. return isLower ? 'd\'a' : 'D\'A';
  12687. }
  12688. },
  12689. calendar : {
  12690. sameDay : '[oxhi à] LT',
  12691. nextDay : '[demà à] LT',
  12692. nextWeek : 'dddd [à] LT',
  12693. lastDay : '[ieiri à] LT',
  12694. lastWeek : '[sür el] dddd [lasteu à] LT',
  12695. sameElse : 'L'
  12696. },
  12697. relativeTime : {
  12698. future : 'osprei %s',
  12699. past : 'ja%s',
  12700. s : processRelativeTime$7,
  12701. ss : processRelativeTime$7,
  12702. m : processRelativeTime$7,
  12703. mm : processRelativeTime$7,
  12704. h : processRelativeTime$7,
  12705. hh : processRelativeTime$7,
  12706. d : processRelativeTime$7,
  12707. dd : processRelativeTime$7,
  12708. M : processRelativeTime$7,
  12709. MM : processRelativeTime$7,
  12710. y : processRelativeTime$7,
  12711. yy : processRelativeTime$7
  12712. },
  12713. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12714. ordinal : '%d.',
  12715. week : {
  12716. dow : 1, // Monday is the first day of the week.
  12717. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12718. }
  12719. });
  12720. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  12721. var format = {
  12722. 's': ['viensas secunds', '\'iensas secunds'],
  12723. 'ss': [number + ' secunds', '' + number + ' secunds'],
  12724. 'm': ['\'n míut', '\'iens míut'],
  12725. 'mm': [number + ' míuts', '' + number + ' míuts'],
  12726. 'h': ['\'n þora', '\'iensa þora'],
  12727. 'hh': [number + ' þoras', '' + number + ' þoras'],
  12728. 'd': ['\'n ziua', '\'iensa ziua'],
  12729. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  12730. 'M': ['\'n mes', '\'iens mes'],
  12731. 'MM': [number + ' mesen', '' + number + ' mesen'],
  12732. 'y': ['\'n ar', '\'iens ar'],
  12733. 'yy': [number + ' ars', '' + number + ' ars']
  12734. };
  12735. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  12736. }
  12737. //! moment.js locale configuration
  12738. hooks.defineLocale('tzm-latn', {
  12739. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  12740. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  12741. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  12742. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  12743. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  12744. longDateFormat : {
  12745. LT : 'HH:mm',
  12746. LTS : 'HH:mm:ss',
  12747. L : 'DD/MM/YYYY',
  12748. LL : 'D MMMM YYYY',
  12749. LLL : 'D MMMM YYYY HH:mm',
  12750. LLLL : 'dddd D MMMM YYYY HH:mm'
  12751. },
  12752. calendar : {
  12753. sameDay: '[asdkh g] LT',
  12754. nextDay: '[aska g] LT',
  12755. nextWeek: 'dddd [g] LT',
  12756. lastDay: '[assant g] LT',
  12757. lastWeek: 'dddd [g] LT',
  12758. sameElse: 'L'
  12759. },
  12760. relativeTime : {
  12761. future : 'dadkh s yan %s',
  12762. past : 'yan %s',
  12763. s : 'imik',
  12764. ss : '%d imik',
  12765. m : 'minuḍ',
  12766. mm : '%d minuḍ',
  12767. h : 'saɛa',
  12768. hh : '%d tassaɛin',
  12769. d : 'ass',
  12770. dd : '%d ossan',
  12771. M : 'ayowr',
  12772. MM : '%d iyyirn',
  12773. y : 'asgas',
  12774. yy : '%d isgasn'
  12775. },
  12776. week : {
  12777. dow : 6, // Saturday is the first day of the week.
  12778. doy : 12 // The week that contains Jan 12th is the first week of the year.
  12779. }
  12780. });
  12781. //! moment.js locale configuration
  12782. hooks.defineLocale('tzm', {
  12783. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  12784. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  12785. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  12786. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  12787. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  12788. longDateFormat : {
  12789. LT : 'HH:mm',
  12790. LTS: 'HH:mm:ss',
  12791. L : 'DD/MM/YYYY',
  12792. LL : 'D MMMM YYYY',
  12793. LLL : 'D MMMM YYYY HH:mm',
  12794. LLLL : 'dddd D MMMM YYYY HH:mm'
  12795. },
  12796. calendar : {
  12797. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  12798. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  12799. nextWeek: 'dddd [ⴴ] LT',
  12800. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  12801. lastWeek: 'dddd [ⴴ] LT',
  12802. sameElse: 'L'
  12803. },
  12804. relativeTime : {
  12805. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  12806. past : 'ⵢⴰⵏ %s',
  12807. s : 'ⵉⵎⵉⴽ',
  12808. ss : '%d ⵉⵎⵉⴽ',
  12809. m : 'ⵎⵉⵏⵓⴺ',
  12810. mm : '%d ⵎⵉⵏⵓⴺ',
  12811. h : 'ⵙⴰⵄⴰ',
  12812. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  12813. d : 'ⴰⵙⵙ',
  12814. dd : '%d oⵙⵙⴰⵏ',
  12815. M : 'ⴰⵢoⵓⵔ',
  12816. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  12817. y : 'ⴰⵙⴳⴰⵙ',
  12818. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  12819. },
  12820. week : {
  12821. dow : 6, // Saturday is the first day of the week.
  12822. doy : 12 // The week that contains Jan 12th is the first week of the year.
  12823. }
  12824. });
  12825. //! moment.js language configuration
  12826. hooks.defineLocale('ug-cn', {
  12827. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  12828. '_'
  12829. ),
  12830. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  12831. '_'
  12832. ),
  12833. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  12834. '_'
  12835. ),
  12836. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  12837. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  12838. longDateFormat: {
  12839. LT: 'HH:mm',
  12840. LTS: 'HH:mm:ss',
  12841. L: 'YYYY-MM-DD',
  12842. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  12843. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  12844. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
  12845. },
  12846. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  12847. meridiemHour: function (hour, meridiem) {
  12848. if (hour === 12) {
  12849. hour = 0;
  12850. }
  12851. if (
  12852. meridiem === 'يېرىم كېچە' ||
  12853. meridiem === 'سەھەر' ||
  12854. meridiem === 'چۈشتىن بۇرۇن'
  12855. ) {
  12856. return hour;
  12857. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  12858. return hour + 12;
  12859. } else {
  12860. return hour >= 11 ? hour : hour + 12;
  12861. }
  12862. },
  12863. meridiem: function (hour, minute, isLower) {
  12864. var hm = hour * 100 + minute;
  12865. if (hm < 600) {
  12866. return 'يېرىم كېچە';
  12867. } else if (hm < 900) {
  12868. return 'سەھەر';
  12869. } else if (hm < 1130) {
  12870. return 'چۈشتىن بۇرۇن';
  12871. } else if (hm < 1230) {
  12872. return 'چۈش';
  12873. } else if (hm < 1800) {
  12874. return 'چۈشتىن كېيىن';
  12875. } else {
  12876. return 'كەچ';
  12877. }
  12878. },
  12879. calendar: {
  12880. sameDay: '[بۈگۈن سائەت] LT',
  12881. nextDay: '[ئەتە سائەت] LT',
  12882. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  12883. lastDay: '[تۆنۈگۈن] LT',
  12884. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  12885. sameElse: 'L'
  12886. },
  12887. relativeTime: {
  12888. future: '%s كېيىن',
  12889. past: '%s بۇرۇن',
  12890. s: 'نەچچە سېكونت',
  12891. ss: '%d سېكونت',
  12892. m: 'بىر مىنۇت',
  12893. mm: '%d مىنۇت',
  12894. h: 'بىر سائەت',
  12895. hh: '%d سائەت',
  12896. d: 'بىر كۈن',
  12897. dd: '%d كۈن',
  12898. M: 'بىر ئاي',
  12899. MM: '%d ئاي',
  12900. y: 'بىر يىل',
  12901. yy: '%d يىل'
  12902. },
  12903. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  12904. ordinal: function (number, period) {
  12905. switch (period) {
  12906. case 'd':
  12907. case 'D':
  12908. case 'DDD':
  12909. return number + '-كۈنى';
  12910. case 'w':
  12911. case 'W':
  12912. return number + '-ھەپتە';
  12913. default:
  12914. return number;
  12915. }
  12916. },
  12917. preparse: function (string) {
  12918. return string.replace(/،/g, ',');
  12919. },
  12920. postformat: function (string) {
  12921. return string.replace(/,/g, '،');
  12922. },
  12923. week: {
  12924. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  12925. dow: 1, // Monday is the first day of the week.
  12926. doy: 7 // The week that contains Jan 1st is the first week of the year.
  12927. }
  12928. });
  12929. //! moment.js locale configuration
  12930. function plural$6(word, num) {
  12931. var forms = word.split('_');
  12932. 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]);
  12933. }
  12934. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  12935. var format = {
  12936. 'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  12937. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  12938. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  12939. 'dd': 'день_дні_днів',
  12940. 'MM': 'місяць_місяці_місяців',
  12941. 'yy': 'рік_роки_років'
  12942. };
  12943. if (key === 'm') {
  12944. return withoutSuffix ? 'хвилина' : 'хвилину';
  12945. }
  12946. else if (key === 'h') {
  12947. return withoutSuffix ? 'година' : 'годину';
  12948. }
  12949. else {
  12950. return number + ' ' + plural$6(format[key], +number);
  12951. }
  12952. }
  12953. function weekdaysCaseReplace(m, format) {
  12954. var weekdays = {
  12955. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  12956. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  12957. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  12958. };
  12959. if (m === true) {
  12960. return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
  12961. }
  12962. if (!m) {
  12963. return weekdays['nominative'];
  12964. }
  12965. var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  12966. 'accusative' :
  12967. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  12968. 'genitive' :
  12969. 'nominative');
  12970. return weekdays[nounCase][m.day()];
  12971. }
  12972. function processHoursFunction(str) {
  12973. return function () {
  12974. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  12975. };
  12976. }
  12977. hooks.defineLocale('uk', {
  12978. months : {
  12979. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  12980. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  12981. },
  12982. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  12983. weekdays : weekdaysCaseReplace,
  12984. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  12985. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  12986. longDateFormat : {
  12987. LT : 'HH:mm',
  12988. LTS : 'HH:mm:ss',
  12989. L : 'DD.MM.YYYY',
  12990. LL : 'D MMMM YYYY р.',
  12991. LLL : 'D MMMM YYYY р., HH:mm',
  12992. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  12993. },
  12994. calendar : {
  12995. sameDay: processHoursFunction('[Сьогодні '),
  12996. nextDay: processHoursFunction('[Завтра '),
  12997. lastDay: processHoursFunction('[Вчора '),
  12998. nextWeek: processHoursFunction('[У] dddd ['),
  12999. lastWeek: function () {
  13000. switch (this.day()) {
  13001. case 0:
  13002. case 3:
  13003. case 5:
  13004. case 6:
  13005. return processHoursFunction('[Минулої] dddd [').call(this);
  13006. case 1:
  13007. case 2:
  13008. case 4:
  13009. return processHoursFunction('[Минулого] dddd [').call(this);
  13010. }
  13011. },
  13012. sameElse: 'L'
  13013. },
  13014. relativeTime : {
  13015. future : 'за %s',
  13016. past : '%s тому',
  13017. s : 'декілька секунд',
  13018. ss : relativeTimeWithPlural$4,
  13019. m : relativeTimeWithPlural$4,
  13020. mm : relativeTimeWithPlural$4,
  13021. h : 'годину',
  13022. hh : relativeTimeWithPlural$4,
  13023. d : 'день',
  13024. dd : relativeTimeWithPlural$4,
  13025. M : 'місяць',
  13026. MM : relativeTimeWithPlural$4,
  13027. y : 'рік',
  13028. yy : relativeTimeWithPlural$4
  13029. },
  13030. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  13031. meridiemParse: /ночі|ранку|дня|вечора/,
  13032. isPM: function (input) {
  13033. return /^(дня|вечора)$/.test(input);
  13034. },
  13035. meridiem : function (hour, minute, isLower) {
  13036. if (hour < 4) {
  13037. return 'ночі';
  13038. } else if (hour < 12) {
  13039. return 'ранку';
  13040. } else if (hour < 17) {
  13041. return 'дня';
  13042. } else {
  13043. return 'вечора';
  13044. }
  13045. },
  13046. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  13047. ordinal: function (number, period) {
  13048. switch (period) {
  13049. case 'M':
  13050. case 'd':
  13051. case 'DDD':
  13052. case 'w':
  13053. case 'W':
  13054. return number + '-й';
  13055. case 'D':
  13056. return number + '-го';
  13057. default:
  13058. return number;
  13059. }
  13060. },
  13061. week : {
  13062. dow : 1, // Monday is the first day of the week.
  13063. doy : 7 // The week that contains Jan 7th is the first week of the year.
  13064. }
  13065. });
  13066. //! moment.js locale configuration
  13067. var months$a = [
  13068. 'جنوری',
  13069. 'فروری',
  13070. 'مارچ',
  13071. 'اپریل',
  13072. 'مئی',
  13073. 'جون',
  13074. 'جولائی',
  13075. 'اگست',
  13076. 'ستمبر',
  13077. 'اکتوبر',
  13078. 'نومبر',
  13079. 'دسمبر'
  13080. ];
  13081. var days$2 = [
  13082. 'اتوار',
  13083. 'پیر',
  13084. 'منگل',
  13085. 'بدھ',
  13086. 'جمعرات',
  13087. 'جمعہ',
  13088. 'ہفتہ'
  13089. ];
  13090. hooks.defineLocale('ur', {
  13091. months : months$a,
  13092. monthsShort : months$a,
  13093. weekdays : days$2,
  13094. weekdaysShort : days$2,
  13095. weekdaysMin : days$2,
  13096. longDateFormat : {
  13097. LT : 'HH:mm',
  13098. LTS : 'HH:mm:ss',
  13099. L : 'DD/MM/YYYY',
  13100. LL : 'D MMMM YYYY',
  13101. LLL : 'D MMMM YYYY HH:mm',
  13102. LLLL : 'dddd، D MMMM YYYY HH:mm'
  13103. },
  13104. meridiemParse: /صبح|شام/,
  13105. isPM : function (input) {
  13106. return 'شام' === input;
  13107. },
  13108. meridiem : function (hour, minute, isLower) {
  13109. if (hour < 12) {
  13110. return 'صبح';
  13111. }
  13112. return 'شام';
  13113. },
  13114. calendar : {
  13115. sameDay : '[آج بوقت] LT',
  13116. nextDay : '[کل بوقت] LT',
  13117. nextWeek : 'dddd [بوقت] LT',
  13118. lastDay : '[گذشتہ روز بوقت] LT',
  13119. lastWeek : '[گذشتہ] dddd [بوقت] LT',
  13120. sameElse : 'L'
  13121. },
  13122. relativeTime : {
  13123. future : '%s بعد',
  13124. past : '%s قبل',
  13125. s : 'چند سیکنڈ',
  13126. ss : '%d سیکنڈ',
  13127. m : 'ایک منٹ',
  13128. mm : '%d منٹ',
  13129. h : 'ایک گھنٹہ',
  13130. hh : '%d گھنٹے',
  13131. d : 'ایک دن',
  13132. dd : '%d دن',
  13133. M : 'ایک ماہ',
  13134. MM : '%d ماہ',
  13135. y : 'ایک سال',
  13136. yy : '%d سال'
  13137. },
  13138. preparse: function (string) {
  13139. return string.replace(/،/g, ',');
  13140. },
  13141. postformat: function (string) {
  13142. return string.replace(/,/g, '،');
  13143. },
  13144. week : {
  13145. dow : 1, // Monday is the first day of the week.
  13146. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13147. }
  13148. });
  13149. //! moment.js locale configuration
  13150. hooks.defineLocale('uz-latn', {
  13151. months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  13152. monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  13153. weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  13154. weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  13155. weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  13156. longDateFormat : {
  13157. LT : 'HH:mm',
  13158. LTS : 'HH:mm:ss',
  13159. L : 'DD/MM/YYYY',
  13160. LL : 'D MMMM YYYY',
  13161. LLL : 'D MMMM YYYY HH:mm',
  13162. LLLL : 'D MMMM YYYY, dddd HH:mm'
  13163. },
  13164. calendar : {
  13165. sameDay : '[Bugun soat] LT [da]',
  13166. nextDay : '[Ertaga] LT [da]',
  13167. nextWeek : 'dddd [kuni soat] LT [da]',
  13168. lastDay : '[Kecha soat] LT [da]',
  13169. lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
  13170. sameElse : 'L'
  13171. },
  13172. relativeTime : {
  13173. future : 'Yaqin %s ichida',
  13174. past : 'Bir necha %s oldin',
  13175. s : 'soniya',
  13176. ss : '%d soniya',
  13177. m : 'bir daqiqa',
  13178. mm : '%d daqiqa',
  13179. h : 'bir soat',
  13180. hh : '%d soat',
  13181. d : 'bir kun',
  13182. dd : '%d kun',
  13183. M : 'bir oy',
  13184. MM : '%d oy',
  13185. y : 'bir yil',
  13186. yy : '%d yil'
  13187. },
  13188. week : {
  13189. dow : 1, // Monday is the first day of the week.
  13190. doy : 7 // The week that contains Jan 7th is the first week of the year.
  13191. }
  13192. });
  13193. //! moment.js locale configuration
  13194. hooks.defineLocale('uz', {
  13195. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  13196. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  13197. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  13198. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  13199. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  13200. longDateFormat : {
  13201. LT : 'HH:mm',
  13202. LTS : 'HH:mm:ss',
  13203. L : 'DD/MM/YYYY',
  13204. LL : 'D MMMM YYYY',
  13205. LLL : 'D MMMM YYYY HH:mm',
  13206. LLLL : 'D MMMM YYYY, dddd HH:mm'
  13207. },
  13208. calendar : {
  13209. sameDay : '[Бугун соат] LT [да]',
  13210. nextDay : '[Эртага] LT [да]',
  13211. nextWeek : 'dddd [куни соат] LT [да]',
  13212. lastDay : '[Кеча соат] LT [да]',
  13213. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  13214. sameElse : 'L'
  13215. },
  13216. relativeTime : {
  13217. future : 'Якин %s ичида',
  13218. past : 'Бир неча %s олдин',
  13219. s : 'фурсат',
  13220. ss : '%d фурсат',
  13221. m : 'бир дакика',
  13222. mm : '%d дакика',
  13223. h : 'бир соат',
  13224. hh : '%d соат',
  13225. d : 'бир кун',
  13226. dd : '%d кун',
  13227. M : 'бир ой',
  13228. MM : '%d ой',
  13229. y : 'бир йил',
  13230. yy : '%d йил'
  13231. },
  13232. week : {
  13233. dow : 1, // Monday is the first day of the week.
  13234. doy : 7 // The week that contains Jan 4th is the first week of the year.
  13235. }
  13236. });
  13237. //! moment.js locale configuration
  13238. hooks.defineLocale('vi', {
  13239. 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('_'),
  13240. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  13241. monthsParseExact : true,
  13242. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  13243. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  13244. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  13245. weekdaysParseExact : true,
  13246. meridiemParse: /sa|ch/i,
  13247. isPM : function (input) {
  13248. return /^ch$/i.test(input);
  13249. },
  13250. meridiem : function (hours, minutes, isLower) {
  13251. if (hours < 12) {
  13252. return isLower ? 'sa' : 'SA';
  13253. } else {
  13254. return isLower ? 'ch' : 'CH';
  13255. }
  13256. },
  13257. longDateFormat : {
  13258. LT : 'HH:mm',
  13259. LTS : 'HH:mm:ss',
  13260. L : 'DD/MM/YYYY',
  13261. LL : 'D MMMM [năm] YYYY',
  13262. LLL : 'D MMMM [năm] YYYY HH:mm',
  13263. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  13264. l : 'DD/M/YYYY',
  13265. ll : 'D MMM YYYY',
  13266. lll : 'D MMM YYYY HH:mm',
  13267. llll : 'ddd, D MMM YYYY HH:mm'
  13268. },
  13269. calendar : {
  13270. sameDay: '[Hôm nay lúc] LT',
  13271. nextDay: '[Ngày mai lúc] LT',
  13272. nextWeek: 'dddd [tuần tới lúc] LT',
  13273. lastDay: '[Hôm qua lúc] LT',
  13274. lastWeek: 'dddd [tuần rồi lúc] LT',
  13275. sameElse: 'L'
  13276. },
  13277. relativeTime : {
  13278. future : '%s tới',
  13279. past : '%s trước',
  13280. s : 'vài giây',
  13281. ss : '%d giây' ,
  13282. m : 'một phút',
  13283. mm : '%d phút',
  13284. h : 'một giờ',
  13285. hh : '%d giờ',
  13286. d : 'một ngày',
  13287. dd : '%d ngày',
  13288. M : 'một tháng',
  13289. MM : '%d tháng',
  13290. y : 'một năm',
  13291. yy : '%d năm'
  13292. },
  13293. dayOfMonthOrdinalParse: /\d{1,2}/,
  13294. ordinal : function (number) {
  13295. return number;
  13296. },
  13297. week : {
  13298. dow : 1, // Monday is the first day of the week.
  13299. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13300. }
  13301. });
  13302. //! moment.js locale configuration
  13303. hooks.defineLocale('x-pseudo', {
  13304. 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('_'),
  13305. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  13306. monthsParseExact : true,
  13307. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  13308. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  13309. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  13310. weekdaysParseExact : true,
  13311. longDateFormat : {
  13312. LT : 'HH:mm',
  13313. L : 'DD/MM/YYYY',
  13314. LL : 'D MMMM YYYY',
  13315. LLL : 'D MMMM YYYY HH:mm',
  13316. LLLL : 'dddd, D MMMM YYYY HH:mm'
  13317. },
  13318. calendar : {
  13319. sameDay : '[T~ódá~ý át] LT',
  13320. nextDay : '[T~ómó~rró~w át] LT',
  13321. nextWeek : 'dddd [át] LT',
  13322. lastDay : '[Ý~ést~érdá~ý át] LT',
  13323. lastWeek : '[L~ást] dddd [át] LT',
  13324. sameElse : 'L'
  13325. },
  13326. relativeTime : {
  13327. future : 'í~ñ %s',
  13328. past : '%s á~gó',
  13329. s : 'á ~féw ~sécó~ñds',
  13330. ss : '%d s~écóñ~ds',
  13331. m : 'á ~míñ~úté',
  13332. mm : '%d m~íñú~tés',
  13333. h : 'á~ñ hó~úr',
  13334. hh : '%d h~óúrs',
  13335. d : 'á ~dáý',
  13336. dd : '%d d~áýs',
  13337. M : 'á ~móñ~th',
  13338. MM : '%d m~óñt~hs',
  13339. y : 'á ~ýéár',
  13340. yy : '%d ý~éárs'
  13341. },
  13342. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  13343. ordinal : function (number) {
  13344. var b = number % 10,
  13345. output = (~~(number % 100 / 10) === 1) ? 'th' :
  13346. (b === 1) ? 'st' :
  13347. (b === 2) ? 'nd' :
  13348. (b === 3) ? 'rd' : 'th';
  13349. return number + output;
  13350. },
  13351. week : {
  13352. dow : 1, // Monday is the first day of the week.
  13353. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13354. }
  13355. });
  13356. //! moment.js locale configuration
  13357. hooks.defineLocale('yo', {
  13358. months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  13359. monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  13360. weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  13361. weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  13362. weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  13363. longDateFormat : {
  13364. LT : 'h:mm A',
  13365. LTS : 'h:mm:ss A',
  13366. L : 'DD/MM/YYYY',
  13367. LL : 'D MMMM YYYY',
  13368. LLL : 'D MMMM YYYY h:mm A',
  13369. LLLL : 'dddd, D MMMM YYYY h:mm A'
  13370. },
  13371. calendar : {
  13372. sameDay : '[Ònì ni] LT',
  13373. nextDay : '[Ọ̀la ni] LT',
  13374. nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
  13375. lastDay : '[Àna ni] LT',
  13376. lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  13377. sameElse : 'L'
  13378. },
  13379. relativeTime : {
  13380. future : 'ní %s',
  13381. past : '%s kọjá',
  13382. s : 'ìsẹjú aayá die',
  13383. ss :'aayá %d',
  13384. m : 'ìsẹjú kan',
  13385. mm : 'ìsẹjú %d',
  13386. h : 'wákati kan',
  13387. hh : 'wákati %d',
  13388. d : 'ọjọ́ kan',
  13389. dd : 'ọjọ́ %d',
  13390. M : 'osù kan',
  13391. MM : 'osù %d',
  13392. y : 'ọdún kan',
  13393. yy : 'ọdún %d'
  13394. },
  13395. dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
  13396. ordinal : 'ọjọ́ %d',
  13397. week : {
  13398. dow : 1, // Monday is the first day of the week.
  13399. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13400. }
  13401. });
  13402. //! moment.js locale configuration
  13403. hooks.defineLocale('zh-cn', {
  13404. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  13405. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  13406. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  13407. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  13408. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  13409. longDateFormat : {
  13410. LT : 'HH:mm',
  13411. LTS : 'HH:mm:ss',
  13412. L : 'YYYY/MM/DD',
  13413. LL : 'YYYY年M月D日',
  13414. LLL : 'YYYY年M月D日Ah点mm分',
  13415. LLLL : 'YYYY年M月D日ddddAh点mm分',
  13416. l : 'YYYY/M/D',
  13417. ll : 'YYYY年M月D日',
  13418. lll : 'YYYY年M月D日 HH:mm',
  13419. llll : 'YYYY年M月D日dddd HH:mm'
  13420. },
  13421. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  13422. meridiemHour: function (hour, meridiem) {
  13423. if (hour === 12) {
  13424. hour = 0;
  13425. }
  13426. if (meridiem === '凌晨' || meridiem === '早上' ||
  13427. meridiem === '上午') {
  13428. return hour;
  13429. } else if (meridiem === '下午' || meridiem === '晚上') {
  13430. return hour + 12;
  13431. } else {
  13432. // '中午'
  13433. return hour >= 11 ? hour : hour + 12;
  13434. }
  13435. },
  13436. meridiem : function (hour, minute, isLower) {
  13437. var hm = hour * 100 + minute;
  13438. if (hm < 600) {
  13439. return '凌晨';
  13440. } else if (hm < 900) {
  13441. return '早上';
  13442. } else if (hm < 1130) {
  13443. return '上午';
  13444. } else if (hm < 1230) {
  13445. return '中午';
  13446. } else if (hm < 1800) {
  13447. return '下午';
  13448. } else {
  13449. return '晚上';
  13450. }
  13451. },
  13452. calendar : {
  13453. sameDay : '[今天]LT',
  13454. nextDay : '[明天]LT',
  13455. nextWeek : '[下]ddddLT',
  13456. lastDay : '[昨天]LT',
  13457. lastWeek : '[上]ddddLT',
  13458. sameElse : 'L'
  13459. },
  13460. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  13461. ordinal : function (number, period) {
  13462. switch (period) {
  13463. case 'd':
  13464. case 'D':
  13465. case 'DDD':
  13466. return number + '日';
  13467. case 'M':
  13468. return number + '月';
  13469. case 'w':
  13470. case 'W':
  13471. return number + '周';
  13472. default:
  13473. return number;
  13474. }
  13475. },
  13476. relativeTime : {
  13477. future : '%s内',
  13478. past : '%s前',
  13479. s : '几秒',
  13480. ss : '%d 秒',
  13481. m : '1 分钟',
  13482. mm : '%d 分钟',
  13483. h : '1 小时',
  13484. hh : '%d 小时',
  13485. d : '1 天',
  13486. dd : '%d 天',
  13487. M : '1 个月',
  13488. MM : '%d 个月',
  13489. y : '1 年',
  13490. yy : '%d 年'
  13491. },
  13492. week : {
  13493. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  13494. dow : 1, // Monday is the first day of the week.
  13495. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13496. }
  13497. });
  13498. //! moment.js locale configuration
  13499. hooks.defineLocale('zh-hk', {
  13500. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  13501. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  13502. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  13503. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  13504. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  13505. longDateFormat : {
  13506. LT : 'HH:mm',
  13507. LTS : 'HH:mm:ss',
  13508. L : 'YYYY/MM/DD',
  13509. LL : 'YYYY年M月D日',
  13510. LLL : 'YYYY年M月D日 HH:mm',
  13511. LLLL : 'YYYY年M月D日dddd HH:mm',
  13512. l : 'YYYY/M/D',
  13513. ll : 'YYYY年M月D日',
  13514. lll : 'YYYY年M月D日 HH:mm',
  13515. llll : 'YYYY年M月D日dddd HH:mm'
  13516. },
  13517. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  13518. meridiemHour : function (hour, meridiem) {
  13519. if (hour === 12) {
  13520. hour = 0;
  13521. }
  13522. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  13523. return hour;
  13524. } else if (meridiem === '中午') {
  13525. return hour >= 11 ? hour : hour + 12;
  13526. } else if (meridiem === '下午' || meridiem === '晚上') {
  13527. return hour + 12;
  13528. }
  13529. },
  13530. meridiem : function (hour, minute, isLower) {
  13531. var hm = hour * 100 + minute;
  13532. if (hm < 600) {
  13533. return '凌晨';
  13534. } else if (hm < 900) {
  13535. return '早上';
  13536. } else if (hm < 1130) {
  13537. return '上午';
  13538. } else if (hm < 1230) {
  13539. return '中午';
  13540. } else if (hm < 1800) {
  13541. return '下午';
  13542. } else {
  13543. return '晚上';
  13544. }
  13545. },
  13546. calendar : {
  13547. sameDay : '[今天]LT',
  13548. nextDay : '[明天]LT',
  13549. nextWeek : '[下]ddddLT',
  13550. lastDay : '[昨天]LT',
  13551. lastWeek : '[上]ddddLT',
  13552. sameElse : 'L'
  13553. },
  13554. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  13555. ordinal : function (number, period) {
  13556. switch (period) {
  13557. case 'd' :
  13558. case 'D' :
  13559. case 'DDD' :
  13560. return number + '日';
  13561. case 'M' :
  13562. return number + '月';
  13563. case 'w' :
  13564. case 'W' :
  13565. return number + '週';
  13566. default :
  13567. return number;
  13568. }
  13569. },
  13570. relativeTime : {
  13571. future : '%s內',
  13572. past : '%s前',
  13573. s : '幾秒',
  13574. ss : '%d 秒',
  13575. m : '1 分鐘',
  13576. mm : '%d 分鐘',
  13577. h : '1 小時',
  13578. hh : '%d 小時',
  13579. d : '1 天',
  13580. dd : '%d 天',
  13581. M : '1 個月',
  13582. MM : '%d 個月',
  13583. y : '1 年',
  13584. yy : '%d 年'
  13585. }
  13586. });
  13587. //! moment.js locale configuration
  13588. hooks.defineLocale('zh-tw', {
  13589. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  13590. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  13591. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  13592. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  13593. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  13594. longDateFormat : {
  13595. LT : 'HH:mm',
  13596. LTS : 'HH:mm:ss',
  13597. L : 'YYYY/MM/DD',
  13598. LL : 'YYYY年M月D日',
  13599. LLL : 'YYYY年M月D日 HH:mm',
  13600. LLLL : 'YYYY年M月D日dddd HH:mm',
  13601. l : 'YYYY/M/D',
  13602. ll : 'YYYY年M月D日',
  13603. lll : 'YYYY年M月D日 HH:mm',
  13604. llll : 'YYYY年M月D日dddd HH:mm'
  13605. },
  13606. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  13607. meridiemHour : function (hour, meridiem) {
  13608. if (hour === 12) {
  13609. hour = 0;
  13610. }
  13611. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  13612. return hour;
  13613. } else if (meridiem === '中午') {
  13614. return hour >= 11 ? hour : hour + 12;
  13615. } else if (meridiem === '下午' || meridiem === '晚上') {
  13616. return hour + 12;
  13617. }
  13618. },
  13619. meridiem : function (hour, minute, isLower) {
  13620. var hm = hour * 100 + minute;
  13621. if (hm < 600) {
  13622. return '凌晨';
  13623. } else if (hm < 900) {
  13624. return '早上';
  13625. } else if (hm < 1130) {
  13626. return '上午';
  13627. } else if (hm < 1230) {
  13628. return '中午';
  13629. } else if (hm < 1800) {
  13630. return '下午';
  13631. } else {
  13632. return '晚上';
  13633. }
  13634. },
  13635. calendar : {
  13636. sameDay : '[今天] LT',
  13637. nextDay : '[明天] LT',
  13638. nextWeek : '[下]dddd LT',
  13639. lastDay : '[昨天] LT',
  13640. lastWeek : '[上]dddd LT',
  13641. sameElse : 'L'
  13642. },
  13643. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  13644. ordinal : function (number, period) {
  13645. switch (period) {
  13646. case 'd' :
  13647. case 'D' :
  13648. case 'DDD' :
  13649. return number + '日';
  13650. case 'M' :
  13651. return number + '月';
  13652. case 'w' :
  13653. case 'W' :
  13654. return number + '週';
  13655. default :
  13656. return number;
  13657. }
  13658. },
  13659. relativeTime : {
  13660. future : '%s內',
  13661. past : '%s前',
  13662. s : '幾秒',
  13663. ss : '%d 秒',
  13664. m : '1 分鐘',
  13665. mm : '%d 分鐘',
  13666. h : '1 小時',
  13667. hh : '%d 小時',
  13668. d : '1 天',
  13669. dd : '%d 天',
  13670. M : '1 個月',
  13671. MM : '%d 個月',
  13672. y : '1 年',
  13673. yy : '%d 年'
  13674. }
  13675. });
  13676. hooks.locale('en');
  13677. return hooks;
  13678. })));