UNPKG

seti-ramesesv1

Version:

Reusable components and context for Next.js apps

18 lines (13 loc) 1.41 kB
import { __module as advancedFormat$1 } from '../../../_virtual/advancedFormat2.js'; var advancedFormat = advancedFormat$1.exports; var hasRequiredAdvancedFormat; function requireAdvancedFormat () { if (hasRequiredAdvancedFormat) return advancedFormat$1.exports; hasRequiredAdvancedFormat = 1; (function (module, exports) { !function(e,t){module.exports=t();}(advancedFormat,(function(){return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case "Q":return Math.ceil((t.$M+1)/3);case "Do":return r.ordinal(t.$D);case "gggg":return t.weekYear();case "GGGG":return t.isoWeekYear();case "wo":return r.ordinal(t.week(),"W");case "w":case "ww":return s.s(t.week(),"w"===e?1:2,"0");case "W":case "WW":return s.s(t.isoWeek(),"W"===e?1:2,"0");case "k":case "kk":return s.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case "X":return Math.floor(t.$d.getTime()/1e3);case "x":return t.$d.getTime();case "z":return "["+t.offsetName()+"]";case "zzz":return "["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(a)};}})); } (advancedFormat$1)); return advancedFormat$1.exports; } export { requireAdvancedFormat as __require }; //# sourceMappingURL=advancedFormat.js.map