@mastergo/magic-mcp 0.1.9-alpha.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,65 +1,68 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var ck=Object.create;var jc=Object.defineProperty;var uk=Object.getOwnPropertyDescriptor;var lk=Object.getOwnPropertyNames;var pk=Object.getPrototypeOf,dk=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ac=(t,e)=>{for(var r in e)jc(t,r,{get:e[r],enumerable:!0})},mk=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of lk(e))!dk.call(t,o)&&o!==r&&jc(t,o,{get:()=>e[o],enumerable:!(n=uk(e,o))||n.enumerable});return t};var le=(t,e,r)=>(r=t!=null?ck(pk(t)):{},mk(e||!t||!t.__esModule?jc(r,"default",{value:t,enumerable:!0}):r,t));var ui=w(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.regexpCode=ae.getEsmExportName=ae.getProperty=ae.safeStringify=ae.stringify=ae.strConcat=ae.addCodeArg=ae.str=ae._=ae.nil=ae._Code=ae.Name=ae.IDENTIFIER=ae._CodeOrName=void 0;var ai=class{};ae._CodeOrName=ai;ae.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var dn=class extends ai{constructor(e){if(super(),!ae.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ae.Name=dn;var kt=class extends ai{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof dn&&(r[n.str]=(r[n.str]||0)+1),r),{})}};ae._Code=kt;ae.nil=new kt("");function _x(t,...e){let r=[t[0]],n=0;for(;n<e.length;)xp(r,e[n]),r.push(t[++n]);return new kt(r)}ae._=_x;var gp=new kt("+");function wx(t,...e){let r=[ci(t[0])],n=0;for(;n<e.length;)r.push(gp),xp(r,e[n]),r.push(gp,ci(t[++n]));return mT(r),new kt(r)}ae.str=wx;function xp(t,e){e instanceof kt?t.push(...e._items):e instanceof dn?t.push(e):t.push(gT(e))}ae.addCodeArg=xp;function mT(t){let e=1;for(;e<t.length-1;){if(t[e]===gp){let r=fT(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function fT(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof dn||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof dn))return`"${t}${e.slice(1)}`}function hT(t,e){return e.emptyStr()?t:t.emptyStr()?e:wx`${t}${e}`}ae.strConcat=hT;function gT(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:ci(Array.isArray(t)?t.join(","):t)}function xT(t){return new kt(ci(t))}ae.stringify=xT;function ci(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ae.safeStringify=ci;function vT(t){return typeof t=="string"&&ae.IDENTIFIER.test(t)?new kt(`.${t}`):_x`[${t}]`}ae.getProperty=vT;function yT(t){if(typeof t=="string"&&ae.IDENTIFIER.test(t))return new kt(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}ae.getEsmExportName=yT;function bT(t){return new kt(t.toString())}ae.regexpCode=bT});var bp=w(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.ValueScope=ct.ValueScopeName=ct.Scope=ct.varKinds=ct.UsedValueState=void 0;var at=ui(),vp=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},ia;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(ia||(ct.UsedValueState=ia={}));ct.varKinds={const:new at.Name("const"),let:new at.Name("let"),var:new at.Name("var")};var sa=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof at.Name?e:this.name(e)}name(e){return new at.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};ct.Scope=sa;var aa=class extends at.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,at._)`.${new at.Name(r)}[${n}]`}};ct.ValueScopeName=aa;var _T=(0,at._)`\n`,yp=class extends sa{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?_T:at.nil}}get(){return this._scope}name(e){return new aa(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(e),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),u=c.length;return c[u]=r.ref,o.setValue(r,{property:i,itemIndex:u}),o}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,at._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(e,r,n={},o){let i=at.nil;for(let s in e){let a=e[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,ia.Started);let l=r(u);if(l){let p=this.opts.es5?ct.varKinds.var:ct.varKinds.const;i=(0,at._)`${i}${p} ${u} = ${l};${this.opts._n}`}else if(l=o==null?void 0:o(u))i=(0,at._)`${i}${l}${this.opts._n}`;else throw new vp(u);c.set(u,ia.Completed)})}return i}};ct.ValueScope=yp});var J=w(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.or=W.and=W.not=W.CodeGen=W.operators=W.varKinds=W.ValueScopeName=W.ValueScope=W.Scope=W.Name=W.regexpCode=W.stringify=W.getProperty=W.nil=W.strConcat=W.str=W._=void 0;var ne=ui(),At=bp(),$r=ui();Object.defineProperty(W,"_",{enumerable:!0,get:function(){return $r._}});Object.defineProperty(W,"str",{enumerable:!0,get:function(){return $r.str}});Object.defineProperty(W,"strConcat",{enumerable:!0,get:function(){return $r.strConcat}});Object.defineProperty(W,"nil",{enumerable:!0,get:function(){return $r.nil}});Object.defineProperty(W,"getProperty",{enumerable:!0,get:function(){return $r.getProperty}});Object.defineProperty(W,"stringify",{enumerable:!0,get:function(){return $r.stringify}});Object.defineProperty(W,"regexpCode",{enumerable:!0,get:function(){return $r.regexpCode}});Object.defineProperty(W,"Name",{enumerable:!0,get:function(){return $r.Name}});var pa=bp();Object.defineProperty(W,"Scope",{enumerable:!0,get:function(){return pa.Scope}});Object.defineProperty(W,"ValueScope",{enumerable:!0,get:function(){return pa.ValueScope}});Object.defineProperty(W,"ValueScopeName",{enumerable:!0,get:function(){return pa.ValueScopeName}});Object.defineProperty(W,"varKinds",{enumerable:!0,get:function(){return pa.varKinds}});W.operators={GT:new ne._Code(">"),GTE:new ne._Code(">="),LT:new ne._Code("<"),LTE:new ne._Code("<="),EQ:new ne._Code("==="),NEQ:new ne._Code("!=="),NOT:new ne._Code("!"),OR:new ne._Code("||"),AND:new ne._Code("&&"),ADD:new ne._Code("+")};var sr=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},_p=class extends sr{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?At.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Kn(this.rhs,e,r)),this}get names(){return this.rhs instanceof ne._CodeOrName?this.rhs.names:{}}},ca=class extends sr{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof ne.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Kn(this.rhs,e,r),this}get names(){let e=this.lhs instanceof ne.Name?{}:{...this.lhs.names};return la(e,this.rhs)}},wp=class extends ca{constructor(e,r,n,o){super(e,n,o),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},kp=class extends sr{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},$p=class extends sr{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Sp=class extends sr{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},zp=class extends sr{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Kn(this.code,e,r),this}get names(){return this.code instanceof ne._CodeOrName?this.code.names:{}}},li=class extends sr{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(e,r)||(wT(e,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>hn(e,r.names),{})}},ar=class extends li{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Ep=class extends li{},Wn=class extends ar{};Wn.kind="else";var mn=class t extends ar{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Wn(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(kx(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Kn(this.condition,e,r),this}get names(){let e=super.names;return la(e,this.condition),this.else&&hn(e,this.else.names),e}};mn.kind="if";var fn=class extends ar{};fn.kind="for";var Tp=class extends fn{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Kn(this.iteration,e,r),this}get names(){return hn(super.names,this.iteration.names)}},Pp=class extends fn{constructor(e,r,n,o){super(),this.varKind=e,this.name=r,this.from=n,this.to=o}render(e){let r=e.es5?At.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){let e=la(super.names,this.from);return la(e,this.to)}},ua=class extends fn{constructor(e,r,n,o){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Kn(this.iterable,e,r),this}get names(){return hn(super.names,this.iterable.names)}},pi=class extends ar{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};pi.kind="func";var di=class extends li{render(e){return"return "+super.render(e)}};di.kind="return";var Rp=class extends ar{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,o;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(o=this.finally)===null||o===void 0||o.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&hn(e,this.catch.names),this.finally&&hn(e,this.finally.names),e}},mi=class extends ar{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};mi.kind="catch";var fi=class extends ar{render(e){return"finally"+super.render(e)}};fi.kind="finally";var Cp=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
3
- `:""},this._extScope=e,this._scope=new At.Scope({parent:e}),this._nodes=[new Ep]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new _p(e,i,n)),i}const(e,r,n){return this._def(At.varKinds.const,e,r,n)}let(e,r,n){return this._def(At.varKinds.let,e,r,n)}var(e,r,n){return this._def(At.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new ca(e,r,n))}add(e,r){return this._leafNode(new wp(e,W.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==ne.nil&&this._leafNode(new zp(e)),this}object(...e){let r=["{"];for(let[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,ne.addCodeArg)(r,o));return r.push("}"),new ne._Code(r)}if(e,r,n){if(this._blockNode(new mn(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new mn(e))}else(){return this._elseNode(new Wn)}endIf(){return this._endBlockNode(mn,Wn)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new Tp(e),r)}forRange(e,r,n,o,i=this.opts.es5?At.varKinds.var:At.varKinds.let){let s=this._scope.toName(e);return this._for(new Pp(i,s,r,n),()=>o(s))}forOf(e,r,n,o=At.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let s=r instanceof ne.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ne._)`${s}.length`,a=>{this.var(i,(0,ne._)`${s}[${a}]`),n(i)})}return this._for(new ua("of",o,i,r),()=>n(i))}forIn(e,r,n,o=this.opts.es5?At.varKinds.var:At.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,ne._)`Object.keys(${r})`,n);let i=this._scope.toName(e);return this._for(new ua("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(fn)}label(e){return this._leafNode(new kp(e))}break(e){return this._leafNode(new $p(e))}return(e){let r=new di;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(di)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Rp;if(this._blockNode(o),this.code(e),r){let i=this.name("e");this._currNode=o.catch=new mi(i),r(i)}return n&&(this._currNode=o.finally=new fi,this.code(n)),this._endBlockNode(mi,fi)}throw(e){return this._leafNode(new Sp(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=ne.nil,n,o){return this._blockNode(new pi(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(pi)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof mn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};W.CodeGen=Cp;function hn(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function la(t,e){return e instanceof ne._CodeOrName?hn(t,e.names):t}function Kn(t,e,r){if(t instanceof ne.Name)return n(t);if(!o(t))return t;return new ne._Code(t._items.reduce((i,s)=>(s instanceof ne.Name&&(s=n(s)),s instanceof ne._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||e[i.str]!==1?i:(delete e[i.str],s)}function o(i){return i instanceof ne._Code&&i._items.some(s=>s instanceof ne.Name&&e[s.str]===1&&r[s.str]!==void 0)}}function wT(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function kx(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,ne._)`!${Ip(t)}`}W.not=kx;var kT=$x(W.operators.AND);function $T(...t){return t.reduce(kT)}W.and=$T;var ST=$x(W.operators.OR);function zT(...t){return t.reduce(ST)}W.or=zT;function $x(t){return(e,r)=>e===ne.nil?r:r===ne.nil?e:(0,ne._)`${Ip(e)} ${t} ${Ip(r)}`}function Ip(t){return t instanceof ne.Name?t:(0,ne._)`(${t})`}});var oe=w(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.checkStrictMode=K.getErrorPath=K.Type=K.useFunc=K.setEvaluated=K.evaluatedPropsToName=K.mergeEvaluated=K.eachItem=K.unescapeJsonPointer=K.escapeJsonPointer=K.escapeFragment=K.unescapeFragment=K.schemaRefOrVal=K.schemaHasRulesButRef=K.schemaHasRules=K.checkUnknownRules=K.alwaysValidSchema=K.toHash=void 0;var me=J(),ET=ui();function TT(t){let e={};for(let r of t)e[r]=!0;return e}K.toHash=TT;function PT(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Ex(t,e),!Tx(e,t.self.RULES.all))}K.alwaysValidSchema=PT;function Ex(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let o=n.RULES.keywords;for(let i in e)o[i]||Cx(t,`unknown keyword: "${i}"`)}K.checkUnknownRules=Ex;function Tx(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}K.schemaHasRules=Tx;function RT(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}K.schemaHasRulesButRef=RT;function CT({topSchemaRef:t,schemaPath:e},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,me._)`${r}`}return(0,me._)`${t}${e}${(0,me.getProperty)(n)}`}K.schemaRefOrVal=CT;function IT(t){return Px(decodeURIComponent(t))}K.unescapeFragment=IT;function OT(t){return encodeURIComponent(jp(t))}K.escapeFragment=OT;function jp(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}K.escapeJsonPointer=jp;function Px(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}K.unescapeJsonPointer=Px;function jT(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}K.eachItem=jT;function Sx({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof me.Name?(i instanceof me.Name?t(o,i,s):e(o,i,s),s):i instanceof me.Name?(e(o,s,i),i):r(i,s);return a===me.Name&&!(c instanceof me.Name)?n(o,c):c}}K.mergeEvaluated={props:Sx({mergeNames:(t,e,r)=>t.if((0,me._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,me._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,me._)`${r} || {}`).code((0,me._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,me._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,me._)`${r} || {}`),Ap(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Rx}),items:Sx({mergeNames:(t,e,r)=>t.if((0,me._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,me._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,me._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,me._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Rx(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,me._)`{}`);return e!==void 0&&Ap(t,r,e),r}K.evaluatedPropsToName=Rx;function Ap(t,e,r){Object.keys(r).forEach(n=>t.assign((0,me._)`${e}${(0,me.getProperty)(n)}`,!0))}K.setEvaluated=Ap;var zx={};function AT(t,e){return t.scopeValue("func",{ref:e,code:zx[e.code]||(zx[e.code]=new ET._Code(e.code))})}K.useFunc=AT;var Op;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Op||(K.Type=Op={}));function NT(t,e,r){if(t instanceof me.Name){let n=e===Op.Num;return r?n?(0,me._)`"[" + ${t} + "]"`:(0,me._)`"['" + ${t} + "']"`:n?(0,me._)`"/" + ${t}`:(0,me._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,me.getProperty)(t).toString():"/"+jp(t)}K.getErrorPath=NT;function Cx(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}K.checkStrictMode=Cx});var cr=w(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var Ge=J(),ZT={data:new Ge.Name("data"),valCxt:new Ge.Name("valCxt"),instancePath:new Ge.Name("instancePath"),parentData:new Ge.Name("parentData"),parentDataProperty:new Ge.Name("parentDataProperty"),rootData:new Ge.Name("rootData"),dynamicAnchors:new Ge.Name("dynamicAnchors"),vErrors:new Ge.Name("vErrors"),errors:new Ge.Name("errors"),this:new Ge.Name("this"),self:new Ge.Name("self"),scope:new Ge.Name("scope"),json:new Ge.Name("json"),jsonPos:new Ge.Name("jsonPos"),jsonLen:new Ge.Name("jsonLen"),jsonPart:new Ge.Name("jsonPart")};Np.default=ZT});var hi=w(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.extendErrors=Je.resetErrorsCount=Je.reportExtraError=Je.reportError=Je.keyword$DataError=Je.keywordError=void 0;var ie=J(),da=oe(),tt=cr();Je.keywordError={message:({keyword:t})=>(0,ie.str)`must pass "${t}" keyword validation`};Je.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ie.str)`"${t}" keyword must be ${e} ($data)`:(0,ie.str)`"${t}" keyword is invalid ($data)`};function MT(t,e=Je.keywordError,r,n){let{it:o}=t,{gen:i,compositeRule:s,allErrors:a}=o,c=jx(t,e,r);n??(s||a)?Ix(i,c):Ox(o,(0,ie._)`[${c}]`)}Je.reportError=MT;function qT(t,e=Je.keywordError,r){let{it:n}=t,{gen:o,compositeRule:i,allErrors:s}=n,a=jx(t,e,r);Ix(o,a),i||s||Ox(n,tt.default.vErrors)}Je.reportExtraError=qT;function DT(t,e){t.assign(tt.default.errors,e),t.if((0,ie._)`${tt.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ie._)`${tt.default.vErrors}.length`,e),()=>t.assign(tt.default.vErrors,null)))}Je.resetErrorsCount=DT;function LT({gen:t,keyword:e,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",o,tt.default.errors,a=>{t.const(s,(0,ie._)`${tt.default.vErrors}[${a}]`),t.if((0,ie._)`${s}.instancePath === undefined`,()=>t.assign((0,ie._)`${s}.instancePath`,(0,ie.strConcat)(tt.default.instancePath,i.errorPath))),t.assign((0,ie._)`${s}.schemaPath`,(0,ie.str)`${i.errSchemaPath}/${e}`),i.opts.verbose&&(t.assign((0,ie._)`${s}.schema`,r),t.assign((0,ie._)`${s}.data`,n))})}Je.extendErrors=LT;function Ix(t,e){let r=t.const("err",e);t.if((0,ie._)`${tt.default.vErrors} === null`,()=>t.assign(tt.default.vErrors,(0,ie._)`[${r}]`),(0,ie._)`${tt.default.vErrors}.push(${r})`),t.code((0,ie._)`${tt.default.errors}++`)}function Ox(t,e){let{gen:r,validateName:n,schemaEnv:o}=t;o.$async?r.throw((0,ie._)`new ${t.ValidationError}(${e})`):(r.assign((0,ie._)`${n}.errors`,e),r.return(!1))}var gn={keyword:new ie.Name("keyword"),schemaPath:new ie.Name("schemaPath"),params:new ie.Name("params"),propertyName:new ie.Name("propertyName"),message:new ie.Name("message"),schema:new ie.Name("schema"),parentSchema:new ie.Name("parentSchema")};function jx(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,ie._)`{}`:UT(t,e,r)}function UT(t,e,r={}){let{gen:n,it:o}=t,i=[FT(o,r),BT(t,r)];return VT(t,e,i),n.object(...i)}function FT({errorPath:t},{instancePath:e}){let r=e?(0,ie.str)`${t}${(0,da.getErrorPath)(e,da.Type.Str)}`:t;return[tt.default.instancePath,(0,ie.strConcat)(tt.default.instancePath,r)]}function BT({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let o=n?e:(0,ie.str)`${e}/${t}`;return r&&(o=(0,ie.str)`${o}${(0,da.getErrorPath)(r,da.Type.Str)}`),[gn.schemaPath,o]}function VT(t,{params:e,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=t,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:p}=a;n.push([gn.keyword,o],[gn.params,typeof e=="function"?e(t):e||(0,ie._)`{}`]),c.messages&&n.push([gn.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([gn.schema,s],[gn.parentSchema,(0,ie._)`${l}${p}`],[tt.default.data,i]),u&&n.push([gn.propertyName,u])}});var Nx=w(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.boolOrEmptySchema=Yn.topBoolOrEmptySchema=void 0;var HT=hi(),GT=J(),JT=cr(),WT={message:"boolean schema is false"};function KT(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Ax(t,!1):typeof r=="object"&&r.$async===!0?e.return(JT.default.data):(e.assign((0,GT._)`${n}.errors`,null),e.return(!0))}Yn.topBoolOrEmptySchema=KT;function YT(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Ax(t)):r.var(e,!0)}Yn.boolOrEmptySchema=YT;function Ax(t,e){let{gen:r,data:n}=t,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,HT.reportError)(o,WT,void 0,e)}});var Zp=w(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.getRules=Xn.isJSONType=void 0;var XT=["string","number","integer","boolean","null","object","array"],QT=new Set(XT);function eP(t){return typeof t=="string"&&QT.has(t)}Xn.isJSONType=eP;function tP(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Xn.getRules=tP});var Mp=w(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.shouldUseRule=Sr.shouldUseGroup=Sr.schemaHasRulesForType=void 0;function rP({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&Zx(t,n)}Sr.schemaHasRulesForType=rP;function Zx(t,e){return e.rules.some(r=>Mx(t,r))}Sr.shouldUseGroup=Zx;function Mx(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Sr.shouldUseRule=Mx});var gi=w(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.reportTypeError=We.checkDataTypes=We.checkDataType=We.coerceAndCheckDataType=We.getJSONTypes=We.getSchemaTypes=We.DataType=void 0;var nP=Zp(),oP=Mp(),iP=hi(),H=J(),qx=oe(),Qn;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Qn||(We.DataType=Qn={}));function sP(t){let e=Dx(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}We.getSchemaTypes=sP;function Dx(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(nP.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}We.getJSONTypes=Dx;function aP(t,e){let{gen:r,data:n,opts:o}=t,i=cP(e,o.coerceTypes),s=e.length>0&&!(i.length===0&&e.length===1&&(0,oP.schemaHasRulesForType)(t,e[0]));if(s){let a=Dp(e,n,o.strictNumbers,Qn.Wrong);r.if(a,()=>{i.length?uP(t,e,i):Lp(t)})}return s}We.coerceAndCheckDataType=aP;var Lx=new Set(["string","number","integer","boolean","null"]);function cP(t,e){return e?t.filter(r=>Lx.has(r)||e==="array"&&r==="array"):[]}function uP(t,e,r){let{gen:n,data:o,opts:i}=t,s=n.let("dataType",(0,H._)`typeof ${o}`),a=n.let("coerced",(0,H._)`undefined`);i.coerceTypes==="array"&&n.if((0,H._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,H._)`${o}[0]`).assign(s,(0,H._)`typeof ${o}`).if(Dp(e,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,H._)`${a} !== undefined`);for(let u of r)(Lx.has(u)||u==="array"&&i.coerceTypes==="array")&&c(u);n.else(),Lp(t),n.endIf(),n.if((0,H._)`${a} !== undefined`,()=>{n.assign(o,a),lP(t,a)});function c(u){switch(u){case"string":n.elseIf((0,H._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,H._)`"" + ${o}`).elseIf((0,H._)`${o} === null`).assign(a,(0,H._)`""`);return;case"number":n.elseIf((0,H._)`${s} == "boolean" || ${o} === null
4
- || (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,H._)`+${o}`);return;case"integer":n.elseIf((0,H._)`${s} === "boolean" || ${o} === null
5
- || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,H._)`+${o}`);return;case"boolean":n.elseIf((0,H._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,H._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,H._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,H._)`${s} === "string" || ${s} === "number"
6
- || ${s} === "boolean" || ${o} === null`).assign(a,(0,H._)`[${o}]`)}}}function lP({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,H._)`${e} !== undefined`,()=>t.assign((0,H._)`${e}[${r}]`,n))}function qp(t,e,r,n=Qn.Correct){let o=n===Qn.Correct?H.operators.EQ:H.operators.NEQ,i;switch(t){case"null":return(0,H._)`${e} ${o} null`;case"array":i=(0,H._)`Array.isArray(${e})`;break;case"object":i=(0,H._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,H._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,H._)`typeof ${e} ${o} ${t}`}return n===Qn.Correct?i:(0,H.not)(i);function s(a=H.nil){return(0,H.and)((0,H._)`typeof ${e} == "number"`,a,r?(0,H._)`isFinite(${e})`:H.nil)}}We.checkDataType=qp;function Dp(t,e,r,n){if(t.length===1)return qp(t[0],e,r,n);let o,i=(0,qx.toHash)(t);if(i.array&&i.object){let s=(0,H._)`typeof ${e} != "object"`;o=i.null?s:(0,H._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else o=H.nil;i.number&&delete i.integer;for(let s in i)o=(0,H.and)(o,qp(s,e,r,n));return o}We.checkDataTypes=Dp;var pP={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,H._)`{type: ${t}}`:(0,H._)`{type: ${e}}`};function Lp(t){let e=dP(t);(0,iP.reportError)(e,pP)}We.reportTypeError=Lp;function dP(t){let{gen:e,data:r,schema:n}=t,o=(0,qx.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:t}}});var Fx=w(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.assignDefaults=void 0;var eo=J(),mP=oe();function fP(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let o in r)Ux(t,o,r[o].default);else e==="array"&&Array.isArray(n)&&n.forEach((o,i)=>Ux(t,i,o.default))}ma.assignDefaults=fP;function Ux(t,e,r){let{gen:n,compositeRule:o,data:i,opts:s}=t;if(r===void 0)return;let a=(0,eo._)`${i}${(0,eo.getProperty)(e)}`;if(o){(0,mP.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,eo._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,eo._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,eo._)`${a} = ${(0,eo.stringify)(r)}`)}});var $t=w(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;var ve=J(),Up=oe(),zr=cr(),hP=oe();function gP(t,e){let{gen:r,data:n,it:o}=t;r.if(Bp(r,n,e,o.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ve._)`${e}`},!0),t.error()})}de.checkReportMissingProp=gP;function xP({gen:t,data:e,it:{opts:r}},n,o){return(0,ve.or)(...n.map(i=>(0,ve.and)(Bp(t,e,i,r.ownProperties),(0,ve._)`${o} = ${i}`)))}de.checkMissingProp=xP;function vP(t,e){t.setParams({missingProperty:e},!0),t.error()}de.reportMissingProp=vP;function Bx(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ve._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=Bx;function Fp(t,e,r){return(0,ve._)`${Bx(t)}.call(${e}, ${r})`}de.isOwnProperty=Fp;function yP(t,e,r,n){let o=(0,ve._)`${e}${(0,ve.getProperty)(r)} !== undefined`;return n?(0,ve._)`${o} && ${Fp(t,e,r)}`:o}de.propertyInData=yP;function Bp(t,e,r,n){let o=(0,ve._)`${e}${(0,ve.getProperty)(r)} === undefined`;return n?(0,ve.or)(o,(0,ve.not)(Fp(t,e,r))):o}de.noPropertyInData=Bp;function Vx(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=Vx;function bP(t,e){return Vx(e).filter(r=>!(0,Up.alwaysValidSchema)(t,e[r]))}de.schemaProperties=bP;function _P({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,u){let l=u?(0,ve._)`${t}, ${e}, ${n}${o}`:e,p=[[zr.default.instancePath,(0,ve.strConcat)(zr.default.instancePath,i)],[zr.default.parentData,s.parentData],[zr.default.parentDataProperty,s.parentDataProperty],[zr.default.rootData,zr.default.rootData]];s.opts.dynamicRef&&p.push([zr.default.dynamicAnchors,zr.default.dynamicAnchors]);let m=(0,ve._)`${l}, ${r.object(...p)}`;return c!==ve.nil?(0,ve._)`${a}.call(${c}, ${m})`:(0,ve._)`${a}(${m})`}de.callValidateCode=_P;var wP=(0,ve._)`new RegExp`;function kP({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:o}=e.code,i=o(r,n);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,ve._)`${o.code==="new RegExp"?wP:(0,hP.useFunc)(t,o)}(${r}, ${n})`})}de.usePattern=kP;function $P(t){let{gen:e,data:r,keyword:n,it:o}=t,i=e.name("valid");if(o.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let c=e.const("len",(0,ve._)`${r}.length`);e.forRange("i",0,c,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Up.Type.Num},i),e.if((0,ve.not)(i),a)})}}de.validateArray=$P;function SP(t){let{gen:e,schema:r,keyword:n,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Up.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,u)=>{let l=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},a);e.assign(s,(0,ve._)`${s} || ${a}`),t.mergeValidEvaluated(l,a)||e.if((0,ve.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}de.validateUnion=SP});var Jx=w(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.validateKeywordUsage=Gt.validSchemaType=Gt.funcKeywordCode=Gt.macroKeywordCode=void 0;var rt=J(),xn=cr(),zP=$t(),EP=hi();function TP(t,e){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=t,a=e.macro.call(s.self,o,i,s),c=Gx(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let u=r.name("valid");t.subschema({schema:a,schemaPath:rt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}Gt.macroKeywordCode=TP;function PP(t,e){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=t;CP(c,e);let u=!a&&e.compile?e.compile.call(c.self,i,s,c):e.validate,l=Gx(n,o,u),p=n.let("valid");t.block$data(p,m),t.ok((r=e.valid)!==null&&r!==void 0?r:p);function m(){if(e.errors===!1)f(),e.modifying&&Hx(t),x(()=>t.error());else{let g=e.async?h():d();e.modifying&&Hx(t),x(()=>RP(t,g))}}function h(){let g=n.let("ruleErrs",null);return n.try(()=>f((0,rt._)`await `),y=>n.assign(p,!1).if((0,rt._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,rt._)`${y}.errors`),()=>n.throw(y))),g}function d(){let g=(0,rt._)`${l}.errors`;return n.assign(g,null),f(rt.nil),g}function f(g=e.async?(0,rt._)`await `:rt.nil){let y=c.opts.passContext?xn.default.this:xn.default.self,b=!("compile"in e&&!a||e.schema===!1);n.assign(p,(0,rt._)`${g}${(0,zP.callValidateCode)(t,l,y,b)}`,e.modifying)}function x(g){var y;n.if((0,rt.not)((y=e.valid)!==null&&y!==void 0?y:p),g)}}Gt.funcKeywordCode=PP;function Hx(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,rt._)`${n.parentData}[${n.parentDataProperty}]`))}function RP(t,e){let{gen:r}=t;r.if((0,rt._)`Array.isArray(${e})`,()=>{r.assign(xn.default.vErrors,(0,rt._)`${xn.default.vErrors} === null ? ${e} : ${xn.default.vErrors}.concat(${e})`).assign(xn.default.errors,(0,rt._)`${xn.default.vErrors}.length`),(0,EP.extendErrors)(t)},()=>t.error())}function CP({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function Gx(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,rt.stringify)(r)})}function IP(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}Gt.validSchemaType=IP;function OP({schema:t,opts:e,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(t[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Gt.validateKeywordUsage=OP});var Kx=w(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.extendSubschemaMode=Er.extendSubschemaData=Er.getSubschema=void 0;var Jt=J(),Wx=oe();function jP(t,{keyword:e,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,Jt._)`${t.schemaPath}${(0,Jt.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,Jt._)`${t.schemaPath}${(0,Jt.getProperty)(e)}${(0,Jt.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Wx.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Er.getSubschema=jP;function AP(t,e,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:u,dataPathArr:l,opts:p}=e,m=a.let("data",(0,Jt._)`${e.data}${(0,Jt.getProperty)(r)}`,!0);c(m),t.errorPath=(0,Jt.str)`${u}${(0,Wx.getErrorPath)(r,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,Jt._)`${r}`,t.dataPathArr=[...l,t.parentDataProperty]}if(o!==void 0){let u=o instanceof Jt.Name?o:a.let("data",o,!0);c(u),s!==void 0&&(t.propertyName=s)}i&&(t.dataTypes=i);function c(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Er.extendSubschemaData=AP;function NP(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(t.compositeRule=n),o!==void 0&&(t.createErrors=o),i!==void 0&&(t.allErrors=i),t.jtdDiscriminator=e,t.jtdMetadata=r}Er.extendSubschemaMode=NP});var Vp=w((JL,Yx)=>{"use strict";Yx.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var s=i[o];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var Qx=w((WL,Xx)=>{"use strict";var Tr=Xx.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};fa(e,n,o,t,"",t)};Tr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Tr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Tr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Tr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function fa(t,e,r,n,o,i,s,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,o,i,s,a,c,u);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in Tr.arrayKeywords)for(var m=0;m<p.length;m++)fa(t,e,r,p[m],o+"/"+l+"/"+m,i,o,l,n,m)}else if(l in Tr.propsKeywords){if(p&&typeof p=="object")for(var h in p)fa(t,e,r,p[h],o+"/"+l+"/"+ZP(h),i,o,l,n,h)}else(l in Tr.keywords||t.allKeys&&!(l in Tr.skipKeywords))&&fa(t,e,r,p,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,u)}}function ZP(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var xi=w(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.getSchemaRefs=ut.resolveUrl=ut.normalizeId=ut._getFullPath=ut.getFullPath=ut.inlineRef=void 0;var MP=oe(),qP=Vp(),DP=Qx(),LP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function UP(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Hp(t):e?ev(t)<=e:!1}ut.inlineRef=UP;var FP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Hp(t){for(let e in t){if(FP.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(Hp)||typeof r=="object"&&Hp(r))return!0}return!1}function ev(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!LP.has(r)&&(typeof t[r]=="object"&&(0,MP.eachItem)(t[r],n=>e+=ev(n)),e===1/0))return 1/0}return e}function tv(t,e="",r){r!==!1&&(e=to(e));let n=t.parse(e);return rv(t,n)}ut.getFullPath=tv;function rv(t,e){return t.serialize(e).split("#")[0]+"#"}ut._getFullPath=rv;var BP=/#\/?$/;function to(t){return t?t.replace(BP,""):""}ut.normalizeId=to;function VP(t,e,r){return r=to(r),t.resolve(e,r)}ut.resolveUrl=VP;var HP=/^[a-z_][-a-z0-9._]*$/i;function GP(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=to(t[r]||e),i={"":o},s=tv(n,o,!1),a={},c=new Set;return DP(t,{allKeys:!0},(p,m,h,d)=>{if(d===void 0)return;let f=s+m,x=i[d];typeof p[r]=="string"&&(x=g.call(this,p[r])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),i[m]=x;function g(b){let S=this.opts.uriResolver.resolve;if(b=to(x?S(x,b):b),c.has(b))throw l(b);c.add(b);let $=this.refs[b];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?u(p,$.schema,b):b!==to(f)&&(b[0]==="#"?(u(p,a[b],b),a[b]=p):this.refs[b]=f),b}function y(b){if(typeof b=="string"){if(!HP.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function u(p,m,h){if(m!==void 0&&!qP(p,m))throw l(h)}function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}}ut.getSchemaRefs=GP});var bi=w(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getData=Pr.KeywordCxt=Pr.validateFunctionCode=void 0;var av=Nx(),nv=gi(),Jp=Mp(),ha=gi(),JP=Fx(),yi=Jx(),Gp=Kx(),A=J(),U=cr(),WP=xi(),ur=oe(),vi=hi();function KP(t){if(lv(t)&&(pv(t),uv(t))){QP(t);return}cv(t,()=>(0,av.topBoolOrEmptySchema)(t))}Pr.validateFunctionCode=KP;function cv({gen:t,validateName:e,schema:r,schemaEnv:n,opts:o},i){o.code.es5?t.func(e,(0,A._)`${U.default.data}, ${U.default.valCxt}`,n.$async,()=>{t.code((0,A._)`"use strict"; ${ov(r,o)}`),XP(t,o),t.code(i)}):t.func(e,(0,A._)`${U.default.data}, ${YP(o)}`,n.$async,()=>t.code(ov(r,o)).code(i))}function YP(t){return(0,A._)`{${U.default.instancePath}="", ${U.default.parentData}, ${U.default.parentDataProperty}, ${U.default.rootData}=${U.default.data}${t.dynamicRef?(0,A._)`, ${U.default.dynamicAnchors}={}`:A.nil}}={}`}function XP(t,e){t.if(U.default.valCxt,()=>{t.var(U.default.instancePath,(0,A._)`${U.default.valCxt}.${U.default.instancePath}`),t.var(U.default.parentData,(0,A._)`${U.default.valCxt}.${U.default.parentData}`),t.var(U.default.parentDataProperty,(0,A._)`${U.default.valCxt}.${U.default.parentDataProperty}`),t.var(U.default.rootData,(0,A._)`${U.default.valCxt}.${U.default.rootData}`),e.dynamicRef&&t.var(U.default.dynamicAnchors,(0,A._)`${U.default.valCxt}.${U.default.dynamicAnchors}`)},()=>{t.var(U.default.instancePath,(0,A._)`""`),t.var(U.default.parentData,(0,A._)`undefined`),t.var(U.default.parentDataProperty,(0,A._)`undefined`),t.var(U.default.rootData,U.default.data),e.dynamicRef&&t.var(U.default.dynamicAnchors,(0,A._)`{}`)})}function QP(t){let{schema:e,opts:r,gen:n}=t;cv(t,()=>{r.$comment&&e.$comment&&mv(t),oR(t),n.let(U.default.vErrors,null),n.let(U.default.errors,0),r.unevaluated&&eR(t),dv(t),aR(t)})}function eR(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,A._)`${r}.evaluated`),e.if((0,A._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,A._)`${t.evaluated}.props`,(0,A._)`undefined`)),e.if((0,A._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,A._)`${t.evaluated}.items`,(0,A._)`undefined`))}function ov(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,A._)`/*# sourceURL=${r} */`:A.nil}function tR(t,e){if(lv(t)&&(pv(t),uv(t))){rR(t,e);return}(0,av.boolOrEmptySchema)(t,e)}function uv({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function lv(t){return typeof t.schema!="boolean"}function rR(t,e){let{schema:r,gen:n,opts:o}=t;o.$comment&&r.$comment&&mv(t),iR(t),sR(t);let i=n.const("_errs",U.default.errors);dv(t,i),n.var(e,(0,A._)`${i} === ${U.default.errors}`)}function pv(t){(0,ur.checkUnknownRules)(t),nR(t)}function dv(t,e){if(t.opts.jtd)return iv(t,[],!1,e);let r=(0,nv.getSchemaTypes)(t.schema),n=(0,nv.coerceAndCheckDataType)(t,r);iv(t,r,!n,e)}function nR(t){let{schema:e,errSchemaPath:r,opts:n,self:o}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ur.schemaHasRulesButRef)(e,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function oR(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,ur.checkStrictMode)(t,"default is ignored in the schema root")}function iR(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,WP.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function sR(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function mv({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)t.code((0,A._)`${U.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,A.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,A._)`${U.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function aR(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=t;r.$async?e.if((0,A._)`${U.default.errors} === 0`,()=>e.return(U.default.data),()=>e.throw((0,A._)`new ${o}(${U.default.vErrors})`)):(e.assign((0,A._)`${n}.errors`,U.default.vErrors),i.unevaluated&&cR(t),e.return((0,A._)`${U.default.errors} === 0`))}function cR({gen:t,evaluated:e,props:r,items:n}){r instanceof A.Name&&t.assign((0,A._)`${e}.props`,r),n instanceof A.Name&&t.assign((0,A._)`${e}.items`,n)}function iv(t,e,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:u}=t,{RULES:l}=u;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,ur.schemaHasRulesButRef)(i,l))){o.block(()=>hv(t,"$ref",l.all.$ref.definition));return}c.jtd||uR(t,e),o.block(()=>{for(let m of l.rules)p(m);p(l.post)});function p(m){(0,Jp.shouldUseGroup)(i,m)&&(m.type?(o.if((0,ha.checkDataType)(m.type,s,c.strictNumbers)),sv(t,m),e.length===1&&e[0]===m.type&&r&&(o.else(),(0,ha.reportTypeError)(t)),o.endIf()):sv(t,m),a||o.if((0,A._)`${U.default.errors} === ${n||0}`))}}function sv(t,e){let{gen:r,schema:n,opts:{useDefaults:o}}=t;o&&(0,JP.assignDefaults)(t,e.type),r.block(()=>{for(let i of e.rules)(0,Jp.shouldUseRule)(n,i)&&hv(t,i.keyword,i.definition,e.type)})}function uR(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(lR(t,e),t.opts.allowUnionTypes||pR(t,e),dR(t,t.dataTypes))}function lR(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{fv(t.dataTypes,r)||Wp(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),fR(t,e)}}function pR(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Wp(t,"use allowUnionTypes to allow union type keyword")}function dR(t,e){let r=t.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Jp.shouldUseRule)(t.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>mR(e,s))&&Wp(t,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function mR(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function fv(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function fR(t,e){let r=[];for(let n of t.dataTypes)fv(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function Wp(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,ur.checkStrictMode)(t,e,t.opts.strictTypes)}var ga=class{constructor(e,r,n){if((0,yi.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ur.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",gv(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,yi.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",U.default.errors))}result(e,r,n){this.failResult((0,A.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,A.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,A._)`${r} !== undefined && (${(0,A.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?vi.reportExtraError:vi.reportError)(this,this.def.error,r)}$dataError(){(0,vi.reportError)(this,this.def.$dataError||vi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,vi.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=A.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=A.nil,r=A.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,A.or)((0,A._)`${o} === undefined`,r)),e!==A.nil&&n.assign(e,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==A.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,A.or)(s(),a());function s(){if(n.length){if(!(r instanceof A.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,A._)`${(0,ha.checkDataTypes)(c,r,i.opts.strictNumbers,ha.DataType.Wrong)}`}return A.nil}function a(){if(o.validateSchema){let c=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,A._)`!${c}(${r})`}return A.nil}}subschema(e,r){let n=(0,Gp.getSubschema)(this.it,e);(0,Gp.extendSubschemaData)(n,this.it,e),(0,Gp.extendSubschemaMode)(n,e);let o={...this.it,...n,items:void 0,props:void 0};return tR(o,r),o}mergeEvaluated(e,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ur.mergeEvaluated.props(o,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=ur.mergeEvaluated.items(o,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(e,A.Name)),!0}};Pr.KeywordCxt=ga;function hv(t,e,r,n){let o=new ga(t,r,e);"code"in r?r.code(o,n):o.$data&&r.validate?(0,yi.funcKeywordCode)(o,r):"macro"in r?(0,yi.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,yi.funcKeywordCode)(o,r)}var hR=/^\/(?:[^~]|~0|~1)*$/,gR=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function gv(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let o,i;if(t==="")return U.default.rootData;if(t[0]==="/"){if(!hR.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);o=t,i=U.default.rootData}else{let u=gR.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let l=+u[1];if(o=u[2],o==="#"){if(l>=e)throw new Error(c("property/index",l));return n[e-l]}if(l>e)throw new Error(c("data",l));if(i=r[e-l],!o)return i}let s=i,a=o.split("/");for(let u of a)u&&(i=(0,A._)`${i}${(0,A.getProperty)((0,ur.unescapeJsonPointer)(u))}`,s=(0,A._)`${s} && ${i}`);return s;function c(u,l){return`Cannot access ${u} ${l} levels up, current level is ${e}`}}Pr.getData=gv});var xa=w(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});var Kp=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Yp.default=Kp});var _i=w(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var Xp=xi(),Qp=class extends Error{constructor(e,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Xp.resolveUrl)(e,r,n),this.missingSchema=(0,Xp.normalizeId)((0,Xp.getFullPath)(e,this.missingRef))}};ed.default=Qp});var ya=w(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.resolveSchema=St.getCompilingSchema=St.resolveRef=St.compileSchema=St.SchemaEnv=void 0;var Nt=J(),xR=xa(),vn=cr(),Zt=xi(),xv=oe(),vR=bi(),ro=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Zt.normalizeId)(n==null?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};St.SchemaEnv=ro;function rd(t){let e=vv.call(this,t);if(e)return e;let r=(0,Zt.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new Nt.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;t.$async&&(a=s.scopeValue("Error",{ref:xR.default,code:(0,Nt._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");t.validateName=c;let u={gen:s,allErrors:this.opts.allErrors,data:vn.default.data,parentData:vn.default.parentData,parentDataProperty:vn.default.parentDataProperty,dataNames:[vn.default.data],dataPathArr:[Nt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Nt.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Nt.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Nt._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(t),(0,vR.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();l=`${s.scopeRefs(vn.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,t));let h=new Function(`${vn.default.self}`,`${vn.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:d,items:f}=u;h.evaluated={props:d instanceof Nt.Name?void 0:d,items:f instanceof Nt.Name?void 0:f,dynamicProps:d instanceof Nt.Name,dynamicItems:f instanceof Nt.Name},h.source&&(h.source.evaluated=(0,Nt.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(t)}}St.compileSchema=rd;function yR(t,e,r){var n;r=(0,Zt.resolveUrl)(this.opts.uriResolver,e,r);let o=t.refs[r];if(o)return o;let i=wR.call(this,t,r);if(i===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(i=new ro({schema:s,schemaId:a,root:t,baseId:e}))}if(i!==void 0)return t.refs[r]=bR.call(this,i)}St.resolveRef=yR;function bR(t){return(0,Zt.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:rd.call(this,t)}function vv(t){for(let e of this._compilations)if(_R(e,t))return e}St.getCompilingSchema=vv;function _R(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function wR(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||va.call(this,t,e)}function va(t,e){let r=this.opts.uriResolver.parse(e),n=(0,Zt._getFullPath)(this.opts.uriResolver,r),o=(0,Zt.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===o)return td.call(this,r,t);let i=(0,Zt.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=va.call(this,t,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:td.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||rd.call(this,s),i===(0,Zt.normalizeId)(e)){let{schema:a}=s,{schemaId:c}=this.opts,u=a[c];return u&&(o=(0,Zt.resolveUrl)(this.opts.uriResolver,o,u)),new ro({schema:a,schemaId:c,root:t,baseId:o})}return td.call(this,r,s)}}St.resolveSchema=va;var kR=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function td(t,{baseId:e,schema:r,root:n}){var o;if(((o=t.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,xv.unescapeFragment)(a)];if(c===void 0)return;r=c;let u=typeof r=="object"&&r[this.opts.schemaId];!kR.has(a)&&u&&(e=(0,Zt.resolveUrl)(this.opts.uriResolver,e,u))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,xv.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Zt.resolveUrl)(this.opts.uriResolver,e,r.$ref);i=va.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new ro({schema:r,schemaId:s,root:n,baseId:e}),i.schema!==i.root.schema)return i}});var yv=w((t4,$R)=>{$R.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var id=w((r4,Sv)=>{"use strict";var SR=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),_v=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),nd=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),wv=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),zR=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function od(t){let e="",r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var ER=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function bv(t){return t.length=0,!0}function TR(t,e,r){if(t.length){let n=od(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function PR(t){let e=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,s=!1,a=TR;for(let c=0;c<t.length;c++){let u=t[c];if(!(u==="["||u==="]"))if(u===":"){if(i===!0&&(s=!0),!a(o,n,r))break;if(++e>7){r.error=!0;break}c>0&&t[c-1]===":"&&(i=!0),n.push(":");continue}else if(u==="%"){if(!a(o,n,r))break;a=bv}else{o.push(u);continue}}return o.length&&(a===bv?r.zone=o.join(""):s?n.push(o.join("")):n.push(od(o))),r.address=n.join(""),r}function kv(t){if(RR(t,":")<2)return{host:t,isIPV6:!1};let e=PR(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function RR(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function CR(t){let e=t,r=[],n=-1,o=0;for(;o=e.length;){if(o===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(o===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(o===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join("")}var IR={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},OR=/[@/?#:]/g,jR=/[@/?#]/g;function $v(t,e){let r=e?jR:OR;return r.lastIndex=0,t.replace(r,n=>IR[n])}function AR(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let n=0;n<t.length;n++){if(t[n]==="%"&&n+2<t.length){let o=t.slice(n+1,n+3);if(nd(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));e&&wv(s)?r+=s:r+="%"+i,n+=2;continue}}r+=t[n]}return r}function NR(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(nd(n)){let o=n.toUpperCase(),i=String.fromCharCode(parseInt(o,16));i!=="."&&wv(i)?e+=i:e+="%"+o,r+=2;continue}}zR(t[r])?e+=t[r]:e+=escape(t[r])}return e}function ZR(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(nd(n)){e+="%"+n.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}function MR(t){let e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!_v(r)){let n=kv(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=$v(r,!1)}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}Sv.exports={nonSimpleDomain:ER,recomposeAuthority:MR,reescapeHostDelimiters:$v,normalizePercentEncoding:AR,normalizePathEncoding:NR,escapePreservingEscapes:ZR,removeDotSegments:CR,isIPv4:_v,isUUID:SR,normalizeIPv6:kv,stringArrayToHexStripped:od}});var Rv=w((n4,Pv)=>{"use strict";var{isUUID:qR}=id(),DR=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,LR=["http","https","ws","wss","urn","urn:uuid"];function UR(t){return LR.indexOf(t)!==-1}function sd(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function zv(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function Ev(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function FR(t){return t.secure=sd(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function BR(t){if((t.port===(sd(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function VR(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(DR);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let o=`${n}:${e.nid||t.nid}`,i=ad(o);t.path=void 0,i&&(t=i.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function HR(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),o=`${r}:${e.nid||n}`,i=ad(o);i&&(t=i.serialize(t,e));let s=t,a=t.nss;return s.path=`${n||e.nid}:${a}`,e.skipEscape=!0,s}function GR(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!qR(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function JR(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var Tv={scheme:"http",domainHost:!0,parse:zv,serialize:Ev},WR={scheme:"https",domainHost:Tv.domainHost,parse:zv,serialize:Ev},ba={scheme:"ws",domainHost:!0,parse:FR,serialize:BR},KR={scheme:"wss",domainHost:ba.domainHost,parse:ba.parse,serialize:ba.serialize},YR={scheme:"urn",parse:VR,serialize:HR,skipNormalize:!0},XR={scheme:"urn:uuid",parse:GR,serialize:JR,skipNormalize:!0},_a={http:Tv,https:WR,ws:ba,wss:KR,urn:YR,"urn:uuid":XR};Object.setPrototypeOf(_a,null);function ad(t){return t&&(_a[t]||_a[t.toLowerCase()])||void 0}Pv.exports={wsIsSecure:sd,SCHEMES:_a,isValidSchemeName:UR,getSchemeHandler:ad}});var Nv=w((o4,wa)=>{"use strict";var{normalizeIPv6:QR,removeDotSegments:wi,recomposeAuthority:eC,normalizePercentEncoding:tC,normalizePathEncoding:rC,escapePreservingEscapes:nC,reescapeHostDelimiters:oC,isIPv4:iC,nonSimpleDomain:sC}=id(),{SCHEMES:aC,getSchemeHandler:Iv}=Rv();function cC(t,e){return typeof t=="string"?t=mC(t,e):typeof t=="object"&&(t=no(yn(t,e),e)),t}function uC(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=Ov(no(t,n),no(e,n),n,!0);return n.skipEscape=!0,yn(o,n)}function Ov(t,e,r,n){let o={};return n||(t=no(yn(t,r),r),e=no(yn(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(o.scheme=e.scheme,o.userinfo=e.userinfo,o.host=e.host,o.port=e.port,o.path=wi(e.path||""),o.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(o.userinfo=e.userinfo,o.host=e.host,o.port=e.port,o.path=wi(e.path||""),o.query=e.query):(e.path?(e.path[0]==="/"?o.path=wi(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?o.path="/"+e.path:t.path?o.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:o.path=e.path,o.path=wi(o.path)),o.query=e.query):(o.path=t.path,e.query!==void 0?o.query=e.query:o.query=t.query),o.userinfo=t.userinfo,o.host=t.host,o.port=t.port),o.scheme=t.scheme),o.fragment=e.fragment,o}function lC(t,e,r){let n=Cv(t,r),o=Cv(e,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function yn(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),o=[],i=Iv(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=tC(r.path):(r.path=nC(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let s=eC(r);if(s!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(s),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(a=wi(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var pC=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function dC(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function jv(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,i=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let s=t.match(pC);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let a=dC(n,s);if(a!==void 0&&(n.error=n.error||a,o=!0),n.host)if(iC(n.host)===!1){let l=QR(n.host);n.host=l.host.toLowerCase(),i=l.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Iv(r.scheme||n.scheme);if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&i===!1&&sC(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!c||c&&!c.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=oC(unescape(n.host),i))),n.path&&(n.path=rC(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function no(t,e){return jv(t,e).parsed}function mC(t,e){return Av(t,e).normalized}function Av(t,e){let{parsed:r,malformedAuthorityOrPort:n}=jv(t,e);return{normalized:n?t:yn(r,e),malformedAuthorityOrPort:n}}function Cv(t,e){if(typeof t=="string"){let{normalized:r,malformedAuthorityOrPort:n}=Av(t,e);return n?void 0:r}if(typeof t=="object")return yn(t,e)}var cd={SCHEMES:aC,normalize:cC,resolve:uC,resolveComponent:Ov,equal:lC,serialize:yn,parse:no};wa.exports=cd;wa.exports.default=cd;wa.exports.fastUri=cd});var Mv=w(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var Zv=Nv();Zv.code='require("ajv/dist/runtime/uri").default';ud.default=Zv});var Hv=w(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.CodeGen=Le.Name=Le.nil=Le.stringify=Le.str=Le._=Le.KeywordCxt=void 0;var fC=bi();Object.defineProperty(Le,"KeywordCxt",{enumerable:!0,get:function(){return fC.KeywordCxt}});var oo=J();Object.defineProperty(Le,"_",{enumerable:!0,get:function(){return oo._}});Object.defineProperty(Le,"str",{enumerable:!0,get:function(){return oo.str}});Object.defineProperty(Le,"stringify",{enumerable:!0,get:function(){return oo.stringify}});Object.defineProperty(Le,"nil",{enumerable:!0,get:function(){return oo.nil}});Object.defineProperty(Le,"Name",{enumerable:!0,get:function(){return oo.Name}});Object.defineProperty(Le,"CodeGen",{enumerable:!0,get:function(){return oo.CodeGen}});var hC=xa(),Fv=_i(),gC=Zp(),ki=ya(),xC=J(),$i=xi(),ka=gi(),pd=oe(),qv=yv(),vC=Mv(),Bv=(t,e)=>new RegExp(t,e);Bv.code="new RegExp";var yC=["removeAdditional","useDefaults","coerceTypes"],bC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_C={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},wC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Dv=200;function kC(t){var e,r,n,o,i,s,a,c,u,l,p,m,h,d,f,x,g,y,b,S,$,Z,N,ue,be;let Pt=t.strict,Co=(e=t.code)===null||e===void 0?void 0:e.optimize,dr=Co===!0||Co===void 0?1:Co||0,Io=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Bv,Be=(o=t.uriResolver)!==null&&o!==void 0?o:vC.default;return{strictSchema:(s=(i=t.strictSchema)!==null&&i!==void 0?i:Pt)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:Pt)!==null&&c!==void 0?c:!0,strictTypes:(l=(u=t.strictTypes)!==null&&u!==void 0?u:Pt)!==null&&l!==void 0?l:"log",strictTuples:(m=(p=t.strictTuples)!==null&&p!==void 0?p:Pt)!==null&&m!==void 0?m:"log",strictRequired:(d=(h=t.strictRequired)!==null&&h!==void 0?h:Pt)!==null&&d!==void 0?d:!1,code:t.code?{...t.code,optimize:dr,regExp:Io}:{optimize:dr,regExp:Io},loopRequired:(f=t.loopRequired)!==null&&f!==void 0?f:Dv,loopEnum:(x=t.loopEnum)!==null&&x!==void 0?x:Dv,meta:(g=t.meta)!==null&&g!==void 0?g:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(b=t.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(S=t.schemaId)!==null&&S!==void 0?S:"$id",addUsedSchema:($=t.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(Z=t.validateSchema)!==null&&Z!==void 0?Z:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(ue=t.unicodeRegExp)!==null&&ue!==void 0?ue:!0,int32range:(be=t.int32range)!==null&&be!==void 0?be:!0,uriResolver:Be}}var Si=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...kC(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new xC.ValueScope({scope:{},prefixes:bC,es5:r,lines:n}),this.logger=PC(e.logger);let o=e.validateFormats;e.validateFormats=!1,this.RULES=(0,gC.getRules)(),Lv.call(this,_C,e,"NOT SUPPORTED"),Lv.call(this,wC,e,"DEPRECATED","warn"),this._metaOpts=EC.call(this),e.formats&&SC.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&zC.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),$C.call(this),e.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,o=qv;n==="id"&&(o={...qv},o.id=o.$id,delete o.$id),r&&e&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,e,r);async function o(l,p){await i.call(this,l.$schema);let m=this._addSchema(l,p);return m.validate||s.call(this,m)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(p){if(!(p instanceof Fv.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:p}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${p} cannot be resolved`)}async function c(l){let p=await u.call(this,l);this.refs[l]||await i.call(this,p.$schema),this.refs[l]||this.addSchema(p,l,r)}async function u(l){let p=this._loading[l];if(p)return p;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(e,r,n,o=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,o);return this}let i;if(typeof e=="object"){let{schemaId:s}=this.opts;if(i=e[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,$i.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,o,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,e);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(e){let r;for(;typeof(r=Uv.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,o=new ki.SchemaEnv({schema:{},schemaId:n});if(r=ki.resolveSchema.call(this,o,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Uv.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,$i.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(CC.call(this,n,r),!r)return(0,pd.eachItem)(n,i=>ld.call(this,i)),this;OC.call(this,r);let o={...r,type:(0,ka.getJSONTypes)(r.type),schemaType:(0,ka.getJSONTypes)(r.schemaType)};return(0,pd.eachItem)(n,o.type.length===0?i=>ld.call(this,i,o):i=>o.type.forEach(s=>ld.call(this,i,o,s))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===e);o>=0&&n.rules.splice(o,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let o of r){let i=o.split("/").slice(1),s=e;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:u}=c.definition,l=s[a];u&&l&&(s[a]=Vv(l))}}return e}_removeAllSchemas(e,r){for(let n in e){let o=e[n];(!r||r.test(n))&&(typeof o=="string"?delete e[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[n]))}}_addSchema(e,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,$i.normalizeId)(s||n);let u=$i.getSchemaRefs.call(this,e,n);return c=new ki.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:u}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):ki.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{ki.compileSchema.call(this,e)}finally{this.opts=r}}};Si.ValidationError=hC.default;Si.MissingRefError=Fv.default;Le.default=Si;function Lv(t,e,r,n="error"){for(let o in t){let i=o;i in e&&this.logger[n](`${r}: option ${o}. ${t[i]}`)}}function Uv(t){return t=(0,$i.normalizeId)(t),this.schemas[t]||this.refs[t]}function $C(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function SC(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function zC(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function EC(){let t={...this.opts};for(let e of yC)delete t[e];return t}var TC={log(){},warn(){},error(){}};function PC(t){if(t===!1)return TC;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var RC=/^[a-z_$][a-z0-9_$:-]*$/i;function CC(t,e){let{RULES:r}=this;if((0,pd.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!RC.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function ld(t,e,r){var n;let o=e==null?void 0:e.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,ka.getJSONTypes)(e.type),schemaType:(0,ka.getJSONTypes)(e.schemaType)}};e.before?IC.call(this,s,a,e.before):s.rules.push(a),i.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function IC(t,e,r){let n=t.rules.findIndex(o=>o.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function OC(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Vv(e)),t.validateSchema=this.compile(e,!0))}var jC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Vv(t){return{anyOf:[t,jC]}}});var Gv=w(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var AC={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};dd.default=AC});var Yv=w(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.callRef=bn.getValidate=void 0;var NC=_i(),Jv=$t(),lt=J(),io=cr(),Wv=ya(),$a=oe(),ZC={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:u}=i;if((r==="#"||r==="#/")&&o===u.baseId)return p();let l=Wv.resolveRef.call(c,u,o,r);if(l===void 0)throw new NC.default(n.opts.uriResolver,o,r);if(l instanceof Wv.SchemaEnv)return m(l);return h(l);function p(){if(i===u)return Sa(t,s,i,i.$async);let d=e.scopeValue("root",{ref:u});return Sa(t,(0,lt._)`${d}.validate`,u,u.$async)}function m(d){let f=Kv(t,d);Sa(t,f,d,d.$async)}function h(d){let f=e.scopeValue("schema",a.code.source===!0?{ref:d,code:(0,lt.stringify)(d)}:{ref:d}),x=e.name("valid"),g=t.subschema({schema:d,dataTypes:[],schemaPath:lt.nil,topSchemaRef:f,errSchemaPath:r},x);t.mergeEvaluated(g),t.ok(x)}}};function Kv(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,lt._)`${r.scopeValue("wrapper",{ref:e})}.validate`}bn.getValidate=Kv;function Sa(t,e,r,n){let{gen:o,it:i}=t,{allErrors:s,schemaEnv:a,opts:c}=i,u=c.passContext?io.default.this:lt.nil;n?l():p();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let d=o.let("valid");o.try(()=>{o.code((0,lt._)`await ${(0,Jv.callValidateCode)(t,e,u)}`),h(e),s||o.assign(d,!0)},f=>{o.if((0,lt._)`!(${f} instanceof ${i.ValidationError})`,()=>o.throw(f)),m(f),s||o.assign(d,!1)}),t.ok(d)}function p(){t.result((0,Jv.callValidateCode)(t,e,u),()=>h(e),()=>m(e))}function m(d){let f=(0,lt._)`${d}.errors`;o.assign(io.default.vErrors,(0,lt._)`${io.default.vErrors} === null ? ${f} : ${io.default.vErrors}.concat(${f})`),o.assign(io.default.errors,(0,lt._)`${io.default.vErrors}.length`)}function h(d){var f;if(!i.opts.unevaluated)return;let x=(f=r==null?void 0:r.validate)===null||f===void 0?void 0:f.evaluated;if(i.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(i.props=$a.mergeEvaluated.props(o,x.props,i.props));else{let g=o.var("props",(0,lt._)`${d}.evaluated.props`);i.props=$a.mergeEvaluated.props(o,g,i.props,lt.Name)}if(i.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(i.items=$a.mergeEvaluated.items(o,x.items,i.items));else{let g=o.var("items",(0,lt._)`${d}.evaluated.items`);i.items=$a.mergeEvaluated.items(o,g,i.items,lt.Name)}}}bn.callRef=Sa;bn.default=ZC});var Xv=w(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});var MC=Gv(),qC=Yv(),DC=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",MC.default,qC.default];md.default=DC});var Qv=w(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});var za=J(),Rr=za.operators,Ea={maximum:{okStr:"<=",ok:Rr.LTE,fail:Rr.GT},minimum:{okStr:">=",ok:Rr.GTE,fail:Rr.LT},exclusiveMaximum:{okStr:"<",ok:Rr.LT,fail:Rr.GTE},exclusiveMinimum:{okStr:">",ok:Rr.GT,fail:Rr.LTE}},LC={message:({keyword:t,schemaCode:e})=>(0,za.str)`must be ${Ea[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,za._)`{comparison: ${Ea[t].okStr}, limit: ${e}}`},UC={keyword:Object.keys(Ea),type:"number",schemaType:"number",$data:!0,error:LC,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,za._)`${r} ${Ea[e].fail} ${n} || isNaN(${r})`)}};fd.default=UC});var ey=w(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var zi=J(),FC={message:({schemaCode:t})=>(0,zi.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,zi._)`{multipleOf: ${t}}`},BC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:FC,code(t){let{gen:e,data:r,schemaCode:n,it:o}=t,i=o.opts.multipleOfPrecision,s=e.let("res"),a=i?(0,zi._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,zi._)`${s} !== parseInt(${s})`;t.fail$data((0,zi._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};hd.default=BC});var ry=w(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});function ty(t){let e=t.length,r=0,n=0,o;for(;n<e;)r++,o=t.charCodeAt(n++),o>=55296&&o<=56319&&n<e&&(o=t.charCodeAt(n),(o&64512)===56320&&n++);return r}gd.default=ty;ty.code='require("ajv/dist/runtime/ucs2length").default'});var ny=w(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});var _n=J(),VC=oe(),HC=ry(),GC={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,_n.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,_n._)`{limit: ${t}}`},JC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:GC,code(t){let{keyword:e,data:r,schemaCode:n,it:o}=t,i=e==="maxLength"?_n.operators.GT:_n.operators.LT,s=o.opts.unicode===!1?(0,_n._)`${r}.length`:(0,_n._)`${(0,VC.useFunc)(t.gen,HC.default)}(${r})`;t.fail$data((0,_n._)`${s} ${i} ${n}`)}};xd.default=JC});var oy=w(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var WC=$t(),KC=oe(),so=J(),YC={message:({schemaCode:t})=>(0,so.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,so._)`{pattern: ${t}}`},XC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:YC,code(t){let{gen:e,data:r,$data:n,schema:o,schemaCode:i,it:s}=t,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,u=c.code==="new RegExp"?(0,so._)`new RegExp`:(0,KC.useFunc)(e,c),l=e.let("valid");e.try(()=>e.assign(l,(0,so._)`${u}(${i}, ${a}).test(${r})`),()=>e.assign(l,!1)),t.fail$data((0,so._)`!${l}`)}else{let c=(0,WC.usePattern)(t,o);t.fail$data((0,so._)`!${c}.test(${r})`)}}};vd.default=XC});var iy=w(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var Ei=J(),QC={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Ei.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,Ei._)`{limit: ${t}}`},eI={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:QC,code(t){let{keyword:e,data:r,schemaCode:n}=t,o=e==="maxProperties"?Ei.operators.GT:Ei.operators.LT;t.fail$data((0,Ei._)`Object.keys(${r}).length ${o} ${n}`)}};yd.default=eI});var sy=w(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var Ti=$t(),Pi=J(),tI=oe(),rI={message:({params:{missingProperty:t}})=>(0,Pi.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Pi._)`{missingProperty: ${t}}`},nI={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rI,code(t){let{gen:e,schema:r,schemaCode:n,data:o,$data:i,it:s}=t,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?u():l(),a.strictRequired){let h=t.parentSchema.properties,{definedProperties:d}=t.it;for(let f of r)if((h==null?void 0:h[f])===void 0&&!d.has(f)){let x=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${f}" is not defined at "${x}" (strictRequired)`;(0,tI.checkStrictMode)(s,g,s.opts.strictRequired)}}function u(){if(c||i)t.block$data(Pi.nil,p);else for(let h of r)(0,Ti.checkReportMissingProp)(t,h)}function l(){let h=e.let("missing");if(c||i){let d=e.let("valid",!0);t.block$data(d,()=>m(h,d)),t.ok(d)}else e.if((0,Ti.checkMissingProp)(t,r,h)),(0,Ti.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,Ti.noPropertyInData)(e,o,h,a.ownProperties),()=>t.error())})}function m(h,d){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(d,(0,Ti.propertyInData)(e,o,h,a.ownProperties)),e.if((0,Pi.not)(d),()=>{t.error(),e.break()})},Pi.nil)}}};bd.default=nI});var ay=w(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var Ri=J(),oI={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,Ri.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Ri._)`{limit: ${t}}`},iI={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:oI,code(t){let{keyword:e,data:r,schemaCode:n}=t,o=e==="maxItems"?Ri.operators.GT:Ri.operators.LT;t.fail$data((0,Ri._)`${r}.length ${o} ${n}`)}};_d.default=iI});var Ta=w(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});var cy=Vp();cy.code='require("ajv/dist/runtime/equal").default';wd.default=cy});var uy=w($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var kd=gi(),Ue=J(),sI=oe(),aI=Ta(),cI={message:({params:{i:t,j:e}})=>(0,Ue.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Ue._)`{i: ${t}, j: ${e}}`},uI={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:cI,code(t){let{gen:e,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=t;if(!n&&!o)return;let c=e.let("valid"),u=i.items?(0,kd.getSchemaTypes)(i.items):[];t.block$data(c,l,(0,Ue._)`${s} === false`),t.ok(c);function l(){let d=e.let("i",(0,Ue._)`${r}.length`),f=e.let("j");t.setParams({i:d,j:f}),e.assign(c,!0),e.if((0,Ue._)`${d} > 1`,()=>(p()?m:h)(d,f))}function p(){return u.length>0&&!u.some(d=>d==="object"||d==="array")}function m(d,f){let x=e.name("item"),g=(0,kd.checkDataTypes)(u,x,a.opts.strictNumbers,kd.DataType.Wrong),y=e.const("indices",(0,Ue._)`{}`);e.for((0,Ue._)`;${d}--;`,()=>{e.let(x,(0,Ue._)`${r}[${d}]`),e.if(g,(0,Ue._)`continue`),u.length>1&&e.if((0,Ue._)`typeof ${x} == "string"`,(0,Ue._)`${x} += "_"`),e.if((0,Ue._)`typeof ${y}[${x}] == "number"`,()=>{e.assign(f,(0,Ue._)`${y}[${x}]`),t.error(),e.assign(c,!1).break()}).code((0,Ue._)`${y}[${x}] = ${d}`)})}function h(d,f){let x=(0,sI.useFunc)(e,aI.default),g=e.name("outer");e.label(g).for((0,Ue._)`;${d}--;`,()=>e.for((0,Ue._)`${f} = ${d}; ${f}--;`,()=>e.if((0,Ue._)`${x}(${r}[${d}], ${r}[${f}])`,()=>{t.error(),e.assign(c,!1).break(g)})))}}};$d.default=uI});var ly=w(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var Sd=J(),lI=oe(),pI=Ta(),dI={message:"must be equal to constant",params:({schemaCode:t})=>(0,Sd._)`{allowedValue: ${t}}`},mI={keyword:"const",$data:!0,error:dI,code(t){let{gen:e,data:r,$data:n,schemaCode:o,schema:i}=t;n||i&&typeof i=="object"?t.fail$data((0,Sd._)`!${(0,lI.useFunc)(e,pI.default)}(${r}, ${o})`):t.fail((0,Sd._)`${i} !== ${r}`)}};zd.default=mI});var py=w(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var Ci=J(),fI=oe(),hI=Ta(),gI={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Ci._)`{allowedValues: ${t}}`},xI={keyword:"enum",schemaType:"array",$data:!0,error:gI,code(t){let{gen:e,data:r,$data:n,schema:o,schemaCode:i,it:s}=t;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,u=()=>c??(c=(0,fI.useFunc)(e,hI.default)),l;if(a||n)l=e.let("valid"),t.block$data(l,p);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let h=e.const("vSchema",i);l=(0,Ci.or)(...o.map((d,f)=>m(h,f)))}t.pass(l);function p(){e.assign(l,!1),e.forOf("v",i,h=>e.if((0,Ci._)`${u()}(${r}, ${h})`,()=>e.assign(l,!0).break()))}function m(h,d){let f=o[d];return typeof f=="object"&&f!==null?(0,Ci._)`${u()}(${r}, ${h}[${d}])`:(0,Ci._)`${r} === ${f}`}}};Ed.default=xI});var dy=w(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var vI=Qv(),yI=ey(),bI=ny(),_I=oy(),wI=iy(),kI=sy(),$I=ay(),SI=uy(),zI=ly(),EI=py(),TI=[vI.default,yI.default,bI.default,_I.default,wI.default,kI.default,$I.default,SI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},zI.default,EI.default];Td.default=TI});var Rd=w(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.validateAdditionalItems=void 0;var wn=J(),Pd=oe(),PI={message:({params:{len:t}})=>(0,wn.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,wn._)`{limit: ${t}}`},RI={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:PI,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,Pd.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}my(t,n)}};function my(t,e){let{gen:r,schema:n,data:o,keyword:i,it:s}=t;s.items=!0;let a=r.const("len",(0,wn._)`${o}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,wn._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,Pd.alwaysValidSchema)(s,n)){let u=r.var("valid",(0,wn._)`${a} <= ${e.length}`);r.if((0,wn.not)(u),()=>c(u)),t.ok(u)}function c(u){r.forRange("i",e.length,a,l=>{t.subschema({keyword:i,dataProp:l,dataPropType:Pd.Type.Num},u),s.allErrors||r.if((0,wn.not)(u),()=>r.break())})}}Ii.validateAdditionalItems=my;Ii.default=RI});var Cd=w(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.validateTuple=void 0;var fy=J(),Pa=oe(),CI=$t(),II={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return hy(t,"additionalItems",e);r.items=!0,!(0,Pa.alwaysValidSchema)(r,e)&&t.ok((0,CI.validateArray)(t))}};function hy(t,e,r=t.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=t;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Pa.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),u=n.const("len",(0,fy._)`${i}.length`);r.forEach((p,m)=>{(0,Pa.alwaysValidSchema)(a,p)||(n.if((0,fy._)`${u} > ${m}`,()=>t.subschema({keyword:s,schemaProp:m,dataProp:m},c)),t.ok(c))});function l(p){let{opts:m,errSchemaPath:h}=a,d=r.length,f=d===p.minItems&&(d===p.maxItems||p[e]===!1);if(m.strictTuples&&!f){let x=`"${s}" is ${d}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,Pa.checkStrictMode)(a,x,m.strictTuples)}}}Oi.validateTuple=hy;Oi.default=II});var gy=w(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var OI=Cd(),jI={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,OI.validateTuple)(t,"items")};Id.default=jI});var vy=w(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var xy=J(),AI=oe(),NI=$t(),ZI=Rd(),MI={message:({params:{len:t}})=>(0,xy.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,xy._)`{limit: ${t}}`},qI={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:MI,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:o}=r;n.items=!0,!(0,AI.alwaysValidSchema)(n,e)&&(o?(0,ZI.validateAdditionalItems)(t,o):t.ok((0,NI.validateArray)(t)))}};Od.default=qI});var yy=w(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var zt=J(),Ra=oe(),DI={message:({params:{min:t,max:e}})=>e===void 0?(0,zt.str)`must contain at least ${t} valid item(s)`:(0,zt.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,zt._)`{minContains: ${t}}`:(0,zt._)`{minContains: ${t}, maxContains: ${e}}`},LI={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:DI,code(t){let{gen:e,schema:r,parentSchema:n,data:o,it:i}=t,s,a,{minContains:c,maxContains:u}=n;i.opts.next?(s=c===void 0?1:c,a=u):s=1;let l=e.const("len",(0,zt._)`${o}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,Ra.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Ra.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Ra.alwaysValidSchema)(i,r)){let f=(0,zt._)`${l} >= ${s}`;a!==void 0&&(f=(0,zt._)`${f} && ${l} <= ${a}`),t.pass(f);return}i.items=!0;let p=e.name("valid");a===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),a!==void 0&&e.if((0,zt._)`${o}.length > 0`,m)):(e.let(p,!1),m()),t.result(p,()=>t.reset());function m(){let f=e.name("_valid"),x=e.let("count",0);h(f,()=>e.if(f,()=>d(x)))}function h(f,x){e.forRange("i",0,l,g=>{t.subschema({keyword:"contains",dataProp:g,dataPropType:Ra.Type.Num,compositeRule:!0},f),x()})}function d(f){e.code((0,zt._)`${f}++`),a===void 0?e.if((0,zt._)`${f} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,zt._)`${f} > ${a}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,zt._)`${f} >= ${s}`,()=>e.assign(p,!0)))}}};jd.default=LI});var wy=w(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.validateSchemaDeps=Wt.validatePropertyDeps=Wt.error=void 0;var Ad=J(),UI=oe(),ji=$t();Wt.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,Ad.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,Ad._)`{property: ${t},
2
+ "use strict";var fk=Object.create;var Zc=Object.defineProperty;var hk=Object.getOwnPropertyDescriptor;var gk=Object.getOwnPropertyNames;var xk=Object.getPrototypeOf,vk=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qc=(t,e)=>{for(var r in e)Zc(t,r,{get:e[r],enumerable:!0})},yk=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of gk(e))!vk.call(t,o)&&o!==r&&Zc(t,o,{get:()=>e[o],enumerable:!(n=hk(e,o))||n.enumerable});return t};var le=(t,e,r)=>(r=t!=null?fk(xk(t)):{},yk(e||!t||!t.__esModule?Zc(r,"default",{value:t,enumerable:!0}):r,t));var pi=w(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.regexpCode=ae.getEsmExportName=ae.getProperty=ae.safeStringify=ae.stringify=ae.strConcat=ae.addCodeArg=ae.str=ae._=ae.nil=ae._Code=ae.Name=ae.IDENTIFIER=ae._CodeOrName=void 0;var ui=class{};ae._CodeOrName=ui;ae.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var fn=class extends ui{constructor(e){if(super(),!ae.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ae.Name=fn;var kt=class extends ui{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof fn&&(r[n.str]=(r[n.str]||0)+1),r),{})}};ae._Code=kt;ae.nil=new kt("");function Ex(t,...e){let r=[t[0]],n=0;for(;n<e.length;)kp(r,e[n]),r.push(t[++n]);return new kt(r)}ae._=Ex;var wp=new kt("+");function Px(t,...e){let r=[li(t[0])],n=0;for(;n<e.length;)r.push(wp),kp(r,e[n]),r.push(wp,li(t[++n]));return yE(r),new kt(r)}ae.str=Px;function kp(t,e){e instanceof kt?t.push(...e._items):e instanceof fn?t.push(e):t.push(wE(e))}ae.addCodeArg=kp;function yE(t){let e=1;for(;e<t.length-1;){if(t[e]===wp){let r=bE(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function bE(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof fn||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof fn))return`"${t}${e.slice(1)}`}function _E(t,e){return e.emptyStr()?t:t.emptyStr()?e:Px`${t}${e}`}ae.strConcat=_E;function wE(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:li(Array.isArray(t)?t.join(","):t)}function kE(t){return new kt(li(t))}ae.stringify=kE;function li(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ae.safeStringify=li;function SE(t){return typeof t=="string"&&ae.IDENTIFIER.test(t)?new kt(`.${t}`):Ex`[${t}]`}ae.getProperty=SE;function $E(t){if(typeof t=="string"&&ae.IDENTIFIER.test(t))return new kt(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}ae.getEsmExportName=$E;function zE(t){return new kt(t.toString())}ae.regexpCode=zE});var zp=w(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.ValueScope=ut.ValueScopeName=ut.Scope=ut.varKinds=ut.UsedValueState=void 0;var ct=pi(),Sp=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},sa;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(sa||(ut.UsedValueState=sa={}));ut.varKinds={const:new ct.Name("const"),let:new ct.Name("let"),var:new ct.Name("var")};var aa=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof ct.Name?e:this.name(e)}name(e){return new ct.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};ut.Scope=aa;var ca=class extends ct.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,ct._)`.${new ct.Name(r)}[${n}]`}};ut.ValueScopeName=ca;var TE=(0,ct._)`\n`,$p=class extends aa{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?TE:ct.nil}}get(){return this._scope}name(e){return new ca(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(e),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),u=c.length;return c[u]=r.ref,o.setValue(r,{property:i,itemIndex:u}),o}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,ct._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(e,r,n={},o){let i=ct.nil;for(let s in e){let a=e[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,sa.Started);let l=r(u);if(l){let p=this.opts.es5?ut.varKinds.var:ut.varKinds.const;i=(0,ct._)`${i}${p} ${u} = ${l};${this.opts._n}`}else if(l=o==null?void 0:o(u))i=(0,ct._)`${i}${l}${this.opts._n}`;else throw new Sp(u);c.set(u,sa.Completed)})}return i}};ut.ValueScope=$p});var W=w(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.or=K.and=K.not=K.CodeGen=K.operators=K.varKinds=K.ValueScopeName=K.ValueScope=K.Scope=K.Name=K.regexpCode=K.stringify=K.getProperty=K.nil=K.strConcat=K.str=K._=void 0;var ne=pi(),At=zp(),Tr=pi();Object.defineProperty(K,"_",{enumerable:!0,get:function(){return Tr._}});Object.defineProperty(K,"str",{enumerable:!0,get:function(){return Tr.str}});Object.defineProperty(K,"strConcat",{enumerable:!0,get:function(){return Tr.strConcat}});Object.defineProperty(K,"nil",{enumerable:!0,get:function(){return Tr.nil}});Object.defineProperty(K,"getProperty",{enumerable:!0,get:function(){return Tr.getProperty}});Object.defineProperty(K,"stringify",{enumerable:!0,get:function(){return Tr.stringify}});Object.defineProperty(K,"regexpCode",{enumerable:!0,get:function(){return Tr.regexpCode}});Object.defineProperty(K,"Name",{enumerable:!0,get:function(){return Tr.Name}});var da=zp();Object.defineProperty(K,"Scope",{enumerable:!0,get:function(){return da.Scope}});Object.defineProperty(K,"ValueScope",{enumerable:!0,get:function(){return da.ValueScope}});Object.defineProperty(K,"ValueScopeName",{enumerable:!0,get:function(){return da.ValueScopeName}});Object.defineProperty(K,"varKinds",{enumerable:!0,get:function(){return da.varKinds}});K.operators={GT:new ne._Code(">"),GTE:new ne._Code(">="),LT:new ne._Code("<"),LTE:new ne._Code("<="),EQ:new ne._Code("==="),NEQ:new ne._Code("!=="),NOT:new ne._Code("!"),OR:new ne._Code("||"),AND:new ne._Code("&&"),ADD:new ne._Code("+")};var cr=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Tp=class extends cr{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?At.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Qn(this.rhs,e,r)),this}get names(){return this.rhs instanceof ne._CodeOrName?this.rhs.names:{}}},ua=class extends cr{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof ne.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Qn(this.rhs,e,r),this}get names(){let e=this.lhs instanceof ne.Name?{}:{...this.lhs.names};return pa(e,this.rhs)}},Ep=class extends ua{constructor(e,r,n,o){super(e,n,o),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Pp=class extends cr{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Rp=class extends cr{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Ip=class extends cr{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Op=class extends cr{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Qn(this.code,e,r),this}get names(){return this.code instanceof ne._CodeOrName?this.code.names:{}}},di=class extends cr{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(e,r)||(EE(e,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>xn(e,r.names),{})}},ur=class extends di{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Cp=class extends di{},Xn=class extends ur{};Xn.kind="else";var hn=class t extends ur{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Xn(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Rx(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Qn(this.condition,e,r),this}get names(){let e=super.names;return pa(e,this.condition),this.else&&xn(e,this.else.names),e}};hn.kind="if";var gn=class extends ur{};gn.kind="for";var jp=class extends gn{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Qn(this.iteration,e,r),this}get names(){return xn(super.names,this.iteration.names)}},Ap=class extends gn{constructor(e,r,n,o){super(),this.varKind=e,this.name=r,this.from=n,this.to=o}render(e){let r=e.es5?At.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){let e=pa(super.names,this.from);return pa(e,this.to)}},la=class extends gn{constructor(e,r,n,o){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Qn(this.iterable,e,r),this}get names(){return xn(super.names,this.iterable.names)}},mi=class extends ur{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};mi.kind="func";var fi=class extends di{render(e){return"return "+super.render(e)}};fi.kind="return";var Np=class extends ur{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,o;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(o=this.finally)===null||o===void 0||o.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&xn(e,this.catch.names),this.finally&&xn(e,this.finally.names),e}},hi=class extends ur{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};hi.kind="catch";var gi=class extends ur{render(e){return"finally"+super.render(e)}};gi.kind="finally";var Dp=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
3
+ `:""},this._extScope=e,this._scope=new At.Scope({parent:e}),this._nodes=[new Cp]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new Tp(e,i,n)),i}const(e,r,n){return this._def(At.varKinds.const,e,r,n)}let(e,r,n){return this._def(At.varKinds.let,e,r,n)}var(e,r,n){return this._def(At.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new ua(e,r,n))}add(e,r){return this._leafNode(new Ep(e,K.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==ne.nil&&this._leafNode(new Op(e)),this}object(...e){let r=["{"];for(let[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,ne.addCodeArg)(r,o));return r.push("}"),new ne._Code(r)}if(e,r,n){if(this._blockNode(new hn(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new hn(e))}else(){return this._elseNode(new Xn)}endIf(){return this._endBlockNode(hn,Xn)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new jp(e),r)}forRange(e,r,n,o,i=this.opts.es5?At.varKinds.var:At.varKinds.let){let s=this._scope.toName(e);return this._for(new Ap(i,s,r,n),()=>o(s))}forOf(e,r,n,o=At.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let s=r instanceof ne.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ne._)`${s}.length`,a=>{this.var(i,(0,ne._)`${s}[${a}]`),n(i)})}return this._for(new la("of",o,i,r),()=>n(i))}forIn(e,r,n,o=this.opts.es5?At.varKinds.var:At.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,ne._)`Object.keys(${r})`,n);let i=this._scope.toName(e);return this._for(new la("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(gn)}label(e){return this._leafNode(new Pp(e))}break(e){return this._leafNode(new Rp(e))}return(e){let r=new fi;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(fi)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Np;if(this._blockNode(o),this.code(e),r){let i=this.name("e");this._currNode=o.catch=new hi(i),r(i)}return n&&(this._currNode=o.finally=new gi,this.code(n)),this._endBlockNode(hi,gi)}throw(e){return this._leafNode(new Ip(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=ne.nil,n,o){return this._blockNode(new mi(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(mi)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof hn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};K.CodeGen=Dp;function xn(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function pa(t,e){return e instanceof ne._CodeOrName?xn(t,e.names):t}function Qn(t,e,r){if(t instanceof ne.Name)return n(t);if(!o(t))return t;return new ne._Code(t._items.reduce((i,s)=>(s instanceof ne.Name&&(s=n(s)),s instanceof ne._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||e[i.str]!==1?i:(delete e[i.str],s)}function o(i){return i instanceof ne._Code&&i._items.some(s=>s instanceof ne.Name&&e[s.str]===1&&r[s.str]!==void 0)}}function EE(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Rx(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,ne._)`!${Lp(t)}`}K.not=Rx;var PE=Ix(K.operators.AND);function RE(...t){return t.reduce(PE)}K.and=RE;var IE=Ix(K.operators.OR);function OE(...t){return t.reduce(IE)}K.or=OE;function Ix(t){return(e,r)=>e===ne.nil?r:r===ne.nil?e:(0,ne._)`${Lp(e)} ${t} ${Lp(r)}`}function Lp(t){return t instanceof ne.Name?t:(0,ne._)`(${t})`}});var oe=w(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.checkStrictMode=Y.getErrorPath=Y.Type=Y.useFunc=Y.setEvaluated=Y.evaluatedPropsToName=Y.mergeEvaluated=Y.eachItem=Y.unescapeJsonPointer=Y.escapeJsonPointer=Y.escapeFragment=Y.unescapeFragment=Y.schemaRefOrVal=Y.schemaHasRulesButRef=Y.schemaHasRules=Y.checkUnknownRules=Y.alwaysValidSchema=Y.toHash=void 0;var me=W(),CE=pi();function jE(t){let e={};for(let r of t)e[r]=!0;return e}Y.toHash=jE;function AE(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(jx(t,e),!Ax(e,t.self.RULES.all))}Y.alwaysValidSchema=AE;function jx(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let o=n.RULES.keywords;for(let i in e)o[i]||Lx(t,`unknown keyword: "${i}"`)}Y.checkUnknownRules=jx;function Ax(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}Y.schemaHasRules=Ax;function NE(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}Y.schemaHasRulesButRef=NE;function DE({topSchemaRef:t,schemaPath:e},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,me._)`${r}`}return(0,me._)`${t}${e}${(0,me.getProperty)(n)}`}Y.schemaRefOrVal=DE;function LE(t){return Nx(decodeURIComponent(t))}Y.unescapeFragment=LE;function ME(t){return encodeURIComponent(Zp(t))}Y.escapeFragment=ME;function Zp(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Y.escapeJsonPointer=Zp;function Nx(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Y.unescapeJsonPointer=Nx;function ZE(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}Y.eachItem=ZE;function Ox({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof me.Name?(i instanceof me.Name?t(o,i,s):e(o,i,s),s):i instanceof me.Name?(e(o,s,i),i):r(i,s);return a===me.Name&&!(c instanceof me.Name)?n(o,c):c}}Y.mergeEvaluated={props:Ox({mergeNames:(t,e,r)=>t.if((0,me._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,me._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,me._)`${r} || {}`).code((0,me._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,me._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,me._)`${r} || {}`),qp(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Dx}),items:Ox({mergeNames:(t,e,r)=>t.if((0,me._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,me._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,me._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,me._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Dx(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,me._)`{}`);return e!==void 0&&qp(t,r,e),r}Y.evaluatedPropsToName=Dx;function qp(t,e,r){Object.keys(r).forEach(n=>t.assign((0,me._)`${e}${(0,me.getProperty)(n)}`,!0))}Y.setEvaluated=qp;var Cx={};function qE(t,e){return t.scopeValue("func",{ref:e,code:Cx[e.code]||(Cx[e.code]=new CE._Code(e.code))})}Y.useFunc=qE;var Mp;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Mp||(Y.Type=Mp={}));function UE(t,e,r){if(t instanceof me.Name){let n=e===Mp.Num;return r?n?(0,me._)`"[" + ${t} + "]"`:(0,me._)`"['" + ${t} + "']"`:n?(0,me._)`"/" + ${t}`:(0,me._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,me.getProperty)(t).toString():"/"+Zp(t)}Y.getErrorPath=UE;function Lx(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}Y.checkStrictMode=Lx});var lr=w(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var We=W(),FE={data:new We.Name("data"),valCxt:new We.Name("valCxt"),instancePath:new We.Name("instancePath"),parentData:new We.Name("parentData"),parentDataProperty:new We.Name("parentDataProperty"),rootData:new We.Name("rootData"),dynamicAnchors:new We.Name("dynamicAnchors"),vErrors:new We.Name("vErrors"),errors:new We.Name("errors"),this:new We.Name("this"),self:new We.Name("self"),scope:new We.Name("scope"),json:new We.Name("json"),jsonPos:new We.Name("jsonPos"),jsonLen:new We.Name("jsonLen"),jsonPart:new We.Name("jsonPart")};Up.default=FE});var xi=w(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.extendErrors=Ke.resetErrorsCount=Ke.reportExtraError=Ke.reportError=Ke.keyword$DataError=Ke.keywordError=void 0;var ie=W(),ma=oe(),rt=lr();Ke.keywordError={message:({keyword:t})=>(0,ie.str)`must pass "${t}" keyword validation`};Ke.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ie.str)`"${t}" keyword must be ${e} ($data)`:(0,ie.str)`"${t}" keyword is invalid ($data)`};function BE(t,e=Ke.keywordError,r,n){let{it:o}=t,{gen:i,compositeRule:s,allErrors:a}=o,c=qx(t,e,r);n??(s||a)?Mx(i,c):Zx(o,(0,ie._)`[${c}]`)}Ke.reportError=BE;function VE(t,e=Ke.keywordError,r){let{it:n}=t,{gen:o,compositeRule:i,allErrors:s}=n,a=qx(t,e,r);Mx(o,a),i||s||Zx(n,rt.default.vErrors)}Ke.reportExtraError=VE;function HE(t,e){t.assign(rt.default.errors,e),t.if((0,ie._)`${rt.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ie._)`${rt.default.vErrors}.length`,e),()=>t.assign(rt.default.vErrors,null)))}Ke.resetErrorsCount=HE;function GE({gen:t,keyword:e,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",o,rt.default.errors,a=>{t.const(s,(0,ie._)`${rt.default.vErrors}[${a}]`),t.if((0,ie._)`${s}.instancePath === undefined`,()=>t.assign((0,ie._)`${s}.instancePath`,(0,ie.strConcat)(rt.default.instancePath,i.errorPath))),t.assign((0,ie._)`${s}.schemaPath`,(0,ie.str)`${i.errSchemaPath}/${e}`),i.opts.verbose&&(t.assign((0,ie._)`${s}.schema`,r),t.assign((0,ie._)`${s}.data`,n))})}Ke.extendErrors=GE;function Mx(t,e){let r=t.const("err",e);t.if((0,ie._)`${rt.default.vErrors} === null`,()=>t.assign(rt.default.vErrors,(0,ie._)`[${r}]`),(0,ie._)`${rt.default.vErrors}.push(${r})`),t.code((0,ie._)`${rt.default.errors}++`)}function Zx(t,e){let{gen:r,validateName:n,schemaEnv:o}=t;o.$async?r.throw((0,ie._)`new ${t.ValidationError}(${e})`):(r.assign((0,ie._)`${n}.errors`,e),r.return(!1))}var vn={keyword:new ie.Name("keyword"),schemaPath:new ie.Name("schemaPath"),params:new ie.Name("params"),propertyName:new ie.Name("propertyName"),message:new ie.Name("message"),schema:new ie.Name("schema"),parentSchema:new ie.Name("parentSchema")};function qx(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,ie._)`{}`:JE(t,e,r)}function JE(t,e,r={}){let{gen:n,it:o}=t,i=[WE(o,r),KE(t,r)];return YE(t,e,i),n.object(...i)}function WE({errorPath:t},{instancePath:e}){let r=e?(0,ie.str)`${t}${(0,ma.getErrorPath)(e,ma.Type.Str)}`:t;return[rt.default.instancePath,(0,ie.strConcat)(rt.default.instancePath,r)]}function KE({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let o=n?e:(0,ie.str)`${e}/${t}`;return r&&(o=(0,ie.str)`${o}${(0,ma.getErrorPath)(r,ma.Type.Str)}`),[vn.schemaPath,o]}function YE(t,{params:e,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=t,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:p}=a;n.push([vn.keyword,o],[vn.params,typeof e=="function"?e(t):e||(0,ie._)`{}`]),c.messages&&n.push([vn.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([vn.schema,s],[vn.parentSchema,(0,ie._)`${l}${p}`],[rt.default.data,i]),u&&n.push([vn.propertyName,u])}});var Fx=w(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.boolOrEmptySchema=eo.topBoolOrEmptySchema=void 0;var XE=xi(),QE=W(),eP=lr(),tP={message:"boolean schema is false"};function rP(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Ux(t,!1):typeof r=="object"&&r.$async===!0?e.return(eP.default.data):(e.assign((0,QE._)`${n}.errors`,null),e.return(!0))}eo.topBoolOrEmptySchema=rP;function nP(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Ux(t)):r.var(e,!0)}eo.boolOrEmptySchema=nP;function Ux(t,e){let{gen:r,data:n}=t,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,XE.reportError)(o,tP,void 0,e)}});var Fp=w(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.getRules=to.isJSONType=void 0;var oP=["string","number","integer","boolean","null","object","array"],iP=new Set(oP);function sP(t){return typeof t=="string"&&iP.has(t)}to.isJSONType=sP;function aP(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}to.getRules=aP});var Bp=w(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.shouldUseRule=Er.shouldUseGroup=Er.schemaHasRulesForType=void 0;function cP({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&Bx(t,n)}Er.schemaHasRulesForType=cP;function Bx(t,e){return e.rules.some(r=>Vx(t,r))}Er.shouldUseGroup=Bx;function Vx(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Er.shouldUseRule=Vx});var vi=w(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.reportTypeError=Ye.checkDataTypes=Ye.checkDataType=Ye.coerceAndCheckDataType=Ye.getJSONTypes=Ye.getSchemaTypes=Ye.DataType=void 0;var uP=Fp(),lP=Bp(),pP=xi(),G=W(),Hx=oe(),ro;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(ro||(Ye.DataType=ro={}));function dP(t){let e=Gx(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Ye.getSchemaTypes=dP;function Gx(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(uP.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ye.getJSONTypes=Gx;function mP(t,e){let{gen:r,data:n,opts:o}=t,i=fP(e,o.coerceTypes),s=e.length>0&&!(i.length===0&&e.length===1&&(0,lP.schemaHasRulesForType)(t,e[0]));if(s){let a=Hp(e,n,o.strictNumbers,ro.Wrong);r.if(a,()=>{i.length?hP(t,e,i):Gp(t)})}return s}Ye.coerceAndCheckDataType=mP;var Jx=new Set(["string","number","integer","boolean","null"]);function fP(t,e){return e?t.filter(r=>Jx.has(r)||e==="array"&&r==="array"):[]}function hP(t,e,r){let{gen:n,data:o,opts:i}=t,s=n.let("dataType",(0,G._)`typeof ${o}`),a=n.let("coerced",(0,G._)`undefined`);i.coerceTypes==="array"&&n.if((0,G._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,G._)`${o}[0]`).assign(s,(0,G._)`typeof ${o}`).if(Hp(e,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,G._)`${a} !== undefined`);for(let u of r)(Jx.has(u)||u==="array"&&i.coerceTypes==="array")&&c(u);n.else(),Gp(t),n.endIf(),n.if((0,G._)`${a} !== undefined`,()=>{n.assign(o,a),gP(t,a)});function c(u){switch(u){case"string":n.elseIf((0,G._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,G._)`"" + ${o}`).elseIf((0,G._)`${o} === null`).assign(a,(0,G._)`""`);return;case"number":n.elseIf((0,G._)`${s} == "boolean" || ${o} === null
4
+ || (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,G._)`+${o}`);return;case"integer":n.elseIf((0,G._)`${s} === "boolean" || ${o} === null
5
+ || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,G._)`+${o}`);return;case"boolean":n.elseIf((0,G._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,G._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,G._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,G._)`${s} === "string" || ${s} === "number"
6
+ || ${s} === "boolean" || ${o} === null`).assign(a,(0,G._)`[${o}]`)}}}function gP({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,G._)`${e} !== undefined`,()=>t.assign((0,G._)`${e}[${r}]`,n))}function Vp(t,e,r,n=ro.Correct){let o=n===ro.Correct?G.operators.EQ:G.operators.NEQ,i;switch(t){case"null":return(0,G._)`${e} ${o} null`;case"array":i=(0,G._)`Array.isArray(${e})`;break;case"object":i=(0,G._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,G._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,G._)`typeof ${e} ${o} ${t}`}return n===ro.Correct?i:(0,G.not)(i);function s(a=G.nil){return(0,G.and)((0,G._)`typeof ${e} == "number"`,a,r?(0,G._)`isFinite(${e})`:G.nil)}}Ye.checkDataType=Vp;function Hp(t,e,r,n){if(t.length===1)return Vp(t[0],e,r,n);let o,i=(0,Hx.toHash)(t);if(i.array&&i.object){let s=(0,G._)`typeof ${e} != "object"`;o=i.null?s:(0,G._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else o=G.nil;i.number&&delete i.integer;for(let s in i)o=(0,G.and)(o,Vp(s,e,r,n));return o}Ye.checkDataTypes=Hp;var xP={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,G._)`{type: ${t}}`:(0,G._)`{type: ${e}}`};function Gp(t){let e=vP(t);(0,pP.reportError)(e,xP)}Ye.reportTypeError=Gp;function vP(t){let{gen:e,data:r,schema:n}=t,o=(0,Hx.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:t}}});var Kx=w(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.assignDefaults=void 0;var no=W(),yP=oe();function bP(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let o in r)Wx(t,o,r[o].default);else e==="array"&&Array.isArray(n)&&n.forEach((o,i)=>Wx(t,i,o.default))}fa.assignDefaults=bP;function Wx(t,e,r){let{gen:n,compositeRule:o,data:i,opts:s}=t;if(r===void 0)return;let a=(0,no._)`${i}${(0,no.getProperty)(e)}`;if(o){(0,yP.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,no._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,no._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,no._)`${a} = ${(0,no.stringify)(r)}`)}});var St=w(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;var ye=W(),Jp=oe(),Pr=lr(),_P=oe();function wP(t,e){let{gen:r,data:n,it:o}=t;r.if(Kp(r,n,e,o.opts.ownProperties),()=>{t.setParams({missingProperty:(0,ye._)`${e}`},!0),t.error()})}de.checkReportMissingProp=wP;function kP({gen:t,data:e,it:{opts:r}},n,o){return(0,ye.or)(...n.map(i=>(0,ye.and)(Kp(t,e,i,r.ownProperties),(0,ye._)`${o} = ${i}`)))}de.checkMissingProp=kP;function SP(t,e){t.setParams({missingProperty:e},!0),t.error()}de.reportMissingProp=SP;function Yx(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ye._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=Yx;function Wp(t,e,r){return(0,ye._)`${Yx(t)}.call(${e}, ${r})`}de.isOwnProperty=Wp;function $P(t,e,r,n){let o=(0,ye._)`${e}${(0,ye.getProperty)(r)} !== undefined`;return n?(0,ye._)`${o} && ${Wp(t,e,r)}`:o}de.propertyInData=$P;function Kp(t,e,r,n){let o=(0,ye._)`${e}${(0,ye.getProperty)(r)} === undefined`;return n?(0,ye.or)(o,(0,ye.not)(Wp(t,e,r))):o}de.noPropertyInData=Kp;function Xx(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=Xx;function zP(t,e){return Xx(e).filter(r=>!(0,Jp.alwaysValidSchema)(t,e[r]))}de.schemaProperties=zP;function TP({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,u){let l=u?(0,ye._)`${t}, ${e}, ${n}${o}`:e,p=[[Pr.default.instancePath,(0,ye.strConcat)(Pr.default.instancePath,i)],[Pr.default.parentData,s.parentData],[Pr.default.parentDataProperty,s.parentDataProperty],[Pr.default.rootData,Pr.default.rootData]];s.opts.dynamicRef&&p.push([Pr.default.dynamicAnchors,Pr.default.dynamicAnchors]);let m=(0,ye._)`${l}, ${r.object(...p)}`;return c!==ye.nil?(0,ye._)`${a}.call(${c}, ${m})`:(0,ye._)`${a}(${m})`}de.callValidateCode=TP;var EP=(0,ye._)`new RegExp`;function PP({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:o}=e.code,i=o(r,n);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,ye._)`${o.code==="new RegExp"?EP:(0,_P.useFunc)(t,o)}(${r}, ${n})`})}de.usePattern=PP;function RP(t){let{gen:e,data:r,keyword:n,it:o}=t,i=e.name("valid");if(o.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let c=e.const("len",(0,ye._)`${r}.length`);e.forRange("i",0,c,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Jp.Type.Num},i),e.if((0,ye.not)(i),a)})}}de.validateArray=RP;function IP(t){let{gen:e,schema:r,keyword:n,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Jp.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,u)=>{let l=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},a);e.assign(s,(0,ye._)`${s} || ${a}`),t.mergeValidEvaluated(l,a)||e.if((0,ye.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}de.validateUnion=IP});var tv=w(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.validateKeywordUsage=Gt.validSchemaType=Gt.funcKeywordCode=Gt.macroKeywordCode=void 0;var nt=W(),yn=lr(),OP=St(),CP=xi();function jP(t,e){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=t,a=e.macro.call(s.self,o,i,s),c=ev(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let u=r.name("valid");t.subschema({schema:a,schemaPath:nt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}Gt.macroKeywordCode=jP;function AP(t,e){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=t;DP(c,e);let u=!a&&e.compile?e.compile.call(c.self,i,s,c):e.validate,l=ev(n,o,u),p=n.let("valid");t.block$data(p,m),t.ok((r=e.valid)!==null&&r!==void 0?r:p);function m(){if(e.errors===!1)f(),e.modifying&&Qx(t),x(()=>t.error());else{let g=e.async?h():d();e.modifying&&Qx(t),x(()=>NP(t,g))}}function h(){let g=n.let("ruleErrs",null);return n.try(()=>f((0,nt._)`await `),y=>n.assign(p,!1).if((0,nt._)`${y} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,nt._)`${y}.errors`),()=>n.throw(y))),g}function d(){let g=(0,nt._)`${l}.errors`;return n.assign(g,null),f(nt.nil),g}function f(g=e.async?(0,nt._)`await `:nt.nil){let y=c.opts.passContext?yn.default.this:yn.default.self,b=!("compile"in e&&!a||e.schema===!1);n.assign(p,(0,nt._)`${g}${(0,OP.callValidateCode)(t,l,y,b)}`,e.modifying)}function x(g){var y;n.if((0,nt.not)((y=e.valid)!==null&&y!==void 0?y:p),g)}}Gt.funcKeywordCode=AP;function Qx(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,nt._)`${n.parentData}[${n.parentDataProperty}]`))}function NP(t,e){let{gen:r}=t;r.if((0,nt._)`Array.isArray(${e})`,()=>{r.assign(yn.default.vErrors,(0,nt._)`${yn.default.vErrors} === null ? ${e} : ${yn.default.vErrors}.concat(${e})`).assign(yn.default.errors,(0,nt._)`${yn.default.vErrors}.length`),(0,CP.extendErrors)(t)},()=>t.error())}function DP({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function ev(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,nt.stringify)(r)})}function LP(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}Gt.validSchemaType=LP;function MP({schema:t,opts:e,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(t[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Gt.validateKeywordUsage=MP});var nv=w(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.extendSubschemaMode=Rr.extendSubschemaData=Rr.getSubschema=void 0;var Jt=W(),rv=oe();function ZP(t,{keyword:e,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,Jt._)`${t.schemaPath}${(0,Jt.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,Jt._)`${t.schemaPath}${(0,Jt.getProperty)(e)}${(0,Jt.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,rv.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Rr.getSubschema=ZP;function qP(t,e,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:u,dataPathArr:l,opts:p}=e,m=a.let("data",(0,Jt._)`${e.data}${(0,Jt.getProperty)(r)}`,!0);c(m),t.errorPath=(0,Jt.str)`${u}${(0,rv.getErrorPath)(r,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,Jt._)`${r}`,t.dataPathArr=[...l,t.parentDataProperty]}if(o!==void 0){let u=o instanceof Jt.Name?o:a.let("data",o,!0);c(u),s!==void 0&&(t.propertyName=s)}i&&(t.dataTypes=i);function c(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Rr.extendSubschemaData=qP;function UP(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(t.compositeRule=n),o!==void 0&&(t.createErrors=o),i!==void 0&&(t.allErrors=i),t.jtdDiscriminator=e,t.jtdMetadata=r}Rr.extendSubschemaMode=UP});var Yp=w((c4,ov)=>{"use strict";ov.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var s=i[o];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var sv=w((u4,iv)=>{"use strict";var Ir=iv.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};ha(e,n,o,t,"",t)};Ir.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ir.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ir.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ir.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ha(t,e,r,n,o,i,s,a,c,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,o,i,s,a,c,u);for(var l in n){var p=n[l];if(Array.isArray(p)){if(l in Ir.arrayKeywords)for(var m=0;m<p.length;m++)ha(t,e,r,p[m],o+"/"+l+"/"+m,i,o,l,n,m)}else if(l in Ir.propsKeywords){if(p&&typeof p=="object")for(var h in p)ha(t,e,r,p[h],o+"/"+l+"/"+FP(h),i,o,l,n,h)}else(l in Ir.keywords||t.allKeys&&!(l in Ir.skipKeywords))&&ha(t,e,r,p,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,u)}}function FP(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var yi=w(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.getSchemaRefs=lt.resolveUrl=lt.normalizeId=lt._getFullPath=lt.getFullPath=lt.inlineRef=void 0;var BP=oe(),VP=Yp(),HP=sv(),GP=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function JP(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Xp(t):e?av(t)<=e:!1}lt.inlineRef=JP;var WP=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Xp(t){for(let e in t){if(WP.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(Xp)||typeof r=="object"&&Xp(r))return!0}return!1}function av(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!GP.has(r)&&(typeof t[r]=="object"&&(0,BP.eachItem)(t[r],n=>e+=av(n)),e===1/0))return 1/0}return e}function cv(t,e="",r){r!==!1&&(e=oo(e));let n=t.parse(e);return uv(t,n)}lt.getFullPath=cv;function uv(t,e){return t.serialize(e).split("#")[0]+"#"}lt._getFullPath=uv;var KP=/#\/?$/;function oo(t){return t?t.replace(KP,""):""}lt.normalizeId=oo;function YP(t,e,r){return r=oo(r),t.resolve(e,r)}lt.resolveUrl=YP;var XP=/^[a-z_][-a-z0-9._]*$/i;function QP(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=oo(t[r]||e),i={"":o},s=cv(n,o,!1),a={},c=new Set;return HP(t,{allKeys:!0},(p,m,h,d)=>{if(d===void 0)return;let f=s+m,x=i[d];typeof p[r]=="string"&&(x=g.call(this,p[r])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),i[m]=x;function g(b){let $=this.opts.uriResolver.resolve;if(b=oo(x?$(x,b):b),c.has(b))throw l(b);c.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?u(p,S.schema,b):b!==oo(f)&&(b[0]==="#"?(u(p,a[b],b),a[b]=p):this.refs[b]=f),b}function y(b){if(typeof b=="string"){if(!XP.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function u(p,m,h){if(m!==void 0&&!VP(p,m))throw l(h)}function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}}lt.getSchemaRefs=QP});var wi=w(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.getData=Or.KeywordCxt=Or.validateFunctionCode=void 0;var fv=Fx(),lv=vi(),ed=Bp(),ga=vi(),eR=Kx(),_i=tv(),Qp=nv(),N=W(),F=lr(),tR=yi(),pr=oe(),bi=xi();function rR(t){if(xv(t)&&(vv(t),gv(t))){iR(t);return}hv(t,()=>(0,fv.topBoolOrEmptySchema)(t))}Or.validateFunctionCode=rR;function hv({gen:t,validateName:e,schema:r,schemaEnv:n,opts:o},i){o.code.es5?t.func(e,(0,N._)`${F.default.data}, ${F.default.valCxt}`,n.$async,()=>{t.code((0,N._)`"use strict"; ${pv(r,o)}`),oR(t,o),t.code(i)}):t.func(e,(0,N._)`${F.default.data}, ${nR(o)}`,n.$async,()=>t.code(pv(r,o)).code(i))}function nR(t){return(0,N._)`{${F.default.instancePath}="", ${F.default.parentData}, ${F.default.parentDataProperty}, ${F.default.rootData}=${F.default.data}${t.dynamicRef?(0,N._)`, ${F.default.dynamicAnchors}={}`:N.nil}}={}`}function oR(t,e){t.if(F.default.valCxt,()=>{t.var(F.default.instancePath,(0,N._)`${F.default.valCxt}.${F.default.instancePath}`),t.var(F.default.parentData,(0,N._)`${F.default.valCxt}.${F.default.parentData}`),t.var(F.default.parentDataProperty,(0,N._)`${F.default.valCxt}.${F.default.parentDataProperty}`),t.var(F.default.rootData,(0,N._)`${F.default.valCxt}.${F.default.rootData}`),e.dynamicRef&&t.var(F.default.dynamicAnchors,(0,N._)`${F.default.valCxt}.${F.default.dynamicAnchors}`)},()=>{t.var(F.default.instancePath,(0,N._)`""`),t.var(F.default.parentData,(0,N._)`undefined`),t.var(F.default.parentDataProperty,(0,N._)`undefined`),t.var(F.default.rootData,F.default.data),e.dynamicRef&&t.var(F.default.dynamicAnchors,(0,N._)`{}`)})}function iR(t){let{schema:e,opts:r,gen:n}=t;hv(t,()=>{r.$comment&&e.$comment&&bv(t),lR(t),n.let(F.default.vErrors,null),n.let(F.default.errors,0),r.unevaluated&&sR(t),yv(t),mR(t)})}function sR(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,N._)`${r}.evaluated`),e.if((0,N._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,N._)`${t.evaluated}.props`,(0,N._)`undefined`)),e.if((0,N._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,N._)`${t.evaluated}.items`,(0,N._)`undefined`))}function pv(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,N._)`/*# sourceURL=${r} */`:N.nil}function aR(t,e){if(xv(t)&&(vv(t),gv(t))){cR(t,e);return}(0,fv.boolOrEmptySchema)(t,e)}function gv({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function xv(t){return typeof t.schema!="boolean"}function cR(t,e){let{schema:r,gen:n,opts:o}=t;o.$comment&&r.$comment&&bv(t),pR(t),dR(t);let i=n.const("_errs",F.default.errors);yv(t,i),n.var(e,(0,N._)`${i} === ${F.default.errors}`)}function vv(t){(0,pr.checkUnknownRules)(t),uR(t)}function yv(t,e){if(t.opts.jtd)return dv(t,[],!1,e);let r=(0,lv.getSchemaTypes)(t.schema),n=(0,lv.coerceAndCheckDataType)(t,r);dv(t,r,!n,e)}function uR(t){let{schema:e,errSchemaPath:r,opts:n,self:o}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,pr.schemaHasRulesButRef)(e,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function lR(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,pr.checkStrictMode)(t,"default is ignored in the schema root")}function pR(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,tR.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function dR(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function bv({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)t.code((0,N._)`${F.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,N.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,N._)`${F.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function mR(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=t;r.$async?e.if((0,N._)`${F.default.errors} === 0`,()=>e.return(F.default.data),()=>e.throw((0,N._)`new ${o}(${F.default.vErrors})`)):(e.assign((0,N._)`${n}.errors`,F.default.vErrors),i.unevaluated&&fR(t),e.return((0,N._)`${F.default.errors} === 0`))}function fR({gen:t,evaluated:e,props:r,items:n}){r instanceof N.Name&&t.assign((0,N._)`${e}.props`,r),n instanceof N.Name&&t.assign((0,N._)`${e}.items`,n)}function dv(t,e,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:u}=t,{RULES:l}=u;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,pr.schemaHasRulesButRef)(i,l))){o.block(()=>wv(t,"$ref",l.all.$ref.definition));return}c.jtd||hR(t,e),o.block(()=>{for(let m of l.rules)p(m);p(l.post)});function p(m){(0,ed.shouldUseGroup)(i,m)&&(m.type?(o.if((0,ga.checkDataType)(m.type,s,c.strictNumbers)),mv(t,m),e.length===1&&e[0]===m.type&&r&&(o.else(),(0,ga.reportTypeError)(t)),o.endIf()):mv(t,m),a||o.if((0,N._)`${F.default.errors} === ${n||0}`))}}function mv(t,e){let{gen:r,schema:n,opts:{useDefaults:o}}=t;o&&(0,eR.assignDefaults)(t,e.type),r.block(()=>{for(let i of e.rules)(0,ed.shouldUseRule)(n,i)&&wv(t,i.keyword,i.definition,e.type)})}function hR(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(gR(t,e),t.opts.allowUnionTypes||xR(t,e),vR(t,t.dataTypes))}function gR(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{_v(t.dataTypes,r)||td(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),bR(t,e)}}function xR(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&td(t,"use allowUnionTypes to allow union type keyword")}function vR(t,e){let r=t.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,ed.shouldUseRule)(t.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>yR(e,s))&&td(t,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function yR(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function _v(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function bR(t,e){let r=[];for(let n of t.dataTypes)_v(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function td(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,pr.checkStrictMode)(t,e,t.opts.strictTypes)}var xa=class{constructor(e,r,n){if((0,_i.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,pr.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",kv(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,_i.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",F.default.errors))}result(e,r,n){this.failResult((0,N.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,N.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,N._)`${r} !== undefined && (${(0,N.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?bi.reportExtraError:bi.reportError)(this,this.def.error,r)}$dataError(){(0,bi.reportError)(this,this.def.$dataError||bi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,bi.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=N.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=N.nil,r=N.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,N.or)((0,N._)`${o} === undefined`,r)),e!==N.nil&&n.assign(e,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==N.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,N.or)(s(),a());function s(){if(n.length){if(!(r instanceof N.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,N._)`${(0,ga.checkDataTypes)(c,r,i.opts.strictNumbers,ga.DataType.Wrong)}`}return N.nil}function a(){if(o.validateSchema){let c=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,N._)`!${c}(${r})`}return N.nil}}subschema(e,r){let n=(0,Qp.getSubschema)(this.it,e);(0,Qp.extendSubschemaData)(n,this.it,e),(0,Qp.extendSubschemaMode)(n,e);let o={...this.it,...n,items:void 0,props:void 0};return aR(o,r),o}mergeEvaluated(e,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=pr.mergeEvaluated.props(o,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=pr.mergeEvaluated.items(o,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(e,N.Name)),!0}};Or.KeywordCxt=xa;function wv(t,e,r,n){let o=new xa(t,r,e);"code"in r?r.code(o,n):o.$data&&r.validate?(0,_i.funcKeywordCode)(o,r):"macro"in r?(0,_i.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,_i.funcKeywordCode)(o,r)}var _R=/^\/(?:[^~]|~0|~1)*$/,wR=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function kv(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let o,i;if(t==="")return F.default.rootData;if(t[0]==="/"){if(!_R.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);o=t,i=F.default.rootData}else{let u=wR.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let l=+u[1];if(o=u[2],o==="#"){if(l>=e)throw new Error(c("property/index",l));return n[e-l]}if(l>e)throw new Error(c("data",l));if(i=r[e-l],!o)return i}let s=i,a=o.split("/");for(let u of a)u&&(i=(0,N._)`${i}${(0,N.getProperty)((0,pr.unescapeJsonPointer)(u))}`,s=(0,N._)`${s} && ${i}`);return s;function c(u,l){return`Cannot access ${u} ${l} levels up, current level is ${e}`}}Or.getData=kv});var va=w(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var rd=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};nd.default=rd});var ki=w(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var od=yi(),id=class extends Error{constructor(e,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,od.resolveUrl)(e,r,n),this.missingSchema=(0,od.normalizeId)((0,od.getFullPath)(e,this.missingRef))}};sd.default=id});var ba=w($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.resolveSchema=$t.getCompilingSchema=$t.resolveRef=$t.compileSchema=$t.SchemaEnv=void 0;var Nt=W(),kR=va(),bn=lr(),Dt=yi(),Sv=oe(),SR=wi(),io=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Dt.normalizeId)(n==null?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};$t.SchemaEnv=io;function cd(t){let e=$v.call(this,t);if(e)return e;let r=(0,Dt.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new Nt.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;t.$async&&(a=s.scopeValue("Error",{ref:kR.default,code:(0,Nt._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");t.validateName=c;let u={gen:s,allErrors:this.opts.allErrors,data:bn.default.data,parentData:bn.default.parentData,parentDataProperty:bn.default.parentDataProperty,dataNames:[bn.default.data],dataPathArr:[Nt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Nt.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:Nt.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Nt._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(t),(0,SR.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();l=`${s.scopeRefs(bn.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,t));let h=new Function(`${bn.default.self}`,`${bn.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:d,items:f}=u;h.evaluated={props:d instanceof Nt.Name?void 0:d,items:f instanceof Nt.Name?void 0:f,dynamicProps:d instanceof Nt.Name,dynamicItems:f instanceof Nt.Name},h.source&&(h.source.evaluated=(0,Nt.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(t)}}$t.compileSchema=cd;function $R(t,e,r){var n;r=(0,Dt.resolveUrl)(this.opts.uriResolver,e,r);let o=t.refs[r];if(o)return o;let i=ER.call(this,t,r);if(i===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(i=new io({schema:s,schemaId:a,root:t,baseId:e}))}if(i!==void 0)return t.refs[r]=zR.call(this,i)}$t.resolveRef=$R;function zR(t){return(0,Dt.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:cd.call(this,t)}function $v(t){for(let e of this._compilations)if(TR(e,t))return e}$t.getCompilingSchema=$v;function TR(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function ER(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||ya.call(this,t,e)}function ya(t,e){let r=this.opts.uriResolver.parse(e),n=(0,Dt._getFullPath)(this.opts.uriResolver,r),o=(0,Dt.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===o)return ad.call(this,r,t);let i=(0,Dt.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=ya.call(this,t,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:ad.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||cd.call(this,s),i===(0,Dt.normalizeId)(e)){let{schema:a}=s,{schemaId:c}=this.opts,u=a[c];return u&&(o=(0,Dt.resolveUrl)(this.opts.uriResolver,o,u)),new io({schema:a,schemaId:c,root:t,baseId:o})}return ad.call(this,r,s)}}$t.resolveSchema=ya;var PR=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ad(t,{baseId:e,schema:r,root:n}){var o;if(((o=t.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Sv.unescapeFragment)(a)];if(c===void 0)return;r=c;let u=typeof r=="object"&&r[this.opts.schemaId];!PR.has(a)&&u&&(e=(0,Dt.resolveUrl)(this.opts.uriResolver,e,u))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,Sv.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Dt.resolveUrl)(this.opts.uriResolver,e,r.$ref);i=ya.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new io({schema:r,schemaId:s,root:n,baseId:e}),i.schema!==i.root.schema)return i}});var zv=w((h4,RR)=>{RR.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var pd=w((g4,Ov)=>{"use strict";var IR=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Ev=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),ud=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Pv=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),OR=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function ld(t){let e="",r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var CR=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Tv(t){return t.length=0,!0}function jR(t,e,r){if(t.length){let n=ld(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function AR(t){let e=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,s=!1,a=jR;for(let c=0;c<t.length;c++){let u=t[c];if(!(u==="["||u==="]"))if(u===":"){if(i===!0&&(s=!0),!a(o,n,r))break;if(++e>7){r.error=!0;break}c>0&&t[c-1]===":"&&(i=!0),n.push(":");continue}else if(u==="%"){if(!a(o,n,r))break;a=Tv}else{o.push(u);continue}}return o.length&&(a===Tv?r.zone=o.join(""):s?n.push(o.join("")):n.push(ld(o))),r.address=n.join(""),r}function Rv(t){if(NR(t,":")<2)return{host:t,isIPV6:!1};let e=AR(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function NR(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function DR(t){let e=t,r=[],n=-1,o=0;for(;o=e.length;){if(o===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(o===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(o===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join("")}var LR={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},MR=/[@/?#:]/g,ZR=/[@/?#]/g;function Iv(t,e){let r=e?ZR:MR;return r.lastIndex=0,t.replace(r,n=>LR[n])}function qR(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let n=0;n<t.length;n++){if(t[n]==="%"&&n+2<t.length){let o=t.slice(n+1,n+3);if(ud(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));e&&Pv(s)?r+=s:r+="%"+i,n+=2;continue}}r+=t[n]}return r}function UR(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(ud(n)){let o=n.toUpperCase(),i=String.fromCharCode(parseInt(o,16));i!=="."&&Pv(i)?e+=i:e+="%"+o,r+=2;continue}}OR(t[r])?e+=t[r]:e+=escape(t[r])}return e}function FR(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(ud(n)){e+="%"+n.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}function BR(t){let e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!Ev(r)){let n=Rv(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=Iv(r,!1)}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}Ov.exports={nonSimpleDomain:CR,recomposeAuthority:BR,reescapeHostDelimiters:Iv,normalizePercentEncoding:qR,normalizePathEncoding:UR,escapePreservingEscapes:FR,removeDotSegments:DR,isIPv4:Ev,isUUID:IR,normalizeIPv6:Rv,stringArrayToHexStripped:ld}});var Dv=w((x4,Nv)=>{"use strict";var{isUUID:VR}=pd(),HR=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,GR=["http","https","ws","wss","urn","urn:uuid"];function JR(t){return GR.indexOf(t)!==-1}function dd(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function Cv(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function jv(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function WR(t){return t.secure=dd(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function KR(t){if((t.port===(dd(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function YR(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(HR);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let o=`${n}:${e.nid||t.nid}`,i=md(o);t.path=void 0,i&&(t=i.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function XR(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),o=`${r}:${e.nid||n}`,i=md(o);i&&(t=i.serialize(t,e));let s=t,a=t.nss;return s.path=`${n||e.nid}:${a}`,e.skipEscape=!0,s}function QR(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!VR(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function eI(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var Av={scheme:"http",domainHost:!0,parse:Cv,serialize:jv},tI={scheme:"https",domainHost:Av.domainHost,parse:Cv,serialize:jv},_a={scheme:"ws",domainHost:!0,parse:WR,serialize:KR},rI={scheme:"wss",domainHost:_a.domainHost,parse:_a.parse,serialize:_a.serialize},nI={scheme:"urn",parse:YR,serialize:XR,skipNormalize:!0},oI={scheme:"urn:uuid",parse:QR,serialize:eI,skipNormalize:!0},wa={http:Av,https:tI,ws:_a,wss:rI,urn:nI,"urn:uuid":oI};Object.setPrototypeOf(wa,null);function md(t){return t&&(wa[t]||wa[t.toLowerCase()])||void 0}Nv.exports={wsIsSecure:dd,SCHEMES:wa,isValidSchemeName:JR,getSchemeHandler:md}});var Fv=w((v4,ka)=>{"use strict";var{normalizeIPv6:iI,removeDotSegments:Si,recomposeAuthority:sI,normalizePercentEncoding:aI,normalizePathEncoding:cI,escapePreservingEscapes:uI,reescapeHostDelimiters:lI,isIPv4:pI,nonSimpleDomain:dI}=pd(),{SCHEMES:mI,getSchemeHandler:Mv}=Dv();function fI(t,e){return typeof t=="string"?t=yI(t,e):typeof t=="object"&&(t=so(_n(t,e),e)),t}function hI(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=Zv(so(t,n),so(e,n),n,!0);return n.skipEscape=!0,_n(o,n)}function Zv(t,e,r,n){let o={};return n||(t=so(_n(t,r),r),e=so(_n(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(o.scheme=e.scheme,o.userinfo=e.userinfo,o.host=e.host,o.port=e.port,o.path=Si(e.path||""),o.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(o.userinfo=e.userinfo,o.host=e.host,o.port=e.port,o.path=Si(e.path||""),o.query=e.query):(e.path?(e.path[0]==="/"?o.path=Si(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?o.path="/"+e.path:t.path?o.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:o.path=e.path,o.path=Si(o.path)),o.query=e.query):(o.path=t.path,e.query!==void 0?o.query=e.query:o.query=t.query),o.userinfo=t.userinfo,o.host=t.host,o.port=t.port),o.scheme=t.scheme),o.fragment=e.fragment,o}function gI(t,e,r){let n=Lv(t,r),o=Lv(e,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function _n(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),o=[],i=Mv(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=aI(r.path):(r.path=uI(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let s=sI(r);if(s!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(s),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(a=Si(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var xI=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function vI(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function qv(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,i=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let s=t.match(xI);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let a=vI(n,s);if(a!==void 0&&(n.error=n.error||a,o=!0),n.host)if(pI(n.host)===!1){let l=iI(n.host);n.host=l.host.toLowerCase(),i=l.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=Mv(r.scheme||n.scheme);if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&i===!1&&dI(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!c||c&&!c.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=lI(unescape(n.host),i))),n.path&&(n.path=cI(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function so(t,e){return qv(t,e).parsed}function yI(t,e){return Uv(t,e).normalized}function Uv(t,e){let{parsed:r,malformedAuthorityOrPort:n}=qv(t,e);return{normalized:n?t:_n(r,e),malformedAuthorityOrPort:n}}function Lv(t,e){if(typeof t=="string"){let{normalized:r,malformedAuthorityOrPort:n}=Uv(t,e);return n?void 0:r}if(typeof t=="object")return _n(t,e)}var fd={SCHEMES:mI,normalize:fI,resolve:hI,resolveComponent:Zv,equal:gI,serialize:_n,parse:so};ka.exports=fd;ka.exports.default=fd;ka.exports.fastUri=fd});var Vv=w(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});var Bv=Fv();Bv.code='require("ajv/dist/runtime/uri").default';hd.default=Bv});var Qv=w(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.CodeGen=Be.Name=Be.nil=Be.stringify=Be.str=Be._=Be.KeywordCxt=void 0;var bI=wi();Object.defineProperty(Be,"KeywordCxt",{enumerable:!0,get:function(){return bI.KeywordCxt}});var ao=W();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return ao._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return ao.str}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return ao.stringify}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return ao.nil}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return ao.Name}});Object.defineProperty(Be,"CodeGen",{enumerable:!0,get:function(){return ao.CodeGen}});var _I=va(),Kv=ki(),wI=Fp(),$i=ba(),kI=W(),zi=yi(),Sa=vi(),xd=oe(),Hv=zv(),SI=Vv(),Yv=(t,e)=>new RegExp(t,e);Yv.code="new RegExp";var $I=["removeAdditional","useDefaults","coerceTypes"],zI=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),TI={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},EI={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Gv=200;function PI(t){var e,r,n,o,i,s,a,c,u,l,p,m,h,d,f,x,g,y,b,$,S,L,D,ue,_e;let Pt=t.strict,Co=(e=t.code)===null||e===void 0?void 0:e.optimize,hr=Co===!0||Co===void 0?1:Co||0,jo=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Yv,He=(o=t.uriResolver)!==null&&o!==void 0?o:SI.default;return{strictSchema:(s=(i=t.strictSchema)!==null&&i!==void 0?i:Pt)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:Pt)!==null&&c!==void 0?c:!0,strictTypes:(l=(u=t.strictTypes)!==null&&u!==void 0?u:Pt)!==null&&l!==void 0?l:"log",strictTuples:(m=(p=t.strictTuples)!==null&&p!==void 0?p:Pt)!==null&&m!==void 0?m:"log",strictRequired:(d=(h=t.strictRequired)!==null&&h!==void 0?h:Pt)!==null&&d!==void 0?d:!1,code:t.code?{...t.code,optimize:hr,regExp:jo}:{optimize:hr,regExp:jo},loopRequired:(f=t.loopRequired)!==null&&f!==void 0?f:Gv,loopEnum:(x=t.loopEnum)!==null&&x!==void 0?x:Gv,meta:(g=t.meta)!==null&&g!==void 0?g:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(b=t.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:($=t.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(S=t.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(L=t.validateSchema)!==null&&L!==void 0?L:!0,validateFormats:(D=t.validateFormats)!==null&&D!==void 0?D:!0,unicodeRegExp:(ue=t.unicodeRegExp)!==null&&ue!==void 0?ue:!0,int32range:(_e=t.int32range)!==null&&_e!==void 0?_e:!0,uriResolver:He}}var Ti=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...PI(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new kI.ValueScope({scope:{},prefixes:zI,es5:r,lines:n}),this.logger=AI(e.logger);let o=e.validateFormats;e.validateFormats=!1,this.RULES=(0,wI.getRules)(),Jv.call(this,TI,e,"NOT SUPPORTED"),Jv.call(this,EI,e,"DEPRECATED","warn"),this._metaOpts=CI.call(this),e.formats&&II.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&OI.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),RI.call(this),e.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,o=Hv;n==="id"&&(o={...Hv},o.id=o.$id,delete o.$id),r&&e&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,e,r);async function o(l,p){await i.call(this,l.$schema);let m=this._addSchema(l,p);return m.validate||s.call(this,m)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(p){if(!(p instanceof Kv.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:p}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${p} cannot be resolved`)}async function c(l){let p=await u.call(this,l);this.refs[l]||await i.call(this,p.$schema),this.refs[l]||this.addSchema(p,l,r)}async function u(l){let p=this._loading[l];if(p)return p;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(e,r,n,o=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,o);return this}let i;if(typeof e=="object"){let{schemaId:s}=this.opts;if(i=e[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,zi.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,o,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,e);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(e){let r;for(;typeof(r=Wv.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,o=new $i.SchemaEnv({schema:{},schemaId:n});if(r=$i.resolveSchema.call(this,o,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Wv.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,zi.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(DI.call(this,n,r),!r)return(0,xd.eachItem)(n,i=>gd.call(this,i)),this;MI.call(this,r);let o={...r,type:(0,Sa.getJSONTypes)(r.type),schemaType:(0,Sa.getJSONTypes)(r.schemaType)};return(0,xd.eachItem)(n,o.type.length===0?i=>gd.call(this,i,o):i=>o.type.forEach(s=>gd.call(this,i,o,s))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===e);o>=0&&n.rules.splice(o,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let o of r){let i=o.split("/").slice(1),s=e;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:u}=c.definition,l=s[a];u&&l&&(s[a]=Xv(l))}}return e}_removeAllSchemas(e,r){for(let n in e){let o=e[n];(!r||r.test(n))&&(typeof o=="string"?delete e[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[n]))}}_addSchema(e,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,zi.normalizeId)(s||n);let u=zi.getSchemaRefs.call(this,e,n);return c=new $i.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:u}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):$i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{$i.compileSchema.call(this,e)}finally{this.opts=r}}};Ti.ValidationError=_I.default;Ti.MissingRefError=Kv.default;Be.default=Ti;function Jv(t,e,r,n="error"){for(let o in t){let i=o;i in e&&this.logger[n](`${r}: option ${o}. ${t[i]}`)}}function Wv(t){return t=(0,zi.normalizeId)(t),this.schemas[t]||this.refs[t]}function RI(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function II(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function OI(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function CI(){let t={...this.opts};for(let e of $I)delete t[e];return t}var jI={log(){},warn(){},error(){}};function AI(t){if(t===!1)return jI;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var NI=/^[a-z_$][a-z0-9_$:-]*$/i;function DI(t,e){let{RULES:r}=this;if((0,xd.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!NI.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function gd(t,e,r){var n;let o=e==null?void 0:e.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,Sa.getJSONTypes)(e.type),schemaType:(0,Sa.getJSONTypes)(e.schemaType)}};e.before?LI.call(this,s,a,e.before):s.rules.push(a),i.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function LI(t,e,r){let n=t.rules.findIndex(o=>o.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function MI(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Xv(e)),t.validateSchema=this.compile(e,!0))}var ZI={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Xv(t){return{anyOf:[t,ZI]}}});var ey=w(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});var qI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};vd.default=qI});var oy=w(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.callRef=wn.getValidate=void 0;var UI=ki(),ty=St(),pt=W(),co=lr(),ry=ba(),$a=oe(),FI={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:u}=i;if((r==="#"||r==="#/")&&o===u.baseId)return p();let l=ry.resolveRef.call(c,u,o,r);if(l===void 0)throw new UI.default(n.opts.uriResolver,o,r);if(l instanceof ry.SchemaEnv)return m(l);return h(l);function p(){if(i===u)return za(t,s,i,i.$async);let d=e.scopeValue("root",{ref:u});return za(t,(0,pt._)`${d}.validate`,u,u.$async)}function m(d){let f=ny(t,d);za(t,f,d,d.$async)}function h(d){let f=e.scopeValue("schema",a.code.source===!0?{ref:d,code:(0,pt.stringify)(d)}:{ref:d}),x=e.name("valid"),g=t.subschema({schema:d,dataTypes:[],schemaPath:pt.nil,topSchemaRef:f,errSchemaPath:r},x);t.mergeEvaluated(g),t.ok(x)}}};function ny(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,pt._)`${r.scopeValue("wrapper",{ref:e})}.validate`}wn.getValidate=ny;function za(t,e,r,n){let{gen:o,it:i}=t,{allErrors:s,schemaEnv:a,opts:c}=i,u=c.passContext?co.default.this:pt.nil;n?l():p();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let d=o.let("valid");o.try(()=>{o.code((0,pt._)`await ${(0,ty.callValidateCode)(t,e,u)}`),h(e),s||o.assign(d,!0)},f=>{o.if((0,pt._)`!(${f} instanceof ${i.ValidationError})`,()=>o.throw(f)),m(f),s||o.assign(d,!1)}),t.ok(d)}function p(){t.result((0,ty.callValidateCode)(t,e,u),()=>h(e),()=>m(e))}function m(d){let f=(0,pt._)`${d}.errors`;o.assign(co.default.vErrors,(0,pt._)`${co.default.vErrors} === null ? ${f} : ${co.default.vErrors}.concat(${f})`),o.assign(co.default.errors,(0,pt._)`${co.default.vErrors}.length`)}function h(d){var f;if(!i.opts.unevaluated)return;let x=(f=r==null?void 0:r.validate)===null||f===void 0?void 0:f.evaluated;if(i.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(i.props=$a.mergeEvaluated.props(o,x.props,i.props));else{let g=o.var("props",(0,pt._)`${d}.evaluated.props`);i.props=$a.mergeEvaluated.props(o,g,i.props,pt.Name)}if(i.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(i.items=$a.mergeEvaluated.items(o,x.items,i.items));else{let g=o.var("items",(0,pt._)`${d}.evaluated.items`);i.items=$a.mergeEvaluated.items(o,g,i.items,pt.Name)}}}wn.callRef=za;wn.default=FI});var iy=w(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});var BI=ey(),VI=oy(),HI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",BI.default,VI.default];yd.default=HI});var sy=w(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});var Ta=W(),Cr=Ta.operators,Ea={maximum:{okStr:"<=",ok:Cr.LTE,fail:Cr.GT},minimum:{okStr:">=",ok:Cr.GTE,fail:Cr.LT},exclusiveMaximum:{okStr:"<",ok:Cr.LT,fail:Cr.GTE},exclusiveMinimum:{okStr:">",ok:Cr.GT,fail:Cr.LTE}},GI={message:({keyword:t,schemaCode:e})=>(0,Ta.str)`must be ${Ea[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Ta._)`{comparison: ${Ea[t].okStr}, limit: ${e}}`},JI={keyword:Object.keys(Ea),type:"number",schemaType:"number",$data:!0,error:GI,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,Ta._)`${r} ${Ea[e].fail} ${n} || isNaN(${r})`)}};bd.default=JI});var ay=w(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});var Ei=W(),WI={message:({schemaCode:t})=>(0,Ei.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Ei._)`{multipleOf: ${t}}`},KI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:WI,code(t){let{gen:e,data:r,schemaCode:n,it:o}=t,i=o.opts.multipleOfPrecision,s=e.let("res"),a=i?(0,Ei._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Ei._)`${s} !== parseInt(${s})`;t.fail$data((0,Ei._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};_d.default=KI});var uy=w(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});function cy(t){let e=t.length,r=0,n=0,o;for(;n<e;)r++,o=t.charCodeAt(n++),o>=55296&&o<=56319&&n<e&&(o=t.charCodeAt(n),(o&64512)===56320&&n++);return r}wd.default=cy;cy.code='require("ajv/dist/runtime/ucs2length").default'});var ly=w(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var kn=W(),YI=oe(),XI=uy(),QI={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,kn.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,kn._)`{limit: ${t}}`},eO={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:QI,code(t){let{keyword:e,data:r,schemaCode:n,it:o}=t,i=e==="maxLength"?kn.operators.GT:kn.operators.LT,s=o.opts.unicode===!1?(0,kn._)`${r}.length`:(0,kn._)`${(0,YI.useFunc)(t.gen,XI.default)}(${r})`;t.fail$data((0,kn._)`${s} ${i} ${n}`)}};kd.default=eO});var py=w(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});var tO=St(),rO=oe(),uo=W(),nO={message:({schemaCode:t})=>(0,uo.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,uo._)`{pattern: ${t}}`},oO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:nO,code(t){let{gen:e,data:r,$data:n,schema:o,schemaCode:i,it:s}=t,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,u=c.code==="new RegExp"?(0,uo._)`new RegExp`:(0,rO.useFunc)(e,c),l=e.let("valid");e.try(()=>e.assign(l,(0,uo._)`${u}(${i}, ${a}).test(${r})`),()=>e.assign(l,!1)),t.fail$data((0,uo._)`!${l}`)}else{let c=(0,tO.usePattern)(t,o);t.fail$data((0,uo._)`!${c}.test(${r})`)}}};Sd.default=oO});var dy=w($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});var Pi=W(),iO={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Pi.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,Pi._)`{limit: ${t}}`},sO={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:iO,code(t){let{keyword:e,data:r,schemaCode:n}=t,o=e==="maxProperties"?Pi.operators.GT:Pi.operators.LT;t.fail$data((0,Pi._)`Object.keys(${r}).length ${o} ${n}`)}};$d.default=sO});var my=w(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var Ri=St(),Ii=W(),aO=oe(),cO={message:({params:{missingProperty:t}})=>(0,Ii.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Ii._)`{missingProperty: ${t}}`},uO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:cO,code(t){let{gen:e,schema:r,schemaCode:n,data:o,$data:i,it:s}=t,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?u():l(),a.strictRequired){let h=t.parentSchema.properties,{definedProperties:d}=t.it;for(let f of r)if((h==null?void 0:h[f])===void 0&&!d.has(f)){let x=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${f}" is not defined at "${x}" (strictRequired)`;(0,aO.checkStrictMode)(s,g,s.opts.strictRequired)}}function u(){if(c||i)t.block$data(Ii.nil,p);else for(let h of r)(0,Ri.checkReportMissingProp)(t,h)}function l(){let h=e.let("missing");if(c||i){let d=e.let("valid",!0);t.block$data(d,()=>m(h,d)),t.ok(d)}else e.if((0,Ri.checkMissingProp)(t,r,h)),(0,Ri.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,Ri.noPropertyInData)(e,o,h,a.ownProperties),()=>t.error())})}function m(h,d){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(d,(0,Ri.propertyInData)(e,o,h,a.ownProperties)),e.if((0,Ii.not)(d),()=>{t.error(),e.break()})},Ii.nil)}}};zd.default=uO});var fy=w(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var Oi=W(),lO={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,Oi.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Oi._)`{limit: ${t}}`},pO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:lO,code(t){let{keyword:e,data:r,schemaCode:n}=t,o=e==="maxItems"?Oi.operators.GT:Oi.operators.LT;t.fail$data((0,Oi._)`${r}.length ${o} ${n}`)}};Td.default=pO});var Pa=w(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var hy=Yp();hy.code='require("ajv/dist/runtime/equal").default';Ed.default=hy});var gy=w(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var Pd=vi(),Ve=W(),dO=oe(),mO=Pa(),fO={message:({params:{i:t,j:e}})=>(0,Ve.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Ve._)`{i: ${t}, j: ${e}}`},hO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fO,code(t){let{gen:e,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=t;if(!n&&!o)return;let c=e.let("valid"),u=i.items?(0,Pd.getSchemaTypes)(i.items):[];t.block$data(c,l,(0,Ve._)`${s} === false`),t.ok(c);function l(){let d=e.let("i",(0,Ve._)`${r}.length`),f=e.let("j");t.setParams({i:d,j:f}),e.assign(c,!0),e.if((0,Ve._)`${d} > 1`,()=>(p()?m:h)(d,f))}function p(){return u.length>0&&!u.some(d=>d==="object"||d==="array")}function m(d,f){let x=e.name("item"),g=(0,Pd.checkDataTypes)(u,x,a.opts.strictNumbers,Pd.DataType.Wrong),y=e.const("indices",(0,Ve._)`{}`);e.for((0,Ve._)`;${d}--;`,()=>{e.let(x,(0,Ve._)`${r}[${d}]`),e.if(g,(0,Ve._)`continue`),u.length>1&&e.if((0,Ve._)`typeof ${x} == "string"`,(0,Ve._)`${x} += "_"`),e.if((0,Ve._)`typeof ${y}[${x}] == "number"`,()=>{e.assign(f,(0,Ve._)`${y}[${x}]`),t.error(),e.assign(c,!1).break()}).code((0,Ve._)`${y}[${x}] = ${d}`)})}function h(d,f){let x=(0,dO.useFunc)(e,mO.default),g=e.name("outer");e.label(g).for((0,Ve._)`;${d}--;`,()=>e.for((0,Ve._)`${f} = ${d}; ${f}--;`,()=>e.if((0,Ve._)`${x}(${r}[${d}], ${r}[${f}])`,()=>{t.error(),e.assign(c,!1).break(g)})))}}};Rd.default=hO});var xy=w(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Id=W(),gO=oe(),xO=Pa(),vO={message:"must be equal to constant",params:({schemaCode:t})=>(0,Id._)`{allowedValue: ${t}}`},yO={keyword:"const",$data:!0,error:vO,code(t){let{gen:e,data:r,$data:n,schemaCode:o,schema:i}=t;n||i&&typeof i=="object"?t.fail$data((0,Id._)`!${(0,gO.useFunc)(e,xO.default)}(${r}, ${o})`):t.fail((0,Id._)`${i} !== ${r}`)}};Od.default=yO});var vy=w(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});var Ci=W(),bO=oe(),_O=Pa(),wO={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Ci._)`{allowedValues: ${t}}`},kO={keyword:"enum",schemaType:"array",$data:!0,error:wO,code(t){let{gen:e,data:r,$data:n,schema:o,schemaCode:i,it:s}=t;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,u=()=>c??(c=(0,bO.useFunc)(e,_O.default)),l;if(a||n)l=e.let("valid"),t.block$data(l,p);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let h=e.const("vSchema",i);l=(0,Ci.or)(...o.map((d,f)=>m(h,f)))}t.pass(l);function p(){e.assign(l,!1),e.forOf("v",i,h=>e.if((0,Ci._)`${u()}(${r}, ${h})`,()=>e.assign(l,!0).break()))}function m(h,d){let f=o[d];return typeof f=="object"&&f!==null?(0,Ci._)`${u()}(${r}, ${h}[${d}])`:(0,Ci._)`${r} === ${f}`}}};Cd.default=kO});var yy=w(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var SO=sy(),$O=ay(),zO=ly(),TO=py(),EO=dy(),PO=my(),RO=fy(),IO=gy(),OO=xy(),CO=vy(),jO=[SO.default,$O.default,zO.default,TO.default,EO.default,PO.default,RO.default,IO.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},OO.default,CO.default];jd.default=jO});var Nd=w(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.validateAdditionalItems=void 0;var Sn=W(),Ad=oe(),AO={message:({params:{len:t}})=>(0,Sn.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Sn._)`{limit: ${t}}`},NO={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:AO,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,Ad.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}by(t,n)}};function by(t,e){let{gen:r,schema:n,data:o,keyword:i,it:s}=t;s.items=!0;let a=r.const("len",(0,Sn._)`${o}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Sn._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,Ad.alwaysValidSchema)(s,n)){let u=r.var("valid",(0,Sn._)`${a} <= ${e.length}`);r.if((0,Sn.not)(u),()=>c(u)),t.ok(u)}function c(u){r.forRange("i",e.length,a,l=>{t.subschema({keyword:i,dataProp:l,dataPropType:Ad.Type.Num},u),s.allErrors||r.if((0,Sn.not)(u),()=>r.break())})}}ji.validateAdditionalItems=by;ji.default=NO});var Dd=w(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.validateTuple=void 0;var _y=W(),Ra=oe(),DO=St(),LO={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return wy(t,"additionalItems",e);r.items=!0,!(0,Ra.alwaysValidSchema)(r,e)&&t.ok((0,DO.validateArray)(t))}};function wy(t,e,r=t.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=t;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Ra.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),u=n.const("len",(0,_y._)`${i}.length`);r.forEach((p,m)=>{(0,Ra.alwaysValidSchema)(a,p)||(n.if((0,_y._)`${u} > ${m}`,()=>t.subschema({keyword:s,schemaProp:m,dataProp:m},c)),t.ok(c))});function l(p){let{opts:m,errSchemaPath:h}=a,d=r.length,f=d===p.minItems&&(d===p.maxItems||p[e]===!1);if(m.strictTuples&&!f){let x=`"${s}" is ${d}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,Ra.checkStrictMode)(a,x,m.strictTuples)}}}Ai.validateTuple=wy;Ai.default=LO});var ky=w(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var MO=Dd(),ZO={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,MO.validateTuple)(t,"items")};Ld.default=ZO});var $y=w(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var Sy=W(),qO=oe(),UO=St(),FO=Nd(),BO={message:({params:{len:t}})=>(0,Sy.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Sy._)`{limit: ${t}}`},VO={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:BO,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:o}=r;n.items=!0,!(0,qO.alwaysValidSchema)(n,e)&&(o?(0,FO.validateAdditionalItems)(t,o):t.ok((0,UO.validateArray)(t)))}};Md.default=VO});var zy=w(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var zt=W(),Ia=oe(),HO={message:({params:{min:t,max:e}})=>e===void 0?(0,zt.str)`must contain at least ${t} valid item(s)`:(0,zt.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,zt._)`{minContains: ${t}}`:(0,zt._)`{minContains: ${t}, maxContains: ${e}}`},GO={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:HO,code(t){let{gen:e,schema:r,parentSchema:n,data:o,it:i}=t,s,a,{minContains:c,maxContains:u}=n;i.opts.next?(s=c===void 0?1:c,a=u):s=1;let l=e.const("len",(0,zt._)`${o}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,Ia.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Ia.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Ia.alwaysValidSchema)(i,r)){let f=(0,zt._)`${l} >= ${s}`;a!==void 0&&(f=(0,zt._)`${f} && ${l} <= ${a}`),t.pass(f);return}i.items=!0;let p=e.name("valid");a===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),a!==void 0&&e.if((0,zt._)`${o}.length > 0`,m)):(e.let(p,!1),m()),t.result(p,()=>t.reset());function m(){let f=e.name("_valid"),x=e.let("count",0);h(f,()=>e.if(f,()=>d(x)))}function h(f,x){e.forRange("i",0,l,g=>{t.subschema({keyword:"contains",dataProp:g,dataPropType:Ia.Type.Num,compositeRule:!0},f),x()})}function d(f){e.code((0,zt._)`${f}++`),a===void 0?e.if((0,zt._)`${f} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,zt._)`${f} > ${a}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,zt._)`${f} >= ${s}`,()=>e.assign(p,!0)))}}};Zd.default=GO});var Py=w(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.validateSchemaDeps=Wt.validatePropertyDeps=Wt.error=void 0;var qd=W(),JO=oe(),Ni=St();Wt.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,qd.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,qd._)`{property: ${t},
7
7
  missingProperty: ${n},
8
8
  depsCount: ${e},
9
- deps: ${r}}`};var FI={keyword:"dependencies",type:"object",schemaType:"object",error:Wt.error,code(t){let[e,r]=BI(t);by(t,e),_y(t,r)}};function BI({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let o=Array.isArray(t[n])?e:r;o[n]=t[n]}return[e,r]}function by(t,e=t.schema){let{gen:r,data:n,it:o}=t;if(Object.keys(e).length===0)return;let i=r.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let c=(0,ji.propertyInData)(r,n,s,o.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let u of a)(0,ji.checkReportMissingProp)(t,u)}):(r.if((0,Ad._)`${c} && (${(0,ji.checkMissingProp)(t,a,i)})`),(0,ji.reportMissingProp)(t,i),r.else())}}Wt.validatePropertyDeps=by;function _y(t,e=t.schema){let{gen:r,data:n,keyword:o,it:i}=t,s=r.name("valid");for(let a in e)(0,UI.alwaysValidSchema)(i,e[a])||(r.if((0,ji.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=t.subschema({keyword:o,schemaProp:a},s);t.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),t.ok(s))}Wt.validateSchemaDeps=_y;Wt.default=FI});var $y=w(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var ky=J(),VI=oe(),HI={message:"property name must be valid",params:({params:t})=>(0,ky._)`{propertyName: ${t.propertyName}}`},GI={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:HI,code(t){let{gen:e,schema:r,data:n,it:o}=t;if((0,VI.alwaysValidSchema)(o,r))return;let i=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,ky.not)(i),()=>{t.error(!0),o.allErrors||e.break()})}),t.ok(i)}};Nd.default=GI});var Md=w(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var Ca=$t(),Mt=J(),JI=cr(),Ia=oe(),WI={message:"must NOT have additional properties",params:({params:t})=>(0,Mt._)`{additionalProperty: ${t.additionalProperty}}`},KI={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:WI,code(t){let{gen:e,schema:r,parentSchema:n,data:o,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Ia.alwaysValidSchema)(s,r))return;let u=(0,Ca.allSchemaProperties)(n.properties),l=(0,Ca.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Mt._)`${i} === ${JI.default.errors}`);function p(){e.forIn("key",o,x=>{!u.length&&!l.length?d(x):e.if(m(x),()=>d(x))})}function m(x){let g;if(u.length>8){let y=(0,Ia.schemaRefOrVal)(s,n.properties,"properties");g=(0,Ca.isOwnProperty)(e,y,x)}else u.length?g=(0,Mt.or)(...u.map(y=>(0,Mt._)`${x} === ${y}`)):g=Mt.nil;return l.length&&(g=(0,Mt.or)(g,...l.map(y=>(0,Mt._)`${(0,Ca.usePattern)(t,y)}.test(${x})`))),(0,Mt.not)(g)}function h(x){e.code((0,Mt._)`delete ${o}[${x}]`)}function d(x){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(x);return}if(r===!1){t.setParams({additionalProperty:x}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Ia.alwaysValidSchema)(s,r)){let g=e.name("valid");c.removeAdditional==="failing"?(f(x,g,!1),e.if((0,Mt.not)(g),()=>{t.reset(),h(x)})):(f(x,g),a||e.if((0,Mt.not)(g),()=>e.break()))}}function f(x,g,y){let b={keyword:"additionalProperties",dataProp:x,dataPropType:Ia.Type.Str};y===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(b,g)}}};Zd.default=KI});var Ey=w(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});var YI=bi(),Sy=$t(),qd=oe(),zy=Md(),XI={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:o,it:i}=t;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&zy.default.code(new YI.KeywordCxt(i,zy.default,"additionalProperties"));let s=(0,Sy.allSchemaProperties)(r);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=qd.mergeEvaluated.props(e,(0,qd.toHash)(s),i.props));let a=s.filter(p=>!(0,qd.alwaysValidSchema)(i,r[p]));if(a.length===0)return;let c=e.name("valid");for(let p of a)u(p)?l(p):(e.if((0,Sy.propertyInData)(e,o,p,i.opts.ownProperties)),l(p),i.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(c);function u(p){return i.opts.useDefaults&&!i.compositeRule&&r[p].default!==void 0}function l(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};Dd.default=XI});var Cy=w(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var Ty=$t(),Oa=J(),Py=oe(),Ry=oe(),QI={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:o,it:i}=t,{opts:s}=i,a=(0,Ty.allSchemaProperties)(r),c=a.filter(f=>(0,Py.alwaysValidSchema)(i,r[f]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=e.name("valid");i.props!==!0&&!(i.props instanceof Oa.Name)&&(i.props=(0,Ry.evaluatedPropsToName)(e,i.props));let{props:p}=i;m();function m(){for(let f of a)u&&h(f),i.allErrors?d(f):(e.var(l,!0),d(f),e.if(l))}function h(f){for(let x in u)new RegExp(f).test(x)&&(0,Py.checkStrictMode)(i,`property ${x} matches pattern ${f} (use allowMatchingProperties)`)}function d(f){e.forIn("key",n,x=>{e.if((0,Oa._)`${(0,Ty.usePattern)(t,f)}.test(${x})`,()=>{let g=c.includes(f);g||t.subschema({keyword:"patternProperties",schemaProp:f,dataProp:x,dataPropType:Ry.Type.Str},l),i.opts.unevaluated&&p!==!0?e.assign((0,Oa._)`${p}[${x}]`,!0):!g&&!i.allErrors&&e.if((0,Oa.not)(l),()=>e.break())})})}}};Ld.default=QI});var Iy=w(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var eO=oe(),tO={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,eO.alwaysValidSchema)(n,r)){t.fail();return}let o=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Ud.default=tO});var Oy=w(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var rO=$t(),nO={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rO.validateUnion,error:{message:"must match a schema in anyOf"}};Fd.default=nO});var jy=w(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});var ja=J(),oO=oe(),iO={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,ja._)`{passingSchemas: ${t.passing}}`},sO={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:iO,code(t){let{gen:e,schema:r,parentSchema:n,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){i.forEach((l,p)=>{let m;(0,oO.alwaysValidSchema)(o,l)?e.var(c,!0):m=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&e.if((0,ja._)`${c} && ${s}`).assign(s,!1).assign(a,(0,ja._)`[${a}, ${p}]`).else(),e.if(c,()=>{e.assign(s,!0),e.assign(a,p),m&&t.mergeEvaluated(m,ja.Name)})})}}};Bd.default=sO});var Ay=w(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});var aO=oe(),cO={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=e.name("valid");r.forEach((i,s)=>{if((0,aO.alwaysValidSchema)(n,i))return;let a=t.subschema({keyword:"allOf",schemaProp:s},o);t.ok(o),t.mergeEvaluated(a)})}};Vd.default=cO});var My=w(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var Aa=J(),Zy=oe(),uO={message:({params:t})=>(0,Aa.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Aa._)`{failingKeyword: ${t.ifClause}}`},lO={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:uO,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,Zy.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=Ny(n,"then"),i=Ny(n,"else");if(!o&&!i)return;let s=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),o&&i){let l=e.let("ifClause");t.setParams({ifClause:l}),e.if(a,u("then",l),u("else",l))}else o?e.if(a,u("then")):e.if((0,Aa.not)(a),u("else"));t.pass(s,()=>t.error(!0));function c(){let l=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(l)}function u(l,p){return()=>{let m=t.subschema({keyword:l},a);e.assign(s,a),t.mergeValidEvaluated(m,s),p?e.assign(p,(0,Aa._)`${l}`):t.setParams({ifClause:l})}}}};function Ny(t,e){let r=t.schema[e];return r!==void 0&&!(0,Zy.alwaysValidSchema)(t,r)}Hd.default=lO});var qy=w(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var pO=oe(),dO={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,pO.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Gd.default=dO});var Dy=w(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var mO=Rd(),fO=gy(),hO=Cd(),gO=vy(),xO=yy(),vO=wy(),yO=$y(),bO=Md(),_O=Ey(),wO=Cy(),kO=Iy(),$O=Oy(),SO=jy(),zO=Ay(),EO=My(),TO=qy();function PO(t=!1){let e=[kO.default,$O.default,SO.default,zO.default,EO.default,TO.default,yO.default,bO.default,vO.default,_O.default,wO.default];return t?e.push(fO.default,gO.default):e.push(mO.default,hO.default),e.push(xO.default),e}Jd.default=PO});var Ly=w(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var Ee=J(),RO={message:({schemaCode:t})=>(0,Ee.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Ee._)`{format: ${t}}`},CO={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:RO,code(t,e){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=t,{opts:c,errSchemaPath:u,schemaEnv:l,self:p}=a;if(!c.validateFormats)return;o?m():h();function m(){let d=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),f=r.const("fDef",(0,Ee._)`${d}[${s}]`),x=r.let("fType"),g=r.let("format");r.if((0,Ee._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>r.assign(x,(0,Ee._)`${f}.type || "string"`).assign(g,(0,Ee._)`${f}.validate`),()=>r.assign(x,(0,Ee._)`"string"`).assign(g,f)),t.fail$data((0,Ee.or)(y(),b()));function y(){return c.strictSchema===!1?Ee.nil:(0,Ee._)`${s} && !${g}`}function b(){let S=l.$async?(0,Ee._)`(${f}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ee._)`${g}(${n})`,$=(0,Ee._)`(typeof ${g} == "function" ? ${S} : ${g}.test(${n}))`;return(0,Ee._)`${g} && ${g} !== true && ${x} === ${e} && !${$}`}}function h(){let d=p.formats[i];if(!d){y();return}if(d===!0)return;let[f,x,g]=b(d);f===e&&t.pass(S());function y(){if(c.strictSchema===!1){p.logger.warn($());return}throw new Error($());function $(){return`unknown format "${i}" ignored in schema at path "${u}"`}}function b($){let Z=$ instanceof RegExp?(0,Ee.regexpCode)($):c.code.formats?(0,Ee._)`${c.code.formats}${(0,Ee.getProperty)(i)}`:void 0,N=r.scopeValue("formats",{key:i,ref:$,code:Z});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,Ee._)`${N}.validate`]:["string",$,N]}function S(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Ee._)`await ${g}(${n})`}return typeof x=="function"?(0,Ee._)`${g}(${n})`:(0,Ee._)`${g}.test(${n})`}}}};Wd.default=CO});var Uy=w(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var IO=Ly(),OO=[IO.default];Kd.default=OO});var Fy=w(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.contentVocabulary=ao.metadataVocabulary=void 0;ao.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ao.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Vy=w(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var jO=Xv(),AO=dy(),NO=Dy(),ZO=Uy(),By=Fy(),MO=[jO.default,AO.default,(0,NO.default)(),ZO.default,By.metadataVocabulary,By.contentVocabulary];Yd.default=MO});var Gy=w(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.DiscrError=void 0;var Hy;(function(t){t.Tag="tag",t.Mapping="mapping"})(Hy||(Na.DiscrError=Hy={}))});var Wy=w(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var co=J(),Xd=Gy(),Jy=ya(),qO=_i(),DO=oe(),LO={message:({params:{discrError:t,tagName:e}})=>t===Xd.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,co._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},UO={keyword:"discriminator",type:"object",schemaType:"object",error:LO,code(t){let{gen:e,data:r,schema:n,parentSchema:o,it:i}=t,{oneOf:s}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),u=e.const("tag",(0,co._)`${r}${(0,co.getProperty)(a)}`);e.if((0,co._)`typeof ${u} == "string"`,()=>l(),()=>t.error(!1,{discrError:Xd.DiscrError.Tag,tag:u,tagName:a})),t.ok(c);function l(){let h=m();e.if(!1);for(let d in h)e.elseIf((0,co._)`${u} === ${d}`),e.assign(c,p(h[d]));e.else(),t.error(!1,{discrError:Xd.DiscrError.Mapping,tag:u,tagName:a}),e.endIf()}function p(h){let d=e.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:h},d);return t.mergeEvaluated(f,co.Name),d}function m(){var h;let d={},f=g(o),x=!0;for(let S=0;S<s.length;S++){let $=s[S];if($!=null&&$.$ref&&!(0,DO.schemaHasRulesButRef)($,i.self.RULES)){let N=$.$ref;if($=Jy.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,N),$ instanceof Jy.SchemaEnv&&($=$.schema),$===void 0)throw new qO.default(i.opts.uriResolver,i.baseId,N)}let Z=(h=$==null?void 0:$.properties)===null||h===void 0?void 0:h[a];if(typeof Z!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);x=x&&(f||g($)),y(Z,S)}if(!x)throw new Error(`discriminator: "${a}" must be required`);return d;function g({required:S}){return Array.isArray(S)&&S.includes(a)}function y(S,$){if(S.const)b(S.const,$);else if(S.enum)for(let Z of S.enum)b(Z,$);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function b(S,$){if(typeof S!="string"||S in d)throw new Error(`discriminator: "${a}" values must be unique strings`);d[S]=$}}}};Qd.default=UO});var Ky=w((H4,FO)=>{FO.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var tm=w((ye,em)=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.MissingRefError=ye.ValidationError=ye.CodeGen=ye.Name=ye.nil=ye.stringify=ye.str=ye._=ye.KeywordCxt=ye.Ajv=void 0;var BO=Hv(),VO=Vy(),HO=Wy(),Yy=Ky(),GO=["/properties"],Za="http://json-schema.org/draft-07/schema",uo=class extends BO.default{_addVocabularies(){super._addVocabularies(),VO.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(HO.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(Yy,GO):Yy;this.addMetaSchema(e,Za,!1),this.refs["http://json-schema.org/schema"]=Za}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Za)?Za:void 0)}};ye.Ajv=uo;em.exports=ye=uo;em.exports.Ajv=uo;Object.defineProperty(ye,"__esModule",{value:!0});ye.default=uo;var JO=bi();Object.defineProperty(ye,"KeywordCxt",{enumerable:!0,get:function(){return JO.KeywordCxt}});var lo=J();Object.defineProperty(ye,"_",{enumerable:!0,get:function(){return lo._}});Object.defineProperty(ye,"str",{enumerable:!0,get:function(){return lo.str}});Object.defineProperty(ye,"stringify",{enumerable:!0,get:function(){return lo.stringify}});Object.defineProperty(ye,"nil",{enumerable:!0,get:function(){return lo.nil}});Object.defineProperty(ye,"Name",{enumerable:!0,get:function(){return lo.Name}});Object.defineProperty(ye,"CodeGen",{enumerable:!0,get:function(){return lo.CodeGen}});var WO=xa();Object.defineProperty(ye,"ValidationError",{enumerable:!0,get:function(){return WO.default}});var KO=_i();Object.defineProperty(ye,"MissingRefError",{enumerable:!0,get:function(){return KO.default}})});var ib=w(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.formatNames=Yt.fastFormats=Yt.fullFormats=void 0;function Kt(t,e){return{validate:t,compare:e}}Yt.fullFormats={date:Kt(tb,im),time:Kt(nm(!0),sm),"date-time":Kt(Xy(!0),nb),"iso-time":Kt(nm(),rb),"iso-date-time":Kt(Xy(),ob),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:rj,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:uj,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:nj,int32:{type:"number",validate:sj},int64:{type:"number",validate:aj},float:{type:"number",validate:eb},double:{type:"number",validate:eb},password:!0,binary:!0};Yt.fastFormats={...Yt.fullFormats,date:Kt(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,im),time:Kt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,sm),"date-time":Kt(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,nb),"iso-time":Kt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,rb),"iso-date-time":Kt(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ob),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Yt.formatNames=Object.keys(Yt.fullFormats);function YO(t){return t%4===0&&(t%100!==0||t%400===0)}var XO=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,QO=[0,31,28,31,30,31,30,31,31,30,31,30,31];function tb(t){let e=XO.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],o=+e[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&YO(r)?29:QO[n])}function im(t,e){if(t&&e)return t>e?1:t<e?-1:0}var rm=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function nm(t){return function(r){let n=rm.exec(r);if(!n)return!1;let o=+n[1],i=+n[2],s=+n[3],a=n[4],c=n[5]==="-"?-1:1,u=+(n[6]||0),l=+(n[7]||0);if(u>23||l>59||t&&!a)return!1;if(o<=23&&i<=59&&s<60)return!0;let p=i-l*c,m=o-u*c-(p<0?1:0);return(m===23||m===-1)&&(p===59||p===-1)&&s<61}}function sm(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(r&&n)return r-n}function rb(t,e){if(!(t&&e))return;let r=rm.exec(t),n=rm.exec(e);if(r&&n)return t=r[1]+r[2]+r[3],e=n[1]+n[2]+n[3],t>e?1:t<e?-1:0}var om=/t|\s/i;function Xy(t){let e=nm(t);return function(n){let o=n.split(om);return o.length===2&&tb(o[0])&&e(o[1])}}function nb(t,e){if(!(t&&e))return;let r=new Date(t).valueOf(),n=new Date(e).valueOf();if(r&&n)return r-n}function ob(t,e){if(!(t&&e))return;let[r,n]=t.split(om),[o,i]=e.split(om),s=im(r,o);if(s!==void 0)return s||sm(n,i)}var ej=/\/|:/,tj=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function rj(t){return ej.test(t)&&tj.test(t)}var Qy=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function nj(t){return Qy.lastIndex=0,Qy.test(t)}var oj=-(2**31),ij=2**31-1;function sj(t){return Number.isInteger(t)&&t<=ij&&t>=oj}function aj(t){return Number.isInteger(t)}function eb(){return!0}var cj=/[^\\]\\Z/;function uj(t){if(cj.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var sb=w(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.formatLimitDefinition=void 0;var lj=tm(),qt=J(),Cr=qt.operators,Ma={formatMaximum:{okStr:"<=",ok:Cr.LTE,fail:Cr.GT},formatMinimum:{okStr:">=",ok:Cr.GTE,fail:Cr.LT},formatExclusiveMaximum:{okStr:"<",ok:Cr.LT,fail:Cr.GTE},formatExclusiveMinimum:{okStr:">",ok:Cr.GT,fail:Cr.LTE}},pj={message:({keyword:t,schemaCode:e})=>(0,qt.str)`should be ${Ma[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,qt._)`{comparison: ${Ma[t].okStr}, limit: ${e}}`};po.formatLimitDefinition={keyword:Object.keys(Ma),type:"string",schemaType:"string",$data:!0,error:pj,code(t){let{gen:e,data:r,schemaCode:n,keyword:o,it:i}=t,{opts:s,self:a}=i;if(!s.validateFormats)return;let c=new lj.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?u():l();function u(){let m=e.scopeValue("formats",{ref:a.formats,code:s.code.formats}),h=e.const("fmt",(0,qt._)`${m}[${c.schemaCode}]`);t.fail$data((0,qt.or)((0,qt._)`typeof ${h} != "object"`,(0,qt._)`${h} instanceof RegExp`,(0,qt._)`typeof ${h}.compare != "function"`,p(h)))}function l(){let m=c.schema,h=a.formats[m];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let d=e.scopeValue("formats",{key:m,ref:h,code:s.code.formats?(0,qt._)`${s.code.formats}${(0,qt.getProperty)(m)}`:void 0});t.fail$data(p(d))}function p(m){return(0,qt._)`${m}.compare(${r}, ${n}) ${Ma[o].fail} 0`}},dependencies:["format"]};var dj=t=>(t.addKeyword(po.formatLimitDefinition),t);po.default=dj});var lb=w((Ai,ub)=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var mo=ib(),mj=sb(),am=J(),ab=new am.Name("fullFormats"),fj=new am.Name("fastFormats"),cm=(t,e={keywords:!0})=>{if(Array.isArray(e))return cb(t,e,mo.fullFormats,ab),t;let[r,n]=e.mode==="fast"?[mo.fastFormats,fj]:[mo.fullFormats,ab],o=e.formats||mo.formatNames;return cb(t,o,r,n),e.keywords&&(0,mj.default)(t),t};cm.get=(t,e="full")=>{let n=(e==="fast"?mo.fastFormats:mo.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function cb(t,e,r,n){var o,i;(o=(i=t.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,am._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,r[s])}ub.exports=Ai=cm;Object.defineProperty(Ai,"__esModule",{value:!0});Ai.default=cm});var Nb=w((OU,Ab)=>{var jb=require("stream").Stream,r1=require("util");Ab.exports=Dt;function Dt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}r1.inherits(Dt,jb);Dt.create=function(t,e){var r=new this;e=e||{};for(var n in e)r[n]=e[n];r.source=t;var o=t.emit;return t.emit=function(){return r._handleEmit(arguments),o.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(Dt.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Dt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Dt.prototype.resume=function(){this._released||this.release(),this.source.resume()};Dt.prototype.pause=function(){this.source.pause()};Dt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Dt.prototype.pipe=function(){var t=jb.prototype.pipe.apply(this,arguments);return this.resume(),t};Dt.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Dt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var Db=w((jU,qb)=>{var n1=require("util"),Mb=require("stream").Stream,Zb=Nb();qb.exports=ze;function ze(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}n1.inherits(ze,Mb);ze.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};ze.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};ze.prototype.append=function(t){var e=ze.isStreamLike(t);if(e){if(!(t instanceof Zb)){var r=Zb.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};ze.prototype.pipe=function(t,e){return Mb.prototype.pipe.call(this,t,e),this.resume(),t};ze.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}};ze.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var n=ze.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};ze.prototype._pipeNext=function(t){this._currentStream=t;var e=ze.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};ze.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};ze.prototype.write=function(t){this.emit("data",t)};ze.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};ze.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};ze.prototype.end=function(){this._reset(),this.emit("end")};ze.prototype.destroy=function(){this._reset(),this.emit("close")};ze.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ze.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};ze.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};ze.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var Lb=w((AU,o1)=>{o1.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 Fb=w((NU,Ub)=>{Ub.exports=Lb()});var Hb=w(pt=>{"use strict";var Ka=Fb(),i1=require("path").extname,Bb=/^\s*([^;\s]*)(?:;|\s|$)/,s1=/^text\//i;pt.charset=Vb;pt.charsets={lookup:Vb};pt.contentType=a1;pt.extension=c1;pt.extensions=Object.create(null);pt.lookup=u1;pt.types=Object.create(null);l1(pt.extensions,pt.types);function Vb(t){if(!t||typeof t!="string")return!1;var e=Bb.exec(t),r=e&&Ka[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&s1.test(e[1])?"UTF-8":!1}function a1(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?pt.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=pt.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}function c1(t){if(!t||typeof t!="string")return!1;var e=Bb.exec(t),r=e&&pt.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}function u1(t){if(!t||typeof t!="string")return!1;var e=i1("x."+t).toLowerCase().substr(1);return e&&pt.types[e]||!1}function l1(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(Ka).forEach(function(o){var i=Ka[o],s=i.extensions;if(!(!s||!s.length)){t[o]=s;for(var a=0;a<s.length;a++){var c=s[a];if(e[c]){var u=r.indexOf(Ka[e[c]].source),l=r.indexOf(i.source);if(e[c]!=="application/octet-stream"&&(u>l||u===l&&e[c].substr(0,12)==="application/"))continue}e[c]=o}}})}});var Jb=w((MU,Gb)=>{Gb.exports=p1;function p1(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var gm=w((qU,Kb)=>{var Wb=Jb();Kb.exports=d1;function d1(t){var e=!1;return Wb(function(){e=!0}),function(n,o){e?t(n,o):Wb(function(){t(n,o)})}}});var xm=w((DU,Yb)=>{Yb.exports=m1;function m1(t){Object.keys(t.jobs).forEach(f1.bind(t)),t.jobs={}}function f1(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var vm=w((LU,Qb)=>{var Xb=gm(),h1=xm();Qb.exports=g1;function g1(t,e,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=x1(e,o,t[o],function(i,s){o in r.jobs&&(delete r.jobs[o],i?h1(r):r.results[o]=s,n(i,r.results))})}function x1(t,e,r,n){var o;return t.length==2?o=t(r,Xb(n)):o=t(r,e,Xb(n)),o}});var ym=w((UU,e_)=>{e_.exports=v1;function v1(t,e){var r=!Array.isArray(t),n={index:0,keyedList:r||e?Object.keys(t):null,jobs:{},results:r?{}:[],size:r?Object.keys(t).length:t.length};return e&&n.keyedList.sort(r?e:function(o,i){return e(t[o],t[i])}),n}});var bm=w((FU,t_)=>{var y1=xm(),b1=gm();t_.exports=_1;function _1(t){Object.keys(this.jobs).length&&(this.index=this.size,y1(this),b1(t)(null,this.results))}});var n_=w((BU,r_)=>{var w1=vm(),k1=ym(),$1=bm();r_.exports=S1;function S1(t,e,r){for(var n=k1(t);n.index<(n.keyedList||t).length;)w1(t,e,n,function(o,i){if(o){r(o,i);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return $1.bind(n,r)}});var _m=w((VU,Ya)=>{var o_=vm(),z1=ym(),E1=bm();Ya.exports=T1;Ya.exports.ascending=i_;Ya.exports.descending=P1;function T1(t,e,r,n){var o=z1(t,r);return o_(t,e,o,function i(s,a){if(s){n(s,a);return}if(o.index++,o.index<(o.keyedList||t).length){o_(t,e,o,i);return}n(null,o.results)}),E1.bind(o,n)}function i_(t,e){return t<e?-1:t>e?1:0}function P1(t,e){return-1*i_(t,e)}});var a_=w((HU,s_)=>{var R1=_m();s_.exports=C1;function C1(t,e,r){return R1(t,e,null,r)}});var u_=w((GU,c_)=>{c_.exports={parallel:n_(),serial:a_(),serialOrdered:_m()}});var wm=w((JU,l_)=>{"use strict";l_.exports=Object});var d_=w((WU,p_)=>{"use strict";p_.exports=Error});var f_=w((KU,m_)=>{"use strict";m_.exports=EvalError});var g_=w((YU,h_)=>{"use strict";h_.exports=RangeError});var v_=w((XU,x_)=>{"use strict";x_.exports=ReferenceError});var b_=w((QU,y_)=>{"use strict";y_.exports=SyntaxError});var Xa=w((eF,__)=>{"use strict";__.exports=TypeError});var k_=w((tF,w_)=>{"use strict";w_.exports=URIError});var S_=w((rF,$_)=>{"use strict";$_.exports=Math.abs});var E_=w((nF,z_)=>{"use strict";z_.exports=Math.floor});var P_=w((oF,T_)=>{"use strict";T_.exports=Math.max});var C_=w((iF,R_)=>{"use strict";R_.exports=Math.min});var O_=w((sF,I_)=>{"use strict";I_.exports=Math.pow});var A_=w((aF,j_)=>{"use strict";j_.exports=Math.round});var Z_=w((cF,N_)=>{"use strict";N_.exports=Number.isNaN||function(e){return e!==e}});var q_=w((uF,M_)=>{"use strict";var I1=Z_();M_.exports=function(e){return I1(e)||e===0?e:e<0?-1:1}});var L_=w((lF,D_)=>{"use strict";D_.exports=Object.getOwnPropertyDescriptor});var km=w((pF,U_)=>{"use strict";var Qa=L_();if(Qa)try{Qa([],"length")}catch{Qa=null}U_.exports=Qa});var B_=w((dF,F_)=>{"use strict";var ec=Object.defineProperty||!1;if(ec)try{ec({},"a",{value:1})}catch{ec=!1}F_.exports=ec});var $m=w((mF,V_)=>{"use strict";V_.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var J_=w((fF,G_)=>{"use strict";var H_=typeof Symbol<"u"&&Symbol,O1=$m();G_.exports=function(){return typeof H_!="function"||typeof Symbol!="function"||typeof H_("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:O1()}});var Sm=w((hF,W_)=>{"use strict";W_.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var zm=w((gF,K_)=>{"use strict";var j1=wm();K_.exports=j1.getPrototypeOf||null});var Q_=w((xF,X_)=>{"use strict";var A1="Function.prototype.bind called on incompatible ",N1=Object.prototype.toString,Z1=Math.max,M1="[object Function]",Y_=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},q1=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},D1=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};X_.exports=function(e){var r=this;if(typeof r!="function"||N1.apply(r)!==M1)throw new TypeError(A1+r);for(var n=q1(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,Y_(n,arguments));return Object(l)===l?l:this}return r.apply(e,Y_(n,arguments))},s=Z1(0,r.length-n.length),a=[],c=0;c<s;c++)a[c]="$"+c;if(o=Function("binder","return function ("+D1(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var Di=w((vF,ew)=>{"use strict";var L1=Q_();ew.exports=Function.prototype.bind||L1});var tc=w((yF,tw)=>{"use strict";tw.exports=Function.prototype.call});var Em=w((bF,rw)=>{"use strict";rw.exports=Function.prototype.apply});var ow=w((_F,nw)=>{"use strict";nw.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var sw=w((wF,iw)=>{"use strict";var U1=Di(),F1=Em(),B1=tc(),V1=ow();iw.exports=V1||U1.call(B1,F1)});var cw=w((kF,aw)=>{"use strict";var H1=Di(),G1=Xa(),J1=tc(),W1=sw();aw.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new G1("a function is required");return W1(H1,J1,e)}});var fw=w(($F,mw)=>{"use strict";var K1=cw(),uw=km(),pw;try{pw=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Tm=!!pw&&uw&&uw(Object.prototype,"__proto__"),dw=Object,lw=dw.getPrototypeOf;mw.exports=Tm&&typeof Tm.get=="function"?K1([Tm.get]):typeof lw=="function"?function(e){return lw(e==null?e:dw(e))}:!1});var yw=w((SF,vw)=>{"use strict";var hw=Sm(),gw=zm(),xw=fw();vw.exports=hw?function(e){return hw(e)}:gw?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return gw(e)}:xw?function(e){return xw(e)}:null});var rc=w((zF,bw)=>{"use strict";var Y1=Function.prototype.call,X1=Object.prototype.hasOwnProperty,Q1=Di();bw.exports=Q1.call(Y1,X1)});var Ew=w((EF,zw)=>{"use strict";var X,eA=wm(),tA=d_(),rA=f_(),nA=g_(),oA=v_(),yo=b_(),vo=Xa(),iA=k_(),sA=S_(),aA=E_(),cA=P_(),uA=C_(),lA=O_(),pA=A_(),dA=q_(),$w=Function,Pm=function(t){try{return $w('"use strict"; return ('+t+").constructor;")()}catch{}},Li=km(),mA=B_(),Rm=function(){throw new vo},fA=Li?(function(){try{return arguments.callee,Rm}catch{try{return Li(arguments,"callee").get}catch{return Rm}}})():Rm,go=J_()(),je=yw(),hA=zm(),gA=Sm(),Sw=Em(),Ui=tc(),xo={},xA=typeof Uint8Array>"u"||!je?X:je(Uint8Array),kn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?X:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?X:ArrayBuffer,"%ArrayIteratorPrototype%":go&&je?je([][Symbol.iterator]()):X,"%AsyncFromSyncIteratorPrototype%":X,"%AsyncFunction%":xo,"%AsyncGenerator%":xo,"%AsyncGeneratorFunction%":xo,"%AsyncIteratorPrototype%":xo,"%Atomics%":typeof Atomics>"u"?X:Atomics,"%BigInt%":typeof BigInt>"u"?X:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?X:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?X:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?X:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":tA,"%eval%":eval,"%EvalError%":rA,"%Float16Array%":typeof Float16Array>"u"?X:Float16Array,"%Float32Array%":typeof Float32Array>"u"?X:Float32Array,"%Float64Array%":typeof Float64Array>"u"?X:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?X:FinalizationRegistry,"%Function%":$w,"%GeneratorFunction%":xo,"%Int8Array%":typeof Int8Array>"u"?X:Int8Array,"%Int16Array%":typeof Int16Array>"u"?X:Int16Array,"%Int32Array%":typeof Int32Array>"u"?X:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":go&&je?je(je([][Symbol.iterator]())):X,"%JSON%":typeof JSON=="object"?JSON:X,"%Map%":typeof Map>"u"?X:Map,"%MapIteratorPrototype%":typeof Map>"u"||!go||!je?X:je(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":eA,"%Object.getOwnPropertyDescriptor%":Li,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?X:Promise,"%Proxy%":typeof Proxy>"u"?X:Proxy,"%RangeError%":nA,"%ReferenceError%":oA,"%Reflect%":typeof Reflect>"u"?X:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?X:Set,"%SetIteratorPrototype%":typeof Set>"u"||!go||!je?X:je(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?X:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":go&&je?je(""[Symbol.iterator]()):X,"%Symbol%":go?Symbol:X,"%SyntaxError%":yo,"%ThrowTypeError%":fA,"%TypedArray%":xA,"%TypeError%":vo,"%Uint8Array%":typeof Uint8Array>"u"?X:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?X:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?X:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?X:Uint32Array,"%URIError%":iA,"%WeakMap%":typeof WeakMap>"u"?X:WeakMap,"%WeakRef%":typeof WeakRef>"u"?X:WeakRef,"%WeakSet%":typeof WeakSet>"u"?X:WeakSet,"%Function.prototype.call%":Ui,"%Function.prototype.apply%":Sw,"%Object.defineProperty%":mA,"%Object.getPrototypeOf%":hA,"%Math.abs%":sA,"%Math.floor%":aA,"%Math.max%":cA,"%Math.min%":uA,"%Math.pow%":lA,"%Math.round%":pA,"%Math.sign%":dA,"%Reflect.getPrototypeOf%":gA};if(je)try{null.error}catch(t){_w=je(je(t)),kn["%Error.prototype%"]=_w}var _w,vA=function t(e){var r;if(e==="%AsyncFunction%")r=Pm("async function () {}");else if(e==="%GeneratorFunction%")r=Pm("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Pm("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&je&&(r=je(o.prototype))}return kn[e]=r,r},ww={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fi=Di(),nc=rc(),yA=Fi.call(Ui,Array.prototype.concat),bA=Fi.call(Sw,Array.prototype.splice),kw=Fi.call(Ui,String.prototype.replace),oc=Fi.call(Ui,String.prototype.slice),_A=Fi.call(Ui,RegExp.prototype.exec),wA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kA=/\\(\\)?/g,$A=function(e){var r=oc(e,0,1),n=oc(e,-1);if(r==="%"&&n!=="%")throw new yo("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new yo("invalid intrinsic syntax, expected opening `%`");var o=[];return kw(e,wA,function(i,s,a,c){o[o.length]=a?kw(c,kA,"$1"):s||i}),o},SA=function(e,r){var n=e,o;if(nc(ww,n)&&(o=ww[n],n="%"+o[0]+"%"),nc(kn,n)){var i=kn[n];if(i===xo&&(i=vA(n)),typeof i>"u"&&!r)throw new vo("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new yo("intrinsic "+e+" does not exist!")};zw.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new vo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new vo('"allowMissing" argument must be a boolean');if(_A(/^%?[^%]*%?$/,e)===null)throw new yo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=$A(e),o=n.length>0?n[0]:"",i=SA("%"+o+"%",r),s=i.name,a=i.value,c=!1,u=i.alias;u&&(o=u[0],bA(n,yA([0,1],u)));for(var l=1,p=!0;l<n.length;l+=1){var m=n[l],h=oc(m,0,1),d=oc(m,-1);if((h==='"'||h==="'"||h==="`"||d==='"'||d==="'"||d==="`")&&h!==d)throw new yo("property names with quotes must have matching quotes");if((m==="constructor"||!p)&&(c=!0),o+="."+m,s="%"+o+"%",nc(kn,s))a=kn[s];else if(a!=null){if(!(m in a)){if(!r)throw new vo("base intrinsic for "+e+" exists, but the property is not available.");return}if(Li&&l+1>=n.length){var f=Li(a,m);p=!!f,p&&"get"in f&&!("originalValue"in f.get)?a=f.get:a=a[m]}else p=nc(a,m),a=a[m];p&&!c&&(kn[s]=a)}}return a}});var Pw=w((TF,Tw)=>{"use strict";var zA=$m();Tw.exports=function(){return zA()&&!!Symbol.toStringTag}});var Iw=w((PF,Cw)=>{"use strict";var EA=Ew(),Rw=EA("%Object.defineProperty%",!0),TA=Pw()(),PA=rc(),RA=Xa(),ic=TA?Symbol.toStringTag:null;Cw.exports=function(e,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new RA("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");ic&&(n||!PA(e,ic))&&(Rw?Rw(e,ic,{configurable:!o,enumerable:!1,value:r,writable:!1}):e[ic]=r)}});var jw=w((RF,Ow)=>{"use strict";Ow.exports=function(t,e){return Object.keys(e).forEach(function(r){t[r]=t[r]||e[r]}),t}});var Nw=w((CF,Aw)=>{"use strict";var jm=Db(),CA=require("util"),Cm=require("path"),IA=require("http"),OA=require("https"),jA=require("url").parse,AA=require("fs"),NA=require("stream").Stream,ZA=require("crypto"),Im=Hb(),MA=u_(),qA=Iw(),Or=rc(),Om=jw();function se(t){if(!(this instanceof se))return new se(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],jm.call(this),t=t||{};for(var e in t)this[e]=t[e]}CA.inherits(se,jm);se.LINE_BREAK=`\r
10
- `;se.DEFAULT_CONTENT_TYPE="application/octet-stream";se.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=jm.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(t,e,r),i=this._multiPartFooter();n(o),n(e),n(i),this._trackLength(o,e,r)};se.prototype._trackLength=function(t,e,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+se.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Or(e,"httpVersion"))&&!(e instanceof NA))&&(r.knownLength||this._valuesToMeasure.push(e))};se.prototype._lengthRetriever=function(t,e){Or(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):AA.stat(t.path,function(r,n){if(r){e(r);return}var o=n.size-(t.start?t.start:0);e(null,o)}):Or(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Or(t,"httpModule")?(t.on("response",function(r){t.pause(),e(null,Number(r.headers["content-length"]))}),t.resume()):e("Unknown stream")};se.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(e,r),o=this._getContentType(e,r),i="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&Om(s,r.header);var a;for(var c in s)if(Or(s,c)){if(a=s[c],a==null)continue;Array.isArray(a)||(a=[a]),a.length&&(i+=c+": "+a.join("; ")+se.LINE_BREAK)}return"--"+this.getBoundary()+se.LINE_BREAK+i+se.LINE_BREAK};se.prototype._getContentDisposition=function(t,e){var r;if(typeof e.filepath=="string"?r=Cm.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?r=Cm.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Or(t,"httpVersion")&&(r=Cm.basename(t.client._httpMessage.path||"")),r)return'filename="'+r+'"'};se.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t&&t.name&&(r=Im.lookup(t.name)),!r&&t&&t.path&&(r=Im.lookup(t.path)),!r&&t&&t.readable&&Or(t,"httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=Im.lookup(e.filepath||e.filename)),!r&&t&&typeof t=="object"&&(r=se.DEFAULT_CONTENT_TYPE),r};se.prototype._multiPartFooter=function(){return function(t){var e=se.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};se.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+se.LINE_BREAK};se.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)Or(t,e)&&(r[e.toLowerCase()]=t[e]);return r};se.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};se.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};se.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?t=Buffer.concat([t,this._streams[r]]):t=Buffer.concat([t,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(se.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};se.prototype._generateBoundary=function(){this._boundary="--------------------------"+ZA.randomBytes(12).toString("hex")};se.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};se.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};se.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}MA.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){t(r);return}n.forEach(function(o){e+=o}),t(null,e)})};se.prototype.submit=function(t,e){var r,n,o={method:"post"};return typeof t=="string"?(t=jA(t),n=Om({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},o)):(n=Om(t,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(t.headers),n.protocol==="https:"?r=OA.request(n):r=IA.request(n),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),e){var a,c=function(u,l){return r.removeListener("error",c),r.removeListener("response",a),e.call(this,u,l)};a=c.bind(this,null),r.on("error",c),r.on("response",a)}}.bind(this)),r};se.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};se.prototype.toString=function(){return"[object FormData]"};qA(se.prototype,"FormData");Aw.exports=se});var Kw=w(Ww=>{"use strict";var QA=require("url").parse,eN={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},tN=String.prototype.endsWith||function(t){return t.length<=this.length&&this.indexOf(t,this.length-t.length)!==-1};function rN(t){var e=typeof t=="string"?QA(t):t||{},r=e.protocol,n=e.host,o=e.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||eN[r]||0,!nN(n,o)))return"";var i=ko("npm_config_"+r+"_proxy")||ko(r+"_proxy")||ko("npm_config_proxy")||ko("all_proxy");return i&&i.indexOf("://")===-1&&(i=r+"://"+i),i}function nN(t,e){var r=(ko("npm_config_no_proxy")||ko("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),i=o?o[1]:n,s=o?parseInt(o[2]):0;return s&&s!==e?!0:/^[.*]/.test(i)?(i.charAt(0)==="*"&&(i=i.slice(1)),!tN.call(t,i)):t!==i}):!0}function ko(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}Ww.getProxyForUrl=rN});var Xw=w((I9,Yw)=>{var $o=1e3,So=$o*60,zo=So*60,zn=zo*24,oN=zn*7,iN=zn*365.25;Yw.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return sN(t);if(r==="number"&&isFinite(t))return e.long?cN(t):aN(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function sN(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*iN;case"weeks":case"week":case"w":return r*oN;case"days":case"day":case"d":return r*zn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*zo;case"minutes":case"minute":case"mins":case"min":case"m":return r*So;case"seconds":case"second":case"secs":case"sec":case"s":return r*$o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function aN(t){var e=Math.abs(t);return e>=zn?Math.round(t/zn)+"d":e>=zo?Math.round(t/zo)+"h":e>=So?Math.round(t/So)+"m":e>=$o?Math.round(t/$o)+"s":t+"ms"}function cN(t){var e=Math.abs(t);return e>=zn?uc(t,e,zn,"day"):e>=zo?uc(t,e,zo,"hour"):e>=So?uc(t,e,So,"minute"):e>=$o?uc(t,e,$o,"second"):t+" ms"}function uc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var Fm=w((O9,Qw)=>{function uN(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=o,r.enabled=a,r.humanize=Xw(),r.destroy=u,Object.keys(t).forEach(l=>{r[l]=t[l]}),r.names=[],r.skips=[],r.formatters={};function e(l){let p=0;for(let m=0;m<l.length;m++)p=(p<<5)-p+l.charCodeAt(m),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(l){let p,m=null,h,d;function f(...x){if(!f.enabled)return;let g=f,y=Number(new Date),b=y-(p||y);g.diff=b,g.prev=p,g.curr=y,p=y,x[0]=r.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let S=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(Z,N)=>{if(Z==="%%")return"%";S++;let ue=r.formatters[N];if(typeof ue=="function"){let be=x[S];Z=ue.call(g,be),x.splice(S,1),S--}return Z}),r.formatArgs.call(g,x),(g.log||r.log).apply(g,x)}return f.namespace=l,f.useColors=r.useColors(),f.color=r.selectColor(l),f.extend=n,f.destroy=r.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,d=r.enabled(l)),d),set:x=>{m=x}}),typeof r.init=="function"&&r.init(f),f}function n(l,p){let m=r(this.namespace+(typeof p>"u"?":":p)+l);return m.log=this.log,m}function o(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let p=(typeof l=="string"?l:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of p)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function i(l,p){let m=0,h=0,d=-1,f=0;for(;m<l.length;)if(h<p.length&&(p[h]===l[m]||p[h]==="*"))p[h]==="*"?(d=h,f=m,h++):(m++,h++);else if(d!==-1)h=d+1,f++,m=f;else return!1;for(;h<p.length&&p[h]==="*";)h++;return h===p.length}function s(){let l=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),l}function a(l){for(let p of r.skips)if(i(l,p))return!1;for(let p of r.names)if(i(l,p))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Qw.exports=uN});var e0=w((dt,lc)=>{dt.formatArgs=pN;dt.save=dN;dt.load=mN;dt.useColors=lN;dt.storage=fN();dt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();dt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function lN(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function pN(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+lc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}dt.log=console.debug||console.log||(()=>{});function dN(t){try{t?dt.storage.setItem("debug",t):dt.storage.removeItem("debug")}catch{}}function mN(){let t;try{t=dt.storage.getItem("debug")||dt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function fN(){try{return localStorage}catch{}}lc.exports=Fm()(dt);var{formatters:hN}=lc.exports;hN.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var r0=w((j9,t0)=>{"use strict";t0.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),o=e.indexOf("--");return n!==-1&&(o===-1||n<o)}});var i0=w((A9,o0)=>{"use strict";var gN=require("os"),n0=require("tty"),Tt=r0(),{env:Ae}=process,Nr;Tt("no-color")||Tt("no-colors")||Tt("color=false")||Tt("color=never")?Nr=0:(Tt("color")||Tt("colors")||Tt("color=true")||Tt("color=always"))&&(Nr=1);"FORCE_COLOR"in Ae&&(Ae.FORCE_COLOR==="true"?Nr=1:Ae.FORCE_COLOR==="false"?Nr=0:Nr=Ae.FORCE_COLOR.length===0?1:Math.min(parseInt(Ae.FORCE_COLOR,10),3));function Bm(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Vm(t,e){if(Nr===0)return 0;if(Tt("color=16m")||Tt("color=full")||Tt("color=truecolor"))return 3;if(Tt("color=256"))return 2;if(t&&!e&&Nr===void 0)return 0;let r=Nr||0;if(Ae.TERM==="dumb")return r;if(process.platform==="win32"){let n=gN.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ae)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ae)||Ae.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ae)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ae.TEAMCITY_VERSION)?1:0;if(Ae.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ae){let n=parseInt((Ae.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ae.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ae.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ae.TERM)||"COLORTERM"in Ae?1:r}function xN(t){let e=Vm(t,t&&t.isTTY);return Bm(e)}o0.exports={supportsColor:xN,stdout:Bm(Vm(!0,n0.isatty(1))),stderr:Bm(Vm(!0,n0.isatty(2)))}});var a0=w((Ne,dc)=>{var vN=require("tty"),pc=require("util");Ne.init=SN;Ne.log=wN;Ne.formatArgs=bN;Ne.save=kN;Ne.load=$N;Ne.useColors=yN;Ne.destroy=pc.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ne.colors=[6,2,3,4,5,1];try{let t=i0();t&&(t.stderr||t).level>=2&&(Ne.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Ne.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function yN(){return"colors"in Ne.inspectOpts?!!Ne.inspectOpts.colors:vN.isatty(process.stderr.fd)}function bN(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
9
+ deps: ${r}}`};var WO={keyword:"dependencies",type:"object",schemaType:"object",error:Wt.error,code(t){let[e,r]=KO(t);Ty(t,e),Ey(t,r)}};function KO({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let o=Array.isArray(t[n])?e:r;o[n]=t[n]}return[e,r]}function Ty(t,e=t.schema){let{gen:r,data:n,it:o}=t;if(Object.keys(e).length===0)return;let i=r.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let c=(0,Ni.propertyInData)(r,n,s,o.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let u of a)(0,Ni.checkReportMissingProp)(t,u)}):(r.if((0,qd._)`${c} && (${(0,Ni.checkMissingProp)(t,a,i)})`),(0,Ni.reportMissingProp)(t,i),r.else())}}Wt.validatePropertyDeps=Ty;function Ey(t,e=t.schema){let{gen:r,data:n,keyword:o,it:i}=t,s=r.name("valid");for(let a in e)(0,JO.alwaysValidSchema)(i,e[a])||(r.if((0,Ni.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=t.subschema({keyword:o,schemaProp:a},s);t.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),t.ok(s))}Wt.validateSchemaDeps=Ey;Wt.default=WO});var Iy=w(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var Ry=W(),YO=oe(),XO={message:"property name must be valid",params:({params:t})=>(0,Ry._)`{propertyName: ${t.propertyName}}`},QO={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:XO,code(t){let{gen:e,schema:r,data:n,it:o}=t;if((0,YO.alwaysValidSchema)(o,r))return;let i=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,Ry.not)(i),()=>{t.error(!0),o.allErrors||e.break()})}),t.ok(i)}};Ud.default=QO});var Bd=w(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var Oa=St(),Lt=W(),eC=lr(),Ca=oe(),tC={message:"must NOT have additional properties",params:({params:t})=>(0,Lt._)`{additionalProperty: ${t.additionalProperty}}`},rC={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:tC,code(t){let{gen:e,schema:r,parentSchema:n,data:o,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Ca.alwaysValidSchema)(s,r))return;let u=(0,Oa.allSchemaProperties)(n.properties),l=(0,Oa.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Lt._)`${i} === ${eC.default.errors}`);function p(){e.forIn("key",o,x=>{!u.length&&!l.length?d(x):e.if(m(x),()=>d(x))})}function m(x){let g;if(u.length>8){let y=(0,Ca.schemaRefOrVal)(s,n.properties,"properties");g=(0,Oa.isOwnProperty)(e,y,x)}else u.length?g=(0,Lt.or)(...u.map(y=>(0,Lt._)`${x} === ${y}`)):g=Lt.nil;return l.length&&(g=(0,Lt.or)(g,...l.map(y=>(0,Lt._)`${(0,Oa.usePattern)(t,y)}.test(${x})`))),(0,Lt.not)(g)}function h(x){e.code((0,Lt._)`delete ${o}[${x}]`)}function d(x){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(x);return}if(r===!1){t.setParams({additionalProperty:x}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Ca.alwaysValidSchema)(s,r)){let g=e.name("valid");c.removeAdditional==="failing"?(f(x,g,!1),e.if((0,Lt.not)(g),()=>{t.reset(),h(x)})):(f(x,g),a||e.if((0,Lt.not)(g),()=>e.break()))}}function f(x,g,y){let b={keyword:"additionalProperties",dataProp:x,dataPropType:Ca.Type.Str};y===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(b,g)}}};Fd.default=rC});var jy=w(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});var nC=wi(),Oy=St(),Vd=oe(),Cy=Bd(),oC={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:o,it:i}=t;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Cy.default.code(new nC.KeywordCxt(i,Cy.default,"additionalProperties"));let s=(0,Oy.allSchemaProperties)(r);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Vd.mergeEvaluated.props(e,(0,Vd.toHash)(s),i.props));let a=s.filter(p=>!(0,Vd.alwaysValidSchema)(i,r[p]));if(a.length===0)return;let c=e.name("valid");for(let p of a)u(p)?l(p):(e.if((0,Oy.propertyInData)(e,o,p,i.opts.ownProperties)),l(p),i.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(c);function u(p){return i.opts.useDefaults&&!i.compositeRule&&r[p].default!==void 0}function l(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};Hd.default=oC});var Ly=w(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var Ay=St(),ja=W(),Ny=oe(),Dy=oe(),iC={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:o,it:i}=t,{opts:s}=i,a=(0,Ay.allSchemaProperties)(r),c=a.filter(f=>(0,Ny.alwaysValidSchema)(i,r[f]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=e.name("valid");i.props!==!0&&!(i.props instanceof ja.Name)&&(i.props=(0,Dy.evaluatedPropsToName)(e,i.props));let{props:p}=i;m();function m(){for(let f of a)u&&h(f),i.allErrors?d(f):(e.var(l,!0),d(f),e.if(l))}function h(f){for(let x in u)new RegExp(f).test(x)&&(0,Ny.checkStrictMode)(i,`property ${x} matches pattern ${f} (use allowMatchingProperties)`)}function d(f){e.forIn("key",n,x=>{e.if((0,ja._)`${(0,Ay.usePattern)(t,f)}.test(${x})`,()=>{let g=c.includes(f);g||t.subschema({keyword:"patternProperties",schemaProp:f,dataProp:x,dataPropType:Dy.Type.Str},l),i.opts.unevaluated&&p!==!0?e.assign((0,ja._)`${p}[${x}]`,!0):!g&&!i.allErrors&&e.if((0,ja.not)(l),()=>e.break())})})}}};Gd.default=iC});var My=w(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var sC=oe(),aC={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,sC.alwaysValidSchema)(n,r)){t.fail();return}let o=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),t.failResult(o,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Jd.default=aC});var Zy=w(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var cC=St(),uC={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:cC.validateUnion,error:{message:"must match a schema in anyOf"}};Wd.default=uC});var qy=w(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var Aa=W(),lC=oe(),pC={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Aa._)`{passingSchemas: ${t.passing}}`},dC={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:pC,code(t){let{gen:e,schema:r,parentSchema:n,it:o}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){i.forEach((l,p)=>{let m;(0,lC.alwaysValidSchema)(o,l)?e.var(c,!0):m=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&e.if((0,Aa._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Aa._)`[${a}, ${p}]`).else(),e.if(c,()=>{e.assign(s,!0),e.assign(a,p),m&&t.mergeEvaluated(m,Aa.Name)})})}}};Kd.default=dC});var Uy=w(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});var mC=oe(),fC={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=e.name("valid");r.forEach((i,s)=>{if((0,mC.alwaysValidSchema)(n,i))return;let a=t.subschema({keyword:"allOf",schemaProp:s},o);t.ok(o),t.mergeEvaluated(a)})}};Yd.default=fC});var Vy=w(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var Na=W(),By=oe(),hC={message:({params:t})=>(0,Na.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Na._)`{failingKeyword: ${t.ifClause}}`},gC={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:hC,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,By.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=Fy(n,"then"),i=Fy(n,"else");if(!o&&!i)return;let s=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),o&&i){let l=e.let("ifClause");t.setParams({ifClause:l}),e.if(a,u("then",l),u("else",l))}else o?e.if(a,u("then")):e.if((0,Na.not)(a),u("else"));t.pass(s,()=>t.error(!0));function c(){let l=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(l)}function u(l,p){return()=>{let m=t.subschema({keyword:l},a);e.assign(s,a),t.mergeValidEvaluated(m,s),p?e.assign(p,(0,Na._)`${l}`):t.setParams({ifClause:l})}}}};function Fy(t,e){let r=t.schema[e];return r!==void 0&&!(0,By.alwaysValidSchema)(t,r)}Xd.default=gC});var Hy=w(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});var xC=oe(),vC={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,xC.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Qd.default=vC});var Gy=w(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var yC=Nd(),bC=ky(),_C=Dd(),wC=$y(),kC=zy(),SC=Py(),$C=Iy(),zC=Bd(),TC=jy(),EC=Ly(),PC=My(),RC=Zy(),IC=qy(),OC=Uy(),CC=Vy(),jC=Hy();function AC(t=!1){let e=[PC.default,RC.default,IC.default,OC.default,CC.default,jC.default,$C.default,zC.default,SC.default,TC.default,EC.default];return t?e.push(bC.default,wC.default):e.push(yC.default,_C.default),e.push(kC.default),e}em.default=AC});var Jy=w(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var Pe=W(),NC={message:({schemaCode:t})=>(0,Pe.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Pe._)`{format: ${t}}`},DC={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:NC,code(t,e){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=t,{opts:c,errSchemaPath:u,schemaEnv:l,self:p}=a;if(!c.validateFormats)return;o?m():h();function m(){let d=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),f=r.const("fDef",(0,Pe._)`${d}[${s}]`),x=r.let("fType"),g=r.let("format");r.if((0,Pe._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>r.assign(x,(0,Pe._)`${f}.type || "string"`).assign(g,(0,Pe._)`${f}.validate`),()=>r.assign(x,(0,Pe._)`"string"`).assign(g,f)),t.fail$data((0,Pe.or)(y(),b()));function y(){return c.strictSchema===!1?Pe.nil:(0,Pe._)`${s} && !${g}`}function b(){let $=l.$async?(0,Pe._)`(${f}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Pe._)`${g}(${n})`,S=(0,Pe._)`(typeof ${g} == "function" ? ${$} : ${g}.test(${n}))`;return(0,Pe._)`${g} && ${g} !== true && ${x} === ${e} && !${S}`}}function h(){let d=p.formats[i];if(!d){y();return}if(d===!0)return;let[f,x,g]=b(d);f===e&&t.pass($());function y(){if(c.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${u}"`}}function b(S){let L=S instanceof RegExp?(0,Pe.regexpCode)(S):c.code.formats?(0,Pe._)`${c.code.formats}${(0,Pe.getProperty)(i)}`:void 0,D=r.scopeValue("formats",{key:i,ref:S,code:L});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Pe._)`${D}.validate`]:["string",S,D]}function $(){if(typeof d=="object"&&!(d instanceof RegExp)&&d.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Pe._)`await ${g}(${n})`}return typeof x=="function"?(0,Pe._)`${g}(${n})`:(0,Pe._)`${g}.test(${n})`}}}};tm.default=DC});var Wy=w(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var LC=Jy(),MC=[LC.default];rm.default=MC});var Ky=w(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.contentVocabulary=lo.metadataVocabulary=void 0;lo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];lo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Xy=w(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});var ZC=iy(),qC=yy(),UC=Gy(),FC=Wy(),Yy=Ky(),BC=[ZC.default,qC.default,(0,UC.default)(),FC.default,Yy.metadataVocabulary,Yy.contentVocabulary];nm.default=BC});var eb=w(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.DiscrError=void 0;var Qy;(function(t){t.Tag="tag",t.Mapping="mapping"})(Qy||(Da.DiscrError=Qy={}))});var rb=w(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var po=W(),om=eb(),tb=ba(),VC=ki(),HC=oe(),GC={message:({params:{discrError:t,tagName:e}})=>t===om.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,po._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},JC={keyword:"discriminator",type:"object",schemaType:"object",error:GC,code(t){let{gen:e,data:r,schema:n,parentSchema:o,it:i}=t,{oneOf:s}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),u=e.const("tag",(0,po._)`${r}${(0,po.getProperty)(a)}`);e.if((0,po._)`typeof ${u} == "string"`,()=>l(),()=>t.error(!1,{discrError:om.DiscrError.Tag,tag:u,tagName:a})),t.ok(c);function l(){let h=m();e.if(!1);for(let d in h)e.elseIf((0,po._)`${u} === ${d}`),e.assign(c,p(h[d]));e.else(),t.error(!1,{discrError:om.DiscrError.Mapping,tag:u,tagName:a}),e.endIf()}function p(h){let d=e.name("valid"),f=t.subschema({keyword:"oneOf",schemaProp:h},d);return t.mergeEvaluated(f,po.Name),d}function m(){var h;let d={},f=g(o),x=!0;for(let $=0;$<s.length;$++){let S=s[$];if(S!=null&&S.$ref&&!(0,HC.schemaHasRulesButRef)(S,i.self.RULES)){let D=S.$ref;if(S=tb.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,D),S instanceof tb.SchemaEnv&&(S=S.schema),S===void 0)throw new VC.default(i.opts.uriResolver,i.baseId,D)}let L=(h=S==null?void 0:S.properties)===null||h===void 0?void 0:h[a];if(typeof L!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);x=x&&(f||g(S)),y(L,$)}if(!x)throw new Error(`discriminator: "${a}" must be required`);return d;function g({required:$}){return Array.isArray($)&&$.includes(a)}function y($,S){if($.const)b($.const,S);else if($.enum)for(let L of $.enum)b(L,S);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function b($,S){if(typeof $!="string"||$ in d)throw new Error(`discriminator: "${a}" values must be unique strings`);d[$]=S}}}};im.default=JC});var nb=w((sU,WC)=>{WC.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var am=w((be,sm)=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.MissingRefError=be.ValidationError=be.CodeGen=be.Name=be.nil=be.stringify=be.str=be._=be.KeywordCxt=be.Ajv=void 0;var KC=Qv(),YC=Xy(),XC=rb(),ob=nb(),QC=["/properties"],La="http://json-schema.org/draft-07/schema",mo=class extends KC.default{_addVocabularies(){super._addVocabularies(),YC.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(XC.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(ob,QC):ob;this.addMetaSchema(e,La,!1),this.refs["http://json-schema.org/schema"]=La}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(La)?La:void 0)}};be.Ajv=mo;sm.exports=be=mo;sm.exports.Ajv=mo;Object.defineProperty(be,"__esModule",{value:!0});be.default=mo;var ej=wi();Object.defineProperty(be,"KeywordCxt",{enumerable:!0,get:function(){return ej.KeywordCxt}});var fo=W();Object.defineProperty(be,"_",{enumerable:!0,get:function(){return fo._}});Object.defineProperty(be,"str",{enumerable:!0,get:function(){return fo.str}});Object.defineProperty(be,"stringify",{enumerable:!0,get:function(){return fo.stringify}});Object.defineProperty(be,"nil",{enumerable:!0,get:function(){return fo.nil}});Object.defineProperty(be,"Name",{enumerable:!0,get:function(){return fo.Name}});Object.defineProperty(be,"CodeGen",{enumerable:!0,get:function(){return fo.CodeGen}});var tj=va();Object.defineProperty(be,"ValidationError",{enumerable:!0,get:function(){return tj.default}});var rj=ki();Object.defineProperty(be,"MissingRefError",{enumerable:!0,get:function(){return rj.default}})});var db=w(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.formatNames=Yt.fastFormats=Yt.fullFormats=void 0;function Kt(t,e){return{validate:t,compare:e}}Yt.fullFormats={date:Kt(cb,pm),time:Kt(um(!0),dm),"date-time":Kt(ib(!0),lb),"iso-time":Kt(um(),ub),"iso-date-time":Kt(ib(),pb),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:cj,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:hj,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:uj,int32:{type:"number",validate:dj},int64:{type:"number",validate:mj},float:{type:"number",validate:ab},double:{type:"number",validate:ab},password:!0,binary:!0};Yt.fastFormats={...Yt.fullFormats,date:Kt(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,pm),time:Kt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,dm),"date-time":Kt(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,lb),"iso-time":Kt(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ub),"iso-date-time":Kt(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,pb),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Yt.formatNames=Object.keys(Yt.fullFormats);function nj(t){return t%4===0&&(t%100!==0||t%400===0)}var oj=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ij=[0,31,28,31,30,31,30,31,31,30,31,30,31];function cb(t){let e=oj.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],o=+e[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&nj(r)?29:ij[n])}function pm(t,e){if(t&&e)return t>e?1:t<e?-1:0}var cm=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function um(t){return function(r){let n=cm.exec(r);if(!n)return!1;let o=+n[1],i=+n[2],s=+n[3],a=n[4],c=n[5]==="-"?-1:1,u=+(n[6]||0),l=+(n[7]||0);if(u>23||l>59||t&&!a)return!1;if(o<=23&&i<=59&&s<60)return!0;let p=i-l*c,m=o-u*c-(p<0?1:0);return(m===23||m===-1)&&(p===59||p===-1)&&s<61}}function dm(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(r&&n)return r-n}function ub(t,e){if(!(t&&e))return;let r=cm.exec(t),n=cm.exec(e);if(r&&n)return t=r[1]+r[2]+r[3],e=n[1]+n[2]+n[3],t>e?1:t<e?-1:0}var lm=/t|\s/i;function ib(t){let e=um(t);return function(n){let o=n.split(lm);return o.length===2&&cb(o[0])&&e(o[1])}}function lb(t,e){if(!(t&&e))return;let r=new Date(t).valueOf(),n=new Date(e).valueOf();if(r&&n)return r-n}function pb(t,e){if(!(t&&e))return;let[r,n]=t.split(lm),[o,i]=e.split(lm),s=pm(r,o);if(s!==void 0)return s||dm(n,i)}var sj=/\/|:/,aj=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function cj(t){return sj.test(t)&&aj.test(t)}var sb=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function uj(t){return sb.lastIndex=0,sb.test(t)}var lj=-(2**31),pj=2**31-1;function dj(t){return Number.isInteger(t)&&t<=pj&&t>=lj}function mj(t){return Number.isInteger(t)}function ab(){return!0}var fj=/[^\\]\\Z/;function hj(t){if(fj.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var mb=w(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.formatLimitDefinition=void 0;var gj=am(),Mt=W(),jr=Mt.operators,Ma={formatMaximum:{okStr:"<=",ok:jr.LTE,fail:jr.GT},formatMinimum:{okStr:">=",ok:jr.GTE,fail:jr.LT},formatExclusiveMaximum:{okStr:"<",ok:jr.LT,fail:jr.GTE},formatExclusiveMinimum:{okStr:">",ok:jr.GT,fail:jr.LTE}},xj={message:({keyword:t,schemaCode:e})=>(0,Mt.str)`should be ${Ma[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Mt._)`{comparison: ${Ma[t].okStr}, limit: ${e}}`};ho.formatLimitDefinition={keyword:Object.keys(Ma),type:"string",schemaType:"string",$data:!0,error:xj,code(t){let{gen:e,data:r,schemaCode:n,keyword:o,it:i}=t,{opts:s,self:a}=i;if(!s.validateFormats)return;let c=new gj.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?u():l();function u(){let m=e.scopeValue("formats",{ref:a.formats,code:s.code.formats}),h=e.const("fmt",(0,Mt._)`${m}[${c.schemaCode}]`);t.fail$data((0,Mt.or)((0,Mt._)`typeof ${h} != "object"`,(0,Mt._)`${h} instanceof RegExp`,(0,Mt._)`typeof ${h}.compare != "function"`,p(h)))}function l(){let m=c.schema,h=a.formats[m];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let d=e.scopeValue("formats",{key:m,ref:h,code:s.code.formats?(0,Mt._)`${s.code.formats}${(0,Mt.getProperty)(m)}`:void 0});t.fail$data(p(d))}function p(m){return(0,Mt._)`${m}.compare(${r}, ${n}) ${Ma[o].fail} 0`}},dependencies:["format"]};var vj=t=>(t.addKeyword(ho.formatLimitDefinition),t);ho.default=vj});var xb=w((Di,gb)=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var go=db(),yj=mb(),mm=W(),fb=new mm.Name("fullFormats"),bj=new mm.Name("fastFormats"),fm=(t,e={keywords:!0})=>{if(Array.isArray(e))return hb(t,e,go.fullFormats,fb),t;let[r,n]=e.mode==="fast"?[go.fastFormats,bj]:[go.fullFormats,fb],o=e.formats||go.formatNames;return hb(t,o,r,n),e.keywords&&(0,yj.default)(t),t};fm.get=(t,e="full")=>{let n=(e==="fast"?go.fastFormats:go.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function hb(t,e,r,n){var o,i;(o=(i=t.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,mm._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,r[s])}gb.exports=Di=fm;Object.defineProperty(Di,"__esModule",{value:!0});Di.default=fm});var Fb=w((GU,Ub)=>{var qb=require("stream").Stream,c1=require("util");Ub.exports=Zt;function Zt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}c1.inherits(Zt,qb);Zt.create=function(t,e){var r=new this;e=e||{};for(var n in e)r[n]=e[n];r.source=t;var o=t.emit;return t.emit=function(){return r._handleEmit(arguments),o.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(Zt.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Zt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Zt.prototype.resume=function(){this._released||this.release(),this.source.resume()};Zt.prototype.pause=function(){this.source.pause()};Zt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Zt.prototype.pipe=function(){var t=qb.prototype.pipe.apply(this,arguments);return this.resume(),t};Zt.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Zt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var Gb=w((JU,Hb)=>{var u1=require("util"),Vb=require("stream").Stream,Bb=Fb();Hb.exports=Ee;function Ee(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}u1.inherits(Ee,Vb);Ee.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};Ee.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ee.prototype.append=function(t){var e=Ee.isStreamLike(t);if(e){if(!(t instanceof Bb)){var r=Bb.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ee.prototype.pipe=function(t,e){return Vb.prototype.pipe.call(this,t,e),this.resume(),t};Ee.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}};Ee.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var n=Ee.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Ee.prototype._pipeNext=function(t){this._currentStream=t;var e=Ee.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};Ee.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};Ee.prototype.write=function(t){this.emit("data",t)};Ee.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ee.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ee.prototype.end=function(){this._reset(),this.emit("end")};Ee.prototype.destroy=function(){this._reset(),this.emit("close")};Ee.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ee.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ee.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ee.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var Jb=w((WU,l1)=>{l1.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 Kb=w((KU,Wb)=>{Wb.exports=Jb()});var Qb=w(dt=>{"use strict";var Ya=Kb(),p1=require("path").extname,Yb=/^\s*([^;\s]*)(?:;|\s|$)/,d1=/^text\//i;dt.charset=Xb;dt.charsets={lookup:Xb};dt.contentType=m1;dt.extension=f1;dt.extensions=Object.create(null);dt.lookup=h1;dt.types=Object.create(null);g1(dt.extensions,dt.types);function Xb(t){if(!t||typeof t!="string")return!1;var e=Yb.exec(t),r=e&&Ya[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&d1.test(e[1])?"UTF-8":!1}function m1(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?dt.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=dt.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}function f1(t){if(!t||typeof t!="string")return!1;var e=Yb.exec(t),r=e&&dt.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}function h1(t){if(!t||typeof t!="string")return!1;var e=p1("x."+t).toLowerCase().substr(1);return e&&dt.types[e]||!1}function g1(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(Ya).forEach(function(o){var i=Ya[o],s=i.extensions;if(!(!s||!s.length)){t[o]=s;for(var a=0;a<s.length;a++){var c=s[a];if(e[c]){var u=r.indexOf(Ya[e[c]].source),l=r.indexOf(i.source);if(e[c]!=="application/octet-stream"&&(u>l||u===l&&e[c].substr(0,12)==="application/"))continue}e[c]=o}}})}});var t_=w((XU,e_)=>{e_.exports=x1;function x1(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var wm=w((QU,n_)=>{var r_=t_();n_.exports=v1;function v1(t){var e=!1;return r_(function(){e=!0}),function(n,o){e?t(n,o):r_(function(){t(n,o)})}}});var km=w((eF,o_)=>{o_.exports=y1;function y1(t){Object.keys(t.jobs).forEach(b1.bind(t)),t.jobs={}}function b1(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var Sm=w((tF,s_)=>{var i_=wm(),_1=km();s_.exports=w1;function w1(t,e,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=k1(e,o,t[o],function(i,s){o in r.jobs&&(delete r.jobs[o],i?_1(r):r.results[o]=s,n(i,r.results))})}function k1(t,e,r,n){var o;return t.length==2?o=t(r,i_(n)):o=t(r,e,i_(n)),o}});var $m=w((rF,a_)=>{a_.exports=S1;function S1(t,e){var r=!Array.isArray(t),n={index:0,keyedList:r||e?Object.keys(t):null,jobs:{},results:r?{}:[],size:r?Object.keys(t).length:t.length};return e&&n.keyedList.sort(r?e:function(o,i){return e(t[o],t[i])}),n}});var zm=w((nF,c_)=>{var $1=km(),z1=wm();c_.exports=T1;function T1(t){Object.keys(this.jobs).length&&(this.index=this.size,$1(this),z1(t)(null,this.results))}});var l_=w((oF,u_)=>{var E1=Sm(),P1=$m(),R1=zm();u_.exports=I1;function I1(t,e,r){for(var n=P1(t);n.index<(n.keyedList||t).length;)E1(t,e,n,function(o,i){if(o){r(o,i);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return R1.bind(n,r)}});var Tm=w((iF,Xa)=>{var p_=Sm(),O1=$m(),C1=zm();Xa.exports=j1;Xa.exports.ascending=d_;Xa.exports.descending=A1;function j1(t,e,r,n){var o=O1(t,r);return p_(t,e,o,function i(s,a){if(s){n(s,a);return}if(o.index++,o.index<(o.keyedList||t).length){p_(t,e,o,i);return}n(null,o.results)}),C1.bind(o,n)}function d_(t,e){return t<e?-1:t>e?1:0}function A1(t,e){return-1*d_(t,e)}});var f_=w((sF,m_)=>{var N1=Tm();m_.exports=D1;function D1(t,e,r){return N1(t,e,null,r)}});var g_=w((aF,h_)=>{h_.exports={parallel:l_(),serial:f_(),serialOrdered:Tm()}});var Em=w((cF,x_)=>{"use strict";x_.exports=Object});var y_=w((uF,v_)=>{"use strict";v_.exports=Error});var __=w((lF,b_)=>{"use strict";b_.exports=EvalError});var k_=w((pF,w_)=>{"use strict";w_.exports=RangeError});var $_=w((dF,S_)=>{"use strict";S_.exports=ReferenceError});var T_=w((mF,z_)=>{"use strict";z_.exports=SyntaxError});var Qa=w((fF,E_)=>{"use strict";E_.exports=TypeError});var R_=w((hF,P_)=>{"use strict";P_.exports=URIError});var O_=w((gF,I_)=>{"use strict";I_.exports=Math.abs});var j_=w((xF,C_)=>{"use strict";C_.exports=Math.floor});var N_=w((vF,A_)=>{"use strict";A_.exports=Math.max});var L_=w((yF,D_)=>{"use strict";D_.exports=Math.min});var Z_=w((bF,M_)=>{"use strict";M_.exports=Math.pow});var U_=w((_F,q_)=>{"use strict";q_.exports=Math.round});var B_=w((wF,F_)=>{"use strict";F_.exports=Number.isNaN||function(e){return e!==e}});var H_=w((kF,V_)=>{"use strict";var L1=B_();V_.exports=function(e){return L1(e)||e===0?e:e<0?-1:1}});var J_=w((SF,G_)=>{"use strict";G_.exports=Object.getOwnPropertyDescriptor});var Pm=w(($F,W_)=>{"use strict";var ec=J_();if(ec)try{ec([],"length")}catch{ec=null}W_.exports=ec});var Y_=w((zF,K_)=>{"use strict";var tc=Object.defineProperty||!1;if(tc)try{tc({},"a",{value:1})}catch{tc=!1}K_.exports=tc});var Rm=w((TF,X_)=>{"use strict";X_.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var tw=w((EF,ew)=>{"use strict";var Q_=typeof Symbol<"u"&&Symbol,M1=Rm();ew.exports=function(){return typeof Q_!="function"||typeof Symbol!="function"||typeof Q_("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:M1()}});var Im=w((PF,rw)=>{"use strict";rw.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Om=w((RF,nw)=>{"use strict";var Z1=Em();nw.exports=Z1.getPrototypeOf||null});var sw=w((IF,iw)=>{"use strict";var q1="Function.prototype.bind called on incompatible ",U1=Object.prototype.toString,F1=Math.max,B1="[object Function]",ow=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},V1=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},H1=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};iw.exports=function(e){var r=this;if(typeof r!="function"||U1.apply(r)!==B1)throw new TypeError(q1+r);for(var n=V1(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,ow(n,arguments));return Object(l)===l?l:this}return r.apply(e,ow(n,arguments))},s=F1(0,r.length-n.length),a=[],c=0;c<s;c++)a[c]="$"+c;if(o=Function("binder","return function ("+H1(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var Ui=w((OF,aw)=>{"use strict";var G1=sw();aw.exports=Function.prototype.bind||G1});var rc=w((CF,cw)=>{"use strict";cw.exports=Function.prototype.call});var Cm=w((jF,uw)=>{"use strict";uw.exports=Function.prototype.apply});var pw=w((AF,lw)=>{"use strict";lw.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var mw=w((NF,dw)=>{"use strict";var J1=Ui(),W1=Cm(),K1=rc(),Y1=pw();dw.exports=Y1||J1.call(K1,W1)});var hw=w((DF,fw)=>{"use strict";var X1=Ui(),Q1=Qa(),eA=rc(),tA=mw();fw.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Q1("a function is required");return tA(X1,eA,e)}});var _w=w((LF,bw)=>{"use strict";var rA=hw(),gw=Pm(),vw;try{vw=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var jm=!!vw&&gw&&gw(Object.prototype,"__proto__"),yw=Object,xw=yw.getPrototypeOf;bw.exports=jm&&typeof jm.get=="function"?rA([jm.get]):typeof xw=="function"?function(e){return xw(e==null?e:yw(e))}:!1});var zw=w((MF,$w)=>{"use strict";var ww=Im(),kw=Om(),Sw=_w();$w.exports=ww?function(e){return ww(e)}:kw?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return kw(e)}:Sw?function(e){return Sw(e)}:null});var nc=w((ZF,Tw)=>{"use strict";var nA=Function.prototype.call,oA=Object.prototype.hasOwnProperty,iA=Ui();Tw.exports=iA.call(nA,oA)});var jw=w((qF,Cw)=>{"use strict";var Q,sA=Em(),aA=y_(),cA=__(),uA=k_(),lA=$_(),wo=T_(),_o=Qa(),pA=R_(),dA=O_(),mA=j_(),fA=N_(),hA=L_(),gA=Z_(),xA=U_(),vA=H_(),Iw=Function,Am=function(t){try{return Iw('"use strict"; return ('+t+").constructor;")()}catch{}},Fi=Pm(),yA=Y_(),Nm=function(){throw new _o},bA=Fi?(function(){try{return arguments.callee,Nm}catch{try{return Fi(arguments,"callee").get}catch{return Nm}}})():Nm,yo=tw()(),De=zw(),_A=Om(),wA=Im(),Ow=Cm(),Bi=rc(),bo={},kA=typeof Uint8Array>"u"||!De?Q:De(Uint8Array),$n={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":yo&&De?De([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":bo,"%AsyncGenerator%":bo,"%AsyncGeneratorFunction%":bo,"%AsyncIteratorPrototype%":bo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":aA,"%eval%":eval,"%EvalError%":cA,"%Float16Array%":typeof Float16Array>"u"?Q:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":Iw,"%GeneratorFunction%":bo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":yo&&De?De(De([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!yo||!De?Q:De(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":sA,"%Object.getOwnPropertyDescriptor%":Fi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":uA,"%ReferenceError%":lA,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!yo||!De?Q:De(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":yo&&De?De(""[Symbol.iterator]()):Q,"%Symbol%":yo?Symbol:Q,"%SyntaxError%":wo,"%ThrowTypeError%":bA,"%TypedArray%":kA,"%TypeError%":_o,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":pA,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet,"%Function.prototype.call%":Bi,"%Function.prototype.apply%":Ow,"%Object.defineProperty%":yA,"%Object.getPrototypeOf%":_A,"%Math.abs%":dA,"%Math.floor%":mA,"%Math.max%":fA,"%Math.min%":hA,"%Math.pow%":gA,"%Math.round%":xA,"%Math.sign%":vA,"%Reflect.getPrototypeOf%":wA};if(De)try{null.error}catch(t){Ew=De(De(t)),$n["%Error.prototype%"]=Ew}var Ew,SA=function t(e){var r;if(e==="%AsyncFunction%")r=Am("async function () {}");else if(e==="%GeneratorFunction%")r=Am("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Am("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&De&&(r=De(o.prototype))}return $n[e]=r,r},Pw={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Vi=Ui(),oc=nc(),$A=Vi.call(Bi,Array.prototype.concat),zA=Vi.call(Ow,Array.prototype.splice),Rw=Vi.call(Bi,String.prototype.replace),ic=Vi.call(Bi,String.prototype.slice),TA=Vi.call(Bi,RegExp.prototype.exec),EA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,PA=/\\(\\)?/g,RA=function(e){var r=ic(e,0,1),n=ic(e,-1);if(r==="%"&&n!=="%")throw new wo("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new wo("invalid intrinsic syntax, expected opening `%`");var o=[];return Rw(e,EA,function(i,s,a,c){o[o.length]=a?Rw(c,PA,"$1"):s||i}),o},IA=function(e,r){var n=e,o;if(oc(Pw,n)&&(o=Pw[n],n="%"+o[0]+"%"),oc($n,n)){var i=$n[n];if(i===bo&&(i=SA(n)),typeof i>"u"&&!r)throw new _o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new wo("intrinsic "+e+" does not exist!")};Cw.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new _o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _o('"allowMissing" argument must be a boolean');if(TA(/^%?[^%]*%?$/,e)===null)throw new wo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=RA(e),o=n.length>0?n[0]:"",i=IA("%"+o+"%",r),s=i.name,a=i.value,c=!1,u=i.alias;u&&(o=u[0],zA(n,$A([0,1],u)));for(var l=1,p=!0;l<n.length;l+=1){var m=n[l],h=ic(m,0,1),d=ic(m,-1);if((h==='"'||h==="'"||h==="`"||d==='"'||d==="'"||d==="`")&&h!==d)throw new wo("property names with quotes must have matching quotes");if((m==="constructor"||!p)&&(c=!0),o+="."+m,s="%"+o+"%",oc($n,s))a=$n[s];else if(a!=null){if(!(m in a)){if(!r)throw new _o("base intrinsic for "+e+" exists, but the property is not available.");return}if(Fi&&l+1>=n.length){var f=Fi(a,m);p=!!f,p&&"get"in f&&!("originalValue"in f.get)?a=f.get:a=a[m]}else p=oc(a,m),a=a[m];p&&!c&&($n[s]=a)}}return a}});var Nw=w((UF,Aw)=>{"use strict";var OA=Rm();Aw.exports=function(){return OA()&&!!Symbol.toStringTag}});var Mw=w((FF,Lw)=>{"use strict";var CA=jw(),Dw=CA("%Object.defineProperty%",!0),jA=Nw()(),AA=nc(),NA=Qa(),sc=jA?Symbol.toStringTag:null;Lw.exports=function(e,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new NA("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");sc&&(n||!AA(e,sc))&&(Dw?Dw(e,sc,{configurable:!o,enumerable:!1,value:r,writable:!1}):e[sc]=r)}});var qw=w((BF,Zw)=>{"use strict";Zw.exports=function(t,e){return Object.keys(e).forEach(function(r){t[r]=t[r]||e[r]}),t}});var Fw=w((VF,Uw)=>{"use strict";var Zm=Gb(),DA=require("util"),Dm=require("path"),LA=require("http"),MA=require("https"),ZA=require("url").parse,qA=require("fs"),UA=require("stream").Stream,FA=require("crypto"),Lm=Qb(),BA=g_(),VA=Mw(),Nr=nc(),Mm=qw();function se(t){if(!(this instanceof se))return new se(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Zm.call(this),t=t||{};for(var e in t)this[e]=t[e]}DA.inherits(se,Zm);se.LINE_BREAK=`\r
10
+ `;se.DEFAULT_CONTENT_TYPE="application/octet-stream";se.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=Zm.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(t,e,r),i=this._multiPartFooter();n(o),n(e),n(i),this._trackLength(o,e,r)};se.prototype._trackLength=function(t,e,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+se.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Nr(e,"httpVersion"))&&!(e instanceof UA))&&(r.knownLength||this._valuesToMeasure.push(e))};se.prototype._lengthRetriever=function(t,e){Nr(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):qA.stat(t.path,function(r,n){if(r){e(r);return}var o=n.size-(t.start?t.start:0);e(null,o)}):Nr(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Nr(t,"httpModule")?(t.on("response",function(r){t.pause(),e(null,Number(r.headers["content-length"]))}),t.resume()):e("Unknown stream")};se.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(e,r),o=this._getContentType(e,r),i="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&Mm(s,r.header);var a;for(var c in s)if(Nr(s,c)){if(a=s[c],a==null)continue;Array.isArray(a)||(a=[a]),a.length&&(i+=c+": "+a.join("; ")+se.LINE_BREAK)}return"--"+this.getBoundary()+se.LINE_BREAK+i+se.LINE_BREAK};se.prototype._getContentDisposition=function(t,e){var r;if(typeof e.filepath=="string"?r=Dm.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?r=Dm.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Nr(t,"httpVersion")&&(r=Dm.basename(t.client._httpMessage.path||"")),r)return'filename="'+r+'"'};se.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t&&t.name&&(r=Lm.lookup(t.name)),!r&&t&&t.path&&(r=Lm.lookup(t.path)),!r&&t&&t.readable&&Nr(t,"httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=Lm.lookup(e.filepath||e.filename)),!r&&t&&typeof t=="object"&&(r=se.DEFAULT_CONTENT_TYPE),r};se.prototype._multiPartFooter=function(){return function(t){var e=se.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};se.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+se.LINE_BREAK};se.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)Nr(t,e)&&(r[e.toLowerCase()]=t[e]);return r};se.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};se.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};se.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?t=Buffer.concat([t,this._streams[r]]):t=Buffer.concat([t,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(se.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};se.prototype._generateBoundary=function(){this._boundary="--------------------------"+FA.randomBytes(12).toString("hex")};se.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};se.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};se.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(t.bind(this,null,e));return}BA.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){t(r);return}n.forEach(function(o){e+=o}),t(null,e)})};se.prototype.submit=function(t,e){var r,n,o={method:"post"};return typeof t=="string"?(t=ZA(t),n=Mm({port:t.port,path:t.pathname,host:t.hostname,protocol:t.protocol},o)):(n=Mm(t,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(t.headers),n.protocol==="https:"?r=MA.request(n):r=LA.request(n),this.getLength(function(i,s){if(i&&i!=="Unknown stream"){this._error(i);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),e){var a,c=function(u,l){return r.removeListener("error",c),r.removeListener("response",a),e.call(this,u,l)};a=c.bind(this,null),r.on("error",c),r.on("response",a)}}.bind(this)),r};se.prototype._error=function(t){this.error||(this.error=t,this.pause(),this.emit("error",t))};se.prototype.toString=function(){return"[object FormData]"};VA(se.prototype,"FormData");Uw.exports=se});var n0=w(r0=>{"use strict";var iN=require("url").parse,sN={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},aN=String.prototype.endsWith||function(t){return t.length<=this.length&&this.indexOf(t,this.length-t.length)!==-1};function cN(t){var e=typeof t=="string"?iN(t):t||{},r=e.protocol,n=e.host,o=e.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||sN[r]||0,!uN(n,o)))return"";var i=zo("npm_config_"+r+"_proxy")||zo(r+"_proxy")||zo("npm_config_proxy")||zo("all_proxy");return i&&i.indexOf("://")===-1&&(i=r+"://"+i),i}function uN(t,e){var r=(zo("npm_config_no_proxy")||zo("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),i=o?o[1]:n,s=o?parseInt(o[2]):0;return s&&s!==e?!0:/^[.*]/.test(i)?(i.charAt(0)==="*"&&(i=i.slice(1)),!aN.call(t,i)):t!==i}):!0}function zo(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}r0.getProxyForUrl=cN});var i0=w((H9,o0)=>{var To=1e3,Eo=To*60,Po=Eo*60,En=Po*24,lN=En*7,pN=En*365.25;o0.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return dN(t);if(r==="number"&&isFinite(t))return e.long?fN(t):mN(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function dN(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*pN;case"weeks":case"week":case"w":return r*lN;case"days":case"day":case"d":return r*En;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Po;case"minutes":case"minute":case"mins":case"min":case"m":return r*Eo;case"seconds":case"second":case"secs":case"sec":case"s":return r*To;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function mN(t){var e=Math.abs(t);return e>=En?Math.round(t/En)+"d":e>=Po?Math.round(t/Po)+"h":e>=Eo?Math.round(t/Eo)+"m":e>=To?Math.round(t/To)+"s":t+"ms"}function fN(t){var e=Math.abs(t);return e>=En?lc(t,e,En,"day"):e>=Po?lc(t,e,Po,"hour"):e>=Eo?lc(t,e,Eo,"minute"):e>=To?lc(t,e,To,"second"):t+" ms"}function lc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var Wm=w((G9,s0)=>{function hN(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=o,r.enabled=a,r.humanize=i0(),r.destroy=u,Object.keys(t).forEach(l=>{r[l]=t[l]}),r.names=[],r.skips=[],r.formatters={};function e(l){let p=0;for(let m=0;m<l.length;m++)p=(p<<5)-p+l.charCodeAt(m),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(l){let p,m=null,h,d;function f(...x){if(!f.enabled)return;let g=f,y=Number(new Date),b=y-(p||y);g.diff=b,g.prev=p,g.curr=y,p=y,x[0]=r.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let $=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(L,D)=>{if(L==="%%")return"%";$++;let ue=r.formatters[D];if(typeof ue=="function"){let _e=x[$];L=ue.call(g,_e),x.splice($,1),$--}return L}),r.formatArgs.call(g,x),(g.log||r.log).apply(g,x)}return f.namespace=l,f.useColors=r.useColors(),f.color=r.selectColor(l),f.extend=n,f.destroy=r.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,d=r.enabled(l)),d),set:x=>{m=x}}),typeof r.init=="function"&&r.init(f),f}function n(l,p){let m=r(this.namespace+(typeof p>"u"?":":p)+l);return m.log=this.log,m}function o(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let p=(typeof l=="string"?l:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of p)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function i(l,p){let m=0,h=0,d=-1,f=0;for(;m<l.length;)if(h<p.length&&(p[h]===l[m]||p[h]==="*"))p[h]==="*"?(d=h,f=m,h++):(m++,h++);else if(d!==-1)h=d+1,f++,m=f;else return!1;for(;h<p.length&&p[h]==="*";)h++;return h===p.length}function s(){let l=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),l}function a(l){for(let p of r.skips)if(i(l,p))return!1;for(let p of r.names)if(i(l,p))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}s0.exports=hN});var a0=w((mt,pc)=>{mt.formatArgs=xN;mt.save=vN;mt.load=yN;mt.useColors=gN;mt.storage=bN();mt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();mt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function gN(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xN(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+pc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}mt.log=console.debug||console.log||(()=>{});function vN(t){try{t?mt.storage.setItem("debug",t):mt.storage.removeItem("debug")}catch{}}function yN(){let t;try{t=mt.storage.getItem("debug")||mt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function bN(){try{return localStorage}catch{}}pc.exports=Wm()(mt);var{formatters:_N}=pc.exports;_N.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var u0=w((J9,c0)=>{"use strict";c0.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),o=e.indexOf("--");return n!==-1&&(o===-1||n<o)}});var d0=w((W9,p0)=>{"use strict";var wN=require("os"),l0=require("tty"),Et=u0(),{env:Le}=process,Mr;Et("no-color")||Et("no-colors")||Et("color=false")||Et("color=never")?Mr=0:(Et("color")||Et("colors")||Et("color=true")||Et("color=always"))&&(Mr=1);"FORCE_COLOR"in Le&&(Le.FORCE_COLOR==="true"?Mr=1:Le.FORCE_COLOR==="false"?Mr=0:Mr=Le.FORCE_COLOR.length===0?1:Math.min(parseInt(Le.FORCE_COLOR,10),3));function Km(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ym(t,e){if(Mr===0)return 0;if(Et("color=16m")||Et("color=full")||Et("color=truecolor"))return 3;if(Et("color=256"))return 2;if(t&&!e&&Mr===void 0)return 0;let r=Mr||0;if(Le.TERM==="dumb")return r;if(process.platform==="win32"){let n=wN.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Le)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Le)||Le.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Le)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Le.TEAMCITY_VERSION)?1:0;if(Le.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Le){let n=parseInt((Le.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Le.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Le.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Le.TERM)||"COLORTERM"in Le?1:r}function kN(t){let e=Ym(t,t&&t.isTTY);return Km(e)}p0.exports={supportsColor:kN,stdout:Km(Ym(!0,l0.isatty(1))),stderr:Km(Ym(!0,l0.isatty(2)))}});var f0=w((Me,mc)=>{var SN=require("tty"),dc=require("util");Me.init=IN;Me.log=EN;Me.formatArgs=zN;Me.save=PN;Me.load=RN;Me.useColors=$N;Me.destroy=dc.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Me.colors=[6,2,3,4,5,1];try{let t=d0();t&&(t.stderr||t).level>=2&&(Me.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Me.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function $N(){return"colors"in Me.inspectOpts?!!Me.inspectOpts.colors:SN.isatty(process.stderr.fd)}function zN(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
11
11
  `).join(`
12
- `+i),t.push(o+"m+"+dc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=_N()+e+" "+t[0]}function _N(){return Ne.inspectOpts.hideDate?"":new Date().toISOString()+" "}function wN(...t){return process.stderr.write(pc.formatWithOptions(Ne.inspectOpts,...t)+`
13
- `)}function kN(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $N(){return process.env.DEBUG}function SN(t){t.inspectOpts={};let e=Object.keys(Ne.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ne.inspectOpts[e[r]]}dc.exports=Fm()(Ne);var{formatters:s0}=dc.exports;s0.o=function(t){return this.inspectOpts.colors=this.useColors,pc.inspect(t,this.inspectOpts).split(`
14
- `).map(e=>e.trim()).join(" ")};s0.O=function(t){return this.inspectOpts.colors=this.useColors,pc.inspect(t,this.inspectOpts)}});var mc=w((N9,Hm)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Hm.exports=e0():Hm.exports=a0()});var u0=w((Z9,c0)=>{var Gi;c0.exports=function(){if(!Gi){try{Gi=mc()("follow-redirects")}catch{}typeof Gi!="function"&&(Gi=function(){})}Gi.apply(null,arguments)}});var f0=w((M9,of)=>{var Wi=require("url"),Ji=Wi.URL,zN=require("http"),EN=require("https"),Ym=require("stream").Writable,Xm=require("assert"),l0=u0();(function(){var e=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=Tn(Error.captureStackTrace);!e&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Qm=!1;try{Xm(new Ji(""))}catch(t){Qm=t.code==="ERR_INVALID_URL"}var TN=["Authorization","Proxy-Authorization","Cookie"],PN=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ef=["abort","aborted","connect","error","socket","timeout"],tf=Object.create(null);ef.forEach(function(t){tf[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Jm=Ki("ERR_INVALID_URL","Invalid URL",TypeError),Wm=Ki("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),RN=Ki("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Wm),CN=Ki("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),IN=Ki("ERR_STREAM_WRITE_AFTER_END","write after end"),ON=Ym.prototype.destroy||d0;function mt(t,e){Ym.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof Wm?o:new Wm({cause:o}))}},this._headerFilter=new RegExp("^(?:"+TN.concat(t.sensitiveHeaders).map(qN).join("|")+")$","i"),this._performRequest()}mt.prototype=Object.create(Ym.prototype);mt.prototype.abort=function(){nf(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};mt.prototype.destroy=function(t){return nf(this._currentRequest,t),ON.call(this,t),this};mt.prototype.write=function(t,e,r){if(this._ending)throw new IN;if(!En(t)&&!ZN(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Tn(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new CN),this.abort())};mt.prototype.end=function(t,e,r){if(Tn(t)?(r=t,t=e=null):Tn(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(t,e,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};mt.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};mt.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};mt.prototype.setTimeout=function(t,e){var r=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),i()},t),n(s)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",i),r.removeListener("error",i),r.removeListener("response",i),r.removeListener("close",i),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",o)}return e&&this.on("timeout",e),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){mt.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(mt.prototype,t,{get:function(){return this._currentRequest[t]}})});mt.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),NN(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};mt.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of ef)n.on(o,tf[o]);if(this._currentUrl=/^\//.test(this._options.path)?Wi.format(this._options):this._options.path,this._isRedirect){var i=0,s=this,a=this._requestBodyBuffers;(function c(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(i<a.length){var l=a[i++];n.finished||n.write(l.data,l.encoding,c)}else s._ended&&n.end()})()}};mt.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(nf(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new RN;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var i=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Gm(/^content-/i,this._options.headers));var s=Gm(/^host$/i,this._options.headers),a=rf(this._currentUrl),c=s||a.host,u=/^\w+:/.test(r)?this._currentUrl:Wi.format(Object.assign(a,{host:c})),l=jN(r,u);if(l0("redirecting to",l.href),this._isRedirect=!0,Km(l,this._options),(l.protocol!==a.protocol&&l.protocol!=="https:"||l.host!==c&&!AN(l.host,c))&&Gm(this._headerFilter,this._options.headers),Tn(o)){var p={headers:t.headers,statusCode:e},m={url:u,method:i,headers:n};o(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()};function p0(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var o=n+":",i=r[o]=t[n],s=e[n]=Object.create(i);function a(u,l,p){return MN(u)?u=Km(u):En(u)?u=Km(rf(u)):(p=l,l=m0(u),u={protocol:o}),Tn(l)&&(p=l,l=null),l=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,l),l.nativeProtocols=r,!En(l.host)&&!En(l.hostname)&&(l.hostname="::1"),Xm.equal(l.protocol,o,"protocol mismatch"),l0("options",l),new mt(l,p)}function c(u,l,p){var m=s.request(u,l,p);return m.end(),m}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function d0(){}function rf(t){var e;if(Qm)e=new Ji(t);else if(e=m0(Wi.parse(t)),!En(e.protocol))throw new Jm({input:t});return e}function jN(t,e){return Qm?new Ji(t,e):rf(Wi.resolve(e,t))}function m0(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Jm({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Jm({input:t.href||t});return t}function Km(t,e){var r=e||{};for(var n of PN)r[n]=t[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function Gm(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Ki(t,e,r){function n(o){Tn(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function nf(t,e){for(var r of ef)t.removeListener(r,tf[r]);t.on("error",d0),t.destroy(e)}function AN(t,e){Xm(En(t)&&En(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function NN(t){return t instanceof Array}function En(t){return typeof t=="string"||t instanceof String}function Tn(t){return typeof t=="function"}function ZN(t){return typeof t=="object"&&"length"in t}function MN(t){return Ji&&t instanceof Ji}function qN(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}of.exports=p0({http:zN,https:EN});of.exports.wrap=p0});var ee={};Ac(ee,{BRAND:()=>qk,DIRTY:()=>Ur,EMPTY_PATH:()=>xk,INVALID:()=>q,NEVER:()=>w$,OK:()=>He,ParseStatus:()=>Ze,Schema:()=>G,ZodAny:()=>gr,ZodArray:()=>or,ZodBigInt:()=>Br,ZodBoolean:()=>Vr,ZodBranded:()=>jo,ZodCatch:()=>rn,ZodDate:()=>Hr,ZodDefault:()=>tn,ZodDiscriminatedUnion:()=>as,ZodEffects:()=>yt,ZodEnum:()=>Qr,ZodError:()=>nt,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>us,ZodIntersection:()=>Kr,ZodIssueCode:()=>z,ZodLazy:()=>Yr,ZodLiteral:()=>Xr,ZodMap:()=>Zn,ZodNaN:()=>qn,ZodNativeEnum:()=>en,ZodNever:()=>Ct,ZodNull:()=>Jr,ZodNullable:()=>Vt,ZodNumber:()=>Fr,ZodObject:()=>it,ZodOptional:()=>ot,ZodParsedType:()=>P,ZodPipeline:()=>Ao,ZodPromise:()=>xr,ZodReadonly:()=>nn,ZodRecord:()=>cs,ZodSchema:()=>G,ZodSet:()=>Mn,ZodString:()=>hr,ZodSymbol:()=>An,ZodTransformer:()=>yt,ZodTuple:()=>Bt,ZodType:()=>G,ZodUndefined:()=>Gr,ZodUnion:()=>Wr,ZodUnknown:()=>nr,ZodVoid:()=>Nn,addIssueToContext:()=>T,any:()=>Jk,array:()=>Xk,bigint:()=>Fk,boolean:()=>Nf,coerce:()=>_$,custom:()=>Of,date:()=>Bk,datetimeRegex:()=>Cf,defaultErrorMap:()=>tr,discriminatedUnion:()=>t$,effect:()=>m$,enum:()=>l$,function:()=>a$,getErrorMap:()=>In,getParsedType:()=>Ft,instanceof:()=>Lk,intersection:()=>r$,isAborted:()=>is,isAsync:()=>On,isDirty:()=>ss,isValid:()=>fr,late:()=>Dk,lazy:()=>c$,literal:()=>u$,makeIssue:()=>Oo,map:()=>i$,nan:()=>Uk,nativeEnum:()=>p$,never:()=>Kk,null:()=>Gk,nullable:()=>h$,number:()=>Af,object:()=>qc,objectUtil:()=>Nc,oboolean:()=>b$,onumber:()=>y$,optional:()=>f$,ostring:()=>v$,pipeline:()=>x$,preprocess:()=>g$,promise:()=>d$,quotelessJson:()=>fk,record:()=>o$,set:()=>s$,setErrorMap:()=>gk,strictObject:()=>Qk,string:()=>jf,symbol:()=>Vk,transformer:()=>m$,tuple:()=>n$,undefined:()=>Hk,union:()=>e$,unknown:()=>Wk,util:()=>Y,void:()=>Yk});var Y;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function r(o){throw new Error}t.assertNever=r,t.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},t.getValidEnumValues=o=>{let i=t.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return t.objectValues(s)},t.objectValues=o=>t.objectKeys(o).map(function(i){return o[i]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},t.find=(o,i)=>{for(let s of o)if(i(s))return s},t.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)}t.joinValues=n,t.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Y||(Y={}));var Nc;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Nc||(Nc={}));var P=Y.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ft=t=>{switch(typeof t){case"undefined":return P.undefined;case"string":return P.string;case"number":return Number.isNaN(t)?P.nan:P.number;case"boolean":return P.boolean;case"function":return P.function;case"bigint":return P.bigint;case"symbol":return P.symbol;case"object":return Array.isArray(t)?P.array:t===null?P.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?P.promise:typeof Map<"u"&&t instanceof Map?P.map:typeof Set<"u"&&t instanceof Set?P.set:typeof Date<"u"&&t instanceof Date?P.date:P.object;default:return P.unknown}};var z=Y.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"]),fk=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),nt=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(i){return i.message},n={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)n._errors.push(r(s));else{let a=n,c=0;for(;c<s.path.length;){let u=s.path[c];c===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(s))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return o(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Y.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];r[i]=r[i]||[],r[i].push(e(o))}else n.push(e(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};nt.create=t=>new nt(t);var hk=(t,e)=>{let r;switch(t.code){case z.invalid_type:t.received===P.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case z.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Y.jsonStringifyReplacer)}`;break;case z.unrecognized_keys:r=`Unrecognized key(s) in object: ${Y.joinValues(t.keys,", ")}`;break;case z.invalid_union:r="Invalid input";break;case z.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Y.joinValues(t.options)}`;break;case z.invalid_enum_value:r=`Invalid enum value. Expected ${Y.joinValues(t.options)}, received '${t.received}'`;break;case z.invalid_arguments:r="Invalid function arguments";break;case z.invalid_return_type:r="Invalid function return type";break;case z.invalid_date:r="Invalid date";break;case z.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Y.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case z.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case z.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case z.custom:r="Invalid input";break;case z.invalid_intersection_types:r="Intersection results could not be merged";break;case z.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case z.not_finite:r="Number must be finite";break;default:r=e.defaultError,Y.assertNever(t)}return{message:r}},tr=hk;var zf=tr;function gk(t){zf=t}function In(){return zf}var Oo=t=>{let{data:e,path:r,errorMaps:n,issueData:o}=t,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:e,defaultError:a}).message;return{...o,path:i,message:a}},xk=[];function T(t,e){let r=In(),n=Oo({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===tr?void 0:tr].filter(o=>!!o)});t.common.issues.push(n)}var Ze=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let o of r){if(o.status==="aborted")return q;o.status==="dirty"&&e.dirty(),n.push(o.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let o of r){let i=await o.key,s=await o.value;n.push({key:i,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let o of r){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return q;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}},q=Object.freeze({status:"aborted"}),Ur=t=>({status:"dirty",value:t}),He=t=>({status:"valid",value:t}),is=t=>t.status==="aborted",ss=t=>t.status==="dirty",fr=t=>t.status==="valid",On=t=>typeof Promise<"u"&&t instanceof Promise;var I;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(I||(I={}));var vt=class{constructor(e,r,n,o){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Ef=(t,e)=>{if(fr(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new nt(t.common.issues);return this._error=r,this._error}}};function V(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:o}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(s,a)=>{let{message:c}=t;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:o}}var G=class{get description(){return this._def.description}_getType(e){return Ft(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ft(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ze,ctx:{common:e.parent.common,data:e.data,parsedType:Ft(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(On(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ft(e)},o=this._parseSync({data:e,path:n.path,parent:n});return Ef(n,o)}"~validate"(e){var n,o;let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ft(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:r});return fr(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(o=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>fr(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ft(e)},o=this._parse({data:e,path:n.path,parent:n}),i=await(On(o)?o:Promise.resolve(o));return Ef(n,i)}refine(e,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,i)=>{let s=e(o),a=()=>i.addIssue({code:z.custom,...n(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,o)=>e(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(e){return new yt({schema:this,typeName:E.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:r=>this["~validate"](r)}}optional(){return ot.create(this,this._def)}nullable(){return Vt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return or.create(this)}promise(){return xr.create(this,this._def)}or(e){return Wr.create([this,e],this._def)}and(e){return Kr.create(this,e,this._def)}transform(e){return new yt({...V(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new tn({...V(this._def),innerType:this,defaultValue:r,typeName:E.ZodDefault})}brand(){return new jo({typeName:E.ZodBranded,type:this,...V(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new rn({...V(this._def),innerType:this,catchValue:r,typeName:E.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Ao.create(this,e)}readonly(){return nn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},vk=/^c[^\s-]{8,}$/i,yk=/^[0-9a-z]+$/,bk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_k=/^[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,wk=/^[a-z0-9_-]{21}$/i,kk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$k=/^[-+]?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)?)??$/,Sk=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Zc,Ek=/^(?:(?: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])$/,Tk=/^(?:(?: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])$/,Pk=/^(([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]))$/,Rk=/^(([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])$/,Ck=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ik=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Pf="((\\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])))",Ok=new RegExp(`^${Pf}$`);function Rf(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function jk(t){return new RegExp(`^${Rf(t)}$`)}function Cf(t){let e=`${Pf}T${Rf(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Ak(t,e){return!!((e==="v4"||!e)&&Ek.test(t)||(e==="v6"||!e)&&Pk.test(t))}function Nk(t,e){if(!kk.test(t))return!1;try{let[r]=t.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));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function Zk(t,e){return!!((e==="v4"||!e)&&Tk.test(t)||(e==="v6"||!e)&&Rk.test(t))}var hr=class t extends G{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==P.string){let i=this._getOrReturnCtx(e);return T(i,{code:z.invalid_type,expected:P.string,received:i.parsedType}),q}let n=new Ze,o;for(let i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(o=this._getOrReturnCtx(e,o),T(o,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(o=this._getOrReturnCtx(e,o),T(o,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,a=e.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(e,o),s?T(o,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&T(o,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")Sk.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"email",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")Zc||(Zc=new RegExp(zk,"u")),Zc.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"emoji",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")_k.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"uuid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")wk.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"nanoid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")vk.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"cuid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")yk.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"cuid2",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")bk.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"ulid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),T(o,{validation:"url",code:z.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"regex",code:z.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(e,o),T(o,{code:z.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(o=this._getOrReturnCtx(e,o),T(o,{code:z.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(o=this._getOrReturnCtx(e,o),T(o,{code:z.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?Cf(i).test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{code:z.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?Ok.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{code:z.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?jk(i).test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{code:z.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?$k.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"duration",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?Ak(e.data,i.version)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"ip",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?Nk(e.data,i.alg)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"jwt",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?Zk(e.data,i.version)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"cidr",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?Ck.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"base64",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?Ik.test(e.data)||(o=this._getOrReturnCtx(e,o),T(o,{validation:"base64url",code:z.invalid_string,message:i.message}),n.dirty()):Y.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(o=>e.test(o),{validation:r,code:z.invalid_string,...I.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...I.errToObj(e)})}url(e){return this._addCheck({kind:"url",...I.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...I.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...I.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...I.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...I.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...I.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...I.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...I.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...I.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...I.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...I.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...I.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...I.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...I.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...I.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...I.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...I.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...I.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...I.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...I.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...I.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...I.errToObj(r)})}nonempty(e){return this.min(1,I.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...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 r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};hr.create=t=>new hr({checks:[],typeName:E.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...V(t)});function Mk(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(t.toFixed(o).replace(".","")),s=Number.parseInt(e.toFixed(o).replace(".",""));return i%s/10**o}var Fr=class t extends G{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)),this._getType(e)!==P.number){let i=this._getOrReturnCtx(e);return T(i,{code:z.invalid_type,expected:P.number,received:i.parsedType}),q}let n,o=new Ze;for(let i of this._def.checks)i.kind==="int"?Y.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),T(n,{code:z.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),T(n,{code:z.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),T(n,{code:z.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?Mk(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),T(n,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),T(n,{code:z.not_finite,message:i.message}),o.dirty()):Y.assertNever(i);return{status:o.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,I.toString(r))}gt(e,r){return this.setLimit("min",e,!1,I.toString(r))}lte(e,r){return this.setLimit("max",e,!0,I.toString(r))}lt(e,r){return this.setLimit("max",e,!1,I.toString(r))}setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:I.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:I.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:I.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:I.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:I.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:I.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Y.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Fr.create=t=>new Fr({checks:[],typeName:E.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...V(t)});var Br=class t extends G{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)!==P.bigint)return this._getInvalidInput(e);let n,o=new Ze;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),T(n,{code:z.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),T(n,{code:z.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),T(n,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Y.assertNever(i);return{status:o.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return T(r,{code:z.invalid_type,expected:P.bigint,received:r.parsedType}),q}gte(e,r){return this.setLimit("min",e,!0,I.toString(r))}gt(e,r){return this.setLimit("min",e,!1,I.toString(r))}lte(e,r){return this.setLimit("max",e,!0,I.toString(r))}lt(e,r){return this.setLimit("max",e,!1,I.toString(r))}setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:I.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:I.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:I.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:I.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:I.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:I.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Br.create=t=>new Br({checks:[],typeName:E.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...V(t)});var Vr=class extends G{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==P.boolean){let n=this._getOrReturnCtx(e);return T(n,{code:z.invalid_type,expected:P.boolean,received:n.parsedType}),q}return He(e.data)}};Vr.create=t=>new Vr({typeName:E.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...V(t)});var Hr=class t extends G{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==P.date){let i=this._getOrReturnCtx(e);return T(i,{code:z.invalid_type,expected:P.date,received:i.parsedType}),q}if(Number.isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return T(i,{code:z.invalid_date}),q}let n=new Ze,o;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(o=this._getOrReturnCtx(e,o),T(o,{code:z.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(o=this._getOrReturnCtx(e,o),T(o,{code:z.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):Y.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:I.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:I.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Hr.create=t=>new Hr({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:E.ZodDate,...V(t)});var An=class extends G{_parse(e){if(this._getType(e)!==P.symbol){let n=this._getOrReturnCtx(e);return T(n,{code:z.invalid_type,expected:P.symbol,received:n.parsedType}),q}return He(e.data)}};An.create=t=>new An({typeName:E.ZodSymbol,...V(t)});var Gr=class extends G{_parse(e){if(this._getType(e)!==P.undefined){let n=this._getOrReturnCtx(e);return T(n,{code:z.invalid_type,expected:P.undefined,received:n.parsedType}),q}return He(e.data)}};Gr.create=t=>new Gr({typeName:E.ZodUndefined,...V(t)});var Jr=class extends G{_parse(e){if(this._getType(e)!==P.null){let n=this._getOrReturnCtx(e);return T(n,{code:z.invalid_type,expected:P.null,received:n.parsedType}),q}return He(e.data)}};Jr.create=t=>new Jr({typeName:E.ZodNull,...V(t)});var gr=class extends G{constructor(){super(...arguments),this._any=!0}_parse(e){return He(e.data)}};gr.create=t=>new gr({typeName:E.ZodAny,...V(t)});var nr=class extends G{constructor(){super(...arguments),this._unknown=!0}_parse(e){return He(e.data)}};nr.create=t=>new nr({typeName:E.ZodUnknown,...V(t)});var Ct=class extends G{_parse(e){let r=this._getOrReturnCtx(e);return T(r,{code:z.invalid_type,expected:P.never,received:r.parsedType}),q}};Ct.create=t=>new Ct({typeName:E.ZodNever,...V(t)});var Nn=class extends G{_parse(e){if(this._getType(e)!==P.undefined){let n=this._getOrReturnCtx(e);return T(n,{code:z.invalid_type,expected:P.void,received:n.parsedType}),q}return He(e.data)}};Nn.create=t=>new Nn({typeName:E.ZodVoid,...V(t)});var or=class t extends G{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),o=this._def;if(r.parsedType!==P.array)return T(r,{code:z.invalid_type,expected:P.array,received:r.parsedType}),q;if(o.exactLength!==null){let s=r.data.length>o.exactLength.value,a=r.data.length<o.exactLength.value;(s||a)&&(T(r,{code:s?z.too_big:z.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),n.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(T(r,{code:z.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),n.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(T(r,{code:z.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,a)=>o.type._parseAsync(new vt(r,s,r.path,a)))).then(s=>Ze.mergeArray(n,s));let i=[...r.data].map((s,a)=>o.type._parseSync(new vt(r,s,r.path,a)));return Ze.mergeArray(n,i)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:I.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:I.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:I.toString(r)}})}nonempty(e){return this.min(1,e)}};or.create=(t,e)=>new or({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...V(e)});function jn(t){if(t instanceof it){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=ot.create(jn(n))}return new it({...t._def,shape:()=>e})}else return t instanceof or?new or({...t._def,type:jn(t.element)}):t instanceof ot?ot.create(jn(t.unwrap())):t instanceof Vt?Vt.create(jn(t.unwrap())):t instanceof Bt?Bt.create(t.items.map(e=>jn(e))):t}var it=class t extends G{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(),r=Y.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==P.object){let u=this._getOrReturnCtx(e);return T(u,{code:z.invalid_type,expected:P.object,received:u.parsedType}),q}let{status:n,ctx:o}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ct&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||a.push(u);let c=[];for(let u of s){let l=i[u],p=o.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new vt(o,p,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Ct){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:o.data[l]}});else if(u==="strict")a.length>0&&(T(o,{code:z.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let p=o.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new vt(o,p,o.path,l)),alwaysSet:l in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let p=await l.key,m=await l.value;u.push({key:p,value:m,alwaysSet:l.alwaysSet})}return u}).then(u=>Ze.mergeObjectSync(n,u)):Ze.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return I.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s;let o=((s=(i=this._def).errorMap)==null?void 0:s.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:I.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of Y.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of Y.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return jn(this)}partial(e){let r={};for(let n of Y.objectKeys(this.shape)){let o=this.shape[n];e&&!e[n]?r[n]=o:r[n]=o.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of Y.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof ot;)i=i._def.innerType;r[n]=i}return new t({...this._def,shape:()=>r})}keyof(){return If(Y.objectKeys(this.shape))}};it.create=(t,e)=>new it({shape:()=>t,unknownKeys:"strip",catchall:Ct.create(),typeName:E.ZodObject,...V(e)});it.strictCreate=(t,e)=>new it({shape:()=>t,unknownKeys:"strict",catchall:Ct.create(),typeName:E.ZodObject,...V(e)});it.lazycreate=(t,e)=>new it({shape:t,unknownKeys:"strip",catchall:Ct.create(),typeName:E.ZodObject,...V(e)});var Wr=class extends G{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new nt(a.ctx.common.issues));return T(r,{code:z.invalid_union,unionErrors:s}),q}if(r.common.async)return Promise.all(n.map(async i=>{let s={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(c=>new nt(c));return T(r,{code:z.invalid_union,unionErrors:a}),q}}get options(){return this._def.options}};Wr.create=(t,e)=>new Wr({options:t,typeName:E.ZodUnion,...V(e)});var rr=t=>t instanceof Yr?rr(t.schema):t instanceof yt?rr(t.innerType()):t instanceof Xr?[t.value]:t instanceof Qr?t.options:t instanceof en?Y.objectValues(t.enum):t instanceof tn?rr(t._def.innerType):t instanceof Gr?[void 0]:t instanceof Jr?[null]:t instanceof ot?[void 0,...rr(t.unwrap())]:t instanceof Vt?[null,...rr(t.unwrap())]:t instanceof jo||t instanceof nn?rr(t.unwrap()):t instanceof rn?rr(t._def.innerType):[],as=class t extends G{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==P.object)return T(r,{code:z.invalid_type,expected:P.object,received:r.parsedType}),q;let n=this.discriminator,o=r.data[n],i=this.optionsMap.get(o);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(T(r,{code:z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),q)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let o=new Map;for(let i of r){let s=rr(i.shape[e]);if(!s.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);o.set(a,i)}}return new t({typeName:E.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:o,...V(n)})}};function Mc(t,e){let r=Ft(t),n=Ft(e);if(t===e)return{valid:!0,data:t};if(r===P.object&&n===P.object){let o=Y.objectKeys(e),i=Y.objectKeys(t).filter(a=>o.indexOf(a)!==-1),s={...t,...e};for(let a of i){let c=Mc(t[a],e[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===P.array&&n===P.array){if(t.length!==e.length)return{valid:!1};let o=[];for(let i=0;i<t.length;i++){let s=t[i],a=e[i],c=Mc(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return r===P.date&&n===P.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Kr=class extends G{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),o=(i,s)=>{if(is(i)||is(s))return q;let a=Mc(i.value,s.value);return a.valid?((ss(i)||ss(s))&&r.dirty(),{status:r.value,value:a.data}):(T(n,{code:z.invalid_intersection_types}),q)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Kr.create=(t,e,r)=>new Kr({left:t,right:e,typeName:E.ZodIntersection,...V(r)});var Bt=class t extends G{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.array)return T(n,{code:z.invalid_type,expected:P.array,received:n.parsedType}),q;if(n.data.length<this._def.items.length)return T(n,{code:z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),q;!this._def.rest&&n.data.length>this._def.items.length&&(T(n,{code:z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((s,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new vt(n,s,n.path,a)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>Ze.mergeArray(r,s)):Ze.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Bt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bt({items:t,typeName:E.ZodTuple,rest:null,...V(e)})};var cs=class t extends G{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.object)return T(n,{code:z.invalid_type,expected:P.object,received:n.parsedType}),q;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in n.data)o.push({key:i._parse(new vt(n,a,n.path,a)),value:s._parse(new vt(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Ze.mergeObjectAsync(r,o):Ze.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof G?new t({keyType:e,valueType:r,typeName:E.ZodRecord,...V(n)}):new t({keyType:hr.create(),valueType:e,typeName:E.ZodRecord,...V(r)})}},Zn=class extends G{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.map)return T(n,{code:z.invalid_type,expected:P.map,received:n.parsedType}),q;let o=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([a,c],u)=>({key:o._parse(new vt(n,a,n.path,[u,"key"])),value:i._parse(new vt(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return q;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return q;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};Zn.create=(t,e,r)=>new Zn({valueType:e,keyType:t,typeName:E.ZodMap,...V(r)});var Mn=class t extends G{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.set)return T(n,{code:z.invalid_type,expected:P.set,received:n.parsedType}),q;let o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(T(n,{code:z.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&n.data.size>o.maxSize.value&&(T(n,{code:z.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return q;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>i._parse(new vt(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>s(c)):s(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:I.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:I.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Mn.create=(t,e)=>new Mn({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...V(e)});var us=class t extends G{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==P.function)return T(r,{code:z.invalid_type,expected:P.function,received:r.parsedType}),q;function n(a,c){return Oo({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,In(),tr].filter(u=>!!u),issueData:{code:z.invalid_arguments,argumentsError:c}})}function o(a,c){return Oo({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,In(),tr].filter(u=>!!u),issueData:{code:z.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof xr){let a=this;return He(async function(...c){let u=new nt([]),l=await a._def.args.parseAsync(c,i).catch(h=>{throw u.addIssue(n(c,h)),u}),p=await Reflect.apply(s,this,l);return await a._def.returns._def.type.parseAsync(p,i).catch(h=>{throw u.addIssue(o(p,h)),u})})}else{let a=this;return He(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new nt([n(c,u.error)]);let l=Reflect.apply(s,this,u.data),p=a._def.returns.safeParse(l,i);if(!p.success)throw new nt([o(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Bt.create(e).rest(nr.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||Bt.create([]).rest(nr.create()),returns:r||nr.create(),typeName:E.ZodFunction,...V(n)})}},Yr=class extends G{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Yr.create=(t,e)=>new Yr({getter:t,typeName:E.ZodLazy,...V(e)});var Xr=class extends G{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return T(r,{received:r.data,code:z.invalid_literal,expected:this._def.value}),q}return{status:"valid",value:e.data}}get value(){return this._def.value}};Xr.create=(t,e)=>new Xr({value:t,typeName:E.ZodLiteral,...V(e)});function If(t,e){return new Qr({values:t,typeName:E.ZodEnum,...V(e)})}var Qr=class t extends G{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return T(r,{expected:Y.joinValues(n),received:r.parsedType,code:z.invalid_type}),q}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return T(r,{received:r.data,code:z.invalid_enum_value,options:n}),q}return He(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};Qr.create=If;var en=class extends G{_parse(e){let r=Y.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==P.string&&n.parsedType!==P.number){let o=Y.objectValues(r);return T(n,{expected:Y.joinValues(o),received:n.parsedType,code:z.invalid_type}),q}if(this._cache||(this._cache=new Set(Y.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let o=Y.objectValues(r);return T(n,{received:n.data,code:z.invalid_enum_value,options:o}),q}return He(e.data)}get enum(){return this._def.values}};en.create=(t,e)=>new en({values:t,typeName:E.ZodNativeEnum,...V(e)});var xr=class extends G{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==P.promise&&r.common.async===!1)return T(r,{code:z.invalid_type,expected:P.promise,received:r.parsedType}),q;let n=r.parsedType===P.promise?r.data:Promise.resolve(r.data);return He(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};xr.create=(t,e)=>new xr({type:t,typeName:E.ZodPromise,...V(e)});var yt=class extends G{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:s=>{T(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(n.data,i);if(n.common.async)return Promise.resolve(s).then(async a=>{if(r.value==="aborted")return q;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?q:c.status==="dirty"?Ur(c.value):r.value==="dirty"?Ur(c.value):c});{if(r.value==="aborted")return q;let a=this._def.schema._parseSync({data:s,path:n.path,parent:n});return a.status==="aborted"?q:a.status==="dirty"?Ur(a.value):r.value==="dirty"?Ur(a.value):a}}if(o.type==="refinement"){let s=a=>{let c=o.refinement(a,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?q:(a.status==="dirty"&&r.dirty(),s(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?q:(a.status==="dirty"&&r.dirty(),s(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!fr(s))return q;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>fr(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:r.value,value:a})):q);Y.assertNever(o)}};yt.create=(t,e,r)=>new yt({schema:t,typeName:E.ZodEffects,effect:e,...V(r)});yt.createWithPreprocess=(t,e,r)=>new yt({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...V(r)});var ot=class extends G{_parse(e){return this._getType(e)===P.undefined?He(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ot.create=(t,e)=>new ot({innerType:t,typeName:E.ZodOptional,...V(e)});var Vt=class extends G{_parse(e){return this._getType(e)===P.null?He(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Vt.create=(t,e)=>new Vt({innerType:t,typeName:E.ZodNullable,...V(e)});var tn=class extends G{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===P.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};tn.create=(t,e)=>new tn({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...V(e)});var rn=class extends G{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return On(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new nt(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new nt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};rn.create=(t,e)=>new rn({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...V(e)});var qn=class extends G{_parse(e){if(this._getType(e)!==P.nan){let n=this._getOrReturnCtx(e);return T(n,{code:z.invalid_type,expected:P.nan,received:n.parsedType}),q}return{status:"valid",value:e.data}}};qn.create=t=>new qn({typeName:E.ZodNaN,...V(t)});var qk=Symbol("zod_brand"),jo=class extends G{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Ao=class t extends G{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?q:i.status==="dirty"?(r.dirty(),Ur(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?q:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:E.ZodPipeline})}},nn=class extends G{_parse(e){let r=this._def.innerType._parse(e),n=o=>(fr(o)&&(o.value=Object.freeze(o.value)),o);return On(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};nn.create=(t,e)=>new nn({innerType:t,typeName:E.ZodReadonly,...V(e)});function Tf(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function Of(t,e={},r){return t?gr.create().superRefine((n,o)=>{let i=t(n);if(i instanceof Promise)return i.then(s=>{if(!s){let a=Tf(e,n),c=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=Tf(e,n),a=s.fatal??r??!0;o.addIssue({code:"custom",...s,fatal:a})}}):gr.create()}var Dk={object:it.lazycreate},E;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(E||(E={}));var Lk=(t,e={message:`Input not instance of ${t.name}`})=>Of(r=>r instanceof t,e),jf=hr.create,Af=Fr.create,Uk=qn.create,Fk=Br.create,Nf=Vr.create,Bk=Hr.create,Vk=An.create,Hk=Gr.create,Gk=Jr.create,Jk=gr.create,Wk=nr.create,Kk=Ct.create,Yk=Nn.create,Xk=or.create,qc=it.create,Qk=it.strictCreate,e$=Wr.create,t$=as.create,r$=Kr.create,n$=Bt.create,o$=cs.create,i$=Zn.create,s$=Mn.create,a$=us.create,c$=Yr.create,u$=Xr.create,l$=Qr.create,p$=en.create,d$=xr.create,m$=yt.create,f$=ot.create,h$=Vt.create,g$=yt.createWithPreprocess,x$=Ao.create,v$=()=>jf().optional(),y$=()=>Af().optional(),b$=()=>Nf().optional(),_$={string:(t=>hr.create({...t,coerce:!0})),number:(t=>Fr.create({...t,coerce:!0})),boolean:(t=>Vr.create({...t,coerce:!0})),bigint:(t=>Br.create({...t,coerce:!0})),date:(t=>Hr.create({...t,coerce:!0}))};var w$=q;var k$=Object.freeze({status:"aborted"});function k(t,e,r){function n(a,c){var u;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(u=a._zod).traits??(u.traits=new Set),a._zod.traits.add(t),e(a,c);for(let l in s.prototype)l in a||Object.defineProperty(a,l,{value:s.prototype[l].bind(a)});a._zod.constr=s,a._zod.def=c}let o=(r==null?void 0:r.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:t});function s(a){var c;let u=r!=null&&r.Parent?new i:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>{var c,u;return r!=null&&r.Parent&&a instanceof r.Parent?!0:(u=(c=a==null?void 0:a._zod)==null?void 0:c.traits)==null?void 0:u.has(t)}}),Object.defineProperty(s,"name",{value:t}),s}var $$=Symbol("zod_brand"),ir=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ls={};function ht(t){return t&&Object.assign(ls,t),ls}var Q={};Ac(Q,{BIGINT_FORMAT_RANGES:()=>Mf,Class:()=>Lc,NUMBER_FORMAT_RANGES:()=>Jc,aborted:()=>sn,allowsEval:()=>Vc,assert:()=>P$,assertEqual:()=>S$,assertIs:()=>E$,assertNever:()=>T$,assertNotEqual:()=>z$,assignProp:()=>Bc,cached:()=>Mo,captureStackTrace:()=>ds,cleanEnum:()=>U$,cleanRegex:()=>Do,clone:()=>gt,createTransparentProxy:()=>A$,defineLazy:()=>fe,esc:()=>on,escapeRegex:()=>vr,extend:()=>M$,finalizeIssue:()=>It,floatSafeRemainder:()=>Fc,getElementAtPath:()=>R$,getEnumValues:()=>Zo,getLengthableOrigin:()=>Lo,getParsedType:()=>j$,getSizableOrigin:()=>qf,isObject:()=>Dn,isPlainObject:()=>Ln,issue:()=>Wc,joinValues:()=>ps,jsonStringifyReplacer:()=>Uc,merge:()=>q$,normalizeParams:()=>D,nullish:()=>qo,numKeys:()=>O$,omit:()=>Z$,optionalKeys:()=>Gc,partial:()=>D$,pick:()=>N$,prefixIssues:()=>Ht,primitiveTypes:()=>Zf,promiseAllObject:()=>C$,propertyKeyTypes:()=>Hc,randomString:()=>I$,required:()=>L$,stringifyPrimitive:()=>ms,unwrapMessage:()=>No});function S$(t){return t}function z$(t){return t}function E$(t){}function T$(t){throw new Error}function P$(t){}function Zo(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,o])=>e.indexOf(+n)===-1).map(([n,o])=>o)}function ps(t,e="|"){return t.map(r=>ms(r)).join(e)}function Uc(t,e){return typeof e=="bigint"?e.toString():e}function Mo(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function qo(t){return t==null}function Do(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Fc(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(t.toFixed(o).replace(".","")),s=Number.parseInt(e.toFixed(o).replace(".",""));return i%s/10**o}function fe(t,e,r){Object.defineProperty(t,e,{get(){{let o=r();return t[e]=o,o}throw new Error("cached value already set")},set(o){Object.defineProperty(t,e,{value:o})},configurable:!0})}function Bc(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function R$(t,e){return e?e.reduce((r,n)=>r==null?void 0:r[n],t):t}function C$(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(r).then(n=>{let o={};for(let i=0;i<e.length;i++)o[e[i]]=n[i];return o})}function I$(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}function on(t){return JSON.stringify(t)}var ds=Error.captureStackTrace?Error.captureStackTrace:(...t)=>{};function Dn(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Vc=Mo(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ln(t){if(Dn(t)===!1)return!1;let e=t.constructor;if(e===void 0)return!0;let r=e.prototype;return!(Dn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function O$(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var j$=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Hc=new Set(["string","number","symbol"]),Zf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function vr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gt(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r!=null&&r.parent)&&(n._zod.parent=t),n}function D(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function A$(t){let e;return new Proxy({},{get(r,n,o){return e??(e=t()),Reflect.get(e,n,o)},set(r,n,o,i){return e??(e=t()),Reflect.set(e,n,o,i)},has(r,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(r,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(r,n,o){return e??(e=t()),Reflect.defineProperty(e,n,o)}})}function ms(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Gc(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Jc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Mf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function N$(t,e){let r={},n=t._zod.def;for(let o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(r[o]=n.shape[o])}return gt(t,{...t._zod.def,shape:r,checks:[]})}function Z$(t,e){let r={...t._zod.def.shape},n=t._zod.def;for(let o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete r[o]}return gt(t,{...t._zod.def,shape:r,checks:[]})}function M$(t,e){if(!Ln(e))throw new Error("Invalid input to extend: expected a plain object");let r={...t._zod.def,get shape(){let n={...t._zod.def.shape,...e};return Bc(this,"shape",n),n},checks:[]};return gt(t,r)}function q$(t,e){return gt(t,{...t._zod.def,get shape(){let r={...t._zod.def.shape,...e._zod.def.shape};return Bc(this,"shape",r),r},catchall:e._zod.def.catchall,checks:[]})}function D$(t,e,r){let n=e._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in n))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t?new t({type:"optional",innerType:n[i]}):n[i])}else for(let i in n)o[i]=t?new t({type:"optional",innerType:n[i]}):n[i];return gt(e,{...e._zod.def,shape:o,checks:[]})}function L$(t,e,r){let n=e._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new t({type:"nonoptional",innerType:n[i]}))}else for(let i in n)o[i]=new t({type:"nonoptional",innerType:n[i]});return gt(e,{...e._zod.def,shape:o,checks:[]})}function sn(t,e=0){var r;for(let n=e;n<t.issues.length;n++)if(((r=t.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function Ht(t,e){return e.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function No(t){return typeof t=="string"?t:t==null?void 0:t.message}function It(t,e,r){var o,i,s,a,c,u;let n={...t,path:t.path??[]};if(!t.message){let l=No((s=(i=(o=t.inst)==null?void 0:o._zod.def)==null?void 0:i.error)==null?void 0:s.call(i,t))??No((a=e==null?void 0:e.error)==null?void 0:a.call(e,t))??No((c=r.customError)==null?void 0:c.call(r,t))??No((u=r.localeError)==null?void 0:u.call(r,t))??"Invalid input";n.message=l}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function qf(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Lo(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Wc(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}function U$(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}var Lc=class{constructor(...e){}};var Df=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),Object.defineProperty(t,"message",{get(){return JSON.stringify(e,Uc,2)},enumerable:!0}),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},fs=k("$ZodError",Df),Uo=k("$ZodError",Df,{Parent:Error});function Kc(t,e=r=>r.message){let r={},n=[];for(let o of t.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(e(o))):n.push(e(o));return{formErrors:n,fieldErrors:r}}function Yc(t,e){let r=e||function(i){return i.message},n={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a}));else if(s.code==="invalid_key")o({issues:s.issues});else if(s.code==="invalid_element")o({issues:s.issues});else if(s.path.length===0)n._errors.push(r(s));else{let a=n,c=0;for(;c<s.path.length;){let u=s.path[c];c===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(s))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return o(t),n}var Xc=t=>(e,r,n,o)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ir;if(s.issues.length){let a=new((o==null?void 0:o.Err)??t)(s.issues.map(c=>It(c,i,ht())));throw ds(a,o==null?void 0:o.callee),a}return s.value},Qc=Xc(Uo),eu=t=>async(e,r,n,o)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new((o==null?void 0:o.Err)??t)(s.issues.map(c=>It(c,i,ht())));throw ds(a,o==null?void 0:o.callee),a}return s.value},tu=eu(Uo),ru=t=>(e,r,n)=>{let o=n?{...n,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ir;return i.issues.length?{success:!1,error:new(t??fs)(i.issues.map(s=>It(s,o,ht())))}:{success:!0,data:i.value}},an=ru(Uo),nu=t=>async(e,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>It(s,o,ht())))}:{success:!0,data:i.value}},cn=nu(Uo);var Lf=/^[cC][^\s-]{8,}$/,Uf=/^[0-9a-z]+$/,Ff=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Bf=/^[0-9a-vA-V]{20}$/,Vf=/^[A-Za-z0-9]{27}$/,Hf=/^[a-zA-Z0-9_-]{21}$/,Gf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Jf=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ou=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;var Wf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var B$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Kf(){return new RegExp(B$,"u")}var Yf=/^(?:(?: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])$/,Xf=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Qf=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,eh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,th=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,iu=/^[A-Za-z0-9_-]*$/,rh=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;var nh=/^\+(?:[0-9]){6,14}[0-9]$/,oh="(?:(?:\\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])))",ih=new RegExp(`^${oh}$`);function sh(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ah(t){return new RegExp(`^${sh(t)}$`)}function ch(t){let e=sh({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-]\\d{2}:\\d{2})");let n=`${e}(?:${r.join("|")})`;return new RegExp(`^${oh}T(?:${n})$`)}var uh=t=>{let e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var lh=/^\d+$/,ph=/^-?\d+(?:\.\d+)?/i,dh=/true|false/i,mh=/null/i;var fh=/^[^A-Z]*$/,hh=/^[^a-z]*$/;var Me=k("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),gh={number:"number",bigint:"bigint",object:"date"},su=k("$ZodCheckLessThan",(t,e)=>{Me.init(t,e);let r=gh[typeof e.value];t._zod.onattach.push(n=>{let o=n._zod.bag,i=(e.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?o.maximum=e.value:o.exclusiveMaximum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:r,code:"too_big",maximum:e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),au=k("$ZodCheckGreaterThan",(t,e)=>{Me.init(t,e);let r=gh[typeof e.value];t._zod.onattach.push(n=>{let o=n._zod.bag,i=(e.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?o.minimum=e.value:o.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:r,code:"too_small",minimum:e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),xh=k("$ZodCheckMultipleOf",(t,e)=>{Me.init(t,e),t._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Fc(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),vh=k("$ZodCheckNumberFormat",(t,e)=>{var s;Me.init(t,e),e.format=e.format||"float64";let r=(s=e.format)==null?void 0:s.includes("int"),n=r?"int":"number",[o,i]=Jc[e.format];t._zod.onattach.push(a=>{let c=a._zod.bag;c.format=e.format,c.minimum=o,c.maximum=i,r&&(c.pattern=lh)}),t._zod.check=a=>{let c=a.value;if(r){if(!Number.isInteger(c)){a.issues.push({expected:n,format:e.format,code:"invalid_type",input:c,inst:t});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort});return}}c<o&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:t,continue:!e.abort}),c>i&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inst:t})}});var yh=k("$ZodCheckMaxLength",(t,e)=>{var r;Me.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!qo(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<o&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{let o=n.value;if(o.length<=e.maximum)return;let s=Lo(o);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),bh=k("$ZodCheckMinLength",(t,e)=>{var r;Me.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!qo(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>o&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let o=n.value;if(o.length>=e.minimum)return;let s=Lo(o);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),_h=k("$ZodCheckLengthEquals",(t,e)=>{var r;Me.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!qo(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=e.length,o.maximum=e.length,o.length=e.length}),t._zod.check=n=>{let o=n.value,i=o.length;if(i===e.length)return;let s=Lo(o),a=i>e.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Fo=k("$ZodCheckStringFormat",(t,e)=>{var r,n;Me.init(t,e),t._zod.onattach.push(o=>{let i=o._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:e.format,input:o.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),wh=k("$ZodCheckRegex",(t,e)=>{Fo.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),kh=k("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=fh),Fo.init(t,e)}),$h=k("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=hh),Fo.init(t,e)}),Sh=k("$ZodCheckIncludes",(t,e)=>{Me.init(t,e);let r=vr(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=o=>{o.value.includes(e.includes,e.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:o.value,inst:t,continue:!e.abort})}}),zh=k("$ZodCheckStartsWith",(t,e)=>{Me.init(t,e);let r=new RegExp(`^${vr(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),Eh=k("$ZodCheckEndsWith",(t,e)=>{Me.init(t,e);let r=new RegExp(`.*${vr(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var Th=k("$ZodCheckOverwrite",(t,e)=>{Me.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var gs=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(`
12
+ `+i),t.push(o+"m+"+mc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=TN()+e+" "+t[0]}function TN(){return Me.inspectOpts.hideDate?"":new Date().toISOString()+" "}function EN(...t){return process.stderr.write(dc.formatWithOptions(Me.inspectOpts,...t)+`
13
+ `)}function PN(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function RN(){return process.env.DEBUG}function IN(t){t.inspectOpts={};let e=Object.keys(Me.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Me.inspectOpts[e[r]]}mc.exports=Wm()(Me);var{formatters:m0}=mc.exports;m0.o=function(t){return this.inspectOpts.colors=this.useColors,dc.inspect(t,this.inspectOpts).split(`
14
+ `).map(e=>e.trim()).join(" ")};m0.O=function(t){return this.inspectOpts.colors=this.useColors,dc.inspect(t,this.inspectOpts)}});var fc=w((K9,Xm)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Xm.exports=a0():Xm.exports=f0()});var g0=w((Y9,h0)=>{var Wi;h0.exports=function(){if(!Wi){try{Wi=fc()("follow-redirects")}catch{}typeof Wi!="function"&&(Wi=function(){})}Wi.apply(null,arguments)}});var _0=w((X9,pf)=>{var Yi=require("url"),Ki=Yi.URL,ON=require("http"),CN=require("https"),nf=require("stream").Writable,of=require("assert"),x0=g0();(function(){var e=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=Rn(Error.captureStackTrace);!e&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var sf=!1;try{of(new Ki(""))}catch(t){sf=t.code==="ERR_INVALID_URL"}var jN=["Authorization","Proxy-Authorization","Cookie"],AN=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],af=["abort","aborted","connect","error","socket","timeout"],cf=Object.create(null);af.forEach(function(t){cf[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var ef=Xi("ERR_INVALID_URL","Invalid URL",TypeError),tf=Xi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),NN=Xi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",tf),DN=Xi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),LN=Xi("ERR_STREAM_WRITE_AFTER_END","write after end"),MN=nf.prototype.destroy||y0;function ft(t,e){nf.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof tf?o:new tf({cause:o}))}},this._headerFilter=new RegExp("^(?:"+jN.concat(t.sensitiveHeaders).map(VN).join("|")+")$","i"),this._performRequest()}ft.prototype=Object.create(nf.prototype);ft.prototype.abort=function(){lf(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ft.prototype.destroy=function(t){return lf(this._currentRequest,t),MN.call(this,t),this};ft.prototype.write=function(t,e,r){if(this._ending)throw new LN;if(!Pn(t)&&!FN(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Rn(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new DN),this.abort())};ft.prototype.end=function(t,e,r){if(Rn(t)?(r=t,t=e=null):Rn(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(t,e,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};ft.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};ft.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};ft.prototype.setTimeout=function(t,e){var r=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),i()},t),n(s)}function i(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",i),r.removeListener("error",i),r.removeListener("response",i),r.removeListener("close",i),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",o)}return e&&this.on("timeout",e),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){ft.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(ft.prototype,t,{get:function(){return this._currentRequest[t]}})});ft.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),UN(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};ft.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of af)n.on(o,cf[o]);if(this._currentUrl=/^\//.test(this._options.path)?Yi.format(this._options):this._options.path,this._isRedirect){var i=0,s=this,a=this._requestBodyBuffers;(function c(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(i<a.length){var l=a[i++];n.finished||n.write(l.data,l.encoding,c)}else s._ended&&n.end()})()}};ft.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(lf(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new NN;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var i=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Qm(/^content-/i,this._options.headers));var s=Qm(/^host$/i,this._options.headers),a=uf(this._currentUrl),c=s||a.host,u=/^\w+:/.test(r)?this._currentUrl:Yi.format(Object.assign(a,{host:c})),l=ZN(r,u);if(x0("redirecting to",l.href),this._isRedirect=!0,rf(l,this._options),(l.protocol!==a.protocol&&l.protocol!=="https:"||l.host!==c&&!qN(l.host,c))&&Qm(this._headerFilter,this._options.headers),Rn(o)){var p={headers:t.headers,statusCode:e},m={url:u,method:i,headers:n};o(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()};function v0(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var o=n+":",i=r[o]=t[n],s=e[n]=Object.create(i);function a(u,l,p){return BN(u)?u=rf(u):Pn(u)?u=rf(uf(u)):(p=l,l=b0(u),u={protocol:o}),Rn(l)&&(p=l,l=null),l=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,l),l.nativeProtocols=r,!Pn(l.host)&&!Pn(l.hostname)&&(l.hostname="::1"),of.equal(l.protocol,o,"protocol mismatch"),x0("options",l),new ft(l,p)}function c(u,l,p){var m=s.request(u,l,p);return m.end(),m}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function y0(){}function uf(t){var e;if(sf)e=new Ki(t);else if(e=b0(Yi.parse(t)),!Pn(e.protocol))throw new ef({input:t});return e}function ZN(t,e){return sf?new Ki(t,e):uf(Yi.resolve(e,t))}function b0(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new ef({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new ef({input:t.href||t});return t}function rf(t,e){var r=e||{};for(var n of AN)r[n]=t[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function Qm(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Xi(t,e,r){function n(o){Rn(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function lf(t,e){for(var r of af)t.removeListener(r,cf[r]);t.on("error",y0),t.destroy(e)}function qN(t,e){of(Pn(t)&&Pn(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function UN(t){return t instanceof Array}function Pn(t){return typeof t=="string"||t instanceof String}function Rn(t){return typeof t=="function"}function FN(t){return typeof t=="object"&&"length"in t}function BN(t){return Ki&&t instanceof Ki}function VN(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}pf.exports=v0({http:ON,https:CN});pf.exports.wrap=v0});var C={};qc(C,{BRAND:()=>Vk,DIRTY:()=>Br,EMPTY_PATH:()=>kk,INVALID:()=>Z,NEVER:()=>ES,OK:()=>Je,ParseStatus:()=>Ze,Schema:()=>J,ZodAny:()=>yr,ZodArray:()=>sr,ZodBigInt:()=>Hr,ZodBoolean:()=>Gr,ZodBranded:()=>No,ZodCatch:()=>on,ZodDate:()=>Jr,ZodDefault:()=>nn,ZodDiscriminatedUnion:()=>cs,ZodEffects:()=>yt,ZodEnum:()=>tn,ZodError:()=>ot,ZodFirstPartyTypeKind:()=>T,ZodFunction:()=>ls,ZodIntersection:()=>Xr,ZodIssueCode:()=>z,ZodLazy:()=>Qr,ZodLiteral:()=>en,ZodMap:()=>Zn,ZodNaN:()=>Un,ZodNativeEnum:()=>rn,ZodNever:()=>It,ZodNull:()=>Kr,ZodNullable:()=>Vt,ZodNumber:()=>Vr,ZodObject:()=>st,ZodOptional:()=>it,ZodParsedType:()=>P,ZodPipeline:()=>Do,ZodPromise:()=>br,ZodReadonly:()=>sn,ZodRecord:()=>us,ZodSchema:()=>J,ZodSet:()=>qn,ZodString:()=>vr,ZodSymbol:()=>Ln,ZodTransformer:()=>yt,ZodTuple:()=>Bt,ZodType:()=>J,ZodUndefined:()=>Wr,ZodUnion:()=>Yr,ZodUnknown:()=>ir,ZodVoid:()=>Mn,addIssueToContext:()=>E,any:()=>eS,array:()=>oS,bigint:()=>Wk,boolean:()=>Ff,coerce:()=>TS,custom:()=>Zf,date:()=>Kk,datetimeRegex:()=>Lf,defaultErrorMap:()=>nr,discriminatedUnion:()=>aS,effect:()=>yS,enum:()=>gS,function:()=>mS,getErrorMap:()=>An,getParsedType:()=>Ft,instanceof:()=>Gk,intersection:()=>cS,isAborted:()=>ss,isAsync:()=>Nn,isDirty:()=>as,isValid:()=>xr,late:()=>Hk,lazy:()=>fS,literal:()=>hS,makeIssue:()=>Ao,map:()=>pS,nan:()=>Jk,nativeEnum:()=>xS,never:()=>rS,null:()=>Qk,nullable:()=>_S,number:()=>Uf,object:()=>Vc,objectUtil:()=>Uc,oboolean:()=>zS,onumber:()=>$S,optional:()=>bS,ostring:()=>SS,pipeline:()=>kS,preprocess:()=>wS,promise:()=>vS,quotelessJson:()=>bk,record:()=>lS,set:()=>dS,setErrorMap:()=>wk,strictObject:()=>iS,string:()=>qf,symbol:()=>Yk,transformer:()=>yS,tuple:()=>uS,undefined:()=>Xk,union:()=>sS,unknown:()=>tS,util:()=>X,void:()=>nS});var X;(function(t){t.assertEqual=o=>{};function e(o){}t.assertIs=e;function r(o){throw new Error}t.assertNever=r,t.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},t.getValidEnumValues=o=>{let i=t.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return t.objectValues(s)},t.objectValues=o=>t.objectKeys(o).map(function(i){return o[i]}),t.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},t.find=(o,i)=>{for(let s of o)if(i(s))return s},t.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)}t.joinValues=n,t.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(X||(X={}));var Uc;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Uc||(Uc={}));var P=X.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ft=t=>{switch(typeof t){case"undefined":return P.undefined;case"string":return P.string;case"number":return Number.isNaN(t)?P.nan:P.number;case"boolean":return P.boolean;case"function":return P.function;case"bigint":return P.bigint;case"symbol":return P.symbol;case"object":return Array.isArray(t)?P.array:t===null?P.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?P.promise:typeof Map<"u"&&t instanceof Map?P.map:typeof Set<"u"&&t instanceof Set?P.set:typeof Date<"u"&&t instanceof Date?P.date:P.object;default:return P.unknown}};var z=X.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"]),bk=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ot=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(i){return i.message},n={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)n._errors.push(r(s));else{let a=n,c=0;for(;c<s.path.length;){let u=s.path[c];c===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(s))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return o(this),n}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,X.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];r[i]=r[i]||[],r[i].push(e(o))}else n.push(e(o));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};ot.create=t=>new ot(t);var _k=(t,e)=>{let r;switch(t.code){case z.invalid_type:t.received===P.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case z.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,X.jsonStringifyReplacer)}`;break;case z.unrecognized_keys:r=`Unrecognized key(s) in object: ${X.joinValues(t.keys,", ")}`;break;case z.invalid_union:r="Invalid input";break;case z.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${X.joinValues(t.options)}`;break;case z.invalid_enum_value:r=`Invalid enum value. Expected ${X.joinValues(t.options)}, received '${t.received}'`;break;case z.invalid_arguments:r="Invalid function arguments";break;case z.invalid_return_type:r="Invalid function return type";break;case z.invalid_date:r="Invalid date";break;case z.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:X.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case z.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case z.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case z.custom:r="Invalid input";break;case z.invalid_intersection_types:r="Intersection results could not be merged";break;case z.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case z.not_finite:r="Number must be finite";break;default:r=e.defaultError,X.assertNever(t)}return{message:r}},nr=_k;var Cf=nr;function wk(t){Cf=t}function An(){return Cf}var Ao=t=>{let{data:e,path:r,errorMaps:n,issueData:o}=t,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:e,defaultError:a}).message;return{...o,path:i,message:a}},kk=[];function E(t,e){let r=An(),n=Ao({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===nr?void 0:nr].filter(o=>!!o)});t.common.issues.push(n)}var Ze=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let o of r){if(o.status==="aborted")return Z;o.status==="dirty"&&e.dirty(),n.push(o.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let o of r){let i=await o.key,s=await o.value;n.push({key:i,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let o of r){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return Z;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}},Z=Object.freeze({status:"aborted"}),Br=t=>({status:"dirty",value:t}),Je=t=>({status:"valid",value:t}),ss=t=>t.status==="aborted",as=t=>t.status==="dirty",xr=t=>t.status==="valid",Nn=t=>typeof Promise<"u"&&t instanceof Promise;var O;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(O||(O={}));var vt=class{constructor(e,r,n,o){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},jf=(t,e)=>{if(xr(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new ot(t.common.issues);return this._error=r,this._error}}};function H(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:o}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:o}:{errorMap:(s,a)=>{let{message:c}=t;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??n??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:c??r??a.defaultError}},description:o}}var J=class{get description(){return this._def.description}_getType(e){return Ft(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Ft(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ze,ctx:{common:e.parent.common,data:e.data,parsedType:Ft(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Nn(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){let n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ft(e)},o=this._parseSync({data:e,path:n.path,parent:n});return jf(n,o)}"~validate"(e){var n,o;let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ft(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:r});return xr(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(o=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>xr(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ft(e)},o=this._parse({data:e,path:n.path,parent:n}),i=await(Nn(o)?o:Promise.resolve(o));return jf(n,i)}refine(e,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(o):r;return this._refinement((o,i)=>{let s=e(o),a=()=>i.addIssue({code:z.custom,...n(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,o)=>e(n)?!0:(o.addIssue(typeof r=="function"?r(n,o):r),!1))}_refinement(e){return new yt({schema:this,typeName:T.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:r=>this["~validate"](r)}}optional(){return it.create(this,this._def)}nullable(){return Vt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return sr.create(this)}promise(){return br.create(this,this._def)}or(e){return Yr.create([this,e],this._def)}and(e){return Xr.create(this,e,this._def)}transform(e){return new yt({...H(this._def),schema:this,typeName:T.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new nn({...H(this._def),innerType:this,defaultValue:r,typeName:T.ZodDefault})}brand(){return new No({typeName:T.ZodBranded,type:this,...H(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new on({...H(this._def),innerType:this,catchValue:r,typeName:T.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Do.create(this,e)}readonly(){return sn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Sk=/^c[^\s-]{8,}$/i,$k=/^[0-9a-z]+$/,zk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Tk=/^[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,Ek=/^[a-z0-9_-]{21}$/i,Pk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Rk=/^[-+]?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)?)??$/,Ik=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ok="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Fc,Ck=/^(?:(?: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])$/,jk=/^(?:(?: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])$/,Ak=/^(([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]))$/,Nk=/^(([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])$/,Dk=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Lk=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Nf="((\\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])))",Mk=new RegExp(`^${Nf}$`);function Df(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function Zk(t){return new RegExp(`^${Df(t)}$`)}function Lf(t){let e=`${Nf}T${Df(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function qk(t,e){return!!((e==="v4"||!e)&&Ck.test(t)||(e==="v6"||!e)&&Ak.test(t))}function Uk(t,e){if(!Pk.test(t))return!1;try{let[r]=t.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));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||e&&o.alg!==e)}catch{return!1}}function Fk(t,e){return!!((e==="v4"||!e)&&jk.test(t)||(e==="v6"||!e)&&Nk.test(t))}var vr=class t extends J{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==P.string){let i=this._getOrReturnCtx(e);return E(i,{code:z.invalid_type,expected:P.string,received:i.parsedType}),Z}let n=new Ze,o;for(let i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(o=this._getOrReturnCtx(e,o),E(o,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(o=this._getOrReturnCtx(e,o),E(o,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,a=e.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(e,o),s?E(o,{code:z.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&E(o,{code:z.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")Ik.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"email",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")Fc||(Fc=new RegExp(Ok,"u")),Fc.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"emoji",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")Tk.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"uuid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")Ek.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"nanoid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")Sk.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"cuid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")$k.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"cuid2",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")zk.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"ulid",code:z.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),E(o,{validation:"url",code:z.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"regex",code:z.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(e,o),E(o,{code:z.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(o=this._getOrReturnCtx(e,o),E(o,{code:z.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(o=this._getOrReturnCtx(e,o),E(o,{code:z.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?Lf(i).test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{code:z.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?Mk.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{code:z.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?Zk(i).test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{code:z.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?Rk.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"duration",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?qk(e.data,i.version)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"ip",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?Uk(e.data,i.alg)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"jwt",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?Fk(e.data,i.version)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"cidr",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?Dk.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"base64",code:z.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?Lk.test(e.data)||(o=this._getOrReturnCtx(e,o),E(o,{validation:"base64url",code:z.invalid_string,message:i.message}),n.dirty()):X.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(o=>e.test(o),{validation:r,code:z.invalid_string,...O.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...O.errToObj(e)})}url(e){return this._addCheck({kind:"url",...O.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...O.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...O.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...O.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...O.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...O.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...O.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...O.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...O.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...O.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...O.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...O.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...O.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...O.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...O.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...O.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...O.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...O.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...O.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...O.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...O.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...O.errToObj(r)})}nonempty(e){return this.min(1,O.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...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 r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};vr.create=t=>new vr({checks:[],typeName:T.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...H(t)});function Bk(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(t.toFixed(o).replace(".","")),s=Number.parseInt(e.toFixed(o).replace(".",""));return i%s/10**o}var Vr=class t extends J{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)),this._getType(e)!==P.number){let i=this._getOrReturnCtx(e);return E(i,{code:z.invalid_type,expected:P.number,received:i.parsedType}),Z}let n,o=new Ze;for(let i of this._def.checks)i.kind==="int"?X.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),E(n,{code:z.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),E(n,{code:z.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),E(n,{code:z.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?Bk(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),E(n,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),E(n,{code:z.not_finite,message:i.message}),o.dirty()):X.assertNever(i);return{status:o.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,O.toString(r))}gt(e,r){return this.setLimit("min",e,!1,O.toString(r))}lte(e,r){return this.setLimit("max",e,!0,O.toString(r))}lt(e,r){return this.setLimit("max",e,!1,O.toString(r))}setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:O.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:O.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:O.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:O.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:O.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:O.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:O.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:O.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:O.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:O.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&X.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Vr.create=t=>new Vr({checks:[],typeName:T.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...H(t)});var Hr=class t extends J{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)!==P.bigint)return this._getInvalidInput(e);let n,o=new Ze;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),E(n,{code:z.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),E(n,{code:z.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),E(n,{code:z.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):X.assertNever(i);return{status:o.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return E(r,{code:z.invalid_type,expected:P.bigint,received:r.parsedType}),Z}gte(e,r){return this.setLimit("min",e,!0,O.toString(r))}gt(e,r){return this.setLimit("min",e,!1,O.toString(r))}lte(e,r){return this.setLimit("max",e,!0,O.toString(r))}lt(e,r){return this.setLimit("max",e,!1,O.toString(r))}setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:O.toString(o)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:O.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:O.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:O.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:O.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:O.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Hr.create=t=>new Hr({checks:[],typeName:T.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...H(t)});var Gr=class extends J{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==P.boolean){let n=this._getOrReturnCtx(e);return E(n,{code:z.invalid_type,expected:P.boolean,received:n.parsedType}),Z}return Je(e.data)}};Gr.create=t=>new Gr({typeName:T.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...H(t)});var Jr=class t extends J{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==P.date){let i=this._getOrReturnCtx(e);return E(i,{code:z.invalid_type,expected:P.date,received:i.parsedType}),Z}if(Number.isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return E(i,{code:z.invalid_date}),Z}let n=new Ze,o;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(o=this._getOrReturnCtx(e,o),E(o,{code:z.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(o=this._getOrReturnCtx(e,o),E(o,{code:z.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):X.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:O.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:O.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Jr.create=t=>new Jr({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:T.ZodDate,...H(t)});var Ln=class extends J{_parse(e){if(this._getType(e)!==P.symbol){let n=this._getOrReturnCtx(e);return E(n,{code:z.invalid_type,expected:P.symbol,received:n.parsedType}),Z}return Je(e.data)}};Ln.create=t=>new Ln({typeName:T.ZodSymbol,...H(t)});var Wr=class extends J{_parse(e){if(this._getType(e)!==P.undefined){let n=this._getOrReturnCtx(e);return E(n,{code:z.invalid_type,expected:P.undefined,received:n.parsedType}),Z}return Je(e.data)}};Wr.create=t=>new Wr({typeName:T.ZodUndefined,...H(t)});var Kr=class extends J{_parse(e){if(this._getType(e)!==P.null){let n=this._getOrReturnCtx(e);return E(n,{code:z.invalid_type,expected:P.null,received:n.parsedType}),Z}return Je(e.data)}};Kr.create=t=>new Kr({typeName:T.ZodNull,...H(t)});var yr=class extends J{constructor(){super(...arguments),this._any=!0}_parse(e){return Je(e.data)}};yr.create=t=>new yr({typeName:T.ZodAny,...H(t)});var ir=class extends J{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Je(e.data)}};ir.create=t=>new ir({typeName:T.ZodUnknown,...H(t)});var It=class extends J{_parse(e){let r=this._getOrReturnCtx(e);return E(r,{code:z.invalid_type,expected:P.never,received:r.parsedType}),Z}};It.create=t=>new It({typeName:T.ZodNever,...H(t)});var Mn=class extends J{_parse(e){if(this._getType(e)!==P.undefined){let n=this._getOrReturnCtx(e);return E(n,{code:z.invalid_type,expected:P.void,received:n.parsedType}),Z}return Je(e.data)}};Mn.create=t=>new Mn({typeName:T.ZodVoid,...H(t)});var sr=class t extends J{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),o=this._def;if(r.parsedType!==P.array)return E(r,{code:z.invalid_type,expected:P.array,received:r.parsedType}),Z;if(o.exactLength!==null){let s=r.data.length>o.exactLength.value,a=r.data.length<o.exactLength.value;(s||a)&&(E(r,{code:s?z.too_big:z.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),n.dirty())}if(o.minLength!==null&&r.data.length<o.minLength.value&&(E(r,{code:z.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),n.dirty()),o.maxLength!==null&&r.data.length>o.maxLength.value&&(E(r,{code:z.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,a)=>o.type._parseAsync(new vt(r,s,r.path,a)))).then(s=>Ze.mergeArray(n,s));let i=[...r.data].map((s,a)=>o.type._parseSync(new vt(r,s,r.path,a)));return Ze.mergeArray(n,i)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:O.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:O.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:O.toString(r)}})}nonempty(e){return this.min(1,e)}};sr.create=(t,e)=>new sr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:T.ZodArray,...H(e)});function Dn(t){if(t instanceof st){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=it.create(Dn(n))}return new st({...t._def,shape:()=>e})}else return t instanceof sr?new sr({...t._def,type:Dn(t.element)}):t instanceof it?it.create(Dn(t.unwrap())):t instanceof Vt?Vt.create(Dn(t.unwrap())):t instanceof Bt?Bt.create(t.items.map(e=>Dn(e))):t}var st=class t extends J{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(),r=X.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==P.object){let u=this._getOrReturnCtx(e);return E(u,{code:z.invalid_type,expected:P.object,received:u.parsedType}),Z}let{status:n,ctx:o}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof It&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||a.push(u);let c=[];for(let u of s){let l=i[u],p=o.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new vt(o,p,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof It){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of a)c.push({key:{status:"valid",value:l},value:{status:"valid",value:o.data[l]}});else if(u==="strict")a.length>0&&(E(o,{code:z.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of a){let p=o.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new vt(o,p,o.path,l)),alwaysSet:l in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let p=await l.key,m=await l.value;u.push({key:p,value:m,alwaysSet:l.alwaysSet})}return u}).then(u=>Ze.mergeObjectSync(n,u)):Ze.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return O.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s;let o=((s=(i=this._def).errorMap)==null?void 0:s.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:O.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:T.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let n of X.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let n of X.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new t({...this._def,shape:()=>r})}deepPartial(){return Dn(this)}partial(e){let r={};for(let n of X.objectKeys(this.shape)){let o=this.shape[n];e&&!e[n]?r[n]=o:r[n]=o.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let n of X.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof it;)i=i._def.innerType;r[n]=i}return new t({...this._def,shape:()=>r})}keyof(){return Mf(X.objectKeys(this.shape))}};st.create=(t,e)=>new st({shape:()=>t,unknownKeys:"strip",catchall:It.create(),typeName:T.ZodObject,...H(e)});st.strictCreate=(t,e)=>new st({shape:()=>t,unknownKeys:"strict",catchall:It.create(),typeName:T.ZodObject,...H(e)});st.lazycreate=(t,e)=>new st({shape:t,unknownKeys:"strip",catchall:It.create(),typeName:T.ZodObject,...H(e)});var Yr=class extends J{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new ot(a.ctx.common.issues));return E(r,{code:z.invalid_union,unionErrors:s}),Z}if(r.common.async)return Promise.all(n.map(async i=>{let s={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(c=>new ot(c));return E(r,{code:z.invalid_union,unionErrors:a}),Z}}get options(){return this._def.options}};Yr.create=(t,e)=>new Yr({options:t,typeName:T.ZodUnion,...H(e)});var or=t=>t instanceof Qr?or(t.schema):t instanceof yt?or(t.innerType()):t instanceof en?[t.value]:t instanceof tn?t.options:t instanceof rn?X.objectValues(t.enum):t instanceof nn?or(t._def.innerType):t instanceof Wr?[void 0]:t instanceof Kr?[null]:t instanceof it?[void 0,...or(t.unwrap())]:t instanceof Vt?[null,...or(t.unwrap())]:t instanceof No||t instanceof sn?or(t.unwrap()):t instanceof on?or(t._def.innerType):[],cs=class t extends J{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==P.object)return E(r,{code:z.invalid_type,expected:P.object,received:r.parsedType}),Z;let n=this.discriminator,o=r.data[n],i=this.optionsMap.get(o);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(E(r,{code:z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Z)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let o=new Map;for(let i of r){let s=or(i.shape[e]);if(!s.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);o.set(a,i)}}return new t({typeName:T.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:o,...H(n)})}};function Bc(t,e){let r=Ft(t),n=Ft(e);if(t===e)return{valid:!0,data:t};if(r===P.object&&n===P.object){let o=X.objectKeys(e),i=X.objectKeys(t).filter(a=>o.indexOf(a)!==-1),s={...t,...e};for(let a of i){let c=Bc(t[a],e[a]);if(!c.valid)return{valid:!1};s[a]=c.data}return{valid:!0,data:s}}else if(r===P.array&&n===P.array){if(t.length!==e.length)return{valid:!1};let o=[];for(let i=0;i<t.length;i++){let s=t[i],a=e[i],c=Bc(s,a);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return r===P.date&&n===P.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Xr=class extends J{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),o=(i,s)=>{if(ss(i)||ss(s))return Z;let a=Bc(i.value,s.value);return a.valid?((as(i)||as(s))&&r.dirty(),{status:r.value,value:a.data}):(E(n,{code:z.invalid_intersection_types}),Z)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Xr.create=(t,e,r)=>new Xr({left:t,right:e,typeName:T.ZodIntersection,...H(r)});var Bt=class t extends J{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.array)return E(n,{code:z.invalid_type,expected:P.array,received:n.parsedType}),Z;if(n.data.length<this._def.items.length)return E(n,{code:z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Z;!this._def.rest&&n.data.length>this._def.items.length&&(E(n,{code:z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...n.data].map((s,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new vt(n,s,n.path,a)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>Ze.mergeArray(r,s)):Ze.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};Bt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bt({items:t,typeName:T.ZodTuple,rest:null,...H(e)})};var us=class t extends J{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.object)return E(n,{code:z.invalid_type,expected:P.object,received:n.parsedType}),Z;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in n.data)o.push({key:i._parse(new vt(n,a,n.path,a)),value:s._parse(new vt(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?Ze.mergeObjectAsync(r,o):Ze.mergeObjectSync(r,o)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof J?new t({keyType:e,valueType:r,typeName:T.ZodRecord,...H(n)}):new t({keyType:vr.create(),valueType:e,typeName:T.ZodRecord,...H(r)})}},Zn=class extends J{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.map)return E(n,{code:z.invalid_type,expected:P.map,received:n.parsedType}),Z;let o=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([a,c],u)=>({key:o._parse(new vt(n,a,n.path,[u,"key"])),value:i._parse(new vt(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Z;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Z;(u.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(u.value,l.value)}return{status:r.value,value:a}}}};Zn.create=(t,e,r)=>new Zn({valueType:e,keyType:t,typeName:T.ZodMap,...H(r)});var qn=class t extends J{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==P.set)return E(n,{code:z.invalid_type,expected:P.set,received:n.parsedType}),Z;let o=this._def;o.minSize!==null&&n.data.size<o.minSize.value&&(E(n,{code:z.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),r.dirty()),o.maxSize!==null&&n.data.size>o.maxSize.value&&(E(n,{code:z.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),r.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return Z;l.status==="dirty"&&r.dirty(),u.add(l.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>i._parse(new vt(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>s(c)):s(a)}min(e,r){return new t({...this._def,minSize:{value:e,message:O.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:O.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};qn.create=(t,e)=>new qn({valueType:t,minSize:null,maxSize:null,typeName:T.ZodSet,...H(e)});var ls=class t extends J{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==P.function)return E(r,{code:z.invalid_type,expected:P.function,received:r.parsedType}),Z;function n(a,c){return Ao({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,An(),nr].filter(u=>!!u),issueData:{code:z.invalid_arguments,argumentsError:c}})}function o(a,c){return Ao({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,An(),nr].filter(u=>!!u),issueData:{code:z.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof br){let a=this;return Je(async function(...c){let u=new ot([]),l=await a._def.args.parseAsync(c,i).catch(h=>{throw u.addIssue(n(c,h)),u}),p=await Reflect.apply(s,this,l);return await a._def.returns._def.type.parseAsync(p,i).catch(h=>{throw u.addIssue(o(p,h)),u})})}else{let a=this;return Je(function(...c){let u=a._def.args.safeParse(c,i);if(!u.success)throw new ot([n(c,u.error)]);let l=Reflect.apply(s,this,u.data),p=a._def.returns.safeParse(l,i);if(!p.success)throw new ot([o(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:Bt.create(e).rest(ir.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new t({args:e||Bt.create([]).rest(ir.create()),returns:r||ir.create(),typeName:T.ZodFunction,...H(n)})}},Qr=class extends J{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Qr.create=(t,e)=>new Qr({getter:t,typeName:T.ZodLazy,...H(e)});var en=class extends J{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return E(r,{received:r.data,code:z.invalid_literal,expected:this._def.value}),Z}return{status:"valid",value:e.data}}get value(){return this._def.value}};en.create=(t,e)=>new en({value:t,typeName:T.ZodLiteral,...H(e)});function Mf(t,e){return new tn({values:t,typeName:T.ZodEnum,...H(e)})}var tn=class t extends J{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return E(r,{expected:X.joinValues(n),received:r.parsedType,code:z.invalid_type}),Z}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),n=this._def.values;return E(r,{received:r.data,code:z.invalid_enum_value,options:n}),Z}return Je(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}};tn.create=Mf;var rn=class extends J{_parse(e){let r=X.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==P.string&&n.parsedType!==P.number){let o=X.objectValues(r);return E(n,{expected:X.joinValues(o),received:n.parsedType,code:z.invalid_type}),Z}if(this._cache||(this._cache=new Set(X.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let o=X.objectValues(r);return E(n,{received:n.data,code:z.invalid_enum_value,options:o}),Z}return Je(e.data)}get enum(){return this._def.values}};rn.create=(t,e)=>new rn({values:t,typeName:T.ZodNativeEnum,...H(e)});var br=class extends J{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==P.promise&&r.common.async===!1)return E(r,{code:z.invalid_type,expected:P.promise,received:r.parsedType}),Z;let n=r.parsedType===P.promise?r.data:Promise.resolve(r.data);return Je(n.then(o=>this._def.type.parseAsync(o,{path:r.path,errorMap:r.common.contextualErrorMap})))}};br.create=(t,e)=>new br({type:t,typeName:T.ZodPromise,...H(e)});var yt=class extends J{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===T.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:s=>{E(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(n.data,i);if(n.common.async)return Promise.resolve(s).then(async a=>{if(r.value==="aborted")return Z;let c=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return c.status==="aborted"?Z:c.status==="dirty"?Br(c.value):r.value==="dirty"?Br(c.value):c});{if(r.value==="aborted")return Z;let a=this._def.schema._parseSync({data:s,path:n.path,parent:n});return a.status==="aborted"?Z:a.status==="dirty"?Br(a.value):r.value==="dirty"?Br(a.value):a}}if(o.type==="refinement"){let s=a=>{let c=o.refinement(a,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Z:(a.status==="dirty"&&r.dirty(),s(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Z:(a.status==="dirty"&&r.dirty(),s(a.value).then(()=>({status:r.value,value:a.value}))))}if(o.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!xr(s))return Z;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>xr(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:r.value,value:a})):Z);X.assertNever(o)}};yt.create=(t,e,r)=>new yt({schema:t,typeName:T.ZodEffects,effect:e,...H(r)});yt.createWithPreprocess=(t,e,r)=>new yt({schema:e,effect:{type:"preprocess",transform:t},typeName:T.ZodEffects,...H(r)});var it=class extends J{_parse(e){return this._getType(e)===P.undefined?Je(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};it.create=(t,e)=>new it({innerType:t,typeName:T.ZodOptional,...H(e)});var Vt=class extends J{_parse(e){return this._getType(e)===P.null?Je(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Vt.create=(t,e)=>new Vt({innerType:t,typeName:T.ZodNullable,...H(e)});var nn=class extends J{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===P.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};nn.create=(t,e)=>new nn({innerType:t,typeName:T.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...H(e)});var on=class extends J{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},o=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Nn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ot(n.common.issues)},input:n.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ot(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};on.create=(t,e)=>new on({innerType:t,typeName:T.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...H(e)});var Un=class extends J{_parse(e){if(this._getType(e)!==P.nan){let n=this._getOrReturnCtx(e);return E(n,{code:z.invalid_type,expected:P.nan,received:n.parsedType}),Z}return{status:"valid",value:e.data}}};Un.create=t=>new Un({typeName:T.ZodNaN,...H(t)});var Vk=Symbol("zod_brand"),No=class extends J{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Do=class t extends J{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Z:i.status==="dirty"?(r.dirty(),Br(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let o=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?Z:o.status==="dirty"?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:n.path,parent:n})}}static create(e,r){return new t({in:e,out:r,typeName:T.ZodPipeline})}},sn=class extends J{_parse(e){let r=this._def.innerType._parse(e),n=o=>(xr(o)&&(o.value=Object.freeze(o.value)),o);return Nn(r)?r.then(o=>n(o)):n(r)}unwrap(){return this._def.innerType}};sn.create=(t,e)=>new sn({innerType:t,typeName:T.ZodReadonly,...H(e)});function Af(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function Zf(t,e={},r){return t?yr.create().superRefine((n,o)=>{let i=t(n);if(i instanceof Promise)return i.then(s=>{if(!s){let a=Af(e,n),c=a.fatal??r??!0;o.addIssue({code:"custom",...a,fatal:c})}});if(!i){let s=Af(e,n),a=s.fatal??r??!0;o.addIssue({code:"custom",...s,fatal:a})}}):yr.create()}var Hk={object:st.lazycreate},T;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(T||(T={}));var Gk=(t,e={message:`Input not instance of ${t.name}`})=>Zf(r=>r instanceof t,e),qf=vr.create,Uf=Vr.create,Jk=Un.create,Wk=Hr.create,Ff=Gr.create,Kk=Jr.create,Yk=Ln.create,Xk=Wr.create,Qk=Kr.create,eS=yr.create,tS=ir.create,rS=It.create,nS=Mn.create,oS=sr.create,Vc=st.create,iS=st.strictCreate,sS=Yr.create,aS=cs.create,cS=Xr.create,uS=Bt.create,lS=us.create,pS=Zn.create,dS=qn.create,mS=ls.create,fS=Qr.create,hS=en.create,gS=tn.create,xS=rn.create,vS=br.create,yS=yt.create,bS=it.create,_S=Vt.create,wS=yt.createWithPreprocess,kS=Do.create,SS=()=>qf().optional(),$S=()=>Uf().optional(),zS=()=>Ff().optional(),TS={string:(t=>vr.create({...t,coerce:!0})),number:(t=>Vr.create({...t,coerce:!0})),boolean:(t=>Gr.create({...t,coerce:!0})),bigint:(t=>Hr.create({...t,coerce:!0})),date:(t=>Jr.create({...t,coerce:!0}))};var ES=Z;var PS=Object.freeze({status:"aborted"});function k(t,e,r){function n(a,c){var u;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(u=a._zod).traits??(u.traits=new Set),a._zod.traits.add(t),e(a,c);for(let l in s.prototype)l in a||Object.defineProperty(a,l,{value:s.prototype[l].bind(a)});a._zod.constr=s,a._zod.def=c}let o=(r==null?void 0:r.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:t});function s(a){var c;let u=r!=null&&r.Parent?new i:this;n(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>{var c,u;return r!=null&&r.Parent&&a instanceof r.Parent?!0:(u=(c=a==null?void 0:a._zod)==null?void 0:c.traits)==null?void 0:u.has(t)}}),Object.defineProperty(s,"name",{value:t}),s}var RS=Symbol("zod_brand"),ar=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ps={};function ht(t){return t&&Object.assign(ps,t),ps}var ee={};qc(ee,{BIGINT_FORMAT_RANGES:()=>Vf,Class:()=>Gc,NUMBER_FORMAT_RANGES:()=>eu,aborted:()=>cn,allowsEval:()=>Yc,assert:()=>AS,assertEqual:()=>IS,assertIs:()=>CS,assertNever:()=>jS,assertNotEqual:()=>OS,assignProp:()=>Kc,cached:()=>Zo,captureStackTrace:()=>ms,cleanEnum:()=>JS,cleanRegex:()=>Uo,clone:()=>gt,createTransparentProxy:()=>qS,defineLazy:()=>fe,esc:()=>an,escapeRegex:()=>_r,extend:()=>BS,finalizeIssue:()=>Ot,floatSafeRemainder:()=>Wc,getElementAtPath:()=>NS,getEnumValues:()=>Mo,getLengthableOrigin:()=>Fo,getParsedType:()=>ZS,getSizableOrigin:()=>Hf,isObject:()=>Fn,isPlainObject:()=>Bn,issue:()=>tu,joinValues:()=>ds,jsonStringifyReplacer:()=>Jc,merge:()=>VS,normalizeParams:()=>q,nullish:()=>qo,numKeys:()=>MS,omit:()=>FS,optionalKeys:()=>Qc,partial:()=>HS,pick:()=>US,prefixIssues:()=>Ht,primitiveTypes:()=>Bf,promiseAllObject:()=>DS,propertyKeyTypes:()=>Xc,randomString:()=>LS,required:()=>GS,stringifyPrimitive:()=>fs,unwrapMessage:()=>Lo});function IS(t){return t}function OS(t){return t}function CS(t){}function jS(t){throw new Error}function AS(t){}function Mo(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,o])=>e.indexOf(+n)===-1).map(([n,o])=>o)}function ds(t,e="|"){return t.map(r=>fs(r)).join(e)}function Jc(t,e){return typeof e=="bigint"?e.toString():e}function Zo(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function qo(t){return t==null}function Uo(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Wc(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,o=r>n?r:n,i=Number.parseInt(t.toFixed(o).replace(".","")),s=Number.parseInt(e.toFixed(o).replace(".",""));return i%s/10**o}function fe(t,e,r){Object.defineProperty(t,e,{get(){{let o=r();return t[e]=o,o}throw new Error("cached value already set")},set(o){Object.defineProperty(t,e,{value:o})},configurable:!0})}function Kc(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function NS(t,e){return e?e.reduce((r,n)=>r==null?void 0:r[n],t):t}function DS(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(r).then(n=>{let o={};for(let i=0;i<e.length;i++)o[e[i]]=n[i];return o})}function LS(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}function an(t){return JSON.stringify(t)}var ms=Error.captureStackTrace?Error.captureStackTrace:(...t)=>{};function Fn(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Yc=Zo(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Bn(t){if(Fn(t)===!1)return!1;let e=t.constructor;if(e===void 0)return!0;let r=e.prototype;return!(Fn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function MS(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var ZS=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Xc=new Set(["string","number","symbol"]),Bf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function _r(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gt(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r!=null&&r.parent)&&(n._zod.parent=t),n}function q(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function qS(t){let e;return new Proxy({},{get(r,n,o){return e??(e=t()),Reflect.get(e,n,o)},set(r,n,o,i){return e??(e=t()),Reflect.set(e,n,o,i)},has(r,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(r,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(r,n,o){return e??(e=t()),Reflect.defineProperty(e,n,o)}})}function fs(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Qc(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var eu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Vf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function US(t,e){let r={},n=t._zod.def;for(let o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(r[o]=n.shape[o])}return gt(t,{...t._zod.def,shape:r,checks:[]})}function FS(t,e){let r={...t._zod.def.shape},n=t._zod.def;for(let o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete r[o]}return gt(t,{...t._zod.def,shape:r,checks:[]})}function BS(t,e){if(!Bn(e))throw new Error("Invalid input to extend: expected a plain object");let r={...t._zod.def,get shape(){let n={...t._zod.def.shape,...e};return Kc(this,"shape",n),n},checks:[]};return gt(t,r)}function VS(t,e){return gt(t,{...t._zod.def,get shape(){let r={...t._zod.def.shape,...e._zod.def.shape};return Kc(this,"shape",r),r},catchall:e._zod.def.catchall,checks:[]})}function HS(t,e,r){let n=e._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in n))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t?new t({type:"optional",innerType:n[i]}):n[i])}else for(let i in n)o[i]=t?new t({type:"optional",innerType:n[i]}):n[i];return gt(e,{...e._zod.def,shape:o,checks:[]})}function GS(t,e,r){let n=e._zod.def.shape,o={...n};if(r)for(let i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new t({type:"nonoptional",innerType:n[i]}))}else for(let i in n)o[i]=new t({type:"nonoptional",innerType:n[i]});return gt(e,{...e._zod.def,shape:o,checks:[]})}function cn(t,e=0){var r;for(let n=e;n<t.issues.length;n++)if(((r=t.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function Ht(t,e){return e.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(t),r})}function Lo(t){return typeof t=="string"?t:t==null?void 0:t.message}function Ot(t,e,r){var o,i,s,a,c,u;let n={...t,path:t.path??[]};if(!t.message){let l=Lo((s=(i=(o=t.inst)==null?void 0:o._zod.def)==null?void 0:i.error)==null?void 0:s.call(i,t))??Lo((a=e==null?void 0:e.error)==null?void 0:a.call(e,t))??Lo((c=r.customError)==null?void 0:c.call(r,t))??Lo((u=r.localeError)==null?void 0:u.call(r,t))??"Invalid input";n.message=l}return delete n.inst,delete n.continue,e!=null&&e.reportInput||delete n.input,n}function Hf(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Fo(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function tu(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:n}:{...e}}function JS(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}var Gc=class{constructor(...e){}};var Gf=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),Object.defineProperty(t,"message",{get(){return JSON.stringify(e,Jc,2)},enumerable:!0}),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},hs=k("$ZodError",Gf),Bo=k("$ZodError",Gf,{Parent:Error});function ru(t,e=r=>r.message){let r={},n=[];for(let o of t.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(e(o))):n.push(e(o));return{formErrors:n,fieldErrors:r}}function nu(t,e){let r=e||function(i){return i.message},n={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a}));else if(s.code==="invalid_key")o({issues:s.issues});else if(s.code==="invalid_element")o({issues:s.issues});else if(s.path.length===0)n._errors.push(r(s));else{let a=n,c=0;for(;c<s.path.length;){let u=s.path[c];c===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(s))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return o(t),n}var ou=t=>(e,r,n,o)=>{let i=n?Object.assign(n,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ar;if(s.issues.length){let a=new((o==null?void 0:o.Err)??t)(s.issues.map(c=>Ot(c,i,ht())));throw ms(a,o==null?void 0:o.callee),a}return s.value},iu=ou(Bo),su=t=>async(e,r,n,o)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new((o==null?void 0:o.Err)??t)(s.issues.map(c=>Ot(c,i,ht())));throw ms(a,o==null?void 0:o.callee),a}return s.value},au=su(Bo),cu=t=>(e,r,n)=>{let o=n?{...n,async:!1}:{async:!1},i=e._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ar;return i.issues.length?{success:!1,error:new(t??hs)(i.issues.map(s=>Ot(s,o,ht())))}:{success:!0,data:i.value}},un=cu(Bo),uu=t=>async(e,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=e._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(s=>Ot(s,o,ht())))}:{success:!0,data:i.value}},ln=uu(Bo);var Jf=/^[cC][^\s-]{8,}$/,Wf=/^[0-9a-z]+$/,Kf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Yf=/^[0-9a-vA-V]{20}$/,Xf=/^[A-Za-z0-9]{27}$/,Qf=/^[a-zA-Z0-9_-]{21}$/,eh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var th=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,lu=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;var rh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var KS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function nh(){return new RegExp(KS,"u")}var oh=/^(?:(?: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])$/,ih=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,sh=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,ah=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ch=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pu=/^[A-Za-z0-9_-]*$/,uh=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;var lh=/^\+(?:[0-9]){6,14}[0-9]$/,ph="(?:(?:\\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])))",dh=new RegExp(`^${ph}$`);function mh(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function fh(t){return new RegExp(`^${mh(t)}$`)}function hh(t){let e=mh({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-]\\d{2}:\\d{2})");let n=`${e}(?:${r.join("|")})`;return new RegExp(`^${ph}T(?:${n})$`)}var gh=t=>{let e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var xh=/^\d+$/,vh=/^-?\d+(?:\.\d+)?/i,yh=/true|false/i,bh=/null/i;var _h=/^[^A-Z]*$/,wh=/^[^a-z]*$/;var qe=k("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),kh={number:"number",bigint:"bigint",object:"date"},du=k("$ZodCheckLessThan",(t,e)=>{qe.init(t,e);let r=kh[typeof e.value];t._zod.onattach.push(n=>{let o=n._zod.bag,i=(e.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<i&&(e.inclusive?o.maximum=e.value:o.exclusiveMaximum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value<=e.value:n.value<e.value)||n.issues.push({origin:r,code:"too_big",maximum:e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),mu=k("$ZodCheckGreaterThan",(t,e)=>{qe.init(t,e);let r=kh[typeof e.value];t._zod.onattach.push(n=>{let o=n._zod.bag,i=(e.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>i&&(e.inclusive?o.minimum=e.value:o.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:r,code:"too_small",minimum:e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Sh=k("$ZodCheckMultipleOf",(t,e)=>{qe.init(t,e),t._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Wc(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),$h=k("$ZodCheckNumberFormat",(t,e)=>{var s;qe.init(t,e),e.format=e.format||"float64";let r=(s=e.format)==null?void 0:s.includes("int"),n=r?"int":"number",[o,i]=eu[e.format];t._zod.onattach.push(a=>{let c=a._zod.bag;c.format=e.format,c.minimum=o,c.maximum=i,r&&(c.pattern=xh)}),t._zod.check=a=>{let c=a.value;if(r){if(!Number.isInteger(c)){a.issues.push({expected:n,format:e.format,code:"invalid_type",input:c,inst:t});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,continue:!e.abort});return}}c<o&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:t,continue:!e.abort}),c>i&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inst:t})}});var zh=k("$ZodCheckMaxLength",(t,e)=>{var r;qe.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!qo(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<o&&(n._zod.bag.maximum=e.maximum)}),t._zod.check=n=>{let o=n.value;if(o.length<=e.maximum)return;let s=Fo(o);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Th=k("$ZodCheckMinLength",(t,e)=>{var r;qe.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!qo(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>o&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let o=n.value;if(o.length>=e.minimum)return;let s=Fo(o);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:o,inst:t,continue:!e.abort})}}),Eh=k("$ZodCheckLengthEquals",(t,e)=>{var r;qe.init(t,e),(r=t._zod.def).when??(r.when=n=>{let o=n.value;return!qo(o)&&o.length!==void 0}),t._zod.onattach.push(n=>{let o=n._zod.bag;o.minimum=e.length,o.maximum=e.length,o.length=e.length}),t._zod.check=n=>{let o=n.value,i=o.length;if(i===e.length)return;let s=Fo(o),a=i>e.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Vo=k("$ZodCheckStringFormat",(t,e)=>{var r,n;qe.init(t,e),t._zod.onattach.push(o=>{let i=o._zod.bag;i.format=e.format,e.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=o=>{e.pattern.lastIndex=0,!e.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:e.format,input:o.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(n=t._zod).check??(n.check=()=>{})}),Ph=k("$ZodCheckRegex",(t,e)=>{Vo.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Rh=k("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=_h),Vo.init(t,e)}),Ih=k("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=wh),Vo.init(t,e)}),Oh=k("$ZodCheckIncludes",(t,e)=>{qe.init(t,e);let r=_r(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=n,t._zod.onattach.push(o=>{let i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=o=>{o.value.includes(e.includes,e.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:o.value,inst:t,continue:!e.abort})}}),Ch=k("$ZodCheckStartsWith",(t,e)=>{qe.init(t,e);let r=new RegExp(`^${_r(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),jh=k("$ZodCheckEndsWith",(t,e)=>{qe.init(t,e);let r=new RegExp(`.*${_r(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var Ah=k("$ZodCheckOverwrite",(t,e)=>{qe.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var xs=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(`
15
15
  `).filter(s=>s),o=Math.min(...n.map(s=>s.length-s.trimStart().length)),i=n.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let e=Function,r=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new e(...r,o.join(`
16
- `))}};var Rh={major:4,minor:0,patch:0};var pe=k("$ZodType",(t,e)=>{var o;var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Rh;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let i of n)for(let s of i._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),(o=t._zod.deferred)==null||o.push(()=>{t._zod.run=t._zod.parse});else{let i=(s,a,c)=>{let u=sn(s),l;for(let p of a){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(u)continue;let m=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&(c==null?void 0:c.async)===!1)throw new ir;if(l||h instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(u||(u=sn(s,m)))});else{if(s.issues.length===m)continue;u||(u=sn(s,m))}}return l?l.then(()=>s):s};t._zod.run=(s,a)=>{let c=t._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new ir;return c.then(u=>i(u,n,a))}return i(c,n,a)}}t["~standard"]={validate:i=>{var s;try{let a=an(t,i);return a.success?{value:a.data}:{issues:(s=a.error)==null?void 0:s.issues}}catch{return cn(t,i).then(c=>{var u;return c.success?{value:c.data}:{issues:(u=c.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),Bo=k("$ZodString",(t,e)=>{var r;pe.init(t,e),t._zod.pattern=[...((r=t==null?void 0:t._zod.bag)==null?void 0:r.patterns)??[]].pop()??uh(t._zod.bag),t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),he=k("$ZodStringFormat",(t,e)=>{Fo.init(t,e),Bo.init(t,e)}),uu=k("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Jf),he.init(t,e)}),lu=k("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=ou(n))}else e.pattern??(e.pattern=ou());he.init(t,e)}),pu=k("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Wf),he.init(t,e)}),du=k("$ZodURL",(t,e)=>{he.init(t,e),t._zod.check=r=>{try{let n=r.value,o=new URL(n),i=o.href;e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:rh.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),!n.endsWith("/")&&i.endsWith("/")?r.value=i.slice(0,-1):r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),mu=k("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Kf()),he.init(t,e)}),fu=k("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Hf),he.init(t,e)}),hu=k("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Lf),he.init(t,e)}),gu=k("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Uf),he.init(t,e)}),xu=k("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Ff),he.init(t,e)}),vu=k("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Bf),he.init(t,e)}),yu=k("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Vf),he.init(t,e)}),Dh=k("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=ch(e)),he.init(t,e)}),Lh=k("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=ih),he.init(t,e)}),Uh=k("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=ah(e)),he.init(t,e)}),Fh=k("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Gf),he.init(t,e)}),bu=k("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Yf),he.init(t,e),t._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv4"})}),_u=k("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Xf),he.init(t,e),t._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv6"}),t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),wu=k("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Qf),he.init(t,e)}),ku=k("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=eh),he.init(t,e),t._zod.check=r=>{let[n,o]=r.value.split("/");try{if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function Bh(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var $u=k("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=th),he.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),t._zod.check=r=>{Bh(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function V$(t){if(!iu.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Bh(r)}var Su=k("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=iu),he.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),t._zod.check=r=>{V$(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),zu=k("$ZodE164",(t,e)=>{e.pattern??(e.pattern=nh),he.init(t,e)});function H$(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let o=JSON.parse(atob(n));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||e&&(!("alg"in o)||o.alg!==e))}catch{return!1}}var Eu=k("$ZodJWT",(t,e)=>{he.init(t,e),t._zod.check=r=>{H$(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}});var vs=k("$ZodNumber",(t,e)=>{pe.init(t,e),t._zod.pattern=t._zod.bag.pattern??ph,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:t,...i?{received:i}:{}}),r}}),Tu=k("$ZodNumber",(t,e)=>{vh.init(t,e),vs.init(t,e)}),Pu=k("$ZodBoolean",(t,e)=>{pe.init(t,e),t._zod.pattern=dh,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:t}),r}});var Ru=k("$ZodNull",(t,e)=>{pe.init(t,e),t._zod.pattern=mh,t._zod.values=new Set([null]),t._zod.parse=(r,n)=>{let o=r.value;return o===null||r.issues.push({expected:"null",code:"invalid_type",input:o,inst:t}),r}});var Cu=k("$ZodUnknown",(t,e)=>{pe.init(t,e),t._zod.parse=r=>r}),Iu=k("$ZodNever",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function Ch(t,e,r){t.issues.length&&e.issues.push(...Ht(r,t.issues)),e.value[r]=t.value}var Ou=k("$ZodArray",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:t}),r;r.value=Array(o.length);let i=[];for(let s=0;s<o.length;s++){let a=o[s],c=e.element._zod.run({value:a,issues:[]},n);c instanceof Promise?i.push(c.then(u=>Ch(u,r,s))):Ch(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function xs(t,e,r){t.issues.length&&e.issues.push(...Ht(r,t.issues)),e.value[r]=t.value}function Ih(t,e,r,n){t.issues.length?n[r]===void 0?r in n?e.value[r]=void 0:e.value[r]=t.value:e.issues.push(...Ht(r,t.issues)):t.value===void 0?r in n&&(e.value[r]=void 0):e.value[r]=t.value}var ys=k("$ZodObject",(t,e)=>{pe.init(t,e);let r=Mo(()=>{let p=Object.keys(e.shape);for(let h of p)if(!(e.shape[h]instanceof pe))throw new Error(`Invalid element at key "${h}": expected a Zod schema`);let m=Gc(e.shape);return{shape:e.shape,keys:p,keySet:new Set(p),numKeys:p.length,optionalKeys:new Set(m)}});fe(t._zod,"propValues",()=>{let p=e.shape,m={};for(let h in p){let d=p[h]._zod;if(d.values){m[h]??(m[h]=new Set);for(let f of d.values)m[h].add(f)}}return m});let n=p=>{let m=new gs(["shape","payload","ctx"]),h=r.value,d=y=>{let b=on(y);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};m.write("const input = payload.value;");let f=Object.create(null),x=0;for(let y of h.keys)f[y]=`key_${x++}`;m.write("const newResult = {}");for(let y of h.keys)if(h.optionalKeys.has(y)){let b=f[y];m.write(`const ${b} = ${d(y)};`);let S=on(y);m.write(`
16
+ `))}};var Dh={major:4,minor:0,patch:0};var pe=k("$ZodType",(t,e)=>{var o;var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Dh;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let i of n)for(let s of i._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),(o=t._zod.deferred)==null||o.push(()=>{t._zod.run=t._zod.parse});else{let i=(s,a,c)=>{let u=cn(s),l;for(let p of a){if(p._zod.def.when){if(!p._zod.def.when(s))continue}else if(u)continue;let m=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&(c==null?void 0:c.async)===!1)throw new ar;if(l||h instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await h,s.issues.length!==m&&(u||(u=cn(s,m)))});else{if(s.issues.length===m)continue;u||(u=cn(s,m))}}return l?l.then(()=>s):s};t._zod.run=(s,a)=>{let c=t._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new ar;return c.then(u=>i(u,n,a))}return i(c,n,a)}}t["~standard"]={validate:i=>{var s;try{let a=un(t,i);return a.success?{value:a.data}:{issues:(s=a.error)==null?void 0:s.issues}}catch{return ln(t,i).then(c=>{var u;return c.success?{value:c.data}:{issues:(u=c.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),Ho=k("$ZodString",(t,e)=>{var r;pe.init(t,e),t._zod.pattern=[...((r=t==null?void 0:t._zod.bag)==null?void 0:r.patterns)??[]].pop()??gh(t._zod.bag),t._zod.parse=(n,o)=>{if(e.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),he=k("$ZodStringFormat",(t,e)=>{Vo.init(t,e),Ho.init(t,e)}),hu=k("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=th),he.init(t,e)}),gu=k("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=lu(n))}else e.pattern??(e.pattern=lu());he.init(t,e)}),xu=k("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=rh),he.init(t,e)}),vu=k("$ZodURL",(t,e)=>{he.init(t,e),t._zod.check=r=>{try{let n=r.value,o=new URL(n),i=o.href;e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:uh.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),!n.endsWith("/")&&i.endsWith("/")?r.value=i.slice(0,-1):r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),yu=k("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=nh()),he.init(t,e)}),bu=k("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Qf),he.init(t,e)}),_u=k("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Jf),he.init(t,e)}),wu=k("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Wf),he.init(t,e)}),ku=k("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Kf),he.init(t,e)}),Su=k("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Yf),he.init(t,e)}),$u=k("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Xf),he.init(t,e)}),Gh=k("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=hh(e)),he.init(t,e)}),Jh=k("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=dh),he.init(t,e)}),Wh=k("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=fh(e)),he.init(t,e)}),Kh=k("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=eh),he.init(t,e)}),zu=k("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=oh),he.init(t,e),t._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv4"})}),Tu=k("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=ih),he.init(t,e),t._zod.onattach.push(r=>{let n=r._zod.bag;n.format="ipv6"}),t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Eu=k("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=sh),he.init(t,e)}),Pu=k("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=ah),he.init(t,e),t._zod.check=r=>{let[n,o]=r.value.split("/");try{if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function Yh(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Ru=k("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ch),he.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),t._zod.check=r=>{Yh(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function YS(t){if(!pu.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Yh(r)}var Iu=k("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=pu),he.init(t,e),t._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),t._zod.check=r=>{YS(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),Ou=k("$ZodE164",(t,e)=>{e.pattern??(e.pattern=lh),he.init(t,e)});function XS(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let o=JSON.parse(atob(n));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||e&&(!("alg"in o)||o.alg!==e))}catch{return!1}}var Cu=k("$ZodJWT",(t,e)=>{he.init(t,e),t._zod.check=r=>{XS(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}});var ys=k("$ZodNumber",(t,e)=>{pe.init(t,e),t._zod.pattern=t._zod.bag.pattern??vh,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:t,...i?{received:i}:{}}),r}}),ju=k("$ZodNumber",(t,e)=>{$h.init(t,e),ys.init(t,e)}),Au=k("$ZodBoolean",(t,e)=>{pe.init(t,e),t._zod.pattern=yh,t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:t}),r}});var Nu=k("$ZodNull",(t,e)=>{pe.init(t,e),t._zod.pattern=bh,t._zod.values=new Set([null]),t._zod.parse=(r,n)=>{let o=r.value;return o===null||r.issues.push({expected:"null",code:"invalid_type",input:o,inst:t}),r}});var Du=k("$ZodUnknown",(t,e)=>{pe.init(t,e),t._zod.parse=r=>r}),Lu=k("$ZodNever",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function Lh(t,e,r){t.issues.length&&e.issues.push(...Ht(r,t.issues)),e.value[r]=t.value}var Mu=k("$ZodArray",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:t}),r;r.value=Array(o.length);let i=[];for(let s=0;s<o.length;s++){let a=o[s],c=e.element._zod.run({value:a,issues:[]},n);c instanceof Promise?i.push(c.then(u=>Lh(u,r,s))):Lh(c,r,s)}return i.length?Promise.all(i).then(()=>r):r}});function vs(t,e,r){t.issues.length&&e.issues.push(...Ht(r,t.issues)),e.value[r]=t.value}function Mh(t,e,r,n){t.issues.length?n[r]===void 0?r in n?e.value[r]=void 0:e.value[r]=t.value:e.issues.push(...Ht(r,t.issues)):t.value===void 0?r in n&&(e.value[r]=void 0):e.value[r]=t.value}var bs=k("$ZodObject",(t,e)=>{pe.init(t,e);let r=Zo(()=>{let p=Object.keys(e.shape);for(let h of p)if(!(e.shape[h]instanceof pe))throw new Error(`Invalid element at key "${h}": expected a Zod schema`);let m=Qc(e.shape);return{shape:e.shape,keys:p,keySet:new Set(p),numKeys:p.length,optionalKeys:new Set(m)}});fe(t._zod,"propValues",()=>{let p=e.shape,m={};for(let h in p){let d=p[h]._zod;if(d.values){m[h]??(m[h]=new Set);for(let f of d.values)m[h].add(f)}}return m});let n=p=>{let m=new xs(["shape","payload","ctx"]),h=r.value,d=y=>{let b=an(y);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};m.write("const input = payload.value;");let f=Object.create(null),x=0;for(let y of h.keys)f[y]=`key_${x++}`;m.write("const newResult = {}");for(let y of h.keys)if(h.optionalKeys.has(y)){let b=f[y];m.write(`const ${b} = ${d(y)};`);let $=an(y);m.write(`
17
17
  if (${b}.issues.length) {
18
- if (input[${S}] === undefined) {
19
- if (${S} in input) {
20
- newResult[${S}] = undefined;
18
+ if (input[${$}] === undefined) {
19
+ if (${$} in input) {
20
+ newResult[${$}] = undefined;
21
21
  }
22
22
  } else {
23
23
  payload.issues = payload.issues.concat(
24
24
  ${b}.issues.map((iss) => ({
25
25
  ...iss,
26
- path: iss.path ? [${S}, ...iss.path] : [${S}],
26
+ path: iss.path ? [${$}, ...iss.path] : [${$}],
27
27
  }))
28
28
  );
29
29
  }
30
30
  } else if (${b}.value === undefined) {
31
- if (${S} in input) newResult[${S}] = undefined;
31
+ if (${$} in input) newResult[${$}] = undefined;
32
32
  } else {
33
- newResult[${S}] = ${b}.value;
33
+ newResult[${$}] = ${b}.value;
34
34
  }
35
35
  `)}else{let b=f[y];m.write(`const ${b} = ${d(y)};`),m.write(`
36
36
  if (${b}.issues.length) payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
37
37
  ...iss,
38
- path: iss.path ? [${on(y)}, ...iss.path] : [${on(y)}]
39
- })));`),m.write(`newResult[${on(y)}] = ${b}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");let g=m.compile();return(y,b)=>g(p,y,b)},o,i=Dn,s=!ls.jitless,c=s&&Vc.value,u=e.catchall,l;t._zod.parse=(p,m)=>{l??(l=r.value);let h=p.value;if(!i(h))return p.issues.push({expected:"object",code:"invalid_type",input:h,inst:t}),p;let d=[];if(s&&c&&(m==null?void 0:m.async)===!1&&m.jitless!==!0)o||(o=n(e.shape)),p=o(p,m);else{p.value={};let b=l.shape;for(let S of l.keys){let $=b[S],Z=$._zod.run({value:h[S],issues:[]},m),N=$._zod.optin==="optional"&&$._zod.optout==="optional";Z instanceof Promise?d.push(Z.then(ue=>N?Ih(ue,p,S,h):xs(ue,p,S))):N?Ih(Z,p,S,h):xs(Z,p,S)}}if(!u)return d.length?Promise.all(d).then(()=>p):p;let f=[],x=l.keySet,g=u._zod,y=g.def.type;for(let b of Object.keys(h)){if(x.has(b))continue;if(y==="never"){f.push(b);continue}let S=g.run({value:h[b],issues:[]},m);S instanceof Promise?d.push(S.then($=>xs($,p,b))):xs(S,p,b)}return f.length&&p.issues.push({code:"unrecognized_keys",keys:f,input:h,inst:t}),d.length?Promise.all(d).then(()=>p):p}});function Oh(t,e,r,n){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;return e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(i=>It(i,n,ht())))}),e}var bs=k("$ZodUnion",(t,e)=>{pe.init(t,e),fe(t._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),fe(t._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),fe(t._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),fe(t._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){let r=e.options.map(n=>n._zod.pattern);return new RegExp(`^(${r.map(n=>Do(n.source)).join("|")})$`)}}),t._zod.parse=(r,n)=>{let o=!1,i=[];for(let s of e.options){let a=s._zod.run({value:r.value,issues:[]},n);if(a instanceof Promise)i.push(a),o=!0;else{if(a.issues.length===0)return a;i.push(a)}}return o?Promise.all(i).then(s=>Oh(s,r,t,n)):Oh(i,r,t,n)}}),ju=k("$ZodDiscriminatedUnion",(t,e)=>{bs.init(t,e);let r=t._zod.parse;fe(t._zod,"propValues",()=>{let o={};for(let i of e.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let[a,c]of Object.entries(s)){o[a]||(o[a]=new Set);for(let u of c)o[a].add(u)}}return o});let n=Mo(()=>{let o=e.options,i=new Map;for(let s of o){let a=s._zod.propValues[e.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let c of a){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});t._zod.parse=(o,i)=>{let s=o.value;if(!Dn(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),o;let a=n.value.get(s==null?void 0:s[e.discriminator]);return a?a._zod.run(o,i):e.unionFallback?r(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[e.discriminator],inst:t}),o)}}),Au=k("$ZodIntersection",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=r.value,i=e.left._zod.run({value:o,issues:[]},n),s=e.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>jh(r,c,u)):jh(r,i,s)}});function cu(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Ln(t)&&Ln(e)){let r=Object.keys(e),n=Object.keys(t).filter(i=>r.indexOf(i)!==-1),o={...t,...e};for(let i of n){let s=cu(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<t.length;n++){let o=t[n],i=e[n],s=cu(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function jh(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),sn(t))return t;let n=cu(e.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return t.value=n.data,t}var Nu=k("$ZodRecord",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=r.value;if(!Ln(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:t}),r;let i=[];if(e.keyType._zod.values){let s=e.keyType._zod.values;r.value={};for(let c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){let u=e.valueType._zod.run({value:o[c],issues:[]},n);u instanceof Promise?i.push(u.then(l=>{l.issues.length&&r.issues.push(...Ht(c,l.issues)),r.value[c]=l.value})):(u.issues.length&&r.issues.push(...Ht(c,u.issues)),r.value[c]=u.value)}let a;for(let c in o)s.has(c)||(a=a??[],a.push(c));a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:a})}else{r.value={};for(let s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let a=e.keyType._zod.run({value:s,issues:[]},n);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(u=>It(u,n,ht())),input:s,path:[s],inst:t}),r.value[a.value]=a.value;continue}let c=e.valueType._zod.run({value:o[s],issues:[]},n);c instanceof Promise?i.push(c.then(u=>{u.issues.length&&r.issues.push(...Ht(s,u.issues)),r.value[a.value]=u.value})):(c.issues.length&&r.issues.push(...Ht(s,c.issues)),r.value[a.value]=c.value)}}return i.length?Promise.all(i).then(()=>r):r}});var Zu=k("$ZodEnum",(t,e)=>{pe.init(t,e);let r=Zo(e.entries);t._zod.values=new Set(r),t._zod.pattern=new RegExp(`^(${r.filter(n=>Hc.has(typeof n)).map(n=>typeof n=="string"?vr(n):n.toString()).join("|")})$`),t._zod.parse=(n,o)=>{let i=n.value;return t._zod.values.has(i)||n.issues.push({code:"invalid_value",values:r,input:i,inst:t}),n}}),Mu=k("$ZodLiteral",(t,e)=>{pe.init(t,e),t._zod.values=new Set(e.values),t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?vr(r):r?r.toString():String(r)).join("|")})$`),t._zod.parse=(r,n)=>{let o=r.value;return t._zod.values.has(o)||r.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),r}});var qu=k("$ZodTransform",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=e.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new ir;return r.value=o,r}}),Du=k("$ZodOptional",(t,e)=>{pe.init(t,e),t._zod.optin="optional",t._zod.optout="optional",fe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),fe(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Do(r.source)})?$`):void 0}),t._zod.parse=(r,n)=>e.innerType._zod.optin==="optional"?e.innerType._zod.run(r,n):r.value===void 0?r:e.innerType._zod.run(r,n)}),Lu=k("$ZodNullable",(t,e)=>{pe.init(t,e),fe(t._zod,"optin",()=>e.innerType._zod.optin),fe(t._zod,"optout",()=>e.innerType._zod.optout),fe(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Do(r.source)}|null)$`):void 0}),fe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,n)=>r.value===null?r:e.innerType._zod.run(r,n)}),Uu=k("$ZodDefault",(t,e)=>{pe.init(t,e),t._zod.optin="optional",fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(r.value===void 0)return r.value=e.defaultValue,r;let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Ah(i,e)):Ah(o,e)}});function Ah(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var Fu=k("$ZodPrefault",(t,e)=>{pe.init(t,e),t._zod.optin="optional",fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>(r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,n))}),Bu=k("$ZodNonOptional",(t,e)=>{pe.init(t,e),fe(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,n)=>{let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Nh(i,t)):Nh(o,t)}});function Nh(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Vu=k("$ZodCatch",(t,e)=>{pe.init(t,e),t._zod.optin="optional",fe(t._zod,"optout",()=>e.innerType._zod.optout),fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>It(s,n,ht()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(i=>It(i,n,ht()))},input:r.value}),r.issues=[]),r)}});var Hu=k("$ZodPipe",(t,e)=>{pe.init(t,e),fe(t._zod,"values",()=>e.in._zod.values),fe(t._zod,"optin",()=>e.in._zod.optin),fe(t._zod,"optout",()=>e.out._zod.optout),t._zod.parse=(r,n)=>{let o=e.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Zh(i,e,n)):Zh(o,e,n)}});function Zh(t,e,r){return sn(t)?t:e.out._zod.run({value:t.value,issues:t.issues},r)}var Gu=k("$ZodReadonly",(t,e)=>{pe.init(t,e),fe(t._zod,"propValues",()=>e.innerType._zod.propValues),fe(t._zod,"values",()=>e.innerType._zod.values),fe(t._zod,"optin",()=>e.innerType._zod.optin),fe(t._zod,"optout",()=>e.innerType._zod.optout),t._zod.parse=(r,n)=>{let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(Mh):Mh(o)}});function Mh(t){return t.value=Object.freeze(t.value),t}var Ju=k("$ZodCustom",(t,e)=>{Me.init(t,e),pe.init(t,e),t._zod.parse=(r,n)=>r,t._zod.check=r=>{let n=r.value,o=e.fn(n);if(o instanceof Promise)return o.then(i=>qh(i,r,n,t));qh(o,r,n,t)}});function qh(t,e,r,n){if(!t){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),e.issues.push(Wc(o))}}var G$=t=>{let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},J$=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Invalid input: expected ${n.expected}, received ${G$(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${ms(n.values[0])}`:`Invalid option: expected one of ${ps(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=e(n.origin);return i?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=e(n.origin);return i?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${i.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${ps(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Vh(){return{localeError:J$()}}var W$=Symbol("ZodOutput"),K$=Symbol("ZodInput"),Vo=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...r){let n=r[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Hh(){return new Vo}var yr=Hh();function Wu(t,e){return new t({type:"string",...D(e)})}function Ku(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...D(e)})}function _s(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...D(e)})}function Yu(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...D(e)})}function Xu(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...D(e)})}function Qu(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...D(e)})}function el(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...D(e)})}function tl(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...D(e)})}function rl(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...D(e)})}function nl(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...D(e)})}function ol(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...D(e)})}function il(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...D(e)})}function sl(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...D(e)})}function al(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...D(e)})}function cl(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...D(e)})}function ul(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...D(e)})}function ll(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...D(e)})}function pl(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...D(e)})}function dl(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...D(e)})}function ml(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...D(e)})}function fl(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...D(e)})}function hl(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...D(e)})}function gl(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...D(e)})}function Gh(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...D(e)})}function Jh(t,e){return new t({type:"string",format:"date",check:"string_format",...D(e)})}function Wh(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...D(e)})}function Kh(t,e){return new t({type:"string",format:"duration",check:"string_format",...D(e)})}function xl(t,e){return new t({type:"number",checks:[],...D(e)})}function vl(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...D(e)})}function yl(t,e){return new t({type:"boolean",...D(e)})}function bl(t,e){return new t({type:"null",...D(e)})}function _l(t){return new t({type:"unknown"})}function wl(t,e){return new t({type:"never",...D(e)})}function ws(t,e){return new su({check:"less_than",...D(e),value:t,inclusive:!1})}function Ho(t,e){return new su({check:"less_than",...D(e),value:t,inclusive:!0})}function ks(t,e){return new au({check:"greater_than",...D(e),value:t,inclusive:!1})}function Go(t,e){return new au({check:"greater_than",...D(e),value:t,inclusive:!0})}function $s(t,e){return new xh({check:"multiple_of",...D(e),value:t})}function Ss(t,e){return new yh({check:"max_length",...D(e),maximum:t})}function Un(t,e){return new bh({check:"min_length",...D(e),minimum:t})}function zs(t,e){return new _h({check:"length_equals",...D(e),length:t})}function kl(t,e){return new wh({check:"string_format",format:"regex",...D(e),pattern:t})}function $l(t){return new kh({check:"string_format",format:"lowercase",...D(t)})}function Sl(t){return new $h({check:"string_format",format:"uppercase",...D(t)})}function zl(t,e){return new Sh({check:"string_format",format:"includes",...D(e),includes:t})}function El(t,e){return new zh({check:"string_format",format:"starts_with",...D(e),prefix:t})}function Tl(t,e){return new Eh({check:"string_format",format:"ends_with",...D(e),suffix:t})}function un(t){return new Th({check:"overwrite",tx:t})}function Pl(t){return un(e=>e.normalize(t))}function Rl(){return un(t=>t.trim())}function Cl(){return un(t=>t.toLowerCase())}function Il(){return un(t=>t.toUpperCase())}function Yh(t,e,r){return new t({type:"array",element:e,...D(r)})}function Ol(t,e,r){let n=D(r);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function jl(t,e,r){return new t({type:"custom",check:"custom",fn:e,...D(r)})}var Es=class{constructor(e){this.counter=0,this.metadataRegistry=(e==null?void 0:e.metadata)??yr,this.target=(e==null?void 0:e.target)??"draft-2020-12",this.unrepresentable=(e==null?void 0:e.unrepresentable)??"throw",this.override=(e==null?void 0:e.override)??(()=>{}),this.io=(e==null?void 0:e.io)??"output",this.seen=new Map}process(e,r={path:[],schemaPath:[]}){var p,m,h;var n;let o=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},s=this.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(e,a);let c=(m=(p=e._zod).toJSONSchema)==null?void 0:m.call(p);if(c)a.schema=c;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path},f=e._zod.parent;if(f)a.ref=f,this.process(f,d),this.seen.get(f).isParent=!0;else{let x=a.schema;switch(o.type){case"string":{let g=x;g.type="string";let{minimum:y,maximum:b,format:S,patterns:$,contentEncoding:Z}=e._zod.bag;if(typeof y=="number"&&(g.minLength=y),typeof b=="number"&&(g.maxLength=b),S&&(g.format=i[S]??S,g.format===""&&delete g.format),Z&&(g.contentEncoding=Z),$&&$.size>0){let N=[...$];N.length===1?g.pattern=N[0].source:N.length>1&&(a.schema.allOf=[...N.map(ue=>({...this.target==="draft-7"?{type:"string"}:{},pattern:ue.source}))])}break}case"number":{let g=x,{minimum:y,maximum:b,format:S,multipleOf:$,exclusiveMaximum:Z,exclusiveMinimum:N}=e._zod.bag;typeof S=="string"&&S.includes("int")?g.type="integer":g.type="number",typeof N=="number"&&(g.exclusiveMinimum=N),typeof y=="number"&&(g.minimum=y,typeof N=="number"&&(N>=y?delete g.minimum:delete g.exclusiveMinimum)),typeof Z=="number"&&(g.exclusiveMaximum=Z),typeof b=="number"&&(g.maximum=b,typeof Z=="number"&&(Z<=b?delete g.maximum:delete g.exclusiveMaximum)),typeof $=="number"&&(g.multipleOf=$);break}case"boolean":{let g=x;g.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{x.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{x.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let g=x,{minimum:y,maximum:b}=e._zod.bag;typeof y=="number"&&(g.minItems=y),typeof b=="number"&&(g.maxItems=b),g.type="array",g.items=this.process(o.element,{...d,path:[...d.path,"items"]});break}case"object":{let g=x;g.type="object",g.properties={};let y=o.shape;for(let $ in y)g.properties[$]=this.process(y[$],{...d,path:[...d.path,"properties",$]});let b=new Set(Object.keys(y)),S=new Set([...b].filter($=>{let Z=o.shape[$]._zod;return this.io==="input"?Z.optin===void 0:Z.optout===void 0}));S.size>0&&(g.required=Array.from(S)),((h=o.catchall)==null?void 0:h._zod.def.type)==="never"?g.additionalProperties=!1:o.catchall?o.catchall&&(g.additionalProperties=this.process(o.catchall,{...d,path:[...d.path,"additionalProperties"]})):this.io==="output"&&(g.additionalProperties=!1);break}case"union":{let g=x;g.anyOf=o.options.map((y,b)=>this.process(y,{...d,path:[...d.path,"anyOf",b]}));break}case"intersection":{let g=x,y=this.process(o.left,{...d,path:[...d.path,"allOf",0]}),b=this.process(o.right,{...d,path:[...d.path,"allOf",1]}),S=Z=>"allOf"in Z&&Object.keys(Z).length===1,$=[...S(y)?y.allOf:[y],...S(b)?b.allOf:[b]];g.allOf=$;break}case"tuple":{let g=x;g.type="array";let y=o.items.map(($,Z)=>this.process($,{...d,path:[...d.path,"prefixItems",Z]}));if(this.target==="draft-2020-12"?g.prefixItems=y:g.items=y,o.rest){let $=this.process(o.rest,{...d,path:[...d.path,"items"]});this.target==="draft-2020-12"?g.items=$:g.additionalItems=$}o.rest&&(g.items=this.process(o.rest,{...d,path:[...d.path,"items"]}));let{minimum:b,maximum:S}=e._zod.bag;typeof b=="number"&&(g.minItems=b),typeof S=="number"&&(g.maxItems=S);break}case"record":{let g=x;g.type="object",g.propertyNames=this.process(o.keyType,{...d,path:[...d.path,"propertyNames"]}),g.additionalProperties=this.process(o.valueType,{...d,path:[...d.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let g=x,y=Zo(o.entries);y.every(b=>typeof b=="number")&&(g.type="number"),y.every(b=>typeof b=="string")&&(g.type="string"),g.enum=y;break}case"literal":{let g=x,y=[];for(let b of o.values)if(b===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof b=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");y.push(Number(b))}else y.push(b);if(y.length!==0)if(y.length===1){let b=y[0];g.type=b===null?"null":typeof b,g.const=b}else y.every(b=>typeof b=="number")&&(g.type="number"),y.every(b=>typeof b=="string")&&(g.type="string"),y.every(b=>typeof b=="boolean")&&(g.type="string"),y.every(b=>b===null)&&(g.type="null"),g.enum=y;break}case"file":{let g=x,y={type:"string",format:"binary",contentEncoding:"binary"},{minimum:b,maximum:S,mime:$}=e._zod.bag;b!==void 0&&(y.minLength=b),S!==void 0&&(y.maxLength=S),$?$.length===1?(y.contentMediaType=$[0],Object.assign(g,y)):g.anyOf=$.map(Z=>({...y,contentMediaType:Z})):Object.assign(g,y);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let g=this.process(o.innerType,d);x.anyOf=[g,{type:"null"}];break}case"nonoptional":{this.process(o.innerType,d),a.ref=o.innerType;break}case"success":{let g=x;g.type="boolean";break}case"default":{this.process(o.innerType,d),a.ref=o.innerType,x.default=JSON.parse(JSON.stringify(o.defaultValue));break}case"prefault":{this.process(o.innerType,d),a.ref=o.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(o.defaultValue)));break}case"catch":{this.process(o.innerType,d),a.ref=o.innerType;let g;try{g=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=g;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let g=x,y=e._zod.pattern;if(!y)throw new Error("Pattern not found in template literal");g.type="string",g.pattern=y.source;break}case"pipe":{let g=this.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;this.process(g,d),a.ref=g;break}case"readonly":{this.process(o.innerType,d),a.ref=o.innerType,x.readOnly=!0;break}case"promise":{this.process(o.innerType,d),a.ref=o.innerType;break}case"optional":{this.process(o.innerType,d),a.ref=o.innerType;break}case"lazy":{let g=e._zod.innerType;this.process(g,d),a.ref=g;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let u=this.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),this.io==="input"&&Re(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,r){var l,p,m,h,d,f;let n={cycles:(r==null?void 0:r.cycles)??"ref",reused:(r==null?void 0:r.reused)??"inline",external:(r==null?void 0:r.external)??void 0},o=this.seen.get(e);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=x=>{var $;let g=this.target==="draft-2020-12"?"$defs":"definitions";if(n.external){let Z=($=n.external.registry.get(x[0]))==null?void 0:$.id,N=n.external.uri??(be=>be);if(Z)return{ref:N(Z)};let ue=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=ue,{defId:ue,ref:`${N("__shared")}#/${g}/${ue}`}}if(x[1]===o)return{ref:"#"};let b=`#/${g}/`,S=x[1].schema.id??`__schema${this.counter++}`;return{defId:S,ref:b+S}},s=x=>{if(x[1].schema.$ref)return;let g=x[1],{ref:y,defId:b}=i(x);g.def={...g.schema},b&&(g.defId=b);let S=g.schema;for(let $ in S)delete S[$];S.$ref=y};if(n.cycles==="throw")for(let x of this.seen.entries()){let g=x[1];if(g.cycle)throw new Error(`Cycle detected: #/${(l=g.cycle)==null?void 0:l.join("/")}/<root>
38
+ path: iss.path ? [${an(y)}, ...iss.path] : [${an(y)}]
39
+ })));`),m.write(`newResult[${an(y)}] = ${b}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");let g=m.compile();return(y,b)=>g(p,y,b)},o,i=Fn,s=!ps.jitless,c=s&&Yc.value,u=e.catchall,l;t._zod.parse=(p,m)=>{l??(l=r.value);let h=p.value;if(!i(h))return p.issues.push({expected:"object",code:"invalid_type",input:h,inst:t}),p;let d=[];if(s&&c&&(m==null?void 0:m.async)===!1&&m.jitless!==!0)o||(o=n(e.shape)),p=o(p,m);else{p.value={};let b=l.shape;for(let $ of l.keys){let S=b[$],L=S._zod.run({value:h[$],issues:[]},m),D=S._zod.optin==="optional"&&S._zod.optout==="optional";L instanceof Promise?d.push(L.then(ue=>D?Mh(ue,p,$,h):vs(ue,p,$))):D?Mh(L,p,$,h):vs(L,p,$)}}if(!u)return d.length?Promise.all(d).then(()=>p):p;let f=[],x=l.keySet,g=u._zod,y=g.def.type;for(let b of Object.keys(h)){if(x.has(b))continue;if(y==="never"){f.push(b);continue}let $=g.run({value:h[b],issues:[]},m);$ instanceof Promise?d.push($.then(S=>vs(S,p,b))):vs($,p,b)}return f.length&&p.issues.push({code:"unrecognized_keys",keys:f,input:h,inst:t}),d.length?Promise.all(d).then(()=>p):p}});function Zh(t,e,r,n){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;return e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(i=>Ot(i,n,ht())))}),e}var _s=k("$ZodUnion",(t,e)=>{pe.init(t,e),fe(t._zod,"optin",()=>e.options.some(r=>r._zod.optin==="optional")?"optional":void 0),fe(t._zod,"optout",()=>e.options.some(r=>r._zod.optout==="optional")?"optional":void 0),fe(t._zod,"values",()=>{if(e.options.every(r=>r._zod.values))return new Set(e.options.flatMap(r=>Array.from(r._zod.values)))}),fe(t._zod,"pattern",()=>{if(e.options.every(r=>r._zod.pattern)){let r=e.options.map(n=>n._zod.pattern);return new RegExp(`^(${r.map(n=>Uo(n.source)).join("|")})$`)}}),t._zod.parse=(r,n)=>{let o=!1,i=[];for(let s of e.options){let a=s._zod.run({value:r.value,issues:[]},n);if(a instanceof Promise)i.push(a),o=!0;else{if(a.issues.length===0)return a;i.push(a)}}return o?Promise.all(i).then(s=>Zh(s,r,t,n)):Zh(i,r,t,n)}}),Zu=k("$ZodDiscriminatedUnion",(t,e)=>{_s.init(t,e);let r=t._zod.parse;fe(t._zod,"propValues",()=>{let o={};for(let i of e.options){let s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let[a,c]of Object.entries(s)){o[a]||(o[a]=new Set);for(let u of c)o[a].add(u)}}return o});let n=Zo(()=>{let o=e.options,i=new Map;for(let s of o){let a=s._zod.propValues[e.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let c of a){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,s)}}return i});t._zod.parse=(o,i)=>{let s=o.value;if(!Fn(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),o;let a=n.value.get(s==null?void 0:s[e.discriminator]);return a?a._zod.run(o,i):e.unionFallback?r(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[e.discriminator],inst:t}),o)}}),qu=k("$ZodIntersection",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=r.value,i=e.left._zod.run({value:o,issues:[]},n),s=e.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>qh(r,c,u)):qh(r,i,s)}});function fu(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Bn(t)&&Bn(e)){let r=Object.keys(e),n=Object.keys(t).filter(i=>r.indexOf(i)!==-1),o={...t,...e};for(let i of n){let s=fu(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<t.length;n++){let o=t[n],i=e[n],s=fu(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function qh(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),cn(t))return t;let n=fu(e.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return t.value=n.data,t}var Uu=k("$ZodRecord",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=r.value;if(!Bn(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:t}),r;let i=[];if(e.keyType._zod.values){let s=e.keyType._zod.values;r.value={};for(let c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){let u=e.valueType._zod.run({value:o[c],issues:[]},n);u instanceof Promise?i.push(u.then(l=>{l.issues.length&&r.issues.push(...Ht(c,l.issues)),r.value[c]=l.value})):(u.issues.length&&r.issues.push(...Ht(c,u.issues)),r.value[c]=u.value)}let a;for(let c in o)s.has(c)||(a=a??[],a.push(c));a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:a})}else{r.value={};for(let s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let a=e.keyType._zod.run({value:s,issues:[]},n);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(u=>Ot(u,n,ht())),input:s,path:[s],inst:t}),r.value[a.value]=a.value;continue}let c=e.valueType._zod.run({value:o[s],issues:[]},n);c instanceof Promise?i.push(c.then(u=>{u.issues.length&&r.issues.push(...Ht(s,u.issues)),r.value[a.value]=u.value})):(c.issues.length&&r.issues.push(...Ht(s,c.issues)),r.value[a.value]=c.value)}}return i.length?Promise.all(i).then(()=>r):r}});var Fu=k("$ZodEnum",(t,e)=>{pe.init(t,e);let r=Mo(e.entries);t._zod.values=new Set(r),t._zod.pattern=new RegExp(`^(${r.filter(n=>Xc.has(typeof n)).map(n=>typeof n=="string"?_r(n):n.toString()).join("|")})$`),t._zod.parse=(n,o)=>{let i=n.value;return t._zod.values.has(i)||n.issues.push({code:"invalid_value",values:r,input:i,inst:t}),n}}),Bu=k("$ZodLiteral",(t,e)=>{pe.init(t,e),t._zod.values=new Set(e.values),t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?_r(r):r?r.toString():String(r)).join("|")})$`),t._zod.parse=(r,n)=>{let o=r.value;return t._zod.values.has(o)||r.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),r}});var Vu=k("$ZodTransform",(t,e)=>{pe.init(t,e),t._zod.parse=(r,n)=>{let o=e.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new ar;return r.value=o,r}}),Hu=k("$ZodOptional",(t,e)=>{pe.init(t,e),t._zod.optin="optional",t._zod.optout="optional",fe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),fe(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Uo(r.source)})?$`):void 0}),t._zod.parse=(r,n)=>e.innerType._zod.optin==="optional"?e.innerType._zod.run(r,n):r.value===void 0?r:e.innerType._zod.run(r,n)}),Gu=k("$ZodNullable",(t,e)=>{pe.init(t,e),fe(t._zod,"optin",()=>e.innerType._zod.optin),fe(t._zod,"optout",()=>e.innerType._zod.optout),fe(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Uo(r.source)}|null)$`):void 0}),fe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,n)=>r.value===null?r:e.innerType._zod.run(r,n)}),Ju=k("$ZodDefault",(t,e)=>{pe.init(t,e),t._zod.optin="optional",fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{if(r.value===void 0)return r.value=e.defaultValue,r;let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Uh(i,e)):Uh(o,e)}});function Uh(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var Wu=k("$ZodPrefault",(t,e)=>{pe.init(t,e),t._zod.optin="optional",fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>(r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,n))}),Ku=k("$ZodNonOptional",(t,e)=>{pe.init(t,e),fe(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,n)=>{let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Fh(i,t)):Fh(o,t)}});function Fh(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Yu=k("$ZodCatch",(t,e)=>{pe.init(t,e),t._zod.optin="optional",fe(t._zod,"optout",()=>e.innerType._zod.optout),fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,n)=>{let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=e.catchValue({...r,error:{issues:i.issues.map(s=>Ot(s,n,ht()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(i=>Ot(i,n,ht()))},input:r.value}),r.issues=[]),r)}});var Xu=k("$ZodPipe",(t,e)=>{pe.init(t,e),fe(t._zod,"values",()=>e.in._zod.values),fe(t._zod,"optin",()=>e.in._zod.optin),fe(t._zod,"optout",()=>e.out._zod.optout),t._zod.parse=(r,n)=>{let o=e.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Bh(i,e,n)):Bh(o,e,n)}});function Bh(t,e,r){return cn(t)?t:e.out._zod.run({value:t.value,issues:t.issues},r)}var Qu=k("$ZodReadonly",(t,e)=>{pe.init(t,e),fe(t._zod,"propValues",()=>e.innerType._zod.propValues),fe(t._zod,"values",()=>e.innerType._zod.values),fe(t._zod,"optin",()=>e.innerType._zod.optin),fe(t._zod,"optout",()=>e.innerType._zod.optout),t._zod.parse=(r,n)=>{let o=e.innerType._zod.run(r,n);return o instanceof Promise?o.then(Vh):Vh(o)}});function Vh(t){return t.value=Object.freeze(t.value),t}var el=k("$ZodCustom",(t,e)=>{qe.init(t,e),pe.init(t,e),t._zod.parse=(r,n)=>r,t._zod.check=r=>{let n=r.value,o=e.fn(n);if(o instanceof Promise)return o.then(i=>Hh(i,r,n,t));Hh(o,r,n,t)}});function Hh(t,e,r,n){if(!t){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),e.issues.push(tu(o))}}var QS=t=>{let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return e},e$=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Invalid input: expected ${n.expected}, received ${QS(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${fs(n.values[0])}`:`Invalid option: expected one of ${ds(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=e(n.origin);return i?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=e(n.origin);return i?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${i.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${ds(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Xh(){return{localeError:e$()}}var t$=Symbol("ZodOutput"),r$=Symbol("ZodInput"),Go=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...r){let n=r[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Qh(){return new Go}var wr=Qh();function tl(t,e){return new t({type:"string",...q(e)})}function rl(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...q(e)})}function ws(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...q(e)})}function nl(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...q(e)})}function ol(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...q(e)})}function il(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...q(e)})}function sl(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...q(e)})}function al(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...q(e)})}function cl(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...q(e)})}function ul(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...q(e)})}function ll(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...q(e)})}function pl(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...q(e)})}function dl(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...q(e)})}function ml(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...q(e)})}function fl(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...q(e)})}function hl(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...q(e)})}function gl(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...q(e)})}function xl(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...q(e)})}function vl(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...q(e)})}function yl(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...q(e)})}function bl(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...q(e)})}function _l(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...q(e)})}function wl(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...q(e)})}function eg(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...q(e)})}function tg(t,e){return new t({type:"string",format:"date",check:"string_format",...q(e)})}function rg(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...q(e)})}function ng(t,e){return new t({type:"string",format:"duration",check:"string_format",...q(e)})}function kl(t,e){return new t({type:"number",checks:[],...q(e)})}function Sl(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...q(e)})}function $l(t,e){return new t({type:"boolean",...q(e)})}function zl(t,e){return new t({type:"null",...q(e)})}function Tl(t){return new t({type:"unknown"})}function El(t,e){return new t({type:"never",...q(e)})}function ks(t,e){return new du({check:"less_than",...q(e),value:t,inclusive:!1})}function Jo(t,e){return new du({check:"less_than",...q(e),value:t,inclusive:!0})}function Ss(t,e){return new mu({check:"greater_than",...q(e),value:t,inclusive:!1})}function Wo(t,e){return new mu({check:"greater_than",...q(e),value:t,inclusive:!0})}function $s(t,e){return new Sh({check:"multiple_of",...q(e),value:t})}function zs(t,e){return new zh({check:"max_length",...q(e),maximum:t})}function Vn(t,e){return new Th({check:"min_length",...q(e),minimum:t})}function Ts(t,e){return new Eh({check:"length_equals",...q(e),length:t})}function Pl(t,e){return new Ph({check:"string_format",format:"regex",...q(e),pattern:t})}function Rl(t){return new Rh({check:"string_format",format:"lowercase",...q(t)})}function Il(t){return new Ih({check:"string_format",format:"uppercase",...q(t)})}function Ol(t,e){return new Oh({check:"string_format",format:"includes",...q(e),includes:t})}function Cl(t,e){return new Ch({check:"string_format",format:"starts_with",...q(e),prefix:t})}function jl(t,e){return new jh({check:"string_format",format:"ends_with",...q(e),suffix:t})}function pn(t){return new Ah({check:"overwrite",tx:t})}function Al(t){return pn(e=>e.normalize(t))}function Nl(){return pn(t=>t.trim())}function Dl(){return pn(t=>t.toLowerCase())}function Ll(){return pn(t=>t.toUpperCase())}function og(t,e,r){return new t({type:"array",element:e,...q(r)})}function Ml(t,e,r){let n=q(r);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function Zl(t,e,r){return new t({type:"custom",check:"custom",fn:e,...q(r)})}var Es=class{constructor(e){this.counter=0,this.metadataRegistry=(e==null?void 0:e.metadata)??wr,this.target=(e==null?void 0:e.target)??"draft-2020-12",this.unrepresentable=(e==null?void 0:e.unrepresentable)??"throw",this.override=(e==null?void 0:e.override)??(()=>{}),this.io=(e==null?void 0:e.io)??"output",this.seen=new Map}process(e,r={path:[],schemaPath:[]}){var p,m,h;var n;let o=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},s=this.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(e,a);let c=(m=(p=e._zod).toJSONSchema)==null?void 0:m.call(p);if(c)a.schema=c;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path},f=e._zod.parent;if(f)a.ref=f,this.process(f,d),this.seen.get(f).isParent=!0;else{let x=a.schema;switch(o.type){case"string":{let g=x;g.type="string";let{minimum:y,maximum:b,format:$,patterns:S,contentEncoding:L}=e._zod.bag;if(typeof y=="number"&&(g.minLength=y),typeof b=="number"&&(g.maxLength=b),$&&(g.format=i[$]??$,g.format===""&&delete g.format),L&&(g.contentEncoding=L),S&&S.size>0){let D=[...S];D.length===1?g.pattern=D[0].source:D.length>1&&(a.schema.allOf=[...D.map(ue=>({...this.target==="draft-7"?{type:"string"}:{},pattern:ue.source}))])}break}case"number":{let g=x,{minimum:y,maximum:b,format:$,multipleOf:S,exclusiveMaximum:L,exclusiveMinimum:D}=e._zod.bag;typeof $=="string"&&$.includes("int")?g.type="integer":g.type="number",typeof D=="number"&&(g.exclusiveMinimum=D),typeof y=="number"&&(g.minimum=y,typeof D=="number"&&(D>=y?delete g.minimum:delete g.exclusiveMinimum)),typeof L=="number"&&(g.exclusiveMaximum=L),typeof b=="number"&&(g.maximum=b,typeof L=="number"&&(L<=b?delete g.maximum:delete g.exclusiveMaximum)),typeof S=="number"&&(g.multipleOf=S);break}case"boolean":{let g=x;g.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{x.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{x.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let g=x,{minimum:y,maximum:b}=e._zod.bag;typeof y=="number"&&(g.minItems=y),typeof b=="number"&&(g.maxItems=b),g.type="array",g.items=this.process(o.element,{...d,path:[...d.path,"items"]});break}case"object":{let g=x;g.type="object",g.properties={};let y=o.shape;for(let S in y)g.properties[S]=this.process(y[S],{...d,path:[...d.path,"properties",S]});let b=new Set(Object.keys(y)),$=new Set([...b].filter(S=>{let L=o.shape[S]._zod;return this.io==="input"?L.optin===void 0:L.optout===void 0}));$.size>0&&(g.required=Array.from($)),((h=o.catchall)==null?void 0:h._zod.def.type)==="never"?g.additionalProperties=!1:o.catchall?o.catchall&&(g.additionalProperties=this.process(o.catchall,{...d,path:[...d.path,"additionalProperties"]})):this.io==="output"&&(g.additionalProperties=!1);break}case"union":{let g=x;g.anyOf=o.options.map((y,b)=>this.process(y,{...d,path:[...d.path,"anyOf",b]}));break}case"intersection":{let g=x,y=this.process(o.left,{...d,path:[...d.path,"allOf",0]}),b=this.process(o.right,{...d,path:[...d.path,"allOf",1]}),$=L=>"allOf"in L&&Object.keys(L).length===1,S=[...$(y)?y.allOf:[y],...$(b)?b.allOf:[b]];g.allOf=S;break}case"tuple":{let g=x;g.type="array";let y=o.items.map((S,L)=>this.process(S,{...d,path:[...d.path,"prefixItems",L]}));if(this.target==="draft-2020-12"?g.prefixItems=y:g.items=y,o.rest){let S=this.process(o.rest,{...d,path:[...d.path,"items"]});this.target==="draft-2020-12"?g.items=S:g.additionalItems=S}o.rest&&(g.items=this.process(o.rest,{...d,path:[...d.path,"items"]}));let{minimum:b,maximum:$}=e._zod.bag;typeof b=="number"&&(g.minItems=b),typeof $=="number"&&(g.maxItems=$);break}case"record":{let g=x;g.type="object",g.propertyNames=this.process(o.keyType,{...d,path:[...d.path,"propertyNames"]}),g.additionalProperties=this.process(o.valueType,{...d,path:[...d.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let g=x,y=Mo(o.entries);y.every(b=>typeof b=="number")&&(g.type="number"),y.every(b=>typeof b=="string")&&(g.type="string"),g.enum=y;break}case"literal":{let g=x,y=[];for(let b of o.values)if(b===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof b=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");y.push(Number(b))}else y.push(b);if(y.length!==0)if(y.length===1){let b=y[0];g.type=b===null?"null":typeof b,g.const=b}else y.every(b=>typeof b=="number")&&(g.type="number"),y.every(b=>typeof b=="string")&&(g.type="string"),y.every(b=>typeof b=="boolean")&&(g.type="string"),y.every(b=>b===null)&&(g.type="null"),g.enum=y;break}case"file":{let g=x,y={type:"string",format:"binary",contentEncoding:"binary"},{minimum:b,maximum:$,mime:S}=e._zod.bag;b!==void 0&&(y.minLength=b),$!==void 0&&(y.maxLength=$),S?S.length===1?(y.contentMediaType=S[0],Object.assign(g,y)):g.anyOf=S.map(L=>({...y,contentMediaType:L})):Object.assign(g,y);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let g=this.process(o.innerType,d);x.anyOf=[g,{type:"null"}];break}case"nonoptional":{this.process(o.innerType,d),a.ref=o.innerType;break}case"success":{let g=x;g.type="boolean";break}case"default":{this.process(o.innerType,d),a.ref=o.innerType,x.default=JSON.parse(JSON.stringify(o.defaultValue));break}case"prefault":{this.process(o.innerType,d),a.ref=o.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(o.defaultValue)));break}case"catch":{this.process(o.innerType,d),a.ref=o.innerType;let g;try{g=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=g;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let g=x,y=e._zod.pattern;if(!y)throw new Error("Pattern not found in template literal");g.type="string",g.pattern=y.source;break}case"pipe":{let g=this.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;this.process(g,d),a.ref=g;break}case"readonly":{this.process(o.innerType,d),a.ref=o.innerType,x.readOnly=!0;break}case"promise":{this.process(o.innerType,d),a.ref=o.innerType;break}case"optional":{this.process(o.innerType,d),a.ref=o.innerType;break}case"lazy":{let g=e._zod.innerType;this.process(g,d),a.ref=g;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}}let u=this.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),this.io==="input"&&Ce(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,r){var l,p,m,h,d,f;let n={cycles:(r==null?void 0:r.cycles)??"ref",reused:(r==null?void 0:r.reused)??"inline",external:(r==null?void 0:r.external)??void 0},o=this.seen.get(e);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=x=>{var S;let g=this.target==="draft-2020-12"?"$defs":"definitions";if(n.external){let L=(S=n.external.registry.get(x[0]))==null?void 0:S.id,D=n.external.uri??(_e=>_e);if(L)return{ref:D(L)};let ue=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=ue,{defId:ue,ref:`${D("__shared")}#/${g}/${ue}`}}if(x[1]===o)return{ref:"#"};let b=`#/${g}/`,$=x[1].schema.id??`__schema${this.counter++}`;return{defId:$,ref:b+$}},s=x=>{if(x[1].schema.$ref)return;let g=x[1],{ref:y,defId:b}=i(x);g.def={...g.schema},b&&(g.defId=b);let $=g.schema;for(let S in $)delete $[S];$.$ref=y};if(n.cycles==="throw")for(let x of this.seen.entries()){let g=x[1];if(g.cycle)throw new Error(`Cycle detected: #/${(l=g.cycle)==null?void 0:l.join("/")}/<root>
40
40
 
41
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let x of this.seen.entries()){let g=x[1];if(e===x[0]){s(x);continue}if(n.external){let b=(p=n.external.registry.get(x[0]))==null?void 0:p.id;if(e!==x[0]&&b){s(x);continue}}if((m=this.metadataRegistry.get(x[0]))==null?void 0:m.id){s(x);continue}if(g.cycle){s(x);continue}if(g.count>1&&n.reused==="ref"){s(x);continue}}let a=(x,g)=>{let y=this.seen.get(x),b=y.def??y.schema,S={...b};if(y.ref===null)return;let $=y.ref;if(y.ref=null,$){a($,g);let Z=this.seen.get($).schema;Z.$ref&&g.target==="draft-7"?(b.allOf=b.allOf??[],b.allOf.push(Z)):(Object.assign(b,Z),Object.assign(b,S))}y.isParent||this.override({zodSchema:x,jsonSchema:b,path:y.path??[]})};for(let x of[...this.seen.entries()].reverse())a(x[0],{target:this.target});let c={};if(this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),(h=n.external)!=null&&h.uri){let x=(d=n.external.registry.get(e))==null?void 0:d.id;if(!x)throw new Error("Schema is missing an `id` property");c.$id=n.external.uri(x)}Object.assign(c,o.def);let u=((f=n.external)==null?void 0:f.defs)??{};for(let x of this.seen.entries()){let g=x[1];g.def&&g.defId&&(u[g.defId]=g.def)}n.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?c.$defs=u:c.definitions=u);try{return JSON.parse(JSON.stringify(c))}catch{throw new Error("Error converting schema to JSON.")}}};function Al(t,e){if(t instanceof Vo){let n=new Es(e),o={};for(let a of t._idmap.entries()){let[c,u]=a;n.process(u)}let i={},s={registry:t,uri:e==null?void 0:e.uri,defs:o};for(let a of t._idmap.entries()){let[c,u]=a;i[c]=n.emit(u,{...e,external:s})}if(Object.keys(o).length>0){let a=n.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[a]:o}}return{schemas:i}}let r=new Es(e);return r.process(t),r.emit(t,e)}function Re(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;switch(o.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Re(o.element,r);case"object":{for(let i in o.shape)if(Re(o.shape[i],r))return!0;return!1}case"union":{for(let i of o.options)if(Re(i,r))return!0;return!1}case"intersection":return Re(o.left,r)||Re(o.right,r);case"tuple":{for(let i of o.items)if(Re(i,r))return!0;return!!(o.rest&&Re(o.rest,r))}case"record":return Re(o.keyType,r)||Re(o.valueType,r);case"map":return Re(o.keyType,r)||Re(o.valueType,r);case"set":return Re(o.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Re(o.innerType,r);case"lazy":return Re(o.getter(),r);case"default":return Re(o.innerType,r);case"prefault":return Re(o.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return Re(o.in,r)||Re(o.out,r);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${o.type}`)}var CS=k("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");pe.init(t,e),t.def=e,t.parse=(r,n)=>Qc(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>an(t,r,n),t.parseAsync=async(r,n)=>tu(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>cn(t,r,n),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),t.clone=(r,n)=>gt(t,r,n),t.brand=()=>t,t.register=((r,n)=>(r.add(t,n),t))});var IS=k("ZodMiniObject",(t,e)=>{ys.init(t,e),CS.init(t,e),Q.defineLazy(t,"shape",()=>e.shape)});function Nl(t,e){let r={type:"object",get shape(){return Q.assignProp(this,"shape",{...t}),this.shape},...Q.normalizeParams(e)};return new IS(r)}function bt(t){return!!t._zod}function pn(t){let e=Object.values(t);if(e.length===0)return Nl({});let r=e.every(bt),n=e.every(o=>!bt(o));if(r)return Nl(t);if(n)return qc(t);throw new Error("Mixed Zod versions detected in object shape.")}function br(t,e){return bt(t)?an(t,e):t.safeParse(e)}async function Ts(t,e){return bt(t)?await cn(t,e):await t.safeParseAsync(e)}function _r(t){var r,n;if(!t)return;let e;if(bt(t)?e=(n=(r=t._zod)==null?void 0:r.def)==null?void 0:n.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function Fn(t){var e;if(t){if(typeof t=="object"){let r=t,n=t;if(!r._def&&!n._zod){let o=Object.values(t);if(o.length>0&&o.every(i=>typeof i=="object"&&i!==null&&(i._def!==void 0||i._zod!==void 0||typeof i.parse=="function")))return pn(t)}}if(bt(t)){let n=(e=t._zod)==null?void 0:e.def;if(n&&(n.type==="object"||n.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function Ps(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function Qh(t){return t.description}function eg(t){var r,n,o;if(bt(t))return((n=(r=t._zod)==null?void 0:r.def)==null?void 0:n.type)==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():((o=e._def)==null?void 0:o.typeName)==="ZodOptional"}function Rs(t){var o;if(bt(t)){let s=(o=t._zod)==null?void 0:o.def;if(s){if(s.value!==void 0)return s.value;if(Array.isArray(s.values)&&s.values.length>0)return s.values[0]}}let r=t._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=t.value;if(n!==void 0)return n}var Jo={};Ac(Jo,{ZodISODate:()=>rg,ZodISODateTime:()=>tg,ZodISODuration:()=>og,ZodISOTime:()=>ng,date:()=>Ml,datetime:()=>Zl,duration:()=>Dl,time:()=>ql});var tg=k("ZodISODateTime",(t,e)=>{Dh.init(t,e),_e.init(t,e)});function Zl(t){return Gh(tg,t)}var rg=k("ZodISODate",(t,e)=>{Lh.init(t,e),_e.init(t,e)});function Ml(t){return Jh(rg,t)}var ng=k("ZodISOTime",(t,e)=>{Uh.init(t,e),_e.init(t,e)});function ql(t){return Wh(ng,t)}var og=k("ZodISODuration",(t,e)=>{Fh.init(t,e),_e.init(t,e)});function Dl(t){return Kh(og,t)}var ig=(t,e)=>{fs.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Yc(t,r)},flatten:{value:r=>Kc(t,r)},addIssue:{value:r=>t.issues.push(r)},addIssues:{value:r=>t.issues.push(...r)},isEmpty:{get(){return t.issues.length===0}}})},cq=k("ZodError",ig),Wo=k("ZodError",ig,{Parent:Error});var sg=Xc(Wo),ag=eu(Wo),cg=ru(Wo),ug=nu(Wo);var Se=k("ZodType",(t,e)=>(pe.init(t,e),t.def=e,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),t.clone=(r,n)=>gt(t,r,n),t.brand=()=>t,t.register=((r,n)=>(r.add(t,n),t)),t.parse=(r,n)=>sg(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>cg(t,r,n),t.parseAsync=async(r,n)=>ag(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>ug(t,r,n),t.spa=t.safeParseAsync,t.refine=(r,n)=>t.check(Pz(r,n)),t.superRefine=r=>t.check(Rz(r)),t.overwrite=r=>t.check(un(r)),t.optional=()=>ke(t),t.nullable=()=>dg(t),t.nullish=()=>ke(dg(t)),t.nonoptional=r=>wz(t,r),t.array=()=>te(t),t.or=r=>xe([t,r]),t.and=r=>Is(t,r),t.transform=r=>Ul(t,vg(r)),t.default=r=>yz(t,r),t.prefault=r=>_z(t,r),t.catch=r=>$z(t,r),t.pipe=r=>Ul(t,r),t.readonly=()=>Ez(t),t.describe=r=>{let n=t.clone();return yr.add(n,{description:r}),n},Object.defineProperty(t,"description",{get(){var r;return(r=yr.get(t))==null?void 0:r.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return yr.get(t);let n=t.clone();return yr.add(n,r[0]),n},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),mg=k("_ZodString",(t,e)=>{Bo.init(t,e),Se.init(t,e);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...n)=>t.check(kl(...n)),t.includes=(...n)=>t.check(zl(...n)),t.startsWith=(...n)=>t.check(El(...n)),t.endsWith=(...n)=>t.check(Tl(...n)),t.min=(...n)=>t.check(Un(...n)),t.max=(...n)=>t.check(Ss(...n)),t.length=(...n)=>t.check(zs(...n)),t.nonempty=(...n)=>t.check(Un(1,...n)),t.lowercase=n=>t.check($l(n)),t.uppercase=n=>t.check(Sl(n)),t.trim=()=>t.check(Rl()),t.normalize=(...n)=>t.check(Pl(...n)),t.toLowerCase=()=>t.check(Cl()),t.toUpperCase=()=>t.check(Il())}),LS=k("ZodString",(t,e)=>{Bo.init(t,e),mg.init(t,e),t.email=r=>t.check(Ku(US,r)),t.url=r=>t.check(tl(FS,r)),t.jwt=r=>t.check(gl(oz,r)),t.emoji=r=>t.check(rl(BS,r)),t.guid=r=>t.check(_s(lg,r)),t.uuid=r=>t.check(Yu(Cs,r)),t.uuidv4=r=>t.check(Xu(Cs,r)),t.uuidv6=r=>t.check(Qu(Cs,r)),t.uuidv7=r=>t.check(el(Cs,r)),t.nanoid=r=>t.check(nl(VS,r)),t.guid=r=>t.check(_s(lg,r)),t.cuid=r=>t.check(ol(HS,r)),t.cuid2=r=>t.check(il(GS,r)),t.ulid=r=>t.check(sl(JS,r)),t.base64=r=>t.check(ml(tz,r)),t.base64url=r=>t.check(fl(rz,r)),t.xid=r=>t.check(al(WS,r)),t.ksuid=r=>t.check(cl(KS,r)),t.ipv4=r=>t.check(ul(YS,r)),t.ipv6=r=>t.check(ll(XS,r)),t.cidrv4=r=>t.check(pl(QS,r)),t.cidrv6=r=>t.check(dl(ez,r)),t.e164=r=>t.check(hl(nz,r)),t.datetime=r=>t.check(Zl(r)),t.date=r=>t.check(Ml(r)),t.time=r=>t.check(ql(r)),t.duration=r=>t.check(Dl(r))});function _(t){return Wu(LS,t)}var _e=k("ZodStringFormat",(t,e)=>{he.init(t,e),mg.init(t,e)}),US=k("ZodEmail",(t,e)=>{pu.init(t,e),_e.init(t,e)});var lg=k("ZodGUID",(t,e)=>{uu.init(t,e),_e.init(t,e)});var Cs=k("ZodUUID",(t,e)=>{lu.init(t,e),_e.init(t,e)});var FS=k("ZodURL",(t,e)=>{du.init(t,e),_e.init(t,e)});var BS=k("ZodEmoji",(t,e)=>{mu.init(t,e),_e.init(t,e)});var VS=k("ZodNanoID",(t,e)=>{fu.init(t,e),_e.init(t,e)});var HS=k("ZodCUID",(t,e)=>{hu.init(t,e),_e.init(t,e)});var GS=k("ZodCUID2",(t,e)=>{gu.init(t,e),_e.init(t,e)});var JS=k("ZodULID",(t,e)=>{xu.init(t,e),_e.init(t,e)});var WS=k("ZodXID",(t,e)=>{vu.init(t,e),_e.init(t,e)});var KS=k("ZodKSUID",(t,e)=>{yu.init(t,e),_e.init(t,e)});var YS=k("ZodIPv4",(t,e)=>{bu.init(t,e),_e.init(t,e)});var XS=k("ZodIPv6",(t,e)=>{_u.init(t,e),_e.init(t,e)});var QS=k("ZodCIDRv4",(t,e)=>{wu.init(t,e),_e.init(t,e)});var ez=k("ZodCIDRv6",(t,e)=>{ku.init(t,e),_e.init(t,e)});var tz=k("ZodBase64",(t,e)=>{$u.init(t,e),_e.init(t,e)});var rz=k("ZodBase64URL",(t,e)=>{Su.init(t,e),_e.init(t,e)});var nz=k("ZodE164",(t,e)=>{zu.init(t,e),_e.init(t,e)});var oz=k("ZodJWT",(t,e)=>{Eu.init(t,e),_e.init(t,e)});var fg=k("ZodNumber",(t,e)=>{vs.init(t,e),Se.init(t,e),t.gt=(n,o)=>t.check(ks(n,o)),t.gte=(n,o)=>t.check(Go(n,o)),t.min=(n,o)=>t.check(Go(n,o)),t.lt=(n,o)=>t.check(ws(n,o)),t.lte=(n,o)=>t.check(Ho(n,o)),t.max=(n,o)=>t.check(Ho(n,o)),t.int=n=>t.check(pg(n)),t.safe=n=>t.check(pg(n)),t.positive=n=>t.check(ks(0,n)),t.nonnegative=n=>t.check(Go(0,n)),t.negative=n=>t.check(ws(0,n)),t.nonpositive=n=>t.check(Ho(0,n)),t.multipleOf=(n,o)=>t.check($s(n,o)),t.step=(n,o)=>t.check($s(n,o)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function ce(t){return xl(fg,t)}var iz=k("ZodNumberFormat",(t,e)=>{Tu.init(t,e),fg.init(t,e)});function pg(t){return vl(iz,t)}var sz=k("ZodBoolean",(t,e)=>{Pu.init(t,e),Se.init(t,e)});function Oe(t){return yl(sz,t)}var az=k("ZodNull",(t,e)=>{Ru.init(t,e),Se.init(t,e)});function hg(t){return bl(az,t)}var cz=k("ZodUnknown",(t,e)=>{Cu.init(t,e),Se.init(t,e)});function we(){return _l(cz)}var uz=k("ZodNever",(t,e)=>{Iu.init(t,e),Se.init(t,e)});function lz(t){return wl(uz,t)}var pz=k("ZodArray",(t,e)=>{Ou.init(t,e),Se.init(t,e),t.element=e.element,t.min=(r,n)=>t.check(Un(r,n)),t.nonempty=r=>t.check(Un(1,r)),t.max=(r,n)=>t.check(Ss(r,n)),t.length=(r,n)=>t.check(zs(r,n)),t.unwrap=()=>t.element});function te(t,e){return Yh(pz,t,e)}var gg=k("ZodObject",(t,e)=>{ys.init(t,e),Se.init(t,e),Q.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>st(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:we()}),t.loose=()=>t.clone({...t._zod.def,catchall:we()}),t.strict=()=>t.clone({...t._zod.def,catchall:lz()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>Q.extend(t,r),t.merge=r=>Q.merge(t,r),t.pick=r=>Q.pick(t,r),t.omit=r=>Q.omit(t,r),t.partial=(...r)=>Q.partial(yg,t,r[0]),t.required=(...r)=>Q.required(bg,t,r[0])});function R(t,e){let r={type:"object",get shape(){return Q.assignProp(this,"shape",{...t}),this.shape},...Q.normalizeParams(e)};return new gg(r)}function Qe(t,e){return new gg({type:"object",get shape(){return Q.assignProp(this,"shape",{...t}),this.shape},catchall:we(),...Q.normalizeParams(e)})}var xg=k("ZodUnion",(t,e)=>{bs.init(t,e),Se.init(t,e),t.options=e.options});function xe(t,e){return new xg({type:"union",options:t,...Q.normalizeParams(e)})}var dz=k("ZodDiscriminatedUnion",(t,e)=>{xg.init(t,e),ju.init(t,e)});function Fl(t,e,r){return new dz({type:"union",options:e,discriminator:t,...Q.normalizeParams(r)})}var mz=k("ZodIntersection",(t,e)=>{Au.init(t,e),Se.init(t,e)});function Is(t,e){return new mz({type:"intersection",left:t,right:e})}var fz=k("ZodRecord",(t,e)=>{Nu.init(t,e),Se.init(t,e),t.keyType=e.keyType,t.valueType=e.valueType});function ge(t,e,r){return new fz({type:"record",keyType:t,valueType:e,...Q.normalizeParams(r)})}var Ll=k("ZodEnum",(t,e)=>{Zu.init(t,e),Se.init(t,e),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(n,o)=>{let i={};for(let s of n)if(r.has(s))i[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Ll({...e,checks:[],...Q.normalizeParams(o),entries:i})},t.exclude=(n,o)=>{let i={...e.entries};for(let s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Ll({...e,checks:[],...Q.normalizeParams(o),entries:i})}});function st(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Ll({type:"enum",entries:r,...Q.normalizeParams(e)})}var hz=k("ZodLiteral",(t,e)=>{Mu.init(t,e),Se.init(t,e),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function j(t,e){return new hz({type:"literal",values:Array.isArray(t)?t:[t],...Q.normalizeParams(e)})}var gz=k("ZodTransform",(t,e)=>{qu.init(t,e),Se.init(t,e),t._zod.parse=(r,n)=>{r.addIssue=i=>{if(typeof i=="string")r.issues.push(Q.issue(i,r.value,e));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),s.continue??(s.continue=!0),r.issues.push(Q.issue(s))}};let o=e.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function vg(t){return new gz({type:"transform",transform:t})}var yg=k("ZodOptional",(t,e)=>{Du.init(t,e),Se.init(t,e),t.unwrap=()=>t._zod.def.innerType});function ke(t){return new yg({type:"optional",innerType:t})}var xz=k("ZodNullable",(t,e)=>{Lu.init(t,e),Se.init(t,e),t.unwrap=()=>t._zod.def.innerType});function dg(t){return new xz({type:"nullable",innerType:t})}var vz=k("ZodDefault",(t,e)=>{Uu.init(t,e),Se.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function yz(t,e){return new vz({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}var bz=k("ZodPrefault",(t,e)=>{Fu.init(t,e),Se.init(t,e),t.unwrap=()=>t._zod.def.innerType});function _z(t,e){return new bz({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}var bg=k("ZodNonOptional",(t,e)=>{Bu.init(t,e),Se.init(t,e),t.unwrap=()=>t._zod.def.innerType});function wz(t,e){return new bg({type:"nonoptional",innerType:t,...Q.normalizeParams(e)})}var kz=k("ZodCatch",(t,e)=>{Vu.init(t,e),Se.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function $z(t,e){return new kz({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Sz=k("ZodPipe",(t,e)=>{Hu.init(t,e),Se.init(t,e),t.in=e.in,t.out=e.out});function Ul(t,e){return new Sz({type:"pipe",in:t,out:e})}var zz=k("ZodReadonly",(t,e)=>{Gu.init(t,e),Se.init(t,e)});function Ez(t){return new zz({type:"readonly",innerType:t})}var _g=k("ZodCustom",(t,e)=>{Ju.init(t,e),Se.init(t,e)});function Tz(t){let e=new Me({check:"custom"});return e._zod.check=t,e}function wg(t,e){return Ol(_g,t??(()=>!0),e)}function Pz(t,e={}){return jl(_g,t,e)}function Rz(t){let e=Tz(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Q.issue(n,r.value,e._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),o.continue??(o.continue=!e._zod.def.abort),r.issues.push(Q.issue(o))}},t(r.value,r)));return e}function Bl(t,e){return Ul(vg(t),e)}ht(Vh());var Hl="2025-11-25";var kg=[Hl,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],wr="io.modelcontextprotocol/related-task",js="2.0",Ce=wg(t=>t!==null&&(typeof t=="object"||typeof t=="function")),$g=xe([_(),ce().int()]),Sg=_(),wq=Qe({ttl:ce().optional(),pollInterval:ce().optional()}),Cz=R({ttl:ce().optional()}),Iz=R({taskId:_()}),Gl=Qe({progressToken:$g.optional(),[wr]:Iz.optional()}),xt=R({_meta:Gl.optional()}),Ko=xt.extend({task:Cz.optional()}),zg=t=>Ko.safeParse(t).success,qe=R({method:_(),params:xt.loose().optional()}),_t=R({_meta:Gl.optional()}),wt=R({method:_(),params:_t.loose().optional()}),De=Qe({_meta:Gl.optional()}),As=xe([_(),ce().int()]),Eg=R({jsonrpc:j(js),id:As,...qe.shape}).strict(),Jl=t=>Eg.safeParse(t).success,Tg=R({jsonrpc:j(js),...wt.shape}).strict(),Pg=t=>Tg.safeParse(t).success,Wl=R({jsonrpc:j(js),id:As,result:De}).strict(),Yo=t=>Wl.safeParse(t).success;var M;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(M||(M={}));var Kl=R({jsonrpc:j(js),id:As.optional(),error:R({code:ce().int(),message:_(),data:we().optional()})}).strict();var Rg=t=>Kl.safeParse(t).success;var Cg=xe([Eg,Tg,Wl,Kl]),kq=xe([Wl,Kl]),Ns=De.strict(),Oz=_t.extend({requestId:As.optional(),reason:_().optional()}),Zs=wt.extend({method:j("notifications/cancelled"),params:Oz}),jz=R({src:_(),mimeType:_().optional(),sizes:te(_()).optional(),theme:st(["light","dark"]).optional()}),Xo=R({icons:te(jz).optional()}),Bn=R({name:_(),title:_().optional()}),Ig=Bn.extend({...Bn.shape,...Xo.shape,version:_(),websiteUrl:_().optional(),description:_().optional()}),Az=Is(R({applyDefaults:Oe().optional()}),ge(_(),we())),Nz=Bl(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,Is(R({form:Az.optional(),url:Ce.optional()}),ge(_(),we()).optional())),Zz=Qe({list:Ce.optional(),cancel:Ce.optional(),requests:Qe({sampling:Qe({createMessage:Ce.optional()}).optional(),elicitation:Qe({create:Ce.optional()}).optional()}).optional()}),Mz=Qe({list:Ce.optional(),cancel:Ce.optional(),requests:Qe({tools:Qe({call:Ce.optional()}).optional()}).optional()}),qz=R({experimental:ge(_(),Ce).optional(),sampling:R({context:Ce.optional(),tools:Ce.optional()}).optional(),elicitation:Nz.optional(),roots:R({listChanged:Oe().optional()}).optional(),tasks:Zz.optional(),extensions:ge(_(),Ce).optional()}),Dz=xt.extend({protocolVersion:_(),capabilities:qz,clientInfo:Ig}),Yl=qe.extend({method:j("initialize"),params:Dz});var Lz=R({experimental:ge(_(),Ce).optional(),logging:Ce.optional(),completions:Ce.optional(),prompts:R({listChanged:Oe().optional()}).optional(),resources:R({subscribe:Oe().optional(),listChanged:Oe().optional()}).optional(),tools:R({listChanged:Oe().optional()}).optional(),tasks:Mz.optional(),extensions:ge(_(),Ce).optional()}),Uz=De.extend({protocolVersion:_(),capabilities:Lz,serverInfo:Ig,instructions:_().optional()}),Xl=wt.extend({method:j("notifications/initialized"),params:_t.optional()});var Ms=qe.extend({method:j("ping"),params:xt.optional()}),Fz=R({progress:ce(),total:ke(ce()),message:ke(_())}),Bz=R({..._t.shape,...Fz.shape,progressToken:$g}),qs=wt.extend({method:j("notifications/progress"),params:Bz}),Vz=xt.extend({cursor:Sg.optional()}),Qo=qe.extend({params:Vz.optional()}),ei=De.extend({nextCursor:Sg.optional()}),Hz=st(["working","input_required","completed","failed","cancelled"]),ti=R({taskId:_(),status:Hz,ttl:xe([ce(),hg()]),createdAt:_(),lastUpdatedAt:_(),pollInterval:ke(ce()),statusMessage:ke(_())}),Vn=De.extend({task:ti}),Gz=_t.merge(ti),ri=wt.extend({method:j("notifications/tasks/status"),params:Gz}),Ds=qe.extend({method:j("tasks/get"),params:xt.extend({taskId:_()})}),Ls=De.merge(ti),Us=qe.extend({method:j("tasks/result"),params:xt.extend({taskId:_()})}),$q=De.loose(),Fs=Qo.extend({method:j("tasks/list")}),Bs=ei.extend({tasks:te(ti)}),Vs=qe.extend({method:j("tasks/cancel"),params:xt.extend({taskId:_()})}),Og=De.merge(ti),jg=R({uri:_(),mimeType:ke(_()),_meta:ge(_(),we()).optional()}),Ag=jg.extend({text:_()}),Ql=_().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),Ng=jg.extend({blob:Ql}),ni=st(["user","assistant"]),Hn=R({audience:te(ni).optional(),priority:ce().min(0).max(1).optional(),lastModified:Jo.datetime({offset:!0}).optional()}),Zg=R({...Bn.shape,...Xo.shape,uri:_(),description:ke(_()),mimeType:ke(_()),size:ke(ce()),annotations:Hn.optional(),_meta:ke(Qe({}))}),Jz=R({...Bn.shape,...Xo.shape,uriTemplate:_(),description:ke(_()),mimeType:ke(_()),annotations:Hn.optional(),_meta:ke(Qe({}))}),Hs=Qo.extend({method:j("resources/list")}),Wz=ei.extend({resources:te(Zg)}),Gs=Qo.extend({method:j("resources/templates/list")}),Kz=ei.extend({resourceTemplates:te(Jz)}),ep=xt.extend({uri:_()}),Yz=ep,Js=qe.extend({method:j("resources/read"),params:Yz}),Xz=De.extend({contents:te(xe([Ag,Ng]))}),Qz=wt.extend({method:j("notifications/resources/list_changed"),params:_t.optional()}),eE=ep,tE=qe.extend({method:j("resources/subscribe"),params:eE}),rE=ep,nE=qe.extend({method:j("resources/unsubscribe"),params:rE}),oE=_t.extend({uri:_()}),iE=wt.extend({method:j("notifications/resources/updated"),params:oE}),sE=R({name:_(),description:ke(_()),required:ke(Oe())}),aE=R({...Bn.shape,...Xo.shape,description:ke(_()),arguments:ke(te(sE)),_meta:ke(Qe({}))}),Ws=Qo.extend({method:j("prompts/list")}),cE=ei.extend({prompts:te(aE)}),uE=xt.extend({name:_(),arguments:ge(_(),_()).optional()}),Ks=qe.extend({method:j("prompts/get"),params:uE}),tp=R({type:j("text"),text:_(),annotations:Hn.optional(),_meta:ge(_(),we()).optional()}),rp=R({type:j("image"),data:Ql,mimeType:_(),annotations:Hn.optional(),_meta:ge(_(),we()).optional()}),np=R({type:j("audio"),data:Ql,mimeType:_(),annotations:Hn.optional(),_meta:ge(_(),we()).optional()}),lE=R({type:j("tool_use"),name:_(),id:_(),input:ge(_(),we()),_meta:ge(_(),we()).optional()}),pE=R({type:j("resource"),resource:xe([Ag,Ng]),annotations:Hn.optional(),_meta:ge(_(),we()).optional()}),dE=Zg.extend({type:j("resource_link")}),op=xe([tp,rp,np,dE,pE]),mE=R({role:ni,content:op}),fE=De.extend({description:_().optional(),messages:te(mE)}),hE=wt.extend({method:j("notifications/prompts/list_changed"),params:_t.optional()}),gE=R({title:_().optional(),readOnlyHint:Oe().optional(),destructiveHint:Oe().optional(),idempotentHint:Oe().optional(),openWorldHint:Oe().optional()}),xE=R({taskSupport:st(["required","optional","forbidden"]).optional()}),Mg=R({...Bn.shape,...Xo.shape,description:_().optional(),inputSchema:R({type:j("object"),properties:ge(_(),Ce).optional(),required:te(_()).optional()}).catchall(we()),outputSchema:R({type:j("object"),properties:ge(_(),Ce).optional(),required:te(_()).optional()}).catchall(we()).optional(),annotations:gE.optional(),execution:xE.optional(),_meta:ge(_(),we()).optional()}),Ys=Qo.extend({method:j("tools/list")}),vE=ei.extend({tools:te(Mg)}),Xs=De.extend({content:te(op).default([]),structuredContent:ge(_(),we()).optional(),isError:Oe().optional()}),Sq=Xs.or(De.extend({toolResult:we()})),yE=Ko.extend({name:_(),arguments:ge(_(),we()).optional()}),Gn=qe.extend({method:j("tools/call"),params:yE}),bE=wt.extend({method:j("notifications/tools/list_changed"),params:_t.optional()}),zq=R({autoRefresh:Oe().default(!0),debounceMs:ce().int().nonnegative().default(300)}),oi=st(["debug","info","notice","warning","error","critical","alert","emergency"]),_E=xt.extend({level:oi}),ip=qe.extend({method:j("logging/setLevel"),params:_E}),wE=_t.extend({level:oi,logger:_().optional(),data:we()}),kE=wt.extend({method:j("notifications/message"),params:wE}),$E=R({name:_().optional()}),SE=R({hints:te($E).optional(),costPriority:ce().min(0).max(1).optional(),speedPriority:ce().min(0).max(1).optional(),intelligencePriority:ce().min(0).max(1).optional()}),zE=R({mode:st(["auto","required","none"]).optional()}),EE=R({type:j("tool_result"),toolUseId:_().describe("The unique identifier for the corresponding tool call."),content:te(op).default([]),structuredContent:R({}).loose().optional(),isError:Oe().optional(),_meta:ge(_(),we()).optional()}),TE=Fl("type",[tp,rp,np]),Os=Fl("type",[tp,rp,np,lE,EE]),PE=R({role:ni,content:xe([Os,te(Os)]),_meta:ge(_(),we()).optional()}),RE=Ko.extend({messages:te(PE),modelPreferences:SE.optional(),systemPrompt:_().optional(),includeContext:st(["none","thisServer","allServers"]).optional(),temperature:ce().optional(),maxTokens:ce().int(),stopSequences:te(_()).optional(),metadata:Ce.optional(),tools:te(Mg).optional(),toolChoice:zE.optional()}),CE=qe.extend({method:j("sampling/createMessage"),params:RE}),ii=De.extend({model:_(),stopReason:ke(st(["endTurn","stopSequence","maxTokens"]).or(_())),role:ni,content:TE}),sp=De.extend({model:_(),stopReason:ke(st(["endTurn","stopSequence","maxTokens","toolUse"]).or(_())),role:ni,content:xe([Os,te(Os)])}),IE=R({type:j("boolean"),title:_().optional(),description:_().optional(),default:Oe().optional()}),OE=R({type:j("string"),title:_().optional(),description:_().optional(),minLength:ce().optional(),maxLength:ce().optional(),format:st(["email","uri","date","date-time"]).optional(),default:_().optional()}),jE=R({type:st(["number","integer"]),title:_().optional(),description:_().optional(),minimum:ce().optional(),maximum:ce().optional(),default:ce().optional()}),AE=R({type:j("string"),title:_().optional(),description:_().optional(),enum:te(_()),default:_().optional()}),NE=R({type:j("string"),title:_().optional(),description:_().optional(),oneOf:te(R({const:_(),title:_()})),default:_().optional()}),ZE=R({type:j("string"),title:_().optional(),description:_().optional(),enum:te(_()),enumNames:te(_()).optional(),default:_().optional()}),ME=xe([AE,NE]),qE=R({type:j("array"),title:_().optional(),description:_().optional(),minItems:ce().optional(),maxItems:ce().optional(),items:R({type:j("string"),enum:te(_())}),default:te(_()).optional()}),DE=R({type:j("array"),title:_().optional(),description:_().optional(),minItems:ce().optional(),maxItems:ce().optional(),items:R({anyOf:te(R({const:_(),title:_()}))}),default:te(_()).optional()}),LE=xe([qE,DE]),UE=xe([ZE,ME,LE]),FE=xe([UE,IE,OE,jE]),BE=Ko.extend({mode:j("form").optional(),message:_(),requestedSchema:R({type:j("object"),properties:ge(_(),FE),required:te(_()).optional()})}),VE=Ko.extend({mode:j("url"),message:_(),elicitationId:_(),url:_().url()}),HE=xe([BE,VE]),GE=qe.extend({method:j("elicitation/create"),params:HE}),JE=_t.extend({elicitationId:_()}),WE=wt.extend({method:j("notifications/elicitation/complete"),params:JE}),Jn=De.extend({action:st(["accept","decline","cancel"]),content:Bl(t=>t===null?void 0:t,ge(_(),xe([_(),ce(),Oe(),te(_())])).optional())}),KE=R({type:j("ref/resource"),uri:_()});var YE=R({type:j("ref/prompt"),name:_()}),XE=xt.extend({ref:xe([YE,KE]),argument:R({name:_(),value:_()}),context:R({arguments:ge(_(),_()).optional()}).optional()}),Qs=qe.extend({method:j("completion/complete"),params:XE});function qg(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function Dg(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var QE=De.extend({completion:Qe({values:te(_()).max(100),total:ke(ce().int()),hasMore:ke(Oe())})}),eT=R({uri:_().startsWith("file://"),name:_().optional(),_meta:ge(_(),we()).optional()}),tT=qe.extend({method:j("roots/list"),params:xt.optional()}),ap=De.extend({roots:te(eT)}),rT=wt.extend({method:j("notifications/roots/list_changed"),params:_t.optional()}),Eq=xe([Ms,Yl,Qs,ip,Ks,Ws,Hs,Gs,Js,tE,nE,Gn,Ys,Ds,Us,Fs,Vs]),Tq=xe([Zs,qs,Xl,rT,ri]),Pq=xe([Ns,ii,sp,Jn,ap,Ls,Bs,Vn]),Rq=xe([Ms,CE,GE,tT,Ds,Us,Fs,Vs]),Cq=xe([Zs,qs,kE,iE,Qz,bE,hE,ri,WE]),Iq=xe([Ns,Uz,QE,fE,cE,Wz,Kz,Xz,Xs,vE,Ls,Bs,Vn]),O=class t extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,r,n){if(e===M.UrlElicitationRequired&&n){let o=n;if(o.elicitations)return new Vl(o.elicitations,r)}return new t(e,r,n)}},Vl=class extends O{constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(M.UrlElicitationRequired,r,{elicitations:e})}get elicitations(){var e;return((e=this.data)==null?void 0:e.elicitations)??[]}};function kr(t){return t==="completed"||t==="failed"||t==="cancelled"}var Ug=Symbol("Let zodToJsonSchema decide on which parser to use");var Lg={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},Fg=t=>typeof t=="string"?{...Lg,name:t}:{...Lg,...t};var Bg=t=>{let e=Fg(t),r=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,o])=>[o._def,{def:o._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function cp(t,e,r,n){n!=null&&n.errorMessages&&r&&(t.errorMessage={...t.errorMessage,[e]:r})}function re(t,e,r,n,o){t[e]=r,cp(t,e,n,o)}var ea=(t,e)=>{let r=0;for(;r<t.length&&r<e.length&&t[r]===e[r];r++);return[(t.length-r).toString(),...e.slice(r)].join("/")};function $e(t){if(t.target!=="openAi")return{};let e=[...t.basePath,t.definitionPath,t.openAiAnyTypeName];return t.flags.hasReferencedOpenAiAnyType=!0,{$ref:t.$refStrategy==="relative"?ea(e,t.currentPath):e.join("/")}}function Vg(t,e){var n,o,i;let r={type:"array"};return(n=t.type)!=null&&n._def&&((i=(o=t.type)==null?void 0:o._def)==null?void 0:i.typeName)!==E.ZodAny&&(r.items=L(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&re(r,"minItems",t.minLength.value,t.minLength.message,e),t.maxLength&&re(r,"maxItems",t.maxLength.value,t.maxLength.message,e),t.exactLength&&(re(r,"minItems",t.exactLength.value,t.exactLength.message,e),re(r,"maxItems",t.exactLength.value,t.exactLength.message,e)),r}function Hg(t,e){let r={type:"integer",format:"int64"};if(!t.checks)return r;for(let n of t.checks)switch(n.kind){case"min":e.target==="jsonSchema7"?n.inclusive?re(r,"minimum",n.value,n.message,e):re(r,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(r.exclusiveMinimum=!0),re(r,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?re(r,"maximum",n.value,n.message,e):re(r,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(r.exclusiveMaximum=!0),re(r,"maximum",n.value,n.message,e));break;case"multipleOf":re(r,"multipleOf",n.value,n.message,e);break}return r}function Gg(){return{type:"boolean"}}function ta(t,e){return L(t.type._def,e)}var Jg=(t,e)=>L(t.innerType._def,e);function up(t,e,r){let n=r??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((o,i)=>up(t,e,o))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return nT(t,e)}}var nT=(t,e)=>{let r={type:"integer",format:"unix-time"};if(e.target==="openApi3")return r;for(let n of t.checks)switch(n.kind){case"min":re(r,"minimum",n.value,n.message,e);break;case"max":re(r,"maximum",n.value,n.message,e);break}return r};function Wg(t,e){return{...L(t.innerType._def,e),default:t.defaultValue()}}function Kg(t,e){return e.effectStrategy==="input"?L(t.schema._def,e):$e(e)}function Yg(t){return{type:"string",enum:Array.from(t.values)}}var oT=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function Xg(t,e){let r=[L(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),L(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(i=>!!i),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,o=[];return r.forEach(i=>{if(oT(i))o.push(...i.allOf),i.unevaluatedProperties===void 0&&(n=void 0);else{let s=i;if("additionalProperties"in i&&i.additionalProperties===!1){let{additionalProperties:a,...c}=i;s=c}else n=void 0;o.push(s)}}),o.length?{allOf:o,...n}:void 0}function Qg(t,e){let r=typeof t.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[t.value]}:{type:r==="bigint"?"integer":r,const:t.value}}var lp,Ot={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(lp===void 0&&(lp=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),lp),uuid:/^[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}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([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])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function ra(t,e){let r={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":re(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,e);break;case"max":re(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":jt(r,"email",n.message,e);break;case"format:idn-email":jt(r,"idn-email",n.message,e);break;case"pattern:zod":et(r,Ot.email,n.message,e);break}break;case"url":jt(r,"uri",n.message,e);break;case"uuid":jt(r,"uuid",n.message,e);break;case"regex":et(r,n.regex,n.message,e);break;case"cuid":et(r,Ot.cuid,n.message,e);break;case"cuid2":et(r,Ot.cuid2,n.message,e);break;case"startsWith":et(r,RegExp(`^${pp(n.value,e)}`),n.message,e);break;case"endsWith":et(r,RegExp(`${pp(n.value,e)}$`),n.message,e);break;case"datetime":jt(r,"date-time",n.message,e);break;case"date":jt(r,"date",n.message,e);break;case"time":jt(r,"time",n.message,e);break;case"duration":jt(r,"duration",n.message,e);break;case"length":re(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,e),re(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,e);break;case"includes":{et(r,RegExp(pp(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&jt(r,"ipv4",n.message,e),n.version!=="v4"&&jt(r,"ipv6",n.message,e);break}case"base64url":et(r,Ot.base64url,n.message,e);break;case"jwt":et(r,Ot.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&et(r,Ot.ipv4Cidr,n.message,e),n.version!=="v4"&&et(r,Ot.ipv6Cidr,n.message,e);break}case"emoji":et(r,Ot.emoji(),n.message,e);break;case"ulid":{et(r,Ot.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{jt(r,"binary",n.message,e);break}case"contentEncoding:base64":{re(r,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{et(r,Ot.base64,n.message,e);break}}break}case"nanoid":et(r,Ot.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function pp(t,e){return e.patternStrategy==="escape"?sT(t):t}var iT=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function sT(t){let e="";for(let r=0;r<t.length;r++)iT.has(t[r])||(e+="\\"),e+=t[r];return e}function jt(t,e,r,n){var o;t.format||(o=t.anyOf)!=null&&o.some(i=>i.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...r&&n.errorMessages&&{errorMessage:{format:r}}})):re(t,"format",e,r,n)}function et(t,e,r,n){var o;t.pattern||(o=t.allOf)!=null&&o.some(i=>i.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:ex(e,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):re(t,"pattern",ex(e,n),r,n)}function ex(t,e){var c;if(!e.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=r.i?t.source.toLowerCase():t.source,o="",i=!1,s=!1,a=!1;for(let u=0;u<n.length;u++){if(i){o+=n[u],i=!1;continue}if(r.i){if(s){if(n[u].match(/[a-z]/)){a?(o+=n[u],o+=`${n[u-2]}-${n[u]}`.toUpperCase(),a=!1):n[u+1]==="-"&&((c=n[u+2])!=null&&c.match(/[a-z]/))?(o+=n[u],a=!0):o+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){o+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(r.m){if(n[u]==="^"){o+=`(^|(?<=[\r
41
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let x of this.seen.entries()){let g=x[1];if(e===x[0]){s(x);continue}if(n.external){let b=(p=n.external.registry.get(x[0]))==null?void 0:p.id;if(e!==x[0]&&b){s(x);continue}}if((m=this.metadataRegistry.get(x[0]))==null?void 0:m.id){s(x);continue}if(g.cycle){s(x);continue}if(g.count>1&&n.reused==="ref"){s(x);continue}}let a=(x,g)=>{let y=this.seen.get(x),b=y.def??y.schema,$={...b};if(y.ref===null)return;let S=y.ref;if(y.ref=null,S){a(S,g);let L=this.seen.get(S).schema;L.$ref&&g.target==="draft-7"?(b.allOf=b.allOf??[],b.allOf.push(L)):(Object.assign(b,L),Object.assign(b,$))}y.isParent||this.override({zodSchema:x,jsonSchema:b,path:y.path??[]})};for(let x of[...this.seen.entries()].reverse())a(x[0],{target:this.target});let c={};if(this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),(h=n.external)!=null&&h.uri){let x=(d=n.external.registry.get(e))==null?void 0:d.id;if(!x)throw new Error("Schema is missing an `id` property");c.$id=n.external.uri(x)}Object.assign(c,o.def);let u=((f=n.external)==null?void 0:f.defs)??{};for(let x of this.seen.entries()){let g=x[1];g.def&&g.defId&&(u[g.defId]=g.def)}n.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?c.$defs=u:c.definitions=u);try{return JSON.parse(JSON.stringify(c))}catch{throw new Error("Error converting schema to JSON.")}}};function ql(t,e){if(t instanceof Go){let n=new Es(e),o={};for(let a of t._idmap.entries()){let[c,u]=a;n.process(u)}let i={},s={registry:t,uri:e==null?void 0:e.uri,defs:o};for(let a of t._idmap.entries()){let[c,u]=a;i[c]=n.emit(u,{...e,external:s})}if(Object.keys(o).length>0){let a=n.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[a]:o}}return{schemas:i}}let r=new Es(e);return r.process(t),r.emit(t,e)}function Ce(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let o=t._zod.def;switch(o.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Ce(o.element,r);case"object":{for(let i in o.shape)if(Ce(o.shape[i],r))return!0;return!1}case"union":{for(let i of o.options)if(Ce(i,r))return!0;return!1}case"intersection":return Ce(o.left,r)||Ce(o.right,r);case"tuple":{for(let i of o.items)if(Ce(i,r))return!0;return!!(o.rest&&Ce(o.rest,r))}case"record":return Ce(o.keyType,r)||Ce(o.valueType,r);case"map":return Ce(o.keyType,r)||Ce(o.valueType,r);case"set":return Ce(o.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Ce(o.innerType,r);case"lazy":return Ce(o.getter(),r);case"default":return Ce(o.innerType,r);case"prefault":return Ce(o.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return Ce(o.in,r)||Ce(o.out,r);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${o.type}`)}var D$=k("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");pe.init(t,e),t.def=e,t.parse=(r,n)=>iu(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>un(t,r,n),t.parseAsync=async(r,n)=>au(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>ln(t,r,n),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),t.clone=(r,n)=>gt(t,r,n),t.brand=()=>t,t.register=((r,n)=>(r.add(t,n),t))});var L$=k("ZodMiniObject",(t,e)=>{bs.init(t,e),D$.init(t,e),ee.defineLazy(t,"shape",()=>e.shape)});function Ul(t,e){let r={type:"object",get shape(){return ee.assignProp(this,"shape",{...t}),this.shape},...ee.normalizeParams(e)};return new L$(r)}function bt(t){return!!t._zod}function mn(t){let e=Object.values(t);if(e.length===0)return Ul({});let r=e.every(bt),n=e.every(o=>!bt(o));if(r)return Ul(t);if(n)return Vc(t);throw new Error("Mixed Zod versions detected in object shape.")}function kr(t,e){return bt(t)?un(t,e):t.safeParse(e)}async function Ps(t,e){return bt(t)?await ln(t,e):await t.safeParseAsync(e)}function Sr(t){var r,n;if(!t)return;let e;if(bt(t)?e=(n=(r=t._zod)==null?void 0:r.def)==null?void 0:n.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function Hn(t){var e;if(t){if(typeof t=="object"){let r=t,n=t;if(!r._def&&!n._zod){let o=Object.values(t);if(o.length>0&&o.every(i=>typeof i=="object"&&i!==null&&(i._def!==void 0||i._zod!==void 0||typeof i.parse=="function")))return mn(t)}}if(bt(t)){let n=(e=t._zod)==null?void 0:e.def;if(n&&(n.type==="object"||n.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function Rs(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function sg(t){return t.description}function ag(t){var r,n,o;if(bt(t))return((n=(r=t._zod)==null?void 0:r.def)==null?void 0:n.type)==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():((o=e._def)==null?void 0:o.typeName)==="ZodOptional"}function Is(t){var o;if(bt(t)){let s=(o=t._zod)==null?void 0:o.def;if(s){if(s.value!==void 0)return s.value;if(Array.isArray(s.values)&&s.values.length>0)return s.values[0]}}let r=t._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=t.value;if(n!==void 0)return n}var Ko={};qc(Ko,{ZodISODate:()=>ug,ZodISODateTime:()=>cg,ZodISODuration:()=>pg,ZodISOTime:()=>lg,date:()=>Bl,datetime:()=>Fl,duration:()=>Hl,time:()=>Vl});var cg=k("ZodISODateTime",(t,e)=>{Gh.init(t,e),we.init(t,e)});function Fl(t){return eg(cg,t)}var ug=k("ZodISODate",(t,e)=>{Jh.init(t,e),we.init(t,e)});function Bl(t){return tg(ug,t)}var lg=k("ZodISOTime",(t,e)=>{Wh.init(t,e),we.init(t,e)});function Vl(t){return rg(lg,t)}var pg=k("ZodISODuration",(t,e)=>{Kh.init(t,e),we.init(t,e)});function Hl(t){return ng(pg,t)}var dg=(t,e)=>{hs.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>nu(t,r)},flatten:{value:r=>ru(t,r)},addIssue:{value:r=>t.issues.push(r)},addIssues:{value:r=>t.issues.push(...r)},isEmpty:{get(){return t.issues.length===0}}})},wM=k("ZodError",dg),Yo=k("ZodError",dg,{Parent:Error});var mg=ou(Yo),fg=su(Yo),hg=cu(Yo),gg=uu(Yo);var Te=k("ZodType",(t,e)=>(pe.init(t,e),t.def=e,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone({...e,checks:[...e.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),t.clone=(r,n)=>gt(t,r,n),t.brand=()=>t,t.register=((r,n)=>(r.add(t,n),t)),t.parse=(r,n)=>mg(t,r,n,{callee:t.parse}),t.safeParse=(r,n)=>hg(t,r,n),t.parseAsync=async(r,n)=>fg(t,r,n,{callee:t.parseAsync}),t.safeParseAsync=async(r,n)=>gg(t,r,n),t.spa=t.safeParseAsync,t.refine=(r,n)=>t.check(Az(r,n)),t.superRefine=r=>t.check(Nz(r)),t.overwrite=r=>t.check(pn(r)),t.optional=()=>Se(t),t.nullable=()=>yg(t),t.nullish=()=>Se(yg(t)),t.nonoptional=r=>Ez(t,r),t.array=()=>te(t),t.or=r=>ve([t,r]),t.and=r=>Cs(t,r),t.transform=r=>Jl(t,$g(r)),t.default=r=>$z(t,r),t.prefault=r=>Tz(t,r),t.catch=r=>Rz(t,r),t.pipe=r=>Jl(t,r),t.readonly=()=>Cz(t),t.describe=r=>{let n=t.clone();return wr.add(n,{description:r}),n},Object.defineProperty(t,"description",{get(){var r;return(r=wr.get(t))==null?void 0:r.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return wr.get(t);let n=t.clone();return wr.add(n,r[0]),n},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),bg=k("_ZodString",(t,e)=>{Ho.init(t,e),Te.init(t,e);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...n)=>t.check(Pl(...n)),t.includes=(...n)=>t.check(Ol(...n)),t.startsWith=(...n)=>t.check(Cl(...n)),t.endsWith=(...n)=>t.check(jl(...n)),t.min=(...n)=>t.check(Vn(...n)),t.max=(...n)=>t.check(zs(...n)),t.length=(...n)=>t.check(Ts(...n)),t.nonempty=(...n)=>t.check(Vn(1,...n)),t.lowercase=n=>t.check(Rl(n)),t.uppercase=n=>t.check(Il(n)),t.trim=()=>t.check(Nl()),t.normalize=(...n)=>t.check(Al(...n)),t.toLowerCase=()=>t.check(Dl()),t.toUpperCase=()=>t.check(Ll())}),G$=k("ZodString",(t,e)=>{Ho.init(t,e),bg.init(t,e),t.email=r=>t.check(rl(J$,r)),t.url=r=>t.check(al(W$,r)),t.jwt=r=>t.check(wl(lz,r)),t.emoji=r=>t.check(cl(K$,r)),t.guid=r=>t.check(ws(xg,r)),t.uuid=r=>t.check(nl(Os,r)),t.uuidv4=r=>t.check(ol(Os,r)),t.uuidv6=r=>t.check(il(Os,r)),t.uuidv7=r=>t.check(sl(Os,r)),t.nanoid=r=>t.check(ul(Y$,r)),t.guid=r=>t.check(ws(xg,r)),t.cuid=r=>t.check(ll(X$,r)),t.cuid2=r=>t.check(pl(Q$,r)),t.ulid=r=>t.check(dl(ez,r)),t.base64=r=>t.check(yl(az,r)),t.base64url=r=>t.check(bl(cz,r)),t.xid=r=>t.check(ml(tz,r)),t.ksuid=r=>t.check(fl(rz,r)),t.ipv4=r=>t.check(hl(nz,r)),t.ipv6=r=>t.check(gl(oz,r)),t.cidrv4=r=>t.check(xl(iz,r)),t.cidrv6=r=>t.check(vl(sz,r)),t.e164=r=>t.check(_l(uz,r)),t.datetime=r=>t.check(Fl(r)),t.date=r=>t.check(Bl(r)),t.time=r=>t.check(Vl(r)),t.duration=r=>t.check(Hl(r))});function _(t){return tl(G$,t)}var we=k("ZodStringFormat",(t,e)=>{he.init(t,e),bg.init(t,e)}),J$=k("ZodEmail",(t,e)=>{xu.init(t,e),we.init(t,e)});var xg=k("ZodGUID",(t,e)=>{hu.init(t,e),we.init(t,e)});var Os=k("ZodUUID",(t,e)=>{gu.init(t,e),we.init(t,e)});var W$=k("ZodURL",(t,e)=>{vu.init(t,e),we.init(t,e)});var K$=k("ZodEmoji",(t,e)=>{yu.init(t,e),we.init(t,e)});var Y$=k("ZodNanoID",(t,e)=>{bu.init(t,e),we.init(t,e)});var X$=k("ZodCUID",(t,e)=>{_u.init(t,e),we.init(t,e)});var Q$=k("ZodCUID2",(t,e)=>{wu.init(t,e),we.init(t,e)});var ez=k("ZodULID",(t,e)=>{ku.init(t,e),we.init(t,e)});var tz=k("ZodXID",(t,e)=>{Su.init(t,e),we.init(t,e)});var rz=k("ZodKSUID",(t,e)=>{$u.init(t,e),we.init(t,e)});var nz=k("ZodIPv4",(t,e)=>{zu.init(t,e),we.init(t,e)});var oz=k("ZodIPv6",(t,e)=>{Tu.init(t,e),we.init(t,e)});var iz=k("ZodCIDRv4",(t,e)=>{Eu.init(t,e),we.init(t,e)});var sz=k("ZodCIDRv6",(t,e)=>{Pu.init(t,e),we.init(t,e)});var az=k("ZodBase64",(t,e)=>{Ru.init(t,e),we.init(t,e)});var cz=k("ZodBase64URL",(t,e)=>{Iu.init(t,e),we.init(t,e)});var uz=k("ZodE164",(t,e)=>{Ou.init(t,e),we.init(t,e)});var lz=k("ZodJWT",(t,e)=>{Cu.init(t,e),we.init(t,e)});var _g=k("ZodNumber",(t,e)=>{ys.init(t,e),Te.init(t,e),t.gt=(n,o)=>t.check(Ss(n,o)),t.gte=(n,o)=>t.check(Wo(n,o)),t.min=(n,o)=>t.check(Wo(n,o)),t.lt=(n,o)=>t.check(ks(n,o)),t.lte=(n,o)=>t.check(Jo(n,o)),t.max=(n,o)=>t.check(Jo(n,o)),t.int=n=>t.check(vg(n)),t.safe=n=>t.check(vg(n)),t.positive=n=>t.check(Ss(0,n)),t.nonnegative=n=>t.check(Wo(0,n)),t.negative=n=>t.check(ks(0,n)),t.nonpositive=n=>t.check(Jo(0,n)),t.multipleOf=(n,o)=>t.check($s(n,o)),t.step=(n,o)=>t.check($s(n,o)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function ce(t){return kl(_g,t)}var pz=k("ZodNumberFormat",(t,e)=>{ju.init(t,e),_g.init(t,e)});function vg(t){return Sl(pz,t)}var dz=k("ZodBoolean",(t,e)=>{Au.init(t,e),Te.init(t,e)});function Ne(t){return $l(dz,t)}var mz=k("ZodNull",(t,e)=>{Nu.init(t,e),Te.init(t,e)});function wg(t){return zl(mz,t)}var fz=k("ZodUnknown",(t,e)=>{Du.init(t,e),Te.init(t,e)});function ke(){return Tl(fz)}var hz=k("ZodNever",(t,e)=>{Lu.init(t,e),Te.init(t,e)});function gz(t){return El(hz,t)}var xz=k("ZodArray",(t,e)=>{Mu.init(t,e),Te.init(t,e),t.element=e.element,t.min=(r,n)=>t.check(Vn(r,n)),t.nonempty=r=>t.check(Vn(1,r)),t.max=(r,n)=>t.check(zs(r,n)),t.length=(r,n)=>t.check(Ts(r,n)),t.unwrap=()=>t.element});function te(t,e){return og(xz,t,e)}var kg=k("ZodObject",(t,e)=>{bs.init(t,e),Te.init(t,e),ee.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>at(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:ke()}),t.loose=()=>t.clone({...t._zod.def,catchall:ke()}),t.strict=()=>t.clone({...t._zod.def,catchall:gz()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>ee.extend(t,r),t.merge=r=>ee.merge(t,r),t.pick=r=>ee.pick(t,r),t.omit=r=>ee.omit(t,r),t.partial=(...r)=>ee.partial(zg,t,r[0]),t.required=(...r)=>ee.required(Tg,t,r[0])});function R(t,e){let r={type:"object",get shape(){return ee.assignProp(this,"shape",{...t}),this.shape},...ee.normalizeParams(e)};return new kg(r)}function et(t,e){return new kg({type:"object",get shape(){return ee.assignProp(this,"shape",{...t}),this.shape},catchall:ke(),...ee.normalizeParams(e)})}var Sg=k("ZodUnion",(t,e)=>{_s.init(t,e),Te.init(t,e),t.options=e.options});function ve(t,e){return new Sg({type:"union",options:t,...ee.normalizeParams(e)})}var vz=k("ZodDiscriminatedUnion",(t,e)=>{Sg.init(t,e),Zu.init(t,e)});function Wl(t,e,r){return new vz({type:"union",options:e,discriminator:t,...ee.normalizeParams(r)})}var yz=k("ZodIntersection",(t,e)=>{qu.init(t,e),Te.init(t,e)});function Cs(t,e){return new yz({type:"intersection",left:t,right:e})}var bz=k("ZodRecord",(t,e)=>{Uu.init(t,e),Te.init(t,e),t.keyType=e.keyType,t.valueType=e.valueType});function ge(t,e,r){return new bz({type:"record",keyType:t,valueType:e,...ee.normalizeParams(r)})}var Gl=k("ZodEnum",(t,e)=>{Fu.init(t,e),Te.init(t,e),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(n,o)=>{let i={};for(let s of n)if(r.has(s))i[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Gl({...e,checks:[],...ee.normalizeParams(o),entries:i})},t.exclude=(n,o)=>{let i={...e.entries};for(let s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Gl({...e,checks:[],...ee.normalizeParams(o),entries:i})}});function at(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Gl({type:"enum",entries:r,...ee.normalizeParams(e)})}var _z=k("ZodLiteral",(t,e)=>{Bu.init(t,e),Te.init(t,e),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function A(t,e){return new _z({type:"literal",values:Array.isArray(t)?t:[t],...ee.normalizeParams(e)})}var wz=k("ZodTransform",(t,e)=>{Vu.init(t,e),Te.init(t,e),t._zod.parse=(r,n)=>{r.addIssue=i=>{if(typeof i=="string")r.issues.push(ee.issue(i,r.value,e));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),s.continue??(s.continue=!0),r.issues.push(ee.issue(s))}};let o=e.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function $g(t){return new wz({type:"transform",transform:t})}var zg=k("ZodOptional",(t,e)=>{Hu.init(t,e),Te.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Se(t){return new zg({type:"optional",innerType:t})}var kz=k("ZodNullable",(t,e)=>{Gu.init(t,e),Te.init(t,e),t.unwrap=()=>t._zod.def.innerType});function yg(t){return new kz({type:"nullable",innerType:t})}var Sz=k("ZodDefault",(t,e)=>{Ju.init(t,e),Te.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function $z(t,e){return new Sz({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}var zz=k("ZodPrefault",(t,e)=>{Wu.init(t,e),Te.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Tz(t,e){return new zz({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():e}})}var Tg=k("ZodNonOptional",(t,e)=>{Ku.init(t,e),Te.init(t,e),t.unwrap=()=>t._zod.def.innerType});function Ez(t,e){return new Tg({type:"nonoptional",innerType:t,...ee.normalizeParams(e)})}var Pz=k("ZodCatch",(t,e)=>{Yu.init(t,e),Te.init(t,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Rz(t,e){return new Pz({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Iz=k("ZodPipe",(t,e)=>{Xu.init(t,e),Te.init(t,e),t.in=e.in,t.out=e.out});function Jl(t,e){return new Iz({type:"pipe",in:t,out:e})}var Oz=k("ZodReadonly",(t,e)=>{Qu.init(t,e),Te.init(t,e)});function Cz(t){return new Oz({type:"readonly",innerType:t})}var Eg=k("ZodCustom",(t,e)=>{el.init(t,e),Te.init(t,e)});function jz(t){let e=new qe({check:"custom"});return e._zod.check=t,e}function Pg(t,e){return Ml(Eg,t??(()=>!0),e)}function Az(t,e={}){return Zl(Eg,t,e)}function Nz(t){let e=jz(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(ee.issue(n,r.value,e._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),o.continue??(o.continue=!e._zod.def.abort),r.issues.push(ee.issue(o))}},t(r.value,r)));return e}function Kl(t,e){return Jl($g(t),e)}ht(Xh());var Xl="2025-11-25";var Rg=[Xl,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],$r="io.modelcontextprotocol/related-task",As="2.0",je=Pg(t=>t!==null&&(typeof t=="object"||typeof t=="function")),Ig=ve([_(),ce().int()]),Og=_(),NM=et({ttl:ce().optional(),pollInterval:ce().optional()}),Dz=R({ttl:ce().optional()}),Lz=R({taskId:_()}),Ql=et({progressToken:Ig.optional(),[$r]:Lz.optional()}),xt=R({_meta:Ql.optional()}),Xo=xt.extend({task:Dz.optional()}),Cg=t=>Xo.safeParse(t).success,Ue=R({method:_(),params:xt.loose().optional()}),_t=R({_meta:Ql.optional()}),wt=R({method:_(),params:_t.loose().optional()}),Fe=et({_meta:Ql.optional()}),Ns=ve([_(),ce().int()]),jg=R({jsonrpc:A(As),id:Ns,...Ue.shape}).strict(),ep=t=>jg.safeParse(t).success,Ag=R({jsonrpc:A(As),...wt.shape}).strict(),Ng=t=>Ag.safeParse(t).success,tp=R({jsonrpc:A(As),id:Ns,result:Fe}).strict(),Qo=t=>tp.safeParse(t).success;var M;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(M||(M={}));var rp=R({jsonrpc:A(As),id:Ns.optional(),error:R({code:ce().int(),message:_(),data:ke().optional()})}).strict();var Dg=t=>rp.safeParse(t).success;var Lg=ve([jg,Ag,tp,rp]),DM=ve([tp,rp]),Ds=Fe.strict(),Mz=_t.extend({requestId:Ns.optional(),reason:_().optional()}),Ls=wt.extend({method:A("notifications/cancelled"),params:Mz}),Zz=R({src:_(),mimeType:_().optional(),sizes:te(_()).optional(),theme:at(["light","dark"]).optional()}),ei=R({icons:te(Zz).optional()}),Gn=R({name:_(),title:_().optional()}),Mg=Gn.extend({...Gn.shape,...ei.shape,version:_(),websiteUrl:_().optional(),description:_().optional()}),qz=Cs(R({applyDefaults:Ne().optional()}),ge(_(),ke())),Uz=Kl(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,Cs(R({form:qz.optional(),url:je.optional()}),ge(_(),ke()).optional())),Fz=et({list:je.optional(),cancel:je.optional(),requests:et({sampling:et({createMessage:je.optional()}).optional(),elicitation:et({create:je.optional()}).optional()}).optional()}),Bz=et({list:je.optional(),cancel:je.optional(),requests:et({tools:et({call:je.optional()}).optional()}).optional()}),Vz=R({experimental:ge(_(),je).optional(),sampling:R({context:je.optional(),tools:je.optional()}).optional(),elicitation:Uz.optional(),roots:R({listChanged:Ne().optional()}).optional(),tasks:Fz.optional(),extensions:ge(_(),je).optional()}),Hz=xt.extend({protocolVersion:_(),capabilities:Vz,clientInfo:Mg}),np=Ue.extend({method:A("initialize"),params:Hz});var Gz=R({experimental:ge(_(),je).optional(),logging:je.optional(),completions:je.optional(),prompts:R({listChanged:Ne().optional()}).optional(),resources:R({subscribe:Ne().optional(),listChanged:Ne().optional()}).optional(),tools:R({listChanged:Ne().optional()}).optional(),tasks:Bz.optional(),extensions:ge(_(),je).optional()}),Jz=Fe.extend({protocolVersion:_(),capabilities:Gz,serverInfo:Mg,instructions:_().optional()}),op=wt.extend({method:A("notifications/initialized"),params:_t.optional()});var Ms=Ue.extend({method:A("ping"),params:xt.optional()}),Wz=R({progress:ce(),total:Se(ce()),message:Se(_())}),Kz=R({..._t.shape,...Wz.shape,progressToken:Ig}),Zs=wt.extend({method:A("notifications/progress"),params:Kz}),Yz=xt.extend({cursor:Og.optional()}),ti=Ue.extend({params:Yz.optional()}),ri=Fe.extend({nextCursor:Og.optional()}),Xz=at(["working","input_required","completed","failed","cancelled"]),ni=R({taskId:_(),status:Xz,ttl:ve([ce(),wg()]),createdAt:_(),lastUpdatedAt:_(),pollInterval:Se(ce()),statusMessage:Se(_())}),Jn=Fe.extend({task:ni}),Qz=_t.merge(ni),oi=wt.extend({method:A("notifications/tasks/status"),params:Qz}),qs=Ue.extend({method:A("tasks/get"),params:xt.extend({taskId:_()})}),Us=Fe.merge(ni),Fs=Ue.extend({method:A("tasks/result"),params:xt.extend({taskId:_()})}),LM=Fe.loose(),Bs=ti.extend({method:A("tasks/list")}),Vs=ri.extend({tasks:te(ni)}),Hs=Ue.extend({method:A("tasks/cancel"),params:xt.extend({taskId:_()})}),Zg=Fe.merge(ni),qg=R({uri:_(),mimeType:Se(_()),_meta:ge(_(),ke()).optional()}),Ug=qg.extend({text:_()}),ip=_().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),Fg=qg.extend({blob:ip}),ii=at(["user","assistant"]),Wn=R({audience:te(ii).optional(),priority:ce().min(0).max(1).optional(),lastModified:Ko.datetime({offset:!0}).optional()}),Bg=R({...Gn.shape,...ei.shape,uri:_(),description:Se(_()),mimeType:Se(_()),size:Se(ce()),annotations:Wn.optional(),_meta:Se(et({}))}),eT=R({...Gn.shape,...ei.shape,uriTemplate:_(),description:Se(_()),mimeType:Se(_()),annotations:Wn.optional(),_meta:Se(et({}))}),Gs=ti.extend({method:A("resources/list")}),tT=ri.extend({resources:te(Bg)}),Js=ti.extend({method:A("resources/templates/list")}),rT=ri.extend({resourceTemplates:te(eT)}),sp=xt.extend({uri:_()}),nT=sp,Ws=Ue.extend({method:A("resources/read"),params:nT}),oT=Fe.extend({contents:te(ve([Ug,Fg]))}),iT=wt.extend({method:A("notifications/resources/list_changed"),params:_t.optional()}),sT=sp,aT=Ue.extend({method:A("resources/subscribe"),params:sT}),cT=sp,uT=Ue.extend({method:A("resources/unsubscribe"),params:cT}),lT=_t.extend({uri:_()}),pT=wt.extend({method:A("notifications/resources/updated"),params:lT}),dT=R({name:_(),description:Se(_()),required:Se(Ne())}),mT=R({...Gn.shape,...ei.shape,description:Se(_()),arguments:Se(te(dT)),_meta:Se(et({}))}),Ks=ti.extend({method:A("prompts/list")}),fT=ri.extend({prompts:te(mT)}),hT=xt.extend({name:_(),arguments:ge(_(),_()).optional()}),Ys=Ue.extend({method:A("prompts/get"),params:hT}),ap=R({type:A("text"),text:_(),annotations:Wn.optional(),_meta:ge(_(),ke()).optional()}),cp=R({type:A("image"),data:ip,mimeType:_(),annotations:Wn.optional(),_meta:ge(_(),ke()).optional()}),up=R({type:A("audio"),data:ip,mimeType:_(),annotations:Wn.optional(),_meta:ge(_(),ke()).optional()}),gT=R({type:A("tool_use"),name:_(),id:_(),input:ge(_(),ke()),_meta:ge(_(),ke()).optional()}),xT=R({type:A("resource"),resource:ve([Ug,Fg]),annotations:Wn.optional(),_meta:ge(_(),ke()).optional()}),vT=Bg.extend({type:A("resource_link")}),lp=ve([ap,cp,up,vT,xT]),yT=R({role:ii,content:lp}),bT=Fe.extend({description:_().optional(),messages:te(yT)}),_T=wt.extend({method:A("notifications/prompts/list_changed"),params:_t.optional()}),wT=R({title:_().optional(),readOnlyHint:Ne().optional(),destructiveHint:Ne().optional(),idempotentHint:Ne().optional(),openWorldHint:Ne().optional()}),kT=R({taskSupport:at(["required","optional","forbidden"]).optional()}),Vg=R({...Gn.shape,...ei.shape,description:_().optional(),inputSchema:R({type:A("object"),properties:ge(_(),je).optional(),required:te(_()).optional()}).catchall(ke()),outputSchema:R({type:A("object"),properties:ge(_(),je).optional(),required:te(_()).optional()}).catchall(ke()).optional(),annotations:wT.optional(),execution:kT.optional(),_meta:ge(_(),ke()).optional()}),Xs=ti.extend({method:A("tools/list")}),ST=ri.extend({tools:te(Vg)}),Qs=Fe.extend({content:te(lp).default([]),structuredContent:ge(_(),ke()).optional(),isError:Ne().optional()}),MM=Qs.or(Fe.extend({toolResult:ke()})),$T=Xo.extend({name:_(),arguments:ge(_(),ke()).optional()}),Kn=Ue.extend({method:A("tools/call"),params:$T}),zT=wt.extend({method:A("notifications/tools/list_changed"),params:_t.optional()}),ZM=R({autoRefresh:Ne().default(!0),debounceMs:ce().int().nonnegative().default(300)}),si=at(["debug","info","notice","warning","error","critical","alert","emergency"]),TT=xt.extend({level:si}),pp=Ue.extend({method:A("logging/setLevel"),params:TT}),ET=_t.extend({level:si,logger:_().optional(),data:ke()}),PT=wt.extend({method:A("notifications/message"),params:ET}),RT=R({name:_().optional()}),IT=R({hints:te(RT).optional(),costPriority:ce().min(0).max(1).optional(),speedPriority:ce().min(0).max(1).optional(),intelligencePriority:ce().min(0).max(1).optional()}),OT=R({mode:at(["auto","required","none"]).optional()}),CT=R({type:A("tool_result"),toolUseId:_().describe("The unique identifier for the corresponding tool call."),content:te(lp).default([]),structuredContent:R({}).loose().optional(),isError:Ne().optional(),_meta:ge(_(),ke()).optional()}),jT=Wl("type",[ap,cp,up]),js=Wl("type",[ap,cp,up,gT,CT]),AT=R({role:ii,content:ve([js,te(js)]),_meta:ge(_(),ke()).optional()}),NT=Xo.extend({messages:te(AT),modelPreferences:IT.optional(),systemPrompt:_().optional(),includeContext:at(["none","thisServer","allServers"]).optional(),temperature:ce().optional(),maxTokens:ce().int(),stopSequences:te(_()).optional(),metadata:je.optional(),tools:te(Vg).optional(),toolChoice:OT.optional()}),DT=Ue.extend({method:A("sampling/createMessage"),params:NT}),ai=Fe.extend({model:_(),stopReason:Se(at(["endTurn","stopSequence","maxTokens"]).or(_())),role:ii,content:jT}),dp=Fe.extend({model:_(),stopReason:Se(at(["endTurn","stopSequence","maxTokens","toolUse"]).or(_())),role:ii,content:ve([js,te(js)])}),LT=R({type:A("boolean"),title:_().optional(),description:_().optional(),default:Ne().optional()}),MT=R({type:A("string"),title:_().optional(),description:_().optional(),minLength:ce().optional(),maxLength:ce().optional(),format:at(["email","uri","date","date-time"]).optional(),default:_().optional()}),ZT=R({type:at(["number","integer"]),title:_().optional(),description:_().optional(),minimum:ce().optional(),maximum:ce().optional(),default:ce().optional()}),qT=R({type:A("string"),title:_().optional(),description:_().optional(),enum:te(_()),default:_().optional()}),UT=R({type:A("string"),title:_().optional(),description:_().optional(),oneOf:te(R({const:_(),title:_()})),default:_().optional()}),FT=R({type:A("string"),title:_().optional(),description:_().optional(),enum:te(_()),enumNames:te(_()).optional(),default:_().optional()}),BT=ve([qT,UT]),VT=R({type:A("array"),title:_().optional(),description:_().optional(),minItems:ce().optional(),maxItems:ce().optional(),items:R({type:A("string"),enum:te(_())}),default:te(_()).optional()}),HT=R({type:A("array"),title:_().optional(),description:_().optional(),minItems:ce().optional(),maxItems:ce().optional(),items:R({anyOf:te(R({const:_(),title:_()}))}),default:te(_()).optional()}),GT=ve([VT,HT]),JT=ve([FT,BT,GT]),WT=ve([JT,LT,MT,ZT]),KT=Xo.extend({mode:A("form").optional(),message:_(),requestedSchema:R({type:A("object"),properties:ge(_(),WT),required:te(_()).optional()})}),YT=Xo.extend({mode:A("url"),message:_(),elicitationId:_(),url:_().url()}),XT=ve([KT,YT]),QT=Ue.extend({method:A("elicitation/create"),params:XT}),eE=_t.extend({elicitationId:_()}),tE=wt.extend({method:A("notifications/elicitation/complete"),params:eE}),Yn=Fe.extend({action:at(["accept","decline","cancel"]),content:Kl(t=>t===null?void 0:t,ge(_(),ve([_(),ce(),Ne(),te(_())])).optional())}),rE=R({type:A("ref/resource"),uri:_()});var nE=R({type:A("ref/prompt"),name:_()}),oE=xt.extend({ref:ve([nE,rE]),argument:R({name:_(),value:_()}),context:R({arguments:ge(_(),_()).optional()}).optional()}),ea=Ue.extend({method:A("completion/complete"),params:oE});function Hg(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function Gg(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var iE=Fe.extend({completion:et({values:te(_()).max(100),total:Se(ce().int()),hasMore:Se(Ne())})}),sE=R({uri:_().startsWith("file://"),name:_().optional(),_meta:ge(_(),ke()).optional()}),aE=Ue.extend({method:A("roots/list"),params:xt.optional()}),mp=Fe.extend({roots:te(sE)}),cE=wt.extend({method:A("notifications/roots/list_changed"),params:_t.optional()}),qM=ve([Ms,np,ea,pp,Ys,Ks,Gs,Js,Ws,aT,uT,Kn,Xs,qs,Fs,Bs,Hs]),UM=ve([Ls,Zs,op,cE,oi]),FM=ve([Ds,ai,dp,Yn,mp,Us,Vs,Jn]),BM=ve([Ms,DT,QT,aE,qs,Fs,Bs,Hs]),VM=ve([Ls,Zs,PT,pT,iT,zT,_T,oi,tE]),HM=ve([Ds,Jz,iE,bT,fT,tT,rT,oT,Qs,ST,Us,Vs,Jn]),j=class t extends Error{constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,r,n){if(e===M.UrlElicitationRequired&&n){let o=n;if(o.elicitations)return new Yl(o.elicitations,r)}return new t(e,r,n)}},Yl=class extends j{constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(M.UrlElicitationRequired,r,{elicitations:e})}get elicitations(){var e;return((e=this.data)==null?void 0:e.elicitations)??[]}};function zr(t){return t==="completed"||t==="failed"||t==="cancelled"}var Wg=Symbol("Let zodToJsonSchema decide on which parser to use");var Jg={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},Kg=t=>typeof t=="string"?{...Jg,name:t}:{...Jg,...t};var Yg=t=>{let e=Kg(t),r=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,o])=>[o._def,{def:o._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function fp(t,e,r,n){n!=null&&n.errorMessages&&r&&(t.errorMessage={...t.errorMessage,[e]:r})}function re(t,e,r,n,o){t[e]=r,fp(t,e,n,o)}var ta=(t,e)=>{let r=0;for(;r<t.length&&r<e.length&&t[r]===e[r];r++);return[(t.length-r).toString(),...e.slice(r)].join("/")};function $e(t){if(t.target!=="openAi")return{};let e=[...t.basePath,t.definitionPath,t.openAiAnyTypeName];return t.flags.hasReferencedOpenAiAnyType=!0,{$ref:t.$refStrategy==="relative"?ta(e,t.currentPath):e.join("/")}}function Xg(t,e){var n,o,i;let r={type:"array"};return(n=t.type)!=null&&n._def&&((i=(o=t.type)==null?void 0:o._def)==null?void 0:i.typeName)!==T.ZodAny&&(r.items=U(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&re(r,"minItems",t.minLength.value,t.minLength.message,e),t.maxLength&&re(r,"maxItems",t.maxLength.value,t.maxLength.message,e),t.exactLength&&(re(r,"minItems",t.exactLength.value,t.exactLength.message,e),re(r,"maxItems",t.exactLength.value,t.exactLength.message,e)),r}function Qg(t,e){let r={type:"integer",format:"int64"};if(!t.checks)return r;for(let n of t.checks)switch(n.kind){case"min":e.target==="jsonSchema7"?n.inclusive?re(r,"minimum",n.value,n.message,e):re(r,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(r.exclusiveMinimum=!0),re(r,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?re(r,"maximum",n.value,n.message,e):re(r,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(r.exclusiveMaximum=!0),re(r,"maximum",n.value,n.message,e));break;case"multipleOf":re(r,"multipleOf",n.value,n.message,e);break}return r}function ex(){return{type:"boolean"}}function ra(t,e){return U(t.type._def,e)}var tx=(t,e)=>U(t.innerType._def,e);function hp(t,e,r){let n=r??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((o,i)=>hp(t,e,o))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return uE(t,e)}}var uE=(t,e)=>{let r={type:"integer",format:"unix-time"};if(e.target==="openApi3")return r;for(let n of t.checks)switch(n.kind){case"min":re(r,"minimum",n.value,n.message,e);break;case"max":re(r,"maximum",n.value,n.message,e);break}return r};function rx(t,e){return{...U(t.innerType._def,e),default:t.defaultValue()}}function nx(t,e){return e.effectStrategy==="input"?U(t.schema._def,e):$e(e)}function ox(t){return{type:"string",enum:Array.from(t.values)}}var lE=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function ix(t,e){let r=[U(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),U(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(i=>!!i),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,o=[];return r.forEach(i=>{if(lE(i))o.push(...i.allOf),i.unevaluatedProperties===void 0&&(n=void 0);else{let s=i;if("additionalProperties"in i&&i.additionalProperties===!1){let{additionalProperties:a,...c}=i;s=c}else n=void 0;o.push(s)}}),o.length?{allOf:o,...n}:void 0}function sx(t,e){let r=typeof t.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[t.value]}:{type:r==="bigint"?"integer":r,const:t.value}}var gp,Ct={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(gp===void 0&&(gp=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),gp),uuid:/^[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}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([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])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function na(t,e){let r={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":re(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,e);break;case"max":re(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":jt(r,"email",n.message,e);break;case"format:idn-email":jt(r,"idn-email",n.message,e);break;case"pattern:zod":tt(r,Ct.email,n.message,e);break}break;case"url":jt(r,"uri",n.message,e);break;case"uuid":jt(r,"uuid",n.message,e);break;case"regex":tt(r,n.regex,n.message,e);break;case"cuid":tt(r,Ct.cuid,n.message,e);break;case"cuid2":tt(r,Ct.cuid2,n.message,e);break;case"startsWith":tt(r,RegExp(`^${xp(n.value,e)}`),n.message,e);break;case"endsWith":tt(r,RegExp(`${xp(n.value,e)}$`),n.message,e);break;case"datetime":jt(r,"date-time",n.message,e);break;case"date":jt(r,"date",n.message,e);break;case"time":jt(r,"time",n.message,e);break;case"duration":jt(r,"duration",n.message,e);break;case"length":re(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,e),re(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,e);break;case"includes":{tt(r,RegExp(xp(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&jt(r,"ipv4",n.message,e),n.version!=="v4"&&jt(r,"ipv6",n.message,e);break}case"base64url":tt(r,Ct.base64url,n.message,e);break;case"jwt":tt(r,Ct.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&tt(r,Ct.ipv4Cidr,n.message,e),n.version!=="v4"&&tt(r,Ct.ipv6Cidr,n.message,e);break}case"emoji":tt(r,Ct.emoji(),n.message,e);break;case"ulid":{tt(r,Ct.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{jt(r,"binary",n.message,e);break}case"contentEncoding:base64":{re(r,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{tt(r,Ct.base64,n.message,e);break}}break}case"nanoid":tt(r,Ct.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function xp(t,e){return e.patternStrategy==="escape"?dE(t):t}var pE=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function dE(t){let e="";for(let r=0;r<t.length;r++)pE.has(t[r])||(e+="\\"),e+=t[r];return e}function jt(t,e,r,n){var o;t.format||(o=t.anyOf)!=null&&o.some(i=>i.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...r&&n.errorMessages&&{errorMessage:{format:r}}})):re(t,"format",e,r,n)}function tt(t,e,r,n){var o;t.pattern||(o=t.allOf)!=null&&o.some(i=>i.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:ax(e,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):re(t,"pattern",ax(e,n),r,n)}function ax(t,e){var c;if(!e.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=r.i?t.source.toLowerCase():t.source,o="",i=!1,s=!1,a=!1;for(let u=0;u<n.length;u++){if(i){o+=n[u],i=!1;continue}if(r.i){if(s){if(n[u].match(/[a-z]/)){a?(o+=n[u],o+=`${n[u-2]}-${n[u]}`.toUpperCase(),a=!1):n[u+1]==="-"&&((c=n[u+2])!=null&&c.match(/[a-z]/))?(o+=n[u],a=!0):o+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){o+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(r.m){if(n[u]==="^"){o+=`(^|(?<=[\r
42
42
  ]))`;continue}else if(n[u]==="$"){o+=`($|(?=[\r
43
43
  ]))`;continue}}if(r.s&&n[u]==="."){o+=s?`${n[u]}\r
44
44
  `:`[${n[u]}\r
45
- ]`;continue}o+=n[u],n[u]==="\\"?i=!0:s&&n[u]==="]"?s=!1:!s&&n[u]==="["&&(s=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${e.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return o}function na(t,e){var n,o,i,s,a,c;if(e.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),e.target==="openApi3"&&((n=t.keyType)==null?void 0:n._def.typeName)===E.ZodEnum)return{type:"object",required:t.keyType._def.values,properties:t.keyType._def.values.reduce((u,l)=>({...u,[l]:L(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",l]})??$e(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let r={type:"object",additionalProperties:L(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return r;if(((o=t.keyType)==null?void 0:o._def.typeName)===E.ZodString&&((i=t.keyType._def.checks)!=null&&i.length)){let{type:u,...l}=ra(t.keyType._def,e);return{...r,propertyNames:l}}else{if(((s=t.keyType)==null?void 0:s._def.typeName)===E.ZodEnum)return{...r,propertyNames:{enum:t.keyType._def.values}};if(((a=t.keyType)==null?void 0:a._def.typeName)===E.ZodBranded&&t.keyType._def.type._def.typeName===E.ZodString&&((c=t.keyType._def.type._def.checks)!=null&&c.length)){let{type:u,...l}=ta(t.keyType._def,e);return{...r,propertyNames:l}}}return r}function tx(t,e){if(e.mapStrategy==="record")return na(t,e);let r=L(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||$e(e),n=L(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||$e(e);return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function rx(t){let e=t.values,n=Object.keys(t.values).filter(i=>typeof e[e[i]]!="number").map(i=>e[i]),o=Array.from(new Set(n.map(i=>typeof i)));return{type:o.length===1?o[0]==="string"?"string":"number":["string","number"],enum:n}}function nx(t){return t.target==="openAi"?void 0:{not:$e({...t,currentPath:[...t.currentPath,"not"]})}}function ox(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var si={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function sx(t,e){if(e.target==="openApi3")return ix(t,e);let r=t.options instanceof Map?Array.from(t.options.values()):t.options;if(r.every(n=>n._def.typeName in si&&(!n._def.checks||!n._def.checks.length))){let n=r.reduce((o,i)=>{let s=si[i._def.typeName];return s&&!o.includes(s)?[...o,s]:o},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=r.reduce((o,i)=>{let s=typeof i._def.value;switch(s){case"string":case"number":case"boolean":return[...o,s];case"bigint":return[...o,"integer"];case"object":if(i._def.value===null)return[...o,"null"];case"symbol":case"undefined":case"function":default:return o}},[]);if(n.length===r.length){let o=n.filter((i,s,a)=>a.indexOf(i)===s);return{type:o.length>1?o:o[0],enum:r.reduce((i,s)=>i.includes(s._def.value)?i:[...i,s._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,o)=>[...n,...o._def.values.filter(i=>!n.includes(i))],[])};return ix(t,e)}var ix=(t,e)=>{let r=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,o)=>L(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${o}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function ax(t,e){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length))return e.target==="openApi3"?{type:si[t.innerType._def.typeName],nullable:!0}:{type:[si[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=L(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let r=L(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function cx(t,e){let r={type:"number"};if(!t.checks)return r;for(let n of t.checks)switch(n.kind){case"int":r.type="integer",cp(r,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?re(r,"minimum",n.value,n.message,e):re(r,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(r.exclusiveMinimum=!0),re(r,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?re(r,"maximum",n.value,n.message,e):re(r,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(r.exclusiveMaximum=!0),re(r,"maximum",n.value,n.message,e));break;case"multipleOf":re(r,"multipleOf",n.value,n.message,e);break}return r}function ux(t,e){let r=e.target==="openAi",n={type:"object",properties:{}},o=[],i=t.shape();for(let a in i){let c=i[a];if(c===void 0||c._def===void 0)continue;let u=cT(c);u&&r&&(c._def.typeName==="ZodOptional"&&(c=c._def.innerType),c.isNullable()||(c=c.nullable()),u=!1);let l=L(c._def,{...e,currentPath:[...e.currentPath,"properties",a],propertyPath:[...e.currentPath,"properties",a]});l!==void 0&&(n.properties[a]=l,u||o.push(a))}o.length&&(n.required=o);let s=aT(t,e);return s!==void 0&&(n.additionalProperties=s),n}function aT(t,e){if(t.catchall._def.typeName!=="ZodNever")return L(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function cT(t){try{return t.isOptional()}catch{return!0}}var lx=(t,e)=>{var n;if(e.currentPath.toString()===((n=e.propertyPath)==null?void 0:n.toString()))return L(t.innerType._def,e);let r=L(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return r?{anyOf:[{not:$e(e)},r]}:$e(e)};var px=(t,e)=>{if(e.pipeStrategy==="input")return L(t.in._def,e);if(e.pipeStrategy==="output")return L(t.out._def,e);let r=L(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=L(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(o=>o!==void 0)}};function dx(t,e){return L(t.type._def,e)}function mx(t,e){let n={type:"array",uniqueItems:!0,items:L(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&re(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&re(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function fx(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((r,n)=>L(r._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:L(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((r,n)=>L(r._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function hx(t){return{not:$e(t)}}function gx(t){return $e(t)}var xx=(t,e)=>L(t.innerType._def,e);var vx=(t,e,r)=>{switch(e){case E.ZodString:return ra(t,r);case E.ZodNumber:return cx(t,r);case E.ZodObject:return ux(t,r);case E.ZodBigInt:return Hg(t,r);case E.ZodBoolean:return Gg();case E.ZodDate:return up(t,r);case E.ZodUndefined:return hx(r);case E.ZodNull:return ox(r);case E.ZodArray:return Vg(t,r);case E.ZodUnion:case E.ZodDiscriminatedUnion:return sx(t,r);case E.ZodIntersection:return Xg(t,r);case E.ZodTuple:return fx(t,r);case E.ZodRecord:return na(t,r);case E.ZodLiteral:return Qg(t,r);case E.ZodEnum:return Yg(t);case E.ZodNativeEnum:return rx(t);case E.ZodNullable:return ax(t,r);case E.ZodOptional:return lx(t,r);case E.ZodMap:return tx(t,r);case E.ZodSet:return mx(t,r);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return dx(t,r);case E.ZodNaN:case E.ZodNever:return nx(r);case E.ZodEffects:return Kg(t,r);case E.ZodAny:return $e(r);case E.ZodUnknown:return gx(r);case E.ZodDefault:return Wg(t,r);case E.ZodBranded:return ta(t,r);case E.ZodReadonly:return xx(t,r);case E.ZodCatch:return Jg(t,r);case E.ZodPipeline:return px(t,r);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(n=>{})(e)}};function L(t,e,r=!1){var a;let n=e.seen.get(t);if(e.override){let c=(a=e.override)==null?void 0:a.call(e,t,e,n,r);if(c!==Ug)return c}if(n&&!r){let c=uT(n,e);if(c!==void 0)return c}let o={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,o);let i=vx(t,t.typeName,e),s=typeof i=="function"?L(i(),e):i;if(s&&lT(t,e,s),e.postProcess){let c=e.postProcess(s,t,e);return o.jsonSchema=s,c}return o.jsonSchema=s,s}var uT=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:ea(e.currentPath,t.path)};case"none":case"seen":return t.path.length<e.currentPath.length&&t.path.every((r,n)=>e.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),$e(e)):e.$refStrategy==="seen"?$e(e):void 0}},lT=(t,e,r)=>(t.description&&(r.description=t.description,e.markdownDescription&&(r.markdownDescription=t.description)),r);var dp=(t,e)=>{let r=Bg(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((c,[u,l])=>({...c,[u]:L(l._def,{...r,currentPath:[...r.basePath,r.definitionPath,u]},!0)??$e(r)}),{}):void 0,o=typeof e=="string"?e:(e==null?void 0:e.nameStrategy)==="title"||e==null?void 0:e.name,i=L(t._def,o===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,o]},!1)??$e(r),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(i.title=s),r.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[r.openAiAnyTypeName]||(n[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}));let a=o===void 0?n?{...i,[r.definitionPath]:n}:i:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,o].join("/"),[r.definitionPath]:{...n,[o]:i}};return r.target==="jsonSchema7"?a.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(a.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in a||"oneOf"in a||"allOf"in a||"type"in a&&Array.isArray(a.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),a};function pT(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function mp(t,e){return bt(t)?Al(t,{target:pT(e==null?void 0:e.target),io:(e==null?void 0:e.pipeStrategy)??"input"}):dp(t,{strictUnions:(e==null?void 0:e.strictUnions)??!0,pipeStrategy:(e==null?void 0:e.pipeStrategy)??"input"})}function fp(t){let e=_r(t),r=e==null?void 0:e.method;if(!r)throw new Error("Schema is missing a method literal");let n=Rs(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function hp(t,e){let r=br(t,e);if(!r.success)throw r.error;return r.data}var dT=6e4,oa=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Zs,r=>{this._oncancel(r)}),this.setNotificationHandler(qs,r=>{this._onprogress(r)}),this.setRequestHandler(Ms,r=>({})),this._taskStore=e==null?void 0:e.taskStore,this._taskMessageQueue=e==null?void 0:e.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Ds,async(r,n)=>{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new O(M.InvalidParams,"Failed to retrieve task: Task not found");return{...o}}),this.setRequestHandler(Us,async(r,n)=>{let o=async()=>{var a;let i=r.params.taskId;if(this._taskMessageQueue){let c;for(;c=await this._taskMessageQueue.dequeue(i,n.sessionId);){if(c.type==="response"||c.type==="error"){let u=c.message,l=u.id,p=this._requestResolvers.get(l);if(p)if(this._requestResolvers.delete(l),c.type==="response")p(u);else{let m=u,h=new O(m.error.code,m.error.message,m.error.data);p(h)}else{let m=c.type==="response"?"Response":"Error";this._onerror(new Error(`${m} handler missing for request ${l}`))}continue}await((a=this._transport)==null?void 0:a.send(c.message,{relatedRequestId:n.requestId}))}}let s=await this._taskStore.getTask(i,n.sessionId);if(!s)throw new O(M.InvalidParams,`Task not found: ${i}`);if(!kr(s.status))return await this._waitForTaskUpdate(i,n.signal),await o();if(kr(s.status)){let c=await this._taskStore.getTaskResult(i,n.sessionId);return this._clearTaskQueue(i),{...c,_meta:{...c._meta,[wr]:{taskId:i}}}}return await o()};return await o()}),this.setRequestHandler(Fs,async(r,n)=>{var o;try{let{tasks:i,nextCursor:s}=await this._taskStore.listTasks((o=r.params)==null?void 0:o.cursor,n.sessionId);return{tasks:i,nextCursor:s,_meta:{}}}catch(i){throw new O(M.InvalidParams,`Failed to list tasks: ${i instanceof Error?i.message:String(i)}`)}}),this.setRequestHandler(Vs,async(r,n)=>{try{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new O(M.InvalidParams,`Task not found: ${r.params.taskId}`);if(kr(o.status))throw new O(M.InvalidParams,`Cannot cancel task in terminal status: ${o.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new O(M.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...i}}catch(o){throw o instanceof O?o:new O(M.InvalidRequest,`Failed to cancel task: ${o instanceof Error?o.message:String(o)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;let r=this._requestHandlerAbortControllers.get(e.params.requestId);r==null||r.abort(e.params.reason)}_setupTimeout(e,r,n,o,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(o,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:o})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),O.fromError(M.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var i,s,a;if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;let r=(i=this.transport)==null?void 0:i.onclose;this._transport.onclose=()=>{r==null||r(),this._onclose()};let n=(s=this.transport)==null?void 0:s.onerror;this._transport.onerror=c=>{n==null||n(c),this._onerror(c)};let o=(a=this._transport)==null?void 0:a.onmessage;this._transport.onmessage=(c,u)=>{o==null||o(c,u),Yo(c)||Rg(c)?this._onresponse(c):Jl(c)?this._onrequest(c,u):Pg(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var n;let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let o of this._timeoutInfo.values())clearTimeout(o.timeoutId);this._timeoutInfo.clear();for(let o of this._requestHandlerAbortControllers.values())o.abort();this._requestHandlerAbortControllers.clear();let r=O.fromError(M.ConnectionClosed,"Connection closed");this._transport=void 0,(n=this.onclose)==null||n.call(this);for(let o of e.values())o(r)}_onerror(e){var r;(r=this.onerror)==null||r.call(this,e)}_onnotification(e){let r=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,r){var l,p,m,h;let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,o=this._transport,i=(m=(p=(l=e.params)==null?void 0:l._meta)==null?void 0:p[wr])==null?void 0:m.taskId;if(n===void 0){let d={jsonrpc:"2.0",id:e.id,error:{code:M.MethodNotFound,message:"Method not found"}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:"error",message:d,timestamp:Date.now()},o==null?void 0:o.sessionId).catch(f=>this._onerror(new Error(`Failed to enqueue error response: ${f}`))):o==null||o.send(d).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let a=zg(e.params)?e.params.task:void 0,c=this._taskStore?this.requestTaskStore(e,o==null?void 0:o.sessionId):void 0,u={signal:s.signal,sessionId:o==null?void 0:o.sessionId,_meta:(h=e.params)==null?void 0:h._meta,sendNotification:async d=>{if(s.signal.aborted)return;let f={relatedRequestId:e.id};i&&(f.relatedTask={taskId:i}),await this.notification(d,f)},sendRequest:async(d,f,x)=>{var b;if(s.signal.aborted)throw new O(M.ConnectionClosed,"Request was cancelled");let g={...x,relatedRequestId:e.id};i&&!g.relatedTask&&(g.relatedTask={taskId:i});let y=((b=g.relatedTask)==null?void 0:b.taskId)??i;return y&&c&&await c.updateTaskStatus(y,"input_required"),await this.request(d,f,g)},authInfo:r==null?void 0:r.authInfo,requestId:e.id,requestInfo:r==null?void 0:r.requestInfo,taskId:i,taskStore:c,taskRequestedTtl:a==null?void 0:a.ttl,closeSSEStream:r==null?void 0:r.closeSSEStream,closeStandaloneSSEStream:r==null?void 0:r.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async d=>{if(s.signal.aborted)return;let f={result:d,jsonrpc:"2.0",id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"response",message:f,timestamp:Date.now()},o==null?void 0:o.sessionId):await(o==null?void 0:o.send(f))},async d=>{if(s.signal.aborted)return;let f={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(d.code)?d.code:M.InternalError,message:d.message??"Internal error",...d.data!==void 0&&{data:d.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"error",message:f,timestamp:Date.now()},o==null?void 0:o.sessionId):await(o==null?void 0:o.send(f))}).catch(d=>this._onerror(new Error(`Failed to send response: ${d}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,o=Number(r),i=this._progressHandlers.get(o);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let s=this._responseHandlers.get(o),a=this._timeoutInfo.get(o);if(a&&s&&a.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(c){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),s(c);return}i(n)}_onresponse(e){let r=Number(e.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),Yo(e))n(e);else{let s=new O(e.error.code,e.error.message,e.error.data);n(s)}return}let o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let i=!1;if(Yo(e)&&e.result&&typeof e.result=="object"){let s=e.result;if(s.task&&typeof s.task=="object"){let a=s.task;typeof a.taskId=="string"&&(i=!0,this._taskProgressTokens.set(a.taskId,r))}}if(i||this._progressHandlers.delete(r),Yo(e))o(e);else{let s=O.fromError(e.error.code,e.error.message,e.error.data);o(s)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)==null?void 0:e.close())}async*requestStream(e,r,n){var s,a;let{task:o}=n??{};if(!o){try{yield{type:"result",result:await this.request(e,r,n)}}catch(c){yield{type:"error",error:c instanceof O?c:new O(M.InternalError,String(c))}}return}let i;try{let c=await this.request(e,Vn,n);if(c.task)i=c.task.taskId,yield{type:"taskCreated",task:c.task};else throw new O(M.InternalError,"Task creation did not return a task");for(;;){let u=await this.getTask({taskId:i},n);if(yield{type:"taskStatus",task:u},kr(u.status)){u.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)}:u.status==="failed"?yield{type:"error",error:new O(M.InternalError,`Task ${i} failed`)}:u.status==="cancelled"&&(yield{type:"error",error:new O(M.InternalError,`Task ${i} was cancelled`)});return}if(u.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)};return}let l=u.pollInterval??((s=this._options)==null?void 0:s.defaultTaskPollInterval)??1e3;await new Promise(p=>setTimeout(p,l)),(a=n==null?void 0:n.signal)==null||a.throwIfAborted()}}catch(c){yield{type:"error",error:c instanceof O?c:new O(M.InternalError,String(c))}}}request(e,r,n){let{relatedRequestId:o,resumptionToken:i,onresumptiontoken:s,task:a,relatedTask:c}=n??{};return new Promise((u,l)=>{var y,b,S,$,Z;let p=N=>{l(N)};if(!this._transport){p(new Error("Not connected"));return}if(((y=this._options)==null?void 0:y.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(e.method),a&&this.assertTaskCapability(e.method)}catch(N){p(N);return}(b=n==null?void 0:n.signal)==null||b.throwIfAborted();let m=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:m};n!=null&&n.onprogress&&(this._progressHandlers.set(m,n.onprogress),h.params={...e.params,_meta:{...((S=e.params)==null?void 0:S._meta)||{},progressToken:m}}),a&&(h.params={...h.params,task:a}),c&&(h.params={...h.params,_meta:{...(($=h.params)==null?void 0:$._meta)||{},[wr]:c}});let d=N=>{var be;this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),(be=this._transport)==null||be.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(N)}},{relatedRequestId:o,resumptionToken:i,onresumptiontoken:s}).catch(Pt=>this._onerror(new Error(`Failed to send cancellation: ${Pt}`)));let ue=N instanceof O?N:new O(M.RequestTimeout,String(N));l(ue)};this._responseHandlers.set(m,N=>{var ue;if(!((ue=n==null?void 0:n.signal)!=null&&ue.aborted)){if(N instanceof Error)return l(N);try{let be=br(r,N.result);be.success?u(be.data):l(be.error)}catch(be){l(be)}}}),(Z=n==null?void 0:n.signal)==null||Z.addEventListener("abort",()=>{var N;d((N=n==null?void 0:n.signal)==null?void 0:N.reason)});let f=(n==null?void 0:n.timeout)??dT,x=()=>d(O.fromError(M.RequestTimeout,"Request timed out",{timeout:f}));this._setupTimeout(m,f,n==null?void 0:n.maxTotalTimeout,x,(n==null?void 0:n.resetTimeoutOnProgress)??!1);let g=c==null?void 0:c.taskId;if(g){let N=ue=>{let be=this._responseHandlers.get(m);be?be(ue):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,N),this._enqueueTaskMessage(g,{type:"request",message:h,timestamp:Date.now()}).catch(ue=>{this._cleanupTimeout(m),l(ue)})}else this._transport.send(h,{relatedRequestId:o,resumptionToken:i,onresumptiontoken:s}).catch(N=>{this._cleanupTimeout(m),l(N)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},Ls,r)}async getTaskResult(e,r,n){return this.request({method:"tasks/result",params:e},r,n)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},Bs,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},Og,r)}async notification(e,r){var a,c,u,l;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=(a=r==null?void 0:r.relatedTask)==null?void 0:a.taskId;if(n){let p={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...((c=e.params)==null?void 0:c._meta)||{},[wr]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:p,timestamp:Date.now()});return}if((((u=this._options)==null?void 0:u.debouncedNotificationMethods)??[]).includes(e.method)&&!e.params&&!(r!=null&&r.relatedRequestId)&&!(r!=null&&r.relatedTask)){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var m,h;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let p={...e,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(p={...p,params:{...p.params,_meta:{...((m=p.params)==null?void 0:m._meta)||{},[wr]:r.relatedTask}}}),(h=this._transport)==null||h.send(p,r).catch(d=>this._onerror(d))});return}let s={...e,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(s={...s,params:{...s.params,_meta:{...((l=s.params)==null?void 0:l._meta)||{},[wr]:r.relatedTask}}}),await this._transport.send(s,r)}setRequestHandler(e,r){let n=fp(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(o,i)=>{let s=hp(e,o);return Promise.resolve(r(s,i))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){let n=fp(e);this._notificationHandlers.set(n,o=>{let i=hp(e,o);return Promise.resolve(r(i))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,n){var i;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let o=(i=this._options)==null?void 0:i.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,n,o)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,r);for(let o of n)if(o.type==="request"&&Jl(o.message)){let i=o.message.id,s=this._requestResolvers.get(i);s?(s(new O(M.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(i)):this._onerror(new Error(`Resolver missing for request ${i} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){var o,i;let n=((o=this._options)==null?void 0:o.defaultTaskPollInterval)??1e3;try{let s=await((i=this._taskStore)==null?void 0:i.getTask(e));s!=null&&s.pollInterval&&(n=s.pollInterval)}catch{}return new Promise((s,a)=>{if(r.aborted){a(new O(M.InvalidRequest,"Request cancelled"));return}let c=setTimeout(s,n);r.addEventListener("abort",()=>{clearTimeout(c),a(new O(M.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async o=>{if(!e)throw new Error("No request provided");return await n.createTask(o,e.id,{method:e.method,params:e.params},r)},getTask:async o=>{let i=await n.getTask(o,r);if(!i)throw new O(M.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(o,i,s)=>{await n.storeTaskResult(o,i,s,r);let a=await n.getTask(o,r);if(a){let c=ri.parse({method:"notifications/tasks/status",params:a});await this.notification(c),kr(a.status)&&this._cleanupTaskProgressHandler(o)}},getTaskResult:o=>n.getTaskResult(o,r),updateTaskStatus:async(o,i,s)=>{let a=await n.getTask(o,r);if(!a)throw new O(M.InvalidParams,`Task "${o}" not found - it may have been cleaned up`);if(kr(a.status))throw new O(M.InvalidParams,`Cannot update task "${o}" from terminal status "${a.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(o,i,s,r);let c=await n.getTask(o,r);if(c){let u=ri.parse({method:"notifications/tasks/status",params:c});await this.notification(u),kr(c.status)&&this._cleanupTaskProgressHandler(o)}},listTasks:o=>n.listTasks(o,r)}}};function yx(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function bx(t,e){let r={...t};for(let n in e){let o=n,i=e[o];if(i===void 0)continue;let s=r[o];yx(s)&&yx(i)?r[o]={...s,...i}:r[o]=i}return r}var pb=le(tm(),1),db=le(lb(),1);function hj(){let t=new pb.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,db.default)(t),t}var qa=class{constructor(e){this._ajv=e??hj()}getValidator(e){let r="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var Da=class{constructor(e){this._server=e}requestStream(e,r,n){return this._server.requestStream(e,r,n)}createMessageStream(e,r){var o;let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!((o=n==null?void 0:n.sampling)!=null&&o.tools))throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages[e.messages.length-1],s=Array.isArray(i.content)?i.content:[i.content],a=s.some(p=>p.type==="tool_result"),c=e.messages.length>1?e.messages[e.messages.length-2]:void 0,u=c?Array.isArray(c.content)?c.content:[c.content]:[],l=u.some(p=>p.type==="tool_use");if(a){if(s.some(p=>p.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let p=new Set(u.filter(h=>h.type==="tool_use").map(h=>h.id)),m=new Set(s.filter(h=>h.type==="tool_result").map(h=>h.toolUseId));if(p.size!==m.size||![...p].every(h=>m.has(h)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},ii,r)}elicitInputStream(e,r){var s,a;let n=this._server.getClientCapabilities(),o=e.mode??"form";switch(o){case"url":{if(!((s=n==null?void 0:n.elicitation)!=null&&s.url))throw new Error("Client does not support url elicitation.");break}case"form":{if(!((a=n==null?void 0:n.elicitation)!=null&&a.form))throw new Error("Client does not support form elicitation.");break}}let i=o==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:i},Jn,r)}async getTask(e,r){return this._server.getTask({taskId:e},r)}async getTaskResult(e,r,n){return this._server.getTaskResult({taskId:e},r,n)}async listTasks(e,r){return this._server.listTasks(e?{cursor:e}:void 0,r)}async cancelTask(e,r){return this._server.cancelTask({taskId:e},r)}};function mb(t,e,r){var n;if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!((n=t.tools)!=null&&n.call))throw new Error(`${r} does not support task creation for tools/call (required for ${e})`);break;default:break}}function fb(t,e,r){var n,o;if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!((n=t.sampling)!=null&&n.createMessage))throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!((o=t.elicitation)!=null&&o.create))throw new Error(`${r} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var La=class extends oa{constructor(e,r){super(r),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(oi.options.map((n,o)=>[n,o])),this.isMessageIgnored=(n,o)=>{let i=this._loggingLevels.get(o);return i?this.LOG_LEVEL_SEVERITY.get(n)<this.LOG_LEVEL_SEVERITY.get(i):!1},this._capabilities=(r==null?void 0:r.capabilities)??{},this._instructions=r==null?void 0:r.instructions,this._jsonSchemaValidator=(r==null?void 0:r.jsonSchemaValidator)??new qa,this.setRequestHandler(Yl,n=>this._oninitialize(n)),this.setNotificationHandler(Xl,()=>{var n;return(n=this.oninitialized)==null?void 0:n.call(this)}),this._capabilities.logging&&this.setRequestHandler(ip,async(n,o)=>{var c;let i=o.sessionId||((c=o.requestInfo)==null?void 0:c.headers["mcp-session-id"])||void 0,{level:s}=n.params,a=oi.safeParse(s);return a.success&&this._loggingLevels.set(i,a.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new Da(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=bx(this._capabilities,e)}setRequestHandler(e,r){var a;let n=_r(e),o=n==null?void 0:n.method;if(!o)throw new Error("Schema is missing a method literal");let i;if(bt(o)){let c=o,u=(a=c._zod)==null?void 0:a.def;i=(u==null?void 0:u.value)??c.value}else{let c=o,u=c._def;i=(u==null?void 0:u.value)??c.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");if(i==="tools/call"){let c=async(u,l)=>{let p=br(Gn,u);if(!p.success){let f=p.error instanceof Error?p.error.message:String(p.error);throw new O(M.InvalidParams,`Invalid tools/call request: ${f}`)}let{params:m}=p.data,h=await Promise.resolve(r(u,l));if(m.task){let f=br(Vn,h);if(!f.success){let x=f.error instanceof Error?f.error.message:String(f.error);throw new O(M.InvalidParams,`Invalid task creation result: ${x}`)}return f.data}let d=br(Xs,h);if(!d.success){let f=d.error instanceof Error?d.error.message:String(d.error);throw new O(M.InvalidParams,`Invalid tools/call result: ${f}`)}return d.data};return super.setRequestHandler(e,c)}return super.setRequestHandler(e,r)}assertCapabilityForMethod(e){var r,n,o;switch(e){case"sampling/createMessage":if(!((r=this._clientCapabilities)!=null&&r.sampling))throw new Error(`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!((n=this._clientCapabilities)!=null&&n.elicitation))throw new Error(`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!((o=this._clientCapabilities)!=null&&o.roots))throw new Error(`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){var r,n;switch(e){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!((n=(r=this._clientCapabilities)==null?void 0:r.elicitation)!=null&&n.url))throw new Error(`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${e})`);break;case"ping":case"initialize":break}}assertTaskCapability(e){var r,n;fb((n=(r=this._clientCapabilities)==null?void 0:r.tasks)==null?void 0:n.requests,e,"Client")}assertTaskHandlerCapability(e){var r;this._capabilities&&mb((r=this._capabilities.tasks)==null?void 0:r.requests,e,"Server")}async _oninitialize(e){let r=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:kg.includes(r)?r:Hl,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},Ns)}async createMessage(e,r){var n,o;if((e.tools||e.toolChoice)&&!((o=(n=this._clientCapabilities)==null?void 0:n.sampling)!=null&&o.tools))throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages[e.messages.length-1],s=Array.isArray(i.content)?i.content:[i.content],a=s.some(p=>p.type==="tool_result"),c=e.messages.length>1?e.messages[e.messages.length-2]:void 0,u=c?Array.isArray(c.content)?c.content:[c.content]:[],l=u.some(p=>p.type==="tool_use");if(a){if(s.some(p=>p.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let p=new Set(u.filter(h=>h.type==="tool_use").map(h=>h.id)),m=new Set(s.filter(h=>h.type==="tool_result").map(h=>h.toolUseId));if(p.size!==m.size||![...p].every(h=>m.has(h)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},sp,r):this.request({method:"sampling/createMessage",params:e},ii,r)}async elicitInput(e,r){var o,i,s,a;switch(e.mode??"form"){case"url":{if(!((i=(o=this._clientCapabilities)==null?void 0:o.elicitation)!=null&&i.url))throw new Error("Client does not support url elicitation.");let c=e;return this.request({method:"elicitation/create",params:c},Jn,r)}case"form":{if(!((a=(s=this._clientCapabilities)==null?void 0:s.elicitation)!=null&&a.form))throw new Error("Client does not support form elicitation.");let c=e.mode==="form"?e:{...e,mode:"form"},u=await this.request({method:"elicitation/create",params:c},Jn,r);if(u.action==="accept"&&u.content&&c.requestedSchema)try{let p=this._jsonSchemaValidator.getValidator(c.requestedSchema)(u.content);if(!p.valid)throw new O(M.InvalidParams,`Elicitation response content does not match requested schema: ${p.errorMessage}`)}catch(l){throw l instanceof O?l:new O(M.InternalError,`Error validating elicitation response: ${l instanceof Error?l.message:String(l)}`)}return u}}}createElicitationCompletionNotifier(e,r){var n,o;if(!((o=(n=this._clientCapabilities)==null?void 0:n.elicitation)!=null&&o.url))throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},r)}async listRoots(e,r){return this.request({method:"roots/list",params:e},ap,r)}async sendLoggingMessage(e,r){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,r))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};var gb=Symbol.for("mcp.completable");function um(t){return!!t&&typeof t=="object"&&gb in t}function xb(t){let e=t[gb];return e==null?void 0:e.complete}var hb;(function(t){t.Completable="McpCompletable"})(hb||(hb={}));var gj=/^[A-Za-z0-9._-]{1,128}$/;function xj(t){let e=[];if(t.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(t.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${t.length})`]};if(t.includes(" ")&&e.push("Tool name contains spaces, which may cause parsing issues"),t.includes(",")&&e.push("Tool name contains commas, which may cause parsing issues"),(t.startsWith("-")||t.endsWith("-"))&&e.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(t.startsWith(".")||t.endsWith("."))&&e.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!gj.test(t)){let r=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,o,i)=>i.indexOf(n)===o);return e.push(`Tool name contains invalid characters: ${r.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function vj(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let r of e)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function lm(t){let e=xj(t);return vj(t,e.warnings),e.isValid}var Ua=class{constructor(e){this._mcpServer=e}registerToolTask(e,r,n){let o={taskSupport:"required",...r.execution};if(o.taskSupport==="forbidden")throw new Error(`Cannot register task-based tool '${e}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(e,r.title,r.description,r.inputSchema,r.outputSchema,r.annotations,o,r._meta,n)}};var Fa=class{constructor(e,r){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new La(e,r)}get experimental(){return this._experimental||(this._experimental={tasks:new Ua(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Ir(Ys)),this.server.assertCanSetRequestHandler(Ir(Gn)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Ys,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,r])=>{let n={name:e,title:r.title,description:r.description,inputSchema:(()=>{let o=Fn(r.inputSchema);return o?mp(o,{strictUnions:!0,pipeStrategy:"input"}):yj})(),annotations:r.annotations,execution:r.execution,_meta:r._meta};if(r.outputSchema){let o=Fn(r.outputSchema);o&&(n.outputSchema=mp(o,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(Gn,async(e,r)=>{var n;try{let o=this._registeredTools[e.params.name];if(!o)throw new O(M.InvalidParams,`Tool ${e.params.name} not found`);if(!o.enabled)throw new O(M.InvalidParams,`Tool ${e.params.name} disabled`);let i=!!e.params.task,s=(n=o.execution)==null?void 0:n.taskSupport,a="createTask"in o.handler;if((s==="required"||s==="optional")&&!a)throw new O(M.InternalError,`Tool ${e.params.name} has taskSupport '${s}' but was not registered with registerToolTask`);if(s==="required"&&!i)throw new O(M.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(s==="optional"&&!i&&a)return await this.handleAutomaticTaskPolling(o,e,r);let c=await this.validateToolInput(o,e.params.arguments,e.params.name),u=await this.executeToolHandler(o,c,r);return i||await this.validateToolOutput(o,u,e.params.name),u}catch(o){if(o instanceof O&&o.code===M.UrlElicitationRequired)throw o;return this.createToolError(o instanceof Error?o.message:String(o))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,r,n){if(!e.inputSchema)return;let i=Fn(e.inputSchema)??e.inputSchema,s=await Ts(i,r);if(!s.success){let a="error"in s?s.error:"Unknown error",c=Ps(a);throw new O(M.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${c}`)}return s.data}async validateToolOutput(e,r,n){if(!e.outputSchema||!("content"in r)||r.isError)return;if(!r.structuredContent)throw new O(M.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let o=Fn(e.outputSchema),i=await Ts(o,r.structuredContent);if(!i.success){let s="error"in i?i.error:"Unknown error",a=Ps(s);throw new O(M.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${a}`)}}async executeToolHandler(e,r,n){let o=e.handler;if("createTask"in o){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let a=o;return await Promise.resolve(a.createTask(r,s))}else{let a=o;return await Promise.resolve(a.createTask(s))}}if(e.inputSchema){let s=o;return await Promise.resolve(s(r,n))}else{let s=o;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,r,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let o=await this.validateToolInput(e,r.params.arguments,r.params.name),i=e.handler,s={...n,taskStore:n.taskStore},a=o?await Promise.resolve(i.createTask(o,s)):await Promise.resolve(i.createTask(s)),c=a.task.taskId,u=a.task,l=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(m=>setTimeout(m,l));let p=await n.taskStore.getTask(c);if(!p)throw new O(M.InternalError,`Task ${c} not found during polling`);u=p}return await n.taskStore.getTaskResult(c)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Ir(Qs)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Qs,async e=>{switch(e.params.ref.type){case"ref/prompt":return qg(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return Dg(e),this.handleResourceCompletion(e,e.params.ref);default:throw new O(M.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,r){let n=this._registeredPrompts[r.name];if(!n)throw new O(M.InvalidParams,`Prompt ${r.name} not found`);if(!n.enabled)throw new O(M.InvalidParams,`Prompt ${r.name} disabled`);if(!n.argsSchema)return Ni;let o=_r(n.argsSchema),i=o==null?void 0:o[e.params.argument.name];if(!um(i))return Ni;let s=xb(i);if(!s)return Ni;let a=await s(e.params.argument.value,e.params.context);return yb(a)}async handleResourceCompletion(e,r){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===r.uri);if(!n){if(this._registeredResources[r.uri])return Ni;throw new O(M.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let o=n.resourceTemplate.completeCallback(e.params.argument.name);if(!o)return Ni;let i=await o(e.params.argument.value,e.params.context);return yb(i)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Ir(Hs)),this.server.assertCanSetRequestHandler(Ir(Gs)),this.server.assertCanSetRequestHandler(Ir(Js)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Hs,async(e,r)=>{let n=Object.entries(this._registeredResources).filter(([i,s])=>s.enabled).map(([i,s])=>({uri:i,name:s.name,...s.metadata})),o=[];for(let i of Object.values(this._registeredResourceTemplates)){if(!i.resourceTemplate.listCallback)continue;let s=await i.resourceTemplate.listCallback(r);for(let a of s.resources)o.push({...i.metadata,...a})}return{resources:[...n,...o]}}),this.server.setRequestHandler(Gs,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([r,n])=>({name:r,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(Js,async(e,r)=>{let n=new URL(e.params.uri),o=this._registeredResources[n.toString()];if(o){if(!o.enabled)throw new O(M.InvalidParams,`Resource ${n} disabled`);return o.readCallback(n,r)}for(let i of Object.values(this._registeredResourceTemplates)){let s=i.resourceTemplate.uriTemplate.match(n.toString());if(s)return i.readCallback(n,s,r)}throw new O(M.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Ir(Ws)),this.server.assertCanSetRequestHandler(Ir(Ks)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Ws,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,r])=>({name:e,title:r.title,description:r.description,arguments:r.argsSchema?bj(r.argsSchema):void 0}))})),this.server.setRequestHandler(Ks,async(e,r)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new O(M.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new O(M.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let o=Fn(n.argsSchema),i=await Ts(o,e.params.arguments);if(!i.success){let c="error"in i?i.error:"Unknown error",u=Ps(c);throw new O(M.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=i.data,a=n.callback;return await Promise.resolve(a(s,r))}else{let o=n.callback;return await Promise.resolve(o(r))}}),this._promptHandlersInitialized=!0)}resource(e,r,...n){let o;typeof n[0]=="object"&&(o=n.shift());let i=n[0];if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let s=this._createRegisteredResource(e,void 0,r,o,i);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let s=this._createRegisteredResourceTemplate(e,void 0,r,o,i);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,r,n,o){if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let i=this._createRegisteredResource(e,n.title,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let i=this._createRegisteredResourceTemplate(e,n.title,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}}_createRegisteredResource(e,r,n,o,i){let s={name:e,title:r,metadata:o,readCallback:i,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({uri:null}),update:a=>{typeof a.uri<"u"&&a.uri!==n&&(delete this._registeredResources[n],a.uri&&(this._registeredResources[a.uri]=s)),typeof a.name<"u"&&(s.name=a.name),typeof a.title<"u"&&(s.title=a.title),typeof a.metadata<"u"&&(s.metadata=a.metadata),typeof a.callback<"u"&&(s.readCallback=a.callback),typeof a.enabled<"u"&&(s.enabled=a.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=s,s}_createRegisteredResourceTemplate(e,r,n,o,i){let s={resourceTemplate:n,title:r,metadata:o,readCallback:i,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let a=n.uriTemplate.variableNames;return Array.isArray(a)&&a.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,r,n,o,i){let s={title:r,description:n,argsSchema:o===void 0?void 0:pn(o),callback:i,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:a=>{typeof a.name<"u"&&a.name!==e&&(delete this._registeredPrompts[e],a.name&&(this._registeredPrompts[a.name]=s)),typeof a.title<"u"&&(s.title=a.title),typeof a.description<"u"&&(s.description=a.description),typeof a.argsSchema<"u"&&(s.argsSchema=pn(a.argsSchema)),typeof a.callback<"u"&&(s.callback=a.callback),typeof a.enabled<"u"&&(s.enabled=a.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,o&&Object.values(o).some(c=>{var l;let u=c instanceof ot?(l=c._def)==null?void 0:l.innerType:c;return um(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,r,n,o,i,s,a,c,u){lm(e);let l={title:r,description:n,inputSchema:vb(o),outputSchema:vb(i),annotations:s,execution:a,_meta:c,handler:u,enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&lm(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=l)),typeof p.title<"u"&&(l.title=p.title),typeof p.description<"u"&&(l.description=p.description),typeof p.paramsSchema<"u"&&(l.inputSchema=pn(p.paramsSchema)),typeof p.outputSchema<"u"&&(l.outputSchema=pn(p.outputSchema)),typeof p.callback<"u"&&(l.handler=p.callback),typeof p.annotations<"u"&&(l.annotations=p.annotations),typeof p._meta<"u"&&(l._meta=p._meta),typeof p.enabled<"u"&&(l.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=l,this.setToolRequestHandlers(),this.sendToolListChanged(),l}tool(e,...r){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,o,i,s;if(typeof r[0]=="string"&&(n=r.shift()),r.length>1){let c=r[0];if(pm(c))o=r.shift(),r.length>1&&typeof r[0]=="object"&&r[0]!==null&&!pm(r[0])&&(s=r.shift());else if(typeof c=="object"&&c!==null){if(Object.values(c).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=r.shift()}}let a=r[0];return this._createRegisteredTool(e,void 0,n,o,i,s,{taskSupport:"forbidden"},void 0,a)}registerTool(e,r,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:o,description:i,inputSchema:s,outputSchema:a,annotations:c,_meta:u}=r;return this._createRegisteredTool(e,o,i,s,a,c,{taskSupport:"forbidden"},u,n)}prompt(e,...r){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof r[0]=="string"&&(n=r.shift());let o;r.length>1&&(o=r.shift());let i=r[0],s=this._createRegisteredPrompt(e,void 0,n,o,i);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,r,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:o,description:i,argsSchema:s}=r,a=this._createRegisteredPrompt(e,o,i,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),a}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,r){return this.server.sendLoggingMessage(e,r)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var yj={type:"object",properties:{}};function bb(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function _b(t){return"_def"in t||"_zod"in t||bb(t)}function pm(t){return typeof t!="object"||t===null||_b(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(bb)}function vb(t){if(t){if(pm(t))return pn(t);if(!_b(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function bj(t){let e=_r(t);return e?Object.entries(e).map(([r,n])=>{let o=Qh(n),i=eg(n);return{name:r,description:o,required:!i}}):[]}function Ir(t){let e=_r(t),r=e==null?void 0:e.method;if(!r)throw new Error("Schema is missing a method literal");let n=Rs(r);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function yb(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Ni={completion:{values:[],hasMore:!1}};var dm=le(require("node:process"),1);var Ba=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
46
- `);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),_j(r)}clear(){this._buffer=void 0}};function _j(t){return Cg.parse(JSON.parse(t))}function wb(t){return JSON.stringify(t)+`
47
- `}var Va=class{constructor(e=dm.default.stdin,r=dm.default.stdout){this._stdin=e,this._stdout=r,this._readBuffer=new Ba,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{var o;(o=this.onerror)==null||o.call(this,n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){var e,r;for(;;)try{let n=this._readBuffer.readMessage();if(n===null)break;(e=this.onmessage)==null||e.call(this,n)}catch(n){(r=this.onerror)==null||r.call(this,n)}}async close(){var r;this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),(r=this.onclose)==null||r.call(this)}send(e){return new Promise(r=>{let n=wb(e);this._stdout.write(n)?r():this._stdout.once("drain",r)})}};var Ke=class{register(e){e.tool(this.name,this.description,this.schema.shape,this.execute.bind(this))}};function Zi(t,e){return function(){return t.apply(e,arguments)}}var{toString:wj}=Object.prototype,{getPrototypeOf:hm}=Object,Ga=(t=>e=>{let r=wj.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=t=>(t=t.toLowerCase(),e=>Ga(e)===t),Ja=t=>e=>typeof e===t,{isArray:fo}=Array,Mi=Ja("undefined");function kj(t){return t!==null&&!Mi(t)&&t.constructor!==null&&!Mi(t.constructor)&&Et(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var Sb=Xt("ArrayBuffer");function $j(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Sb(t.buffer),e}var Sj=Ja("string"),Et=Ja("function"),zb=Ja("number"),Wa=t=>t!==null&&typeof t=="object",zj=t=>t===!0||t===!1,Ha=t=>{if(Ga(t)!=="object")return!1;let e=hm(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ej=Xt("Date"),Tj=Xt("File"),Pj=Xt("Blob"),Rj=Xt("FileList"),Cj=t=>Wa(t)&&Et(t.pipe),Ij=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Et(t.append)&&((e=Ga(t))==="formdata"||e==="object"&&Et(t.toString)&&t.toString()==="[object FormData]"))},Oj=Xt("URLSearchParams"),jj=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qi(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),fo(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{let i=r?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length,a;for(n=0;n<s;n++)a=i[n],e.call(null,t[a],a,t)}}function Eb(t,e){e=e.toLowerCase();let r=Object.keys(t),n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}var Tb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pb=t=>!Mi(t)&&t!==Tb;function fm(){let{caseless:t}=Pb(this)&&this||{},e={},r=(n,o)=>{let i=t&&Eb(e,o)||o;Ha(e[i])&&Ha(n)?e[i]=fm(e[i],n):Ha(n)?e[i]=fm({},n):fo(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&qi(arguments[n],r);return e}var Aj=(t,e,r,{allOwnKeys:n}={})=>(qi(e,(o,i)=>{r&&Et(o)?t[i]=Zi(o,r):t[i]=o},{allOwnKeys:n}),t),Nj=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Zj=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Mj=(t,e,r,n)=>{let o,i,s,a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&hm(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},qj=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},Dj=t=>{if(!t)return null;if(fo(t))return t;let e=t.length;if(!zb(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Lj=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&hm(Uint8Array)),Uj=(t,e)=>{let n=(t&&t[Symbol.iterator]).call(t),o;for(;(o=n.next())&&!o.done;){let i=o.value;e.call(t,i[0],i[1])}},Fj=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Bj=Xt("HTMLFormElement"),Vj=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),kb=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Hj=Xt("RegExp"),Rb=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};qi(r,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(n[i]=s||o)}),Object.defineProperties(t,n)},Gj=t=>{Rb(t,(e,r)=>{if(Et(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=t[r];if(Et(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jj=(t,e)=>{let r={},n=o=>{o.forEach(i=>{r[i]=!0})};return fo(t)?n(t):n(String(t).split(e)),r},Wj=()=>{},Kj=(t,e)=>(t=+t,Number.isFinite(t)?t:e),mm="abcdefghijklmnopqrstuvwxyz",$b="0123456789",Cb={DIGIT:$b,ALPHA:mm,ALPHA_DIGIT:mm+mm.toUpperCase()+$b},Yj=(t=16,e=Cb.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function Xj(t){return!!(t&&Et(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}var Qj=t=>{let e=new Array(10),r=(n,o)=>{if(Wa(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;let i=fo(n)?[]:{};return qi(n,(s,a)=>{let c=r(s,o+1);!Mi(c)&&(i[a]=c)}),e[o]=void 0,i}}return n};return r(t,0)},e1=Xt("AsyncFunction"),t1=t=>t&&(Wa(t)||Et(t))&&Et(t.then)&&Et(t.catch),v={isArray:fo,isArrayBuffer:Sb,isBuffer:kj,isFormData:Ij,isArrayBufferView:$j,isString:Sj,isNumber:zb,isBoolean:zj,isObject:Wa,isPlainObject:Ha,isUndefined:Mi,isDate:Ej,isFile:Tj,isBlob:Pj,isRegExp:Hj,isFunction:Et,isStream:Cj,isURLSearchParams:Oj,isTypedArray:Lj,isFileList:Rj,forEach:qi,merge:fm,extend:Aj,trim:jj,stripBOM:Nj,inherits:Zj,toFlatObject:Mj,kindOf:Ga,kindOfTest:Xt,endsWith:qj,toArray:Dj,forEachEntry:Uj,matchAll:Fj,isHTMLForm:Bj,hasOwnProperty:kb,hasOwnProp:kb,reduceDescriptors:Rb,freezeMethods:Gj,toObjectSet:Jj,toCamelCase:Vj,noop:Wj,toFiniteNumber:Kj,findKey:Eb,global:Tb,isContextDefined:Pb,ALPHABET:Cb,generateString:Yj,isSpecCompliantForm:Xj,toJSONObject:Qj,isAsyncFn:e1,isThenable:t1};function ho(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}v.inherits(ho,Error,{toJSON:function(){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:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Ib=ho.prototype,Ob={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ob[t]={value:t}});Object.defineProperties(ho,Ob);Object.defineProperty(Ib,"isAxiosError",{value:!0});ho.from=(t,e,r,n,o,i)=>{let s=Object.create(Ib);return v.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ho.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};var C=ho;var Zw=le(Nw(),1),sc=Zw.default;function Am(t){return v.isPlainObject(t)||v.isArray(t)}function qw(t){return v.endsWith(t,"[]")?t.slice(0,-2):t}function Mw(t,e,r){return t?t.concat(e).map(function(o,i){return o=qw(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function DA(t){return v.isArray(t)&&!t.some(Am)}var LA=v.toFlatObject(v,{},null,function(e){return/^is[A-Z]/.test(e)});function UA(t,e,r){if(!v.isObject(t))throw new TypeError("target must be an object");e=e||new(sc||FormData),r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,x){return!v.isUndefined(x[f])});let n=r.metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(e);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(v.isDate(d))return d.toISOString();if(!c&&v.isBlob(d))throw new C("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(d)||v.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,f,x){let g=d;if(d&&!x&&typeof d=="object"){if(v.endsWith(f,"{}"))f=n?f:f.slice(0,-2),d=JSON.stringify(d);else if(v.isArray(d)&&DA(d)||(v.isFileList(d)||v.endsWith(f,"[]"))&&(g=v.toArray(d)))return f=qw(f),g.forEach(function(b,S){!(v.isUndefined(b)||b===null)&&e.append(s===!0?Mw([f],S,i):s===null?f:f+"[]",u(b))}),!1}return Am(d)?!0:(e.append(Mw(x,f,i),u(d)),!1)}let p=[],m=Object.assign(LA,{defaultVisitor:l,convertValue:u,isVisitable:Am});function h(d,f){if(!v.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+f.join("."));p.push(d),v.forEach(d,function(g,y){(!(v.isUndefined(g)||g===null)&&o.call(e,g,v.isString(y)?y.trim():y,f,m))===!0&&h(g,f?f.concat(y):[y])}),p.pop()}}if(!v.isObject(t))throw new TypeError("data must be an object");return h(t),e}var jr=UA;function Dw(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Lw(t,e){this._pairs=[],t&&jr(t,this,e)}var Uw=Lw.prototype;Uw.append=function(e,r){this._pairs.push([e,r])};Uw.toString=function(e){let r=e?function(n){return e.call(this,n,Dw)}:Dw;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var Fw=Lw;function FA(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $n(t,e,r){if(!e)return t;let n=r&&r.encode||FA,o=r&&r.serialize,i;if(o?i=o(e,r):i=v.isURLSearchParams(e)?e.toString():new Fw(e,r).toString(n),i){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}var Nm=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){v.forEach(this.handlers,function(n){n!==null&&e(n)})}},Zm=Nm;var bo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Bw=le(require("url"),1),Vw=Bw.default.URLSearchParams;var Te={isNode:!0,classes:{URLSearchParams:Vw,FormData:sc,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]};function Mm(t,e){return jr(t,new Te.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Te.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function BA(t){return v.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function VA(t){let e={},r=Object.keys(t),n,o=r.length,i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function HA(t){function e(r,n,o,i){let s=r[i++],a=Number.isFinite(+s),c=i>=r.length;return s=!s&&v.isArray(o)?o.length:s,c?(v.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!v.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&v.isArray(o[s])&&(o[s]=VA(o[s])),!a)}if(v.isFormData(t)&&v.isFunction(t.entries)){let r={};return v.forEachEntry(t,(n,o)=>{e(BA(n),o,r,0)}),r}return null}var ac=HA;function GA(t,e,r){if(v.isString(t))try{return(e||JSON.parse)(t),v.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var qm={transitional:bo,adapter:["xhr","http"],transformRequest:[function(e,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=v.isObject(e);if(i&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return o&&o?JSON.stringify(ac(e)):e;if(v.isArrayBuffer(e)||v.isBuffer(e)||v.isStream(e)||v.isFile(e)||v.isBlob(e))return e;if(v.isArrayBufferView(e))return e.buffer;if(v.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Mm(e,this.formSerializer).toString();if((a=v.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return jr(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),GA(e)):e}],transformResponse:[function(e){let r=this.transitional||qm.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&v.isString(e)&&(n&&!this.responseType||o)){let s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?C.from(a,C.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Te.classes.FormData,Blob:Te.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],t=>{qm.headers[t]={}});var _o=qm;var JA=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hw=t=>{let e={},r,n,o;return t&&t.split(`
48
- `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&JA[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};var Gw=Symbol("internals");function Bi(t){return t&&String(t).trim().toLowerCase()}function cc(t){return t===!1||t==null?t:v.isArray(t)?t.map(cc):String(t)}function WA(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}var KA=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Dm(t,e,r,n,o){if(v.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!v.isString(e)){if(v.isString(n))return e.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(e)}}function YA(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function XA(t,e){let r=v.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}var wo=class{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function i(a,c,u){let l=Bi(c);if(!l)throw new Error("header name must be a non-empty string");let p=v.findKey(o,l);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||c]=cc(a))}let s=(a,c)=>v.forEach(a,(u,l)=>i(u,l,c));return v.isPlainObject(e)||e instanceof this.constructor?s(e,r):v.isString(e)&&(e=e.trim())&&!KA(e)?s(Hw(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=Bi(e),e){let n=v.findKey(this,e);if(n){let o=this[n];if(!r)return o;if(r===!0)return WA(o);if(v.isFunction(r))return r.call(this,o,n);if(v.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Bi(e),e){let n=v.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Dm(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function i(s){if(s=Bi(s),s){let a=v.findKey(n,s);a&&(!r||Dm(n,n[a],a,r))&&(delete n[a],o=!0)}}return v.isArray(e)?e.forEach(i):i(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let i=r[n];(!e||Dm(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let r=this,n={};return v.forEach(this,(o,i)=>{let s=v.findKey(n,i);if(s){r[s]=cc(o),delete r[i];return}let a=e?YA(i):String(i).trim();a!==i&&delete r[i],r[a]=cc(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return v.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&v.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
49
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){let n=(this[Gw]=this[Gw]={accessors:{}}).accessors,o=this.prototype;function i(s){let a=Bi(s);n[a]||(XA(o,s),n[a]=!0)}return v.isArray(e)?e.forEach(i):i(e),this}};wo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(wo.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});v.freezeMethods(wo);var Ie=wo;function Vi(t,e){let r=this||_o,n=e||r,o=Ie.from(n.headers),i=n.data;return v.forEach(t,function(a){i=a.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Hi(t){return!!(t&&t.__CANCEL__)}function Jw(t,e,r){C.call(this,t??"canceled",C.ERR_CANCELED,e,r),this.name="CanceledError"}v.inherits(Jw,C,{__CANCEL__:!0});var Lt=Jw;function Ar(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new C("Request failed with status code "+r.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Lm(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Um(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Sn(t,e){return t&&!Lm(e)?Um(t,e):e}var T0=le(Kw(),1),P0=le(require("http"),1),R0=le(require("https"),1),C0=le(require("util"),1),I0=le(f0(),1),lr=le(require("zlib"),1);var Pn="1.6.0";function Yi(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var DN=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function sf(t,e,r){let n=r&&r.Blob||Te.classes.Blob,o=Yi(t);if(e===void 0&&n&&(e=!0),o==="data"){t=o.length?t.slice(o.length+1):t;let i=DN.exec(t);if(!i)throw new C("Invalid URL",C.ERR_INVALID_URL);let s=i[1],a=i[2],c=i[3],u=Buffer.from(decodeURIComponent(c),a?"base64":"utf8");if(e){if(!n)throw new C("Blob is not supported",C.ERR_NOT_SUPPORT);return new n([u],{type:s})}return u}throw new C("Unsupported protocol "+o,C.ERR_NOT_SUPPORT)}var Rn=le(require("stream"),1);var g0=le(require("stream"),1);function LN(t,e){let r=0,n=1e3/e,o=null;return function(s,a){let c=Date.now();if(s||c-r>n)return o&&(clearTimeout(o),o=null),r=c,t.apply(null,a);o||(o=setTimeout(()=>(o=null,r=Date.now(),t.apply(null,a)),n-(c-r)))}}var h0=LN;function UN(t,e){t=t||10;let r=new Array(t),n=new Array(t),o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){let u=Date.now(),l=n[i];s||(s=u),r[o]=c,n[o]=u;let p=i,m=0;for(;p!==o;)m+=r[p++],p=p%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;let h=l&&u-l;return h?Math.round(m*1e3/h):void 0}}var fc=UN;var hc=Symbol("internals"),af=class extends g0.default.Transform{constructor(e){e=v.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,c)=>!v.isUndefined(c[a])),super({readableHighWaterMark:e.chunkSize});let r=this,n=this[hc]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},o=fc(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",a=>{a==="progress"&&(n.isCaptured||(n.isCaptured=!0))});let i=0;n.updateProgress=h0(function(){let c=n.length,u=n.bytesSeen,l=u-i;if(!l||r.destroyed)return;let p=o(l);i=u,process.nextTick(()=>{r.emit("progress",{loaded:u,total:c,progress:c?u/c:void 0,bytes:l,rate:p||void 0,estimated:p&&c&&u<=c?(c-u)/p:void 0})})},n.ticksRate);let s=()=>{n.updateProgress(!0)};this.once("end",s),this.once("error",s)}_read(e){let r=this[hc];return r.onReadCallback&&r.onReadCallback(),super._read(e)}_transform(e,r,n){let o=this,i=this[hc],s=i.maxRate,a=this.readableHighWaterMark,c=i.timeWindow,u=1e3/c,l=s/u,p=i.minChunkSize!==!1?Math.max(i.minChunkSize,l*.01):0;function m(d,f){let x=Buffer.byteLength(d);i.bytesSeen+=x,i.bytes+=x,i.isCaptured&&i.updateProgress(),o.push(d)?process.nextTick(f):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(f)}}let h=(d,f)=>{let x=Buffer.byteLength(d),g=null,y=a,b,S=0;if(s){let $=Date.now();(!i.ts||(S=$-i.ts)>=c)&&(i.ts=$,b=l-i.bytes,i.bytes=b<0?-b:0,S=0),b=l-i.bytes}if(s){if(b<=0)return setTimeout(()=>{f(null,d)},c-S);b<y&&(y=b)}y&&x>y&&x-y>p&&(g=d.subarray(y),d=d.subarray(0,y)),m(d,g?()=>{process.nextTick(f,null,g)}:f)};h(e,function d(f,x){if(f)return n(f);x?h(x,d):n(null)})}setLength(e){return this[hc].length=+e,this}},cf=af;var O0=le(require("events"),1);var v0=require("util"),y0=require("stream");var{asyncIterator:x0}=Symbol,FN=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[x0]?yield*t[x0]():yield t},gc=FN;var BN=v.ALPHABET.ALPHA_DIGIT+"-_",Xi=new v0.TextEncoder,Zr=`\r
50
- `,VN=Xi.encode(Zr),HN=2,uf=class{constructor(e,r){let{escapeName:n}=this.constructor,o=v.isString(r),i=`Content-Disposition: form-data; name="${n(e)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${Zr}`;o?r=Xi.encode(String(r).replace(/\r?\n|\r\n?/g,Zr)):i+=`Content-Type: ${r.type||"application/octet-stream"}${Zr}`,this.headers=Xi.encode(i+Zr),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+HN,this.name=e,this.value=r}async*encode(){yield this.headers;let{value:e}=this;v.isTypedArray(e)?yield e:yield*gc(e),yield VN}static escapeName(e){return String(e).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},GN=(t,e,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:i=n+"-"+v.generateString(o,BN)}=r||{};if(!v.isFormData(t))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=Xi.encode("--"+i+Zr),a=Xi.encode("--"+i+"--"+Zr+Zr),c=a.byteLength,u=Array.from(t.entries()).map(([p,m])=>{let h=new uf(p,m);return c+=h.size,h});c+=s.byteLength*u.length,c=v.toFiniteNumber(c);let l={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(l["Content-Length"]=c),e&&e(l),y0.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield a})())},b0=GN;var _0=le(require("stream"),1),lf=class extends _0.default.Transform{__transform(e,r,n){this.push(e),n()}_transform(e,r,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(e,r,n)}},w0=lf;var JN=(t,e)=>v.isAsyncFn(t)?function(...r){let n=r.pop();t.apply(this,r).then(o=>{try{e?n(null,...e(o)):n(null,o)}catch(i){n(i)}},n)}:t,k0=JN;var $0={flush:lr.default.constants.Z_SYNC_FLUSH,finishFlush:lr.default.constants.Z_SYNC_FLUSH},WN={flush:lr.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:lr.default.constants.BROTLI_OPERATION_FLUSH},S0=v.isFunction(lr.default.createBrotliDecompress),{http:KN,https:YN}=I0.default,XN=/https:?/,z0=Te.protocols.map(t=>t+":");function QN(t){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t)}function j0(t,e,r){let n=e;if(!n&&n!==!1){let o=(0,T0.getProxyForUrl)(r);o&&(n=new URL(o))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let i=Buffer.from(n.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.headers.host=t.hostname+(t.port?":"+t.port:"");let o=n.hostname||n.host;t.hostname=o,t.host=o,t.port=n.port,t.path=r,n.protocol&&(t.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}t.beforeRedirects.proxy=function(i){j0(i,e,i.href)}}var eZ=typeof process<"u"&&v.kindOf(process)==="process",tZ=t=>new Promise((e,r)=>{let n,o,i=(c,u)=>{o||(o=!0,n&&n(c,u))},s=c=>{i(c),e(c)},a=c=>{i(c,!0),r(c)};t(s,a,c=>n=c).catch(a)}),rZ=({address:t,family:e})=>{if(!v.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},E0=(t,e)=>rZ(v.isObject(t)?t:{address:t,family:e}),A0=eZ&&function(e){return tZ(async function(n,o,i){let{data:s,lookup:a,family:c}=e,{responseType:u,responseEncoding:l}=e,p=e.method.toUpperCase(),m,h=!1,d;if(a){let F=k0(a,B=>v.isArray(B)?B:[B]);a=(B,Ve,Cn)=>{F(B,Ve,(Ye,mr,Ic)=>{let Ut=v.isArray(mr)?mr.map(Rt=>E0(Rt)):[E0(mr,Ic)];Ve.all?Cn(Ye,Ut):Cn(Ye,Ut[0].address,Ut[0].family)})}}let f=new O0.default,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g),f.removeAllListeners()};i((F,B)=>{m=!0,B&&(h=!0,x())});function g(F){f.emit("abort",!F||F.type?new Lt(null,e,d):F)}f.once("abort",o),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));let y=Sn(e.baseURL,e.url),b=new URL(y,"http://localhost"),S=b.protocol||z0[0];if(S==="data:"){let F;if(p!=="GET")return Ar(n,o,{status:405,statusText:"method not allowed",headers:{},config:e});try{F=sf(e.url,u==="blob",{Blob:e.env&&e.env.Blob})}catch(B){throw C.from(B,C.ERR_BAD_REQUEST,e)}return u==="text"?(F=F.toString(l),(!l||l==="utf8")&&(F=v.stripBOM(F))):u==="stream"&&(F=Rn.default.Readable.from(F)),Ar(n,o,{data:F,status:200,statusText:"OK",headers:new Ie,config:e})}if(z0.indexOf(S)===-1)return o(new C("Unsupported protocol "+S,C.ERR_BAD_REQUEST,e));let $=Ie.from(e.headers).normalize();$.set("User-Agent","axios/"+Pn,!1);let Z=e.onDownloadProgress,N=e.onUploadProgress,ue=e.maxRate,be,Pt;if(v.isSpecCompliantForm(s)){let F=$.getContentType(/boundary=([-_\w\d]{10,70})/i);s=b0(s,B=>{$.set(B)},{tag:`axios-${Pn}-boundary`,boundary:F&&F[1]||void 0})}else if(v.isFormData(s)&&v.isFunction(s.getHeaders)){if($.set(s.getHeaders()),!$.hasContentLength())try{let F=await C0.default.promisify(s.getLength).call(s);Number.isFinite(F)&&F>=0&&$.setContentLength(F)}catch{}}else if(v.isBlob(s))s.size&&$.setContentType(s.type||"application/octet-stream"),$.setContentLength(s.size||0),s=Rn.default.Readable.from(gc(s));else if(s&&!v.isStream(s)){if(!Buffer.isBuffer(s))if(v.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else if(v.isString(s))s=Buffer.from(s,"utf-8");else return o(new C("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",C.ERR_BAD_REQUEST,e));if($.setContentLength(s.length,!1),e.maxBodyLength>-1&&s.length>e.maxBodyLength)return o(new C("Request body larger than maxBodyLength limit",C.ERR_BAD_REQUEST,e))}let Co=v.toFiniteNumber($.getContentLength());v.isArray(ue)?(be=ue[0],Pt=ue[1]):be=Pt=ue,s&&(N||be)&&(v.isStream(s)||(s=Rn.default.Readable.from(s,{objectMode:!1})),s=Rn.default.pipeline([s,new cf({length:Co,maxRate:v.toFiniteNumber(be)})],v.noop),N&&s.on("progress",F=>{N(Object.assign(F,{upload:!0}))}));let dr;if(e.auth){let F=e.auth.username||"",B=e.auth.password||"";dr=F+":"+B}if(!dr&&b.username){let F=b.username,B=b.password;dr=F+":"+B}dr&&$.delete("authorization");let Io;try{Io=$n(b.pathname+b.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(F){let B=new Error(F.message);return B.config=e,B.url=e.url,B.exists=!0,o(B)}$.set("Accept-Encoding","gzip, compress, deflate"+(S0?", br":""),!1);let Be={path:Io,method:p,headers:$.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:dr,protocol:S,family:c,beforeRedirect:QN,beforeRedirects:{}};!v.isUndefined(a)&&(Be.lookup=a),e.socketPath?Be.socketPath=e.socketPath:(Be.hostname=b.hostname,Be.port=b.port,j0(Be,e.proxy,S+"//"+b.hostname+(b.port?":"+b.port:"")+Be.path));let ns,Cc=XN.test(Be.protocol);if(Be.agent=Cc?e.httpsAgent:e.httpAgent,e.transport?ns=e.transport:e.maxRedirects===0?ns=Cc?R0.default:P0.default:(e.maxRedirects&&(Be.maxRedirects=e.maxRedirects),e.beforeRedirect&&(Be.beforeRedirects.config=e.beforeRedirect),ns=Cc?YN:KN),e.maxBodyLength>-1?Be.maxBodyLength=e.maxBodyLength:Be.maxBodyLength=1/0,e.insecureHTTPParser&&(Be.insecureHTTPParser=e.insecureHTTPParser),d=ns.request(Be,function(B){if(d.destroyed)return;let Ve=[B],Cn=+B.headers["content-length"];if(Z){let Rt=new cf({length:v.toFiniteNumber(Cn),maxRate:v.toFiniteNumber(Pt)});Z&&Rt.on("progress",os=>{Z(Object.assign(os,{download:!0}))}),Ve.push(Rt)}let Ye=B,mr=B.req||d;if(e.decompress!==!1&&B.headers["content-encoding"])switch((p==="HEAD"||B.statusCode===204)&&delete B.headers["content-encoding"],(B.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Ve.push(lr.default.createUnzip($0)),delete B.headers["content-encoding"];break;case"deflate":Ve.push(new w0),Ve.push(lr.default.createUnzip($0)),delete B.headers["content-encoding"];break;case"br":S0&&(Ve.push(lr.default.createBrotliDecompress(WN)),delete B.headers["content-encoding"])}Ye=Ve.length>1?Rn.default.pipeline(Ve,v.noop):Ve[0];let Ic=Rn.default.finished(Ye,()=>{Ic(),x()}),Ut={status:B.statusCode,statusText:B.statusMessage,headers:new Ie(B.headers),config:e,request:mr};if(u==="stream")Ut.data=Ye,Ar(n,o,Ut);else{let Rt=[],os=0;Ye.on("data",function(Xe){Rt.push(Xe),os+=Xe.length,e.maxContentLength>-1&&os>e.maxContentLength&&(h=!0,Ye.destroy(),o(new C("maxContentLength size of "+e.maxContentLength+" exceeded",C.ERR_BAD_RESPONSE,e,mr)))}),Ye.on("aborted",function(){if(h)return;let Xe=new C("maxContentLength size of "+e.maxContentLength+" exceeded",C.ERR_BAD_RESPONSE,e,mr);Ye.destroy(Xe),o(Xe)}),Ye.on("error",function(Xe){d.destroyed||o(C.from(Xe,null,e,mr))}),Ye.on("end",function(){try{let Xe=Rt.length===1?Rt[0]:Buffer.concat(Rt);u!=="arraybuffer"&&(Xe=Xe.toString(l),(!l||l==="utf8")&&(Xe=v.stripBOM(Xe))),Ut.data=Xe}catch(Xe){return o(C.from(Xe,null,e,Ut.request,Ut))}Ar(n,o,Ut)})}f.once("abort",Rt=>{Ye.destroyed||(Ye.emit("error",Rt),Ye.destroy())})}),f.once("abort",F=>{o(F),d.destroy(F)}),d.on("error",function(B){o(C.from(B,null,e,d))}),d.on("socket",function(B){B.setKeepAlive(!0,1e3*60)}),e.timeout){let F=parseInt(e.timeout,10);if(Number.isNaN(F)){o(new C("error trying to parse `config.timeout` to int",C.ERR_BAD_OPTION_VALUE,e,d));return}d.setTimeout(F,function(){if(m)return;let Ve=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",Cn=e.transitional||bo;e.timeoutErrorMessage&&(Ve=e.timeoutErrorMessage),o(new C(Ve,Cn.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,d)),g()})}if(v.isStream(s)){let F=!1,B=!1;s.on("end",()=>{F=!0}),s.once("error",Ve=>{B=!0,d.destroy(Ve)}),s.on("close",()=>{!F&&!B&&g(new Lt("Request stream has been aborted",e,d))}),s.pipe(d)}else d.end(s)})};var N0=Te.isStandardBrowserEnv?(function(){return{write:function(r,n,o,i,s,a){let c=[];c.push(r+"="+encodeURIComponent(n)),v.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),v.isString(i)&&c.push("path="+i),v.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){let n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})();var Z0=Te.isStandardBrowserEnv?(function(){let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){let a=v.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}})():(function(){return function(){return!0}})();function M0(t,e){let r=0,n=fc(50,250);return o=>{let i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a),u=i<=s;r=i;let l={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:o};l[e?"download":"upload"]=!0,t(l)}}var nZ=typeof XMLHttpRequest<"u",q0=nZ&&function(t){return new Promise(function(r,n){let o=t.data,i=Ie.from(t.headers).normalize(),s=t.responseType,a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}let u;v.isFormData(o)&&(Te.isStandardBrowserEnv||Te.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?v.isString(u=i.getContentType())&&i.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(t.auth){let d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+f))}let p=Sn(t.baseURL,t.url);l.open(t.method.toUpperCase(),$n(p,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function m(){if(!l)return;let d=Ie.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:t,request:l};Ar(function(y){r(y),c()},function(y){n(y),c()},x),l=null}if("onloadend"in l?l.onloadend=m:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(m)},l.onabort=function(){l&&(n(new C("Request aborted",C.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new C("Network Error",C.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let f=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",x=t.transitional||bo;t.timeoutErrorMessage&&(f=t.timeoutErrorMessage),n(new C(f,x.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,t,l)),l=null},Te.isStandardBrowserEnv){let d=Z0(p)&&t.xsrfCookieName&&N0.read(t.xsrfCookieName);d&&i.set(t.xsrfHeaderName,d)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&v.forEach(i.toJSON(),function(f,x){l.setRequestHeader(x,f)}),v.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",M0(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",M0(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=d=>{l&&(n(!d||d.type?new Lt(null,t,l):d),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));let h=Yi(p);if(h&&Te.protocols.indexOf(h)===-1){n(new C("Unsupported protocol "+h+":",C.ERR_BAD_REQUEST,t));return}l.send(o||null)})};var pf={http:A0,xhr:q0};v.forEach(pf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});var D0=t=>`- ${t}`,oZ=t=>v.isFunction(t)||t===null||t===!1,xc={getAdapter:t=>{t=v.isArray(t)?t:[t];let{length:e}=t,r,n,o={};for(let i=0;i<e;i++){r=t[i];let s;if(n=r,!oZ(r)&&(n=pf[(s=String(r)).toLowerCase()],n===void 0))throw new C(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){let i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build")),s=e?i.length>1?`since :
51
- `+i.map(D0).join(`
52
- `):" "+D0(i[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:pf};function df(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Lt(null,t)}function vc(t){return df(t),t.headers=Ie.from(t.headers),t.data=Vi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),xc.getAdapter(t.adapter||_o.adapter)(t).then(function(n){return df(t),n.data=Vi.call(t,t.transformResponse,n),n.headers=Ie.from(n.headers),n},function(n){return Hi(n)||(df(t),n&&n.response&&(n.response.data=Vi.call(t,t.transformResponse,n.response),n.response.headers=Ie.from(n.response.headers))),Promise.reject(n)})}var L0=t=>t instanceof Ie?t.toJSON():t;function pr(t,e){e=e||{};let r={};function n(u,l,p){return v.isPlainObject(u)&&v.isPlainObject(l)?v.merge.call({caseless:p},u,l):v.isPlainObject(l)?v.merge({},l):v.isArray(l)?l.slice():l}function o(u,l,p){if(v.isUndefined(l)){if(!v.isUndefined(u))return n(void 0,u,p)}else return n(u,l,p)}function i(u,l){if(!v.isUndefined(l))return n(void 0,l)}function s(u,l){if(v.isUndefined(l)){if(!v.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,p){if(p in e)return n(u,l);if(p in t)return n(void 0,u)}let c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,l)=>o(L0(u),L0(l),!0)};return v.forEach(Object.keys(Object.assign({},t,e)),function(l){let p=c[l]||o,m=p(t[l],e[l],l);v.isUndefined(m)&&p!==a||(r[l]=m)}),r}var mf={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{mf[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var U0={};mf.transitional=function(e,r,n){function o(i,s){return"[Axios v"+Pn+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(e===!1)throw new C(o(s," has been removed"+(r?" in "+r:"")),C.ERR_DEPRECATED);return r&&!U0[s]&&(U0[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,a):!0}};function iZ(t,e,r){if(typeof t!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),o=n.length;for(;o-- >0;){let i=n[o],s=e[i];if(s){let a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new C("option "+i+" must be "+c,C.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new C("Unknown option "+i,C.ERR_BAD_OPTION)}}var yc={assertOptions:iZ,validators:mf};var Mr=yc.validators,Eo=class{constructor(e){this.defaults=e,this.interceptors={request:new Zm,response:new Zm}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=pr(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&yc.assertOptions(n,{silentJSONParsing:Mr.transitional(Mr.boolean),forcedJSONParsing:Mr.transitional(Mr.boolean),clarifyTimeoutError:Mr.transitional(Mr.boolean)},!1),o!=null&&(v.isFunction(o)?r.paramsSerializer={serialize:o}:yc.assertOptions(o,{encode:Mr.function,serialize:Mr.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&v.merge(i.common,i[r.method]);i&&v.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=Ie.concat(s,i);let a=[],c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(c=c&&f.synchronous,a.unshift(f.fulfilled,f.rejected))});let u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let l,p=0,m;if(!c){let d=[vc.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),m=d.length,l=Promise.resolve(r);p<m;)l=l.then(d[p++],d[p++]);return l}m=a.length;let h=r;for(p=0;p<m;){let d=a[p++],f=a[p++];try{h=d(h)}catch(x){f.call(this,x);break}}try{l=vc.call(this,h)}catch(d){return Promise.reject(d)}for(p=0,m=u.length;p<m;)l=l.then(u[p++],u[p++]);return l}getUri(e){e=pr(this.defaults,e);let r=Sn(e.baseURL,e.url);return $n(r,e.params,e.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(e){Eo.prototype[e]=function(r,n){return this.request(pr(n||{},{method:e,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(e){function r(n){return function(i,s,a){return this.request(pr(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Eo.prototype[e]=r(),Eo.prototype[e+"Form"]=r(!0)});var Qi=Eo;var ff=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});let n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i,s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new Lt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new t(function(o){e=o}),cancel:e}}},F0=ff;function hf(t){return function(r){return t.apply(null,r)}}function gf(t){return v.isObject(t)&&t.isAxiosError===!0}var xf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xf).forEach(([t,e])=>{xf[e]=t});var B0=xf;function V0(t){let e=new Qi(t),r=Zi(Qi.prototype.request,e);return v.extend(r,Qi.prototype,e,{allOwnKeys:!0}),v.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return V0(pr(t,o))},r}var Pe=V0(_o);Pe.Axios=Qi;Pe.CanceledError=Lt;Pe.CancelToken=F0;Pe.isCancel=Hi;Pe.VERSION=Pn;Pe.toFormData=jr;Pe.AxiosError=C;Pe.Cancel=Pe.CanceledError;Pe.all=function(e){return Promise.all(e)};Pe.spread=hf;Pe.isAxiosError=gf;Pe.mergeConfig=pr;Pe.AxiosHeaders=Ie;Pe.formToJSON=t=>ac(v.isHTMLForm(t)?new FormData(t):t);Pe.getAdapter=xc.getAdapter;Pe.HttpStatusCode=B0;Pe.default=Pe;var Fe=Pe;var{Axios:q6,AxiosError:D6,CanceledError:L6,isCancel:U6,CancelToken:F6,VERSION:B6,all:V6,Cancel:H6,isAxiosError:G6,spread:J6,toFormData:W6,AxiosHeaders:K6,HttpStatusCode:Y6,formToJSON:X6,getAdapter:Q6,mergeConfig:eB}=Fe;function To(){return process.argv.slice(2)}function vf(){let t=To(),e="";for(let r=0;r<t.length;r++)if(t[r]==="--token"&&r+1<t.length){e=t[r+1];break}else if(t[r].startsWith("--token=")){e=t[r].split("=")[1];break}return e}function yf(){let t=To(),e="";for(let r=0;r<t.length;r++)if(t[r]==="--url"&&r+1<t.length){e=t[r+1];break}else if(t[r].startsWith("--url=")){e=t[r].split("=")[1];break}return e}function bf(){let t=To(),e=[];for(let r=0;r<t.length;r++)t[r]==="--rule"&&r+1<t.length?e.push(t[r+1]):t[r].startsWith("--rule=")&&e.push(t[r].split("=")[1]);return e}function sZ(){let t=To();for(let e of t)if(e==="--debug")return!0;return!1}function _f(){let t=To();for(let e of t)if(e==="--no-rule")return!0;return!1}function wf(){let t=To(),e="";for(let r=0;r<t.length;r++)if(t[r]==="--proxy"&&r+1<t.length){e=t[r+1];break}else if(t[r].startsWith("--proxy=")){e=t[r].split("=")[1];break}return e}function H0(){let t=vf(),e=yf(),r=bf(),n=sZ(),o=_f(),i=wf();return{token:t,baseUrl:e,rules:r,debug:n,noRule:o,proxy:i}}var nk=le(require("https"));var qr=le(require("net"),1),kf=le(require("tls"),1),ek=le(require("assert"),1),tk=le(mc(),1);var G0=le(require("net"),1),J0=le(require("http"),1),W0=require("https");var nB=le(require("http"),1),oB=le(require("https"),1);var Qt=Symbol("AgentBaseInternalState"),bc=class extends J0.Agent{constructor(e){super(e),this[Qt]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
53
- `).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new G0.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?W0.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(o),s=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,o)).then(a=>{if(this.decrementSockets(i,s),typeof a.addRequest=="function")try{return a.addRequest(e,o)}catch(c){return n(c)}this[Qt].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,s),n(a)})}createConnection(){let e=this[Qt].currentSocket;if(this[Qt].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Qt].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Qt]&&(this[Qt].defaultPort=e)}get protocol(){return this[Qt].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Qt]&&(this[Qt].protocol=e)}};var rk=require("url");var K0=le(mc(),1),_c=(0,K0.default)("https-proxy-agent:parse-proxy-response");function Y0(t){return new Promise((e,r)=>{let n=0,o=[];function i(){let l=t.read();l?u(l):t.once("readable",i)}function s(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){s(),_c("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){s(),_c("onerror %o",l),r(l)}function u(l){o.push(l),n+=l.length;let p=Buffer.concat(o,n),m=p.indexOf(`\r
45
+ ]`;continue}o+=n[u],n[u]==="\\"?i=!0:s&&n[u]==="]"?s=!1:!s&&n[u]==="["&&(s=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${e.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return o}function oa(t,e){var n,o,i,s,a,c;if(e.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),e.target==="openApi3"&&((n=t.keyType)==null?void 0:n._def.typeName)===T.ZodEnum)return{type:"object",required:t.keyType._def.values,properties:t.keyType._def.values.reduce((u,l)=>({...u,[l]:U(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",l]})??$e(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let r={type:"object",additionalProperties:U(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return r;if(((o=t.keyType)==null?void 0:o._def.typeName)===T.ZodString&&((i=t.keyType._def.checks)!=null&&i.length)){let{type:u,...l}=na(t.keyType._def,e);return{...r,propertyNames:l}}else{if(((s=t.keyType)==null?void 0:s._def.typeName)===T.ZodEnum)return{...r,propertyNames:{enum:t.keyType._def.values}};if(((a=t.keyType)==null?void 0:a._def.typeName)===T.ZodBranded&&t.keyType._def.type._def.typeName===T.ZodString&&((c=t.keyType._def.type._def.checks)!=null&&c.length)){let{type:u,...l}=ra(t.keyType._def,e);return{...r,propertyNames:l}}}return r}function cx(t,e){if(e.mapStrategy==="record")return oa(t,e);let r=U(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||$e(e),n=U(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||$e(e);return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function ux(t){let e=t.values,n=Object.keys(t.values).filter(i=>typeof e[e[i]]!="number").map(i=>e[i]),o=Array.from(new Set(n.map(i=>typeof i)));return{type:o.length===1?o[0]==="string"?"string":"number":["string","number"],enum:n}}function lx(t){return t.target==="openAi"?void 0:{not:$e({...t,currentPath:[...t.currentPath,"not"]})}}function px(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var ci={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function mx(t,e){if(e.target==="openApi3")return dx(t,e);let r=t.options instanceof Map?Array.from(t.options.values()):t.options;if(r.every(n=>n._def.typeName in ci&&(!n._def.checks||!n._def.checks.length))){let n=r.reduce((o,i)=>{let s=ci[i._def.typeName];return s&&!o.includes(s)?[...o,s]:o},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=r.reduce((o,i)=>{let s=typeof i._def.value;switch(s){case"string":case"number":case"boolean":return[...o,s];case"bigint":return[...o,"integer"];case"object":if(i._def.value===null)return[...o,"null"];case"symbol":case"undefined":case"function":default:return o}},[]);if(n.length===r.length){let o=n.filter((i,s,a)=>a.indexOf(i)===s);return{type:o.length>1?o:o[0],enum:r.reduce((i,s)=>i.includes(s._def.value)?i:[...i,s._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,o)=>[...n,...o._def.values.filter(i=>!n.includes(i))],[])};return dx(t,e)}var dx=(t,e)=>{let r=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,o)=>U(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${o}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function fx(t,e){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length))return e.target==="openApi3"?{type:ci[t.innerType._def.typeName],nullable:!0}:{type:[ci[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=U(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let r=U(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function hx(t,e){let r={type:"number"};if(!t.checks)return r;for(let n of t.checks)switch(n.kind){case"int":r.type="integer",fp(r,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?re(r,"minimum",n.value,n.message,e):re(r,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(r.exclusiveMinimum=!0),re(r,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?re(r,"maximum",n.value,n.message,e):re(r,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(r.exclusiveMaximum=!0),re(r,"maximum",n.value,n.message,e));break;case"multipleOf":re(r,"multipleOf",n.value,n.message,e);break}return r}function gx(t,e){let r=e.target==="openAi",n={type:"object",properties:{}},o=[],i=t.shape();for(let a in i){let c=i[a];if(c===void 0||c._def===void 0)continue;let u=fE(c);u&&r&&(c._def.typeName==="ZodOptional"&&(c=c._def.innerType),c.isNullable()||(c=c.nullable()),u=!1);let l=U(c._def,{...e,currentPath:[...e.currentPath,"properties",a],propertyPath:[...e.currentPath,"properties",a]});l!==void 0&&(n.properties[a]=l,u||o.push(a))}o.length&&(n.required=o);let s=mE(t,e);return s!==void 0&&(n.additionalProperties=s),n}function mE(t,e){if(t.catchall._def.typeName!=="ZodNever")return U(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function fE(t){try{return t.isOptional()}catch{return!0}}var xx=(t,e)=>{var n;if(e.currentPath.toString()===((n=e.propertyPath)==null?void 0:n.toString()))return U(t.innerType._def,e);let r=U(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return r?{anyOf:[{not:$e(e)},r]}:$e(e)};var vx=(t,e)=>{if(e.pipeStrategy==="input")return U(t.in._def,e);if(e.pipeStrategy==="output")return U(t.out._def,e);let r=U(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=U(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(o=>o!==void 0)}};function yx(t,e){return U(t.type._def,e)}function bx(t,e){let n={type:"array",uniqueItems:!0,items:U(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&re(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&re(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function _x(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((r,n)=>U(r._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:U(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((r,n)=>U(r._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function wx(t){return{not:$e(t)}}function kx(t){return $e(t)}var Sx=(t,e)=>U(t.innerType._def,e);var $x=(t,e,r)=>{switch(e){case T.ZodString:return na(t,r);case T.ZodNumber:return hx(t,r);case T.ZodObject:return gx(t,r);case T.ZodBigInt:return Qg(t,r);case T.ZodBoolean:return ex();case T.ZodDate:return hp(t,r);case T.ZodUndefined:return wx(r);case T.ZodNull:return px(r);case T.ZodArray:return Xg(t,r);case T.ZodUnion:case T.ZodDiscriminatedUnion:return mx(t,r);case T.ZodIntersection:return ix(t,r);case T.ZodTuple:return _x(t,r);case T.ZodRecord:return oa(t,r);case T.ZodLiteral:return sx(t,r);case T.ZodEnum:return ox(t);case T.ZodNativeEnum:return ux(t);case T.ZodNullable:return fx(t,r);case T.ZodOptional:return xx(t,r);case T.ZodMap:return cx(t,r);case T.ZodSet:return bx(t,r);case T.ZodLazy:return()=>t.getter()._def;case T.ZodPromise:return yx(t,r);case T.ZodNaN:case T.ZodNever:return lx(r);case T.ZodEffects:return nx(t,r);case T.ZodAny:return $e(r);case T.ZodUnknown:return kx(r);case T.ZodDefault:return rx(t,r);case T.ZodBranded:return ra(t,r);case T.ZodReadonly:return Sx(t,r);case T.ZodCatch:return tx(t,r);case T.ZodPipeline:return vx(t,r);case T.ZodFunction:case T.ZodVoid:case T.ZodSymbol:return;default:return(n=>{})(e)}};function U(t,e,r=!1){var a;let n=e.seen.get(t);if(e.override){let c=(a=e.override)==null?void 0:a.call(e,t,e,n,r);if(c!==Wg)return c}if(n&&!r){let c=hE(n,e);if(c!==void 0)return c}let o={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,o);let i=$x(t,t.typeName,e),s=typeof i=="function"?U(i(),e):i;if(s&&gE(t,e,s),e.postProcess){let c=e.postProcess(s,t,e);return o.jsonSchema=s,c}return o.jsonSchema=s,s}var hE=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:ta(e.currentPath,t.path)};case"none":case"seen":return t.path.length<e.currentPath.length&&t.path.every((r,n)=>e.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),$e(e)):e.$refStrategy==="seen"?$e(e):void 0}},gE=(t,e,r)=>(t.description&&(r.description=t.description,e.markdownDescription&&(r.markdownDescription=t.description)),r);var vp=(t,e)=>{let r=Yg(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((c,[u,l])=>({...c,[u]:U(l._def,{...r,currentPath:[...r.basePath,r.definitionPath,u]},!0)??$e(r)}),{}):void 0,o=typeof e=="string"?e:(e==null?void 0:e.nameStrategy)==="title"||e==null?void 0:e.name,i=U(t._def,o===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,o]},!1)??$e(r),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(i.title=s),r.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[r.openAiAnyTypeName]||(n[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}));let a=o===void 0?n?{...i,[r.definitionPath]:n}:i:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,o].join("/"),[r.definitionPath]:{...n,[o]:i}};return r.target==="jsonSchema7"?a.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(a.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in a||"oneOf"in a||"allOf"in a||"type"in a&&Array.isArray(a.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),a};function xE(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function yp(t,e){return bt(t)?ql(t,{target:xE(e==null?void 0:e.target),io:(e==null?void 0:e.pipeStrategy)??"input"}):vp(t,{strictUnions:(e==null?void 0:e.strictUnions)??!0,pipeStrategy:(e==null?void 0:e.pipeStrategy)??"input"})}function bp(t){let e=Sr(t),r=e==null?void 0:e.method;if(!r)throw new Error("Schema is missing a method literal");let n=Is(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function _p(t,e){let r=kr(t,e);if(!r.success)throw r.error;return r.data}var vE=6e4,ia=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Ls,r=>{this._oncancel(r)}),this.setNotificationHandler(Zs,r=>{this._onprogress(r)}),this.setRequestHandler(Ms,r=>({})),this._taskStore=e==null?void 0:e.taskStore,this._taskMessageQueue=e==null?void 0:e.taskMessageQueue,this._taskStore&&(this.setRequestHandler(qs,async(r,n)=>{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new j(M.InvalidParams,"Failed to retrieve task: Task not found");return{...o}}),this.setRequestHandler(Fs,async(r,n)=>{let o=async()=>{var a;let i=r.params.taskId;if(this._taskMessageQueue){let c;for(;c=await this._taskMessageQueue.dequeue(i,n.sessionId);){if(c.type==="response"||c.type==="error"){let u=c.message,l=u.id,p=this._requestResolvers.get(l);if(p)if(this._requestResolvers.delete(l),c.type==="response")p(u);else{let m=u,h=new j(m.error.code,m.error.message,m.error.data);p(h)}else{let m=c.type==="response"?"Response":"Error";this._onerror(new Error(`${m} handler missing for request ${l}`))}continue}await((a=this._transport)==null?void 0:a.send(c.message,{relatedRequestId:n.requestId}))}}let s=await this._taskStore.getTask(i,n.sessionId);if(!s)throw new j(M.InvalidParams,`Task not found: ${i}`);if(!zr(s.status))return await this._waitForTaskUpdate(i,n.signal),await o();if(zr(s.status)){let c=await this._taskStore.getTaskResult(i,n.sessionId);return this._clearTaskQueue(i),{...c,_meta:{...c._meta,[$r]:{taskId:i}}}}return await o()};return await o()}),this.setRequestHandler(Bs,async(r,n)=>{var o;try{let{tasks:i,nextCursor:s}=await this._taskStore.listTasks((o=r.params)==null?void 0:o.cursor,n.sessionId);return{tasks:i,nextCursor:s,_meta:{}}}catch(i){throw new j(M.InvalidParams,`Failed to list tasks: ${i instanceof Error?i.message:String(i)}`)}}),this.setRequestHandler(Hs,async(r,n)=>{try{let o=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!o)throw new j(M.InvalidParams,`Task not found: ${r.params.taskId}`);if(zr(o.status))throw new j(M.InvalidParams,`Cannot cancel task in terminal status: ${o.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId);let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new j(M.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...i}}catch(o){throw o instanceof j?o:new j(M.InvalidRequest,`Failed to cancel task: ${o instanceof Error?o.message:String(o)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;let r=this._requestHandlerAbortControllers.get(e.params.requestId);r==null||r.abort(e.params.reason)}_setupTimeout(e,r,n,o,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(o,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:o})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),j.fromError(M.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var i,s,a;if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;let r=(i=this.transport)==null?void 0:i.onclose;this._transport.onclose=()=>{r==null||r(),this._onclose()};let n=(s=this.transport)==null?void 0:s.onerror;this._transport.onerror=c=>{n==null||n(c),this._onerror(c)};let o=(a=this._transport)==null?void 0:a.onmessage;this._transport.onmessage=(c,u)=>{o==null||o(c,u),Qo(c)||Dg(c)?this._onresponse(c):ep(c)?this._onrequest(c,u):Ng(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var n;let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let o of this._timeoutInfo.values())clearTimeout(o.timeoutId);this._timeoutInfo.clear();for(let o of this._requestHandlerAbortControllers.values())o.abort();this._requestHandlerAbortControllers.clear();let r=j.fromError(M.ConnectionClosed,"Connection closed");this._transport=void 0,(n=this.onclose)==null||n.call(this);for(let o of e.values())o(r)}_onerror(e){var r;(r=this.onerror)==null||r.call(this,e)}_onnotification(e){let r=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,r){var l,p,m,h;let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,o=this._transport,i=(m=(p=(l=e.params)==null?void 0:l._meta)==null?void 0:p[$r])==null?void 0:m.taskId;if(n===void 0){let d={jsonrpc:"2.0",id:e.id,error:{code:M.MethodNotFound,message:"Method not found"}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:"error",message:d,timestamp:Date.now()},o==null?void 0:o.sessionId).catch(f=>this._onerror(new Error(`Failed to enqueue error response: ${f}`))):o==null||o.send(d).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let a=Cg(e.params)?e.params.task:void 0,c=this._taskStore?this.requestTaskStore(e,o==null?void 0:o.sessionId):void 0,u={signal:s.signal,sessionId:o==null?void 0:o.sessionId,_meta:(h=e.params)==null?void 0:h._meta,sendNotification:async d=>{if(s.signal.aborted)return;let f={relatedRequestId:e.id};i&&(f.relatedTask={taskId:i}),await this.notification(d,f)},sendRequest:async(d,f,x)=>{var b;if(s.signal.aborted)throw new j(M.ConnectionClosed,"Request was cancelled");let g={...x,relatedRequestId:e.id};i&&!g.relatedTask&&(g.relatedTask={taskId:i});let y=((b=g.relatedTask)==null?void 0:b.taskId)??i;return y&&c&&await c.updateTaskStatus(y,"input_required"),await this.request(d,f,g)},authInfo:r==null?void 0:r.authInfo,requestId:e.id,requestInfo:r==null?void 0:r.requestInfo,taskId:i,taskStore:c,taskRequestedTtl:a==null?void 0:a.ttl,closeSSEStream:r==null?void 0:r.closeSSEStream,closeStandaloneSSEStream:r==null?void 0:r.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async d=>{if(s.signal.aborted)return;let f={result:d,jsonrpc:"2.0",id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"response",message:f,timestamp:Date.now()},o==null?void 0:o.sessionId):await(o==null?void 0:o.send(f))},async d=>{if(s.signal.aborted)return;let f={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(d.code)?d.code:M.InternalError,message:d.message??"Internal error",...d.data!==void 0&&{data:d.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"error",message:f,timestamp:Date.now()},o==null?void 0:o.sessionId):await(o==null?void 0:o.send(f))}).catch(d=>this._onerror(new Error(`Failed to send response: ${d}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...n}=e.params,o=Number(r),i=this._progressHandlers.get(o);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let s=this._responseHandlers.get(o),a=this._timeoutInfo.get(o);if(a&&s&&a.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(c){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),s(c);return}i(n)}_onresponse(e){let r=Number(e.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),Qo(e))n(e);else{let s=new j(e.error.code,e.error.message,e.error.data);n(s)}return}let o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let i=!1;if(Qo(e)&&e.result&&typeof e.result=="object"){let s=e.result;if(s.task&&typeof s.task=="object"){let a=s.task;typeof a.taskId=="string"&&(i=!0,this._taskProgressTokens.set(a.taskId,r))}}if(i||this._progressHandlers.delete(r),Qo(e))o(e);else{let s=j.fromError(e.error.code,e.error.message,e.error.data);o(s)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)==null?void 0:e.close())}async*requestStream(e,r,n){var s,a;let{task:o}=n??{};if(!o){try{yield{type:"result",result:await this.request(e,r,n)}}catch(c){yield{type:"error",error:c instanceof j?c:new j(M.InternalError,String(c))}}return}let i;try{let c=await this.request(e,Jn,n);if(c.task)i=c.task.taskId,yield{type:"taskCreated",task:c.task};else throw new j(M.InternalError,"Task creation did not return a task");for(;;){let u=await this.getTask({taskId:i},n);if(yield{type:"taskStatus",task:u},zr(u.status)){u.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)}:u.status==="failed"?yield{type:"error",error:new j(M.InternalError,`Task ${i} failed`)}:u.status==="cancelled"&&(yield{type:"error",error:new j(M.InternalError,`Task ${i} was cancelled`)});return}if(u.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:i},r,n)};return}let l=u.pollInterval??((s=this._options)==null?void 0:s.defaultTaskPollInterval)??1e3;await new Promise(p=>setTimeout(p,l)),(a=n==null?void 0:n.signal)==null||a.throwIfAborted()}}catch(c){yield{type:"error",error:c instanceof j?c:new j(M.InternalError,String(c))}}}request(e,r,n){let{relatedRequestId:o,resumptionToken:i,onresumptiontoken:s,task:a,relatedTask:c}=n??{};return new Promise((u,l)=>{var y,b,$,S,L;let p=D=>{l(D)};if(!this._transport){p(new Error("Not connected"));return}if(((y=this._options)==null?void 0:y.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(e.method),a&&this.assertTaskCapability(e.method)}catch(D){p(D);return}(b=n==null?void 0:n.signal)==null||b.throwIfAborted();let m=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:m};n!=null&&n.onprogress&&(this._progressHandlers.set(m,n.onprogress),h.params={...e.params,_meta:{...(($=e.params)==null?void 0:$._meta)||{},progressToken:m}}),a&&(h.params={...h.params,task:a}),c&&(h.params={...h.params,_meta:{...((S=h.params)==null?void 0:S._meta)||{},[$r]:c}});let d=D=>{var _e;this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),(_e=this._transport)==null||_e.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(D)}},{relatedRequestId:o,resumptionToken:i,onresumptiontoken:s}).catch(Pt=>this._onerror(new Error(`Failed to send cancellation: ${Pt}`)));let ue=D instanceof j?D:new j(M.RequestTimeout,String(D));l(ue)};this._responseHandlers.set(m,D=>{var ue;if(!((ue=n==null?void 0:n.signal)!=null&&ue.aborted)){if(D instanceof Error)return l(D);try{let _e=kr(r,D.result);_e.success?u(_e.data):l(_e.error)}catch(_e){l(_e)}}}),(L=n==null?void 0:n.signal)==null||L.addEventListener("abort",()=>{var D;d((D=n==null?void 0:n.signal)==null?void 0:D.reason)});let f=(n==null?void 0:n.timeout)??vE,x=()=>d(j.fromError(M.RequestTimeout,"Request timed out",{timeout:f}));this._setupTimeout(m,f,n==null?void 0:n.maxTotalTimeout,x,(n==null?void 0:n.resetTimeoutOnProgress)??!1);let g=c==null?void 0:c.taskId;if(g){let D=ue=>{let _e=this._responseHandlers.get(m);_e?_e(ue):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,D),this._enqueueTaskMessage(g,{type:"request",message:h,timestamp:Date.now()}).catch(ue=>{this._cleanupTimeout(m),l(ue)})}else this._transport.send(h,{relatedRequestId:o,resumptionToken:i,onresumptiontoken:s}).catch(D=>{this._cleanupTimeout(m),l(D)})})}async getTask(e,r){return this.request({method:"tasks/get",params:e},Us,r)}async getTaskResult(e,r,n){return this.request({method:"tasks/result",params:e},r,n)}async listTasks(e,r){return this.request({method:"tasks/list",params:e},Vs,r)}async cancelTask(e,r){return this.request({method:"tasks/cancel",params:e},Zg,r)}async notification(e,r){var a,c,u,l;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=(a=r==null?void 0:r.relatedTask)==null?void 0:a.taskId;if(n){let p={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...((c=e.params)==null?void 0:c._meta)||{},[$r]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:p,timestamp:Date.now()});return}if((((u=this._options)==null?void 0:u.debouncedNotificationMethods)??[]).includes(e.method)&&!e.params&&!(r!=null&&r.relatedRequestId)&&!(r!=null&&r.relatedTask)){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var m,h;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let p={...e,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(p={...p,params:{...p.params,_meta:{...((m=p.params)==null?void 0:m._meta)||{},[$r]:r.relatedTask}}}),(h=this._transport)==null||h.send(p,r).catch(d=>this._onerror(d))});return}let s={...e,jsonrpc:"2.0"};r!=null&&r.relatedTask&&(s={...s,params:{...s.params,_meta:{...((l=s.params)==null?void 0:l._meta)||{},[$r]:r.relatedTask}}}),await this._transport.send(s,r)}setRequestHandler(e,r){let n=bp(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(o,i)=>{let s=_p(e,o);return Promise.resolve(r(s,i))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){let n=bp(e);this._notificationHandlers.set(n,o=>{let i=_p(e,o);return Promise.resolve(r(i))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let r=this._taskProgressTokens.get(e);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,r,n){var i;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let o=(i=this._options)==null?void 0:i.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,r,n,o)}async _clearTaskQueue(e,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,r);for(let o of n)if(o.type==="request"&&ep(o.message)){let i=o.message.id,s=this._requestResolvers.get(i);s?(s(new j(M.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(i)):this._onerror(new Error(`Resolver missing for request ${i} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,r){var o,i;let n=((o=this._options)==null?void 0:o.defaultTaskPollInterval)??1e3;try{let s=await((i=this._taskStore)==null?void 0:i.getTask(e));s!=null&&s.pollInterval&&(n=s.pollInterval)}catch{}return new Promise((s,a)=>{if(r.aborted){a(new j(M.InvalidRequest,"Request cancelled"));return}let c=setTimeout(s,n);r.addEventListener("abort",()=>{clearTimeout(c),a(new j(M.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async o=>{if(!e)throw new Error("No request provided");return await n.createTask(o,e.id,{method:e.method,params:e.params},r)},getTask:async o=>{let i=await n.getTask(o,r);if(!i)throw new j(M.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(o,i,s)=>{await n.storeTaskResult(o,i,s,r);let a=await n.getTask(o,r);if(a){let c=oi.parse({method:"notifications/tasks/status",params:a});await this.notification(c),zr(a.status)&&this._cleanupTaskProgressHandler(o)}},getTaskResult:o=>n.getTaskResult(o,r),updateTaskStatus:async(o,i,s)=>{let a=await n.getTask(o,r);if(!a)throw new j(M.InvalidParams,`Task "${o}" not found - it may have been cleaned up`);if(zr(a.status))throw new j(M.InvalidParams,`Cannot update task "${o}" from terminal status "${a.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(o,i,s,r);let c=await n.getTask(o,r);if(c){let u=oi.parse({method:"notifications/tasks/status",params:c});await this.notification(u),zr(c.status)&&this._cleanupTaskProgressHandler(o)}},listTasks:o=>n.listTasks(o,r)}}};function zx(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Tx(t,e){let r={...t};for(let n in e){let o=n,i=e[o];if(i===void 0)continue;let s=r[o];zx(s)&&zx(i)?r[o]={...s,...i}:r[o]=i}return r}var vb=le(am(),1),yb=le(xb(),1);function _j(){let t=new vb.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,yb.default)(t),t}var Za=class{constructor(e){this._ajv=e??_j()}getValidator(e){let r="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>r(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var qa=class{constructor(e){this._server=e}requestStream(e,r,n){return this._server.requestStream(e,r,n)}createMessageStream(e,r){var o;let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!((o=n==null?void 0:n.sampling)!=null&&o.tools))throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages[e.messages.length-1],s=Array.isArray(i.content)?i.content:[i.content],a=s.some(p=>p.type==="tool_result"),c=e.messages.length>1?e.messages[e.messages.length-2]:void 0,u=c?Array.isArray(c.content)?c.content:[c.content]:[],l=u.some(p=>p.type==="tool_use");if(a){if(s.some(p=>p.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let p=new Set(u.filter(h=>h.type==="tool_use").map(h=>h.id)),m=new Set(s.filter(h=>h.type==="tool_result").map(h=>h.toolUseId));if(p.size!==m.size||![...p].every(h=>m.has(h)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},ai,r)}elicitInputStream(e,r){var s,a;let n=this._server.getClientCapabilities(),o=e.mode??"form";switch(o){case"url":{if(!((s=n==null?void 0:n.elicitation)!=null&&s.url))throw new Error("Client does not support url elicitation.");break}case"form":{if(!((a=n==null?void 0:n.elicitation)!=null&&a.form))throw new Error("Client does not support form elicitation.");break}}let i=o==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:i},Yn,r)}async getTask(e,r){return this._server.getTask({taskId:e},r)}async getTaskResult(e,r,n){return this._server.getTaskResult({taskId:e},r,n)}async listTasks(e,r){return this._server.listTasks(e?{cursor:e}:void 0,r)}async cancelTask(e,r){return this._server.cancelTask({taskId:e},r)}};function bb(t,e,r){var n;if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!((n=t.tools)!=null&&n.call))throw new Error(`${r} does not support task creation for tools/call (required for ${e})`);break;default:break}}function _b(t,e,r){var n,o;if(!t)throw new Error(`${r} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!((n=t.sampling)!=null&&n.createMessage))throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!((o=t.elicitation)!=null&&o.create))throw new Error(`${r} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var Ua=class extends ia{constructor(e,r){super(r),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(si.options.map((n,o)=>[n,o])),this.isMessageIgnored=(n,o)=>{let i=this._loggingLevels.get(o);return i?this.LOG_LEVEL_SEVERITY.get(n)<this.LOG_LEVEL_SEVERITY.get(i):!1},this._capabilities=(r==null?void 0:r.capabilities)??{},this._instructions=r==null?void 0:r.instructions,this._jsonSchemaValidator=(r==null?void 0:r.jsonSchemaValidator)??new Za,this.setRequestHandler(np,n=>this._oninitialize(n)),this.setNotificationHandler(op,()=>{var n;return(n=this.oninitialized)==null?void 0:n.call(this)}),this._capabilities.logging&&this.setRequestHandler(pp,async(n,o)=>{var c;let i=o.sessionId||((c=o.requestInfo)==null?void 0:c.headers["mcp-session-id"])||void 0,{level:s}=n.params,a=si.safeParse(s);return a.success&&this._loggingLevels.set(i,a.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new qa(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Tx(this._capabilities,e)}setRequestHandler(e,r){var a;let n=Sr(e),o=n==null?void 0:n.method;if(!o)throw new Error("Schema is missing a method literal");let i;if(bt(o)){let c=o,u=(a=c._zod)==null?void 0:a.def;i=(u==null?void 0:u.value)??c.value}else{let c=o,u=c._def;i=(u==null?void 0:u.value)??c.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");if(i==="tools/call"){let c=async(u,l)=>{let p=kr(Kn,u);if(!p.success){let f=p.error instanceof Error?p.error.message:String(p.error);throw new j(M.InvalidParams,`Invalid tools/call request: ${f}`)}let{params:m}=p.data,h=await Promise.resolve(r(u,l));if(m.task){let f=kr(Jn,h);if(!f.success){let x=f.error instanceof Error?f.error.message:String(f.error);throw new j(M.InvalidParams,`Invalid task creation result: ${x}`)}return f.data}let d=kr(Qs,h);if(!d.success){let f=d.error instanceof Error?d.error.message:String(d.error);throw new j(M.InvalidParams,`Invalid tools/call result: ${f}`)}return d.data};return super.setRequestHandler(e,c)}return super.setRequestHandler(e,r)}assertCapabilityForMethod(e){var r,n,o;switch(e){case"sampling/createMessage":if(!((r=this._clientCapabilities)!=null&&r.sampling))throw new Error(`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!((n=this._clientCapabilities)!=null&&n.elicitation))throw new Error(`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!((o=this._clientCapabilities)!=null&&o.roots))throw new Error(`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){var r,n;switch(e){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!((n=(r=this._clientCapabilities)==null?void 0:r.elicitation)!=null&&n.url))throw new Error(`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${e})`);break;case"ping":case"initialize":break}}assertTaskCapability(e){var r,n;_b((n=(r=this._clientCapabilities)==null?void 0:r.tasks)==null?void 0:n.requests,e,"Client")}assertTaskHandlerCapability(e){var r;this._capabilities&&bb((r=this._capabilities.tasks)==null?void 0:r.requests,e,"Server")}async _oninitialize(e){let r=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:Rg.includes(r)?r:Xl,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},Ds)}async createMessage(e,r){var n,o;if((e.tools||e.toolChoice)&&!((o=(n=this._clientCapabilities)==null?void 0:n.sampling)!=null&&o.tools))throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages[e.messages.length-1],s=Array.isArray(i.content)?i.content:[i.content],a=s.some(p=>p.type==="tool_result"),c=e.messages.length>1?e.messages[e.messages.length-2]:void 0,u=c?Array.isArray(c.content)?c.content:[c.content]:[],l=u.some(p=>p.type==="tool_use");if(a){if(s.some(p=>p.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let p=new Set(u.filter(h=>h.type==="tool_use").map(h=>h.id)),m=new Set(s.filter(h=>h.type==="tool_result").map(h=>h.toolUseId));if(p.size!==m.size||![...p].every(h=>m.has(h)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},dp,r):this.request({method:"sampling/createMessage",params:e},ai,r)}async elicitInput(e,r){var o,i,s,a;switch(e.mode??"form"){case"url":{if(!((i=(o=this._clientCapabilities)==null?void 0:o.elicitation)!=null&&i.url))throw new Error("Client does not support url elicitation.");let c=e;return this.request({method:"elicitation/create",params:c},Yn,r)}case"form":{if(!((a=(s=this._clientCapabilities)==null?void 0:s.elicitation)!=null&&a.form))throw new Error("Client does not support form elicitation.");let c=e.mode==="form"?e:{...e,mode:"form"},u=await this.request({method:"elicitation/create",params:c},Yn,r);if(u.action==="accept"&&u.content&&c.requestedSchema)try{let p=this._jsonSchemaValidator.getValidator(c.requestedSchema)(u.content);if(!p.valid)throw new j(M.InvalidParams,`Elicitation response content does not match requested schema: ${p.errorMessage}`)}catch(l){throw l instanceof j?l:new j(M.InternalError,`Error validating elicitation response: ${l instanceof Error?l.message:String(l)}`)}return u}}}createElicitationCompletionNotifier(e,r){var n,o;if(!((o=(n=this._clientCapabilities)==null?void 0:n.elicitation)!=null&&o.url))throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},r)}async listRoots(e,r){return this.request({method:"roots/list",params:e},mp,r)}async sendLoggingMessage(e,r){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,r))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};var kb=Symbol.for("mcp.completable");function hm(t){return!!t&&typeof t=="object"&&kb in t}function Sb(t){let e=t[kb];return e==null?void 0:e.complete}var wb;(function(t){t.Completable="McpCompletable"})(wb||(wb={}));var wj=/^[A-Za-z0-9._-]{1,128}$/;function kj(t){let e=[];if(t.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(t.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${t.length})`]};if(t.includes(" ")&&e.push("Tool name contains spaces, which may cause parsing issues"),t.includes(",")&&e.push("Tool name contains commas, which may cause parsing issues"),(t.startsWith("-")||t.endsWith("-"))&&e.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(t.startsWith(".")||t.endsWith("."))&&e.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!wj.test(t)){let r=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,o,i)=>i.indexOf(n)===o);return e.push(`Tool name contains invalid characters: ${r.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function Sj(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let r of e)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function gm(t){let e=kj(t);return Sj(t,e.warnings),e.isValid}var Fa=class{constructor(e){this._mcpServer=e}registerToolTask(e,r,n){let o={taskSupport:"required",...r.execution};if(o.taskSupport==="forbidden")throw new Error(`Cannot register task-based tool '${e}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(e,r.title,r.description,r.inputSchema,r.outputSchema,r.annotations,o,r._meta,n)}};var Ba=class{constructor(e,r){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new Ua(e,r)}get experimental(){return this._experimental||(this._experimental={tasks:new Fa(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Ar(Xs)),this.server.assertCanSetRequestHandler(Ar(Kn)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Xs,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,r])=>{let n={name:e,title:r.title,description:r.description,inputSchema:(()=>{let o=Hn(r.inputSchema);return o?yp(o,{strictUnions:!0,pipeStrategy:"input"}):$j})(),annotations:r.annotations,execution:r.execution,_meta:r._meta};if(r.outputSchema){let o=Hn(r.outputSchema);o&&(n.outputSchema=yp(o,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(Kn,async(e,r)=>{var n;try{let o=this._registeredTools[e.params.name];if(!o)throw new j(M.InvalidParams,`Tool ${e.params.name} not found`);if(!o.enabled)throw new j(M.InvalidParams,`Tool ${e.params.name} disabled`);let i=!!e.params.task,s=(n=o.execution)==null?void 0:n.taskSupport,a="createTask"in o.handler;if((s==="required"||s==="optional")&&!a)throw new j(M.InternalError,`Tool ${e.params.name} has taskSupport '${s}' but was not registered with registerToolTask`);if(s==="required"&&!i)throw new j(M.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(s==="optional"&&!i&&a)return await this.handleAutomaticTaskPolling(o,e,r);let c=await this.validateToolInput(o,e.params.arguments,e.params.name),u=await this.executeToolHandler(o,c,r);return i||await this.validateToolOutput(o,u,e.params.name),u}catch(o){if(o instanceof j&&o.code===M.UrlElicitationRequired)throw o;return this.createToolError(o instanceof Error?o.message:String(o))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,r,n){if(!e.inputSchema)return;let i=Hn(e.inputSchema)??e.inputSchema,s=await Ps(i,r);if(!s.success){let a="error"in s?s.error:"Unknown error",c=Rs(a);throw new j(M.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${c}`)}return s.data}async validateToolOutput(e,r,n){if(!e.outputSchema||!("content"in r)||r.isError)return;if(!r.structuredContent)throw new j(M.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let o=Hn(e.outputSchema),i=await Ps(o,r.structuredContent);if(!i.success){let s="error"in i?i.error:"Unknown error",a=Rs(s);throw new j(M.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${a}`)}}async executeToolHandler(e,r,n){let o=e.handler;if("createTask"in o){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let a=o;return await Promise.resolve(a.createTask(r,s))}else{let a=o;return await Promise.resolve(a.createTask(s))}}if(e.inputSchema){let s=o;return await Promise.resolve(s(r,n))}else{let s=o;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,r,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let o=await this.validateToolInput(e,r.params.arguments,r.params.name),i=e.handler,s={...n,taskStore:n.taskStore},a=o?await Promise.resolve(i.createTask(o,s)):await Promise.resolve(i.createTask(s)),c=a.task.taskId,u=a.task,l=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(m=>setTimeout(m,l));let p=await n.taskStore.getTask(c);if(!p)throw new j(M.InternalError,`Task ${c} not found during polling`);u=p}return await n.taskStore.getTaskResult(c)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Ar(ea)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(ea,async e=>{switch(e.params.ref.type){case"ref/prompt":return Hg(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return Gg(e),this.handleResourceCompletion(e,e.params.ref);default:throw new j(M.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,r){let n=this._registeredPrompts[r.name];if(!n)throw new j(M.InvalidParams,`Prompt ${r.name} not found`);if(!n.enabled)throw new j(M.InvalidParams,`Prompt ${r.name} disabled`);if(!n.argsSchema)return Li;let o=Sr(n.argsSchema),i=o==null?void 0:o[e.params.argument.name];if(!hm(i))return Li;let s=Sb(i);if(!s)return Li;let a=await s(e.params.argument.value,e.params.context);return zb(a)}async handleResourceCompletion(e,r){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===r.uri);if(!n){if(this._registeredResources[r.uri])return Li;throw new j(M.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let o=n.resourceTemplate.completeCallback(e.params.argument.name);if(!o)return Li;let i=await o(e.params.argument.value,e.params.context);return zb(i)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Ar(Gs)),this.server.assertCanSetRequestHandler(Ar(Js)),this.server.assertCanSetRequestHandler(Ar(Ws)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Gs,async(e,r)=>{let n=Object.entries(this._registeredResources).filter(([i,s])=>s.enabled).map(([i,s])=>({uri:i,name:s.name,...s.metadata})),o=[];for(let i of Object.values(this._registeredResourceTemplates)){if(!i.resourceTemplate.listCallback)continue;let s=await i.resourceTemplate.listCallback(r);for(let a of s.resources)o.push({...i.metadata,...a})}return{resources:[...n,...o]}}),this.server.setRequestHandler(Js,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([r,n])=>({name:r,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(Ws,async(e,r)=>{let n=new URL(e.params.uri),o=this._registeredResources[n.toString()];if(o){if(!o.enabled)throw new j(M.InvalidParams,`Resource ${n} disabled`);return o.readCallback(n,r)}for(let i of Object.values(this._registeredResourceTemplates)){let s=i.resourceTemplate.uriTemplate.match(n.toString());if(s)return i.readCallback(n,s,r)}throw new j(M.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Ar(Ks)),this.server.assertCanSetRequestHandler(Ar(Ys)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Ks,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,r])=>({name:e,title:r.title,description:r.description,arguments:r.argsSchema?zj(r.argsSchema):void 0}))})),this.server.setRequestHandler(Ys,async(e,r)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new j(M.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new j(M.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let o=Hn(n.argsSchema),i=await Ps(o,e.params.arguments);if(!i.success){let c="error"in i?i.error:"Unknown error",u=Rs(c);throw new j(M.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=i.data,a=n.callback;return await Promise.resolve(a(s,r))}else{let o=n.callback;return await Promise.resolve(o(r))}}),this._promptHandlersInitialized=!0)}resource(e,r,...n){let o;typeof n[0]=="object"&&(o=n.shift());let i=n[0];if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let s=this._createRegisteredResource(e,void 0,r,o,i);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let s=this._createRegisteredResourceTemplate(e,void 0,r,o,i);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,r,n,o){if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let i=this._createRegisteredResource(e,n.title,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let i=this._createRegisteredResourceTemplate(e,n.title,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}}_createRegisteredResource(e,r,n,o,i){let s={name:e,title:r,metadata:o,readCallback:i,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({uri:null}),update:a=>{typeof a.uri<"u"&&a.uri!==n&&(delete this._registeredResources[n],a.uri&&(this._registeredResources[a.uri]=s)),typeof a.name<"u"&&(s.name=a.name),typeof a.title<"u"&&(s.title=a.title),typeof a.metadata<"u"&&(s.metadata=a.metadata),typeof a.callback<"u"&&(s.readCallback=a.callback),typeof a.enabled<"u"&&(s.enabled=a.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=s,s}_createRegisteredResourceTemplate(e,r,n,o,i){let s={resourceTemplate:n,title:r,metadata:o,readCallback:i,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let a=n.uriTemplate.variableNames;return Array.isArray(a)&&a.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,r,n,o,i){let s={title:r,description:n,argsSchema:o===void 0?void 0:mn(o),callback:i,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:a=>{typeof a.name<"u"&&a.name!==e&&(delete this._registeredPrompts[e],a.name&&(this._registeredPrompts[a.name]=s)),typeof a.title<"u"&&(s.title=a.title),typeof a.description<"u"&&(s.description=a.description),typeof a.argsSchema<"u"&&(s.argsSchema=mn(a.argsSchema)),typeof a.callback<"u"&&(s.callback=a.callback),typeof a.enabled<"u"&&(s.enabled=a.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,o&&Object.values(o).some(c=>{var l;let u=c instanceof it?(l=c._def)==null?void 0:l.innerType:c;return hm(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,r,n,o,i,s,a,c,u){gm(e);let l={title:r,description:n,inputSchema:$b(o),outputSchema:$b(i),annotations:s,execution:a,_meta:c,handler:u,enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&gm(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=l)),typeof p.title<"u"&&(l.title=p.title),typeof p.description<"u"&&(l.description=p.description),typeof p.paramsSchema<"u"&&(l.inputSchema=mn(p.paramsSchema)),typeof p.outputSchema<"u"&&(l.outputSchema=mn(p.outputSchema)),typeof p.callback<"u"&&(l.handler=p.callback),typeof p.annotations<"u"&&(l.annotations=p.annotations),typeof p._meta<"u"&&(l._meta=p._meta),typeof p.enabled<"u"&&(l.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=l,this.setToolRequestHandlers(),this.sendToolListChanged(),l}tool(e,...r){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,o,i,s;if(typeof r[0]=="string"&&(n=r.shift()),r.length>1){let c=r[0];if(xm(c))o=r.shift(),r.length>1&&typeof r[0]=="object"&&r[0]!==null&&!xm(r[0])&&(s=r.shift());else if(typeof c=="object"&&c!==null){if(Object.values(c).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=r.shift()}}let a=r[0];return this._createRegisteredTool(e,void 0,n,o,i,s,{taskSupport:"forbidden"},void 0,a)}registerTool(e,r,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:o,description:i,inputSchema:s,outputSchema:a,annotations:c,_meta:u}=r;return this._createRegisteredTool(e,o,i,s,a,c,{taskSupport:"forbidden"},u,n)}prompt(e,...r){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof r[0]=="string"&&(n=r.shift());let o;r.length>1&&(o=r.shift());let i=r[0],s=this._createRegisteredPrompt(e,void 0,n,o,i);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,r,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:o,description:i,argsSchema:s}=r,a=this._createRegisteredPrompt(e,o,i,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),a}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,r){return this.server.sendLoggingMessage(e,r)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var $j={type:"object",properties:{}};function Tb(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function Eb(t){return"_def"in t||"_zod"in t||Tb(t)}function xm(t){return typeof t!="object"||t===null||Eb(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(Tb)}function $b(t){if(t){if(xm(t))return mn(t);if(!Eb(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function zj(t){let e=Sr(t);return e?Object.entries(e).map(([r,n])=>{let o=sg(n),i=ag(n);return{name:r,description:o,required:!i}}):[]}function Ar(t){let e=Sr(t),r=e==null?void 0:e.method;if(!r)throw new Error("Schema is missing a method literal");let n=Is(r);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function zb(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Li={completion:{values:[],hasMore:!1}};var vm=le(require("node:process"),1);var Va=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
46
+ `);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),Tj(r)}clear(){this._buffer=void 0}};function Tj(t){return Lg.parse(JSON.parse(t))}function Pb(t){return JSON.stringify(t)+`
47
+ `}var Ha=class{constructor(e=vm.default.stdin,r=vm.default.stdout){this._stdin=e,this._stdout=r,this._readBuffer=new Va,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{var o;(o=this.onerror)==null||o.call(this,n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){var e,r;for(;;)try{let n=this._readBuffer.readMessage();if(n===null)break;(e=this.onmessage)==null||e.call(this,n)}catch(n){(r=this.onerror)==null||r.call(this,n)}}async close(){var r;this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),(r=this.onclose)==null||r.call(this)}send(e){return new Promise(r=>{let n=Pb(e);this._stdout.write(n)?r():this._stdout.once("drain",r)})}};var ze=class{register(e){e.tool(this.name,this.description,this.schema.shape,this.execute.bind(this))}normalizeFileId(e){return e&&e.replace(/^file\//,"")}};function Mi(t,e){return function(){return t.apply(e,arguments)}}var{toString:Ej}=Object.prototype,{getPrototypeOf:_m}=Object,Ja=(t=>e=>{let r=Ej.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=t=>(t=t.toLowerCase(),e=>Ja(e)===t),Wa=t=>e=>typeof e===t,{isArray:xo}=Array,Zi=Wa("undefined");function Pj(t){return t!==null&&!Zi(t)&&t.constructor!==null&&!Zi(t.constructor)&&Tt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var Ob=Xt("ArrayBuffer");function Rj(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ob(t.buffer),e}var Ij=Wa("string"),Tt=Wa("function"),Cb=Wa("number"),Ka=t=>t!==null&&typeof t=="object",Oj=t=>t===!0||t===!1,Ga=t=>{if(Ja(t)!=="object")return!1;let e=_m(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Cj=Xt("Date"),jj=Xt("File"),Aj=Xt("Blob"),Nj=Xt("FileList"),Dj=t=>Ka(t)&&Tt(t.pipe),Lj=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Tt(t.append)&&((e=Ja(t))==="formdata"||e==="object"&&Tt(t.toString)&&t.toString()==="[object FormData]"))},Mj=Xt("URLSearchParams"),Zj=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qi(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),xo(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{let i=r?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length,a;for(n=0;n<s;n++)a=i[n],e.call(null,t[a],a,t)}}function jb(t,e){e=e.toLowerCase();let r=Object.keys(t),n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}var Ab=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Nb=t=>!Zi(t)&&t!==Ab;function bm(){let{caseless:t}=Nb(this)&&this||{},e={},r=(n,o)=>{let i=t&&jb(e,o)||o;Ga(e[i])&&Ga(n)?e[i]=bm(e[i],n):Ga(n)?e[i]=bm({},n):xo(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&qi(arguments[n],r);return e}var qj=(t,e,r,{allOwnKeys:n}={})=>(qi(e,(o,i)=>{r&&Tt(o)?t[i]=Mi(o,r):t[i]=o},{allOwnKeys:n}),t),Uj=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Fj=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Bj=(t,e,r,n)=>{let o,i,s,a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&_m(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Vj=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},Hj=t=>{if(!t)return null;if(xo(t))return t;let e=t.length;if(!Cb(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Gj=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&_m(Uint8Array)),Jj=(t,e)=>{let n=(t&&t[Symbol.iterator]).call(t),o;for(;(o=n.next())&&!o.done;){let i=o.value;e.call(t,i[0],i[1])}},Wj=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Kj=Xt("HTMLFormElement"),Yj=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Rb=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Xj=Xt("RegExp"),Db=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};qi(r,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(n[i]=s||o)}),Object.defineProperties(t,n)},Qj=t=>{Db(t,(e,r)=>{if(Tt(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=t[r];if(Tt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},e1=(t,e)=>{let r={},n=o=>{o.forEach(i=>{r[i]=!0})};return xo(t)?n(t):n(String(t).split(e)),r},t1=()=>{},r1=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ym="abcdefghijklmnopqrstuvwxyz",Ib="0123456789",Lb={DIGIT:Ib,ALPHA:ym,ALPHA_DIGIT:ym+ym.toUpperCase()+Ib},n1=(t=16,e=Lb.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function o1(t){return!!(t&&Tt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}var i1=t=>{let e=new Array(10),r=(n,o)=>{if(Ka(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;let i=xo(n)?[]:{};return qi(n,(s,a)=>{let c=r(s,o+1);!Zi(c)&&(i[a]=c)}),e[o]=void 0,i}}return n};return r(t,0)},s1=Xt("AsyncFunction"),a1=t=>t&&(Ka(t)||Tt(t))&&Tt(t.then)&&Tt(t.catch),v={isArray:xo,isArrayBuffer:Ob,isBuffer:Pj,isFormData:Lj,isArrayBufferView:Rj,isString:Ij,isNumber:Cb,isBoolean:Oj,isObject:Ka,isPlainObject:Ga,isUndefined:Zi,isDate:Cj,isFile:jj,isBlob:Aj,isRegExp:Xj,isFunction:Tt,isStream:Dj,isURLSearchParams:Mj,isTypedArray:Gj,isFileList:Nj,forEach:qi,merge:bm,extend:qj,trim:Zj,stripBOM:Uj,inherits:Fj,toFlatObject:Bj,kindOf:Ja,kindOfTest:Xt,endsWith:Vj,toArray:Hj,forEachEntry:Jj,matchAll:Wj,isHTMLForm:Kj,hasOwnProperty:Rb,hasOwnProp:Rb,reduceDescriptors:Db,freezeMethods:Qj,toObjectSet:e1,toCamelCase:Yj,noop:t1,toFiniteNumber:r1,findKey:jb,global:Ab,isContextDefined:Nb,ALPHABET:Lb,generateString:n1,isSpecCompliantForm:o1,toJSONObject:i1,isAsyncFn:s1,isThenable:a1};function vo(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}v.inherits(vo,Error,{toJSON:function(){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:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Mb=vo.prototype,Zb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Zb[t]={value:t}});Object.defineProperties(vo,Zb);Object.defineProperty(Mb,"isAxiosError",{value:!0});vo.from=(t,e,r,n,o,i)=>{let s=Object.create(Mb);return v.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),vo.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};var I=vo;var Bw=le(Fw(),1),ac=Bw.default;function qm(t){return v.isPlainObject(t)||v.isArray(t)}function Hw(t){return v.endsWith(t,"[]")?t.slice(0,-2):t}function Vw(t,e,r){return t?t.concat(e).map(function(o,i){return o=Hw(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function HA(t){return v.isArray(t)&&!t.some(qm)}var GA=v.toFlatObject(v,{},null,function(e){return/^is[A-Z]/.test(e)});function JA(t,e,r){if(!v.isObject(t))throw new TypeError("target must be an object");e=e||new(ac||FormData),r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,x){return!v.isUndefined(x[f])});let n=r.metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(e);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(v.isDate(d))return d.toISOString();if(!c&&v.isBlob(d))throw new I("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(d)||v.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,f,x){let g=d;if(d&&!x&&typeof d=="object"){if(v.endsWith(f,"{}"))f=n?f:f.slice(0,-2),d=JSON.stringify(d);else if(v.isArray(d)&&HA(d)||(v.isFileList(d)||v.endsWith(f,"[]"))&&(g=v.toArray(d)))return f=Hw(f),g.forEach(function(b,$){!(v.isUndefined(b)||b===null)&&e.append(s===!0?Vw([f],$,i):s===null?f:f+"[]",u(b))}),!1}return qm(d)?!0:(e.append(Vw(x,f,i),u(d)),!1)}let p=[],m=Object.assign(GA,{defaultVisitor:l,convertValue:u,isVisitable:qm});function h(d,f){if(!v.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+f.join("."));p.push(d),v.forEach(d,function(g,y){(!(v.isUndefined(g)||g===null)&&o.call(e,g,v.isString(y)?y.trim():y,f,m))===!0&&h(g,f?f.concat(y):[y])}),p.pop()}}if(!v.isObject(t))throw new TypeError("data must be an object");return h(t),e}var Dr=JA;function Gw(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Jw(t,e){this._pairs=[],t&&Dr(t,this,e)}var Ww=Jw.prototype;Ww.append=function(e,r){this._pairs.push([e,r])};Ww.toString=function(e){let r=e?function(n){return e.call(this,n,Gw)}:Gw;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};var Kw=Jw;function WA(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zn(t,e,r){if(!e)return t;let n=r&&r.encode||WA,o=r&&r.serialize,i;if(o?i=o(e,r):i=v.isURLSearchParams(e)?e.toString():new Kw(e,r).toString(n),i){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}var Um=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){v.forEach(this.handlers,function(n){n!==null&&e(n)})}},Fm=Um;var ko={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Yw=le(require("url"),1),Xw=Yw.default.URLSearchParams;var Ie={isNode:!0,classes:{URLSearchParams:Xw,FormData:ac,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]};function Bm(t,e){return Dr(t,new Ie.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Ie.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function KA(t){return v.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function YA(t){let e={},r=Object.keys(t),n,o=r.length,i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function XA(t){function e(r,n,o,i){let s=r[i++],a=Number.isFinite(+s),c=i>=r.length;return s=!s&&v.isArray(o)?o.length:s,c?(v.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!v.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&v.isArray(o[s])&&(o[s]=YA(o[s])),!a)}if(v.isFormData(t)&&v.isFunction(t.entries)){let r={};return v.forEachEntry(t,(n,o)=>{e(KA(n),o,r,0)}),r}return null}var cc=XA;function QA(t,e,r){if(v.isString(t))try{return(e||JSON.parse)(t),v.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Vm={transitional:ko,adapter:["xhr","http"],transformRequest:[function(e,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=v.isObject(e);if(i&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return o&&o?JSON.stringify(cc(e)):e;if(v.isArrayBuffer(e)||v.isBuffer(e)||v.isStream(e)||v.isFile(e)||v.isBlob(e))return e;if(v.isArrayBufferView(e))return e.buffer;if(v.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Bm(e,this.formSerializer).toString();if((a=v.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return Dr(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),QA(e)):e}],transformResponse:[function(e){let r=this.transitional||Vm.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&v.isString(e)&&(n&&!this.responseType||o)){let s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?I.from(a,I.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],t=>{Vm.headers[t]={}});var So=Vm;var eN=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qw=t=>{let e={},r,n,o;return t&&t.split(`
48
+ `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&eN[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};var e0=Symbol("internals");function Hi(t){return t&&String(t).trim().toLowerCase()}function uc(t){return t===!1||t==null?t:v.isArray(t)?t.map(uc):String(t)}function tN(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}var rN=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Hm(t,e,r,n,o){if(v.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!v.isString(e)){if(v.isString(n))return e.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(e)}}function nN(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function oN(t,e){let r=v.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}var $o=class{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function i(a,c,u){let l=Hi(c);if(!l)throw new Error("header name must be a non-empty string");let p=v.findKey(o,l);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||c]=uc(a))}let s=(a,c)=>v.forEach(a,(u,l)=>i(u,l,c));return v.isPlainObject(e)||e instanceof this.constructor?s(e,r):v.isString(e)&&(e=e.trim())&&!rN(e)?s(Qw(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=Hi(e),e){let n=v.findKey(this,e);if(n){let o=this[n];if(!r)return o;if(r===!0)return tN(o);if(v.isFunction(r))return r.call(this,o,n);if(v.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Hi(e),e){let n=v.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Hm(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function i(s){if(s=Hi(s),s){let a=v.findKey(n,s);a&&(!r||Hm(n,n[a],a,r))&&(delete n[a],o=!0)}}return v.isArray(e)?e.forEach(i):i(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let i=r[n];(!e||Hm(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let r=this,n={};return v.forEach(this,(o,i)=>{let s=v.findKey(n,i);if(s){r[s]=uc(o),delete r[i];return}let a=e?nN(i):String(i).trim();a!==i&&delete r[i],r[a]=uc(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return v.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&v.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
49
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){let n=(this[e0]=this[e0]={accessors:{}}).accessors,o=this.prototype;function i(s){let a=Hi(s);n[a]||(oN(o,s),n[a]=!0)}return v.isArray(e)?e.forEach(i):i(e),this}};$o.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors($o.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});v.freezeMethods($o);var Ae=$o;function Gi(t,e){let r=this||So,n=e||r,o=Ae.from(n.headers),i=n.data;return v.forEach(t,function(a){i=a.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Ji(t){return!!(t&&t.__CANCEL__)}function t0(t,e,r){I.call(this,t??"canceled",I.ERR_CANCELED,e,r),this.name="CanceledError"}v.inherits(t0,I,{__CANCEL__:!0});var qt=t0;function Lr(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new I("Request failed with status code "+r.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Gm(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Jm(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Tn(t,e){return t&&!Gm(e)?Jm(t,e):e}var A0=le(n0(),1),N0=le(require("http"),1),D0=le(require("https"),1),L0=le(require("util"),1),M0=le(_0(),1),dr=le(require("zlib"),1);var In="1.6.0";function Qi(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var HN=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function df(t,e,r){let n=r&&r.Blob||Ie.classes.Blob,o=Qi(t);if(e===void 0&&n&&(e=!0),o==="data"){t=o.length?t.slice(o.length+1):t;let i=HN.exec(t);if(!i)throw new I("Invalid URL",I.ERR_INVALID_URL);let s=i[1],a=i[2],c=i[3],u=Buffer.from(decodeURIComponent(c),a?"base64":"utf8");if(e){if(!n)throw new I("Blob is not supported",I.ERR_NOT_SUPPORT);return new n([u],{type:s})}return u}throw new I("Unsupported protocol "+o,I.ERR_NOT_SUPPORT)}var On=le(require("stream"),1);var k0=le(require("stream"),1);function GN(t,e){let r=0,n=1e3/e,o=null;return function(s,a){let c=Date.now();if(s||c-r>n)return o&&(clearTimeout(o),o=null),r=c,t.apply(null,a);o||(o=setTimeout(()=>(o=null,r=Date.now(),t.apply(null,a)),n-(c-r)))}}var w0=GN;function JN(t,e){t=t||10;let r=new Array(t),n=new Array(t),o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){let u=Date.now(),l=n[i];s||(s=u),r[o]=c,n[o]=u;let p=i,m=0;for(;p!==o;)m+=r[p++],p=p%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;let h=l&&u-l;return h?Math.round(m*1e3/h):void 0}}var hc=JN;var gc=Symbol("internals"),mf=class extends k0.default.Transform{constructor(e){e=v.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,c)=>!v.isUndefined(c[a])),super({readableHighWaterMark:e.chunkSize});let r=this,n=this[gc]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},o=hc(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",a=>{a==="progress"&&(n.isCaptured||(n.isCaptured=!0))});let i=0;n.updateProgress=w0(function(){let c=n.length,u=n.bytesSeen,l=u-i;if(!l||r.destroyed)return;let p=o(l);i=u,process.nextTick(()=>{r.emit("progress",{loaded:u,total:c,progress:c?u/c:void 0,bytes:l,rate:p||void 0,estimated:p&&c&&u<=c?(c-u)/p:void 0})})},n.ticksRate);let s=()=>{n.updateProgress(!0)};this.once("end",s),this.once("error",s)}_read(e){let r=this[gc];return r.onReadCallback&&r.onReadCallback(),super._read(e)}_transform(e,r,n){let o=this,i=this[gc],s=i.maxRate,a=this.readableHighWaterMark,c=i.timeWindow,u=1e3/c,l=s/u,p=i.minChunkSize!==!1?Math.max(i.minChunkSize,l*.01):0;function m(d,f){let x=Buffer.byteLength(d);i.bytesSeen+=x,i.bytes+=x,i.isCaptured&&i.updateProgress(),o.push(d)?process.nextTick(f):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(f)}}let h=(d,f)=>{let x=Buffer.byteLength(d),g=null,y=a,b,$=0;if(s){let S=Date.now();(!i.ts||($=S-i.ts)>=c)&&(i.ts=S,b=l-i.bytes,i.bytes=b<0?-b:0,$=0),b=l-i.bytes}if(s){if(b<=0)return setTimeout(()=>{f(null,d)},c-$);b<y&&(y=b)}y&&x>y&&x-y>p&&(g=d.subarray(y),d=d.subarray(0,y)),m(d,g?()=>{process.nextTick(f,null,g)}:f)};h(e,function d(f,x){if(f)return n(f);x?h(x,d):n(null)})}setLength(e){return this[gc].length=+e,this}},ff=mf;var Z0=le(require("events"),1);var $0=require("util"),z0=require("stream");var{asyncIterator:S0}=Symbol,WN=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[S0]?yield*t[S0]():yield t},xc=WN;var KN=v.ALPHABET.ALPHA_DIGIT+"-_",es=new $0.TextEncoder,Zr=`\r
50
+ `,YN=es.encode(Zr),XN=2,hf=class{constructor(e,r){let{escapeName:n}=this.constructor,o=v.isString(r),i=`Content-Disposition: form-data; name="${n(e)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${Zr}`;o?r=es.encode(String(r).replace(/\r?\n|\r\n?/g,Zr)):i+=`Content-Type: ${r.type||"application/octet-stream"}${Zr}`,this.headers=es.encode(i+Zr),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+XN,this.name=e,this.value=r}async*encode(){yield this.headers;let{value:e}=this;v.isTypedArray(e)?yield e:yield*xc(e),yield YN}static escapeName(e){return String(e).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},QN=(t,e,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:i=n+"-"+v.generateString(o,KN)}=r||{};if(!v.isFormData(t))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let s=es.encode("--"+i+Zr),a=es.encode("--"+i+"--"+Zr+Zr),c=a.byteLength,u=Array.from(t.entries()).map(([p,m])=>{let h=new hf(p,m);return c+=h.size,h});c+=s.byteLength*u.length,c=v.toFiniteNumber(c);let l={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(l["Content-Length"]=c),e&&e(l),z0.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield a})())},T0=QN;var E0=le(require("stream"),1),gf=class extends E0.default.Transform{__transform(e,r,n){this.push(e),n()}_transform(e,r,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(e,r,n)}},P0=gf;var eD=(t,e)=>v.isAsyncFn(t)?function(...r){let n=r.pop();t.apply(this,r).then(o=>{try{e?n(null,...e(o)):n(null,o)}catch(i){n(i)}},n)}:t,R0=eD;var I0={flush:dr.default.constants.Z_SYNC_FLUSH,finishFlush:dr.default.constants.Z_SYNC_FLUSH},tD={flush:dr.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:dr.default.constants.BROTLI_OPERATION_FLUSH},O0=v.isFunction(dr.default.createBrotliDecompress),{http:rD,https:nD}=M0.default,oD=/https:?/,C0=Ie.protocols.map(t=>t+":");function iD(t){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t)}function q0(t,e,r){let n=e;if(!n&&n!==!1){let o=(0,A0.getProxyForUrl)(r);o&&(n=new URL(o))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let i=Buffer.from(n.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+i}t.headers.host=t.hostname+(t.port?":"+t.port:"");let o=n.hostname||n.host;t.hostname=o,t.host=o,t.port=n.port,t.path=r,n.protocol&&(t.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}t.beforeRedirects.proxy=function(i){q0(i,e,i.href)}}var sD=typeof process<"u"&&v.kindOf(process)==="process",aD=t=>new Promise((e,r)=>{let n,o,i=(c,u)=>{o||(o=!0,n&&n(c,u))},s=c=>{i(c),e(c)},a=c=>{i(c,!0),r(c)};t(s,a,c=>n=c).catch(a)}),cD=({address:t,family:e})=>{if(!v.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},j0=(t,e)=>cD(v.isObject(t)?t:{address:t,family:e}),U0=sD&&function(e){return aD(async function(n,o,i){let{data:s,lookup:a,family:c}=e,{responseType:u,responseEncoding:l}=e,p=e.method.toUpperCase(),m,h=!1,d;if(a){let B=R0(a,V=>v.isArray(V)?V:[V]);a=(V,Ge,jn)=>{B(V,Ge,(Xe,gr,Lc)=>{let Ut=v.isArray(gr)?gr.map(Rt=>j0(Rt)):[j0(gr,Lc)];Ge.all?jn(Xe,Ut):jn(Xe,Ut[0].address,Ut[0].family)})}}let f=new Z0.default,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g),f.removeAllListeners()};i((B,V)=>{m=!0,V&&(h=!0,x())});function g(B){f.emit("abort",!B||B.type?new qt(null,e,d):B)}f.once("abort",o),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));let y=Tn(e.baseURL,e.url),b=new URL(y,"http://localhost"),$=b.protocol||C0[0];if($==="data:"){let B;if(p!=="GET")return Lr(n,o,{status:405,statusText:"method not allowed",headers:{},config:e});try{B=df(e.url,u==="blob",{Blob:e.env&&e.env.Blob})}catch(V){throw I.from(V,I.ERR_BAD_REQUEST,e)}return u==="text"?(B=B.toString(l),(!l||l==="utf8")&&(B=v.stripBOM(B))):u==="stream"&&(B=On.default.Readable.from(B)),Lr(n,o,{data:B,status:200,statusText:"OK",headers:new Ae,config:e})}if(C0.indexOf($)===-1)return o(new I("Unsupported protocol "+$,I.ERR_BAD_REQUEST,e));let S=Ae.from(e.headers).normalize();S.set("User-Agent","axios/"+In,!1);let L=e.onDownloadProgress,D=e.onUploadProgress,ue=e.maxRate,_e,Pt;if(v.isSpecCompliantForm(s)){let B=S.getContentType(/boundary=([-_\w\d]{10,70})/i);s=T0(s,V=>{S.set(V)},{tag:`axios-${In}-boundary`,boundary:B&&B[1]||void 0})}else if(v.isFormData(s)&&v.isFunction(s.getHeaders)){if(S.set(s.getHeaders()),!S.hasContentLength())try{let B=await L0.default.promisify(s.getLength).call(s);Number.isFinite(B)&&B>=0&&S.setContentLength(B)}catch{}}else if(v.isBlob(s))s.size&&S.setContentType(s.type||"application/octet-stream"),S.setContentLength(s.size||0),s=On.default.Readable.from(xc(s));else if(s&&!v.isStream(s)){if(!Buffer.isBuffer(s))if(v.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else if(v.isString(s))s=Buffer.from(s,"utf-8");else return o(new I("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",I.ERR_BAD_REQUEST,e));if(S.setContentLength(s.length,!1),e.maxBodyLength>-1&&s.length>e.maxBodyLength)return o(new I("Request body larger than maxBodyLength limit",I.ERR_BAD_REQUEST,e))}let Co=v.toFiniteNumber(S.getContentLength());v.isArray(ue)?(_e=ue[0],Pt=ue[1]):_e=Pt=ue,s&&(D||_e)&&(v.isStream(s)||(s=On.default.Readable.from(s,{objectMode:!1})),s=On.default.pipeline([s,new ff({length:Co,maxRate:v.toFiniteNumber(_e)})],v.noop),D&&s.on("progress",B=>{D(Object.assign(B,{upload:!0}))}));let hr;if(e.auth){let B=e.auth.username||"",V=e.auth.password||"";hr=B+":"+V}if(!hr&&b.username){let B=b.username,V=b.password;hr=B+":"+V}hr&&S.delete("authorization");let jo;try{jo=zn(b.pathname+b.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(B){let V=new Error(B.message);return V.config=e,V.url=e.url,V.exists=!0,o(V)}S.set("Accept-Encoding","gzip, compress, deflate"+(O0?", br":""),!1);let He={path:jo,method:p,headers:S.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:hr,protocol:$,family:c,beforeRedirect:iD,beforeRedirects:{}};!v.isUndefined(a)&&(He.lookup=a),e.socketPath?He.socketPath=e.socketPath:(He.hostname=b.hostname,He.port=b.port,q0(He,e.proxy,$+"//"+b.hostname+(b.port?":"+b.port:"")+He.path));let os,Dc=oD.test(He.protocol);if(He.agent=Dc?e.httpsAgent:e.httpAgent,e.transport?os=e.transport:e.maxRedirects===0?os=Dc?D0.default:N0.default:(e.maxRedirects&&(He.maxRedirects=e.maxRedirects),e.beforeRedirect&&(He.beforeRedirects.config=e.beforeRedirect),os=Dc?nD:rD),e.maxBodyLength>-1?He.maxBodyLength=e.maxBodyLength:He.maxBodyLength=1/0,e.insecureHTTPParser&&(He.insecureHTTPParser=e.insecureHTTPParser),d=os.request(He,function(V){if(d.destroyed)return;let Ge=[V],jn=+V.headers["content-length"];if(L){let Rt=new ff({length:v.toFiniteNumber(jn),maxRate:v.toFiniteNumber(Pt)});L&&Rt.on("progress",is=>{L(Object.assign(is,{download:!0}))}),Ge.push(Rt)}let Xe=V,gr=V.req||d;if(e.decompress!==!1&&V.headers["content-encoding"])switch((p==="HEAD"||V.statusCode===204)&&delete V.headers["content-encoding"],(V.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Ge.push(dr.default.createUnzip(I0)),delete V.headers["content-encoding"];break;case"deflate":Ge.push(new P0),Ge.push(dr.default.createUnzip(I0)),delete V.headers["content-encoding"];break;case"br":O0&&(Ge.push(dr.default.createBrotliDecompress(tD)),delete V.headers["content-encoding"])}Xe=Ge.length>1?On.default.pipeline(Ge,v.noop):Ge[0];let Lc=On.default.finished(Xe,()=>{Lc(),x()}),Ut={status:V.statusCode,statusText:V.statusMessage,headers:new Ae(V.headers),config:e,request:gr};if(u==="stream")Ut.data=Xe,Lr(n,o,Ut);else{let Rt=[],is=0;Xe.on("data",function(Qe){Rt.push(Qe),is+=Qe.length,e.maxContentLength>-1&&is>e.maxContentLength&&(h=!0,Xe.destroy(),o(new I("maxContentLength size of "+e.maxContentLength+" exceeded",I.ERR_BAD_RESPONSE,e,gr)))}),Xe.on("aborted",function(){if(h)return;let Qe=new I("maxContentLength size of "+e.maxContentLength+" exceeded",I.ERR_BAD_RESPONSE,e,gr);Xe.destroy(Qe),o(Qe)}),Xe.on("error",function(Qe){d.destroyed||o(I.from(Qe,null,e,gr))}),Xe.on("end",function(){try{let Qe=Rt.length===1?Rt[0]:Buffer.concat(Rt);u!=="arraybuffer"&&(Qe=Qe.toString(l),(!l||l==="utf8")&&(Qe=v.stripBOM(Qe))),Ut.data=Qe}catch(Qe){return o(I.from(Qe,null,e,Ut.request,Ut))}Lr(n,o,Ut)})}f.once("abort",Rt=>{Xe.destroyed||(Xe.emit("error",Rt),Xe.destroy())})}),f.once("abort",B=>{o(B),d.destroy(B)}),d.on("error",function(V){o(I.from(V,null,e,d))}),d.on("socket",function(V){V.setKeepAlive(!0,1e3*60)}),e.timeout){let B=parseInt(e.timeout,10);if(Number.isNaN(B)){o(new I("error trying to parse `config.timeout` to int",I.ERR_BAD_OPTION_VALUE,e,d));return}d.setTimeout(B,function(){if(m)return;let Ge=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",jn=e.transitional||ko;e.timeoutErrorMessage&&(Ge=e.timeoutErrorMessage),o(new I(Ge,jn.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,d)),g()})}if(v.isStream(s)){let B=!1,V=!1;s.on("end",()=>{B=!0}),s.once("error",Ge=>{V=!0,d.destroy(Ge)}),s.on("close",()=>{!B&&!V&&g(new qt("Request stream has been aborted",e,d))}),s.pipe(d)}else d.end(s)})};var F0=Ie.isStandardBrowserEnv?(function(){return{write:function(r,n,o,i,s,a){let c=[];c.push(r+"="+encodeURIComponent(n)),v.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),v.isString(i)&&c.push("path="+i),v.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){let n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})();var B0=Ie.isStandardBrowserEnv?(function(){let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){let a=v.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}})():(function(){return function(){return!0}})();function V0(t,e){let r=0,n=hc(50,250);return o=>{let i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a),u=i<=s;r=i;let l={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:o};l[e?"download":"upload"]=!0,t(l)}}var uD=typeof XMLHttpRequest<"u",H0=uD&&function(t){return new Promise(function(r,n){let o=t.data,i=Ae.from(t.headers).normalize(),s=t.responseType,a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}let u;v.isFormData(o)&&(Ie.isStandardBrowserEnv||Ie.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?v.isString(u=i.getContentType())&&i.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(t.auth){let d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+f))}let p=Tn(t.baseURL,t.url);l.open(t.method.toUpperCase(),zn(p,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function m(){if(!l)return;let d=Ae.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:t,request:l};Lr(function(y){r(y),c()},function(y){n(y),c()},x),l=null}if("onloadend"in l?l.onloadend=m:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(m)},l.onabort=function(){l&&(n(new I("Request aborted",I.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let f=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",x=t.transitional||ko;t.timeoutErrorMessage&&(f=t.timeoutErrorMessage),n(new I(f,x.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,t,l)),l=null},Ie.isStandardBrowserEnv){let d=B0(p)&&t.xsrfCookieName&&F0.read(t.xsrfCookieName);d&&i.set(t.xsrfHeaderName,d)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&v.forEach(i.toJSON(),function(f,x){l.setRequestHeader(x,f)}),v.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",V0(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",V0(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=d=>{l&&(n(!d||d.type?new qt(null,t,l):d),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));let h=Qi(p);if(h&&Ie.protocols.indexOf(h)===-1){n(new I("Unsupported protocol "+h+":",I.ERR_BAD_REQUEST,t));return}l.send(o||null)})};var xf={http:U0,xhr:H0};v.forEach(xf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});var G0=t=>`- ${t}`,lD=t=>v.isFunction(t)||t===null||t===!1,vc={getAdapter:t=>{t=v.isArray(t)?t:[t];let{length:e}=t,r,n,o={};for(let i=0;i<e;i++){r=t[i];let s;if(n=r,!lD(r)&&(n=xf[(s=String(r)).toLowerCase()],n===void 0))throw new I(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){let i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build")),s=e?i.length>1?`since :
51
+ `+i.map(G0).join(`
52
+ `):" "+G0(i[0]):"as no adapter specified";throw new I("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:xf};function vf(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new qt(null,t)}function yc(t){return vf(t),t.headers=Ae.from(t.headers),t.data=Gi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),vc.getAdapter(t.adapter||So.adapter)(t).then(function(n){return vf(t),n.data=Gi.call(t,t.transformResponse,n),n.headers=Ae.from(n.headers),n},function(n){return Ji(n)||(vf(t),n&&n.response&&(n.response.data=Gi.call(t,t.transformResponse,n.response),n.response.headers=Ae.from(n.response.headers))),Promise.reject(n)})}var J0=t=>t instanceof Ae?t.toJSON():t;function mr(t,e){e=e||{};let r={};function n(u,l,p){return v.isPlainObject(u)&&v.isPlainObject(l)?v.merge.call({caseless:p},u,l):v.isPlainObject(l)?v.merge({},l):v.isArray(l)?l.slice():l}function o(u,l,p){if(v.isUndefined(l)){if(!v.isUndefined(u))return n(void 0,u,p)}else return n(u,l,p)}function i(u,l){if(!v.isUndefined(l))return n(void 0,l)}function s(u,l){if(v.isUndefined(l)){if(!v.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,p){if(p in e)return n(u,l);if(p in t)return n(void 0,u)}let c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,l)=>o(J0(u),J0(l),!0)};return v.forEach(Object.keys(Object.assign({},t,e)),function(l){let p=c[l]||o,m=p(t[l],e[l],l);v.isUndefined(m)&&p!==a||(r[l]=m)}),r}var yf={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yf[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var W0={};yf.transitional=function(e,r,n){function o(i,s){return"[Axios v"+In+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(e===!1)throw new I(o(s," has been removed"+(r?" in "+r:"")),I.ERR_DEPRECATED);return r&&!W0[s]&&(W0[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,a):!0}};function pD(t,e,r){if(typeof t!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),o=n.length;for(;o-- >0;){let i=n[o],s=e[i];if(s){let a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new I("option "+i+" must be "+c,I.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new I("Unknown option "+i,I.ERR_BAD_OPTION)}}var bc={assertOptions:pD,validators:yf};var qr=bc.validators,Ro=class{constructor(e){this.defaults=e,this.interceptors={request:new Fm,response:new Fm}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=mr(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&bc.assertOptions(n,{silentJSONParsing:qr.transitional(qr.boolean),forcedJSONParsing:qr.transitional(qr.boolean),clarifyTimeoutError:qr.transitional(qr.boolean)},!1),o!=null&&(v.isFunction(o)?r.paramsSerializer={serialize:o}:bc.assertOptions(o,{encode:qr.function,serialize:qr.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&v.merge(i.common,i[r.method]);i&&v.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=Ae.concat(s,i);let a=[],c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(c=c&&f.synchronous,a.unshift(f.fulfilled,f.rejected))});let u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let l,p=0,m;if(!c){let d=[yc.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),m=d.length,l=Promise.resolve(r);p<m;)l=l.then(d[p++],d[p++]);return l}m=a.length;let h=r;for(p=0;p<m;){let d=a[p++],f=a[p++];try{h=d(h)}catch(x){f.call(this,x);break}}try{l=yc.call(this,h)}catch(d){return Promise.reject(d)}for(p=0,m=u.length;p<m;)l=l.then(u[p++],u[p++]);return l}getUri(e){e=mr(this.defaults,e);let r=Tn(e.baseURL,e.url);return zn(r,e.params,e.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(e){Ro.prototype[e]=function(r,n){return this.request(mr(n||{},{method:e,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(e){function r(n){return function(i,s,a){return this.request(mr(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Ro.prototype[e]=r(),Ro.prototype[e+"Form"]=r(!0)});var ts=Ro;var bf=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});let n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i,s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new qt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new t(function(o){e=o}),cancel:e}}},K0=bf;function _f(t){return function(r){return t.apply(null,r)}}function wf(t){return v.isObject(t)&&t.isAxiosError===!0}var kf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kf).forEach(([t,e])=>{kf[e]=t});var Y0=kf;function X0(t){let e=new ts(t),r=Mi(ts.prototype.request,e);return v.extend(r,ts.prototype,e,{allOwnKeys:!0}),v.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return X0(mr(t,o))},r}var Oe=X0(So);Oe.Axios=ts;Oe.CanceledError=qt;Oe.CancelToken=K0;Oe.isCancel=Ji;Oe.VERSION=In;Oe.toFormData=Dr;Oe.AxiosError=I;Oe.Cancel=Oe.CanceledError;Oe.all=function(e){return Promise.all(e)};Oe.spread=_f;Oe.isAxiosError=wf;Oe.mergeConfig=mr;Oe.AxiosHeaders=Ae;Oe.formToJSON=t=>cc(v.isHTMLForm(t)?new FormData(t):t);Oe.getAdapter=vc.getAdapter;Oe.HttpStatusCode=Y0;Oe.default=Oe;var Re=Oe;var{Axios:Q6,AxiosError:eB,CanceledError:tB,isCancel:rB,CancelToken:nB,VERSION:oB,all:iB,Cancel:sB,isAxiosError:aB,spread:cB,toFormData:uB,AxiosHeaders:lB,HttpStatusCode:pB,formToJSON:dB,getAdapter:mB,mergeConfig:fB}=Re;function Io(){return process.argv.slice(2)}function Sf(){let t=Io(),e="";for(let r=0;r<t.length;r++)if(t[r]==="--token"&&r+1<t.length){e=t[r+1];break}else if(t[r].startsWith("--token=")){e=t[r].split("=")[1];break}return e}function $f(){let t=Io(),e="";for(let r=0;r<t.length;r++)if(t[r]==="--url"&&r+1<t.length){e=t[r+1];break}else if(t[r].startsWith("--url=")){e=t[r].split("=")[1];break}return e}function zf(){let t=Io(),e=[];for(let r=0;r<t.length;r++)t[r]==="--rule"&&r+1<t.length?e.push(t[r+1]):t[r].startsWith("--rule=")&&e.push(t[r].split("=")[1]);return e}function dD(){let t=Io();for(let e of t)if(e==="--debug")return!0;return!1}function Tf(){let t=Io();for(let e of t)if(e==="--no-rule")return!0;return!1}function Ef(){let t=Io(),e="";for(let r=0;r<t.length;r++)if(t[r]==="--proxy"&&r+1<t.length){e=t[r+1];break}else if(t[r].startsWith("--proxy=")){e=t[r].split("=")[1];break}return e}function Q0(){let t=Sf(),e=$f(),r=zf(),n=dD(),o=Tf(),i=Ef();return{token:t,baseUrl:e,rules:r,debug:n,noRule:o,proxy:i}}var uk=le(require("https"));var er=le(require("net"),1),rs=le(require("tls"),1),sk=le(require("assert"),1),ak=le(fc(),1);var ek=le(require("net"),1),tk=le(require("http"),1),rk=require("https");var xB=le(require("http"),1),vB=le(require("https"),1);var Qt=Symbol("AgentBaseInternalState"),_c=class extends tk.Agent{constructor(e){super(e),this[Qt]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
53
+ `).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new ek.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?rk.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(o),s=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,o)).then(a=>{if(this.decrementSockets(i,s),typeof a.addRequest=="function")try{return a.addRequest(e,o)}catch(c){return n(c)}this[Qt].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,s),n(a)})}createConnection(){let e=this[Qt].currentSocket;if(this[Qt].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Qt].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Qt]&&(this[Qt].defaultPort=e)}get protocol(){return this[Qt].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Qt]&&(this[Qt].protocol=e)}};var ck=require("url");var nk=le(fc(),1),wc=(0,nk.default)("https-proxy-agent:parse-proxy-response");function Pf(t){return new Promise((e,r)=>{let n=0,o=[];function i(){let l=t.read();l?u(l):t.once("readable",i)}function s(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){s(),wc("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){s(),wc("onerror %o",l),r(l)}function u(l){o.push(l),n+=l.length;let p=Buffer.concat(o,n),m=p.indexOf(`\r
54
54
  \r
55
- `);if(m===-1){_c("have not received end of HTTP headers yet..."),i();return}let h=p.slice(0,m).toString("ascii").split(`\r
56
- `),d=h.shift();if(!d)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=d.split(" "),x=+f[1],g=f.slice(2).join(" "),y={};for(let b of h){if(!b)continue;let S=b.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let $=b.slice(0,S).toLowerCase(),Z=b.slice(S+1).trimStart(),N=y[$];typeof N=="string"?y[$]=[N,Z]:Array.isArray(N)?N.push(Z):y[$]=Z}_c("got proxy server response: %o %o",d,y),s(),e({connect:{statusCode:x,statusText:g,headers:y},buffered:p})}t.on("error",c),t.on("end",a),i()})}var es=(0,tk.default)("https-proxy-agent"),X0=t=>t.servername===void 0&&t.host&&!qr.isIP(t.host)?{...t,servername:t.host}:t,ts=class extends bc{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new rk.URL(e):e,this.proxyHeaders=(r==null?void 0:r.headers)??{},es("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Q0(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(es("Creating `tls.Socket`: %o",this.connectOpts),o=kf.connect(X0(this.connectOpts))):(es("Creating `net.Socket`: %o",this.connectOpts),o=qr.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=qr.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${s}:${r.port} HTTP/1.1\r
55
+ `);if(m===-1){wc("have not received end of HTTP headers yet..."),i();return}let h=p.slice(0,m).toString("ascii").split(`\r
56
+ `),d=h.shift();if(!d)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=d.split(" "),x=+f[1],g=f.slice(2).join(" "),y={};for(let b of h){if(!b)continue;let $=b.indexOf(":");if($===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${b}"`));let S=b.slice(0,$).toLowerCase(),L=b.slice($+1).trimStart(),D=y[S];typeof D=="string"?y[S]=[D,L]:Array.isArray(D)?D.push(L):y[S]=L}wc("got proxy server response: %o %o",d,y),s(),e({connect:{statusCode:x,statusText:g,headers:y},buffered:p})}t.on("error",c),t.on("end",a),i()})}function ok(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",o=Array.isArray(n)?n[0]:n,i=typeof o=="string"&&o.includes(" ")?o.split(" ").slice(1).join(" "):void 0,a=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(i||"");if(!a)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${a}`}}}}var Cn=(0,ak.default)("https-proxy-agent"),kc=t=>t.servername===void 0&&t.host&&!er.isIP(t.host)?{...t,servername:t.host}:t,ns=class extends _c{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new ck.URL(e):e,this.proxyHeaders=(r==null?void 0:r.headers)??{},Cn("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r!=null&&r.negotiate?this.onProxyAuth=ok():r!=null&&r.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Rf(r,"headers","onProxyAuth","negotiate"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(Cn("Creating `tls.Socket`: %o",this.connectOpts),o=rs.connect(kc(this.connectOpts))):(Cn("Creating `net.Socket`: %o",this.connectOpts),o=er.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=er.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${s}:${r.port} HTTP/1.1\r
57
57
  `;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}i.Host=`${s}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(i))a+=`${m}: ${i[m]}\r
58
- `;let c=Y0(o);o.write(`${a}\r
59
- `);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",aZ),r.secureEndpoint?(es("Upgrading socket connection to TLS"),kf.connect({...Q0(X0(r),"host","path","port"),socket:o})):o;o.destroy();let p=new qr.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{es("Replaying proxy buffer for failed request"),(0,ek.default)(m.listenerCount("data")>0),m.push(l),m.push(null)}),p}};ts.protocols=["http","https"];function aZ(t){t.resume()}function Q0(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}var $f=wf()||process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy;if($f)try{let t=new ts($f,{rejectUnauthorized:!1});Fe.defaults.httpAgent=t,Fe.defaults.httpsAgent=t,Fe.defaults.proxy=!1}catch{throw new Error(`Invalid proxy URL: ${$f}`)}else Fe.defaults.httpsAgent=new nk.default.Agent({rejectUnauthorized:!1});var Po=()=>({"Content-Type":"application/json",Accept:"application/json","X-MG-UserAccessToken":process.env.MG_MCP_TOKEN||process.env.MASTERGO_API_TOKEN||vf()}),rs=()=>{let t=process.env.API_BASE_URL||yf();try{let e=new URL(t),r=e.protocol,n=e.hostname,o=e.port,i=`${r}//${n}`;return o&&(i+=`:${o}`),i}catch{throw new Error(`\u65E0\u6548\u7684URL\u683C\u5F0F: ${t}\u3002\u8BF7\u63D0\u4F9B\u6B63\u786E\u7684URL\u683C\u5F0F\uFF0C\u4F8B\u5982: https://mastergo.com`)}},cZ=t=>{var n;let e=new Set,r=o=>{var i,s,a,c;(s=(i=o==null?void 0:o.componentInfo)==null?void 0:i.componentSetDocumentLink)!=null&&s[0]&&e.add(o.componentInfo.componentSetDocumentLink[0]),(c=(a=o.children)==null?void 0:a.forEach)==null||c.call(a,r)};return(n=t.nodes)==null||n.forEach(r),Array.from(e)},uZ=()=>["token filed must be generated as a variable (colors, shadows, fonts, etc.) and the token field must be displayed in the comment",`componentDocumentLinks is a list of frontend component documentation links used in the DSL layer, designed to help you understand how to use the components.
58
+ `;let c=Pf(o);o.write(`${a}\r
59
+ `);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),e.emit("proxy",{proxy:this.proxy.href,socket:o}),u.statusCode===200)return e.once("socket",ik),r.secureEndpoint?(Cn("Upgrading socket connection to TLS"),rs.connect({...Rf(kc(r),"host","path","port"),socket:o})):o;if(u.statusCode===407&&this.onProxyAuth){Cn("Got 407 response, invoking onProxyAuth callback"),o.destroy();let m=u.headers["proxy-authenticate"]||"",h=Array.isArray(m)?m[0].split(/\s/)[0]:m.split(/\s/)[0],d=await this.onProxyAuth({response:u,scheme:h});return this._connectWithAuth(e,r,d.headers)}o.destroy();let p=new er.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{Cn("Replaying proxy buffer for failed request"),(0,sk.default)(m.listenerCount("data")>0),m.push(l),m.push(null)}),p}async _connectWithAuth(e,r,n){let{proxy:o}=this,i;o.protocol==="https:"?i=rs.connect(kc(this.connectOpts)):i=er.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=er.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
60
+ `;if(o.username||o.password){let p=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}Object.assign(s,n),s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(s))c+=`${p}: ${s[p]}\r
61
+ `;let u=Pf(i);i.write(`${c}\r
62
+ `);let{connect:l}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",ik),r.secureEndpoint?(Cn("Upgrading socket connection to TLS"),rs.connect({...Rf(kc(r),"host","path","port"),socket:i})):i;throw i.destroy(),new Error(`Proxy authentication failed with status ${l.statusCode} after retry`)}};ns.protocols=["http","https"];function ik(t){setImmediate(()=>{t.resume()})}function Rf(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}var If=Ef()||process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy;if(If)try{let t=new ns(If,{rejectUnauthorized:!1});Re.defaults.httpAgent=t,Re.defaults.httpsAgent=t,Re.defaults.proxy=!1}catch{throw new Error(`Invalid proxy URL: ${If}`)}else Re.defaults.httpsAgent=new uk.default.Agent({rejectUnauthorized:!1});var tr=()=>({"Content-Type":"application/json",Accept:"application/json","X-MG-UserAccessToken":process.env.MG_MCP_TOKEN||process.env.MASTERGO_API_TOKEN||Sf()}),fr=()=>{let t=process.env.API_BASE_URL||$f();try{let e=new URL(t),r=e.protocol,n=e.hostname,o=e.port,i=`${r}//${n}`;return o&&(i+=`:${o}`),i}catch{throw new Error(`\u65E0\u6548\u7684URL\u683C\u5F0F: ${t}\u3002\u8BF7\u63D0\u4F9B\u6B63\u786E\u7684URL\u683C\u5F0F\uFF0C\u4F8B\u5982: https://mastergo.com`)}},mD=t=>{var n;let e=new Set,r=o=>{var i,s,a,c;(s=(i=o==null?void 0:o.componentInfo)==null?void 0:i.componentSetDocumentLink)!=null&&s[0]&&e.add(o.componentInfo.componentSetDocumentLink[0]),(c=(a=o.children)==null?void 0:a.forEach)==null||c.call(a,r)};return(n=t.nodes)==null||n.forEach(r),Array.from(e)},fD=()=>["token filed must be generated as a variable (colors, shadows, fonts, etc.) and the token field must be displayed in the comment","Background colors come from the node's fillStyleId \u2014 look it up in the DSL styles map. Do NOT invent background gradients or colors. If a node has no fill style, leave its background transparent.",`componentDocumentLinks is a list of frontend component documentation links used in the DSL layer, designed to help you understand how to use the components.
60
63
  When it exists and is not empty, you need to use mcp__getComponentLink in a for loop to get the URL content of all components in the list, understand how to use the components, and generate code using the components.
61
- For example:
62
- \`\`\`js
64
+ For example:
65
+ \`\`\`js
63
66
  const componentDocumentLinks = [
64
67
  'https://example.com/ant/button.mdx',
65
68
  'https://example.com/ant/button.mdx'
@@ -68,21 +71,22 @@ For example:
68
71
  const componentLink = await mcp__getComponentLink(url);
69
72
  console.log(componentLink);
70
73
  }
71
- \`\`\``,...JSON.parse(process.env.RULES??"[]"),...bf()],lZ=()=>({async getMeta(t,e,r){return(await Fe.get(`${rs()}/mcp/meta`,{timeout:3e4,params:{fileId:t,layerId:e,...r?{sourceLayerId:r}:{}},headers:Po()})).data},async getDsl(t,e,r){let n=await Fe.get(`${rs()}/mcp/dsl`,{timeout:3e4,params:{fileId:t,layerId:e,...r?{sourceLayerId:r}:{}},headers:Po()});return{dsl:n.data,componentDocumentLinks:cZ(n.data),rules:_f()?[]:uZ()}},async getD2c(t,e){let r={contentId:t,documentId:e};return(await Fe.get(`${rs()}/mcp/d2c/events`,{timeout:3e4,params:r,headers:Po()})).data},async postC2d(t,e,r){return(await Fe.post(`${rs()}/mcp/c2d`,{data:t,fileId:e,layerId:r},{timeout:3e4,headers:Po()})).data},async getComponentStyleJson(t,e,r){return(await Fe.get(`${rs()}/mcp/style`,{timeout:3e4,params:{fileId:t,layerId:e,...r?{sourceLayerId:r}:{}},headers:Po()})).data},async request(t){return(await Fe.request({...t,headers:{...Po(),...t.headers}})).data},async extractIdsFromUrl(t){let e=t;if(t.includes("/goto/")){let u=(await Fe.get(t,{maxRedirects:0,validateStatus:l=>l>=300&&l<400})).headers.location;if(!u)throw new Error("No redirect URL found for short link");e=new URL(u,t).href}let r=new URL(e),n=r.pathname.split("/"),o=new URLSearchParams(r.search),i=n.find(c=>/^\d+$/.test(c)),s=o.get("layer_id");if(!i)throw new Error("Could not extract fileId from URL");if(!s)throw new Error("Could not extract layerId from URL");let a=o.get("source_layer_id")||void 0;return{fileId:i,layerId:s,sourceLayerId:a}}}),ft=lZ();var pZ="mcp__getDsl",dZ=`
72
- "Use this tool to retrieve the DSL (Domain Specific Language) data from MasterGo design files and the rules you must follow when generating code.
73
- This tool is useful when you need to analyze the structure of a design, understand component hierarchy, or extract design properties.
74
+ \`\`\``,...JSON.parse(process.env.RULES??"[]"),...zf()],hD=()=>({async getMeta(t,e,r){return(await Re.get(`${fr()}/mcp/meta`,{timeout:3e4,params:{fileId:t,layerId:e,...r?{sourceLayerId:r}:{}},headers:tr()})).data},async getDsl(t,e,r){let n={fileId:t,layerId:e};(r==null?void 0:r.sourceLayerId)!==void 0&&(n.sourceLayerId=r.sourceLayerId);let o=await Re.get(`${fr()}/mcp/dsl`,{timeout:3e4,params:n,headers:tr()});return{dsl:o.data,componentDocumentLinks:mD(o.data),rules:Tf()?[]:fD()}},async extractSvg(t,e,r){let n={fileId:t,layerId:e};return r&&(n.backgroundColor=r),(await Re.get(`${fr()}/mcp/extract-svg`,{timeout:3e4,params:n,headers:tr()})).data},async getDesignSections(t,e,r){var o;let n={fileId:t,layerId:e};r!==void 0&&(n.sectionIndex=r);try{return(await Re.get(`${fr()}/mcp/design-sections`,{timeout:12e4,params:n,headers:tr()})).data}catch(i){throw((o=i.response)==null?void 0:o.status)===404?new Error("design-sections API not available on this server. Please update frontend-mcp-server to the latest version."):i}},async getDesignSvgs(t,e){var r;try{return(await Re.get(`${fr()}/mcp/design-svgs`,{timeout:12e4,params:{fileId:t,layerId:e},headers:tr()})).data}catch(n){throw((r=n.response)==null?void 0:r.status)===404?new Error("design-svgs API not available on this server. Please update frontend-mcp-server to the latest version."):n}},async getDesignTexts(t,e){var r;try{return(await Re.get(`${fr()}/mcp/design-texts`,{timeout:12e4,params:{fileId:t,layerId:e},headers:tr()})).data}catch(n){throw((r=n.response)==null?void 0:r.status)===404?new Error("design-texts API not available on this server. Please update frontend-mcp-server to the latest version."):n}},async getD2c(t,e){let r={contentId:t,documentId:e};return(await Re.get(`${fr()}/mcp/d2c/events`,{timeout:3e4,params:r,headers:tr()})).data},async postC2d(t,e,r){return(await Re.post(`${fr()}/mcp/c2d`,{data:t,fileId:e,layerId:r},{timeout:3e4,headers:tr()})).data},async getComponentStyleJson(t,e,r){return(await Re.get(`${fr()}/mcp/style`,{timeout:3e4,params:{fileId:t,layerId:e,...r?{sourceLayerId:r}:{}},headers:tr()})).data},async request(t){return(await Re.request({...t,headers:{...tr(),...t.headers}})).data},async extractIdsFromUrl(t){let e=t;if(t.includes("/goto/")){let u=(await Re.get(t,{maxRedirects:0,validateStatus:l=>l>=300&&l<400})).headers.location;if(!u)throw new Error("No redirect URL found for short link");e=new URL(u,t).href}let r=new URL(e),n=r.pathname.split("/"),o=new URLSearchParams(r.search),i=n.find(c=>/^\d+$/.test(c)),s=o.get("layer_id");if(!i)throw new Error("Could not extract fileId from URL");if(!s)throw new Error("Could not extract layerId from URL");let a=o.get("source_layer_id")||void 0;return{fileId:i,layerId:s,sourceLayerId:a}}}),xe=hD();var gD="mcp__getDsl",xD=`
75
+ [FALLBACK] Use only when mcp__getDesignSections is unavailable or returns an error.
76
+ This returns the FULL DSL in one response \u2014 may be large and exceed context limits for complex designs.
77
+ Prefer mcp__getDesignSections as the primary tool for all designs.
74
78
  You can provide either:
75
79
  1. fileId and layerId directly, or
76
80
  2. a short link (like https://{domain}/goto/LhGgBAK)
77
81
  This tool returns the raw DSL data in JSON format that you can then parse and analyze.
78
82
  This tool also returns the rules you must follow when generating code.
79
- The DSL data can also be used to transform and generate code for different frameworks."
80
- `,wc=class extends Ke{constructor(){super();this.name=pZ;this.description=dZ;this.schema=ee.object({fileId:ee.string().optional().describe("MasterGo design file ID (format: file/<fileId> in MasterGo URL). Required if shortLink is not provided."),layerId:ee.string().optional().describe("Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL). Required if shortLink is not provided."),sourceLayerId:ee.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries."),shortLink:ee.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK).")})}async execute({fileId:r,layerId:n,sourceLayerId:o,shortLink:i}){var s;try{if(!i&&(!r||!n))throw new Error("Either provide both fileId and layerId, or provide a MasterGo URL");let a=this.normalizeFileId(r),c=n,u=o;if(i){let p=await ft.extractIdsFromUrl(i);a=this.normalizeFileId(p.fileId),c=p.layerId,u=p.sourceLayerId??o}if(!a||!c)throw new Error("Could not determine fileId or layerId");let l=await ft.getDsl(a,c,u);return{content:[{type:"text",text:JSON.stringify(l)}]}}catch(a){let c=((s=a.response)==null?void 0:s.data)??(a==null?void 0:a.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(c)}]}}}normalizeFileId(r){return r&&r.replace(/^file\//,"")}};var Dr=le(require("path")),Lr=require("fs"),Ro=require("fs/promises"),mZ="mcp__getD2c",fZ=`
83
+ The DSL data can also be used to transform and generate code for different frameworks.
84
+ `,Sc=class extends ze{constructor(){super();this.name=gD;this.description=xD;this.schema=C.object({fileId:C.string().optional().describe("MasterGo design file ID (format: file/<fileId> in MasterGo URL). Required if shortLink is not provided."),layerId:C.string().optional().describe("Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL). Required if shortLink is not provided."),sourceLayerId:C.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries."),shortLink:C.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK).")})}async execute({fileId:r,layerId:n,sourceLayerId:o,shortLink:i}){var s;try{if(!i&&(!r||!n))throw new Error("Either provide both fileId and layerId, or provide a MasterGo URL");let a=this.normalizeFileId(r),c=n,u=o;if(i){let p=await xe.extractIdsFromUrl(i);a=this.normalizeFileId(p.fileId),c=p.layerId,u=p.sourceLayerId??o}if(!a||!c)throw new Error("Could not determine fileId or layerId");let l=await xe.getDsl(a,c,{sourceLayerId:u});return{content:[{type:"text",text:JSON.stringify(l)}]}}catch(a){let c=((s=a.response)==null?void 0:s.data)??(a==null?void 0:a.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(c)}]}}}};var Ur=le(require("path")),Fr=require("fs"),Oo=require("fs/promises"),vD="mcp__getD2c",yD=`
81
85
  \u4F7F\u7528\u6B64\u5DE5\u5177\u4ECE MasterGo \u83B7\u53D6 D2C \u6570\u636E\uFF0C\u5E76\u5728\u672C\u5730\u843D\u76D8\uFF1A
82
86
  1\uFF09\u5C06\u8FD4\u56DE\u7684 code \u5199\u5165 html\uFF1B
83
87
  2\uFF09\u5C06\u8FD4\u56DE\u7684 svg / image \u8D44\u6E90\u6309 resourcePath \u843D\u76D8\u5230\u5BF9\u5E94\u76EE\u5F55\uFF1B
84
88
  3\uFF09\u8FD4\u56DE\u843D\u76D8\u6458\u8981\uFF0C\u907F\u514D\u628A\u5927\u4F53\u79EF\u8D44\u6E90\u585E\u8FDB\u4E0A\u4E0B\u6587\u3002
85
- `;function Sf(t){return t==null?!0:typeof t=="string"?t.trim().length===0:Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}function hZ(t){return t==null?!1:typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:typeof t=="object"?Object.keys(t).length>0:!1}function kc(t){for(let e of t)if(hZ(e))return e}function gZ(t){let e={image:"asset/images",svg:"asset/icons"};if(!Sf(t))try{let r=typeof t=="string"?JSON.parse(t):t;r.image&&(e.image=String(r.image).replace(/^(\.\/|\/)/,"").replace(/\/+$/,"")),r.svg&&(e.svg=String(r.svg).replace(/^(\.\/|\/)/,"").replace(/\/+$/,""))}catch{return e}return e}async function ok(t,e,r,n){if(Sf(t))return{savedCount:0,attemptedCount:0,errorCount:0};let o;try{o=typeof t=="string"?JSON.parse(t):t}catch{return{savedCount:0,attemptedCount:0,errorCount:1}}if(!o||typeof o!="object")return{savedCount:0,attemptedCount:0,errorCount:1};let i=Object.keys(o);if(i.length===0)return{savedCount:0,attemptedCount:0,errorCount:0};let s=Dr.default.join(e,r);(0,Lr.existsSync)(s)||(0,Lr.mkdirSync)(s,{recursive:!0});let a=0,c=0;return await Promise.all(Object.entries(o).map(async([u,l])=>{let p=String(u).match(/(.+)\.([a-zA-Z0-9]+)$/),m=(p?p[1]:u).replace(/[^a-zA-Z0-9_-]/g,"_"),h=p?p[2]:n,d=Dr.default.join(s,`${m}.${h}`),f=l;try{if(typeof f=="string"&&f.startsWith("http"))try{let y=await Fe.get(f,{responseType:"arraybuffer",timeout:3e4});await(0,Ro.writeFile)(d,y.data),a+=1;return}catch(y){if(((y==null?void 0:y.code)==="EPROTO"||String((y==null?void 0:y.message)??"").includes("wrong version number"))&&f.startsWith("https://")){let S=f.replace(/^https:\/\//,"http://"),$=await Fe.get(S,{responseType:"arraybuffer",timeout:3e4});await(0,Ro.writeFile)(d,$.data),a+=1;return}c+=1;return}if(typeof f=="string"&&f.startsWith("data:image/")){let y=f.split(";base64,");y.length===2&&(await(0,Ro.writeFile)(d,y[1],"base64"),a+=1);return}let x=typeof f=="object"?JSON.stringify(f,null,2):String(f??"");await(0,Ro.writeFile)(d,x,h==="png"||h==="jpg"||h==="jpeg"?"base64":"utf8"),a+=1}catch{c+=1;return}})),{savedCount:a,attemptedCount:i.length,errorCount:c}}async function xZ(t){let{outDir:e,contentId:r,code:n,resourcePath:o,svg:i,image:s}=t,a=e?Dr.default.isAbsolute(e)?Dr.default.join(e):Dr.default.join(process.cwd(),e):process.cwd();(0,Lr.existsSync)(a)||(0,Lr.mkdirSync)(a,{recursive:!0});let c=`${r||"index"}.html`,u=Dr.default.join(a,c);Sf(n)||await(0,Ro.writeFile)(u,n,"utf8");let l=gZ(o),p=d=>{let f=Dr.default.join(a,d);(0,Lr.existsSync)(f)||(0,Lr.mkdirSync)(f,{recursive:!0})};p(l.image),p(l.svg);let[m,h]=await Promise.all([ok(i,a,l.svg,"svg"),ok(s,a,l.image,"png")]);return{targetDir:a,htmlFileName:c,htmlPath:u,svgCount:m.savedCount,imageCount:h.savedCount,resourcePathMap:l}}function vZ(t){var u,l;let e=t==null?void 0:t.data,r=Array.isArray(e)?e[0]:void 0,n=(r==null?void 0:r.payload)??(t==null?void 0:t.payload)??((u=t==null?void 0:t.data)==null?void 0:u.payload)??((l=r==null?void 0:r.payload)==null?void 0:l.payload)??(e==null?void 0:e.payload)??{},o=(n==null?void 0:n.code)??(n==null?void 0:n.html)??(n==null?void 0:n.content)??(t==null?void 0:t.code)??"",i=kc([n==null?void 0:n.resourcePath,t==null?void 0:t.resourcePath,r==null?void 0:r.resourcePath]),s=kc([n==null?void 0:n.image,r==null?void 0:r.image]),a=kc([n==null?void 0:n.svg,r==null?void 0:r.svg]),c=kc([n==null?void 0:n.shape,r==null?void 0:r.shape]);return{contentId:String((r==null?void 0:r.contentId)??(n==null?void 0:n.contentId)??(t==null?void 0:t.contentId)??""),frameType:(n==null?void 0:n.frameType)??(r==null?void 0:r.frameType)??(t==null?void 0:t.frameType),code:String(o??""),resourcePath:i,shape:c,svg:a,image:s}}var $c=class extends Ke{constructor(){super();this.name=mZ;this.description=fZ;this.schema=ee.object({contentId:ee.string().describe("MasterGo D2C contentId\uFF0C\u4F8B\u5982 mastergo://getd2c/176452330285910-2-2845 \u4E2D\u7684 176452330285910-2-2845\u3002"),documentId:ee.string().describe("MasterGo \u6587\u6863 ID\uFF0C\u901A\u5E38\u4E3A contentId \u7684\u7B2C\u4E00\u6BB5\uFF0C\u4F8B\u5982 contentId \u4E3A 176452330285910-2-9032 \u65F6 documentId \u4E3A 176452330285910\u3002"),outDir:ee.string().optional().describe("\u53EF\u9009\uFF0C\u8F93\u51FA\u76EE\u5F55\uFF08\u7EDD\u5BF9\u8DEF\u5F84\u6216\u76F8\u5BF9\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55\uFF09\u3002")})}async execute({contentId:r,documentId:n,outDir:o}){var i;try{if(!r)throw new Error("contentId \u4E0D\u80FD\u4E3A\u7A7A");if(!n)throw new Error("documentId \u4E0D\u80FD\u4E3A\u7A7A");let s=await ft.getD2c(r,n),a=vZ(s),c=a.contentId||r;return await xZ({outDir:o,contentId:c,code:a.code,resourcePath:a.resourcePath,svg:a.svg,image:a.image}),{content:[{type:"text",text:JSON.stringify(s)}]}}catch(s){let a=((i=s==null?void 0:s.response)==null?void 0:i.data)??(s==null?void 0:s.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(a)}]}}}};var ik=le(require("fs")),yZ="mcp__C2d",bZ=`
89
+ `;function Of(t){return t==null?!0:typeof t=="string"?t.trim().length===0:Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:!1}function bD(t){return t==null?!1:typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:typeof t=="object"?Object.keys(t).length>0:!1}function $c(t){for(let e of t)if(bD(e))return e}function _D(t){let e={image:"asset/images",svg:"asset/icons"};if(!Of(t))try{let r=typeof t=="string"?JSON.parse(t):t;r.image&&(e.image=String(r.image).replace(/^(\.\/|\/)/,"").replace(/\/+$/,"")),r.svg&&(e.svg=String(r.svg).replace(/^(\.\/|\/)/,"").replace(/\/+$/,""))}catch{return e}return e}async function lk(t,e,r,n){if(Of(t))return{savedCount:0,attemptedCount:0,errorCount:0};let o;try{o=typeof t=="string"?JSON.parse(t):t}catch{return{savedCount:0,attemptedCount:0,errorCount:1}}if(!o||typeof o!="object")return{savedCount:0,attemptedCount:0,errorCount:1};let i=Object.keys(o);if(i.length===0)return{savedCount:0,attemptedCount:0,errorCount:0};let s=Ur.default.join(e,r);(0,Fr.existsSync)(s)||(0,Fr.mkdirSync)(s,{recursive:!0});let a=0,c=0;return await Promise.all(Object.entries(o).map(async([u,l])=>{let p=String(u).match(/(.+)\.([a-zA-Z0-9]+)$/),m=(p?p[1]:u).replace(/[^a-zA-Z0-9_-]/g,"_"),h=p?p[2]:n,d=Ur.default.join(s,`${m}.${h}`),f=l;try{if(typeof f=="string"&&f.startsWith("http"))try{let y=await Re.get(f,{responseType:"arraybuffer",timeout:3e4});await(0,Oo.writeFile)(d,y.data),a+=1;return}catch(y){if(((y==null?void 0:y.code)==="EPROTO"||String((y==null?void 0:y.message)??"").includes("wrong version number"))&&f.startsWith("https://")){let $=f.replace(/^https:\/\//,"http://"),S=await Re.get($,{responseType:"arraybuffer",timeout:3e4});await(0,Oo.writeFile)(d,S.data),a+=1;return}c+=1;return}if(typeof f=="string"&&f.startsWith("data:image/")){let y=f.split(";base64,");y.length===2&&(await(0,Oo.writeFile)(d,y[1],"base64"),a+=1);return}let x=typeof f=="object"?JSON.stringify(f,null,2):String(f??"");await(0,Oo.writeFile)(d,x,h==="png"||h==="jpg"||h==="jpeg"?"base64":"utf8"),a+=1}catch{c+=1;return}})),{savedCount:a,attemptedCount:i.length,errorCount:c}}async function wD(t){let{outDir:e,contentId:r,code:n,resourcePath:o,svg:i,image:s}=t,a=e?Ur.default.isAbsolute(e)?Ur.default.join(e):Ur.default.join(process.cwd(),e):process.cwd();(0,Fr.existsSync)(a)||(0,Fr.mkdirSync)(a,{recursive:!0});let c=`${r||"index"}.html`,u=Ur.default.join(a,c);Of(n)||await(0,Oo.writeFile)(u,n,"utf8");let l=_D(o),p=d=>{let f=Ur.default.join(a,d);(0,Fr.existsSync)(f)||(0,Fr.mkdirSync)(f,{recursive:!0})};p(l.image),p(l.svg);let[m,h]=await Promise.all([lk(i,a,l.svg,"svg"),lk(s,a,l.image,"png")]);return{targetDir:a,htmlFileName:c,htmlPath:u,svgCount:m.savedCount,imageCount:h.savedCount,resourcePathMap:l}}function kD(t){var u,l;let e=t==null?void 0:t.data,r=Array.isArray(e)?e[0]:void 0,n=(r==null?void 0:r.payload)??(t==null?void 0:t.payload)??((u=t==null?void 0:t.data)==null?void 0:u.payload)??((l=r==null?void 0:r.payload)==null?void 0:l.payload)??(e==null?void 0:e.payload)??{},o=(n==null?void 0:n.code)??(n==null?void 0:n.html)??(n==null?void 0:n.content)??(t==null?void 0:t.code)??"",i=$c([n==null?void 0:n.resourcePath,t==null?void 0:t.resourcePath,r==null?void 0:r.resourcePath]),s=$c([n==null?void 0:n.image,r==null?void 0:r.image]),a=$c([n==null?void 0:n.svg,r==null?void 0:r.svg]),c=$c([n==null?void 0:n.shape,r==null?void 0:r.shape]);return{contentId:String((r==null?void 0:r.contentId)??(n==null?void 0:n.contentId)??(t==null?void 0:t.contentId)??""),frameType:(n==null?void 0:n.frameType)??(r==null?void 0:r.frameType)??(t==null?void 0:t.frameType),code:String(o??""),resourcePath:i,shape:c,svg:a,image:s}}var zc=class extends ze{constructor(){super();this.name=vD;this.description=yD;this.schema=C.object({contentId:C.string().describe("MasterGo D2C contentId\uFF0C\u4F8B\u5982 mastergo://getd2c/176452330285910-2-2845 \u4E2D\u7684 176452330285910-2-2845\u3002"),documentId:C.string().describe("MasterGo \u6587\u6863 ID\uFF0C\u901A\u5E38\u4E3A contentId \u7684\u7B2C\u4E00\u6BB5\uFF0C\u4F8B\u5982 contentId \u4E3A 176452330285910-2-9032 \u65F6 documentId \u4E3A 176452330285910\u3002"),outDir:C.string().optional().describe("\u53EF\u9009\uFF0C\u8F93\u51FA\u76EE\u5F55\uFF08\u7EDD\u5BF9\u8DEF\u5F84\u6216\u76F8\u5BF9\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55\uFF09\u3002")})}async execute({contentId:r,documentId:n,outDir:o}){var i;try{if(!r)throw new Error("contentId \u4E0D\u80FD\u4E3A\u7A7A");if(!n)throw new Error("documentId \u4E0D\u80FD\u4E3A\u7A7A");let s=await xe.getD2c(r,n),a=kD(s),c=a.contentId||r;return await wD({outDir:o,contentId:c,code:a.code,resourcePath:a.resourcePath,svg:a.svg,image:a.image}),{content:[{type:"text",text:JSON.stringify(s)}]}}catch(s){let a=((i=s==null?void 0:s.response)==null?void 0:i.data)??(s==null?void 0:s.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(a)}]}}}};var pk=le(require("fs")),SD="mcp__C2d",$D=`
86
90
  \u4F7F\u7528\u6B64\u5DE5\u5177\u5C06\u4EE3\u7801\u6587\u4EF6\u53D1\u9001\u5230 MasterGo MCP \u670D\u52A1\u8FDB\u884C C2D\uFF08\u4EE3\u7801\u8F6C\u8BBE\u8BA1\uFF09\u5904\u7406\uFF0C\u5C06\u7528\u6237\u4EE3\u7801\u540C\u6B65\u5230\u8BBE\u8BA1\u7A3F\u3002
87
91
 
88
92
  \u53C2\u6570\u8BF4\u660E\uFF1A
@@ -94,7 +98,7 @@ The DSL data can also be used to transform and generate code for different frame
94
98
  \u5982\u679C\u77ED\u94FE\u63A5\u6216 URL \u4E2D\u6CA1\u6709\u89E3\u6790\u51FA layer_id\uFF0C\u5219\u4E0D\u4F20 layerId\u3002
95
99
 
96
100
  \u5DE5\u5177\u4F1A\u8BFB\u53D6 filePath \u6307\u5B9A\u6587\u4EF6\u7684\u5185\u5BB9\uFF0C\u5E76\u4F20\u7ED9\u540E\u7AEF\uFF0C\u9644\u5E26 fileId \u4E0E\u53EF\u9009\u7684 layerId\u3002
97
- `,Sc=class extends Ke{constructor(){super();this.name=yZ;this.description=bZ;this.schema=ee.object({filePath:ee.string().min(1,"filePath \u4E0D\u80FD\u4E3A\u7A7A").describe("HTML \u6587\u4EF6\u7684\u5B8C\u6574\u8DEF\u5F84\uFF0C\u5DE5\u5177\u4F1A\u8BFB\u53D6\u6587\u4EF6\u5185\u5BB9\u5E76\u53D1\u9001\u7ED9\u540E\u7AEF"),fileId:ee.string().optional().describe("\u6587\u4EF6 ID\uFF08URL \u4E2D file= \u6216\u8DEF\u5F84\u4E2D\u7684\u6570\u5B57\u6BB5\uFF09\u3002\u672A\u4F20 shortLink \u65F6\u5FC5\u586B\u3002"),layerId:ee.string().optional().describe("\u53EF\u9009\u3002\u56FE\u5C42 ID\uFF08\u53EA\u8BFB\u53D6 URL \u53C2\u6570 layer_id\uFF09\u3002\u4E0D\u4F20\u6216\u89E3\u6790\u4E0D\u5230\u5219\u4EC5\u6309 file \u7EF4\u5EA6\u540C\u6B65\uFF1Bpageid/page_id \u4E0D\u4F1A\u88AB\u5F53\u4F5C layerId\u3002"),shortLink:ee.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK).")})}async execute({filePath:r,fileId:n,layerId:o,shortLink:i}){var s;try{let a=i==null?void 0:i.trim(),c=n==null?void 0:n.trim(),u=o==null?void 0:o.trim(),l,p;if(a){let d=await ft.extractIdsFromUrl(a);l=this.normalizeFileId(d.fileId),p=d.layerId}else if(c)l=this.normalizeFileId(c),p=u||void 0;else throw new Error("\u8BF7\u4F20 shortLink\uFF0C\u6216\u81F3\u5C11\u4F20 fileId\uFF08layerId \u53EF\u9009\uFF09");if(!l)throw new Error("Could not determine fileId");let m;try{m=ik.default.readFileSync(r,"utf-8")}catch(d){throw new Error(`\u65E0\u6CD5\u8BFB\u53D6\u6587\u4EF6 ${r}: ${d}`)}let h=await ft.postC2d(m,l,p);return{content:[{type:"text",text:JSON.stringify(h)}]}}catch(a){let c=((s=a==null?void 0:a.response)==null?void 0:s.data)??(a==null?void 0:a.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(c)}]}}}normalizeFileId(r){return r&&r.replace(/^file\//,"")}};var _Z="mcp__getComponentLink",wZ="When the data returned by mcp__getDsl contains a non-empty componentDocumentLinks array, this tool is used to sequentially retrieve URLs from the componentDocumentLinks array and then obtain component documentation data. The returned document data is used for you to generate frontend code based on components.",zc=class extends Ke{constructor(){super();this.name=_Z;this.description=wZ;this.schema=ee.object({url:ee.string().describe("Component documentation link URL, from the componentDocumentLinks property, please ensure the URL is valid")})}async execute({url:r}){try{return{content:[{type:"text",text:`${await ft.request({method:"GET",url:r})}`}]}}catch(n){return{content:[{type:"text",text:JSON.stringify({error:"Failed to get component documentation",message:n instanceof Error?n.message:String(n)})}]}}}};var sk=`The \`results\` returns an XML file, which contains two types of information:
101
+ `,Tc=class extends ze{constructor(){super();this.name=SD;this.description=$D;this.schema=C.object({filePath:C.string().min(1,"filePath \u4E0D\u80FD\u4E3A\u7A7A").describe("HTML \u6587\u4EF6\u7684\u5B8C\u6574\u8DEF\u5F84\uFF0C\u5DE5\u5177\u4F1A\u8BFB\u53D6\u6587\u4EF6\u5185\u5BB9\u5E76\u53D1\u9001\u7ED9\u540E\u7AEF"),fileId:C.string().optional().describe("\u6587\u4EF6 ID\uFF08URL \u4E2D file= \u6216\u8DEF\u5F84\u4E2D\u7684\u6570\u5B57\u6BB5\uFF09\u3002\u672A\u4F20 shortLink \u65F6\u5FC5\u586B\u3002"),layerId:C.string().optional().describe("\u53EF\u9009\u3002\u56FE\u5C42 ID\uFF08\u53EA\u8BFB\u53D6 URL \u53C2\u6570 layer_id\uFF09\u3002\u4E0D\u4F20\u6216\u89E3\u6790\u4E0D\u5230\u5219\u4EC5\u6309 file \u7EF4\u5EA6\u540C\u6B65\uFF1Bpageid/page_id \u4E0D\u4F1A\u88AB\u5F53\u4F5C layerId\u3002"),shortLink:C.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK).")})}async execute({filePath:r,fileId:n,layerId:o,shortLink:i}){var s;try{let a=i==null?void 0:i.trim(),c=n==null?void 0:n.trim(),u=o==null?void 0:o.trim(),l,p;if(a){let d=await xe.extractIdsFromUrl(a);l=this.normalizeFileId(d.fileId),p=d.layerId}else if(c)l=this.normalizeFileId(c),p=u||void 0;else throw new Error("\u8BF7\u4F20 shortLink\uFF0C\u6216\u81F3\u5C11\u4F20 fileId\uFF08layerId \u53EF\u9009\uFF09");if(!l)throw new Error("Could not determine fileId");let m;try{m=pk.default.readFileSync(r,"utf-8")}catch(d){throw new Error(`\u65E0\u6CD5\u8BFB\u53D6\u6587\u4EF6 ${r}: ${d}`)}let h=await xe.postC2d(m,l,p);return{content:[{type:"text",text:JSON.stringify(h)}]}}catch(a){let c=((s=a==null?void 0:a.response)==null?void 0:s.data)??(a==null?void 0:a.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(c)}]}}}};var zD="mcp__getComponentLink",TD="When the data returned by mcp__getDsl contains a non-empty componentDocumentLinks array, this tool is used to sequentially retrieve URLs from the componentDocumentLinks array and then obtain component documentation data. The returned document data is used for you to generate frontend code based on components.",Ec=class extends ze{constructor(){super();this.name=zD;this.description=TD;this.schema=C.object({url:C.string().describe("Component documentation link URL, from the componentDocumentLinks property, please ensure the URL is valid")})}async execute({url:r}){try{return{content:[{type:"text",text:`${await xe.request({method:"GET",url:r})}`}]}}catch(n){return{content:[{type:"text",text:JSON.stringify({error:"Failed to get component documentation",message:n instanceof Error?n.message:String(n)})}]}}}};var dk=`The \`results\` returns an XML file, which contains two types of information:
98
102
 
99
103
  - **meta**: Describes the site, environment, requirements, and other context.
100
104
  - **action**: Corresponds to the entry page name and \`targetLayerId\`, which is the ID of the target page.
@@ -105,8 +109,11 @@ I need you to write a task.md file in the current directory according to the fol
105
109
  1. Obtain the \`results\` information, extract the \`meta\` and \`action\` data, and create a new \`task.md\` file.
106
110
  2. Analyze the \`meta\` field, summarize the requirement description, and write it into task.md.
107
111
  3. Analyze the \`action\` field, and write the page information into task.md.
108
- 4. Use the \`targetLayerId\` from the \`action\` field to call the \`mcp__getDsl\` method to get data.
109
- 5. Analyze the page data to check if there is an \`interactive\` field. If it exists, this field contains information about the current node's navigation to another page. You must continue to call the \`mcp__getDsl\` method according to the \`interactive\` field.
112
+ 4. For each \`targetLayerId\` from the \`action\` field, use the section-by-section workflow to get page data:
113
+ - **Step 4a**: Call \`mcp__getDesignSections\` WITHOUT \`sectionIndex\` to get the list of all sections.
114
+ - **Step 4b**: For each section (index 0 to N-1), call \`mcp__getDesignSections\` WITH \`sectionIndex=i\` to get the full DSL. Fetch in BATCHES of 3-5 at a time \u2014 do NOT request all sections simultaneously to avoid timeouts.
115
+ - **Note**: You MUST fetch ALL sections. Do NOT skip any section index.
116
+ 5. Analyze the page data to check if there is an \`interactive\` field. If it exists, this field contains information about the current node's navigation to another page. You must continue to get the target page data using the section-by-section workflow (repeat step 4).
110
117
  6. Repeat step 5 until all page data has been parsed and written into task.md.
111
118
  7. According to the content in task.md, sequentially parse the pages listed in task.md and generate code. Complete the project construction.
112
119
 
@@ -114,7 +121,7 @@ I need you to write a task.md file in the current directory according to the fol
114
121
  **Note**: Be sure to follow the order described in the example. Ensure that all page information is obtained!
115
122
 
116
123
 
117
- uppose the obtained results are:
124
+ Suppose the obtained results are:
118
125
  \`\`\`xml
119
126
  <info>
120
127
  <meta title="Name" content="Food Delivery APP" />
@@ -141,7 +148,7 @@ Food Delivery Page (layerId: 0:2)
141
148
 
142
149
  \`\`\`
143
150
 
144
- Use \`mcp__getDsl\` to parse the 0:1 page and analyze the data.
151
+ Use \`mcp__getDesignSections\` to get the section list for page 0:1 (without sectionIndex), then fetch each section's DSL by calling with sectionIndex=0, 1, ... until all sections are fetched. Fetch in batches of 3-5 at a time to avoid timeouts.
145
152
 
146
153
  The data might be:
147
154
  \`\`\`json
@@ -172,17 +179,17 @@ Login Page Navigation Page (layerId: 0:3)
172
179
  0:1 => 0:3
173
180
 
174
181
  \`\`\`
175
- Continue to parse 0:3. If the data contains the \`interactive\` field, continue writing.
176
- Repeat this process until the data parsed by \`mcp__getDsl\` no longer contains the \`interactive\` field.
177
- Then, use \`mcp__getDsl\` to parse the 0:2 page and repeat the steps for the 0:1 page.
182
+ Continue to get page 0:3 data using the section-by-section workflow. If the data contains the \`interactive\` field, continue writing.
183
+ Repeat this process until the page data no longer contains the \`interactive\` field.
184
+ Then, process the 0:2 page and repeat the steps for the 0:1 page.
178
185
 
179
186
  After completion, generate the project code sequentially according to the page list in task.md.
180
- `;var $Z="mcp__getMeta",SZ=`
187
+ `;var PD="mcp__getMeta",RD=`
181
188
  Use this tool when the user intends to build a complete website or needs to obtain high-level site
182
189
  configuration information. You must provide a fileld and layerld to identify the specific design element.
183
190
  This tool returns the rules and results of the site and page. The rules is a markdown file, you must
184
191
  follow the rules and use the results to analyze the site and page.
185
- `,Ec=class extends Ke{constructor(){super();this.name=$Z;this.description=SZ;this.schema=ee.object({fileId:ee.string().describe("MasterGo design file ID (format: file/<fileId> in MasterGo URL)"),layerId:ee.string().describe("Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL)"),sourceLayerId:ee.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries.")})}async execute({fileId:r,layerId:n,sourceLayerId:o}){var i;try{let s=await ft.getMeta(r,n,o);return{content:[{type:"text",text:JSON.stringify({result:s,rules:sk})}]}}catch(s){let a=((i=s.response)==null?void 0:i.data)??(s==null?void 0:s.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(a)}]}}}};var er=le(require("fs"));var ak=`---
192
+ `,Pc=class extends ze{constructor(){super();this.name=PD;this.description=RD;this.schema=C.object({fileId:C.string().describe("MasterGo design file ID (format: file/<fileId> in MasterGo URL)"),layerId:C.string().describe("Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL)"),sourceLayerId:C.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries.")})}async execute({fileId:r,layerId:n,sourceLayerId:o}){var i;try{let s=await xe.getMeta(r,n,o);return{content:[{type:"text",text:JSON.stringify({result:s,rules:dk})}]}}catch(s){let a=((i=s.response)==null?void 0:i.data)??(s==null?void 0:s.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(a)}]}}}};var rr=le(require("fs"));var mk=`---
186
193
  description:
187
194
  globs:
188
195
  alwaysApply: true
@@ -493,13 +500,119 @@ AI must analyze component design and infer:
493
500
  - **Tests**: Coverage for all features, edge cases, slots and states
494
501
  - **Implementation**: Renders correctly, properties work, state management complies with specifications, styles applied correctly, slot functionality works
495
502
  - **Documentation**: Feature documentation complete, examples available, API reference complete, slot usage documentation complete
496
- `;var EZ="mcp__getComponentGenerator",TZ=`
503
+ `;var OD="mcp__getComponentGenerator",CD=`
497
504
  Users need to actively call this tool to get the component development workflow. When Generator is mentioned, please actively call this tool.
498
505
  This tool provides a structured workflow for component development following best practices.
499
506
  You must provide an absolute rootPath of workspace to save workflow files.
500
- `,Tc=class extends Ke{constructor(){super();this.name=EZ;this.description=TZ;this.schema=ee.object({rootPath:ee.string().describe("The root path of the project, if the user does not provide, you can use the current directory as the root path"),fileId:ee.string().describe("MasterGo design file ID (format: file/<fileId> in MasterGo URL)"),layerId:ee.string().describe("Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL)"),sourceLayerId:ee.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries.")})}async execute({rootPath:r,fileId:n,layerId:o,sourceLayerId:i}){var p;let s=`${r}/.mastergo/`;er.default.existsSync(s)||er.default.mkdirSync(s,{recursive:!0});let a=`${s}/component-workflow.md`,c=await ft.getComponentStyleJson(n,o,i),u=`${s}/${c[0].name}.json`,l=m=>{if(m.path&&m.path.length>0){m.imageUrls=[];let h=m.id.replaceAll("/","&").replaceAll(":","_"),d=`${s}/images`;er.default.existsSync(d)||er.default.mkdirSync(d,{recursive:!0}),(m.path??[]).forEach((f,x)=>{let g=`${d}/${h}-${x}.svg`;er.default.existsSync(g)||er.default.writeFileSync(g,`<svg width="100%" height="100%" viewBox="0 0 16 16"xmlns="http://www.w3.org/2000/svg">
507
+ `,Rc=class extends ze{constructor(){super();this.name=OD;this.description=CD;this.schema=C.object({rootPath:C.string().describe("The root path of the project, if the user does not provide, you can use the current directory as the root path"),fileId:C.string().describe("MasterGo design file ID (format: file/<fileId> in MasterGo URL)"),layerId:C.string().describe("Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId> / file=<fileId> in MasterGo URL)"),sourceLayerId:C.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries.")})}async execute({rootPath:r,fileId:n,layerId:o,sourceLayerId:i}){var p;let s=`${r}/.mastergo/`;rr.default.existsSync(s)||rr.default.mkdirSync(s,{recursive:!0});let a=`${s}/component-workflow.md`,c=await xe.getComponentStyleJson(n,o,i),u=`${s}/${c[0].name}.json`,l=m=>{if(m.path&&m.path.length>0){m.imageUrls=[];let h=m.id.replaceAll("/","&").replaceAll(":","_"),d=`${s}/images`;rr.default.existsSync(d)||rr.default.mkdirSync(d,{recursive:!0}),(m.path??[]).forEach((f,x)=>{let g=`${d}/${h}-${x}.svg`;rr.default.existsSync(g)||rr.default.writeFileSync(g,`<svg width="100%" height="100%" viewBox="0 0 16 16"xmlns="http://www.w3.org/2000/svg">
501
508
  <path d="${f}" fill="currentColor"/>
502
- </svg>`),m.imageUrls.push(g)}),delete m.path}m.children&&m.children.forEach(h=>{l(h)})};l(c[0]),er.default.existsSync(a)||er.default.writeFileSync(a,ak),er.default.writeFileSync(u,JSON.stringify(c[0]));try{return{content:[{type:"text",text:JSON.stringify({files:{workflow:a,componentSpec:u},message:"Component development files successfully created",rules:[`Follow the component workflow process defined in file://${a} for structured development. This workflow contains a lot of content, you'll need to read it in multiple sessions.`,`Implement the component according to the specifications in file://${u}, ensuring all properties and states are properly handled.`]})}]}}catch(m){let h=((p=m.response)==null?void 0:p.data)??(m==null?void 0:m.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(h)}]}}}};var Pc={name:"@mastergo/magic-mcp",version:"0.1.9-alpha.0",description:"MasterGo MCP standalone service",main:"dist/index.js",bin:{"mastergo-magic-mcp":"dist/index.js"},files:["dist/**/*","!**/*.map","!**/.DS_Store","!**/.idea","!**/.vscode"],engines:{node:">=18"},scripts:{build:"node build.js",start:"node dist/index.js --token=test --url=http://localhost:3000 --debug",prepare:"npm run build",prepublishOnly:"npm run build"},keywords:["mastergo","mcp","ai"],author:"",license:"ISC",private:!1,dependencies:{"@modelcontextprotocol/sdk":"^1.6.1",axios:"1.6.0","https-proxy-agent":"^9.0.0",zod:"^3.22.4"},devDependencies:{"@types/node":"^20.8.10","@typescript-eslint/eslint-plugin":"^6.9.1","@typescript-eslint/parser":"^6.9.1",esbuild:"^0.25.1","esbuild-plugin-tsc":"^0.5.0",eslint:"^8.52.0",pkg:"^5.8.1",prettier:"^3.0.3","ts-node":"^10.9.1",typescript:"^5.2.2"}};var RZ=`version_${Pc.version.replace(/\./g,"_")}`,CZ=`the current version is ${Pc.version}`,Rc=class extends Ke{constructor(){super();this.name=RZ;this.description=CZ;this.schema=ee.object({})}async execute({}){return{content:[{type:"text",text:JSON.stringify(Pc.version)}]}}};function IZ(){let{token:t,baseUrl:e,rules:r,debug:n,noRule:o,proxy:i}=H0();n&&(process.env.DEBUG="true",console.log("Debug information:"),console.log(`Token: ${t?"set":"not set"}`),console.log(`API URL: ${e||"default"}`),console.log(`Rules: ${r.length>0?r.join(", "):"none"}`),console.log(`No Rule: ${o?"enabled":"disabled"}`),console.log(`Proxy: ${i||"none"}`),console.log("Debug mode: enabled"));let s=new Fa({name:"MasterGoMcpServer",version:"0.0.1"});new Rc().register(s),new wc().register(s),new $c().register(s),new Sc().register(s),new zc().register(s),new Ec().register(s),new Tc().register(s),s.connect(new Va)}IZ();
509
+ </svg>`),m.imageUrls.push(g)}),delete m.path}m.children&&m.children.forEach(h=>{l(h)})};l(c[0]),rr.default.existsSync(a)||rr.default.writeFileSync(a,mk),rr.default.writeFileSync(u,JSON.stringify(c[0]));try{return{content:[{type:"text",text:JSON.stringify({files:{workflow:a,componentSpec:u},message:"Component development files successfully created",rules:[`Follow the component workflow process defined in file://${a} for structured development. This workflow contains a lot of content, you'll need to read it in multiple sessions.`,`Implement the component according to the specifications in file://${u}, ensuring all properties and states are properly handled.`]})}]}}catch(m){let h=((p=m.response)==null?void 0:p.data)??(m==null?void 0:m.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(h)}]}}}};var Ic={name:"@mastergo/magic-mcp",version:"0.2.0",description:"MasterGo MCP standalone service",homepage:"https://github.com/mastergo-design/mastergo-magic-mcp#readme",repository:{type:"git",url:"git+https://github.com/mastergo-design/mastergo-magic-mcp.git"},bugs:{url:"https://github.com/mastergo-design/mastergo-magic-mcp/issues"},main:"dist/index.js",bin:{"mastergo-magic-mcp":"dist/index.js"},files:["dist/**/*","!**/*.map","!**/.DS_Store","!**/.idea","!**/.vscode"],engines:{node:">=18"},scripts:{build:"node build.js","build:watch":"node build.js --watch",start:"node dist/index.js --token=test --url=http://localhost:3000 --debug",prepare:"npm run build",prepublishOnly:"npm run build"},keywords:["mastergo","mcp","ai"],author:"",license:"ISC",private:!1,dependencies:{"@modelcontextprotocol/sdk":"^1.6.1",axios:"1.6.0","https-proxy-agent":"^9.0.0",zod:"^3.22.4"},devDependencies:{"@types/node":"^20.8.10","@typescript-eslint/eslint-plugin":"^6.9.1","@typescript-eslint/parser":"^6.9.1",esbuild:"^0.25.1","esbuild-plugin-tsc":"^0.5.0",eslint:"^8.52.0",pkg:"^5.8.1",prettier:"^3.0.3","ts-node":"^10.9.1",typescript:"^5.2.2"}};var AD=`version_${Ic.version.replace(/\./g,"_")}`,ND=`the current version is ${Ic.version}`,Oc=class extends ze{constructor(){super();this.name=AD;this.description=ND;this.schema=C.object({})}async execute({}){return{content:[{type:"text",text:JSON.stringify(Ic.version)}]}}};var DD="mcp__getDesignSections",LD=`
510
+ [PRIMARY] This is the main tool for all designs. Operates in TWO modes:
511
+
512
+ Mode 1 \u2014 Get layout overview (sectionIndex NOT provided):
513
+ Returns the list of all sections with id, name, type, and nodeCount, plus totalSections and totalNodes.
514
+ Also returns rootMetadata (root layer width/height/name/type/fill) when available.
515
+ Use this FIRST to understand the design scope.
516
+ Example: { "fileId": "123", "layerId": "456:789" }
517
+
518
+ Mode 2 \u2014 Get section DSL (sectionIndex provided):
519
+ Returns the full DSL for ONE specific section.
520
+ - PATH nodes have their svgHtml stripped. After fetching ALL sections, call mcp__getDesignSvgs to retrieve them.
521
+
522
+ IMPORTANT workflow:
523
+ 1. First call WITHOUT sectionIndex to get the section list with node counts.
524
+ 2. Then call WITH sectionIndex=0, sectionIndex=1, ... up to totalSections-1.
525
+ 3. You MUST fetch ALL sections. Do NOT skip any section index.
526
+ 4. CRITICAL: Fetch sections in BATCHES of 3-5 at a time. Do NOT request all sections simultaneously \u2014 too many concurrent requests will cause timeouts. Send 3-5 sectionIndex calls, wait for all results, then send the next batch.
527
+ 5. After fetching all sections, call mcp__getDesignSvgs to get SVG icons.
528
+ 6. Generate the complete HTML with all SVG data.
529
+
530
+ DO NOT call mcp__getDsl after completing this workflow \u2014 all data is already provided.
531
+ If this tool returns an error (e.g. old server), fall back to mcp__getDsl.
532
+
533
+ You can provide either:
534
+ 1. fileId and layerId directly, or
535
+ 2. a short link (like https://{domain}/goto/LhGgBAK)
536
+ `,Cc=class extends ze{constructor(){super();this.name=DD;this.description=LD;this.schema=C.object({fileId:C.string().optional().describe("MasterGo design file ID. Required if shortLink is not provided."),layerId:C.string().optional().describe("Root layer ID of the design. Required if shortLink is not provided."),shortLink:C.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK)."),sourceLayerId:C.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries."),sectionIndex:C.number().optional().describe("0-based section index. If omitted, returns the section list only. If provided, returns full DSL for that specific section.")})}async execute({fileId:r,layerId:n,shortLink:o,sourceLayerId:i,sectionIndex:s}){var a;try{if(!o&&(!r||!n))throw new Error("Either provide both fileId and layerId, or provide a shortLink");let c=this.normalizeFileId(r),u=n,l=i;if(o){let h=await xe.extractIdsFromUrl(o);c=this.normalizeFileId(h.fileId),u=h.layerId,l=h.sourceLayerId??i}if(!c||!u)throw new Error("Could not determine fileId or layerId");let p=l||u,m=await xe.getDesignSections(c,p,s);return{content:[{type:"text",text:JSON.stringify(m)}]}}catch(c){let u=((a=c.response)==null?void 0:a.data)??(c==null?void 0:c.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(u)}]}}}};var MD="mcp__getDesignSvgs",ZD=`
537
+ After fetching ALL sections via mcp__getDesignSections, call this tool to retrieve all cached SVG HTML strings.
538
+ Each PATH node in the DSL has an id. Look up that id in the returned svgs map to get the complete SVG string.
539
+ Insert the svgHtml string directly into HTML where icons should appear.
540
+
541
+ You can provide either:
542
+ 1. fileId and layerId directly, or
543
+ 2. a short link (like https://{domain}/goto/LhGgBAK)
544
+ `,jc=class extends ze{constructor(){super();this.name=MD;this.description=ZD;this.schema=C.object({fileId:C.string().optional().describe("MasterGo design file ID. Required if shortLink is not provided."),layerId:C.string().optional().describe("Root layer ID of the design. Required if shortLink is not provided."),sourceLayerId:C.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries."),shortLink:C.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK).")})}async execute({fileId:r,layerId:n,sourceLayerId:o,shortLink:i}){var s;try{if(!i&&(!r||!n))throw new Error("Either provide both fileId and layerId, or provide a shortLink");let a=this.normalizeFileId(r),c=n,u=o;if(i){let m=await xe.extractIdsFromUrl(i);a=this.normalizeFileId(m.fileId),c=m.layerId,u=m.sourceLayerId??o}if(!a||!c)throw new Error("Could not determine fileId or layerId");let l=u||c,p=await xe.getDesignSvgs(a,l);return{content:[{type:"text",text:JSON.stringify(p)}]}}catch(a){let c=((s=a.response)==null?void 0:s.data)??(a==null?void 0:a.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(c)}]}}}};var qD="mcp__getDesignTexts",UD=`
545
+ After fetching ALL sections via mcp__getDesignSections, call this tool to retrieve exact text content for large text nodes.
546
+ In the section DSL, TEXT nodes with long content (>50 chars) have their "text" field replaced with a key like "T{sectionIndex}|{nodeId}".
547
+ This tool returns the original text mapped by those keys. You MUST use the exact text from this response \u2014 never invent, paraphrase, or translate text.
548
+
549
+ You can provide either:
550
+ 1. fileId and layerId directly, or
551
+ 2. a short link (like https://{domain}/goto/LhGgBAK)
552
+ `,Ac=class extends ze{constructor(){super();this.name=qD;this.description=UD;this.schema=C.object({fileId:C.string().optional().describe("MasterGo design file ID. Required if shortLink is not provided."),layerId:C.string().optional().describe("Root layer ID of the design. Required if shortLink is not provided."),sourceLayerId:C.string().optional().describe("Source layer ID from URL parameter source_layer_id. When provided, use this instead of layerId for all queries."),shortLink:C.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK).")})}async execute({fileId:r,layerId:n,sourceLayerId:o,shortLink:i}){var s;try{if(!i&&(!r||!n))throw new Error("Either provide both fileId and layerId, or provide a shortLink");let a=this.normalizeFileId(r),c=n,u=o;if(i){let m=await xe.extractIdsFromUrl(i);a=this.normalizeFileId(m.fileId),c=m.layerId,u=m.sourceLayerId??o}if(!a||!c)throw new Error("Could not determine fileId or layerId");let l=u||c,p=await xe.getDesignTexts(a,l);return{content:[{type:"text",text:JSON.stringify(p)}]}}catch(a){let c=((s=a.response)==null?void 0:s.data)??(a==null?void 0:a.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(c)}]}}}};var FD="mcp__extractSvg",BD=`
553
+ Extract SVG data from MasterGo design files. This tool retrieves the DSL from a design layer, finds all PATH nodes (typically inside INSTANCE/icon components), resolves their color references, and generates SVG markup strings.
554
+ You can provide either:
555
+ 1. fileId and layerId directly, or
556
+ 2. a short link (like https://{domain}/goto/LhGgBAK)
557
+ Returns an array of SVG strings, one per icon/instance found in the design.
558
+ `,Nc=class extends ze{constructor(){super();this.name=FD;this.description=BD;this.schema=C.object({fileId:C.string().optional().describe("MasterGo design file ID (format: file/<fileId> in MasterGo URL). Required if shortLink is not provided."),layerId:C.string().optional().describe("Layer ID of the specific component or element to retrieve (format: ?layer_id=<layerId>). Required if shortLink is not provided."),shortLink:C.string().optional().describe("Short link (like https://{domain}/goto/LhGgBAK)."),backgroundColor:C.string().optional().describe("Solid background color for the SVG (e.g. '#000000', 'black'). Useful for previewing white/light icons.")})}async execute(r){var n;try{let{fileId:o,layerId:i,shortLink:s,backgroundColor:a}=r;if(!s&&(!o||!i))throw new Error("Either provide both fileId and layerId, or provide a shortLink");let c=this.normalizeFileId(o),u=i;if(s){let p=await xe.extractIdsFromUrl(s);c=this.normalizeFileId(p.fileId),u=p.layerId}if(!c||!u)throw new Error("Could not determine fileId or layerId");let l=await xe.extractSvg(c,u,a);return{content:[{type:"text",text:JSON.stringify(l)}]}}catch(o){let i=((n=o.response)==null?void 0:n.data)??(o==null?void 0:o.message);return{isError:!0,content:[{type:"text",text:JSON.stringify(i)}]}}}};var VD=`
559
+ ## MasterGo Design DSL - Section-by-Section Workflow
560
+
561
+ ### Step 0: Get Layout Overview (MANDATORY)
562
+ Call \`mcp__getDesignSections\` WITHOUT sectionIndex first.
563
+ The response contains \`sections\` array with \`nodeCount\` per section, \`totalSections\`, and \`totalNodes\`.
564
+ Use this to understand the design scope before fetching details.
565
+
566
+ \`rootMetadata\` (if present) provides the root layer's dimensions (width, height), name, type, and optional fill/styles. Use these as the page frame size and background.
567
+ \`splitContainers\` (if present) lists containers that were too large and split into child sections. Each entry provides the container's name, type, id, and layout properties (layoutMode, itemSpacing, padding). Use these to understand how the split sections should be arranged \u2014 they share the container's layout direction and spacing.
568
+
569
+ ### Step 1: Fetch Each Section DSL (MANDATORY - ALL N sections)
570
+ For i = 0 to N-1, call \`mcp__getDesignSections\` with \`sectionIndex=i\`.
571
+ You MUST call this tool N times. Do NOT skip any section.
572
+ CRITICAL: Fetch sections in BATCHES of 3-5 at a time. Do NOT request all sections simultaneously \u2014 too many concurrent requests will cause timeouts. Send 3-5 sectionIndex calls, wait for all results, then send the next batch.
573
+
574
+ ### Step 2: Fetch SVG and Text Data (MANDATORY)
575
+ After ALL N sections have been fetched, call BOTH tools below:
576
+
577
+ **SVG Data** \u2014 Call \`mcp__getDesignSvgs\` with the same fileId/layerId.
578
+ This returns all cached SVG HTML strings. Each key uses format \`S{sectionIndex}:{namedAncestor}|{ancestorId}\`.
579
+ - Match each SVG to its section by the \`S{sectionIndex}\` prefix.
580
+ - Insert the svgHtml string directly where the icon/PATH should appear.
581
+ - Do NOT construct your own SVG \u2014 use the exact svgHtml from the response.
582
+
583
+ **Text Data** \u2014 Call \`mcp__getDesignTexts\` with the same fileId/layerId.
584
+ This returns exact text content for large text nodes (>50 chars). In the section DSL, these TEXT nodes have their \`text\` field replaced with a key like \`T{sectionIndex}|{nodeId}\`.
585
+ - Look up the key in the returned texts map to get the exact text string.
586
+ - Insert the text string VERBATIM \u2014 do NOT paraphrase, translate, summarize, or invent text.
587
+ - This is the ONLY source of truth for large text content. The DSL key is a reference, not the actual text.
588
+
589
+ ### Step 3: Generate Complete Code
590
+ After ALL N sections have been fetched and SVG data retrieved:
591
+ - Generate a single complete HTML file containing ALL sections in order.
592
+ - token fields must be generated as CSS variables with comments indicating the token name.
593
+ - If componentDocumentLinks exists, call mcp__getComponentLink to fetch documentation.
594
+
595
+ ### Tool Selection Rules:
596
+ - \`mcp__getDesignSections\` is the PRIMARY tool. Always start here.
597
+ - \`mcp__getDsl\` is a FALLBACK \u2014 call it ONLY if \`getDesignSections\` returns an error (e.g. tool not available on older servers).
598
+ - NEVER call both \`getDesignSections\` AND \`getDsl\` / \`extractSvg\` for the same design.
599
+ - The section workflow provides COMPLETE data. Do NOT call \`getDsl\` to "verify".
600
+
601
+ ### Text Fidelity Rules:
602
+ - TEXT nodes contain actual text in node.text array. Read EACH node's text and use it EXACTLY.
603
+ - Do NOT duplicate text from one node to another \u2014 each TEXT node has unique content.
604
+ - Do NOT skip any child nodes. Render ALL nodes: every tab, every button, every text element.
605
+
606
+ ### Background & Color Rules:
607
+ - The DSL \`styles\` map contains fill/stroke style definitions. Use the node's \`fillStyleId\`/\`strokeStyleId\` to look up the actual color from \`styles\`.
608
+ - The root/frame node's background comes from its fill style. Do NOT invent gradient or solid backgrounds \u2014 use ONLY the colors from the DSL data.
609
+ - If a node has no fill or the fill style is empty/transparent, do NOT add a background color. Leave it transparent or inherit from parent.
610
+ - Status bar, title bar, and other container backgrounds MUST match the DSL fill data exactly.
611
+
612
+ ### Anti-Hallucination Rules:
613
+ - NEVER fabricate SVG path data for icons or vector shapes \u2014 use the svgHtml from mcp__getDesignSvgs.
614
+ - NEVER fabricate background colors, gradients, or decorations that are not present in the DSL data.
615
+ `;function HD(){let{token:t,baseUrl:e,rules:r,debug:n,noRule:o,proxy:i}=Q0();n&&(process.env.DEBUG="true",console.log("Debug information:"),console.log(`Token: ${t?"set":"not set"}`),console.log(`API URL: ${e||"default"}`),console.log(`Rules: ${r.length>0?r.join(", "):"none"}`),console.log(`No Rule: ${o?"enabled":"disabled"}`),console.log(`Proxy: ${i||"none"}`),console.log("Debug mode: enabled"));let s=new Ba({name:"MasterGoMcpServer",version:"0.0.1"},{instructions:VD});new Oc().register(s),new Cc().register(s),new jc().register(s),new Ac().register(s),new Sc().register(s),new zc().register(s),new Tc().register(s),new Ec().register(s),new Pc().register(s),new Rc().register(s),new Nc().register(s),s.connect(new Ha)}HD();
503
616
  /*! Bundled license information:
504
617
 
505
618
  mime-db/index.js: