@anthropic-ai/claude-agent-sdk 0.3.217 → 0.3.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bridge.mjs +39 -39
- package/browser-sdk.js +2 -2
- package/manifest.json +21 -20
- package/manifest.zst.json +25 -24
- package/package.json +10 -10
- package/sdk-tools.d.ts +1 -1
- package/sdk.d.ts +11 -3
- package/sdk.mjs +59 -59
package/browser-sdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.
|
|
2
2
|
|
|
3
|
-
// Version: 0.3.
|
|
3
|
+
// Version: 0.3.218
|
|
4
4
|
var l8=Object.create;var{getPrototypeOf:c8,defineProperty:ma,getOwnPropertyNames:N_,getOwnPropertyDescriptor:d8}=Object,z_=Object.prototype.hasOwnProperty;function j_(e){return this[e]}var f8,h8,U_=(e,t,r)=>{var i=e!=null&&typeof e==="object";if(i){var n=t?f8??=new WeakMap:h8??=new WeakMap,o=n.get(e);if(o)return o}r=e!=null?l8(c8(e)):{};let s=t||!e||!e.__esModule?ma(r,"default",{value:e,enumerable:!0}):r;if(e&&typeof e==="object"||typeof e==="function"){for(let h of N_(e))if(!z_.call(s,h))ma(s,h,{get:j_.bind(e,h),enumerable:!0})}if(i)n.set(e,s);return s},kt=(e)=>{var t=(D_??=new WeakMap).get(e),r;if(t)return t;if(t=ma({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var i of N_(e))if(!z_.call(t,i))ma(t,i,{get:j_.bind(e,i),enumerable:!(r=d8(e,i))||r.enumerable})}return D_.set(e,t),t},D_,Xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var p8=(e)=>e;function m8(e,t){this[e]=p8.bind(null,t)}var wn=(e,t)=>{for(var r in t)ma(e,r,{get:t[r],enumerable:!0,configurable:!0,set:m8.bind(t,r)})};var ga=(e,t)=>()=>(e&&(t=e(e=0)),t);var $i=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),g8=Symbol.dispose||Symbol.for("Symbol.dispose"),y8=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),xr=(e,t,r)=>{if(t!=null){if(typeof t!=="object"&&typeof t!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var i;if(r)i=t[y8];if(i===void 0)i=t[g8];if(typeof i!=="function")throw TypeError("Object not disposable");e.push([r,i,t])}else if(r)e.push([r]);return t},kr=(e,t,r)=>{var i=typeof SuppressedError==="function"?SuppressedError:function(s,h,v,b){return b=Error(v),b.name="SuppressedError",b.error=s,b.suppressed=h,b},n=(s)=>t=r?new i(s,t,"An error was suppressed during disposal"):(r=!0,s),o=(s)=>{while(s=e.pop())try{var h=s[1]&&s[1].call(s[2]);if(s[0])return Promise.resolve(h).then(o,(v)=>(n(v),o()))}catch(v){n(v)}if(r)throw t};return o()};var Ir={};wn(Ir,{transcode:()=>hT,resolveObjectURL:()=>cT,kStringMaxLength:()=>E1,kMaxLength:()=>ba,isUtf8:()=>dT,isAscii:()=>fT,default:()=>pT,constants:()=>jI,btoa:()=>OI,atob:()=>DI,INSPECT_MAX_BYTES:()=>M1,File:()=>NI,Buffer:()=>fe,Blob:()=>zI});function PI(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");if(r===-1)r=t;var i=r===t?0:4-r%4;return[r,i]}function $I(e,t){return(e+t)*3/4-t}function AI(e){var t,r=PI(e),i=r[0],n=r[1],o=new Uint8Array($I(i,n)),s=0,h=n>0?i-4:i,v;for(v=0;v<h;v+=4)t=Sn[e.charCodeAt(v)]<<18|Sn[e.charCodeAt(v+1)]<<12|Sn[e.charCodeAt(v+2)]<<6|Sn[e.charCodeAt(v+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;if(n===2)t=Sn[e.charCodeAt(v)]<<2|Sn[e.charCodeAt(v+1)]>>4,o[s++]=t&255;if(n===1)t=Sn[e.charCodeAt(v)]<<10|Sn[e.charCodeAt(v+1)]<<4|Sn[e.charCodeAt(v+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255;return o}function RI(e){return Gn[e>>18&63]+Gn[e>>12&63]+Gn[e>>6&63]+Gn[e&63]}function CI(e,t,r){var i,n=[];for(var o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(RI(i));return n.join("")}function b1(e){var t,r=e.length,i=r%3,n=[],o=16383;for(var s=0,h=r-i;s<h;s+=o)n.push(CI(e,s,s+o>h?h:s+o));if(i===1)t=e[r-1],n.push(Gn[t>>2]+Gn[t<<4&63]+"==");else if(i===2)t=(e[r-2]<<8)+e[r-1],n.push(Gn[t>>10]+Gn[t>>4&63]+Gn[t<<2&63]+"=");return n.join("")}function Ac(e,t,r,i,n){var o,s,h=n*8-i-1,v=(1<<h)-1,b=v>>1,_=-7,g=r?n-1:0,S=r?-1:1,x=e[t+g];g+=S,o=x&(1<<-_)-1,x>>=-_,_+=h;for(;_>0;o=o*256+e[t+g],g+=S,_-=8);s=o&(1<<-_)-1,o>>=-_,_+=i;for(;_>0;s=s*256+e[t+g],g+=S,_-=8);if(o===0)o=1-b;else if(o===v)return s?NaN:(x?-1:1)*(1/0);else s=s+Math.pow(2,i),o=o-b;return(x?-1:1)*s*Math.pow(2,o-i)}function k1(e,t,r,i,n,o){var s,h,v,b=o*8-n-1,_=(1<<b)-1,g=_>>1,S=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,M=i?1:-1,I=t<0||t===0&&1/t<0?1:0;if(t=Math.abs(t),isNaN(t)||t===1/0)h=isNaN(t)?1:0,s=_;else{if(s=Math.floor(Math.log(t)/Math.LN2),t*(v=Math.pow(2,-s))<1)s--,v*=2;if(s+g>=1)t+=S/v;else t+=S*Math.pow(2,1-g);if(t*v>=2)s++,v/=2;if(s+g>=_)h=0,s=_;else if(s+g>=1)h=(t*v-1)*Math.pow(2,n),s=s+g;else h=t*Math.pow(2,g-1)*Math.pow(2,n),s=0}for(;n>=8;e[r+x]=h&255,x+=M,h/=256,n-=8);s=s<<n|h,b+=n;for(;b>0;e[r+x]=s&255,x+=M,s/=256,b-=8);e[r+x-M]|=I*128}function ii(e){if(e>ba)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,fe.prototype),t}function hm(e,t,r){return class extends r{constructor(){super();Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function fe(e,t,r){if(typeof e==="number"){if(typeof t==="string")throw TypeError('The "string" argument must be of type string. Received type number');return pm(e)}return I1(e,t,r)}function I1(e,t,r){if(typeof e==="string")return qI(e,t);if(ArrayBuffer.isView(e))return BI(e);if(e==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Jn(e,ArrayBuffer)||e&&Jn(e.buffer,ArrayBuffer))return dm(e,t,r);if(typeof SharedArrayBuffer<"u"&&(Jn(e,SharedArrayBuffer)||e&&Jn(e.buffer,SharedArrayBuffer)))return dm(e,t,r);if(typeof e==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return fe.from(i,t,r);let n=HI(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==="function")return fe.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function T1(e){if(typeof e!=="number")throw TypeError('"size" argument must be of type number');else if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function FI(e,t,r){if(T1(e),e<=0)return ii(e);if(t!==void 0)return typeof r==="string"?ii(e).fill(t,r):ii(e).fill(t);return ii(e)}function pm(e){return T1(e),ii(e<0?0:mm(e)|0)}function qI(e,t){if(typeof t!=="string"||t==="")t="utf8";if(!fe.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=P1(e,t)|0,i=ii(r),n=i.write(e,t);if(n!==r)i=i.slice(0,n);return i}function cm(e){let t=e.length<0?0:mm(e.length)|0,r=ii(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function BI(e){if(Jn(e,Uint8Array)){let t=new Uint8Array(e);return dm(t.buffer,t.byteOffset,t.byteLength)}return cm(e)}function dm(e,t,r){if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');let i;if(t===void 0&&r===void 0)i=new Uint8Array(e);else if(r===void 0)i=new Uint8Array(e,t);else i=new Uint8Array(e,t,r);return Object.setPrototypeOf(i,fe.prototype),i}function HI(e){if(fe.isBuffer(e)){let t=mm(e.length)|0,r=ii(t);if(r.length===0)return r;return e.copy(r,0,0,t),r}if(e.length!==void 0){if(typeof e.length!=="number"||Number.isNaN(e.length))return ii(0);return cm(e)}if(e.type==="Buffer"&&Array.isArray(e.data))return cm(e.data)}function mm(e){if(e>=ba)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ba.toString(16)+" bytes");return e|0}function P1(e,t){if(fe.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Jn(e,ArrayBuffer))return e.byteLength;if(typeof e!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return fm(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return j1(e).length;default:if(n)return i?-1:fm(e).length;t=(""+t).toLowerCase(),n=!0}}function ZI(e,t,r){let i=!1;if(t===void 0||t<0)t=0;if(t>this.length)return"";if(r===void 0||r>this.length)r=this.length;if(r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";if(!e)e="utf8";while(!0)switch(e){case"hex":return tT(this,t,r);case"utf8":case"utf-8":return A1(this,t,r);case"ascii":return QI(this,t,r);case"latin1":case"binary":return eT(this,t,r);case"base64":return XI(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rT(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function fo(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function $1(e,t,r,i,n){if(e.length===0)return-1;if(typeof r==="string")i=r,r=0;else if(r>2147483647)r=2147483647;else if(r<-2147483648)r=-2147483648;if(r=+r,Number.isNaN(r))r=n?0:e.length-1;if(r<0)r=e.length+r;if(r>=e.length)if(n)return-1;else r=e.length-1;else if(r<0)if(n)r=0;else return-1;if(typeof t==="string")t=fe.from(t,i);if(fe.isBuffer(t)){if(t.length===0)return-1;return w1(e,t,r,i,n)}else if(typeof t==="number"){if(t=t&255,typeof Uint8Array.prototype.indexOf==="function")if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return w1(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function w1(e,t,r,i,n){let o=1,s=e.length,h=t.length;if(i!==void 0){if(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le"){if(e.length<2||t.length<2)return-1;o=2,s/=2,h/=2,r/=2}}function v(_,g){if(o===1)return _[g];else return _.readUInt16BE(g*o)}let b;if(n){let _=-1;for(b=r;b<s;b++)if(v(e,b)===v(t,_===-1?0:b-_)){if(_===-1)_=b;if(b-_+1===h)return _*o}else{if(_!==-1)b-=b-_;_=-1}}else{if(r+h>s)r=s-h;for(b=r;b>=0;b--){let _=!0;for(let g=0;g<h;g++)if(v(e,b+g)!==v(t,g)){_=!1;break}if(_)return b}}return-1}function KI(e,t,r,i){r=Number(r)||0;let n=e.length-r;if(!i)i=n;else if(i=Number(i),i>n)i=n;let o=t.length;if(i>o/2)i=o/2;let s;for(s=0;s<i;++s){let h=parseInt(t.substr(s*2,2),16);if(Number.isNaN(h))return s;e[r+s]=h}return s}function VI(e,t,r,i){return Rc(fm(t,e.length-r),e,r,i)}function WI(e,t,r,i){return Rc(sT(t),e,r,i)}function GI(e,t,r,i){return Rc(j1(t),e,r,i)}function JI(e,t,r,i){return Rc(aT(t,e.length-r),e,r,i)}function XI(e,t,r){if(t===0&&r===e.length)return b1(e);else return b1(e.slice(t,r))}function A1(e,t,r){r=Math.min(e.length,r);let i=[],n=t;while(n<r){let o=e[n],s=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=r){let v,b,_,g;switch(h){case 1:if(o<128)s=o;break;case 2:if(v=e[n+1],(v&192)===128){if(g=(o&31)<<6|v&63,g>127)s=g}break;case 3:if(v=e[n+1],b=e[n+2],(v&192)===128&&(b&192)===128){if(g=(o&15)<<12|(v&63)<<6|b&63,g>2047&&(g<55296||g>57343))s=g}break;case 4:if(v=e[n+1],b=e[n+2],_=e[n+3],(v&192)===128&&(b&192)===128&&(_&192)===128){if(g=(o&15)<<18|(v&63)<<12|(b&63)<<6|_&63,g>65535&&g<1114112)s=g}}}if(s===null)s=65533,h=1;else if(s>65535)s-=65536,i.push(s>>>10&1023|55296),s=56320|s&1023;i.push(s),n+=h}return YI(i)}function YI(e){let t=e.length;if(t<=S1)return String.fromCharCode.apply(String,e);let r="",i=0;while(i<t)r+=String.fromCharCode.apply(String,e.slice(i,i+=S1));return r}function QI(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]&127);return i}function eT(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function tT(e,t,r){let i=e.length;if(!t||t<0)t=0;if(!r||r<0||r>i)r=i;let n="";for(let o=t;o<r;++o)n+=uT[e[o]];return n}function rT(e,t,r){let i=e.slice(t,r),n="";for(let o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}function Er(e,t,r){if(e%1!==0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function Yr(e,t,r,i,n,o){if(!fe.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function R1(e,t,r,i,n){z1(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function C1(e,t,r,i,n){z1(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}function O1(e,t,r,i,n,o){if(r+i>e.length)throw RangeError("Index out of range");if(r<0)throw RangeError("Index out of range")}function D1(e,t,r,i,n){if(t=+t,r=r>>>0,!n)O1(e,t,r,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return k1(e,t,r,i,23,4),r+4}function N1(e,t,r,i,n){if(t=+t,r=r>>>0,!n)O1(e,t,r,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return k1(e,t,r,i,52,8),r+8}function x1(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function nT(e,t,r){if(ns(t,"offset"),e[t]===void 0||e[t+r]===void 0)_a(t,e.length-(r+1))}function z1(e,t,r,i,n,o){if(e>r||e<t){let s=typeof t==="bigint"?"n":"",h;if(o>3)if(t===0||t===BigInt(0))h=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`;else h=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`;else h=`>= ${t}${s} and <= ${r}${s}`;throw new lm("value",h,e)}nT(i,n,o)}function ns(e,t){if(typeof e!=="number")throw new LI(t,"number",e)}function _a(e,t,r){if(Math.floor(e)!==e)throw ns(e,r),new lm(r||"offset","an integer",e);if(t<0)throw new UI;throw new lm(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}function oT(e){if(e=e.split("=")[0],e=e.trim().replace(iT,""),e.length<2)return"";while(e.length%4!==0)e=e+"=";return e}function fm(e,t){t=t||1/0;let r,i=e.length,n=null,o=[];for(let s=0;s<i;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!n){if(r>56319){if((t-=3)>-1)o.push(239,191,189);continue}else if(s+1===i){if((t-=3)>-1)o.push(239,191,189);continue}n=r;continue}if(r<56320){if((t-=3)>-1)o.push(239,191,189);n=r;continue}r=(n-55296<<10|r-56320)+65536}else if(n){if((t-=3)>-1)o.push(239,191,189)}if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw Error("Invalid code point")}return o}function sT(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function aT(e,t){let r,i,n,o=[];for(let s=0;s<e.length;++s){if((t-=2)<0)break;r=e.charCodeAt(s),i=r>>8,n=r%256,o.push(n),o.push(i)}return o}function j1(e){return AI(oT(e))}function Rc(e,t,r,i){let n;for(n=0;n<i;++n){if(n+r>=t.length||n>=e.length)break;t[n+r]=e[n]}return n}function Jn(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ci(e){return typeof BigInt>"u"?lT:e}function lT(){throw Error("BigInt not supported")}function gm(e){return()=>{throw Error(e+" is not implemented for node:buffer browser polyfill")}}var Gn,Sn,um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",co,v1,_1,M1=50,ba=2147483647,E1=536870888,OI,DI,NI,zI,jI,UI,LI,lm,S1=4096,iT,uT,cT,dT,fT=(e)=>{for(let t of e)if(t.charCodeAt(0)>127)return!1;return!0},hT,pT;var Tr=ga(()=>{Gn=[],Sn=[];for(co=0,v1=um.length;co<v1;++co)Gn[co]=um[co],Sn[um.charCodeAt(co)]=co;Sn[45]=62;Sn[95]=63;_1=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,OI=globalThis.btoa,DI=globalThis.atob,NI=globalThis.File,zI=globalThis.Blob,jI={MAX_LENGTH:ba,MAX_STRING_LENGTH:E1};UI=hm("ERR_BUFFER_OUT_OF_BOUNDS",function(e){if(e)return`${e} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),LI=hm("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),lm=hm("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;if(Number.isInteger(r)&&Math.abs(r)>4294967296)n=x1(String(r));else if(typeof r==="bigint"){if(n=String(r),r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))n=x1(n);n+="n"}return i+=` It must be ${t}. Received ${n}`,i},RangeError);Object.defineProperty(fe.prototype,"parent",{enumerable:!0,get:function(){if(!fe.isBuffer(this))return;return this.buffer}});Object.defineProperty(fe.prototype,"offset",{enumerable:!0,get:function(){if(!fe.isBuffer(this))return;return this.byteOffset}});fe.poolSize=8192;fe.from=function(e,t,r){return I1(e,t,r)};Object.setPrototypeOf(fe.prototype,Uint8Array.prototype);Object.setPrototypeOf(fe,Uint8Array);fe.alloc=function(e,t,r){return FI(e,t,r)};fe.allocUnsafe=function(e){return pm(e)};fe.allocUnsafeSlow=function(e){return pm(e)};fe.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==fe.prototype};fe.compare=function(e,t){if(Jn(e,Uint8Array))e=fe.from(e,e.offset,e.byteLength);if(Jn(t,Uint8Array))t=fe.from(t,t.offset,t.byteLength);if(!fe.isBuffer(e)||!fe.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,i=t.length;for(let n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}if(r<i)return-1;if(i<r)return 1;return 0};fe.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};fe.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return fe.alloc(0);let r;if(t===void 0){t=0;for(r=0;r<e.length;++r)t+=e[r].length}let i=fe.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){let o=e[r];if(Jn(o,Uint8Array))if(n+o.length>i.length){if(!fe.isBuffer(o))o=fe.from(o);o.copy(i,n)}else Uint8Array.prototype.set.call(i,o,n);else if(!fe.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');else o.copy(i,n);n+=o.length}return i};fe.byteLength=P1;fe.prototype._isBuffer=!0;fe.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)fo(this,t,t+1);return this};fe.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)fo(this,t,t+3),fo(this,t+1,t+2);return this};fe.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)fo(this,t,t+7),fo(this,t+1,t+6),fo(this,t+2,t+5),fo(this,t+3,t+4);return this};fe.prototype.toString=function(){let e=this.length;if(e===0)return"";if(arguments.length===0)return A1(this,0,e);return ZI.apply(this,arguments)};fe.prototype.toLocaleString=fe.prototype.toString;fe.prototype.equals=function(e){if(!fe.isBuffer(e))throw TypeError("Argument must be a Buffer");if(this===e)return!0;return fe.compare(this,e)===0};fe.prototype.inspect=function(){let e="",t=M1;if(e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t)e+=" ... ";return"<Buffer "+e+">"};if(_1)fe.prototype[_1]=fe.prototype.inspect;fe.prototype.compare=function(e,t,r,i,n){if(Jn(e,Uint8Array))e=fe.from(e,e.offset,e.byteLength);if(!fe.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0)t=0;if(r===void 0)r=e?e.length:0;if(i===void 0)i=0;if(n===void 0)n=this.length;if(t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;let o=n-i,s=r-t,h=Math.min(o,s),v=this.slice(i,n),b=e.slice(t,r);for(let _=0;_<h;++_)if(v[_]!==b[_]){o=v[_],s=b[_];break}if(o<s)return-1;if(s<o)return 1;return 0};fe.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1};fe.prototype.indexOf=function(e,t,r){return $1(this,e,t,r,!0)};fe.prototype.lastIndexOf=function(e,t,r){return $1(this,e,t,r,!1)};fe.prototype.write=function(e,t,r,i){if(t===void 0)i="utf8",r=this.length,t=0;else if(r===void 0&&typeof t==="string")i=t,r=this.length,t=0;else if(isFinite(t))if(t=t>>>0,isFinite(r)){if(r=r>>>0,i===void 0)i="utf8"}else i=r,r=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let n=this.length-t;if(r===void 0||r>n)r=n;if(e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!i)i="utf8";let o=!1;for(;;)switch(i){case"hex":return KI(this,e,t,r);case"utf8":case"utf-8":return VI(this,e,t,r);case"ascii":case"latin1":case"binary":return WI(this,e,t,r);case"base64":return GI(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return JI(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};fe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};fe.prototype.slice=function(e,t){let r=this.length;if(e=~~e,t=t===void 0?r:~~t,e<0){if(e+=r,e<0)e=0}else if(e>r)e=r;if(t<0){if(t+=r,t<0)t=0}else if(t>r)t=r;if(t<e)t=e;let i=this.subarray(e,t);return Object.setPrototypeOf(i,fe.prototype),i};fe.prototype.readUintLE=fe.prototype.readUIntLE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Er(e,t,this.length);let i=this[e],n=1,o=0;while(++o<t&&(n*=256))i+=this[e+o]*n;return i};fe.prototype.readUintBE=fe.prototype.readUIntBE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Er(e,t,this.length);let i=this[e+--t],n=1;while(t>0&&(n*=256))i+=this[e+--t]*n;return i};fe.prototype.readUint8=fe.prototype.readUInt8=function(e,t){if(e=e>>>0,!t)Er(e,1,this.length);return this[e]};fe.prototype.readUint16LE=fe.prototype.readUInt16LE=function(e,t){if(e=e>>>0,!t)Er(e,2,this.length);return this[e]|this[e+1]<<8};fe.prototype.readUint16BE=fe.prototype.readUInt16BE=function(e,t){if(e=e>>>0,!t)Er(e,2,this.length);return this[e]<<8|this[e+1]};fe.prototype.readUint32LE=fe.prototype.readUInt32LE=function(e,t){if(e=e>>>0,!t)Er(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};fe.prototype.readUint32BE=fe.prototype.readUInt32BE=function(e,t){if(e=e>>>0,!t)Er(e,4,this.length);return this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};fe.prototype.readBigUInt64LE=Ci(function(e){e=e>>>0,ns(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)_a(e,this.length-8);let i=t+this[++e]*256+this[++e]*65536+this[++e]*16777216,n=this[++e]+this[++e]*256+this[++e]*65536+r*16777216;return BigInt(i)+(BigInt(n)<<BigInt(32))});fe.prototype.readBigUInt64BE=Ci(function(e){e=e>>>0,ns(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)_a(e,this.length-8);let i=t*16777216+this[++e]*65536+this[++e]*256+this[++e],n=this[++e]*16777216+this[++e]*65536+this[++e]*256+r;return(BigInt(i)<<BigInt(32))+BigInt(n)});fe.prototype.readIntLE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Er(e,t,this.length);let i=this[e],n=1,o=0;while(++o<t&&(n*=256))i+=this[e+o]*n;if(n*=128,i>=n)i-=Math.pow(2,8*t);return i};fe.prototype.readIntBE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Er(e,t,this.length);let i=t,n=1,o=this[e+--i];while(i>0&&(n*=256))o+=this[e+--i]*n;if(n*=128,o>=n)o-=Math.pow(2,8*t);return o};fe.prototype.readInt8=function(e,t){if(e=e>>>0,!t)Er(e,1,this.length);if(!(this[e]&128))return this[e];return(255-this[e]+1)*-1};fe.prototype.readInt16LE=function(e,t){if(e=e>>>0,!t)Er(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};fe.prototype.readInt16BE=function(e,t){if(e=e>>>0,!t)Er(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};fe.prototype.readInt32LE=function(e,t){if(e=e>>>0,!t)Er(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};fe.prototype.readInt32BE=function(e,t){if(e=e>>>0,!t)Er(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};fe.prototype.readBigInt64LE=Ci(function(e){e=e>>>0,ns(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)_a(e,this.length-8);let i=this[e+4]+this[e+5]*256+this[e+6]*65536+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*65536+this[++e]*16777216)});fe.prototype.readBigInt64BE=Ci(function(e){e=e>>>0,ns(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)_a(e,this.length-8);let i=(t<<24)+this[++e]*65536+this[++e]*256+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*16777216+this[++e]*65536+this[++e]*256+r)});fe.prototype.readFloatLE=function(e,t){if(e=e>>>0,!t)Er(e,4,this.length);return Ac(this,e,!0,23,4)};fe.prototype.readFloatBE=function(e,t){if(e=e>>>0,!t)Er(e,4,this.length);return Ac(this,e,!1,23,4)};fe.prototype.readDoubleLE=function(e,t){if(e=e>>>0,!t)Er(e,8,this.length);return Ac(this,e,!0,52,8)};fe.prototype.readDoubleBE=function(e,t){if(e=e>>>0,!t)Er(e,8,this.length);return Ac(this,e,!1,52,8)};fe.prototype.writeUintLE=fe.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t=t>>>0,r=r>>>0,!i){let s=Math.pow(2,8*r)-1;Yr(this,e,t,r,s,0)}let n=1,o=0;this[t]=e&255;while(++o<r&&(n*=256))this[t+o]=e/n&255;return t+r};fe.prototype.writeUintBE=fe.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t=t>>>0,r=r>>>0,!i){let s=Math.pow(2,8*r)-1;Yr(this,e,t,r,s,0)}let n=r-1,o=1;this[t+n]=e&255;while(--n>=0&&(o*=256))this[t+n]=e/o&255;return t+r};fe.prototype.writeUint8=fe.prototype.writeUInt8=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,1,255,0);return this[t]=e&255,t+1};fe.prototype.writeUint16LE=fe.prototype.writeUInt16LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,2,65535,0);return this[t]=e&255,this[t+1]=e>>>8,t+2};fe.prototype.writeUint16BE=fe.prototype.writeUInt16BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,2,65535,0);return this[t]=e>>>8,this[t+1]=e&255,t+2};fe.prototype.writeUint32LE=fe.prototype.writeUInt32LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,4,4294967295,0);return this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};fe.prototype.writeUint32BE=fe.prototype.writeUInt32BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,4,4294967295,0);return this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};fe.prototype.writeBigUInt64LE=Ci(function(e,t=0){return R1(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});fe.prototype.writeBigUInt64BE=Ci(function(e,t=0){return C1(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});fe.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t=t>>>0,!i){let h=Math.pow(2,8*r-1);Yr(this,e,t,r,h-1,-h)}let n=0,o=1,s=0;this[t]=e&255;while(++n<r&&(o*=256)){if(e<0&&s===0&&this[t+n-1]!==0)s=1;this[t+n]=(e/o>>0)-s&255}return t+r};fe.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t=t>>>0,!i){let h=Math.pow(2,8*r-1);Yr(this,e,t,r,h-1,-h)}let n=r-1,o=1,s=0;this[t+n]=e&255;while(--n>=0&&(o*=256)){if(e<0&&s===0&&this[t+n+1]!==0)s=1;this[t+n]=(e/o>>0)-s&255}return t+r};fe.prototype.writeInt8=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,1,127,-128);if(e<0)e=255+e+1;return this[t]=e&255,t+1};fe.prototype.writeInt16LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,2,32767,-32768);return this[t]=e&255,this[t+1]=e>>>8,t+2};fe.prototype.writeInt16BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,2,32767,-32768);return this[t]=e>>>8,this[t+1]=e&255,t+2};fe.prototype.writeInt32LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,4,2147483647,-2147483648);return this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};fe.prototype.writeInt32BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Yr(this,e,t,4,2147483647,-2147483648);if(e<0)e=4294967295+e+1;return this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};fe.prototype.writeBigInt64LE=Ci(function(e,t=0){return R1(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});fe.prototype.writeBigInt64BE=Ci(function(e,t=0){return C1(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});fe.prototype.writeFloatLE=function(e,t,r){return D1(this,e,t,!0,r)};fe.prototype.writeFloatBE=function(e,t,r){return D1(this,e,t,!1,r)};fe.prototype.writeDoubleLE=function(e,t,r){return N1(this,e,t,!0,r)};fe.prototype.writeDoubleBE=function(e,t,r){return N1(this,e,t,!1,r)};fe.prototype.copy=function(e,t,r,i){if(!fe.isBuffer(e))throw TypeError("argument should be a Buffer");if(!r)r=0;if(!i&&i!==0)i=this.length;if(t>=e.length)t=e.length;if(!t)t=0;if(i>0&&i<r)i=r;if(i===r)return 0;if(e.length===0||this.length===0)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");if(i>this.length)i=this.length;if(e.length-t<i-r)i=e.length-t+r;let n=i-r;if(this===e&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(t,r,i);else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n};fe.prototype.fill=function(e,t,r,i){if(typeof e==="string"){if(typeof t==="string")i=t,t=0,r=this.length;else if(typeof r==="string")i=r,r=this.length;if(i!==void 0&&typeof i!=="string")throw TypeError("encoding must be a string");if(typeof i==="string"&&!fe.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(e.length===1){let o=e.charCodeAt(0);if(i==="utf8"&&o<128||i==="latin1")e=o}}else if(typeof e==="number")e=e&255;else if(typeof e==="boolean")e=Number(e);if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t=t>>>0,r=r===void 0?this.length:r>>>0,!e)e=0;let n;if(typeof e==="number")for(n=t;n<r;++n)this[n]=e;else{let o=fe.isBuffer(e)?e:fe.from(e,i),s=o.length;if(s===0)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};iT=/[^+/0-9A-Za-z-_]/g;uT=function(){let e=Array(256);for(let t=0;t<16;++t){let r=t*16;for(let i=0;i<16;++i)e[r+i]="0123456789abcdef"[t]+"0123456789abcdef"[i]}return e}();cT=gm("resolveObjectURL"),dT=gm("isUtf8"),hT=gm("transcode"),pT=fe});var W1={};wn(W1,{types:()=>kT,promisify:()=>H1,log:()=>F1,isUndefined:()=>is,isSymbol:()=>ET,isString:()=>jc,isRegExp:()=>Cc,isPrimitive:()=>IT,isObject:()=>os,isNumber:()=>L1,isNullOrUndefined:()=>MT,isNull:()=>zc,isFunction:()=>Dc,isError:()=>Oc,isDate:()=>_m,isBuffer:()=>TT,isBoolean:()=>Sm,isArray:()=>U1,inspect:()=>ho,inherits:()=>q1,format:()=>wm,deprecate:()=>gT,default:()=>AT,debuglog:()=>yT,callbackifyOnRejected:()=>Mm,callbackify:()=>Z1,_extend:()=>km,TextEncoder:()=>K1,TextDecoder:()=>V1});function wm(e,...t){if(!jc(e)){var r=[e];for(var i=0;i<t.length;i++)r.push(ho(t[i]));return r.join(" ")}var i=0,n=t.length,o=String(e).replace(mT,function(h){if(h==="%%")return"%";if(i>=n)return h;switch(h){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(v){return"[Circular]"}default:return h}});for(var s=t[i];i<n;s=t[++i])if(zc(s)||!os(s))o+=" "+s;else o+=" "+ho(s);return o}function gT(e,t){if(typeof process>"u"||process?.noDeprecation===!0)return e;var r=!1;function i(...n){if(!r){if(process.throwDeprecation)throw Error(t);else if(process.traceDeprecation)console.trace(t);else console.error(t);r=!0}return e.apply(this,...n)}return i}function vT(e,t){var r=ho.styles[t];if(r)return"\x1B["+ho.colors[r][0]+"m"+e+"\x1B["+ho.colors[r][1]+"m";else return e}function bT(e,t){return e}function _T(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function Nc(e,t,r){if(e.customInspect&&t&&Dc(t.inspect)&&t.inspect!==ho&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);if(!jc(i))i=Nc(e,i,r);return i}var n=wT(e,t);if(n)return n;var o=Object.keys(t),s=_T(o);if(e.showHidden)o=Object.getOwnPropertyNames(t);if(Oc(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return ym(t);if(o.length===0){if(Dc(t)){var h=t.name?": "+t.name:"";return e.stylize("[Function"+h+"]","special")}if(Cc(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_m(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Oc(t))return ym(t)}var v="",b=!1,_=["{","}"];if(U1(t))b=!0,_=["[","]"];if(Dc(t)){var g=t.name?": "+t.name:"";v=" [Function"+g+"]"}if(Cc(t))v=" "+RegExp.prototype.toString.call(t);if(_m(t))v=" "+Date.prototype.toUTCString.call(t);if(Oc(t))v=" "+ym(t);if(o.length===0&&(!b||t.length==0))return _[0]+v+_[1];if(r<0)if(Cc(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");else return e.stylize("[Object]","special");e.seen.push(t);var S;if(b)S=ST(e,t,r,s,o);else S=o.map(function(x){return bm(e,t,r,s,x,b)});return e.seen.pop(),xT(S,v,_)}function wT(e,t){if(is(t))return e.stylize("undefined","undefined");if(jc(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(L1(t))return e.stylize(""+t,"number");if(Sm(t))return e.stylize(""+t,"boolean");if(zc(t))return e.stylize("null","null")}function ym(e){return"["+Error.prototype.toString.call(e)+"]"}function ST(e,t,r,i,n){var o=[];for(var s=0,h=t.length;s<h;++s)if(B1(t,String(s)))o.push(bm(e,t,r,i,String(s),!0));else o.push("");return n.forEach(function(v){if(!v.match(/^\d+$/))o.push(bm(e,t,r,i,v,!0))}),o}function bm(e,t,r,i,n,o){var s,h,v;if(v=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},v.get)if(v.set)h=e.stylize("[Getter/Setter]","special");else h=e.stylize("[Getter]","special");else if(v.set)h=e.stylize("[Setter]","special");if(!B1(i,n))s="["+n+"]";if(!h)if(e.seen.indexOf(v.value)<0){if(zc(r))h=Nc(e,v.value,null);else h=Nc(e,v.value,r-1);if(h.indexOf(`
|
|
5
5
|
`)>-1)if(o)h=h.split(`
|
|
6
6
|
`).map(function(b){return" "+b}).join(`
|
|
@@ -23,7 +23,7 @@ https://github.com/browserify/crypto-browserify`)},e.constants={DH_CHECK_P_NOT_S
|
|
|
23
23
|
|| ${s} === "boolean" || ${n} === null`).assign(h,ht._`[${n}]`)}}}function Wz({gen:e,parentData:t,parentDataProperty:r},i){e.if(ht._`${t} !== undefined`,()=>e.assign(ht._`${t}[${r}]`,i))}function jb(e,t,r,i=oa.Correct){let n=i===oa.Correct?ht.operators.EQ:ht.operators.NEQ,o;switch(e){case"null":return ht._`${t} ${n} null`;case"array":o=ht._`Array.isArray(${t})`;break;case"object":o=ht._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(ht._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return ht._`typeof ${t} ${n} ${e}`}return i===oa.Correct?o:(0,ht.not)(o);function s(h=ht.nil){return(0,ht.and)(ht._`typeof ${t} == "number"`,h,r?ht._`isFinite(${t})`:ht.nil)}}hM.checkDataType=jb;function Ub(e,t,r,i){if(e.length===1)return jb(e[0],t,r,i);let n,o=(0,cM.toHash)(e);if(o.array&&o.object){let s=ht._`typeof ${t} != "object"`;n=o.null?s:ht._`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else n=ht.nil;if(o.number)delete o.integer;for(let s in o)n=(0,ht.and)(n,jb(s,t,r,i));return n}hM.checkDataTypes=Ub;var Gz={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?ht._`{type: ${e}}`:ht._`{type: ${t}}`};function Lb(e){let t=Jz(e);(0,Bz.reportError)(t,Gz)}hM.reportTypeError=Lb;function Jz(e){let{gen:t,data:r,schema:i}=e,n=(0,cM.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:e}}});var vM=Xe(function(gM){Object.defineProperty(gM,"__esModule",{value:!0});gM.assignDefaults=void 0;var sa=mt(),nj=Mt();function ij(e,t){let{properties:r,items:i}=e.schema;if(t==="object"&&r)for(let n in r)mM(e,n,r[n].default);else if(t==="array"&&Array.isArray(i))i.forEach((n,o)=>mM(e,o,n.default))}gM.assignDefaults=ij;function mM(e,t,r){let{gen:i,compositeRule:n,data:o,opts:s}=e;if(r===void 0)return;let h=sa._`${o}${(0,sa.getProperty)(t)}`;if(n){(0,nj.checkStrictMode)(e,`default is ignored for: ${h}`);return}let v=sa._`${h} === undefined`;if(s.useDefaults==="empty")v=sa._`${v} || ${h} === null || ${h} === ""`;i.if(v,sa._`${h} = ${(0,sa.stringify)(r)}`)}});var Rn=Xe(function(wM){Object.defineProperty(wM,"__esModule",{value:!0});wM.validateUnion=wM.validateArray=wM.usePattern=wM.callValidateCode=wM.schemaProperties=wM.allSchemaProperties=wM.noPropertyInData=wM.propertyInData=wM.isOwnProperty=wM.hasPropFunc=wM.reportMissingProp=wM.checkMissingProp=wM.checkReportMissingProp=void 0;var Bt=mt(),Fb=Mt(),oo=Ii(),oj=Mt();function sj(e,t){let{gen:r,data:i,it:n}=e;r.if(Bb(r,i,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:Bt._`${t}`},!0),e.error()})}wM.checkReportMissingProp=sj;function aj({gen:e,data:t,it:{opts:r}},i,n){return(0,Bt.or)(...i.map((o)=>(0,Bt.and)(Bb(e,t,o,r.ownProperties),Bt._`${n} = ${o}`)))}wM.checkMissingProp=aj;function uj(e,t){e.setParams({missingProperty:t},!0),e.error()}wM.reportMissingProp=uj;function bM(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:Bt._`Object.prototype.hasOwnProperty`})}wM.hasPropFunc=bM;function qb(e,t,r){return Bt._`${bM(e)}.call(${t}, ${r})`}wM.isOwnProperty=qb;function lj(e,t,r,i){let n=Bt._`${t}${(0,Bt.getProperty)(r)} !== undefined`;return i?Bt._`${n} && ${qb(e,t,r)}`:n}wM.propertyInData=lj;function Bb(e,t,r,i){let n=Bt._`${t}${(0,Bt.getProperty)(r)} === undefined`;return i?(0,Bt.or)(n,(0,Bt.not)(qb(e,t,r))):n}wM.noPropertyInData=Bb;function _M(e){return e?Object.keys(e).filter((t)=>t!=="__proto__"):[]}wM.allSchemaProperties=_M;function cj(e,t){return _M(t).filter((r)=>!(0,Fb.alwaysValidSchema)(e,t[r]))}wM.schemaProperties=cj;function dj({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:n,errorPath:o},it:s},h,v,b){let _=b?Bt._`${e}, ${t}, ${i}${n}`:t,g=[[oo.default.instancePath,(0,Bt.strConcat)(oo.default.instancePath,o)],[oo.default.parentData,s.parentData],[oo.default.parentDataProperty,s.parentDataProperty],[oo.default.rootData,oo.default.rootData]];if(s.opts.dynamicRef)g.push([oo.default.dynamicAnchors,oo.default.dynamicAnchors]);let S=Bt._`${_}, ${r.object(...g)}`;return v!==Bt.nil?Bt._`${h}.call(${v}, ${S})`:Bt._`${h}(${S})`}wM.callValidateCode=dj;var fj=Bt._`new RegExp`;function hj({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:n}=t.code,o=n(r,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:Bt._`${n.code==="new RegExp"?fj:(0,oj.useFunc)(e,n)}(${r}, ${i})`})}wM.usePattern=hj;function pj(e){let{gen:t,data:r,keyword:i,it:n}=e,o=t.name("valid");if(n.allErrors){let h=t.let("valid",!0);return s(()=>t.assign(h,!1)),h}return t.var(o,!0),s(()=>t.break()),o;function s(h){let v=t.const("len",Bt._`${r}.length`);t.forRange("i",0,v,(b)=>{e.subschema({keyword:i,dataProp:b,dataPropType:Fb.Type.Num},o),t.if((0,Bt.not)(o),h)})}}wM.validateArray=pj;function mj(e){let{gen:t,schema:r,keyword:i,it:n}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(r.some((v)=>(0,Fb.alwaysValidSchema)(n,v))&&!n.opts.unevaluated)return;let s=t.let("valid",!1),h=t.name("_valid");t.block(()=>r.forEach((v,b)=>{let _=e.subschema({keyword:i,schemaProp:b,compositeRule:!0},h);if(t.assign(s,Bt._`${s} || ${h}`),!e.mergeValidEvaluated(_,h))t.if((0,Bt.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}wM.validateUnion=mj});var IM=Xe(function(MM){Object.defineProperty(MM,"__esModule",{value:!0});MM.validateKeywordUsage=MM.validSchemaType=MM.funcKeywordCode=MM.macroKeywordCode=void 0;var Xr=mt(),Vo=Ii(),Tj=Rn(),Pj=ac();function $j(e,t){let{gen:r,keyword:i,schema:n,parentSchema:o,it:s}=e,h=t.macro.call(s.self,n,o,s),v=kM(r,i,h);if(s.opts.validateSchema!==!1)s.self.validateSchema(h,!0);let b=r.name("valid");e.subschema({schema:h,schemaPath:Xr.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:v,compositeRule:!0},b),e.pass(b,()=>e.error(!0))}MM.macroKeywordCode=$j;function Aj(e,t){var r;let{gen:i,keyword:n,schema:o,parentSchema:s,$data:h,it:v}=e;Cj(v,t);let b=!h&&t.compile?t.compile.call(v.self,o,s,v):t.validate,_=kM(i,n,b),g=i.let("valid");e.block$data(g,S),e.ok((r=t.valid)!==null&&r!==void 0?r:g);function S(){if(t.errors===!1){if(I(),t.modifying)xM(e);T(()=>e.error())}else{let P=t.async?x():M();if(t.modifying)xM(e);T(()=>Rj(e,P))}}function x(){let P=i.let("ruleErrs",null);return i.try(()=>I(Xr._`await `),($)=>i.assign(g,!1).if(Xr._`${$} instanceof ${v.ValidationError}`,()=>i.assign(P,Xr._`${$}.errors`),()=>i.throw($))),P}function M(){let P=Xr._`${_}.errors`;return i.assign(P,null),I(Xr.nil),P}function I(P=t.async?Xr._`await `:Xr.nil){let $=v.opts.passContext?Vo.default.this:Vo.default.self,R=!(("compile"in t)&&!h||t.schema===!1);i.assign(g,Xr._`${P}${(0,Tj.callValidateCode)(e,_,$,R)}`,t.modifying)}function T(P){var $;i.if((0,Xr.not)(($=t.valid)!==null&&$!==void 0?$:g),P)}}MM.funcKeywordCode=Aj;function xM(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,Xr._`${i.parentData}[${i.parentDataProperty}]`))}function Rj(e,t){let{gen:r}=e;r.if(Xr._`Array.isArray(${t})`,()=>{r.assign(Vo.default.vErrors,Xr._`${Vo.default.vErrors} === null ? ${t} : ${Vo.default.vErrors}.concat(${t})`).assign(Vo.default.errors,Xr._`${Vo.default.vErrors}.length`),(0,Pj.extendErrors)(e)},()=>e.error())}function Cj({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}function kM(e,t,r){if(r===void 0)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Xr.stringify)(r)})}function Oj(e,t,r=!1){return!t.length||t.some((i)=>i==="array"?Array.isArray(e):i==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==i||r&&typeof e>"u")}MM.validSchemaType=Oj;function Dj({schema:e,opts:t,self:r,errSchemaPath:i},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw Error("ajv implementation error");let s=n.dependencies;if(s===null||s===void 0?void 0:s.some((h)=>!Object.prototype.hasOwnProperty.call(e,h)))throw Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(n.validateSchema){if(!n.validateSchema(e[o])){let v=`keyword "${o}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(v);else throw Error(v)}}}MM.validateKeywordUsage=Dj});var AM=Xe(function(PM){Object.defineProperty(PM,"__esModule",{value:!0});PM.extendSubschemaMode=PM.extendSubschemaData=PM.getSubschema=void 0;var ti=mt(),TM=Mt();function Uj(e,{keyword:t,schemaProp:r,schema:i,schemaPath:n,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&i!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let h=e.schema[t];return r===void 0?{schema:h,schemaPath:ti._`${e.schemaPath}${(0,ti.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:h[r],schemaPath:ti._`${e.schemaPath}${(0,ti.getProperty)(t)}${(0,ti.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,TM.escapeFragment)(r)}`}}if(i!==void 0){if(n===void 0||o===void 0||s===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:n,topSchemaRef:s,errSchemaPath:o}}throw Error('either "keyword" or "schema" must be passed')}PM.getSubschema=Uj;function Lj(e,t,{dataProp:r,dataPropType:i,data:n,dataTypes:o,propertyName:s}){if(n!==void 0&&r!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:h}=t;if(r!==void 0){let{errorPath:b,dataPathArr:_,opts:g}=t,S=h.let("data",ti._`${t.data}${(0,ti.getProperty)(r)}`,!0);v(S),e.errorPath=ti.str`${b}${(0,TM.getErrorPath)(r,i,g.jsPropertySyntax)}`,e.parentDataProperty=ti._`${r}`,e.dataPathArr=[..._,e.parentDataProperty]}if(n!==void 0){let b=n instanceof ti.Name?n:h.let("data",n,!0);if(v(b),s!==void 0)e.propertyName=s}if(o)e.dataTypes=o;function v(b){e.data=b,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,b]}}PM.extendSubschemaData=Lj;function Fj(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:o}){if(i!==void 0)e.compositeRule=i;if(n!==void 0)e.createErrors=n;if(o!==void 0)e.allErrors=o;e.jtdDiscriminator=t,e.jtdMetadata=r}PM.extendSubschemaMode=Fj});var Hb=Xe(function(Lbe,RM){RM.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,n,o;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),i=o.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;n--!==0;){var s=o[n];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var OM=Xe(function(Fbe,CM){var so=CM.exports=function(e,t,r){if(typeof t=="function")r=t,t={};r=t.cb||r;var i=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Ap(t,i,n,e,"",e)};so.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};so.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};so.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};so.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 Ap(e,t,r,i,n,o,s,h,v,b){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,o,s,h,v,b);for(var _ in i){var g=i[_];if(Array.isArray(g)){if(_ in so.arrayKeywords)for(var S=0;S<g.length;S++)Ap(e,t,r,g[S],n+"/"+_+"/"+S,o,n,_,i,S)}else if(_ in so.propsKeywords){if(g&&typeof g=="object")for(var x in g)Ap(e,t,r,g[x],n+"/"+_+"/"+Hj(x),o,n,_,i,x)}else if(_ in so.keywords||e.allKeys&&!(_ in so.skipKeywords))Ap(e,t,r,g,n+"/"+_,o,n,_,i)}r(i,n,o,s,h,v,b)}}function Hj(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var lc=Xe(function(jM){Object.defineProperty(jM,"__esModule",{value:!0});jM.getSchemaRefs=jM.resolveUrl=jM.normalizeId=jM._getFullPath=jM.getFullPath=jM.inlineRef=void 0;var Zj=Mt(),Kj=Hb(),Vj=OM(),Wj=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Gj(e,t=!0){if(typeof e=="boolean")return!0;if(t===!0)return!Zb(e);if(!t)return!1;return DM(e)<=t}jM.inlineRef=Gj;var Jj=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Zb(e){for(let t in e){if(Jj.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Zb))return!0;if(typeof r=="object"&&Zb(r))return!0}return!1}function DM(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,Wj.has(r))continue;if(typeof e[r]=="object")(0,Zj.eachItem)(e[r],(i)=>t+=DM(i));if(t===1/0)return 1/0}return t}function NM(e,t="",r){if(r!==!1)t=aa(t);let i=e.parse(t);return zM(e,i)}jM.getFullPath=NM;function zM(e,t){return e.serialize(t).split("#")[0]+"#"}jM._getFullPath=zM;var Xj=/#\/?$/;function aa(e){return e?e.replace(Xj,""):""}jM.normalizeId=aa;function Yj(e,t,r){return r=aa(r),e.resolve(t,r)}jM.resolveUrl=Yj;var Qj=/^[a-z_][-a-z0-9._]*$/i;function eU(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:i}=this.opts,n=aa(e[r]||t),o={"":n},s=NM(i,n,!1),h={},v=new Set;return Vj(e,{allKeys:!0},(g,S,x,M)=>{if(M===void 0)return;let I=s+S,T=o[M];if(typeof g[r]=="string")T=P.call(this,g[r]);$.call(this,g.$anchor),$.call(this,g.$dynamicAnchor),o[S]=T;function P(R){let C=this.opts.uriResolver.resolve;if(R=aa(T?C(T,R):R),v.has(R))throw _(R);v.add(R);let N=this.refs[R];if(typeof N=="string")N=this.refs[N];if(typeof N=="object")b(g,N.schema,R);else if(R!==aa(I))if(R[0]==="#")b(g,h[R],R),h[R]=g;else this.refs[R]=I;return R}function $(R){if(typeof R=="string"){if(!Qj.test(R))throw Error(`invalid anchor "${R}"`);P.call(this,`#${R}`)}}}),h;function b(g,S,x){if(S!==void 0&&!Kj(g,S))throw _(x)}function _(g){return Error(`reference "${g}" resolves to more than one schema`)}}jM.getSchemaRefs=eU});var fc=Xe(function(e4){Object.defineProperty(e4,"__esModule",{value:!0});e4.getData=e4.KeywordCxt=e4.validateFunctionCode=void 0;var HM=nM(),LM=uc(),Vb=zb(),Rp=uc(),sU=vM(),dc=IM(),Kb=AM(),nt=mt(),ct=Ii(),aU=lc(),Ti=Mt(),cc=ac();function uU(e){if(VM(e)){if(WM(e),KM(e)){dU(e);return}}ZM(e,()=>(0,HM.topBoolOrEmptySchema)(e))}e4.validateFunctionCode=uU;function ZM({gen:e,validateName:t,schema:r,schemaEnv:i,opts:n},o){if(n.code.es5)e.func(t,nt._`${ct.default.data}, ${ct.default.valCxt}`,i.$async,()=>{e.code(nt._`"use strict"; ${FM(r,n)}`),cU(e,n),e.code(o)});else e.func(t,nt._`${ct.default.data}, ${lU(n)}`,i.$async,()=>e.code(FM(r,n)).code(o))}function lU(e){return nt._`{${ct.default.instancePath}="", ${ct.default.parentData}, ${ct.default.parentDataProperty}, ${ct.default.rootData}=${ct.default.data}${e.dynamicRef?nt._`, ${ct.default.dynamicAnchors}={}`:nt.nil}}={}`}function cU(e,t){e.if(ct.default.valCxt,()=>{if(e.var(ct.default.instancePath,nt._`${ct.default.valCxt}.${ct.default.instancePath}`),e.var(ct.default.parentData,nt._`${ct.default.valCxt}.${ct.default.parentData}`),e.var(ct.default.parentDataProperty,nt._`${ct.default.valCxt}.${ct.default.parentDataProperty}`),e.var(ct.default.rootData,nt._`${ct.default.valCxt}.${ct.default.rootData}`),t.dynamicRef)e.var(ct.default.dynamicAnchors,nt._`${ct.default.valCxt}.${ct.default.dynamicAnchors}`)},()=>{if(e.var(ct.default.instancePath,nt._`""`),e.var(ct.default.parentData,nt._`undefined`),e.var(ct.default.parentDataProperty,nt._`undefined`),e.var(ct.default.rootData,ct.default.data),t.dynamicRef)e.var(ct.default.dynamicAnchors,nt._`{}`)})}function dU(e){let{schema:t,opts:r,gen:i}=e;ZM(e,()=>{if(r.$comment&&t.$comment)JM(e);if(gU(e),i.let(ct.default.vErrors,null),i.let(ct.default.errors,0),r.unevaluated)fU(e);GM(e),bU(e)});return}function fU(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",nt._`${r}.evaluated`),t.if(nt._`${e.evaluated}.dynamicProps`,()=>t.assign(nt._`${e.evaluated}.props`,nt._`undefined`)),t.if(nt._`${e.evaluated}.dynamicItems`,()=>t.assign(nt._`${e.evaluated}.items`,nt._`undefined`))}function FM(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?nt._`/*# sourceURL=${r} */`:nt.nil}function hU(e,t){if(VM(e)){if(WM(e),KM(e)){pU(e,t);return}}(0,HM.boolOrEmptySchema)(e,t)}function KM({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function VM(e){return typeof e.schema!="boolean"}function pU(e,t){let{schema:r,gen:i,opts:n}=e;if(n.$comment&&r.$comment)JM(e);yU(e),vU(e);let o=i.const("_errs",ct.default.errors);GM(e,o),i.var(t,nt._`${o} === ${ct.default.errors}`)}function WM(e){(0,Ti.checkUnknownRules)(e),mU(e)}function GM(e,t){if(e.opts.jtd)return qM(e,[],!1,t);let r=(0,LM.getSchemaTypes)(e.schema),i=(0,LM.coerceAndCheckDataType)(e,r);qM(e,r,!i,t)}function mU(e){let{schema:t,errSchemaPath:r,opts:i,self:n}=e;if(t.$ref&&i.ignoreKeywordsWithRef&&(0,Ti.schemaHasRulesButRef)(t,n.RULES))n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function gU(e){let{schema:t,opts:r}=e;if(t.default!==void 0&&r.useDefaults&&r.strictSchema)(0,Ti.checkStrictMode)(e,"default is ignored in the schema root")}function yU(e){let t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,aU.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function vU(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}function JM({gen:e,schemaEnv:t,schema:r,errSchemaPath:i,opts:n}){let o=r.$comment;if(n.$comment===!0)e.code(nt._`${ct.default.self}.logger.log(${o})`);else if(typeof n.$comment=="function"){let s=nt.str`${i}/$comment`,h=e.scopeValue("root",{ref:t.root});e.code(nt._`${ct.default.self}.opts.$comment(${o}, ${s}, ${h}.schema)`)}}function bU(e){let{gen:t,schemaEnv:r,validateName:i,ValidationError:n,opts:o}=e;if(r.$async)t.if(nt._`${ct.default.errors} === 0`,()=>t.return(ct.default.data),()=>t.throw(nt._`new ${n}(${ct.default.vErrors})`));else{if(t.assign(nt._`${i}.errors`,ct.default.vErrors),o.unevaluated)_U(e);t.return(nt._`${ct.default.errors} === 0`)}}function _U({gen:e,evaluated:t,props:r,items:i}){if(r instanceof nt.Name)e.assign(nt._`${t}.props`,r);if(i instanceof nt.Name)e.assign(nt._`${t}.items`,i)}function qM(e,t,r,i){let{gen:n,schema:o,data:s,allErrors:h,opts:v,self:b}=e,{RULES:_}=b;if(o.$ref&&(v.ignoreKeywordsWithRef||!(0,Ti.schemaHasRulesButRef)(o,_))){n.block(()=>YM(e,"$ref",_.all.$ref.definition));return}if(!v.jtd)wU(e,t);n.block(()=>{for(let S of _.rules)g(S);g(_.post)});function g(S){if(!(0,Vb.shouldUseGroup)(o,S))return;if(S.type){if(n.if((0,Rp.checkDataType)(S.type,s,v.strictNumbers)),BM(e,S),t.length===1&&t[0]===S.type&&r)n.else(),(0,Rp.reportTypeError)(e);n.endIf()}else BM(e,S);if(!h)n.if(nt._`${ct.default.errors} === ${i||0}`)}}function BM(e,t){let{gen:r,schema:i,opts:{useDefaults:n}}=e;if(n)(0,sU.assignDefaults)(e,t.type);r.block(()=>{for(let o of t.rules)if((0,Vb.shouldUseRule)(i,o))YM(e,o.keyword,o.definition,t.type)})}function wU(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;if(SU(e,t),!e.opts.allowUnionTypes)xU(e,t);kU(e,e.dataTypes)}function SU(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((r)=>{if(!XM(e.dataTypes,r))Wb(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),EU(e,t)}function xU(e,t){if(t.length>1&&!(t.length===2&&t.includes("null")))Wb(e,"use allowUnionTypes to allow union type keyword")}function kU(e,t){let r=e.self.RULES.all;for(let i in r){let n=r[i];if(typeof n=="object"&&(0,Vb.shouldUseRule)(e.schema,n)){let{type:o}=n.definition;if(o.length&&!o.some((s)=>MU(t,s)))Wb(e,`missing type "${o.join(",")}" for keyword "${i}"`)}}}function MU(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function XM(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function EU(e,t){let r=[];for(let i of e.dataTypes)if(XM(t,i))r.push(i);else if(t.includes("integer")&&i==="number")r.push("integer");e.dataTypes=r}function Wb(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ti.checkStrictMode)(e,t,e.opts.strictTypes)}class Gb{constructor(e,t,r){if((0,dc.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ti.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",QM(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,dc.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);if("code"in t?t.trackErrors:t.errors!==!1)this.errsCount=e.gen.const("_errs",ct.default.errors)}result(e,t,r){this.failResult((0,nt.not)(e),t,r)}failResult(e,t,r){if(this.gen.if(e),r)r();else this.error();if(t){if(this.gen.else(),t(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(e,t){this.failResult((0,nt.not)(e),void 0,t)}fail(e){if(e===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(e),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail(nt._`${t} !== undefined && (${(0,nt.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,t){(e?cc.reportExtraError:cc.reportError)(this,this.def.error,t)}$dataError(){(0,cc.reportError)(this,this.def.$dataError||cc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,cc.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=nt.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=nt.nil,t=nt.nil){if(!this.$data)return;let{gen:r,schemaCode:i,schemaType:n,def:o}=this;if(r.if((0,nt.or)(nt._`${i} === undefined`,t)),e!==nt.nil)r.assign(e,!0);if(n.length||o.validateSchema){if(r.elseIf(this.invalid$data()),this.$dataError(),e!==nt.nil)r.assign(e,!1)}r.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:r,def:i,it:n}=this;return(0,nt.or)(o(),s());function o(){if(r.length){if(!(t instanceof nt.Name))throw Error("ajv implementation error");let h=Array.isArray(r)?r:[r];return nt._`${(0,Rp.checkDataTypes)(h,t,n.opts.strictNumbers,Rp.DataType.Wrong)}`}return nt.nil}function s(){if(i.validateSchema){let h=e.scopeValue("validate$data",{ref:i.validateSchema});return nt._`!${h}(${t})`}return nt.nil}}subschema(e,t){let r=(0,Kb.getSubschema)(this.it,e);(0,Kb.extendSubschemaData)(r,this.it,e),(0,Kb.extendSubschemaMode)(r,e);let i={...this.it,...r,items:void 0,props:void 0};return hU(i,t),i}mergeEvaluated(e,t){let{it:r,gen:i}=this;if(!r.opts.unevaluated)return;if(r.props!==!0&&e.props!==void 0)r.props=Ti.mergeEvaluated.props(i,e.props,r.props,t);if(r.items!==!0&&e.items!==void 0)r.items=Ti.mergeEvaluated.items(i,e.items,r.items,t)}mergeValidEvaluated(e,t){let{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(t,()=>this.mergeEvaluated(e,nt.Name)),!0}}e4.KeywordCxt=Gb;function YM(e,t,r,i){let n=new Gb(e,r,t);if("code"in r)r.code(n,i);else if(n.$data&&r.validate)(0,dc.funcKeywordCode)(n,r);else if("macro"in r)(0,dc.macroKeywordCode)(n,r);else if(r.compile||r.validate)(0,dc.funcKeywordCode)(n,r)}var IU=/^\/(?:[^~]|~0|~1)*$/,TU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function QM(e,{dataLevel:t,dataNames:r,dataPathArr:i}){let n,o;if(e==="")return ct.default.rootData;if(e[0]==="/"){if(!IU.test(e))throw Error(`Invalid JSON-pointer: ${e}`);n=e,o=ct.default.rootData}else{let b=TU.exec(e);if(!b)throw Error(`Invalid JSON-pointer: ${e}`);let _=+b[1];if(n=b[2],n==="#"){if(_>=t)throw Error(v("property/index",_));return i[t-_]}if(_>t)throw Error(v("data",_));if(o=r[t-_],!n)return o}let s=o,h=n.split("/");for(let b of h)if(b)o=nt._`${o}${(0,nt.getProperty)((0,Ti.unescapeJsonPointer)(b))}`,s=nt._`${s} && ${o}`;return s;function v(b,_){return`Cannot access ${b} ${_} levels up, current level is ${t}`}}e4.getData=QM});var Cp=Xe(function(n4){Object.defineProperty(n4,"__esModule",{value:!0});class r4 extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}}n4.default=r4});var hc=Xe(function(o4){Object.defineProperty(o4,"__esModule",{value:!0});var Jb=lc();class i4 extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`);this.missingRef=(0,Jb.resolveUrl)(e,t,r),this.missingSchema=(0,Jb.normalizeId)((0,Jb.getFullPath)(e,this.missingRef))}}o4.default=i4});var Dp=Xe(function(u4){Object.defineProperty(u4,"__esModule",{value:!0});u4.resolveSchema=u4.getCompilingSchema=u4.resolveRef=u4.compileSchema=u4.SchemaEnv=void 0;var Zn=mt(),CU=Cp(),Wo=Ii(),Kn=lc(),s4=Mt(),OU=fc();class pc{constructor(e){var t;this.refs={},this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,Kn.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=r===null||r===void 0?void 0:r.$async,this.refs={}}}u4.SchemaEnv=pc;function Yb(e){let t=a4.call(this,e);if(t)return t;let r=(0,Kn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:n}=this.opts.code,{ownProperties:o}=this.opts,s=new Zn.CodeGen(this.scope,{es5:i,lines:n,ownProperties:o}),h;if(e.$async)h=s.scopeValue("Error",{ref:CU.default,code:Zn._`require("ajv/dist/runtime/validation_error").default`});let v=s.scopeName("validate");e.validateName=v;let b={gen:s,allErrors:this.opts.allErrors,data:Wo.default.data,parentData:Wo.default.parentData,parentDataProperty:Wo.default.parentDataProperty,dataNames:[Wo.default.data],dataPathArr:[Zn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Zn.stringify)(e.schema)}:{ref:e.schema}),validateName:v,ValidationError:h,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Zn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:Zn._`""`,opts:this.opts,self:this},_;try{this._compilations.add(e),(0,OU.validateFunctionCode)(b),s.optimize(this.opts.code.optimize);let g=s.toString();if(_=`${s.scopeRefs(Wo.default.scope)}return ${g}`,this.opts.code.process)_=this.opts.code.process(_,e);let x=Function(`${Wo.default.self}`,`${Wo.default.scope}`,_)(this,this.scope.get());if(this.scope.value(v,{ref:x}),x.errors=null,x.schema=e.schema,x.schemaEnv=e,e.$async)x.$async=!0;if(this.opts.code.source===!0)x.source={validateName:v,validateCode:g,scopeValues:s._values};if(this.opts.unevaluated){let{props:M,items:I}=b;if(x.evaluated={props:M instanceof Zn.Name?void 0:M,items:I instanceof Zn.Name?void 0:I,dynamicProps:M instanceof Zn.Name,dynamicItems:I instanceof Zn.Name},x.source)x.source.evaluated=(0,Zn.stringify)(x.evaluated)}return e.validate=x,e}catch(g){if(delete e.validate,delete e.validateName,_)this.logger.error("Error compiling schema, function code:",_);throw g}finally{this._compilations.delete(e)}}u4.compileSchema=Yb;function DU(e,t,r){var i;r=(0,Kn.resolveUrl)(this.opts.uriResolver,t,r);let n=e.refs[r];if(n)return n;let o=jU.call(this,e,r);if(o===void 0){let s=(i=e.localRefs)===null||i===void 0?void 0:i[r],{schemaId:h}=this.opts;if(s)o=new pc({schema:s,schemaId:h,root:e,baseId:t})}if(o===void 0)return;return e.refs[r]=NU.call(this,o)}u4.resolveRef=DU;function NU(e){if((0,Kn.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:Yb.call(this,e)}function a4(e){for(let t of this._compilations)if(zU(t,e))return t}u4.getCompilingSchema=a4;function zU(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function jU(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||Op.call(this,e,t)}function Op(e,t){let r=this.opts.uriResolver.parse(t),i=(0,Kn._getFullPath)(this.opts.uriResolver,r),n=(0,Kn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===n)return Xb.call(this,r,e);let o=(0,Kn.normalizeId)(i),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let h=Op.call(this,e,s);if(typeof(h===null||h===void 0?void 0:h.schema)!=="object")return;return Xb.call(this,r,h)}if(typeof(s===null||s===void 0?void 0:s.schema)!=="object")return;if(!s.validate)Yb.call(this,s);if(o===(0,Kn.normalizeId)(t)){let{schema:h}=s,{schemaId:v}=this.opts,b=h[v];if(b)n=(0,Kn.resolveUrl)(this.opts.uriResolver,n,b);return new pc({schema:h,schemaId:v,root:e,baseId:n})}return Xb.call(this,r,s)}u4.resolveSchema=Op;var UU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Xb(e,{baseId:t,schema:r,root:i}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let h of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;let v=r[(0,s4.unescapeFragment)(h)];if(v===void 0)return;r=v;let b=typeof r==="object"&&r[this.opts.schemaId];if(!UU.has(h)&&b)t=(0,Kn.resolveUrl)(this.opts.uriResolver,t,b)}let o;if(typeof r!="boolean"&&r.$ref&&!(0,s4.schemaHasRulesButRef)(r,this.RULES)){let h=(0,Kn.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Op.call(this,i,h)}let{schemaId:s}=this.opts;if(o=o||new pc({schema:r,schemaId:s,root:i,baseId:t}),o.schema!==o.root.schema)return o;return}});var c4=Xe(function(Vbe,HU){HU.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 t_=Xe(function(Wbe,g4){var ZU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),f4=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),Qb=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),h4=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),KU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function e_(e){let t="",r=0,i=0;for(i=0;i<e.length;i++){if(r=e[i].charCodeAt(0),r===48)continue;if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i];break}for(i+=1;i<e.length;i++){if(r=e[i].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i]}return t}var VU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function d4(e){return e.length=0,!0}function WU(e,t,r){if(e.length){let i=e_(e);if(i!=="")t.push(i);else return r.error=!0,!1;e.length=0}return!0}function GU(e){let t=0,r={error:!1,address:"",zone:""},i=[],n=[],o=!1,s=!1,h=WU;for(let v=0;v<e.length;v++){let b=e[v];if(b==="["||b==="]")continue;if(b===":"){if(o===!0)s=!0;if(!h(n,i,r))break;if(++t>7){r.error=!0;break}if(v>0&&e[v-1]===":")o=!0;i.push(":");continue}else if(b==="%"){if(!h(n,i,r))break;h=d4}else{n.push(b);continue}}if(n.length)if(h===d4)r.zone=n.join("");else if(s)i.push(n.join(""));else i.push(e_(n));return r.address=i.join(""),r}function p4(e){if(JU(e,":")<2)return{host:e,isIPV6:!1};let t=GU(e);if(!t.error){let{address:r,address:i}=t;if(t.zone)r+="%"+t.zone,i+="%25"+t.zone;return{host:r,isIPV6:!0,escapedHost:i}}else return{host:e,isIPV6:!1}}function JU(e,t){let r=0;for(let i=0;i<e.length;i++)if(e[i]===t)r++;return r}function XU(e){let t=e,r=[],i=-1,n=0;while(n=t.length){if(n===1)if(t===".")break;else if(t==="/"){r.push("/");break}else{r.push(t);break}else if(n===2){if(t[0]==="."){if(t[1]===".")break;else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"){if(t[1]==="."||t[1]==="/"){r.push("/");break}}}else if(n===3){if(t==="/.."){if(r.length!==0)r.pop();r.push("/");break}}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"){if(t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."){if(t[3]==="/"){if(t=t.slice(3),r.length!==0)r.pop();continue}}}}if((i=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,i)),t=t.slice(i)}return r.join("")}var YU={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},QU=/[@/?#:]/g,eL=/[@/?#]/g;function m4(e,t){let r=t?eL:QU;return r.lastIndex=0,e.replace(r,(i)=>YU[i])}function tL(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let i=0;i<e.length;i++){if(e[i]==="%"&&i+2<e.length){let n=e.slice(i+1,i+3);if(Qb(n)){let o=n.toUpperCase(),s=String.fromCharCode(parseInt(o,16));if(t&&h4(s))r+=s;else r+="%"+o;i+=2;continue}}r+=e[i]}return r}function rL(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let i=e.slice(r+1,r+3);if(Qb(i)){let n=i.toUpperCase(),o=String.fromCharCode(parseInt(n,16));if(o!=="."&&h4(o))t+=o;else t+="%"+n;r+=2;continue}}if(KU(e[r]))t+=e[r];else t+=escape(e[r])}return t}function nL(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let i=e.slice(r+1,r+3);if(Qb(i)){t+="%"+i.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function iL(e){let t=[];if(e.userinfo!==void 0)t.push(e.userinfo),t.push("@");if(e.host!==void 0){let r=unescape(e.host);if(!f4(r)){let i=p4(r);if(i.isIPV6===!0)r=`[${i.escapedHost}]`;else r=m4(r,!1)}t.push(r)}if(typeof e.port==="number"||typeof e.port==="string")t.push(":"),t.push(String(e.port));return t.length?t.join(""):void 0}g4.exports={nonSimpleDomain:VU,recomposeAuthority:iL,reescapeHostDelimiters:m4,normalizePercentEncoding:tL,normalizePathEncoding:rL,escapePreservingEscapes:nL,removeDotSegments:XU,isIPv4:f4,isUUID:ZU,normalizeIPv6:p4,stringArrayToHexStripped:e_}});var w4=Xe(function(Gbe,_4){var{isUUID:oL}=t_(),sL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,aL=["http","https","ws","wss","urn","urn:uuid"];function uL(e){return aL.indexOf(e)!==-1}function r_(e){if(e.secure===!0)return!0;else if(e.secure===!1)return!1;else if(e.scheme)return e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S");else return!1}function y4(e){if(!e.host)e.error=e.error||"HTTP URIs must have a host.";return e}function v4(e){let t=String(e.scheme).toLowerCase()==="https";if(e.port===(t?443:80)||e.port==="")e.port=void 0;if(!e.path)e.path="/";return e}function lL(e){return e.secure=r_(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function cL(e){if(e.port===(r_(e)?443:80)||e.port==="")e.port=void 0;if(typeof e.secure==="boolean")e.scheme=e.secure?"wss":"ws",e.secure=void 0;if(e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function dL(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(sL);if(r){let i=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${i}:${t.nid||e.nid}`,o=n_(n);if(e.path=void 0,o)e=o.parse(e,t)}else e.error=e.error||"URN can not be parsed.";return e}function fL(e,t){if(e.nid===void 0)throw Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",i=e.nid.toLowerCase(),n=`${r}:${t.nid||i}`,o=n_(n);if(o)e=o.serialize(e,t);let s=e,h=e.nss;return s.path=`${i||t.nid}:${h}`,t.skipEscape=!0,s}function hL(e,t){let r=e;if(r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!oL(r.uuid)))r.error=r.error||"UUID is not valid.";return r}function pL(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var b4={scheme:"http",domainHost:!0,parse:y4,serialize:v4},mL={scheme:"https",domainHost:b4.domainHost,parse:y4,serialize:v4},Np={scheme:"ws",domainHost:!0,parse:lL,serialize:cL},gL={scheme:"wss",domainHost:Np.domainHost,parse:Np.parse,serialize:Np.serialize},yL={scheme:"urn",parse:dL,serialize:fL,skipNormalize:!0},vL={scheme:"urn:uuid",parse:hL,serialize:pL,skipNormalize:!0},zp={http:b4,https:mL,ws:Np,wss:gL,urn:yL,"urn:uuid":vL};Object.setPrototypeOf(zp,null);function n_(e){return e&&(zp[e]||zp[e.toLowerCase()])||void 0}_4.exports={wsIsSecure:r_,SCHEMES:zp,isValidSchemeName:uL,getSchemeHandler:n_}});var I4=Xe(function(Jbe,jp){var{normalizeIPv6:bL,removeDotSegments:mc,recomposeAuthority:_L,normalizePercentEncoding:wL,normalizePathEncoding:SL,escapePreservingEscapes:xL,reescapeHostDelimiters:kL,isIPv4:ML,nonSimpleDomain:EL}=t_(),{SCHEMES:IL,getSchemeHandler:x4}=w4();function TL(e,t){if(typeof e==="string")e=CL(e,t);else if(typeof e==="object")e=ua(Go(e,t),t);return e}function PL(e,t,r){let i=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=k4(ua(e,i),ua(t,i),i,!0);return i.skipEscape=!0,Go(n,i)}function k4(e,t,r,i){let n={};if(!i)e=ua(Go(e,r),r),t=ua(Go(t,r),r);if(r=r||{},!r.tolerant&&t.scheme)n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=mc(t.path||""),n.query=t.query;else{if(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=mc(t.path||""),n.query=t.query;else{if(!t.path)if(n.path=e.path,t.query!==void 0)n.query=t.query;else n.query=e.query;else{if(t.path[0]==="/")n.path=mc(t.path);else{if((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path)n.path="/"+t.path;else if(!e.path)n.path=t.path;else n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path;n.path=mc(n.path)}n.query=t.query}n.userinfo=e.userinfo,n.host=e.host,n.port=e.port}n.scheme=e.scheme}return n.fragment=t.fragment,n}function $L(e,t,r){let i=S4(e,r),n=S4(t,r);return i!==void 0&&n!==void 0&&i.toLowerCase()===n.toLowerCase()}function Go(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),n=[],o=x4(i.scheme||r.scheme);if(o&&o.serialize)o.serialize(r,i);if(r.path!==void 0)if(!i.skipEscape){if(r.path=xL(r.path),r.scheme!==void 0)r.path=r.path.split("%3A").join(":")}else r.path=wL(r.path);if(i.reference!=="suffix"&&r.scheme)n.push(r.scheme,":");let s=_L(r);if(s!==void 0){if(i.reference!=="suffix")n.push("//");if(n.push(s),r.path&&r.path[0]!=="/")n.push("/")}if(r.path!==void 0){let h=r.path;if(!i.absolutePath&&(!o||!o.absolutePath))h=mc(h);if(s===void 0&&h[0]==="/"&&h[1]==="/")h="/%2F"+h.slice(2);n.push(h)}if(r.query!==void 0)n.push("?",r.query);if(r.fragment!==void 0)n.push("#",r.fragment);return n.join("")}var AL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function RL(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port==="number"&&(e.port<0||e.port>65535))return"URI port is malformed.";return}function M4(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1,o=!1;if(r.reference==="suffix")if(r.scheme)e=r.scheme+":"+e;else e="//"+e;let s=e.match(AL);if(s){if(i.scheme=s[1],i.userinfo=s[3],i.host=s[4],i.port=parseInt(s[5],10),i.path=s[6]||"",i.query=s[7],i.fragment=s[8],isNaN(i.port))i.port=s[5];let h=RL(i,s);if(h!==void 0)i.error=i.error||h,n=!0;if(i.host)if(ML(i.host)===!1){let _=bL(i.host);i.host=_.host.toLowerCase(),o=_.isIPV6}else o=!0;if(i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path)i.reference="same-document";else if(i.scheme===void 0)i.reference="relative";else if(i.fragment===void 0)i.reference="absolute";else i.reference="uri";if(r.reference&&r.reference!=="suffix"&&r.reference!==i.reference)i.error=i.error||"URI is not a "+r.reference+" reference.";let v=x4(r.scheme||i.scheme);if(!r.unicodeSupport&&(!v||!v.unicodeSupport)){if(i.host&&(r.domainHost||v&&v.domainHost)&&o===!1&&EL(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(b){i.error=i.error||"Host's domain name can not be converted to ASCII: "+b}}if(!v||v&&!v.skipNormalize){if(e.indexOf("%")!==-1){if(i.scheme!==void 0)i.scheme=unescape(i.scheme);if(i.host!==void 0)i.host=kL(unescape(i.host),o)}if(i.path)i.path=SL(i.path);if(i.fragment)try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||"URI malformed"}}if(v&&v.parse)v.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:n}}function ua(e,t){return M4(e,t).parsed}function CL(e,t){return E4(e,t).normalized}function E4(e,t){let{parsed:r,malformedAuthorityOrPort:i}=M4(e,t);return{normalized:i?e:Go(r,t),malformedAuthorityOrPort:i}}function S4(e,t){if(typeof e==="string"){let{normalized:r,malformedAuthorityOrPort:i}=E4(e,t);return i?void 0:r}if(typeof e==="object")return Go(e,t)}var i_={SCHEMES:IL,normalize:TL,resolve:PL,resolveComponent:k4,equal:$L,serialize:Go,parse:ua};jp.exports=i_;jp.exports.default=i_;jp.exports.fastUri=i_});var $4=Xe(function(P4){Object.defineProperty(P4,"__esModule",{value:!0});var T4=I4();T4.code='require("ajv/dist/runtime/uri").default';P4.default=T4});var j4=Xe(function(Pi){Object.defineProperty(Pi,"__esModule",{value:!0});Pi.CodeGen=Pi.Name=Pi.nil=Pi.stringify=Pi.str=Pi._=Pi.KeywordCxt=void 0;var DL=fc();Object.defineProperty(Pi,"KeywordCxt",{enumerable:!0,get:function(){return DL.KeywordCxt}});var la=mt();Object.defineProperty(Pi,"_",{enumerable:!0,get:function(){return la._}});Object.defineProperty(Pi,"str",{enumerable:!0,get:function(){return la.str}});Object.defineProperty(Pi,"stringify",{enumerable:!0,get:function(){return la.stringify}});Object.defineProperty(Pi,"nil",{enumerable:!0,get:function(){return la.nil}});Object.defineProperty(Pi,"Name",{enumerable:!0,get:function(){return la.Name}});Object.defineProperty(Pi,"CodeGen",{enumerable:!0,get:function(){return la.CodeGen}});var NL=Cp(),D4=hc(),zL=Nb(),gc=Dp(),jL=mt(),yc=lc(),Up=uc(),s_=Mt(),A4=c4(),UL=$4(),N4=(e,t)=>new RegExp(e,t);N4.code="new RegExp";var LL=["removeAdditional","useDefaults","coerceTypes"],FL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),qL={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."},BL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},R4=200;function HL(e){var t,r,i,n,o,s,h,v,b,_,g,S,x,M,I,T,P,$,R,C,N,B,ie,le,ue;let F=e.strict,ee=(t=e.code)===null||t===void 0?void 0:t.optimize,a=ee===!0||ee===void 0?1:ee||0,c=(i=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&i!==void 0?i:N4,f=(n=e.uriResolver)!==null&&n!==void 0?n:UL.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:F)!==null&&s!==void 0?s:!0,strictNumbers:(v=(h=e.strictNumbers)!==null&&h!==void 0?h:F)!==null&&v!==void 0?v:!0,strictTypes:(_=(b=e.strictTypes)!==null&&b!==void 0?b:F)!==null&&_!==void 0?_:"log",strictTuples:(S=(g=e.strictTuples)!==null&&g!==void 0?g:F)!==null&&S!==void 0?S:"log",strictRequired:(M=(x=e.strictRequired)!==null&&x!==void 0?x:F)!==null&&M!==void 0?M:!1,code:e.code?{...e.code,optimize:a,regExp:c}:{optimize:a,regExp:c},loopRequired:(I=e.loopRequired)!==null&&I!==void 0?I:R4,loopEnum:(T=e.loopEnum)!==null&&T!==void 0?T:R4,meta:(P=e.meta)!==null&&P!==void 0?P:!0,messages:($=e.messages)!==null&&$!==void 0?$:!0,inlineRefs:(R=e.inlineRefs)!==null&&R!==void 0?R:!0,schemaId:(C=e.schemaId)!==null&&C!==void 0?C:"$id",addUsedSchema:(N=e.addUsedSchema)!==null&&N!==void 0?N:!0,validateSchema:(B=e.validateSchema)!==null&&B!==void 0?B:!0,validateFormats:(ie=e.validateFormats)!==null&&ie!==void 0?ie:!0,unicodeRegExp:(le=e.unicodeRegExp)!==null&&le!==void 0?le:!0,int32range:(ue=e.int32range)!==null&&ue!==void 0?ue:!0,uriResolver:f}}class Lp{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...HL(e)};let{es5:t,lines:r}=this.opts.code;this.scope=new jL.ValueScope({scope:{},prefixes:FL,es5:t,lines:r}),this.logger=JL(e.logger);let i=e.validateFormats;if(e.validateFormats=!1,this.RULES=(0,zL.getRules)(),C4.call(this,qL,e,"NOT SUPPORTED"),C4.call(this,BL,e,"DEPRECATED","warn"),this._metaOpts=WL.call(this),e.formats)KL.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords)VL.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);ZL.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:r}=this.opts,i=A4;if(r==="id")i={...A4},i.id=i.$id,delete i.$id;if(t&&e)this.addMetaSchema(i,i[r],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:void 0}validate(e,t){let r;if(typeof e=="string"){if(r=this.getSchema(e),!r)throw Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let i=r(t);if(!("$async"in r))this.errors=r.errors;return i}compile(e,t){let r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return i.call(this,e,t);async function i(b,_){await n.call(this,b.$schema);let g=this._addSchema(b,_);return g.validate||o.call(this,g)}async function n(b){if(b&&!this.getSchema(b))await i.call(this,{$ref:b},!0)}async function o(b){try{return this._compileSchemaEnv(b)}catch(_){if(!(_ instanceof D4.default))throw _;return s.call(this,_),await h.call(this,_.missingSchema),o.call(this,b)}}function s({missingSchema:b,missingRef:_}){if(this.refs[b])throw Error(`AnySchema ${b} is loaded but ${_} cannot be resolved`)}async function h(b){let _=await v.call(this,b);if(!this.refs[b])await n.call(this,_.$schema);if(!this.refs[b])this.addSchema(_,b,t)}async function v(b){let _=this._loading[b];if(_)return _;try{return await(this._loading[b]=r(b))}finally{delete this._loading[b]}}}addSchema(e,t,r,i=this.opts.validateSchema){if(Array.isArray(e)){for(let o of e)this.addSchema(o,void 0,r,i);return this}let n;if(typeof e==="object"){let{schemaId:o}=this.opts;if(n=e[o],n!==void 0&&typeof n!="string")throw Error(`schema ${o} must be string`)}return t=(0,yc.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,i,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if(typeof e=="boolean")return!0;let r;if(r=e.$schema,r!==void 0&&typeof r!="string")throw Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(r,e);if(!i&&t){let n="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(n);else throw Error(n)}return i}getSchema(e){let t;while(typeof(t=O4.call(this,e))=="string")e=t;if(t===void 0){let{schemaId:r}=this.opts,i=new gc.SchemaEnv({schema:{},schemaId:r});if(t=gc.resolveSchema.call(this,i,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}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 t=O4.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);return delete this.schemas[e],delete this.refs[e],this}case"object":{let t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r)r=(0,yc.normalizeId)(r),delete this.schemas[r],delete this.refs[r];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){if(r=e,typeof t=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r}else if(typeof e=="object"&&t===void 0){if(t=e,r=t.keyword,Array.isArray(r)&&!r.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(YL.call(this,r,t),!t)return(0,s_.eachItem)(r,(n)=>o_.call(this,n)),this;eF.call(this,t);let i={...t,type:(0,Up.getJSONTypes)(t.type),schemaType:(0,Up.getJSONTypes)(t.schemaType)};return(0,s_.eachItem)(r,i.type.length===0?(n)=>o_.call(this,n,i):(n)=>i.type.forEach((o)=>o_.call(this,n,i,o))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let r of t.rules){let i=r.rules.findIndex((n)=>n.keyword===e);if(i>=0)r.rules.splice(i,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);return this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((i)=>`${r}${i.instancePath} ${i.message}`).reduce((i,n)=>i+t+n)}$dataMetaSchema(e,t){let r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of t){let n=i.split("/").slice(1),o=e;for(let s of n)o=o[s];for(let s in r){let h=r[s];if(typeof h!="object")continue;let{$data:v}=h.definition,b=o[s];if(v&&b)o[s]=z4(b)}}return e}_removeAllSchemas(e,t){for(let r in e){let i=e[r];if(!t||t.test(r)){if(typeof i=="string")delete e[r];else if(i&&!i.meta)this._cache.delete(i.schema),delete e[r]}}}_addSchema(e,t,r,i=this.opts.validateSchema,n=this.opts.addUsedSchema){let o,{schemaId:s}=this.opts;if(typeof e=="object")o=e[s];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof e!="boolean")throw Error("schema must be object or boolean");let h=this._cache.get(e);if(h!==void 0)return h;r=(0,yc.normalizeId)(o||r);let v=yc.getSchemaRefs.call(this,e,r);if(h=new gc.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:v}),this._cache.set(h.schema,h),n&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=h}if(i)this.validateSchema(e,!0);return h}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else gc.compileSchema.call(this,e);if(!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{gc.compileSchema.call(this,e)}finally{this.opts=t}}}Lp.ValidationError=NL.default;Lp.MissingRefError=D4.default;Pi.default=Lp;function C4(e,t,r,i="error"){for(let n in e){let o=n;if(o in t)this.logger[i](`${r}: option ${n}. ${e[o]}`)}}function O4(e){return e=(0,yc.normalizeId)(e),this.schemas[e]||this.refs[e]}function ZL(){let e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function KL(){for(let e in this.opts.formats){let t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function VL(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function WL(){let e={...this.opts};for(let t of LL)delete e[t];return e}var GL={log(){},warn(){},error(){}};function JL(e){if(e===!1)return GL;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}var XL=/^[a-z_$][a-z0-9_$:-]*$/i;function YL(e,t){let{RULES:r}=this;if((0,s_.eachItem)(e,(i)=>{if(r.keywords[i])throw Error(`Keyword ${i} is already defined`);if(!XL.test(i))throw Error(`Keyword ${i} has invalid name`)}),!t)return;if(t.$data&&!(("code"in t)||("validate"in t)))throw Error('$data keyword must have "code" or "validate" function')}function o_(e,t,r){var i;let n=t===null||t===void 0?void 0:t.post;if(r&&n)throw Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=n?o.post:o.rules.find(({type:v})=>v===r);if(!s)s={type:r,rules:[]},o.rules.push(s);if(o.keywords[e]=!0,!t)return;let h={keyword:e,definition:{...t,type:(0,Up.getJSONTypes)(t.type),schemaType:(0,Up.getJSONTypes)(t.schemaType)}};if(t.before)QL.call(this,s,h,t.before);else s.rules.push(h);o.all[e]=h,(i=t.implements)===null||i===void 0||i.forEach((v)=>this.addKeyword(v))}function QL(e,t,r){let i=e.rules.findIndex((n)=>n.keyword===r);if(i>=0)e.rules.splice(i,0,t);else e.rules.push(t),this.logger.warn(`rule ${r} is not defined`)}function eF(e){let{metaSchema:t}=e;if(t===void 0)return;if(e.$data&&this.opts.$data)t=z4(t);e.validateSchema=this.compile(t,!0)}var tF={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function z4(e){return{anyOf:[e,tF]}}});var L4=Xe(function(U4){Object.defineProperty(U4,"__esModule",{value:!0});var iF={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};U4.default=iF});var K4=Xe(function(H4){Object.defineProperty(H4,"__esModule",{value:!0});H4.callRef=H4.getValidate=void 0;var sF=hc(),F4=Rn(),un=mt(),ca=Ii(),q4=Dp(),Fp=Mt(),aF={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:n,schemaEnv:o,validateName:s,opts:h,self:v}=i,{root:b}=o;if((r==="#"||r==="#/")&&n===b.baseId)return g();let _=q4.resolveRef.call(v,b,n,r);if(_===void 0)throw new sF.default(i.opts.uriResolver,n,r);if(_ instanceof q4.SchemaEnv)return S(_);return x(_);function g(){if(o===b)return qp(e,s,o,o.$async);let M=t.scopeValue("root",{ref:b});return qp(e,un._`${M}.validate`,b,b.$async)}function S(M){let I=B4(e,M);qp(e,I,M,M.$async)}function x(M){let I=t.scopeValue("schema",h.code.source===!0?{ref:M,code:(0,un.stringify)(M)}:{ref:M}),T=t.name("valid"),P=e.subschema({schema:M,dataTypes:[],schemaPath:un.nil,topSchemaRef:I,errSchemaPath:r},T);e.mergeEvaluated(P),e.ok(T)}}};function B4(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):un._`${r.scopeValue("wrapper",{ref:t})}.validate`}H4.getValidate=B4;function qp(e,t,r,i){let{gen:n,it:o}=e,{allErrors:s,schemaEnv:h,opts:v}=o,b=v.passContext?ca.default.this:un.nil;if(i)_();else g();function _(){if(!h.$async)throw Error("async schema referenced by sync schema");let M=n.let("valid");n.try(()=>{if(n.code(un._`await ${(0,F4.callValidateCode)(e,t,b)}`),x(t),!s)n.assign(M,!0)},(I)=>{if(n.if(un._`!(${I} instanceof ${o.ValidationError})`,()=>n.throw(I)),S(I),!s)n.assign(M,!1)}),e.ok(M)}function g(){e.result((0,F4.callValidateCode)(e,t,b),()=>x(t),()=>S(t))}function S(M){let I=un._`${M}.errors`;n.assign(ca.default.vErrors,un._`${ca.default.vErrors} === null ? ${I} : ${ca.default.vErrors}.concat(${I})`),n.assign(ca.default.errors,un._`${ca.default.vErrors}.length`)}function x(M){var I;if(!o.opts.unevaluated)return;let T=(I=r===null||r===void 0?void 0:r.validate)===null||I===void 0?void 0:I.evaluated;if(o.props!==!0)if(T&&!T.dynamicProps){if(T.props!==void 0)o.props=Fp.mergeEvaluated.props(n,T.props,o.props)}else{let P=n.var("props",un._`${M}.evaluated.props`);o.props=Fp.mergeEvaluated.props(n,P,o.props,un.Name)}if(o.items!==!0)if(T&&!T.dynamicItems){if(T.items!==void 0)o.items=Fp.mergeEvaluated.items(n,T.items,o.items)}else{let P=n.var("items",un._`${M}.evaluated.items`);o.items=Fp.mergeEvaluated.items(n,P,o.items,un.Name)}}}H4.callRef=qp;H4.default=aF});var W4=Xe(function(V4){Object.defineProperty(V4,"__esModule",{value:!0});var cF=L4(),dF=K4(),fF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",cF.default,dF.default];V4.default=fF});var J4=Xe(function(G4){Object.defineProperty(G4,"__esModule",{value:!0});var Bp=mt(),ao=Bp.operators,Hp={maximum:{okStr:"<=",ok:ao.LTE,fail:ao.GT},minimum:{okStr:">=",ok:ao.GTE,fail:ao.LT},exclusiveMaximum:{okStr:"<",ok:ao.LT,fail:ao.GTE},exclusiveMinimum:{okStr:">",ok:ao.GT,fail:ao.LTE}},pF={message:({keyword:e,schemaCode:t})=>Bp.str`must be ${Hp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Bp._`{comparison: ${Hp[e].okStr}, limit: ${t}}`},mF={keyword:Object.keys(Hp),type:"number",schemaType:"number",$data:!0,error:pF,code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data(Bp._`${r} ${Hp[t].fail} ${i} || isNaN(${r})`)}};G4.default=mF});var Y4=Xe(function(X4){Object.defineProperty(X4,"__esModule",{value:!0});var vc=mt(),yF={message:({schemaCode:e})=>vc.str`must be multiple of ${e}`,params:({schemaCode:e})=>vc._`{multipleOf: ${e}}`},vF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:yF,code(e){let{gen:t,data:r,schemaCode:i,it:n}=e,o=n.opts.multipleOfPrecision,s=t.let("res"),h=o?vc._`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:vc._`${s} !== parseInt(${s})`;e.fail$data(vc._`(${i} === 0 || (${s} = ${r}/${i}, ${h}))`)}};X4.default=vF});var t3=Xe(function(e3){Object.defineProperty(e3,"__esModule",{value:!0});function Q4(e){let t=e.length,r=0,i=0,n;while(i<t)if(r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t){if(n=e.charCodeAt(i),(n&64512)===56320)i++}return r}e3.default=Q4;Q4.code='require("ajv/dist/runtime/ucs2length").default'});var n3=Xe(function(r3){Object.defineProperty(r3,"__esModule",{value:!0});var Jo=mt(),wF=Mt(),SF=t3(),xF={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return Jo.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>Jo._`{limit: ${e}}`},kF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xF,code(e){let{keyword:t,data:r,schemaCode:i,it:n}=e,o=t==="maxLength"?Jo.operators.GT:Jo.operators.LT,s=n.opts.unicode===!1?Jo._`${r}.length`:Jo._`${(0,wF.useFunc)(e.gen,SF.default)}(${r})`;e.fail$data(Jo._`${s} ${o} ${i}`)}};r3.default=kF});var o3=Xe(function(i3){Object.defineProperty(i3,"__esModule",{value:!0});var EF=Rn(),IF=Mt(),da=mt(),TF={message:({schemaCode:e})=>da.str`must match pattern "${e}"`,params:({schemaCode:e})=>da._`{pattern: ${e}}`},PF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:TF,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:s}=e,h=s.opts.unicodeRegExp?"u":"";if(i){let{regExp:v}=s.opts.code,b=v.code==="new RegExp"?da._`new RegExp`:(0,IF.useFunc)(t,v),_=t.let("valid");t.try(()=>t.assign(_,da._`${b}(${o}, ${h}).test(${r})`),()=>t.assign(_,!1)),e.fail$data(da._`!${_}`)}else{let v=(0,EF.usePattern)(e,n);e.fail$data(da._`!${v}.test(${r})`)}}};i3.default=PF});var a3=Xe(function(s3){Object.defineProperty(s3,"__esModule",{value:!0});var bc=mt(),AF={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return bc.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>bc._`{limit: ${e}}`},RF={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:AF,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxProperties"?bc.operators.GT:bc.operators.LT;e.fail$data(bc._`Object.keys(${r}).length ${n} ${i}`)}};s3.default=RF});var l3=Xe(function(u3){Object.defineProperty(u3,"__esModule",{value:!0});var _c=Rn(),wc=mt(),OF=Mt(),DF={message:({params:{missingProperty:e}})=>wc.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>wc._`{missingProperty: ${e}}`},NF={keyword:"required",type:"object",schemaType:"array",$data:!0,error:DF,code(e){let{gen:t,schema:r,schemaCode:i,data:n,$data:o,it:s}=e,{opts:h}=s;if(!o&&r.length===0)return;let v=r.length>=h.loopRequired;if(s.allErrors)b();else _();if(h.strictRequired){let x=e.parentSchema.properties,{definedProperties:M}=e.it;for(let I of r)if((x===null||x===void 0?void 0:x[I])===void 0&&!M.has(I)){let T=s.schemaEnv.baseId+s.errSchemaPath,P=`required property "${I}" is not defined at "${T}" (strictRequired)`;(0,OF.checkStrictMode)(s,P,s.opts.strictRequired)}}function b(){if(v||o)e.block$data(wc.nil,g);else for(let x of r)(0,_c.checkReportMissingProp)(e,x)}function _(){let x=t.let("missing");if(v||o){let M=t.let("valid",!0);e.block$data(M,()=>S(x,M)),e.ok(M)}else t.if((0,_c.checkMissingProp)(e,r,x)),(0,_c.reportMissingProp)(e,x),t.else()}function g(){t.forOf("prop",i,(x)=>{e.setParams({missingProperty:x}),t.if((0,_c.noPropertyInData)(t,n,x,h.ownProperties),()=>e.error())})}function S(x,M){e.setParams({missingProperty:x}),t.forOf(x,i,()=>{t.assign(M,(0,_c.propertyInData)(t,n,x,h.ownProperties)),t.if((0,wc.not)(M),()=>{e.error(),t.break()})},wc.nil)}}};u3.default=NF});var d3=Xe(function(c3){Object.defineProperty(c3,"__esModule",{value:!0});var Sc=mt(),jF={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return Sc.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>Sc._`{limit: ${e}}`},UF={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:jF,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxItems"?Sc.operators.GT:Sc.operators.LT;e.fail$data(Sc._`${r}.length ${n} ${i}`)}};c3.default=UF});var Zp=Xe(function(h3){Object.defineProperty(h3,"__esModule",{value:!0});var f3=Hb();f3.code='require("ajv/dist/runtime/equal").default';h3.default=f3});var m3=Xe(function(p3){Object.defineProperty(p3,"__esModule",{value:!0});var a_=uc(),Nr=mt(),qF=Mt(),BF=Zp(),HF={message:({params:{i:e,j:t}})=>Nr.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Nr._`{i: ${e}, j: ${t}}`},ZF={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:HF,code(e){let{gen:t,data:r,$data:i,schema:n,parentSchema:o,schemaCode:s,it:h}=e;if(!i&&!n)return;let v=t.let("valid"),b=o.items?(0,a_.getSchemaTypes)(o.items):[];e.block$data(v,_,Nr._`${s} === false`),e.ok(v);function _(){let M=t.let("i",Nr._`${r}.length`),I=t.let("j");e.setParams({i:M,j:I}),t.assign(v,!0),t.if(Nr._`${M} > 1`,()=>(g()?S:x)(M,I))}function g(){return b.length>0&&!b.some((M)=>M==="object"||M==="array")}function S(M,I){let T=t.name("item"),P=(0,a_.checkDataTypes)(b,T,h.opts.strictNumbers,a_.DataType.Wrong),$=t.const("indices",Nr._`{}`);t.for(Nr._`;${M}--;`,()=>{if(t.let(T,Nr._`${r}[${M}]`),t.if(P,Nr._`continue`),b.length>1)t.if(Nr._`typeof ${T} == "string"`,Nr._`${T} += "_"`);t.if(Nr._`typeof ${$}[${T}] == "number"`,()=>{t.assign(I,Nr._`${$}[${T}]`),e.error(),t.assign(v,!1).break()}).code(Nr._`${$}[${T}] = ${M}`)})}function x(M,I){let T=(0,qF.useFunc)(t,BF.default),P=t.name("outer");t.label(P).for(Nr._`;${M}--;`,()=>t.for(Nr._`${I} = ${M}; ${I}--;`,()=>t.if(Nr._`${T}(${r}[${M}], ${r}[${I}])`,()=>{e.error(),t.assign(v,!1).break(P)})))}}};p3.default=ZF});var y3=Xe(function(g3){Object.defineProperty(g3,"__esModule",{value:!0});var u_=mt(),VF=Mt(),WF=Zp(),GF={message:"must be equal to constant",params:({schemaCode:e})=>u_._`{allowedValue: ${e}}`},JF={keyword:"const",$data:!0,error:GF,code(e){let{gen:t,data:r,$data:i,schemaCode:n,schema:o}=e;if(i||o&&typeof o=="object")e.fail$data(u_._`!${(0,VF.useFunc)(t,WF.default)}(${r}, ${n})`);else e.fail(u_._`${o} !== ${r}`)}};g3.default=JF});var b3=Xe(function(v3){Object.defineProperty(v3,"__esModule",{value:!0});var xc=mt(),YF=Mt(),QF=Zp(),eq={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>xc._`{allowedValues: ${e}}`},tq={keyword:"enum",schemaType:"array",$data:!0,error:eq,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:s}=e;if(!i&&n.length===0)throw Error("enum must have non-empty array");let h=n.length>=s.opts.loopEnum,v,b=()=>v!==null&&v!==void 0?v:v=(0,YF.useFunc)(t,QF.default),_;if(h||i)_=t.let("valid"),e.block$data(_,g);else{if(!Array.isArray(n))throw Error("ajv implementation error");let x=t.const("vSchema",o);_=(0,xc.or)(...n.map((M,I)=>S(x,I)))}e.pass(_);function g(){t.assign(_,!1),t.forOf("v",o,(x)=>t.if(xc._`${b()}(${r}, ${x})`,()=>t.assign(_,!0).break()))}function S(x,M){let I=n[M];return typeof I==="object"&&I!==null?xc._`${b()}(${r}, ${x}[${M}])`:xc._`${r} === ${I}`}}};v3.default=tq});var w3=Xe(function(_3){Object.defineProperty(_3,"__esModule",{value:!0});var nq=J4(),iq=Y4(),oq=n3(),sq=o3(),aq=a3(),uq=l3(),lq=d3(),cq=m3(),dq=y3(),fq=b3(),hq=[nq.default,iq.default,oq.default,sq.default,aq.default,uq.default,lq.default,cq.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},dq.default,fq.default];_3.default=hq});var c_=Xe(function(x3){Object.defineProperty(x3,"__esModule",{value:!0});x3.validateAdditionalItems=void 0;var Xo=mt(),l_=Mt(),mq={message:({params:{len:e}})=>Xo.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Xo._`{limit: ${e}}`},gq={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:mq,code(e){let{parentSchema:t,it:r}=e,{items:i}=t;if(!Array.isArray(i)){(0,l_.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}S3(e,i)}};function S3(e,t){let{gen:r,schema:i,data:n,keyword:o,it:s}=e;s.items=!0;let h=r.const("len",Xo._`${n}.length`);if(i===!1)e.setParams({len:t.length}),e.pass(Xo._`${h} <= ${t.length}`);else if(typeof i=="object"&&!(0,l_.alwaysValidSchema)(s,i)){let b=r.var("valid",Xo._`${h} <= ${t.length}`);r.if((0,Xo.not)(b),()=>v(b)),e.ok(b)}function v(b){r.forRange("i",t.length,h,(_)=>{if(e.subschema({keyword:o,dataProp:_,dataPropType:l_.Type.Num},b),!s.allErrors)r.if((0,Xo.not)(b),()=>r.break())})}}x3.validateAdditionalItems=S3;x3.default=gq});var d_=Xe(function(I3){Object.defineProperty(I3,"__esModule",{value:!0});I3.validateTuple=void 0;var M3=mt(),Kp=Mt(),vq=Rn(),bq={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return E3(e,"additionalItems",t);if(r.items=!0,(0,Kp.alwaysValidSchema)(r,t))return;e.ok((0,vq.validateArray)(e))}};function E3(e,t,r=e.schema){let{gen:i,parentSchema:n,data:o,keyword:s,it:h}=e;if(_(n),h.opts.unevaluated&&r.length&&h.items!==!0)h.items=Kp.mergeEvaluated.items(i,r.length,h.items);let v=i.name("valid"),b=i.const("len",M3._`${o}.length`);r.forEach((g,S)=>{if((0,Kp.alwaysValidSchema)(h,g))return;i.if(M3._`${b} > ${S}`,()=>e.subschema({keyword:s,schemaProp:S,dataProp:S},v)),e.ok(v)});function _(g){let{opts:S,errSchemaPath:x}=h,M=r.length,I=M===g.minItems&&(M===g.maxItems||g[t]===!1);if(S.strictTuples&&!I){let T=`"${s}" is ${M}-tuple, but minItems or maxItems/${t} are not specified or different at path "${x}"`;(0,Kp.checkStrictMode)(h,T,S.strictTuples)}}}I3.validateTuple=E3;I3.default=bq});var $3=Xe(function(P3){Object.defineProperty(P3,"__esModule",{value:!0});var wq=d_(),Sq={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(e)=>(0,wq.validateTuple)(e,"items")};P3.default=Sq});var C3=Xe(function(R3){Object.defineProperty(R3,"__esModule",{value:!0});var A3=mt(),kq=Mt(),Mq=Rn(),Eq=c_(),Iq={message:({params:{len:e}})=>A3.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>A3._`{limit: ${e}}`},Tq={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Iq,code(e){let{schema:t,parentSchema:r,it:i}=e,{prefixItems:n}=r;if(i.items=!0,(0,kq.alwaysValidSchema)(i,t))return;if(n)(0,Eq.validateAdditionalItems)(e,n);else e.ok((0,Mq.validateArray)(e))}};R3.default=Tq});var D3=Xe(function(O3){Object.defineProperty(O3,"__esModule",{value:!0});var Cn=mt(),Vp=Mt(),$q={message:({params:{min:e,max:t}})=>t===void 0?Cn.str`must contain at least ${e} valid item(s)`:Cn.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?Cn._`{minContains: ${e}}`:Cn._`{minContains: ${e}, maxContains: ${t}}`},Aq={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:$q,code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e,s,h,{minContains:v,maxContains:b}=i;if(o.opts.next)s=v===void 0?1:v,h=b;else s=1;let _=t.const("len",Cn._`${n}.length`);if(e.setParams({min:s,max:h}),h===void 0&&s===0){(0,Vp.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&s>h){(0,Vp.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Vp.alwaysValidSchema)(o,r)){let I=Cn._`${_} >= ${s}`;if(h!==void 0)I=Cn._`${I} && ${_} <= ${h}`;e.pass(I);return}o.items=!0;let g=t.name("valid");if(h===void 0&&s===1)x(g,()=>t.if(g,()=>t.break()));else if(s===0){if(t.let(g,!0),h!==void 0)t.if(Cn._`${n}.length > 0`,S)}else t.let(g,!1),S();e.result(g,()=>e.reset());function S(){let I=t.name("_valid"),T=t.let("count",0);x(I,()=>t.if(I,()=>M(T)))}function x(I,T){t.forRange("i",0,_,(P)=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:Vp.Type.Num,compositeRule:!0},I),T()})}function M(I){if(t.code(Cn._`${I}++`),h===void 0)t.if(Cn._`${I} >= ${s}`,()=>t.assign(g,!0).break());else if(t.if(Cn._`${I} > ${h}`,()=>t.assign(g,!1).break()),s===1)t.assign(g,!0);else t.if(Cn._`${I} >= ${s}`,()=>t.assign(g,!0))}}};O3.default=Aq});var F3=Xe(function(j3){Object.defineProperty(j3,"__esModule",{value:!0});j3.validateSchemaDeps=j3.validatePropertyDeps=j3.error=void 0;var f_=mt(),Cq=Mt(),kc=Rn();j3.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let i=t===1?"property":"properties";return f_.str`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>f_._`{property: ${e},
|
|
24
24
|
missingProperty: ${i},
|
|
25
25
|
depsCount: ${t},
|
|
26
|
-
deps: ${r}}`};var Oq={keyword:"dependencies",type:"object",schemaType:"object",error:j3.error,code(e){let[t,r]=Dq(e);N3(e,t),z3(e,r)}};function Dq({schema:e}){let t={},r={};for(let i in e){if(i==="__proto__")continue;let n=Array.isArray(e[i])?t:r;n[i]=e[i]}return[t,r]}function N3(e,t=e.schema){let{gen:r,data:i,it:n}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let h=t[s];if(h.length===0)continue;let v=(0,kc.propertyInData)(r,i,s,n.opts.ownProperties);if(e.setParams({property:s,depsCount:h.length,deps:h.join(", ")}),n.allErrors)r.if(v,()=>{for(let b of h)(0,kc.checkReportMissingProp)(e,b)});else r.if(f_._`${v} && (${(0,kc.checkMissingProp)(e,h,o)})`),(0,kc.reportMissingProp)(e,o),r.else()}}j3.validatePropertyDeps=N3;function z3(e,t=e.schema){let{gen:r,data:i,keyword:n,it:o}=e,s=r.name("valid");for(let h in t){if((0,Cq.alwaysValidSchema)(o,t[h]))continue;r.if((0,kc.propertyInData)(r,i,h,o.opts.ownProperties),()=>{let v=e.subschema({keyword:n,schemaProp:h},s);e.mergeValidEvaluated(v,s)},()=>r.var(s,!0)),e.ok(s)}}j3.validateSchemaDeps=z3;j3.default=Oq});var H3=Xe(function(B3){Object.defineProperty(B3,"__esModule",{value:!0});var q3=mt(),jq=Mt(),Uq={message:"property name must be valid",params:({params:e})=>q3._`{propertyName: ${e.propertyName}}`},Lq={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Uq,code(e){let{gen:t,schema:r,data:i,it:n}=e;if((0,jq.alwaysValidSchema)(n,r))return;let o=t.name("valid");t.forIn("key",i,(s)=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,q3.not)(o),()=>{if(e.error(!0),!n.allErrors)t.break()})}),e.ok(o)}};B3.default=Lq});var h_=Xe(function(Z3){Object.defineProperty(Z3,"__esModule",{value:!0});var Wp=Rn(),Vn=mt(),qq=Ii(),Gp=Mt(),Bq={message:"must NOT have additional properties",params:({params:e})=>Vn._`{additionalProperty: ${e.additionalProperty}}`},Hq={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Bq,code(e){let{gen:t,schema:r,parentSchema:i,data:n,errsCount:o,it:s}=e;if(!o)throw Error("ajv implementation error");let{allErrors:h,opts:v}=s;if(s.props=!0,v.removeAdditional!=="all"&&(0,Gp.alwaysValidSchema)(s,r))return;let b=(0,Wp.allSchemaProperties)(i.properties),_=(0,Wp.allSchemaProperties)(i.patternProperties);g(),e.ok(Vn._`${o} === ${qq.default.errors}`);function g(){t.forIn("key",n,(T)=>{if(!b.length&&!_.length)M(T);else t.if(S(T),()=>M(T))})}function S(T){let P;if(b.length>8){let $=(0,Gp.schemaRefOrVal)(s,i.properties,"properties");P=(0,Wp.isOwnProperty)(t,$,T)}else if(b.length)P=(0,Vn.or)(...b.map(($)=>Vn._`${T} === ${$}`));else P=Vn.nil;if(_.length)P=(0,Vn.or)(P,..._.map(($)=>Vn._`${(0,Wp.usePattern)(e,$)}.test(${T})`));return(0,Vn.not)(P)}function x(T){t.code(Vn._`delete ${n}[${T}]`)}function M(T){if(v.removeAdditional==="all"||v.removeAdditional&&r===!1){x(T);return}if(r===!1){if(e.setParams({additionalProperty:T}),e.error(),!h)t.break();return}if(typeof r=="object"&&!(0,Gp.alwaysValidSchema)(s,r)){let P=t.name("valid");if(v.removeAdditional==="failing")I(T,P,!1),t.if((0,Vn.not)(P),()=>{e.reset(),x(T)});else if(I(T,P),!h)t.if((0,Vn.not)(P),()=>t.break())}}function I(T,P,$){let R={keyword:"additionalProperties",dataProp:T,dataPropType:Gp.Type.Str};if($===!1)Object.assign(R,{compositeRule:!0,createErrors:!1,allErrors:!1});e.subschema(R,P)}}};Z3.default=Hq});var G3=Xe(function(W3){Object.defineProperty(W3,"__esModule",{value:!0});var Kq=fc(),K3=Rn(),p_=Mt(),V3=h_(),Vq={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e;if(o.opts.removeAdditional==="all"&&i.additionalProperties===void 0)V3.default.code(new Kq.KeywordCxt(o,V3.default,"additionalProperties"));let s=(0,K3.allSchemaProperties)(r);for(let g of s)o.definedProperties.add(g);if(o.opts.unevaluated&&s.length&&o.props!==!0)o.props=p_.mergeEvaluated.props(t,(0,p_.toHash)(s),o.props);let h=s.filter((g)=>!(0,p_.alwaysValidSchema)(o,r[g]));if(h.length===0)return;let v=t.name("valid");for(let g of h){if(b(g))_(g);else{if(t.if((0,K3.propertyInData)(t,n,g,o.opts.ownProperties)),_(g),!o.allErrors)t.else().var(v,!0);t.endIf()}e.it.definedProperties.add(g),e.ok(v)}function b(g){return o.opts.useDefaults&&!o.compositeRule&&r[g].default!==void 0}function _(g){e.subschema({keyword:"properties",schemaProp:g,dataProp:g},v)}}};W3.default=Vq});var eE=Xe(function(Q3){Object.defineProperty(Q3,"__esModule",{value:!0});var J3=Rn(),Jp=mt(),X3=Mt(),Y3=Mt(),Gq={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:i,parentSchema:n,it:o}=e,{opts:s}=o,h=(0,J3.allSchemaProperties)(r),v=h.filter((I)=>(0,X3.alwaysValidSchema)(o,r[I]));if(h.length===0||v.length===h.length&&(!o.opts.unevaluated||o.props===!0))return;let b=s.strictSchema&&!s.allowMatchingProperties&&n.properties,_=t.name("valid");if(o.props!==!0&&!(o.props instanceof Jp.Name))o.props=(0,Y3.evaluatedPropsToName)(t,o.props);let{props:g}=o;S();function S(){for(let I of h){if(b)x(I);if(o.allErrors)M(I);else t.var(_,!0),M(I),t.if(_)}}function x(I){for(let T in b)if(new RegExp(I).test(T))(0,X3.checkStrictMode)(o,`property ${T} matches pattern ${I} (use allowMatchingProperties)`)}function M(I){t.forIn("key",i,(T)=>{t.if(Jp._`${(0,J3.usePattern)(e,I)}.test(${T})`,()=>{let P=v.includes(I);if(!P)e.subschema({keyword:"patternProperties",schemaProp:I,dataProp:T,dataPropType:Y3.Type.Str},_);if(o.opts.unevaluated&&g!==!0)t.assign(Jp._`${g}[${T}]`,!0);else if(!P&&!o.allErrors)t.if((0,Jp.not)(_),()=>t.break())})})}}};Q3.default=Gq});var rE=Xe(function(tE){Object.defineProperty(tE,"__esModule",{value:!0});var Xq=Mt(),Yq={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,Xq.alwaysValidSchema)(i,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};tE.default=Yq});var iE=Xe(function(nE){Object.defineProperty(nE,"__esModule",{value:!0});var eB=Rn(),tB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eB.validateUnion,error:{message:"must match a schema in anyOf"}};nE.default=tB});var sE=Xe(function(oE){Object.defineProperty(oE,"__esModule",{value:!0});var Xp=mt(),nB=Mt(),iB={message:"must match exactly one schema in oneOf",params:({params:e})=>Xp._`{passingSchemas: ${e.passing}}`},oB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:iB,code(e){let{gen:t,schema:r,parentSchema:i,it:n}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let o=r,s=t.let("valid",!1),h=t.let("passing",null),v=t.name("_valid");e.setParams({passing:h}),t.block(b),e.result(s,()=>e.reset(),()=>e.error(!0));function b(){o.forEach((_,g)=>{let S;if((0,nB.alwaysValidSchema)(n,_))t.var(v,!0);else S=e.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},v);if(g>0)t.if(Xp._`${v} && ${s}`).assign(s,!1).assign(h,Xp._`[${h}, ${g}]`).else();t.if(v,()=>{if(t.assign(s,!0),t.assign(h,g),S)e.mergeEvaluated(S,Xp.Name)})})}}};oE.default=oB});var uE=Xe(function(aE){Object.defineProperty(aE,"__esModule",{value:!0});var aB=Mt(),uB={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let n=t.name("valid");r.forEach((o,s)=>{if((0,aB.alwaysValidSchema)(i,o))return;let h=e.subschema({keyword:"allOf",schemaProp:s},n);e.ok(n),e.mergeEvaluated(h)})}};aE.default=uB});var fE=Xe(function(dE){Object.defineProperty(dE,"__esModule",{value:!0});var Yp=mt(),cE=Mt(),cB={message:({params:e})=>Yp.str`must match "${e.ifClause}" schema`,params:({params:e})=>Yp._`{failingKeyword: ${e.ifClause}}`},dB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:cB,code(e){let{gen:t,parentSchema:r,it:i}=e;if(r.then===void 0&&r.else===void 0)(0,cE.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=lE(i,"then"),o=lE(i,"else");if(!n&&!o)return;let s=t.let("valid",!0),h=t.name("_valid");if(v(),e.reset(),n&&o){let _=t.let("ifClause");e.setParams({ifClause:_}),t.if(h,b("then",_),b("else",_))}else if(n)t.if(h,b("then"));else t.if((0,Yp.not)(h),b("else"));e.pass(s,()=>e.error(!0));function v(){let _=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);e.mergeEvaluated(_)}function b(_,g){return()=>{let S=e.subschema({keyword:_},h);if(t.assign(s,h),e.mergeValidEvaluated(S,s),g)t.assign(g,Yp._`${_}`);else e.setParams({ifClause:_})}}}};function lE(e,t){let r=e.schema[t];return r!==void 0&&!(0,cE.alwaysValidSchema)(e,r)}dE.default=dB});var pE=Xe(function(hE){Object.defineProperty(hE,"__esModule",{value:!0});var hB=Mt(),pB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===void 0)(0,hB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};hE.default=pB});var gE=Xe(function(mE){Object.defineProperty(mE,"__esModule",{value:!0});var gB=c_(),yB=$3(),vB=d_(),bB=C3(),_B=D3(),wB=F3(),SB=H3(),xB=h_(),kB=G3(),MB=eE(),EB=rE(),IB=iE(),TB=sE(),PB=uE(),$B=fE(),AB=pE();function RB(e=!1){let t=[EB.default,IB.default,TB.default,PB.default,$B.default,AB.default,SB.default,xB.default,wB.default,kB.default,MB.default];if(e)t.push(yB.default,bB.default);else t.push(gB.default,vB.default);return t.push(_B.default),t}mE.default=RB});var vE=Xe(function(yE){Object.defineProperty(yE,"__esModule",{value:!0});var tr=mt(),OB={message:({schemaCode:e})=>tr.str`must match format "${e}"`,params:({schemaCode:e})=>tr._`{format: ${e}}`},DB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:OB,code(e,t){let{gen:r,data:i,$data:n,schema:o,schemaCode:s,it:h}=e,{opts:v,errSchemaPath:b,schemaEnv:_,self:g}=h;if(!v.validateFormats)return;if(n)S();else x();function S(){let M=r.scopeValue("formats",{ref:g.formats,code:v.code.formats}),I=r.const("fDef",tr._`${M}[${s}]`),T=r.let("fType"),P=r.let("format");r.if(tr._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>r.assign(T,tr._`${I}.type || "string"`).assign(P,tr._`${I}.validate`),()=>r.assign(T,tr._`"string"`).assign(P,I)),e.fail$data((0,tr.or)($(),R()));function $(){if(v.strictSchema===!1)return tr.nil;return tr._`${s} && !${P}`}function R(){let C=_.$async?tr._`(${I}.async ? await ${P}(${i}) : ${P}(${i}))`:tr._`${P}(${i})`,N=tr._`(typeof ${P} == "function" ? ${C} : ${P}.test(${i}))`;return tr._`${P} && ${P} !== true && ${T} === ${t} && !${N}`}}function x(){let M=g.formats[o];if(!M){$();return}if(M===!0)return;let[I,T,P]=R(M);if(I===t)e.pass(C());function $(){if(v.strictSchema===!1){g.logger.warn(N());return}throw Error(N());function N(){return`unknown format "${o}" ignored in schema at path "${b}"`}}function R(N){let B=N instanceof RegExp?(0,tr.regexpCode)(N):v.code.formats?tr._`${v.code.formats}${(0,tr.getProperty)(o)}`:void 0,ie=r.scopeValue("formats",{key:o,ref:N,code:B});if(typeof N=="object"&&!(N instanceof RegExp))return[N.type||"string",N.validate,tr._`${ie}.validate`];return["string",N,ie]}function C(){if(typeof M=="object"&&!(M instanceof RegExp)&&M.async){if(!_.$async)throw Error("async format in sync schema");return tr._`await ${P}(${i})`}return typeof T=="function"?tr._`${P}(${i})`:tr._`${P}.test(${i})`}}}};yE.default=DB});var _E=Xe(function(bE){Object.defineProperty(bE,"__esModule",{value:!0});var zB=vE(),jB=[zB.default];bE.default=jB});var xE=Xe(function(wE){Object.defineProperty(wE,"__esModule",{value:!0});wE.contentVocabulary=wE.metadataVocabulary=void 0;wE.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];wE.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var EE=Xe(function(ME){Object.defineProperty(ME,"__esModule",{value:!0});var FB=W4(),qB=w3(),BB=gE(),HB=_E(),kE=xE(),ZB=[FB.default,qB.default,(0,BB.default)(),HB.default,kE.metadataVocabulary,kE.contentVocabulary];ME.default=ZB});var $E=Xe(function(TE){Object.defineProperty(TE,"__esModule",{value:!0});TE.DiscrError=void 0;var IE;(function(e){e.Tag="tag",e.Mapping="mapping"})(IE||(TE.DiscrError=IE={}))});var CE=Xe(function(RE){Object.defineProperty(RE,"__esModule",{value:!0});var fa=mt(),m_=$E(),AE=Dp(),VB=hc(),WB=Mt(),GB={message:({params:{discrError:e,tagName:t}})=>e===m_.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>fa._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},JB={keyword:"discriminator",type:"object",schemaType:"object",error:GB,code(e){let{gen:t,data:r,schema:i,parentSchema:n,it:o}=e,{oneOf:s}=n;if(!o.opts.discriminator)throw Error("discriminator: requires discriminator option");let h=i.propertyName;if(typeof h!="string")throw Error("discriminator: requires propertyName");if(i.mapping)throw Error("discriminator: mapping is not supported");if(!s)throw Error("discriminator: requires oneOf keyword");let v=t.let("valid",!1),b=t.const("tag",fa._`${r}${(0,fa.getProperty)(h)}`);t.if(fa._`typeof ${b} == "string"`,()=>_(),()=>e.error(!1,{discrError:m_.DiscrError.Tag,tag:b,tagName:h})),e.ok(v);function _(){let x=S();t.if(!1);for(let M in x)t.elseIf(fa._`${b} === ${M}`),t.assign(v,g(x[M]));t.else(),e.error(!1,{discrError:m_.DiscrError.Mapping,tag:b,tagName:h}),t.endIf()}function g(x){let M=t.name("valid"),I=e.subschema({keyword:"oneOf",schemaProp:x},M);return e.mergeEvaluated(I,fa.Name),M}function S(){var x;let M={},I=P(n),T=!0;for(let C=0;C<s.length;C++){let N=s[C];if((N===null||N===void 0?void 0:N.$ref)&&!(0,WB.schemaHasRulesButRef)(N,o.self.RULES)){let ie=N.$ref;if(N=AE.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ie),N instanceof AE.SchemaEnv)N=N.schema;if(N===void 0)throw new VB.default(o.opts.uriResolver,o.baseId,ie)}let B=(x=N===null||N===void 0?void 0:N.properties)===null||x===void 0?void 0:x[h];if(typeof B!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);T=T&&(I||P(N)),$(B,C)}if(!T)throw Error(`discriminator: "${h}" must be required`);return M;function P({required:C}){return Array.isArray(C)&&C.includes(h)}function $(C,N){if(C.const)R(C.const,N);else if(C.enum)for(let B of C.enum)R(B,N);else throw Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function R(C,N){if(typeof C!="string"||C in M)throw Error(`discriminator: "${h}" values must be unique strings`);M[C]=N}}}};RE.default=JB});var OE=Xe(function(H_e,YB){YB.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 y_=Xe(function(ln,g_){Object.defineProperty(ln,"__esModule",{value:!0});ln.MissingRefError=ln.ValidationError=ln.CodeGen=ln.Name=ln.nil=ln.stringify=ln.str=ln._=ln.KeywordCxt=ln.Ajv=void 0;var QB=j4(),eH=EE(),tH=CE(),DE=OE(),rH=["/properties"],Qp="http://json-schema.org/draft-07/schema";class Mc extends QB.default{_addVocabularies(){if(super._addVocabularies(),eH.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(tH.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(DE,rH):DE;this.addMetaSchema(e,Qp,!1),this.refs["http://json-schema.org/schema"]=Qp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Qp)?Qp:void 0)}}ln.Ajv=Mc;g_.exports=ln=Mc;g_.exports.Ajv=Mc;Object.defineProperty(ln,"__esModule",{value:!0});ln.default=Mc;var nH=fc();Object.defineProperty(ln,"KeywordCxt",{enumerable:!0,get:function(){return nH.KeywordCxt}});var ha=mt();Object.defineProperty(ln,"_",{enumerable:!0,get:function(){return ha._}});Object.defineProperty(ln,"str",{enumerable:!0,get:function(){return ha.str}});Object.defineProperty(ln,"stringify",{enumerable:!0,get:function(){return ha.stringify}});Object.defineProperty(ln,"nil",{enumerable:!0,get:function(){return ha.nil}});Object.defineProperty(ln,"Name",{enumerable:!0,get:function(){return ha.Name}});Object.defineProperty(ln,"CodeGen",{enumerable:!0,get:function(){return ha.CodeGen}});var iH=Cp();Object.defineProperty(ln,"ValidationError",{enumerable:!0,get:function(){return iH.default}});var oH=hc();Object.defineProperty(ln,"MissingRefError",{enumerable:!0,get:function(){return oH.default}})});var ZE=Xe(function(BE){Object.defineProperty(BE,"__esModule",{value:!0});BE.formatNames=BE.fastFormats=BE.fullFormats=void 0;function ri(e,t){return{validate:e,compare:t}}BE.fullFormats={date:ri(UE,w_),time:ri(b_(!0),S_),"date-time":ri(NE(!0),FE),"iso-time":ri(b_(),LE),"iso-date-time":ri(NE(),qE),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:hH,"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:_H,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:pH,int32:{type:"number",validate:yH},int64:{type:"number",validate:vH},float:{type:"number",validate:jE},double:{type:"number",validate:jE},password:!0,binary:!0};BE.fastFormats={...BE.fullFormats,date:ri(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,w_),time:ri(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,S_),"date-time":ri(/^\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,FE),"iso-time":ri(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,LE),"iso-date-time":ri(/^\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,qE),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};BE.formatNames=Object.keys(BE.fullFormats);function uH(e){return e%4===0&&(e%100!==0||e%400===0)}var lH=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,cH=[0,31,28,31,30,31,30,31,31,30,31,30,31];function UE(e){let t=lH.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&uH(r)?29:cH[i])}function w_(e,t){if(!(e&&t))return;if(e>t)return 1;if(e<t)return-1;return 0}var v_=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function b_(e){return function(r){let i=v_.exec(r);if(!i)return!1;let n=+i[1],o=+i[2],s=+i[3],h=i[4],v=i[5]==="-"?-1:1,b=+(i[6]||0),_=+(i[7]||0);if(b>23||_>59||e&&!h)return!1;if(n<=23&&o<=59&&s<60)return!0;let g=o-_*v,S=n-b*v-(g<0?1:0);return(S===23||S===-1)&&(g===59||g===-1)&&s<61}}function S_(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();if(!(r&&i))return;return r-i}function LE(e,t){if(!(e&&t))return;let r=v_.exec(e),i=v_.exec(t);if(!(r&&i))return;if(e=r[1]+r[2]+r[3],t=i[1]+i[2]+i[3],e>t)return 1;if(e<t)return-1;return 0}var __=/t|\s/i;function NE(e){let t=b_(e);return function(i){let n=i.split(__);return n.length===2&&UE(n[0])&&t(n[1])}}function FE(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),i=new Date(t).valueOf();if(!(r&&i))return;return r-i}function qE(e,t){if(!(e&&t))return;let[r,i]=e.split(__),[n,o]=t.split(__),s=w_(r,n);if(s===void 0)return;return s||S_(i,o)}var dH=/\/|:/,fH=/^(?:[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 hH(e){return dH.test(e)&&fH.test(e)}var zE=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function pH(e){return zE.lastIndex=0,zE.test(e)}var mH=-2147483648,gH=2147483647;function yH(e){return Number.isInteger(e)&&e<=gH&&e>=mH}function vH(e){return Number.isInteger(e)}function jE(){return!0}var bH=/[^\\]\\Z/;function _H(e){if(bH.test(e))return!1;try{return new RegExp(e),!0}catch(t){return!1}}});var VE=Xe(function(KE){Object.defineProperty(KE,"__esModule",{value:!0});KE.formatLimitDefinition=void 0;var SH=y_(),Wn=mt(),uo=Wn.operators,em={formatMaximum:{okStr:"<=",ok:uo.LTE,fail:uo.GT},formatMinimum:{okStr:">=",ok:uo.GTE,fail:uo.LT},formatExclusiveMaximum:{okStr:"<",ok:uo.LT,fail:uo.GTE},formatExclusiveMinimum:{okStr:">",ok:uo.GT,fail:uo.LTE}},xH={message:({keyword:e,schemaCode:t})=>Wn.str`should be ${em[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Wn._`{comparison: ${em[e].okStr}, limit: ${t}}`};KE.formatLimitDefinition={keyword:Object.keys(em),type:"string",schemaType:"string",$data:!0,error:xH,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:o}=e,{opts:s,self:h}=o;if(!s.validateFormats)return;let v=new SH.KeywordCxt(o,h.RULES.all.format.definition,"format");if(v.$data)b();else _();function b(){let S=t.scopeValue("formats",{ref:h.formats,code:s.code.formats}),x=t.const("fmt",Wn._`${S}[${v.schemaCode}]`);e.fail$data((0,Wn.or)(Wn._`typeof ${x} != "object"`,Wn._`${x} instanceof RegExp`,Wn._`typeof ${x}.compare != "function"`,g(x)))}function _(){let S=v.schema,x=h.formats[S];if(!x||x===!0)return;if(typeof x!="object"||x instanceof RegExp||typeof x.compare!="function")throw Error(`"${n}": format "${S}" does not define "compare" function`);let M=t.scopeValue("formats",{key:S,ref:x,code:s.code.formats?Wn._`${s.code.formats}${(0,Wn.getProperty)(S)}`:void 0});e.fail$data(g(M))}function g(S){return Wn._`${S}.compare(${r}, ${i}) ${em[n].fail} 0`}},dependencies:["format"]};var kH=(e)=>(e.addKeyword(KE.formatLimitDefinition),e);KE.default=kH});var XE=Xe(function(Ec,JE){Object.defineProperty(Ec,"__esModule",{value:!0});var pa=ZE(),EH=VE(),M_=mt(),WE=new M_.Name("fullFormats"),IH=new M_.Name("fastFormats"),E_=(e,t={keywords:!0})=>{if(Array.isArray(t))return GE(e,t,pa.fullFormats,WE),e;let[r,i]=t.mode==="fast"?[pa.fastFormats,IH]:[pa.fullFormats,WE],n=t.formats||pa.formatNames;if(GE(e,n,r,i),t.keywords)(0,EH.default)(e);return e};E_.get=(e,t="full")=>{let i=(t==="fast"?pa.fastFormats:pa.fullFormats)[e];if(!i)throw Error(`Unknown format "${e}"`);return i};function GE(e,t,r,i){var n,o;(n=(o=e.opts.code).formats)!==null&&n!==void 0||(o.formats=M_._`require("ajv-formats/dist/formats").${i}`);for(let s of t)e.addFormat(s,r[s])}JE.exports=Ec=E_;Object.defineProperty(Ec,"__esModule",{value:!0});Ec.default=E_});var LH=typeof String.prototype.isWellFormed==="function"?Function.prototype.call.bind(String.prototype.isWellFormed):void 0,FH=typeof String.prototype.toWellFormed==="function"?Function.prototype.call.bind(String.prototype.toWellFormed):void 0;class On extends Error{}function im(e,t,r){return new Promise((i,n)=>{if(t?.aborted){if(r?.throwOnAbort||r?.abortError)n(r.abortError?.()??Error("aborted"));else i();return}let o=setTimeout((h,v,b)=>{h?.removeEventListener("abort",v),b()},e,t,s,i);function s(){if(clearTimeout(o),r?.throwOnAbort||r?.abortError)n(r.abortError?.()??Error("aborted"));else i()}if(t?.addEventListener("abort",s,{once:!0}),r?.unref)o.unref()})}var{writeFileSync:nme}=(()=>({}));var{realpathSync:tS}=(()=>({}));function b8(){this.__data__=[],this.size=0}var L_=b8;function _8(e,t){return e===t||e!==e&&t!==t}var F_=_8;function w8(e,t){var r=e.length;while(r--)if(F_(e[r][0],t))return r;return-1}var Ai=w8;var S8=Array.prototype,x8=S8.splice;function k8(e){var t=this.__data__,r=Ai(t,e);if(r<0)return!1;var i=t.length-1;if(r==i)t.pop();else x8.call(t,r,1);return--this.size,!0}var q_=k8;function M8(e){var t=this.__data__,r=Ai(t,e);return r<0?void 0:t[r][1]}var B_=M8;function E8(e){return Ai(this.__data__,e)>-1}var H_=E8;function I8(e,t){var r=this.__data__,i=Ai(r,e);if(i<0)++this.size,r.push([e,t]);else r[i][1]=t;return this}var Z_=I8;function Yo(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}Yo.prototype.clear=L_;Yo.prototype.delete=q_;Yo.prototype.get=B_;Yo.prototype.has=H_;Yo.prototype.set=Z_;var K_=Yo;var T8=typeof global=="object"&&global&&global.Object===Object&&global,V_=T8;var P8=typeof self=="object"&&self&&self.Object===Object&&self,$8=V_||P8||Function("return this")(),Qo=$8;var A8=Qo.Symbol,es=A8;var W_=Object.prototype,R8=W_.hasOwnProperty,C8=W_.toString,ya=es?es.toStringTag:void 0;function O8(e){var t=R8.call(e,ya),r=e[ya];try{e[ya]=void 0;var i=!0}catch(o){}var n=C8.call(e);if(i)if(t)e[ya]=r;else delete e[ya];return n}var G_=O8;var D8=Object.prototype,N8=D8.toString;function z8(e){return N8.call(e)}var J_=z8;var j8="[object Null]",U8="[object Undefined]",X_=es?es.toStringTag:void 0;function L8(e){if(e==null)return e===void 0?U8:j8;return X_&&X_ in Object(e)?G_(e):J_(e)}var Y_=L8;function F8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tc=F8;var q8="[object AsyncFunction]",B8="[object Function]",H8="[object GeneratorFunction]",Z8="[object Proxy]";function K8(e){if(!Tc(e))return!1;var t=Y_(e);return t==B8||t==H8||t==q8||t==Z8}var Q_=K8;var V8=Qo["__core-js_shared__"],Pc=V8;var e1=function(){var e=/[^.]+$/.exec(Pc&&Pc.keys&&Pc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function W8(e){return!!e1&&e1 in e}var t1=W8;var G8=Function.prototype,J8=G8.toString;function X8(e){if(e!=null){try{return J8.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var r1=X8;var Y8=/[\\^$.*+?()[\]{}|]/g,Q8=/^\[object .+?Constructor\]$/,eI=Function.prototype,tI=Object.prototype,rI=eI.toString,nI=tI.hasOwnProperty,iI=RegExp("^"+rI.call(nI).replace(Y8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oI(e){if(!Tc(e)||t1(e))return!1;var t=Q_(e)?iI:Q8;return t.test(r1(e))}var n1=oI;function sI(e,t){return e==null?void 0:e[t]}var i1=sI;function aI(e,t){var r=i1(e,t);return n1(r)?r:void 0}var $c=aI;var uI=$c(Qo,"Map"),o1=uI;var lI=$c(Object,"create"),ni=lI;function cI(){this.__data__=ni?ni(null):{},this.size=0}var s1=cI;function dI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var a1=dI;var fI="__lodash_hash_undefined__",hI=Object.prototype,pI=hI.hasOwnProperty;function mI(e){var t=this.__data__;if(ni){var r=t[e];return r===fI?void 0:r}return pI.call(t,e)?t[e]:void 0}var u1=mI;var gI=Object.prototype,yI=gI.hasOwnProperty;function vI(e){var t=this.__data__;return ni?t[e]!==void 0:yI.call(t,e)}var l1=vI;var bI="__lodash_hash_undefined__";function _I(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ni&&t===void 0?bI:t,this}var c1=_I;function ts(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}ts.prototype.clear=s1;ts.prototype.delete=a1;ts.prototype.get=u1;ts.prototype.has=l1;ts.prototype.set=c1;var om=ts;function wI(){this.size=0,this.__data__={hash:new om,map:new(o1||K_),string:new om}}var d1=wI;function SI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var f1=SI;function xI(e,t){var r=e.__data__;return f1(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ri=xI;function kI(e){var t=Ri(this,e).delete(e);return this.size-=t?1:0,t}var h1=kI;function MI(e){return Ri(this,e).get(e)}var p1=MI;function EI(e){return Ri(this,e).has(e)}var m1=EI;function II(e,t){var r=Ri(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var g1=II;function rs(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}rs.prototype.clear=d1;rs.prototype.delete=h1;rs.prototype.get=p1;rs.prototype.has=m1;rs.prototype.set=g1;var sm=rs;var TI="Expected a function";function am(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw TypeError(TI);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(am.Cache||sm),r}am.Cache=sm;var Mr=am;var y1=function(){return"/"};var va=()=>globalThis.crypto.randomUUID();Kr();Kr();var Jw="[\\w-]{1,63}",SA=new RegExp(`^${Jw}$`),eV=new RegExp(`^a(?:${Jw}-)?[0-9a-f]{16}$`);function Xw(e,t){let r=Buffer.from(t.replace(/-/g,""),"hex"),i=Bm("sha1").update(r).update(Buffer.from(e,"utf8")).digest();i[6]=i[6]&15|80,i[8]=i[8]&63|128;let n=i.subarray(0,16).toString("hex");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20,32)}`}var xA="3ab19d7e-9f35-45c2-926e-75e271cc60b3";function Yw(){let e=process.env.CLAUDE_CODE_REMOTE_SESSION_ID?.trim();return e?Xw(e,xA):null}var Qw=globalThis.process?.getBuiltinModule?.("async_hooks"),Hm=Qw?(e)=>Qw.AsyncResource.bind(e):(e)=>e;function yo(e){if(!e)return!1;if(typeof e==="boolean")return e;let t=String(e).toLowerCase().trim();return["1","true","yes","on"].includes(t)}function zi(){let e=new Set;return{subscribe(t){let r=Hm(t);return e.add(r),()=>{e.delete(r)}},emit(...t){let r;for(let i of e)try{i(...t)}catch(n){(r??=[]).push(n)}if(r)throw r.length===1?r[0]:AggregateError(r,"Signal listener(s) threw")},clear(){e.clear()}}}function eS(){return{sent:new Set,rejected:new Set}}var MA={renderTarget:"ink",workspace:"local",canDrive:!0,transcriptSource:"local-jsonl",remote:null};function EA(){let e="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof tS==="function"){let r=y1();try{e=rS(tS(r))}catch{e=rS(r)}}return{originalCwd:e,projectRoot:e,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,startTime:Date.now(),sessionLogicalStartTime:void 0,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:e,modelUsage:{},mainLoopModelOverride:void 0,refusalFallbackOccurred:!1,refusalFallbackHeaderArmed:!1,refusalFallbackLatchOriginRequestId:void 0,refusalFallbackModelLatch:void 0,sdkDialogHostActive:!1,sdkSupportedDialogKinds:void 0,sdkSupportedDialogKindsSource:void 0,replConfigArgv:[],settingsEffortAtStartup:void 0,initialMainLoopModel:void 0,resolvedOrgDefault:void 0,modelStrings:null,isInteractive:!1,printOutputFormat:null,thinkingDisplayExplicit:!1,permissionPromptToolName:void 0,attacherCaps:null,hasStreamingInput:!1,singleShotPrintSession:!1,modelOverrideOptOutForSession:!1,rendererMode:void 0,strictToolResultPairing:!1,memoryToggledOff:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,searchToolsOptIn:!1,clientType:"cli",sessionStartType:"fresh",questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,oauthTokenFromBgSnapshot:!1,oauthScopesFromFd:void 0,apiKeyFromFd:void 0,gatewayAuth:null,gatewayRefreshInFlight:null,startupPolicySnapshot:void 0,flagSettingsPath:void 0,flagSettingsExpectedContent:void 0,flagSettingsInline:null,parentManagedSettings:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:Yw()??va(),mainAgentId:null,parentSessionId:void 0,loggerProvider:null,eventLogger:null,eventLoggerOwner:null,pendingOTelEvents:[],otelWindowCloseCause:null,hostOtel:{rateTokens:null,rateLastRefillMs:null,featureOkLogged:!1,reportedDropReasons:new Set},meterProvider:null,tracerProvider:null,cachedTelemetryResource:null,cachedOtlpHttpAgentFactory:{direct:null,proxied:null},foundryDeploymentCapabilities:new Map,agentColorMap:new Map,lastAPIRequest:null,lastCancelledAPIMessageId:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],inlinePluginsNoMcp:[],inlinePluginUrls:[],syncedPluginDirs:[],chromeFlagOverride:void 0,teammateAgentId:void 0,onboardingShownThisSession:!1,useCoworkPlugins:!1,disableSlashCommands:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],loopChainStartedAt:Object.create(null),loopTickInFlightPrompt:null,loopConsecutiveKeepalives:0,loopEnded:!1,sessionCreatedTeams:new Set,surfacedHookSpawnFailures:new Set,humanAttachmentDigests:new Map,bareMcpServerMatchersWarned:new Set,inheritedTeamName:void 0,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,longContext1mCreditsBlocked:!1,fableCreditsRequired:!1,fableConsentSessionFallback:!1,fableBridgeDialogTimedOut:!1,fableConsentDialogInteracted:!1,sdkOAuthTokenRefreshCallback:null,hostAuthTokenRefreshCallback:null,mainThreadAgentType:void 0,mainThreadAgentHooks:void 0,sessionSkillAllowlist:void 0,caps:MA,replBridgeActive:!1,mainLoopBusy:!1,directConnectServerUrl:void 0,mcpConnectNonBlocking:!1,backgroundAutoModeSetupInFlight:!1,deferredToolStubGateLatch:null,strictMcpConfig:!1,cliSessionConfigCarried:!1,forkRestrictedLaunchConfig:!1,forkReplayLaunchConfig:{},sessionApprovedMcpServers:[],activeRoutine:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,promptCache1hAllowlist:null,stickyBetas:eS(),thinkingTypeOverrides:new Map,perTurnEffortPins:new Map,effortUnsupportedModels:new Set,midConvCachePromotionRejected:!1,perTurnEffortOkEmitted:!1,inferenceProfileBackingModels:new Map,promptId:null,promptIndex:0,lastMainRequestId:void 0,lastMainThreadCacheTtlMs:null,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}var IA=EA(),TA=()=>{return};function Zm(){return TA()?.sessionId??IA.sessionId}var PA=zi(),zV=PA.subscribe;function rS(e){return process.platform==="darwin"?e.normalize("NFC"):e}var $A=zi(),jV=$A.subscribe;var AA=zi(),UV=AA.subscribe;var RA=zi();var LV=RA.subscribe;var CA=zi();var FV=CA.subscribe;var{appendFile:V2,mkdir:vC,rename:W2,stat:bC,symlink:_C,unlink:Cv}=(()=>({}));Nn();function cS({writeFn:e,flushIntervalMs:t=1000,maxBufferSize:r=100,maxBufferBytes:i=1/0,immediateMode:n=!1}){let o=[],s=0,h=null,v=null;function b(){if(h)clearTimeout(h),h=null}function _(M){try{e(M)}catch{}}function g(){if(v)_(v.join("")),v=null;if(o.length===0)return;_(o.join("")),o=[],s=0,b()}function S(){if(!h)h=setTimeout(g,t)}function x(){if(v){v.push(...o),o=[],s=0,b();return}let M=o;o=[],s=0,b(),v=M,setImmediate(()=>{let I=v;if(v=null,I)_(I.join(""))})}return{write(M){if(n){_(M);return}if(o.push(M),s+=M.length,S(),o.length>=r||s>=i)x()},flush:g,dispose(){g()}}}var{realpathSync:KV}=(()=>({}));var Gc=function(){return"/"};Nn();function Jc(e){return process.platform==="darwin"?e.normalize("NFC"):e}function Gm(e){return/^[\\/]{2}/.test(e)}function fS(e){return/(^|[\\/])\.{1,2}([\\/]|$)/.test(e)}function hS(e){if(!e.startsWith("/"))return null;let t=[];for(let r of e.split("/")){if(r===""||r===".")continue;if(r===".."){t.pop();continue}if(t.push(r),t.length===2&&t[0].toLowerCase()==="net")return"/"+t.join("/")}return null}function Jm(e){return/^[\\/]{2}wsl(\$|\.localhost)[\\/]/i.test(e)}function NA(e){if(e.startsWith("\\\\?\\UNC\\"))return"\\\\"+e.slice(8);if(e.startsWith("\\\\?\\")&&e.length>=7&&e[5]===":")return e.slice(4);return e}function pS(e){if(/^\\\\\?\\volume\{/i.test(e))return dS(e);let t=NA(e);if(t!==e&&dS(t))return!0;return Gm(t)&&!Jm(t)}function dS(e){return fS(e)||e.includes("/")}function zA(e){if(typeof e==="function")return e;if(Symbol.asyncDispose in e)return()=>e[Symbol.asyncDispose]();return()=>e[Symbol.dispose]()}class Xm{#e=new Set;register(e){let t=zA(e);this.#e.add(t);let r=()=>{this.#e.delete(t)};return Object.assign(r,{[Symbol.dispose]:r})}async drain(){let e=Array.from(this.#e);this.#e.clear(),await Promise.all(e.map(async(t)=>t()))}async[Symbol.asyncDispose](){await this.drain()}get sizeForTesting(){return this.#e.size}}var jA=new Xm;function mS(e){return jA.register(e)}var JV=new Xm;var gS=Mr((e)=>{if(!e||e.trim()==="")return null;let t=e.split(",").map((o)=>o.trim()).filter(Boolean);if(t.length===0)return null;let r=t.some((o)=>o.startsWith("!")),i=t.some((o)=>!o.startsWith("!"));if(r&&i)return null;let n=t.map((o)=>o.replace(/^!/,"").toLowerCase());return{include:r?[]:n,exclude:r?n:[],isExclusive:r}});function UA(e){let t=[],r=e.match(/^MCP server ["']([^"']+)["']/);if(r&&r[1])t.push("mcp"),t.push(r[1].toLowerCase());else{let o=e.match(/^([^:[]+):/);if(o&&o[1])t.push(o[1].trim().toLowerCase())}let i=e.match(/^\[([^\]]+)]/);if(i&&i[1])t.push(i[1].trim().toLowerCase());if(e.toLowerCase().includes("1p event:"))t.push("1p");let n=e.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(n&&n[1]){let o=n[1].trim().toLowerCase();if(o.length<30&&!o.includes(" "))t.push(o)}return Array.from(new Set(t))}function LA(e,t){if(!t)return!0;if(e.length===0)return!1;if(t.isExclusive)return!e.some((r)=>t.exclude.includes(r));else return e.some((r)=>t.include.includes(r))}function yS(e,t){if(!t)return!0;let r=UA(e);return LA(r,t)}Nn();var Fe={};wn(Fe,{xid:()=>L9,void:()=>a5,uuidv7:()=>C9,uuidv6:()=>R9,uuidv4:()=>A9,uuid:()=>$9,url:()=>O9,uppercase:()=>vu,unknown:()=>qt,union:()=>Dt,undefined:()=>o5,ulid:()=>U9,uint64:()=>n5,uint32:()=>e5,tuple:()=>d5,trim:()=>ku,treeifyError:()=>ed,transform:()=>Uy,toUpperCase:()=>Eu,toLowerCase:()=>Mu,toJSONSchema:()=>xs,templateLiteral:()=>_5,symbol:()=>i5,superRefine:()=>Mx,success:()=>v5,stringbool:()=>x5,stringFormat:()=>J9,string:()=>de,strictObject:()=>c5,startsWith:()=>_u,size:()=>mu,setErrorMap:()=>E5,set:()=>p5,safeParseAsync:()=>my,safeParse:()=>py,registry:()=>Va,regexes:()=>Fi,regex:()=>gu,refine:()=>kx,record:()=>Nt,readonly:()=>vx,property:()=>oy,promise:()=>w5,prettifyError:()=>td,preprocess:()=>Xf,prefault:()=>dx,positive:()=>ty,pipe:()=>Hf,partialRecord:()=>f5,parseAsync:()=>hy,parse:()=>fy,overwrite:()=>pi,optional:()=>Lt,object:()=>Qe,number:()=>It,nullish:()=>y5,nullable:()=>Bf,null:()=>Zf,normalize:()=>xu,nonpositive:()=>ny,nonoptional:()=>fx,nonnegative:()=>iy,never:()=>Kf,negative:()=>ry,nativeEnum:()=>m5,nanoid:()=>N9,nan:()=>b5,multipleOf:()=>Eo,minSize:()=>Io,minLength:()=>Hi,mime:()=>Su,maxSize:()=>_s,maxLength:()=>ws,map:()=>h5,lte:()=>kn,lt:()=>fi,lowercase:()=>yu,looseObject:()=>Lr,locales:()=>vs,literal:()=>tt,length:()=>Ss,lazy:()=>wx,ksuid:()=>F9,keyof:()=>l5,jwt:()=>G9,json:()=>k5,iso:()=>ks,ipv6:()=>B9,ipv4:()=>q9,intersection:()=>Cu,int64:()=>r5,int32:()=>Q9,int:()=>gy,instanceof:()=>S5,includes:()=>bu,guid:()=>P9,gte:()=>rn,gt:()=>hi,globalRegistry:()=>tn,getErrorMap:()=>I5,function:()=>Nf,formatError:()=>fs,float64:()=>Y9,float32:()=>X9,flattenError:()=>ds,file:()=>g5,enum:()=>Vr,endsWith:()=>wu,emoji:()=>D9,email:()=>T9,e164:()=>W9,discriminatedUnion:()=>Gf,date:()=>u5,custom:()=>By,cuid2:()=>j9,cuid:()=>z9,core:()=>zn,config:()=>Qt,coerce:()=>Hy,clone:()=>Ur,cidrv6:()=>Z9,cidrv4:()=>H9,check:()=>xx,catch:()=>mx,boolean:()=>rr,bigint:()=>t5,base64url:()=>V9,base64:()=>K9,array:()=>bt,any:()=>s5,_default:()=>lx,_ZodString:()=>yy,ZodXID:()=>My,ZodVoid:()=>YS,ZodUnknown:()=>JS,ZodUnion:()=>Ny,ZodUndefined:()=>VS,ZodUUID:()=>mi,ZodURL:()=>by,ZodULID:()=>ky,ZodType:()=>yt,ZodTuple:()=>rx,ZodTransform:()=>jy,ZodTemplateLiteral:()=>bx,ZodSymbol:()=>KS,ZodSuccess:()=>hx,ZodStringFormat:()=>Ut,ZodString:()=>Pu,ZodSet:()=>ix,ZodRecord:()=>zy,ZodRealError:()=>Ms,ZodReadonly:()=>yx,ZodPromise:()=>Sx,ZodPrefault:()=>cx,ZodPipe:()=>qy,ZodOptional:()=>Ly,ZodObject:()=>Wf,ZodNumberFormat:()=>Es,ZodNumber:()=>$u,ZodNullable:()=>ax,ZodNull:()=>WS,ZodNonOptional:()=>Fy,ZodNever:()=>XS,ZodNanoID:()=>wy,ZodNaN:()=>gx,ZodMap:()=>nx,ZodLiteral:()=>ox,ZodLazy:()=>_x,ZodKSUID:()=>Ey,ZodJWT:()=>Oy,ZodIssueCode:()=>M5,ZodIntersection:()=>tx,ZodISOTime:()=>Lf,ZodISODuration:()=>Ff,ZodISODateTime:()=>jf,ZodISODate:()=>Uf,ZodIPv6:()=>Ty,ZodIPv4:()=>Iy,ZodGUID:()=>qf,ZodFile:()=>sx,ZodError:()=>E9,ZodEnum:()=>Tu,ZodEmoji:()=>_y,ZodEmail:()=>vy,ZodE164:()=>Cy,ZodDiscriminatedUnion:()=>ex,ZodDefault:()=>ux,ZodDate:()=>Vf,ZodCustomStringFormat:()=>ZS,ZodCustom:()=>Jf,ZodCatch:()=>px,ZodCUID2:()=>xy,ZodCUID:()=>Sy,ZodCIDRv6:()=>$y,ZodCIDRv4:()=>Py,ZodBoolean:()=>Au,ZodBigIntFormat:()=>Dy,ZodBigInt:()=>Ru,ZodBase64URL:()=>Ry,ZodBase64:()=>Ay,ZodArray:()=>QS,ZodAny:()=>GS,TimePrecision:()=>ff,NEVER:()=>Xc,$output:()=>lf,$input:()=>cf,$brand:()=>Yc});var zn={};wn(zn,{version:()=>t0,util:()=>Be,treeifyError:()=>ed,toJSONSchema:()=>xs,toDotPath:()=>_S,safeParseAsync:()=>Li,safeParse:()=>Ui,registry:()=>Va,regexes:()=>Fi,prettifyError:()=>td,parseAsync:()=>So,parse:()=>wo,locales:()=>vs,isValidJWT:()=>jS,isValidBase64URL:()=>zS,isValidBase64:()=>a0,globalRegistry:()=>tn,globalConfig:()=>Ra,function:()=>Nf,formatError:()=>fs,flattenError:()=>ds,config:()=>Qt,clone:()=>Ur,_xid:()=>ou,_void:()=>Tf,_uuidv7:()=>Ya,_uuidv6:()=>Xa,_uuidv4:()=>Ja,_uuid:()=>Ga,_url:()=>Qa,_uppercase:()=>vu,_unknown:()=>Mo,_union:()=>i9,_undefined:()=>kf,_ulid:()=>iu,_uint64:()=>Sf,_uint32:()=>vf,_tuple:()=>sy,_trim:()=>ku,_transform:()=>h9,_toUpperCase:()=>Eu,_toLowerCase:()=>Mu,_templateLiteral:()=>S9,_symbol:()=>xf,_success:()=>v9,_stringbool:()=>Of,_stringFormat:()=>Df,_string:()=>df,_startsWith:()=>_u,_size:()=>mu,_set:()=>l9,_safeParseAsync:()=>od,_safeParse:()=>id,_regex:()=>gu,_refine:()=>Cf,_record:()=>a9,_readonly:()=>w9,_property:()=>oy,_promise:()=>k9,_positive:()=>ty,_pipe:()=>_9,_parseAsync:()=>nd,_parse:()=>rd,_overwrite:()=>pi,_optional:()=>p9,_number:()=>hf,_nullable:()=>m9,_null:()=>Mf,_normalize:()=>xu,_nonpositive:()=>ny,_nonoptional:()=>y9,_nonnegative:()=>iy,_never:()=>If,_negative:()=>ry,_nativeEnum:()=>d9,_nanoid:()=>tu,_nan:()=>$f,_multipleOf:()=>Eo,_minSize:()=>Io,_minLength:()=>Hi,_min:()=>rn,_mime:()=>Su,_maxSize:()=>_s,_maxLength:()=>ws,_max:()=>kn,_map:()=>u9,_lte:()=>kn,_lt:()=>fi,_lowercase:()=>yu,_literal:()=>f9,_length:()=>Ss,_lazy:()=>x9,_ksuid:()=>su,_jwt:()=>pu,_isoTime:()=>G0,_isoDuration:()=>J0,_isoDateTime:()=>V0,_isoDate:()=>W0,_ipv6:()=>uu,_ipv4:()=>au,_intersection:()=>s9,_int64:()=>wf,_int32:()=>yf,_int:()=>pf,_includes:()=>bu,_guid:()=>bs,_gte:()=>rn,_gt:()=>hi,_float64:()=>gf,_float32:()=>mf,_file:()=>Af,_enum:()=>c9,_endsWith:()=>wu,_emoji:()=>eu,_email:()=>Wa,_e164:()=>hu,_discriminatedUnion:()=>o9,_default:()=>g9,_date:()=>Pf,_custom:()=>Rf,_cuid2:()=>nu,_cuid:()=>ru,_coercedString:()=>K0,_coercedNumber:()=>X0,_coercedDate:()=>ey,_coercedBoolean:()=>Y0,_coercedBigint:()=>Q0,_cidrv6:()=>cu,_cidrv4:()=>lu,_catch:()=>b9,_boolean:()=>bf,_bigint:()=>_f,_base64url:()=>fu,_base64:()=>du,_array:()=>Iu,_any:()=>Ef,TimePrecision:()=>ff,NEVER:()=>Xc,JSONSchemaGenerator:()=>zf,JSONSchema:()=>qS,Doc:()=>ld,$output:()=>lf,$input:()=>cf,$constructor:()=>ne,$brand:()=>Yc,$ZodXID:()=>wd,$ZodVoid:()=>Ud,$ZodUnknown:()=>ko,$ZodUnion:()=>Ha,$ZodUndefined:()=>Dd,$ZodUUID:()=>hd,$ZodURL:()=>md,$ZodULID:()=>_d,$ZodType:()=>ut,$ZodTuple:()=>Bi,$ZodTransform:()=>gs,$ZodTemplateLiteral:()=>of,$ZodSymbol:()=>Od,$ZodSuccess:()=>ef,$ZodStringFormat:()=>Ot,$ZodString:()=>qi,$ZodSet:()=>Zd,$ZodRegistry:()=>Ka,$ZodRecord:()=>Bd,$ZodRealError:()=>cs,$ZodReadonly:()=>nf,$ZodPromise:()=>sf,$ZodPrefault:()=>Yd,$ZodPipe:()=>ys,$ZodOptional:()=>Gd,$ZodObject:()=>Ba,$ZodNumberFormat:()=>Rd,$ZodNumber:()=>Fa,$ZodNullable:()=>Jd,$ZodNull:()=>Nd,$ZodNonOptional:()=>Qd,$ZodNever:()=>jd,$ZodNanoID:()=>yd,$ZodNaN:()=>rf,$ZodMap:()=>Hd,$ZodLiteral:()=>Vd,$ZodLazy:()=>af,$ZodKSUID:()=>Sd,$ZodJWT:()=>$d,$ZodIntersection:()=>qd,$ZodISOTime:()=>o0,$ZodISODuration:()=>s0,$ZodISODateTime:()=>n0,$ZodISODate:()=>i0,$ZodIPv6:()=>kd,$ZodIPv4:()=>xd,$ZodGUID:()=>fd,$ZodFunction:()=>ay,$ZodFile:()=>Wd,$ZodError:()=>La,$ZodEnum:()=>Kd,$ZodEmoji:()=>gd,$ZodEmail:()=>pd,$ZodE164:()=>Pd,$ZodDiscriminatedUnion:()=>Fd,$ZodDefault:()=>Xd,$ZodDate:()=>Ld,$ZodCustomStringFormat:()=>Ad,$ZodCustom:()=>uf,$ZodCheckUpperCase:()=>Wg,$ZodCheckStringFormat:()=>hs,$ZodCheckStartsWith:()=>Jg,$ZodCheckSizeEquals:()=>qg,$ZodCheckRegex:()=>Kg,$ZodCheckProperty:()=>Yg,$ZodCheckOverwrite:()=>e0,$ZodCheckNumberFormat:()=>jg,$ZodCheckMultipleOf:()=>zg,$ZodCheckMinSize:()=>Fg,$ZodCheckMinLength:()=>Hg,$ZodCheckMimeType:()=>Qg,$ZodCheckMaxSize:()=>Lg,$ZodCheckMaxLength:()=>Bg,$ZodCheckLowerCase:()=>Vg,$ZodCheckLessThan:()=>ad,$ZodCheckLengthEquals:()=>Zg,$ZodCheckIncludes:()=>Gg,$ZodCheckGreaterThan:()=>ud,$ZodCheckEndsWith:()=>Xg,$ZodCheckBigIntFormat:()=>Ug,$ZodCheck:()=>Ht,$ZodCatch:()=>tf,$ZodCUID2:()=>bd,$ZodCUID:()=>vd,$ZodCIDRv6:()=>Ed,$ZodCIDRv4:()=>Md,$ZodBoolean:()=>ps,$ZodBigIntFormat:()=>Cd,$ZodBigInt:()=>qa,$ZodBase64URL:()=>Td,$ZodBase64:()=>Id,$ZodAsyncError:()=>ci,$ZodArray:()=>ms,$ZodAny:()=>zd});var Xc=Object.freeze({status:"aborted"});function ne(e,t,r){function i(h,v){var b;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(b=h._zod).traits??(b.traits=new Set),h._zod.traits.add(e),t(h,v);for(let _ in s.prototype)if(!(_ in h))Object.defineProperty(h,_,{value:s.prototype[_].bind(h)});h._zod.constr=s,h._zod.def=v}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function s(h){var v;let b=r?.Parent?new o:this;i(b,h),(v=b._zod).deferred??(v.deferred=[]);for(let _ of b._zod.deferred)_();return b}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:(h)=>{if(r?.Parent&&h instanceof r.Parent)return!0;return h?._zod?.traits?.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}var Yc=Symbol("zod_brand");class ci extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var Ra={};function Qt(e){if(e)Object.assign(Ra,e);return Ra}var Be={};wn(Be,{unwrapMessage:()=>Ca,stringifyPrimitive:()=>Ve,required:()=>nR,randomString:()=>WA,propertyKeyTypes:()=>za,promiseAllObject:()=>VA,primitiveTypes:()=>ng,prefixIssues:()=>en,pick:()=>YA,partial:()=>rR,optionalKeys:()=>ig,omit:()=>QA,numKeys:()=>GA,nullish:()=>ji,normalizeParams:()=>qe,merge:()=>tR,jsonStringifyReplacer:()=>Qm,joinValues:()=>be,issue:()=>ag,isPlainObject:()=>ls,isObject:()=>us,getSizableOrigin:()=>ja,getParsedType:()=>JA,getLengthableOrigin:()=>Ua,getEnumValues:()=>Oa,getElementAtPath:()=>KA,floatSafeRemainder:()=>eg,finalizeIssue:()=>fn,extend:()=>eR,escapeRegex:()=>di,esc:()=>bo,defineLazy:()=>Tt,createTransparentProxy:()=>XA,clone:()=>Ur,cleanRegex:()=>Na,cleanEnum:()=>iR,captureStackTrace:()=>Qc,cached:()=>Da,assignProp:()=>tg,assertNotEqual:()=>qA,assertNever:()=>HA,assertIs:()=>BA,assertEqual:()=>FA,assert:()=>ZA,allowsEval:()=>rg,aborted:()=>_o,NUMBER_FORMAT_RANGES:()=>og,Class:()=>vS,BIGINT_FORMAT_RANGES:()=>sg});function FA(e){return e}function qA(e){return e}function BA(e){}function HA(e){throw Error()}function ZA(e){}function Oa(e){let t=Object.values(e).filter((i)=>typeof i==="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function be(e,t="|"){return e.map((r)=>Ve(r)).join(t)}function Qm(e,t){if(typeof t==="bigint")return t.toString();return t}function Da(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw Error("cached value already set")}}}function ji(e){return e===null||e===void 0}function Na(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function eg(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=Number.parseInt(e.toFixed(n).replace(".","")),s=Number.parseInt(t.toFixed(n).replace(".",""));return o%s/10**n}function Tt(e,t,r){Object.defineProperty(e,t,{get(){{let n=r();return e[t]=n,n}throw Error("cached value already set")},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function tg(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function KA(e,t){if(!t)return e;return t.reduce((r,i)=>r?.[i],e)}function VA(e){let t=Object.keys(e),r=t.map((i)=>e[i]);return Promise.all(r).then((i)=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function WA(e=10){let r="";for(let i=0;i<e;i++)r+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return r}function bo(e){return JSON.stringify(e)}var Qc=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function us(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var rg=Da(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function ls(e){if(us(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;if(us(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function GA(e){let t=0;for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r))t++;return t}var JA=(e)=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(e===null)return"null";if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return"promise";if(typeof Map<"u"&&e instanceof Map)return"map";if(typeof Set<"u"&&e instanceof Set)return"set";if(typeof Date<"u"&&e instanceof Date)return"date";if(typeof File<"u"&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},za=new Set(["string","number","symbol"]),ng=new Set(["string","number","bigint","boolean","symbol","undefined"]);function di(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ur(e,t,r){let i=new e._zod.constr(t??e._zod.def);if(!t||r?.parent)i._zod.parent=e;return i}function qe(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function XA(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function Ve(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function ig(e){return Object.keys(e).filter((t)=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var og={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},sg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function YA(e,t){let r={},i=e._zod.def;for(let n in t){if(!(n in i.shape))throw Error(`Unrecognized key: "${n}"`);if(!t[n])continue;r[n]=i.shape[n]}return Ur(e,{...e._zod.def,shape:r,checks:[]})}function QA(e,t){let r={...e._zod.def.shape},i=e._zod.def;for(let n in t){if(!(n in i.shape))throw Error(`Unrecognized key: "${n}"`);if(!t[n])continue;delete r[n]}return Ur(e,{...e._zod.def,shape:r,checks:[]})}function eR(e,t){if(!ls(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return tg(this,"shape",i),i},checks:[]};return Ur(e,r)}function tR(e,t){return Ur(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return tg(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function rR(e,t,r){let i=t._zod.def.shape,n={...i};if(r)for(let o in r){if(!(o in i))throw Error(`Unrecognized key: "${o}"`);if(!r[o])continue;n[o]=e?new e({type:"optional",innerType:i[o]}):i[o]}else for(let o in i)n[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return Ur(t,{...t._zod.def,shape:n,checks:[]})}function nR(e,t,r){let i=t._zod.def.shape,n={...i};if(r)for(let o in r){if(!(o in n))throw Error(`Unrecognized key: "${o}"`);if(!r[o])continue;n[o]=new e({type:"nonoptional",innerType:i[o]})}else for(let o in i)n[o]=new e({type:"nonoptional",innerType:i[o]});return Ur(t,{...t._zod.def,shape:n,checks:[]})}function _o(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function en(e,t){return t.map((r)=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Ca(e){return typeof e==="string"?e:e?.message}function fn(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=Ca(e.inst?._zod.def?.error?.(e))??Ca(t?.error?.(e))??Ca(r.customError?.(e))??Ca(r.localeError?.(e))??"Invalid input";i.message=n}if(delete i.inst,delete i.continue,!t?.reportInput)delete i.input;return i}function ja(e){if(e instanceof Set)return"set";if(e instanceof Map)return"map";if(e instanceof File)return"file";return"unknown"}function Ua(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function ag(...e){let[t,r,i]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:i};return{...t}}function iR(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map((t)=>t[1])}class vS{constructor(...e){}}var bS=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Qm,2)},enumerable:!0})},La=ne("$ZodError",bS),cs=ne("$ZodError",bS,{Parent:Error});function ds(e,t=(r)=>r.message){let r={},i=[];for(let n of e.issues)if(n.path.length>0)r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n));else i.push(t(n));return{formErrors:i,fieldErrors:r}}function fs(e,t){let r=t||function(o){return o.message},i={_errors:[]},n=(o)=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map((h)=>n({issues:h}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)i._errors.push(r(s));else{let h=i,v=0;while(v<s.path.length){let b=s.path[v];if(v!==s.path.length-1)h[b]=h[b]||{_errors:[]};else h[b]=h[b]||{_errors:[]},h[b]._errors.push(r(s));h=h[b],v++}}};return n(e),i}function ed(e,t){let r=t||function(o){return o.message},i={errors:[]},n=(o,s=[])=>{var h,v;for(let b of o.issues)if(b.code==="invalid_union"&&b.errors.length)b.errors.map((_)=>n({issues:_},b.path));else if(b.code==="invalid_key")n({issues:b.issues},b.path);else if(b.code==="invalid_element")n({issues:b.issues},b.path);else{let _=[...s,...b.path];if(_.length===0){i.errors.push(r(b));continue}let g=i,S=0;while(S<_.length){let x=_[S],M=S===_.length-1;if(typeof x==="string")g.properties??(g.properties={}),(h=g.properties)[x]??(h[x]={errors:[]}),g=g.properties[x];else g.items??(g.items=[]),(v=g.items)[x]??(v[x]={errors:[]}),g=g.items[x];if(M)g.errors.push(r(b));S++}}};return n(e),i}function _S(e){let t=[];for(let r of e)if(typeof r==="number")t.push(`[${r}]`);else if(typeof r==="symbol")t.push(`[${JSON.stringify(String(r))}]`);else if(/[^\w$]/.test(r))t.push(`[${JSON.stringify(r)}]`);else{if(t.length)t.push(".");t.push(r)}return t.join("")}function td(e){let t=[],r=[...e.issues].sort((i,n)=>i.path.length-n.path.length);for(let i of r)if(t.push(`✖ ${i.message}`),i.path?.length)t.push(` → at ${_S(i.path)}`);return t.join(`
|
|
26
|
+
deps: ${r}}`};var Oq={keyword:"dependencies",type:"object",schemaType:"object",error:j3.error,code(e){let[t,r]=Dq(e);N3(e,t),z3(e,r)}};function Dq({schema:e}){let t={},r={};for(let i in e){if(i==="__proto__")continue;let n=Array.isArray(e[i])?t:r;n[i]=e[i]}return[t,r]}function N3(e,t=e.schema){let{gen:r,data:i,it:n}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let h=t[s];if(h.length===0)continue;let v=(0,kc.propertyInData)(r,i,s,n.opts.ownProperties);if(e.setParams({property:s,depsCount:h.length,deps:h.join(", ")}),n.allErrors)r.if(v,()=>{for(let b of h)(0,kc.checkReportMissingProp)(e,b)});else r.if(f_._`${v} && (${(0,kc.checkMissingProp)(e,h,o)})`),(0,kc.reportMissingProp)(e,o),r.else()}}j3.validatePropertyDeps=N3;function z3(e,t=e.schema){let{gen:r,data:i,keyword:n,it:o}=e,s=r.name("valid");for(let h in t){if((0,Cq.alwaysValidSchema)(o,t[h]))continue;r.if((0,kc.propertyInData)(r,i,h,o.opts.ownProperties),()=>{let v=e.subschema({keyword:n,schemaProp:h},s);e.mergeValidEvaluated(v,s)},()=>r.var(s,!0)),e.ok(s)}}j3.validateSchemaDeps=z3;j3.default=Oq});var H3=Xe(function(B3){Object.defineProperty(B3,"__esModule",{value:!0});var q3=mt(),jq=Mt(),Uq={message:"property name must be valid",params:({params:e})=>q3._`{propertyName: ${e.propertyName}}`},Lq={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Uq,code(e){let{gen:t,schema:r,data:i,it:n}=e;if((0,jq.alwaysValidSchema)(n,r))return;let o=t.name("valid");t.forIn("key",i,(s)=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,q3.not)(o),()=>{if(e.error(!0),!n.allErrors)t.break()})}),e.ok(o)}};B3.default=Lq});var h_=Xe(function(Z3){Object.defineProperty(Z3,"__esModule",{value:!0});var Wp=Rn(),Vn=mt(),qq=Ii(),Gp=Mt(),Bq={message:"must NOT have additional properties",params:({params:e})=>Vn._`{additionalProperty: ${e.additionalProperty}}`},Hq={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Bq,code(e){let{gen:t,schema:r,parentSchema:i,data:n,errsCount:o,it:s}=e;if(!o)throw Error("ajv implementation error");let{allErrors:h,opts:v}=s;if(s.props=!0,v.removeAdditional!=="all"&&(0,Gp.alwaysValidSchema)(s,r))return;let b=(0,Wp.allSchemaProperties)(i.properties),_=(0,Wp.allSchemaProperties)(i.patternProperties);g(),e.ok(Vn._`${o} === ${qq.default.errors}`);function g(){t.forIn("key",n,(T)=>{if(!b.length&&!_.length)M(T);else t.if(S(T),()=>M(T))})}function S(T){let P;if(b.length>8){let $=(0,Gp.schemaRefOrVal)(s,i.properties,"properties");P=(0,Wp.isOwnProperty)(t,$,T)}else if(b.length)P=(0,Vn.or)(...b.map(($)=>Vn._`${T} === ${$}`));else P=Vn.nil;if(_.length)P=(0,Vn.or)(P,..._.map(($)=>Vn._`${(0,Wp.usePattern)(e,$)}.test(${T})`));return(0,Vn.not)(P)}function x(T){t.code(Vn._`delete ${n}[${T}]`)}function M(T){if(v.removeAdditional==="all"||v.removeAdditional&&r===!1){x(T);return}if(r===!1){if(e.setParams({additionalProperty:T}),e.error(),!h)t.break();return}if(typeof r=="object"&&!(0,Gp.alwaysValidSchema)(s,r)){let P=t.name("valid");if(v.removeAdditional==="failing")I(T,P,!1),t.if((0,Vn.not)(P),()=>{e.reset(),x(T)});else if(I(T,P),!h)t.if((0,Vn.not)(P),()=>t.break())}}function I(T,P,$){let R={keyword:"additionalProperties",dataProp:T,dataPropType:Gp.Type.Str};if($===!1)Object.assign(R,{compositeRule:!0,createErrors:!1,allErrors:!1});e.subschema(R,P)}}};Z3.default=Hq});var G3=Xe(function(W3){Object.defineProperty(W3,"__esModule",{value:!0});var Kq=fc(),K3=Rn(),p_=Mt(),V3=h_(),Vq={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e;if(o.opts.removeAdditional==="all"&&i.additionalProperties===void 0)V3.default.code(new Kq.KeywordCxt(o,V3.default,"additionalProperties"));let s=(0,K3.allSchemaProperties)(r);for(let g of s)o.definedProperties.add(g);if(o.opts.unevaluated&&s.length&&o.props!==!0)o.props=p_.mergeEvaluated.props(t,(0,p_.toHash)(s),o.props);let h=s.filter((g)=>!(0,p_.alwaysValidSchema)(o,r[g]));if(h.length===0)return;let v=t.name("valid");for(let g of h){if(b(g))_(g);else{if(t.if((0,K3.propertyInData)(t,n,g,o.opts.ownProperties)),_(g),!o.allErrors)t.else().var(v,!0);t.endIf()}e.it.definedProperties.add(g),e.ok(v)}function b(g){return o.opts.useDefaults&&!o.compositeRule&&r[g].default!==void 0}function _(g){e.subschema({keyword:"properties",schemaProp:g,dataProp:g},v)}}};W3.default=Vq});var eE=Xe(function(Q3){Object.defineProperty(Q3,"__esModule",{value:!0});var J3=Rn(),Jp=mt(),X3=Mt(),Y3=Mt(),Gq={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:i,parentSchema:n,it:o}=e,{opts:s}=o,h=(0,J3.allSchemaProperties)(r),v=h.filter((I)=>(0,X3.alwaysValidSchema)(o,r[I]));if(h.length===0||v.length===h.length&&(!o.opts.unevaluated||o.props===!0))return;let b=s.strictSchema&&!s.allowMatchingProperties&&n.properties,_=t.name("valid");if(o.props!==!0&&!(o.props instanceof Jp.Name))o.props=(0,Y3.evaluatedPropsToName)(t,o.props);let{props:g}=o;S();function S(){for(let I of h){if(b)x(I);if(o.allErrors)M(I);else t.var(_,!0),M(I),t.if(_)}}function x(I){for(let T in b)if(new RegExp(I).test(T))(0,X3.checkStrictMode)(o,`property ${T} matches pattern ${I} (use allowMatchingProperties)`)}function M(I){t.forIn("key",i,(T)=>{t.if(Jp._`${(0,J3.usePattern)(e,I)}.test(${T})`,()=>{let P=v.includes(I);if(!P)e.subschema({keyword:"patternProperties",schemaProp:I,dataProp:T,dataPropType:Y3.Type.Str},_);if(o.opts.unevaluated&&g!==!0)t.assign(Jp._`${g}[${T}]`,!0);else if(!P&&!o.allErrors)t.if((0,Jp.not)(_),()=>t.break())})})}}};Q3.default=Gq});var rE=Xe(function(tE){Object.defineProperty(tE,"__esModule",{value:!0});var Xq=Mt(),Yq={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,Xq.alwaysValidSchema)(i,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};tE.default=Yq});var iE=Xe(function(nE){Object.defineProperty(nE,"__esModule",{value:!0});var eB=Rn(),tB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eB.validateUnion,error:{message:"must match a schema in anyOf"}};nE.default=tB});var sE=Xe(function(oE){Object.defineProperty(oE,"__esModule",{value:!0});var Xp=mt(),nB=Mt(),iB={message:"must match exactly one schema in oneOf",params:({params:e})=>Xp._`{passingSchemas: ${e.passing}}`},oB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:iB,code(e){let{gen:t,schema:r,parentSchema:i,it:n}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let o=r,s=t.let("valid",!1),h=t.let("passing",null),v=t.name("_valid");e.setParams({passing:h}),t.block(b),e.result(s,()=>e.reset(),()=>e.error(!0));function b(){o.forEach((_,g)=>{let S;if((0,nB.alwaysValidSchema)(n,_))t.var(v,!0);else S=e.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},v);if(g>0)t.if(Xp._`${v} && ${s}`).assign(s,!1).assign(h,Xp._`[${h}, ${g}]`).else();t.if(v,()=>{if(t.assign(s,!0),t.assign(h,g),S)e.mergeEvaluated(S,Xp.Name)})})}}};oE.default=oB});var uE=Xe(function(aE){Object.defineProperty(aE,"__esModule",{value:!0});var aB=Mt(),uB={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let n=t.name("valid");r.forEach((o,s)=>{if((0,aB.alwaysValidSchema)(i,o))return;let h=e.subschema({keyword:"allOf",schemaProp:s},n);e.ok(n),e.mergeEvaluated(h)})}};aE.default=uB});var fE=Xe(function(dE){Object.defineProperty(dE,"__esModule",{value:!0});var Yp=mt(),cE=Mt(),cB={message:({params:e})=>Yp.str`must match "${e.ifClause}" schema`,params:({params:e})=>Yp._`{failingKeyword: ${e.ifClause}}`},dB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:cB,code(e){let{gen:t,parentSchema:r,it:i}=e;if(r.then===void 0&&r.else===void 0)(0,cE.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=lE(i,"then"),o=lE(i,"else");if(!n&&!o)return;let s=t.let("valid",!0),h=t.name("_valid");if(v(),e.reset(),n&&o){let _=t.let("ifClause");e.setParams({ifClause:_}),t.if(h,b("then",_),b("else",_))}else if(n)t.if(h,b("then"));else t.if((0,Yp.not)(h),b("else"));e.pass(s,()=>e.error(!0));function v(){let _=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);e.mergeEvaluated(_)}function b(_,g){return()=>{let S=e.subschema({keyword:_},h);if(t.assign(s,h),e.mergeValidEvaluated(S,s),g)t.assign(g,Yp._`${_}`);else e.setParams({ifClause:_})}}}};function lE(e,t){let r=e.schema[t];return r!==void 0&&!(0,cE.alwaysValidSchema)(e,r)}dE.default=dB});var pE=Xe(function(hE){Object.defineProperty(hE,"__esModule",{value:!0});var hB=Mt(),pB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===void 0)(0,hB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};hE.default=pB});var gE=Xe(function(mE){Object.defineProperty(mE,"__esModule",{value:!0});var gB=c_(),yB=$3(),vB=d_(),bB=C3(),_B=D3(),wB=F3(),SB=H3(),xB=h_(),kB=G3(),MB=eE(),EB=rE(),IB=iE(),TB=sE(),PB=uE(),$B=fE(),AB=pE();function RB(e=!1){let t=[EB.default,IB.default,TB.default,PB.default,$B.default,AB.default,SB.default,xB.default,wB.default,kB.default,MB.default];if(e)t.push(yB.default,bB.default);else t.push(gB.default,vB.default);return t.push(_B.default),t}mE.default=RB});var vE=Xe(function(yE){Object.defineProperty(yE,"__esModule",{value:!0});var tr=mt(),OB={message:({schemaCode:e})=>tr.str`must match format "${e}"`,params:({schemaCode:e})=>tr._`{format: ${e}}`},DB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:OB,code(e,t){let{gen:r,data:i,$data:n,schema:o,schemaCode:s,it:h}=e,{opts:v,errSchemaPath:b,schemaEnv:_,self:g}=h;if(!v.validateFormats)return;if(n)S();else x();function S(){let M=r.scopeValue("formats",{ref:g.formats,code:v.code.formats}),I=r.const("fDef",tr._`${M}[${s}]`),T=r.let("fType"),P=r.let("format");r.if(tr._`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>r.assign(T,tr._`${I}.type || "string"`).assign(P,tr._`${I}.validate`),()=>r.assign(T,tr._`"string"`).assign(P,I)),e.fail$data((0,tr.or)($(),R()));function $(){if(v.strictSchema===!1)return tr.nil;return tr._`${s} && !${P}`}function R(){let C=_.$async?tr._`(${I}.async ? await ${P}(${i}) : ${P}(${i}))`:tr._`${P}(${i})`,N=tr._`(typeof ${P} == "function" ? ${C} : ${P}.test(${i}))`;return tr._`${P} && ${P} !== true && ${T} === ${t} && !${N}`}}function x(){let M=g.formats[o];if(!M){$();return}if(M===!0)return;let[I,T,P]=R(M);if(I===t)e.pass(C());function $(){if(v.strictSchema===!1){g.logger.warn(N());return}throw Error(N());function N(){return`unknown format "${o}" ignored in schema at path "${b}"`}}function R(N){let B=N instanceof RegExp?(0,tr.regexpCode)(N):v.code.formats?tr._`${v.code.formats}${(0,tr.getProperty)(o)}`:void 0,ie=r.scopeValue("formats",{key:o,ref:N,code:B});if(typeof N=="object"&&!(N instanceof RegExp))return[N.type||"string",N.validate,tr._`${ie}.validate`];return["string",N,ie]}function C(){if(typeof M=="object"&&!(M instanceof RegExp)&&M.async){if(!_.$async)throw Error("async format in sync schema");return tr._`await ${P}(${i})`}return typeof T=="function"?tr._`${P}(${i})`:tr._`${P}.test(${i})`}}}};yE.default=DB});var _E=Xe(function(bE){Object.defineProperty(bE,"__esModule",{value:!0});var zB=vE(),jB=[zB.default];bE.default=jB});var xE=Xe(function(wE){Object.defineProperty(wE,"__esModule",{value:!0});wE.contentVocabulary=wE.metadataVocabulary=void 0;wE.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];wE.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var EE=Xe(function(ME){Object.defineProperty(ME,"__esModule",{value:!0});var FB=W4(),qB=w3(),BB=gE(),HB=_E(),kE=xE(),ZB=[FB.default,qB.default,(0,BB.default)(),HB.default,kE.metadataVocabulary,kE.contentVocabulary];ME.default=ZB});var $E=Xe(function(TE){Object.defineProperty(TE,"__esModule",{value:!0});TE.DiscrError=void 0;var IE;(function(e){e.Tag="tag",e.Mapping="mapping"})(IE||(TE.DiscrError=IE={}))});var CE=Xe(function(RE){Object.defineProperty(RE,"__esModule",{value:!0});var fa=mt(),m_=$E(),AE=Dp(),VB=hc(),WB=Mt(),GB={message:({params:{discrError:e,tagName:t}})=>e===m_.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>fa._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},JB={keyword:"discriminator",type:"object",schemaType:"object",error:GB,code(e){let{gen:t,data:r,schema:i,parentSchema:n,it:o}=e,{oneOf:s}=n;if(!o.opts.discriminator)throw Error("discriminator: requires discriminator option");let h=i.propertyName;if(typeof h!="string")throw Error("discriminator: requires propertyName");if(i.mapping)throw Error("discriminator: mapping is not supported");if(!s)throw Error("discriminator: requires oneOf keyword");let v=t.let("valid",!1),b=t.const("tag",fa._`${r}${(0,fa.getProperty)(h)}`);t.if(fa._`typeof ${b} == "string"`,()=>_(),()=>e.error(!1,{discrError:m_.DiscrError.Tag,tag:b,tagName:h})),e.ok(v);function _(){let x=S();t.if(!1);for(let M in x)t.elseIf(fa._`${b} === ${M}`),t.assign(v,g(x[M]));t.else(),e.error(!1,{discrError:m_.DiscrError.Mapping,tag:b,tagName:h}),t.endIf()}function g(x){let M=t.name("valid"),I=e.subschema({keyword:"oneOf",schemaProp:x},M);return e.mergeEvaluated(I,fa.Name),M}function S(){var x;let M={},I=P(n),T=!0;for(let C=0;C<s.length;C++){let N=s[C];if((N===null||N===void 0?void 0:N.$ref)&&!(0,WB.schemaHasRulesButRef)(N,o.self.RULES)){let ie=N.$ref;if(N=AE.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,ie),N instanceof AE.SchemaEnv)N=N.schema;if(N===void 0)throw new VB.default(o.opts.uriResolver,o.baseId,ie)}let B=(x=N===null||N===void 0?void 0:N.properties)===null||x===void 0?void 0:x[h];if(typeof B!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);T=T&&(I||P(N)),$(B,C)}if(!T)throw Error(`discriminator: "${h}" must be required`);return M;function P({required:C}){return Array.isArray(C)&&C.includes(h)}function $(C,N){if(C.const)R(C.const,N);else if(C.enum)for(let B of C.enum)R(B,N);else throw Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function R(C,N){if(typeof C!="string"||C in M)throw Error(`discriminator: "${h}" values must be unique strings`);M[C]=N}}}};RE.default=JB});var OE=Xe(function(H_e,YB){YB.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 y_=Xe(function(ln,g_){Object.defineProperty(ln,"__esModule",{value:!0});ln.MissingRefError=ln.ValidationError=ln.CodeGen=ln.Name=ln.nil=ln.stringify=ln.str=ln._=ln.KeywordCxt=ln.Ajv=void 0;var QB=j4(),eH=EE(),tH=CE(),DE=OE(),rH=["/properties"],Qp="http://json-schema.org/draft-07/schema";class Mc extends QB.default{_addVocabularies(){if(super._addVocabularies(),eH.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(tH.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(DE,rH):DE;this.addMetaSchema(e,Qp,!1),this.refs["http://json-schema.org/schema"]=Qp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Qp)?Qp:void 0)}}ln.Ajv=Mc;g_.exports=ln=Mc;g_.exports.Ajv=Mc;Object.defineProperty(ln,"__esModule",{value:!0});ln.default=Mc;var nH=fc();Object.defineProperty(ln,"KeywordCxt",{enumerable:!0,get:function(){return nH.KeywordCxt}});var ha=mt();Object.defineProperty(ln,"_",{enumerable:!0,get:function(){return ha._}});Object.defineProperty(ln,"str",{enumerable:!0,get:function(){return ha.str}});Object.defineProperty(ln,"stringify",{enumerable:!0,get:function(){return ha.stringify}});Object.defineProperty(ln,"nil",{enumerable:!0,get:function(){return ha.nil}});Object.defineProperty(ln,"Name",{enumerable:!0,get:function(){return ha.Name}});Object.defineProperty(ln,"CodeGen",{enumerable:!0,get:function(){return ha.CodeGen}});var iH=Cp();Object.defineProperty(ln,"ValidationError",{enumerable:!0,get:function(){return iH.default}});var oH=hc();Object.defineProperty(ln,"MissingRefError",{enumerable:!0,get:function(){return oH.default}})});var ZE=Xe(function(BE){Object.defineProperty(BE,"__esModule",{value:!0});BE.formatNames=BE.fastFormats=BE.fullFormats=void 0;function ri(e,t){return{validate:e,compare:t}}BE.fullFormats={date:ri(UE,w_),time:ri(b_(!0),S_),"date-time":ri(NE(!0),FE),"iso-time":ri(b_(),LE),"iso-date-time":ri(NE(),qE),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:hH,"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:_H,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:pH,int32:{type:"number",validate:yH},int64:{type:"number",validate:vH},float:{type:"number",validate:jE},double:{type:"number",validate:jE},password:!0,binary:!0};BE.fastFormats={...BE.fullFormats,date:ri(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,w_),time:ri(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,S_),"date-time":ri(/^\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,FE),"iso-time":ri(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,LE),"iso-date-time":ri(/^\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,qE),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};BE.formatNames=Object.keys(BE.fullFormats);function uH(e){return e%4===0&&(e%100!==0||e%400===0)}var lH=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,cH=[0,31,28,31,30,31,30,31,31,30,31,30,31];function UE(e){let t=lH.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&uH(r)?29:cH[i])}function w_(e,t){if(!(e&&t))return;if(e>t)return 1;if(e<t)return-1;return 0}var v_=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function b_(e){return function(r){let i=v_.exec(r);if(!i)return!1;let n=+i[1],o=+i[2],s=+i[3],h=i[4],v=i[5]==="-"?-1:1,b=+(i[6]||0),_=+(i[7]||0);if(b>23||_>59||e&&!h)return!1;if(n<=23&&o<=59&&s<60)return!0;let g=o-_*v,S=n-b*v-(g<0?1:0);return(S===23||S===-1)&&(g===59||g===-1)&&s<61}}function S_(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();if(!(r&&i))return;return r-i}function LE(e,t){if(!(e&&t))return;let r=v_.exec(e),i=v_.exec(t);if(!(r&&i))return;if(e=r[1]+r[2]+r[3],t=i[1]+i[2]+i[3],e>t)return 1;if(e<t)return-1;return 0}var __=/t|\s/i;function NE(e){let t=b_(e);return function(i){let n=i.split(__);return n.length===2&&UE(n[0])&&t(n[1])}}function FE(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),i=new Date(t).valueOf();if(!(r&&i))return;return r-i}function qE(e,t){if(!(e&&t))return;let[r,i]=e.split(__),[n,o]=t.split(__),s=w_(r,n);if(s===void 0)return;return s||S_(i,o)}var dH=/\/|:/,fH=/^(?:[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 hH(e){return dH.test(e)&&fH.test(e)}var zE=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function pH(e){return zE.lastIndex=0,zE.test(e)}var mH=-2147483648,gH=2147483647;function yH(e){return Number.isInteger(e)&&e<=gH&&e>=mH}function vH(e){return Number.isInteger(e)}function jE(){return!0}var bH=/[^\\]\\Z/;function _H(e){if(bH.test(e))return!1;try{return new RegExp(e),!0}catch(t){return!1}}});var VE=Xe(function(KE){Object.defineProperty(KE,"__esModule",{value:!0});KE.formatLimitDefinition=void 0;var SH=y_(),Wn=mt(),uo=Wn.operators,em={formatMaximum:{okStr:"<=",ok:uo.LTE,fail:uo.GT},formatMinimum:{okStr:">=",ok:uo.GTE,fail:uo.LT},formatExclusiveMaximum:{okStr:"<",ok:uo.LT,fail:uo.GTE},formatExclusiveMinimum:{okStr:">",ok:uo.GT,fail:uo.LTE}},xH={message:({keyword:e,schemaCode:t})=>Wn.str`should be ${em[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Wn._`{comparison: ${em[e].okStr}, limit: ${t}}`};KE.formatLimitDefinition={keyword:Object.keys(em),type:"string",schemaType:"string",$data:!0,error:xH,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:o}=e,{opts:s,self:h}=o;if(!s.validateFormats)return;let v=new SH.KeywordCxt(o,h.RULES.all.format.definition,"format");if(v.$data)b();else _();function b(){let S=t.scopeValue("formats",{ref:h.formats,code:s.code.formats}),x=t.const("fmt",Wn._`${S}[${v.schemaCode}]`);e.fail$data((0,Wn.or)(Wn._`typeof ${x} != "object"`,Wn._`${x} instanceof RegExp`,Wn._`typeof ${x}.compare != "function"`,g(x)))}function _(){let S=v.schema,x=h.formats[S];if(!x||x===!0)return;if(typeof x!="object"||x instanceof RegExp||typeof x.compare!="function")throw Error(`"${n}": format "${S}" does not define "compare" function`);let M=t.scopeValue("formats",{key:S,ref:x,code:s.code.formats?Wn._`${s.code.formats}${(0,Wn.getProperty)(S)}`:void 0});e.fail$data(g(M))}function g(S){return Wn._`${S}.compare(${r}, ${i}) ${em[n].fail} 0`}},dependencies:["format"]};var kH=(e)=>(e.addKeyword(KE.formatLimitDefinition),e);KE.default=kH});var XE=Xe(function(Ec,JE){Object.defineProperty(Ec,"__esModule",{value:!0});var pa=ZE(),EH=VE(),M_=mt(),WE=new M_.Name("fullFormats"),IH=new M_.Name("fastFormats"),E_=(e,t={keywords:!0})=>{if(Array.isArray(t))return GE(e,t,pa.fullFormats,WE),e;let[r,i]=t.mode==="fast"?[pa.fastFormats,IH]:[pa.fullFormats,WE],n=t.formats||pa.formatNames;if(GE(e,n,r,i),t.keywords)(0,EH.default)(e);return e};E_.get=(e,t="full")=>{let i=(t==="fast"?pa.fastFormats:pa.fullFormats)[e];if(!i)throw Error(`Unknown format "${e}"`);return i};function GE(e,t,r,i){var n,o;(n=(o=e.opts.code).formats)!==null&&n!==void 0||(o.formats=M_._`require("ajv-formats/dist/formats").${i}`);for(let s of t)e.addFormat(s,r[s])}JE.exports=Ec=E_;Object.defineProperty(Ec,"__esModule",{value:!0});Ec.default=E_});var LH=typeof String.prototype.isWellFormed==="function"?Function.prototype.call.bind(String.prototype.isWellFormed):void 0,FH=typeof String.prototype.toWellFormed==="function"?Function.prototype.call.bind(String.prototype.toWellFormed):void 0;class On extends Error{}function im(e,t,r){return new Promise((i,n)=>{if(t?.aborted){if(r?.throwOnAbort||r?.abortError)n(r.abortError?.()??Error("aborted"));else i();return}let o=setTimeout((h,v,b)=>{h?.removeEventListener("abort",v),b()},e,t,s,i);function s(){if(clearTimeout(o),r?.throwOnAbort||r?.abortError)n(r.abortError?.()??Error("aborted"));else i()}if(t?.addEventListener("abort",s,{once:!0}),r?.unref)o.unref()})}var{writeFileSync:nme}=(()=>({}));var{realpathSync:tS}=(()=>({}));function b8(){this.__data__=[],this.size=0}var L_=b8;function _8(e,t){return e===t||e!==e&&t!==t}var F_=_8;function w8(e,t){var r=e.length;while(r--)if(F_(e[r][0],t))return r;return-1}var Ai=w8;var S8=Array.prototype,x8=S8.splice;function k8(e){var t=this.__data__,r=Ai(t,e);if(r<0)return!1;var i=t.length-1;if(r==i)t.pop();else x8.call(t,r,1);return--this.size,!0}var q_=k8;function M8(e){var t=this.__data__,r=Ai(t,e);return r<0?void 0:t[r][1]}var B_=M8;function E8(e){return Ai(this.__data__,e)>-1}var H_=E8;function I8(e,t){var r=this.__data__,i=Ai(r,e);if(i<0)++this.size,r.push([e,t]);else r[i][1]=t;return this}var Z_=I8;function Yo(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}Yo.prototype.clear=L_;Yo.prototype.delete=q_;Yo.prototype.get=B_;Yo.prototype.has=H_;Yo.prototype.set=Z_;var K_=Yo;var T8=typeof global=="object"&&global&&global.Object===Object&&global,V_=T8;var P8=typeof self=="object"&&self&&self.Object===Object&&self,$8=V_||P8||Function("return this")(),Qo=$8;var A8=Qo.Symbol,es=A8;var W_=Object.prototype,R8=W_.hasOwnProperty,C8=W_.toString,ya=es?es.toStringTag:void 0;function O8(e){var t=R8.call(e,ya),r=e[ya];try{e[ya]=void 0;var i=!0}catch(o){}var n=C8.call(e);if(i)if(t)e[ya]=r;else delete e[ya];return n}var G_=O8;var D8=Object.prototype,N8=D8.toString;function z8(e){return N8.call(e)}var J_=z8;var j8="[object Null]",U8="[object Undefined]",X_=es?es.toStringTag:void 0;function L8(e){if(e==null)return e===void 0?U8:j8;return X_&&X_ in Object(e)?G_(e):J_(e)}var Y_=L8;function F8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tc=F8;var q8="[object AsyncFunction]",B8="[object Function]",H8="[object GeneratorFunction]",Z8="[object Proxy]";function K8(e){if(!Tc(e))return!1;var t=Y_(e);return t==B8||t==H8||t==q8||t==Z8}var Q_=K8;var V8=Qo["__core-js_shared__"],Pc=V8;var e1=function(){var e=/[^.]+$/.exec(Pc&&Pc.keys&&Pc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function W8(e){return!!e1&&e1 in e}var t1=W8;var G8=Function.prototype,J8=G8.toString;function X8(e){if(e!=null){try{return J8.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var r1=X8;var Y8=/[\\^$.*+?()[\]{}|]/g,Q8=/^\[object .+?Constructor\]$/,eI=Function.prototype,tI=Object.prototype,rI=eI.toString,nI=tI.hasOwnProperty,iI=RegExp("^"+rI.call(nI).replace(Y8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oI(e){if(!Tc(e)||t1(e))return!1;var t=Q_(e)?iI:Q8;return t.test(r1(e))}var n1=oI;function sI(e,t){return e==null?void 0:e[t]}var i1=sI;function aI(e,t){var r=i1(e,t);return n1(r)?r:void 0}var $c=aI;var uI=$c(Qo,"Map"),o1=uI;var lI=$c(Object,"create"),ni=lI;function cI(){this.__data__=ni?ni(null):{},this.size=0}var s1=cI;function dI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var a1=dI;var fI="__lodash_hash_undefined__",hI=Object.prototype,pI=hI.hasOwnProperty;function mI(e){var t=this.__data__;if(ni){var r=t[e];return r===fI?void 0:r}return pI.call(t,e)?t[e]:void 0}var u1=mI;var gI=Object.prototype,yI=gI.hasOwnProperty;function vI(e){var t=this.__data__;return ni?t[e]!==void 0:yI.call(t,e)}var l1=vI;var bI="__lodash_hash_undefined__";function _I(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ni&&t===void 0?bI:t,this}var c1=_I;function ts(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}ts.prototype.clear=s1;ts.prototype.delete=a1;ts.prototype.get=u1;ts.prototype.has=l1;ts.prototype.set=c1;var om=ts;function wI(){this.size=0,this.__data__={hash:new om,map:new(o1||K_),string:new om}}var d1=wI;function SI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var f1=SI;function xI(e,t){var r=e.__data__;return f1(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ri=xI;function kI(e){var t=Ri(this,e).delete(e);return this.size-=t?1:0,t}var h1=kI;function MI(e){return Ri(this,e).get(e)}var p1=MI;function EI(e){return Ri(this,e).has(e)}var m1=EI;function II(e,t){var r=Ri(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var g1=II;function rs(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var i=e[t];this.set(i[0],i[1])}}rs.prototype.clear=d1;rs.prototype.delete=h1;rs.prototype.get=p1;rs.prototype.has=m1;rs.prototype.set=g1;var sm=rs;var TI="Expected a function";function am(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw TypeError(TI);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(am.Cache||sm),r}am.Cache=sm;var Mr=am;var y1=function(){return"/"};var va=()=>globalThis.crypto.randomUUID();Kr();Kr();var Jw="[\\w-]{1,63}",SA=new RegExp(`^${Jw}$`),eV=new RegExp(`^a(?:${Jw}-)?[0-9a-f]{16}$`);function Xw(e,t){let r=Buffer.from(t.replace(/-/g,""),"hex"),i=Bm("sha1").update(r).update(Buffer.from(e,"utf8")).digest();i[6]=i[6]&15|80,i[8]=i[8]&63|128;let n=i.subarray(0,16).toString("hex");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20,32)}`}var xA="3ab19d7e-9f35-45c2-926e-75e271cc60b3";function Yw(){let e=process.env.CLAUDE_CODE_REMOTE_SESSION_ID?.trim();return e?Xw(e,xA):null}var Qw=globalThis.process?.getBuiltinModule?.("async_hooks"),Hm=Qw?(e)=>Qw.AsyncResource.bind(e):(e)=>e;function yo(e){if(!e)return!1;if(typeof e==="boolean")return e;let t=String(e).toLowerCase().trim();return["1","true","yes","on"].includes(t)}function zi(){let e=new Set;return{subscribe(t){let r=Hm(t);return e.add(r),()=>{e.delete(r)}},emit(...t){let r;for(let i of e)try{i(...t)}catch(n){(r??=[]).push(n)}if(r)throw r.length===1?r[0]:AggregateError(r,"Signal listener(s) threw")},clear(){e.clear()}}}function eS(){return{sent:new Set,rejected:new Set}}var MA={renderTarget:"ink",workspace:"local",canDrive:!0,transcriptSource:"local-jsonl",remote:null};function EA(){let e="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof tS==="function"){let r=y1();try{e=rS(tS(r))}catch{e=rS(r)}}return{originalCwd:e,projectRoot:e,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,startTime:Date.now(),sessionLogicalStartTime:void 0,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:e,modelUsage:{},mainLoopModelOverride:void 0,refusalFallbackOccurred:!1,refusalFallbackHeaderArmed:!1,refusalFallbackLatchOriginRequestId:void 0,refusalFallbackModelLatch:void 0,sdkDialogHostActive:!1,sdkSupportedDialogKinds:void 0,sdkSupportedDialogKindsSource:void 0,replConfigArgv:[],settingsEffortAtStartup:void 0,initialMainLoopModel:void 0,resolvedOrgDefault:void 0,modelStrings:null,isInteractive:!1,printOutputFormat:null,thinkingDisplayExplicit:!1,permissionPromptToolName:void 0,attacherCaps:null,hasStreamingInput:!1,singleShotPrintSession:!1,modelOverrideOptOutForSession:!1,rendererMode:void 0,strictToolResultPairing:!1,memoryToggledOff:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,searchToolsOptIn:!1,clientType:"cli",sessionStartType:"fresh",questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,oauthTokenFromBgSnapshot:!1,oauthScopesFromFd:void 0,apiKeyFromFd:void 0,gatewayAuth:null,gatewayRefreshInFlight:null,startupPolicySnapshot:void 0,flagSettingsPath:void 0,flagSettingsExpectedContent:void 0,flagSettingsInline:null,parentManagedSettings:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:Yw()??va(),mainAgentId:null,parentSessionId:void 0,loggerProvider:null,eventLogger:null,eventLoggerOwner:null,pendingOTelEvents:[],otelWindowCloseCause:null,hostOtel:{rateTokens:null,rateLastRefillMs:null,featureOkLogged:!1,reportedDropReasons:new Set},meterProvider:null,tracerProvider:null,cachedTelemetryResource:null,cachedOtlpHttpAgentFactory:{direct:null,proxied:null},foundryDeploymentCapabilities:new Map,agentColorMap:new Map,lastAPIRequest:null,lastCancelledAPIMessageId:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],inlinePluginsNoMcp:[],inlinePluginUrls:[],syncedPluginDirs:[],chromeFlagOverride:void 0,teammateAgentId:void 0,onboardingShownThisSession:!1,useCoworkPlugins:!1,disableSlashCommands:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],loopChainStartedAt:Object.create(null),loopTickInFlightPrompt:null,loopConsecutiveKeepalives:0,loopEnded:!1,sessionCreatedTeams:new Set,surfacedHookSpawnFailures:new Set,humanAttachmentDigests:new Map,bareMcpServerMatchersWarned:new Set,pendingPrLinks:new Set,inheritedTeamName:void 0,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,longContext1mCreditsBlocked:!1,fableCreditsRequired:!1,fableConsentSessionFallback:!1,fableBridgeDialogTimedOut:!1,fableConsentDialogInteracted:!1,sdkOAuthTokenRefreshCallback:null,hostAuthTokenRefreshCallback:null,mainThreadAgentType:void 0,mainThreadAgentHooks:void 0,sessionSkillAllowlist:void 0,caps:MA,replBridgeActive:!1,mainLoopBusy:!1,directConnectServerUrl:void 0,mcpConnectNonBlocking:!1,backgroundAutoModeSetupInFlight:!1,deferredToolStubGateLatch:null,strictMcpConfig:!1,cliSessionConfigCarried:!1,forkRestrictedLaunchConfig:!1,forkReplayLaunchConfig:{},sessionApprovedMcpServers:[],activeRoutine:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,promptCache1hAllowlist:null,stickyBetas:eS(),thinkingTypeOverrides:new Map,perTurnEffortPins:new Map,effortUnsupportedModels:new Set,midConvCachePromotionRejected:!1,perTurnEffortOkEmitted:!1,inferenceProfileBackingModels:new Map,promptId:null,promptIndex:0,lastMainRequestId:void 0,lastMainThreadCacheTtlMs:null,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}var IA=EA(),TA=()=>{return};function Zm(){return TA()?.sessionId??IA.sessionId}var PA=zi(),zV=PA.subscribe;function rS(e){return process.platform==="darwin"?e.normalize("NFC"):e}var $A=zi(),jV=$A.subscribe;var AA=zi(),UV=AA.subscribe;var RA=zi();var LV=RA.subscribe;var CA=zi();var FV=CA.subscribe;var{appendFile:V2,mkdir:vC,rename:W2,stat:bC,symlink:_C,unlink:Cv}=(()=>({}));Nn();function cS({writeFn:e,flushIntervalMs:t=1000,maxBufferSize:r=100,maxBufferBytes:i=1/0,immediateMode:n=!1}){let o=[],s=0,h=null,v=null;function b(){if(h)clearTimeout(h),h=null}function _(M){try{e(M)}catch{}}function g(){if(v)_(v.join("")),v=null;if(o.length===0)return;_(o.join("")),o=[],s=0,b()}function S(){if(!h)h=setTimeout(g,t)}function x(){if(v){v.push(...o),o=[],s=0,b();return}let M=o;o=[],s=0,b(),v=M,setImmediate(()=>{let I=v;if(v=null,I)_(I.join(""))})}return{write(M){if(n){_(M);return}if(o.push(M),s+=M.length,S(),o.length>=r||s>=i)x()},flush:g,dispose(){g()}}}var{realpathSync:KV}=(()=>({}));var Gc=function(){return"/"};Nn();function Jc(e){return process.platform==="darwin"?e.normalize("NFC"):e}function Gm(e){return/^[\\/]{2}/.test(e)}function fS(e){return/(^|[\\/])\.{1,2}([\\/]|$)/.test(e)}function hS(e){if(!e.startsWith("/"))return null;let t=[];for(let r of e.split("/")){if(r===""||r===".")continue;if(r===".."){t.pop();continue}if(t.push(r),t.length===2&&t[0].toLowerCase()==="net")return"/"+t.join("/")}return null}function Jm(e){return/^[\\/]{2}wsl(\$|\.localhost)[\\/]/i.test(e)}function NA(e){if(e.startsWith("\\\\?\\UNC\\"))return"\\\\"+e.slice(8);if(e.startsWith("\\\\?\\")&&e.length>=7&&e[5]===":")return e.slice(4);return e}function pS(e){if(/^\\\\\?\\volume\{/i.test(e))return dS(e);let t=NA(e);if(t!==e&&dS(t))return!0;return Gm(t)&&!Jm(t)}function dS(e){return fS(e)||e.includes("/")}function zA(e){if(typeof e==="function")return e;if(Symbol.asyncDispose in e)return()=>e[Symbol.asyncDispose]();return()=>e[Symbol.dispose]()}class Xm{#e=new Set;register(e){let t=zA(e);this.#e.add(t);let r=()=>{this.#e.delete(t)};return Object.assign(r,{[Symbol.dispose]:r})}async drain(){let e=Array.from(this.#e);this.#e.clear(),await Promise.all(e.map(async(t)=>t()))}async[Symbol.asyncDispose](){await this.drain()}get sizeForTesting(){return this.#e.size}}var jA=new Xm;function mS(e){return jA.register(e)}var JV=new Xm;var gS=Mr((e)=>{if(!e||e.trim()==="")return null;let t=e.split(",").map((o)=>o.trim()).filter(Boolean);if(t.length===0)return null;let r=t.some((o)=>o.startsWith("!")),i=t.some((o)=>!o.startsWith("!"));if(r&&i)return null;let n=t.map((o)=>o.replace(/^!/,"").toLowerCase());return{include:r?[]:n,exclude:r?n:[],isExclusive:r}});function UA(e){let t=[],r=e.match(/^MCP server ["']([^"']+)["']/);if(r&&r[1])t.push("mcp"),t.push(r[1].toLowerCase());else{let o=e.match(/^([^:[]+):/);if(o&&o[1])t.push(o[1].trim().toLowerCase())}let i=e.match(/^\[([^\]]+)]/);if(i&&i[1])t.push(i[1].trim().toLowerCase());if(e.toLowerCase().includes("1p event:"))t.push("1p");let n=e.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(n&&n[1]){let o=n[1].trim().toLowerCase();if(o.length<30&&!o.includes(" "))t.push(o)}return Array.from(new Set(t))}function LA(e,t){if(!t)return!0;if(e.length===0)return!1;if(t.isExclusive)return!e.some((r)=>t.exclude.includes(r));else return e.some((r)=>t.include.includes(r))}function yS(e,t){if(!t)return!0;let r=UA(e);return LA(r,t)}Nn();var Fe={};wn(Fe,{xid:()=>L9,void:()=>a5,uuidv7:()=>C9,uuidv6:()=>R9,uuidv4:()=>A9,uuid:()=>$9,url:()=>O9,uppercase:()=>vu,unknown:()=>qt,union:()=>Dt,undefined:()=>o5,ulid:()=>U9,uint64:()=>n5,uint32:()=>e5,tuple:()=>d5,trim:()=>ku,treeifyError:()=>ed,transform:()=>Uy,toUpperCase:()=>Eu,toLowerCase:()=>Mu,toJSONSchema:()=>xs,templateLiteral:()=>_5,symbol:()=>i5,superRefine:()=>Mx,success:()=>v5,stringbool:()=>x5,stringFormat:()=>J9,string:()=>de,strictObject:()=>c5,startsWith:()=>_u,size:()=>mu,setErrorMap:()=>E5,set:()=>p5,safeParseAsync:()=>my,safeParse:()=>py,registry:()=>Va,regexes:()=>Fi,regex:()=>gu,refine:()=>kx,record:()=>Nt,readonly:()=>vx,property:()=>oy,promise:()=>w5,prettifyError:()=>td,preprocess:()=>Xf,prefault:()=>dx,positive:()=>ty,pipe:()=>Hf,partialRecord:()=>f5,parseAsync:()=>hy,parse:()=>fy,overwrite:()=>pi,optional:()=>Lt,object:()=>Qe,number:()=>It,nullish:()=>y5,nullable:()=>Bf,null:()=>Zf,normalize:()=>xu,nonpositive:()=>ny,nonoptional:()=>fx,nonnegative:()=>iy,never:()=>Kf,negative:()=>ry,nativeEnum:()=>m5,nanoid:()=>N9,nan:()=>b5,multipleOf:()=>Eo,minSize:()=>Io,minLength:()=>Hi,mime:()=>Su,maxSize:()=>_s,maxLength:()=>ws,map:()=>h5,lte:()=>kn,lt:()=>fi,lowercase:()=>yu,looseObject:()=>Lr,locales:()=>vs,literal:()=>tt,length:()=>Ss,lazy:()=>wx,ksuid:()=>F9,keyof:()=>l5,jwt:()=>G9,json:()=>k5,iso:()=>ks,ipv6:()=>B9,ipv4:()=>q9,intersection:()=>Cu,int64:()=>r5,int32:()=>Q9,int:()=>gy,instanceof:()=>S5,includes:()=>bu,guid:()=>P9,gte:()=>rn,gt:()=>hi,globalRegistry:()=>tn,getErrorMap:()=>I5,function:()=>Nf,formatError:()=>fs,float64:()=>Y9,float32:()=>X9,flattenError:()=>ds,file:()=>g5,enum:()=>Vr,endsWith:()=>wu,emoji:()=>D9,email:()=>T9,e164:()=>W9,discriminatedUnion:()=>Gf,date:()=>u5,custom:()=>By,cuid2:()=>j9,cuid:()=>z9,core:()=>zn,config:()=>Qt,coerce:()=>Hy,clone:()=>Ur,cidrv6:()=>Z9,cidrv4:()=>H9,check:()=>xx,catch:()=>mx,boolean:()=>rr,bigint:()=>t5,base64url:()=>V9,base64:()=>K9,array:()=>bt,any:()=>s5,_default:()=>lx,_ZodString:()=>yy,ZodXID:()=>My,ZodVoid:()=>YS,ZodUnknown:()=>JS,ZodUnion:()=>Ny,ZodUndefined:()=>VS,ZodUUID:()=>mi,ZodURL:()=>by,ZodULID:()=>ky,ZodType:()=>yt,ZodTuple:()=>rx,ZodTransform:()=>jy,ZodTemplateLiteral:()=>bx,ZodSymbol:()=>KS,ZodSuccess:()=>hx,ZodStringFormat:()=>Ut,ZodString:()=>Pu,ZodSet:()=>ix,ZodRecord:()=>zy,ZodRealError:()=>Ms,ZodReadonly:()=>yx,ZodPromise:()=>Sx,ZodPrefault:()=>cx,ZodPipe:()=>qy,ZodOptional:()=>Ly,ZodObject:()=>Wf,ZodNumberFormat:()=>Es,ZodNumber:()=>$u,ZodNullable:()=>ax,ZodNull:()=>WS,ZodNonOptional:()=>Fy,ZodNever:()=>XS,ZodNanoID:()=>wy,ZodNaN:()=>gx,ZodMap:()=>nx,ZodLiteral:()=>ox,ZodLazy:()=>_x,ZodKSUID:()=>Ey,ZodJWT:()=>Oy,ZodIssueCode:()=>M5,ZodIntersection:()=>tx,ZodISOTime:()=>Lf,ZodISODuration:()=>Ff,ZodISODateTime:()=>jf,ZodISODate:()=>Uf,ZodIPv6:()=>Ty,ZodIPv4:()=>Iy,ZodGUID:()=>qf,ZodFile:()=>sx,ZodError:()=>E9,ZodEnum:()=>Tu,ZodEmoji:()=>_y,ZodEmail:()=>vy,ZodE164:()=>Cy,ZodDiscriminatedUnion:()=>ex,ZodDefault:()=>ux,ZodDate:()=>Vf,ZodCustomStringFormat:()=>ZS,ZodCustom:()=>Jf,ZodCatch:()=>px,ZodCUID2:()=>xy,ZodCUID:()=>Sy,ZodCIDRv6:()=>$y,ZodCIDRv4:()=>Py,ZodBoolean:()=>Au,ZodBigIntFormat:()=>Dy,ZodBigInt:()=>Ru,ZodBase64URL:()=>Ry,ZodBase64:()=>Ay,ZodArray:()=>QS,ZodAny:()=>GS,TimePrecision:()=>ff,NEVER:()=>Xc,$output:()=>lf,$input:()=>cf,$brand:()=>Yc});var zn={};wn(zn,{version:()=>t0,util:()=>Be,treeifyError:()=>ed,toJSONSchema:()=>xs,toDotPath:()=>_S,safeParseAsync:()=>Li,safeParse:()=>Ui,registry:()=>Va,regexes:()=>Fi,prettifyError:()=>td,parseAsync:()=>So,parse:()=>wo,locales:()=>vs,isValidJWT:()=>jS,isValidBase64URL:()=>zS,isValidBase64:()=>a0,globalRegistry:()=>tn,globalConfig:()=>Ra,function:()=>Nf,formatError:()=>fs,flattenError:()=>ds,config:()=>Qt,clone:()=>Ur,_xid:()=>ou,_void:()=>Tf,_uuidv7:()=>Ya,_uuidv6:()=>Xa,_uuidv4:()=>Ja,_uuid:()=>Ga,_url:()=>Qa,_uppercase:()=>vu,_unknown:()=>Mo,_union:()=>i9,_undefined:()=>kf,_ulid:()=>iu,_uint64:()=>Sf,_uint32:()=>vf,_tuple:()=>sy,_trim:()=>ku,_transform:()=>h9,_toUpperCase:()=>Eu,_toLowerCase:()=>Mu,_templateLiteral:()=>S9,_symbol:()=>xf,_success:()=>v9,_stringbool:()=>Of,_stringFormat:()=>Df,_string:()=>df,_startsWith:()=>_u,_size:()=>mu,_set:()=>l9,_safeParseAsync:()=>od,_safeParse:()=>id,_regex:()=>gu,_refine:()=>Cf,_record:()=>a9,_readonly:()=>w9,_property:()=>oy,_promise:()=>k9,_positive:()=>ty,_pipe:()=>_9,_parseAsync:()=>nd,_parse:()=>rd,_overwrite:()=>pi,_optional:()=>p9,_number:()=>hf,_nullable:()=>m9,_null:()=>Mf,_normalize:()=>xu,_nonpositive:()=>ny,_nonoptional:()=>y9,_nonnegative:()=>iy,_never:()=>If,_negative:()=>ry,_nativeEnum:()=>d9,_nanoid:()=>tu,_nan:()=>$f,_multipleOf:()=>Eo,_minSize:()=>Io,_minLength:()=>Hi,_min:()=>rn,_mime:()=>Su,_maxSize:()=>_s,_maxLength:()=>ws,_max:()=>kn,_map:()=>u9,_lte:()=>kn,_lt:()=>fi,_lowercase:()=>yu,_literal:()=>f9,_length:()=>Ss,_lazy:()=>x9,_ksuid:()=>su,_jwt:()=>pu,_isoTime:()=>G0,_isoDuration:()=>J0,_isoDateTime:()=>V0,_isoDate:()=>W0,_ipv6:()=>uu,_ipv4:()=>au,_intersection:()=>s9,_int64:()=>wf,_int32:()=>yf,_int:()=>pf,_includes:()=>bu,_guid:()=>bs,_gte:()=>rn,_gt:()=>hi,_float64:()=>gf,_float32:()=>mf,_file:()=>Af,_enum:()=>c9,_endsWith:()=>wu,_emoji:()=>eu,_email:()=>Wa,_e164:()=>hu,_discriminatedUnion:()=>o9,_default:()=>g9,_date:()=>Pf,_custom:()=>Rf,_cuid2:()=>nu,_cuid:()=>ru,_coercedString:()=>K0,_coercedNumber:()=>X0,_coercedDate:()=>ey,_coercedBoolean:()=>Y0,_coercedBigint:()=>Q0,_cidrv6:()=>cu,_cidrv4:()=>lu,_catch:()=>b9,_boolean:()=>bf,_bigint:()=>_f,_base64url:()=>fu,_base64:()=>du,_array:()=>Iu,_any:()=>Ef,TimePrecision:()=>ff,NEVER:()=>Xc,JSONSchemaGenerator:()=>zf,JSONSchema:()=>qS,Doc:()=>ld,$output:()=>lf,$input:()=>cf,$constructor:()=>ne,$brand:()=>Yc,$ZodXID:()=>wd,$ZodVoid:()=>Ud,$ZodUnknown:()=>ko,$ZodUnion:()=>Ha,$ZodUndefined:()=>Dd,$ZodUUID:()=>hd,$ZodURL:()=>md,$ZodULID:()=>_d,$ZodType:()=>ut,$ZodTuple:()=>Bi,$ZodTransform:()=>gs,$ZodTemplateLiteral:()=>of,$ZodSymbol:()=>Od,$ZodSuccess:()=>ef,$ZodStringFormat:()=>Ot,$ZodString:()=>qi,$ZodSet:()=>Zd,$ZodRegistry:()=>Ka,$ZodRecord:()=>Bd,$ZodRealError:()=>cs,$ZodReadonly:()=>nf,$ZodPromise:()=>sf,$ZodPrefault:()=>Yd,$ZodPipe:()=>ys,$ZodOptional:()=>Gd,$ZodObject:()=>Ba,$ZodNumberFormat:()=>Rd,$ZodNumber:()=>Fa,$ZodNullable:()=>Jd,$ZodNull:()=>Nd,$ZodNonOptional:()=>Qd,$ZodNever:()=>jd,$ZodNanoID:()=>yd,$ZodNaN:()=>rf,$ZodMap:()=>Hd,$ZodLiteral:()=>Vd,$ZodLazy:()=>af,$ZodKSUID:()=>Sd,$ZodJWT:()=>$d,$ZodIntersection:()=>qd,$ZodISOTime:()=>o0,$ZodISODuration:()=>s0,$ZodISODateTime:()=>n0,$ZodISODate:()=>i0,$ZodIPv6:()=>kd,$ZodIPv4:()=>xd,$ZodGUID:()=>fd,$ZodFunction:()=>ay,$ZodFile:()=>Wd,$ZodError:()=>La,$ZodEnum:()=>Kd,$ZodEmoji:()=>gd,$ZodEmail:()=>pd,$ZodE164:()=>Pd,$ZodDiscriminatedUnion:()=>Fd,$ZodDefault:()=>Xd,$ZodDate:()=>Ld,$ZodCustomStringFormat:()=>Ad,$ZodCustom:()=>uf,$ZodCheckUpperCase:()=>Wg,$ZodCheckStringFormat:()=>hs,$ZodCheckStartsWith:()=>Jg,$ZodCheckSizeEquals:()=>qg,$ZodCheckRegex:()=>Kg,$ZodCheckProperty:()=>Yg,$ZodCheckOverwrite:()=>e0,$ZodCheckNumberFormat:()=>jg,$ZodCheckMultipleOf:()=>zg,$ZodCheckMinSize:()=>Fg,$ZodCheckMinLength:()=>Hg,$ZodCheckMimeType:()=>Qg,$ZodCheckMaxSize:()=>Lg,$ZodCheckMaxLength:()=>Bg,$ZodCheckLowerCase:()=>Vg,$ZodCheckLessThan:()=>ad,$ZodCheckLengthEquals:()=>Zg,$ZodCheckIncludes:()=>Gg,$ZodCheckGreaterThan:()=>ud,$ZodCheckEndsWith:()=>Xg,$ZodCheckBigIntFormat:()=>Ug,$ZodCheck:()=>Ht,$ZodCatch:()=>tf,$ZodCUID2:()=>bd,$ZodCUID:()=>vd,$ZodCIDRv6:()=>Ed,$ZodCIDRv4:()=>Md,$ZodBoolean:()=>ps,$ZodBigIntFormat:()=>Cd,$ZodBigInt:()=>qa,$ZodBase64URL:()=>Td,$ZodBase64:()=>Id,$ZodAsyncError:()=>ci,$ZodArray:()=>ms,$ZodAny:()=>zd});var Xc=Object.freeze({status:"aborted"});function ne(e,t,r){function i(h,v){var b;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(b=h._zod).traits??(b.traits=new Set),h._zod.traits.add(e),t(h,v);for(let _ in s.prototype)if(!(_ in h))Object.defineProperty(h,_,{value:s.prototype[_].bind(h)});h._zod.constr=s,h._zod.def=v}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function s(h){var v;let b=r?.Parent?new o:this;i(b,h),(v=b._zod).deferred??(v.deferred=[]);for(let _ of b._zod.deferred)_();return b}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:(h)=>{if(r?.Parent&&h instanceof r.Parent)return!0;return h?._zod?.traits?.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}var Yc=Symbol("zod_brand");class ci extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var Ra={};function Qt(e){if(e)Object.assign(Ra,e);return Ra}var Be={};wn(Be,{unwrapMessage:()=>Ca,stringifyPrimitive:()=>Ve,required:()=>nR,randomString:()=>WA,propertyKeyTypes:()=>za,promiseAllObject:()=>VA,primitiveTypes:()=>ng,prefixIssues:()=>en,pick:()=>YA,partial:()=>rR,optionalKeys:()=>ig,omit:()=>QA,numKeys:()=>GA,nullish:()=>ji,normalizeParams:()=>qe,merge:()=>tR,jsonStringifyReplacer:()=>Qm,joinValues:()=>be,issue:()=>ag,isPlainObject:()=>ls,isObject:()=>us,getSizableOrigin:()=>ja,getParsedType:()=>JA,getLengthableOrigin:()=>Ua,getEnumValues:()=>Oa,getElementAtPath:()=>KA,floatSafeRemainder:()=>eg,finalizeIssue:()=>fn,extend:()=>eR,escapeRegex:()=>di,esc:()=>bo,defineLazy:()=>Tt,createTransparentProxy:()=>XA,clone:()=>Ur,cleanRegex:()=>Na,cleanEnum:()=>iR,captureStackTrace:()=>Qc,cached:()=>Da,assignProp:()=>tg,assertNotEqual:()=>qA,assertNever:()=>HA,assertIs:()=>BA,assertEqual:()=>FA,assert:()=>ZA,allowsEval:()=>rg,aborted:()=>_o,NUMBER_FORMAT_RANGES:()=>og,Class:()=>vS,BIGINT_FORMAT_RANGES:()=>sg});function FA(e){return e}function qA(e){return e}function BA(e){}function HA(e){throw Error()}function ZA(e){}function Oa(e){let t=Object.values(e).filter((i)=>typeof i==="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function be(e,t="|"){return e.map((r)=>Ve(r)).join(t)}function Qm(e,t){if(typeof t==="bigint")return t.toString();return t}function Da(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw Error("cached value already set")}}}function ji(e){return e===null||e===void 0}function Na(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function eg(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=Number.parseInt(e.toFixed(n).replace(".","")),s=Number.parseInt(t.toFixed(n).replace(".",""));return o%s/10**n}function Tt(e,t,r){Object.defineProperty(e,t,{get(){{let n=r();return e[t]=n,n}throw Error("cached value already set")},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function tg(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function KA(e,t){if(!t)return e;return t.reduce((r,i)=>r?.[i],e)}function VA(e){let t=Object.keys(e),r=t.map((i)=>e[i]);return Promise.all(r).then((i)=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function WA(e=10){let r="";for(let i=0;i<e;i++)r+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return r}function bo(e){return JSON.stringify(e)}var Qc=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function us(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}var rg=Da(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function ls(e){if(us(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;if(us(r)===!1)return!1;if(Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)return!1;return!0}function GA(e){let t=0;for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r))t++;return t}var JA=(e)=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(e===null)return"null";if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function")return"promise";if(typeof Map<"u"&&e instanceof Map)return"map";if(typeof Set<"u"&&e instanceof Set)return"set";if(typeof Date<"u"&&e instanceof Date)return"date";if(typeof File<"u"&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},za=new Set(["string","number","symbol"]),ng=new Set(["string","number","bigint","boolean","symbol","undefined"]);function di(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ur(e,t,r){let i=new e._zod.constr(t??e._zod.def);if(!t||r?.parent)i._zod.parent=e;return i}function qe(e){let t=e;if(!t)return{};if(typeof t==="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}if(delete t.message,typeof t.error==="string")return{...t,error:()=>t.error};return t}function XA(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function Ve(e){if(typeof e==="bigint")return e.toString()+"n";if(typeof e==="string")return`"${e}"`;return`${e}`}function ig(e){return Object.keys(e).filter((t)=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var og={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},sg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function YA(e,t){let r={},i=e._zod.def;for(let n in t){if(!(n in i.shape))throw Error(`Unrecognized key: "${n}"`);if(!t[n])continue;r[n]=i.shape[n]}return Ur(e,{...e._zod.def,shape:r,checks:[]})}function QA(e,t){let r={...e._zod.def.shape},i=e._zod.def;for(let n in t){if(!(n in i.shape))throw Error(`Unrecognized key: "${n}"`);if(!t[n])continue;delete r[n]}return Ur(e,{...e._zod.def,shape:r,checks:[]})}function eR(e,t){if(!ls(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let i={...e._zod.def.shape,...t};return tg(this,"shape",i),i},checks:[]};return Ur(e,r)}function tR(e,t){return Ur(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return tg(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function rR(e,t,r){let i=t._zod.def.shape,n={...i};if(r)for(let o in r){if(!(o in i))throw Error(`Unrecognized key: "${o}"`);if(!r[o])continue;n[o]=e?new e({type:"optional",innerType:i[o]}):i[o]}else for(let o in i)n[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return Ur(t,{...t._zod.def,shape:n,checks:[]})}function nR(e,t,r){let i=t._zod.def.shape,n={...i};if(r)for(let o in r){if(!(o in n))throw Error(`Unrecognized key: "${o}"`);if(!r[o])continue;n[o]=new e({type:"nonoptional",innerType:i[o]})}else for(let o in i)n[o]=new e({type:"nonoptional",innerType:i[o]});return Ur(t,{...t._zod.def,shape:n,checks:[]})}function _o(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function en(e,t){return t.map((r)=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Ca(e){return typeof e==="string"?e:e?.message}function fn(e,t,r){let i={...e,path:e.path??[]};if(!e.message){let n=Ca(e.inst?._zod.def?.error?.(e))??Ca(t?.error?.(e))??Ca(r.customError?.(e))??Ca(r.localeError?.(e))??"Invalid input";i.message=n}if(delete i.inst,delete i.continue,!t?.reportInput)delete i.input;return i}function ja(e){if(e instanceof Set)return"set";if(e instanceof Map)return"map";if(e instanceof File)return"file";return"unknown"}function Ua(e){if(Array.isArray(e))return"array";if(typeof e==="string")return"string";return"unknown"}function ag(...e){let[t,r,i]=e;if(typeof t==="string")return{message:t,code:"custom",input:r,inst:i};return{...t}}function iR(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map((t)=>t[1])}class vS{constructor(...e){}}var bS=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Qm,2)},enumerable:!0})},La=ne("$ZodError",bS),cs=ne("$ZodError",bS,{Parent:Error});function ds(e,t=(r)=>r.message){let r={},i=[];for(let n of e.issues)if(n.path.length>0)r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n));else i.push(t(n));return{formErrors:i,fieldErrors:r}}function fs(e,t){let r=t||function(o){return o.message},i={_errors:[]},n=(o)=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map((h)=>n({issues:h}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)i._errors.push(r(s));else{let h=i,v=0;while(v<s.path.length){let b=s.path[v];if(v!==s.path.length-1)h[b]=h[b]||{_errors:[]};else h[b]=h[b]||{_errors:[]},h[b]._errors.push(r(s));h=h[b],v++}}};return n(e),i}function ed(e,t){let r=t||function(o){return o.message},i={errors:[]},n=(o,s=[])=>{var h,v;for(let b of o.issues)if(b.code==="invalid_union"&&b.errors.length)b.errors.map((_)=>n({issues:_},b.path));else if(b.code==="invalid_key")n({issues:b.issues},b.path);else if(b.code==="invalid_element")n({issues:b.issues},b.path);else{let _=[...s,...b.path];if(_.length===0){i.errors.push(r(b));continue}let g=i,S=0;while(S<_.length){let x=_[S],M=S===_.length-1;if(typeof x==="string")g.properties??(g.properties={}),(h=g.properties)[x]??(h[x]={errors:[]}),g=g.properties[x];else g.items??(g.items=[]),(v=g.items)[x]??(v[x]={errors:[]}),g=g.items[x];if(M)g.errors.push(r(b));S++}}};return n(e),i}function _S(e){let t=[];for(let r of e)if(typeof r==="number")t.push(`[${r}]`);else if(typeof r==="symbol")t.push(`[${JSON.stringify(String(r))}]`);else if(/[^\w$]/.test(r))t.push(`[${JSON.stringify(r)}]`);else{if(t.length)t.push(".");t.push(r)}return t.join("")}function td(e){let t=[],r=[...e.issues].sort((i,n)=>i.path.length-n.path.length);for(let i of r)if(t.push(`✖ ${i.message}`),i.path?.length)t.push(` → at ${_S(i.path)}`);return t.join(`
|
|
27
27
|
`)}var rd=(e)=>(t,r,i,n)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ci;if(s.issues.length){let h=new(n?.Err??e)(s.issues.map((v)=>fn(v,o,Qt())));throw Qc(h,n?.callee),h}return s.value},wo=rd(cs),nd=(e)=>async(t,r,i,n)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)s=await s;if(s.issues.length){let h=new(n?.Err??e)(s.issues.map((v)=>fn(v,o,Qt())));throw Qc(h,n?.callee),h}return s.value},So=nd(cs),id=(e)=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new ci;return o.issues.length?{success:!1,error:new(e??La)(o.issues.map((s)=>fn(s,n,Qt())))}:{success:!0,data:o.value}},Ui=id(cs),od=(e)=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)o=await o;return o.issues.length?{success:!1,error:new e(o.issues.map((s)=>fn(s,n,Qt())))}:{success:!0,data:o.value}},Li=od(cs);var Fi={};wn(Fi,{xid:()=>dg,uuid7:()=>lR,uuid6:()=>uR,uuid4:()=>aR,uuid:()=>xo,uppercase:()=>Ng,unicodeEmail:()=>fR,undefined:()=>Og,ulid:()=>cg,time:()=>Eg,string:()=>Tg,rfc5322Email:()=>dR,number:()=>Ag,null:()=>Cg,nanoid:()=>hg,lowercase:()=>Dg,ksuid:()=>fg,ipv6:()=>bg,ipv4:()=>vg,integer:()=>$g,html5Email:()=>cR,hostname:()=>xg,guid:()=>mg,extendedDuration:()=>sR,emoji:()=>yg,email:()=>gg,e164:()=>kg,duration:()=>pg,domain:()=>mR,datetime:()=>Ig,date:()=>Mg,cuid2:()=>lg,cuid:()=>ug,cidrv6:()=>wg,cidrv4:()=>_g,browserEmail:()=>hR,boolean:()=>Rg,bigint:()=>Pg,base64url:()=>sd,base64:()=>Sg,_emoji:()=>pR});var ug=/^[cC][^\s-]{8,}$/,lg=/^[0-9a-z]+$/,cg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,dg=/^[0-9a-vA-V]{20}$/,fg=/^[A-Za-z0-9]{27}$/,hg=/^[a-zA-Z0-9_-]{21}$/,pg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sR=/^[-+]?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)?)??$/,mg=/^([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})$/,xo=(e)=>{if(!e)return/^([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)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},aR=xo(4),uR=xo(6),lR=xo(7),gg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,dR=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,fR=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,hR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,pR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function yg(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}var vg=/^(?:(?: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])$/,bg=/^(([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})$/,_g=/^((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])$/,wg=/^(([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])$/,Sg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,sd=/^[A-Za-z0-9_-]*$/,xg=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,mR=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,kg=/^\+(?:[0-9]){6,14}[0-9]$/,wS="(?:(?:\\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])))",Mg=new RegExp(`^${wS}$`);function SS(e){return typeof e.precision==="number"?e.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":e.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${e.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Eg(e){return new RegExp(`^${SS(e)}$`)}function Ig(e){let t=SS({precision:e.precision}),r=["Z"];if(e.local)r.push("");if(e.offset)r.push("([+-]\\d{2}:\\d{2})");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${wS}T(?:${i})$`)}var Tg=(e)=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Pg=/^\d+n?$/,$g=/^\d+$/,Ag=/^-?\d+(?:\.\d+)?/i,Rg=/true|false/i,Cg=/null/i;var Og=/undefined/i;var Dg=/^[^A-Z]*$/,Ng=/^[^a-z]*$/;var Ht=ne("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),kS={number:"number",bigint:"bigint",object:"date"},ad=ne("$ZodCheckLessThan",(e,t)=>{Ht.init(e,t);let r=kS[typeof t.value];e._zod.onattach.push((i)=>{let n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(t.value<o)if(t.inclusive)n.maximum=t.value;else n.exclusiveMaximum=t.value}),e._zod.check=(i)=>{if(t.inclusive?i.value<=t.value:i.value<t.value)return;i.issues.push({origin:r,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ud=ne("$ZodCheckGreaterThan",(e,t)=>{Ht.init(e,t);let r=kS[typeof t.value];e._zod.onattach.push((i)=>{let n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(t.value>o)if(t.inclusive)n.minimum=t.value;else n.exclusiveMinimum=t.value}),e._zod.check=(i)=>{if(t.inclusive?i.value>=t.value:i.value>t.value)return;i.issues.push({origin:r,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zg=ne("$ZodCheckMultipleOf",(e,t)=>{Ht.init(e,t),e._zod.onattach.push((r)=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=(r)=>{if(typeof r.value!==typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof r.value==="bigint"?r.value%t.value===BigInt(0):eg(r.value,t.value)===0)return;r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),jg=ne("$ZodCheckNumberFormat",(e,t)=>{Ht.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=og[t.format];e._zod.onattach.push((s)=>{let h=s._zod.bag;if(h.format=t.format,h.minimum=n,h.maximum=o,r)h.pattern=$g}),e._zod.check=(s)=>{let h=s.value;if(r){if(!Number.isInteger(h)){s.issues.push({expected:i,format:t.format,code:"invalid_type",input:h,inst:e});return}if(!Number.isSafeInteger(h)){if(h>0)s.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});else s.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}if(h<n)s.issues.push({origin:"number",input:h,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort});if(h>o)s.issues.push({origin:"number",input:h,code:"too_big",maximum:o,inst:e})}}),Ug=ne("$ZodCheckBigIntFormat",(e,t)=>{Ht.init(e,t);let[r,i]=sg[t.format];e._zod.onattach.push((n)=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=(n)=>{let o=n.value;if(o<r)n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort});if(o>i)n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),Lg=ne("$ZodCheckMaxSize",(e,t)=>{Ht.init(e,t),e._zod.when=(r)=>{let i=r.value;return!ji(i)&&i.size!==void 0},e._zod.onattach.push((r)=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;if(t.maximum<i)r._zod.bag.maximum=t.maximum}),e._zod.check=(r)=>{let i=r.value;if(i.size<=t.maximum)return;r.issues.push({origin:ja(i),code:"too_big",maximum:t.maximum,input:i,inst:e,continue:!t.abort})}}),Fg=ne("$ZodCheckMinSize",(e,t)=>{Ht.init(e,t),e._zod.when=(r)=>{let i=r.value;return!ji(i)&&i.size!==void 0},e._zod.onattach.push((r)=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(t.minimum>i)r._zod.bag.minimum=t.minimum}),e._zod.check=(r)=>{let i=r.value;if(i.size>=t.minimum)return;r.issues.push({origin:ja(i),code:"too_small",minimum:t.minimum,input:i,inst:e,continue:!t.abort})}}),qg=ne("$ZodCheckSizeEquals",(e,t)=>{Ht.init(e,t),e._zod.when=(r)=>{let i=r.value;return!ji(i)&&i.size!==void 0},e._zod.onattach.push((r)=>{let i=r._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=(r)=>{let i=r.value,n=i.size;if(n===t.size)return;let o=n>t.size;r.issues.push({origin:ja(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Bg=ne("$ZodCheckMaxLength",(e,t)=>{Ht.init(e,t),e._zod.when=(r)=>{let i=r.value;return!ji(i)&&i.length!==void 0},e._zod.onattach.push((r)=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;if(t.maximum<i)r._zod.bag.maximum=t.maximum}),e._zod.check=(r)=>{let i=r.value;if(i.length<=t.maximum)return;let o=Ua(i);r.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Hg=ne("$ZodCheckMinLength",(e,t)=>{Ht.init(e,t),e._zod.when=(r)=>{let i=r.value;return!ji(i)&&i.length!==void 0},e._zod.onattach.push((r)=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(t.minimum>i)r._zod.bag.minimum=t.minimum}),e._zod.check=(r)=>{let i=r.value;if(i.length>=t.minimum)return;let o=Ua(i);r.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Zg=ne("$ZodCheckLengthEquals",(e,t)=>{Ht.init(e,t),e._zod.when=(r)=>{let i=r.value;return!ji(i)&&i.length!==void 0},e._zod.onattach.push((r)=>{let i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=(r)=>{let i=r.value,n=i.length;if(n===t.length)return;let o=Ua(i),s=n>t.length;r.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),hs=ne("$ZodCheckStringFormat",(e,t)=>{var r,i;if(Ht.init(e,t),e._zod.onattach.push((n)=>{let o=n._zod.bag;if(o.format=t.format,t.pattern)o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern)}),t.pattern)(r=e._zod).check??(r.check=(n)=>{if(t.pattern.lastIndex=0,t.pattern.test(n.value))return;n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})});else(i=e._zod).check??(i.check=()=>{})}),Kg=ne("$ZodCheckRegex",(e,t)=>{hs.init(e,t),e._zod.check=(r)=>{if(t.pattern.lastIndex=0,t.pattern.test(r.value))return;r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vg=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Dg),hs.init(e,t)}),Wg=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ng),hs.init(e,t)}),Gg=ne("$ZodCheckIncludes",(e,t)=>{Ht.init(e,t);let r=di(t.includes),i=new RegExp(typeof t.position==="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push((n)=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=(n)=>{if(n.value.includes(t.includes,t.position))return;n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Jg=ne("$ZodCheckStartsWith",(e,t)=>{Ht.init(e,t);let r=new RegExp(`^${di(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push((i)=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=(i)=>{if(i.value.startsWith(t.prefix))return;i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Xg=ne("$ZodCheckEndsWith",(e,t)=>{Ht.init(e,t);let r=new RegExp(`.*${di(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push((i)=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=(i)=>{if(i.value.endsWith(t.suffix))return;i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function xS(e,t,r){if(e.issues.length)t.issues.push(...en(r,e.issues))}var Yg=ne("$ZodCheckProperty",(e,t)=>{Ht.init(e,t),e._zod.check=(r)=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then((n)=>xS(n,r,t.property));xS(i,r,t.property);return}}),Qg=ne("$ZodCheckMimeType",(e,t)=>{Ht.init(e,t);let r=new Set(t.mime);e._zod.onattach.push((i)=>{i._zod.bag.mime=t.mime}),e._zod.check=(i)=>{if(r.has(i.value.type))return;i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e})}}),e0=ne("$ZodCheckOverwrite",(e,t)=>{Ht.init(e,t),e._zod.check=(r)=>{r.value=t.tx(r.value)}});class ld{constructor(e=[]){if(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 r=e.split(`
|
|
28
28
|
`).filter((o)=>o),i=Math.min(...r.map((o)=>o.length-o.trimStart().length)),n=r.map((o)=>o.slice(i)).map((o)=>" ".repeat(this.indent*2)+o);for(let o of n)this.content.push(o)}compile(){let e=Function,t=this?.args,i=[...(this?.content??[""]).map((n)=>` ${n}`)];return new e(...t,i.join(`
|
|
29
29
|
`))}}var t0={major:4,minor:0,patch:0};var ut=ne("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=t0;let i=[...e._zod.def.checks??[]];if(e._zod.traits.has("$ZodCheck"))i.unshift(e);for(let n of i)for(let o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(o,s,h)=>{let v=_o(o),b;for(let _ of s){if(_._zod.when){if(!_._zod.when(o))continue}else if(v)continue;let g=o.issues.length,S=_._zod.check(o);if(S instanceof Promise&&h?.async===!1)throw new ci;if(b||S instanceof Promise)b=(b??Promise.resolve()).then(async()=>{if(await S,o.issues.length===g)return;if(!v)v=_o(o,g)});else{if(o.issues.length===g)continue;if(!v)v=_o(o,g)}}if(b)return b.then(()=>o);return o};e._zod.run=(o,s)=>{let h=e._zod.parse(o,s);if(h instanceof Promise){if(s.async===!1)throw new ci;return h.then((v)=>n(v,i,s))}return n(h,i,s)}}e["~standard"]={validate:(n)=>{try{let o=Ui(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch(o){return Li(e,n).then((s)=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),qi=ne("$ZodString",(e,t)=>{ut.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Tg(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch(n){}if(typeof r.value==="string")return r;return r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ot=ne("$ZodStringFormat",(e,t)=>{hs.init(e,t),qi.init(e,t)}),fd=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=mg),Ot.init(e,t)}),hd=ne("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=xo(i))}else t.pattern??(t.pattern=xo());Ot.init(e,t)}),pd=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=gg),Ot.init(e,t)}),md=ne("$ZodURL",(e,t)=>{Ot.init(e,t),e._zod.check=(r)=>{try{let i=r.value,n=new URL(i),o=n.href;if(t.hostname){if(t.hostname.lastIndex=0,!t.hostname.test(n.hostname))r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:xg.source,input:r.value,inst:e,continue:!t.abort})}if(t.protocol){if(t.protocol.lastIndex=0,!t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol))r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})}if(!i.endsWith("/")&&o.endsWith("/"))r.value=o.slice(0,-1);else r.value=o;return}catch(i){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),gd=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yg()),Ot.init(e,t)}),yd=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=hg),Ot.init(e,t)}),vd=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ug),Ot.init(e,t)}),bd=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=lg),Ot.init(e,t)}),_d=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=cg),Ot.init(e,t)}),wd=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=dg),Ot.init(e,t)}),Sd=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=fg),Ot.init(e,t)}),n0=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ig(t)),Ot.init(e,t)}),i0=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Mg),Ot.init(e,t)}),o0=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Eg(t)),Ot.init(e,t)}),s0=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=pg),Ot.init(e,t)}),xd=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vg),Ot.init(e,t),e._zod.onattach.push((r)=>{let i=r._zod.bag;i.format="ipv4"})}),kd=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=bg),Ot.init(e,t),e._zod.onattach.push((r)=>{let i=r._zod.bag;i.format="ipv6"}),e._zod.check=(r)=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Md=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=_g),Ot.init(e,t)}),Ed=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=wg),Ot.init(e,t),e._zod.check=(r)=>{let[i,n]=r.value.split("/");try{if(!n)throw Error();let o=Number(n);if(`${o}`!==n)throw Error();if(o<0||o>128)throw Error();new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function a0(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Id=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Sg),Ot.init(e,t),e._zod.onattach.push((r)=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=(r)=>{if(a0(r.value))return;r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function zS(e){if(!sd.test(e))return!1;let t=e.replace(/[-_]/g,(i)=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return a0(r)}var Td=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=sd),Ot.init(e,t),e._zod.onattach.push((r)=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=(r)=>{if(zS(r.value))return;r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Pd=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=kg),Ot.init(e,t)});function jS(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));if("typ"in n&&n?.typ!=="JWT")return!1;if(!n.alg)return!1;if(t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}var $d=ne("$ZodJWT",(e,t)=>{Ot.init(e,t),e._zod.check=(r)=>{if(jS(r.value,t.alg))return;r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Ad=ne("$ZodCustomStringFormat",(e,t)=>{Ot.init(e,t),e._zod.check=(r)=>{if(t.fn(r.value))return;r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Fa=ne("$ZodNumber",(e,t)=>{ut.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ag,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch(s){}let n=r.value;if(typeof n==="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n==="number"?Number.isNaN(n)?"NaN":!Number.isFinite(n)?"Infinity":void 0:void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),Rd=ne("$ZodNumber",(e,t)=>{jg.init(e,t),Fa.init(e,t)}),ps=ne("$ZodBoolean",(e,t)=>{ut.init(e,t),e._zod.pattern=Rg,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Boolean(r.value)}catch(o){}let n=r.value;if(typeof n==="boolean")return r;return r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),qa=ne("$ZodBigInt",(e,t)=>{ut.init(e,t),e._zod.pattern=Pg,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(n){}if(typeof r.value==="bigint")return r;return r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Cd=ne("$ZodBigInt",(e,t)=>{Ug.init(e,t),qa.init(e,t)}),Od=ne("$ZodSymbol",(e,t)=>{ut.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(typeof n==="symbol")return r;return r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Dd=ne("$ZodUndefined",(e,t)=>{ut.init(e,t),e._zod.pattern=Og,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{let n=r.value;if(typeof n>"u")return r;return r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Nd=ne("$ZodNull",(e,t)=>{ut.init(e,t),e._zod.pattern=Cg,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;if(n===null)return r;return r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),zd=ne("$ZodAny",(e,t)=>{ut.init(e,t),e._zod.parse=(r)=>r}),ko=ne("$ZodUnknown",(e,t)=>{ut.init(e,t),e._zod.parse=(r)=>r}),jd=ne("$ZodNever",(e,t)=>{ut.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Ud=ne("$ZodVoid",(e,t)=>{ut.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(typeof n>"u")return r;return r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Ld=ne("$ZodDate",(e,t)=>{ut.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(h){}let n=r.value,o=n instanceof Date;if(o&&!Number.isNaN(n.getTime()))return r;return r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function ES(e,t,r){if(e.issues.length)t.issues.push(...en(r,e.issues));t.value[r]=e.value}var ms=ne("$ZodArray",(e,t)=>{ut.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let s=0;s<n.length;s++){let h=n[s],v=t.element._zod.run({value:h,issues:[]},i);if(v instanceof Promise)o.push(v.then((b)=>ES(b,r,s)));else ES(v,r,s)}if(o.length)return Promise.all(o).then(()=>r);return r}});function cd(e,t,r){if(e.issues.length)t.issues.push(...en(r,e.issues));t.value[r]=e.value}function IS(e,t,r,i){if(e.issues.length)if(i[r]===void 0)if(r in i)t.value[r]=void 0;else t.value[r]=e.value;else t.issues.push(...en(r,e.issues));else if(e.value===void 0){if(r in i)t.value[r]=void 0}else t.value[r]=e.value}var Ba=ne("$ZodObject",(e,t)=>{ut.init(e,t);let r=Da(()=>{let g=Object.keys(t.shape);for(let x of g)if(!(t.shape[x]instanceof ut))throw Error(`Invalid element at key "${x}": expected a Zod schema`);let S=ig(t.shape);return{shape:t.shape,keys:g,keySet:new Set(g),numKeys:g.length,optionalKeys:new Set(S)}});Tt(e._zod,"propValues",()=>{let g=t.shape,S={};for(let x in g){let M=g[x]._zod;if(M.values){S[x]??(S[x]=new Set);for(let I of M.values)S[x].add(I)}}return S});let i=(g)=>{let S=new ld(["shape","payload","ctx"]),x=r.value,M=($)=>{let R=bo($);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};S.write("const input = payload.value;");let I=Object.create(null),T=0;for(let $ of x.keys)I[$]=`key_${T++}`;S.write("const newResult = {}");for(let $ of x.keys)if(x.optionalKeys.has($)){let R=I[$];S.write(`const ${R} = ${M($)};`);let C=bo($);S.write(`
|