new Array("B","KB","MB","GB");new Array("01 Normal Message","02 Security Message","03 FTP Command","04 FTP Response","05 Web Request","06 Web Response","07 SSH Command","08 SSH Response","09 ODBC Error","10 Mysql Error","11 Lua Error","12 Mail Error","13 File Access Error","14 Normal Error");const a=new Array("#009900","#FF0000","#009900","#0000FF","#000","#000","#000","#000","#CCC","#CCC","#00FFCC","#00FF00","#FFFF00","#FFF"),u=new Array("#FFF","#FFF","#FFF","#FFF","#FFFFCC","#FFFFCC","#FFFF99","#FFFF99","#FF0000","#FF0000","#FF0000","#FF0000","#FF0000","#FF0000");new Array("#009900","#FF0000","#009900","#FF0000","#FF0000");new Array("#FFF","#FFF","#FFF","#FFF","#FFF","#FFF");const g=function(e,t,n){for(var r=e.split(`\r
`),F=0;F<r.length;F++)if(t!=null&&t!=""&&r[F].indexOf(t)==-1)delete r[F];else if(n!=null&&n!=""&&r[F].indexOf(n)==-1)delete r[F];else{var o=parseInt(r[F].substr(1,2),10)-1;o<0&&(o=0),o>a.length-1&&(o=a.length-1),r[F]="<span style='line-height:150%;font-size:8pt;background-color:"+u[o]+";color:"+a[o]+";'>"+r[F]+"</span><br>"}return r.join("")},p=function(e){return e=e.replace(/>/ig,"&gt;"),e=e.replace(/</ig,"&lt;"),e=e.replace(/\"/ig,"&quot;"),e=e.replace(/\'/ig,"&#39;"),e=e.replace(/\\/ig,"&slash;"),e},h=function(e){return encodeURIComponent(e).replace(/\'/g,"$27").replace(/\+/g,"$2B")},m=function(e){var t=e;return t.lastIndexOf(".")!=-1?t.substr(t.lastIndexOf(".")+1).toLowerCase():"default"},i=function(e){return e.replace(/^(\s*|��*)/,"")},f=function(e){return e.replace(/(\s*|��*)$/,"")},C=function(e){return i(f(e))},M=function(e,t){var n=e.length-t;return e.substr(n)},d=function(e){let t=e.getFullYear(),n=e.getMonth()+1;n<10&&(n="0"+n);let r=e.getDate();r<10&&(r="0"+r);let F=e.getHours();F<10&&(F="0"+F);let o=e.getMinutes();o<10&&(o="0"+o);let s=e.getSeconds();return s<10&&(s="0"+s),t+"-"+n+"-"+r+" "+F+":"+o+":"+s},B=function(e){let t=Math.floor(e/86400),n=0;t>0?n=Math.floor((e-3600*24*t)/3600):n=parseInt(e/3600);let r=e%3600,F=parseInt(r/60);return r=parseInt(r%60),{days:t,hours:n,minutes:F,seconds:r}};function l(e,t){var n,n=Math.pow(10,t);return Math.round(e*n)/n}const c=function(e){return Math.round(e/1024)<1?e+" B":Math.round(e/(1024*1024))<1?l(e/1024,2)+" KB":Math.round(e/(1024*1024*1024))<1?l(e/(1024*1024),2)+" MB":l(e/(1024*1024*1024),2)+" GB"},S=function(e){return c(e)+"/s"};export{c as a,B as b,d as c,g as d,p as e,S as f,m as g,M as r,C as t,h as u};
