Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-date-object

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-date-object - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

2

dist/index.js

@@ -1,1 +0,1 @@

function e(a){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function a(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],s=!0,n=!1,l=void 0;try{for(var o,r=e[Symbol.iterator]();!(s=(o=r.next()).done)&&(t.push(o.value),!a||t.length!==a);s=!0);}catch(e){n=!0,l=e}finally{try{s||null==r.return||r.return()}finally{if(n)throw l}}return t}(e,a)||s(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,a){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=s(e))||a&&e&&"number"==typeof e.length){t&&(e=t);var n=0,l=function(){};return{s:l,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,h=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return r=e.done,e},e:function(e){h=!0,o=e},f:function(){try{r||null==t.return||t.return()}finally{if(h)throw o}}}}function s(e,a){if(e){if("string"==typeof e)return n(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,a):void 0}}function n(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,s=new Array(a);t<a;t++)s[t]=e[t];return s}function l(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);a&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,s)}return t}function o(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?l(Object(t),!0).forEach((function(a){h(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function r(e,a){for(var t=0;t<a.length;t++){var s=a[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function h(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function i(e,a){var t=a.get(e);if(!t)throw new TypeError("attempted to get private field on non-instance");return t.get?t.get.call(e):t.value}function c(e,a,t){var s=a.get(e);if(!s)throw new TypeError("attempted to set private field on non-instance");if(s.set)s.set.call(e,t);else{if(!s.writable)throw new TypeError("attempted to set read only private field");s.value=t}return t}var m=new WeakMap,u=new WeakMap,N=new WeakMap,d=new WeakMap,f=new WeakMap,A=new WeakMap,y=new WeakMap,v=new WeakMap,g=new WeakMap,I=new WeakMap,b=new WeakMap,k=new WeakMap,p=new WeakMap,w=new WeakMap,R=new WeakMap,E=new WeakMap,F=new WeakMap,D=new WeakMap,H=new WeakMap,M=new WeakMap,S=new WeakMap,O=new WeakMap,x=new WeakMap,Y=new WeakMap,W=new WeakMap,C=new WeakMap,L=function(){function s(e){var a,t,n,l,r,L,j,P,G,B,T,J,U,V,z,K,$,Q,_,Z,q,X,ee,ae,te,se,ne,le,oe,re,he,ie,ce,me,ue,Ne,de,fe,Ae,ye,ve,ge,Ie,be,ke,pe,we,Re,Ee,Fe,De,He,Me,Se,Oe,xe,Ye,We,Ce,Le,je,Pe,Ge,Be,Te,Je,Ue,Ve,ze,Ke,$e,Qe,_e,Ze,qe,Xe,ea,aa,ta,sa,na,la,oa=this;!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,s),m.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),N.set(this,{writable:!0,value:void 0}),d.set(this,{writable:!0,value:void 0}),f.set(this,{writable:!0,value:void 0}),A.set(this,{writable:!0,value:void 0}),y.set(this,{writable:!0,value:void 0}),v.set(this,{writable:!0,value:void 0}),g.set(this,{writable:!0,value:s.locals.EN}),I.set(this,{writable:!0,value:s.calendars.GREGORIAN}),b.set(this,{writable:!0,value:!1}),k.set(this,{writable:!0,value:[]}),p.set(this,{writable:!0,value:{}}),w.set(this,{writable:!0,value:/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ$/}),R.set(this,{writable:!0,value:[]}),E.set(this,{writable:!0,value:{YYYY:function(e){return c(oa,m,i(oa,C).call(oa,e))},YY:function(e){switch(i(oa,I)){case s.calendars.PERSIAN:e="13"+e;break;case s.calendars.ARABIC:e="14"+e;break;default:e="20"+e}c(oa,m,i(oa,C).call(oa,e))},MMMM:function(e){return c(oa,u,oa.months.findIndex((function(a){return e.toLowerCase()===a.name.toLowerCase()})))},MMM:function(e){return c(oa,u,oa.months.findIndex((function(a){return e.toLowerCase()===a.shortName.toLowerCase()})))},MM:function(e){return c(oa,u,i(oa,C).call(oa,e)-1)},M:function(e){return c(oa,u,i(oa,C).call(oa,e)-1)},DD:function(e){return c(oa,N,i(oa,C).call(oa,e))},D:function(e){return c(oa,N,i(oa,C).call(oa,e))},HH:function(e){return c(oa,d,i(oa,C).call(oa,e))},H:function(e){return c(oa,d,i(oa,C).call(oa,e))},hh:function(e){var a=i(oa,C).call(oa,e);c(oa,d,a>12?a-12:a)},h:function(e){var a=i(oa,C).call(oa,e);c(oa,d,a>12?a-12:a)},mm:function(e){return c(oa,f,i(oa,C).call(oa,e))},m:function(e){return c(oa,f,i(oa,C).call(oa,e))},ss:function(e){return c(oa,A,i(oa,C).call(oa,e))},s:function(e){return c(oa,A,i(oa,C).call(oa,e))},SSS:function(e){return oa.millisecond=i(oa,C).call(oa,e)},SS:function(e){return oa.millisecond=i(oa,C).call(oa,e)},S:function(e){return oa.millisecond=i(oa,C).call(oa,e)}}}),F.set(this,{writable:!0,value:(Ee={},h(Ee,s.calendars.GREGORIAN,[{length:31,locals:(a={},h(a,s.locals.EN,{name:"January",shortName:"Jan"}),h(a,s.locals.FA,{name:"ژانویه",shortName:"ژان"}),h(a,s.locals.AR,{name:"يناير",shortName:"ينا"}),h(a,s.locals.HI,{name:"जनवरी",shortName:"जन"}),a)},{length:void 0,locals:(t={},h(t,s.locals.EN,{name:"February",shortName:"Feb"}),h(t,s.locals.FA,{name:"فوریه",shortName:"فور"}),h(t,s.locals.AR,{name:"فبراير",shortName:"فبر"}),h(t,s.locals.HI,{name:"फ़रवरी",shortName:"फ़र"}),t)},{length:31,locals:(n={},h(n,s.locals.EN,{name:"March",shortName:"Mar"}),h(n,s.locals.FA,{name:"مارس",shortName:"ما"}),h(n,s.locals.AR,{name:"مارس",shortName:"ما"}),h(n,s.locals.HI,{name:"मार्च",shortName:"मार्च"}),n)},{length:30,locals:(l={},h(l,s.locals.EN,{name:"April",shortName:"Apr"}),h(l,s.locals.FA,{name:"آوریل",shortName:"آور"}),h(l,s.locals.AR,{name:"إبريل",shortName:"إبر"}),h(l,s.locals.HI,{name:"अप्रैल",shortName:"अप्रैल"}),l)},{length:31,locals:(r={},h(r,s.locals.EN,{name:"May",shortName:"May"}),h(r,s.locals.FA,{name:"مه",shortName:"مه"}),h(r,s.locals.AR,{name:"مايو",shortName:"ما"}),h(r,s.locals.HI,{name:"मई",shortName:"मई"}),r)},{length:30,locals:(L={},h(L,s.locals.EN,{name:"June",shortName:"Jun"}),h(L,s.locals.FA,{name:"ژوئن",shortName:"ژو"}),h(L,s.locals.AR,{name:"يونيو",shortName:"يو"}),h(L,s.locals.HI,{name:"जून",shortName:"जून"}),L)},{length:31,locals:(j={},h(j,s.locals.EN,{name:"July",shortName:"Jul"}),h(j,s.locals.FA,{name:"ژوئیه",shortName:"ژوئیه"}),h(j,s.locals.AR,{name:"يوليو",shortName:"يوليو"}),h(j,s.locals.HI,{name:"जुलाई",shortName:"जुल"}),j)},{length:31,locals:(P={},h(P,s.locals.EN,{name:"August",shortName:"Aug"}),h(P,s.locals.FA,{name:"اوت",shortName:"اوت"}),h(P,s.locals.AR,{name:"أغسطس",shortName:"أغس"}),h(P,s.locals.HI,{name:"अगस्त",shortName:"अग"}),P)},{length:30,locals:(G={},h(G,s.locals.EN,{name:"September",shortName:"Sep"}),h(G,s.locals.FA,{name:"سپتامبر",shortName:"سپ"}),h(G,s.locals.AR,{name:"سبتمبر",shortName:"سب"}),h(G,s.locals.HI,{name:"सितंबर",shortName:"सित"}),G)},{length:31,locals:(B={},h(B,s.locals.EN,{name:"October",shortName:"Oct"}),h(B,s.locals.FA,{name:"اکتبر",shortName:"اک"}),h(B,s.locals.AR,{name:"أكتوبر",shortName:"اک"}),h(B,s.locals.HI,{name:"अक्तूबर",shortName:"अक्तू"}),B)},{length:30,locals:(T={},h(T,s.locals.EN,{name:"November",shortName:"Nov"}),h(T,s.locals.FA,{name:"نوامبر",shortName:"نو"}),h(T,s.locals.AR,{name:"نوفمبر",shortName:"نو"}),h(T,s.locals.HI,{name:"नवंबर",shortName:"नव"}),T)},{length:31,locals:(J={},h(J,s.locals.EN,{name:"December",shortName:"Dec"}),h(J,s.locals.FA,{name:"دسامبر",shortName:"دس"}),h(J,s.locals.AR,{name:"ديسمبر",shortName:"دس"}),h(J,s.locals.HI,{name:"दिसंबर",shortName:"दिस"}),J)}]),h(Ee,s.calendars.PERSIAN,[{length:31,locals:(U={},h(U,s.locals.EN,{name:"Farvardin",shortName:"Far"}),h(U,s.locals.FA,{name:"فروردین",shortName:"فر"}),h(U,s.locals.AR,{name:"فروردین",shortName:"فر"}),h(U,s.locals.HI,{name:"फर्वादिन",shortName:"फर्वादिन"}),U)},{length:31,locals:(V={},h(V,s.locals.EN,{name:"Ordibehesht",shortName:"Ord"}),h(V,s.locals.FA,{name:"اردیبهشت",shortName:"ار"}),h(V,s.locals.AR,{name:"اردیبهشت",shortName:"ار"}),h(V,s.locals.HI,{name:"ओर्दिवेहेस्ट",shortName:"ओर्दिवेहेस्ट"}),V)},{length:31,locals:(z={},h(z,s.locals.EN,{name:"Khordad",shortName:"Kho"}),h(z,s.locals.FA,{name:"خرداد",shortName:"خرد"}),h(z,s.locals.AR,{name:"خرداد",shortName:"خرد"}),h(z,s.locals.HI,{name:"खोरर्दाद",shortName:"खोरर्दाद"}),z)},{length:31,locals:(K={},h(K,s.locals.EN,{name:"Tir",shortName:"Tir"}),h(K,s.locals.FA,{name:"تیر",shortName:"تیر"}),h(K,s.locals.AR,{name:"تیر",shortName:"تیر"}),h(K,s.locals.HI,{name:"टिर",shortName:"टिर"}),K)},{length:31,locals:($={},h($,s.locals.EN,{name:"Mordad",shortName:"Mor"}),h($,s.locals.FA,{name:"مرداد",shortName:"مر"}),h($,s.locals.AR,{name:"مرداد",shortName:"مر"}),h($,s.locals.HI,{name:"मोरदाद",shortName:"मोरदाद"}),$)},{length:31,locals:(Q={},h(Q,s.locals.EN,{name:"Shahrivar",shortName:"Sha"}),h(Q,s.locals.FA,{name:"شهریور",shortName:"شه"}),h(Q,s.locals.AR,{name:"شهریور",shortName:"شه"}),h(Q,s.locals.HI,{name:"शाहरीवर्",shortName:"शाहरीवर्"}),Q)},{length:30,locals:(_={},h(_,s.locals.EN,{name:"Mehr",shortName:"Meh"}),h(_,s.locals.FA,{name:"مهر",shortName:"مه"}),h(_,s.locals.AR,{name:"مهر",shortName:"مه"}),h(_,s.locals.HI,{name:"मेहर",shortName:"मेहर"}),_)},{length:30,locals:(Z={},h(Z,s.locals.EN,{name:"Aban",shortName:"Aba"}),h(Z,s.locals.FA,{name:"آبان",shortName:"آبا"}),h(Z,s.locals.AR,{name:"آبان",shortName:"آبا"}),h(Z,s.locals.HI,{name:"अवन",shortName:"अवन"}),Z)},{length:30,locals:(q={},h(q,s.locals.EN,{name:"Azar",shortName:"Aza"}),h(q,s.locals.FA,{name:"آذر",shortName:"آذ"}),h(q,s.locals.AR,{name:"آذر",shortName:"آذ"}),h(q,s.locals.HI,{name:"अज़र",shortName:"अज़र"}),q)},{length:30,locals:(X={},h(X,s.locals.EN,{name:"Dey",shortName:"Dey"}),h(X,s.locals.FA,{name:"دی",shortName:"دی"}),h(X,s.locals.AR,{name:"دی",shortName:"دی"}),h(X,s.locals.HI,{name:"डे",shortName:"डे"}),X)},{length:30,locals:(ee={},h(ee,s.locals.EN,{name:"Bahman",shortName:"Bah"}),h(ee,s.locals.FA,{name:"بهمن",shortName:"بهم"}),h(ee,s.locals.AR,{name:"بهمن",shortName:"بهم"}),h(ee,s.locals.HI,{name:"बहमन",shortName:"बहमन"}),ee)},{length:void 0,locals:(ae={},h(ae,s.locals.EN,{name:"Esfand",shortName:"Esf"}),h(ae,s.locals.FA,{name:"اسفند",shortName:"اسف"}),h(ae,s.locals.AR,{name:"اسفند",shortName:"اسف"}),h(ae,s.locals.HI,{name:"ईस्फन्द्",shortName:"ईस्फन्द्"}),ae)}]),h(Ee,s.calendars.ARABIC,[{length:30,locals:(te={},h(te,s.locals.AR,{name:"محرم",shortName:"محرم"}),h(te,s.locals.EN,{name:"Muharram",shortName:"Mu"}),h(te,s.locals.FA,{name:"محرم",shortName:"محرم"}),h(te,s.locals.HI,{name:"मुहर्रम",shortName:"मुहर्रम"}),te)},{length:29,locals:(se={},h(se,s.locals.AR,{name:"صفر",shortName:"صفر"}),h(se,s.locals.EN,{name:"Safar",shortName:"Sa"}),h(se,s.locals.FA,{name:"صفر",shortName:"صفر"}),h(se,s.locals.HI,{name:"सफर",shortName:"सफर"}),se)},{length:30,locals:(ne={},h(ne,s.locals.AR,{name:"ربیع الاول",shortName:"ربیع الاول"}),h(ne,s.locals.EN,{name:"Rabi`al-Awwal",shortName:"RI"}),h(ne,s.locals.FA,{name:"ربیع الاول",shortName:"ربیع الاول"}),h(ne,s.locals.HI,{name:"राबी प्रथम",shortName:"राबी प्रथम"}),ne)},{length:29,locals:(le={},h(le,s.locals.AR,{name:"ربیع الثانی",shortName:"ربیع الثانی"}),h(le,s.locals.EN,{name:"Rabi`ath-Thani",shortName:"RII"}),h(le,s.locals.FA,{name:"ربیع الثانی",shortName:"ربیع الثانی"}),h(le,s.locals.HI,{name:"राबी द्वितीय",shortName:"राबी द्वितीय"}),le)},{length:30,locals:(oe={},h(oe,s.locals.AR,{name:"جمادی الاول",shortName:"جمادی الاول"}),h(oe,s.locals.EN,{name:"Jumada l-Ula",shortName:"JI"}),h(oe,s.locals.FA,{name:"جمادی الاول",shortName:"جمادی الاول"}),h(oe,s.locals.HI,{name:"जुम्डा प्रथम",shortName:"जुम्डा प्रथम"}),oe)},{length:29,locals:(re={},h(re,s.locals.AR,{name:"جمادی الثانی",shortName:"جمادی الثانی"}),h(re,s.locals.EN,{name:"Jumada t-Tania",shortName:"JII"}),h(re,s.locals.FA,{name:"جمادی الثانی",shortName:"جمادی الثانی"}),h(re,s.locals.HI,{name:"जुम्डा द्वितीय",shortName:"जुम्डा द्वितीय"}),re)},{length:30,locals:(he={},h(he,s.locals.AR,{name:"رجب",shortName:"رجب"}),h(he,s.locals.EN,{name:"Rajab",shortName:"Ra"}),h(he,s.locals.FA,{name:"رجب",shortName:"رجب"}),h(he,s.locals.HI,{name:"रजब",shortName:"रजब"}),he)},{length:29,locals:(ie={},h(ie,s.locals.AR,{name:"شعبان",shortName:"شعبان"}),h(ie,s.locals.EN,{name:"Sha`ban",shortName:"Sh"}),h(ie,s.locals.FA,{name:"شعبان",shortName:"شعبان"}),h(ie,s.locals.HI,{name:"शावन",shortName:"शावन"}),ie)},{length:30,locals:(ce={},h(ce,s.locals.AR,{name:"رمضان",shortName:"رمضان"}),h(ce,s.locals.EN,{name:"Ramadan",shortName:"Ra"}),h(ce,s.locals.FA,{name:"رمضان",shortName:"رمضان"}),h(ce,s.locals.HI,{name:"रमजान",shortName:"रमजान"}),ce)},{length:29,locals:(me={},h(me,s.locals.AR,{name:"شوال",shortName:"شوال"}),h(me,s.locals.EN,{name:"Shawwal",shortName:"Sh"}),h(me,s.locals.FA,{name:"شوال",shortName:"شوال"}),h(me,s.locals.HI,{name:"शव्व्ल",shortName:"शव्व्ल"}),me)},{length:30,locals:(ue={},h(ue,s.locals.AR,{name:"ذیقعده ",shortName:"ذیقعده"}),h(ue,s.locals.EN,{name:"Dhu l-Qa`da ",shortName:"DhQ"}),h(ue,s.locals.HI,{name:"जिल-क्दाह ",shortName:"जिल-क्दाह"}),ue)},{length:void 0,locals:(Ne={},h(Ne,s.locals.AR,{name:"ذیحجه",shortName:"ذیحجه"}),h(Ne,s.locals.EN,{name:"Dhu l-Hijja",shortName:"DhH"}),h(Ne,s.locals.FA,{name:"ذیحجه",shortName:"ذیحجه"}),h(Ne,s.locals.HI,{name:"जिल्-हिज्जाह",shortName:"जिल्-हिज्जाह"}),Ne)}]),h(Ee,s.calendars.INDIAN,[{length:void 0,locals:(de={},h(de,s.locals.EN,{name:"Chaitra",shortName:"Cha"}),h(de,s.locals.FA,{name:"چیتره",shortName:"چیت"}),h(de,s.locals.AR,{name:"شيترا",shortName:"شیت"}),h(de,s.locals.HI,{name:"चैत्र",shortName:"चैत्र"}),de)},{length:31,locals:(fe={},h(fe,s.locals.EN,{name:"Vaishakh",shortName:"Vai"}),h(fe,s.locals.FA,{name:"ویشاکهه",shortName:"ویش"}),h(fe,s.locals.AR,{name:"فيشاخ",shortName:"فیش"}),h(fe,s.locals.HI,{name:"वैशाख",shortName:"वैशाख"}),fe)},{length:31,locals:(Ae={},h(Ae,s.locals.EN,{name:"Jyaishtha",shortName:"Jya"}),h(Ae,s.locals.FA,{name:"جییشته",shortName:"جیش"}),h(Ae,s.locals.AR,{name:"جیشتا",shortName:"جیش"}),h(Ae,s.locals.HI,{name:"ज्येष्ठ",shortName:"ज्येष्ठ"}),Ae)},{length:31,locals:(ye={},h(ye,s.locals.EN,{name:"Ashadha",shortName:"Ash"}),h(ye,s.locals.FA,{name:"آشادهه",shortName:"آشا"}),h(ye,s.locals.AR,{name:"أشاد",shortName:"أشا"}),h(ye,s.locals.HI,{name:"आषाढ़",shortName:"आषाढ़"}),ye)},{length:31,locals:(ve={},h(ve,s.locals.EN,{name:"Shravana",shortName:"Shr"}),h(ve,s.locals.FA,{name:"شراونه",shortName:"شرا"}),h(ve,s.locals.AR,{name:"شرافان",shortName:"شرا"}),h(ve,s.locals.HI,{name:"श्रावण",shortName:"श्रावण"}),ve)},{length:31,locals:(ge={},h(ge,s.locals.EN,{name:"Bhadrapad",shortName:"Bha"}),h(ge,s.locals.FA,{name:"بهادره",shortName:"بها"}),h(ge,s.locals.AR,{name:"بهادرابادا",shortName:"بها"}),h(ge,s.locals.HI,{name:"भाद्रपद",shortName:"भाद्रपद"}),ge)},{length:30,locals:(Ie={},h(Ie,s.locals.EN,{name:"Ashwin",shortName:"Ash"}),h(Ie,s.locals.FA,{name:"آشوین",shortName:"آشو"}),h(Ie,s.locals.AR,{name:"اشوين",shortName:"اشو"}),h(Ie,s.locals.HI,{name:"आश्विन",shortName:"आश्विन"}),Ie)},{length:30,locals:(be={},h(be,s.locals.EN,{name:"Kartik",shortName:"Kar"}),h(be,s.locals.FA,{name:"کارتیکه",shortName:"کار"}),h(be,s.locals.AR,{name:"كارتيك",shortName:"کار"}),h(be,s.locals.HI,{name:"कार्तिक",shortName:"कार्तिक"}),be)},{length:30,locals:(ke={},h(ke,s.locals.EN,{name:"Agrahayana",shortName:"Agr"}),h(ke,s.locals.FA,{name:"اگرهینه",shortName:"اگر"}),h(ke,s.locals.AR,{name:"أجراهيان",shortName:"اجر"}),h(ke,s.locals.HI,{name:"अग्रहायण",shortName:"अग्रहायण"}),ke)},{length:30,locals:(pe={},h(pe,s.locals.EN,{name:"Paush",shortName:"Pau"}),h(pe,s.locals.FA,{name:"پاوشه",shortName:"پاو"}),h(pe,s.locals.AR,{name:"بوش",shortName:"بوش"}),h(pe,s.locals.HI,{name:"पौष",shortName:"पौष"}),pe)},{length:30,locals:(we={},h(we,s.locals.EN,{name:"Magh",shortName:"Mag"}),h(we,s.locals.FA,{name:"ماگهه",shortName:"ماگ"}),h(we,s.locals.AR,{name:"ماک",shortName:"ماک"}),h(we,s.locals.HI,{name:"माघ",shortName:"माघ"}),we)},{length:30,locals:(Re={},h(Re,s.locals.EN,{name:"Phalgun",shortName:"Pha"}),h(Re,s.locals.FA,{name:"پهالگونه",shortName:"پها"}),h(Re,s.locals.AR,{name:"فالغون",shortName:"فال"}),h(Re,s.locals.HI,{name:"फाल्गुन",shortName:"फाल्गुन"}),Re)}]),Ee)}),D.set(this,{writable:!0,value:(aa={},h(aa,s.calendars.GREGORIAN,[{index:0,locals:(Fe={},h(Fe,s.locals.EN,{name:"Sunday",shortName:"Sun"}),h(Fe,s.locals.FA,{name:"یکشنبه",shortName:"یک"}),h(Fe,s.locals.AR,{name:"الأحد",shortName:"اح"}),h(Fe,s.locals.HI,{name:"रविवार",shortName:"रवि"}),Fe)},{index:1,locals:(De={},h(De,s.locals.EN,{name:"Monday",shortName:"Mon"}),h(De,s.locals.FA,{name:"دوشنبه",shortName:"دو"}),h(De,s.locals.AR,{name:"الإثنينِ",shortName:"ثن"}),h(De,s.locals.HI,{name:"सोमवार",shortName:"सोम"}),De)},{index:2,locals:(He={},h(He,s.locals.EN,{name:"Tuesday",shortName:"Tue"}),h(He,s.locals.FA,{name:"سه شنبه",shortName:"سه"}),h(He,s.locals.AR,{name:"الثلاثاء",shortName:"ثل"}),h(He,s.locals.HI,{name:"मंगलवार",shortName:"मंगल"}),He)},{index:3,locals:(Me={},h(Me,s.locals.EN,{name:"Wednesday",shortName:"Wed"}),h(Me,s.locals.FA,{name:"چهارشنبه",shortName:"چهار"}),h(Me,s.locals.AR,{name:"الأربعاء",shortName:"ار"}),h(Me,s.locals.HI,{name:"बुधवार",shortName:"बुध"}),Me)},{index:4,locals:(Se={},h(Se,s.locals.EN,{name:"Thursday",shortName:"Thu"}),h(Se,s.locals.FA,{name:"پنجشنبه",shortName:"پنج"}),h(Se,s.locals.AR,{name:"الخميس",shortName:"خم"}),h(Se,s.locals.HI,{name:"गुरुवार",shortName:"गुरु"}),Se)},{index:5,locals:(Oe={},h(Oe,s.locals.EN,{name:"Friday",shortName:"Fri"}),h(Oe,s.locals.FA,{name:"جمعه",shortName:"جم"}),h(Oe,s.locals.AR,{name:"الجمعة",shortName:"جم"}),h(Oe,s.locals.HI,{name:"शुक्रवार",shortName:"शुक्र"}),Oe)},{index:6,locals:(xe={},h(xe,s.locals.EN,{name:"Saturday",shortName:"Sat"}),h(xe,s.locals.FA,{name:"شنبه",shortName:"شن"}),h(xe,s.locals.AR,{name:"السّبت",shortName:"سب"}),h(xe,s.locals.HI,{name:"शनिवार",shortName:"शनि"}),xe)}]),h(aa,s.calendars.PERSIAN,[{index:1,locals:(Ye={},h(Ye,s.locals.EN,{name:"YekShanbeh",shortName:"Yek"}),h(Ye,s.locals.FA,{name:"یکشنبه",shortName:"یک"}),h(Ye,s.locals.AR,{name:"الأحد",shortName:"اح"}),h(Ye,s.locals.HI,{name:"रविवार",shortName:"रवि"}),Ye)},{index:2,locals:(We={},h(We,s.locals.EN,{name:"Doshanbeh",shortName:"Do"}),h(We,s.locals.FA,{name:"دوشنبه",shortName:"دو"}),h(We,s.locals.AR,{name:"الإثنينِ",shortName:"ثن"}),h(We,s.locals.HI,{name:"सोमवार",shortName:"सोम"}),We)},{index:3,locals:(Ce={},h(Ce,s.locals.EN,{name:"Seshanbeh",shortName:"Se"}),h(Ce,s.locals.FA,{name:"سه شنبه",shortName:"سه"}),h(Ce,s.locals.AR,{name:"الثلاثاء",shortName:"ثل"}),h(Ce,s.locals.HI,{name:"मंगलवार",shortName:"मंगल"}),Ce)},{index:4,locals:(Le={},h(Le,s.locals.EN,{name:"Chaharshanbeh",shortName:"Cha"}),h(Le,s.locals.FA,{name:"چهارشنبه",shortName:"چهار"}),h(Le,s.locals.AR,{name:"الأربعاء",shortName:"ار"}),h(Le,s.locals.HI,{name:"बुधवार",shortName:"बुध"}),Le)},{index:5,locals:(je={},h(je,s.locals.EN,{name:"Panjshanbeh",shortName:"Pan"}),h(je,s.locals.FA,{name:"پنجشنبه",shortName:"پنج"}),h(je,s.locals.AR,{name:"الخميس",shortName:"خم"}),h(je,s.locals.HI,{name:"गुरुवार",shortName:"गुरु"}),je)},{index:6,locals:(Pe={},h(Pe,s.locals.EN,{name:"Jom'eh",shortName:"Jom"}),h(Pe,s.locals.FA,{name:"جمعه",shortName:"جم"}),h(Pe,s.locals.AR,{name:"الجمعة",shortName:"جم"}),h(Pe,s.locals.HI,{name:"शुक्रवार",shortName:"शुक्र"}),Pe)},{index:0,locals:(Ge={},h(Ge,s.locals.EN,{name:"Shanbeh",shortName:"Sha"}),h(Ge,s.locals.FA,{name:"شنبه",shortName:"شن"}),h(Ge,s.locals.AR,{name:"السّبت",shortName:"سب"}),h(Ge,s.locals.HI,{name:"शनिवार",shortName:"शनि"}),Ge)}]),h(aa,s.calendars.ARABIC,[{index:1,locals:(Be={},h(Be,s.locals.AR,{name:"الأحد",shortName:"احد"}),h(Be,s.locals.EN,{name:"al-'ahad",shortName:"Aha"}),h(Be,s.locals.FA,{name:"يکشنبه",shortName:"یک"}),h(Be,s.locals.HI,{name:"रविवार",shortName:"रवि"}),Be)},{index:2,locals:(Te={},h(Te,s.locals.AR,{name:"الإثنينِ",shortName:"ثن"}),h(Te,s.locals.EN,{name:"al-'ithnayn",shortName:"Ith"}),h(Te,s.locals.FA,{name:"دوشنبه",shortName:"دو"}),h(Te,s.locals.HI,{name:"सोमवार",shortName:"सोम"}),Te)},{index:3,locals:(Je={},h(Je,s.locals.AR,{name:"الثلاثاء",shortName:"ثلا"}),h(Je,s.locals.EN,{name:"ath-thalatha",shortName:"Tha"}),h(Je,s.locals.FA,{name:"سه شنبه",shortName:"سه"}),h(Je,s.locals.HI,{name:"मंगलवार",shortName:"मंगल"}),Je)},{index:4,locals:(Ue={},h(Ue,s.locals.AR,{name:"الأربعاء",shortName:"ارب"}),h(Ue,s.locals.EN,{name:"al-'arb`a'",shortName:"Arb"}),h(Ue,s.locals.FA,{name:"چهار شنبه",shortName:"چهار"}),h(Ue,s.locals.HI,{name:"बुधवार",shortName:"बुध"}),Ue)},{index:5,locals:(Ve={},h(Ve,s.locals.AR,{name:"الخميس",shortName:"خم"}),h(Ve,s.locals.EN,{name:"al-khamis",shortName:"Kha"}),h(Ve,s.locals.FA,{name:"پنج شنبه\t",shortName:"پنج"}),h(Ve,s.locals.HI,{name:"गुरुवार",shortName:"गुरु"}),Ve)},{index:6,locals:(ze={},h(ze,s.locals.AR,{name:"الجمعة",shortName:"جم"}),h(ze,s.locals.EN,{name:"al-jum`a",shortName:"Jum"}),h(ze,s.locals.FA,{name:"جمعه",shortName:"جم"}),h(ze,s.locals.HI,{name:"शुक्रवार",shortName:"शुक्र"}),ze)},{index:0,locals:(Ke={},h(Ke,s.locals.AR,{name:"السّبت",shortName:"سبت"}),h(Ke,s.locals.EN,{name:"as-sabt",shortName:"Sab"}),h(Ke,s.locals.FA,{name:"شنبه",shortName:"شن"}),h(Ke,s.locals.HI,{name:"शनिवार",shortName:"शनि"}),Ke)}]),h(aa,s.calendars.INDIAN,[{index:0,locals:($e={},h($e,s.locals.EN,{name:"Ravivara",shortName:"Rav"}),h($e,s.locals.FA,{name:"يکشنبه",shortName:"یک"}),h($e,s.locals.AR,{name:"الأحد",shortName:"احد"}),h($e,s.locals.HI,{name:"रविवार",shortName:"रवि"}),$e)},{index:1,locals:(Qe={},h(Qe,s.locals.EN,{name:"Somavara",shortName:"Som"}),h(Qe,s.locals.FA,{name:"دوشنبه",shortName:"دو"}),h(Qe,s.locals.AR,{name:"الإثنينِ",shortName:"ثن"}),h(Qe,s.locals.HI,{name:"सोमवार",shortName:"सोम"}),Qe)},{index:2,locals:(_e={},h(_e,s.locals.EN,{name:"Mangalavara",shortName:"Man"}),h(_e,s.locals.FA,{name:"سه شنبه\t",shortName:"سه"}),h(_e,s.locals.AR,{name:"الثلاثاء",shortName:"ثلا"}),h(_e,s.locals.HI,{name:"मंगलवार",shortName:"मंगल"}),_e)},{index:3,locals:(Ze={},h(Ze,s.locals.EN,{name:"Budhavara",shortName:"Bud"}),h(Ze,s.locals.FA,{name:"چهار شنبه",shortName:"چهار"}),h(Ze,s.locals.AR,{name:"الأربعاء",shortName:"ارب"}),h(Ze,s.locals.HI,{name:"बुधवार",shortName:"बुध"}),Ze)},{index:4,locals:(qe={},h(qe,s.locals.EN,{name:"Brihaspatvara",shortName:"Bri"}),h(qe,s.locals.FA,{name:"پنج شنبه\t",shortName:"پنج"}),h(qe,s.locals.AR,{name:"الخميس",shortName:"خم"}),h(qe,s.locals.HI,{name:"गुरुवार",shortName:"गुरु"}),qe)},{index:5,locals:(Xe={},h(Xe,s.locals.EN,{name:"Sukravara",shortName:"Suk"}),h(Xe,s.locals.FA,{name:"جمعه",shortName:"جم"}),h(Xe,s.locals.AR,{name:"الجمعة",shortName:"جم"}),h(Xe,s.locals.HI,{name:"शुक्रवार",shortName:"शुक्र"}),Xe)},{index:6,locals:(ea={},h(ea,s.locals.EN,{name:"Sanivara",shortName:"San"}),h(ea,s.locals.FA,{name:"شنبه",shortName:"شن"}),h(ea,s.locals.AR,{name:"السّبت",shortName:"سبت"}),h(ea,s.locals.HI,{name:"शनिवार",shortName:"शनि"}),ea)}]),aa)}),H.set(this,{writable:!0,value:(ta={},h(ta,s.locals.EN,["0","1","2","3","4","5","6","7","8","9"]),h(ta,s.locals.FA,["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"]),h(ta,s.locals.AR,["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"]),h(ta,s.locals.HI,["०","१","२","३","४","५","६","७","८","९"]),ta)}),M.set(this,{writable:!0,value:(sa={},h(sa,s.locals.EN,[{name:"AM",shortName:"am"},{name:"PM",shortName:"pm"}]),h(sa,s.locals.FA,[{name:"قبل از ظهر",shortName:"ق.ظ"},{name:"بعد از ظهر",shortName:"ب.ظ"}]),h(sa,s.locals.AR,[{name:"قبل الظهر",shortName:"ق.ظ"},{name:"بعد الظهر",shortName:"ب.ظ"}]),h(sa,s.locals.HI,[{name:"दोपहर से पहले",shortName:"पूर्वाह्न"},{name:"मध्याह्न के बाद",shortName:"अपराह्न"}]),sa)}),S.set(this,{writable:!0,value:(na={},h(na,s.calendars.GREGORIAN,1721424),h(na,s.calendars.PERSIAN,1948319),h(na,s.calendars.ARABIC,1948438),h(na,s.calendars.INDIAN,1749628),h(na,"unix",2440587),na)}),O.set(this,{writable:!0,value:(la={},h(la,s.calendars.GREGORIAN,365),h(la,s.calendars.PERSIAN,365),h(la,s.calendars.ARABIC,354),h(la,s.calendars.INDIAN,365),la)}),x.set(this,{writable:!0,value:function(){var e=function(){for(var e=!1;i(oa,u)<0;)c(oa,u,i(oa,u)+12),c(oa,m,i(oa,m)-1),0===i(oa,m)&&oa.calendar!==s.calendars.INDIAN&&c(oa,m,-1),e=!0;for(;i(oa,u)>11;)c(oa,u,i(oa,u)-12),c(oa,m,i(oa,m)+1),0===i(oa,m)&&oa.calendar!==s.calendars.INDIAN&&c(oa,m,1),e=!0;e&&i(oa,Y).call(oa)};if(oa.isValid){for(;i(oa,y)>=1e3;)c(oa,y,i(oa,y)-1e3),c(oa,A,i(oa,A)+1);for(;i(oa,y)<0;)c(oa,y,i(oa,y)+1e3),c(oa,A,i(oa,A)-1);for(;i(oa,A)>=60;)c(oa,A,i(oa,A)-60),c(oa,f,i(oa,f)+1);for(;i(oa,A)<0;)c(oa,A,i(oa,A)+60),c(oa,f,i(oa,f)-1);for(;i(oa,f)>=60;)c(oa,f,i(oa,f)-60),c(oa,d,i(oa,d)+1);for(;i(oa,f)<0;)c(oa,f,i(oa,f)+60),c(oa,d,i(oa,d)-1);for(;i(oa,d)>=24;)c(oa,d,i(oa,d)-24),c(oa,N,i(oa,N)+1);for(;i(oa,d)<0;)c(oa,d,i(oa,d)+24),c(oa,N,i(oa,N)-1);for(;;){for((i(oa,u)<0||i(oa,u)>11)&&e();i(oa,N)<1;)c(oa,u,i(oa,u)-1),e(),c(oa,N,oa.month.length+i(oa,N));if(i(oa,N)<=oa.month.length||isNaN(i(oa,N)))break;c(oa,N,i(oa,N)-oa.month.length),c(oa,u,1+ +i(oa,u))}i(oa,d)||c(oa,d,0),i(oa,f)||c(oa,f,0),i(oa,A)||c(oa,A,0),i(oa,y)||c(oa,y,0)}}}),Y.set(this,{writable:!0,value:function(){if(0!==i(oa,m)||i(oa,I)===s.calendars.INDIAN){var e=void 0;e=i(oa,I)!==s.calendars.INDIAN?i(oa,m)>0?1:-1:0;var a=function(){return i(oa,m)>0?e<=i(oa,m):i(oa,m)<=e},t=function(){return i(oa,m)>0?e++:e--},n=function(e){return e%4==0&&e%100!=0||e%400==0};switch(c(oa,k,[]),i(oa,I)){case s.calendars.PERSIAN:for(var l=.242362,o=i(oa,m)>0?.2684:.7316,r={5:4,38:37,199:198,232:231,265:264,298:297,557:558,590:591,623:624,982:983,1015:1016,1048:1049,1081:1082,1114:1115,1242:1243,1374:1375,1407:1408,1440:1441,1506:1507,1539:1540,1572:1573,1605:1606,1931:1932,1964:1965,2063:2064,2096:2097,2687:2686,2720:2719,2753:2752,2819:2818,2852:2851,2885:2884,3017:3016,3112:3111,3145:3144,3178:3177,3211:3210,3244:3243,3277:3276,3310:3309,3343:3342,3376:3375,3409:3408,3442:3441,3508:3507,3541:3540,3574:3573,3603:3602,3607:3606,3636:3635,3669:3668,3702:3701,3706:3705,3735:3734,3768:3767,3801:3800,3834:3833,3867:3866,3900:3899,3933:3932,3966:3965,3999:3998,4065:4064,4094:4093,4098:4097,4127:4126,4131:4130,4160:4159,4193:4192,4226:4225,4259:4258,4292:4291,4325:4324,4358:4357,4391:4390,4585:4584,4618:4617,4651:4650,4750:4749,4943:4944,4976:4977,5009:5010,5170:5171,5203:5204,5236:5237,5265:5266,5269:5270,5298:5299,5302:5303,5331:5332,5335:5336,5364:5365,5368:5369,5393:5394,5397:5398,5401:5402,5426:5427,5430:5431,5434:5435,5459:5460,5463:5464,5467:5468,5492:5493,5496:5497,5500:5501,5521:5522,5525:5526,5529:5530,5554:5555,5558:5559,5562:5563,5587:5588,5591:5592,5595:5596,5616:5617,5620:5621,5624:5625,5628:5629,5649:5650,5653:5654,5657:5658,5661:5662,5682:5683,5686:5687,5690:5691,5694:5695,5715:5716,5719:5720,5723:5724,5727:5728,5744:5745,5748:5749,5752:5753,5756:5757,5760:5761,5777:5778,5781:5782,5785:5786,5789:5790,5793:5794,5810:5811,5814:5815,5818:5819,5822:5823,5826:5827,5839:5840,5843:5844,5847:5848,5851:5852,5855:5856,5859:5860,5872:5873,5876:5877,5880:5881,5884:5885,5888:5889,5892:5893,5901:5902,5905:5906,5909:5910,5913:5914,5917:5918,5921:5922,5925:5926,5934:5935,5938:5939,5942:5943,5946:5947,5950:5951,5954:5955,5958:5959,5967:5968,5971:5972,5975:5976,5979:5980,5983:5984,5987:5988,5991:5992,5996:5997,6e3:6001,6004:6005,6008:6009,6012:6013,6016:6017,6020:6021,6029:6030,6033:6034,6037:6038,6041:6042,6045:6046,6049:6050,6053:6054,6058:6059,6062:6063,6066:6067,6070:6071,6074:6075,6078:6079,6082:6083,6086:6087,6091:6092,6095:6096,6099:6100,6103:6104,6107:6108,6111:6112,6115:6116,6119:6120,6124:6125,6128:6129,6132:6133,6136:6137,6140:6141,6144:6145,6148:6149,6152:6154,6157:6158,6161:6162,6165:6166,6169:6170,6173:6174,6177:6178,6181:6182,6185:6187,6190:6191,6194:6195,6198:6199,6202:6203,6206:6207,6210:6211,6214:6215,6218:6220,6223:6224,6227:6228,6231:6232,6235:6236,6239:6240,6243:6244,6247:6249,6251:6253,6256:6257,6260:6261,6264:6265,6268:6269,6272:6273,6276:6277,6280:6282,6284:6286,6289:6290,6293:6294,6297:6298,6301:6302,6305:6306,6309:6310,6313:6315,6317:6319,6322:6323,6326:6327,6330:6331,6334:6335,6338:6339,6342:6344,6346:6348,6350:6352,6355:6356,6359:6360,6363:6364,6367:6368,6371:6372,6375:6377,6379:6381,6383:6385,6388:6389,6392:6393,6396:6397,6400:6401,6404:6406,6408:6410,6412:6414,6416:6418,6421:6422,6425:6426,6429:6430,6433:6434,6437:6439,6441:6443,6445:6447,6449:6451,6454:6455,6458:6459,6462:6463,6466:6468,6470:6472,6474:6476,6478:6480,6482:6484,6487:6488,6491:6492,6495:6496};a();){if((o+=i(oa,m)>0?l:-1*l)>1&&(o-=1),o<0&&(o+=1),o>=.257800926&&o<=.5){var h=r[e]||e<-1?e+1:e;i(oa,m)>0&&h<=i(oa,m)&&i(oa,k).push(h),i(oa,m)<0&&i(oa,k).push(h)}t()}break;case s.calendars.ARABIC:for(;a();)[2,5,7,10,13,15,18,21,24,26,29].includes(e%30)&&i(oa,k).push(e),t();break;case s.calendars.INDIAN:for(;a();)n(e+78)&&i(oa,k).push(e),t();break;default:for(;a();)n(e)&&i(oa,k).push(e),t()}}}}),W.set(this,{writable:!0,value:function(e,a){var t=void 0;switch(a){case s.calendars.PERSIAN:t=~~((e+.5)/365.241);break;case s.calendars.ARABIC:t=~~((e-.5)/354.366);break;default:t=~~(e/365.24)}return t+(i(oa,m)>0?1:-1)}}),C.set(this,{writable:!0,value:function(e){if(!isNaN(e))return parseInt(e)}});var ra=e&&e.constructor===Object?o({},e):e;ra&&"boolean"!=typeof ra||(ra={date:new Date}),(ra instanceof Date||ra instanceof s||"string"==typeof ra||"number"==typeof ra)&&(ra={date:ra}),ra.calendar&&(ra.calendar=s.calendars[ra.calendar.toUpperCase()]||s.calendars.GREGORIAN,c(this,I,ra.calendar));var ha=!0,ia=Object.keys(ra).filter((function(e){return ra[e]||0===ra[e]})),ca=ia.length>0&&ia.length<=4&&ia.every((function(e){return["calendar","local","format","ignoreList"].includes(e)}));for(var ma in ca&&(ra.date=new Date),c(this,v,ra.format),(ra.date instanceof s||ra.date instanceof Date||"number"==typeof ra.date||"string"==typeof ra.date)&&(this.setDate(ra.date),ra.calendar&&this.convert(ra.calendar),ha=!1),ra.local&&(ra.local=s.locals[ra.local.toUpperCase()]||s.locals.EN,c(this,g,ra.local)),delete ra.calendar,delete ra.local,delete ra.date,delete ra.format,ra)this.set(ma,ra[ma]);0===i(this,m)&&i(this,I)!==s.calendars.INDIAN&&c(this,m,-1),ha&&(i(this,Y).call(this),i(this,x).call(this))}var n,l,L;return n=s,(l=[{key:"parse",value:function(e){if(!e)return this;var n=i(this,v);if(i(this,g)!==s.locals.en){var l,o=i(this,H)[i(this,g)],r=t(o);try{for(r.s();!(l=r.n()).done;){var h=l.value;e=e.replace(new RegExp(h,"g"),o.indexOf(h))}}catch(e){r.e(e)}finally{r.f()}}if(n)for(var I=n.split(/[^\w\u0600-\u06FF]/),b=e.split(/[^\w\u0600-\u06FF]/),k=0;k<I.length;k++){var p=i(this,E)[I[k]];p&&b[k]&&p(b[k])}else{var w=a(e.match(/(-?\d{2,4})?\W?([A-z]{3,9}|\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,3})?\W?(am|pm)?/),9),R=w[1],F=w[2],D=w[3],S=w[4],O=w[5],W=w[6],L=w[7],j=w[8];F&&(F=/\d+/.test(F)?i(this,C).call(this,F)-1:this.months.findIndex((function(e){return new RegExp(F,"i").test(e.name)}))),c(this,m,i(this,C).call(this,R)),c(this,u,i(this,C).call(this,F)),c(this,N,i(this,C).call(this,D)),c(this,d,i(this,C).call(this,S)),c(this,f,i(this,C).call(this,O)),c(this,A,i(this,C).call(this,W)),c(this,y,i(this,C).call(this,L)),j&&"pm"===j&&i(this,d)<12&&c(this,d,i(this,d)+12)}return e.includes(i(this,M)[i(this,g)][1].shortName)&&i(this,d)<12&&c(this,d,i(this,d)+12),e.includes(i(this,M)[i(this,g)][1].name)&&i(this,d)<12&&c(this,d,i(this,d)+12),i(this,Y).call(this),i(this,x).call(this),this}},{key:"convert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.calendars.GREGORIAN;if(!(e=s.calendars[e.toUpperCase()]))throw new Error("calendar not found");if(e===i(this,I))return this;var a=this.toJulianDay()-i(this,S)[e],t=new s({calendar:e,year:i(this,W).call(this,a,e),month:1,day:1});return t.day+=a-t.dayOfBeginning,c(this,m,t.year),c(this,u,t.month.index),c(this,N,t.day),c(this,k,t.leaps),c(this,I,e),this}},{key:"format",value:function(a,n){if(!this.isValid)return"";if(!a||"string"==typeof a){a||(a=i(this,v)||"YYYY/MM/DD"),Array.isArray(n)||(n=[]),n=(n=n.concat(i(this,R))).filter((function(a){return"string"==typeof a||(console.warn("type of all items in the ignore list must be string, found",e(a)),!1)})).map((function(e){return e.replace(/[*/+\-()[\]{}\s$^]/g,(function(e){return"\\"+e}))}));var l,o=new RegExp("".concat(n.join("|")).concat(n.length>0?"|":"","YYYY|YY|MMMM|MMM|MM|M|WW|W|DDDD|DDD|DD|D|dddd|ddd|dd|d|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a|."),"g"),r="",h=t(a.match(o)||[]);try{for(h.s();!(l=h.n()).done;){var c=l.value;r+=n.includes(c)?c:this.getProperty(c)||c}}catch(e){h.e(e)}finally{h.f()}if(i(this,g)!==s.locals.en){var m=i(this,H)[i(this,g)];r=r.replace(/[0-9]/g,(function(e){return m[e]}))}return r}}},{key:"getProperty",value:function(e){var a=function(e){return e<10?"0"+e:e};switch(e){case"YYYY":return this.year;case"YY":return this.year.toString().substring(2,4);case"MMMM":return this.month.name;case"MMM":return this.month.shortName;case"MM":return a(this.month.number);case"M":return this.month.number;case"WW":return a(this.weekOfYear);case"W":return this.weekOfYear;case"DDDD":case"DDD":return this.dayOfYear;case"DD":return a(this.day);case"D":return this.day;case"HH":return a(this.hour);case"H":return this.hour;case"dddd":return this.weekDay.name;case"ddd":return this.weekDay.shortName;case"dd":return a(this.weekDay.number);case"d":return this.weekDay.number;case"hh":return a(this.hour>12?this.hour-12:this.hour||12);case"h":return this.hour>12?this.hour-12:this.hour||12;case"mm":return a(this.minute);case"m":return this.minute;case"ss":return a(this.second);case"s":return this.second;case"SSS":return i(this,y)<10?"00".concat(i(this,y)):i(this,y)<100?"0".concat(i(this,y)):i(this,y);case"SS":return i(this,y)<10?"00":i(this,y)<100?("0"+i(this,y)).substring(2,0):i(this,y).toString().substring(0,2);case"S":return i(this,y)<10||i(this,y)<100?"0":i(this,y).toString().substring(0,1);case"a":return this.hour>=12?i(this,M)[i(this,g)][1].shortName:i(this,M)[i(this,g)][0].shortName;case"A":return this.hour>=12?i(this,M)[i(this,g)][1].name:i(this,M)[i(this,g)][0].name;default:return""}}},{key:"setYear",value:function(e){return this.year=e,this}},{key:"setMonths",value:function(e){return this.months=e,this}},{key:"setMonth",value:function(e){return this.month=e,this}},{key:"setWeekDays",value:function(e){return this.weekDays=e,this}},{key:"setDay",value:function(e){return this.day=e,this}},{key:"setHour",value:function(e){return this.hour=e,this}},{key:"setMinute",value:function(e){return this.minute=e,this}},{key:"setSecond",value:function(e){return this.second=e,this}},{key:"setMillisecond",value:function(e){return this.millisecond=e,this}},{key:"setFormat",value:function(e){return c(this,v,e),this}},{key:"setLocal",value:function(e){return this.local=e,this}},{key:"setCalendar",value:function(e){return this.calendar=e,this}},{key:"setDate",value:function(e){if("string"==typeof e){if(!i(this,w).test(e))return this.parse(e);e=new Date(e)}return"number"==typeof e&&(e=new Date(e)),e instanceof Date&&(c(this,I,s.calendars.GREGORIAN),c(this,m,e.getFullYear()),c(this,u,e.getMonth()),c(this,N,e.getDate()),c(this,d,e.getHours()),c(this,f,e.getMinutes()),c(this,A,e.getSeconds()),c(this,y,e.getMilliseconds()),c(this,b,!1),i(this,Y).call(this),i(this,x).call(this)),e instanceof s&&(c(this,m,e.year),c(this,u,e.month.index),c(this,N,e.day),c(this,d,e.hour),c(this,f,e.minute),c(this,A,e.second),c(this,y,e.millisecond),c(this,g,e.local.toUpperCase()),c(this,v,e._format),c(this,k,e.leaps),c(this,I,e.calendar.toUpperCase()),c(this,b,e.isUTC)),this}},{key:"setIgnoreList",value:function(e){return this.ignoreList=e,this}},{key:"set",value:function(e,a){if(null==e)return this;if(e.constructor===Object){var t=o({},e);for(var s in t.date&&(this.setDate(t.date),delete t.date),t.calendar&&(this.convert(t.calendar),delete t.calendar),t.local&&(this.setLocal(t.local),delete t.local),t)this.set(s,t[s]);return this}switch(e){case"calendar":return this.convert(a);case"local":return this.setLocal(a);case"format":return this.setFormat(a);case"year":return this.setYear(a);case"month":return this.setMonth(a);case"day":return this.setDay(a);case"hour":return this.setHour(a);case"minute":return this.setMinute(a);case"second":return this.setSecond(a);case"millisecond":return this.setMillisecond(a);case"date":return this.setDate(a);case"ignoreList":return this.setIgnoreList(a);default:return this}}},{key:"add",value:function(e,a){if(!(e=i(this,C).call(this,e))||!a)return this;switch(a){case"years":case"year":case"y":this.year+=e;break;case"months":case"month":case"M":this.month+=e;break;case"days":case"day":case"d":this.day+=e;break;case"hours":case"hour":case"h":this.hour+=e;break;case"minutes":case"minute":case"m":this.minute+=e;break;case"seconds":case"second":case"s":this.second+=e;break;case"milliseconds":case"millisecond":case"ms":this.millisecond+=e}return this}},{key:"toFirstOfYear",value:function(){return this.month=1,this.day=1,this}},{key:"toLastOfYear",value:function(){return this.day>=29&&(this.day=29),this.month=12,this.toLastOfMonth(),this}},{key:"toFirstOfMonth",value:function(){return c(this,N,1),this}},{key:"toLastOfMonth",value:function(){return c(this,N,0),c(this,u,i(this,u)+1),i(this,x).call(this),this}},{key:"toFirstOfWeek",value:function(){return this.day-=this.weekDay.index,this}},{key:"toLastOfWeek",value:function(){return this.day+=6-this.weekDay.index,this}},{key:"toFirstWeekOfYear",value:function(){return this.toFirstOfYear(),0===this.weekDay.index?this:this.toLastOfWeek().setDay(this.day+1)}},{key:"toLastWeekOfYear",value:function(){return this.toLastOfYear().toFirstOfWeek()}},{key:"toString",value:function(){return this.format()}},{key:"toDate",value:function(){var e=new s(this);return i(this,I)!==s.calendars.GREGORIAN&&e.convert(s.calendars.GREGORIAN),new Date(i(e,m),i(e,u),i(e,N),i(e,d),i(e,f),i(e,A),i(e,y))}},{key:"toUTC",value:function(){return i(this,b)||(this.minute+=(new Date).getTimezoneOffset(),c(this,b,!0)),this}},{key:"toUnix",value:function(){return this.unix}},{key:"toJulianDay",value:function(){return this.dayOfBeginning+i(this,S)[i(this,I)]}},{key:"toObject",value:function(){return{year:i(this,m),month:this.month,day:i(this,N),weekDay:this.weekDay,hour:i(this,d),minute:i(this,f),second:i(this,A),millisecond:i(this,y),weekOfYear:this.weekOfYear,dayOfYear:this.dayOfYear,daysLeft:this.daysLeft,calendar:i(this,I).toLowerCase(),local:i(this,g).toLowerCase(),format:i(this,v)||"YYYY/MM/DD"}}},{key:"toJSON",value:function(){return this.toObject()}},{key:"valueOf",value:function(){var e=this.dayOfBeginning+i(this,S)[i(this,I)]-i(this,S).unix,a=i(this,b)?0:60*(new Date).getTimezoneOffset()*1e3;return 24*e*60*60*1e3+60*i(this,d)*60*1e3+60*i(this,f)*1e3+1e3*i(this,A)+this.millisecond+a}},{key:"dayOfBeginning",get:function(){if(this.isValid){var e=(i(this,I)!==s.calendars.INDIAN&&i(this,m)>0?i(this,m)-1:i(this,m))*i(this,O)[i(this,I)],a=this.isLeap?this.leaps.length-1:this.leaps.length;return i(this,m)>0&&(e+=a),i(this,m)<0&&(e-=a),e+=this.dayOfYear}}},{key:"dayOfYear",get:function(){if(this.isValid){for(var e=i(this,N),a=this.months,t=0;t<a.length&&!(t>=i(this,u));t++)e+=a[t].length;return e}}},{key:"weekOfYear",get:function(){if(this.isValid)return 1+~~(this.dayOfYear/7)}},{key:"daysLeft",get:function(){if(this.isValid){var e=i(this,O)[i(this,I)];return(this.isLeap?e+1:e)-this.dayOfYear}}},{key:"year",get:function(){return i(this,m)},set:function(e){e=i(this,C).call(this,e),c(this,m,e),i(this,Y).call(this),i(this,x).call(this)}},{key:"month",get:function(){var e=this.months[i(this,u)];return e?(e.index=i(this,u),e.number=e.index+1,e.toString=function(){return this.number},e):{}},set:function(e){e&&e.constructor===Object&&e.number&&(e=e.number),e=i(this,C).call(this,e),c(this,u,e-1),i(this,x).call(this)}},{key:"day",get:function(){return i(this,N)},set:function(e){e=i(this,C).call(this,e),c(this,N,e),i(this,x).call(this)}},{key:"weekDay",get:function(){var e=(this.toJulianDay()+2)%7,a=i(this,D)[i(this,I)][e];if(!a)return{};var t=i(this,p).weekDays?i(this,p).weekDays[a.index]:a.locals[i(this,g)];return a=o({index:a.index,number:a.index+1,toString:function(){return this.number}},t)}},{key:"hour",get:function(){return i(this,d)},set:function(e){e=i(this,C).call(this,e),c(this,d,e),i(this,x).call(this)}},{key:"minute",get:function(){return i(this,f)},set:function(e){e=i(this,C).call(this,e),c(this,f,e),i(this,x).call(this)}},{key:"second",get:function(){return i(this,A)},set:function(e){e=i(this,C).call(this,e),c(this,A,e),i(this,x).call(this)}},{key:"millisecond",get:function(){return i(this,y)},set:function(e){e=i(this,C).call(this,e),c(this,y,e),i(this,x).call(this)}},{key:"months",get:function(){var e=this,a=i(this,F)[i(this,I)];switch(i(this,I)){case s.calendars.GREGORIAN:a[1].length=this.isLeap?29:28;break;case s.calendars.INDIAN:a[0].length=this.isLeap?31:30;break;default:a[11].length=this.isLeap?30:29}return a=a.map((function(a,t){var s=i(e,p).months?i(e,p).months[t]:a.locals[i(e,g)];return o({length:a.length},s)}))},set:function(e){return e?Array.isArray(e)&&12===e.length&&e.every((function(e){return Array.isArray(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))?void(i(this,p).months=e.map((function(e){return{name:e[0],shortName:e[1]}}))):console.warn("Invalid Months"):delete i(this,p).months}},{key:"weekDays",get:function(){var e=this,a=i(this,D)[i(this,I)];return a.sort((function(e,a){return e.index-a.index})),a=a.map((function(a,t){var s=i(e,p).weekDays?i(e,p).weekDays[t]:a.locals[i(e,g)];return o({index:a.index,number:a.index+1},s)}))},set:function(e){return e?Array.isArray(e)&&7===e.length&&e.every((function(e){return Array.isArray(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))?void(i(this,p).weekDays=e.map((function(e){return{name:e[0],shortName:e[1]}}))):console.warn("Invalid weekDays"):delete i(this,p).weekDays}},{key:"leaps",get:function(){return i(this,k)}},{key:"calendar",get:function(){return i(this,I).toLowerCase()},set:function(e){this.convert(e)}},{key:"local",get:function(){return i(this,g).toLowerCase()},set:function(e){e=e.toUpperCase(),s.locals[e]||(e=s.locals.EN),c(this,g,e)}},{key:"meridiems",get:function(){return i(this,M)[i(this,g)]}},{key:"digits",get:function(){return i(this,H)[i(this,g)]}},{key:"_format",get:function(){return i(this,v)},set:function(e){"string"==typeof e&&c(this,v,e)}},{key:"isLeap",get:function(){return i(this,k).includes(i(this,m))}},{key:"isValid",get:function(){return!Number.isNaN(Number(i(this,m)+i(this,u)+i(this,N)))}},{key:"isUTC",get:function(){return i(this,b)}},{key:"unix",get:function(){return(this.valueOf()-this.millisecond)/1e3}},{key:"ignoreList",get:function(){return i(this,R)},set:function(e){Array.isArray(e)&&c(this,R,e)}}])&&r(n.prototype,l),L&&r(n,L),s}();h(L,"calendars",{GREGORIAN:"GREGORIAN",PERSIAN:"PERSIAN",ARABIC:"ARABIC",INDIAN:"INDIAN"}),h(L,"locals",{EN:"EN",FA:"FA",AR:"AR",HI:"HI"});var j=L;export default j;
function e(a){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function a(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],s=!0,n=!1,l=void 0;try{for(var o,r=e[Symbol.iterator]();!(s=(o=r.next()).done)&&(t.push(o.value),!a||t.length!==a);s=!0);}catch(e){n=!0,l=e}finally{try{s||null==r.return||r.return()}finally{if(n)throw l}}return t}(e,a)||s(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,a){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=s(e))||a&&e&&"number"==typeof e.length){t&&(e=t);var n=0,l=function(){};return{s:l,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,h=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return r=e.done,e},e:function(e){h=!0,o=e},f:function(){try{r||null==t.return||t.return()}finally{if(h)throw o}}}}function s(e,a){if(e){if("string"==typeof e)return n(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,a):void 0}}function n(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,s=new Array(a);t<a;t++)s[t]=e[t];return s}function l(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);a&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,s)}return t}function o(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?l(Object(t),!0).forEach((function(a){h(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function r(e,a){for(var t=0;t<a.length;t++){var s=a[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function h(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function i(e,a){var t=a.get(e);if(!t)throw new TypeError("attempted to get private field on non-instance");return t.get?t.get.call(e):t.value}function c(e,a,t){var s=a.get(e);if(!s)throw new TypeError("attempted to set private field on non-instance");if(s.set)s.set.call(e,t);else{if(!s.writable)throw new TypeError("attempted to set read only private field");s.value=t}return t}var m=new WeakMap,u=new WeakMap,N=new WeakMap,d=new WeakMap,f=new WeakMap,y=new WeakMap,A=new WeakMap,g=new WeakMap,v=new WeakMap,I=new WeakMap,k=new WeakMap,b=new WeakMap,p=new WeakMap,w=new WeakMap,R=new WeakMap,E=new WeakMap,D=new WeakMap,F=new WeakMap,M=new WeakMap,H=new WeakMap,S=new WeakMap,O=new WeakMap,x=new WeakMap,W=new WeakMap,Y=new WeakMap,C=new WeakMap,L=function(){function s(e){var a,t,n,l,r,L,j,P,G,B,T,J,U,V,z,K,$,Q,_,Z,q,X,ee,ae,te,se,ne,le,oe,re,he,ie,ce,me,ue,Ne,de,fe,ye,Ae,ge,ve,Ie,ke,be,pe,we,Re,Ee,De,Fe,Me,He,Se,Oe,xe,We,Ye,Ce,Le,je,Pe,Ge,Be,Te,Je,Ue,Ve,ze,Ke,$e,Qe,_e,Ze,qe,Xe,ea,aa,ta,sa,na,la,oa=this;!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,s),m.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),N.set(this,{writable:!0,value:void 0}),d.set(this,{writable:!0,value:void 0}),f.set(this,{writable:!0,value:void 0}),y.set(this,{writable:!0,value:void 0}),A.set(this,{writable:!0,value:void 0}),g.set(this,{writable:!0,value:void 0}),v.set(this,{writable:!0,value:s.locales.EN}),I.set(this,{writable:!0,value:s.calendars.GREGORIAN}),k.set(this,{writable:!0,value:!1}),b.set(this,{writable:!0,value:[]}),p.set(this,{writable:!0,value:{}}),w.set(this,{writable:!0,value:/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ$/}),R.set(this,{writable:!0,value:[]}),E.set(this,{writable:!0,value:{YYYY:function(e){return c(oa,m,i(oa,C).call(oa,e))},YY:function(e){switch(i(oa,I)){case s.calendars.PERSIAN:e="13"+e;break;case s.calendars.ARABIC:e="14"+e;break;default:e="20"+e}c(oa,m,i(oa,C).call(oa,e))},MMMM:function(e){return c(oa,u,oa.months.findIndex((function(a){return e.toLowerCase()===a.name.toLowerCase()})))},MMM:function(e){return c(oa,u,oa.months.findIndex((function(a){return e.toLowerCase()===a.shortName.toLowerCase()})))},MM:function(e){return c(oa,u,i(oa,C).call(oa,e)-1)},M:function(e){return c(oa,u,i(oa,C).call(oa,e)-1)},DD:function(e){return c(oa,N,i(oa,C).call(oa,e))},D:function(e){return c(oa,N,i(oa,C).call(oa,e))},HH:function(e){return c(oa,d,i(oa,C).call(oa,e))},H:function(e){return c(oa,d,i(oa,C).call(oa,e))},hh:function(e){var a=i(oa,C).call(oa,e);c(oa,d,a>12?a-12:a)},h:function(e){var a=i(oa,C).call(oa,e);c(oa,d,a>12?a-12:a)},mm:function(e){return c(oa,f,i(oa,C).call(oa,e))},m:function(e){return c(oa,f,i(oa,C).call(oa,e))},ss:function(e){return c(oa,y,i(oa,C).call(oa,e))},s:function(e){return c(oa,y,i(oa,C).call(oa,e))},SSS:function(e){return oa.millisecond=i(oa,C).call(oa,e)},SS:function(e){return oa.millisecond=i(oa,C).call(oa,e)},S:function(e){return oa.millisecond=i(oa,C).call(oa,e)}}}),D.set(this,{writable:!0,value:(Ee={},h(Ee,s.calendars.GREGORIAN,[{length:31,locales:(a={},h(a,s.locales.EN,{name:"January",shortName:"Jan"}),h(a,s.locales.FA,{name:"ژانویه",shortName:"ژان"}),h(a,s.locales.AR,{name:"يناير",shortName:"ينا"}),h(a,s.locales.HI,{name:"जनवरी",shortName:"जन"}),a)},{length:void 0,locales:(t={},h(t,s.locales.EN,{name:"February",shortName:"Feb"}),h(t,s.locales.FA,{name:"فوریه",shortName:"فور"}),h(t,s.locales.AR,{name:"فبراير",shortName:"فبر"}),h(t,s.locales.HI,{name:"फ़रवरी",shortName:"फ़र"}),t)},{length:31,locales:(n={},h(n,s.locales.EN,{name:"March",shortName:"Mar"}),h(n,s.locales.FA,{name:"مارس",shortName:"ما"}),h(n,s.locales.AR,{name:"مارس",shortName:"ما"}),h(n,s.locales.HI,{name:"मार्च",shortName:"मार्च"}),n)},{length:30,locales:(l={},h(l,s.locales.EN,{name:"April",shortName:"Apr"}),h(l,s.locales.FA,{name:"آوریل",shortName:"آور"}),h(l,s.locales.AR,{name:"إبريل",shortName:"إبر"}),h(l,s.locales.HI,{name:"अप्रैल",shortName:"अप्रैल"}),l)},{length:31,locales:(r={},h(r,s.locales.EN,{name:"May",shortName:"May"}),h(r,s.locales.FA,{name:"مه",shortName:"مه"}),h(r,s.locales.AR,{name:"مايو",shortName:"ما"}),h(r,s.locales.HI,{name:"मई",shortName:"मई"}),r)},{length:30,locales:(L={},h(L,s.locales.EN,{name:"June",shortName:"Jun"}),h(L,s.locales.FA,{name:"ژوئن",shortName:"ژو"}),h(L,s.locales.AR,{name:"يونيو",shortName:"يو"}),h(L,s.locales.HI,{name:"जून",shortName:"जून"}),L)},{length:31,locales:(j={},h(j,s.locales.EN,{name:"July",shortName:"Jul"}),h(j,s.locales.FA,{name:"ژوئیه",shortName:"ژوئیه"}),h(j,s.locales.AR,{name:"يوليو",shortName:"يوليو"}),h(j,s.locales.HI,{name:"जुलाई",shortName:"जुल"}),j)},{length:31,locales:(P={},h(P,s.locales.EN,{name:"August",shortName:"Aug"}),h(P,s.locales.FA,{name:"اوت",shortName:"اوت"}),h(P,s.locales.AR,{name:"أغسطس",shortName:"أغس"}),h(P,s.locales.HI,{name:"अगस्त",shortName:"अग"}),P)},{length:30,locales:(G={},h(G,s.locales.EN,{name:"September",shortName:"Sep"}),h(G,s.locales.FA,{name:"سپتامبر",shortName:"سپ"}),h(G,s.locales.AR,{name:"سبتمبر",shortName:"سب"}),h(G,s.locales.HI,{name:"सितंबर",shortName:"सित"}),G)},{length:31,locales:(B={},h(B,s.locales.EN,{name:"October",shortName:"Oct"}),h(B,s.locales.FA,{name:"اکتبر",shortName:"اک"}),h(B,s.locales.AR,{name:"أكتوبر",shortName:"اک"}),h(B,s.locales.HI,{name:"अक्तूबर",shortName:"अक्तू"}),B)},{length:30,locales:(T={},h(T,s.locales.EN,{name:"November",shortName:"Nov"}),h(T,s.locales.FA,{name:"نوامبر",shortName:"نو"}),h(T,s.locales.AR,{name:"نوفمبر",shortName:"نو"}),h(T,s.locales.HI,{name:"नवंबर",shortName:"नव"}),T)},{length:31,locales:(J={},h(J,s.locales.EN,{name:"December",shortName:"Dec"}),h(J,s.locales.FA,{name:"دسامبر",shortName:"دس"}),h(J,s.locales.AR,{name:"ديسمبر",shortName:"دس"}),h(J,s.locales.HI,{name:"दिसंबर",shortName:"दिस"}),J)}]),h(Ee,s.calendars.PERSIAN,[{length:31,locales:(U={},h(U,s.locales.EN,{name:"Farvardin",shortName:"Far"}),h(U,s.locales.FA,{name:"فروردین",shortName:"فر"}),h(U,s.locales.AR,{name:"فروردین",shortName:"فر"}),h(U,s.locales.HI,{name:"फर्वादिन",shortName:"फर्वादिन"}),U)},{length:31,locales:(V={},h(V,s.locales.EN,{name:"Ordibehesht",shortName:"Ord"}),h(V,s.locales.FA,{name:"اردیبهشت",shortName:"ار"}),h(V,s.locales.AR,{name:"اردیبهشت",shortName:"ار"}),h(V,s.locales.HI,{name:"ओर्दिवेहेस्ट",shortName:"ओर्दिवेहेस्ट"}),V)},{length:31,locales:(z={},h(z,s.locales.EN,{name:"Khordad",shortName:"Kho"}),h(z,s.locales.FA,{name:"خرداد",shortName:"خرد"}),h(z,s.locales.AR,{name:"خرداد",shortName:"خرد"}),h(z,s.locales.HI,{name:"खोरर्दाद",shortName:"खोरर्दाद"}),z)},{length:31,locales:(K={},h(K,s.locales.EN,{name:"Tir",shortName:"Tir"}),h(K,s.locales.FA,{name:"تیر",shortName:"تیر"}),h(K,s.locales.AR,{name:"تیر",shortName:"تیر"}),h(K,s.locales.HI,{name:"टिर",shortName:"टिर"}),K)},{length:31,locales:($={},h($,s.locales.EN,{name:"Mordad",shortName:"Mor"}),h($,s.locales.FA,{name:"مرداد",shortName:"مر"}),h($,s.locales.AR,{name:"مرداد",shortName:"مر"}),h($,s.locales.HI,{name:"मोरदाद",shortName:"मोरदाद"}),$)},{length:31,locales:(Q={},h(Q,s.locales.EN,{name:"Shahrivar",shortName:"Sha"}),h(Q,s.locales.FA,{name:"شهریور",shortName:"شه"}),h(Q,s.locales.AR,{name:"شهریور",shortName:"شه"}),h(Q,s.locales.HI,{name:"शाहरीवर्",shortName:"शाहरीवर्"}),Q)},{length:30,locales:(_={},h(_,s.locales.EN,{name:"Mehr",shortName:"Meh"}),h(_,s.locales.FA,{name:"مهر",shortName:"مه"}),h(_,s.locales.AR,{name:"مهر",shortName:"مه"}),h(_,s.locales.HI,{name:"मेहर",shortName:"मेहर"}),_)},{length:30,locales:(Z={},h(Z,s.locales.EN,{name:"Aban",shortName:"Aba"}),h(Z,s.locales.FA,{name:"آبان",shortName:"آبا"}),h(Z,s.locales.AR,{name:"آبان",shortName:"آبا"}),h(Z,s.locales.HI,{name:"अवन",shortName:"अवन"}),Z)},{length:30,locales:(q={},h(q,s.locales.EN,{name:"Azar",shortName:"Aza"}),h(q,s.locales.FA,{name:"آذر",shortName:"آذ"}),h(q,s.locales.AR,{name:"آذر",shortName:"آذ"}),h(q,s.locales.HI,{name:"अज़र",shortName:"अज़र"}),q)},{length:30,locales:(X={},h(X,s.locales.EN,{name:"Dey",shortName:"Dey"}),h(X,s.locales.FA,{name:"دی",shortName:"دی"}),h(X,s.locales.AR,{name:"دی",shortName:"دی"}),h(X,s.locales.HI,{name:"डे",shortName:"डे"}),X)},{length:30,locales:(ee={},h(ee,s.locales.EN,{name:"Bahman",shortName:"Bah"}),h(ee,s.locales.FA,{name:"بهمن",shortName:"بهم"}),h(ee,s.locales.AR,{name:"بهمن",shortName:"بهم"}),h(ee,s.locales.HI,{name:"बहमन",shortName:"बहमन"}),ee)},{length:void 0,locales:(ae={},h(ae,s.locales.EN,{name:"Esfand",shortName:"Esf"}),h(ae,s.locales.FA,{name:"اسفند",shortName:"اسف"}),h(ae,s.locales.AR,{name:"اسفند",shortName:"اسف"}),h(ae,s.locales.HI,{name:"ईस्फन्द्",shortName:"ईस्फन्द्"}),ae)}]),h(Ee,s.calendars.ARABIC,[{length:30,locales:(te={},h(te,s.locales.AR,{name:"محرم",shortName:"محرم"}),h(te,s.locales.EN,{name:"Muharram",shortName:"Mu"}),h(te,s.locales.FA,{name:"محرم",shortName:"محرم"}),h(te,s.locales.HI,{name:"मुहर्रम",shortName:"मुहर्रम"}),te)},{length:29,locales:(se={},h(se,s.locales.AR,{name:"صفر",shortName:"صفر"}),h(se,s.locales.EN,{name:"Safar",shortName:"Sa"}),h(se,s.locales.FA,{name:"صفر",shortName:"صفر"}),h(se,s.locales.HI,{name:"सफर",shortName:"सफर"}),se)},{length:30,locales:(ne={},h(ne,s.locales.AR,{name:"ربیع الاول",shortName:"ربیع الاول"}),h(ne,s.locales.EN,{name:"Rabi`al-Awwal",shortName:"RI"}),h(ne,s.locales.FA,{name:"ربیع الاول",shortName:"ربیع الاول"}),h(ne,s.locales.HI,{name:"राबी प्रथम",shortName:"राबी प्रथम"}),ne)},{length:29,locales:(le={},h(le,s.locales.AR,{name:"ربیع الثانی",shortName:"ربیع الثانی"}),h(le,s.locales.EN,{name:"Rabi`ath-Thani",shortName:"RII"}),h(le,s.locales.FA,{name:"ربیع الثانی",shortName:"ربیع الثانی"}),h(le,s.locales.HI,{name:"राबी द्वितीय",shortName:"राबी द्वितीय"}),le)},{length:30,locales:(oe={},h(oe,s.locales.AR,{name:"جمادی الاول",shortName:"جمادی الاول"}),h(oe,s.locales.EN,{name:"Jumada l-Ula",shortName:"JI"}),h(oe,s.locales.FA,{name:"جمادی الاول",shortName:"جمادی الاول"}),h(oe,s.locales.HI,{name:"जुम्डा प्रथम",shortName:"जुम्डा प्रथम"}),oe)},{length:29,locales:(re={},h(re,s.locales.AR,{name:"جمادی الثانی",shortName:"جمادی الثانی"}),h(re,s.locales.EN,{name:"Jumada t-Tania",shortName:"JII"}),h(re,s.locales.FA,{name:"جمادی الثانی",shortName:"جمادی الثانی"}),h(re,s.locales.HI,{name:"जुम्डा द्वितीय",shortName:"जुम्डा द्वितीय"}),re)},{length:30,locales:(he={},h(he,s.locales.AR,{name:"رجب",shortName:"رجب"}),h(he,s.locales.EN,{name:"Rajab",shortName:"Ra"}),h(he,s.locales.FA,{name:"رجب",shortName:"رجب"}),h(he,s.locales.HI,{name:"रजब",shortName:"रजब"}),he)},{length:29,locales:(ie={},h(ie,s.locales.AR,{name:"شعبان",shortName:"شعبان"}),h(ie,s.locales.EN,{name:"Sha`ban",shortName:"Sh"}),h(ie,s.locales.FA,{name:"شعبان",shortName:"شعبان"}),h(ie,s.locales.HI,{name:"शावन",shortName:"शावन"}),ie)},{length:30,locales:(ce={},h(ce,s.locales.AR,{name:"رمضان",shortName:"رمضان"}),h(ce,s.locales.EN,{name:"Ramadan",shortName:"Ra"}),h(ce,s.locales.FA,{name:"رمضان",shortName:"رمضان"}),h(ce,s.locales.HI,{name:"रमजान",shortName:"रमजान"}),ce)},{length:29,locales:(me={},h(me,s.locales.AR,{name:"شوال",shortName:"شوال"}),h(me,s.locales.EN,{name:"Shawwal",shortName:"Sh"}),h(me,s.locales.FA,{name:"شوال",shortName:"شوال"}),h(me,s.locales.HI,{name:"शव्व्ल",shortName:"शव्व्ल"}),me)},{length:30,locales:(ue={},h(ue,s.locales.AR,{name:"ذیقعده ",shortName:"ذیقعده"}),h(ue,s.locales.EN,{name:"Dhu l-Qa`da ",shortName:"DhQ"}),h(ue,s.locales.HI,{name:"जिल-क्दाह ",shortName:"जिल-क्दाह"}),ue)},{length:void 0,locales:(Ne={},h(Ne,s.locales.AR,{name:"ذیحجه",shortName:"ذیحجه"}),h(Ne,s.locales.EN,{name:"Dhu l-Hijja",shortName:"DhH"}),h(Ne,s.locales.FA,{name:"ذیحجه",shortName:"ذیحجه"}),h(Ne,s.locales.HI,{name:"जिल्-हिज्जाह",shortName:"जिल्-हिज्जाह"}),Ne)}]),h(Ee,s.calendars.INDIAN,[{length:void 0,locales:(de={},h(de,s.locales.EN,{name:"Chaitra",shortName:"Cha"}),h(de,s.locales.FA,{name:"چیتره",shortName:"چیت"}),h(de,s.locales.AR,{name:"شيترا",shortName:"شیت"}),h(de,s.locales.HI,{name:"चैत्र",shortName:"चैत्र"}),de)},{length:31,locales:(fe={},h(fe,s.locales.EN,{name:"Vaishakh",shortName:"Vai"}),h(fe,s.locales.FA,{name:"ویشاکهه",shortName:"ویش"}),h(fe,s.locales.AR,{name:"فيشاخ",shortName:"فیش"}),h(fe,s.locales.HI,{name:"वैशाख",shortName:"वैशाख"}),fe)},{length:31,locales:(ye={},h(ye,s.locales.EN,{name:"Jyaishtha",shortName:"Jya"}),h(ye,s.locales.FA,{name:"جییشته",shortName:"جیش"}),h(ye,s.locales.AR,{name:"جیشتا",shortName:"جیش"}),h(ye,s.locales.HI,{name:"ज्येष्ठ",shortName:"ज्येष्ठ"}),ye)},{length:31,locales:(Ae={},h(Ae,s.locales.EN,{name:"Ashadha",shortName:"Ash"}),h(Ae,s.locales.FA,{name:"آشادهه",shortName:"آشا"}),h(Ae,s.locales.AR,{name:"أشاد",shortName:"أشا"}),h(Ae,s.locales.HI,{name:"आषाढ़",shortName:"आषाढ़"}),Ae)},{length:31,locales:(ge={},h(ge,s.locales.EN,{name:"Shravana",shortName:"Shr"}),h(ge,s.locales.FA,{name:"شراونه",shortName:"شرا"}),h(ge,s.locales.AR,{name:"شرافان",shortName:"شرا"}),h(ge,s.locales.HI,{name:"श्रावण",shortName:"श्रावण"}),ge)},{length:31,locales:(ve={},h(ve,s.locales.EN,{name:"Bhadrapad",shortName:"Bha"}),h(ve,s.locales.FA,{name:"بهادره",shortName:"بها"}),h(ve,s.locales.AR,{name:"بهادرابادا",shortName:"بها"}),h(ve,s.locales.HI,{name:"भाद्रपद",shortName:"भाद्रपद"}),ve)},{length:30,locales:(Ie={},h(Ie,s.locales.EN,{name:"Ashwin",shortName:"Ash"}),h(Ie,s.locales.FA,{name:"آشوین",shortName:"آشو"}),h(Ie,s.locales.AR,{name:"اشوين",shortName:"اشو"}),h(Ie,s.locales.HI,{name:"आश्विन",shortName:"आश्विन"}),Ie)},{length:30,locales:(ke={},h(ke,s.locales.EN,{name:"Kartik",shortName:"Kar"}),h(ke,s.locales.FA,{name:"کارتیکه",shortName:"کار"}),h(ke,s.locales.AR,{name:"كارتيك",shortName:"کار"}),h(ke,s.locales.HI,{name:"कार्तिक",shortName:"कार्तिक"}),ke)},{length:30,locales:(be={},h(be,s.locales.EN,{name:"Agrahayana",shortName:"Agr"}),h(be,s.locales.FA,{name:"اگرهینه",shortName:"اگر"}),h(be,s.locales.AR,{name:"أجراهيان",shortName:"اجر"}),h(be,s.locales.HI,{name:"अग्रहायण",shortName:"अग्रहायण"}),be)},{length:30,locales:(pe={},h(pe,s.locales.EN,{name:"Paush",shortName:"Pau"}),h(pe,s.locales.FA,{name:"پاوشه",shortName:"پاو"}),h(pe,s.locales.AR,{name:"بوش",shortName:"بوش"}),h(pe,s.locales.HI,{name:"पौष",shortName:"पौष"}),pe)},{length:30,locales:(we={},h(we,s.locales.EN,{name:"Magh",shortName:"Mag"}),h(we,s.locales.FA,{name:"ماگهه",shortName:"ماگ"}),h(we,s.locales.AR,{name:"ماک",shortName:"ماک"}),h(we,s.locales.HI,{name:"माघ",shortName:"माघ"}),we)},{length:30,locales:(Re={},h(Re,s.locales.EN,{name:"Phalgun",shortName:"Pha"}),h(Re,s.locales.FA,{name:"پهالگونه",shortName:"پها"}),h(Re,s.locales.AR,{name:"فالغون",shortName:"فال"}),h(Re,s.locales.HI,{name:"फाल्गुन",shortName:"फाल्गुन"}),Re)}]),Ee)}),F.set(this,{writable:!0,value:(aa={},h(aa,s.calendars.GREGORIAN,[{index:0,locales:(De={},h(De,s.locales.EN,{name:"Sunday",shortName:"Sun"}),h(De,s.locales.FA,{name:"یکشنبه",shortName:"یک"}),h(De,s.locales.AR,{name:"الأحد",shortName:"اح"}),h(De,s.locales.HI,{name:"रविवार",shortName:"रवि"}),De)},{index:1,locales:(Fe={},h(Fe,s.locales.EN,{name:"Monday",shortName:"Mon"}),h(Fe,s.locales.FA,{name:"دوشنبه",shortName:"دو"}),h(Fe,s.locales.AR,{name:"الإثنينِ",shortName:"ثن"}),h(Fe,s.locales.HI,{name:"सोमवार",shortName:"सोम"}),Fe)},{index:2,locales:(Me={},h(Me,s.locales.EN,{name:"Tuesday",shortName:"Tue"}),h(Me,s.locales.FA,{name:"سه شنبه",shortName:"سه"}),h(Me,s.locales.AR,{name:"الثلاثاء",shortName:"ثل"}),h(Me,s.locales.HI,{name:"मंगलवार",shortName:"मंगल"}),Me)},{index:3,locales:(He={},h(He,s.locales.EN,{name:"Wednesday",shortName:"Wed"}),h(He,s.locales.FA,{name:"چهارشنبه",shortName:"چهار"}),h(He,s.locales.AR,{name:"الأربعاء",shortName:"ار"}),h(He,s.locales.HI,{name:"बुधवार",shortName:"बुध"}),He)},{index:4,locales:(Se={},h(Se,s.locales.EN,{name:"Thursday",shortName:"Thu"}),h(Se,s.locales.FA,{name:"پنجشنبه",shortName:"پنج"}),h(Se,s.locales.AR,{name:"الخميس",shortName:"خم"}),h(Se,s.locales.HI,{name:"गुरुवार",shortName:"गुरु"}),Se)},{index:5,locales:(Oe={},h(Oe,s.locales.EN,{name:"Friday",shortName:"Fri"}),h(Oe,s.locales.FA,{name:"جمعه",shortName:"جم"}),h(Oe,s.locales.AR,{name:"الجمعة",shortName:"جم"}),h(Oe,s.locales.HI,{name:"शुक्रवार",shortName:"शुक्र"}),Oe)},{index:6,locales:(xe={},h(xe,s.locales.EN,{name:"Saturday",shortName:"Sat"}),h(xe,s.locales.FA,{name:"شنبه",shortName:"شن"}),h(xe,s.locales.AR,{name:"السّبت",shortName:"سب"}),h(xe,s.locales.HI,{name:"शनिवार",shortName:"शनि"}),xe)}]),h(aa,s.calendars.PERSIAN,[{index:1,locales:(We={},h(We,s.locales.EN,{name:"YekShanbeh",shortName:"Yek"}),h(We,s.locales.FA,{name:"یکشنبه",shortName:"یک"}),h(We,s.locales.AR,{name:"الأحد",shortName:"اح"}),h(We,s.locales.HI,{name:"रविवार",shortName:"रवि"}),We)},{index:2,locales:(Ye={},h(Ye,s.locales.EN,{name:"Doshanbeh",shortName:"Do"}),h(Ye,s.locales.FA,{name:"دوشنبه",shortName:"دو"}),h(Ye,s.locales.AR,{name:"الإثنينِ",shortName:"ثن"}),h(Ye,s.locales.HI,{name:"सोमवार",shortName:"सोम"}),Ye)},{index:3,locales:(Ce={},h(Ce,s.locales.EN,{name:"Seshanbeh",shortName:"Se"}),h(Ce,s.locales.FA,{name:"سه شنبه",shortName:"سه"}),h(Ce,s.locales.AR,{name:"الثلاثاء",shortName:"ثل"}),h(Ce,s.locales.HI,{name:"मंगलवार",shortName:"मंगल"}),Ce)},{index:4,locales:(Le={},h(Le,s.locales.EN,{name:"Chaharshanbeh",shortName:"Cha"}),h(Le,s.locales.FA,{name:"چهارشنبه",shortName:"چهار"}),h(Le,s.locales.AR,{name:"الأربعاء",shortName:"ار"}),h(Le,s.locales.HI,{name:"बुधवार",shortName:"बुध"}),Le)},{index:5,locales:(je={},h(je,s.locales.EN,{name:"Panjshanbeh",shortName:"Pan"}),h(je,s.locales.FA,{name:"پنجشنبه",shortName:"پنج"}),h(je,s.locales.AR,{name:"الخميس",shortName:"خم"}),h(je,s.locales.HI,{name:"गुरुवार",shortName:"गुरु"}),je)},{index:6,locales:(Pe={},h(Pe,s.locales.EN,{name:"Jom'eh",shortName:"Jom"}),h(Pe,s.locales.FA,{name:"جمعه",shortName:"جم"}),h(Pe,s.locales.AR,{name:"الجمعة",shortName:"جم"}),h(Pe,s.locales.HI,{name:"शुक्रवार",shortName:"शुक्र"}),Pe)},{index:0,locales:(Ge={},h(Ge,s.locales.EN,{name:"Shanbeh",shortName:"Sha"}),h(Ge,s.locales.FA,{name:"شنبه",shortName:"شن"}),h(Ge,s.locales.AR,{name:"السّبت",shortName:"سب"}),h(Ge,s.locales.HI,{name:"शनिवार",shortName:"शनि"}),Ge)}]),h(aa,s.calendars.ARABIC,[{index:1,locales:(Be={},h(Be,s.locales.AR,{name:"الأحد",shortName:"احد"}),h(Be,s.locales.EN,{name:"al-'ahad",shortName:"Aha"}),h(Be,s.locales.FA,{name:"يکشنبه",shortName:"یک"}),h(Be,s.locales.HI,{name:"रविवार",shortName:"रवि"}),Be)},{index:2,locales:(Te={},h(Te,s.locales.AR,{name:"الإثنينِ",shortName:"ثن"}),h(Te,s.locales.EN,{name:"al-'ithnayn",shortName:"Ith"}),h(Te,s.locales.FA,{name:"دوشنبه",shortName:"دو"}),h(Te,s.locales.HI,{name:"सोमवार",shortName:"सोम"}),Te)},{index:3,locales:(Je={},h(Je,s.locales.AR,{name:"الثلاثاء",shortName:"ثلا"}),h(Je,s.locales.EN,{name:"ath-thalatha",shortName:"Tha"}),h(Je,s.locales.FA,{name:"سه شنبه",shortName:"سه"}),h(Je,s.locales.HI,{name:"मंगलवार",shortName:"मंगल"}),Je)},{index:4,locales:(Ue={},h(Ue,s.locales.AR,{name:"الأربعاء",shortName:"ارب"}),h(Ue,s.locales.EN,{name:"al-'arb`a'",shortName:"Arb"}),h(Ue,s.locales.FA,{name:"چهار شنبه",shortName:"چهار"}),h(Ue,s.locales.HI,{name:"बुधवार",shortName:"बुध"}),Ue)},{index:5,locales:(Ve={},h(Ve,s.locales.AR,{name:"الخميس",shortName:"خم"}),h(Ve,s.locales.EN,{name:"al-khamis",shortName:"Kha"}),h(Ve,s.locales.FA,{name:"پنج شنبه\t",shortName:"پنج"}),h(Ve,s.locales.HI,{name:"गुरुवार",shortName:"गुरु"}),Ve)},{index:6,locales:(ze={},h(ze,s.locales.AR,{name:"الجمعة",shortName:"جم"}),h(ze,s.locales.EN,{name:"al-jum`a",shortName:"Jum"}),h(ze,s.locales.FA,{name:"جمعه",shortName:"جم"}),h(ze,s.locales.HI,{name:"शुक्रवार",shortName:"शुक्र"}),ze)},{index:0,locales:(Ke={},h(Ke,s.locales.AR,{name:"السّبت",shortName:"سبت"}),h(Ke,s.locales.EN,{name:"as-sabt",shortName:"Sab"}),h(Ke,s.locales.FA,{name:"شنبه",shortName:"شن"}),h(Ke,s.locales.HI,{name:"शनिवार",shortName:"शनि"}),Ke)}]),h(aa,s.calendars.INDIAN,[{index:0,locales:($e={},h($e,s.locales.EN,{name:"Ravivara",shortName:"Rav"}),h($e,s.locales.FA,{name:"يکشنبه",shortName:"یک"}),h($e,s.locales.AR,{name:"الأحد",shortName:"احد"}),h($e,s.locales.HI,{name:"रविवार",shortName:"रवि"}),$e)},{index:1,locales:(Qe={},h(Qe,s.locales.EN,{name:"Somavara",shortName:"Som"}),h(Qe,s.locales.FA,{name:"دوشنبه",shortName:"دو"}),h(Qe,s.locales.AR,{name:"الإثنينِ",shortName:"ثن"}),h(Qe,s.locales.HI,{name:"सोमवार",shortName:"सोम"}),Qe)},{index:2,locales:(_e={},h(_e,s.locales.EN,{name:"Mangalavara",shortName:"Man"}),h(_e,s.locales.FA,{name:"سه شنبه\t",shortName:"سه"}),h(_e,s.locales.AR,{name:"الثلاثاء",shortName:"ثلا"}),h(_e,s.locales.HI,{name:"मंगलवार",shortName:"मंगल"}),_e)},{index:3,locales:(Ze={},h(Ze,s.locales.EN,{name:"Budhavara",shortName:"Bud"}),h(Ze,s.locales.FA,{name:"چهار شنبه",shortName:"چهار"}),h(Ze,s.locales.AR,{name:"الأربعاء",shortName:"ارب"}),h(Ze,s.locales.HI,{name:"बुधवार",shortName:"बुध"}),Ze)},{index:4,locales:(qe={},h(qe,s.locales.EN,{name:"Brihaspatvara",shortName:"Bri"}),h(qe,s.locales.FA,{name:"پنج شنبه\t",shortName:"پنج"}),h(qe,s.locales.AR,{name:"الخميس",shortName:"خم"}),h(qe,s.locales.HI,{name:"गुरुवार",shortName:"गुरु"}),qe)},{index:5,locales:(Xe={},h(Xe,s.locales.EN,{name:"Sukravara",shortName:"Suk"}),h(Xe,s.locales.FA,{name:"جمعه",shortName:"جم"}),h(Xe,s.locales.AR,{name:"الجمعة",shortName:"جم"}),h(Xe,s.locales.HI,{name:"शुक्रवार",shortName:"शुक्र"}),Xe)},{index:6,locales:(ea={},h(ea,s.locales.EN,{name:"Sanivara",shortName:"San"}),h(ea,s.locales.FA,{name:"شنبه",shortName:"شن"}),h(ea,s.locales.AR,{name:"السّبت",shortName:"سبت"}),h(ea,s.locales.HI,{name:"शनिवार",shortName:"शनि"}),ea)}]),aa)}),M.set(this,{writable:!0,value:(ta={},h(ta,s.locales.EN,["0","1","2","3","4","5","6","7","8","9"]),h(ta,s.locales.FA,["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"]),h(ta,s.locales.AR,["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"]),h(ta,s.locales.HI,["०","१","२","३","४","५","६","७","८","९"]),ta)}),H.set(this,{writable:!0,value:(sa={},h(sa,s.locales.EN,[{name:"AM",shortName:"am"},{name:"PM",shortName:"pm"}]),h(sa,s.locales.FA,[{name:"قبل از ظهر",shortName:"ق.ظ"},{name:"بعد از ظهر",shortName:"ب.ظ"}]),h(sa,s.locales.AR,[{name:"قبل الظهر",shortName:"ق.ظ"},{name:"بعد الظهر",shortName:"ب.ظ"}]),h(sa,s.locales.HI,[{name:"दोपहर से पहले",shortName:"पूर्वाह्न"},{name:"मध्याह्न के बाद",shortName:"अपराह्न"}]),sa)}),S.set(this,{writable:!0,value:(na={},h(na,s.calendars.GREGORIAN,1721424),h(na,s.calendars.PERSIAN,1948319),h(na,s.calendars.ARABIC,1948438),h(na,s.calendars.INDIAN,1749628),h(na,"unix",2440587),na)}),O.set(this,{writable:!0,value:(la={},h(la,s.calendars.GREGORIAN,365),h(la,s.calendars.PERSIAN,365),h(la,s.calendars.ARABIC,354),h(la,s.calendars.INDIAN,365),la)}),x.set(this,{writable:!0,value:function(){var e=function(){for(var e=!1;i(oa,u)<0;)c(oa,u,i(oa,u)+12),c(oa,m,i(oa,m)-1),0===i(oa,m)&&oa.calendar!==s.calendars.INDIAN&&c(oa,m,-1),e=!0;for(;i(oa,u)>11;)c(oa,u,i(oa,u)-12),c(oa,m,i(oa,m)+1),0===i(oa,m)&&oa.calendar!==s.calendars.INDIAN&&c(oa,m,1),e=!0;e&&i(oa,W).call(oa)};if(oa.isValid){for(;i(oa,A)>=1e3;)c(oa,A,i(oa,A)-1e3),c(oa,y,i(oa,y)+1);for(;i(oa,A)<0;)c(oa,A,i(oa,A)+1e3),c(oa,y,i(oa,y)-1);for(;i(oa,y)>=60;)c(oa,y,i(oa,y)-60),c(oa,f,i(oa,f)+1);for(;i(oa,y)<0;)c(oa,y,i(oa,y)+60),c(oa,f,i(oa,f)-1);for(;i(oa,f)>=60;)c(oa,f,i(oa,f)-60),c(oa,d,i(oa,d)+1);for(;i(oa,f)<0;)c(oa,f,i(oa,f)+60),c(oa,d,i(oa,d)-1);for(;i(oa,d)>=24;)c(oa,d,i(oa,d)-24),c(oa,N,i(oa,N)+1);for(;i(oa,d)<0;)c(oa,d,i(oa,d)+24),c(oa,N,i(oa,N)-1);for(;;){for((i(oa,u)<0||i(oa,u)>11)&&e();i(oa,N)<1;)c(oa,u,i(oa,u)-1),e(),c(oa,N,oa.month.length+i(oa,N));if(i(oa,N)<=oa.month.length||isNaN(i(oa,N)))break;c(oa,N,i(oa,N)-oa.month.length),c(oa,u,1+ +i(oa,u))}i(oa,d)||c(oa,d,0),i(oa,f)||c(oa,f,0),i(oa,y)||c(oa,y,0),i(oa,A)||c(oa,A,0)}}}),W.set(this,{writable:!0,value:function(){if(0!==i(oa,m)||i(oa,I)===s.calendars.INDIAN){var e=void 0;e=i(oa,I)!==s.calendars.INDIAN?i(oa,m)>0?1:-1:0;var a=function(){return i(oa,m)>0?e<=i(oa,m):i(oa,m)<=e},t=function(){return i(oa,m)>0?e++:e--},n=function(e){return e%4==0&&e%100!=0||e%400==0};switch(c(oa,b,[]),i(oa,I)){case s.calendars.PERSIAN:for(var l=.242362,o=i(oa,m)>0?.2684:.7316,r={5:4,38:37,199:198,232:231,265:264,298:297,557:558,590:591,623:624,982:983,1015:1016,1048:1049,1081:1082,1114:1115,1242:1243,1374:1375,1407:1408,1440:1441,1506:1507,1539:1540,1572:1573,1605:1606,1931:1932,1964:1965,2063:2064,2096:2097,2687:2686,2720:2719,2753:2752,2819:2818,2852:2851,2885:2884,3017:3016,3112:3111,3145:3144,3178:3177,3211:3210,3244:3243,3277:3276,3310:3309,3343:3342,3376:3375,3409:3408,3442:3441,3508:3507,3541:3540,3574:3573,3603:3602,3607:3606,3636:3635,3669:3668,3702:3701,3706:3705,3735:3734,3768:3767,3801:3800,3834:3833,3867:3866,3900:3899,3933:3932,3966:3965,3999:3998,4065:4064,4094:4093,4098:4097,4127:4126,4131:4130,4160:4159,4193:4192,4226:4225,4259:4258,4292:4291,4325:4324,4358:4357,4391:4390,4585:4584,4618:4617,4651:4650,4750:4749,4943:4944,4976:4977,5009:5010,5170:5171,5203:5204,5236:5237,5265:5266,5269:5270,5298:5299,5302:5303,5331:5332,5335:5336,5364:5365,5368:5369,5393:5394,5397:5398,5401:5402,5426:5427,5430:5431,5434:5435,5459:5460,5463:5464,5467:5468,5492:5493,5496:5497,5500:5501,5521:5522,5525:5526,5529:5530,5554:5555,5558:5559,5562:5563,5587:5588,5591:5592,5595:5596,5616:5617,5620:5621,5624:5625,5628:5629,5649:5650,5653:5654,5657:5658,5661:5662,5682:5683,5686:5687,5690:5691,5694:5695,5715:5716,5719:5720,5723:5724,5727:5728,5744:5745,5748:5749,5752:5753,5756:5757,5760:5761,5777:5778,5781:5782,5785:5786,5789:5790,5793:5794,5810:5811,5814:5815,5818:5819,5822:5823,5826:5827,5839:5840,5843:5844,5847:5848,5851:5852,5855:5856,5859:5860,5872:5873,5876:5877,5880:5881,5884:5885,5888:5889,5892:5893,5901:5902,5905:5906,5909:5910,5913:5914,5917:5918,5921:5922,5925:5926,5934:5935,5938:5939,5942:5943,5946:5947,5950:5951,5954:5955,5958:5959,5967:5968,5971:5972,5975:5976,5979:5980,5983:5984,5987:5988,5991:5992,5996:5997,6e3:6001,6004:6005,6008:6009,6012:6013,6016:6017,6020:6021,6029:6030,6033:6034,6037:6038,6041:6042,6045:6046,6049:6050,6053:6054,6058:6059,6062:6063,6066:6067,6070:6071,6074:6075,6078:6079,6082:6083,6086:6087,6091:6092,6095:6096,6099:6100,6103:6104,6107:6108,6111:6112,6115:6116,6119:6120,6124:6125,6128:6129,6132:6133,6136:6137,6140:6141,6144:6145,6148:6149,6152:6154,6157:6158,6161:6162,6165:6166,6169:6170,6173:6174,6177:6178,6181:6182,6185:6187,6190:6191,6194:6195,6198:6199,6202:6203,6206:6207,6210:6211,6214:6215,6218:6220,6223:6224,6227:6228,6231:6232,6235:6236,6239:6240,6243:6244,6247:6249,6251:6253,6256:6257,6260:6261,6264:6265,6268:6269,6272:6273,6276:6277,6280:6282,6284:6286,6289:6290,6293:6294,6297:6298,6301:6302,6305:6306,6309:6310,6313:6315,6317:6319,6322:6323,6326:6327,6330:6331,6334:6335,6338:6339,6342:6344,6346:6348,6350:6352,6355:6356,6359:6360,6363:6364,6367:6368,6371:6372,6375:6377,6379:6381,6383:6385,6388:6389,6392:6393,6396:6397,6400:6401,6404:6406,6408:6410,6412:6414,6416:6418,6421:6422,6425:6426,6429:6430,6433:6434,6437:6439,6441:6443,6445:6447,6449:6451,6454:6455,6458:6459,6462:6463,6466:6468,6470:6472,6474:6476,6478:6480,6482:6484,6487:6488,6491:6492,6495:6496};a();){if((o+=i(oa,m)>0?l:-1*l)>1&&(o-=1),o<0&&(o+=1),o>=.257800926&&o<=.5){var h=r[e]||e<-1?e+1:e;i(oa,m)>0&&h<=i(oa,m)&&i(oa,b).push(h),i(oa,m)<0&&i(oa,b).push(h)}t()}break;case s.calendars.ARABIC:for(;a();)[2,5,7,10,13,15,18,21,24,26,29].includes(e%30)&&i(oa,b).push(e),t();break;case s.calendars.INDIAN:for(;a();)n(e+78)&&i(oa,b).push(e),t();break;default:for(;a();)n(e)&&i(oa,b).push(e),t()}}}}),Y.set(this,{writable:!0,value:function(e,a){var t=void 0;switch(a){case s.calendars.PERSIAN:t=~~((e+.5)/365.241);break;case s.calendars.ARABIC:t=~~((e-.5)/354.366);break;default:t=~~(e/365.24)}return t+(i(oa,m)>0?1:-1)}}),C.set(this,{writable:!0,value:function(e){if(!isNaN(e))return parseInt(e)}});var ra=e&&e.constructor===Object?o({},e):e;ra&&"boolean"!=typeof ra||(ra={date:new Date}),(ra instanceof Date||ra instanceof s||"string"==typeof ra||"number"==typeof ra)&&(ra={date:ra}),ra.calendar&&(ra.calendar=s.calendars[ra.calendar.toUpperCase()]||s.calendars.GREGORIAN,c(this,I,ra.calendar));var ha=!0,ia=Object.keys(ra).filter((function(e){return ra[e]||0===ra[e]})),ca=ia.length>0&&ia.length<=4&&ia.every((function(e){return["calendar","locale","format","ignoreList"].includes(e)}));for(var ma in ca&&(ra.date=new Date),c(this,g,ra.format),(ra.date instanceof s||ra.date instanceof Date||"number"==typeof ra.date||"string"==typeof ra.date)&&(this.setDate(ra.date),ra.calendar&&this.convert(ra.calendar),ha=!1),ra.locale&&(ra.locale=s.locales[ra.locale.toUpperCase()]||s.locales.EN,c(this,v,ra.locale)),delete ra.calendar,delete ra.locale,delete ra.date,delete ra.format,ra)this.set(ma,ra[ma]);0===i(this,m)&&i(this,I)!==s.calendars.INDIAN&&c(this,m,-1),ha&&(i(this,W).call(this),i(this,x).call(this))}var n,l,L;return n=s,(l=[{key:"parse",value:function(e){if(!e)return this;var n=i(this,g);if(i(this,v)!==s.locales.en){var l,o=i(this,M)[i(this,v)],r=t(o);try{for(r.s();!(l=r.n()).done;){var h=l.value;e=e.replace(new RegExp(h,"g"),o.indexOf(h))}}catch(e){r.e(e)}finally{r.f()}}if(n)for(var I=n.split(/[^\w\u0600-\u06FF]/),k=e.split(/[^\w\u0600-\u06FF]/),b=0;b<I.length;b++){var p=i(this,E)[I[b]];p&&k[b]&&p(k[b])}else{var w=a(e.match(/(-?\d{2,4})?\W?([A-z]{3,9}|\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,2})?\W?(\d{1,3})?\W?(am|pm)?/),9),R=w[1],D=w[2],F=w[3],S=w[4],O=w[5],Y=w[6],L=w[7],j=w[8];D&&(D=/\d+/.test(D)?i(this,C).call(this,D)-1:this.months.findIndex((function(e){return new RegExp(D,"i").test(e.name)}))),c(this,m,i(this,C).call(this,R)),c(this,u,i(this,C).call(this,D)),c(this,N,i(this,C).call(this,F)),c(this,d,i(this,C).call(this,S)),c(this,f,i(this,C).call(this,O)),c(this,y,i(this,C).call(this,Y)),c(this,A,i(this,C).call(this,L)),j&&"pm"===j&&i(this,d)<12&&c(this,d,i(this,d)+12)}return e.includes(i(this,H)[i(this,v)][1].shortName)&&i(this,d)<12&&c(this,d,i(this,d)+12),e.includes(i(this,H)[i(this,v)][1].name)&&i(this,d)<12&&c(this,d,i(this,d)+12),i(this,W).call(this),i(this,x).call(this),this}},{key:"convert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.calendars.GREGORIAN;if(!(e=s.calendars[e.toUpperCase()]))throw new Error("calendar not found");if(e===i(this,I))return this;var a=this.toJulianDay()-i(this,S)[e],t=new s({calendar:e,year:i(this,Y).call(this,a,e),month:1,day:1});return t.day+=a-t.dayOfBeginning,c(this,m,t.year),c(this,u,t.month.index),c(this,N,t.day),c(this,b,t.leaps),c(this,I,e),this}},{key:"format",value:function(a,n){if(!this.isValid)return"";if(!a||"string"==typeof a){a||(a=i(this,g)||"YYYY/MM/DD"),Array.isArray(n)||(n=[]),n=(n=n.concat(i(this,R))).filter((function(a){return"string"==typeof a||(console.warn("type of all items in the ignore list must be string, found",e(a)),!1)})).map((function(e){return e.replace(/[*/+\-()[\]{}\s$^]/g,(function(e){return"\\"+e}))}));var l,o=new RegExp("".concat(n.join("|")).concat(n.length>0?"|":"","YYYY|YY|MMMM|MMM|MM|M|WW|W|DDDD|DDD|DD|D|dddd|ddd|dd|d|HH|H|hh|h|mm|m|ss|s|SSS|SS|S|A|a|."),"g"),r="",h=t(a.match(o)||[]);try{for(h.s();!(l=h.n()).done;){var c=l.value;r+=n.includes(c)?c:this.getProperty(c)||c}}catch(e){h.e(e)}finally{h.f()}if(i(this,v)!==s.locales.en){var m=i(this,p).digits||i(this,M)[i(this,v)];r=r.replace(/[0-9]/g,(function(e){return m[e]}))}return r}}},{key:"getProperty",value:function(e){var a=function(e){return e<10?"0"+e:e};switch(e){case"YYYY":return this.year;case"YY":return this.year.toString().substring(2,4);case"MMMM":return this.month.name;case"MMM":return this.month.shortName;case"MM":return a(this.month.number);case"M":return this.month.number;case"WW":return a(this.weekOfYear);case"W":return this.weekOfYear;case"DDDD":case"DDD":return this.dayOfYear;case"DD":return a(this.day);case"D":return this.day;case"HH":return a(this.hour);case"H":return this.hour;case"dddd":return this.weekDay.name;case"ddd":return this.weekDay.shortName;case"dd":return a(this.weekDay.number);case"d":return this.weekDay.number;case"hh":return a(this.hour>12?this.hour-12:this.hour||12);case"h":return this.hour>12?this.hour-12:this.hour||12;case"mm":return a(this.minute);case"m":return this.minute;case"ss":return a(this.second);case"s":return this.second;case"SSS":return i(this,A)<10?"00".concat(i(this,A)):i(this,A)<100?"0".concat(i(this,A)):i(this,A);case"SS":return i(this,A)<10?"00":i(this,A)<100?("0"+i(this,A)).substring(2,0):i(this,A).toString().substring(0,2);case"S":return i(this,A)<10||i(this,A)<100?"0":i(this,A).toString().substring(0,1);case"a":return this.hour>=12?i(this,H)[i(this,v)][1].shortName:i(this,H)[i(this,v)][0].shortName;case"A":return this.hour>=12?i(this,H)[i(this,v)][1].name:i(this,H)[i(this,v)][0].name;default:return""}}},{key:"setYear",value:function(e){return this.year=e,this}},{key:"setMonths",value:function(e){return this.months=e,this}},{key:"setMonth",value:function(e){return this.month=e,this}},{key:"setWeekDays",value:function(e){return this.weekDays=e,this}},{key:"setDigits",value:function(e){return this.digits=e,this}},{key:"setDay",value:function(e){return this.day=e,this}},{key:"setHour",value:function(e){return this.hour=e,this}},{key:"setMinute",value:function(e){return this.minute=e,this}},{key:"setSecond",value:function(e){return this.second=e,this}},{key:"setMillisecond",value:function(e){return this.millisecond=e,this}},{key:"setFormat",value:function(e){return c(this,g,e),this}},{key:"setLocale",value:function(e){return this.locale=e,this}},{key:"setCalendar",value:function(e){return this.calendar=e,this}},{key:"setDate",value:function(e){if("string"==typeof e){if(!i(this,w).test(e))return this.parse(e);e=new Date(e)}return"number"==typeof e&&(e=new Date(e)),e instanceof Date&&(c(this,I,s.calendars.GREGORIAN),c(this,m,e.getFullYear()),c(this,u,e.getMonth()),c(this,N,e.getDate()),c(this,d,e.getHours()),c(this,f,e.getMinutes()),c(this,y,e.getSeconds()),c(this,A,e.getMilliseconds()),c(this,k,!1),i(this,W).call(this),i(this,x).call(this)),e instanceof s&&(c(this,m,e.year),c(this,u,e.month.index),c(this,N,e.day),c(this,d,e.hour),c(this,f,e.minute),c(this,y,e.second),c(this,A,e.millisecond),c(this,v,e.locale.toUpperCase()),c(this,g,e._format),c(this,b,e.leaps),c(this,I,e.calendar.toUpperCase()),c(this,k,e.isUTC)),this}},{key:"setIgnoreList",value:function(e){return this.ignoreList=e,this}},{key:"set",value:function(e,a){if(null==e)return this;if(e.constructor===Object){var t=o({},e);for(var s in t.date&&(this.setDate(t.date),delete t.date),t.calendar&&(this.convert(t.calendar),delete t.calendar),t.locale&&(this.setLocale(t.locale),delete t.locale),t)this.set(s,t[s]);return this}switch(e){case"calendar":return this.convert(a);case"locale":return this.setLocale(a);case"format":return this.setFormat(a);case"year":return this.setYear(a);case"month":return this.setMonth(a);case"months":return this.setMonths(a);case"weekDays":return this.setWeekDays(a);case"day":return this.setDay(a);case"hour":return this.setHour(a);case"minute":return this.setMinute(a);case"second":return this.setSecond(a);case"millisecond":return this.setMillisecond(a);case"date":return this.setDate(a);case"ignoreList":return this.setIgnoreList(a);case"digits":return this.setDigits(a);default:return this}}},{key:"add",value:function(e,a){if(!(e=i(this,C).call(this,e))||!a)return this;switch(a){case"years":case"year":case"y":this.year+=e;break;case"months":case"month":case"M":this.month+=e;break;case"days":case"day":case"d":this.day+=e;break;case"hours":case"hour":case"h":this.hour+=e;break;case"minutes":case"minute":case"m":this.minute+=e;break;case"seconds":case"second":case"s":this.second+=e;break;case"milliseconds":case"millisecond":case"ms":this.millisecond+=e}return this}},{key:"toFirstOfYear",value:function(){return this.month=1,this.day=1,this}},{key:"toLastOfYear",value:function(){return this.day>=29&&(this.day=29),this.month=12,this.toLastOfMonth(),this}},{key:"toFirstOfMonth",value:function(){return c(this,N,1),this}},{key:"toLastOfMonth",value:function(){return c(this,N,0),c(this,u,i(this,u)+1),i(this,x).call(this),this}},{key:"toFirstOfWeek",value:function(){return this.day-=this.weekDay.index,this}},{key:"toLastOfWeek",value:function(){return this.day+=6-this.weekDay.index,this}},{key:"toFirstWeekOfYear",value:function(){return this.toFirstOfYear(),0===this.weekDay.index?this:this.toLastOfWeek().setDay(this.day+1)}},{key:"toLastWeekOfYear",value:function(){return this.toLastOfYear().toFirstOfWeek()}},{key:"toString",value:function(){return this.format()}},{key:"toDate",value:function(){var e=new s(this);return i(this,I)!==s.calendars.GREGORIAN&&e.convert(s.calendars.GREGORIAN),new Date(i(e,m),i(e,u),i(e,N),i(e,d),i(e,f),i(e,y),i(e,A))}},{key:"toUTC",value:function(){return i(this,k)||(this.minute+=(new Date).getTimezoneOffset(),c(this,k,!0)),this}},{key:"toUnix",value:function(){return this.unix}},{key:"toJulianDay",value:function(){return this.dayOfBeginning+i(this,S)[i(this,I)]}},{key:"toObject",value:function(){return{year:i(this,m),month:this.month,day:i(this,N),weekDay:this.weekDay,hour:i(this,d),minute:i(this,f),second:i(this,y),millisecond:i(this,A),weekOfYear:this.weekOfYear,dayOfYear:this.dayOfYear,daysLeft:this.daysLeft,calendar:i(this,I).toLowerCase(),locale:i(this,v).toLowerCase(),format:i(this,g)||"YYYY/MM/DD"}}},{key:"toJSON",value:function(){return this.toObject()}},{key:"valueOf",value:function(){var e=this.dayOfBeginning+i(this,S)[i(this,I)]-i(this,S).unix,a=i(this,k)?0:60*(new Date).getTimezoneOffset()*1e3;return 24*e*60*60*1e3+60*i(this,d)*60*1e3+60*i(this,f)*1e3+1e3*i(this,y)+this.millisecond+a}},{key:"dayOfBeginning",get:function(){if(this.isValid){var e=(i(this,I)!==s.calendars.INDIAN&&i(this,m)>0?i(this,m)-1:i(this,m))*i(this,O)[i(this,I)],a=this.isLeap?this.leaps.length-1:this.leaps.length;return i(this,m)>0&&(e+=a),i(this,m)<0&&(e-=a),e+=this.dayOfYear}}},{key:"dayOfYear",get:function(){if(this.isValid){for(var e=i(this,N),a=this.months,t=0;t<a.length&&!(t>=i(this,u));t++)e+=a[t].length;return e}}},{key:"weekOfYear",get:function(){if(this.isValid)return 1+~~(this.dayOfYear/7)}},{key:"daysLeft",get:function(){if(this.isValid){var e=i(this,O)[i(this,I)];return(this.isLeap?e+1:e)-this.dayOfYear}}},{key:"year",get:function(){return i(this,m)},set:function(e){e=i(this,C).call(this,e),c(this,m,e),i(this,W).call(this),i(this,x).call(this)}},{key:"month",get:function(){var e=this.months[i(this,u)];return e?(e.index=i(this,u),e.number=e.index+1,e.toString=function(){return this.number},e):{}},set:function(e){e&&e.constructor===Object&&e.number&&(e=e.number),e=i(this,C).call(this,e),c(this,u,e-1),i(this,x).call(this)}},{key:"day",get:function(){return i(this,N)},set:function(e){e=i(this,C).call(this,e),c(this,N,e),i(this,x).call(this)}},{key:"weekDay",get:function(){var e=(this.toJulianDay()+2)%7,a=i(this,F)[i(this,I)][e];if(!a)return{};var t=i(this,p).weekDays?i(this,p).weekDays[a.index]:a.locales[i(this,v)];return a=o({index:a.index,number:a.index+1,toString:function(){return this.number}},t)}},{key:"hour",get:function(){return i(this,d)},set:function(e){e=i(this,C).call(this,e),c(this,d,e),i(this,x).call(this)}},{key:"minute",get:function(){return i(this,f)},set:function(e){e=i(this,C).call(this,e),c(this,f,e),i(this,x).call(this)}},{key:"second",get:function(){return i(this,y)},set:function(e){e=i(this,C).call(this,e),c(this,y,e),i(this,x).call(this)}},{key:"millisecond",get:function(){return i(this,A)},set:function(e){e=i(this,C).call(this,e),c(this,A,e),i(this,x).call(this)}},{key:"months",get:function(){var e=this,a=i(this,D)[i(this,I)];switch(i(this,I)){case s.calendars.GREGORIAN:a[1].length=this.isLeap?29:28;break;case s.calendars.INDIAN:a[0].length=this.isLeap?31:30;break;default:a[11].length=this.isLeap?30:29}return a=a.map((function(a,t){var s=i(e,p).months?i(e,p).months[t]:a.locales[i(e,v)];return o({length:a.length},s)}))},set:function(e){return e?Array.isArray(e)&&12===e.length&&e.every((function(e){return Array.isArray(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))?void(i(this,p).months=e.map((function(e){return{name:e[0],shortName:e[1]}}))):console.warn("Invalid Months"):delete i(this,p).months}},{key:"weekDays",get:function(){var e=this,a=i(this,F)[i(this,I)];return a.sort((function(e,a){return e.index-a.index})),a=a.map((function(a,t){var s=i(e,p).weekDays?i(e,p).weekDays[t]:a.locales[i(e,v)];return o({index:a.index,number:a.index+1},s)}))},set:function(e){return e?Array.isArray(e)&&7===e.length&&e.every((function(e){return Array.isArray(e)&&2===e.length&&e.every((function(e){return"string"==typeof e}))}))?void(i(this,p).weekDays=e.map((function(e){return{name:e[0],shortName:e[1]}}))):console.warn("Invalid weekDays"):delete i(this,p).weekDays}},{key:"leaps",get:function(){return i(this,b)}},{key:"calendar",get:function(){return i(this,I).toLowerCase()},set:function(e){this.convert(e)}},{key:"locale",get:function(){return i(this,v).toLowerCase()},set:function(e){e=e.toUpperCase(),s.locales[e]||(e=s.locales.EN),c(this,v,e)}},{key:"meridiems",get:function(){return i(this,H)[i(this,v)]}},{key:"digits",get:function(){return i(this,p).digits||i(this,M)[i(this,v)]},set:function(e){return e?Array.isArray(e)&&10===e.length?void(i(this,p).digits=e):console.warn("Invalid digits"):delete i(this,p).digits}},{key:"_format",get:function(){return i(this,g)},set:function(e){"string"==typeof e&&c(this,g,e)}},{key:"isLeap",get:function(){return i(this,b).includes(i(this,m))}},{key:"isValid",get:function(){return!Number.isNaN(Number(i(this,m)+i(this,u)+i(this,N)))}},{key:"isUTC",get:function(){return i(this,k)}},{key:"unix",get:function(){return(this.valueOf()-this.millisecond)/1e3}},{key:"ignoreList",get:function(){return i(this,R)},set:function(e){Array.isArray(e)&&c(this,R,e)}}])&&r(n.prototype,l),L&&r(n,L),s}();h(L,"calendars",{GREGORIAN:"GREGORIAN",PERSIAN:"PERSIAN",ARABIC:"ARABIC",INDIAN:"INDIAN"}),h(L,"locales",{EN:"EN",FA:"FA",AR:"AR",HI:"HI"});var j=L;export default j;

@@ -12,3 +12,3 @@ declare class DateObject {

calendar?:string,
local?:string,
locale?:string,
format?:string,

@@ -20,3 +20,3 @@ ignoreList?:string[]

calendar?:string,
local?:string,
locale?:string,
format?:string,

@@ -31,3 +31,3 @@ ignoreList?:string[]

static calendars:object
static locals:object
static locales:object
/**

@@ -134,2 +134,3 @@ * Parse string from the given formatting token.

setWeekDays(weekDays:[string[]]):DateObject
setDigits(digits:string[]):DateObject
/**

@@ -155,5 +156,5 @@ * @param dayOfMonth

/**
* @param local
* @param locale
*
* Availble locals:
* Availble locales:
* - en `english`

@@ -164,3 +165,3 @@ * - fa `farsi`

*/
setLocal(local:string):DateObject
setLocale(locale:string):DateObject
/**

@@ -187,2 +188,4 @@ * @param calendar

month?:number,
months?:[string[]],
weekdays?:[string[]],
day?:number,

@@ -194,5 +197,6 @@ hour?:number,

calendar?:string,
local?:string,
locale?:string,
format?:string,
ignoreList?:string[]
ignoreList?:string[],
digits?:string[]
}):DateObject

@@ -270,3 +274,3 @@ /**

/**
* @get object (Month of year in current local)
* @get object (Month of year in current locale)
* @example { name: "January", shortName: "Jan", index: 0, number: 1 }

@@ -283,3 +287,3 @@ * @set number 1-12

/**
* Day of week in current local
* Day of week in current locale
* @get object

@@ -310,3 +314,3 @@ * @example { name: "Sunday", shortName: "Sun", index: 0, number: 1 }

/**
* @get Array of months in current local
* @get Array of months in current locale
* @example [{ name: "January", shortName: "Jan", index: 0, number: 1 }, ...]

@@ -338,3 +342,3 @@ * @set custom months

/**
* @get Array of week days in current local
* @get Array of week days in current locale
* @example [{ name: "Sunday", shortName: "Sun", index: 0, number: 1 }, ...]

@@ -388,6 +392,6 @@ * @set custom week days

/**
* @get current local
* @set local
* @get current locale
* @set locale
*
* Availble locals:
* Availble locales:
* - en `english`

@@ -402,7 +406,7 @@ * - fa `farsi`

*
* date.local = "fa" //۲۰۲۰/۱۲/۰۶
* date.locale = "fa" //۲۰۲۰/۱۲/۰۶
*/
local:string
locale:string
/**
* @get meridiems in current local
* @get meridiems in current locale
* @example

@@ -416,5 +420,5 @@ *

/**
* Array of local numbers from 0 to 9
* Array of locale numbers from 0 to 9
*/
digits:number[]
digits:string[]
/**

@@ -421,0 +425,0 @@ * @get current formatting token

{
"name": "react-date-object",
"version": "1.1.8",
"version": "1.1.9",
"description": "JavaScript library for working with Date and Time in different calendars and locals",

@@ -51,3 +51,3 @@ "main": "./dist/index.js",

"@rollup/plugin-node-resolve": "^11.0.1",
"date-object": "^1.1.8",
"date-object": "^1.1.9",
"rollup": "^2.35.1",

@@ -54,0 +54,0 @@ "rollup-plugin-terser": "^7.0.2"

@@ -6,3 +6,3 @@ # React Date Object

supported locals: `en` , `fa` , `ar` , `hi`
supported locales: `en` , `fa` , `ar` , `hi`
default: `en`

@@ -49,5 +49,5 @@

## 3-2- locals
## 3-2- locales
returns supported locals
returns supported locales

@@ -115,3 +115,3 @@ ```javascript

calendar: `gregorian`, `persian` or `arabic`, //default `gregorian`
local: `en`, `fa` or `ar`, //default `en`
locale: `en`, `fa` or `ar`, //default `en`
format: String, //default `YYYY/MM/DD`

@@ -127,3 +127,3 @@ ignoreList:Array//If the format contained words that should be ignored

calendar: "gregorian",
local: "en",
locale: "en",
});

@@ -136,3 +136,3 @@

calendar: "persian",
local: "fa",
locale: "fa",
});

@@ -145,3 +145,3 @@

calendar: "persian",
local: "en",
locale: "en",
format: "DD MMMM YYYY",

@@ -165,3 +165,3 @@ });

calendar: `gregorian`, `persian` or `arabic`, //default `gregorian`
local: `en`, `fa` or `ar`, //default `en`
locale: `en`, `fa` or `ar`, //default `en`
format: String, //default `YYYY/MM/DD`

@@ -192,3 +192,3 @@ ignoreList:Array//If the format contained words that should be ignored

calendar: "persian",
local: "en",
locale: "en",
format: "dddd DD MMMM YYYY",

@@ -204,3 +204,3 @@ });

calendar: "persian",
local: "fa",
locale: "fa",
format: "dddd DD MMMM YYYY",

@@ -227,3 +227,3 @@ });

default format is YYYY/MM/DD
default format is YYYY/MM/DD.
to see all format types click [here](#5--format-types)

@@ -263,3 +263,3 @@

.setFormat("YYYY-MM-DD HH:mm:ss.SSS")
.setLocal("en")
.setLocale("en")
.setYear(2020)

@@ -390,3 +390,3 @@ .setMonth(8)

date: "1442/01/01",
local: "ar",
locale: "ar",
});

@@ -473,4 +473,4 @@

date.set("calendar", "indian"); //10/17/1942
date.set("local", "hi"); //१०/१७/१९४२
date.set("date", new DateObject({ calendar: "persian", local: "en" })); //1399/08/10
date.set("locale", "hi"); //१०/१७/१९४२
date.set("date", new DateObject({ calendar: "persian", locale: "en" })); //1399/08/10
date.set("date", new Date()); //2020/10/31 (calendar is set to gregorian)

@@ -514,5 +514,5 @@ ```

## 4-11- custom months & week days
## 4-11- custom months, week days & digits
See the example below in case you want to use your personal names instead of default names of months and week days
See the example below in case you want to use your personal data instead of default months, week days & digits

@@ -524,2 +524,3 @@ ```javascript

date.format("dddd ddd"); //Monday Mon
date.format("D"); //2

@@ -551,4 +552,11 @@ date.months = [

/**
* This is just a test to display digits.
* The Greek number system does not work like this.
*/
date.digits = ["", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"];
date.format("MMMM MMM"); //nov n
date.format("dddd ddd"); //mo m
date.format("D"); //II

@@ -579,5 +587,16 @@ console.log(date.month);

*/
console.log(date.digits);
/**
* [
* '', 'I', 'II',
* 'III', 'IV', 'V',
* 'VI', 'VII', 'VIII',
* 'IX'
* ]
*/
```
You can use `date.setMonths(months).setWeekDays(weekDays)` as well
You can use `date.setMonths(months).setWeekDays(weekDays).setDigits(digits)` as well

@@ -630,3 +649,3 @@ ## 4-12- other methods

* calendar: 'gregorian',
* local: 'en',
* locale: 'en',
* format: 'YYYY/MM/DD'

@@ -639,3 +658,3 @@ *}

JSON.stringify(dateObject);
//{"year":2020,"month":{"length":31,"name":"December","shortName":"Dec","index":11,"number":12},"day":27,"weekDay":{"index":0,"number":1,"name":"Sunday","shortName":"Sun"},"hour":11,"minute":8,"second":34,"millisecond":724,"weekOfYear":52,"dayOfYear":362,"daysLeft":4,"calendar":"gregorian","local":"en","format":"YYYY/MM/DD"}
//{"year":2020,"month":{"length":31,"name":"December","shortName":"Dec","index":11,"number":12},"day":27,"weekDay":{"index":0,"number":1,"name":"Sunday","shortName":"Sun"},"hour":11,"minute":8,"second":34,"millisecond":724,"weekOfYear":52,"dayOfYear":362,"daysLeft":4,"calendar":"gregorian","locale":"en","format":"YYYY/MM/DD"}

@@ -663,3 +682,3 @@ new DateObject(date.toJSON()).format(); //2020/12/27

## 4-14- using calendars, format & locals
## 4-14- using calendars, format & locales

@@ -672,6 +691,6 @@ ```javascript

date.calendar = "persian"; //Jomeh 31 Mordad
date.local = "fa"; //جمعه 31 مرداد
date.locale = "fa"; //جمعه 31 مرداد
date._format = "YY/MM/DD"; //۹۹/۰۵/۳۱
date.setCalendar("gregorian").setLocal("en"); //20/08/21
date.setCalendar("gregorian").setLocale("en"); //20/08/21

@@ -678,0 +697,0 @@ date = new DateObject(new Date());

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc