"use strict";const t=require("./constant.js");var n=function(t,n,r){var e=String(t);return!e||e.length>=n?t:""+Array(n+1-e.length).join(r)+t};const r={s:n,z:function(t){var r=-t.utcOffset(),e=Math.abs(r),o=Math.floor(e/60),a=e%60;return(r<=0?"+":"-")+n(o,2,"0")+":"+n(a,2,"0")},m:function n(r,e){if(r.date()<e.date())return-n(e,r);var o=12*(e.year()-r.year())+(e.month()-r.month()),a=r.clone().add(o,t.M),u=e-a<0,c=r.clone().add(o+(u?-1:1),t.M);return+(-(o+(e-a)/(u?a-c:c-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(n){return{M:t.M,y:t.Y,w:t.W,d:t.D,D:t.DATE,h:t.H,m:t.MIN,s:t.S,ms:t.MS,Q:t.Q}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};exports.U=r;
