@powerlines/plugin-automd 0.1.245 → 0.1.247
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/dist/multipart-parser-CelMRf5R.mjs +178 -0
- package/dist/multipart-parser-CelMRf5R.mjs.map +1 -0
- package/dist/node-BE0IsiNO.mjs +266 -0
- package/dist/node-BE0IsiNO.mjs.map +1 -0
- package/dist/node-C4Zezo2l.mjs +3974 -0
- package/dist/node-C4Zezo2l.mjs.map +1 -0
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -9318,7 +9318,7 @@ ${cmd}${name}${versionSuffix}${args.args ? ` ${args.args}` : ""}`);
|
|
|
9318
9318
|
const fetch = defineGenerator({
|
|
9319
9319
|
name: "fetch",
|
|
9320
9320
|
async generate({ args }) {
|
|
9321
|
-
const { $fetch } = await import("./node-
|
|
9321
|
+
const { $fetch } = await import("./node-BE0IsiNO.mjs");
|
|
9322
9322
|
let url = args.url;
|
|
9323
9323
|
if (!url) throw new Error("URL is required!");
|
|
9324
9324
|
if (url.startsWith("gh:")) url = `https://raw.githubusercontent.com/${url.slice(3)}`;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { o as qn, r as br } from "./node-C4Zezo2l.mjs";
|
|
2
|
+
import "node:fs";
|
|
3
|
+
import "node:url";
|
|
4
|
+
import "node:util";
|
|
5
|
+
import "node:http";
|
|
6
|
+
import "node:https";
|
|
7
|
+
import "node:zlib";
|
|
8
|
+
import "node:stream";
|
|
9
|
+
import "node:buffer";
|
|
10
|
+
import "node:net";
|
|
11
|
+
|
|
12
|
+
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs
|
|
13
|
+
var B = Object.defineProperty;
|
|
14
|
+
var E = (u, a) => B(u, "name", {
|
|
15
|
+
value: a,
|
|
16
|
+
configurable: !0
|
|
17
|
+
});
|
|
18
|
+
let D = 0;
|
|
19
|
+
const t = {
|
|
20
|
+
START_BOUNDARY: D++,
|
|
21
|
+
HEADER_FIELD_START: D++,
|
|
22
|
+
HEADER_FIELD: D++,
|
|
23
|
+
HEADER_VALUE_START: D++,
|
|
24
|
+
HEADER_VALUE: D++,
|
|
25
|
+
HEADER_VALUE_ALMOST_DONE: D++,
|
|
26
|
+
HEADERS_ALMOST_DONE: D++,
|
|
27
|
+
PART_DATA_START: D++,
|
|
28
|
+
PART_DATA: D++,
|
|
29
|
+
END: D++
|
|
30
|
+
};
|
|
31
|
+
let w = 1;
|
|
32
|
+
const R = {
|
|
33
|
+
PART_BOUNDARY: w,
|
|
34
|
+
LAST_BOUNDARY: w *= 2
|
|
35
|
+
}, g = 10, N = 13, x = 32, P = 45, C = 58, I = 97, M = 122, $ = E((u) => u | 32, "lower"), m = E(() => {}, "noop"), F = class F$1 {
|
|
36
|
+
constructor(a) {
|
|
37
|
+
this.index = 0, this.flags = 0, this.onHeaderEnd = m, this.onHeaderField = m, this.onHeadersEnd = m, this.onHeaderValue = m, this.onPartBegin = m, this.onPartData = m, this.onPartEnd = m, this.boundaryChars = {}, a = `\r
|
|
38
|
+
--` + a;
|
|
39
|
+
const n = new Uint8Array(a.length);
|
|
40
|
+
for (let r = 0; r < a.length; r++) n[r] = a.charCodeAt(r), this.boundaryChars[n[r]] = !0;
|
|
41
|
+
this.boundary = n, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = t.START_BOUNDARY;
|
|
42
|
+
}
|
|
43
|
+
write(a) {
|
|
44
|
+
let n = 0;
|
|
45
|
+
const r = a.length;
|
|
46
|
+
let d = this.index, { lookbehind: l, boundary: c, boundaryChars: p, index: e, state: i, flags: A } = this;
|
|
47
|
+
const H = this.boundary.length, O = H - 1, y = a.length;
|
|
48
|
+
let o, L;
|
|
49
|
+
const f = E((h) => {
|
|
50
|
+
this[h + "Mark"] = n;
|
|
51
|
+
}, "mark"), s = E((h) => {
|
|
52
|
+
delete this[h + "Mark"];
|
|
53
|
+
}, "clear"), T = E((h, S, _, U) => {
|
|
54
|
+
(S === void 0 || S !== _) && this[h](U && U.subarray(S, _));
|
|
55
|
+
}, "callback"), b = E((h, S) => {
|
|
56
|
+
const _ = h + "Mark";
|
|
57
|
+
_ in this && (S ? (T(h, this[_], n, a), delete this[_]) : (T(h, this[_], a.length, a), this[_] = 0));
|
|
58
|
+
}, "dataCallback");
|
|
59
|
+
for (n = 0; n < r; n++) switch (o = a[n], i) {
|
|
60
|
+
case t.START_BOUNDARY:
|
|
61
|
+
if (e === c.length - 2) {
|
|
62
|
+
if (o === P) A |= R.LAST_BOUNDARY;
|
|
63
|
+
else if (o !== N) return;
|
|
64
|
+
e++;
|
|
65
|
+
break;
|
|
66
|
+
} else if (e - 1 === c.length - 2) {
|
|
67
|
+
if (A & R.LAST_BOUNDARY && o === P) i = t.END, A = 0;
|
|
68
|
+
else if (!(A & R.LAST_BOUNDARY) && o === g) e = 0, T("onPartBegin"), i = t.HEADER_FIELD_START;
|
|
69
|
+
else return;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
o !== c[e + 2] && (e = -2), o === c[e + 2] && e++;
|
|
73
|
+
break;
|
|
74
|
+
case t.HEADER_FIELD_START: i = t.HEADER_FIELD, f("onHeaderField"), e = 0;
|
|
75
|
+
case t.HEADER_FIELD:
|
|
76
|
+
if (o === N) {
|
|
77
|
+
s("onHeaderField"), i = t.HEADERS_ALMOST_DONE;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
if (e++, o === P) break;
|
|
81
|
+
if (o === C) {
|
|
82
|
+
if (e === 1) return;
|
|
83
|
+
b("onHeaderField", !0), i = t.HEADER_VALUE_START;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
if (L = $(o), L < I || L > M) return;
|
|
87
|
+
break;
|
|
88
|
+
case t.HEADER_VALUE_START:
|
|
89
|
+
if (o === x) break;
|
|
90
|
+
f("onHeaderValue"), i = t.HEADER_VALUE;
|
|
91
|
+
case t.HEADER_VALUE:
|
|
92
|
+
o === N && (b("onHeaderValue", !0), T("onHeaderEnd"), i = t.HEADER_VALUE_ALMOST_DONE);
|
|
93
|
+
break;
|
|
94
|
+
case t.HEADER_VALUE_ALMOST_DONE:
|
|
95
|
+
if (o !== g) return;
|
|
96
|
+
i = t.HEADER_FIELD_START;
|
|
97
|
+
break;
|
|
98
|
+
case t.HEADERS_ALMOST_DONE:
|
|
99
|
+
if (o !== g) return;
|
|
100
|
+
T("onHeadersEnd"), i = t.PART_DATA_START;
|
|
101
|
+
break;
|
|
102
|
+
case t.PART_DATA_START: i = t.PART_DATA, f("onPartData");
|
|
103
|
+
case t.PART_DATA:
|
|
104
|
+
if (d = e, e === 0) {
|
|
105
|
+
for (n += O; n < y && !(a[n] in p);) n += H;
|
|
106
|
+
n -= O, o = a[n];
|
|
107
|
+
}
|
|
108
|
+
if (e < c.length) c[e] === o ? (e === 0 && b("onPartData", !0), e++) : e = 0;
|
|
109
|
+
else if (e === c.length) e++, o === N ? A |= R.PART_BOUNDARY : o === P ? A |= R.LAST_BOUNDARY : e = 0;
|
|
110
|
+
else if (e - 1 === c.length) if (A & R.PART_BOUNDARY) {
|
|
111
|
+
if (e = 0, o === g) {
|
|
112
|
+
A &= ~R.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), i = t.HEADER_FIELD_START;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
} else A & R.LAST_BOUNDARY && o === P ? (T("onPartEnd"), i = t.END, A = 0) : e = 0;
|
|
116
|
+
if (e > 0) l[e - 1] = o;
|
|
117
|
+
else if (d > 0) {
|
|
118
|
+
const h = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
|
|
119
|
+
T("onPartData", 0, d, h), d = 0, f("onPartData"), n--;
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
case t.END: break;
|
|
123
|
+
default: throw new Error(`Unexpected state entered: ${i}`);
|
|
124
|
+
}
|
|
125
|
+
b("onHeaderField"), b("onHeaderValue"), b("onPartData"), this.index = e, this.state = i, this.flags = A;
|
|
126
|
+
}
|
|
127
|
+
end() {
|
|
128
|
+
if (this.state === t.HEADER_FIELD_START && this.index === 0 || this.state === t.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
|
|
129
|
+
else if (this.state !== t.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
E(F, "MultipartParser");
|
|
133
|
+
let k = F;
|
|
134
|
+
function v(u) {
|
|
135
|
+
const a = u.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
136
|
+
if (!a) return;
|
|
137
|
+
const n = a[2] || a[3] || "";
|
|
138
|
+
let r = n.slice(n.lastIndexOf("\\") + 1);
|
|
139
|
+
return r = r.replace(/%22/g, "\""), r = r.replace(/&#(\d{4});/g, (d, l) => String.fromCharCode(l)), r;
|
|
140
|
+
}
|
|
141
|
+
E(v, "_fileName");
|
|
142
|
+
async function Z(u, a) {
|
|
143
|
+
if (!/multipart/i.test(a)) throw new TypeError("Failed to fetch");
|
|
144
|
+
const n = a.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
|
|
145
|
+
if (!n) throw new TypeError("no or bad content-type header, no multipart boundary");
|
|
146
|
+
const r = new k(n[1] || n[2]);
|
|
147
|
+
let d, l, c, p, e, i;
|
|
148
|
+
const A = [], H = new br(), O = E((s) => {
|
|
149
|
+
c += f.decode(s, { stream: !0 });
|
|
150
|
+
}, "onPartData"), y = E((s) => {
|
|
151
|
+
A.push(s);
|
|
152
|
+
}, "appendToFile"), o = E(() => {
|
|
153
|
+
const s = new qn(A, i, { type: e });
|
|
154
|
+
H.append(p, s);
|
|
155
|
+
}, "appendFileToFormData"), L = E(() => {
|
|
156
|
+
H.append(p, c);
|
|
157
|
+
}, "appendEntryToFormData"), f = new TextDecoder("utf-8");
|
|
158
|
+
f.decode(), r.onPartBegin = function() {
|
|
159
|
+
r.onPartData = O, r.onPartEnd = L, d = "", l = "", c = "", p = "", e = "", i = null, A.length = 0;
|
|
160
|
+
}, r.onHeaderField = function(s) {
|
|
161
|
+
d += f.decode(s, { stream: !0 });
|
|
162
|
+
}, r.onHeaderValue = function(s) {
|
|
163
|
+
l += f.decode(s, { stream: !0 });
|
|
164
|
+
}, r.onHeaderEnd = function() {
|
|
165
|
+
if (l += f.decode(), d = d.toLowerCase(), d === "content-disposition") {
|
|
166
|
+
const s = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
|
|
167
|
+
s && (p = s[2] || s[3] || ""), i = v(l), i && (r.onPartData = y, r.onPartEnd = o);
|
|
168
|
+
} else d === "content-type" && (e = l);
|
|
169
|
+
l = "", d = "";
|
|
170
|
+
};
|
|
171
|
+
for await (const s of u) r.write(s);
|
|
172
|
+
return r.end(), H;
|
|
173
|
+
}
|
|
174
|
+
E(Z, "toFormData");
|
|
175
|
+
|
|
176
|
+
//#endregion
|
|
177
|
+
export { Z as toFormData };
|
|
178
|
+
//# sourceMappingURL=multipart-parser-CelMRf5R.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multipart-parser-CelMRf5R.mjs","names":["F","V","Y"],"sources":["../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs"],"sourcesContent":["var B=Object.defineProperty;var E=(u,a)=>B(u,\"name\",{value:a,configurable:!0});import{FormData as V,File as Y}from\"../node.mjs\";import\"node:http\";import\"node:https\";import\"node:zlib\";import\"node:stream\";import\"node:buffer\";import\"node:util\";import\"../shared/node-fetch-native.DfbY2q-x.mjs\";import\"node:url\";import\"node:net\";import\"node:fs\";import\"node:path\";let D=0;const t={START_BOUNDARY:D++,HEADER_FIELD_START:D++,HEADER_FIELD:D++,HEADER_VALUE_START:D++,HEADER_VALUE:D++,HEADER_VALUE_ALMOST_DONE:D++,HEADERS_ALMOST_DONE:D++,PART_DATA_START:D++,PART_DATA:D++,END:D++};let w=1;const R={PART_BOUNDARY:w,LAST_BOUNDARY:w*=2},g=10,N=13,x=32,P=45,C=58,I=97,M=122,$=E(u=>u|32,\"lower\"),m=E(()=>{},\"noop\"),F=class F{constructor(a){this.index=0,this.flags=0,this.onHeaderEnd=m,this.onHeaderField=m,this.onHeadersEnd=m,this.onHeaderValue=m,this.onPartBegin=m,this.onPartData=m,this.onPartEnd=m,this.boundaryChars={},a=`\\r\n--`+a;const n=new Uint8Array(a.length);for(let r=0;r<a.length;r++)n[r]=a.charCodeAt(r),this.boundaryChars[n[r]]=!0;this.boundary=n,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=t.START_BOUNDARY}write(a){let n=0;const r=a.length;let d=this.index,{lookbehind:l,boundary:c,boundaryChars:p,index:e,state:i,flags:A}=this;const H=this.boundary.length,O=H-1,y=a.length;let o,L;const f=E(h=>{this[h+\"Mark\"]=n},\"mark\"),s=E(h=>{delete this[h+\"Mark\"]},\"clear\"),T=E((h,S,_,U)=>{(S===void 0||S!==_)&&this[h](U&&U.subarray(S,_))},\"callback\"),b=E((h,S)=>{const _=h+\"Mark\";_ in this&&(S?(T(h,this[_],n,a),delete this[_]):(T(h,this[_],a.length,a),this[_]=0))},\"dataCallback\");for(n=0;n<r;n++)switch(o=a[n],i){case t.START_BOUNDARY:if(e===c.length-2){if(o===P)A|=R.LAST_BOUNDARY;else if(o!==N)return;e++;break}else if(e-1===c.length-2){if(A&R.LAST_BOUNDARY&&o===P)i=t.END,A=0;else if(!(A&R.LAST_BOUNDARY)&&o===g)e=0,T(\"onPartBegin\"),i=t.HEADER_FIELD_START;else return;break}o!==c[e+2]&&(e=-2),o===c[e+2]&&e++;break;case t.HEADER_FIELD_START:i=t.HEADER_FIELD,f(\"onHeaderField\"),e=0;case t.HEADER_FIELD:if(o===N){s(\"onHeaderField\"),i=t.HEADERS_ALMOST_DONE;break}if(e++,o===P)break;if(o===C){if(e===1)return;b(\"onHeaderField\",!0),i=t.HEADER_VALUE_START;break}if(L=$(o),L<I||L>M)return;break;case t.HEADER_VALUE_START:if(o===x)break;f(\"onHeaderValue\"),i=t.HEADER_VALUE;case t.HEADER_VALUE:o===N&&(b(\"onHeaderValue\",!0),T(\"onHeaderEnd\"),i=t.HEADER_VALUE_ALMOST_DONE);break;case t.HEADER_VALUE_ALMOST_DONE:if(o!==g)return;i=t.HEADER_FIELD_START;break;case t.HEADERS_ALMOST_DONE:if(o!==g)return;T(\"onHeadersEnd\"),i=t.PART_DATA_START;break;case t.PART_DATA_START:i=t.PART_DATA,f(\"onPartData\");case t.PART_DATA:if(d=e,e===0){for(n+=O;n<y&&!(a[n]in p);)n+=H;n-=O,o=a[n]}if(e<c.length)c[e]===o?(e===0&&b(\"onPartData\",!0),e++):e=0;else if(e===c.length)e++,o===N?A|=R.PART_BOUNDARY:o===P?A|=R.LAST_BOUNDARY:e=0;else if(e-1===c.length)if(A&R.PART_BOUNDARY){if(e=0,o===g){A&=~R.PART_BOUNDARY,T(\"onPartEnd\"),T(\"onPartBegin\"),i=t.HEADER_FIELD_START;break}}else A&R.LAST_BOUNDARY&&o===P?(T(\"onPartEnd\"),i=t.END,A=0):e=0;if(e>0)l[e-1]=o;else if(d>0){const h=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);T(\"onPartData\",0,d,h),d=0,f(\"onPartData\"),n--}break;case t.END:break;default:throw new Error(`Unexpected state entered: ${i}`)}b(\"onHeaderField\"),b(\"onHeaderValue\"),b(\"onPartData\"),this.index=e,this.state=i,this.flags=A}end(){if(this.state===t.HEADER_FIELD_START&&this.index===0||this.state===t.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==t.END)throw new Error(\"MultipartParser.end(): stream ended unexpectedly\")}};E(F,\"MultipartParser\");let k=F;function v(u){const a=u.match(/\\bfilename=(\"(.*?)\"|([^()<>@,;:\\\\\"/[\\]?={}\\s\\t]+))($|;\\s)/i);if(!a)return;const n=a[2]||a[3]||\"\";let r=n.slice(n.lastIndexOf(\"\\\\\")+1);return r=r.replace(/%22/g,'\"'),r=r.replace(/&#(\\d{4});/g,(d,l)=>String.fromCharCode(l)),r}E(v,\"_fileName\");async function Z(u,a){if(!/multipart/i.test(a))throw new TypeError(\"Failed to fetch\");const n=a.match(/boundary=(?:\"([^\"]+)\"|([^;]+))/i);if(!n)throw new TypeError(\"no or bad content-type header, no multipart boundary\");const r=new k(n[1]||n[2]);let d,l,c,p,e,i;const A=[],H=new V,O=E(s=>{c+=f.decode(s,{stream:!0})},\"onPartData\"),y=E(s=>{A.push(s)},\"appendToFile\"),o=E(()=>{const s=new Y(A,i,{type:e});H.append(p,s)},\"appendFileToFormData\"),L=E(()=>{H.append(p,c)},\"appendEntryToFormData\"),f=new TextDecoder(\"utf-8\");f.decode(),r.onPartBegin=function(){r.onPartData=O,r.onPartEnd=L,d=\"\",l=\"\",c=\"\",p=\"\",e=\"\",i=null,A.length=0},r.onHeaderField=function(s){d+=f.decode(s,{stream:!0})},r.onHeaderValue=function(s){l+=f.decode(s,{stream:!0})},r.onHeaderEnd=function(){if(l+=f.decode(),d=d.toLowerCase(),d===\"content-disposition\"){const s=l.match(/\\bname=(\"([^\"]*)\"|([^()<>@,;:\\\\\"/[\\]?={}\\s\\t]+))/i);s&&(p=s[2]||s[3]||\"\"),i=v(l),i&&(r.onPartData=y,r.onPartEnd=o)}else d===\"content-type\"&&(e=l);l=\"\",d=\"\"};for await(const s of u)r.write(s);return r.end(),H}E(Z,\"toFormData\");export{Z as toFormData};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAAA,IAAI,IAAE,OAAO;AAAe,IAAI,KAAG,GAAE,MAAI,EAAE,GAAE,QAAO;CAAC,OAAM;CAAE,cAAa,CAAC;CAAE,CAAC;AAAwR,IAAI,IAAE;AAAE,MAAM,IAAE;CAAC,gBAAe;CAAI,oBAAmB;CAAI,cAAa;CAAI,oBAAmB;CAAI,cAAa;CAAI,0BAAyB;CAAI,qBAAoB;CAAI,iBAAgB;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E;IAAE,uBAAuB,EAAC,IAAE,QAAM;AAAC,IAAE,OAAO,GAAE,EAAE;IAAE,wBAAwB,EAAC,IAAE,IAAI,YAAY,QAAQ;AAAC,GAAE,QAAQ,EAAC,EAAE,cAAY,WAAU;AAAC,IAAE,aAAW,GAAE,EAAE,YAAU,GAAE,IAAE,IAAG,IAAE,IAAG,IAAE,IAAG,IAAE,IAAG,IAAE,IAAG,IAAE,MAAK,EAAE,SAAO;IAAG,EAAE,gBAAc,SAAS,GAAE;AAAC,OAAG,EAAE,OAAO,GAAE,EAAC,QAAO,CAAC,GAAE,CAAC;IAAE,EAAE,gBAAc,SAAS,GAAE;AAAC,OAAG,EAAE,OAAO,GAAE,EAAC,QAAO,CAAC,GAAE,CAAC;IAAE,EAAE,cAAY,WAAU;AAAC,MAAG,KAAG,EAAE,QAAQ,EAAC,IAAE,EAAE,aAAa,EAAC,MAAI,uBAAsB;GAAC,MAAM,IAAE,EAAE,MAAM,oDAAoD;AAAC,SAAI,IAAE,EAAE,MAAI,EAAE,MAAI,KAAI,IAAE,EAAE,EAAE,EAAC,MAAI,EAAE,aAAW,GAAE,EAAE,YAAU;QAAQ,OAAI,mBAAiB,IAAE;AAAG,MAAE,IAAG,IAAE;;AAAI,YAAU,MAAM,KAAK,EAAE,GAAE,MAAM,EAAE;AAAC,QAAO,EAAE,KAAK,EAAC;;AAAE,EAAE,GAAE,aAAa"}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { i as withQuery, r as withBase, t as destr } from "./dist-Jfd0GR_C.mjs";
|
|
2
|
+
import { a as le, c as ye, i as dt, n as Mn, o as qn, r as br, s as ut, t as Mi } from "./node-C4Zezo2l.mjs";
|
|
3
|
+
import "node:fs";
|
|
4
|
+
import "node:url";
|
|
5
|
+
import "node:util";
|
|
6
|
+
import http from "node:http";
|
|
7
|
+
import https from "node:https";
|
|
8
|
+
import "node:zlib";
|
|
9
|
+
import "node:stream";
|
|
10
|
+
import "node:buffer";
|
|
11
|
+
import "node:net";
|
|
12
|
+
|
|
13
|
+
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs
|
|
14
|
+
const o = !!globalThis.process?.env?.FORCE_NODE_FETCH, r = !o && globalThis.fetch || Mi, p = !o && globalThis.Blob || ut, F = !o && globalThis.File || qn, h = !o && globalThis.FormData || br, n = !o && globalThis.Headers || ye, c = !o && globalThis.Request || dt, R = !o && globalThis.Response || le, T = !o && globalThis.AbortController || Mn;
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs
|
|
18
|
+
var FetchError = class extends Error {
|
|
19
|
+
constructor(message, opts) {
|
|
20
|
+
super(message, opts);
|
|
21
|
+
this.name = "FetchError";
|
|
22
|
+
if (opts?.cause && !this.cause) this.cause = opts.cause;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function createFetchError(ctx) {
|
|
26
|
+
const errorMessage = ctx.error?.message || ctx.error?.toString() || "";
|
|
27
|
+
const method = ctx.request?.method || ctx.options?.method || "GET";
|
|
28
|
+
const url = ctx.request?.url || String(ctx.request) || "/";
|
|
29
|
+
const fetchError = new FetchError(`${`[${method}] ${JSON.stringify(url)}`}: ${ctx.response ? `${ctx.response.status} ${ctx.response.statusText}` : "<no response>"}${errorMessage ? ` ${errorMessage}` : ""}`, ctx.error ? { cause: ctx.error } : void 0);
|
|
30
|
+
for (const key of [
|
|
31
|
+
"request",
|
|
32
|
+
"options",
|
|
33
|
+
"response"
|
|
34
|
+
]) Object.defineProperty(fetchError, key, { get() {
|
|
35
|
+
return ctx[key];
|
|
36
|
+
} });
|
|
37
|
+
for (const [key, refKey] of [
|
|
38
|
+
["data", "_data"],
|
|
39
|
+
["status", "status"],
|
|
40
|
+
["statusCode", "status"],
|
|
41
|
+
["statusText", "statusText"],
|
|
42
|
+
["statusMessage", "statusText"]
|
|
43
|
+
]) Object.defineProperty(fetchError, key, { get() {
|
|
44
|
+
return ctx.response && ctx.response[refKey];
|
|
45
|
+
} });
|
|
46
|
+
return fetchError;
|
|
47
|
+
}
|
|
48
|
+
const payloadMethods = new Set(Object.freeze([
|
|
49
|
+
"PATCH",
|
|
50
|
+
"POST",
|
|
51
|
+
"PUT",
|
|
52
|
+
"DELETE"
|
|
53
|
+
]));
|
|
54
|
+
function isPayloadMethod(method = "GET") {
|
|
55
|
+
return payloadMethods.has(method.toUpperCase());
|
|
56
|
+
}
|
|
57
|
+
function isJSONSerializable(value) {
|
|
58
|
+
if (value === void 0) return false;
|
|
59
|
+
const t = typeof value;
|
|
60
|
+
if (t === "string" || t === "number" || t === "boolean" || t === null) return true;
|
|
61
|
+
if (t !== "object") return false;
|
|
62
|
+
if (Array.isArray(value)) return true;
|
|
63
|
+
if (value.buffer) return false;
|
|
64
|
+
if (value instanceof FormData || value instanceof URLSearchParams) return false;
|
|
65
|
+
return value.constructor && value.constructor.name === "Object" || typeof value.toJSON === "function";
|
|
66
|
+
}
|
|
67
|
+
const textTypes = /* @__PURE__ */ new Set([
|
|
68
|
+
"image/svg",
|
|
69
|
+
"application/xml",
|
|
70
|
+
"application/xhtml",
|
|
71
|
+
"application/html"
|
|
72
|
+
]);
|
|
73
|
+
const JSON_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
|
|
74
|
+
function detectResponseType(_contentType = "") {
|
|
75
|
+
if (!_contentType) return "json";
|
|
76
|
+
const contentType = _contentType.split(";").shift() || "";
|
|
77
|
+
if (JSON_RE.test(contentType)) return "json";
|
|
78
|
+
if (contentType === "text/event-stream") return "stream";
|
|
79
|
+
if (textTypes.has(contentType) || contentType.startsWith("text/")) return "text";
|
|
80
|
+
return "blob";
|
|
81
|
+
}
|
|
82
|
+
function resolveFetchOptions(request, input, defaults, Headers$1) {
|
|
83
|
+
const headers = mergeHeaders(input?.headers ?? request?.headers, defaults?.headers, Headers$1);
|
|
84
|
+
let query;
|
|
85
|
+
if (defaults?.query || defaults?.params || input?.params || input?.query) query = {
|
|
86
|
+
...defaults?.params,
|
|
87
|
+
...defaults?.query,
|
|
88
|
+
...input?.params,
|
|
89
|
+
...input?.query
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
...defaults,
|
|
93
|
+
...input,
|
|
94
|
+
query,
|
|
95
|
+
params: query,
|
|
96
|
+
headers
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function mergeHeaders(input, defaults, Headers$1) {
|
|
100
|
+
if (!defaults) return new Headers$1(input);
|
|
101
|
+
const headers = new Headers$1(defaults);
|
|
102
|
+
if (input) for (const [key, value] of Symbol.iterator in input || Array.isArray(input) ? input : new Headers$1(input)) headers.set(key, value);
|
|
103
|
+
return headers;
|
|
104
|
+
}
|
|
105
|
+
async function callHooks(context, hooks) {
|
|
106
|
+
if (hooks) if (Array.isArray(hooks)) for (const hook of hooks) await hook(context);
|
|
107
|
+
else await hooks(context);
|
|
108
|
+
}
|
|
109
|
+
const retryStatusCodes = /* @__PURE__ */ new Set([
|
|
110
|
+
408,
|
|
111
|
+
409,
|
|
112
|
+
425,
|
|
113
|
+
429,
|
|
114
|
+
500,
|
|
115
|
+
502,
|
|
116
|
+
503,
|
|
117
|
+
504
|
|
118
|
+
]);
|
|
119
|
+
const nullBodyResponses = /* @__PURE__ */ new Set([
|
|
120
|
+
101,
|
|
121
|
+
204,
|
|
122
|
+
205,
|
|
123
|
+
304
|
|
124
|
+
]);
|
|
125
|
+
function createFetch(globalOptions = {}) {
|
|
126
|
+
const { fetch: fetch$1 = globalThis.fetch, Headers: Headers$1 = globalThis.Headers, AbortController: AbortController$1 = globalThis.AbortController } = globalOptions;
|
|
127
|
+
async function onError(context) {
|
|
128
|
+
const isAbort = context.error && context.error.name === "AbortError" && !context.options.timeout || false;
|
|
129
|
+
if (context.options.retry !== false && !isAbort) {
|
|
130
|
+
let retries;
|
|
131
|
+
if (typeof context.options.retry === "number") retries = context.options.retry;
|
|
132
|
+
else retries = isPayloadMethod(context.options.method) ? 0 : 1;
|
|
133
|
+
const responseCode = context.response && context.response.status || 500;
|
|
134
|
+
if (retries > 0 && (Array.isArray(context.options.retryStatusCodes) ? context.options.retryStatusCodes.includes(responseCode) : retryStatusCodes.has(responseCode))) {
|
|
135
|
+
const retryDelay = typeof context.options.retryDelay === "function" ? context.options.retryDelay(context) : context.options.retryDelay || 0;
|
|
136
|
+
if (retryDelay > 0) await new Promise((resolve) => setTimeout(resolve, retryDelay));
|
|
137
|
+
return $fetchRaw(context.request, {
|
|
138
|
+
...context.options,
|
|
139
|
+
retry: retries - 1
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const error = createFetchError(context);
|
|
144
|
+
if (Error.captureStackTrace) Error.captureStackTrace(error, $fetchRaw);
|
|
145
|
+
throw error;
|
|
146
|
+
}
|
|
147
|
+
const $fetchRaw = async function $fetchRaw2(_request, _options = {}) {
|
|
148
|
+
const context = {
|
|
149
|
+
request: _request,
|
|
150
|
+
options: resolveFetchOptions(_request, _options, globalOptions.defaults, Headers$1),
|
|
151
|
+
response: void 0,
|
|
152
|
+
error: void 0
|
|
153
|
+
};
|
|
154
|
+
if (context.options.method) context.options.method = context.options.method.toUpperCase();
|
|
155
|
+
if (context.options.onRequest) {
|
|
156
|
+
await callHooks(context, context.options.onRequest);
|
|
157
|
+
if (!(context.options.headers instanceof Headers$1)) context.options.headers = new Headers$1(context.options.headers || {});
|
|
158
|
+
}
|
|
159
|
+
if (typeof context.request === "string") {
|
|
160
|
+
if (context.options.baseURL) context.request = withBase(context.request, context.options.baseURL);
|
|
161
|
+
if (context.options.query) {
|
|
162
|
+
context.request = withQuery(context.request, context.options.query);
|
|
163
|
+
delete context.options.query;
|
|
164
|
+
}
|
|
165
|
+
if ("query" in context.options) delete context.options.query;
|
|
166
|
+
if ("params" in context.options) delete context.options.params;
|
|
167
|
+
}
|
|
168
|
+
if (context.options.body && isPayloadMethod(context.options.method)) {
|
|
169
|
+
if (isJSONSerializable(context.options.body)) {
|
|
170
|
+
const contentType = context.options.headers.get("content-type");
|
|
171
|
+
if (typeof context.options.body !== "string") context.options.body = contentType === "application/x-www-form-urlencoded" ? new URLSearchParams(context.options.body).toString() : JSON.stringify(context.options.body);
|
|
172
|
+
if (!contentType) context.options.headers.set("content-type", "application/json");
|
|
173
|
+
if (!context.options.headers.has("accept")) context.options.headers.set("accept", "application/json");
|
|
174
|
+
} else if ("pipeTo" in context.options.body && typeof context.options.body.pipeTo === "function" || typeof context.options.body.pipe === "function") {
|
|
175
|
+
if (!("duplex" in context.options)) context.options.duplex = "half";
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
let abortTimeout;
|
|
179
|
+
if (!context.options.signal && context.options.timeout) {
|
|
180
|
+
const controller = new AbortController$1();
|
|
181
|
+
abortTimeout = setTimeout(() => {
|
|
182
|
+
const error = /* @__PURE__ */ new Error("[TimeoutError]: The operation was aborted due to timeout");
|
|
183
|
+
error.name = "TimeoutError";
|
|
184
|
+
error.code = 23;
|
|
185
|
+
controller.abort(error);
|
|
186
|
+
}, context.options.timeout);
|
|
187
|
+
context.options.signal = controller.signal;
|
|
188
|
+
}
|
|
189
|
+
try {
|
|
190
|
+
context.response = await fetch$1(context.request, context.options);
|
|
191
|
+
} catch (error) {
|
|
192
|
+
context.error = error;
|
|
193
|
+
if (context.options.onRequestError) await callHooks(context, context.options.onRequestError);
|
|
194
|
+
return await onError(context);
|
|
195
|
+
} finally {
|
|
196
|
+
if (abortTimeout) clearTimeout(abortTimeout);
|
|
197
|
+
}
|
|
198
|
+
if ((context.response.body || context.response._bodyInit) && !nullBodyResponses.has(context.response.status) && context.options.method !== "HEAD") {
|
|
199
|
+
const responseType = (context.options.parseResponse ? "json" : context.options.responseType) || detectResponseType(context.response.headers.get("content-type") || "");
|
|
200
|
+
switch (responseType) {
|
|
201
|
+
case "json": {
|
|
202
|
+
const data = await context.response.text();
|
|
203
|
+
const parseFunction = context.options.parseResponse || destr;
|
|
204
|
+
context.response._data = parseFunction(data);
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
case "stream":
|
|
208
|
+
context.response._data = context.response.body || context.response._bodyInit;
|
|
209
|
+
break;
|
|
210
|
+
default: context.response._data = await context.response[responseType]();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (context.options.onResponse) await callHooks(context, context.options.onResponse);
|
|
214
|
+
if (!context.options.ignoreResponseError && context.response.status >= 400 && context.response.status < 600) {
|
|
215
|
+
if (context.options.onResponseError) await callHooks(context, context.options.onResponseError);
|
|
216
|
+
return await onError(context);
|
|
217
|
+
}
|
|
218
|
+
return context.response;
|
|
219
|
+
};
|
|
220
|
+
const $fetch$1 = async function $fetch2(request, options) {
|
|
221
|
+
return (await $fetchRaw(request, options))._data;
|
|
222
|
+
};
|
|
223
|
+
$fetch$1.raw = $fetchRaw;
|
|
224
|
+
$fetch$1.native = (...args) => fetch$1(...args);
|
|
225
|
+
$fetch$1.create = (defaultOptions = {}, customGlobalOptions = {}) => createFetch({
|
|
226
|
+
...globalOptions,
|
|
227
|
+
...customGlobalOptions,
|
|
228
|
+
defaults: {
|
|
229
|
+
...globalOptions.defaults,
|
|
230
|
+
...customGlobalOptions.defaults,
|
|
231
|
+
...defaultOptions
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return $fetch$1;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region ../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs
|
|
239
|
+
function createNodeFetch() {
|
|
240
|
+
if (!JSON.parse(process.env.FETCH_KEEP_ALIVE || "false")) return r;
|
|
241
|
+
const agentOptions = { keepAlive: true };
|
|
242
|
+
const httpAgent = new http.Agent(agentOptions);
|
|
243
|
+
const httpsAgent = new https.Agent(agentOptions);
|
|
244
|
+
const nodeFetchOptions = { agent(parsedURL) {
|
|
245
|
+
return parsedURL.protocol === "http:" ? httpAgent : httpsAgent;
|
|
246
|
+
} };
|
|
247
|
+
return function nodeFetchWithKeepAlive(input, init) {
|
|
248
|
+
return r(input, {
|
|
249
|
+
...nodeFetchOptions,
|
|
250
|
+
...init
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
const fetch = globalThis.fetch ? (...args) => globalThis.fetch(...args) : createNodeFetch();
|
|
255
|
+
const Headers = globalThis.Headers || n;
|
|
256
|
+
const AbortController = globalThis.AbortController || T;
|
|
257
|
+
const ofetch = createFetch({
|
|
258
|
+
fetch,
|
|
259
|
+
Headers,
|
|
260
|
+
AbortController
|
|
261
|
+
});
|
|
262
|
+
const $fetch = ofetch;
|
|
263
|
+
|
|
264
|
+
//#endregion
|
|
265
|
+
export { $fetch };
|
|
266
|
+
//# sourceMappingURL=node-BE0IsiNO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-BE0IsiNO.mjs","names":["e","t","s","l","a","i","b","m","Headers","AbortController","fetch","$fetch","nodeFetch","Headers$1","AbortController$1"],"sources":["../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs","../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs"],"sourcesContent":["import{fetch as e,Blob as t,File as s,FormData as l,Headers as a,Request as i,Response as b,AbortController as m}from\"./node.mjs\";export{AbortError,FetchError,blobFrom,blobFromSync,fileFrom,fileFromSync,isRedirect}from\"./node.mjs\";import\"node:http\";import\"node:https\";import\"node:zlib\";import\"node:stream\";import\"node:buffer\";import\"node:util\";import\"./shared/node-fetch-native.DfbY2q-x.mjs\";import\"node:url\";import\"node:net\";import\"node:fs\";import\"node:path\";const o=!!globalThis.process?.env?.FORCE_NODE_FETCH,r=!o&&globalThis.fetch||e,p=!o&&globalThis.Blob||t,F=!o&&globalThis.File||s,h=!o&&globalThis.FormData||l,n=!o&&globalThis.Headers||a,c=!o&&globalThis.Request||i,R=!o&&globalThis.Response||b,T=!o&&globalThis.AbortController||m;export{T as AbortController,p as Blob,F as File,h as FormData,n as Headers,c as Request,R as Response,r as default,r as fetch};\n","import destr from 'destr';\nimport { withBase, withQuery } from 'ufo';\n\nclass FetchError extends Error {\n constructor(message, opts) {\n super(message, opts);\n this.name = \"FetchError\";\n if (opts?.cause && !this.cause) {\n this.cause = opts.cause;\n }\n }\n}\nfunction createFetchError(ctx) {\n const errorMessage = ctx.error?.message || ctx.error?.toString() || \"\";\n const method = ctx.request?.method || ctx.options?.method || \"GET\";\n const url = ctx.request?.url || String(ctx.request) || \"/\";\n const requestStr = `[${method}] ${JSON.stringify(url)}`;\n const statusStr = ctx.response ? `${ctx.response.status} ${ctx.response.statusText}` : \"<no response>\";\n const message = `${requestStr}: ${statusStr}${errorMessage ? ` ${errorMessage}` : \"\"}`;\n const fetchError = new FetchError(\n message,\n ctx.error ? { cause: ctx.error } : void 0\n );\n for (const key of [\"request\", \"options\", \"response\"]) {\n Object.defineProperty(fetchError, key, {\n get() {\n return ctx[key];\n }\n });\n }\n for (const [key, refKey] of [\n [\"data\", \"_data\"],\n [\"status\", \"status\"],\n [\"statusCode\", \"status\"],\n [\"statusText\", \"statusText\"],\n [\"statusMessage\", \"statusText\"]\n ]) {\n Object.defineProperty(fetchError, key, {\n get() {\n return ctx.response && ctx.response[refKey];\n }\n });\n }\n return fetchError;\n}\n\nconst payloadMethods = new Set(\n Object.freeze([\"PATCH\", \"POST\", \"PUT\", \"DELETE\"])\n);\nfunction isPayloadMethod(method = \"GET\") {\n return payloadMethods.has(method.toUpperCase());\n}\nfunction isJSONSerializable(value) {\n if (value === void 0) {\n return false;\n }\n const t = typeof value;\n if (t === \"string\" || t === \"number\" || t === \"boolean\" || t === null) {\n return true;\n }\n if (t !== \"object\") {\n return false;\n }\n if (Array.isArray(value)) {\n return true;\n }\n if (value.buffer) {\n return false;\n }\n if (value instanceof FormData || value instanceof URLSearchParams) {\n return false;\n }\n return value.constructor && value.constructor.name === \"Object\" || typeof value.toJSON === \"function\";\n}\nconst textTypes = /* @__PURE__ */ new Set([\n \"image/svg\",\n \"application/xml\",\n \"application/xhtml\",\n \"application/html\"\n]);\nconst JSON_RE = /^application\\/(?:[\\w!#$%&*.^`~-]*\\+)?json(;.+)?$/i;\nfunction detectResponseType(_contentType = \"\") {\n if (!_contentType) {\n return \"json\";\n }\n const contentType = _contentType.split(\";\").shift() || \"\";\n if (JSON_RE.test(contentType)) {\n return \"json\";\n }\n if (contentType === \"text/event-stream\") {\n return \"stream\";\n }\n if (textTypes.has(contentType) || contentType.startsWith(\"text/\")) {\n return \"text\";\n }\n return \"blob\";\n}\nfunction resolveFetchOptions(request, input, defaults, Headers) {\n const headers = mergeHeaders(\n input?.headers ?? request?.headers,\n defaults?.headers,\n Headers\n );\n let query;\n if (defaults?.query || defaults?.params || input?.params || input?.query) {\n query = {\n ...defaults?.params,\n ...defaults?.query,\n ...input?.params,\n ...input?.query\n };\n }\n return {\n ...defaults,\n ...input,\n query,\n params: query,\n headers\n };\n}\nfunction mergeHeaders(input, defaults, Headers) {\n if (!defaults) {\n return new Headers(input);\n }\n const headers = new Headers(defaults);\n if (input) {\n for (const [key, value] of Symbol.iterator in input || Array.isArray(input) ? input : new Headers(input)) {\n headers.set(key, value);\n }\n }\n return headers;\n}\nasync function callHooks(context, hooks) {\n if (hooks) {\n if (Array.isArray(hooks)) {\n for (const hook of hooks) {\n await hook(context);\n }\n } else {\n await hooks(context);\n }\n }\n}\n\nconst retryStatusCodes = /* @__PURE__ */ new Set([\n 408,\n // Request Timeout\n 409,\n // Conflict\n 425,\n // Too Early (Experimental)\n 429,\n // Too Many Requests\n 500,\n // Internal Server Error\n 502,\n // Bad Gateway\n 503,\n // Service Unavailable\n 504\n // Gateway Timeout\n]);\nconst nullBodyResponses = /* @__PURE__ */ new Set([101, 204, 205, 304]);\nfunction createFetch(globalOptions = {}) {\n const {\n fetch = globalThis.fetch,\n Headers = globalThis.Headers,\n AbortController = globalThis.AbortController\n } = globalOptions;\n async function onError(context) {\n const isAbort = context.error && context.error.name === \"AbortError\" && !context.options.timeout || false;\n if (context.options.retry !== false && !isAbort) {\n let retries;\n if (typeof context.options.retry === \"number\") {\n retries = context.options.retry;\n } else {\n retries = isPayloadMethod(context.options.method) ? 0 : 1;\n }\n const responseCode = context.response && context.response.status || 500;\n if (retries > 0 && (Array.isArray(context.options.retryStatusCodes) ? context.options.retryStatusCodes.includes(responseCode) : retryStatusCodes.has(responseCode))) {\n const retryDelay = typeof context.options.retryDelay === \"function\" ? context.options.retryDelay(context) : context.options.retryDelay || 0;\n if (retryDelay > 0) {\n await new Promise((resolve) => setTimeout(resolve, retryDelay));\n }\n return $fetchRaw(context.request, {\n ...context.options,\n retry: retries - 1\n });\n }\n }\n const error = createFetchError(context);\n if (Error.captureStackTrace) {\n Error.captureStackTrace(error, $fetchRaw);\n }\n throw error;\n }\n const $fetchRaw = async function $fetchRaw2(_request, _options = {}) {\n const context = {\n request: _request,\n options: resolveFetchOptions(\n _request,\n _options,\n globalOptions.defaults,\n Headers\n ),\n response: void 0,\n error: void 0\n };\n if (context.options.method) {\n context.options.method = context.options.method.toUpperCase();\n }\n if (context.options.onRequest) {\n await callHooks(context, context.options.onRequest);\n if (!(context.options.headers instanceof Headers)) {\n context.options.headers = new Headers(\n context.options.headers || {}\n /* compat */\n );\n }\n }\n if (typeof context.request === \"string\") {\n if (context.options.baseURL) {\n context.request = withBase(context.request, context.options.baseURL);\n }\n if (context.options.query) {\n context.request = withQuery(context.request, context.options.query);\n delete context.options.query;\n }\n if (\"query\" in context.options) {\n delete context.options.query;\n }\n if (\"params\" in context.options) {\n delete context.options.params;\n }\n }\n if (context.options.body && isPayloadMethod(context.options.method)) {\n if (isJSONSerializable(context.options.body)) {\n const contentType = context.options.headers.get(\"content-type\");\n if (typeof context.options.body !== \"string\") {\n context.options.body = contentType === \"application/x-www-form-urlencoded\" ? new URLSearchParams(\n context.options.body\n ).toString() : JSON.stringify(context.options.body);\n }\n if (!contentType) {\n context.options.headers.set(\"content-type\", \"application/json\");\n }\n if (!context.options.headers.has(\"accept\")) {\n context.options.headers.set(\"accept\", \"application/json\");\n }\n } else if (\n // ReadableStream Body\n \"pipeTo\" in context.options.body && typeof context.options.body.pipeTo === \"function\" || // Node.js Stream Body\n typeof context.options.body.pipe === \"function\"\n ) {\n if (!(\"duplex\" in context.options)) {\n context.options.duplex = \"half\";\n }\n }\n }\n let abortTimeout;\n if (!context.options.signal && context.options.timeout) {\n const controller = new AbortController();\n abortTimeout = setTimeout(() => {\n const error = new Error(\n \"[TimeoutError]: The operation was aborted due to timeout\"\n );\n error.name = \"TimeoutError\";\n error.code = 23;\n controller.abort(error);\n }, context.options.timeout);\n context.options.signal = controller.signal;\n }\n try {\n context.response = await fetch(\n context.request,\n context.options\n );\n } catch (error) {\n context.error = error;\n if (context.options.onRequestError) {\n await callHooks(\n context,\n context.options.onRequestError\n );\n }\n return await onError(context);\n } finally {\n if (abortTimeout) {\n clearTimeout(abortTimeout);\n }\n }\n const hasBody = (context.response.body || // https://github.com/unjs/ofetch/issues/324\n // https://github.com/unjs/ofetch/issues/294\n // https://github.com/JakeChampion/fetch/issues/1454\n context.response._bodyInit) && !nullBodyResponses.has(context.response.status) && context.options.method !== \"HEAD\";\n if (hasBody) {\n const responseType = (context.options.parseResponse ? \"json\" : context.options.responseType) || detectResponseType(context.response.headers.get(\"content-type\") || \"\");\n switch (responseType) {\n case \"json\": {\n const data = await context.response.text();\n const parseFunction = context.options.parseResponse || destr;\n context.response._data = parseFunction(data);\n break;\n }\n case \"stream\": {\n context.response._data = context.response.body || context.response._bodyInit;\n break;\n }\n default: {\n context.response._data = await context.response[responseType]();\n }\n }\n }\n if (context.options.onResponse) {\n await callHooks(\n context,\n context.options.onResponse\n );\n }\n if (!context.options.ignoreResponseError && context.response.status >= 400 && context.response.status < 600) {\n if (context.options.onResponseError) {\n await callHooks(\n context,\n context.options.onResponseError\n );\n }\n return await onError(context);\n }\n return context.response;\n };\n const $fetch = async function $fetch2(request, options) {\n const r = await $fetchRaw(request, options);\n return r._data;\n };\n $fetch.raw = $fetchRaw;\n $fetch.native = (...args) => fetch(...args);\n $fetch.create = (defaultOptions = {}, customGlobalOptions = {}) => createFetch({\n ...globalOptions,\n ...customGlobalOptions,\n defaults: {\n ...globalOptions.defaults,\n ...customGlobalOptions.defaults,\n ...defaultOptions\n }\n });\n return $fetch;\n}\n\nexport { FetchError as F, createFetchError as a, createFetch as c };\n","import http from 'node:http';\nimport https from 'node:https';\nimport nodeFetch, { AbortController as AbortController$1, Headers as Headers$1 } from 'node-fetch-native';\nimport { c as createFetch } from './shared/ofetch.CWycOUEr.mjs';\nexport { F as FetchError, a as createFetchError } from './shared/ofetch.CWycOUEr.mjs';\nimport 'destr';\nimport 'ufo';\n\nfunction createNodeFetch() {\n const useKeepAlive = JSON.parse(process.env.FETCH_KEEP_ALIVE || \"false\");\n if (!useKeepAlive) {\n return nodeFetch;\n }\n const agentOptions = { keepAlive: true };\n const httpAgent = new http.Agent(agentOptions);\n const httpsAgent = new https.Agent(agentOptions);\n const nodeFetchOptions = {\n agent(parsedURL) {\n return parsedURL.protocol === \"http:\" ? httpAgent : httpsAgent;\n }\n };\n return function nodeFetchWithKeepAlive(input, init) {\n return nodeFetch(input, { ...nodeFetchOptions, ...init });\n };\n}\nconst fetch = globalThis.fetch ? (...args) => globalThis.fetch(...args) : createNodeFetch();\nconst Headers = globalThis.Headers || Headers$1;\nconst AbortController = globalThis.AbortController || AbortController$1;\nconst ofetch = createFetch({ fetch, Headers, AbortController });\nconst $fetch = ofetch;\n\nexport { $fetch, AbortController, Headers, createFetch, createNodeFetch, fetch, ofetch };\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;AAA4c,MAAM,IAAE,CAAC,CAAC,WAAW,SAAS,KAAK,kBAAiB,IAAE,CAAC,KAAG,WAAW,SAAOA,IAAE,IA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