const c=t=>{window.open(t)},l=(t,n,s="end")=>{typeof t!="string"&&(t=t==null?"":String(t));const i=t;if(n<=0)return"";if(i.length<=n)return i;if(n===1)return"…";const r=n-1;if(s==="start")return"…".concat(i.slice(-r));if(s==="middle"){const f=Math.ceil(r/2),e=Math.floor(r/2),o=e>0?i.slice(-e):"";return"".concat(i.slice(0,f),"…").concat(o)}return"".concat(i.slice(0,r),"…")};export{l as f,c as o};
