UNPKG

next

Version:

The React Framework

1 lines • 792 kB
(()=>{var __webpack_modules__={"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/index.js":(e,t,r)=>{"use strict";const{parseContentType:n}=r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js"),s=[r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/multipart.js"),r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/urlencoded.js")].filter((function(e){return"function"==typeof e.detect}));e.exports=e=>{if("object"==typeof e&&null!==e||(e={}),"object"!=typeof e.headers||null===e.headers||"string"!=typeof e.headers["content-type"])throw new Error("Missing Content-Type");return function(e){const t=e.headers,r=n(t["content-type"]);if(!r)throw new Error("Malformed content type");for(const n of s){if(!n.detect(r))continue;const s={limits:e.limits,headers:t,conType:r,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return e.highWaterMark&&(s.highWaterMark=e.highWaterMark),e.fileHwm&&(s.fileHwm=e.fileHwm),s.defCharset=e.defCharset,s.defParamCharset=e.defParamCharset,s.preservePath=e.preservePath,new n(s)}throw new Error(`Unsupported content type: ${t["content-type"]}`)}(e)}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/multipart.js":(e,t,r)=>{"use strict";const{Readable:n,Writable:s}=r("stream"),i=r("../../node_modules/.pnpm/streamsearch@1.1.0/node_modules/streamsearch/lib/sbmh.js"),{basename:a,convertToUTF8:o,getDecoder:l,parseContentType:c,parseDisposition:u}=r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js"),d=Buffer.from("\r\n"),p=Buffer.from("\r"),f=Buffer.from("-");function h(){}const m=16384;class g{constructor(e){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0,this.cb=e}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0}push(e,t,r){let n=t;for(;t<r;)switch(this.state){case 0:{let s=!1;for(;t<r;++t){if(this.byteCount===m)return-1;++this.byteCount;const r=e[t];if(1!==w[r]){if(58!==r)return-1;if(this.name+=e.latin1Slice(n,t),0===this.name.length)return-1;++t,s=!0,this.state=1;break}}if(!s){this.name+=e.latin1Slice(n,t);break}}case 1:{let s=!1;for(;t<r;++t){if(this.byteCount===m)return-1;++this.byteCount;const r=e[t];if(32!==r&&9!==r){n=t,s=!0,this.state=2;break}}if(!s)break}case 2:switch(this.crlf){case 0:for(;t<r;++t){if(this.byteCount===m)return-1;++this.byteCount;const r=e[t];if(1!==E[r]){if(13!==r)return-1;++this.crlf;break}}this.value+=e.latin1Slice(n,t++);break;case 1:if(this.byteCount===m)return-1;if(++this.byteCount,10!==e[t++])return-1;++this.crlf;break;case 2:{if(this.byteCount===m)return-1;++this.byteCount;const r=e[t];32===r||9===r?(n=t,this.crlf=0):(++this.pairCount<2e3&&(this.name=this.name.toLowerCase(),void 0===this.header[this.name]?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),13===r?(++this.crlf,++t):(n=t,this.crlf=0,this.state=0,this.name="",this.value=""));break}case 3:{if(this.byteCount===m)return-1;if(++this.byteCount,10!==e[t++])return-1;const r=this.header;return this.reset(),this.cb(r),t}}}return t}}class v extends n{constructor(e,t){super(e),this.truncated=!1,this._readcb=null,this.once("end",(()=>{if(this._read(),0==--t._fileEndsLeft&&t._finalcb){const e=t._finalcb;t._finalcb=null,process.nextTick(e)}}))}_read(e){const t=this._readcb;t&&(this._readcb=null,t())}}const y={push:(e,t)=>{},destroy:()=>{}};function _(e,t){return e}function b(e,t,r){if(r)return t(r);t(r=x(e))}function x(e){if(e._hparser)return new Error("Malformed part header");const t=e._fileStream;return t&&(e._fileStream=null,t.destroy(new Error("Unexpected end of file"))),e._complete?void 0:new Error("Unexpected end of form")}const w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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ark?e.highWaterMark:void 0}),!e.conType.params||"string"!=typeof e.conType.params.boundary)throw new Error("Multipart: Boundary not found");const t=e.conType.params.boundary,r="string"==typeof e.defParamCharset&&e.defParamCharset?l(e.defParamCharset):_,n=e.defCharset||"utf8",s=e.preservePath,m={autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.fileHwm?e.fileHwm:void 0},b=e.limits,x=b&&"number"==typeof b.fieldSize?b.fieldSize:1048576,w=b&&"number"==typeof b.fileSize?b.fileSize:1/0,E=b&&"number"==typeof b.files?b.files:1/0,P=b&&"number"==typeof b.fields?b.fields:1/0,S=b&&"number"==typeof b.parts?b.parts:1/0;let C=-1,R=0,j=0,T=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let O,A,M,k,I,N=0,L=0,D=!1,F=!1,$=!1;this._hparser=null;const q=new g((e=>{let t;if(this._hparser=null,T=!1,k="text/plain",A=n,M="7bit",I=void 0,D=!1,!e["content-disposition"])return void(T=!0);const i=u(e["content-disposition"][0],r);if(i&&"form-data"===i.type){if(i.params&&(i.params.name&&(I=i.params.name),i.params["filename*"]?t=i.params["filename*"]:i.params.filename&&(t=i.params.filename),void 0===t||s||(t=a(t))),e["content-type"]){const t=c(e["content-type"][0]);t&&(k=`${t.type}/${t.subtype}`,t.params&&"string"==typeof t.params.charset&&(A=t.params.charset.toLowerCase()))}if(e["content-transfer-encoding"]&&(M=e["content-transfer-encoding"][0].toLowerCase()),"application/octet-stream"===k||void 0!==t){if(j===E)return F||(F=!0,this.emit("filesLimit")),void(T=!0);if(++j,0===this.listenerCount("file"))return void(T=!0);N=0,this._fileStream=new v(m,this),++this._fileEndsLeft,this.emit("file",I,this._fileStream,{filename:t,encoding:M,mimeType:k})}else{if(R===P)return $||($=!0,this.emit("fieldsLimit")),void(T=!0);if(++R,0===this.listenerCount("field"))return void(T=!0);O=[],L=0}}else T=!0}));let U=0;const H=(e,t,r,n,s)=>{e:for(;t;){if(null!==this._hparser){const e=this._hparser.push(t,r,n);if(-1===e){this._hparser=null,q.reset(),this.emit("error",new Error("Malformed part header"));break}r=e}if(r===n)break;if(0!==U){if(1===U){switch(t[r]){case 45:U=2,++r;break;case 13:U=3,++r;break;default:U=0}if(r===n)return}if(2===U){if(U=0,45===t[r])return this._complete=!0,void(this._bparser=y);const e=this._writecb;this._writecb=h,H(!1,f,0,1,!1),this._writecb=e}else if(3===U){if(U=0,10===t[r]){if(++r,C>=S)break;if(this._hparser=q,r===n)break;continue e}{const e=this._writecb;this._writecb=h,H(!1,p,0,1,!1),this._writecb=e}}}if(!T)if(this._fileStream){let e;const i=Math.min(n-r,w-N);s?e=t.slice(r,r+i):(e=Buffer.allocUnsafe(i),t.copy(e,0,r,r+i)),N+=e.length,N===w?(e.length>0&&this._fileStream.push(e),this._fileStream.emit("limit"),this._fileStream.truncated=!0,T=!0):this._fileStream.push(e)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(void 0!==O){let e;const i=Math.min(n-r,x-L);s?e=t.slice(r,r+i):(e=Buffer.allocUnsafe(i),t.copy(e,0,r,r+i)),L+=i,O.push(e),L===x&&(T=!0,D=!0)}break}if(e){if(U=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(void 0!==O){let e;switch(O.length){case 0:e="";break;case 1:e=o(O[0],A,0);break;default:e=o(Buffer.concat(O,L),A,0)}O=void 0,L=0,this.emit("field",I,e,{nameTruncated:!1,valueTruncated:D,encoding:M,mimeType:k})}++C===S&&this.emit("partsLimit")}};this._bparser=new i(`\r\n--${t}`,H),this._writecb=null,this._finalcb=null,this.write(d)}static detect(e){return"multipart"===e.type&&"form-data"===e.subtype}_write(e,t,r){this._writecb=r,this._bparser.push(e,0),this._writecb&&function(e,t){const r=e._writecb;e._writecb=null,r&&r()}(this)}_destroy(e,t){this._hparser=null,this._bparser=y,e||(e=x(this));const r=this._fileStream;r&&(this._fileStream=null,r.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(new Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=b.bind(null,this,e):b(this,e)}}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/urlencoded.js":(e,t,r)=>{"use strict";const{Writable:n}=r("stream"),{getDecoder:s}=r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js");function i(e,t,r,n){if(r>=n)return n;if(-1===e._byte){const s=l[t[r++]];if(-1===s)return-1;if(s>=8&&(e._encode=2),r<n){const n=l[t[r++]];if(-1===n)return-1;e._inKey?e._key+=String.fromCharCode((s<<4)+n):e._val+=String.fromCharCode((s<<4)+n),e._byte=-2,e._lastPos=r}else e._byte=s}else{const n=l[t[r++]];if(-1===n)return-1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+n):e._val+=String.fromCharCode((e._byte<<4)+n),e._byte=-2,e._lastPos=r}return r}function a(e,t,r,n){if(e._bytesKey>e.fieldNameSizeLimit){for(e._keyTrunc||e._lastPos<r&&(e._key+=t.latin1Slice(e._lastPos,r-1)),e._keyTrunc=!0;r<n;++r){const n=t[r];if(61===n||38===n)break;++e._bytesKey}e._lastPos=r}return r}function o(e,t,r,n){if(e._bytesVal>e.fieldSizeLimit){for(e._valTrunc||e._lastPos<r&&(e._val+=t.latin1Slice(e._lastPos,r-1)),e._valTrunc=!0;r<n&&38!==t[r];++r)++e._bytesVal;e._lastPos=r}return r}const l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports=class extends n{constructor(e){super({autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0});let t=e.defCharset||"utf8";e.conType.params&&"string"==typeof e.conType.params.charset&&(t=e.conType.params.charset),this.charset=t;const r=e.limits;this.fieldSizeLimit=r&&"number"==typeof r.fieldSize?r.fieldSize:1048576,this.fieldsLimit=r&&"number"==typeof r.fields?r.fields:1/0,this.fieldNameSizeLimit=r&&"number"==typeof r.fieldNameSize?r.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=s(t)}static detect(e){return"application"===e.type&&"x-www-form-urlencoded"===e.subtype}_write(e,t,r){if(this._fields>=this.fieldsLimit)return r();let n=0;const s=e.length;if(this._lastPos=0,-2!==this._byte){if(n=i(this,e,n,s),-1===n)return r(new Error("Malformed urlencoded form"));if(n>=s)return r();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;n<s;)if(this._inKey){for(n=a(this,e,n,s);n<s;){switch(e[n]){case 61:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue;case 43:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._key+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,n=i(this,e,n+1,s),-1===n)return r(new Error("Malformed urlencoded form"));if(n>=s)return r();++this._bytesKey,n=a(this,e,n,s);continue}++n,++this._bytesKey,n=a(this,e,n,s)}this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n))}else{for(n=o(this,e,n,s);n<s;){switch(e[n]){case 38:if(this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue e;case 43:this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._val+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,n=i(this,e,n+1,s),-1===n)return r(new Error("Malformed urlencoded form"));if(n>=s)return r();++this._bytesVal,n=o(this,e,n,s);continue}++n,++this._bytesVal,n=o(this,e,n,s)}this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n))}r()}_final(e){if(-2!==this._byte)return e(new Error("Malformed urlencoded form"));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"})),e()}}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js":function(e){"use strict";function t(e,t,r){for(;t<e.length;){for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let n;const s=t;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==a[r]){if(61!==r)return;break}}if(t===e.length)return;if(n=e.slice(s,t),++t===e.length)return;let i,l="";if(34===e.charCodeAt(t)){i=++t;let r=!1;for(;t<e.length;++t){const n=e.charCodeAt(t);if(92!==n){if(34===n){if(r){i=t,r=!1;continue}l+=e.slice(i,t);break}if(r&&(i=t-1,r=!1),1!==o[n])return}else r?(i=t,r=!1):(l+=e.slice(i,t),r=!0)}if(t===e.length)return;++t}else{for(i=t;t<e.length;++t){const r=e.charCodeAt(t);if(1!==a[r]){if(t===i)return;break}}l=e.slice(i,t)}n=n.toLowerCase(),void 0===r[n]&&(r[n]=l)}return r}function r(e,t,r,n){for(;t<e.length;){for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let s;const d=t;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==a[r]){if(61===r)break;return}}if(t===e.length)return;let p,f,h="";if(s=e.slice(d,t),42===s.charCodeAt(s.length-1)){const r=++t;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==l[r]){if(39!==r)return;break}}if(t===e.length)return;for(f=e.slice(r,t),++t;t<e.length&&39!==e.charCodeAt(t);++t);if(t===e.length)return;if(++t===e.length)return;p=t;let n=0;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==c[r]){if(37===r){let r,s;if(t+2<e.length&&-1!==(r=u[e.charCodeAt(t+1)])&&-1!==(s=u[e.charCodeAt(t+2)])){const i=(r<<4)+s;h+=e.slice(p,t),h+=String.fromCharCode(i),p=(t+=2)+1,i>=128?n=2:0===n&&(n=1);continue}return}break}}if(h+=e.slice(p,t),h=i(h,f,n),void 0===h)return}else{if(++t===e.length)return;if(34===e.charCodeAt(t)){p=++t;let r=!1;for(;t<e.length;++t){const n=e.charCodeAt(t);if(92!==n){if(34===n){if(r){p=t,r=!1;continue}h+=e.slice(p,t);break}if(r&&(p=t-1,r=!1),1!==o[n])return}else r?(p=t,r=!1):(h+=e.slice(p,t),r=!0)}if(t===e.length)return;++t}else{for(p=t;t<e.length;++t){const r=e.charCodeAt(t);if(1!==a[r]){if(t===p)return;break}}h=e.slice(p,t)}if(h=n(h,2),void 0===h)return}s=s.toLowerCase(),void 0===r[s]&&(r[s]=h)}return r}function n(e){let t;for(;;)switch(e){case"utf-8":case"utf8":return s.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return s.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return s.utf16le;case"base64":return s.base64;default:if(void 0===t){t=!0,e=e.toLowerCase();continue}return s.other.bind(e)}}const s={utf8:(e,t)=>{if(0===e.length)return"";if("string"==typeof e){if(t<2)return e;e=Buffer.from(e,"latin1")}return e.utf8Slice(0,e.length)},latin1:(e,t)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.ucs2Slice(0,e.length)),base64:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.base64Slice(0,e.length)),other:(e,t)=>{if(0===e.length)return"";"string"==typeof e&&(e=Buffer.from(e,"latin1"));try{return new TextDecoder(this).decode(e)}catch{}}};function i(e,t,r){const s=n(t);if(s)return s(e,r)}const a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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,-1,-1,-1,-1,-1,-1,-1,-1];e.exports={basename:function(e){if("string"!=typeof e)return"";for(let t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return".."===(e=e.slice(t+1))||"."===e?"":e}return".."===e||"."===e?"":e},convertToUTF8:i,getDecoder:n,parseContentType:function(e){if(0===e.length)return;const r=Object.create(null);let n=0;for(;n<e.length;++n){const t=e.charCodeAt(n);if(1!==a[t]){if(47!==t||0===n)return;break}}if(n===e.length)return;const s=e.slice(0,n).toLowerCase(),i=++n;for(;n<e.length;++n){const s=e.charCodeAt(n);if(1!==a[s]){if(n===i)return;if(void 0===t(e,n,r))return;break}}return n!==i?{type:s,subtype:e.slice(i,n).toLowerCase(),params:r}:void 0},parseDisposition:function(e,t){if(0===e.length)return;const n=Object.create(null);let s=0;for(;s<e.length;++s){const i=e.charCodeAt(s);if(1!==a[i]){if(void 0===r(e,s,n,t))return;break}}return{type:e.slice(0,s).toLowerCase(),params:n}}}},"../../node_modules/.pnpm/streamsearch@1.1.0/node_modules/streamsearch/lib/sbmh.js":e=>{"use strict";function t(e,t,r,n,s){for(let i=0;i<s;++i)if(e[t+i]!==r[n+i])return!1;return!0}function r(e,r){const s=r.length,i=e._needle,a=i.length;let o=-e._lookbehindSize;const l=a-1,c=i[l],u=s-a,d=e._occ,p=e._lookbehind;if(o<0){for(;o<0&&o<=u;){const t=o+l,s=t<0?p[e._lookbehindSize+t]:r[t];if(s===c&&n(e,r,o,l))return e._lookbehindSize=0,++e.matches,o>-e._lookbehindSize?e._cb(!0,p,0,e._lookbehindSize+o,!1):e._cb(!0,void 0,0,0,!0),e._bufPos=o+a;o+=d[s]}for(;o<0&&!n(e,r,o,s-o);)++o;if(o<0){const t=e._lookbehindSize+o;return t>0&&e._cb(!1,p,0,t,!1),e._lookbehindSize-=t,p.copy(p,0,t,e._lookbehindSize),p.set(r,e._lookbehindSize),e._lookbehindSize+=s,e._bufPos=s,s}e._cb(!1,p,0,e._lookbehindSize,!1),e._lookbehindSize=0}o+=e._bufPos;const f=i[0];for(;o<=u;){const n=r[o+l];if(n===c&&r[o]===f&&t(i,0,r,o,l))return++e.matches,o>0?e._cb(!0,r,e._bufPos,o,!0):e._cb(!0,void 0,0,0,!0),e._bufPos=o+a;o+=d[n]}for(;o<s;){if(r[o]===f&&t(r,o,i,0,s-o)){r.copy(p,0,o,s),e._lookbehindSize=s-o;break}++o}return o>0&&e._cb(!1,r,e._bufPos,o<s?o:s,!0),e._bufPos=s,s}function n(e,t,r,n){const s=e._lookbehind,i=e._lookbehindSize,a=e._needle;for(let e=0;e<n;++e,++r)if((r<0?s[i+r]:t[r])!==a[e])return!1;return!0}e.exports=class{constructor(e,t){if("function"!=typeof t)throw new Error("Missing match callback");if("string"==typeof e)e=Buffer.from(e);else if(!Buffer.isBuffer(e))throw new Error("Expected Buffer for needle, got "+typeof e);const r=e.length;if(this.maxMatches=1/0,this.matches=0,this._cb=t,this._lookbehindSize=0,this._needle=e,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(r),this._occ=[r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r],r>1)for(let t=0;t<r-1;++t)this._occ[e[t]]=r-1-t}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(e,t){let n;Buffer.isBuffer(e)||(e=Buffer.from(e,"latin1"));const s=e.length;for(this._bufPos=t||0;n!==s&&this.matches<this.maxMatches;)n=r(this,e);return n}destroy(){const e=this._lookbehindSize;e&&this._cb(!1,this._lookbehind,0,e,!1),this.reset()}}},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/ZodError.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;const n=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/util.js");t.ZodIssueCode=n.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class s extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(n);else if("invalid_return_type"===s.code)n(s.returnTypeError);else if("invalid_arguments"===s.code)n(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,n=0;for(;n<s.path.length;){const r=s.path[n];n===s.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(s))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},r=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=s,s.create=e=>new s(e)},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/errors.js":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMap=t.setErrorMap=t.defaultErrorMap=void 0;const s=n(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/locales/en.js"));t.defaultErrorMap=s.default;let i=s.default;t.setErrorMap=function(e){i=e},t.getErrorMap=function(){return i}},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/external.js":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/errors.js"),t),s(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/parseUtil.js"),t),s(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/typeAliases.js"),t),s(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/util.js"),t),s(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/types.js"),t),s(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/ZodError.js"),t)},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/errorUtil.js":(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0,(r=t.errorUtil||(t.errorUtil={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},r.toString=e=>"string"==typeof e?e:null==e?void 0:e.message},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/parseUtil.js":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const s=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/errors.js"),i=n(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/locales/en.js"));t.makeIssue=e=>{const{data:t,path:r,errorMaps:n,issueData:s}=e,i=[...r,...s.path||[]],a={...s,path:i};let o="";const l=n.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(a,{data:t,defaultError:o}).message;return{...s,path:i,message:s.message||o}},t.EMPTY_PATH=[],t.addIssueToContext=function(e,r){const n=(0,t.makeIssue)({issueData:r,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,(0,s.getErrorMap)(),i.default].filter((e=>!!e))});e.common.issues.push(n)};class a{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const s of r){if("aborted"===s.status)return t.INVALID;"dirty"===s.status&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const r=[];for(const e of t)r.push({key:await e.key,value:await e.value});return a.mergeObjectSync(e,r)}static mergeObjectSync(e,r){const n={};for(const s of r){const{key:r,value:i}=s;if("aborted"===r.status)return t.INVALID;if("aborted"===i.status)return t.INVALID;"dirty"===r.status&&e.dirty(),"dirty"===i.status&&e.dirty(),(void 0!==i.value||s.alwaysSet)&&(n[r.value]=i.value)}return{status:e.value,value:n}}}t.ParseStatus=a,t.INVALID=Object.freeze({status:"aborted"}),t.DIRTY=e=>({status:"dirty",value:e}),t.OK=e=>({status:"valid",value:e}),t.isAborted=e=>"aborted"===e.status,t.isDirty=e=>"dirty"===e.status,t.isValid=e=>"valid"===e.status,t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/typeAliases.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/util.js":(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r=t.util||(t.util={})),(t.objectUtil||(t.objectUtil={})).mergeShapes=(e,t)=>({...e,...t}),t.ZodParsedType=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t.getParsedType=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":return Array.isArray(e)?t.ZodParsedType.array:null===e?t.ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?t.ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?t.ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?t.ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?t.ZodParsedType.date:t.ZodParsedType.object;default:return t.ZodParsedType.unknown}}},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/index.js":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const o=i(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/external.js"));t.z=o,a(r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/external.js"),t),t.default=o},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/locales/en.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/util.js"),s=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/ZodError.js");t.default=(e,t)=>{let r;switch(e.code){case s.ZodIssueCode.invalid_type:r=e.received===n.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,n.util.jsonStringifyReplacer)}`;break;case s.ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${n.util.joinValues(e.keys,", ")}`;break;case s.ZodIssueCode.invalid_union:r="Invalid input";break;case s.ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${n.util.joinValues(e.options)}`;break;case s.ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${n.util.joinValues(e.options)}, received '${e.received}'`;break;case s.ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case s.ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case s.ZodIssueCode.invalid_date:r="Invalid date";break;case s.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:n.util.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.ZodIssueCode.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.ZodIssueCode.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.ZodIssueCode.custom:r="Invalid input";break;case s.ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case s.ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case s.ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,n.util.assertNever(e)}return{message:r}}},"../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/types.js":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.discriminatedUnion=t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.custom=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=void 0;const n=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/errors.js"),s=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/errorUtil.js"),i=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/parseUtil.js"),a=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/helpers/util.js"),o=r("../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/ZodError.js");class l{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const c=(e,t)=>{if((0,i.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new o.ZodError(e.common.issues);return this._error=t,this._error}}};function u(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:s}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=n?n:t.defaultError}:{message:null!=r?r:t.defaultError},description:s}}class d{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,a.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,a.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new i.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,a.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,i.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,a.getParsedType)(e)},s=this._parseSync({data:e,path:n.path,parent:n});return c(n,s)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,a.getParsedType)(e)},n=this._parse({data:e,path:r.path,parent:r}),s=await((0,i.isAsync)(n)?n:Promise.resolve(n));return c(r,s)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,n)=>{const s=e(t),i=()=>n.addIssue({code:o.ZodIssueCode.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then((e=>!!e||(i(),!1))):!!s||(i(),!1)}))}refinement(e,t){return this._refinement(((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1)))}_refinement(e){return new Q({schema:this,typeName:ae.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return J.create(this,this._def)}nullable(){return ee.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return k.create(this,this._def)}promise(){return Y.create(this,this._def)}or(e){return L.create([this,e],this._def)}and(e){return q.create(this,e,this._def)}transform(e){return new Q({...u(this._def),schema:this,typeName:ae.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new te({...u(this._def),innerType:this,defaultValue:t,typeName:ae.ZodDefault})}brand(){return new se({typeName:ae.ZodBranded,type:this,...u(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new re({...u(this._def),innerType:this,catchValue:t,typeName:ae.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ie.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=d,t.Schema=d,t.ZodSchema=d;const p=/^c[^\s-]{8,}$/i,f=/^[a-z][a-z0-9]*$/,h=/[0-9A-HJKMNP-TV-Z]{26}/,m=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,g=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,v=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,y=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,_=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class b extends d{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement((t=>e.test(t)),{validation:t,code:o.ZodIssueCode.invalid_string,...s.errorUtil.errToObj(r)}),this.nonempty=e=>this.min(1,s.errorUtil.errToObj(e)),this.trim=()=>new b({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new b({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new b({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==a.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,i.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:a.ZodParsedType.string,received:t.parsedType}),i.INVALID}const t=new i.ParseStatus;let r;for(const c of this._def.checks)if("min"===c.kind)e.data.length<c.value&&(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),t.dirty());else if("max"===c.kind)e.data.length>c.value&&(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),t.dirty());else if("length"===c.kind){const n=e.data.length>c.value,s=e.data.length<c.value;(n||s)&&(r=this._getOrReturnCtx(e,r),n?(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):s&&(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),t.dirty())}else if("email"===c.kind)g.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"email",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("emoji"===c.kind)v.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"emoji",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("uuid"===c.kind)m.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"uuid",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("cuid"===c.kind)p.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"cuid",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("cuid2"===c.kind)f.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"cuid2",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("ulid"===c.kind)h.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"ulid",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty());else if("url"===c.kind)try{new URL(e.data)}catch(n){r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"url",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty()}else"regex"===c.kind?(c.regex.lastIndex=0,c.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"regex",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty())):"trim"===c.kind?e.data=e.data.trim():"includes"===c.kind?e.data.includes(c.value,c.position)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),t.dirty()):"toLowerCase"===c.kind?e.data=e.data.toLowerCase():"toUpperCase"===c.kind?e.data=e.data.toUpperCase():"startsWith"===c.kind?e.data.startsWith(c.value)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{startsWith:c.value},message:c.message}),t.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{endsWith:c.value},message:c.message}),t.dirty()):"datetime"===c.kind?((l=c).precision?l.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${l.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${l.precision}}Z$`):0===l.precision?l.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):l.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")).test(e.data)||(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:"datetime",message:c.message}),t.dirty()):"ip"===c.kind?(n=e.data,("v4"!==(s=c.version)&&s||!y.test(n))&&("v6"!==s&&s||!_.test(n))&&(r=this._getOrReturnCtx(e,r),(0,i.addIssueToContext)(r,{validation:"ip",code:o.ZodIssueCode.invalid_string,message:c.message}),t.dirty())):a.util.assertNever(c);var n,s,l;return{status:t.value,value:e.data}}_addCheck(e){return new b({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid"