2 lines
265 B
JavaScript
2 lines
265 B
JavaScript
|
import{du as r,db as t,cQ as n,l as a}from"./card-769e2b91.js";const e=async(e,s,i,l)=>{if(!i.sign)return i.endpoint;let c;try{c=await r(s,i.endpoint,l)}catch(r){return t(r),null}return c?c.replace(/^http/i,"ws"):(n(e,a("error.failed_sign")),null)};export{e as g};
|