@anthropic-ai/claude-agent-sdk 0.3.203 → 0.3.204

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/bridge.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.
2
2
 
3
- // Version: 0.3.203
3
+ // Version: 0.3.204
4
4
  import{createRequire as d9}from"node:module";var n9=Object.create;var{getPrototypeOf:o9,defineProperty:_E,getOwnPropertyNames:i9}=Object;var s9=Object.prototype.hasOwnProperty;function a9(e){return this[e]}var c9,u9,Nu=(e,t,r)=>{var n=e!=null&&typeof e==="object";if(n){var o=t?c9??=new WeakMap:u9??=new WeakMap,i=o.get(e);if(i)return i}r=e!=null?n9(o9(e)):{};let s=t||!e||!e.__esModule?_E(r,"default",{value:e,enumerable:!0}):r;for(let a of i9(e))if(!s9.call(s,a))_E(s,a,{get:a9.bind(e,a),enumerable:!0});if(n)o.set(e,s);return s};var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var l9=(e)=>e;function A9(e,t){this[e]=l9.bind(null,t)}var ht=(e,t)=>{for(var r in t)_E(e,r,{get:t[r],enumerable:!0,configurable:!0,set:A9.bind(t,r)})};var E=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=d9(import.meta.url),p9=Symbol.dispose||Symbol.for("Symbol.dispose"),f9=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),Ye=(e,t,r)=>{if(t!=null){if(typeof t!=="object"&&typeof t!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var n;if(r)n=t[f9];if(n===void 0)n=t[p9];if(typeof n!=="function")throw TypeError("Object not disposable");e.push([r,n,t])}else if(r)e.push([r]);return t},je=(e,t,r)=>{var n=typeof SuppressedError==="function"?SuppressedError:function(s,a,c,u){return u=Error(c),u.name="SuppressedError",u.error=s,u.suppressed=a,u},o=(s)=>t=r?new n(s,t,"An error was suppressed during disposal"):(r=!0,s),i=(s)=>{while(s=e.pop())try{var a=s[1]&&s[1].call(s[2]);if(s[0])return Promise.resolve(a).then(i,(c)=>(o(c),i()))}catch(c){o(c)}if(r)throw t};return i()};function Lu(e,t){return function(){return e.apply(t,arguments)}}function Uu(e){return e!==null&&!sa(e)&&e.constructor!==null&&!sa(e.constructor)&&lr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}function h9(e){let t;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)t=ArrayBuffer.isView(e);else t=e&&e.buffer&&Bk(e.buffer);return t}function Q9(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function Fu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!=="object")e=[e];if(aa(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Uu(e))return;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length,a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function vk(e,t){if(Uu(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;while(n-- >0)if(o=r[n],t===o.toLowerCase())return o;return null}function vE(){let{caseless:e,skipUndefined:t}=Qk(this)&&this||{},r={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;let s=e&&vk(r,i)||i;if(xp(r[s])&&xp(o))r[s]=vE(r[s],o);else if(xp(o))r[s]=vE({},o);else if(aa(o))r[s]=o.slice();else if(!t||!sa(o))r[s]=o};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Fu(arguments[o],n);return r}function Z9(e){return!!(e&&lr(e.append)&&e[bk]==="FormData"&&e[Bp])}var g9,bp,Bp,bk,_p,fn=(e)=>(e=e.toLowerCase(),(t)=>_p(t)===e),vp=(e)=>(t)=>typeof t===e,aa,sa,Bk,m9,lr,_k,Ou=(e)=>e!==null&&typeof e==="object",E9=(e)=>e===!0||e===!1,xp=(e)=>{if(_p(e)!=="object")return!1;let t=bp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bk in e)&&!(Bp in e)},C9=(e)=>{if(!Ou(e)||Uu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},I9,y9,x9=(e)=>!!(e&&typeof e.uri<"u"),b9=(e)=>e&&typeof e.getParts<"u",B9,_9,v9=(e)=>Ou(e)&&lr(e.pipe),Ik,yk,w9=(e)=>{if(!e)return!1;if(yk&&e instanceof yk)return!0;let t=bp(e);if(!t||t===Object.prototype)return!1;if(!lr(e.append))return!1;let r=_p(e);return r==="formdata"||r==="object"&&lr(e.toString)&&e.toString()==="[object FormData]"},S9,k9,D9,R9,T9,N9=(e)=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),Pi,Qk=(e)=>!sa(e)&&e!==Pi,L9=(e,t,r,{allOwnKeys:n}={})=>(Fu(t,(o,i)=>{if(r&&lr(o))Object.defineProperty(e,i,{value:Lu(o,r),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),U9=(e)=>{if(e.charCodeAt(0)===65279)e=e.slice(1);return e},O9=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},F9=(e,t,r,n)=>{let o,i,s,a={};if(t=t||{},e==null)return t;do{o=Object.getOwnPropertyNames(e),i=o.length;while(i-- >0)if(s=o[i],(!n||n(s,e,t))&&!a[s])t[s]=e[s],a[s]=!0;e=r!==!1&&bp(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},M9=(e,t,r)=>{if(e=String(e),r===void 0||r>e.length)r=e.length;r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},P9=(e)=>{if(!e)return null;if(aa(e))return e;let t=e.length;if(!_k(t))return null;let r=Array(t);while(t-- >0)r[t]=e[t];return r},$9,H9=(e,t)=>{let n=(e&&e[Bp]).call(e),o;while((o=n.next())&&!o.done){let i=o.value;t.call(e,i[0],i[1])}},G9=(e,t)=>{let r,n=[];while((r=e.exec(t))!==null)n.push(r);return n},z9,Y9=(e)=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),xk,j9,wk=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Fu(r,(o,i)=>{let s;if((s=t(o,i,e))!==!1)n[i]=s||o}),Object.defineProperties(e,n)},V9=(e)=>{wk(e,(t,r)=>{if(lr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(!lr(n))return;if(t.enumerable=!1,"writable"in t){t.writable=!1;return}if(!t.set)t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}})},J9=(e,t)=>{let r={},n=(o)=>{o.forEach((i)=>{r[i]=!0})};return aa(e)?n(e):n(String(e).split(t)),r},W9=()=>{},q9=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,K9=(e)=>{let t=[,,,,,,,,,,],r=(n,o)=>{if(Ou(n)){if(t.indexOf(n)>=0)return;if(Uu(n))return n;if(!("toJSON"in n)){t[o]=n;let i=aa(n)?[]:{};return Fu(n,(s,a)=>{let c=r(s,o+1);!sa(c)&&(i[a]=c)}),t[o]=void 0,i}}return n};return r(e,0)},X9,eZ=(e)=>e&&(Ou(e)||lr(e))&&lr(e.then)&&lr(e.catch),Sk,tZ,rZ=(e)=>e!=null&&lr(e[Bp]),I;var Ve=E(()=>{({toString:g9}=Object.prototype),{getPrototypeOf:bp}=Object,{iterator:Bp,toStringTag:bk}=Symbol,_p=((e)=>(t)=>{let r=g9.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:aa}=Array,sa=vp("undefined");Bk=fn("ArrayBuffer");m9=vp("string"),lr=vp("function"),_k=vp("number"),I9=fn("Date"),y9=fn("File"),B9=fn("Blob"),_9=fn("FileList");Ik=Q9(),yk=typeof Ik.FormData<"u"?Ik.FormData:void 0,S9=fn("URLSearchParams"),[k9,D9,R9,T9]=["ReadableStream","Request","Response","Headers"].map(fn);Pi=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();$9=((e)=>(t)=>e&&t instanceof e)(typeof Uint8Array<"u"&&bp(Uint8Array)),z9=fn("HTMLFormElement"),xk=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),j9=fn("RegExp");X9=fn("AsyncFunction"),Sk=((e,t)=>{if(e)return setImmediate;return t?((r,n)=>(Pi.addEventListener("message",({source:o,data:i})=>{if(o===Pi&&i===r)n.length&&n.shift()()},!1),(o)=>{n.push(o),Pi.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):(r)=>setTimeout(r)})(typeof setImmediate==="function",lr(Pi.postMessage)),tZ=typeof queueMicrotask<"u"?queueMicrotask.bind(Pi):typeof process<"u"&&process.nextTick||Sk,I={isArray:aa,isArrayBuffer:Bk,isBuffer:Uu,isFormData:w9,isArrayBufferView:h9,isString:m9,isNumber:_k,isBoolean:E9,isObject:Ou,isPlainObject:xp,isEmptyObject:C9,isReadableStream:k9,isRequest:D9,isResponse:R9,isHeaders:T9,isUndefined:sa,isDate:I9,isFile:y9,isReactNativeBlob:x9,isReactNative:b9,isBlob:B9,isRegExp:j9,isFunction:lr,isStream:v9,isURLSearchParams:S9,isTypedArray:$9,isFileList:_9,forEach:Fu,merge:vE,extend:L9,trim:N9,stripBOM:U9,inherits:O9,toFlatObject:F9,kindOf:_p,kindOfTest:fn,endsWith:M9,toArray:P9,forEachEntry:H9,matchAll:G9,isHTMLForm:z9,hasOwnProperty:xk,hasOwnProp:xk,reduceDescriptors:wk,freezeMethods:V9,toObjectSet:J9,toCamelCase:Y9,noop:W9,toFiniteNumber:q9,findKey:vk,global:Pi,isContextDefined:Qk,isSpecCompliantForm:Z9,toJSONObject:K9,isAsyncFn:X9,isThenable:eZ,setImmediate:Sk,asap:tZ,isIterable:rZ}});var Vt,U;var Qr=E(()=>{Ve();Vt=class Vt extends Error{static from(e,t,r,n,o,i){let s=new Vt(e.message,t||e.code,r,n,o);if(s.cause=e,s.name=e.name,e.status!=null&&s.status==null)s.status=e.status;return i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e);if(Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o)this.response=o,this.status=o.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}};Vt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Vt.ERR_BAD_OPTION="ERR_BAD_OPTION";Vt.ECONNABORTED="ECONNABORTED";Vt.ETIMEDOUT="ETIMEDOUT";Vt.ERR_NETWORK="ERR_NETWORK";Vt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Vt.ERR_DEPRECATED="ERR_DEPRECATED";Vt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Vt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Vt.ERR_CANCELED="ERR_CANCELED";Vt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Vt.ERR_INVALID_URL="ERR_INVALID_URL";Vt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";U=Vt});var Rk=y((CUe,Dk)=>{var kk=v("stream").Stream,nZ=v("util");Dk.exports=gn;function gn(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}nZ.inherits(gn,kk);gn.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;if(e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream)e.pause();return r};Object.defineProperty(gn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});gn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};gn.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};gn.prototype.pause=function(){this.source.pause()};gn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};gn.prototype.pipe=function(){var e=kk.prototype.pipe.apply(this,arguments);return this.resume(),e};gn.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data")this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(e)};gn.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(e))}});var Uk=y((IUe,Lk)=>{var oZ=v("util"),Nk=v("stream").Stream,Tk=Rk();Lk.exports=At;function At(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}oZ.inherits(At,Nk);At.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};At.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};At.prototype.append=function(e){var t=At.isStreamLike(e);if(t){if(!(e instanceof Tk)){var r=Tk.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}if(this._handleErrors(e),this.pauseStreams)e.pause()}return this._streams.push(e),this};At.prototype.pipe=function(e,t){return Nk.prototype.pipe.call(this,e,t),this.resume(),e};At.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};At.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=At.isStreamLike(r);if(n)r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r);this._pipeNext(r)}.bind(this))};At.prototype._pipeNext=function(e){this._currentStream=e;var t=At.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};At.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};At.prototype.write=function(e){this.emit("data",e)};At.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};At.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};At.prototype.end=function(){this._reset(),this.emit("end")};At.prototype.destroy=function(){this._reset(),this.emit("close")};At.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};At.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(e))};At.prototype._updateDataSize=function(){this.dataSize=0;var e=this;if(this._streams.forEach(function(t){if(!t.dataSize)return;e.dataSize+=t.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};At.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Ok=y((yUe,iZ)=>{iZ.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var Hk=y((dZ)=>{/*!
5
5
  * mime-types
6
6
  * Copyright(c) 2014 Jonathan Ong
@@ -154,7 +154,7 @@ ${r.count} ${r.noun} ${r.is} pending:
154
154
 
155
155
  ${e.format(t)}
156
156
  `.trim())}}dJ.exports=AJ});var Mm=y((Flt,mJ)=>{var fJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:dke}=we(),pke=cu();if(hJ()===void 0)gJ(new pke);function gJ(e){if(!e||typeof e.dispatch!=="function")throw new dke("Argument agent must implement Agent");Object.defineProperty(globalThis,fJ,{value:e,writable:!0,enumerable:!1,configurable:!1})}function hJ(){return globalThis[fJ]}mJ.exports={setGlobalDispatcher:gJ,getGlobalDispatcher:hJ}});var Pm=y((Mlt,EJ)=>{EJ.exports=class{#e;constructor(t){if(typeof t!=="object"||t===null)throw TypeError("handler must be an object");this.#e=t}onConnect(...t){return this.#e.onConnect?.(...t)}onError(...t){return this.#e.onError?.(...t)}onUpgrade(...t){return this.#e.onUpgrade?.(...t)}onResponseStarted(...t){return this.#e.onResponseStarted?.(...t)}onHeaders(...t){return this.#e.onHeaders?.(...t)}onData(...t){return this.#e.onData?.(...t)}onComplete(...t){return this.#e.onComplete?.(...t)}onBodySent(...t){return this.#e.onBodySent?.(...t)}}});var IJ=y((Plt,CJ)=>{var fke=Im();CJ.exports=(e)=>{let t=e?.maxRedirections;return(r)=>function(o,i){let{maxRedirections:s=t,...a}=o;if(!s)return r(o,i);let c=new fke(r,s,o,i);return r(a,c)}}});var xJ=y(($lt,yJ)=>{var gke=km();yJ.exports=(e)=>(t)=>function(n,o){return t(n,new gke({...n,retryOptions:{...e,...n.retryOptions}},{handler:o,dispatch:t}))}});var _J=y((Hlt,BJ)=>{var hke=Ce(),{InvalidArgumentError:mke,RequestAbortedError:Eke}=we(),Cke=Pm();class bJ extends Cke{#e=1048576;#t=null;#r=!1;#n=!1;#o=0;#a=null;#i=null;constructor({maxSize:e},t){super(t);if(e!=null&&(!Number.isFinite(e)||e<1))throw new mke("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=t}onConnect(e){this.#t=e,this.#i.onConnect(this.#l.bind(this))}#l(e){this.#n=!0,this.#a=e}onHeaders(e,t,r,n){let i=hke.parseHeaders(t)["content-length"];if(i!=null&&i>this.#e)throw new Eke(`Response size (${i}) larger than maxSize (${this.#e})`);if(this.#n)return!0;return this.#i.onHeaders(e,t,r,n)}onError(e){if(this.#r)return;e=this.#a??e,this.#i.onError(e)}onData(e){if(this.#o=this.#o+e.length,this.#o>=this.#e)if(this.#r=!0,this.#n)this.#i.onError(this.#a);else this.#i.onComplete([]);return!0}onComplete(e){if(this.#r)return;if(this.#n){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}function Ike({maxSize:e}={maxSize:1048576}){return(t)=>function(n,o){let{dumpMaxSize:i=e}=n,s=new bJ({maxSize:i},o);return t(n,s)}}BJ.exports=Ike});var kJ=y((Glt,SJ)=>{var{isIP:yke}=v("node:net"),{lookup:xke}=v("node:dns"),bke=Pm(),{InvalidArgumentError:mu,InformationalError:Bke}=we(),vJ=Math.pow(2,31)-1;class QJ{#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#n,this.pick=e.pick??this.#o}get full(){return this.#r.size===this.#t}runLookup(e,t,r){let n=this.#r.get(e.hostname);if(n==null&&this.full){r(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,o,(i,s)=>{if(i||s==null||s.length===0){r(i??new Bke("No DNS entries found"));return}this.setRecords(e,s);let a=this.#r.get(e.hostname),c=this.pick(e,a,o.affinity),u;if(typeof c.port==="number")u=`:${c.port}`;else if(e.port!=="")u=`:${e.port}`;else u="";r(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let i=this.pick(e,n,o.affinity);if(i==null){this.#r.delete(e.hostname),this.runLookup(e,t,r);return}let s;if(typeof i.port==="number")s=`:${i.port}`;else if(e.port!=="")s=`:${e.port}`;else s="";r(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${s}`)}}#n(e,t,r){xke(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,o)=>{if(n)return r(n);let i=new Map;for(let s of o)i.set(`${s.address}:${s.family}`,s);r(null,i.values())})}#o(e,t,r){let n=null,{records:o,offset:i}=t,s;if(this.dualStack){if(r==null)if(i==null||i===vJ)t.offset=0,r=4;else t.offset++,r=(t.offset&1)===1?6:4;if(o[r]!=null&&o[r].ips.length>0)s=o[r];else s=o[r===4?6:4]}else s=o[r];if(s==null||s.ips.length===0)return n;if(s.offset==null||s.offset===vJ)s.offset=0;else s.offset++;let a=s.offset%s.ips.length;if(n=s.ips[a]??null,n==null)return n;if(Date.now()-n.timestamp>n.ttl)return s.ips.splice(a,1),this.pick(e,t,r);return n}setRecords(e,t){let r=Date.now(),n={records:{4:null,6:null}};for(let o of t){if(o.timestamp=r,typeof o.ttl==="number")o.ttl=Math.min(o.ttl,this.#e);else o.ttl=this.#e;let i=n.records[o.family]??{ips:[]};i.ips.push(o),n.records[o.family]=i}this.#r.set(e.hostname,n)}getHandler(e,t){return new wJ(this,e,t)}}class wJ extends bke{#e=null;#t=null;#r=null;#n=null;#o=null;constructor(e,{origin:t,handler:r,dispatch:n},o){super(r);this.#o=t,this.#n=r,this.#t={...o},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#o,this.#t,(t,r)=>{if(t)return this.#n.onError(t);let n={...this.#t,origin:r};this.#r(n,this)});return}this.#n.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#o);default:this.#n.onError(e);break}}}SJ.exports=(e)=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=="number"||e?.maxTTL<0))throw new mu("Invalid maxTTL. Must be a positive number");if(e?.maxItems!=null&&(typeof e?.maxItems!=="number"||e?.maxItems<1))throw new mu("Invalid maxItems. Must be a positive number and greater than zero");if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new mu("Invalid affinity. Must be either 4 or 6");if(e?.dualStack!=null&&typeof e?.dualStack!=="boolean")throw new mu("Invalid dualStack. Must be a boolean");if(e?.lookup!=null&&typeof e?.lookup!=="function")throw new mu("Invalid lookup. Must be a function");if(e?.pick!=null&&typeof e?.pick!=="function")throw new mu("Invalid pick. Must be a function");let t=e?.dualStack??!0,r;if(t)r=e?.affinity??null;else r=e?.affinity??4;let n={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0},o=new QJ(n);return(i)=>function(a,c){let u=a.origin.constructor===URL?a.origin:new URL(a.origin);if(yke(u.hostname)!==0)return i(a,c);return o.runLookup(u,a,(A,p)=>{if(A)return c.onError(A);let d=null;d={...a,servername:u.hostname,origin:p,headers:{host:u.hostname,...a.headers}},i(d,o.getHandler({origin:u,dispatch:i,handler:c},a))}),!0}}});var Ws=y((zlt,OJ)=>{var{kConstruct:_ke}=ot(),{kEnumerableProperty:Eu}=Ce(),{iteratorMixin:vke,isValidHeaderName:Kd,isValidHeaderValue:RJ}=Gr(),{webidl:ve}=Yt(),SS=v("node:assert"),$m=v("node:util"),Qt=Symbol("headers map"),jr=Symbol("headers map sorted");function DJ(e){return e===10||e===13||e===9||e===32}function TJ(e){let t=0,r=e.length;while(r>t&&DJ(e.charCodeAt(r-1)))--r;while(r>t&&DJ(e.charCodeAt(t)))++t;return t===0&&r===e.length?e:e.substring(t,r)}function NJ(e,t){if(Array.isArray(t))for(let r=0;r<t.length;++r){let n=t[r];if(n.length!==2)throw ve.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});kS(e,n[0],n[1])}else if(typeof t==="object"&&t!==null){let r=Object.keys(t);for(let n=0;n<r.length;++n)kS(e,r[n],t[r[n]])}else throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function kS(e,t,r){if(r=TJ(r),!Kd(t))throw ve.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"});else if(!RJ(r))throw ve.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"});if(UJ(e)==="immutable")throw TypeError("immutable");return DS(e).append(t,r,!1)}function LJ(e,t){return e[0]<t[0]?-1:1}class Hm{cookies=null;constructor(e){if(e instanceof Hm)this[Qt]=new Map(e[Qt]),this[jr]=e[jr],this.cookies=e.cookies===null?null:[...e.cookies];else this[Qt]=new Map(e),this[jr]=null}contains(e,t){return this[Qt].has(t?e:e.toLowerCase())}clear(){this[Qt].clear(),this[jr]=null,this.cookies=null}append(e,t,r){this[jr]=null;let n=r?e:e.toLowerCase(),o=this[Qt].get(n);if(o){let i=n==="cookie"?"; ":", ";this[Qt].set(n,{name:o.name,value:`${o.value}${i}${t}`})}else this[Qt].set(n,{name:e,value:t});if(n==="set-cookie")(this.cookies??=[]).push(t)}set(e,t,r){this[jr]=null;let n=r?e:e.toLowerCase();if(n==="set-cookie")this.cookies=[t];this[Qt].set(n,{name:e,value:t})}delete(e,t){if(this[jr]=null,!t)e=e.toLowerCase();if(e==="set-cookie")this.cookies=null;this[Qt].delete(e)}get(e,t){return this[Qt].get(t?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:t}}of this[Qt])yield[e,t]}get entries(){let e={};if(this[Qt].size!==0)for(let{name:t,value:r}of this[Qt].values())e[t]=r;return e}rawValues(){return this[Qt].values()}get entriesList(){let e=[];if(this[Qt].size!==0)for(let{0:t,1:{name:r,value:n}}of this[Qt])if(t==="set-cookie")for(let o of this.cookies)e.push([r,o]);else e.push([r,n]);return e}toSortedArray(){let e=this[Qt].size,t=Array(e);if(e<=32){if(e===0)return t;let r=this[Qt][Symbol.iterator](),n=r.next().value;t[0]=[n[0],n[1].value],SS(n[1].value!==null);for(let o=1,i=0,s=0,a=0,c=0,u,A;o<e;++o){A=r.next().value,u=t[o]=[A[0],A[1].value],SS(u[1]!==null),a=0,s=o;while(a<s)if(c=a+(s-a>>1),t[c][0]<=u[0])a=c+1;else s=c;if(o!==c){i=o;while(i>a)t[i]=t[--i];t[a]=u}}if(!r.next().done)throw TypeError("Unreachable");return t}else{let r=0;for(let{0:n,1:{value:o}}of this[Qt])t[r++]=[n,o],SS(o!==null);return t.sort(LJ)}}}class rr{#e;#t;constructor(e=void 0){if(ve.util.markAsUncloneable(this),e===_ke)return;if(this.#t=new Hm,this.#e="none",e!==void 0)e=ve.converters.HeadersInit(e,"Headers contructor","init"),NJ(this,e)}append(e,t){ve.brandCheck(this,rr),ve.argumentLengthCheck(arguments,2,"Headers.append");let r="Headers.append";return e=ve.converters.ByteString(e,r,"name"),t=ve.converters.ByteString(t,r,"value"),kS(this,e,t)}delete(e){ve.brandCheck(this,rr),ve.argumentLengthCheck(arguments,1,"Headers.delete");let t="Headers.delete";if(e=ve.converters.ByteString(e,t,"name"),!Kd(e))throw ve.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw TypeError("immutable");if(!this.#t.contains(e,!1))return;this.#t.delete(e,!1)}get(e){ve.brandCheck(this,rr),ve.argumentLengthCheck(arguments,1,"Headers.get");let t="Headers.get";if(e=ve.converters.ByteString(e,t,"name"),!Kd(e))throw ve.errors.invalidArgument({prefix:t,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){ve.brandCheck(this,rr),ve.argumentLengthCheck(arguments,1,"Headers.has");let t="Headers.has";if(e=ve.converters.ByteString(e,t,"name"),!Kd(e))throw ve.errors.invalidArgument({prefix:t,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,t){ve.brandCheck(this,rr),ve.argumentLengthCheck(arguments,2,"Headers.set");let r="Headers.set";if(e=ve.converters.ByteString(e,r,"name"),t=ve.converters.ByteString(t,r,"value"),t=TJ(t),!Kd(e))throw ve.errors.invalidArgument({prefix:r,value:e,type:"header name"});else if(!RJ(t))throw ve.errors.invalidArgument({prefix:r,value:t,type:"header value"});if(this.#e==="immutable")throw TypeError("immutable");this.#t.set(e,t,!1)}getSetCookie(){ve.brandCheck(this,rr);let e=this.#t.cookies;if(e)return[...e];return[]}get[jr](){if(this.#t[jr])return this.#t[jr];let e=[],t=this.#t.toSortedArray(),r=this.#t.cookies;if(r===null||r.length===1)return this.#t[jr]=t;for(let n=0;n<t.length;++n){let{0:o,1:i}=t[n];if(o==="set-cookie")for(let s=0;s<r.length;++s)e.push([o,r[s]]);else e.push([o,i])}return this.#t[jr]=e}[$m.inspect.custom](e,t){return t.depth??=e,`Headers ${$m.formatWithOptions(t,this.#t.entries)}`}static getHeadersGuard(e){return e.#e}static setHeadersGuard(e,t){e.#e=t}static getHeadersList(e){return e.#t}static setHeadersList(e,t){e.#t=t}}var{getHeadersGuard:UJ,setHeadersGuard:Qke,getHeadersList:DS,setHeadersList:wke}=rr;Reflect.deleteProperty(rr,"getHeadersGuard");Reflect.deleteProperty(rr,"setHeadersGuard");Reflect.deleteProperty(rr,"getHeadersList");Reflect.deleteProperty(rr,"setHeadersList");vke("Headers",rr,jr,0,1);Object.defineProperties(rr.prototype,{append:Eu,delete:Eu,get:Eu,has:Eu,set:Eu,getSetCookie:Eu,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[$m.inspect.custom]:{enumerable:!1}});ve.converters.HeadersInit=function(e,t,r){if(ve.util.Type(e)==="Object"){let n=Reflect.get(e,Symbol.iterator);if(!$m.types.isProxy(e)&&n===rr.prototype.entries)try{return DS(e).entriesList}catch{}if(typeof n==="function")return ve.converters["sequence<sequence<ByteString>>"](e,t,r,n.bind(e));return ve.converters["record<ByteString, ByteString>"](e,t,r)}throw ve.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};OJ.exports={fill:NJ,compareHeaderName:LJ,Headers:rr,HeadersList:Hm,getHeadersGuard:UJ,setHeadersGuard:Qke,setHeadersList:wke,getHeadersList:DS}});var ep=y((Ylt,WJ)=>{var{Headers:GJ,HeadersList:FJ,fill:Ske,getHeadersGuard:kke,setHeadersGuard:zJ,setHeadersList:YJ}=Ws(),{extractBody:MJ,cloneBody:Dke,mixinBody:Rke,hasFinalizationRegistry:jJ,streamRegistry:VJ,bodyUnusable:Tke}=Xc(),RS=Ce(),PJ=v("node:util"),{kEnumerableProperty:Vr}=RS,{isValidReasonPhrase:Nke,isCancelled:Lke,isAborted:Uke,isBlobLike:Oke,serializeJavascriptValueToJSONString:Fke,isErrorLike:Mke,isomorphicEncode:Pke,environmentSettingsObject:$ke}=Gr(),{redirectStatusSet:Hke,nullBodyStatus:Gke}=bd(),{kState:it,kHeaders:Ho}=Ii(),{webidl:fe}=Yt(),{FormData:zke}=wd(),{URLSerializer:$J}=Ir(),{kConstruct:zm}=ot(),TS=v("node:assert"),{types:Yke}=v("node:util"),jke=new TextEncoder("utf-8");class nr{static error(){return Xd(Ym(),"immutable")}static json(e,t={}){if(fe.argumentLengthCheck(arguments,1,"Response.json"),t!==null)t=fe.converters.ResponseInit(t);let r=jke.encode(Fke(e)),n=MJ(r),o=Xd(Cu({}),"response");return HJ(o,t,{body:n[0],type:"application/json"}),o}static redirect(e,t=302){fe.argumentLengthCheck(arguments,1,"Response.redirect"),e=fe.converters.USVString(e),t=fe.converters["unsigned short"](t);let r;try{r=new URL(e,$ke.settingsObject.baseUrl)}catch(i){throw TypeError(`Failed to parse URL from ${e}`,{cause:i})}if(!Hke.has(t))throw RangeError(`Invalid status code ${t}`);let n=Xd(Cu({}),"immutable");n[it].status=t;let o=Pke($J(r));return n[it].headersList.append("location",o,!0),n}constructor(e=null,t={}){if(fe.util.markAsUncloneable(this),e===zm)return;if(e!==null)e=fe.converters.BodyInit(e);t=fe.converters.ResponseInit(t),this[it]=Cu({}),this[Ho]=new GJ(zm),zJ(this[Ho],"response"),YJ(this[Ho],this[it].headersList);let r=null;if(e!=null){let[n,o]=MJ(e);r={body:n,type:o}}HJ(this,t,r)}get type(){return fe.brandCheck(this,nr),this[it].type}get url(){fe.brandCheck(this,nr);let e=this[it].urlList,t=e[e.length-1]??null;if(t===null)return"";return $J(t,!0)}get redirected(){return fe.brandCheck(this,nr),this[it].urlList.length>1}get status(){return fe.brandCheck(this,nr),this[it].status}get ok(){return fe.brandCheck(this,nr),this[it].status>=200&&this[it].status<=299}get statusText(){return fe.brandCheck(this,nr),this[it].statusText}get headers(){return fe.brandCheck(this,nr),this[Ho]}get body(){return fe.brandCheck(this,nr),this[it].body?this[it].body.stream:null}get bodyUsed(){return fe.brandCheck(this,nr),!!this[it].body&&RS.isDisturbed(this[it].body.stream)}clone(){if(fe.brandCheck(this,nr),Tke(this))throw fe.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=NS(this[it]);if(jJ&&this[it].body?.stream)VJ.register(this,new WeakRef(this[it].body.stream));return Xd(e,kke(this[Ho]))}[PJ.inspect.custom](e,t){if(t.depth===null)t.depth=2;t.colors??=!0;let r={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${PJ.formatWithOptions(t,r)}`}}Rke(nr);Object.defineProperties(nr.prototype,{type:Vr,url:Vr,status:Vr,ok:Vr,redirected:Vr,statusText:Vr,headers:Vr,clone:Vr,body:Vr,bodyUsed:Vr,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(nr,{json:Vr,redirect:Vr,error:Vr});function NS(e){if(e.internalResponse)return JJ(NS(e.internalResponse),e.type);let t=Cu({...e,body:null});if(e.body!=null)t.body=Dke(t,e.body);return t}function Cu(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new FJ(e?.headersList):new FJ,urlList:e?.urlList?[...e.urlList]:[]}}function Ym(e){let t=Mke(e);return Cu({type:"error",status:0,error:t?e:Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function Vke(e){return e.type==="error"&&e.status===0}function Gm(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(r,n){return n in t?t[n]:r[n]},set(r,n,o){return TS(!(n in t)),r[n]=o,!0}})}function JJ(e,t){if(t==="basic")return Gm(e,{type:"basic",headersList:e.headersList});else if(t==="cors")return Gm(e,{type:"cors",headersList:e.headersList});else if(t==="opaque")return Gm(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});else if(t==="opaqueredirect")return Gm(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});else TS(!1)}function Jke(e,t=null){return TS(Lke(e)),Uke(e)?Ym(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:t})):Ym(Object.assign(new DOMException("Request was cancelled."),{cause:t}))}function HJ(e,t,r){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in t&&t.statusText!=null){if(!Nke(String(t.statusText)))throw TypeError("Invalid statusText")}if("status"in t&&t.status!=null)e[it].status=t.status;if("statusText"in t&&t.statusText!=null)e[it].statusText=t.statusText;if("headers"in t&&t.headers!=null)Ske(e[Ho],t.headers);if(r){if(Gke.includes(e.status))throw fe.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`});if(e[it].body=r.body,r.type!=null&&!e[it].headersList.contains("content-type",!0))e[it].headersList.append("content-type",r.type,!0)}}function Xd(e,t){let r=new nr(zm);if(r[it]=e,r[Ho]=new GJ(zm),YJ(r[Ho],e.headersList),zJ(r[Ho],t),jJ&&e.body?.stream)VJ.register(r,new WeakRef(e.body.stream));return r}fe.converters.ReadableStream=fe.interfaceConverter(ReadableStream);fe.converters.FormData=fe.interfaceConverter(zke);fe.converters.URLSearchParams=fe.interfaceConverter(URLSearchParams);fe.converters.XMLHttpRequestBodyInit=function(e,t,r){if(typeof e==="string")return fe.converters.USVString(e,t,r);if(Oke(e))return fe.converters.Blob(e,t,r,{strict:!1});if(ArrayBuffer.isView(e)||Yke.isArrayBuffer(e))return fe.converters.BufferSource(e,t,r);if(RS.isFormDataLike(e))return fe.converters.FormData(e,t,r,{strict:!1});if(e instanceof URLSearchParams)return fe.converters.URLSearchParams(e,t,r);return fe.converters.DOMString(e,t,r)};fe.converters.BodyInit=function(e,t,r){if(e instanceof ReadableStream)return fe.converters.ReadableStream(e,t,r);if(e?.[Symbol.asyncIterator])return e;return fe.converters.XMLHttpRequestBodyInit(e,t,r)};fe.converters.ResponseInit=fe.dictionaryConverter([{key:"status",converter:fe.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:fe.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:fe.converters.HeadersInit}]);WJ.exports={isNetworkError:Vke,makeNetworkError:Ym,makeResponse:Cu,makeAppropriateNetworkError:Jke,filterResponse:JJ,Response:nr,cloneResponse:NS,fromInnerResponse:Xd}});var tW=y((jlt,eW)=>{var{kConnected:qJ,kSize:ZJ}=ot();class KJ{constructor(e){this.value=e}deref(){return this.value[qJ]===0&&this.value[ZJ]===0?void 0:this.value}}class XJ{constructor(e){this.finalizer=e}register(e,t){if(e.on)e.on("disconnect",()=>{if(e[qJ]===0&&e[ZJ]===0)this.finalizer(t)})}unregister(e){}}eW.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18"))return process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:KJ,FinalizationRegistry:XJ};return{WeakRef,FinalizationRegistry}}});var Iu=y((Vlt,hW)=>{var{extractBody:Wke,mixinBody:qke,cloneBody:Zke,bodyUnusable:rW}=Xc(),{Headers:AW,fill:Kke,HeadersList:Wm,setHeadersGuard:US,getHeadersGuard:Xke,setHeadersList:dW,getHeadersList:nW}=Ws(),{FinalizationRegistry:eDe}=tW()(),Vm=Ce(),oW=v("node:util"),{isValidHTTPToken:tDe,sameOrigin:iW,environmentSettingsObject:jm}=Gr(),{forbiddenMethodsSet:rDe,corsSafeListedMethodsSet:nDe,referrerPolicy:oDe,requestRedirect:iDe,requestMode:sDe,requestCredentials:aDe,requestCache:cDe,requestDuplex:uDe}=bd(),{kEnumerableProperty:wt,normalizedMethodRecordsBase:lDe,normalizedMethodRecords:ADe}=Vm,{kHeaders:Jr,kSignal:Jm,kState:tt,kDispatcher:LS}=Ii(),{webidl:re}=Yt(),{URLSerializer:dDe}=Ir(),{kConstruct:qm}=ot(),pDe=v("node:assert"),{getMaxListeners:sW,setMaxListeners:aW,getEventListeners:fDe,defaultMaxListeners:cW}=v("node:events"),gDe=Symbol("abortController"),pW=new eDe(({signal:e,abort:t})=>{e.removeEventListener("abort",t)}),Zm=new WeakMap;function uW(e){return t;function t(){let r=e.deref();if(r!==void 0){pW.unregister(t),this.removeEventListener("abort",t),r.abort(this.reason);let n=Zm.get(r.signal);if(n!==void 0){if(n.size!==0){for(let o of n){let i=o.deref();if(i!==void 0)i.abort(this.reason)}n.clear()}Zm.delete(r.signal)}}}}var lW=!1;class Ge{constructor(e,t={}){if(re.util.markAsUncloneable(this),e===qm)return;let r="Request constructor";re.argumentLengthCheck(arguments,1,r),e=re.converters.RequestInfo(e,r,"input"),t=re.converters.RequestInit(t,r,"init");let n=null,o=null,i=jm.settingsObject.baseUrl,s=null;if(typeof e==="string"){this[LS]=t.dispatcher;let h;try{h=new URL(e,i)}catch(C){throw TypeError("Failed to parse URL from "+e,{cause:C})}if(h.username||h.password)throw TypeError("Request cannot be constructed from a URL that includes credentials: "+e);n=Km({urlList:[h]}),o="cors"}else this[LS]=t.dispatcher||e[LS],pDe(e instanceof Ge),n=e[tt],s=e[Jm];let a=jm.settingsObject.origin,c="client";if(n.window?.constructor?.name==="EnvironmentSettingsObject"&&iW(n.window,a))c=n.window;if(t.window!=null)throw TypeError(`'window' option '${c}' must be null`);if("window"in t)c="no-window";n=Km({method:n.method,headersList:n.headersList,unsafeRequest:n.unsafeRequest,client:jm.settingsObject,window:c,priority:n.priority,origin:n.origin,referrer:n.referrer,referrerPolicy:n.referrerPolicy,mode:n.mode,credentials:n.credentials,cache:n.cache,redirect:n.redirect,integrity:n.integrity,keepalive:n.keepalive,reloadNavigation:n.reloadNavigation,historyNavigation:n.historyNavigation,urlList:[...n.urlList]});let u=Object.keys(t).length!==0;if(u){if(n.mode==="navigate")n.mode="same-origin";n.reloadNavigation=!1,n.historyNavigation=!1,n.origin="client",n.referrer="client",n.referrerPolicy="",n.url=n.urlList[n.urlList.length-1],n.urlList=[n.url]}if(t.referrer!==void 0){let h=t.referrer;if(h==="")n.referrer="no-referrer";else{let C;try{C=new URL(h,i)}catch(w){throw TypeError(`Referrer "${h}" is not a valid URL.`,{cause:w})}if(C.protocol==="about:"&&C.hostname==="client"||a&&!iW(C,jm.settingsObject.baseUrl))n.referrer="client";else n.referrer=C}}if(t.referrerPolicy!==void 0)n.referrerPolicy=t.referrerPolicy;let A;if(t.mode!==void 0)A=t.mode;else A=o;if(A==="navigate")throw re.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(A!=null)n.mode=A;if(t.credentials!==void 0)n.credentials=t.credentials;if(t.cache!==void 0)n.cache=t.cache;if(n.cache==="only-if-cached"&&n.mode!=="same-origin")throw TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(t.redirect!==void 0)n.redirect=t.redirect;if(t.integrity!=null)n.integrity=String(t.integrity);if(t.keepalive!==void 0)n.keepalive=Boolean(t.keepalive);if(t.method!==void 0){let h=t.method,C=ADe[h];if(C!==void 0)n.method=C;else{if(!tDe(h))throw TypeError(`'${h}' is not a valid HTTP method.`);let w=h.toUpperCase();if(rDe.has(w))throw TypeError(`'${h}' HTTP method is unsupported.`);h=lDe[w]??h,n.method=h}if(!lW&&n.method==="patch")process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),lW=!0}if(t.signal!==void 0)s=t.signal;this[tt]=n;let p=new AbortController;if(this[Jm]=p.signal,s!=null){if(!s||typeof s.aborted!=="boolean"||typeof s.addEventListener!=="function")throw TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(s.aborted)p.abort(s.reason);else{this[gDe]=p;let h=new WeakRef(p),C=uW(h);try{if(typeof sW==="function"&&sW(s)===cW)aW(1500,s);else if(fDe(s,"abort").length>=cW)aW(1500,s)}catch{}Vm.addAbortListener(s,C),pW.register(p,{signal:s,abort:C},C)}}if(this[Jr]=new AW(qm),dW(this[Jr],n.headersList),US(this[Jr],"request"),A==="no-cors"){if(!nDe.has(n.method))throw TypeError(`'${n.method} is unsupported in no-cors mode.`);US(this[Jr],"request-no-cors")}if(u){let h=nW(this[Jr]),C=t.headers!==void 0?t.headers:new Wm(h);if(h.clear(),C instanceof Wm){for(let{name:w,value:b}of C.rawValues())h.append(w,b,!1);h.cookies=C.cookies}else Kke(this[Jr],C)}let d=e instanceof Ge?e[tt].body:null;if((t.body!=null||d!=null)&&(n.method==="GET"||n.method==="HEAD"))throw TypeError("Request with GET/HEAD method cannot have body.");let f=null;if(t.body!=null){let[h,C]=Wke(t.body,n.keepalive);if(f=h,C&&!nW(this[Jr]).contains("content-type",!0))this[Jr].append("content-type",C)}let g=f??d;if(g!=null&&g.source==null){if(f!=null&&t.duplex==null)throw TypeError("RequestInit: duplex option is required when sending a body.");if(n.mode!=="same-origin"&&n.mode!=="cors")throw TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');n.useCORSPreflightFlag=!0}let m=g;if(f==null&&d!=null){if(rW(e))throw TypeError("Cannot construct a Request with a Request object that has already been used.");let h=new TransformStream;d.stream.pipeThrough(h),m={source:d.source,length:d.length,stream:h.readable}}this[tt].body=m}get method(){return re.brandCheck(this,Ge),this[tt].method}get url(){return re.brandCheck(this,Ge),dDe(this[tt].url)}get headers(){return re.brandCheck(this,Ge),this[Jr]}get destination(){return re.brandCheck(this,Ge),this[tt].destination}get referrer(){if(re.brandCheck(this,Ge),this[tt].referrer==="no-referrer")return"";if(this[tt].referrer==="client")return"about:client";return this[tt].referrer.toString()}get referrerPolicy(){return re.brandCheck(this,Ge),this[tt].referrerPolicy}get mode(){return re.brandCheck(this,Ge),this[tt].mode}get credentials(){return this[tt].credentials}get cache(){return re.brandCheck(this,Ge),this[tt].cache}get redirect(){return re.brandCheck(this,Ge),this[tt].redirect}get integrity(){return re.brandCheck(this,Ge),this[tt].integrity}get keepalive(){return re.brandCheck(this,Ge),this[tt].keepalive}get isReloadNavigation(){return re.brandCheck(this,Ge),this[tt].reloadNavigation}get isHistoryNavigation(){return re.brandCheck(this,Ge),this[tt].historyNavigation}get signal(){return re.brandCheck(this,Ge),this[Jm]}get body(){return re.brandCheck(this,Ge),this[tt].body?this[tt].body.stream:null}get bodyUsed(){return re.brandCheck(this,Ge),!!this[tt].body&&Vm.isDisturbed(this[tt].body.stream)}get duplex(){return re.brandCheck(this,Ge),"half"}clone(){if(re.brandCheck(this,Ge),rW(this))throw TypeError("unusable");let e=fW(this[tt]),t=new AbortController;if(this.signal.aborted)t.abort(this.signal.reason);else{let r=Zm.get(this.signal);if(r===void 0)r=new Set,Zm.set(this.signal,r);let n=new WeakRef(t);r.add(n),Vm.addAbortListener(t.signal,uW(n))}return gW(e,t.signal,Xke(this[Jr]))}[oW.inspect.custom](e,t){if(t.depth===null)t.depth=2;t.colors??=!0;let r={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${oW.formatWithOptions(t,r)}`}}qke(Ge);function Km(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??!1,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new Wm(e.headersList):new Wm}}function fW(e){let t=Km({...e,body:null});if(e.body!=null)t.body=Zke(t,e.body);return t}function gW(e,t,r){let n=new Ge(qm);return n[tt]=e,n[Jm]=t,n[Jr]=new AW(qm),dW(n[Jr],e.headersList),US(n[Jr],r),n}Object.defineProperties(Ge.prototype,{method:wt,url:wt,headers:wt,redirect:wt,clone:wt,signal:wt,duplex:wt,destination:wt,body:wt,bodyUsed:wt,isHistoryNavigation:wt,isReloadNavigation:wt,keepalive:wt,integrity:wt,cache:wt,credentials:wt,attribute:wt,referrerPolicy:wt,referrer:wt,mode:wt,[Symbol.toStringTag]:{value:"Request",configurable:!0}});re.converters.Request=re.interfaceConverter(Ge);re.converters.RequestInfo=function(e,t,r){if(typeof e==="string")return re.converters.USVString(e,t,r);if(e instanceof Ge)return re.converters.Request(e,t,r);return re.converters.USVString(e,t,r)};re.converters.AbortSignal=re.interfaceConverter(AbortSignal);re.converters.RequestInit=re.dictionaryConverter([{key:"method",converter:re.converters.ByteString},{key:"headers",converter:re.converters.HeadersInit},{key:"body",converter:re.nullableConverter(re.converters.BodyInit)},{key:"referrer",converter:re.converters.USVString},{key:"referrerPolicy",converter:re.converters.DOMString,allowedValues:oDe},{key:"mode",converter:re.converters.DOMString,allowedValues:sDe},{key:"credentials",converter:re.converters.DOMString,allowedValues:aDe},{key:"cache",converter:re.converters.DOMString,allowedValues:cDe},{key:"redirect",converter:re.converters.DOMString,allowedValues:iDe},{key:"integrity",converter:re.converters.DOMString},{key:"keepalive",converter:re.converters.boolean},{key:"signal",converter:re.nullableConverter((e)=>re.converters.AbortSignal(e,"RequestInit","signal",{strict:!1}))},{key:"window",converter:re.converters.any},{key:"duplex",converter:re.converters.DOMString,allowedValues:uDe},{key:"dispatcher",converter:re.converters.any}]);hW.exports={Request:Ge,makeRequest:Km,fromInnerRequest:gW,cloneRequest:fW}});var rp=y((Jlt,DW)=>{var{makeNetworkError:Fe,makeAppropriateNetworkError:Xm,filterResponse:OS,makeResponse:eE,fromInnerResponse:hDe}=ep(),{HeadersList:mW}=Ws(),{Request:mDe,cloneRequest:EDe}=Iu(),Ri=v("node:zlib"),{bytesMatch:CDe,makePolicyContainer:IDe,clonePolicyContainer:yDe,requestBadPort:xDe,TAOCheck:bDe,appendRequestOriginHeader:BDe,responseLocationURL:_De,requestCurrentURL:lo,setRequestReferrerPolicyOnRedirect:vDe,tryUpgradeRequestToAPotentiallyTrustworthyURL:QDe,createOpaqueTimingInfo:HS,appendFetchMetadata:wDe,corsCheck:SDe,crossOriginResourcePolicyCheck:kDe,determineRequestsReferrer:DDe,coarsenedSharedCurrentTime:tp,createDeferredPromise:RDe,isBlobLike:TDe,sameOrigin:$S,isCancelled:qs,isAborted:EW,isErrorLike:NDe,fullyReadBody:LDe,readableStreamClose:UDe,isomorphicEncode:tE,urlIsLocal:ODe,urlIsHttpHttpsScheme:GS,urlHasHttpsScheme:FDe,clampAndCoarsenConnectionTimingInfo:MDe,simpleRangeHeaderValue:PDe,buildContentRange:$De,createInflate:HDe,extractMimeType:GDe}=Gr(),{kState:xW,kDispatcher:zDe}=Ii(),Zs=v("node:assert"),{safelyExtractBody:zS,extractBody:CW}=Xc(),{redirectStatusSet:bW,nullBodyStatus:BW,safeMethodsSet:YDe,requestBodyHeader:jDe,subresourceSet:VDe}=bd(),JDe=v("node:events"),{Readable:WDe,pipeline:qDe,finished:ZDe}=v("node:stream"),{addAbortListener:KDe,isErrored:XDe,isReadable:rE,bufferToLowerCasedHeaderName:IW}=Ce(),{dataURLProcessor:eRe,serializeAMimeType:tRe,minimizeSupportedMimeType:rRe}=Ir(),{getGlobalDispatcher:nRe}=Mm(),{webidl:oRe}=Yt(),{STATUS_CODES:iRe}=v("node:http"),sRe=["GET","HEAD"],aRe=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",FS;class YS extends JDe{constructor(e){super();this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){if(this.state!=="ongoing")return;this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e)}abort(e){if(this.state!=="ongoing")return;if(this.state="aborted",!e)e=new DOMException("The operation was aborted.","AbortError");this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e)}}function cRe(e){_W(e,"fetch")}function uRe(e,t=void 0){oRe.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=RDe(),n;try{n=new mDe(e,t)}catch(A){return r.reject(A),r.promise}let o=n[xW];if(n.signal.aborted)return MS(r,o,null,n.signal.reason),r.promise;if(o.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope")o.serviceWorkers="none";let s=null,a=!1,c=null;return KDe(n.signal,()=>{a=!0,Zs(c!=null),c.abort(n.signal.reason);let A=s?.deref();MS(r,o,A,n.signal.reason)}),c=QW({request:o,processResponseEndOfBody:cRe,processResponse:(A)=>{if(a)return;if(A.aborted){MS(r,o,s,c.serializedAbortReason);return}if(A.type==="error"){r.reject(TypeError("fetch failed",{cause:A.error}));return}s=new WeakRef(hDe(A,"immutable")),r.resolve(s.deref()),r=null},dispatcher:n[zDe]}),r.promise}function _W(e,t="other"){if(e.type==="error"&&e.aborted)return;if(!e.urlList?.length)return;let r=e.urlList[0],n=e.timingInfo,o=e.cacheState;if(!GS(r))return;if(n===null)return;if(!e.timingAllowPassed)n=HS({startTime:n.startTime}),o="";n.endTime=tp(),e.timingInfo=n,vW(n,r.href,t,globalThis,o)}var vW=performance.markResourceTiming;function MS(e,t,r,n){if(e)e.reject(n);if(t.body!=null&&rE(t.body?.stream))t.body.stream.cancel(n).catch((i)=>{if(i.code==="ERR_INVALID_STATE")return;throw i});if(r==null)return;let o=r[xW];if(o.body!=null&&rE(o.body?.stream))o.body.stream.cancel(n).catch((i)=>{if(i.code==="ERR_INVALID_STATE")return;throw i})}function QW({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:o,processResponseConsumeBody:i,useParallelQueue:s=!1,dispatcher:a=nRe()}){Zs(a);let c=null,u=!1;if(e.client!=null)c=e.client.globalObject,u=e.client.crossOriginIsolatedCapability;let A=tp(u),p=HS({startTime:A}),d={controller:new YS(a),request:e,timingInfo:p,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:i,processResponseEndOfBody:o,taskDestination:c,crossOriginIsolatedCapability:u};if(Zs(!e.body||e.body.stream),e.window==="client")e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window";if(e.origin==="client")e.origin=e.client.origin;if(e.policyContainer==="client")if(e.client!=null)e.policyContainer=yDe(e.client.policyContainer);else e.policyContainer=IDe();if(!e.headersList.contains("accept",!0))e.headersList.append("accept","*/*",!0);if(!e.headersList.contains("accept-language",!0))e.headersList.append("accept-language","*",!0);if(e.priority===null);if(VDe.has(e.destination));return wW(d).catch((f)=>{d.controller.terminate(f)}),d.controller}async function wW(e,t=!1){let r=e.request,n=null;if(r.localURLsOnly&&!ODe(lo(r)))n=Fe("local URLs only");if(QDe(r),xDe(r)==="blocked")n=Fe("bad port");if(r.referrerPolicy==="")r.referrerPolicy=r.policyContainer.referrerPolicy;if(r.referrer!=="no-referrer")r.referrer=DDe(r);if(n===null)n=await(async()=>{let i=lo(r);if($S(i,r.url)&&r.responseTainting==="basic"||i.protocol==="data:"||(r.mode==="navigate"||r.mode==="websocket"))return r.responseTainting="basic",await yW(e);if(r.mode==="same-origin")return Fe('request mode cannot be "same-origin"');if(r.mode==="no-cors"){if(r.redirect!=="follow")return Fe('redirect mode cannot be "follow" for "no-cors" request');return r.responseTainting="opaque",await yW(e)}if(!GS(lo(r)))return Fe("URL scheme must be a HTTP(S) scheme");return r.responseTainting="cors",await SW(e)})();if(t)return n;if(n.status!==0&&!n.internalResponse){if(r.responseTainting==="cors");if(r.responseTainting==="basic")n=OS(n,"basic");else if(r.responseTainting==="cors")n=OS(n,"cors");else if(r.responseTainting==="opaque")n=OS(n,"opaque");else Zs(!1)}let o=n.status===0?n:n.internalResponse;if(o.urlList.length===0)o.urlList.push(...r.urlList);if(!r.timingAllowFailed)n.timingAllowPassed=!0;if(n.type==="opaque"&&o.status===206&&o.rangeRequested&&!r.headers.contains("range",!0))n=o=Fe();if(n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||BW.includes(o.status)))o.body=null,e.controller.dump=!0;if(r.integrity){let i=(a)=>PS(e,Fe(a));if(r.responseTainting==="opaque"||n.body==null){i(n.error);return}let s=(a)=>{if(!CDe(a,r.integrity)){i("integrity mismatch");return}n.body=zS(a)[0],PS(e,n)};await LDe(n.body,s,i)}else PS(e,n)}function yW(e){if(qs(e)&&e.request.redirectCount===0)return Promise.resolve(Xm(e));let{request:t}=e,{protocol:r}=lo(t);switch(r){case"about:":return Promise.resolve(Fe("about scheme is not supported"));case"blob:":{if(!FS)FS=v("node:buffer").resolveObjectURL;let n=lo(t);if(n.search.length!==0)return Promise.resolve(Fe("NetworkError when attempting to fetch resource."));let o=FS(n.toString());if(t.method!=="GET"||!TDe(o))return Promise.resolve(Fe("invalid method"));let i=eE(),s=o.size,a=tE(`${s}`),c=o.type;if(!t.headersList.contains("range",!0)){let u=CW(o);i.statusText="OK",i.body=u[0],i.headersList.set("content-length",a,!0),i.headersList.set("content-type",c,!0)}else{i.rangeRequested=!0;let u=t.headersList.get("range",!0),A=PDe(u,!0);if(A==="failure")return Promise.resolve(Fe("failed to fetch the data URL"));let{rangeStartValue:p,rangeEndValue:d}=A;if(p===null)p=s-d,d=p+d-1;else{if(p>=s)return Promise.resolve(Fe("Range start is greater than the blob's size."));if(d===null||d>=s)d=s-1}let f=o.slice(p,d,c),g=CW(f);i.body=g[0];let m=tE(`${f.size}`),h=$De(p,d,s);i.status=206,i.statusText="Partial Content",i.headersList.set("content-length",m,!0),i.headersList.set("content-type",c,!0),i.headersList.set("content-range",h,!0)}return Promise.resolve(i)}case"data:":{let n=lo(t),o=eRe(n);if(o==="failure")return Promise.resolve(Fe("failed to fetch the data URL"));let i=tRe(o.mimeType);return Promise.resolve(eE({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:zS(o.body)[0]}))}case"file:":return Promise.resolve(Fe("not implemented... yet..."));case"http:":case"https:":return SW(e).catch((n)=>Fe(n));default:return Promise.resolve(Fe("unknown scheme"))}}function lRe(e,t){if(e.request.done=!0,e.processResponseDone!=null)queueMicrotask(()=>e.processResponseDone(t))}function PS(e,t){let r=e.timingInfo,n=()=>{let i=Date.now();if(e.request.destination==="document")e.controller.fullTimingInfo=r;e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:")return;r.endTime=i;let{cacheState:a,bodyInfo:c}=t;if(!t.timingAllowPassed)r=HS(r),a="";let u=0;if(e.request.mode!=="navigator"||!t.hasCrossOriginRedirects){u=t.status;let A=GDe(t.headersList);if(A!=="failure")c.contentType=rRe(A)}if(e.request.initiatorType!=null)vW(r,e.request.url.href,e.request.initiatorType,globalThis,a,c,u)};let s=()=>{if(e.request.done=!0,e.processResponseEndOfBody!=null)queueMicrotask(()=>e.processResponseEndOfBody(t));if(e.request.initiatorType!=null)e.controller.reportTimingSteps()};queueMicrotask(()=>s())};if(e.processResponse!=null)queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let o=t.type==="error"?t:t.internalResponse??t;if(o.body==null)n();else ZDe(o.body.stream,()=>{n()})}async function SW(e){let t=e.request,r=null,n=null,o=e.timingInfo;if(t.serviceWorkers==="all");if(r===null){if(t.redirect==="follow")t.serviceWorkers="none";if(n=r=await kW(e),t.responseTainting==="cors"&&SDe(t,r)==="failure")return Fe("cors failure");if(bDe(t,r)==="failure")t.timingAllowFailed=!0}if((t.responseTainting==="opaque"||r.type==="opaque")&&kDe(t.origin,t.client,t.destination,n)==="blocked")return Fe("blocked");if(bW.has(n.status)){if(t.redirect!=="manual")e.controller.connection.destroy(void 0,!1);if(t.redirect==="error")r=Fe("unexpected redirect");else if(t.redirect==="manual")r=n;else if(t.redirect==="follow")r=await ARe(e,r);else Zs(!1)}return r.timingInfo=o,r}function ARe(e,t){let r=e.request,n=t.internalResponse?t.internalResponse:t,o;try{if(o=_De(n,lo(r).hash),o==null)return t}catch(s){return Promise.resolve(Fe(s))}if(!GS(o))return Promise.resolve(Fe("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(Fe("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(o.username||o.password)&&!$S(r,o))return Promise.resolve(Fe('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(o.username||o.password))return Promise.resolve(Fe('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(Fe());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!sRe.includes(r.method)){r.method="GET",r.body=null;for(let s of jDe)r.headersList.delete(s)}if(!$S(lo(r),o))r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0);if(r.body!=null)Zs(r.body.source!=null),r.body=zS(r.body.source)[0];let i=e.timingInfo;if(i.redirectEndTime=i.postRedirectStartTime=tp(e.crossOriginIsolatedCapability),i.redirectStartTime===0)i.redirectStartTime=i.startTime;return r.urlList.push(o),vDe(r,n),wW(e,!0)}async function kW(e,t=!1,r=!1){let n=e.request,o=null,i=null,s=null,a=null,c=!1;if(n.window==="no-window"&&n.redirect==="error")o=e,i=n;else i=EDe(n),o={...e},o.request=i;let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",A=i.body?i.body.length:null,p=null;if(i.body==null&&["POST","PUT"].includes(i.method))p="0";if(A!=null)p=tE(`${A}`);if(p!=null)i.headersList.append("content-length",p,!0);if(A!=null&&i.keepalive);if(i.referrer instanceof URL)i.headersList.append("referer",tE(i.referrer.href),!0);if(BDe(i),wDe(i),!i.headersList.contains("user-agent",!0))i.headersList.append("user-agent",aRe);if(i.cache==="default"&&(i.headersList.contains("if-modified-since",!0)||i.headersList.contains("if-none-match",!0)||i.headersList.contains("if-unmodified-since",!0)||i.headersList.contains("if-match",!0)||i.headersList.contains("if-range",!0)))i.cache="no-store";if(i.cache==="no-cache"&&!i.preventNoCacheCacheControlHeaderModification&&!i.headersList.contains("cache-control",!0))i.headersList.append("cache-control","max-age=0",!0);if(i.cache==="no-store"||i.cache==="reload"){if(!i.headersList.contains("pragma",!0))i.headersList.append("pragma","no-cache",!0);if(!i.headersList.contains("cache-control",!0))i.headersList.append("cache-control","no-cache",!0)}if(i.headersList.contains("range",!0))i.headersList.append("accept-encoding","identity",!0);if(!i.headersList.contains("accept-encoding",!0))if(FDe(lo(i)))i.headersList.append("accept-encoding","br, gzip, deflate",!0);else i.headersList.append("accept-encoding","gzip, deflate",!0);if(i.headersList.delete("host",!0),a==null)i.cache="no-store";if(i.cache!=="no-store"&&i.cache!=="reload");if(s==null){if(i.cache==="only-if-cached")return Fe("only if cached");let d=await dRe(o,u,r);if(!YDe.has(i.method)&&d.status>=200&&d.status<=399);if(c&&d.status===304);if(s==null)s=d}if(s.urlList=[...i.urlList],i.headersList.contains("range",!0))s.rangeRequested=!0;if(s.requestIncludesCredentials=u,s.status===407){if(n.window==="no-window")return Fe();if(qs(e))return Xm(e);return Fe("proxy authentication required")}if(s.status===421&&!r&&(n.body==null||n.body.source!=null)){if(qs(e))return Xm(e);e.controller.connection.destroy(),s=await kW(e,t,!0)}return s}async function dRe(e,t=!1,r=!1){Zs(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(g,m=!0){if(!this.destroyed){if(this.destroyed=!0,m)this.abort?.(g??new DOMException("The operation was aborted.","AbortError"))}}};let n=e.request,o=null,i=e.timingInfo;if(!0)n.cache="no-store";let a=r?"yes":"no";if(n.mode==="websocket");let c=null;if(n.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(n.body!=null){let g=async function*(C){if(qs(e))return;yield C,e.processRequestBodyChunkLength?.(C.byteLength)},m=()=>{if(qs(e))return;if(e.processRequestEndOfBody)e.processRequestEndOfBody()},h=(C)=>{if(qs(e))return;if(C.name==="AbortError")e.controller.abort();else e.controller.terminate(C)};c=async function*(){try{for await(let C of n.body.stream)yield*g(C);m()}catch(C){h(C)}}()}try{let{body:g,status:m,statusText:h,headersList:C,socket:w}=await f({body:c});if(w)o=eE({status:m,statusText:h,headersList:C,socket:w});else{let b=g[Symbol.asyncIterator]();e.controller.next=()=>b.next(),o=eE({status:m,statusText:h,headersList:C})}}catch(g){if(g.name==="AbortError")return e.controller.connection.destroy(),Xm(e,g);return Fe(g)}let u=async()=>{await e.controller.resume()},A=(g)=>{if(!qs(e))e.controller.abort(g)},p=new ReadableStream({async start(g){e.controller.controller=g},async pull(g){await u(g)},async cancel(g){await A(g)},type:"bytes"});o.body={stream:p,source:null,length:null},e.controller.onAborted=d,e.controller.on("terminated",d),e.controller.resume=async()=>{while(!0){let g,m;try{let{done:C,value:w}=await e.controller.next();if(EW(e))break;g=C?void 0:w}catch(C){if(e.controller.ended&&!i.encodedBodySize)g=void 0;else g=C,m=!0}if(g===void 0){UDe(e.controller.controller),lRe(e,o);return}if(i.decodedBodySize+=g?.byteLength??0,m){e.controller.terminate(g);return}let h=new Uint8Array(g);if(h.byteLength)e.controller.controller.enqueue(h);if(XDe(p)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function d(g){if(EW(e)){if(o.aborted=!0,rE(p))e.controller.controller.error(e.controller.serializedAbortReason)}else if(rE(p))e.controller.controller.error(TypeError("terminated",{cause:NDe(g)?g:void 0}));e.controller.connection.destroy()}return o;function f({body:g}){let m=lo(n),h=e.controller.dispatcher;return new Promise((C,w)=>h.dispatch({path:m.pathname+m.search,origin:m.origin,method:n.method,body:h.isMockActive?n.body&&(n.body.source||n.body.stream):g,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(b){let{connection:_}=e.controller;if(i.finalConnectionTimingInfo=MDe(void 0,i.postRedirectStartTime,e.crossOriginIsolatedCapability),_.destroyed)b(new DOMException("The operation was aborted.","AbortError"));else e.controller.on("terminated",b),this.abort=_.abort=b;i.finalNetworkRequestStartTime=tp(e.crossOriginIsolatedCapability)},onResponseStarted(){i.finalNetworkResponseStartTime=tp(e.crossOriginIsolatedCapability)},onHeaders(b,_,L,T){if(b<200)return;let S="",de=new mW;for(let ze=0;ze<_.length;ze+=2)de.append(IW(_[ze]),_[ze+1].toString("latin1"),!0);S=de.get("location",!0),this.body=new WDe({read:L});let ge=[],Mt=S&&n.redirect==="follow"&&bW.has(b);if(n.method!=="HEAD"&&n.method!=="CONNECT"&&!BW.includes(b)&&!Mt){let ze=de.get("content-encoding",!0),ir=ze?ze.toLowerCase().split(","):[],vr=5;if(ir.length>5)return w(Error(`too many content-encodings in response: ${ir.length}, maximum allowed is 5`)),!0;for(let jo=ir.length-1;jo>=0;--jo){let Ze=ir[jo].trim();if(Ze==="x-gzip"||Ze==="gzip")ge.push(Ri.createGunzip({flush:Ri.constants.Z_SYNC_FLUSH,finishFlush:Ri.constants.Z_SYNC_FLUSH}));else if(Ze==="deflate")ge.push(HDe({flush:Ri.constants.Z_SYNC_FLUSH,finishFlush:Ri.constants.Z_SYNC_FLUSH}));else if(Ze==="br")ge.push(Ri.createBrotliDecompress({flush:Ri.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ri.constants.BROTLI_OPERATION_FLUSH}));else{ge.length=0;break}}}let rt=this.onError.bind(this);return C({status:b,statusText:T,headersList:de,body:ge.length?qDe(this.body,...ge,(ze)=>{if(ze)this.onError(ze)}).on("error",rt):this.body.on("error",rt)}),!0},onData(b){if(e.controller.dump)return;let _=b;return i.encodedBodySize+=_.byteLength,this.body.push(_)},onComplete(){if(this.abort)e.controller.off("terminated",this.abort);if(e.controller.onAborted)e.controller.off("terminated",e.controller.onAborted);e.controller.ended=!0,this.body.push(null)},onError(b){if(this.abort)e.controller.off("terminated",this.abort);this.body?.destroy(b),e.controller.terminate(b),w(b)},onUpgrade(b,_,L){if(b!==101)return;let T=new mW;for(let S=0;S<_.length;S+=2)T.append(IW(_[S]),_[S+1].toString("latin1"),!0);return C({status:b,statusText:iRe[b],headersList:T,socket:L}),!0}}))}}DW.exports={fetch:uRe,Fetch:YS,fetching:QW,finalizeAndReportTiming:_W}});var jS=y((Wlt,RW)=>{RW.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var NW=y((qlt,TW)=>{var{webidl:Wr}=Yt(),nE=Symbol("ProgressEvent state");class np extends Event{constructor(e,t={}){e=Wr.converters.DOMString(e,"ProgressEvent constructor","type"),t=Wr.converters.ProgressEventInit(t??{});super(e,t);this[nE]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return Wr.brandCheck(this,np),this[nE].lengthComputable}get loaded(){return Wr.brandCheck(this,np),this[nE].loaded}get total(){return Wr.brandCheck(this,np),this[nE].total}}Wr.converters.ProgressEventInit=Wr.dictionaryConverter([{key:"lengthComputable",converter:Wr.converters.boolean,defaultValue:()=>!1},{key:"loaded",converter:Wr.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:Wr.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:Wr.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:Wr.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:Wr.converters.boolean,defaultValue:()=>!1}]);TW.exports={ProgressEvent:np}});var UW=y((Zlt,LW)=>{function pRe(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}LW.exports={getEncoding:pRe}});var zW=y((Klt,GW)=>{var{kState:yu,kError:VS,kResult:OW,kAborted:op,kLastProgressEventFired:JS}=jS(),{ProgressEvent:fRe}=NW(),{getEncoding:FW}=UW(),{serializeAMimeType:gRe,parseMIMEType:MW}=Ir(),{types:hRe}=v("node:util"),{StringDecoder:PW}=v("string_decoder"),{btoa:$W}=v("node:buffer"),mRe={enumerable:!0,writable:!1,configurable:!1};function ERe(e,t,r,n){if(e[yu]==="loading")throw new DOMException("Invalid state","InvalidStateError");e[yu]="loading",e[OW]=null,e[VS]=null;let i=t.stream().getReader(),s=[],a=i.read(),c=!0;(async()=>{while(!e[op])try{let{done:u,value:A}=await a;if(c&&!e[op])queueMicrotask(()=>{Ti("loadstart",e)});if(c=!1,!u&&hRe.isUint8Array(A)){if(s.push(A),(e[JS]===void 0||Date.now()-e[JS]>=50)&&!e[op])e[JS]=Date.now(),queueMicrotask(()=>{Ti("progress",e)});a=i.read()}else if(u){queueMicrotask(()=>{e[yu]="done";try{let p=CRe(s,r,t.type,n);if(e[op])return;e[OW]=p,Ti("load",e)}catch(p){e[VS]=p,Ti("error",e)}if(e[yu]!=="loading")Ti("loadend",e)});break}}catch(u){if(e[op])return;queueMicrotask(()=>{if(e[yu]="done",e[VS]=u,Ti("error",e),e[yu]!=="loading")Ti("loadend",e)});break}})()}function Ti(e,t){let r=new fRe(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(r)}function CRe(e,t,r,n){switch(t){case"DataURL":{let o="data:",i=MW(r||"application/octet-stream");if(i!=="failure")o+=gRe(i);o+=";base64,";let s=new PW("latin1");for(let a of e)o+=$W(s.write(a));return o+=$W(s.end()),o}case"Text":{let o="failure";if(n)o=FW(n);if(o==="failure"&&r){let i=MW(r);if(i!=="failure")o=FW(i.parameters.get("charset"))}if(o==="failure")o="UTF-8";return IRe(e,o)}case"ArrayBuffer":return HW(e).buffer;case"BinaryString":{let o="",i=new PW("latin1");for(let s of e)o+=i.write(s);return o+=i.end(),o}}}function IRe(e,t){let r=HW(e),n=yRe(r),o=0;if(n!==null)t=n,o=n==="UTF-8"?3:2;let i=r.slice(o);return new TextDecoder(t).decode(i)}function yRe(e){let[t,r,n]=e;if(t===239&&r===187&&n===191)return"UTF-8";else if(t===254&&r===255)return"UTF-16BE";else if(t===255&&r===254)return"UTF-16LE";return null}function HW(e){let t=e.reduce((n,o)=>n+o.byteLength,0),r=0;return e.reduce((n,o)=>(n.set(o,r),r+=o.byteLength,n),new Uint8Array(t))}GW.exports={staticPropertyDescriptors:mRe,readOperation:ERe,fireAProgressEvent:Ti}});var JW=y((Xlt,VW)=>{var{staticPropertyDescriptors:xu,readOperation:oE,fireAProgressEvent:YW}=zW(),{kState:Ks,kError:jW,kResult:iE,kEvents:Re,kAborted:xRe}=jS(),{webidl:$e}=Yt(),{kEnumerableProperty:br}=Ce();class Me extends EventTarget{constructor(){super();this[Ks]="empty",this[iE]=null,this[jW]=null,this[Re]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){$e.brandCheck(this,Me),$e.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=$e.converters.Blob(e,{strict:!1}),oE(this,e,"ArrayBuffer")}readAsBinaryString(e){$e.brandCheck(this,Me),$e.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=$e.converters.Blob(e,{strict:!1}),oE(this,e,"BinaryString")}readAsText(e,t=void 0){if($e.brandCheck(this,Me),$e.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=$e.converters.Blob(e,{strict:!1}),t!==void 0)t=$e.converters.DOMString(t,"FileReader.readAsText","encoding");oE(this,e,"Text",t)}readAsDataURL(e){$e.brandCheck(this,Me),$e.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=$e.converters.Blob(e,{strict:!1}),oE(this,e,"DataURL")}abort(){if(this[Ks]==="empty"||this[Ks]==="done"){this[iE]=null;return}if(this[Ks]==="loading")this[Ks]="done",this[iE]=null;if(this[xRe]=!0,YW("abort",this),this[Ks]!=="loading")YW("loadend",this)}get readyState(){switch($e.brandCheck(this,Me),this[Ks]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return $e.brandCheck(this,Me),this[iE]}get error(){return $e.brandCheck(this,Me),this[jW]}get onloadend(){return $e.brandCheck(this,Me),this[Re].loadend}set onloadend(e){if($e.brandCheck(this,Me),this[Re].loadend)this.removeEventListener("loadend",this[Re].loadend);if(typeof e==="function")this[Re].loadend=e,this.addEventListener("loadend",e);else this[Re].loadend=null}get onerror(){return $e.brandCheck(this,Me),this[Re].error}set onerror(e){if($e.brandCheck(this,Me),this[Re].error)this.removeEventListener("error",this[Re].error);if(typeof e==="function")this[Re].error=e,this.addEventListener("error",e);else this[Re].error=null}get onloadstart(){return $e.brandCheck(this,Me),this[Re].loadstart}set onloadstart(e){if($e.brandCheck(this,Me),this[Re].loadstart)this.removeEventListener("loadstart",this[Re].loadstart);if(typeof e==="function")this[Re].loadstart=e,this.addEventListener("loadstart",e);else this[Re].loadstart=null}get onprogress(){return $e.brandCheck(this,Me),this[Re].progress}set onprogress(e){if($e.brandCheck(this,Me),this[Re].progress)this.removeEventListener("progress",this[Re].progress);if(typeof e==="function")this[Re].progress=e,this.addEventListener("progress",e);else this[Re].progress=null}get onload(){return $e.brandCheck(this,Me),this[Re].load}set onload(e){if($e.brandCheck(this,Me),this[Re].load)this.removeEventListener("load",this[Re].load);if(typeof e==="function")this[Re].load=e,this.addEventListener("load",e);else this[Re].load=null}get onabort(){return $e.brandCheck(this,Me),this[Re].abort}set onabort(e){if($e.brandCheck(this,Me),this[Re].abort)this.removeEventListener("abort",this[Re].abort);if(typeof e==="function")this[Re].abort=e,this.addEventListener("abort",e);else this[Re].abort=null}}Me.EMPTY=Me.prototype.EMPTY=0;Me.LOADING=Me.prototype.LOADING=1;Me.DONE=Me.prototype.DONE=2;Object.defineProperties(Me.prototype,{EMPTY:xu,LOADING:xu,DONE:xu,readAsArrayBuffer:br,readAsBinaryString:br,readAsText:br,readAsDataURL:br,abort:br,readyState:br,result:br,error:br,onloadstart:br,onprogress:br,onload:br,onabort:br,onerror:br,onloadend:br,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Me,{EMPTY:xu,LOADING:xu,DONE:xu});VW.exports={FileReader:Me}});var sE=y((eAt,WW)=>{WW.exports={kConstruct:ot().kConstruct}});var KW=y((tAt,ZW)=>{var bRe=v("node:assert"),{URLSerializer:qW}=Ir(),{isValidHeaderName:BRe}=Gr();function _Re(e,t,r=!1){let n=qW(e,r),o=qW(t,r);return n===o}function vRe(e){bRe(e!==null);let t=[];for(let r of e.split(","))if(r=r.trim(),BRe(r))t.push(r);return t}ZW.exports={urlEquals:_Re,getFieldValues:vRe}});var tq=y((rAt,eq)=>{var{kConstruct:QRe}=sE(),{urlEquals:wRe,getFieldValues:WS}=KW(),{kEnumerableProperty:Xs,isDisturbed:SRe}=Ce(),{webidl:Z}=Yt(),{Response:kRe,cloneResponse:DRe,fromInnerResponse:RRe}=ep(),{Request:Go,fromInnerRequest:TRe}=Iu(),{kState:Mn}=Ii(),{fetching:NRe}=rp(),{urlIsHttpHttpsScheme:aE,createDeferredPromise:bu,readAllBytes:LRe}=Gr(),qS=v("node:assert");class Ao{#e;constructor(){if(arguments[0]!==QRe)Z.illegalConstructor();Z.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,t={}){Z.brandCheck(this,Ao);let r="Cache.match";Z.argumentLengthCheck(arguments,1,r),e=Z.converters.RequestInfo(e,r,"request"),t=Z.converters.CacheQueryOptions(t,r,"options");let n=this.#o(e,t,1);if(n.length===0)return;return n[0]}async matchAll(e=void 0,t={}){Z.brandCheck(this,Ao);let r="Cache.matchAll";if(e!==void 0)e=Z.converters.RequestInfo(e,r,"request");return t=Z.converters.CacheQueryOptions(t,r,"options"),this.#o(e,t)}async add(e){Z.brandCheck(this,Ao);let t="Cache.add";Z.argumentLengthCheck(arguments,1,t),e=Z.converters.RequestInfo(e,t,"request");let r=[e];return await this.addAll(r)}async addAll(e){Z.brandCheck(this,Ao);let t="Cache.addAll";Z.argumentLengthCheck(arguments,1,t);let r=[],n=[];for(let p of e){if(p===void 0)throw Z.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]});if(p=Z.converters.RequestInfo(p),typeof p==="string")continue;let d=p[Mn];if(!aE(d.url)||d.method!=="GET")throw Z.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let p of e){let d=new Go(p)[Mn];if(!aE(d.url))throw Z.errors.exception({header:t,message:"Expected http/s scheme."});d.initiator="fetch",d.destination="subresource",n.push(d);let f=bu();o.push(NRe({request:d,processResponse(g){if(g.type==="error"||g.status===206||g.status<200||g.status>299)f.reject(Z.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(g.headersList.contains("vary")){let m=WS(g.headersList.get("vary"));for(let h of m)if(h==="*"){f.reject(Z.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let C of o)C.abort();return}}},processResponseEndOfBody(g){if(g.aborted){f.reject(new DOMException("aborted","AbortError"));return}f.resolve(g)}})),r.push(f.promise)}let s=await Promise.all(r),a=[],c=0;for(let p of s){let d={type:"put",request:n[c],response:p};a.push(d),c++}let u=bu(),A=null;try{this.#t(a)}catch(p){A=p}return queueMicrotask(()=>{if(A===null)u.resolve(void 0);else u.reject(A)}),u.promise}async put(e,t){Z.brandCheck(this,Ao);let r="Cache.put";Z.argumentLengthCheck(arguments,2,r),e=Z.converters.RequestInfo(e,r,"request"),t=Z.converters.Response(t,r,"response");let n=null;if(e instanceof Go)n=e[Mn];else n=new Go(e)[Mn];if(!aE(n.url)||n.method!=="GET")throw Z.errors.exception({header:r,message:"Expected an http/s scheme when method is not GET"});let o=t[Mn];if(o.status===206)throw Z.errors.exception({header:r,message:"Got 206 status"});if(o.headersList.contains("vary")){let d=WS(o.headersList.get("vary"));for(let f of d)if(f==="*")throw Z.errors.exception({header:r,message:"Got * vary field value"})}if(o.body&&(SRe(o.body.stream)||o.body.stream.locked))throw Z.errors.exception({header:r,message:"Response body is locked or disturbed"});let i=DRe(o),s=bu();if(o.body!=null){let f=o.body.stream.getReader();LRe(f).then(s.resolve,s.reject)}else s.resolve(void 0);let a=[],c={type:"put",request:n,response:i};a.push(c);let u=await s.promise;if(i.body!=null)i.body.source=u;let A=bu(),p=null;try{this.#t(a)}catch(d){p=d}return queueMicrotask(()=>{if(p===null)A.resolve();else A.reject(p)}),A.promise}async delete(e,t={}){Z.brandCheck(this,Ao);let r="Cache.delete";Z.argumentLengthCheck(arguments,1,r),e=Z.converters.RequestInfo(e,r,"request"),t=Z.converters.CacheQueryOptions(t,r,"options");let n=null;if(e instanceof Go){if(n=e[Mn],n.method!=="GET"&&!t.ignoreMethod)return!1}else qS(typeof e==="string"),n=new Go(e)[Mn];let o=[],i={type:"delete",request:n,options:t};o.push(i);let s=bu(),a=null,c;try{c=this.#t(o)}catch(u){a=u}return queueMicrotask(()=>{if(a===null)s.resolve(!!c?.length);else s.reject(a)}),s.promise}async keys(e=void 0,t={}){Z.brandCheck(this,Ao);let r="Cache.keys";if(e!==void 0)e=Z.converters.RequestInfo(e,r,"request");t=Z.converters.CacheQueryOptions(t,r,"options");let n=null;if(e!==void 0){if(e instanceof Go){if(n=e[Mn],n.method!=="GET"&&!t.ignoreMethod)return[]}else if(typeof e==="string")n=new Go(e)[Mn]}let o=bu(),i=[];if(e===void 0)for(let s of this.#e)i.push(s[0]);else{let s=this.#r(n,t);for(let a of s)i.push(a[0])}return queueMicrotask(()=>{let s=[];for(let a of i){let c=TRe(a,new AbortController().signal,"immutable");s.push(c)}o.resolve(Object.freeze(s))}),o.promise}#t(e){let t=this.#e,r=[...t],n=[],o=[];try{for(let i of e){if(i.type!=="delete"&&i.type!=="put")throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(i.type==="delete"&&i.response!=null)throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#r(i.request,i.options,n).length)throw new DOMException("???","InvalidStateError");let s;if(i.type==="delete"){if(s=this.#r(i.request,i.options),s.length===0)return[];for(let a of s){let c=t.indexOf(a);qS(c!==-1),t.splice(c,1)}}else if(i.type==="put"){if(i.response==null)throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let a=i.request;if(!aE(a.url))throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(a.method!=="GET")throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(i.options!=null)throw Z.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});s=this.#r(i.request);for(let c of s){let u=t.indexOf(c);qS(u!==-1),t.splice(u,1)}t.push([i.request,i.response]),n.push([i.request,i.response])}o.push([i.request,i.response])}return o}catch(i){throw this.#e.length=0,this.#e=r,i}}#r(e,t,r){let n=[],o=r??this.#e;for(let i of o){let[s,a]=i;if(this.#n(e,s,a,t))n.push(i)}return n}#n(e,t,r=null,n){let o=new URL(e.url),i=new URL(t.url);if(n?.ignoreSearch)i.search="",o.search="";if(!wRe(o,i,!0))return!1;if(r==null||n?.ignoreVary||!r.headersList.contains("vary"))return!0;let s=WS(r.headersList.get("vary"));for(let a of s){if(a==="*")return!1;let c=t.headersList.get(a),u=e.headersList.get(a);if(c!==u)return!1}return!0}#o(e,t,r=1/0){let n=null;if(e!==void 0){if(e instanceof Go){if(n=e[Mn],n.method!=="GET"&&!t.ignoreMethod)return[]}else if(typeof e==="string")n=new Go(e)[Mn]}let o=[];if(e===void 0)for(let s of this.#e)o.push(s[1]);else{let s=this.#r(n,t);for(let a of s)o.push(a[1])}let i=[];for(let s of o){let a=RRe(s,"immutable");if(i.push(a.clone()),i.length>=r)break}return Object.freeze(i)}}Object.defineProperties(Ao.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:Xs,matchAll:Xs,add:Xs,addAll:Xs,put:Xs,delete:Xs,keys:Xs});var XW=[{key:"ignoreSearch",converter:Z.converters.boolean,defaultValue:()=>!1},{key:"ignoreMethod",converter:Z.converters.boolean,defaultValue:()=>!1},{key:"ignoreVary",converter:Z.converters.boolean,defaultValue:()=>!1}];Z.converters.CacheQueryOptions=Z.dictionaryConverter(XW);Z.converters.MultiCacheQueryOptions=Z.dictionaryConverter([...XW,{key:"cacheName",converter:Z.converters.DOMString}]);Z.converters.Response=Z.interfaceConverter(kRe);Z.converters["sequence<RequestInfo>"]=Z.sequenceConverter(Z.converters.RequestInfo);eq.exports={Cache:Ao}});var nq=y((nAt,rq)=>{var{kConstruct:ip}=sE(),{Cache:cE}=tq(),{webidl:or}=Yt(),{kEnumerableProperty:sp}=Ce();class Ni{#e=new Map;constructor(){if(arguments[0]!==ip)or.illegalConstructor();or.util.markAsUncloneable(this)}async match(e,t={}){if(or.brandCheck(this,Ni),or.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=or.converters.RequestInfo(e),t=or.converters.MultiCacheQueryOptions(t),t.cacheName!=null){if(this.#e.has(t.cacheName)){let r=this.#e.get(t.cacheName);return await new cE(ip,r).match(e,t)}}else for(let r of this.#e.values()){let o=await new cE(ip,r).match(e,t);if(o!==void 0)return o}}async has(e){or.brandCheck(this,Ni);let t="CacheStorage.has";return or.argumentLengthCheck(arguments,1,t),e=or.converters.DOMString(e,t,"cacheName"),this.#e.has(e)}async open(e){or.brandCheck(this,Ni);let t="CacheStorage.open";if(or.argumentLengthCheck(arguments,1,t),e=or.converters.DOMString(e,t,"cacheName"),this.#e.has(e)){let n=this.#e.get(e);return new cE(ip,n)}let r=[];return this.#e.set(e,r),new cE(ip,r)}async delete(e){or.brandCheck(this,Ni);let t="CacheStorage.delete";return or.argumentLengthCheck(arguments,1,t),e=or.converters.DOMString(e,t,"cacheName"),this.#e.delete(e)}async keys(){return or.brandCheck(this,Ni),[...this.#e.keys()]}}Object.defineProperties(Ni.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:sp,has:sp,open:sp,delete:sp,keys:sp});rq.exports={CacheStorage:Ni}});var iq=y((oAt,oq)=>{oq.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var ZS=y((iAt,lq)=>{function URe(e){for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r>=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}function sq(e){for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r<33||r>126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw Error("Invalid cookie name")}}function aq(e){let t=e.length,r=0;if(e[0]==='"'){if(t===1||e[t-1]!=='"')throw Error("Invalid cookie value");--t,++r}while(r<t){let n=e.charCodeAt(r++);if(n<33||n>126||n===34||n===44||n===59||n===92)throw Error("Invalid cookie value")}}function cq(e){for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r<32||r===127||r===59)throw Error("Invalid cookie path")}}function ORe(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw Error("Invalid cookie domain")}var FRe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MRe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],uE=Array(61).fill(0).map((e,t)=>t.toString().padStart(2,"0"));function uq(e){if(typeof e==="number")e=new Date(e);return`${FRe[e.getUTCDay()]}, ${uE[e.getUTCDate()]} ${MRe[e.getUTCMonth()]} ${e.getUTCFullYear()} ${uE[e.getUTCHours()]}:${uE[e.getUTCMinutes()]}:${uE[e.getUTCSeconds()]} GMT`}function PRe(e){if(e<0)throw Error("Invalid cookie max-age")}function $Re(e){if(e.name.length===0)return null;sq(e.name),aq(e.value);let t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-"))e.secure=!0;if(e.name.startsWith("__Host-"))e.secure=!0,e.domain=null,e.path="/";if(e.secure)t.push("Secure");if(e.httpOnly)t.push("HttpOnly");if(typeof e.maxAge==="number")PRe(e.maxAge),t.push(`Max-Age=${e.maxAge}`);if(e.domain)ORe(e.domain),t.push(`Domain=${e.domain}`);if(e.path)cq(e.path),t.push(`Path=${e.path}`);if(e.expires&&e.expires.toString()!=="Invalid Date")t.push(`Expires=${uq(e.expires)}`);if(e.sameSite)t.push(`SameSite=${e.sameSite}`);for(let r of e.unparsed){if(!r.includes("="))throw Error("Invalid unparsed");let[n,...o]=r.split("=");t.push(`${n.trim()}=${o.join("=")}`)}return t.join("; ")}lq.exports={isCTLExcludingHtab:URe,validateCookieName:sq,validateCookiePath:cq,validateCookieValue:aq,toIMFDate:uq,stringify:$Re}});var dq=y((sAt,Aq)=>{var{maxNameValuePairSize:HRe,maxAttributeValueSize:GRe}=iq(),{isCTLExcludingHtab:zRe}=ZS(),{collectASequenceOfCodePointsFast:lE}=Ir(),YRe=v("node:assert");function jRe(e){if(zRe(e))return null;let t="",r="",n="",o="";if(e.includes(";")){let i={position:0};t=lE(";",e,i),r=e.slice(i.position)}else t=e;if(!t.includes("="))o=t;else{let i={position:0};n=lE("=",t,i),o=t.slice(i.position+1)}if(n=n.trim(),o=o.trim(),n.length+o.length>HRe)return null;return{name:n,value:o,...Bu(r)}}function Bu(e,t={}){if(e.length===0)return t;YRe(e[0]===";"),e=e.slice(1);let r="";if(e.includes(";"))r=lE(";",e,{position:0}),e=e.slice(r.length);else r=e,e="";let n="",o="";if(r.includes("=")){let s={position:0};n=lE("=",r,s),o=r.slice(s.position+1)}else n=r;if(n=n.trim(),o=o.trim(),o.length>GRe)return Bu(e,t);let i=n.toLowerCase();if(i==="expires"){let s=new Date(o);t.expires=s}else if(i==="max-age"){let s=o.charCodeAt(0);if((s<48||s>57)&&o[0]!=="-")return Bu(e,t);if(!/^\d+$/.test(o))return Bu(e,t);let a=Number(o);t.maxAge=a}else if(i==="domain"){let s=o;if(s[0]===".")s=s.slice(1);s=s.toLowerCase(),t.domain=s}else if(i==="path"){let s="";if(o.length===0||o[0]!=="/")s="/";else s=o;t.path=s}else if(i==="secure")t.secure=!0;else if(i==="httponly")t.httpOnly=!0;else if(i==="samesite"){let s="Default",a=o.toLowerCase();if(a.includes("none"))s="None";if(a.includes("strict"))s="Strict";if(a.includes("lax"))s="Lax";t.sameSite=s}else t.unparsed??=[],t.unparsed.push(`${n}=${o}`);return Bu(e,t)}Aq.exports={parseSetCookie:jRe,parseUnparsedAttributes:Bu}});var gq=y((aAt,fq)=>{var{parseSetCookie:VRe}=dq(),{stringify:JRe}=ZS(),{webidl:be}=Yt(),{Headers:AE}=Ws();function WRe(e){be.argumentLengthCheck(arguments,1,"getCookies"),be.brandCheck(e,AE,{strict:!1});let t=e.get("cookie"),r={};if(!t)return r;for(let n of t.split(";")){let[o,...i]=n.split("=");r[o.trim()]=i.join("=")}return r}function qRe(e,t,r){be.brandCheck(e,AE,{strict:!1});let n="deleteCookie";be.argumentLengthCheck(arguments,2,n),t=be.converters.DOMString(t,n,"name"),r=be.converters.DeleteCookieAttributes(r),pq(e,{name:t,value:"",expires:new Date(0),...r})}function ZRe(e){be.argumentLengthCheck(arguments,1,"getSetCookies"),be.brandCheck(e,AE,{strict:!1});let t=e.getSetCookie();if(!t)return[];return t.map((r)=>VRe(r))}function pq(e,t){be.argumentLengthCheck(arguments,2,"setCookie"),be.brandCheck(e,AE,{strict:!1}),t=be.converters.Cookie(t);let r=JRe(t);if(r)e.append("Set-Cookie",r)}be.converters.DeleteCookieAttributes=be.dictionaryConverter([{converter:be.nullableConverter(be.converters.DOMString),key:"path",defaultValue:()=>null},{converter:be.nullableConverter(be.converters.DOMString),key:"domain",defaultValue:()=>null}]);be.converters.Cookie=be.dictionaryConverter([{converter:be.converters.DOMString,key:"name"},{converter:be.converters.DOMString,key:"value"},{converter:be.nullableConverter((e)=>{if(typeof e==="number")return be.converters["unsigned long long"](e);return new Date(e)}),key:"expires",defaultValue:()=>null},{converter:be.nullableConverter(be.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:be.nullableConverter(be.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:be.nullableConverter(be.converters.DOMString),key:"path",defaultValue:()=>null},{converter:be.nullableConverter(be.converters.boolean),key:"secure",defaultValue:()=>null},{converter:be.nullableConverter(be.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:be.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:be.sequenceConverter(be.converters.DOMString),key:"unparsed",defaultValue:()=>[]}]);fq.exports={getCookies:WRe,deleteCookie:qRe,getSetCookies:ZRe,setCookie:pq}});var vu=y((cAt,mq)=>{var{webidl:q}=Yt(),{kEnumerableProperty:Br}=Ce(),{kConstruct:hq}=ot(),{MessagePort:KRe}=v("node:worker_threads");class qr extends Event{#e;constructor(e,t={}){if(e===hq){super(arguments[1],arguments[2]);q.util.markAsUncloneable(this);return}let r="MessageEvent constructor";q.argumentLengthCheck(arguments,1,r),e=q.converters.DOMString(e,r,"type"),t=q.converters.MessageEventInit(t,r,"eventInitDict");super(e,t);this.#e=t,q.util.markAsUncloneable(this)}get data(){return q.brandCheck(this,qr),this.#e.data}get origin(){return q.brandCheck(this,qr),this.#e.origin}get lastEventId(){return q.brandCheck(this,qr),this.#e.lastEventId}get source(){return q.brandCheck(this,qr),this.#e.source}get ports(){if(q.brandCheck(this,qr),!Object.isFrozen(this.#e.ports))Object.freeze(this.#e.ports);return this.#e.ports}initMessageEvent(e,t=!1,r=!1,n=null,o="",i="",s=null,a=[]){return q.brandCheck(this,qr),q.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new qr(e,{bubbles:t,cancelable:r,data:n,origin:o,lastEventId:i,source:s,ports:a})}static createFastMessageEvent(e,t){let r=new qr(hq,e,t);return r.#e=t,r.#e.data??=null,r.#e.origin??="",r.#e.lastEventId??="",r.#e.source??=null,r.#e.ports??=[],r}}var{createFastMessageEvent:XRe}=qr;delete qr.createFastMessageEvent;class _u extends Event{#e;constructor(e,t={}){q.argumentLengthCheck(arguments,1,"CloseEvent constructor"),e=q.converters.DOMString(e,"CloseEvent constructor","type"),t=q.converters.CloseEventInit(t);super(e,t);this.#e=t,q.util.markAsUncloneable(this)}get wasClean(){return q.brandCheck(this,_u),this.#e.wasClean}get code(){return q.brandCheck(this,_u),this.#e.code}get reason(){return q.brandCheck(this,_u),this.#e.reason}}class Li extends Event{#e;constructor(e,t){q.argumentLengthCheck(arguments,1,"ErrorEvent constructor");super(e,t);q.util.markAsUncloneable(this),e=q.converters.DOMString(e,"ErrorEvent constructor","type"),t=q.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return q.brandCheck(this,Li),this.#e.message}get filename(){return q.brandCheck(this,Li),this.#e.filename}get lineno(){return q.brandCheck(this,Li),this.#e.lineno}get colno(){return q.brandCheck(this,Li),this.#e.colno}get error(){return q.brandCheck(this,Li),this.#e.error}}Object.defineProperties(qr.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:Br,origin:Br,lastEventId:Br,source:Br,ports:Br,initMessageEvent:Br});Object.defineProperties(_u.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:Br,code:Br,wasClean:Br});Object.defineProperties(Li.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:Br,filename:Br,lineno:Br,colno:Br,error:Br});q.converters.MessagePort=q.interfaceConverter(KRe);q.converters["sequence<MessagePort>"]=q.sequenceConverter(q.converters.MessagePort);var KS=[{key:"bubbles",converter:q.converters.boolean,defaultValue:()=>!1},{key:"cancelable",converter:q.converters.boolean,defaultValue:()=>!1},{key:"composed",converter:q.converters.boolean,defaultValue:()=>!1}];q.converters.MessageEventInit=q.dictionaryConverter([...KS,{key:"data",converter:q.converters.any,defaultValue:()=>null},{key:"origin",converter:q.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:q.converters.DOMString,defaultValue:()=>""},{key:"source",converter:q.nullableConverter(q.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:q.converters["sequence<MessagePort>"],defaultValue:()=>[]}]);q.converters.CloseEventInit=q.dictionaryConverter([...KS,{key:"wasClean",converter:q.converters.boolean,defaultValue:()=>!1},{key:"code",converter:q.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:q.converters.USVString,defaultValue:()=>""}]);q.converters.ErrorEventInit=q.dictionaryConverter([...KS,{key:"message",converter:q.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:q.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:q.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:q.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:q.converters.any}]);mq.exports={MessageEvent:qr,CloseEvent:_u,ErrorEvent:Li,createFastMessageEvent:XRe}});var ea=y((uAt,Eq)=>{var e0e={enumerable:!0,writable:!1,configurable:!1},t0e={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},r0e={NOT_SENT:0,PROCESSING:1,SENT:2},n0e={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},o0e={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},i0e=Buffer.allocUnsafe(0),s0e={string:1,typedArray:2,arrayBuffer:3,blob:4};Eq.exports={uid:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",sentCloseFrameState:r0e,staticPropertyDescriptors:e0e,states:t0e,opcodes:n0e,maxUnsigned16Bit:65535,parserStates:o0e,emptyBuffer:i0e,sendHints:s0e}});var ap=y((lAt,Cq)=>{Cq.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var lp=y((AAt,wq)=>{var{kReadyState:cp,kController:a0e,kResponse:c0e,kBinaryType:u0e,kWebSocketURL:l0e}=ap(),{states:up,opcodes:Ui}=ea(),{ErrorEvent:A0e,createFastMessageEvent:d0e}=vu(),{isUtf8:p0e}=v("node:buffer"),{collectASequenceOfCodePointsFast:f0e,removeHTTPWhitespace:Iq}=Ir();function g0e(e){return e[cp]===up.CONNECTING}function h0e(e){return e[cp]===up.OPEN}function m0e(e){return e[cp]===up.CLOSING}function E0e(e){return e[cp]===up.CLOSED}function XS(e,t,r=(o,i)=>new Event(o,i),n={}){let o=r(e,n);t.dispatchEvent(o)}function C0e(e,t,r){if(e[cp]!==up.OPEN)return;let n;if(t===Ui.TEXT)try{n=Qq(r)}catch{xq(e,"Received invalid UTF-8 in text frame.");return}else if(t===Ui.BINARY)if(e[u0e]==="blob")n=new Blob([r]);else n=I0e(r);XS("message",e,d0e,{origin:e[l0e].origin,data:n})}function I0e(e){if(e.byteLength===e.buffer.byteLength)return e.buffer;return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function y0e(e){if(e.length===0)return!1;for(let t=0;t<e.length;++t){let r=e.charCodeAt(t);if(r<33||r>126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}function x0e(e){if(e>=1000&&e<1015)return e!==1004&&e!==1005&&e!==1006;return e>=3000&&e<=4999}function xq(e,t){let{[a0e]:r,[c0e]:n}=e;if(r.abort(),n?.socket&&!n.socket.destroyed)n.socket.destroy();if(t)XS("error",e,(o,i)=>new A0e(o,i),{error:Error(t),message:t})}function bq(e){return e===Ui.CLOSE||e===Ui.PING||e===Ui.PONG}function Bq(e){return e===Ui.CONTINUATION}function _q(e){return e===Ui.TEXT||e===Ui.BINARY}function b0e(e){return _q(e)||Bq(e)||bq(e)}function B0e(e){let t={position:0},r=new Map;while(t.position<e.length){let n=f0e(";",e,t),[o,i=""]=n.split("=");r.set(Iq(o,!0,!1),Iq(i,!1,!0)),t.position++}return r}function _0e(e){if(e.length===0)return!1;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n<48||n>57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}var vq=typeof process.versions.icu==="string",yq=vq?new TextDecoder("utf-8",{fatal:!0}):void 0,Qq=vq?yq.decode.bind(yq):function(e){if(p0e(e))return e.toString("utf-8");throw TypeError("Invalid utf-8 received.")};wq.exports={isConnecting:g0e,isEstablished:h0e,isClosing:m0e,isClosed:E0e,fireEvent:XS,isValidSubprotocol:y0e,isValidStatusCode:x0e,failWebsocketConnection:xq,websocketMessageReceived:C0e,utf8Decode:Qq,isControlFrame:bq,isContinuationFrame:Bq,isTextBinaryFrame:_q,isValidOpcode:b0e,parseExtensions:B0e,isValidClientWindowBits:_0e}});var dE=y((dAt,kq)=>{var{maxUnsigned16Bit:v0e}=ea(),ek,Ap=null,Qu=16386;try{ek=v("node:crypto")}catch{ek={randomFillSync:function(t,r,n){for(let o=0;o<t.length;++o)t[o]=Math.random()*255|0;return t}}}function Q0e(){if(Qu===16386)Qu=0,ek.randomFillSync(Ap??=Buffer.allocUnsafe(16386),0,16386);return[Ap[Qu++],Ap[Qu++],Ap[Qu++],Ap[Qu++]]}class Sq{constructor(e){this.frameData=e}createFrame(e){let t=this.frameData,r=Q0e(),n=t?.byteLength??0,o=n,i=6;if(n>v0e)i+=8,o=127;else if(n>125)i+=2,o=126;let s=Buffer.allocUnsafe(n+i);s[0]=s[1]=0,s[0]|=128,s[0]=(s[0]&240)+e;/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */if(s[i-4]=r[0],s[i-3]=r[1],s[i-2]=r[2],s[i-1]=r[3],s[1]=o,o===126)s.writeUInt16BE(n,2);else if(o===127)s[2]=s[3]=0,s.writeUIntBE(n,4,6);s[1]|=128;for(let a=0;a<n;++a)s[i+a]=t[a]^r[a&3];return s}}kq.exports={WebsocketFrameSend:Sq}});var rk=y((pAt,Oq)=>{var{uid:w0e,states:dp,sentCloseFrameState:pE,emptyBuffer:S0e,opcodes:k0e}=ea(),{kReadyState:pp,kSentClose:fE,kByteParser:Rq,kReceivedClose:Dq,kResponse:Tq}=ap(),{fireEvent:D0e,failWebsocketConnection:Oi,isClosing:R0e,isClosed:T0e,isEstablished:N0e,parseExtensions:L0e}=lp(),{channels:wu}=Pc(),{CloseEvent:U0e}=vu(),{makeRequest:O0e}=Iu(),{fetching:F0e}=rp(),{Headers:M0e,getHeadersList:P0e}=Ws(),{getDecodeSplit:$0e}=Gr(),{WebsocketFrameSend:H0e}=dE(),tk;try{tk=v("node:crypto")}catch{}function G0e(e,t,r,n,o,i){let s=e;s.protocol=e.protocol==="ws:"?"http:":"https:";let a=O0e({urlList:[s],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(i.headers){let p=P0e(new M0e(i.headers));a.headersList=p}let c=tk.randomBytes(16).toString("base64");a.headersList.append("sec-websocket-key",c),a.headersList.append("sec-websocket-version","13");for(let p of t)a.headersList.append("sec-websocket-protocol",p);let u="permessage-deflate; client_max_window_bits";return a.headersList.append("sec-websocket-extensions",u),F0e({request:a,useParallelQueue:!0,dispatcher:i.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){Oi(n,"Received network error or non-101 status code.");return}if(t.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){Oi(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Oi(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Oi(n,'Server did not set Connection header to "upgrade".');return}let d=p.headersList.get("Sec-WebSocket-Accept"),f=tk.createHash("sha1").update(c+w0e).digest("base64");if(d!==f){Oi(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let g=p.headersList.get("Sec-WebSocket-Extensions"),m;if(g!==null){if(m=L0e(g),!m.has("permessage-deflate")){Oi(n,"Sec-WebSocket-Extensions header does not match.");return}}let h=p.headersList.get("Sec-WebSocket-Protocol");if(h!==null){if(!$0e("sec-websocket-protocol",a.headersList).includes(h)){Oi(n,"Protocol was not set in the opening handshake.");return}}if(p.socket.on("data",Nq),p.socket.on("close",Lq),p.socket.on("error",Uq),wu.open.hasSubscribers)wu.open.publish({address:p.socket.address(),protocol:h,extensions:g});o(p,m)}})}function z0e(e,t,r,n){if(R0e(e)||T0e(e));else if(!N0e(e))Oi(e,"Connection was closed before it was established."),e[pp]=dp.CLOSING;else if(e[fE]===pE.NOT_SENT){e[fE]=pE.PROCESSING;let o=new H0e;if(t!==void 0&&r===void 0)o.frameData=Buffer.allocUnsafe(2),o.frameData.writeUInt16BE(t,0);else if(t!==void 0&&r!==void 0)o.frameData=Buffer.allocUnsafe(2+n),o.frameData.writeUInt16BE(t,0),o.frameData.write(r,2,"utf-8");else o.frameData=S0e;e[Tq].socket.write(o.createFrame(k0e.CLOSE)),e[fE]=pE.SENT,e[pp]=dp.CLOSING}else e[pp]=dp.CLOSING}function Nq(e){if(!this.ws[Rq].write(e))this.pause()}function Lq(){let{ws:e}=this,{[Tq]:t}=e;t.socket.off("data",Nq),t.socket.off("close",Lq),t.socket.off("error",Uq);let r=e[fE]===pE.SENT&&e[Dq],n=1005,o="",i=e[Rq].closingInfo;if(i&&!i.error)n=i.code??1005,o=i.reason;else if(!e[Dq])n=1006;if(e[pp]=dp.CLOSED,D0e("close",e,(s,a)=>new U0e(s,a),{wasClean:r,code:n,reason:o}),wu.close.hasSubscribers)wu.close.publish({websocket:e,code:n,reason:o})}function Uq(e){let{ws:t}=this;if(t[pp]=dp.CLOSING,wu.socketError.hasSubscribers)wu.socketError.publish(e);this.destroy()}Oq.exports={establishWebSocketConnection:G0e,closeWebSocketConnection:z0e}});var $q=y((fAt,Pq)=>{var{createInflateRaw:Y0e,Z_DEFAULT_WINDOWBITS:j0e}=v("node:zlib"),{isValidClientWindowBits:V0e}=lp(),{MessageSizeExceededError:Fq}=we(),J0e=Buffer.from([0,0,255,255]),gE=Symbol("kBuffer"),fp=Symbol("kLength");class Mq{#e;#t={};#r=!1;#n=null;constructor(e){this.#t.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#t.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#r){r(new Fq);return}if(!this.#e){let n=j0e;if(this.#t.serverMaxWindowBits){if(!V0e(this.#t.serverMaxWindowBits)){r(Error("Invalid server_max_window_bits"));return}n=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=Y0e({windowBits:n})}catch(o){r(o);return}this.#e[gE]=[],this.#e[fp]=0,this.#e.on("data",(o)=>{if(this.#r)return;if(this.#e[fp]+=o.length,this.#e[fp]>4194304){if(this.#r=!0,this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null,this.#n){let i=this.#n;this.#n=null,i(new Fq)}return}this.#e[gE].push(o)}),this.#e.on("error",(o)=>{this.#e=null,r(o)})}if(this.#n=r,this.#e.write(e),t)this.#e.write(J0e);this.#e.flush(()=>{if(this.#r||!this.#e)return;let n=Buffer.concat(this.#e[gE],this.#e[fp]);this.#e[gE].length=0,this.#e[fp]=0,this.#n=null,r(null,n)})}}Pq.exports={PerMessageDeflate:Mq}});var Kq=y((gAt,Zq)=>{var{Writable:W0e}=v("node:stream"),q0e=v("node:assert"),{parserStates:_r,opcodes:Su,states:Z0e,emptyBuffer:Hq,sentCloseFrameState:Gq}=ea(),{kReadyState:K0e,kSentClose:zq,kResponse:Yq,kReceivedClose:jq}=ap(),{channels:hE}=Pc(),{isValidStatusCode:X0e,isValidOpcode:eTe,failWebsocketConnection:Zr,websocketMessageReceived:Vq,utf8Decode:tTe,isControlFrame:Jq,isTextBinaryFrame:nk,isContinuationFrame:rTe}=lp(),{WebsocketFrameSend:Wq}=dE(),{closeWebSocketConnection:nTe}=rk(),{PerMessageDeflate:oTe}=$q();class qq extends W0e{#e=[];#t=0;#r=!1;#n=_r.INFO;#o={};#a=[];#i;constructor(e,t){super();if(this.ws=e,this.#i=t==null?new Map:t,this.#i.has("permessage-deflate"))this.#i.set("permessage-deflate",new oTe(t))}_write(e,t,r){this.#e.push(e),this.#t+=e.length,this.#r=!0,this.run(r)}run(e){while(this.#r)if(this.#n===_r.INFO){if(this.#t<2)return e();let t=this.consume(2),r=(t[0]&128)!==0,n=t[0]&15,o=(t[1]&128)===128,i=!r&&n!==Su.CONTINUATION,s=t[1]&127,a=t[0]&64,c=t[0]&32,u=t[0]&16;if(!eTe(n))return Zr(this.ws,"Invalid opcode received"),e();if(o)return Zr(this.ws,"Frame cannot be masked"),e();if(a!==0&&!this.#i.has("permessage-deflate")){Zr(this.ws,"Expected RSV1 to be clear.");return}if(c!==0||u!==0){Zr(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(i&&!nk(n)){Zr(this.ws,"Invalid frame type was fragmented.");return}if(nk(n)&&this.#a.length>0){Zr(this.ws,"Expected continuation frame");return}if(this.#o.fragmented&&i){Zr(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((s>125||i)&&Jq(n)){Zr(this.ws,"Control frame either too large or fragmented");return}if(rTe(n)&&this.#a.length===0&&!this.#o.compressed){Zr(this.ws,"Unexpected continuation frame");return}if(s<=125)this.#o.payloadLength=s,this.#n=_r.READ_DATA;else if(s===126)this.#n=_r.PAYLOADLENGTH_16;else if(s===127)this.#n=_r.PAYLOADLENGTH_64;if(nk(n))this.#o.binaryType=n,this.#o.compressed=a!==0;this.#o.opcode=n,this.#o.masked=o,this.#o.fin=r,this.#o.fragmented=i}else if(this.#n===_r.PAYLOADLENGTH_16){if(this.#t<2)return e();let t=this.consume(2);this.#o.payloadLength=t.readUInt16BE(0),this.#n=_r.READ_DATA}else if(this.#n===_r.PAYLOADLENGTH_64){if(this.#t<8)return e();let t=this.consume(8),r=t.readUInt32BE(0),n=t.readUInt32BE(4);if(r!==0||n>2147483647){Zr(this.ws,"Received payload length > 2^31 bytes.");return}this.#o.payloadLength=n,this.#n=_r.READ_DATA}else if(this.#n===_r.READ_DATA){if(this.#t<this.#o.payloadLength)return e();let t=this.consume(this.#o.payloadLength);if(Jq(this.#o.opcode))this.#r=this.parseControlFrame(t),this.#n=_r.INFO;else if(!this.#o.compressed){if(this.#a.push(t),!this.#o.fragmented&&this.#o.fin){let r=Buffer.concat(this.#a);Vq(this.ws,this.#o.binaryType,r),this.#a.length=0}this.#n=_r.INFO}else{this.#i.get("permessage-deflate").decompress(t,this.#o.fin,(r,n)=>{if(r){Zr(this.ws,r.message);return}if(this.#a.push(n),!this.#o.fin){this.#n=_r.INFO,this.#r=!0,this.run(e);return}Vq(this.ws,this.#o.binaryType,Buffer.concat(this.#a)),this.#r=!0,this.#n=_r.INFO,this.#a.length=0,this.run(e)}),this.#r=!1;break}}}consume(e){if(e>this.#t)throw Error("Called consume() before buffers satiated.");else if(e===0)return Hq;if(this.#e[0].length===e)return this.#t-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),r=0;while(r!==e){let n=this.#e[0],{length:o}=n;if(o+r===e){t.set(this.#e.shift(),r);break}else if(o+r>e){t.set(n.subarray(0,e-r),r),this.#e[0]=n.subarray(e-r);break}else t.set(this.#e.shift(),r),r+=n.length}return this.#t-=e,t}parseCloseBody(e){q0e(e.length!==1);let t;if(e.length>=2)t=e.readUInt16BE(0);if(t!==void 0&&!X0e(t))return{code:1002,reason:"Invalid status code",error:!0};let r=e.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191)r=r.subarray(3);try{r=tTe(r)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:t,reason:r,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:r}=this.#o;if(t===Su.CLOSE){if(r===1)return Zr(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#o.closeInfo=this.parseCloseBody(e),this.#o.closeInfo.error){let{code:n,reason:o}=this.#o.closeInfo;return nTe(this.ws,n,o,o.length),Zr(this.ws,o),!1}if(this.ws[zq]!==Gq.SENT){let n=Hq;if(this.#o.closeInfo.code)n=Buffer.allocUnsafe(2),n.writeUInt16BE(this.#o.closeInfo.code,0);let o=new Wq(n);this.ws[Yq].socket.write(o.createFrame(Su.CLOSE),(i)=>{if(!i)this.ws[zq]=Gq.SENT})}return this.ws[K0e]=Z0e.CLOSING,this.ws[jq]=!0,!1}else if(t===Su.PING){if(!this.ws[jq]){let n=new Wq(e);if(this.ws[Yq].socket.write(n.createFrame(Su.PONG)),hE.ping.hasSubscribers)hE.ping.publish({payload:e})}}else if(t===Su.PONG){if(hE.pong.hasSubscribers)hE.pong.publish({payload:e})}return!0}get closingInfo(){return this.#o.closeInfo}}Zq.exports={ByteParser:qq}});var o4=y((hAt,n4)=>{var{WebsocketFrameSend:iTe}=dE(),{opcodes:Xq,sendHints:ku}=ea(),sTe=Pw(),e4=Buffer[Symbol.species];class r4{#e=new sTe;#t=!1;#r;constructor(e){this.#r=e}add(e,t,r){if(r!==ku.blob){let o=t4(e,r);if(!this.#t)this.#r.write(o,t);else{let i={promise:null,callback:t,frame:o};this.#e.push(i)}return}let n={promise:e.arrayBuffer().then((o)=>{n.promise=null,n.frame=t4(o,r)}),callback:t,frame:null};if(this.#e.push(n),!this.#t)this.#n()}async#n(){this.#t=!0;let e=this.#e;while(!e.isEmpty()){let t=e.shift();if(t.promise!==null)await t.promise;this.#r.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}}function t4(e,t){return new iTe(aTe(e,t)).createFrame(t===ku.string?Xq.TEXT:Xq.BINARY)}function aTe(e,t){switch(t){case ku.string:return Buffer.from(e);case ku.arrayBuffer:case ku.blob:return new e4(e);case ku.typedArray:return new e4(e.buffer,e.byteOffset,e.byteLength)}}n4.exports={SendQueue:r4}});var p4=y((mAt,d4)=>{var{webidl:ce}=Yt(),{URLSerializer:cTe}=Ir(),{environmentSettingsObject:i4}=Gr(),{staticPropertyDescriptors:Fi,states:gp,sentCloseFrameState:uTe,sendHints:mE}=ea(),{kWebSocketURL:s4,kReadyState:ok,kController:lTe,kBinaryType:EE,kResponse:a4,kSentClose:ATe,kByteParser:dTe}=ap(),{isConnecting:pTe,isEstablished:fTe,isClosing:gTe,isValidSubprotocol:hTe,fireEvent:c4}=lp(),{establishWebSocketConnection:mTe,closeWebSocketConnection:u4}=rk(),{ByteParser:ETe}=Kq(),{kEnumerableProperty:dn,isBlobLike:l4}=Ce(),{getGlobalDispatcher:CTe}=Mm(),{types:A4}=v("node:util"),{ErrorEvent:ITe,CloseEvent:yTe}=vu(),{SendQueue:xTe}=o4();class Le extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#r="";#n="";#o;constructor(e,t=[]){super();ce.util.markAsUncloneable(this);let r="WebSocket constructor";ce.argumentLengthCheck(arguments,1,r);let n=ce.converters["DOMString or sequence<DOMString> or WebSocketInit"](t,r,"options");e=ce.converters.USVString(e,r,"url"),t=n.protocols;let o=i4.settingsObject.baseUrl,i;try{i=new URL(e,o)}catch(a){throw new DOMException(a,"SyntaxError")}if(i.protocol==="http:")i.protocol="ws:";else if(i.protocol==="https:")i.protocol="wss:";if(i.protocol!=="ws:"&&i.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${i.protocol}`,"SyntaxError");if(i.hash||i.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof t==="string")t=[t];if(t.length!==new Set(t.map((a)=>a.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(t.length>0&&!t.every((a)=>hTe(a)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[s4]=new URL(i.href);let s=i4.settingsObject;this[lTe]=mTe(i,t,s,this,(a,c)=>this.#a(a,c),n),this[ok]=Le.CONNECTING,this[ATe]=uTe.NOT_SENT,this[EE]="blob"}close(e=void 0,t=void 0){ce.brandCheck(this,Le);let r="WebSocket.close";if(e!==void 0)e=ce.converters["unsigned short"](e,r,"code",{clamp:!0});if(t!==void 0)t=ce.converters.USVString(t,r,"reason");if(e!==void 0){if(e!==1000&&(e<3000||e>4999))throw new DOMException("invalid code","InvalidAccessError")}let n=0;if(t!==void 0){if(n=Buffer.byteLength(t),n>123)throw new DOMException(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError")}u4(this,e,t,n)}send(e){ce.brandCheck(this,Le);let t="WebSocket.send";if(ce.argumentLengthCheck(arguments,1,t),e=ce.converters.WebSocketSendData(e,t,"data"),pTe(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!fTe(this)||gTe(this))return;if(typeof e==="string"){let r=Buffer.byteLength(e);this.#t+=r,this.#o.add(e,()=>{this.#t-=r},mE.string)}else if(A4.isArrayBuffer(e))this.#t+=e.byteLength,this.#o.add(e,()=>{this.#t-=e.byteLength},mE.arrayBuffer);else if(ArrayBuffer.isView(e))this.#t+=e.byteLength,this.#o.add(e,()=>{this.#t-=e.byteLength},mE.typedArray);else if(l4(e))this.#t+=e.size,this.#o.add(e,()=>{this.#t-=e.size},mE.blob)}get readyState(){return ce.brandCheck(this,Le),this[ok]}get bufferedAmount(){return ce.brandCheck(this,Le),this.#t}get url(){return ce.brandCheck(this,Le),cTe(this[s4])}get extensions(){return ce.brandCheck(this,Le),this.#n}get protocol(){return ce.brandCheck(this,Le),this.#r}get onopen(){return ce.brandCheck(this,Le),this.#e.open}set onopen(e){if(ce.brandCheck(this,Le),this.#e.open)this.removeEventListener("open",this.#e.open);if(typeof e==="function")this.#e.open=e,this.addEventListener("open",e);else this.#e.open=null}get onerror(){return ce.brandCheck(this,Le),this.#e.error}set onerror(e){if(ce.brandCheck(this,Le),this.#e.error)this.removeEventListener("error",this.#e.error);if(typeof e==="function")this.#e.error=e,this.addEventListener("error",e);else this.#e.error=null}get onclose(){return ce.brandCheck(this,Le),this.#e.close}set onclose(e){if(ce.brandCheck(this,Le),this.#e.close)this.removeEventListener("close",this.#e.close);if(typeof e==="function")this.#e.close=e,this.addEventListener("close",e);else this.#e.close=null}get onmessage(){return ce.brandCheck(this,Le),this.#e.message}set onmessage(e){if(ce.brandCheck(this,Le),this.#e.message)this.removeEventListener("message",this.#e.message);if(typeof e==="function")this.#e.message=e,this.addEventListener("message",e);else this.#e.message=null}get binaryType(){return ce.brandCheck(this,Le),this[EE]}set binaryType(e){if(ce.brandCheck(this,Le),e!=="blob"&&e!=="arraybuffer")this[EE]="blob";else this[EE]=e}#a(e,t){this[a4]=e;let r=new ETe(this,t);r.on("drain",bTe),r.on("error",BTe.bind(this)),e.socket.ws=this,this[dTe]=r,this.#o=new xTe(e.socket),this[ok]=gp.OPEN;let n=e.headersList.get("sec-websocket-extensions");if(n!==null)this.#n=n;let o=e.headersList.get("sec-websocket-protocol");if(o!==null)this.#r=o;c4("open",this)}}Le.CONNECTING=Le.prototype.CONNECTING=gp.CONNECTING;Le.OPEN=Le.prototype.OPEN=gp.OPEN;Le.CLOSING=Le.prototype.CLOSING=gp.CLOSING;Le.CLOSED=Le.prototype.CLOSED=gp.CLOSED;Object.defineProperties(Le.prototype,{CONNECTING:Fi,OPEN:Fi,CLOSING:Fi,CLOSED:Fi,url:dn,readyState:dn,bufferedAmount:dn,onopen:dn,onerror:dn,onclose:dn,close:dn,onmessage:dn,binaryType:dn,send:dn,extensions:dn,protocol:dn,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Le,{CONNECTING:Fi,OPEN:Fi,CLOSING:Fi,CLOSED:Fi});ce.converters["sequence<DOMString>"]=ce.sequenceConverter(ce.converters.DOMString);ce.converters["DOMString or sequence<DOMString>"]=function(e,t,r){if(ce.util.Type(e)==="Object"&&Symbol.iterator in e)return ce.converters["sequence<DOMString>"](e);return ce.converters.DOMString(e,t,r)};ce.converters.WebSocketInit=ce.dictionaryConverter([{key:"protocols",converter:ce.converters["DOMString or sequence<DOMString>"],defaultValue:()=>[]},{key:"dispatcher",converter:ce.converters.any,defaultValue:()=>CTe()},{key:"headers",converter:ce.nullableConverter(ce.converters.HeadersInit)}]);ce.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(e){if(ce.util.Type(e)==="Object"&&!(Symbol.iterator in e))return ce.converters.WebSocketInit(e);return{protocols:ce.converters["DOMString or sequence<DOMString>"](e)}};ce.converters.WebSocketSendData=function(e){if(ce.util.Type(e)==="Object"){if(l4(e))return ce.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||A4.isArrayBuffer(e))return ce.converters.BufferSource(e)}return ce.converters.USVString(e)};function bTe(){this.ws[a4].socket.resume()}function BTe(e){let t,r;if(e instanceof yTe)t=e.reason,r=e.code;else t=e.message;c4("error",this,()=>new ITe("error",{error:e,message:t})),u4(this,r)}d4.exports={WebSocket:Le}});var ik=y((EAt,f4)=>{function _Te(e){return e.indexOf("\x00")===-1}function vTe(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(e.charCodeAt(t)<48||e.charCodeAt(t)>57)return!1;return!0}function QTe(e){return new Promise((t)=>{setTimeout(t,e).unref()})}f4.exports={isValidLastEventId:_Te,isASCIINumber:vTe,delay:QTe}});var C4=y((CAt,E4)=>{var{Transform:wTe}=v("node:stream"),{isASCIINumber:g4,isValidLastEventId:h4}=ik(),zo=[239,187,191];class m4 extends wTe{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0;super(e);if(this.state=e.eventSourceSettings||{},e.push)this.push=e.push}_transform(e,t,r){if(e.length===0){r();return}if(this.buffer)this.buffer=Buffer.concat([this.buffer,e]);else this.buffer=e;if(this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===zo[0]){r();return}this.checkBOM=!1,r();return;case 2:if(this.buffer[0]===zo[0]&&this.buffer[1]===zo[1]){r();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===zo[0]&&this.buffer[1]===zo[1]&&this.buffer[2]===zo[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,r();return}this.checkBOM=!1;break;default:if(this.buffer[0]===zo[0]&&this.buffer[1]===zo[1]&&this.buffer[2]===zo[2])this.buffer=this.buffer.subarray(3);this.checkBOM=!1;break}while(this.pos<this.buffer.length){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===10){this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.crlfCheck=!1;continue}this.crlfCheck=!1}if(this.buffer[this.pos]===10||this.buffer[this.pos]===13){if(this.buffer[this.pos]===13)this.crlfCheck=!0;if(this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.event.data!==void 0||this.event.event||this.event.id||this.event.retry)this.processEvent(this.event);this.clearEvent();continue}this.eventEndCheck=!1;continue}if(this.buffer[this.pos]===10||this.buffer[this.pos]===13){if(this.buffer[this.pos]===13)this.crlfCheck=!0;this.parseLine(this.buffer.subarray(0,this.pos),this.event),this.buffer=this.buffer.subarray(this.pos+1),this.pos=0,this.eventEndCheck=!0;continue}this.pos++}r()}parseLine(e,t){if(e.length===0)return;let r=e.indexOf(58);if(r===0)return;let n="",o="";if(r!==-1){n=e.subarray(0,r).toString("utf8");let i=r+1;if(e[i]===32)++i;o=e.subarray(i).toString("utf8")}else n=e.toString("utf8"),o="";switch(n){case"data":if(t[n]===void 0)t[n]=o;else t[n]+=`
157
- ${o}`;break;case"retry":if(g4(o))t[n]=o;break;case"id":if(h4(o))t[n]=o;break;case"event":if(o.length>0)t[n]=o;break}}processEvent(e){if(e.retry&&g4(e.retry))this.state.reconnectionTime=parseInt(e.retry,10);if(e.id&&h4(e.id))this.state.lastEventId=e.id;if(e.data!==void 0)this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}E4.exports={EventSourceStream:m4}});var Q4=y((IAt,v4)=>{var{pipeline:STe}=v("node:stream"),{fetching:kTe}=rp(),{makeRequest:DTe}=Iu(),{webidl:Yo}=Yt(),{EventSourceStream:RTe}=C4(),{parseMIMEType:TTe}=Ir(),{createFastMessageEvent:NTe}=vu(),{isNetworkError:I4}=ep(),{delay:LTe}=ik(),{kEnumerableProperty:ta}=Ce(),{environmentSettingsObject:y4}=Gr(),x4=!1,b4=3000,hp=0,B4=1,mp=2,UTe="anonymous",OTe="use-credentials";class Du extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=hp;#o=null;#a=null;#i;#l;constructor(e,t={}){super();Yo.util.markAsUncloneable(this);let r="EventSource constructor";if(Yo.argumentLengthCheck(arguments,1,r),!x4)x4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"});e=Yo.converters.USVString(e,r,"url"),t=Yo.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#l={lastEventId:"",reconnectionTime:b4};let n=y4,o;try{o=new URL(e,n.settingsObject.baseUrl),this.#l.origin=o.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=o.href;let i=UTe;if(t.withCredentials)i=OTe,this.#r=!0;let s={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};s.client=y4.settingsObject,s.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],s.cache="no-store",s.initiator="other",s.urlList=[new URL(this.#t)],this.#o=DTe(s),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===mp)return;this.#n=hp;let e={request:this.#o,dispatcher:this.#i},t=(r)=>{if(I4(r))this.dispatchEvent(new Event("error")),this.close();this.#c()};e.processResponseEndOfBody=t,e.processResponse=(r)=>{if(I4(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=r.headersList.get("content-type",!0),o=n!==null?TTe(n):"failure",i=o!=="failure"&&o.essence==="text/event-stream";if(r.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=B4,this.dispatchEvent(new Event("open")),this.#l.origin=r.urlList[r.urlList.length-1].origin;let s=new RTe({eventSourceSettings:this.#l,push:(a)=>{this.dispatchEvent(NTe(a.type,a.options))}});STe(r.body.stream,s,(a)=>{if(a?.aborted===!1)this.close(),this.dispatchEvent(new Event("error"))})},this.#a=kTe(e)}async#c(){if(this.#n===mp)return;if(this.#n=hp,this.dispatchEvent(new Event("error")),await LTe(this.#l.reconnectionTime),this.#n!==hp)return;if(this.#l.lastEventId.length)this.#o.headersList.set("last-event-id",this.#l.lastEventId,!0);this.#A()}close(){if(Yo.brandCheck(this,Du),this.#n===mp)return;this.#n=mp,this.#a.abort(),this.#o=null}get onopen(){return this.#e.open}set onopen(e){if(this.#e.open)this.removeEventListener("open",this.#e.open);if(typeof e==="function")this.#e.open=e,this.addEventListener("open",e);else this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){if(this.#e.message)this.removeEventListener("message",this.#e.message);if(typeof e==="function")this.#e.message=e,this.addEventListener("message",e);else this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){if(this.#e.error)this.removeEventListener("error",this.#e.error);if(typeof e==="function")this.#e.error=e,this.addEventListener("error",e);else this.#e.error=null}}var _4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:hp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:B4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:mp,writable:!1}};Object.defineProperties(Du,_4);Object.defineProperties(Du.prototype,_4);Object.defineProperties(Du.prototype,{close:ta,onerror:ta,onmessage:ta,onopen:ta,readyState:ta,url:ta,withCredentials:ta});Yo.converters.EventSourceInitDict=Yo.dictionaryConverter([{key:"withCredentials",converter:Yo.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Yo.converters.any}]);v4.exports={EventSource:Du,defaultReconnectionTime:b4}});var D4=y((hNe,oe)=>{var FTe=su(),w4=Id(),MTe=au(),PTe=XY(),$Te=cu(),HTe=Xw(),GTe=Qj(),zTe=Nj(),S4=we(),IE=Ce(),{InvalidArgumentError:CE}=S4,Ru=QV(),YTe=xd(),jTe=BS(),VTe=pJ(),JTe=vS(),WTe=pS(),qTe=km(),{getGlobalDispatcher:k4,setGlobalDispatcher:ZTe}=Mm(),KTe=Pm(),XTe=Im(),eNe=ym();Object.assign(w4.prototype,Ru);hNe.Dispatcher=w4;hNe.Client=FTe;hNe.Pool=MTe;hNe.BalancedPool=PTe;hNe.Agent=$Te;hNe.ProxyAgent=HTe;hNe.EnvHttpProxyAgent=GTe;hNe.RetryAgent=zTe;hNe.RetryHandler=qTe;hNe.DecoratorHandler=KTe;hNe.RedirectHandler=XTe;hNe.createRedirectInterceptor=eNe;hNe.interceptors={redirect:IJ(),retry:xJ(),dump:_J(),dns:kJ()};hNe.buildConnector=YTe;hNe.errors=S4;hNe.util={parseHeaders:IE.parseHeaders,headerNameToString:IE.headerNameToString};function Ep(e){return(t,r,n)=>{if(typeof r==="function")n=r,r=null;if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL))throw new CE("invalid url");if(r!=null&&typeof r!=="object")throw new CE("invalid opts");if(r&&r.path!=null){if(typeof r.path!=="string")throw new CE("invalid opts.path");let s=r.path;if(!r.path.startsWith("/"))s=`/${s}`;t=new URL(IE.parseOrigin(t).origin+s)}else{if(!r)r=typeof t==="object"?t:{};t=IE.parseURL(t)}let{agent:o,dispatcher:i=k4()}=r;if(o)throw new CE("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}hNe.setGlobalDispatcher=ZTe;hNe.getGlobalDispatcher=k4;var tNe=rp().fetch;hNe.fetch=async function(t,r=void 0){try{return await tNe(t,r)}catch(n){if(n&&typeof n==="object")Error.captureStackTrace(n);throw n}};hNe.Headers=Ws().Headers;hNe.Response=ep().Response;hNe.Request=Iu().Request;hNe.FormData=wd().FormData;hNe.File=globalThis.File??v("node:buffer").File;hNe.FileReader=JW().FileReader;var{setGlobalOrigin:rNe,getGlobalOrigin:nNe}=Aw();hNe.setGlobalOrigin=rNe;hNe.getGlobalOrigin=nNe;var{CacheStorage:oNe}=nq(),{kConstruct:iNe}=sE();hNe.caches=new oNe(iNe);var{deleteCookie:sNe,getCookies:aNe,getSetCookies:cNe,setCookie:uNe}=gq();hNe.deleteCookie=sNe;hNe.getCookies=aNe;hNe.getSetCookies=cNe;hNe.setCookie=uNe;var{parseMIMEType:lNe,serializeAMimeType:ANe}=Ir();hNe.parseMIMEType=lNe;hNe.serializeAMimeType=ANe;var{CloseEvent:dNe,ErrorEvent:pNe,MessageEvent:fNe}=vu();hNe.WebSocket=p4().WebSocket;hNe.CloseEvent=dNe;hNe.ErrorEvent=pNe;hNe.MessageEvent=fNe;hNe.request=Ep(Ru.request);hNe.stream=Ep(Ru.stream);hNe.pipeline=Ep(Ru.pipeline);hNe.connect=Ep(Ru.connect);hNe.upgrade=Ep(Ru.upgrade);hNe.MockClient=jTe;hNe.MockPool=JTe;hNe.MockAgent=VTe;hNe.mockErrors=WTe;var{EventSource:gNe}=Q4();hNe.EventSource=gNe});Ia();ho();nt();Rt();qt();function ci(){return"claude-code/0.3.203"}function sc(){switch(process.env.CLAUDE_CODE_ENTRYPOINT){case"claude-vscode":return"claude_code_vscode";case"remote":case"remote_baku":case"remote_cowork":case"remote_desktop":case"remote_mobile":return"claude_code_remote";case"claude-in-teams":return"claude_code_remote";case"sdk-cli":case"sdk-ts":case"sdk-py":return"claude_code_sdk";case"mcp":return"claude_code_mcp";case"claude-code-github-action":return"claude_code_github_action";case"local-agent":return"claude_code_local_agent";case"claude_in_slack":return"claude_in_slack";case"claude-in-slack":return"claude-in-slack";case"cli":default:return"claude_code_cli"}}Is();nt();Rt();qt();var Ore=["session_ingress_token","environment_secret","access_token","secret","token"],prt=new RegExp(`"(${Ore.join("|")})"\\s*:\\s*"([^"]*)"`,"g");function dv(e){if(!e||typeof e!=="object")return;if("message"in e&&typeof e.message==="string")return e.message;if("error"in e&&e.error!==null&&typeof e.error==="object"&&"message"in e.error&&typeof e.error.message==="string")return e.error.message;return}var mse="2023-06-01";function D2(e){return{Authorization:`Bearer ${e}`,"Content-Type":"application/json","anthropic-version":mse,"User-Agent":ci()}}async function Ese(e,t,r,n,o,i,s,a){let c=`${e}/v1/code/sessions`,u={cwd:s??xt(),...a&&{model:a}};if(i){let{buildGitSessionContext:d}=await Promise.resolve().then(() => (k2(),S2)),{sources:f,outcomes:g}=await d(i.gitRepoUrl,i.branch,i.defaultBranch);if(f.length>0||g.length>0)u.sources=f,u.outcomes=g,u.reuse_outcome_branches=!0}let A;try{A=await Jt.post(c,{title:r,bridge:{},...o?.length&&{tags:o},config:u},{headers:D2(t),timeout:n,validateStatus:(d)=>d<500})}catch(d){return Q(`[code-session] Session create request failed: ${Be(d)}`),null}if(A.status!==200&&A.status!==201){let d=dv(A.data);return Q(`[code-session] Session create failed ${A.status}${d?`: ${d}`:""}`),null}let p=A.data;if(!p||typeof p!=="object"||!("session"in p)||!p.session||typeof p.session!=="object"||!("id"in p.session)||typeof p.session.id!=="string"||!p.session.id.startsWith("cse_"))return Q(`[code-session] No session.id (cse_*) in response: ${_t(p).slice(0,200)}`),null;return p.session.id}function Cse(e){return e!==null&&"terminal"in e}function Ise(e,t){if(e!==null&&typeof e==="object"&&"error"in e&&e.error!==null&&typeof e.error==="object"&&"resource"in e.error){let r=e.error.resource;if(r==="untrusted_device"||r==="session_stale_relogin")return r;return}if(t?.includes("trusted device"))return"untrusted_device";return}async function yse(e,t,r,n,o){let i=`${t}/v1/code/sessions/${e}/bridge`,s=D2(r);if(o)s["X-Trusted-Device-Token"]=o;let a;try{a=await Jt.post(i,{},{headers:s,timeout:n,validateStatus:(p)=>p<500})}catch(p){return Q(`[code-session] /bridge request failed: ${Be(p)}`),null}if(a.status!==200){let p=dv(a.data);if(Q(`[code-session] /bridge failed ${a.status}${p?`: ${p}`:""}`),a.status===403){let d=Ise(a.data,p);if(d)return{terminal:!0,reason:d}}return null}let c=a.data;if(c===null||typeof c!=="object"||!("worker_jwt"in c)||typeof c.worker_jwt!=="string"||!("expires_in"in c)||typeof c.expires_in!=="number"||!("api_base_url"in c)||typeof c.api_base_url!=="string"||!("worker_epoch"in c))return Q(`[code-session] /bridge response malformed (need worker_jwt, expires_in, api_base_url, worker_epoch): ${_t(c).slice(0,200)}`),null;let u=c.worker_epoch,A=typeof u==="string"?Number(u):u;if(typeof A!=="number"||!Number.isFinite(A)||!Number.isSafeInteger(A))return Q(`[code-session] /bridge worker_epoch invalid: ${_t(u)}`),null;return{worker_jwt:c.worker_jwt,api_base_url:c.api_base_url,expires_in:c.expires_in,worker_epoch:A}}nt();Rt();import{randomUUID as bse}from"crypto";bs();Is();var R2={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"};var xse=["acceptEdits","auto","bypassPermissions","default","dontAsk","plan"],Wst=[...xse,"bubble"];function T2(e){return e==="manual"?"default":e}function N2(e){if(e===null||typeof e!=="object")return e;let t=e;if("requestId"in t&&!("request_id"in t))t.request_id=t.requestId,delete t.requestId;if("response"in t&&t.response!==null&&typeof t.response==="object"){let r=t.response;if("requestId"in r&&!("request_id"in r))r.request_id=r.requestId,delete r.requestId}return e}nt();function L2(e){if(!Array.isArray(e))return[];return e.filter((t)=>typeof t==="string"&&t.length>0&&t.length<=64).slice(0,32)}Zv();Rt();Is();qt();function Bse(e){return e!==null&&typeof e==="object"&&"type"in e&&typeof e.type==="string"}function _se(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_response"&&"response"in e}function vse(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_request"&&"request_id"in e&&"request"in e}function U2(e,t,r,n,o,i){try{let s=N2(ai(e));if(_se(s)){Q("[bridge:repl] Ingress message type=control_response"),o?.(s);return}if(vse(s)){Q(`[bridge:repl] Inbound control_request subtype=${s.request.subtype}`),i?.(s);return}if(!Bse(s))return;let a="uuid"in s&&typeof s.uuid==="string"?s.uuid:void 0;if(a&&t.has(a)){Q(`[bridge:repl] Ignoring echo: type=${s.type} uuid=${a}`);return}if(a&&r.has(a)){Q(`[bridge:repl] Ignoring re-delivered inbound: type=${s.type} uuid=${a}`);return}if(Q(`[bridge:repl] Ingress message type=${s.type}${a?` uuid=${a}`:""}`),s.type==="user"){if(a)r.add(a);bn("tengu_bridge_message_received",{is_repl:!0}),Mr("bridge_message_receive"),n?.(s)}else Q(`[bridge:repl] Ignoring non-user inbound message: type=${s.type}`)}catch(s){Q(`[bridge:repl] Failed to parse ingress message: ${Be(s)}`),zn("bridge_message_receive","bridge_message_receive_parse_failed")}}var Qse="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function O2(e,t){let{transport:r,sessionId:n,outboundOnly:o,getInitializeState:i,onInterrupt:s,onDialogKindsDeclared:a,onSetModel:c,onSetMaxThinkingTokens:u,onSetPermissionMode:A,onRenameSession:p,onSetColor:d,onFileSuggestions:f,onReadFile:g,onGetContextUsage:m,onGetUsage:h,onMcpAuthenticate:C,onMcpOauthCallbackUrl:w,onMcpReconnect:b,onMcpStatus:_}=t;if(!r){Q("[bridge:repl] Cannot respond to control_request: transport not configured");return}let L;if(o&&e.request.subtype!=="initialize"){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Qse}};let S={...L,session_id:n};r.write(S),Q(`[bridge:repl] Rejected ${e.request.subtype} (outbound-only) request_id=${e.request_id}`);return}switch(e.request.subtype){case"initialize":{try{let S=L2(e.request.supportedDialogKinds);if(S.length>0)a?.(S)}catch(S){Q(`[bridge:repl] dialog-kind capture failed; acking initialize anyway: ${Be(S)}`)}L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{commands:[],agents:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid,...i?.()}}};break}case"set_model":{let S=c?.(e.request.model);if(S&&!S.ok)L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};else L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break}case"set_max_thinking_tokens":u?.(e.request.max_thinking_tokens,e.request.thinking_display),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;case"set_permission_mode":{let S=A?.(T2(e.request.mode))??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"rename_session":{let S=p?.(e.request.title)??{ok:!1,error:"rename_session is not supported in this context (onRenameSession callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"set_color":{let S=d?.(e.request.color)??{ok:!1,error:"set_color is not supported in this context (onSetColor callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"file_suggestions":{if(!f){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"file_suggestions is not supported in this context (onFileSuggestions callback not registered)"}};break}f(e.request.query).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{suggestions:S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for file_suggestions request_id=${e.request_id} result=${S.response.subtype}`)});return}case"read_file":{if(!g){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"read_file is not supported in this context (onReadFile callback not registered)"}};break}g(e.request.path,e.request.max_bytes,e.request.encoding).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:S}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for read_file request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_context_usage":{if(!m){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_context_usage is not supported in this context (onGetContextUsage callback not registered)"}};break}m().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for get_context_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_usage":{if(!h){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_usage is not supported in this context (onGetUsage callback not registered)"}};break}h().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for get_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"mcp_status":L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{mcpServers:_?.()??[]}}};break;case"mcp_authenticate":case"mcp_oauth_callback_url":case"mcp_reconnect":{let S=e.request,{subtype:de,serverName:ge}=S,Mt=S.subtype==="mcp_authenticate"?C&&((rt)=>C(rt,S.redirectUri)):S.subtype==="mcp_oauth_callback_url"?w&&((rt)=>w(rt,S.callbackUrl)):b;if(!Mt){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`${de} is not supported in this context (callback not registered)`}};break}Mt(ge).then((rt)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:rt??{}}})).catch((rt)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(rt)}})).then((rt)=>{let ze={...rt,session_id:n};r.write(ze),Q(`[bridge:repl] Sent control_response for ${de} request_id=${e.request_id} result=${rt.response.subtype}`)});return}case"interrupt":s?.(),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;default:L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`REPL bridge does not handle control_request subtype: ${e.request.subtype}`}}}let T={...L,session_id:n};r.write(T),Q(`[bridge:repl] Sent control_response for ${e.request.subtype} request_id=${e.request_id} result=${L.response.subtype}`)}function F2(e){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...R2},modelUsage:{},permission_denials:[],session_id:e,uuid:bse()}}class Th{capacity;ring;set=new Set;writeIdx=0;constructor(e){this.capacity=e,this.ring=Array(e)}add(e){if(this.set.has(e))return;let t=this.ring[this.writeIdx];if(t!==void 0)this.set.delete(t);this.ring[this.writeIdx]=e,this.set.add(e),this.writeIdx=(this.writeIdx+1)%this.capacity}has(e){return this.set.has(e)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}import{randomUUID as Y4}from"crypto";Is();nt();Ac();Rt();qt();function wse(e){let r=(e.startsWith("sk-ant-si-")?e.slice(10):e).split(".");if(r.length!==3||!r[1])return null;try{return ai(Buffer.from(r[1],"base64url").toString("utf8"))}catch{return null}}function M2(e){let t=wse(e);if(t!==null&&typeof t==="object"&&"exp"in t&&typeof t.exp==="number")return t.exp;return null}bs();Is();nt();Ac();Rt();sr();Cn();var ALe=Nu(e1(),1);import{isIP as R4}from"net";sr();bs();function Cc(e){return[...new Set(e)]}nt();var QQ={};ht(QQ,{USE_STAGING_OAUTH:()=>Mce,USE_LOCAL_OAUTH:()=>Fce,MCP_XAA_IDP_CLIENT_SECRET:()=>bce,MCP_CLIENT_SECRET:()=>xce,ENVIRONMENT_SERVICE_KEY:()=>yce,CLAUDE_TRUSTED_DEVICE_TOKEN:()=>Oce,CLAUDE_SESSION_INGRESS_TOKEN_FILE:()=>Qce,CLAUDE_LOCAL_OAUTH_CONSOLE_BASE:()=>Hce,CLAUDE_LOCAL_OAUTH_APPS_BASE:()=>$ce,CLAUDE_LOCAL_OAUTH_API_BASE:()=>Pce,CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR:()=>vce,CLAUDE_CODE_USER_EMAIL:()=>iue,CLAUDE_CODE_SUBSCRIPTION_TYPE:()=>sue,CLAUDE_CODE_SKIP_VERTEX_AUTH:()=>Wce,CLAUDE_CODE_SKIP_MANTLE_AUTH:()=>Kce,CLAUDE_CODE_SKIP_FOUNDRY_AUTH:()=>qce,CLAUDE_CODE_SKIP_BEDROCK_AUTH:()=>Jce,CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH:()=>Zce,CLAUDE_CODE_SESSION_ACCESS_TOKEN:()=>Uce,CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH:()=>Tce,CLAUDE_CODE_RATE_LIMIT_TIER:()=>aue,CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS:()=>Vce,CLAUDE_CODE_ORGANIZATION_UUID:()=>oue,CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR:()=>_ce,CLAUDE_CODE_OAUTH_TOKEN:()=>pce,CLAUDE_CODE_OAUTH_SCOPES:()=>Dce,CLAUDE_CODE_OAUTH_REFRESH_TOKEN:()=>wce,CLAUDE_CODE_OAUTH_CLIENT_ID:()=>Sce,CLAUDE_CODE_OAUTH_401_WAIT_MS:()=>Gce,CLAUDE_CODE_HOST_CREDS_FILE:()=>Lce,CLAUDE_CODE_HOST_AUTH_ENV_VAR:()=>Nce,CLAUDE_CODE_HFI_BEARER_TOKEN:()=>Ece,CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER:()=>jce,CLAUDE_CODE_DESIGN_OAUTH_CLIENT_ID:()=>kce,CLAUDE_CODE_CUSTOM_OAUTH_URL:()=>Rce,CLAUDE_CODE_AUTH_FAIL_EXIT_MS:()=>zce,CLAUDE_CODE_API_KEY_HELPER_TTL_MS:()=>Yce,CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR:()=>Bce,CLAUDE_CODE_ACCOUNT_UUID:()=>rue,CLAUDE_CODE_ACCOUNT_TAGGED_ID:()=>nue,AWS_BEARER_TOKEN_BEDROCK:()=>fce,API_TOKEN:()=>Ice,ANTHROPIC_PROFILE:()=>tue,ANTHROPIC_ORGANIZATION_ID:()=>eue,ANTHROPIC_FOUNDRY_AUTH_TOKEN:()=>mce,ANTHROPIC_FOUNDRY_API_KEY:()=>hce,ANTHROPIC_FEDERATION_RULE_ID:()=>Xce,ANTHROPIC_AWS_API_KEY:()=>gce,ANTHROPIC_AUTH_TOKEN:()=>dce,ANTHROPIC_API_KEY:()=>Ace,AGENT_PROXY_AUTH_TOKEN:()=>Cce});var Hr={};ht(Hr,{void:()=>Tae,util:()=>ye,unknown:()=>Dae,union:()=>Oae,undefined:()=>wae,tuple:()=>Pae,transformer:()=>qae,symbol:()=>Qae,string:()=>u1,strictObject:()=>Uae,setErrorMap:()=>Kse,set:()=>Gae,record:()=>$ae,quotelessJson:()=>qse,promise:()=>Wae,preprocess:()=>Xae,pipeline:()=>ece,ostring:()=>tce,optional:()=>Zae,onumber:()=>rce,oboolean:()=>nce,objectUtil:()=>BQ,object:()=>Lae,number:()=>l1,nullable:()=>Kae,null:()=>Sae,never:()=>Rae,nativeEnum:()=>Jae,nan:()=>Bae,map:()=>Hae,makeIssue:()=>ad,literal:()=>jae,lazy:()=>Yae,late:()=>xae,isValid:()=>fi,isDirty:()=>Oh,isAsync:()=>yc,isAborted:()=>Uh,intersection:()=>Mae,instanceof:()=>bae,getParsedType:()=>Vn,getErrorMap:()=>Ic,function:()=>zae,enum:()=>Vae,effect:()=>qae,discriminatedUnion:()=>Fae,defaultErrorMap:()=>ko,datetimeRegex:()=>s1,date:()=>vae,custom:()=>c1,coerce:()=>oce,boolean:()=>A1,bigint:()=>_ae,array:()=>Nae,any:()=>kae,addIssueToContext:()=>z,ZodVoid:()=>ud,ZodUnknown:()=>gi,ZodUnion:()=>Qc,ZodUndefined:()=>_c,ZodType:()=>Ee,ZodTuple:()=>Wn,ZodTransformer:()=>kn,ZodSymbol:()=>cd,ZodString:()=>vn,ZodSet:()=>ks,ZodSchema:()=>Ee,ZodRecord:()=>ld,ZodReadonly:()=>Nc,ZodPromise:()=>Ds,ZodPipeline:()=>pd,ZodParsedType:()=>M,ZodOptional:()=>wn,ZodObject:()=>ut,ZodNumber:()=>hi,ZodNullable:()=>Ro,ZodNull:()=>vc,ZodNever:()=>Jn,ZodNativeEnum:()=>Dc,ZodNaN:()=>dd,ZodMap:()=>Ad,ZodLiteral:()=>kc,ZodLazy:()=>Sc,ZodIssueCode:()=>R,ZodIntersection:()=>wc,ZodFunction:()=>bc,ZodFirstPartyTypeKind:()=>ne,ZodError:()=>Cr,ZodEnum:()=>Ei,ZodEffects:()=>kn,ZodDiscriminatedUnion:()=>Fh,ZodDefault:()=>Rc,ZodDate:()=>ws,ZodCatch:()=>Tc,ZodBranded:()=>Mh,ZodBoolean:()=>Bc,ZodBigInt:()=>mi,ZodArray:()=>Qn,ZodAny:()=>Ss,Schema:()=>Ee,ParseStatus:()=>zt,OK:()=>Xt,NEVER:()=>ice,INVALID:()=>ee,EMPTY_PATH:()=>Xse,DIRTY:()=>Qs,BRAND:()=>yae});var ye;(function(e){e.assertEqual=(o)=>{};function t(o){}e.assertIs=t;function r(o){throw Error()}e.assertNever=r,e.arrayToEnum=(o)=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=(o)=>{let i=e.objectKeys(o).filter((a)=>typeof o[o[a]]!=="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=(o)=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys==="function"?(o)=>Object.keys(o):(o)=>{let i=[];for(let s in o)if(Object.prototype.hasOwnProperty.call(o,s))i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s;return},e.isInteger=typeof Number.isInteger==="function"?(o)=>Number.isInteger(o):(o)=>typeof o==="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,i=" | "){return o.map((s)=>typeof s==="string"?`'${s}'`:s).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>{if(typeof i==="bigint")return i.toString();return i}})(ye||(ye={}));var BQ;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(BQ||(BQ={}));var M=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vn=(e)=>{switch(typeof e){case"undefined":return M.undefined;case"string":return M.string;case"number":return Number.isNaN(e)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":if(Array.isArray(e))return M.array;if(e===null)return M.null;if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return M.promise;if(typeof Map<"u"&&e instanceof Map)return M.map;if(typeof Set<"u"&&e instanceof Set)return M.set;if(typeof Date<"u"&&e instanceof Date)return M.date;return M.object;default:return M.unknown}};var R=ye.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"]),qse=(e)=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Cr extends Error{get errors(){return this.issues}constructor(e){super();this.issues=[],this.addIssue=(r)=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let t=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,t);else this.__proto__=t;this.name="ZodError",this.issues=e}format(e){let t=e||function(o){return o.message},r={_errors:[]},n=(o)=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;while(a<i.path.length){let c=i.path[a];if(a!==i.path.length-1)s[c]=s[c]||{_errors:[]};else s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i));s=s[c],a++}}};return n(this),r}static assert(e){if(!(e instanceof Cr))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=(t)=>t.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];t[o]=t[o]||[],t[o].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Cr.create=(e)=>new Cr(e);var Zse=(e,t)=>{let r;switch(e.code){case R.invalid_type:if(e.received===M.undefined)r="Required";else r=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:r=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case R.invalid_union:r="Invalid input";break;case R.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case R.invalid_enum_value:r=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:r="Invalid function arguments";break;case R.invalid_return_type:r="Invalid function return type";break;case R.invalid_date:r="Invalid date";break;case R.invalid_string:if(typeof e.validation==="object")if("includes"in e.validation){if(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==="number")r=`${r} at one or more positions greater than or equal to ${e.validation.position}`}else if("startsWith"in e.validation)r=`Invalid input: must start with "${e.validation.startsWith}"`;else if("endsWith"in e.validation)r=`Invalid input: must end with "${e.validation.endsWith}"`;else ye.assertNever(e.validation);else if(e.validation!=="regex")r=`Invalid ${e.validation}`;else r="Invalid";break;case R.too_small:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="bigint")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`;else r="Invalid input";break;case R.too_big:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="bigint")r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`;else r="Invalid input";break;case R.custom:r="Invalid input";break;case R.invalid_intersection_types:r="Intersection results could not be merged";break;case R.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:r="Number must be finite";break;default:r=t.defaultError,ye.assertNever(e)}return{message:r}},ko=Zse;var t1=ko;function Kse(e){t1=e}function Ic(){return t1}var ad=(e)=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",c=n.filter((u)=>!!u).slice().reverse();for(let u of c)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},Xse=[];function z(e,t){let r=Ic(),n=ad({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===ko?void 0:ko].filter((o)=>!!o)});e.common.issues.push(n)}class zt{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(e,t){let r=[];for(let n of t){if(n.status==="aborted")return ee;if(n.status==="dirty")e.dirty();r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let n of t){let o=await n.key,i=await n.value;r.push({key:o,value:i})}return zt.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:o,value:i}=n;if(o.status==="aborted")return ee;if(i.status==="aborted")return ee;if(o.status==="dirty")e.dirty();if(i.status==="dirty")e.dirty();if(o.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet))r[o.value]=i.value}return{status:e.value,value:r}}}var ee=Object.freeze({status:"aborted"}),Qs=(e)=>({status:"dirty",value:e}),Xt=(e)=>({status:"valid",value:e}),Uh=(e)=>e.status==="aborted",Oh=(e)=>e.status==="dirty",fi=(e)=>e.status==="valid",yc=(e)=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=(t)=>typeof t==="string"?{message:t}:t||{},e.toString=(t)=>typeof t==="string"?t:t?.message})(J||(J={}));class Sn{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var r1=(e,t)=>{if(fi(t))return{success:!0,data:t.value};else{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Cr(e.common.issues);return this._error=r,this._error}}}};function pe(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(t)return{errorMap:t,description:o};return{errorMap:(s,a)=>{let{message:c}=e;if(s.code==="invalid_enum_value")return{message:c??a.defaultError};if(typeof a.data>"u")return{message:c??n??a.defaultError};if(s.code!=="invalid_type")return{message:a.defaultError};return{message:c??r??a.defaultError}},description:o}}class Ee{get description(){return this._def.description}_getType(e){return Vn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new zt,ctx:{common:e.parent.common,data:e.data,parsedType:Vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(yc(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vn(e)},n=this._parseSync({data:e,path:r.path,parent:r});return r1(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vn(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return fi(r)?{value:r.value}:{issues:t.common.issues}}catch(r){if(r?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then((r)=>fi(r)?{value:r.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vn(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(yc(n)?n:Promise.resolve(n));return r1(r,o)}refine(e,t){let r=(n)=>{if(typeof t==="string"||typeof t>"u")return{message:t};else if(typeof t==="function")return t(n);else return t};return this._refinement((n,o)=>{let i=e(n),s=()=>o.addIssue({code:R.custom,...r(n)});if(typeof Promise<"u"&&i instanceof Promise)return i.then((a)=>{if(!a)return s(),!1;else return!0});if(!i)return s(),!1;else return!0})}refinement(e,t){return this._refinement((r,n)=>{if(!e(r))return n.addIssue(typeof t==="function"?t(r,n):t),!1;else return!0})}_refinement(e){return new kn({schema:this,typeName:ne.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(t)=>this["~validate"](t)}}optional(){return wn.create(this,this._def)}nullable(){return Ro.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qn.create(this)}promise(){return Ds.create(this,this._def)}or(e){return Qc.create([this,e],this._def)}and(e){return wc.create(this,e,this._def)}transform(e){return new kn({...pe(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e==="function"?e:()=>e;return new Rc({...pe(this._def),innerType:this,defaultValue:t,typeName:ne.ZodDefault})}brand(){return new Mh({typeName:ne.ZodBranded,type:this,...pe(this._def)})}catch(e){let t=typeof e==="function"?e:()=>e;return new Tc({...pe(this._def),innerType:this,catchValue:t,typeName:ne.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return pd.create(this,e)}readonly(){return Nc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var eae=/^c[^\s-]{8,}$/i,tae=/^[0-9a-z]+$/,rae=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nae=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,oae=/^[a-z0-9_-]{21}$/i,iae=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sae=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,aae=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cae="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",_Q,uae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Aae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,dae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pae=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fae=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,o1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",gae=new RegExp(`^${o1}$`);function i1(e){let t="[0-5]\\d";if(e.precision)t=`${t}\\.\\d{${e.precision}}`;else if(e.precision==null)t=`${t}(\\.\\d+)?`;let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function hae(e){return new RegExp(`^${i1(e)}$`)}function s1(e){let t=`${o1}T${i1(e)}`,r=[];if(r.push(e.local?"Z?":"Z"),e.offset)r.push("([+-]\\d{2}:?\\d{2})");return t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function mae(e,t){if((t==="v4"||!t)&&uae.test(e))return!0;if((t==="v6"||!t)&&Aae.test(e))return!0;return!1}function Eae(e,t){if(!iae.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));if(typeof o!=="object"||o===null)return!1;if("typ"in o&&o?.typ!=="JWT")return!1;if(!o.alg)return!1;if(t&&o.alg!==t)return!1;return!0}catch{return!1}}function Cae(e,t){if((t==="v4"||!t)&&lae.test(e))return!0;if((t==="v6"||!t)&&dae.test(e))return!0;return!1}class vn extends Ee{_parse(e){if(this._def.coerce)e.data=String(e.data);if(this._getType(e)!==M.string){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_type,expected:M.string,received:o.parsedType}),ee}let r=new zt,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.length<o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="max"){if(e.data.length>o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="length"){let i=e.data.length>o.value,s=e.data.length<o.value;if(i||s){if(n=this._getOrReturnCtx(e,n),i)z(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});else if(s)z(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});r.dirty()}}else if(o.kind==="email"){if(!aae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"email",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="emoji"){if(!_Q)_Q=new RegExp(cae,"u");if(!_Q.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"emoji",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="uuid"){if(!nae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"uuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="nanoid"){if(!oae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"nanoid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid"){if(!eae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"cuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid2"){if(!tae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"cuid2",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ulid"){if(!rae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"ulid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),z(n,{validation:"url",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="regex"){if(o.regex.lastIndex=0,!o.regex.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"regex",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="trim")e.data=e.data.trim();else if(o.kind==="includes"){if(!e.data.includes(o.value,o.position))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()}else if(o.kind==="toLowerCase")e.data=e.data.toLowerCase();else if(o.kind==="toUpperCase")e.data=e.data.toUpperCase();else if(o.kind==="startsWith"){if(!e.data.startsWith(o.value))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="datetime"){if(!s1(o).test(e.data))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:"datetime",message:o.message}),r.dirty()}else if(o.kind==="date"){if(!gae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:"date",message:o.message}),r.dirty()}else if(o.kind==="time"){if(!hae(o).test(e.data))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:"time",message:o.message}),r.dirty()}else if(o.kind==="duration"){if(!sae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"duration",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ip"){if(!mae(e.data,o.version))n=this._getOrReturnCtx(e,n),z(n,{validation:"ip",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="jwt"){if(!Eae(e.data,o.alg))n=this._getOrReturnCtx(e,n),z(n,{validation:"jwt",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cidr"){if(!Cae(e.data,o.version))n=this._getOrReturnCtx(e,n),z(n,{validation:"cidr",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64"){if(!pae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"base64",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64url"){if(!fae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"base64url",code:R.invalid_string,message:o.message}),r.dirty()}else ye.assertNever(o);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement((n)=>e.test(n),{validation:t,code:R.invalid_string,...J.errToObj(r)})}_addCheck(e){return new vn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...J.errToObj(e)})}url(e){return this._addCheck({kind:"url",...J.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...J.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...J.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...J.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...J.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...J.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...J.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...J.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...J.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...J.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...J.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...J.errToObj(e)})}datetime(e){if(typeof e==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e});return this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...J.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){if(typeof e==="string")return this._addCheck({kind:"time",precision:null,message:e});return this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...J.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...J.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...J.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...J.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...J.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...J.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...J.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...J.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...J.errToObj(t)})}nonempty(e){return this.min(1,J.errToObj(e))}trim(){return new vn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e)=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find((e)=>e.kind==="date")}get isTime(){return!!this._def.checks.find((e)=>e.kind==="time")}get isDuration(){return!!this._def.checks.find((e)=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find((e)=>e.kind==="email")}get isURL(){return!!this._def.checks.find((e)=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find((e)=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find((e)=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((e)=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((e)=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((e)=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find((e)=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find((e)=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find((e)=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find((e)=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find((e)=>e.kind==="base64url")}get minLength(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxLength(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}vn.create=(e)=>new vn({checks:[],typeName:ne.ZodString,coerce:e?.coerce??!1,...pe(e)});function Iae(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}class hi extends Ee{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce)e.data=Number(e.data);if(this._getType(e)!==M.number){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_type,expected:M.number,received:o.parsedType}),ee}let r=void 0,n=new zt;for(let o of this._def.checks)if(o.kind==="int"){if(!ye.isInteger(e.data))r=this._getOrReturnCtx(e,r),z(r,{code:R.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()}else if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(Iae(e.data,o.value)!==0)r=this._getOrReturnCtx(e,r),z(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else if(o.kind==="finite"){if(!Number.isFinite(e.data))r=this._getOrReturnCtx(e,r),z(r,{code:R.not_finite,message:o.message}),n.dirty()}else ye.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,J.toString(t))}gt(e,t){return this.setLimit("min",e,!1,J.toString(t))}lte(e,t){return this.setLimit("max",e,!0,J.toString(t))}lt(e,t){return this.setLimit("max",e,!1,J.toString(t))}setLimit(e,t,r,n){return new hi({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:J.toString(n)}]})}_addCheck(e){return new hi({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:J.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:J.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:J.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}get isInt(){return!!this._def.checks.find((e)=>e.kind==="int"||e.kind==="multipleOf"&&ye.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;else if(r.kind==="min"){if(t===null||r.value>t)t=r.value}else if(r.kind==="max"){if(e===null||r.value<e)e=r.value}return Number.isFinite(t)&&Number.isFinite(e)}}hi.create=(e)=>new hi({checks:[],typeName:ne.ZodNumber,coerce:e?.coerce||!1,...pe(e)});class mi extends Ee{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==M.bigint)return this._getInvalidInput(e);let r=void 0,n=new zt;for(let o of this._def.checks)if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(e.data%o.value!==BigInt(0))r=this._getOrReturnCtx(e,r),z(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else ye.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:M.bigint,received:t.parsedType}),ee}gte(e,t){return this.setLimit("min",e,!0,J.toString(t))}gt(e,t){return this.setLimit("min",e,!1,J.toString(t))}lte(e,t){return this.setLimit("max",e,!0,J.toString(t))}lt(e,t){return this.setLimit("max",e,!1,J.toString(t))}setLimit(e,t,r,n){return new mi({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:J.toString(n)}]})}_addCheck(e){return new mi({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:J.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}mi.create=(e)=>new mi({checks:[],typeName:ne.ZodBigInt,coerce:e?.coerce??!1,...pe(e)});class Bc extends Ee{_parse(e){if(this._def.coerce)e.data=Boolean(e.data);if(this._getType(e)!==M.boolean){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.boolean,received:r.parsedType}),ee}return Xt(e.data)}}Bc.create=(e)=>new Bc({typeName:ne.ZodBoolean,coerce:e?.coerce||!1,...pe(e)});class ws extends Ee{_parse(e){if(this._def.coerce)e.data=new Date(e.data);if(this._getType(e)!==M.date){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_type,expected:M.date,received:o.parsedType}),ee}if(Number.isNaN(e.data.getTime())){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_date}),ee}let r=new zt,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.getTime()<o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()}else if(o.kind==="max"){if(e.data.getTime()>o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()}else ye.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ws({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:J.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:J.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e!=null?new Date(e):null}}ws.create=(e)=>new ws({checks:[],coerce:e?.coerce||!1,typeName:ne.ZodDate,...pe(e)});class cd extends Ee{_parse(e){if(this._getType(e)!==M.symbol){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.symbol,received:r.parsedType}),ee}return Xt(e.data)}}cd.create=(e)=>new cd({typeName:ne.ZodSymbol,...pe(e)});class _c extends Ee{_parse(e){if(this._getType(e)!==M.undefined){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.undefined,received:r.parsedType}),ee}return Xt(e.data)}}_c.create=(e)=>new _c({typeName:ne.ZodUndefined,...pe(e)});class vc extends Ee{_parse(e){if(this._getType(e)!==M.null){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.null,received:r.parsedType}),ee}return Xt(e.data)}}vc.create=(e)=>new vc({typeName:ne.ZodNull,...pe(e)});class Ss extends Ee{constructor(){super(...arguments);this._any=!0}_parse(e){return Xt(e.data)}}Ss.create=(e)=>new Ss({typeName:ne.ZodAny,...pe(e)});class gi extends Ee{constructor(){super(...arguments);this._unknown=!0}_parse(e){return Xt(e.data)}}gi.create=(e)=>new gi({typeName:ne.ZodUnknown,...pe(e)});class Jn extends Ee{_parse(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:M.never,received:t.parsedType}),ee}}Jn.create=(e)=>new Jn({typeName:ne.ZodNever,...pe(e)});class ud extends Ee{_parse(e){if(this._getType(e)!==M.undefined){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.void,received:r.parsedType}),ee}return Xt(e.data)}}ud.create=(e)=>new ud({typeName:ne.ZodVoid,...pe(e)});class Qn extends Ee{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==M.array)return z(t,{code:R.invalid_type,expected:M.array,received:t.parsedType}),ee;if(n.exactLength!==null){let i=t.data.length>n.exactLength.value,s=t.data.length<n.exactLength.value;if(i||s)z(t,{code:i?R.too_big:R.too_small,minimum:s?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty()}if(n.minLength!==null){if(t.data.length<n.minLength.value)z(t,{code:R.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()}if(n.maxLength!==null){if(t.data.length>n.maxLength.value)z(t,{code:R.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()}if(t.common.async)return Promise.all([...t.data].map((i,s)=>n.type._parseAsync(new Sn(t,i,t.path,s)))).then((i)=>zt.mergeArray(r,i));let o=[...t.data].map((i,s)=>n.type._parseSync(new Sn(t,i,t.path,s)));return zt.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new Qn({...this._def,minLength:{value:e,message:J.toString(t)}})}max(e,t){return new Qn({...this._def,maxLength:{value:e,message:J.toString(t)}})}length(e,t){return new Qn({...this._def,exactLength:{value:e,message:J.toString(t)}})}nonempty(e){return this.min(1,e)}}Qn.create=(e,t)=>new Qn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...pe(t)});function xc(e){if(e instanceof ut){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=wn.create(xc(n))}return new ut({...e._def,shape:()=>t})}else if(e instanceof Qn)return new Qn({...e._def,type:xc(e.element)});else if(e instanceof wn)return wn.create(xc(e.unwrap()));else if(e instanceof Ro)return Ro.create(xc(e.unwrap()));else if(e instanceof Wn)return Wn.create(e.items.map((t)=>xc(t)));else return e}class ut extends Ee{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=ye.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==M.object){let c=this._getOrReturnCtx(e);return z(c,{code:R.invalid_type,expected:M.object,received:c.parsedType}),ee}let{status:r,ctx:n}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Jn&&this._def.unknownKeys==="strip")){for(let c in n.data)if(!i.includes(c))s.push(c)}let a=[];for(let c of i){let u=o[c],A=n.data[c];a.push({key:{status:"valid",value:c},value:u._parse(new Sn(n,A,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Jn){let c=this._def.unknownKeys;if(c==="passthrough")for(let u of s)a.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict"){if(s.length>0)z(n,{code:R.unrecognized_keys,keys:s}),r.dirty()}else if(c==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let u of s){let A=n.data[u];a.push({key:{status:"valid",value:u},value:c._parse(new Sn(n,A,n.path,u)),alwaysSet:u in n.data})}}if(n.common.async)return Promise.resolve().then(async()=>{let c=[];for(let u of a){let A=await u.key,p=await u.value;c.push({key:A,value:p,alwaysSet:u.alwaysSet})}return c}).then((c)=>zt.mergeObjectSync(r,c));else return zt.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(e){return J.errToObj,new ut({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;if(t.code==="unrecognized_keys")return{message:J.errToObj(e).message??n};return{message:n}}}:{}})}strip(){return new ut({...this._def,unknownKeys:"strip"})}passthrough(){return new ut({...this._def,unknownKeys:"passthrough"})}extend(e){return new ut({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ut({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ne.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ut({...this._def,catchall:e})}pick(e){let t={};for(let r of ye.objectKeys(e))if(e[r]&&this.shape[r])t[r]=this.shape[r];return new ut({...this._def,shape:()=>t})}omit(e){let t={};for(let r of ye.objectKeys(this.shape))if(!e[r])t[r]=this.shape[r];return new ut({...this._def,shape:()=>t})}deepPartial(){return xc(this)}partial(e){let t={};for(let r of ye.objectKeys(this.shape)){let n=this.shape[r];if(e&&!e[r])t[r]=n;else t[r]=n.optional()}return new ut({...this._def,shape:()=>t})}required(e){let t={};for(let r of ye.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let o=this.shape[r];while(o instanceof wn)o=o._def.innerType;t[r]=o}return new ut({...this._def,shape:()=>t})}keyof(){return a1(ye.objectKeys(this.shape))}}ut.create=(e,t)=>new ut({shape:()=>e,unknownKeys:"strip",catchall:Jn.create(),typeName:ne.ZodObject,...pe(t)});ut.strictCreate=(e,t)=>new ut({shape:()=>e,unknownKeys:"strict",catchall:Jn.create(),typeName:ne.ZodObject,...pe(t)});ut.lazycreate=(e,t)=>new ut({shape:e,unknownKeys:"strip",catchall:Jn.create(),typeName:ne.ZodObject,...pe(t)});class Qc extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return t.common.issues.push(...s.ctx.common.issues),s.result;let i=o.map((s)=>new Cr(s.ctx.common.issues));return z(t,{code:R.invalid_union,unionErrors:i}),ee}if(t.common.async)return Promise.all(r.map(async(o)=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(n);else{let o=void 0,i=[];for(let a of r){let c={...t,common:{...t.common,issues:[]},parent:null},u=a._parseSync({data:t.data,path:t.path,parent:c});if(u.status==="valid")return u;else if(u.status==="dirty"&&!o)o={result:u,ctx:c};if(c.common.issues.length)i.push(c.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map((a)=>new Cr(a));return z(t,{code:R.invalid_union,unionErrors:s}),ee}}get options(){return this._def.options}}Qc.create=(e,t)=>new Qc({options:e,typeName:ne.ZodUnion,...pe(t)});var Do=(e)=>{if(e instanceof Sc)return Do(e.schema);else if(e instanceof kn)return Do(e.innerType());else if(e instanceof kc)return[e.value];else if(e instanceof Ei)return e.options;else if(e instanceof Dc)return ye.objectValues(e.enum);else if(e instanceof Rc)return Do(e._def.innerType);else if(e instanceof _c)return[void 0];else if(e instanceof vc)return[null];else if(e instanceof wn)return[void 0,...Do(e.unwrap())];else if(e instanceof Ro)return[null,...Do(e.unwrap())];else if(e instanceof Mh)return Do(e.unwrap());else if(e instanceof Nc)return Do(e.unwrap());else if(e instanceof Tc)return Do(e._def.innerType);else return[]};class Fh extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.object)return z(t,{code:R.invalid_type,expected:M.object,received:t.parsedType}),ee;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);if(!o)return z(t,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ee;if(t.common.async)return o._parseAsync({data:t.data,path:t.path,parent:t});else return o._parseSync({data:t.data,path:t.path,parent:t})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let o of t){let i=Do(o.shape[e]);if(!i.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of i){if(n.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);n.set(s,o)}}return new Fh({typeName:ne.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...pe(r)})}}function vQ(e,t){let r=Vn(e),n=Vn(t);if(e===t)return{valid:!0,data:e};else if(r===M.object&&n===M.object){let o=ye.objectKeys(t),i=ye.objectKeys(e).filter((a)=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let c=vQ(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===M.array&&n===M.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],c=vQ(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else if(r===M.date&&n===M.date&&+e===+t)return{valid:!0,data:e};else return{valid:!1}}class wc extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(o,i)=>{if(Uh(o)||Uh(i))return ee;let s=vQ(o.value,i.value);if(!s.valid)return z(r,{code:R.invalid_intersection_types}),ee;if(Oh(o)||Oh(i))t.dirty();return{status:t.value,value:s.data}};if(r.common.async)return Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>n(o,i));else return n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}wc.create=(e,t,r)=>new wc({left:e,right:t,typeName:ne.ZodIntersection,...pe(r)});class Wn extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.array)return z(r,{code:R.invalid_type,expected:M.array,received:r.parsedType}),ee;if(r.data.length<this._def.items.length)return z(r,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;if(!this._def.rest&&r.data.length>this._def.items.length)z(r,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty();let o=[...r.data].map((i,s)=>{let a=this._def.items[s]||this._def.rest;if(!a)return null;return a._parse(new Sn(r,i,r.path,s))}).filter((i)=>!!i);if(r.common.async)return Promise.all(o).then((i)=>zt.mergeArray(t,i));else return zt.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new Wn({...this._def,rest:e})}}Wn.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wn({items:e,typeName:ne.ZodTuple,rest:null,...pe(t)})};class ld extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.object)return z(r,{code:R.invalid_type,expected:M.object,received:r.parsedType}),ee;let n=[],o=this._def.keyType,i=this._def.valueType;for(let s in r.data)n.push({key:o._parse(new Sn(r,s,r.path,s)),value:i._parse(new Sn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});if(r.common.async)return zt.mergeObjectAsync(t,n);else return zt.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){if(t instanceof Ee)return new ld({keyType:e,valueType:t,typeName:ne.ZodRecord,...pe(r)});return new ld({keyType:vn.create(),valueType:e,typeName:ne.ZodRecord,...pe(t)})}}class Ad extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.map)return z(r,{code:R.invalid_type,expected:M.map,received:r.parsedType}),ee;let n=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([s,a],c)=>({key:n._parse(new Sn(r,s,r.path,[c,"key"])),value:o._parse(new Sn(r,a,r.path,[c,"value"]))}));if(r.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let a of i){let c=await a.key,u=await a.value;if(c.status==="aborted"||u.status==="aborted")return ee;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}})}else{let s=new Map;for(let a of i){let{key:c,value:u}=a;if(c.status==="aborted"||u.status==="aborted")return ee;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}}}}Ad.create=(e,t,r)=>new Ad({valueType:t,keyType:e,typeName:ne.ZodMap,...pe(r)});class ks extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.set)return z(r,{code:R.invalid_type,expected:M.set,received:r.parsedType}),ee;let n=this._def;if(n.minSize!==null){if(r.data.size<n.minSize.value)z(r,{code:R.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()}if(n.maxSize!==null){if(r.data.size>n.maxSize.value)z(r,{code:R.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty()}let o=this._def.valueType;function i(a){let c=new Set;for(let u of a){if(u.status==="aborted")return ee;if(u.status==="dirty")t.dirty();c.add(u.value)}return{status:t.value,value:c}}let s=[...r.data.values()].map((a,c)=>o._parse(new Sn(r,a,r.path,c)));if(r.common.async)return Promise.all(s).then((a)=>i(a));else return i(s)}min(e,t){return new ks({...this._def,minSize:{value:e,message:J.toString(t)}})}max(e,t){return new ks({...this._def,maxSize:{value:e,message:J.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ks.create=(e,t)=>new ks({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...pe(t)});class bc extends Ee{constructor(){super(...arguments);this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.function)return z(t,{code:R.invalid_type,expected:M.function,received:t.parsedType}),ee;function r(s,a){return ad({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ic(),ko].filter((c)=>!!c),issueData:{code:R.invalid_arguments,argumentsError:a}})}function n(s,a){return ad({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ic(),ko].filter((c)=>!!c),issueData:{code:R.invalid_return_type,returnTypeError:a}})}let o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Ds){let s=this;return Xt(async function(...a){let c=new Cr([]),u=await s._def.args.parseAsync(a,o).catch((d)=>{throw c.addIssue(r(a,d)),c}),A=await Reflect.apply(i,this,u);return await s._def.returns._def.type.parseAsync(A,o).catch((d)=>{throw c.addIssue(n(A,d)),c})})}else{let s=this;return Xt(function(...a){let c=s._def.args.safeParse(a,o);if(!c.success)throw new Cr([r(a,c.error)]);let u=Reflect.apply(i,this,c.data),A=s._def.returns.safeParse(u,o);if(!A.success)throw new Cr([n(u,A.error)]);return A.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new bc({...this._def,args:Wn.create(e).rest(gi.create())})}returns(e){return new bc({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new bc({args:e?e:Wn.create([]).rest(gi.create()),returns:t||gi.create(),typeName:ne.ZodFunction,...pe(r)})}}class Sc extends Ee{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Sc.create=(e,t)=>new Sc({getter:e,typeName:ne.ZodLazy,...pe(t)});class kc extends Ee{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return z(t,{received:t.data,code:R.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:e.data}}get value(){return this._def.value}}kc.create=(e,t)=>new kc({value:e,typeName:ne.ZodLiteral,...pe(t)});function a1(e,t){return new Ei({values:e,typeName:ne.ZodEnum,...pe(t)})}class Ei extends Ee{_parse(e){if(typeof e.data!=="string"){let t=this._getOrReturnCtx(e),r=this._def.values;return z(t,{expected:ye.joinValues(r),received:t.parsedType,code:R.invalid_type}),ee}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return z(t,{received:t.data,code:R.invalid_enum_value,options:r}),ee}return Xt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ei.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ei.create(this.options.filter((r)=>!e.includes(r)),{...this._def,...t})}}Ei.create=a1;class Dc extends Ee{_parse(e){let t=ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==M.string&&r.parsedType!==M.number){let n=ye.objectValues(t);return z(r,{expected:ye.joinValues(n),received:r.parsedType,code:R.invalid_type}),ee}if(!this._cache)this._cache=new Set(ye.getValidEnumValues(this._def.values));if(!this._cache.has(e.data)){let n=ye.objectValues(t);return z(r,{received:r.data,code:R.invalid_enum_value,options:n}),ee}return Xt(e.data)}get enum(){return this._def.values}}Dc.create=(e,t)=>new Dc({values:e,typeName:ne.ZodNativeEnum,...pe(t)});class Ds extends Ee{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.promise&&t.common.async===!1)return z(t,{code:R.invalid_type,expected:M.promise,received:t.parsedType}),ee;let r=t.parsedType===M.promise?t.data:Promise.resolve(t.data);return Xt(r.then((n)=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Ds.create=(e,t)=>new Ds({type:e,typeName:ne.ZodPromise,...pe(t)});class kn extends Ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:(i)=>{if(z(r,i),i.fatal)t.abort();else t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let i=n.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async(s)=>{if(t.value==="aborted")return ee;let a=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});if(a.status==="aborted")return ee;if(a.status==="dirty")return Qs(a.value);if(t.value==="dirty")return Qs(a.value);return a});else{if(t.value==="aborted")return ee;let s=this._def.schema._parseSync({data:i,path:r.path,parent:r});if(s.status==="aborted")return ee;if(s.status==="dirty")return Qs(s.value);if(t.value==="dirty")return Qs(s.value);return s}}if(n.type==="refinement"){let i=(s)=>{let a=n.refinement(s,o);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(s.status==="aborted")return ee;if(s.status==="dirty")t.dirty();return i(s.value),{status:t.value,value:s.value}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((s)=>{if(s.status==="aborted")return ee;if(s.status==="dirty")t.dirty();return i(s.value).then(()=>({status:t.value,value:s.value}))})}if(n.type==="transform")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fi(i))return ee;let s=n.transform(i.value,o);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((i)=>{if(!fi(i))return ee;return Promise.resolve(n.transform(i.value,o)).then((s)=>({status:t.value,value:s}))});ye.assertNever(n)}}kn.create=(e,t,r)=>new kn({schema:e,typeName:ne.ZodEffects,effect:t,...pe(r)});kn.createWithPreprocess=(e,t,r)=>new kn({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...pe(r)});class wn extends Ee{_parse(e){if(this._getType(e)===M.undefined)return Xt(void 0);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}wn.create=(e,t)=>new wn({innerType:e,typeName:ne.ZodOptional,...pe(t)});class Ro extends Ee{_parse(e){if(this._getType(e)===M.null)return Xt(null);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ro.create=(e,t)=>new Ro({innerType:e,typeName:ne.ZodNullable,...pe(t)});class Rc extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;if(t.parsedType===M.undefined)r=this._def.defaultValue();return this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Rc.create=(e,t)=>new Rc({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default==="function"?t.default:()=>t.default,...pe(t)});class Tc extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});if(yc(n))return n.then((o)=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Cr(r.common.issues)},input:r.data})}));else return{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Cr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Tc.create=(e,t)=>new Tc({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:()=>t.catch,...pe(t)});class dd extends Ee{_parse(e){if(this._getType(e)!==M.nan){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.nan,received:r.parsedType}),ee}return{status:"valid",value:e.data}}}dd.create=(e)=>new dd({typeName:ne.ZodNaN,...pe(e)});var yae=Symbol("zod_brand");class Mh extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class pd extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});if(o.status==="aborted")return ee;if(o.status==="dirty")return t.dirty(),Qs(o.value);else return this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();else{let n=this._def.in._parseSync({data:r.data,path:r.path,parent:r});if(n.status==="aborted")return ee;if(n.status==="dirty")return t.dirty(),{status:"dirty",value:n.value};else return this._def.out._parseSync({data:n.value,path:r.path,parent:r})}}static create(e,t){return new pd({in:e,out:t,typeName:ne.ZodPipeline})}}class Nc extends Ee{_parse(e){let t=this._def.innerType._parse(e),r=(n)=>{if(fi(n))n.value=Object.freeze(n.value);return n};return yc(t)?t.then((n)=>r(n)):r(t)}unwrap(){return this._def.innerType}}Nc.create=(e,t)=>new Nc({innerType:e,typeName:ne.ZodReadonly,...pe(t)});function n1(e,t){let r=typeof e==="function"?e(t):typeof e==="string"?{message:e}:e;return typeof r==="string"?{message:r}:r}function c1(e,t={},r){if(e)return Ss.create().superRefine((n,o)=>{let i=e(n);if(i instanceof Promise)return i.then((s)=>{if(!s){let a=n1(t,n),c=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=n1(t,n),a=s.fatal??r??!0;o.addIssue({code:"custom",...s,fatal:a})}return});return Ss.create()}var xae={object:ut.lazycreate},ne;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ne||(ne={}));var bae=(e,t={message:`Input not instance of ${e.name}`})=>c1((r)=>r instanceof e,t),u1=vn.create,l1=hi.create,Bae=dd.create,_ae=mi.create,A1=Bc.create,vae=ws.create,Qae=cd.create,wae=_c.create,Sae=vc.create,kae=Ss.create,Dae=gi.create,Rae=Jn.create,Tae=ud.create,Nae=Qn.create,Lae=ut.create,Uae=ut.strictCreate,Oae=Qc.create,Fae=Fh.create,Mae=wc.create,Pae=Wn.create,$ae=ld.create,Hae=Ad.create,Gae=ks.create,zae=bc.create,Yae=Sc.create,jae=kc.create,Vae=Ei.create,Jae=Dc.create,Wae=Ds.create,qae=kn.create,Zae=wn.create,Kae=Ro.create,Xae=kn.createWithPreprocess,ece=pd.create,tce=()=>u1().optional(),rce=()=>l1().optional(),nce=()=>A1().optional(),oce={string:(e)=>vn.create({...e,coerce:!0}),number:(e)=>hi.create({...e,coerce:!0}),boolean:(e)=>Bc.create({...e,coerce:!0}),bigint:(e)=>mi.create({...e,coerce:!0}),date:(e)=>ws.create({...e,coerce:!0})};var ice=ee;fr();function sce(e){let t=e?.trim();return t?t:void 0}function fd(e){return e===void 0?void 0:String(e)}var ace=Tr(()=>Hr.preprocess(fd,Hr.string().optional().transform(sce))),cce=Tr(()=>Hr.preprocess(fd,Hr.string().optional().transform((e)=>he(e)))),uce=Tr(()=>Hr.preprocess(fd,Hr.string().optional().transform((e)=>{if(he(e))return!0;if(va(e))return!1;return}))),lce=Tr(()=>p1());function d1(e){if(typeof e==="boolean")return e?"1":"0";return String(e)}var l={str:()=>ace(),bool:()=>cce(),triBool:()=>uce(),int:(e)=>e?p1(e):lce(),enum:(e)=>Hr.preprocess(fd,Hr.string().optional().transform((t)=>t!==void 0&&e.includes(t.trim())?t.trim():void 0))};function p1(e){return Hr.preprocess(fd,Hr.string().optional().transform((t)=>{if(t===void 0)return;let r=parseInt(t.trim(),10);if(Number.isNaN(r))return;if(e?.min!==void 0&&r<e.min)return;if(e?.max!==void 0&&r>e.max)return;return r}))}var Ace=l.str(),dce=l.str(),pce=l.str(),fce=l.str(),gce=l.str(),hce=l.str(),mce=l.str(),Ece=l.str(),Cce=l.str(),Ice=l.str(),yce=l.str(),xce=l.str(),bce=l.str(),Bce=l.str(),_ce=l.str(),vce=l.str(),Qce=l.str(),wce=l.str(),Sce=l.str(),kce=l.str(),Dce=l.str(),Rce=l.str(),Tce=l.bool(),Nce=l.str(),Lce=l.str(),Uce=l.str(),Oce=l.str(),Fce=l.bool(),Mce=l.bool(),Pce=l.str(),$ce=l.str(),Hce=l.str(),Gce=l.int({min:0}),zce=l.int({min:0}),Yce=l.int(),jce=l.bool(),Vce=l.int(),Jce=l.bool(),Wce=l.bool(),qce=l.bool(),Zce=l.bool(),Kce=l.bool(),Xce=l.str(),eue=l.str(),tue=l.str(),rue=l.str(),nue=l.str(),oue=l.str(),iue=l.str(),sue=l.str(),aue=l.str();var wQ={};ht(wQ,{OTEL_TRACES_EXPORT_INTERVAL:()=>Kue,OTEL_TRACES_EXPORTER:()=>Mue,OTEL_RESOURCE_ATTRIBUTES:()=>Xue,OTEL_METRIC_EXPORT_INTERVAL:()=>que,OTEL_METRICS_EXPORTER:()=>Oue,OTEL_LOG_USER_PROMPTS:()=>ele,OTEL_LOG_TOOL_DETAILS:()=>nle,OTEL_LOG_TOOL_CONTENT:()=>rle,OTEL_LOG_RAW_API_BODIES:()=>ole,OTEL_LOG_ASSISTANT_RESPONSES:()=>tle,OTEL_LOGS_EXPORT_INTERVAL:()=>Zue,OTEL_LOGS_EXPORTER:()=>Fue,OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:()=>Wue,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:()=>Jue,OTEL_EXPORTER_OTLP_PROTOCOL:()=>Hue,OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:()=>Vue,OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:()=>jue,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:()=>Yue,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:()=>zue,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:()=>Gue,OTEL_EXPORTER_OTLP_HEADERS:()=>$ue,OTEL_EXPORTER_OTLP_ENDPOINT:()=>Pue,DEBUG_SDK:()=>fue,DEBUG_CLAUDE_AGENT_SDK:()=>pue,CLAUDE_PTY_RECORD:()=>Bue,CLAUDE_DEBUG:()=>cue,CLAUDE_CODE_TERMINAL_RECORDING:()=>_ue,CLAUDE_CODE_TEE_SDK_STDOUT:()=>vue,CLAUDE_CODE_SESSION_LOG:()=>xue,CLAUDE_CODE_PROFILE_STARTUP:()=>gue,CLAUDE_CODE_PROFILE_QUERY:()=>hue,CLAUDE_CODE_PERFETTO_WRITE_INTERVAL_S:()=>Eue,CLAUDE_CODE_PERFETTO_TRACE:()=>mue,CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS:()=>Due,CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS:()=>Rue,CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS:()=>kue,CLAUDE_CODE_OTEL_DIAG_STDERR:()=>Uue,CLAUDE_CODE_JSONL_TRANSCRIPT:()=>bue,CLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERY:()=>Iue,CLAUDE_CODE_FRAME_TIMING_LOG:()=>Cue,CLAUDE_CODE_ENHANCED_TELEMETRY_BETA:()=>Sue,CLAUDE_CODE_ENABLE_TELEMETRY:()=>wue,CLAUDE_CODE_DIAGNOSTICS_FILE:()=>due,CLAUDE_CODE_DEBUG_REPAINTS:()=>Aue,CLAUDE_CODE_DEBUG_LOG_LEVEL:()=>uue,CLAUDE_CODE_DEBUG_LOGS_DIR:()=>lue,CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MS:()=>Nue,CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS:()=>Tue,CLAUDE_CODE_COMMIT_LOG:()=>yue,CLAUDE_CODE_BYOC_ENABLE_DATADOG:()=>Lue,CLAUDE_CODE_BENCH_LIVE_COUNTS:()=>Que,BETA_TRACING_ENDPOINT:()=>ple,ANT_OTEL_TRACES_EXPORTER:()=>lle,ANT_OTEL_RESOURCE_ATTRIBUTES:()=>Ale,ANT_OTEL_METRICS_EXPORTER:()=>ule,ANT_OTEL_LOGS_EXPORTER:()=>cle,ANT_OTEL_EXPORTER_OTLP_PROTOCOL:()=>ale,ANT_OTEL_EXPORTER_OTLP_HEADERS:()=>sle,ANT_OTEL_EXPORTER_OTLP_ENDPOINT:()=>ile,ANT_CLAUDE_CODE_METRICS_ENDPOINT:()=>dle});var cue=l.bool(),uue=l.str(),lue=l.str(),Aue=l.bool(),due=l.str(),pue=l.bool(),fue=l.bool(),gue=l.bool(),hue=l.bool(),mue=l.str(),Eue=l.int(),Cue=l.str(),Iue=l.int(),yue=l.str(),xue=l.str(),bue=l.str(),Bue=l.str(),_ue=l.str(),vue=l.bool(),Que=l.bool(),wue=l.bool(),Sue=l.bool(),kue=l.int(),Due=l.int(),Rue=l.int(),Tue=l.int(),Nue=l.int(),Lue=l.bool(),Uue=l.bool(),Oue=l.str(),Fue=l.str(),Mue=l.str(),Pue=l.str(),$ue=l.str(),Hue=l.str(),Gue=l.str(),zue=l.str(),Yue=l.str(),jue=l.str(),Vue=l.str(),Jue=l.str(),Wue=l.str(),que=l.int(),Zue=l.int(),Kue=l.int(),Xue=l.str(),ele=l.bool(),tle=l.triBool(),rle=l.bool(),nle=l.bool(),ole=l.bool(),ile=l.str(),sle=l.str(),ale=l.str(),cle=l.str(),ule=l.str(),lle=l.str(),Ale=l.str(),dle=l.str(),ple=l.str();sr();import{constants as _le}from"fs";import{access as vle,readdir as Qle,readFile as $ct,readlink as wle}from"fs/promises";import{homedir as Sle}from"os";import{delimiter as kle,join as hd}from"path";fr();function fle(){return"prod"}function f1(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(fle()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}var gle="user:inference",g1="user:profile",hle="org:create_api_key";var mle=[hle,g1],Ele=[g1,gle,"user:sessions:claude_code","user:mcp_servers","user:file_upload",...[]],dct=Cc([...mle,...Ele]),Cle=["user:design:read","user:design:write"],pct=[...Cle,"user:projects:read","user:projects:write"];function h1(){return process.versions.bun!==void 0}fr();Zt();sr();nt();Zt();XA();import{readdir as Ict,readFile as Ile}from"fs/promises";import{release as m1}from"os";sr();Zt();var SQ=X(()=>{try{return De().readFileSync("/proc/version",{encoding:"utf8"}).toLowerCase()}catch{return}});var E1;var gd=X(()=>{try{if(process.platform==="darwin")return"macos";if(process.platform==="win32")return"windows";if(process.platform==="linux"){if(process.env.WSL_DISTRO_NAME||process.env.WSL_INTEROP)return"wsl";let e=E1??SQ();if(e!==void 0&&(e.includes("microsoft")||e.includes("wsl")))return"wsl";return"linux"}return"unknown"}catch(e){return li(e),"unknown"}});var Qct=X(()=>{if(process.platform!=="linux")return;let e=E1??SQ();if(e===void 0)return;let t=e.match(/wsl(\d+)/);if(t&&t[1])return t[1];if(e.includes("microsoft"))return"1";return}),wct=X(async()=>{if(process.platform!=="linux")return;let e={linuxKernel:m1()};try{let t=await Ile("/etc/os-release","utf8");for(let r of t.split(`
157
+ ${o}`;break;case"retry":if(g4(o))t[n]=o;break;case"id":if(h4(o))t[n]=o;break;case"event":if(o.length>0)t[n]=o;break}}processEvent(e){if(e.retry&&g4(e.retry))this.state.reconnectionTime=parseInt(e.retry,10);if(e.id&&h4(e.id))this.state.lastEventId=e.id;if(e.data!==void 0)this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}E4.exports={EventSourceStream:m4}});var Q4=y((IAt,v4)=>{var{pipeline:STe}=v("node:stream"),{fetching:kTe}=rp(),{makeRequest:DTe}=Iu(),{webidl:Yo}=Yt(),{EventSourceStream:RTe}=C4(),{parseMIMEType:TTe}=Ir(),{createFastMessageEvent:NTe}=vu(),{isNetworkError:I4}=ep(),{delay:LTe}=ik(),{kEnumerableProperty:ta}=Ce(),{environmentSettingsObject:y4}=Gr(),x4=!1,b4=3000,hp=0,B4=1,mp=2,UTe="anonymous",OTe="use-credentials";class Du extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#n=hp;#o=null;#a=null;#i;#l;constructor(e,t={}){super();Yo.util.markAsUncloneable(this);let r="EventSource constructor";if(Yo.argumentLengthCheck(arguments,1,r),!x4)x4=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"});e=Yo.converters.USVString(e,r,"url"),t=Yo.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#l={lastEventId:"",reconnectionTime:b4};let n=y4,o;try{o=new URL(e,n.settingsObject.baseUrl),this.#l.origin=o.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=o.href;let i=UTe;if(t.withCredentials)i=OTe,this.#r=!0;let s={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};s.client=y4.settingsObject,s.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],s.cache="no-store",s.initiator="other",s.urlList=[new URL(this.#t)],this.#o=DTe(s),this.#A()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#r}#A(){if(this.#n===mp)return;this.#n=hp;let e={request:this.#o,dispatcher:this.#i},t=(r)=>{if(I4(r))this.dispatchEvent(new Event("error")),this.close();this.#c()};e.processResponseEndOfBody=t,e.processResponse=(r)=>{if(I4(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=r.headersList.get("content-type",!0),o=n!==null?TTe(n):"failure",i=o!=="failure"&&o.essence==="text/event-stream";if(r.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=B4,this.dispatchEvent(new Event("open")),this.#l.origin=r.urlList[r.urlList.length-1].origin;let s=new RTe({eventSourceSettings:this.#l,push:(a)=>{this.dispatchEvent(NTe(a.type,a.options))}});STe(r.body.stream,s,(a)=>{if(a?.aborted===!1)this.close(),this.dispatchEvent(new Event("error"))})},this.#a=kTe(e)}async#c(){if(this.#n===mp)return;if(this.#n=hp,this.dispatchEvent(new Event("error")),await LTe(this.#l.reconnectionTime),this.#n!==hp)return;if(this.#l.lastEventId.length)this.#o.headersList.set("last-event-id",this.#l.lastEventId,!0);this.#A()}close(){if(Yo.brandCheck(this,Du),this.#n===mp)return;this.#n=mp,this.#a.abort(),this.#o=null}get onopen(){return this.#e.open}set onopen(e){if(this.#e.open)this.removeEventListener("open",this.#e.open);if(typeof e==="function")this.#e.open=e,this.addEventListener("open",e);else this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){if(this.#e.message)this.removeEventListener("message",this.#e.message);if(typeof e==="function")this.#e.message=e,this.addEventListener("message",e);else this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){if(this.#e.error)this.removeEventListener("error",this.#e.error);if(typeof e==="function")this.#e.error=e,this.addEventListener("error",e);else this.#e.error=null}}var _4={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:hp,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:B4,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:mp,writable:!1}};Object.defineProperties(Du,_4);Object.defineProperties(Du.prototype,_4);Object.defineProperties(Du.prototype,{close:ta,onerror:ta,onmessage:ta,onopen:ta,readyState:ta,url:ta,withCredentials:ta});Yo.converters.EventSourceInitDict=Yo.dictionaryConverter([{key:"withCredentials",converter:Yo.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Yo.converters.any}]);v4.exports={EventSource:Du,defaultReconnectionTime:b4}});var D4=y((hNe,oe)=>{var FTe=su(),w4=Id(),MTe=au(),PTe=XY(),$Te=cu(),HTe=Xw(),GTe=Qj(),zTe=Nj(),S4=we(),IE=Ce(),{InvalidArgumentError:CE}=S4,Ru=QV(),YTe=xd(),jTe=BS(),VTe=pJ(),JTe=vS(),WTe=pS(),qTe=km(),{getGlobalDispatcher:k4,setGlobalDispatcher:ZTe}=Mm(),KTe=Pm(),XTe=Im(),eNe=ym();Object.assign(w4.prototype,Ru);hNe.Dispatcher=w4;hNe.Client=FTe;hNe.Pool=MTe;hNe.BalancedPool=PTe;hNe.Agent=$Te;hNe.ProxyAgent=HTe;hNe.EnvHttpProxyAgent=GTe;hNe.RetryAgent=zTe;hNe.RetryHandler=qTe;hNe.DecoratorHandler=KTe;hNe.RedirectHandler=XTe;hNe.createRedirectInterceptor=eNe;hNe.interceptors={redirect:IJ(),retry:xJ(),dump:_J(),dns:kJ()};hNe.buildConnector=YTe;hNe.errors=S4;hNe.util={parseHeaders:IE.parseHeaders,headerNameToString:IE.headerNameToString};function Ep(e){return(t,r,n)=>{if(typeof r==="function")n=r,r=null;if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL))throw new CE("invalid url");if(r!=null&&typeof r!=="object")throw new CE("invalid opts");if(r&&r.path!=null){if(typeof r.path!=="string")throw new CE("invalid opts.path");let s=r.path;if(!r.path.startsWith("/"))s=`/${s}`;t=new URL(IE.parseOrigin(t).origin+s)}else{if(!r)r=typeof t==="object"?t:{};t=IE.parseURL(t)}let{agent:o,dispatcher:i=k4()}=r;if(o)throw new CE("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}hNe.setGlobalDispatcher=ZTe;hNe.getGlobalDispatcher=k4;var tNe=rp().fetch;hNe.fetch=async function(t,r=void 0){try{return await tNe(t,r)}catch(n){if(n&&typeof n==="object")Error.captureStackTrace(n);throw n}};hNe.Headers=Ws().Headers;hNe.Response=ep().Response;hNe.Request=Iu().Request;hNe.FormData=wd().FormData;hNe.File=globalThis.File??v("node:buffer").File;hNe.FileReader=JW().FileReader;var{setGlobalOrigin:rNe,getGlobalOrigin:nNe}=Aw();hNe.setGlobalOrigin=rNe;hNe.getGlobalOrigin=nNe;var{CacheStorage:oNe}=nq(),{kConstruct:iNe}=sE();hNe.caches=new oNe(iNe);var{deleteCookie:sNe,getCookies:aNe,getSetCookies:cNe,setCookie:uNe}=gq();hNe.deleteCookie=sNe;hNe.getCookies=aNe;hNe.getSetCookies=cNe;hNe.setCookie=uNe;var{parseMIMEType:lNe,serializeAMimeType:ANe}=Ir();hNe.parseMIMEType=lNe;hNe.serializeAMimeType=ANe;var{CloseEvent:dNe,ErrorEvent:pNe,MessageEvent:fNe}=vu();hNe.WebSocket=p4().WebSocket;hNe.CloseEvent=dNe;hNe.ErrorEvent=pNe;hNe.MessageEvent=fNe;hNe.request=Ep(Ru.request);hNe.stream=Ep(Ru.stream);hNe.pipeline=Ep(Ru.pipeline);hNe.connect=Ep(Ru.connect);hNe.upgrade=Ep(Ru.upgrade);hNe.MockClient=jTe;hNe.MockPool=JTe;hNe.MockAgent=VTe;hNe.mockErrors=WTe;var{EventSource:gNe}=Q4();hNe.EventSource=gNe});Ia();ho();nt();Rt();qt();function ci(){return"claude-code/0.3.204"}function sc(){switch(process.env.CLAUDE_CODE_ENTRYPOINT){case"claude-vscode":return"claude_code_vscode";case"remote":case"remote_baku":case"remote_cowork":case"remote_desktop":case"remote_mobile":return"claude_code_remote";case"claude-in-teams":return"claude_code_remote";case"sdk-cli":case"sdk-ts":case"sdk-py":return"claude_code_sdk";case"mcp":return"claude_code_mcp";case"claude-code-github-action":return"claude_code_github_action";case"local-agent":return"claude_code_local_agent";case"claude_in_slack":return"claude_in_slack";case"claude-in-slack":return"claude-in-slack";case"cli":default:return"claude_code_cli"}}Is();nt();Rt();qt();var Ore=["session_ingress_token","environment_secret","access_token","secret","token"],prt=new RegExp(`"(${Ore.join("|")})"\\s*:\\s*"([^"]*)"`,"g");function dv(e){if(!e||typeof e!=="object")return;if("message"in e&&typeof e.message==="string")return e.message;if("error"in e&&e.error!==null&&typeof e.error==="object"&&"message"in e.error&&typeof e.error.message==="string")return e.error.message;return}var mse="2023-06-01";function D2(e){return{Authorization:`Bearer ${e}`,"Content-Type":"application/json","anthropic-version":mse,"User-Agent":ci()}}async function Ese(e,t,r,n,o,i,s,a){let c=`${e}/v1/code/sessions`,u={cwd:s??xt(),...a&&{model:a}};if(i){let{buildGitSessionContext:d}=await Promise.resolve().then(() => (k2(),S2)),{sources:f,outcomes:g}=await d(i.gitRepoUrl,i.branch,i.defaultBranch);if(f.length>0||g.length>0)u.sources=f,u.outcomes=g,u.reuse_outcome_branches=!0}let A;try{A=await Jt.post(c,{title:r,bridge:{},...o?.length&&{tags:o},config:u},{headers:D2(t),timeout:n,validateStatus:(d)=>d<500})}catch(d){return Q(`[code-session] Session create request failed: ${Be(d)}`),null}if(A.status!==200&&A.status!==201){let d=dv(A.data);return Q(`[code-session] Session create failed ${A.status}${d?`: ${d}`:""}`),null}let p=A.data;if(!p||typeof p!=="object"||!("session"in p)||!p.session||typeof p.session!=="object"||!("id"in p.session)||typeof p.session.id!=="string"||!p.session.id.startsWith("cse_"))return Q(`[code-session] No session.id (cse_*) in response: ${_t(p).slice(0,200)}`),null;return p.session.id}function Cse(e){return e!==null&&"terminal"in e}function Ise(e,t){if(e!==null&&typeof e==="object"&&"error"in e&&e.error!==null&&typeof e.error==="object"&&"resource"in e.error){let r=e.error.resource;if(r==="untrusted_device"||r==="session_stale_relogin")return r;return}if(t?.includes("trusted device"))return"untrusted_device";return}async function yse(e,t,r,n,o){let i=`${t}/v1/code/sessions/${e}/bridge`,s=D2(r);if(o)s["X-Trusted-Device-Token"]=o;let a;try{a=await Jt.post(i,{},{headers:s,timeout:n,validateStatus:(p)=>p<500})}catch(p){return Q(`[code-session] /bridge request failed: ${Be(p)}`),null}if(a.status!==200){let p=dv(a.data);if(Q(`[code-session] /bridge failed ${a.status}${p?`: ${p}`:""}`),a.status===403){let d=Ise(a.data,p);if(d)return{terminal:!0,reason:d}}return null}let c=a.data;if(c===null||typeof c!=="object"||!("worker_jwt"in c)||typeof c.worker_jwt!=="string"||!("expires_in"in c)||typeof c.expires_in!=="number"||!("api_base_url"in c)||typeof c.api_base_url!=="string"||!("worker_epoch"in c))return Q(`[code-session] /bridge response malformed (need worker_jwt, expires_in, api_base_url, worker_epoch): ${_t(c).slice(0,200)}`),null;let u=c.worker_epoch,A=typeof u==="string"?Number(u):u;if(typeof A!=="number"||!Number.isFinite(A)||!Number.isSafeInteger(A))return Q(`[code-session] /bridge worker_epoch invalid: ${_t(u)}`),null;return{worker_jwt:c.worker_jwt,api_base_url:c.api_base_url,expires_in:c.expires_in,worker_epoch:A}}nt();Rt();import{randomUUID as bse}from"crypto";bs();Is();var R2={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"};var xse=["acceptEdits","auto","bypassPermissions","default","dontAsk","plan"],Wst=[...xse,"bubble"];function T2(e){return e==="manual"?"default":e}function N2(e){if(e===null||typeof e!=="object")return e;let t=e;if("requestId"in t&&!("request_id"in t))t.request_id=t.requestId,delete t.requestId;if("response"in t&&t.response!==null&&typeof t.response==="object"){let r=t.response;if("requestId"in r&&!("request_id"in r))r.request_id=r.requestId,delete r.requestId}return e}nt();function L2(e){if(!Array.isArray(e))return[];return e.filter((t)=>typeof t==="string"&&t.length>0&&t.length<=64).slice(0,32)}Zv();Rt();Is();qt();function Bse(e){return e!==null&&typeof e==="object"&&"type"in e&&typeof e.type==="string"}function _se(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_response"&&"response"in e}function vse(e){return e!==null&&typeof e==="object"&&"type"in e&&e.type==="control_request"&&"request_id"in e&&"request"in e}function U2(e,t,r,n,o,i){try{let s=N2(ai(e));if(_se(s)){Q("[bridge:repl] Ingress message type=control_response"),o?.(s);return}if(vse(s)){Q(`[bridge:repl] Inbound control_request subtype=${s.request.subtype}`),i?.(s);return}if(!Bse(s))return;let a="uuid"in s&&typeof s.uuid==="string"?s.uuid:void 0;if(a&&t.has(a)){Q(`[bridge:repl] Ignoring echo: type=${s.type} uuid=${a}`);return}if(a&&r.has(a)){Q(`[bridge:repl] Ignoring re-delivered inbound: type=${s.type} uuid=${a}`);return}if(Q(`[bridge:repl] Ingress message type=${s.type}${a?` uuid=${a}`:""}`),s.type==="user"){if(a)r.add(a);bn("tengu_bridge_message_received",{is_repl:!0}),Mr("bridge_message_receive"),n?.(s)}else Q(`[bridge:repl] Ignoring non-user inbound message: type=${s.type}`)}catch(s){Q(`[bridge:repl] Failed to parse ingress message: ${Be(s)}`),zn("bridge_message_receive","bridge_message_receive_parse_failed")}}var Qse="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function O2(e,t){let{transport:r,sessionId:n,outboundOnly:o,getInitializeState:i,onInterrupt:s,onDialogKindsDeclared:a,onSetModel:c,onSetMaxThinkingTokens:u,onSetPermissionMode:A,onRenameSession:p,onSetColor:d,onFileSuggestions:f,onReadFile:g,onGetContextUsage:m,onGetUsage:h,onMcpAuthenticate:C,onMcpOauthCallbackUrl:w,onMcpReconnect:b,onMcpStatus:_}=t;if(!r){Q("[bridge:repl] Cannot respond to control_request: transport not configured");return}let L;if(o&&e.request.subtype!=="initialize"){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Qse}};let S={...L,session_id:n};r.write(S),Q(`[bridge:repl] Rejected ${e.request.subtype} (outbound-only) request_id=${e.request_id}`);return}switch(e.request.subtype){case"initialize":{try{let S=L2(e.request.supportedDialogKinds);if(S.length>0)a?.(S)}catch(S){Q(`[bridge:repl] dialog-kind capture failed; acking initialize anyway: ${Be(S)}`)}L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{commands:[],agents:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid,...i?.()}}};break}case"set_model":{let S=c?.(e.request.model);if(S&&!S.ok)L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};else L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break}case"set_max_thinking_tokens":u?.(e.request.max_thinking_tokens,e.request.thinking_display),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;case"set_permission_mode":{let S=A?.(T2(e.request.mode))??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"rename_session":{let S=p?.(e.request.title)??{ok:!1,error:"rename_session is not supported in this context (onRenameSession callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"set_color":{let S=d?.(e.request.color)??{ok:!1,error:"set_color is not supported in this context (onSetColor callback not registered)"};if(S.ok)L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};else L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:S.error}};break}case"file_suggestions":{if(!f){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"file_suggestions is not supported in this context (onFileSuggestions callback not registered)"}};break}f(e.request.query).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{suggestions:S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for file_suggestions request_id=${e.request_id} result=${S.response.subtype}`)});return}case"read_file":{if(!g){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"read_file is not supported in this context (onReadFile callback not registered)"}};break}g(e.request.path,e.request.max_bytes,e.request.encoding).then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:S}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for read_file request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_context_usage":{if(!m){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_context_usage is not supported in this context (onGetContextUsage callback not registered)"}};break}m().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for get_context_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"get_usage":{if(!h){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:"get_usage is not supported in this context (onGetUsage callback not registered)"}};break}h().then((S)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{...S}}})).catch((S)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(S)}})).then((S)=>{let de={...S,session_id:n};r.write(de),Q(`[bridge:repl] Sent control_response for get_usage request_id=${e.request_id} result=${S.response.subtype}`)});return}case"mcp_status":L={type:"control_response",response:{subtype:"success",request_id:e.request_id,response:{mcpServers:_?.()??[]}}};break;case"mcp_authenticate":case"mcp_oauth_callback_url":case"mcp_reconnect":{let S=e.request,{subtype:de,serverName:ge}=S,Mt=S.subtype==="mcp_authenticate"?C&&((rt)=>C(rt,S.redirectUri)):S.subtype==="mcp_oauth_callback_url"?w&&((rt)=>w(rt,S.callbackUrl)):b;if(!Mt){L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`${de} is not supported in this context (callback not registered)`}};break}Mt(ge).then((rt)=>({type:"control_response",response:{subtype:"success",request_id:e.request_id,response:rt??{}}})).catch((rt)=>({type:"control_response",response:{subtype:"error",request_id:e.request_id,error:Be(rt)}})).then((rt)=>{let ze={...rt,session_id:n};r.write(ze),Q(`[bridge:repl] Sent control_response for ${de} request_id=${e.request_id} result=${rt.response.subtype}`)});return}case"interrupt":s?.(),L={type:"control_response",response:{subtype:"success",request_id:e.request_id}};break;default:L={type:"control_response",response:{subtype:"error",request_id:e.request_id,error:`REPL bridge does not handle control_request subtype: ${e.request.subtype}`}}}let T={...L,session_id:n};r.write(T),Q(`[bridge:repl] Sent control_response for ${e.request.subtype} request_id=${e.request_id} result=${L.response.subtype}`)}function F2(e){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...R2},modelUsage:{},permission_denials:[],session_id:e,uuid:bse()}}class Th{capacity;ring;set=new Set;writeIdx=0;constructor(e){this.capacity=e,this.ring=Array(e)}add(e){if(this.set.has(e))return;let t=this.ring[this.writeIdx];if(t!==void 0)this.set.delete(t);this.ring[this.writeIdx]=e,this.set.add(e),this.writeIdx=(this.writeIdx+1)%this.capacity}has(e){return this.set.has(e)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}import{randomUUID as Y4}from"crypto";Is();nt();Ac();Rt();qt();function wse(e){let r=(e.startsWith("sk-ant-si-")?e.slice(10):e).split(".");if(r.length!==3||!r[1])return null;try{return ai(Buffer.from(r[1],"base64url").toString("utf8"))}catch{return null}}function M2(e){let t=wse(e);if(t!==null&&typeof t==="object"&&"exp"in t&&typeof t.exp==="number")return t.exp;return null}bs();Is();nt();Ac();Rt();sr();Cn();var ALe=Nu(e1(),1);import{isIP as R4}from"net";sr();bs();function Cc(e){return[...new Set(e)]}nt();var QQ={};ht(QQ,{USE_STAGING_OAUTH:()=>Mce,USE_LOCAL_OAUTH:()=>Fce,MCP_XAA_IDP_CLIENT_SECRET:()=>bce,MCP_CLIENT_SECRET:()=>xce,ENVIRONMENT_SERVICE_KEY:()=>yce,CLAUDE_TRUSTED_DEVICE_TOKEN:()=>Oce,CLAUDE_SESSION_INGRESS_TOKEN_FILE:()=>Qce,CLAUDE_LOCAL_OAUTH_CONSOLE_BASE:()=>Hce,CLAUDE_LOCAL_OAUTH_APPS_BASE:()=>$ce,CLAUDE_LOCAL_OAUTH_API_BASE:()=>Pce,CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR:()=>vce,CLAUDE_CODE_USER_EMAIL:()=>iue,CLAUDE_CODE_SUBSCRIPTION_TYPE:()=>sue,CLAUDE_CODE_SKIP_VERTEX_AUTH:()=>Wce,CLAUDE_CODE_SKIP_MANTLE_AUTH:()=>Kce,CLAUDE_CODE_SKIP_FOUNDRY_AUTH:()=>qce,CLAUDE_CODE_SKIP_BEDROCK_AUTH:()=>Jce,CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH:()=>Zce,CLAUDE_CODE_SESSION_ACCESS_TOKEN:()=>Uce,CLAUDE_CODE_SDK_HAS_OAUTH_REFRESH:()=>Tce,CLAUDE_CODE_RATE_LIMIT_TIER:()=>aue,CLAUDE_CODE_PROXY_AUTH_HELPER_TTL_MS:()=>Vce,CLAUDE_CODE_ORGANIZATION_UUID:()=>oue,CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR:()=>_ce,CLAUDE_CODE_OAUTH_TOKEN:()=>pce,CLAUDE_CODE_OAUTH_SCOPES:()=>Dce,CLAUDE_CODE_OAUTH_REFRESH_TOKEN:()=>wce,CLAUDE_CODE_OAUTH_CLIENT_ID:()=>Sce,CLAUDE_CODE_OAUTH_401_WAIT_MS:()=>Gce,CLAUDE_CODE_HOST_CREDS_FILE:()=>Lce,CLAUDE_CODE_HOST_AUTH_ENV_VAR:()=>Nce,CLAUDE_CODE_HFI_BEARER_TOKEN:()=>Ece,CLAUDE_CODE_ENABLE_PROXY_AUTH_HELPER:()=>jce,CLAUDE_CODE_DESIGN_OAUTH_CLIENT_ID:()=>kce,CLAUDE_CODE_CUSTOM_OAUTH_URL:()=>Rce,CLAUDE_CODE_AUTH_FAIL_EXIT_MS:()=>zce,CLAUDE_CODE_API_KEY_HELPER_TTL_MS:()=>Yce,CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR:()=>Bce,CLAUDE_CODE_ACCOUNT_UUID:()=>rue,CLAUDE_CODE_ACCOUNT_TAGGED_ID:()=>nue,AWS_BEARER_TOKEN_BEDROCK:()=>fce,API_TOKEN:()=>Ice,ANTHROPIC_PROFILE:()=>tue,ANTHROPIC_ORGANIZATION_ID:()=>eue,ANTHROPIC_FOUNDRY_AUTH_TOKEN:()=>mce,ANTHROPIC_FOUNDRY_API_KEY:()=>hce,ANTHROPIC_FEDERATION_RULE_ID:()=>Xce,ANTHROPIC_AWS_API_KEY:()=>gce,ANTHROPIC_AUTH_TOKEN:()=>dce,ANTHROPIC_API_KEY:()=>Ace,AGENT_PROXY_AUTH_TOKEN:()=>Cce});var Hr={};ht(Hr,{void:()=>Tae,util:()=>ye,unknown:()=>Dae,union:()=>Oae,undefined:()=>wae,tuple:()=>Pae,transformer:()=>qae,symbol:()=>Qae,string:()=>u1,strictObject:()=>Uae,setErrorMap:()=>Kse,set:()=>Gae,record:()=>$ae,quotelessJson:()=>qse,promise:()=>Wae,preprocess:()=>Xae,pipeline:()=>ece,ostring:()=>tce,optional:()=>Zae,onumber:()=>rce,oboolean:()=>nce,objectUtil:()=>BQ,object:()=>Lae,number:()=>l1,nullable:()=>Kae,null:()=>Sae,never:()=>Rae,nativeEnum:()=>Jae,nan:()=>Bae,map:()=>Hae,makeIssue:()=>ad,literal:()=>jae,lazy:()=>Yae,late:()=>xae,isValid:()=>fi,isDirty:()=>Oh,isAsync:()=>yc,isAborted:()=>Uh,intersection:()=>Mae,instanceof:()=>bae,getParsedType:()=>Vn,getErrorMap:()=>Ic,function:()=>zae,enum:()=>Vae,effect:()=>qae,discriminatedUnion:()=>Fae,defaultErrorMap:()=>ko,datetimeRegex:()=>s1,date:()=>vae,custom:()=>c1,coerce:()=>oce,boolean:()=>A1,bigint:()=>_ae,array:()=>Nae,any:()=>kae,addIssueToContext:()=>z,ZodVoid:()=>ud,ZodUnknown:()=>gi,ZodUnion:()=>Qc,ZodUndefined:()=>_c,ZodType:()=>Ee,ZodTuple:()=>Wn,ZodTransformer:()=>kn,ZodSymbol:()=>cd,ZodString:()=>vn,ZodSet:()=>ks,ZodSchema:()=>Ee,ZodRecord:()=>ld,ZodReadonly:()=>Nc,ZodPromise:()=>Ds,ZodPipeline:()=>pd,ZodParsedType:()=>M,ZodOptional:()=>wn,ZodObject:()=>ut,ZodNumber:()=>hi,ZodNullable:()=>Ro,ZodNull:()=>vc,ZodNever:()=>Jn,ZodNativeEnum:()=>Dc,ZodNaN:()=>dd,ZodMap:()=>Ad,ZodLiteral:()=>kc,ZodLazy:()=>Sc,ZodIssueCode:()=>R,ZodIntersection:()=>wc,ZodFunction:()=>bc,ZodFirstPartyTypeKind:()=>ne,ZodError:()=>Cr,ZodEnum:()=>Ei,ZodEffects:()=>kn,ZodDiscriminatedUnion:()=>Fh,ZodDefault:()=>Rc,ZodDate:()=>ws,ZodCatch:()=>Tc,ZodBranded:()=>Mh,ZodBoolean:()=>Bc,ZodBigInt:()=>mi,ZodArray:()=>Qn,ZodAny:()=>Ss,Schema:()=>Ee,ParseStatus:()=>zt,OK:()=>Xt,NEVER:()=>ice,INVALID:()=>ee,EMPTY_PATH:()=>Xse,DIRTY:()=>Qs,BRAND:()=>yae});var ye;(function(e){e.assertEqual=(o)=>{};function t(o){}e.assertIs=t;function r(o){throw Error()}e.assertNever=r,e.arrayToEnum=(o)=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=(o)=>{let i=e.objectKeys(o).filter((a)=>typeof o[o[a]]!=="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=(o)=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys==="function"?(o)=>Object.keys(o):(o)=>{let i=[];for(let s in o)if(Object.prototype.hasOwnProperty.call(o,s))i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s;return},e.isInteger=typeof Number.isInteger==="function"?(o)=>Number.isInteger(o):(o)=>typeof o==="number"&&Number.isFinite(o)&&Math.floor(o)===o;function n(o,i=" | "){return o.map((s)=>typeof s==="string"?`'${s}'`:s).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(o,i)=>{if(typeof i==="bigint")return i.toString();return i}})(ye||(ye={}));var BQ;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(BQ||(BQ={}));var M=ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vn=(e)=>{switch(typeof e){case"undefined":return M.undefined;case"string":return M.string;case"number":return Number.isNaN(e)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":if(Array.isArray(e))return M.array;if(e===null)return M.null;if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return M.promise;if(typeof Map<"u"&&e instanceof Map)return M.map;if(typeof Set<"u"&&e instanceof Set)return M.set;if(typeof Date<"u"&&e instanceof Date)return M.date;return M.object;default:return M.unknown}};var R=ye.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"]),qse=(e)=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Cr extends Error{get errors(){return this.issues}constructor(e){super();this.issues=[],this.addIssue=(r)=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let t=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,t);else this.__proto__=t;this.name="ZodError",this.issues=e}format(e){let t=e||function(o){return o.message},r={_errors:[]},n=(o)=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;while(a<i.path.length){let c=i.path[a];if(a!==i.path.length-1)s[c]=s[c]||{_errors:[]};else s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i));s=s[c],a++}}};return n(this),r}static assert(e){if(!(e instanceof Cr))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=(t)=>t.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];t[o]=t[o]||[],t[o].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Cr.create=(e)=>new Cr(e);var Zse=(e,t)=>{let r;switch(e.code){case R.invalid_type:if(e.received===M.undefined)r="Required";else r=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:r=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,", ")}`;break;case R.invalid_union:r="Invalid input";break;case R.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case R.invalid_enum_value:r=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:r="Invalid function arguments";break;case R.invalid_return_type:r="Invalid function return type";break;case R.invalid_date:r="Invalid date";break;case R.invalid_string:if(typeof e.validation==="object")if("includes"in e.validation){if(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==="number")r=`${r} at one or more positions greater than or equal to ${e.validation.position}`}else if("startsWith"in e.validation)r=`Invalid input: must start with "${e.validation.startsWith}"`;else if("endsWith"in e.validation)r=`Invalid input: must end with "${e.validation.endsWith}"`;else ye.assertNever(e.validation);else if(e.validation!=="regex")r=`Invalid ${e.validation}`;else r="Invalid";break;case R.too_small:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="bigint")r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`;else r="Invalid input";break;case R.too_big:if(e.type==="array")r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`;else if(e.type==="string")r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`;else if(e.type==="number")r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="bigint")r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`;else if(e.type==="date")r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`;else r="Invalid input";break;case R.custom:r="Invalid input";break;case R.invalid_intersection_types:r="Intersection results could not be merged";break;case R.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:r="Number must be finite";break;default:r=t.defaultError,ye.assertNever(e)}return{message:r}},ko=Zse;var t1=ko;function Kse(e){t1=e}function Ic(){return t1}var ad=(e)=>{let{data:t,path:r,errorMaps:n,issueData:o}=e,i=[...r,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",c=n.filter((u)=>!!u).slice().reverse();for(let u of c)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},Xse=[];function z(e,t){let r=Ic(),n=ad({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===ko?void 0:ko].filter((o)=>!!o)});e.common.issues.push(n)}class zt{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(e,t){let r=[];for(let n of t){if(n.status==="aborted")return ee;if(n.status==="dirty")e.dirty();r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let n of t){let o=await n.key,i=await n.value;r.push({key:o,value:i})}return zt.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:o,value:i}=n;if(o.status==="aborted")return ee;if(i.status==="aborted")return ee;if(o.status==="dirty")e.dirty();if(i.status==="dirty")e.dirty();if(o.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet))r[o.value]=i.value}return{status:e.value,value:r}}}var ee=Object.freeze({status:"aborted"}),Qs=(e)=>({status:"dirty",value:e}),Xt=(e)=>({status:"valid",value:e}),Uh=(e)=>e.status==="aborted",Oh=(e)=>e.status==="dirty",fi=(e)=>e.status==="valid",yc=(e)=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=(t)=>typeof t==="string"?{message:t}:t||{},e.toString=(t)=>typeof t==="string"?t:t?.message})(J||(J={}));class Sn{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var r1=(e,t)=>{if(fi(t))return{success:!0,data:t.value};else{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Cr(e.common.issues);return this._error=r,this._error}}}};function pe(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:o}=e;if(t&&(r||n))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(t)return{errorMap:t,description:o};return{errorMap:(s,a)=>{let{message:c}=e;if(s.code==="invalid_enum_value")return{message:c??a.defaultError};if(typeof a.data>"u")return{message:c??n??a.defaultError};if(s.code!=="invalid_type")return{message:a.defaultError};return{message:c??r??a.defaultError}},description:o}}class Ee{get description(){return this._def.description}_getType(e){return Vn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new zt,ctx:{common:e.parent.common,data:e.data,parsedType:Vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(yc(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vn(e)},n=this._parseSync({data:e,path:r.path,parent:r});return r1(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vn(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return fi(r)?{value:r.value}:{issues:t.common.issues}}catch(r){if(r?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then((r)=>fi(r)?{value:r.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vn(e)},n=this._parse({data:e,path:r.path,parent:r}),o=await(yc(n)?n:Promise.resolve(n));return r1(r,o)}refine(e,t){let r=(n)=>{if(typeof t==="string"||typeof t>"u")return{message:t};else if(typeof t==="function")return t(n);else return t};return this._refinement((n,o)=>{let i=e(n),s=()=>o.addIssue({code:R.custom,...r(n)});if(typeof Promise<"u"&&i instanceof Promise)return i.then((a)=>{if(!a)return s(),!1;else return!0});if(!i)return s(),!1;else return!0})}refinement(e,t){return this._refinement((r,n)=>{if(!e(r))return n.addIssue(typeof t==="function"?t(r,n):t),!1;else return!0})}_refinement(e){return new kn({schema:this,typeName:ne.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(t)=>this["~validate"](t)}}optional(){return wn.create(this,this._def)}nullable(){return Ro.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qn.create(this)}promise(){return Ds.create(this,this._def)}or(e){return Qc.create([this,e],this._def)}and(e){return wc.create(this,e,this._def)}transform(e){return new kn({...pe(this._def),schema:this,typeName:ne.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e==="function"?e:()=>e;return new Rc({...pe(this._def),innerType:this,defaultValue:t,typeName:ne.ZodDefault})}brand(){return new Mh({typeName:ne.ZodBranded,type:this,...pe(this._def)})}catch(e){let t=typeof e==="function"?e:()=>e;return new Tc({...pe(this._def),innerType:this,catchValue:t,typeName:ne.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return pd.create(this,e)}readonly(){return Nc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var eae=/^c[^\s-]{8,}$/i,tae=/^[0-9a-z]+$/,rae=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nae=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,oae=/^[a-z0-9_-]{21}$/i,iae=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sae=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,aae=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cae="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",_Q,uae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Aae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,dae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pae=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fae=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,o1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",gae=new RegExp(`^${o1}$`);function i1(e){let t="[0-5]\\d";if(e.precision)t=`${t}\\.\\d{${e.precision}}`;else if(e.precision==null)t=`${t}(\\.\\d+)?`;let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function hae(e){return new RegExp(`^${i1(e)}$`)}function s1(e){let t=`${o1}T${i1(e)}`,r=[];if(r.push(e.local?"Z?":"Z"),e.offset)r.push("([+-]\\d{2}:?\\d{2})");return t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function mae(e,t){if((t==="v4"||!t)&&uae.test(e))return!0;if((t==="v6"||!t)&&Aae.test(e))return!0;return!1}function Eae(e,t){if(!iae.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),o=JSON.parse(atob(n));if(typeof o!=="object"||o===null)return!1;if("typ"in o&&o?.typ!=="JWT")return!1;if(!o.alg)return!1;if(t&&o.alg!==t)return!1;return!0}catch{return!1}}function Cae(e,t){if((t==="v4"||!t)&&lae.test(e))return!0;if((t==="v6"||!t)&&dae.test(e))return!0;return!1}class vn extends Ee{_parse(e){if(this._def.coerce)e.data=String(e.data);if(this._getType(e)!==M.string){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_type,expected:M.string,received:o.parsedType}),ee}let r=new zt,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.length<o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="max"){if(e.data.length>o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty()}else if(o.kind==="length"){let i=e.data.length>o.value,s=e.data.length<o.value;if(i||s){if(n=this._getOrReturnCtx(e,n),i)z(n,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});else if(s)z(n,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message});r.dirty()}}else if(o.kind==="email"){if(!aae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"email",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="emoji"){if(!_Q)_Q=new RegExp(cae,"u");if(!_Q.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"emoji",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="uuid"){if(!nae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"uuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="nanoid"){if(!oae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"nanoid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid"){if(!eae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"cuid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cuid2"){if(!tae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"cuid2",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ulid"){if(!rae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"ulid",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),z(n,{validation:"url",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="regex"){if(o.regex.lastIndex=0,!o.regex.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"regex",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="trim")e.data=e.data.trim();else if(o.kind==="includes"){if(!e.data.includes(o.value,o.position))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()}else if(o.kind==="toLowerCase")e.data=e.data.toLowerCase();else if(o.kind==="toUpperCase")e.data=e.data.toUpperCase();else if(o.kind==="startsWith"){if(!e.data.startsWith(o.value))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()}else if(o.kind==="datetime"){if(!s1(o).test(e.data))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:"datetime",message:o.message}),r.dirty()}else if(o.kind==="date"){if(!gae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:"date",message:o.message}),r.dirty()}else if(o.kind==="time"){if(!hae(o).test(e.data))n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:"time",message:o.message}),r.dirty()}else if(o.kind==="duration"){if(!sae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"duration",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="ip"){if(!mae(e.data,o.version))n=this._getOrReturnCtx(e,n),z(n,{validation:"ip",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="jwt"){if(!Eae(e.data,o.alg))n=this._getOrReturnCtx(e,n),z(n,{validation:"jwt",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="cidr"){if(!Cae(e.data,o.version))n=this._getOrReturnCtx(e,n),z(n,{validation:"cidr",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64"){if(!pae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"base64",code:R.invalid_string,message:o.message}),r.dirty()}else if(o.kind==="base64url"){if(!fae.test(e.data))n=this._getOrReturnCtx(e,n),z(n,{validation:"base64url",code:R.invalid_string,message:o.message}),r.dirty()}else ye.assertNever(o);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement((n)=>e.test(n),{validation:t,code:R.invalid_string,...J.errToObj(r)})}_addCheck(e){return new vn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...J.errToObj(e)})}url(e){return this._addCheck({kind:"url",...J.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...J.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...J.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...J.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...J.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...J.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...J.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...J.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...J.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...J.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...J.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...J.errToObj(e)})}datetime(e){if(typeof e==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e});return this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...J.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){if(typeof e==="string")return this._addCheck({kind:"time",precision:null,message:e});return this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...J.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...J.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...J.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...J.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...J.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...J.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...J.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...J.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...J.errToObj(t)})}nonempty(e){return this.min(1,J.errToObj(e))}trim(){return new vn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e)=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find((e)=>e.kind==="date")}get isTime(){return!!this._def.checks.find((e)=>e.kind==="time")}get isDuration(){return!!this._def.checks.find((e)=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find((e)=>e.kind==="email")}get isURL(){return!!this._def.checks.find((e)=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find((e)=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find((e)=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((e)=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((e)=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((e)=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find((e)=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find((e)=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find((e)=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find((e)=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find((e)=>e.kind==="base64url")}get minLength(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxLength(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}vn.create=(e)=>new vn({checks:[],typeName:ne.ZodString,coerce:e?.coerce??!1,...pe(e)});function Iae(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}class hi extends Ee{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce)e.data=Number(e.data);if(this._getType(e)!==M.number){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_type,expected:M.number,received:o.parsedType}),ee}let r=void 0,n=new zt;for(let o of this._def.checks)if(o.kind==="int"){if(!ye.isInteger(e.data))r=this._getOrReturnCtx(e,r),z(r,{code:R.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()}else if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(Iae(e.data,o.value)!==0)r=this._getOrReturnCtx(e,r),z(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else if(o.kind==="finite"){if(!Number.isFinite(e.data))r=this._getOrReturnCtx(e,r),z(r,{code:R.not_finite,message:o.message}),n.dirty()}else ye.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,J.toString(t))}gt(e,t){return this.setLimit("min",e,!1,J.toString(t))}lte(e,t){return this.setLimit("max",e,!0,J.toString(t))}lt(e,t){return this.setLimit("max",e,!1,J.toString(t))}setLimit(e,t,r,n){return new hi({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:J.toString(n)}]})}_addCheck(e){return new hi({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:J.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:J.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:J.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}get isInt(){return!!this._def.checks.find((e)=>e.kind==="int"||e.kind==="multipleOf"&&ye.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;else if(r.kind==="min"){if(t===null||r.value>t)t=r.value}else if(r.kind==="max"){if(e===null||r.value<e)e=r.value}return Number.isFinite(t)&&Number.isFinite(e)}}hi.create=(e)=>new hi({checks:[],typeName:ne.ZodNumber,coerce:e?.coerce||!1,...pe(e)});class mi extends Ee{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==M.bigint)return this._getInvalidInput(e);let r=void 0,n=new zt;for(let o of this._def.checks)if(o.kind==="min"){if(o.inclusive?e.data<o.value:e.data<=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="max"){if(o.inclusive?e.data>o.value:e.data>=o.value)r=this._getOrReturnCtx(e,r),z(r,{code:R.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()}else if(o.kind==="multipleOf"){if(e.data%o.value!==BigInt(0))r=this._getOrReturnCtx(e,r),z(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()}else ye.assertNever(o);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:M.bigint,received:t.parsedType}),ee}gte(e,t){return this.setLimit("min",e,!0,J.toString(t))}gt(e,t){return this.setLimit("min",e,!1,J.toString(t))}lte(e,t){return this.setLimit("max",e,!0,J.toString(t))}lt(e,t){return this.setLimit("max",e,!1,J.toString(t))}setLimit(e,t,r,n){return new mi({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:J.toString(n)}]})}_addCheck(e){return new mi({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:J.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e}get maxValue(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e}}mi.create=(e)=>new mi({checks:[],typeName:ne.ZodBigInt,coerce:e?.coerce??!1,...pe(e)});class Bc extends Ee{_parse(e){if(this._def.coerce)e.data=Boolean(e.data);if(this._getType(e)!==M.boolean){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.boolean,received:r.parsedType}),ee}return Xt(e.data)}}Bc.create=(e)=>new Bc({typeName:ne.ZodBoolean,coerce:e?.coerce||!1,...pe(e)});class ws extends Ee{_parse(e){if(this._def.coerce)e.data=new Date(e.data);if(this._getType(e)!==M.date){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_type,expected:M.date,received:o.parsedType}),ee}if(Number.isNaN(e.data.getTime())){let o=this._getOrReturnCtx(e);return z(o,{code:R.invalid_date}),ee}let r=new zt,n=void 0;for(let o of this._def.checks)if(o.kind==="min"){if(e.data.getTime()<o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()}else if(o.kind==="max"){if(e.data.getTime()>o.value)n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()}else ye.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ws({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:J.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:J.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)if(t.kind==="min"){if(e===null||t.value>e)e=t.value}return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)if(t.kind==="max"){if(e===null||t.value<e)e=t.value}return e!=null?new Date(e):null}}ws.create=(e)=>new ws({checks:[],coerce:e?.coerce||!1,typeName:ne.ZodDate,...pe(e)});class cd extends Ee{_parse(e){if(this._getType(e)!==M.symbol){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.symbol,received:r.parsedType}),ee}return Xt(e.data)}}cd.create=(e)=>new cd({typeName:ne.ZodSymbol,...pe(e)});class _c extends Ee{_parse(e){if(this._getType(e)!==M.undefined){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.undefined,received:r.parsedType}),ee}return Xt(e.data)}}_c.create=(e)=>new _c({typeName:ne.ZodUndefined,...pe(e)});class vc extends Ee{_parse(e){if(this._getType(e)!==M.null){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.null,received:r.parsedType}),ee}return Xt(e.data)}}vc.create=(e)=>new vc({typeName:ne.ZodNull,...pe(e)});class Ss extends Ee{constructor(){super(...arguments);this._any=!0}_parse(e){return Xt(e.data)}}Ss.create=(e)=>new Ss({typeName:ne.ZodAny,...pe(e)});class gi extends Ee{constructor(){super(...arguments);this._unknown=!0}_parse(e){return Xt(e.data)}}gi.create=(e)=>new gi({typeName:ne.ZodUnknown,...pe(e)});class Jn extends Ee{_parse(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:M.never,received:t.parsedType}),ee}}Jn.create=(e)=>new Jn({typeName:ne.ZodNever,...pe(e)});class ud extends Ee{_parse(e){if(this._getType(e)!==M.undefined){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.void,received:r.parsedType}),ee}return Xt(e.data)}}ud.create=(e)=>new ud({typeName:ne.ZodVoid,...pe(e)});class Qn extends Ee{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==M.array)return z(t,{code:R.invalid_type,expected:M.array,received:t.parsedType}),ee;if(n.exactLength!==null){let i=t.data.length>n.exactLength.value,s=t.data.length<n.exactLength.value;if(i||s)z(t,{code:i?R.too_big:R.too_small,minimum:s?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty()}if(n.minLength!==null){if(t.data.length<n.minLength.value)z(t,{code:R.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()}if(n.maxLength!==null){if(t.data.length>n.maxLength.value)z(t,{code:R.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()}if(t.common.async)return Promise.all([...t.data].map((i,s)=>n.type._parseAsync(new Sn(t,i,t.path,s)))).then((i)=>zt.mergeArray(r,i));let o=[...t.data].map((i,s)=>n.type._parseSync(new Sn(t,i,t.path,s)));return zt.mergeArray(r,o)}get element(){return this._def.type}min(e,t){return new Qn({...this._def,minLength:{value:e,message:J.toString(t)}})}max(e,t){return new Qn({...this._def,maxLength:{value:e,message:J.toString(t)}})}length(e,t){return new Qn({...this._def,exactLength:{value:e,message:J.toString(t)}})}nonempty(e){return this.min(1,e)}}Qn.create=(e,t)=>new Qn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ne.ZodArray,...pe(t)});function xc(e){if(e instanceof ut){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=wn.create(xc(n))}return new ut({...e._def,shape:()=>t})}else if(e instanceof Qn)return new Qn({...e._def,type:xc(e.element)});else if(e instanceof wn)return wn.create(xc(e.unwrap()));else if(e instanceof Ro)return Ro.create(xc(e.unwrap()));else if(e instanceof Wn)return Wn.create(e.items.map((t)=>xc(t)));else return e}class ut extends Ee{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=ye.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==M.object){let c=this._getOrReturnCtx(e);return z(c,{code:R.invalid_type,expected:M.object,received:c.parsedType}),ee}let{status:r,ctx:n}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Jn&&this._def.unknownKeys==="strip")){for(let c in n.data)if(!i.includes(c))s.push(c)}let a=[];for(let c of i){let u=o[c],A=n.data[c];a.push({key:{status:"valid",value:c},value:u._parse(new Sn(n,A,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Jn){let c=this._def.unknownKeys;if(c==="passthrough")for(let u of s)a.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict"){if(s.length>0)z(n,{code:R.unrecognized_keys,keys:s}),r.dirty()}else if(c==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let u of s){let A=n.data[u];a.push({key:{status:"valid",value:u},value:c._parse(new Sn(n,A,n.path,u)),alwaysSet:u in n.data})}}if(n.common.async)return Promise.resolve().then(async()=>{let c=[];for(let u of a){let A=await u.key,p=await u.value;c.push({key:A,value:p,alwaysSet:u.alwaysSet})}return c}).then((c)=>zt.mergeObjectSync(r,c));else return zt.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(e){return J.errToObj,new ut({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;if(t.code==="unrecognized_keys")return{message:J.errToObj(e).message??n};return{message:n}}}:{}})}strip(){return new ut({...this._def,unknownKeys:"strip"})}passthrough(){return new ut({...this._def,unknownKeys:"passthrough"})}extend(e){return new ut({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ut({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ne.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ut({...this._def,catchall:e})}pick(e){let t={};for(let r of ye.objectKeys(e))if(e[r]&&this.shape[r])t[r]=this.shape[r];return new ut({...this._def,shape:()=>t})}omit(e){let t={};for(let r of ye.objectKeys(this.shape))if(!e[r])t[r]=this.shape[r];return new ut({...this._def,shape:()=>t})}deepPartial(){return xc(this)}partial(e){let t={};for(let r of ye.objectKeys(this.shape)){let n=this.shape[r];if(e&&!e[r])t[r]=n;else t[r]=n.optional()}return new ut({...this._def,shape:()=>t})}required(e){let t={};for(let r of ye.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let o=this.shape[r];while(o instanceof wn)o=o._def.innerType;t[r]=o}return new ut({...this._def,shape:()=>t})}keyof(){return a1(ye.objectKeys(this.shape))}}ut.create=(e,t)=>new ut({shape:()=>e,unknownKeys:"strip",catchall:Jn.create(),typeName:ne.ZodObject,...pe(t)});ut.strictCreate=(e,t)=>new ut({shape:()=>e,unknownKeys:"strict",catchall:Jn.create(),typeName:ne.ZodObject,...pe(t)});ut.lazycreate=(e,t)=>new ut({shape:e,unknownKeys:"strip",catchall:Jn.create(),typeName:ne.ZodObject,...pe(t)});class Qc extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return t.common.issues.push(...s.ctx.common.issues),s.result;let i=o.map((s)=>new Cr(s.ctx.common.issues));return z(t,{code:R.invalid_union,unionErrors:i}),ee}if(t.common.async)return Promise.all(r.map(async(o)=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(n);else{let o=void 0,i=[];for(let a of r){let c={...t,common:{...t.common,issues:[]},parent:null},u=a._parseSync({data:t.data,path:t.path,parent:c});if(u.status==="valid")return u;else if(u.status==="dirty"&&!o)o={result:u,ctx:c};if(c.common.issues.length)i.push(c.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map((a)=>new Cr(a));return z(t,{code:R.invalid_union,unionErrors:s}),ee}}get options(){return this._def.options}}Qc.create=(e,t)=>new Qc({options:e,typeName:ne.ZodUnion,...pe(t)});var Do=(e)=>{if(e instanceof Sc)return Do(e.schema);else if(e instanceof kn)return Do(e.innerType());else if(e instanceof kc)return[e.value];else if(e instanceof Ei)return e.options;else if(e instanceof Dc)return ye.objectValues(e.enum);else if(e instanceof Rc)return Do(e._def.innerType);else if(e instanceof _c)return[void 0];else if(e instanceof vc)return[null];else if(e instanceof wn)return[void 0,...Do(e.unwrap())];else if(e instanceof Ro)return[null,...Do(e.unwrap())];else if(e instanceof Mh)return Do(e.unwrap());else if(e instanceof Nc)return Do(e.unwrap());else if(e instanceof Tc)return Do(e._def.innerType);else return[]};class Fh extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.object)return z(t,{code:R.invalid_type,expected:M.object,received:t.parsedType}),ee;let r=this.discriminator,n=t.data[r],o=this.optionsMap.get(n);if(!o)return z(t,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ee;if(t.common.async)return o._parseAsync({data:t.data,path:t.path,parent:t});else return o._parseSync({data:t.data,path:t.path,parent:t})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let o of t){let i=Do(o.shape[e]);if(!i.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of i){if(n.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);n.set(s,o)}}return new Fh({typeName:ne.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...pe(r)})}}function vQ(e,t){let r=Vn(e),n=Vn(t);if(e===t)return{valid:!0,data:e};else if(r===M.object&&n===M.object){let o=ye.objectKeys(t),i=ye.objectKeys(e).filter((a)=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let c=vQ(e[a],t[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===M.array&&n===M.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],c=vQ(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else if(r===M.date&&n===M.date&&+e===+t)return{valid:!0,data:e};else return{valid:!1}}class wc extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(o,i)=>{if(Uh(o)||Uh(i))return ee;let s=vQ(o.value,i.value);if(!s.valid)return z(r,{code:R.invalid_intersection_types}),ee;if(Oh(o)||Oh(i))t.dirty();return{status:t.value,value:s.data}};if(r.common.async)return Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,i])=>n(o,i));else return n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}wc.create=(e,t,r)=>new wc({left:e,right:t,typeName:ne.ZodIntersection,...pe(r)});class Wn extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.array)return z(r,{code:R.invalid_type,expected:M.array,received:r.parsedType}),ee;if(r.data.length<this._def.items.length)return z(r,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ee;if(!this._def.rest&&r.data.length>this._def.items.length)z(r,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty();let o=[...r.data].map((i,s)=>{let a=this._def.items[s]||this._def.rest;if(!a)return null;return a._parse(new Sn(r,i,r.path,s))}).filter((i)=>!!i);if(r.common.async)return Promise.all(o).then((i)=>zt.mergeArray(t,i));else return zt.mergeArray(t,o)}get items(){return this._def.items}rest(e){return new Wn({...this._def,rest:e})}}Wn.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wn({items:e,typeName:ne.ZodTuple,rest:null,...pe(t)})};class ld extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.object)return z(r,{code:R.invalid_type,expected:M.object,received:r.parsedType}),ee;let n=[],o=this._def.keyType,i=this._def.valueType;for(let s in r.data)n.push({key:o._parse(new Sn(r,s,r.path,s)),value:i._parse(new Sn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});if(r.common.async)return zt.mergeObjectAsync(t,n);else return zt.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){if(t instanceof Ee)return new ld({keyType:e,valueType:t,typeName:ne.ZodRecord,...pe(r)});return new ld({keyType:vn.create(),valueType:e,typeName:ne.ZodRecord,...pe(t)})}}class Ad extends Ee{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.map)return z(r,{code:R.invalid_type,expected:M.map,received:r.parsedType}),ee;let n=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([s,a],c)=>({key:n._parse(new Sn(r,s,r.path,[c,"key"])),value:o._parse(new Sn(r,a,r.path,[c,"value"]))}));if(r.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let a of i){let c=await a.key,u=await a.value;if(c.status==="aborted"||u.status==="aborted")return ee;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}})}else{let s=new Map;for(let a of i){let{key:c,value:u}=a;if(c.status==="aborted"||u.status==="aborted")return ee;if(c.status==="dirty"||u.status==="dirty")t.dirty();s.set(c.value,u.value)}return{status:t.value,value:s}}}}Ad.create=(e,t,r)=>new Ad({valueType:t,keyType:e,typeName:ne.ZodMap,...pe(r)});class ks extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==M.set)return z(r,{code:R.invalid_type,expected:M.set,received:r.parsedType}),ee;let n=this._def;if(n.minSize!==null){if(r.data.size<n.minSize.value)z(r,{code:R.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()}if(n.maxSize!==null){if(r.data.size>n.maxSize.value)z(r,{code:R.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty()}let o=this._def.valueType;function i(a){let c=new Set;for(let u of a){if(u.status==="aborted")return ee;if(u.status==="dirty")t.dirty();c.add(u.value)}return{status:t.value,value:c}}let s=[...r.data.values()].map((a,c)=>o._parse(new Sn(r,a,r.path,c)));if(r.common.async)return Promise.all(s).then((a)=>i(a));else return i(s)}min(e,t){return new ks({...this._def,minSize:{value:e,message:J.toString(t)}})}max(e,t){return new ks({...this._def,maxSize:{value:e,message:J.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ks.create=(e,t)=>new ks({valueType:e,minSize:null,maxSize:null,typeName:ne.ZodSet,...pe(t)});class bc extends Ee{constructor(){super(...arguments);this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.function)return z(t,{code:R.invalid_type,expected:M.function,received:t.parsedType}),ee;function r(s,a){return ad({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ic(),ko].filter((c)=>!!c),issueData:{code:R.invalid_arguments,argumentsError:a}})}function n(s,a){return ad({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ic(),ko].filter((c)=>!!c),issueData:{code:R.invalid_return_type,returnTypeError:a}})}let o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Ds){let s=this;return Xt(async function(...a){let c=new Cr([]),u=await s._def.args.parseAsync(a,o).catch((d)=>{throw c.addIssue(r(a,d)),c}),A=await Reflect.apply(i,this,u);return await s._def.returns._def.type.parseAsync(A,o).catch((d)=>{throw c.addIssue(n(A,d)),c})})}else{let s=this;return Xt(function(...a){let c=s._def.args.safeParse(a,o);if(!c.success)throw new Cr([r(a,c.error)]);let u=Reflect.apply(i,this,c.data),A=s._def.returns.safeParse(u,o);if(!A.success)throw new Cr([n(u,A.error)]);return A.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new bc({...this._def,args:Wn.create(e).rest(gi.create())})}returns(e){return new bc({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new bc({args:e?e:Wn.create([]).rest(gi.create()),returns:t||gi.create(),typeName:ne.ZodFunction,...pe(r)})}}class Sc extends Ee{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Sc.create=(e,t)=>new Sc({getter:e,typeName:ne.ZodLazy,...pe(t)});class kc extends Ee{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return z(t,{received:t.data,code:R.invalid_literal,expected:this._def.value}),ee}return{status:"valid",value:e.data}}get value(){return this._def.value}}kc.create=(e,t)=>new kc({value:e,typeName:ne.ZodLiteral,...pe(t)});function a1(e,t){return new Ei({values:e,typeName:ne.ZodEnum,...pe(t)})}class Ei extends Ee{_parse(e){if(typeof e.data!=="string"){let t=this._getOrReturnCtx(e),r=this._def.values;return z(t,{expected:ye.joinValues(r),received:t.parsedType,code:R.invalid_type}),ee}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return z(t,{received:t.data,code:R.invalid_enum_value,options:r}),ee}return Xt(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ei.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ei.create(this.options.filter((r)=>!e.includes(r)),{...this._def,...t})}}Ei.create=a1;class Dc extends Ee{_parse(e){let t=ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==M.string&&r.parsedType!==M.number){let n=ye.objectValues(t);return z(r,{expected:ye.joinValues(n),received:r.parsedType,code:R.invalid_type}),ee}if(!this._cache)this._cache=new Set(ye.getValidEnumValues(this._def.values));if(!this._cache.has(e.data)){let n=ye.objectValues(t);return z(r,{received:r.data,code:R.invalid_enum_value,options:n}),ee}return Xt(e.data)}get enum(){return this._def.values}}Dc.create=(e,t)=>new Dc({values:e,typeName:ne.ZodNativeEnum,...pe(t)});class Ds extends Ee{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.promise&&t.common.async===!1)return z(t,{code:R.invalid_type,expected:M.promise,received:t.parsedType}),ee;let r=t.parsedType===M.promise?t.data:Promise.resolve(t.data);return Xt(r.then((n)=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Ds.create=(e,t)=>new Ds({type:e,typeName:ne.ZodPromise,...pe(t)});class kn extends Ee{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,o={addIssue:(i)=>{if(z(r,i),i.fatal)t.abort();else t.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let i=n.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async(s)=>{if(t.value==="aborted")return ee;let a=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});if(a.status==="aborted")return ee;if(a.status==="dirty")return Qs(a.value);if(t.value==="dirty")return Qs(a.value);return a});else{if(t.value==="aborted")return ee;let s=this._def.schema._parseSync({data:i,path:r.path,parent:r});if(s.status==="aborted")return ee;if(s.status==="dirty")return Qs(s.value);if(t.value==="dirty")return Qs(s.value);return s}}if(n.type==="refinement"){let i=(s)=>{let a=n.refinement(s,o);if(r.common.async)return Promise.resolve(a);if(a instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(s.status==="aborted")return ee;if(s.status==="dirty")t.dirty();return i(s.value),{status:t.value,value:s.value}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((s)=>{if(s.status==="aborted")return ee;if(s.status==="dirty")t.dirty();return i(s.value).then(()=>({status:t.value,value:s.value}))})}if(n.type==="transform")if(r.common.async===!1){let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fi(i))return ee;let s=n.transform(i.value,o);if(s instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((i)=>{if(!fi(i))return ee;return Promise.resolve(n.transform(i.value,o)).then((s)=>({status:t.value,value:s}))});ye.assertNever(n)}}kn.create=(e,t,r)=>new kn({schema:e,typeName:ne.ZodEffects,effect:t,...pe(r)});kn.createWithPreprocess=(e,t,r)=>new kn({schema:t,effect:{type:"preprocess",transform:e},typeName:ne.ZodEffects,...pe(r)});class wn extends Ee{_parse(e){if(this._getType(e)===M.undefined)return Xt(void 0);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}wn.create=(e,t)=>new wn({innerType:e,typeName:ne.ZodOptional,...pe(t)});class Ro extends Ee{_parse(e){if(this._getType(e)===M.null)return Xt(null);return this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ro.create=(e,t)=>new Ro({innerType:e,typeName:ne.ZodNullable,...pe(t)});class Rc extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;if(t.parsedType===M.undefined)r=this._def.defaultValue();return this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Rc.create=(e,t)=>new Rc({innerType:e,typeName:ne.ZodDefault,defaultValue:typeof t.default==="function"?t.default:()=>t.default,...pe(t)});class Tc extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});if(yc(n))return n.then((o)=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Cr(r.common.issues)},input:r.data})}));else return{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Cr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Tc.create=(e,t)=>new Tc({innerType:e,typeName:ne.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:()=>t.catch,...pe(t)});class dd extends Ee{_parse(e){if(this._getType(e)!==M.nan){let r=this._getOrReturnCtx(e);return z(r,{code:R.invalid_type,expected:M.nan,received:r.parsedType}),ee}return{status:"valid",value:e.data}}}dd.create=(e)=>new dd({typeName:ne.ZodNaN,...pe(e)});var yae=Symbol("zod_brand");class Mh extends Ee{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class pd extends Ee{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});if(o.status==="aborted")return ee;if(o.status==="dirty")return t.dirty(),Qs(o.value);else return this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();else{let n=this._def.in._parseSync({data:r.data,path:r.path,parent:r});if(n.status==="aborted")return ee;if(n.status==="dirty")return t.dirty(),{status:"dirty",value:n.value};else return this._def.out._parseSync({data:n.value,path:r.path,parent:r})}}static create(e,t){return new pd({in:e,out:t,typeName:ne.ZodPipeline})}}class Nc extends Ee{_parse(e){let t=this._def.innerType._parse(e),r=(n)=>{if(fi(n))n.value=Object.freeze(n.value);return n};return yc(t)?t.then((n)=>r(n)):r(t)}unwrap(){return this._def.innerType}}Nc.create=(e,t)=>new Nc({innerType:e,typeName:ne.ZodReadonly,...pe(t)});function n1(e,t){let r=typeof e==="function"?e(t):typeof e==="string"?{message:e}:e;return typeof r==="string"?{message:r}:r}function c1(e,t={},r){if(e)return Ss.create().superRefine((n,o)=>{let i=e(n);if(i instanceof Promise)return i.then((s)=>{if(!s){let a=n1(t,n),c=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=n1(t,n),a=s.fatal??r??!0;o.addIssue({code:"custom",...s,fatal:a})}return});return Ss.create()}var xae={object:ut.lazycreate},ne;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ne||(ne={}));var bae=(e,t={message:`Input not instance of ${e.name}`})=>c1((r)=>r instanceof e,t),u1=vn.create,l1=hi.create,Bae=dd.create,_ae=mi.create,A1=Bc.create,vae=ws.create,Qae=cd.create,wae=_c.create,Sae=vc.create,kae=Ss.create,Dae=gi.create,Rae=Jn.create,Tae=ud.create,Nae=Qn.create,Lae=ut.create,Uae=ut.strictCreate,Oae=Qc.create,Fae=Fh.create,Mae=wc.create,Pae=Wn.create,$ae=ld.create,Hae=Ad.create,Gae=ks.create,zae=bc.create,Yae=Sc.create,jae=kc.create,Vae=Ei.create,Jae=Dc.create,Wae=Ds.create,qae=kn.create,Zae=wn.create,Kae=Ro.create,Xae=kn.createWithPreprocess,ece=pd.create,tce=()=>u1().optional(),rce=()=>l1().optional(),nce=()=>A1().optional(),oce={string:(e)=>vn.create({...e,coerce:!0}),number:(e)=>hi.create({...e,coerce:!0}),boolean:(e)=>Bc.create({...e,coerce:!0}),bigint:(e)=>mi.create({...e,coerce:!0}),date:(e)=>ws.create({...e,coerce:!0})};var ice=ee;fr();function sce(e){let t=e?.trim();return t?t:void 0}function fd(e){return e===void 0?void 0:String(e)}var ace=Tr(()=>Hr.preprocess(fd,Hr.string().optional().transform(sce))),cce=Tr(()=>Hr.preprocess(fd,Hr.string().optional().transform((e)=>he(e)))),uce=Tr(()=>Hr.preprocess(fd,Hr.string().optional().transform((e)=>{if(he(e))return!0;if(va(e))return!1;return}))),lce=Tr(()=>p1());function d1(e){if(typeof e==="boolean")return e?"1":"0";return String(e)}var l={str:()=>ace(),bool:()=>cce(),triBool:()=>uce(),int:(e)=>e?p1(e):lce(),enum:(e)=>Hr.preprocess(fd,Hr.string().optional().transform((t)=>t!==void 0&&e.includes(t.trim())?t.trim():void 0))};function p1(e){return Hr.preprocess(fd,Hr.string().optional().transform((t)=>{if(t===void 0)return;let r=parseInt(t.trim(),10);if(Number.isNaN(r))return;if(e?.min!==void 0&&r<e.min)return;if(e?.max!==void 0&&r>e.max)return;return r}))}var Ace=l.str(),dce=l.str(),pce=l.str(),fce=l.str(),gce=l.str(),hce=l.str(),mce=l.str(),Ece=l.str(),Cce=l.str(),Ice=l.str(),yce=l.str(),xce=l.str(),bce=l.str(),Bce=l.str(),_ce=l.str(),vce=l.str(),Qce=l.str(),wce=l.str(),Sce=l.str(),kce=l.str(),Dce=l.str(),Rce=l.str(),Tce=l.bool(),Nce=l.str(),Lce=l.str(),Uce=l.str(),Oce=l.str(),Fce=l.bool(),Mce=l.bool(),Pce=l.str(),$ce=l.str(),Hce=l.str(),Gce=l.int({min:0}),zce=l.int({min:0}),Yce=l.int(),jce=l.bool(),Vce=l.int(),Jce=l.bool(),Wce=l.bool(),qce=l.bool(),Zce=l.bool(),Kce=l.bool(),Xce=l.str(),eue=l.str(),tue=l.str(),rue=l.str(),nue=l.str(),oue=l.str(),iue=l.str(),sue=l.str(),aue=l.str();var wQ={};ht(wQ,{OTEL_TRACES_EXPORT_INTERVAL:()=>Kue,OTEL_TRACES_EXPORTER:()=>Mue,OTEL_RESOURCE_ATTRIBUTES:()=>Xue,OTEL_METRIC_EXPORT_INTERVAL:()=>que,OTEL_METRICS_EXPORTER:()=>Oue,OTEL_LOG_USER_PROMPTS:()=>ele,OTEL_LOG_TOOL_DETAILS:()=>nle,OTEL_LOG_TOOL_CONTENT:()=>rle,OTEL_LOG_RAW_API_BODIES:()=>ole,OTEL_LOG_ASSISTANT_RESPONSES:()=>tle,OTEL_LOGS_EXPORT_INTERVAL:()=>Zue,OTEL_LOGS_EXPORTER:()=>Fue,OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:()=>Wue,OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:()=>Jue,OTEL_EXPORTER_OTLP_PROTOCOL:()=>Hue,OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:()=>Vue,OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:()=>jue,OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:()=>Yue,OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:()=>zue,OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:()=>Gue,OTEL_EXPORTER_OTLP_HEADERS:()=>$ue,OTEL_EXPORTER_OTLP_ENDPOINT:()=>Pue,DEBUG_SDK:()=>fue,DEBUG_CLAUDE_AGENT_SDK:()=>pue,CLAUDE_PTY_RECORD:()=>Bue,CLAUDE_DEBUG:()=>cue,CLAUDE_CODE_TERMINAL_RECORDING:()=>_ue,CLAUDE_CODE_TEE_SDK_STDOUT:()=>vue,CLAUDE_CODE_SESSION_LOG:()=>xue,CLAUDE_CODE_PROFILE_STARTUP:()=>gue,CLAUDE_CODE_PROFILE_QUERY:()=>hue,CLAUDE_CODE_PERFETTO_WRITE_INTERVAL_S:()=>Eue,CLAUDE_CODE_PERFETTO_TRACE:()=>mue,CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS:()=>Due,CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS:()=>Rue,CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS:()=>kue,CLAUDE_CODE_OTEL_DIAG_STDERR:()=>Uue,CLAUDE_CODE_JSONL_TRANSCRIPT:()=>bue,CLAUDE_CODE_FRAME_TIMING_SAMPLE_EVERY:()=>Iue,CLAUDE_CODE_FRAME_TIMING_LOG:()=>Cue,CLAUDE_CODE_ENHANCED_TELEMETRY_BETA:()=>Sue,CLAUDE_CODE_ENABLE_TELEMETRY:()=>wue,CLAUDE_CODE_DIAGNOSTICS_FILE:()=>due,CLAUDE_CODE_DEBUG_REPAINTS:()=>Aue,CLAUDE_CODE_DEBUG_LOG_LEVEL:()=>uue,CLAUDE_CODE_DEBUG_LOGS_DIR:()=>lue,CLAUDE_CODE_DD_ERROR_TRACKING_FLUSH_INTERVAL_MS:()=>Nue,CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS:()=>Tue,CLAUDE_CODE_COMMIT_LOG:()=>yue,CLAUDE_CODE_BYOC_ENABLE_DATADOG:()=>Lue,CLAUDE_CODE_BENCH_LIVE_COUNTS:()=>Que,BETA_TRACING_ENDPOINT:()=>ple,ANT_OTEL_TRACES_EXPORTER:()=>lle,ANT_OTEL_RESOURCE_ATTRIBUTES:()=>Ale,ANT_OTEL_METRICS_EXPORTER:()=>ule,ANT_OTEL_LOGS_EXPORTER:()=>cle,ANT_OTEL_EXPORTER_OTLP_PROTOCOL:()=>ale,ANT_OTEL_EXPORTER_OTLP_HEADERS:()=>sle,ANT_OTEL_EXPORTER_OTLP_ENDPOINT:()=>ile,ANT_CLAUDE_CODE_METRICS_ENDPOINT:()=>dle});var cue=l.bool(),uue=l.str(),lue=l.str(),Aue=l.bool(),due=l.str(),pue=l.bool(),fue=l.bool(),gue=l.bool(),hue=l.bool(),mue=l.str(),Eue=l.int(),Cue=l.str(),Iue=l.int(),yue=l.str(),xue=l.str(),bue=l.str(),Bue=l.str(),_ue=l.str(),vue=l.bool(),Que=l.bool(),wue=l.bool(),Sue=l.bool(),kue=l.int(),Due=l.int(),Rue=l.int(),Tue=l.int(),Nue=l.int(),Lue=l.bool(),Uue=l.bool(),Oue=l.str(),Fue=l.str(),Mue=l.str(),Pue=l.str(),$ue=l.str(),Hue=l.str(),Gue=l.str(),zue=l.str(),Yue=l.str(),jue=l.str(),Vue=l.str(),Jue=l.str(),Wue=l.str(),que=l.int(),Zue=l.int(),Kue=l.int(),Xue=l.str(),ele=l.bool(),tle=l.triBool(),rle=l.bool(),nle=l.bool(),ole=l.bool(),ile=l.str(),sle=l.str(),ale=l.str(),cle=l.str(),ule=l.str(),lle=l.str(),Ale=l.str(),dle=l.str(),ple=l.str();sr();import{constants as _le}from"fs";import{access as vle,readdir as Qle,readFile as $ct,readlink as wle}from"fs/promises";import{homedir as Sle}from"os";import{delimiter as kle,join as hd}from"path";fr();function fle(){return"prod"}function f1(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(fle()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}var gle="user:inference",g1="user:profile",hle="org:create_api_key";var mle=[hle,g1],Ele=[g1,gle,"user:sessions:claude_code","user:mcp_servers","user:file_upload",...[]],dct=Cc([...mle,...Ele]),Cle=["user:design:read","user:design:write"],pct=[...Cle,"user:projects:read","user:projects:write"];function h1(){return process.versions.bun!==void 0}fr();Zt();sr();nt();Zt();XA();import{readdir as Ict,readFile as Ile}from"fs/promises";import{release as m1}from"os";sr();Zt();var SQ=X(()=>{try{return De().readFileSync("/proc/version",{encoding:"utf8"}).toLowerCase()}catch{return}});var E1;var gd=X(()=>{try{if(process.platform==="darwin")return"macos";if(process.platform==="win32")return"windows";if(process.platform==="linux"){if(process.env.WSL_DISTRO_NAME||process.env.WSL_INTEROP)return"wsl";let e=E1??SQ();if(e!==void 0&&(e.includes("microsoft")||e.includes("wsl")))return"wsl";return"linux"}return"unknown"}catch(e){return li(e),"unknown"}});var Qct=X(()=>{if(process.platform!=="linux")return;let e=E1??SQ();if(e===void 0)return;let t=e.match(/wsl(\d+)/);if(t&&t[1])return t[1];if(e.includes("microsoft"))return"1";return}),wct=X(async()=>{if(process.platform!=="linux")return;let e={linuxKernel:m1()};try{let t=await Ile("/etc/os-release","utf8");for(let r of t.split(`
158
158
  `)){let n=r.match(/^(ID|VERSION_ID)=(.*)$/);if(n&&n[1]&&n[2]){let o=n[2].replace(/^"|"$/g,"");if(n[1]==="ID")e.linuxDistroId=o;else e.linuxDistroVersion=o}}}catch{}return e});var Sct=X(()=>{if(process.platform!=="darwin")return;let t=m1().match(/^(\d+)\./);if(!t||!t[1])return;return parseInt(t[1],10)-9});function qn(e,t,r){return new Promise((n,o)=>{if(t?.aborted){if(r?.throwOnAbort||r?.abortError)o(r.abortError?.()??Error("aborted"));else n();return}let i=setTimeout((a,c,u)=>{a?.removeEventListener("abort",c),u()},e,t,s,n);function s(){if(clearTimeout(i),r?.throwOnAbort||r?.abortError)o(r.abortError?.()??Error("aborted"));else n()}if(t?.addEventListener("abort",s,{once:!0}),r?.unref)i.unref()})}function yle(e,t){e(Error(t))}function C1(e,t,r){let n,o=new Promise((i,s)=>{n=setTimeout(yle,t,s,r)});return Promise.race([e,o]).finally(()=>{if(n!==void 0)clearTimeout(n)})}gQ();sr();Zt();var I1=X(()=>{if(process.platform!=="linux")return!1;return De().existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")}),y1=X(()=>{if(process.platform!=="linux")return;try{return De().readFileSync("/sys/hypervisor/uuid",{encoding:"utf8"}).trim().toLowerCase()}catch{return}}),x1=X(()=>{if(process.platform!=="linux")return!1;return De().existsSync("/.dockerenv")});var Dle=X(()=>{if(De().existsSync(hd($a(),".config.json")))return hd($a(),".config.json");let e=`.claude${f1()}.json`;return hd(process.env.CLAUDE_CONFIG_DIR||Sle(),e)}),Rle=X(async()=>{try{let{externalHttp:e}=await Promise.resolve().then(() => (v1(),_1));return await e.head("http://1.1.1.1",{signal:AbortSignal.timeout(1000)}),!0}catch{return!1}});async function Tle(){return null}async function Uc(e){try{return!!await i2(e)}catch{return!1}}var Nle=X(async()=>{let e=[];if(await Uc("npm"))e.push("npm");if(await Uc("yarn"))e.push("yarn");if(await Uc("pnpm"))e.push("pnpm");return e}),Lle=X(async()=>{let e=[];if(await Uc("bun"))e.push("bun");if(await Uc("deno"))e.push("deno");if(await Uc("node"))e.push("node");return e}),Q1=["git","node","npm","npx","yarn","pnpm","bun","deno","tsc","python","python3","py","pip","uv","poetry","ruby","gem","bundle","rake","dotnet","msbuild","nuget","cl","nmake","cmake","ninja","make","gcc","g++","clang","cargo","rustc","go","java","javac","mvn","gradle","docker"],Ule=1000;async function Ole(e){try{return/appinstaller/i.test(await wle(e))}catch{return!1}}async function Fle(e){let t=gd()==="windows",r=new Set(Q1),n=t?(process.env.PATHEXT??".COM;.EXE;.BAT;.CMD").toLowerCase().split(";").filter(Boolean):[],o=Cc((process.env.PATH??"").split(kle).map((i)=>i.replace(/^"|"$/g,"")).filter(Boolean));await Promise.all(o.map(async(i)=>{let s;try{s=await Qle(i,{withFileTypes:!0})}catch{return}let a=t&&/[\\/]microsoft[\\/]windowsapps[\\/]?$/i.test(i);for(let c of s){if(c.isDirectory())continue;let u=c.name;if(t){let A=u.toLowerCase(),p=A.lastIndexOf(".");if(p<=0||!n.includes(A.slice(p)))continue;u=A.slice(0,p)}if(!r.has(u)||e.has(u))continue;if(t){if(a&&await Ole(hd(i,c.name)))continue}else try{await vle(hd(i,c.name),_le.X_OK)}catch{continue}e.add(u)}}))}var eut=X(async()=>{let e=new Set;try{await C1(Fle(e),Ule,"build tool PATH scan timed out")}catch{}return Q1.filter((t)=>e.has(t))}),w1=X(()=>Gle??(process.platform==="linux"?I1():!1)),Mle=X(()=>{try{if(!w1())return!1;let e=Qh("npm");if(e===null)return!1;return e.startsWith("/mnt/c/")}catch(e){return!1}});function Ple(){return process.env.__CFBundleIdentifier==="com.conductor.app"}var S1=["pycharm","intellij","webstorm","phpstorm","rubymine","clion","goland","rider","datagrip","appcode","dataspell","aqua","gateway","fleet","jetbrains","androidstudio"];function $le(e){let t=e.toLowerCase();return t.includes("windsurf")||t.includes("devin.app")||t.includes("devin desktop")||t.includes("devin-desktop")||/appdata[\\/]local[\\/](programs[\\/])?devin[\\/]/.test(t)}function Hle(){if(process.env.CURSOR_TRACE_ID)return"cursor";let e=process.env.VSCODE_GIT_ASKPASS_MAIN?.toLowerCase()??"";if(e.includes("cursor"))return"cursor";if($le(e))return"windsurf";if(e.includes("antigravity"))return"antigravity";let t=process.env.__CFBundleIdentifier?.toLowerCase();if(t?.includes("vscodium"))return"codium";if(t?.includes("windsurf")||t?.includes("devin"))return"windsurf";if(t?.includes("com.google.android.studio"))return"androidstudio";if(t){for(let r of S1)if(t.includes(r))return r}if(process.env.VisualStudioVersion)return"visualstudio";if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(process.platform==="darwin")return"pycharm";return"pycharm"}if(process.env.TERM==="xterm-ghostty")return"ghostty";if(process.env.TERM?.includes("kitty"))return"kitty";if(process.env.TERM_PROGRAM){if(/^devin([ -]desktop)?$/i.test(process.env.TERM_PROGRAM))return"windsurf";return process.env.TERM_PROGRAM}if(process.env.TMUX)return"tmux";if(process.env.STY)return"screen";if(process.env.KONSOLE_VERSION)return"konsole";if(process.env.GNOME_TERMINAL_SERVICE)return"gnome-terminal";if(process.env.XTERM_VERSION)return"xterm";if(process.env.VTE_VERSION)return"vte-based";if(process.env.TERMINATOR_UUID)return"terminator";if(process.env.KITTY_WINDOW_ID)return"kitty";if(process.env.ALACRITTY_LOG)return"alacritty";if(process.env.TILIX_ID)return"tilix";if(process.env.WT_SESSION)return"windows-terminal";if(process.env.SESSIONNAME&&process.env.TERM==="cygwin")return"cygwin";if(process.env.MSYSTEM)return process.env.MSYSTEM.toLowerCase();if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return"conemu";if(process.env.WSL_DISTRO_NAME)return`wsl-${process.env.WSL_DISTRO_NAME}`;if(D1())return"ssh-session";if(process.env.TERM){let r=process.env.TERM;if(r.includes("alacritty"))return"alacritty";if(r.includes("rxvt"))return"rxvt";if(r.includes("termite"))return"termite";return process.env.TERM}if(!process.stdout.isTTY)return"non-interactive";return null}var Gle,zle,Yle;var k1=X(()=>{if(he(process.env.CODESPACES))return"codespaces";if(process.env.GITPOD_WORKSPACE_ID)return"gitpod";if(he(process.env.CODER)||process.env.CODER_WORKSPACE_NAME)return"coder";if(he(process.env.DEVPOD)||process.env.DEVPOD_WORKSPACE_UID)return"devpod";if(process.env.DAYTONA_WS_ID)return"daytona";if(he(process.env.GOOGLE_CLOUD_WORKSTATIONS))return"gcp-cloud-workstations";if(process.env.C9_PID||process.env.C9_USER)return"aws-cloud9";if(process.env.REPL_ID||process.env.REPL_SLUG)return"replit";if(process.env.PROJECT_DOMAIN)return"glitch";if(he(process.env.VERCEL))return"vercel";if(process.env.RAILWAY_ENVIRONMENT_NAME||process.env.RAILWAY_SERVICE_NAME)return"railway";if(he(process.env.RENDER))return"render";if(he(process.env.NETLIFY))return"netlify";if(process.env.DYNO)return"heroku";if(process.env.FLY_APP_NAME||process.env.FLY_MACHINE_ID)return"fly.io";if(he(process.env.CF_PAGES))return"cloudflare-pages";if(process.env.DENO_DEPLOYMENT_ID)return"deno-deploy";if(process.env.AWS_LAMBDA_FUNCTION_NAME)return"aws-lambda";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_FARGATE")return"aws-fargate";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_EC2")return"aws-ecs";if((zle??y1())?.startsWith("ec2"))return"aws-ec2";if(process.env.K_SERVICE)return"gcp-cloud-run";if(process.env.GOOGLE_CLOUD_PROJECT)return"gcp";if(process.env.WEBSITE_SITE_NAME||process.env.WEBSITE_SKU)return"azure-app-service";if(process.env.AZURE_FUNCTIONS_ENVIRONMENT)return"azure-functions";if(process.env.APP_URL?.includes("ondigitalocean.app"))return"digitalocean-app-platform";if(process.env.SPACE_CREATOR_USER_ID)return"huggingface-spaces";if(he(process.env.GITHUB_ACTIONS))return"github-actions";if(he(process.env.GITLAB_CI))return"gitlab-ci";if(process.env.CIRCLECI)return"circleci";if(process.env.BUILDKITE)return"buildkite";if(he(process.env.CI))return"ci";if(process.env.KUBERNETES_SERVICE_HOST)return"kubernetes";if(Yle??x1())return"docker";if(md.platform==="darwin")return"unknown-darwin";if(md.platform==="linux")return"unknown-linux";if(md.platform==="win32")return"unknown-win32";return"unknown"});function D1(){return!!(process.env.SSH_CONNECTION||process.env.SSH_CLIENT||process.env.SSH_TTY)}var md={hasInternetAccess:Rle,probeInternalNetworkAccess:Tle,isCI:he(process.env.CI),platform:["win32","darwin"].includes(process.platform)?process.platform:"linux",arch:process.arch,nodeVersion:process.version,terminal:Hle(),isSSH:D1,getPackageManagers:Nle,getRuntimes:Lle,isRunningWithBun:X(h1),isWslEnvironment:w1,isNpmFromWindowsPath:Mle,isConductor:Ple,detectDeploymentEnvironment:k1};var kQ={};ht(kQ,{USE_API_CONTEXT_MANAGEMENT:()=>Hpe,USE_API_CLEAR_TOOL_USES:()=>$pe,USE_API_CLEAR_TOOL_RESULTS:()=>Ppe,FORCE_VCR:()=>Fpe,FORCE_PROMPT_CACHING_5M:()=>Ope,FORCE_CODE_TERMINAL:()=>Upe,FORCE_AUTOUPDATE_PLUGINS:()=>Lpe,ENABLE_TOOL_SEARCH:()=>Npe,ENABLE_SESSION_PERSISTENCE:()=>Tpe,ENABLE_SESSION_BACKGROUNDING:()=>Rpe,ENABLE_PROMPT_CACHING_1H_BEDROCK:()=>Dpe,ENABLE_PROMPT_CACHING_1H:()=>kpe,ENABLE_PID_BASED_VERSION_LOCKING:()=>Spe,ENABLE_MCP_LARGE_OUTPUT_FILES:()=>wpe,ENABLE_LSP_TOOL:()=>Qpe,ENABLE_LOCKLESS_UPDATES:()=>vpe,ENABLE_ENHANCED_TELEMETRY_BETA:()=>_pe,ENABLE_CLAUDEAI_MCP_SERVERS:()=>Bpe,ENABLE_BETA_TRACING_DETAILED:()=>bpe,EMBEDDED_SEARCH_TOOLS:()=>Mpe,DISABLE_UPGRADE_COMMAND:()=>xpe,DISABLE_UPDATES:()=>ype,DISABLE_TELEMETRY:()=>Ipe,DISABLE_PROMPT_CACHING_SONNET:()=>mpe,DISABLE_PROMPT_CACHING_OPUS:()=>hpe,DISABLE_PROMPT_CACHING_MYTHOS:()=>Cpe,DISABLE_PROMPT_CACHING_HAIKU:()=>gpe,DISABLE_PROMPT_CACHING_FABLE:()=>Epe,DISABLE_PROMPT_CACHING:()=>fpe,DISABLE_LOGOUT_COMMAND:()=>ppe,DISABLE_LOGIN_COMMAND:()=>dpe,DISABLE_INTERLEAVED_THINKING:()=>Ape,DISABLE_INSTALL_GITHUB_APP_COMMAND:()=>upe,DISABLE_INSTALLATION_CHECKS:()=>lpe,DISABLE_GROWTHBOOK:()=>cpe,DISABLE_FEEDBACK_COMMAND:()=>ape,DISABLE_EXTRA_USAGE_COMMAND:()=>spe,DISABLE_ERROR_REPORTING:()=>ipe,DISABLE_DOCTOR_COMMAND:()=>ope,DISABLE_COST_WARNINGS:()=>npe,DISABLE_COMPACT:()=>rpe,DISABLE_BUG_COMMAND:()=>tpe,DISABLE_BRIEF_MODE_STOP_HOOK:()=>epe,DISABLE_AUTO_COMPACT:()=>Kde,DISABLE_AUTOUPDATER:()=>Xde,CLAUDE_WORKFLOW_NAME_ONLY:()=>Wde,CLAUDE_RUNNER_DISABLE_AWAITING_ACTION_OVERRIDE:()=>Jde,CLAUDE_PREVIEW_CLASSIFIER_FLOOR:()=>Jle,CLAUDE_DISABLE_ADOPT:()=>Vde,CLAUDE_CODE_WORKFLOW_SIZE_WARNING_TOKENS:()=>Zde,CLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTS:()=>qde,CLAUDE_CODE_WEBSEARCH_USE_CCR_PROXY:()=>Pde,CLAUDE_CODE_WEBFETCH_USE_CCR_PROXY:()=>Mde,CLAUDE_CODE_VERIFY_PROMPT:()=>jde,CLAUDE_CODE_USE_POWERSHELL_TOOL:()=>Fde,CLAUDE_CODE_USE_NATIVE_FILE_SEARCH:()=>Ode,CLAUDE_CODE_USE_COWORK_PLUGINS:()=>Ude,CLAUDE_CODE_TWO_STAGE_CLASSIFIER:()=>Lde,CLAUDE_CODE_TOTAL_TOKENS_REMINDER_BUDGET:()=>qAe,CLAUDE_CODE_TOTAL_TOKENS_REMINDER_AFTER_USER_TURN:()=>ZAe,CLAUDE_CODE_TOTAL_TOKENS_REMINDER:()=>WAe,CLAUDE_CODE_TODO_REMINDER_MODE:()=>JAe,CLAUDE_CODE_TAG_ISMETA_MESSAGES:()=>Nde,CLAUDE_CODE_SYNC_PLUGIN_INSTALL:()=>Tde,CLAUDE_CODE_SUPPRESS_SESSION_ATTRIBUTION:()=>Rde,CLAUDE_CODE_SUBAGENT_CACHE_EVICT:()=>Dde,CLAUDE_CODE_SKIP_REPO_UPLOAD:()=>kde,CLAUDE_CODE_SKIP_PROMPT_HISTORY:()=>Sde,CLAUDE_CODE_SKIP_PROJECT_BACKFILL:()=>wde,CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS_EXCEPT:()=>Qde,CLAUDE_CODE_SKIP_PLUGIN_MCP_SERVERS:()=>vde,CLAUDE_CODE_SKILL_DESC_REFRAME:()=>_de,CLAUDE_CODE_PROACTIVE:()=>Bde,CLAUDE_CODE_PLUGIN_USE_ZIP_CACHE:()=>Gde,CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE:()=>$de,CLAUDE_CODE_PLUGIN_BINARY_ASSETS:()=>Hde,CLAUDE_CODE_PLAN_MODE_REQUIRED:()=>bde,CLAUDE_CODE_PEWTER_OWL_TOOL:()=>Yde,CLAUDE_CODE_PEWTER_OWL:()=>zde,CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE:()=>xde,CLAUDE_CODE_OWNERSHIP_FRAME:()=>yde,CLAUDE_CODE_NO_FLICKER:()=>Ide,CLAUDE_CODE_NEW_INIT:()=>Cde,CLAUDE_CODE_NATIVE_CURSOR:()=>Ede,CLAUDE_CODE_KB_COHESION_FIXES:()=>KAe,CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES:()=>mde,CLAUDE_CODE_IDE_SKIP_VALID_CHECK:()=>hde,CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL:()=>gde,CLAUDE_CODE_HIDE_CWD:()=>dde,CLAUDE_CODE_GLOB_NO_IGNORE:()=>Ade,CLAUDE_CODE_GLOB_HIDDEN:()=>lde,CLAUDE_CODE_FORK_SUBAGENT:()=>ude,CLAUDE_CODE_FORCE_STRIKETHROUGH:()=>fde,CLAUDE_CODE_FORCE_SESSION_PERSISTENCE:()=>pde,CLAUDE_CODE_EXPERIMENTAL_OBSERVER_AGENTS:()=>cde,CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS:()=>ade,CLAUDE_CODE_ENABLE_XAA:()=>VAe,CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT:()=>jAe,CLAUDE_CODE_ENABLE_TASKS:()=>YAe,CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING:()=>zAe,CLAUDE_CODE_ENABLE_REMOTE_RECAP:()=>GAe,CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION:()=>HAe,CLAUDE_CODE_ENABLE_MENU_KIND_LANES:()=>$Ae,CLAUDE_CODE_ENABLE_LAUNCH_COMPOSER:()=>PAe,CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING:()=>MAe,CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL:()=>FAe,CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL:()=>OAe,CLAUDE_CODE_ENABLE_DESIGN_SYNC:()=>UAe,CLAUDE_CODE_ENABLE_DESIGN_MCP:()=>LAe,CLAUDE_CODE_ENABLE_CFC:()=>NAe,CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH:()=>TAe,CLAUDE_CODE_ENABLE_AWAY_SUMMARY:()=>RAe,CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT:()=>DAe,CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL:()=>kAe,CLAUDE_CODE_DISABLE_THINKING:()=>SAe,CLAUDE_CODE_DISABLE_TERMINAL_TITLE:()=>wAe,CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK:()=>QAe,CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP:()=>vAe,CLAUDE_CODE_DISABLE_POLICY_SKILLS:()=>_Ae,CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL:()=>BAe,CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK:()=>bAe,CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK:()=>xAe,CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:()=>yAe,CLAUDE_CODE_DISABLE_NESTED_CHAIN_IDLE:()=>IAe,CLAUDE_CODE_DISABLE_MOUSE_CLICKS:()=>CAe,CLAUDE_CODE_DISABLE_MOUSE:()=>EAe,CLAUDE_CODE_DISABLE_MEMORY_PERIODIC_RESYNC:()=>mAe,CLAUDE_CODE_DISABLE_MEMORY_BULK_INFLATE:()=>hAe,CLAUDE_CODE_DISABLE_LAUNCH_COMPOSER:()=>gAe,CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS:()=>fAe,CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING:()=>pAe,CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY:()=>dAe,CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS:()=>AAe,CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS:()=>lAe,CLAUDE_CODE_DISABLE_CRON:()=>uAe,CLAUDE_CODE_DISABLE_CLAUDE_MDS:()=>cAe,CLAUDE_CODE_DISABLE_CLAUDE_API_SKILL:()=>aAe,CLAUDE_CODE_DISABLE_BUNDLED_SKILLS:()=>sAe,CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF:()=>iAe,CLAUDE_CODE_DISABLE_BACKGROUND_TASKS:()=>oAe,CLAUDE_CODE_DISABLE_AUTO_MEMORY:()=>nAe,CLAUDE_CODE_DISABLE_ATTACHMENTS:()=>rAe,CLAUDE_CODE_DISABLE_ARTIFACT:()=>tAe,CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN:()=>eAe,CLAUDE_CODE_DISABLE_AGENT_VIEW:()=>Xle,CLAUDE_CODE_DISABLE_ADVISOR_TOOL:()=>Kle,CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING:()=>Zle,CLAUDE_CODE_COLD_COMPACT:()=>sde,CLAUDE_CODE_CHILD_SESSION:()=>ide,CLAUDE_CODE_BUBBLEWRAP:()=>ode,CLAUDE_CODE_BG_TASKS_REPORT_RUNNING:()=>qle,CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR:()=>nde,CLAUDE_CODE_AUTO_CONNECT_IDE:()=>rde,CLAUDE_CODE_ARTIFACT_DIRECT_UPLOAD:()=>tde,CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT:()=>Wle,CLAUDE_CODE_ACT_DONT_REDERIVE:()=>ede,CLAUDE_CODE_ACCESSIBILITY:()=>XAe,CLAUDE_CHROME_CLASSIFIER_FLOOR:()=>Vle,CLAUDE_AX_SCREEN_READER:()=>jle});var jle=l.triBool(),Vle=l.triBool(),Jle=l.triBool(),Wle=l.bool(),qle=l.bool(),Zle=l.bool(),Kle=l.bool(),Xle=l.bool(),eAe=l.bool(),tAe=l.bool(),rAe=l.bool(),nAe=l.bool(),oAe=l.bool(),iAe=l.bool(),sAe=l.bool(),aAe=l.bool(),cAe=l.bool(),uAe=l.bool(),lAe=l.bool(),AAe=l.bool(),dAe=l.bool(),pAe=l.bool(),fAe=l.bool(),gAe=l.bool(),hAe=l.bool(),mAe=l.bool(),EAe=l.triBool(),CAe=l.triBool(),IAe=l.bool(),yAe=l.bool(),xAe=l.bool(),bAe=l.bool(),BAe=l.bool(),_Ae=l.bool(),vAe=l.bool(),QAe=l.bool(),wAe=l.bool(),SAe=l.bool(),kAe=l.bool(),DAe=l.bool(),RAe=l.bool(),TAe=l.bool(),NAe=l.triBool(),LAe=l.triBool(),UAe=l.bool(),OAe=l.bool(),FAe=l.bool(),MAe=l.bool(),PAe=l.bool(),$Ae=l.bool(),HAe=l.triBool(),GAe=l.triBool(),zAe=l.bool(),YAe=l.bool(),jAe=l.bool(),VAe=l.bool(),JAe=l.enum(["baseline","off"]),WAe=l.str(),qAe=l.int(),ZAe=l.triBool(),KAe=l.bool(),XAe=l.bool(),ede=l.triBool(),tde=l.bool(),rde=l.triBool(),nde=l.bool(),ode=l.bool(),ide=l.bool(),sde=l.bool(),ade=l.bool(),cde=l.bool(),ude=l.bool(),lde=l.bool(),Ade=l.bool(),dde=l.bool(),pde=l.bool(),fde=l.bool(),gde=l.bool(),hde=l.bool(),mde=l.bool(),Ede=l.bool(),Cde=l.bool(),Ide=l.triBool(),yde=l.bool(),xde=l.bool(),bde=l.bool(),Bde=l.bool(),_de=l.bool(),vde=l.bool(),Qde=l.str(),wde=l.bool(),Sde=l.bool(),kde=l.bool(),Dde=l.bool(),Rde=l.bool(),Tde=l.bool(),Nde=l.bool(),Lde=l.bool(),Ude=l.bool(),Ode=l.bool(),Fde=l.bool(),Mde=l.bool(),Pde=l.bool(),$de=l.bool(),Hde=l.bool(),Gde=l.bool(),zde=l.triBool(),Yde=l.triBool(),jde=l.bool(),Vde=l.bool(),Jde=l.bool(),Wde=l.bool(),qde=l.int({min:1}),Zde=l.int({min:1}),Kde=l.bool(),Xde=l.bool(),epe=l.bool(),tpe=l.bool(),rpe=l.bool(),npe=l.bool(),ope=l.bool(),ipe=l.bool(),spe=l.bool(),ape=l.bool(),cpe=l.bool(),upe=l.bool(),lpe=l.bool(),Ape=l.bool(),dpe=l.bool(),ppe=l.bool(),fpe=l.bool(),gpe=l.bool(),hpe=l.bool(),mpe=l.bool(),Epe=l.bool(),Cpe=l.bool(),Ipe=l.bool(),ype=l.bool(),xpe=l.bool(),bpe=l.bool(),Bpe=l.bool(),_pe=l.bool(),vpe=l.bool(),Qpe=l.bool(),wpe=l.bool(),Spe=l.bool(),kpe=l.bool(),Dpe=l.bool(),Rpe=l.bool(),Tpe=l.bool(),Npe=l.bool(),Lpe=l.bool(),Upe=l.bool(),Ope=l.bool(),Fpe=l.bool(),Mpe=l.bool(),Ppe=l.bool(),$pe=l.bool(),Hpe=l.bool();var DQ={};ht(DQ,{ZELLIJ:()=>Gfe,ZED_TERM:()=>zfe,XTERM_VERSION:()=>Nfe,XDG_RUNTIME_DIR:()=>Afe,WT_SESSION:()=>Ffe,WSL_DISTRO_NAME:()=>Yfe,WEBSITE_SKU:()=>$ge,WEBSITE_SITE_NAME:()=>Pge,WAYLAND_DISPLAY:()=>nfe,VTE_VERSION:()=>Ufe,VSCODE_GIT_ASKPASS_MAIN:()=>Vfe,VISUAL:()=>efe,VERCEL:()=>Qge,UV_THREADPOOL_SIZE:()=>gfe,USE_BUILTIN_RIPGREP:()=>Wge,USERPROFILE:()=>afe,USERNAME:()=>sfe,USER:()=>ife,TRACESTATE:()=>ehe,TRACEPARENT:()=>Xge,TMUX_PANE:()=>Hfe,TMUX:()=>$fe,TMPDIR:()=>Vpe,TMP:()=>Jpe,TILIX_ID:()=>kfe,TERM_PROGRAM_VERSION:()=>Bfe,TERM_PROGRAM:()=>bfe,TERMUX_VERSION:()=>Sfe,TERMINATOR_UUID:()=>wfe,TERMINAL_EMULATOR:()=>Qfe,TERMINAL:()=>vfe,TERM:()=>xfe,TEMP:()=>Wpe,SYSTEMROOT:()=>Kpe,STY:()=>Pfe,SSL_CERT_FILE:()=>ffe,SSH_TTY:()=>Zfe,SSH_CONNECTION:()=>qfe,SSH_CLIENT:()=>Wfe,SSH_AUTH_SOCK:()=>Kfe,SPACE_CREATOR_USER_ID:()=>zge,SHELL:()=>qpe,SESSIONNAME:()=>Mfe,SAFEUSER:()=>lfe,RUNNER_OS:()=>hge,RUNNER_ENVIRONMENT:()=>mge,REPL_SLUG:()=>_ge,REPL_ID:()=>Bge,RENDER:()=>wge,PWD:()=>Ype,PROJECT_DOMAIN:()=>vge,PREFIX:()=>jpe,PLAYWRIGHT_BROWSERS_PATH:()=>Jge,PATH:()=>zpe,NO_COLOR:()=>Efe,NODE_OPTIONS:()=>dfe,NODE_EXTRA_CA_CERTS:()=>pfe,NETLIFY:()=>Sge,MSYSTEM:()=>jfe,LOCALAPPDATA:()=>ufe,LC_TERMINAL:()=>_fe,LANG:()=>ofe,K_SERVICE:()=>Lge,KUBERNETES_SERVICE_HOST:()=>Yge,KONSOLE_VERSION:()=>Tfe,KITTY_WINDOW_ID:()=>Rfe,JAVA_TOOL_OPTIONS:()=>mfe,JAVA_HOME:()=>hfe,ITERM_SESSION_ID:()=>Dfe,IS_SANDBOX:()=>qge,IS_DEMO:()=>Zge,HOME:()=>Gpe,GOOGLE_CLOUD_WORKSTATIONS:()=>xge,GOOGLE_CLOUD_PROJECT:()=>Uge,GOOGLE_APPLICATION_CREDENTIALS:()=>Fge,GNOME_TERMINAL_SERVICE:()=>Lfe,GIT_TERMINAL_PROMPT:()=>ege,GIT_SSH_COMMAND:()=>Xfe,GIT_CONFIG_COUNT:()=>nge,GIT_ASKPASS:()=>tge,GITPOD_WORKSPACE_ID:()=>yge,GITLAB_CI:()=>gge,GITHUB_WORKSPACE:()=>lge,GITHUB_TOKEN:()=>age,GITHUB_ENV:()=>uge,GITHUB_ENTERPRISE_TOKEN:()=>cge,GITHUB_ACTIONS:()=>Age,GH_TOKEN:()=>oge,GH_HOST:()=>ige,GH_ENTERPRISE_TOKEN:()=>sge,GCM_INTERACTIVE:()=>rge,GCLOUD_PROJECT:()=>Oge,FORCE_COLOR:()=>Cfe,EDITOR:()=>Xpe,DYNO:()=>kge,DO_NOT_TRACK:()=>yfe,DISPLAY:()=>rfe,DENO_DEPLOYMENT_ID:()=>Rge,DEMO_VERSION:()=>Kge,DAYTONA_WS_ID:()=>bge,DATABASE_URL:()=>Vge,CURSOR_TRACE_ID:()=>Jfe,COMSPEC:()=>Zpe,COLORTERM:()=>Ife,CODESPACES:()=>Ege,CODER_WORKSPACE_NAME:()=>Ige,CODER:()=>Cge,CLOUDSDK_CONFIG:()=>Mge,CIRCLECI:()=>pge,CI:()=>dge,CF_PAGES:()=>Dge,BUN_INSTALL:()=>jge,BUILDKITE:()=>fge,BROWSER:()=>tfe,AZURE_FUNCTIONS_ENVIRONMENT:()=>Hge,AWS_LAMBDA_FUNCTION_NAME:()=>Tge,AWS_EXECUTION_ENV:()=>Nge,APP_URL:()=>Gge,APPDATA:()=>cfe,ALACRITTY_LOG:()=>Ofe});var Gpe=l.str(),zpe=l.str(),Ype=l.str(),jpe=l.str(),Vpe=l.str(),Jpe=l.str(),Wpe=l.str(),qpe=l.str(),Zpe=l.str(),Kpe=l.str(),Xpe=l.str(),efe=l.str(),tfe=l.str(),rfe=l.str(),nfe=l.str(),ofe=l.str(),ife=l.str(),sfe=l.str(),afe=l.str(),cfe=l.str(),ufe=l.str(),lfe=l.str(),Afe=l.str(),dfe=l.str(),pfe=l.str(),ffe=l.str(),gfe=l.str(),hfe=l.str(),mfe=l.str(),Efe=l.str(),Cfe=l.str(),Ife=l.str(),yfe=l.str(),xfe=l.str(),bfe=l.str(),Bfe=l.str(),_fe=l.str(),vfe=l.str(),Qfe=l.str(),wfe=l.str(),Sfe=l.str(),kfe=l.str(),Dfe=l.str(),Rfe=l.str(),Tfe=l.str(),Nfe=l.str(),Lfe=l.str(),Ufe=l.str(),Ofe=l.str(),Ffe=l.str(),Mfe=l.str(),Pfe=l.str(),$fe=l.str(),Hfe=l.str(),Gfe=l.str(),zfe=l.str(),Yfe=l.str(),jfe=l.str(),Vfe=l.str(),Jfe=l.str(),Wfe=l.str(),qfe=l.str(),Zfe=l.str(),Kfe=l.str(),Xfe=l.str(),ege=l.str(),tge=l.str(),rge=l.str(),nge=l.str(),oge=l.str(),ige=l.str(),sge=l.str(),age=l.str(),cge=l.str(),uge=l.str(),lge=l.str(),Age=l.str(),dge=l.str(),pge=l.str(),fge=l.str(),gge=l.str(),hge=l.str(),mge=l.str(),Ege=l.str(),Cge=l.str(),Ige=l.str(),yge=l.str(),xge=l.str(),bge=l.str(),Bge=l.str(),_ge=l.str(),vge=l.str(),Qge=l.str(),wge=l.str(),Sge=l.str(),kge=l.str(),Dge=l.str(),Rge=l.str(),Tge=l.str(),Nge=l.str(),Lge=l.str(),Uge=l.str(),Oge=l.str(),Fge=l.str(),Mge=l.str(),Pge=l.str(),$ge=l.str(),Hge=l.str(),Gge=l.str(),zge=l.str(),Yge=l.str(),jge=l.str(),Vge=l.str(),Jge=l.str(),Wge=l.str(),qge=l.str(),Zge=l.str(),Kge=l.str(),Xge=l.str(),ehe=l.str();var RQ={};ht(RQ,{VOICE_STREAM_BASE_URL:()=>Zme,VCR_RECORD:()=>ZEe,ULTRAPLAN_PROMPT_FILE:()=>qme,TEST_ENABLE_SESSION_PERSISTENCE:()=>qEe,TEAM_MEMORY_SYNC_URL:()=>Wme,TASK_MAX_OUTPUT_LENGTH:()=>LCe,SLASH_COMMAND_TOOL_CHAR_BUDGET:()=>NCe,SESSION_INGRESS_URL:()=>Jme,MCP_TRUNCATION_PROMPT_OVERRIDE:()=>Vme,MCP_TOOL_TIMEOUT:()=>DCe,MCP_TIMEOUT:()=>kCe,MCP_SERVER_CONNECTION_BATCH_SIZE:()=>SCe,MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE:()=>wCe,MCP_OAUTH_CLIENT_METADATA_URL:()=>jme,MCP_OAUTH_CALLBACK_PORT:()=>QCe,MCP_CONNECT_TIMEOUT_MS:()=>vCe,MCP_CONNECTION_NONBLOCKING:()=>WEe,LOCAL_BRIDGE:()=>JEe,CLAUDE_TMPDIR:()=>Yme,CLAUDE_SUBAGENT_BG_SHELL_MAX_MS:()=>_Ce,CLAUDE_STAGE_FILE_ROOT:()=>zme,CLAUDE_SSH_VERSION:()=>Gme,CLAUDE_SSH_LOCAL_BINARY:()=>Hme,CLAUDE_SNIP:()=>$me,CLAUDE_SERVE_DRAIN_TIMEOUT_MS:()=>BCe,CLAUDE_RUNNER_FETCH_DEPTH:()=>Pme,CLAUDE_REPL_VARIANT:()=>Mme,CLAUDE_REMOTE_WORKFLOW_SCRIPT:()=>Fme,CLAUDE_REMOTE_WORKFLOW_ARGS:()=>Ome,CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX:()=>Ume,CLAUDE_JOB_DIR:()=>Lme,CLAUDE_INTERNAL_WARM_RESUME_QA:()=>VEe,CLAUDE_INTERNAL_FC_OVERRIDES:()=>Nme,CLAUDE_INTERNAL_ASSISTANT_TEAM_NAME:()=>Tme,CLAUDE_FORCE_DISPLAY_SURVEY:()=>jEe,CLAUDE_ENV_FILE:()=>Rme,CLAUDE_COWORK_MEMORY_PATH_OVERRIDE:()=>Dme,CLAUDE_COWORK_MEMORY_INDEX_CONTENT:()=>kme,CLAUDE_COWORK_MEMORY_GUIDELINES:()=>Sme,CLAUDE_COWORK_MEMORY_EXTRA_GUIDELINES:()=>wme,CLAUDE_CONFIG_DIR:()=>Qme,CLAUDE_CODE_WORKSPACE_HOST_PATHS:()=>vme,CLAUDE_CODE_WORKER_EPOCH:()=>bCe,CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS:()=>xCe,CLAUDE_CODE_ULTRAREVIEW_PREFLIGHT_FIXTURE:()=>_me,CLAUDE_CODE_TUI_JUST_SWITCHED:()=>YEe,CLAUDE_CODE_TMUX_TRUECOLOR:()=>zEe,CLAUDE_CODE_TMUX_SESSION:()=>Bme,CLAUDE_CODE_TMUX_PREFIX_CONFLICTS:()=>GEe,CLAUDE_CODE_TMUX_PREFIX:()=>bme,CLAUDE_CODE_TMPDIR:()=>xme,CLAUDE_CODE_TEST_NO_PWSH:()=>HEe,CLAUDE_CODE_TEST_NO_GIT_BASH:()=>$Ee,CLAUDE_CODE_TEST_FORCE_DENY:()=>PEe,CLAUDE_CODE_TEST_FIXTURES_ROOT:()=>yme,CLAUDE_CODE_TASK_LIST_ID:()=>Ime,CLAUDE_CODE_TAGS:()=>Cme,CLAUDE_CODE_SYSTEM_PROMPT_GB_FEATURE:()=>Eme,CLAUDE_CODE_SYNTAX_HIGHLIGHT:()=>MEe,CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS:()=>yCe,CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS:()=>ICe,CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS:()=>CCe,CLAUDE_CODE_SYNC_PLUGINS_DOWNLOAD_STALL_MS:()=>OEe,CLAUDE_CODE_SYNC_PLUGINS_BUFFERED_DOWNLOAD:()=>UEe,CLAUDE_CODE_SUPERVISED:()=>LEe,CLAUDE_CODE_SUBPROCESS_ENV_SCRUB:()=>NEe,CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING:()=>mme,CLAUDE_CODE_SSE_PORT:()=>ECe,CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT:()=>hme,CLAUDE_CODE_SIMPLE:()=>TEe,CLAUDE_CODE_SHELL_PREFIX:()=>gme,CLAUDE_CODE_SHELL:()=>fme,CLAUDE_CODE_SESSION_NAME:()=>pme,CLAUDE_CODE_SESSION_KIND:()=>dme,CLAUDE_CODE_SESSION_ID:()=>Ame,CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS:()=>mCe,CLAUDE_CODE_SCROLL_SPEED:()=>lme,CLAUDE_CODE_SCRIPT_CAPS:()=>hCe,CLAUDE_CODE_SANDBOXED:()=>REe,CLAUDE_CODE_RESUME_TOKEN_THRESHOLD:()=>gCe,CLAUDE_CODE_RESUME_THRESHOLD_MINUTES:()=>fCe,CLAUDE_CODE_RESUME_PROMPT:()=>ume,CLAUDE_CODE_RESUME_INTERRUPTED_TURN:()=>DEe,CLAUDE_CODE_RESUME_FROM_SESSION:()=>cme,CLAUDE_CODE_REPO_CHECKOUTS:()=>ame,CLAUDE_CODE_REPL:()=>kEe,CLAUDE_CODE_REMOTE_SETTINGS_POLL_MS:()=>pCe,CLAUDE_CODE_REMOTE_SETTINGS_PATH:()=>sme,CLAUDE_CODE_REMOTE_SESSION_ID:()=>ime,CLAUDE_CODE_REMOTE_SEND_KEEPALIVES:()=>SEe,CLAUDE_CODE_REMOTE_RAW_EVENTS_FILE:()=>ome,CLAUDE_CODE_REMOTE_MEMORY_DIR:()=>nme,CLAUDE_CODE_REMOTE_HERMETIC_MODE:()=>wEe,CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE:()=>rme,CLAUDE_CODE_REMOTE:()=>QEe,CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE:()=>tme,CLAUDE_CODE_QUESTION_PREVIEW_FORMAT:()=>eme,CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS:()=>dCe,CLAUDE_CODE_POWERUP_ONBOARDING:()=>Xhe,CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2:()=>vEe,CLAUDE_CODE_PLUGIN_SEED_DIR:()=>Khe,CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS:()=>ACe,CLAUDE_CODE_PLUGIN_CACHE_DIR:()=>Zhe,CLAUDE_CODE_PLAN_V2_EXPLORE_AGENT_COUNT:()=>lCe,CLAUDE_CODE_PLAN_V2_AGENT_COUNT:()=>uCe,CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE:()=>qhe,CLAUDE_CODE_PERFORCE_MODE:()=>Whe,CLAUDE_CODE_PARKED_PERMISSION_WAIT_MS:()=>FEe,CLAUDE_CODE_OVERRIDE_DATE:()=>Jhe,CLAUDE_CODE_MOCK_TRIAL:()=>_Ee,CLAUDE_CODE_MOCK_REMOTE_SETTINGS:()=>BEe,CLAUDE_CODE_MID_CONVERSATION_SYSTEM:()=>Vhe,CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT:()=>RCe,CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS:()=>TCe,CLAUDE_CODE_MCP_ALLOWLIST_ENV:()=>jhe,CLAUDE_CODE_MANAGED_SETTINGS_PATH:()=>Yhe,CLAUDE_CODE_LOOP_PERSISTENT:()=>bEe,CLAUDE_CODE_IS_COWORK:()=>xEe,CLAUDE_CODE_INVESTIGATE_FIRST:()=>yEe,CLAUDE_CODE_IDLE_TOKEN_THRESHOLD:()=>cCe,CLAUDE_CODE_IDLE_THRESHOLD_MINUTES:()=>aCe,CLAUDE_CODE_IDE_HOST_OVERRIDE:()=>zhe,CLAUDE_CODE_HOST_PLATFORM:()=>Ghe,CLAUDE_CODE_HIDE_SETTINGS_HINT:()=>Hhe,CLAUDE_CODE_GLOB_TIMEOUT_SECONDS:()=>sCe,CLAUDE_CODE_GIT_BASH_PATH:()=>$he,CLAUDE_CODE_FORCE_TIP_ID:()=>Phe,CLAUDE_CODE_FORCE_MEMORY_SURVEY:()=>IEe,CLAUDE_CODE_FORCE_FULL_LOGO:()=>CEe,CLAUDE_CODE_FORCE_FULLSCREEN_UPSELL:()=>EEe,CLAUDE_CODE_FORCE_EVALUATE_MEMORY:()=>mEe,CLAUDE_CODE_FORCE_BRIDGE:()=>hEe,CLAUDE_CODE_FABLE_BRIDGE_DIALOG_TIMEOUT_MS:()=>iCe,CLAUDE_CODE_EXIT_AFTER_STOP_DELAY:()=>oCe,CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER:()=>gEe,CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION:()=>Mhe,CLAUDE_CODE_ENVIRONMENT_KIND:()=>Fhe,CLAUDE_CODE_ENTRYPOINT:()=>Ohe,CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES:()=>fEe,CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS:()=>pEe,CLAUDE_CODE_DONT_INHERIT_ENV:()=>dEe,CLAUDE_CODE_DISABLE_WORKING_SYNC:()=>Uhe,CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP:()=>AEe,CLAUDE_CODE_DEV_RAW_CHANGELOG_URL:()=>Lhe,CLAUDE_CODE_DECSTBM:()=>Nhe,CLAUDE_CODE_DAEMON_COLD_START:()=>lEe,CLAUDE_CODE_CONTAINER_ID:()=>The,CLAUDE_CODE_CLASSIFIER_SUMMARY:()=>Rhe,CLAUDE_CODE_BRIEF_UPLOAD:()=>uEe,CLAUDE_CODE_BRIEF:()=>cEe,CLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE:()=>Dhe,CLAUDE_CODE_BASE_REFS:()=>khe,CLAUDE_CODE_BASE_REF:()=>She,CLAUDE_CODE_AUTO_MODE_EXTERNAL_PERMISSIONS:()=>aEe,CLAUDE_CODE_AUTO_COMPACT_WINDOW:()=>whe,CLAUDE_CODE_ARTIFACT_AUTO_OPEN:()=>vhe,CLAUDE_CODE_ARTIFACTS_API_BASE_URL:()=>Qhe,CLAUDE_CODE_ARTIFACT:()=>_he,CLAUDE_CODE_AGENT:()=>Bhe,CLAUDE_CODE_ADDITIONAL_PROTECTION:()=>sEe,CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD:()=>bhe,CLAUDE_CODE_ACTION:()=>xhe,CLAUDE_CLIENT_PRESENCE_FILE:()=>yhe,CLAUDE_CHROME_PERMISSION_MODE:()=>Ihe,CLAUDE_BRIDGE_SESSION_INGRESS_URL:()=>Che,CLAUDE_BRIDGE_REATTACH_SESSION:()=>Ehe,CLAUDE_BRIDGE_REATTACH_SEQ:()=>nCe,CLAUDE_BRIDGE_OAUTH_TOKEN:()=>mhe,CLAUDE_BRIDGE_BASE_URL:()=>hhe,CLAUDE_BG_STARTUP_WEDGE_MS:()=>rCe,CLAUDE_BG_SOURCE:()=>ghe,CLAUDE_BG_SOCKET_TOKENS_PATH:()=>fhe,CLAUDE_BG_RV_AUTH:()=>phe,CLAUDE_BG_RENDEZVOUS_SOCK:()=>dhe,CLAUDE_BG_PTY_AUTH:()=>Ahe,CLAUDE_BG_POST_CLEAR_RESPAWN:()=>lhe,CLAUDE_BG_ISOLATION:()=>uhe,CLAUDE_BG_CLAIM_AUTH:()=>che,CLAUDE_BG_BACKEND:()=>ahe,CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR:()=>iEe,CLAUDE_AUTO_BACKGROUND_TASKS:()=>oEe,CLAUDE_AUTOCOMPACT_PCT_OVERRIDE:()=>she,CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS:()=>tCe,CLAUDE_AGENT_SDK_VERSION:()=>ihe,CLAUDE_AGENT_SDK_MCP_NO_PREFIX:()=>nEe,CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS:()=>rEe,CLAUDE_AGENT_SDK_CLIENT_APP:()=>ohe,CLAUDE_AGENTS_SELECT:()=>nhe,CLAUDE_AFTER_LAST_COMPACT:()=>rhe,CLAUDE_AFK_TIMEOUT_MS:()=>eCe,CLAUDE_AFK_COUNTDOWN_MS:()=>XEe,CLAUDECODE:()=>tEe,CLAUBBIT:()=>eEe,BASH_MAX_OUTPUT_LENGTH:()=>KEe,ANTHROPIC_CONFIG_DIR:()=>the,ALLOW_ANT_COMPUTER_USE_MCP:()=>Xme,AI_AGENT:()=>Kme});var the=l.str(),rhe=l.str(),nhe=l.str(),ohe=l.str(),ihe=l.str(),she=l.str(),ahe=l.str(),che=l.str(),uhe=l.str(),lhe=l.bool(),Ahe=l.str(),dhe=l.str(),phe=l.str(),fhe=l.str(),ghe=l.str(),hhe=l.str(),mhe=l.str(),Ehe=l.str(),Che=l.str(),Ihe=l.str(),yhe=l.str(),xhe=l.str(),bhe=l.str(),Bhe=l.str(),_he=l.str(),vhe=l.str(),Qhe=l.str(),whe=l.str(),She=l.str(),khe=l.str(),Dhe=l.str(),Rhe=l.str(),The=l.str(),Nhe=l.str(),Lhe=l.str(),Uhe=l.bool(),Ohe=l.str(),Fhe=l.str(),Mhe=l.str(),Phe=l.str(),$he=l.str(),Hhe=l.str(),Ghe=l.str(),zhe=l.str(),Yhe=l.str(),jhe=l.str(),Vhe=l.str(),Jhe=l.str(),Whe=l.str(),qhe=l.str(),Zhe=l.str(),Khe=l.str(),Xhe=l.str(),eme=l.str(),tme=l.str(),rme=l.str(),nme=l.str(),ome=l.str(),ime=l.str(),sme=l.str(),ame=l.str(),cme=l.str(),ume=l.str(),lme=l.str(),Ame=l.str(),dme=l.str(),pme=l.str(),fme=l.str(),gme=l.str(),hme=l.str(),mme=l.str(),Eme=l.str(),Cme=l.str(),Ime=l.str(),yme=l.str(),xme=l.str(),bme=l.str(),Bme=l.str(),_me=l.str(),vme=l.str(),Qme=l.str(),wme=l.str(),Sme=l.str(),kme=l.str(),Dme=l.str(),Rme=l.str(),Tme=l.str(),Nme=l.str(),Lme=l.str(),Ume=l.str(),Ome=l.str(),Fme=l.str(),Mme=l.str(),Pme=l.str(),$me=l.str(),Hme=l.str(),Gme=l.str(),zme=l.str(),Yme=l.str(),jme=l.str(),Vme=l.str(),Jme=l.str(),Wme=l.str(),qme=l.str(),Zme=l.str(),Kme=l.bool(),Xme=l.bool(),eEe=l.bool(),tEe=l.bool(),rEe=l.bool(),nEe=l.bool(),oEe=l.bool(),iEe=l.bool(),sEe=l.bool(),aEe=l.bool(),cEe=l.bool(),uEe=l.bool(),lEe=l.bool(),AEe=l.bool(),dEe=l.bool(),pEe=l.bool(),fEe=l.bool(),gEe=l.bool(),hEe=l.bool(),mEe=l.bool(),EEe=l.bool(),CEe=l.bool(),IEe=l.bool(),yEe=l.bool(),xEe=l.bool(),bEe=l.bool(),BEe=l.bool(),_Ee=l.bool(),vEe=l.bool(),QEe=l.bool(),wEe=l.bool(),SEe=l.bool(),kEe=l.bool(),DEe=l.bool(),REe=l.bool(),TEe=l.bool(),NEe=l.bool(),LEe=l.bool(),UEe=l.bool(),OEe=l.int({min:1}),FEe=l.int({min:0}),MEe=l.bool(),PEe=l.bool(),$Ee=l.bool(),HEe=l.bool(),GEe=l.bool(),zEe=l.bool(),YEe=l.str(),jEe=l.bool(),VEe=l.bool(),JEe=l.bool(),WEe=l.bool(),qEe=l.bool(),ZEe=l.bool(),KEe=l.int(),XEe=l.int(),eCe=l.int(),tCe=l.int(),rCe=l.int(),nCe=l.int(),oCe=l.int(),iCe=l.int(),sCe=l.int(),aCe=l.int(),cCe=l.int(),uCe=l.int(),lCe=l.int(),ACe=l.int(),dCe=l.int(),pCe=l.int(),fCe=l.int(),gCe=l.int(),hCe=l.int(),mCe=l.int(),ECe=l.int(),CCe=l.int(),ICe=l.int(),yCe=l.int(),xCe=l.int(),bCe=l.int(),BCe=l.int(),_Ce=l.int(),vCe=l.int(),QCe=l.int(),wCe=l.int(),SCe=l.int(),kCe=l.int(),DCe=l.int(),RCe=l.int(),TCe=l.int(),NCe=l.int(),LCe=l.int();var TQ={};ht(TQ,{FALLBACK_FOR_ALL_PRIMARY_MODELS:()=>oIe,CLAUDE_CONTEXT_COLLAPSE_MODEL:()=>rIe,CLAUDE_CONTEXT_COLLAPSE:()=>nIe,CLAUDE_CODE_SUBAGENT_MODEL:()=>XCe,CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK:()=>dIe,CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS:()=>AIe,CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE:()=>lIe,CLAUDE_CODE_ENABLE_OPUS_4_7_FAST_MODE:()=>uIe,CLAUDE_CODE_EFFORT_LEVEL:()=>sIe,CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP:()=>iIe,CLAUDE_CODE_DISABLE_FAST_MODE:()=>cIe,CLAUDE_CODE_DISABLE_1M_CONTEXT:()=>pIe,CLAUDE_CODE_BG_CLASSIFIER_MODEL:()=>tIe,CLAUDE_CODE_AUTO_MODE_MODEL:()=>eIe,CLAUDE_CODE_ALWAYS_ENABLE_EFFORT:()=>aIe,ANTHROPIC_SMALL_FAST_MODEL:()=>OCe,ANTHROPIC_MODEL:()=>UCe,ANTHROPIC_DEFAULT_SONNET_MODEL_NAME:()=>YCe,ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION:()=>jCe,ANTHROPIC_DEFAULT_SONNET_MODEL:()=>zCe,ANTHROPIC_DEFAULT_OPUS_MODEL_NAME:()=>HCe,ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION:()=>GCe,ANTHROPIC_DEFAULT_OPUS_MODEL:()=>$Ce,ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME:()=>JCe,ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION:()=>WCe,ANTHROPIC_DEFAULT_HAIKU_MODEL:()=>VCe,ANTHROPIC_DEFAULT_FABLE_MODEL_NAME:()=>MCe,ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION:()=>PCe,ANTHROPIC_DEFAULT_FABLE_MODEL:()=>FCe,ANTHROPIC_CUSTOM_MODEL_OPTION_NAME:()=>ZCe,ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION:()=>KCe,ANTHROPIC_CUSTOM_MODEL_OPTION:()=>qCe});var UCe=l.str(),OCe=l.str(),FCe=l.str(),MCe=l.str(),PCe=l.str(),$Ce=l.str(),HCe=l.str(),GCe=l.str(),zCe=l.str(),YCe=l.str(),jCe=l.str(),VCe=l.str(),JCe=l.str(),WCe=l.str(),qCe=l.str(),ZCe=l.str(),KCe=l.str(),XCe=l.str(),eIe=l.str(),tIe=l.str(),rIe=l.str(),nIe=l.bool(),oIe=l.str(),iIe=l.bool(),sIe=l.str(),aIe=l.bool(),cIe=l.bool(),uIe=l.bool(),lIe=l.str(),AIe=l.bool(),dIe=l.bool(),pIe=l.bool();var NQ={};ht(NQ,{NO_PROXY:()=>hIe,MAX_THINKING_TOKENS:()=>RIe,MAX_STRUCTURED_OUTPUT_RETRIES:()=>TIe,MAX_MCP_OUTPUT_TOKENS:()=>NIe,HTTP_PROXY:()=>fIe,HTTPS_PROXY:()=>gIe,CLAUDE_STREAM_IDLE_TIMEOUT_MS:()=>HIe,CLAUDE_SLOW_FIRST_BYTE_MS:()=>GIe,CLAUDE_MOCK_HEADERLESS_429:()=>VIe,CLAUDE_ENABLE_STREAM_WATCHDOG:()=>PIe,CLAUDE_ENABLE_BYTE_WATCHDOG:()=>MIe,CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS:()=>JIe,CLAUDE_CODE_RETRY_WATCHDOG:()=>zIe,CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS:()=>WIe,CLAUDE_CODE_MAX_TURNS:()=>DIe,CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY:()=>kIe,CLAUDE_CODE_MAX_RETRIES:()=>vIe,CLAUDE_CODE_MAX_OUTPUT_TOKENS:()=>QIe,CLAUDE_CODE_MAX_CONTEXT_TOKENS:()=>wIe,CLAUDE_CODE_GZIP_REQUEST_BODIES:()=>$Ie,CLAUDE_CODE_FORCE_SYNC_OUTPUT:()=>jIe,CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS:()=>SIe,CLAUDE_CODE_EXTRA_METADATA:()=>BIe,CLAUDE_CODE_EXTRA_BODY:()=>bIe,CLAUDE_CODE_EAGER_FLUSH:()=>YIe,CLAUDE_CODE_CLIENT_KEY_PASSPHRASE:()=>CIe,CLAUDE_CODE_CLIENT_KEY:()=>EIe,CLAUDE_CODE_CLIENT_CERT:()=>mIe,CLAUDE_CODE_CERT_STORE:()=>IIe,CLAUDE_CODE_ATTRIBUTION_HEADER:()=>_Ie,API_TIMEOUT_MS:()=>LIe,API_TARGET_INPUT_TOKENS:()=>FIe,API_MAX_INPUT_TOKENS:()=>OIe,API_FORCE_IDLE_TIMEOUT:()=>UIe,ANTHROPIC_CUSTOM_HEADERS:()=>xIe,ANTHROPIC_BETAS:()=>yIe});var fIe=l.str(),gIe=l.str(),hIe=l.str(),mIe=l.str(),EIe=l.str(),CIe=l.str(),IIe=l.str(),yIe=l.str(),xIe=l.str(),bIe=l.str(),BIe=l.str(),_Ie=l.str(),vIe=l.int(),QIe=l.int(),wIe=l.int(),SIe=l.int(),kIe=l.int(),DIe=l.str(),RIe=l.int(),TIe=l.int(),NIe=l.int(),LIe=l.int(),UIe=l.int(),OIe=l.int(),FIe=l.int(),MIe=l.bool(),PIe=l.triBool(),$Ie=l.triBool(),HIe=l.int(),GIe=l.int(),zIe=l.bool(),YIe=l.bool(),jIe=l.bool(),VIe=l.bool(),JIe=l.int(),WIe=l.int({min:0});var LQ={};ht(LQ,{_CLAUDE_CODE_ASSUME_FIRST_PARTY_BASE_URL:()=>rye,CLOUD_ML_REGION:()=>Aye,CLAUDE_GATEWAY_LOG_LEVEL:()=>wye,CLAUDE_GATEWAY_ALLOW_LOOPBACK:()=>Qye,CLAUDE_CODE_USE_VERTEX:()=>ZIe,CLAUDE_CODE_USE_MANTLE:()=>eye,CLAUDE_CODE_USE_FOUNDRY:()=>KIe,CLAUDE_CODE_USE_BEDROCK:()=>qIe,CLAUDE_CODE_USE_ANTHROPIC_AWS:()=>XIe,CLAUDE_CODE_SKIP_HFI_VERSION_CHECK:()=>Fye,CLAUDE_CODE_SIMULATE_PROXY_USAGE:()=>_ye,CLAUDE_CODE_PROXY_RESOLVES_HOSTS:()=>vye,CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST:()=>Bye,CLAUDE_CODE_GB_REFRESH_INTERVAL_MS:()=>Dye,CLAUDE_CODE_GB_BASE_URL:()=>kye,CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY:()=>Sye,CLAUDE_CODE_API_BASE_URL:()=>nye,CLAUDE_CODE_AGENT_PROXY_GIT_CONFIG:()=>Tye,CLAUDE_CODE_AGENT_PROXY_GH_SHIM:()=>Nye,CCR_FORCE_BUNDLE:()=>Uye,CCR_ENABLE_BUNDLE:()=>Lye,CCR_AGENT_PROXY_ENABLED:()=>Rye,AWS_SHARED_CREDENTIALS_FILE:()=>Eye,AWS_SESSION_TOKEN:()=>yye,AWS_SECRET_ACCESS_KEY:()=>Iye,AWS_REGION:()=>fye,AWS_PROFILE:()=>hye,AWS_DEFAULT_REGION:()=>gye,AWS_CONFIG_FILE:()=>mye,AWS_ACCESS_KEY_ID:()=>Cye,ANTHROPIC_VERTEX_PROJECT_ID:()=>lye,ANTHROPIC_VERTEX_BASE_URL:()=>uye,ANTHROPIC_UNIX_SOCKET:()=>bye,ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION:()=>xye,ANTHROPIC_FOUNDRY_RESOURCE:()=>pye,ANTHROPIC_FOUNDRY_BASE_URL:()=>dye,ANTHROPIC_BEDROCK_SERVICE_TIER:()=>iye,ANTHROPIC_BEDROCK_MANTLE_BASE_URL:()=>sye,ANTHROPIC_BEDROCK_BASE_URL:()=>oye,ANTHROPIC_BASE_URL:()=>tye,ANTHROPIC_AWS_WORKSPACE_ID:()=>cye,ANTHROPIC_AWS_BASE_URL:()=>aye,AGENT_PROXY_URL:()=>Oye});var qIe=l.bool(),ZIe=l.bool(),KIe=l.bool(),XIe=l.bool(),eye=l.bool(),tye=l.str(),rye=l.bool(),nye=l.str(),oye=l.str(),iye=l.str(),sye=l.str(),aye=l.str(),cye=l.str(),uye=l.str(),lye=l.str(),Aye=l.str(),dye=l.str(),pye=l.str(),fye=l.str(),gye=l.str(),hye=l.str(),mye=l.str(),Eye=l.str(),Cye=l.str(),Iye=l.str(),yye=l.str(),xye=l.str(),bye=l.str(),Bye=l.bool(),_ye=l.bool(),vye=l.bool(),Qye=l.bool(),wye=l.str(),Sye=l.bool(),kye=l.str(),Dye=l.int(),Rye=l.bool(),Tye=l.bool(),Nye=l.bool(),Lye=l.bool(),Uye=l.bool(),Oye=l.str(),Fye=l.bool();var Mye={...QQ,...LQ,...TQ,...kQ,...NQ,...DQ,...wQ,...RQ};function R1(e,t){let r=Object.create(t);for(let[n,o]of Object.entries(e)){let i=r,s;Object.defineProperty(r,n,{get:()=>{let a=process.env[n];if(a!==i)s=o.parse(a),i=a;return s},enumerable:!0,configurable:!0})}return Object.defineProperties(r,{set:{value:(n,o)=>{process.env[n]=d1(o)}},unset:{value:(n)=>{delete process.env[n]}}}),r}var Zn=R1(Mye,md),Pye={},put=R1(Pye,null);fr();Zt();function Ph(e){let t=Promise.resolve();return()=>{let r=t.then(e);return t=r.catch(()=>{}),r}}var T1=["bundled","system"],UQ=new Set;function Ci(e){if(UQ.has(e))return!1;return UQ.add(e),!0}var Dn=null,_ut=Ph(async()=>{let e=Zn.NODE_EXTRA_CA_CERTS;if(!e){if(Dn!==null)return Dn=null,N1(),!0;return!1}try{let t=await De().readFile(e,{encoding:"utf8"});if(Dn?.path===e&&Dn.content===t)return!1;Dn={path:e,content:t}}catch(t){if(Q(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${e}): ${t}`,{level:"error"}),Ci("read_failed"))zn("ca_certs_load","read_failed");if(Dn===null)return!1;Dn=null}return N1(),!0});function $ye(){let e=Zn.CLAUDE_CODE_CERT_STORE;if(e){let t=[];for(let r of e.split(",")){let n=r.trim().toLowerCase();if(n==="bundled"||n==="system"){if(!t.includes(n))t.push(n)}else if(n){if(Q(`CA certs: unrecognized CLAUDE_CODE_CERT_STORE source '${n}', ignoring`,{level:"warn"}),Ci("parse_skip"))Kt("ca_certs_load","parse_skip")}}if(t.length===0&&Ci("parse_all_invalid"))Kt("ca_certs_load","parse_all_invalid");return t.length>0?t:T1}if(MB("--use-system-ca")||MB("--use-openssl-ca"))return["system"];return T1}function Hye(e){let{X509Certificate:t}=v("node:crypto"),r=Date.now(),n=0,o=e.filter((i)=>{try{let s=new t(i),a=new Date(s.validTo).getTime();if(Number.isNaN(a)||a>r)return!0;return n++,!1}catch{return!0}});if(n>0){if(Q(`CA certs: Dropped ${n} expired certificate(s) from system store`),Ci("expired_dropped"))Kt("ca_certs_load","expired_dropped",{dropped_count:n})}return o}var Ed=X(()=>{let e=$ye(),t=Zn.NODE_EXTRA_CA_CERTS,r=e.includes("bundled"),n=e.includes("system");Q(`CA certs: stores=${e.join(",")}, extraCertsPath=${t}`);let o=v("tls"),i=o.getCACertificates;if(!r&&n&&!i){if(Q("CA certs: stores=system but system CA API unavailable, deferring to runtime"),Ci("system_api_unavailable"))Kt("ca_certs_load","system_api_unavailable");return}let s=[];if(r)s.push(...o.rootCertificates),Q(`CA certs: Loaded ${o.rootCertificates.length} bundled root certificates`);if(n)try{let c=i?.("system");if(c&&c.length>0){let u=Hye(c);s.push(...u),Q(`CA certs: Loaded ${u.length} system CA certificates`)}else if(Q(`CA certs: system store ${i?"returned empty":"unavailable"}`),!r)s.push(...o.rootCertificates)}catch(c){if(Q(`CA certs: Failed to load system CA certificates: ${c}`,{level:"error"}),Ci("system_store_failed"))Kt("ca_certs_load","system_store_failed");if(!r)s.push(...o.rootCertificates)}if(t){if(Dn?.path!==t)try{let c=De().readFileSync(t,{encoding:"utf8"});Dn={path:t,content:c}}catch(c){if(Q(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${t}): ${c}`,{level:"error"}),Ci("read_failed"))zn("ca_certs_load","read_failed")}if(Dn?.path===t)s.push(Dn.content),Q(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${t})`)}let a=s.length>0?Cc(s):void 0;if(UQ.size===0&&Ci("ok"))Mr("ca_certs_load",{cert_count:a?.length??0,store_bundled:r,store_system:n,extra_configured:Boolean(t)});return a});function N1(){Ed.cache?.clear?.(),Q("Cleared CA certificates cache")}function OQ(e,t){let r=t.lastIndexOf("/");if(r<0)return!1;let n=t.slice(0,r),o=t.slice(r+1);if(!/^\d+$/.test(o))return!1;let i=parseInt(o,10),s=L1(n);if(!s)return!1;if(s.zone)return!1;let a=L1(e);if(!a)return!1;let c=zye(a.bytes),u=s.bytes;if(c.length!==u.length)return!1;let A=u.length*8;if(i<0||i>A)return!1;return Gye(c,u,i)}function Gye(e,t,r){let n=r>>3;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;let o=r&7;if(o===0)return!0;let i=255<<8-o&255;return((e[n]??0)&i)===((t[n]??0)&i)}function zye(e){if(e.length!==16)return e;for(let t=0;t<10;t++)if(e[t]!==0)return e;if(e[10]!==255||e[11]!==255)return e;return e.slice(12)}function L1(e){if(e==="")return null;let t="",r=e,n=e.indexOf("%");if(n>=0)t=e.slice(n+1),r=e.slice(0,n);if(r.includes(":")){let i=Yye(r);return i?{bytes:i,zone:t}:null}if(t)return null;let o=U1(r);return o?{bytes:o,zone:""}:null}function U1(e){let t=e.split(".");if(t.length!==4)return null;let r=new Uint8Array(4);for(let n=0;n<4;n++){let o=t[n];if(o===void 0||o===""||!/^\d{1,3}$/.test(o))return null;if(o.length>1&&o.startsWith("0"))return null;let i=parseInt(o,10);if(i>255)return null;r[n]=i}return r}function Yye(e){let t=null,r=e,n=e.lastIndexOf(":");if(n>=0&&e.slice(n+1).includes(".")){if(t=U1(e.slice(n+1)),!t)return null;r=e.slice(0,n+1)}let o=r.split("::");if(o.length>2)return null;let i=[],s=(c,u)=>{if(c==="")return[];let A=c.split(":"),p=[];for(let d=0;d<A.length;d++){let f=A[d];if(f===""&&u&&d===A.length-1)continue;if(f===void 0||f===""||!/^[0-9a-fA-F]{1,4}$/.test(f))return null;p.push(parseInt(f,16))}return p};if(o.length===1){let c=o[0]??"",u=s(c,t!==null);if(!u)return null;i.push(...u);let A=t?6:8;if(i.length!==A)return null}else{let c=o[0]??"",u=o[1]??"",A=s(c,!1),p=s(u,t!==null);if(!A||!p)return null;let d=t?2:0,f=8-A.length-p.length-d;if(f<1)return null;i.push(...A);for(let g=0;g<f;g++)i.push(0);if(i.push(...p),i.length+d!==8)return null}let a=new Uint8Array(16);for(let c=0;c<i.length;c++){let u=i[c];if(u===void 0)return null;a[c*2]=u>>8&255,a[c*2+1]=u&255}if(t)a[12]=t[0]??0,a[13]=t[1]??0,a[14]=t[2]??0,a[15]=t[3]??0;return a}nt();fr();sr();nt();Zt();var Rs=null,Ts=null;function O1(e,t){try{let r=De().readFileSync(e,{encoding:"utf8"});return Q(`mTLS: Loaded ${t}`),{path:e,content:r}}catch(r){return Q(`mTLS: Failed to load ${t}: ${r}`,{level:"error"}),null}}async function F1(e,t){try{let r=await De().readFile(e,{encoding:"utf8"});return Q(`mTLS: Loaded ${t}`),{path:e,content:r}}catch(r){return Q(`mTLS: Failed to load ${t}: ${r}`,{level:"error"}),null}}var Nut=Ph(async()=>{let e=Zn.CLAUDE_CODE_CLIENT_CERT,t=Zn.CLAUDE_CODE_CLIENT_KEY,[r,n]=await Promise.all([e?F1(e,"client certificate from CLAUDE_CODE_CLIENT_CERT"):null,t?F1(t,"client key from CLAUDE_CODE_CLIENT_KEY"):null]),o=Rs?.path!==r?.path||Rs?.content!==r?.content||Ts?.path!==n?.path||Ts?.content!==n?.content;if(Rs=r,Ts=n,o)Vye();return o});var $h=X(()=>{let e={},t=Zn.CLAUDE_CODE_CLIENT_CERT;if(t){if(Rs?.path!==t)Rs=O1(t,"client certificate from CLAUDE_CODE_CLIENT_CERT");if(Rs?.path===t)e.cert=Rs.content}let r=Zn.CLAUDE_CODE_CLIENT_KEY;if(r){if(Ts?.path!==r)Ts=O1(r,"client key from CLAUDE_CODE_CLIENT_KEY");if(Ts?.path===r)e.key=Ts.content}let n=Zn.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE;if(n)e.passphrase=n,Q("mTLS: Using client key passphrase");if(Object.keys(e).length===0)return;return e}),jye=null;function Oc(){let e=$h(),t=Ed();if(!e&&!t)return{};return{tls:{...e,...t&&{ca:t}}}}function Vye(){$h.cache.clear?.(),jye=null,Q("Cleared mTLS configuration cache")}eQ();var dLe=!1;var pLe=["https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY"];function fLe(e=process.env){let t=pLe.find((n)=>e[n]),r=t?e[t]:void 0;return t&&r?{value:r,source:t}:void 0}function gLe(e){try{let t=new URL(e);return t.host?t:void 0}catch{return}}function hLe(e,t){let r=t.replace(/\p{Cc}/gu,"");return`Invalid proxy URL in ${e}: "${r}" cannot be parsed as a URL.
159
159
  Proxy settings must be a complete URL including the scheme, e.g. "http://proxy.example.com:8080".
160
160
  Fix or unset ${e} and restart Claude Code.`}var T4=new Set;function mLe(e=process.env){let t=fLe(e);if(!t)return;if(!gLe(t.value)){let r=`${t.source}=${t.value}`;if(!T4.has(r))T4.add(r),console.error(hLe(t.source,t.value));return}return t.value}function L4(e=process.env){return e.no_proxy||e.NO_PROXY}function U4(e,t=L4()){if(!t)return!1;if(t==="*")return!0;try{let r=new URL(e),n=r.hostname.toLowerCase(),o=r.port||(r.protocol==="https:"?"443":"80"),i=`${n}:${o}`;return t.split(/[,\s]+/).filter(Boolean).some((a)=>{if(a=a.toLowerCase().trim(),a.includes(":"))return i===a;if(a.startsWith(".")){let c=a;return n===a.substring(1)||n.endsWith(c)}return n===a})}catch{return!1}}function N4(e,t){if(U4(e,t))return!0;if(!t)return!1;let r;try{r=new URL(e).hostname.replace(/^\[|\]$/g,"")}catch{return!1}if(R4(r)===0)return!1;return t.split(/[,\s]+/).filter(Boolean).some((n)=>{if(n.includes("/"))return OQ(r,n);let o=R4(n);if(o===0)return!1;return OQ(r,`${n}/${o===4?32:128}`)})}var TAt=X((e)=>{let t=D4(),r=$h(),n=Ed(),o={httpProxy:e,httpsProxy:e,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(r||n){let i={...r&&{cert:r.cert,key:r.key,passphrase:r.passphrase},...n&&{ca:n}};o.connect=i,o.requestTls=i}return new t.EnvHttpProxyAgent(o)});var ELe=null;function CLe(){return ELe?.value??null}function sk(e){let t=process.env.API_FORCE_IDLE_TIMEOUT,r=e.forAnthropicAPI&&!he(t)&&(e.hasBodyIdleWatchdog||va(t)),n={...dLe&&{keepalive:!1},...r&&{timeout:!1}};if(e.forAnthropicAPI){let i=process.env.ANTHROPIC_UNIX_SOCKET;if(i)return{...n,unix:i}}let o=mLe();if(o){if(e.url&&U4(e.url))return{...n,...Oc()};let i=CLe();return{...n,proxy:i?{url:o,headers:{"Proxy-Authorization":i}}:o,...Oc()}}if(e.fallbackProxy){if(e.url&&(N4(e.url,e.fallbackProxy.noProxy)||N4(e.url,L4())))return{...n,...Oc()};let i=Oc();return{...n,proxy:e.fallbackProxy.url,...e.fallbackProxy.ca?{tls:{...i.tls,ca:e.fallbackProxy.ca}}:i}}return{...n,...Oc()}}ul();Ac();fr();var ILe=30000;function yLe(){return{activityCallback:null,refcount:0,mainLoopRefcount:0,activeReasons:new Map,oldestActivityStartedAt:null,heartbeatTimer:null,idleTimer:null,cleanupHandle:null}}var xLe="cli",O4=()=>xLe;var ak=new Map;function bLe(){let e=O4(),t=ak.get(e);if(!t)t=yLe(),ak.set(e,t);return t}function BLe(){return ak.get(O4())??null}function _Le(e){F4(e),e.heartbeatTimer=setInterval((t)=>{if(ae("debug","session_keepalive_heartbeat",{refcount:t.refcount}),he(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))t.activityCallback?.()},ILe,e)}function F4(e){if(e.idleTimer!==null)clearTimeout(e.idleTimer),e.idleTimer=null}function M4(e){let t=bLe();if(t.activityCallback=e,t.refcount>0&&t.heartbeatTimer===null)_Le(t)}function P4(){let e=BLe();if(!e)return;if(e.activityCallback=null,e.heartbeatTimer!==null)clearInterval(e.heartbeatTimer),e.heartbeatTimer=null;F4(e)}Cn();import{mkdirSync as NLe,writeFileSync as LLe}from"fs";Cn();nt();fr();Rt();import{closeSync as DLe,fchmodSync as Udt,constants as Odt,fstatSync as Fdt,writeFileSync as Mdt,fsyncSync as Pdt,openSync as RLe,readSync as TLe}from"fs";bs();ho();Rt();var $At=new Int32Array(new SharedArrayBuffer(4));nt();fr();Rt();nt();Zt();Zt();XA();In();ho();Zt();sr();nt();Zt();fQ();import*as Cp from"path/win32";ed();var KAt=X(()=>{let{existsSync:e}=De();if(process.env.CLAUDE_CODE_GIT_BASH_PATH){if(e(process.env.CLAUDE_CODE_GIT_BASH_PATH))return process.env.CLAUDE_CODE_GIT_BASH_PATH;console.error(`Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path "${process.env.CLAUDE_CODE_GIT_BASH_PATH}"`),process.exit(1)}let t=["C:\\Program Files\\Git\\bin\\bash.exe","C:\\Program Files (x86)\\Git\\bin\\bash.exe"];for(let n of t)if(e(n))return n;let r=Xv("git");if(r){let n=Cp.join(r,"..","..","bin","bash.exe");if(e(n))return n}return null});var XAt=_s((e)=>{if(e.startsWith("\\\\"))return e.replaceAll("\\","/");let t=e.match(/^([A-Za-z]):[/\\]/);if(t)return"/"+t[1].toLowerCase()+e.slice(2).replaceAll("\\","/");return e.replaceAll("\\","/")},(e)=>e,500),QLe=_s((e)=>{if(e.startsWith("//"))return e.replaceAll("/","\\");let t=e.match(/^\/cygdrive\/([A-Za-z])(\/|$)/);if(t){let n=t[1].toUpperCase(),o=e.slice(("/cygdrive/"+t[1]).length);return n+":"+(o||"\\").replaceAll("/","\\")}let r=e.match(/^\/([A-Za-z])(\/|$)/);if(r){let n=r[1].toUpperCase(),o=e.slice(2);return n+":"+(o||"\\").replaceAll("/","\\")}return e.replaceAll("/","\\")},(e)=>e,500);In();fr();In();ed();import{execFile as wLe}from"child_process";import{promisify as SLe}from"util";var sdt=SLe(wLe);var gdt=Buffer.from('{"type":"attribution-snapshot"'),hdt=Buffer.from('{"type":"system"'),kLe=10,mdt=Buffer.from([kLe]);qt();function ck(e,{maxBytes:t}){let o=[];try{const r=Ye(o,et`fs.readBoundedSync(${e}, max ${t} bytes)`,0);let n=RLe(e,"r");try{let c=[],u=0,A=Buffer.alloc(8192);while(!0){let p=TLe(n,A,0,A.length,null);if(p===0)return Buffer.concat(c).toString("utf8");if(u+=p,u>t)throw new Kg(`refusing to read ${e}: content exceeds ${t} byte limit`,"readBoundedSync: content exceeds byte limit");c.push(Buffer.from(A.subarray(0,p)))}}finally{DLe(n)}}catch(i){var s=i,a=1}finally{je(o,s,a)}}Zt();var yE="/home/claude/.claude/remote",fpt=`${yE}/.oauth_token`,gpt=`${yE}/.api_key`,xE=`${yE}/.session_ingress_token`,$4=65536;function H4(e,t,r){if(!he(process.env.CLAUDE_CODE_REMOTE))return;try{NLe(yE,{recursive:!0,mode:448}),LLe(e,t,{encoding:"utf8",mode:384}),Q(`Persisted ${r} to ${e} for subprocess access`)}catch(n){Q(`Failed to persist ${r} to disk (non-fatal): ${Be(n)}`,{level:"error"})}}function uk(e,t){try{let n=De().readFileSync(e,{encoding:"utf8"}).trim();if(!n)return null;return Q(`Read ${t} from well-known file ${e}`),n}catch(r){if(!zA(r))Q(`Failed to read ${t} from ${e}: ${Be(r)}`,{level:"debug"});return null}}nt();Rt();function ULe(){let e=iL();if(e!==void 0)return e;let t=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!t){let n=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??xE,o=uk(n,"session ingress token");return wa(o),o}let r=parseInt(t,10);if(Number.isNaN(r))return Q(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${t}`,{level:"error"}),wa(null),null;try{let n=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${r}`:`/proc/self/fd/${r}`,o=ck(n,{maxBytes:$4}).trim();if(!o)return Q("File descriptor contained empty token",{level:"error"}),wa(null),null;return Q(`Successfully read token from file descriptor ${r}`),wa(o),H4(xE,o,"session ingress token"),o}catch(n){Q(`Failed to read token from file descriptor ${r}: ${Be(n)}`,{level:"error"});let o=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??xE,i=uk(o,"session ingress token");return wa(i),i}}function lk(){let e=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(e)return e;return ULe()}function bE(){let e=lk();if(!e)return{};if(e.startsWith("sk-ant-sid")){let t={Cookie:`sessionKey=${e}`},r=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(r)t["X-Organization-Uuid"]=r;return t}return{Authorization:`Bearer ${e}`}}function G4(e){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=e}qt();qt();class ra extends Error{retryAfterMs;constructor(e,t){super(e);this.retryAfterMs=t}}class Ip{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(e){this.config=e}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(e){if(this.closed)return;let t=Array.isArray(e)?e:[e];if(t.length===0)return;while(this.pending.length+t.length>this.config.maxQueueSize&&!this.closed)await new Promise((r)=>{this.backpressureResolvers.push(r)});if(this.closed)return;this.pending.push(...t),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((e)=>{this.flushResolvers.push(e)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let e of this.backpressureResolvers)e();this.backpressureResolvers=[];for(let e of this.flushResolvers)e();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let e=0;try{while(this.pending.length>0&&!this.closed){let t=this.takeBatch();if(t.length===0)continue;try{await this.config.send(t),e=0}catch(r){if(e++,this.config.maxConsecutiveFailures!==void 0&&e>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(t.length,e),e=0,this.releaseBackpressure();continue}this.pending=t.concat(this.pending);let n=r instanceof ra?r.retryAfterMs:void 0;await this.sleep(this.retryDelay(e,n));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let t of this.flushResolvers)t();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:e,maxBatchBytes:t}=this.config;if(t===void 0)return this.pending.splice(0,e);let r=0,n=0;while(n<this.pending.length&&n<e){let o;try{o=Buffer.byteLength(_t(this.pending[n]))}catch{this.pending.splice(n,1);continue}if(n>0&&r+o>t)break;r+=o,n++}return this.pending.splice(0,n)}retryDelay(e,t){let r=Math.random()*this.config.jitterMs;if(t!==void 0)return Math.max(this.config.baseDelayMs,Math.min(t,this.config.maxDelayMs))+r;return Math.min(this.config.baseDelayMs*2**(e-1),this.config.maxDelayMs)+r}releaseBackpressure(){let e=this.backpressureResolvers;this.backpressureResolvers=[];for(let t of e)t()}sleep(e){return new Promise((t)=>{this.sleepResolve=t,setTimeout((r,n)=>{r.sleepResolve=null,n()},e,this,t)})}}class Ak{inflight=null;pending=null;closed=!1;config;constructor(e){this.config=e}enqueue(e){if(this.closed)return;this.pending=this.pending?z4(this.pending,e):e,this.drain()}close(){this.closed=!0,this.pending=null}async flush(){while(!this.closed)if(this.inflight)await this.inflight;else if(this.pending)await this.drain();else return}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let e=this.pending;this.pending=null,this.inflight=this.sendWithRetry(e).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(e){let t=e,r=0;while(!this.closed){if(await this.config.send(t))return;if(r++,await qn(this.retryDelay(r)),this.pending&&!this.closed)t=z4(t,this.pending),this.pending=null}}retryDelay(e){let t=Math.min(this.config.baseDelayMs*2**(e-1),this.config.maxDelayMs),r=Math.random()*this.config.jitterMs;return t+r}}function z4(e,t){let r={...e};for(let[n,o]of Object.entries(t))if((n==="external_metadata"||n==="internal_metadata")&&r[n]&&typeof r[n]==="object"&&typeof o==="object"&&o!==null)r[n]={...r[n],...o};else r[n]=o;return r}var OLe=20000,FLe=1e4,MLe=300000,PLe=100,j4=61440,dk=1536;function na(e){return e===400||e===413||e===422}function V4(e){let t=mr(e);if(t)return t;if(e&&typeof e==="object"&&"name"in e&&typeof e.name==="string")return e.name;return}class BE extends Error{reason;httpStatus;constructor(e,t){super(`CCRClient init failed: ${e}`);this.reason=e;this.httpStatus=t}}var $Le=10,HLe=3,GLe=1e4;class pk{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;consecutiveNotFound=0;currentState=null;sessionBaseUrl;sessionId;streamEventBuffer=[];streamEventTimer=null;streamedEphemeralSinceLastAssistant=!1;workerState;eventUploader;internalEventUploader;onInternalBatchAcked;deliveryUploader;pendingProcessingAcks=[];onEpochMismatch;getAuthHeaders;onDiagnostic;constructor(e,t,r){if(this.onEpochMismatch=r?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=r?.heartbeatIntervalMs??OLe,this.heartbeatJitterFraction=r?.heartbeatJitterFraction??0,this.getAuthHeaders=r?.getAuthHeaders??bE,this.onDiagnostic=r?.onDiagnostic,t.protocol!=="http:"&&t.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${t.protocol}`);let n=t.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${t.protocol}//${t.host}${n}`,this.sessionId=n.split("/").pop()||"",this.workerState=new Ak({send:async(o)=>{let i=await this.request("put","/worker",{worker_epoch:this.workerEpoch,...o},"PUT worker");if(i.ok)return!0;if(na(i.status))return ae("warn","cli_worker_state_4xx_dropped",{status:i.status}),!0;return!1},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new Ip({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(o)=>{let i=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:o},"client events");if(i.ok)return;if(na(i.status)){let s=o.filter((c)=>!c.ephemeral),a=o.length-s.length;if(a>0){if(Q(`CCRClient: client event POST rejected (${i.status}) — dropping ${a} ephemeral event(s), retrying ${s.length} durable event(s)`,{level:"warn"}),Kt("ccr_partial_messages","ephemeral_dropped_on_4xx"),o.splice(0,o.length,...s),s.length===0)return;let c=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:s},"client events (durable retry)");if(c.ok)return;if(!na(c.status))throw new ra("client event POST failed",c.retryAfterMs)}if(s.length>0)this.droppedDurableEventBatches++;ae("warn","cli_worker_events_4xx_dropped",{status:i.status,count:s.length});return}throw new ra("client event POST failed",i.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new Ip({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(o)=>{let i=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:o},"internal events");if(i.ok){Promise.resolve().then(()=>this.onInternalBatchAcked?.(o)).catch(()=>{});return}if(na(i.status)){ae("warn","cli_worker_internal_events_4xx_dropped",{status:i.status,count:o.length});return}throw new ra("internal event POST failed",i.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new Ip({maxBatchSize:64,maxQueueSize:64,send:async(o)=>{let i=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:o.map((s)=>({event_id:s.eventId,status:s.status}))},"delivery batch");if(i.ok)return;if(na(i.status)){ae("warn","cli_worker_delivery_4xx_dropped",{status:i.status,count:o.length});return}throw new ra("delivery POST failed",i.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),e.setOnEvent((o)=>{this.reportDelivery(o.event_id,"received")})}async initialize(e){let t=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new BE("no_auth_headers");if(e===void 0){let u=process.env.CLAUDE_CODE_WORKER_EPOCH;e=u?parseInt(u,10):NaN}if(isNaN(e))throw new BE("missing_epoch");this.workerEpoch=e;let r=this.getWorkerState();await Promise.race([r.catch(()=>null),qn(GLe)]);let n={ok:!1},o=new Set,i=10,s=0;for(let u=1;u<=i;u++){if(s=u,n=await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)"),n.ok||this.closed)break;if(n.reason)o.add(n.reason);if(this.onDiagnostic?.(`PUT /worker failed (${n.reason??"unknown"}) attempt=${u}/${i}, ${Math.round((Date.now()-t)/1000)}s elapsed`),na(n.status))break;if(u<i){let A=Math.min(500*2**(u-1),30000)+Math.random()*500;await qn(A)}}if(!n.ok){if(!this.closed)ae("error","cli_worker_init_put_retries_exhausted"),this.onDiagnostic?.(`PUT /worker retries exhausted: ${s} attempts over ${Math.round((Date.now()-t)/1000)}s, errors=[${[...o].join(",")||"unknown"}]`);throw new BE("worker_register_failed",n.status)}this.currentState="idle",this.startHeartbeat(),M4(()=>{this.writeEvent({type:"keep_alive"})}),Q(`CCRClient: initialized, epoch=${this.workerEpoch}`),ae("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-t});let{metadata:a,durationMs:c}=await r;if(!this.closed)ae("info","cli_worker_state_restored",{duration_ms:c,had_state:a.external!==null||a.internal!==null});return a}async getWorkerState(){let e=Date.now(),t=this.getAuthHeaders();if(Object.keys(t).length===0)return{metadata:{external:null,internal:null},durationMs:0};let r=await this.getWithRetry(`${this.sessionBaseUrl}/worker`,t,"worker_state");return{metadata:{external:r?.worker?.external_metadata??null,internal:r?.worker?.internal_metadata??null},durationMs:Date.now()-e}}async request(e,t,r,n,{timeout:o=1e4,parseBody:i=!1}={}){let s=this.getAuthHeaders();if(Object.keys(s).length===0)return{ok:!1,reason:"no_auth_headers"};let a=`${this.sessionBaseUrl}${t}`;try{let c=await fetch(a,{method:e.toUpperCase(),headers:{...s,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-client-platform":sc(),"User-Agent":ci()},body:_t(r),signal:AbortSignal.timeout(o),...sk({url:a})});if(c.ok){if(this.consecutiveAuthFailures=0,this.consecutiveNotFound=0,i)try{return{ok:!0,data:await c.json()}}catch{return{ok:!0}}return c.body?.cancel(),{ok:!0}}if(c.body?.cancel(),c.status===409)this.handleEpochMismatch();if(c.status===404){if(this.consecutiveNotFound++,this.consecutiveNotFound>=HLe)Q(`CCRClient: ${this.consecutiveNotFound} consecutive 404s — session gone, exiting`,{level:"error"}),ae("error","cli_worker_session_not_found"),this.onDiagnostic?.(`${this.consecutiveNotFound} consecutive 404s on ${t} — session gone, exiting`),this.onEpochMismatch()}if(c.status===401||c.status===403){let u=lk(),A=u?M2(u):null;if(A!==null&&A*1000<Date.now())Q(`CCRClient: session_token expired (exp=${new Date(A*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),ae("error","cli_worker_token_expired_no_refresh"),this.onDiagnostic?.(`session_token expired (exp=${new Date(A*1000).toISOString()}) — no refresh delivered, exiting`),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=$Le)Q(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),ae("error","cli_worker_auth_failures_exhausted"),this.onDiagnostic?.(`${this.consecutiveAuthFailures} consecutive auth failures (HTTP ${c.status}) with valid-looking token — exiting`),this.onEpochMismatch()}if(Q(`CCRClient: ${n} returned ${c.status}`,{level:"warn"}),ae("warn","cli_worker_request_failed",{method:e,path:t,status:c.status}),c.status===429){let u=c.headers.get("retry-after"),A=u?parseInt(u,10):NaN;if(!isNaN(A)&&A>=0)return{ok:!1,retryAfterMs:A*1000,status:c.status,reason:`http_${c.status}`}}return{ok:!1,status:c.status,reason:`http_${c.status}`}}catch(c){return Q(`CCRClient: ${n} failed: ${Be(c)}`,{level:"warn"}),ae("warn","cli_worker_request_error",{method:e,path:t,error_code:V4(c)}),{ok:!1,reason:`fetch_failed:${V4(c)}`}}}reportState(e,t){if(e===this.currentState&&!t)return;this.currentState=e,this.workerState.enqueue({worker_status:e,requires_action_details:t?{tool_name:t.tool_name,display_tool_name:t.display_tool_name,action_description:t.action_description,raw_command:t.raw_command,request_id:t.request_id,tool_use_id:t.tool_use_id}:null})}reportMetadata(e){this.workerState.enqueue({external_metadata:zLe(e)})}reportInternalMetadata(e){this.workerState.enqueue({internal_metadata:e})}handleEpochMismatch(){Q("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),ae("error","cli_worker_epoch_mismatch"),this.onDiagnostic?.(`worker epoch mismatch (409), epoch=${this.workerEpoch} — superseded by a newer worker, exiting`),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let e=()=>{let r=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(t,this.heartbeatIntervalMs+r)},t=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;e()};e()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{let e=await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000,parseBody:!0});if(!e.ok)return;Q("CCRClient: Heartbeat sent");let t=e.data?.heartbeat_interval_seconds;if(typeof t!=="number"||!Number.isFinite(t)||t<=0)return;let r=Math.min(Math.max(t*1000,FLe),MLe);if(r===this.heartbeatIntervalMs)return;ae("info","cli_heartbeat_interval_updated",{from_ms:this.heartbeatIntervalMs,to_ms:r}),this.heartbeatIntervalMs=r}finally{this.heartbeatInFlight=!1}}async writeEvent(e){if(e.type==="stream_event"){if(this.streamEventBuffer.push(e),this.streamedEphemeralSinceLastAssistant=!0,!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),PLe);return}if(await this.flushStreamEventBuffer(),e.type==="assistant"&&this.streamedEphemeralSinceLastAssistant)Mr("ccr_partial_messages"),this.streamedEphemeralSinceLastAssistant=!1;await this.eventUploader.enqueue(this.toClientEvent(e))}toClientEvent(e){let t=e,r=t.historical===!0,n=e.type==="system"&&t.subtype==="thinking_tokens";return{payload:{...t,uuid:typeof t.uuid==="string"?t.uuid:Y4()},...r&&{historical:!0},...n&&{ephemeral:!0}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let e=this.streamEventBuffer;this.streamEventBuffer=[];let t=e.filter((r)=>{if(Buffer.byteLength(_t(r))<=j4)return!0;return Q(`CCRClient: dropping oversize ephemeral stream_event (>${j4} bytes)`,{level:"warn"}),Kt("ccr_partial_messages","oversize_ephemeral_skipped"),!1});await this.eventUploader.enqueue(t.map((r)=>({payload:r,ephemeral:!0})))}async writeInternalEvent(e,t,{isCompaction:r=!1,agentId:n,preservedEventIds:o}={}){let i=o;if(i&&i.length>dk)bn("tengu_ccr_preserved_event_ids_clamped",{originalCount:i.length,cap:dk}),i=i.slice(-dk);let s={payload:{type:e,...t,uuid:typeof t.uuid==="string"?t.uuid:Y4()},...r&&{is_compaction:!0},...n&&{session_agent_id:n},...i?.length&&{preserved_event_ids:i}};await this.internalEventUploader.enqueue(s)}flushInternalEvents(){return this.internalEventUploader.flush()}flushDeliveryAcks(){return this.deliveryUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}droppedDurableEventBatches=0;get droppedDurableBatches(){return this.droppedDurableEventBatches}async flushWorkerState(){return this.workerState.flush()}async readInternalEvents(e){return this.paginatedGet("/worker/internal-events",{limit:"1000",...e&&{after_event_id:e}},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true",limit:"1000"},"subagent_events")}async paginatedGet(e,t,r){let n=this.getAuthHeaders();if(Object.keys(n).length===0)return null;let o=[],i,s=0,a=0,c=null;do{let u=new URL(`${this.sessionBaseUrl}${e}`);for(let[f,g]of Object.entries(t))u.searchParams.set(f,g);if(i)u.searchParams.set("cursor",i),u.searchParams.delete("after_event_id");let A=!i&&t.after_event_id!==void 0,p,d=await this.getWithRetry(u.toString(),n,r,(f)=>{s++,c??=f.headers.get("content-encoding");let g=f.headers.get("content-length");if(g!==null&&a!==null)a+=Number(g);else a=null},(f,g)=>{if(!A)return;if(f===400)p="rejected";else if(g==="after_event_id_not_found")p="not-found"});if(!d){if(p){Q(`CCRClient: after_event_id ${p==="rejected"?"rejected by server (gate off)":"not found (stale anchor)"} — refetching without anchor`,{level:"warn"}),ae("warn",p==="rejected"?"cli_worker_after_event_id_rejected":"cli_worker_after_event_id_not_found",{context:r});let{after_event_id:f,...g}=t,m=await this.paginatedGet(e,g,r);if(!m)return null;return{...m,anchorFallback:p}}return null}o.push(...d.data??[]),i=d.next_cursor}while(i);return Q(`CCRClient: Read ${o.length} internal events from ${e}${t.subagents?" (subagents)":""}`),{events:o,stats:{pageCount:s,bytesReceived:a,contentEncoding:c??"none"}}}async getWithRetry(e,t,r,n,o){for(let i=1;i<=10;i++){let s;try{if(s=await fetch(e,{headers:{...t,"anthropic-version":"2023-06-01","anthropic-client-platform":sc(),"User-Agent":ci()},signal:AbortSignal.timeout(30000),...sk({url:e})}),s.ok){let c=await s.json();return n?.(s),c}}catch(c){if(Q(`CCRClient: GET ${e} failed (attempt ${i}/10): ${Be(c)}`,{level:"warn"}),i<10){let u=Math.min(500*2**(i-1),30000)+Math.random()*500;await qn(u)}continue}let a;if(s.status===404&&o)try{let c=await s.json();if(typeof c?.error?.type==="string")a=c.error.type}catch{}else s.body?.cancel();if(s.status===409)this.handleEpochMismatch();if(na(s.status)||a==="after_event_id_not_found")return Q(`CCRClient: GET ${e} returned ${s.status} — permanent, not retrying`,{level:"warn"}),o?.(s.status,a),null;if(Q(`CCRClient: GET ${e} returned ${s.status} (attempt ${i}/10)`,{level:"warn"}),i<10){let c=Math.min(500*2**(i-1),30000)+Math.random()*500;await qn(c)}}return Q("CCRClient: GET retries exhausted",{level:"error"}),ae("error","cli_worker_get_retries_exhausted",{context:r}),null}reportDelivery(e,t){if(t==="processing"){if(this.closed)return;if(this.pendingProcessingAcks.push(e)===1)queueMicrotask(()=>{let r=this.pendingProcessingAcks;if(this.pendingProcessingAcks=[],this.closed||r.length===0)return;this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:r.map((n)=>({event_id:n,status:"processing"}))},"processing ack")});return}this.deliveryUploader.enqueue({eventId:e,status:t})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),P4(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.pendingProcessingAcks=[],this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}function zLe(e){let t=e.post_turn_summary;if(!YLe(t)||t.status_category!=="blocked")return e;return{...e,post_turn_summary:{...t,status_category:"need_input"}}}function YLe(e){return e!==null&&typeof e==="object"&&"status_category"in e&&typeof e.status_category==="string"}Ia();var jLe={stream:!0};function J4(e,t){let r=e.charCodeAt(t);if(r===10)return 1;if(r===13){if(t+1>=e.length)return-1;return e.charCodeAt(t+1)===10?2:1}return 0}function VLe(e,t){let r=t;while(r<e.length){let n=J4(e,r);if(n===0){r++;continue}if(n===-1)return null;let o=r+n;if(o>=e.length)return null;let i=J4(e,o);if(i===-1)return null;if(i>0)return{contentEnd:r,afterDelim:o+i};r=o}return null}function W4(e){if(!/\S/.test(e))return null;let t={},r=!1;for(let n of e.split(/\r\n|\r|\n/)){if(n.startsWith(":")){r=!0;continue}let o=n.indexOf(":");if(o===-1)continue;let i=n.slice(0,o),s=n[o+1]===" "?n.slice(o+2):n.slice(o+1);switch(i){case"event":t.event=s;break;case"id":t.id=s;break;case"data":t.data=t.data?t.data+`