"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[3291],{3291:function(t,i,e){e.r(i),e.d(i,{sc_format_bytes:function(){return n}});var a=e(3029),s=e(2901),r=e(7364),n=function(){return(0,s.A)((function t(i){(0,a.A)(this,t),(0,r.r)(this,i),this.locale=void 0,this.value=0,this.unit="byte",this.display="short"}),[{key:"render",value:function(){if(isNaN(this.value))return"";var t="bit"===this.unit?["","kilo","mega","giga","tera"]:["","kilo","mega","giga","tera","peta"],i=Math.max(0,Math.min(Math.floor(Math.log10(this.value)/3),t.length-1)),e=t[i]+this.unit,a=parseFloat((this.value/Math.pow(1e3,i)).toPrecision(3));return new Intl.NumberFormat(this.locale,{style:"unit",unit:e,unitDisplay:this.display}).format(a)}}])}();n.style=":host{display:inline-block}"}}]);