var gdjs;(function(u){let d;(function(g){let p;(function(r){r.sendAsyncRequest=function(e,s,i,c,a,o){const n=t=>{t instanceof ProgressEvent&&t.currentTarget&&t.currentTarget instanceof XMLHttpRequest&&t.currentTarget.status===0?o.setString("REQUEST_NOT_SENT"):o.setString(""+t)};try{const t=new XMLHttpRequest;t.onerror=n,t.ontimeout=n,t.onabort=n,t.onreadystatechange=()=>{t.readyState===XMLHttpRequest.DONE&&(t.status>=400&&n(""+t.status),a.setString(t.responseText))},t.open(i,e),t.setRequestHeader("Content-Type",c===""?"application/x-www-form-urlencoded":c),t.send(s)}catch(t){n(t)}},r.sendAwaitableAsyncRequest=(e,s,i,c,a,o)=>new u.PromiseTask(fetch(e,{body:i!=="GET"?s:void 0,method:i,headers:{"Content-Type":c||"application/x-www-form-urlencoded"}}).then(async n=>{const t=await n.text();n.status>=400&&o.setString(""+n.status),a.setString(t)},n=>{o.setString(""+n)}));const b=e=>new Promise(s=>setTimeout(s,e));r.retryIfFailed=async({times:e,delayInMs:s},i)=>{let c=0,a=null;for(;c