var t=function(t){return Number.isFinite(t)||"string"==typeof t?t:"-"},n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:420,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6,r=t.split(" ");if(n>e||t.length<i||r.length<=1)return t;var c=t[0],l=r[r.length-1];return"".concat(c," ").concat(l)},e=function(t,n,e){if(n>=e)return t;var i=n/(e/t.length),r=Math.ceil(i/2),c=Math.max(r-3,2);return"".concat(t.slice(0,c)," ... ").concat(t.slice(t.length-c))};export{n as formatAssetName,t as orDash,e as truncateInTheMiddle};
