import{b4 as b,af as m}from"./CSGWN0Ke.js";function h(f,t){return t=t||{},new Promise(function(d,p){var e=new XMLHttpRequest,u=[],a=[],o={},l=function(){return{ok:(e.status/100|0)==2,statusText:e.statusText,status:e.status,url:e.responseURL,text:function(){return Promise.resolve(e.responseText)},json:function(){return Promise.resolve(e.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([e.response]))},clone:l,headers:{keys:function(){return u},entries:function(){return a},get:function(s){return o[s.toLowerCase()]},has:function(s){return s.toLowerCase()in o}}}};for(var i in e.open(t.method||"get",f,!0),e.onload=function(){e.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(s,r,n){u.push(r=r.toLowerCase()),a.push([r,n]),o[r]=o[r]?o[r]+","+n:n}),d(l())},e.onerror=p,e.withCredentials=t.credentials=="include",t.headers)e.setRequestHeader(i,t.headers[i]);e.send(t.body||null)})}const g=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),c=b(g);var w=self.fetch||(self.fetch=c.default||c);const _=m(w),x=Object.freeze(Object.defineProperty({__proto__:null,default:_},Symbol.toStringTag,{value:"Module"}));export{x as b};