function E(t,e){let r=t.getDay(),n=D(t),u=Math.floor((t.getMonth()+3)/3).toString();const l={"Y+":t.getFullYear().toString(),"m+":(t.getMonth()+1).toString(),"d+":t.getDate().toString(),"H+":t.getHours().toString(),"M+":t.getMinutes().toString(),"S+":t.getSeconds().toString(),"q+":u},g={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},s={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB"};/(W+)/.test(e)&&(e=e.replace(RegExp.$1,RegExp.$1.length>1?RegExp.$1.length>2?"\u661F\u671F"+g[r]:"\u5468"+g[r]:g[r])),/(Q+)/.test(e)&&(e=e.replace(RegExp.$1,RegExp.$1.length==4?"\u7B2C"+s[u]+"\u5B63\u5EA6":s[u])),/(Z+)/.test(e)&&(e=e.replace(RegExp.$1,RegExp.$1.length==3?"\u7B2C"+n+"\u5468":n+""));for(let i in l){let o=new RegExp("("+i+")").exec(e);o&&(e=e.replace(o[1],RegExp.$1.length==1?l[i]:l[i].padStart(RegExp.$1.length,"0")))}return e}function a(t){const e=Math.floor((t-0)/3600),r=Math.floor((t-0)%3600/60),n=Math.floor((t-0)%60),u=l=>l.toString().padStart(2,"0");return`${u(e)}:${u(r)}:${u(n)}`}function D(t){let e=new Date(t.getTime()),r=e.getDay()||7;e.setDate(e.getDate()-r+1+5);let n=new Date(e.getFullYear(),0,1),u=n.getDay(),l=1;u!=0&&(l=7-u+1),n=new Date(e.getFullYear(),0,1+l);let g=Math.ceil((e.valueOf()-n.valueOf())/864e5);return Math.ceil(g/7)}function p(t){let e=new Date(t).getHours();return e<6?"\u51CC\u6668\u597D":e<9?"\u65E9\u4E0A\u597D":e<12?"\u4E0A\u5348\u597D":e<14?"\u4E2D\u5348\u597D":e<17?"\u4E0B\u5348\u597D":e<19?"\u508D\u665A\u597D":e<22?"\u665A\u4E0A\u597D":"\u591C\u91CC\u597D"}export{a,p as b,E as f};
