moment-with-locales.js 441 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700
  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. var k;
  25. for (k in obj) {
  26. // even if its not own property I'd still call it non-empty
  27. return false;
  28. }
  29. return true;
  30. }
  31. function isUndefined(input) {
  32. return input === void 0;
  33. }
  34. function isNumber(input) {
  35. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  36. }
  37. function isDate(input) {
  38. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  39. }
  40. function map(arr, fn) {
  41. var res = [], i;
  42. for (i = 0; i < arr.length; ++i) {
  43. res.push(fn(arr[i], i));
  44. }
  45. return res;
  46. }
  47. function hasOwnProp(a, b) {
  48. return Object.prototype.hasOwnProperty.call(a, b);
  49. }
  50. function extend(a, b) {
  51. for (var i in b) {
  52. if (hasOwnProp(b, i)) {
  53. a[i] = b[i];
  54. }
  55. }
  56. if (hasOwnProp(b, 'toString')) {
  57. a.toString = b.toString;
  58. }
  59. if (hasOwnProp(b, 'valueOf')) {
  60. a.valueOf = b.valueOf;
  61. }
  62. return a;
  63. }
  64. function createUTC (input, format, locale, strict) {
  65. return createLocalOrUTC(input, format, locale, strict, true).utc();
  66. }
  67. function defaultParsingFlags() {
  68. // We need to deep clone this object.
  69. return {
  70. empty : false,
  71. unusedTokens : [],
  72. unusedInput : [],
  73. overflow : -2,
  74. charsLeftOver : 0,
  75. nullInput : false,
  76. invalidMonth : null,
  77. invalidFormat : false,
  78. userInvalidated : false,
  79. iso : false,
  80. parsedDateParts : [],
  81. meridiem : null,
  82. rfc2822 : false,
  83. weekdayMismatch : false
  84. };
  85. }
  86. function getParsingFlags(m) {
  87. if (m._pf == null) {
  88. m._pf = defaultParsingFlags();
  89. }
  90. return m._pf;
  91. }
  92. var some;
  93. if (Array.prototype.some) {
  94. some = Array.prototype.some;
  95. } else {
  96. some = function (fun) {
  97. var t = Object(this);
  98. var len = t.length >>> 0;
  99. for (var i = 0; i < len; i++) {
  100. if (i in t && fun.call(this, t[i], i, t)) {
  101. return true;
  102. }
  103. }
  104. return false;
  105. };
  106. }
  107. var some$1 = some;
  108. function isValid(m) {
  109. if (m._isValid == null) {
  110. var flags = getParsingFlags(m);
  111. var parsedParts = some$1.call(flags.parsedDateParts, function (i) {
  112. return i != null;
  113. });
  114. var isNowValid = !isNaN(m._d.getTime()) &&
  115. flags.overflow < 0 &&
  116. !flags.empty &&
  117. !flags.invalidMonth &&
  118. !flags.invalidWeekday &&
  119. !flags.nullInput &&
  120. !flags.invalidFormat &&
  121. !flags.userInvalidated &&
  122. (!flags.meridiem || (flags.meridiem && parsedParts));
  123. if (m._strict) {
  124. isNowValid = isNowValid &&
  125. flags.charsLeftOver === 0 &&
  126. flags.unusedTokens.length === 0 &&
  127. flags.bigHour === undefined;
  128. }
  129. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  130. m._isValid = isNowValid;
  131. }
  132. else {
  133. return isNowValid;
  134. }
  135. }
  136. return m._isValid;
  137. }
  138. function createInvalid (flags) {
  139. var m = createUTC(NaN);
  140. if (flags != null) {
  141. extend(getParsingFlags(m), flags);
  142. }
  143. else {
  144. getParsingFlags(m).userInvalidated = true;
  145. }
  146. return m;
  147. }
  148. // Plugins that add properties should also add the key here (null value),
  149. // so we can properly clone ourselves.
  150. var momentProperties = hooks.momentProperties = [];
  151. function copyConfig(to, from) {
  152. var i, prop, val;
  153. if (!isUndefined(from._isAMomentObject)) {
  154. to._isAMomentObject = from._isAMomentObject;
  155. }
  156. if (!isUndefined(from._i)) {
  157. to._i = from._i;
  158. }
  159. if (!isUndefined(from._f)) {
  160. to._f = from._f;
  161. }
  162. if (!isUndefined(from._l)) {
  163. to._l = from._l;
  164. }
  165. if (!isUndefined(from._strict)) {
  166. to._strict = from._strict;
  167. }
  168. if (!isUndefined(from._tzm)) {
  169. to._tzm = from._tzm;
  170. }
  171. if (!isUndefined(from._isUTC)) {
  172. to._isUTC = from._isUTC;
  173. }
  174. if (!isUndefined(from._offset)) {
  175. to._offset = from._offset;
  176. }
  177. if (!isUndefined(from._pf)) {
  178. to._pf = getParsingFlags(from);
  179. }
  180. if (!isUndefined(from._locale)) {
  181. to._locale = from._locale;
  182. }
  183. if (momentProperties.length > 0) {
  184. for (i = 0; i < momentProperties.length; i++) {
  185. prop = momentProperties[i];
  186. val = from[prop];
  187. if (!isUndefined(val)) {
  188. to[prop] = val;
  189. }
  190. }
  191. }
  192. return to;
  193. }
  194. var updateInProgress = false;
  195. // Moment prototype object
  196. function Moment(config) {
  197. copyConfig(this, config);
  198. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  199. if (!this.isValid()) {
  200. this._d = new Date(NaN);
  201. }
  202. // Prevent infinite loop in case updateOffset creates new moment
  203. // objects.
  204. if (updateInProgress === false) {
  205. updateInProgress = true;
  206. hooks.updateOffset(this);
  207. updateInProgress = false;
  208. }
  209. }
  210. function isMoment (obj) {
  211. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  212. }
  213. function absFloor (number) {
  214. if (number < 0) {
  215. // -0 -> 0
  216. return Math.ceil(number) || 0;
  217. } else {
  218. return Math.floor(number);
  219. }
  220. }
  221. function toInt(argumentForCoercion) {
  222. var coercedNumber = +argumentForCoercion,
  223. value = 0;
  224. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  225. value = absFloor(coercedNumber);
  226. }
  227. return value;
  228. }
  229. // compare two arrays, return the number of differences
  230. function compareArrays(array1, array2, dontConvert) {
  231. var len = Math.min(array1.length, array2.length),
  232. lengthDiff = Math.abs(array1.length - array2.length),
  233. diffs = 0,
  234. i;
  235. for (i = 0; i < len; i++) {
  236. if ((dontConvert && array1[i] !== array2[i]) ||
  237. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  238. diffs++;
  239. }
  240. }
  241. return diffs + lengthDiff;
  242. }
  243. function warn(msg) {
  244. if (hooks.suppressDeprecationWarnings === false &&
  245. (typeof console !== 'undefined') && console.warn) {
  246. console.warn('Deprecation warning: ' + msg);
  247. }
  248. }
  249. function deprecate(msg, fn) {
  250. var firstTime = true;
  251. return extend(function () {
  252. if (hooks.deprecationHandler != null) {
  253. hooks.deprecationHandler(null, msg);
  254. }
  255. if (firstTime) {
  256. var args = [];
  257. var arg;
  258. for (var i = 0; i < arguments.length; i++) {
  259. arg = '';
  260. if (typeof arguments[i] === 'object') {
  261. arg += '\n[' + i + '] ';
  262. for (var key in arguments[0]) {
  263. arg += key + ': ' + arguments[0][key] + ', ';
  264. }
  265. arg = arg.slice(0, -2); // Remove trailing comma and space
  266. } else {
  267. arg = arguments[i];
  268. }
  269. args.push(arg);
  270. }
  271. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
  272. firstTime = false;
  273. }
  274. return fn.apply(this, arguments);
  275. }, fn);
  276. }
  277. var deprecations = {};
  278. function deprecateSimple(name, msg) {
  279. if (hooks.deprecationHandler != null) {
  280. hooks.deprecationHandler(name, msg);
  281. }
  282. if (!deprecations[name]) {
  283. warn(msg);
  284. deprecations[name] = true;
  285. }
  286. }
  287. hooks.suppressDeprecationWarnings = false;
  288. hooks.deprecationHandler = null;
  289. function isFunction(input) {
  290. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  291. }
  292. function set (config) {
  293. var prop, i;
  294. for (i in config) {
  295. prop = config[i];
  296. if (isFunction(prop)) {
  297. this[i] = prop;
  298. } else {
  299. this['_' + i] = prop;
  300. }
  301. }
  302. this._config = config;
  303. // Lenient ordinal parsing accepts just a number in addition to
  304. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  305. // TODO: Remove "ordinalParse" fallback in next major release.
  306. this._dayOfMonthOrdinalParseLenient = new RegExp(
  307. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  308. '|' + (/\d{1,2}/).source);
  309. }
  310. function mergeConfigs(parentConfig, childConfig) {
  311. var res = extend({}, parentConfig), prop;
  312. for (prop in childConfig) {
  313. if (hasOwnProp(childConfig, prop)) {
  314. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  315. res[prop] = {};
  316. extend(res[prop], parentConfig[prop]);
  317. extend(res[prop], childConfig[prop]);
  318. } else if (childConfig[prop] != null) {
  319. res[prop] = childConfig[prop];
  320. } else {
  321. delete res[prop];
  322. }
  323. }
  324. }
  325. for (prop in parentConfig) {
  326. if (hasOwnProp(parentConfig, prop) &&
  327. !hasOwnProp(childConfig, prop) &&
  328. isObject(parentConfig[prop])) {
  329. // make sure changes to properties don't modify parent config
  330. res[prop] = extend({}, res[prop]);
  331. }
  332. }
  333. return res;
  334. }
  335. function Locale(config) {
  336. if (config != null) {
  337. this.set(config);
  338. }
  339. }
  340. var keys;
  341. if (Object.keys) {
  342. keys = Object.keys;
  343. } else {
  344. keys = function (obj) {
  345. var i, res = [];
  346. for (i in obj) {
  347. if (hasOwnProp(obj, i)) {
  348. res.push(i);
  349. }
  350. }
  351. return res;
  352. };
  353. }
  354. var keys$1 = keys;
  355. var defaultCalendar = {
  356. sameDay : '[Today at] LT',
  357. nextDay : '[Tomorrow at] LT',
  358. nextWeek : 'dddd [at] LT',
  359. lastDay : '[Yesterday at] LT',
  360. lastWeek : '[Last] dddd [at] LT',
  361. sameElse : 'L'
  362. };
  363. function calendar (key, mom, now) {
  364. var output = this._calendar[key] || this._calendar['sameElse'];
  365. return isFunction(output) ? output.call(mom, now) : output;
  366. }
  367. var defaultLongDateFormat = {
  368. LTS : 'h:mm:ss A',
  369. LT : 'h:mm A',
  370. L : 'MM/DD/YYYY',
  371. LL : 'MMMM D, YYYY',
  372. LLL : 'MMMM D, YYYY h:mm A',
  373. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  374. };
  375. function longDateFormat (key) {
  376. var format = this._longDateFormat[key],
  377. formatUpper = this._longDateFormat[key.toUpperCase()];
  378. if (format || !formatUpper) {
  379. return format;
  380. }
  381. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  382. return val.slice(1);
  383. });
  384. return this._longDateFormat[key];
  385. }
  386. var defaultInvalidDate = 'Invalid date';
  387. function invalidDate () {
  388. return this._invalidDate;
  389. }
  390. var defaultOrdinal = '%d';
  391. var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  392. function ordinal (number) {
  393. return this._ordinal.replace('%d', number);
  394. }
  395. var defaultRelativeTime = {
  396. future : 'in %s',
  397. past : '%s ago',
  398. s : 'a few seconds',
  399. ss : '%d seconds',
  400. m : 'a minute',
  401. mm : '%d minutes',
  402. h : 'an hour',
  403. hh : '%d hours',
  404. d : 'a day',
  405. dd : '%d days',
  406. M : 'a month',
  407. MM : '%d months',
  408. y : 'a year',
  409. yy : '%d years'
  410. };
  411. function relativeTime (number, withoutSuffix, string, isFuture) {
  412. var output = this._relativeTime[string];
  413. return (isFunction(output)) ?
  414. output(number, withoutSuffix, string, isFuture) :
  415. output.replace(/%d/i, number);
  416. }
  417. function pastFuture (diff, output) {
  418. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  419. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  420. }
  421. var aliases = {};
  422. function addUnitAlias (unit, shorthand) {
  423. var lowerCase = unit.toLowerCase();
  424. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  425. }
  426. function normalizeUnits(units) {
  427. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  428. }
  429. function normalizeObjectUnits(inputObject) {
  430. var normalizedInput = {},
  431. normalizedProp,
  432. prop;
  433. for (prop in inputObject) {
  434. if (hasOwnProp(inputObject, prop)) {
  435. normalizedProp = normalizeUnits(prop);
  436. if (normalizedProp) {
  437. normalizedInput[normalizedProp] = inputObject[prop];
  438. }
  439. }
  440. }
  441. return normalizedInput;
  442. }
  443. var priorities = {};
  444. function addUnitPriority(unit, priority) {
  445. priorities[unit] = priority;
  446. }
  447. function getPrioritizedUnits(unitsObj) {
  448. var units = [];
  449. for (var u in unitsObj) {
  450. units.push({unit: u, priority: priorities[u]});
  451. }
  452. units.sort(function (a, b) {
  453. return a.priority - b.priority;
  454. });
  455. return units;
  456. }
  457. function makeGetSet (unit, keepTime) {
  458. return function (value) {
  459. if (value != null) {
  460. set$1(this, unit, value);
  461. hooks.updateOffset(this, keepTime);
  462. return this;
  463. } else {
  464. return get(this, unit);
  465. }
  466. };
  467. }
  468. function get (mom, unit) {
  469. return mom.isValid() ?
  470. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  471. }
  472. function set$1 (mom, unit, value) {
  473. if (mom.isValid()) {
  474. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  475. }
  476. }
  477. // MOMENTS
  478. function stringGet (units) {
  479. units = normalizeUnits(units);
  480. if (isFunction(this[units])) {
  481. return this[units]();
  482. }
  483. return this;
  484. }
  485. function stringSet (units, value) {
  486. if (typeof units === 'object') {
  487. units = normalizeObjectUnits(units);
  488. var prioritized = getPrioritizedUnits(units);
  489. for (var i = 0; i < prioritized.length; i++) {
  490. this[prioritized[i].unit](units[prioritized[i].unit]);
  491. }
  492. } else {
  493. units = normalizeUnits(units);
  494. if (isFunction(this[units])) {
  495. return this[units](value);
  496. }
  497. }
  498. return this;
  499. }
  500. function zeroFill(number, targetLength, forceSign) {
  501. var absNumber = '' + Math.abs(number),
  502. zerosToFill = targetLength - absNumber.length,
  503. sign = number >= 0;
  504. return (sign ? (forceSign ? '+' : '') : '-') +
  505. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  506. }
  507. 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;
  508. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  509. var formatFunctions = {};
  510. var formatTokenFunctions = {};
  511. // token: 'M'
  512. // padded: ['MM', 2]
  513. // ordinal: 'Mo'
  514. // callback: function () { this.month() + 1 }
  515. function addFormatToken (token, padded, ordinal, callback) {
  516. var func = callback;
  517. if (typeof callback === 'string') {
  518. func = function () {
  519. return this[callback]();
  520. };
  521. }
  522. if (token) {
  523. formatTokenFunctions[token] = func;
  524. }
  525. if (padded) {
  526. formatTokenFunctions[padded[0]] = function () {
  527. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  528. };
  529. }
  530. if (ordinal) {
  531. formatTokenFunctions[ordinal] = function () {
  532. return this.localeData().ordinal(func.apply(this, arguments), token);
  533. };
  534. }
  535. }
  536. function removeFormattingTokens(input) {
  537. if (input.match(/\[[\s\S]/)) {
  538. return input.replace(/^\[|\]$/g, '');
  539. }
  540. return input.replace(/\\/g, '');
  541. }
  542. function makeFormatFunction(format) {
  543. var array = format.match(formattingTokens), i, length;
  544. for (i = 0, length = array.length; i < length; i++) {
  545. if (formatTokenFunctions[array[i]]) {
  546. array[i] = formatTokenFunctions[array[i]];
  547. } else {
  548. array[i] = removeFormattingTokens(array[i]);
  549. }
  550. }
  551. return function (mom) {
  552. var output = '', i;
  553. for (i = 0; i < length; i++) {
  554. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  555. }
  556. return output;
  557. };
  558. }
  559. // format date using native date object
  560. function formatMoment(m, format) {
  561. if (!m.isValid()) {
  562. return m.localeData().invalidDate();
  563. }
  564. format = expandFormat(format, m.localeData());
  565. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  566. return formatFunctions[format](m);
  567. }
  568. function expandFormat(format, locale) {
  569. var i = 5;
  570. function replaceLongDateFormatTokens(input) {
  571. return locale.longDateFormat(input) || input;
  572. }
  573. localFormattingTokens.lastIndex = 0;
  574. while (i >= 0 && localFormattingTokens.test(format)) {
  575. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  576. localFormattingTokens.lastIndex = 0;
  577. i -= 1;
  578. }
  579. return format;
  580. }
  581. var match1 = /\d/; // 0 - 9
  582. var match2 = /\d\d/; // 00 - 99
  583. var match3 = /\d{3}/; // 000 - 999
  584. var match4 = /\d{4}/; // 0000 - 9999
  585. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  586. var match1to2 = /\d\d?/; // 0 - 99
  587. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  588. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  589. var match1to3 = /\d{1,3}/; // 0 - 999
  590. var match1to4 = /\d{1,4}/; // 0 - 9999
  591. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  592. var matchUnsigned = /\d+/; // 0 - inf
  593. var matchSigned = /[+-]?\d+/; // -inf - inf
  594. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  595. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  596. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  597. // any word (or two) characters or numbers including two/three word month in arabic.
  598. // includes scottish gaelic two word and hyphenated months
  599. var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
  600. var regexes = {};
  601. function addRegexToken (token, regex, strictRegex) {
  602. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  603. return (isStrict && strictRegex) ? strictRegex : regex;
  604. };
  605. }
  606. function getParseRegexForToken (token, config) {
  607. if (!hasOwnProp(regexes, token)) {
  608. return new RegExp(unescapeFormat(token));
  609. }
  610. return regexes[token](config._strict, config._locale);
  611. }
  612. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  613. function unescapeFormat(s) {
  614. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  615. return p1 || p2 || p3 || p4;
  616. }));
  617. }
  618. function regexEscape(s) {
  619. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  620. }
  621. var tokens = {};
  622. function addParseToken (token, callback) {
  623. var i, func = callback;
  624. if (typeof token === 'string') {
  625. token = [token];
  626. }
  627. if (isNumber(callback)) {
  628. func = function (input, array) {
  629. array[callback] = toInt(input);
  630. };
  631. }
  632. for (i = 0; i < token.length; i++) {
  633. tokens[token[i]] = func;
  634. }
  635. }
  636. function addWeekParseToken (token, callback) {
  637. addParseToken(token, function (input, array, config, token) {
  638. config._w = config._w || {};
  639. callback(input, config._w, config, token);
  640. });
  641. }
  642. function addTimeToArrayFromToken(token, input, config) {
  643. if (input != null && hasOwnProp(tokens, token)) {
  644. tokens[token](input, config._a, config, token);
  645. }
  646. }
  647. var YEAR = 0;
  648. var MONTH = 1;
  649. var DATE = 2;
  650. var HOUR = 3;
  651. var MINUTE = 4;
  652. var SECOND = 5;
  653. var MILLISECOND = 6;
  654. var WEEK = 7;
  655. var WEEKDAY = 8;
  656. var indexOf;
  657. if (Array.prototype.indexOf) {
  658. indexOf = Array.prototype.indexOf;
  659. } else {
  660. indexOf = function (o) {
  661. // I know
  662. var i;
  663. for (i = 0; i < this.length; ++i) {
  664. if (this[i] === o) {
  665. return i;
  666. }
  667. }
  668. return -1;
  669. };
  670. }
  671. var indexOf$1 = indexOf;
  672. function daysInMonth(year, month) {
  673. return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
  674. }
  675. // FORMATTING
  676. addFormatToken('M', ['MM', 2], 'Mo', function () {
  677. return this.month() + 1;
  678. });
  679. addFormatToken('MMM', 0, 0, function (format) {
  680. return this.localeData().monthsShort(this, format);
  681. });
  682. addFormatToken('MMMM', 0, 0, function (format) {
  683. return this.localeData().months(this, format);
  684. });
  685. // ALIASES
  686. addUnitAlias('month', 'M');
  687. // PRIORITY
  688. addUnitPriority('month', 8);
  689. // PARSING
  690. addRegexToken('M', match1to2);
  691. addRegexToken('MM', match1to2, match2);
  692. addRegexToken('MMM', function (isStrict, locale) {
  693. return locale.monthsShortRegex(isStrict);
  694. });
  695. addRegexToken('MMMM', function (isStrict, locale) {
  696. return locale.monthsRegex(isStrict);
  697. });
  698. addParseToken(['M', 'MM'], function (input, array) {
  699. array[MONTH] = toInt(input) - 1;
  700. });
  701. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  702. var month = config._locale.monthsParse(input, token, config._strict);
  703. // if we didn't find a month name, mark the date as invalid.
  704. if (month != null) {
  705. array[MONTH] = month;
  706. } else {
  707. getParsingFlags(config).invalidMonth = input;
  708. }
  709. });
  710. // LOCALES
  711. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
  712. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  713. function localeMonths (m, format) {
  714. if (!m) {
  715. return isArray(this._months) ? this._months :
  716. this._months['standalone'];
  717. }
  718. return isArray(this._months) ? this._months[m.month()] :
  719. this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  720. }
  721. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  722. function localeMonthsShort (m, format) {
  723. if (!m) {
  724. return isArray(this._monthsShort) ? this._monthsShort :
  725. this._monthsShort['standalone'];
  726. }
  727. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  728. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  729. }
  730. function handleStrictParse(monthName, format, strict) {
  731. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  732. if (!this._monthsParse) {
  733. // this is not used
  734. this._monthsParse = [];
  735. this._longMonthsParse = [];
  736. this._shortMonthsParse = [];
  737. for (i = 0; i < 12; ++i) {
  738. mom = createUTC([2000, i]);
  739. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  740. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  741. }
  742. }
  743. if (strict) {
  744. if (format === 'MMM') {
  745. ii = indexOf$1.call(this._shortMonthsParse, llc);
  746. return ii !== -1 ? ii : null;
  747. } else {
  748. ii = indexOf$1.call(this._longMonthsParse, llc);
  749. return ii !== -1 ? ii : null;
  750. }
  751. } else {
  752. if (format === 'MMM') {
  753. ii = indexOf$1.call(this._shortMonthsParse, llc);
  754. if (ii !== -1) {
  755. return ii;
  756. }
  757. ii = indexOf$1.call(this._longMonthsParse, llc);
  758. return ii !== -1 ? ii : null;
  759. } else {
  760. ii = indexOf$1.call(this._longMonthsParse, llc);
  761. if (ii !== -1) {
  762. return ii;
  763. }
  764. ii = indexOf$1.call(this._shortMonthsParse, llc);
  765. return ii !== -1 ? ii : null;
  766. }
  767. }
  768. }
  769. function localeMonthsParse (monthName, format, strict) {
  770. var i, mom, regex;
  771. if (this._monthsParseExact) {
  772. return handleStrictParse.call(this, monthName, format, strict);
  773. }
  774. if (!this._monthsParse) {
  775. this._monthsParse = [];
  776. this._longMonthsParse = [];
  777. this._shortMonthsParse = [];
  778. }
  779. // TODO: add sorting
  780. // Sorting makes sure if one month (or abbr) is a prefix of another
  781. // see sorting in computeMonthsParse
  782. for (i = 0; i < 12; i++) {
  783. // make the regex if we don't have it already
  784. mom = createUTC([2000, i]);
  785. if (strict && !this._longMonthsParse[i]) {
  786. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  787. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  788. }
  789. if (!strict && !this._monthsParse[i]) {
  790. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  791. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  792. }
  793. // test the regex
  794. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  795. return i;
  796. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  797. return i;
  798. } else if (!strict && this._monthsParse[i].test(monthName)) {
  799. return i;
  800. }
  801. }
  802. }
  803. // MOMENTS
  804. function setMonth (mom, value) {
  805. var dayOfMonth;
  806. if (!mom.isValid()) {
  807. // No op
  808. return mom;
  809. }
  810. if (typeof value === 'string') {
  811. if (/^\d+$/.test(value)) {
  812. value = toInt(value);
  813. } else {
  814. value = mom.localeData().monthsParse(value);
  815. // TODO: Another silent failure?
  816. if (!isNumber(value)) {
  817. return mom;
  818. }
  819. }
  820. }
  821. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  822. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  823. return mom;
  824. }
  825. function getSetMonth (value) {
  826. if (value != null) {
  827. setMonth(this, value);
  828. hooks.updateOffset(this, true);
  829. return this;
  830. } else {
  831. return get(this, 'Month');
  832. }
  833. }
  834. function getDaysInMonth () {
  835. return daysInMonth(this.year(), this.month());
  836. }
  837. var defaultMonthsShortRegex = matchWord;
  838. function monthsShortRegex (isStrict) {
  839. if (this._monthsParseExact) {
  840. if (!hasOwnProp(this, '_monthsRegex')) {
  841. computeMonthsParse.call(this);
  842. }
  843. if (isStrict) {
  844. return this._monthsShortStrictRegex;
  845. } else {
  846. return this._monthsShortRegex;
  847. }
  848. } else {
  849. if (!hasOwnProp(this, '_monthsShortRegex')) {
  850. this._monthsShortRegex = defaultMonthsShortRegex;
  851. }
  852. return this._monthsShortStrictRegex && isStrict ?
  853. this._monthsShortStrictRegex : this._monthsShortRegex;
  854. }
  855. }
  856. var defaultMonthsRegex = matchWord;
  857. function monthsRegex (isStrict) {
  858. if (this._monthsParseExact) {
  859. if (!hasOwnProp(this, '_monthsRegex')) {
  860. computeMonthsParse.call(this);
  861. }
  862. if (isStrict) {
  863. return this._monthsStrictRegex;
  864. } else {
  865. return this._monthsRegex;
  866. }
  867. } else {
  868. if (!hasOwnProp(this, '_monthsRegex')) {
  869. this._monthsRegex = defaultMonthsRegex;
  870. }
  871. return this._monthsStrictRegex && isStrict ?
  872. this._monthsStrictRegex : this._monthsRegex;
  873. }
  874. }
  875. function computeMonthsParse () {
  876. function cmpLenRev(a, b) {
  877. return b.length - a.length;
  878. }
  879. var shortPieces = [], longPieces = [], mixedPieces = [],
  880. i, mom;
  881. for (i = 0; i < 12; i++) {
  882. // make the regex if we don't have it already
  883. mom = createUTC([2000, i]);
  884. shortPieces.push(this.monthsShort(mom, ''));
  885. longPieces.push(this.months(mom, ''));
  886. mixedPieces.push(this.months(mom, ''));
  887. mixedPieces.push(this.monthsShort(mom, ''));
  888. }
  889. // Sorting makes sure if one month (or abbr) is a prefix of another it
  890. // will match the longer piece.
  891. shortPieces.sort(cmpLenRev);
  892. longPieces.sort(cmpLenRev);
  893. mixedPieces.sort(cmpLenRev);
  894. for (i = 0; i < 12; i++) {
  895. shortPieces[i] = regexEscape(shortPieces[i]);
  896. longPieces[i] = regexEscape(longPieces[i]);
  897. }
  898. for (i = 0; i < 24; i++) {
  899. mixedPieces[i] = regexEscape(mixedPieces[i]);
  900. }
  901. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  902. this._monthsShortRegex = this._monthsRegex;
  903. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  904. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  905. }
  906. // FORMATTING
  907. addFormatToken('Y', 0, 0, function () {
  908. var y = this.year();
  909. return y <= 9999 ? '' + y : '+' + y;
  910. });
  911. addFormatToken(0, ['YY', 2], 0, function () {
  912. return this.year() % 100;
  913. });
  914. addFormatToken(0, ['YYYY', 4], 0, 'year');
  915. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  916. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  917. // ALIASES
  918. addUnitAlias('year', 'y');
  919. // PRIORITIES
  920. addUnitPriority('year', 1);
  921. // PARSING
  922. addRegexToken('Y', matchSigned);
  923. addRegexToken('YY', match1to2, match2);
  924. addRegexToken('YYYY', match1to4, match4);
  925. addRegexToken('YYYYY', match1to6, match6);
  926. addRegexToken('YYYYYY', match1to6, match6);
  927. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  928. addParseToken('YYYY', function (input, array) {
  929. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  930. });
  931. addParseToken('YY', function (input, array) {
  932. array[YEAR] = hooks.parseTwoDigitYear(input);
  933. });
  934. addParseToken('Y', function (input, array) {
  935. array[YEAR] = parseInt(input, 10);
  936. });
  937. // HELPERS
  938. function daysInYear(year) {
  939. return isLeapYear(year) ? 366 : 365;
  940. }
  941. function isLeapYear(year) {
  942. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  943. }
  944. // HOOKS
  945. hooks.parseTwoDigitYear = function (input) {
  946. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  947. };
  948. // MOMENTS
  949. var getSetYear = makeGetSet('FullYear', true);
  950. function getIsLeapYear () {
  951. return isLeapYear(this.year());
  952. }
  953. function createDate (y, m, d, h, M, s, ms) {
  954. // can't just apply() to create a date:
  955. // https://stackoverflow.com/q/181348
  956. var date = new Date(y, m, d, h, M, s, ms);
  957. // the date constructor remaps years 0-99 to 1900-1999
  958. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  959. date.setFullYear(y);
  960. }
  961. return date;
  962. }
  963. function createUTCDate (y) {
  964. var date = new Date(Date.UTC.apply(null, arguments));
  965. // the Date.UTC function remaps years 0-99 to 1900-1999
  966. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  967. date.setUTCFullYear(y);
  968. }
  969. return date;
  970. }
  971. // start-of-first-week - start-of-year
  972. function firstWeekOffset(year, dow, doy) {
  973. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  974. fwd = 7 + dow - doy,
  975. // first-week day local weekday -- which local weekday is fwd
  976. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  977. return -fwdlw + fwd - 1;
  978. }
  979. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  980. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  981. var localWeekday = (7 + weekday - dow) % 7,
  982. weekOffset = firstWeekOffset(year, dow, doy),
  983. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  984. resYear, resDayOfYear;
  985. if (dayOfYear <= 0) {
  986. resYear = year - 1;
  987. resDayOfYear = daysInYear(resYear) + dayOfYear;
  988. } else if (dayOfYear > daysInYear(year)) {
  989. resYear = year + 1;
  990. resDayOfYear = dayOfYear - daysInYear(year);
  991. } else {
  992. resYear = year;
  993. resDayOfYear = dayOfYear;
  994. }
  995. return {
  996. year: resYear,
  997. dayOfYear: resDayOfYear
  998. };
  999. }
  1000. function weekOfYear(mom, dow, doy) {
  1001. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1002. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1003. resWeek, resYear;
  1004. if (week < 1) {
  1005. resYear = mom.year() - 1;
  1006. resWeek = week + weeksInYear(resYear, dow, doy);
  1007. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1008. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1009. resYear = mom.year() + 1;
  1010. } else {
  1011. resYear = mom.year();
  1012. resWeek = week;
  1013. }
  1014. return {
  1015. week: resWeek,
  1016. year: resYear
  1017. };
  1018. }
  1019. function weeksInYear(year, dow, doy) {
  1020. var weekOffset = firstWeekOffset(year, dow, doy),
  1021. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1022. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1023. }
  1024. // FORMATTING
  1025. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1026. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1027. // ALIASES
  1028. addUnitAlias('week', 'w');
  1029. addUnitAlias('isoWeek', 'W');
  1030. // PRIORITIES
  1031. addUnitPriority('week', 5);
  1032. addUnitPriority('isoWeek', 5);
  1033. // PARSING
  1034. addRegexToken('w', match1to2);
  1035. addRegexToken('ww', match1to2, match2);
  1036. addRegexToken('W', match1to2);
  1037. addRegexToken('WW', match1to2, match2);
  1038. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  1039. week[token.substr(0, 1)] = toInt(input);
  1040. });
  1041. // HELPERS
  1042. // LOCALES
  1043. function localeWeek (mom) {
  1044. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1045. }
  1046. var defaultLocaleWeek = {
  1047. dow : 0, // Sunday is the first day of the week.
  1048. doy : 6 // The week that contains Jan 1st is the first week of the year.
  1049. };
  1050. function localeFirstDayOfWeek () {
  1051. return this._week.dow;
  1052. }
  1053. function localeFirstDayOfYear () {
  1054. return this._week.doy;
  1055. }
  1056. // MOMENTS
  1057. function getSetWeek (input) {
  1058. var week = this.localeData().week(this);
  1059. return input == null ? week : this.add((input - week) * 7, 'd');
  1060. }
  1061. function getSetISOWeek (input) {
  1062. var week = weekOfYear(this, 1, 4).week;
  1063. return input == null ? week : this.add((input - week) * 7, 'd');
  1064. }
  1065. // FORMATTING
  1066. addFormatToken('d', 0, 'do', 'day');
  1067. addFormatToken('dd', 0, 0, function (format) {
  1068. return this.localeData().weekdaysMin(this, format);
  1069. });
  1070. addFormatToken('ddd', 0, 0, function (format) {
  1071. return this.localeData().weekdaysShort(this, format);
  1072. });
  1073. addFormatToken('dddd', 0, 0, function (format) {
  1074. return this.localeData().weekdays(this, format);
  1075. });
  1076. addFormatToken('e', 0, 0, 'weekday');
  1077. addFormatToken('E', 0, 0, 'isoWeekday');
  1078. // ALIASES
  1079. addUnitAlias('day', 'd');
  1080. addUnitAlias('weekday', 'e');
  1081. addUnitAlias('isoWeekday', 'E');
  1082. // PRIORITY
  1083. addUnitPriority('day', 11);
  1084. addUnitPriority('weekday', 11);
  1085. addUnitPriority('isoWeekday', 11);
  1086. // PARSING
  1087. addRegexToken('d', match1to2);
  1088. addRegexToken('e', match1to2);
  1089. addRegexToken('E', match1to2);
  1090. addRegexToken('dd', function (isStrict, locale) {
  1091. return locale.weekdaysMinRegex(isStrict);
  1092. });
  1093. addRegexToken('ddd', function (isStrict, locale) {
  1094. return locale.weekdaysShortRegex(isStrict);
  1095. });
  1096. addRegexToken('dddd', function (isStrict, locale) {
  1097. return locale.weekdaysRegex(isStrict);
  1098. });
  1099. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1100. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1101. // if we didn't get a weekday name, mark the date as invalid
  1102. if (weekday != null) {
  1103. week.d = weekday;
  1104. } else {
  1105. getParsingFlags(config).invalidWeekday = input;
  1106. }
  1107. });
  1108. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1109. week[token] = toInt(input);
  1110. });
  1111. // HELPERS
  1112. function parseWeekday(input, locale) {
  1113. if (typeof input !== 'string') {
  1114. return input;
  1115. }
  1116. if (!isNaN(input)) {
  1117. return parseInt(input, 10);
  1118. }
  1119. input = locale.weekdaysParse(input);
  1120. if (typeof input === 'number') {
  1121. return input;
  1122. }
  1123. return null;
  1124. }
  1125. function parseIsoWeekday(input, locale) {
  1126. if (typeof input === 'string') {
  1127. return locale.weekdaysParse(input) % 7 || 7;
  1128. }
  1129. return isNaN(input) ? null : input;
  1130. }
  1131. // LOCALES
  1132. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  1133. function localeWeekdays (m, format) {
  1134. if (!m) {
  1135. return isArray(this._weekdays) ? this._weekdays :
  1136. this._weekdays['standalone'];
  1137. }
  1138. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  1139. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  1140. }
  1141. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  1142. function localeWeekdaysShort (m) {
  1143. return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  1144. }
  1145. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  1146. function localeWeekdaysMin (m) {
  1147. return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  1148. }
  1149. function handleStrictParse$1(weekdayName, format, strict) {
  1150. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  1151. if (!this._weekdaysParse) {
  1152. this._weekdaysParse = [];
  1153. this._shortWeekdaysParse = [];
  1154. this._minWeekdaysParse = [];
  1155. for (i = 0; i < 7; ++i) {
  1156. mom = createUTC([2000, 1]).day(i);
  1157. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  1158. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  1159. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1160. }
  1161. }
  1162. if (strict) {
  1163. if (format === 'dddd') {
  1164. ii = indexOf$1.call(this._weekdaysParse, llc);
  1165. return ii !== -1 ? ii : null;
  1166. } else if (format === 'ddd') {
  1167. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1168. return ii !== -1 ? ii : null;
  1169. } else {
  1170. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1171. return ii !== -1 ? ii : null;
  1172. }
  1173. } else {
  1174. if (format === 'dddd') {
  1175. ii = indexOf$1.call(this._weekdaysParse, llc);
  1176. if (ii !== -1) {
  1177. return ii;
  1178. }
  1179. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1180. if (ii !== -1) {
  1181. return ii;
  1182. }
  1183. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1184. return ii !== -1 ? ii : null;
  1185. } else if (format === 'ddd') {
  1186. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1187. if (ii !== -1) {
  1188. return ii;
  1189. }
  1190. ii = indexOf$1.call(this._weekdaysParse, llc);
  1191. if (ii !== -1) {
  1192. return ii;
  1193. }
  1194. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1195. return ii !== -1 ? ii : null;
  1196. } else {
  1197. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1198. if (ii !== -1) {
  1199. return ii;
  1200. }
  1201. ii = indexOf$1.call(this._weekdaysParse, llc);
  1202. if (ii !== -1) {
  1203. return ii;
  1204. }
  1205. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1206. return ii !== -1 ? ii : null;
  1207. }
  1208. }
  1209. }
  1210. function localeWeekdaysParse (weekdayName, format, strict) {
  1211. var i, mom, regex;
  1212. if (this._weekdaysParseExact) {
  1213. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1214. }
  1215. if (!this._weekdaysParse) {
  1216. this._weekdaysParse = [];
  1217. this._minWeekdaysParse = [];
  1218. this._shortWeekdaysParse = [];
  1219. this._fullWeekdaysParse = [];
  1220. }
  1221. for (i = 0; i < 7; i++) {
  1222. // make the regex if we don't have it already
  1223. mom = createUTC([2000, 1]).day(i);
  1224. if (strict && !this._fullWeekdaysParse[i]) {
  1225. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  1226. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  1227. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  1228. }
  1229. if (!this._weekdaysParse[i]) {
  1230. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  1231. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1232. }
  1233. // test the regex
  1234. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  1235. return i;
  1236. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  1237. return i;
  1238. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  1239. return i;
  1240. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1241. return i;
  1242. }
  1243. }
  1244. }
  1245. // MOMENTS
  1246. function getSetDayOfWeek (input) {
  1247. if (!this.isValid()) {
  1248. return input != null ? this : NaN;
  1249. }
  1250. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1251. if (input != null) {
  1252. input = parseWeekday(input, this.localeData());
  1253. return this.add(input - day, 'd');
  1254. } else {
  1255. return day;
  1256. }
  1257. }
  1258. function getSetLocaleDayOfWeek (input) {
  1259. if (!this.isValid()) {
  1260. return input != null ? this : NaN;
  1261. }
  1262. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1263. return input == null ? weekday : this.add(input - weekday, 'd');
  1264. }
  1265. function getSetISODayOfWeek (input) {
  1266. if (!this.isValid()) {
  1267. return input != null ? this : NaN;
  1268. }
  1269. // behaves the same as moment#day except
  1270. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1271. // as a setter, sunday should belong to the previous week.
  1272. if (input != null) {
  1273. var weekday = parseIsoWeekday(input, this.localeData());
  1274. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1275. } else {
  1276. return this.day() || 7;
  1277. }
  1278. }
  1279. var defaultWeekdaysRegex = matchWord;
  1280. function weekdaysRegex (isStrict) {
  1281. if (this._weekdaysParseExact) {
  1282. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1283. computeWeekdaysParse.call(this);
  1284. }
  1285. if (isStrict) {
  1286. return this._weekdaysStrictRegex;
  1287. } else {
  1288. return this._weekdaysRegex;
  1289. }
  1290. } else {
  1291. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1292. this._weekdaysRegex = defaultWeekdaysRegex;
  1293. }
  1294. return this._weekdaysStrictRegex && isStrict ?
  1295. this._weekdaysStrictRegex : this._weekdaysRegex;
  1296. }
  1297. }
  1298. var defaultWeekdaysShortRegex = matchWord;
  1299. function weekdaysShortRegex (isStrict) {
  1300. if (this._weekdaysParseExact) {
  1301. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1302. computeWeekdaysParse.call(this);
  1303. }
  1304. if (isStrict) {
  1305. return this._weekdaysShortStrictRegex;
  1306. } else {
  1307. return this._weekdaysShortRegex;
  1308. }
  1309. } else {
  1310. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1311. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1312. }
  1313. return this._weekdaysShortStrictRegex && isStrict ?
  1314. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  1315. }
  1316. }
  1317. var defaultWeekdaysMinRegex = matchWord;
  1318. function weekdaysMinRegex (isStrict) {
  1319. if (this._weekdaysParseExact) {
  1320. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1321. computeWeekdaysParse.call(this);
  1322. }
  1323. if (isStrict) {
  1324. return this._weekdaysMinStrictRegex;
  1325. } else {
  1326. return this._weekdaysMinRegex;
  1327. }
  1328. } else {
  1329. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1330. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1331. }
  1332. return this._weekdaysMinStrictRegex && isStrict ?
  1333. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  1334. }
  1335. }
  1336. function computeWeekdaysParse () {
  1337. function cmpLenRev(a, b) {
  1338. return b.length - a.length;
  1339. }
  1340. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  1341. i, mom, minp, shortp, longp;
  1342. for (i = 0; i < 7; i++) {
  1343. // make the regex if we don't have it already
  1344. mom = createUTC([2000, 1]).day(i);
  1345. minp = this.weekdaysMin(mom, '');
  1346. shortp = this.weekdaysShort(mom, '');
  1347. longp = this.weekdays(mom, '');
  1348. minPieces.push(minp);
  1349. shortPieces.push(shortp);
  1350. longPieces.push(longp);
  1351. mixedPieces.push(minp);
  1352. mixedPieces.push(shortp);
  1353. mixedPieces.push(longp);
  1354. }
  1355. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1356. // will match the longer piece.
  1357. minPieces.sort(cmpLenRev);
  1358. shortPieces.sort(cmpLenRev);
  1359. longPieces.sort(cmpLenRev);
  1360. mixedPieces.sort(cmpLenRev);
  1361. for (i = 0; i < 7; i++) {
  1362. shortPieces[i] = regexEscape(shortPieces[i]);
  1363. longPieces[i] = regexEscape(longPieces[i]);
  1364. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1365. }
  1366. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1367. this._weekdaysShortRegex = this._weekdaysRegex;
  1368. this._weekdaysMinRegex = this._weekdaysRegex;
  1369. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  1370. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  1371. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  1372. }
  1373. // FORMATTING
  1374. function hFormat() {
  1375. return this.hours() % 12 || 12;
  1376. }
  1377. function kFormat() {
  1378. return this.hours() || 24;
  1379. }
  1380. addFormatToken('H', ['HH', 2], 0, 'hour');
  1381. addFormatToken('h', ['hh', 2], 0, hFormat);
  1382. addFormatToken('k', ['kk', 2], 0, kFormat);
  1383. addFormatToken('hmm', 0, 0, function () {
  1384. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1385. });
  1386. addFormatToken('hmmss', 0, 0, function () {
  1387. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  1388. zeroFill(this.seconds(), 2);
  1389. });
  1390. addFormatToken('Hmm', 0, 0, function () {
  1391. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1392. });
  1393. addFormatToken('Hmmss', 0, 0, function () {
  1394. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  1395. zeroFill(this.seconds(), 2);
  1396. });
  1397. function meridiem (token, lowercase) {
  1398. addFormatToken(token, 0, 0, function () {
  1399. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  1400. });
  1401. }
  1402. meridiem('a', true);
  1403. meridiem('A', false);
  1404. // ALIASES
  1405. addUnitAlias('hour', 'h');
  1406. // PRIORITY
  1407. addUnitPriority('hour', 13);
  1408. // PARSING
  1409. function matchMeridiem (isStrict, locale) {
  1410. return locale._meridiemParse;
  1411. }
  1412. addRegexToken('a', matchMeridiem);
  1413. addRegexToken('A', matchMeridiem);
  1414. addRegexToken('H', match1to2);
  1415. addRegexToken('h', match1to2);
  1416. addRegexToken('k', match1to2);
  1417. addRegexToken('HH', match1to2, match2);
  1418. addRegexToken('hh', match1to2, match2);
  1419. addRegexToken('kk', match1to2, match2);
  1420. addRegexToken('hmm', match3to4);
  1421. addRegexToken('hmmss', match5to6);
  1422. addRegexToken('Hmm', match3to4);
  1423. addRegexToken('Hmmss', match5to6);
  1424. addParseToken(['H', 'HH'], HOUR);
  1425. addParseToken(['k', 'kk'], function (input, array, config) {
  1426. var kInput = toInt(input);
  1427. array[HOUR] = kInput === 24 ? 0 : kInput;
  1428. });
  1429. addParseToken(['a', 'A'], function (input, array, config) {
  1430. config._isPm = config._locale.isPM(input);
  1431. config._meridiem = input;
  1432. });
  1433. addParseToken(['h', 'hh'], function (input, array, config) {
  1434. array[HOUR] = toInt(input);
  1435. getParsingFlags(config).bigHour = true;
  1436. });
  1437. addParseToken('hmm', function (input, array, config) {
  1438. var pos = input.length - 2;
  1439. array[HOUR] = toInt(input.substr(0, pos));
  1440. array[MINUTE] = toInt(input.substr(pos));
  1441. getParsingFlags(config).bigHour = true;
  1442. });
  1443. addParseToken('hmmss', function (input, array, config) {
  1444. var pos1 = input.length - 4;
  1445. var pos2 = input.length - 2;
  1446. array[HOUR] = toInt(input.substr(0, pos1));
  1447. array[MINUTE] = toInt(input.substr(pos1, 2));
  1448. array[SECOND] = toInt(input.substr(pos2));
  1449. getParsingFlags(config).bigHour = true;
  1450. });
  1451. addParseToken('Hmm', function (input, array, config) {
  1452. var pos = input.length - 2;
  1453. array[HOUR] = toInt(input.substr(0, pos));
  1454. array[MINUTE] = toInt(input.substr(pos));
  1455. });
  1456. addParseToken('Hmmss', function (input, array, config) {
  1457. var pos1 = input.length - 4;
  1458. var pos2 = input.length - 2;
  1459. array[HOUR] = toInt(input.substr(0, pos1));
  1460. array[MINUTE] = toInt(input.substr(pos1, 2));
  1461. array[SECOND] = toInt(input.substr(pos2));
  1462. });
  1463. // LOCALES
  1464. function localeIsPM (input) {
  1465. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1466. // Using charAt should be more compatible.
  1467. return ((input + '').toLowerCase().charAt(0) === 'p');
  1468. }
  1469. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  1470. function localeMeridiem (hours, minutes, isLower) {
  1471. if (hours > 11) {
  1472. return isLower ? 'pm' : 'PM';
  1473. } else {
  1474. return isLower ? 'am' : 'AM';
  1475. }
  1476. }
  1477. // MOMENTS
  1478. // Setting the hour should keep the time, because the user explicitly
  1479. // specified which hour he wants. So trying to maintain the same hour (in
  1480. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1481. // this rule.
  1482. var getSetHour = makeGetSet('Hours', true);
  1483. // months
  1484. // week
  1485. // weekdays
  1486. // meridiem
  1487. var baseConfig = {
  1488. calendar: defaultCalendar,
  1489. longDateFormat: defaultLongDateFormat,
  1490. invalidDate: defaultInvalidDate,
  1491. ordinal: defaultOrdinal,
  1492. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1493. relativeTime: defaultRelativeTime,
  1494. months: defaultLocaleMonths,
  1495. monthsShort: defaultLocaleMonthsShort,
  1496. week: defaultLocaleWeek,
  1497. weekdays: defaultLocaleWeekdays,
  1498. weekdaysMin: defaultLocaleWeekdaysMin,
  1499. weekdaysShort: defaultLocaleWeekdaysShort,
  1500. meridiemParse: defaultLocaleMeridiemParse
  1501. };
  1502. // internal storage for locale config files
  1503. var locales = {};
  1504. var localeFamilies = {};
  1505. var globalLocale;
  1506. function normalizeLocale(key) {
  1507. return key ? key.toLowerCase().replace('_', '-') : key;
  1508. }
  1509. // pick the locale from the array
  1510. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1511. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1512. function chooseLocale(names) {
  1513. var i = 0, j, next, locale, split;
  1514. while (i < names.length) {
  1515. split = normalizeLocale(names[i]).split('-');
  1516. j = split.length;
  1517. next = normalizeLocale(names[i + 1]);
  1518. next = next ? next.split('-') : null;
  1519. while (j > 0) {
  1520. locale = loadLocale(split.slice(0, j).join('-'));
  1521. if (locale) {
  1522. return locale;
  1523. }
  1524. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  1525. //the next array item is better than a shallower substring of this one
  1526. break;
  1527. }
  1528. j--;
  1529. }
  1530. i++;
  1531. }
  1532. return null;
  1533. }
  1534. function loadLocale(name) {
  1535. var oldLocale = null;
  1536. // TODO: Find a better way to register and load all the locales in Node
  1537. if (!locales[name] && (typeof module !== 'undefined') &&
  1538. module && module.exports) {
  1539. try {
  1540. oldLocale = globalLocale._abbr;
  1541. require('./locale/' + name);
  1542. // because defineLocale currently also sets the global locale, we
  1543. // want to undo that for lazy loaded locales
  1544. getSetGlobalLocale(oldLocale);
  1545. } catch (e) { }
  1546. }
  1547. return locales[name];
  1548. }
  1549. // This function will load locale and then set the global locale. If
  1550. // no arguments are passed in, it will simply return the current global
  1551. // locale key.
  1552. function getSetGlobalLocale (key, values) {
  1553. var data;
  1554. if (key) {
  1555. if (isUndefined(values)) {
  1556. data = getLocale(key);
  1557. }
  1558. else {
  1559. data = defineLocale(key, values);
  1560. }
  1561. if (data) {
  1562. // moment.duration._locale = moment._locale = data;
  1563. globalLocale = data;
  1564. }
  1565. }
  1566. return globalLocale._abbr;
  1567. }
  1568. function defineLocale (name, config) {
  1569. if (config !== null) {
  1570. var parentConfig = baseConfig;
  1571. config.abbr = name;
  1572. if (locales[name] != null) {
  1573. deprecateSimple('defineLocaleOverride',
  1574. 'use moment.updateLocale(localeName, config) to change ' +
  1575. 'an existing locale. moment.defineLocale(localeName, ' +
  1576. 'config) should only be used for creating a new locale ' +
  1577. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  1578. parentConfig = locales[name]._config;
  1579. } else if (config.parentLocale != null) {
  1580. if (locales[config.parentLocale] != null) {
  1581. parentConfig = locales[config.parentLocale]._config;
  1582. } else {
  1583. if (!localeFamilies[config.parentLocale]) {
  1584. localeFamilies[config.parentLocale] = [];
  1585. }
  1586. localeFamilies[config.parentLocale].push({
  1587. name: name,
  1588. config: config
  1589. });
  1590. return null;
  1591. }
  1592. }
  1593. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1594. if (localeFamilies[name]) {
  1595. localeFamilies[name].forEach(function (x) {
  1596. defineLocale(x.name, x.config);
  1597. });
  1598. }
  1599. // backwards compat for now: also set the locale
  1600. // make sure we set the locale AFTER all child locales have been
  1601. // created, so we won't end up with the child locale set.
  1602. getSetGlobalLocale(name);
  1603. return locales[name];
  1604. } else {
  1605. // useful for testing
  1606. delete locales[name];
  1607. return null;
  1608. }
  1609. }
  1610. function updateLocale(name, config) {
  1611. if (config != null) {
  1612. var locale, parentConfig = baseConfig;
  1613. // MERGE
  1614. if (locales[name] != null) {
  1615. parentConfig = locales[name]._config;
  1616. }
  1617. config = mergeConfigs(parentConfig, config);
  1618. locale = new Locale(config);
  1619. locale.parentLocale = locales[name];
  1620. locales[name] = locale;
  1621. // backwards compat for now: also set the locale
  1622. getSetGlobalLocale(name);
  1623. } else {
  1624. // pass null for config to unupdate, useful for tests
  1625. if (locales[name] != null) {
  1626. if (locales[name].parentLocale != null) {
  1627. locales[name] = locales[name].parentLocale;
  1628. } else if (locales[name] != null) {
  1629. delete locales[name];
  1630. }
  1631. }
  1632. }
  1633. return locales[name];
  1634. }
  1635. // returns locale data
  1636. function getLocale (key) {
  1637. var locale;
  1638. if (key && key._locale && key._locale._abbr) {
  1639. key = key._locale._abbr;
  1640. }
  1641. if (!key) {
  1642. return globalLocale;
  1643. }
  1644. if (!isArray(key)) {
  1645. //short-circuit everything else
  1646. locale = loadLocale(key);
  1647. if (locale) {
  1648. return locale;
  1649. }
  1650. key = [key];
  1651. }
  1652. return chooseLocale(key);
  1653. }
  1654. function listLocales() {
  1655. return keys$1(locales);
  1656. }
  1657. function checkOverflow (m) {
  1658. var overflow;
  1659. var a = m._a;
  1660. if (a && getParsingFlags(m).overflow === -2) {
  1661. overflow =
  1662. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  1663. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  1664. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  1665. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  1666. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  1667. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  1668. -1;
  1669. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  1670. overflow = DATE;
  1671. }
  1672. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1673. overflow = WEEK;
  1674. }
  1675. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1676. overflow = WEEKDAY;
  1677. }
  1678. getParsingFlags(m).overflow = overflow;
  1679. }
  1680. return m;
  1681. }
  1682. // iso 8601 regex
  1683. // 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)
  1684. 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)?)?$/;
  1685. 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)?)?$/;
  1686. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  1687. var isoDates = [
  1688. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  1689. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  1690. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  1691. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  1692. ['YYYY-DDD', /\d{4}-\d{3}/],
  1693. ['YYYY-MM', /\d{4}-\d\d/, false],
  1694. ['YYYYYYMMDD', /[+-]\d{10}/],
  1695. ['YYYYMMDD', /\d{8}/],
  1696. // YYYYMM is NOT allowed by the standard
  1697. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  1698. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  1699. ['YYYYDDD', /\d{7}/]
  1700. ];
  1701. // iso time formats and regexes
  1702. var isoTimes = [
  1703. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  1704. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  1705. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  1706. ['HH:mm', /\d\d:\d\d/],
  1707. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  1708. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  1709. ['HHmmss', /\d\d\d\d\d\d/],
  1710. ['HHmm', /\d\d\d\d/],
  1711. ['HH', /\d\d/]
  1712. ];
  1713. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  1714. // date from iso format
  1715. function configFromISO(config) {
  1716. var i, l,
  1717. string = config._i,
  1718. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  1719. allowTime, dateFormat, timeFormat, tzFormat;
  1720. if (match) {
  1721. getParsingFlags(config).iso = true;
  1722. for (i = 0, l = isoDates.length; i < l; i++) {
  1723. if (isoDates[i][1].exec(match[1])) {
  1724. dateFormat = isoDates[i][0];
  1725. allowTime = isoDates[i][2] !== false;
  1726. break;
  1727. }
  1728. }
  1729. if (dateFormat == null) {
  1730. config._isValid = false;
  1731. return;
  1732. }
  1733. if (match[3]) {
  1734. for (i = 0, l = isoTimes.length; i < l; i++) {
  1735. if (isoTimes[i][1].exec(match[3])) {
  1736. // match[2] should be 'T' or space
  1737. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  1738. break;
  1739. }
  1740. }
  1741. if (timeFormat == null) {
  1742. config._isValid = false;
  1743. return;
  1744. }
  1745. }
  1746. if (!allowTime && timeFormat != null) {
  1747. config._isValid = false;
  1748. return;
  1749. }
  1750. if (match[4]) {
  1751. if (tzRegex.exec(match[4])) {
  1752. tzFormat = 'Z';
  1753. } else {
  1754. config._isValid = false;
  1755. return;
  1756. }
  1757. }
  1758. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  1759. configFromStringAndFormat(config);
  1760. } else {
  1761. config._isValid = false;
  1762. }
  1763. }
  1764. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  1765. var basicRfcRegex = /^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;
  1766. // date and time from ref 2822 format
  1767. function configFromRFC2822(config) {
  1768. var string, match, dayFormat,
  1769. dateFormat, timeFormat, tzFormat;
  1770. var timezones = {
  1771. ' GMT': ' +0000',
  1772. ' EDT': ' -0400',
  1773. ' EST': ' -0500',
  1774. ' CDT': ' -0500',
  1775. ' CST': ' -0600',
  1776. ' MDT': ' -0600',
  1777. ' MST': ' -0700',
  1778. ' PDT': ' -0700',
  1779. ' PST': ' -0800'
  1780. };
  1781. var military = 'YXWVUTSRQPONZABCDEFGHIKLM';
  1782. var timezone, timezoneIndex;
  1783. string = config._i
  1784. .replace(/\([^\)]*\)|[\n\t]/g, ' ') // Remove comments and folding whitespace
  1785. .replace(/(\s\s+)/g, ' ') // Replace multiple-spaces with a single space
  1786. .replace(/^\s|\s$/g, ''); // Remove leading and trailing spaces
  1787. match = basicRfcRegex.exec(string);
  1788. if (match) {
  1789. dayFormat = match[1] ? 'ddd' + ((match[1].length === 5) ? ', ' : ' ') : '';
  1790. dateFormat = 'D MMM ' + ((match[2].length > 10) ? 'YYYY ' : 'YY ');
  1791. timeFormat = 'HH:mm' + (match[4] ? ':ss' : '');
  1792. // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
  1793. if (match[1]) { // day of week given
  1794. var momentDate = new Date(match[2]);
  1795. var momentDay = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][momentDate.getDay()];
  1796. if (match[1].substr(0,3) !== momentDay) {
  1797. getParsingFlags(config).weekdayMismatch = true;
  1798. config._isValid = false;
  1799. return;
  1800. }
  1801. }
  1802. switch (match[5].length) {
  1803. case 2: // military
  1804. if (timezoneIndex === 0) {
  1805. timezone = ' +0000';
  1806. } else {
  1807. timezoneIndex = military.indexOf(match[5][1].toUpperCase()) - 12;
  1808. timezone = ((timezoneIndex < 0) ? ' -' : ' +') +
  1809. (('' + timezoneIndex).replace(/^-?/, '0')).match(/..$/)[0] + '00';
  1810. }
  1811. break;
  1812. case 4: // Zone
  1813. timezone = timezones[match[5]];
  1814. break;
  1815. default: // UT or +/-9999
  1816. timezone = timezones[' GMT'];
  1817. }
  1818. match[5] = timezone;
  1819. config._i = match.splice(1).join('');
  1820. tzFormat = ' ZZ';
  1821. config._f = dayFormat + dateFormat + timeFormat + tzFormat;
  1822. configFromStringAndFormat(config);
  1823. getParsingFlags(config).rfc2822 = true;
  1824. } else {
  1825. config._isValid = false;
  1826. }
  1827. }
  1828. // date from iso format or fallback
  1829. function configFromString(config) {
  1830. var matched = aspNetJsonRegex.exec(config._i);
  1831. if (matched !== null) {
  1832. config._d = new Date(+matched[1]);
  1833. return;
  1834. }
  1835. configFromISO(config);
  1836. if (config._isValid === false) {
  1837. delete config._isValid;
  1838. } else {
  1839. return;
  1840. }
  1841. configFromRFC2822(config);
  1842. if (config._isValid === false) {
  1843. delete config._isValid;
  1844. } else {
  1845. return;
  1846. }
  1847. // Final attempt, use Input Fallback
  1848. hooks.createFromInputFallback(config);
  1849. }
  1850. hooks.createFromInputFallback = deprecate(
  1851. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  1852. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  1853. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  1854. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  1855. function (config) {
  1856. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  1857. }
  1858. );
  1859. // Pick the first defined of two or three arguments.
  1860. function defaults(a, b, c) {
  1861. if (a != null) {
  1862. return a;
  1863. }
  1864. if (b != null) {
  1865. return b;
  1866. }
  1867. return c;
  1868. }
  1869. function currentDateArray(config) {
  1870. // hooks is actually the exported moment object
  1871. var nowValue = new Date(hooks.now());
  1872. if (config._useUTC) {
  1873. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  1874. }
  1875. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  1876. }
  1877. // convert an array to a date.
  1878. // the array should mirror the parameters below
  1879. // note: all values past the year are optional and will default to the lowest possible value.
  1880. // [year, month, day , hour, minute, second, millisecond]
  1881. function configFromArray (config) {
  1882. var i, date, input = [], currentDate, yearToUse;
  1883. if (config._d) {
  1884. return;
  1885. }
  1886. currentDate = currentDateArray(config);
  1887. //compute day of the year from weeks and weekdays
  1888. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  1889. dayOfYearFromWeekInfo(config);
  1890. }
  1891. //if the day of the year is set, figure out what it is
  1892. if (config._dayOfYear != null) {
  1893. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  1894. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  1895. getParsingFlags(config)._overflowDayOfYear = true;
  1896. }
  1897. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  1898. config._a[MONTH] = date.getUTCMonth();
  1899. config._a[DATE] = date.getUTCDate();
  1900. }
  1901. // Default to current date.
  1902. // * if no year, month, day of month are given, default to today
  1903. // * if day of month is given, default month and year
  1904. // * if month is given, default only year
  1905. // * if year is given, don't default anything
  1906. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  1907. config._a[i] = input[i] = currentDate[i];
  1908. }
  1909. // Zero out whatever was not defaulted, including time
  1910. for (; i < 7; i++) {
  1911. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  1912. }
  1913. // Check for 24:00:00.000
  1914. if (config._a[HOUR] === 24 &&
  1915. config._a[MINUTE] === 0 &&
  1916. config._a[SECOND] === 0 &&
  1917. config._a[MILLISECOND] === 0) {
  1918. config._nextDay = true;
  1919. config._a[HOUR] = 0;
  1920. }
  1921. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  1922. // Apply timezone offset from input. The actual utcOffset can be changed
  1923. // with parseZone.
  1924. if (config._tzm != null) {
  1925. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1926. }
  1927. if (config._nextDay) {
  1928. config._a[HOUR] = 24;
  1929. }
  1930. }
  1931. function dayOfYearFromWeekInfo(config) {
  1932. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  1933. w = config._w;
  1934. if (w.GG != null || w.W != null || w.E != null) {
  1935. dow = 1;
  1936. doy = 4;
  1937. // TODO: We need to take the current isoWeekYear, but that depends on
  1938. // how we interpret now (local, utc, fixed offset). So create
  1939. // a now version of current config (take local/utc/offset flags, and
  1940. // create now).
  1941. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  1942. week = defaults(w.W, 1);
  1943. weekday = defaults(w.E, 1);
  1944. if (weekday < 1 || weekday > 7) {
  1945. weekdayOverflow = true;
  1946. }
  1947. } else {
  1948. dow = config._locale._week.dow;
  1949. doy = config._locale._week.doy;
  1950. var curWeek = weekOfYear(createLocal(), dow, doy);
  1951. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  1952. // Default to current week.
  1953. week = defaults(w.w, curWeek.week);
  1954. if (w.d != null) {
  1955. // weekday -- low day numbers are considered next week
  1956. weekday = w.d;
  1957. if (weekday < 0 || weekday > 6) {
  1958. weekdayOverflow = true;
  1959. }
  1960. } else if (w.e != null) {
  1961. // local weekday -- counting starts from begining of week
  1962. weekday = w.e + dow;
  1963. if (w.e < 0 || w.e > 6) {
  1964. weekdayOverflow = true;
  1965. }
  1966. } else {
  1967. // default to begining of week
  1968. weekday = dow;
  1969. }
  1970. }
  1971. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  1972. getParsingFlags(config)._overflowWeeks = true;
  1973. } else if (weekdayOverflow != null) {
  1974. getParsingFlags(config)._overflowWeekday = true;
  1975. } else {
  1976. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  1977. config._a[YEAR] = temp.year;
  1978. config._dayOfYear = temp.dayOfYear;
  1979. }
  1980. }
  1981. // constant that refers to the ISO standard
  1982. hooks.ISO_8601 = function () {};
  1983. // constant that refers to the RFC 2822 form
  1984. hooks.RFC_2822 = function () {};
  1985. // date from string and format string
  1986. function configFromStringAndFormat(config) {
  1987. // TODO: Move this to another part of the creation flow to prevent circular deps
  1988. if (config._f === hooks.ISO_8601) {
  1989. configFromISO(config);
  1990. return;
  1991. }
  1992. if (config._f === hooks.RFC_2822) {
  1993. configFromRFC2822(config);
  1994. return;
  1995. }
  1996. config._a = [];
  1997. getParsingFlags(config).empty = true;
  1998. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  1999. var string = '' + config._i,
  2000. i, parsedInput, tokens, token, skipped,
  2001. stringLength = string.length,
  2002. totalParsedInputLength = 0;
  2003. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2004. for (i = 0; i < tokens.length; i++) {
  2005. token = tokens[i];
  2006. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  2007. // console.log('token', token, 'parsedInput', parsedInput,
  2008. // 'regex', getParseRegexForToken(token, config));
  2009. if (parsedInput) {
  2010. skipped = string.substr(0, string.indexOf(parsedInput));
  2011. if (skipped.length > 0) {
  2012. getParsingFlags(config).unusedInput.push(skipped);
  2013. }
  2014. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  2015. totalParsedInputLength += parsedInput.length;
  2016. }
  2017. // don't parse if it's not a known token
  2018. if (formatTokenFunctions[token]) {
  2019. if (parsedInput) {
  2020. getParsingFlags(config).empty = false;
  2021. }
  2022. else {
  2023. getParsingFlags(config).unusedTokens.push(token);
  2024. }
  2025. addTimeToArrayFromToken(token, parsedInput, config);
  2026. }
  2027. else if (config._strict && !parsedInput) {
  2028. getParsingFlags(config).unusedTokens.push(token);
  2029. }
  2030. }
  2031. // add remaining unparsed input length to the string
  2032. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  2033. if (string.length > 0) {
  2034. getParsingFlags(config).unusedInput.push(string);
  2035. }
  2036. // clear _12h flag if hour is <= 12
  2037. if (config._a[HOUR] <= 12 &&
  2038. getParsingFlags(config).bigHour === true &&
  2039. config._a[HOUR] > 0) {
  2040. getParsingFlags(config).bigHour = undefined;
  2041. }
  2042. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2043. getParsingFlags(config).meridiem = config._meridiem;
  2044. // handle meridiem
  2045. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  2046. configFromArray(config);
  2047. checkOverflow(config);
  2048. }
  2049. function meridiemFixWrap (locale, hour, meridiem) {
  2050. var isPm;
  2051. if (meridiem == null) {
  2052. // nothing to do
  2053. return hour;
  2054. }
  2055. if (locale.meridiemHour != null) {
  2056. return locale.meridiemHour(hour, meridiem);
  2057. } else if (locale.isPM != null) {
  2058. // Fallback
  2059. isPm = locale.isPM(meridiem);
  2060. if (isPm && hour < 12) {
  2061. hour += 12;
  2062. }
  2063. if (!isPm && hour === 12) {
  2064. hour = 0;
  2065. }
  2066. return hour;
  2067. } else {
  2068. // this is not supposed to happen
  2069. return hour;
  2070. }
  2071. }
  2072. // date from string and array of format strings
  2073. function configFromStringAndArray(config) {
  2074. var tempConfig,
  2075. bestMoment,
  2076. scoreToBeat,
  2077. i,
  2078. currentScore;
  2079. if (config._f.length === 0) {
  2080. getParsingFlags(config).invalidFormat = true;
  2081. config._d = new Date(NaN);
  2082. return;
  2083. }
  2084. for (i = 0; i < config._f.length; i++) {
  2085. currentScore = 0;
  2086. tempConfig = copyConfig({}, config);
  2087. if (config._useUTC != null) {
  2088. tempConfig._useUTC = config._useUTC;
  2089. }
  2090. tempConfig._f = config._f[i];
  2091. configFromStringAndFormat(tempConfig);
  2092. if (!isValid(tempConfig)) {
  2093. continue;
  2094. }
  2095. // if there is any input that was not parsed add a penalty for that format
  2096. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2097. //or tokens
  2098. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2099. getParsingFlags(tempConfig).score = currentScore;
  2100. if (scoreToBeat == null || currentScore < scoreToBeat) {
  2101. scoreToBeat = currentScore;
  2102. bestMoment = tempConfig;
  2103. }
  2104. }
  2105. extend(config, bestMoment || tempConfig);
  2106. }
  2107. function configFromObject(config) {
  2108. if (config._d) {
  2109. return;
  2110. }
  2111. var i = normalizeObjectUnits(config._i);
  2112. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  2113. return obj && parseInt(obj, 10);
  2114. });
  2115. configFromArray(config);
  2116. }
  2117. function createFromConfig (config) {
  2118. var res = new Moment(checkOverflow(prepareConfig(config)));
  2119. if (res._nextDay) {
  2120. // Adding is smart enough around DST
  2121. res.add(1, 'd');
  2122. res._nextDay = undefined;
  2123. }
  2124. return res;
  2125. }
  2126. function prepareConfig (config) {
  2127. var input = config._i,
  2128. format = config._f;
  2129. config._locale = config._locale || getLocale(config._l);
  2130. if (input === null || (format === undefined && input === '')) {
  2131. return createInvalid({nullInput: true});
  2132. }
  2133. if (typeof input === 'string') {
  2134. config._i = input = config._locale.preparse(input);
  2135. }
  2136. if (isMoment(input)) {
  2137. return new Moment(checkOverflow(input));
  2138. } else if (isDate(input)) {
  2139. config._d = input;
  2140. } else if (isArray(format)) {
  2141. configFromStringAndArray(config);
  2142. } else if (format) {
  2143. configFromStringAndFormat(config);
  2144. } else {
  2145. configFromInput(config);
  2146. }
  2147. if (!isValid(config)) {
  2148. config._d = null;
  2149. }
  2150. return config;
  2151. }
  2152. function configFromInput(config) {
  2153. var input = config._i;
  2154. if (isUndefined(input)) {
  2155. config._d = new Date(hooks.now());
  2156. } else if (isDate(input)) {
  2157. config._d = new Date(input.valueOf());
  2158. } else if (typeof input === 'string') {
  2159. configFromString(config);
  2160. } else if (isArray(input)) {
  2161. config._a = map(input.slice(0), function (obj) {
  2162. return parseInt(obj, 10);
  2163. });
  2164. configFromArray(config);
  2165. } else if (isObject(input)) {
  2166. configFromObject(config);
  2167. } else if (isNumber(input)) {
  2168. // from milliseconds
  2169. config._d = new Date(input);
  2170. } else {
  2171. hooks.createFromInputFallback(config);
  2172. }
  2173. }
  2174. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  2175. var c = {};
  2176. if (locale === true || locale === false) {
  2177. strict = locale;
  2178. locale = undefined;
  2179. }
  2180. if ((isObject(input) && isObjectEmpty(input)) ||
  2181. (isArray(input) && input.length === 0)) {
  2182. input = undefined;
  2183. }
  2184. // object construction must be done this way.
  2185. // https://github.com/moment/moment/issues/1423
  2186. c._isAMomentObject = true;
  2187. c._useUTC = c._isUTC = isUTC;
  2188. c._l = locale;
  2189. c._i = input;
  2190. c._f = format;
  2191. c._strict = strict;
  2192. return createFromConfig(c);
  2193. }
  2194. function createLocal (input, format, locale, strict) {
  2195. return createLocalOrUTC(input, format, locale, strict, false);
  2196. }
  2197. var prototypeMin = deprecate(
  2198. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2199. function () {
  2200. var other = createLocal.apply(null, arguments);
  2201. if (this.isValid() && other.isValid()) {
  2202. return other < this ? this : other;
  2203. } else {
  2204. return createInvalid();
  2205. }
  2206. }
  2207. );
  2208. var prototypeMax = deprecate(
  2209. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2210. function () {
  2211. var other = createLocal.apply(null, arguments);
  2212. if (this.isValid() && other.isValid()) {
  2213. return other > this ? this : other;
  2214. } else {
  2215. return createInvalid();
  2216. }
  2217. }
  2218. );
  2219. // Pick a moment m from moments so that m[fn](other) is true for all
  2220. // other. This relies on the function fn to be transitive.
  2221. //
  2222. // moments should either be an array of moment objects or an array, whose
  2223. // first element is an array of moment objects.
  2224. function pickBy(fn, moments) {
  2225. var res, i;
  2226. if (moments.length === 1 && isArray(moments[0])) {
  2227. moments = moments[0];
  2228. }
  2229. if (!moments.length) {
  2230. return createLocal();
  2231. }
  2232. res = moments[0];
  2233. for (i = 1; i < moments.length; ++i) {
  2234. if (!moments[i].isValid() || moments[i][fn](res)) {
  2235. res = moments[i];
  2236. }
  2237. }
  2238. return res;
  2239. }
  2240. // TODO: Use [].sort instead?
  2241. function min () {
  2242. var args = [].slice.call(arguments, 0);
  2243. return pickBy('isBefore', args);
  2244. }
  2245. function max () {
  2246. var args = [].slice.call(arguments, 0);
  2247. return pickBy('isAfter', args);
  2248. }
  2249. var now = function () {
  2250. return Date.now ? Date.now() : +(new Date());
  2251. };
  2252. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  2253. function isDurationValid(m) {
  2254. for (var key in m) {
  2255. if (!(ordering.indexOf(key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  2256. return false;
  2257. }
  2258. }
  2259. var unitHasDecimal = false;
  2260. for (var i = 0; i < ordering.length; ++i) {
  2261. if (m[ordering[i]]) {
  2262. if (unitHasDecimal) {
  2263. return false; // only allow non-integers for smallest unit
  2264. }
  2265. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2266. unitHasDecimal = true;
  2267. }
  2268. }
  2269. }
  2270. return true;
  2271. }
  2272. function isValid$1() {
  2273. return this._isValid;
  2274. }
  2275. function createInvalid$1() {
  2276. return createDuration(NaN);
  2277. }
  2278. function Duration (duration) {
  2279. var normalizedInput = normalizeObjectUnits(duration),
  2280. years = normalizedInput.year || 0,
  2281. quarters = normalizedInput.quarter || 0,
  2282. months = normalizedInput.month || 0,
  2283. weeks = normalizedInput.week || 0,
  2284. days = normalizedInput.day || 0,
  2285. hours = normalizedInput.hour || 0,
  2286. minutes = normalizedInput.minute || 0,
  2287. seconds = normalizedInput.second || 0,
  2288. milliseconds = normalizedInput.millisecond || 0;
  2289. this._isValid = isDurationValid(normalizedInput);
  2290. // representation for dateAddRemove
  2291. this._milliseconds = +milliseconds +
  2292. seconds * 1e3 + // 1000
  2293. minutes * 6e4 + // 1000 * 60
  2294. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2295. // Because of dateAddRemove treats 24 hours as different from a
  2296. // day when working around DST, we need to store them separately
  2297. this._days = +days +
  2298. weeks * 7;
  2299. // It is impossible translate months into days without knowing
  2300. // which months you are are talking about, so we have to store
  2301. // it separately.
  2302. this._months = +months +
  2303. quarters * 3 +
  2304. years * 12;
  2305. this._data = {};
  2306. this._locale = getLocale();
  2307. this._bubble();
  2308. }
  2309. function isDuration (obj) {
  2310. return obj instanceof Duration;
  2311. }
  2312. function absRound (number) {
  2313. if (number < 0) {
  2314. return Math.round(-1 * number) * -1;
  2315. } else {
  2316. return Math.round(number);
  2317. }
  2318. }
  2319. // FORMATTING
  2320. function offset (token, separator) {
  2321. addFormatToken(token, 0, 0, function () {
  2322. var offset = this.utcOffset();
  2323. var sign = '+';
  2324. if (offset < 0) {
  2325. offset = -offset;
  2326. sign = '-';
  2327. }
  2328. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  2329. });
  2330. }
  2331. offset('Z', ':');
  2332. offset('ZZ', '');
  2333. // PARSING
  2334. addRegexToken('Z', matchShortOffset);
  2335. addRegexToken('ZZ', matchShortOffset);
  2336. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2337. config._useUTC = true;
  2338. config._tzm = offsetFromString(matchShortOffset, input);
  2339. });
  2340. // HELPERS
  2341. // timezone chunker
  2342. // '+10:00' > ['10', '00']
  2343. // '-1530' > ['-15', '30']
  2344. var chunkOffset = /([\+\-]|\d\d)/gi;
  2345. function offsetFromString(matcher, string) {
  2346. var matches = (string || '').match(matcher);
  2347. if (matches === null) {
  2348. return null;
  2349. }
  2350. var chunk = matches[matches.length - 1] || [];
  2351. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2352. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  2353. return minutes === 0 ?
  2354. 0 :
  2355. parts[0] === '+' ? minutes : -minutes;
  2356. }
  2357. // Return a moment from input, that is local/utc/zone equivalent to model.
  2358. function cloneWithOffset(input, model) {
  2359. var res, diff;
  2360. if (model._isUTC) {
  2361. res = model.clone();
  2362. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  2363. // Use low-level api, because this fn is low-level api.
  2364. res._d.setTime(res._d.valueOf() + diff);
  2365. hooks.updateOffset(res, false);
  2366. return res;
  2367. } else {
  2368. return createLocal(input).local();
  2369. }
  2370. }
  2371. function getDateOffset (m) {
  2372. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2373. // https://github.com/moment/moment/pull/1871
  2374. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  2375. }
  2376. // HOOKS
  2377. // This function will be called whenever a moment is mutated.
  2378. // It is intended to keep the offset in sync with the timezone.
  2379. hooks.updateOffset = function () {};
  2380. // MOMENTS
  2381. // keepLocalTime = true means only change the timezone, without
  2382. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2383. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2384. // +0200, so we adjust the time as needed, to be valid.
  2385. //
  2386. // Keeping the time actually adds/subtracts (one hour)
  2387. // from the actual represented time. That is why we call updateOffset
  2388. // a second time. In case it wants us to change the offset again
  2389. // _changeInProgress == true case, then we have to adjust, because
  2390. // there is no such time in the given timezone.
  2391. function getSetOffset (input, keepLocalTime, keepMinutes) {
  2392. var offset = this._offset || 0,
  2393. localAdjust;
  2394. if (!this.isValid()) {
  2395. return input != null ? this : NaN;
  2396. }
  2397. if (input != null) {
  2398. if (typeof input === 'string') {
  2399. input = offsetFromString(matchShortOffset, input);
  2400. if (input === null) {
  2401. return this;
  2402. }
  2403. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2404. input = input * 60;
  2405. }
  2406. if (!this._isUTC && keepLocalTime) {
  2407. localAdjust = getDateOffset(this);
  2408. }
  2409. this._offset = input;
  2410. this._isUTC = true;
  2411. if (localAdjust != null) {
  2412. this.add(localAdjust, 'm');
  2413. }
  2414. if (offset !== input) {
  2415. if (!keepLocalTime || this._changeInProgress) {
  2416. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  2417. } else if (!this._changeInProgress) {
  2418. this._changeInProgress = true;
  2419. hooks.updateOffset(this, true);
  2420. this._changeInProgress = null;
  2421. }
  2422. }
  2423. return this;
  2424. } else {
  2425. return this._isUTC ? offset : getDateOffset(this);
  2426. }
  2427. }
  2428. function getSetZone (input, keepLocalTime) {
  2429. if (input != null) {
  2430. if (typeof input !== 'string') {
  2431. input = -input;
  2432. }
  2433. this.utcOffset(input, keepLocalTime);
  2434. return this;
  2435. } else {
  2436. return -this.utcOffset();
  2437. }
  2438. }
  2439. function setOffsetToUTC (keepLocalTime) {
  2440. return this.utcOffset(0, keepLocalTime);
  2441. }
  2442. function setOffsetToLocal (keepLocalTime) {
  2443. if (this._isUTC) {
  2444. this.utcOffset(0, keepLocalTime);
  2445. this._isUTC = false;
  2446. if (keepLocalTime) {
  2447. this.subtract(getDateOffset(this), 'm');
  2448. }
  2449. }
  2450. return this;
  2451. }
  2452. function setOffsetToParsedOffset () {
  2453. if (this._tzm != null) {
  2454. this.utcOffset(this._tzm, false, true);
  2455. } else if (typeof this._i === 'string') {
  2456. var tZone = offsetFromString(matchOffset, this._i);
  2457. if (tZone != null) {
  2458. this.utcOffset(tZone);
  2459. }
  2460. else {
  2461. this.utcOffset(0, true);
  2462. }
  2463. }
  2464. return this;
  2465. }
  2466. function hasAlignedHourOffset (input) {
  2467. if (!this.isValid()) {
  2468. return false;
  2469. }
  2470. input = input ? createLocal(input).utcOffset() : 0;
  2471. return (this.utcOffset() - input) % 60 === 0;
  2472. }
  2473. function isDaylightSavingTime () {
  2474. return (
  2475. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2476. this.utcOffset() > this.clone().month(5).utcOffset()
  2477. );
  2478. }
  2479. function isDaylightSavingTimeShifted () {
  2480. if (!isUndefined(this._isDSTShifted)) {
  2481. return this._isDSTShifted;
  2482. }
  2483. var c = {};
  2484. copyConfig(c, this);
  2485. c = prepareConfig(c);
  2486. if (c._a) {
  2487. var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2488. this._isDSTShifted = this.isValid() &&
  2489. compareArrays(c._a, other.toArray()) > 0;
  2490. } else {
  2491. this._isDSTShifted = false;
  2492. }
  2493. return this._isDSTShifted;
  2494. }
  2495. function isLocal () {
  2496. return this.isValid() ? !this._isUTC : false;
  2497. }
  2498. function isUtcOffset () {
  2499. return this.isValid() ? this._isUTC : false;
  2500. }
  2501. function isUtc () {
  2502. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2503. }
  2504. // ASP.NET json date format regex
  2505. var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
  2506. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  2507. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  2508. // and further modified to allow for strings containing both week and day
  2509. 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)?)?$/;
  2510. function createDuration (input, key) {
  2511. var duration = input,
  2512. // matching against regexp is expensive, do it on demand
  2513. match = null,
  2514. sign,
  2515. ret,
  2516. diffRes;
  2517. if (isDuration(input)) {
  2518. duration = {
  2519. ms : input._milliseconds,
  2520. d : input._days,
  2521. M : input._months
  2522. };
  2523. } else if (isNumber(input)) {
  2524. duration = {};
  2525. if (key) {
  2526. duration[key] = input;
  2527. } else {
  2528. duration.milliseconds = input;
  2529. }
  2530. } else if (!!(match = aspNetRegex.exec(input))) {
  2531. sign = (match[1] === '-') ? -1 : 1;
  2532. duration = {
  2533. y : 0,
  2534. d : toInt(match[DATE]) * sign,
  2535. h : toInt(match[HOUR]) * sign,
  2536. m : toInt(match[MINUTE]) * sign,
  2537. s : toInt(match[SECOND]) * sign,
  2538. ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  2539. };
  2540. } else if (!!(match = isoRegex.exec(input))) {
  2541. sign = (match[1] === '-') ? -1 : 1;
  2542. duration = {
  2543. y : parseIso(match[2], sign),
  2544. M : parseIso(match[3], sign),
  2545. w : parseIso(match[4], sign),
  2546. d : parseIso(match[5], sign),
  2547. h : parseIso(match[6], sign),
  2548. m : parseIso(match[7], sign),
  2549. s : parseIso(match[8], sign)
  2550. };
  2551. } else if (duration == null) {// checks for null or undefined
  2552. duration = {};
  2553. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  2554. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  2555. duration = {};
  2556. duration.ms = diffRes.milliseconds;
  2557. duration.M = diffRes.months;
  2558. }
  2559. ret = new Duration(duration);
  2560. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  2561. ret._locale = input._locale;
  2562. }
  2563. return ret;
  2564. }
  2565. createDuration.fn = Duration.prototype;
  2566. createDuration.invalid = createInvalid$1;
  2567. function parseIso (inp, sign) {
  2568. // We'd normally use ~~inp for this, but unfortunately it also
  2569. // converts floats to ints.
  2570. // inp may be undefined, so careful calling replace on it.
  2571. var res = inp && parseFloat(inp.replace(',', '.'));
  2572. // apply sign while we're at it
  2573. return (isNaN(res) ? 0 : res) * sign;
  2574. }
  2575. function positiveMomentsDifference(base, other) {
  2576. var res = {milliseconds: 0, months: 0};
  2577. res.months = other.month() - base.month() +
  2578. (other.year() - base.year()) * 12;
  2579. if (base.clone().add(res.months, 'M').isAfter(other)) {
  2580. --res.months;
  2581. }
  2582. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  2583. return res;
  2584. }
  2585. function momentsDifference(base, other) {
  2586. var res;
  2587. if (!(base.isValid() && other.isValid())) {
  2588. return {milliseconds: 0, months: 0};
  2589. }
  2590. other = cloneWithOffset(other, base);
  2591. if (base.isBefore(other)) {
  2592. res = positiveMomentsDifference(base, other);
  2593. } else {
  2594. res = positiveMomentsDifference(other, base);
  2595. res.milliseconds = -res.milliseconds;
  2596. res.months = -res.months;
  2597. }
  2598. return res;
  2599. }
  2600. // TODO: remove 'name' arg after deprecation is removed
  2601. function createAdder(direction, name) {
  2602. return function (val, period) {
  2603. var dur, tmp;
  2604. //invert the arguments, but complain about it
  2605. if (period !== null && !isNaN(+period)) {
  2606. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
  2607. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  2608. tmp = val; val = period; period = tmp;
  2609. }
  2610. val = typeof val === 'string' ? +val : val;
  2611. dur = createDuration(val, period);
  2612. addSubtract(this, dur, direction);
  2613. return this;
  2614. };
  2615. }
  2616. function addSubtract (mom, duration, isAdding, updateOffset) {
  2617. var milliseconds = duration._milliseconds,
  2618. days = absRound(duration._days),
  2619. months = absRound(duration._months);
  2620. if (!mom.isValid()) {
  2621. // No op
  2622. return;
  2623. }
  2624. updateOffset = updateOffset == null ? true : updateOffset;
  2625. if (milliseconds) {
  2626. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  2627. }
  2628. if (days) {
  2629. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  2630. }
  2631. if (months) {
  2632. setMonth(mom, get(mom, 'Month') + months * isAdding);
  2633. }
  2634. if (updateOffset) {
  2635. hooks.updateOffset(mom, days || months);
  2636. }
  2637. }
  2638. var add = createAdder(1, 'add');
  2639. var subtract = createAdder(-1, 'subtract');
  2640. function getCalendarFormat(myMoment, now) {
  2641. var diff = myMoment.diff(now, 'days', true);
  2642. return diff < -6 ? 'sameElse' :
  2643. diff < -1 ? 'lastWeek' :
  2644. diff < 0 ? 'lastDay' :
  2645. diff < 1 ? 'sameDay' :
  2646. diff < 2 ? 'nextDay' :
  2647. diff < 7 ? 'nextWeek' : 'sameElse';
  2648. }
  2649. function calendar$1 (time, formats) {
  2650. // We want to compare the start of today, vs this.
  2651. // Getting start-of-today depends on whether we're local/utc/offset or not.
  2652. var now = time || createLocal(),
  2653. sod = cloneWithOffset(now, this).startOf('day'),
  2654. format = hooks.calendarFormat(this, sod) || 'sameElse';
  2655. var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  2656. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  2657. }
  2658. function clone () {
  2659. return new Moment(this);
  2660. }
  2661. function isAfter (input, units) {
  2662. var localInput = isMoment(input) ? input : createLocal(input);
  2663. if (!(this.isValid() && localInput.isValid())) {
  2664. return false;
  2665. }
  2666. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2667. if (units === 'millisecond') {
  2668. return this.valueOf() > localInput.valueOf();
  2669. } else {
  2670. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  2671. }
  2672. }
  2673. function isBefore (input, units) {
  2674. var localInput = isMoment(input) ? input : createLocal(input);
  2675. if (!(this.isValid() && localInput.isValid())) {
  2676. return false;
  2677. }
  2678. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2679. if (units === 'millisecond') {
  2680. return this.valueOf() < localInput.valueOf();
  2681. } else {
  2682. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  2683. }
  2684. }
  2685. function isBetween (from, to, units, inclusivity) {
  2686. inclusivity = inclusivity || '()';
  2687. return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
  2688. (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
  2689. }
  2690. function isSame (input, units) {
  2691. var localInput = isMoment(input) ? input : createLocal(input),
  2692. inputMs;
  2693. if (!(this.isValid() && localInput.isValid())) {
  2694. return false;
  2695. }
  2696. units = normalizeUnits(units || 'millisecond');
  2697. if (units === 'millisecond') {
  2698. return this.valueOf() === localInput.valueOf();
  2699. } else {
  2700. inputMs = localInput.valueOf();
  2701. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  2702. }
  2703. }
  2704. function isSameOrAfter (input, units) {
  2705. return this.isSame(input, units) || this.isAfter(input,units);
  2706. }
  2707. function isSameOrBefore (input, units) {
  2708. return this.isSame(input, units) || this.isBefore(input,units);
  2709. }
  2710. function diff (input, units, asFloat) {
  2711. var that,
  2712. zoneDelta,
  2713. delta, output;
  2714. if (!this.isValid()) {
  2715. return NaN;
  2716. }
  2717. that = cloneWithOffset(input, this);
  2718. if (!that.isValid()) {
  2719. return NaN;
  2720. }
  2721. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  2722. units = normalizeUnits(units);
  2723. if (units === 'year' || units === 'month' || units === 'quarter') {
  2724. output = monthDiff(this, that);
  2725. if (units === 'quarter') {
  2726. output = output / 3;
  2727. } else if (units === 'year') {
  2728. output = output / 12;
  2729. }
  2730. } else {
  2731. delta = this - that;
  2732. output = units === 'second' ? delta / 1e3 : // 1000
  2733. units === 'minute' ? delta / 6e4 : // 1000 * 60
  2734. units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
  2735. units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
  2736. units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
  2737. delta;
  2738. }
  2739. return asFloat ? output : absFloor(output);
  2740. }
  2741. function monthDiff (a, b) {
  2742. // difference in months
  2743. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  2744. // b is in (anchor - 1 month, anchor + 1 month)
  2745. anchor = a.clone().add(wholeMonthDiff, 'months'),
  2746. anchor2, adjust;
  2747. if (b - anchor < 0) {
  2748. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  2749. // linear across the month
  2750. adjust = (b - anchor) / (anchor - anchor2);
  2751. } else {
  2752. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  2753. // linear across the month
  2754. adjust = (b - anchor) / (anchor2 - anchor);
  2755. }
  2756. //check for negative zero, return zero if negative zero
  2757. return -(wholeMonthDiff + adjust) || 0;
  2758. }
  2759. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  2760. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  2761. function toString () {
  2762. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  2763. }
  2764. function toISOString() {
  2765. if (!this.isValid()) {
  2766. return null;
  2767. }
  2768. var m = this.clone().utc();
  2769. if (m.year() < 0 || m.year() > 9999) {
  2770. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2771. }
  2772. if (isFunction(Date.prototype.toISOString)) {
  2773. // native implementation is ~50x faster, use it when we can
  2774. return this.toDate().toISOString();
  2775. }
  2776. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2777. }
  2778. /**
  2779. * Return a human readable representation of a moment that can
  2780. * also be evaluated to get a new moment which is the same
  2781. *
  2782. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  2783. */
  2784. function inspect () {
  2785. if (!this.isValid()) {
  2786. return 'moment.invalid(/* ' + this._i + ' */)';
  2787. }
  2788. var func = 'moment';
  2789. var zone = '';
  2790. if (!this.isLocal()) {
  2791. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  2792. zone = 'Z';
  2793. }
  2794. var prefix = '[' + func + '("]';
  2795. var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
  2796. var datetime = '-MM-DD[T]HH:mm:ss.SSS';
  2797. var suffix = zone + '[")]';
  2798. return this.format(prefix + year + datetime + suffix);
  2799. }
  2800. function format (inputString) {
  2801. if (!inputString) {
  2802. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  2803. }
  2804. var output = formatMoment(this, inputString);
  2805. return this.localeData().postformat(output);
  2806. }
  2807. function from (time, withoutSuffix) {
  2808. if (this.isValid() &&
  2809. ((isMoment(time) && time.isValid()) ||
  2810. createLocal(time).isValid())) {
  2811. return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  2812. } else {
  2813. return this.localeData().invalidDate();
  2814. }
  2815. }
  2816. function fromNow (withoutSuffix) {
  2817. return this.from(createLocal(), withoutSuffix);
  2818. }
  2819. function to (time, withoutSuffix) {
  2820. if (this.isValid() &&
  2821. ((isMoment(time) && time.isValid()) ||
  2822. createLocal(time).isValid())) {
  2823. return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  2824. } else {
  2825. return this.localeData().invalidDate();
  2826. }
  2827. }
  2828. function toNow (withoutSuffix) {
  2829. return this.to(createLocal(), withoutSuffix);
  2830. }
  2831. // If passed a locale key, it will set the locale for this
  2832. // instance. Otherwise, it will return the locale configuration
  2833. // variables for this instance.
  2834. function locale (key) {
  2835. var newLocaleData;
  2836. if (key === undefined) {
  2837. return this._locale._abbr;
  2838. } else {
  2839. newLocaleData = getLocale(key);
  2840. if (newLocaleData != null) {
  2841. this._locale = newLocaleData;
  2842. }
  2843. return this;
  2844. }
  2845. }
  2846. var lang = deprecate(
  2847. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  2848. function (key) {
  2849. if (key === undefined) {
  2850. return this.localeData();
  2851. } else {
  2852. return this.locale(key);
  2853. }
  2854. }
  2855. );
  2856. function localeData () {
  2857. return this._locale;
  2858. }
  2859. function startOf (units) {
  2860. units = normalizeUnits(units);
  2861. // the following switch intentionally omits break keywords
  2862. // to utilize falling through the cases.
  2863. switch (units) {
  2864. case 'year':
  2865. this.month(0);
  2866. /* falls through */
  2867. case 'quarter':
  2868. case 'month':
  2869. this.date(1);
  2870. /* falls through */
  2871. case 'week':
  2872. case 'isoWeek':
  2873. case 'day':
  2874. case 'date':
  2875. this.hours(0);
  2876. /* falls through */
  2877. case 'hour':
  2878. this.minutes(0);
  2879. /* falls through */
  2880. case 'minute':
  2881. this.seconds(0);
  2882. /* falls through */
  2883. case 'second':
  2884. this.milliseconds(0);
  2885. }
  2886. // weeks are a special case
  2887. if (units === 'week') {
  2888. this.weekday(0);
  2889. }
  2890. if (units === 'isoWeek') {
  2891. this.isoWeekday(1);
  2892. }
  2893. // quarters are also special
  2894. if (units === 'quarter') {
  2895. this.month(Math.floor(this.month() / 3) * 3);
  2896. }
  2897. return this;
  2898. }
  2899. function endOf (units) {
  2900. units = normalizeUnits(units);
  2901. if (units === undefined || units === 'millisecond') {
  2902. return this;
  2903. }
  2904. // 'date' is an alias for 'day', so it should be considered as such.
  2905. if (units === 'date') {
  2906. units = 'day';
  2907. }
  2908. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  2909. }
  2910. function valueOf () {
  2911. return this._d.valueOf() - ((this._offset || 0) * 60000);
  2912. }
  2913. function unix () {
  2914. return Math.floor(this.valueOf() / 1000);
  2915. }
  2916. function toDate () {
  2917. return new Date(this.valueOf());
  2918. }
  2919. function toArray () {
  2920. var m = this;
  2921. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  2922. }
  2923. function toObject () {
  2924. var m = this;
  2925. return {
  2926. years: m.year(),
  2927. months: m.month(),
  2928. date: m.date(),
  2929. hours: m.hours(),
  2930. minutes: m.minutes(),
  2931. seconds: m.seconds(),
  2932. milliseconds: m.milliseconds()
  2933. };
  2934. }
  2935. function toJSON () {
  2936. // new Date(NaN).toJSON() === null
  2937. return this.isValid() ? this.toISOString() : null;
  2938. }
  2939. function isValid$2 () {
  2940. return isValid(this);
  2941. }
  2942. function parsingFlags () {
  2943. return extend({}, getParsingFlags(this));
  2944. }
  2945. function invalidAt () {
  2946. return getParsingFlags(this).overflow;
  2947. }
  2948. function creationData() {
  2949. return {
  2950. input: this._i,
  2951. format: this._f,
  2952. locale: this._locale,
  2953. isUTC: this._isUTC,
  2954. strict: this._strict
  2955. };
  2956. }
  2957. // FORMATTING
  2958. addFormatToken(0, ['gg', 2], 0, function () {
  2959. return this.weekYear() % 100;
  2960. });
  2961. addFormatToken(0, ['GG', 2], 0, function () {
  2962. return this.isoWeekYear() % 100;
  2963. });
  2964. function addWeekYearFormatToken (token, getter) {
  2965. addFormatToken(0, [token, token.length], 0, getter);
  2966. }
  2967. addWeekYearFormatToken('gggg', 'weekYear');
  2968. addWeekYearFormatToken('ggggg', 'weekYear');
  2969. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  2970. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  2971. // ALIASES
  2972. addUnitAlias('weekYear', 'gg');
  2973. addUnitAlias('isoWeekYear', 'GG');
  2974. // PRIORITY
  2975. addUnitPriority('weekYear', 1);
  2976. addUnitPriority('isoWeekYear', 1);
  2977. // PARSING
  2978. addRegexToken('G', matchSigned);
  2979. addRegexToken('g', matchSigned);
  2980. addRegexToken('GG', match1to2, match2);
  2981. addRegexToken('gg', match1to2, match2);
  2982. addRegexToken('GGGG', match1to4, match4);
  2983. addRegexToken('gggg', match1to4, match4);
  2984. addRegexToken('GGGGG', match1to6, match6);
  2985. addRegexToken('ggggg', match1to6, match6);
  2986. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  2987. week[token.substr(0, 2)] = toInt(input);
  2988. });
  2989. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  2990. week[token] = hooks.parseTwoDigitYear(input);
  2991. });
  2992. // MOMENTS
  2993. function getSetWeekYear (input) {
  2994. return getSetWeekYearHelper.call(this,
  2995. input,
  2996. this.week(),
  2997. this.weekday(),
  2998. this.localeData()._week.dow,
  2999. this.localeData()._week.doy);
  3000. }
  3001. function getSetISOWeekYear (input) {
  3002. return getSetWeekYearHelper.call(this,
  3003. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  3004. }
  3005. function getISOWeeksInYear () {
  3006. return weeksInYear(this.year(), 1, 4);
  3007. }
  3008. function getWeeksInYear () {
  3009. var weekInfo = this.localeData()._week;
  3010. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  3011. }
  3012. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  3013. var weeksTarget;
  3014. if (input == null) {
  3015. return weekOfYear(this, dow, doy).year;
  3016. } else {
  3017. weeksTarget = weeksInYear(input, dow, doy);
  3018. if (week > weeksTarget) {
  3019. week = weeksTarget;
  3020. }
  3021. return setWeekAll.call(this, input, week, weekday, dow, doy);
  3022. }
  3023. }
  3024. function setWeekAll(weekYear, week, weekday, dow, doy) {
  3025. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  3026. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  3027. this.year(date.getUTCFullYear());
  3028. this.month(date.getUTCMonth());
  3029. this.date(date.getUTCDate());
  3030. return this;
  3031. }
  3032. // FORMATTING
  3033. addFormatToken('Q', 0, 'Qo', 'quarter');
  3034. // ALIASES
  3035. addUnitAlias('quarter', 'Q');
  3036. // PRIORITY
  3037. addUnitPriority('quarter', 7);
  3038. // PARSING
  3039. addRegexToken('Q', match1);
  3040. addParseToken('Q', function (input, array) {
  3041. array[MONTH] = (toInt(input) - 1) * 3;
  3042. });
  3043. // MOMENTS
  3044. function getSetQuarter (input) {
  3045. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  3046. }
  3047. // FORMATTING
  3048. addFormatToken('D', ['DD', 2], 'Do', 'date');
  3049. // ALIASES
  3050. addUnitAlias('date', 'D');
  3051. // PRIOROITY
  3052. addUnitPriority('date', 9);
  3053. // PARSING
  3054. addRegexToken('D', match1to2);
  3055. addRegexToken('DD', match1to2, match2);
  3056. addRegexToken('Do', function (isStrict, locale) {
  3057. // TODO: Remove "ordinalParse" fallback in next major release.
  3058. return isStrict ?
  3059. (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
  3060. locale._dayOfMonthOrdinalParseLenient;
  3061. });
  3062. addParseToken(['D', 'DD'], DATE);
  3063. addParseToken('Do', function (input, array) {
  3064. array[DATE] = toInt(input.match(match1to2)[0], 10);
  3065. });
  3066. // MOMENTS
  3067. var getSetDayOfMonth = makeGetSet('Date', true);
  3068. // FORMATTING
  3069. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  3070. // ALIASES
  3071. addUnitAlias('dayOfYear', 'DDD');
  3072. // PRIORITY
  3073. addUnitPriority('dayOfYear', 4);
  3074. // PARSING
  3075. addRegexToken('DDD', match1to3);
  3076. addRegexToken('DDDD', match3);
  3077. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  3078. config._dayOfYear = toInt(input);
  3079. });
  3080. // HELPERS
  3081. // MOMENTS
  3082. function getSetDayOfYear (input) {
  3083. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  3084. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  3085. }
  3086. // FORMATTING
  3087. addFormatToken('m', ['mm', 2], 0, 'minute');
  3088. // ALIASES
  3089. addUnitAlias('minute', 'm');
  3090. // PRIORITY
  3091. addUnitPriority('minute', 14);
  3092. // PARSING
  3093. addRegexToken('m', match1to2);
  3094. addRegexToken('mm', match1to2, match2);
  3095. addParseToken(['m', 'mm'], MINUTE);
  3096. // MOMENTS
  3097. var getSetMinute = makeGetSet('Minutes', false);
  3098. // FORMATTING
  3099. addFormatToken('s', ['ss', 2], 0, 'second');
  3100. // ALIASES
  3101. addUnitAlias('second', 's');
  3102. // PRIORITY
  3103. addUnitPriority('second', 15);
  3104. // PARSING
  3105. addRegexToken('s', match1to2);
  3106. addRegexToken('ss', match1to2, match2);
  3107. addParseToken(['s', 'ss'], SECOND);
  3108. // MOMENTS
  3109. var getSetSecond = makeGetSet('Seconds', false);
  3110. // FORMATTING
  3111. addFormatToken('S', 0, 0, function () {
  3112. return ~~(this.millisecond() / 100);
  3113. });
  3114. addFormatToken(0, ['SS', 2], 0, function () {
  3115. return ~~(this.millisecond() / 10);
  3116. });
  3117. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  3118. addFormatToken(0, ['SSSS', 4], 0, function () {
  3119. return this.millisecond() * 10;
  3120. });
  3121. addFormatToken(0, ['SSSSS', 5], 0, function () {
  3122. return this.millisecond() * 100;
  3123. });
  3124. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  3125. return this.millisecond() * 1000;
  3126. });
  3127. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  3128. return this.millisecond() * 10000;
  3129. });
  3130. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  3131. return this.millisecond() * 100000;
  3132. });
  3133. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  3134. return this.millisecond() * 1000000;
  3135. });
  3136. // ALIASES
  3137. addUnitAlias('millisecond', 'ms');
  3138. // PRIORITY
  3139. addUnitPriority('millisecond', 16);
  3140. // PARSING
  3141. addRegexToken('S', match1to3, match1);
  3142. addRegexToken('SS', match1to3, match2);
  3143. addRegexToken('SSS', match1to3, match3);
  3144. var token;
  3145. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  3146. addRegexToken(token, matchUnsigned);
  3147. }
  3148. function parseMs(input, array) {
  3149. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  3150. }
  3151. for (token = 'S'; token.length <= 9; token += 'S') {
  3152. addParseToken(token, parseMs);
  3153. }
  3154. // MOMENTS
  3155. var getSetMillisecond = makeGetSet('Milliseconds', false);
  3156. // FORMATTING
  3157. addFormatToken('z', 0, 0, 'zoneAbbr');
  3158. addFormatToken('zz', 0, 0, 'zoneName');
  3159. // MOMENTS
  3160. function getZoneAbbr () {
  3161. return this._isUTC ? 'UTC' : '';
  3162. }
  3163. function getZoneName () {
  3164. return this._isUTC ? 'Coordinated Universal Time' : '';
  3165. }
  3166. var proto = Moment.prototype;
  3167. proto.add = add;
  3168. proto.calendar = calendar$1;
  3169. proto.clone = clone;
  3170. proto.diff = diff;
  3171. proto.endOf = endOf;
  3172. proto.format = format;
  3173. proto.from = from;
  3174. proto.fromNow = fromNow;
  3175. proto.to = to;
  3176. proto.toNow = toNow;
  3177. proto.get = stringGet;
  3178. proto.invalidAt = invalidAt;
  3179. proto.isAfter = isAfter;
  3180. proto.isBefore = isBefore;
  3181. proto.isBetween = isBetween;
  3182. proto.isSame = isSame;
  3183. proto.isSameOrAfter = isSameOrAfter;
  3184. proto.isSameOrBefore = isSameOrBefore;
  3185. proto.isValid = isValid$2;
  3186. proto.lang = lang;
  3187. proto.locale = locale;
  3188. proto.localeData = localeData;
  3189. proto.max = prototypeMax;
  3190. proto.min = prototypeMin;
  3191. proto.parsingFlags = parsingFlags;
  3192. proto.set = stringSet;
  3193. proto.startOf = startOf;
  3194. proto.subtract = subtract;
  3195. proto.toArray = toArray;
  3196. proto.toObject = toObject;
  3197. proto.toDate = toDate;
  3198. proto.toISOString = toISOString;
  3199. proto.inspect = inspect;
  3200. proto.toJSON = toJSON;
  3201. proto.toString = toString;
  3202. proto.unix = unix;
  3203. proto.valueOf = valueOf;
  3204. proto.creationData = creationData;
  3205. // Year
  3206. proto.year = getSetYear;
  3207. proto.isLeapYear = getIsLeapYear;
  3208. // Week Year
  3209. proto.weekYear = getSetWeekYear;
  3210. proto.isoWeekYear = getSetISOWeekYear;
  3211. // Quarter
  3212. proto.quarter = proto.quarters = getSetQuarter;
  3213. // Month
  3214. proto.month = getSetMonth;
  3215. proto.daysInMonth = getDaysInMonth;
  3216. // Week
  3217. proto.week = proto.weeks = getSetWeek;
  3218. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  3219. proto.weeksInYear = getWeeksInYear;
  3220. proto.isoWeeksInYear = getISOWeeksInYear;
  3221. // Day
  3222. proto.date = getSetDayOfMonth;
  3223. proto.day = proto.days = getSetDayOfWeek;
  3224. proto.weekday = getSetLocaleDayOfWeek;
  3225. proto.isoWeekday = getSetISODayOfWeek;
  3226. proto.dayOfYear = getSetDayOfYear;
  3227. // Hour
  3228. proto.hour = proto.hours = getSetHour;
  3229. // Minute
  3230. proto.minute = proto.minutes = getSetMinute;
  3231. // Second
  3232. proto.second = proto.seconds = getSetSecond;
  3233. // Millisecond
  3234. proto.millisecond = proto.milliseconds = getSetMillisecond;
  3235. // Offset
  3236. proto.utcOffset = getSetOffset;
  3237. proto.utc = setOffsetToUTC;
  3238. proto.local = setOffsetToLocal;
  3239. proto.parseZone = setOffsetToParsedOffset;
  3240. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  3241. proto.isDST = isDaylightSavingTime;
  3242. proto.isLocal = isLocal;
  3243. proto.isUtcOffset = isUtcOffset;
  3244. proto.isUtc = isUtc;
  3245. proto.isUTC = isUtc;
  3246. // Timezone
  3247. proto.zoneAbbr = getZoneAbbr;
  3248. proto.zoneName = getZoneName;
  3249. // Deprecations
  3250. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  3251. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  3252. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  3253. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  3254. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  3255. function createUnix (input) {
  3256. return createLocal(input * 1000);
  3257. }
  3258. function createInZone () {
  3259. return createLocal.apply(null, arguments).parseZone();
  3260. }
  3261. function preParsePostFormat (string) {
  3262. return string;
  3263. }
  3264. var proto$1 = Locale.prototype;
  3265. proto$1.calendar = calendar;
  3266. proto$1.longDateFormat = longDateFormat;
  3267. proto$1.invalidDate = invalidDate;
  3268. proto$1.ordinal = ordinal;
  3269. proto$1.preparse = preParsePostFormat;
  3270. proto$1.postformat = preParsePostFormat;
  3271. proto$1.relativeTime = relativeTime;
  3272. proto$1.pastFuture = pastFuture;
  3273. proto$1.set = set;
  3274. // Month
  3275. proto$1.months = localeMonths;
  3276. proto$1.monthsShort = localeMonthsShort;
  3277. proto$1.monthsParse = localeMonthsParse;
  3278. proto$1.monthsRegex = monthsRegex;
  3279. proto$1.monthsShortRegex = monthsShortRegex;
  3280. // Week
  3281. proto$1.week = localeWeek;
  3282. proto$1.firstDayOfYear = localeFirstDayOfYear;
  3283. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  3284. // Day of Week
  3285. proto$1.weekdays = localeWeekdays;
  3286. proto$1.weekdaysMin = localeWeekdaysMin;
  3287. proto$1.weekdaysShort = localeWeekdaysShort;
  3288. proto$1.weekdaysParse = localeWeekdaysParse;
  3289. proto$1.weekdaysRegex = weekdaysRegex;
  3290. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  3291. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  3292. // Hours
  3293. proto$1.isPM = localeIsPM;
  3294. proto$1.meridiem = localeMeridiem;
  3295. function get$1 (format, index, field, setter) {
  3296. var locale = getLocale();
  3297. var utc = createUTC().set(setter, index);
  3298. return locale[field](utc, format);
  3299. }
  3300. function listMonthsImpl (format, index, field) {
  3301. if (isNumber(format)) {
  3302. index = format;
  3303. format = undefined;
  3304. }
  3305. format = format || '';
  3306. if (index != null) {
  3307. return get$1(format, index, field, 'month');
  3308. }
  3309. var i;
  3310. var out = [];
  3311. for (i = 0; i < 12; i++) {
  3312. out[i] = get$1(format, i, field, 'month');
  3313. }
  3314. return out;
  3315. }
  3316. // ()
  3317. // (5)
  3318. // (fmt, 5)
  3319. // (fmt)
  3320. // (true)
  3321. // (true, 5)
  3322. // (true, fmt, 5)
  3323. // (true, fmt)
  3324. function listWeekdaysImpl (localeSorted, format, index, field) {
  3325. if (typeof localeSorted === 'boolean') {
  3326. if (isNumber(format)) {
  3327. index = format;
  3328. format = undefined;
  3329. }
  3330. format = format || '';
  3331. } else {
  3332. format = localeSorted;
  3333. index = format;
  3334. localeSorted = false;
  3335. if (isNumber(format)) {
  3336. index = format;
  3337. format = undefined;
  3338. }
  3339. format = format || '';
  3340. }
  3341. var locale = getLocale(),
  3342. shift = localeSorted ? locale._week.dow : 0;
  3343. if (index != null) {
  3344. return get$1(format, (index + shift) % 7, field, 'day');
  3345. }
  3346. var i;
  3347. var out = [];
  3348. for (i = 0; i < 7; i++) {
  3349. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  3350. }
  3351. return out;
  3352. }
  3353. function listMonths (format, index) {
  3354. return listMonthsImpl(format, index, 'months');
  3355. }
  3356. function listMonthsShort (format, index) {
  3357. return listMonthsImpl(format, index, 'monthsShort');
  3358. }
  3359. function listWeekdays (localeSorted, format, index) {
  3360. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  3361. }
  3362. function listWeekdaysShort (localeSorted, format, index) {
  3363. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  3364. }
  3365. function listWeekdaysMin (localeSorted, format, index) {
  3366. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  3367. }
  3368. getSetGlobalLocale('en', {
  3369. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  3370. ordinal : function (number) {
  3371. var b = number % 10,
  3372. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  3373. (b === 1) ? 'st' :
  3374. (b === 2) ? 'nd' :
  3375. (b === 3) ? 'rd' : 'th';
  3376. return number + output;
  3377. }
  3378. });
  3379. // Side effect imports
  3380. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  3381. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  3382. var mathAbs = Math.abs;
  3383. function abs () {
  3384. var data = this._data;
  3385. this._milliseconds = mathAbs(this._milliseconds);
  3386. this._days = mathAbs(this._days);
  3387. this._months = mathAbs(this._months);
  3388. data.milliseconds = mathAbs(data.milliseconds);
  3389. data.seconds = mathAbs(data.seconds);
  3390. data.minutes = mathAbs(data.minutes);
  3391. data.hours = mathAbs(data.hours);
  3392. data.months = mathAbs(data.months);
  3393. data.years = mathAbs(data.years);
  3394. return this;
  3395. }
  3396. function addSubtract$1 (duration, input, value, direction) {
  3397. var other = createDuration(input, value);
  3398. duration._milliseconds += direction * other._milliseconds;
  3399. duration._days += direction * other._days;
  3400. duration._months += direction * other._months;
  3401. return duration._bubble();
  3402. }
  3403. // supports only 2.0-style add(1, 's') or add(duration)
  3404. function add$1 (input, value) {
  3405. return addSubtract$1(this, input, value, 1);
  3406. }
  3407. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  3408. function subtract$1 (input, value) {
  3409. return addSubtract$1(this, input, value, -1);
  3410. }
  3411. function absCeil (number) {
  3412. if (number < 0) {
  3413. return Math.floor(number);
  3414. } else {
  3415. return Math.ceil(number);
  3416. }
  3417. }
  3418. function bubble () {
  3419. var milliseconds = this._milliseconds;
  3420. var days = this._days;
  3421. var months = this._months;
  3422. var data = this._data;
  3423. var seconds, minutes, hours, years, monthsFromDays;
  3424. // if we have a mix of positive and negative values, bubble down first
  3425. // check: https://github.com/moment/moment/issues/2166
  3426. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  3427. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  3428. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  3429. days = 0;
  3430. months = 0;
  3431. }
  3432. // The following code bubbles up values, see the tests for
  3433. // examples of what that means.
  3434. data.milliseconds = milliseconds % 1000;
  3435. seconds = absFloor(milliseconds / 1000);
  3436. data.seconds = seconds % 60;
  3437. minutes = absFloor(seconds / 60);
  3438. data.minutes = minutes % 60;
  3439. hours = absFloor(minutes / 60);
  3440. data.hours = hours % 24;
  3441. days += absFloor(hours / 24);
  3442. // convert days to months
  3443. monthsFromDays = absFloor(daysToMonths(days));
  3444. months += monthsFromDays;
  3445. days -= absCeil(monthsToDays(monthsFromDays));
  3446. // 12 months -> 1 year
  3447. years = absFloor(months / 12);
  3448. months %= 12;
  3449. data.days = days;
  3450. data.months = months;
  3451. data.years = years;
  3452. return this;
  3453. }
  3454. function daysToMonths (days) {
  3455. // 400 years have 146097 days (taking into account leap year rules)
  3456. // 400 years have 12 months === 4800
  3457. return days * 4800 / 146097;
  3458. }
  3459. function monthsToDays (months) {
  3460. // the reverse of daysToMonths
  3461. return months * 146097 / 4800;
  3462. }
  3463. function as (units) {
  3464. if (!this.isValid()) {
  3465. return NaN;
  3466. }
  3467. var days;
  3468. var months;
  3469. var milliseconds = this._milliseconds;
  3470. units = normalizeUnits(units);
  3471. if (units === 'month' || units === 'year') {
  3472. days = this._days + milliseconds / 864e5;
  3473. months = this._months + daysToMonths(days);
  3474. return units === 'month' ? months : months / 12;
  3475. } else {
  3476. // handle milliseconds separately because of floating point math errors (issue #1867)
  3477. days = this._days + Math.round(monthsToDays(this._months));
  3478. switch (units) {
  3479. case 'week' : return days / 7 + milliseconds / 6048e5;
  3480. case 'day' : return days + milliseconds / 864e5;
  3481. case 'hour' : return days * 24 + milliseconds / 36e5;
  3482. case 'minute' : return days * 1440 + milliseconds / 6e4;
  3483. case 'second' : return days * 86400 + milliseconds / 1000;
  3484. // Math.floor prevents floating point math errors here
  3485. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  3486. default: throw new Error('Unknown unit ' + units);
  3487. }
  3488. }
  3489. }
  3490. // TODO: Use this.as('ms')?
  3491. function valueOf$1 () {
  3492. if (!this.isValid()) {
  3493. return NaN;
  3494. }
  3495. return (
  3496. this._milliseconds +
  3497. this._days * 864e5 +
  3498. (this._months % 12) * 2592e6 +
  3499. toInt(this._months / 12) * 31536e6
  3500. );
  3501. }
  3502. function makeAs (alias) {
  3503. return function () {
  3504. return this.as(alias);
  3505. };
  3506. }
  3507. var asMilliseconds = makeAs('ms');
  3508. var asSeconds = makeAs('s');
  3509. var asMinutes = makeAs('m');
  3510. var asHours = makeAs('h');
  3511. var asDays = makeAs('d');
  3512. var asWeeks = makeAs('w');
  3513. var asMonths = makeAs('M');
  3514. var asYears = makeAs('y');
  3515. function get$2 (units) {
  3516. units = normalizeUnits(units);
  3517. return this.isValid() ? this[units + 's']() : NaN;
  3518. }
  3519. function makeGetter(name) {
  3520. return function () {
  3521. return this.isValid() ? this._data[name] : NaN;
  3522. };
  3523. }
  3524. var milliseconds = makeGetter('milliseconds');
  3525. var seconds = makeGetter('seconds');
  3526. var minutes = makeGetter('minutes');
  3527. var hours = makeGetter('hours');
  3528. var days = makeGetter('days');
  3529. var months = makeGetter('months');
  3530. var years = makeGetter('years');
  3531. function weeks () {
  3532. return absFloor(this.days() / 7);
  3533. }
  3534. var round = Math.round;
  3535. var thresholds = {
  3536. ss: 44, // a few seconds to seconds
  3537. s : 45, // seconds to minute
  3538. m : 45, // minutes to hour
  3539. h : 22, // hours to day
  3540. d : 26, // days to month
  3541. M : 11 // months to year
  3542. };
  3543. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  3544. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  3545. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  3546. }
  3547. function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
  3548. var duration = createDuration(posNegDuration).abs();
  3549. var seconds = round(duration.as('s'));
  3550. var minutes = round(duration.as('m'));
  3551. var hours = round(duration.as('h'));
  3552. var days = round(duration.as('d'));
  3553. var months = round(duration.as('M'));
  3554. var years = round(duration.as('y'));
  3555. var a = seconds <= thresholds.ss && ['s', seconds] ||
  3556. seconds < thresholds.s && ['ss', seconds] ||
  3557. minutes <= 1 && ['m'] ||
  3558. minutes < thresholds.m && ['mm', minutes] ||
  3559. hours <= 1 && ['h'] ||
  3560. hours < thresholds.h && ['hh', hours] ||
  3561. days <= 1 && ['d'] ||
  3562. days < thresholds.d && ['dd', days] ||
  3563. months <= 1 && ['M'] ||
  3564. months < thresholds.M && ['MM', months] ||
  3565. years <= 1 && ['y'] || ['yy', years];
  3566. a[2] = withoutSuffix;
  3567. a[3] = +posNegDuration > 0;
  3568. a[4] = locale;
  3569. return substituteTimeAgo.apply(null, a);
  3570. }
  3571. // This function allows you to set the rounding function for relative time strings
  3572. function getSetRelativeTimeRounding (roundingFunction) {
  3573. if (roundingFunction === undefined) {
  3574. return round;
  3575. }
  3576. if (typeof(roundingFunction) === 'function') {
  3577. round = roundingFunction;
  3578. return true;
  3579. }
  3580. return false;
  3581. }
  3582. // This function allows you to set a threshold for relative time strings
  3583. function getSetRelativeTimeThreshold (threshold, limit) {
  3584. if (thresholds[threshold] === undefined) {
  3585. return false;
  3586. }
  3587. if (limit === undefined) {
  3588. return thresholds[threshold];
  3589. }
  3590. thresholds[threshold] = limit;
  3591. if (threshold === 's') {
  3592. thresholds.ss = limit - 1;
  3593. }
  3594. return true;
  3595. }
  3596. function humanize (withSuffix) {
  3597. if (!this.isValid()) {
  3598. return this.localeData().invalidDate();
  3599. }
  3600. var locale = this.localeData();
  3601. var output = relativeTime$1(this, !withSuffix, locale);
  3602. if (withSuffix) {
  3603. output = locale.pastFuture(+this, output);
  3604. }
  3605. return locale.postformat(output);
  3606. }
  3607. var abs$1 = Math.abs;
  3608. function toISOString$1() {
  3609. // for ISO strings we do not use the normal bubbling rules:
  3610. // * milliseconds bubble up until they become hours
  3611. // * days do not bubble at all
  3612. // * months bubble up until they become years
  3613. // This is because there is no context-free conversion between hours and days
  3614. // (think of clock changes)
  3615. // and also not between days and months (28-31 days per month)
  3616. if (!this.isValid()) {
  3617. return this.localeData().invalidDate();
  3618. }
  3619. var seconds = abs$1(this._milliseconds) / 1000;
  3620. var days = abs$1(this._days);
  3621. var months = abs$1(this._months);
  3622. var minutes, hours, years;
  3623. // 3600 seconds -> 60 minutes -> 1 hour
  3624. minutes = absFloor(seconds / 60);
  3625. hours = absFloor(minutes / 60);
  3626. seconds %= 60;
  3627. minutes %= 60;
  3628. // 12 months -> 1 year
  3629. years = absFloor(months / 12);
  3630. months %= 12;
  3631. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  3632. var Y = years;
  3633. var M = months;
  3634. var D = days;
  3635. var h = hours;
  3636. var m = minutes;
  3637. var s = seconds;
  3638. var total = this.asSeconds();
  3639. if (!total) {
  3640. // this is the same as C#'s (Noda) and python (isodate)...
  3641. // but not other JS (goog.date)
  3642. return 'P0D';
  3643. }
  3644. return (total < 0 ? '-' : '') +
  3645. 'P' +
  3646. (Y ? Y + 'Y' : '') +
  3647. (M ? M + 'M' : '') +
  3648. (D ? D + 'D' : '') +
  3649. ((h || m || s) ? 'T' : '') +
  3650. (h ? h + 'H' : '') +
  3651. (m ? m + 'M' : '') +
  3652. (s ? s + 'S' : '');
  3653. }
  3654. var proto$2 = Duration.prototype;
  3655. proto$2.isValid = isValid$1;
  3656. proto$2.abs = abs;
  3657. proto$2.add = add$1;
  3658. proto$2.subtract = subtract$1;
  3659. proto$2.as = as;
  3660. proto$2.asMilliseconds = asMilliseconds;
  3661. proto$2.asSeconds = asSeconds;
  3662. proto$2.asMinutes = asMinutes;
  3663. proto$2.asHours = asHours;
  3664. proto$2.asDays = asDays;
  3665. proto$2.asWeeks = asWeeks;
  3666. proto$2.asMonths = asMonths;
  3667. proto$2.asYears = asYears;
  3668. proto$2.valueOf = valueOf$1;
  3669. proto$2._bubble = bubble;
  3670. proto$2.get = get$2;
  3671. proto$2.milliseconds = milliseconds;
  3672. proto$2.seconds = seconds;
  3673. proto$2.minutes = minutes;
  3674. proto$2.hours = hours;
  3675. proto$2.days = days;
  3676. proto$2.weeks = weeks;
  3677. proto$2.months = months;
  3678. proto$2.years = years;
  3679. proto$2.humanize = humanize;
  3680. proto$2.toISOString = toISOString$1;
  3681. proto$2.toString = toISOString$1;
  3682. proto$2.toJSON = toISOString$1;
  3683. proto$2.locale = locale;
  3684. proto$2.localeData = localeData;
  3685. // Deprecations
  3686. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  3687. proto$2.lang = lang;
  3688. // Side effect imports
  3689. // FORMATTING
  3690. addFormatToken('X', 0, 0, 'unix');
  3691. addFormatToken('x', 0, 0, 'valueOf');
  3692. // PARSING
  3693. addRegexToken('x', matchSigned);
  3694. addRegexToken('X', matchTimestamp);
  3695. addParseToken('X', function (input, array, config) {
  3696. config._d = new Date(parseFloat(input, 10) * 1000);
  3697. });
  3698. addParseToken('x', function (input, array, config) {
  3699. config._d = new Date(toInt(input));
  3700. });
  3701. // Side effect imports
  3702. //! moment.js
  3703. //! version : 2.18.1
  3704. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  3705. //! license : MIT
  3706. //! momentjs.com
  3707. hooks.version = '2.18.1';
  3708. setHookCallback(createLocal);
  3709. hooks.fn = proto;
  3710. hooks.min = min;
  3711. hooks.max = max;
  3712. hooks.now = now;
  3713. hooks.utc = createUTC;
  3714. hooks.unix = createUnix;
  3715. hooks.months = listMonths;
  3716. hooks.isDate = isDate;
  3717. hooks.locale = getSetGlobalLocale;
  3718. hooks.invalid = createInvalid;
  3719. hooks.duration = createDuration;
  3720. hooks.isMoment = isMoment;
  3721. hooks.weekdays = listWeekdays;
  3722. hooks.parseZone = createInZone;
  3723. hooks.localeData = getLocale;
  3724. hooks.isDuration = isDuration;
  3725. hooks.monthsShort = listMonthsShort;
  3726. hooks.weekdaysMin = listWeekdaysMin;
  3727. hooks.defineLocale = defineLocale;
  3728. hooks.updateLocale = updateLocale;
  3729. hooks.locales = listLocales;
  3730. hooks.weekdaysShort = listWeekdaysShort;
  3731. hooks.normalizeUnits = normalizeUnits;
  3732. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  3733. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  3734. hooks.calendarFormat = getCalendarFormat;
  3735. hooks.prototype = proto;
  3736. //! moment.js locale configuration
  3737. //! locale : Afrikaans [af]
  3738. //! author : Werner Mollentze : https://github.com/wernerm
  3739. hooks.defineLocale('af', {
  3740. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  3741. monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  3742. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  3743. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  3744. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  3745. meridiemParse: /vm|nm/i,
  3746. isPM : function (input) {
  3747. return /^nm$/i.test(input);
  3748. },
  3749. meridiem : function (hours, minutes, isLower) {
  3750. if (hours < 12) {
  3751. return isLower ? 'vm' : 'VM';
  3752. } else {
  3753. return isLower ? 'nm' : 'NM';
  3754. }
  3755. },
  3756. longDateFormat : {
  3757. LT : 'HH:mm',
  3758. LTS : 'HH:mm:ss',
  3759. L : 'DD/MM/YYYY',
  3760. LL : 'D MMMM YYYY',
  3761. LLL : 'D MMMM YYYY HH:mm',
  3762. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3763. },
  3764. calendar : {
  3765. sameDay : '[Vandag om] LT',
  3766. nextDay : '[Môre om] LT',
  3767. nextWeek : 'dddd [om] LT',
  3768. lastDay : '[Gister om] LT',
  3769. lastWeek : '[Laas] dddd [om] LT',
  3770. sameElse : 'L'
  3771. },
  3772. relativeTime : {
  3773. future : 'oor %s',
  3774. past : '%s gelede',
  3775. s : '\'n paar sekondes',
  3776. m : '\'n minuut',
  3777. mm : '%d minute',
  3778. h : '\'n uur',
  3779. hh : '%d ure',
  3780. d : '\'n dag',
  3781. dd : '%d dae',
  3782. M : '\'n maand',
  3783. MM : '%d maande',
  3784. y : '\'n jaar',
  3785. yy : '%d jaar'
  3786. },
  3787. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  3788. ordinal : function (number) {
  3789. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  3790. },
  3791. week : {
  3792. dow : 1, // Maandag is die eerste dag van die week.
  3793. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  3794. }
  3795. });
  3796. //! moment.js locale configuration
  3797. //! locale : Arabic (Algeria) [ar-dz]
  3798. //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
  3799. hooks.defineLocale('ar-dz', {
  3800. months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3801. monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3802. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3803. weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3804. weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
  3805. weekdaysParseExact : true,
  3806. longDateFormat : {
  3807. LT : 'HH:mm',
  3808. LTS : 'HH:mm:ss',
  3809. L : 'DD/MM/YYYY',
  3810. LL : 'D MMMM YYYY',
  3811. LLL : 'D MMMM YYYY HH:mm',
  3812. LLLL : 'dddd D MMMM YYYY HH:mm'
  3813. },
  3814. calendar : {
  3815. sameDay: '[اليوم على الساعة] LT',
  3816. nextDay: '[غدا على الساعة] LT',
  3817. nextWeek: 'dddd [على الساعة] LT',
  3818. lastDay: '[أمس على الساعة] LT',
  3819. lastWeek: 'dddd [على الساعة] LT',
  3820. sameElse: 'L'
  3821. },
  3822. relativeTime : {
  3823. future : 'في %s',
  3824. past : 'منذ %s',
  3825. s : 'ثوان',
  3826. m : 'دقيقة',
  3827. mm : '%d دقائق',
  3828. h : 'ساعة',
  3829. hh : '%d ساعات',
  3830. d : 'يوم',
  3831. dd : '%d أيام',
  3832. M : 'شهر',
  3833. MM : '%d أشهر',
  3834. y : 'سنة',
  3835. yy : '%d سنوات'
  3836. },
  3837. week : {
  3838. dow : 0, // Sunday is the first day of the week.
  3839. doy : 4 // The week that contains Jan 1st is the first week of the year.
  3840. }
  3841. });
  3842. //! moment.js locale configuration
  3843. //! locale : Arabic (Kuwait) [ar-kw]
  3844. //! author : Nusret Parlak: https://github.com/nusretparlak
  3845. hooks.defineLocale('ar-kw', {
  3846. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3847. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3848. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3849. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3850. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3851. weekdaysParseExact : true,
  3852. longDateFormat : {
  3853. LT : 'HH:mm',
  3854. LTS : 'HH:mm:ss',
  3855. L : 'DD/MM/YYYY',
  3856. LL : 'D MMMM YYYY',
  3857. LLL : 'D MMMM YYYY HH:mm',
  3858. LLLL : 'dddd D MMMM YYYY HH:mm'
  3859. },
  3860. calendar : {
  3861. sameDay: '[اليوم على الساعة] LT',
  3862. nextDay: '[غدا على الساعة] LT',
  3863. nextWeek: 'dddd [على الساعة] LT',
  3864. lastDay: '[أمس على الساعة] LT',
  3865. lastWeek: 'dddd [على الساعة] LT',
  3866. sameElse: 'L'
  3867. },
  3868. relativeTime : {
  3869. future : 'في %s',
  3870. past : 'منذ %s',
  3871. s : 'ثوان',
  3872. m : 'دقيقة',
  3873. mm : '%d دقائق',
  3874. h : 'ساعة',
  3875. hh : '%d ساعات',
  3876. d : 'يوم',
  3877. dd : '%d أيام',
  3878. M : 'شهر',
  3879. MM : '%d أشهر',
  3880. y : 'سنة',
  3881. yy : '%d سنوات'
  3882. },
  3883. week : {
  3884. dow : 0, // Sunday is the first day of the week.
  3885. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3886. }
  3887. });
  3888. //! moment.js locale configuration
  3889. //! locale : Arabic (Lybia) [ar-ly]
  3890. //! author : Ali Hmer: https://github.com/kikoanis
  3891. var symbolMap = {
  3892. '1': '1',
  3893. '2': '2',
  3894. '3': '3',
  3895. '4': '4',
  3896. '5': '5',
  3897. '6': '6',
  3898. '7': '7',
  3899. '8': '8',
  3900. '9': '9',
  3901. '0': '0'
  3902. };
  3903. var pluralForm = function (n) {
  3904. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  3905. };
  3906. var plurals = {
  3907. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  3908. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  3909. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  3910. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  3911. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  3912. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  3913. };
  3914. var pluralize = function (u) {
  3915. return function (number, withoutSuffix, string, isFuture) {
  3916. var f = pluralForm(number),
  3917. str = plurals[u][pluralForm(number)];
  3918. if (f === 2) {
  3919. str = str[withoutSuffix ? 0 : 1];
  3920. }
  3921. return str.replace(/%d/i, number);
  3922. };
  3923. };
  3924. var months$1 = [
  3925. 'يناير',
  3926. 'فبراير',
  3927. 'مارس',
  3928. 'أبريل',
  3929. 'مايو',
  3930. 'يونيو',
  3931. 'يوليو',
  3932. 'أغسطس',
  3933. 'سبتمبر',
  3934. 'أكتوبر',
  3935. 'نوفمبر',
  3936. 'ديسمبر'
  3937. ];
  3938. hooks.defineLocale('ar-ly', {
  3939. months : months$1,
  3940. monthsShort : months$1,
  3941. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3942. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3943. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3944. weekdaysParseExact : true,
  3945. longDateFormat : {
  3946. LT : 'HH:mm',
  3947. LTS : 'HH:mm:ss',
  3948. L : 'D/\u200FM/\u200FYYYY',
  3949. LL : 'D MMMM YYYY',
  3950. LLL : 'D MMMM YYYY HH:mm',
  3951. LLLL : 'dddd D MMMM YYYY HH:mm'
  3952. },
  3953. meridiemParse: /ص|م/,
  3954. isPM : function (input) {
  3955. return 'م' === input;
  3956. },
  3957. meridiem : function (hour, minute, isLower) {
  3958. if (hour < 12) {
  3959. return 'ص';
  3960. } else {
  3961. return 'م';
  3962. }
  3963. },
  3964. calendar : {
  3965. sameDay: '[اليوم عند الساعة] LT',
  3966. nextDay: '[غدًا عند الساعة] LT',
  3967. nextWeek: 'dddd [عند الساعة] LT',
  3968. lastDay: '[أمس عند الساعة] LT',
  3969. lastWeek: 'dddd [عند الساعة] LT',
  3970. sameElse: 'L'
  3971. },
  3972. relativeTime : {
  3973. future : 'بعد %s',
  3974. past : 'منذ %s',
  3975. s : pluralize('s'),
  3976. m : pluralize('m'),
  3977. mm : pluralize('m'),
  3978. h : pluralize('h'),
  3979. hh : pluralize('h'),
  3980. d : pluralize('d'),
  3981. dd : pluralize('d'),
  3982. M : pluralize('M'),
  3983. MM : pluralize('M'),
  3984. y : pluralize('y'),
  3985. yy : pluralize('y')
  3986. },
  3987. preparse: function (string) {
  3988. return string.replace(/\u200f/g, '').replace(/،/g, ',');
  3989. },
  3990. postformat: function (string) {
  3991. return string.replace(/\d/g, function (match) {
  3992. return symbolMap[match];
  3993. }).replace(/,/g, '،');
  3994. },
  3995. week : {
  3996. dow : 6, // Saturday is the first day of the week.
  3997. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3998. }
  3999. });
  4000. //! moment.js locale configuration
  4001. //! locale : Arabic (Morocco) [ar-ma]
  4002. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  4003. //! author : Abdel Said : https://github.com/abdelsaid
  4004. hooks.defineLocale('ar-ma', {
  4005. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4006. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4007. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4008. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  4009. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4010. weekdaysParseExact : true,
  4011. longDateFormat : {
  4012. LT : 'HH:mm',
  4013. LTS : 'HH:mm:ss',
  4014. L : 'DD/MM/YYYY',
  4015. LL : 'D MMMM YYYY',
  4016. LLL : 'D MMMM YYYY HH:mm',
  4017. LLLL : 'dddd D MMMM YYYY HH:mm'
  4018. },
  4019. calendar : {
  4020. sameDay: '[اليوم على الساعة] LT',
  4021. nextDay: '[غدا على الساعة] LT',
  4022. nextWeek: 'dddd [على الساعة] LT',
  4023. lastDay: '[أمس على الساعة] LT',
  4024. lastWeek: 'dddd [على الساعة] LT',
  4025. sameElse: 'L'
  4026. },
  4027. relativeTime : {
  4028. future : 'في %s',
  4029. past : 'منذ %s',
  4030. s : 'ثوان',
  4031. m : 'دقيقة',
  4032. mm : '%d دقائق',
  4033. h : 'ساعة',
  4034. hh : '%d ساعات',
  4035. d : 'يوم',
  4036. dd : '%d أيام',
  4037. M : 'شهر',
  4038. MM : '%d أشهر',
  4039. y : 'سنة',
  4040. yy : '%d سنوات'
  4041. },
  4042. week : {
  4043. dow : 6, // Saturday is the first day of the week.
  4044. doy : 12 // The week that contains Jan 1st is the first week of the year.
  4045. }
  4046. });
  4047. //! moment.js locale configuration
  4048. //! locale : Arabic (Saudi Arabia) [ar-sa]
  4049. //! author : Suhail Alkowaileet : https://github.com/xsoh
  4050. var symbolMap$1 = {
  4051. '1': '١',
  4052. '2': '٢',
  4053. '3': '٣',
  4054. '4': '٤',
  4055. '5': '٥',
  4056. '6': '٦',
  4057. '7': '٧',
  4058. '8': '٨',
  4059. '9': '٩',
  4060. '0': '٠'
  4061. };
  4062. var numberMap = {
  4063. '١': '1',
  4064. '٢': '2',
  4065. '٣': '3',
  4066. '٤': '4',
  4067. '٥': '5',
  4068. '٦': '6',
  4069. '٧': '7',
  4070. '٨': '8',
  4071. '٩': '9',
  4072. '٠': '0'
  4073. };
  4074. hooks.defineLocale('ar-sa', {
  4075. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4076. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4077. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4078. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4079. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4080. weekdaysParseExact : true,
  4081. longDateFormat : {
  4082. LT : 'HH:mm',
  4083. LTS : 'HH:mm:ss',
  4084. L : 'DD/MM/YYYY',
  4085. LL : 'D MMMM YYYY',
  4086. LLL : 'D MMMM YYYY HH:mm',
  4087. LLLL : 'dddd D MMMM YYYY HH:mm'
  4088. },
  4089. meridiemParse: /ص|م/,
  4090. isPM : function (input) {
  4091. return 'م' === input;
  4092. },
  4093. meridiem : function (hour, minute, isLower) {
  4094. if (hour < 12) {
  4095. return 'ص';
  4096. } else {
  4097. return 'م';
  4098. }
  4099. },
  4100. calendar : {
  4101. sameDay: '[اليوم على الساعة] LT',
  4102. nextDay: '[غدا على الساعة] LT',
  4103. nextWeek: 'dddd [على الساعة] LT',
  4104. lastDay: '[أمس على الساعة] LT',
  4105. lastWeek: 'dddd [على الساعة] LT',
  4106. sameElse: 'L'
  4107. },
  4108. relativeTime : {
  4109. future : 'في %s',
  4110. past : 'منذ %s',
  4111. s : 'ثوان',
  4112. m : 'دقيقة',
  4113. mm : '%d دقائق',
  4114. h : 'ساعة',
  4115. hh : '%d ساعات',
  4116. d : 'يوم',
  4117. dd : '%d أيام',
  4118. M : 'شهر',
  4119. MM : '%d أشهر',
  4120. y : 'سنة',
  4121. yy : '%d سنوات'
  4122. },
  4123. preparse: function (string) {
  4124. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4125. return numberMap[match];
  4126. }).replace(/،/g, ',');
  4127. },
  4128. postformat: function (string) {
  4129. return string.replace(/\d/g, function (match) {
  4130. return symbolMap$1[match];
  4131. }).replace(/,/g, '،');
  4132. },
  4133. week : {
  4134. dow : 0, // Sunday is the first day of the week.
  4135. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4136. }
  4137. });
  4138. //! moment.js locale configuration
  4139. //! locale : Arabic (Tunisia) [ar-tn]
  4140. //! author : Nader Toukabri : https://github.com/naderio
  4141. hooks.defineLocale('ar-tn', {
  4142. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4143. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4144. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4145. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4146. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4147. weekdaysParseExact : true,
  4148. longDateFormat: {
  4149. LT: 'HH:mm',
  4150. LTS: 'HH:mm:ss',
  4151. L: 'DD/MM/YYYY',
  4152. LL: 'D MMMM YYYY',
  4153. LLL: 'D MMMM YYYY HH:mm',
  4154. LLLL: 'dddd D MMMM YYYY HH:mm'
  4155. },
  4156. calendar: {
  4157. sameDay: '[اليوم على الساعة] LT',
  4158. nextDay: '[غدا على الساعة] LT',
  4159. nextWeek: 'dddd [على الساعة] LT',
  4160. lastDay: '[أمس على الساعة] LT',
  4161. lastWeek: 'dddd [على الساعة] LT',
  4162. sameElse: 'L'
  4163. },
  4164. relativeTime: {
  4165. future: 'في %s',
  4166. past: 'منذ %s',
  4167. s: 'ثوان',
  4168. m: 'دقيقة',
  4169. mm: '%d دقائق',
  4170. h: 'ساعة',
  4171. hh: '%d ساعات',
  4172. d: 'يوم',
  4173. dd: '%d أيام',
  4174. M: 'شهر',
  4175. MM: '%d أشهر',
  4176. y: 'سنة',
  4177. yy: '%d سنوات'
  4178. },
  4179. week: {
  4180. dow: 1, // Monday is the first day of the week.
  4181. doy: 4 // The week that contains Jan 4th is the first week of the year.
  4182. }
  4183. });
  4184. //! moment.js locale configuration
  4185. //! locale : Arabic [ar]
  4186. //! author : Abdel Said: https://github.com/abdelsaid
  4187. //! author : Ahmed Elkhatib
  4188. //! author : forabi https://github.com/forabi
  4189. var symbolMap$2 = {
  4190. '1': '١',
  4191. '2': '٢',
  4192. '3': '٣',
  4193. '4': '٤',
  4194. '5': '٥',
  4195. '6': '٦',
  4196. '7': '٧',
  4197. '8': '٨',
  4198. '9': '٩',
  4199. '0': '٠'
  4200. };
  4201. var numberMap$1 = {
  4202. '١': '1',
  4203. '٢': '2',
  4204. '٣': '3',
  4205. '٤': '4',
  4206. '٥': '5',
  4207. '٦': '6',
  4208. '٧': '7',
  4209. '٨': '8',
  4210. '٩': '9',
  4211. '٠': '0'
  4212. };
  4213. var pluralForm$1 = function (n) {
  4214. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  4215. };
  4216. var plurals$1 = {
  4217. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  4218. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  4219. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  4220. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  4221. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  4222. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  4223. };
  4224. var pluralize$1 = function (u) {
  4225. return function (number, withoutSuffix, string, isFuture) {
  4226. var f = pluralForm$1(number),
  4227. str = plurals$1[u][pluralForm$1(number)];
  4228. if (f === 2) {
  4229. str = str[withoutSuffix ? 0 : 1];
  4230. }
  4231. return str.replace(/%d/i, number);
  4232. };
  4233. };
  4234. var months$2 = [
  4235. 'كانون الثاني يناير',
  4236. 'شباط فبراير',
  4237. 'آذار مارس',
  4238. 'نيسان أبريل',
  4239. 'أيار مايو',
  4240. 'حزيران يونيو',
  4241. 'تموز يوليو',
  4242. 'آب أغسطس',
  4243. 'أيلول سبتمبر',
  4244. 'تشرين الأول أكتوبر',
  4245. 'تشرين الثاني نوفمبر',
  4246. 'كانون الأول ديسمبر'
  4247. ];
  4248. hooks.defineLocale('ar', {
  4249. months : months$2,
  4250. monthsShort : months$2,
  4251. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4252. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4253. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4254. weekdaysParseExact : true,
  4255. longDateFormat : {
  4256. LT : 'HH:mm',
  4257. LTS : 'HH:mm:ss',
  4258. L : 'D/\u200FM/\u200FYYYY',
  4259. LL : 'D MMMM YYYY',
  4260. LLL : 'D MMMM YYYY HH:mm',
  4261. LLLL : 'dddd D MMMM YYYY HH:mm'
  4262. },
  4263. meridiemParse: /ص|م/,
  4264. isPM : function (input) {
  4265. return 'م' === input;
  4266. },
  4267. meridiem : function (hour, minute, isLower) {
  4268. if (hour < 12) {
  4269. return 'ص';
  4270. } else {
  4271. return 'م';
  4272. }
  4273. },
  4274. calendar : {
  4275. sameDay: '[اليوم عند الساعة] LT',
  4276. nextDay: '[غدًا عند الساعة] LT',
  4277. nextWeek: 'dddd [عند الساعة] LT',
  4278. lastDay: '[أمس عند الساعة] LT',
  4279. lastWeek: 'dddd [عند الساعة] LT',
  4280. sameElse: 'L'
  4281. },
  4282. relativeTime : {
  4283. future : 'بعد %s',
  4284. past : 'منذ %s',
  4285. s : pluralize$1('s'),
  4286. m : pluralize$1('m'),
  4287. mm : pluralize$1('m'),
  4288. h : pluralize$1('h'),
  4289. hh : pluralize$1('h'),
  4290. d : pluralize$1('d'),
  4291. dd : pluralize$1('d'),
  4292. M : pluralize$1('M'),
  4293. MM : pluralize$1('M'),
  4294. y : pluralize$1('y'),
  4295. yy : pluralize$1('y')
  4296. },
  4297. preparse: function (string) {
  4298. return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4299. return numberMap$1[match];
  4300. }).replace(/،/g, ',');
  4301. },
  4302. postformat: function (string) {
  4303. return string.replace(/\d/g, function (match) {
  4304. return symbolMap$2[match];
  4305. }).replace(/,/g, '،');
  4306. },
  4307. week : {
  4308. dow : 6, // Saturday is the first day of the week.
  4309. doy : 12 // The week that contains Jan 1st is the first week of the year.
  4310. }
  4311. });
  4312. //! moment.js locale configuration
  4313. //! locale : Azerbaijani [az]
  4314. //! author : topchiyev : https://github.com/topchiyev
  4315. var suffixes = {
  4316. 1: '-inci',
  4317. 5: '-inci',
  4318. 8: '-inci',
  4319. 70: '-inci',
  4320. 80: '-inci',
  4321. 2: '-nci',
  4322. 7: '-nci',
  4323. 20: '-nci',
  4324. 50: '-nci',
  4325. 3: '-üncü',
  4326. 4: '-üncü',
  4327. 100: '-üncü',
  4328. 6: '-ncı',
  4329. 9: '-uncu',
  4330. 10: '-uncu',
  4331. 30: '-uncu',
  4332. 60: '-ıncı',
  4333. 90: '-ıncı'
  4334. };
  4335. hooks.defineLocale('az', {
  4336. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  4337. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  4338. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  4339. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  4340. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  4341. weekdaysParseExact : true,
  4342. longDateFormat : {
  4343. LT : 'HH:mm',
  4344. LTS : 'HH:mm:ss',
  4345. L : 'DD.MM.YYYY',
  4346. LL : 'D MMMM YYYY',
  4347. LLL : 'D MMMM YYYY HH:mm',
  4348. LLLL : 'dddd, D MMMM YYYY HH:mm'
  4349. },
  4350. calendar : {
  4351. sameDay : '[bugün saat] LT',
  4352. nextDay : '[sabah saat] LT',
  4353. nextWeek : '[gələn həftə] dddd [saat] LT',
  4354. lastDay : '[dünən] LT',
  4355. lastWeek : '[keçən həftə] dddd [saat] LT',
  4356. sameElse : 'L'
  4357. },
  4358. relativeTime : {
  4359. future : '%s sonra',
  4360. past : '%s əvvəl',
  4361. s : 'birneçə saniyyə',
  4362. m : 'bir dəqiqə',
  4363. mm : '%d dəqiqə',
  4364. h : 'bir saat',
  4365. hh : '%d saat',
  4366. d : 'bir gün',
  4367. dd : '%d gün',
  4368. M : 'bir ay',
  4369. MM : '%d ay',
  4370. y : 'bir il',
  4371. yy : '%d il'
  4372. },
  4373. meridiemParse: /gecə|səhər|gündüz|axşam/,
  4374. isPM : function (input) {
  4375. return /^(gündüz|axşam)$/.test(input);
  4376. },
  4377. meridiem : function (hour, minute, isLower) {
  4378. if (hour < 4) {
  4379. return 'gecə';
  4380. } else if (hour < 12) {
  4381. return 'səhər';
  4382. } else if (hour < 17) {
  4383. return 'gündüz';
  4384. } else {
  4385. return 'axşam';
  4386. }
  4387. },
  4388. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  4389. ordinal : function (number) {
  4390. if (number === 0) { // special case for zero
  4391. return number + '-ıncı';
  4392. }
  4393. var a = number % 10,
  4394. b = number % 100 - a,
  4395. c = number >= 100 ? 100 : null;
  4396. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  4397. },
  4398. week : {
  4399. dow : 1, // Monday is the first day of the week.
  4400. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4401. }
  4402. });
  4403. //! moment.js locale configuration
  4404. //! locale : Belarusian [be]
  4405. //! author : Dmitry Demidov : https://github.com/demidov91
  4406. //! author: Praleska: http://praleska.pro/
  4407. //! Author : Menelion Elensúle : https://github.com/Oire
  4408. function plural(word, num) {
  4409. var forms = word.split('_');
  4410. 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]);
  4411. }
  4412. function relativeTimeWithPlural(number, withoutSuffix, key) {
  4413. var format = {
  4414. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  4415. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  4416. 'dd': 'дзень_дні_дзён',
  4417. 'MM': 'месяц_месяцы_месяцаў',
  4418. 'yy': 'год_гады_гадоў'
  4419. };
  4420. if (key === 'm') {
  4421. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  4422. }
  4423. else if (key === 'h') {
  4424. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  4425. }
  4426. else {
  4427. return number + ' ' + plural(format[key], +number);
  4428. }
  4429. }
  4430. hooks.defineLocale('be', {
  4431. months : {
  4432. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  4433. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  4434. },
  4435. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  4436. weekdays : {
  4437. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  4438. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  4439. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  4440. },
  4441. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4442. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4443. longDateFormat : {
  4444. LT : 'HH:mm',
  4445. LTS : 'HH:mm:ss',
  4446. L : 'DD.MM.YYYY',
  4447. LL : 'D MMMM YYYY г.',
  4448. LLL : 'D MMMM YYYY г., HH:mm',
  4449. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  4450. },
  4451. calendar : {
  4452. sameDay: '[Сёння ў] LT',
  4453. nextDay: '[Заўтра ў] LT',
  4454. lastDay: '[Учора ў] LT',
  4455. nextWeek: function () {
  4456. return '[У] dddd [ў] LT';
  4457. },
  4458. lastWeek: function () {
  4459. switch (this.day()) {
  4460. case 0:
  4461. case 3:
  4462. case 5:
  4463. case 6:
  4464. return '[У мінулую] dddd [ў] LT';
  4465. case 1:
  4466. case 2:
  4467. case 4:
  4468. return '[У мінулы] dddd [ў] LT';
  4469. }
  4470. },
  4471. sameElse: 'L'
  4472. },
  4473. relativeTime : {
  4474. future : 'праз %s',
  4475. past : '%s таму',
  4476. s : 'некалькі секунд',
  4477. m : relativeTimeWithPlural,
  4478. mm : relativeTimeWithPlural,
  4479. h : relativeTimeWithPlural,
  4480. hh : relativeTimeWithPlural,
  4481. d : 'дзень',
  4482. dd : relativeTimeWithPlural,
  4483. M : 'месяц',
  4484. MM : relativeTimeWithPlural,
  4485. y : 'год',
  4486. yy : relativeTimeWithPlural
  4487. },
  4488. meridiemParse: /ночы|раніцы|дня|вечара/,
  4489. isPM : function (input) {
  4490. return /^(дня|вечара)$/.test(input);
  4491. },
  4492. meridiem : function (hour, minute, isLower) {
  4493. if (hour < 4) {
  4494. return 'ночы';
  4495. } else if (hour < 12) {
  4496. return 'раніцы';
  4497. } else if (hour < 17) {
  4498. return 'дня';
  4499. } else {
  4500. return 'вечара';
  4501. }
  4502. },
  4503. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  4504. ordinal: function (number, period) {
  4505. switch (period) {
  4506. case 'M':
  4507. case 'd':
  4508. case 'DDD':
  4509. case 'w':
  4510. case 'W':
  4511. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  4512. case 'D':
  4513. return number + '-га';
  4514. default:
  4515. return number;
  4516. }
  4517. },
  4518. week : {
  4519. dow : 1, // Monday is the first day of the week.
  4520. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4521. }
  4522. });
  4523. //! moment.js locale configuration
  4524. //! locale : Bulgarian [bg]
  4525. //! author : Krasen Borisov : https://github.com/kraz
  4526. hooks.defineLocale('bg', {
  4527. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  4528. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  4529. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  4530. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  4531. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  4532. longDateFormat : {
  4533. LT : 'H:mm',
  4534. LTS : 'H:mm:ss',
  4535. L : 'D.MM.YYYY',
  4536. LL : 'D MMMM YYYY',
  4537. LLL : 'D MMMM YYYY H:mm',
  4538. LLLL : 'dddd, D MMMM YYYY H:mm'
  4539. },
  4540. calendar : {
  4541. sameDay : '[Днес в] LT',
  4542. nextDay : '[Утре в] LT',
  4543. nextWeek : 'dddd [в] LT',
  4544. lastDay : '[Вчера в] LT',
  4545. lastWeek : function () {
  4546. switch (this.day()) {
  4547. case 0:
  4548. case 3:
  4549. case 6:
  4550. return '[В изминалата] dddd [в] LT';
  4551. case 1:
  4552. case 2:
  4553. case 4:
  4554. case 5:
  4555. return '[В изминалия] dddd [в] LT';
  4556. }
  4557. },
  4558. sameElse : 'L'
  4559. },
  4560. relativeTime : {
  4561. future : 'след %s',
  4562. past : 'преди %s',
  4563. s : 'няколко секунди',
  4564. m : 'минута',
  4565. mm : '%d минути',
  4566. h : 'час',
  4567. hh : '%d часа',
  4568. d : 'ден',
  4569. dd : '%d дни',
  4570. M : 'месец',
  4571. MM : '%d месеца',
  4572. y : 'година',
  4573. yy : '%d години'
  4574. },
  4575. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  4576. ordinal : function (number) {
  4577. var lastDigit = number % 10,
  4578. last2Digits = number % 100;
  4579. if (number === 0) {
  4580. return number + '-ев';
  4581. } else if (last2Digits === 0) {
  4582. return number + '-ен';
  4583. } else if (last2Digits > 10 && last2Digits < 20) {
  4584. return number + '-ти';
  4585. } else if (lastDigit === 1) {
  4586. return number + '-ви';
  4587. } else if (lastDigit === 2) {
  4588. return number + '-ри';
  4589. } else if (lastDigit === 7 || lastDigit === 8) {
  4590. return number + '-ми';
  4591. } else {
  4592. return number + '-ти';
  4593. }
  4594. },
  4595. week : {
  4596. dow : 1, // Monday is the first day of the week.
  4597. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4598. }
  4599. });
  4600. //! moment.js locale configuration
  4601. //! locale : Bengali [bn]
  4602. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  4603. var symbolMap$3 = {
  4604. '1': '১',
  4605. '2': '২',
  4606. '3': '৩',
  4607. '4': '৪',
  4608. '5': '৫',
  4609. '6': '৬',
  4610. '7': '৭',
  4611. '8': '৮',
  4612. '9': '৯',
  4613. '0': '০'
  4614. };
  4615. var numberMap$2 = {
  4616. '১': '1',
  4617. '২': '2',
  4618. '৩': '3',
  4619. '৪': '4',
  4620. '৫': '5',
  4621. '৬': '6',
  4622. '৭': '7',
  4623. '৮': '8',
  4624. '৯': '9',
  4625. '০': '0'
  4626. };
  4627. hooks.defineLocale('bn', {
  4628. months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  4629. monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  4630. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  4631. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  4632. weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
  4633. longDateFormat : {
  4634. LT : 'A h:mm সময়',
  4635. LTS : 'A h:mm:ss সময়',
  4636. L : 'DD/MM/YYYY',
  4637. LL : 'D MMMM YYYY',
  4638. LLL : 'D MMMM YYYY, A h:mm সময়',
  4639. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  4640. },
  4641. calendar : {
  4642. sameDay : '[আজ] LT',
  4643. nextDay : '[আগামীকাল] LT',
  4644. nextWeek : 'dddd, LT',
  4645. lastDay : '[গতকাল] LT',
  4646. lastWeek : '[গত] dddd, LT',
  4647. sameElse : 'L'
  4648. },
  4649. relativeTime : {
  4650. future : '%s পরে',
  4651. past : '%s আগে',
  4652. s : 'কয়েক সেকেন্ড',
  4653. m : 'এক মিনিট',
  4654. mm : '%d মিনিট',
  4655. h : 'এক ঘন্টা',
  4656. hh : '%d ঘন্টা',
  4657. d : 'এক দিন',
  4658. dd : '%d দিন',
  4659. M : 'এক মাস',
  4660. MM : '%d মাস',
  4661. y : 'এক বছর',
  4662. yy : '%d বছর'
  4663. },
  4664. preparse: function (string) {
  4665. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  4666. return numberMap$2[match];
  4667. });
  4668. },
  4669. postformat: function (string) {
  4670. return string.replace(/\d/g, function (match) {
  4671. return symbolMap$3[match];
  4672. });
  4673. },
  4674. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  4675. meridiemHour : function (hour, meridiem) {
  4676. if (hour === 12) {
  4677. hour = 0;
  4678. }
  4679. if ((meridiem === 'রাত' && hour >= 4) ||
  4680. (meridiem === 'দুপুর' && hour < 5) ||
  4681. meridiem === 'বিকাল') {
  4682. return hour + 12;
  4683. } else {
  4684. return hour;
  4685. }
  4686. },
  4687. meridiem : function (hour, minute, isLower) {
  4688. if (hour < 4) {
  4689. return 'রাত';
  4690. } else if (hour < 10) {
  4691. return 'সকাল';
  4692. } else if (hour < 17) {
  4693. return 'দুপুর';
  4694. } else if (hour < 20) {
  4695. return 'বিকাল';
  4696. } else {
  4697. return 'রাত';
  4698. }
  4699. },
  4700. week : {
  4701. dow : 0, // Sunday is the first day of the week.
  4702. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4703. }
  4704. });
  4705. //! moment.js locale configuration
  4706. //! locale : Tibetan [bo]
  4707. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  4708. var symbolMap$4 = {
  4709. '1': '༡',
  4710. '2': '༢',
  4711. '3': '༣',
  4712. '4': '༤',
  4713. '5': '༥',
  4714. '6': '༦',
  4715. '7': '༧',
  4716. '8': '༨',
  4717. '9': '༩',
  4718. '0': '༠'
  4719. };
  4720. var numberMap$3 = {
  4721. '༡': '1',
  4722. '༢': '2',
  4723. '༣': '3',
  4724. '༤': '4',
  4725. '༥': '5',
  4726. '༦': '6',
  4727. '༧': '7',
  4728. '༨': '8',
  4729. '༩': '9',
  4730. '༠': '0'
  4731. };
  4732. hooks.defineLocale('bo', {
  4733. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4734. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4735. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  4736. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4737. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4738. longDateFormat : {
  4739. LT : 'A h:mm',
  4740. LTS : 'A h:mm:ss',
  4741. L : 'DD/MM/YYYY',
  4742. LL : 'D MMMM YYYY',
  4743. LLL : 'D MMMM YYYY, A h:mm',
  4744. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  4745. },
  4746. calendar : {
  4747. sameDay : '[དི་རིང] LT',
  4748. nextDay : '[སང་ཉིན] LT',
  4749. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  4750. lastDay : '[ཁ་སང] LT',
  4751. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  4752. sameElse : 'L'
  4753. },
  4754. relativeTime : {
  4755. future : '%s ལ་',
  4756. past : '%s སྔན་ལ',
  4757. s : 'ལམ་སང',
  4758. m : 'སྐར་མ་གཅིག',
  4759. mm : '%d སྐར་མ',
  4760. h : 'ཆུ་ཚོད་གཅིག',
  4761. hh : '%d ཆུ་ཚོད',
  4762. d : 'ཉིན་གཅིག',
  4763. dd : '%d ཉིན་',
  4764. M : 'ཟླ་བ་གཅིག',
  4765. MM : '%d ཟླ་བ',
  4766. y : 'ལོ་གཅིག',
  4767. yy : '%d ལོ'
  4768. },
  4769. preparse: function (string) {
  4770. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  4771. return numberMap$3[match];
  4772. });
  4773. },
  4774. postformat: function (string) {
  4775. return string.replace(/\d/g, function (match) {
  4776. return symbolMap$4[match];
  4777. });
  4778. },
  4779. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  4780. meridiemHour : function (hour, meridiem) {
  4781. if (hour === 12) {
  4782. hour = 0;
  4783. }
  4784. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  4785. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  4786. meridiem === 'དགོང་དག') {
  4787. return hour + 12;
  4788. } else {
  4789. return hour;
  4790. }
  4791. },
  4792. meridiem : function (hour, minute, isLower) {
  4793. if (hour < 4) {
  4794. return 'མཚན་མོ';
  4795. } else if (hour < 10) {
  4796. return 'ཞོགས་ཀས';
  4797. } else if (hour < 17) {
  4798. return 'ཉིན་གུང';
  4799. } else if (hour < 20) {
  4800. return 'དགོང་དག';
  4801. } else {
  4802. return 'མཚན་མོ';
  4803. }
  4804. },
  4805. week : {
  4806. dow : 0, // Sunday is the first day of the week.
  4807. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4808. }
  4809. });
  4810. //! moment.js locale configuration
  4811. //! locale : Breton [br]
  4812. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  4813. function relativeTimeWithMutation(number, withoutSuffix, key) {
  4814. var format = {
  4815. 'mm': 'munutenn',
  4816. 'MM': 'miz',
  4817. 'dd': 'devezh'
  4818. };
  4819. return number + ' ' + mutation(format[key], number);
  4820. }
  4821. function specialMutationForYears(number) {
  4822. switch (lastNumber(number)) {
  4823. case 1:
  4824. case 3:
  4825. case 4:
  4826. case 5:
  4827. case 9:
  4828. return number + ' bloaz';
  4829. default:
  4830. return number + ' vloaz';
  4831. }
  4832. }
  4833. function lastNumber(number) {
  4834. if (number > 9) {
  4835. return lastNumber(number % 10);
  4836. }
  4837. return number;
  4838. }
  4839. function mutation(text, number) {
  4840. if (number === 2) {
  4841. return softMutation(text);
  4842. }
  4843. return text;
  4844. }
  4845. function softMutation(text) {
  4846. var mutationTable = {
  4847. 'm': 'v',
  4848. 'b': 'v',
  4849. 'd': 'z'
  4850. };
  4851. if (mutationTable[text.charAt(0)] === undefined) {
  4852. return text;
  4853. }
  4854. return mutationTable[text.charAt(0)] + text.substring(1);
  4855. }
  4856. hooks.defineLocale('br', {
  4857. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  4858. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  4859. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  4860. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  4861. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  4862. weekdaysParseExact : true,
  4863. longDateFormat : {
  4864. LT : 'h[e]mm A',
  4865. LTS : 'h[e]mm:ss A',
  4866. L : 'DD/MM/YYYY',
  4867. LL : 'D [a viz] MMMM YYYY',
  4868. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  4869. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  4870. },
  4871. calendar : {
  4872. sameDay : '[Hiziv da] LT',
  4873. nextDay : '[Warc\'hoazh da] LT',
  4874. nextWeek : 'dddd [da] LT',
  4875. lastDay : '[Dec\'h da] LT',
  4876. lastWeek : 'dddd [paset da] LT',
  4877. sameElse : 'L'
  4878. },
  4879. relativeTime : {
  4880. future : 'a-benn %s',
  4881. past : '%s \'zo',
  4882. s : 'un nebeud segondennoù',
  4883. m : 'ur vunutenn',
  4884. mm : relativeTimeWithMutation,
  4885. h : 'un eur',
  4886. hh : '%d eur',
  4887. d : 'un devezh',
  4888. dd : relativeTimeWithMutation,
  4889. M : 'ur miz',
  4890. MM : relativeTimeWithMutation,
  4891. y : 'ur bloaz',
  4892. yy : specialMutationForYears
  4893. },
  4894. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  4895. ordinal : function (number) {
  4896. var output = (number === 1) ? 'añ' : 'vet';
  4897. return number + output;
  4898. },
  4899. week : {
  4900. dow : 1, // Monday is the first day of the week.
  4901. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4902. }
  4903. });
  4904. //! moment.js locale configuration
  4905. //! locale : Bosnian [bs]
  4906. //! author : Nedim Cholich : https://github.com/frontyard
  4907. //! based on (hr) translation by Bojan Marković
  4908. function translate(number, withoutSuffix, key) {
  4909. var result = number + ' ';
  4910. switch (key) {
  4911. case 'm':
  4912. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  4913. case 'mm':
  4914. if (number === 1) {
  4915. result += 'minuta';
  4916. } else if (number === 2 || number === 3 || number === 4) {
  4917. result += 'minute';
  4918. } else {
  4919. result += 'minuta';
  4920. }
  4921. return result;
  4922. case 'h':
  4923. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  4924. case 'hh':
  4925. if (number === 1) {
  4926. result += 'sat';
  4927. } else if (number === 2 || number === 3 || number === 4) {
  4928. result += 'sata';
  4929. } else {
  4930. result += 'sati';
  4931. }
  4932. return result;
  4933. case 'dd':
  4934. if (number === 1) {
  4935. result += 'dan';
  4936. } else {
  4937. result += 'dana';
  4938. }
  4939. return result;
  4940. case 'MM':
  4941. if (number === 1) {
  4942. result += 'mjesec';
  4943. } else if (number === 2 || number === 3 || number === 4) {
  4944. result += 'mjeseca';
  4945. } else {
  4946. result += 'mjeseci';
  4947. }
  4948. return result;
  4949. case 'yy':
  4950. if (number === 1) {
  4951. result += 'godina';
  4952. } else if (number === 2 || number === 3 || number === 4) {
  4953. result += 'godine';
  4954. } else {
  4955. result += 'godina';
  4956. }
  4957. return result;
  4958. }
  4959. }
  4960. hooks.defineLocale('bs', {
  4961. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  4962. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  4963. monthsParseExact: true,
  4964. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  4965. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  4966. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  4967. weekdaysParseExact : true,
  4968. longDateFormat : {
  4969. LT : 'H:mm',
  4970. LTS : 'H:mm:ss',
  4971. L : 'DD.MM.YYYY',
  4972. LL : 'D. MMMM YYYY',
  4973. LLL : 'D. MMMM YYYY H:mm',
  4974. LLLL : 'dddd, D. MMMM YYYY H:mm'
  4975. },
  4976. calendar : {
  4977. sameDay : '[danas u] LT',
  4978. nextDay : '[sutra u] LT',
  4979. nextWeek : function () {
  4980. switch (this.day()) {
  4981. case 0:
  4982. return '[u] [nedjelju] [u] LT';
  4983. case 3:
  4984. return '[u] [srijedu] [u] LT';
  4985. case 6:
  4986. return '[u] [subotu] [u] LT';
  4987. case 1:
  4988. case 2:
  4989. case 4:
  4990. case 5:
  4991. return '[u] dddd [u] LT';
  4992. }
  4993. },
  4994. lastDay : '[jučer u] LT',
  4995. lastWeek : function () {
  4996. switch (this.day()) {
  4997. case 0:
  4998. case 3:
  4999. return '[prošlu] dddd [u] LT';
  5000. case 6:
  5001. return '[prošle] [subote] [u] LT';
  5002. case 1:
  5003. case 2:
  5004. case 4:
  5005. case 5:
  5006. return '[prošli] dddd [u] LT';
  5007. }
  5008. },
  5009. sameElse : 'L'
  5010. },
  5011. relativeTime : {
  5012. future : 'za %s',
  5013. past : 'prije %s',
  5014. s : 'par sekundi',
  5015. m : translate,
  5016. mm : translate,
  5017. h : translate,
  5018. hh : translate,
  5019. d : 'dan',
  5020. dd : translate,
  5021. M : 'mjesec',
  5022. MM : translate,
  5023. y : 'godinu',
  5024. yy : translate
  5025. },
  5026. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5027. ordinal : '%d.',
  5028. week : {
  5029. dow : 1, // Monday is the first day of the week.
  5030. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5031. }
  5032. });
  5033. //! moment.js locale configuration
  5034. //! locale : Catalan [ca]
  5035. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  5036. hooks.defineLocale('ca', {
  5037. months : {
  5038. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  5039. 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('_'),
  5040. isFormat: /D[oD]?(\s)+MMMM/
  5041. },
  5042. monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  5043. monthsParseExact : true,
  5044. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  5045. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  5046. weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  5047. weekdaysParseExact : true,
  5048. longDateFormat : {
  5049. LT : 'H:mm',
  5050. LTS : 'H:mm:ss',
  5051. L : 'DD/MM/YYYY',
  5052. LL : '[el] D MMMM [de] YYYY',
  5053. ll : 'D MMM YYYY',
  5054. LLL : '[el] D MMMM [de] YYYY [a les] H:mm',
  5055. lll : 'D MMM YYYY, H:mm',
  5056. LLLL : '[el] dddd D MMMM [de] YYYY [a les] H:mm',
  5057. llll : 'ddd D MMM YYYY, H:mm'
  5058. },
  5059. calendar : {
  5060. sameDay : function () {
  5061. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5062. },
  5063. nextDay : function () {
  5064. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5065. },
  5066. nextWeek : function () {
  5067. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5068. },
  5069. lastDay : function () {
  5070. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5071. },
  5072. lastWeek : function () {
  5073. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5074. },
  5075. sameElse : 'L'
  5076. },
  5077. relativeTime : {
  5078. future : 'd\'aquí %s',
  5079. past : 'fa %s',
  5080. s : 'uns segons',
  5081. m : 'un minut',
  5082. mm : '%d minuts',
  5083. h : 'una hora',
  5084. hh : '%d hores',
  5085. d : 'un dia',
  5086. dd : '%d dies',
  5087. M : 'un mes',
  5088. MM : '%d mesos',
  5089. y : 'un any',
  5090. yy : '%d anys'
  5091. },
  5092. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  5093. ordinal : function (number, period) {
  5094. var output = (number === 1) ? 'r' :
  5095. (number === 2) ? 'n' :
  5096. (number === 3) ? 'r' :
  5097. (number === 4) ? 't' : 'è';
  5098. if (period === 'w' || period === 'W') {
  5099. output = 'a';
  5100. }
  5101. return number + output;
  5102. },
  5103. week : {
  5104. dow : 1, // Monday is the first day of the week.
  5105. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5106. }
  5107. });
  5108. //! moment.js locale configuration
  5109. //! locale : Czech [cs]
  5110. //! author : petrbela : https://github.com/petrbela
  5111. var months$3 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
  5112. var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  5113. function plural$1(n) {
  5114. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  5115. }
  5116. function translate$1(number, withoutSuffix, key, isFuture) {
  5117. var result = number + ' ';
  5118. switch (key) {
  5119. case 's': // a few seconds / in a few seconds / a few seconds ago
  5120. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  5121. case 'm': // a minute / in a minute / a minute ago
  5122. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  5123. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  5124. if (withoutSuffix || isFuture) {
  5125. return result + (plural$1(number) ? 'minuty' : 'minut');
  5126. } else {
  5127. return result + 'minutami';
  5128. }
  5129. break;
  5130. case 'h': // an hour / in an hour / an hour ago
  5131. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  5132. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  5133. if (withoutSuffix || isFuture) {
  5134. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  5135. } else {
  5136. return result + 'hodinami';
  5137. }
  5138. break;
  5139. case 'd': // a day / in a day / a day ago
  5140. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  5141. case 'dd': // 9 days / in 9 days / 9 days ago
  5142. if (withoutSuffix || isFuture) {
  5143. return result + (plural$1(number) ? 'dny' : 'dní');
  5144. } else {
  5145. return result + 'dny';
  5146. }
  5147. break;
  5148. case 'M': // a month / in a month / a month ago
  5149. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  5150. case 'MM': // 9 months / in 9 months / 9 months ago
  5151. if (withoutSuffix || isFuture) {
  5152. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  5153. } else {
  5154. return result + 'měsíci';
  5155. }
  5156. break;
  5157. case 'y': // a year / in a year / a year ago
  5158. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  5159. case 'yy': // 9 years / in 9 years / 9 years ago
  5160. if (withoutSuffix || isFuture) {
  5161. return result + (plural$1(number) ? 'roky' : 'let');
  5162. } else {
  5163. return result + 'lety';
  5164. }
  5165. break;
  5166. }
  5167. }
  5168. hooks.defineLocale('cs', {
  5169. months : months$3,
  5170. monthsShort : monthsShort,
  5171. monthsParse : (function (months, monthsShort) {
  5172. var i, _monthsParse = [];
  5173. for (i = 0; i < 12; i++) {
  5174. // use custom parser to solve problem with July (červenec)
  5175. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  5176. }
  5177. return _monthsParse;
  5178. }(months$3, monthsShort)),
  5179. shortMonthsParse : (function (monthsShort) {
  5180. var i, _shortMonthsParse = [];
  5181. for (i = 0; i < 12; i++) {
  5182. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  5183. }
  5184. return _shortMonthsParse;
  5185. }(monthsShort)),
  5186. longMonthsParse : (function (months) {
  5187. var i, _longMonthsParse = [];
  5188. for (i = 0; i < 12; i++) {
  5189. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  5190. }
  5191. return _longMonthsParse;
  5192. }(months$3)),
  5193. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  5194. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  5195. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  5196. longDateFormat : {
  5197. LT: 'H:mm',
  5198. LTS : 'H:mm:ss',
  5199. L : 'DD.MM.YYYY',
  5200. LL : 'D. MMMM YYYY',
  5201. LLL : 'D. MMMM YYYY H:mm',
  5202. LLLL : 'dddd D. MMMM YYYY H:mm',
  5203. l : 'D. M. YYYY'
  5204. },
  5205. calendar : {
  5206. sameDay: '[dnes v] LT',
  5207. nextDay: '[zítra v] LT',
  5208. nextWeek: function () {
  5209. switch (this.day()) {
  5210. case 0:
  5211. return '[v neděli v] LT';
  5212. case 1:
  5213. case 2:
  5214. return '[v] dddd [v] LT';
  5215. case 3:
  5216. return '[ve středu v] LT';
  5217. case 4:
  5218. return '[ve čtvrtek v] LT';
  5219. case 5:
  5220. return '[v pátek v] LT';
  5221. case 6:
  5222. return '[v sobotu v] LT';
  5223. }
  5224. },
  5225. lastDay: '[včera v] LT',
  5226. lastWeek: function () {
  5227. switch (this.day()) {
  5228. case 0:
  5229. return '[minulou neděli v] LT';
  5230. case 1:
  5231. case 2:
  5232. return '[minulé] dddd [v] LT';
  5233. case 3:
  5234. return '[minulou středu v] LT';
  5235. case 4:
  5236. case 5:
  5237. return '[minulý] dddd [v] LT';
  5238. case 6:
  5239. return '[minulou sobotu v] LT';
  5240. }
  5241. },
  5242. sameElse: 'L'
  5243. },
  5244. relativeTime : {
  5245. future : 'za %s',
  5246. past : 'před %s',
  5247. s : translate$1,
  5248. m : translate$1,
  5249. mm : translate$1,
  5250. h : translate$1,
  5251. hh : translate$1,
  5252. d : translate$1,
  5253. dd : translate$1,
  5254. M : translate$1,
  5255. MM : translate$1,
  5256. y : translate$1,
  5257. yy : translate$1
  5258. },
  5259. dayOfMonthOrdinalParse : /\d{1,2}\./,
  5260. ordinal : '%d.',
  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. //! locale : Chuvash [cv]
  5268. //! author : Anatoly Mironov : https://github.com/mirontoli
  5269. hooks.defineLocale('cv', {
  5270. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  5271. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  5272. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  5273. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  5274. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  5275. longDateFormat : {
  5276. LT : 'HH:mm',
  5277. LTS : 'HH:mm:ss',
  5278. L : 'DD-MM-YYYY',
  5279. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  5280. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  5281. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  5282. },
  5283. calendar : {
  5284. sameDay: '[Паян] LT [сехетре]',
  5285. nextDay: '[Ыран] LT [сехетре]',
  5286. lastDay: '[Ӗнер] LT [сехетре]',
  5287. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  5288. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  5289. sameElse: 'L'
  5290. },
  5291. relativeTime : {
  5292. future : function (output) {
  5293. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  5294. return output + affix;
  5295. },
  5296. past : '%s каялла',
  5297. s : 'пӗр-ик ҫеккунт',
  5298. m : 'пӗр минут',
  5299. mm : '%d минут',
  5300. h : 'пӗр сехет',
  5301. hh : '%d сехет',
  5302. d : 'пӗр кун',
  5303. dd : '%d кун',
  5304. M : 'пӗр уйӑх',
  5305. MM : '%d уйӑх',
  5306. y : 'пӗр ҫул',
  5307. yy : '%d ҫул'
  5308. },
  5309. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  5310. ordinal : '%d-мӗш',
  5311. week : {
  5312. dow : 1, // Monday is the first day of the week.
  5313. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5314. }
  5315. });
  5316. //! moment.js locale configuration
  5317. //! locale : Welsh [cy]
  5318. //! author : Robert Allen : https://github.com/robgallen
  5319. //! author : https://github.com/ryangreaves
  5320. hooks.defineLocale('cy', {
  5321. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  5322. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  5323. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  5324. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  5325. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  5326. weekdaysParseExact : true,
  5327. // time formats are the same as en-gb
  5328. longDateFormat: {
  5329. LT: 'HH:mm',
  5330. LTS : 'HH:mm:ss',
  5331. L: 'DD/MM/YYYY',
  5332. LL: 'D MMMM YYYY',
  5333. LLL: 'D MMMM YYYY HH:mm',
  5334. LLLL: 'dddd, D MMMM YYYY HH:mm'
  5335. },
  5336. calendar: {
  5337. sameDay: '[Heddiw am] LT',
  5338. nextDay: '[Yfory am] LT',
  5339. nextWeek: 'dddd [am] LT',
  5340. lastDay: '[Ddoe am] LT',
  5341. lastWeek: 'dddd [diwethaf am] LT',
  5342. sameElse: 'L'
  5343. },
  5344. relativeTime: {
  5345. future: 'mewn %s',
  5346. past: '%s yn ôl',
  5347. s: 'ychydig eiliadau',
  5348. m: 'munud',
  5349. mm: '%d munud',
  5350. h: 'awr',
  5351. hh: '%d awr',
  5352. d: 'diwrnod',
  5353. dd: '%d diwrnod',
  5354. M: 'mis',
  5355. MM: '%d mis',
  5356. y: 'blwyddyn',
  5357. yy: '%d flynedd'
  5358. },
  5359. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  5360. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  5361. ordinal: function (number) {
  5362. var b = number,
  5363. output = '',
  5364. lookup = [
  5365. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  5366. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  5367. ];
  5368. if (b > 20) {
  5369. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  5370. output = 'fed'; // not 30ain, 70ain or 90ain
  5371. } else {
  5372. output = 'ain';
  5373. }
  5374. } else if (b > 0) {
  5375. output = lookup[b];
  5376. }
  5377. return number + output;
  5378. },
  5379. week : {
  5380. dow : 1, // Monday is the first day of the week.
  5381. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5382. }
  5383. });
  5384. //! moment.js locale configuration
  5385. //! locale : Danish [da]
  5386. //! author : Ulrik Nielsen : https://github.com/mrbase
  5387. hooks.defineLocale('da', {
  5388. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  5389. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  5390. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  5391. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  5392. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  5393. longDateFormat : {
  5394. LT : 'HH:mm',
  5395. LTS : 'HH:mm:ss',
  5396. L : 'DD/MM/YYYY',
  5397. LL : 'D. MMMM YYYY',
  5398. LLL : 'D. MMMM YYYY HH:mm',
  5399. LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  5400. },
  5401. calendar : {
  5402. sameDay : '[i dag kl.] LT',
  5403. nextDay : '[i morgen kl.] LT',
  5404. nextWeek : 'på dddd [kl.] LT',
  5405. lastDay : '[i går kl.] LT',
  5406. lastWeek : '[i] dddd[s kl.] LT',
  5407. sameElse : 'L'
  5408. },
  5409. relativeTime : {
  5410. future : 'om %s',
  5411. past : '%s siden',
  5412. s : 'få sekunder',
  5413. m : 'et minut',
  5414. mm : '%d minutter',
  5415. h : 'en time',
  5416. hh : '%d timer',
  5417. d : 'en dag',
  5418. dd : '%d dage',
  5419. M : 'en måned',
  5420. MM : '%d måneder',
  5421. y : 'et år',
  5422. yy : '%d år'
  5423. },
  5424. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5425. ordinal : '%d.',
  5426. week : {
  5427. dow : 1, // Monday is the first day of the week.
  5428. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5429. }
  5430. });
  5431. //! moment.js locale configuration
  5432. //! locale : German (Austria) [de-at]
  5433. //! author : lluchs : https://github.com/lluchs
  5434. //! author: Menelion Elensúle: https://github.com/Oire
  5435. //! author : Martin Groller : https://github.com/MadMG
  5436. //! author : Mikolaj Dadela : https://github.com/mik01aj
  5437. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  5438. var format = {
  5439. 'm': ['eine Minute', 'einer Minute'],
  5440. 'h': ['eine Stunde', 'einer Stunde'],
  5441. 'd': ['ein Tag', 'einem Tag'],
  5442. 'dd': [number + ' Tage', number + ' Tagen'],
  5443. 'M': ['ein Monat', 'einem Monat'],
  5444. 'MM': [number + ' Monate', number + ' Monaten'],
  5445. 'y': ['ein Jahr', 'einem Jahr'],
  5446. 'yy': [number + ' Jahre', number + ' Jahren']
  5447. };
  5448. return withoutSuffix ? format[key][0] : format[key][1];
  5449. }
  5450. hooks.defineLocale('de-at', {
  5451. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5452. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5453. monthsParseExact : true,
  5454. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5455. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5456. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5457. weekdaysParseExact : true,
  5458. longDateFormat : {
  5459. LT: 'HH:mm',
  5460. LTS: 'HH:mm:ss',
  5461. L : 'DD.MM.YYYY',
  5462. LL : 'D. MMMM YYYY',
  5463. LLL : 'D. MMMM YYYY HH:mm',
  5464. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5465. },
  5466. calendar : {
  5467. sameDay: '[heute um] LT [Uhr]',
  5468. sameElse: 'L',
  5469. nextDay: '[morgen um] LT [Uhr]',
  5470. nextWeek: 'dddd [um] LT [Uhr]',
  5471. lastDay: '[gestern um] LT [Uhr]',
  5472. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5473. },
  5474. relativeTime : {
  5475. future : 'in %s',
  5476. past : 'vor %s',
  5477. s : 'ein paar Sekunden',
  5478. m : processRelativeTime,
  5479. mm : '%d Minuten',
  5480. h : processRelativeTime,
  5481. hh : '%d Stunden',
  5482. d : processRelativeTime,
  5483. dd : processRelativeTime,
  5484. M : processRelativeTime,
  5485. MM : processRelativeTime,
  5486. y : processRelativeTime,
  5487. yy : processRelativeTime
  5488. },
  5489. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5490. ordinal : '%d.',
  5491. week : {
  5492. dow : 1, // Monday is the first day of the week.
  5493. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5494. }
  5495. });
  5496. //! moment.js locale configuration
  5497. //! locale : German (Switzerland) [de-ch]
  5498. //! author : sschueller : https://github.com/sschueller
  5499. // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
  5500. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  5501. var format = {
  5502. 'm': ['eine Minute', 'einer Minute'],
  5503. 'h': ['eine Stunde', 'einer Stunde'],
  5504. 'd': ['ein Tag', 'einem Tag'],
  5505. 'dd': [number + ' Tage', number + ' Tagen'],
  5506. 'M': ['ein Monat', 'einem Monat'],
  5507. 'MM': [number + ' Monate', number + ' Monaten'],
  5508. 'y': ['ein Jahr', 'einem Jahr'],
  5509. 'yy': [number + ' Jahre', number + ' Jahren']
  5510. };
  5511. return withoutSuffix ? format[key][0] : format[key][1];
  5512. }
  5513. hooks.defineLocale('de-ch', {
  5514. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5515. monthsShort : 'Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5516. monthsParseExact : true,
  5517. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5518. weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5519. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5520. weekdaysParseExact : true,
  5521. longDateFormat : {
  5522. LT: 'HH.mm',
  5523. LTS: 'HH.mm.ss',
  5524. L : 'DD.MM.YYYY',
  5525. LL : 'D. MMMM YYYY',
  5526. LLL : 'D. MMMM YYYY HH.mm',
  5527. LLLL : 'dddd, D. MMMM YYYY HH.mm'
  5528. },
  5529. calendar : {
  5530. sameDay: '[heute um] LT [Uhr]',
  5531. sameElse: 'L',
  5532. nextDay: '[morgen um] LT [Uhr]',
  5533. nextWeek: 'dddd [um] LT [Uhr]',
  5534. lastDay: '[gestern um] LT [Uhr]',
  5535. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5536. },
  5537. relativeTime : {
  5538. future : 'in %s',
  5539. past : 'vor %s',
  5540. s : 'ein paar Sekunden',
  5541. m : processRelativeTime$1,
  5542. mm : '%d Minuten',
  5543. h : processRelativeTime$1,
  5544. hh : '%d Stunden',
  5545. d : processRelativeTime$1,
  5546. dd : processRelativeTime$1,
  5547. M : processRelativeTime$1,
  5548. MM : processRelativeTime$1,
  5549. y : processRelativeTime$1,
  5550. yy : processRelativeTime$1
  5551. },
  5552. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5553. ordinal : '%d.',
  5554. week : {
  5555. dow : 1, // Monday is the first day of the week.
  5556. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5557. }
  5558. });
  5559. //! moment.js locale configuration
  5560. //! locale : German [de]
  5561. //! author : lluchs : https://github.com/lluchs
  5562. //! author: Menelion Elensúle: https://github.com/Oire
  5563. //! author : Mikolaj Dadela : https://github.com/mik01aj
  5564. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  5565. var format = {
  5566. 'm': ['eine Minute', 'einer Minute'],
  5567. 'h': ['eine Stunde', 'einer Stunde'],
  5568. 'd': ['ein Tag', 'einem Tag'],
  5569. 'dd': [number + ' Tage', number + ' Tagen'],
  5570. 'M': ['ein Monat', 'einem Monat'],
  5571. 'MM': [number + ' Monate', number + ' Monaten'],
  5572. 'y': ['ein Jahr', 'einem Jahr'],
  5573. 'yy': [number + ' Jahre', number + ' Jahren']
  5574. };
  5575. return withoutSuffix ? format[key][0] : format[key][1];
  5576. }
  5577. hooks.defineLocale('de', {
  5578. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5579. monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5580. monthsParseExact : true,
  5581. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5582. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5583. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5584. weekdaysParseExact : true,
  5585. longDateFormat : {
  5586. LT: 'HH:mm',
  5587. LTS: 'HH:mm:ss',
  5588. L : 'DD.MM.YYYY',
  5589. LL : 'D. MMMM YYYY',
  5590. LLL : 'D. MMMM YYYY HH:mm',
  5591. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5592. },
  5593. calendar : {
  5594. sameDay: '[heute um] LT [Uhr]',
  5595. sameElse: 'L',
  5596. nextDay: '[morgen um] LT [Uhr]',
  5597. nextWeek: 'dddd [um] LT [Uhr]',
  5598. lastDay: '[gestern um] LT [Uhr]',
  5599. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5600. },
  5601. relativeTime : {
  5602. future : 'in %s',
  5603. past : 'vor %s',
  5604. s : 'ein paar Sekunden',
  5605. m : processRelativeTime$2,
  5606. mm : '%d Minuten',
  5607. h : processRelativeTime$2,
  5608. hh : '%d Stunden',
  5609. d : processRelativeTime$2,
  5610. dd : processRelativeTime$2,
  5611. M : processRelativeTime$2,
  5612. MM : processRelativeTime$2,
  5613. y : processRelativeTime$2,
  5614. yy : processRelativeTime$2
  5615. },
  5616. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5617. ordinal : '%d.',
  5618. week : {
  5619. dow : 1, // Monday is the first day of the week.
  5620. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5621. }
  5622. });
  5623. //! moment.js locale configuration
  5624. //! locale : Maldivian [dv]
  5625. //! author : Jawish Hameed : https://github.com/jawish
  5626. var months$4 = [
  5627. 'ޖެނުއަރީ',
  5628. 'ފެބްރުއަރީ',
  5629. 'މާރިޗު',
  5630. 'އޭޕްރީލު',
  5631. 'މޭ',
  5632. 'ޖޫން',
  5633. 'ޖުލައި',
  5634. 'އޯގަސްޓު',
  5635. 'ސެޕްޓެމްބަރު',
  5636. 'އޮކްޓޯބަރު',
  5637. 'ނޮވެމްބަރު',
  5638. 'ޑިސެމްބަރު'
  5639. ];
  5640. var weekdays = [
  5641. 'އާދިއްތަ',
  5642. 'ހޯމަ',
  5643. 'އަންގާރަ',
  5644. 'ބުދަ',
  5645. 'ބުރާސްފަތި',
  5646. 'ހުކުރު',
  5647. 'ހޮނިހިރު'
  5648. ];
  5649. hooks.defineLocale('dv', {
  5650. months : months$4,
  5651. monthsShort : months$4,
  5652. weekdays : weekdays,
  5653. weekdaysShort : weekdays,
  5654. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  5655. longDateFormat : {
  5656. LT : 'HH:mm',
  5657. LTS : 'HH:mm:ss',
  5658. L : 'D/M/YYYY',
  5659. LL : 'D MMMM YYYY',
  5660. LLL : 'D MMMM YYYY HH:mm',
  5661. LLLL : 'dddd D MMMM YYYY HH:mm'
  5662. },
  5663. meridiemParse: /މކ|މފ/,
  5664. isPM : function (input) {
  5665. return 'މފ' === input;
  5666. },
  5667. meridiem : function (hour, minute, isLower) {
  5668. if (hour < 12) {
  5669. return 'މކ';
  5670. } else {
  5671. return 'މފ';
  5672. }
  5673. },
  5674. calendar : {
  5675. sameDay : '[މިއަދު] LT',
  5676. nextDay : '[މާދަމާ] LT',
  5677. nextWeek : 'dddd LT',
  5678. lastDay : '[އިއްޔެ] LT',
  5679. lastWeek : '[ފާއިތުވި] dddd LT',
  5680. sameElse : 'L'
  5681. },
  5682. relativeTime : {
  5683. future : 'ތެރޭގައި %s',
  5684. past : 'ކުރިން %s',
  5685. s : 'ސިކުންތުކޮޅެއް',
  5686. m : 'މިނިޓެއް',
  5687. mm : 'މިނިޓު %d',
  5688. h : 'ގަޑިއިރެއް',
  5689. hh : 'ގަޑިއިރު %d',
  5690. d : 'ދުވަހެއް',
  5691. dd : 'ދުވަސް %d',
  5692. M : 'މަހެއް',
  5693. MM : 'މަސް %d',
  5694. y : 'އަހަރެއް',
  5695. yy : 'އަހަރު %d'
  5696. },
  5697. preparse: function (string) {
  5698. return string.replace(/،/g, ',');
  5699. },
  5700. postformat: function (string) {
  5701. return string.replace(/,/g, '،');
  5702. },
  5703. week : {
  5704. dow : 7, // Sunday is the first day of the week.
  5705. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5706. }
  5707. });
  5708. //! moment.js locale configuration
  5709. //! locale : Greek [el]
  5710. //! author : Aggelos Karalias : https://github.com/mehiel
  5711. hooks.defineLocale('el', {
  5712. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  5713. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  5714. months : function (momentToFormat, format) {
  5715. if (!momentToFormat) {
  5716. return this._monthsNominativeEl;
  5717. } else if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  5718. return this._monthsGenitiveEl[momentToFormat.month()];
  5719. } else {
  5720. return this._monthsNominativeEl[momentToFormat.month()];
  5721. }
  5722. },
  5723. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  5724. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  5725. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  5726. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  5727. meridiem : function (hours, minutes, isLower) {
  5728. if (hours > 11) {
  5729. return isLower ? 'μμ' : 'ΜΜ';
  5730. } else {
  5731. return isLower ? 'πμ' : 'ΠΜ';
  5732. }
  5733. },
  5734. isPM : function (input) {
  5735. return ((input + '').toLowerCase()[0] === 'μ');
  5736. },
  5737. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  5738. longDateFormat : {
  5739. LT : 'h:mm A',
  5740. LTS : 'h:mm:ss A',
  5741. L : 'DD/MM/YYYY',
  5742. LL : 'D MMMM YYYY',
  5743. LLL : 'D MMMM YYYY h:mm A',
  5744. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5745. },
  5746. calendarEl : {
  5747. sameDay : '[Σήμερα {}] LT',
  5748. nextDay : '[Αύριο {}] LT',
  5749. nextWeek : 'dddd [{}] LT',
  5750. lastDay : '[Χθες {}] LT',
  5751. lastWeek : function () {
  5752. switch (this.day()) {
  5753. case 6:
  5754. return '[το προηγούμενο] dddd [{}] LT';
  5755. default:
  5756. return '[την προηγούμενη] dddd [{}] LT';
  5757. }
  5758. },
  5759. sameElse : 'L'
  5760. },
  5761. calendar : function (key, mom) {
  5762. var output = this._calendarEl[key],
  5763. hours = mom && mom.hours();
  5764. if (isFunction(output)) {
  5765. output = output.apply(mom);
  5766. }
  5767. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  5768. },
  5769. relativeTime : {
  5770. future : 'σε %s',
  5771. past : '%s πριν',
  5772. s : 'λίγα δευτερόλεπτα',
  5773. m : 'ένα λεπτό',
  5774. mm : '%d λεπτά',
  5775. h : 'μία ώρα',
  5776. hh : '%d ώρες',
  5777. d : 'μία μέρα',
  5778. dd : '%d μέρες',
  5779. M : 'ένας μήνας',
  5780. MM : '%d μήνες',
  5781. y : 'ένας χρόνος',
  5782. yy : '%d χρόνια'
  5783. },
  5784. dayOfMonthOrdinalParse: /\d{1,2}η/,
  5785. ordinal: '%dη',
  5786. week : {
  5787. dow : 1, // Monday is the first day of the week.
  5788. doy : 4 // The week that contains Jan 4st is the first week of the year.
  5789. }
  5790. });
  5791. //! moment.js locale configuration
  5792. //! locale : English (Australia) [en-au]
  5793. //! author : Jared Morse : https://github.com/jarcoal
  5794. hooks.defineLocale('en-au', {
  5795. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5796. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5797. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5798. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5799. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5800. longDateFormat : {
  5801. LT : 'h:mm A',
  5802. LTS : 'h:mm:ss A',
  5803. L : 'DD/MM/YYYY',
  5804. LL : 'D MMMM YYYY',
  5805. LLL : 'D MMMM YYYY h:mm A',
  5806. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5807. },
  5808. calendar : {
  5809. sameDay : '[Today at] LT',
  5810. nextDay : '[Tomorrow at] LT',
  5811. nextWeek : 'dddd [at] LT',
  5812. lastDay : '[Yesterday at] LT',
  5813. lastWeek : '[Last] dddd [at] LT',
  5814. sameElse : 'L'
  5815. },
  5816. relativeTime : {
  5817. future : 'in %s',
  5818. past : '%s ago',
  5819. s : 'a few seconds',
  5820. m : 'a minute',
  5821. mm : '%d minutes',
  5822. h : 'an hour',
  5823. hh : '%d hours',
  5824. d : 'a day',
  5825. dd : '%d days',
  5826. M : 'a month',
  5827. MM : '%d months',
  5828. y : 'a year',
  5829. yy : '%d years'
  5830. },
  5831. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5832. ordinal : function (number) {
  5833. var b = number % 10,
  5834. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5835. (b === 1) ? 'st' :
  5836. (b === 2) ? 'nd' :
  5837. (b === 3) ? 'rd' : 'th';
  5838. return number + output;
  5839. },
  5840. week : {
  5841. dow : 1, // Monday is the first day of the week.
  5842. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5843. }
  5844. });
  5845. //! moment.js locale configuration
  5846. //! locale : English (Canada) [en-ca]
  5847. //! author : Jonathan Abourbih : https://github.com/jonbca
  5848. hooks.defineLocale('en-ca', {
  5849. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5850. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5851. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5852. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5853. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5854. longDateFormat : {
  5855. LT : 'h:mm A',
  5856. LTS : 'h:mm:ss A',
  5857. L : 'YYYY-MM-DD',
  5858. LL : 'MMMM D, YYYY',
  5859. LLL : 'MMMM D, YYYY h:mm A',
  5860. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  5861. },
  5862. calendar : {
  5863. sameDay : '[Today at] LT',
  5864. nextDay : '[Tomorrow at] LT',
  5865. nextWeek : 'dddd [at] LT',
  5866. lastDay : '[Yesterday at] LT',
  5867. lastWeek : '[Last] dddd [at] LT',
  5868. sameElse : 'L'
  5869. },
  5870. relativeTime : {
  5871. future : 'in %s',
  5872. past : '%s ago',
  5873. s : 'a few seconds',
  5874. m : 'a minute',
  5875. mm : '%d minutes',
  5876. h : 'an hour',
  5877. hh : '%d hours',
  5878. d : 'a day',
  5879. dd : '%d days',
  5880. M : 'a month',
  5881. MM : '%d months',
  5882. y : 'a year',
  5883. yy : '%d years'
  5884. },
  5885. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5886. ordinal : function (number) {
  5887. var b = number % 10,
  5888. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5889. (b === 1) ? 'st' :
  5890. (b === 2) ? 'nd' :
  5891. (b === 3) ? 'rd' : 'th';
  5892. return number + output;
  5893. }
  5894. });
  5895. //! moment.js locale configuration
  5896. //! locale : English (United Kingdom) [en-gb]
  5897. //! author : Chris Gedrim : https://github.com/chrisgedrim
  5898. hooks.defineLocale('en-gb', {
  5899. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5900. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5901. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5902. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5903. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5904. longDateFormat : {
  5905. LT : 'HH:mm',
  5906. LTS : 'HH:mm:ss',
  5907. L : 'DD/MM/YYYY',
  5908. LL : 'D MMMM YYYY',
  5909. LLL : 'D MMMM YYYY HH:mm',
  5910. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5911. },
  5912. calendar : {
  5913. sameDay : '[Today at] LT',
  5914. nextDay : '[Tomorrow at] LT',
  5915. nextWeek : 'dddd [at] LT',
  5916. lastDay : '[Yesterday at] LT',
  5917. lastWeek : '[Last] dddd [at] LT',
  5918. sameElse : 'L'
  5919. },
  5920. relativeTime : {
  5921. future : 'in %s',
  5922. past : '%s ago',
  5923. s : 'a few seconds',
  5924. m : 'a minute',
  5925. mm : '%d minutes',
  5926. h : 'an hour',
  5927. hh : '%d hours',
  5928. d : 'a day',
  5929. dd : '%d days',
  5930. M : 'a month',
  5931. MM : '%d months',
  5932. y : 'a year',
  5933. yy : '%d years'
  5934. },
  5935. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5936. ordinal : function (number) {
  5937. var b = number % 10,
  5938. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5939. (b === 1) ? 'st' :
  5940. (b === 2) ? 'nd' :
  5941. (b === 3) ? 'rd' : 'th';
  5942. return number + output;
  5943. },
  5944. week : {
  5945. dow : 1, // Monday is the first day of the week.
  5946. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5947. }
  5948. });
  5949. //! moment.js locale configuration
  5950. //! locale : English (Ireland) [en-ie]
  5951. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  5952. hooks.defineLocale('en-ie', {
  5953. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5954. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5955. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5956. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5957. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5958. longDateFormat : {
  5959. LT : 'HH:mm',
  5960. LTS : 'HH:mm:ss',
  5961. L : 'DD-MM-YYYY',
  5962. LL : 'D MMMM YYYY',
  5963. LLL : 'D MMMM YYYY HH:mm',
  5964. LLLL : 'dddd D MMMM YYYY HH:mm'
  5965. },
  5966. calendar : {
  5967. sameDay : '[Today at] LT',
  5968. nextDay : '[Tomorrow at] LT',
  5969. nextWeek : 'dddd [at] LT',
  5970. lastDay : '[Yesterday at] LT',
  5971. lastWeek : '[Last] dddd [at] LT',
  5972. sameElse : 'L'
  5973. },
  5974. relativeTime : {
  5975. future : 'in %s',
  5976. past : '%s ago',
  5977. s : 'a few seconds',
  5978. m : 'a minute',
  5979. mm : '%d minutes',
  5980. h : 'an hour',
  5981. hh : '%d hours',
  5982. d : 'a day',
  5983. dd : '%d days',
  5984. M : 'a month',
  5985. MM : '%d months',
  5986. y : 'a year',
  5987. yy : '%d years'
  5988. },
  5989. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5990. ordinal : function (number) {
  5991. var b = number % 10,
  5992. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5993. (b === 1) ? 'st' :
  5994. (b === 2) ? 'nd' :
  5995. (b === 3) ? 'rd' : 'th';
  5996. return number + output;
  5997. },
  5998. week : {
  5999. dow : 1, // Monday is the first day of the week.
  6000. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6001. }
  6002. });
  6003. //! moment.js locale configuration
  6004. //! locale : English (New Zealand) [en-nz]
  6005. //! author : Luke McGregor : https://github.com/lukemcgregor
  6006. hooks.defineLocale('en-nz', {
  6007. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6008. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6009. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6010. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6011. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6012. longDateFormat : {
  6013. LT : 'h:mm A',
  6014. LTS : 'h:mm:ss A',
  6015. L : 'DD/MM/YYYY',
  6016. LL : 'D MMMM YYYY',
  6017. LLL : 'D MMMM YYYY h:mm A',
  6018. LLLL : 'dddd, D MMMM YYYY h:mm A'
  6019. },
  6020. calendar : {
  6021. sameDay : '[Today at] LT',
  6022. nextDay : '[Tomorrow at] LT',
  6023. nextWeek : 'dddd [at] LT',
  6024. lastDay : '[Yesterday at] LT',
  6025. lastWeek : '[Last] dddd [at] LT',
  6026. sameElse : 'L'
  6027. },
  6028. relativeTime : {
  6029. future : 'in %s',
  6030. past : '%s ago',
  6031. s : 'a few seconds',
  6032. m : 'a minute',
  6033. mm : '%d minutes',
  6034. h : 'an hour',
  6035. hh : '%d hours',
  6036. d : 'a day',
  6037. dd : '%d days',
  6038. M : 'a month',
  6039. MM : '%d months',
  6040. y : 'a year',
  6041. yy : '%d years'
  6042. },
  6043. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6044. ordinal : function (number) {
  6045. var b = number % 10,
  6046. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6047. (b === 1) ? 'st' :
  6048. (b === 2) ? 'nd' :
  6049. (b === 3) ? 'rd' : 'th';
  6050. return number + output;
  6051. },
  6052. week : {
  6053. dow : 1, // Monday is the first day of the week.
  6054. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6055. }
  6056. });
  6057. //! moment.js locale configuration
  6058. //! locale : Esperanto [eo]
  6059. //! author : Colin Dean : https://github.com/colindean
  6060. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  6061. //! comment : miestasmia corrected the translation by colindean
  6062. hooks.defineLocale('eo', {
  6063. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  6064. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  6065. weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  6066. weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  6067. weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  6068. longDateFormat : {
  6069. LT : 'HH:mm',
  6070. LTS : 'HH:mm:ss',
  6071. L : 'YYYY-MM-DD',
  6072. LL : 'D[-a de] MMMM, YYYY',
  6073. LLL : 'D[-a de] MMMM, YYYY HH:mm',
  6074. LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
  6075. },
  6076. meridiemParse: /[ap]\.t\.m/i,
  6077. isPM: function (input) {
  6078. return input.charAt(0).toLowerCase() === 'p';
  6079. },
  6080. meridiem : function (hours, minutes, isLower) {
  6081. if (hours > 11) {
  6082. return isLower ? 'p.t.m.' : 'P.T.M.';
  6083. } else {
  6084. return isLower ? 'a.t.m.' : 'A.T.M.';
  6085. }
  6086. },
  6087. calendar : {
  6088. sameDay : '[Hodiaŭ je] LT',
  6089. nextDay : '[Morgaŭ je] LT',
  6090. nextWeek : 'dddd [je] LT',
  6091. lastDay : '[Hieraŭ je] LT',
  6092. lastWeek : '[pasinta] dddd [je] LT',
  6093. sameElse : 'L'
  6094. },
  6095. relativeTime : {
  6096. future : 'post %s',
  6097. past : 'antaŭ %s',
  6098. s : 'sekundoj',
  6099. m : 'minuto',
  6100. mm : '%d minutoj',
  6101. h : 'horo',
  6102. hh : '%d horoj',
  6103. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  6104. dd : '%d tagoj',
  6105. M : 'monato',
  6106. MM : '%d monatoj',
  6107. y : 'jaro',
  6108. yy : '%d jaroj'
  6109. },
  6110. dayOfMonthOrdinalParse: /\d{1,2}a/,
  6111. ordinal : '%da',
  6112. week : {
  6113. dow : 1, // Monday is the first day of the week.
  6114. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6115. }
  6116. });
  6117. //! moment.js locale configuration
  6118. //! locale : Spanish (Dominican Republic) [es-do]
  6119. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  6120. var monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6121. hooks.defineLocale('es-do', {
  6122. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6123. monthsShort : function (m, format) {
  6124. if (!m) {
  6125. return monthsShortDot;
  6126. } else if (/-MMM-/.test(format)) {
  6127. return monthsShort$1[m.month()];
  6128. } else {
  6129. return monthsShortDot[m.month()];
  6130. }
  6131. },
  6132. monthsParseExact : true,
  6133. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6134. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6135. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6136. weekdaysParseExact : true,
  6137. longDateFormat : {
  6138. LT : 'h:mm A',
  6139. LTS : 'h:mm:ss A',
  6140. L : 'DD/MM/YYYY',
  6141. LL : 'D [de] MMMM [de] YYYY',
  6142. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  6143. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  6144. },
  6145. calendar : {
  6146. sameDay : function () {
  6147. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6148. },
  6149. nextDay : function () {
  6150. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6151. },
  6152. nextWeek : function () {
  6153. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6154. },
  6155. lastDay : function () {
  6156. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6157. },
  6158. lastWeek : function () {
  6159. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6160. },
  6161. sameElse : 'L'
  6162. },
  6163. relativeTime : {
  6164. future : 'en %s',
  6165. past : 'hace %s',
  6166. s : 'unos segundos',
  6167. m : 'un minuto',
  6168. mm : '%d minutos',
  6169. h : 'una hora',
  6170. hh : '%d horas',
  6171. d : 'un día',
  6172. dd : '%d días',
  6173. M : 'un mes',
  6174. MM : '%d meses',
  6175. y : 'un año',
  6176. yy : '%d años'
  6177. },
  6178. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6179. ordinal : '%dº',
  6180. week : {
  6181. dow : 1, // Monday is the first day of the week.
  6182. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6183. }
  6184. });
  6185. //! moment.js locale configuration
  6186. //! locale : Spanish [es]
  6187. //! author : Julio Napurí : https://github.com/julionc
  6188. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  6189. var monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6190. hooks.defineLocale('es', {
  6191. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6192. monthsShort : function (m, format) {
  6193. if (!m) {
  6194. return monthsShortDot$1;
  6195. } else if (/-MMM-/.test(format)) {
  6196. return monthsShort$2[m.month()];
  6197. } else {
  6198. return monthsShortDot$1[m.month()];
  6199. }
  6200. },
  6201. monthsParseExact : true,
  6202. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6203. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6204. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6205. weekdaysParseExact : true,
  6206. longDateFormat : {
  6207. LT : 'H:mm',
  6208. LTS : 'H:mm:ss',
  6209. L : 'DD/MM/YYYY',
  6210. LL : 'D [de] MMMM [de] YYYY',
  6211. LLL : 'D [de] MMMM [de] YYYY H:mm',
  6212. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  6213. },
  6214. calendar : {
  6215. sameDay : function () {
  6216. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6217. },
  6218. nextDay : function () {
  6219. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6220. },
  6221. nextWeek : function () {
  6222. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6223. },
  6224. lastDay : function () {
  6225. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6226. },
  6227. lastWeek : function () {
  6228. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6229. },
  6230. sameElse : 'L'
  6231. },
  6232. relativeTime : {
  6233. future : 'en %s',
  6234. past : 'hace %s',
  6235. s : 'unos segundos',
  6236. m : 'un minuto',
  6237. mm : '%d minutos',
  6238. h : 'una hora',
  6239. hh : '%d horas',
  6240. d : 'un día',
  6241. dd : '%d días',
  6242. M : 'un mes',
  6243. MM : '%d meses',
  6244. y : 'un año',
  6245. yy : '%d años'
  6246. },
  6247. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6248. ordinal : '%dº',
  6249. week : {
  6250. dow : 1, // Monday is the first day of the week.
  6251. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6252. }
  6253. });
  6254. //! moment.js locale configuration
  6255. //! locale : Estonian [et]
  6256. //! author : Henry Kehlmann : https://github.com/madhenry
  6257. //! improvements : Illimar Tambek : https://github.com/ragulka
  6258. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  6259. var format = {
  6260. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  6261. 'm' : ['ühe minuti', 'üks minut'],
  6262. 'mm': [number + ' minuti', number + ' minutit'],
  6263. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  6264. 'hh': [number + ' tunni', number + ' tundi'],
  6265. 'd' : ['ühe päeva', 'üks päev'],
  6266. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  6267. 'MM': [number + ' kuu', number + ' kuud'],
  6268. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  6269. 'yy': [number + ' aasta', number + ' aastat']
  6270. };
  6271. if (withoutSuffix) {
  6272. return format[key][2] ? format[key][2] : format[key][1];
  6273. }
  6274. return isFuture ? format[key][0] : format[key][1];
  6275. }
  6276. hooks.defineLocale('et', {
  6277. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  6278. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  6279. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  6280. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  6281. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  6282. longDateFormat : {
  6283. LT : 'H:mm',
  6284. LTS : 'H:mm:ss',
  6285. L : 'DD.MM.YYYY',
  6286. LL : 'D. MMMM YYYY',
  6287. LLL : 'D. MMMM YYYY H:mm',
  6288. LLLL : 'dddd, D. MMMM YYYY H:mm'
  6289. },
  6290. calendar : {
  6291. sameDay : '[Täna,] LT',
  6292. nextDay : '[Homme,] LT',
  6293. nextWeek : '[Järgmine] dddd LT',
  6294. lastDay : '[Eile,] LT',
  6295. lastWeek : '[Eelmine] dddd LT',
  6296. sameElse : 'L'
  6297. },
  6298. relativeTime : {
  6299. future : '%s pärast',
  6300. past : '%s tagasi',
  6301. s : processRelativeTime$3,
  6302. m : processRelativeTime$3,
  6303. mm : processRelativeTime$3,
  6304. h : processRelativeTime$3,
  6305. hh : processRelativeTime$3,
  6306. d : processRelativeTime$3,
  6307. dd : '%d päeva',
  6308. M : processRelativeTime$3,
  6309. MM : processRelativeTime$3,
  6310. y : processRelativeTime$3,
  6311. yy : processRelativeTime$3
  6312. },
  6313. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6314. ordinal : '%d.',
  6315. week : {
  6316. dow : 1, // Monday is the first day of the week.
  6317. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6318. }
  6319. });
  6320. //! moment.js locale configuration
  6321. //! locale : Basque [eu]
  6322. //! author : Eneko Illarramendi : https://github.com/eillarra
  6323. hooks.defineLocale('eu', {
  6324. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  6325. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  6326. monthsParseExact : true,
  6327. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  6328. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  6329. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  6330. weekdaysParseExact : true,
  6331. longDateFormat : {
  6332. LT : 'HH:mm',
  6333. LTS : 'HH:mm:ss',
  6334. L : 'YYYY-MM-DD',
  6335. LL : 'YYYY[ko] MMMM[ren] D[a]',
  6336. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  6337. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  6338. l : 'YYYY-M-D',
  6339. ll : 'YYYY[ko] MMM D[a]',
  6340. lll : 'YYYY[ko] MMM D[a] HH:mm',
  6341. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  6342. },
  6343. calendar : {
  6344. sameDay : '[gaur] LT[etan]',
  6345. nextDay : '[bihar] LT[etan]',
  6346. nextWeek : 'dddd LT[etan]',
  6347. lastDay : '[atzo] LT[etan]',
  6348. lastWeek : '[aurreko] dddd LT[etan]',
  6349. sameElse : 'L'
  6350. },
  6351. relativeTime : {
  6352. future : '%s barru',
  6353. past : 'duela %s',
  6354. s : 'segundo batzuk',
  6355. m : 'minutu bat',
  6356. mm : '%d minutu',
  6357. h : 'ordu bat',
  6358. hh : '%d ordu',
  6359. d : 'egun bat',
  6360. dd : '%d egun',
  6361. M : 'hilabete bat',
  6362. MM : '%d hilabete',
  6363. y : 'urte bat',
  6364. yy : '%d urte'
  6365. },
  6366. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6367. ordinal : '%d.',
  6368. week : {
  6369. dow : 1, // Monday is the first day of the week.
  6370. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6371. }
  6372. });
  6373. //! moment.js locale configuration
  6374. //! locale : Persian [fa]
  6375. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  6376. var symbolMap$5 = {
  6377. '1': '۱',
  6378. '2': '۲',
  6379. '3': '۳',
  6380. '4': '۴',
  6381. '5': '۵',
  6382. '6': '۶',
  6383. '7': '۷',
  6384. '8': '۸',
  6385. '9': '۹',
  6386. '0': '۰'
  6387. };
  6388. var numberMap$4 = {
  6389. '۱': '1',
  6390. '۲': '2',
  6391. '۳': '3',
  6392. '۴': '4',
  6393. '۵': '5',
  6394. '۶': '6',
  6395. '۷': '7',
  6396. '۸': '8',
  6397. '۹': '9',
  6398. '۰': '0'
  6399. };
  6400. hooks.defineLocale('fa', {
  6401. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6402. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6403. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6404. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6405. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  6406. weekdaysParseExact : true,
  6407. longDateFormat : {
  6408. LT : 'HH:mm',
  6409. LTS : 'HH:mm:ss',
  6410. L : 'DD/MM/YYYY',
  6411. LL : 'D MMMM YYYY',
  6412. LLL : 'D MMMM YYYY HH:mm',
  6413. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6414. },
  6415. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  6416. isPM: function (input) {
  6417. return /بعد از ظهر/.test(input);
  6418. },
  6419. meridiem : function (hour, minute, isLower) {
  6420. if (hour < 12) {
  6421. return 'قبل از ظهر';
  6422. } else {
  6423. return 'بعد از ظهر';
  6424. }
  6425. },
  6426. calendar : {
  6427. sameDay : '[امروز ساعت] LT',
  6428. nextDay : '[فردا ساعت] LT',
  6429. nextWeek : 'dddd [ساعت] LT',
  6430. lastDay : '[دیروز ساعت] LT',
  6431. lastWeek : 'dddd [پیش] [ساعت] LT',
  6432. sameElse : 'L'
  6433. },
  6434. relativeTime : {
  6435. future : 'در %s',
  6436. past : '%s پیش',
  6437. s : 'چند ثانیه',
  6438. m : 'یک دقیقه',
  6439. mm : '%d دقیقه',
  6440. h : 'یک ساعت',
  6441. hh : '%d ساعت',
  6442. d : 'یک روز',
  6443. dd : '%d روز',
  6444. M : 'یک ماه',
  6445. MM : '%d ماه',
  6446. y : 'یک سال',
  6447. yy : '%d سال'
  6448. },
  6449. preparse: function (string) {
  6450. return string.replace(/[۰-۹]/g, function (match) {
  6451. return numberMap$4[match];
  6452. }).replace(/،/g, ',');
  6453. },
  6454. postformat: function (string) {
  6455. return string.replace(/\d/g, function (match) {
  6456. return symbolMap$5[match];
  6457. }).replace(/,/g, '،');
  6458. },
  6459. dayOfMonthOrdinalParse: /\d{1,2}م/,
  6460. ordinal : '%dم',
  6461. week : {
  6462. dow : 6, // Saturday is the first day of the week.
  6463. doy : 12 // The week that contains Jan 1st is the first week of the year.
  6464. }
  6465. });
  6466. //! moment.js locale configuration
  6467. //! locale : Finnish [fi]
  6468. //! author : Tarmo Aidantausta : https://github.com/bleadof
  6469. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
  6470. var numbersFuture = [
  6471. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  6472. numbersPast[7], numbersPast[8], numbersPast[9]
  6473. ];
  6474. function translate$2(number, withoutSuffix, key, isFuture) {
  6475. var result = '';
  6476. switch (key) {
  6477. case 's':
  6478. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  6479. case 'm':
  6480. return isFuture ? 'minuutin' : 'minuutti';
  6481. case 'mm':
  6482. result = isFuture ? 'minuutin' : 'minuuttia';
  6483. break;
  6484. case 'h':
  6485. return isFuture ? 'tunnin' : 'tunti';
  6486. case 'hh':
  6487. result = isFuture ? 'tunnin' : 'tuntia';
  6488. break;
  6489. case 'd':
  6490. return isFuture ? 'päivän' : 'päivä';
  6491. case 'dd':
  6492. result = isFuture ? 'päivän' : 'päivää';
  6493. break;
  6494. case 'M':
  6495. return isFuture ? 'kuukauden' : 'kuukausi';
  6496. case 'MM':
  6497. result = isFuture ? 'kuukauden' : 'kuukautta';
  6498. break;
  6499. case 'y':
  6500. return isFuture ? 'vuoden' : 'vuosi';
  6501. case 'yy':
  6502. result = isFuture ? 'vuoden' : 'vuotta';
  6503. break;
  6504. }
  6505. result = verbalNumber(number, isFuture) + ' ' + result;
  6506. return result;
  6507. }
  6508. function verbalNumber(number, isFuture) {
  6509. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  6510. }
  6511. hooks.defineLocale('fi', {
  6512. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  6513. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  6514. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  6515. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6516. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6517. longDateFormat : {
  6518. LT : 'HH.mm',
  6519. LTS : 'HH.mm.ss',
  6520. L : 'DD.MM.YYYY',
  6521. LL : 'Do MMMM[ta] YYYY',
  6522. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  6523. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  6524. l : 'D.M.YYYY',
  6525. ll : 'Do MMM YYYY',
  6526. lll : 'Do MMM YYYY, [klo] HH.mm',
  6527. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  6528. },
  6529. calendar : {
  6530. sameDay : '[tänään] [klo] LT',
  6531. nextDay : '[huomenna] [klo] LT',
  6532. nextWeek : 'dddd [klo] LT',
  6533. lastDay : '[eilen] [klo] LT',
  6534. lastWeek : '[viime] dddd[na] [klo] LT',
  6535. sameElse : 'L'
  6536. },
  6537. relativeTime : {
  6538. future : '%s päästä',
  6539. past : '%s sitten',
  6540. s : translate$2,
  6541. m : translate$2,
  6542. mm : translate$2,
  6543. h : translate$2,
  6544. hh : translate$2,
  6545. d : translate$2,
  6546. dd : translate$2,
  6547. M : translate$2,
  6548. MM : translate$2,
  6549. y : translate$2,
  6550. yy : translate$2
  6551. },
  6552. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6553. ordinal : '%d.',
  6554. week : {
  6555. dow : 1, // Monday is the first day of the week.
  6556. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6557. }
  6558. });
  6559. //! moment.js locale configuration
  6560. //! locale : Faroese [fo]
  6561. //! author : Ragnar Johannesen : https://github.com/ragnar123
  6562. hooks.defineLocale('fo', {
  6563. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  6564. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  6565. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  6566. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  6567. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  6568. longDateFormat : {
  6569. LT : 'HH:mm',
  6570. LTS : 'HH:mm:ss',
  6571. L : 'DD/MM/YYYY',
  6572. LL : 'D MMMM YYYY',
  6573. LLL : 'D MMMM YYYY HH:mm',
  6574. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  6575. },
  6576. calendar : {
  6577. sameDay : '[Í dag kl.] LT',
  6578. nextDay : '[Í morgin kl.] LT',
  6579. nextWeek : 'dddd [kl.] LT',
  6580. lastDay : '[Í gjár kl.] LT',
  6581. lastWeek : '[síðstu] dddd [kl] LT',
  6582. sameElse : 'L'
  6583. },
  6584. relativeTime : {
  6585. future : 'um %s',
  6586. past : '%s síðani',
  6587. s : 'fá sekund',
  6588. m : 'ein minutt',
  6589. mm : '%d minuttir',
  6590. h : 'ein tími',
  6591. hh : '%d tímar',
  6592. d : 'ein dagur',
  6593. dd : '%d dagar',
  6594. M : 'ein mánaði',
  6595. MM : '%d mánaðir',
  6596. y : 'eitt ár',
  6597. yy : '%d ár'
  6598. },
  6599. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6600. ordinal : '%d.',
  6601. week : {
  6602. dow : 1, // Monday is the first day of the week.
  6603. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6604. }
  6605. });
  6606. //! moment.js locale configuration
  6607. //! locale : French (Canada) [fr-ca]
  6608. //! author : Jonathan Abourbih : https://github.com/jonbca
  6609. hooks.defineLocale('fr-ca', {
  6610. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6611. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6612. monthsParseExact : true,
  6613. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6614. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6615. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6616. weekdaysParseExact : true,
  6617. longDateFormat : {
  6618. LT : 'HH:mm',
  6619. LTS : 'HH:mm:ss',
  6620. L : 'YYYY-MM-DD',
  6621. LL : 'D MMMM YYYY',
  6622. LLL : 'D MMMM YYYY HH:mm',
  6623. LLLL : 'dddd D MMMM YYYY HH:mm'
  6624. },
  6625. calendar : {
  6626. sameDay : '[Aujourd’hui à] LT',
  6627. nextDay : '[Demain à] LT',
  6628. nextWeek : 'dddd [à] LT',
  6629. lastDay : '[Hier à] LT',
  6630. lastWeek : 'dddd [dernier à] LT',
  6631. sameElse : 'L'
  6632. },
  6633. relativeTime : {
  6634. future : 'dans %s',
  6635. past : 'il y a %s',
  6636. s : 'quelques secondes',
  6637. m : 'une minute',
  6638. mm : '%d minutes',
  6639. h : 'une heure',
  6640. hh : '%d heures',
  6641. d : 'un jour',
  6642. dd : '%d jours',
  6643. M : 'un mois',
  6644. MM : '%d mois',
  6645. y : 'un an',
  6646. yy : '%d ans'
  6647. },
  6648. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  6649. ordinal : function (number, period) {
  6650. switch (period) {
  6651. // Words with masculine grammatical gender: mois, trimestre, jour
  6652. default:
  6653. case 'M':
  6654. case 'Q':
  6655. case 'D':
  6656. case 'DDD':
  6657. case 'd':
  6658. return number + (number === 1 ? 'er' : 'e');
  6659. // Words with feminine grammatical gender: semaine
  6660. case 'w':
  6661. case 'W':
  6662. return number + (number === 1 ? 're' : 'e');
  6663. }
  6664. }
  6665. });
  6666. //! moment.js locale configuration
  6667. //! locale : French (Switzerland) [fr-ch]
  6668. //! author : Gaspard Bucher : https://github.com/gaspard
  6669. hooks.defineLocale('fr-ch', {
  6670. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6671. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6672. monthsParseExact : true,
  6673. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6674. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6675. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6676. weekdaysParseExact : true,
  6677. longDateFormat : {
  6678. LT : 'HH:mm',
  6679. LTS : 'HH:mm:ss',
  6680. L : 'DD.MM.YYYY',
  6681. LL : 'D MMMM YYYY',
  6682. LLL : 'D MMMM YYYY HH:mm',
  6683. LLLL : 'dddd D MMMM YYYY HH:mm'
  6684. },
  6685. calendar : {
  6686. sameDay : '[Aujourd’hui à] LT',
  6687. nextDay : '[Demain à] LT',
  6688. nextWeek : 'dddd [à] LT',
  6689. lastDay : '[Hier à] LT',
  6690. lastWeek : 'dddd [dernier à] LT',
  6691. sameElse : 'L'
  6692. },
  6693. relativeTime : {
  6694. future : 'dans %s',
  6695. past : 'il y a %s',
  6696. s : 'quelques secondes',
  6697. m : 'une minute',
  6698. mm : '%d minutes',
  6699. h : 'une heure',
  6700. hh : '%d heures',
  6701. d : 'un jour',
  6702. dd : '%d jours',
  6703. M : 'un mois',
  6704. MM : '%d mois',
  6705. y : 'un an',
  6706. yy : '%d ans'
  6707. },
  6708. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  6709. ordinal : function (number, period) {
  6710. switch (period) {
  6711. // Words with masculine grammatical gender: mois, trimestre, jour
  6712. default:
  6713. case 'M':
  6714. case 'Q':
  6715. case 'D':
  6716. case 'DDD':
  6717. case 'd':
  6718. return number + (number === 1 ? 'er' : 'e');
  6719. // Words with feminine grammatical gender: semaine
  6720. case 'w':
  6721. case 'W':
  6722. return number + (number === 1 ? 're' : 'e');
  6723. }
  6724. },
  6725. week : {
  6726. dow : 1, // Monday is the first day of the week.
  6727. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6728. }
  6729. });
  6730. //! moment.js locale configuration
  6731. //! locale : French [fr]
  6732. //! author : John Fischer : https://github.com/jfroffice
  6733. hooks.defineLocale('fr', {
  6734. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6735. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6736. monthsParseExact : true,
  6737. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6738. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6739. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6740. weekdaysParseExact : true,
  6741. longDateFormat : {
  6742. LT : 'HH:mm',
  6743. LTS : 'HH:mm:ss',
  6744. L : 'DD/MM/YYYY',
  6745. LL : 'D MMMM YYYY',
  6746. LLL : 'D MMMM YYYY HH:mm',
  6747. LLLL : 'dddd D MMMM YYYY HH:mm'
  6748. },
  6749. calendar : {
  6750. sameDay : '[Aujourd’hui à] LT',
  6751. nextDay : '[Demain à] LT',
  6752. nextWeek : 'dddd [à] LT',
  6753. lastDay : '[Hier à] LT',
  6754. lastWeek : 'dddd [dernier à] LT',
  6755. sameElse : 'L'
  6756. },
  6757. relativeTime : {
  6758. future : 'dans %s',
  6759. past : 'il y a %s',
  6760. s : 'quelques secondes',
  6761. m : 'une minute',
  6762. mm : '%d minutes',
  6763. h : 'une heure',
  6764. hh : '%d heures',
  6765. d : 'un jour',
  6766. dd : '%d jours',
  6767. M : 'un mois',
  6768. MM : '%d mois',
  6769. y : 'un an',
  6770. yy : '%d ans'
  6771. },
  6772. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  6773. ordinal : function (number, period) {
  6774. switch (period) {
  6775. // TODO: Return 'e' when day of month > 1. Move this case inside
  6776. // block for masculine words below.
  6777. // See https://github.com/moment/moment/issues/3375
  6778. case 'D':
  6779. return number + (number === 1 ? 'er' : '');
  6780. // Words with masculine grammatical gender: mois, trimestre, jour
  6781. default:
  6782. case 'M':
  6783. case 'Q':
  6784. case 'DDD':
  6785. case 'd':
  6786. return number + (number === 1 ? 'er' : 'e');
  6787. // Words with feminine grammatical gender: semaine
  6788. case 'w':
  6789. case 'W':
  6790. return number + (number === 1 ? 're' : 'e');
  6791. }
  6792. },
  6793. week : {
  6794. dow : 1, // Monday is the first day of the week.
  6795. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6796. }
  6797. });
  6798. //! moment.js locale configuration
  6799. //! locale : Frisian [fy]
  6800. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  6801. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
  6802. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  6803. hooks.defineLocale('fy', {
  6804. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  6805. monthsShort : function (m, format) {
  6806. if (!m) {
  6807. return monthsShortWithDots;
  6808. } else if (/-MMM-/.test(format)) {
  6809. return monthsShortWithoutDots[m.month()];
  6810. } else {
  6811. return monthsShortWithDots[m.month()];
  6812. }
  6813. },
  6814. monthsParseExact : true,
  6815. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  6816. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  6817. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  6818. weekdaysParseExact : true,
  6819. longDateFormat : {
  6820. LT : 'HH:mm',
  6821. LTS : 'HH:mm:ss',
  6822. L : 'DD-MM-YYYY',
  6823. LL : 'D MMMM YYYY',
  6824. LLL : 'D MMMM YYYY HH:mm',
  6825. LLLL : 'dddd D MMMM YYYY HH:mm'
  6826. },
  6827. calendar : {
  6828. sameDay: '[hjoed om] LT',
  6829. nextDay: '[moarn om] LT',
  6830. nextWeek: 'dddd [om] LT',
  6831. lastDay: '[juster om] LT',
  6832. lastWeek: '[ôfrûne] dddd [om] LT',
  6833. sameElse: 'L'
  6834. },
  6835. relativeTime : {
  6836. future : 'oer %s',
  6837. past : '%s lyn',
  6838. s : 'in pear sekonden',
  6839. m : 'ien minút',
  6840. mm : '%d minuten',
  6841. h : 'ien oere',
  6842. hh : '%d oeren',
  6843. d : 'ien dei',
  6844. dd : '%d dagen',
  6845. M : 'ien moanne',
  6846. MM : '%d moannen',
  6847. y : 'ien jier',
  6848. yy : '%d jierren'
  6849. },
  6850. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  6851. ordinal : function (number) {
  6852. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  6853. },
  6854. week : {
  6855. dow : 1, // Monday is the first day of the week.
  6856. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6857. }
  6858. });
  6859. //! moment.js locale configuration
  6860. //! locale : Scottish Gaelic [gd]
  6861. //! author : Jon Ashdown : https://github.com/jonashdown
  6862. var months$5 = [
  6863. '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'
  6864. ];
  6865. var monthsShort$3 = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  6866. var weekdays$1 = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  6867. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  6868. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  6869. hooks.defineLocale('gd', {
  6870. months : months$5,
  6871. monthsShort : monthsShort$3,
  6872. monthsParseExact : true,
  6873. weekdays : weekdays$1,
  6874. weekdaysShort : weekdaysShort,
  6875. weekdaysMin : weekdaysMin,
  6876. longDateFormat : {
  6877. LT : 'HH:mm',
  6878. LTS : 'HH:mm:ss',
  6879. L : 'DD/MM/YYYY',
  6880. LL : 'D MMMM YYYY',
  6881. LLL : 'D MMMM YYYY HH:mm',
  6882. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6883. },
  6884. calendar : {
  6885. sameDay : '[An-diugh aig] LT',
  6886. nextDay : '[A-màireach aig] LT',
  6887. nextWeek : 'dddd [aig] LT',
  6888. lastDay : '[An-dè aig] LT',
  6889. lastWeek : 'dddd [seo chaidh] [aig] LT',
  6890. sameElse : 'L'
  6891. },
  6892. relativeTime : {
  6893. future : 'ann an %s',
  6894. past : 'bho chionn %s',
  6895. s : 'beagan diogan',
  6896. m : 'mionaid',
  6897. mm : '%d mionaidean',
  6898. h : 'uair',
  6899. hh : '%d uairean',
  6900. d : 'latha',
  6901. dd : '%d latha',
  6902. M : 'mìos',
  6903. MM : '%d mìosan',
  6904. y : 'bliadhna',
  6905. yy : '%d bliadhna'
  6906. },
  6907. dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
  6908. ordinal : function (number) {
  6909. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  6910. return number + output;
  6911. },
  6912. week : {
  6913. dow : 1, // Monday is the first day of the week.
  6914. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6915. }
  6916. });
  6917. //! moment.js locale configuration
  6918. //! locale : Galician [gl]
  6919. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  6920. hooks.defineLocale('gl', {
  6921. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  6922. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  6923. monthsParseExact: true,
  6924. weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  6925. weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  6926. weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  6927. weekdaysParseExact : true,
  6928. longDateFormat : {
  6929. LT : 'H:mm',
  6930. LTS : 'H:mm:ss',
  6931. L : 'DD/MM/YYYY',
  6932. LL : 'D [de] MMMM [de] YYYY',
  6933. LLL : 'D [de] MMMM [de] YYYY H:mm',
  6934. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  6935. },
  6936. calendar : {
  6937. sameDay : function () {
  6938. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6939. },
  6940. nextDay : function () {
  6941. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6942. },
  6943. nextWeek : function () {
  6944. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6945. },
  6946. lastDay : function () {
  6947. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  6948. },
  6949. lastWeek : function () {
  6950. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6951. },
  6952. sameElse : 'L'
  6953. },
  6954. relativeTime : {
  6955. future : function (str) {
  6956. if (str.indexOf('un') === 0) {
  6957. return 'n' + str;
  6958. }
  6959. return 'en ' + str;
  6960. },
  6961. past : 'hai %s',
  6962. s : 'uns segundos',
  6963. m : 'un minuto',
  6964. mm : '%d minutos',
  6965. h : 'unha hora',
  6966. hh : '%d horas',
  6967. d : 'un día',
  6968. dd : '%d días',
  6969. M : 'un mes',
  6970. MM : '%d meses',
  6971. y : 'un ano',
  6972. yy : '%d anos'
  6973. },
  6974. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6975. ordinal : '%dº',
  6976. week : {
  6977. dow : 1, // Monday is the first day of the week.
  6978. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6979. }
  6980. });
  6981. //! moment.js locale configuration
  6982. //! locale : Konkani Latin script [gom-latn]
  6983. //! author : The Discoverer : https://github.com/WikiDiscoverer
  6984. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  6985. var format = {
  6986. 's': ['thodde secondanim', 'thodde second'],
  6987. 'm': ['eka mintan', 'ek minute'],
  6988. 'mm': [number + ' mintanim', number + ' mintam'],
  6989. 'h': ['eka horan', 'ek hor'],
  6990. 'hh': [number + ' horanim', number + ' hor'],
  6991. 'd': ['eka disan', 'ek dis'],
  6992. 'dd': [number + ' disanim', number + ' dis'],
  6993. 'M': ['eka mhoinean', 'ek mhoino'],
  6994. 'MM': [number + ' mhoineanim', number + ' mhoine'],
  6995. 'y': ['eka vorsan', 'ek voros'],
  6996. 'yy': [number + ' vorsanim', number + ' vorsam']
  6997. };
  6998. return withoutSuffix ? format[key][0] : format[key][1];
  6999. }
  7000. hooks.defineLocale('gom-latn', {
  7001. months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  7002. monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  7003. monthsParseExact : true,
  7004. weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
  7005. weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  7006. weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  7007. weekdaysParseExact : true,
  7008. longDateFormat : {
  7009. LT : 'A h:mm [vazta]',
  7010. LTS : 'A h:mm:ss [vazta]',
  7011. L : 'DD-MM-YYYY',
  7012. LL : 'D MMMM YYYY',
  7013. LLL : 'D MMMM YYYY A h:mm [vazta]',
  7014. LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
  7015. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  7016. },
  7017. calendar : {
  7018. sameDay: '[Aiz] LT',
  7019. nextDay: '[Faleam] LT',
  7020. nextWeek: '[Ieta to] dddd[,] LT',
  7021. lastDay: '[Kal] LT',
  7022. lastWeek: '[Fatlo] dddd[,] LT',
  7023. sameElse: 'L'
  7024. },
  7025. relativeTime : {
  7026. future : '%s',
  7027. past : '%s adim',
  7028. s : processRelativeTime$4,
  7029. m : processRelativeTime$4,
  7030. mm : processRelativeTime$4,
  7031. h : processRelativeTime$4,
  7032. hh : processRelativeTime$4,
  7033. d : processRelativeTime$4,
  7034. dd : processRelativeTime$4,
  7035. M : processRelativeTime$4,
  7036. MM : processRelativeTime$4,
  7037. y : processRelativeTime$4,
  7038. yy : processRelativeTime$4
  7039. },
  7040. dayOfMonthOrdinalParse : /\d{1,2}(er)/,
  7041. ordinal : function (number, period) {
  7042. switch (period) {
  7043. // the ordinal 'er' only applies to day of the month
  7044. case 'D':
  7045. return number + 'er';
  7046. default:
  7047. case 'M':
  7048. case 'Q':
  7049. case 'DDD':
  7050. case 'd':
  7051. case 'w':
  7052. case 'W':
  7053. return number;
  7054. }
  7055. },
  7056. week : {
  7057. dow : 1, // Monday is the first day of the week.
  7058. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7059. },
  7060. meridiemParse: /rati|sokalli|donparam|sanje/,
  7061. meridiemHour : function (hour, meridiem) {
  7062. if (hour === 12) {
  7063. hour = 0;
  7064. }
  7065. if (meridiem === 'rati') {
  7066. return hour < 4 ? hour : hour + 12;
  7067. } else if (meridiem === 'sokalli') {
  7068. return hour;
  7069. } else if (meridiem === 'donparam') {
  7070. return hour > 12 ? hour : hour + 12;
  7071. } else if (meridiem === 'sanje') {
  7072. return hour + 12;
  7073. }
  7074. },
  7075. meridiem : function (hour, minute, isLower) {
  7076. if (hour < 4) {
  7077. return 'rati';
  7078. } else if (hour < 12) {
  7079. return 'sokalli';
  7080. } else if (hour < 16) {
  7081. return 'donparam';
  7082. } else if (hour < 20) {
  7083. return 'sanje';
  7084. } else {
  7085. return 'rati';
  7086. }
  7087. }
  7088. });
  7089. //! moment.js locale configuration
  7090. //! locale : Hebrew [he]
  7091. //! author : Tomer Cohen : https://github.com/tomer
  7092. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  7093. //! author : Tal Ater : https://github.com/TalAter
  7094. hooks.defineLocale('he', {
  7095. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  7096. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  7097. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  7098. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  7099. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  7100. longDateFormat : {
  7101. LT : 'HH:mm',
  7102. LTS : 'HH:mm:ss',
  7103. L : 'DD/MM/YYYY',
  7104. LL : 'D [ב]MMMM YYYY',
  7105. LLL : 'D [ב]MMMM YYYY HH:mm',
  7106. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  7107. l : 'D/M/YYYY',
  7108. ll : 'D MMM YYYY',
  7109. lll : 'D MMM YYYY HH:mm',
  7110. llll : 'ddd, D MMM YYYY HH:mm'
  7111. },
  7112. calendar : {
  7113. sameDay : '[היום ב־]LT',
  7114. nextDay : '[מחר ב־]LT',
  7115. nextWeek : 'dddd [בשעה] LT',
  7116. lastDay : '[אתמול ב־]LT',
  7117. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  7118. sameElse : 'L'
  7119. },
  7120. relativeTime : {
  7121. future : 'בעוד %s',
  7122. past : 'לפני %s',
  7123. s : 'מספר שניות',
  7124. m : 'דקה',
  7125. mm : '%d דקות',
  7126. h : 'שעה',
  7127. hh : function (number) {
  7128. if (number === 2) {
  7129. return 'שעתיים';
  7130. }
  7131. return number + ' שעות';
  7132. },
  7133. d : 'יום',
  7134. dd : function (number) {
  7135. if (number === 2) {
  7136. return 'יומיים';
  7137. }
  7138. return number + ' ימים';
  7139. },
  7140. M : 'חודש',
  7141. MM : function (number) {
  7142. if (number === 2) {
  7143. return 'חודשיים';
  7144. }
  7145. return number + ' חודשים';
  7146. },
  7147. y : 'שנה',
  7148. yy : function (number) {
  7149. if (number === 2) {
  7150. return 'שנתיים';
  7151. } else if (number % 10 === 0 && number !== 10) {
  7152. return number + ' שנה';
  7153. }
  7154. return number + ' שנים';
  7155. }
  7156. },
  7157. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  7158. isPM : function (input) {
  7159. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  7160. },
  7161. meridiem : function (hour, minute, isLower) {
  7162. if (hour < 5) {
  7163. return 'לפנות בוקר';
  7164. } else if (hour < 10) {
  7165. return 'בבוקר';
  7166. } else if (hour < 12) {
  7167. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  7168. } else if (hour < 18) {
  7169. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  7170. } else {
  7171. return 'בערב';
  7172. }
  7173. }
  7174. });
  7175. //! moment.js locale configuration
  7176. //! locale : Hindi [hi]
  7177. //! author : Mayank Singhal : https://github.com/mayanksinghal
  7178. var symbolMap$6 = {
  7179. '1': '१',
  7180. '2': '२',
  7181. '3': '३',
  7182. '4': '४',
  7183. '5': '५',
  7184. '6': '६',
  7185. '7': '७',
  7186. '8': '८',
  7187. '9': '९',
  7188. '0': '०'
  7189. };
  7190. var numberMap$5 = {
  7191. '१': '1',
  7192. '२': '2',
  7193. '३': '3',
  7194. '४': '4',
  7195. '५': '5',
  7196. '६': '6',
  7197. '७': '7',
  7198. '८': '8',
  7199. '९': '9',
  7200. '०': '0'
  7201. };
  7202. hooks.defineLocale('hi', {
  7203. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  7204. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  7205. monthsParseExact: true,
  7206. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  7207. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  7208. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  7209. longDateFormat : {
  7210. LT : 'A h:mm बजे',
  7211. LTS : 'A h:mm:ss बजे',
  7212. L : 'DD/MM/YYYY',
  7213. LL : 'D MMMM YYYY',
  7214. LLL : 'D MMMM YYYY, A h:mm बजे',
  7215. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  7216. },
  7217. calendar : {
  7218. sameDay : '[आज] LT',
  7219. nextDay : '[कल] LT',
  7220. nextWeek : 'dddd, LT',
  7221. lastDay : '[कल] LT',
  7222. lastWeek : '[पिछले] dddd, LT',
  7223. sameElse : 'L'
  7224. },
  7225. relativeTime : {
  7226. future : '%s में',
  7227. past : '%s पहले',
  7228. s : 'कुछ ही क्षण',
  7229. m : 'एक मिनट',
  7230. mm : '%d मिनट',
  7231. h : 'एक घंटा',
  7232. hh : '%d घंटे',
  7233. d : 'एक दिन',
  7234. dd : '%d दिन',
  7235. M : 'एक महीने',
  7236. MM : '%d महीने',
  7237. y : 'एक वर्ष',
  7238. yy : '%d वर्ष'
  7239. },
  7240. preparse: function (string) {
  7241. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  7242. return numberMap$5[match];
  7243. });
  7244. },
  7245. postformat: function (string) {
  7246. return string.replace(/\d/g, function (match) {
  7247. return symbolMap$6[match];
  7248. });
  7249. },
  7250. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  7251. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  7252. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  7253. meridiemHour : function (hour, meridiem) {
  7254. if (hour === 12) {
  7255. hour = 0;
  7256. }
  7257. if (meridiem === 'रात') {
  7258. return hour < 4 ? hour : hour + 12;
  7259. } else if (meridiem === 'सुबह') {
  7260. return hour;
  7261. } else if (meridiem === 'दोपहर') {
  7262. return hour >= 10 ? hour : hour + 12;
  7263. } else if (meridiem === 'शाम') {
  7264. return hour + 12;
  7265. }
  7266. },
  7267. meridiem : function (hour, minute, isLower) {
  7268. if (hour < 4) {
  7269. return 'रात';
  7270. } else if (hour < 10) {
  7271. return 'सुबह';
  7272. } else if (hour < 17) {
  7273. return 'दोपहर';
  7274. } else if (hour < 20) {
  7275. return 'शाम';
  7276. } else {
  7277. return 'रात';
  7278. }
  7279. },
  7280. week : {
  7281. dow : 0, // Sunday is the first day of the week.
  7282. doy : 6 // The week that contains Jan 1st is the first week of the year.
  7283. }
  7284. });
  7285. //! moment.js locale configuration
  7286. //! locale : Croatian [hr]
  7287. //! author : Bojan Marković : https://github.com/bmarkovic
  7288. function translate$3(number, withoutSuffix, key) {
  7289. var result = number + ' ';
  7290. switch (key) {
  7291. case 'm':
  7292. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  7293. case 'mm':
  7294. if (number === 1) {
  7295. result += 'minuta';
  7296. } else if (number === 2 || number === 3 || number === 4) {
  7297. result += 'minute';
  7298. } else {
  7299. result += 'minuta';
  7300. }
  7301. return result;
  7302. case 'h':
  7303. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  7304. case 'hh':
  7305. if (number === 1) {
  7306. result += 'sat';
  7307. } else if (number === 2 || number === 3 || number === 4) {
  7308. result += 'sata';
  7309. } else {
  7310. result += 'sati';
  7311. }
  7312. return result;
  7313. case 'dd':
  7314. if (number === 1) {
  7315. result += 'dan';
  7316. } else {
  7317. result += 'dana';
  7318. }
  7319. return result;
  7320. case 'MM':
  7321. if (number === 1) {
  7322. result += 'mjesec';
  7323. } else if (number === 2 || number === 3 || number === 4) {
  7324. result += 'mjeseca';
  7325. } else {
  7326. result += 'mjeseci';
  7327. }
  7328. return result;
  7329. case 'yy':
  7330. if (number === 1) {
  7331. result += 'godina';
  7332. } else if (number === 2 || number === 3 || number === 4) {
  7333. result += 'godine';
  7334. } else {
  7335. result += 'godina';
  7336. }
  7337. return result;
  7338. }
  7339. }
  7340. hooks.defineLocale('hr', {
  7341. months : {
  7342. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  7343. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  7344. },
  7345. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  7346. monthsParseExact: true,
  7347. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  7348. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  7349. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  7350. weekdaysParseExact : true,
  7351. longDateFormat : {
  7352. LT : 'H:mm',
  7353. LTS : 'H:mm:ss',
  7354. L : 'DD.MM.YYYY',
  7355. LL : 'D. MMMM YYYY',
  7356. LLL : 'D. MMMM YYYY H:mm',
  7357. LLLL : 'dddd, D. MMMM YYYY H:mm'
  7358. },
  7359. calendar : {
  7360. sameDay : '[danas u] LT',
  7361. nextDay : '[sutra u] LT',
  7362. nextWeek : function () {
  7363. switch (this.day()) {
  7364. case 0:
  7365. return '[u] [nedjelju] [u] LT';
  7366. case 3:
  7367. return '[u] [srijedu] [u] LT';
  7368. case 6:
  7369. return '[u] [subotu] [u] LT';
  7370. case 1:
  7371. case 2:
  7372. case 4:
  7373. case 5:
  7374. return '[u] dddd [u] LT';
  7375. }
  7376. },
  7377. lastDay : '[jučer u] LT',
  7378. lastWeek : function () {
  7379. switch (this.day()) {
  7380. case 0:
  7381. case 3:
  7382. return '[prošlu] dddd [u] LT';
  7383. case 6:
  7384. return '[prošle] [subote] [u] LT';
  7385. case 1:
  7386. case 2:
  7387. case 4:
  7388. case 5:
  7389. return '[prošli] dddd [u] LT';
  7390. }
  7391. },
  7392. sameElse : 'L'
  7393. },
  7394. relativeTime : {
  7395. future : 'za %s',
  7396. past : 'prije %s',
  7397. s : 'par sekundi',
  7398. m : translate$3,
  7399. mm : translate$3,
  7400. h : translate$3,
  7401. hh : translate$3,
  7402. d : 'dan',
  7403. dd : translate$3,
  7404. M : 'mjesec',
  7405. MM : translate$3,
  7406. y : 'godinu',
  7407. yy : translate$3
  7408. },
  7409. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7410. ordinal : '%d.',
  7411. week : {
  7412. dow : 1, // Monday is the first day of the week.
  7413. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7414. }
  7415. });
  7416. //! moment.js locale configuration
  7417. //! locale : Hungarian [hu]
  7418. //! author : Adam Brunner : https://github.com/adambrunner
  7419. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  7420. function translate$4(number, withoutSuffix, key, isFuture) {
  7421. var num = number,
  7422. suffix;
  7423. switch (key) {
  7424. case 's':
  7425. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  7426. case 'm':
  7427. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7428. case 'mm':
  7429. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7430. case 'h':
  7431. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7432. case 'hh':
  7433. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7434. case 'd':
  7435. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7436. case 'dd':
  7437. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7438. case 'M':
  7439. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7440. case 'MM':
  7441. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7442. case 'y':
  7443. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  7444. case 'yy':
  7445. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  7446. }
  7447. return '';
  7448. }
  7449. function week(isFuture) {
  7450. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  7451. }
  7452. hooks.defineLocale('hu', {
  7453. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  7454. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  7455. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  7456. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  7457. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  7458. longDateFormat : {
  7459. LT : 'H:mm',
  7460. LTS : 'H:mm:ss',
  7461. L : 'YYYY.MM.DD.',
  7462. LL : 'YYYY. MMMM D.',
  7463. LLL : 'YYYY. MMMM D. H:mm',
  7464. LLLL : 'YYYY. MMMM D., dddd H:mm'
  7465. },
  7466. meridiemParse: /de|du/i,
  7467. isPM: function (input) {
  7468. return input.charAt(1).toLowerCase() === 'u';
  7469. },
  7470. meridiem : function (hours, minutes, isLower) {
  7471. if (hours < 12) {
  7472. return isLower === true ? 'de' : 'DE';
  7473. } else {
  7474. return isLower === true ? 'du' : 'DU';
  7475. }
  7476. },
  7477. calendar : {
  7478. sameDay : '[ma] LT[-kor]',
  7479. nextDay : '[holnap] LT[-kor]',
  7480. nextWeek : function () {
  7481. return week.call(this, true);
  7482. },
  7483. lastDay : '[tegnap] LT[-kor]',
  7484. lastWeek : function () {
  7485. return week.call(this, false);
  7486. },
  7487. sameElse : 'L'
  7488. },
  7489. relativeTime : {
  7490. future : '%s múlva',
  7491. past : '%s',
  7492. s : translate$4,
  7493. m : translate$4,
  7494. mm : translate$4,
  7495. h : translate$4,
  7496. hh : translate$4,
  7497. d : translate$4,
  7498. dd : translate$4,
  7499. M : translate$4,
  7500. MM : translate$4,
  7501. y : translate$4,
  7502. yy : translate$4
  7503. },
  7504. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7505. ordinal : '%d.',
  7506. week : {
  7507. dow : 1, // Monday is the first day of the week.
  7508. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7509. }
  7510. });
  7511. //! moment.js locale configuration
  7512. //! locale : Armenian [hy-am]
  7513. //! author : Armendarabyan : https://github.com/armendarabyan
  7514. hooks.defineLocale('hy-am', {
  7515. months : {
  7516. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  7517. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  7518. },
  7519. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  7520. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  7521. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  7522. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  7523. longDateFormat : {
  7524. LT : 'HH:mm',
  7525. LTS : 'HH:mm:ss',
  7526. L : 'DD.MM.YYYY',
  7527. LL : 'D MMMM YYYY թ.',
  7528. LLL : 'D MMMM YYYY թ., HH:mm',
  7529. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  7530. },
  7531. calendar : {
  7532. sameDay: '[այսօր] LT',
  7533. nextDay: '[վաղը] LT',
  7534. lastDay: '[երեկ] LT',
  7535. nextWeek: function () {
  7536. return 'dddd [օրը ժամը] LT';
  7537. },
  7538. lastWeek: function () {
  7539. return '[անցած] dddd [օրը ժամը] LT';
  7540. },
  7541. sameElse: 'L'
  7542. },
  7543. relativeTime : {
  7544. future : '%s հետո',
  7545. past : '%s առաջ',
  7546. s : 'մի քանի վայրկյան',
  7547. m : 'րոպե',
  7548. mm : '%d րոպե',
  7549. h : 'ժամ',
  7550. hh : '%d ժամ',
  7551. d : 'օր',
  7552. dd : '%d օր',
  7553. M : 'ամիս',
  7554. MM : '%d ամիս',
  7555. y : 'տարի',
  7556. yy : '%d տարի'
  7557. },
  7558. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  7559. isPM: function (input) {
  7560. return /^(ցերեկվա|երեկոյան)$/.test(input);
  7561. },
  7562. meridiem : function (hour) {
  7563. if (hour < 4) {
  7564. return 'գիշերվա';
  7565. } else if (hour < 12) {
  7566. return 'առավոտվա';
  7567. } else if (hour < 17) {
  7568. return 'ցերեկվա';
  7569. } else {
  7570. return 'երեկոյան';
  7571. }
  7572. },
  7573. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  7574. ordinal: function (number, period) {
  7575. switch (period) {
  7576. case 'DDD':
  7577. case 'w':
  7578. case 'W':
  7579. case 'DDDo':
  7580. if (number === 1) {
  7581. return number + '-ին';
  7582. }
  7583. return number + '-րդ';
  7584. default:
  7585. return number;
  7586. }
  7587. },
  7588. week : {
  7589. dow : 1, // Monday is the first day of the week.
  7590. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7591. }
  7592. });
  7593. //! moment.js locale configuration
  7594. //! locale : Indonesian [id]
  7595. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  7596. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  7597. hooks.defineLocale('id', {
  7598. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  7599. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  7600. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  7601. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  7602. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  7603. longDateFormat : {
  7604. LT : 'HH.mm',
  7605. LTS : 'HH.mm.ss',
  7606. L : 'DD/MM/YYYY',
  7607. LL : 'D MMMM YYYY',
  7608. LLL : 'D MMMM YYYY [pukul] HH.mm',
  7609. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  7610. },
  7611. meridiemParse: /pagi|siang|sore|malam/,
  7612. meridiemHour : function (hour, meridiem) {
  7613. if (hour === 12) {
  7614. hour = 0;
  7615. }
  7616. if (meridiem === 'pagi') {
  7617. return hour;
  7618. } else if (meridiem === 'siang') {
  7619. return hour >= 11 ? hour : hour + 12;
  7620. } else if (meridiem === 'sore' || meridiem === 'malam') {
  7621. return hour + 12;
  7622. }
  7623. },
  7624. meridiem : function (hours, minutes, isLower) {
  7625. if (hours < 11) {
  7626. return 'pagi';
  7627. } else if (hours < 15) {
  7628. return 'siang';
  7629. } else if (hours < 19) {
  7630. return 'sore';
  7631. } else {
  7632. return 'malam';
  7633. }
  7634. },
  7635. calendar : {
  7636. sameDay : '[Hari ini pukul] LT',
  7637. nextDay : '[Besok pukul] LT',
  7638. nextWeek : 'dddd [pukul] LT',
  7639. lastDay : '[Kemarin pukul] LT',
  7640. lastWeek : 'dddd [lalu pukul] LT',
  7641. sameElse : 'L'
  7642. },
  7643. relativeTime : {
  7644. future : 'dalam %s',
  7645. past : '%s yang lalu',
  7646. s : 'beberapa detik',
  7647. m : 'semenit',
  7648. mm : '%d menit',
  7649. h : 'sejam',
  7650. hh : '%d jam',
  7651. d : 'sehari',
  7652. dd : '%d hari',
  7653. M : 'sebulan',
  7654. MM : '%d bulan',
  7655. y : 'setahun',
  7656. yy : '%d tahun'
  7657. },
  7658. week : {
  7659. dow : 1, // Monday is the first day of the week.
  7660. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7661. }
  7662. });
  7663. //! moment.js locale configuration
  7664. //! locale : Icelandic [is]
  7665. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  7666. function plural$2(n) {
  7667. if (n % 100 === 11) {
  7668. return true;
  7669. } else if (n % 10 === 1) {
  7670. return false;
  7671. }
  7672. return true;
  7673. }
  7674. function translate$5(number, withoutSuffix, key, isFuture) {
  7675. var result = number + ' ';
  7676. switch (key) {
  7677. case 's':
  7678. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  7679. case 'm':
  7680. return withoutSuffix ? 'mínúta' : 'mínútu';
  7681. case 'mm':
  7682. if (plural$2(number)) {
  7683. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  7684. } else if (withoutSuffix) {
  7685. return result + 'mínúta';
  7686. }
  7687. return result + 'mínútu';
  7688. case 'hh':
  7689. if (plural$2(number)) {
  7690. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  7691. }
  7692. return result + 'klukkustund';
  7693. case 'd':
  7694. if (withoutSuffix) {
  7695. return 'dagur';
  7696. }
  7697. return isFuture ? 'dag' : 'degi';
  7698. case 'dd':
  7699. if (plural$2(number)) {
  7700. if (withoutSuffix) {
  7701. return result + 'dagar';
  7702. }
  7703. return result + (isFuture ? 'daga' : 'dögum');
  7704. } else if (withoutSuffix) {
  7705. return result + 'dagur';
  7706. }
  7707. return result + (isFuture ? 'dag' : 'degi');
  7708. case 'M':
  7709. if (withoutSuffix) {
  7710. return 'mánuður';
  7711. }
  7712. return isFuture ? 'mánuð' : 'mánuði';
  7713. case 'MM':
  7714. if (plural$2(number)) {
  7715. if (withoutSuffix) {
  7716. return result + 'mánuðir';
  7717. }
  7718. return result + (isFuture ? 'mánuði' : 'mánuðum');
  7719. } else if (withoutSuffix) {
  7720. return result + 'mánuður';
  7721. }
  7722. return result + (isFuture ? 'mánuð' : 'mánuði');
  7723. case 'y':
  7724. return withoutSuffix || isFuture ? 'ár' : 'ári';
  7725. case 'yy':
  7726. if (plural$2(number)) {
  7727. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  7728. }
  7729. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  7730. }
  7731. }
  7732. hooks.defineLocale('is', {
  7733. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  7734. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  7735. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  7736. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  7737. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  7738. longDateFormat : {
  7739. LT : 'H:mm',
  7740. LTS : 'H:mm:ss',
  7741. L : 'DD.MM.YYYY',
  7742. LL : 'D. MMMM YYYY',
  7743. LLL : 'D. MMMM YYYY [kl.] H:mm',
  7744. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  7745. },
  7746. calendar : {
  7747. sameDay : '[í dag kl.] LT',
  7748. nextDay : '[á morgun kl.] LT',
  7749. nextWeek : 'dddd [kl.] LT',
  7750. lastDay : '[í gær kl.] LT',
  7751. lastWeek : '[síðasta] dddd [kl.] LT',
  7752. sameElse : 'L'
  7753. },
  7754. relativeTime : {
  7755. future : 'eftir %s',
  7756. past : 'fyrir %s síðan',
  7757. s : translate$5,
  7758. m : translate$5,
  7759. mm : translate$5,
  7760. h : 'klukkustund',
  7761. hh : translate$5,
  7762. d : translate$5,
  7763. dd : translate$5,
  7764. M : translate$5,
  7765. MM : translate$5,
  7766. y : translate$5,
  7767. yy : translate$5
  7768. },
  7769. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7770. ordinal : '%d.',
  7771. week : {
  7772. dow : 1, // Monday is the first day of the week.
  7773. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7774. }
  7775. });
  7776. //! moment.js locale configuration
  7777. //! locale : Italian [it]
  7778. //! author : Lorenzo : https://github.com/aliem
  7779. //! author: Mattia Larentis: https://github.com/nostalgiaz
  7780. hooks.defineLocale('it', {
  7781. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  7782. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  7783. weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  7784. weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  7785. weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
  7786. longDateFormat : {
  7787. LT : 'HH:mm',
  7788. LTS : 'HH:mm:ss',
  7789. L : 'DD/MM/YYYY',
  7790. LL : 'D MMMM YYYY',
  7791. LLL : 'D MMMM YYYY HH:mm',
  7792. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7793. },
  7794. calendar : {
  7795. sameDay: '[Oggi alle] LT',
  7796. nextDay: '[Domani alle] LT',
  7797. nextWeek: 'dddd [alle] LT',
  7798. lastDay: '[Ieri alle] LT',
  7799. lastWeek: function () {
  7800. switch (this.day()) {
  7801. case 0:
  7802. return '[la scorsa] dddd [alle] LT';
  7803. default:
  7804. return '[lo scorso] dddd [alle] LT';
  7805. }
  7806. },
  7807. sameElse: 'L'
  7808. },
  7809. relativeTime : {
  7810. future : function (s) {
  7811. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  7812. },
  7813. past : '%s fa',
  7814. s : 'alcuni secondi',
  7815. m : 'un minuto',
  7816. mm : '%d minuti',
  7817. h : 'un\'ora',
  7818. hh : '%d ore',
  7819. d : 'un giorno',
  7820. dd : '%d giorni',
  7821. M : 'un mese',
  7822. MM : '%d mesi',
  7823. y : 'un anno',
  7824. yy : '%d anni'
  7825. },
  7826. dayOfMonthOrdinalParse : /\d{1,2}º/,
  7827. ordinal: '%dº',
  7828. week : {
  7829. dow : 1, // Monday is the first day of the week.
  7830. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7831. }
  7832. });
  7833. //! moment.js locale configuration
  7834. //! locale : Japanese [ja]
  7835. //! author : LI Long : https://github.com/baryon
  7836. hooks.defineLocale('ja', {
  7837. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  7838. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  7839. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  7840. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  7841. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  7842. longDateFormat : {
  7843. LT : 'HH:mm',
  7844. LTS : 'HH:mm:ss',
  7845. L : 'YYYY/MM/DD',
  7846. LL : 'YYYY年M月D日',
  7847. LLL : 'YYYY年M月D日 HH:mm',
  7848. LLLL : 'YYYY年M月D日 HH:mm dddd',
  7849. l : 'YYYY/MM/DD',
  7850. ll : 'YYYY年M月D日',
  7851. lll : 'YYYY年M月D日 HH:mm',
  7852. llll : 'YYYY年M月D日 HH:mm dddd'
  7853. },
  7854. meridiemParse: /午前|午後/i,
  7855. isPM : function (input) {
  7856. return input === '午後';
  7857. },
  7858. meridiem : function (hour, minute, isLower) {
  7859. if (hour < 12) {
  7860. return '午前';
  7861. } else {
  7862. return '午後';
  7863. }
  7864. },
  7865. calendar : {
  7866. sameDay : '[今日] LT',
  7867. nextDay : '[明日] LT',
  7868. nextWeek : '[来週]dddd LT',
  7869. lastDay : '[昨日] LT',
  7870. lastWeek : '[前週]dddd LT',
  7871. sameElse : 'L'
  7872. },
  7873. dayOfMonthOrdinalParse : /\d{1,2}日/,
  7874. ordinal : function (number, period) {
  7875. switch (period) {
  7876. case 'd':
  7877. case 'D':
  7878. case 'DDD':
  7879. return number + '日';
  7880. default:
  7881. return number;
  7882. }
  7883. },
  7884. relativeTime : {
  7885. future : '%s後',
  7886. past : '%s前',
  7887. s : '数秒',
  7888. m : '1分',
  7889. mm : '%d分',
  7890. h : '1時間',
  7891. hh : '%d時間',
  7892. d : '1日',
  7893. dd : '%d日',
  7894. M : '1ヶ月',
  7895. MM : '%dヶ月',
  7896. y : '1年',
  7897. yy : '%d年'
  7898. }
  7899. });
  7900. //! moment.js locale configuration
  7901. //! locale : Javanese [jv]
  7902. //! author : Rony Lantip : https://github.com/lantip
  7903. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  7904. hooks.defineLocale('jv', {
  7905. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  7906. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  7907. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  7908. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  7909. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  7910. longDateFormat : {
  7911. LT : 'HH.mm',
  7912. LTS : 'HH.mm.ss',
  7913. L : 'DD/MM/YYYY',
  7914. LL : 'D MMMM YYYY',
  7915. LLL : 'D MMMM YYYY [pukul] HH.mm',
  7916. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  7917. },
  7918. meridiemParse: /enjing|siyang|sonten|ndalu/,
  7919. meridiemHour : function (hour, meridiem) {
  7920. if (hour === 12) {
  7921. hour = 0;
  7922. }
  7923. if (meridiem === 'enjing') {
  7924. return hour;
  7925. } else if (meridiem === 'siyang') {
  7926. return hour >= 11 ? hour : hour + 12;
  7927. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  7928. return hour + 12;
  7929. }
  7930. },
  7931. meridiem : function (hours, minutes, isLower) {
  7932. if (hours < 11) {
  7933. return 'enjing';
  7934. } else if (hours < 15) {
  7935. return 'siyang';
  7936. } else if (hours < 19) {
  7937. return 'sonten';
  7938. } else {
  7939. return 'ndalu';
  7940. }
  7941. },
  7942. calendar : {
  7943. sameDay : '[Dinten puniko pukul] LT',
  7944. nextDay : '[Mbenjang pukul] LT',
  7945. nextWeek : 'dddd [pukul] LT',
  7946. lastDay : '[Kala wingi pukul] LT',
  7947. lastWeek : 'dddd [kepengker pukul] LT',
  7948. sameElse : 'L'
  7949. },
  7950. relativeTime : {
  7951. future : 'wonten ing %s',
  7952. past : '%s ingkang kepengker',
  7953. s : 'sawetawis detik',
  7954. m : 'setunggal menit',
  7955. mm : '%d menit',
  7956. h : 'setunggal jam',
  7957. hh : '%d jam',
  7958. d : 'sedinten',
  7959. dd : '%d dinten',
  7960. M : 'sewulan',
  7961. MM : '%d wulan',
  7962. y : 'setaun',
  7963. yy : '%d taun'
  7964. },
  7965. week : {
  7966. dow : 1, // Monday is the first day of the week.
  7967. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7968. }
  7969. });
  7970. //! moment.js locale configuration
  7971. //! locale : Georgian [ka]
  7972. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  7973. hooks.defineLocale('ka', {
  7974. months : {
  7975. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  7976. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  7977. },
  7978. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  7979. weekdays : {
  7980. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  7981. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  7982. isFormat: /(წინა|შემდეგ)/
  7983. },
  7984. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  7985. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  7986. longDateFormat : {
  7987. LT : 'h:mm A',
  7988. LTS : 'h:mm:ss A',
  7989. L : 'DD/MM/YYYY',
  7990. LL : 'D MMMM YYYY',
  7991. LLL : 'D MMMM YYYY h:mm A',
  7992. LLLL : 'dddd, D MMMM YYYY h:mm A'
  7993. },
  7994. calendar : {
  7995. sameDay : '[დღეს] LT[-ზე]',
  7996. nextDay : '[ხვალ] LT[-ზე]',
  7997. lastDay : '[გუშინ] LT[-ზე]',
  7998. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  7999. lastWeek : '[წინა] dddd LT-ზე',
  8000. sameElse : 'L'
  8001. },
  8002. relativeTime : {
  8003. future : function (s) {
  8004. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  8005. s.replace(/ი$/, 'ში') :
  8006. s + 'ში';
  8007. },
  8008. past : function (s) {
  8009. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  8010. return s.replace(/(ი|ე)$/, 'ის უკან');
  8011. }
  8012. if ((/წელი/).test(s)) {
  8013. return s.replace(/წელი$/, 'წლის უკან');
  8014. }
  8015. },
  8016. s : 'რამდენიმე წამი',
  8017. m : 'წუთი',
  8018. mm : '%d წუთი',
  8019. h : 'საათი',
  8020. hh : '%d საათი',
  8021. d : 'დღე',
  8022. dd : '%d დღე',
  8023. M : 'თვე',
  8024. MM : '%d თვე',
  8025. y : 'წელი',
  8026. yy : '%d წელი'
  8027. },
  8028. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  8029. ordinal : function (number) {
  8030. if (number === 0) {
  8031. return number;
  8032. }
  8033. if (number === 1) {
  8034. return number + '-ლი';
  8035. }
  8036. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  8037. return 'მე-' + number;
  8038. }
  8039. return number + '-ე';
  8040. },
  8041. week : {
  8042. dow : 1,
  8043. doy : 7
  8044. }
  8045. });
  8046. //! moment.js locale configuration
  8047. //! locale : Kazakh [kk]
  8048. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  8049. var suffixes$1 = {
  8050. 0: '-ші',
  8051. 1: '-ші',
  8052. 2: '-ші',
  8053. 3: '-ші',
  8054. 4: '-ші',
  8055. 5: '-ші',
  8056. 6: '-шы',
  8057. 7: '-ші',
  8058. 8: '-ші',
  8059. 9: '-шы',
  8060. 10: '-шы',
  8061. 20: '-шы',
  8062. 30: '-шы',
  8063. 40: '-шы',
  8064. 50: '-ші',
  8065. 60: '-шы',
  8066. 70: '-ші',
  8067. 80: '-ші',
  8068. 90: '-шы',
  8069. 100: '-ші'
  8070. };
  8071. hooks.defineLocale('kk', {
  8072. months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  8073. monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  8074. weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  8075. weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  8076. weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  8077. longDateFormat : {
  8078. LT : 'HH:mm',
  8079. LTS : 'HH:mm:ss',
  8080. L : 'DD.MM.YYYY',
  8081. LL : 'D MMMM YYYY',
  8082. LLL : 'D MMMM YYYY HH:mm',
  8083. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8084. },
  8085. calendar : {
  8086. sameDay : '[Бүгін сағат] LT',
  8087. nextDay : '[Ертең сағат] LT',
  8088. nextWeek : 'dddd [сағат] LT',
  8089. lastDay : '[Кеше сағат] LT',
  8090. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  8091. sameElse : 'L'
  8092. },
  8093. relativeTime : {
  8094. future : '%s ішінде',
  8095. past : '%s бұрын',
  8096. s : 'бірнеше секунд',
  8097. m : 'бір минут',
  8098. mm : '%d минут',
  8099. h : 'бір сағат',
  8100. hh : '%d сағат',
  8101. d : 'бір күн',
  8102. dd : '%d күн',
  8103. M : 'бір ай',
  8104. MM : '%d ай',
  8105. y : 'бір жыл',
  8106. yy : '%d жыл'
  8107. },
  8108. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  8109. ordinal : function (number) {
  8110. var a = number % 10,
  8111. b = number >= 100 ? 100 : null;
  8112. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  8113. },
  8114. week : {
  8115. dow : 1, // Monday is the first day of the week.
  8116. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8117. }
  8118. });
  8119. //! moment.js locale configuration
  8120. //! locale : Cambodian [km]
  8121. //! author : Kruy Vanna : https://github.com/kruyvanna
  8122. hooks.defineLocale('km', {
  8123. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  8124. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  8125. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8126. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8127. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8128. longDateFormat: {
  8129. LT: 'HH:mm',
  8130. LTS : 'HH:mm:ss',
  8131. L: 'DD/MM/YYYY',
  8132. LL: 'D MMMM YYYY',
  8133. LLL: 'D MMMM YYYY HH:mm',
  8134. LLLL: 'dddd, D MMMM YYYY HH:mm'
  8135. },
  8136. calendar: {
  8137. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  8138. nextDay: '[ស្អែក ម៉ោង] LT',
  8139. nextWeek: 'dddd [ម៉ោង] LT',
  8140. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  8141. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  8142. sameElse: 'L'
  8143. },
  8144. relativeTime: {
  8145. future: '%sទៀត',
  8146. past: '%sមុន',
  8147. s: 'ប៉ុន្មានវិនាទី',
  8148. m: 'មួយនាទី',
  8149. mm: '%d នាទី',
  8150. h: 'មួយម៉ោង',
  8151. hh: '%d ម៉ោង',
  8152. d: 'មួយថ្ងៃ',
  8153. dd: '%d ថ្ងៃ',
  8154. M: 'មួយខែ',
  8155. MM: '%d ខែ',
  8156. y: 'មួយឆ្នាំ',
  8157. yy: '%d ឆ្នាំ'
  8158. },
  8159. week: {
  8160. dow: 1, // Monday is the first day of the week.
  8161. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8162. }
  8163. });
  8164. //! moment.js locale configuration
  8165. //! locale : Kannada [kn]
  8166. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  8167. var symbolMap$7 = {
  8168. '1': '೧',
  8169. '2': '೨',
  8170. '3': '೩',
  8171. '4': '೪',
  8172. '5': '೫',
  8173. '6': '೬',
  8174. '7': '೭',
  8175. '8': '೮',
  8176. '9': '೯',
  8177. '0': '೦'
  8178. };
  8179. var numberMap$6 = {
  8180. '೧': '1',
  8181. '೨': '2',
  8182. '೩': '3',
  8183. '೪': '4',
  8184. '೫': '5',
  8185. '೬': '6',
  8186. '೭': '7',
  8187. '೮': '8',
  8188. '೯': '9',
  8189. '೦': '0'
  8190. };
  8191. hooks.defineLocale('kn', {
  8192. months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  8193. monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'),
  8194. monthsParseExact: true,
  8195. weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  8196. weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  8197. weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  8198. longDateFormat : {
  8199. LT : 'A h:mm',
  8200. LTS : 'A h:mm:ss',
  8201. L : 'DD/MM/YYYY',
  8202. LL : 'D MMMM YYYY',
  8203. LLL : 'D MMMM YYYY, A h:mm',
  8204. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  8205. },
  8206. calendar : {
  8207. sameDay : '[ಇಂದು] LT',
  8208. nextDay : '[ನಾಳೆ] LT',
  8209. nextWeek : 'dddd, LT',
  8210. lastDay : '[ನಿನ್ನೆ] LT',
  8211. lastWeek : '[ಕೊನೆಯ] dddd, LT',
  8212. sameElse : 'L'
  8213. },
  8214. relativeTime : {
  8215. future : '%s ನಂತರ',
  8216. past : '%s ಹಿಂದೆ',
  8217. s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
  8218. m : 'ಒಂದು ನಿಮಿಷ',
  8219. mm : '%d ನಿಮಿಷ',
  8220. h : 'ಒಂದು ಗಂಟೆ',
  8221. hh : '%d ಗಂಟೆ',
  8222. d : 'ಒಂದು ದಿನ',
  8223. dd : '%d ದಿನ',
  8224. M : 'ಒಂದು ತಿಂಗಳು',
  8225. MM : '%d ತಿಂಗಳು',
  8226. y : 'ಒಂದು ವರ್ಷ',
  8227. yy : '%d ವರ್ಷ'
  8228. },
  8229. preparse: function (string) {
  8230. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  8231. return numberMap$6[match];
  8232. });
  8233. },
  8234. postformat: function (string) {
  8235. return string.replace(/\d/g, function (match) {
  8236. return symbolMap$7[match];
  8237. });
  8238. },
  8239. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  8240. meridiemHour : function (hour, meridiem) {
  8241. if (hour === 12) {
  8242. hour = 0;
  8243. }
  8244. if (meridiem === 'ರಾತ್ರಿ') {
  8245. return hour < 4 ? hour : hour + 12;
  8246. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  8247. return hour;
  8248. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  8249. return hour >= 10 ? hour : hour + 12;
  8250. } else if (meridiem === 'ಸಂಜೆ') {
  8251. return hour + 12;
  8252. }
  8253. },
  8254. meridiem : function (hour, minute, isLower) {
  8255. if (hour < 4) {
  8256. return 'ರಾತ್ರಿ';
  8257. } else if (hour < 10) {
  8258. return 'ಬೆಳಿಗ್ಗೆ';
  8259. } else if (hour < 17) {
  8260. return 'ಮಧ್ಯಾಹ್ನ';
  8261. } else if (hour < 20) {
  8262. return 'ಸಂಜೆ';
  8263. } else {
  8264. return 'ರಾತ್ರಿ';
  8265. }
  8266. },
  8267. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  8268. ordinal : function (number) {
  8269. return number + 'ನೇ';
  8270. },
  8271. week : {
  8272. dow : 0, // Sunday is the first day of the week.
  8273. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8274. }
  8275. });
  8276. //! moment.js locale configuration
  8277. //! locale : Korean [ko]
  8278. //! author : Kyungwook, Park : https://github.com/kyungw00k
  8279. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  8280. hooks.defineLocale('ko', {
  8281. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8282. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8283. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  8284. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  8285. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  8286. longDateFormat : {
  8287. LT : 'A h:mm',
  8288. LTS : 'A h:mm:ss',
  8289. L : 'YYYY.MM.DD',
  8290. LL : 'YYYY년 MMMM D일',
  8291. LLL : 'YYYY년 MMMM D일 A h:mm',
  8292. LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
  8293. l : 'YYYY.MM.DD',
  8294. ll : 'YYYY년 MMMM D일',
  8295. lll : 'YYYY년 MMMM D일 A h:mm',
  8296. llll : 'YYYY년 MMMM D일 dddd A h:mm'
  8297. },
  8298. calendar : {
  8299. sameDay : '오늘 LT',
  8300. nextDay : '내일 LT',
  8301. nextWeek : 'dddd LT',
  8302. lastDay : '어제 LT',
  8303. lastWeek : '지난주 dddd LT',
  8304. sameElse : 'L'
  8305. },
  8306. relativeTime : {
  8307. future : '%s 후',
  8308. past : '%s 전',
  8309. s : '몇 초',
  8310. ss : '%d초',
  8311. m : '1분',
  8312. mm : '%d분',
  8313. h : '한 시간',
  8314. hh : '%d시간',
  8315. d : '하루',
  8316. dd : '%d일',
  8317. M : '한 달',
  8318. MM : '%d달',
  8319. y : '일 년',
  8320. yy : '%d년'
  8321. },
  8322. dayOfMonthOrdinalParse : /\d{1,2}일/,
  8323. ordinal : '%d일',
  8324. meridiemParse : /오전|오후/,
  8325. isPM : function (token) {
  8326. return token === '오후';
  8327. },
  8328. meridiem : function (hour, minute, isUpper) {
  8329. return hour < 12 ? '오전' : '오후';
  8330. }
  8331. });
  8332. //! moment.js locale configuration
  8333. //! locale : Kyrgyz [ky]
  8334. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  8335. var suffixes$2 = {
  8336. 0: '-чү',
  8337. 1: '-чи',
  8338. 2: '-чи',
  8339. 3: '-чү',
  8340. 4: '-чү',
  8341. 5: '-чи',
  8342. 6: '-чы',
  8343. 7: '-чи',
  8344. 8: '-чи',
  8345. 9: '-чу',
  8346. 10: '-чу',
  8347. 20: '-чы',
  8348. 30: '-чу',
  8349. 40: '-чы',
  8350. 50: '-чү',
  8351. 60: '-чы',
  8352. 70: '-чи',
  8353. 80: '-чи',
  8354. 90: '-чу',
  8355. 100: '-чү'
  8356. };
  8357. hooks.defineLocale('ky', {
  8358. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  8359. monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  8360. weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  8361. weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  8362. weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  8363. longDateFormat : {
  8364. LT : 'HH:mm',
  8365. LTS : 'HH:mm:ss',
  8366. L : 'DD.MM.YYYY',
  8367. LL : 'D MMMM YYYY',
  8368. LLL : 'D MMMM YYYY HH:mm',
  8369. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8370. },
  8371. calendar : {
  8372. sameDay : '[Бүгүн саат] LT',
  8373. nextDay : '[Эртең саат] LT',
  8374. nextWeek : 'dddd [саат] LT',
  8375. lastDay : '[Кече саат] LT',
  8376. lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
  8377. sameElse : 'L'
  8378. },
  8379. relativeTime : {
  8380. future : '%s ичинде',
  8381. past : '%s мурун',
  8382. s : 'бирнече секунд',
  8383. m : 'бир мүнөт',
  8384. mm : '%d мүнөт',
  8385. h : 'бир саат',
  8386. hh : '%d саат',
  8387. d : 'бир күн',
  8388. dd : '%d күн',
  8389. M : 'бир ай',
  8390. MM : '%d ай',
  8391. y : 'бир жыл',
  8392. yy : '%d жыл'
  8393. },
  8394. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  8395. ordinal : function (number) {
  8396. var a = number % 10,
  8397. b = number >= 100 ? 100 : null;
  8398. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  8399. },
  8400. week : {
  8401. dow : 1, // Monday is the first day of the week.
  8402. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8403. }
  8404. });
  8405. //! moment.js locale configuration
  8406. //! locale : Luxembourgish [lb]
  8407. //! author : mweimerskirch : https://github.com/mweimerskirch
  8408. //! author : David Raison : https://github.com/kwisatz
  8409. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  8410. var format = {
  8411. 'm': ['eng Minutt', 'enger Minutt'],
  8412. 'h': ['eng Stonn', 'enger Stonn'],
  8413. 'd': ['een Dag', 'engem Dag'],
  8414. 'M': ['ee Mount', 'engem Mount'],
  8415. 'y': ['ee Joer', 'engem Joer']
  8416. };
  8417. return withoutSuffix ? format[key][0] : format[key][1];
  8418. }
  8419. function processFutureTime(string) {
  8420. var number = string.substr(0, string.indexOf(' '));
  8421. if (eifelerRegelAppliesToNumber(number)) {
  8422. return 'a ' + string;
  8423. }
  8424. return 'an ' + string;
  8425. }
  8426. function processPastTime(string) {
  8427. var number = string.substr(0, string.indexOf(' '));
  8428. if (eifelerRegelAppliesToNumber(number)) {
  8429. return 'viru ' + string;
  8430. }
  8431. return 'virun ' + string;
  8432. }
  8433. /**
  8434. * Returns true if the word before the given number loses the '-n' ending.
  8435. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  8436. *
  8437. * @param number {integer}
  8438. * @returns {boolean}
  8439. */
  8440. function eifelerRegelAppliesToNumber(number) {
  8441. number = parseInt(number, 10);
  8442. if (isNaN(number)) {
  8443. return false;
  8444. }
  8445. if (number < 0) {
  8446. // Negative Number --> always true
  8447. return true;
  8448. } else if (number < 10) {
  8449. // Only 1 digit
  8450. if (4 <= number && number <= 7) {
  8451. return true;
  8452. }
  8453. return false;
  8454. } else if (number < 100) {
  8455. // 2 digits
  8456. var lastDigit = number % 10, firstDigit = number / 10;
  8457. if (lastDigit === 0) {
  8458. return eifelerRegelAppliesToNumber(firstDigit);
  8459. }
  8460. return eifelerRegelAppliesToNumber(lastDigit);
  8461. } else if (number < 10000) {
  8462. // 3 or 4 digits --> recursively check first digit
  8463. while (number >= 10) {
  8464. number = number / 10;
  8465. }
  8466. return eifelerRegelAppliesToNumber(number);
  8467. } else {
  8468. // Anything larger than 4 digits: recursively check first n-3 digits
  8469. number = number / 1000;
  8470. return eifelerRegelAppliesToNumber(number);
  8471. }
  8472. }
  8473. hooks.defineLocale('lb', {
  8474. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  8475. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  8476. monthsParseExact : true,
  8477. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  8478. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  8479. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  8480. weekdaysParseExact : true,
  8481. longDateFormat: {
  8482. LT: 'H:mm [Auer]',
  8483. LTS: 'H:mm:ss [Auer]',
  8484. L: 'DD.MM.YYYY',
  8485. LL: 'D. MMMM YYYY',
  8486. LLL: 'D. MMMM YYYY H:mm [Auer]',
  8487. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  8488. },
  8489. calendar: {
  8490. sameDay: '[Haut um] LT',
  8491. sameElse: 'L',
  8492. nextDay: '[Muer um] LT',
  8493. nextWeek: 'dddd [um] LT',
  8494. lastDay: '[Gëschter um] LT',
  8495. lastWeek: function () {
  8496. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  8497. switch (this.day()) {
  8498. case 2:
  8499. case 4:
  8500. return '[Leschten] dddd [um] LT';
  8501. default:
  8502. return '[Leschte] dddd [um] LT';
  8503. }
  8504. }
  8505. },
  8506. relativeTime : {
  8507. future : processFutureTime,
  8508. past : processPastTime,
  8509. s : 'e puer Sekonnen',
  8510. m : processRelativeTime$5,
  8511. mm : '%d Minutten',
  8512. h : processRelativeTime$5,
  8513. hh : '%d Stonnen',
  8514. d : processRelativeTime$5,
  8515. dd : '%d Deeg',
  8516. M : processRelativeTime$5,
  8517. MM : '%d Méint',
  8518. y : processRelativeTime$5,
  8519. yy : '%d Joer'
  8520. },
  8521. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8522. ordinal: '%d.',
  8523. week: {
  8524. dow: 1, // Monday is the first day of the week.
  8525. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8526. }
  8527. });
  8528. //! moment.js locale configuration
  8529. //! locale : Lao [lo]
  8530. //! author : Ryan Hart : https://github.com/ryanhart2
  8531. hooks.defineLocale('lo', {
  8532. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  8533. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  8534. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  8535. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  8536. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  8537. weekdaysParseExact : true,
  8538. longDateFormat : {
  8539. LT : 'HH:mm',
  8540. LTS : 'HH:mm:ss',
  8541. L : 'DD/MM/YYYY',
  8542. LL : 'D MMMM YYYY',
  8543. LLL : 'D MMMM YYYY HH:mm',
  8544. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  8545. },
  8546. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  8547. isPM: function (input) {
  8548. return input === 'ຕອນແລງ';
  8549. },
  8550. meridiem : function (hour, minute, isLower) {
  8551. if (hour < 12) {
  8552. return 'ຕອນເຊົ້າ';
  8553. } else {
  8554. return 'ຕອນແລງ';
  8555. }
  8556. },
  8557. calendar : {
  8558. sameDay : '[ມື້ນີ້ເວລາ] LT',
  8559. nextDay : '[ມື້ອື່ນເວລາ] LT',
  8560. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  8561. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  8562. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  8563. sameElse : 'L'
  8564. },
  8565. relativeTime : {
  8566. future : 'ອີກ %s',
  8567. past : '%sຜ່ານມາ',
  8568. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  8569. m : '1 ນາທີ',
  8570. mm : '%d ນາທີ',
  8571. h : '1 ຊົ່ວໂມງ',
  8572. hh : '%d ຊົ່ວໂມງ',
  8573. d : '1 ມື້',
  8574. dd : '%d ມື້',
  8575. M : '1 ເດືອນ',
  8576. MM : '%d ເດືອນ',
  8577. y : '1 ປີ',
  8578. yy : '%d ປີ'
  8579. },
  8580. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  8581. ordinal : function (number) {
  8582. return 'ທີ່' + number;
  8583. }
  8584. });
  8585. //! moment.js locale configuration
  8586. //! locale : Lithuanian [lt]
  8587. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  8588. var units = {
  8589. 'm' : 'minutė_minutės_minutę',
  8590. 'mm': 'minutės_minučių_minutes',
  8591. 'h' : 'valanda_valandos_valandą',
  8592. 'hh': 'valandos_valandų_valandas',
  8593. 'd' : 'diena_dienos_dieną',
  8594. 'dd': 'dienos_dienų_dienas',
  8595. 'M' : 'mėnuo_mėnesio_mėnesį',
  8596. 'MM': 'mėnesiai_mėnesių_mėnesius',
  8597. 'y' : 'metai_metų_metus',
  8598. 'yy': 'metai_metų_metus'
  8599. };
  8600. function translateSeconds(number, withoutSuffix, key, isFuture) {
  8601. if (withoutSuffix) {
  8602. return 'kelios sekundės';
  8603. } else {
  8604. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  8605. }
  8606. }
  8607. function translateSingular(number, withoutSuffix, key, isFuture) {
  8608. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  8609. }
  8610. function special(number) {
  8611. return number % 10 === 0 || (number > 10 && number < 20);
  8612. }
  8613. function forms(key) {
  8614. return units[key].split('_');
  8615. }
  8616. function translate$6(number, withoutSuffix, key, isFuture) {
  8617. var result = number + ' ';
  8618. if (number === 1) {
  8619. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  8620. } else if (withoutSuffix) {
  8621. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  8622. } else {
  8623. if (isFuture) {
  8624. return result + forms(key)[1];
  8625. } else {
  8626. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  8627. }
  8628. }
  8629. }
  8630. hooks.defineLocale('lt', {
  8631. months : {
  8632. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  8633. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  8634. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  8635. },
  8636. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  8637. weekdays : {
  8638. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  8639. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  8640. isFormat: /dddd HH:mm/
  8641. },
  8642. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  8643. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  8644. weekdaysParseExact : true,
  8645. longDateFormat : {
  8646. LT : 'HH:mm',
  8647. LTS : 'HH:mm:ss',
  8648. L : 'YYYY-MM-DD',
  8649. LL : 'YYYY [m.] MMMM D [d.]',
  8650. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  8651. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  8652. l : 'YYYY-MM-DD',
  8653. ll : 'YYYY [m.] MMMM D [d.]',
  8654. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  8655. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  8656. },
  8657. calendar : {
  8658. sameDay : '[Šiandien] LT',
  8659. nextDay : '[Rytoj] LT',
  8660. nextWeek : 'dddd LT',
  8661. lastDay : '[Vakar] LT',
  8662. lastWeek : '[Praėjusį] dddd LT',
  8663. sameElse : 'L'
  8664. },
  8665. relativeTime : {
  8666. future : 'po %s',
  8667. past : 'prieš %s',
  8668. s : translateSeconds,
  8669. m : translateSingular,
  8670. mm : translate$6,
  8671. h : translateSingular,
  8672. hh : translate$6,
  8673. d : translateSingular,
  8674. dd : translate$6,
  8675. M : translateSingular,
  8676. MM : translate$6,
  8677. y : translateSingular,
  8678. yy : translate$6
  8679. },
  8680. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  8681. ordinal : function (number) {
  8682. return number + '-oji';
  8683. },
  8684. week : {
  8685. dow : 1, // Monday is the first day of the week.
  8686. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8687. }
  8688. });
  8689. //! moment.js locale configuration
  8690. //! locale : Latvian [lv]
  8691. //! author : Kristaps Karlsons : https://github.com/skakri
  8692. //! author : Jānis Elmeris : https://github.com/JanisE
  8693. var units$1 = {
  8694. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  8695. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  8696. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  8697. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  8698. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  8699. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  8700. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  8701. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  8702. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  8703. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  8704. };
  8705. /**
  8706. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  8707. */
  8708. function format$1(forms, number, withoutSuffix) {
  8709. if (withoutSuffix) {
  8710. // E.g. "21 minūte", "3 minūtes".
  8711. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  8712. } else {
  8713. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  8714. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  8715. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  8716. }
  8717. }
  8718. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  8719. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  8720. }
  8721. function relativeTimeWithSingular(number, withoutSuffix, key) {
  8722. return format$1(units$1[key], number, withoutSuffix);
  8723. }
  8724. function relativeSeconds(number, withoutSuffix) {
  8725. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  8726. }
  8727. hooks.defineLocale('lv', {
  8728. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  8729. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  8730. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  8731. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  8732. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  8733. weekdaysParseExact : true,
  8734. longDateFormat : {
  8735. LT : 'HH:mm',
  8736. LTS : 'HH:mm:ss',
  8737. L : 'DD.MM.YYYY.',
  8738. LL : 'YYYY. [gada] D. MMMM',
  8739. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  8740. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  8741. },
  8742. calendar : {
  8743. sameDay : '[Šodien pulksten] LT',
  8744. nextDay : '[Rīt pulksten] LT',
  8745. nextWeek : 'dddd [pulksten] LT',
  8746. lastDay : '[Vakar pulksten] LT',
  8747. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  8748. sameElse : 'L'
  8749. },
  8750. relativeTime : {
  8751. future : 'pēc %s',
  8752. past : 'pirms %s',
  8753. s : relativeSeconds,
  8754. m : relativeTimeWithSingular,
  8755. mm : relativeTimeWithPlural$1,
  8756. h : relativeTimeWithSingular,
  8757. hh : relativeTimeWithPlural$1,
  8758. d : relativeTimeWithSingular,
  8759. dd : relativeTimeWithPlural$1,
  8760. M : relativeTimeWithSingular,
  8761. MM : relativeTimeWithPlural$1,
  8762. y : relativeTimeWithSingular,
  8763. yy : relativeTimeWithPlural$1
  8764. },
  8765. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8766. ordinal : '%d.',
  8767. week : {
  8768. dow : 1, // Monday is the first day of the week.
  8769. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8770. }
  8771. });
  8772. //! moment.js locale configuration
  8773. //! locale : Montenegrin [me]
  8774. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  8775. var translator = {
  8776. words: { //Different grammatical cases
  8777. m: ['jedan minut', 'jednog minuta'],
  8778. mm: ['minut', 'minuta', 'minuta'],
  8779. h: ['jedan sat', 'jednog sata'],
  8780. hh: ['sat', 'sata', 'sati'],
  8781. dd: ['dan', 'dana', 'dana'],
  8782. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  8783. yy: ['godina', 'godine', 'godina']
  8784. },
  8785. correctGrammaticalCase: function (number, wordKey) {
  8786. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  8787. },
  8788. translate: function (number, withoutSuffix, key) {
  8789. var wordKey = translator.words[key];
  8790. if (key.length === 1) {
  8791. return withoutSuffix ? wordKey[0] : wordKey[1];
  8792. } else {
  8793. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  8794. }
  8795. }
  8796. };
  8797. hooks.defineLocale('me', {
  8798. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  8799. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  8800. monthsParseExact : true,
  8801. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  8802. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  8803. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  8804. weekdaysParseExact : true,
  8805. longDateFormat: {
  8806. LT: 'H:mm',
  8807. LTS : 'H:mm:ss',
  8808. L: 'DD.MM.YYYY',
  8809. LL: 'D. MMMM YYYY',
  8810. LLL: 'D. MMMM YYYY H:mm',
  8811. LLLL: 'dddd, D. MMMM YYYY H:mm'
  8812. },
  8813. calendar: {
  8814. sameDay: '[danas u] LT',
  8815. nextDay: '[sjutra u] LT',
  8816. nextWeek: function () {
  8817. switch (this.day()) {
  8818. case 0:
  8819. return '[u] [nedjelju] [u] LT';
  8820. case 3:
  8821. return '[u] [srijedu] [u] LT';
  8822. case 6:
  8823. return '[u] [subotu] [u] LT';
  8824. case 1:
  8825. case 2:
  8826. case 4:
  8827. case 5:
  8828. return '[u] dddd [u] LT';
  8829. }
  8830. },
  8831. lastDay : '[juče u] LT',
  8832. lastWeek : function () {
  8833. var lastWeekDays = [
  8834. '[prošle] [nedjelje] [u] LT',
  8835. '[prošlog] [ponedjeljka] [u] LT',
  8836. '[prošlog] [utorka] [u] LT',
  8837. '[prošle] [srijede] [u] LT',
  8838. '[prošlog] [četvrtka] [u] LT',
  8839. '[prošlog] [petka] [u] LT',
  8840. '[prošle] [subote] [u] LT'
  8841. ];
  8842. return lastWeekDays[this.day()];
  8843. },
  8844. sameElse : 'L'
  8845. },
  8846. relativeTime : {
  8847. future : 'za %s',
  8848. past : 'prije %s',
  8849. s : 'nekoliko sekundi',
  8850. m : translator.translate,
  8851. mm : translator.translate,
  8852. h : translator.translate,
  8853. hh : translator.translate,
  8854. d : 'dan',
  8855. dd : translator.translate,
  8856. M : 'mjesec',
  8857. MM : translator.translate,
  8858. y : 'godinu',
  8859. yy : translator.translate
  8860. },
  8861. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8862. ordinal : '%d.',
  8863. week : {
  8864. dow : 1, // Monday is the first day of the week.
  8865. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8866. }
  8867. });
  8868. //! moment.js locale configuration
  8869. //! locale : Maori [mi]
  8870. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  8871. hooks.defineLocale('mi', {
  8872. 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('_'),
  8873. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  8874. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8875. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8876. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8877. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  8878. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  8879. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  8880. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  8881. longDateFormat: {
  8882. LT: 'HH:mm',
  8883. LTS: 'HH:mm:ss',
  8884. L: 'DD/MM/YYYY',
  8885. LL: 'D MMMM YYYY',
  8886. LLL: 'D MMMM YYYY [i] HH:mm',
  8887. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  8888. },
  8889. calendar: {
  8890. sameDay: '[i teie mahana, i] LT',
  8891. nextDay: '[apopo i] LT',
  8892. nextWeek: 'dddd [i] LT',
  8893. lastDay: '[inanahi i] LT',
  8894. lastWeek: 'dddd [whakamutunga i] LT',
  8895. sameElse: 'L'
  8896. },
  8897. relativeTime: {
  8898. future: 'i roto i %s',
  8899. past: '%s i mua',
  8900. s: 'te hēkona ruarua',
  8901. m: 'he meneti',
  8902. mm: '%d meneti',
  8903. h: 'te haora',
  8904. hh: '%d haora',
  8905. d: 'he ra',
  8906. dd: '%d ra',
  8907. M: 'he marama',
  8908. MM: '%d marama',
  8909. y: 'he tau',
  8910. yy: '%d tau'
  8911. },
  8912. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8913. ordinal: '%dº',
  8914. week : {
  8915. dow : 1, // Monday is the first day of the week.
  8916. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8917. }
  8918. });
  8919. //! moment.js locale configuration
  8920. //! locale : Macedonian [mk]
  8921. //! author : Borislav Mickov : https://github.com/B0k0
  8922. hooks.defineLocale('mk', {
  8923. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  8924. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  8925. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  8926. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  8927. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  8928. longDateFormat : {
  8929. LT : 'H:mm',
  8930. LTS : 'H:mm:ss',
  8931. L : 'D.MM.YYYY',
  8932. LL : 'D MMMM YYYY',
  8933. LLL : 'D MMMM YYYY H:mm',
  8934. LLLL : 'dddd, D MMMM YYYY H:mm'
  8935. },
  8936. calendar : {
  8937. sameDay : '[Денес во] LT',
  8938. nextDay : '[Утре во] LT',
  8939. nextWeek : '[Во] dddd [во] LT',
  8940. lastDay : '[Вчера во] LT',
  8941. lastWeek : function () {
  8942. switch (this.day()) {
  8943. case 0:
  8944. case 3:
  8945. case 6:
  8946. return '[Изминатата] dddd [во] LT';
  8947. case 1:
  8948. case 2:
  8949. case 4:
  8950. case 5:
  8951. return '[Изминатиот] dddd [во] LT';
  8952. }
  8953. },
  8954. sameElse : 'L'
  8955. },
  8956. relativeTime : {
  8957. future : 'после %s',
  8958. past : 'пред %s',
  8959. s : 'неколку секунди',
  8960. m : 'минута',
  8961. mm : '%d минути',
  8962. h : 'час',
  8963. hh : '%d часа',
  8964. d : 'ден',
  8965. dd : '%d дена',
  8966. M : 'месец',
  8967. MM : '%d месеци',
  8968. y : 'година',
  8969. yy : '%d години'
  8970. },
  8971. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  8972. ordinal : function (number) {
  8973. var lastDigit = number % 10,
  8974. last2Digits = number % 100;
  8975. if (number === 0) {
  8976. return number + '-ев';
  8977. } else if (last2Digits === 0) {
  8978. return number + '-ен';
  8979. } else if (last2Digits > 10 && last2Digits < 20) {
  8980. return number + '-ти';
  8981. } else if (lastDigit === 1) {
  8982. return number + '-ви';
  8983. } else if (lastDigit === 2) {
  8984. return number + '-ри';
  8985. } else if (lastDigit === 7 || lastDigit === 8) {
  8986. return number + '-ми';
  8987. } else {
  8988. return number + '-ти';
  8989. }
  8990. },
  8991. week : {
  8992. dow : 1, // Monday is the first day of the week.
  8993. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8994. }
  8995. });
  8996. //! moment.js locale configuration
  8997. //! locale : Malayalam [ml]
  8998. //! author : Floyd Pink : https://github.com/floydpink
  8999. hooks.defineLocale('ml', {
  9000. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  9001. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  9002. monthsParseExact : true,
  9003. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  9004. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  9005. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  9006. longDateFormat : {
  9007. LT : 'A h:mm -നു',
  9008. LTS : 'A h:mm:ss -നു',
  9009. L : 'DD/MM/YYYY',
  9010. LL : 'D MMMM YYYY',
  9011. LLL : 'D MMMM YYYY, A h:mm -നു',
  9012. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  9013. },
  9014. calendar : {
  9015. sameDay : '[ഇന്ന്] LT',
  9016. nextDay : '[നാളെ] LT',
  9017. nextWeek : 'dddd, LT',
  9018. lastDay : '[ഇന്നലെ] LT',
  9019. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  9020. sameElse : 'L'
  9021. },
  9022. relativeTime : {
  9023. future : '%s കഴിഞ്ഞ്',
  9024. past : '%s മുൻപ്',
  9025. s : 'അൽപ നിമിഷങ്ങൾ',
  9026. m : 'ഒരു മിനിറ്റ്',
  9027. mm : '%d മിനിറ്റ്',
  9028. h : 'ഒരു മണിക്കൂർ',
  9029. hh : '%d മണിക്കൂർ',
  9030. d : 'ഒരു ദിവസം',
  9031. dd : '%d ദിവസം',
  9032. M : 'ഒരു മാസം',
  9033. MM : '%d മാസം',
  9034. y : 'ഒരു വർഷം',
  9035. yy : '%d വർഷം'
  9036. },
  9037. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  9038. meridiemHour : function (hour, meridiem) {
  9039. if (hour === 12) {
  9040. hour = 0;
  9041. }
  9042. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  9043. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  9044. meridiem === 'വൈകുന്നേരം') {
  9045. return hour + 12;
  9046. } else {
  9047. return hour;
  9048. }
  9049. },
  9050. meridiem : function (hour, minute, isLower) {
  9051. if (hour < 4) {
  9052. return 'രാത്രി';
  9053. } else if (hour < 12) {
  9054. return 'രാവിലെ';
  9055. } else if (hour < 17) {
  9056. return 'ഉച്ച കഴിഞ്ഞ്';
  9057. } else if (hour < 20) {
  9058. return 'വൈകുന്നേരം';
  9059. } else {
  9060. return 'രാത്രി';
  9061. }
  9062. }
  9063. });
  9064. //! moment.js locale configuration
  9065. //! locale : Marathi [mr]
  9066. //! author : Harshad Kale : https://github.com/kalehv
  9067. //! author : Vivek Athalye : https://github.com/vnathalye
  9068. var symbolMap$8 = {
  9069. '1': '१',
  9070. '2': '२',
  9071. '3': '३',
  9072. '4': '४',
  9073. '5': '५',
  9074. '6': '६',
  9075. '7': '७',
  9076. '8': '८',
  9077. '9': '९',
  9078. '0': '०'
  9079. };
  9080. var numberMap$7 = {
  9081. '१': '1',
  9082. '२': '2',
  9083. '३': '3',
  9084. '४': '4',
  9085. '५': '5',
  9086. '६': '6',
  9087. '७': '7',
  9088. '८': '8',
  9089. '९': '9',
  9090. '०': '0'
  9091. };
  9092. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  9093. {
  9094. var output = '';
  9095. if (withoutSuffix) {
  9096. switch (string) {
  9097. case 's': output = 'काही सेकंद'; break;
  9098. case 'm': output = 'एक मिनिट'; break;
  9099. case 'mm': output = '%d मिनिटे'; break;
  9100. case 'h': output = 'एक तास'; break;
  9101. case 'hh': output = '%d तास'; break;
  9102. case 'd': output = 'एक दिवस'; break;
  9103. case 'dd': output = '%d दिवस'; break;
  9104. case 'M': output = 'एक महिना'; break;
  9105. case 'MM': output = '%d महिने'; break;
  9106. case 'y': output = 'एक वर्ष'; break;
  9107. case 'yy': output = '%d वर्षे'; break;
  9108. }
  9109. }
  9110. else {
  9111. switch (string) {
  9112. case 's': output = 'काही सेकंदां'; break;
  9113. case 'm': output = 'एका मिनिटा'; break;
  9114. case 'mm': output = '%d मिनिटां'; break;
  9115. case 'h': output = 'एका तासा'; break;
  9116. case 'hh': output = '%d तासां'; break;
  9117. case 'd': output = 'एका दिवसा'; break;
  9118. case 'dd': output = '%d दिवसां'; break;
  9119. case 'M': output = 'एका महिन्या'; break;
  9120. case 'MM': output = '%d महिन्यां'; break;
  9121. case 'y': output = 'एका वर्षा'; break;
  9122. case 'yy': output = '%d वर्षां'; break;
  9123. }
  9124. }
  9125. return output.replace(/%d/i, number);
  9126. }
  9127. hooks.defineLocale('mr', {
  9128. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  9129. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  9130. monthsParseExact : true,
  9131. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9132. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  9133. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9134. longDateFormat : {
  9135. LT : 'A h:mm वाजता',
  9136. LTS : 'A h:mm:ss वाजता',
  9137. L : 'DD/MM/YYYY',
  9138. LL : 'D MMMM YYYY',
  9139. LLL : 'D MMMM YYYY, A h:mm वाजता',
  9140. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  9141. },
  9142. calendar : {
  9143. sameDay : '[आज] LT',
  9144. nextDay : '[उद्या] LT',
  9145. nextWeek : 'dddd, LT',
  9146. lastDay : '[काल] LT',
  9147. lastWeek: '[मागील] dddd, LT',
  9148. sameElse : 'L'
  9149. },
  9150. relativeTime : {
  9151. future: '%sमध्ये',
  9152. past: '%sपूर्वी',
  9153. s: relativeTimeMr,
  9154. m: relativeTimeMr,
  9155. mm: relativeTimeMr,
  9156. h: relativeTimeMr,
  9157. hh: relativeTimeMr,
  9158. d: relativeTimeMr,
  9159. dd: relativeTimeMr,
  9160. M: relativeTimeMr,
  9161. MM: relativeTimeMr,
  9162. y: relativeTimeMr,
  9163. yy: relativeTimeMr
  9164. },
  9165. preparse: function (string) {
  9166. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9167. return numberMap$7[match];
  9168. });
  9169. },
  9170. postformat: function (string) {
  9171. return string.replace(/\d/g, function (match) {
  9172. return symbolMap$8[match];
  9173. });
  9174. },
  9175. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  9176. meridiemHour : function (hour, meridiem) {
  9177. if (hour === 12) {
  9178. hour = 0;
  9179. }
  9180. if (meridiem === 'रात्री') {
  9181. return hour < 4 ? hour : hour + 12;
  9182. } else if (meridiem === 'सकाळी') {
  9183. return hour;
  9184. } else if (meridiem === 'दुपारी') {
  9185. return hour >= 10 ? hour : hour + 12;
  9186. } else if (meridiem === 'सायंकाळी') {
  9187. return hour + 12;
  9188. }
  9189. },
  9190. meridiem: function (hour, minute, isLower) {
  9191. if (hour < 4) {
  9192. return 'रात्री';
  9193. } else if (hour < 10) {
  9194. return 'सकाळी';
  9195. } else if (hour < 17) {
  9196. return 'दुपारी';
  9197. } else if (hour < 20) {
  9198. return 'सायंकाळी';
  9199. } else {
  9200. return 'रात्री';
  9201. }
  9202. },
  9203. week : {
  9204. dow : 0, // Sunday is the first day of the week.
  9205. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9206. }
  9207. });
  9208. //! moment.js locale configuration
  9209. //! locale : Malay [ms-my]
  9210. //! note : DEPRECATED, the correct one is [ms]
  9211. //! author : Weldan Jamili : https://github.com/weldan
  9212. hooks.defineLocale('ms-my', {
  9213. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  9214. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  9215. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  9216. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  9217. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  9218. longDateFormat : {
  9219. LT : 'HH.mm',
  9220. LTS : 'HH.mm.ss',
  9221. L : 'DD/MM/YYYY',
  9222. LL : 'D MMMM YYYY',
  9223. LLL : 'D MMMM YYYY [pukul] HH.mm',
  9224. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  9225. },
  9226. meridiemParse: /pagi|tengahari|petang|malam/,
  9227. meridiemHour: function (hour, meridiem) {
  9228. if (hour === 12) {
  9229. hour = 0;
  9230. }
  9231. if (meridiem === 'pagi') {
  9232. return hour;
  9233. } else if (meridiem === 'tengahari') {
  9234. return hour >= 11 ? hour : hour + 12;
  9235. } else if (meridiem === 'petang' || meridiem === 'malam') {
  9236. return hour + 12;
  9237. }
  9238. },
  9239. meridiem : function (hours, minutes, isLower) {
  9240. if (hours < 11) {
  9241. return 'pagi';
  9242. } else if (hours < 15) {
  9243. return 'tengahari';
  9244. } else if (hours < 19) {
  9245. return 'petang';
  9246. } else {
  9247. return 'malam';
  9248. }
  9249. },
  9250. calendar : {
  9251. sameDay : '[Hari ini pukul] LT',
  9252. nextDay : '[Esok pukul] LT',
  9253. nextWeek : 'dddd [pukul] LT',
  9254. lastDay : '[Kelmarin pukul] LT',
  9255. lastWeek : 'dddd [lepas pukul] LT',
  9256. sameElse : 'L'
  9257. },
  9258. relativeTime : {
  9259. future : 'dalam %s',
  9260. past : '%s yang lepas',
  9261. s : 'beberapa saat',
  9262. m : 'seminit',
  9263. mm : '%d minit',
  9264. h : 'sejam',
  9265. hh : '%d jam',
  9266. d : 'sehari',
  9267. dd : '%d hari',
  9268. M : 'sebulan',
  9269. MM : '%d bulan',
  9270. y : 'setahun',
  9271. yy : '%d tahun'
  9272. },
  9273. week : {
  9274. dow : 1, // Monday is the first day of the week.
  9275. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9276. }
  9277. });
  9278. //! moment.js locale configuration
  9279. //! locale : Malay [ms]
  9280. //! author : Weldan Jamili : https://github.com/weldan
  9281. hooks.defineLocale('ms', {
  9282. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  9283. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  9284. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  9285. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  9286. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  9287. longDateFormat : {
  9288. LT : 'HH.mm',
  9289. LTS : 'HH.mm.ss',
  9290. L : 'DD/MM/YYYY',
  9291. LL : 'D MMMM YYYY',
  9292. LLL : 'D MMMM YYYY [pukul] HH.mm',
  9293. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  9294. },
  9295. meridiemParse: /pagi|tengahari|petang|malam/,
  9296. meridiemHour: function (hour, meridiem) {
  9297. if (hour === 12) {
  9298. hour = 0;
  9299. }
  9300. if (meridiem === 'pagi') {
  9301. return hour;
  9302. } else if (meridiem === 'tengahari') {
  9303. return hour >= 11 ? hour : hour + 12;
  9304. } else if (meridiem === 'petang' || meridiem === 'malam') {
  9305. return hour + 12;
  9306. }
  9307. },
  9308. meridiem : function (hours, minutes, isLower) {
  9309. if (hours < 11) {
  9310. return 'pagi';
  9311. } else if (hours < 15) {
  9312. return 'tengahari';
  9313. } else if (hours < 19) {
  9314. return 'petang';
  9315. } else {
  9316. return 'malam';
  9317. }
  9318. },
  9319. calendar : {
  9320. sameDay : '[Hari ini pukul] LT',
  9321. nextDay : '[Esok pukul] LT',
  9322. nextWeek : 'dddd [pukul] LT',
  9323. lastDay : '[Kelmarin pukul] LT',
  9324. lastWeek : 'dddd [lepas pukul] LT',
  9325. sameElse : 'L'
  9326. },
  9327. relativeTime : {
  9328. future : 'dalam %s',
  9329. past : '%s yang lepas',
  9330. s : 'beberapa saat',
  9331. m : 'seminit',
  9332. mm : '%d minit',
  9333. h : 'sejam',
  9334. hh : '%d jam',
  9335. d : 'sehari',
  9336. dd : '%d hari',
  9337. M : 'sebulan',
  9338. MM : '%d bulan',
  9339. y : 'setahun',
  9340. yy : '%d tahun'
  9341. },
  9342. week : {
  9343. dow : 1, // Monday is the first day of the week.
  9344. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9345. }
  9346. });
  9347. //! moment.js locale configuration
  9348. //! locale : Burmese [my]
  9349. //! author : Squar team, mysquar.com
  9350. //! author : David Rossellat : https://github.com/gholadr
  9351. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  9352. var symbolMap$9 = {
  9353. '1': '၁',
  9354. '2': '၂',
  9355. '3': '၃',
  9356. '4': '၄',
  9357. '5': '၅',
  9358. '6': '၆',
  9359. '7': '၇',
  9360. '8': '၈',
  9361. '9': '၉',
  9362. '0': '၀'
  9363. };
  9364. var numberMap$8 = {
  9365. '၁': '1',
  9366. '၂': '2',
  9367. '၃': '3',
  9368. '၄': '4',
  9369. '၅': '5',
  9370. '၆': '6',
  9371. '၇': '7',
  9372. '၈': '8',
  9373. '၉': '9',
  9374. '၀': '0'
  9375. };
  9376. hooks.defineLocale('my', {
  9377. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  9378. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  9379. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  9380. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  9381. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  9382. longDateFormat: {
  9383. LT: 'HH:mm',
  9384. LTS: 'HH:mm:ss',
  9385. L: 'DD/MM/YYYY',
  9386. LL: 'D MMMM YYYY',
  9387. LLL: 'D MMMM YYYY HH:mm',
  9388. LLLL: 'dddd D MMMM YYYY HH:mm'
  9389. },
  9390. calendar: {
  9391. sameDay: '[ယနေ.] LT [မှာ]',
  9392. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  9393. nextWeek: 'dddd LT [မှာ]',
  9394. lastDay: '[မနေ.က] LT [မှာ]',
  9395. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  9396. sameElse: 'L'
  9397. },
  9398. relativeTime: {
  9399. future: 'လာမည့် %s မှာ',
  9400. past: 'လွန်ခဲ့သော %s က',
  9401. s: 'စက္ကန်.အနည်းငယ်',
  9402. m: 'တစ်မိနစ်',
  9403. mm: '%d မိနစ်',
  9404. h: 'တစ်နာရီ',
  9405. hh: '%d နာရီ',
  9406. d: 'တစ်ရက်',
  9407. dd: '%d ရက်',
  9408. M: 'တစ်လ',
  9409. MM: '%d လ',
  9410. y: 'တစ်နှစ်',
  9411. yy: '%d နှစ်'
  9412. },
  9413. preparse: function (string) {
  9414. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  9415. return numberMap$8[match];
  9416. });
  9417. },
  9418. postformat: function (string) {
  9419. return string.replace(/\d/g, function (match) {
  9420. return symbolMap$9[match];
  9421. });
  9422. },
  9423. week: {
  9424. dow: 1, // Monday is the first day of the week.
  9425. doy: 4 // The week that contains Jan 1st is the first week of the year.
  9426. }
  9427. });
  9428. //! moment.js locale configuration
  9429. //! locale : Norwegian Bokmål [nb]
  9430. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  9431. //! Sigurd Gartmann : https://github.com/sigurdga
  9432. hooks.defineLocale('nb', {
  9433. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  9434. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  9435. monthsParseExact : true,
  9436. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  9437. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  9438. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  9439. weekdaysParseExact : true,
  9440. longDateFormat : {
  9441. LT : 'HH:mm',
  9442. LTS : 'HH:mm:ss',
  9443. L : 'DD.MM.YYYY',
  9444. LL : 'D. MMMM YYYY',
  9445. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  9446. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  9447. },
  9448. calendar : {
  9449. sameDay: '[i dag kl.] LT',
  9450. nextDay: '[i morgen kl.] LT',
  9451. nextWeek: 'dddd [kl.] LT',
  9452. lastDay: '[i går kl.] LT',
  9453. lastWeek: '[forrige] dddd [kl.] LT',
  9454. sameElse: 'L'
  9455. },
  9456. relativeTime : {
  9457. future : 'om %s',
  9458. past : '%s siden',
  9459. s : 'noen sekunder',
  9460. m : 'ett minutt',
  9461. mm : '%d minutter',
  9462. h : 'en time',
  9463. hh : '%d timer',
  9464. d : 'en dag',
  9465. dd : '%d dager',
  9466. M : 'en måned',
  9467. MM : '%d måneder',
  9468. y : 'ett år',
  9469. yy : '%d år'
  9470. },
  9471. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9472. ordinal : '%d.',
  9473. week : {
  9474. dow : 1, // Monday is the first day of the week.
  9475. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9476. }
  9477. });
  9478. //! moment.js locale configuration
  9479. //! locale : Nepalese [ne]
  9480. //! author : suvash : https://github.com/suvash
  9481. var symbolMap$10 = {
  9482. '1': '१',
  9483. '2': '२',
  9484. '3': '३',
  9485. '4': '४',
  9486. '5': '५',
  9487. '6': '६',
  9488. '7': '७',
  9489. '8': '८',
  9490. '9': '९',
  9491. '0': '०'
  9492. };
  9493. var numberMap$9 = {
  9494. '१': '1',
  9495. '२': '2',
  9496. '३': '3',
  9497. '४': '4',
  9498. '५': '5',
  9499. '६': '6',
  9500. '७': '7',
  9501. '८': '8',
  9502. '९': '9',
  9503. '०': '0'
  9504. };
  9505. hooks.defineLocale('ne', {
  9506. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  9507. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  9508. monthsParseExact : true,
  9509. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  9510. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  9511. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  9512. weekdaysParseExact : true,
  9513. longDateFormat : {
  9514. LT : 'Aको h:mm बजे',
  9515. LTS : 'Aको h:mm:ss बजे',
  9516. L : 'DD/MM/YYYY',
  9517. LL : 'D MMMM YYYY',
  9518. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  9519. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  9520. },
  9521. preparse: function (string) {
  9522. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9523. return numberMap$9[match];
  9524. });
  9525. },
  9526. postformat: function (string) {
  9527. return string.replace(/\d/g, function (match) {
  9528. return symbolMap$10[match];
  9529. });
  9530. },
  9531. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  9532. meridiemHour : function (hour, meridiem) {
  9533. if (hour === 12) {
  9534. hour = 0;
  9535. }
  9536. if (meridiem === 'राति') {
  9537. return hour < 4 ? hour : hour + 12;
  9538. } else if (meridiem === 'बिहान') {
  9539. return hour;
  9540. } else if (meridiem === 'दिउँसो') {
  9541. return hour >= 10 ? hour : hour + 12;
  9542. } else if (meridiem === 'साँझ') {
  9543. return hour + 12;
  9544. }
  9545. },
  9546. meridiem : function (hour, minute, isLower) {
  9547. if (hour < 3) {
  9548. return 'राति';
  9549. } else if (hour < 12) {
  9550. return 'बिहान';
  9551. } else if (hour < 16) {
  9552. return 'दिउँसो';
  9553. } else if (hour < 20) {
  9554. return 'साँझ';
  9555. } else {
  9556. return 'राति';
  9557. }
  9558. },
  9559. calendar : {
  9560. sameDay : '[आज] LT',
  9561. nextDay : '[भोलि] LT',
  9562. nextWeek : '[आउँदो] dddd[,] LT',
  9563. lastDay : '[हिजो] LT',
  9564. lastWeek : '[गएको] dddd[,] LT',
  9565. sameElse : 'L'
  9566. },
  9567. relativeTime : {
  9568. future : '%sमा',
  9569. past : '%s अगाडि',
  9570. s : 'केही क्षण',
  9571. m : 'एक मिनेट',
  9572. mm : '%d मिनेट',
  9573. h : 'एक घण्टा',
  9574. hh : '%d घण्टा',
  9575. d : 'एक दिन',
  9576. dd : '%d दिन',
  9577. M : 'एक महिना',
  9578. MM : '%d महिना',
  9579. y : 'एक बर्ष',
  9580. yy : '%d बर्ष'
  9581. },
  9582. week : {
  9583. dow : 0, // Sunday is the first day of the week.
  9584. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9585. }
  9586. });
  9587. //! moment.js locale configuration
  9588. //! locale : Dutch (Belgium) [nl-be]
  9589. //! author : Joris Röling : https://github.com/jorisroling
  9590. //! author : Jacob Middag : https://github.com/middagj
  9591. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  9592. var monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  9593. var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
  9594. var monthsRegex$1 = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  9595. hooks.defineLocale('nl-be', {
  9596. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  9597. monthsShort : function (m, format) {
  9598. if (!m) {
  9599. return monthsShortWithDots$1;
  9600. } else if (/-MMM-/.test(format)) {
  9601. return monthsShortWithoutDots$1[m.month()];
  9602. } else {
  9603. return monthsShortWithDots$1[m.month()];
  9604. }
  9605. },
  9606. monthsRegex: monthsRegex$1,
  9607. monthsShortRegex: monthsRegex$1,
  9608. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  9609. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  9610. monthsParse : monthsParse,
  9611. longMonthsParse : monthsParse,
  9612. shortMonthsParse : monthsParse,
  9613. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  9614. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  9615. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  9616. weekdaysParseExact : true,
  9617. longDateFormat : {
  9618. LT : 'HH:mm',
  9619. LTS : 'HH:mm:ss',
  9620. L : 'DD/MM/YYYY',
  9621. LL : 'D MMMM YYYY',
  9622. LLL : 'D MMMM YYYY HH:mm',
  9623. LLLL : 'dddd D MMMM YYYY HH:mm'
  9624. },
  9625. calendar : {
  9626. sameDay: '[vandaag om] LT',
  9627. nextDay: '[morgen om] LT',
  9628. nextWeek: 'dddd [om] LT',
  9629. lastDay: '[gisteren om] LT',
  9630. lastWeek: '[afgelopen] dddd [om] LT',
  9631. sameElse: 'L'
  9632. },
  9633. relativeTime : {
  9634. future : 'over %s',
  9635. past : '%s geleden',
  9636. s : 'een paar seconden',
  9637. m : 'één minuut',
  9638. mm : '%d minuten',
  9639. h : 'één uur',
  9640. hh : '%d uur',
  9641. d : 'één dag',
  9642. dd : '%d dagen',
  9643. M : 'één maand',
  9644. MM : '%d maanden',
  9645. y : 'één jaar',
  9646. yy : '%d jaar'
  9647. },
  9648. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9649. ordinal : function (number) {
  9650. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  9651. },
  9652. week : {
  9653. dow : 1, // Monday is the first day of the week.
  9654. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9655. }
  9656. });
  9657. //! moment.js locale configuration
  9658. //! locale : Dutch [nl]
  9659. //! author : Joris Röling : https://github.com/jorisroling
  9660. //! author : Jacob Middag : https://github.com/middagj
  9661. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  9662. var monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  9663. var monthsParse$1 = [/^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];
  9664. var monthsRegex$2 = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  9665. hooks.defineLocale('nl', {
  9666. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  9667. monthsShort : function (m, format) {
  9668. if (!m) {
  9669. return monthsShortWithDots$2;
  9670. } else if (/-MMM-/.test(format)) {
  9671. return monthsShortWithoutDots$2[m.month()];
  9672. } else {
  9673. return monthsShortWithDots$2[m.month()];
  9674. }
  9675. },
  9676. monthsRegex: monthsRegex$2,
  9677. monthsShortRegex: monthsRegex$2,
  9678. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  9679. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  9680. monthsParse : monthsParse$1,
  9681. longMonthsParse : monthsParse$1,
  9682. shortMonthsParse : monthsParse$1,
  9683. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  9684. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  9685. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  9686. weekdaysParseExact : true,
  9687. longDateFormat : {
  9688. LT : 'HH:mm',
  9689. LTS : 'HH:mm:ss',
  9690. L : 'DD-MM-YYYY',
  9691. LL : 'D MMMM YYYY',
  9692. LLL : 'D MMMM YYYY HH:mm',
  9693. LLLL : 'dddd D MMMM YYYY HH:mm'
  9694. },
  9695. calendar : {
  9696. sameDay: '[vandaag om] LT',
  9697. nextDay: '[morgen om] LT',
  9698. nextWeek: 'dddd [om] LT',
  9699. lastDay: '[gisteren om] LT',
  9700. lastWeek: '[afgelopen] dddd [om] LT',
  9701. sameElse: 'L'
  9702. },
  9703. relativeTime : {
  9704. future : 'over %s',
  9705. past : '%s geleden',
  9706. s : 'een paar seconden',
  9707. m : 'één minuut',
  9708. mm : '%d minuten',
  9709. h : 'één uur',
  9710. hh : '%d uur',
  9711. d : 'één dag',
  9712. dd : '%d dagen',
  9713. M : 'één maand',
  9714. MM : '%d maanden',
  9715. y : 'één jaar',
  9716. yy : '%d jaar'
  9717. },
  9718. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9719. ordinal : function (number) {
  9720. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  9721. },
  9722. week : {
  9723. dow : 1, // Monday is the first day of the week.
  9724. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9725. }
  9726. });
  9727. //! moment.js locale configuration
  9728. //! locale : Nynorsk [nn]
  9729. //! author : https://github.com/mechuwind
  9730. hooks.defineLocale('nn', {
  9731. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  9732. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  9733. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  9734. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  9735. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  9736. longDateFormat : {
  9737. LT : 'HH:mm',
  9738. LTS : 'HH:mm:ss',
  9739. L : 'DD.MM.YYYY',
  9740. LL : 'D. MMMM YYYY',
  9741. LLL : 'D. MMMM YYYY [kl.] H:mm',
  9742. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  9743. },
  9744. calendar : {
  9745. sameDay: '[I dag klokka] LT',
  9746. nextDay: '[I morgon klokka] LT',
  9747. nextWeek: 'dddd [klokka] LT',
  9748. lastDay: '[I går klokka] LT',
  9749. lastWeek: '[Føregåande] dddd [klokka] LT',
  9750. sameElse: 'L'
  9751. },
  9752. relativeTime : {
  9753. future : 'om %s',
  9754. past : '%s sidan',
  9755. s : 'nokre sekund',
  9756. m : 'eit minutt',
  9757. mm : '%d minutt',
  9758. h : 'ein time',
  9759. hh : '%d timar',
  9760. d : 'ein dag',
  9761. dd : '%d dagar',
  9762. M : 'ein månad',
  9763. MM : '%d månader',
  9764. y : 'eit år',
  9765. yy : '%d år'
  9766. },
  9767. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9768. ordinal : '%d.',
  9769. week : {
  9770. dow : 1, // Monday is the first day of the week.
  9771. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9772. }
  9773. });
  9774. //! moment.js locale configuration
  9775. //! locale : Punjabi (India) [pa-in]
  9776. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  9777. var symbolMap$11 = {
  9778. '1': '੧',
  9779. '2': '੨',
  9780. '3': '੩',
  9781. '4': '੪',
  9782. '5': '੫',
  9783. '6': '੬',
  9784. '7': '੭',
  9785. '8': '੮',
  9786. '9': '੯',
  9787. '0': '੦'
  9788. };
  9789. var numberMap$10 = {
  9790. '੧': '1',
  9791. '੨': '2',
  9792. '੩': '3',
  9793. '੪': '4',
  9794. '੫': '5',
  9795. '੬': '6',
  9796. '੭': '7',
  9797. '੮': '8',
  9798. '੯': '9',
  9799. '੦': '0'
  9800. };
  9801. hooks.defineLocale('pa-in', {
  9802. // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
  9803. months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  9804. monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  9805. weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  9806. weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  9807. weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  9808. longDateFormat : {
  9809. LT : 'A h:mm ਵਜੇ',
  9810. LTS : 'A h:mm:ss ਵਜੇ',
  9811. L : 'DD/MM/YYYY',
  9812. LL : 'D MMMM YYYY',
  9813. LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
  9814. LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  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 : 'ਕੁਝ ਸਕਿੰਟ',
  9828. m : 'ਇਕ ਮਿੰਟ',
  9829. mm : '%d ਮਿੰਟ',
  9830. h : 'ਇੱਕ ਘੰਟਾ',
  9831. hh : '%d ਘੰਟੇ',
  9832. d : 'ਇੱਕ ਦਿਨ',
  9833. dd : '%d ਦਿਨ',
  9834. M : 'ਇੱਕ ਮਹੀਨਾ',
  9835. MM : '%d ਮਹੀਨੇ',
  9836. y : 'ਇੱਕ ਸਾਲ',
  9837. yy : '%d ਸਾਲ'
  9838. },
  9839. preparse: function (string) {
  9840. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  9841. return numberMap$10[match];
  9842. });
  9843. },
  9844. postformat: function (string) {
  9845. return string.replace(/\d/g, function (match) {
  9846. return symbolMap$11[match];
  9847. });
  9848. },
  9849. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  9850. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  9851. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  9852. meridiemHour : function (hour, meridiem) {
  9853. if (hour === 12) {
  9854. hour = 0;
  9855. }
  9856. if (meridiem === 'ਰਾਤ') {
  9857. return hour < 4 ? hour : hour + 12;
  9858. } else if (meridiem === 'ਸਵੇਰ') {
  9859. return hour;
  9860. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  9861. return hour >= 10 ? hour : hour + 12;
  9862. } else if (meridiem === 'ਸ਼ਾਮ') {
  9863. return hour + 12;
  9864. }
  9865. },
  9866. meridiem : function (hour, minute, isLower) {
  9867. if (hour < 4) {
  9868. return 'ਰਾਤ';
  9869. } else if (hour < 10) {
  9870. return 'ਸਵੇਰ';
  9871. } else if (hour < 17) {
  9872. return 'ਦੁਪਹਿਰ';
  9873. } else if (hour < 20) {
  9874. return 'ਸ਼ਾਮ';
  9875. } else {
  9876. return 'ਰਾਤ';
  9877. }
  9878. },
  9879. week : {
  9880. dow : 0, // Sunday is the first day of the week.
  9881. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9882. }
  9883. });
  9884. //! moment.js locale configuration
  9885. //! locale : Polish [pl]
  9886. //! author : Rafal Hirsz : https://github.com/evoL
  9887. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
  9888. var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  9889. function plural$3(n) {
  9890. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  9891. }
  9892. function translate$7(number, withoutSuffix, key) {
  9893. var result = number + ' ';
  9894. switch (key) {
  9895. case 'm':
  9896. return withoutSuffix ? 'minuta' : 'minutę';
  9897. case 'mm':
  9898. return result + (plural$3(number) ? 'minuty' : 'minut');
  9899. case 'h':
  9900. return withoutSuffix ? 'godzina' : 'godzinę';
  9901. case 'hh':
  9902. return result + (plural$3(number) ? 'godziny' : 'godzin');
  9903. case 'MM':
  9904. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  9905. case 'yy':
  9906. return result + (plural$3(number) ? 'lata' : 'lat');
  9907. }
  9908. }
  9909. hooks.defineLocale('pl', {
  9910. months : function (momentToFormat, format) {
  9911. if (!momentToFormat) {
  9912. return monthsNominative;
  9913. } else if (format === '') {
  9914. // Hack: if format empty we know this is used to generate
  9915. // RegExp by moment. Give then back both valid forms of months
  9916. // in RegExp ready format.
  9917. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  9918. } else if (/D MMMM/.test(format)) {
  9919. return monthsSubjective[momentToFormat.month()];
  9920. } else {
  9921. return monthsNominative[momentToFormat.month()];
  9922. }
  9923. },
  9924. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  9925. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  9926. weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  9927. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  9928. longDateFormat : {
  9929. LT : 'HH:mm',
  9930. LTS : 'HH:mm:ss',
  9931. L : 'DD.MM.YYYY',
  9932. LL : 'D MMMM YYYY',
  9933. LLL : 'D MMMM YYYY HH:mm',
  9934. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9935. },
  9936. calendar : {
  9937. sameDay: '[Dziś o] LT',
  9938. nextDay: '[Jutro o] LT',
  9939. nextWeek: '[W] dddd [o] LT',
  9940. lastDay: '[Wczoraj o] LT',
  9941. lastWeek: function () {
  9942. switch (this.day()) {
  9943. case 0:
  9944. return '[W zeszłą niedzielę o] LT';
  9945. case 3:
  9946. return '[W zeszłą środę o] LT';
  9947. case 6:
  9948. return '[W zeszłą sobotę o] LT';
  9949. default:
  9950. return '[W zeszły] dddd [o] LT';
  9951. }
  9952. },
  9953. sameElse: 'L'
  9954. },
  9955. relativeTime : {
  9956. future : 'za %s',
  9957. past : '%s temu',
  9958. s : 'kilka sekund',
  9959. m : translate$7,
  9960. mm : translate$7,
  9961. h : translate$7,
  9962. hh : translate$7,
  9963. d : '1 dzień',
  9964. dd : '%d dni',
  9965. M : 'miesiąc',
  9966. MM : translate$7,
  9967. y : 'rok',
  9968. yy : translate$7
  9969. },
  9970. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9971. ordinal : '%d.',
  9972. week : {
  9973. dow : 1, // Monday is the first day of the week.
  9974. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9975. }
  9976. });
  9977. //! moment.js locale configuration
  9978. //! locale : Portuguese (Brazil) [pt-br]
  9979. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  9980. hooks.defineLocale('pt-br', {
  9981. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  9982. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  9983. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  9984. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  9985. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  9986. weekdaysParseExact : true,
  9987. longDateFormat : {
  9988. LT : 'HH:mm',
  9989. LTS : 'HH:mm:ss',
  9990. L : 'DD/MM/YYYY',
  9991. LL : 'D [de] MMMM [de] YYYY',
  9992. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  9993. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  9994. },
  9995. calendar : {
  9996. sameDay: '[Hoje às] LT',
  9997. nextDay: '[Amanhã às] LT',
  9998. nextWeek: 'dddd [às] LT',
  9999. lastDay: '[Ontem às] LT',
  10000. lastWeek: function () {
  10001. return (this.day() === 0 || this.day() === 6) ?
  10002. '[Último] dddd [às] LT' : // Saturday + Sunday
  10003. '[Última] dddd [às] LT'; // Monday - Friday
  10004. },
  10005. sameElse: 'L'
  10006. },
  10007. relativeTime : {
  10008. future : 'em %s',
  10009. past : '%s atrás',
  10010. s : 'poucos segundos',
  10011. m : 'um minuto',
  10012. mm : '%d minutos',
  10013. h : 'uma hora',
  10014. hh : '%d horas',
  10015. d : 'um dia',
  10016. dd : '%d dias',
  10017. M : 'um mês',
  10018. MM : '%d meses',
  10019. y : 'um ano',
  10020. yy : '%d anos'
  10021. },
  10022. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10023. ordinal : '%dº'
  10024. });
  10025. //! moment.js locale configuration
  10026. //! locale : Portuguese [pt]
  10027. //! author : Jefferson : https://github.com/jalex79
  10028. hooks.defineLocale('pt', {
  10029. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  10030. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  10031. weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
  10032. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  10033. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  10034. weekdaysParseExact : true,
  10035. longDateFormat : {
  10036. LT : 'HH:mm',
  10037. LTS : 'HH:mm:ss',
  10038. L : 'DD/MM/YYYY',
  10039. LL : 'D [de] MMMM [de] YYYY',
  10040. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  10041. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  10042. },
  10043. calendar : {
  10044. sameDay: '[Hoje às] LT',
  10045. nextDay: '[Amanhã às] LT',
  10046. nextWeek: 'dddd [às] LT',
  10047. lastDay: '[Ontem às] LT',
  10048. lastWeek: function () {
  10049. return (this.day() === 0 || this.day() === 6) ?
  10050. '[Último] dddd [às] LT' : // Saturday + Sunday
  10051. '[Última] dddd [às] LT'; // Monday - Friday
  10052. },
  10053. sameElse: 'L'
  10054. },
  10055. relativeTime : {
  10056. future : 'em %s',
  10057. past : 'há %s',
  10058. s : 'segundos',
  10059. m : 'um minuto',
  10060. mm : '%d minutos',
  10061. h : 'uma hora',
  10062. hh : '%d horas',
  10063. d : 'um dia',
  10064. dd : '%d dias',
  10065. M : 'um mês',
  10066. MM : '%d meses',
  10067. y : 'um ano',
  10068. yy : '%d anos'
  10069. },
  10070. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10071. ordinal : '%dº',
  10072. week : {
  10073. dow : 1, // Monday is the first day of the week.
  10074. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10075. }
  10076. });
  10077. //! moment.js locale configuration
  10078. //! locale : Romanian [ro]
  10079. //! author : Vlad Gurdiga : https://github.com/gurdiga
  10080. //! author : Valentin Agachi : https://github.com/avaly
  10081. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  10082. var format = {
  10083. 'mm': 'minute',
  10084. 'hh': 'ore',
  10085. 'dd': 'zile',
  10086. 'MM': 'luni',
  10087. 'yy': 'ani'
  10088. },
  10089. separator = ' ';
  10090. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  10091. separator = ' de ';
  10092. }
  10093. return number + separator + format[key];
  10094. }
  10095. hooks.defineLocale('ro', {
  10096. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  10097. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  10098. monthsParseExact: true,
  10099. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  10100. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  10101. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  10102. longDateFormat : {
  10103. LT : 'H:mm',
  10104. LTS : 'H:mm:ss',
  10105. L : 'DD.MM.YYYY',
  10106. LL : 'D MMMM YYYY',
  10107. LLL : 'D MMMM YYYY H:mm',
  10108. LLLL : 'dddd, D MMMM YYYY H:mm'
  10109. },
  10110. calendar : {
  10111. sameDay: '[azi la] LT',
  10112. nextDay: '[mâine la] LT',
  10113. nextWeek: 'dddd [la] LT',
  10114. lastDay: '[ieri la] LT',
  10115. lastWeek: '[fosta] dddd [la] LT',
  10116. sameElse: 'L'
  10117. },
  10118. relativeTime : {
  10119. future : 'peste %s',
  10120. past : '%s în urmă',
  10121. s : 'câteva secunde',
  10122. m : 'un minut',
  10123. mm : relativeTimeWithPlural$2,
  10124. h : 'o oră',
  10125. hh : relativeTimeWithPlural$2,
  10126. d : 'o zi',
  10127. dd : relativeTimeWithPlural$2,
  10128. M : 'o lună',
  10129. MM : relativeTimeWithPlural$2,
  10130. y : 'un an',
  10131. yy : relativeTimeWithPlural$2
  10132. },
  10133. week : {
  10134. dow : 1, // Monday is the first day of the week.
  10135. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10136. }
  10137. });
  10138. //! moment.js locale configuration
  10139. //! locale : Russian [ru]
  10140. //! author : Viktorminator : https://github.com/Viktorminator
  10141. //! Author : Menelion Elensúle : https://github.com/Oire
  10142. //! author : Коренберг Марк : https://github.com/socketpair
  10143. function plural$4(word, num) {
  10144. var forms = word.split('_');
  10145. 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]);
  10146. }
  10147. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  10148. var format = {
  10149. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  10150. 'hh': 'час_часа_часов',
  10151. 'dd': 'день_дня_дней',
  10152. 'MM': 'месяц_месяца_месяцев',
  10153. 'yy': 'год_года_лет'
  10154. };
  10155. if (key === 'm') {
  10156. return withoutSuffix ? 'минута' : 'минуту';
  10157. }
  10158. else {
  10159. return number + ' ' + plural$4(format[key], +number);
  10160. }
  10161. }
  10162. var monthsParse$2 = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  10163. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  10164. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  10165. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  10166. hooks.defineLocale('ru', {
  10167. months : {
  10168. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  10169. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  10170. },
  10171. monthsShort : {
  10172. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  10173. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  10174. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  10175. },
  10176. weekdays : {
  10177. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  10178. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  10179. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  10180. },
  10181. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  10182. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  10183. monthsParse : monthsParse$2,
  10184. longMonthsParse : monthsParse$2,
  10185. shortMonthsParse : monthsParse$2,
  10186. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  10187. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  10188. // копия предыдущего
  10189. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  10190. // полные названия с падежами
  10191. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  10192. // Выражение, которое соотвествует только сокращённым формам
  10193. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  10194. longDateFormat : {
  10195. LT : 'HH:mm',
  10196. LTS : 'HH:mm:ss',
  10197. L : 'DD.MM.YYYY',
  10198. LL : 'D MMMM YYYY г.',
  10199. LLL : 'D MMMM YYYY г., HH:mm',
  10200. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  10201. },
  10202. calendar : {
  10203. sameDay: '[Сегодня в] LT',
  10204. nextDay: '[Завтра в] LT',
  10205. lastDay: '[Вчера в] LT',
  10206. nextWeek: function (now) {
  10207. if (now.week() !== this.week()) {
  10208. switch (this.day()) {
  10209. case 0:
  10210. return '[В следующее] dddd [в] LT';
  10211. case 1:
  10212. case 2:
  10213. case 4:
  10214. return '[В следующий] dddd [в] LT';
  10215. case 3:
  10216. case 5:
  10217. case 6:
  10218. return '[В следующую] dddd [в] LT';
  10219. }
  10220. } else {
  10221. if (this.day() === 2) {
  10222. return '[Во] dddd [в] LT';
  10223. } else {
  10224. return '[В] dddd [в] LT';
  10225. }
  10226. }
  10227. },
  10228. lastWeek: function (now) {
  10229. if (now.week() !== this.week()) {
  10230. switch (this.day()) {
  10231. case 0:
  10232. return '[В прошлое] dddd [в] LT';
  10233. case 1:
  10234. case 2:
  10235. case 4:
  10236. return '[В прошлый] dddd [в] LT';
  10237. case 3:
  10238. case 5:
  10239. case 6:
  10240. return '[В прошлую] dddd [в] LT';
  10241. }
  10242. } else {
  10243. if (this.day() === 2) {
  10244. return '[Во] dddd [в] LT';
  10245. } else {
  10246. return '[В] dddd [в] LT';
  10247. }
  10248. }
  10249. },
  10250. sameElse: 'L'
  10251. },
  10252. relativeTime : {
  10253. future : 'через %s',
  10254. past : '%s назад',
  10255. s : 'несколько секунд',
  10256. m : relativeTimeWithPlural$3,
  10257. mm : relativeTimeWithPlural$3,
  10258. h : 'час',
  10259. hh : relativeTimeWithPlural$3,
  10260. d : 'день',
  10261. dd : relativeTimeWithPlural$3,
  10262. M : 'месяц',
  10263. MM : relativeTimeWithPlural$3,
  10264. y : 'год',
  10265. yy : relativeTimeWithPlural$3
  10266. },
  10267. meridiemParse: /ночи|утра|дня|вечера/i,
  10268. isPM : function (input) {
  10269. return /^(дня|вечера)$/.test(input);
  10270. },
  10271. meridiem : function (hour, minute, isLower) {
  10272. if (hour < 4) {
  10273. return 'ночи';
  10274. } else if (hour < 12) {
  10275. return 'утра';
  10276. } else if (hour < 17) {
  10277. return 'дня';
  10278. } else {
  10279. return 'вечера';
  10280. }
  10281. },
  10282. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  10283. ordinal: function (number, period) {
  10284. switch (period) {
  10285. case 'M':
  10286. case 'd':
  10287. case 'DDD':
  10288. return number + '-й';
  10289. case 'D':
  10290. return number + '-го';
  10291. case 'w':
  10292. case 'W':
  10293. return number + '-я';
  10294. default:
  10295. return number;
  10296. }
  10297. },
  10298. week : {
  10299. dow : 1, // Monday is the first day of the week.
  10300. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10301. }
  10302. });
  10303. //! moment.js locale configuration
  10304. //! locale : Sindhi [sd]
  10305. //! author : Narain Sagar : https://github.com/narainsagar
  10306. var months$6 = [
  10307. 'جنوري',
  10308. 'فيبروري',
  10309. 'مارچ',
  10310. 'اپريل',
  10311. 'مئي',
  10312. 'جون',
  10313. 'جولاءِ',
  10314. 'آگسٽ',
  10315. 'سيپٽمبر',
  10316. 'آڪٽوبر',
  10317. 'نومبر',
  10318. 'ڊسمبر'
  10319. ];
  10320. var days$1 = [
  10321. 'آچر',
  10322. 'سومر',
  10323. 'اڱارو',
  10324. 'اربع',
  10325. 'خميس',
  10326. 'جمع',
  10327. 'ڇنڇر'
  10328. ];
  10329. hooks.defineLocale('sd', {
  10330. months : months$6,
  10331. monthsShort : months$6,
  10332. weekdays : days$1,
  10333. weekdaysShort : days$1,
  10334. weekdaysMin : days$1,
  10335. longDateFormat : {
  10336. LT : 'HH:mm',
  10337. LTS : 'HH:mm:ss',
  10338. L : 'DD/MM/YYYY',
  10339. LL : 'D MMMM YYYY',
  10340. LLL : 'D MMMM YYYY HH:mm',
  10341. LLLL : 'dddd، D MMMM YYYY HH:mm'
  10342. },
  10343. meridiemParse: /صبح|شام/,
  10344. isPM : function (input) {
  10345. return 'شام' === input;
  10346. },
  10347. meridiem : function (hour, minute, isLower) {
  10348. if (hour < 12) {
  10349. return 'صبح';
  10350. }
  10351. return 'شام';
  10352. },
  10353. calendar : {
  10354. sameDay : '[اڄ] LT',
  10355. nextDay : '[سڀاڻي] LT',
  10356. nextWeek : 'dddd [اڳين هفتي تي] LT',
  10357. lastDay : '[ڪالهه] LT',
  10358. lastWeek : '[گزريل هفتي] dddd [تي] LT',
  10359. sameElse : 'L'
  10360. },
  10361. relativeTime : {
  10362. future : '%s پوء',
  10363. past : '%s اڳ',
  10364. s : 'چند سيڪنڊ',
  10365. m : 'هڪ منٽ',
  10366. mm : '%d منٽ',
  10367. h : 'هڪ ڪلاڪ',
  10368. hh : '%d ڪلاڪ',
  10369. d : 'هڪ ڏينهن',
  10370. dd : '%d ڏينهن',
  10371. M : 'هڪ مهينو',
  10372. MM : '%d مهينا',
  10373. y : 'هڪ سال',
  10374. yy : '%d سال'
  10375. },
  10376. preparse: function (string) {
  10377. return string.replace(/،/g, ',');
  10378. },
  10379. postformat: function (string) {
  10380. return string.replace(/,/g, '،');
  10381. },
  10382. week : {
  10383. dow : 1, // Monday is the first day of the week.
  10384. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10385. }
  10386. });
  10387. //! moment.js locale configuration
  10388. //! locale : Northern Sami [se]
  10389. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  10390. hooks.defineLocale('se', {
  10391. 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('_'),
  10392. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  10393. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  10394. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  10395. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  10396. longDateFormat : {
  10397. LT : 'HH:mm',
  10398. LTS : 'HH:mm:ss',
  10399. L : 'DD.MM.YYYY',
  10400. LL : 'MMMM D. [b.] YYYY',
  10401. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  10402. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  10403. },
  10404. calendar : {
  10405. sameDay: '[otne ti] LT',
  10406. nextDay: '[ihttin ti] LT',
  10407. nextWeek: 'dddd [ti] LT',
  10408. lastDay: '[ikte ti] LT',
  10409. lastWeek: '[ovddit] dddd [ti] LT',
  10410. sameElse: 'L'
  10411. },
  10412. relativeTime : {
  10413. future : '%s geažes',
  10414. past : 'maŋit %s',
  10415. s : 'moadde sekunddat',
  10416. m : 'okta minuhta',
  10417. mm : '%d minuhtat',
  10418. h : 'okta diimmu',
  10419. hh : '%d diimmut',
  10420. d : 'okta beaivi',
  10421. dd : '%d beaivvit',
  10422. M : 'okta mánnu',
  10423. MM : '%d mánut',
  10424. y : 'okta jahki',
  10425. yy : '%d jagit'
  10426. },
  10427. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10428. ordinal : '%d.',
  10429. week : {
  10430. dow : 1, // Monday is the first day of the week.
  10431. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10432. }
  10433. });
  10434. //! moment.js locale configuration
  10435. //! locale : Sinhalese [si]
  10436. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  10437. /*jshint -W100*/
  10438. hooks.defineLocale('si', {
  10439. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  10440. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  10441. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  10442. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  10443. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  10444. weekdaysParseExact : true,
  10445. longDateFormat : {
  10446. LT : 'a h:mm',
  10447. LTS : 'a h:mm:ss',
  10448. L : 'YYYY/MM/DD',
  10449. LL : 'YYYY MMMM D',
  10450. LLL : 'YYYY MMMM D, a h:mm',
  10451. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  10452. },
  10453. calendar : {
  10454. sameDay : '[අද] LT[ට]',
  10455. nextDay : '[හෙට] LT[ට]',
  10456. nextWeek : 'dddd LT[ට]',
  10457. lastDay : '[ඊයේ] LT[ට]',
  10458. lastWeek : '[පසුගිය] dddd LT[ට]',
  10459. sameElse : 'L'
  10460. },
  10461. relativeTime : {
  10462. future : '%sකින්',
  10463. past : '%sකට පෙර',
  10464. s : 'තත්පර කිහිපය',
  10465. m : 'මිනිත්තුව',
  10466. mm : 'මිනිත්තු %d',
  10467. h : 'පැය',
  10468. hh : 'පැය %d',
  10469. d : 'දිනය',
  10470. dd : 'දින %d',
  10471. M : 'මාසය',
  10472. MM : 'මාස %d',
  10473. y : 'වසර',
  10474. yy : 'වසර %d'
  10475. },
  10476. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  10477. ordinal : function (number) {
  10478. return number + ' වැනි';
  10479. },
  10480. meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  10481. isPM : function (input) {
  10482. return input === 'ප.ව.' || input === 'පස් වරු';
  10483. },
  10484. meridiem : function (hours, minutes, isLower) {
  10485. if (hours > 11) {
  10486. return isLower ? 'ප.ව.' : 'පස් වරු';
  10487. } else {
  10488. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  10489. }
  10490. }
  10491. });
  10492. //! moment.js locale configuration
  10493. //! locale : Slovak [sk]
  10494. //! author : Martin Minka : https://github.com/k2s
  10495. //! based on work of petrbela : https://github.com/petrbela
  10496. var months$7 = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
  10497. var monthsShort$4 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  10498. function plural$5(n) {
  10499. return (n > 1) && (n < 5);
  10500. }
  10501. function translate$8(number, withoutSuffix, key, isFuture) {
  10502. var result = number + ' ';
  10503. switch (key) {
  10504. case 's': // a few seconds / in a few seconds / a few seconds ago
  10505. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  10506. case 'm': // a minute / in a minute / a minute ago
  10507. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  10508. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  10509. if (withoutSuffix || isFuture) {
  10510. return result + (plural$5(number) ? 'minúty' : 'minút');
  10511. } else {
  10512. return result + 'minútami';
  10513. }
  10514. break;
  10515. case 'h': // an hour / in an hour / an hour ago
  10516. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  10517. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  10518. if (withoutSuffix || isFuture) {
  10519. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  10520. } else {
  10521. return result + 'hodinami';
  10522. }
  10523. break;
  10524. case 'd': // a day / in a day / a day ago
  10525. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  10526. case 'dd': // 9 days / in 9 days / 9 days ago
  10527. if (withoutSuffix || isFuture) {
  10528. return result + (plural$5(number) ? 'dni' : 'dní');
  10529. } else {
  10530. return result + 'dňami';
  10531. }
  10532. break;
  10533. case 'M': // a month / in a month / a month ago
  10534. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  10535. case 'MM': // 9 months / in 9 months / 9 months ago
  10536. if (withoutSuffix || isFuture) {
  10537. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  10538. } else {
  10539. return result + 'mesiacmi';
  10540. }
  10541. break;
  10542. case 'y': // a year / in a year / a year ago
  10543. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  10544. case 'yy': // 9 years / in 9 years / 9 years ago
  10545. if (withoutSuffix || isFuture) {
  10546. return result + (plural$5(number) ? 'roky' : 'rokov');
  10547. } else {
  10548. return result + 'rokmi';
  10549. }
  10550. break;
  10551. }
  10552. }
  10553. hooks.defineLocale('sk', {
  10554. months : months$7,
  10555. monthsShort : monthsShort$4,
  10556. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  10557. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  10558. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  10559. longDateFormat : {
  10560. LT: 'H:mm',
  10561. LTS : 'H:mm:ss',
  10562. L : 'DD.MM.YYYY',
  10563. LL : 'D. MMMM YYYY',
  10564. LLL : 'D. MMMM YYYY H:mm',
  10565. LLLL : 'dddd D. MMMM YYYY H:mm'
  10566. },
  10567. calendar : {
  10568. sameDay: '[dnes o] LT',
  10569. nextDay: '[zajtra o] LT',
  10570. nextWeek: function () {
  10571. switch (this.day()) {
  10572. case 0:
  10573. return '[v nedeľu o] LT';
  10574. case 1:
  10575. case 2:
  10576. return '[v] dddd [o] LT';
  10577. case 3:
  10578. return '[v stredu o] LT';
  10579. case 4:
  10580. return '[vo štvrtok o] LT';
  10581. case 5:
  10582. return '[v piatok o] LT';
  10583. case 6:
  10584. return '[v sobotu o] LT';
  10585. }
  10586. },
  10587. lastDay: '[včera o] LT',
  10588. lastWeek: function () {
  10589. switch (this.day()) {
  10590. case 0:
  10591. return '[minulú nedeľu o] LT';
  10592. case 1:
  10593. case 2:
  10594. return '[minulý] dddd [o] LT';
  10595. case 3:
  10596. return '[minulú stredu o] LT';
  10597. case 4:
  10598. case 5:
  10599. return '[minulý] dddd [o] LT';
  10600. case 6:
  10601. return '[minulú sobotu o] LT';
  10602. }
  10603. },
  10604. sameElse: 'L'
  10605. },
  10606. relativeTime : {
  10607. future : 'za %s',
  10608. past : 'pred %s',
  10609. s : translate$8,
  10610. m : translate$8,
  10611. mm : translate$8,
  10612. h : translate$8,
  10613. hh : translate$8,
  10614. d : translate$8,
  10615. dd : translate$8,
  10616. M : translate$8,
  10617. MM : translate$8,
  10618. y : translate$8,
  10619. yy : translate$8
  10620. },
  10621. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10622. ordinal : '%d.',
  10623. week : {
  10624. dow : 1, // Monday is the first day of the week.
  10625. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10626. }
  10627. });
  10628. //! moment.js locale configuration
  10629. //! locale : Slovenian [sl]
  10630. //! author : Robert Sedovšek : https://github.com/sedovsek
  10631. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  10632. var result = number + ' ';
  10633. switch (key) {
  10634. case 's':
  10635. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  10636. case 'm':
  10637. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  10638. case 'mm':
  10639. if (number === 1) {
  10640. result += withoutSuffix ? 'minuta' : 'minuto';
  10641. } else if (number === 2) {
  10642. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  10643. } else if (number < 5) {
  10644. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  10645. } else {
  10646. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  10647. }
  10648. return result;
  10649. case 'h':
  10650. return withoutSuffix ? 'ena ura' : 'eno uro';
  10651. case 'hh':
  10652. if (number === 1) {
  10653. result += withoutSuffix ? 'ura' : 'uro';
  10654. } else if (number === 2) {
  10655. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  10656. } else if (number < 5) {
  10657. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  10658. } else {
  10659. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  10660. }
  10661. return result;
  10662. case 'd':
  10663. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  10664. case 'dd':
  10665. if (number === 1) {
  10666. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  10667. } else if (number === 2) {
  10668. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  10669. } else {
  10670. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  10671. }
  10672. return result;
  10673. case 'M':
  10674. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  10675. case 'MM':
  10676. if (number === 1) {
  10677. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  10678. } else if (number === 2) {
  10679. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  10680. } else if (number < 5) {
  10681. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  10682. } else {
  10683. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  10684. }
  10685. return result;
  10686. case 'y':
  10687. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  10688. case 'yy':
  10689. if (number === 1) {
  10690. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  10691. } else if (number === 2) {
  10692. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  10693. } else if (number < 5) {
  10694. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  10695. } else {
  10696. result += withoutSuffix || isFuture ? 'let' : 'leti';
  10697. }
  10698. return result;
  10699. }
  10700. }
  10701. hooks.defineLocale('sl', {
  10702. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  10703. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  10704. monthsParseExact: true,
  10705. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  10706. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  10707. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  10708. weekdaysParseExact : true,
  10709. longDateFormat : {
  10710. LT : 'H:mm',
  10711. LTS : 'H:mm:ss',
  10712. L : 'DD.MM.YYYY',
  10713. LL : 'D. MMMM YYYY',
  10714. LLL : 'D. MMMM YYYY H:mm',
  10715. LLLL : 'dddd, D. MMMM YYYY H:mm'
  10716. },
  10717. calendar : {
  10718. sameDay : '[danes ob] LT',
  10719. nextDay : '[jutri ob] LT',
  10720. nextWeek : function () {
  10721. switch (this.day()) {
  10722. case 0:
  10723. return '[v] [nedeljo] [ob] LT';
  10724. case 3:
  10725. return '[v] [sredo] [ob] LT';
  10726. case 6:
  10727. return '[v] [soboto] [ob] LT';
  10728. case 1:
  10729. case 2:
  10730. case 4:
  10731. case 5:
  10732. return '[v] dddd [ob] LT';
  10733. }
  10734. },
  10735. lastDay : '[včeraj ob] LT',
  10736. lastWeek : function () {
  10737. switch (this.day()) {
  10738. case 0:
  10739. return '[prejšnjo] [nedeljo] [ob] LT';
  10740. case 3:
  10741. return '[prejšnjo] [sredo] [ob] LT';
  10742. case 6:
  10743. return '[prejšnjo] [soboto] [ob] LT';
  10744. case 1:
  10745. case 2:
  10746. case 4:
  10747. case 5:
  10748. return '[prejšnji] dddd [ob] LT';
  10749. }
  10750. },
  10751. sameElse : 'L'
  10752. },
  10753. relativeTime : {
  10754. future : 'čez %s',
  10755. past : 'pred %s',
  10756. s : processRelativeTime$6,
  10757. m : processRelativeTime$6,
  10758. mm : processRelativeTime$6,
  10759. h : processRelativeTime$6,
  10760. hh : processRelativeTime$6,
  10761. d : processRelativeTime$6,
  10762. dd : processRelativeTime$6,
  10763. M : processRelativeTime$6,
  10764. MM : processRelativeTime$6,
  10765. y : processRelativeTime$6,
  10766. yy : processRelativeTime$6
  10767. },
  10768. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10769. ordinal : '%d.',
  10770. week : {
  10771. dow : 1, // Monday is the first day of the week.
  10772. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10773. }
  10774. });
  10775. //! moment.js locale configuration
  10776. //! locale : Albanian [sq]
  10777. //! author : Flakërim Ismani : https://github.com/flakerimi
  10778. //! author : Menelion Elensúle : https://github.com/Oire
  10779. //! author : Oerd Cukalla : https://github.com/oerd
  10780. hooks.defineLocale('sq', {
  10781. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  10782. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  10783. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  10784. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  10785. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  10786. weekdaysParseExact : true,
  10787. meridiemParse: /PD|MD/,
  10788. isPM: function (input) {
  10789. return input.charAt(0) === 'M';
  10790. },
  10791. meridiem : function (hours, minutes, isLower) {
  10792. return hours < 12 ? 'PD' : 'MD';
  10793. },
  10794. longDateFormat : {
  10795. LT : 'HH:mm',
  10796. LTS : 'HH:mm:ss',
  10797. L : 'DD/MM/YYYY',
  10798. LL : 'D MMMM YYYY',
  10799. LLL : 'D MMMM YYYY HH:mm',
  10800. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10801. },
  10802. calendar : {
  10803. sameDay : '[Sot në] LT',
  10804. nextDay : '[Nesër në] LT',
  10805. nextWeek : 'dddd [në] LT',
  10806. lastDay : '[Dje në] LT',
  10807. lastWeek : 'dddd [e kaluar në] LT',
  10808. sameElse : 'L'
  10809. },
  10810. relativeTime : {
  10811. future : 'në %s',
  10812. past : '%s më parë',
  10813. s : 'disa sekonda',
  10814. m : 'një minutë',
  10815. mm : '%d minuta',
  10816. h : 'një orë',
  10817. hh : '%d orë',
  10818. d : 'një ditë',
  10819. dd : '%d ditë',
  10820. M : 'një muaj',
  10821. MM : '%d muaj',
  10822. y : 'një vit',
  10823. yy : '%d vite'
  10824. },
  10825. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10826. ordinal : '%d.',
  10827. week : {
  10828. dow : 1, // Monday is the first day of the week.
  10829. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10830. }
  10831. });
  10832. //! moment.js locale configuration
  10833. //! locale : Serbian Cyrillic [sr-cyrl]
  10834. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  10835. var translator$1 = {
  10836. words: { //Different grammatical cases
  10837. m: ['један минут', 'једне минуте'],
  10838. mm: ['минут', 'минуте', 'минута'],
  10839. h: ['један сат', 'једног сата'],
  10840. hh: ['сат', 'сата', 'сати'],
  10841. dd: ['дан', 'дана', 'дана'],
  10842. MM: ['месец', 'месеца', 'месеци'],
  10843. yy: ['година', 'године', 'година']
  10844. },
  10845. correctGrammaticalCase: function (number, wordKey) {
  10846. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  10847. },
  10848. translate: function (number, withoutSuffix, key) {
  10849. var wordKey = translator$1.words[key];
  10850. if (key.length === 1) {
  10851. return withoutSuffix ? wordKey[0] : wordKey[1];
  10852. } else {
  10853. return number + ' ' + translator$1.correctGrammaticalCase(number, wordKey);
  10854. }
  10855. }
  10856. };
  10857. hooks.defineLocale('sr-cyrl', {
  10858. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  10859. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  10860. monthsParseExact: true,
  10861. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  10862. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  10863. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  10864. weekdaysParseExact : true,
  10865. longDateFormat: {
  10866. LT: 'H:mm',
  10867. LTS : 'H:mm:ss',
  10868. L: 'DD.MM.YYYY',
  10869. LL: 'D. MMMM YYYY',
  10870. LLL: 'D. MMMM YYYY H:mm',
  10871. LLLL: 'dddd, D. MMMM YYYY H:mm'
  10872. },
  10873. calendar: {
  10874. sameDay: '[данас у] LT',
  10875. nextDay: '[сутра у] LT',
  10876. nextWeek: function () {
  10877. switch (this.day()) {
  10878. case 0:
  10879. return '[у] [недељу] [у] LT';
  10880. case 3:
  10881. return '[у] [среду] [у] LT';
  10882. case 6:
  10883. return '[у] [суботу] [у] LT';
  10884. case 1:
  10885. case 2:
  10886. case 4:
  10887. case 5:
  10888. return '[у] dddd [у] LT';
  10889. }
  10890. },
  10891. lastDay : '[јуче у] LT',
  10892. lastWeek : function () {
  10893. var lastWeekDays = [
  10894. '[прошле] [недеље] [у] LT',
  10895. '[прошлог] [понедељка] [у] LT',
  10896. '[прошлог] [уторка] [у] LT',
  10897. '[прошле] [среде] [у] LT',
  10898. '[прошлог] [четвртка] [у] LT',
  10899. '[прошлог] [петка] [у] LT',
  10900. '[прошле] [суботе] [у] LT'
  10901. ];
  10902. return lastWeekDays[this.day()];
  10903. },
  10904. sameElse : 'L'
  10905. },
  10906. relativeTime : {
  10907. future : 'за %s',
  10908. past : 'пре %s',
  10909. s : 'неколико секунди',
  10910. m : translator$1.translate,
  10911. mm : translator$1.translate,
  10912. h : translator$1.translate,
  10913. hh : translator$1.translate,
  10914. d : 'дан',
  10915. dd : translator$1.translate,
  10916. M : 'месец',
  10917. MM : translator$1.translate,
  10918. y : 'годину',
  10919. yy : translator$1.translate
  10920. },
  10921. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10922. ordinal : '%d.',
  10923. week : {
  10924. dow : 1, // Monday is the first day of the week.
  10925. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10926. }
  10927. });
  10928. //! moment.js locale configuration
  10929. //! locale : Serbian [sr]
  10930. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  10931. var translator$2 = {
  10932. words: { //Different grammatical cases
  10933. m: ['jedan minut', 'jedne minute'],
  10934. mm: ['minut', 'minute', 'minuta'],
  10935. h: ['jedan sat', 'jednog sata'],
  10936. hh: ['sat', 'sata', 'sati'],
  10937. dd: ['dan', 'dana', 'dana'],
  10938. MM: ['mesec', 'meseca', 'meseci'],
  10939. yy: ['godina', 'godine', 'godina']
  10940. },
  10941. correctGrammaticalCase: function (number, wordKey) {
  10942. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  10943. },
  10944. translate: function (number, withoutSuffix, key) {
  10945. var wordKey = translator$2.words[key];
  10946. if (key.length === 1) {
  10947. return withoutSuffix ? wordKey[0] : wordKey[1];
  10948. } else {
  10949. return number + ' ' + translator$2.correctGrammaticalCase(number, wordKey);
  10950. }
  10951. }
  10952. };
  10953. hooks.defineLocale('sr', {
  10954. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  10955. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  10956. monthsParseExact: true,
  10957. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  10958. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  10959. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  10960. weekdaysParseExact : true,
  10961. longDateFormat: {
  10962. LT: 'H:mm',
  10963. LTS : 'H:mm:ss',
  10964. L: 'DD.MM.YYYY',
  10965. LL: 'D. MMMM YYYY',
  10966. LLL: 'D. MMMM YYYY H:mm',
  10967. LLLL: 'dddd, D. MMMM YYYY H:mm'
  10968. },
  10969. calendar: {
  10970. sameDay: '[danas u] LT',
  10971. nextDay: '[sutra u] LT',
  10972. nextWeek: function () {
  10973. switch (this.day()) {
  10974. case 0:
  10975. return '[u] [nedelju] [u] LT';
  10976. case 3:
  10977. return '[u] [sredu] [u] LT';
  10978. case 6:
  10979. return '[u] [subotu] [u] LT';
  10980. case 1:
  10981. case 2:
  10982. case 4:
  10983. case 5:
  10984. return '[u] dddd [u] LT';
  10985. }
  10986. },
  10987. lastDay : '[juče u] LT',
  10988. lastWeek : function () {
  10989. var lastWeekDays = [
  10990. '[prošle] [nedelje] [u] LT',
  10991. '[prošlog] [ponedeljka] [u] LT',
  10992. '[prošlog] [utorka] [u] LT',
  10993. '[prošle] [srede] [u] LT',
  10994. '[prošlog] [četvrtka] [u] LT',
  10995. '[prošlog] [petka] [u] LT',
  10996. '[prošle] [subote] [u] LT'
  10997. ];
  10998. return lastWeekDays[this.day()];
  10999. },
  11000. sameElse : 'L'
  11001. },
  11002. relativeTime : {
  11003. future : 'za %s',
  11004. past : 'pre %s',
  11005. s : 'nekoliko sekundi',
  11006. m : translator$2.translate,
  11007. mm : translator$2.translate,
  11008. h : translator$2.translate,
  11009. hh : translator$2.translate,
  11010. d : 'dan',
  11011. dd : translator$2.translate,
  11012. M : 'mesec',
  11013. MM : translator$2.translate,
  11014. y : 'godinu',
  11015. yy : translator$2.translate
  11016. },
  11017. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11018. ordinal : '%d.',
  11019. week : {
  11020. dow : 1, // Monday is the first day of the week.
  11021. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11022. }
  11023. });
  11024. //! moment.js locale configuration
  11025. //! locale : siSwati [ss]
  11026. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  11027. hooks.defineLocale('ss', {
  11028. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  11029. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  11030. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  11031. weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  11032. weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  11033. weekdaysParseExact : true,
  11034. longDateFormat : {
  11035. LT : 'h:mm A',
  11036. LTS : 'h:mm:ss A',
  11037. L : 'DD/MM/YYYY',
  11038. LL : 'D MMMM YYYY',
  11039. LLL : 'D MMMM YYYY h:mm A',
  11040. LLLL : 'dddd, D MMMM YYYY h:mm A'
  11041. },
  11042. calendar : {
  11043. sameDay : '[Namuhla nga] LT',
  11044. nextDay : '[Kusasa nga] LT',
  11045. nextWeek : 'dddd [nga] LT',
  11046. lastDay : '[Itolo nga] LT',
  11047. lastWeek : 'dddd [leliphelile] [nga] LT',
  11048. sameElse : 'L'
  11049. },
  11050. relativeTime : {
  11051. future : 'nga %s',
  11052. past : 'wenteka nga %s',
  11053. s : 'emizuzwana lomcane',
  11054. m : 'umzuzu',
  11055. mm : '%d emizuzu',
  11056. h : 'lihora',
  11057. hh : '%d emahora',
  11058. d : 'lilanga',
  11059. dd : '%d emalanga',
  11060. M : 'inyanga',
  11061. MM : '%d tinyanga',
  11062. y : 'umnyaka',
  11063. yy : '%d iminyaka'
  11064. },
  11065. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  11066. meridiem : function (hours, minutes, isLower) {
  11067. if (hours < 11) {
  11068. return 'ekuseni';
  11069. } else if (hours < 15) {
  11070. return 'emini';
  11071. } else if (hours < 19) {
  11072. return 'entsambama';
  11073. } else {
  11074. return 'ebusuku';
  11075. }
  11076. },
  11077. meridiemHour : function (hour, meridiem) {
  11078. if (hour === 12) {
  11079. hour = 0;
  11080. }
  11081. if (meridiem === 'ekuseni') {
  11082. return hour;
  11083. } else if (meridiem === 'emini') {
  11084. return hour >= 11 ? hour : hour + 12;
  11085. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  11086. if (hour === 0) {
  11087. return 0;
  11088. }
  11089. return hour + 12;
  11090. }
  11091. },
  11092. dayOfMonthOrdinalParse: /\d{1,2}/,
  11093. ordinal : '%d',
  11094. week : {
  11095. dow : 1, // Monday is the first day of the week.
  11096. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11097. }
  11098. });
  11099. //! moment.js locale configuration
  11100. //! locale : Swedish [sv]
  11101. //! author : Jens Alm : https://github.com/ulmus
  11102. hooks.defineLocale('sv', {
  11103. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  11104. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  11105. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  11106. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  11107. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  11108. longDateFormat : {
  11109. LT : 'HH:mm',
  11110. LTS : 'HH:mm:ss',
  11111. L : 'YYYY-MM-DD',
  11112. LL : 'D MMMM YYYY',
  11113. LLL : 'D MMMM YYYY [kl.] HH:mm',
  11114. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  11115. lll : 'D MMM YYYY HH:mm',
  11116. llll : 'ddd D MMM YYYY HH:mm'
  11117. },
  11118. calendar : {
  11119. sameDay: '[Idag] LT',
  11120. nextDay: '[Imorgon] LT',
  11121. lastDay: '[Igår] LT',
  11122. nextWeek: '[På] dddd LT',
  11123. lastWeek: '[I] dddd[s] LT',
  11124. sameElse: 'L'
  11125. },
  11126. relativeTime : {
  11127. future : 'om %s',
  11128. past : 'för %s sedan',
  11129. s : 'några sekunder',
  11130. m : 'en minut',
  11131. mm : '%d minuter',
  11132. h : 'en timme',
  11133. hh : '%d timmar',
  11134. d : 'en dag',
  11135. dd : '%d dagar',
  11136. M : 'en månad',
  11137. MM : '%d månader',
  11138. y : 'ett år',
  11139. yy : '%d år'
  11140. },
  11141. dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
  11142. ordinal : function (number) {
  11143. var b = number % 10,
  11144. output = (~~(number % 100 / 10) === 1) ? 'e' :
  11145. (b === 1) ? 'a' :
  11146. (b === 2) ? 'a' :
  11147. (b === 3) ? 'e' : 'e';
  11148. return number + output;
  11149. },
  11150. week : {
  11151. dow : 1, // Monday is the first day of the week.
  11152. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11153. }
  11154. });
  11155. //! moment.js locale configuration
  11156. //! locale : Swahili [sw]
  11157. //! author : Fahad Kassim : https://github.com/fadsel
  11158. hooks.defineLocale('sw', {
  11159. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  11160. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  11161. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  11162. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  11163. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  11164. weekdaysParseExact : true,
  11165. longDateFormat : {
  11166. LT : 'HH:mm',
  11167. LTS : 'HH:mm:ss',
  11168. L : 'DD.MM.YYYY',
  11169. LL : 'D MMMM YYYY',
  11170. LLL : 'D MMMM YYYY HH:mm',
  11171. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11172. },
  11173. calendar : {
  11174. sameDay : '[leo saa] LT',
  11175. nextDay : '[kesho saa] LT',
  11176. nextWeek : '[wiki ijayo] dddd [saat] LT',
  11177. lastDay : '[jana] LT',
  11178. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  11179. sameElse : 'L'
  11180. },
  11181. relativeTime : {
  11182. future : '%s baadaye',
  11183. past : 'tokea %s',
  11184. s : 'hivi punde',
  11185. m : 'dakika moja',
  11186. mm : 'dakika %d',
  11187. h : 'saa limoja',
  11188. hh : 'masaa %d',
  11189. d : 'siku moja',
  11190. dd : 'masiku %d',
  11191. M : 'mwezi mmoja',
  11192. MM : 'miezi %d',
  11193. y : 'mwaka mmoja',
  11194. yy : 'miaka %d'
  11195. },
  11196. week : {
  11197. dow : 1, // Monday is the first day of the week.
  11198. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11199. }
  11200. });
  11201. //! moment.js locale configuration
  11202. //! locale : Tamil [ta]
  11203. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  11204. var symbolMap$12 = {
  11205. '1': '௧',
  11206. '2': '௨',
  11207. '3': '௩',
  11208. '4': '௪',
  11209. '5': '௫',
  11210. '6': '௬',
  11211. '7': '௭',
  11212. '8': '௮',
  11213. '9': '௯',
  11214. '0': '௦'
  11215. };
  11216. var numberMap$11 = {
  11217. '௧': '1',
  11218. '௨': '2',
  11219. '௩': '3',
  11220. '௪': '4',
  11221. '௫': '5',
  11222. '௬': '6',
  11223. '௭': '7',
  11224. '௮': '8',
  11225. '௯': '9',
  11226. '௦': '0'
  11227. };
  11228. hooks.defineLocale('ta', {
  11229. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  11230. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  11231. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  11232. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  11233. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  11234. longDateFormat : {
  11235. LT : 'HH:mm',
  11236. LTS : 'HH:mm:ss',
  11237. L : 'DD/MM/YYYY',
  11238. LL : 'D MMMM YYYY',
  11239. LLL : 'D MMMM YYYY, HH:mm',
  11240. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  11241. },
  11242. calendar : {
  11243. sameDay : '[இன்று] LT',
  11244. nextDay : '[நாளை] LT',
  11245. nextWeek : 'dddd, LT',
  11246. lastDay : '[நேற்று] LT',
  11247. lastWeek : '[கடந்த வாரம்] dddd, LT',
  11248. sameElse : 'L'
  11249. },
  11250. relativeTime : {
  11251. future : '%s இல்',
  11252. past : '%s முன்',
  11253. s : 'ஒரு சில விநாடிகள்',
  11254. m : 'ஒரு நிமிடம்',
  11255. mm : '%d நிமிடங்கள்',
  11256. h : 'ஒரு மணி நேரம்',
  11257. hh : '%d மணி நேரம்',
  11258. d : 'ஒரு நாள்',
  11259. dd : '%d நாட்கள்',
  11260. M : 'ஒரு மாதம்',
  11261. MM : '%d மாதங்கள்',
  11262. y : 'ஒரு வருடம்',
  11263. yy : '%d ஆண்டுகள்'
  11264. },
  11265. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  11266. ordinal : function (number) {
  11267. return number + 'வது';
  11268. },
  11269. preparse: function (string) {
  11270. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  11271. return numberMap$11[match];
  11272. });
  11273. },
  11274. postformat: function (string) {
  11275. return string.replace(/\d/g, function (match) {
  11276. return symbolMap$12[match];
  11277. });
  11278. },
  11279. // refer http://ta.wikipedia.org/s/1er1
  11280. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  11281. meridiem : function (hour, minute, isLower) {
  11282. if (hour < 2) {
  11283. return ' யாமம்';
  11284. } else if (hour < 6) {
  11285. return ' வைகறை'; // வைகறை
  11286. } else if (hour < 10) {
  11287. return ' காலை'; // காலை
  11288. } else if (hour < 14) {
  11289. return ' நண்பகல்'; // நண்பகல்
  11290. } else if (hour < 18) {
  11291. return ' எற்பாடு'; // எற்பாடு
  11292. } else if (hour < 22) {
  11293. return ' மாலை'; // மாலை
  11294. } else {
  11295. return ' யாமம்';
  11296. }
  11297. },
  11298. meridiemHour : function (hour, meridiem) {
  11299. if (hour === 12) {
  11300. hour = 0;
  11301. }
  11302. if (meridiem === 'யாமம்') {
  11303. return hour < 2 ? hour : hour + 12;
  11304. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  11305. return hour;
  11306. } else if (meridiem === 'நண்பகல்') {
  11307. return hour >= 10 ? hour : hour + 12;
  11308. } else {
  11309. return hour + 12;
  11310. }
  11311. },
  11312. week : {
  11313. dow : 0, // Sunday is the first day of the week.
  11314. doy : 6 // The week that contains Jan 1st is the first week of the year.
  11315. }
  11316. });
  11317. //! moment.js locale configuration
  11318. //! locale : Telugu [te]
  11319. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  11320. hooks.defineLocale('te', {
  11321. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  11322. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  11323. monthsParseExact : true,
  11324. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  11325. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  11326. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  11327. longDateFormat : {
  11328. LT : 'A h:mm',
  11329. LTS : 'A h:mm:ss',
  11330. L : 'DD/MM/YYYY',
  11331. LL : 'D MMMM YYYY',
  11332. LLL : 'D MMMM YYYY, A h:mm',
  11333. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  11334. },
  11335. calendar : {
  11336. sameDay : '[నేడు] LT',
  11337. nextDay : '[రేపు] LT',
  11338. nextWeek : 'dddd, LT',
  11339. lastDay : '[నిన్న] LT',
  11340. lastWeek : '[గత] dddd, LT',
  11341. sameElse : 'L'
  11342. },
  11343. relativeTime : {
  11344. future : '%s లో',
  11345. past : '%s క్రితం',
  11346. s : 'కొన్ని క్షణాలు',
  11347. m : 'ఒక నిమిషం',
  11348. mm : '%d నిమిషాలు',
  11349. h : 'ఒక గంట',
  11350. hh : '%d గంటలు',
  11351. d : 'ఒక రోజు',
  11352. dd : '%d రోజులు',
  11353. M : 'ఒక నెల',
  11354. MM : '%d నెలలు',
  11355. y : 'ఒక సంవత్సరం',
  11356. yy : '%d సంవత్సరాలు'
  11357. },
  11358. dayOfMonthOrdinalParse : /\d{1,2}వ/,
  11359. ordinal : '%dవ',
  11360. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  11361. meridiemHour : function (hour, meridiem) {
  11362. if (hour === 12) {
  11363. hour = 0;
  11364. }
  11365. if (meridiem === 'రాత్రి') {
  11366. return hour < 4 ? hour : hour + 12;
  11367. } else if (meridiem === 'ఉదయం') {
  11368. return hour;
  11369. } else if (meridiem === 'మధ్యాహ్నం') {
  11370. return hour >= 10 ? hour : hour + 12;
  11371. } else if (meridiem === 'సాయంత్రం') {
  11372. return hour + 12;
  11373. }
  11374. },
  11375. meridiem : function (hour, minute, isLower) {
  11376. if (hour < 4) {
  11377. return 'రాత్రి';
  11378. } else if (hour < 10) {
  11379. return 'ఉదయం';
  11380. } else if (hour < 17) {
  11381. return 'మధ్యాహ్నం';
  11382. } else if (hour < 20) {
  11383. return 'సాయంత్రం';
  11384. } else {
  11385. return 'రాత్రి';
  11386. }
  11387. },
  11388. week : {
  11389. dow : 0, // Sunday is the first day of the week.
  11390. doy : 6 // The week that contains Jan 1st is the first week of the year.
  11391. }
  11392. });
  11393. //! moment.js locale configuration
  11394. //! locale : Tetun Dili (East Timor) [tet]
  11395. //! author : Joshua Brooks : https://github.com/joshbrooks
  11396. //! author : Onorio De J. Afonso : https://github.com/marobo
  11397. hooks.defineLocale('tet', {
  11398. months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  11399. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
  11400. weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
  11401. weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
  11402. weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
  11403. longDateFormat : {
  11404. LT : 'HH:mm',
  11405. LTS : 'HH:mm:ss',
  11406. L : 'DD/MM/YYYY',
  11407. LL : 'D MMMM YYYY',
  11408. LLL : 'D MMMM YYYY HH:mm',
  11409. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11410. },
  11411. calendar : {
  11412. sameDay: '[Ohin iha] LT',
  11413. nextDay: '[Aban iha] LT',
  11414. nextWeek: 'dddd [iha] LT',
  11415. lastDay: '[Horiseik iha] LT',
  11416. lastWeek: 'dddd [semana kotuk] [iha] LT',
  11417. sameElse: 'L'
  11418. },
  11419. relativeTime : {
  11420. future : 'iha %s',
  11421. past : '%s liuba',
  11422. s : 'minutu balun',
  11423. m : 'minutu ida',
  11424. mm : 'minutus %d',
  11425. h : 'horas ida',
  11426. hh : 'horas %d',
  11427. d : 'loron ida',
  11428. dd : 'loron %d',
  11429. M : 'fulan ida',
  11430. MM : 'fulan %d',
  11431. y : 'tinan ida',
  11432. yy : 'tinan %d'
  11433. },
  11434. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11435. ordinal : function (number) {
  11436. var b = number % 10,
  11437. output = (~~(number % 100 / 10) === 1) ? 'th' :
  11438. (b === 1) ? 'st' :
  11439. (b === 2) ? 'nd' :
  11440. (b === 3) ? 'rd' : 'th';
  11441. return number + output;
  11442. },
  11443. week : {
  11444. dow : 1, // Monday is the first day of the week.
  11445. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11446. }
  11447. });
  11448. //! moment.js locale configuration
  11449. //! locale : Thai [th]
  11450. //! author : Kridsada Thanabulpong : https://github.com/sirn
  11451. hooks.defineLocale('th', {
  11452. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  11453. monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  11454. monthsParseExact: true,
  11455. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  11456. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  11457. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  11458. weekdaysParseExact : true,
  11459. longDateFormat : {
  11460. LT : 'H:mm',
  11461. LTS : 'H:mm:ss',
  11462. L : 'DD/MM/YYYY',
  11463. LL : 'D MMMM YYYY',
  11464. LLL : 'D MMMM YYYY เวลา H:mm',
  11465. LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
  11466. },
  11467. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  11468. isPM: function (input) {
  11469. return input === 'หลังเที่ยง';
  11470. },
  11471. meridiem : function (hour, minute, isLower) {
  11472. if (hour < 12) {
  11473. return 'ก่อนเที่ยง';
  11474. } else {
  11475. return 'หลังเที่ยง';
  11476. }
  11477. },
  11478. calendar : {
  11479. sameDay : '[วันนี้ เวลา] LT',
  11480. nextDay : '[พรุ่งนี้ เวลา] LT',
  11481. nextWeek : 'dddd[หน้า เวลา] LT',
  11482. lastDay : '[เมื่อวานนี้ เวลา] LT',
  11483. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  11484. sameElse : 'L'
  11485. },
  11486. relativeTime : {
  11487. future : 'อีก %s',
  11488. past : '%sที่แล้ว',
  11489. s : 'ไม่กี่วินาที',
  11490. m : '1 นาที',
  11491. mm : '%d นาที',
  11492. h : '1 ชั่วโมง',
  11493. hh : '%d ชั่วโมง',
  11494. d : '1 วัน',
  11495. dd : '%d วัน',
  11496. M : '1 เดือน',
  11497. MM : '%d เดือน',
  11498. y : '1 ปี',
  11499. yy : '%d ปี'
  11500. }
  11501. });
  11502. //! moment.js locale configuration
  11503. //! locale : Tagalog (Philippines) [tl-ph]
  11504. //! author : Dan Hagman : https://github.com/hagmandan
  11505. hooks.defineLocale('tl-ph', {
  11506. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  11507. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  11508. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  11509. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  11510. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  11511. longDateFormat : {
  11512. LT : 'HH:mm',
  11513. LTS : 'HH:mm:ss',
  11514. L : 'MM/D/YYYY',
  11515. LL : 'MMMM D, YYYY',
  11516. LLL : 'MMMM D, YYYY HH:mm',
  11517. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  11518. },
  11519. calendar : {
  11520. sameDay: 'LT [ngayong araw]',
  11521. nextDay: '[Bukas ng] LT',
  11522. nextWeek: 'LT [sa susunod na] dddd',
  11523. lastDay: 'LT [kahapon]',
  11524. lastWeek: 'LT [noong nakaraang] dddd',
  11525. sameElse: 'L'
  11526. },
  11527. relativeTime : {
  11528. future : 'sa loob ng %s',
  11529. past : '%s ang nakalipas',
  11530. s : 'ilang segundo',
  11531. m : 'isang minuto',
  11532. mm : '%d minuto',
  11533. h : 'isang oras',
  11534. hh : '%d oras',
  11535. d : 'isang araw',
  11536. dd : '%d araw',
  11537. M : 'isang buwan',
  11538. MM : '%d buwan',
  11539. y : 'isang taon',
  11540. yy : '%d taon'
  11541. },
  11542. dayOfMonthOrdinalParse: /\d{1,2}/,
  11543. ordinal : function (number) {
  11544. return number;
  11545. },
  11546. week : {
  11547. dow : 1, // Monday is the first day of the week.
  11548. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11549. }
  11550. });
  11551. //! moment.js locale configuration
  11552. //! locale : Klingon [tlh]
  11553. //! author : Dominika Kruk : https://github.com/amaranthrose
  11554. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  11555. function translateFuture(output) {
  11556. var time = output;
  11557. time = (output.indexOf('jaj') !== -1) ?
  11558. time.slice(0, -3) + 'leS' :
  11559. (output.indexOf('jar') !== -1) ?
  11560. time.slice(0, -3) + 'waQ' :
  11561. (output.indexOf('DIS') !== -1) ?
  11562. time.slice(0, -3) + 'nem' :
  11563. time + ' pIq';
  11564. return time;
  11565. }
  11566. function translatePast(output) {
  11567. var time = output;
  11568. time = (output.indexOf('jaj') !== -1) ?
  11569. time.slice(0, -3) + 'Hu’' :
  11570. (output.indexOf('jar') !== -1) ?
  11571. time.slice(0, -3) + 'wen' :
  11572. (output.indexOf('DIS') !== -1) ?
  11573. time.slice(0, -3) + 'ben' :
  11574. time + ' ret';
  11575. return time;
  11576. }
  11577. function translate$9(number, withoutSuffix, string, isFuture) {
  11578. var numberNoun = numberAsNoun(number);
  11579. switch (string) {
  11580. case 'mm':
  11581. return numberNoun + ' tup';
  11582. case 'hh':
  11583. return numberNoun + ' rep';
  11584. case 'dd':
  11585. return numberNoun + ' jaj';
  11586. case 'MM':
  11587. return numberNoun + ' jar';
  11588. case 'yy':
  11589. return numberNoun + ' DIS';
  11590. }
  11591. }
  11592. function numberAsNoun(number) {
  11593. var hundred = Math.floor((number % 1000) / 100),
  11594. ten = Math.floor((number % 100) / 10),
  11595. one = number % 10,
  11596. word = '';
  11597. if (hundred > 0) {
  11598. word += numbersNouns[hundred] + 'vatlh';
  11599. }
  11600. if (ten > 0) {
  11601. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  11602. }
  11603. if (one > 0) {
  11604. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  11605. }
  11606. return (word === '') ? 'pagh' : word;
  11607. }
  11608. hooks.defineLocale('tlh', {
  11609. 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('_'),
  11610. 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('_'),
  11611. monthsParseExact : true,
  11612. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11613. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11614. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11615. longDateFormat : {
  11616. LT : 'HH:mm',
  11617. LTS : 'HH:mm:ss',
  11618. L : 'DD.MM.YYYY',
  11619. LL : 'D MMMM YYYY',
  11620. LLL : 'D MMMM YYYY HH:mm',
  11621. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11622. },
  11623. calendar : {
  11624. sameDay: '[DaHjaj] LT',
  11625. nextDay: '[wa’leS] LT',
  11626. nextWeek: 'LLL',
  11627. lastDay: '[wa’Hu’] LT',
  11628. lastWeek: 'LLL',
  11629. sameElse: 'L'
  11630. },
  11631. relativeTime : {
  11632. future : translateFuture,
  11633. past : translatePast,
  11634. s : 'puS lup',
  11635. m : 'wa’ tup',
  11636. mm : translate$9,
  11637. h : 'wa’ rep',
  11638. hh : translate$9,
  11639. d : 'wa’ jaj',
  11640. dd : translate$9,
  11641. M : 'wa’ jar',
  11642. MM : translate$9,
  11643. y : 'wa’ DIS',
  11644. yy : translate$9
  11645. },
  11646. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11647. ordinal : '%d.',
  11648. week : {
  11649. dow : 1, // Monday is the first day of the week.
  11650. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11651. }
  11652. });
  11653. //! moment.js locale configuration
  11654. //! locale : Turkish [tr]
  11655. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  11656. //! Burak Yiğit Kaya: https://github.com/BYK
  11657. var suffixes$3 = {
  11658. 1: '\'inci',
  11659. 5: '\'inci',
  11660. 8: '\'inci',
  11661. 70: '\'inci',
  11662. 80: '\'inci',
  11663. 2: '\'nci',
  11664. 7: '\'nci',
  11665. 20: '\'nci',
  11666. 50: '\'nci',
  11667. 3: '\'üncü',
  11668. 4: '\'üncü',
  11669. 100: '\'üncü',
  11670. 6: '\'ncı',
  11671. 9: '\'uncu',
  11672. 10: '\'uncu',
  11673. 30: '\'uncu',
  11674. 60: '\'ıncı',
  11675. 90: '\'ıncı'
  11676. };
  11677. hooks.defineLocale('tr', {
  11678. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  11679. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  11680. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  11681. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  11682. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  11683. longDateFormat : {
  11684. LT : 'HH:mm',
  11685. LTS : 'HH:mm:ss',
  11686. L : 'DD.MM.YYYY',
  11687. LL : 'D MMMM YYYY',
  11688. LLL : 'D MMMM YYYY HH:mm',
  11689. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11690. },
  11691. calendar : {
  11692. sameDay : '[bugün saat] LT',
  11693. nextDay : '[yarın saat] LT',
  11694. nextWeek : '[haftaya] dddd [saat] LT',
  11695. lastDay : '[dün] LT',
  11696. lastWeek : '[geçen hafta] dddd [saat] LT',
  11697. sameElse : 'L'
  11698. },
  11699. relativeTime : {
  11700. future : '%s sonra',
  11701. past : '%s önce',
  11702. s : 'birkaç saniye',
  11703. m : 'bir dakika',
  11704. mm : '%d dakika',
  11705. h : 'bir saat',
  11706. hh : '%d saat',
  11707. d : 'bir gün',
  11708. dd : '%d gün',
  11709. M : 'bir ay',
  11710. MM : '%d ay',
  11711. y : 'bir yıl',
  11712. yy : '%d yıl'
  11713. },
  11714. dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  11715. ordinal : function (number) {
  11716. if (number === 0) { // special case for zero
  11717. return number + '\'ıncı';
  11718. }
  11719. var a = number % 10,
  11720. b = number % 100 - a,
  11721. c = number >= 100 ? 100 : null;
  11722. return number + (suffixes$3[a] || suffixes$3[b] || suffixes$3[c]);
  11723. },
  11724. week : {
  11725. dow : 1, // Monday is the first day of the week.
  11726. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11727. }
  11728. });
  11729. //! moment.js locale configuration
  11730. //! locale : Talossan [tzl]
  11731. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  11732. //! author : Iustì Canun
  11733. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  11734. // This is currently too difficult (maybe even impossible) to add.
  11735. hooks.defineLocale('tzl', {
  11736. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  11737. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  11738. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  11739. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  11740. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  11741. longDateFormat : {
  11742. LT : 'HH.mm',
  11743. LTS : 'HH.mm.ss',
  11744. L : 'DD.MM.YYYY',
  11745. LL : 'D. MMMM [dallas] YYYY',
  11746. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  11747. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  11748. },
  11749. meridiemParse: /d\'o|d\'a/i,
  11750. isPM : function (input) {
  11751. return 'd\'o' === input.toLowerCase();
  11752. },
  11753. meridiem : function (hours, minutes, isLower) {
  11754. if (hours > 11) {
  11755. return isLower ? 'd\'o' : 'D\'O';
  11756. } else {
  11757. return isLower ? 'd\'a' : 'D\'A';
  11758. }
  11759. },
  11760. calendar : {
  11761. sameDay : '[oxhi à] LT',
  11762. nextDay : '[demà à] LT',
  11763. nextWeek : 'dddd [à] LT',
  11764. lastDay : '[ieiri à] LT',
  11765. lastWeek : '[sür el] dddd [lasteu à] LT',
  11766. sameElse : 'L'
  11767. },
  11768. relativeTime : {
  11769. future : 'osprei %s',
  11770. past : 'ja%s',
  11771. s : processRelativeTime$7,
  11772. m : processRelativeTime$7,
  11773. mm : processRelativeTime$7,
  11774. h : processRelativeTime$7,
  11775. hh : processRelativeTime$7,
  11776. d : processRelativeTime$7,
  11777. dd : processRelativeTime$7,
  11778. M : processRelativeTime$7,
  11779. MM : processRelativeTime$7,
  11780. y : processRelativeTime$7,
  11781. yy : processRelativeTime$7
  11782. },
  11783. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11784. ordinal : '%d.',
  11785. week : {
  11786. dow : 1, // Monday is the first day of the week.
  11787. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11788. }
  11789. });
  11790. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  11791. var format = {
  11792. 's': ['viensas secunds', '\'iensas secunds'],
  11793. 'm': ['\'n míut', '\'iens míut'],
  11794. 'mm': [number + ' míuts', '' + number + ' míuts'],
  11795. 'h': ['\'n þora', '\'iensa þora'],
  11796. 'hh': [number + ' þoras', '' + number + ' þoras'],
  11797. 'd': ['\'n ziua', '\'iensa ziua'],
  11798. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  11799. 'M': ['\'n mes', '\'iens mes'],
  11800. 'MM': [number + ' mesen', '' + number + ' mesen'],
  11801. 'y': ['\'n ar', '\'iens ar'],
  11802. 'yy': [number + ' ars', '' + number + ' ars']
  11803. };
  11804. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  11805. }
  11806. //! moment.js locale configuration
  11807. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  11808. //! author : Abdel Said : https://github.com/abdelsaid
  11809. hooks.defineLocale('tzm-latn', {
  11810. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  11811. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  11812. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  11813. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  11814. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  11815. longDateFormat : {
  11816. LT : 'HH:mm',
  11817. LTS : 'HH:mm:ss',
  11818. L : 'DD/MM/YYYY',
  11819. LL : 'D MMMM YYYY',
  11820. LLL : 'D MMMM YYYY HH:mm',
  11821. LLLL : 'dddd D MMMM YYYY HH:mm'
  11822. },
  11823. calendar : {
  11824. sameDay: '[asdkh g] LT',
  11825. nextDay: '[aska g] LT',
  11826. nextWeek: 'dddd [g] LT',
  11827. lastDay: '[assant g] LT',
  11828. lastWeek: 'dddd [g] LT',
  11829. sameElse: 'L'
  11830. },
  11831. relativeTime : {
  11832. future : 'dadkh s yan %s',
  11833. past : 'yan %s',
  11834. s : 'imik',
  11835. m : 'minuḍ',
  11836. mm : '%d minuḍ',
  11837. h : 'saɛa',
  11838. hh : '%d tassaɛin',
  11839. d : 'ass',
  11840. dd : '%d ossan',
  11841. M : 'ayowr',
  11842. MM : '%d iyyirn',
  11843. y : 'asgas',
  11844. yy : '%d isgasn'
  11845. },
  11846. week : {
  11847. dow : 6, // Saturday is the first day of the week.
  11848. doy : 12 // The week that contains Jan 1st is the first week of the year.
  11849. }
  11850. });
  11851. //! moment.js locale configuration
  11852. //! locale : Central Atlas Tamazight [tzm]
  11853. //! author : Abdel Said : https://github.com/abdelsaid
  11854. hooks.defineLocale('tzm', {
  11855. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  11856. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  11857. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  11858. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  11859. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  11860. longDateFormat : {
  11861. LT : 'HH:mm',
  11862. LTS: 'HH:mm:ss',
  11863. L : 'DD/MM/YYYY',
  11864. LL : 'D MMMM YYYY',
  11865. LLL : 'D MMMM YYYY HH:mm',
  11866. LLLL : 'dddd D MMMM YYYY HH:mm'
  11867. },
  11868. calendar : {
  11869. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  11870. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  11871. nextWeek: 'dddd [ⴴ] LT',
  11872. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  11873. lastWeek: 'dddd [ⴴ] LT',
  11874. sameElse: 'L'
  11875. },
  11876. relativeTime : {
  11877. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  11878. past : 'ⵢⴰⵏ %s',
  11879. s : 'ⵉⵎⵉⴽ',
  11880. m : 'ⵎⵉⵏⵓⴺ',
  11881. mm : '%d ⵎⵉⵏⵓⴺ',
  11882. h : 'ⵙⴰⵄⴰ',
  11883. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  11884. d : 'ⴰⵙⵙ',
  11885. dd : '%d oⵙⵙⴰⵏ',
  11886. M : 'ⴰⵢoⵓⵔ',
  11887. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  11888. y : 'ⴰⵙⴳⴰⵙ',
  11889. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  11890. },
  11891. week : {
  11892. dow : 6, // Saturday is the first day of the week.
  11893. doy : 12 // The week that contains Jan 1st is the first week of the year.
  11894. }
  11895. });
  11896. //! moment.js locale configuration
  11897. //! locale : Ukrainian [uk]
  11898. //! author : zemlanin : https://github.com/zemlanin
  11899. //! Author : Menelion Elensúle : https://github.com/Oire
  11900. function plural$6(word, num) {
  11901. var forms = word.split('_');
  11902. 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]);
  11903. }
  11904. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  11905. var format = {
  11906. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  11907. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  11908. 'dd': 'день_дні_днів',
  11909. 'MM': 'місяць_місяці_місяців',
  11910. 'yy': 'рік_роки_років'
  11911. };
  11912. if (key === 'm') {
  11913. return withoutSuffix ? 'хвилина' : 'хвилину';
  11914. }
  11915. else if (key === 'h') {
  11916. return withoutSuffix ? 'година' : 'годину';
  11917. }
  11918. else {
  11919. return number + ' ' + plural$6(format[key], +number);
  11920. }
  11921. }
  11922. function weekdaysCaseReplace(m, format) {
  11923. var weekdays = {
  11924. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  11925. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  11926. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  11927. };
  11928. if (!m) {
  11929. return weekdays['nominative'];
  11930. }
  11931. var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  11932. 'accusative' :
  11933. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  11934. 'genitive' :
  11935. 'nominative');
  11936. return weekdays[nounCase][m.day()];
  11937. }
  11938. function processHoursFunction(str) {
  11939. return function () {
  11940. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  11941. };
  11942. }
  11943. hooks.defineLocale('uk', {
  11944. months : {
  11945. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  11946. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  11947. },
  11948. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  11949. weekdays : weekdaysCaseReplace,
  11950. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  11951. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  11952. longDateFormat : {
  11953. LT : 'HH:mm',
  11954. LTS : 'HH:mm:ss',
  11955. L : 'DD.MM.YYYY',
  11956. LL : 'D MMMM YYYY р.',
  11957. LLL : 'D MMMM YYYY р., HH:mm',
  11958. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  11959. },
  11960. calendar : {
  11961. sameDay: processHoursFunction('[Сьогодні '),
  11962. nextDay: processHoursFunction('[Завтра '),
  11963. lastDay: processHoursFunction('[Вчора '),
  11964. nextWeek: processHoursFunction('[У] dddd ['),
  11965. lastWeek: function () {
  11966. switch (this.day()) {
  11967. case 0:
  11968. case 3:
  11969. case 5:
  11970. case 6:
  11971. return processHoursFunction('[Минулої] dddd [').call(this);
  11972. case 1:
  11973. case 2:
  11974. case 4:
  11975. return processHoursFunction('[Минулого] dddd [').call(this);
  11976. }
  11977. },
  11978. sameElse: 'L'
  11979. },
  11980. relativeTime : {
  11981. future : 'за %s',
  11982. past : '%s тому',
  11983. s : 'декілька секунд',
  11984. m : relativeTimeWithPlural$4,
  11985. mm : relativeTimeWithPlural$4,
  11986. h : 'годину',
  11987. hh : relativeTimeWithPlural$4,
  11988. d : 'день',
  11989. dd : relativeTimeWithPlural$4,
  11990. M : 'місяць',
  11991. MM : relativeTimeWithPlural$4,
  11992. y : 'рік',
  11993. yy : relativeTimeWithPlural$4
  11994. },
  11995. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  11996. meridiemParse: /ночі|ранку|дня|вечора/,
  11997. isPM: function (input) {
  11998. return /^(дня|вечора)$/.test(input);
  11999. },
  12000. meridiem : function (hour, minute, isLower) {
  12001. if (hour < 4) {
  12002. return 'ночі';
  12003. } else if (hour < 12) {
  12004. return 'ранку';
  12005. } else if (hour < 17) {
  12006. return 'дня';
  12007. } else {
  12008. return 'вечора';
  12009. }
  12010. },
  12011. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  12012. ordinal: function (number, period) {
  12013. switch (period) {
  12014. case 'M':
  12015. case 'd':
  12016. case 'DDD':
  12017. case 'w':
  12018. case 'W':
  12019. return number + '-й';
  12020. case 'D':
  12021. return number + '-го';
  12022. default:
  12023. return number;
  12024. }
  12025. },
  12026. week : {
  12027. dow : 1, // Monday is the first day of the week.
  12028. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12029. }
  12030. });
  12031. //! moment.js locale configuration
  12032. //! locale : Urdu [ur]
  12033. //! author : Sawood Alam : https://github.com/ibnesayeed
  12034. //! author : Zack : https://github.com/ZackVision
  12035. var months$8 = [
  12036. 'جنوری',
  12037. 'فروری',
  12038. 'مارچ',
  12039. 'اپریل',
  12040. 'مئی',
  12041. 'جون',
  12042. 'جولائی',
  12043. 'اگست',
  12044. 'ستمبر',
  12045. 'اکتوبر',
  12046. 'نومبر',
  12047. 'دسمبر'
  12048. ];
  12049. var days$2 = [
  12050. 'اتوار',
  12051. 'پیر',
  12052. 'منگل',
  12053. 'بدھ',
  12054. 'جمعرات',
  12055. 'جمعہ',
  12056. 'ہفتہ'
  12057. ];
  12058. hooks.defineLocale('ur', {
  12059. months : months$8,
  12060. monthsShort : months$8,
  12061. weekdays : days$2,
  12062. weekdaysShort : days$2,
  12063. weekdaysMin : days$2,
  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. meridiemParse: /صبح|شام/,
  12073. isPM : function (input) {
  12074. return 'شام' === input;
  12075. },
  12076. meridiem : function (hour, minute, isLower) {
  12077. if (hour < 12) {
  12078. return 'صبح';
  12079. }
  12080. return 'شام';
  12081. },
  12082. calendar : {
  12083. sameDay : '[آج بوقت] LT',
  12084. nextDay : '[کل بوقت] LT',
  12085. nextWeek : 'dddd [بوقت] LT',
  12086. lastDay : '[گذشتہ روز بوقت] LT',
  12087. lastWeek : '[گذشتہ] dddd [بوقت] LT',
  12088. sameElse : 'L'
  12089. },
  12090. relativeTime : {
  12091. future : '%s بعد',
  12092. past : '%s قبل',
  12093. s : 'چند سیکنڈ',
  12094. m : 'ایک منٹ',
  12095. mm : '%d منٹ',
  12096. h : 'ایک گھنٹہ',
  12097. hh : '%d گھنٹے',
  12098. d : 'ایک دن',
  12099. dd : '%d دن',
  12100. M : 'ایک ماہ',
  12101. MM : '%d ماہ',
  12102. y : 'ایک سال',
  12103. yy : '%d سال'
  12104. },
  12105. preparse: function (string) {
  12106. return string.replace(/،/g, ',');
  12107. },
  12108. postformat: function (string) {
  12109. return string.replace(/,/g, '،');
  12110. },
  12111. week : {
  12112. dow : 1, // Monday is the first day of the week.
  12113. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12114. }
  12115. });
  12116. //! moment.js locale configuration
  12117. //! locale : Uzbek Latin [uz-latn]
  12118. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  12119. hooks.defineLocale('uz-latn', {
  12120. months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  12121. monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  12122. weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  12123. weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  12124. weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  12125. longDateFormat : {
  12126. LT : 'HH:mm',
  12127. LTS : 'HH:mm:ss',
  12128. L : 'DD/MM/YYYY',
  12129. LL : 'D MMMM YYYY',
  12130. LLL : 'D MMMM YYYY HH:mm',
  12131. LLLL : 'D MMMM YYYY, dddd HH:mm'
  12132. },
  12133. calendar : {
  12134. sameDay : '[Bugun soat] LT [da]',
  12135. nextDay : '[Ertaga] LT [da]',
  12136. nextWeek : 'dddd [kuni soat] LT [da]',
  12137. lastDay : '[Kecha soat] LT [da]',
  12138. lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
  12139. sameElse : 'L'
  12140. },
  12141. relativeTime : {
  12142. future : 'Yaqin %s ichida',
  12143. past : 'Bir necha %s oldin',
  12144. s : 'soniya',
  12145. m : 'bir daqiqa',
  12146. mm : '%d daqiqa',
  12147. h : 'bir soat',
  12148. hh : '%d soat',
  12149. d : 'bir kun',
  12150. dd : '%d kun',
  12151. M : 'bir oy',
  12152. MM : '%d oy',
  12153. y : 'bir yil',
  12154. yy : '%d yil'
  12155. },
  12156. week : {
  12157. dow : 1, // Monday is the first day of the week.
  12158. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12159. }
  12160. });
  12161. //! moment.js locale configuration
  12162. //! locale : Uzbek [uz]
  12163. //! author : Sardor Muminov : https://github.com/muminoff
  12164. hooks.defineLocale('uz', {
  12165. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  12166. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  12167. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  12168. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  12169. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  12170. longDateFormat : {
  12171. LT : 'HH:mm',
  12172. LTS : 'HH:mm:ss',
  12173. L : 'DD/MM/YYYY',
  12174. LL : 'D MMMM YYYY',
  12175. LLL : 'D MMMM YYYY HH:mm',
  12176. LLLL : 'D MMMM YYYY, dddd HH:mm'
  12177. },
  12178. calendar : {
  12179. sameDay : '[Бугун соат] LT [да]',
  12180. nextDay : '[Эртага] LT [да]',
  12181. nextWeek : 'dddd [куни соат] LT [да]',
  12182. lastDay : '[Кеча соат] LT [да]',
  12183. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  12184. sameElse : 'L'
  12185. },
  12186. relativeTime : {
  12187. future : 'Якин %s ичида',
  12188. past : 'Бир неча %s олдин',
  12189. s : 'фурсат',
  12190. m : 'бир дакика',
  12191. mm : '%d дакика',
  12192. h : 'бир соат',
  12193. hh : '%d соат',
  12194. d : 'бир кун',
  12195. dd : '%d кун',
  12196. M : 'бир ой',
  12197. MM : '%d ой',
  12198. y : 'бир йил',
  12199. yy : '%d йил'
  12200. },
  12201. week : {
  12202. dow : 1, // Monday is the first day of the week.
  12203. doy : 7 // The week that contains Jan 4th is the first week of the year.
  12204. }
  12205. });
  12206. //! moment.js locale configuration
  12207. //! locale : Vietnamese [vi]
  12208. //! author : Bang Nguyen : https://github.com/bangnk
  12209. hooks.defineLocale('vi', {
  12210. 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('_'),
  12211. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  12212. monthsParseExact : true,
  12213. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  12214. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  12215. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  12216. weekdaysParseExact : true,
  12217. meridiemParse: /sa|ch/i,
  12218. isPM : function (input) {
  12219. return /^ch$/i.test(input);
  12220. },
  12221. meridiem : function (hours, minutes, isLower) {
  12222. if (hours < 12) {
  12223. return isLower ? 'sa' : 'SA';
  12224. } else {
  12225. return isLower ? 'ch' : 'CH';
  12226. }
  12227. },
  12228. longDateFormat : {
  12229. LT : 'HH:mm',
  12230. LTS : 'HH:mm:ss',
  12231. L : 'DD/MM/YYYY',
  12232. LL : 'D MMMM [năm] YYYY',
  12233. LLL : 'D MMMM [năm] YYYY HH:mm',
  12234. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  12235. l : 'DD/M/YYYY',
  12236. ll : 'D MMM YYYY',
  12237. lll : 'D MMM YYYY HH:mm',
  12238. llll : 'ddd, D MMM YYYY HH:mm'
  12239. },
  12240. calendar : {
  12241. sameDay: '[Hôm nay lúc] LT',
  12242. nextDay: '[Ngày mai lúc] LT',
  12243. nextWeek: 'dddd [tuần tới lúc] LT',
  12244. lastDay: '[Hôm qua lúc] LT',
  12245. lastWeek: 'dddd [tuần rồi lúc] LT',
  12246. sameElse: 'L'
  12247. },
  12248. relativeTime : {
  12249. future : '%s tới',
  12250. past : '%s trước',
  12251. s : 'vài giây',
  12252. m : 'một phút',
  12253. mm : '%d phút',
  12254. h : 'một giờ',
  12255. hh : '%d giờ',
  12256. d : 'một ngày',
  12257. dd : '%d ngày',
  12258. M : 'một tháng',
  12259. MM : '%d tháng',
  12260. y : 'một năm',
  12261. yy : '%d năm'
  12262. },
  12263. dayOfMonthOrdinalParse: /\d{1,2}/,
  12264. ordinal : function (number) {
  12265. return number;
  12266. },
  12267. week : {
  12268. dow : 1, // Monday is the first day of the week.
  12269. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12270. }
  12271. });
  12272. //! moment.js locale configuration
  12273. //! locale : Pseudo [x-pseudo]
  12274. //! author : Andrew Hood : https://github.com/andrewhood125
  12275. hooks.defineLocale('x-pseudo', {
  12276. 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('_'),
  12277. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  12278. monthsParseExact : true,
  12279. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  12280. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  12281. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  12282. weekdaysParseExact : true,
  12283. longDateFormat : {
  12284. LT : 'HH:mm',
  12285. L : 'DD/MM/YYYY',
  12286. LL : 'D MMMM YYYY',
  12287. LLL : 'D MMMM YYYY HH:mm',
  12288. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12289. },
  12290. calendar : {
  12291. sameDay : '[T~ódá~ý át] LT',
  12292. nextDay : '[T~ómó~rró~w át] LT',
  12293. nextWeek : 'dddd [át] LT',
  12294. lastDay : '[Ý~ést~érdá~ý át] LT',
  12295. lastWeek : '[L~ást] dddd [át] LT',
  12296. sameElse : 'L'
  12297. },
  12298. relativeTime : {
  12299. future : 'í~ñ %s',
  12300. past : '%s á~gó',
  12301. s : 'á ~féw ~sécó~ñds',
  12302. m : 'á ~míñ~úté',
  12303. mm : '%d m~íñú~tés',
  12304. h : 'á~ñ hó~úr',
  12305. hh : '%d h~óúrs',
  12306. d : 'á ~dáý',
  12307. dd : '%d d~áýs',
  12308. M : 'á ~móñ~th',
  12309. MM : '%d m~óñt~hs',
  12310. y : 'á ~ýéár',
  12311. yy : '%d ý~éárs'
  12312. },
  12313. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  12314. ordinal : function (number) {
  12315. var b = number % 10,
  12316. output = (~~(number % 100 / 10) === 1) ? 'th' :
  12317. (b === 1) ? 'st' :
  12318. (b === 2) ? 'nd' :
  12319. (b === 3) ? 'rd' : 'th';
  12320. return number + output;
  12321. },
  12322. week : {
  12323. dow : 1, // Monday is the first day of the week.
  12324. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12325. }
  12326. });
  12327. //! moment.js locale configuration
  12328. //! locale : Yoruba Nigeria [yo]
  12329. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  12330. hooks.defineLocale('yo', {
  12331. months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  12332. monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  12333. weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  12334. weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  12335. weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  12336. longDateFormat : {
  12337. LT : 'h:mm A',
  12338. LTS : 'h:mm:ss A',
  12339. L : 'DD/MM/YYYY',
  12340. LL : 'D MMMM YYYY',
  12341. LLL : 'D MMMM YYYY h:mm A',
  12342. LLLL : 'dddd, D MMMM YYYY h:mm A'
  12343. },
  12344. calendar : {
  12345. sameDay : '[Ònì ni] LT',
  12346. nextDay : '[Ọ̀la ni] LT',
  12347. nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
  12348. lastDay : '[Àna ni] LT',
  12349. lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  12350. sameElse : 'L'
  12351. },
  12352. relativeTime : {
  12353. future : 'ní %s',
  12354. past : '%s kọjá',
  12355. s : 'ìsẹjú aayá die',
  12356. m : 'ìsẹjú kan',
  12357. mm : 'ìsẹjú %d',
  12358. h : 'wákati kan',
  12359. hh : 'wákati %d',
  12360. d : 'ọjọ́ kan',
  12361. dd : 'ọjọ́ %d',
  12362. M : 'osù kan',
  12363. MM : 'osù %d',
  12364. y : 'ọdún kan',
  12365. yy : 'ọdún %d'
  12366. },
  12367. dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
  12368. ordinal : 'ọjọ́ %d',
  12369. week : {
  12370. dow : 1, // Monday is the first day of the week.
  12371. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12372. }
  12373. });
  12374. //! moment.js locale configuration
  12375. //! locale : Chinese (China) [zh-cn]
  12376. //! author : suupic : https://github.com/suupic
  12377. //! author : Zeno Zeng : https://github.com/zenozeng
  12378. hooks.defineLocale('zh-cn', {
  12379. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12380. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12381. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12382. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  12383. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  12384. longDateFormat : {
  12385. LT : 'HH:mm',
  12386. LTS : 'HH:mm:ss',
  12387. L : 'YYYY年MMMD日',
  12388. LL : 'YYYY年MMMD日',
  12389. LLL : 'YYYY年MMMD日Ah点mm分',
  12390. LLLL : 'YYYY年MMMD日ddddAh点mm分',
  12391. l : 'YYYY年MMMD日',
  12392. ll : 'YYYY年MMMD日',
  12393. lll : 'YYYY年MMMD日 HH:mm',
  12394. llll : 'YYYY年MMMD日dddd HH:mm'
  12395. },
  12396. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12397. meridiemHour: function (hour, meridiem) {
  12398. if (hour === 12) {
  12399. hour = 0;
  12400. }
  12401. if (meridiem === '凌晨' || meridiem === '早上' ||
  12402. meridiem === '上午') {
  12403. return hour;
  12404. } else if (meridiem === '下午' || meridiem === '晚上') {
  12405. return hour + 12;
  12406. } else {
  12407. // '中午'
  12408. return hour >= 11 ? hour : hour + 12;
  12409. }
  12410. },
  12411. meridiem : function (hour, minute, isLower) {
  12412. var hm = hour * 100 + minute;
  12413. if (hm < 600) {
  12414. return '凌晨';
  12415. } else if (hm < 900) {
  12416. return '早上';
  12417. } else if (hm < 1130) {
  12418. return '上午';
  12419. } else if (hm < 1230) {
  12420. return '中午';
  12421. } else if (hm < 1800) {
  12422. return '下午';
  12423. } else {
  12424. return '晚上';
  12425. }
  12426. },
  12427. calendar : {
  12428. sameDay : '[今天]LT',
  12429. nextDay : '[明天]LT',
  12430. nextWeek : '[下]ddddLT',
  12431. lastDay : '[昨天]LT',
  12432. lastWeek : '[上]ddddLT',
  12433. sameElse : 'L'
  12434. },
  12435. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  12436. ordinal : function (number, period) {
  12437. switch (period) {
  12438. case 'd':
  12439. case 'D':
  12440. case 'DDD':
  12441. return number + '日';
  12442. case 'M':
  12443. return number + '月';
  12444. case 'w':
  12445. case 'W':
  12446. return number + '周';
  12447. default:
  12448. return number;
  12449. }
  12450. },
  12451. relativeTime : {
  12452. future : '%s内',
  12453. past : '%s前',
  12454. s : '几秒',
  12455. m : '1 分钟',
  12456. mm : '%d 分钟',
  12457. h : '1 小时',
  12458. hh : '%d 小时',
  12459. d : '1 天',
  12460. dd : '%d 天',
  12461. M : '1 个月',
  12462. MM : '%d 个月',
  12463. y : '1 年',
  12464. yy : '%d 年'
  12465. },
  12466. week : {
  12467. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  12468. dow : 1, // Monday is the first day of the week.
  12469. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12470. }
  12471. });
  12472. //! moment.js locale configuration
  12473. //! locale : Chinese (Hong Kong) [zh-hk]
  12474. //! author : Ben : https://github.com/ben-lin
  12475. //! author : Chris Lam : https://github.com/hehachris
  12476. //! author : Konstantin : https://github.com/skfd
  12477. hooks.defineLocale('zh-hk', {
  12478. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12479. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12480. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12481. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  12482. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  12483. longDateFormat : {
  12484. LT : 'HH:mm',
  12485. LTS : 'HH:mm:ss',
  12486. L : 'YYYY年MMMD日',
  12487. LL : 'YYYY年MMMD日',
  12488. LLL : 'YYYY年MMMD日 HH:mm',
  12489. LLLL : 'YYYY年MMMD日dddd HH:mm',
  12490. l : 'YYYY年MMMD日',
  12491. ll : 'YYYY年MMMD日',
  12492. lll : 'YYYY年MMMD日 HH:mm',
  12493. llll : 'YYYY年MMMD日dddd HH:mm'
  12494. },
  12495. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12496. meridiemHour : function (hour, meridiem) {
  12497. if (hour === 12) {
  12498. hour = 0;
  12499. }
  12500. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  12501. return hour;
  12502. } else if (meridiem === '中午') {
  12503. return hour >= 11 ? hour : hour + 12;
  12504. } else if (meridiem === '下午' || meridiem === '晚上') {
  12505. return hour + 12;
  12506. }
  12507. },
  12508. meridiem : function (hour, minute, isLower) {
  12509. var hm = hour * 100 + minute;
  12510. if (hm < 600) {
  12511. return '凌晨';
  12512. } else if (hm < 900) {
  12513. return '早上';
  12514. } else if (hm < 1130) {
  12515. return '上午';
  12516. } else if (hm < 1230) {
  12517. return '中午';
  12518. } else if (hm < 1800) {
  12519. return '下午';
  12520. } else {
  12521. return '晚上';
  12522. }
  12523. },
  12524. calendar : {
  12525. sameDay : '[今天]LT',
  12526. nextDay : '[明天]LT',
  12527. nextWeek : '[下]ddddLT',
  12528. lastDay : '[昨天]LT',
  12529. lastWeek : '[上]ddddLT',
  12530. sameElse : 'L'
  12531. },
  12532. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  12533. ordinal : function (number, period) {
  12534. switch (period) {
  12535. case 'd' :
  12536. case 'D' :
  12537. case 'DDD' :
  12538. return number + '日';
  12539. case 'M' :
  12540. return number + '月';
  12541. case 'w' :
  12542. case 'W' :
  12543. return number + '週';
  12544. default :
  12545. return number;
  12546. }
  12547. },
  12548. relativeTime : {
  12549. future : '%s內',
  12550. past : '%s前',
  12551. s : '幾秒',
  12552. m : '1 分鐘',
  12553. mm : '%d 分鐘',
  12554. h : '1 小時',
  12555. hh : '%d 小時',
  12556. d : '1 天',
  12557. dd : '%d 天',
  12558. M : '1 個月',
  12559. MM : '%d 個月',
  12560. y : '1 年',
  12561. yy : '%d 年'
  12562. }
  12563. });
  12564. //! moment.js locale configuration
  12565. //! locale : Chinese (Taiwan) [zh-tw]
  12566. //! author : Ben : https://github.com/ben-lin
  12567. //! author : Chris Lam : https://github.com/hehachris
  12568. hooks.defineLocale('zh-tw', {
  12569. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12570. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12571. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12572. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  12573. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  12574. longDateFormat : {
  12575. LT : 'HH:mm',
  12576. LTS : 'HH:mm:ss',
  12577. L : 'YYYY年MMMD日',
  12578. LL : 'YYYY年MMMD日',
  12579. LLL : 'YYYY年MMMD日 HH:mm',
  12580. LLLL : 'YYYY年MMMD日dddd HH:mm',
  12581. l : 'YYYY年MMMD日',
  12582. ll : 'YYYY年MMMD日',
  12583. lll : 'YYYY年MMMD日 HH:mm',
  12584. llll : 'YYYY年MMMD日dddd HH:mm'
  12585. },
  12586. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12587. meridiemHour : function (hour, meridiem) {
  12588. if (hour === 12) {
  12589. hour = 0;
  12590. }
  12591. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  12592. return hour;
  12593. } else if (meridiem === '中午') {
  12594. return hour >= 11 ? hour : hour + 12;
  12595. } else if (meridiem === '下午' || meridiem === '晚上') {
  12596. return hour + 12;
  12597. }
  12598. },
  12599. meridiem : function (hour, minute, isLower) {
  12600. var hm = hour * 100 + minute;
  12601. if (hm < 600) {
  12602. return '凌晨';
  12603. } else if (hm < 900) {
  12604. return '早上';
  12605. } else if (hm < 1130) {
  12606. return '上午';
  12607. } else if (hm < 1230) {
  12608. return '中午';
  12609. } else if (hm < 1800) {
  12610. return '下午';
  12611. } else {
  12612. return '晚上';
  12613. }
  12614. },
  12615. calendar : {
  12616. sameDay : '[今天]LT',
  12617. nextDay : '[明天]LT',
  12618. nextWeek : '[下]ddddLT',
  12619. lastDay : '[昨天]LT',
  12620. lastWeek : '[上]ddddLT',
  12621. sameElse : 'L'
  12622. },
  12623. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  12624. ordinal : function (number, period) {
  12625. switch (period) {
  12626. case 'd' :
  12627. case 'D' :
  12628. case 'DDD' :
  12629. return number + '日';
  12630. case 'M' :
  12631. return number + '月';
  12632. case 'w' :
  12633. case 'W' :
  12634. return number + '週';
  12635. default :
  12636. return number;
  12637. }
  12638. },
  12639. relativeTime : {
  12640. future : '%s內',
  12641. past : '%s前',
  12642. s : '幾秒',
  12643. m : '1 分鐘',
  12644. mm : '%d 分鐘',
  12645. h : '1 小時',
  12646. hh : '%d 小時',
  12647. d : '1 天',
  12648. dd : '%d 天',
  12649. M : '1 個月',
  12650. MM : '%d 個月',
  12651. y : '1 年',
  12652. yy : '%d 年'
  12653. }
  12654. });
  12655. hooks.locale('en');
  12656. return hooks;
  12657. })));