@prismatic-io/components-sftp 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,233 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);let f=require("node:path"),p=require("node:fs");var m=s(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),h=s(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),g=s(((e,t)=>{var n=h();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),_=s(((e,t)=>{var n=g(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),v=s(((e,t)=>{var n=g();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),y=s(((e,t)=>{var n=g();function r(e){return n(this.__data__,e)>-1}t.exports=r})),b=s(((e,t)=>{var n=g();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),x=s(((e,t)=>{var n=m(),r=_(),i=v(),a=y(),o=b();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),S=s(((e,t)=>{var n=x();function r(){this.__data__=new n,this.size=0}t.exports=r})),C=s(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),w=s(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),T=s(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),E=s(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),D=s(((e,t)=>{var n=E(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),O=s(((e,t)=>{t.exports=D().Symbol})),k=s(((e,t)=>{var n=O(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),A=s(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),j=s(((e,t)=>{var n=O(),r=k(),i=A(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),M=s(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),N=s(((e,t)=>{var n=j(),r=M(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),P=s(((e,t)=>{t.exports=D()[`__core-js_shared__`]})),F=s(((e,t)=>{var n=P(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),I=s(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),L=s(((e,t)=>{var n=N(),r=F(),i=M(),a=I(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),R=s(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),z=s(((e,t)=>{var n=L(),r=R();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),B=s(((e,t)=>{t.exports=z()(D(),`Map`)})),V=s(((e,t)=>{t.exports=z()(Object,`create`)})),H=s(((e,t)=>{var n=V();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),U=s(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),W=s(((e,t)=>{var n=V(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),G=s(((e,t)=>{var n=V(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),ee=s(((e,t)=>{var n=V(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),K=s(((e,t)=>{var n=H(),r=U(),i=W(),a=G(),o=ee();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),q=s(((e,t)=>{var n=K(),r=x(),i=B();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),te=s(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),ne=s(((e,t)=>{var n=te();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),re=s(((e,t)=>{var n=ne();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),ie=s(((e,t)=>{var n=ne();function r(e){return n(this,e).get(e)}t.exports=r})),ae=s(((e,t)=>{var n=ne();function r(e){return n(this,e).has(e)}t.exports=r})),J=s(((e,t)=>{var n=ne();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),oe=s(((e,t)=>{var n=q(),r=re(),i=ie(),a=ae(),o=J();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),se=s(((e,t)=>{var n=x(),r=B(),i=oe(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),ce=s(((e,t)=>{var n=x(),r=S(),i=C(),a=w(),o=T(),s=se();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),Y=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),le=s(((e,t)=>{var n=z();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),ue=s(((e,t)=>{var n=le();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),de=s(((e,t)=>{var n=ue(),r=h(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),fe=s(((e,t)=>{var n=de(),r=ue();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),pe=s(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),me=s(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),he=s(((e,t)=>{var n=j(),r=me(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),ge=s(((e,t)=>{var n=he(),r=me(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),_e=s(((e,t)=>{t.exports=Array.isArray})),ve=s(((e,t)=>{function n(){return!1}t.exports=n})),ye=s(((e,t)=>{var n=D(),r=ve(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),be=s(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=r})),xe=s(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),Se=s(((e,t)=>{var n=j(),r=xe(),i=me(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),Ce=s(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),we=s(((e,t)=>{var n=E(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Te=s(((e,t)=>{var n=Se(),r=Ce(),i=we(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Ee=s(((e,t)=>{var n=pe(),r=ge(),i=_e(),a=ye(),o=be(),s=Te(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),De=s(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Oe=s(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),ke=s(((e,t)=>{t.exports=Oe()(Object.keys,Object)})),Ae=s(((e,t)=>{var n=De(),r=ke(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),je=s(((e,t)=>{var n=N(),r=xe();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Me=s(((e,t)=>{var n=Ee(),r=Ae(),i=je();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Ne=s(((e,t)=>{var n=fe(),r=Me();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),Pe=s(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),Fe=s(((e,t)=>{var n=M(),r=De(),i=Pe(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),Ie=s(((e,t)=>{var n=Ee(),r=Fe(),i=je();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),Le=s(((e,t)=>{var n=fe(),r=Ie();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),Re=s(((e,t)=>{var n=D(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),ze=s(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),X=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),Be=s(((e,t)=>{function n(){return[]}t.exports=n})),Ve=s(((e,t)=>{var n=X(),r=Be(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),He=s(((e,t)=>{var n=fe(),r=Ve();function i(e,t){return n(e,r(e),t)}t.exports=i})),Ue=s(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),We=s(((e,t)=>{t.exports=Oe()(Object.getPrototypeOf,Object)})),Ge=s(((e,t)=>{var n=Ue(),r=We(),i=Ve(),a=Be();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),Ke=s(((e,t)=>{var n=fe(),r=Ge();function i(e,t){return n(e,r(e),t)}t.exports=i})),qe=s(((e,t)=>{var n=Ue(),r=_e();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),Je=s(((e,t)=>{var n=qe(),r=Ve(),i=Me();function a(e){return n(e,i,r)}t.exports=a})),Ye=s(((e,t)=>{var n=qe(),r=Ge(),i=Ie();function a(e){return n(e,i,r)}t.exports=a})),Xe=s(((e,t)=>{t.exports=z()(D(),`DataView`)})),Ze=s(((e,t)=>{t.exports=z()(D(),`Promise`)})),Qe=s(((e,t)=>{t.exports=z()(D(),`Set`)})),$e=s(((e,t)=>{t.exports=z()(D(),`WeakMap`)})),et=s(((e,t)=>{var n=Xe(),r=B(),i=Ze(),a=Qe(),o=$e(),s=j(),c=I(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),tt=s(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),nt=s(((e,t)=>{t.exports=D().Uint8Array})),rt=s(((e,t)=>{var n=nt();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),it=s(((e,t)=>{var n=rt();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),at=s(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),ot=s(((e,t)=>{var n=O(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),st=s(((e,t)=>{var n=rt();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),ct=s(((e,t)=>{var n=rt(),r=it(),i=at(),a=ot(),o=st(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),lt=s(((e,t)=>{var n=M(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),ut=s(((e,t)=>{var n=lt(),r=We(),i=De();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),dt=s(((e,t)=>{var n=et(),r=me(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),ft=s(((e,t)=>{var n=dt(),r=Ce(),i=we(),a=i&&i.isMap;t.exports=a?r(a):n})),pt=s(((e,t)=>{var n=et(),r=me(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),mt=s(((e,t)=>{var n=pt(),r=Ce(),i=we(),a=i&&i.isSet;t.exports=a?r(a):n})),ht=s(((e,t)=>{var n=ce(),r=Y(),i=de(),a=Ne(),o=Le(),s=Re(),c=ze(),l=He(),u=Ke(),d=Je(),f=Ye(),p=et(),m=tt(),h=ct(),g=ut(),_=_e(),v=ye(),y=ft(),b=M(),x=mt(),S=Me(),C=Ie(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,N=`[object Function]`,P=`[object GeneratorFunction]`,F=`[object Map]`,I=`[object Number]`,L=`[object Object]`,R=`[object RegExp]`,z=`[object Set]`,B=`[object String]`,V=`[object Symbol]`,H=`[object WeakMap]`,U=`[object ArrayBuffer]`,W=`[object DataView]`,G=`[object Float32Array]`,ee=`[object Float64Array]`,K=`[object Int8Array]`,q=`[object Int16Array]`,te=`[object Int32Array]`,ne=`[object Uint8Array]`,re=`[object Uint8ClampedArray]`,ie=`[object Uint16Array]`,ae=`[object Uint32Array]`,J={};J[D]=J[O]=J[U]=J[W]=J[k]=J[A]=J[G]=J[ee]=J[K]=J[q]=J[te]=J[F]=J[I]=J[L]=J[R]=J[z]=J[B]=J[V]=J[ne]=J[re]=J[ie]=J[ae]=!0,J[j]=J[N]=J[H]=!1;function oe(e,t,O,k,A,j){var M,F=t&w,I=t&T,R=t&E;if(O&&(M=A?O(e,k,A,j):O(e)),M!==void 0)return M;if(!b(e))return e;var z=_(e);if(z){if(M=m(e),!F)return c(e,M)}else{var B=p(e),V=B==N||B==P;if(v(e))return s(e,F);if(B==L||B==D||V&&!A){if(M=I||V?{}:g(e),!F)return I?u(e,o(M,e)):l(e,a(M,e))}else{if(!J[B])return A?e:{};M=h(e,B,F)}}j||=new n;var H=j.get(e);if(H)return H;j.set(e,M),x(e)?e.forEach(function(n){M.add(oe(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){M.set(r,oe(n,t,O,r,e,j))});var U=z?void 0:(R?I?f:d:I?C:S)(e);return r(U||e,function(n,r){U&&(r=n,n=e[r]),i(M,r,oe(n,t,O,r,e,j))}),M}t.exports=oe})),gt=s(((e,t)=>{var n=ht(),r=1,i=4;function a(e){return n(e,r|i)}t.exports=a})),Z=s(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),_t=s(((e,t)=>{t.exports=Z()()})),vt=s(((e,t)=>{var n=_t(),r=Me();function i(e,t){return e&&n(e,t,r)}t.exports=i})),yt=s(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),bt=s(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),xt=s(((e,t)=>{var n=oe(),r=yt(),i=bt();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),St=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),Ct=s(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),wt=s(((e,t)=>{var n=xt(),r=St(),i=Ct(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),Tt=s(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),Et=s(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),Dt=s(((e,t)=>{var n=O(),r=nt(),i=h(),a=wt(),o=Tt(),s=Et(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,g=`[object RegExp]`,_=`[object Set]`,v=`[object String]`,y=`[object Symbol]`,b=`[object ArrayBuffer]`,x=`[object DataView]`,S=n?n.prototype:void 0,C=S?S.valueOf:void 0;function w(e,t,n,h,S,w,T){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case g:case v:return e==t+``;case p:var E=o;case _:var D=h&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;h|=l,T.set(e,t);var k=a(E(e),E(t),h,S,w,T);return T.delete(e),k;case y:if(C)return C.call(e)==C.call(t)}return!1}t.exports=w})),Ot=s(((e,t)=>{var n=Je(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),kt=s(((e,t)=>{var n=ce(),r=wt(),i=Dt(),a=Ot(),o=et(),s=_e(),c=ye(),l=Te(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),At=s(((e,t)=>{var n=kt(),r=me();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),jt=s(((e,t)=>{var n=ce(),r=At(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),Mt=s(((e,t)=>{var n=M();function r(e){return e===e&&!n(e)}t.exports=r})),Nt=s(((e,t)=>{var n=Mt(),r=Me();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),Pt=s(((e,t)=>{function n(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),Ft=s(((e,t)=>{var n=jt(),r=Nt(),i=Pt();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),It=s(((e,t)=>{var n=j(),r=me(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Lt=s(((e,t)=>{var n=_e(),r=It(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),Rt=s(((e,t)=>{var n=oe(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),zt=s(((e,t)=>{var n=Rt(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Bt=s(((e,t)=>{var n=zt(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),Vt=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),Ht=s(((e,t)=>{var n=O(),r=Vt(),i=_e(),a=It(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Ut=s(((e,t)=>{var n=Ht();function r(e){return e==null?``:n(e)}t.exports=r})),Wt=s(((e,t)=>{var n=_e(),r=Lt(),i=Bt(),a=Ut();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Gt=s(((e,t)=>{var n=It(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Kt=s(((e,t)=>{var n=Wt(),r=Gt();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),qt=s(((e,t)=>{var n=Kt();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),Jt=s(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),Yt=s(((e,t)=>{var n=Wt(),r=ge(),i=_e(),a=be(),o=xe(),s=Gt();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),Xt=s(((e,t)=>{var n=Jt(),r=Yt();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Zt=s(((e,t)=>{var n=At(),r=qt(),i=Xt(),a=Lt(),o=Mt(),s=Pt(),c=Gt(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Qt=s(((e,t)=>{function n(e){return e}t.exports=n})),$t=s(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),en=s(((e,t)=>{var n=Kt();function r(e){return function(t){return n(t,e)}}t.exports=r})),tn=s(((e,t)=>{var n=$t(),r=en(),i=Lt(),a=Gt();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),nn=s(((e,t)=>{var n=Ft(),r=Zt(),i=Qt(),a=_e(),o=tn();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),rn=s(((e,t)=>{var n=ue(),r=vt(),i=nn();function a(e,t){var a={};return t=i(t,3),r(e,function(e,r,i){n(a,r,t(e,r,i))}),a}t.exports=a})),an=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.findUserDefinedComponentKey=e.requireIntegrationContext=e.runWithIntegrationContext=e.requireDataSourceContext=e.runWithDataSourceContext=e.requireContext=e.invokeWithContext=e.runWithContext=e.runWithCallableMocks=e.getCallableMockDispatcher=void 0;let t=typeof window>`u`?require("node:async_hooks"):null,n=globalThis,r=e=>{if(!t)return null;let r=Symbol.for(e);return n[r]??(n[r]=new t.AsyncLocalStorage),n[r]},i=r(`@prismatic-io/spectral/action-context`),a=r(`@prismatic-io/spectral/integration-context`),o=r(`@prismatic-io/spectral/callable-mocks/v1`);e.getCallableMockDispatcher=()=>o?.getStore(),e.runWithCallableMocks=(e,t)=>{if(!o)throw Error(`Callable mocking requires Node.js or Bun.`);return o.run(e,t)},e.runWithContext=(e,t)=>i?i.run({kind:`execution`,context:e},t):t(),e.invokeWithContext=(t,n,...r)=>(0,e.runWithContext)(t,()=>n(t,...r)),e.requireContext=()=>{let e=i?.getStore();if(!e)throw Error(`ActionContext not found. Ensure this code is wrapped via runWithContext.`);if(e.kind!==`execution`)throw Error(`ActionContext is unavailable during configuration. Invoke a data source instead.`);return e.context},e.runWithDataSourceContext=(e,t)=>i?i.run({kind:`dataSource`,context:e},t):t(),e.requireDataSourceContext=()=>{let e=i?.getStore();if(!e)throw Error(`DataSourceContext not found. Invoke within an execution or configuration callback.`);return e.context},e.runWithIntegrationContext=(e,t)=>a?a.run(e,t):(console.warn(`Creating integration without context. This may result in errors when generating component manifests.`),t()),e.requireIntegrationContext=()=>{let e=a?.getStore();if(!e)throw console.trace(),Error(`IntegrationContext not found. Ensure this code is wrapped via runWithIntegrationContext.`);return e},e.findUserDefinedComponentKey=(e,t,n)=>{if(!n)throw Error(`Error locating component registry. Is there a component registry defined on your integration?`);let r=Object.keys(n).find(r=>n[r].key===e&&n[r].public===t);if(!r)throw Error(`Error locating component ${e} with custom key ${r} in the component registry. Is this component properly installed with a correct public/private setting?`);return r}})),on=s(((e,t)=>{var n=ue(),r=h();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),sn=s(((e,t)=>{var n=je(),r=me();function i(e){return r(e)&&n(e)}t.exports=i})),cn=s(((e,t)=>{var n=j(),r=We(),i=me(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),ln=s(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),un=s(((e,t)=>{var n=fe(),r=Ie();function i(e){return n(e,r(e))}t.exports=i})),dn=s(((e,t)=>{var n=on(),r=Re(),i=st(),a=ze(),o=ut(),s=ge(),c=_e(),l=sn(),u=ye(),d=N(),f=M(),p=cn(),m=Te(),h=ln(),g=un();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),fn=s(((e,t)=>{var n=ce(),r=on(),i=_t(),a=dn(),o=M(),s=Ie(),c=ln();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),pn=s(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),mn=s(((e,t)=>{var n=pn(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),hn=s(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),gn=s(((e,t)=>{var n=hn(),r=le(),i=Qt();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),_n=s(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),vn=s(((e,t)=>{var n=gn();t.exports=_n()(n)})),yn=s(((e,t)=>{var n=Qt(),r=mn(),i=vn();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),bn=s(((e,t)=>{var n=h(),r=je(),i=be(),a=M();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),xn=s(((e,t)=>{var n=yn(),r=bn();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),Sn=s(((e,t)=>{var n=fn();t.exports=xn()(function(e,t,r){n(e,t,r)})})),Cn=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeBoundTrigger=e.getBoundTrigger=e.boundTriggerSymbol=void 0;let r=n(Sn());e.boundTriggerSymbol=Symbol.for(`@prismatic-io/spectral/bound-trigger/v1`);let i=Symbol(`normalizedBoundTriggerFlow`);e.getBoundTrigger=t=>typeof t==`function`?t[e.boundTriggerSymbol]:void 0;let a=(e,n)=>e&&n?(i,a)=>t(void 0,void 0,void 0,function*(){return(0,r.default)({},(yield e(i,a))??{},(yield n(i,a))??{})}):e??n;e.normalizeBoundTrigger=t=>{let n=(0,e.getBoundTrigger)(t.onTrigger);if(!n||i in t)return t;let{definition:r}=n;if(t.runInitialSyncOnDeploy&&!r.triggerResolver)throw Error(`Initial sync for a bundled trigger requires a triggerResolver to enable batching on the platform.`);let o=n.webhookLifecycleHandlers,s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),{onInstanceDeploy:a(n.onInstanceDeploy,t.onInstanceDeploy),onInstanceDelete:a(n.onInstanceDelete,t.onInstanceDelete)}),o?{webhookLifecycleHandlers:{create:a(o.create,t.webhookLifecycleHandlers?.create),delete:a(o.delete,t.webhookLifecycleHandlers?.delete)}}:{}),`triggerType`in r?{triggerType:r.triggerType}:{}),r.batchConfig?{batchConfig:r.batchConfig}:{}),r.triggerResolver?{triggerResolver:r.triggerResolver}:{}),n.onDeployTrigger&&!t.onDeployTrigger?Object.assign({onDeployTrigger:n.onDeployTrigger,runInitialSyncOnDeploy:t.runInitialSyncOnDeploy??!1},r.onDeployResolver?{onDeployResolver:r.onDeployResolver}:{}):{});return Object.defineProperty(s,i,{value:!0}),s}})),wn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getBundledDataSource=e.getPublishedConnection=e.bundledDataSourceSymbol=e.publishedConnectionSymbol=void 0,e.publishedConnectionSymbol=Symbol.for(`@prismatic-io/spectral/publishedConnection/v1`),e.bundledDataSourceSymbol=Symbol.for(`@prismatic-io/spectral/bundledDataSource/v1`),e.getPublishedConnection=t=>t[e.publishedConnectionSymbol],e.getBundledDataSource=t=>t[e.bundledDataSourceSymbol]})),Tn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mockable=e.identifyCallable=e.getCallableMockTarget=e.callableMockSymbol=void 0;let t=an();e.callableMockSymbol=Symbol.for(`@prismatic-io/spectral/callable-mock/v1`),e.getCallableMockTarget=t=>t[e.callableMockSymbol],e.identifyCallable=(t,n)=>(Object.defineProperty(t,e.callableMockSymbol,{value:n}),t),e.mockable=(n,r,i)=>(0,e.identifyCallable)(function(...e){let a=(0,t.getCallableMockDispatcher)();return a?(i(),a(r,e)):n.apply(this,e)},r)})),En=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.identifyDataSourceAlias=e.instrumentTriggerCalls=e.instrumentEntityCalls=void 0;let n=t(rn()),r=an(),i=Tn();e.instrumentEntityCalls=(e,t,a,o)=>(0,n.default)(e,(e,n)=>(0,i.mockable)(e,{owner:t,method:`${o}.${n}.perform`,examplePayload:a[n]?.examplePayload},o===`actions`?r.requireContext:r.requireDataSourceContext)),e.instrumentTriggerCalls=(e,t,n,a)=>{let o=(e,a,o)=>(0,i.mockable)(e,{owner:t,method:`triggers.${n}.${a}`,examplePayload:o},r.requireContext);e.perform=o(e.perform,`perform`,a);for(let t of[`onDeployPerform`,`onInstanceDeploy`,`onInstanceDelete`]){let n=e[t];n&&(e[t]=o(n,t))}if(e.webhookLifecycleHandlers)for(let t of[`create`,`delete`])e.webhookLifecycleHandlers[t]=o(e.webhookLifecycleHandlers[t],`webhookLifecycleHandlers.${t}`);for(let t of[`triggerResolver`,`onDeployResolver`]){let n=e[t];if(n)for(let e of[`resolveItems`,`getNextPaginationState`]){let r=n[e];r&&(n[e]=o(r,`${t}.${e}`))}}return e},e.identifyDataSourceAlias=(e,t)=>{let n=(0,i.getCallableMockTarget)(t);if(!n)throw Error(`Data-source execution must be instrumented before its alias.`);return(0,i.identifyCallable)(e,n)}})),Dn=s(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n})),On=s(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),kn=s(((e,t)=>{var n=Kt(),r=On();function i(e,t){return t.length<2?e:n(e,r(t,0,-1))}t.exports=i})),An=s(((e,t)=>{var n=Wt(),r=Dn(),i=kn(),a=Gt(),o=Object.prototype.hasOwnProperty;function s(e,t){t=n(t,e);var s=-1,c=t.length;if(!c)return!0;for(;++s<c;){var l=a(t[s]);if(l===`__proto__`&&!o.call(e,`__proto__`)||(l===`constructor`||l===`prototype`)&&s<c-1)return!1}var u=i(e,t);return u==null||delete u[a(r(t))]}t.exports=s})),jn=s(((e,t)=>{var n=cn();function r(e){return n(e)?void 0:e}t.exports=r})),Mn=s(((e,t)=>{var n=O(),r=ge(),i=_e(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),Nn=s(((e,t)=>{var n=Ue(),r=Mn();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),Pn=s(((e,t)=>{var n=Nn();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),Fn=s(((e,t)=>{var n=Pn(),r=mn(),i=vn();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),In=s(((e,t)=>{var n=Vt(),r=ht(),i=An(),a=Wt(),o=fe(),s=jn(),c=Fn(),l=Ye(),u=1,d=2,f=4;t.exports=c(function(e,t){var c={};if(e==null)return c;var p=!1;t=n(t,function(t){return t=a(t,e),p||=t.length>1,t}),o(e,l(e),c),p&&(c=r(c,u|d|f,s));for(var m=t.length;m--;)i(c,t[m]);return c})})),Ln=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PerformSafety=void 0,e.PerformSafety={SAFE:`safe`,NOT_ALLOWED:`notAllowed`}})),Rn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),zn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Bn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Vn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Hn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Un=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Wn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Gn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Kn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isComponentReference=void 0,e.isComponentReference=e=>typeof e==`object`&&!!e&&`key`in e&&`component`in e})),qn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Jn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isConnectionReferenceConfigVar=e.isConnectionDefinitionConfigVar=e.isDataSourceReferenceConfigVar=e.isDataSourceDefinitionConfigVar=e.isScheduleDataSourceConfigVar=e.isJsonFormDataSourceConfigVar=e.isJsonFormConfigVar=e.isScheduleConfigVar=e.isCodeConfigVar=e.isHtmlElementConfigVar=void 0;let t=Kn();e.isHtmlElementConfigVar=e=>`dataType`in e&&e.dataType===`htmlElement`,e.isCodeConfigVar=e=>`dataType`in e&&e.dataType===`code`,e.isScheduleConfigVar=e=>`dataType`in e&&e.dataType===`schedule`,e.isJsonFormConfigVar=e=>`dataType`in e&&e.dataType===`jsonForm`,e.isJsonFormDataSourceConfigVar=e=>`dataSourceType`in e&&e.dataSourceType===`jsonForm`,e.isScheduleDataSourceConfigVar=e=>`dataSourceType`in e&&e.dataSourceType===`schedule`,e.isDataSourceDefinitionConfigVar=e=>`dataSourceType`in e&&`perform`in e&&typeof e.perform==`function`,e.isDataSourceReferenceConfigVar=e=>typeof e==`object`&&!!e&&`dataSource`in e&&(0,t.isComponentReference)(e.dataSource),e.isConnectionDefinitionConfigVar=e=>`dataType`in e&&e.dataType===`connection`&&`inputs`in e,e.isConnectionReferenceConfigVar=e=>typeof e==`object`&&!!e&&`connection`in e&&(0,t.isComponentReference)(e.connection)})),Yn=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.OAuth2PkceMethod=e.OAuth2Type=void 0,e.templateConnectionInputs=a;let n=t(Sn());var r;(function(e){e.ClientCredentials=`client_credentials`,e.AuthorizationCode=`authorization_code`})(r||(e.OAuth2Type=r={}));var i;(function(e){e.Plain=`plain`,e.S256=`S256`})(i||(e.OAuth2PkceMethod=i={}));function a(e,t,r){return(0,n.default)(e,t)}})),Xn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Zn=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OPERATOR_PHRASE_TO_EXPRESSION=e.TermOperatorPhrase=e.BinaryOperatorPhrase=e.BinaryOperator=e.UnaryOperatorPhrase=e.UnaryOperator=e.BooleanOperatorPhrase=e.BooleanOperator=void 0;var t;(function(e){e.and=`and`,e.or=`or`})(t||(e.BooleanOperator=t={})),e.BooleanOperatorPhrase=Object.keys(t);var n;(function(e){e.isTrue=`isTrue`,e.isFalse=`isFalse`,e.doesNotExist=`doesNotExist`,e.exists=`exists`,e.isEmpty=`isEmpty`,e.isNotEmpty=`isNotEmpty`})(n||(e.UnaryOperator=n={})),e.UnaryOperatorPhrase={[n.isTrue]:`is true`,[n.isFalse]:`is false`,[n.doesNotExist]:`does not exist`,[n.exists]:`exists`,[n.isEmpty]:`is empty`,[n.isNotEmpty]:`is not empty`};var r;(function(e){e.equal=`equal`,e.notEqual=`notEqual`,e.greaterThan=`greaterThan`,e.greaterThanOrEqual=`greaterThanOrEqual`,e.lessThan=`lessThan`,e.lessThanOrEqual=`lessThanOrEqual`,e.in=`in`,e.notIn=`notIn`,e.exactlyMatches=`exactlyMatches`,e.doesNotExactlyMatch=`doesNotExactlyMatch`,e.startsWith=`startsWith`,e.doesNotStartWith=`doesNotStartWith`,e.endsWith=`endsWith`,e.doesNotEndWith=`doesNotEndWith`,e.dateTimeAfter=`dateTimeAfter`,e.dateTimeBefore=`dateTimeBefore`,e.dateTimeSame=`dateTimeSame`})(r||(e.BinaryOperator=r={})),e.BinaryOperatorPhrase={[r.equal]:`equals`,[r.exactlyMatches]:`exactly matches`,[r.notEqual]:`does not equal`,[r.doesNotExactlyMatch]:`does not exactly match`,[r.greaterThan]:`is greater than`,[r.greaterThanOrEqual]:`is greater than or equal to`,[r.lessThan]:`is less than`,[r.lessThanOrEqual]:`is less than or equal to`,[r.in]:`contained in`,[r.notIn]:`not contained in`,[r.startsWith]:`starts the string`,[r.doesNotStartWith]:`does not start the string`,[r.endsWith]:`ends the string`,[r.doesNotEndWith]:`does not end the string`,[r.dateTimeAfter]:`is after (date/time)`,[r.dateTimeBefore]:`is before (date/time)`,[r.dateTimeSame]:`is the same (date/time)`},e.TermOperatorPhrase=Object.assign(Object.assign({},e.UnaryOperatorPhrase),e.BinaryOperatorPhrase),e.OPERATOR_PHRASE_TO_EXPRESSION={[r.equal]:{expression:`isEqual($LEFT_TERM, $RIGHT_TERM)`,includes:[`isEqual`]},[r.exactlyMatches]:{expression:`$LEFT_TERM === $RIGHT_TERM || isDeepEqual($LEFT_TERM, $RIGHT_TERM)`,includes:[`isDeepEqual`]},[r.notEqual]:{expression:`!(isEqual($LEFT_TERM, $RIGHT_TERM))`,includes:[`isEqual`]},[r.doesNotExactlyMatch]:{expression:`!($LEFT_TERM === $RIGHT_TERM || isDeepEqual($LEFT_TERM, $RIGHT_TERM))`,includes:[`isDeepEqual`]},[r.greaterThan]:{expression:`$LEFT_TERM > $RIGHT_TERM`},[r.greaterThanOrEqual]:{expression:`$LEFT_TERM >= $RIGHT_TERM`},[r.lessThan]:{expression:`$LEFT_TERM < $RIGHT_TERM`},[r.lessThanOrEqual]:{expression:`$LEFT_TERM <= $RIGHT_TERM`},[r.in]:{expression:`contains($RIGHT_TERM, $LEFT_TERM)`,includes:[`contains`]},[r.notIn]:{expression:`!contains($RIGHT_TERM, $LEFT_TERM)`,includes:[`contains`]},[r.startsWith]:{expression:`$RIGHT_TERM.startsWith($LEFT_TERM)`},[r.doesNotStartWith]:{expression:`!$RIGHT_TERM.startsWith($LEFT_TERM)`},[r.endsWith]:{expression:`$RIGHT_TERM.endsWith($LEFT_TERM)`},[r.doesNotEndWith]:{expression:`!$RIGHT_TERM.endsWith($LEFT_TERM)`},[r.dateTimeAfter]:{expression:`dateIsAfter($LEFT_TERM, $RIGHT_TERM)`,includes:[`dateIsAfter`]},[r.dateTimeBefore]:{expression:`dateIsBefore($LEFT_TERM, $RIGHT_TERM)`,includes:[`dateIsBefore`]},[r.dateTimeSame]:{expression:`dateIsEqual($LEFT_TERM, $RIGHT_TERM)`,includes:[`dateIsEqual`]},[t.and]:{expression:`$LEFT_TERM && $RIGHT_TERM`},[t.or]:{expression:`$LEFT_TERM || $RIGHT_TERM`},[n.isTrue]:{expression:`evaluatesTrue($LEFT_TERM)`,includes:[`evaluatesTrue`]},[n.isFalse]:{expression:`evaluatesFalse($LEFT_TERM)`,includes:[`evaluatesFalse`]},[n.doesNotExist]:{expression:`evaluatesNull($LEFT_TERM)`,includes:[`evaluatesNull`]},[n.exists]:{expression:`!evaluatesNull($LEFT_TERM)`,includes:[`evaluatesNull`]},[n.isEmpty]:{expression:`evaluatesEmpty($LEFT_TERM)`,includes:[`evaluatesEmpty`]},[n.isNotEmpty]:{expression:`!evaluatesNull($LEFT_TERM)`,includes:[`evaluatesNull`]}}})),Qn=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Zn(),e)})),$n=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),er=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),tr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),nr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),rr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),ir=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),ar=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),or=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_JSON_SCHEMA_VERSION=void 0,e.DEFAULT_JSON_SCHEMA_VERSION=`https://json-schema.org/draft/2020-12/schema`})),sr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),cr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InputFieldDefaultMap=void 0,e.InputFieldDefaultMap={string:``,data:``,text:``,password:``,boolean:`false`,code:``,conditional:void 0,connection:void 0,objectSelection:void 0,objectFieldMap:void 0,jsonForm:void 0,dynamicObjectSelection:``,dynamicFieldSelection:``,date:``,timestamp:``,flow:``,template:``,structuredObject:void 0,dynamicObject:void 0,number:``,float:``}})),lr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),ur=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),dr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),fr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),pr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),mr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isPollingTriggerDefinition=void 0,e.isPollingTriggerDefinition=e=>typeof e==`object`&&!!e&&`triggerType`in e&&e.triggerType===`polling`})),hr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isUserScopedConnectionConfigVar=e.isOrgOrCustomerActivatedConnection=e.isConnectionScopedConfigVar=void 0;let t=Jn();e.isConnectionScopedConfigVar=e=>!e||typeof e!=`object`||Array.isArray(e)||!(`dataType`in e)||e.dataType!==`connection`&&e.dataType!==`userScopedConnection`?!1:!(0,t.isConnectionDefinitionConfigVar)(e)&&!(0,t.isConnectionReferenceConfigVar)(e),e.isOrgOrCustomerActivatedConnection=t=>(0,e.isConnectionScopedConfigVar)(t)&&!(0,e.isUserScopedConnectionConfigVar)(t),e.isUserScopedConnectionConfigVar=e=>!!e&&typeof e==`object`&&!Array.isArray(e)&&`dataType`in e&&e.dataType===`userScopedConnection`})),gr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TriggerOptionChoices=void 0,e.TriggerOptionChoices=[`invalid`,`valid`,`required`]})),_r=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),vr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),yr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),br=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),xr=s((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Sr=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ln(),e),n(Rn(),e),n(zn(),e),n(Bn(),e),n(Vn(),e),n(Hn(),e),n(Un(),e),n(Wn(),e),n(Gn(),e),n(Kn(),e),n(qn(),e),n(Jn(),e),n(Yn(),e),n(Xn(),e),n(Qn(),e),n($n(),e),n(er(),e),n(tr(),e),n(nr(),e),n(rr(),e),n(ir(),e),n(ar(),e),n(or(),e),n(sr(),e),n(cr(),e),n(lr(),e),n(ur(),e),n(dr(),e),n(fr(),e),n(pr(),e),n(mr(),e),n(hr(),e),n(gr(),e),n(_r(),e),n(vr(),e),n(yr(),e),n(br(),e),n(xr(),e)})),Cr=s((e=>{e.secondsInYear=e.secondsInWeek=e.secondsInQuarter=e.secondsInMonth=e.secondsInMinute=e.secondsInHour=e.secondsInDay=e.quartersInYear=e.monthsInYear=e.monthsInQuarter=e.minutesInYear=e.minutesInMonth=e.minutesInHour=e.minutesInDay=e.minTime=e.millisecondsInWeek=e.millisecondsInSecond=e.millisecondsInMinute=e.millisecondsInHour=e.millisecondsInDay=e.maxTime=e.daysInYear=e.daysInWeek=e.constructFromSymbol=void 0,e.daysInWeek=7;let t=e.daysInYear=365.2425;e.minTime=-(e.maxTime=10**8*24*60*60*1e3),e.millisecondsInWeek=6048e5,e.millisecondsInDay=864e5,e.millisecondsInMinute=6e4,e.millisecondsInHour=36e5,e.millisecondsInSecond=1e3,e.minutesInYear=525600,e.minutesInMonth=43200,e.minutesInDay=1440,e.minutesInHour=60,e.monthsInQuarter=3,e.monthsInYear=12,e.quartersInYear=4;let n=e.secondsInHour=3600;e.secondsInMinute=60;let r=e.secondsInDay=n*24;e.secondsInWeek=r*7,e.secondsInQuarter=(e.secondsInMonth=(e.secondsInYear=r*t)/12)*3,e.constructFromSymbol=Symbol.for(`constructDateFrom`)})),wr=s((e=>{e.constructFrom=n;var t=Cr();function n(e,n){return typeof e==`function`?e(n):e&&typeof e==`object`&&t.constructFromSymbol in e?e[t.constructFromSymbol](n):e instanceof Date?new e.constructor(n):new Date(n)}})),Q=s((e=>{e.toDate=n;var t=wr();function n(e,n){return(0,t.constructFrom)(n||e,e)}})),Tr=s((e=>{e.fromUnixTime=n;var t=Q();function n(e,n){return(0,t.toDate)(e*1e3,n?.in)}})),Er=s((e=>{e.isDate=t;function t(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}})),Dr=s((e=>{e.isValid=r;var t=Er(),n=Q();function r(e){return!(!(0,t.isDate)(e)&&typeof e!=`number`||isNaN(+(0,n.toDate)(e)))}})),Or=s((e=>{e.parseISO=i;var t=Cr(),n=wr(),r=Q();function i(e,t){let i=()=>(0,n.constructFrom)(t?.in,NaN),a=t?.additionalDigits??2,o=l(e),s;if(o.date){let e=u(o.date,a);s=d(e.restDateString,e.year)}if(!s||isNaN(+s))return i();let c=+s,f=0,m;if(o.time&&(f=p(o.time),isNaN(f)))return i();if(o.timezone){if(m=h(o.timezone),isNaN(m))return i()}else{let e=new Date(c+f),n=(0,r.toDate)(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return(0,r.toDate)(c+f+m,t?.in)}let a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},o=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e){let t={},n=e.split(a.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],a.timeZoneDelimiter.test(t.date)&&(t.date=e.split(a.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){let e=a.timezone.exec(r);e?(t.time=r.replace(e[1],``),t.timezone=e[1]):t.time=r}return t}function u(e,t){let n=RegExp(`^(?:(\\d{4}|[+-]\\d{`+(4+t)+`})|(\\d{2}|[+-]\\d{`+(2+t)+`})$)`),r=e.match(n);if(!r)return{year:NaN,restDateString:``};let i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function d(e,t){if(t===null)return new Date(NaN);let n=e.match(o);if(!n)return new Date(NaN);let r=!!n[4],i=f(n[1]),a=f(n[2])-1,s=f(n[3]),c=f(n[4]),l=f(n[5])-1;if(r)return x(t,c,l)?g(t,c,l):new Date(NaN);{let e=new Date(0);return!y(t,a,s)||!b(t,i)?new Date(NaN):(e.setUTCFullYear(t,a,Math.max(i,s)),e)}}function f(e){return e?parseInt(e):1}function p(e){let n=e.match(s);if(!n)return NaN;let r=m(n[1]),i=m(n[2]),a=m(n[3]);return S(r,i,a)?r*t.millisecondsInHour+i*t.millisecondsInMinute+a*1e3:NaN}function m(e){return e&&parseFloat(e.replace(`,`,`.`))||0}function h(e){if(e===`Z`)return 0;let n=e.match(c);if(!n)return 0;let r=n[1]===`+`?-1:1,i=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return C(i,a)?r*(i*t.millisecondsInHour+a*t.millisecondsInMinute):NaN}function g(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}let _=[31,null,31,30,31,30,31,31,30,31,30,31];function v(e){return e%400==0||e%4==0&&e%100!=0}function y(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(_[t]||(v(e)?29:28))}function b(e,t){return t>=1&&t<=(v(e)?366:365)}function x(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function S(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function C(e,t){return t>=0&&t<=59}})),kr=s(((e,t)=>{function n(e){if(typeof e!=`function`)throw TypeError(`Expected a function`);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}t.exports=n})),Ar=s(((e,t)=>{var n=de(),r=Wt(),i=be(),a=M(),o=Gt();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),jr=s(((e,t)=>{var n=Kt(),r=Ar(),i=Wt();function a(e,t,a){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],u=n(e,l);a(u,l)&&r(c,i(l,e),u)}return c}t.exports=a})),Mr=s(((e,t)=>{var n=Vt(),r=nn(),i=jr(),a=Ye();function o(e,t){if(e==null)return{};var o=n(a(e),function(e){return[e]});return t=r(t),i(e,o,function(e,n){return t(e,n[0])})}t.exports=o})),Nr=s(((e,t)=>{var n=nn(),r=kr(),i=Mr();function a(e,t){return i(e,r(n(t)))}t.exports=a})),Pr=s((()=>{let{hasOwnProperty:e}=Object.prototype,t=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/,n=typeof process==`object`?process?.versions?.node:void 0,r=Number(n?.slice(0,n.indexOf(`.`)))>=22?128:5e3;function i(e){return e.length<r&&!t.test(e)?`"${e}"`:JSON.stringify(e)}function a(e,t){if(e.length>200||t)return e.sort(t);let n=0;if(e.length>1&&e[0]>e[1]){let t=e[1];if(e.length>32&&t>e[e.length-1])return e.sort();e[1]=e[0],e[0]=t,n=1}for(let t=2;t<e.length;t++){let r=e[t];if(e[t-1]<=r)continue;let i=t;do e[i]=e[i-1],i--;while(i!==0&&e[i-1]>r);if(e[i]=r,n+=t-i,n>e.length&&n>32)return e.sort()}return e}let o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function s(e){let t=o.call(e);return t!==void 0&&e.length!==0?t:void 0}function c(e){return`"${e}"`}function l(e,t,n,r,i,a){e.length<n&&(n=e.length);let o=t===`,`?``:` `;if(a[0]===`F`){let r=e[0],a=`"0":${o}${Number.isFinite(r)?r:i?i(r):`null`}`;for(let s=1;s<n;s++)r=e[s],a+=`${t}"${s}":${o}${Number.isFinite(r)?r:i?i(r):`null`}`;return a}let s=r===`string`&&e.length>0&&typeof e[0]==`bigint`?c:String,l=`"0":${o}${s(e[0])}`;for(let r=1;r<n;r++)l+=`${t}"${r}":${o}${s(e[r])}`;return l}function u(e){return`"[Circular: ${e}]"`}function d(t){if(e.call(t,`circularValue`)){let e=t.circularValue;if(typeof e==`string`)return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw TypeError(`Converting circular structure to JSON`)}};throw TypeError(`The "circularValue" argument must be of type string or the value null or undefined`)}return u}function f(t){let n;if(e.call(t,`deterministic`)&&(n=t.deterministic,typeof n!=`boolean`&&typeof n!=`function`))throw TypeError(`The "deterministic" argument must be of type boolean or comparator function`);return n===void 0||n}function p(t){let n;if(e.call(t,`bigint`)){if(n=t.bigint,typeof n==`string`){if(n!==`string`)throw TypeError(`The "bigint" argument must be of type boolean or the string "string"`)}else if(typeof n!=`boolean`)throw TypeError(`The "bigint" argument must be of type boolean or the string "string"`)}return n===void 0||n}function m(t,n,r){let i;if(e.call(t,n)&&(i=t[n],typeof i!=`boolean`))throw TypeError(`The "${n}" argument must be of type boolean`);return i===void 0?r:i}function h(t,n){let r;if(e.call(t,n)){if(r=t[n],typeof r!=`number`)throw TypeError(`The "${n}" argument must be of type number`);if(!Number.isInteger(r))throw TypeError(`The "${n}" argument must be an integer`);if(r<1)throw RangeError(`The "${n}" argument must be >= 1`)}return r===void 0?1/0:r}function g(e){return e===1?`1 item`:`${e} items`}function _(e){let t=new Set;for(let n of e)(typeof n==`string`||typeof n==`number`)&&t.add(String(n));return t}function v(t){if(e.call(t,`strict`)){let e=t.strict;if(typeof e!=`boolean`)throw TypeError(`The "strict" argument must be of type boolean`);if(e)return e=>{let t=`Object can not safely be stringified. Received type ${typeof e}`;throw typeof e!=`function`&&(t+=` (${y(e)})`),Error(t)}}}function y(e){try{return String(e)}catch{return`Failed`}}function b(e,t){let n=typeof e?.message==`string`?e.message:y(e);return t?`Error: Stringification failed with ${t} (${n})`:`Error: Stringification failed (${n})`}function x(e,t,n){try{return e.call(t,n)}catch(t){return b(t,e.name)}}function S(e,t){let n=function(...n){try{return e(...n)}catch(e){return t===void 0?`"${b(e,t)}"`:b(e,t)}};return Object.defineProperty(n,"name",{value:`safe_${e.name}`}),n}function C(e){e={...e};let t=v(e);t&&(e.bigint===void 0&&(e.bigint=!1),`circularValue`in e||(e.circularValue=Error));let n=d(e),r=p(e),o=f(e),c=typeof o==`function`?o:void 0,u=h(e,`maximumDepth`),y=h(e,`maximumBreadth`),b=m(e,`safe`,!1),C=function(e,t,r,l,d,f){let p=t[e];if(typeof p==`object`&&p&&typeof p.toJSON==`function`&&(p=b?x(p.toJSON,p,e):p.toJSON(e)),p=l.call(t,e,p),typeof p==`object`){if(p===null)return`null`;let e=r.indexOf(p);if(e!==-1)return typeof n==`function`?n(e):n;let t=``,m=`,`,h=f;if(Array.isArray(p)){if(p.length===0)return`[]`;if(u<r.length+1)return`"[Array]"`;r.push(p),d!==``&&(f+=d,t+=`\n${f}`,m=`,\n${f}`);let e=Math.min(p.length,y),n=0;for(;n<e-1;n++){let e=C(String(n),p,r,l,d,f);t+=e===void 0?`null`:e,t+=m}let i=C(String(n),p,r,l,d,f);if(t+=i===void 0?`null`:i,p.length>y){let e=p.length-y;t+=`${m}"... ${g(e)} not stringified"`}return d!==``&&(t+=`\n${h}`),r.pop(),`[${t}]`}let _=Object.keys(p),v=_.length;if(v===0)return`{}`;if(u<r.length+1)return`"[Object]"`;let b=``,x=``;d!==``&&(f+=d,m=`,\n${f}`,b=` `);let S=Math.min(v,y);o&&s(p)===void 0&&(_=a(_,c)),r.push(p);for(let e=0;e<S;e++){let n=_[e],a=C(n,p,r,l,d,f);a!==void 0&&(t+=`${x}${i(n)}:${b}${a}`,x=m)}if(v>y){let e=v-y;t+=`${x}"...":${b}"${g(e)} not stringified"`,x=m}return d!==``&&x.length>1&&(t=`\n${f}${t}\n${h}`),r.pop(),`{${t}}`}return O(p)},w=function(e,t,r,a,o,s){if(t===null)return`null`;if(typeof t.toJSON==`function`){typeof e==`number`&&(e=String(e));let n=b?x(t.toJSON,t,e):t.toJSON(e);if(typeof n!=`object`)return E(n);if(n===null)return`null`;t=n}let c=r.indexOf(t);if(c!==-1)return typeof n==`function`?n(c):n;let l=s,d=``,f=`,`;if(Array.isArray(t)){if(t.length===0)return`[]`;if(u<r.length+1)return`"[Array]"`;r.push(t),o!==``&&(s+=o,d+=`\n${s}`,f=`,\n${s}`);let e=Math.min(t.length,y),n=0;for(;n<e-1;n++){let e=t[n],i=typeof e==`object`?w(n,e,r,a,o,s):E(e);d+=i===void 0?`null`:i,d+=f}let i=t[n],c=typeof i==`object`?w(n,i,r,a,o,s):E(i);if(d+=c===void 0?`null`:c,t.length>y){let e=t.length-y;d+=`${f}"... ${g(e)} not stringified"`}return o!==``&&(d+=`\n${l}`),r.pop(),`[${d}]`}if(u<r.length+1)return`"[Object]"`;r.push(t);let p=``;o!==``&&(s+=o,f=`,\n${s}`,p=` `);let m=``;for(let e of a){let n=t[e],c=typeof n==`object`?w(e,n,r,a,o,s):E(n);c!==void 0&&(d+=`${m}${i(e)}:${p}${c}`,m=f)}return o!==``&&m.length>1&&(d=`\n${s}${d}\n${l}`),r.pop(),`{${d}}`},T=function(e,d,f,p,m){if(d===null)return`null`;if(typeof d.toJSON==`function`){typeof e==`number`&&(e=String(e));let t=b?x(d.toJSON,d,e):d.toJSON(e);if(typeof t!=`object`)return E(t);if(t===null)return`null`;d=t}let h=f.indexOf(d);if(h!==-1)return typeof n==`function`?n(h):n;let _=m;if(Array.isArray(d)){if(d.length===0)return`[]`;if(u<f.length+1)return`"[Array]"`;f.push(d),m+=p;let e=`\n${m}`,t=`,\n${m}`,n=Math.min(d.length,y),r=0;for(;r<n-1;r++){let n=d[r],i=typeof n==`object`?T(r,n,f,p,m):E(n);e+=i===void 0?`null`:i,e+=t}let i=d[r],a=typeof i==`object`?T(r,i,f,p,m):E(i);if(e+=a===void 0?`null`:a,d.length>y){let n=d.length-y;e+=`${t}"... ${g(n)} not stringified"`}return e+=`\n${_}`,f.pop(),`[${e}]`}let v=Object.keys(d),S=v.length;if(S===0)return`{}`;if(u<f.length+1)return`"[Object]"`;m+=p;let C=`,\n${m}`,w=``,D=``,O=Math.min(S,y),k=s(d);k!==void 0&&(w+=l(d,C,y,r,t,k),v=v.slice(d.length),O-=d.length,D=C),o&&(v=a(v,c)),f.push(d);for(let e=0;e<O;e++){let t=v[e],n=d[t],r=typeof n==`object`?T(t,n,f,p,m):E(n);r!==void 0&&(w+=`${D}${i(t)}: ${r}`,D=C)}if(S>y){let e=S-y;w+=`${D}"...": "${g(e)} not stringified"`,D=C}return D!==``&&(w=`\n${m}${w}\n${_}`),f.pop(),`{${w}}`},E=function(e){switch(typeof e){case`string`:return i(e);case`number`:return isFinite(e)?String(e):t?t(e):`null`;case`boolean`:return e===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(r)return r===`string`?`"${e}"`:String(e);default:return t?t(e):void 0}},D=function(e,d,f){if(d===null)return`null`;if(typeof d.toJSON==`function`){typeof e==`number`&&(e=String(e));let t=b?x(d.toJSON,d,e):d.toJSON(e);if(typeof t!=`object`)return E(t);if(t===null)return`null`;d=t}let p=f.indexOf(d);if(p!==-1)return typeof n==`function`?n(p):n;let m=``,h=d.length!==void 0;if(h&&Array.isArray(d)){if(d.length===0)return`[]`;if(u<f.length+1)return`"[Array]"`;f.push(d);let e=Math.min(d.length,y),t=0;for(;t<e-1;t++){let e=d[t],n=typeof e==`object`?D(t,e,f):E(e);m+=n===void 0?`null`:n,m+=`,`}let n=d[t],r=typeof n==`object`?D(t,n,f):E(n);if(m+=r===void 0?`null`:r,d.length>y){let e=d.length-y;m+=`,"... ${g(e)} not stringified"`}return f.pop(),`[${m}]`}let _=Object.keys(d),v=_.length;if(v===0)return`{}`;if(u<f.length+1)return`"[Object]"`;let S=``,C=Math.min(v,y),w=h?s(d):void 0;w!==void 0&&(m+=l(d,`,`,y,r,t,w),_=_.slice(d.length),C-=d.length,S=`,`),o&&(_=a(_,c)),f.push(d);for(let e=0;e<C;e++){let t=_[e],n=d[t],r=typeof n==`object`?D(t,n,f):E(n);r!==void 0&&(m+=`${S}${i(t)}:${r}`,S=`,`)}if(v>y){let e=v-y;m+=`${S}"...":"${g(e)} not stringified"`}return f.pop(),`{${m}}`},O=E;b&&(C=S(C),w=S(w),T=S(T),D=S(D),E=S(E));function k(e,t,n){if(arguments.length>1){let r=``;if(typeof n==`number`?r=` `.repeat(Math.max(0,Math.min(n,10))):typeof n==`string`&&(r=n.slice(0,10)),t!=null){if(typeof t==`function`)return b&&(t=S(t,t.name)),C(``,{"":e},[],t,r,``);if(Array.isArray(t))return typeof e==`object`?w(``,e,[],_(t),r,``):E(e)}if(r.length!==0)return typeof e==`object`?T(``,e,[],r,``):E(e)}return typeof e==`object`?D(``,e,[]):E(e)}return k}let w=globalThis,T=Symbol.for(`safe-stable-stringify@3.0.0`);if(w[T]===void 0){let e=C();e.configure=C,e.stringify=e,e.default=e,Object.defineProperty(w,T,{configurable:!0,enumerable:!1,value:e,writable:!0})}})),Fr=s(((e,t)=>{Pr(),t.exports=globalThis[Symbol.for(`safe-stable-stringify@3.0.0`)]})),Ir=s(((e,t)=>{(function(e){"use strict";e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=a,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=a;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n=[],r=``,i=``,a=``,o=``,s=``,c=``;if(n=t(e),r=n[1],i=n[2],a=n[3],o=n[4],s=n[5],r&&r.length&&a.length>=0){if(i&&i.length){if(!(a.length===0||/^\//.test(a)))return}else if(/^\/\//.test(a))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(r.toLowerCase()))return c+=r+`:`,i&&i.length&&(c+=`//`+i),c+=a,o&&o.length&&(c+=`?`+o),s&&s.length&&(c+=`#`+s),c}}}function r(e,r){if(n(e)){var i=[],a=``,o=``,s=``,c=``,l=``,u=``,d=``;if(i=t(e),a=i[1],o=i[2],s=i[3],l=i[4],u=i[5],a){if(r){if(a.toLowerCase()!=`https`)return}else if(a.toLowerCase()!=`http`)return;if(o)return/:(\d+)$/.test(o)&&(c=o.match(/:(\d+)$/)[0],o=o.replace(/:\d+$/,``)),d+=a+`:`,d+=`//`+o,c&&(d+=c),d+=s,l&&l.length&&(d+=`?`+l),u&&u.length&&(d+=`#`+u),d}}}function i(e){return r(e,!0)}function a(e){return r(e)||i(e)}})(t)})),Lr=s((e=>{e.addDays=r;var t=wr(),n=Q();function r(e,r,i){let a=(0,n.toDate)(e,i?.in);return isNaN(r)?(0,t.constructFrom)(i?.in||e,NaN):(r&&a.setDate(a.getDate()+r),a)}})),Rr=s((e=>{e.addMonths=r;var t=wr(),n=Q();function r(e,r,i){let a=(0,n.toDate)(e,i?.in);if(isNaN(r))return(0,t.constructFrom)(i?.in||e,NaN);if(!r)return a;let o=a.getDate(),s=(0,t.constructFrom)(i?.in||e,a.getTime());return s.setMonth(a.getMonth()+r+1,0),o>=s.getDate()?s:(a.setFullYear(s.getFullYear(),s.getMonth(),o),a)}})),zr=s((e=>{e.add=a;var t=Lr(),n=Rr(),r=wr(),i=Q();function a(e,a,o){let{years:s=0,months:c=0,weeks:l=0,days:u=0,hours:d=0,minutes:f=0,seconds:p=0}=a,m=(0,i.toDate)(e,o?.in),h=c||s?(0,n.addMonths)(m,c+s*12):m,g=u||l?(0,t.addDays)(h,u+l*7):h,_=(p+(f+d*60)*60)*1e3;return(0,r.constructFrom)(o?.in||e,+g+_)}})),Br=s((e=>{e.isSaturday=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()===6}})),Vr=s((e=>{e.isSunday=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()===0}})),Hr=s((e=>{e.isWeekend=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in).getDay();return r===0||r===6}})),Ur=s((e=>{e.addBusinessDays=o;var t=wr(),n=Br(),r=Vr(),i=Hr(),a=Q();function o(e,o,s){let c=(0,a.toDate)(e,s?.in),l=(0,i.isWeekend)(c,s);if(isNaN(o))return(0,t.constructFrom)(s?.in,NaN);let u=c.getHours(),d=o<0?-1:1,f=Math.trunc(o/5);c.setDate(c.getDate()+f*7);let p=Math.abs(o%5);for(;p>0;)c.setDate(c.getDate()+d),(0,i.isWeekend)(c,s)||--p;return l&&(0,i.isWeekend)(c,s)&&o!==0&&((0,n.isSaturday)(c,s)&&c.setDate(c.getDate()+(d<0?2:-1)),(0,r.isSunday)(c,s)&&c.setDate(c.getDate()+(d<0?1:-2))),c.setHours(u),c}})),Wr=s((e=>{e.addMilliseconds=r;var t=wr(),n=Q();function r(e,r,i){return(0,t.constructFrom)(i?.in||e,+(0,n.toDate)(e)+r)}})),Gr=s((e=>{e.addHours=r;var t=Wr(),n=Cr();function r(e,r,i){return(0,t.addMilliseconds)(e,r*n.millisecondsInHour,i)}})),Kr=s((e=>{e.getDefaultOptions=n,e.setDefaultOptions=r;let t={};function n(){return t}function r(e){t=e}})),qr=s((e=>{e.startOfWeek=r;var t=Kr(),n=Q();function r(e,r){let i=(0,t.getDefaultOptions)(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,n.toDate)(e,r?.in),s=o.getDay(),c=(s<a?7:0)+s-a;return o.setDate(o.getDate()-c),o.setHours(0,0,0,0),o}})),Jr=s((e=>{e.startOfISOWeek=n;var t=qr();function n(e,n){return(0,t.startOfWeek)(e,{...n,weekStartsOn:1})}})),Yr=s((e=>{e.getISOWeekYear=i;var t=wr(),n=Jr(),r=Q();function i(e,i){let a=(0,r.toDate)(e,i?.in),o=a.getFullYear(),s=(0,t.constructFrom)(a,0);s.setFullYear(o+1,0,4),s.setHours(0,0,0,0);let c=(0,n.startOfISOWeek)(s),l=(0,t.constructFrom)(a,0);l.setFullYear(o,0,4),l.setHours(0,0,0,0);let u=(0,n.startOfISOWeek)(l);return a.getTime()>=c.getTime()?o+1:a.getTime()>=u.getTime()?o:o-1}})),Xr=s((e=>{e.getTimezoneOffsetInMilliseconds=n;var t=Q();function n(e){let n=(0,t.toDate)(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),e-+r}})),Zr=s((e=>{e.normalizeDates=n;var t=wr();function n(e,...n){let r=t.constructFrom.bind(null,e||n.find(e=>typeof e==`object`));return n.map(r)}})),Qr=s((e=>{e.startOfDay=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setHours(0,0,0,0),r}})),$r=s((e=>{e.differenceInCalendarDays=a;var t=Xr(),n=Zr(),r=Cr(),i=Qr();function a(e,a,o){let[s,c]=(0,n.normalizeDates)(o?.in,e,a),l=(0,i.startOfDay)(s),u=(0,i.startOfDay)(c),d=+l-(0,t.getTimezoneOffsetInMilliseconds)(l),f=+u-(0,t.getTimezoneOffsetInMilliseconds)(u);return Math.round((d-f)/r.millisecondsInDay)}})),ei=s((e=>{e.startOfISOWeekYear=i;var t=wr(),n=Yr(),r=Jr();function i(e,i){let a=(0,n.getISOWeekYear)(e,i),o=(0,t.constructFrom)(i?.in||e,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),(0,r.startOfISOWeek)(o)}})),ti=s((e=>{e.setISOWeekYear=a;var t=wr(),n=$r(),r=ei(),i=Q();function a(e,a,o){let s=(0,i.toDate)(e,o?.in),c=(0,n.differenceInCalendarDays)(s,(0,r.startOfISOWeekYear)(s,o)),l=(0,t.constructFrom)(o?.in||e,0);return l.setFullYear(a,0,4),l.setHours(0,0,0,0),s=(0,r.startOfISOWeekYear)(l),s.setDate(s.getDate()+c),s}})),ni=s((e=>{e.addISOWeekYears=r;var t=Yr(),n=ti();function r(e,r,i){return(0,n.setISOWeekYear)(e,(0,t.getISOWeekYear)(e,i)+r,i)}})),ri=s((e=>{e.addMinutes=r;var t=Cr(),n=Q();function r(e,r,i){let a=(0,n.toDate)(e,i?.in);return a.setTime(a.getTime()+r*t.millisecondsInMinute),a}})),ii=s((e=>{e.addQuarters=n;var t=Rr();function n(e,n,r){return(0,t.addMonths)(e,n*3,r)}})),ai=s((e=>{e.addSeconds=n;var t=Wr();function n(e,n,r){return(0,t.addMilliseconds)(e,n*1e3,r)}})),oi=s((e=>{e.addWeeks=n;var t=Lr();function n(e,n,r){return(0,t.addDays)(e,n*7,r)}})),si=s((e=>{e.addYears=n;var t=Rr();function n(e,n,r){return(0,t.addMonths)(e,n*12,r)}})),ci=s((e=>{e.areIntervalsOverlapping=n;var t=Q();function n(e,n,r){let[i,a]=[+(0,t.toDate)(e.start,r?.in),+(0,t.toDate)(e.end,r?.in)].sort((e,t)=>e-t),[o,s]=[+(0,t.toDate)(n.start,r?.in),+(0,t.toDate)(n.end,r?.in)].sort((e,t)=>e-t);return r?.inclusive?i<=s&&o<=a:i<s&&o<a}})),li=s((e=>{e.max=r;var t=wr(),n=Q();function r(e,r){let i,a=r?.in;return e.forEach(e=>{!a&&typeof e==`object`&&(a=t.constructFrom.bind(null,e));let r=(0,n.toDate)(e,a);(!i||i<r||isNaN(+r))&&(i=r)}),(0,t.constructFrom)(a,i||NaN)}})),ui=s((e=>{e.min=r;var t=wr(),n=Q();function r(e,r){let i,a=r?.in;return e.forEach(e=>{!a&&typeof e==`object`&&(a=t.constructFrom.bind(null,e));let r=(0,n.toDate)(e,a);(!i||i>r||isNaN(+r))&&(i=r)}),(0,t.constructFrom)(a,i||NaN)}})),di=s((e=>{e.clamp=i;var t=Zr(),n=li(),r=ui();function i(e,i,a){let[o,s,c]=(0,t.normalizeDates)(a?.in,e,i.start,i.end);return(0,r.min)([(0,n.max)([o,s],a),c],a)}})),fi=s((e=>{e.closestIndexTo=n;var t=Q();function n(e,n){let r=+(0,t.toDate)(e);if(isNaN(r))return NaN;let i,a;return n.forEach((e,n)=>{let o=(0,t.toDate)(e);if(isNaN(+o)){i=NaN,a=NaN;return}let s=Math.abs(r-+o);(i==null||s<a)&&(i=n,a=s)}),i}})),pi=s((e=>{e.closestTo=i;var t=Zr(),n=fi(),r=wr();function i(e,i,a){let[o,...s]=(0,t.normalizeDates)(a?.in,e,...i),c=(0,n.closestIndexTo)(o,s);if(typeof c==`number`&&isNaN(c))return(0,r.constructFrom)(o,NaN);if(c!==void 0)return s[c]}})),mi=s((e=>{e.compareAsc=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e)-+(0,t.toDate)(n);return r<0?-1:r>0?1:r}})),hi=s((e=>{e.compareDesc=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e)-+(0,t.toDate)(n);return r>0?-1:r<0?1:r}})),gi=s((e=>{e.constructNow=n;var t=wr();function n(e){return(0,t.constructFrom)(e,Date.now())}})),_i=s((e=>{e.daysToWeeks=n;var t=Cr();function n(e){let n=Math.trunc(e/t.daysInWeek);return n===0?0:n}})),vi=s((e=>{e.isSameDay=r;var t=Zr(),n=Qr();function r(e,r,i){let[a,o]=(0,t.normalizeDates)(i?.in,e,r);return+(0,n.startOfDay)(a)==+(0,n.startOfDay)(o)}})),yi=s((e=>{e.differenceInBusinessDays=s;var t=Zr(),n=Lr(),r=$r(),i=vi(),a=Dr(),o=Hr();function s(e,s,c){let[l,u]=(0,t.normalizeDates)(c?.in,e,s);if(!(0,a.isValid)(l)||!(0,a.isValid)(u))return NaN;let d=(0,r.differenceInCalendarDays)(l,u),f=d<0?-1:1,p=Math.trunc(d/7),m=p*5,h=(0,n.addDays)(u,p*7);for(;!(0,i.isSameDay)(l,h);)m+=(0,o.isWeekend)(h,c)?0:f,h=(0,n.addDays)(h,f);return m===0?0:m}})),bi=s((e=>{e.differenceInCalendarISOWeekYears=r;var t=Zr(),n=Yr();function r(e,r,i){let[a,o]=(0,t.normalizeDates)(i?.in,e,r);return(0,n.getISOWeekYear)(a,i)-(0,n.getISOWeekYear)(o,i)}})),xi=s((e=>{e.differenceInCalendarISOWeeks=a;var t=Xr(),n=Zr(),r=Cr(),i=Jr();function a(e,a,o){let[s,c]=(0,n.normalizeDates)(o?.in,e,a),l=(0,i.startOfISOWeek)(s),u=(0,i.startOfISOWeek)(c),d=+l-(0,t.getTimezoneOffsetInMilliseconds)(l),f=+u-(0,t.getTimezoneOffsetInMilliseconds)(u);return Math.round((d-f)/r.millisecondsInWeek)}})),Si=s((e=>{e.differenceInCalendarMonths=n;var t=Zr();function n(e,n,r){let[i,a]=(0,t.normalizeDates)(r?.in,e,n),o=i.getFullYear()-a.getFullYear(),s=i.getMonth()-a.getMonth();return o*12+s}})),Ci=s((e=>{e.getQuarter=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return Math.trunc(r.getMonth()/3)+1}})),wi=s((e=>{e.differenceInCalendarQuarters=r;var t=Zr(),n=Ci();function r(e,r,i){let[a,o]=(0,t.normalizeDates)(i?.in,e,r),s=a.getFullYear()-o.getFullYear(),c=(0,n.getQuarter)(a)-(0,n.getQuarter)(o);return s*4+c}})),Ti=s((e=>{e.differenceInCalendarWeeks=a;var t=Xr(),n=Zr(),r=Cr(),i=qr();function a(e,a,o){let[s,c]=(0,n.normalizeDates)(o?.in,e,a),l=(0,i.startOfWeek)(s,o),u=(0,i.startOfWeek)(c,o),d=+l-(0,t.getTimezoneOffsetInMilliseconds)(l),f=+u-(0,t.getTimezoneOffsetInMilliseconds)(u);return Math.round((d-f)/r.millisecondsInWeek)}})),Ei=s((e=>{e.differenceInCalendarYears=n;var t=Zr();function n(e,n,r){let[i,a]=(0,t.normalizeDates)(r?.in,e,n);return i.getFullYear()-a.getFullYear()}})),Di=s((e=>{e.differenceInDays=r;var t=Zr(),n=$r();function r(e,r,a){let[o,s]=(0,t.normalizeDates)(a?.in,e,r),c=i(o,s),l=Math.abs((0,n.differenceInCalendarDays)(o,s));o.setDate(o.getDate()-c*l);let u=c*(l-Number(i(o,s)===-c));return u===0?0:u}function i(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}})),Oi=s((e=>{e.getRoundingMethod=t;function t(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}})),ki=s((e=>{e.differenceInHours=i;var t=Oi(),n=Zr(),r=Cr();function i(e,i,a){let[o,s]=(0,n.normalizeDates)(a?.in,e,i),c=(o-+s)/r.millisecondsInHour;return(0,t.getRoundingMethod)(a?.roundingMethod)(c)}})),Ai=s((e=>{e.subISOWeekYears=n;var t=ni();function n(e,n,r){return(0,t.addISOWeekYears)(e,-n,r)}})),ji=s((e=>{e.differenceInISOWeekYears=a;var t=Zr(),n=mi(),r=bi(),i=Ai();function a(e,a,o){let[s,c]=(0,t.normalizeDates)(o?.in,e,a),l=(0,n.compareAsc)(s,c),u=Math.abs((0,r.differenceInCalendarISOWeekYears)(s,c,o)),d=(0,i.subISOWeekYears)(s,l*u,o),f=l*(u-Number((0,n.compareAsc)(d,c)===-l));return f===0?0:f}})),Mi=s((e=>{e.differenceInMilliseconds=n;var t=Q();function n(e,n){return(0,t.toDate)(e)-+(0,t.toDate)(n)}})),Ni=s((e=>{e.differenceInMinutes=i;var t=Oi(),n=Cr(),r=Mi();function i(e,i,a){let o=(0,r.differenceInMilliseconds)(e,i)/n.millisecondsInMinute;return(0,t.getRoundingMethod)(a?.roundingMethod)(o)}})),Pi=s((e=>{e.endOfDay=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setHours(23,59,59,999),r}})),Fi=s((e=>{e.endOfMonth=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r}})),Ii=s((e=>{e.isLastDayOfMonth=i;var t=Pi(),n=Fi(),r=Q();function i(e,i){let a=(0,r.toDate)(e,i?.in);return+(0,t.endOfDay)(a,i)==+(0,n.endOfMonth)(a,i)}})),Li=s((e=>{e.differenceInMonths=a;var t=Zr(),n=mi(),r=Si(),i=Ii();function a(e,a,o){let[s,c,l]=(0,t.normalizeDates)(o?.in,e,e,a),u=(0,n.compareAsc)(c,l),d=Math.abs((0,r.differenceInCalendarMonths)(c,l));if(d<1)return 0;c.getMonth()===1&&c.getDate()>27&&c.setDate(30),c.setMonth(c.getMonth()-u*d);let f=(0,n.compareAsc)(c,l)===-u;(0,i.isLastDayOfMonth)(s)&&d===1&&(0,n.compareAsc)(s,l)===1&&(f=!1);let p=u*(d-+f);return p===0?0:p}})),Ri=s((e=>{e.differenceInQuarters=r;var t=Oi(),n=Li();function r(e,r,i){let a=(0,n.differenceInMonths)(e,r,i)/3;return(0,t.getRoundingMethod)(i?.roundingMethod)(a)}})),zi=s((e=>{e.differenceInSeconds=r;var t=Oi(),n=Mi();function r(e,r,i){let a=(0,n.differenceInMilliseconds)(e,r)/1e3;return(0,t.getRoundingMethod)(i?.roundingMethod)(a)}})),Bi=s((e=>{e.differenceInWeeks=r;var t=Oi(),n=Di();function r(e,r,i){let a=(0,n.differenceInDays)(e,r,i)/7;return(0,t.getRoundingMethod)(i?.roundingMethod)(a)}})),Vi=s((e=>{e.differenceInYears=i;var t=Zr(),n=mi(),r=Ei();function i(e,i,a){let[o,s]=(0,t.normalizeDates)(a?.in,e,i),c=(0,n.compareAsc)(o,s),l=Math.abs((0,r.differenceInCalendarYears)(o,s));o.setFullYear(1584),s.setFullYear(1584);let u=c*(l-+((0,n.compareAsc)(o,s)===-c));return u===0?0:u}})),Hi=s((e=>{e.normalizeInterval=n;var t=Zr();function n(e,n){let[r,i]=(0,t.normalizeDates)(e,n.start,n.end);return{start:r,end:i}}})),Ui=s((e=>{e.eachDayOfInterval=r;var t=Hi(),n=wr();function r(e,r){let{start:i,end:a}=(0,t.normalizeInterval)(r?.in,e),o=+i>+a,s=o?+i:+a,c=o?a:i;c.setHours(0,0,0,0);let l=r?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+c<=s;)u.push((0,n.constructFrom)(i,c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return o?u.reverse():u}})),Wi=s((e=>{e.eachHourOfInterval=r;var t=Hi(),n=wr();function r(e,r){let{start:i,end:a}=(0,t.normalizeInterval)(r?.in,e),o=+i>+a,s=o?+i:+a,c=o?a:i;c.setMinutes(0,0,0);let l=r?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+c<=s;)u.push((0,n.constructFrom)(i,c)),c.setHours(c.getHours()+l);return o?u.reverse():u}})),Gi=s((e=>{e.eachMinuteOfInterval=i;var t=Hi(),n=ri(),r=wr();function i(e,i){let{start:a,end:o}=(0,t.normalizeInterval)(i?.in,e);a.setSeconds(0,0);let s=+a>+o,c=s?+a:+o,l=s?o:a,u=i?.step??1;if(!u)return[];u<0&&(u=-u,s=!s);let d=[];for(;+l<=c;)d.push((0,r.constructFrom)(a,l)),l=(0,n.addMinutes)(l,u);return s?d.reverse():d}})),Ki=s((e=>{e.eachMonthOfInterval=r;var t=Hi(),n=wr();function r(e,r){let{start:i,end:a}=(0,t.normalizeInterval)(r?.in,e),o=+i>+a,s=o?+i:+a,c=o?a:i;c.setHours(0,0,0,0),c.setDate(1);let l=r?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+c<=s;)u.push((0,n.constructFrom)(i,c)),c.setMonth(c.getMonth()+l);return o?u.reverse():u}})),qi=s((e=>{e.startOfQuarter=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getMonth(),a=i-i%3;return r.setMonth(a,1),r.setHours(0,0,0,0),r}})),Ji=s((e=>{e.eachQuarterOfInterval=a;var t=Hi(),n=ii(),r=wr(),i=qi();function a(e,a){let{start:o,end:s}=(0,t.normalizeInterval)(a?.in,e),c=+o>+s,l=c?+(0,i.startOfQuarter)(o):+(0,i.startOfQuarter)(s),u=c?(0,i.startOfQuarter)(s):(0,i.startOfQuarter)(o),d=a?.step??1;if(!d)return[];d<0&&(d=-d,c=!c);let f=[];for(;+u<=l;)f.push((0,r.constructFrom)(o,u)),u=(0,n.addQuarters)(u,d);return c?f.reverse():f}})),Yi=s((e=>{e.eachWeekOfInterval=a;var t=Hi(),n=oi(),r=wr(),i=qr();function a(e,a){let{start:o,end:s}=(0,t.normalizeInterval)(a?.in,e),c=+o>+s,l=c?(0,i.startOfWeek)(s,a):(0,i.startOfWeek)(o,a),u=c?(0,i.startOfWeek)(o,a):(0,i.startOfWeek)(s,a);l.setHours(15),u.setHours(15);let d=+u.getTime(),f=l,p=a?.step??1;if(!p)return[];p<0&&(p=-p,c=!c);let m=[];for(;+f<=d;)f.setHours(0),m.push((0,r.constructFrom)(o,f)),f=(0,n.addWeeks)(f,p),f.setHours(15);return c?m.reverse():m}})),Xi=s((e=>{e.eachWeekendOfInterval=a;var t=Hi(),n=wr(),r=Ui(),i=Hr();function a(e,a){let{start:o,end:s}=(0,t.normalizeInterval)(a?.in,e),c=(0,r.eachDayOfInterval)({start:o,end:s},a),l=[],u=0;for(;u<c.length;){let e=c[u++];(0,i.isWeekend)(e)&&l.push((0,n.constructFrom)(o,e))}return l}})),Zi=s((e=>{e.startOfMonth=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setDate(1),r.setHours(0,0,0,0),r}})),Qi=s((e=>{e.eachWeekendOfMonth=i;var t=Xi(),n=Fi(),r=Zi();function i(e,i){let a=(0,r.startOfMonth)(e,i),o=(0,n.endOfMonth)(e,i);return(0,t.eachWeekendOfInterval)({start:a,end:o},i)}})),$i=s((e=>{e.endOfYear=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(23,59,59,999),r}})),ea=s((e=>{e.startOfYear=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}})),ta=s((e=>{e.eachWeekendOfYear=i;var t=Xi(),n=$i(),r=ea();function i(e,i){let a=(0,r.startOfYear)(e,i),o=(0,n.endOfYear)(e,i);return(0,t.eachWeekendOfInterval)({start:a,end:o},i)}})),na=s((e=>{e.eachYearOfInterval=r;var t=Hi(),n=wr();function r(e,r){let{start:i,end:a}=(0,t.normalizeInterval)(r?.in,e),o=+i>+a,s=o?+i:+a,c=o?a:i;c.setHours(0,0,0,0),c.setMonth(0,1);let l=r?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+c<=s;)u.push((0,n.constructFrom)(i,c)),c.setFullYear(c.getFullYear()+l);return o?u.reverse():u}})),ra=s((e=>{e.endOfDecade=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getFullYear(),a=9+Math.floor(i/10)*10;return r.setFullYear(a,11,31),r.setHours(23,59,59,999),r}})),ia=s((e=>{e.endOfHour=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setMinutes(59,59,999),r}})),aa=s((e=>{e.endOfWeek=r;var t=Kr(),n=Q();function r(e,r){let i=(0,t.getDefaultOptions)(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,n.toDate)(e,r?.in),s=o.getDay(),c=(s<a?-7:0)+6-(s-a);return o.setDate(o.getDate()+c),o.setHours(23,59,59,999),o}})),oa=s((e=>{e.endOfISOWeek=n;var t=aa();function n(e,n){return(0,t.endOfWeek)(e,{...n,weekStartsOn:1})}})),sa=s((e=>{e.endOfISOWeekYear=i;var t=wr(),n=Yr(),r=Jr();function i(e,i){let a=(0,n.getISOWeekYear)(e,i),o=(0,t.constructFrom)(i?.in||e,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);let s=(0,r.startOfISOWeek)(o,i);return s.setMilliseconds(s.getMilliseconds()-1),s}})),ca=s((e=>{e.endOfMinute=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setSeconds(59,999),r}})),la=s((e=>{e.endOfQuarter=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getMonth(),a=i-i%3+3;return r.setMonth(a,0),r.setHours(23,59,59,999),r}})),ua=s((e=>{e.endOfSecond=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setMilliseconds(999),r}})),da=s((e=>{e.endOfToday=n;var t=Pi();function n(e){return(0,t.endOfDay)(Date.now(),e)}})),fa=s((e=>{e.endOfTomorrow=n;var t=gi();function n(e){let n=(0,t.constructNow)(e?.in),r=n.getFullYear(),i=n.getMonth(),a=n.getDate(),o=(0,t.constructNow)(e?.in);return o.setFullYear(r,i,a+1),o.setHours(23,59,59,999),e?.in?e.in(o):o}})),pa=s((e=>{e.endOfYesterday=r;var t=wr(),n=gi();function r(e){let r=(0,n.constructNow)(e?.in),i=(0,t.constructFrom)(e?.in,0);return i.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()-1),i.setHours(23,59,59,999),i}})),ma=s((e=>{e.formatDistance=void 0;let t={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}};e.formatDistance=(e,n,r)=>{let i,a=t[e];return i=typeof a==`string`?a:n===1?a.one:a.other.replace(`{{count}}`,n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?`in `+i:i+` ago`:i}})),ha=s((e=>{e.buildFormatLongFn=t;function t(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}})),ga=s((e=>{e.formatLong=void 0;var t=ha();e.formatLong={date:(0,t.buildFormatLongFn)({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:(0,t.buildFormatLongFn)({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:(0,t.buildFormatLongFn)({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})}})),_a=s((e=>{e.formatRelative=void 0;let t={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`};e.formatRelative=(e,n,r,i)=>t[e]})),va=s((e=>{e.buildLocalizeFn=t;function t(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}})),ya=s((e=>{e.localize=void 0;var t=va();e.localize={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:(0,t.buildLocalizeFn)({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:(0,t.buildLocalizeFn)({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:(0,t.buildLocalizeFn)({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:(0,t.buildLocalizeFn)({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:(0,t.buildLocalizeFn)({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})}})),ba=s((e=>{e.buildMatchFn=t;function t(e){return(t,i={})=>{let a=i.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;let c=s[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?r(l,e=>e.test(c)):n(l,e=>e.test(c)),d;d=e.valueCallback?e.valueCallback(u):u,d=i.valueCallback?i.valueCallback(d):d;let f=t.slice(c.length);return{value:d,rest:f}}}function n(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function r(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}})),xa=s((e=>{e.buildMatchPatternFn=t;function t(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}})),Sa=s((e=>{e.match=void 0;var t=ba();e.match={ordinalNumber:(0,xa().buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,t.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:(0,t.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:(0,t.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:(0,t.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:(0,t.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})}})),Ca=s((e=>{e.enUS=void 0;var t=ma(),n=ga(),r=_a(),i=ya(),a=Sa();e.enUS={code:`en-US`,formatDistance:t.formatDistance,formatLong:n.formatLong,formatRelative:r.formatRelative,localize:i.localize,match:a.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}})),wa=s((e=>{Object.defineProperty(e,"defaultLocale",{enumerable:!0,get:function(){return t.enUS}});var t=Ca()})),Ta=s((e=>{e.getDayOfYear=i;var t=$r(),n=ea(),r=Q();function i(e,i){let a=(0,r.toDate)(e,i?.in);return(0,t.differenceInCalendarDays)(a,(0,n.startOfYear)(a))+1}})),Ea=s((e=>{e.getISOWeek=a;var t=Cr(),n=Jr(),r=ei(),i=Q();function a(e,a){let o=(0,i.toDate)(e,a?.in),s=(0,n.startOfISOWeek)(o)-+(0,r.startOfISOWeekYear)(o);return Math.round(s/t.millisecondsInWeek)+1}})),Da=s((e=>{e.getWeekYear=a;var t=Kr(),n=wr(),r=qr(),i=Q();function a(e,a){let o=(0,i.toDate)(e,a?.in),s=o.getFullYear(),c=(0,t.getDefaultOptions)(),l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=(0,n.constructFrom)(a?.in||e,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);let d=(0,r.startOfWeek)(u,a),f=(0,n.constructFrom)(a?.in||e,0);f.setFullYear(s,0,l),f.setHours(0,0,0,0);let p=(0,r.startOfWeek)(f,a);return+o>=+d?s+1:+o>=+p?s:s-1}})),Oa=s((e=>{e.startOfWeekYear=a;var t=Kr(),n=wr(),r=Da(),i=qr();function a(e,a){let o=(0,t.getDefaultOptions)(),s=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,c=(0,r.getWeekYear)(e,a),l=(0,n.constructFrom)(a?.in||e,0);return l.setFullYear(c,0,s),l.setHours(0,0,0,0),(0,i.startOfWeek)(l,a)}})),ka=s((e=>{e.getWeek=a;var t=Cr(),n=qr(),r=Oa(),i=Q();function a(e,a){let o=(0,i.toDate)(e,a?.in),s=(0,n.startOfWeek)(o,a)-+(0,r.startOfWeekYear)(o,a);return Math.round(s/t.millisecondsInWeek)+1}})),Aa=s((e=>{e.addLeadingZeros=t;function t(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}})),ja=s((e=>{e.lightFormatters=void 0;var t=Aa();e.lightFormatters={y(e,n){let r=e.getFullYear(),i=r>0?r:1-r;return(0,t.addLeadingZeros)(n===`yy`?i%100:i,n.length)},M(e,n){let r=e.getMonth();return n===`M`?String(r+1):(0,t.addLeadingZeros)(r+1,2)},d(e,n){return(0,t.addLeadingZeros)(e.getDate(),n.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,n){return(0,t.addLeadingZeros)(e.getHours()%12||12,n.length)},H(e,n){return(0,t.addLeadingZeros)(e.getHours(),n.length)},m(e,n){return(0,t.addLeadingZeros)(e.getMinutes(),n.length)},s(e,n){return(0,t.addLeadingZeros)(e.getSeconds(),n.length)},S(e,n){let r=n.length,i=e.getMilliseconds(),a=Math.trunc(i*10**(r-3));return(0,t.addLeadingZeros)(a,n.length)}}})),Ma=s((e=>{e.formatters=void 0;var t=Ta(),n=Ea(),r=Yr(),i=ka(),a=Da(),o=Aa(),s=ja();let c={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`};e.formatters={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return s.lightFormatters.y(e,t)},Y:function(e,t,n,r){let i=(0,a.getWeekYear)(e,r),s=i>0?i:1-i;if(t===`YY`){let e=s%100;return(0,o.addLeadingZeros)(e,2)}return t===`Yo`?n.ordinalNumber(s,{unit:`year`}):(0,o.addLeadingZeros)(s,t.length)},R:function(e,t){let n=(0,r.getISOWeekYear)(e);return(0,o.addLeadingZeros)(n,t.length)},u:function(e,t){let n=e.getFullYear();return(0,o.addLeadingZeros)(n,t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return(0,o.addLeadingZeros)(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return(0,o.addLeadingZeros)(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return s.lightFormatters.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return(0,o.addLeadingZeros)(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let a=(0,i.getWeek)(e,r);return t===`wo`?n.ordinalNumber(a,{unit:`week`}):(0,o.addLeadingZeros)(a,t.length)},I:function(e,t,r){let i=(0,n.getISOWeek)(e);return t===`Io`?r.ordinalNumber(i,{unit:`week`}):(0,o.addLeadingZeros)(i,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):s.lightFormatters.d(e,t)},D:function(e,n,r){let i=(0,t.getDayOfYear)(e);return n===`Do`?r.ordinalNumber(i,{unit:`dayOfYear`}):(0,o.addLeadingZeros)(i,n.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return(0,o.addLeadingZeros)(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return(0,o.addLeadingZeros)(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return(0,o.addLeadingZeros)(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?c.noon:r===0?c.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?c.evening:r>=12?c.afternoon:r>=4?c.morning:c.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return s.lightFormatters.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):s.lightFormatters.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):(0,o.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):(0,o.addLeadingZeros)(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):s.lightFormatters.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):s.lightFormatters.s(e,t)},S:function(e,t){return s.lightFormatters.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return u(r);case`XXXX`:case`XX`:return d(r);default:return d(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return u(r);case`xxxx`:case`xx`:return d(r);default:return d(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+l(r,`:`);default:return`GMT`+d(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+l(r,`:`);default:return`GMT`+d(r,`:`)}},t:function(e,t,n){let r=Math.trunc(e/1e3);return(0,o.addLeadingZeros)(r,t.length)},T:function(e,t,n){return(0,o.addLeadingZeros)(+e,t.length)}};function l(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+(0,o.addLeadingZeros)(a,2)}function u(e,t){return e%60==0?(e>0?`-`:`+`)+(0,o.addLeadingZeros)(Math.abs(e)/60,2):d(e,t)}function d(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=(0,o.addLeadingZeros)(Math.trunc(r/60),2),a=(0,o.addLeadingZeros)(r%60,2);return n+i+t+a}})),Na=s((e=>{e.longFormatters=void 0;let t=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},n=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}};e.longFormatters={p:n,P:(e,r)=>{let i=e.match(/(P+)(p+)?/)||[],a=i[1],o=i[2];if(!o)return t(e,r);let s;switch(a){case`P`:s=r.dateTime({width:`short`});break;case`PP`:s=r.dateTime({width:`medium`});break;case`PPP`:s=r.dateTime({width:`long`});break;default:s=r.dateTime({width:`full`});break}return s.replace(`{{date}}`,t(a,r)).replace(`{{time}}`,n(o,r))}}})),Pa=s((e=>{e.isProtectedDayOfYearToken=i,e.isProtectedWeekYearToken=a,e.warnOrThrowProtectedError=o;let t=/^D+$/,n=/^Y+$/,r=[`D`,`DD`,`YY`,`YYYY`];function i(e){return t.test(e)}function a(e){return n.test(e)}function o(e,t,n){let i=s(e,t,n);if(console.warn(i),r.includes(e))throw RangeError(i)}function s(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}})),Fa=s((e=>{e.format=e.formatDate=p,Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return r.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return i.longFormatters}});var t=wa(),n=Kr(),r=Ma(),i=Na(),a=Pa(),o=Dr(),s=Q();let c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u=/^'([^]*?)'?$/,d=/''/g,f=/[a-zA-Z]/;function p(e,u,d){let p=(0,n.getDefaultOptions)(),h=d?.locale??p.locale??t.defaultLocale,g=d?.firstWeekContainsDate??d?.locale?.options?.firstWeekContainsDate??p.firstWeekContainsDate??p.locale?.options?.firstWeekContainsDate??1,_=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??p.weekStartsOn??p.locale?.options?.weekStartsOn??0,v=(0,s.toDate)(e,d?.in);if(!(0,o.isValid)(v))throw RangeError(`Invalid time value`);let y=u.match(l).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=i.longFormatters[t];return n(e,h.formatLong)}return e}).join(``).match(c).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:m(e)};if(r.formatters[t])return{isToken:!0,value:e};if(t.match(f))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});h.localize.preprocessor&&(y=h.localize.preprocessor(v,y));let b={firstWeekContainsDate:g,weekStartsOn:_,locale:h};return y.map(t=>{if(!t.isToken)return t.value;let n=t.value;(!d?.useAdditionalWeekYearTokens&&(0,a.isProtectedWeekYearToken)(n)||!d?.useAdditionalDayOfYearTokens&&(0,a.isProtectedDayOfYearToken)(n))&&(0,a.warnOrThrowProtectedError)(n,u,String(e));let i=r.formatters[n[0]];return i(v,n,h.localize,b)}).join(``)}function m(e){let t=e.match(u);return t?t[1].replace(d,`'`):e}})),Ia=s((e=>{e.formatDistance=l;var t=wa(),n=Kr(),r=Xr(),i=Zr(),a=mi(),o=Cr(),s=Li(),c=zi();function l(e,l,u){let d=(0,n.getDefaultOptions)(),f=u?.locale??d.locale??t.defaultLocale,p=(0,a.compareAsc)(e,l);if(isNaN(p))throw RangeError(`Invalid time value`);let m=Object.assign({},u,{addSuffix:u?.addSuffix,comparison:p}),[h,g]=(0,i.normalizeDates)(u?.in,...p>0?[l,e]:[e,l]),_=(0,c.differenceInSeconds)(g,h),v=((0,r.getTimezoneOffsetInMilliseconds)(g)-(0,r.getTimezoneOffsetInMilliseconds)(h))/1e3,y=Math.round((_-v)/60),b;if(y<2)return u?.includeSeconds?_<5?f.formatDistance(`lessThanXSeconds`,5,m):_<10?f.formatDistance(`lessThanXSeconds`,10,m):_<20?f.formatDistance(`lessThanXSeconds`,20,m):_<40?f.formatDistance(`halfAMinute`,0,m):_<60?f.formatDistance(`lessThanXMinutes`,1,m):f.formatDistance(`xMinutes`,1,m):y===0?f.formatDistance(`lessThanXMinutes`,1,m):f.formatDistance(`xMinutes`,y,m);if(y<45)return f.formatDistance(`xMinutes`,y,m);if(y<90)return f.formatDistance(`aboutXHours`,1,m);if(y<o.minutesInDay){let e=Math.round(y/60);return f.formatDistance(`aboutXHours`,e,m)}else if(y<2520)return f.formatDistance(`xDays`,1,m);else if(y<o.minutesInMonth){let e=Math.round(y/o.minutesInDay);return f.formatDistance(`xDays`,e,m)}else if(y<o.minutesInMonth*2)return b=Math.round(y/o.minutesInMonth),f.formatDistance(`aboutXMonths`,b,m);if(b=(0,s.differenceInMonths)(g,h),b<12){let e=Math.round(y/o.minutesInMonth);return f.formatDistance(`xMonths`,e,m)}else{let e=b%12,t=Math.trunc(b/12);return e<3?f.formatDistance(`aboutXYears`,t,m):e<9?f.formatDistance(`overXYears`,t,m):f.formatDistance(`almostXYears`,t+1,m)}}})),La=s((e=>{e.formatDistanceStrict=c;var t=wa(),n=Kr(),r=Oi(),i=Xr(),a=Zr(),o=mi(),s=Cr();function c(e,c,l){let u=(0,n.getDefaultOptions)(),d=l?.locale??u.locale??t.defaultLocale,f=(0,o.compareAsc)(e,c);if(isNaN(f))throw RangeError(`Invalid time value`);let p=Object.assign({},l,{addSuffix:l?.addSuffix,comparison:f}),[m,h]=(0,a.normalizeDates)(l?.in,...f>0?[c,e]:[e,c]),g=(0,r.getRoundingMethod)(l?.roundingMethod??`round`),_=h.getTime()-m.getTime(),v=_/s.millisecondsInMinute,y=(_-((0,i.getTimezoneOffsetInMilliseconds)(h)-(0,i.getTimezoneOffsetInMilliseconds)(m)))/s.millisecondsInMinute,b=l?.unit,x;if(x=b||(v<1?`second`:v<60?`minute`:v<s.minutesInDay?`hour`:y<s.minutesInMonth?`day`:y<s.minutesInYear?`month`:`year`),x===`second`){let e=g(_/1e3);return d.formatDistance(`xSeconds`,e,p)}else if(x===`minute`){let e=g(v);return d.formatDistance(`xMinutes`,e,p)}else if(x===`hour`){let e=g(v/60);return d.formatDistance(`xHours`,e,p)}else if(x===`day`){let e=g(y/s.minutesInDay);return d.formatDistance(`xDays`,e,p)}else if(x===`month`){let e=g(y/s.minutesInMonth);return e===12&&b!==`month`?d.formatDistance(`xYears`,1,p):d.formatDistance(`xMonths`,e,p)}else{let e=g(y/s.minutesInYear);return d.formatDistance(`xYears`,e,p)}}})),Ra=s((e=>{e.formatDistanceToNow=r;var t=gi(),n=Ia();function r(e,r){return(0,n.formatDistance)(e,(0,t.constructNow)(e),r)}})),za=s((e=>{e.formatDistanceToNowStrict=r;var t=gi(),n=La();function r(e,r){return(0,n.formatDistanceStrict)(e,(0,t.constructNow)(e),r)}})),Ba=s((e=>{e.formatDuration=i;var t=wa(),n=Kr();let r=[`years`,`months`,`weeks`,`days`,`hours`,`minutes`,`seconds`];function i(e,i){let a=(0,n.getDefaultOptions)(),o=i?.locale??a.locale??t.defaultLocale,s=i?.format??r,c=i?.zero??!1,l=i?.delimiter??` `;return o.formatDistance?s.reduce((t,n)=>{let r=`x${n.replace(/(^.)/,e=>e.toUpperCase())}`,i=e[n];return i!==void 0&&(c||e[n])?t.concat(o.formatDistance(r,i)):t},[]).join(l):``}})),Va=s((e=>{e.formatISO=r;var t=Aa(),n=Q();function r(e,r){let i=(0,n.toDate)(e,r?.in);if(isNaN(+i))throw RangeError(`Invalid time value`);let a=r?.format??`extended`,o=r?.representation??`complete`,s=``,c=``,l=a===`extended`?`-`:``,u=a===`extended`?`:`:``;if(o!==`time`){let e=(0,t.addLeadingZeros)(i.getDate(),2),n=(0,t.addLeadingZeros)(i.getMonth()+1,2);s=`${(0,t.addLeadingZeros)(i.getFullYear(),4)}${l}${n}${l}${e}`}if(o!==`date`){let e=i.getTimezoneOffset();if(e!==0){let n=Math.abs(e),r=(0,t.addLeadingZeros)(Math.trunc(n/60),2),i=(0,t.addLeadingZeros)(n%60,2);c=`${e<0?`+`:`-`}${r}:${i}`}else c=`Z`;let n=(0,t.addLeadingZeros)(i.getHours(),2),r=(0,t.addLeadingZeros)(i.getMinutes(),2),a=(0,t.addLeadingZeros)(i.getSeconds(),2),o=s===``?``:`T`,l=[n,r,a].join(u);s=`${s}${o}${l}${c}`}return s}})),Ha=s((e=>{e.formatISO9075=i;var t=Aa(),n=Dr(),r=Q();function i(e,i){let a=(0,r.toDate)(e,i?.in);if(!(0,n.isValid)(a))throw RangeError(`Invalid time value`);let o=i?.format??`extended`,s=i?.representation??`complete`,c=``,l=o===`extended`?`-`:``,u=o===`extended`?`:`:``;if(s!==`time`){let e=(0,t.addLeadingZeros)(a.getDate(),2),n=(0,t.addLeadingZeros)(a.getMonth()+1,2);c=`${(0,t.addLeadingZeros)(a.getFullYear(),4)}${l}${n}${l}${e}`}if(s!==`date`){let e=(0,t.addLeadingZeros)(a.getHours(),2),n=(0,t.addLeadingZeros)(a.getMinutes(),2),r=(0,t.addLeadingZeros)(a.getSeconds(),2);c=`${c}${c===``?``:` `}${e}${u}${n}${u}${r}`}return c}})),Ua=s((e=>{e.formatISODuration=t;function t(e){let{years:t=0,months:n=0,days:r=0,hours:i=0,minutes:a=0,seconds:o=0}=e;return`P${t}Y${n}M${r}DT${i}H${a}M${o}S`}})),Wa=s((e=>{e.formatRFC3339=i;var t=Aa(),n=Dr(),r=Q();function i(e,i){let a=(0,r.toDate)(e,i?.in);if(!(0,n.isValid)(a))throw RangeError(`Invalid time value`);let o=i?.fractionDigits??0,s=(0,t.addLeadingZeros)(a.getDate(),2),c=(0,t.addLeadingZeros)(a.getMonth()+1,2),l=a.getFullYear(),u=(0,t.addLeadingZeros)(a.getHours(),2),d=(0,t.addLeadingZeros)(a.getMinutes(),2),f=(0,t.addLeadingZeros)(a.getSeconds(),2),p=``;if(o>0){let e=a.getMilliseconds(),n=Math.trunc(e*10**(o-3));p=`.`+(0,t.addLeadingZeros)(n,o)}let m=``,h=a.getTimezoneOffset();if(h!==0){let e=Math.abs(h),n=(0,t.addLeadingZeros)(Math.trunc(e/60),2),r=(0,t.addLeadingZeros)(e%60,2);m=`${h<0?`+`:`-`}${n}:${r}`}else m=`Z`;return`${l}-${c}-${s}T${u}:${d}:${f}${p}${m}`}})),Ga=s((e=>{e.formatRFC7231=o;var t=Aa(),n=Dr(),r=Q();let i=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],a=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function o(e){let o=(0,r.toDate)(e);if(!(0,n.isValid)(o))throw RangeError(`Invalid time value`);return`${i[o.getUTCDay()]}, ${(0,t.addLeadingZeros)(o.getUTCDate(),2)} ${a[o.getUTCMonth()]} ${o.getUTCFullYear()} ${(0,t.addLeadingZeros)(o.getUTCHours(),2)}:${(0,t.addLeadingZeros)(o.getUTCMinutes(),2)}:${(0,t.addLeadingZeros)(o.getUTCSeconds(),2)} GMT`}})),Ka=s((e=>{e.formatRelative=o;var t=wa(),n=Kr(),r=Zr(),i=$r(),a=Fa();function o(e,o,s){let[c,l]=(0,r.normalizeDates)(s?.in,e,o),u=(0,n.getDefaultOptions)(),d=s?.locale??u.locale??t.defaultLocale,f=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??u.weekStartsOn??u.locale?.options?.weekStartsOn??0,p=(0,i.differenceInCalendarDays)(c,l);if(isNaN(p))throw RangeError(`Invalid time value`);let m;m=p<-6?`other`:p<-1?`lastWeek`:p<0?`yesterday`:p<1?`today`:p<2?`tomorrow`:p<7?`nextWeek`:`other`;let h=d.formatRelative(m,c,l,{locale:d,weekStartsOn:f});return(0,a.format)(c,h,{locale:d,weekStartsOn:f})}})),qa=s((e=>{e.getDate=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDate()}})),Ja=s((e=>{e.getDay=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()}})),Ya=s((e=>{e.getDaysInMonth=r;var t=wr(),n=Q();function r(e,r){let i=(0,n.toDate)(e,r?.in),a=i.getFullYear(),o=i.getMonth(),s=(0,t.constructFrom)(i,0);return s.setFullYear(a,o+1,0),s.setHours(0,0,0,0),s.getDate()}})),Xa=s((e=>{e.isLeapYear=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in).getFullYear();return r%400==0||r%4==0&&r%100!=0}})),Za=s((e=>{e.getDaysInYear=r;var t=Xa(),n=Q();function r(e,r){let i=(0,n.toDate)(e,r?.in);return Number.isNaN(+i)?NaN:(0,t.isLeapYear)(i)?366:365}})),Qa=s((e=>{e.getDecade=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in).getFullYear();return Math.floor(r/10)*10}})),$a=s((e=>{e.getDefaultOptions=n;var t=Kr();function n(){return Object.assign({},(0,t.getDefaultOptions)())}})),eo=s((e=>{e.getHours=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getHours()}})),to=s((e=>{e.getISODay=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in).getDay();return r===0?7:r}})),no=s((e=>{e.getISOWeeksInYear=i;var t=oi(),n=Cr(),r=ei();function i(e,i){let a=(0,r.startOfISOWeekYear)(e,i),o=(0,r.startOfISOWeekYear)((0,t.addWeeks)(a,60))-+a;return Math.round(o/n.millisecondsInWeek)}})),ro=s((e=>{e.getMilliseconds=n;var t=Q();function n(e){return(0,t.toDate)(e).getMilliseconds()}})),io=s((e=>{e.getMinutes=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getMinutes()}})),ao=s((e=>{e.getMonth=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getMonth()}})),oo=s((e=>{e.getOverlappingDaysInIntervals=i;var t=Xr(),n=Cr(),r=Q();function i(e,i){let[a,o]=[+(0,r.toDate)(e.start),+(0,r.toDate)(e.end)].sort((e,t)=>e-t),[s,c]=[+(0,r.toDate)(i.start),+(0,r.toDate)(i.end)].sort((e,t)=>e-t);if(!(a<c&&s<o))return 0;let l=s<a?a:s,u=l-(0,t.getTimezoneOffsetInMilliseconds)(l),d=c>o?o:c,f=d-(0,t.getTimezoneOffsetInMilliseconds)(d);return Math.ceil((f-u)/n.millisecondsInDay)}})),so=s((e=>{e.getSeconds=n;var t=Q();function n(e){return(0,t.toDate)(e).getSeconds()}})),co=s((e=>{e.getTime=n;var t=Q();function n(e){return+(0,t.toDate)(e)}})),lo=s((e=>{e.getUnixTime=n;var t=Q();function n(e){return Math.trunc((0,t.toDate)(e)/1e3)}})),uo=s((e=>{e.getWeekOfMonth=o;var t=Kr(),n=qa(),r=Ja(),i=Zi(),a=Q();function o(e,o){let s=(0,t.getDefaultOptions)(),c=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,l=(0,n.getDate)((0,a.toDate)(e,o?.in));if(isNaN(l))return NaN;let u=c-(0,r.getDay)((0,i.startOfMonth)(e,o));u<=0&&(u+=7);let d=l-u;return Math.ceil(d/7)+1}})),fo=s((e=>{e.lastDayOfMonth=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(0,0,0,0),(0,t.toDate)(r,n?.in)}})),po=s((e=>{e.getWeeksInMonth=a;var t=Ti(),n=fo(),r=Zi(),i=Q();function a(e,a){let o=(0,i.toDate)(e,a?.in);return(0,t.differenceInCalendarWeeks)((0,n.lastDayOfMonth)(o,a),(0,r.startOfMonth)(o,a),a)+1}})),mo=s((e=>{e.getYear=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getFullYear()}})),ho=s((e=>{e.hoursToMilliseconds=n;var t=Cr();function n(e){return Math.trunc(e*t.millisecondsInHour)}})),go=s((e=>{e.hoursToMinutes=n;var t=Cr();function n(e){return Math.trunc(e*t.minutesInHour)}})),_o=s((e=>{e.hoursToSeconds=n;var t=Cr();function n(e){return Math.trunc(e*t.secondsInHour)}})),vo=s((e=>{e.interval=n;var t=Zr();function n(e,n,r){let[i,a]=(0,t.normalizeDates)(r?.in,e,n);if(isNaN(+i))throw TypeError(`Start date is invalid`);if(isNaN(+a))throw TypeError(`End date is invalid`);if(r?.assertPositive&&+i>+a)throw TypeError(`End date must be after start date`);return{start:i,end:a}}})),yo=s((e=>{e.intervalToDuration=l;var t=Hi(),n=zr(),r=Di(),i=ki(),a=Ni(),o=Li(),s=zi(),c=Vi();function l(e,l){let{start:u,end:d}=(0,t.normalizeInterval)(l?.in,e),f={},p=(0,c.differenceInYears)(d,u);p&&(f.years=p);let m=(0,n.add)(u,{years:f.years}),h=(0,o.differenceInMonths)(d,m);h&&(f.months=h);let g=(0,n.add)(m,{months:f.months}),_=(0,r.differenceInDays)(d,g);_&&(f.days=_);let v=(0,n.add)(g,{days:f.days}),y=(0,i.differenceInHours)(d,v);y&&(f.hours=y);let b=(0,n.add)(v,{hours:f.hours}),x=(0,a.differenceInMinutes)(d,b);x&&(f.minutes=x);let S=(0,n.add)(b,{minutes:f.minutes}),C=(0,s.differenceInSeconds)(d,S);return C&&(f.seconds=C),f}})),bo=s((e=>{e.intlFormat=n;var t=Q();function n(e,n,i){let a;return r(n)?a=n:i=n,new Intl.DateTimeFormat(i?.locale,a).format((0,t.toDate)(e))}function r(e){return e!==void 0&&!(`locale`in e)}})),xo=s((e=>{e.intlFormatDistance=d;var t=Zr(),n=Cr(),r=$r(),i=Si(),a=wi(),o=Ti(),s=Ei(),c=ki(),l=Ni(),u=zi();function d(e,d,f){let p=0,m,[h,g]=(0,t.normalizeDates)(f?.in,e,d);if(f?.unit)m=f?.unit,m===`second`?p=(0,u.differenceInSeconds)(h,g):m===`minute`?p=(0,l.differenceInMinutes)(h,g):m===`hour`?p=(0,c.differenceInHours)(h,g):m===`day`?p=(0,r.differenceInCalendarDays)(h,g):m===`week`?p=(0,o.differenceInCalendarWeeks)(h,g):m===`month`?p=(0,i.differenceInCalendarMonths)(h,g):m===`quarter`?p=(0,a.differenceInCalendarQuarters)(h,g):m===`year`&&(p=(0,s.differenceInCalendarYears)(h,g));else{let e=(0,u.differenceInSeconds)(h,g);Math.abs(e)<n.secondsInMinute?(p=(0,u.differenceInSeconds)(h,g),m=`second`):Math.abs(e)<n.secondsInHour?(p=(0,l.differenceInMinutes)(h,g),m=`minute`):Math.abs(e)<n.secondsInDay&&Math.abs((0,r.differenceInCalendarDays)(h,g))<1?(p=(0,c.differenceInHours)(h,g),m=`hour`):Math.abs(e)<n.secondsInWeek&&(p=(0,r.differenceInCalendarDays)(h,g))&&Math.abs(p)<7?m=`day`:Math.abs(e)<n.secondsInMonth?(p=(0,o.differenceInCalendarWeeks)(h,g),m=`week`):Math.abs(e)<n.secondsInQuarter?(p=(0,i.differenceInCalendarMonths)(h,g),m=`month`):Math.abs(e)<n.secondsInYear&&(0,a.differenceInCalendarQuarters)(h,g)<4?(p=(0,a.differenceInCalendarQuarters)(h,g),m=`quarter`):(p=(0,s.differenceInCalendarYears)(h,g),m=`year`)}return new Intl.RelativeTimeFormat(f?.locale,{numeric:`auto`,...f}).format(p,m)}})),So=s((e=>{e.isAfter=n;var t=Q();function n(e,n){return+(0,t.toDate)(e)>+(0,t.toDate)(n)}})),Co=s((e=>{e.isBefore=n;var t=Q();function n(e,n){return+(0,t.toDate)(e)<+(0,t.toDate)(n)}})),wo=s((e=>{e.isEqual=n;var t=Q();function n(e,n){return+(0,t.toDate)(e)==+(0,t.toDate)(n)}})),To=s((e=>{e.isExists=t;function t(e,t,n){let r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}})),Eo=s((e=>{e.isFirstDayOfMonth=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDate()===1}})),Do=s((e=>{e.isFriday=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()===5}})),Oo=s((e=>{e.isFuture=n;var t=Q();function n(e){return+(0,t.toDate)(e)>Date.now()}})),ko=s((e=>{e.transpose=n;var t=wr();function n(e,n){let i=r(n)?new n(0):(0,t.constructFrom)(n,0);return i.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),i}function r(e){return typeof e==`function`&&e.prototype?.constructor===e}})),Ao=s((e=>{e.ValueSetter=e.Setter=e.DateTimezoneSetter=void 0;var t=wr(),n=ko(),r=class{subPriority=0;validate(e,t){return!0}};e.Setter=r,e.ValueSetter=class extends r{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},e.DateTimezoneSetter=class extends r{priority=10;subPriority=-1;constructor(e,n){super(),this.context=e||(e=>(0,t.constructFrom)(n,e))}set(e,r){return r.timestampIsSet?e:(0,t.constructFrom)(e,(0,n.transpose)(e,this.context))}}})),jo=s((e=>{e.Parser=void 0;var t=Ao();e.Parser=class{run(e,n,r,i){let a=this.parse(e,n,r,i);return a?{setter:new t.ValueSetter(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}})),Mo=s((e=>{e.EraParser=void 0;var t=jo();e.EraParser=class extends t.Parser{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]}})),No=s((e=>{e.timezonePatterns=e.numericPatterns=void 0,e.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},e.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}})),Po=s((e=>{e.dayPeriodEnumToHours=l,e.isLeapYearIndex=d,e.mapValue=r,e.normalizeTwoDigitYear=u,e.parseAnyDigitsSigned=o,e.parseNDigits=s,e.parseNDigitsSigned=c,e.parseNumericPattern=i,e.parseTimezonePattern=a;var t=Cr(),n=No();function r(e,t){return e&&{value:t(e.value),rest:e.rest}}function i(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function a(e,n){let r=n.match(e);if(!r)return null;if(r[0]===`Z`)return{value:0,rest:n.slice(1)};let i=r[1]===`+`?1:-1,a=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:i*(a*t.millisecondsInHour+o*t.millisecondsInMinute+s*t.millisecondsInSecond),rest:n.slice(r[0].length)}}function o(e){return i(n.numericPatterns.anyDigitsSigned,e)}function s(e,t){switch(e){case 1:return i(n.numericPatterns.singleDigit,t);case 2:return i(n.numericPatterns.twoDigits,t);case 3:return i(n.numericPatterns.threeDigits,t);case 4:return i(n.numericPatterns.fourDigits,t);default:return i(RegExp(`^\\d{1,`+e+`}`),t)}}function c(e,t){switch(e){case 1:return i(n.numericPatterns.singleDigitSigned,t);case 2:return i(n.numericPatterns.twoDigitsSigned,t);case 3:return i(n.numericPatterns.threeDigitsSigned,t);case 4:return i(n.numericPatterns.fourDigitsSigned,t);default:return i(RegExp(`^-?\\d{1,`+e+`}`),t)}}function l(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function u(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function d(e){return e%400==0||e%4==0&&e%100!=0}})),Fo=s((e=>{e.YearParser=void 0;var t=jo(),n=Po();e.YearParser=class extends t.Parser{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,r){let i=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return(0,n.mapValue)((0,n.parseNDigits)(4,e),i);case`yo`:return(0,n.mapValue)(r.ordinalNumber(e,{unit:`year`}),i);default:return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){let i=e.getFullYear();if(r.isTwoDigitYear){let t=(0,n.normalizeTwoDigitYear)(r.year,i);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let a=!(`era`in t)||t.era===1?r.year:1-r.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}})),Io=s((e=>{e.LocalWeekYearParser=void 0;var t=Da(),n=qr(),r=jo(),i=Po();e.LocalWeekYearParser=class extends r.Parser{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return(0,i.mapValue)((0,i.parseNDigits)(4,e),r);case`Yo`:return(0,i.mapValue)(n.ordinalNumber(e,{unit:`year`}),r);default:return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,r,a,o){let s=(0,t.getWeekYear)(e,o);if(a.isTwoDigitYear){let t=(0,i.normalizeTwoDigitYear)(a.year,s);return e.setFullYear(t,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),(0,n.startOfWeek)(e,o)}let c=!(`era`in r)||r.era===1?a.year:1-a.year;return e.setFullYear(c,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),(0,n.startOfWeek)(e,o)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]}})),Lo=s((e=>{e.ISOWeekYearParser=void 0;var t=Jr(),n=wr(),r=jo(),i=Po();e.ISOWeekYearParser=class extends r.Parser{priority=130;parse(e,t){return t===`R`?(0,i.parseNDigitsSigned)(4,e):(0,i.parseNDigitsSigned)(t.length,e)}set(e,r,i){let a=(0,n.constructFrom)(e,0);return a.setFullYear(i,0,4),a.setHours(0,0,0,0),(0,t.startOfISOWeek)(a)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]}})),Ro=s((e=>{e.ExtendedYearParser=void 0;var t=jo(),n=Po();e.ExtendedYearParser=class extends t.Parser{priority=130;parse(e,t){return t===`u`?(0,n.parseNDigitsSigned)(4,e):(0,n.parseNDigitsSigned)(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]}})),zo=s((e=>{e.QuarterParser=void 0;var t=jo(),n=Po();e.QuarterParser=class extends t.Parser{priority=120;parse(e,t,r){switch(t){case`Q`:case`QQ`:return(0,n.parseNDigits)(t.length,e);case`Qo`:return r.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return r.quarter(e,{width:`abbreviated`,context:`formatting`})||r.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return r.quarter(e,{width:`narrow`,context:`formatting`});default:return r.quarter(e,{width:`wide`,context:`formatting`})||r.quarter(e,{width:`abbreviated`,context:`formatting`})||r.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]}})),Bo=s((e=>{e.StandAloneQuarterParser=void 0;var t=jo(),n=Po();e.StandAloneQuarterParser=class extends t.Parser{priority=120;parse(e,t,r){switch(t){case`q`:case`qq`:return(0,n.parseNDigits)(t.length,e);case`qo`:return r.ordinalNumber(e,{unit:`quarter`});case`qqq`:return r.quarter(e,{width:`abbreviated`,context:`standalone`})||r.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return r.quarter(e,{width:`narrow`,context:`standalone`});default:return r.quarter(e,{width:`wide`,context:`standalone`})||r.quarter(e,{width:`abbreviated`,context:`standalone`})||r.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]}})),Vo=s((e=>{e.MonthParser=void 0;var t=No(),n=jo(),r=Po();e.MonthParser=class extends n.Parser{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,n,i){let a=e=>e-1;switch(n){case`M`:return(0,r.mapValue)((0,r.parseNumericPattern)(t.numericPatterns.month,e),a);case`MM`:return(0,r.mapValue)((0,r.parseNDigits)(2,e),a);case`Mo`:return(0,r.mapValue)(i.ordinalNumber(e,{unit:`month`}),a);case`MMM`:return i.month(e,{width:`abbreviated`,context:`formatting`})||i.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return i.month(e,{width:`narrow`,context:`formatting`});default:return i.month(e,{width:`wide`,context:`formatting`})||i.month(e,{width:`abbreviated`,context:`formatting`})||i.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}})),Ho=s((e=>{e.StandAloneMonthParser=void 0;var t=No(),n=jo(),r=Po();e.StandAloneMonthParser=class extends n.Parser{priority=110;parse(e,n,i){let a=e=>e-1;switch(n){case`L`:return(0,r.mapValue)((0,r.parseNumericPattern)(t.numericPatterns.month,e),a);case`LL`:return(0,r.mapValue)((0,r.parseNDigits)(2,e),a);case`Lo`:return(0,r.mapValue)(i.ordinalNumber(e,{unit:`month`}),a);case`LLL`:return i.month(e,{width:`abbreviated`,context:`standalone`})||i.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return i.month(e,{width:`narrow`,context:`standalone`});default:return i.month(e,{width:`wide`,context:`standalone`})||i.month(e,{width:`abbreviated`,context:`standalone`})||i.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]}})),Uo=s((e=>{e.setWeek=r;var t=ka(),n=Q();function r(e,r,i){let a=(0,n.toDate)(e,i?.in),o=(0,t.getWeek)(a,i)-r;return a.setDate(a.getDate()-o*7),(0,n.toDate)(a,i?.in)}})),Wo=s((e=>{e.LocalWeekParser=void 0;var t=Uo(),n=qr(),r=No(),i=jo(),a=Po();e.LocalWeekParser=class extends i.Parser{priority=100;parse(e,t,n){switch(t){case`w`:return(0,a.parseNumericPattern)(r.numericPatterns.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,r,i,a){return(0,n.startOfWeek)((0,t.setWeek)(e,i,a),a)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]}})),Go=s((e=>{e.setISOWeek=r;var t=Ea(),n=Q();function r(e,r,i){let a=(0,n.toDate)(e,i?.in),o=(0,t.getISOWeek)(a,i)-r;return a.setDate(a.getDate()-o*7),a}})),Ko=s((e=>{e.ISOWeekParser=void 0;var t=Go(),n=Jr(),r=No(),i=jo(),a=Po();e.ISOWeekParser=class extends i.Parser{priority=100;parse(e,t,n){switch(t){case`I`:return(0,a.parseNumericPattern)(r.numericPatterns.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,r,i){return(0,n.startOfISOWeek)((0,t.setISOWeek)(e,i))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]}})),qo=s((e=>{e.DateParser=void 0;var t=No(),n=jo(),r=Po();let i=[31,28,31,30,31,30,31,31,30,31,30,31],a=[31,29,31,30,31,30,31,31,30,31,30,31];e.DateParser=class extends n.Parser{priority=90;subPriority=1;parse(e,n,i){switch(n){case`d`:return(0,r.parseNumericPattern)(t.numericPatterns.date,e);case`do`:return i.ordinalNumber(e,{unit:`date`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){let n=e.getFullYear(),o=(0,r.isLeapYearIndex)(n),s=e.getMonth();return o?t>=1&&t<=a[s]:t>=1&&t<=i[s]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]}})),Jo=s((e=>{e.DayOfYearParser=void 0;var t=No(),n=jo(),r=Po();e.DayOfYearParser=class extends n.Parser{priority=90;subpriority=1;parse(e,n,i){switch(n){case`D`:case`DD`:return(0,r.parseNumericPattern)(t.numericPatterns.dayOfYear,e);case`Do`:return i.ordinalNumber(e,{unit:`date`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){let n=e.getFullYear();return(0,r.isLeapYearIndex)(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]}})),Yo=s((e=>{e.setDay=i;var t=Kr(),n=Lr(),r=Q();function i(e,i,a){let o=(0,t.getDefaultOptions)(),s=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=(0,r.toDate)(e,a?.in),l=c.getDay(),u=(i%7+7)%7,d=7-s,f=i<0||i>6?i-(l+d)%7:(u+d)%7-(l+d)%7;return(0,n.addDays)(c,f,a)}})),Xo=s((e=>{e.DayParser=void 0;var t=Yo(),n=jo();e.DayParser=class extends n.Parser{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,n,r,i){return e=(0,t.setDay)(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]}})),Zo=s((e=>{e.LocalDayParser=void 0;var t=Yo(),n=jo(),r=Po();e.LocalDayParser=class extends n.Parser{priority=90;parse(e,t,n,i){let a=e=>{let t=Math.floor((e-1)/7)*7;return(e+i.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return(0,r.mapValue)((0,r.parseNDigits)(t.length,e),a);case`eo`:return(0,r.mapValue)(n.ordinalNumber(e,{unit:`day`}),a);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,n,r,i){return e=(0,t.setDay)(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]}})),Qo=s((e=>{e.StandAloneLocalDayParser=void 0;var t=Yo(),n=jo(),r=Po();e.StandAloneLocalDayParser=class extends n.Parser{priority=90;parse(e,t,n,i){let a=e=>{let t=Math.floor((e-1)/7)*7;return(e+i.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return(0,r.mapValue)((0,r.parseNDigits)(t.length,e),a);case`co`:return(0,r.mapValue)(n.ordinalNumber(e,{unit:`day`}),a);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,n,r,i){return e=(0,t.setDay)(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]}})),$o=s((e=>{e.setISODay=i;var t=Lr(),n=to(),r=Q();function i(e,i,a){let o=(0,r.toDate)(e,a?.in),s=i-(0,n.getISODay)(o,a);return(0,t.addDays)(o,s,a)}})),es=s((e=>{e.ISODayParser=void 0;var t=$o(),n=jo(),r=Po();e.ISODayParser=class extends n.Parser{priority=90;parse(e,t,n){let i=e=>e===0?7:e;switch(t){case`i`:case`ii`:return(0,r.parseNDigits)(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return(0,r.mapValue)(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),i);case`iiiii`:return(0,r.mapValue)(n.day(e,{width:`narrow`,context:`formatting`}),i);case`iiiiii`:return(0,r.mapValue)(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),i);default:return(0,r.mapValue)(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),i)}}validate(e,t){return t>=1&&t<=7}set(e,n,r){return e=(0,t.setISODay)(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]}})),ts=s((e=>{e.AMPMParser=void 0;var t=jo(),n=Po();e.AMPMParser=class extends t.Parser{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,r){return e.setHours((0,n.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]}})),ns=s((e=>{e.AMPMMidnightParser=void 0;var t=jo(),n=Po();e.AMPMMidnightParser=class extends t.Parser{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,r){return e.setHours((0,n.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]}})),rs=s((e=>{e.DayPeriodParser=void 0;var t=jo(),n=Po();e.DayPeriodParser=class extends t.Parser{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,r){return e.setHours((0,n.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]}})),is=s((e=>{e.Hour1to12Parser=void 0;var t=No(),n=jo(),r=Po();e.Hour1to12Parser=class extends n.Parser{priority=70;parse(e,n,i){switch(n){case`h`:return(0,r.parseNumericPattern)(t.numericPatterns.hour12h,e);case`ho`:return i.ordinalNumber(e,{unit:`hour`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]}})),as=s((e=>{e.Hour0to23Parser=void 0;var t=No(),n=jo(),r=Po();e.Hour0to23Parser=class extends n.Parser{priority=70;parse(e,n,i){switch(n){case`H`:return(0,r.parseNumericPattern)(t.numericPatterns.hour23h,e);case`Ho`:return i.ordinalNumber(e,{unit:`hour`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]}})),os=s((e=>{e.Hour0To11Parser=void 0;var t=No(),n=jo(),r=Po();e.Hour0To11Parser=class extends n.Parser{priority=70;parse(e,n,i){switch(n){case`K`:return(0,r.parseNumericPattern)(t.numericPatterns.hour11h,e);case`Ko`:return i.ordinalNumber(e,{unit:`hour`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]}})),ss=s((e=>{e.Hour1To24Parser=void 0;var t=No(),n=jo(),r=Po();e.Hour1To24Parser=class extends n.Parser{priority=70;parse(e,n,i){switch(n){case`k`:return(0,r.parseNumericPattern)(t.numericPatterns.hour24h,e);case`ko`:return i.ordinalNumber(e,{unit:`hour`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]}})),cs=s((e=>{e.MinuteParser=void 0;var t=No(),n=jo(),r=Po();e.MinuteParser=class extends n.Parser{priority=60;parse(e,n,i){switch(n){case`m`:return(0,r.parseNumericPattern)(t.numericPatterns.minute,e);case`mo`:return i.ordinalNumber(e,{unit:`minute`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]}})),ls=s((e=>{e.SecondParser=void 0;var t=No(),n=jo(),r=Po();e.SecondParser=class extends n.Parser{priority=50;parse(e,n,i){switch(n){case`s`:return(0,r.parseNumericPattern)(t.numericPatterns.second,e);case`so`:return i.ordinalNumber(e,{unit:`second`});default:return(0,r.parseNDigits)(n.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]}})),us=s((e=>{e.FractionOfSecondParser=void 0;var t=jo(),n=Po();e.FractionOfSecondParser=class extends t.Parser{priority=30;parse(e,t){return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]}})),ds=s((e=>{e.ISOTimezoneWithZParser=void 0;var t=wr(),n=Xr(),r=No(),i=jo(),a=Po();e.ISOTimezoneWithZParser=class extends i.Parser{priority=10;parse(e,t){switch(t){case`X`:return(0,a.parseTimezonePattern)(r.timezonePatterns.basicOptionalMinutes,e);case`XX`:return(0,a.parseTimezonePattern)(r.timezonePatterns.basic,e);case`XXXX`:return(0,a.parseTimezonePattern)(r.timezonePatterns.basicOptionalSeconds,e);case`XXXXX`:return(0,a.parseTimezonePattern)(r.timezonePatterns.extendedOptionalSeconds,e);default:return(0,a.parseTimezonePattern)(r.timezonePatterns.extended,e)}}set(e,r,i){return r.timestampIsSet?e:(0,t.constructFrom)(e,e.getTime()-(0,n.getTimezoneOffsetInMilliseconds)(e)-i)}incompatibleTokens=[`t`,`T`,`x`]}})),fs=s((e=>{e.ISOTimezoneParser=void 0;var t=wr(),n=Xr(),r=No(),i=jo(),a=Po();e.ISOTimezoneParser=class extends i.Parser{priority=10;parse(e,t){switch(t){case`x`:return(0,a.parseTimezonePattern)(r.timezonePatterns.basicOptionalMinutes,e);case`xx`:return(0,a.parseTimezonePattern)(r.timezonePatterns.basic,e);case`xxxx`:return(0,a.parseTimezonePattern)(r.timezonePatterns.basicOptionalSeconds,e);case`xxxxx`:return(0,a.parseTimezonePattern)(r.timezonePatterns.extendedOptionalSeconds,e);default:return(0,a.parseTimezonePattern)(r.timezonePatterns.extended,e)}}set(e,r,i){return r.timestampIsSet?e:(0,t.constructFrom)(e,e.getTime()-(0,n.getTimezoneOffsetInMilliseconds)(e)-i)}incompatibleTokens=[`t`,`T`,`X`]}})),ps=s((e=>{e.TimestampSecondsParser=void 0;var t=wr(),n=jo(),r=Po();e.TimestampSecondsParser=class extends n.Parser{priority=40;parse(e){return(0,r.parseAnyDigitsSigned)(e)}set(e,n,r){return[(0,t.constructFrom)(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`}})),ms=s((e=>{e.TimestampMillisecondsParser=void 0;var t=wr(),n=jo(),r=Po();e.TimestampMillisecondsParser=class extends n.Parser{priority=20;parse(e){return(0,r.parseAnyDigitsSigned)(e)}set(e,n,r){return[(0,t.constructFrom)(e,r),{timestampIsSet:!0}]}incompatibleTokens=`*`}})),hs=s((e=>{e.parsers=void 0;var t=Mo(),n=Fo(),r=Io(),i=Lo(),a=Ro(),o=zo(),s=Bo(),c=Vo(),l=Ho(),u=Wo(),d=Ko(),f=qo(),p=Jo(),m=Xo(),h=Zo(),g=Qo(),_=es(),v=ts(),y=ns(),b=rs(),x=is(),S=as(),C=os(),w=ss(),T=cs(),E=ls(),D=us(),O=ds(),k=fs(),A=ps(),j=ms();e.parsers={G:new t.EraParser,y:new n.YearParser,Y:new r.LocalWeekYearParser,R:new i.ISOWeekYearParser,u:new a.ExtendedYearParser,Q:new o.QuarterParser,q:new s.StandAloneQuarterParser,M:new c.MonthParser,L:new l.StandAloneMonthParser,w:new u.LocalWeekParser,I:new d.ISOWeekParser,d:new f.DateParser,D:new p.DayOfYearParser,E:new m.DayParser,e:new h.LocalDayParser,c:new g.StandAloneLocalDayParser,i:new _.ISODayParser,a:new v.AMPMParser,b:new y.AMPMMidnightParser,B:new b.DayPeriodParser,h:new x.Hour1to12Parser,H:new S.Hour0to23Parser,K:new C.Hour0To11Parser,k:new w.Hour1To24Parser,m:new T.MinuteParser,s:new E.SecondParser,S:new D.FractionOfSecondParser,X:new O.ISOTimezoneWithZParser,x:new k.ISOTimezoneParser,t:new A.TimestampSecondsParser,T:new j.TimestampMillisecondsParser}})),gs=s((e=>{Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return n.longFormatters}}),e.parse=h,Object.defineProperty(e,"parsers",{enumerable:!0,get:function(){return c.parsers}});var t=wa(),n=Na(),r=Pa(),i=wr(),a=$a(),o=Q(),s=Ao(),c=hs();let l=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d=/^'([^]*?)'?$/,f=/''/g,p=/\S/,m=/[a-zA-Z]/;function h(e,d,f,h){let _=()=>(0,i.constructFrom)(h?.in||f,NaN),v=(0,a.getDefaultOptions)(),y=h?.locale??v.locale??t.defaultLocale,b=h?.firstWeekContainsDate??h?.locale?.options?.firstWeekContainsDate??v.firstWeekContainsDate??v.locale?.options?.firstWeekContainsDate??1,x=h?.weekStartsOn??h?.locale?.options?.weekStartsOn??v.weekStartsOn??v.locale?.options?.weekStartsOn??0;if(!d)return e?_():(0,o.toDate)(f,h?.in);let S={firstWeekContainsDate:b,weekStartsOn:x,locale:y},C=[new s.DateTimezoneSetter(h?.in,f)],w=d.match(u).map(e=>{let t=e[0];if(t in n.longFormatters){let r=n.longFormatters[t];return r(e,y.formatLong)}return e}).join(``).match(l),T=[];for(let t of w){!h?.useAdditionalWeekYearTokens&&(0,r.isProtectedWeekYearToken)(t)&&(0,r.warnOrThrowProtectedError)(t,d,e),!h?.useAdditionalDayOfYearTokens&&(0,r.isProtectedDayOfYearToken)(t)&&(0,r.warnOrThrowProtectedError)(t,d,e);let n=t[0],i=c.parsers[n];if(i){let{incompatibleTokens:r}=i;if(Array.isArray(r)){let e=T.find(e=>r.includes(e.token)||e.token===n);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${t}\` at the same time`)}else if(i.incompatibleTokens===`*`&&T.length>0)throw RangeError(`The format string mustn't contain \`${t}\` and any other token at the same time`);T.push({token:n,fullToken:t});let a=i.run(e,t,y.match,S);if(!a)return _();C.push(a.setter),e=a.rest}else{if(n.match(m))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if(t===`''`?t=`'`:n===`'`&&(t=g(t)),e.indexOf(t)===0)e=e.slice(t.length);else return _()}}if(e.length>0&&p.test(e))return _();let E=C.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>C.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),D=(0,o.toDate)(f,h?.in);if(isNaN(+D))return _();let O={};for(let e of E){if(!e.validate(D,S))return _();let t=e.set(D,O,S);Array.isArray(t)?(D=t[0],Object.assign(O,t[1])):D=t}return D}function g(e){return e.match(d)[1].replace(f,`'`)}})),_s=s((e=>{e.isMatch=r;var t=Dr(),n=gs();function r(e,r,i){return(0,t.isValid)((0,n.parse)(e,r,new Date,i))}})),vs=s((e=>{e.isMonday=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()===1}})),ys=s((e=>{e.isPast=n;var t=Q();function n(e){return+(0,t.toDate)(e)<Date.now()}})),bs=s((e=>{e.startOfHour=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setMinutes(0,0,0),r}})),xs=s((e=>{e.isSameHour=r;var t=Zr(),n=bs();function r(e,r,i){let[a,o]=(0,t.normalizeDates)(i?.in,e,r);return+(0,n.startOfHour)(a)==+(0,n.startOfHour)(o)}})),Ss=s((e=>{e.isSameWeek=r;var t=Zr(),n=qr();function r(e,r,i){let[a,o]=(0,t.normalizeDates)(i?.in,e,r);return+(0,n.startOfWeek)(a,i)==+(0,n.startOfWeek)(o,i)}})),Cs=s((e=>{e.isSameISOWeek=n;var t=Ss();function n(e,n,r){return(0,t.isSameWeek)(e,n,{...r,weekStartsOn:1})}})),ws=s((e=>{e.isSameISOWeekYear=r;var t=ei(),n=Zr();function r(e,r,i){let[a,o]=(0,n.normalizeDates)(i?.in,e,r);return+(0,t.startOfISOWeekYear)(a)==+(0,t.startOfISOWeekYear)(o)}})),Ts=s((e=>{e.startOfMinute=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setSeconds(0,0),r}})),Es=s((e=>{e.isSameMinute=n;var t=Ts();function n(e,n){return+(0,t.startOfMinute)(e)==+(0,t.startOfMinute)(n)}})),Ds=s((e=>{e.isSameMonth=n;var t=Zr();function n(e,n,r){let[i,a]=(0,t.normalizeDates)(r?.in,e,n);return i.getFullYear()===a.getFullYear()&&i.getMonth()===a.getMonth()}})),Os=s((e=>{e.isSameQuarter=r;var t=Zr(),n=qi();function r(e,r,i){let[a,o]=(0,t.normalizeDates)(i?.in,e,r);return+(0,n.startOfQuarter)(a)==+(0,n.startOfQuarter)(o)}})),ks=s((e=>{e.startOfSecond=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in);return r.setMilliseconds(0),r}})),As=s((e=>{e.isSameSecond=n;var t=ks();function n(e,n){return+(0,t.startOfSecond)(e)==+(0,t.startOfSecond)(n)}})),js=s((e=>{e.isSameYear=n;var t=Zr();function n(e,n,r){let[i,a]=(0,t.normalizeDates)(r?.in,e,n);return i.getFullYear()===a.getFullYear()}})),Ms=s((e=>{e.isThisHour=i;var t=gi(),n=xs(),r=Q();function i(e,i){return(0,n.isSameHour)((0,r.toDate)(e,i?.in),(0,t.constructNow)(i?.in||e))}})),Ns=s((e=>{e.isThisISOWeek=i;var t=wr(),n=gi(),r=Cs();function i(e,i){return(0,r.isSameISOWeek)((0,t.constructFrom)(i?.in||e,e),(0,n.constructNow)(i?.in||e))}})),Ps=s((e=>{e.isThisMinute=r;var t=gi(),n=Es();function r(e){return(0,n.isSameMinute)(e,(0,t.constructNow)(e))}})),Fs=s((e=>{e.isThisMonth=i;var t=wr(),n=gi(),r=Ds();function i(e,i){return(0,r.isSameMonth)((0,t.constructFrom)(i?.in||e,e),(0,n.constructNow)(i?.in||e))}})),Is=s((e=>{e.isThisQuarter=i;var t=wr(),n=gi(),r=Os();function i(e,i){return(0,r.isSameQuarter)((0,t.constructFrom)(i?.in||e,e),(0,n.constructNow)(i?.in||e))}})),Ls=s((e=>{e.isThisSecond=r;var t=gi(),n=As();function r(e){return(0,n.isSameSecond)(e,(0,t.constructNow)(e))}})),Rs=s((e=>{e.isThisWeek=i;var t=wr(),n=gi(),r=Ss();function i(e,i){return(0,r.isSameWeek)((0,t.constructFrom)(i?.in||e,e),(0,n.constructNow)(i?.in||e),i)}})),zs=s((e=>{e.isThisYear=i;var t=wr(),n=gi(),r=js();function i(e,i){return(0,r.isSameYear)((0,t.constructFrom)(i?.in||e,e),(0,n.constructNow)(i?.in||e))}})),Bs=s((e=>{e.isThursday=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()===4}})),Vs=s((e=>{e.isToday=i;var t=wr(),n=gi(),r=vi();function i(e,i){return(0,r.isSameDay)((0,t.constructFrom)(i?.in||e,e),(0,n.constructNow)(i?.in||e))}})),Hs=s((e=>{e.isTomorrow=i;var t=Lr(),n=gi(),r=vi();function i(e,i){return(0,r.isSameDay)(e,(0,t.addDays)((0,n.constructNow)(i?.in||e),1),i)}})),Us=s((e=>{e.isTuesday=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()===2}})),Ws=s((e=>{e.isWednesday=n;var t=Q();function n(e,n){return(0,t.toDate)(e,n?.in).getDay()===3}})),Gs=s((e=>{e.isWithinInterval=n;var t=Q();function n(e,n,r){let i=+(0,t.toDate)(e,r?.in),[a,o]=[+(0,t.toDate)(n.start,r?.in),+(0,t.toDate)(n.end,r?.in)].sort((e,t)=>e-t);return i>=a&&i<=o}})),Ks=s((e=>{e.subDays=n;var t=Lr();function n(e,n,r){return(0,t.addDays)(e,-n,r)}})),qs=s((e=>{e.isYesterday=a;var t=wr(),n=gi(),r=vi(),i=Ks();function a(e,a){return(0,r.isSameDay)((0,t.constructFrom)(a?.in||e,e),(0,i.subDays)((0,n.constructNow)(a?.in||e),1))}})),Js=s((e=>{e.lastDayOfDecade=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getFullYear(),a=9+Math.floor(i/10)*10;return r.setFullYear(a+1,0,0),r.setHours(0,0,0,0),(0,t.toDate)(r,n?.in)}})),Ys=s((e=>{e.lastDayOfWeek=r;var t=Kr(),n=Q();function r(e,r){let i=(0,t.getDefaultOptions)(),a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,n.toDate)(e,r?.in),s=o.getDay(),c=(s<a?-7:0)+6-(s-a);return o.setHours(0,0,0,0),o.setDate(o.getDate()+c),o}})),Xs=s((e=>{e.lastDayOfISOWeek=n;var t=Ys();function n(e,n){return(0,t.lastDayOfWeek)(e,{...n,weekStartsOn:1})}})),Zs=s((e=>{e.lastDayOfISOWeekYear=i;var t=wr(),n=Yr(),r=Jr();function i(e,i){let a=(0,n.getISOWeekYear)(e,i),o=(0,t.constructFrom)(i?.in||e,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);let s=(0,r.startOfISOWeek)(o,i);return s.setDate(s.getDate()-1),s}})),Qs=s((e=>{e.lastDayOfQuarter=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getMonth(),a=i-i%3+3;return r.setMonth(a,0),r.setHours(0,0,0,0),r}})),$s=s((e=>{e.lastDayOfYear=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(0,0,0,0),r}})),ec=s((e=>{e.lightFormat=c,Object.defineProperty(e,"lightFormatters",{enumerable:!0,get:function(){return t.lightFormatters}});var t=ja(),n=Dr(),r=Q();let i=/(\w)\1*|''|'(''|[^'])+('|$)|./g,a=/^'([^]*?)'?$/,o=/''/g,s=/[a-zA-Z]/;function c(e,a){let o=(0,r.toDate)(e);if(!(0,n.isValid)(o))throw RangeError(`Invalid time value`);let c=a.match(i);return c?c.map(e=>{if(e===`''`)return`'`;let n=e[0];if(n===`'`)return l(e);let r=t.lightFormatters[n];if(r)return r(o,e);if(n.match(s))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return e}).join(``):``}function l(e){let t=e.match(a);return t?t[1].replace(o,`'`):e}})),tc=s((e=>{e.milliseconds=n;var t=Cr();function n({years:e,months:n,weeks:r,days:i,hours:a,minutes:o,seconds:s}){let c=0;e&&(c+=e*t.daysInYear),n&&(c+=n*(t.daysInYear/12)),r&&(c+=r*7),i&&(c+=i);let l=c*24*60*60;return a&&(l+=a*60*60),o&&(l+=o*60),s&&(l+=s),Math.trunc(l*1e3)}})),nc=s((e=>{e.millisecondsToHours=n;var t=Cr();function n(e){let n=e/t.millisecondsInHour;return Math.trunc(n)}})),rc=s((e=>{e.millisecondsToMinutes=n;var t=Cr();function n(e){let n=e/t.millisecondsInMinute;return Math.trunc(n)}})),ic=s((e=>{e.millisecondsToSeconds=n;var t=Cr();function n(e){let n=e/t.millisecondsInSecond;return Math.trunc(n)}})),ac=s((e=>{e.minutesToHours=n;var t=Cr();function n(e){let n=e/t.minutesInHour;return Math.trunc(n)}})),oc=s((e=>{e.minutesToMilliseconds=n;var t=Cr();function n(e){return Math.trunc(e*t.millisecondsInMinute)}})),sc=s((e=>{e.minutesToSeconds=n;var t=Cr();function n(e){return Math.trunc(e*t.secondsInMinute)}})),cc=s((e=>{e.monthsToQuarters=n;var t=Cr();function n(e){let n=e/t.monthsInQuarter;return Math.trunc(n)}})),lc=s((e=>{e.monthsToYears=n;var t=Cr();function n(e){let n=e/t.monthsInYear;return Math.trunc(n)}})),uc=s((e=>{e.nextDay=r;var t=Lr(),n=Ja();function r(e,r,i){let a=r-(0,n.getDay)(e,i);return a<=0&&(a+=7),(0,t.addDays)(e,a,i)}})),dc=s((e=>{e.nextFriday=n;var t=uc();function n(e,n){return(0,t.nextDay)(e,5,n)}})),fc=s((e=>{e.nextMonday=n;var t=uc();function n(e,n){return(0,t.nextDay)(e,1,n)}})),pc=s((e=>{e.nextSaturday=n;var t=uc();function n(e,n){return(0,t.nextDay)(e,6,n)}})),mc=s((e=>{e.nextSunday=n;var t=uc();function n(e,n){return(0,t.nextDay)(e,0,n)}})),hc=s((e=>{e.nextThursday=n;var t=uc();function n(e,n){return(0,t.nextDay)(e,4,n)}})),gc=s((e=>{e.nextTuesday=n;var t=uc();function n(e,n){return(0,t.nextDay)(e,2,n)}})),_c=s((e=>{e.nextWednesday=n;var t=uc();function n(e,n){return(0,t.nextDay)(e,3,n)}})),vc=s((e=>{e.parseJSON=n;var t=Q();function n(e,n){let r=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?(0,t.toDate)(Date.UTC(+r[1],r[2]-1,+r[3],r[4]-(+r[9]||0)*(r[8]==`-`?-1:1),r[5]-(+r[10]||0)*(r[8]==`-`?-1:1),+r[6],+((r[7]||`0`)+`00`).substring(0,3)),n?.in):(0,t.toDate)(NaN,n?.in)}})),yc=s((e=>{e.previousDay=r;var t=Ja(),n=Ks();function r(e,r,i){let a=(0,t.getDay)(e,i)-r;return a<=0&&(a+=7),(0,n.subDays)(e,a,i)}})),bc=s((e=>{e.previousFriday=n;var t=yc();function n(e,n){return(0,t.previousDay)(e,5,n)}})),xc=s((e=>{e.previousMonday=n;var t=yc();function n(e,n){return(0,t.previousDay)(e,1,n)}})),Sc=s((e=>{e.previousSaturday=n;var t=yc();function n(e,n){return(0,t.previousDay)(e,6,n)}})),Cc=s((e=>{e.previousSunday=n;var t=yc();function n(e,n){return(0,t.previousDay)(e,0,n)}})),wc=s((e=>{e.previousThursday=n;var t=yc();function n(e,n){return(0,t.previousDay)(e,4,n)}})),Tc=s((e=>{e.previousTuesday=n;var t=yc();function n(e,n){return(0,t.previousDay)(e,2,n)}})),Ec=s((e=>{e.previousWednesday=n;var t=yc();function n(e,n){return(0,t.previousDay)(e,3,n)}})),Dc=s((e=>{e.quartersToMonths=n;var t=Cr();function n(e){return Math.trunc(e*t.monthsInQuarter)}})),Oc=s((e=>{e.quartersToYears=n;var t=Cr();function n(e){let n=e/t.quartersInYear;return Math.trunc(n)}})),kc=s((e=>{e.roundToNearestHours=i;var t=Oi(),n=wr(),r=Q();function i(e,i){let a=i?.nearestTo??1;if(a<1||a>12)return(0,n.constructFrom)(i?.in||e,NaN);let o=(0,r.toDate)(e,i?.in),s=o.getMinutes()/60,c=o.getSeconds()/60/60,l=o.getMilliseconds()/1e3/60/60,u=o.getHours()+s+c+l,d=i?.roundingMethod??`round`,f=(0,t.getRoundingMethod)(d)(u/a)*a;return o.setHours(f,0,0,0),o}})),Ac=s((e=>{e.roundToNearestMinutes=i;var t=Oi(),n=wr(),r=Q();function i(e,i){let a=i?.nearestTo??1;if(a<1||a>30)return(0,n.constructFrom)(e,NaN);let o=(0,r.toDate)(e,i?.in),s=o.getSeconds()/60,c=o.getMilliseconds()/1e3/60,l=o.getMinutes()+s+c,u=i?.roundingMethod??`round`,d=(0,t.getRoundingMethod)(u)(l/a)*a;return o.setMinutes(d,0,0),o}})),jc=s((e=>{e.secondsToHours=n;var t=Cr();function n(e){let n=e/t.secondsInHour;return Math.trunc(n)}})),Mc=s((e=>{e.secondsToMilliseconds=n;var t=Cr();function n(e){return e*t.millisecondsInSecond}})),Nc=s((e=>{e.secondsToMinutes=n;var t=Cr();function n(e){let n=e/t.secondsInMinute;return Math.trunc(n)}})),Pc=s((e=>{e.setMonth=i;var t=wr(),n=Ya(),r=Q();function i(e,i,a){let o=(0,r.toDate)(e,a?.in),s=o.getFullYear(),c=o.getDate(),l=(0,t.constructFrom)(a?.in||e,0);l.setFullYear(s,i,15),l.setHours(0,0,0,0);let u=(0,n.getDaysInMonth)(l);return o.setMonth(i,Math.min(c,u)),o}})),Fc=s((e=>{e.set=i;var t=wr(),n=Pc(),r=Q();function i(e,i,a){let o=(0,r.toDate)(e,a?.in);return isNaN(+o)?(0,t.constructFrom)(a?.in||e,NaN):(i.year!=null&&o.setFullYear(i.year),i.month!=null&&(o=(0,n.setMonth)(o,i.month)),i.date!=null&&o.setDate(i.date),i.hours!=null&&o.setHours(i.hours),i.minutes!=null&&o.setMinutes(i.minutes),i.seconds!=null&&o.setSeconds(i.seconds),i.milliseconds!=null&&o.setMilliseconds(i.milliseconds),o)}})),Ic=s((e=>{e.setDate=n;var t=Q();function n(e,n,r){let i=(0,t.toDate)(e,r?.in);return i.setDate(n),i}})),Lc=s((e=>{e.setDayOfYear=n;var t=Q();function n(e,n,r){let i=(0,t.toDate)(e,r?.in);return i.setMonth(0),i.setDate(n),i}})),Rc=s((e=>{e.setDefaultOptions=n;var t=Kr();function n(e){let n={},r=(0,t.getDefaultOptions)();for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e]);for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]===void 0?delete n[t]:n[t]=e[t]);(0,t.setDefaultOptions)(n)}})),zc=s((e=>{e.setHours=n;var t=Q();function n(e,n,r){let i=(0,t.toDate)(e,r?.in);return i.setHours(n),i}})),Bc=s((e=>{e.setMilliseconds=n;var t=Q();function n(e,n,r){let i=(0,t.toDate)(e,r?.in);return i.setMilliseconds(n),i}})),Vc=s((e=>{e.setMinutes=n;var t=Q();function n(e,n,r){let i=(0,t.toDate)(e,r?.in);return i.setMinutes(n),i}})),Hc=s((e=>{e.setQuarter=r;var t=Pc(),n=Q();function r(e,r,i){let a=(0,n.toDate)(e,i?.in),o=r-(Math.trunc(a.getMonth()/3)+1);return(0,t.setMonth)(a,a.getMonth()+o*3)}})),Uc=s((e=>{e.setSeconds=n;var t=Q();function n(e,n,r){let i=(0,t.toDate)(e,r?.in);return i.setSeconds(n),i}})),Wc=s((e=>{e.setWeekYear=o;var t=Kr(),n=wr(),r=$r(),i=Oa(),a=Q();function o(e,o,s){let c=(0,t.getDefaultOptions)(),l=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=(0,r.differenceInCalendarDays)((0,a.toDate)(e,s?.in),(0,i.startOfWeekYear)(e,s),s),d=(0,n.constructFrom)(s?.in||e,0);d.setFullYear(o,0,l),d.setHours(0,0,0,0);let f=(0,i.startOfWeekYear)(d,s);return f.setDate(f.getDate()+u),f}})),Gc=s((e=>{e.setYear=r;var t=wr(),n=Q();function r(e,r,i){let a=(0,n.toDate)(e,i?.in);return isNaN(+a)?(0,t.constructFrom)(i?.in||e,NaN):(a.setFullYear(r),a)}})),Kc=s((e=>{e.startOfDecade=n;var t=Q();function n(e,n){let r=(0,t.toDate)(e,n?.in),i=r.getFullYear(),a=Math.floor(i/10)*10;return r.setFullYear(a,0,1),r.setHours(0,0,0,0),r}})),qc=s((e=>{e.startOfToday=n;var t=Qr();function n(e){return(0,t.startOfDay)(Date.now(),e)}})),Jc=s((e=>{e.startOfTomorrow=r;var t=wr(),n=gi();function r(e){let r=(0,n.constructNow)(e?.in),i=r.getFullYear(),a=r.getMonth(),o=r.getDate(),s=(0,t.constructFrom)(e?.in,0);return s.setFullYear(i,a,o+1),s.setHours(0,0,0,0),s}})),Yc=s((e=>{e.startOfYesterday=n;var t=gi();function n(e){let n=(0,t.constructNow)(e?.in),r=n.getFullYear(),i=n.getMonth(),a=n.getDate(),o=(0,t.constructNow)(e?.in);return o.setFullYear(r,i,a-1),o.setHours(0,0,0,0),o}})),Xc=s((e=>{e.subMonths=n;var t=Rr();function n(e,n,r){return(0,t.addMonths)(e,-n,r)}})),Zc=s((e=>{e.sub=i;var t=wr(),n=Ks(),r=Xc();function i(e,i,a){let{years:o=0,months:s=0,weeks:c=0,days:l=0,hours:u=0,minutes:d=0,seconds:f=0}=i,p=(0,r.subMonths)(e,s+o*12,a),m=(0,n.subDays)(p,l+c*7,a),h=(f+(d+u*60)*60)*1e3;return(0,t.constructFrom)(a?.in||e,+m-h)}})),Qc=s((e=>{e.subBusinessDays=n;var t=Ur();function n(e,n,r){return(0,t.addBusinessDays)(e,-n,r)}})),$c=s((e=>{e.subHours=n;var t=Gr();function n(e,n,r){return(0,t.addHours)(e,-n,r)}})),el=s((e=>{e.subMilliseconds=n;var t=Wr();function n(e,n,r){return(0,t.addMilliseconds)(e,-n,r)}})),tl=s((e=>{e.subMinutes=n;var t=ri();function n(e,n,r){return(0,t.addMinutes)(e,-n,r)}})),nl=s((e=>{e.subQuarters=n;var t=ii();function n(e,n,r){return(0,t.addQuarters)(e,-n,r)}})),rl=s((e=>{e.subSeconds=n;var t=ai();function n(e,n,r){return(0,t.addSeconds)(e,-n,r)}})),il=s((e=>{e.subWeeks=n;var t=oi();function n(e,n,r){return(0,t.addWeeks)(e,-n,r)}})),al=s((e=>{e.subYears=n;var t=si();function n(e,n,r){return(0,t.addYears)(e,-n,r)}})),ol=s((e=>{e.weeksToDays=n;var t=Cr();function n(e){return Math.trunc(e*t.daysInWeek)}})),sl=s((e=>{e.yearsToDays=n;var t=Cr();function n(e){return Math.trunc(e*t.daysInYear)}})),cl=s((e=>{e.yearsToMonths=n;var t=Cr();function n(e){return Math.trunc(e*t.monthsInYear)}})),ll=s((e=>{e.yearsToQuarters=n;var t=Cr();function n(e){return Math.trunc(e*t.quartersInYear)}})),ul=s((e=>{var t=zr();Object.keys(t).forEach(function(n){n==="default"||n==="__esModule"||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=Ur();Object.keys(n).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var r=Lr();Object.keys(r).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=Gr();Object.keys(i).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var a=ni();Object.keys(a).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})});var o=Wr();Object.keys(o).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var s=ri();Object.keys(s).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var c=Rr();Object.keys(c).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===c[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var l=ii();Object.keys(l).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===l[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var u=ai();Object.keys(u).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===u[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var d=oi();Object.keys(d).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===d[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}})});var f=si();Object.keys(f).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===f[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})});var p=ci();Object.keys(p).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===p[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}})});var m=di();Object.keys(m).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===m[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}})});var h=fi();Object.keys(h).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===h[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}})});var g=pi();Object.keys(g).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===g[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return g[t]}})});var _=mi();Object.keys(_).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===_[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _[t]}})});var v=hi();Object.keys(v).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===v[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return v[t]}})});var y=wr();Object.keys(y).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}})});var b=gi();Object.keys(b).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===b[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})});var x=_i();Object.keys(x).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===x[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return x[t]}})});var S=yi();Object.keys(S).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===S[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}})});var C=$r();Object.keys(C).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===C[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return C[t]}})});var w=bi();Object.keys(w).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===w[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return w[t]}})});var T=xi();Object.keys(T).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===T[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return T[t]}})});var E=Si();Object.keys(E).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===E[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return E[t]}})});var D=wi();Object.keys(D).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===D[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return D[t]}})});var O=Ti();Object.keys(O).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===O[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return O[t]}})});var k=Ei();Object.keys(k).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===k[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return k[t]}})});var A=Di();Object.keys(A).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===A[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return A[t]}})});var j=ki();Object.keys(j).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===j[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var M=ji();Object.keys(M).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===M[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return M[t]}})});var N=Mi();Object.keys(N).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===N[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return N[t]}})});var P=Ni();Object.keys(P).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===P[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return P[t]}})});var F=Li();Object.keys(F).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===F[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return F[t]}})});var I=Ri();Object.keys(I).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===I[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return I[t]}})});var L=zi();Object.keys(L).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===L[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return L[t]}})});var R=Bi();Object.keys(R).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===R[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return R[t]}})});var z=Vi();Object.keys(z).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===z[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return z[t]}})});var B=Ui();Object.keys(B).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===B[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return B[t]}})});var V=Wi();Object.keys(V).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===V[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return V[t]}})});var H=Gi();Object.keys(H).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===H[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return H[t]}})});var U=Ki();Object.keys(U).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===U[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return U[t]}})});var W=Ji();Object.keys(W).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===W[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return W[t]}})});var G=Yi();Object.keys(G).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===G[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return G[t]}})});var ee=Xi();Object.keys(ee).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ee[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ee[t]}})});var K=Qi();Object.keys(K).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===K[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return K[t]}})});var q=ta();Object.keys(q).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===q[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return q[t]}})});var te=na();Object.keys(te).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===te[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return te[t]}})});var ne=Pi();Object.keys(ne).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ne[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ne[t]}})});var re=ra();Object.keys(re).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===re[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return re[t]}})});var ie=ia();Object.keys(ie).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ie[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ie[t]}})});var ae=oa();Object.keys(ae).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ae[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ae[t]}})});var J=sa();Object.keys(J).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===J[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return J[t]}})});var oe=ca();Object.keys(oe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===oe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return oe[t]}})});var se=Fi();Object.keys(se).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===se[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return se[t]}})});var ce=la();Object.keys(ce).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ce[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ce[t]}})});var Y=ua();Object.keys(Y).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Y[t]}})});var le=da();Object.keys(le).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===le[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return le[t]}})});var ue=fa();Object.keys(ue).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ue[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ue[t]}})});var de=aa();Object.keys(de).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===de[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return de[t]}})});var fe=$i();Object.keys(fe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===fe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fe[t]}})});var pe=pa();Object.keys(pe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===pe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pe[t]}})});var me=Fa();Object.keys(me).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===me[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return me[t]}})});var he=Ia();Object.keys(he).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===he[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return he[t]}})});var ge=La();Object.keys(ge).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ge[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ge[t]}})});var _e=Ra();Object.keys(_e).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===_e[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _e[t]}})});var ve=za();Object.keys(ve).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ve[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ve[t]}})});var ye=Ba();Object.keys(ye).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ye[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ye[t]}})});var be=Va();Object.keys(be).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===be[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return be[t]}})});var xe=Ha();Object.keys(xe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===xe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xe[t]}})});var Se=Ua();Object.keys(Se).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Se[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Se[t]}})});var Ce=Wa();Object.keys(Ce).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ce[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ce[t]}})});var we=Ga();Object.keys(we).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===we[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return we[t]}})});var Te=Ka();Object.keys(Te).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Te[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Te[t]}})});var Ee=Tr();Object.keys(Ee).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ee[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ee[t]}})});var De=qa();Object.keys(De).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===De[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return De[t]}})});var Oe=Ja();Object.keys(Oe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Oe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Oe[t]}})});var ke=Ta();Object.keys(ke).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ke[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ke[t]}})});var Ae=Ya();Object.keys(Ae).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ae[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ae[t]}})});var je=Za();Object.keys(je).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===je[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return je[t]}})});var Me=Qa();Object.keys(Me).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Me[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Me[t]}})});var Ne=$a();Object.keys(Ne).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ne[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ne[t]}})});var Pe=eo();Object.keys(Pe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Pe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pe[t]}})});var Fe=to();Object.keys(Fe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Fe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Fe[t]}})});var Ie=Ea();Object.keys(Ie).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ie[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ie[t]}})});var Le=Yr();Object.keys(Le).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Le[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Le[t]}})});var Re=no();Object.keys(Re).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Re[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Re[t]}})});var ze=ro();Object.keys(ze).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ze[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ze[t]}})});var X=io();Object.keys(X).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===X[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return X[t]}})});var Be=ao();Object.keys(Be).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Be[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Be[t]}})});var Ve=oo();Object.keys(Ve).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ve[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ve[t]}})});var He=Ci();Object.keys(He).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===He[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return He[t]}})});var Ue=so();Object.keys(Ue).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ue[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ue[t]}})});var We=co();Object.keys(We).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===We[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return We[t]}})});var Ge=lo();Object.keys(Ge).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ge[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ge[t]}})});var Ke=ka();Object.keys(Ke).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ke[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ke[t]}})});var qe=uo();Object.keys(qe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===qe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qe[t]}})});var Je=Da();Object.keys(Je).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Je[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Je[t]}})});var Ye=po();Object.keys(Ye).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ye[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ye[t]}})});var Xe=mo();Object.keys(Xe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Xe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xe[t]}})});var Ze=ho();Object.keys(Ze).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ze[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ze[t]}})});var Qe=go();Object.keys(Qe).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Qe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qe[t]}})});var $e=_o();Object.keys($e).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===$e[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $e[t]}})});var et=vo();Object.keys(et).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===et[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return et[t]}})});var tt=yo();Object.keys(tt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===tt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tt[t]}})});var nt=bo();Object.keys(nt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===nt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nt[t]}})});var rt=xo();Object.keys(rt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===rt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rt[t]}})});var it=So();Object.keys(it).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===it[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return it[t]}})});var at=Co();Object.keys(at).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===at[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return at[t]}})});var ot=Er();Object.keys(ot).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ot[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ot[t]}})});var st=wo();Object.keys(st).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===st[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return st[t]}})});var ct=To();Object.keys(ct).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ct[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ct[t]}})});var lt=Eo();Object.keys(lt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===lt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return lt[t]}})});var ut=Do();Object.keys(ut).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ut[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ut[t]}})});var dt=Oo();Object.keys(dt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===dt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dt[t]}})});var ft=Ii();Object.keys(ft).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ft[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ft[t]}})});var pt=Xa();Object.keys(pt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===pt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pt[t]}})});var mt=_s();Object.keys(mt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===mt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mt[t]}})});var ht=vs();Object.keys(ht).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ht[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ht[t]}})});var gt=ys();Object.keys(gt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===gt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gt[t]}})});var Z=vi();Object.keys(Z).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Z[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Z[t]}})});var _t=xs();Object.keys(_t).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===_t[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _t[t]}})});var vt=Cs();Object.keys(vt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===vt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vt[t]}})});var yt=ws();Object.keys(yt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===yt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yt[t]}})});var bt=Es();Object.keys(bt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===bt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return bt[t]}})});var xt=Ds();Object.keys(xt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===xt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xt[t]}})});var St=Os();Object.keys(St).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===St[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return St[t]}})});var Ct=As();Object.keys(Ct).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ct[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ct[t]}})});var wt=Ss();Object.keys(wt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===wt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wt[t]}})});var Tt=js();Object.keys(Tt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Tt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tt[t]}})});var Et=Br();Object.keys(Et).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Et[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Et[t]}})});var Dt=Vr();Object.keys(Dt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Dt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dt[t]}})});var Ot=Ms();Object.keys(Ot).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ot[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ot[t]}})});var kt=Ns();Object.keys(kt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===kt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kt[t]}})});var At=Ps();Object.keys(At).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===At[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return At[t]}})});var jt=Fs();Object.keys(jt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===jt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return jt[t]}})});var Mt=Is();Object.keys(Mt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Mt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Mt[t]}})});var Nt=Ls();Object.keys(Nt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Nt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Nt[t]}})});var Pt=Rs();Object.keys(Pt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Pt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pt[t]}})});var Ft=zs();Object.keys(Ft).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ft[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ft[t]}})});var It=Bs();Object.keys(It).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===It[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return It[t]}})});var Lt=Vs();Object.keys(Lt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Lt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Lt[t]}})});var Rt=Hs();Object.keys(Rt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Rt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Rt[t]}})});var zt=Us();Object.keys(zt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===zt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return zt[t]}})});var Bt=Dr();Object.keys(Bt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Bt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Bt[t]}})});var Vt=Ws();Object.keys(Vt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Vt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Vt[t]}})});var Ht=Hr();Object.keys(Ht).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ht[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ht[t]}})});var Ut=Gs();Object.keys(Ut).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ut[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ut[t]}})});var Wt=qs();Object.keys(Wt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Wt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Wt[t]}})});var Gt=Js();Object.keys(Gt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Gt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Gt[t]}})});var Kt=Xs();Object.keys(Kt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Kt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Kt[t]}})});var qt=Zs();Object.keys(qt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===qt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qt[t]}})});var Jt=fo();Object.keys(Jt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Jt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Jt[t]}})});var Yt=Qs();Object.keys(Yt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Yt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Yt[t]}})});var Xt=Ys();Object.keys(Xt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Xt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xt[t]}})});var Zt=$s();Object.keys(Zt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Zt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Zt[t]}})});var Qt=ec();Object.keys(Qt).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Qt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qt[t]}})});var $t=li();Object.keys($t).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===$t[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $t[t]}})});var en=tc();Object.keys(en).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===en[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return en[t]}})});var tn=nc();Object.keys(tn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===tn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tn[t]}})});var nn=rc();Object.keys(nn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===nn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nn[t]}})});var rn=ic();Object.keys(rn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===rn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rn[t]}})});var an=ui();Object.keys(an).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===an[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return an[t]}})});var on=ac();Object.keys(on).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===on[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return on[t]}})});var sn=oc();Object.keys(sn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===sn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return sn[t]}})});var cn=sc();Object.keys(cn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===cn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return cn[t]}})});var ln=cc();Object.keys(ln).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ln[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ln[t]}})});var un=lc();Object.keys(un).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===un[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return un[t]}})});var dn=uc();Object.keys(dn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===dn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dn[t]}})});var fn=dc();Object.keys(fn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===fn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fn[t]}})});var pn=fc();Object.keys(pn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===pn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pn[t]}})});var mn=pc();Object.keys(mn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===mn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mn[t]}})});var hn=mc();Object.keys(hn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===hn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return hn[t]}})});var gn=hc();Object.keys(gn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===gn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gn[t]}})});var _n=gc();Object.keys(_n).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===_n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _n[t]}})});var vn=_c();Object.keys(vn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===vn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vn[t]}})});var yn=gs();Object.keys(yn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===yn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yn[t]}})});var bn=Or();Object.keys(bn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===bn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return bn[t]}})});var xn=vc();Object.keys(xn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===xn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xn[t]}})});var Sn=yc();Object.keys(Sn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Sn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Sn[t]}})});var Cn=bc();Object.keys(Cn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Cn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Cn[t]}})});var wn=xc();Object.keys(wn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===wn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wn[t]}})});var Tn=Sc();Object.keys(Tn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Tn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tn[t]}})});var En=Cc();Object.keys(En).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===En[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return En[t]}})});var Dn=wc();Object.keys(Dn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Dn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dn[t]}})});var On=Tc();Object.keys(On).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===On[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return On[t]}})});var kn=Ec();Object.keys(kn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===kn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kn[t]}})});var An=Dc();Object.keys(An).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===An[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return An[t]}})});var jn=Oc();Object.keys(jn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===jn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return jn[t]}})});var Mn=kc();Object.keys(Mn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Mn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Mn[t]}})});var Nn=Ac();Object.keys(Nn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Nn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Nn[t]}})});var Pn=jc();Object.keys(Pn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Pn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pn[t]}})});var Fn=Mc();Object.keys(Fn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Fn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Fn[t]}})});var In=Nc();Object.keys(In).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===In[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return In[t]}})});var Ln=Fc();Object.keys(Ln).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ln[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ln[t]}})});var Rn=Ic();Object.keys(Rn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Rn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Rn[t]}})});var zn=Yo();Object.keys(zn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===zn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return zn[t]}})});var Bn=Lc();Object.keys(Bn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Bn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Bn[t]}})});var Vn=Rc();Object.keys(Vn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Vn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Vn[t]}})});var Hn=zc();Object.keys(Hn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Hn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Hn[t]}})});var Un=$o();Object.keys(Un).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Un[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Un[t]}})});var Wn=Go();Object.keys(Wn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Wn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Wn[t]}})});var Gn=ti();Object.keys(Gn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Gn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Gn[t]}})});var Kn=Bc();Object.keys(Kn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Kn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Kn[t]}})});var qn=Vc();Object.keys(qn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===qn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qn[t]}})});var Jn=Pc();Object.keys(Jn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Jn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Jn[t]}})});var Yn=Hc();Object.keys(Yn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Yn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Yn[t]}})});var Xn=Uc();Object.keys(Xn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Xn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xn[t]}})});var Zn=Uo();Object.keys(Zn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Zn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Zn[t]}})});var Qn=Wc();Object.keys(Qn).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Qn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qn[t]}})});var $n=Gc();Object.keys($n).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===$n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $n[t]}})});var er=Qr();Object.keys(er).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===er[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return er[t]}})});var tr=Kc();Object.keys(tr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===tr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tr[t]}})});var nr=bs();Object.keys(nr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===nr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nr[t]}})});var rr=Jr();Object.keys(rr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===rr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rr[t]}})});var ir=ei();Object.keys(ir).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ir[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ir[t]}})});var ar=Ts();Object.keys(ar).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ar[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ar[t]}})});var or=Zi();Object.keys(or).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===or[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return or[t]}})});var sr=qi();Object.keys(sr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===sr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return sr[t]}})});var cr=ks();Object.keys(cr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===cr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return cr[t]}})});var lr=qc();Object.keys(lr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===lr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return lr[t]}})});var ur=Jc();Object.keys(ur).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===ur[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ur[t]}})});var dr=qr();Object.keys(dr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===dr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dr[t]}})});var fr=Oa();Object.keys(fr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===fr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fr[t]}})});var pr=ea();Object.keys(pr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===pr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pr[t]}})});var mr=Yc();Object.keys(mr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===mr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mr[t]}})});var hr=Zc();Object.keys(hr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===hr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return hr[t]}})});var gr=Qc();Object.keys(gr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===gr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gr[t]}})});var _r=Ks();Object.keys(_r).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===_r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _r[t]}})});var vr=$c();Object.keys(vr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===vr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vr[t]}})});var yr=Ai();Object.keys(yr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===yr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yr[t]}})});var br=el();Object.keys(br).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===br[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return br[t]}})});var xr=tl();Object.keys(xr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===xr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xr[t]}})});var Sr=Xc();Object.keys(Sr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Sr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Sr[t]}})});var Cr=nl();Object.keys(Cr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Cr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Cr[t]}})});var kr=rl();Object.keys(kr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===kr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kr[t]}})});var Ar=il();Object.keys(Ar).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ar[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ar[t]}})});var jr=al();Object.keys(jr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===jr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return jr[t]}})});var Mr=Q();Object.keys(Mr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Mr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Mr[t]}})});var Nr=ko();Object.keys(Nr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Nr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Nr[t]}})});var Pr=ol();Object.keys(Pr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Pr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pr[t]}})});var Fr=sl();Object.keys(Fr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Fr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Fr[t]}})});var Ir=cl();Object.keys(Ir).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Ir[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ir[t]}})});var Kr=ll();Object.keys(Kr).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===Kr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Kr[t]}})})})),dl=s(((e,t)=>{var n=At();function r(e,t){return n(e,t)}t.exports=r})),fl=s(((e,t)=>{var n=At();function r(e,t,r){r=typeof r==`function`?r:void 0;var i=r?r(e,t):void 0;return i===void 0?n(e,t,void 0,r):!!i}t.exports=r})),pl=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.evaluate=e.dateIsEqual=e.dateIsBefore=e.dateIsAfter=e.evaluatesNotEmpty=e.evaluatesEmpty=e.evaluatesNull=e.evaluatesFalse=e.evaluatesTrue=e.isDeepEqual=e.isEqual=e.parseDate=e.contains=e.parseValue=e.validate=void 0;let i=ul(),a=r(dl()),o=r(fl()),s=r(hl()),c=Zn();e.validate=t=>{if(!Array.isArray(t))return[!1,`Invalid expression syntax: '${t}'`];let[n]=t;if(n in c.BooleanOperator){if(n===c.BooleanOperator.and||n===c.BooleanOperator.or){let[,...n]=t;return n.reduce((t,n)=>{let[r,i]=(0,e.validate)(n);return r?t:[r,[t[1],i].filter(Boolean).join(`, `)]},[!0])}return[!1,`Invalid expression syntax: '${t}'`]}else if(n in c.UnaryOperator||n in c.BinaryOperator)return[!0];return[!1,`Invalid expression syntax: '${t}'`]},e.parseValue=e=>{try{return typeof e==`string`?JSON.parse(e):e}catch{return e}},e.contains=(t,n)=>{if(typeof t==`string`)return t.includes(`${n}`);if(typeof t==`object`&&t)return Array.isArray(t)?t.includes(n)||t.includes((0,e.parseValue)(n)):Object.hasOwn(t,`${n}`);throw Error(`Invalid arguments set to 'contains'.`)},e.parseDate=e=>{if(e instanceof Date&&(0,i.isValid)(e))return e;if(typeof e==`number`)return new Date(e);if(typeof e==`string`){for(let t of[`yyyy`,`yyyy-MM-dd`]){let n=(0,i.parse)(e,t,0);if((0,i.isValid)(n))return n}let t=(0,i.parseISO)(e);if((0,i.isValid)(t))return t}throw Error(`Invalid argument type`)},e.isEqual=(e,t)=>e==t||(0,o.default)(e,t,(e,t)=>{if(!(typeof e==`object`||typeof t==`object`))return e==t}),e.isDeepEqual=(e,t)=>(0,a.default)(e,t),e.evaluatesTrue=e=>typeof e==`string`?[`t`,`true`,`y`,`yes`].includes(e):e,e.evaluatesFalse=e=>typeof e==`string`?[`f`,`false`,`n`,`no`].includes(e):e,e.evaluatesNull=e=>[void 0,null,0,NaN,!1,``].includes(e),e.evaluatesEmpty=e=>{if(Array.isArray(e)||typeof e==`string`)return e.length===0;throw Error(`Please provide an array or string`)},e.evaluatesNotEmpty=e=>{if(Array.isArray(e)||typeof e==`string`)return e.length>0;throw Error(`Please provide an array or string`)},e.dateIsAfter=(e,t)=>(0,i.isAfter)(s.default.types.toDate(e),s.default.types.toDate(t)),e.dateIsBefore=(e,t)=>(0,i.isBefore)(s.default.types.toDate(e),s.default.types.toDate(t)),e.dateIsEqual=(e,t)=>(0,i.isEqual)(s.default.types.toDate(e),s.default.types.toDate(t)),e.evaluate=t=>{let[n,r]=(0,e.validate)(t);if(!n)throw Error(r);let[i]=t;if(i in c.BooleanOperator){let n=t.slice(1);switch(i){case c.BooleanOperator.and:for(let t of n)if(!(0,e.evaluate)(t))return!1;return!0;case c.BooleanOperator.or:for(let t of n)if((0,e.evaluate)(t))return!0;return!1;default:throw Error(`Invalid operator: '${i}'`)}}else if(i in c.UnaryOperator){let[,n]=t,r=(0,e.parseValue)(n);try{switch(i){case c.UnaryOperator.isTrue:if(typeof r==`string`){let t=r.toLowerCase();if((0,e.evaluatesTrue)(t))return!0;if((0,e.evaluatesFalse)(t))return!1}return!!r;case c.UnaryOperator.isFalse:if(typeof r==`string`){let t=r.toLowerCase();if((0,e.evaluatesTrue)(t))return!1;if((0,e.evaluatesFalse)(t))return!0}return!r;case c.UnaryOperator.doesNotExist:return(0,e.evaluatesNull)(r);case c.UnaryOperator.exists:return!(0,e.evaluatesNull)(r);case c.UnaryOperator.isEmpty:if(Array.isArray(r))return(0,e.evaluatesEmpty)(r);if(typeof n==`string`)return(0,e.evaluatesEmpty)(n);throw Error(`Please provide an array or string`);case c.UnaryOperator.isNotEmpty:if(Array.isArray(r))return r.length>0;if(typeof n==`string`)return n.length>0;throw Error(`Please provide an array or string`);default:throw Error(`Invalid operator: '${i}'`)}}catch(e){throw Error(`Incompatible comparison arguments, ${e}`)}}else{let[,n,r]=t,a=null,o=null;i in[c.BinaryOperator.dateTimeAfter,c.BinaryOperator.dateTimeBefore,c.BinaryOperator.dateTimeSame]?(a=(0,e.parseDate)(n),o=(0,e.parseDate)(r)):(a=(0,e.parseValue)(n),o=(0,e.parseValue)(r));try{switch(i){case c.BinaryOperator.equal:return(0,e.isEqual)(a,o);case c.BinaryOperator.notEqual:return!(0,e.isEqual)(a,o);case c.BinaryOperator.greaterThan:return a>o;case c.BinaryOperator.greaterThanOrEqual:return a>=o;case c.BinaryOperator.lessThan:return a<o;case c.BinaryOperator.lessThanOrEqual:return a<=o;case c.BinaryOperator.in:return(0,e.contains)(o,n);case c.BinaryOperator.notIn:return!(0,e.contains)(o,n);case c.BinaryOperator.exactlyMatches:return a===o||(0,e.isDeepEqual)(a,o);case c.BinaryOperator.doesNotExactlyMatch:return!(a===o||(0,e.isDeepEqual)(a,o));case c.BinaryOperator.startsWith:return`${o}`.startsWith(`${a}`);case c.BinaryOperator.doesNotStartWith:return!`${o}`.startsWith(`${a}`);case c.BinaryOperator.endsWith:return`${o}`.endsWith(`${a}`);case c.BinaryOperator.doesNotEndWith:return!`${o}`.endsWith(`${a}`);case c.BinaryOperator.dateTimeAfter:return(0,e.dateIsAfter)(s.default.types.toDate(a),s.default.types.toDate(o));case c.BinaryOperator.dateTimeBefore:return(0,e.dateIsBefore)(s.default.types.toDate(a),s.default.types.toDate(o));case c.BinaryOperator.dateTimeSame:return(0,e.dateIsEqual)(s.default.types.toDate(a),s.default.types.toDate(o));default:throw Error(`Invalid operator: '${i}'`)}}catch(e){throw Error(`Incompatible comparison arguments, ${e}`)}}},n(Zn(),e)})),ml=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isConnectionError=e.isSpectralError=e.ConnectionError=e.SpectralError=void 0;var t=class extends Error{constructor(e){super(e),this.isSpectralError=!0,this.name=`SpectralError`,Error.captureStackTrace(this,this.constructor)}};e.SpectralError=t,e.ConnectionError=class extends t{constructor(e,t){super(t),this.name=`ConnectionError`,this.connection=e}},e.isSpectralError=e=>!!(e&&typeof e==`object`&&`isSpectralError`in e&&e.isSpectralError===!0),e.isConnectionError=t=>(0,e.isSpectralError)(t)&&`connection`in t})),hl=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.toObject=e.lowerCaseHeaders=e.isObjectWithTruthyKeys=e.isObjectWithOneTruthyKey=void 0;let i=Tr(),a=Er(),o=Dr(),s=Or(),c=r(Nr()),l=Fr(),u=Ir();e.isObjectWithOneTruthyKey=(e,t)=>typeof e==`object`&&!!e&&t.some(t=>t in e&&!!e?.[t]),e.isObjectWithTruthyKeys=(e,t)=>typeof e==`object`&&!!e&&t.every(t=>t in e&&!!e?.[t]);let d=t=>(0,e.isObjectWithTruthyKeys)(t,[`key`]),f=t=>typeof t==`string`&&z(t)?f(JSON.parse(t)):Array.isArray(t)&&t.every(t=>(0,e.isObjectWithTruthyKeys)(t,[`object`])),p=e=>{if(typeof e==`string`&&z(e))return p(JSON.parse(e));if(f(e))return e;throw Error(`Value '${typeof e==`string`?e:JSON.stringify(e)}' cannot be coerced to ObjectSelection.`)},m=t=>{if(typeof t==`string`&&z(t))return m(JSON.parse(t));if(t&&typeof t==`object`){let{fields:n}=t;return Array.isArray(n)&&n.every(t=>(0,e.isObjectWithTruthyKeys)(t,[`field`])&&d(t?.field))}return!1},h=e=>{if(typeof e==`string`&&z(e))return h(JSON.parse(e));if(m(e))return e;throw Error(`Value '${typeof e==`string`?e:JSON.stringify(e)}' cannot be coerced to ObjectFieldMap.`)},g=t=>typeof t==`string`&&z(t)?g(JSON.parse(t)):(0,e.isObjectWithTruthyKeys)(t,[`schema`,`uiSchema`,`data`]),_=e=>{if(typeof e==`string`&&z(e))return _(JSON.parse(e));if(g(e))return e;throw Error(`Value '${typeof e==`string`?e:JSON.stringify(e)}' cannot be coerced to JSONForm.`)},v=e=>e===!0||e===!1,y=(e,t)=>{if(v(e))return e;if(typeof e==`string`){let t=e.toLowerCase();if([`t`,`true`,`y`,`yes`].includes(t))return!0;if([`f`,`false`,`n`,`no`].includes(t))return!1}return!!(e||t)},b=e=>Number.isInteger(e),x=(e,t)=>{if(b(e))return e;if(typeof e==`number`)return~~e;if(typeof e==`string`){let t=Number.parseInt(e,10);if(!Number.isNaN(t))return t}if(e===void 0||e===``)return t||0;if(t)return t;throw Error(`Value '${e}' cannot be coerced to int.`)},S=e=>!Number.isNaN(Number(e)),C=(e,t)=>{if(e===void 0||e===``||e===null)return t||0;if(S(e))return Number(e);throw Error(`Value '${e}' cannot be coerced to a number.`)},w=e=>typeof e==`bigint`,T=e=>{if(w(e))return e;try{return BigInt(L(e))}catch{throw Error(`Value '${e}' cannot be coerced to bigint.`)}},E=e=>(0,a.isDate)(e),D=e=>{if(E(e))return e;if(S(e)&&C(e))return(0,i.fromUnixTime)(C(e));if(typeof e==`string`){let t=(0,s.parseISO)(e);if((0,o.isValid)(t))return t}throw Error(`Value '${e}' cannot be coerced to date.`)},O=e=>(0,u.isWebUri)(e)!==void 0,k=e=>Array.isArray(e)&&(e.every(I)||e.every(d)),A=t=>(0,e.isObjectWithTruthyKeys)(t,[`value`]),j=(e,t)=>(e||[]).reduce((e,{key:n,value:r})=>Object.assign(Object.assign({},e),{[n]:t?t(r):r}),{}),M=e=>e instanceof Object&&`data`in e&&Buffer.isBuffer(e.data),N=e=>{if(M(e))return e;if(typeof e==`string`)return{data:Buffer.from(e,`utf-8`),contentType:`text/plain`};if(e instanceof Buffer)return{data:e,contentType:`application/octet-stream`};if(e instanceof Uint8Array)return{data:Buffer.from(e),contentType:`application/octet-stream`};if(e instanceof Object||Array.isArray(e)){let t=JSON.stringify(e);return{data:Buffer.from(t,`utf-8`),contentType:`application/json`}}throw Error(`Value '${e}' cannot be converted to a Buffer.`)},P=e=>M(e),F=e=>N(e),I=e=>typeof e==`string`||e instanceof String,L=(e,t=``)=>`${e??t}`,R=t=>{if(typeof t==`string`&&z(t))return R(JSON.parse(t));if(t&&typeof t==`object`){let{inputs:n}=t;return(0,e.isObjectWithTruthyKeys)(t,[`key`,`label`,`oauth2Type`])?(0,e.isObjectWithTruthyKeys)(n,[`authorizeUrl`,`tokenUrl`,`clientId`,`clientSecret`])||(0,e.isObjectWithTruthyKeys)(n,[`tokenUrl`,`clientId`,`clientSecret`]):(0,e.isObjectWithTruthyKeys)(t,[`key`,`label`])&&typeof n==`object`}return!1},z=e=>{try{return JSON.parse(e),!0}catch{return!1}};e.lowerCaseHeaders=e=>Object.entries(e).reduce((e,[t,n])=>Object.assign(Object.assign({},e),{[t.toLowerCase()]:n}),{}),e.toObject=e=>typeof e==`string`&&z(e)?JSON.parse(e):e,n(pl(),e),n(ml(),e),e.default={types:{isBool:v,toBool:y,isInt:b,toInt:x,isNumber:S,toNumber:C,isBigInt:w,toBigInt:T,isDate:E,toDate:D,isUrl:O,isBufferDataPayload:M,toBufferDataPayload:N,isData:P,toData:F,isString:I,toString:L,keyValPairListToObject:j,isJSON:z,toJSON:(e,t=!0,n=!1)=>{let r=(0,l.configure)({circularValue:void 0,deterministic:!n});return(t?r(e,null,2):r(e))??``},lowerCaseHeaders:e.lowerCaseHeaders,isObjectSelection:f,toObjectSelection:p,isObjectFieldMap:m,toObjectFieldMap:h,isJSONForm:g,toJSONForm:_,isPicklist:k,isSchedule:A,isConnection:R,isElement:d,toObject:e.toObject,cleanObject:(e,t)=>(0,c.default)(e,t||(e=>e==null||e===``))}}})),gl=s(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),_l=s(((e,t)=>{function n(e){return e!==e}t.exports=n})),vl=s(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),yl=s(((e,t)=>{var n=gl(),r=_l(),i=vl();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),bl=s(((e,t)=>{var n=yl();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),xl=s(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),Sl=s(((e,t)=>{function n(){}t.exports=n})),Cl=s(((e,t)=>{var n=Qe(),r=Sl(),i=Et();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),wl=s(((e,t)=>{var n=xt(),r=bl(),i=xl(),a=Ct(),o=Cl(),s=Et(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),Tl=s(((e,t)=>{var n=wl();function r(e){return e&&e.length?n(e):[]}t.exports=r})),El=s(((e,t)=>{var n=require("stream").Stream,r=require("util");t.exports=i;function i(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}r.inherits(i,n),i.create=function(e,t){var n=new this;for(var r in t||={},t)n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on(`error`,function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(i.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),i.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},i.prototype.resume=function(){this._released||this.release(),this.source.resume()},i.prototype.pause=function(){this.source.pause()},i.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},i.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);return this.resume(),e},i.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]===`data`&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},i.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this.emit(`error`,Error(e))}}})),Dl=s(((e,t)=>{var n=require("util"),r=require("stream").Stream,i=El();t.exports=a;function a(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}n.inherits(a,r),a.create=function(e){var t=new this;for(var n in e||={},e)t[n]=e[n];return t},a.isStreamLike=function(e){return typeof e!=`function`&&typeof e!=`string`&&typeof e!=`boolean`&&typeof e!=`number`&&!Buffer.isBuffer(e)},a.prototype.append=function(e){if(a.isStreamLike(e)){if(!(e instanceof i)){var t=i.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on(`data`,this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},a.prototype.pipe=function(e,t){return r.prototype.pipe.call(this,e,t),this.resume(),e},a.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},a.prototype._realGetNext=function(){var e=this._streams.shift();if(e===void 0){this.end();return}if(typeof e!=`function`){this._pipeNext(e);return}e(function(e){a.isStreamLike(e)&&(e.on(`data`,this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this))},a.prototype._pipeNext=function(e){if(this._currentStream=e,a.isStreamLike(e)){e.on(`end`,this._getNext.bind(this)),e.pipe(this,{end:!1});return}var t=e;this.write(t),this._getNext()},a.prototype._handleErrors=function(e){var t=this;e.on(`error`,function(e){t._emitError(e)})},a.prototype.write=function(e){this.emit(`data`,e)},a.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause==`function`&&this._currentStream.pause(),this.emit(`pause`))},a.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume==`function`&&this._currentStream.resume(),this.emit(`resume`)},a.prototype.end=function(){this._reset(),this.emit(`end`)},a.prototype.destroy=function(){this._reset(),this.emit(`close`)},a.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},a.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this._emitError(Error(e))}},a.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},a.prototype._emitError=function(e){this._reset(),this.emit(`error`,e)}})),Ol=s(((e,t)=>{t.exports={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!1,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`asc`,`sig`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`iana`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`iana`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`iana`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`iana`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.frogans.fnc":{source:`iana`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`iana`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.slides":{source:`iana`},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`iana`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`iana`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`iana`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`iana`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.youtube.yt":{source:`iana`},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`iana`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/hsj2":{source:`iana`,extensions:[`hsj2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`apache`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`]},"message/s-http":{source:`iana`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`iana`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/step":{source:`iana`},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`iana`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`iana`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`iana`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),kl=s(((e,t)=>{
2
+ /*!
3
+ * mime-db
4
+ * Copyright(c) 2014 Jonathan Ong
5
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
6
+ * MIT Licensed
7
+ */
8
+ t.exports=Ol()})),Al=s((e=>{
9
+ /*!
10
+ * mime-types
11
+ * Copyright(c) 2014 Jonathan Ong
12
+ * Copyright(c) 2015 Douglas Christopher Wilson
13
+ * MIT Licensed
14
+ */
15
+ var t=kl(),n=require("path").extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;e.charset=a,e.charsets={lookup:a},e.contentType=o,e.extension=s,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function a(e){if(!e||typeof e!=`string`)return!1;var n=r.exec(e),a=n&&t[n[1].toLowerCase()];return a&&a.charset?a.charset:n&&i.test(n[1])?`UTF-8`:!1}function o(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function s(t){if(!t||typeof t!=`string`)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];return!i||!i.length?!1:i[0]}function c(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().substr(1);return r&&e.types[r]||!1}function l(e,n){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(t).forEach(function(i){var a=t[i],o=a.extensions;if(!(!o||!o.length)){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(n[c]){var l=r.indexOf(t[n[c]].source),u=r.indexOf(a.source);if(n[c]!==`application/octet-stream`&&(l>u||l===u&&n[c].substr(0,12)===`application/`))continue}n[c]=i}}})}})),jl=s(((e,t)=>{t.exports=n;function n(e){var t=typeof setImmediate==`function`?setImmediate:typeof process==`object`&&typeof process.nextTick==`function`?process.nextTick:null;t?t(e):setTimeout(e,0)}})),Ml=s(((e,t)=>{var n=jl();t.exports=r;function r(e){var t=!1;return n(function(){t=!0}),function(r,i){t?e(r,i):n(function(){e(r,i)})}}})),Nl=s(((e,t)=>{t.exports=n;function n(e){Object.keys(e.jobs).forEach(r.bind(e)),e.jobs={}}function r(e){typeof this.jobs[e]==`function`&&this.jobs[e]()}})),Pl=s(((e,t)=>{var n=Ml(),r=Nl();t.exports=i;function i(e,t,n,i){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=a(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?r(n):n.results[o]=t,i(e,n.results))})}function a(e,t,r,i){return e.length==2?e(r,n(i)):e(r,t,n(i))}})),Fl=s(((e,t)=>{t.exports=n;function n(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}})),Il=s(((e,t)=>{var n=Nl(),r=Ml();t.exports=i;function i(e){Object.keys(this.jobs).length&&(this.index=this.size,n(this),r(e)(null,this.results))}})),Ll=s(((e,t)=>{var n=Pl(),r=Fl(),i=Il();t.exports=a;function a(e,t,a){for(var o=r(e);o.index<(o.keyedList||e).length;)n(e,t,o,function(e,t){if(e){a(e,t);return}if(Object.keys(o.jobs).length===0){a(null,o.results);return}}),o.index++;return i.bind(o,a)}})),Rl=s(((e,t)=>{var n=Pl(),r=Fl(),i=Il();t.exports=a,t.exports.ascending=o,t.exports.descending=s;function a(e,t,a,o){var s=r(e,a);return n(e,t,s,function r(i,a){if(i){o(i,a);return}if(s.index++,s.index<(s.keyedList||e).length){n(e,t,s,r);return}o(null,s.results)}),i.bind(s,o)}function o(e,t){return e<t?-1:+(e>t)}function s(e,t){return-1*o(e,t)}})),zl=s(((e,t)=>{var n=Rl();t.exports=r;function r(e,t,r){return n(e,t,null,r)}})),Bl=s(((e,t)=>{t.exports={parallel:Ll(),serial:zl(),serialOrdered:Rl()}})),Vl=s(((e,t)=>{t.exports=Object})),Hl=s(((e,t)=>{t.exports=Error})),Ul=s(((e,t)=>{t.exports=EvalError})),Wl=s(((e,t)=>{t.exports=RangeError})),Gl=s(((e,t)=>{t.exports=ReferenceError})),Kl=s(((e,t)=>{t.exports=SyntaxError})),ql=s(((e,t)=>{t.exports=TypeError})),Jl=s(((e,t)=>{t.exports=URIError})),Yl=s(((e,t)=>{t.exports=Math.abs})),Xl=s(((e,t)=>{t.exports=Math.floor})),Zl=s(((e,t)=>{t.exports=Math.max})),Ql=s(((e,t)=>{t.exports=Math.min})),$l=s(((e,t)=>{t.exports=Math.pow})),eu=s(((e,t)=>{t.exports=Math.round})),tu=s(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),nu=s(((e,t)=>{var n=tu();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),ru=s(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),iu=s(((e,t)=>{var n=ru();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),au=s(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),ou=s(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),su=s(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=ou();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),cu=s(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),lu=s(((e,t)=>{t.exports=Vl().getPrototypeOf||null})),uu=s(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),du=s(((e,t)=>{var n=uu();t.exports=Function.prototype.bind||n})),fu=s(((e,t)=>{t.exports=Function.prototype.call})),pu=s(((e,t)=>{t.exports=Function.prototype.apply})),mu=s(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),hu=s(((e,t)=>{var n=du(),r=pu(),i=fu();t.exports=mu()||n.call(i,r)})),gu=s(((e,t)=>{var n=du(),r=ql(),i=fu(),a=hu();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),_u=s(((e,t)=>{var n=gu(),r=iu(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),vu=s(((e,t)=>{var n=cu(),r=lu(),i=_u();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),yu=s(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=du().call(n,r)})),bu=s(((e,t)=>{var n,r=Vl(),i=Hl(),a=Ul(),o=Wl(),s=Gl(),c=Kl(),l=ql(),u=Jl(),d=Yl(),f=Xl(),p=Zl(),m=Ql(),h=$l(),g=eu(),_=nu(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=iu(),x=au(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=su()(),T=vu(),E=lu(),D=cu(),O=pu(),k=fu(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=du(),I=yu(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,W=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,U,`$1`):t||e}),r},G=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=W(e),r=n.length>0?n[0]:``,i=G(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),xu=s(((e,t)=>{var n=ou();t.exports=function(){return n()&&!!Symbol.toStringTag}})),Su=s(((e,t)=>{var n=bu()(`%Object.defineProperty%`,!0),r=xu()(),i=yu(),a=ql(),o=r?Symbol.toStringTag:null;t.exports=function(e,t){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,s=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(r!==void 0&&typeof r!=`boolean`||s!==void 0&&typeof s!=`boolean`)throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");o&&(r||!i(e,o))&&(n?n(e,o,{configurable:!s,enumerable:!1,value:t,writable:!1}):e[o]=t)}})),Cu=s(((e,t)=>{t.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}})),wu=s(((e,t)=>{var n=Dl(),r=require("util"),i=require("path"),a=require("http"),o=require("https"),s=require("url").parse,c=require("fs"),l=require("stream").Stream,u=require("crypto"),d=Al(),f=Bl(),p=Su(),m=yu(),h=Cu();function g(e){return String(e).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/"/g,`%22`)}function _(e){if(!(this instanceof _))return new _(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],n.call(this),e||={},e)this[t]=e[t]}r.inherits(_,n),_.LINE_BREAK=`\r
16
+ `,_.DEFAULT_CONTENT_TYPE=`application/octet-stream`,_.prototype.append=function(e,t,r){r||={},typeof r==`string`&&(r={filename:r});var i=n.prototype.append.bind(this);if((typeof t==`number`||t==null)&&(t=String(t)),Array.isArray(t)){this._error(Error(`Arrays are not supported.`));return}var a=this._multiPartHeader(e,t,r),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,r)},_.prototype._trackLength=function(e,t,n){var r=0;n.knownLength==null?Buffer.isBuffer(t)?r=t.length:typeof t==`string`&&(r=Buffer.byteLength(t)):r+=Number(n.knownLength),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+_.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&m(t,`httpVersion`))&&!(t instanceof l))&&(n.knownLength||this._valuesToMeasure.push(t))},_.prototype._lengthRetriever=function(e,t){m(e,`fd`)?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):c.stat(e.path,function(n,r){if(n){t(n);return}t(null,r.size-(e.start?e.start:0))}):m(e,`httpVersion`)?t(null,Number(e.headers[`content-length`])):m(e,`httpModule`)?(e.on(`response`,function(n){e.pause(),t(null,Number(n.headers[`content-length`]))}),e.resume()):t(`Unknown stream`)},_.prototype._multiPartHeader=function(e,t,n){if(typeof n.header==`string`)return n.header;var r=this._getContentDisposition(t,n),i=this._getContentType(t,n),a=``,o={"Content-Disposition":[`form-data`,`name="`+g(e)+`"`].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header==`object`&&h(o,n.header);var s;for(var c in o)if(m(o,c)){if(s=o[c],s==null)continue;Array.isArray(s)||(s=[s]),s.length&&(a+=c+`: `+s.join(`; `)+_.LINE_BREAK)}return`--`+this.getBoundary()+_.LINE_BREAK+a+_.LINE_BREAK},_.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath==`string`?n=i.normalize(t.filepath).replace(/\\/g,`/`):t.filename||e&&(e.name||e.path)?n=i.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&m(e,`httpVersion`)&&(n=i.basename(e.client._httpMessage.path||``)),n)return`filename="`+g(n)+`"`},_.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=d.lookup(e.name)),!n&&e&&e.path&&(n=d.lookup(e.path)),!n&&e&&e.readable&&m(e,`httpVersion`)&&(n=e.headers[`content-type`]),!n&&(t.filepath||t.filename)&&(n=d.lookup(t.filepath||t.filename)),!n&&e&&typeof e==`object`&&(n=_.DEFAULT_CONTENT_TYPE),n},_.prototype._multiPartFooter=function(){return function(e){var t=_.LINE_BREAK;this._streams.length===0&&(t+=this._lastBoundary()),e(t)}.bind(this)},_.prototype._lastBoundary=function(){return`--`+this.getBoundary()+`--`+_.LINE_BREAK},_.prototype.getHeaders=function(e){var t,n={"content-type":`multipart/form-data; boundary=`+this.getBoundary()};for(t in e)m(e,t)&&(n[t.toLowerCase()]=e[t]);return n},_.prototype.setBoundary=function(e){if(typeof e!=`string`)throw TypeError(`FormData boundary must be a string`);this._boundary=e},_.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},_.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!=`function`&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!=`string`||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(_.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},_.prototype._generateBoundary=function(){this._boundary=`--------------------------`+u.randomBytes(12).toString(`hex`)},_.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(Error(`Cannot calculate proper length in synchronous way.`)),e},_.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},_.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}f.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){if(n){e(n);return}r.forEach(function(e){t+=e}),e(null,t)})},_.prototype.submit=function(e,t){var n,r,i={method:`post`};return typeof e==`string`?(e=s(e),r=h({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=h(e,i),r.port||=r.protocol===`https:`?443:80),r.headers=this.getHeaders(e.headers),n=r.protocol===`https:`?o.request(r):a.request(r),this.getLength(function(e,r){if(e&&e!==`Unknown stream`){this._error(e);return}if(r&&n.setHeader(`Content-Length`,r),this.pipe(n),t){var i,a=function(e,r){return n.removeListener(`error`,a),n.removeListener(`response`,i),t.call(this,e,r)};i=a.bind(this,null),n.on(`error`,a),n.on(`response`,i)}}.bind(this)),n},_.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit(`error`,e))},_.prototype.toString=function(){return`[object FormData]`},p(_.prototype,`FormData`),t.exports=_})),Tu=s(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),Eu=s(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=Tu(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(` `,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),Du=s(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=Eu()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),Ou=s(((e,t)=>{let n=require("tty"),r=require("util");e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(`
17
+ `).join(`
18
+ `+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+`
19
+ `)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}t.exports=Eu()(e);let{formatters:d}=t.exports;d.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split(`
20
+ `).map(e=>e.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),ku=s(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=Du():t.exports=Ou()})),Au=s((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){return function(t,n){return new Promise((r,i)=>{e.call(this,t,n,(e,t)=>{e?i(e):r(t)})})}}e.default=t})),ju=s(((e,t)=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let r=require("events"),i=n(ku()),a=n(Au()),o=i.default(`agent-base`);function s(e){return!!e&&typeof e.addRequest==`function`}function c(){let{stack:e}=Error();return typeof e==`string`&&e.split(`
21
+ `).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1)}function l(e,t){return new l.Agent(e,t)}(function(e){class t extends r.EventEmitter{constructor(e,t){super();let n=t;typeof e==`function`?this.callback=e:e&&(n=e),this.timeout=null,n&&typeof n.timeout==`number`&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort==`number`?this.explicitDefaultPort:c()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return typeof this.explicitProtocol==`string`?this.explicitProtocol:c()?`https:`:`http:`}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){let n=Object.assign({},t);typeof n.secureEndpoint!=`boolean`&&(n.secureEndpoint=c()),n.host??=`localhost`,n.port??=n.secureEndpoint?443:80,n.protocol??=n.secureEndpoint?`https:`:`http:`,n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,i=null,l=n.timeout||this.timeout,u=t=>{e._hadError||=(e.emit(`error`,t),!0)},d=()=>{i=null,r=!0;let e=Error(`A "socket" was not created for HTTP request before ${l}ms`);e.code=`ETIMEOUT`,u(e)},f=e=>{r||(i!==null&&(clearTimeout(i),i=null),u(e))},p=t=>{if(r)return;if(i!=null&&(clearTimeout(i),i=null),s(t)){o(`Callback returned another Agent instance %o`,t.constructor.name),t.addRequest(e,n);return}if(t){t.once(`free`,()=>{this.freeSocket(t,n)}),e.onSocket(t);return}let a=Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);u(a)};if(typeof this.callback!=`function`){u(Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(o(`Converting legacy callback function to promise`),this.promisifiedCallback=a.default(this.callback)):this.promisifiedCallback=this.callback),typeof l==`number`&&l>0&&(i=setTimeout(d,l)),`port`in n&&typeof n.port!=`number`&&(n.port=Number(n.port));try{o(`Resolving socket for %o request: %o`,n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(p,f)}catch(e){Promise.reject(e).catch(f)}}freeSocket(e,t){o(`Freeing socket %o %o`,e.constructor.name,t),e.destroy()}destroy(){o(`Destroying agent %o`,this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(l||={}),t.exports=l})),Mu=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let n=t(ku()).default(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?d(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,l),e.removeListener(`error`,u),e.removeListener(`close`,c),e.removeListener(`readable`,o)}function c(e){n(`onclose had error %o`,e)}function l(){n(`onend`)}function u(e){s(),n(`onerror %o`,e),r(e)}function d(e){a.push(e),i+=e.length;let r=Buffer.concat(a,i);if(r.indexOf(`\r
22
+ \r
23
+ `)===-1){n(`have not received end of HTTP headers yet...`),o();return}let s=r.toString(`ascii`,0,r.indexOf(`\r
24
+ `)),c=+s.split(` `)[1];n(`got proxy server response: %o`,s),t({statusCode:c,buffered:r})}e.on(`error`,u),e.on(`close`,c),e.on(`end`,l),o()})}e.default=r})),Nu=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let r=n(require("net")),i=n(require("tls")),a=n(require("url")),o=n(require("assert")),s=n(ku()),c=ju(),l=n(Mu()),u=s.default(`https-proxy-agent:agent`);e.default=class extends c.Agent{constructor(e){let t;if(t=typeof e==`string`?a.default.parse(e):e,!t)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");u(`creating new HttpsProxyAgent instance: %o`,t),super(t);let n=Object.assign({},t);this.secureProxy=t.secureProxy||p(n.protocol),n.host=n.hostname||n.host,typeof n.port==`string`&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!(`ALPNProtocols`in n)&&(n.ALPNProtocols=[`http 1.1`]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,n){return t(this,void 0,void 0,function*(){let{proxy:t,secureProxy:a}=this,s;a?(u("Creating `tls.Socket`: %o",t),s=i.default.connect(t)):(u("Creating `net.Socket`: %o",t),s=r.default.connect(t));let c=Object.assign({},t.headers),p=`CONNECT ${`${n.host}:${n.port}`} HTTP/1.1\r\n`;t.auth&&(c[`Proxy-Authorization`]=`Basic ${Buffer.from(t.auth).toString(`base64`)}`);let{host:h,port:g,secureEndpoint:_}=n;f(g,_)||(h+=`:${g}`),c.Host=h,c.Connection=`close`;for(let e of Object.keys(c))p+=`${e}: ${c[e]}\r\n`;let v=l.default(s);s.write(`${p}\r\n`);let{statusCode:y,buffered:b}=yield v;if(y===200){if(e.once(`socket`,d),n.secureEndpoint){u(`Upgrading socket connection to TLS`);let e=n.servername||n.host;return i.default.connect(Object.assign(Object.assign({},m(n,`host`,`hostname`,`path`,`port`)),{socket:s,servername:e}))}return s}s.destroy();let x=new r.default.Socket({writable:!1});return x.readable=!0,e.once(`socket`,e=>{u(`replaying proxy buffer for failed request`),o.default(e.listenerCount(`data`)>0),e.push(b),e.push(null)}),x})}};function d(e){e.resume()}function f(e,t){return!!(!t&&e===80||t&&e===443)}function p(e){return typeof e==`string`&&/^https:?$/i.test(e)}function m(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Pu=s(((e,t)=>{let n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Nu());function r(e){return new n.default(e)}(function(e){e.HttpsProxyAgent=n.default,e.prototype=n.default.prototype})(r||={}),t.exports=r})),Fu=s(((e,t)=>{var n;t.exports=function(){if(!n){try{n=ku()(`follow-redirects`)}catch{}typeof n!=`function`&&(n=function(){})}n.apply(null,arguments)}})),Iu=s(((e,t)=>{var n=require("url"),r=n.URL,i=require("http"),a=require("https"),o=require("stream").Writable,s=require("assert"),c=Fu();(function(){var e=typeof process<`u`,t=typeof window<`u`&&typeof document<`u`,n=N(Error.captureStackTrace);!e&&(t||!n)&&console.warn(`The follow-redirects package should be excluded from browser builds.`)})();var l=!1;try{s(new r(``))}catch(e){l=e.code===`ERR_INVALID_URL`}var u=[`Authorization`,`Proxy-Authorization`,`Cookie`],d=[`auth`,`host`,`hostname`,`href`,`path`,`pathname`,`port`,`protocol`,`query`,`search`,`hash`],f=[`abort`,`aborted`,`connect`,`error`,`socket`,`timeout`],p=Object.create(null);f.forEach(function(e){p[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var m=O(`ERR_INVALID_URL`,`Invalid URL`,TypeError),h=O(`ERR_FR_REDIRECTION_FAILURE`,`Redirected request failed`),g=O(`ERR_FR_TOO_MANY_REDIRECTS`,`Maximum number of redirects exceeded`,h),_=O(`ERR_FR_MAX_BODY_LENGTH_EXCEEDED`,`Request body larger than maxBodyLength limit`),v=O(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),y=o.prototype.destroy||S;function b(e,t){o.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on(`response`,t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit(`error`,e instanceof h?e:new h({cause:e}))}},this._headerFilter=RegExp(`^(?:`+u.concat(e.sensitiveHeaders).map(I).join(`|`)+`)$`,`i`),this._performRequest()}b.prototype=Object.create(o.prototype),b.prototype.abort=function(){k(this._currentRequest),this._currentRequest.abort(),this.emit(`abort`)},b.prototype.destroy=function(e){return k(this._currentRequest,e),y.call(this,e),this},b.prototype.write=function(e,t,n){if(this._ending)throw new v;if(!M(e)&&!P(e))throw TypeError(`data should be a string, Buffer or Uint8Array`);if(N(t)&&(n=t,t=null),e.length===0){n&&n();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit(`error`,new _),this.abort())},b.prototype.end=function(e,t,n){if(N(e)?(n=e,e=t=null):N(t)&&(n=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}},b.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},b.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},b.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener(`timeout`,t.destroy),t.addListener(`timeout`,t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit(`timeout`),a()},e),r(t)}function a(){n._timeout&&=(clearTimeout(n._timeout),null),n.removeListener(`abort`,a),n.removeListener(`error`,a),n.removeListener(`response`,a),n.removeListener(`close`,a),t&&n.removeListener(`timeout`,t),n.socket||n._currentRequest.removeListener(`socket`,i)}return t&&this.on(`timeout`,t),this.socket?i(this.socket):this._currentRequest.once(`socket`,i),this.on(`socket`,r),this.on(`abort`,a),this.on(`error`,a),this.on(`response`,a),this.on(`close`,a),this},[`flushHeaders`,`getHeader`,`setNoDelay`,`setSocketKeepAlive`].forEach(function(e){b.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),[`aborted`,`connection`,`socket`].forEach(function(e){Object.defineProperty(b.prototype,e,{get:function(){return this._currentRequest[e]}})}),b.prototype._sanitizeOptions=function(e){if(e.headers||={},j(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(e.hostname||=e.host,delete e.host),!e.pathname&&e.path){var t=e.path.indexOf(`?`);t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},b.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError(`Unsupported protocol `+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of f)i.on(a,p[a]);if(this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;(function e(t){if(i===s._currentRequest)if(t)s.emit(`error`,t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()})()}},b.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit(`response`,e),this._requestBodyBuffers=[];return}if(k(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new g;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:e.req.getHeader(`host`)},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method===`POST`||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method=`GET`,this._requestBodyBuffers=[],D(/^content-/i,this._options.headers));var s=D(/^host$/i,this._options.headers),l=C(this._currentUrl),u=s||l.host,d=/^\w+:/.test(r)?this._currentUrl:n.format(Object.assign(l,{host:u})),f=w(r,d);if(c(`redirecting to`,f.href),this._isRedirect=!0,E(f,this._options),(f.protocol!==l.protocol&&f.protocol!==`https:`||f.host!==u&&!A(f.host,u))&&D(this._headerFilter,this._options.headers),N(a)){var p={headers:e.headers,statusCode:t},m={url:d,method:o,headers:i};a(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()};function x(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},n={};return Object.keys(e).forEach(function(r){var i=r+`:`,a=n[i]=e[r],o=t[r]=Object.create(a);function l(e,r,a){return F(e)?e=E(e):M(e)?e=E(C(e)):(a=r,r=T(e),e={protocol:i}),N(r)&&(a=r,r=null),r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r),r.nativeProtocols=n,!M(r.host)&&!M(r.hostname)&&(r.hostname=`::1`),s.equal(r.protocol,i,`protocol mismatch`),c(`options`,r),new b(r,a)}function u(e,t,n){var r=o.request(e,t,n);return r.end(),r}Object.defineProperties(o,{request:{value:l,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function S(){}function C(e){var t;if(l)t=new r(e);else if(t=T(n.parse(e)),!M(t.protocol))throw new m({input:e});return t}function w(e,t){return l?new r(e,t):C(n.resolve(t,e))}function T(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new m({input:e.href||e});return e}function E(e,t){var n=t||{};for(var r of d)n[r]=e[r];return n.hostname.startsWith(`[`)&&(n.hostname=n.hostname.slice(1,-1)),n.port!==``&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function D(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n==null?void 0:String(n).trim()}function O(e,t,n){function r(n){N(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+`: `+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:`Error [`+e+`]`,enumerable:!1}}),r}function k(e,t){for(var n of f)e.removeListener(n,p[n]);e.on(`error`,S),e.destroy(t)}function A(e,t){s(M(e)&&M(t));var n=e.length-t.length-1;return n>0&&e[n]===`.`&&e.endsWith(t)}function j(e){return e instanceof Array}function M(e){return typeof e==`string`||e instanceof String}function N(e){return typeof e==`function`}function P(e){return typeof e==`object`&&`length`in e}function F(e){return r&&e instanceof r}function I(e){return e.replace(/[\]\\/()*+?.$]/g,`\\$&`)}t.exports=x({http:i,https:a}),t.exports.wrap=x})),Lu=s(((e,t)=>{
25
+ /*! Axios v1.21.0 Copyright (c) 2026 Matt Zabriskie and contributors */
26
+ var n=wu(),r=require("crypto"),i=require("url"),a=Pu(),o=require("http"),s=require("https"),c=require("http2"),l=require("util"),u=require("path"),d=Iu(),f=require("zlib"),p=require("stream"),m=require("events");function h(e,t){return function(){return e.apply(t,arguments)}}let{toString:g}=Object.prototype,{getPrototypeOf:_}=Object,{iterator:v,toStringTag:y}=Symbol,b=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),x=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),S=(e,t,n)=>e===Object.prototype||!n&&t===null,C=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(x(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},w=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=_(n);if(S(n,i,n===e))return!1;if(b(n,t))return!0;n=i}return!1},T=(e,t)=>e!=null&&w(e,t)?e[t]:void 0,E=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=_(e);if(t===null&&C(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:_(a);if(S(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)x(t)||b(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},D=(e=>t=>{let n=g.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),O=e=>(e=e.toLowerCase(),t=>D(t)===e),k=e=>t=>typeof t===e,{isArray:A}=Array,j=k(`undefined`);function M(e){return e!==null&&!j(e)&&e.constructor!==null&&!j(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let N=O(`ArrayBuffer`);function P(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&N(e.buffer),t}let F=k(`string`),I=k(`function`),L=k(`number`),R=e=>typeof e==`object`&&!!e,z=e=>e===!0||e===!1,B=e=>{if(!R(e))return!1;let t=_(e);return(t===null||t===Object.prototype||_(t)===null)&&(S(e,t,!0)||!b(e,y)&&!b(e,v))},V=e=>{if(!R(e)||M(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},H=O(`Date`),U=O(`File`),W=e=>!!(e&&e.uri!==void 0),G=e=>e&&e.getParts!==void 0,ee=O(`Blob`),K=O(`FileList`),q=O(`Set`),te=e=>R(e)&&I(e.pipe);function ne(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}let re=ne(),ie=re.FormData===void 0?void 0:re.FormData,ae=e=>{if(!e)return!1;if(ie&&e instanceof ie)return!0;let t=_(e);if(!t||t===Object.prototype||!I(e.append))return!1;let n=D(e);return n===`formdata`||n===`object`&&I(e.toString)&&e.toString()===`[object FormData]`},J=O(`URLSearchParams`),[oe,se,ce,Y]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(O),le=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function ue(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),A(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(M(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function de(e,t){if(M(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}let fe=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,pe=e=>!j(e)&&e!==fe;function me(...e){let{caseless:t,skipUndefined:n}=pe(this)&&this||{},r={},i=t?Object.create(null):null,a=(e,t)=>{if(t===`__proto__`||t===`constructor`||t===`prototype`)return;let a=t;if(i&&typeof t==`string`){let e=t.toLowerCase(),n=i[e];n!==void 0&&b(r,n)?a=n:i[e]=t}let o=b(r,a)?r[a]:void 0;B(o)&&B(e)?r[a]=me(o,e):B(e)?r[a]=me({},e):A(e)?r[a]=e.slice():(!n||!j(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||M(n)||(ue(n,a),typeof n!=`object`||A(n)||!Object.getOwnPropertySymbols))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Ee.call(n,t)&&a(n[t],t)}}return r}let he=(e,t,n,{allOwnKeys:r}={})=>(ue(t,(t,r)=>{n&&I(t)?Object.defineProperty(e,r,{__proto__:null,value:h(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ge=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},ve=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ye=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},be=e=>{if(!e)return null;if(A(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;let n=new Set,r=new Set,i=e;for(;i!=null&&n.size<t;){if(r.has(i))return null;r.add(i);let a=_(i);if(S(i,a,i===e))break;Object.getOwnPropertyNames(i).forEach(e=>{let r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&b(i,e)&&n.add(r)}),i=a}if(n.size!==t)return null;let a=Array(t);for(;t-->0;)a[t]=e[t];return a},xe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&_(Uint8Array)),Se=(e,t)=>{let n=(e&&e[v]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ce=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},we=O(`HTMLFormElement`),Te=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Ee}=Object.prototype,De=O(`RegExp`),Oe=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};ue(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ke=e=>{Oe(e,(t,n)=>{if(I(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(I(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Ae=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return A(e)?r(e):r(String(e).split(t)),n},je=()=>{},Me=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ne(e){return!!(e&&I(e.append)&&e[y]===`FormData`&&e[v])}let Pe=e=>{let t=new WeakSet,n=e=>{if(R(e)){if(t.has(e))return;if(M(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(q(e)){r=[];for(let t of e){let e=n(t);!j(e)&&r.push(e)}}else r=A(e)?[]:{},ue(e,(e,t)=>{let i=n(e);!j(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Fe=O(`AsyncFunction`),Ie=e=>e&&(R(e)||I(e))&&I(e.then)&&I(e.catch),Le=((e,t)=>e?setImmediate:t?((e,t)=>(fe.addEventListener(`message`,({source:n,data:r})=>{n===fe&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),fe.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,I(fe.postMessage)),Re=typeof queueMicrotask<`u`?queueMicrotask.bind(fe):typeof process<`u`&&process.nextTick||Le,ze=e=>e!=null&&I(e[v]);var X={isArray:A,isArrayBuffer:N,isBuffer:M,isFormData:ae,isArrayBufferView:P,isString:F,isNumber:L,isBoolean:z,isObject:R,isPlainObject:B,isEmptyObject:V,isReadableStream:oe,isRequest:se,isResponse:ce,isHeaders:Y,isUndefined:j,isDate:H,isFile:U,isReactNativeBlob:W,isReactNative:G,isBlob:ee,isRegExp:De,isFunction:I,isStream:te,isURLSearchParams:J,isTypedArray:xe,isFileList:K,forEach:ue,merge:me,extend:he,trim:le,stripBOM:ge,inherits:_e,toFlatObject:ve,kindOf:D,kindOfTest:O,endsWith:ye,toArray:be,forEachEntry:Se,matchAll:Ce,isHTMLForm:we,hasOwnProperty:b,hasOwnProp:b,hasOwnInPrototypeChain:w,getSafeProp:T,toSafeFlatObject:E,reduceDescriptors:Oe,freezeMethods:ke,toObjectSet:Ae,toCamelCase:Te,noop:je,toFiniteNumber:Me,findKey:de,global:fe,isContextDefined:pe,isSpecCompliantForm:Ne,toJSONObject:Pe,isAsyncFn:Fe,isThenable:Ie,setImmediate:Le,asap:Re,isIterable:ze,isSafeIterable:e=>e!=null&&w(e,v)&&ze(e)};let Be=X.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]);var Ve=e=>{let t=Object.create(null),n,r,i;return e&&e.split(`
27
+ `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=X.hasOwnProp(t,n);!n||a&&X.hasOwnProp(Be,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function He(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}let Ue=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),We=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Ge(e,t){return X.isArray(e)?e.map(e=>Ge(e,t)):He(String(e).replace(t,``))}let Ke=e=>Ge(e,Ue),qe=e=>Ge(e,We);function Je(e){let t=Object.create(null);return X.forEach(e.toJSON(),(e,n)=>{t[n]=qe(e)}),t}let Ye=Symbol(`internals`);function Xe(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return e===!1||e==null?e:X.isArray(e)?e.map(Ze):Ke(String(e))}function Qe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}let $e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function et(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function tt(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function nt(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=et(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=et(i.slice(0,a));if(!$e.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=et(i.slice(a+1));t[s]=tt(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}let rt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),it=e=>e===`__proto__`?`__Proto__`:e;function at(e,t,n,r,i){if(X.isFunction(r))return r.call(e,t,n);if(i&&(t=n),X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function ot(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function st(e,t){let n=X.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var ct=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Xe(t);if(!i)return;let a=X.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[it(a||t)]=Ze(e))}let a=(e,t)=>X.forEach(e,(e,n)=>i(e,n,t));if(X.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(X.isString(e)&&(e=e.trim())&&!rt(e))a(Ve(e),t);else if(X.isObject(e)&&X.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!X.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],X.hasOwnProp(n,i)?(r=n[i],n[i]=X.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Xe(e),e){let n=X.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Qe(e);if(X.isFunction(t))return t.call(this,e,n);if(X.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Xe(e),e){let n=X.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||at(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Xe(e),e){let i=X.findKey(n,e);i&&(!t||at(n,n[i],i,t))&&(delete n[i],r=!0)}}return X.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||at(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n=Object.create(null);return X.forEach(this,(r,i)=>{let a=X.findKey(n,i);if(a){t[a]=Ze(r),delete t[i];return}let o=it(e?ot(i):String(i).trim());o!==i&&delete t[i],t[o]=Ze(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return X.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&X.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
28
+ `)}getSetCookie(){let e=this.get(`set-cookie`);return X.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return nt(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Xe(e);t[r]||(st(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}};ct.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),X.reduceDescriptors(ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(ct);let lt=`[REDACTED ****]`;function ut(e){if(X.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(X.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function dt(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||X.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof ct&&(e=e.toJSON()),r.push(e);let t;if(X.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);X.isUndefined(r)||(t[n]=r)});else{if(!X.isPlainObject(e)&&ut(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?lt:i(a);X.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function ft(e){try{return String(e)}catch{return``}}function pt(e){return e.errors.map(e=>{try{return e&&e.message?ft(e.message):ft(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}let mt=Symbol(`causeStack`);function ht(e,t){let n=X.hasOwnProp(e,mt)&&e[mt];return n&&t.endsWith(n)?t.length-n.length:-1}function gt(e,t){try{let n=t&&t.stack;if(typeof n!=`string`||!n)return;let r=e.stack;if(typeof r!=`string`||!r)return;let i=`
29
+ Caused by: `+n;e.stack=r+i,Object.defineProperty(e,mt,{__proto__:null,value:i})}catch{}}var Z=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&X.isArray(t.errors)&&t.errors.length&&(s=pt(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,gt(c,t),t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&X.hasOwnProp(e,`redact`)?e.redact:void 0,n=X.isArray(t)&&t.length>0?dt(e,t):X.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};Z.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,Z.ERR_BAD_OPTION=`ERR_BAD_OPTION`,Z.ECONNABORTED=`ECONNABORTED`,Z.ETIMEDOUT=`ETIMEDOUT`,Z.ECONNREFUSED=`ECONNREFUSED`,Z.ERR_NETWORK=`ERR_NETWORK`,Z.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,Z.ERR_DEPRECATED=`ERR_DEPRECATED`,Z.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,Z.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,Z.ERR_CANCELED=`ERR_CANCELED`,Z.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,Z.ERR_INVALID_URL=`ERR_INVALID_URL`,Z.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;var _t={isBufferAvailable(){return typeof Buffer<`u`},from(e){return Buffer.from(e)}};function vt(e){return X.isPlainObject(e)||X.isArray(e)}function yt(e){return X.endsWith(e,`[]`)?e.slice(0,-2):e}function bt(e,t,n){return e?e.concat(t).map(function(e,t){return e=yt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function xt(e){return X.isArray(e)&&!e.some(vt)}let St=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function Ct(e,t,r){if(!X.isObject(e))throw TypeError(`target must be an object`);t||=new(n||FormData);let i=(e,t)=>{let n=X.getSafeProp(r,e);return X.isUndefined(n)?t:n},a=i(`metaTokens`,!0),o=i(`visitor`)||g,s=i(`dots`,!1),c=i(`indexes`,!1),l=i(`Blob`)||typeof Blob<`u`&&Blob,u=i(`maxDepth`,100),d=l&&X.isSpecCompliantForm(t),f=[];if(!X.isFunction(o))throw TypeError(`visitor must be a function`);function p(e){if(e===null)return``;if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!d&&X.isBlob(e))throw new Z(`Blob is not supported. Use a Buffer instead.`);if(X.isArrayBuffer(e)||X.isTypedArray(e)){if(d&&typeof l==`function`)return new l([e]);if(_t&&_t.isBufferAvailable())return _t.from(e);throw new Z(`Blob is not supported. Use a Buffer instead.`,Z.ERR_NOT_SUPPORT)}return e}function m(e){if(e>u)throw new Z(`Object is too deeply nested (`+e+` levels). Max depth: `+u,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,t){if(u===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!X.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),m(t+n.length-1),r})}function g(e,n,r){let i=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(bt(r,n,s),p(e)),!1;if(e&&!r&&typeof e==`object`){if(X.endsWith(n,`{}`))n=a?n:n.slice(0,-2),e=h(e,1);else if(X.isArray(e)&&xt(e)||(X.isFileList(e)||X.endsWith(n,`[]`))&&(i=X.toArray(e)))return n=yt(n),i.forEach(function(e,r){!(X.isUndefined(e)||e===null)&&t.append(c===!0?bt([n],r,s):c===null?n:n+`[]`,p(e))}),!1}return vt(e)?!0:(t.append(bt(r,n,s),p(e)),!1)}let _=Object.assign(St,{defaultVisitor:g,convertValue:p,isVisitable:vt});function v(e,n,r=0){if(!X.isUndefined(e)){if(m(r),f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),X.forEach(e,function(e,i){(!(X.isUndefined(e)||e===null)&&o.call(t,e,X.isString(i)?i.trim():i,n,_))===!0&&v(e,n?n.concat(i):[i],r+1)}),f.pop()}}if(!X.isObject(e))throw TypeError(`data must be an object`);return v(e),t}function wt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Tt(e,t){this._pairs=[],e&&Ct(e,this,t)}let Et=Tt.prototype;Et.append=function(e,t){this._pairs.push([e,t])},Et.toString=function(e){let t=e?t=>e.call(this,t,wt):wt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ot(e,t,n){if(!t)return e;e||=``;let r=X.isFunction(n)?{serialize:n}:n,i=X.getSafeProp(r,`encode`)||Dt,a=X.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):X.isURLSearchParams(t)?t.toString():new Tt(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}let kt=Symbol(`internals`);function At(e){return e?e.length:0}function jt(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Mt(e){return typeof e==`string`&&e!==``&&String(Number(e))===e?Number(e):e}function Nt(e,t){let n=e.handlers,r=At(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var Pt=class{constructor(){this.handlers=[],this[kt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[kt];this.handlers??=[],Nt(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[kt];Nt(this,t);let n=Mt(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(jt(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Nt(this,this[kt]))}forEach(e){let t=this[kt];Nt(this,t),t.iterationDepth++;try{X.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(Nt(this,t),jt(this.handlers),t.handlersLength=At(this.handlers))}}},Ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},It=i.URLSearchParams;let Lt={DIGIT:`0123456789`,ALPHA:`abcdefghijklmnopqrstuvwxyz`,ALPHA_DIGIT:`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`};var Rt={isNode:!0,classes:{URLSearchParams:It,FormData:n,Blob:typeof Blob<`u`&&Blob||null},ALPHABET:Lt,generateString:(e=16,t=Lt.ALPHA_DIGIT)=>{let n=``,{length:i}=t,a=new Uint32Array(e);r.randomFillSync(a);for(let r=0;r<e;r++)n+=t[a[r]%i];return n},protocols:[`http`,`https`,`file`,`data`]};let zt=typeof window<`u`&&typeof document<`u`,Bt=typeof navigator==`object`&&navigator||void 0,Vt=zt&&(!Bt||[`ReactNative`,`NativeScript`,`NS`].indexOf(Bt.product)<0),Ht=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Ut=zt&&window.location.href||`http://localhost`;var Wt={...Object.freeze({__proto__:null,hasBrowserEnv:zt,hasStandardBrowserEnv:Vt,hasStandardBrowserWebWorkerEnv:Ht,navigator:Bt,origin:Ut}),...Rt};function Gt(e,t){return Ct(e,new Wt.classes.URLSearchParams,{visitor:function(e,t,n,r){return Wt.isNode&&X.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Kt(e){if(e>100)throw new Z(`FormData field is too deeply nested (`+e+` levels). Max depth: 100`,Z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function qt(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)Kt(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Jt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Yt(e){if(!X.isArray(e))return e;let t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?Jt(e):e}function Xt(e){let t=[e];for(;t.length;){let e=t.pop();Object.keys(e).forEach(n=>{let r=e[n]=Yt(e[n]);(X.isArray(r)||X.isPlainObject(r))&&t.push(r)})}return e}function Zt(e){function t(e,n,r,i){Kt(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&X.isArray(r)?r.length:a,s?(X.hasOwnProp(r,a)?(r[a]=Yt(r[a]),r[a]=X.isArray(r[a])?r[a].concat(n):[r[a],n]):r[a]=n,!o):((!X.hasOwnProp(r,a)||!X.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&X.isArray(r[a])&&(r[a]=Jt(r[a])),!o)}if(X.isFormData(e)&&X.isFunction(e.entries)){let n={};return X.forEachEntry(e,(e,r)=>{t(qt(e),r,n,0)}),Xt(n)}return null}let Qt=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),$t=(e,t)=>e!=null&&X.hasOwnProp(e,t)?e[t]:void 0;function en(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}let tn={transitional:Ft,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=X.isObject(e);if(i&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return r?JSON.stringify(Zt(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=$t(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Gt(e,t).toString();if((a=X.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=$t(this,`env`),r=n&&n.FormData;return Ct(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),en(e)):e}],transformResponse:[function(e){let t=$t(this,`transitional`)||tn.transitional,n=t&&t.forcedJSONParsing,r=$t(this,`responseType`),i=r===`json`;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,$t(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?Z.from(e,Z.ERR_BAD_RESPONSE,this,null,$t(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wt.classes.FormData,Blob:Wt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};X.forEach(Qt,e=>{tn.headers[e]={}});function nn(e,t){let n=this||tn,r=t||n,i=ct.from(r.headers),a=r.data;return X.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function rn(e){return!!(e&&e.__CANCEL__)}var an=class extends Z{constructor(e,t,n){super(e??`canceled`,Z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function on(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Z(`Request failed with status code `+n.status,n.status>=400&&n.status<500?Z.ERR_BAD_REQUEST:Z.ERR_BAD_RESPONSE,n.config,n.request,n))}function sn(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cn(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}let ln=/[\t\n\r]/g;function un(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(ln,``)}let dn=/^https?:(?!\/\/)/i;function fn(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${lt}`)}function pn(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${lt}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${lt}`);return n===-1?r:`${r}#${fn(t.slice(n+1))}`}function mn(e,t){if(typeof e==`string`){let n=un(e);if(dn.test(n))throw new Z(`Invalid URL ${JSON.stringify(pn(n))}: missing "//" after protocol`,Z.ERR_INVALID_URL,t)}}function hn(e,t,n,r){mn(t,r);let i=!sn(t);return e&&(i||n===!1)?(mn(e,r),cn(e,t)):t}var gn={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function _n(e){try{return new URL(e)}catch{return null}}function vn(e){var t=(typeof e==`string`?_n(e):e)||{},n=t.protocol,r=t.host,i=t.port;if(typeof r!=`string`||!r||typeof n!=`string`||(n=n.split(`:`,1)[0],r=r.replace(/:\d*$/,``),i=parseInt(i)||gn[n]||0,!yn(r,i)))return``;var a=bn(n+`_proxy`)||bn(`all_proxy`);return a&&a.indexOf(`://`)===-1&&(a=n+`://`+a),a}function yn(e,t){var n=bn(`no_proxy`).toLowerCase();return!n||n!==`*`&&n.split(/[,\s]/).every(function(n){if(!n)return!0;var r=n.match(/^(.+):(\d+)$/),i=r?r[1]:n,a=r?parseInt(r[2]):0;return a&&a!==t?!0:/^[.*]/.test(i)?(i.charAt(0)===`*`&&(i=i.slice(1)),!e.endsWith(i)):e!==i})}function bn(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||``}let xn=`1.21.0`;function Sn(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||``}let Cn=/^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/i;function wn(e,t,n){let r=n&&n.Blob||Wt.classes.Blob,i=Sn(e);if(t===void 0&&r&&(t=!0),i===`data`){e=i.length?e.slice(i.length+1):e;let n=Cn.exec(e);if(!n)throw new Z(`Invalid URL`,Z.ERR_INVALID_URL);let a=n[1],o=n[2],s=n[3]?`base64`:`utf8`,c=n[4],l=``;a?l=o?a+o:a:o&&(l=`text/plain`+o);let u=s===`base64`?Buffer.from(c.replace(/%([\da-f]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),`base64`):Buffer.from(decodeURIComponent(c),s);if(t){if(!r)throw new Z(`Blob is not supported`,Z.ERR_NOT_SUPPORT);return new r([u],{type:l})}return u}throw new Z(`Unsupported protocol `+i,Z.ERR_NOT_SUPPORT)}let Tn=[`content-type`,`content-length`];function En(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{Tn.includes(t.toLowerCase())&&e.set(t,n)})}let Dn=Symbol(`internals`);var On=class extends p.Transform{constructor(e){e=X.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!X.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});let t=this[Dn]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on(`newListener`,e=>{e===`progress`&&(t.isCaptured||=!0)})}_read(e){let t=this[Dn];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let r=this[Dn],i=r.maxRate,a=this.readableHighWaterMark,o=r.timeWindow,s=i/(1e3/o),c=r.minChunkSize===!1?0:Math.max(r.minChunkSize,s*.01);i&&(c=Math.min(s,c));let l=(e,t)=>{let n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&this.emit(`progress`,r.bytesSeen),this.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{if(this.destroyed)return t();let n=Buffer.byteLength(e),u=null,d=a,f,p=0;if(i){let e=Date.now();(!r.ts||(p=e-r.ts)>=o)&&(r.ts=e,f=s-r.bytes,r.bytes=f<0?-f:0,p=0),f=s-r.bytes}if(i){if(f<=0)return setTimeout(()=>{t(null,e)},o-p);f<d&&(d=Math.max(1,Math.floor(f)))}d&&n>d&&n-d>c&&(u=e.subarray(d),e=e.subarray(0,d)),l(e,u?()=>{process.nextTick(t,null,u)}:t)};u(e,function e(t,r){if(t)return n(t);r?u(r,e):n(null)})}};let{asyncIterator:kn}=Symbol,An=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[kn]?yield*e[kn]():yield e},jn=Wt.ALPHABET.ALPHA_DIGIT+`-_`,Mn=typeof TextEncoder==`function`?new TextEncoder:new l.TextEncoder,Nn=Mn.encode(`\r
30
+ `);var Pn=class{constructor(e,t){let{escapeName:n}=this.constructor,r=X.isString(t),i=`Content-Disposition: form-data; name="${n(e)}"${!r&&t.name?`; filename="${n(t.name)}"`:``}\r
31
+ `;if(r)t=Mn.encode(String(t).replace(/\r?\n|\r\n?/g,`\r
32
+ `));else{let e=String(t.type||`application/octet-stream`).replace(/[\r\n]/g,``);i+=`Content-Type: ${e}\r
33
+ `}this.headers=Mn.encode(i+`\r
34
+ `),this.contentLength=r?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;X.isTypedArray(e)?yield e:yield*An(e),yield Nn}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":`%0D`,"\n":`%0A`,'"':`%22`})[e])}};let Fn=(e,t,n)=>{let{tag:r=`form-data-boundary`,size:i=25,boundary:a=r+`-`+Wt.generateString(i,jn)}=n||{};if(!X.isFormData(e))throw TypeError(`FormData instance required`);if(a.length<1||a.length>70)throw Error(`boundary must be 1-70 characters long`);let o=Mn.encode(`--`+a+`\r
35
+ `),s=Mn.encode(`--`+a+`--\r
36
+ `),c=s.byteLength,l=Array.from(e.entries()).map(([e,t])=>{let n=new Pn(e,t);return c+=n.size,n});c+=o.byteLength*l.length,c=X.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(c)&&(u[`Content-Length`]=c),t&&t(u),p.Readable.from(async function*(){for(let e of l)yield o,yield*e.encode();yield s}())};var In=class extends p.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}},Ln=class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign(Object.create(null),{sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let r=0;r<e;r++){let[e,i]=n[r];if(!e.destroyed&&!e.closed&&l.isDeepStrictEqual(i,t))return e}}let r=c.connect(e,t),i,a,o=()=>{if(i)return;i=!0,a&&=(clearTimeout(a),null);let t=n,o=t.length,s=o;for(;s--;)if(t[s][0]===r){o===1?delete this.sessions[e]:t.splice(s,1),r.closed||r.close();return}},s=r.request,{sessionTimeout:u}=t;if(u!=null){let e=0;r.request=function(){let t=s.apply(this,arguments);return e++,a&&=(clearTimeout(a),null),t.once(`close`,()=>{!--e&&!i&&(a=setTimeout(()=>{a=null,o()},u))}),t}}r.once(`close`,o),r.once(`error`,o),r.once(`goaway`,o);let d=[r,t];return n?n.push(d):n=this.sessions[e]=[d],r}};let Rn=(e,t)=>X.isAsyncFn(e)?function(...n){let r=n.pop();e.apply(this,n).then(e=>{try{t?r(null,...t(e)):r(null,e)}catch(e){r(e)}},r)}:e,zn=new Set([`localhost`,`0.0.0.0`]),Bn=e=>{let t=e.length;for(;t&&e.charCodeAt(t-1)===46;)t--;return t===e.length?e:e.slice(0,t)},Vn=e=>{let t=e.split(`.`);return t.length!==4||t[0]!==`127`?!1:t.every(e=>/^\d+$/.test(e)&&Number(e)>=0&&Number(e)<=255)},Hn=e=>{if(/^0[xX][0-9a-fA-F]+$/.test(e)){let t=parseInt(e.slice(2),16);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-7]+$/.test(e)){let t=parseInt(e,8);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-9]+$/.test(e))return null;if(/^[0-9]+$/.test(e)){let t=parseInt(e,10);return Number.isFinite(t)?t:null}return null},Un=e=>{if(typeof e!=`string`||!e||e.indexOf(`:`)!==-1)return e;let t=e;if(t.charAt(0)===`[`&&t.charAt(t.length-1)===`]`&&(t=t.slice(1,-1)),t=Bn(t),!/^[0-9.xXa-fA-F]+$/.test(t))return e;let n=t.split(`.`);if(n.some(e=>e===``))return e;if(n.length===4){let t=n.map(Hn);return t.some(e=>e===null||e<0||e>255)?e:t.join(`.`)}if(n.length>4||n.length===1)return e;let r=n.slice(0,-1),i=n[n.length-1],a=4-r.length,o=Hn(i);if(o===null)return e;let s=(1<<8*a)-1;if(o<0||o>s)return e;let c=Array(a).fill(0);for(let e=a-1,t=o;e>=0;e--,t>>=8)c[e]=t&255;let l=r.map(Hn);return l.some(e=>e===null||e<0||e>255)?e:[...l,...c].join(`.`)},Wn=e=>/^0{1,4}$/.test(e),Gn=e=>{if(e===`::`)return!0;let t=e.indexOf(`::`);if(t!==-1){if(t!==e.lastIndexOf(`::`))return!1;let n=e.slice(0,t),r=e.slice(t+2),i=n?n.split(`:`):[],a=r?r.split(`:`):[];return i.length+a.length<8&&i.every(Wn)&&a.every(Wn)}let n=e.split(`:`);return n.length===8&&n.every(Wn)},Kn=e=>{if(e===`::1`)return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return Vn(t[1]);let n=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(n){let e=parseInt(n[1],16);return e>=32512&&e<=32767}let r=e.split(`:`);if(r.length===8){for(let e=0;e<7;e++)if(!/^0+$/.test(r[e]))return!1;return/^0*1$/.test(r[7])}return!1},qn=e=>e?zn.has(e)||Vn(e)||Gn(e)?!0:Kn(e):!1,Jn={http:80,https:443,ws:80,wss:443,ftp:21},Yn=e=>{let t=e,n=0;if(t.charAt(0)===`[`){let e=t.indexOf(`]`);if(e!==-1){let r=t.slice(1,e),i=t.slice(e+1);return i.charAt(0)===`:`&&/^\d+$/.test(i.slice(1))&&(n=Number.parseInt(i.slice(1),10)),[r,n]}}let r=t.indexOf(`:`),i=t.lastIndexOf(`:`);return r!==-1&&r===i&&/^\d+$/.test(t.slice(i+1))&&(n=Number.parseInt(t.slice(i+1),10),t=t.slice(0,i)),[t,n]},Xn=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,Zn=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,Qn=e=>{if(typeof e!=`string`||e.indexOf(`:`)===-1)return e;let t=e.match(Xn);if(t)return t[1];let n=e.match(Zn);if(n){let e=parseInt(n[1],16),t=parseInt(n[2],16);return`${e>>8}.${e&255}.${t>>8}.${t&255}`}return e},$n=/^(?:0|[1-9]\d{0,2})$/,er=e=>{let t=e.split(`.`);return t.length===4&&t.every(e=>$n.test(e)&&Number(e)<=255)?t.map(Number):null},tr=/^[0-9a-f]{1,4}$/i,nr=e=>{let t=e.split(`::`);if(t.length>2)return null;let n=t[0]?t[0].split(`:`):[];if(t.length===2){let e=t[1]?t[1].split(`:`):[],r=8-n.length-e.length;if(r<1)return null;n.push(...Array(r).fill(`0`),...e)}return n.length!==8||n.some(e=>!tr.test(e))?null:n.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,t&255]})},rr=e=>typeof e!=`string`||!e?null:e.indexOf(`:`)===-1?er(e):nr(e),ir=e=>{if(!e)return e;e.charAt(0)===`[`&&e.charAt(e.length-1)===`]`&&(e=e.slice(1,-1));let t=Bn(e);if(t.indexOf(`:`)!==-1)try{t=new URL(`http://[`+t+`]/`).hostname.slice(1,-1)}catch{return t}else if(/[\u0080-\uffff]/.test(t)){let e=/^[*.]+/.exec(t),n=e?e[0]:``,r=i.domainToASCII(t.slice(n.length));if(!r)return``;t=n+Bn(r)}let n=Un(t);return n===t?Qn(t):n},ar=e=>{let t=e,n=t.charAt(0)===`[`,r=t.charAt(t.length-1)===`]`,i=t.includes(`[`)||t.includes(`]`);if(n||r){if(!n||!r||(t=t.slice(1,-1),t.indexOf(`:`)===-1||t.includes(`[`)||t.includes(`]`)))return null}else if(i)return null;if(!t||t.charAt(t.length-1)===`.`)return null;let a=t.indexOf(`:`)!==-1;if(a)try{t=new URL(`http://[${t}]/`).hostname.slice(1,-1)}catch{return null}else if(t=Un(t),!er(t))return null;return{normalized:Qn(t),wasIPv6:a}},or=/^(.+)\/(0|[1-9]\d{0,2})$/,sr=e=>{if(e.indexOf(`/`)===-1)return;let t=or.exec(e);if(!t)return null;let n=Number(t[2]),r=ar(t[1]);if(!r)return null;let{normalized:i,wasIPv6:a}=r;if(a&&i.indexOf(`:`)===-1){if(n<96)return null;n-=96}let o=rr(i);return!o||n>o.length*8?null:{bytes:o,prefix:n}},cr=(e,t,n)=>{let r=n>>3;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;let i=n&7;if(i){let n=255<<8-i&255;if((e[r]&n)!==(t[r]&n))return!1}return!0};function lr(e){let t;try{t=new URL(e)}catch{return!1}let n=(process.env.no_proxy||process.env.NO_PROXY||``).toLowerCase();if(!n)return!1;if(n===`*`)return!0;let r=Number.parseInt(t.port,10)||Jn[t.protocol.split(`:`,1)[0]]||0,i=ir(t.hostname.toLowerCase()),a=rr(i);return n.split(/[\s,]+/).some(e=>{if(!e)return!1;if(e===`*`)return!0;let t=sr(e);if(t!==void 0)return t!==null&&!!a&&a.length===t.bytes.length&&cr(a,t.bytes,t.prefix);let[n,o]=Yn(e);return n=ir(n),!n||o&&o!==r?!1:(n.charAt(0)===`*`&&(n=n.slice(1)),n.charAt(0)===`.`?i.endsWith(n):i===n||qn(i)&&qn(n))})}function ur(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function dr(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}let fr=(e,t,n=3)=>{let r=0,i=ur(50,250);return dr(n=>{if(!n||!X.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},pr=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mr=(e,t=X.asap)=>(...n)=>t(()=>e(...n)),hr=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,gr=(e,t,n)=>t+2<n&&hr(e.charCodeAt(t+1))&&hr(e.charCodeAt(t+2)),_r=e=>e<=57?e-48:(e&223)-55,vr=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,yr=e=>e===9||e===10||e===12||e===13||e===32,br=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},xr=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Sr=e=>{if(e.indexOf(`%`)===-1)return xr(e);let t=0,n=0,r=0;for(let i=0,a=e.length;i<a;i++){let o=e.charCodeAt(i);o===37&&gr(e,i,a)&&(o=_r(e.charCodeAt(i+1))*16+_r(e.charCodeAt(i+2)),i+=2),t++,n=r,r=o}return Math.floor((t-(r===61?n===61?2:1:0))*3/4)},Cr=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&gr(e,a,t)&&(o=_r(e.charCodeAt(a+1))*16+_r(e.charCodeAt(a+2)),a+=2),!yr(o)){if(o===61){r++;continue}if(!vr(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?xr(e):br(n)},wr=(e,t,n)=>{if(!e||typeof e!=`string`||!/^data:/i.test(e))return 0;let r=e.indexOf(`,`);if(r<0)return 0;let i=e.slice(5,r),a=e.slice(r+1);if(n.test(i))return t(a);let o=0;for(let e=0,t=a.length;e<t;e++){let n=a.charCodeAt(e);if(n===37&&gr(a,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=a.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o};function Q(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return wr(t===-1?e:e.slice(0,t),Cr,/; *base64[\t\n\f\r ]*$/i)}function Tr(e){return wr(e,Sr,/;base64$/i)}let Er={flush:f.constants.Z_SYNC_FLUSH,finishFlush:f.constants.Z_SYNC_FLUSH},Dr={flush:f.constants.BROTLI_OPERATION_FLUSH,finishFlush:f.constants.BROTLI_OPERATION_FLUSH},Or={flush:f.constants.ZSTD_e_flush,finishFlush:f.constants.ZSTD_e_flush},kr=X.isFunction(f.createBrotliDecompress),Ar=X.isFunction(f.createZstdDecompress),jr=`gzip, compress, deflate`+(kr?`, br`:``),Mr=jr+(Ar?`, zstd`:``),Nr=typeof process<`u`&&process.nextTick?process.nextTick.bind(process):X.asap,{http:Pr,https:Fr}=d,Ir=/https:?/,Lr=Symbol(`axios.http.socketListener`),Rr=Symbol(`axios.http.currentReq`);function zr(e){let t=this[Rr];t&&!t.destroyed&&t.destroy(e)}let Br=Symbol(`axios.http.installedTunnel`),Vr=new Map,Hr=new WeakMap,Ur=new WeakMap,Wr=[`createConnection`,`getName`],Gr=[`addRequest`,`createSocket`,`removeSocket`,`keepSocketAlive`,`reuseSocket`,`_getSession`,`_cacheSession`,`_evictSession`],Kr={22:21,24:5};function qr(e=process.versions&&process.versions.node){if(!e)return!1;let[t,n]=e.split(`.`).map(e=>Number(e));return!Number.isInteger(t)||!Number.isInteger(n)?!1:t>24||Kr[t]!=null&&n>=Kr[t]}function Jr(e,t=process.versions&&process.versions.node){if(!qr(t))return!1;let n=e&&e.options;return!!(n&&X.hasOwnProp(n,`proxyEnv`)&&n.proxyEnv!=null)}function Yr(e,t,n){return Ir.test(e.protocol)?n||s.globalAgent:t||o.globalAgent}function Xr(e,t){if(!process.allowedNodeEnvironmentFlags||!process.allowedNodeEnvironmentFlags.has(`--use-env-proxy`))return e;let n=e||t.globalAgent,r=n&&n.options;if(!(n instanceof t.Agent)||n.protocol!==t.globalAgent.protocol||!r||!X.hasOwnProp(r,`proxyEnv`)||typeof r.proxyEnv!=`object`||r.proxyEnv===null)return e;for(let e of Gr)if(X.isFunction(t.Agent.prototype[e])&&n[e]!==t.Agent.prototype[e])throw new Z(`proxy: false cannot adapt an agent overriding `+e+`; use an agent constructed without proxyEnv`,Z.ERR_BAD_OPTION_VALUE);let i=Ur.get(n);if(!i){i=new t.Agent({...r,proxyEnv:void 0});let e=n.destroy;n.destroy=function(){try{return e.apply(this,arguments)}finally{i.destroy()}},Ur.set(n,i)}for(let e of Wr)i[e]=n[e]===t.Agent.prototype[e]?t.Agent.prototype[e]:h(n[e],n);return i}function Zr(e,t,n){let r=Ir.test(e.protocol),i=Xr(r?n:t,r?s:o);e.agent=i,e.agents&&(e.agents[r?`https`:`http`]=i)}function Qr(e,t){let n=e.protocol+`//`+e.hostname+`:`+(e.port||``)+`#`+(e.auth||``),r=t?Hr.get(t)||Hr.set(t,new Map).get(t):Vr,i=r.get(n);if(i)return i;i=new a(t&&t.options?{...t.options,...e}:e);let o=i.callback;return i.callback=function(e,n){let r=t||s.globalAgent,i=r&&r.options;return o.call(this,e,{...i,...n})},i[Br]=!0,r.set(n,i),i}let $r=Wt.protocols.map(e=>e+`:`),ei=e=>{if(!X.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},ti=(e,[t,n])=>(e.on(`end`,n).on(`error`,n),t),ni=new Ln;function ri(e,t,n){ai(e,n)||(ii(e.headers,new Set([`authorization`,`cookie`])),delete e.auth),e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.auth&&e.beforeRedirects.auth(e),e.beforeRedirects.sensitiveHeaders&&e.beforeRedirects.sensitiveHeaders(e,n),e.beforeRedirects.direct&&e.beforeRedirects.direct(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,n)}function ii(e,t){e&&Object.keys(e).forEach(n=>{t.has(n.toLowerCase())&&delete e[n]})}function ai(e,t){if(!t)return!1;try{return new URL(t.url).origin===new URL(e.href).origin}catch{return!1}}function oi(e,t,n,r,i,o,s=!0){let c=t,l=Yr(e,o,i);if(!c&&c!==!1&&s&&!Jr(l)){let e=vn(n);e&&(lr(n)||(c=new URL(e)))}if(r&&e.headers)for(let t of Object.keys(e.headers))t.toLowerCase()===`proxy-authorization`&&delete e.headers[t];if(r&&e.agent&&e.agent[Br]&&(e.agent=void 0),r&&e.agents&&e.agents.https&&e.agents.https[Br]&&(e.agents.https=i),c){let t=c instanceof URL,r=e=>t||X.hasOwnProp(c,e)?c[e]:void 0,o=r(`username`),s=r(`password`),l=X.hasOwnProp(c,`auth`)?c.auth:void 0;if(o&&(l=(o||``)+`:`+(s||``)),l){let e=typeof l==`object`,t=e&&X.hasOwnProp(l,`username`)?l.username:void 0,n=e&&X.hasOwnProp(l,`password`)?l.password:void 0;if(t||n)l=(t||``)+`:`+(n||``);else if(e)throw new Z(`Invalid proxy authorization`,Z.ERR_BAD_OPTION,{proxy:c})}if(Ir.test(e.protocol)){if(!(i instanceof a)){let t=r(`hostname`)||r(`host`),n=r(`port`),a=r(`protocol`),o=a?a.includes(`:`)?a:`${a}:`:`http:`,s=t&&t.includes(`:`)&&!t.startsWith(`[`)?`[${t}]`:t,c=new URL(`${o}//${s}${n?`:`+n:``}`),u={protocol:c.protocol,hostname:c.hostname.replace(/^\[|\]$/g,``),port:c.port,auth:l&&typeof l==`string`?l:void 0};c.protocol===`https:`&&(u.ALPNProtocols=[`http/1.1`]);let d=Qr(u,i);e.agent=d,e.agents&&(e.agents.https=d)}}else{if(l){let t=Buffer.from(l,`utf8`).toString(`base64`);e.headers[`Proxy-Authorization`]=`Basic `+t}let t=!1;for(let n of Object.keys(e.headers))if(n.toLowerCase()===`host`){t=!0;break}t||(e.headers.host=e.hostname+(e.port?`:`+e.port:``));let i=r(`hostname`)||r(`host`);e.hostname=i,e.host=i,e.port=r(`port`),e.path=n;let a=r(`protocol`);a&&(e.protocol=a.includes(`:`)?a:`${a}:`)}}return e.beforeRedirects.proxy=function(e){oi(e,t,e.href,!0,i,o,s)},!!(c||t!==!1&&s&&Jr(l))}let si=typeof process<`u`&&X.kindOf(process)===`process`,ci=e=>new Promise((t,n)=>{let r,i,a=(e,t)=>{i||(i=!0,r&&r(e,t))},o=e=>{a(e),t(e)},s=e=>{a(e,!0),n(e)};e(o,s,e=>r=e).catch(s)}),li=({address:e,family:t})=>{if(!X.isString(e))throw new Z(`address must be a string`,Z.ERR_BAD_OPTION_VALUE);return{address:e,family:t||(e.indexOf(`.`)<0?6:4)}},ui=(e,t)=>li(X.isObject(e)?e:{address:e,family:t}),di=new WeakMap,fi=e=>{let t=di.get(e);if(t)return t;let n=Rn(e,e=>X.isArray(e)?e:[e]);return t=(e,t,r)=>{n(e,t,(e,n,i)=>{if(e)return r(e);let a;try{a=X.isArray(n)?n.map(e=>ui(e)):[ui(n,i)]}catch(e){return r(e)}t.all?r(e,a):r(e,a[0].address,a[0].family)})},di.set(e,t),t},pi={request(e,t){let n=e.protocol+`//`+e.hostname+`:`+(e.port||(e.protocol===`https:`?443:80)),{http2Options:r,headers:i}=e,a=ni.getSession(n,r),{HTTP2_HEADER_SCHEME:o,HTTP2_HEADER_METHOD:s,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=c.constants,d={[o]:e.protocol.replace(`:`,``),[s]:e.method,[l]:e.path};X.forEach(i,(e,t)=>{t.charAt(0)!==`:`&&(d[t]=e)});let f=a.request(d);return f.once(`response`,e=>{let n=f;e=Object.assign({},e);let r=e[u];delete e[u],n.headers=e,n.statusCode=+r,t(n)}),f}};var mi=si&&function(e){return ci(async function(t,n,r){let i=t=>X.getSafeProp(e,t),a=i(`transitional`)||Ft,c=i(`data`),d=i(`lookup`),h=i(`family`),g=i(`httpVersion`);g===void 0&&(g=1);let _=g,v=i(`http2Options`),y=i(`proxy`),b=i(`httpAgent`),x=i(`httpsAgent`),S=i(`responseType`),C=i(`responseEncoding`),w=i(`socketPath`),T=i(`method`).toUpperCase(),E=i(`maxRedirects`),D=i(`maxBodyLength`),O=i(`maxContentLength`),k=i(`decompress`),A,j=!1,M,N;try{g=+g}catch{throw new Z(`Invalid protocol version: value is not a number`,Z.ERR_BAD_OPTION_VALUE,e)}if(Number.isNaN(g))throw new Z(`Invalid protocol version: '${_}' is not a number`,Z.ERR_BAD_OPTION_VALUE,e);if(g!==1&&g!==2)throw new Z(`Unsupported protocol version '${g}'`,Z.ERR_BAD_OPTION_VALUE,e);let P=g===2;d&&=fi(d);let F=new m.EventEmitter;function I(t){try{F.emit(`abort`,!t||t.type?new an(null,e,M):t)}catch{}}function L(){N&&=(clearTimeout(N),null)}function R(){let t=i(`timeout`),n=t?`timeout of `+t+`ms exceeded`:`timeout exceeded`,r=i(`timeoutErrorMessage`);return r&&(n=r),new Z(n,a.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,M)}F.once(`abort`,n);let z=()=>{L(),e.cancelToken&&e.cancelToken.unsubscribe(I),e.signal&&e.signal.removeEventListener(`abort`,I),F.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(I),e.signal&&(e.signal.aborted?I():e.signal.addEventListener(`abort`,I))),r((e,t)=>{if(A=!0,L(),t){j=!0,z();return}let{data:n}=e;if(n instanceof p.Readable||n instanceof p.Duplex){let e=p.finished(n,()=>{e(),z()})}else z()});let B=hn(i(`baseURL`),i(`url`),i(`allowAbsoluteUrls`),e),V=w?`http://localhost`:Wt.hasBrowserEnv?Wt.origin:void 0,H=new URL(B,V),U=H.protocol||$r[0];if(U===`data:`){if(O>-1&&Tr(String(i(`url`)||B||``))>O)return n(new Z(`maxContentLength size of `+O+` exceeded`,Z.ERR_BAD_RESPONSE,e));let r;if(T!==`GET`)return on(t,n,{status:405,statusText:`method not allowed`,headers:{},config:e});try{r=wn(i(`url`),S===`blob`,{Blob:e.env&&e.env.Blob})}catch(t){throw Z.from(t,Z.ERR_BAD_REQUEST,e)}return O>-1&&(S===`blob`?r.size:r.length)>O?n(new Z(`maxContentLength size of `+O+` exceeded`,Z.ERR_BAD_RESPONSE,e)):(S===`text`?(r=r.toString(C),(!C||C===`utf8`)&&(r=X.stripBOM(r))):S===`stream`&&(r=p.Readable.from(r)),on(t,n,{data:r,status:200,statusText:`OK`,headers:new ct,config:e}))}if($r.indexOf(U)===-1)return n(new Z(`Unsupported protocol `+U,Z.ERR_BAD_REQUEST,e));let W=ct.from(e.headers).normalize();W.set(`User-Agent`,`axios/1.21.0`,!1);let{onUploadProgress:G,onDownloadProgress:ee}=e,K=e.maxRate,q,te;if(X.isSpecCompliantForm(c)){let e=W.getContentType(/boundary=([-_\w\d]{10,70})/i);c=Fn(c,e=>{W.set(e)},{tag:`axios-${xn}-boundary`,boundary:e&&e[1]||void 0})}else if(X.isFormData(c)&&X.isFunction(c.getHeaders)&&c.getHeaders!==Object.prototype.getHeaders){if(En(W,c.getHeaders(),i(`formDataHeaderPolicy`)),!W.hasContentLength())try{let e=await l.promisify(c.getLength).call(c);Number.isFinite(e)&&e>=0&&W.setContentLength(e)}catch{}}else if(X.isBlob(c)||X.isFile(c))c.size&&W.setContentType(c.type||`application/octet-stream`),W.setContentLength(c.size||0),c=p.Readable.from(An(c));else if(c&&!X.isStream(c)){if(!Buffer.isBuffer(c))if(X.isArrayBuffer(c))c=Buffer.from(new Uint8Array(c));else if(X.isString(c))c=Buffer.from(c,`utf-8`);else return n(new Z(`Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream`,Z.ERR_BAD_REQUEST,e));if(W.setContentLength(c.length,!1),D>-1&&c.length>D)return n(new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e))}let ne=X.toFiniteNumber(W.getContentLength());X.isArray(K)?(q=K[0],te=K[1]):q=te=K,c&&(G||q)&&(X.isStream(c)||(c=p.Readable.from(c,{objectMode:!1})),c=p.pipeline([c,new On({maxRate:X.toFiniteNumber(q)})],X.noop),G&&c.on(`progress`,ti(c,pr(ne,fr(mr(G,Nr),!1,3)))));let re,ie=i(`auth`);if(ie){let e=X.getSafeProp(ie,`username`)||``,t=X.getSafeProp(ie,`password`)||``;re=e+`:`+t}if(!re&&(H.username||H.password)){let e=ei(H.username),t=ei(H.password);re=e+`:`+t}re&&W.delete(`authorization`);let ae;try{ae=Ot(H.pathname+H.search,i(`params`),i(`paramsSerializer`)).replace(/^\?/,``)}catch(t){return n(Z.from(t,Z.ERR_BAD_REQUEST,e,null,null,{url:i(`url`),exists:!0}))}W.set(`Accept-Encoding`,X.hasOwnProp(a,`advertiseZstdAcceptEncoding`)&&a.advertiseZstdAcceptEncoding===!0?Mr:jr,!1),P&&d&&(v=Object.assign(Object.create(null),v,{lookup:d}));let J=Object.assign(Object.create(null),{path:ae,method:T,headers:Je(W),agents:{http:b,https:x},auth:re,protocol:U,family:h,beforeRedirect:ri,beforeRedirects:Object.create(null),http2Options:v,createConnection:void 0});!X.isUndefined(d)&&(J.lookup=d);let oe=!1;if(w){if(typeof w!=`string`)return n(new Z(`socketPath must be a string`,Z.ERR_BAD_OPTION_VALUE,e));let t=i(`allowedSocketPaths`);if(t!=null){let r=Array.isArray(t)?t:[t],i=u.resolve(w);if(!r.some(e=>typeof e==`string`&&u.resolve(e)===i))return n(new Z(`socketPath "${w}" is not permitted by allowedSocketPaths`,Z.ERR_BAD_OPTION_VALUE,e))}J.socketPath=w}else J.hostname=H.hostname.startsWith(`[`)?H.hostname.slice(1,-1):H.hostname,J.port=H.port,oe=oi(J,y,U+`//`+H.hostname+(H.port?`:`+H.port:``)+J.path,!1,x,b,!P);let se,ce=!1,Y=Ir.test(J.protocol);if(!P&&y===!1?(Zr(J,b,x),J.beforeRedirects.direct=e=>{Zr(e,b,x)}):J.agent??=Y?x:b,P){if(oe)return n(new Z(`HTTP/2 requests with a proxy are not supported`,Z.ERR_NOT_SUPPORT,e));se=pi}else{let t=i(`transport`);if(t)se=t;else if(E===0)se=Y?s:o,ce=!0;else{J.sensitiveHeaders=[],E&&(J.maxRedirects=E);let t=i(`beforeRedirect`);if(t&&(J.beforeRedirects.config=t),re){let e=H.origin,t=re;J.beforeRedirects.auth=function(n){try{new URL(n.href).origin===e&&(n.auth=t)}catch{}}}let r=i(`sensitiveHeaders`);if(r!=null){if(!X.isArray(r))return n(new Z(`sensitiveHeaders must be an array of strings`,Z.ERR_BAD_OPTION_VALUE,e));let t=new Set;for(let i of r){if(!X.isString(i))return n(new Z(`sensitiveHeaders must be an array of strings`,Z.ERR_BAD_OPTION_VALUE,e));t.add(i.toLowerCase())}t.size&&(J.sensitiveHeaders=Array.from(t),J.beforeRedirects.sensitiveHeaders=function(e,n){ai(e,n)||ii(e.headers,t)})}se=Y?Fr:Pr}}D>-1?J.maxBodyLength=D:J.maxBodyLength=1/0,J.insecureHTTPParser=!!i(`insecureHTTPParser`),M=se.request(J,function(r){if(L(),M.destroyed)return;let i=[r],a=X.toFiniteNumber(r.headers[`content-length`]);if(ee||te){let e=new On({maxRate:X.toFiniteNumber(te)});ee&&e.on(`progress`,ti(e,pr(a,fr(mr(ee,Nr),!0,3)))),i.push(e)}let o=r,s=r.req||M;if(k!==!1&&r.headers[`content-encoding`])switch((T===`HEAD`||r.statusCode===204)&&delete r.headers[`content-encoding`],(r.headers[`content-encoding`]||``).toLowerCase()){case`gzip`:case`x-gzip`:case`compress`:case`x-compress`:i.push(f.createUnzip(Er)),delete r.headers[`content-encoding`];break;case`deflate`:i.push(new In),i.push(f.createUnzip(Er)),delete r.headers[`content-encoding`];break;case`br`:kr&&(i.push(f.createBrotliDecompress(Dr)),delete r.headers[`content-encoding`]);break;case`zstd`:Ar&&(i.push(f.createZstdDecompress(Or)),delete r.headers[`content-encoding`]);break}o=i.length>1?p.pipeline(i,X.noop):i[0];let c={status:r.statusCode,statusText:r.statusMessage,headers:new ct(r.headers),config:e,request:s};if(S===`stream`){if(O>-1){let t=O,n=o;async function*r(){let r=0;for await(let i of n){if(r+=i.length,r>t)throw new Z(`maxContentLength size of `+t+` exceeded`,Z.ERR_BAD_RESPONSE,e,s);yield i}}o=p.Readable.from(r(),{objectMode:!1})}c.data=o,on(t,n,c)}else{let r=[],i=0;o.on(`data`,function(t){r.push(t),i+=t.length,O>-1&&i>O&&(j=!0,o.destroy(),I(new Z(`maxContentLength size of `+O+` exceeded`,Z.ERR_BAD_RESPONSE,e,s)))}),o.on(`aborted`,function(){if(j)return;let t=new Z(`stream has been aborted`,Z.ERR_BAD_RESPONSE,e,s,c);o.destroy(t),n(t)}),o.on(`error`,function(t){j||n(Z.from(t,null,e,s,c))}),o.on(`end`,function(){try{let e=r.length===1?r[0]:Buffer.concat(r);S!==`arraybuffer`&&(e=e.toString(C),(!C||C===`utf8`)&&(e=X.stripBOM(e))),c.data=e}catch(t){return n(Z.from(t,null,e,c.request,c))}on(t,n,c)})}F.once(`abort`,e=>{o.destroyed||(o.emit(`error`,e),o.destroy())})}),F.once(`abort`,e=>{M.close?M.close():M.destroy(e)}),M.on(`error`,function(t){n(Z.from(t,null,e,M))});let le=new Set;if(M.on(`socket`,function(e){typeof e.setKeepAlive==`function`&&e.setKeepAlive(!0,1e3*60),e[Lr]||(e.on(`error`,zr),e[Lr]=!0),e[Rr]=M,le.add(e)}),M.once(`close`,function(){L();for(let e of le)e[Rr]===M&&(e[Rr]=null);le.clear()}),i(`timeout`)){let t=parseInt(i(`timeout`),10);if(Number.isNaN(t)){I(new Z("error trying to parse `config.timeout` to int",Z.ERR_BAD_OPTION_VALUE,e,M));return}let n=function(){A||I(R())};ce&&t>0&&(N=setTimeout(n,t)),M.setTimeout(t,n)}else M.setTimeout(0);if(X.isStream(c)){let t=!1,n=!1;c.on(`end`,()=>{t=!0}),c.once(`error`,e=>{n=!0,M.destroy(e)}),c.on(`close`,()=>{!t&&!n&&I(new an(`Request stream has been aborted`,e,M))});let r=c;if(D>-1){let t=D,n=0;r=p.pipeline([c,new p.Transform({transform(r,i,a){if(n+=r.length,n>t)return a(new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e,M));a(null,r)}})],X.noop),r.on(`error`,e=>{M.destroyed||M.destroy(e)})}r.pipe(M)}else c&&M.write(c),M.end()})};let hi=e=>{try{return decodeURIComponent(e)}catch{return e}};var gi=Wt.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&s.push(`path=${r}`),X.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),X.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie;if(!t)return null;let n=t.split(`;`);for(let t=0;t<n.length;t++){let r=n[t].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return hi(r.slice(i+1))}return null},async readAsync(e){try{let t=typeof window<`u`&&window.cookieStore;if(t&&X.isFunction(t.get)){let n=await t.get(e);return n?hi(n.value):null}}catch{}return this.read(e)},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},async readAsync(){return null},remove(){}},_i=Wt.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||Wt.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(Wt.origin)):()=>!0;function vi(e){let t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){let{value:e,done:i}=t.pop();if(!X.isPlainObject(e)&&!X.isArray(e))continue;if(i){n.delete(e);continue}if(n.has(e))throw new Z(`Circular reference detected in params`,Z.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});let a=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{let n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&a.push(t)}),a.forEach(n=>{if(n===`__proto__`||n===`constructor`||n===`prototype`){let r=Object.getOwnPropertyDescriptor(e,n);r&&X.hasOwnProp(r,`value`)&&t.push({value:r.value})}else t.push({value:e[n]})})}}let yi=e=>e instanceof ct?{...e}:e,bi=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{let n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function xi(e,t){let n=[],r=new WeakMap,i={};function a(e,t){if(!X.isPlainObject(t))return X.isArray(t)?t.slice():t;let a=X.isPlainObject(e)?e:i,o=r.get(t);if(o||(o=new WeakMap,r.set(t,o)),o.has(a))return o.get(a);let s={};return o.set(a,s),n.push({base:a,source:t,result:s}),s}let o=X.isUndefined(t)?a(void 0,e):a(e,t);for(;n.length;){let{base:e,source:t,result:r}=n.pop(),i=new Set(bi(e)),o=new Set(bi(t));new Set([...i,...o]).forEach(n=>{if(n===`__proto__`||n===`constructor`||n===`prototype`)return;let s=o.has(n),c=s?t[n]:void 0,l=(!s||X.isPlainObject(c))&&i.has(n)?e[n]:void 0;r[n]=s?a(l,c):a(void 0,l)})}return vi(o),o}function Si(e,t,n,r){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:r},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function Ci(e,t,n,r){if(!X.isUndefined(t))return Si(e,t,n,r);if(!X.isUndefined(e))return Si(void 0,e,n,r)}function wi(e,t){if(!X.isUndefined(t))return Si(void 0,t)}function Ti(e,t){if(!X.isUndefined(t))return Si(void 0,t);if(!X.isUndefined(e))return Si(void 0,e)}function Ei(e,t,n){let r=X.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!X.isUndefined(r))if(X.isPlainObject(r)){if(X.hasOwnProp(r,n))return r[n]}else return;let i=X.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(X.isPlainObject(i)&&X.hasOwnProp(i,n))return i[n]}function Di(e,t,n,r,i){if(X.hasOwnProp(i,n))return Si(e,t);if(X.hasOwnProp(r,n))return Si(void 0,e)}function Oi(e,t,n){return Ci(yi(e),yi(t),n,!0)}let ki=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),Ai={url:wi,method:wi,data:wi,baseURL:Ti,transformRequest:Ti,transformResponse:Ti,params:xi,paramsSerializer:Ti,timeout:Ti,timeoutErrorMessage:Ti,withCredentials:Ti,withXSRFToken:Ti,adapter:Ti,responseType:Ti,xsrfCookieName:Ti,xsrfHeaderName:Ti,onUploadProgress:Ti,onDownloadProgress:Ti,decompress:Ti,maxContentLength:Ti,maxBodyLength:Ti,beforeRedirect:Ti,transport:Ti,httpAgent:Ti,httpsAgent:Ti,cancelToken:Ti,socketPath:Ti,allowedSocketPaths:Ti,responseEncoding:Ti,validateStatus:Di,headers:Oi};function ji(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",ki);let r=bi({...e,...t});for(let i=0,a=r.length;i<a;i++){let a=r[i];if(a===`__proto__`||a===`constructor`||a===`prototype`)continue;let o=X.hasOwnProp(Ai,a)?Ai[a]:Ci,s=X.hasOwnProp(e,a)?e[a]:void 0,c=X.hasOwnProp(t,a)?t[a]:void 0,l=o===Di?o(s,c,a,e,t):o(s,c,a);X.isUndefined(l)&&o!==Di||(n[a]=l)}return X.hasOwnProp(t,`validateStatus`)&&X.isUndefined(t.validateStatus)&&Ei(e,t,`validateStatusUndefinedResolves`)===!1&&(X.hasOwnProp(e,`validateStatus`)?n.validateStatus=Si(void 0,e.validateStatus):delete n.validateStatus),n}let Mi=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Ni=e=>gi.read(e);function Pi(e,t=Ni){let n=ji({},e),r=e=>X.hasOwnProp(n,e)?n[e]:void 0,i=r(`data`),a=r(`withXSRFToken`),o=r(`xsrfHeaderName`),s=r(`xsrfCookieName`),c=r(`headers`),l=r(`auth`),u=r(`baseURL`),d=r(`allowAbsoluteUrls`),f=r(`url`);if(n.headers=c=ct.from(c),n.url=Ot(hn(u,f,d,n),r(`params`),r(`paramsSerializer`)),l){let t=X.getSafeProp(l,`username`)||``,n=X.getSafeProp(l,`password`)||``,i=r(`transitional`),a=i&&X.hasOwnProp(i,`encodeBasicAuthUsername`)&&i.encodeBasicAuthUsername===!0;try{c.set(`Authorization`,`Basic `+btoa((a?Mi(t):t)+`:`+(n?Mi(n):``)))}catch(t){throw Z.from(t,Z.ERR_BAD_OPTION_VALUE,e)}}if(X.isFormData(i)){let e=X.getSafeProp(i,`getHeaders`);Wt.hasStandardBrowserEnv||Wt.hasStandardBrowserWebWorkerEnv||X.isReactNative(i)?c.setContentType(void 0):X.isFunction(e)&&En(c,e.call(i),r(`formDataHeaderPolicy`))}if(Wt.hasStandardBrowserEnv&&(X.isFunction(a)&&(a=a(n)),a===!0||a==null&&_i(n.url))){let e=o&&s&&t(s);e&&c.set(o,e)}return n}var Fi=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r;try{let e=Wt.hasStandardBrowserEnv&&typeof window<`u`&&window.cookieStore;r=e&&X.isFunction(e.get)}catch{}let i,a=Pi(e,r?e=>(i=e,null):void 0),o=a.data,s=ct.from(a.headers).normalize(),{responseType:c,onUploadProgress:l,onDownloadProgress:u}=a,d,f,p,m,h,g,_;function v(){clearTimeout(f);try{h&&h()}catch(e){setTimeout(()=>{throw e})}try{g&&g()}catch(e){setTimeout(()=>{throw e})}y&&(m&&y.removeEventListener(`progress`,m),y.upload&&(p&&y.upload.removeEventListener(`progress`,p),h&&y.upload.removeEventListener(`loadend`,h))),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener(`abort`,d)}let y=new XMLHttpRequest;y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout;function b(r){if(!y)return;if(y.status===0&&(Sn(un(a.url))||Sn(Wt.origin))!==`file`&&!(y.responseURL&&y.responseURL.startsWith(`file:`))){n(new Z(`Request aborted`,Z.ECONNABORTED,e,y)),v(),y=null;return}try{r?_&&_(r):g&&g()}catch(e){setTimeout(()=>{throw e})}if(!y)return;let i=ct.from(`getAllResponseHeaders`in y&&y.getAllResponseHeaders());on(function(e){t(e),v()},function(e){n(e),v()},{data:!c||c===`text`||c===`json`?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:i,config:e,request:y}),y=null}if(`onloadend`in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith(`file:`))||setTimeout(b)},y.onabort=function(){y&&=(n(new Z(`Request aborted`,Z.ECONNABORTED,e,y)),v(),null)},y.onerror=function(t){let r=new Z(t&&t.message?t.message:`Network Error`,Z.ERR_NETWORK,e,y);r.event=t||null,n(r),v(),y=null},y.ontimeout=function(){if(!y)return;let t=a.timeout?`timeout of `+a.timeout+`ms exceeded`:`timeout exceeded`,r=a.transitional||Ft;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new Z(t,r.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,y)),v(),y=null},o===void 0&&s.setContentType(null),X.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),c&&c!==`json`&&(y.responseType=a.responseType),u&&([m,g,_]=fr(u,!0),y.addEventListener(`progress`,m)),l&&y.upload&&([p,h]=fr(l),y.upload.addEventListener(`progress`,p),y.upload.addEventListener(`loadend`,h)),a.cancelToken||a.signal){if(d=t=>{if(!y)return;n(!t||t.type?new an(null,e,y):t);let r=y;v(),y=null,r.abort()},a.cancelToken&&a.cancelToken.subscribe(d),!y)return;a.signal&&(a.signal.aborted?d():a.signal.addEventListener(`abort`,d))}if(!y)return;let x=Sn(a.url);if(x&&!Wt.protocols.includes(x)){n(new Z(`Unsupported protocol `+x+`:`,Z.ERR_BAD_REQUEST,e)),v();return}let S=()=>{y&&(`setRequestHeader`in y&&X.forEach(Je(s),function(e,t){y.setRequestHeader(t,e)}),y.send(o||null))};if(i){let t=typeof performance<`u`&&X.isFunction(performance.now)?()=>performance.now():Date.now,r=y.timeout>0?t()+Number(y.timeout):void 0,o=()=>{if(!y)return;let e=y;e.ontimeout(),e.abort()};if(r!==void 0){let e=()=>{let n=r-t();n>0?f=setTimeout(e,Math.min(n,2147483647)):o()};e()}gi.readAsync(i).then(e=>{if(y){if(r!==void 0&&t()>=r){o();return}if(e){let t=X.hasOwnProp(a,`xsrfHeaderName`)&&a.xsrfHeaderName;s.set(t,e)}S()}}).catch(t=>{y&&=(n(Z.from(t,null,e,y)),v(),null)})}else S()})};let Ii=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Z?t:new an(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{let t=X.getSafeProp(e,`unsubscribe`);X.isFunction(t)?t.call(e,i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>X.asap(o),s},Li=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Ri=async function*(e,t){for await(let n of zi(e))yield*Li(n,t)},zi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Bi=(e,t,n,r)=>{let i=Ri(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Vi=e=>String(e).replace(/\r\n|\r|\n/g,`\r
37
+ `),Hi=e=>String(e).replace(/[\r\n"]/g,e=>e===`\r`?`%0D`:e===`
38
+ `?`%0A`:`%22`),Ui=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t&&(i===13||i===10)?(i===13&&e.charCodeAt(r+1)===10&&r++,n+=2):i<128?n++:i<2048?n+=2:i>=55296&&i<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3}return n};var Wi=class extends TypeError{constructor(e,t){super(e),this.name=`FormDataError`,this.reason=t}};function Gi(e,t,n,r,i){if(!X.isFunction(t))throw new Wi(`Blob is not supported`,`blob`);if(!X.isString(i)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(i)||/ $/.test(i))throw new Wi(`Invalid multipart boundary`,`boundary`);let a=`--`+i+`--\r
39
+ `,o=a.length,s=[],c=e=>{if(o+e>n)throw r()};c(0);for(let[t,n]of e){let e=X.isString(n),r=e?Ui(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new Wi(`Unsupported FormData part size`,`part`);c(r+Ui(t,!0)+(!e&&n.name?Ui(n.name,!1):0)+(!e&&n.type?Ui(n.type,!1):0));let a=`--`+i+`\r
40
+ Content-Disposition: form-data; name="`+Hi(Vi(t))+`"`;e||(a+=`; filename="`+Hi(X.isString(n.name)?n.name:`blob`)+`"\r
41
+ Content-Type: `+String(n.type||`application/octet-stream`).replace(/[\r\n]/g,``)),a+=`\r
42
+ \r
43
+ `;let l=Ui(a,!1)+r+2;c(l),o+=l,s.push({header:a,value:n,isString:e})}let l=[];for(let e of s)l.push(e.header,e.isString?Vi(e.value):e.value,`\r
44
+ `);return l.push(a),new t(l,{type:`multipart/form-data; boundary=`+i})}function Ki(e,t,n,r,i){if(!X.isFunction(t))throw new Z(`Blob is not supported`,Z.ERR_NOT_SUPPORT);if(i===void 0)if(X.isFunction(Wt.generateString))i=`axios-`+Wt.generateString(36,`0123456789abcdef`);else{let e=X.global.crypto;if(!e||!X.isFunction(e.getRandomValues))throw new Z(`Random byte generation is not supported`,Z.ERR_NOT_SUPPORT);let t=new Uint8Array(18);e.getRandomValues(t),i=`axios-`+Array.from(t,e=>(`0`+e.toString(16)).slice(-2)).join(``)}try{return Gi(e,t,n,r,i)}catch(e){if(e instanceof Wi){let t=e.reason===`boundary`?Z.ERR_BAD_OPTION_VALUE:Z.ERR_BAD_REQUEST;throw new Z(e.message,t)}throw e}}let qi=64*1024,Ji={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:Yi}=X,Xi=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Zi=e=>{if(!X.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Qi=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$i=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},ea=e=>{let t=X.global!==void 0&&X.global!==null?X.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=X.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);let i=X.hasOwnProp(e,`fetch`)?e.fetch:void 0,{Request:a,Response:o,Blob:s}=e,c=i?Yi(i):typeof fetch==`function`,l=Yi(a),u=Yi(o);if(!c)return!1;let d=c&&Yi(n),f=c&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),p=l&&d&&Qi(()=>{let e=!1,t=new a(Wt.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),m=u&&d&&Qi(()=>X.isReadableStream(new o(``).body)),h=Object.assign(Object.create(null),Ji);l&&!Qi(()=>new a(Wt.origin,h))&&(delete h.cache,Qi(()=>new a(Wt.origin,h))||(h.cache=Ji.cache));let g={stream:m&&(e=>e.body)};c&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})});let _=async e=>{if(e==null)return 0;if(X.isBlob(e))return e.size;if(X.isArrayBufferView(e)||X.isArrayBuffer(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e+=``),X.isString(e))return(await f(e)).byteLength},v=async(e,t)=>X.toFiniteNumber(e.getContentLength())??_(t);return async e=>{let{url:t,method:n,data:c,signal:u,cancelToken:f,timeout:y,onDownloadProgress:b,onUploadProgress:x,responseType:S,headers:C,withCredentials:w=`same-origin`,fetchOptions:T,maxContentLength:E,maxBodyLength:D,maxRedirects:O}=Pi(e),k=X.isNumber(E)&&E>-1,A=X.isNumber(D)&&D>-1,j=t=>X.hasOwnProp(e,t)?e[t]:void 0,M=i||fetch;S=S?(S+``).toLowerCase():`text`;let N=Ii([u,f&&f.toAbortSignal()],y),P=null,F=N&&N.unsubscribe&&(()=>{N.unsubscribe()}),I,L=null,R=null,z=()=>new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e,P);try{let i,u=j(`auth`);u&&(i={username:X.getSafeProp(u,`username`)||``,password:X.getSafeProp(u,`password`)||``});let f;if($i(t)&&(f=new URL(t,Wt.origin),!i&&(f.username||f.password)&&(i={username:Zi(f.username),password:Zi(f.password)}),(f.username||f.password)&&(f.username=``,f.password=``,t=f.href)),i&&(C.delete(`authorization`),C.set(`Authorization`,`Basic `+btoa(Xi((i.username||``)+`:`+(i.password||``))))),k&&f&&f.protocol===`data:`&&Q(f.href)>E)throw new Z(`maxContentLength size of `+E+` exceeded`,Z.ERR_BAD_RESPONSE,e,P);let y=X.isSpecCompliantForm(c)&&ct.from(j(`headers`)).getContentType(),B;if(X.isString(y)&&/^multipart\/form-data(?:\s*;|$)/i.test(y.trim())){let e=ct.parseParameters(y);X.hasOwnProp(e,`boundary`)&&(B=e.boundary)}if(X.isSpecCompliantForm(c)&&n!==`get`&&n!==`head`&&(A||x&&p||B!==void 0)&&(c=Ki(c,s,A?D:1/0,z,B),C.setContentType(B===void 0?c.type:y),I=c.size),A&&n!==`get`&&n!==`head`){let e=await _(c);if(typeof e==`number`&&isFinite(e)&&(I=e,e>D))throw z()}let V=A&&(X.isReadableStream(c)||X.isStream(c)),H=(e,t,n)=>Bi(e,qi,e=>{if(A&&e>D)throw L=z();t&&t(e)},n);if(p&&n!==`get`&&n!==`head`&&(x||V)){if(I??=await v(C,c),I!==0||V){let e=new a(t,{method:`POST`,body:c,duplex:`half`}),n;if(X.isFormData(c)&&(n=e.headers.get(`content-type`))&&C.setContentType(n),e.body){let[t,n]=x&&pr(I,fr(mr(x)))||[];c=H(e.body,t,n)}}}else if(V&&!l&&d&&n!==`get`&&n!==`head`)c=H(c);else if(V&&l&&!p&&n!==`get`&&n!==`head`)throw new Z(`Stream request bodies are not supported by the current fetch implementation`,Z.ERR_NOT_SUPPORT,e,P);X.isString(w)||(w=w?`include`:`omit`);let U=l&&`credentials`in a.prototype;if(X.isFormData(c)){let e=C.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&C.delete(`content-type`)}C.set(`User-Agent`,`axios/1.21.0`,!1);let W=T==null?T:Object.assign(Object.create(null),T);W&&(delete W.body,delete W.headers,delete W.method,delete W.signal,delete W.duplex,delete W.credentials);let G=Object.assign(Object.create(null),W,{signal:N,method:n.toUpperCase(),headers:Je(C.normalize()),body:c,duplex:`half`,credentials:U?w:void 0});l&&(X.forEach(h,(e,t)=>{G[t]===void 0&&(G[t]=e)}),G.signal===void 0&&(G.signal=null),G.body===void 0&&(G.body=null)),O===0&&(G.redirect=`manual`,W&&(W.redirect=`manual`)),P=l&&new a(t,G);let ee=await(l?M(P,W):M(t,G)),K=ct.from(ee.headers);if(k){let t=X.toFiniteNumber(K.getContentLength());if(t!=null&&t>E)throw new Z(`maxContentLength size of `+E+` exceeded`,Z.ERR_BAD_RESPONSE,e,P)}let q=m&&(S===`stream`||S===`response`);if(m&&ee.body&&(b||k||q&&F)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=ee[e]});let n=X.toFiniteNumber(K.getContentLength()),[r,i]=b&&pr(n,fr(mr(b),!0))||[],a=0;ee=new o(Bi(ee.body,qi,t=>{if(k&&(a=t,a>E))throw R=new Z(`maxContentLength size of `+E+` exceeded`,Z.ERR_BAD_RESPONSE,e,P);r&&r(t)},()=>{i&&i(),F&&F()}),t)}S||=`text`;let te=await g[X.findKey(g,S)||`text`](ee,e);if(k&&!m&&!q){let t;if(te!=null&&(typeof te.byteLength==`number`?t=te.byteLength:typeof te.size==`number`?t=te.size:typeof te==`string`&&(t=typeof r==`function`?new r().encode(te).byteLength:te.length)),typeof t==`number`&&t>E)throw new Z(`maxContentLength size of `+E+` exceeded`,Z.ERR_BAD_RESPONSE,e,P)}return!q&&F&&F(),await new Promise((t,n)=>{on(t,n,{data:te,headers:ct.from(ee.headers),status:ee.status,statusText:ee.statusText,config:e,request:P})})}catch(t){if(F&&F(),N&&N.aborted&&N.reason instanceof Z){let n=N.reason;throw n.config=e,P&&(n.request=P),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(L)throw P&&!L.request&&(L.request=P),L;if(R)throw R;if(t instanceof Z)throw P&&!t.request&&(t.request=P),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new Z(`Network Error`,Z.ERR_NETWORK,e,P,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw Z.from(t,t&&t.code,e,P,t&&t.response)}}},ta=new Map,na=e=>{let t=Object.create(null),n=e&&X.hasOwnProp(e,`env`)&&e.env;[`fetch`,`Request`,`Response`,`Blob`].forEach(e=>{n&&X.hasOwnProp(n,e)&&(t[e]=n[e])});let{fetch:r,Request:i,Response:a,Blob:o}=t,s=[i,a,r,o],c=s.length,l,u,d=ta;for(;c--;)l=s[c],u=d.get(l),u===void 0&&d.set(l,u=c?new Map:ea(t)),d=u;return u};na();let ra={http:mi,xhr:Fi,fetch:{get:na}};X.forEach(ra,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ia=e=>`- ${e}`,aa=e=>X.isFunction(e)||e===null||e===!1;function oa(e,t){e=X.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!aa(r)&&(i=ra[(n=String(r)).toLowerCase()],i===void 0))throw new Z(`Unknown adapter '${n}'`);if(i&&(X.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new Z(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
45
+ `+e.map(ia).join(`
46
+ `):` `+ia(e[0]):`as no adapter specified`),Z.ERR_NOT_SUPPORT)}return i}var sa={getAdapter:oa,adapters:ra};function ca(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new an(null,e)}function la(e){return Math.max(0,Date.now()-e)}function ua(e){let t=X.toSafeFlatObject(e);ca(t),t.headers=ct.from(X.getSafeProp(t,`headers`)),t.data=nn.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1);let n=sa.getAdapter(t.adapter||tn.adapter,t),r=Date.now();return n(t).then(function(e){ca(t),e.duration=la(r),t.response=e;try{e.data=nn.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=ct.from(e.headers),e},function(e){if(!rn(e)&&(ca(t),e&&e.response)){e.response.duration=la(r),t.response=e.response;try{e.response.data=nn.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=ct.from(e.response.headers)}return Promise.reject(e)})}let da={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{da[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});let fa={};da.transitional=function(e,t,n){function r(e,t){return`[Axios v1.21.0] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new Z(r(i,` has been removed`+(t?` in `+t:``)),Z.ERR_DEPRECATED);return t&&!fa[i]&&(fa[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},da.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function pa(e,t,n){if(typeof e!=`object`||!e)throw new Z(`options must be an object`,Z.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new Z(`option `+a+` must be `+n,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z(`Unknown option `+a,Z.ERR_BAD_OPTION)}}var ma={assertOptions:pa,validators:da};let ha=ma.validators,ga=e=>{if(e==null||X.isPlainObject(e)||e instanceof ct)return!0;try{return X.isObject(e)&&X.getSafeProp(e,Symbol.toStringTag)===`AxiosHeaders`&&[`toJSON`,`set`,`get`,`has`,`delete`,`clear`,`normalize`,`concat`,`toString`,Symbol.iterator].every(t=>X.isFunction(X.getSafeProp(e,t)))}catch{return!1}};var _a=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Pt,response:new Pt}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
47
+ `);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
48
+ `),n=t===-1?-1:r.indexOf(`
49
+ `,t+1),i=n===-1?r:r.slice(n+1),a=String(e.stack),o=ht(e,a),s=o===-1?a:a.slice(0,o),c=o===-1?``:a.slice(o);s.endsWith(i)||(e.stack=s+`
50
+ `+r+c)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=ji(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ma.assertOptions(n,{silentJSONParsing:ha.transitional(ha.boolean),forcedJSONParsing:ha.transitional(ha.boolean),clarifyTimeoutError:ha.transitional(ha.boolean),legacyInterceptorReqResOrdering:ha.transitional(ha.boolean),advertiseZstdAcceptEncoding:ha.transitional(ha.boolean),validateStatusUndefinedResolves:ha.transitional(ha.boolean),encodeBasicAuthUsername:ha.transitional(ha.boolean)},!1),r!=null&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:ma.assertOptions(r,{encode:ha.function,serialize:ha.function},!0)),t.allowAbsoluteUrls!==void 0||(X.hasOwnProp(this.defaults,`allowAbsoluteUrls`)&&this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ma.assertOptions(t,{baseUrl:ha.spelling(`baseURL`),withXsrfToken:ha.spelling(`withXSRFToken`)},!0),t.method=(X.getSafeProp(t,`method`)||X.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=X.getSafeProp(i,`common`),o=X.getSafeProp(i,t.method),s=i&&X.merge(ga(a)?a:void 0,ga(o)?o:void 0);i&&X.forEach(Qt.concat(`common`),e=>{ga(X.getSafeProp(i,e))&&delete i[e]}),t.headers=ct.concat(s,i);let c=[],l=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;l&&=e.synchronous;let n=t.transitional||Ft;n&&n.legacyInterceptorReqResOrdering?c.unshift(e.fulfilled,e.rejected):c.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d,f=0,p;if(!l){let e=[ua.bind(this),void 0];for(e.unshift(...c),e.push(...u),p=e.length,d=Promise.resolve(t);f<p;)d=d.then(e[f++],e[f++]);return d}p=c.length;let m=t;for(;f<p;){let e=c[f++],t=c[f++];try{m=e?e(m):m}catch(e){if(!t){d=Promise.reject(e);break}try{let n=t.call(this,e);X.isThenable(n)&&(d=Promise.resolve(n).then(()=>ua.call(this,m)))}catch(e){d=Promise.reject(e)}break}}if(!d)try{d=ua.call(this,m)}catch(e){d=Promise.reject(e)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(e){return e=ji(this.defaults,e),Ot(hn(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};X.forEach([`delete`,`get`,`head`,`options`],function(e){_a.prototype[e]=async function(t,n){return this.request(ji(n||{},{method:e,url:t,data:n&&X.hasOwnProp(n,`data`)?n.data:void 0}))}}),X.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return async function(n,r,i){return this.request(ji(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}_a.prototype[e]=t(),e!==`query`&&(_a.prototype[e+`Form`]=t(!0))});var va=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new an(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function ya(e){return function(t){return e.apply(null,t)}}function ba(e){return X.isObject(e)&&e.isAxiosError===!0}let xa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xa).forEach(([e,t])=>{xa[t]===void 0&&(xa[t]=e)});function Sa(e){let t=new _a(e),n=h(_a.prototype.request,t);return X.extend(n,_a.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Sa(ji(e,t))},n}let Ca=Sa(tn);Ca.Axios=_a,Ca.CanceledError=an,Ca.CancelToken=va,Ca.isCancel=rn,Ca.VERSION=xn,Ca.toFormData=Ct,Ca.AxiosError=Z,Ca.Cancel=Ca.CanceledError,Ca.all=function(e){return Promise.all(e)},Ca.spread=ya,Ca.isAxiosError=ba,Ca.mergeConfig=ji,Ca.AxiosHeaders=ct,Ca.formToJSON=e=>Zt(X.isHTMLForm(e)?new FormData(e):e),Ca.getAdapter=sa.getAdapter,Ca.HttpStatusCode=xa,Ca.default=Ca,t.exports=Ca})),Ru=s(((e,t)=>{var n=de(),r=fe(),i=xn(),a=je(),o=De(),s=Me(),c=Object.prototype.hasOwnProperty;t.exports=i(function(e,t){if(o(t)||a(t)){r(t,s(t),e);return}for(var i in t)c.call(t,i)&&n(e,i,t[i])})})),zu=s(((e,t)=>{var n=On();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),Bu=s(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),Vu=s(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),Hu=s(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),Uu=s(((e,t)=>{var n=Vu(),r=Bu(),i=Hu();function a(e){return r(e)?i(e):n(e)}t.exports=a})),Wu=s(((e,t)=>{var n=zu(),r=Bu(),i=Uu(),a=Ut();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),Gu=s(((e,t)=>{t.exports=Wu()(`toUpperCase`)})),Ku=s(((e,t)=>{var n=Ut(),r=Gu();function i(e){return r(n(e).toLowerCase())}t.exports=i})),qu=s(((e,t)=>{function n(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}t.exports=n})),Ju=s(((e,t)=>{function n(e){return function(t){return e?.[t]}}t.exports=n})),Yu=s(((e,t)=>{t.exports=Ju()({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`})})),Xu=s(((e,t)=>{var n=Yu(),r=Ut(),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function o(e){return e=r(e),e&&e.replace(i,n).replace(a,``)}t.exports=o})),Zu=s(((e,t)=>{var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function r(e){return e.match(n)||[]}t.exports=r})),Qu=s(((e,t)=>{var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function r(e){return n.test(e)}t.exports=r})),$u=s(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\u2700-\\u27bf`,a=`a-z\\xdf-\\xf6\\xf8-\\xff`,o=`\\xac\\xb1\\xd7\\xf7`,s=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,c=`\\u2000-\\u206f`,l=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,u=`A-Z\\xc0-\\xd6\\xd8-\\xde`,d=`\\ufe0e\\ufe0f`,f=o+s+c+l,p=`['’]`,m=`[`+f+`]`,h=`[`+r+`]`,g=`\\d+`,_=`[`+i+`]`,v=`[`+a+`]`,y=`[^`+n+f+g+i+a+u+`]`,b=`(?:`+h+`|\\ud83c[\\udffb-\\udfff])`,x=`[^`+n+`]`,S=`(?:\\ud83c[\\udde6-\\uddff]){2}`,C=`[\\ud800-\\udbff][\\udc00-\\udfff]`,w=`[`+u+`]`,T=`\\u200d`,E=`(?:`+v+`|`+y+`)`,D=`(?:`+w+`|`+y+`)`,O=`(?:`+p+`(?:d|ll|m|re|s|t|ve))?`,k=`(?:`+p+`(?:D|LL|M|RE|S|T|VE))?`,A=b+`?`,j=`[`+d+`]?`,M=`(?:`+T+`(?:`+[x,S,C].join(`|`)+`)`+j+A+`)*`,N=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,P=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,F=j+A+M,I=`(?:`+[_,S,C].join(`|`)+`)`+F,L=RegExp([w+`?`+v+`+`+O+`(?=`+[m,w,`$`].join(`|`)+`)`,D+`+`+k+`(?=`+[m,w+E,`$`].join(`|`)+`)`,w+`?`+E+`+`+O,w+`+`+k,P,N,g,I].join(`|`),`g`);function R(e){return e.match(L)||[]}t.exports=R})),ed=s(((e,t)=>{var n=Zu(),r=Qu(),i=Ut(),a=$u();function o(e,t,o){return e=i(e),t=o?void 0:t,t===void 0?r(e)?a(e):n(e):e.match(t)||[]}t.exports=o})),td=s(((e,t)=>{var n=qu(),r=Xu(),i=ed(),a=RegExp(`['’]`,`g`);function o(e){return function(t){return n(i(r(t).replace(a,``)),e,``)}}t.exports=o})),nd=s(((e,t)=>{var n=Ku();t.exports=td()(function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)})})),rd=s(((e,t)=>{var n=jr(),r=Xt();function i(e,t){return n(e,t,function(t,n){return r(e,n)})}t.exports=i})),id=s(((e,t)=>{var n=rd();t.exports=Fn()(function(e,t){return e==null?{}:n(e,t)})})),ad=s((e=>{let t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p})),od=s((e=>{var t=ad();let n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e<r.items.length;++e){let t=o(e,r.items[e],a,s);if(typeof t==`number`)e=t-1;else if(t===n)return n;else t===i&&(r.items.splice(e,1),--e)}}else if(t.isPair(r)){s=Object.freeze(s.concat(r));let e=o(`key`,r.key,a,s);if(e===n)return n;e===i&&(r.key=null);let t=o(`value`,r.value,a,s);if(t===n)return n;t===i&&(r.value=null)}}return c}async function s(e,n){let r=l(n);t.isDocument(e)?await c(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):await c(null,e,r,Object.freeze([]))}s.BREAK=n,s.SKIP=r,s.REMOVE=i;async function c(e,r,a,o){let s=await u(e,r,a,o);if(t.isNode(s)||t.isPair(s))return d(e,o,s),c(e,s,a,o);if(typeof s!=`symbol`){if(t.isCollection(r)){o=Object.freeze(o.concat(r));for(let e=0;e<r.items.length;++e){let t=await c(e,r.items[e],a,o);if(typeof t==`number`)e=t-1;else if(t===n)return n;else t===i&&(r.items.splice(e,1),--e)}}else if(t.isPair(r)){o=Object.freeze(o.concat(r));let e=await c(`key`,r.key,a,o);if(e===n)return n;e===i&&(r.key=null);let t=await c(`value`,r.value,a,o);if(t===n)return n;t===i&&(r.value=null)}}return s}function l(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function u(e,n,r,i){if(typeof r==`function`)return r(e,n,i);if(t.isMap(n))return r.Map?.(e,n,i);if(t.isSeq(n))return r.Seq?.(e,n,i);if(t.isPair(n))return r.Pair?.(e,n,i);if(t.isScalar(n))return r.Scalar?.(e,n,i);if(t.isAlias(n))return r.Alias?.(e,n,i)}function d(e,n,r){let i=n[n.length-1];if(t.isCollection(i))i.items[e]=r;else if(t.isPair(i))e===`key`?i.key=r:i.value=r;else if(t.isDocument(i))i.contents=r;else{let e=t.isAlias(i)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}e.visit=a,e.visitAsync=s})),sd=s((e=>{var t=ad(),n=od();let r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]);var a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(`
51
+ `)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a})),cd=s((e=>{var t=ad(),n=od();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a})),ld=s((e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n<r;++n){let r=i[n],a=t(e,i,String(n),r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let r=i.get(n),a=t(e,i,n,r);a===void 0?i.delete(n):a!==r&&i.set(n,a)}else if(i instanceof Set)for(let n of Array.from(i)){let r=t(e,i,n,n);r===void 0?i.delete(n):r!==n&&(i.delete(n),i.add(r))}else for(let[n,r]of Object.entries(i)){let a=t(e,i,n,r);a===void 0?delete i[n]:a!==r&&(i[n]=a)}return e.call(n,r,i)}e.applyReviver=t})),ud=s((e=>{var t=ad();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n})),dd=s((e=>{var t=ld(),n=ad(),r=ud();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}})),fd=s((e=>{var t=cd(),n=od(),r=ad(),i=dd(),a=ud(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let o;for(let e of i){if(e===this)break;e.anchor===this.source&&(o=e)}if(o&&t){let{anchors:e,doc:n,maxAliasCount:r}=t,i=e.get(o);if(i||=(a.toJS(o,null,t),e.get(o)),i?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(r>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=s(n,o,e)),i.count*i.aliasCount>r))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`)}return o}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}return t.anchors.get(n).res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o})),pd=s((e=>{var t=ad(),n=dd(),r=ud();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i})),md=s((e=>{var t=fd(),n=ad(),r=pd();function i(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function a(e,a,o){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=o.schema[n.MAP].createNode?.(o.schema,null,o);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:c,onTagObj:l,schema:u,sourceObjects:d}=o,f;if(s&&e&&typeof e==`object`){if(f=d.get(e),f)return f.anchor??=c(e),new t.Alias(f.anchor);f={anchor:null,node:null},d.set(e,f)}a?.startsWith(`!!`)&&(a=`tag:yaml.org,2002:`+a.slice(2));let p=i(e,a,u.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return f&&(f.node=t),t}p=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}l&&(l(p),delete o.onTagObj);let m=p?.createNode?p.createNode(o.schema,e,o):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(o.schema,e,o):new r.Scalar(e);return a?m.tag=a:p.default||(m.tag=p.tag),f&&(f.node=m),m}e.createNode=a})),hd=s((e=>{var t=md(),n=ad(),r=dd();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}let a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a})),gd=s((e=>{let t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(`
52
+ `)?n(r,t):r.includes(`
53
+ `)?`
54
+ `+n(r,t):(e.endsWith(` `)?``:` `)+r,e.stringifyComment=t})),_d=s((e=>{let t=`block`,n=`quoted`;function r(e,r,a=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;s<c&&(c=0);let d=Math.max(1+c,1+s-r.length);if(e.length<=d)return e;let f=[],p={},m=s-r.length;typeof o==`number`&&(o>s-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;a===t&&(v=i(e,v,r.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(a===n&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===`
55
+ `)a===t&&(v=i(e,v,r.length)),m=v+r.length+d,h=void 0;else{if(o===` `&&g&&g!==` `&&g!==`
56
+ `&&g!==` `){let t=e[v+1];t&&t!==` `&&t!==`
57
+ `&&t!==` `&&(h=v)}if(v>=m)if(h)f.push(h),m=h+d,h=void 0;else if(a===n){for(;g===` `||g===` `;)g=o,o=e[v+=1],_=!0;let t=v>b+1?v-2:y-1;if(p[t])return e;f.push(t),p[t]=!0,m=t+d,h=void 0}else _=!0}g=o}if(_&&u&&u(),f.length===0)return e;l&&l();let x=e.slice(0,f[0]);for(let t=0;t<f.length;++t){let i=f[t],o=f[t+1]||e.length;i===0?x=`\n${r}${e.slice(0,o)}`:(a===n&&p[i]&&(x+=`${e[i]}\\`),x+=`\n${r}${e.slice(i+1,o)}`)}return x}function i(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
58
+ `);r=t,i=t+1,a=e[i]}return r}e.FOLD_BLOCK=t,e.FOLD_FLOW=`flow`,e.FOLD_QUOTED=n,e.foldFlowLines=r})),vd=s((e=>{var t=pd(),n=_d();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
59
+ `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function o(e,t){let a=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return a;let{implicitKey:o}=t,s=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?` `:``),l=``,u=0;for(let e=0,t=a[e];t;t=a[++e])if(t===` `&&a[e+1]===`\\`&&a[e+2]===`n`&&(l+=a.slice(u,e)+`\\ `,e+=1,u=e,t=`\\`),t===`\\`)switch(a[e+1]){case`u`:{l+=a.slice(u,e);let t=a.substr(e+2,4);switch(t){case`0000`:l+=`\\0`;break;case`0007`:l+=`\\a`;break;case`000b`:l+=`\\v`;break;case`001b`:l+=`\\e`;break;case`0085`:l+=`\\N`;break;case`00a0`:l+=`\\_`;break;case`2028`:l+=`\\L`;break;case`2029`:l+=`\\P`;break;default:t.substr(0,2)===`00`?l+=`\\x`+t.substr(2):l+=a.substr(e,6)}e+=5,u=e+1}break;case`n`:if(o||a[e+2]===`"`||a.length<s)e+=1;else{for(l+=a.slice(u,e)+`
60
+
61
+ `;a[e+2]===`\\`&&a[e+3]===`n`&&a[e+4]!==`"`;)l+=`
62
+ `,e+=2;l+=c,a[e+2]===` `&&(l+=`\\`),e+=1,u=e+1}break;default:e+=1}return l=u?l+a.slice(u):a,o?l:n.foldFlowLines(l,c,n.FOLD_QUOTED,r(t,!1))}function s(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
63
+ `)||/[ \t]\n|\n[ \t]/.test(e))return o(e,t);let a=t.indent||(i(e)?` `:``),s=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${a}`)+`'`;return t.implicitKey?s:n.foldFlowLines(s,a,n.FOLD_FLOW,r(t,!1))}function c(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=o;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?s:i&&!t?o:n?s:o}return r(e,t)}let l;try{l=RegExp(`(^|(?<!
64
+ ))
65
+ +(?!
66
+ |$)`,`g`)}catch{l=/\n+(?!\n|$)/g}function u({comment:e,type:o,value:s},u,d,f){let{blockQuote:p,commentString:m,lineWidth:h}=u.options;if(!p||/\n[\t ]+$/.test(s))return c(s,u);let g=u.indent||(u.forceBlockIndent||i(s)?` `:``),_=p===`literal`?!0:p===`folded`||o===t.Scalar.BLOCK_FOLDED?!1:o===t.Scalar.BLOCK_LITERAL||!a(s,h,g.length);if(!s)return _?`|
67
+ `:`>
68
+ `;let v,y;for(y=s.length;y>0;--y){let e=s[y-1];if(e!==`
69
+ `&&e!==` `&&e!==` `)break}let b=s.substring(y),x=b.indexOf(`
70
+ `);x===-1?v=`-`:s===b||x!==b.length-1?(v=`+`,f&&f()):v=``,b&&=(s=s.slice(0,-b.length),b[b.length-1]===`
71
+ `&&(b=b.slice(0,-1)),b.replace(l,`$&${g}`));let S=!1,C,w=-1;for(C=0;C<s.length;++C){let e=s[C];if(e===` `)S=!0;else if(e===`
72
+ `)w=C;else break}let T=s.substring(0,w<C?w+1:C);T&&=(s=s.substring(T.length),T.replace(/\n+/g,`$&${g}`));let E=(S?g?`2`:`1`:``)+v;if(e&&(E+=` `+m(e.replace(/ ?[\r\n]+/g,` `)),d&&d()),!_){let e=s.replace(/\n+/g,`
73
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${g}`),i=!1,a=r(u,!0);p!==`folded`&&o!==t.Scalar.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let c=n.foldFlowLines(`${T}${e}${b}`,g,n.FOLD_BLOCK,a);if(!i)return`>${E}\n${g}${c}`}return s=s.replace(/\n+/g,`$&${g}`),`|${E}\n${g}${T}${s}${b}`}function d(e,a,o,s){let{type:l,value:d}=e,{actualString:f,implicitKey:p,indent:m,indentStep:h,inFlow:g}=a;if(p&&d.includes(`
74
+ `)||g&&/[[\]{},]/.test(d))return c(d,a);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return p||g||!d.includes(`
75
+ `)?c(d,a):u(e,a,o,s);if(!p&&!g&&l!==t.Scalar.PLAIN&&d.includes(`
76
+ `))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}e.stringifyString=f})),yd=s((e=>{var t=cd(),n=ad(),r=gd(),i=vd();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}e.createStringifyContext=a,e.stringify=c})),bd=s((e=>{var t=ad(),n=pd(),r=yd(),i=gd();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?`
77
+ `:``,S){let e=p(S);E+=`\n${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===`
78
+ `&&C&&(E=`
79
+
80
+ `):E+=`\n${o.indent}`}else if(!_&&t.isCollection(a)){let e=T[0],t=T.indexOf(`
81
+ `),n=t!==-1,r=o.inFlow??a.flow??a.items.length===0;if(n||!r){let r=!1;if(n&&(e===`&`||e===`!`)){let n=T.indexOf(` `);e===`&`&&n!==-1&&n<t&&T[n+1]===`!`&&(n=T.indexOf(` `,n+1)),(n===-1||t<n)&&(r=!0)}r||(E=`\n${o.indent}`)}}else(T===``||T[0]===`
82
+ `)&&(E=``);return b+=E+T,o.inFlow?w&&s&&s():C&&!w?b+=i.lineComment(b,o.indent,p(C)):y&&c&&c(),b}e.stringifyPair=a})),xd=s((e=>{var t=require("process");function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}e.debug=n,e.warn=r})),Sd=s((e=>{var t=ad(),n=pd();let r={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(`<<`)),{addToJSMap:a}),stringify:()=>`<<`},i=(e,i)=>(r.identify(i)||t.isScalar(i)&&(!i.type||i.type===n.Scalar.PLAIN)&&r.identify(i.value))&&e?.doc.schema.tags.some(e=>e.tag===r.tag&&e.default);function a(e,n,r){let i=s(e,r);if(t.isSeq(i))for(let t of i.items)o(e,n,t);else if(Array.isArray(i))for(let t of i)o(e,n,t);else o(e,n,i)}function o(e,n,r){let i=s(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}function s(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}e.addMergeToJSMap=a,e.isMergeKey=i,e.merge=r})),Cd=s((e=>{var t=xd(),n=Sd(),r=yd(),i=ad(),a=ud();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}e.addPairToJSMap=o})),wd=s((e=>{var t=md(),n=bd(),r=Cd(),i=ad();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a})),Td=s((e=>{var t=ad(),n=yd(),r=gd();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;e<i.length;++e){let c=i[e],u=null;if(t.isNode(c))!h&&c.spaceBefore&&g.push(``),s(a,g,c.commentBefore,h),c.comment&&(u=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(!h&&e.spaceBefore&&g.push(``),s(a,g,e.commentBefore,h))}h=!1;let d=n.stringify(c,m,()=>u=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e<g.length;++e){let t=g[e];_+=t?`\n${f}${t}`:`
83
+ `}}return e?(_+=`
84
+ `+r.indentComment(p(e),f),d&&d()):h&&u&&u(),_}function o({items:e},i,{flowChars:a,itemIndent:o}){let{indent:c,indentStep:l,flowCollectionPadding:u,options:{commentString:d}}=i;o+=l;let f=Object.assign({},i,{indent:o,inFlow:!0,type:null}),p=!1,m=0,h=[];for(let a=0;a<e.length;++a){let c=e[a],l=null;if(t.isNode(c))c.spaceBefore&&h.push(``),s(i,h,c.commentBefore,!1),c.comment&&(l=c.comment);else if(t.isPair(c)){let e=t.isNode(c.key)?c.key:null;e&&(e.spaceBefore&&h.push(``),s(i,h,e.commentBefore,!1),e.comment&&(p=!0));let n=t.isNode(c.value)?c.value:null;n?(n.comment&&(l=n.comment),n.commentBefore&&(p=!0)):c.value==null&&e?.comment&&(l=e.comment)}l&&(p=!0);let u=n.stringify(c,f,()=>l=null);p||=h.length>m||u.includes(`
85
+ `),a<e.length-1?u+=`,`:i.options.trailingComma&&(i.options.lineWidth>0&&(p||=h.reduce((e,t)=>e+t.length+2,2)+(u.length+2)>i.options.lineWidth),p&&(u+=`,`)),l&&(u+=r.lineComment(u,o,d(l))),h.push(u),m=h.length}let{start:g,end:_}=a;if(h.length===0)return g+_;if(!p){let e=h.reduce((e,t)=>e+t.length+2,2);p=i.options.lineWidth>0&&e>i.options.lineWidth}if(p){let e=g;for(let t of h)e+=t?`\n${l}${c}${t}`:`
86
+ `;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}e.stringifyCollection=i})),Ed=s((e=>{var t=Td(),n=Cd(),r=hd(),i=ad(),a=wd(),o=pd();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}e.YAMLMap=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s})),Dd=s((e=>{var t=ad(),n=Ed();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)}})),Od=s((e=>{var t=md(),n=Td(),r=hd(),i=ad(),a=pd(),o=ud(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=c(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];i.isScalar(r)&&a.isScalarValue(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(o.toJS(e,String(r++),t));return n}toString(e,t,r){return e?n.stringifyCollection(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,n,r){let{replacer:i}=r,a=new this(e);if(n&&Symbol.iterator in Object(n)){let e=0;for(let o of n){if(typeof i==`function`){let t=n instanceof Set?o:String(e++);o=i.call(n,t,o)}a.items.push(t.createNode(o,void 0,r))}}return a}};function c(e){let t=i.isScalar(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}e.YAMLSeq=s})),kd=s((e=>{var t=ad(),n=Od();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)}})),Ad=s((e=>{var t=vd();e.string={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}})),jd=s((e=>{var t=pd();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};e.nullTag=n})),Md=s((e=>{var t=pd();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n})),Nd=s((e=>{function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}e.stringifyNumber=t})),Pd=s((e=>{var t=pd(),n=Nd();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),Fd=s((e=>{var t=Nd();let n=e=>typeof e==`bigint`||Number.isInteger(e),r=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}e.int={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},e.intHex={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)},e.intOct={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>r(e,2,8,n),stringify:e=>i(e,8,`0o`)}})),Id=s((e=>{var t=Dd(),n=jd(),r=kd(),i=Ad(),a=Md(),o=Pd(),s=Fd();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]})),Ld=s((e=>{var t=pd(),n=Dd(),r=kd();function i(e){return typeof e==`bigint`||Number.isInteger(e)}let a=({value:e})=>JSON.stringify(e),o=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:a},{identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),Rd=s((e=>{var t=require("buffer"),n=pd(),r=vd();e.binary={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return n(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:i,value:a},o,s,c){if(!a)return``;let l=a,u;if(typeof t.Buffer==`function`)u=l instanceof t.Buffer?l.toString(`base64`):t.Buffer.from(l.buffer).toString(`base64`);else if(typeof btoa==`function`){let e=``;for(let t=0;t<l.length;++t)e+=String.fromCharCode(l[t]);u=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(i??=n.Scalar.BLOCK_LITERAL,i!==n.Scalar.QUOTE_DOUBLE){let e=Math.max(o.options.lineWidth-o.indent.length,o.options.minContentWidth),t=Math.ceil(u.length/e),r=Array(t);for(let n=0,i=0;n<t;++n,i+=e)r[n]=u.substr(i,e);u=r.join(i===n.Scalar.BLOCK_LITERAL?`
87
+ `:` `)}return r.stringifyString({comment:e,type:i,value:u},o,s,c)}}})),zd=s((e=>{var t=ad(),n=wd(),r=pd(),i=Od();function a(e,i){if(t.isSeq(e))for(let a=0;a<e.items.length;++a){let o=e.items[a];if(!t.isPair(o)){if(t.isMap(o)){o.items.length>1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a})),Bd=s((e=>{var t=ad(),n=ud(),r=Ed(),i=Od(),a=zd(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};e.YAMLOMap=o,e.omap=s})),Vd=s((e=>{var t=pd();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};e.falseTag=i,e.trueTag=r})),Hd=s((e=>{var t=pd(),n=Nd();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),Ud=s((e=>{var t=Nd();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o})),Wd=s((e=>{var t=ad(),n=wd(),r=Ed(),i=class e extends r.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;let a={collection:`map`,identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>i.from(e,t,n),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a})),Gd=s((e=>{var t=Nd();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function r(e){let{value:n}=e,r=e=>e;if(typeof n==`bigint`)r=e=>BigInt(e);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}let i={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:r},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:r},o={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``};e.floatTime=a,e.intTime=i,e.timestamp=o})),Kd=s((e=>{var t=Dd(),n=jd(),r=kd(),i=Ad(),a=Rd(),o=Vd(),s=Hd(),c=Ud(),l=Sd(),u=Bd(),d=zd(),f=Wd(),p=Gd();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]})),qd=s((e=>{var t=Dd(),n=jd(),r=kd(),i=Ad(),a=Md(),o=Pd(),s=Fd(),c=Id(),l=Ld(),u=Rd(),d=Sd(),f=Bd(),p=zd(),m=Kd(),h=Wd(),g=Gd();let _=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}e.coreKnownTags=y,e.getTags=b})),Jd=s((e=>{var t=ad(),n=Dd(),r=kd(),i=Ad(),a=qd();let o=(e,t)=>e.key<t.key?-1:+(e.key>t.key);e.Schema=class e{constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})),Yd=s((e=>{var t=ad(),n=yd(),r=gd();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(`
88
+ `)?(a.push(`...`),a.push(r.indentComment(t,``))):a.push(`... ${t}`)}else a.push(`...`);else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,``)),t&&((!l||u)&&a[a.length-1]!==``&&a.push(``),a.push(r.indentComment(c(t),``)))}return a.join(`
89
+ `)+`
90
+ `}e.stringifyDocument=i})),Xd=s((e=>{var t=fd(),n=hd(),r=ad(),i=wd(),a=ud(),o=Jd(),s=Yd(),c=cd(),l=ld(),u=md(),d=sd(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}e.Document=f})),Zd=s((e=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
91
+ `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})),Qd=s((e=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}e.resolveProps=t})),$d=s((e=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
92
+ `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}e.containsNewline=t})),ef=s((e=>{var t=$d();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}e.flowIndentCheck=n})),tf=s((e=>{var t=ad();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}e.mapIncludes=n})),nf=s((e=>{var t=wd(),n=Ed(),r=Qd(),i=$d(),a=ef(),o=tf();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new((f?.nodeClass)??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=`
93
+ `+y.comment:p.comment=y.comment);continue}(y.newlineAfterProp||i.containsNewline(g))&&d(g??f[f.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else y.found?.indent!==u.indent&&d(m,`BAD_INDENT`,s);l.atKey=!0;let x=y.end,S=g?e(l,g,y,d):c(l,x,f,null,y,d);l.schema.compat&&a.flowIndentCheck(u.indent,g,d),l.atKey=!1,o.mapIncludes(l,p.items,S)&&d(x,`DUPLICATE_KEY`,`Map keys must be unique`);let C=r.resolveProps(_??[],{indicator:`map-value-ind`,next:v,offset:S.range[2],onError:d,parentIndent:u.indent,startOnNewline:!g||g.type===`block-scalar`});if(m=C.end,C.found){b&&(v?.type===`block-map`&&!C.hasNewline&&d(m,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),l.options.strict&&y.start<C.found.offset-1024&&d(S.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let r=v?e(l,v,C,d):c(l,m,_,null,C,d);l.schema.compat&&a.flowIndentCheck(u.indent,v,d),m=r.range[2];let i=new t.Pair(S,r);l.options.keepSourceTokens&&(i.srcToken=n),p.items.push(i)}else{b&&d(S.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),C.comment&&(S.comment?S.comment+=`
94
+ `+C.comment:S.comment=C.comment);let e=new t.Pair(S);l.options.keepSourceTokens&&(e.srcToken=n),p.items.push(e)}}return h&&h<m&&d(h,`IMPOSSIBLE`,`Map comment with trailing content`),p.range=[u.offset,m,h??m],p}e.resolveBlockMap=c})),rf=s((e=>{var t=Od(),n=Qd(),r=ef();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new((c?.nodeClass)??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}e.resolveBlockSeq=i})),af=s((e=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}e.resolveEnd=t})),of=s((e=>{var t=ad(),n=wd(),r=Ed(),i=Od(),a=af(),o=Qd(),s=$d(),c=tf();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new((h?.nodeClass)??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i<p.items.length;++i){let a=p.items[i],{start:h,key:y,sep:x,value:S}=a,C=o.resolveProps(h,{flow:_,indicator:`explicit-key-ind`,next:y??x?.[0],offset:b,onError:m,parentIndent:p.indent,startOnNewline:!1});if(!C.found){if(!C.anchor&&!C.tag&&!x&&!S){i===0&&C.comma?m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`):i<p.items.length-1&&m(C.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${_}`),C.comment&&(v.comment?v.comment+=`
95
+ `+C.comment:v.comment=C.comment),b=C.end;continue}!g&&f.options.strict&&s.containsNewline(y)&&m(y,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(i===0)C.comma&&m(C.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${_}`);else if(C.comma||m(C.start,`MISSING_CHAR`,`Missing , between ${_} items`),C.comment){let e=``;loop:for(let t of h)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let n=v.items[v.items.length-1];t.isPair(n)&&(n=n.value??n.key),n.comment?n.comment+=`
96
+ `+e:n.comment=e,C.comment=C.comment.substring(e.length+1)}}if(!g&&!x&&!C.found){let t=S?e(f,S,C,m):d(f,C.end,x,null,C,m);v.items.push(t),b=t.range[2],u(S)&&m(t.range,`BLOCK_IN_FLOW`,l)}else{f.atKey=!0;let t=C.end,i=y?e(f,y,C,m):d(f,t,h,null,C,m);u(y)&&m(i.range,`BLOCK_IN_FLOW`,l),f.atKey=!1;let s=o.resolveProps(x??[],{flow:_,indicator:`map-value-ind`,next:S,offset:i.range[2],onError:m,parentIndent:p.indent,startOnNewline:!1});if(s.found){if(!g&&!C.found&&f.options.strict){if(x)for(let e of x){if(e===s.found)break;if(e.type===`newline`){m(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}C.start<s.found.offset-1024&&m(s.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else S&&(`source`in S&&S.source?.[0]===`:`?m(S,`MISSING_CHAR`,`Missing space after : in ${_}`):m(s.start,`MISSING_CHAR`,`Missing , or : between ${_} items`));let w=S?e(f,S,s,m):s.found?d(f,s.end,x,null,s,m):null;w?u(S)&&m(w.range,`BLOCK_IN_FLOW`,l):s.comment&&(i.comment?i.comment+=`
97
+ `+s.comment:i.comment=s.comment);let T=new n.Pair(i,w);if(f.options.keepSourceTokens&&(T.srcToken=a),g){let e=v;c.mapIncludes(f,e.items,i)&&m(t,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(T)}else{let e=new r.YAMLMap(f.schema);e.flow=!0,e.items.push(T);let t=(w??i).range;e.range=[i.range[0],t[1],t[2]],v.items.push(e)}b=w?w.range[2]:s.end}}let x=g?`}`:`]`,[S,...C]=p.end,w=b;if(S?.source===x)w=S.offset+S.source.length;else{let e=_[0].toUpperCase()+_.substring(1),t=y?`${e} must end with a ${x}`:`${e} in block collection must be sufficiently indented and end with a ${x}`;m(b,y?`MISSING_CHAR`:`BAD_INDENT`,t),S&&S.source.length!==1&&C.unshift(S)}if(C.length>0){let e=a.resolveEnd(C,w,f.options.strict,m);e.comment&&(v.comment?v.comment+=`
98
+ `+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}e.resolveFlowCollection=d})),sf=s((e=>{var t=ad(),n=pd(),r=Ed(),i=Od(),a=nf(),o=rf(),s=of();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offset<n.offset)&&l(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let f=o.type===`block-map`?`map`:o.type===`block-seq`?`seq`:o.start.source===`{`?`map`:`seq`;if(!u||!d||d===`!`||d===r.YAMLMap.tagName&&f===`map`||d===i.YAMLSeq.tagName&&f===`seq`)return c(e,a,o,l,d);let p=a.schema.tags.find(e=>e.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}e.composeCollection=l})),cf=s((e=>{var t=pd();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?`
99
+ `.repeat(Math.max(1,l.length-1)):``,t=o+s.length;return n.source&&(t+=n.source.length),{value:e,type:c,comment:s.comment,range:[o,t,t]}}let d=n.indent+s.indent,f=n.offset+s.length,p=0;for(let t=0;t<u;++t){let[n,r]=l[t];if(r===``||r===`\r`)s.indent===0&&n.length>d&&(d=n.length);else{n.length<d&&a(f+n.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),s.indent===0&&(d=n.length),p=t,d===0&&!e.atRoot&&a(f,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}f+=n.length+r.length+1}for(let e=l.length-1;e>=u;--e)l[e][0].length>d&&(u=e+1);let m=``,h=``,g=!1;for(let e=0;e<p;++e)m+=l[e][0].slice(d)+`
100
+ `;for(let e=p;e<u;++e){let[n,r]=l[e];f+=n.length+r.length+1;let i=r[r.length-1]===`\r`;if(i&&(r=r.slice(0,-1)),r&&n.length<d){let e=`Block scalar lines must not be less indented than their ${s.indent?`explicit indentation indicator`:`first line`}`;a(f-r.length-(i?2:1),`BAD_INDENT`,e),n=``}c===t.Scalar.BLOCK_LITERAL?(m+=h+n.slice(d)+r,h=`
101
+ `):n.length>d||r[0]===` `?(h===` `?h=`
102
+ `:!g&&h===`
103
+ `&&(h=`
104
+
105
+ `),m+=h+n.slice(d)+r,h=`
106
+ `,g=!0):r===``?h===`
107
+ `?m+=`
108
+ `:h=`
109
+ `:(m+=h+r,h=` `,g=!1)}switch(s.chomp){case`-`:break;case`+`:for(let e=u;e<l.length;++e)m+=`
110
+ `+l[e][0].slice(d);m[m.length-1]!==`
111
+ `&&(m+=`
112
+ `);break;default:m+=`
113
+ `}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function i(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}e.resolveBlockScalar=n})),lf=s((e=>{var t=pd(),n=af();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t=/(.*?)\r?\n/sy,n=t.exec(e);if(!n)return e;let r,i;try{r=RegExp(`(?<![ ])[ ]+$`),i=RegExp(`^[ ]+|(?<![ ])[ ]+$`,`g`)}catch{r=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let a=n[1].replace(r,``),o=` `,s=t.lastIndex;for(;n=t.exec(e);){let e=n[1].replace(i,``);e===``?o===`
114
+ `?a+=o:o=`
115
+ `:(a+=o+e,o=` `),s=t.lastIndex}let c=/[ \t]*(.*)/sy;return c.lastIndex=s,n=c.exec(e),a+o+(n?.[1]??``)}function s(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===`
116
+ `))if(i===`
117
+ `){let{fold:t,offset:i}=c(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=l[i];if(a)n+=a;else if(i===`
118
+ `)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
119
+ `)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=u(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
120
+ `&&!(a===`\r`&&e[r+2]===`
121
+ `)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function c(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
122
+ `||r===`\r`)&&!(r===`\r`&&e[t+2]!==`
123
+ `);)r===`
124
+ `&&(n+=`
125
+ `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}let l={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
126
+ `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function u(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}e.resolveFlowScalar=r})),uf=s((e=>{var t=ad(),n=pd(),r=cf(),i=lf();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}e.composeScalar=a})),df=s((e=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}e.emptyScalarPosition=t})),ff=s((e=>{var t=fd(),n=ad(),r=sf(),i=uf(),a=af(),o=df();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}e.composeEmptyNode=l,e.composeNode=c})),pf=s((e=>{var t=Xd(),n=ff(),r=af(),i=Qd();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}e.composeDoc=a})),mf=s((e=>{var t=require("process"),n=sd(),r=Xd(),i=Zd(),a=ad(),o=pf(),s=af();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function l(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
127
+
128
+ `:`
129
+ `)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}e.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(t.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})),hf=s((e=>{var t=cf(),n=lf(),r=Zd(),i=vd();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:`
130
+ `}];switch(c[0]){case`|`:case`>`:{let e=c.indexOf(`
131
+ `),t=c.substring(0,e),n=c.substring(e+1)+`
132
+ `,i=[{type:`block-scalar-header`,offset:o,indent:r,source:t}];return l(i,u)||i.push({type:`newline`,offset:-1,indent:r,source:`
133
+ `}),{type:`block-scalar`,offset:o,indent:r,props:i,source:n}}case`"`:return{type:`double-quoted-scalar`,offset:o,indent:r,source:c,end:u};case`'`:return{type:`single-quoted-scalar`,offset:o,indent:r,source:c,end:u};default:return{type:`scalar`,offset:o,indent:r,source:c,end:u}}}function s(e,t,n={}){let{afterKey:r=!1,implicitKey:a=!1,inFlow:o=!1,type:s}=n,l=`indent`in e?e.indent:null;if(r&&typeof l==`number`&&(l+=2),!s)switch(e.type){case`single-quoted-scalar`:s=`QUOTE_SINGLE`;break;case`double-quoted-scalar`:s=`QUOTE_DOUBLE`;break;case`block-scalar`:{let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);s=t.source[0]===`>`?`BLOCK_FOLDED`:`BLOCK_LITERAL`;break}default:s=`PLAIN`}let d=i.stringifyString({type:s,value:t},{implicitKey:a||l===null,indent:l!==null&&l>0?` `.repeat(l):``,inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(d[0]){case`|`:case`>`:c(e,d);break;case`"`:u(e,d,`double-quoted-scalar`);break;case`'`:u(e,d,`single-quoted-scalar`);break;default:u(e,d,`scalar`)}}function c(e,t){let n=t.indexOf(`
134
+ `),r=t.substring(0,n),i=t.substring(n+1)+`
135
+ `;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];l(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:`
136
+ `});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}function l(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}function u(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r={type:`newline`,offset:e.offset+t.length,indent:e.indent,source:`
137
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s})),gf=s((e=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}e.stringify=t})),_f=s((e=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n<c.items.length;++n){let o=a(Object.freeze(e.concat([[s,n]])),c.items[n],i);if(typeof o==`number`)n=o-1;else if(o===t)return t;else o===r&&(c.items.splice(n,1),--n)}typeof o==`function`&&s===`key`&&(o=o(n,e))}}return typeof o==`function`?o(n,e):o}e.visit=i})),vf=s((e=>{var t=hf(),n=gf(),r=_f();let i=e=>!!e&&`items`in e,a=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function o(e){switch(e){case``:return`<BOM>`;case``:return`<DOC>`;case``:return`<FLOW_END>`;case``:return`<SCALAR>`;default:return JSON.stringify(e)}}function s(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
138
+ `:case`\r
139
+ `:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=``,e.DOCUMENT=``,e.FLOW_END=``,e.SCALAR=``,e.isCollection=i,e.isScalar=a,e.prettyToken=o,e.tokenType=s})),yf=s((e=>{var t=vf();function n(e){switch(e){case void 0:case` `:case`
140
+ `:case`\r`:case` `:return!0;default:return!1}}let r=new Set(`0123456789ABCDEFabcdef`),i=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),a=new Set(`,[]{}`),o=new Set(` ,[]{}
141
+ \r `),s=e=>!e||o.has(e);e.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
142
+ `||t===`\r`&&this.buffer[e+1]===`
143
+ `}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
144
+ `||!t&&!this.atEnd)return e+n+1}return t===`
145
+ `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&n(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
146
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===t.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield t.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&n(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!n(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&n(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(s),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,i=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);let a=this.getLine();if(a===null)return this.setNext(`flow`);if((i!==-1&&i<this.indentNext&&a[0]!==`#`||i===0&&(a.startsWith(`---`)||a.startsWith(`...`))&&n(a[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(a[0]===`]`||a[0]===`}`)))return this.flowLevel=0,yield t.FLOW_END,yield*this.parseLineStart();let o=0;for(;a[o]===`,`;)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),a[o]){case void 0:return`flow`;case`#`:return yield*this.pushCount(a.length-o),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(s),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||n(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
147
+ `,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
148
+ `,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>n(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,n=0,r;loop:for(let t=this.pos;r=this.buffer[t];++t)switch(r){case` `:n+=1;break;case`
149
+ `:e=t,n=0;break;case`\r`:{let e=this.buffer[t+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
150
+ `)break}default:break loop}if(!r&&!this.atEnd)return this.setNext(`block-scalar`);if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
151
+ `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let i=e+1;for(r=this.buffer[i];r===` `;)r=this.buffer[++i];if(r===` `){for(;r===` `||r===` `||r===`\r`||r===`
152
+ `;)r=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let t=e-1,r=this.buffer[t];r===`\r`&&(r=this.buffer[--t]);let i=t;for(;r===` `;)r=this.buffer[--t];if(r===`
153
+ `&&t>=this.pos&&t+1+n>i)e=t;else break}while(!0);return yield t.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,r=this.pos-1,i=this.pos-1,o;for(;o=this.buffer[++i];)if(o===`:`){let t=this.buffer[i+1];if(n(t)||e&&a.has(t))break;r=i}else if(n(o)){let t=this.buffer[i+1];if(o===`\r`&&(t===`
154
+ `?(i+=1,o=`
155
+ `,t=this.buffer[i+1]):r=i),t===`#`||e&&a.has(t))break;if(o===`
156
+ `){let e=this.continueScalar(i+1);if(e===-1)break;i=Math.max(i,e-2)}}else{if(e&&a.has(o))break;r=i}return!o&&!this.atEnd?this.setNext(`plain-scalar`):(yield t.SCALAR,yield*this.pushToIndex(r+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(s),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,r=this.charAt(1);if(n(r)||t&&a.has(r)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else if(t===`%`&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
157
+ `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
158
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),bf=s((e=>{e.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}})),xf=s((e=>{var t=require("process"),n=vf(),r=yf();function i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function a(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function o(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function s(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function c(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function u(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!i(t.start,`explicit-key-ind`)&&!i(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,o(t.value)?t.value.end?l(t.value.end,t.sep):t.value.end=t.sep:l(t.start,t.sep),delete t.sep)}e.Parser=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new r.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,t.env.LOG_TOKENS&&console.log(`|`,n.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let r=n.tokenType(e);if(!r){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(r===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=r,yield*this.step(),r){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:a(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=c(s(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
159
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
160
+ `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,a=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(a=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(i(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=c(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(o(t.key)&&!i(t.sep,`newline`)){let e=c(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:a,key:null,sep:[this.sourceToken]}):i(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:a,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!i(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:a});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||i(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=c(s(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
161
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
162
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),Sf=s((e=>{var t=mf(),n=Xd(),r=Zd(),i=xd(),a=ad(),o=bf(),s=xf();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),Cf=s((e=>{var t=mf(),n=Xd(),r=Jd(),i=Zd(),a=fd(),o=ad(),s=wd(),c=pd(),l=Ed(),u=Od(),d=vf(),f=yf(),p=bf(),m=xf(),h=Sf(),g=od();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.CST=d,e.Lexer=f.Lexer,e.LineCounter=p.LineCounter,e.Parser=m.Parser,e.parse=h.parse,e.parseAllDocuments=h.parseAllDocuments,e.parseDocument=h.parseDocument,e.stringify=h.stringify,e.visit=g.visit,e.visitAsync=g.visitAsync})),wf=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createPollingState=void 0;let t=e=>typeof e==`object`&&!!e&&!Array.isArray(e);e.createPollingState=e=>({getState:()=>{let n=e.instanceState.__prismaticInternal,r=t(n)?n:{};return t(r.polling)?r.polling:{}},setState:n=>{let r=e.instanceState.__prismaticInternal,i=t(r)?r:{};e.instanceState.__prismaticInternal=Object.assign(Object.assign({},i),{polling:n})}})})),Tf=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0}),e.withPolledResultType=e.wrapBatchedFire=e.withPollingState=e.defaultBatchResolver=e.defaultGetNextPaginationState=e.defaultResolveItems=void 0;let r=wf();e.defaultResolveItems=(e,t)=>t.payload.body.data,e.defaultGetNextPaginationState=(e,t)=>t.payload.paginationState??null,e.defaultBatchResolver={resolveItems:e.defaultResolveItems,getNextPaginationState:e.defaultGetNextPaginationState},e.withPollingState=e=>(n,...i)=>t(void 0,void 0,void 0,function*(){return yield e(`polling`in n?n:Object.assign(Object.assign({},n),{polling:(0,r.createPollingState)(n)}),...i)}),e.wrapBatchedFire=e=>(...n)=>t(void 0,void 0,void 0,function*(){let t=n[1],{items:r,paginationState:i,response:a,branch:o,polledNoChanges:s}=yield e(...n),c=!t.paginationState;return Object.assign(Object.assign(Object.assign({payload:Object.assign(Object.assign({},t),{body:{data:r,contentType:`application/json`},paginationState:i??null})},a?{response:a}:{}),o===void 0?{}:{branch:o}),c&&s!==void 0?{polledNoChanges:s}:{})}),e.withPolledResultType=e=>(...r)=>t(void 0,void 0,void 0,function*(){let t=yield e(...r),{polledNoChanges:i}=t,a=n(t,[`polledNoChanges`]);return Object.assign(Object.assign({},a),{resultType:i?`polled_no_changes`:`completed`})})})),Ef=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createConfigurationContext=e.createConfigurationConnections=void 0;let t=e=>e&&typeof e==`object`?e:{};e.createConfigurationConnections=(e,t)=>Object.entries(e).reduce((e,[n,r])=>{let i=n.indexOf(`.`),a=n.slice(0,i),o=n.slice(i+1);if(a!==`instance`&&a!==`userLevel`||!o)throw Error(`Invalid qualified connection key: "${n}"`);let s=t&&Object.hasOwn(t,r)?t[r]:void 0;if(s&&typeof s==`object`){let t=Object.hasOwn(e,a)?e[a]:Object.create(null);Object.defineProperty(t,o,{value:s,enumerable:!0,configurable:!0}),e[a]=t}return e},{}),e.createConfigurationContext=(n,r,i)=>{let a=t(n),{logger:o,customer:s,instance:c,configVars:l,connections:u,user:d,userConfiguration:f}=a;return{logger:o,customer:s,instance:c,user:d,connections:(0,e.createConfigurationConnections)(r,u??l),configuration:i===void 0?a.configuration??{}:i,userConfiguration:f??{}}}})),$=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CONSTANT_CATCH=e.Class=e.BIGINT_FORMAT_RANGES=e.NUMBER_FORMAT_RANGES=e.primitiveTypes=e.propertyKeyTypes=e.getParsedType=e.allowsEval=e.captureStackTrace=void 0,e.assertEqual=n,e.assertNotEqual=r,e.toZod=i,e.assertIs=a,e.assertNever=o,e.assert=s,e.getEnumValues=c,e.joinValues=l,e.jsonStringifyReplacer=u,e.cached=f,e.nullish=p,e.cleanRegex=m,e.floatSafeRemainder=h,e.defineLazy=_,e.objectClone=v,e.assignProp=y,e.rawShape=b,e.mergeDefs=E,e.cloneDef=D,e.getElementAtPath=O,e.promiseAllObject=k,e.randomString=A,e.esc=j,e.slugify=M,e.isObject=N,e.isPlainObject=P,e.shallowClone=F,e.numKeys=I,e.escapeRegex=L,e.clone=R,e.normalizeParams=z,e.createTransparentProxy=B,e.stringifyPrimitive=V,e.optionalKeys=H,e.pick=U,e.omit=G,e.extend=ee,e.safeExtend=q,e.merge=te,e.partial=ne,e.required=re,e.aborted=ie,e.explicitlyAborted=ae,e.prefixIssues=J,e.unwrapMessage=oe,e.sizeCaps=se,e.attachSchema=ce,e.finalizeIssue=Y,e.getSizableOrigin=le,e.codePointLength=de,e.getLengthableOrigin=fe,e.parsedType=pe,e.issue=me,e.cleanEnum=he,e.base64ToUint8Array=ge,e.uint8ArrayToBase64=_e,e.base64urlToUint8Array=ve,e.uint8ArrayToBase64url=ye,e.hexToUint8Array=be,e.uint8ArrayToHex=xe,e.members=Se,e.own=Ce,e.hide=we,e.derived=Te,e.defineLazyInternal=je,e.installLazyProp=Me,e.constantCatch=Ne;let t=Df();function n(e){return e}function r(e){return e}function i(){return e=>e}function a(e){}function o(e){throw Error(`Unexpected value in exhaustive check`)}function s(e){}function c(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function l(e,t=`|`){return e.map(e=>V(e)).join(t)}function u(e,t){return typeof t==`bigint`?t.toString():t}var d=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function f(e){return new d(e)}function p(e){return e==null}function m(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function h(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}let g=Symbol(`evaluating`);function _(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==g)return r===void 0&&(r=g,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function v(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function y(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function b(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function x(e){return b(e._zod.def)??e._zod.def.shape}function S(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return y(this,t,e),e},enumerable:!0,configurable:!0})}function C(e,t,n){t in e?y(e,t,n):e[t]=n}function w(e,t,n,r){let i=x(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?S(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):C(e,a,r?r(n.value,a):n.value))}}function T(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?S(e,n,()=>t[n]):C(e,n,r.value))}}function E(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function D(e){return E(e._zod.def)}function O(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function k(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function A(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function j(e){return JSON.stringify(e)}function M(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}e.captureStackTrace=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function N(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.allowsEval=f(()=>{if(t.globalConfig.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function P(e){if(N(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(N(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function F(e){return P(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function I(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}e.getParsedType=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`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},e.propertyKeyTypes=new Set([`string`,`number`,`symbol`]),e.primitiveTypes=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]);function L(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function R(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function z(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}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function B(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function V(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function H(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}e.NUMBER_FORMAT_RANGES={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},e.BIGINT_FORMAT_RANGES={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function U(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return w(i,e,W(e,t)),R(e,E(n,{shape:i,checks:[]}))}function W(e,t){let n=x(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function G(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(W(e,t)),a={};return w(a,e,Reflect.ownKeys(x(e)).filter(e=>!i.has(e))),R(e,E(n,{shape:a,checks:[]}))}function ee(e,t){if(!P(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=x(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return R(e,E(e._zod.def,{shape:K(e,t)}))}function K(e,t){let n={};return w(n,e,Reflect.ownKeys(x(e))),T(n,t),n}function q(e,t){if(!P(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return R(e,E(e._zod.def,{shape:K(e,t)}))}function te(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return w(n,e,Reflect.ownKeys(x(e))),w(n,t,Reflect.ownKeys(x(t))),R(e,E(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ne(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(W(t,n)):void 0,o={};return w(o,t,Reflect.ownKeys(x(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),R(t,E(t._zod.def,{shape:o,checks:[]}))}function re(e,t,n){let r=n?new Set(W(t,n)):void 0,i={};return w(i,t,Reflect.ownKeys(x(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),R(t,E(t._zod.def,{shape:i}))}function ie(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ae(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function J(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function oe(e){return typeof e==`string`?e:e?.message}function se(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function ce(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Y(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:oe(e.inst?._zod.def?.error?.(e))??oe(a?.(e))??oe(t?.error?.(e))??oe(n.customError?.(e))??oe(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t===`inst`||t===`schema`||t===`continue`||t===`input`||t===`__proto__`||(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}function le(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}let ue=/[\uD800-\uDBFF]/;function de(e){let t=e.length;if(!ue.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function fe(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function pe(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function me(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function he(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ge(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function _e(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function ve(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return ge(t+`=`.repeat((4-t.length%4)%4))}function ye(e){return _e(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function be(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function xe(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}e.Class=class{constructor(...e){}};function Se(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Ee(e,n,r.value)}}function Ce(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function we(e,t,n){return Ce(e,t,n,!1)}function Te(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Ce(this,n,r(this))},set(e){Ce(this,n,e)}})}return t}function Ee(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Ce(this,t,n.bind(this))},set(e){Ce(this,t,e)}})}function De(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}let Oe,ke=!1,Ae={configurable:!0,get(){ke=!0}};function je(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&Oe!==e._zod){Oe=void 0;return}Oe=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Ae);let e=ke;ke=!1;try{let r=n(this);return ke?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),ke||=e,r}catch(n){throw delete this[t],ke||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function Me(e,t,n,r){let i=De(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}e.CONSTANT_CATCH=`~constantCatch`;function Ne(t){let n=()=>t;return n[e.CONSTANT_CATCH]=!0,n}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Df=s((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.globalConfig=e.$ZodEncodeError=e.$ZodAsyncError=e.$brand=e.NEVER=void 0,e.$constructor=o,e.config=s;let n=$();e.NEVER=Object.freeze({status:`aborted`});let r={value:void 0,enumerable:!1},i=`captureStackTrace`in Error?Error:null;function a(e){let t=i;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return i=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function o(e,t,i,o){let s={};function c(e){this.def=e,this.constr=m,this.traits=new Set}c.prototype=s;let l=i,u=l&&new WeakSet;function d(i,a){if(!i._zod){r.value=new c(a);try{Object.defineProperty(i,"_zod",r)}finally{r.value=void 0}}else if(i._zod.traits.has(e))return;if(i._zod.traits.add(e),t(i,a),u){let e=Object.getPrototypeOf(i),t=i._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let a=r??e;u.has(a)||(u.add(a),(0,n.members)(a,l))}let o=m.prototype;for(let e in o)Object.prototype.hasOwnProperty.call(o,e)&&(e in i||(i[e]=o[e].bind(i)))}let f=o?.Parent??Object;class p extends f{}Object.defineProperty(p,"name",{value:e});function m(e){let t=o?.Parent?a(p):this;d(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let r=globalThis.__zod_globalConfig?.postProcessor;return r&&r(t),t}return Object.defineProperty(m,"init",{value:d}),Object.defineProperty(m,Symbol.hasInstance,{value:t=>o?.Parent&&t instanceof o.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}e.$brand=Symbol(`zod_brand`),e.$ZodAsyncError=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},e.$ZodEncodeError=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(t=globalThis).__zod_globalConfig??(t.__zod_globalConfig={}),e.globalConfig=globalThis.__zod_globalConfig;function s(t){return t&&Object.assign(e.globalConfig,t),e.globalConfig}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Of=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.$ZodRealError=e.$ZodError=void 0,e.flattenError=p,e.formatError=m,e.treeifyError=h,e.toDotPath=g,e.prettifyError=_;let i=Df(),a=r($());function o(){let e=this._zod;return e.message??=JSON.stringify(e.def,a.jsonStringifyReplacer,2),e.message}function s(e){this._zod.message=e}let c={get:o,set:s,enumerable:!0,configurable:!0},l={value:void 0,enumerable:!1},u=new WeakSet([Object.prototype,Error.prototype]),d=(e,t)=>{e.name=`$ZodError`,l.value=t,Object.defineProperty(e,"issues",l),l.value=void 0,Object.defineProperty(e,"message",c);let n=Object.getPrototypeOf(e);u.has(n)||(u.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))};e.$ZodError=(0,i.$constructor)(`$ZodError`,d),e.$ZodRealError=(0,i.$constructor)(`$ZodError`,d,void 0,{Parent:Error});function f(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function p(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?f(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function m(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function h(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a;for(let o of e.issues)if(o.code===`invalid_union`&&o.errors.length)o.errors.map(e=>r({issues:e},[...i,...o.path]));else if(o.code===`invalid_key`)r({issues:o.issues},[...i,...o.path]);else if(o.code===`invalid_element`)r({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(e.length===0){n.errors.push(t(o));continue}let r=n,s=0;for(;s<e.length;){let n=e[s],i=s===e.length-1;typeof n==`string`?(r.properties??={},Object.prototype.hasOwnProperty.call(r.properties,n)||Object.defineProperty(r.properties,n,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),r=r.properties[n]):(r.items??=[],(a=r.items)[n]??(a[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(o)),s++}}};return r(e),n}function g(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function _(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${g(e.path)}`);return t.join(`
163
+ `)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),kf=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.safeDecodeAsync=e._safeDecodeAsync=e.safeEncodeAsync=e._safeEncodeAsync=e.safeDecode=e._safeDecode=e.safeEncode=e._safeEncode=e.decodeAsync=e._decodeAsync=e.encodeAsync=e._encodeAsync=e.decode=e._decode=e.encode=e._encode=e.validateAsync=e.validate=e.safeParseAsync=e._safeParseAsync=e.safeParse=e._safeParse=e.parseAsync=e._parseAsync=e.parse=e._parse=void 0;let i=r(Df()),a=r(Of()),o=r($());function s(e,t){return{callee:t?.callee??e,Err:t?.Err}}e._parse=e=>{let t=(n,r,a,s)=>{let c=a?{...a,async:!1}:{async:!1},l=n._zod.run({value:r,issues:[]},c);if(l instanceof Promise)throw new i.$ZodAsyncError;if(l.issues.length){let n=new((s?.Err)??e)(l.issues.map(e=>o.finalizeIssue(e,c,i.config())));throw o.captureStackTrace(n,s?.callee??t),n}return l.value};return t},e.parse=(0,e._parse)(a.$ZodRealError),e._parseAsync=e=>{let t=async(n,r,a,s)=>{let c=a?{...a,async:!0}:{async:!0},l=n._zod.run({value:r,issues:[]},c);if(l instanceof Promise&&(l=await l),l.issues.length){let n=new((s?.Err)??e)(l.issues.map(e=>o.finalizeIssue(e,c,i.config())));throw o.captureStackTrace(n,s?.callee??t),n}return l.value};return t},e.parseAsync=(0,e._parseAsync)(a.$ZodRealError),e._safeParse=e=>(t,n,r)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new i.$ZodAsyncError;return o.issues.length?c(e,o.issues,a):{success:!0,data:o.value}},e.safeParse=(0,e._safeParse)(a.$ZodRealError);function c(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>o.finalizeIssue(e,n,i.config()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}e._safeParseAsync=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?c(e,a.issues,i):{success:!0,data:a.value}},e.safeParseAsync=(0,e._safeParseAsync)(a.$ZodRealError);let l=Symbol.for(`zod.compile.invalid`),u=Symbol.for(`zod.compile.fallback`);e.validate=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==l)return!0;if(r.definite===!0&&n===void 0)return!1}return d(e,t,n)});function d(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},a=e._zod.bag.fallbackRun,o;if(a?(r[u]=!0,o=a({value:t,issues:[]},r)):o=e._zod.run({value:t,issues:[]},r),o instanceof Promise)throw new i.$ZodAsyncError;return o.issues.length===0}e.validateAsync=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},e._encode=t=>{let n=(0,e._parse)(t),r=(e,t,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return n(e,t,o,s(r,a))};return r},e.encode=(0,e._encode)(a.$ZodRealError),e._decode=t=>{let n=(0,e._parse)(t),r=(e,t,i,a)=>n(e,t,i,s(r,a));return r},e.decode=(0,e._decode)(a.$ZodRealError),e._encodeAsync=t=>{let n=(0,e._parseAsync)(t),r=async(e,t,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await n(e,t,o,s(r,a))};return r},e.encodeAsync=(0,e._encodeAsync)(a.$ZodRealError),e._decodeAsync=t=>{let n=(0,e._parseAsync)(t),r=async(e,t,i,a)=>await n(e,t,i,s(r,a));return r},e.decodeAsync=(0,e._decodeAsync)(a.$ZodRealError),e._safeEncode=t=>(n,r,i)=>{let a=i?{...i,direction:`backward`}:{direction:`backward`};return(0,e._safeParse)(t)(n,r,a)},e.safeEncode=(0,e._safeEncode)(a.$ZodRealError),e._safeDecode=t=>(n,r,i)=>(0,e._safeParse)(t)(n,r,i),e.safeDecode=(0,e._safeDecode)(a.$ZodRealError),e._safeEncodeAsync=t=>async(n,r,i)=>{let a=i?{...i,direction:`backward`}:{direction:`backward`};return(0,e._safeParseAsync)(t)(n,r,a)},e.safeEncodeAsync=(0,e._safeEncodeAsync)(a.$ZodRealError),e._safeDecodeAsync=t=>async(n,r,i)=>(0,e._safeParseAsync)(t)(n,r,i),e.safeDecodeAsync=(0,e._safeDecodeAsync)(a.$ZodRealError),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Af=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.sha1_base64=e.sha1_hex=e.md5_base64url=e.md5_base64=e.md5_hex=e.hex=e.uppercase=e.lowercase=e.undefined=e.null=e.boolean=e.number=e.integer=e.bigint=e.string=e.anyString=e.date=e.iban=e.currencyCode=e.creditCard=e.e164=e.httpProtocol=e.domain=e.hostname=e.base64url=e.base64=e.cidrv6=e.cidrv4=e.mac=e.ipv6=e.ipv4=e.browserEmail=e.idnEmail=e.unicodeEmail=e.rfc5322Email=e.html5Email=e.email=e.uuid7=e.uuid6=e.uuid4=e.uuid=e.guid=e.extendedDuration=e.duration=e.nanoid=e.ksuid=e.xid=e.ulid=e.cuid2=e.cuid=void 0,e.sha512_base64url=e.sha512_base64=e.sha512_hex=e.sha384_base64url=e.sha384_base64=e.sha384_hex=e.sha256_base64url=e.sha256_base64=e.sha256_hex=e.sha1_base64url=void 0,e.nanoidOfLength=a,e.emoji=o,e.time=u,e.datetime=d;let i=r($());e.cuid=/^[cC][0-9a-z]{6,}$/,e.cuid2=/^[0-9a-z]+$/,e.ulid=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,e.xid=/^[0-9a-vA-V]{20}$/,e.ksuid=/^[A-Za-z0-9]{27}$/,e.nanoid=/^[a-zA-Z0-9_-]{21}$/;function a(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}e.duration=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,e.extendedDuration=/^[-+]?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)?)??$/,e.guid=/^([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})$/,e.uuid=e=>e?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})$`):/^([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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,e.uuid4=(0,e.uuid)(4),e.uuid6=(0,e.uuid)(6),e.uuid7=(0,e.uuid)(7),e.email=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,e.html5Email=/^[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])?)*$/,e.rfc5322Email=/^(([^<>()\[\]\\.,;:\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,}))$/,e.unicodeEmail=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,e.idnEmail=e.unicodeEmail,e.browserEmail=/^[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])?)*$/;function o(){return RegExp(`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`,`u`)}e.ipv4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,e.ipv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,e.mac=e=>{let t=i.escapeRegex(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},e.cidrv4=/^((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])$/,e.cidrv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,e.base64=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,e.base64url=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,e.hostname=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,e.domain=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,e.httpProtocol=/^https?$/,e.e164=/^\+[1-9]\d{6,14}$/,e.creditCard=/^\d(?:[ -]?\d){11,18}$/,e.currencyCode=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,e.iban=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/;let s=`(?:(?:\\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])))`;function c(e){return RegExp(`^${e}$`)}e.date=c(s);function l(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function u(e){return RegExp(`^${l(e)}$`)}function d(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${l({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${l({precision:e.precision})}`:n;return RegExp(`^${s}T(?:${r})$`)}e.anyString=/^[\s\S]{0,}$/,e.string=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},e.bigint=/^-?\d+n?$/,e.integer=/^-?\d+$/,e.number=/^-?\d+(?:\.\d+)?$/,e.boolean=/^(?:true|false)$/i,e.null=/^null$/i,e.undefined=/^undefined$/i,e.lowercase=/^[^A-Z]*$/,e.uppercase=/^[^a-z]*$/,e.hex=/^[0-9a-fA-F]*$/;function f(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function p(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}e.md5_hex=/^[0-9a-fA-F]{32}$/,e.md5_base64=f(22,`==`),e.md5_base64url=p(22),e.sha1_hex=/^[0-9a-fA-F]{40}$/,e.sha1_base64=f(27,`=`),e.sha1_base64url=p(27),e.sha256_hex=/^[0-9a-fA-F]{64}$/,e.sha256_base64=f(43,`=`),e.sha256_base64url=p(43),e.sha384_hex=/^[0-9a-fA-F]{96}$/,e.sha384_base64=f(64,``),e.sha384_base64url=p(64),e.sha512_hex=/^[0-9a-fA-F]{128}$/,e.sha512_base64=f(86,`==`),e.sha512_base64url=p(86),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),jf=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.$ZodCheckOverwrite=e.$ZodCheckMimeType=e.$ZodCheckProperties=e.$ZodCheckProperty=e.$ZodCheckEndsWith=e.$ZodCheckStartsWith=e.$ZodCheckIncludes=e.$ZodCheckUpperCase=e.$ZodCheckLowerCase=e.$ZodCheckRegex=e.$ZodCheckStringFormat=e.$ZodCheckLengthEquals=e.$ZodCheckMinLength=e.$ZodCheckMaxLength=e.$ZodCheckSizeEquals=e.$ZodCheckMinSize=e.$ZodCheckMaxSize=e.$ZodCheckBigIntFormat=e.$ZodCheckNumberFormat=e.$ZodCheckMultipleOf=e.$ZodCheckGreaterThan=e.$ZodCheckLessThan=e.$ZodCheck=void 0;let i=r(Df()),a=r(Af()),o=r($());e.$ZodCheck=i.$constructor(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])});let s=e=>{let t=e.value;return!o.nullish(t)&&t.size!==void 0},c=e=>{let t=e.value;return!o.nullish(t)&&t.length!==void 0},l={number:`number`,bigint:`bigint`,object:`date`};e.$ZodCheckLessThan=i.$constructor(`$ZodCheckLessThan`,(t,n)=>{e.$ZodCheck.init(t,n);let r=l[typeof n.value];t._zod.check=e=>{(n.inclusive?e.value<=n.value:e.value<n.value)||e.issues.push({origin:l[typeof e.value]??r,code:`too_big`,maximum:typeof n.value==`object`?n.value.getTime():n.value,input:e.value,inclusive:n.inclusive,inst:t,continue:!n.abort})}}),e.$ZodCheckGreaterThan=i.$constructor(`$ZodCheckGreaterThan`,(t,n)=>{e.$ZodCheck.init(t,n);let r=l[typeof n.value];t._zod.check=e=>{(n.inclusive?e.value>=n.value:e.value>n.value)||e.issues.push({origin:l[typeof e.value]??r,code:`too_small`,minimum:typeof n.value==`object`?n.value.getTime():n.value,input:e.value,inclusive:n.inclusive,inst:t,continue:!n.abort})}}),e.$ZodCheckMultipleOf=i.$constructor(`$ZodCheckMultipleOf`,(t,n)=>{e.$ZodCheck.init(t,n),t._zod.check=e=>{if(typeof e.value!=typeof n.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof e.value==`bigint`?n.value!==BigInt(0)&&e.value%n.value===BigInt(0):o.floatSafeRemainder(e.value,n.value)===0)||e.issues.push({origin:typeof e.value,code:`not_multiple_of`,divisor:n.value,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodCheckNumberFormat=i.$constructor(`$ZodCheckNumberFormat`,(t,n)=>{e.$ZodCheck.init(t,n),n.format=n.format||`float64`;let r=n.format?.includes(`int`),i=r?`int`:`number`,[a,s]=o.NUMBER_FORMAT_RANGES[n.format];t._zod.check=e=>{let o=e.value;if(r){if(!Number.isInteger(o)){e.issues.push({expected:i,format:n.format,code:`invalid_type`,continue:!1,input:o,inst:t});return}if(!Number.isSafeInteger(o)){o>0?e.issues.push({input:o,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:t,origin:i,inclusive:!0,continue:!n.abort}):e.issues.push({input:o,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:t,origin:i,inclusive:!0,continue:!n.abort});return}}o<a&&e.issues.push({origin:`number`,input:o,code:`too_small`,minimum:a,inclusive:!0,inst:t,continue:!n.abort}),o>s&&e.issues.push({origin:`number`,input:o,code:`too_big`,maximum:s,inclusive:!0,inst:t,continue:!n.abort})}}),e.$ZodCheckBigIntFormat=i.$constructor(`$ZodCheckBigIntFormat`,(t,n)=>{e.$ZodCheck.init(t,n);let[r,i]=o.BIGINT_FORMAT_RANGES[n.format];t._zod.check=e=>{let a=e.value;a<r&&e.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:r,inclusive:!0,inst:t,continue:!n.abort}),a>i&&e.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:i,inclusive:!0,inst:t,continue:!n.abort})}}),e.$ZodCheckMaxSize=i.$constructor(`$ZodCheckMaxSize`,(t,n)=>{var r;e.$ZodCheck.init(t,n),(r=t._zod.def).when??(r.when=s),t._zod.check=e=>{let r=e.value;r.size<=n.maximum||e.issues.push({origin:o.getSizableOrigin(r),code:`too_big`,maximum:n.maximum,inclusive:!0,input:r,inst:t,continue:!n.abort})}}),e.$ZodCheckMinSize=i.$constructor(`$ZodCheckMinSize`,(t,n)=>{var r;e.$ZodCheck.init(t,n),(r=t._zod.def).when??(r.when=s),t._zod.check=e=>{let r=e.value;r.size>=n.minimum||e.issues.push({origin:o.getSizableOrigin(r),code:`too_small`,minimum:n.minimum,inclusive:!0,input:r,inst:t,continue:!n.abort})}}),e.$ZodCheckSizeEquals=i.$constructor(`$ZodCheckSizeEquals`,(t,n)=>{var r;e.$ZodCheck.init(t,n),(r=t._zod.def).when??(r.when=s),t._zod.check=e=>{let r=e.value,i=r.size;if(i===n.size)return;let a=i>n.size;e.issues.push({origin:o.getSizableOrigin(r),...a?{code:`too_big`,maximum:n.size}:{code:`too_small`,minimum:n.size},inclusive:!0,exact:!0,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodCheckMaxLength=i.$constructor(`$ZodCheckMaxLength`,(t,n)=>{var r;e.$ZodCheck.init(t,n),(r=t._zod.def).when??(r.when=c),t._zod.check=e=>{let r=e.value,i=r.length;if((typeof r==`string`&&i>n.maximum?o.codePointLength(r):i)<=n.maximum)return;let a=o.getLengthableOrigin(r);e.issues.push({origin:a,code:`too_big`,maximum:n.maximum,inclusive:!0,input:r,inst:t,continue:!n.abort})}}),e.$ZodCheckMinLength=i.$constructor(`$ZodCheckMinLength`,(t,n)=>{var r;e.$ZodCheck.init(t,n),(r=t._zod.def).when??(r.when=c),t._zod.check=e=>{let r=e.value,i=r.length;if((typeof r==`string`&&i>=n.minimum&&i<n.minimum*2?o.codePointLength(r):i)>=n.minimum)return;let a=o.getLengthableOrigin(r);e.issues.push({origin:a,code:`too_small`,minimum:n.minimum,inclusive:!0,input:r,inst:t,continue:!n.abort})}}),e.$ZodCheckLengthEquals=i.$constructor(`$ZodCheckLengthEquals`,(t,n)=>{var r;e.$ZodCheck.init(t,n),(r=t._zod.def).when??(r.when=c),t._zod.check=e=>{let r=e.value,i=r.length,a=typeof r==`string`&&i>=n.length&&i<=n.length*2?o.codePointLength(r):i;if(a===n.length)return;let s=o.getLengthableOrigin(r),c=a>n.length;e.issues.push({origin:s,...c?{code:`too_big`,maximum:n.length}:{code:`too_small`,minimum:n.length},inclusive:!0,exact:!0,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodCheckStringFormat=i.$constructor(`$ZodCheckStringFormat`,(t,n)=>{var r,i;e.$ZodCheck.init(t,n),n.pattern?(r=t._zod).check??(r.check=e=>{n.pattern.lastIndex=0,!n.pattern.test(e.value)&&e.issues.push({origin:`string`,code:`invalid_format`,format:n.format,input:e.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:t,continue:!n.abort})}):(i=t._zod).check??(i.check=()=>{})}),e.$ZodCheckRegex=i.$constructor(`$ZodCheckRegex`,(t,n)=>{e.$ZodCheckStringFormat.init(t,n),t._zod.check=e=>{n.pattern.lastIndex=0,!n.pattern.test(e.value)&&e.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:e.value,pattern:n.pattern.toString(),inst:t,continue:!n.abort})}}),e.$ZodCheckLowerCase=i.$constructor(`$ZodCheckLowerCase`,(t,n)=>{n.pattern??=a.lowercase,e.$ZodCheckStringFormat.init(t,n)}),e.$ZodCheckUpperCase=i.$constructor(`$ZodCheckUpperCase`,(t,n)=>{n.pattern??=a.uppercase,e.$ZodCheckStringFormat.init(t,n)}),e.$ZodCheckIncludes=i.$constructor(`$ZodCheckIncludes`,(t,n)=>{e.$ZodCheck.init(t,n);let r=o.escapeRegex(n.includes);n.pattern=new RegExp(typeof n.position==`number`?`^.{${n.position},}${r}`:r),t._zod.check=e=>{e.value.includes(n.includes,n.position)||e.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:n.includes,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodCheckStartsWith=i.$constructor(`$ZodCheckStartsWith`,(t,n)=>{e.$ZodCheck.init(t,n);let r=RegExp(`^${o.escapeRegex(n.prefix)}.*`);n.pattern??=r,t._zod.check=e=>{e.value.startsWith(n.prefix)||e.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:n.prefix,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodCheckEndsWith=i.$constructor(`$ZodCheckEndsWith`,(t,n)=>{e.$ZodCheck.init(t,n);let r=RegExp(`.*${o.escapeRegex(n.suffix)}$`);n.pattern??=r,t._zod.check=e=>{e.value.endsWith(n.suffix)||e.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:n.suffix,input:e.value,inst:t,continue:!n.abort})}});function u(e,t,n){e.issues.length&&t.issues.push(...o.prefixIssues(n,e.issues))}e.$ZodCheckProperty=i.$constructor(`$ZodCheckProperty`,(t,n)=>{e.$ZodCheck.init(t,n),t._zod.check=e=>{let t=n.schema._zod.run({value:e.value[n.property],issues:[]},{});if(t instanceof Promise)return t.then(t=>u(t,e,n.property));u(t,e,n.property)}}),e.$ZodCheckProperties=i.$constructor(`$ZodCheckProperties`,(t,n)=>{e.$ZodCheck.init(t,n),o.hide(t,Symbol.iterator,function*(){yield t});let r;t._zod.check=e=>{if(e.value==null){e.issues.push({expected:`object`,code:`invalid_type`,input:e.value,inst:t});return}r??=Reflect.ownKeys(n.shape).map(e=>[e,n.shape[e]]);let i=e.value,a;for(let[t,n]of r){let r=n._zod.run({value:i[t],issues:[]},{});r instanceof Promise?(a??=[],a.push(r.then(n=>u(n,e,t)))):u(r,e,t)}if(a)return Promise.all(a).then(()=>void 0)}}),e.$ZodCheckMimeType=i.$constructor(`$ZodCheckMimeType`,(t,n)=>{e.$ZodCheck.init(t,n);let r=new Set(n.mime);t._zod.check=e=>{r.has(e.value.type)||e.issues.push({code:`invalid_value`,values:n.mime,input:e.value.type,inst:t,continue:!n.abort})}}),e.$ZodCheckOverwrite=i.$constructor(`$ZodCheckOverwrite`,(t,n)=>{e.$ZodCheck.init(t,n),t._zod.check=e=>{e.value=n.tx(e.value)}}),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Mf=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Doc=void 0,e.Doc=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
164
+ `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
165
+ `)}\n};`)(...Object.values(this.closed))}},(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Nf=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version={major:4,minor:6,patch:7},(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Pf=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.$ZodObject=e.$ZodArray=e.$ZodDate=e.$ZodVoid=e.$ZodNever=e.$ZodUnknown=e.$ZodAny=e.$ZodNull=e.$ZodUndefined=e.$ZodSymbol=e.$ZodBigIntFormat=e.$ZodBigInt=e.$ZodBoolean=e.$ZodNumberFormat=e.$ZodNumber=e.$ZodCustomStringFormat=e.$ZodJWT=e.$ZodIBAN=e.$ZodCreditCard=e.$ZodE164=e.$ZodBase64URL=e.base64urlCharset=e.$ZodBase64=e.base64Charset=e.$ZodCIDRv6=e.$ZodCIDRv4=e.$ZodMAC=e.$ZodIPv6=e.$ZodIPv4=e.$ZodISODuration=e.$ZodISOTime=e.$ZodISODate=e.$ZodISODateTime=e.$ZodKSUID=e.$ZodXID=e.$ZodULID=e.$ZodCUID2=e.$ZodCUID=e.$ZodNanoID=e.$ZodEmoji=e.$ZodURL=e.URL_UNPARSEABLE=e.URL_BAD_FORMAT=e.$ZodEmail=e.$ZodUUID=e.$ZodGUID=e.$ZodStringFormat=e.$ZodString=e.clone=e.$ZodType=void 0,e.$ZodCustom=e.$ZodLazy=e.$ZodPromise=e.$ZodFunction=e.$ZodTemplateLiteral=e.$ZodReadonly=e.$ZodPreprocess=e.$ZodCodec=e.$ZodPipe=e.$ZodNaN=e.$ZodCatch=e.$ZodSuccess=e.$ZodNonOptional=e.$ZodPrefault=e.$ZodDefault=e.$ZodNullable=e.$ZodExactOptional=e.$ZodOptional=e.$ZodTransform=e.$ZodFile=e.$ZodLiteral=e.$ZodEnum=e.$ZodSet=e.$ZodMap=e.$ZodRecord=e.$ZodTuple=e.$ZodIntersection=e.$ZodDiscriminatedUnion=e.$ZodXor=e.$ZodUnion=e.$ZodObjectJIT=void 0,e.standardProps=p,e.canParseURL=h,e.validateURL=g,e.parseURLObject=_,e.stripTabAndNewline=y,e.urlHostnameOk=b,e.urlProtocolOk=x,e.isValidIPv6=C,e.isValidCIDRv6=w,e.isValidBase64=T,e.isValidBase64URL=E,e.isValidCreditCard=k,e.isValidIBAN=j,e.isValidJWT=M,e.getDiscriminatedOption=W,e.mergeValues=ee;let i=r(jf()),a=r(Df()),o=Mf(),s=kf(),c=r(Af()),l=r($()),u=Nf();e.$ZodType=a.$constructor(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=u.version;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=l.aborted(t),o;for(let s of n){if(s._zod.def.when){if(l.explicitlyAborted(t)||!s._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,c=s._zod.check(t);if(c instanceof Promise&&r?.async===!1)throw new a.$ZodAsyncError;if(o||c instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await c,t.issues.length!==n&&(l.attachSchema(t.issues,n,e),i||=l.aborted(t,n))});else{if(t.issues.length===n)continue;l.attachSchema(t.issues,n,e),i||=l.aborted(t,n)}}return o?o.then(()=>t):t},n=(n,r,o)=>{if(l.aborted(n))return n.aborted=!0,n;let s=t(r,i,o);if(s instanceof Promise){if(o.async===!1)throw new a.$ZodAsyncError;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(r,o)=>{if(o.skipChecks)return e._zod.parse(r,o);if(o.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,o)):n(t,r,o)}let s=e._zod.parse(r,o);if(s instanceof Promise){if(o.async===!1)throw new a.$ZodAsyncError;return s.then(e=>t(e,i,o))}return t(s,i,o)}}},{get"~standard"(){return l.hide(this,`~standard`,p(this))},set"~standard"(e){l.own(this,`~standard`,e)}});let d=(e,t)=>e.issues.length?{issues:e.issues.map(e=>l.finalizeIssue(e,t,a.config()))}:{value:e.value};async function f(e,t){let n={async:!0};return d(await e._zod.run({value:t,issues:[]},n),n)}function p(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return d(r,n)}catch{}return f(e,t)},vendor:`zod`,version:1}}var m=$();Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return m.clone}}),e.$ZodString=a.$constructor(`$ZodString`,(t,n)=>{e.$ZodType.init(t,n),t._zod.pattern=n.pattern??c.anyString,t._zod.parse=(e,r)=>{if(n.coerce)try{e.value=String(e.value)}catch{}return typeof e.value==`string`||e.issues.push({expected:`string`,code:`invalid_type`,input:e.value,inst:t}),e}}),e.$ZodStringFormat=a.$constructor(`$ZodStringFormat`,(t,n)=>{i.$ZodCheckStringFormat.init(t,n),e.$ZodString.init(t,n)}),e.$ZodGUID=a.$constructor(`$ZodGUID`,(t,n)=>{n.pattern??=c.guid,e.$ZodStringFormat.init(t,n)}),e.$ZodUUID=a.$constructor(`$ZodUUID`,(t,n)=>{if(n.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(e===void 0)throw Error(`Invalid UUID version: "${n.version}"`);n.pattern??=c.uuid(e)}else n.pattern??=c.uuid();e.$ZodStringFormat.init(t,n)}),e.$ZodEmail=a.$constructor(`$ZodEmail`,(t,n)=>{n.pattern??=c.email,e.$ZodStringFormat.init(t,n)}),e.URL_BAD_FORMAT=1,e.URL_UNPARSEABLE=2;function h(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function g(t,n){return!(`normalize`in n)&&!(`hostname`in n)&&!(`protocol`in n)?h(t)||e.URL_UNPARSEABLE:_(t,n)}function _(t,n){if(!n.normalize&&n.protocol?.source===c.httpProtocol.source&&!/^https?:\/\//i.test(t))return e.URL_BAD_FORMAT;try{if(typeof URL<`u`){let n=URL;if(typeof n.parse==`function`)return n.parse(t)??e.URL_UNPARSEABLE}return new URL(t)}catch{return e.URL_UNPARSEABLE}}let v=/[\t\n\r]/g;function y(e){return e.replace(v,``)}function b(e,t){return t.lastIndex=0,t.test(e.hostname)}function x(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}e.$ZodURL=a.$constructor(`$ZodURL`,(t,n)=>{e.$ZodStringFormat.init(t,n),t._zod.check=r=>{try{let i=r.value.trim(),a=g(i,n);if(a===e.URL_BAD_FORMAT){r.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:r.value,inst:t,continue:!n.abort});return}if(a===e.URL_UNPARSEABLE){r.issues.push({code:`invalid_format`,format:`url`,input:r.value,inst:t,continue:!n.abort});return}if(a===!0){r.value=y(i);return}n.hostname&&!b(a,n.hostname)&&r.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:n.hostname.source,input:r.value,inst:t,continue:!n.abort}),n.protocol&&!x(a,n.protocol)&&r.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:n.protocol.source,input:r.value,inst:t,continue:!n.abort}),r.value=n.normalize?a.href:y(i);return}catch{r.issues.push({code:`invalid_format`,format:`url`,input:r.value,inst:t,continue:!n.abort})}}}),e.$ZodEmoji=a.$constructor(`$ZodEmoji`,(t,n)=>{n.pattern??=c.emoji(),e.$ZodStringFormat.init(t,n)}),e.$ZodNanoID=a.$constructor(`$ZodNanoID`,(t,n)=>{if(n.length!==void 0&&(!Number.isInteger(n.length)||n.length<1))throw Error(`Invalid nanoid length: ${n.length}`);n.pattern??=n.length===void 0?c.nanoid:c.nanoidOfLength(n.length),e.$ZodStringFormat.init(t,n)}),e.$ZodCUID=a.$constructor(`$ZodCUID`,(t,n)=>{n.pattern??=c.cuid,e.$ZodStringFormat.init(t,n)}),e.$ZodCUID2=a.$constructor(`$ZodCUID2`,(t,n)=>{n.pattern??=c.cuid2,e.$ZodStringFormat.init(t,n)}),e.$ZodULID=a.$constructor(`$ZodULID`,(t,n)=>{n.pattern??=c.ulid,e.$ZodStringFormat.init(t,n)}),e.$ZodXID=a.$constructor(`$ZodXID`,(t,n)=>{n.pattern??=c.xid,e.$ZodStringFormat.init(t,n)}),e.$ZodKSUID=a.$constructor(`$ZodKSUID`,(t,n)=>{n.pattern??=c.ksuid,e.$ZodStringFormat.init(t,n)}),e.$ZodISODateTime=a.$constructor(`$ZodISODateTime`,(t,n)=>{n.pattern??=c.datetime(n),e.$ZodStringFormat.init(t,n)}),e.$ZodISODate=a.$constructor(`$ZodISODate`,(t,n)=>{n.pattern??=c.date,e.$ZodStringFormat.init(t,n)}),e.$ZodISOTime=a.$constructor(`$ZodISOTime`,(t,n)=>{n.pattern??=c.time(n),e.$ZodStringFormat.init(t,n)}),e.$ZodISODuration=a.$constructor(`$ZodISODuration`,(t,n)=>{n.pattern??=c.duration,e.$ZodStringFormat.init(t,n)}),e.$ZodIPv4=a.$constructor(`$ZodIPv4`,(t,n)=>{n.pattern??=c.ipv4,e.$ZodStringFormat.init(t,n)});let S=/^[0-9a-fA-F:.]+$/;function C(e){return S.test(e)?h(`http://[${e}]`):!1}e.$ZodIPv6=a.$constructor(`$ZodIPv6`,(t,n)=>{n.pattern??=c.ipv6,e.$ZodStringFormat.init(t,n),t._zod.check=e=>{C(e.value)||e.issues.push({code:`invalid_format`,format:`ipv6`,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodMAC=a.$constructor(`$ZodMAC`,(t,n)=>{n.pattern??=c.mac(n.delimiter),e.$ZodStringFormat.init(t,n)}),e.$ZodCIDRv4=a.$constructor(`$ZodCIDRv4`,(t,n)=>{n.pattern??=c.cidrv4,e.$ZodStringFormat.init(t,n)});function w(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:C(n)}e.$ZodCIDRv6=a.$constructor(`$ZodCIDRv6`,(t,n)=>{n.pattern??=c.cidrv6,e.$ZodStringFormat.init(t,n),t._zod.check=e=>{w(e.value)||e.issues.push({code:`invalid_format`,format:`cidrv6`,input:e.value,inst:t,continue:!n.abort})}});function T(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}e.base64Charset=/^[0-9a-zA-Z+/]*={0,2}$/,e.$ZodBase64=a.$constructor(`$ZodBase64`,(t,n)=>{n.pattern??=e.base64Charset,e.$ZodStringFormat.init(t,n),t._zod.check=e=>{T(e.value)||e.issues.push({code:`invalid_format`,format:`base64`,input:e.value,inst:t,continue:!n.abort})}}),e.base64urlCharset=/^[A-Za-z0-9_-]*$/;function E(t){if(!e.base64urlCharset.test(t))return!1;let n=t.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return T(n.padEnd(Math.ceil(n.length/4)*4,`=`))}e.$ZodBase64URL=a.$constructor(`$ZodBase64URL`,(t,n)=>{n.pattern??=e.base64urlCharset,e.$ZodStringFormat.init(t,n),t._zod.check=e=>{E(e.value)||e.issues.push({code:`invalid_format`,format:`base64url`,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodE164=a.$constructor(`$ZodE164`,(t,n)=>{n.pattern??=c.e164,e.$ZodStringFormat.init(t,n)});let D=/[- ]/g;function O(e){let t=e.length,n=1,r=0;for(;t;){let i=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][i]:i}return r%10==0}function k(e){return c.creditCard.test(e)?O(e.replace(D,``)):!1}e.$ZodCreditCard=a.$constructor(`$ZodCreditCard`,(t,n)=>{n.pattern??=c.creditCard,e.$ZodStringFormat.init(t,n),t._zod.check=e=>{k(e.value)||e.issues.push({code:`invalid_format`,format:`credit_card`,input:e.value,inst:t,continue:!n.abort})}});function A(e){let t=0,n=e.length;for(let r=4;r<n;r++){let n=e.charCodeAt(r);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}for(let n=0;n<4;n++){let r=e.charCodeAt(n);t=(r>=65?t*100+(r-55):t*10+(r-48))%97}return t===1}function j(e){return c.iban.test(e)?A(e):!1}e.$ZodIBAN=a.$constructor(`$ZodIBAN`,(t,n)=>{n.pattern??=c.iban,e.$ZodStringFormat.init(t,n),t._zod.check=e=>{j(e.value)||e.issues.push({code:`invalid_format`,format:`iban`,input:e.value,inst:t,continue:!n.abort})}});function M(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}e.$ZodJWT=a.$constructor(`$ZodJWT`,(t,n)=>{e.$ZodStringFormat.init(t,n),t._zod.check=e=>{M(e.value,n.alg)||e.issues.push({code:`invalid_format`,format:`jwt`,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodCustomStringFormat=a.$constructor(`$ZodCustomStringFormat`,(t,n)=>{e.$ZodStringFormat.init(t,n),t._zod.check=e=>{n.fn(e.value)||e.issues.push({code:`invalid_format`,format:n.format,input:e.value,inst:t,continue:!n.abort})}}),e.$ZodNumber=a.$constructor(`$ZodNumber`,(t,n)=>{e.$ZodType.init(t,n),t._zod.pattern=c.number,t._zod.parse=(e,r)=>{if(n.coerce)try{e.value=Number(e.value)}catch{}let i=e.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return e;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return e.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:t,...a?{received:a}:{}}),e}}),e.$ZodNumberFormat=a.$constructor(`$ZodNumberFormat`,(t,n)=>{i.$ZodCheckNumberFormat.init(t,n),e.$ZodNumber.init(t,n)}),e.$ZodBoolean=a.$constructor(`$ZodBoolean`,(t,n)=>{e.$ZodType.init(t,n),t._zod.pattern=c.boolean,t._zod.parse=(e,r)=>{if(n.coerce)try{e.value=!!e.value}catch{}let i=e.value;return typeof i==`boolean`||e.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:t}),e}}),e.$ZodBigInt=a.$constructor(`$ZodBigInt`,(t,n)=>{e.$ZodType.init(t,n),t._zod.pattern=c.bigint,t._zod.parse=(e,r)=>{if(n.coerce)try{e.value=BigInt(e.value)}catch{}return typeof e.value==`bigint`||e.issues.push({expected:`bigint`,code:`invalid_type`,input:e.value,inst:t}),e}}),e.$ZodBigIntFormat=a.$constructor(`$ZodBigIntFormat`,(t,n)=>{i.$ZodCheckBigIntFormat.init(t,n),e.$ZodBigInt.init(t,n)}),e.$ZodSymbol=a.$constructor(`$ZodSymbol`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,n)=>{let r=e.value;return typeof r==`symbol`||e.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:t}),e}}),e.$ZodUndefined=a.$constructor(`$ZodUndefined`,(t,n)=>{e.$ZodType.init(t,n),t._zod.pattern=c.undefined,t._zod.values=new Set([void 0]),t._zod.parse=(e,n)=>{let r=e.value;return r===void 0||e.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:t}),e}}),e.$ZodNull=a.$constructor(`$ZodNull`,(t,n)=>{e.$ZodType.init(t,n),t._zod.pattern=c.null,t._zod.values=new Set([null]),t._zod.parse=(e,n)=>{let r=e.value;return r===null||e.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:t}),e}}),e.$ZodAny=a.$constructor(`$ZodAny`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=e=>e}),e.$ZodUnknown=a.$constructor(`$ZodUnknown`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=e=>e}),e.$ZodNever=a.$constructor(`$ZodNever`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,n)=>(e.issues.push({expected:`never`,code:`invalid_type`,input:e.value,inst:t}),e)}),e.$ZodVoid=a.$constructor(`$ZodVoid`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,n)=>{let r=e.value;return r===void 0||e.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:t}),e}}),e.$ZodDate=a.$constructor(`$ZodDate`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,r)=>{if(n.coerce)try{e.value=new Date(e.value)}catch{}let i=e.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||e.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:t}),e}});function N(e,t){let n=l.sizeCaps(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of l.sizeCaps(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,l.attachSchema(n.issues,t,e),n}}return i(n,a)}}let P=e=>Array.isArray(e)?e.length:-1,F=e=>e instanceof Map?e.size:-1,I=e=>e instanceof Set?e.size:-1;function L(e,t,n){e.issues.length&&t.issues.push(...l.prefixIssues(n,e.issues)),t.value[n]=e.value}e.$ZodArray=a.$constructor(`$ZodArray`,(t,n)=>{e.$ZodType.init(t,n);let r=a.globalConfig.memoizer;r?.attach(t),t._zod.parse=(e,i)=>{let a=e.value;if(!Array.isArray(a))return e.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:t}),e;e.value=r?r.alloc(t,e,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let t=0;t<a.length;t++){let r=a[t],c=n.element._zod.run({value:r,issues:[]},i);if(c instanceof Promise)o.push(c.then(n=>L(n,e,t)));else if(L(c,e,t),s&&c.issues.length!==0&&l.aborted(c))break}return o.length?Promise.all(o).then(()=>e):e},N(t,P)});function R(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(!(!o&&s&&i===`optional`)){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...l.prefixIssues(n,e.issues))}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}let z=[];function B(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:z,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=l.optionalKeys(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function V(e,t,n,r,i,a,o){let s=[],c=i.keySet,u=i.catchall._zod,d=u.def.type,f=u.optin,p=u.optout,m=0;for(let i in t){if(o&&n.issues.length!==m){if(l.aborted(n,m))break;m=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){d===`never`&&s.push(i);continue}if(d===`never`){s.push(i);continue}let a=u.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>R(e,n,i,t,f,p))):R(a,n,i,t,f,p)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}e.$ZodObject=a.$constructor(`$ZodObject`,(t,n)=>{e.$ZodType.init(t,n);let r=Object.getOwnPropertyDescriptor(n,`shape`),i=r?.get?r.get.raw:n.shape??{};if(i){let e=()=>{let t={...i};return Object.defineProperty(n,"shape",{value:t}),e.raw=t,t};e.raw=i,Object.defineProperty(n,"shape",{get:e})}let o=l.cached(()=>B(n));l.defineLazyInternal(t,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||l.assignProp(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let s=l.isObject,c=n.catchall,u,d=a.globalConfig.memoizer;d?.attach(t),t._zod.parse=(e,n)=>{u??=o.value;let r=e.value;if(!s(r))return e.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:t}),e;e.value=d?d.alloc(t,e,{},n):{};let i=[],a=u.shape,f=n?.abortEarly,p=e.issues.length;for(let t of u.allKeys){if(f&&e.issues.length!==p){if(l.aborted(e,p))break;p=e.issues.length}if(t===`__proto__`)continue;let o=a[t],s=o._zod.optin,c=o._zod.optout,u=o._zod.run({value:r[t],issues:[]},n);u instanceof Promise?i.push(u.then(n=>R(n,e,t,r,s,c))):R(u,e,t,r,s,c)}return c?V(i,r,e,n,o.value,t,f===!0):i.length?Promise.all(i).then(()=>e):e}}),e.$ZodObjectJIT=a.$constructor(`$ZodObjectJIT`,(t,n)=>{e.$ZodObject.init(t,n);let r=t._zod.parse,i=l.cached(()=>B(n)),s=a.globalConfig.memoizer,c=e=>{let n=i.value,r=n.symbolKeys,a=new o.Doc([`payload`,`ctx`],{shape:e,inst:t,memo:s,syms:r}),c=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,u=(e,t)=>`
166
+ let ${e}_ab = false;
167
+ for (let i = 0; i < ${e}.issues.length; i++) {
168
+ const iss = ${e}.issues[i];
169
+ iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
170
+ payload.issues.push(iss);
171
+ if (iss.continue !== true) ${e}_ab = true;
172
+ }
173
+ if (${e}_ab && ctx && ctx.abortEarly) {
174
+ payload.value = newResult;
175
+ return payload;
176
+ }`;a.write(`const input = payload.value;`);let d=Object.create(null),f=0;for(let e of n.allKeys)d[e]=`key_${f++}`;a.write(s?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let t of n.allKeys){if(t===`__proto__`)continue;let n=d[t],i=typeof t==`symbol`?`syms[${r.indexOf(t)}]`:l.esc(t),o=`${i} in input`,s=e[t],f=s?._zod?.optin,p=f!==void 0,m=s?._zod?.optout===`optional`;if(a.write(`const ${n} = ${c(i)};`),p&&m){let e=f===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;a.write(`
177
+ const ${n}_present = ${o};
178
+ if (!${n}.issues.length || ${n}_present) {
179
+ if (${n}.issues.length) {${u(n,i)}
180
+ }
181
+
182
+ if (${e}) {
183
+ newResult[${i}] = ${n}.value;
184
+ }
185
+ }
186
+
187
+ `)}else p?(a.write(`
188
+ if (${n}.issues.length) {${u(n,i)}
189
+ }
190
+ `),f===`defaulted`?a.write(`newResult[${i}] = ${n}.value;`):a.write(`
191
+ if (${n}.value !== undefined || ${o}) {
192
+ newResult[${i}] = ${n}.value;
193
+ }
194
+ `)):a.write(`
195
+ const ${n}_present = ${o};
196
+ if (${n}.issues.length) {${u(n,i)}
197
+ }
198
+ if (!${n}_present && !${n}.issues.length) {
199
+ payload.issues.push({
200
+ code: "invalid_type",
201
+ expected: "nonoptional",
202
+ input: undefined,
203
+ path: [${i}]
204
+ });
205
+ if (ctx && ctx.abortEarly) {
206
+ payload.value = newResult;
207
+ return payload;
208
+ }
209
+ }
210
+
211
+ if (${n}_present) {
212
+ newResult[${i}] = ${n}.value;
213
+ }
214
+
215
+ `)}return a.write(`payload.value = newResult;`),a.write(`return payload;`),a.compile()},u,d=l.isObject,f=!a.globalConfig.jitless,p=l.allowsEval,m=f&&p.value,h=n.catchall,g;t._zod.parse=(e,a)=>{g??=i.value;let o=e.value;return d(o)?f&&m&&a?.async===!1&&a.jitless!==!0?(u||=c(n.shape),e=u(e,a),h?V([],o,e,a,g,t,a?.abortEarly===!0):e):r(e,a):(e.issues.push({expected:`object`,code:`invalid_type`,input:o,inst:t}),e)}});function H(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!l.aborted(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>l.finalizeIssue(e,r,a.config())))}),t)}e.$ZodUnion=a.$constructor(`$ZodUnion`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),l.defineLazyInternal(t,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),l.defineLazyInternal(t,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),l.defineLazyInternal(t,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>l.cleanRegex(e.source)).join(`|`)})$`)}});let r=n.options.length===1?n.options[0]._zod.run:null;t._zod.parse=(e,i)=>{if(r)return r(e,i);let a=!1,o=[];for(let t of n.options){let n=t._zod.run({value:e.value,issues:[]},i);if(n instanceof Promise)o.push(n),a=!0;else{if(n.issues.length===0)return n;o.push(n)}}return a?Promise.all(o).then(n=>H(n,e,t,i)):H(o,e,t,i)}});function U(e,t,n,r){let i=[];for(let t=0;t<e.length;t++)e[t].issues.length===0&&i.push(t);return i.length===1?(t.value=e[i[0]].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>l.finalizeIssue(e,r,a.config())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1,matches:i}),t)}e.$ZodXor=a.$constructor(`$ZodXor`,(t,n)=>{e.$ZodUnion.init(t,n),n.inclusive=!1;let r=n.options.length===1?n.options[0]._zod.run:null;t._zod.parse=(e,i)=>{if(r)return r(e,i);let a=!1,o=[];for(let t of n.options){let n=t._zod.run({value:e.value,issues:[]},i);n instanceof Promise?(o.push(n),a=!0):o.push(n)}return a?Promise.all(o).then(n=>U(n,e,t,i)):U(o,e,t,i)}});function W(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=G(n.def),n.bag.optionsMap=r);let i=r.get(t);if(i===null)throw Error(`Ambiguous discriminator value "${String(t)}"`);return i}function G(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}e.$ZodDiscriminatedUnion=a.$constructor(`$ZodDiscriminatedUnion`,(t,n)=>{n.inclusive=!1,e.$ZodUnion.init(t,n);let r=t._zod.parse;l.defineLazyInternal(t,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||l.assignProp(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),n.options.forEach((e,t)=>{let r=l.rawShape(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,n.discriminator))throw Error(`Invalid discriminated union option at index "${t}"`)});let i=l.cached(()=>G(n));t._zod.parse=(e,a)=>{let o=e.value;if(!l.isObject(o))return e.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:t}),e;let s=o?.[n.discriminator],c=i.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(e,a):n.unionFallback||a.direction===`backward`?r(e,a):(e.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:n.discriminator,options:Array.from(i.value.keys()).filter(e=>i.value.get(e)!==null),input:o,path:[n.discriminator],inst:t}),e)}}),e.$ZodIntersection=a.$constructor(`$ZodIntersection`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,t)=>{let r=e.value,i=n.left._zod.run({value:r,issues:[]},t),a=n.right._zod.run({value:r,issues:[]},t);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>K(e,t,n)):K(e,i,a)}});function ee(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(l.isPlainObject(e)&&l.isPlainObject(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=ee(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ee(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function K(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=ee(t.value,n.value);if(!c.valid){if(l.aborted(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}e.$ZodTuple=a.$constructor(`$ZodTuple`,(t,n)=>{e.$ZodType.init(t,n);let r=n.items,i=a.globalConfig.memoizer;i?.attach(t),t._zod.parse=(e,a)=>{let o=e.value;if(!Array.isArray(o))return e.issues.push({input:o,inst:t,expected:`tuple`,code:`invalid_type`}),e;e.value=i?i.alloc(t,e,[],a):[];let s=[],c=q(r,`optin`),u=q(r,`optout`);if(!n.rest){if(o.length<c)return e.issues.push({code:`too_small`,minimum:c,inclusive:!0,input:o,inst:t,origin:`array`}),e;o.length>r.length&&e.issues.push({code:`too_big`,maximum:r.length,inclusive:!0,input:o,inst:t,origin:`array`})}let d=Array(r.length),f=n.rest?a?.abortEarly:void 0,p=!1;for(let e=0;e<r.length;e++){let t=r[e]._zod.run({value:o[e],issues:[]},a);t instanceof Promise?s.push(t.then(t=>{d[e]=t})):(d[e]=t,f&&!p&&t.issues.length&&(p=l.aborted(t)))}if(n.rest&&!p){let t=r.length-1,i=o.slice(r.length),c=e.issues.length;for(let r of i){if(f&&e.issues.length!==c){if(l.aborted(e,c))break;c=e.issues.length}t++;let i=n.rest._zod.run({value:r,issues:[]},a);i instanceof Promise?s.push(i.then(n=>te(n,e,t))):te(i,e,t)}}return s.length?Promise.all(s).then(()=>ne(d,e,r,o,u)):ne(d,e,r,o,u)}});function q(e,t){for(let n=e.length-1;n>=0;n--)if(!(t===`optin`?e[n]._zod.optin!==void 0:e[n]._zod.optout===`optional`))return n+1;return 0}function te(e,t,n){e.issues.length&&t.issues.push(...l.prefixIssues(n,e.issues)),t.value[n]=e.value}function ne(e,t,n,r,i){for(let a=0;a<n.length;a++){let o=e[a],s=a<r.length;if(!s&&a>=i&&n[a]._zod.optin===`optional`){t.value.length=a;break}if(o.issues.length){if(!s&&a>=i){t.value.length=a;break}t.issues.push(...l.prefixIssues(a,o.issues))}t.value[a]=o.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}e.$ZodRecord=a.$constructor(`$ZodRecord`,(t,n)=>{e.$ZodType.init(t,n);let r=a.globalConfig.memoizer;r?.attach(t),t._zod.parse=(e,i)=>{let o=e.value;if(!l.isPlainObject(o))return e.issues.push({expected:`record`,code:`invalid_type`,input:o,inst:t}),e;let s=[],u=n.keyType._zod.values;if(u&&!n.partial){e.value=r?r.alloc(t,e,{},i):{};let c=new Set;for(let r of u)if(typeof r==`string`||typeof r==`number`||typeof r==`symbol`){if(c.add(typeof r==`number`?r.toString():r),r===`__proto__`)continue;let u=n.keyType._zod.run({value:r,issues:[]},i);if(u instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(u.issues.length){e.issues.push({code:`invalid_key`,origin:`record`,issues:u.issues.map(e=>l.finalizeIssue(e,i,a.config())),input:r,path:[r],inst:t});continue}let d=u.value;if(d===`__proto__`)continue;let f=n.valueType._zod.run({value:o[r],issues:[]},i);f instanceof Promise?s.push(f.then(t=>{t.issues.length&&e.issues.push(...l.prefixIssues(r,t.issues)),e.value[d]=t.value})):(f.issues.length&&e.issues.push(...l.prefixIssues(r,f.issues)),e.value[d]=f.value)}let d;for(let t in o)if(!c.has(t))if(n.mode===`loose`){if(t===`__proto__`)continue;e.value[t]=o[t]}else d??=[],d.push(t);d&&d.length>0&&e.issues.push({code:`unrecognized_keys`,input:o,inst:t,keys:d,continue:!0})}else{e.value=r?r.alloc(t,e,{},i):{};let d;for(let r of Reflect.ownKeys(o)){if(r===`__proto__`||!Object.prototype.propertyIsEnumerable.call(o,r))continue;let f=n.keyType._zod.run({value:r,issues:[]},i);if(f instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof r==`string`&&c.number.test(r)&&f.issues.length){let e=n.keyType._zod.run({value:Number(r),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(f=e)}if(f.issues.length){n.mode===`loose`?e.value[r]=o[r]:u?(d??=[],d.push(r)):e.issues.push({code:`invalid_key`,origin:`record`,issues:f.issues.map(e=>l.finalizeIssue(e,i,a.config())),input:r,path:[r],inst:t});continue}let p=f.value;if(p===`__proto__`)continue;let m=n.valueType._zod.run({value:o[r],issues:[]},i);m instanceof Promise?s.push(m.then(t=>{t.issues.length&&e.issues.push(...l.prefixIssues(r,t.issues)),e.value[p]=t.value})):(m.issues.length&&e.issues.push(...l.prefixIssues(r,m.issues)),e.value[p]=m.value)}d&&d.length>0&&e.issues.push({code:`unrecognized_keys`,input:o,inst:t,keys:d,continue:!0})}return s.length?Promise.all(s).then(()=>e):e}}),e.$ZodMap=a.$constructor(`$ZodMap`,(t,n)=>{e.$ZodType.init(t,n);let r=a.globalConfig.memoizer;r?.attach(t),t._zod.parse=(e,i)=>{let a=e.value;if(!(a instanceof Map))return e.issues.push({expected:`map`,code:`invalid_type`,input:a,inst:t}),e;let o=[];e.value=r?r.alloc(t,e,new Map,i):new Map;let s=i?.abortEarly,c=e.issues.length;for(let[r,u]of a){if(s&&e.issues.length!==c){if(l.aborted(e,c))break;c=e.issues.length}let d=n.keyType._zod.run({value:r,issues:[]},i),f=n.valueType._zod.run({value:u,issues:[]},i);d instanceof Promise||f instanceof Promise?o.push(Promise.all([d,f]).then(([n,o])=>{re(n,o,e,r,a,t,i)})):re(d,f,e,r,a,t,i)}return o.length?Promise.all(o).then(()=>e):e},N(t,F)});function re(e,t,n,r,i,o,s){e.issues.length&&(l.propertyKeyTypes.has(typeof r)?n.issues.push(...l.prefixIssues(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:o,issues:e.issues.map(e=>l.finalizeIssue(e,s,a.config()))})),t.issues.length&&(l.propertyKeyTypes.has(typeof r)?n.issues.push(...l.prefixIssues(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:o,key:r,issues:t.issues.map(e=>l.finalizeIssue(e,s,a.config()))})),n.value.set(e.value,t.value)}e.$ZodSet=a.$constructor(`$ZodSet`,(t,n)=>{e.$ZodType.init(t,n);let r=a.globalConfig.memoizer;r?.attach(t),t._zod.parse=(e,i)=>{let a=e.value;if(!(a instanceof Set))return e.issues.push({input:a,inst:t,expected:`set`,code:`invalid_type`}),e;let o=[];e.value=r?r.alloc(t,e,new Set,i):new Set;let s=i?.abortEarly,c=e.issues.length;for(let t of a){if(s&&e.issues.length!==c){if(l.aborted(e,c))break;c=e.issues.length}let r=n.valueType._zod.run({value:t,issues:[]},i);r instanceof Promise?o.push(r.then(t=>ie(t,e))):ie(r,e)}return o.length?Promise.all(o).then(()=>e):e},N(t,I)});function ie(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}e.$ZodEnum=a.$constructor(`$ZodEnum`,(t,n)=>{e.$ZodType.init(t,n);let r=l.getEnumValues(n.entries),i=new Set(r);t._zod.values=i,l.defineLazyInternal(t,`pattern`,e=>{let t=l.getEnumValues(e.def.entries).filter(e=>l.propertyKeyTypes.has(typeof e));return RegExp(t.length?`^(${t.map(e=>l.escapeRegex(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),t._zod.parse=(e,n)=>{let a=e.value;return i.has(a)||e.issues.push({code:`invalid_value`,values:r,input:a,inst:t}),e}}),e.$ZodLiteral=a.$constructor(`$ZodLiteral`,(t,n)=>{e.$ZodType.init(t,n);let r=new Set(n.values);t._zod.values=r,l.defineLazyInternal(t,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?l.escapeRegex(e):e?l.escapeRegex(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),t._zod.parse=(e,i)=>{let a=e.value;return r.has(a)||e.issues.push({code:`invalid_value`,values:n.values,input:a,inst:t}),e}}),e.$ZodFile=a.$constructor(`$ZodFile`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,n)=>{let r=e.value;return r instanceof File||e.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:t}),e}}),e.$ZodTransform=a.$constructor(`$ZodTransform`,(t,n)=>{e.$ZodType.init(t,n),t._zod.optin=`optional`,a.globalConfig.memoizer?.guard(t),t._zod.parse=(e,r)=>{if(r.direction===`backward`)throw new a.$ZodEncodeError(t.constructor.name);let i=n.transform(e.value,e);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(t=>(e.value=t,e));if(i instanceof Promise)throw new a.$ZodAsyncError;return e.value=i,e}});function ae(e,t){return e.value=t.issues.length?void 0:t.value,e}e.$ZodOptional=a.$constructor(`$ZodOptional`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),t._zod.optout=`optional`,l.defineLazyInternal(t,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),l.defineLazyInternal(t,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${l.cleanRegex(t.source)})?$`):void 0}),t._zod.parse=(e,t)=>{if(e.value===void 0){if(n.innerType._zod.optin!==`defaulted`)return e;let r=n.innerType._zod.run({value:e.value,issues:[]},t);return r instanceof Promise?r.then(t=>ae(e,t)):ae(e,r)}return n.innerType._zod.run(e,t)}}),e.$ZodExactOptional=a.$constructor(`$ZodExactOptional`,(t,n)=>{e.$ZodOptional.init(t,n),l.defineLazyInternal(t,`values`,e=>e.def.innerType._zod.values),l.defineLazyInternal(t,`pattern`,e=>e.def.innerType._zod.pattern),t._zod.parse=(e,t)=>n.innerType._zod.run(e,t)}),e.$ZodNullable=a.$constructor(`$ZodNullable`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`optin`,e=>e.def.innerType._zod.optin),l.defineLazyInternal(t,`optout`,e=>e.def.innerType._zod.optout),l.defineLazyInternal(t,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${l.cleanRegex(t.source)}|null)$`):void 0}),l.defineLazyInternal(t,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),t._zod.parse=(e,t)=>e.value===null?e:n.innerType._zod.run(e,t)}),e.$ZodDefault=a.$constructor(`$ZodDefault`,(t,n)=>{e.$ZodType.init(t,n),t._zod.optin=`defaulted`,l.defineLazyInternal(t,`values`,e=>e.def.innerType._zod.values),t._zod.parse=(e,t)=>{if(t.direction===`backward`)return n.innerType._zod.run(e,t);if(e.value===void 0)return e.value=n.defaultValue,e;let r=n.innerType._zod.run(e,t);return r instanceof Promise?r.then(e=>J(e,n)):J(r,n)}});function J(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}e.$ZodPrefault=a.$constructor(`$ZodPrefault`,(t,n)=>{e.$ZodType.init(t,n),t._zod.optin=`defaulted`,l.defineLazyInternal(t,`values`,e=>e.def.innerType._zod.values),t._zod.parse=(e,t)=>(t.direction===`backward`||e.value===void 0&&(e.value=n.defaultValue),n.innerType._zod.run(e,t))}),e.$ZodNonOptional=a.$constructor(`$ZodNonOptional`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),t._zod.parse=(e,r)=>{let i=n.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>oe(e,t)):oe(i,t)}});function oe(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}e.$ZodSuccess=a.$constructor(`$ZodSuccess`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,t)=>{if(t.direction===`backward`)throw new a.$ZodEncodeError(`ZodSuccess`);let r=n.innerType._zod.run(e,t);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}});function se(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>l.finalizeIssue(e,r,a.config()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}e.$ZodCatch=a.$constructor(`$ZodCatch`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),l.defineLazyInternal(t,`optout`,e=>e.def.innerType._zod.optout),l.defineLazyInternal(t,`values`,e=>e.def.innerType._zod.values),t._zod.parse=(e,t)=>{if(t.direction===`backward`)return n.innerType._zod.run(e,t);let r=n.innerType._zod.run({value:e.value,issues:[]},t);return r instanceof Promise?r.then(r=>se(e,r,n,t)):se(e,r,n,t)}}),e.$ZodNaN=a.$constructor(`$ZodNaN`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,n)=>((typeof e.value!=`number`||!Number.isNaN(e.value))&&e.issues.push({input:e.value,inst:t,expected:`nan`,code:`invalid_type`}),e)}),e.$ZodPipe=a.$constructor(`$ZodPipe`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`values`,e=>e.def.in._zod.values),l.defineLazyInternal(t,`optin`,e=>e.def.in._zod.optin),l.defineLazyInternal(t,`optout`,e=>e.def.out._zod.optout),l.defineLazyInternal(t,`propValues`,e=>e.def.in._zod.propValues),t._zod.parse=(e,t)=>{if(t.direction===`backward`){let r=n.out._zod.run(e,t);return r instanceof Promise?r.then(e=>ce(e,n.in,t)):ce(r,n.in,t)}let r=n.in._zod.run(e,t);return r instanceof Promise?r.then(e=>ce(e,n.out,t)):ce(r,n.out,t)}});function ce(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}e.$ZodCodec=a.$constructor(`$ZodCodec`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`values`,e=>e.def.in._zod.values),l.defineLazyInternal(t,`optin`,e=>e.def.in._zod.optin),l.defineLazyInternal(t,`optout`,e=>e.def.out._zod.optout),l.defineLazyInternal(t,`propValues`,e=>e.def.in._zod.propValues),t._zod.parse=(e,t)=>{if((t.direction||`forward`)===`forward`){let r=n.in._zod.run(e,t);return r instanceof Promise?r.then(e=>Y(e,n,t)):Y(r,n,t)}else{let r=n.out._zod.run(e,t);return r instanceof Promise?r.then(e=>Y(e,n,t)):Y(r,n,t)}}});function Y(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>le(e,r,t.out,n)):le(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>le(e,r,t.in,n)):le(e,r,t.in,n)}}function le(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}e.$ZodPreprocess=a.$constructor(`$ZodPreprocess`,(t,n)=>{e.$ZodPipe.init(t,n)}),e.$ZodReadonly=a.$constructor(`$ZodReadonly`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazyInternal(t,`propValues`,e=>e.def.innerType._zod.propValues),l.defineLazyInternal(t,`values`,e=>e.def.innerType._zod.values),l.defineLazyInternal(t,`optin`,e=>e.def.innerType?._zod?.optin),l.defineLazyInternal(t,`optout`,e=>e.def.innerType?._zod?.optout),t._zod.parse=(e,t)=>{if(t.direction===`backward`)return n.innerType._zod.run(e,t);let r=n.innerType._zod.run(e,t);return r instanceof Promise?r.then(ue):ue(r)}});function ue(e){return e.memo||(e.value=Object.freeze(e.value)),e}function de(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes(`int`),i,a;for(let e of t.checks??[]){let t=e._zod.def;t.pattern&&(n=t.pattern),r||=!!t.format?.includes(`int`);let o=t.minimum??t.length,s=t.maximum??t.length;o!==void 0&&(i===void 0||o>i)&&(i=o),s!==void 0&&(a===void 0||s<a)&&(a=s)}if(n)return n.source;if(i!==void 0&&a!==void 0&&i>a)return`(?!)`;if(i!==void 0||a!==void 0)return c.string({minimum:i,maximum:a}).source;let o=e._zod.pattern;return(r&&o===c.number?c.integer:o)?.source}function fe(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let e=r._zod.pattern?.source,t=fe(r);return n&&e&&t&&t!==e?n.replace(l.cleanRegex(e),()=>l.cleanRegex(t)):n}if(t.options){let e=t.options.map(fe);if(e.every(Boolean))return`^(${e.map(e=>l.cleanRegex(e)).join(`|`)})$`}return de(e)}e.$ZodTemplateLiteral=a.$constructor(`$ZodTemplateLiteral`,(t,n)=>{e.$ZodType.init(t,n);let r=[];for(let e of n.parts)if(typeof e==`object`&&e){let t=fe(e);if(!t)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);r.push(l.cleanRegex(t))}else if(e===null||l.primitiveTypes.has(typeof e))r.push(l.escapeRegex(`${e}`));else throw Error(`Invalid template literal part: ${e}`);t._zod.pattern=RegExp(`^${r.join(``)}$`),t._zod.parse=(e,r)=>typeof e.value==`string`?(t._zod.pattern.lastIndex=0,t._zod.pattern.test(e.value)||e.issues.push({input:e.value,inst:t,code:`invalid_format`,format:n.format??`template_literal`,pattern:t._zod.pattern.source}),e):(e.issues.push({input:e.value,inst:t,expected:`string`,code:`invalid_type`}),e)}),e.$ZodFunction=a.$constructor(`$ZodFunction`,(t,n)=>(e.$ZodType.init(t,n),Object.defineProperty(t,"_def",{value:n}),t._zod.def=n,t.implement=e=>{if(typeof e!=`function`)throw Error(`implement() must be called with a function`);return Object.defineProperty(function(...n){let r=t._def.input?(0,s.parse)(t._def.input,n):n,i=Reflect.apply(e,this,r);return t._def.output?(0,s.parse)(t._def.output,i):i},"_zod",{value:t._zod,enumerable:!1})},t.implementAsync=e=>{if(typeof e!=`function`)throw Error(`implementAsync() must be called with a function`);return Object.defineProperty(async function(...n){let r=t._def.input?await(0,s.parseAsync)(t._def.input,n):n,i=await Reflect.apply(e,this,r);return t._def.output?await(0,s.parseAsync)(t._def.output,i):i},"_zod",{value:t._zod,enumerable:!1})},t._zod.parse=(e,n)=>typeof e.value==`function`?(t._def.output&&t._def.output._zod.def.type===`promise`?e.value=t.implementAsync(e.value):e.value=t.implement(e.value),e):(e.issues.push({code:`invalid_type`,expected:`function`,input:e.value,inst:t}),e),t.input=(...n)=>{let r=t.constructor;return Array.isArray(n[0])?new r({type:`function`,input:new e.$ZodTuple({type:`tuple`,items:n[0],rest:n[1]}),output:t._def.output}):new r({type:`function`,input:n[0],output:t._def.output})},t.output=e=>{let n=t.constructor;return new n({type:`function`,input:t._def.input,output:e})},t)),e.$ZodPromise=a.$constructor(`$ZodPromise`,(t,n)=>{e.$ZodType.init(t,n),t._zod.parse=(e,t)=>Promise.resolve(e.value).then(e=>n.innerType._zod.run({value:e,issues:[]},t))}),e.$ZodLazy=a.$constructor(`$ZodLazy`,(t,n)=>{e.$ZodType.init(t,n),l.defineLazy(t._zod,`innerType`,()=>{let e=n;return e._cachedInner||=n.getter(),e._cachedInner}),l.defineLazyInternal(t,`pattern`,e=>e.innerType?._zod?.pattern),l.defineLazyInternal(t,`propValues`,e=>e.innerType?._zod?.propValues),l.defineLazyInternal(t,`optin`,e=>e.innerType?._zod?.optin??void 0),l.defineLazyInternal(t,`optout`,e=>e.innerType?._zod?.optout??void 0),t._zod.parse=(e,n)=>t._zod.innerType._zod.run(e,n)}),e.$ZodCustom=a.$constructor(`$ZodCustom`,(t,n)=>{i.$ZodCheck.init(t,n),e.$ZodType.init(t,n),t._zod.parse=(e,t)=>e,t._zod.check=e=>{let r=e.value,i=n.fn(r);if(i instanceof Promise)return i.then(n=>pe(n,e,r,t));pe(i,e,r,t)}});function pe(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(l.issue(e))}}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Ff=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.$ZodCyclicError=void 0,e.isRecursiveSchema=p,e.memoizer=v,e.isBackEdge=y;let i=r($());var a=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}};e.$ZodCyclicError=a;let o=`~memo`,s=[];function c(e){return typeof e==`object`&&!!e}function l(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let u=new WeakMap;function d(e,t,n){let r=u.get(e);if(r!==void 0)return r?2:0;if(t.has(e))return 2;t.add(e);let a=0,o=e=>{if(a!==2&&e?._zod){let r=d(e,t,n);r>a&&(a=r)}},s=(e,r)=>{let i=0;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?1:o.value?._zod?d(o.value,t,n):0;s>i&&(i=s)}return i},c=e=>{e>a&&(a=e)},l=e._zod.def;switch(l.type){case`object`:{let e=i.rawShape(l);c(e?s(e,!0):1),o(l.catchall);break}case`array`:o(l.element);break;case`tuple`:for(let e of l.items)o(e);o(l.rest);break;case`record`:case`map`:o(l.keyType),o(l.valueType);break;case`set`:o(l.valueType);break;case`union`:for(let e of l.options)o(e);break;case`intersection`:o(l.left),o(l.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:o(l.innerType);break;case`pipe`:o(l.in),o(l.out);break;case`function`:o(l.input),o(l.output);break;case`lazy`:{let r=l._cachedInner??(n?e._zod.innerType:void 0);c(r?d(r,t,!1):1);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in l){let t=Object.getOwnPropertyDescriptor(l,e);if(!t||t.get)continue;let n=t.value;if(!(!n||typeof n!=`object`)){if(n._zod)o(n);else if(Array.isArray(n))for(let e of n)o(e)}}}return t.delete(e),f(e,a)}function f(e,t){return t!==1&&u.set(e,t===2),t}function p(e){return d(e,new Set,!0)!==0}function m(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}let h,g=[],_={alloc(e,t,n){let r=h;if(!r)return n;h=void 0;let i={value:n,issues:null};return r.set(t.value,i),g.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&y(n,e.value))throw new a;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,u=(f,p)=>{if(n===void 0){let i=d(e,new Set,!1);if(i===0)return e._zod.parse=t,e._zod.run===u&&(e._zod.run=t),t(f,p);i===2||r?n=!0:r=!0}let _=f.value;if(!c(_))return t(f,p);let v=p[o];v||(v={buckets:new WeakMap,backEdges:void 0},p[o]=v);let y;i===p?y=a:(y=m(v,e),i=p,a=y);let b=y.get(_);if(b)return f.value=b.value,b.issues?b.issues.length&&f.issues.push(...l(b.issues)):(f.memo=!0,v.backEdges??=new WeakSet,v.backEdges.add(b.value)),f;h=y;let x=g.length,S=t(f,p);h=void 0;let C=g.length>x?g.pop():void 0;return S instanceof Promise?S.then(e=>(C&&(C.issues=e.issues.length?l(e.issues):s),e)):(C&&(C.issues=S.issues.length?l(S.issues):s),S)};e._zod.parse=u,e._zod.run===t&&(e._zod.run=u)})}};function v(){return _}function y(e,t){let n=e[o]?.backEdges;return n!==void 0&&c(t)&&n.has(t)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),If=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`},map:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,mac:`عنوان MAC`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,credit_card:`رقم بطاقة الائتمان`,currency_code:`رمز العملة`,iban:`IBAN`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${a.stringifyPrimitive(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${a.joinValues(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}};function s(){return{localeError:o()}}t.exports=e.default})),Lf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`},map:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,credit_card:`kredit kartı nömrəsi`,currency_code:`valyuta kodu`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${a.stringifyPrimitive(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}};function s(){return{localeError:o()}}t.exports=e.default})),Rf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;let a=i($());function o(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}let s=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},map:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,mac:`MAC адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,credit_card:`нумар крэдытнай карты`,currency_code:`код валюты`,iban:`IBAN`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${a.stringifyPrimitive(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=o(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=o(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}};function c(){return{localeError:s()}}t.exports=e.default})),zf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`},map:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,mac:`MAC адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,credit_card:`номер на кредитна карта`,currency_code:`код на валута`,iban:`IBAN`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${a.stringifyPrimitive(e.values[0])}`:`Невалидна опция: очаквано едно от ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}};function s(){return{localeError:o()}}t.exports=e.default})),Bf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`অক্ষর`,verb:`থাকতে হবে`},file:{unit:`বাইট`,verb:`থাকতে হবে`},array:{unit:`আইটেম`,verb:`থাকতে হবে`},set:{unit:`আইটেম`,verb:`থাকতে হবে`},map:{unit:`এন্ট্রি`,verb:`থাকতে হবে`}};function t(t){return e[t]??null}let n={regex:`ইনপুট`,email:`ইমেইল ঠিকানা`,url:`URL`,emoji:`ইমোজি`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO তারিখ ও সময়`,date:`ISO তারিখ`,time:`ISO সময়`,duration:`ISO সময়কাল`,ipv4:`IPv4 ঠিকানা`,ipv6:`IPv6 ঠিকানা`,mac:`MAC ঠিকানা`,cidrv4:`IPv4 রেঞ্জ`,cidrv6:`IPv6 রেঞ্জ`,base64:`base64-এনকোডেড স্ট্রিং`,base64url:`base64url-এনকোডেড স্ট্রিং`,json_string:`JSON স্ট্রিং`,e164:`E.164 নম্বর`,credit_card:`ক্রেডিট কার্ড নম্বর`,currency_code:`মুদ্রা কোড`,iban:`IBAN`,jwt:`JWT`,template_literal:`ইনপুট`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`অবৈধ ইনপুট: প্রত্যাশিত ${t}, প্রাপ্ত ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`অবৈধ ইনপুট: প্রত্যাশিত ${a.stringifyPrimitive(e.values[0])}`:`অবৈধ অপশন: ${a.joinValues(e.values,` | `)} এর মধ্যে একটি প্রত্যাশিত`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`অনেক বড়: ${e.origin??`মান`} ${n}${e.maximum.toString()} ${r.unit??`এলিমেন্ট`} হতে হবে`:`অনেক বড়: ${e.origin??`মান`} ${n}${e.maximum.toString()} হতে হবে`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`অনেক ছোট: ${e.origin} ${n}${e.minimum.toString()} ${r.unit} হতে হবে`:`অনেক ছোট: ${e.origin} ${n}${e.minimum.toString()} হতে হবে`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`অবৈধ স্ট্রিং: "${t.prefix}" দিয়ে শুরু হতে হবে`:t.format===`ends_with`?`অবৈধ স্ট্রিং: "${t.suffix}" দিয়ে শেষ হতে হবে`:t.format===`includes`?`অবৈধ স্ট্রিং: "${t.includes}" অন্তর্ভুক্ত থাকতে হবে`:t.format===`regex`?`অবৈধ স্ট্রিং: ${t.pattern} প্যাটার্ন মিলতে হবে`:`অবৈধ ${n[t.format]??e.format}`}case`not_multiple_of`:return`অবৈধ নম্বর: ${e.divisor} এর গুণিতক হতে হবে`;case`unrecognized_keys`:return`অচেনা কী${e.keys.length>1?`গুলো`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} এ অবৈধ কী`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${e.options.map(e=>`'${e}'`).join(` | `)}`:`অবৈধ ইনপুট`;case`invalid_element`:return`${e.origin} এ অবৈধ মান`;default:return`অবৈধ ইনপুট`}}};function s(){return{localeError:o()}}t.exports=e.default})),Vf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`},map:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,mac:`adreça MAC`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,credit_card:`número de targeta de crèdit`,currency_code:`codi de moneda`,iban:`IBAN`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${a.stringifyPrimitive(e.values[0])}`:`Opció invàlida: s'esperava una de ${a.joinValues(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}};function s(){return{localeError:o()}}t.exports=e.default})),Hf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`پیت`,verb:`بێت`},file:{unit:`بایت`,verb:`بێت`},array:{unit:`دانە`,verb:`بێت`},set:{unit:`دانە`,verb:`بێت`},map:{unit:`دانە`,verb:`بێت`}};function t(t){return e[t]??null}let n={regex:`regex`,email:`ئیمەیڵ`,url:`بەستەر (URL)`,emoji:`ئیمۆجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ڕێکەوت و کات`,date:`ڕێکەوت`,time:`کات`,duration:`ماوە`,ipv4:`ناونیشانی IPv4`,ipv6:`ناونیشانی IPv6`,mac:`ناونیشانی MAC`,cidrv4:`مەودای IPv4`,cidrv6:`مەودای IPv6`,base64:`دەقی base64`,base64url:`دەقی base64url`,json_string:`دەقی JSON`,e164:`ژمارەی E.164`,credit_card:`ژمارەی کارتی کرێدیت`,currency_code:`کۆدی دراو`,iban:`IBAN`,jwt:`JWT`,template_literal:`تێکردە`},r={nan:`NaN`,string:`نووسین`,number:`ژمارە`,boolean:`boolean`,array:`array`,object:`object`,date:`ڕێکەوت`,integer:`ژمارە`,float:`ژمارە`,null:`null`,undefined:`undefined`,function:`function`,symbol:`symbol`,unknown:`unknown`,promise:`promise`,void:`void`,never:`never`,map:`map`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n,o=[`ا`,`و`,`ۆ`,`وو`,`ە`,`ی`,`ێ`].some(e=>i.endsWith(e))?`یە`:`ە`,s=/^[a-zA-Z]+$/.test(i);return n===`null`||n===`undefined`?`داواکراوە`:`چاوەڕوانکراوە ${t} بێت، بەڵام ${i}${s?``:o}`}case`invalid_value`:return e.values.length===1?`بەهاکە نادرووستە: چاوەڕوانکراوە ${a.stringifyPrimitive(e.values[0])} بێت`:`هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=t(e.origin);return n?`پێویستە بە لایەنی زۆرەوە ${e.maximum.toString()} ${n.unit} ${n.verb}`:`پێویستە بە لایەنی زۆرەوە ${e.maximum.toString()} بێت`}case`too_small`:{let n=t(e.origin);return n?`پێویستە بە لایەنی کەمەوە ${e.minimum.toString()} ${n.unit} ${n.verb}`:`پێویستە بە لایەنی کەمەوە ${e.minimum.toString()} بێت`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`دەقی نادروست: پێویستە دەستپێبکات بە "${t.prefix}"`:t.format===`ends_with`?`دەقی نادروست: پێویستە کۆتاییبێت بە "${t.suffix}"`:t.format===`includes`?`دەقی نادروست: پێویستە "${t.includes}" لەخۆبگرێت`:t.format===`regex`?`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${t.pattern} بگونجێت`:`بەهای ${n[t.format]??e.format} نادروستە`}case`not_multiple_of`:return`ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${e.divisor}`;case`unrecognized_keys`:return`کلیلی نەناسراو: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`کلیلی نادروست لە ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${e.options.map(e=>`'${e}'`).join(` | `)}`:`یەکگرتنی نادروست`;case`invalid_element`:return`${e.origin} بەهاکە نادروستە`;default:return`تێکردەی نادروست`}}};function s(){return{localeError:o()}}t.exports=e.default})),Uf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`},map:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,mac:`MAC adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,credit_card:`číslo kreditní karty`,currency_code:`kód měny`,iban:`IBAN`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${a.stringifyPrimitive(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}};function s(){return{localeError:o()}}t.exports=e.default})),Wf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`},map:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-adresse`,ipv6:`IPv6-adresse`,mac:`MAC-adresse`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,credit_card:`kreditkortnummer`,currency_code:`valutakode`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${a.stringifyPrimitive(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}};function s(){return{localeError:o()}}t.exports=e.default})),Gf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`},map:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,mac:`MAC-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,credit_card:`Kreditkartennummer`,currency_code:`Währungscode`,iban:`IBAN`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${a.stringifyPrimitive(e.values[0])}`:`Ungültige Option: erwartet eine von ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}};function s(){return{localeError:o()}}t.exports=e.default})),Kf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,credit_card:`αριθμός πιστωτικής κάρτας`,currency_code:`κωδικός νομίσματος`,iban:`IBAN`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${a.stringifyPrimitive(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}};function s(){return{localeError:o()}}t.exports=e.default})),qf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(a.parsedType(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${a.stringifyPrimitive(e.values[0])}`:`Invalid option: expected one of ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function s(){return{localeError:o()}}t.exports=e.default})),Jf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`},map:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,mac:`MAC-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,credit_card:`kreditkarta numero`,currency_code:`valuta kodo`,iban:`IBAN`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${a.stringifyPrimitive(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}};function s(){return{localeError:o()}}t.exports=e.default})),Yf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,mac:`dirección MAC`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,credit_card:`número de tarjeta de crédito`,currency_code:`código de moneda`,iban:`IBAN`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${a.stringifyPrimitive(e.values[0])}`:`Opción inválida: se esperaba una de ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}};function s(){return{localeError:o()}}t.exports=e.default})),Xf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`},map:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,mac:`MAC آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,credit_card:`شماره کارت اعتباری`,currency_code:`کد ارز`,iban:`IBAN`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${a.stringifyPrimitive(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${a.joinValues(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}};function s(){return{localeError:o()}}t.exports=e.default})),Zf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},map:{unit:`alkiota`,subject:`kuvauksen`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,mac:`MAC-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,credit_card:`luottokortin numero`,currency_code:`valuuttakoodi`,iban:`IBAN`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${a.stringifyPrimitive(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}};function s(){return{localeError:o()}}t.exports=e.default})),Qf=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`expression régulière`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,mac:`adresse MAC`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne de caractères encodée en base64`,base64url:`chaîne de caractères encodée en base64url`,json_string:`chaîne de caractères JSON`,e164:`numéro au format E.164`,credit_card:`numéro de carte de crédit`,currency_code:`code de devise`,iban:`IBAN`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne de caractères`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`record`,map:`map`,set:`ensemble`,file:`fichier`,nonoptional:`non optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instance de ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${a.stringifyPrimitive(e.values[0])} attendu`:`Option invalide : une valeur parmi ${a.joinValues(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne de caractères invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne de caractères invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne de caractères invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne de caractères invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function s(){return{localeError:o()}}t.exports=e.default})),$f=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`},map:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,mac:`adresse MAC`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,credit_card:`numéro de carte de crédit`,currency_code:`code de devise`,iban:`IBAN`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${a.stringifyPrimitive(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function s(){return{localeError:o()}}t.exports=e.default})),ep=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`અક્ષર`,verb:`હોવા જોઈએ`},file:{unit:`બાયટ`,verb:`હોવા જોઈએ`},array:{unit:`આઇટમ`,verb:`હોવા જોઈએ`},set:{unit:`આઇટમ`,verb:`હોવા જોઈએ`},map:{unit:`એન્ટ્રી`,verb:`હોવા જોઈએ`}};function t(t){return e[t]??null}let n={regex:`ઇનપુટ`,email:`ઈમેઇલ એડ્રેસ`,url:`URL`,emoji:`ઇમોજી`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO તારીખ અને સમય`,date:`ISO તારીખ`,time:`ISO સમય`,duration:`ISO અવધિ`,ipv4:`IPv4 એડ્રેસ`,ipv6:`IPv6 એડ્રેસ`,mac:`MAC એડ્રેસ`,cidrv4:`IPv4 શ્રેણી`,cidrv6:`IPv6 શ્રેણી`,base64:`base64-એન્કોડેડ સ્ટ્રિંગ`,base64url:`base64url-એન્કોડેડ સ્ટ્રિંગ`,json_string:`JSON સ્ટ્રિંગ`,e164:`E.164 નંબર`,credit_card:`ક્રેડિટ કાર્ડ નંબર`,currency_code:`ચલણ કોડ`,iban:`IBAN`,jwt:`JWT`,template_literal:`ઇનપુટ`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`અમાન્ય ઇનપુટ: અપેક્ષિત ${t}, પ્રાપ્ત ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`અમાન્ય ઇનપુટ: અપેક્ષિત ${a.stringifyPrimitive(e.values[0])}`:`અમાન્ય વિકલ્પ: ${a.joinValues(e.values,` | `)} માધ્યમથી એક અપેક્ષિત`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ખૂબ મોટું: ${e.origin??`મૂલ્ય`} ${n}${e.maximum.toString()} ${r.unit??`એલિમેન્ટ`} હોવા જોઈએ`:`ખૂબ મોટું: ${e.origin??`મૂલ્ય`} ${n}${e.maximum.toString()} હોવું જોઈએ`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ખૂબ નાનું: ${e.origin} ${n}${e.minimum.toString()} ${r.unit} હોવા જોઈએ`:`ખૂબ નાનું: ${e.origin} ${n}${e.minimum.toString()} હોવું જોઈએ`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`અમાન્ય સ્ટ્રિંગ: "${t.prefix}" થી શરૂ થવું જોઈએ`:t.format===`ends_with`?`અમાન્ય સ્ટ્રિંગ: "${t.suffix}" પર સમાપ્ત થવું જોઈએ`:t.format===`includes`?`અમાન્ય સ્ટ્રિંગ: "${t.includes}" શામેલ હોવું જોઈએ`:t.format===`regex`?`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${t.pattern} સાથે મેળ ખાવું જોઈએ`:`અમાન્ય ${n[t.format]??e.format}`}case`not_multiple_of`:return`અમાન્ય નંબર: ${e.divisor} નો ગુણાંક હોવો જોઈએ`;case`unrecognized_keys`:return`ઓળખી શકાતા નહીં તે કી${e.keys.length>1?`ઓ`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} માં અમાન્ય કી`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત ${e.options.map(e=>`'${e}'`).join(` | `)}`:`અમાન્ય ઇનપુટ`;case`invalid_element`:return`${e.origin} માં અમાન્ય મૂલ્ય`;default:return`અમાન્ય ઇનપુટ`}}};function s(){return{localeError:o()}}t.exports=e.default})),tp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,o=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,s=e=>e?t[e]??null:null,c={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},uuidv4:{label:`UUIDv4`,gender:`m`},uuidv6:{label:`UUIDv6`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},mac:{label:`כתובת MAC`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},credit_card:{label:`מספר כרטיס אשראי`,gender:`m`},currency_code:{label:`קוד מטבע`,gender:`m`},iban:{label:`IBAN`,gender:`m`},jwt:{label:`JWT`,gender:`m`},template_literal:{label:`קלט`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},l={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=l[n??``]??r(n),o=a.parsedType(t.input),s=l[o]??e[o]?.label??o;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${s}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${s}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${a.stringifyPrimitive(t.values[0])}`;let e=t.values.map(e=>a.stringifyPrimitive(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=s(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,a=o(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${a} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${a} ${r}${t.maximum.toString()}`}case`too_small`:{let e=s(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,a=o(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${a} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${a} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=c[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${a.joinValues(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}};function s(){return{localeError:o()}}t.exports=e.default})),np=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`अक्षर`,verb:`रखने के लिए`},file:{unit:`बाइट्स`,verb:`रखने के लिए`},array:{unit:`तत्व`,verb:`रखने के लिए`},set:{unit:`तत्व`,verb:`रखने के लिए`},map:{unit:`प्रविष्टियाँ`,verb:`रखने के लिए`}};function t(t){return e[t]??null}let n={regex:`इनपुट`,email:`ईमेल पता`,url:`URL`,emoji:`इमोजी`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO तिथि और समय`,date:`ISO तिथि`,time:`ISO समय`,duration:`ISO अवधि`,ipv4:`IPv4 पता`,ipv6:`IPv6 पता`,mac:`MAC पता`,cidrv4:`IPv4 श्रेणी`,cidrv6:`IPv6 श्रेणी`,base64:`Base64-एन्कोडेड स्ट्रिंग`,base64url:`Base64URL-एन्कोडेड स्ट्रिंग`,json_string:`JSON स्ट्रिंग`,e164:`E.164 संख्या`,credit_card:`क्रेडिट कार्ड संख्या`,currency_code:`मुद्रा कोड`,iban:`IBAN`,jwt:`JWT`,template_literal:`इनपुट`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`अमान्य इनपुट: अपेक्षित ${t}, प्राप्त ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`अमान्य इनपुट: अपेक्षित ${a.stringifyPrimitive(e.values[0])}`:`अमान्य विकल्प: अपेक्षित मानों में से एक ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`बहुत बड़ा: अपेक्षित था कि ${e.origin??`मान`} में ${n}${e.maximum} ${r.unit} हों`:`बहुत बड़ा: अपेक्षित था कि ${e.origin??`मान`} ${n}${e.maximum} हो`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`बहुत छोटा: अपेक्षित था कि ${e.origin} में ${n}${e.minimum} ${r.unit} हों`:`बहुत छोटा: अपेक्षित था कि ${e.origin} ${n}${e.minimum} हो`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`अमान्य स्ट्रिंग: "${t.prefix}" से शुरू होना चाहिए`:t.format===`ends_with`?`अमान्य स्ट्रिंग: "${t.suffix}" पर समाप्त होना चाहिए`:t.format===`includes`?`अमान्य स्ट्रिंग: इसमें "${t.includes}" शामिल होना चाहिए`:t.format===`regex`?`अमान्य स्ट्रिंग: पैटर्न ${t.pattern} से मेल खाना चाहिए`:`अमान्य ${n[t.format]??e.format}`}case`not_multiple_of`:return`अमान्य संख्या: यह ${e.divisor} का गुणज होना चाहिए`;case`unrecognized_keys`:return`अपरिचित कुंजी${e.keys.length>1?`याँ`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`अमान्य कुंजी: ${e.origin} में`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${e.options.map(e=>`'${e}'`).join(` | `)}`:`अमान्य इनपुट`;case`invalid_element`:return`अमान्य मान: ${e.origin} में`;default:return`अमान्य इनपुट`}}};function s(){return{localeError:o()}}t.exports=e.default})),rp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,mac:`MAC adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,credit_card:`broj kreditne kartice`,currency_code:`kod valute`,iban:`IBAN`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${a.stringifyPrimitive(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}};function s(){return{localeError:o()}}t.exports=e.default})),ip=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`},map:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,mac:`MAC cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,credit_card:`hitelkártyaszám`,currency_code:`pénznemkód`,iban:`IBAN`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${a.stringifyPrimitive(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}};function s(){return{localeError:o()}}t.exports=e.default})),ap=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;let a=i($());function o(e,t,n){return Math.abs(e)===1?t:n}function s(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}let c=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},map:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,mac:`MAC հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,credit_card:`կրեդիտ քարտի համար`,currency_code:`արժույթի կոդ`,iban:`IBAN`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${a.stringifyPrimitive(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=o(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${s(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${s(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=o(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${s(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${s(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${s(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${s(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}};function l(){return{localeError:c()}}t.exports=e.default})),op=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`},map:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,mac:`alamat MAC`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,credit_card:`nomor kartu kredit`,currency_code:`kode mata uang`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${a.stringifyPrimitive(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}};function s(){return{localeError:o()}}t.exports=e.default})),sp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`},map:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,credit_card:`kreditkortanúmer`,currency_code:`gjaldmiðilskóði`,iban:`IBAN`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${a.stringifyPrimitive(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}};function s(){return{localeError:o()}}t.exports=e.default})),cp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`},map:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,mac:`indirizzo MAC`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,credit_card:`numero di carta di credito`,currency_code:`codice valuta`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${a.stringifyPrimitive(e.values[0])}`:`Opzione non valida: atteso uno tra ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}};function s(){return{localeError:o()}}t.exports=e.default})),lp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`},map:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,mac:`MACアドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,credit_card:`クレジットカード番号`,currency_code:`通貨コード`,iban:`IBAN`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${a.stringifyPrimitive(e.values[0])}が期待されました`:`無効な選択: ${a.joinValues(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${a.joinValues(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}};function s(){return{localeError:o()}}t.exports=e.default})),up=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},map:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,mac:`MAC მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,credit_card:`საკრედიტო ბარათის ნომერი`,currency_code:`ვალუტის კოდი`,iban:`IBAN`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${a.stringifyPrimitive(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${a.joinValues(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}};function s(){return{localeError:o()}}t.exports=e.default})),dp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`},map:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,mac:`អាសយដ្ឋាន MAC`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,credit_card:`លេខប័ណ្ណឥណទាន`,currency_code:`កូដរូបិយប័ណ្ណ`,iban:`IBAN`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${a.stringifyPrimitive(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}};function s(){return{localeError:o()}}t.exports=e.default})),fp=s(((e,t)=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;let r=n(dp());function i(){return(0,r.default)()}t.exports=e.default})),pp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`ಅಕ್ಷರಗಳು`,verb:`ಹೊಂದಲು`},file:{unit:`ಬೈಟ್‌ಗಳು`,verb:`ಹೊಂದಲು`},array:{unit:`ವಸ್ತುಗಳು`,verb:`ಹೊಂದಲು`},set:{unit:`ವಸ್ತುಗಳು`,verb:`ಹೊಂದಲು`},map:{unit:`entries`,verb:`ಹೊಂದಲು`}};function t(t){return e[t]??null}let n={regex:`ಇನ್ಪುಟ್`,email:`email ವಿಳಾಸ`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ದಿನಾಂಕದ ಸಮಯ`,date:`ISO ದಿನಾಂಕ`,time:`ISO ಸಮಯ`,duration:`ISO ಅವಧಿ`,ipv4:`IPv4 ವಿಳಾಸ`,ipv6:`IPv6 ವಿಳಾಸ`,mac:`MAC ವಿಳಾಸ`,cidrv4:`IPv4 ವ್ಯಾಪ್ತಿಯ`,cidrv6:`IPv6 ವ್ಯಾಪ್ತಿಯ`,base64:`base64-encodedಸ್ಟ್ರಿಂಗ್`,base64url:`base64url-encodedಸ್ಟ್ರಿಂಗ್`,json_string:`JSONಸ್ಟ್ರಿಂಗ್`,e164:`E.164 ಸಂಖ್ಯೆ`,credit_card:`ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ`,currency_code:`ಕರೆನ್ಸಿ ಕೋಡ್`,iban:`IBAN`,jwt:`JWT`,template_literal:`ಇನ್ಪುಟ್`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${t}, ಸ್ವೀಕರಿಸಿದನು ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${a.stringifyPrimitive(e.values[0])}`:`ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin??`value`} ಹೊಂದಲು ${n}${e.maximum.toString()} ${r.unit??`ಅಂಶಗಳು`}`:`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin??`value`} ಎಂದು ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin} ಹೊಂದಲು ${n}${e.minimum.toString()} ${r.unit}`:`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin} ಎಂದು ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${t.prefix}"`:t.format===`ends_with`?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${t.suffix}"`:t.format===`includes`?`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${t.includes}"`:t.format===`regex`?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು ${t.pattern}`:`ಅಮಾನ್ಯ ${n[t.format]??e.format}`}case`not_multiple_of`:return`ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು ${e.divisor}`;case`unrecognized_keys`:return`ಗುರುತಿಸಲಾಗದ ಕೀ ${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.options.map(e=>`'${e}'`).join(` | `)}`:`ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್`;case`invalid_element`:return`ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ ${e.origin}`;default:return`ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್`}}};function s(){return{localeError:o()}}t.exports=e.default})),mp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`},map:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,mac:`MAC 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,credit_card:`신용카드 번호`,currency_code:`통화 코드`,iban:`IBAN`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${a.stringifyPrimitive(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${a.joinValues(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}};function s(){return{localeError:o()}}t.exports=e.default})),hp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;let a=i($()),o=e=>e.charAt(0).toUpperCase()+e.slice(1);function s(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}let c=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,mac:`MAC adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,credit_card:`kredito kortelės numeris`,currency_code:`valiutos kodas`,iban:`IBAN`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${a.stringifyPrimitive(e.values[0])}`:`Privalo būti vienas iš ${a.joinValues(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,s(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${o(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${o(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,s(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${o(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${o(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${o(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}};function l(){return{localeError:c()}}t.exports=e.default})),gp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`},map:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,mac:`MAC адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,credit_card:`број на кредитна картичка`,currency_code:`код на валута`,iban:`IBAN`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${a.stringifyPrimitive(e.values[0])}`:`Грешана опција: се очекува една ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}};function s(){return{localeError:o()}}t.exports=e.default})),_p=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`},map:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,mac:`alamat MAC`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,credit_card:`nombor kad kredit`,currency_code:`kod mata wang`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${a.stringifyPrimitive(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}};function s(){return{localeError:o()}}t.exports=e.default})),vp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`अक्षर`,verb:`हुनुपर्छ`},file:{unit:`बाइट`,verb:`हुनुपर्छ`},array:{unit:`तत्व`,verb:`हुनुपर्छ`},set:{unit:`तत्व`,verb:`हुनुपर्छ`},map:{unit:`प्रविष्टि`,verb:`हुनुपर्छ`}};function t(t){return e[t]??null}let n={regex:`इनपुट`,email:`इमेल ठेगाना`,url:`URL`,emoji:`इमोजी`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO मिति र समय`,date:`ISO मिति`,time:`ISO समय`,duration:`ISO अवधि`,ipv4:`IPv4 ठेगाना`,ipv6:`IPv6 ठेगाना`,mac:`MAC ठेगाना`,cidrv4:`IPv4 दायरा`,cidrv6:`IPv6 दायरा`,base64:`base64-इन्कोड गरिएको स्ट्रिङ`,base64url:`base64url-इन्कोड गरिएको स्ट्रिङ`,json_string:`JSON स्ट्रिङ`,e164:`E.164 नम्बर`,credit_card:`क्रेडिट कार्ड नम्बर`,currency_code:`मुद्रा कोड`,iban:`IBAN`,jwt:`JWT`,template_literal:`इनपुट`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`अमान्य इनपुट: अपेक्षित ${t}, प्राप्त ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`अमान्य इनपुट: अपेक्षित ${a.stringifyPrimitive(e.values[0])}`:`अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`धेरै ठूलो: ${e.origin??`मान`} मा ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`धेरै ठूलो: ${e.origin??`मान`} ${n}${e.maximum.toString()} हुनुपर्छ`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`धेरै सानो: ${e.origin} मा ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`धेरै सानो: ${e.origin} ${n}${e.minimum.toString()} हुनुपर्छ`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`अमान्य स्ट्रिङ: "${t.prefix}" बाट सुरु हुनुपर्छ`:t.format===`ends_with`?`अमान्य स्ट्रिङ: "${t.suffix}" मा समाप्त हुनुपर्छ`:t.format===`includes`?`अमान्य स्ट्रिङ: "${t.includes}" समावेश हुनुपर्छ`:t.format===`regex`?`अमान्य स्ट्रिङ: ढाँचा ${t.pattern} सँग मेल खानुपर्छ`:`अमान्य ${n[t.format]??e.format}`}case`not_multiple_of`:return`अमान्य संख्या: ${e.divisor} को गुणज हुनुपर्छ`;case`unrecognized_keys`:return`अपरिचित कुञ्जी${e.keys.length>1?`हरू`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`अमान्य कुञ्जी: ${e.origin} मा`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${e.options.map(e=>`'${e}'`).join(` | `)}`:`अमान्य इनपुट`;case`invalid_element`:return`अमान्य मान: ${e.origin} मा`;default:return`अमान्य इनपुट`}}};function s(){return{localeError:o()}}t.exports=e.default})),yp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`},map:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,mac:`MAC-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,credit_card:`creditcardnummer`,currency_code:`valutacode`,iban:`IBAN`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${a.stringifyPrimitive(e.values[0])}`:`Ongeldige optie: verwacht één van ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}};function s(){return{localeError:o()}}t.exports=e.default})),bp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`teikn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`element`,verb:`å innehalde`},set:{unit:`element`,verb:`å innehalde`},map:{unit:`element`,verb:`å innehalde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varigheit`,ipv4:`IPv4-adresse`,ipv6:`IPv6-adresse`,mac:`MAC-adresse`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkoda streng`,base64url:`base64url-enkoda streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,credit_card:`kredittkortnummer`,currency_code:`valutakode`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tal`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventa instanceof ${e.expected}, fekk ${i}`:`Ugyldig input: forventa ${t}, fekk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventa ${a.stringifyPrimitive(e.values[0])}`:`Ugyldig val: forventa eitt av ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventa ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`For stor(t): forventa ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventa ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventa ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må slutte med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må innehalde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tal: må vere eit multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjende nøklar`:`Ukjend nøkkel`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}};function s(){return{localeError:o()}}t.exports=e.default})),xp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`},map:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-adresse`,ipv6:`IPv6-adresse`,mac:`MAC-adresse`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,credit_card:`kredittkortnummer`,currency_code:`valutakode`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${a.stringifyPrimitive(e.values[0])}`:`Ugyldig valg: forventet en av ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}};function s(){return{localeError:o()}}t.exports=e.default})),Sp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`},map:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,mac:`MAC nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,credit_card:`i'tibâr kartı numarası`,currency_code:`para birimi kodu`,iban:`IBAN`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${a.stringifyPrimitive(e.values[0])}`:`Fâsit tercih: mûteberler ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}};function s(){return{localeError:o()}}t.exports=e.default})),Cp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`},map:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,mac:`د MAC پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,credit_card:`د کریډیټ کارت شمیره`,currency_code:`د اسعارو کوډ`,iban:`IBAN`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${a.stringifyPrimitive(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${a.joinValues(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}};function s(){return{localeError:o()}}t.exports=e.default})),wp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`},map:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,mac:`adres MAC`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,credit_card:`numer karty kredytowej`,currency_code:`kod waluty`,iban:`IBAN`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${a.stringifyPrimitive(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}};function s(){return{localeError:o()}}t.exports=e.default})),Tp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caracteres`},file:{unit:`bytes`},array:{unit:`elementos`},set:{unit:`elementos`},map:{unit:`entradas`}};function t(t){return e[t]??null}let n={regex:`a entrada`,email:`o endereço de e-mail`,url:`o URL`,emoji:`o emoji`,uuid:`o UUID`,uuidv4:`o UUIDv4`,uuidv6:`o UUIDv6`,nanoid:`o nanoid`,guid:`o GUID`,cuid:`o cuid`,cuid2:`o cuid2`,ulid:`o ULID`,xid:`o XID`,ksuid:`o KSUID`,datetime:`a data e hora ISO`,date:`a data ISO`,time:`a hora ISO`,duration:`a duração ISO`,ipv4:`o endereço IPv4`,ipv6:`o endereço IPv6`,mac:`o endereço MAC`,cidrv4:`o intervalo de endereços IPv4`,cidrv6:`o intervalo de endereços IPv6`,base64:`o texto codificado em base64`,base64url:`o texto codificado em base64url`,json_string:`o texto JSON`,e164:`o número E.164`,credit_card:`o número de cartão de crédito`,currency_code:`o código de moeda`,iban:`o IBAN`,jwt:`o JWT`,template_literal:`a entrada`},r={masculine:{definite:`o`,indefinite:`um`},feminine:{definite:`a`,indefinite:`uma`}},i={string:{name:`texto`,articles:r.masculine},number:{name:`número`,articles:r.masculine},int:{name:`número inteiro`,articles:r.masculine},boolean:{name:`valor booleano`,articles:r.masculine},bigint:{name:`número bigint`,articles:r.masculine},symbol:{name:`símbolo`,articles:r.masculine},undefined:{name:`valor "undefined"`,articles:r.masculine},null:{name:`valor "nulo"`,articles:r.masculine},never:{name:`valor "never"`,articles:r.masculine},void:{name:`valor "void"`,articles:r.masculine},date:{name:`data`,articles:r.feminine},array:{name:`vetor`,articles:r.masculine},object:{name:`objeto`,articles:r.masculine},tuple:{name:`tuplo`,articles:r.masculine},record:{name:`registo`,articles:r.masculine},map:{name:`mapa`,articles:r.masculine},set:{name:`conjunto`,articles:r.masculine},file:{name:`ficheiro`,articles:r.masculine},nonoptional:{name:`valor não opcional`,articles:r.masculine},nan:{name:`valor "NaN"`,articles:r.masculine},function:{name:`função`,articles:r.feminine}};function o(e,t){let n=i[e]??{name:`valor "${e}"`,articles:r.masculine};return`${n.articles[t]} ${n.name}`}return e=>{switch(e.code){case`invalid_type`:return`Entrada inválida: esperava ${o(e.expected,`indefinite`)}, recebeu ${o(a.parsedType(e.input),`indefinite`)}`;case`invalid_value`:return e.values.length===1?`Entrada inválida: esperava ${a.stringifyPrimitive(e.values[0])}`:`Opção inválida: esperava uma das seguintes opções: ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Demasiado grande: esperava que ${o(e.origin,`definite`)} tivesse ${n} ${e.maximum.toString()} ${r.unit??`elementos`}`:`Demasiado grande: esperava que ${o(e.origin,`definite`)} fosse ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Demasiado pequeno: esperava que ${o(e.origin,`definite`)} tivesse ${n} ${e.minimum.toString()} ${r.unit??`elementos`}`:`Demasiado pequeno: esperava que ${o(e.origin,`definite`)} fosse ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar por "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar em "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`Formato d${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:{let t=e.keys.length>1?`s`:``;return`Chave${t} inválida${t}: ${a.joinValues(e.keys,`, `)}`}case`invalid_key`:return`Entrada inválida n${o(e.origin,`definite`)}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Valor de discriminação inválido. Esperava ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Entrada inválida`;case`invalid_element`:return`Entrada inválida n${o(e.origin,`definite`)}`;default:return`Entrada inválida`}}};function s(){return{localeError:o()}}t.exports=e.default})),Ep=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caracteres`},file:{unit:`bytes`},array:{unit:`elementos`},set:{unit:`elementos`},map:{unit:`entradas`}};function t(t){return e[t]??null}let n={regex:`a entrada`,email:`o endereço de e-mail`,url:`o URL`,emoji:`o emoji`,uuid:`o UUID`,uuidv4:`o UUIDv4`,uuidv6:`o UUIDv6`,nanoid:`o nanoid`,guid:`o GUID`,cuid:`o cuid`,cuid2:`o cuid2`,ulid:`o ULID`,xid:`o XID`,ksuid:`o KSUID`,datetime:`a data e hora ISO`,date:`a data ISO`,time:`a hora ISO`,duration:`a duração ISO`,ipv4:`o endereço IPv4`,ipv6:`o endereço IPv6`,mac:`o endereço MAC`,cidrv4:`a faixa de endereços IPv4`,cidrv6:`a faixa de endereços IPv6`,base64:`o texto codificado em base64`,base64url:`o texto codificado em base64url`,json_string:`o texto JSON`,e164:`o número E.164`,credit_card:`o número de cartão de crédito`,currency_code:`o código de moeda`,iban:`o IBAN`,jwt:`o JWT`,template_literal:`a entrada`},r={masculine:{definite:`o`,indefinite:`um`},feminine:{definite:`a`,indefinite:`uma`}},i={string:{name:`texto`,articles:r.masculine},number:{name:`número`,articles:r.masculine},int:{name:`número inteiro`,articles:r.masculine},boolean:{name:`valor booleano`,articles:r.masculine},bigint:{name:`número bigint`,articles:r.masculine},symbol:{name:`símbolo`,articles:r.masculine},undefined:{name:`valor "undefined"`,articles:r.masculine},null:{name:`valor "nulo"`,articles:r.masculine},never:{name:`valor "never"`,articles:r.masculine},void:{name:`valor "void"`,articles:r.masculine},date:{name:`data`,articles:r.feminine},array:{name:`vetor`,articles:r.masculine},object:{name:`objeto`,articles:r.masculine},tuple:{name:`tupla`,articles:r.feminine},record:{name:`registro`,articles:r.masculine},map:{name:`mapa`,articles:r.masculine},set:{name:`conjunto`,articles:r.masculine},file:{name:`arquivo`,articles:r.masculine},nonoptional:{name:`valor não opcional`,articles:r.masculine},nan:{name:`valor "NaN"`,articles:r.masculine},function:{name:`função`,articles:r.feminine}};function o(e,t){let n=i[e]??{name:`valor "${e}"`,articles:r.masculine};return`${n.articles[t]} ${n.name}`}return e=>{switch(e.code){case`invalid_type`:return`Entrada inválida: esperava ${o(e.expected,`indefinite`)}, recebeu ${o(a.parsedType(e.input),`indefinite`)}`;case`invalid_value`:return e.values.length===1?`Entrada inválida: esperava ${a.stringifyPrimitive(e.values[0])}`:`Opção inválida: esperava uma das seguintes opções: ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Grande demais: esperava que ${o(e.origin,`definite`)} tivesse ${n} ${e.maximum.toString()} ${r.unit??`elementos`}`:`Grande demais: esperava que ${o(e.origin,`definite`)} fosse ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Pequeno demais: esperava que ${o(e.origin,`definite`)} tivesse ${n} ${e.minimum.toString()} ${r.unit??`elementos`}`:`Pequeno demais: esperava que ${o(e.origin,`definite`)} fosse ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`Formato d${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:{let t=e.keys.length>1?`s`:``;return`Chave${t} inválida${t}: ${a.joinValues(e.keys,`, `)}`}case`invalid_key`:return`Entrada inválida n${o(e.origin,`definite`)}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Valor de discriminação inválido. Esperava ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Entrada inválida`;case`invalid_element`:return`Entrada inválida n${o(e.origin,`definite`)}`;default:return`Entrada inválida`}}};function s(){return{localeError:o()}}t.exports=e.default})),Dp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,credit_card:`număr de card de credit`,currency_code:`cod valutar`,iban:`IBAN`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${a.stringifyPrimitive(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}};function s(){return{localeError:o()}}t.exports=e.default})),Op=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;let a=i($());function o(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}let s=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},map:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,mac:`MAC адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,credit_card:`номер кредитной карты`,currency_code:`код валюты`,iban:`IBAN`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${a.stringifyPrimitive(e.values[0])}`:`Неверный вариант: ожидалось одно из ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=o(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=o(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}};function c(){return{localeError:s()}}t.exports=e.default})),kp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`znakov`,verb:`mať`},file:{unit:`bajtov`,verb:`mať`},array:{unit:`prvkov`,verb:`mať`},set:{unit:`prvkov`,verb:`mať`},map:{unit:`položiek`,verb:`mať`}};function t(t){return e[t]??null}let n={regex:`regulárny výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dátum a čas vo formáte ISO`,date:`dátum vo formáte ISO`,time:`čas vo formáte ISO`,duration:`doba trvania ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,mac:`MAC adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`reťazec zakódovaný vo formáte base64`,base64url:`reťazec zakódovaný vo formáte base64url`,json_string:`reťazec vo formáte JSON`,e164:`číslo E.164`,credit_card:`číslo kreditnej karty`,currency_code:`kód meny`,iban:`IBAN`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`reťazec`,function:`funkcia`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očakávané instanceof ${e.expected}, obdržané ${i}`:`Neplatný vstup: očakávané ${t}, obdržané ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očakávané ${a.stringifyPrimitive(e.values[0])}`:`Neplatný vstup: očakávaná jedna z hodnôt ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je príliš veľká: ${e.origin??`hodnota`} musí mať ${n}${e.maximum.toString()} ${r.unit??`prvkov`}`:`Hodnota je príliš veľká: ${e.origin??`hodnota`} musí byť ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je príliš malá: ${e.origin??`hodnota`} musí mať ${n}${e.minimum.toString()} ${r.unit??`prvkov`}`:`Hodnota je príliš malá: ${e.origin??`hodnota`} musí byť ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný reťazec: musí začínať na "${t.prefix}"`:t.format===`ends_with`?`Neplatný reťazec: musí končiť na "${t.suffix}"`:t.format===`includes`?`Neplatný reťazec: musí obsahovať "${t.includes}"`:t.format===`regex`?`Neplatný reťazec: musí zodpovedať vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí byť násobkom ${e.divisor}`;case`unrecognized_keys`:return`Neznáme klúče: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klúč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}};function s(){return{localeError:o()}}t.exports=e.default})),Ap=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`},map:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,mac:`MAC naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,credit_card:`številka kreditne kartice`,currency_code:`koda valute`,iban:`IBAN`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${a.stringifyPrimitive(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}};function s(){return{localeError:o()}}t.exports=e.default})),jp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`},map:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-adress`,ipv6:`IPv6-adress`,mac:`MAC-adress`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,credit_card:`kreditkortsnummer`,currency_code:`valutakod`,iban:`IBAN`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${a.stringifyPrimitive(e.values[0])}`:`Ogiltigt val: förväntade en av ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}};function s(){return{localeError:o()}}t.exports=e.default})),Mp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},map:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,mac:`MAC முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,credit_card:`கடன் அட்டை எண்`,currency_code:`நாணயக் குறியீடு`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${a.stringifyPrimitive(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${a.joinValues(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}};function s(){return{localeError:o()}}t.exports=e.default})),Np=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`аломат`,verb:`дошта бошад`},file:{unit:`байт`,verb:`дошта бошад`},array:{unit:`унсур`,verb:`дошта бошад`},set:{unit:`унсур`,verb:`дошта бошад`},map:{unit:`сабт`,verb:`дошта бошад`}};function t(t){return e[t]??null}let n={regex:`вуруд`,email:`суроғаи email`,url:`URL`,emoji:`эмоҷи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`санаву вақти ISO`,date:`санаи ISO`,time:`вақти ISO`,duration:`давомнокии ISO`,ipv4:`суроғаи IPv4`,ipv6:`суроғаи IPv6`,mac:`суроғаи MAC`,cidrv4:`маҳдудаи IPv4`,cidrv6:`маҳдудаи IPv6`,base64:`сатри дар формати base64`,base64url:`сатри дар формати base64url`,json_string:`сатри JSON`,e164:`рақами E.164`,credit_card:`рақами корти кредитӣ`,currency_code:`рамзи асъор`,iban:`IBAN`,jwt:`JWT`,template_literal:`вуруд`},r={nan:`NaN`,number:`рақам`,string:`сатр`,array:`массив`,object:`объект`,date:`сана`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`Вуруди нодуруст: ${t} интизор мерафт, ${r[n]??n} гирифта шуд`}case`invalid_value`:return e.values.length===1?`Вуруди нодуруст: ${a.stringifyPrimitive(e.values[0])} интизор мерафт`:`Интихоби нодуруст: яке аз ${a.joinValues(e.values,`|`)} интизор мерафт`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Хеле калон: ${e.origin??`қимат`} бояд ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Хеле калон: ${e.origin??`қимат`} бояд ${n}${e.maximum.toString()} бошад`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Хеле хурд: ${e.origin} бояд ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Хеле хурд: ${e.origin} бояд ${n}${e.minimum.toString()} бошад`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Сатри нодуруст: бояд бо "${t.prefix}" оғоз шавад`:t.format===`ends_with`?`Сатри нодуруст: бояд бо "${t.suffix}" анҷом ёбад`:t.format===`includes`?`Сатри нодуруст: бояд "${t.includes}"-ро дар бар гирад`:t.format===`regex`?`Сатри нодуруст: бояд ба намунаи ${t.pattern} мувофиқат кунад`:`${n[t.format]??e.format}-и нодуруст`}case`not_multiple_of`:return`Рақами нодуруст: бояд ба ${e.divisor} бе бақия тақсим шавад`;case`unrecognized_keys`:return`Калид${e.keys.length>1?`ҳои`:`и`} номаълум: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Калиди нодуруст дар ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Қимати нодурусти дискриминатор: ${e.options.map(e=>`'${e}'`).join(` | `)} интизор мерафт`:`Вуруди нодуруст`;case`invalid_element`:return`Қимати нодуруст дар ${e.origin}`;default:return`Вуруди нодуруст`}}};function s(){return{localeError:o()}}t.exports=e.default})),Pp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`},map:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,mac:`ที่อยู่ MAC`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,credit_card:`หมายเลขบัตรเครดิต`,currency_code:`รหัสสกุลเงิน`,iban:`IBAN`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${a.stringifyPrimitive(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}};function s(){return{localeError:o()}}t.exports=e.default})),Fp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`simwol`,verb:`bolmaly`},file:{unit:`baýt`,verb:`bolmaly`},array:{unit:`elementler`,verb:`bolmaly`},set:{unit:`elementler`,verb:`bolmaly`},map:{unit:`elementler`,verb:`bolmaly`}};function t(t){return e[t]??null}let n={regex:`giriş`,email:`e-poçta salgysy`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sene we wagt`,date:`ISO sene`,time:`ISO wagt`,duration:`ISO wagt aralygy`,ipv4:`IPv4 salgysy`,ipv6:`IPv6 salgysy`,mac:`MAC salgysy`,cidrv4:`IPv4 aralygy`,cidrv6:`IPv6 aralygy`,base64:`base64 bilen şifrlenen setir`,base64url:`base64url bilen şifrlenen setir`,json_string:`JSON setiri`,e164:`E.164 nomeri`,credit_card:`kredit kartynyň nomeri`,currency_code:`walýuta kody`,iban:`IBAN`,jwt:`JWT`,template_literal:`şablon`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input);return`Nädogry baha: garaşylan ${t} ýerine ${r[n]??n} alyndy`}case`invalid_value`:return e.values.length===1?`Nädogry baha: ${a.stringifyPrimitive(e.values[0])} bolmaly`:`Nädogry saýlaw: aşakdakylardan biri bolmaly: ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Has uly: garaşylýan ${e.origin??`baha`} ${n} ${e.maximum.toString()} ${r.unit??`element`}`:`Has uly: garaşylýan ${e.origin??`baha`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Has kiçi: garaşylýan ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`Has kiçi: garaşylýan ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nädogry setir: "${t.prefix}" bilen başlamaly`:t.format===`ends_with`?`Nädogry setir: "${t.suffix}" bilen gutarmaly`:t.format===`includes`?`Nädogry setir: "${t.includes}" saklamaly`:t.format===`regex`?`Nädogry setir: ${t.pattern} nusga laýyk bolmaly`:`Nädogry ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nädogry san: ${e.divisor} bilen galyndysyz bölünmeli`;case`unrecognized_keys`:return`Tanalmaýan açar${e.keys.length>1?`lar`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde nädogry açar`;case`invalid_union`:return`Nädogry baha`;case`invalid_element`:return`${e.origin} içinde nädogry baha`;default:return`Nädogry baha`}}};function s(){return{localeError:o()}}t.exports=e.default})),Ip=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`},map:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,mac:`MAC adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,credit_card:`kredi kartı numarası`,currency_code:`para birimi kodu`,iban:`IBAN`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${a.stringifyPrimitive(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}};function s(){return{localeError:o()}}t.exports=e.default})),Lp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`},map:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,mac:`адреса MAC`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,credit_card:`номер кредитної картки`,currency_code:`код валюти`,iban:`IBAN`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${a.stringifyPrimitive(e.values[0])}`:`Неправильна опція: очікується одне з ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}};function s(){return{localeError:o()}}t.exports=e.default})),Rp=s(((e,t)=>{var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;let r=n(Lp());function i(){return(0,r.default)()}t.exports=e.default})),zp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`},map:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,mac:`ایم اے سی ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,credit_card:`کریڈٹ کارڈ نمبر`,currency_code:`کرنسی کوڈ`,iban:`IBAN`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${a.stringifyPrimitive(e.values[0])} متوقع تھا`:`غلط آپشن: ${a.joinValues(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${a.joinValues(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}};function s(){return{localeError:o()}}t.exports=e.default})),Bp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,credit_card:`kredit karta raqami`,currency_code:`valyuta kodi`,iban:`IBAN`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${a.stringifyPrimitive(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}};function s(){return{localeError:o()}}t.exports=e.default})),Vp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`},map:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,mac:`địa chỉ MAC`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,credit_card:`số thẻ tín dụng`,currency_code:`mã tiền tệ`,iban:`IBAN`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${a.stringifyPrimitive(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}};function s(){return{localeError:o()}}t.exports=e.default})),Hp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`},map:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,mac:`MAC地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,credit_card:`信用卡号`,currency_code:`货币代码`,iban:`IBAN`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${a.stringifyPrimitive(e.values[0])}`:`无效选项:期望以下之一 ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}};function s(){return{localeError:o()}}t.exports=e.default})),Up=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`},map:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,mac:`MAC 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,credit_card:`信用卡號`,currency_code:`貨幣代碼`,iban:`IBAN`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${a.stringifyPrimitive(e.values[0])}`:`無效的選項:預期為以下其中之一 ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${a.joinValues(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}};function s(){return{localeError:o()}}t.exports=e.default})),Wp=s(((e,t)=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;let a=i($()),o=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`},map:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,mac:`àdírẹ́sì MAC`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,credit_card:`nọmba kaadi gbese`,currency_code:`koodu owó`,iban:`IBAN`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=a.parsedType(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${a.stringifyPrimitive(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${a.joinValues(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${a.joinValues(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}};function s(){return{localeError:o()}}t.exports=e.default})),Gp=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.sv=e.sl=e.sk=e.ru=e.ro=e.ptBR=e.pt=e.pl=e.ps=e.ota=e.no=e.nn=e.nl=e.ne=e.ms=e.mk=e.lt=e.ko=e.kn=e.km=e.kh=e.ka=e.ja=e.it=e.is=e.id=e.hy=e.hu=e.hr=e.hi=e.he=e.gu=e.frCA=e.fr=e.fi=e.fa=e.es=e.eo=e.en=e.el=e.de=e.da=e.cs=e.ckb=e.ca=e.bn=e.bg=e.be=e.az=e.ar=void 0,e.yo=e.zhTW=e.zhCN=e.vi=e.uz=e.ur=e.uk=e.ua=e.tr=e.tk=e.th=e.tg=e.ta=void 0;var n=If();Object.defineProperty(e,"ar",{enumerable:!0,get:function(){return t(n).default}});var r=Lf();Object.defineProperty(e,"az",{enumerable:!0,get:function(){return t(r).default}});var i=Rf();Object.defineProperty(e,"be",{enumerable:!0,get:function(){return t(i).default}});var a=zf();Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return t(a).default}});var o=Bf();Object.defineProperty(e,"bn",{enumerable:!0,get:function(){return t(o).default}});var s=Vf();Object.defineProperty(e,"ca",{enumerable:!0,get:function(){return t(s).default}});var c=Hf();Object.defineProperty(e,"ckb",{enumerable:!0,get:function(){return t(c).default}});var l=Uf();Object.defineProperty(e,"cs",{enumerable:!0,get:function(){return t(l).default}});var u=Wf();Object.defineProperty(e,"da",{enumerable:!0,get:function(){return t(u).default}});var d=Gf();Object.defineProperty(e,"de",{enumerable:!0,get:function(){return t(d).default}});var f=Kf();Object.defineProperty(e,"el",{enumerable:!0,get:function(){return t(f).default}});var p=qf();Object.defineProperty(e,"en",{enumerable:!0,get:function(){return t(p).default}});var m=Jf();Object.defineProperty(e,"eo",{enumerable:!0,get:function(){return t(m).default}});var h=Yf();Object.defineProperty(e,"es",{enumerable:!0,get:function(){return t(h).default}});var g=Xf();Object.defineProperty(e,"fa",{enumerable:!0,get:function(){return t(g).default}});var _=Zf();Object.defineProperty(e,"fi",{enumerable:!0,get:function(){return t(_).default}});var v=Qf();Object.defineProperty(e,"fr",{enumerable:!0,get:function(){return t(v).default}});var y=$f();Object.defineProperty(e,"frCA",{enumerable:!0,get:function(){return t(y).default}});var b=ep();Object.defineProperty(e,"gu",{enumerable:!0,get:function(){return t(b).default}});var x=tp();Object.defineProperty(e,"he",{enumerable:!0,get:function(){return t(x).default}});var S=np();Object.defineProperty(e,"hi",{enumerable:!0,get:function(){return t(S).default}});var C=rp();Object.defineProperty(e,"hr",{enumerable:!0,get:function(){return t(C).default}});var w=ip();Object.defineProperty(e,"hu",{enumerable:!0,get:function(){return t(w).default}});var T=ap();Object.defineProperty(e,"hy",{enumerable:!0,get:function(){return t(T).default}});var E=op();Object.defineProperty(e,"id",{enumerable:!0,get:function(){return t(E).default}});var D=sp();Object.defineProperty(e,"is",{enumerable:!0,get:function(){return t(D).default}});var O=cp();Object.defineProperty(e,"it",{enumerable:!0,get:function(){return t(O).default}});var k=lp();Object.defineProperty(e,"ja",{enumerable:!0,get:function(){return t(k).default}});var A=up();Object.defineProperty(e,"ka",{enumerable:!0,get:function(){return t(A).default}});var j=fp();Object.defineProperty(e,"kh",{enumerable:!0,get:function(){return t(j).default}});var M=dp();Object.defineProperty(e,"km",{enumerable:!0,get:function(){return t(M).default}});var N=pp();Object.defineProperty(e,"kn",{enumerable:!0,get:function(){return t(N).default}});var P=mp();Object.defineProperty(e,"ko",{enumerable:!0,get:function(){return t(P).default}});var F=hp();Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t(F).default}});var I=gp();Object.defineProperty(e,"mk",{enumerable:!0,get:function(){return t(I).default}});var L=_p();Object.defineProperty(e,"ms",{enumerable:!0,get:function(){return t(L).default}});var R=vp();Object.defineProperty(e,"ne",{enumerable:!0,get:function(){return t(R).default}});var z=yp();Object.defineProperty(e,"nl",{enumerable:!0,get:function(){return t(z).default}});var B=bp();Object.defineProperty(e,"nn",{enumerable:!0,get:function(){return t(B).default}});var V=xp();Object.defineProperty(e,"no",{enumerable:!0,get:function(){return t(V).default}});var H=Sp();Object.defineProperty(e,"ota",{enumerable:!0,get:function(){return t(H).default}});var U=Cp();Object.defineProperty(e,"ps",{enumerable:!0,get:function(){return t(U).default}});var W=wp();Object.defineProperty(e,"pl",{enumerable:!0,get:function(){return t(W).default}});var G=Tp();Object.defineProperty(e,"pt",{enumerable:!0,get:function(){return t(G).default}});var ee=Ep();Object.defineProperty(e,"ptBR",{enumerable:!0,get:function(){return t(ee).default}});var K=Dp();Object.defineProperty(e,"ro",{enumerable:!0,get:function(){return t(K).default}});var q=Op();Object.defineProperty(e,"ru",{enumerable:!0,get:function(){return t(q).default}});var te=kp();Object.defineProperty(e,"sk",{enumerable:!0,get:function(){return t(te).default}});var ne=Ap();Object.defineProperty(e,"sl",{enumerable:!0,get:function(){return t(ne).default}});var re=jp();Object.defineProperty(e,"sv",{enumerable:!0,get:function(){return t(re).default}});var ie=Mp();Object.defineProperty(e,"ta",{enumerable:!0,get:function(){return t(ie).default}});var ae=Np();Object.defineProperty(e,"tg",{enumerable:!0,get:function(){return t(ae).default}});var J=Pp();Object.defineProperty(e,"th",{enumerable:!0,get:function(){return t(J).default}});var oe=Fp();Object.defineProperty(e,"tk",{enumerable:!0,get:function(){return t(oe).default}});var se=Ip();Object.defineProperty(e,"tr",{enumerable:!0,get:function(){return t(se).default}});var ce=Rp();Object.defineProperty(e,"ua",{enumerable:!0,get:function(){return t(ce).default}});var Y=Lp();Object.defineProperty(e,"uk",{enumerable:!0,get:function(){return t(Y).default}});var le=zp();Object.defineProperty(e,"ur",{enumerable:!0,get:function(){return t(le).default}});var ue=Bp();Object.defineProperty(e,"uz",{enumerable:!0,get:function(){return t(ue).default}});var de=Vp();Object.defineProperty(e,"vi",{enumerable:!0,get:function(){return t(de).default}});var fe=Hp();Object.defineProperty(e,"zhCN",{enumerable:!0,get:function(){return t(fe).default}});var pe=Up();Object.defineProperty(e,"zhTW",{enumerable:!0,get:function(){return t(pe).default}});var me=Wp();Object.defineProperty(e,"yo",{enumerable:!0,get:function(){return t(me).default}}),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Kp=s((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.globalRegistry=e.$ZodRegistry=e.$input=e.$output=void 0,e.registry=r,e.$output=Symbol(`ZodOutput`),e.$input=Symbol(`ZodInput`);var n=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};e.$ZodRegistry=n;function r(){return new n}(t=globalThis).__zod_globalRegistry??(t.__zod_globalRegistry=r()),e.globalRegistry=globalThis.__zod_globalRegistry,(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),qp=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.ZodCompileUnsupportedError=e.ZodCompileAsyncError=e.INVALID=void 0,e.compile=m,e.withParser=h,e.compileFn=_;let i=Df(),a=Mf(),o=Ff(),s=r(Af()),c=Pf(),l=r($());e.INVALID=Symbol.for(`zod.compile.invalid`);let u=Symbol.for(`zod.compile.fallback`);var d=class extends Error{constructor(e=`z.compile does not support async refinements, transforms, or checks`){super(e),this.name=`ZodCompileAsyncError`}};e.ZodCompileAsyncError=d;var f=class extends Error{constructor(e,t=!0){super(`z.compile does not support ${e}; this schema must use the runtime parser`),this.name=`ZodCompileUnsupportedError`,this.islandable=t}};e.ZodCompileUnsupportedError=f;function p(e,t){try{return _(e,{assertOnly:!0})}catch{return t}}function m(e,t){try{let t=_(e),n=h(e,t);return n._zod.bag.validator=p(e,t),n}catch(n){if(t?.strict)throw n;return e}}function h(t,n){if((0,o.isRecursiveSchema)(t))throw new f(`a schema whose subtree contains a reference cycle`);let r=l.clone(t),i=t._zod.run,a=i.__originalRun??i,s=(t,r)=>{if(r?.async||r?.direction===`backward`||r?.skipChecks||r?.[u]||r&&(0,o.isBackEdge)(r,t.value))return a(t,r);let i=n(t.value);return i===e.INVALID?(r&&(r[u]=!0),a(t,r)):(t.value=i,t)};return s.__originalRun=a,r._zod.bag.fallbackRun=a,r._zod.bag.validator=n,r._zod.run=s,i.__originalRun||g(r,t,n),r}function g(t,n,r){let i=t,a=n;if(typeof a.safeParse==`function`){let t=a.safeParse;i.safeParse=(n,i)=>{let a=r(n);return a===e.INVALID?t(n,i):{success:!0,data:a}}}if(typeof a.parse==`function`){let t=a.parse;i.parse=(n,i)=>{let a=r(n);return a===e.INVALID?t(n,i):a}}}function _(t,n){let r=!0;try{r=(0,o.isRecursiveSchema)(t)}catch{}if(r)throw new f(`a schema whose subtree contains a reference cycle`);let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},s=new a.Doc([`input`]),c=U(s,i,t,`input`,!n?.assertOnly);s.write(c===null?`return true;`:`return ${c};`);let l=[`INVALID`,...i.constants.keys()],u=[e.INVALID,...i.constants.values()],d=s.content.join(`
216
+ `),p=n?.debug?l.length>0?`// Constants: ${l.join(`, `)}\n${d}`:d:``,m=Function,h=`return (input) => {\n${d}\n}`,g;try{g=new m(...l,h)(...u)}catch(e){throw new f(`this schema (generated code failed to evaluate: ${e.message})`)}return n?.debug&&(g.code=p),g.definite=i.definite,g}function v(e,t){for(let[n,r]of e.constants)if(r===t)return n;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function y(e,t){return e.definite=!1,v(e,t)}function b(e){return`v${e.varCounter++}`}function x(t,n){let r=t._zod.run({value:n,issues:[]},{});if(r&&typeof r.then==`function`)return e.INVALID;let i=r;return i.issues.length===0?i.value:e.INVALID}function S(e,t,n,r,i=!0){let a=e.content.length,o=t.constants.size,s=t.constantCounter,c=t.varCounter;try{return U(e,t,n,r,i)}catch(i){if(!(i instanceof f)||!i.islandable)throw i;if(e.content.length=a,t.constants.size>o){let e=Array.from(t.constants.keys()).slice(o);for(let n of e)t.constants.delete(n)}return t.constantCounter=s,t.varCounter=c,C(e,t,n,r)}}function C(e,t,n,r){t.definite=!1;let i=v(t,n),a=v(t,x),o=b(t);return e.write(`const ${o} = ${a}(${i}, ${r});`),e.write(`if (${o} === INVALID) return INVALID;`),o}let w=new Set([`max_size`,`min_size`,`size_equals`,`max_length`,`min_length`,`length_equals`]);function T(e,t,n,r){let i=n._zod.def.checks;if(!i||i.length===0)return r;let a=r;for(let n of i){let r=n._zod.def;if(r.when&&!w.has(r.check))throw new f(`check with a custom "when" condition`);switch(r.check){case`greater_than`:k(e,t,r,a);break;case`less_than`:A(e,t,r,a);break;case`multiple_of`:j(e,t,r,a);break;case`number_format`:M(e,r,a);break;case`min_length`:{let n=D(r.minimum,`min_length`),i=E(e,t,a,`${a}.length >= ${n} && ${a}.length < ${r.minimum*2}`);e.write(`if (${i} < ${n}) return INVALID;`);break}case`max_length`:{let n=D(r.maximum,`max_length`),i=E(e,t,a,`${a}.length > ${n}`);e.write(`if (${i} > ${n}) return INVALID;`);break}case`length_equals`:{let n=D(r.length,`length_equals`),i=E(e,t,a,`${a}.length >= ${n} && ${a}.length <= ${r.length*2}`);e.write(`if (${i} !== ${n}) return INVALID;`);break}case`min_size`:e.write(`if (${a}.size < ${D(r.minimum,`min_size`)}) return INVALID;`);break;case`max_size`:e.write(`if (${a}.size > ${D(r.maximum,`max_size`)}) return INVALID;`);break;case`size_equals`:e.write(`if (${a}.size !== ${D(r.size,`size_equals`)}) return INVALID;`);break;case`string_format`:a=H(e,t,r,a);break;case`custom`:a=B(e,t,n,a);break;case`bigint_format`:N(e,r,a);break;case`mime_type`:P(e,t,r,a);break;case`property`:I(e,t,r,a);break;case`properties`:F(e,t,r,a);break;case`overwrite`:{let r=b(t);L(e,t,n,a,r),a=r;break}default:throw new f(`check type ${r.check}`)}}return a}function E(e,t,n,r){let i=v(t,l.codePointLength),a=b(t);return e.write(`const ${a} = typeof ${n} === "string" && ${r} ? ${i}(${n}) : ${n}.length;`),a}function D(e,t){if(typeof e!=`number`||!Number.isFinite(e))throw new f(`${t} bound of type ${typeof e}`);return`${e}`}function O(e,t){if(typeof t==`bigint`)return`${t}n`;if(typeof t==`number`){if(Number.isNaN(t))throw new f(`comparison check with NaN bound`);return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new f(`comparison check with Invalid Date bound`);return v(e,t)}throw new f(`comparison check bound of type ${typeof t}`)}function k(e,t,n,r){let i=n.inclusive?`<`:`<=`;e.write(`if (${r} ${i} ${O(t,n.value)}) return INVALID;`)}function A(e,t,n,r){let i=n.inclusive?`>`:`>=`;e.write(`if (${r} ${i} ${O(t,n.value)}) return INVALID;`)}function j(e,t,n,r){if(typeof n.value==`bigint`){if(n.value===BigInt(0))throw new f(`multiple_of check with a zero divisor`);e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let i=v(t,l.floatSafeRemainder);e.write(`if (${i}(${r}, ${D(n.value,`multiple_of`)}) !== 0) return INVALID;`)}}function M(e,t,n){let r=t.format;switch(r){case`safeint`:e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case`int32`:e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case`uint32`:e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case`float32`:e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case`float64`:e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new f(`number format ${r}`)}}function N(e,t,n){let r=t.format;if(r)switch(r){case`int64`:e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case`uint64`:e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new f(`bigint format ${r}`)}}function P(e,t,n,r){let i=n.mime;if(i&&i.length>0){let n=v(t,new Set(i));e.write(`if (!${n}.has(${r}.type)) return INVALID;`)}}function F(e,t,n,r){if(n.when)throw new f(`check with a custom "when" condition`);e.write(`if (${r} == null) return INVALID;`);let i=n.shape;for(let n of Reflect.ownKeys(i)){let a=typeof n==`symbol`?v(t,n):l.esc(n),o=b(t);e.write(`const ${o} = ${r}[${a}];`),S(e,t,i[n],o,!1)}}function I(e,t,n,r){let i=`${r}[${JSON.stringify(n.property)}]`;U(e,t,n.schema,i)}function L(e,t,n,r,i){let a=n._zod.def.tx;if(!a)throw new f(`overwrite check without a transform function`);if(Fe(a))throw new d(`z.compile: async overwrite transforms are not supported`);let o=v(t,a);e.write(`const ${i} = ${o}(${r});`)}function R(){throw new i.$ZodAsyncError}function z(e){this.issues.push(e)}function B(t,n,r,i){let a=r._zod.def;if(a.fn){if(Fe(a.fn))throw new d(`z.compile: async .refine() predicates are not supported`);let e=y(n,a.fn),r=v(n,R),o=b(n);return t.write(`const ${o} = ${e}(${i});`),t.write(`if (${o} instanceof Promise) ${r}();`),t.write(`if (!${o}) return INVALID;`),i}if(r._zod.check){if(Fe(r._zod.check))throw new d(`z.compile: async .superRefine() / check functions are not supported`);let a=r._zod.check,o=y(n,t=>{let n={value:t,issues:[],addIssue:z};return a(n)instanceof Promise&&R(),n.issues.length===0?n.value:e.INVALID}),s=b(n);return t.write(`const ${s} = ${o}(${i});`),t.write(`if (${s} === INVALID) return INVALID;`),s}throw new f(`custom check without a predicate or check function`)}let V=new Set([`cidrv4`,`cuid`,`cuid2`,`date`,`datetime`,`duration`,`e164`,`email`,`emoji`,`ends_with`,`guid`,`includes`,`ipv4`,`ksuid`,`lowercase`,`mac`,`nanoid`,`regex`,`starts_with`,`time`,`ulid`,`uppercase`,`uuid`,`xid`]);function H(e,t,n,r,i=!0){let a=n.format;if(a===`base64`){let n=v(t,c.isValidBase64);return e.write(`if (!${n}(${r})) return INVALID;`),r}if(a===`base64url`){let n=v(t,c.isValidBase64URL);return e.write(`if (!${n}(${r})) return INVALID;`),r}if(a===`jwt`){let i=v(t,c.isValidJWT),a=v(t,n.alg??null);return e.write(`if (!${i}(${r}, ${a})) return INVALID;`),r}if(a===`ipv6`){let n=v(t,c.isValidIPv6);return e.write(`if (!${n}(${r})) return INVALID;`),r}if(a===`cidrv6`){let n=v(t,c.isValidCIDRv6);return e.write(`if (!${n}(${r})) return INVALID;`),r}if(a===`credit_card`){let n=v(t,c.isValidCreditCard);return e.write(`if (!${n}(${r})) return INVALID;`),r}if(a===`iban`){let n=v(t,c.isValidIBAN);return e.write(`if (!${n}(${r})) return INVALID;`),r}let o=n;if(a===`url`||a===`httpurl`||o.normalize||o.hostname!==void 0||o.protocol!==void 0){let a=v(t,c.validateURL),s=v(t,n),l=b(t),u=b(t);if(e.write(`const ${l} = ${r}.trim();`),e.write(`const ${u} = ${a}(${l}, ${s});`),e.write(`if (typeof ${u} === "number") return INVALID;`),o.hostname!==void 0){let n=v(t,c.urlHostnameOk);e.write(`if (!${n}(${u}, ${s}.hostname)) return INVALID;`)}if(o.protocol!==void 0){let n=v(t,c.urlProtocolOk);e.write(`if (!${n}(${u}, ${s}.protocol)) return INVALID;`)}if(!i)return null;let d=b(t),f=o.normalize?`${u}.href`:`${v(t,c.stripTabAndNewline)}(${l})`;return e.write(`const ${d} = ${f};`),d}let s=n.fn;if(s){if(Fe(s))throw new f(`async string format ${a}`);let n=v(t,s);return e.write(`if (!${n}(${r})) return INVALID;`),r}if(V.has(a)&&n.pattern){let i=v(t,n.pattern);return e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`),r}let u=n.format;switch(u){case`regex`:throw new f(`regex format without a pattern`);case`lowercase`:e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case`uppercase`:e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case`includes`:e.write(`if (!${r}.includes(${l.esc(n.includes)})) return INVALID;`);break;case`starts_with`:{let t=n.prefix;e.write(`if (${r}.slice(0, ${t.length}) !== ${l.esc(t)}) return INVALID;`);break}case`ends_with`:{let t=n.suffix;e.write(`if (${r}.slice(-${t.length}) !== ${l.esc(t)}) return INVALID;`);break}default:throw new f(`string format ${u}`)}return r}function U(e,t,n,r,i=!0){let a=n._zod.def,o=a.type;if(a.coerce)throw new f(`coercion (z.coerce.${o}())`);let s=i||!!a.checks?.length,c;switch(o){case`string`:c=W(e,t,n,r,s);break;case`number`:c=G(e,n,r);break;case`boolean`:c=ee(e,r);break;case`bigint`:c=K(e,n,r);break;case`symbol`:c=q(e,r);break;case`undefined`:c=te(e,r);break;case`null`:c=ne(e,r);break;case`any`:case`unknown`:c=r;break;case`never`:e.write(`return INVALID;`),c=r;break;case`void`:c=re(e,r);break;case`nan`:c=ie(e,r);break;case`date`:c=ae(e,r);break;case`object`:c=J(e,t,n,r,s);break;case`optional`:c=oe(e,t,n,r,s);break;case`nullable`:c=fe(e,t,n,r,s);break;case`array`:c=me(e,t,n,r,s);break;case`literal`:c=he(e,t,n,r);break;case`enum`:c=ge(e,t,n,r);break;case`readonly`:{let i=_e(e,t,n,r),a=b(t);e.write(`const ${a} = Object.freeze(${i});`),c=a;break}case`success`:_e(e,t,n,r),c=`true`;break;case`default`:case`prefault`:c=ve(e,t,n,r);break;case`nonoptional`:c=ye(e,t,n,r);break;case`tuple`:c=be(e,t,n,r);break;case`union`:c=Se(e,t,n,r);break;case`intersection`:c=Te(e,t,n,r);break;case`record`:c=Ee(e,t,n,r);break;case`map`:c=ke(e,t,n,r);break;case`set`:c=Ae(e,t,n,r);break;case`file`:c=je(e,r);break;case`template_literal`:c=Me(e,t,n,r);break;case`lazy`:c=Ne(e,t,n,r);break;case`pipe`:c=Pe(e,t,n,r);break;case`custom`:c=Ie(e,t,n,r);break;case`transform`:c=ze(e,t,n,r);break;case`catch`:c=Re(e,t,n,r);break;default:throw new f(`schema type ${o}`)}return c===null?null:T(e,t,n,c)}function W(e,t,n,r,i=!0){e.write(`if (typeof ${r} !== "string") return INVALID;`);let a=n._zod.def;return a.format===void 0?r:H(e,t,a,r,i)}function G(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let r=t._zod.def;return r.check===`number_format`&&r.format&&M(e,{format:r.format},n),n}function ee(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function K(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let r=t._zod.def;if(r.format)switch(r.format){case`int64`:e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case`uint64`:e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function q(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function te(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function ne(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function re(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function ie(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function ae(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function J(e,t,n,r,i=!0){let a=n._zod.def;e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);let o=a.shape,s=Object.keys(o),c=Object.getOwnPropertySymbols(o),u=c.length?[...s,...c]:s,d=e=>typeof e==`symbol`?v(t,e):l.esc(e),p=e=>typeof e==`symbol`?`[${d(e)}]`:l.esc(e),m=o;if(s.includes(`__proto__`))throw new f(`object shape key "__proto__"`);let h=new Map;for(let n of u){let a=m[n],o=d(n),s=b(t);if(e.write(`const ${s} = ${r}[${o}];`),a._zod.optin!==void 0){let i=b(t);e.write(`let ${i} = (() => {`),e.indented(e=>{let n=S(e,t,a,s);e.write(`return ${n};`)}),e.write(`})();`),a._zod.optout===`optional`?(e.write(`if (${i} === INVALID) {`),e.indented(e=>{e.write(`if (${o} in ${r}) return INVALID;`),e.write(`${i} = undefined;`)}),e.write(`}`)):e.write(`if (${i} === INVALID) return INVALID;`),h.set(n,i)}else{ce(a)&&e.write(`if (!(${o} in ${r})) return INVALID;`);let c=S(e,t,a,s,i);c!==null&&h.set(n,c)}}let g=a.catchall,_=`none`;if(g){let t=g._zod.def.type;if(t===`never`){let t=s.map(e=>`k !== ${l.esc(e)}`).join(` && `)||`true`;e.write(`for (const k in ${r}) {`),e.indented(e=>{e.write(`if (${t}) return INVALID;`)}),e.write(`}`)}else _=(t===`unknown`||t===`any`)&&!g._zod.def.checks?.length?`passthrough`:`schema`}let y=b(t),x=u.some(e=>ue(m[e])||le(m[e]));if(!i){if(_===`schema`){let n=s.length>0?v(t,new Set(s)):null;e.write(`for (const k in ${r}) {`),e.indented(e=>{e.write(`if (k === "__proto__") continue;`),n&&e.write(`if (${n}.has(k)) continue;`);let i=b(t);e.write(`const ${i} = ${r}[k];`),S(e,t,g,i,!1)}),e.write(`}`)}return null}if(x){e.write(`const ${y} = {};`);for(let t of u){let n=d(t),i=h.get(t);le(m[t])?e.write(`if (${n} in ${r}) ${y}[${n}] = ${i};`):ue(m[t])?e.write(`if (${i} !== undefined || ${n} in ${r}) ${y}[${n}] = ${i};`):e.write(`${y}[${n}] = ${i};`)}}else{let t=u.map(e=>`${p(e)}: ${h.get(e)}`).join(`, `);e.write(`const ${y} = { ${t} };`)}if(_!==`none`){let n=s.length>0?v(t,new Set(s)):null;e.write(`for (const k in ${r}) {`),e.indented(e=>{if(e.write(`if (k === "__proto__") continue;`),n&&e.write(`if (${n}.has(k)) continue;`),_===`passthrough`)e.write(`${y}[k] = ${r}[k];`);else{let n=b(t);e.write(`const ${n} = ${r}[k];`);let i=S(e,t,g,n);e.write(`${y}[k] = ${i};`)}}),e.write(`}`)}return y}function oe(e,t,n,r,i=!0){let a=n._zod.def;if(se(n))return U(e,t,a.innerType,r,i);if(a.innerType._zod.optin===`defaulted`){let n=b(t),i=b(t);return e.write(`let ${n};`),e.write(`if (${r} === undefined) {`),e.indented(e=>{e.write(`const ${i} = (() => {`),e.indented(e=>{let n=U(e,t,a.innerType,r);e.write(`return ${n};`)}),e.write(`})();`),e.write(`if (${i} !== INVALID) ${n} = ${i};`)}),e.write(`} else {`),e.indented(e=>{let i=U(e,t,a.innerType,r);e.write(`${n} = ${i};`)}),e.write(`}`),n}let o=i?b(t):null;return o&&e.write(`let ${o};`),e.write(`if (${r} !== undefined) {`),e.indented(e=>{let n=U(e,t,a.innerType,r,i);o&&n!==null&&e.write(`${o} = ${n};`)}),e.write(`}`),o}function se(e){return e._zod.traits?.has(`$ZodExactOptional`)===!0}function ce(e){return e._zod.optin===void 0&&Y(e)}function Y(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case`any`:case`unknown`:case`undefined`:case`void`:case`default`:case`prefault`:case`transform`:case`custom`:case`lazy`:return!0;case`string`:case`number`:case`boolean`:case`bigint`:case`symbol`:case`null`:case`never`:case`nan`:case`date`:case`object`:case`array`:case`tuple`:case`record`:case`map`:case`set`:case`file`:case`template_literal`:return!1;case`nonoptional`:return t.innerType?Y(t.innerType):!1;case`literal`:return!!t.values?.includes(void 0);case`enum`:return!!e._zod.values?.has(void 0);case`optional`:case`nullable`:case`readonly`:case`success`:return!t.innerType||Y(t.innerType);case`catch`:return!0;case`union`:return!t.options||t.options.some(Y);case`intersection`:return!t.left||!t.right||Y(t.left)&&Y(t.right);case`pipe`:return!t.in||Y(t.in);default:return!0}}function le(e){return e._zod.optin===`optional`&&e._zod.optout===`optional`}function ue(e){return(e._zod.optin!==`defaulted`||e._zod.optout===`optional`)&&de(e)}function de(e){let t=e._zod.def;switch(t.type){case`string`:case`number`:case`boolean`:case`bigint`:case`symbol`:case`null`:case`nan`:case`date`:case`object`:case`array`:case`tuple`:case`record`:case`map`:case`set`:case`file`:case`template_literal`:case`never`:case`success`:return!1;case`literal`:return!!t.values?.includes(void 0);case`enum`:return!!e._zod.values?.has(void 0);case`optional`:return!0;case`nullable`:case`readonly`:case`nonoptional`:return!t.innerType||de(t.innerType);case`union`:return!t.options||t.options.some(de);case`intersection`:return!t.left||!t.right||de(t.left)||de(t.right);case`pipe`:return!t.out||de(t.out);default:return!0}}function fe(e,t,n,r,i=!0){let a=n._zod.def,o=i?b(t):null;return o&&e.write(`let ${o} = null;`),e.write(`if (${r} !== null) {`),e.indented(e=>{let n=U(e,t,a.innerType,r,i);o&&n!==null&&e.write(`${o} = ${n};`)}),e.write(`}`),o}function pe(e,t,n){for(let[r,i]of l.sizeCaps(t._zod.def.checks))e.write(`if (${n} > ${D(r,i._zod.def.check)}) return INVALID;`)}function me(e,t,n,r,i=!0){let a=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`),pe(e,n,`${r}.length`);let o=i?b(t):null,s=b(t),c=b(t);return o&&e.write(`const ${o} = new Array(${r}.length);`),e.write(`for (let ${s} = 0; ${s} < ${r}.length; ${s}++) {`),e.indented(e=>{e.write(`const ${c} = ${r}[${s}];`);let n=S(e,t,a.element,c,i);o&&n!==null&&e.write(`${o}[${s}] = ${n};`)}),e.write(`}`),o}function he(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let n=v(t,new Set(i));return e.write(`if (!${n}.has(${r})) return INVALID;`),r}let a=i[0];if(typeof a==`number`&&Number.isNaN(a)){let n=v(t,new Set(i));return e.write(`if (!${n}.has(${r})) return INVALID;`),r}if(typeof a==`string`)e.write(`if (${r} !== ${l.esc(a)}) return INVALID;`);else if(typeof a==`number`||typeof a==`boolean`)e.write(`if (${r} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${r} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${r} !== undefined) return INVALID;`);else if(typeof a==`bigint`)e.write(`if (${r} !== ${a}n) return INVALID;`);else throw new f(`literal type ${typeof a}`);return r}function ge(e,t,n,r){let i=n._zod.values;if(!i)throw new f(`enum schema without enumerated values`);let a=v(t,i);return e.write(`if (!${a}.has(${r})) return INVALID;`),r}function _e(e,t,n,r){let i=n._zod.def;return U(e,t,i.innerType,r)}function ve(e,t,n,r){let i=n._zod.def,a=Object.getOwnPropertyDescriptor(n._zod.def,`defaultValue`)?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type===`prefault`){if(!a)return U(e,t,i.innerType,r);let n=v(t,a),o=b(t);return e.write(`let ${o} = ${r};`),e.write(`if (${r} === undefined) ${o} = ${n}();`),U(e,t,i.innerType,o)}let o=b(t);if(a){let n=v(t,a),s=v(t,l.shallowClone);e.write(`let ${o};`),e.write(`if (${r} === undefined) {`),e.indented(e=>{e.write(`${o} = ${s}(${n}());`)}),e.write(`} else {`),e.indented(e=>{let a=U(e,t,i.innerType,r);e.write(`${o} = ${a} === undefined ? ${s}(${n}()) : ${a};`)}),e.write(`}`)}else e.write(`let ${o};`),e.write(`if (${r} !== undefined) {`),e.indented(e=>{let n=U(e,t,i.innerType,r);e.write(`${o} = ${n};`)}),e.write(`}`);return o}function ye(e,t,n,r){let i=n._zod.def,a=U(e,t,i.innerType,r),o=b(t);return e.write(`const ${o} = ${a};`),e.write(`if (${o} === undefined) return INVALID;`),o}function be(e,t,n,r){let i=n._zod.def,a=i.items,o=i.rest;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=xe(a,`optin`),c=xe(a,`optout`);o?e.write(`if (${r}.length < ${s}) return INVALID;`):e.write(`if (${r}.length < ${s} || ${r}.length > ${a.length}) return INVALID;`);let l=b(t);e.write(`const ${l} = [];`);for(let n=0;n<a.length;n++){let i=a[n];if(n>=c)e.write(`if (${l}.length === ${n}) {`),e.indented(e=>{e.write(`if (${n} < ${r}.length) {`),e.indented(e=>{let a=b(t);e.write(`const ${a} = ${r}[${n}];`);let o=S(e,t,i,a);e.write(`${l}[${n}] = ${o};`)}),e.write(`} else {`),e.indented(e=>{if(le(i)){e.write(`${l}.length = ${n};`);return}let r=b(t),a=b(t);e.write(`const ${r} = undefined;`),e.write(`const ${a} = (() => {`),e.indented(e=>{let n=S(e,t,i,r);e.write(`return ${n};`)}),e.write(`})();`),e.write(`if (${a} === INVALID || ${a} === undefined) ${l}.length = ${n};`),e.write(`else ${l}[${n}] = ${a};`)}),e.write(`}`)}),e.write(`}`);else{let a=b(t);e.write(`const ${a} = ${r}[${n}];`);let o=S(e,t,i,a);e.write(`${l}[${n}] = ${o};`)}}if(o){let n=b(t),i=b(t);e.write(`for (let ${n} = ${a.length}; ${n} < ${r}.length; ${n}++) {`),e.indented(e=>{e.write(`const ${i} = ${r}[${n}];`);let a=S(e,t,o,i);e.write(`${l}[${n}] = ${a};`)}),e.write(`}`)}return l}function xe(e,t){for(let n=e.length-1;n>=0;n--)if(!(t===`optin`?e[n]._zod.optin!==void 0:e[n]._zod.optout===`optional`))return n+1;return 0}function Se(e,t,n,r){let i=n._zod.def,a=i.options;if(i.discriminator)return Ce(e,t,i,r);if(i.inclusive===!1)throw new f(`exclusive unions (z.xor)`);if(a.length===0)return e.write(`return INVALID;`),r;if(a.length===1)return U(e,t,a[0],r);if(a.every(e=>e._zod.def.type===`literal`&&!e._zod.def.checks?.length)){let n=v(t,new Set(a.flatMap(e=>e._zod.def.values)));return e.write(`if (!${n}.has(${r})) return INVALID;`),r}let o=b(t);e.write(`let ${o};`);for(let n=0;n<a.length;n++){let i=a[n];n===0?e.write(`${o} = (() => {`):e.write(`if (${o} === INVALID) ${o} = (() => {`),e.indented(e=>{let n=U(e,t,i,r);e.write(`return ${n};`)}),e.write(`})();`)}return e.write(`if (${o} === INVALID) return INVALID;`),o}function Ce(e,t,n,r){if(n.unionFallback)throw new f(`discriminated union with unionFallback`);if(n.options.length===0)return e.write(`return INVALID;`),r;let i=b(t),a=b(t);e.write(`const ${i} = ${r}?.[${l.esc(n.discriminator)}];`),e.write(`let ${a};`);let o=!0,s=new Set;for(let c of n.options){let l=c._zod.propValues?.[n.discriminator];if(!l||l.size===0)throw new f(`discriminated union option without static discriminator values`);for(let e of l){if(s.has(e))throw new f(`duplicate discriminator value ${String(e)}`);s.add(e)}let u=Array.from(l,e=>we(t,i,e)),d=o?`if`:`else if`;e.write(`${d} (${u.join(` || `)}) {`),e.indented(e=>{let n=U(e,t,c,r);e.write(`${a} = ${n};`)}),e.write(`}`),o=!1}return e.write(`else { return INVALID; }`),a}function we(e,t,n){if(typeof n==`string`)return`${t} === ${l.esc(n)}`;if(typeof n==`number`)return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n==`boolean`)return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n==`bigint`)return`${t} === ${n}n`;if(typeof n==`symbol`)return`${t} === ${v(e,n)}`;throw new f(`literal discriminator value ${String(n)}`)}function Te(e,t,n,r){let i=n._zod.def;t.definite=!1;let a=S(e,t,i.left,r),o=S(e,t,i.right,r),s=v(t,c.mergeValues),l=b(t);return e.write(`const ${l} = ${s}(${a}, ${o});`),e.write(`if (!${l}.valid) return INVALID;`),`${l}.data`}function Ee(e,t,n,r){let i=n._zod.def,a=v(t,l.isPlainObject);e.write(`if (!${a}(${r})) return INVALID;`);let o=b(t),c=b(t),u=b(t);e.write(`const ${o} = {};`);let d=i,p=d.partial?void 0:i.keyType._zod.values;if(p){let n=[];for(let a of p){if(!(typeof a==`string`||typeof a==`number`||typeof a==`symbol`))throw new f(`record key value ${String(a)}`);let s=typeof a==`number`?a.toString():a;if(s===`__proto__`)throw new f(`record key "__proto__"`);n.push(s);let c=v(t,a),l=U(e,t,i.keyType,c),u=b(t);e.write(`const ${u} = ${r}[${Oe(t,s)}];`);let d=S(e,t,i.valueType,u);e.write(`${o}[${l}] = ${d};`)}let a=v(t,new Set(n));return e.write(`for (const ${c} in ${r}) {`),e.indented(e=>{e.write(`if (${a}.has(${c})) continue;`),d.mode===`loose`?e.write(`if (${c} !== "__proto__") ${o}[${c}] = ${r}[${c}];`):e.write(`return INVALID;`)}),e.write(`}`),o}let m=i.keyType._zod.def;if(!(m.type===`string`&&m.format===void 0&&!m.coerce&&(m.checks?.length??0)===0)){let n=i.mode===`loose`,a=_(i.keyType);a.definite===!1&&(t.definite=!1);let l=v(t,a),u=v(t,s.number),d=b(t);return De(e,t,r,c,e=>{e.write(`let ${d} = ${l}(${c});`),e.write(`if (${d} === INVALID && typeof ${c} === "string" && ${u}.test(${c})) ${d} = ${l}(Number(${c}));`),n?e.write(`if (${d} === INVALID) { ${o}[${c}] = ${r}[${c}]; continue; }`):e.write(`if (${d} === INVALID) return INVALID;`),e.write(`if (${d} === "__proto__") continue;`);let a=b(t);e.write(`const ${a} = ${r}[${c}];`);let s=S(e,t,i.valueType,a);e.write(`${o}[${d}] = ${s};`)}),o}return De(e,t,r,c,e=>{e.write(`const ${u} = ${r}[${c}];`);let n=S(e,t,i.valueType,u);e.write(`${o}[${c}] = ${n};`)},`return INVALID;`),o}function De(e,t,n,r,i,a){let o=v(t,Object.prototype.propertyIsEnumerable),s=b(t),c=b(t),l=b(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${c} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${l} = 0; ${l} < ${c}.length; ${l}++) {`),e.indented(e=>{e.write(`const ${r} = ${c}[${l}];`),e.write(`if (${r} === "__proto__" || !${o}.call(${n}, ${r})) continue;`),i(e)}),e.write(`}`),e.write(`for (let ${l} = 0; ${l} < ${s}.length; ${l}++) {`),e.indented(e=>{e.write(`const ${r} = ${s}[${l}];`),e.write(`if (!${o}.call(${n}, ${r})) continue;`),a?e.write(a):i(e)}),e.write(`}`)}function Oe(e,t){return typeof t==`string`?l.esc(t):v(e,t)}function ke(e,t,n,r){let i=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`),pe(e,n,`${r}.size`);let a=b(t),o=b(t),s=b(t);return e.write(`const ${a} = new Map();`),e.write(`for (const [${o}, ${s}] of ${r}) {`),e.indented(e=>{let n=U(e,t,i.keyType,o),r=U(e,t,i.valueType,s);e.write(`${a}.set(${n}, ${r});`)}),e.write(`}`),a}function Ae(e,t,n,r){let i=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`),pe(e,n,`${r}.size`);let a=b(t),o=b(t);return e.write(`const ${a} = new Set();`),e.write(`for (const ${o} of ${r}) {`),e.indented(e=>{let n=U(e,t,i.valueType,o);e.write(`${a}.add(${n});`)}),e.write(`}`),a}function je(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Me(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let i=n._zod.pattern;if(i){let n=v(t,i);e.write(`${n}.lastIndex = 0;`),e.write(`if (!${n}.test(${r})) return INVALID;`)}return r}function Ne(e,t,n,r){let i=n._zod.def,a=y(t,i.getter),o=v(t,{parser:null});e.write(`if (!${o}.parser) {`),e.indented(e=>{e.write(`const inner = ${a}();`),e.write(`${o}.parser = function(input) {`),e.indented(e=>{e.write(`const result = inner._zod.run({ value: input, issues: [] }, {});`),e.write(`return result.issues.length === 0 ? result.value : INVALID;`)}),e.write(`};`)}),e.write(`}`);let s=b(t);return e.write(`const ${s} = ${o}.parser(${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function Pe(t,n,r,i){let a=r._zod.def,o=U(t,n,a.in,i);if(a.transform){if(Fe(a.transform))throw new d(`z.compile: async transforms in pipes are not supported`);let r=a.transform,i=y(n,t=>{let n={value:t,issues:[],addIssue:z},i=r(t,n);return i instanceof Promise?e.INVALID:n.issues.length===0?i:e.INVALID}),s=b(n);return t.write(`const ${s} = ${i}(${o});`),t.write(`if (${s} === INVALID) return INVALID;`),U(t,n,a.out,s)}else return U(t,n,a.out,o)}function Fe(e){return typeof e==`function`&&(e.constructor.name===`AsyncFunction`||e[Symbol.toStringTag]===`AsyncFunction`)}function Ie(e,t,n,r){let i=n._zod.def;if(i.fn){if(Fe(i.fn))throw new d(`z.compile: async custom predicates are not supported`);let n=y(t,i.fn),a=v(t,R),o=b(t);e.write(`const ${o} = ${n}(${r});`),e.write(`if (${o} instanceof Promise) ${a}();`),e.write(`if (!${o}) return INVALID;`)}else throw new f(`custom schema without a predicate function`);return r}function Le(t,n,r){let i=t._zod.run({value:r,issues:[]},{});if(i&&typeof i.then==`function`)return e.INVALID;let a=i;return a.issues.length===0?a.value:n()}function Re(e,t,n,r){let i=n._zod.def;if(!i.catchValue[l.CONSTANT_CATCH])throw new f(`catch with a callback (only a constant catch value compiles)`,!1);let a=b(t);e.write(`let ${a} = (() => {`),e.indented(e=>{let n=S(e,t,i.innerType,r);e.write(`return ${n};`)}),e.write(`})();`);let o=v(t,i.innerType),s=y(t,i.catchValue),c=v(t,Le);return e.write(`if (${a} === INVALID) {`),e.indented(e=>{e.write(`${a} = ${c}(${o}, ${s}, ${r});`),e.write(`if (${a} === INVALID) return INVALID;`)}),e.write(`}`),a}function ze(t,n,r,i){let a=r._zod.def;if(a.transform){if(Fe(a.transform))throw new d(`z.compile: async transforms are not supported`);let r=a.transform,o=y(n,t=>{let n={value:t,issues:[],addIssue:z},i=r(t,n);return i instanceof Promise?e.INVALID:n.issues.length===0?i:e.INVALID}),s=b(n);return t.write(`const ${s} = ${o}(${i});`),t.write(`if (${s} === INVALID) return INVALID;`),s}return i}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Jp=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.TimePrecision=void 0,e._string=l,e._coercedString=u,e._email=d,e._guid=f,e._uuid=p,e._uuidv4=m,e._uuidv6=h,e._uuidv7=g,e._url=_,e._emoji=v,e._nanoid=y,e._cuid=b,e._cuid2=x,e._ulid=S,e._xid=C,e._ksuid=w,e._ipv4=T,e._ipv6=E,e._mac=D,e._cidrv4=O,e._cidrv6=k,e._base64=A,e._base64url=j,e._e164=M,e._creditCard=N,e._iban=P,e._jwt=F,e._isoDateTime=I,e._isoDate=L,e._isoTime=R,e._isoDuration=z,e._number=B,e._coercedNumber=V,e._int=H,e._float32=U,e._float64=W,e._int32=G,e._uint32=ee,e._boolean=K,e._coercedBoolean=q,e._bigint=te,e._coercedBigint=ne,e._int64=re,e._uint64=ie,e._symbol=ae,e._undefined=J,e._null=oe,e._any=se,e._unknown=ce,e._never=Y,e._void=le,e._date=ue,e._coercedDate=de,e._nan=fe,e._lt=pe,e._lte=me,e._max=me,e._lte=me,e._max=me,e._gt=he,e._gte=ge,e._min=ge,e._gte=ge,e._min=ge,e._positive=_e,e._negative=ve,e._nonpositive=ye,e._nonnegative=be,e._multipleOf=xe,e._maxSize=Se,e._minSize=Ce,e._size=we,e._maxLength=Te,e._minLength=Ee,e._length=De,e._regex=Oe,e._lowercase=ke,e._uppercase=Ae,e._includes=je,e._startsWith=Me,e._endsWith=Ne,e._property=Pe,e._properties=Fe,e._mime=Ie,e._overwrite=Le,e._normalize=Re,e._trim=ze,e._toLowerCase=X,e._toUpperCase=Be,e._slugify=Ve,e._array=He,e._union=Ue,e._xor=We,e._discriminatedUnion=Ge,e._intersection=Ke,e._tuple=qe,e._record=Je,e._map=Ye,e._set=Xe,e._enum=Ze,e._nativeEnum=Qe,e._literal=$e,e._file=et,e._transform=tt,e._optional=nt,e._nullable=rt,e._default=it,e._nonoptional=at,e._success=ot,e._catch=st,e._pipe=ct,e._readonly=lt,e._templateLiteral=ut,e._lazy=dt,e._promise=ft,e._custom=pt,e._refine=mt,e._superRefine=ht,e._check=gt,e.describe=Z,e.meta=_t,e._stringbool=vt,e._stringFormat=yt;let i=r(jf()),a=r(Kp()),o=r(Pf()),s=r($());function c(e){return e.checks&&=[...e.checks],e}function l(e,t){return new e(c({type:`string`,...s.normalizeParams(t)}))}function u(e,t){return new e(c({type:`string`,coerce:!0,...s.normalizeParams(t)}))}function d(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function f(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function p(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function m(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...s.normalizeParams(t)})}function h(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...s.normalizeParams(t)})}function g(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...s.normalizeParams(t)})}function _(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function v(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function y(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function b(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function x(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function S(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function C(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function w(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function T(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function E(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function D(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function O(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function k(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function A(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function j(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function M(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function N(e,t){return new e({type:`string`,format:`credit_card`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function P(e,t){return new e({type:`string`,format:`iban`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}function F(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...s.normalizeParams(t)})}e.TimePrecision={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function I(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...s.normalizeParams(t)})}function L(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...s.normalizeParams(t)})}function R(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...s.normalizeParams(t)})}function z(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...s.normalizeParams(t)})}function B(e,t){return new e(c({type:`number`,checks:[],...s.normalizeParams(t)}))}function V(e,t){return new e(c({type:`number`,coerce:!0,checks:[],...s.normalizeParams(t)}))}function H(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...s.normalizeParams(t)})}function U(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...s.normalizeParams(t)})}function W(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...s.normalizeParams(t)})}function G(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...s.normalizeParams(t)})}function ee(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...s.normalizeParams(t)})}function K(e,t){return new e({type:`boolean`,...s.normalizeParams(t)})}function q(e,t){return new e({type:`boolean`,coerce:!0,...s.normalizeParams(t)})}function te(e,t){return new e({type:`bigint`,...s.normalizeParams(t)})}function ne(e,t){return new e({type:`bigint`,coerce:!0,...s.normalizeParams(t)})}function re(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...s.normalizeParams(t)})}function ie(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...s.normalizeParams(t)})}function ae(e,t){return new e({type:`symbol`,...s.normalizeParams(t)})}function J(e,t){return new e({type:`undefined`,...s.normalizeParams(t)})}function oe(e,t){return new e({type:`null`,...s.normalizeParams(t)})}function se(e){return new e({type:`any`})}function ce(e){return new e({type:`unknown`})}function Y(e,t){return new e({type:`never`,...s.normalizeParams(t)})}function le(e,t){return new e({type:`void`,...s.normalizeParams(t)})}function ue(e,t){return new e({type:`date`,...s.normalizeParams(t)})}function de(e,t){return new e({type:`date`,coerce:!0,...s.normalizeParams(t)})}function fe(e,t){return new e({type:`nan`,...s.normalizeParams(t)})}function pe(e,t){return new i.$ZodCheckLessThan({check:`less_than`,...s.normalizeParams(t),value:e,inclusive:!1})}function me(e,t){return new i.$ZodCheckLessThan({check:`less_than`,...s.normalizeParams(t),value:e,inclusive:!0})}function he(e,t){return new i.$ZodCheckGreaterThan({check:`greater_than`,...s.normalizeParams(t),value:e,inclusive:!1})}function ge(e,t){return new i.$ZodCheckGreaterThan({check:`greater_than`,...s.normalizeParams(t),value:e,inclusive:!0})}function _e(e){return he(0,e)}function ve(e){return pe(0,e)}function ye(e){return me(0,e)}function be(e){return ge(0,e)}function xe(e,t){return new i.$ZodCheckMultipleOf({check:`multiple_of`,...s.normalizeParams(t),value:e})}function Se(e,t){return new i.$ZodCheckMaxSize({check:`max_size`,...s.normalizeParams(t),maximum:e})}function Ce(e,t){return new i.$ZodCheckMinSize({check:`min_size`,...s.normalizeParams(t),minimum:e})}function we(e,t){return new i.$ZodCheckSizeEquals({check:`size_equals`,...s.normalizeParams(t),size:e})}function Te(e,t){return new i.$ZodCheckMaxLength({check:`max_length`,...s.normalizeParams(t),maximum:e})}function Ee(e,t){return new i.$ZodCheckMinLength({check:`min_length`,...s.normalizeParams(t),minimum:e})}function De(e,t){return new i.$ZodCheckLengthEquals({check:`length_equals`,...s.normalizeParams(t),length:e})}function Oe(e,t){return new i.$ZodCheckRegex({check:`string_format`,format:`regex`,...s.normalizeParams(t),pattern:e})}function ke(e){return new i.$ZodCheckLowerCase({check:`string_format`,format:`lowercase`,...s.normalizeParams(e)})}function Ae(e){return new i.$ZodCheckUpperCase({check:`string_format`,format:`uppercase`,...s.normalizeParams(e)})}function je(e,t){return new i.$ZodCheckIncludes({check:`string_format`,format:`includes`,...s.normalizeParams(t),includes:e})}function Me(e,t){return new i.$ZodCheckStartsWith({check:`string_format`,format:`starts_with`,...s.normalizeParams(t),prefix:e})}function Ne(e,t){return new i.$ZodCheckEndsWith({check:`string_format`,format:`ends_with`,...s.normalizeParams(t),suffix:e})}function Pe(e,t,n){return new i.$ZodCheckProperty({check:`property`,property:e,schema:t,...s.normalizeParams(n)})}function Fe(e,t){return new i.$ZodCheckProperties({check:`properties`,shape:e,...s.normalizeParams(t)})}function Ie(e,t){return new i.$ZodCheckMimeType({check:`mime_type`,mime:e,...s.normalizeParams(t)})}function Le(e){return new i.$ZodCheckOverwrite({check:`overwrite`,tx:e})}function Re(e){return Le(t=>t.normalize(e))}function ze(){return Le(e=>e.trim())}function X(){return Le(e=>e.toLowerCase())}function Be(){return Le(e=>e.toUpperCase())}function Ve(){return Le(e=>s.slugify(e))}function He(e,t,n){return new e({type:`array`,element:t,...s.normalizeParams(n)})}function Ue(e,t,n){return new e({type:`union`,options:t,...s.normalizeParams(n)})}function We(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...s.normalizeParams(n)})}function Ge(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...s.normalizeParams(r)})}function Ke(e,t,n){return new e({type:`intersection`,left:t,right:n})}function qe(e,t,n,r){let i=n instanceof o.$ZodType,a=i?r:n;return new e({type:`tuple`,items:t,rest:i?n:null,...s.normalizeParams(a)})}function Je(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...s.normalizeParams(r)})}function Ye(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...s.normalizeParams(r)})}function Xe(e,t,n){return new e({type:`set`,valueType:t,...s.normalizeParams(n)})}function Ze(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...s.normalizeParams(n)})}function Qe(e,t,n){return new e({type:`enum`,entries:t,...s.normalizeParams(n)})}function $e(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...s.normalizeParams(n)})}function et(e,t){return new e({type:`file`,...s.normalizeParams(t)})}function tt(e,t){return new e({type:`transform`,transform:t})}function nt(e,t){return new e({type:`optional`,innerType:t})}function rt(e,t){return new e({type:`nullable`,innerType:t})}function it(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():s.shallowClone(n)}})}function at(e,t,n){return new e({type:`nonoptional`,innerType:t,...s.normalizeParams(n)})}function ot(e,t){return new e({type:`success`,innerType:t})}function st(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:s.constantCatch(n)})}function ct(e,t,n){return new e({type:`pipe`,in:t,out:n})}function lt(e,t){return new e({type:`readonly`,innerType:t})}function ut(e,t,n){return new e({type:`template_literal`,parts:t,...s.normalizeParams(n)})}function dt(e,t){return new e({type:`lazy`,getter:t})}function ft(e,t){return new e({type:`promise`,innerType:t})}function pt(e,t,n){let r=s.normalizeParams(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function mt(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...s.normalizeParams(n)})}function ht(e,t){let n=gt(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(s.issue(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(s.issue(r))}},e(t.value,t)),t);return n}function gt(e,t){let n=new i.$ZodCheck({check:`custom`,...s.normalizeParams(t)});return n._zod.check=e,n}function Z(e){let t=new i.$ZodCheck({check:`describe`});return t._zod.onattach=[t=>{let n=a.globalRegistry.get(t)??{};a.globalRegistry.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function _t(e){let t=new i.$ZodCheck({check:`meta`});return t._zod.onattach=[t=>{let n=a.globalRegistry.get(t)??{};a.globalRegistry.add(t,{...n,...e})}],t._zod.check=()=>{},t}function vt(e,t){let n=s.normalizeParams(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),c=new Set(i),l=e.Codec??o.$ZodCodec,u=e.Boolean??o.$ZodBoolean,d=new l({type:`pipe`,in:new(e.String??o.$ZodString)({type:`string`,error:n.error}),out:new u({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:c.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...c],input:t.value,inst:d,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return d._zod.bag.truthy=r,d._zod.bag.falsy=i,d._zod.bag.case=n.case??`insensitive`,d}function yt(e,t,n,r={}){let i=s.normalizeParams(r),a={check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Yp=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createStandardJSONSchemaMethod=e.createToJSONSchemaMethod=void 0,e.initializeContext=i,e.handleUnrepresentable=a,e.processSchema=o,e.process=o,e.processSchema=o,e.process=o,e.extractDefs=c,e.finalize=h;let t=Kp(),n=$();function r(e,...t){for(let r of t)for(let t of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,t)&&(0,n.assignProp)(e,t,r[t]);return e}function i(e){let n=e?.target??`draft-2020-12`;return n===`draft-4`&&(n=`draft-04`),n===`draft-7`&&(n=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??t.globalRegistry,target:n,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function a(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function o(e,t,n={path:[],schemaPath:[]}){var i;let a=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;let c={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,c),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let l=e._zod.toJSONSchema?.();if(l)c.schema=l;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,r);else{let n=c.schema,i=t.processors[a.type];if(!i)throw Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);i(e,t,n,r)}let i=e._zod.parent;i&&(c.ref||=i,o(i,t,r),t.seen.get(i).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&r(c.schema,u),t.io===`input`&&g(e)&&(delete c.schema.examples,delete c.schema.default),t.io===`input`&&`_prefault`in c.schema&&((i=c.schema).default??(i.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function s(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function c(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${s(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+s(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
217
+
218
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function l(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;l(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}let u=new Set([`type`,`properties`,`required`,`additionalProperties`]),d=[`oneOf`,`anyOf`];function f(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function p(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!u.has(e))return null;t.push(n)}let r={},i=new Set;for(let e of t){for(let i in e.properties){if(Object.prototype.hasOwnProperty.call(r,i))continue;let e=[];for(let n of t){let t=n.properties?.[i]??f(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}let a=e.length===1?e[0]:p(e)??{allOf:e};(0,n.assignProp)(r,i,a)}for(let t of e.required??[])i.add(t)}let a={type:`object`,properties:r};if(i.size&&(a.required=[...i]),t.every(e=>e.additionalProperties===!1))a.additionalProperties=!1;else{let e=[];for(let n of t){let t=f(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?a.additionalProperties=e[0]:e.length>1&&(a.additionalProperties={allOf:e})}return a}function m(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of u)if(t in e)return;let n=t.filter(e=>d.some(t=>Array.isArray(e[t]))),i=null;if(!n.length)i=p(t);else{let e=n[0],r=d.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[r].map(e=>p([...a,e]));if(o.some(e=>!e))return;i={[r]:o}}i&&(delete e.allOf,r(e,i))}function h(t,i){let a=t.seen.get(i);if(!a)throw Error(`Unprocessed schema. This is a bug in Zod.`);let o=e=>{let n=t.seen.get(e);if(n.ref===null)return;let i=n.def??n.schema,a={...i},s=n.ref;if(n.ref=null,s){o(s);let n=t.seen.get(s),c=n.schema;if(c.$ref&&(t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(c)):r(i,c),r(i,a),e._zod.parent===s)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(c.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let c=e._zod.parent;if(c&&c!==s){o(c);let e=t.seen.get(c);if(e?.schema.$ref&&(i.$ref=e.schema.$ref,e.def))for(let t in i)t===`$ref`||t===`allOf`||t in e.def&&JSON.stringify(i[t])===JSON.stringify(e.def[t])&&delete i[t]}t.override({zodSchema:e,jsonSchema:i,path:n.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let e of[...t.seen.entries()].reverse())o(e[0]);if(t.target!==`openapi-3.0`)for(let e of t.seen.entries())l(e[1].def??e[1].schema);for(let e of t.deferred)e();if(t.intersections.length){let e=new Map;for(let n of t.seen.values())for(let t of[n.schema,n.def]){let n=t?.allOf;if(!Array.isArray(n))continue;let r=e.get(n);r?r.push(t):e.set(n,[t])}for(let n of t.intersections)for(let t of e.get(n)??[])m(t)}}let s={};if(t.target===`draft-2020-12`?s.$schema=`https://json-schema.org/draft/2020-12/schema`:t.target===`draft-07`?s.$schema=`http://json-schema.org/draft-07/schema#`:t.target===`draft-04`?s.$schema=`http://json-schema.org/draft-04/schema#`:t.target,t.external?.uri){let e=t.external.registry.get(i)?.id;if(!e)throw Error("Schema is missing an `id` property");s.$id=t.external.uri(e)}r(s,a.defId?a.schema:a.def??a.schema);let c=t.metadataRegistry.get(i)?.id;c!==void 0&&s.id===c&&delete s.id;let u=t.external?.defs??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let e of t.seen.entries()){let t=e[1];t.def&&t.defId&&(t.def.id===t.defId&&delete t.def.id,(0,n.assignProp)(u,t.defId,t.def))}t.external&&(t.sharedEmitDoneFor=t.external),t.external||Object.keys(u).length>0&&(t.target===`draft-2020-12`?s.$defs=u:s.definitions=u);try{let n=JSON.parse(JSON.stringify(s));return Object.defineProperty(n,"~standard",{value:{...i[`~standard`],jsonSchema:{input:(0,e.createStandardJSONSchemaMethod)(i,`input`,t.processors),output:(0,e.createStandardJSONSchemaMethod)(i,`output`,t.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function g(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return g(r.element,n);if(r.type===`set`)return g(r.valueType,n);if(r.type===`lazy`)return g(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return g(r.innerType,n);if(r.type===`intersection`)return g(r.left,n)||g(r.right,n);if(r.type===`record`||r.type===`map`)return g(r.keyType,n)||g(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:g(r.in,n)||g(r.out,n);if(r.type===`object`){for(let e in r.shape)if(g(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(g(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(g(e,n))return!0;return!!(r.rest&&g(r.rest,n))}return!1}e.createToJSONSchemaMethod=(e,t={})=>n=>{let r=i({...n,processors:t});return o(e,r),c(r,e),h(r,e)},e.createStandardJSONSchemaMethod=(e,t,n={})=>r=>{let{libraryOptions:a,target:s}=r??{},l=i({...a??{},target:s,io:t,processors:n});return o(e,l),c(l,e),h(l,e)},(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Xp=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.allProcessors=e.lazyProcessor=e.optionalProcessor=e.promiseProcessor=e.readonlyProcessor=e.pipeProcessor=e.catchProcessor=e.prefaultProcessor=e.defaultProcessor=e.nonoptionalProcessor=e.nullableProcessor=e.recordProcessor=e.tupleProcessor=e.intersectionProcessor=e.unionProcessor=e.objectProcessor=e.arrayProcessor=e.setProcessor=e.mapProcessor=e.transformProcessor=e.functionProcessor=e.customProcessor=e.successProcessor=e.fileProcessor=e.templateLiteralProcessor=e.nanProcessor=e.literalProcessor=e.enumProcessor=e.dateProcessor=e.unknownProcessor=e.anyProcessor=e.neverProcessor=e.voidProcessor=e.undefinedProcessor=e.nullProcessor=e.symbolProcessor=e.bigintProcessor=e.booleanProcessor=e.numberProcessor=e.stringProcessor=void 0,e.aggregateChecks=y,e.toJSONSchema=k;let i=r(Af()),a=Pf(),o=Yp(),s=$(),c=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},l=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},u=(e,t)=>{c(e,`minimum`,t),l(e,`maximum`,t)},d=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},f=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},p=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},m=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},h=(e,t)=>c(e,`minimum`,t.minimum),g=(e,t)=>l(e,`maximum`,t.maximum),_=e=>(t,n)=>{m(t,n.format);let[r,i]=e[n.format];c(t,`minimum`,r),l(t,`maximum`,i)},v={greater_than:(e,t)=>c(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>l(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>d(e,t.value),number_format:_(s.NUMBER_FORMAT_RANGES),bigint_format:_(s.BIGINT_FORMAT_RANGES),min_length:h,max_length:g,length_equals:(e,t)=>u(e,t.length),min_size:h,max_size:g,size_equals:(e,t)=>u(e,t.size),string_format:(e,t)=>{m(e,t.format),t.pattern&&f(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>p(e,t.mime)};function y(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)v[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&c(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&c(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&l(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&l(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&d(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&p(t,i.mime);for(let e of i.patterns??[])f(t,e);return t}let b={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},x=new Map([[a.base64Charset,i.base64],[a.base64urlCharset,i.base64url]]),S=e=>x.get(e)??e;e.stringProcessor=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=y(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=b[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(S);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},e.numberProcessor=(e,t,n,r)=>{let i=n,{minimum:a,maximum:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u,isInt:d}=y(e);i.type=d?`integer`:`number`;let f=typeof u==`number`&&u>=(a??-1/0),p=typeof l==`number`&&l<=(s??1/0),m=t.target===`draft-04`||t.target===`openapi-3.0`;if(f?m?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),p?m?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof s==`number`&&(i.maximum=s),c){let n=new Set;for(let a of c)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):(0,o.handleUnrepresentable)(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...s]=n;a!==void 0&&(i.multipleOf=a),s.length&&(i.allOf=[...i.allOf??[],...s.map(e=>({multipleOf:e}))])}},e.booleanProcessor=(e,t,n,r)=>{n.type=`boolean`},e.bigintProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`BigInt cannot be represented in JSON Schema`)},e.symbolProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Symbols cannot be represented in JSON Schema`)},e.nullProcessor=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},e.undefinedProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},e.voidProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Void cannot be represented in JSON Schema`)},e.neverProcessor=(e,t,n,r)=>{n.not={}},e.anyProcessor=(e,t,n,r)=>{},e.unknownProcessor=(e,t,n,r)=>{},e.dateProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Date cannot be represented in JSON Schema`)},e.enumProcessor=(e,t,n,r)=>{let i=e._zod.def,a=(0,s.getEnumValues)(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},e.literalProcessor=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let s of i.values)if(s===void 0){if((0,o.handleUnrepresentable)(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s==`bigint`){if((0,o.handleUnrepresentable)(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(s))}else a.push(s);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},e.nanProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`NaN cannot be represented in JSON Schema`)},e.templateLiteralProcessor=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},e.fileProcessor=(e,t,n,r)=>{let i=n;i.type=`string`,i.format=`binary`,i.contentEncoding=`binary`;let{minimum:a,maximum:o,mime:s}=y(e);a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s&&(s.length===0?i.not={}:s.length===1?i.contentMediaType=s[0]:i.anyOf=s.map(e=>({contentMediaType:e})))},e.successProcessor=(e,t,n,r)=>{n.type=`boolean`},e.customProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},e.functionProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Function types cannot be represented in JSON Schema`)},e.transformProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},e.mapProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Map cannot be represented in JSON Schema`)},e.setProcessor=(e,t,n,r)=>{(0,o.handleUnrepresentable)(e,t,n,r,`Set cannot be represented in JSON Schema`)},e.arrayProcessor=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:s,maximum:c}=y(e);typeof s==`number`&&(i.minItems=s),typeof c==`number`&&(i.maxItems=c),i.type=`array`,i.items=(0,o.processSchema)(a.element,t,{...r,path:[...r.path,`items`]})};function C(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?C(t.out):t.type===`catch`?C(t.innerType):e._zod.optin}e.objectProcessor=(e,t,n,r)=>{let i=n,a=e._zod.def,c=a.shape;if(Object.getOwnPropertySymbols(c).length&&(0,o.handleUnrepresentable)(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in c)(0,s.assignProp)(i.properties,e,(0,o.processSchema)(c[e],t,{...r,path:[...r.path,`properties`,e]}));let l=[];for(let e of Object.keys(c)){let n=a.shape[e];(t.io===`input`?C(n)===void 0:n._zod.optout===void 0)&&l.push(e)}l.length>0&&(i.required=l),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=(0,o.processSchema)(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},e.unionProcessor=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,s=i.options.map((e,n)=>(0,o.processSchema)(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=s:n.anyOf=s},e.intersectionProcessor=(e,t,n,r)=>{let i=e._zod.def,a=(0,o.processSchema)(i.left,t,{...r,path:[...r.path,`allOf`,0]}),s=(0,o.processSchema)(i.right,t,{...r,path:[...r.path,`allOf`,1]}),c=e=>`allOf`in e&&Object.keys(e).length===1,l=[...c(a)?a.allOf:[a],...c(s)?s.allOf:[s]];n.allOf=l,t.intersections.push(l)},e.tupleProcessor=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let s=t.target===`draft-2020-12`?`prefixItems`:`items`,c=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,l=a.items.map((e,n)=>(0,o.processSchema)(e,t,{...r,path:[...r.path,s,n]})),u=a.rest?(0,o.processSchema)(a.rest,t,{...r,path:[...r.path,c,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,d=a.items.length;for(;d>0;){let e=a.items[d-1];if(!(t.io===`input`?C(e)!==void 0:e._zod.optout===`optional`))break;d--}let f=a.items.length,p=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=l,p?i.items=!1:u&&(i.items=u),d>0&&(i.minItems=d),p&&(i.maxItems=f)):t.target===`openapi-3.0`?(i.items={anyOf:l},u&&i.items.anyOf.push(u),d>0&&(i.minItems=d),p&&(i.maxItems=f)):(i.items=l,p?i.additionalItems=!1:u&&(i.additionalItems=u),d>0&&(i.minItems=d),p&&(i.maxItems=f));let{minimum:m,maximum:h}=y(e);typeof m==`number`&&(i.minItems=m),typeof h==`number`&&(i.maxItems=h)};function w(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=w(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>w(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],a=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),o=t.enum??(t.const===void 0?void 0:[t.const]);if(!a&&!o?.some(e=>typeof e==`number`))return t;let{minimum:s,maximum:c,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:d,format:f,id:p,...m}=t;return m.enum?m.enum=m.enum.map(e=>typeof e==`number`?String(e):e):typeof m.const==`number`&&(m.const=String(m.const)),a?(m.type=`string`,o||(m.pattern=(r.includes(`number`)?i.number:i.integer).source),m):m}let T=new WeakMap;function E(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of T.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=w(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}e.recordProcessor=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let c=a.keyType,l=y(c).patterns;if(a.mode===`loose`&&l&&l.size>0){let e=(0,o.processSchema)(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of l)(0,s.assignProp)(i.patternProperties,S(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=(0,o.processSchema)(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=T.get(t);n||(n=[],T.set(t,n),t.deferred.push(()=>E(t))),n.push(e)}i.additionalProperties=(0,o.processSchema)(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let u=c._zod.values,d=t.io===`input`&&C(a.valueType)!==void 0;if(u&&!a.partial&&!d){let e=[...u].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},e.nullableProcessor=(e,t,n,r)=>{let i=e._zod.def,a=(0,o.processSchema)(i.innerType,t,r),s=t.seen.get(e);t.target===`openapi-3.0`?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},e.nonoptionalProcessor=(e,t,n,r)=>{let i=e._zod.def;(0,o.processSchema)(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType};let D=Symbol();function O(e,t,n,r,i){let a=!1,s=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?((0,o.handleUnrepresentable)(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),D):JSON.parse(s)}e.defaultProcessor=(e,t,n,r)=>{let i=e._zod.def;(0,o.processSchema)(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let s=O(i.defaultValue,e,t,n,r);s!==D&&(n.default=s)},e.prefaultProcessor=(e,t,n,r)=>{let i=e._zod.def;(0,o.processSchema)(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let s=O(i.defaultValue,e,t,n,r);s!==D&&(n._prefault=s)},e.catchProcessor=(e,t,n,r)=>{let i=e._zod.def;(0,o.processSchema)(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{(0,o.handleUnrepresentable)(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=s},e.pipeProcessor=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),s=t.io===`input`?a?i.out:i.in:i.out;(0,o.processSchema)(s,t,r);let c=t.seen.get(e);c.ref=s},e.readonlyProcessor=(e,t,n,r)=>{let i=e._zod.def;(0,o.processSchema)(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},e.promiseProcessor=(e,t,n,r)=>{let i=e._zod.def;(0,o.processSchema)(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},e.optionalProcessor=(e,t,n,r)=>{let i=e._zod.def;(0,o.processSchema)(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},e.lazyProcessor=(e,t,n,r)=>{let i=e._zod.innerType;(0,o.processSchema)(i,t,r);let a=t.seen.get(e);a.ref=i},e.allProcessors={string:e.stringProcessor,number:e.numberProcessor,boolean:e.booleanProcessor,bigint:e.bigintProcessor,symbol:e.symbolProcessor,null:e.nullProcessor,undefined:e.undefinedProcessor,void:e.voidProcessor,never:e.neverProcessor,any:e.anyProcessor,unknown:e.unknownProcessor,date:e.dateProcessor,enum:e.enumProcessor,literal:e.literalProcessor,nan:e.nanProcessor,template_literal:e.templateLiteralProcessor,file:e.fileProcessor,success:e.successProcessor,custom:e.customProcessor,function:e.functionProcessor,transform:e.transformProcessor,map:e.mapProcessor,set:e.setProcessor,array:e.arrayProcessor,object:e.objectProcessor,union:e.unionProcessor,intersection:e.intersectionProcessor,tuple:e.tupleProcessor,record:e.recordProcessor,nullable:e.nullableProcessor,nonoptional:e.nonoptionalProcessor,default:e.defaultProcessor,prefault:e.prefaultProcessor,catch:e.catchProcessor,pipe:e.pipeProcessor,readonly:e.readonlyProcessor,promise:e.promiseProcessor,optional:e.optionalProcessor,lazy:e.lazyProcessor};function k(t,n){if(`_idmap`in t){let r=t,i=(0,o.initializeContext)({...n,processors:e.allProcessors}),a={};for(let e of r._idmap.entries()){let[t,n]=e;(0,o.processSchema)(n,i)}let c={};i.external={registry:r,uri:n?.uri,defs:a};for(let e of r._idmap.entries()){let[t,n]=e;(0,o.extractDefs)(i,n),(0,s.assignProp)(c,t,(0,o.finalize)(i,n))}return Object.keys(a).length>0&&(c.__shared={[i.target===`draft-2020-12`?`$defs`:`definitions`]:a}),{schemas:c}}let r=(0,o.initializeContext)({...n,processors:e.allProcessors});return(0,o.processSchema)(t,r),(0,o.extractDefs)(r,t),(0,o.finalize)(r,t)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Zp=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JSONSchemaGenerator=void 0;let t=Xp(),n=Yp();e.JSONSchemaGenerator=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??`draft-2020-12`;r===`draft-4`&&(r=`draft-04`),r===`draft-7`&&(r=`draft-07`),this.ctx=(0,n.initializeContext)({processors:t.allProcessors,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return(0,n.processSchema)(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,(0,n.extractDefs)(this.ctx,e);let{"~standard":r,...i}=(0,n.finalize)(this.ctx,e);return i}},(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),Qp=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),$p=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONSchema=e.JSONSchemaGenerator=e.toJSONSchema=e.locales=e.regexes=e.toZod=e.util=void 0,r(Df(),e),r(kf(),e),r(Of(),e),r(Pf(),e),r(Ff(),e),r(jf(),e),r(Nf(),e),e.util=i($());var a=$();Object.defineProperty(e,"toZod",{enumerable:!0,get:function(){return a.toZod}}),e.regexes=i(Af()),e.locales=i(Gp()),r(Kp(),e),r(Mf(),e),r(qp(),e),r(Jp(),e),r(Yp(),e);var o=Xp();Object.defineProperty(e,"toJSONSchema",{enumerable:!0,get:function(){return o.toJSONSchema}});var s=Zp();Object.defineProperty(e,"JSONSchemaGenerator",{enumerable:!0,get:function(){return s.JSONSchemaGenerator}}),e.JSONSchema=i(Qp()),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),em=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.slugify=e.toUpperCase=e.toLowerCase=e.trim=e.normalize=e.overwrite=e.mime=e.properties=e.property=e.endsWith=e.startsWith=e.includes=e.uppercase=e.lowercase=e.regex=e.length=e.minLength=e.maxLength=e.size=e.minSize=e.maxSize=e.multipleOf=e.nonnegative=e.nonpositive=e.negative=e.positive=e.gte=e.gt=e.lte=e.lt=void 0;var t=$p();Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t._lt}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t._lte}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return t._gt}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return t._gte}}),Object.defineProperty(e,"positive",{enumerable:!0,get:function(){return t._positive}}),Object.defineProperty(e,"negative",{enumerable:!0,get:function(){return t._negative}}),Object.defineProperty(e,"nonpositive",{enumerable:!0,get:function(){return t._nonpositive}}),Object.defineProperty(e,"nonnegative",{enumerable:!0,get:function(){return t._nonnegative}}),Object.defineProperty(e,"multipleOf",{enumerable:!0,get:function(){return t._multipleOf}}),Object.defineProperty(e,"maxSize",{enumerable:!0,get:function(){return t._maxSize}}),Object.defineProperty(e,"minSize",{enumerable:!0,get:function(){return t._minSize}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return t._size}}),Object.defineProperty(e,"maxLength",{enumerable:!0,get:function(){return t._maxLength}}),Object.defineProperty(e,"minLength",{enumerable:!0,get:function(){return t._minLength}}),Object.defineProperty(e,"length",{enumerable:!0,get:function(){return t._length}}),Object.defineProperty(e,"regex",{enumerable:!0,get:function(){return t._regex}}),Object.defineProperty(e,"lowercase",{enumerable:!0,get:function(){return t._lowercase}}),Object.defineProperty(e,"uppercase",{enumerable:!0,get:function(){return t._uppercase}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return t._includes}}),Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return t._startsWith}}),Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return t._endsWith}}),Object.defineProperty(e,"property",{enumerable:!0,get:function(){return t._property}}),Object.defineProperty(e,"properties",{enumerable:!0,get:function(){return t._properties}}),Object.defineProperty(e,"mime",{enumerable:!0,get:function(){return t._mime}}),Object.defineProperty(e,"overwrite",{enumerable:!0,get:function(){return t._overwrite}}),Object.defineProperty(e,"normalize",{enumerable:!0,get:function(){return t._normalize}}),Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return t._trim}}),Object.defineProperty(e,"toLowerCase",{enumerable:!0,get:function(){return t._toLowerCase}}),Object.defineProperty(e,"toUpperCase",{enumerable:!0,get:function(){return t._toUpperCase}}),Object.defineProperty(e,"slugify",{enumerable:!0,get:function(){return t._slugify}}),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),tm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.ZodRealError=e.ZodError=void 0;let i=r($p()),a=$p(),o=r($()),s=new WeakSet([Object.prototype,Error.prototype]);function c(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let l=(e,t)=>{a.$ZodError.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);s.has(n)||(s.add(n),c(n,`format`,e=>t=>i.formatError(e,t)),c(n,`flatten`,e=>t=>i.flattenError(e,t)),c(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,o.jsonStringifyReplacer,2)}),c(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,o.jsonStringifyReplacer,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))};e.ZodError=i.$constructor(`ZodError`,l),e.ZodRealError=i.$constructor(`ZodError`,l,void 0,{Parent:Error}),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),nm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.safeDecodeAsync=e.safeEncodeAsync=e.safeDecode=e.safeEncode=e.decodeAsync=e.encodeAsync=e.decode=e.encode=e.validateAsync=e.validate=e.safeParseAsync=e.safeParse=e.parseAsync=e.parse=void 0;let i=r($p()),a=tm();e.parse=i._parse(a.ZodRealError),e.parseAsync=i._parseAsync(a.ZodRealError),e.safeParse=i._safeParse(a.ZodRealError),e.safeParseAsync=i._safeParseAsync(a.ZodRealError);var o=$p();Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return o.validate}}),Object.defineProperty(e,"validateAsync",{enumerable:!0,get:function(){return o.validateAsync}}),e.encode=i._encode(a.ZodRealError),e.decode=i._decode(a.ZodRealError),e.encodeAsync=i._encodeAsync(a.ZodRealError),e.decodeAsync=i._decodeAsync(a.ZodRealError),e.safeEncode=i._safeEncode(a.ZodRealError),e.safeDecode=i._safeDecode(a.ZodRealError),e.safeEncodeAsync=i._safeEncodeAsync(a.ZodRealError),e.safeDecodeAsync=i._safeDecodeAsync(a.ZodRealError),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),rm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ZodIntersection=e.ZodDiscriminatedUnion=e.ZodXor=e.ZodUnion=e.ZodObject=e.ZodArray=e.ZodDate=e.ZodVoid=e.ZodNever=e.ZodUnknown=e.ZodAny=e.ZodNull=e.ZodUndefined=e.ZodSymbol=e.ZodBigIntFormat=e.ZodBigInt=e.ZodBoolean=e.ZodNumberFormat=e.ZodNumber=e.ZodCustomStringFormat=e.ZodJWT=e.ZodIBAN=e.ZodCreditCard=e.ZodE164=e.ZodBase64URL=e.ZodBase64=e.ZodCIDRv6=e.ZodCIDRv4=e.ZodIPv6=e.ZodMAC=e.ZodIPv4=e.ZodKSUID=e.ZodXID=e.ZodULID=e.ZodCUID2=e.ZodCUID=e.ZodNanoID=e.ZodEmoji=e.ZodURL=e.ZodUUID=e.ZodGUID=e.ZodEmail=e.ZodISODuration=e.ZodISOTime=e.ZodISODate=e.ZodISODateTime=e.ZodStringFormat=e.ZodString=e._ZodString=e.ZodType=void 0,e.stringbool=e.ZodInstanceOf=e.meta=e.describe=e.ZodCustom=e.ZodFunction=e.ZodPromise=e.ZodLazy=e.ZodTemplateLiteral=e.ZodReadonly=e.ZodPreprocess=e.ZodCodec=e.ZodPipe=e.ZodNaN=e.ZodCatch=e.ZodSuccess=e.ZodNonOptional=e.ZodPrefault=e.ZodDefault=e.ZodNullable=e.ZodExactOptional=e.ZodOptional=e.ZodTransform=e.ZodFile=e.ZodLiteral=e.ZodEnum=e.ZodSet=e.ZodMap=e.ZodRecord=e.ZodTuple=void 0,e.string=h,e.email=g,e.guid=_,e.uuid=v,e.uuidv4=y,e.uuidv6=b,e.uuidv7=x,e.url=S,e.httpUrl=C,e.emoji=w,e.nanoid=T,e.cuid=E,e.cuid2=D,e.ulid=O,e.xid=k,e.ksuid=A,e.ipv4=j,e.mac=M,e.ipv6=N,e.cidrv4=P,e.cidrv6=F,e.base64=I,e.base64url=L,e.e164=R,e.creditCard=z,e.iban=B,e.jwt=V,e.stringFormat=H,e.hostname=U,e.hex=W,e.currencyCode=G,e.hash=ee,e.number=K,e.int=q,e.float32=te,e.float64=ne,e.int32=re,e.uint32=ie,e.boolean=ae,e.bigint=J,e.int64=oe,e.uint64=se,e.symbol=ce,e.undefined=Y,e.null=le,e.any=ue,e.unknown=de,e.never=fe,e.void=pe,e.date=me,e.array=he,e.keyof=ge,e.object=_e,e.strictObject=ve,e.looseObject=ye,e.union=be,e.xor=xe,e.discriminatedUnion=Se,e.intersection=Ce,e.tuple=we,e.record=Te,e.partialRecord=Ee,e.looseRecord=De,e.map=Oe,e.set=ke,e.enum=Ae,e.nativeEnum=je,e.literal=Me,e.file=Ne,e.transform=Pe,e.optional=Fe,e.exactOptional=Ie,e.nullable=Le,e.nullish=Re,e._default=ze,e.prefault=X,e.nonoptional=Be,e.success=Ve,e.catch=He,e.nan=Ue,e.pipe=We,e.codec=Ge,e.invertCodec=Ke,e.readonly=qe,e.templateLiteral=Je,e.lazy=Ye,e.promise=Xe,e._function=Ze,e.function=Ze,e._function=Ze,e.function=Ze,e.check=Qe,e.custom=$e,e.refine=et,e.superRefine=tt,e.instanceof=nt,e.json=rt,e.preprocess=it;let a=r($p()),o=$p(),s=r(Xp()),c=r(Af()),l=Yp(),u=i(qf()),d=r(em()),f=r(nm());function p(){a.globalConfig.localeError||a.config((0,u.default)())}function m(){a.globalConfig.memoizer||a.config({memoizer:a.memoizer()})}e.ZodType=a.$constructor(`ZodType`,(e,t)=>(p(),a.$ZodType.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(o.util.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return a.clone(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(et(e,t))},superRefine(e,t){return this.check(tt(e,t))},overwrite(e){return this.check(d.overwrite(e))},optional(){return Fe(this)},exactOptional(){return Ie(this)},nullable(){return Le(this)},nullish(){return Fe(Le(this))},nonoptional(e){return Be(this,e)},array(){return he(this)},or(e){return be([this,e])},and(e){return Ce(this,e)},transform(e){return We(this,Pe(e))},default(e){return ze(this,e)},prefault(e){return X(this,e)},catch(e){return He(this,e)},pipe(e){return We(this,e)},readonly(){return qe(this)},describe(e){let t=this.clone();return a.globalRegistry.add(t,{description:e}),t},meta(...e){if(e.length===0)return a.globalRegistry.get(this);let t=this.clone();return a.globalRegistry.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return o.util.hide(this,`~standard`,{...a.standardProps(this),jsonSchema:{input:(0,l.createStandardJSONSchemaMethod)(this,`input`),output:(0,l.createStandardJSONSchemaMethod)(this,`output`)}})},set"~standard"(e){o.util.own(this,`~standard`,e)},parse:function e(t,n){return f.parse(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await f.parseAsync(this,t,n,{callee:e})},safeParse(e,t){return f.safeParse(this,e,t)},async safeParseAsync(e,t){return f.safeParseAsync(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){o.util.own(this,`spa`,e)},validate(e,t){return f.validate(this,e,t)},validateAsync(e,t){return f.validateAsync(this,e,t)},encode:function e(t,n){return f.encode(this,t,n,{callee:e})},decode:function e(t,n){return f.decode(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await f.encodeAsync(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await f.decodeAsync(this,t,n,{callee:e})},safeEncode(e,t){return f.safeEncode(this,e,t)},safeDecode(e,t){return f.safeDecode(this,e,t)},async safeEncodeAsync(e,t){return f.safeEncodeAsync(this,e,t)},async safeDecodeAsync(e,t){return f.safeDecodeAsync(this,e,t)},toJSONSchema(e){return(0,l.createToJSONSchemaMethod)(this,{})(e)},get description(){return a.globalRegistry.get(this)?.description},get _def(){return this._zod.def}}),e._ZodString=a.$constructor(`_ZodString`,(t,n)=>{a.$ZodString.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.stringProcessor(t,e,n,r)},o.util.derived({format:e=>s.aggregateChecks(e).format??null,minLength:e=>s.aggregateChecks(e).minimum??null,maxLength:e=>s.aggregateChecks(e).maximum??null},{regex(...e){return this.check(d.regex(...e))},includes(...e){return this.check(d.includes(...e))},startsWith(...e){return this.check(d.startsWith(...e))},endsWith(...e){return this.check(d.endsWith(...e))},min(...e){return this.check(d.minLength(...e))},max(...e){return this.check(d.maxLength(...e))},length(...e){return this.check(d.length(...e))},nonempty(...e){return this.check(d.minLength(1,...e))},lowercase(e){return this.check(d.lowercase(e))},uppercase(e){return this.check(d.uppercase(e))},trim(){return this.check(d.trim())},normalize(...e){return this.check(d.normalize(...e))},toLowerCase(){return this.check(d.toLowerCase())},toUpperCase(){return this.check(d.toUpperCase())},slugify(){return this.check(d.slugify())}})),e.ZodString=a.$constructor(`ZodString`,(t,n)=>{a.$ZodString.init(t,n),e._ZodString.init(t,n)},{email(t){return this.check(a._email(e.ZodEmail,t))},url(t){return this.check(a._url(e.ZodURL,t))},jwt(t){return this.check(a._jwt(e.ZodJWT,t))},emoji(t){return this.check(a._emoji(e.ZodEmoji,t))},guid(t){return this.check(a._guid(e.ZodGUID,t))},uuid(t){return this.check(a._uuid(e.ZodUUID,t))},uuidv4(t){return this.check(a._uuidv4(e.ZodUUID,t))},uuidv6(t){return this.check(a._uuidv6(e.ZodUUID,t))},uuidv7(t){return this.check(a._uuidv7(e.ZodUUID,t))},nanoid(t){return this.check(a._nanoid(e.ZodNanoID,t))},cuid(t){return this.check(a._cuid(e.ZodCUID,t))},cuid2(t){return this.check(a._cuid2(e.ZodCUID2,t))},ulid(t){return this.check(a._ulid(e.ZodULID,t))},base64(t){return this.check(a._base64(e.ZodBase64,t))},base64url(t){return this.check(a._base64url(e.ZodBase64URL,t))},xid(t){return this.check(a._xid(e.ZodXID,t))},ksuid(t){return this.check(a._ksuid(e.ZodKSUID,t))},ipv4(t){return this.check(a._ipv4(e.ZodIPv4,t))},ipv6(t){return this.check(a._ipv6(e.ZodIPv6,t))},cidrv4(t){return this.check(a._cidrv4(e.ZodCIDRv4,t))},cidrv6(t){return this.check(a._cidrv6(e.ZodCIDRv6,t))},e164(t){return this.check(a._e164(e.ZodE164,t))},datetime(t){return this.check(a._isoDateTime(e.ZodISODateTime,t))},date(t){return this.check(a._isoDate(e.ZodISODate,t))},time(t){return this.check(a._isoTime(e.ZodISOTime,t))},duration(t){return this.check(a._isoDuration(e.ZodISODuration,t))}});function h(t){return a._string(e.ZodString,t)}e.ZodStringFormat=a.$constructor(`ZodStringFormat`,(t,n)=>{a.$ZodStringFormat.init(t,n),e._ZodString.init(t,n)}),e.ZodISODateTime=a.$constructor(`ZodISODateTime`,(t,n)=>{a.$ZodISODateTime.init(t,n),e.ZodStringFormat.init(t,n)}),e.ZodISODate=a.$constructor(`ZodISODate`,(t,n)=>{a.$ZodISODate.init(t,n),e.ZodStringFormat.init(t,n)}),e.ZodISOTime=a.$constructor(`ZodISOTime`,(t,n)=>{a.$ZodISOTime.init(t,n),e.ZodStringFormat.init(t,n)}),e.ZodISODuration=a.$constructor(`ZodISODuration`,(t,n)=>{a.$ZodISODuration.init(t,n),e.ZodStringFormat.init(t,n)}),e.ZodEmail=a.$constructor(`ZodEmail`,(t,n)=>{a.$ZodEmail.init(t,n),e.ZodStringFormat.init(t,n)});function g(t){return a._email(e.ZodEmail,t)}e.ZodGUID=a.$constructor(`ZodGUID`,(t,n)=>{a.$ZodGUID.init(t,n),e.ZodStringFormat.init(t,n)});function _(t){return a._guid(e.ZodGUID,t)}e.ZodUUID=a.$constructor(`ZodUUID`,(t,n)=>{a.$ZodUUID.init(t,n),e.ZodStringFormat.init(t,n)});function v(t){return a._uuid(e.ZodUUID,t)}function y(t){return a._uuidv4(e.ZodUUID,t)}function b(t){return a._uuidv6(e.ZodUUID,t)}function x(t){return a._uuidv7(e.ZodUUID,t)}e.ZodURL=a.$constructor(`ZodURL`,(t,n)=>{a.$ZodURL.init(t,n),e.ZodStringFormat.init(t,n)});function S(t){return a._url(e.ZodURL,t)}function C(t){return a._url(e.ZodURL,{protocol:c.httpProtocol,hostname:c.domain,...o.util.normalizeParams(t)})}e.ZodEmoji=a.$constructor(`ZodEmoji`,(t,n)=>{a.$ZodEmoji.init(t,n),e.ZodStringFormat.init(t,n)});function w(t){return a._emoji(e.ZodEmoji,t)}e.ZodNanoID=a.$constructor(`ZodNanoID`,(t,n)=>{a.$ZodNanoID.init(t,n),e.ZodStringFormat.init(t,n)});function T(t){return a._nanoid(e.ZodNanoID,t)}e.ZodCUID=a.$constructor(`ZodCUID`,(t,n)=>{a.$ZodCUID.init(t,n),e.ZodStringFormat.init(t,n)});function E(t){return a._cuid(e.ZodCUID,t)}e.ZodCUID2=a.$constructor(`ZodCUID2`,(t,n)=>{a.$ZodCUID2.init(t,n),e.ZodStringFormat.init(t,n)});function D(t){return a._cuid2(e.ZodCUID2,t)}e.ZodULID=a.$constructor(`ZodULID`,(t,n)=>{a.$ZodULID.init(t,n),e.ZodStringFormat.init(t,n)});function O(t){return a._ulid(e.ZodULID,t)}e.ZodXID=a.$constructor(`ZodXID`,(t,n)=>{a.$ZodXID.init(t,n),e.ZodStringFormat.init(t,n)});function k(t){return a._xid(e.ZodXID,t)}e.ZodKSUID=a.$constructor(`ZodKSUID`,(t,n)=>{a.$ZodKSUID.init(t,n),e.ZodStringFormat.init(t,n)});function A(t){return a._ksuid(e.ZodKSUID,t)}e.ZodIPv4=a.$constructor(`ZodIPv4`,(t,n)=>{a.$ZodIPv4.init(t,n),e.ZodStringFormat.init(t,n)});function j(t){return a._ipv4(e.ZodIPv4,t)}e.ZodMAC=a.$constructor(`ZodMAC`,(t,n)=>{a.$ZodMAC.init(t,n),e.ZodStringFormat.init(t,n)});function M(t){return a._mac(e.ZodMAC,t)}e.ZodIPv6=a.$constructor(`ZodIPv6`,(t,n)=>{a.$ZodIPv6.init(t,n),e.ZodStringFormat.init(t,n)});function N(t){return a._ipv6(e.ZodIPv6,t)}e.ZodCIDRv4=a.$constructor(`ZodCIDRv4`,(t,n)=>{a.$ZodCIDRv4.init(t,n),e.ZodStringFormat.init(t,n)});function P(t){return a._cidrv4(e.ZodCIDRv4,t)}e.ZodCIDRv6=a.$constructor(`ZodCIDRv6`,(t,n)=>{a.$ZodCIDRv6.init(t,n),e.ZodStringFormat.init(t,n)});function F(t){return a._cidrv6(e.ZodCIDRv6,t)}e.ZodBase64=a.$constructor(`ZodBase64`,(t,n)=>{a.$ZodBase64.init(t,n),e.ZodStringFormat.init(t,n)});function I(t){return a._base64(e.ZodBase64,t)}e.ZodBase64URL=a.$constructor(`ZodBase64URL`,(t,n)=>{a.$ZodBase64URL.init(t,n),e.ZodStringFormat.init(t,n)});function L(t){return a._base64url(e.ZodBase64URL,t)}e.ZodE164=a.$constructor(`ZodE164`,(t,n)=>{a.$ZodE164.init(t,n),e.ZodStringFormat.init(t,n)});function R(t){return a._e164(e.ZodE164,t)}e.ZodCreditCard=a.$constructor(`ZodCreditCard`,(t,n)=>{a.$ZodCreditCard.init(t,n),e.ZodStringFormat.init(t,n)});function z(t){return a._creditCard(e.ZodCreditCard,t)}e.ZodIBAN=a.$constructor(`ZodIBAN`,(t,n)=>{a.$ZodIBAN.init(t,n),e.ZodStringFormat.init(t,n)});function B(t){return a._iban(e.ZodIBAN,t)}e.ZodJWT=a.$constructor(`ZodJWT`,(t,n)=>{a.$ZodJWT.init(t,n),e.ZodStringFormat.init(t,n)});function V(t){return a._jwt(e.ZodJWT,t)}e.ZodCustomStringFormat=a.$constructor(`ZodCustomStringFormat`,(t,n)=>{a.$ZodCustomStringFormat.init(t,n),e.ZodStringFormat.init(t,n)});function H(t,n,r={}){return a._stringFormat(e.ZodCustomStringFormat,t,n,r)}function U(t){return a._stringFormat(e.ZodCustomStringFormat,`hostname`,c.hostname,t)}function W(t){return a._stringFormat(e.ZodCustomStringFormat,`hex`,c.hex,t)}function G(t){return a._stringFormat(e.ZodCustomStringFormat,`currency_code`,c.currencyCode,t)}function ee(t,n){let r=`${t}_${n?.enc??`hex`}`,i=a.regexes[r];if(!i)throw Error(`Unrecognized hash format: ${r}`);return a._stringFormat(e.ZodCustomStringFormat,r,i,n)}e.ZodNumber=a.$constructor(`ZodNumber`,(t,n)=>{a.$ZodNumber.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.numberProcessor(t,e,n,r),t.isFinite=!0},o.util.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=s.aggregateChecks(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=s.aggregateChecks(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=s.aggregateChecks(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>s.aggregateChecks(e).format??null},{gt(e,t){return this.check(d.gt(e,t))},gte(e,t){return this.check(d.gte(e,t))},min(e,t){return this.check(d.gte(e,t))},lt(e,t){return this.check(d.lt(e,t))},lte(e,t){return this.check(d.lte(e,t))},max(e,t){return this.check(d.lte(e,t))},int(e){return this.check(q(e))},safe(e){return this.check(q(e))},positive(e){return this.check(d.gt(0,e))},nonnegative(e){return this.check(d.gte(0,e))},negative(e){return this.check(d.lt(0,e))},nonpositive(e){return this.check(d.lte(0,e))},multipleOf(e,t){return this.check(d.multipleOf(e,t))},step(e,t){return this.check(d.multipleOf(e,t))},finite(){return this}}));function K(t){return a._number(e.ZodNumber,t)}e.ZodNumberFormat=a.$constructor(`ZodNumberFormat`,(t,n)=>{a.$ZodNumberFormat.init(t,n),e.ZodNumber.init(t,n)});function q(t){return a._int(e.ZodNumberFormat,t)}function te(t){return a._float32(e.ZodNumberFormat,t)}function ne(t){return a._float64(e.ZodNumberFormat,t)}function re(t){return a._int32(e.ZodNumberFormat,t)}function ie(t){return a._uint32(e.ZodNumberFormat,t)}e.ZodBoolean=a.$constructor(`ZodBoolean`,(t,n)=>{a.$ZodBoolean.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.booleanProcessor(t,e,n,r)});function ae(t){return a._boolean(e.ZodBoolean,t)}e.ZodBigInt=a.$constructor(`ZodBigInt`,(t,n)=>{a.$ZodBigInt.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.bigintProcessor(t,e,n,r)},o.util.derived({minValue:e=>s.aggregateChecks(e).minimum??null,maxValue:e=>s.aggregateChecks(e).maximum??null,format:e=>s.aggregateChecks(e).format??null},{gte(e,t){return this.check(d.gte(e,t))},min(e,t){return this.check(d.gte(e,t))},gt(e,t){return this.check(d.gt(e,t))},lt(e,t){return this.check(d.lt(e,t))},lte(e,t){return this.check(d.lte(e,t))},max(e,t){return this.check(d.lte(e,t))},positive(e){return this.check(d.gt(BigInt(0),e))},negative(e){return this.check(d.lt(BigInt(0),e))},nonpositive(e){return this.check(d.lte(BigInt(0),e))},nonnegative(e){return this.check(d.gte(BigInt(0),e))},multipleOf(e,t){return this.check(d.multipleOf(e,t))}}));function J(t){return a._bigint(e.ZodBigInt,t)}e.ZodBigIntFormat=a.$constructor(`ZodBigIntFormat`,(t,n)=>{a.$ZodBigIntFormat.init(t,n),e.ZodBigInt.init(t,n)});function oe(t){return a._int64(e.ZodBigIntFormat,t)}function se(t){return a._uint64(e.ZodBigIntFormat,t)}e.ZodSymbol=a.$constructor(`ZodSymbol`,(t,n)=>{a.$ZodSymbol.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.symbolProcessor(t,e,n,r)});function ce(t){return a._symbol(e.ZodSymbol,t)}e.ZodUndefined=a.$constructor(`ZodUndefined`,(t,n)=>{a.$ZodUndefined.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.undefinedProcessor(t,e,n,r)});function Y(t){return a._undefined(e.ZodUndefined,t)}e.ZodNull=a.$constructor(`ZodNull`,(t,n)=>{a.$ZodNull.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.nullProcessor(t,e,n,r)});function le(t){return a._null(e.ZodNull,t)}e.ZodAny=a.$constructor(`ZodAny`,(t,n)=>{a.$ZodAny.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.anyProcessor(t,e,n,r)});function ue(){return a._any(e.ZodAny)}e.ZodUnknown=a.$constructor(`ZodUnknown`,(t,n)=>{a.$ZodUnknown.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.unknownProcessor(t,e,n,r)});function de(){return a._unknown(e.ZodUnknown)}e.ZodNever=a.$constructor(`ZodNever`,(t,n)=>{a.$ZodNever.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.neverProcessor(t,e,n,r)});function fe(t){return a._never(e.ZodNever,t)}e.ZodVoid=a.$constructor(`ZodVoid`,(t,n)=>{a.$ZodVoid.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.voidProcessor(t,e,n,r)});function pe(t){return a._void(e.ZodVoid,t)}e.ZodDate=a.$constructor(`ZodDate`,(t,n)=>{a.$ZodDate.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.dateProcessor(t,e,n,r),t.min=(e,n)=>t.check(d.gte(e,n)),t.max=(e,n)=>t.check(d.lte(e,n))},o.util.derived({minDate:e=>{let{minimum:t}=s.aggregateChecks(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=s.aggregateChecks(e);return t?new Date(t):null}},{}));function me(t){return a._date(e.ZodDate,t)}e.ZodArray=a.$constructor(`ZodArray`,(t,n)=>{m(),a.$ZodArray.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.arrayProcessor(t,e,n,r),t.element=n.element},{min(e,t){return this.check(d.minLength(e,t))},nonempty(e){return this.check(d.minLength(1,e))},max(e,t){return this.check(d.maxLength(e,t))},length(e,t){return this.check(d.length(e,t))},unwrap(){return this.element}});function he(t,n){return a._array(e.ZodArray,t,n)}function ge(e){let t=e._zod.def.shape;return Ae(Object.keys(t))}e.ZodObject=a.$constructor(`ZodObject`,(t,n)=>{m(),a.$ZodObjectJIT.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.objectProcessor(t,e,n,r),o.util.installLazyProp(t,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Ae(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(o.util.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(o.util.mergeDefs(this._zod.def,{catchall:de()}))},loose(){return this.clone(o.util.mergeDefs(this._zod.def,{catchall:de()}))},strict(){return this.clone(o.util.mergeDefs(this._zod.def,{catchall:fe()}))},strip(){return this.clone(o.util.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return o.util.extend(this,e)},safeExtend(e){return o.util.safeExtend(this,e)},merge(e){return o.util.merge(this,e)},pick(e){return o.util.pick(this,e)},omit(e){return o.util.omit(this,e)},partial(...t){return o.util.partial(e.ZodOptional,this,t[0])},exactPartial(...t){return o.util.partial(e.ZodExactOptional,this,t[0],`exactPartial`)},required(...t){return o.util.required(e.ZodNonOptional,this,t[0])}});function _e(t,n){let r={type:`object`,shape:t??{},...o.util.normalizeParams(n)};return new e.ZodObject(r)}function ve(t,n){return new e.ZodObject({type:`object`,shape:t,catchall:fe(),...o.util.normalizeParams(n)})}function ye(t,n){return new e.ZodObject({type:`object`,shape:t,catchall:de(),...o.util.normalizeParams(n)})}e.ZodUnion=a.$constructor(`ZodUnion`,(t,n)=>{a.$ZodUnion.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.unionProcessor(t,e,n,r),t.options=n.options});function be(t,n){return new e.ZodUnion({type:`union`,options:t,...o.util.normalizeParams(n)})}e.ZodXor=a.$constructor(`ZodXor`,(t,n)=>{e.ZodUnion.init(t,n),a.$ZodXor.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.unionProcessor(t,e,n,r),t.options=n.options});function xe(t,n){return new e.ZodXor({type:`union`,options:t,inclusive:!1,...o.util.normalizeParams(n)})}e.ZodDiscriminatedUnion=a.$constructor(`ZodDiscriminatedUnion`,(t,n)=>{e.ZodUnion.init(t,n),a.$ZodDiscriminatedUnion.init(t,n)});function Se(t,n,r){return new e.ZodDiscriminatedUnion({type:`union`,options:n,discriminator:t,...o.util.normalizeParams(r)})}e.ZodIntersection=a.$constructor(`ZodIntersection`,(t,n)=>{a.$ZodIntersection.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.intersectionProcessor(t,e,n,r)});function Ce(t,n){return new e.ZodIntersection({type:`intersection`,left:t,right:n})}e.ZodTuple=a.$constructor(`ZodTuple`,(t,n)=>{m(),a.$ZodTuple.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.tupleProcessor(t,e,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let t=this._zod.def;if(t.checks?.length)throw Error(`.partial() cannot be used on tuple schemas containing refinements`);return this.clone({...t,items:t.items.map(t=>new e.ZodOptional({type:`optional`,innerType:t}))})}});function we(t,n,r){let i=n instanceof a.$ZodType,s=i?r:n,c=i?n:null;return new e.ZodTuple({type:`tuple`,items:t,rest:c,...o.util.normalizeParams(s)})}e.ZodRecord=a.$constructor(`ZodRecord`,(t,n)=>{m(),a.$ZodRecord.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.recordProcessor(t,e,n,r),t.keyType=n.keyType,t.valueType=n.valueType});function Te(t,n,r){return!n||!n._zod?new e.ZodRecord({type:`record`,keyType:h(),valueType:t,...o.util.normalizeParams(n)}):new e.ZodRecord({type:`record`,keyType:t,valueType:n,...o.util.normalizeParams(r)})}function Ee(t,n,r){return new e.ZodRecord({type:`record`,keyType:t,valueType:n,...o.util.normalizeParams(r),partial:!0})}function De(t,n,r){return new e.ZodRecord({type:`record`,keyType:t,valueType:n,mode:`loose`,...o.util.normalizeParams(r)})}e.ZodMap=a.$constructor(`ZodMap`,(t,n)=>{m(),a.$ZodMap.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.mapProcessor(t,e,n,r),t.keyType=n.keyType,t.valueType=n.valueType,t.min=(...e)=>t.check(a._minSize(...e)),t.nonempty=e=>t.check(a._minSize(1,e)),t.max=(...e)=>t.check(a._maxSize(...e)),t.size=(...e)=>t.check(a._size(...e))});function Oe(t,n,r){return new e.ZodMap({type:`map`,keyType:t,valueType:n,...o.util.normalizeParams(r)})}e.ZodSet=a.$constructor(`ZodSet`,(t,n)=>{m(),a.$ZodSet.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.setProcessor(t,e,n,r),t.min=(...e)=>t.check(a._minSize(...e)),t.nonempty=e=>t.check(a._minSize(1,e)),t.max=(...e)=>t.check(a._maxSize(...e)),t.size=(...e)=>t.check(a._size(...e))});function ke(t,n){return new e.ZodSet({type:`set`,valueType:t,...o.util.normalizeParams(n)})}e.ZodEnum=a.$constructor(`ZodEnum`,(t,n)=>{a.$ZodEnum.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.enumProcessor(t,e,n,r),t.enum=n.entries,t.options=[...t._zod.values];let r=new Set(Object.keys(n.entries));t.extract=(t,i)=>{let a={};for(let e of t)if(r.has(e))a[e]=n.entries[e];else throw Error(`Key ${e} not found in enum`);return new e.ZodEnum({...n,checks:[],...o.util.normalizeParams(i),entries:a})},t.exclude=(t,i)=>{let a={...n.entries};for(let e of t)if(r.has(e))delete a[e];else throw Error(`Key ${e} not found in enum`);return new e.ZodEnum({...n,checks:[],...o.util.normalizeParams(i),entries:a})}});function Ae(t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t;return new e.ZodEnum({type:`enum`,entries:r,...o.util.normalizeParams(n)})}function je(t,n){return new e.ZodEnum({type:`enum`,entries:t,...o.util.normalizeParams(n)})}e.ZodLiteral=a.$constructor(`ZodLiteral`,(t,n)=>{a.$ZodLiteral.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.literalProcessor(t,e,n,r),t.values=new Set(n.values),Object.defineProperty(t,"value",{get(){if(n.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function Me(t,n){return new e.ZodLiteral({type:`literal`,values:Array.isArray(t)?t:[t],...o.util.normalizeParams(n)})}e.ZodFile=a.$constructor(`ZodFile`,(t,n)=>{a.$ZodFile.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.fileProcessor(t,e,n,r),t.min=(e,n)=>t.check(a._minSize(e,n)),t.max=(e,n)=>t.check(a._maxSize(e,n)),t.mime=(e,n)=>t.check(a._mime(Array.isArray(e)?e:[e],n))});function Ne(t){return a._file(e.ZodFile,t)}e.ZodTransform=a.$constructor(`ZodTransform`,(t,n)=>{m(),a.$ZodTransform.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.transformProcessor(t,e,n,r),t._zod.parse=(e,r)=>{if(r.direction===`backward`)throw new a.$ZodEncodeError(t.constructor.name);e.addIssue=r=>{if(typeof r==`string`)e.issues.push(o.util.issue(r,e.value,n));else{let n=r;n.fatal&&(n.continue=!1),n.code??=`custom`,`input`in n||(n.input=e.value),n.inst??=t,e.issues.push(o.util.issue(n))}};let i=n.transform(e.value,e);return i instanceof Promise?i.then(t=>(e.value=t,e)):(e.value=i,e)}});function Pe(t){return new e.ZodTransform({type:`transform`,transform:t})}e.ZodOptional=a.$constructor(`ZodOptional`,(t,n)=>{a.$ZodOptional.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.optionalProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function Fe(t){return new e.ZodOptional({type:`optional`,innerType:t})}e.ZodExactOptional=a.$constructor(`ZodExactOptional`,(t,n)=>{a.$ZodExactOptional.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.optionalProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function Ie(t){return new e.ZodExactOptional({type:`optional`,innerType:t})}e.ZodNullable=a.$constructor(`ZodNullable`,(t,n)=>{a.$ZodNullable.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.nullableProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function Le(t){return new e.ZodNullable({type:`nullable`,innerType:t})}function Re(e){return Fe(Le(e))}e.ZodDefault=a.$constructor(`ZodDefault`,(t,n)=>{a.$ZodDefault.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.defaultProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function ze(t,n){return new e.ZodDefault({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():o.util.shallowClone(n)}})}e.ZodPrefault=a.$constructor(`ZodPrefault`,(t,n)=>{a.$ZodPrefault.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.prefaultProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function X(t,n){return new e.ZodPrefault({type:`prefault`,innerType:t,get defaultValue(){return typeof n==`function`?n():o.util.shallowClone(n)}})}e.ZodNonOptional=a.$constructor(`ZodNonOptional`,(t,n)=>{a.$ZodNonOptional.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.nonoptionalProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function Be(t,n){return new e.ZodNonOptional({type:`nonoptional`,innerType:t,...o.util.normalizeParams(n)})}e.ZodSuccess=a.$constructor(`ZodSuccess`,(t,n)=>{a.$ZodSuccess.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.successProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function Ve(t){return new e.ZodSuccess({type:`success`,innerType:t})}e.ZodCatch=a.$constructor(`ZodCatch`,(t,n)=>{a.$ZodCatch.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.catchProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function He(t,n){return new e.ZodCatch({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:a.util.constantCatch(n)})}e.ZodNaN=a.$constructor(`ZodNaN`,(t,n)=>{a.$ZodNaN.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.nanProcessor(t,e,n,r)});function Ue(t){return a._nan(e.ZodNaN,t)}e.ZodPipe=a.$constructor(`ZodPipe`,(t,n)=>{a.$ZodPipe.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.pipeProcessor(t,e,n,r),t.in=n.in,t.out=n.out});function We(t,n){return new e.ZodPipe({type:`pipe`,in:t,out:n})}e.ZodCodec=a.$constructor(`ZodCodec`,(t,n)=>{e.ZodPipe.init(t,n),a.$ZodCodec.init(t,n)});function Ge(t,n,r){return new e.ZodCodec({type:`pipe`,in:t,out:n,transform:r.decode,reverseTransform:r.encode})}function Ke(t){let n=t._zod.def;return new e.ZodCodec({type:`pipe`,in:n.out,out:n.in,transform:n.reverseTransform,reverseTransform:n.transform})}e.ZodPreprocess=a.$constructor(`ZodPreprocess`,(t,n)=>{e.ZodPipe.init(t,n),a.$ZodPreprocess.init(t,n)}),e.ZodReadonly=a.$constructor(`ZodReadonly`,(t,n)=>{a.$ZodReadonly.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.readonlyProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function qe(t){return new e.ZodReadonly({type:`readonly`,innerType:t})}e.ZodTemplateLiteral=a.$constructor(`ZodTemplateLiteral`,(t,n)=>{a.$ZodTemplateLiteral.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.templateLiteralProcessor(t,e,n,r)});function Je(t,n){return new e.ZodTemplateLiteral({type:`template_literal`,parts:t,...o.util.normalizeParams(n)})}e.ZodLazy=a.$constructor(`ZodLazy`,(t,n)=>{a.$ZodLazy.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.lazyProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.getter()});function Ye(t){return new e.ZodLazy({type:`lazy`,getter:t})}e.ZodPromise=a.$constructor(`ZodPromise`,(t,n)=>{a.$ZodPromise.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.promiseProcessor(t,e,n,r),t.unwrap=()=>t._zod.def.innerType});function Xe(t){return new e.ZodPromise({type:`promise`,innerType:t})}e.ZodFunction=a.$constructor(`ZodFunction`,(t,n)=>{a.$ZodFunction.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.functionProcessor(t,e,n,r)});function Ze(t){return new e.ZodFunction({type:`function`,input:Array.isArray(t?.input)?we(t?.input):t?.input??he(de()),output:t?.output??de()})}e.ZodCustom=a.$constructor(`ZodCustom`,(t,n)=>{a.$ZodCustom.init(t,n),e.ZodType.init(t,n),t._zod.processJSONSchema=(e,n,r)=>s.customProcessor(t,e,n,r)});function Qe(e){let t=new a.$ZodCheck({check:`custom`});return t._zod.check=e,t}function $e(t,n){return a._custom(e.ZodCustom,t??(()=>!0),n)}function et(t,n={}){return a._refine(e.ZodCustom,t,n)}function tt(e,t){return a._superRefine(e,t)}e.describe=a.describe,e.meta=a.meta,e.ZodInstanceOf=a.$constructor(`ZodInstanceOf`,(t,n)=>{e.ZodCustom.init(t,n)},{properties(e,t){return this.check(a._properties(e,t))}});function nt(t,n={}){let r=new e.ZodInstanceOf({type:`custom`,check:`custom`,fn:e=>e instanceof t,abort:!0,...o.util.normalizeParams(n)});return r._zod.bag.Class=t,r._zod.check=e=>{e.value instanceof t||e.issues.push({code:`invalid_type`,expected:t.name,input:e.value,inst:r,path:[...r._zod.def.path??[]]})},r}e.stringbool=(...t)=>a._stringbool({Codec:e.ZodCodec,Boolean:e.ZodBoolean,String:e.ZodString},...t);function rt(e){let t=Ye(()=>be([h(e),K(),ae(),le(),he(t),Te(h(),t)]));return t}function it(t,n){return new e.ZodPreprocess({type:`pipe`,in:Pe(t),out:n})}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),im=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.ZodFirstPartyTypeKind=e.config=e.$brand=e.ZodIssueCode=void 0,e.setErrorMap=o,e.getErrorMap=s;let i=r($p());e.ZodIssueCode={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`};var a=$p();Object.defineProperty(e,"$brand",{enumerable:!0,get:function(){return a.$brand}}),Object.defineProperty(e,"config",{enumerable:!0,get:function(){return a.config}});function o(e){i.config({customError:e})}function s(){return i.config().customError}var c;c||(e.ZodFirstPartyTypeKind=c={}),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),am=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.ZodISOTime=e.ZodISODuration=e.ZodISODateTime=e.ZodISODate=void 0,e.datetime=s,e.date=c,e.time=l,e.duration=u;let i=r($p()),a=rm();var o=rm();Object.defineProperty(e,"ZodISODate",{enumerable:!0,get:function(){return o.ZodISODate}}),Object.defineProperty(e,"ZodISODateTime",{enumerable:!0,get:function(){return o.ZodISODateTime}}),Object.defineProperty(e,"ZodISODuration",{enumerable:!0,get:function(){return o.ZodISODuration}}),Object.defineProperty(e,"ZodISOTime",{enumerable:!0,get:function(){return o.ZodISOTime}});function s(e){return i._isoDateTime(a.ZodISODateTime,e)}function c(e){return i._isoDate(a.ZodISODate,e)}function l(e){return i._isoTime(a.ZodISOTime,e)}function u(e){return i._isoDuration(a.ZodISODuration,e)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),om=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.fromJSONSchema=T;let i=Kp(),a=$(),o=r(em()),s=r(am()),c={...r(rm()),...o,iso:s},l=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`));function u(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function d(e,t){return e.map((e,n)=>n<t?e:e.optional())}function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function p(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1]===void 0?void 0:f(n[1]);if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function m(e,t){return c.transform(e=>e).check(n=>{let r=n.value;if(typeof r!=`object`||!r||Array.isArray(r))return;let i=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&i.length<t.minProperties&&n.issues.push({origin:`object`,code:`too_small`,minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&n.issues.push({origin:`object`,code:`too_big`,maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let e of i){let r=t.keySchema.safeParse(e);r.success||n.issues.push({code:`invalid_key`,origin:`record`,issues:r.error.issues,input:e,path:[e],continue:!0})}}).pipe(e)}function h(e,t){if(e===null)return`z`;let n=typeof e;if(n!==`object`){if(n===`number`&&Number.isNaN(e))return null;let t=String(e);return`${n[0]}${t.length}:${t}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let n=[];for(let r of e){let e=h(r,t);if(e===null)return null;n.push(e)}return`a${n.length}:[${n.join(`,`)}]`}let n=Object.keys(e).sort(),r=[];for(let i of n){let n=h(e[i],t);if(n===null)return null;r.push(`${i.length}:${i}=${n}`)}return`o${r.length}:{${r.join(`,`)}}`}finally{t.delete(e)}}let g=new Set([`items`,`prefixItems`,`additionalItems`,`additionalProperties`,`contains`,`propertyNames`,`not`,`if`,`then`,`else`,`allOf`,`anyOf`,`oneOf`,`unevaluatedItems`,`unevaluatedProperties`,`contentSchema`]),_=new Set([`properties`,`patternProperties`,`dependentSchemas`,`dependencies`,`$defs`,`definitions`]);function v(e){return typeof e!=`object`||!e?!1:Array.isArray(e)?e.some(v):typeof e.$ref==`string`||Object.entries(e).some(([e,t])=>g.has(e)?v(t):!_.has(e)||typeof t!=`object`||!t?!1:Object.values(t).some(v))}function y(e){return e===1?`element`:`elements`}function b(e,t){return c.transform(e=>e).check(e=>{let n=e.value;if(Array.isArray(n)){if(t.uniqueItems===!0){let t=new Map;for(let r=0;r<n.length;r++){let i=h(n[r],new Set);if(i===null)continue;let a=t.get(i);if(a===void 0){t.set(i,r);continue}e.issues.push({code:`custom`,message:`Array items must be unique: element at index ${r} duplicates the one at index ${a}`,input:n,path:[r],continue:!0})}}if(t.containsSchema){let r=t.minContains??1,i=t.maxContains===void 0?1/0:t.maxContains+1,a=0;for(let e of n)if(t.containsSchema.safeParse(e).success&&++a>=i)break;a<r&&e.issues.push({code:`custom`,message:`Array must contain at least ${r} matching ${y(r)}; found ${a}`,input:n,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&e.issues.push({code:`custom`,message:`Array must contain at most ${t.maxContains} matching ${y(t.maxContains)}`,input:n,continue:!0})}}}).pipe(e)}function x(e,t){if(e!==!1)return e===void 0||e===!0?c.any():w(e,t)}let S=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function C(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return c.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return c.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=w(p(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return c.null();if(n.length===0)return c.never();if(n.length===1)return c.literal(n[0]);if(n.every(e=>typeof e==`string`))return c.enum(n);let r=n.map(e=>c.literal(e));return r.length<2?r[0]:c.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return c.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>C({...e,type:n},t));return r.length===0?c.never():r.length===1?r[0]:c.union(r)}if(!n)return c.any();let r;switch(n){case`string`:{let t=c.string();if(e.format){let n=e.format;n===`email`?t=t.check(c.email()):n===`uri`||n===`uri-reference`?t=t.check(c.url()):n===`uuid`||n===`guid`?t=t.check(c.uuid()):n===`date-time`?t=t.check(c.iso.datetime({offset:!0})):n===`date`?t=t.check(c.iso.date()):n===`time`?t=t.check(c.regex(S)):n===`duration`?t=t.check(c.iso.duration()):n===`hostname`?t=t.check(c.hostname()):n===`ipv4`?t=t.check(c.ipv4()):n===`ipv6`?t=t.check(c.ipv6()):n===`mac`?t=t.check(c.mac()):n===`cidr`?t=t.check(c.cidrv4()):n===`cidr-v6`?t=t.check(c.cidrv6()):n===`base64`?t=t.check(c.base64()):n===`base64url`?t=t.check(c.base64url()):n===`e164`?t=t.check(c.e164()):n===`credit_card`?t=t.check(c.creditCard()):n===`iban`?t=t.check(c.iban()):n===`jwt`?t=t.check(c.jwt()):n===`emoji`?t=t.check(c.emoji()):n===`nanoid`?t=t.check(c.nanoid()):n===`cuid`?t=t.check(c.cuid()):n===`cuid2`?t=t.check(c.cuid2()):n===`ulid`?t=t.check(c.ulid()):n===`xid`?t=t.check(c.xid()):n===`ksuid`&&(t=t.check(c.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?c.number().int():c.number();typeof e.minimum==`number`&&e.exclusiveMinimum!==!0&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&e.exclusiveMaximum!==!0&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=c.boolean();break;case`null`:r=c.null();break;case`object`:{let n={},i=e.properties||{},o=new Set(e.required||[]),s=typeof e.additionalProperties==`object`?w(e.additionalProperties,t):void 0;for(let[e,r]of Object.entries(i)){let i=w(r,t);(0,a.assignProp)(n,e,o.has(e)?i:i.optional())}if(e.patternProperties){let i=e.patternProperties,o=Object.keys(i),s=[];for(let e of o){let n=w(i[e],t),r=c.string().regex(new RegExp(e));s.push(c.looseRecord(r,n))}let l=[];if(Object.keys(n).length>0&&l.push(c.object(n).passthrough()),l.push(...s),l.length===0)r=c.object({}).passthrough();else if(l.length===1)r=l[0];else{let e=c.intersection(l[0],l[1]);for(let t=2;t<l.length;t++)e=c.intersection(e,l[t]);r=e}if(e.additionalProperties===!1){let e=Object.keys(n),t=o.map(e=>new RegExp(e)),i=r;r=r.check(n=>{if(!(0,a.isPlainObject)(n.value))return;let r=[];for(let i of Object.keys(n.value))e.includes(i)||t.some(e=>e.test(i))||r.push(i);r.length&&n.issues.push({code:`unrecognized_keys`,keys:r,input:n.value,inst:i})})}}else{let t=c.object(n);r=e.additionalProperties===!1?t.strict():s?t.catchall(s):t.passthrough()}let l=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties==`number`?e.minProperties:void 0,d=typeof e.maxProperties==`number`?e.maxProperties:void 0;if(l||u!==void 0||d!==void 0){let n;l&&(n=w(typeof e.propertyNames==`object`&&e.propertyNames.type===void 0?{type:`string`,...e.propertyNames}:e.propertyNames,t)),r=m(r,{keySchema:n,minProperties:u,maxProperties:d})}break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=typeof e.minItems==`number`?e.minItems:0,o=d(n.map(e=>w(e,t)),a),s=Array.isArray(i)?void 0:x(i,t),l=c.tuple(o);r=s?l.rest(s):l,typeof e.minItems==`number`&&(r=r.check(c.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(c.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=typeof e.minItems==`number`?e.minItems:0,a=d(i.map(e=>w(e,t)),n),o=x(e.additionalItems,t),s=c.tuple(a);r=o?s.rest(o):s,typeof e.minItems==`number`&&(r=r.check(c.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(c.maxLength(e.maxItems)))}else if(i!==void 0){let n=w(i,t),a=c.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=c.array(c.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=b(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains===void 0?void 0:w(e.contains,t),minContains:typeof e.minContains==`number`?e.minContains:void 0,maxContains:typeof e.maxContains==`number`?e.maxContains:void 0}));break}default:throw Error(`Unsupported type: ${n}`)}return r}function w(e,t){if(typeof e==`boolean`)return e?c.any():c.never();let n=C(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>w(e,t)),a=c.union(i);n=r?c.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>w(e,t)),a=c.xor(i);n=r?c.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:c.any();else{let i=r?n:w(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=c.intersection(i,w(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=c.nullable(n)),e.readOnly===!0&&(n=c.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);if(e.type===`object`&&e.$ref===void 0){e.propertyNames!==void 0&&!v(e.propertyNames)&&(i.propertyNames=e.propertyNames);for(let t of[`minProperties`,`maxProperties`])e[t]!==void 0&&(i[t]=e[t])}if(e.type===`array`&&e.$ref===void 0){e.contains!==void 0&&!v(e.contains)&&(i.contains=e.contains);for(let t of[`uniqueItems`,`minContains`,`maxContains`])e[t]!==void 0&&(i[t]=e[t])}for(let t of Object.keys(e))l.has(t)||(0,a.assignProp)(i,t,e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function T(e,t){if(typeof e==`boolean`)return e?c.any():c.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:u(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??i.globalRegistry};return w(n,r)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),sm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.visit=s;let i=r(Pf()),a=$(),o=Symbol(`z.visit/resolving`);function s(e,t){let n=typeof t==`function`?t:(e,n)=>{let r=t[e._zod.def.type];return r?r(e,n):e},r=new Map;function s(e){let t=r.get(e);if(t===o)return new i.$ZodLazy({type:`lazy`,getter:()=>r.get(e)});if(t!==void 0)return t;r.set(e,o);let a=c(e),s=n(a,a!==e);return r.set(e,s),s}function c(e){let t=e._zod.def;switch(t.type){case`object`:{let n=t.shape,r=Object.keys(n),i=!1,o={};for(let e of r){let t=s(n[e]);t!==n[e]&&(i=!0),o[e]=t}let c=t.catchall;return t.catchall&&(c=s(t.catchall),c!==t.catchall&&(i=!0)),i?(0,a.clone)(e,{...t,shape:o,catchall:c}):e}case`array`:{let n=s(t.element);return n===t.element?e:(0,a.clone)(e,{...t,element:n})}case`tuple`:{let n=t.items,r=!1,i=[];for(let e of n){let t=s(e);t!==e&&(r=!0),i.push(t)}let o=t.rest;return t.rest&&(o=s(t.rest),o!==t.rest&&(r=!0)),r?(0,a.clone)(e,{...t,items:i,rest:o}):e}case`record`:case`map`:{let n=s(t.keyType),r=s(t.valueType);return n===t.keyType&&r===t.valueType?e:(0,a.clone)(e,{...t,keyType:n,valueType:r})}case`set`:{let n=s(t.valueType);return n===t.valueType?e:(0,a.clone)(e,{...t,valueType:n})}case`union`:{let n=t.options,r=!1,i=[];for(let e of n){let t=s(e);t!==e&&(r=!0),i.push(t)}return r?(0,a.clone)(e,{...t,options:i}):e}case`intersection`:{let n=s(t.left),r=s(t.right);return n===t.left&&r===t.right?e:(0,a.clone)(e,{...t,left:n,right:r})}case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:{let n=s(t.innerType);return n===t.innerType?e:(0,a.clone)(e,{...t,innerType:n})}case`pipe`:{let n=s(t.in),r=s(t.out);return n===t.in&&r===t.out?e:(0,a.clone)(e,{...t,in:n,out:r})}case`function`:{let n=s(t.input),r=s(t.output);return n===t.input&&r===t.output?e:(0,a.clone)(e,{...t,input:n,output:r})}case`lazy`:{let n=t.getter,{_cachedInner:r,...i}=t;return(0,a.clone)(e,{...i,getter:()=>s(n())})}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:return e;default:return e}}return s(e)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),cm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.deepPartial=o;let i=sm(),a=r(rm());function o(e){return(0,i.visit)(e,{object:e=>e.partial(),union:e=>{let t=e._zod.def;return t.discriminator===void 0?e:a.union(t.options)}})}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),lm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.input=u,e.output=d;let i=$(),a=sm(),o=r(rm());function s(e,t){if(!t?.length)return e;let n=e._zod.def;return(0,i.clone)(e,(0,i.mergeDefs)(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function c(e){return s(e.out,e.checks)}function l(e){return e.in._zod.traits.has(`$ZodTransform`)?c(e):e.in}function u(e){return(0,a.visit)(e,{pipe:e=>l(e._zod.def),default:(e,t)=>t?o.optional(e._zod.def.innerType):e,catch:(e,t)=>t?e._zod.def.innerType:e})}function d(e){return(0,a.visit)(e,{pipe:e=>c(e._zod.def),prefault:(e,t)=>t?e._zod.def.innerType:e})}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),um=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.string=o,e.number=s,e.boolean=c,e.bigint=l,e.date=u;let i=r($p()),a=r(rm());function o(e){return i._coercedString(a.ZodString,e)}function s(e){return i._coercedNumber(a.ZodNumber,e)}function c(e){return i._coercedBoolean(a.ZodBoolean,e)}function l(e){return i._coercedBigint(a.ZodBigInt,e)}function u(e){return i._coercedDate(a.ZodDate,e)}(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),dm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.coerce=e.iso=e.ZodISODuration=e.ZodISOTime=e.ZodISODate=e.ZodISODateTime=e.locales=e.output=e.input=e.deepPartial=e.fromJSONSchema=e.toJSONSchema=e.getDiscriminatedOption=e.ZodCompileUnsupportedError=e.ZodCompileAsyncError=e.withParser=e.compile=e.toZod=e.INVALID=e.NEVER=e.util=e.TimePrecision=e.flattenError=e.formatError=e.prettifyError=e.treeifyError=e.regexes=e.clone=e.$brand=e.$input=e.$output=e.memoizer=e.config=e.registry=e.globalRegistry=e.core=void 0,e.core=r($p()),i(rm(),e),i(em(),e),i(tm(),e),i(nm(),e),i(im(),e);var a=$p();Object.defineProperty(e,"globalRegistry",{enumerable:!0,get:function(){return a.globalRegistry}}),Object.defineProperty(e,"registry",{enumerable:!0,get:function(){return a.registry}}),Object.defineProperty(e,"config",{enumerable:!0,get:function(){return a.config}}),Object.defineProperty(e,"memoizer",{enumerable:!0,get:function(){return a.memoizer}}),Object.defineProperty(e,"$output",{enumerable:!0,get:function(){return a.$output}}),Object.defineProperty(e,"$input",{enumerable:!0,get:function(){return a.$input}}),Object.defineProperty(e,"$brand",{enumerable:!0,get:function(){return a.$brand}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return a.clone}}),Object.defineProperty(e,"regexes",{enumerable:!0,get:function(){return a.regexes}}),Object.defineProperty(e,"treeifyError",{enumerable:!0,get:function(){return a.treeifyError}}),Object.defineProperty(e,"prettifyError",{enumerable:!0,get:function(){return a.prettifyError}}),Object.defineProperty(e,"formatError",{enumerable:!0,get:function(){return a.formatError}}),Object.defineProperty(e,"flattenError",{enumerable:!0,get:function(){return a.flattenError}}),Object.defineProperty(e,"TimePrecision",{enumerable:!0,get:function(){return a.TimePrecision}}),Object.defineProperty(e,"util",{enumerable:!0,get:function(){return a.util}}),Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return a.NEVER}}),Object.defineProperty(e,"INVALID",{enumerable:!0,get:function(){return a.INVALID}}),Object.defineProperty(e,"toZod",{enumerable:!0,get:function(){return a.toZod}}),Object.defineProperty(e,"compile",{enumerable:!0,get:function(){return a.compile}}),Object.defineProperty(e,"withParser",{enumerable:!0,get:function(){return a.withParser}}),Object.defineProperty(e,"ZodCompileAsyncError",{enumerable:!0,get:function(){return a.ZodCompileAsyncError}}),Object.defineProperty(e,"ZodCompileUnsupportedError",{enumerable:!0,get:function(){return a.ZodCompileUnsupportedError}}),Object.defineProperty(e,"getDiscriminatedOption",{enumerable:!0,get:function(){return a.getDiscriminatedOption}});var o=Xp();Object.defineProperty(e,"toJSONSchema",{enumerable:!0,get:function(){return o.toJSONSchema}});var s=om();Object.defineProperty(e,"fromJSONSchema",{enumerable:!0,get:function(){return s.fromJSONSchema}});var c=cm();Object.defineProperty(e,"deepPartial",{enumerable:!0,get:function(){return c.deepPartial}});var l=lm();Object.defineProperty(e,"input",{enumerable:!0,get:function(){return l.input}}),Object.defineProperty(e,"output",{enumerable:!0,get:function(){return l.output}}),e.locales=r(Gp());var u=am();Object.defineProperty(e,"ZodISODateTime",{enumerable:!0,get:function(){return u.ZodISODateTime}}),Object.defineProperty(e,"ZodISODate",{enumerable:!0,get:function(){return u.ZodISODate}}),Object.defineProperty(e,"ZodISOTime",{enumerable:!0,get:function(){return u.ZodISOTime}}),Object.defineProperty(e,"ZodISODuration",{enumerable:!0,get:function(){return u.ZodISODuration}}),e.iso=r(am()),e.coerce=r(um()),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),fm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.z=void 0;let a=r(dm());e.z=a,e.default=a,i(dm(),e),(function(){for(var t=Object.getOwnPropertyNames(e),n=0;n<t.length;n++){var r=Object.getOwnPropertyDescriptor(e,t[n]);if(!(!r||!r.get||!r.configurable)){var i;try{i=r.get()}catch{continue}i!==void 0&&Object.defineProperty(e,t[n],{value:i,writable:!1,enumerable:r.enumerable,configurable:!1})}}Object.freeze(e)})()})),pm=s((e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0}),e.serializeSchema=e.toJsonSchema=e.isZodSchema=void 0;let n=fm();e.isZodSchema=e=>typeof e==`object`&&!!e&&`_zod`in e&&typeof e.parse==`function`,e.toJsonSchema=r=>{if(!(0,e.isZodSchema)(r))return r;let i=(0,n.toJSONSchema)(r,{io:`input`,reused:`inline`}),{$schema:a}=i;return t(i,[`$schema`])},e.serializeSchema=t=>JSON.stringify((0,e.toJsonSchema)(t))})),mm=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.convertServerFunctionDefinition=e.convertServerFunction=e.convertConfigurationInit=e.selectConnections=e.convertIntegrationConfiguration=void 0;let n=Jn(),r=hr(),i=an(),a=Ef(),o=pm(),s=_m();e.convertIntegrationConfiguration=(t,i={})=>{let{instance:a,userLevel:s,init:c,serverFunctions:l={}}=t,u=(e,t)=>{if(!e||e.schema===void 0)throw Error(`configuration.${t}.schema is required.`);if(!e.version)throw Error(`configuration.${t}.version is required.`);return Object.assign(Object.assign({schema:(0,o.toJsonSchema)(e.schema),version:e.version},e.ui?{ui:e.ui}:{}),e.versionSchemas?{versionSchemas:Object.fromEntries(Object.entries(e.versionSchemas).filter(([t])=>t!==e.version).map(([e,t])=>[e,(0,o.toJsonSchema)(t)]))}:{})},d=u(a,`instance`),f=s?u(s,`userLevel`):void 0,p=[...Object.entries(a.connections??{}).map(([e,t])=>{if((0,r.isUserScopedConnectionConfigVar)(t))throw Error(`Instance connection "${e}" cannot be user activated.`);return[`instance.${e}`,t]}),...Object.entries(s?.connections??{}).map(([e,t])=>{if((0,r.isOrgOrCustomerActivatedConnection)(t))throw Error(`User-level connection "${e}" must be user activated or integration-defined.`);return[`userLevel.${e}`,t]})],{scopedConfigVars:m,componentConnections:h}=p.reduce((e,[t,i])=>{if((0,r.isConnectionScopedConfigVar)(i))e.scopedConfigVars[t]=i;else if((0,n.isConnectionDefinitionConfigVar)(i)||(0,n.isConnectionReferenceConfigVar)(i))e.componentConnections[t]=i;else throw Error(`Invalid configuration connection: "${t}"`);return e},{scopedConfigVars:Object.create(null),componentConnections:Object.create(null)}),g=p.reduce((e,[t])=>{if(!t.slice(t.indexOf(`.`)+1))throw Error(`Configuration connection name must not be empty: "${t}"`);return e[t]=t,e},Object.create(null)),_=Object.entries(l),v=_.reduce((t,[n,r])=>(t[n]=(0,e.convertServerFunction)(r,g,i),t),Object.create(null));return Object.assign(Object.assign(Object.assign(Object.assign({configuration:Object.assign({instance:d},f?{userLevel:f}:{})},c?{componentConfiguration:{init:Object.assign({perform:(0,e.convertConfigurationInit)(c.perform,(0,e.selectConnections)(c.connections,g))},c.connections?.length?{connections:[...c.connections]}:{})},configurationInit:c.connections?.length?{connections:[...c.connections]}:{}}:{}),{scopedConfigVars:m,componentConnections:h,connectionNames:g,userLevelConnectionNames:p.map(([e])=>e).filter(e=>e.startsWith(`userLevel.`))}),_.length?{serverFunctions:v}:{}),{serverFunctionDefinitions:_.map(([t,n])=>(0,e.convertServerFunctionDefinition)(t,n))})};let c={};e.selectConnections=(e,t)=>Object.fromEntries((e??[]).map(e=>{if(!Object.hasOwn(t,e))throw Error(`Undeclared configuration connection: "${e}"`);return[e,t[e]]}));let l=e=>e?.configurationVersion,u=e=>e?.configVars??{},d=(e,t)=>({logger:t.logger,customer:t.customer,instance:t.instance,user:t.user,configVars:u(e)});e.convertConfigurationInit=(e,n=c)=>r=>t(void 0,void 0,void 0,function*(){let t=l(r)??null,o=u(r),s=(0,a.createConfigurationContext)(r,n);return(0,i.runWithDataSourceContext)(d(r,s),()=>e(Object.assign(s,{configurationVersion:t,configVars:o})))}),e.convertServerFunction=(n,r=c,o={})=>{let l=(0,e.selectConnections)(n.connections,r);return(e,r)=>t(void 0,void 0,void 0,function*(){let t=(0,a.createConfigurationContext)(e,l);return(0,i.runWithDataSourceContext)(d(e,t),()=>n.perform(Object.assign(t,{components:(0,s.createComponentMethods)(e,o)}),r))})},e.convertServerFunctionDefinition=(e,{inputSchema:t,outputSchema:n,connections:r,label:i,description:a})=>Object.assign({key:e,display:{label:i??e,description:a??``},inputSchema:(0,o.serializeSchema)(t),outputSchema:(0,o.serializeSchema)(n)},r?.length?{connections:[...r]}:{})})),hm=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DefinitionVersion=void 0,e.DefinitionVersion=7})),gm=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.invokeTriggerComponentInput=e.convertConfigVar=e.convertInputValue=e.convertFlow=e.convertQueueConfig=e.convertConfigPages=e.convertIntegration=e.CONCURRENCY_LIMIT_MIN=e.CONCURRENCY_LIMIT_MAX=void 0;let i=require("node:crypto"),a=require("fs"),o=r(Ru()),s=r(nd()),c=r(Sn()),l=r(id()),u=r(require("path")),d=r(Cf()),f=Sr(),p=an(),m=Tf(),h=Cn(),g=wn(),_=Ef(),v=_m(),y=xm(),b=mm(),x=hm(),S=vm();e.CONCURRENCY_LIMIT_MAX=15,e.CONCURRENCY_LIMIT_MIN=2;let C=e=>{e=(0,h.normalizeBoundTrigger)(e);let t=`trigger`in e?e.trigger:void 0;if(!t)return e;let{onTrigger:r,onDeploy:i}=t,a=e,{trigger:o}=a,s=n(a,[`trigger`]);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s),{onTrigger:(0,m.wrapBatchedFire)((0,m.withPollingState)((e,t)=>(0,p.invokeWithContext)(e,r,t)))}),i?{onDeployTrigger:(0,m.wrapBatchedFire)((0,m.withPollingState)((e,t)=>(0,p.invokeWithContext)(e,i,t)))}:{}),{triggerResolver:m.defaultBatchResolver}),i?{onDeployResolver:m.defaultBatchResolver}:{})};e.convertIntegration=e=>{let t=e,n=(0,i.randomUUID)();if(t.configuration&&(t.configPages||t.userLevelConfigPages||t.scopedConfigVars))throw Error("An integration must not define both `configuration` (function-backed) and `configPages` (declared).");for(let{name:e,schedule:n}of t.flows)if(n){if(t.configuration&&`configVar`in n)throw Error(`${e} uses a config variable schedule, but an integration with \`configuration\` has no config variables. Use \`{ value }\` or \`{ fromDeployer: true }\`.`);if(!t.configuration&&n.fromDeployer)throw Error(`${e} has a schedule from the deployer, which only an integration with \`configuration\` supports.`)}let r=t.configuration?(0,b.convertIntegrationConfiguration)(t.configuration,t.componentRegistry):void 0;r&&(t=Object.assign(Object.assign({},t),{scopedConfigVars:Object.assign(Object.assign({},t.scopedConfigVars??{}),r.scopedConfigVars)}));let o=t.scopedConfigVars??{},c=Object.values({configPages:t.configPages??{},userLevelConfigPages:t.userLevelConfigPages??{}}).reduce((e,t)=>Object.assign(Object.assign({},e),Object.values(t).reduce((e,t)=>Object.entries(t.elements).reduce((e,[t,n])=>{if(typeof n==`string`)return e;if(t in e||t in o)throw Error(`Duplicate config var key: "${t}"`);return Object.assign(Object.assign({},e),{[t]:n})},e),{})),Object.assign({},r?.componentConnections??{})),l={},d=new Map;for(let[e,t]of Object.entries(c)){if(!(0,f.isConnectionDefinitionConfigVar)(t))continue;let n=(0,s.default)(e),r=d.get(n);if(!n||r)throw Error(`Generated connection key collision: "${e}" and "${r??``}" normalize to "${n}".`);d.set(n,e)}try{let e=u.default.join(`..`,`.spectral`,`metadata.json`),t=(0,a.readFileSync)(e,{encoding:`utf-8`});l=JSON.parse(t)}catch{}let p=se(t,n,c,r?.connectionNames),m=T(t,n,c,l,r?.configuration,r?.userLevelConnectionNames),h=ce(t);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),r?.componentConfiguration?{configuration:r.componentConfiguration}:{}),r?.configurationInit?{configurationInit:r.configurationInit}:{}),r?.serverFunctions?{serverFunctions:r.serverFunctions,serverFunctionDefinitions:r.serverFunctionDefinitions}:{}),{codeNativeIntegrationYAML:m,publishingMetadata:h})};let w=e=>(0,f.isOrgOrCustomerActivatedConnection)(e);e.convertConfigPages=(e,t)=>{if(!e||!Object.keys(e).length)return[];if(!t){let t=Object.entries(e).flatMap(([e,{elements:t}])=>Object.entries(t).filter(([e,t])=>(0,f.isUserScopedConnectionConfigVar)(t)).map(([t])=>`"${t}" on config page "${e}"`));if(t.length)throw Error(`A user-activated connection is activated by each person individually, so it belongs on a user level config page. Move ${t.join(`, `)}.`)}if(t){let t=Object.entries(e).flatMap(([e,{elements:t}])=>Object.entries(t).filter(([e,t])=>w(t)).map(([t])=>`"${t}" on user level config page "${e}"`));if(t.length)throw Error(`A connection activated once by the organization or the customer does not belong on a user level config page, which asks each person for their own. Move ${t.join(`, `)}.`)}return Object.entries(e).map(([e,{tagline:n,elements:r}])=>Object.assign(Object.assign({name:e,tagline:n},t?{userLevelConfigured:t}:{}),{elements:Object.entries(r).filter(([e,t])=>!(0,f.isOrgOrCustomerActivatedConnection)(t)).map(([e,t])=>typeof t==`string`?{type:`htmlElement`,value:t}:t&&typeof t==`object`&&`dataType`in t&&t.dataType===`htmlElement`?{type:`htmlElement`,value:e}:{type:`configVar`,value:e})}))};let T=({name:t,description:n,category:r,documentation:i,version:a,labels:o,endpointType:s,triggerPreprocessFlowConfig:c,flows:l,configPages:u,userLevelConfigPages:p,scopedConfigVars:m,instanceProfile:h,componentRegistry:g={}},_,v,y,b,S=[])=>{let w=l.map(e=>C(e)),T=w.filter(e=>e.preprocessFlowConfig);if(T.length>1)throw Error(`Only one flow may define a Preprocess Flow Config.`);if(T.length&&c)throw Error(`Integration must not define both a Trigger Preprocess Flow Config and a Preprocess Flow.`);let E=T.length>0,D=E?T[0].preprocessFlowConfig:c;if([`instance_specific`,`shared_instance`].includes(s||`flow_specific`)&&!D)throw Error(`Integration with specified EndpointType must define either a Trigger Preprocess Flow Config or a Preprocess Flow.`);let O=Object.entries(m??{}).reduce((e,[t,n])=>typeof n==`string`?e:Object.assign(Object.assign({},e),{[t]:n}),Object.assign({},v??{})),k=[];Object.entries(O).forEach(([t,n])=>{(0,f.isHtmlElementConfigVar)(n)||k.push(Object.assign(Object.assign({},(0,e.convertConfigVar)(t,n,_,g)),S.includes(t)?{userLevelConfigured:!0}:{}))});let A=Object.assign(Object.assign(Object.assign({definitionVersion:x.DefinitionVersion,isCodeNative:!0,name:t,description:n,category:r,documentation:i,version:a,labels:o,requiredConfigVars:k,endpointType:s,preprocessFlowName:E?T[0].name:void 0,externalCustomerIdField:q(E?`onExecution`:`payload`,D?.externalCustomerIdField),externalCustomerUserIdField:q(E?`onExecution`:`payload`,D?.externalCustomerUserIdField),flowNameField:q(E?`onExecution`:`payload`,D?.flowNameField),flows:w.map(t=>(0,e.convertFlow)(t,g,_))},h&&{defaultInstanceProfile:h}),b?{configuration:b}:{configPages:[...(0,e.convertConfigPages)(u,!1),...(0,e.convertConfigPages)(p,!0)]}),{importMetadata:y});return d.default.stringify(A)},E={customer:{orgOnly:!1,visibleToOrgDeployer:!0,visibleToCustomerDeployer:!0},embedded:{orgOnly:!1,visibleToOrgDeployer:!0,visibleToCustomerDeployer:!1},organization:{orgOnly:!0,visibleToOrgDeployer:!0,visibleToCustomerDeployer:!1}},D=({permissionAndVisibilityType:e=`customer`,visibleToOrgDeployer:t=!0})=>Object.assign(Object.assign({},E[e]),t===void 0?{}:{visibleToOrgDeployer:t}),O=({permissionAndVisibilityType:e,visibleToOrgDeployer:t})=>D({permissionAndVisibilityType:e,visibleToOrgDeployer:t}),k=({permissionAndVisibilityType:e,visibleToOrgDeployer:t})=>{let{orgOnly:n,visibleToCustomerDeployer:r,visibleToOrgDeployer:i}=D({permissionAndVisibilityType:e,visibleToOrgDeployer:t});return{orgOnly:n,meta:{visibleToCustomerDeployer:r,visibleToOrgDeployer:i}}},A=e=>typeof e==`object`&&!!e,j=e=>Array.isArray(e)?e.map(e=>{if(!A(e)||!(`key`in e))throw Error(`Key-value list entries must be objects with a "key": ${JSON.stringify(e)}`);return[String(e.key),`value`in e?e.value:void 0]}):Object.entries(e),M=(e,t)=>e===`keyvaluelist`&&A(t)?j(t).map(([e,t])=>({name:{type:`value`,value:e},type:`value`,value:JSON.stringify(t)})):e===`valuelist`&&Array.isArray(t)?t.map(e=>({type:`value`,value:e})):t,N=e=>A(e)&&`configVar`in e?{configVar:String(e.configVar)}:A(e)&&`value`in e?{value:e.value}:{value:e},P=(e,t)=>Object.entries(e).reduce((e,[n,r])=>{let i=r,a=!!i.collection,o=t?.[n]??{value:a?i.default===``?[]:i.default:i.default??``},s=a?`complex`:`value`in o?`value`:`configVar`;if(`value`in o){let t=M(i.collection,o.value),r=s===`complex`||typeof t==`string`?t:JSON.stringify(t),a=O({permissionAndVisibilityType:`permissionAndVisibilityType`in o?o.permissionAndVisibilityType:void 0,visibleToOrgDeployer:`visibleToOrgDeployer`in o?o.visibleToOrgDeployer:void 0});return`writeOnly`in o&&o.writeOnly&&(a.writeOnly=o.writeOnly),Object.assign(Object.assign({},e),{[n]:{type:s,value:r,meta:a}})}return`configVar`in o?Object.assign(Object.assign({},e),{[n]:{type:`configVar`,value:o.configVar}}):`template`in o?Object.assign(Object.assign({},e),{[n]:{type:`template`,value:o.template}}):e},{}),F=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e.shown!==!1)),I=(e,t,n)=>{let r=(0,g.getPublishedConnection)(e);if(r)return{ref:{component:r.component,key:e.key},inputs:P(F(r.inputs),e.values)};let i=t[e.component];if(!i)throw Error(`Component with key "${e.component}" not found in component registry.`);let a=i[n][e.key];if(!a)throw Error(`Component with key "${e.component}" does not have an entry with key "${e.key}" in the component registry.`);return{ref:{component:{key:i.key,signature:i.signature??``,isPublic:i.public},key:a.key??e.key},inputs:P(a.inputs,e.values)}},L=(e,t)=>{let n=Object.values(e).map(({key:e,public:t,signature:n})=>Object.assign({key:e,isPublic:t},n?{signature:n}:{version:`LATEST`}));return t&&n.push({key:`${t}-triggers`,isPublic:!0,version:`LATEST`}),n},R=(e,t)=>t[e.component]?.triggers[e.key],z=(e,t)=>{let n=t?.dynamicBranchInput,r=n?e[n]:void 0;if(!n||r?.type!==`complex`||!Array.isArray(r.value))return e;let i=r.value.map(e=>typeof e.name==`object`&&e.name.type===`value`?Object.assign(Object.assign({},e),{name:e.name.value}):e);return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},r),{value:i})})},B=(e,t)=>{let n=R(e,t);return n?.allowsBranching?Object.assign({allowsBranching:!0,staticBranchNames:[...n.staticBranchNames??[]]},n.dynamicBranchInput?{dynamicBranchInput:n.dynamicBranchInput}:{}):{}},V=(e,t,n)=>{if(!e?.allowsBranching)return;let r=e.dynamicBranchInput?t?.[e.dynamicBranchInput]:void 0;if(r?.type===`configVar`)throw Error(`The trigger of flow "${n}" branches on its "${e.dynamicBranchInput}" input, which is bound to a config variable. Publishing requires the branch names in the integration, so give "${e.dynamicBranchInput}" a value in code instead.`);let i=r?.type===`complex`&&Array.isArray(r.value)?r.value.flatMap(e=>typeof e.name==`string`?[e.name]:[]):[];return[...new Set([...e.staticBranchNames??[],...i])].map(e=>({name:e,steps:[]}))},H=e=>{if(!e||!(`dynamicBranchInput`in e.definition)||!e.definition.dynamicBranchInput)return;let t=e.definition.dynamicBranchInput,n=e.definition.inputs[t];if(!n)throw Error(`Dynamic branch input "${t}" is not defined on the trigger.`);let r=e.bindings[t],i=typeof r==`object`&&r?r:void 0;if(i&&`configVar`in i)return{input:(0,y.convertInput)(t,n),value:{type:`configVar`,value:String(i.configVar)}};let a=i&&`value`in i?i.value:r,o=a===void 0?`default`in n?n.default:void 0:a,s=e=>typeof e==`string`?e:JSON.stringify(e),c=n.collection===`keyvaluelist`?(Array.isArray(o)?o:Object.entries(typeof o==`object`&&o?o:{}).map(([e,t])=>({key:e,value:t}))).map(({key:e,value:t})=>({name:e,type:`value`,value:s(t)})):n.collection===`valuelist`?(Array.isArray(o)?o:[]).map(e=>({type:`value`,value:s(e)})):void 0;return{input:(0,y.convertInput)(t,n),value:c?{type:`complex`,value:c}:{type:`value`,value:s(o??``)}}},U=e=>({key:e,version:`LATEST`,isPublic:!1}),W=e=>typeof e.onTrigger==`function`||e.onInstanceDelete||e.onInstanceDeploy||e.webhookLifecycleHandlers,G=e=>{if(e.fromDeployer)return{fromDeployer:!0};let t=`configVar`in e;return{type:t?`configVar`:`value`,value:t?e.configVar:e.value,meta:{scheduleType:`custom`,timeZone:e.timezone??``}}};e.convertQueueConfig=e=>{if(!(`type`in e))return e;switch(e.type){case`parallel`:return{usesFifoQueue:!1};case`throttled`:return{usesFifoQueue:!0,concurrencyLimit:e.concurrencyLimit,dedupeIdField:e.dedupeIdField};case`sequential`:return{usesFifoQueue:!0,dedupeIdField:e.dedupeIdField};default:return e}};let ee=(e,t)=>Object.entries(t).reduce((t,[n,r])=>(t[n]=Object.assign({title:r.title||`${e}-${n}`,type:`object`,$comment:r.$comment,properties:r.properties,$schema:r.$schema||f.DEFAULT_JSON_SCHEMA_VERSION},r.required?.length?{required:r.required}:{}),t),{});e.convertFlow=(t,n,r)=>{let i=C(t),a=Object.assign({},i);a.onTrigger=void 0,a.trigger=void 0,a.onInstanceDeploy=void 0,a.onInstanceDelete=void 0,a.webhookLifecycleHandlers=void 0,a.onExecution=void 0,a.onDeployTrigger=void 0,a.preprocessFlowConfig=void 0,a.errorConfig=void 0,a.testApiKeys=void 0,a.triggerType=void 0;let o,c={name:`On Trigger`,stableKey:`${i.stableKey}-onTrigger`,description:`The function that will be executed by the flow to return an HTTP response.`,isTrigger:!0,errorConfig:`errorConfig`in i?Object.assign({},i.errorConfig):void 0},l=W(i);if((0,f.isComponentReference)(i.onTrigger)&&!l){let{ref:e,inputs:t}=I(i.onTrigger,n,`triggers`),r=R(i.onTrigger,n);c.action=e;let a=z(t,r);c.inputs=a;let o=V(r,a,i.name);o&&(c.branches=o)}else if(l){if(i.onTrigger||(o=i.schedule?`schedule`:`webhook`),(0,f.isComponentReference)(i.onTrigger)){let{inputs:e}=I(i.onTrigger,n,`triggers`),t=R(i.onTrigger,n),r=z(e,t);c.inputs=r;let a=V(t,r,i.name);a&&(c.branches=a)}else{let e=(0,h.getBoundTrigger)(i.onTrigger),t=H(e),n=t?{[t.input.key]:t.value}:void 0;n&&(c.inputs=n);let r=V(e?.definition,n,i.name);r&&(c.branches=r)}c.action={key:te(i.name,`onTrigger`),component:U(r)}}else{let e=`schedule`in i&&typeof i.schedule==`object`?`schedule`:`webhook`;c.action={key:e,component:{key:`${e}-triggers`,version:`LATEST`,isPublic:!0}}}let u=!1;if(`schedule`in i&&typeof i.schedule==`object`&&(c.schedule=G(i.schedule),a.schedule=void 0,u=!0),i.triggerType===`polling`&&!u)throw Error(`${i.name} is marked as a polling trigger but has no schedule. Polling triggers require a schedule.`);if(`queueConfig`in i&&typeof i.queueConfig==`object`){let t=(0,e.convertQueueConfig)(i.queueConfig);if(u&&t.usesFifoQueue)throw Error(`${i.name} has a schedule & usesFifoQueue set to true. FIFO queues cannot be used with scheduled flows.`);if(!u&&t.singletonExecutions)throw Error(`${i.name} is configured for singletonExecutions but has no schedule. Unscheduled flows cannot be configured for singleton executions.`);if(t.usesFifoQueue&&t.singletonExecutions)throw Error(`${i.name} is configured for both FIFO queues and singleton executions, but these options are mutually exclusive. Please choose one.`);if(t.concurrencyLimit!==void 0&&(t.concurrencyLimit<e.CONCURRENCY_LIMIT_MIN||t.concurrencyLimit>e.CONCURRENCY_LIMIT_MAX))throw Error(`${i.name} has an invalid concurrencyLimit of ${t.concurrencyLimit}. concurrencyLimit must be between ${e.CONCURRENCY_LIMIT_MIN} and ${e.CONCURRENCY_LIMIT_MAX}.`);a.queueConfig=Object.assign(Object.assign({usesFifoQueue:!1},t),t.dedupeIdField?{dedupeIdField:{type:`reference`,value:`${(0,s.default)(c.name)}.results.${t.dedupeIdField}`}}:{})}let d=`triggerResolver`in i?i.triggerResolver:void 0,p=`onDeployResolver`in i?i.onDeployResolver:void 0,m=`batchConfig`in i?i.batchConfig:void 0,g=`runInitialSyncOnDeploy`in i&&!!i.runInitialSyncOnDeploy;if(a.triggerResolver=void 0,a.onDeployResolver=void 0,a.batchConfig=void 0,a.runInitialSyncOnDeploy=void 0,d||p){if(!m)throw Error(`${i.name} defines a triggerResolver/onDeployResolver but no batchConfig. Add \`batchConfig: { batchSize }\` to the flow.`);if(p&&(!(`onDeployTrigger`in i)||typeof i.onDeployTrigger!=`function`))throw Error(`${i.name} declares onDeployResolver without onDeployTrigger. Set onDeployTrigger to handle the initial-deploy fire that the resolver fans out.`);let e=(0,y.validateConcurrentBatchLimit)(i.name,`batchConfig`,m.concurrentBatchLimit);a.triggerResolver=Object.assign(Object.assign({batchSize:(0,y.validateBatchSize)(i.name,`batchConfig`,m.batchSize),enabled:!0},e===void 0?{}:{concurrentBatchLimit:e}),typeof i.runInitialSyncOnDeploy==`boolean`?{runInitialSyncOnDeploy:g}:{})}return a.steps=[c,{action:{key:te(i.name,`onExecution`),component:U(r)},name:`On Execution`,stableKey:`${i.stableKey}-onExecution`,description:`The function that will be executed by the flow.`,errorConfig:`errorConfig`in i?Object.assign({},i.errorConfig):void 0}],a.supplementalComponents=L(n,o),a.schemas=i.schemas?ee(i.stableKey,i.schemas):void 0,a},e.convertInputValue=(e,t)=>t!==`keyvaluelist`||Array.isArray(e)?e:Object.entries(e).map(([e,t])=>({key:e,value:typeof t==`string`?t:JSON.stringify(t)}));let K=e=>{if((0,f.isConnectionDefinitionConfigVar)(e)){let t=Object.values(e.inputs).some(e=>`onPremControlled`in e&&e.onPremControlled),{onPremConnectionConfig:n}=e;if(t&&!n)throw Error(`Connection ${e.stableKey} has onPremControlled inputs but no onPremConnectionConfig value set. Please set an onPremConnectionConfig value for the connection.`);if(!t&&n&&n!==`disallowed`)throw Error(`Connection ${e.stableKey} has onPremConnectionConfig set but no onPremControlled inputs. The connection will not be valid without onPremControlled inputs (host, port).`);return t&&n?n:`disallowed`}return`disallowed`};e.convertConfigVar=(t,n,r,i)=>{if((0,f.isConnectionScopedConfigVar)(n)){let{stableKey:e}=(0,l.default)(n,[`stableKey`]);return{key:t,stableKey:e,dataType:`connection`,useScopedConfigVar:e}}let{orgOnly:a,meta:c}=k((0,l.default)(n,[`permissionAndVisibilityType`,`visibleToOrgDeployer`]));if((0,f.isConnectionDefinitionConfigVar)(n)){let{stableKey:e,description:i}=(0,l.default)(n,[`stableKey`,`description`]);return{stableKey:e,description:i,key:t,dataType:`connection`,onPremiseConnectionConfig:K(n),connection:{key:(0,s.default)(t),component:U(r)},inputs:Object.entries(n.inputs).reduce((e,[t,n])=>{if(n.shown===!1||`templateValue`in n)return e;let r=O(n);n.writeOnly&&(r.writeOnly=n.writeOnly);let i=n.collection?(Array.isArray(n.default)?n.default:[]).map(e=>typeof e==`string`?{type:`value`,value:e}:{name:e.key,type:`value`,value:e.value}):n.default||``;return Object.assign(Object.assign({},e),{[t]:{type:n.collection?`complex`:`value`,value:i,meta:r}})},{}),orgOnly:a,meta:Object.assign(Object.assign({},c),`oauth2Config`in n?n.oauth2Config??{}:{})}}if((0,f.isConnectionReferenceConfigVar)(n)){let{ref:e,inputs:r}=I(n.connection,i,`connections`),{stableKey:o=``,description:s,connection:{template:u,onPremiseConnectionConfig:d}}=(0,l.default)(n,[`stableKey`,`description`,`connection`]);return{stableKey:o,description:s,key:t,dataType:`connection`,onPremiseConnectionConfig:d,connection:Object.assign(Object.assign({},e),{template:u}),inputs:r,orgOnly:a,meta:Object.assign(Object.assign({},c),`oauth2Config`in n?n.oauth2Config??{}:{})}}let u=`defaultValue`in n?(0,e.convertInputValue)(n.defaultValue,n.collectionType):void 0,d=u===void 0?void 0:typeof u==`string`?u:JSON.stringify(u),p=(0,o.default)({orgOnly:a,meta:c,key:t,defaultValue:d},(0,l.default)(n,[`stableKey`,`description`,`dataType`,`pickList`,`timeZone`,`codeLanguage`,`collectionType`]));if(((0,f.isScheduleConfigVar)(n)||(0,f.isScheduleDataSourceConfigVar)(n))&&(n.scheduleType?p.scheduleType=n.scheduleType:(0,f.isScheduleDataSourceConfigVar)(n)||typeof d==`string`&&d.length>0?p.scheduleType=`custom`:p.scheduleType=`none`),((0,f.isJsonFormConfigVar)(n)||(0,f.isJsonFormDataSourceConfigVar)(n))&&(p.meta=Object.assign(Object.assign({},p.meta),{validationMode:n?.validationMode??`ValidateAndShow`})),(0,f.isJsonFormDataSourceConfigVar)(n)&&n.dataSourceReset&&(p.meta=Object.assign(Object.assign({},p.meta),{dataSourceReset:n.dataSourceReset.mode}),p.inputs=(n.dataSourceReset.dependencies||[]).reduce((e,t,n)=>Object.assign(Object.assign({},e),{[`input${n}`]:{type:`configVar`,value:t}}),{})),(0,f.isDataSourceDefinitionConfigVar)(n)){p.dataType=n.dataSourceType,p.dataSource={key:(0,s.default)(t),component:U(r)};let e=(0,g.getBundledDataSource)(n);if(e){let t=Object.fromEntries(Object.entries(e.values).map(([e,t])=>[e,N(t)]));p.inputs=Object.assign(Object.assign({},p.inputs),P(e.inputs,t))}}if((0,f.isDataSourceReferenceConfigVar)(n)){let{ref:e,inputs:t}=I(n.dataSource,i,`dataSources`);p.dataType=i[n.dataSource.component].dataSources[e.key].dataSourceType,p.dataSource=e,p.inputs=t,n.validationMode&&(p.meta=Object.assign(Object.assign({},p.meta),{validationMode:n.validationMode})),n.dataSourceReset&&(p.meta=Object.assign(Object.assign({},p.meta),{dataSourceReset:n.dataSourceReset.mode}))}return p};let q=(e,t)=>t?{type:`reference`,value:`${e}.results.${t}`}:void 0,te=(e,t)=>`${e.replace(/[^0-9a-zA-Z]+/g,` `).trim().split(` `).map((e,t)=>t===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(``)}_${t}`;e.invokeTriggerComponentInput=(e,t,n)=>{let{component:r}=e;return{component:`signature`in e.component?{key:r.key,signature:`signature`in r&&r.signature!==null&&r.signature!==void 0?r.signature:``,isPublic:r.isPublic}:r,key:t?t.key:e.key,triggerEventFunctionName:n}};let ne=(e,t)=>{if(!(0,f.isComponentReference)(e))return[];let n=t[e.component]?.triggers?.[e.key]?.inputs;return n?Object.entries(n).map(([e,t])=>Object.assign(Object.assign(Object.assign({key:e,label:e,type:t.inputType},t.collection?{collection:t.collection}:{}),t.default===void 0?{}:{default:t.default}),t.required===void 0?{}:{required:t.required})):[]},re=(e,t)=>t!==`polling`;function ie(e){let{componentRef:t,onTrigger:n,componentRegistry:r,triggerType:i}=e;if(t&&typeof n!=`function`)return{componentRef:t,onTrigger:n,triggerType:`component-ref`,componentRegistry:r};if(i===`polling`&&typeof n==`function`)return{componentRef:void 0,onTrigger:n,triggerType:i,componentRegistry:r};if(typeof n==`function`&&re(n,i))return{componentRef:void 0,onTrigger:n,triggerType:`standard`,componentRegistry:r};throw Error(`Invalid trigger configuration detected: ${JSON.stringify(e,null,2)}`)}function ae(e){let{componentRef:t,onTrigger:n,componentRegistry:r,triggerType:i}=ie(e);switch(i){case`polling`:return(0,S.createCNIPollingPerform)({onTrigger:n,componentRegistry:r});case`standard`:return(0,S.createCNIPerform)({componentRegistry:r,onTrigger:n});case`component-ref`:return(0,S.createCNIComponentRefPerform)({componentRegistry:r,componentRef:t,onTrigger:n});default:throw Error(`Invalid trigger configuration detected: ${JSON.stringify(e,null,2)}`)}}let J=(n,r,i,a,o)=>{if(n&&typeof r!=`function`)return(s,l)=>t(void 0,void 0,void 0,function*(){let u=(s._components??{invokeTrigger:()=>{}}).invokeTrigger,d=(0,v.createCNIContext)(s,a);return yield(0,p.invokeWithContext)(d,a=>t(void 0,void 0,void 0,function*(){let t=(yield u((0,e.invokeTriggerComponentInput)(n,r,i),a,null,l))||{},s={};return o&&(s=(yield o(a,l))||{}),(0,c.default)(t,s)}))});if(o)return(e,n)=>t(void 0,void 0,void 0,function*(){let t=(0,v.createCNIContext)(e,a);return yield(0,p.invokeWithContext)(t,o,n)})},oe=(e,n,r)=>(i,a)=>t(void 0,void 0,void 0,function*(){let t=(0,v.createCNIContext)(i,n),o=r?Object.assign(t,{configuration:`configuration`in t?t.configuration??{}:{},userConfiguration:`userConfiguration`in t?t.userConfiguration??{}:{},connections:(0,_.createConfigurationConnections)(r,t.configVars)}):t,s=yield(0,p.invokeWithContext)(o,e,a);return(0,v.logDebugResults)(o),s}),se=({name:e,iconPath:t,description:n,flows:r=[],componentRegistry:i={}},a,o,c)=>{let u=r.map(e=>C(e)),d=u.reduce((e,{name:t,onExecution:n})=>{let r=te(t,`onExecution`);return Object.assign(Object.assign({},e),{[r]:{key:r,display:{label:`${t} - onExecution`,description:`The function that will be executed by the flow.`},perform:oe(n,i,c),inputs:[]}})},{}),m=u.reduce((e,t)=>{let{name:n,onTrigger:r,onInstanceDeploy:a,onInstanceDelete:o,webhookLifecycleHandlers:s,schedule:c,triggerType:u,onDeployTrigger:d}=t,{batchConfig:m,triggerResolver:g,onDeployResolver:_}=t,y=(0,h.getBoundTrigger)(r),b=H(y),x=e=>y?(t,n)=>{let r=(0,v.createCNIContext)(t,i);return(0,p.invokeWithContext)(r,e,n)}:e;if(!W({onTrigger:r,onInstanceDelete:o,onInstanceDeploy:a,webhookLifecycleHandlers:s}))return e;let C=te(n,`onTrigger`),w=c&&typeof c==`object`?`schedule`:`webhook`,T={component:{key:`${w}-triggers`,version:`LATEST`,isPublic:!0},key:w},{ref:E}=(0,f.isComponentReference)(r)?I(r,i,`triggers`):{ref:r?void 0:T},D=ae({componentRef:E,onTrigger:r,componentRegistry:i,triggerType:u}),O=J(E,r,`onInstanceDelete`,i,o),k=J(E,r,`onInstanceDeploy`,i,a),A=J(E,r,`webhookCreate`,i,s?.create),j=J(E,r,`webhookDelete`,i,s?.delete);return Object.assign(Object.assign({},e),{[C]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({key:C,display:{label:`${n} - onTrigger`,description:`The function that will be executed by the flow to return an HTTP response.`},perform:D,onInstanceDeploy:k,hasOnInstanceDeploy:!!k,onInstanceDelete:O,hasOnInstanceDelete:!!O,webhookCreate:A,hasWebhookCreateFunction:!!A,webhookDelete:j,hasWebhookDeleteFunction:!!j,inputs:b?[b.input]:ne(r,i),scheduleSupport:y&&`scheduleSupport`in y.definition?y.definition.scheduleSupport:u===`polling`?`required`:`valid`,synchronousResponseSupport:y&&`synchronousResponseSupport`in y.definition?y.definition.synchronousResponseSupport:y&&u===`polling`?`invalid`:`valid`},y?(0,l.default)(y.definition,[`allowsBranching`,`staticBranchNames`,`dynamicBranchInput`,`terminateExecution`,`breakLoop`]):(0,f.isComponentReference)(r)?B(r,i):{}),{isPollingTrigger:u===`polling`,triggerResolverSupport:y?.definition.triggerResolverSupport??(g?`valid`:`invalid`)}),g||_||y?.definition.triggerResolverSupport===`valid`||y?.definition.triggerResolverSupport===`required`?Object.assign({triggerResolverDefaultBatchSize:m?.batchSize??1},m?.concurrentBatchLimit===void 0?{}:{triggerResolverDefaultConcurrentBatchLimit:m.concurrentBatchLimit}):{}),g?Object.assign(Object.assign({},g.resolveItems?{resolveTriggerItems:x(g.resolveItems),hasResolveTriggerItems:!0}:{}),g.getNextPaginationState?{getNextPaginationState:x(g.getNextPaginationState),hasGetNextDiscoveryState:!0}:{}):{}),d?{onDeployPerform:(0,S.createCNIPerform)({componentRegistry:i,onTrigger:d}),hasOnDeployPerform:!0}:{}),_?Object.assign(Object.assign({},_.resolveItems?{resolveOnDeployItems:x(_.resolveItems),hasResolveOnDeployItems:!0}:{}),_.getNextPaginationState?{getOnDeployNextPaginationState:x(_.getNextPaginationState),hasGetOnDeployNextDiscoveryState:!0}:{}):{})})},{}),_={},b=(e,t,n=e)=>{let r=(0,g.getBundledDataSource)(t);if(r&&(Object.hasOwn(_,e)||Object.keys(o).some(n=>(0,s.default)(n)===e&&o[n]!==t)))throw Error(`Bundled data source key collision: ${e}`);let i=r?.detail?`${e}__detail`:void 0,a=t.dataSourceType===`jsonForm`?t.dataSourceReset?.dependencies??[]:[];if(r&&(n=e),_[e]=Object.assign({key:e,dataSourceType:t.dataSourceType,display:{label:n,description:n},inputs:r?Object.entries(r.inputs).map(([e,t])=>(0,y.convertInput)(e,t)):a.map((e,t)=>({key:`input${t}`,label:e,type:`string`})),perform:(e,n)=>(0,p.runWithDataSourceContext)(e,()=>t.perform(e,n))},i?{detailDataSource:i}:{}),r?.detail&&i){if(!(0,g.getBundledDataSource)(r.detail))throw Error(`Missing bundled data source definition: ${i}`);b(i,r.detail)}};for(let[e,t]of Object.entries(o))(0,f.isDataSourceDefinitionConfigVar)(t)&&b((0,s.default)(e),t,e);let x=Object.entries(o).reduce((e,[t,n])=>{if(!(0,f.isConnectionDefinitionConfigVar)(n))return e;let r=Object.entries(n.inputs).map(([e,t])=>`templateValue`in t?(0,y.convertTemplateInput)(e,t,n.inputs):(0,y.convertInput)(e,t)),i=(0,l.default)(n,[`oauth2Type`,`oauth2PkceMethod`]),{avatarPath:a,oauth2ConnectionIconPath:o}=n.icons??{};return[...e,Object.assign(Object.assign({},i),{iconPath:o,avatarIconPath:a,inputs:r,key:(0,s.default)(t),label:t})]},[]);return{key:a,display:{label:a,iconPath:t,description:n||e},connections:x,actions:d,triggers:m,dataSources:_}},ce=e=>({flowsWithCustomerRequiredAPIKeys:e.flows.filter(e=>e.endpointSecurityType===`customer_required`).map(({name:e,testApiKeys:t})=>({name:e,testApiKeys:t}))})})),_m=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.createInvokeFlow=void 0,e.createComponentMethods=c,e.createCNIContext=l,e.createDebugContext=u,e.logDebugResults=d;let r=require("node:perf_hooks"),i=require("node:process"),a=n(Lu()),o=gm(),s=1024*1024;function c(e,n){let r=(e._components??{invoke:()=>{}}).invoke;return Object.entries(n).reduce((i,[a,{key:s,actions:c,public:l,signature:d}])=>{let f=Object.entries(c).reduce((i,[c,f])=>{let p=n[a].actions[c],m=n=>t(this,void 0,void 0,function*(){let t=Object.entries(p.inputs).reduce((e,[t,r])=>{let i=n[t]??r.default,{collection:a}=r;return Object.assign(Object.assign({},e),{[t]:(0,o.convertInputValue)(i,a)})},{});return r({component:{key:s,signature:d??``,isPublic:l},key:f.key??c},Object.assign(Object.assign({},e),{debug:u(e)}),t)});return Object.assign(Object.assign({},i),{[c]:m})},{});return Object.assign(Object.assign({},i),{[a]:f})},{})}function l(t,n){return Object.assign(Object.assign({},t),{debug:u(t),components:c(t,n),invokeFlow:(0,e.createInvokeFlow)(t,{isCNI:!0})})}function u(e){let t=!!e.globalDebug;return{enabled:t,timeElapsed:{mark:(e,n)=>{t&&(e.debug.results.timeElapsed.marks[n]=r.performance.now())},measure:(e,n,r)=>{t&&(e.debug.results.timeElapsed.measurements[n]={marks:r,duration:e.debug.results.timeElapsed.marks[r.end]-e.debug.results.timeElapsed.marks[r.start]})}},memoryUsage:(e,n,r)=>{if(t){let t=r?f():i.memoryUsage.rss()/s;e.debug.results.memoryUsage.push({mark:n,rss:typeof t==`number`?t:t.rss,detail:typeof t==`number`?void 0:t})}},results:{timeElapsed:{marks:{},measurements:{}},memoryUsage:[],allowedMemory:Number(e.runnerAllocatedMemoryMb)}}}function d(e){e.debug.enabled&&e.logger.metric(e.debug.results)}function f(){let e=(0,i.memoryUsage)();return Object.keys(e).reduce((t,n)=>(t[n]=e[n]/s,t),{rss:-1,heapTotal:-1,heapUsed:-1,external:-1,arrayBuffers:-1})}function p(e,t){let n=e;return t&&(n=Object.assign(Object.assign({},e),{customSource:t})),JSON.stringify(n)}e.createInvokeFlow=(e,n={})=>(r,i,o,s)=>t(void 0,void 0,void 0,function*(){let t=n.isCNI?s:void 0;return yield a.default.post(e.webhookUrls[r],i,Object.assign(Object.assign({},o),{headers:Object.assign(Object.assign(Object.assign({},o?.headers??{}),e.webhookApiKeys[r]?.length>0?{"Api-Key":e.webhookApiKeys[r][0]}:{}),{"prismatic-invoked-by":p(e.executionFrame,t),"prismatic-invoke-type":`Cross Flow`,"prismatic-executionid":e.executionId})}))})})),vm=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.createCNIPerform=e.createCNIComponentRefPerform=e.createCNIPollingPerform=e.createPollingPerform=e.createPerform=e.cleanParams=e.createPollingContext=void 0;let i=r(Tl()),a=an(),o=_m(),s=gm(),c=wf();e.createPollingContext=({context:e,invokeAction:t})=>({polling:Object.assign({invokeAction:t},(0,c.createPollingState)(e))}),e.cleanParams=(e,t)=>(0,i.default)([...Object.keys(e),...Object.keys(t)]).reduce((n,r)=>{let i=e[r],a=t[r];return Object.assign(Object.assign({},n),{[r]:a?a(i):i})},{}),e.createPerform=(n,{inputCleaners:r,errorHandler:i})=>(...a)=>t(void 0,void 0,void 0,function*(){try{if(a.length===1){let[t]=a;return yield n((0,e.cleanParams)(t,r))}if(a.length===2){let[t,i]=a,s=Object.assign(Object.assign({},t),{debug:(0,o.createDebugContext)(t),invokeFlow:(0,o.createInvokeFlow)(t)}),c=yield n(s,(0,e.cleanParams)(i,r));return(0,o.logDebugResults)(s),c}let[t,i,s]=a,c=Object.assign(Object.assign({},t),{debug:(0,o.createDebugContext)(t),invokeFlow:(0,o.createInvokeFlow)(t)}),l=yield n(c,i,(0,e.cleanParams)(s,r));return(0,o.logDebugResults)(c),l}catch(e){throw i?yield i(e):e}});let l=(e,n,{errorHandler:r})=>i=>t(void 0,void 0,void 0,function*(){try{if(!n)throw`Error: Attempted to invoke an action for a trigger with no pollAction defined.`;return yield n.perform(Object.assign(Object.assign({},e),{debug:(0,o.createDebugContext)(e)}),i)}catch(e){throw r?yield r(e):e}});e.createPollingPerform=(r,{inputCleaners:i,errorHandler:a})=>(s,c,u)=>t(void 0,void 0,void 0,function*(){try{let{pollAction:t}=r,d=Object.assign(Object.assign({invokeFlow:(0,o.createInvokeFlow)(s)},(0,e.createPollingContext)({context:s,invokeAction:l(s,t,{errorHandler:a})})),{debug:(0,o.createDebugContext)(s)}),f=yield(0,e.createPerform)(r.perform,{inputCleaners:i,errorHandler:a})(Object.assign({},s,d),c,u),{polledNoChanges:p}=f,m=n(f,[`polledNoChanges`]);return Object.assign(Object.assign({},m),{resultType:p?`polled_no_changes`:`completed`})}catch(e){throw a?yield a(e):e}}),e.createCNIPollingPerform=({onTrigger:r,componentRegistry:i})=>(s,c,l)=>t(void 0,void 0,void 0,function*(){let u=(0,o.createCNIContext)(s,i),d=Object.assign(Object.assign({},u),(0,e.createPollingContext)({context:u,invokeAction:()=>t(void 0,void 0,void 0,function*(){throw Error(`invokeAction is not available for code-native polling triggers. Use getState/setState to manage polling state directly in your onTrigger function.`)})})),f=yield(0,a.invokeWithContext)(d,r,c,l);if(f===void 0)return;let{polledNoChanges:p}=f,m=n(f,[`polledNoChanges`]);return Object.assign(Object.assign({},m),{resultType:p?`polled_no_changes`:`completed`})}),e.createCNIComponentRefPerform=({componentRegistry:e,componentRef:n,onTrigger:r})=>(i,a,c)=>t(void 0,void 0,void 0,function*(){let t=(i._components??{invokeTrigger:()=>{}}).invokeTrigger,l=(0,o.createCNIContext)(i,e);return yield t((0,s.invokeTriggerComponentInput)(n,r,`perform`),l,a,c)}),e.createCNIPerform=({componentRegistry:e,onTrigger:n})=>(r,i,s)=>t(void 0,void 0,void 0,function*(){let t=(0,o.createCNIContext)(r,e);return yield(0,a.invokeWithContext)(t,n,i,s)})})),ym=s(((e,t)=>{t.exports=td()(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()})})),bm=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.fromServerPerformSafety=e.toServerPerformSafety=void 0;let n=t(nd()),r=t(ym());e.toServerPerformSafety=e=>(0,r.default)(e).toUpperCase(),e.fromServerPerformSafety=e=>(0,n.default)(e)})),xm=s((e=>{var t=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.convertComponent=e.convertConnection=e.convertTrigger=e.convertAction=e.convertTemplateInput=e._isValidTemplateValue=e.convertInput=e.validateConcurrentBatchLimit=e.validateBatchSize=e.cleanerFor=void 0;let r=n(In()),i=Sr(),a=mr(),o=n(hl()),s=vm(),c=bm(),l=e=>typeof e==`object`&&!!e&&!Array.isArray(e);e.cleanerFor=t=>{if(t.type===`structuredObject`){let n=Object.entries(t.inputs).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.cleanerFor)(r)}),{}),r=e=>l(e)?(0,s.cleanParams)(e,n):e;return t.collection===`valuelist`?e=>Array.isArray(e)?e.map(r):e:t.collection===`keyvaluelist`?e=>Array.isArray(e)?e.map(e=>l(e)&&`value`in e?Object.assign(Object.assign({},e),{value:r(e.value)}):e):e:r}if(t.type===`dynamicObject`){let n={};for(let[r,i]of Object.entries(t.configurations))n[r]=Object.entries(i.inputs).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.cleanerFor)(r)}),{});return e=>{if(!l(e))return e;let{configuration:t,values:r}=e;if(typeof t!=`string`)return e;let i=n[t];return i?{configuration:t,values:l(r)?(0,s.cleanParams)(r,i):r}:{configuration:t,values:r}}}if(t.type===`number`||t.type===`float`){if(`clean`in t&&t.clean)return t.clean;let e=e=>t.type===`number`?o.default.types.toInt(e):o.default.types.toNumber(e);return t.collection===`valuelist`?t=>Array.isArray(t)?t.map(e):t:t.collection===`keyvaluelist`?t=>Array.isArray(t)?t.map(t=>l(t)&&`value`in t?Object.assign(Object.assign({},t),{value:e(t.value)}):t):t:e}return`clean`in t?t.clean:void 0},e.validateBatchSize=(e,t,n)=>{if(typeof n!=`number`||!Number.isInteger(n)||n<1)throw Error(`${e} has an invalid ${t} batchSize of ${String(n)}. batchSize must be an integer >= 1.`);return n},e.validateConcurrentBatchLimit=(e,t,n)=>{if(n!==void 0){if(typeof n!=`number`||!Number.isInteger(n)||n<1)throw Error(`${e} has an invalid ${t} concurrentBatchLimit of ${String(n)}. concurrentBatchLimit must be an integer >= 1.`);return n}};let u=(t,n,r,i)=>{if(n===`invalid`&&!r)return{};if(!i)throw Error(`Trigger "${t}" supports batching but declares no batchConfig. Add \`batchConfig: { batchSize }\` to set its default batch size.`);let a=(0,e.validateConcurrentBatchLimit)(`Trigger "${t}"`,`batchConfig`,i.concurrentBatchLimit);return Object.assign({triggerResolverDefaultBatchSize:(0,e.validateBatchSize)(`Trigger "${t}"`,`batchConfig`,i.batchSize)},a===void 0?{}:{triggerResolverDefaultConcurrentBatchLimit:a})},d=e=>{if(!e)return{};let{resolveItems:t,getNextPaginationState:n}=e;return Object.assign(Object.assign({},t?{resolveTriggerItems:t,hasResolveTriggerItems:!0}:{}),n?{getNextPaginationState:n,hasGetNextDiscoveryState:!0}:{})},f=e=>{if(!e)return{};let{resolveItems:t,getNextPaginationState:n}=e;return Object.assign(Object.assign({},t?{resolveOnDeployItems:t,hasResolveOnDeployItems:!0}:{}),n?{getOnDeployNextPaginationState:n,hasGetOnDeployNextDiscoveryState:!0}:{})};e.convertInput=(n,a,o)=>{let s=a,{default:c,type:l,label:u,collection:d,inputs:f,configurations:p}=s,m=t(s,[`default`,`type`,`label`,`collection`,`inputs`,`configurations`]),h=d===`keyvaluelist`&&typeof u==`object`?u.key:void 0,g=l===`structuredObject`&&f?Object.entries(f).map(([t,n])=>(0,e.convertInput)(t,n)):l===`dynamicObject`&&p?Object.entries(p).map(([t,n])=>({key:t,type:`structuredObject`,label:typeof n.label==`string`?n.label:n.label.value,comments:n.comments,inputs:Object.entries(n.inputs).map(([t,n])=>(0,e.convertInput)(t,n))})):void 0;return Object.assign(Object.assign(Object.assign({},(0,r.default)(m,[`onPremControlled`,`permissionAndVisibilityType`,`visibleToOrgDeployer`,`writeOnly`])),{key:n,type:l,default:c??(d?[]:i.InputFieldDefaultMap[l]),collection:d,label:typeof u==`string`?u:u.value,keyLabel:h,onPremiseControlled:m.onPremControlled===!0||void 0,inputs:g}),o?{scope:o}:{})};let p=/{{#(\w+)}}/g,m={NO_SLOTS:`No template slots were found. Declare a template slot with this notation: {{#someInputKey}}`,INVALID_KEYS:`Invalid keys were found in the template string. All referenced keys must be non-template inputs declared in the first argument:`};e._isValidTemplateValue=(e,t)=>{let n=[...e.matchAll(p)];if(n.length===0)return{isValid:!1,error:m.NO_SLOTS};let r=[];for(let[e,i]of n)(!t[i]||t[i].type===`template`)&&r.push(i);return r.length>0?{isValid:!1,error:`${m.INVALID_KEYS} ${r}`}:{isValid:!0}},e.convertTemplateInput=(n,i,a)=>{var{templateValue:o,label:s}=i,c=t(i,[`templateValue`,`label`]);let l=(0,e._isValidTemplateValue)(o,a);if(!l.isValid)throw`Template input "${n}": ${l.error}`;return Object.assign(Object.assign({},(0,r.default)(c,[`permissionAndVisibilityType`,`visibleToOrgDeployer`,`writeOnly`])),{key:n,type:`template`,default:o??``,label:typeof s==`string`?s:s.value,shown:!1})};let h=e=>e.type===`actionOutput`?{type:`actionOutput`,schema:JSON.stringify(e.schema)}:{type:`branchingOutput`,branchSchemas:Object.entries(e.branchSchemas).map(([e,t])=>({name:e,schema:JSON.stringify(t)}))};e.convertAction=(n,r,a)=>{var{inputs:o={},perform:l,outputSchema:u,examplePerform:d,performSafety:f}=r,p=t(r,[`inputs`,`perform`,`outputSchema`,`examplePerform`,`performSafety`]);let m=Object.entries(o).map(([t,n])=>(0,e.convertInput)(t,n)),g=Object.entries(o).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.cleanerFor)(r)}),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),{key:n,inputs:m,perform:(0,s.createPerform)(l,{inputCleaners:g,errorHandler:a?.error})}),u?{outputSchema:h(u)}:{}),d?{examplePerform:(0,s.createPerform)(d,{inputCleaners:g,errorHandler:a?.error}),examplePerformSafety:(0,c.toServerPerformSafety)(i.PerformSafety.SAFE)}:{}),f?{performSafety:(0,c.toServerPerformSafety)(f)}:{})},e.convertTrigger=(n,i,o)=>{let{onInstanceDeploy:c,onInstanceDelete:l}=i,p=`webhookLifecycleHandlers`in i?i.webhookLifecycleHandlers:void 0,m=i.inputs??{},h=Object.keys(m),g=Object.entries(m).map(([t,n])=>(0,e.convertInput)(t,n)),_=Object.entries(m).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.cleanerFor)(r)}),{}),v=`scheduleSupport`in i?i.scheduleSupport:`invalid`,y=`batchConfig`in i?i.batchConfig:void 0,b=`triggerResolver`in i?i.triggerResolver:void 0,x=`triggerResolverSupport`in i&&i.triggerResolverSupport!==void 0?i.triggerResolverSupport:b?`valid`:`invalid`;if(x===`required`&&!b)throw Error(`Trigger "${i.display.label}" declares triggerResolverSupport "required" but is missing triggerResolver.`);if(x===`invalid`&&b)throw Error(`Trigger "${i.display.label}" declares triggerResolver but triggerResolverSupport is "invalid".`);let S=`onDeployPerform`in i?i.onDeployPerform:void 0,C=`onDeployResolver`in i?i.onDeployResolver:void 0;if(C?.resolveItems&&!S)throw Error(`Trigger "${i.display.label}" declares onDeployResolver.resolveItems but is missing onDeployPerform.`);let w=C?.inputs??{},T=Object.entries(w);for(let[e]of T)if(h.includes(e))throw Error(`Trigger "${i.display.label}" declares an onDeployResolver input with key "${e}", which duplicates a trigger input. On-deploy and trigger inputs share one key namespace; give the on-deploy input a different key.`);let E=T.map(([t,n])=>(0,e.convertInput)(t,n,`ON_DEPLOY`)),D=T.reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.cleanerFor)(r)}),{}),O=[],k;if((0,a.isPollingTriggerDefinition)(i)){let{pollAction:t}=i,n={};v=`required`,t&&(O=Object.entries(t.inputs).reduce((n,[r,a])=>{if(h.includes(r))throw Error(`The pollingTrigger "${i.display.label}" was defined with an input with the key: ${r}. This key duplicates an input on the associated "${t.display.label}" action. Please assign the trigger input a different key.`);return n.push((0,e.convertInput)(r,a)),n},[]),n=Object.entries(t.inputs).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.cleanerFor)(r)}),{}));let r=Object.assign({},n,_);k=(0,s.createPollingPerform)(i,{inputCleaners:r,errorHandler:o?.error})}else k=(0,s.createPerform)(i.perform,{inputCleaners:_,errorHandler:o?.error});let A=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.default)(i,[`batchConfig`,`triggerResolver`,`onDeployResolver`])),{key:n,inputs:g.concat(O,E),perform:k,scheduleSupport:v,synchronousResponseSupport:`synchronousResponseSupport`in i?i.synchronousResponseSupport:v===`invalid`?`valid`:`invalid`,triggerResolverSupport:x}),u(i.display.label,x,!!C?.resolveItems,y)),d(b)),f(C)),(0,a.isPollingTriggerDefinition)(i)?{isPollingTrigger:!0}:{});c&&(A.onInstanceDeploy=(0,s.createPerform)(c,{inputCleaners:_,errorHandler:o?.error}),A.hasOnInstanceDeploy=!0),S&&(A.onDeployPerform=(0,s.createPerform)(S,{inputCleaners:Object.assign(Object.assign({},_),D),errorHandler:o?.error}),A.hasOnDeployPerform=!0),l&&(A.onInstanceDelete=(0,s.createPerform)(l,{inputCleaners:_,errorHandler:o?.error}),A.hasOnInstanceDelete=!0),p&&(A.webhookCreate=(0,s.createPerform)(p.create,{inputCleaners:_,errorHandler:o?.error}),A.webhookDelete=(0,s.createPerform)(p.delete,{inputCleaners:_,errorHandler:o?.error}),A.hasWebhookCreateFunction=!0,A.hasWebhookDeleteFunction=!0);let{pollAction:j,triggerType:M,webhookLifecycleHandlers:N}=A;return t(A,[`pollAction`,`triggerType`,`webhookLifecycleHandlers`])};let g=(n,r,i)=>{var{inputs:a={},perform:o}=r,c=t(r,[`inputs`,`perform`]);let l=Object.entries(a).map(([t,n])=>(0,e.convertInput)(t,n)),u=Object.entries(a).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.cleanerFor)(r)}),{});return Object.assign(Object.assign({},c),{key:n,inputs:l,perform:(0,s.createPerform)(o,{inputCleaners:u,errorHandler:i?.error})})};e.convertConnection=n=>{var{inputs:r={}}=n,i=t(n,[`inputs`]);let{display:{label:a,icons:o,description:s}}=i,c=t(i,[`display`]),l=Object.entries(r).map(([t,n])=>`templateValue`in n?(0,e.convertTemplateInput)(t,n,r):(0,e.convertInput)(t,n));return Object.assign(Object.assign({},c),{label:a,comments:s,iconPath:o?.oauth2ConnectionIconPath,avatarIconPath:o?.avatarPath,inputs:l})},e.convertComponent=n=>{var{connections:r=[],actions:i={},triggers:a={},dataSources:o={},hooks:s}=n,c=t(n,[`connections`,`actions`,`triggers`,`dataSources`,`hooks`]);let l=Object.entries(i).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.convertAction)(n,r,s)}),{}),u=Object.entries(a).reduce((t,[n,r])=>Object.assign(Object.assign({},t),{[n]:(0,e.convertTrigger)(n,r,s)}),{}),d=Object.entries(o).reduce((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:g(t,n,s)}),{});return Object.assign(Object.assign({},c),{connections:r.map(e.convertConnection),actions:l,triggers:u,dataSources:d})}})),Sm=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.callableComponent=e.retainAuthoring=e.authoringSymbol=void 0;let i=r(gt()),a=r(rn()),o=an(),s=Cn(),c=wn(),l=En(),u=xm(),d=vm(),f=wf(),p=Sr();e.authoringSymbol=Symbol.for(`@prismatic-io/spectral/authoring/v1`),e.retainAuthoring=(t,n)=>(Object.defineProperty(t,e.authoringSymbol,{value:n}),t);let m=e=>typeof e==`object`&&!!e&&!Array.isArray(e),h=(e,t)=>{let n=t===void 0?(0,i.default)((`default`in e?e.default:void 0)??(`collection`in e&&e.collection?[]:p.InputFieldDefaultMap[e.type])):t;`collection`in e&&e.collection===`keyvaluelist`&&m(n)&&(n=Object.entries(n).map(([e,t])=>({key:e,value:t})));let r=t=>{if(e.type===`boolean`&&!e.clean)return typeof t==`boolean`?String(t):t;if(e.type===`structuredObject`)return m(t)?g(e.inputs,t):t;if(e.type===`dynamicObject`&&m(t)){let n=typeof t.configuration==`string`?e.configurations[t.configuration]:void 0;if(n&&m(t.values))return Object.assign(Object.assign({},t),{values:g(n.inputs,t.values)})}return t};if(e.type!==`structuredObject`&&!(e.type===`boolean`&&!e.clean))return r(n);if(`collection`in e&&e.collection){if(!Array.isArray(n))return n;if(e.collection===`valuelist`)return n.map(r);if(e.collection===`keyvaluelist`)return n.map(e=>m(e)&&`value`in e?Object.assign(Object.assign({},e),{value:r(e.value)}):e)}return r(e.type===`structuredObject`&&n===void 0?{}:n)},g=(e,t)=>(0,a.default)(e,(e,n)=>h(e,t[n])),_=e=>{let t=(0,a.default)(e,u.cleanerFor);return(n={})=>(0,d.cleanParams)(g(e,n),t)},v=(e,n)=>t(void 0,void 0,void 0,function*(){try{return yield n()}catch(t){throw e?.error?yield e.error(t):t}}),y=(e,n,r,i)=>{let a=e.inputs??{},c=!!e.batchConfig,u=(0,p.isPollingTriggerDefinition)(e)&&`pollAction`in e?e.pollAction:void 0;for(let e of Object.keys(u?.inputs??{}))if(Object.hasOwn(a,e))throw Error(`Polling action input duplicates trigger input: ${e}`);for(let t of Object.keys(e.onDeployResolver?.inputs??{}))if(Object.hasOwn(a,t))throw Error(`On-deploy input duplicates trigger input: ${t}`);let d=_(Object.assign(Object.assign({},u?.inputs),a)),h=_(a),g=_(Object.assign(Object.assign({},a),e.onDeployResolver?.inputs)),y=(r,i)=>(a,...s)=>t(void 0,[a,...s],void 0,function*(a,s={}){let l=(0,o.requireContext)();return v(n,()=>{let n=i(s),d=(0,p.isPollingTriggerDefinition)(e)?Object.assign(Object.assign({},l),{polling:Object.assign(Object.assign({},(0,f.createPollingState)(l)),{invokeAction:e=>t(void 0,void 0,void 0,function*(){if(!u)throw Error(`This polling trigger has no pollAction.`);return u.perform(d,e)})})}):c?Object.assign(Object.assign({},l),{polling:(0,f.createPollingState)(l)}):l;return(0,o.invokeWithContext)(d,r,a,n)})}),b=e=>(...r)=>t(void 0,[...r],void 0,function*(t={}){let r=(0,o.requireContext)();return v(n,()=>e(r,h(t)))}),x=e=>Object.assign(Object.assign(Object.assign({},e),e.resolveItems?{resolveItems:t=>e.resolveItems?.call(e,(0,o.requireContext)(),t)}:{}),e.getNextPaginationState?{getNextPaginationState:t=>e.getNextPaginationState?.call(e,(0,o.requireContext)(),t)}:{}),S=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({perform:y(e.perform,d)},e.onDeployPerform?{onDeployPerform:y(e.onDeployPerform,g)}:{}),e.onInstanceDeploy?{onInstanceDeploy:b(e.onInstanceDeploy)}:{}),e.onInstanceDelete?{onInstanceDelete:b(e.onInstanceDelete)}:{}),`webhookLifecycleHandlers`in e&&e.webhookLifecycleHandlers?{webhookLifecycleHandlers:{create:b(e.webhookLifecycleHandlers.create),delete:b(e.webhookLifecycleHandlers.delete)}}:{}),e.triggerResolver?{triggerResolver:x(e.triggerResolver)}:{}),e.onDeployResolver?{onDeployResolver:x(e.onDeployResolver)}:{});return(0,l.instrumentTriggerCalls)(S,r,i,e.examplePayload),Object.assign((t={})=>{let n=(e,n)=>Object.fromEntries(Object.keys(n).map(n=>{let r=t[n];if(m(r)&&Object.hasOwn(r,`configVar`)){if(typeof r.configVar!=`string`||!Object.hasOwn(e.configVars,r.configVar))throw Error(`Missing config variable for trigger input "${n}": ${String(r.configVar)}`);return[n,e.configVars[r.configVar]]}return[n,m(r)&&Object.hasOwn(r,`value`)?r.value:r]})),r=e=>t=>(0,o.invokeWithContext)(t,t=>e(n(t,a))),i=(e,t)=>(0,o.invokeWithContext)(e,e=>S.perform(t,n(e,Object.assign(Object.assign({},u?.inputs),a)))),c=S.onDeployPerform,l=e=>Object.assign(Object.assign({},e.resolveItems?{resolveItems:(t,n)=>(0,o.invokeWithContext)(t,()=>e.resolveItems?.call(e,n))}:{}),e.getNextPaginationState?{getNextPaginationState:(t,n)=>(0,o.invokeWithContext)(t,()=>e.getNextPaginationState?.call(e,n))}:{}),d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({definition:e},S.triggerResolver?{triggerResolver:l(S.triggerResolver)}:{}),S.onDeployResolver?{onDeployResolver:l(S.onDeployResolver)}:{}),{bindings:t}),S.onInstanceDeploy?{onInstanceDeploy:r(S.onInstanceDeploy)}:{}),S.onInstanceDelete?{onInstanceDelete:r(S.onInstanceDelete)}:{}),S.webhookLifecycleHandlers?{webhookLifecycleHandlers:{create:r(S.webhookLifecycleHandlers.create),delete:r(S.webhookLifecycleHandlers.delete)}}:{}),c?{onDeployTrigger:(t,r)=>(0,o.invokeWithContext)(t,t=>c(r,n(t,Object.assign(Object.assign({},a),e.onDeployResolver?.inputs))))}:{});return Object.defineProperty(i,s.boundTriggerSymbol,{value:d}),i},e,S)};e.callableComponent=r=>{let i=e.authoringSymbol in r?r[e.authoringSymbol]:r;if([...Object.values(i.actions??{}),...Object.values(i.dataSources??{}),...Object.values(i.triggers??{})].some(e=>Array.isArray(e.inputs)||typeof e.perform!=`function`)||(i.connections??[]).some(e=>Array.isArray(e.inputs))||!(e.authoringSymbol in r)&&`signature`in r)throw Error(`callableComponent requires authoring definitions or a component created with a supporting version of Spectral. Pass the original component; spreading or serializing it loses authoring data.`);let s=(e,n)=>(0,a.default)(e,e=>{let r=_(e.inputs);return(...a)=>t(void 0,[...a],void 0,function*(t={}){let a=n();return v(i.hooks,()=>e.perform(a,r(t)))})}),u=Object.fromEntries((i.connections??[]).map(e=>[e.key,t=>{var{values:r={},template:a,onPremiseConnectionConfig:o}=t,s=n(t,[`values`,`template`,`onPremiseConnectionConfig`]);if(delete s.version,!i.key)throw Error(`Published connections require the component's key.`);let l={component:i.key,key:e.key,values:r,template:a,onPremiseConnectionConfig:o,[c.publishedConnectionSymbol]:{component:{key:i.key,isPublic:i.public??!1,signature:`__PRISMATIC_COMPONENT_SELF__`},inputs:e.inputs}};return Object.assign(Object.assign({},s),{dataType:`connection`,connection:l})}]));if(Object.keys(u).length!==(i.connections??[]).length)throw Error(`Duplicate connection key`);let d=(0,l.instrumentEntityCalls)(s(i.dataSources??{},o.requireDataSourceContext),i,i.dataSources??{},`dataSources`),f=(e,r,a=[])=>{if(a.includes(e))throw Error(`Circular detail data source: ${[...a,e].join(` -> `)}`);let o=i.dataSources?.[e];if(!o)throw Error(`Unknown detail data source: ${e}`);let{values:s}=r,l=n(r,[`values`]),{detailDataSource:u}=o,p=n(o,[`detailDataSource`]);return Object.assign(Object.assign(Object.assign({},p),l),{perform:(n,r)=>t(void 0,void 0,void 0,function*(){let t=Object.fromEntries(Object.entries(s).filter(([e])=>e in o.inputs).map(([e,t])=>{if(m(t)&&`configVar`in t){let r=String(t.configVar);if(!(r in n.configVars))throw Error(`Missing config variable for data source input "${e}": ${r}`);return[e,n.configVars[r]]}return[e,m(t)&&`value`in t?t.value:t]}));return d[e](Object.assign(Object.assign({},t),r))}),[c.bundledDataSourceSymbol]:Object.assign({inputs:o.inputs,values:s},u?{detail:f(u,r,[...a,e])}:{})})},p=(0,a.default)(d,(e,t)=>(0,l.identifyDataSourceAlias)(Object.assign((...n)=>{let[r={}]=n;return typeof r.stableKey==`string`&&m(r.values)?f(t,Object.assign(Object.assign({},r),{stableKey:r.stableKey,values:r.values})):e(...n)},{perform:e}),e));return{actions:(0,l.instrumentEntityCalls)(s(i.actions??{},o.requireContext),i,i.actions??{},`actions`),dataSources:p,triggers:(0,a.default)(i.triggers,(e,t)=>y(e,i.hooks,i,t)),connections:u}}})),Cm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.OAuth2Type=void 0;var r;(function(e){e.ClientCredentials=`client_credentials`,e.AuthorizationCode=`authorization_code`})(r||(e.OAuth2Type=r={})),n(an(),e)})),wm=s(((e,t)=>{var n=ht(),r=1,i=4;function a(e,t){return t=typeof t==`function`?t:void 0,n(e,r|i,t)}t.exports=a})),Tm=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.localMock=e.pendingImplementations=e.requireRunner=void 0;let t=require("node:module");e.requireRunner=e=>(0,t.createRequire)(__filename)(e),e.pendingImplementations=new WeakMap;let n=0;e.localMock=t=>{let r=t,i=[],a=`jest.fn()`,o=()=>({calls:[],contexts:[],instances:[],invocationCallOrder:[],results:[],lastCall:void 0}),s=o(),c=function(...e){s.calls.push(e),s.contexts.push(this),s.instances.push(this),s.invocationCallOrder.push(++n),s.lastCall=e;let t={type:`incomplete`,value:void 0};s.results.push(t);try{return t.value=(i.shift()??r)?.apply(this,e),t.type=`return`,t.value}catch(e){throw t.type=`throw`,t.value=e,e}},l=process.versions.bun?(0,e.requireRunner)(`bun:test`).mock(c):c,u=process.versions.bun?l.mockClear.bind(l):()=>{};return Object.defineProperties(l,Object.getOwnPropertyDescriptors({_isMockFunction:!0,getMockName:()=>a,mockName:e=>(a=e||a,l),getMockImplementation:()=>r,mockClear:()=>(u(),s=o(),l),mockReset:()=>(l.mockClear(),r=void 0,i=[],a=`jest.fn()`,l),mockRestore:()=>{l.mockReset()},mockReturnThis:()=>l.mockImplementation(()=>s.contexts[s.contexts.length-1]),withImplementation:(e,t)=>{let n=r,a=i;r=e,i=[];let o=()=>{r=n,i=a};try{let e=t();if(e&&typeof e.then==`function`)return Promise.resolve(e).then(()=>void 0).finally(o);o()}catch(e){throw o(),e}},mockImplementation:e=>(r=e,l),mockImplementationOnce:e=>(i.push(e),l),mockReturnValue:e=>l.mockImplementation(()=>e),mockReturnValueOnce:e=>l.mockImplementationOnce(()=>e),mockResolvedValue:e=>l.mockImplementation(()=>Promise.resolve(e)),mockResolvedValueOnce:e=>l.mockImplementationOnce(()=>Promise.resolve(e)),mockRejectedValue:e=>l.mockImplementation(()=>Promise.reject(e)),mockRejectedValueOnce:e=>l.mockImplementationOnce(()=>Promise.reject(e))})),Object.defineProperty(l,"mock",{enumerable:!0,get:()=>s,set:e=>{s=e}}),e.pendingImplementations.set(l,()=>i),l}})),Em=c({loadRunner:()=>Dm});function Dm(){return Om(this,void 0,void 0,function*(){let e=process.env.VITEST?`vitest`:process.versions.bun?`bun:test`:void 0;if(!e)throw Error(`CNI callable mocks require an active Vitest, Jest, or Bun test runner.`);let t=yield import(e);return e===`vitest`?t.vi.fn:t.mock})}var Om,km=o((()=>{Om=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}})),Am=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!=="default"&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CallableMocks=void 0;let o=a(wm()),s=Tm(),c=Tn(),l=()=>i(void 0,void 0,void 0,function*(){if(process.env.JEST_WORKER_ID!==void 0&&!process.env.VITEST)return(0,s.requireRunner)(`@jest/globals`).jest.fn;let{loadRunner:e}=yield Promise.resolve().then(()=>r((km(),d(Em))));return e()}),u=(e,t)=>{if(t)return{proxy:t(e),initialize:e=>{}};let n=(0,s.localMock)(e),r=!1,i=new Proxy((...e)=>n(...e),{apply:(e,t,r)=>n.apply(t,r),has:(e,t)=>t in n,get:(e,t)=>{let r=n[t];return typeof r!=`function`||typeof t!=`string`||!t.startsWith(`mock`)?r:(...e)=>{let r=n[t](...e);return r===n?i:r}}});return{proxy:i,initialize(e){if(r)return;let t=e(n.getMockImplementation());for(let e of s.pendingImplementations.get(n)?.()??[])t.mockImplementationOnce(e);for(let e of[`calls`,`contexts`,`results`])t.mock[e].push(...n.mock[e]);n=t,r=!0}}};e.CallableMocks=class{constructor(){this.mocks=new Map,this.dispatch=(e,t)=>this.get(e)(...t),process.versions.bun&&!process.env.VITEST&&process.env.JEST_WORKER_ID===void 0&&(this.factory=(0,s.requireRunner)(`bun:test`).mock)}get(e){let t=this.mocks.get(e.owner);t||(t=new Map,this.mocks.set(e.owner,t));let n=t.get(e.method);return n||(n=u(e.examplePayload===void 0?void 0:()=>Promise.resolve((0,o.default)(e.examplePayload,e=>Buffer.isBuffer(e)?Buffer.from(e):void 0)),this.factory),t.set(e.method,n)),n.proxy}mock(e){let t=(0,c.getCallableMockTarget)(e);if(!t)throw Error(`Expected a Spectral callable method. Use a trigger's .perform or a data source's .perform; older component packages may need rebuilding with a newer Spectral.`);return this.get(t)}initialize(){return this.factory?Promise.resolve():(this.initialization??=l().then(e=>{this.factory=e;for(let t of this.mocks.values())for(let n of t.values())n.initialize(e)}),this.initialization)}}})),jm=s((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.FlowTestHarness=e.ComponentTestHarness=e.invokeFlow=e.invokeDataSource=e.invokeTrigger=e.defaultTriggerPayload=e.invoke=e.createMockContextComponents=e.loggerMock=e.connectionValue=e.defaultConnectionValueEnvironmentVariable=e.createConnection=void 0,e.createHarness=g;let r=n(wm()),i=Tm(),a=Am(),o=an(),s=Cn(),c=wf();e.createConnection=({key:e},t,n,r)=>({configVarKey:r??``,key:e,fields:t,token:n}),e.defaultConnectionValueEnvironmentVariable=`PRISMATIC_CONNECTION_VALUE`,e.connectionValue=(t=e.defaultConnectionValueEnvironmentVariable)=>{let n=process.env[t];if(!n)throw Error(`Unable to find connection value.`);return Object.assign(Object.assign({},JSON.parse(n)),{key:``})},e.loggerMock=()=>({metric:(0,i.localMock)(),trace:(0,i.localMock)(),debug:(0,i.localMock)(),info:(0,i.localMock)(),log:(0,i.localMock)(),warn:(0,i.localMock)(),error:(0,i.localMock)(),section:(0,i.localMock)(),sectionEnd:(0,i.localMock)()});function l(e,n,r){return t(this,void 0,void 0,function*(){return Promise.resolve({})})}e.createMockContextComponents=(e,t={actions:{}})=>Object.keys(e).reduce((n,r)=>{let i=Object.keys(e[r].actions).reduce((t,n)=>(t[n]=(()=>{let t=e[r].actions[n].examplePayload??{data:null};return Promise.resolve(t)}),t),{});return n[r]=Object.assign(Object.assign({},i),t.actions[r]??{}),n},{});let u=t=>Object.assign({logger:(0,e.loggerMock)(),instanceState:{},crossFlowState:{},executionState:{},integrationState:{},configVars:{},components:{},stepId:`mockStepId`,executionId:`mockExecutionId`,webhookUrls:{"Flow 1":`https://example.com`},webhookApiKeys:{"Flow 1":[`example-123`,`example-456`]},invokeUrl:`https://example.com`,customer:{id:`customerId`,name:`Customer 1`,externalId:`1234`},instance:{id:`instanceId`,name:`Instance 1`},user:{id:`userId`,email:`user@example.com`,name:`User 1`,externalId:`1234`},integration:{id:`integrationId`,name:`Integration 1`,versionSequenceId:`1234`,externalVersion:`1.0.0`},flow:{id:`flowId`,name:`Flow 1`,stableId:`flowStableId`},startedAt:new Date().toISOString(),invokeFlow:l,executionFrame:{invokedByExecutionJWT:`some-jwt`,invokedByExecutionStartedAt:`00-00-0000`,componentActionKey:`my-component-action-key`,executionId:`abc-123`,executionStartedAt:``,stepName:`some-step`,loopPath:``},debug:{enabled:!1,timeElapsed:{mark:(e,t)=>{},measure:(e,t,n)=>{}},memoryUsage:(e,t,n)=>{},results:{timeElapsed:{marks:{},measurements:{}},memoryUsage:[],allowedMemory:1024}},flowSchemas:{}},t),d=t=>{let n=u(t);return Object.assign(Object.assign({},n),{logger:t?.logger??(0,e.loggerMock)()})},f=t=>Object.assign({logger:(0,e.loggerMock)(),configVars:{},customer:{id:`customerId`,name:`Customer 1`,externalId:`1234`},instance:{id:`instanceId`,name:`Instance 1`},user:{id:`userId`,email:`example@email.com`,externalId:`1234`,name:`Example`}},t);e.invoke=(e,n,r)=>t(void 0,[e,n,r],void 0,function*({perform:e},t,n){let r=u(n);return{result:yield e(r,t),loggerMock:r.logger}}),e.defaultTriggerPayload=()=>{let e={foo:`bar`},t=`application/json`;return{headers:{"content-type":t},queryParameters:{},rawBody:{data:e,contentType:t},body:{data:JSON.stringify(e),contentType:t},pathFragment:``,webhookUrls:{"Flow 1":`https://example.com`},webhookApiKeys:{"Flow 1":[`example-123`,`example-456`]},invokeUrl:`https://example.com`,executionId:`executionId`,customer:{id:`customerId`,name:`Customer 1`,externalId:`1234`},instance:{id:`instanceId`,name:`Instance 1`},user:{id:`userId`,email:`user@example.com`,name:`User 1`,externalId:`1234`},integration:{id:`integrationId`,name:`Integration 1`,versionSequenceId:`1234`,externalVersion:`1.0.0`},flow:{id:`flowId`,name:`Flow 1`,stableId:`flowStableId`},startedAt:new Date().toISOString(),globalDebug:!1}},e.invokeTrigger=(n,r,i,a)=>t(void 0,[n,r,i,a],void 0,function*({perform:t},n,r,i){let a=u(n);return{result:yield t(a,Object.assign(Object.assign({},(0,e.defaultTriggerPayload)()),r),i||{}),loggerMock:a.logger}}),e.invokeDataSource=(e,n,r)=>t(void 0,[e,n,r],void 0,function*({perform:e},t,n){return yield e(f(n),t)});let p=e=>Object.entries(e??{}).reduce((e,[t,n])=>typeof n==`object`&&`fields`in n?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},n),{configVarKey:``})}):Object.assign(Object.assign({},e),{[t]:n}),{}),m=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Object.fromEntries(Object.entries(t??{}).flatMap(([t,n])=>n?[[t,Object.assign(Object.assign({},n),{configVarKey:`${e}.${t}`})]]:[]))]));e.invokeFlow=(n,...r)=>t(void 0,[n,...r],void 0,function*(t,n={}){let{configVars:r,configuration:i,userConfiguration:a,connections:s,context:c,payload:l}=n,u=p(r),f=d(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i===void 0?{}:{configuration:i}),a===void 0?{}:{userConfiguration:a}),s?{connections:m(s)}:{}),c),{configVars:u})),h=Object.assign(Object.assign({},(0,e.defaultTriggerPayload)()),l),g={onTrigger:{results:h}};return`onTrigger`in t&&typeof t.onTrigger==`function`&&(g.onTrigger={results:(yield(0,o.invokeWithContext)(f,t.onTrigger.bind(t),h,g))?.payload}),{result:yield(0,o.invokeWithContext)(f,t.onExecution.bind(t),g),loggerMock:f.logger}});var h=class{constructor(e){this.component=e}buildParams(e,t){let n=e.reduce((e,{key:t,default:n})=>Object.assign(Object.assign({},e),{[t]:`${n??``}`}),{});return Object.assign(Object.assign({},n),t)}connectionValue({key:e}){let{PRISMATIC_CONNECTION_VALUE:t}=process.env;if(!t)throw Error(`Unable to find connection value.`);return Object.assign(Object.assign({},JSON.parse(t)),{key:e})}trigger(n,r,i,a){return t(this,void 0,void 0,function*(){let t=this.component.triggers[n];return t.perform(u(a),Object.assign(Object.assign({},(0,e.defaultTriggerPayload)()),r),this.buildParams(t.inputs,i))})}triggerOnInstanceDeploy(e,n,r){return t(this,void 0,void 0,function*(){let t=this.component.triggers[e];if(!t.onInstanceDeploy)throw Error(`Trigger does not support onInstanceDeploy`);return t.onInstanceDeploy(u(r),this.buildParams(t.inputs,n))})}triggerOnInstanceDelete(e,n,r){return t(this,void 0,void 0,function*(){let t=this.component.triggers[e];if(!t.onInstanceDelete)throw Error(`Trigger does not support onInstanceDelete`);return t.onInstanceDelete(u(r),this.buildParams(t.inputs,n))})}action(e,n,r){return t(this,void 0,void 0,function*(){let t=this.component.actions[e];return t.perform(u(r),this.buildParams(t.inputs,n))})}dataSource(e,n,r){return t(this,void 0,void 0,function*(){let t=this.component.dataSources[e];return t.perform(f(r),this.buildParams(t.inputs,n))})}};e.ComponentTestHarness=h;function g(e){return`onExecution`in e&&typeof e.onExecution==`function`?new y(e):new h(e)}let _=e=>{let{configVars:t,configuration:n,userConfiguration:r,connections:i,context:a}=e;return d(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n===void 0?{}:{configuration:n}),r===void 0?{}:{userConfiguration:r}),i?{connections:m(i)}:{}),a),{configVars:p(t)}))},v=e=>(0,r.default)(e,e=>Buffer.isBuffer(e)?Buffer.from(e):void 0);var y=class{constructor(e){this.flow=e,this.mocks=new a.CallableMocks,this.instanceState={}}mock(e){return this.mocks.mock(e)}scoped(e){return t(this,void 0,void 0,function*(){return yield this.mocks.initialize(),yield(0,o.runWithCallableMocks)(this.mocks.dispatch,e)})}run(e={}){return this.execute(e,!1)}initialSync(e={}){return this.execute(e,!0)}execute(n,r){return this.scoped(()=>t(this,void 0,void 0,function*(){let i=(0,s.normalizeBoundTrigger)(this.flow),a=(0,s.getBoundTrigger)(i.onTrigger),l=i.batchConfig,u=(e,t)=>{if(!Number.isSafeInteger(e)||e<1)throw Error(`${t} must be a positive safe integer.`);return e},d=u(n.maxPages??100,`maxPages`),f=u(n.concurrency??1,`concurrency`);l&&(u(l.batchSize,`batchSize`),l.concurrentBatchLimit!==void 0&&(f=Math.min(f,u(l.concurrentBatchLimit,`concurrentBatchLimit`))));let p=Object.assign(Object.assign({},n),{context:Object.assign(Object.assign({instanceState:this.instanceState},n.context),{batch:l?{enabled:!0,batchSize:l.batchSize}:{enabled:!1}})}),m=_(p),h=Object.assign(Object.assign({},m),{polling:(0,c.createPollingState)(m)}),g=Object.assign(Object.assign({},(0,e.defaultTriggerPayload)()),v(n.payload)),y=[],b=0,x=()=>({loggerMock:m.logger,pages:b,results:y}),S=r?`onDeployResolver`:`triggerResolver`,C=a?a[S]:i[S],w=`trigger`in i?i.trigger:void 0,T=r?w?.onDeploy??i.onDeployTrigger:w?.onTrigger??i.onTrigger;if(r&&typeof T!=`function`)throw Error(`This flow has no initial-sync trigger.`);if(T!==void 0&&typeof T!=`function`)throw Error(`The flow harness requires a local trigger, not a platform trigger reference.`);if(l&&typeof T!=`function`)throw Error(`Batch discovery requires a trigger.`);if(l&&a&&!C)throw Error(`Bound callable ${S} is unavailable. Rebuild the component with this SDK; original component callbacks will not be executed.`);let E=e=>t(this,void 0,void 0,function*(){let t=_(Object.assign(Object.assign({},p),{context:Object.assign(Object.assign({},p.context),{logger:m.logger,executionState:{}})}));return yield(0,o.invokeWithContext)(t,i.onExecution.bind(i),{onTrigger:{results:e}})});for(;;){if(b>=d)throw Error(`Batch discovery exceeded maxPages (${d}). Check pagination mocks or increase maxPages.`);b++;let e=typeof T==`function`?yield(0,o.invokeWithContext)(h,T.bind(i),g,{}):{payload:g};if(b===1&&e?.polledNoChanges===!0)return Object.assign(Object.assign({},x()),{status:`skipped`,reason:`polledNoChanges`,result:void 0});if(!l){let t=yield(0,o.invokeWithContext)(m,i.onExecution.bind(i),{onTrigger:{results:e?.payload}});return y.push(t),Object.assign(Object.assign({},x()),{status:`completed`,result:t})}if(!e||!w&&!e.payload)throw Error(`Batch ${r?`onDeployPerform`:`perform`} returned no payload. Configure its callable mock.`);let n=w?e.items:C?.resolveItems?yield(0,o.invokeWithContext)(h,C.resolveItems,e):void 0;if(!Array.isArray(n))throw Error(`Batch ${S}.resolveItems must return an array. Configure its callable mock when using a component trigger.`);let a=w?e.paginationState??null:C?.getNextPaginationState?yield(0,o.invokeWithContext)(h,C.getNextPaginationState,e):null;if(a!==null&&(typeof a!=`object`||Array.isArray(a)))throw Error(`Batch ${S}.getNextPaginationState must return an object or null. Configure its callable mock.`);let s=w?g:e.payload,c=[];for(let e=0;e<n.length;e+=l.batchSize)c.push(v(Object.assign(Object.assign({},s),{body:Object.assign(Object.assign({},s.body),{data:l.batchSize===1?n[e]:n.slice(e,e+l.batchSize)})})));let u=0,p=!1,_=Array(c.length),D=Array.from({length:Math.min(f,c.length)},()=>t(this,void 0,void 0,function*(){for(;!p&&u<c.length;){let e=u++;try{_[e]=yield E(c[e])}catch(e){throw p=!0,e}}})),O=(yield Promise.allSettled(D)).find(e=>e.status===`rejected`);if(O?.status===`rejected`)throw O.reason;if(y.push(..._),a===null)return Object.assign(Object.assign({},x()),{status:`batched`,result:void 0});g=Object.assign(Object.assign({},g),{paginationState:v(a)})}}))}invoke(e,t={}){let n=_(Object.assign(Object.assign({},t),{context:Object.assign({instanceState:this.instanceState},t.context)}));return this.scoped(()=>(0,o.invokeWithContext)(n,e))}configuration(e,t){let n=f(t);return this.scoped(()=>(0,o.runWithDataSourceContext)(n,()=>e(n)))}onInstanceDeploy(e={}){return this.invoke(e=>{var t;return(t=(0,s.normalizeBoundTrigger)(this.flow)).onInstanceDeploy?.call(t,e,{})},e)}onInstanceDelete(e={}){return this.invoke(e=>{var t;return(t=(0,s.normalizeBoundTrigger)(this.flow)).onInstanceDelete?.call(t,e,{})},e)}};e.FlowTestHarness=y,e.default={loggerMock:e.loggerMock,invoke:e.invoke,invokeTrigger:e.invokeTrigger,createHarness:g,invokeDataSource:e.invokeDataSource}})),Mm=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;o<a.length;o++)a[o]!=="default"&&t(i,r,a[o]);return n(i,r),i}})(),i=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},a=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.util=e.testing=e.requireIntegrationContext=e.requireContext=e.findUserDefinedComponentKey=e.conditionalLogic=e.componentManifests=e.oauth2Connection=e.onPremConnection=e.connection=e.dynamicObjectInput=e.structuredObjectInput=e.input=e.dataSource=e.pollingTrigger=e.batchTrigger=e.trigger=e.outputSchema=e.action=e.component=e.componentManifest=e.userActivatedConnection=e.organizationActivatedConnection=e.customerActivatedConnection=e.connectionConfigVar=e.dataSourceConfigVar=e.configVar=e.userLevelConfigPage=e.serverFunction=e.configuration=e.configPage=e.batchFlowTrigger=e.flow=e.integration=e.callableComponent=void 0;let s=Sm(),c=Cm();var l=Sm();Object.defineProperty(e,"callableComponent",{enumerable:!0,get:function(){return l.callableComponent}});let u=Tf(),d=xm(),f=gm();e.integration=e=>{let t=(0,c.runWithIntegrationContext)(e,()=>(0,f.convertIntegration)(e));return process.env?.DEBUG===`true`&&console.info(t.codeNativeIntegrationYAML),t},e.flow=e=>e,e.batchFlowTrigger=e=>e,e.configPage=e=>e,e.configuration=e=>e,e.serverFunction=e=>e,e.userLevelConfigPage=e=>e,e.configVar=e=>e,e.dataSourceConfigVar=e=>e,e.connectionConfigVar=e=>e,e.customerActivatedConnection=e=>Object.assign(Object.assign({},e),{dataType:`connection`}),e.organizationActivatedConnection=e=>Object.assign(Object.assign({},e),{dataType:`connection`}),e.userActivatedConnection=e=>Object.assign(Object.assign({},e),{dataType:`userScopedConnection`}),e.componentManifest=e=>e,e.component=e=>(0,s.retainAuthoring)((0,d.convertComponent)(e),e),e.action=e=>e,e.outputSchema=e=>e,e.trigger=e=>e,e.batchTrigger=e=>{let{perform:t,onDeploy:n}=e,r=a(e,[`perform`,`onDeploy`]);return Object.assign(Object.assign(Object.assign({},r),{perform:(0,u.withPolledResultType)((0,u.wrapBatchedFire)((0,u.withPollingState)(t))),synchronousResponseSupport:`invalid`,triggerResolverSupport:`required`,triggerResolver:u.defaultBatchResolver}),n?{onDeployPerform:(0,u.withPolledResultType)((0,u.wrapBatchedFire)((0,u.withPollingState)(n.perform))),onDeployResolver:Object.assign(Object.assign({},u.defaultBatchResolver),{inputs:n.inputs})}:{})},e.pollingTrigger=e=>Object.assign(Object.assign({},e),{triggerType:`polling`}),e.dataSource=e=>e,e.input=e=>e,e.structuredObjectInput=e=>Object.assign(Object.assign({},e),{type:`structuredObject`}),e.dynamicObjectInput=e=>Object.assign(Object.assign({},e),{type:`dynamicObject`}),e.connection=e=>e,e.onPremConnection=e=>e,e.oauth2Connection=e=>e,e.componentManifests=e=>e,e.conditionalLogic=r(pl()),i(ml(),e);var p=Cm();Object.defineProperty(e,"findUserDefinedComponentKey",{enumerable:!0,get:function(){return p.findUserDefinedComponentKey}}),Object.defineProperty(e,"requireContext",{enumerable:!0,get:function(){return p.requireContext}}),Object.defineProperty(e,"requireIntegrationContext",{enumerable:!0,get:function(){return p.requireIntegrationContext}});var m=jm();Object.defineProperty(e,"testing",{enumerable:!0,get:function(){return o(m).default}}),i(Sr(),e);var h=hl();Object.defineProperty(e,"util",{enumerable:!0,get:function(){return o(h).default}})})),Nm=u(Al()),Pm=Mm();const Fm=(0,Pm.input)({label:`Connection`,type:`connection`,required:!0,comments:`The SFTP connection to use.`}),Im=(0,Pm.input)({label:`Path`,placeholder:`Enter path`,type:`string`,required:!0,comments:`The path of the directory on the SFTP server to list files from.`,example:`/path/to/directory/`,clean:Pm.util.types.toString}),Lm=(0,Pm.input)({label:`Include Subfolders`,comments:`When true, recursively creates any missing directories in the path.`,type:`boolean`,required:!1,default:`true`,clean:Pm.util.types.toBool}),Rm=(0,Pm.input)({label:`Return Buffer`,type:`boolean`,required:!0,default:`false`,comments:`When true, treats the file as a binary file with content type 'application/octet-stream', even if it is a text file. This is helpful if you are processing non-UTF-8 text files, as the runner assumes text files are UTF-8.`,clean:Pm.util.types.toBool}),zm=(0,Pm.input)({label:`Path`,placeholder:`Enter path`,type:`string`,required:!0,comments:`The path to the file on the SFTP server.`,example:`/we/love/commas.csv`,clean:Pm.util.types.toString}),Bm=(0,Pm.input)({...zm,placeholder:`Enter path`,comments:`The path on the SFTP server where data will be appended.`,example:`/path/to/remote/file.txt`}),Vm=(0,Pm.input)({label:`Data`,placeholder:`Enter data`,type:`text`,required:!0,comments:`The text or data to write into the file.`,clean:e=>Pm.util.types.isData(e)?Pm.util.types.toData(e).data:Buffer.from(typeof e==`string`?e:JSON.stringify(e))}),Hm=(0,Pm.input)({...Vm,placeholder:`Enter data`,comments:`The text or data to append to the file.`}),Um=(0,Pm.input)({label:`Pattern`,default:`*`,placeholder:`Enter pattern`,type:`string`,required:!1,comments:`The glob-style pattern for filtering files (e.g., *.txt).`,example:`*.txt`,clean:Pm.util.types.toString}),Wm=(0,Pm.input)({label:`Include Subdirectories`,default:`false`,type:`boolean`,required:!1,comments:`When true, recursively monitors files in all subdirectories. When false, only monitors files in the specified directory.`,clean:Pm.util.types.toBool}),Gm=(0,Pm.input)({label:`Include Directories`,default:`false`,type:`boolean`,required:!1,comments:`When true, lists directories in addition to files. When false, only lists files.`,clean:Pm.util.types.toBool});var Km=s(((e,t)=>{t.exports={newInvalidAsn1Error:function(e){var t=Error();return t.name=`InvalidAsn1Error`,t.message=e||``,t}}})),qm=s(((e,t)=>{t.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}})),Jm=s(((e,t)=>{var n=require("buffer"),r=n.Buffer,i={},a;for(a in n)n.hasOwnProperty(a)&&(a===`SlowBuffer`||a===`Buffer`||(i[a]=n[a]));var o=i.Buffer={};for(a in r)r.hasOwnProperty(a)&&(a===`allocUnsafe`||a===`allocUnsafeSlow`||(o[a]=r[a]));if(i.Buffer.prototype=r.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type `+typeof e);if(e&&e.length===void 0)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);return r(e,t,n)}),o.alloc||=function(e,t,n){if(typeof e!=`number`)throw TypeError(`The "size" argument must be of type number. Received type `+typeof e);if(e<0||e>=2*(1<<30))throw RangeError(`The value "`+e+`" is invalid for option "size"`);var i=r(e);return!t||t.length===0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},!i.kStringMaxLength)try{i.kStringMaxLength=process.binding(`buffer`).kStringMaxLength}catch{}i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),t.exports=i})),Ym=s(((e,t)=>{var n=require("assert"),r=Jm().Buffer,i=qm(),a=Km().newInvalidAsn1Error;function o(e){if(!e||!r.isBuffer(e))throw TypeError(`data must be a node Buffer`);this._buf=e,this._size=e.length,this._len=0,this._offset=0}Object.defineProperty(o.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(o.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(o.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),o.prototype.readByte=function(e){if(this._size-this._offset<1)return null;var t=this._buf[this._offset]&255;return e||(this._offset+=1),t},o.prototype.peek=function(){return this.readByte(!0)},o.prototype.readLength=function(e){if(e===void 0&&(e=this._offset),e>=this._size)return null;var t=this._buf[e++]&255;if(t===null)return null;if((t&128)==128){if(t&=127,t===0)throw a(`Indefinite length not supported`);if(t>4)throw a(`encoding too long`);if(this._size-e<t)return null;this._len=0;for(var n=0;n<t;n++)this._len=(this._len<<8)+(this._buf[e++]&255)}else this._len=t;return e},o.prototype.readSequence=function(e){var t=this.peek();if(t===null)return null;if(e!==void 0&&e!==t)throw a(`Expected 0x`+e.toString(16)+`: got 0x`+t.toString(16));var n=this.readLength(this._offset+1);return n===null?null:(this._offset=n,t)},o.prototype.readInt=function(){return this._readTag(i.Integer)},o.prototype.readBoolean=function(){return this._readTag(i.Boolean)!==0},o.prototype.readEnumeration=function(){return this._readTag(i.Enumeration)},o.prototype.readString=function(e,t){e||=i.OctetString;var n=this.peek();if(n===null)return null;if(n!==e)throw a(`Expected 0x`+e.toString(16)+`: got 0x`+n.toString(16));var o=this.readLength(this._offset+1);if(o===null||this.length>this._size-o)return null;if(this._offset=o,this.length===0)return t?r.alloc(0):``;var s=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,t?s:s.toString(`utf8`)},o.prototype.readOID=function(e){e||=i.OID;var t=this.readString(e,!0);if(t===null)return null;for(var n=[],r=0,a=0;a<t.length;a++){var o=t[a]&255;r<<=7,r+=o&127,o&128||(n.push(r),r=0)}return r=n.shift(),n.unshift(r%40),n.unshift(r/40>>0),n.join(`.`)},o.prototype._readTag=function(e){n.ok(e!==void 0);var t=this.peek();if(t===null)return null;if(t!==e)throw a(`Expected 0x`+e.toString(16)+`: got 0x`+t.toString(16));var r=this.readLength(this._offset+1);if(r===null)return null;if(this.length>4)throw a(`Integer too long: `+this.length);if(this.length>this._size-r)return null;this._offset=r;for(var i=this._buf[this._offset],o=0,s=0;s<this.length;s++)o<<=8,o|=this._buf[this._offset++]&255;return(i&128)==128&&s!==4&&(o-=1<<s*8),o>>0},t.exports=o})),Xm=s(((e,t)=>{var n=require("assert"),r=Jm().Buffer,i=qm(),a=Km().newInvalidAsn1Error,o={size:1024,growthFactor:8};function s(e,t){return n.ok(e),n.equal(typeof e,`object`),n.ok(t),n.equal(typeof t,`object`),Object.getOwnPropertyNames(e).forEach(function(n){if(!t[n]){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r)}}),t}function c(e){e=s(o,e||{}),this._buf=r.alloc(e.size||1024),this._size=this._buf.length,this._offset=0,this._options=e,this._seq=[]}Object.defineProperty(c.prototype,"buffer",{get:function(){if(this._seq.length)throw a(this._seq.length+` unended sequence(s)`);return this._buf.slice(0,this._offset)}}),c.prototype.writeByte=function(e){if(typeof e!=`number`)throw TypeError(`argument must be a Number`);this._ensure(1),this._buf[this._offset++]=e},c.prototype.writeInt=function(e,t){if(typeof e!=`number`)throw TypeError(`argument must be a Number`);typeof t!=`number`&&(t=i.Integer);for(var n=4;(!(e&4286578688)||(e&4286578688)==-8388608)&&n>1;)n--,e<<=8;if(n>4)throw a(`BER ints cannot be > 0xffffffff`);for(this._ensure(2+n),this._buf[this._offset++]=t,this._buf[this._offset++]=n;n-->0;)this._buf[this._offset++]=(e&4278190080)>>>24,e<<=8},c.prototype.writeNull=function(){this.writeByte(i.Null),this.writeByte(0)},c.prototype.writeEnumeration=function(e,t){if(typeof e!=`number`)throw TypeError(`argument must be a Number`);return typeof t!=`number`&&(t=i.Enumeration),this.writeInt(e,t)},c.prototype.writeBoolean=function(e,t){if(typeof e!=`boolean`)throw TypeError(`argument must be a Boolean`);typeof t!=`number`&&(t=i.Boolean),this._ensure(3),this._buf[this._offset++]=t,this._buf[this._offset++]=1,this._buf[this._offset++]=e?255:0},c.prototype.writeString=function(e,t){if(typeof e!=`string`)throw TypeError(`argument must be a string (was: `+typeof e+`)`);typeof t!=`number`&&(t=i.OctetString);var n=r.byteLength(e);this.writeByte(t),this.writeLength(n),n&&(this._ensure(n),this._buf.write(e,this._offset),this._offset+=n)},c.prototype.writeBuffer=function(e,t){if(typeof t!=`number`)throw TypeError(`tag must be a number`);if(!r.isBuffer(e))throw TypeError(`argument must be a buffer`);this.writeByte(t),this.writeLength(e.length),this._ensure(e.length),e.copy(this._buf,this._offset,0,e.length),this._offset+=e.length},c.prototype.writeStringArray=function(e){if(!e instanceof Array)throw TypeError(`argument must be an Array[String]`);var t=this;e.forEach(function(e){t.writeString(e)})},c.prototype.writeOID=function(e,t){if(typeof e!=`string`)throw TypeError(`argument must be a string`);if(typeof t!=`number`&&(t=i.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw Error(`argument is not a valid OID string`);function n(e,t){t<128?e.push(t):t<16384?(e.push(t>>>7|128),e.push(t&127)):t<2097152?(e.push(t>>>14|128),e.push((t>>>7|128)&255),e.push(t&127)):t<268435456?(e.push(t>>>21|128),e.push((t>>>14|128)&255),e.push((t>>>7|128)&255),e.push(t&127)):(e.push((t>>>28|128)&255),e.push((t>>>21|128)&255),e.push((t>>>14|128)&255),e.push((t>>>7|128)&255),e.push(t&127))}var r=e.split(`.`),a=[];a.push(parseInt(r[0],10)*40+parseInt(r[1],10)),r.slice(2).forEach(function(e){n(a,parseInt(e,10))});var o=this;this._ensure(2+a.length),this.writeByte(t),this.writeLength(a.length),a.forEach(function(e){o.writeByte(e)})},c.prototype.writeLength=function(e){if(typeof e!=`number`)throw TypeError(`argument must be a Number`);if(this._ensure(4),e<=127)this._buf[this._offset++]=e;else if(e<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=e;else if(e<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=e>>8,this._buf[this._offset++]=e;else if(e<=16777215)this._buf[this._offset++]=131,this._buf[this._offset++]=e>>16,this._buf[this._offset++]=e>>8,this._buf[this._offset++]=e;else throw a(`Length too long (> 4 bytes)`)},c.prototype.startSequence=function(e){typeof e!=`number`&&(e=i.Sequence|i.Constructor),this.writeByte(e),this._seq.push(this._offset),this._ensure(3),this._offset+=3},c.prototype.endSequence=function(){var e=this._seq.pop(),t=e+3,n=this._offset-t;if(n<=127)this._shift(t,n,-2),this._buf[e]=n;else if(n<=255)this._shift(t,n,-1),this._buf[e]=129,this._buf[e+1]=n;else if(n<=65535)this._buf[e]=130,this._buf[e+1]=n>>8,this._buf[e+2]=n;else if(n<=16777215)this._shift(t,n,1),this._buf[e]=131,this._buf[e+1]=n>>16,this._buf[e+2]=n>>8,this._buf[e+3]=n;else throw a(`Sequence too long`)},c.prototype._shift=function(e,t,r){n.ok(e!==void 0),n.ok(t!==void 0),n.ok(r),this._buf.copy(this._buf,e+r,e,e+t),this._offset+=r},c.prototype._ensure=function(e){if(n.ok(e),this._size-this._offset<e){var t=this._size*this._options.growthFactor;t-this._offset<e&&(t+=e);var i=r.alloc(t);this._buf.copy(i,0,0,this._offset),this._buf=i,this._size=t}},t.exports=c})),Zm=s(((e,t)=>{var n=Km(),r=qm();for(var i in t.exports={Reader:Ym(),Writer:Xm()},r)r.hasOwnProperty(i)&&(t.exports[i]=r[i]);for(var a in n)n.hasOwnProperty(a)&&(t.exports[a]=n[a])})),Qm=s(((e,t)=>{var n=Zm();t.exports={Ber:n,BerReader:n.Reader,BerWriter:n.Writer}})),$m=s(((e,t)=>{(function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw Error(`no PRNG`)},r=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=t(),o=t([1]),s=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=r&255}function m(e,t,n,r,i){var a,o=0;for(a=0;a<i;a++)o|=e[t+a]^n[r+a];return(1&o-1>>>8)-1}function h(e,t,n,r){return m(e,t,n,r,16)}function g(e,t,n,r){return m(e,t,n,r,32)}function _(e,t,n,r){for(var i=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,s=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,c=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,l=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,u=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,p=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,m=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,h=n[16]&255|(n[17]&255)<<8|(n[18]&255)<<16|(n[19]&255)<<24,g=n[20]&255|(n[21]&255)<<8|(n[22]&255)<<16|(n[23]&255)<<24,_=n[24]&255|(n[25]&255)<<8|(n[26]&255)<<16|(n[27]&255)<<24,v=n[28]&255|(n[29]&255)<<8|(n[30]&255)<<16|(n[31]&255)<<24,y=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,b=i,x=a,S=o,C=s,w=c,T=l,E=u,D=d,O=f,k=p,A=m,j=h,M=g,N=_,P=v,F=y,I,L=0;L<20;L+=2)I=b+M|0,w^=I<<7|I>>>25,I=w+b|0,O^=I<<9|I>>>23,I=O+w|0,M^=I<<13|I>>>19,I=M+O|0,b^=I<<18|I>>>14,I=T+x|0,k^=I<<7|I>>>25,I=k+T|0,N^=I<<9|I>>>23,I=N+k|0,x^=I<<13|I>>>19,I=x+N|0,T^=I<<18|I>>>14,I=A+E|0,P^=I<<7|I>>>25,I=P+A|0,S^=I<<9|I>>>23,I=S+P|0,E^=I<<13|I>>>19,I=E+S|0,A^=I<<18|I>>>14,I=F+j|0,C^=I<<7|I>>>25,I=C+F|0,D^=I<<9|I>>>23,I=D+C|0,j^=I<<13|I>>>19,I=j+D|0,F^=I<<18|I>>>14,I=b+C|0,x^=I<<7|I>>>25,I=x+b|0,S^=I<<9|I>>>23,I=S+x|0,C^=I<<13|I>>>19,I=C+S|0,b^=I<<18|I>>>14,I=T+w|0,E^=I<<7|I>>>25,I=E+T|0,D^=I<<9|I>>>23,I=D+E|0,w^=I<<13|I>>>19,I=w+D|0,T^=I<<18|I>>>14,I=A+k|0,j^=I<<7|I>>>25,I=j+A|0,O^=I<<9|I>>>23,I=O+j|0,k^=I<<13|I>>>19,I=k+O|0,A^=I<<18|I>>>14,I=F+P|0,M^=I<<7|I>>>25,I=M+F|0,N^=I<<9|I>>>23,I=N+M|0,P^=I<<13|I>>>19,I=P+N|0,F^=I<<18|I>>>14;b=b+i|0,x=x+a|0,S=S+o|0,C=C+s|0,w=w+c|0,T=T+l|0,E=E+u|0,D=D+d|0,O=O+f|0,k=k+p|0,A=A+m|0,j=j+h|0,M=M+g|0,N=N+_|0,P=P+v|0,F=F+y|0,e[0]=b>>>0&255,e[1]=b>>>8&255,e[2]=b>>>16&255,e[3]=b>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=C>>>0&255,e[13]=C>>>8&255,e[14]=C>>>16&255,e[15]=C>>>24&255,e[16]=w>>>0&255,e[17]=w>>>8&255,e[18]=w>>>16&255,e[19]=w>>>24&255,e[20]=T>>>0&255,e[21]=T>>>8&255,e[22]=T>>>16&255,e[23]=T>>>24&255,e[24]=E>>>0&255,e[25]=E>>>8&255,e[26]=E>>>16&255,e[27]=E>>>24&255,e[28]=D>>>0&255,e[29]=D>>>8&255,e[30]=D>>>16&255,e[31]=D>>>24&255,e[32]=O>>>0&255,e[33]=O>>>8&255,e[34]=O>>>16&255,e[35]=O>>>24&255,e[36]=k>>>0&255,e[37]=k>>>8&255,e[38]=k>>>16&255,e[39]=k>>>24&255,e[40]=A>>>0&255,e[41]=A>>>8&255,e[42]=A>>>16&255,e[43]=A>>>24&255,e[44]=j>>>0&255,e[45]=j>>>8&255,e[46]=j>>>16&255,e[47]=j>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=P>>>0&255,e[57]=P>>>8&255,e[58]=P>>>16&255,e[59]=P>>>24&255,e[60]=F>>>0&255,e[61]=F>>>8&255,e[62]=F>>>16&255,e[63]=F>>>24&255}function v(e,t,n,r){for(var i=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,s=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,c=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,l=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,u=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,p=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,m=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,h=n[16]&255|(n[17]&255)<<8|(n[18]&255)<<16|(n[19]&255)<<24,g=n[20]&255|(n[21]&255)<<8|(n[22]&255)<<16|(n[23]&255)<<24,_=n[24]&255|(n[25]&255)<<8|(n[26]&255)<<16|(n[27]&255)<<24,v=n[28]&255|(n[29]&255)<<8|(n[30]&255)<<16|(n[31]&255)<<24,y=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,b=i,x=a,S=o,C=s,w=c,T=l,E=u,D=d,O=f,k=p,A=m,j=h,M=g,N=_,P=v,F=y,I,L=0;L<20;L+=2)I=b+M|0,w^=I<<7|I>>>25,I=w+b|0,O^=I<<9|I>>>23,I=O+w|0,M^=I<<13|I>>>19,I=M+O|0,b^=I<<18|I>>>14,I=T+x|0,k^=I<<7|I>>>25,I=k+T|0,N^=I<<9|I>>>23,I=N+k|0,x^=I<<13|I>>>19,I=x+N|0,T^=I<<18|I>>>14,I=A+E|0,P^=I<<7|I>>>25,I=P+A|0,S^=I<<9|I>>>23,I=S+P|0,E^=I<<13|I>>>19,I=E+S|0,A^=I<<18|I>>>14,I=F+j|0,C^=I<<7|I>>>25,I=C+F|0,D^=I<<9|I>>>23,I=D+C|0,j^=I<<13|I>>>19,I=j+D|0,F^=I<<18|I>>>14,I=b+C|0,x^=I<<7|I>>>25,I=x+b|0,S^=I<<9|I>>>23,I=S+x|0,C^=I<<13|I>>>19,I=C+S|0,b^=I<<18|I>>>14,I=T+w|0,E^=I<<7|I>>>25,I=E+T|0,D^=I<<9|I>>>23,I=D+E|0,w^=I<<13|I>>>19,I=w+D|0,T^=I<<18|I>>>14,I=A+k|0,j^=I<<7|I>>>25,I=j+A|0,O^=I<<9|I>>>23,I=O+j|0,k^=I<<13|I>>>19,I=k+O|0,A^=I<<18|I>>>14,I=F+P|0,M^=I<<7|I>>>25,I=M+F|0,N^=I<<9|I>>>23,I=N+M|0,P^=I<<13|I>>>19,I=P+N|0,F^=I<<18|I>>>14;e[0]=b>>>0&255,e[1]=b>>>8&255,e[2]=b>>>16&255,e[3]=b>>>24&255,e[4]=T>>>0&255,e[5]=T>>>8&255,e[6]=T>>>16&255,e[7]=T>>>24&255,e[8]=A>>>0&255,e[9]=A>>>8&255,e[10]=A>>>16&255,e[11]=A>>>24&255,e[12]=F>>>0&255,e[13]=F>>>8&255,e[14]=F>>>16&255,e[15]=F>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=D>>>0&255,e[21]=D>>>8&255,e[22]=D>>>16&255,e[23]=D>>>24&255,e[24]=O>>>0&255,e[25]=O>>>8&255,e[26]=O>>>16&255,e[27]=O>>>24&255,e[28]=k>>>0&255,e[29]=k>>>8&255,e[30]=k>>>16&255,e[31]=k>>>24&255}function y(e,t,n,r){_(e,t,n,r)}function b(e,t,n,r){v(e,t,n,r)}var x=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function S(e,t,n,r,i,a,o){var s=new Uint8Array(16),c=new Uint8Array(64),l,u;for(u=0;u<16;u++)s[u]=0;for(u=0;u<8;u++)s[u]=a[u];for(;i>=64;){for(y(c,s,o,x),u=0;u<64;u++)e[t+u]=n[r+u]^c[u];for(l=1,u=8;u<16;u++)l=l+(s[u]&255)|0,s[u]=l&255,l>>>=8;i-=64,t+=64,r+=64}if(i>0)for(y(c,s,o,x),u=0;u<i;u++)e[t+u]=n[r+u]^c[u];return 0}function C(e,t,n,r,i){var a=new Uint8Array(16),o=new Uint8Array(64),s,c;for(c=0;c<16;c++)a[c]=0;for(c=0;c<8;c++)a[c]=r[c];for(;n>=64;){for(y(o,a,i,x),c=0;c<64;c++)e[t+c]=o[c];for(s=1,c=8;c<16;c++)s=s+(a[c]&255)|0,a[c]=s&255,s>>>=8;n-=64,t+=64}if(n>0)for(y(o,a,i,x),c=0;c<n;c++)e[t+c]=o[c];return 0}function w(e,t,n,r,i){var a=new Uint8Array(32);b(a,r,i,x);for(var o=new Uint8Array(8),s=0;s<8;s++)o[s]=r[s+16];return C(e,t,n,o,a)}function T(e,t,n,r,i,a,o){var s=new Uint8Array(32);b(s,a,o,x);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=a[l+16];return S(e,t,n,r,i,c,s)}var E=function(e){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var t=e[0]&255|(e[1]&255)<<8,n,r,i,a,o,s,c;this.r[0]=t&8191,n=e[2]&255|(e[3]&255)<<8,this.r[1]=(t>>>13|n<<3)&8191,r=e[4]&255|(e[5]&255)<<8,this.r[2]=(n>>>10|r<<6)&7939,i=e[6]&255|(e[7]&255)<<8,this.r[3]=(r>>>7|i<<9)&8191,a=e[8]&255|(e[9]&255)<<8,this.r[4]=(i>>>4|a<<12)&255,this.r[5]=a>>>1&8190,o=e[10]&255|(e[11]&255)<<8,this.r[6]=(a>>>14|o<<2)&8191,s=e[12]&255|(e[13]&255)<<8,this.r[7]=(o>>>11|s<<5)&8065,c=e[14]&255|(e[15]&255)<<8,this.r[8]=(s>>>8|c<<8)&8191,this.r[9]=c>>>5&127,this.pad[0]=e[16]&255|(e[17]&255)<<8,this.pad[1]=e[18]&255|(e[19]&255)<<8,this.pad[2]=e[20]&255|(e[21]&255)<<8,this.pad[3]=e[22]&255|(e[23]&255)<<8,this.pad[4]=e[24]&255|(e[25]&255)<<8,this.pad[5]=e[26]&255|(e[27]&255)<<8,this.pad[6]=e[28]&255|(e[29]&255)<<8,this.pad[7]=e[30]&255|(e[31]&255)<<8};E.prototype.blocks=function(e,t,n){for(var r=this.fin?0:2048,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=this.h[0],w=this.h[1],T=this.h[2],E=this.h[3],D=this.h[4],O=this.h[5],k=this.h[6],A=this.h[7],j=this.h[8],M=this.h[9],N=this.r[0],P=this.r[1],F=this.r[2],I=this.r[3],L=this.r[4],R=this.r[5],z=this.r[6],B=this.r[7],V=this.r[8],H=this.r[9];n>=16;)i=e[t+0]&255|(e[t+1]&255)<<8,C+=i&8191,a=e[t+2]&255|(e[t+3]&255)<<8,w+=(i>>>13|a<<3)&8191,o=e[t+4]&255|(e[t+5]&255)<<8,T+=(a>>>10|o<<6)&8191,s=e[t+6]&255|(e[t+7]&255)<<8,E+=(o>>>7|s<<9)&8191,c=e[t+8]&255|(e[t+9]&255)<<8,D+=(s>>>4|c<<12)&8191,O+=c>>>1&8191,l=e[t+10]&255|(e[t+11]&255)<<8,k+=(c>>>14|l<<2)&8191,u=e[t+12]&255|(e[t+13]&255)<<8,A+=(l>>>11|u<<5)&8191,d=e[t+14]&255|(e[t+15]&255)<<8,j+=(u>>>8|d<<8)&8191,M+=d>>>5|r,f=0,p=f,p+=C*N,p+=5*H*w,p+=5*V*T,p+=5*B*E,p+=5*z*D,f=p>>>13,p&=8191,p+=5*R*O,p+=5*L*k,p+=5*I*A,p+=5*F*j,p+=5*P*M,f+=p>>>13,p&=8191,m=f,m+=C*P,m+=w*N,m+=5*H*T,m+=5*V*E,m+=5*B*D,f=m>>>13,m&=8191,m+=5*z*O,m+=5*R*k,m+=5*L*A,m+=5*I*j,m+=5*F*M,f+=m>>>13,m&=8191,h=f,h+=C*F,h+=w*P,h+=T*N,h+=5*H*E,h+=5*V*D,f=h>>>13,h&=8191,h+=5*B*O,h+=5*z*k,h+=5*R*A,h+=5*L*j,h+=5*I*M,f+=h>>>13,h&=8191,g=f,g+=C*I,g+=w*F,g+=T*P,g+=E*N,g+=5*H*D,f=g>>>13,g&=8191,g+=5*V*O,g+=5*B*k,g+=5*z*A,g+=5*R*j,g+=5*L*M,f+=g>>>13,g&=8191,_=f,_+=C*L,_+=w*I,_+=T*F,_+=E*P,_+=D*N,f=_>>>13,_&=8191,_+=5*H*O,_+=5*V*k,_+=5*B*A,_+=5*z*j,_+=5*R*M,f+=_>>>13,_&=8191,v=f,v+=C*R,v+=w*L,v+=T*I,v+=E*F,v+=D*P,f=v>>>13,v&=8191,v+=O*N,v+=5*H*k,v+=5*V*A,v+=5*B*j,v+=5*z*M,f+=v>>>13,v&=8191,y=f,y+=C*z,y+=w*R,y+=T*L,y+=E*I,y+=D*F,f=y>>>13,y&=8191,y+=O*P,y+=k*N,y+=5*H*A,y+=5*V*j,y+=5*B*M,f+=y>>>13,y&=8191,b=f,b+=C*B,b+=w*z,b+=T*R,b+=E*L,b+=D*I,f=b>>>13,b&=8191,b+=O*F,b+=k*P,b+=A*N,b+=5*H*j,b+=5*V*M,f+=b>>>13,b&=8191,x=f,x+=C*V,x+=w*B,x+=T*z,x+=E*R,x+=D*L,f=x>>>13,x&=8191,x+=O*I,x+=k*F,x+=A*P,x+=j*N,x+=5*H*M,f+=x>>>13,x&=8191,S=f,S+=C*H,S+=w*V,S+=T*B,S+=E*z,S+=D*R,f=S>>>13,S&=8191,S+=O*L,S+=k*I,S+=A*F,S+=j*P,S+=M*N,f+=S>>>13,S&=8191,f=(f<<2)+f|0,f=f+p|0,p=f&8191,f>>>=13,m+=f,C=p,w=m,T=h,E=g,D=_,O=v,k=y,A=b,j=x,M=S,t+=16,n-=16;this.h[0]=C,this.h[1]=w,this.h[2]=T,this.h[3]=E,this.h[4]=D,this.h[5]=O,this.h[6]=k,this.h[7]=A,this.h[8]=j,this.h[9]=M},E.prototype.finish=function(e,t){var n=new Uint16Array(10),r,i,a,o;if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=r*5,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,n[0]=this.h[0]+5,r=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this.h[o]+r,r=n[o]>>>13,n[o]&=8191;for(n[9]-=8192,i=(r^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this.h[o]=this.h[o]&i|n[o];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,a=this.h[0]+this.pad[0],this.h[0]=a&65535,o=1;o<8;o++)a=(this.h[o]+this.pad[o]|0)+(a>>>16)|0,this.h[o]=a&65535;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,n){var r,i;if(this.leftover){for(i=16-this.leftover,i>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};function D(e,t,n,r,i,a){var o=new E(a);return o.update(n,r,i),o.finish(e,t),0}function O(e,t,n,r,i,a){var o=new Uint8Array(16);return D(o,0,n,r,i,a),h(e,t,o,0)}function k(e,t,n,r,i){var a;if(n<32)return-1;for(T(e,0,t,0,n,r,i),D(e,16,e,32,n-32,e),a=0;a<16;a++)e[a]=0;return 0}function A(e,t,n,r,i){var a,o=new Uint8Array(32);if(n<32||(w(o,0,32,r,i),O(t,16,t,32,n-32,o)!==0))return-1;for(T(e,0,t,0,n,r,i),a=0;a<32;a++)e[a]=0;return 0}function j(e,t){var n;for(n=0;n<16;n++)e[n]=t[n]|0}function M(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-r*65536;e[0]+=r-1+37*(r-1)}function N(e,t,n){for(var r,i=~(n-1),a=0;a<16;a++)r=i&(e[a]^t[a]),e[a]^=r,t[a]^=r}function P(e,n){var r,i,a,o=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(M(s),M(s),M(s),i=0;i<2;i++){for(o[0]=s[0]-65517,r=1;r<15;r++)o[r]=s[r]-65535-(o[r-1]>>16&1),o[r-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),a=o[15]>>16&1,o[14]&=65535,N(s,o,1-a)}for(r=0;r<16;r++)e[2*r]=s[r]&255,e[2*r+1]=s[r]>>8}function F(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return P(n,e),P(r,t),g(n,0,r,0)}function I(e){var t=new Uint8Array(32);return P(t,e),t[0]&1}function L(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function R(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function z(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function B(e,t,n){var r,i,a=0,o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=0,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=0,P=0,F=0,I=n[0],L=n[1],R=n[2],z=n[3],B=n[4],V=n[5],H=n[6],U=n[7],W=n[8],G=n[9],ee=n[10],K=n[11],q=n[12],te=n[13],ne=n[14],re=n[15];r=t[0],a+=r*I,o+=r*L,s+=r*R,c+=r*z,l+=r*B,u+=r*V,d+=r*H,f+=r*U,p+=r*W,m+=r*G,h+=r*ee,g+=r*K,_+=r*q,v+=r*te,y+=r*ne,b+=r*re,r=t[1],o+=r*I,s+=r*L,c+=r*R,l+=r*z,u+=r*B,d+=r*V,f+=r*H,p+=r*U,m+=r*W,h+=r*G,g+=r*ee,_+=r*K,v+=r*q,y+=r*te,b+=r*ne,x+=r*re,r=t[2],s+=r*I,c+=r*L,l+=r*R,u+=r*z,d+=r*B,f+=r*V,p+=r*H,m+=r*U,h+=r*W,g+=r*G,_+=r*ee,v+=r*K,y+=r*q,b+=r*te,x+=r*ne,S+=r*re,r=t[3],c+=r*I,l+=r*L,u+=r*R,d+=r*z,f+=r*B,p+=r*V,m+=r*H,h+=r*U,g+=r*W,_+=r*G,v+=r*ee,y+=r*K,b+=r*q,x+=r*te,S+=r*ne,C+=r*re,r=t[4],l+=r*I,u+=r*L,d+=r*R,f+=r*z,p+=r*B,m+=r*V,h+=r*H,g+=r*U,_+=r*W,v+=r*G,y+=r*ee,b+=r*K,x+=r*q,S+=r*te,C+=r*ne,w+=r*re,r=t[5],u+=r*I,d+=r*L,f+=r*R,p+=r*z,m+=r*B,h+=r*V,g+=r*H,_+=r*U,v+=r*W,y+=r*G,b+=r*ee,x+=r*K,S+=r*q,C+=r*te,w+=r*ne,T+=r*re,r=t[6],d+=r*I,f+=r*L,p+=r*R,m+=r*z,h+=r*B,g+=r*V,_+=r*H,v+=r*U,y+=r*W,b+=r*G,x+=r*ee,S+=r*K,C+=r*q,w+=r*te,T+=r*ne,E+=r*re,r=t[7],f+=r*I,p+=r*L,m+=r*R,h+=r*z,g+=r*B,_+=r*V,v+=r*H,y+=r*U,b+=r*W,x+=r*G,S+=r*ee,C+=r*K,w+=r*q,T+=r*te,E+=r*ne,D+=r*re,r=t[8],p+=r*I,m+=r*L,h+=r*R,g+=r*z,_+=r*B,v+=r*V,y+=r*H,b+=r*U,x+=r*W,S+=r*G,C+=r*ee,w+=r*K,T+=r*q,E+=r*te,D+=r*ne,O+=r*re,r=t[9],m+=r*I,h+=r*L,g+=r*R,_+=r*z,v+=r*B,y+=r*V,b+=r*H,x+=r*U,S+=r*W,C+=r*G,w+=r*ee,T+=r*K,E+=r*q,D+=r*te,O+=r*ne,k+=r*re,r=t[10],h+=r*I,g+=r*L,_+=r*R,v+=r*z,y+=r*B,b+=r*V,x+=r*H,S+=r*U,C+=r*W,w+=r*G,T+=r*ee,E+=r*K,D+=r*q,O+=r*te,k+=r*ne,A+=r*re,r=t[11],g+=r*I,_+=r*L,v+=r*R,y+=r*z,b+=r*B,x+=r*V,S+=r*H,C+=r*U,w+=r*W,T+=r*G,E+=r*ee,D+=r*K,O+=r*q,k+=r*te,A+=r*ne,j+=r*re,r=t[12],_+=r*I,v+=r*L,y+=r*R,b+=r*z,x+=r*B,S+=r*V,C+=r*H,w+=r*U,T+=r*W,E+=r*G,D+=r*ee,O+=r*K,k+=r*q,A+=r*te,j+=r*ne,M+=r*re,r=t[13],v+=r*I,y+=r*L,b+=r*R,x+=r*z,S+=r*B,C+=r*V,w+=r*H,T+=r*U,E+=r*W,D+=r*G,O+=r*ee,k+=r*K,A+=r*q,j+=r*te,M+=r*ne,N+=r*re,r=t[14],y+=r*I,b+=r*L,x+=r*R,S+=r*z,C+=r*B,w+=r*V,T+=r*H,E+=r*U,D+=r*W,O+=r*G,k+=r*ee,A+=r*K,j+=r*q,M+=r*te,N+=r*ne,P+=r*re,r=t[15],b+=r*I,x+=r*L,S+=r*R,C+=r*z,w+=r*B,T+=r*V,E+=r*H,D+=r*U,O+=r*W,k+=r*G,A+=r*ee,j+=r*K,M+=r*q,N+=r*te,P+=r*ne,F+=r*re,a+=38*x,o+=38*S,s+=38*C,c+=38*w,l+=38*T,u+=38*E,d+=38*D,f+=38*O,p+=38*k,m+=38*A,h+=38*j,g+=38*M,_+=38*N,v+=38*P,y+=38*F,i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-i*65536,r=o+i+65535,i=Math.floor(r/65536),o=r-i*65536,r=s+i+65535,i=Math.floor(r/65536),s=r-i*65536,r=c+i+65535,i=Math.floor(r/65536),c=r-i*65536,r=l+i+65535,i=Math.floor(r/65536),l=r-i*65536,r=u+i+65535,i=Math.floor(r/65536),u=r-i*65536,r=d+i+65535,i=Math.floor(r/65536),d=r-i*65536,r=f+i+65535,i=Math.floor(r/65536),f=r-i*65536,r=p+i+65535,i=Math.floor(r/65536),p=r-i*65536,r=m+i+65535,i=Math.floor(r/65536),m=r-i*65536,r=h+i+65535,i=Math.floor(r/65536),h=r-i*65536,r=g+i+65535,i=Math.floor(r/65536),g=r-i*65536,r=_+i+65535,i=Math.floor(r/65536),_=r-i*65536,r=v+i+65535,i=Math.floor(r/65536),v=r-i*65536,r=y+i+65535,i=Math.floor(r/65536),y=r-i*65536,r=b+i+65535,i=Math.floor(r/65536),b=r-i*65536,a+=i-1+37*(i-1),i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-i*65536,r=o+i+65535,i=Math.floor(r/65536),o=r-i*65536,r=s+i+65535,i=Math.floor(r/65536),s=r-i*65536,r=c+i+65535,i=Math.floor(r/65536),c=r-i*65536,r=l+i+65535,i=Math.floor(r/65536),l=r-i*65536,r=u+i+65535,i=Math.floor(r/65536),u=r-i*65536,r=d+i+65535,i=Math.floor(r/65536),d=r-i*65536,r=f+i+65535,i=Math.floor(r/65536),f=r-i*65536,r=p+i+65535,i=Math.floor(r/65536),p=r-i*65536,r=m+i+65535,i=Math.floor(r/65536),m=r-i*65536,r=h+i+65535,i=Math.floor(r/65536),h=r-i*65536,r=g+i+65535,i=Math.floor(r/65536),g=r-i*65536,r=_+i+65535,i=Math.floor(r/65536),_=r-i*65536,r=v+i+65535,i=Math.floor(r/65536),v=r-i*65536,r=y+i+65535,i=Math.floor(r/65536),y=r-i*65536,r=b+i+65535,i=Math.floor(r/65536),b=r-i*65536,a+=i-1+37*(i-1),e[0]=a,e[1]=o,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_,e[13]=v,e[14]=y,e[15]=b}function V(e,t){B(e,t,t)}function H(e,n){var r=t(),i;for(i=0;i<16;i++)r[i]=n[i];for(i=253;i>=0;i--)V(r,r),i!==2&&i!==4&&B(r,r,n);for(i=0;i<16;i++)e[i]=r[i]}function U(e,n){var r=t(),i;for(i=0;i<16;i++)r[i]=n[i];for(i=250;i>=0;i--)V(r,r),i!==1&&B(r,r,n);for(i=0;i<16;i++)e[i]=r[i]}function W(e,n,r){var i=new Uint8Array(32),a=new Float64Array(80),o,c,l=t(),u=t(),d=t(),f=t(),p=t(),m=t();for(c=0;c<31;c++)i[c]=n[c];for(i[31]=n[31]&127|64,i[0]&=248,L(a,r),c=0;c<16;c++)u[c]=a[c],f[c]=l[c]=d[c]=0;for(l[0]=f[0]=1,c=254;c>=0;--c)o=i[c>>>3]>>>(c&7)&1,N(l,u,o),N(d,f,o),R(p,l,d),z(l,l,d),R(d,u,f),z(u,u,f),V(f,p),V(m,l),B(l,d,l),B(d,u,p),R(p,l,d),z(l,l,d),V(u,l),z(d,f,m),B(l,d,s),R(l,l,f),B(d,d,l),B(l,f,m),B(f,u,a),V(u,p),N(l,u,o),N(d,f,o);for(c=0;c<16;c++)a[c+16]=l[c],a[c+32]=d[c],a[c+48]=u[c],a[c+64]=f[c];var h=a.subarray(32),g=a.subarray(16);return H(h,h),B(g,g,h),P(e,g),0}function G(e,t){return W(e,t,i)}function ee(e,t){return n(t,32),G(e,t)}function K(e,t,n){var i=new Uint8Array(32);return W(i,n,t),b(e,r,i,x)}var q=k,te=A;function ne(e,t,n,r,i,a){var o=new Uint8Array(32);return K(o,i,a),q(e,t,n,r,o)}function re(e,t,n,r,i,a){var o=new Uint8Array(32);return K(o,i,a),te(e,t,n,r,o)}var ie=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ae(e,t,n,r){for(var i=new Int32Array(16),a=new Int32Array(16),o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M=e[0],N=e[1],P=e[2],F=e[3],I=e[4],L=e[5],R=e[6],z=e[7],B=t[0],V=t[1],H=t[2],U=t[3],W=t[4],G=t[5],ee=t[6],K=t[7],q=0;r>=128;){for(w=0;w<16;w++)T=8*w+q,i[w]=n[T+0]<<24|n[T+1]<<16|n[T+2]<<8|n[T+3],a[w]=n[T+4]<<24|n[T+5]<<16|n[T+6]<<8|n[T+7];for(w=0;w<80;w++)if(o=M,s=N,c=P,l=F,u=I,d=L,f=R,p=z,m=B,h=V,g=H,_=U,v=W,y=G,b=ee,x=K,E=z,D=K,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=(I>>>14|W<<18)^(I>>>18|W<<14)^(W>>>9|I<<23),D=(W>>>14|I<<18)^(W>>>18|I<<14)^(I>>>9|W<<23),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=I&L^~I&R,D=W&G^~W&ee,O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=ie[w*2],D=ie[w*2+1],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=i[w%16],D=a[w%16],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,S=A&65535|j<<16,C=O&65535|k<<16,E=S,D=C,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=(M>>>28|B<<4)^(B>>>2|M<<30)^(B>>>7|M<<25),D=(B>>>28|M<<4)^(M>>>2|B<<30)^(M>>>7|B<<25),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,E=M&N^M&P^N&P,D=B&V^B&H^V&H,O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,p=A&65535|j<<16,x=O&65535|k<<16,E=l,D=_,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=S,D=C,O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,l=A&65535|j<<16,_=O&65535|k<<16,N=o,P=s,F=c,I=l,L=u,R=d,z=f,M=p,V=m,H=h,U=g,W=_,G=v,ee=y,K=b,B=x,w%16==15)for(T=0;T<16;T++)E=i[T],D=a[T],O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=i[(T+9)%16],D=a[(T+9)%16],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,S=i[(T+1)%16],C=a[(T+1)%16],E=(S>>>1|C<<31)^(S>>>8|C<<24)^S>>>7,D=(C>>>1|S<<31)^(C>>>8|S<<24)^(C>>>7|S<<25),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,S=i[(T+14)%16],C=a[(T+14)%16],E=(S>>>19|C<<13)^(C>>>29|S<<3)^S>>>6,D=(C>>>19|S<<13)^(S>>>29|C<<3)^(C>>>6|S<<26),O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,i[T]=A&65535|j<<16,a[T]=O&65535|k<<16;E=M,D=B,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[0],D=t[0],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[0]=M=A&65535|j<<16,t[0]=B=O&65535|k<<16,E=N,D=V,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[1],D=t[1],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[1]=N=A&65535|j<<16,t[1]=V=O&65535|k<<16,E=P,D=H,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[2],D=t[2],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[2]=P=A&65535|j<<16,t[2]=H=O&65535|k<<16,E=F,D=U,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[3],D=t[3],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[3]=F=A&65535|j<<16,t[3]=U=O&65535|k<<16,E=I,D=W,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[4],D=t[4],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[4]=I=A&65535|j<<16,t[4]=W=O&65535|k<<16,E=L,D=G,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[5],D=t[5],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[5]=L=A&65535|j<<16,t[5]=G=O&65535|k<<16,E=R,D=ee,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[6],D=t[6],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[6]=R=A&65535|j<<16,t[6]=ee=O&65535|k<<16,E=z,D=K,O=D&65535,k=D>>>16,A=E&65535,j=E>>>16,E=e[7],D=t[7],O+=D&65535,k+=D>>>16,A+=E&65535,j+=E>>>16,k+=O>>>16,A+=k>>>16,j+=A>>>16,e[7]=z=A&65535|j<<16,t[7]=K=O&65535|k<<16,q+=128,r-=128}return r}function J(e,t,n){var r=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),o,s=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,ae(r,i,t,n),n%=128,o=0;o<n;o++)a[o]=t[s-n+o];for(a[n]=128,n=256-128*(n<112),a[n-9]=0,p(a,n-8,s/536870912|0,s<<3),ae(r,i,a,n),o=0;o<8;o++)p(e,8*o,r[o],i[o]);return 0}function oe(e,n){var r=t(),i=t(),a=t(),o=t(),s=t(),c=t(),u=t(),d=t(),f=t();z(r,e[1],e[0]),z(f,n[1],n[0]),B(r,r,f),R(i,e[0],e[1]),R(f,n[0],n[1]),B(i,i,f),B(a,e[3],n[3]),B(a,a,l),B(o,e[2],n[2]),R(o,o,o),z(s,i,r),z(c,o,a),R(u,o,a),R(d,i,r),B(e[0],s,c),B(e[1],d,u),B(e[2],u,c),B(e[3],s,d)}function se(e,t,n){var r;for(r=0;r<4;r++)N(e[r],t[r],n)}function ce(e,n){var r=t(),i=t(),a=t();H(a,n[2]),B(r,n[0],a),B(i,n[1],a),P(e,i),e[31]^=I(r)<<7}function Y(e,t,n){var r,i;for(j(e[0],a),j(e[1],o),j(e[2],o),j(e[3],a),i=255;i>=0;--i)r=n[i/8|0]>>(i&7)&1,se(e,t,r),oe(t,e),oe(e,e),se(e,t,r)}function le(e,n){var r=[t(),t(),t(),t()];j(r[0],u),j(r[1],d),j(r[2],o),B(r[3],u,d),Y(e,r,n)}function ue(e,r,i){var a=new Uint8Array(64),o=[t(),t(),t(),t()],s;for(i||n(r,32),J(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,le(o,a),ce(e,o),s=0;s<32;s++)r[s+32]=e[s];return 0}var de=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function fe(e,t){var n,r,i,a;for(r=63;r>=32;--r){for(n=0,i=r-32,a=r-12;i<a;++i)t[i]+=n-16*t[r]*de[i-(r-32)],n=t[i]+128>>8,t[i]-=n*256;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*de[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*de[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=t[r]&255}function pe(e){var t=new Float64Array(64),n;for(n=0;n<64;n++)t[n]=e[n];for(n=0;n<64;n++)e[n]=0;fe(e,t)}function me(e,n,r,i){var a=new Uint8Array(64),o=new Uint8Array(64),s=new Uint8Array(64),c,l,u=new Float64Array(64),d=[t(),t(),t(),t()];J(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var f=r+64;for(c=0;c<r;c++)e[64+c]=n[c];for(c=0;c<32;c++)e[32+c]=a[32+c];for(J(s,e.subarray(32),r+32),pe(s),le(d,s),ce(e,d),c=32;c<64;c++)e[c]=i[c];for(J(o,e,r+64),pe(o),c=0;c<64;c++)u[c]=0;for(c=0;c<32;c++)u[c]=s[c];for(c=0;c<32;c++)for(l=0;l<32;l++)u[c+l]+=o[c]*a[l];return fe(e.subarray(32),u),f}function he(e,n){var r=t(),i=t(),s=t(),l=t(),u=t(),d=t(),p=t();return j(e[2],o),L(e[1],n),V(s,e[1]),B(l,s,c),z(s,s,e[2]),R(l,e[2],l),V(u,l),V(d,u),B(p,d,u),B(r,p,s),B(r,r,l),U(r,r),B(r,r,s),B(r,r,l),B(r,r,l),B(e[0],r,l),V(i,e[0]),B(i,i,l),F(i,s)&&B(e[0],e[0],f),V(i,e[0]),B(i,i,l),F(i,s)?-1:(I(e[0])===n[31]>>7&&z(e[0],a,e[0]),B(e[3],e[0],e[1]),0)}function ge(e,n,r,i){var a,o,s=new Uint8Array(32),c=new Uint8Array(64),l=[t(),t(),t(),t()],u=[t(),t(),t(),t()];if(o=-1,r<64||he(u,i))return-1;for(a=0;a<r;a++)e[a]=n[a];for(a=0;a<32;a++)e[a+32]=i[a];if(J(c,e,r),pe(c),Y(l,u,c),le(u,n.subarray(32)),oe(l,u),ce(s,l),r-=64,g(n,0,s,0)){for(a=0;a<r;a++)e[a]=0;return-1}for(a=0;a<r;a++)e[a]=n[a+64];return o=r,o}var _e=32,ve=24,ye=32,be=16,xe=32,Se=32,Ce=32,we=32,Te=32,Ee=ve,De=ye,Oe=be,ke=64,Ae=32,je=64,Me=32,Ne=64;e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:T,crypto_stream:w,crypto_stream_salsa20_xor:S,crypto_stream_salsa20:C,crypto_onetimeauth:D,crypto_onetimeauth_verify:O,crypto_verify_16:h,crypto_verify_32:g,crypto_secretbox:k,crypto_secretbox_open:A,crypto_scalarmult:W,crypto_scalarmult_base:G,crypto_box_beforenm:K,crypto_box_afternm:q,crypto_box:ne,crypto_box_open:re,crypto_box_keypair:ee,crypto_hash:J,crypto_sign:me,crypto_sign_keypair:ue,crypto_sign_open:ge,crypto_secretbox_KEYBYTES:_e,crypto_secretbox_NONCEBYTES:ve,crypto_secretbox_ZEROBYTES:ye,crypto_secretbox_BOXZEROBYTES:be,crypto_scalarmult_BYTES:xe,crypto_scalarmult_SCALARBYTES:Se,crypto_box_PUBLICKEYBYTES:Ce,crypto_box_SECRETKEYBYTES:we,crypto_box_BEFORENMBYTES:Te,crypto_box_NONCEBYTES:Ee,crypto_box_ZEROBYTES:De,crypto_box_BOXZEROBYTES:Oe,crypto_sign_BYTES:ke,crypto_sign_PUBLICKEYBYTES:Ae,crypto_sign_SECRETKEYBYTES:je,crypto_sign_SEEDBYTES:Me,crypto_hash_BYTES:Ne};function Pe(e,t){if(e.length!==_e)throw Error(`bad key size`);if(t.length!==ve)throw Error(`bad nonce size`)}function Fe(e,t){if(e.length!==Ce)throw Error(`bad public key size`);if(t.length!==we)throw Error(`bad secret key size`)}function Ie(){var e,t;for(t=0;t<arguments.length;t++)if((e=Object.prototype.toString.call(arguments[t]))!==`[object Uint8Array]`)throw TypeError(`unexpected type `+e+`, use Uint8Array`)}function Le(e){for(var t=0;t<e.length;t++)e[t]=0}e.util||(e.util={},e.util.decodeUTF8=e.util.encodeUTF8=e.util.encodeBase64=e.util.decodeBase64=function(){throw Error(`nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js`)}),e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){Ie(e,t,n),Pe(n,t);for(var r=new Uint8Array(ye+e.length),i=new Uint8Array(r.length),a=0;a<e.length;a++)r[a+ye]=e[a];return k(i,r,r.length,t,n),i.subarray(be)},e.secretbox.open=function(e,t,n){Ie(e,t,n),Pe(n,t);for(var r=new Uint8Array(be+e.length),i=new Uint8Array(r.length),a=0;a<e.length;a++)r[a+be]=e[a];return r.length<32||A(i,r,r.length,t,n)!==0?!1:i.subarray(ye)},e.secretbox.keyLength=_e,e.secretbox.nonceLength=ve,e.secretbox.overheadLength=be,e.scalarMult=function(e,t){if(Ie(e,t),e.length!==Se)throw Error(`bad n size`);if(t.length!==xe)throw Error(`bad p size`);var n=new Uint8Array(xe);return W(n,e,t),n},e.scalarMult.base=function(e){if(Ie(e),e.length!==Se)throw Error(`bad n size`);var t=new Uint8Array(xe);return G(t,e),t},e.scalarMult.scalarLength=Se,e.scalarMult.groupElementLength=xe,e.box=function(t,n,r,i){var a=e.box.before(r,i);return e.secretbox(t,n,a)},e.box.before=function(e,t){Ie(e,t),Fe(e,t);var n=new Uint8Array(Te);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,i){var a=e.box.before(r,i);return e.secretbox.open(t,n,a)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(Ce),t=new Uint8Array(we);return ee(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(Ie(e),e.length!==we)throw Error(`bad secret key size`);var t=new Uint8Array(Ce);return G(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=Ce,e.box.secretKeyLength=we,e.box.sharedKeyLength=Te,e.box.nonceLength=Ee,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(Ie(e,t),t.length!==je)throw Error(`bad secret key size`);var n=new Uint8Array(ke+e.length);return me(n,e,e.length,t),n},e.sign.open=function(e,t){if(arguments.length!==2)throw Error(`nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?`);if(Ie(e,t),t.length!==Ae)throw Error(`bad public key size`);var n=new Uint8Array(e.length),r=ge(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),a=0;a<i.length;a++)i[a]=n[a];return i},e.sign.detached=function(t,n){for(var r=e.sign(t,n),i=new Uint8Array(ke),a=0;a<i.length;a++)i[a]=r[a];return i},e.sign.detached.verify=function(e,t,n){if(Ie(e,t,n),t.length!==ke)throw Error(`bad signature size`);if(n.length!==Ae)throw Error(`bad public key size`);var r=new Uint8Array(ke+e.length),i=new Uint8Array(ke+e.length),a;for(a=0;a<ke;a++)r[a]=t[a];for(a=0;a<e.length;a++)r[a+ke]=e[a];return ge(i,r,r.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(Ae),t=new Uint8Array(je);return ue(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(Ie(e),e.length!==je)throw Error(`bad secret key size`);for(var t=new Uint8Array(Ae),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(Ie(e),e.length!==Me)throw Error(`bad seed size`);for(var t=new Uint8Array(Ae),n=new Uint8Array(je),r=0;r<32;r++)n[r]=e[r];return ue(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=Ae,e.sign.secretKeyLength=je,e.sign.seedLength=Me,e.sign.signatureLength=ke,e.hash=function(e){Ie(e);var t=new Uint8Array(Ne);return J(t,e,e.length),t},e.hash.hashLength=Ne,e.verify=function(e,t){return Ie(e,t),e.length===0||t.length===0||e.length!==t.length?!1:m(e,0,t,0,e.length)===0},e.setPRNG=function(e){n=e},(function(){var t=typeof self<`u`?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){var n=65536;e.setPRNG(function(e,r){var i,a=new Uint8Array(r);for(i=0;i<r;i+=n)t.getRandomValues(a.subarray(i,i+Math.min(r-i,n)));for(i=0;i<r;i++)e[i]=a[i];Le(a)})}else typeof require<`u`&&(t=require("crypto"),t&&t.randomBytes&&e.setPRNG(function(e,n){var r,i=t.randomBytes(n);for(r=0;r<n;r++)e[r]=i[r];Le(i)}))})()})(t!==void 0&&t.exports?t.exports:self.nacl=self.nacl||{})})),eh=s(((e,t)=>{var n=$m().lowlevel.crypto_hash,r=0,i=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])],this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function a(e,t,n){return(e[0][t[n+3]]+e[1][t[n+2]]^e[2][t[n+1]])+e[3][t[n]]}i.prototype.encipher=function(e,t){t===void 0&&(t=new Uint8Array(e.buffer),e.byteOffset!==0&&(t=t.subarray(e.byteOffset))),e[0]^=this.P[0];for(var n=1;n<16;n+=2)e[1]^=a(this.S,t,0)^this.P[n],e[0]^=a(this.S,t,4)^this.P[n+1];var r=e[0];e[0]=e[1]^this.P[17],e[1]=r},i.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);e.byteOffset!==0&&(t=t.subarray(e.byteOffset)),e[0]^=this.P[17];for(var n=16;n>0;n-=2)e[1]^=a(this.S,t,0)^this.P[n],e[0]^=a(this.S,t,4)^this.P[n-1];var r=e[0];e[0]=e[1]^this.P[0],e[1]=r};function o(e,t){var n,i=0;for(n=0;n<4;n++,r++)r>=t&&(r=0),i=i<<8|e[r];return i}i.prototype.expand0state=function(e,t){var n=new Uint32Array(2),i,a,s=new Uint8Array(n.buffer);for(i=0,r=0;i<18;i++)this.P[i]^=o(e,t);for(r=0,i=0;i<18;i+=2)this.encipher(n,s),this.P[i]=n[0],this.P[i+1]=n[1];for(i=0;i<4;i++)for(a=0;a<256;a+=2)this.encipher(n,s),this.S[i][a]=n[0],this.S[i][a+1]=n[1]},i.prototype.expandstate=function(e,t,n,i){var a=new Uint32Array(2),s,c;for(s=0,r=0;s<18;s++)this.P[s]^=o(n,i);for(s=0,r=0;s<18;s+=2)a[0]^=o(e,t),a[1]^=o(e,t),this.encipher(a),this.P[s]=a[0],this.P[s+1]=a[1];for(s=0;s<4;s++)for(c=0;c<256;c+=2)a[0]^=o(e,t),a[1]^=o(e,t),this.encipher(a),this.S[s][c]=a[0],this.S[s][c+1]=a[1];r=0},i.prototype.enc=function(e,t){for(var n=0;n<t;n++)this.encipher(e.subarray(n*2))},i.prototype.dec=function(e,t){for(var n=0;n<t;n++)this.decipher(e.subarray(n*2))};var s=8,c=32;function l(e,t,n){var r=new i,a=new Uint32Array(s),c,l=new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,105,116,101]);for(r.expandstate(t,64,e,64),c=0;c<64;c++)r.expand0state(t,64),r.expand0state(e,64);for(c=0;c<s;c++)a[c]=o(l,l.byteLength);for(c=0;c<64;c++)r.enc(a,a.byteLength/8);for(c=0;c<s;c++)n[4*c+3]=a[c]>>>24,n[4*c+2]=a[c]>>>16,n[4*c+1]=a[c]>>>8,n[4*c+0]=a[c]}function u(e,t,r,i,a,o,s){var u=new Uint8Array(64),d=new Uint8Array(64),f=new Uint8Array(c),p=new Uint8Array(c),m=new Uint8Array(i+4),h,g,_,v,y,b,x=o;if(s<1||t===0||i===0||o===0||o>f.byteLength*f.byteLength||i>1<<20)return-1;for(v=Math.floor((o+f.byteLength-1)/f.byteLength),_=Math.floor((o+v-1)/v),h=0;h<i;h++)m[h]=r[h];for(n(u,e,t),b=1;o>0;b++){for(m[i+0]=b>>>24,m[i+1]=b>>>16,m[i+2]=b>>>8,m[i+3]=b,n(d,m,i+4),l(u,d,p),h=f.byteLength;h--;)f[h]=p[h];for(h=1;h<s;h++)for(n(d,p,p.byteLength),l(u,d,p),g=0;g<f.byteLength;g++)f[g]^=p[g];for(_=Math.min(_,o),h=0;h<_&&(y=h*v+(b-1),!(y>=x));h++)a[y]=f[h];o-=h}return 0}t.exports={BLOCKS:s,HASHSIZE:c,hash:l,pbkdf:u}})),th=s(((e,t)=>{let n=require("crypto"),r;try{r=require("cpu-features")()}catch{}let{bindingAvailable:i,CIPHER_INFO:a,MAC_INFO:o}=ih(),s=(()=>{if(typeof n.sign==`function`&&typeof n.verify==`function`){let e=`-----BEGIN PRIVATE KEY-----\r
219
+ MC4CAQAwBQYDK2VwBCIEIHKj+sVa9WcD/q2DJUJaf43Kptc8xYuUQA4bOFj9vC8T\r
220
+ -----END PRIVATE KEY-----`,t=Buffer.from(`a`),r,i;try{r=n.sign(null,t,e),i=n.verify(null,t,e,r)}catch{}return Buffer.isBuffer(r)&&r.length===64&&i===!0}return!1})(),c=typeof n.diffieHellman==`function`&&typeof n.generateKeyPairSync==`function`&&typeof n.createPublicKey==`function`,l=[`ecdh-sha2-nistp256`,`ecdh-sha2-nistp384`,`ecdh-sha2-nistp521`,`diffie-hellman-group-exchange-sha256`,`diffie-hellman-group14-sha256`,`diffie-hellman-group15-sha512`,`diffie-hellman-group16-sha512`,`diffie-hellman-group17-sha512`,`diffie-hellman-group18-sha512`];c&&(l.unshift(`curve25519-sha256`),l.unshift(`curve25519-sha256@libssh.org`));let u=l.concat([`diffie-hellman-group-exchange-sha1`,`diffie-hellman-group14-sha1`,`diffie-hellman-group1-sha1`]),d=[`ecdsa-sha2-nistp256`,`ecdsa-sha2-nistp384`,`ecdsa-sha2-nistp521`,`rsa-sha2-512`,`rsa-sha2-256`,`ssh-rsa`];s&&d.unshift(`ssh-ed25519`);let f=d.concat([`ssh-dss`]),p=(()=>{let e=n.getCiphers();return t=>e.includes(a[t].sslName)})(),m=[`aes128-gcm@openssh.com`,`aes256-gcm@openssh.com`,`aes128-ctr`,`aes192-ctr`,`aes256-ctr`];r&&r.flags&&!r.flags.aes?i?m.unshift(`chacha20-poly1305@openssh.com`):m.push(`chacha20-poly1305@openssh.com`):i&&r&&r.arch===`x86`?m.splice(4,0,`chacha20-poly1305@openssh.com`):m.push(`chacha20-poly1305@openssh.com`),m=m.filter(p);let h=m.concat([`aes256-cbc`,`aes192-cbc`,`aes128-cbc`,`blowfish-cbc`,`3des-cbc`,`aes128-gcm`,`aes256-gcm`,`arcfour256`,`arcfour128`,`cast128-cbc`,`arcfour`].filter(p)),g=(()=>{let e=n.getHashes();return t=>e.includes(o[t].sslName)})(),_=[`hmac-sha2-256-etm@openssh.com`,`hmac-sha2-512-etm@openssh.com`,`hmac-sha1-etm@openssh.com`,`hmac-sha2-256`,`hmac-sha2-512`,`hmac-sha1`].filter(g),v=_.concat([`hmac-md5`,`hmac-sha2-256-96`,`hmac-sha2-512-96`,`hmac-ripemd160`,`hmac-sha1-96`,`hmac-md5-96`].filter(g)),y=[`none`,`zlib@openssh.com`,`zlib`],b=y.concat([]),x={BAD_DHGEX:1,OLD_EXIT:2,DYN_RPORT_BUG:4,BUG_DHGEX_LARGE:8,IMPLY_RSA_SHA2_SIGALGS:16};t.exports={MESSAGE:{DISCONNECT:1,IGNORE:2,UNIMPLEMENTED:3,DEBUG:4,SERVICE_REQUEST:5,SERVICE_ACCEPT:6,EXT_INFO:7,KEXINIT:20,NEWKEYS:21,KEXDH_INIT:30,KEXDH_REPLY:31,KEXDH_GEX_GROUP:31,KEXDH_GEX_INIT:32,KEXDH_GEX_REPLY:33,KEXDH_GEX_REQUEST:34,KEXECDH_INIT:30,KEXECDH_REPLY:31,USERAUTH_REQUEST:50,USERAUTH_FAILURE:51,USERAUTH_SUCCESS:52,USERAUTH_BANNER:53,USERAUTH_PASSWD_CHANGEREQ:60,USERAUTH_PK_OK:60,USERAUTH_INFO_REQUEST:60,USERAUTH_INFO_RESPONSE:61,GLOBAL_REQUEST:80,REQUEST_SUCCESS:81,REQUEST_FAILURE:82,CHANNEL_OPEN:90,CHANNEL_OPEN_CONFIRMATION:91,CHANNEL_OPEN_FAILURE:92,CHANNEL_WINDOW_ADJUST:93,CHANNEL_DATA:94,CHANNEL_EXTENDED_DATA:95,CHANNEL_EOF:96,CHANNEL_CLOSE:97,CHANNEL_REQUEST:98,CHANNEL_SUCCESS:99,CHANNEL_FAILURE:100},DISCONNECT_REASON:{HOST_NOT_ALLOWED_TO_CONNECT:1,PROTOCOL_ERROR:2,KEY_EXCHANGE_FAILED:3,RESERVED:4,MAC_ERROR:5,COMPRESSION_ERROR:6,SERVICE_NOT_AVAILABLE:7,PROTOCOL_VERSION_NOT_SUPPORTED:8,HOST_KEY_NOT_VERIFIABLE:9,CONNECTION_LOST:10,BY_APPLICATION:11,TOO_MANY_CONNECTIONS:12,AUTH_CANCELED_BY_USER:13,NO_MORE_AUTH_METHODS_AVAILABLE:14,ILLEGAL_USER_NAME:15},DISCONNECT_REASON_STR:void 0,CHANNEL_OPEN_FAILURE:{ADMINISTRATIVELY_PROHIBITED:1,CONNECT_FAILED:2,UNKNOWN_CHANNEL_TYPE:3,RESOURCE_SHORTAGE:4},TERMINAL_MODE:{TTY_OP_END:0,VINTR:1,VQUIT:2,VERASE:3,VKILL:4,VEOF:5,VEOL:6,VEOL2:7,VSTART:8,VSTOP:9,VSUSP:10,VDSUSP:11,VREPRINT:12,VWERASE:13,VLNEXT:14,VFLUSH:15,VSWTCH:16,VSTATUS:17,VDISCARD:18,IGNPAR:30,PARMRK:31,INPCK:32,ISTRIP:33,INLCR:34,IGNCR:35,ICRNL:36,IUCLC:37,IXON:38,IXANY:39,IXOFF:40,IMAXBEL:41,ISIG:50,ICANON:51,XCASE:52,ECHO:53,ECHOE:54,ECHOK:55,ECHONL:56,NOFLSH:57,TOSTOP:58,IEXTEN:59,ECHOCTL:60,ECHOKE:61,PENDIN:62,OPOST:70,OLCUC:71,ONLCR:72,OCRNL:73,ONOCR:74,ONLRET:75,CS7:90,CS8:91,PARENB:92,PARODD:93,TTY_OP_ISPEED:128,TTY_OP_OSPEED:129},CHANNEL_EXTENDED_DATATYPE:{STDERR:1},SIGNALS:[`ABRT`,`ALRM`,`FPE`,`HUP`,`ILL`,`INT`,`QUIT`,`SEGV`,`TERM`,`USR1`,`USR2`,`KILL`,`PIPE`].reduce((e,t)=>({...e,[t]:1}),{}),COMPAT:x,COMPAT_CHECKS:[[`Cisco-1.25`,x.BAD_DHGEX],[/^Cisco-1[.]/,x.BUG_DHGEX_LARGE],[/^[0-9.]+$/,x.OLD_EXIT],[/^OpenSSH_5[.][0-9]+/,x.DYN_RPORT_BUG],[/^OpenSSH_7[.]4/,x.IMPLY_RSA_SHA2_SIGALGS]],DEFAULT_KEX:l,SUPPORTED_KEX:u,DEFAULT_SERVER_HOST_KEY:d,SUPPORTED_SERVER_HOST_KEY:f,DEFAULT_CIPHER:m,SUPPORTED_CIPHER:h,DEFAULT_MAC:_,SUPPORTED_MAC:v,DEFAULT_COMPRESSION:y,SUPPORTED_COMPRESSION:b,curve25519Supported:c,eddsaSupported:s},t.exports.DISCONNECT_REASON_BY_VALUE=Array.from(Object.entries(t.exports.DISCONNECT_REASON)).reduce((e,[t,n])=>({...e,[n]:t}),{})})),nh=s(((e,t)=>{let n=Qm().Ber,r,i=Buffer[Symbol.species],a=Object.getPrototypeOf(Uint8Array.prototype).fill;function o(e,t){return e[t++]*16777216+e[t++]*65536+e[t++]*256+e[t]}function s(e,t,n,r,i){i||=0,r>e.length&&(r=e.length);let a=r-n,o=t.length-i;return a>o&&(a=o),t.set(new Uint8Array(e.buffer,e.byteOffset+n,a),i),a}function c(e,t,n){return n===void 0&&(n=e.length),new i(e.buffer,e.byteOffset+t,n-t)}function l(){let e=0,t,n={init:(n,r)=>{t=n,e=typeof r==`number`?r:0},pos:()=>e,length:()=>t?t.length:0,avail:()=>t&&e<t.length?t.length-e:0,clear:()=>{t=void 0},readUInt32BE:()=>{if(!(!t||e+3>=t.length))return t[e++]*16777216+t[e++]*65536+t[e++]*256+t[e++]},readUInt64BE:n=>{if(!(!t||e+7>=t.length))switch(n){case`always`:return BigInt(`0x${t.hexSlice(e,e+=8)}`);case`maybe`:if(t[e]>31)return BigInt(`0x${t.hexSlice(e,e+=8)}`);default:return t[e++]*72057594037927940+t[e++]*281474976710656+t[e++]*1099511627776+t[e++]*4294967296+t[e++]*16777216+t[e++]*65536+t[e++]*256+t[e++]}},skip:n=>{t&&n>0&&(e+=n)},skipString:()=>{let r=n.readUInt32BE();if(r!==void 0)return e+=r,e<=t.length?r:void 0},readByte:()=>{if(t&&e<t.length)return t[e++]},readBool:()=>{if(t&&e<t.length)return!!t[e++]},readList:()=>{let e=n.readString(!0);if(e!==void 0)return e?e.split(`,`):[]},readString:(r,i)=>{typeof r==`number`&&(i=r,r=void 0);let a=n.readUInt32BE();if(a!==void 0&&!(t.length-e<a||typeof i==`number`&&a>i))return r?Buffer.isBuffer(r)?s(t,r,e,e+=a):t.utf8Slice(e,e+=a):c(t,e,e+=a)},readRaw:n=>{if(t){if(typeof n!=`number`)return c(t,e,e+=t.length-e);if(t.length-e>=n)return c(t,e,e+=n)}}};return n}function u(e,t,n){let r=Error(e);return typeof t==`boolean`?(n=t,r.level=`protocol`):r.level=t||`protocol`,r.fatal=!!n,r}function d(e,t,n){return e[n++]=t>>>24,e[n++]=t>>>16,e[n++]=t>>>8,e[n++]=t,n}let f=l();t.exports={bufferCopy:s,bufferSlice:c,FastBuffer:i,bufferFill:(e,t,n,r)=>a.call(e,t,n,r),makeError:u,doFatalError:(e,t,n,i)=>{let a;return r===void 0&&({DISCONNECT_REASON:r}=th()),t instanceof Error?(a=t,i=typeof n==`number`?n:r.PROTOCOL_ERROR):a=u(t,n,!0),typeof i!=`number`&&(i=r.PROTOCOL_ERROR),e.disconnect(i),e._destruct(),e._onError(a),1/0},readUInt32BE:o,writeUInt32BE:d,writeUInt32LE:(e,t,n)=>(e[n++]=t,e[n++]=t>>>8,e[n++]=t>>>16,e[n++]=t>>>24,n),makeBufferParser:l,bufferParser:l(),readString:(e,t,n,r)=>{typeof n==`number`&&(r=n,n=void 0),t===void 0&&(t=0);let i=e.length-t;if(t<0||t>=e.length||i<4)return;let a=o(e,t);if(i<4+a||typeof r==`number`&&a>r)return;t+=4;let l=t+a;return e._pos=l,n?Buffer.isBuffer(n)?s(e,n,t,l):e.utf8Slice(t,l):c(e,t,l)},sigSSHToASN1:(e,t)=>{switch(t){case`ssh-dss`:{if(e.length>40)return e;let t=new n.Writer;t.startSequence();let r=e.slice(0,20),i=e.slice(20);if(r[0]&128){let e=Buffer.allocUnsafe(21);e[0]=0,r.copy(e,1),r=e}else r[0]===0&&!(r[1]&128)&&(r=r.slice(1));if(i[0]&128){let e=Buffer.allocUnsafe(21);e[0]=0,i.copy(e,1),i=e}else i[0]===0&&!(i[1]&128)&&(i=i.slice(1));return t.writeBuffer(r,n.Integer),t.writeBuffer(i,n.Integer),t.endSequence(),t.buffer}case`ecdsa-sha2-nistp256`:case`ecdsa-sha2-nistp384`:case`ecdsa-sha2-nistp521`:{f.init(e,0);let t=f.readString(),r=f.readString();if(f.clear(),t===void 0||r===void 0)return;let i=new n.Writer;return i.startSequence(),i.writeBuffer(t,n.Integer),i.writeBuffer(r,n.Integer),i.endSequence(),i.buffer}default:return e}},convertSignature:(e,t)=>{switch(t){case`ssh-dss`:{if(e.length<=40)return e;let t=new n.Reader(e);t.readSequence();let r=t.readString(n.Integer,!0),i=t.readString(n.Integer,!0),a=0,o=0;if(r.length<20){let e=Buffer.allocUnsafe(20);e.set(r,1),r=e,r[0]=0}if(i.length<20){let e=Buffer.allocUnsafe(20);e.set(i,1),i=e,i[0]=0}r.length>20&&r[0]===0&&(a=1),i.length>20&&i[0]===0&&(o=1);let c=Buffer.allocUnsafe(r.length-a+(i.length-o));return s(r,c,a,r.length,0),s(i,c,o,i.length,r.length-a),c}case`ecdsa-sha2-nistp256`:case`ecdsa-sha2-nistp384`:case`ecdsa-sha2-nistp521`:{if(e[0]===0)return e;let t=new n.Reader(e);t.readSequence();let r=t.readString(n.Integer,!0),i=t.readString(n.Integer,!0);if(r===null||i===null)return;let a=Buffer.allocUnsafe(4+r.length+4+i.length);return d(a,r.length,0),a.set(r,4),d(a,i.length,4+r.length),a.set(i,8+r.length),a}}return e},sendPacket:(e,t,n)=>!n&&e._kexinit!==void 0?(e._queue===void 0&&(e._queue=[]),e._queue.push(t),e._debug&&e._debug(`Outbound: ... packet queued`),!1):(e._cipher.encrypt(t),!0)}})),rh=s(((e,t)=>{var n=(function(){var e=typeof document<`u`&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<`u`&&(e||=__filename),(function(t){t||={};var n;n||=t===void 0?{}:t;var r,i;n.ready=new Promise(function(e,t){r=e,i=t});var a={},o;for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var s=typeof window==`object`,c=typeof importScripts==`function`,l=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`,u=``,d,f,p,m,h;l?(u=c?require("path").dirname(u)+`/`:__dirname+`/`,d=function(e,t){var n=G(e);return n?t?n:n.toString():(m||=require("fs"),h||=require("path"),e=h.normalize(e),m.readFileSync(e,t?null:`utf8`))},p=function(e){return e=d(e,!0),e.buffer||(e=new Uint8Array(e)),b(e.buffer),e},f=function(e,t,n){var r=G(e);r&&t(r),m||=require("fs"),h||=require("path"),e=h.normalize(e),m.readFile(e,function(e,r){e?n(e):t(r.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,`/`),process.argv.slice(2),n.inspect=function(){return`[Emscripten Module object]`}):(s||c)&&(c?u=self.location.href:typeof document<`u`&&document.currentScript&&(u=document.currentScript.src),e&&(u=e),u=u.indexOf(`blob:`)===0?``:u.substr(0,u.lastIndexOf(`/`)+1),d=function(e){try{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.send(null),t.responseText}catch(i){if(e=G(e)){t=[];for(var n=0;n<e.length;n++){var r=e[n];255<r&&(U&&b(!1,`Character code `+r+` (`+String.fromCharCode(r)+`) at offset `+n+` not in 0x00-0xFF.`),r&=255),t.push(String.fromCharCode(r))}return t.join(``)}throw i}},c&&(p=function(e){try{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}catch(t){if(e=G(e))return e;throw t}}),f=function(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e,!0),r.responseType=`arraybuffer`,r.onload=function(){if(r.status==200||r.status==0&&r.response)t(r.response);else{var i=G(e);i?t(i.buffer):n()}},r.onerror=n,r.send(null)}),n.print||console.log.bind(console);var g=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null;var _;n.wasmBinary&&(_=n.wasmBinary),n.noExitRuntime,typeof WebAssembly!=`object`&&I(`no native wasm support detected`);var v,y=!1;function b(e,t){e||I(`Assertion failed: `+t)}function x(e){var t=n[`_`+e];return b(t,`Cannot call unknown function `+e+`, make sure it is exported`),t}function S(e,t,n,r){var i={string:function(e){var t=0;if(e!=null&&e!==0){var n=(e.length<<2)+1;t=te(n);var r=t,i=E;if(0<n){n=r+n-1;for(var a=0;a<e.length;++a){var o=e.charCodeAt(a);if(55296<=o&&57343>=o){var s=e.charCodeAt(++a);o=65536+((o&1023)<<10)|s&1023}if(127>=o){if(r>=n)break;i[r++]=o}else{if(2047>=o){if(r+1>=n)break;i[r++]=192|o>>6}else{if(65535>=o){if(r+2>=n)break;i[r++]=224|o>>12}else{if(r+3>=n)break;i[r++]=240|o>>18,i[r++]=128|o>>12&63}i[r++]=128|o>>6&63}i[r++]=128|o&63}}i[r]=0}}return t},array:function(e){var t=te(e.length);return T.set(e,t),t}},a=x(e),o=[];if(e=0,r)for(var s=0;s<r.length;s++){var c=i[n[s]];c?(e===0&&(e=K()),o[s]=c(r[s])):o[s]=r[s]}return n=a.apply(null,o),n=function(e){if(t===`string`)if(e){for(var n=E,r=e+NaN,i=e;n[i]&&!(i>=r);)++i;if(16<i-e&&n.subarray&&C)e=C.decode(n.subarray(e,i));else{for(r=``;e<i;){var a=n[e++];if(a&128){var o=n[e++]&63;if((a&224)==192)r+=String.fromCharCode((a&31)<<6|o);else{var s=n[e++]&63;a=(a&240)==224?(a&15)<<12|o<<6|s:(a&7)<<18|o<<12|s<<6|n[e++]&63,65536>a?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|a&1023))}}else r+=String.fromCharCode(a)}e=r}}else e=``;else e=t===`boolean`?!!e:e;return e}(n),e!==0&&q(e),n}var C=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0,w,T,E;function D(){var e=v.buffer;w=e,n.HEAP8=T=new Int8Array(e),n.HEAP16=new Int16Array(e),n.HEAP32=new Int32Array(e),n.HEAPU8=E=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=new Float32Array(e),n.HEAPF64=new Float64Array(e)}var O,k=[],A=[],j=[];function M(){var e=n.preRun.shift();k.unshift(e)}var N=0,P=null,F=null;n.preloadedImages={},n.preloadedAudios={};function I(e){throw n.onAbort&&n.onAbort(e),g(e),y=!0,e=new WebAssembly.RuntimeError(`abort(`+e+`). Build with -s ASSERTIONS=1 for more info.`),i(e),e}var L=`data:application/octet-stream;base64,`,R=`data:application/octet-stream;base64,AGFzbQEAAAABIAZgAX8Bf2ADf39/AGABfwBgAABgAAF/YAZ/f39/f38AAgcBAWEBYQAAAwsKAAEDAQAAAgQFAgQFAXABAQEFBwEBgAKAgAIGCQF/AUGAjMACCwclCQFiAgABYwADAWQACQFlAAgBZgAHAWcABgFoAAUBaQAKAWoBAAqGTQpPAQJ/QYAIKAIAIgEgAEEDakF8cSICaiEAAkAgAkEAIAAgAU0bDQAgAD8AQRB0SwRAIAAQAEUNAQtBgAggADYCACABDwtBhAhBMDYCAEF/C4wFAg5+Cn8gACgCJCEUIAAoAiAhFSAAKAIcIREgACgCGCESIAAoAhQhEyACQRBPBEAgAC0ATEVBGHQhFyAAKAIEIhZBBWytIQ8gACgCCCIYQQVsrSENIAAoAgwiGUEFbK0hCyAAKAIQIhpBBWytIQkgADUCACEIIBqtIRAgGa0hDiAYrSEMIBatIQoDQCASIAEtAAMiEiABLQAEQQh0ciABLQAFQRB0ciABLQAGIhZBGHRyQQJ2Qf///x9xaq0iAyAOfiABLwAAIAEtAAJBEHRyIBNqIBJBGHRBgICAGHFqrSIEIBB+fCARIAEtAAdBCHQgFnIgAS0ACEEQdHIgAS0ACSIRQRh0ckEEdkH///8fcWqtIgUgDH58IAEtAApBCHQgEXIgAS0AC0EQdHIgAS0ADEEYdHJBBnYgFWqtIgYgCn58IBQgF2ogAS8ADSABLQAPQRB0cmqtIgcgCH58IAMgDH4gBCAOfnwgBSAKfnwgBiAIfnwgByAJfnwgAyAKfiAEIAx+fCAFIAh+fCAGIAl+fCAHIAt+fCADIAh+IAQgCn58IAUgCX58IAYgC358IAcgDX58IAMgCX4gBCAIfnwgBSALfnwgBiANfnwgByAPfnwiA0IaiEL/////D4N8IgRCGohC/////w+DfCIFQhqIQv////8Pg3wiBkIaiEL/////D4N8IgdCGoinQQVsIAOnQf///x9xaiITQRp2IASnQf///x9xaiESIAWnQf///x9xIREgBqdB////H3EhFSAHp0H///8fcSEUIBNB////H3EhEyABQRBqIQEgAkEQayICQQ9LDQALCyAAIBQ2AiQgACAVNgIgIAAgETYCHCAAIBI2AhggACATNgIUCwMAAQu2BAEGfwJAIAAoAjgiBARAIABBPGohBQJAIAJBECAEayIDIAIgA0kbIgZFDQAgBkEDcSEHAkAgBkEBa0EDSQRAQQAhAwwBCyAGQXxxIQhBACEDA0AgBSADIARqaiABIANqLQAAOgAAIAUgA0EBciIEIAAoAjhqaiABIARqLQAAOgAAIAUgA0ECciIEIAAoAjhqaiABIARqLQAAOgAAIAUgA0EDciIEIAAoAjhqaiABIARqLQAAOgAAIANBBGohAyAAKAI4IQQgCEEEayIIDQALCyAHRQ0AA0AgBSADIARqaiABIANqLQAAOgAAIANBAWohAyAAKAI4IQQgB0EBayIHDQALCyAAIAQgBmoiAzYCOCADQRBJDQEgACAFQRAQAiAAQQA2AjggAiAGayECIAEgBmohAQsgAkEQTwRAIAAgASACQXBxIgMQAiACQQ9xIQIgASADaiEBCyACRQ0AIAJBA3EhBCAAQTxqIQVBACEDIAJBAWtBA08EQCACQXxxIQcDQCAFIAAoAjggA2pqIAEgA2otAAA6AAAgBSADQQFyIgYgACgCOGpqIAEgBmotAAA6AAAgBSADQQJyIgYgACgCOGpqIAEgBmotAAA6AAAgBSADQQNyIgYgACgCOGpqIAEgBmotAAA6AAAgA0EEaiEDIAdBBGsiBw0ACwsgBARAA0AgBSAAKAI4IANqaiABIANqLQAAOgAAIANBAWohAyAEQQFrIgQNAAsLIAAgACgCOCACajYCOAsLoS0BDH8jAEEQayIMJAACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAEH0AU0EQEGICCgCACIFQRAgAEELakF4cSAAQQtJGyIIQQN2IgJ2IgFBA3EEQCABQX9zQQFxIAJqIgNBA3QiAUG4CGooAgAiBEEIaiEAAkAgBCgCCCICIAFBsAhqIgFGBEBBiAggBUF+IAN3cTYCAAwBCyACIAE2AgwgASACNgIICyAEIANBA3QiAUEDcjYCBCABIARqIgEgASgCBEEBcjYCBAwNCyAIQZAIKAIAIgpNDQEgAQRAAkBBAiACdCIAQQAgAGtyIAEgAnRxIgBBACAAa3FBAWsiACAAQQx2QRBxIgJ2IgFBBXZBCHEiACACciABIAB2IgFBAnZBBHEiAHIgASAAdiIBQQF2QQJxIgByIAEgAHYiAUEBdkEBcSIAciABIAB2aiIDQQN0IgBBuAhqKAIAIgQoAggiASAAQbAIaiIARgRAQYgIIAVBfiADd3EiBTYCAAwBCyABIAA2AgwgACABNgIICyAEQQhqIQAgBCAIQQNyNgIEIAQgCGoiAiADQQN0IgEgCGsiA0EBcjYCBCABIARqIAM2AgAgCgRAIApBA3YiAUEDdEGwCGohB0GcCCgCACEEAn8gBUEBIAF0IgFxRQRAQYgIIAEgBXI2AgAgBwwBCyAHKAIICyEBIAcgBDYCCCABIAQ2AgwgBCAHNgIMIAQgATYCCAtBnAggAjYCAEGQCCADNgIADA0LQYwIKAIAIgZFDQEgBkEAIAZrcUEBayIAIABBDHZBEHEiAnYiAUEFdkEIcSIAIAJyIAEgAHYiAUECdkEEcSIAciABIAB2IgFBAXZBAnEiAHIgASAAdiIBQQF2QQFxIgByIAEgAHZqQQJ0QbgKaigCACIBKAIEQXhxIAhrIQMgASECA0ACQCACKAIQIgBFBEAgAigCFCIARQ0BCyAAKAIEQXhxIAhrIgIgAyACIANJIgIbIQMgACABIAIbIQEgACECDAELCyABIAhqIgkgAU0NAiABKAIYIQsgASABKAIMIgRHBEAgASgCCCIAQZgIKAIASRogACAENgIMIAQgADYCCAwMCyABQRRqIgIoAgAiAEUEQCABKAIQIgBFDQQgAUEQaiECCwNAIAIhByAAIgRBFGoiAigCACIADQAgBEEQaiECIAQoAhAiAA0ACyAHQQA2AgAMCwtBfyEIIABBv39LDQAgAEELaiIAQXhxIQhBjAgoAgAiCUUNAEEAIAhrIQMCQAJAAkACf0EAIAhBgAJJDQAaQR8gCEH///8HSw0AGiAAQQh2IgAgAEGA/j9qQRB2QQhxIgJ0IgAgAEGA4B9qQRB2QQRxIgF0IgAgAEGAgA9qQRB2QQJxIgB0QQ92IAEgAnIgAHJrIgBBAXQgCCAAQRVqdkEBcXJBHGoLIgVBAnRBuApqKAIAIgJFBEBBACEADAELQQAhACAIQQBBGSAFQQF2ayAFQR9GG3QhAQNAAkAgAigCBEF4cSAIayIHIANPDQAgAiEEIAciAw0AQQAhAyACIQAMAwsgACACKAIUIgcgByACIAFBHXZBBHFqKAIQIgJGGyAAIAcbIQAgAUEBdCEBIAINAAsLIAAgBHJFBEBBACEEQQIgBXQiAEEAIABrciAJcSIARQ0DIABBACAAa3FBAWsiACAAQQx2QRBxIgJ2IgFBBXZBCHEiACACciABIAB2IgFBAnZBBHEiAHIgASAAdiIBQQF2QQJxIgByIAEgAHYiAUEBdkEBcSIAciABIAB2akECdEG4CmooAgAhAAsgAEUNAQsDQCAAKAIEQXhxIAhrIgEgA0khAiABIAMgAhshAyAAIAQgAhshBCAAKAIQIgEEfyABBSAAKAIUCyIADQALCyAERQ0AIANBkAgoAgAgCGtPDQAgBCAIaiIGIARNDQEgBCgCGCEFIAQgBCgCDCIBRwRAIAQoAggiAEGYCCgCAEkaIAAgATYCDCABIAA2AggMCgsgBEEUaiICKAIAIgBFBEAgBCgCECIARQ0EIARBEGohAgsDQCACIQcgACIBQRRqIgIoAgAiAA0AIAFBEGohAiABKAIQIgANAAsgB0EANgIADAkLIAhBkAgoAgAiAk0EQEGcCCgCACEDAkAgAiAIayIBQRBPBEBBkAggATYCAEGcCCADIAhqIgA2AgAgACABQQFyNgIEIAIgA2ogATYCACADIAhBA3I2AgQMAQtBnAhBADYCAEGQCEEANgIAIAMgAkEDcjYCBCACIANqIgAgACgCBEEBcjYCBAsgA0EIaiEADAsLIAhBlAgoAgAiBkkEQEGUCCAGIAhrIgE2AgBBoAhBoAgoAgAiAiAIaiIANgIAIAAgAUEBcjYCBCACIAhBA3I2AgQgAkEIaiEADAsLQQAhACAIQS9qIgkCf0HgCygCAARAQegLKAIADAELQewLQn83AgBB5AtCgKCAgICABDcCAEHgCyAMQQxqQXBxQdiq1aoFczYCAEH0C0EANgIAQcQLQQA2AgBBgCALIgFqIgVBACABayIHcSICIAhNDQpBwAsoAgAiBARAQbgLKAIAIgMgAmoiASADTQ0LIAEgBEsNCwtBxAstAABBBHENBQJAAkBBoAgoAgAiAwRAQcgLIQADQCADIAAoAgAiAU8EQCABIAAoAgRqIANLDQMLIAAoAggiAA0ACwtBABABIgFBf0YNBiACIQVB5AsoAgAiA0EBayIAIAFxBEAgAiABayAAIAFqQQAgA2txaiEFCyAFIAhNDQYgBUH+////B0sNBkHACygCACIEBEBBuAsoAgAiAyAFaiIAIANNDQcgACAESw0HCyAFEAEiACABRw0BDAgLIAUgBmsgB3EiBUH+////B0sNBSAFEAEiASAAKAIAIAAoAgRqRg0EIAEhAAsCQCAAQX9GDQAgCEEwaiAFTQ0AQegLKAIAIgEgCSAFa2pBACABa3EiAUH+////B0sEQCAAIQEMCAsgARABQX9HBEAgASAFaiEFIAAhAQwIC0EAIAVrEAEaDAULIAAiAUF/Rw0GDAQLAAtBACEEDAcLQQAhAQwFCyABQX9HDQILQcQLQcQLKAIAQQRyNgIACyACQf7///8HSw0BIAIQASEBQQAQASEAIAFBf0YNASAAQX9GDQEgACABTQ0BIAAgAWsiBSAIQShqTQ0BC0G4C0G4CygCACAFaiIANgIAQbwLKAIAIABJBEBBvAsgADYCAAsCQAJAAkBBoAgoAgAiBwRAQcgLIQADQCABIAAoAgAiAyAAKAIEIgJqRg0CIAAoAggiAA0ACwwCC0GYCCgCACIAQQAgACABTRtFBEBBmAggATYCAAtBACEAQcwLIAU2AgBByAsgATYCAEGoCEF/NgIAQawIQeALKAIANgIAQdQLQQA2AgADQCAAQQN0IgNBuAhqIANBsAhqIgI2AgAgA0G8CGogAjYCACAAQQFqIgBBIEcNAAtBlAggBUEoayIDQXggAWtBB3FBACABQQhqQQdxGyIAayICNgIAQaAIIAAgAWoiADYCACAAIAJBAXI2AgQgASADakEoNgIEQaQIQfALKAIANgIADAILIAAtAAxBCHENACADIAdLDQAgASAHTQ0AIAAgAiAFajYCBEGgCCAHQXggB2tBB3FBACAHQQhqQQdxGyIAaiICNgIAQZQIQZQIKAIAIAVqIgEgAGsiADYCACACIABBAXI2AgQgASAHakEoNgIEQaQIQfALKAIANgIADAELQZgIKAIAIAFLBEBBmAggATYCAAsgASAFaiECQcgLIQACQAJAAkACQAJAAkADQCACIAAoAgBHBEAgACgCCCIADQEMAgsLIAAtAAxBCHFFDQELQcgLIQADQCAHIAAoAgAiAk8EQCACIAAoAgRqIgQgB0sNAwsgACgCCCEADAALAAsgACABNgIAIAAgACgCBCAFajYCBCABQXggAWtBB3FBACABQQhqQQdxG2oiCSAIQQNyNgIEIAJBeCACa0EHcUEAIAJBCGpBB3EbaiIFIAggCWoiBmshAiAFIAdGBEBBoAggBjYCAEGUCEGUCCgCACACaiIANgIAIAYgAEEBcjYCBAwDCyAFQZwIKAIARgRAQZwIIAY2AgBBkAhBkAgoAgAgAmoiADYCACAGIABBAXI2AgQgACAGaiAANgIADAMLIAUoAgQiAEEDcUEBRgRAIABBeHEhBwJAIABB/wFNBEAgBSgCCCIDIABBA3YiAEEDdEGwCGpGGiADIAUoAgwiAUYEQEGICEGICCgCAEF+IAB3cTYCAAwCCyADIAE2AgwgASADNgIIDAELIAUoAhghCAJAIAUgBSgCDCIBRwRAIAUoAggiACABNgIMIAEgADYCCAwBCwJAIAVBFGoiACgCACIDDQAgBUEQaiIAKAIAIgMNAEEAIQEMAQsDQCAAIQQgAyIBQRRqIgAoAgAiAw0AIAFBEGohACABKAIQIgMNAAsgBEEANgIACyAIRQ0AAkAgBSAFKAIcIgNBAnRBuApqIgAoAgBGBEAgACABNgIAIAENAUGMCEGMCCgCAEF+IAN3cTYCAAwCCyAIQRBBFCAIKAIQIAVGG2ogATYCACABRQ0BCyABIAg2AhggBSgCECIABEAgASAANgIQIAAgATYCGAsgBSgCFCIARQ0AIAEgADYCFCAAIAE2AhgLIAUgB2ohBSACIAdqIQILIAUgBSgCBEF+cTYCBCAGIAJBAXI2AgQgAiAGaiACNgIAIAJB/wFNBEAgAkEDdiIAQQN0QbAIaiECAn9BiAgoAgAiAUEBIAB0IgBxRQRAQYgIIAAgAXI2AgAgAgwBCyACKAIICyEAIAIgBjYCCCAAIAY2AgwgBiACNgIMIAYgADYCCAwDC0EfIQAgAkH///8HTQRAIAJBCHYiACAAQYD+P2pBEHZBCHEiA3QiACAAQYDgH2pBEHZBBHEiAXQiACAAQYCAD2pBEHZBAnEiAHRBD3YgASADciAAcmsiAEEBdCACIABBFWp2QQFxckEcaiEACyAGIAA2AhwgBkIANwIQIABBAnRBuApqIQQCQEGMCCgCACIDQQEgAHQiAXFFBEBBjAggASADcjYCACAEIAY2AgAgBiAENgIYDAELIAJBAEEZIABBAXZrIABBH0YbdCEAIAQoAgAhAQNAIAEiAygCBEF4cSACRg0DIABBHXYhASAAQQF0IQAgAyABQQRxaiIEKAIQIgENAAsgBCAGNgIQIAYgAzYCGAsgBiAGNgIMIAYgBjYCCAwCC0GUCCAFQShrIgNBeCABa0EHcUEAIAFBCGpBB3EbIgBrIgI2AgBBoAggACABaiIANgIAIAAgAkEBcjYCBCABIANqQSg2AgRBpAhB8AsoAgA2AgAgByAEQScgBGtBB3FBACAEQSdrQQdxG2pBL2siACAAIAdBEGpJGyICQRs2AgQgAkHQCykCADcCECACQcgLKQIANwIIQdALIAJBCGo2AgBBzAsgBTYCAEHICyABNgIAQdQLQQA2AgAgAkEYaiEAA0AgAEEHNgIEIABBCGohASAAQQRqIQAgASAESQ0ACyACIAdGDQMgAiACKAIEQX5xNgIEIAcgAiAHayIEQQFyNgIEIAIgBDYCACAEQf8BTQRAIARBA3YiAEEDdEGwCGohAgJ/QYgIKAIAIgFBASAAdCIAcUUEQEGICCAAIAFyNgIAIAIMAQsgAigCCAshACACIAc2AgggACAHNgIMIAcgAjYCDCAHIAA2AggMBAtBHyEAIAdCADcCECAEQf///wdNBEAgBEEIdiIAIABBgP4/akEQdkEIcSICdCIAIABBgOAfakEQdkEEcSIBdCIAIABBgIAPakEQdkECcSIAdEEPdiABIAJyIAByayIAQQF0IAQgAEEVanZBAXFyQRxqIQALIAcgADYCHCAAQQJ0QbgKaiEDAkBBjAgoAgAiAkEBIAB0IgFxRQRAQYwIIAEgAnI2AgAgAyAHNgIAIAcgAzYCGAwBCyAEQQBBGSAAQQF2ayAAQR9GG3QhACADKAIAIQEDQCABIgIoAgRBeHEgBEYNBCAAQR12IQEgAEEBdCEAIAIgAUEEcWoiAygCECIBDQALIAMgBzYCECAHIAI2AhgLIAcgBzYCDCAHIAc2AggMAwsgAygCCCIAIAY2AgwgAyAGNgIIIAZBADYCGCAGIAM2AgwgBiAANgIICyAJQQhqIQAMBQsgAigCCCIAIAc2AgwgAiAHNgIIIAdBADYCGCAHIAI2AgwgByAANgIIC0GUCCgCACIAIAhNDQBBlAggACAIayIBNgIAQaAIQaAIKAIAIgIgCGoiADYCACAAIAFBAXI2AgQgAiAIQQNyNgIEIAJBCGohAAwDC0GECEEwNgIAQQAhAAwCCwJAIAVFDQACQCAEKAIcIgJBAnRBuApqIgAoAgAgBEYEQCAAIAE2AgAgAQ0BQYwIIAlBfiACd3EiCTYCAAwCCyAFQRBBFCAFKAIQIARGG2ogATYCACABRQ0BCyABIAU2AhggBCgCECIABEAgASAANgIQIAAgATYCGAsgBCgCFCIARQ0AIAEgADYCFCAAIAE2AhgLAkAgA0EPTQRAIAQgAyAIaiIAQQNyNgIEIAAgBGoiACAAKAIEQQFyNgIEDAELIAQgCEEDcjYCBCAGIANBAXI2AgQgAyAGaiADNgIAIANB/wFNBEAgA0EDdiIAQQN0QbAIaiECAn9BiAgoAgAiAUEBIAB0IgBxRQRAQYgIIAAgAXI2AgAgAgwBCyACKAIICyEAIAIgBjYCCCAAIAY2AgwgBiACNgIMIAYgADYCCAwBC0EfIQAgA0H///8HTQRAIANBCHYiACAAQYD+P2pBEHZBCHEiAnQiACAAQYDgH2pBEHZBBHEiAXQiACAAQYCAD2pBEHZBAnEiAHRBD3YgASACciAAcmsiAEEBdCADIABBFWp2QQFxckEcaiEACyAGIAA2AhwgBkIANwIQIABBAnRBuApqIQICQAJAIAlBASAAdCIBcUUEQEGMCCABIAlyNgIAIAIgBjYCACAGIAI2AhgMAQsgA0EAQRkgAEEBdmsgAEEfRht0IQAgAigCACEIA0AgCCIBKAIEQXhxIANGDQIgAEEddiECIABBAXQhACABIAJBBHFqIgIoAhAiCA0ACyACIAY2AhAgBiABNgIYCyAGIAY2AgwgBiAGNgIIDAELIAEoAggiACAGNgIMIAEgBjYCCCAGQQA2AhggBiABNgIMIAYgADYCCAsgBEEIaiEADAELAkAgC0UNAAJAIAEoAhwiAkECdEG4CmoiACgCACABRgRAIAAgBDYCACAEDQFBjAggBkF+IAJ3cTYCAAwCCyALQRBBFCALKAIQIAFGG2ogBDYCACAERQ0BCyAEIAs2AhggASgCECIABEAgBCAANgIQIAAgBDYCGAsgASgCFCIARQ0AIAQgADYCFCAAIAQ2AhgLAkAgA0EPTQRAIAEgAyAIaiIAQQNyNgIEIAAgAWoiACAAKAIEQQFyNgIEDAELIAEgCEEDcjYCBCAJIANBAXI2AgQgAyAJaiADNgIAIAoEQCAKQQN2IgBBA3RBsAhqIQRBnAgoAgAhAgJ/QQEgAHQiACAFcUUEQEGICCAAIAVyNgIAIAQMAQsgBCgCCAshACAEIAI2AgggACACNgIMIAIgBDYCDCACIAA2AggLQZwIIAk2AgBBkAggAzYCAAsgAUEIaiEACyAMQRBqJAAgAAsQACMAIABrQXBxIgAkACAACwYAIAAkAAsEACMAC4AJAgh/BH4jAEGQAWsiBiQAIAYgBS0AA0EYdEGAgIAYcSAFLwAAIAUtAAJBEHRycjYCACAGIAUoAANBAnZBg/7/H3E2AgQgBiAFKAAGQQR2Qf+B/x9xNgIIIAYgBSgACUEGdkH//8AfcTYCDCAFLwANIQggBS0ADyEJIAZCADcCFCAGQgA3AhwgBkEANgIkIAYgCCAJQRB0QYCAPHFyNgIQIAYgBSgAEDYCKCAGIAUoABQ2AiwgBiAFKAAYNgIwIAUoABwhBSAGQQA6AEwgBkEANgI4IAYgBTYCNCAGIAEgAhAEIAQEQCAGIAMgBBAECyAGKAI4IgEEQCAGQTxqIgIgAWpBAToAACABQQFqQQ9NBEAgASAGakE9aiEEAkBBDyABayIDRQ0AIAMgBGoiAUEBa0EAOgAAIARBADoAACADQQNJDQAgAUECa0EAOgAAIARBADoAASABQQNrQQA6AAAgBEEAOgACIANBB0kNACABQQRrQQA6AAAgBEEAOgADIANBCUkNACAEQQAgBGtBA3EiAWoiBEEANgIAIAQgAyABa0F8cSIBaiIDQQRrQQA2AgAgAUEJSQ0AIARBADYCCCAEQQA2AgQgA0EIa0EANgIAIANBDGtBADYCACABQRlJDQAgBEEANgIYIARBADYCFCAEQQA2AhAgBEEANgIMIANBEGtBADYCACADQRRrQQA2AgAgA0EYa0EANgIAIANBHGtBADYCACABIARBBHFBGHIiAWsiA0EgSQ0AIAEgBGohAQNAIAFCADcDGCABQgA3AxAgAUIANwMIIAFCADcDACABQSBqIQEgA0EgayIDQR9LDQALCwsgBkEBOgBMIAYgAkEQEAILIAY1AjQhECAGNQIwIREgBjUCLCEOIAAgBjUCKCAGKAIkIAYoAiAgBigCHCAGKAIYIgNBGnZqIgJBGnZqIgFBGnZqIgtBgICAYHIgAUH///8fcSINIAJB////H3EiCCAGKAIUIAtBGnZBBWxqIgFB////H3EiCUEFaiIFQRp2IANB////H3EgAUEadmoiA2oiAUEadmoiAkEadmoiBEEadmoiDEEfdSIHIANxIAEgDEEfdkEBayIDQf///x9xIgpxciIBQRp0IAUgCnEgByAJcXJyrXwiDzwAACAAIA9CGIg8AAMgACAPQhCIPAACIAAgD0IIiDwAASAAIA4gByAIcSACIApxciICQRR0IAFBBnZyrXwgD0IgiHwiDjwABCAAIA5CGIg8AAcgACAOQhCIPAAGIAAgDkIIiDwABSAAIBEgByANcSAEIApxciIBQQ50IAJBDHZyrXwgDkIgiHwiDjwACCAAIA5CGIg8AAsgACAOQhCIPAAKIAAgDkIIiDwACSAAIBAgAyAMcSAHIAtxckEIdCABQRJ2cq18IA5CIIh8Ig48AAwgACAOQhiIPAAPIAAgDkIQiDwADiAAIA5CCIg8AA0gBkIANwIwIAZCADcCKCAGQgA3AiAgBkIANwIYIAZCADcCECAGQgA3AgggBkIANwIAIAZBkAFqJAALpwwBB38CQCAARQ0AIABBCGsiAyAAQQRrKAIAIgFBeHEiAGohBQJAIAFBAXENACABQQNxRQ0BIAMgAygCACIBayIDQZgIKAIASQ0BIAAgAWohACADQZwIKAIARwRAIAFB/wFNBEAgAygCCCICIAFBA3YiBEEDdEGwCGpGGiACIAMoAgwiAUYEQEGICEGICCgCAEF+IAR3cTYCAAwDCyACIAE2AgwgASACNgIIDAILIAMoAhghBgJAIAMgAygCDCIBRwRAIAMoAggiAiABNgIMIAEgAjYCCAwBCwJAIANBFGoiAigCACIEDQAgA0EQaiICKAIAIgQNAEEAIQEMAQsDQCACIQcgBCIBQRRqIgIoAgAiBA0AIAFBEGohAiABKAIQIgQNAAsgB0EANgIACyAGRQ0BAkAgAyADKAIcIgJBAnRBuApqIgQoAgBGBEAgBCABNgIAIAENAUGMCEGMCCgCAEF+IAJ3cTYCAAwDCyAGQRBBFCAGKAIQIANGG2ogATYCACABRQ0CCyABIAY2AhggAygCECICBEAgASACNgIQIAIgATYCGAsgAygCFCICRQ0BIAEgAjYCFCACIAE2AhgMAQsgBSgCBCIBQQNxQQNHDQBBkAggADYCACAFIAFBfnE2AgQgAyAAQQFyNgIEIAAgA2ogADYCAA8LIAMgBU8NACAFKAIEIgFBAXFFDQACQCABQQJxRQRAIAVBoAgoAgBGBEBBoAggAzYCAEGUCEGUCCgCACAAaiIANgIAIAMgAEEBcjYCBCADQZwIKAIARw0DQZAIQQA2AgBBnAhBADYCAA8LIAVBnAgoAgBGBEBBnAggAzYCAEGQCEGQCCgCACAAaiIANgIAIAMgAEEBcjYCBCAAIANqIAA2AgAPCyABQXhxIABqIQACQCABQf8BTQRAIAUoAggiAiABQQN2IgRBA3RBsAhqRhogAiAFKAIMIgFGBEBBiAhBiAgoAgBBfiAEd3E2AgAMAgsgAiABNgIMIAEgAjYCCAwBCyAFKAIYIQYCQCAFIAUoAgwiAUcEQCAFKAIIIgJBmAgoAgBJGiACIAE2AgwgASACNgIIDAELAkAgBUEUaiICKAIAIgQNACAFQRBqIgIoAgAiBA0AQQAhAQwBCwNAIAIhByAEIgFBFGoiAigCACIEDQAgAUEQaiECIAEoAhAiBA0ACyAHQQA2AgALIAZFDQACQCAFIAUoAhwiAkECdEG4CmoiBCgCAEYEQCAEIAE2AgAgAQ0BQYwIQYwIKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiABNgIAIAFFDQELIAEgBjYCGCAFKAIQIgIEQCABIAI2AhAgAiABNgIYCyAFKAIUIgJFDQAgASACNgIUIAIgATYCGAsgAyAAQQFyNgIEIAAgA2ogADYCACADQZwIKAIARw0BQZAIIAA2AgAPCyAFIAFBfnE2AgQgAyAAQQFyNgIEIAAgA2ogADYCAAsgAEH/AU0EQCAAQQN2IgFBA3RBsAhqIQACf0GICCgCACICQQEgAXQiAXFFBEBBiAggASACcjYCACAADAELIAAoAggLIQIgACADNgIIIAIgAzYCDCADIAA2AgwgAyACNgIIDwtBHyECIANCADcCECAAQf///wdNBEAgAEEIdiIBIAFBgP4/akEQdkEIcSIBdCICIAJBgOAfakEQdkEEcSICdCIEIARBgIAPakEQdkECcSIEdEEPdiABIAJyIARyayIBQQF0IAAgAUEVanZBAXFyQRxqIQILIAMgAjYCHCACQQJ0QbgKaiEBAkACQAJAQYwIKAIAIgRBASACdCIHcUUEQEGMCCAEIAdyNgIAIAEgAzYCACADIAE2AhgMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgASgCACEBA0AgASIEKAIEQXhxIABGDQIgAkEddiEBIAJBAXQhAiAEIAFBBHFqIgdBEGooAgAiAQ0ACyAHIAM2AhAgAyAENgIYCyADIAM2AgwgAyADNgIIDAELIAQoAggiACADNgIMIAQgAzYCCCADQQA2AhggAyAENgIMIAMgADYCCAtBqAhBqAgoAgBBAWsiAEF/IAAbNgIACwsLCQEAQYEICwIGUA==`;if(!R.startsWith(L)){var z=R;R=n.locateFile?n.locateFile(z,u):u+z}function B(){var e=R;try{if(e==R&&_)return new Uint8Array(_);var t=G(e);if(t)return t;if(p)return p(e);throw`both async and sync fetching of the wasm failed`}catch(e){I(e)}}function V(){if(!_&&(s||c)){if(typeof fetch==`function`&&!R.startsWith(`file://`))return fetch(R,{credentials:`same-origin`}).then(function(e){if(!e.ok)throw`failed to load wasm binary file at '`+R+`'`;return e.arrayBuffer()}).catch(function(){return B()});if(f)return new Promise(function(e,t){f(R,function(t){e(new Uint8Array(t))},t)})}return Promise.resolve().then(function(){return B()})}function H(e){for(;0<e.length;){var t=e.shift();if(typeof t==`function`)t(n);else{var r=t.m;typeof r==`number`?t.l===void 0?O.get(r)():O.get(r)(t.l):r(t.l===void 0?null:t.l)}}}var U=!1,W=typeof atob==`function`?atob:function(e){var t=``,n=0;e=e.replace(/[^A-Za-z0-9\+\/=]/g,``);do{var r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++)),i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++)),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++)),o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`.indexOf(e.charAt(n++));r=r<<2|i>>4,i=(i&15)<<4|a>>2;var s=(a&3)<<6|o;t+=String.fromCharCode(r),a!==64&&(t+=String.fromCharCode(i)),o!==64&&(t+=String.fromCharCode(s))}while(n<e.length);return t};function G(e){if(e.startsWith(L)){if(e=e.slice(L.length),typeof l==`boolean`&&l){var t=Buffer.from(e,`base64`);t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}else try{var n=W(e),r=new Uint8Array(n.length);for(e=0;e<n.length;++e)r[e]=n.charCodeAt(e);t=r}catch{throw Error(`Converting base64 string to bytes failed.`)}return t}}var ee={a:function(e){var t=E.length;if(e>>>=0,2147483648<e)return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296),r=Math.max(e,r),0<r%65536&&(r+=65536-r%65536);a:{try{v.grow(Math.min(2147483648,r)-w.byteLength+65535>>>16),D();var i=1;break a}catch{}i=void 0}if(i)return!0}return!1}};(function(){function e(e){n.asm=e.exports,v=n.asm.b,D(),O=n.asm.j,A.unshift(n.asm.c),N--,n.monitorRunDependencies&&n.monitorRunDependencies(N),N==0&&(P!==null&&(clearInterval(P),P=null),F&&(e=F,F=null,e()))}function t(t){e(t.instance)}function r(e){return V().then(function(e){return WebAssembly.instantiate(e,a)}).then(e,function(e){g(`failed to asynchronously prepare wasm: `+e),I(e)})}var a={a:ee};if(N++,n.monitorRunDependencies&&n.monitorRunDependencies(N),n.instantiateWasm)try{return n.instantiateWasm(a,e)}catch(e){return g(`Module.instantiateWasm callback failed with error: `+e),!1}return(function(){return _||typeof WebAssembly.instantiateStreaming!=`function`||R.startsWith(L)||R.startsWith(`file://`)||typeof fetch!=`function`?r(t):fetch(R,{credentials:`same-origin`}).then(function(e){return WebAssembly.instantiateStreaming(e,a).then(t,function(e){return g(`wasm streaming compile failed: `+e),g(`falling back to ArrayBuffer instantiation`),r(t)})})})().catch(i),{}})(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.c).apply(null,arguments)},n._poly1305_auth=function(){return(n._poly1305_auth=n.asm.d).apply(null,arguments)};var K=n.stackSave=function(){return(K=n.stackSave=n.asm.e).apply(null,arguments)},q=n.stackRestore=function(){return(q=n.stackRestore=n.asm.f).apply(null,arguments)},te=n.stackAlloc=function(){return(te=n.stackAlloc=n.asm.g).apply(null,arguments)};n._malloc=function(){return(n._malloc=n.asm.h).apply(null,arguments)},n._free=function(){return(n._free=n.asm.i).apply(null,arguments)},n.cwrap=function(e,t,n,r){n||=[];var i=n.every(function(e){return e===`number`});return t!==`string`&&i&&!r?x(e):function(){return S(e,t,n,arguments)}};var ne;F=function e(){ne||re(),ne||(F=e)};function re(){function e(){if(!ne&&(ne=!0,n.calledRun=!0,!y)){if(H(A),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for(typeof n.postRun==`function`&&(n.postRun=[n.postRun]);n.postRun.length;){var e=n.postRun.shift();j.unshift(e)}H(j)}}if(!(0<N)){if(n.preRun)for(typeof n.preRun==`function`&&(n.preRun=[n.preRun]);n.preRun.length;)M();H(k),0<N||(n.setStatus?(n.setStatus(`Running...`),setTimeout(function(){setTimeout(function(){n.setStatus(``)},1),e()},1)):e())}}if(n.run=re,n.preInit)for(typeof n.preInit==`function`&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return re(),t.ready})})();typeof e==`object`&&typeof t==`object`?t.exports=n:typeof define==`function`&&define.amd?define([],function(){return n}):typeof e==`object`&&(e.createPoly1305=n)})),ih=s(((e,t)=>{let{createCipheriv:n,createDecipheriv:r,createHmac:i,randomFillSync:a,timingSafeEqual:o}=require("crypto"),{readUInt32BE:s,writeUInt32BE:c}=nh(),l=Buffer[Symbol.species],u=2**32-1,d=Buffer.alloc(0),f=Buffer.alloc(4),p=new Map,m=35e3,h,g,_,v,y,b,x;try{h=require("./crypto/build/Release/sshcrypto.node"),{AESGCMCipher:g,ChaChaPolyCipher:_,GenericCipher:v,AESGCMDecipher:y,ChaChaPolyDecipher:b,GenericDecipher:x}=h}catch{}let S=(()=>{function e(e,t,n,r,i,a,o){return{sslName:e,blockLen:t,keyLen:n,ivLen:r!==0||o&1?r:t,authLen:i,discardLen:a,stream:!!(o&1)}}return{"chacha20-poly1305@openssh.com":e(`chacha20`,8,64,0,16,0,1),"aes128-gcm":e(`aes-128-gcm`,16,16,12,16,0,1),"aes256-gcm":e(`aes-256-gcm`,16,32,12,16,0,1),"aes128-gcm@openssh.com":e(`aes-128-gcm`,16,16,12,16,0,1),"aes256-gcm@openssh.com":e(`aes-256-gcm`,16,32,12,16,0,1),"aes128-cbc":e(`aes-128-cbc`,16,16,0,0,0,0),"aes192-cbc":e(`aes-192-cbc`,16,24,0,0,0,0),"aes256-cbc":e(`aes-256-cbc`,16,32,0,0,0,0),"rijndael-cbc@lysator.liu.se":e(`aes-256-cbc`,16,32,0,0,0,0),"3des-cbc":e(`des-ede3-cbc`,8,24,0,0,0,0),"blowfish-cbc":e(`bf-cbc`,8,16,0,0,0,0),"idea-cbc":e(`idea-cbc`,8,16,0,0,0,0),"cast128-cbc":e(`cast-cbc`,8,16,0,0,0,0),"aes128-ctr":e(`aes-128-ctr`,16,16,16,0,0,1),"aes192-ctr":e(`aes-192-ctr`,16,24,16,0,0,1),"aes256-ctr":e(`aes-256-ctr`,16,32,16,0,0,1),"3des-ctr":e(`des-ede3`,8,24,8,0,0,1),"blowfish-ctr":e(`bf-ecb`,8,16,8,0,0,1),"cast128-ctr":e(`cast5-ecb`,8,16,8,0,0,1),arcfour:e(`rc4`,8,16,0,0,1536,1),arcfour128:e(`rc4`,8,16,0,0,1536,1),arcfour256:e(`rc4`,8,32,0,0,1536,1),arcfour512:e(`rc4`,8,64,0,0,1536,1)}})(),C=(()=>{function e(e,t,n,r){return{sslName:e,len:t,actualLen:n,isETM:r}}return{"hmac-md5":e(`md5`,16,16,!1),"hmac-md5-96":e(`md5`,16,12,!1),"hmac-ripemd160":e(`ripemd160`,20,20,!1),"hmac-sha1":e(`sha1`,20,20,!1),"hmac-sha1-etm@openssh.com":e(`sha1`,20,20,!0),"hmac-sha1-96":e(`sha1`,20,12,!1),"hmac-sha2-256":e(`sha256`,32,32,!1),"hmac-sha2-256-etm@openssh.com":e(`sha256`,32,32,!0),"hmac-sha2-256-96":e(`sha256`,32,12,!1),"hmac-sha2-512":e(`sha512`,64,64,!1),"hmac-sha2-512-etm@openssh.com":e(`sha512`,64,64,!0),"hmac-sha2-512-96":e(`sha512`,64,12,!1)}})();var w=class{constructor(e,t){this.outSeqno=e,this._onWrite=t,this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=8-(t&7);n<4&&(n+=8),t+=n;let r=Buffer.allocUnsafe(t);return c(r,t-4,0),r[4]=n,a(r,5+e,n),r}encrypt(e){this._dead||(this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}};let T=Buffer.alloc(32),E=Buffer.alloc(16),D,O,k;var A=class{constructor(e){let t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encKeyMain=t.cipherKey.slice(0,32),this._encKeyPktLen=t.cipherKey.slice(32),this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=8-(t-4&7);n<4&&(n+=8),t+=n;let r=Buffer.allocUnsafe(t);return c(r,t-4,0),r[4]=n,a(r,5+e,n),r}encrypt(e){if(this._dead)return;E[0]=0,c(E,this.outSeqno,12);let t=n(`chacha20`,this._encKeyMain,E).update(T),r=n(`chacha20`,this._encKeyPktLen,E).update(e.slice(0,4));this._onWrite(r),E[0]=1;let i=n(`chacha20`,this._encKeyMain,E).update(e.slice(4));this._onWrite(i),k(O,r,r.length,i,i.length,t);let a=Buffer.allocUnsafe(16);a.set(new Uint8Array(D.HEAPU8.buffer,O,16),0),this._onWrite(a),this.outSeqno=this.outSeqno+1>>>0}},j=class{constructor(e){let t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._instance=new _(t.cipherKey),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){let t=5+e,n=8-(t-4&7);n<4&&(n+=8),t+=n;let r=Buffer.allocUnsafe(t+16);return c(r,t-4,0),r[4]=n,a(r,5+e,n),r}encrypt(e){this._dead||(this._instance.encrypt(e,this.outSeqno),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}},M=class{constructor(e){let t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encSSLName=t.cipherInfo.sslName,this._encKey=t.cipherKey,this._encIV=t.cipherIV,this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=16-(t-4&15);n<4&&(n+=16),t+=n;let r=Buffer.allocUnsafe(t);return c(r,t-4,0),r[4]=n,a(r,5+e,n),r}encrypt(e){if(this._dead)return;let t=n(this._encSSLName,this._encKey,this._encIV);t.setAutoPadding(!1);let r=e.slice(0,4);t.setAAD(r),this._onWrite(r);let i=t.update(e.slice(4));this._onWrite(i);let a=t.final();a.length&&this._onWrite(a);let o=t.getAuthTag();this._onWrite(o),U(this._encIV),this.outSeqno=this.outSeqno+1>>>0}},N=class{constructor(e){let t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._instance=new g(t.cipherInfo.sslName,t.cipherKey,t.cipherIV),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){let t=5+e,n=16-(t-4&15);n<4&&(n+=16),t+=n;let r=Buffer.allocUnsafe(t+16);return c(r,t-4,0),r[4]=n,a(r,5+e,n),r}encrypt(e){this._dead||(this._instance.encrypt(e),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}},P=class{constructor(e){let t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encBlockLen=t.cipherInfo.blockLen,this._cipherInstance=n(t.cipherInfo.sslName,t.cipherKey,t.cipherIV),this._macSSLName=t.macInfo.sslName,this._macKey=t.macKey,this._macActualLen=t.macInfo.actualLen,this._macETM=t.macInfo.isETM,this._aadLen=this._macETM?4:0,this._dead=!1;let r=t.cipherInfo.discardLen;if(r){let e=p.get(r);e===void 0&&(e=Buffer.alloc(r),p.set(r,e)),this._cipherInstance.update(e)}}free(){this._dead=!0}allocPacket(e){let t=this._encBlockLen,n=5+e,r=t-(n-this._aadLen&t-1);r<4&&(r+=t),n+=r;let i=Buffer.allocUnsafe(n);return c(i,n-4,0),i[4]=r,a(i,5+e,r),i}encrypt(e){if(this._dead)return;let t;if(this._macETM){let n=new Uint8Array(e.buffer,e.byteOffset,4),r=this._cipherInstance.update(new Uint8Array(e.buffer,e.byteOffset+4,e.length-4));this._onWrite(n),this._onWrite(r),t=i(this._macSSLName,this._macKey),c(f,this.outSeqno,0),t.update(f),t.update(n),t.update(r)}else{let n=this._cipherInstance.update(e);this._onWrite(n),t=i(this._macSSLName,this._macKey),c(f,this.outSeqno,0),t.update(f),t.update(e)}let n=t.digest();n.length>this._macActualLen&&(n=n.slice(0,this._macActualLen)),this._onWrite(n),this.outSeqno=this.outSeqno+1>>>0}},F=class{constructor(e){let t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encBlockLen=t.cipherInfo.blockLen,this._macLen=t.macInfo.len,this._macActualLen=t.macInfo.actualLen,this._aadLen=t.macInfo.isETM?4:0,this._instance=new v(t.cipherInfo.sslName,t.cipherKey,t.cipherIV,t.macInfo.sslName,t.macKey,t.macInfo.isETM),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){let t=this._encBlockLen,n=5+e,r=t-(n-this._aadLen&t-1);r<4&&(r+=t),n+=r;let i=Buffer.allocUnsafe(n+this._macLen);return c(i,n-4,0),i[4]=r,a(i,5+e,r),i}encrypt(e){this._dead||(this._instance.encrypt(e,this.outSeqno),this._macActualLen<this._macLen&&(e=new l(e.buffer,e.byteOffset,e.length-(this._macLen-this._macActualLen))),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}},I=class{constructor(e,t){this.inSeqno=e,this._onPayload=t,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0}free(){}decrypt(e,t,n){for(;t<n;){if(this._lenBytes<4){let r=Math.min(4-this._lenBytes,n-t);for(this._lenBytes+=r;r--;)this._len=(this._len<<8)+e[t++];if(this._lenBytes<4)return;if(this._len>m||this._len<8||4+this._len&7)throw Error(`Bad packet length`);if(t>=n)return}if(this._packetPos<this._len){let r=Math.min(this._len-this._packetPos,n-t),i;if(i=t!==0||r!==n?new Uint8Array(e.buffer,e.byteOffset+t,r):e,r===this._len?this._packet=i:(this._packet||=Buffer.allocUnsafe(this._len),this._packet.set(i,this._packetPos)),t+=r,this._packetPos+=r,this._packetPos<this._len)return}let r=this._packet?new l(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1):d;this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0;{let e=this._onPayload(r);if(e!==void 0)return e===!1?t:e}}}},L=class{constructor(e){let t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._decKeyMain=t.decipherKey.slice(0,32),this._decKeyPktLen=t.decipherKey.slice(32),this._len=0,this._lenBuf=Buffer.alloc(4),this._lenPos=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(16),this._calcMac=Buffer.allocUnsafe(16),this._macPos=0}free(){}decrypt(e,t,i){for(;t<i;){if(this._lenPos<4){let n=Math.min(4-this._lenPos,i-t);for(;n--;)this._lenBuf[this._lenPos++]=e[t++];if(this._lenPos<4)return;E[0]=0,c(E,this.inSeqno,12);let a=r(`chacha20`,this._decKeyPktLen,E).update(this._lenBuf);if(this._len=s(a,0),this._len>m||this._len<8||this._len&7)throw Error(`Bad packet length`)}if(this._pktLen<this._len){if(t>=i)return;let n=Math.min(this._len-this._pktLen,i-t),r;if(r=t!==0||n!==i?new Uint8Array(e.buffer,e.byteOffset+t,n):e,n===this._len?this._packet=r:(this._packet||=Buffer.allocUnsafe(this._len),this._packet.set(r,this._pktLen)),t+=n,this._pktLen+=n,this._pktLen<this._len||t>=i)return}{let n=Math.min(16-this._macPos,i-t);if(t!==0||n!==i?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,n),this._macPos):this._mac.set(e,this._macPos),t+=n,this._macPos+=n,this._macPos<16)return}E[0]=0,c(E,this.inSeqno,12);let a=n(`chacha20`,this._decKeyMain,E).update(T);if(k(O,this._lenBuf,4,this._packet,this._packet.length,a),this._calcMac.set(new Uint8Array(D.HEAPU8.buffer,O,16),0),!o(this._calcMac,this._mac))throw Error(`Invalid MAC`);E[0]=1;let u=r(`chacha20`,this._decKeyMain,E).update(this._packet),d=new l(u.buffer,u.byteOffset+1,u.length-u[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenPos=0,this._packet=null,this._pktLen=0,this._macPos=0;{let e=this._onPayload(d);if(e!==void 0)return e===!1?t:e}}}},R=class{constructor(e){let t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new b(t.decipherKey),this._len=0,this._lenBuf=Buffer.alloc(4),this._lenPos=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(16),this._macPos=0}free(){this._instance.free()}decrypt(e,t,n){for(;t<n;){if(this._lenPos<4){let r=Math.min(4-this._lenPos,n-t);for(;r--;)this._lenBuf[this._lenPos++]=e[t++];if(this._lenPos<4)return;if(this._len=this._instance.decryptLen(this._lenBuf,this.inSeqno),this._len>m||this._len<8||this._len&7)throw Error(`Bad packet length`);if(t>=n)return}if(this._pktLen<this._len){let r=Math.min(this._len-this._pktLen,n-t),i;if(i=t!==0||r!==n?new Uint8Array(e.buffer,e.byteOffset+t,r):e,r===this._len?this._packet=i:(this._packet||=Buffer.allocUnsafe(this._len),this._packet.set(i,this._pktLen)),t+=r,this._pktLen+=r,this._pktLen<this._len||t>=n)return}{let r=Math.min(16-this._macPos,n-t);if(t!==0||r!==n?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._macPos):this._mac.set(e,this._macPos),t+=r,this._macPos+=r,this._macPos<16)return}this._instance.decrypt(this._packet,this._mac,this.inSeqno);let r=new l(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenPos=0,this._packet=null,this._pktLen=0,this._macPos=0;{let e=this._onPayload(r);if(e!==void 0)return e===!1?t:e}}}},z=class{constructor(e){let t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._decipherInstance=null,this._decipherSSLName=t.decipherInfo.sslName,this._decipherKey=t.decipherKey,this._decipherIV=t.decipherIV,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._tag=Buffer.allocUnsafe(16),this._tagPos=0}free(){}decrypt(e,t,n){for(;t<n;){if(this._lenBytes<4){let i=Math.min(4-this._lenBytes,n-t);for(this._lenBytes+=i;i--;)this._len=(this._len<<8)+e[t++];if(this._lenBytes<4)return;if(this._len+20>m||this._len<16||this._len&15)throw Error(`Bad packet length`);this._decipherInstance=r(this._decipherSSLName,this._decipherKey,this._decipherIV),this._decipherInstance.setAutoPadding(!1),this._decipherInstance.setAAD(W(this._len))}if(this._pktLen<this._len){if(t>=n)return;let r=Math.min(this._len-this._pktLen,n-t),i;if(i=t!==0||r!==n?this._decipherInstance.update(new Uint8Array(e.buffer,e.byteOffset+t,r)):this._decipherInstance.update(e),i.length&&(r===this._len?this._packet=i:(this._packet||=Buffer.allocUnsafe(this._len),this._packet.set(i,this._packetPos)),this._packetPos+=i.length),t+=r,this._pktLen+=r,this._pktLen<this._len||t>=n)return}{let r=Math.min(16-this._tagPos,n-t);if(t!==0||r!==n?this._tag.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._tagPos):this._tag.set(e,this._tagPos),t+=r,this._tagPos+=r,this._tagPos<16)return}{this._decipherInstance.setAuthTag(this._tag);let e=this._decipherInstance.final();e.length&&(this._packet?this._packet.set(e,this._packetPos):this._packet=e)}let i=this._packet?new l(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1):d;this.inSeqno=this.inSeqno+1>>>0,U(this._decipherIV),this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._tagPos=0;{let e=this._onPayload(i);if(e!==void 0)return e===!1?t:e}}}},B=class{constructor(e){let t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new y(t.decipherInfo.sslName,t.decipherKey,t.decipherIV),this._len=0,this._lenBytes=0,this._packet=null,this._pktLen=0,this._tag=Buffer.allocUnsafe(16),this._tagPos=0}free(){}decrypt(e,t,n){for(;t<n;){if(this._lenBytes<4){let r=Math.min(4-this._lenBytes,n-t);for(this._lenBytes+=r;r--;)this._len=(this._len<<8)+e[t++];if(this._lenBytes<4)return;if(this._len+20>m||this._len<16||this._len&15)throw Error(`Bad packet length: ${this._len}`)}if(this._pktLen<this._len){if(t>=n)return;let r=Math.min(this._len-this._pktLen,n-t),i;if(i=t!==0||r!==n?new Uint8Array(e.buffer,e.byteOffset+t,r):e,r===this._len?this._packet=i:(this._packet||=Buffer.allocUnsafe(this._len),this._packet.set(i,this._pktLen)),t+=r,this._pktLen+=r,this._pktLen<this._len||t>=n)return}{let r=Math.min(16-this._tagPos,n-t);if(t!==0||r!==n?this._tag.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._tagPos):this._tag.set(e,this._tagPos),t+=r,this._tagPos+=r,this._tagPos<16)return}this._instance.decrypt(this._packet,this._len,this._tag);let r=new l(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenBytes=0,this._packet=null,this._pktLen=0,this._tagPos=0;{let e=this._onPayload(r);if(e!==void 0)return e===!1?t:e}}}},V=class{constructor(e){let t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._decipherInstance=r(t.decipherInfo.sslName,t.decipherKey,t.decipherIV),this._decipherInstance.setAutoPadding(!1),this._block=Buffer.allocUnsafe(t.macInfo.isETM?4:t.decipherInfo.blockLen),this._blockSize=t.decipherInfo.blockLen,this._blockPos=0,this._len=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._mac=Buffer.allocUnsafe(t.macInfo.actualLen),this._macPos=0,this._macSSLName=t.macInfo.sslName,this._macKey=t.macKey,this._macActualLen=t.macInfo.actualLen,this._macETM=t.macInfo.isETM,this._macInstance=null;let n=t.decipherInfo.discardLen;if(n){let e=p.get(n);e===void 0&&(e=Buffer.alloc(n),p.set(n,e)),this._decipherInstance.update(e)}}free(){}decrypt(e,t,n){for(;t<n;){if(this._blockPos<this._block.length){let r=Math.min(this._block.length-this._blockPos,n-t);if(t!==0||r!==n||r<e.length?this._block.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._blockPos):this._block.set(e,this._blockPos),t+=r,this._blockPos+=r,this._blockPos<this._block.length)return;let a,o;if(this._macETM?this._len=o=s(this._block,0):(a=this._decipherInstance.update(this._block),this._len=s(a,0),o=4+this._len-this._blockSize),this._len>m||this._len<5||o&this._blockSize-1)throw Error(`Bad packet length`);if(this._macInstance=i(this._macSSLName,this._macKey),c(f,this.inSeqno,0),this._macInstance.update(f),this._macETM?this._macInstance.update(this._block):(this._macInstance.update(new Uint8Array(a.buffer,a.byteOffset,4)),this._pktLen=a.length-4,this._packetPos=this._pktLen,this._packet=Buffer.allocUnsafe(this._len),this._packet.set(new Uint8Array(a.buffer,a.byteOffset+4,this._packetPos),0)),t>=n)return}if(this._pktLen<this._len){let r=Math.min(this._len-this._pktLen,n-t),i;i=t!==0||r!==n?new Uint8Array(e.buffer,e.byteOffset+t,r):e,this._macETM&&this._macInstance.update(i);let a=this._decipherInstance.update(i);if(a.length&&(r===this._len?this._packet=a:(this._packet||=Buffer.allocUnsafe(this._len),this._packet.set(a,this._packetPos)),this._packetPos+=a.length),t+=r,this._pktLen+=r,this._pktLen<this._len||t>=n)return}{let r=Math.min(this._macActualLen-this._macPos,n-t);if(t!==0||r!==n?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._macPos):this._mac.set(e,this._macPos),t+=r,this._macPos+=r,this._macPos<this._macActualLen)return}this._macETM||this._macInstance.update(this._packet);let r=this._macInstance.digest();if(this._macActualLen<r.length&&(r=new Uint8Array(r.buffer,r.byteOffset,this._macActualLen)),!G(r,this._mac))throw Error(`Invalid MAC`);let a=new l(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._blockPos=0,this._len=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._macPos=0,this._macInstance=null;{let e=this._onPayload(a);if(e!==void 0)return e===!1?t:e}}}},H=class{constructor(e){let t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new x(t.decipherInfo.sslName,t.decipherKey,t.decipherIV,t.macInfo.sslName,t.macKey,t.macInfo.isETM,t.macInfo.actualLen),this._block=Buffer.allocUnsafe(t.macInfo.isETM||t.decipherInfo.stream?4:t.decipherInfo.blockLen),this._blockPos=0,this._len=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(t.macInfo.actualLen),this._macPos=0,this._macActualLen=t.macInfo.actualLen,this._macETM=t.macInfo.isETM}free(){this._instance.free()}decrypt(e,t,n){for(;t<n;){if(this._blockPos<this._block.length){let r=Math.min(this._block.length-this._blockPos,n-t);if(t!==0||r!==n||r<e.length?this._block.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._blockPos):this._block.set(e,this._blockPos),t+=r,this._blockPos+=r,this._blockPos<this._block.length)return;let i;if(this._macETM?this._len=i=s(this._block,0):(this._instance.decryptBlock(this._block),this._len=s(this._block,0),i=4+this._len-this._block.length),this._len>m||this._len<5||i&this._block.length-1)throw Error(`Bad packet length`);if(this._macETM||(this._pktLen=this._block.length-4,this._pktLen&&(this._packet=Buffer.allocUnsafe(this._len),this._packet.set(new Uint8Array(this._block.buffer,this._block.byteOffset+4,this._pktLen),0))),t>=n)return}if(this._pktLen<this._len){let r=Math.min(this._len-this._pktLen,n-t),i;if(i=t!==0||r!==n?new Uint8Array(e.buffer,e.byteOffset+t,r):e,r===this._len?this._packet=i:(this._packet||=Buffer.allocUnsafe(this._len),this._packet.set(i,this._pktLen)),t+=r,this._pktLen+=r,this._pktLen<this._len||t>=n)return}{let r=Math.min(this._macActualLen-this._macPos,n-t);if(t!==0||r!==n?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._macPos):this._mac.set(e,this._macPos),t+=r,this._macPos+=r,this._macPos<this._macActualLen)return}this._instance.decrypt(this._packet,this.inSeqno,this._block,this._mac);let r=new l(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._blockPos=0,this._len=0,this._packet=null,this._pktLen=0,this._macPos=0,this._macInstance=null;{let e=this._onPayload(r);if(e!==void 0)return e===!1?t:e}}}};function U(e){++e[11]>>>8&&++e[10]>>>8&&++e[9]>>>8&&++e[8]>>>8&&++e[7]>>>8&&++e[6]>>>8&&++e[5]>>>8&&++e[4]>>>8}let W=(()=>{let e=Buffer.alloc(4);return t=>(e[0]=t>>>24,e[1]=t>>>16,e[2]=t>>>8,e[3]=t,e)})();function G(e,t){return e.length===t.length?o(e,t):(o(e,e),!1)}function ee(e){if(typeof e!=`object`||!e)throw Error(`Invalid config`);if(typeof e.outbound!=`object`||e.outbound===null)throw Error(`Invalid outbound`);let t=e.outbound;if(typeof t.onWrite!=`function`)throw Error(`Invalid outbound.onWrite`);if(typeof t.cipherInfo!=`object`||t.cipherInfo===null)throw Error(`Invalid outbound.cipherInfo`);if(!Buffer.isBuffer(t.cipherKey)||t.cipherKey.length!==t.cipherInfo.keyLen)throw Error(`Invalid outbound.cipherKey`);if(t.cipherInfo.ivLen&&(!Buffer.isBuffer(t.cipherIV)||t.cipherIV.length!==t.cipherInfo.ivLen))throw Error(`Invalid outbound.cipherIV`);if(typeof t.seqno!=`number`||t.seqno<0||t.seqno>u)throw Error(`Invalid outbound.seqno`);let n=!!t.forceNative;switch(t.cipherInfo.sslName){case`aes-128-gcm`:case`aes-256-gcm`:return g&&!n?new N(e):new M(e);case`chacha20`:return _&&!n?new j(e):new A(e);default:if(typeof t.macInfo!=`object`||t.macInfo===null)throw Error(`Invalid outbound.macInfo`);if(!Buffer.isBuffer(t.macKey)||t.macKey.length!==t.macInfo.len)throw Error(`Invalid outbound.macKey`);return v&&!n?new F(e):new P(e)}}function K(e){if(typeof e!=`object`||!e)throw Error(`Invalid config`);if(typeof e.inbound!=`object`||e.inbound===null)throw Error(`Invalid inbound`);let t=e.inbound;if(typeof t.onPayload!=`function`)throw Error(`Invalid inbound.onPayload`);if(typeof t.decipherInfo!=`object`||t.decipherInfo===null)throw Error(`Invalid inbound.decipherInfo`);if(!Buffer.isBuffer(t.decipherKey)||t.decipherKey.length!==t.decipherInfo.keyLen)throw Error(`Invalid inbound.decipherKey`);if(t.decipherInfo.ivLen&&(!Buffer.isBuffer(t.decipherIV)||t.decipherIV.length!==t.decipherInfo.ivLen))throw Error(`Invalid inbound.decipherIV`);if(typeof t.seqno!=`number`||t.seqno<0||t.seqno>u)throw Error(`Invalid inbound.seqno`);let n=!!t.forceNative;switch(t.decipherInfo.sslName){case`aes-128-gcm`:case`aes-256-gcm`:return y&&!n?new B(e):new z(e);case`chacha20`:return b&&!n?new R(e):new L(e);default:if(typeof t.macInfo!=`object`||t.macInfo===null)throw Error(`Invalid inbound.macInfo`);if(!Buffer.isBuffer(t.macKey)||t.macKey.length!==t.macInfo.len)throw Error(`Invalid inbound.macKey`);return x&&!n?new H(e):new V(e)}}t.exports={CIPHER_INFO:S,MAC_INFO:C,bindingAvailable:!!h,init:new Promise(async(e,t)=>{try{D=await rh()(),O=D._malloc(16),k=D.cwrap(`poly1305_auth`,null,[`number`,`array`,`number`,`array`,`number`,`array`])}catch(e){return t(e)}e()}),NullCipher:w,createCipher:ee,NullDecipher:I,createDecipher:K}})),ah=s(((e,t)=>{let{createDecipheriv:n,createECDH:r,createHash:i,createHmac:a,createSign:o,createVerify:s,getCiphers:c,sign:l,verify:u}=require("crypto"),d=c(),{Ber:f}=Qm(),p=eh().pbkdf,{CIPHER_INFO:m}=ih(),{eddsaSupported:h,SUPPORTED_CIPHER:g}=th(),{bufferSlice:_,makeBufferParser:v,readString:y,readUInt32BE:b,writeUInt32BE:x}=nh(),S=Symbol(`Hash Algorithm`),C=Symbol(`Private key PEM`),w=Symbol(`Public key PEM`),T=Symbol(`Public key SSH`),E=Symbol(`Decrypted Key`),D=Object.create(null);{let e=Object.keys(m);for(let t=0;t<e.length;++t){let n=m[e[t]].sslName;!n||D[n]||(D[n]=m[e[t]])}}let O=v();function k(e,t){t=t.base64Slice(0,t.length);let n=t.replace(/.{64}/g,`$&
221
+ `);return t.length&63&&(n+=`
222
+ `),`-----BEGIN ${e} KEY-----\n${n}-----END ${e} KEY-----`}function A(e,t){let n=Buffer.allocUnsafe(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}function j(e,t){let n=e.length,r=e._pos||0;for(let i=0;i<t;++i){let t=n-r;if(r>=n||t<4)return!1;let i=b(e,r);if(t<4+i)return!1;r+=4+i}return e._pos=r,!0}function M(e,t){let n=new f.Writer;return n.startSequence(),n.startSequence(),n.writeOID(`1.2.840.113549.1.1.1`),n.writeNull(),n.endSequence(),n.startSequence(f.BitString),n.writeByte(0),n.startSequence(),n.writeBuffer(e,f.Integer),n.writeBuffer(t,f.Integer),n.endSequence(),n.endSequence(),n.endSequence(),k(`PUBLIC`,n.buffer)}function N(e,t){let n=Buffer.allocUnsafe(15+t.length+4+e.length);x(n,7,0),n.utf8Write(`ssh-rsa`,4,7);let r=11;return x(n,t.length,r),n.set(t,r+=4),x(n,e.length,r+=t.length),n.set(e,r+4),n}let P=(()=>{function e(e,t,n,r,i,a,o,s){let c=new f.Writer;return c.startSequence(),c.writeInt(0,f.Integer),c.writeBuffer(e,f.Integer),c.writeBuffer(t,f.Integer),c.writeBuffer(n,f.Integer),c.writeBuffer(r,f.Integer),c.writeBuffer(i,f.Integer),c.writeBuffer(a,f.Integer),c.writeBuffer(o,f.Integer),c.writeBuffer(s,f.Integer),c.endSequence(),c.buffer}function t(e){return BigInt(`0x${e.hexSlice(0,e.length)}`)}function n(e){let t=e.toString(16);if(t.length&1)t=`0${t}`;else{let e=t.charCodeAt(0);(e===56||e===57||e>=97&&e<=102)&&(t=`00${t}`)}return Buffer.from(t,`hex`)}return function(r,i,a,o,s,c){let l=t(a);return k(`RSA PRIVATE`,e(r,i,a,s,c,n(l%(t(s)-1n)),n(l%(t(c)-1n)),o))}})();function F(e,t,n,r){let i=new f.Writer;return i.startSequence(),i.startSequence(),i.writeOID(`1.2.840.10040.4.1`),i.startSequence(),i.writeBuffer(e,f.Integer),i.writeBuffer(t,f.Integer),i.writeBuffer(n,f.Integer),i.endSequence(),i.endSequence(),i.startSequence(f.BitString),i.writeByte(0),i.writeBuffer(r,f.Integer),i.endSequence(),i.endSequence(),k(`PUBLIC`,i.buffer)}function I(e,t,n,r){let i=Buffer.allocUnsafe(15+e.length+4+t.length+4+n.length+4+r.length);x(i,7,0),i.utf8Write(`ssh-dss`,4,7);let a=11;return x(i,e.length,a),i.set(e,a+=4),x(i,t.length,a+=e.length),i.set(t,a+=4),x(i,n.length,a+=t.length),i.set(n,a+=4),x(i,r.length,a+=n.length),i.set(r,a+4),i}function L(e,t,n,r,i){let a=new f.Writer;return a.startSequence(),a.writeInt(0,f.Integer),a.writeBuffer(e,f.Integer),a.writeBuffer(t,f.Integer),a.writeBuffer(n,f.Integer),a.writeBuffer(r,f.Integer),a.writeBuffer(i,f.Integer),a.endSequence(),k(`DSA PRIVATE`,a.buffer)}function R(e){let t=new f.Writer;return t.startSequence(),t.startSequence(),t.writeOID(`1.3.101.112`),t.endSequence(),t.startSequence(f.BitString),t.writeByte(0),t._ensure(e.length),t._buf.set(e,t._offset),t._offset+=e.length,t.endSequence(),t.endSequence(),k(`PUBLIC`,t.buffer)}function z(e){let t=Buffer.allocUnsafe(19+e.length);return x(t,11,0),t.utf8Write(`ssh-ed25519`,4,11),x(t,e.length,15),t.set(e,19),t}function B(e){let t=new f.Writer;return t.startSequence(),t.writeInt(0,f.Integer),t.startSequence(),t.writeOID(`1.3.101.112`),t.endSequence(),t.startSequence(f.OctetString),t.writeBuffer(e,f.OctetString),t.endSequence(),t.endSequence(),k(`PRIVATE`,t.buffer)}function V(e,t){let n=new f.Writer;return n.startSequence(),n.startSequence(),n.writeOID(`1.2.840.10045.2.1`),n.writeOID(e),n.endSequence(),n.startSequence(f.BitString),n.writeByte(0),n._ensure(t.length),n._buf.set(t,n._offset),n._offset+=t.length,n.endSequence(),n.endSequence(),k(`PUBLIC`,n.buffer)}function H(e,t){let n;switch(e){case`1.2.840.10045.3.1.7`:n=`nistp256`;break;case`1.3.132.0.34`:n=`nistp384`;break;case`1.3.132.0.35`:n=`nistp521`;break;default:return}let r=Buffer.allocUnsafe(39+t.length);return x(r,19,0),r.utf8Write(`ecdsa-sha2-${n}`,4,19),x(r,8,23),r.utf8Write(n,27,8),x(r,t.length,35),r.set(t,39),r}function U(e,t,n){let r=new f.Writer;return r.startSequence(),r.writeInt(1,f.Integer),r.writeBuffer(n,f.OctetString),r.startSequence(160),r.writeOID(e),r.endSequence(),r.startSequence(161),r.startSequence(f.BitString),r.writeByte(0),r._ensure(t.length),r._buf.set(t,r._offset),r._offset+=t.length,r.endSequence(),r.endSequence(),r.endSequence(),k(`EC PRIVATE`,r.buffer)}function W(e,t){let n=r(e);return n.setPrivateKey(t),n.getPublicKey()}let G={sign:typeof l==`function`?function(e,t){let n=this[C];if(n===null)return Error(`No private key available`);(!t||typeof t!=`string`)&&(t=this[S]);try{return l(t,e,n)}catch(e){return e}}:function(e,t){let n=this[C];if(n===null)return Error(`No private key available`);(!t||typeof t!=`string`)&&(t=this[S]);let r=o(t);r.update(e);try{return r.sign(n)}catch(e){return e}},verify:typeof u==`function`?function(e,t,n){let r=this[w];if(r===null)return Error(`No public key available`);(!n||typeof n!=`string`)&&(n=this[S]);try{return u(n,e,r,t)}catch(e){return e}}:function(e,t,n){let r=this[w];if(r===null)return Error(`No public key available`);(!n||typeof n!=`string`)&&(n=this[S]);let i=s(n);i.update(e);try{return i.verify(r,t)}catch(e){return e}},isPrivateKey:function(){return this[C]!==null},getPrivatePEM:function(){return this[C]},getPublicPEM:function(){return this[w]},getPublicSSH:function(){return this[T]},equals:function(e){let t=oe(e);return t instanceof Error?!1:this.type===t.type&&this[C]===t[C]&&this[w]===t[w]&&this[T].equals(t[T])}};function ee(e,t,n,r,i,a,o){this.type=e,this.comment=t,this[C]=n,this[w]=r,this[T]=i,this[S]=a,this[E]=o}ee.prototype=G;{let e=/^-----BEGIN OPENSSH PRIVATE KEY-----(?:\r\n|\n)([\s\S]+)(?:\r\n|\n)-----END OPENSSH PRIVATE KEY-----$/;ee.parse=(t,r)=>{let i=e.exec(t);if(i===null)return null;let a,o=Buffer.from(i[1],`base64`);if(o.length<31)return Error(`Malformed OpenSSH private key`);let s=o.utf8Slice(0,15);if(s!==`openssh-key-v1\0`)return Error(`Unsupported OpenSSH key magic: ${s}`);let c=y(o,15,!0);if(c===void 0)return Error(`Malformed OpenSSH private key`);if(c!==`none`&&g.indexOf(c)===-1)return Error(`Unsupported cipher for OpenSSH key: ${c}`);let l=y(o,o._pos,!0);if(l===void 0)return Error(`Malformed OpenSSH private key`);if(l!==`none`){if(c===`none`)return Error(`Malformed OpenSSH private key`);if(l!==`bcrypt`)return Error(`Unsupported kdf name for OpenSSH key: ${l}`);if(!r)return Error(`Encrypted private OpenSSH key detected, but no passphrase given`)}else if(c!==`none`)return Error(`Malformed OpenSSH private key`);let u,d,f;c!==`none`&&(u=m[c]);let h=y(o,o._pos);if(h===void 0)return Error(`Malformed OpenSSH private key`);if(h.length)switch(l){case`none`:return Error(`Malformed OpenSSH private key`);case`bcrypt`:{let e=y(h,0);if(e===void 0||h._pos+4>h.length)return Error(`Malformed OpenSSH private key`);let t=b(h,h._pos),n=Buffer.allocUnsafe(u.keyLen+u.ivLen);if(p(r,r.length,e,e.length,n,n.length,t)!==0)return Error(`Failed to generate information to decrypt key`);d=_(n,0,u.keyLen),f=_(n,u.keyLen,n.length);break}}else if(l!==`none`)return Error(`Malformed OpenSSH private key`);if(o._pos+3>=o.length)return Error(`Malformed OpenSSH private key`);let v=b(o,o._pos);if(o._pos+=4,v>0){for(let e=0;e<v;++e){let e=y(o,o._pos);if(e===void 0||y(e,0,!0)===void 0)return Error(`Malformed OpenSSH private key`)}let e=y(o,o._pos);if(e===void 0)return Error(`Malformed OpenSSH private key`);if(d!==void 0){if(e.length<u.blockLen||e.length%u.blockLen!==0)return Error(`Malformed OpenSSH private key`);try{let t={authTagLength:u.authLen},r=n(u.sslName,d,f,t);if(r.setAutoPadding(!1),u.authLen>0){if(o.length-o._pos<u.authLen)return Error(`Malformed OpenSSH private key`);r.setAuthTag(_(o,o._pos,o._pos+=u.authLen))}e=A(r.update(e),r.final())}catch(e){return e}}if(o._pos!==o.length)return Error(`Malformed OpenSSH private key`);a=K(e,v,d!==void 0)}else a=[];return a instanceof Error?a:a[0]};function K(e,t,n){let r=[];if(e.length<8)return Error(`Malformed OpenSSH private key`);if(b(e,0)!==b(e,4))return Error(n?`OpenSSH key integrity check failed -- bad passphrase?`:`OpenSSH key integrity check failed`);e._pos=8;let i,a;for(i=0;i<t;++i){let t,i,o,s,c=y(e,e._pos,!0);if(c===void 0)return Error(`Malformed OpenSSH private key`);switch(c){case`ssh-rsa`:{let n=y(e,e._pos);if(n===void 0)return Error(`Malformed OpenSSH private key`);let r=y(e,e._pos);if(r===void 0)return Error(`Malformed OpenSSH private key`);let a=y(e,e._pos);if(a===void 0)return Error(`Malformed OpenSSH private key`);let c=y(e,e._pos);if(c===void 0)return Error(`Malformed OpenSSH private key`);let l=y(e,e._pos);if(l===void 0)return Error(`Malformed OpenSSH private key`);let u=y(e,e._pos);if(u===void 0)return Error(`Malformed OpenSSH private key`);o=M(n,r),s=N(n,r),i=P(n,r,a,c,l,u),t=`sha1`;break}case`ssh-dss`:{let n=y(e,e._pos);if(n===void 0)return Error(`Malformed OpenSSH private key`);let r=y(e,e._pos);if(r===void 0)return Error(`Malformed OpenSSH private key`);let a=y(e,e._pos);if(a===void 0)return Error(`Malformed OpenSSH private key`);let c=y(e,e._pos);if(c===void 0)return Error(`Malformed OpenSSH private key`);let l=y(e,e._pos);if(l===void 0)return Error(`Malformed OpenSSH private key`);o=F(n,r,a,c),s=I(n,r,a,c),i=L(n,r,a,c,l),t=`sha1`;break}case`ssh-ed25519`:{if(!h)return Error(`Unsupported OpenSSH private key type: ${c}`);let n=y(e,e._pos);if(n===void 0||n.length!==32)return Error(`Malformed OpenSSH private key`);let r=y(e,e._pos);if(r===void 0||r.length!==64)return Error(`Malformed OpenSSH private key`);o=R(n),s=z(n),i=B(_(r,0,32)),t=null;break}case`ecdsa-sha2-nistp256`:t=`sha256`,a=`1.2.840.10045.3.1.7`;case`ecdsa-sha2-nistp384`:t===void 0&&(t=`sha384`,a=`1.3.132.0.34`);case`ecdsa-sha2-nistp521`:{if(t===void 0&&(t=`sha512`,a=`1.3.132.0.35`),!j(e,1))return Error(`Malformed OpenSSH private key`);let n=y(e,e._pos);if(n===void 0)return Error(`Malformed OpenSSH private key`);let r=y(e,e._pos);if(r===void 0)return Error(`Malformed OpenSSH private key`);o=V(a,n),s=H(a,n),i=U(a,n,r);break}default:return Error(`Unsupported OpenSSH private key type: ${c}`)}let l=y(e,e._pos,!0);if(l===void 0)return Error(`Malformed OpenSSH private key`);r.push(new ee(c,l,i,o,s,t,n))}let o=0;for(i=e._pos;i<e.length;++i)if(e[i]!==++o%255)return Error(`Malformed OpenSSH private key`);return r}}function q(e,t,n,r,i,a,o){this.type=e,this.comment=t,this[C]=n,this[w]=r,this[T]=i,this[S]=a,this[E]=o}q.prototype=G;{let e=/^-----BEGIN (RSA|DSA|EC) PRIVATE KEY-----(?:\r\n|\n)((?:[^:]+:\s*[\S].*(?:\r\n|\n))*)([\s\S]+)(?:\r\n|\n)-----END (RSA|DSA|EC) PRIVATE KEY-----$/;q.parse=(t,r)=>{let a=e.exec(t);if(a===null)return null;let o=Buffer.from(a[3],`base64`),s=a[2],c=!1;if(s!==void 0){s=s.split(/\r\n|\n/g);for(let e=0;e<s.length;++e){let t=s[e],a=t.indexOf(`:`);if(t.slice(0,a)===`DEK-Info`){let e=t.slice(a+2);if(a=e.indexOf(`,`),a===-1)continue;let s=e.slice(0,a).toLowerCase();if(d.indexOf(s)===-1)return Error(`Cipher (${s}) not supported for encrypted OpenSSH private key`);let l=D[s];if(!l)return Error(`Cipher (${s}) not supported for encrypted OpenSSH private key`);let u=Buffer.from(e.slice(a+1),`hex`);if(u.length!==l.ivLen)return Error(`Malformed encrypted OpenSSH private key`);if(!r)return Error(`Encrypted OpenSSH private key detected, but no passphrase given`);let f=_(u,0,8),p=i(`md5`).update(r).update(f).digest();for(;p.length<l.keyLen;)p=A(p,i(`md5`).update(p).update(r).update(f).digest());p.length>l.keyLen&&(p=_(p,0,l.keyLen));try{let e=n(s,p,u);e.setAutoPadding(!1),o=A(e.update(o),e.final()),c=!0}catch(e){return e}}}}let l,u,p,m,h,g,v=`Malformed OpenSSH private key`;switch(c&&(v+=`. Bad passphrase?`),a[1]){case`RSA`:l=`ssh-rsa`,u=k(`RSA PRIVATE`,o);try{g=new f.Reader(o),g.readSequence(),g.readInt();let e=g.readString(f.Integer,!0);if(e===null)return Error(v);let t=g.readString(f.Integer,!0);if(t===null)return Error(v);p=M(e,t),m=N(e,t)}catch{return Error(v)}h=`sha1`;break;case`DSA`:l=`ssh-dss`,u=k(`DSA PRIVATE`,o);try{g=new f.Reader(o),g.readSequence(),g.readInt();let e=g.readString(f.Integer,!0);if(e===null)return Error(v);let t=g.readString(f.Integer,!0);if(t===null)return Error(v);let n=g.readString(f.Integer,!0);if(n===null)return Error(v);let r=g.readString(f.Integer,!0);if(r===null)return Error(v);p=F(e,t,n,r),m=I(e,t,n,r)}catch{return Error(v)}h=`sha1`;break;case`EC`:{let e,t,n;try{g=new f.Reader(o),g.readSequence(),g.readInt(),t=g.readString(f.OctetString,!0),g.readByte();let r=g.readLength();if(r!==null){if(g._offset=r,n=g.readOID(),n===null)return Error(v);switch(n){case`1.2.840.10045.3.1.7`:e=`prime256v1`,l=`ecdsa-sha2-nistp256`,h=`sha256`;break;case`1.3.132.0.34`:e=`secp384r1`,l=`ecdsa-sha2-nistp384`,h=`sha384`;break;case`1.3.132.0.35`:e=`secp521r1`,l=`ecdsa-sha2-nistp521`,h=`sha512`;break;default:return Error(`Unsupported private key EC OID: ${n}`)}}else return Error(v)}catch{return Error(v)}u=k(`EC PRIVATE`,o);let r=W(e,t);p=V(n,r),m=H(n,r);break}}return new q(l,``,u,p,m,h,c)}}function te(e,t,n,r,i,a,o){this.type=e,this.comment=t,this[C]=n,this[w]=r,this[T]=i,this[S]=a,this[E]=o}te.prototype=G;{let e=Buffer.alloc(0),t=Buffer.from([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r=Buffer.from([0,0,0,0]),o=Buffer.from([0,0,0,1]),s=/^PuTTY-User-Key-File-2: (ssh-(?:rsa|dss))\r?\nEncryption: (aes256-cbc|none)\r?\nComment: ([^\r\n]*)\r?\nPublic-Lines: \d+\r?\n([\s\S]+?)\r?\nPrivate-Lines: \d+\r?\n([\s\S]+?)\r?\nPrivate-MAC: ([^\r\n]+)/;te.parse=(c,l)=>{let u=s.exec(c);if(u===null)return null;let d=u[2],f=d!==`none`;if(f&&!l)return Error(`Encrypted PPK private key detected, but no passphrase given`);let p=Buffer.from(u[5],`base64`);if(f){let e=m[d],a=A(i(`sha1`).update(r).update(l).digest(),i(`sha1`).update(o).update(l).digest());a.length>e.keyLen&&(a=_(a,0,e.keyLen));try{let r=n(e.sslName,a,t);r.setAutoPadding(!1),p=A(r.update(p),r.final())}catch(e){return e}}let h=u[1],g=u[3],v=Buffer.from(u[4],`base64`),b=u[6],S=h.length,C=d.length,w=Buffer.byteLength(g),T=v.length,E=p.length,D=Buffer.allocUnsafe(4+S+4+C+4+w+4+T+4+E),O=0;if(x(D,S,O),D.utf8Write(h,O+=4,S),x(D,C,O+=S),D.utf8Write(d,O+=4,C),x(D,w,O+=C),D.utf8Write(g,O+=4,w),x(D,T,O+=w),D.set(v,O+=4),x(D,E,O+=T),D.set(p,O+4),l||=e,a(`sha1`,i(`sha1`).update(`putty-private-key-file-mac-key`).update(l).digest()).update(D).digest(`hex`)!==b)return Error(f?`PPK private key integrity check failed -- bad passphrase?`:`PPK private key integrity check failed`);let k,R,z;switch(v._pos=0,j(v,1),h){case`ssh-rsa`:{let e=y(v,v._pos);if(e===void 0)return Error(`Malformed PPK public key`);let t=y(v,v._pos);if(t===void 0)return Error(`Malformed PPK public key`);let n=y(p,0);if(n===void 0)return Error(`Malformed PPK private key`);let r=y(p,p._pos);if(r===void 0)return Error(`Malformed PPK private key`);let i=y(p,p._pos);if(i===void 0)return Error(`Malformed PPK private key`);let a=y(p,p._pos);if(a===void 0)return Error(`Malformed PPK private key`);k=M(t,e),R=N(t,e),z=P(t,e,n,a,r,i);break}case`ssh-dss`:{let e=y(v,v._pos);if(e===void 0)return Error(`Malformed PPK public key`);let t=y(v,v._pos);if(t===void 0)return Error(`Malformed PPK public key`);let n=y(v,v._pos);if(n===void 0)return Error(`Malformed PPK public key`);let r=y(v,v._pos);if(r===void 0)return Error(`Malformed PPK public key`);let i=y(p,0);if(i===void 0)return Error(`Malformed PPK private key`);k=F(e,t,n,r),R=I(e,t,n,r),z=L(e,t,n,r,i);break}}return new te(h,g,z,k,R,`sha1`,f)}}function ne(e,t,n,r,i){this.type=e,this.comment=t,this[C]=null,this[w]=n,this[T]=r,this[S]=i,this[E]=!1}ne.prototype=G;{let e;e=h?/^(((?:ssh-(?:rsa|dss|ed25519))|ecdsa-sha2-nistp(?:256|384|521))(?:-cert-v0[01]@openssh.com)?) ([A-Z0-9a-z/+=]+)(?:$|\s+([\S].*)?)$/:/^(((?:ssh-(?:rsa|dss))|ecdsa-sha2-nistp(?:256|384|521))(?:-cert-v0[01]@openssh.com)?) ([A-Z0-9a-z/+=]+)(?:$|\s+([\S].*)?)$/,ne.parse=t=>{let n=e.exec(t);if(n===null)return null;let r=n[1],i=n[2],a=Buffer.from(n[3],`base64`),o=n[4]||``,s=y(a,a._pos,!0);return s===void 0||s.indexOf(i)!==0?Error(`Malformed OpenSSH public key`):ie(a,i,o,r)}}function re(e,t,n,r,i){this.type=e,this.comment=t,this[C]=null,this[w]=n,this[T]=r,this[S]=i,this[E]=!1}re.prototype=G;{let e=/^---- BEGIN SSH2 PUBLIC KEY ----(?:\r?\n)((?:.{0,72}\r?\n)+)---- END SSH2 PUBLIC KEY ----$/,t=/^[A-Z0-9a-z/+=\r\n]+$/,n=/^([\x21-\x39\x3B-\x7E]{1,64}): ((?:[^\\]*\\\r?\n)*[^\r\n]+)\r?\n/gm,r=/\\\r?\n/g;re.parse=i=>{let a=e.exec(i);if(a===null)return null;let o=a[1],s=0,c=``;for(;a=n.exec(o);){let e=a[1],t=a[2].replace(r,``);if(t.length>1024)return n.lastIndex=0,Error(`Malformed RFC4716 public key`);s=n.lastIndex,e.toLowerCase()===`comment`&&(c=t,c.length>1&&c.charCodeAt(0)===34&&c.charCodeAt(c.length-1)===34&&(c=c.slice(1,-1)))}let l=o.slice(s);if(!t.test(l))return Error(`Malformed RFC4716 public key`);l=Buffer.from(l,`base64`);let u=y(l,0,!0);if(u===void 0)return Error(`Malformed RFC4716 public key`);let d=null,f=null;switch(u){case`ssh-rsa`:{let e=y(l,l._pos);if(e===void 0)return Error(`Malformed RFC4716 public key`);let t=y(l,l._pos);if(t===void 0)return Error(`Malformed RFC4716 public key`);d=M(t,e),f=N(t,e);break}case`ssh-dss`:{let e=y(l,l._pos);if(e===void 0)return Error(`Malformed RFC4716 public key`);let t=y(l,l._pos);if(t===void 0)return Error(`Malformed RFC4716 public key`);let n=y(l,l._pos);if(n===void 0)return Error(`Malformed RFC4716 public key`);let r=y(l,l._pos);if(r===void 0)return Error(`Malformed RFC4716 public key`);d=F(e,t,n,r),f=I(e,t,n,r);break}default:return Error(`Malformed RFC4716 public key`)}return new re(u,c,d,f,`sha1`)}}function ie(e,t,n,r){if(!ae(t))return Error(`Unsupported OpenSSH public key type: ${t}`);let i,a,o=null,s=null;switch(t){case`ssh-rsa`:{let t=y(e,e._pos||0);if(t===void 0)return Error(`Malformed OpenSSH public key`);let n=y(e,e._pos);if(n===void 0)return Error(`Malformed OpenSSH public key`);o=M(n,t),s=N(n,t),i=`sha1`;break}case`ssh-dss`:{let t=y(e,e._pos||0);if(t===void 0)return Error(`Malformed OpenSSH public key`);let n=y(e,e._pos);if(n===void 0)return Error(`Malformed OpenSSH public key`);let r=y(e,e._pos);if(r===void 0)return Error(`Malformed OpenSSH public key`);let a=y(e,e._pos);if(a===void 0)return Error(`Malformed OpenSSH public key`);o=F(t,n,r,a),s=I(t,n,r,a),i=`sha1`;break}case`ssh-ed25519`:{let t=y(e,e._pos||0);if(t===void 0||t.length!==32)return Error(`Malformed OpenSSH public key`);o=R(t),s=z(t),i=null;break}case`ecdsa-sha2-nistp256`:i=`sha256`,a=`1.2.840.10045.3.1.7`;case`ecdsa-sha2-nistp384`:i===void 0&&(i=`sha384`,a=`1.3.132.0.34`);case`ecdsa-sha2-nistp521`:{if(i===void 0&&(i=`sha512`,a=`1.3.132.0.35`),!j(e,1))return Error(`Malformed OpenSSH public key`);let t=y(e,e._pos||0);if(t===void 0)return Error(`Malformed OpenSSH public key`);o=V(a,t),s=H(a,t);break}default:return Error(`Unsupported OpenSSH public key type: ${t}`)}return new ne(r,n,o,s,i)}function ae(e){switch(e){case`ssh-rsa`:case`ssh-dss`:case`ecdsa-sha2-nistp256`:case`ecdsa-sha2-nistp384`:case`ecdsa-sha2-nistp521`:return!0;case`ssh-ed25519`:if(h)return!0;default:return!1}}function J(e){return e?typeof e[E]==`boolean`:!1}function oe(e,t){if(J(e))return e;let n;if(Buffer.isBuffer(e))n=e,e=e.utf8Slice(0,e.length).trim();else if(typeof e==`string`)e=e.trim();else return Error(`Key data must be a Buffer or string`);if(t!=null){if(typeof t==`string`)t=Buffer.from(t);else if(!Buffer.isBuffer(t))return Error(`Passphrase must be a string or Buffer when supplied`)}let r;if((r=ee.parse(e,t))!==null||(r=q.parse(e,t))!==null||(r=te.parse(e,t))!==null||(r=ne.parse(e))!==null||(r=re.parse(e))!==null)return r;if(n){O.init(n,0);let t=O.readString(!0);t!==void 0&&(e=O.readRaw(),e!==void 0&&(r=ie(e,t,``,t),r instanceof Error&&(r=null))),O.clear()}return r||Error(`Unsupported key format`)}t.exports={isParsedKey:J,isSupportedKeyType:ae,parseDERKey:(e,t)=>ie(e,t,``,t),parseKey:oe}})),oh=s(((e,t)=>{let{Socket:n}=require("net"),{Duplex:r}=require("stream"),{resolve:i}=require("path"),{readFile:a}=require("fs"),{execFile:o,spawn:s}=require("child_process"),{isParsedKey:c,parseKey:l}=ah(),{makeBufferParser:u,readUInt32BE:d,writeUInt32BE:f,writeUInt32LE:p}=nh();function m(e){let t=!1;return(...n)=>{t||(t=!0,e(...n))}}function h(e,t){let n=Buffer.allocUnsafe(e.length+t.length);return e.copy(n,0),t.copy(n,e.length),n}function g(){}let _=Buffer.alloc(0),v=u();var y=class{getIdentities(e){e(Error(`Missing getIdentities() implementation`))}sign(e,t,n,r){typeof n==`function`&&(r=n),r(Error(`Missing sign() implementation`))}},b=class extends y{constructor(e){super(),this.socketPath=e}getStream(e){e=m(e);let t=new n;t.on(`connect`,()=>{e(null,t)}),t.on(`close`,r).on(`end`,r).on(`error`,r),t.connect(this.socketPath);function r(){try{t.destroy()}catch{}e(Error(`Failed to connect to agent`))}}getIdentities(e){e=m(e),this.getStream((t,n)=>{function r(t){if(n)try{n.destroy()}catch{}t||=Error(`Failed to retrieve identities from agent`),e(t)}if(t)return r(t);let i=new T(!0);i.on(`error`,r),i.pipe(n).pipe(i),n.on(`close`,r).on(`end`,r).on(`error`,r),i.getIdentities((t,i)=>{if(t)return r(t);try{n.destroy()}catch{}e(null,i)})})}sign(e,t,n,r){typeof n==`function`?(r=n,n=void 0):(typeof n!=`object`||!n)&&(n=void 0),r=m(r),this.getStream((i,a)=>{function o(e){if(a)try{a.destroy()}catch{}e||=Error(`Failed to sign data with agent`),r(e)}if(i)return o(i);let s=new T(!0);s.on(`error`,o),s.pipe(a).pipe(s),a.on(`close`,o).on(`end`,o).on(`error`,o),s.sign(e,t,n,(e,t)=>{if(e)return o(e);try{a.destroy()}catch{}r(null,t)})})}};let x=(()=>{let e=i(__dirname,`..`,`util/pagent.exe`),t={10:Error(`Invalid pagent.exe arguments`),11:Error(`Pageant is not running`),12:Error(`pagent.exe could not create an mmap`),13:Error(`pagent.exe could not set mode for stdin`),14:Error(`pagent.exe could not set mode for stdout`),15:Error(`pagent.exe did not get expected input payload`)};function n(e){e.buffer=null,e.proc&&=(e.proc.kill(),void 0)}class a extends r{constructor(){super(),this.proc=void 0,this.buffer=null}_read(e){}_write(n,r,i){if(this.buffer===null)this.buffer=n;else{let e=Buffer.allocUnsafe(this.buffer.length+n.length);this.buffer.copy(e,0),n.copy(e,this.buffer.length),this.buffer=e}if(this.buffer.length<4)return i();let a=d(this.buffer,0);if(this.buffer.length-4<a)return i();if(n=this.buffer.slice(0,4+a),this.buffer.length>4+a)return i(Error(`Unexpected multiple agent requests`));this.buffer=null;let o,c=this.proc=s(e,[n.length]);c.stdout.on(`data`,e=>{this.push(e)}),c.on(`error`,e=>{o=e,i(o)}),c.on(`close`,e=>{if(this.proc=void 0,!o){if(o=t[e])return i(o);i()}}),c.stdin.end(n)}_final(e){n(this),e()}_destroy(e,t){n(this),t()}}return class extends b{getStream(e){e(null,new a)}}})(),S=(()=>{let e=/^!<socket >(\d+) s ([A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8})/;return class extends b{getStream(t){t=m(t);let r=this.socketPath,i=!1;a(r,function s(c,l){if(c){if(i)return t(Error(`Invalid cygwin unix socket path`));o(`cygpath`,[`-w`,r],(e,n,o)=>{if(e||n.length===0)return t(Error(`Invalid cygwin unix socket path`));i=!0,r=n.toString().replace(/[\r\n]/g,``),a(r,s)});return}let u=e.exec(l.toString(`ascii`));if(!u)return t(Error(`Malformed cygwin unix socket file`));let f,m=0,h=!1,g=[],_,v=Buffer.alloc(12),y=parseInt(u[1],10),b=u[2].replace(/-/g,``),x=Buffer.allocUnsafe(16);for(let e=0,t=0;t<32;++e,t+=2)x[e]=parseInt(b.substring(t,t+2),16);for(let e=0;e<16;e+=4)p(x,d(x,e),e);T();function S(){m=0,f=`secret`,_.write(x)}function C(e){if(m+=e.length,f===`secret`){m===16&&(m=0,f=`creds`,_.write(v));return}if(f===`creds`&&(h||g.push(e),m===12)){if(_.removeListener(`connect`,S),_.removeListener(`data`,C),_.removeListener(`error`,w),_.removeListener(`end`,w),_.removeListener(`close`,w),h)return t(null,_);h=!0,v=Buffer.concat(g),p(v,process.pid,0),_.on(`error`,()=>{}),_.destroy(),T()}}function w(){t(Error(`Problem negotiating cygwin unix socket security`))}function T(){_=new n,_.on(`connect`,S),_.on(`data`,C),_.on(`error`,w),_.on(`end`,w),_.on(`close`,w),_.connect(y)}})}}})(),C=/^[/\\][/\\]\.[/\\]pipe[/\\].+/;function w(e){return process.platform===`win32`&&!C.test(e)?e===`pageant`?new x:new S(e):new b(e)}let T=(()=>{function e(e){let t;for(;e[m].length;){let r=e[m][0][n];if(r===void 0)break;e[m].shift(),t=e.push(r)}return t}let t=Symbol(`Inbound Request Type`),n=Symbol(`Inbound Request Response`),i=Symbol(`Inbound Request Context`);class a{constructor(e,r){this[t]=e,this[n]=void 0,this[i]=r}hasResponded(){return this[n]!==void 0}getType(){return this[t]}getContext(){return this[i]}}function o(t,r,i){return r[n]=i,e(t)}function s(e){if(e[b]=null,e[y]===0){let t=e[m];if(t&&t.length){e[m]=[];for(let e of t)e.cb(Error(`No reply from server`))}}try{e.end()}catch{}setImmediate(()=>{e[C]||e.emit(`end`),e[S]||e.emit(`close`)})}function u(){this[S]=!0}function p(){this[C]=!0}let m=Symbol(`Requests`),y=Symbol(`Agent Protocol Role`),b=Symbol(`Agent Protocol Buffer`),x=Symbol(`Agent Protocol Current Message Length`),S=Symbol(`Agent Protocol Closed`),C=Symbol(`Agent Protocol Ended`);return class extends r{constructor(e){super({autoDestroy:!0,emitClose:!1}),this[y]=+!e,this[m]=[],this[b]=null,this[x]=-1,this.once(`end`,p),this.once(`close`,u)}_read(e){}_write(e,t,n){this[b]===null?this[b]=e:this[b]=h(this[b],e);let r=this[b],i=r.length,o=0;for(;o<i&&!(i<5||(this[x]===-1&&(this[x]=d(r,o)),i<4+this[x]));){let e=r[o+=4];if(++o,this[y]===0){if(this[m].length===0)return n(Error(`Received unexpected message from server`));let t=this[m].shift();switch(e){case 5:t.cb(Error(`Agent responded with failure`));break;case 12:{if(t.type!==11)return n(Error(`Agent responded with wrong message type`));v.init(r,o);let e=v.readUInt32BE();if(e===void 0)return v.clear(),n(Error(`Malformed agent response`));let i=[];for(let t=0;t<e;++t){let e=v.readString();if(e===void 0)return v.clear(),n(Error(`Malformed agent response`));let t=v.readString(!0);if(t===void 0)return v.clear(),n(Error(`Malformed agent response`));e=l(e),!(e instanceof Error)&&(e.comment=e.comment||t,i.push(e))}o=v.pos(),v.clear(),t.cb(null,i);break}case 14:{if(t.type!==13)return n(Error(`Agent responded with wrong message type`));v.init(r,o);let e=v.readString();if(o=v.pos(),v.clear(),e===void 0)return n(Error(`Malformed agent response`));if(v.init(e,0),v.readString(!0),e=v.readString(),v.clear(),e===void 0)return n(Error(`Malformed OpenSSH signature format`));t.cb(null,e);break}default:return n(Error(`Agent responded with unsupported message type`))}}else switch(e){case 11:{let t=new a(e);this[m].push(t),this.emit(`identities`,t);break}case 13:{v.init(r,o);let t=v.readString(),n=v.readString(),i=v.readUInt32BE();if(o=v.pos(),v.clear(),i===void 0){let t=new a(e);return this[m].push(t),this.failureReply(t)}if(t=l(t),t instanceof Error){let t=new a(e);return this[m].push(t),this.failureReply(t)}let s={hash:void 0},c;t.type===`ssh-rsa`&&(i&2?(c=`rsa-sha2-256`,s.hash=`sha256`):i&4&&(c=`rsa-sha2-512`,s.hash=`sha512`)),c===void 0&&(c=t.type);let u=new a(e,c);this[m].push(u),this.emit(`sign`,u,t,n,s);break}default:{let t=new a(e);this[m].push(t),this.failureReply(t)}}if(this[x]=-1,o===i){this[b]=null;break}else this[b]=r=r.slice(o),i=r.length,o=0}n()}_destroy(e,t){s(this),t()}_final(e){s(this),e()}sign(e,t,n,r){if(this[y]!==0)throw Error(`Client-only method called with server role`);typeof n==`function`?(r=n,n=void 0):(typeof n!=`object`||!n)&&(n=void 0);let i=0;if(e=l(e),e instanceof Error)throw Error(`Invalid public key argument`);if(e.type===`ssh-rsa`&&n)switch(n.hash){case`sha256`:i=2;break;case`sha512`:i=4;break}e=e.getPublicSSH();let a=e.length,o=t.length,s=0,c=Buffer.allocUnsafe(9+a+4+o+4);return f(c,c.length-4,s),c[s+=4]=13,f(c,a,++s),e.copy(c,s+=4),f(c,o,s+=a),t.copy(c,s+=4),f(c,i,s+=o),typeof r!=`function`&&(r=g),this[m].push({type:13,cb:r}),this.push(c)}getIdentities(e){if(this[y]!==0)throw Error(`Client-only method called with server role`);let t=0,n=Buffer.allocUnsafe(5);return f(n,n.length-4,t),n[t+=4]=11,typeof e!=`function`&&(e=g),this[m].push({type:11,cb:e}),this.push(n)}failureReply(e){if(this[y]!==1)throw Error(`Server-only method called with client role`);if(!(e instanceof a))throw Error(`Wrong request argument`);if(e.hasResponded())return!0;let t=0,n=Buffer.allocUnsafe(5);return f(n,n.length-4,t),n[t+=4]=5,o(this,e,n)}getIdentitiesReply(e,t){if(this[y]!==1)throw Error(`Server-only method called with client role`);if(!(e instanceof a))throw Error(`Wrong request argument`);if(e.hasResponded())return!0;if(e.getType()!==11)throw Error(`Invalid response to request`);if(!Array.isArray(t))throw Error(`Keys argument must be an array`);let n=4,r=[];for(let e=0;e<t.length;++e){let i=t[e];if(typeof i!=`object`||!i)throw Error(`Invalid key entry: ${i}`);let a,o;if(c(i))a=i;else if(c(i.pubKey))a=i.pubKey;else if(typeof i.pubKey!=`object`||i.pubKey===null||({pubKey:a,comment:o}=i.pubKey,a=l(a),a instanceof Error))continue;o=a.comment||o,a=a.getPublicSSH(),n+=4+a.length,o&&typeof o==`string`?o=Buffer.from(o):Buffer.isBuffer(o)||(o=_),n+=4+o.length,r.push({pubKey:a,comment:o})}let i=0,s=Buffer.allocUnsafe(5+n);f(s,s.length-4,i),s[i+=4]=12,f(s,r.length,++i),i+=4;for(let e=0;e<r.length;++e){let{pubKey:t,comment:n}=r[e];f(s,t.length,i),t.copy(s,i+=4),f(s,n.length,i+=t.length),i+=4,n.length&&(n.copy(s,i),i+=n.length)}return o(this,e,s)}signReply(e,t){if(this[y]!==1)throw Error(`Server-only method called with client role`);if(!(e instanceof a))throw Error(`Wrong request argument`);if(e.hasResponded())return!0;if(e.getType()!==13)throw Error(`Invalid response to request`);if(!Buffer.isBuffer(t))throw Error(`Signature argument must be a Buffer`);if(t.length===0)throw Error(`Signature argument must be non-empty`);let n=0,r=e.getContext(),i=Buffer.byteLength(r),s=Buffer.allocUnsafe(13+i+4+t.length);return f(s,s.length-4,n),s[n+=4]=14,f(s,4+i+4+t.length,++n),f(s,i,n+=4),s.utf8Write(r,n+=4,i),f(s,t.length,n+=i),t.copy(s,n+=4),o(this,e,s)}}})(),E=Symbol(`Agent`),D=Symbol(`Agent Keys`),O=Symbol(`Agent Keys Index`),k=Symbol(`Agent Init Callbacks`);var A=class{constructor(e){if(typeof e==`string`)e=w(e);else if(!j(e))throw Error(`Invalid agent argument`);this[E]=e,this[D]=null,this[O]=-1,this[k]=null}init(e){if(typeof e!=`function`&&(e=g),this[D]===null)if(this[k]===null){this[k]=[e];let t=(...e)=>{process.nextTick(()=>{let t=this[k];this[k]=null;for(let n of t)n(...e)})};this[E].getIdentities(m((e,n)=>{if(e)return t(e);if(!Array.isArray(n))return t(Error(`Agent implementation failed to provide keys`));let r=[];for(let e of n)e=l(e),!(e instanceof Error)&&r.push(e);this[D]=r,this[O]=-1,t()}))}else this[k].push(e);else process.nextTick(e)}nextKey(){return this[D]===null||++this[O]>=this[D].length?!1:this[D][this[O]]}currentKey(){return this[D]===null||this[O]>=this[D].length?null:this[D][this[O]]}pos(){return this[D]===null||this[O]>=this[D].length?-1:this[O]}reset(){this[O]=-1}sign(...e){this[E].sign(...e)}};function j(e){return e instanceof y}t.exports={AgentContext:A,AgentProtocol:T,BaseAgent:y,createAgent:w,CygwinAgent:S,isAgent:j,OpenSSHAgent:b,PageantAgent:x}})),sh=s(((e,t)=>{let{kMaxLength:n}=require("buffer"),{createInflate:r,constants:{DEFLATE:i,INFLATE:a,Z_DEFAULT_CHUNK:o,Z_DEFAULT_COMPRESSION:s,Z_DEFAULT_MEMLEVEL:c,Z_DEFAULT_STRATEGY:l,Z_DEFAULT_WINDOWBITS:u,Z_PARTIAL_FLUSH:d}}=require("zlib"),f=r()._handle.constructor;function p(){throw Error(`Should not get here`)}function m(e,t,n){let r=this._owner,i=Error(e);i.errno=t,i.code=n,r._err=i}function h(e){e._handle&&=(e._handle.close(),null)}var g=class{constructor(e){let t=u,r=s,i=c,a=l;this._err=void 0,this._writeState=new Uint32Array(2),this._chunkSize=o,this._maxOutputLength=n,this._outBuffer=Buffer.allocUnsafe(this._chunkSize),this._outOffset=0,this._handle=new f(e),this._handle._owner=this,this._handle.onerror=m,this._handle.init(t,r,i,a,this._writeState,p,void 0)}writeSync(e,t){let n=this._handle;if(!n)throw Error(`Invalid Zlib instance`);let r=e.length,i=this._chunkSize-this._outOffset,a=0,o,s,c,l=0,u=this._writeState,f=this._outBuffer,p=this._outOffset,m=this._chunkSize;for(;;){if(n.writeSync(d,e,a,r,f,p,i),this._err)throw this._err;o=u[0],s=u[1];let t=r-s,g=i-o;if(g>0){let e=p===0&&g===f.length?f:f.slice(p,p+g);if(p+=g,c?c.push===void 0?c=[c,e]:c.push(e):c=e,l+=e.byteLength,l>this._maxOutputLength)throw h(this),Error(`Output length exceeded maximum of ${this._maxOutputLength}`)}else if(g!==0)throw Error(`have should not go down`);if((o===0||p>=m)&&(i=m,p=0,f=Buffer.allocUnsafe(m)),o===0)a+=t,r=s;else break}if(this._outBuffer=f,this._outOffset=p,l===0&&(c=Buffer.alloc(0)),t)return c.totalLen=l,c;if(c.push===void 0)return c;let g=Buffer.allocUnsafe(l);for(let e=0,t=0;e<c.length;++e){let n=c[e];g.set(n,t),t+=n.length}return g}};t.exports={PacketReader:class{cleanup(){}read(e){return e}},PacketWriter:class{constructor(e){this.allocStart=5,this.allocStartKEX=5,this._protocol=e}cleanup(){}alloc(e,t){return this._protocol._kexinit===void 0||t?this._protocol._cipher.allocPacket(e):Buffer.allocUnsafe(e)}finalize(e,t){return e}},ZlibPacketReader:class{constructor(){this._zlib=new g(a)}cleanup(){this._zlib&&h(this._zlib)}read(e){return this._zlib.writeSync(e,!1)}},ZlibPacketWriter:class{constructor(e){this.allocStart=0,this.allocStartKEX=0,this._protocol=e,this._zlib=new g(i)}cleanup(){this._zlib&&h(this._zlib)}alloc(e,t){return Buffer.allocUnsafe(e)}finalize(e,t){if(this._protocol._kexinit===void 0||t){let t=this._zlib.writeSync(e,!0),n=this._protocol._cipher.allocPacket(t.totalLen);if(t.push===void 0)n.set(t,5);else for(let e=0,r=5;e<t.length;++e){let i=t[e];n.set(i,r),r+=i.length}return n}return e}}}})),ch=s(((e,t)=>{let{bufferSlice:n,bufferParser:r,doFatalError:i,sigSSHToASN1:a,writeUInt32BE:o}=nh(),{CHANNEL_OPEN_FAILURE:s,COMPAT:c,MESSAGE:l,TERMINAL_MODE:u}=th(),{parseKey:d}=ah(),f=Array.from(Object.entries(u)).reduce((e,[t,n])=>({...e,[t]:n}),{});t.exports={[l.DISCONNECT]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a=r.readString(!0),o=r.readString();if(r.clear(),o===void 0)return i(e,`Inbound: Malformed DISCONNECT packet`);e._debug&&e._debug(`Inbound: Received DISCONNECT (${n}, "${a}")`);let s=e._handlers.DISCONNECT;s&&s(e,n,a)},[l.IGNORE]:(e,t)=>{e._debug&&e._debug(`Inbound: Received IGNORE`)},[l.UNIMPLEMENTED]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE();if(r.clear(),n===void 0)return i(e,`Inbound: Malformed UNIMPLEMENTED packet`);e._debug&&e._debug(`Inbound: Received UNIMPLEMENTED (seqno ${n})`)},[l.DEBUG]:(e,t)=>{r.init(t,1);let n=r.readBool(),a=r.readString(!0),o=r.readString();if(r.clear(),o===void 0)return i(e,`Inbound: Malformed DEBUG packet`);e._debug&&e._debug(`Inbound: Received DEBUG`);let s=e._handlers.DEBUG;s&&s(e,n,a)},[l.SERVICE_REQUEST]:(e,t)=>{r.init(t,1);let n=r.readString(!0);if(r.clear(),n===void 0)return i(e,`Inbound: Malformed SERVICE_REQUEST packet`);e._debug&&e._debug(`Inbound: Received SERVICE_REQUEST (${n})`);let a=e._handlers.SERVICE_REQUEST;a&&a(e,n)},[l.SERVICE_ACCEPT]:(e,t)=>{r.init(t,1);let n=r.readString(!0);if(r.clear(),n===void 0)return i(e,`Inbound: Malformed SERVICE_ACCEPT packet`);e._debug&&e._debug(`Inbound: Received SERVICE_ACCEPT (${n})`);let a=e._handlers.SERVICE_ACCEPT;a&&a(e,n)},[l.EXT_INFO]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a;if(n!==void 0){a=[];for(let e=0;e<n;++e){let e=r.readString(!0),t=r.readString();if(t!==void 0)switch(e){case`server-sig-algs`:{let n=t.latin1Slice(0,t.length).split(`,`);a.push({name:e,algs:n});continue}default:continue}a=void 0;break}}if(r.clear(),a===void 0)return i(e,`Inbound: Malformed EXT_INFO packet`);e._debug&&e._debug(`Inbound: Received EXT_INFO`);let o=e._handlers.EXT_INFO;o&&o(e,a)},[l.USERAUTH_REQUEST]:(e,t)=>{r.init(t,1);let s=r.readString(!0),c=r.readString(!0),l=r.readString(!0),u,d;switch(l){case`none`:u=null;break;case`password`:{let e=r.readBool();if(e!==void 0&&(u=r.readString(!0),u!==void 0&&e)){let e=r.readString(!0);u=e===void 0?void 0:{oldPassword:u,newPassword:e}}break}case`publickey`:{let i=r.readBool();if(i!==void 0){let s=r.readString(!0),c=s,l=r.readString(),f;switch(s){case`rsa-sha2-256`:c=`ssh-rsa`,f=`sha256`;break;case`rsa-sha2-512`:c=`ssh-rsa`,f=`sha512`;break}if(i){let i=r.pos(),d=r.readString();if(d!==void 0&&(d.length>4+s.length+4&&d.utf8Slice(4,4+s.length)===s&&(d=n(d,4+s.length+4)),d=a(d,c),d)){let n=e._kex.sessionID,r=Buffer.allocUnsafe(4+n.length+i);o(r,n.length,0),r.set(n,4),r.set(new Uint8Array(t.buffer,t.byteOffset,i),4+n.length),u={keyAlgo:c,key:l,signature:d,blob:r,hashAlgo:f}}}else u={keyAlgo:c,key:l,hashAlgo:f},d=`publickey -- check`}break}case`hostbased`:{let i=r.readString(!0),s=i,c=r.readString(),l=r.readString(!0),d=r.readString(!0),f;switch(i){case`rsa-sha2-256`:s=`ssh-rsa`,f=`sha256`;break;case`rsa-sha2-512`:s=`ssh-rsa`,f=`sha512`;break}let p=r.pos(),m=r.readString();if(m!==void 0&&(m.length>4+i.length+4&&m.utf8Slice(4,4+i.length)===i&&(m=n(m,4+i.length+4)),m=a(m,s),m!==void 0)){let n=e._kex.sessionID,r=Buffer.allocUnsafe(4+n.length+p);o(r,n.length,0),r.set(n,4),r.set(new Uint8Array(t.buffer,t.byteOffset,p),4+n.length),u={keyAlgo:s,key:c,signature:m,blob:r,localHostname:l,localUsername:d,hashAlgo:f}}break}case`keyboard-interactive`:r.skipString(),u=r.readList();break;default:l!==void 0&&(u=r.readRaw())}if(r.clear(),u===void 0)return i(e,`Inbound: Malformed USERAUTH_REQUEST packet`);d===void 0&&(d=l),e._authsQueue.push(l),e._debug&&e._debug(`Inbound: Received USERAUTH_REQUEST (${d})`);let f=e._handlers.USERAUTH_REQUEST;f&&f(e,s,c,l,u)},[l.USERAUTH_FAILURE]:(e,t)=>{r.init(t,1);let n=r.readList(),a=r.readBool();if(r.clear(),a===void 0)return i(e,`Inbound: Malformed USERAUTH_FAILURE packet`);e._debug&&e._debug(`Inbound: Received USERAUTH_FAILURE (${n})`),e._authsQueue.shift();let o=e._handlers.USERAUTH_FAILURE;o&&o(e,n,a)},[l.USERAUTH_SUCCESS]:(e,t)=>{e._debug&&e._debug(`Inbound: Received USERAUTH_SUCCESS`),e._authsQueue.shift();let n=e._handlers.USERAUTH_SUCCESS;n&&n(e)},[l.USERAUTH_BANNER]:(e,t)=>{r.init(t,1);let n=r.readString(!0),a=r.readString();if(r.clear(),a===void 0)return i(e,`Inbound: Malformed USERAUTH_BANNER packet`);e._debug&&e._debug(`Inbound: Received USERAUTH_BANNER`);let o=e._handlers.USERAUTH_BANNER;o&&o(e,n)},60:(e,t)=>{if(!e._authsQueue.length){e._debug&&e._debug(`Inbound: Received payload type 60 without auth`);return}switch(e._authsQueue[0]){case`password`:{r.init(t,1);let n=r.readString(!0),a=r.readString();if(r.clear(),a===void 0)return i(e,`Inbound: Malformed USERAUTH_PASSWD_CHANGEREQ packet`);e._debug&&e._debug(`Inbound: Received USERAUTH_PASSWD_CHANGEREQ`);let o=e._handlers.USERAUTH_PASSWD_CHANGEREQ;o&&o(e,n);break}case`publickey`:{r.init(t,1);let n=r.readString(!0),a=r.readString();if(r.clear(),a===void 0)return i(e,`Inbound: Malformed USERAUTH_PK_OK packet`);e._debug&&e._debug(`Inbound: Received USERAUTH_PK_OK`),e._authsQueue.shift();let o=e._handlers.USERAUTH_PK_OK;o&&o(e,n,a);break}case`keyboard-interactive`:{r.init(t,1);let n=r.readString(!0),a=r.readString(!0);r.readString();let o=r.readUInt32BE(),s;if(o!==void 0){s=Array(o);let e;for(e=0;e<o;++e){let t=r.readString(!0),n=r.readBool();if(n===void 0)break;s[e]={prompt:t,echo:n}}e!==o&&(s=void 0)}if(r.clear(),s===void 0)return i(e,`Inbound: Malformed USERAUTH_INFO_REQUEST packet`);e._debug&&e._debug(`Inbound: Received USERAUTH_INFO_REQUEST`);let c=e._handlers.USERAUTH_INFO_REQUEST;c&&c(e,n,a,s);break}default:e._debug&&e._debug(`Inbound: Received unexpected payload type 60`)}},61:(e,t)=>{if(!e._authsQueue.length){e._debug&&e._debug(`Inbound: Received payload type 61 without auth`);return}if(e._authsQueue[0]!==`keyboard-interactive`)return i(e,`Inbound: Received unexpected payload type 61`);r.init(t,1);let n=r.readUInt32BE(),a;if(n!==void 0){a=Array(n);let e;for(e=0;e<n;++e){let t=r.readString(!0);if(t===void 0)break;a[e]=t}e!==n&&(a=void 0)}if(r.clear(),a===void 0)return i(e,`Inbound: Malformed USERAUTH_INFO_RESPONSE packet`);e._debug&&e._debug(`Inbound: Received USERAUTH_INFO_RESPONSE`);let o=e._handlers.USERAUTH_INFO_RESPONSE;o&&o(e,a)},[l.GLOBAL_REQUEST]:(e,t)=>{r.init(t,1);let n=r.readString(!0),a=r.readBool(),o;if(a!==void 0)switch(n){case`tcpip-forward`:case`cancel-tcpip-forward`:{let e=r.readString(!0),t=r.readUInt32BE();t!==void 0&&(o={bindAddr:e,bindPort:t});break}case`streamlocal-forward@openssh.com`:case`cancel-streamlocal-forward@openssh.com`:{let e=r.readString(!0);e!==void 0&&(o={socketPath:e});break}case`no-more-sessions@openssh.com`:o=null;break;case`hostkeys-00@openssh.com`:for(o=[];r.avail()>0;){let e=r.readString();if(e===void 0){o=void 0;break}let t=d(e);t instanceof Error||o.push(t)}break;default:o=r.readRaw()}if(r.clear(),o===void 0)return i(e,`Inbound: Malformed GLOBAL_REQUEST packet`);e._debug&&e._debug(`Inbound: GLOBAL_REQUEST (${n})`);let s=e._handlers.GLOBAL_REQUEST;s?s(e,n,a,o):e.requestFailure()},[l.REQUEST_SUCCESS]:(e,t)=>{let r=t.length>1?n(t,1):null;e._debug&&e._debug(`Inbound: REQUEST_SUCCESS`);let i=e._handlers.REQUEST_SUCCESS;i&&i(e,r)},[l.REQUEST_FAILURE]:(e,t)=>{e._debug&&e._debug(`Inbound: Received REQUEST_FAILURE`);let n=e._handlers.REQUEST_FAILURE;n&&n(e)},[l.CHANNEL_OPEN]:(e,t)=>{r.init(t,1);let n=r.readString(!0),a=r.readUInt32BE(),o=r.readUInt32BE(),c=r.readUInt32BE(),l;switch(n){case`forwarded-tcpip`:case`direct-tcpip`:{let e=r.readString(!0),t=r.readUInt32BE(),i=r.readString(!0),s=r.readUInt32BE();s!==void 0&&(l={type:n,sender:a,window:o,packetSize:c,data:{destIP:e,destPort:t,srcIP:i,srcPort:s}});break}case`forwarded-streamlocal@openssh.com`:case`direct-streamlocal@openssh.com`:{let e=r.readString(!0);e!==void 0&&(l={type:n,sender:a,window:o,packetSize:c,data:{socketPath:e}});break}case`x11`:{let e=r.readString(!0),t=r.readUInt32BE();t!==void 0&&(l={type:n,sender:a,window:o,packetSize:c,data:{srcIP:e,srcPort:t}});break}default:l={type:n,sender:a,window:o,packetSize:c,data:{}}}if(r.clear(),l===void 0)return i(e,`Inbound: Malformed CHANNEL_OPEN packet`);e._debug&&e._debug(`Inbound: CHANNEL_OPEN (s:${a}, ${n})`);let u=e._handlers.CHANNEL_OPEN;u?u(e,l):e.channelOpenFail(l.sender,s.ADMINISTRATIVELY_PROHIBITED,``,``)},[l.CHANNEL_OPEN_CONFIRMATION]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a=r.readUInt32BE(),o=r.readUInt32BE(),s=r.readUInt32BE(),c=r.avail()?r.readRaw():void 0;if(r.clear(),s===void 0)return i(e,`Inbound: Malformed CHANNEL_OPEN_CONFIRMATION packet`);e._debug&&e._debug(`Inbound: CHANNEL_OPEN_CONFIRMATION (r:${n}, s:${a})`);let l=e._handlers.CHANNEL_OPEN_CONFIRMATION;l&&l(e,{recipient:n,sender:a,window:o,packetSize:s,data:c})},[l.CHANNEL_OPEN_FAILURE]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a=r.readUInt32BE(),o=r.readString(!0),s=r.readString();if(r.clear(),s===void 0)return i(e,`Inbound: Malformed CHANNEL_OPEN_FAILURE packet`);e._debug&&e._debug(`Inbound: CHANNEL_OPEN_FAILURE (r:${n})`);let c=e._handlers.CHANNEL_OPEN_FAILURE;c&&c(e,n,a,o)},[l.CHANNEL_WINDOW_ADJUST]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a=r.readUInt32BE();if(r.clear(),a===void 0)return i(e,`Inbound: Malformed CHANNEL_WINDOW_ADJUST packet`);e._debug&&e._debug(`Inbound: CHANNEL_WINDOW_ADJUST (r:${n}, ${a})`);let o=e._handlers.CHANNEL_WINDOW_ADJUST;o&&o(e,n,a)},[l.CHANNEL_DATA]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a=r.readString();if(r.clear(),a===void 0)return i(e,`Inbound: Malformed CHANNEL_DATA packet`);e._debug&&e._debug(`Inbound: CHANNEL_DATA (r:${n}, ${a.length})`);let o=e._handlers.CHANNEL_DATA;o&&o(e,n,a)},[l.CHANNEL_EXTENDED_DATA]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a=r.readUInt32BE(),o=r.readString();if(r.clear(),o===void 0)return i(e,`Inbound: Malformed CHANNEL_EXTENDED_DATA packet`);e._debug&&e._debug(`Inbound: CHANNEL_EXTENDED_DATA (r:${n}, ${o.length})`);let s=e._handlers.CHANNEL_EXTENDED_DATA;s&&s(e,n,o,a)},[l.CHANNEL_EOF]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE();if(r.clear(),n===void 0)return i(e,`Inbound: Malformed CHANNEL_EOF packet`);e._debug&&e._debug(`Inbound: CHANNEL_EOF (r:${n})`);let a=e._handlers.CHANNEL_EOF;a&&a(e,n)},[l.CHANNEL_CLOSE]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE();if(r.clear(),n===void 0)return i(e,`Inbound: Malformed CHANNEL_CLOSE packet`);e._debug&&e._debug(`Inbound: CHANNEL_CLOSE (r:${n})`);let a=e._handlers.CHANNEL_CLOSE;a&&a(e,n)},[l.CHANNEL_REQUEST]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE(),a=r.readString(!0),o=r.readBool(),s;if(o!==void 0)switch(a){case`exit-status`:s=r.readUInt32BE(),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a}: ${s})`);break;case`exit-signal`:{let t,i;if(e._compatFlags&c.OLD_EXIT){let e=r.readUInt32BE();switch(e){case 1:t=`HUP`;break;case 2:t=`INT`;break;case 3:t=`QUIT`;break;case 6:t=`ABRT`;break;case 9:t=`KILL`;break;case 14:t=`ALRM`;break;case 15:t=`TERM`;break;default:e!==void 0&&(t=`UNKNOWN (${e})`)}i=!1}else t=r.readString(!0),i=r.readBool(),i===void 0&&(t=void 0);let o=r.readString(!0);r.skipString()!==void 0&&(s={signal:t,coreDumped:i,errorMessage:o}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a}: ${t})`);break}case`pty-req`:{let t=r.readString(!0),i=r.readUInt32BE(),o=r.readUInt32BE(),c=r.readUInt32BE(),l=r.readUInt32BE(),d=r.readString();if(d!==void 0){r.init(d,1);let e={};for(;r.avail();){let t=r.readByte();if(t===u.TTY_OP_END)break;let n=f[t],i=r.readUInt32BE();if(t===void 0||n===void 0||i===void 0){e=void 0;break}e[n]=i}e!==void 0&&(s={term:t,cols:i,rows:o,width:c,height:l,modes:e})}e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a})`);break}case`window-change`:{let t=r.readUInt32BE(),i=r.readUInt32BE(),o=r.readUInt32BE(),c=r.readUInt32BE();c!==void 0&&(s={cols:t,rows:i,width:o,height:c}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a})`);break}case`x11-req`:{let t=r.readBool(),i=r.readString(!0),o=r.readString(),c=r.readUInt32BE();c!==void 0&&(s={single:t,protocol:i,cookie:o,screen:c}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a})`);break}case`env`:{let t=r.readString(!0),i=r.readString(!0);i!==void 0&&(s={name:t,value:i}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a}: ${t}=${i})`);break}case`shell`:s=null,e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a})`);break;case`exec`:s=r.readString(!0),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a}: ${s})`);break;case`subsystem`:s=r.readString(!0),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a}: ${s})`);break;case`signal`:s=r.readString(!0),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a}: ${s})`);break;case`xon-xoff`:s=r.readBool(),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a}: ${s})`);break;case`auth-agent-req@openssh.com`:s=null,e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a})`);break;default:s=r.avail()?r.readRaw():null,e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${a})`)}if(r.clear(),s===void 0)return i(e,`Inbound: Malformed CHANNEL_REQUEST packet`);let l=e._handlers.CHANNEL_REQUEST;l&&l(e,n,a,o,s)},[l.CHANNEL_SUCCESS]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE();if(r.clear(),n===void 0)return i(e,`Inbound: Malformed CHANNEL_SUCCESS packet`);e._debug&&e._debug(`Inbound: CHANNEL_SUCCESS (r:${n})`);let a=e._handlers.CHANNEL_SUCCESS;a&&a(e,n)},[l.CHANNEL_FAILURE]:(e,t)=>{r.init(t,1);let n=r.readUInt32BE();if(r.clear(),n===void 0)return i(e,`Inbound: Malformed CHANNEL_FAILURE packet`);e._debug&&e._debug(`Inbound: CHANNEL_FAILURE (r:${n})`);let a=e._handlers.CHANNEL_FAILURE;a&&a(e,n)}}})),lh=s(((e,t)=>{let n=Array(256);[uh().HANDLERS,ch()].forEach(e=>{for(let[t,r]of Object.entries(e))t=+t,isFinite(t)&&t>=0&&t<n.length&&(n[t]=r)}),t.exports=n})),uh=s(((e,t)=>{let{createDiffieHellman:n,createDiffieHellmanGroup:r,createECDH:i,createHash:a,createPublicKey:o,diffieHellman:s,generateKeyPairSync:c,randomFillSync:l}=require("crypto"),{Ber:u}=Qm(),{COMPAT:d,curve25519Supported:f,DEFAULT_KEX:p,DEFAULT_SERVER_HOST_KEY:m,DEFAULT_CIPHER:h,DEFAULT_MAC:g,DEFAULT_COMPRESSION:_,DISCONNECT_REASON:v,MESSAGE:y}=th(),{CIPHER_INFO:b,createCipher:x,createDecipher:S,MAC_INFO:C}=ih(),{parseDERKey:w}=ah(),{bufferFill:T,bufferParser:E,convertSignature:D,doFatalError:O,FastBuffer:k,sigSSHToASN1:A,writeUInt32BE:j}=nh(),{PacketReader:M,PacketWriter:N,ZlibPacketReader:P,ZlibPacketWriter:F}=sh(),I,L=Buffer.alloc(0);function R(e){let t;if(e._compatFlags&d.BAD_DHGEX){let n=e._offer.lists.kex,r=n.array,i=!1;for(let e=0;e<r.length;++e)r[e].includes(`group-exchange`)&&(i||(i=!0,r=r.slice()),r.splice(e--,1));if(i){let i=17+e._offer.totalSize+1+4,a=Buffer.from(r.join(`,`));i-=n.buffer.length-a.length;let o=e._offer.lists.all,s=new Uint8Array(o.buffer,o.byteOffset+4+n.buffer.length,o.length-(4+n.buffer.length));t=Buffer.allocUnsafe(i),j(t,a.length,17),t.set(a,21),t.set(s,21+a.length)}}t===void 0&&(t=Buffer.allocUnsafe(17+e._offer.totalSize+1+4),e._offer.copyAllTo(t,17)),e._debug&&e._debug(`Outbound: Sending KEXINIT`),t[0]=y.KEXINIT,l(t,1,16),T(t,0,t.length-5),e._kexinit=t,e._packetRW.write.allocStart=0;{let n=e._packetRW.write.allocStartKEX,r=e._packetRW.write.alloc(t.length,!0);r.set(t,n),e._cipher.encrypt(e._packetRW.write.finalize(r,!0))}}function z(e,t){let n={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},sc:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0}};if(E.init(t,17),(n.kex=E.readList())===void 0||(n.serverHostKey=E.readList())===void 0||(n.cs.cipher=E.readList())===void 0||(n.sc.cipher=E.readList())===void 0||(n.cs.mac=E.readList())===void 0||(n.sc.mac=E.readList())===void 0||(n.cs.compress=E.readList())===void 0||(n.sc.compress=E.readList())===void 0||(n.cs.lang=E.readList())===void 0||(n.sc.lang=E.readList())===void 0)return E.clear(),O(e,`Received malformed KEXINIT`,`handshake`,v.KEY_EXCHANGE_FAILED);let r=E.pos(),i=r<t.length&&t[r]===1;E.clear();let a=e._offer,o=n,s=a.lists.kex.array;if(e._compatFlags&d.BAD_DHGEX){let e=!1;for(let t=0;t<s.length;++t)s[t].indexOf(`group-exchange`)!==-1&&(e||(e=!0,s=s.slice()),s.splice(t--,1))}let c,l,u,f=e._debug;f&&f(`Inbound: Handshake in progress`),f&&f(`Handshake: (local) KEX method: ${s}`),f&&f(`Handshake: (remote) KEX method: ${o.kex}`);let p;if(e._server?(l=s,c=o.kex,p=c.indexOf(`ext-info-c`)!==-1):(l=o.kex,c=s,p=l.indexOf(`ext-info-s`)!==-1),e._strictMode===void 0&&(e._server?e._strictMode=c.indexOf(`kex-strict-c-v00@openssh.com`)!==-1:e._strictMode=l.indexOf(`kex-strict-s-v00@openssh.com`)!==-1,e._strictMode&&(f&&f(`Handshake: strict KEX mode enabled`),e._decipher.inSeqno!==1)))return f&&f(`Handshake: KEXINIT not first packet in strict KEX mode`),O(e,`Handshake failed: KEXINIT not first packet in strict KEX mode`,`handshake`,v.KEY_EXCHANGE_FAILED);for(u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: no matching key exchange algorithm`),O(e,`Handshake failed: no matching key exchange algorithm`,`handshake`,v.KEY_EXCHANGE_FAILED);n.kex=c[u],f&&f(`Handshake: KEX algorithm: ${c[u]}`),i&&(!o.kex.length||c[u]!==o.kex[0])&&(e._skipNextInboundPacket=!0);let m=a.lists.serverHostKey.array;for(f&&f(`Handshake: (local) Host key format: ${m}`),f&&f(`Handshake: (remote) Host key format: ${o.serverHostKey}`),e._server?(l=m,c=o.serverHostKey):(l=o.serverHostKey,c=m),u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: No matching host key format`),O(e,`Handshake failed: no matching host key format`,`handshake`,v.KEY_EXCHANGE_FAILED);n.serverHostKey=c[u],f&&f(`Handshake: Host key format: ${c[u]}`);let h=a.lists.cs.cipher.array;for(f&&f(`Handshake: (local) C->S cipher: ${h}`),f&&f(`Handshake: (remote) C->S cipher: ${o.cs.cipher}`),e._server?(l=h,c=o.cs.cipher):(l=o.cs.cipher,c=h),u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: No matching C->S cipher`),O(e,`Handshake failed: no matching C->S cipher`,`handshake`,v.KEY_EXCHANGE_FAILED);n.cs.cipher=c[u],f&&f(`Handshake: C->S Cipher: ${c[u]}`);let g=a.lists.sc.cipher.array;for(f&&f(`Handshake: (local) S->C cipher: ${g}`),f&&f(`Handshake: (remote) S->C cipher: ${o.sc.cipher}`),e._server?(l=g,c=o.sc.cipher):(l=o.sc.cipher,c=g),u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: No matching S->C cipher`),O(e,`Handshake failed: no matching S->C cipher`,`handshake`,v.KEY_EXCHANGE_FAILED);n.sc.cipher=c[u],f&&f(`Handshake: S->C cipher: ${c[u]}`);let _=a.lists.cs.mac.array;if(f&&f(`Handshake: (local) C->S MAC: ${_}`),f&&f(`Handshake: (remote) C->S MAC: ${o.cs.mac}`),b[n.cs.cipher].authLen>0)n.cs.mac=``,f&&f(`Handshake: C->S MAC: <implicit>`);else{for(e._server?(l=_,c=o.cs.mac):(l=o.cs.mac,c=_),u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: No matching C->S MAC`),O(e,`Handshake failed: no matching C->S MAC`,`handshake`,v.KEY_EXCHANGE_FAILED);n.cs.mac=c[u],f&&f(`Handshake: C->S MAC: ${c[u]}`)}let y=a.lists.sc.mac.array;if(f&&f(`Handshake: (local) S->C MAC: ${y}`),f&&f(`Handshake: (remote) S->C MAC: ${o.sc.mac}`),b[n.sc.cipher].authLen>0)n.sc.mac=``,f&&f(`Handshake: S->C MAC: <implicit>`);else{for(e._server?(l=y,c=o.sc.mac):(l=o.sc.mac,c=y),u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: No matching S->C MAC`),O(e,`Handshake failed: no matching S->C MAC`,`handshake`,v.KEY_EXCHANGE_FAILED);n.sc.mac=c[u],f&&f(`Handshake: S->C MAC: ${c[u]}`)}let x=a.lists.cs.compress.array;for(f&&f(`Handshake: (local) C->S compression: ${x}`),f&&f(`Handshake: (remote) C->S compression: ${o.cs.compress}`),e._server?(l=x,c=o.cs.compress):(l=o.cs.compress,c=x),u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: No matching C->S compression`),O(e,`Handshake failed: no matching C->S compression`,`handshake`,v.KEY_EXCHANGE_FAILED);n.cs.compress=c[u],f&&f(`Handshake: C->S compression: ${c[u]}`);let S=a.lists.sc.compress.array;for(f&&f(`Handshake: (local) S->C compression: ${S}`),f&&f(`Handshake: (remote) S->C compression: ${o.sc.compress}`),e._server?(l=S,c=o.sc.compress):(l=o.sc.compress,c=S),u=0;u<c.length&&l.indexOf(c[u])===-1;++u);if(u===c.length)return f&&f(`Handshake: No matching S->C compression`),O(e,`Handshake failed: no matching S->C compression`,`handshake`,v.KEY_EXCHANGE_FAILED);n.sc.compress=c[u],f&&f(`Handshake: S->C compression: ${c[u]}`),n.cs.lang=``,n.sc.lang=``,e._kex&&(e._kexinit||R(e),e._decipher._onPayload=W.bind(e,{firstPacket:!1})),e._kex=B(n,e,t),e._kex.remoteExtInfoEnabled=p,e._kex.start()}let B=(()=>{function e(e){let t=0,n=e.length;for(;e[t]===0;)++t,--n;let r;return e[t]&128?(r=Buffer.allocUnsafe(1+n),r[0]=0,e.copy(r,1,t),e=r):n!==e.length&&(r=Buffer.allocUnsafe(n),e.copy(r,0,t),e=r),e}class t{constructor(e,t,n){this._protocol=t,this.sessionID=t._kex?t._kex.sessionID:void 0,this.negotiated=e,this.remoteExtInfoEnabled=!1,this._step=1,this._public=null,this._dh=null,this._sentNEWKEYS=!1,this._receivedNEWKEYS=!1,this._finished=!1,this._hostVerified=!1,this._kexinit=t._kexinit,this._remoteKexinit=n,this._identRaw=t._identRaw,this._remoteIdentRaw=t._remoteIdentRaw,this._hostKey=void 0,this._dhData=void 0,this._sig=void 0}finish(e){if(this._finished)return!1;this._finished=!0;let t=this._protocol._server,n=this.negotiated,r=this.convertPublicKey(this._dhData),i=this.computeSecret(this._dhData);if(i instanceof Error)return i.message=`Error while computing DH secret (${this.type}): ${i.message}`,i.level=`handshake`,O(this._protocol,i,v.KEY_EXCHANGE_FAILED);let o=a(this.hashName);H(o,t?this._remoteIdentRaw:this._identRaw),H(o,t?this._identRaw:this._remoteIdentRaw),H(o,t?this._remoteKexinit:this._kexinit),H(o,t?this._kexinit:this._remoteKexinit);let s=t?this._hostKey.getPublicSSH():this._hostKey;if(H(o,s),this.type===`groupex`){let e=this.getDHParams(),t=Buffer.allocUnsafe(4);j(t,this._minBits,0),o.update(t),j(t,this._prefBits,0),o.update(t),j(t,this._maxBits,0),o.update(t),H(o,e.prime),H(o,e.generator)}H(o,t?r:this.getPublicKey());let c=t?this.getPublicKey():r;H(o,c),H(o,i);let l=o.digest();if(t){let e;switch(this.negotiated.serverHostKey){case`rsa-sha2-256`:e=`sha256`;break;case`rsa-sha2-512`:e=`sha512`;break}this._protocol._debug&&this._protocol._debug(`Generating signature ...`);let t=this._hostKey.sign(l,e);if(t instanceof Error)return O(this._protocol,`Handshake failed: signature generation failed for ${this._hostKey.type} host key: ${t.message}`,`handshake`,v.KEY_EXCHANGE_FAILED);if(t=D(t,this._hostKey.type),t===!1)return O(this._protocol,`Handshake failed: signature conversion failed for ${this._hostKey.type} host key`,`handshake`,v.KEY_EXCHANGE_FAILED);let n=this.negotiated.serverHostKey,r=Buffer.byteLength(n),i=4+r+4+t.length,a=this._protocol._packetRW.write.allocStartKEX,o=this._protocol._packetRW.write.alloc(5+s.length+4+c.length+4+i,!0);if(o[a]=y.KEXDH_REPLY,j(o,s.length,++a),o.set(s,a+=4),j(o,c.length,a+=s.length),o.set(c,a+=4),j(o,i,a+=c.length),j(o,r,a+=4),o.utf8Write(n,a+=4,r),j(o,t.length,a+=r),o.set(t,a+=4),this._protocol._debug){let e;switch(this.type){case`group`:e=`KEXDH_REPLY`;break;case`groupex`:e=`KEXDH_GEX_REPLY`;break;default:e=`KEXECDH_REPLY`}this._protocol._debug(`Outbound: Sending ${e}`)}this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(o,!0))}else{E.init(this._sig,0);let e=E.readString(!0);if(!e)return O(this._protocol,`Malformed packet while reading signature`,`handshake`,v.KEY_EXCHANGE_FAILED);if(e!==n.serverHostKey)return O(this._protocol,`Wrong signature type: ${e}, expected: ${n.serverHostKey}`,`handshake`,v.KEY_EXCHANGE_FAILED);let t=E.readString();if(E.clear(),t===void 0)return O(this._protocol,`Malformed packet while reading signature`,`handshake`,v.KEY_EXCHANGE_FAILED);if(!(t=A(t,e)))return O(this._protocol,`Malformed signature`,`handshake`,v.KEY_EXCHANGE_FAILED);let r;{E.init(this._hostKey,0);let e=E.readString(!0),t=this._hostKey.slice(E.pos());if(E.clear(),r=w(t,e),r instanceof Error)return r.level=`handshake`,O(this._protocol,r,v.KEY_EXCHANGE_FAILED)}let i;switch(this.negotiated.serverHostKey){case`rsa-sha2-256`:i=`sha256`;break;case`rsa-sha2-512`:i=`sha512`;break}this._protocol._debug&&this._protocol._debug(`Verifying signature ...`);let a=r.verify(l,t,i);if(a!==!0)return a instanceof Error?this._protocol._debug&&this._protocol._debug(`Signature verification failed: ${a.stack}`):this._protocol._debug&&this._protocol._debug(`Signature verification failed`),O(this._protocol,`Handshake failed: signature verification failed`,`handshake`,v.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug(`Verified signature`)}(t||!e)&&ee(this);let u,d,f=e=>{if(u)return ee(this),u.outbound.seqno=this._protocol._cipher.outSeqno,this._protocol._cipher.free(),this._protocol._cipher=x(u),this._protocol._packetRW.write=d,u=void 0,d=void 0,this._protocol._onHandshakeComplete(n),!1;this.sessionID||=l;{let e=Buffer.allocUnsafe(4+i.length);j(e,i.length,0),e.set(i,4),i=e}let r=b[n.cs.cipher],a=b[n.sc.cipher],o=U(r.ivLen,this.hashName,i,l,this.sessionID,`A`),s=U(a.ivLen,this.hashName,i,l,this.sessionID,`B`),c=U(r.keyLen,this.hashName,i,l,this.sessionID,`C`),p=U(a.keyLen,this.hashName,i,l,this.sessionID,`D`),m,h;r.authLen||(m=C[n.cs.mac],h=U(m.len,this.hashName,i,l,this.sessionID,`E`));let g,_;a.authLen||(g=C[n.sc.mac],_=U(g.len,this.hashName,i,l,this.sessionID,`F`));let v={inbound:{onPayload:this._protocol._onPayload,seqno:this._protocol._decipher.inSeqno,decipherInfo:t?r:a,decipherIV:t?o:s,decipherKey:t?c:p,macInfo:t?m:g,macKey:t?h:_},outbound:{onWrite:this._protocol._onWrite,seqno:this._protocol._cipher.outSeqno,cipherInfo:t?a:r,cipherIV:t?s:o,cipherKey:t?p:c,macInfo:t?g:m,macKey:t?_:h}};this._protocol._decipher.free(),u=v,this._protocol._decipher=S(v);let y={read:void 0,write:void 0};switch(n.cs.compress){case`zlib`:t?y.read=new P:y.write=new F(this._protocol);break;case`zlib@openssh.com`:if(this._protocol._authenticated){t?y.read=new P:y.write=new F(this._protocol);break}default:t?y.read=new M:y.write=new N(this._protocol)}switch(n.sc.compress){case`zlib`:t?y.write=new F(this._protocol):y.read=new P;break;case`zlib@openssh.com`:if(this._protocol._authenticated){t?y.write=new F(this._protocol):y.read=new P;break}default:t?y.write=new N(this._protocol):y.read=new M}return this._protocol._packetRW.read.cleanup(),this._protocol._packetRW.write.cleanup(),this._protocol._packetRW.read=y.read,d=y.write,this._public=null,this._dh=null,this._kexinit=this._protocol._kexinit=void 0,this._remoteKexinit=void 0,this._identRaw=void 0,this._remoteIdentRaw=void 0,this._hostKey=void 0,this._dhData=void 0,this._sig=void 0,!e&&f()};if((t||e)&&(this.finish=f),!t)return f(e)}start(){if(!this._protocol._server){if(this._protocol._debug){let e;switch(this.type){case`group`:e=`KEXDH_INIT`;break;default:e=`KEXECDH_INIT`}this._protocol._debug(`Outbound: Sending ${e}`)}let e=this.getPublicKey(),t=this._protocol._packetRW.write.allocStartKEX,n=this._protocol._packetRW.write.alloc(5+e.length,!0);n[t]=y.KEXDH_INIT,j(n,e.length,++t),n.set(e,t+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(n,!0))}}getPublicKey(){this.generateKeys();let e=this._public;if(e)return this.convertPublicKey(e)}convertPublicKey(e){let t,n=0,r=e.length;for(;e[n]===0;)++n,--r;return e[n]&128?(t=Buffer.allocUnsafe(1+r),t[0]=0,e.copy(t,1,n),t):(r!==e.length&&(t=Buffer.allocUnsafe(r),e.copy(t,0,n),e=t),e)}computeSecret(t){this.generateKeys();try{return e(this._dh.computeSecret(t))}catch(e){return e}}parse(e){let t=e[0];switch(this._step){case 1:if(this._protocol._server){if(t!==y.KEXDH_INIT)return O(this._protocol,`Received packet ${t} instead of ${y.KEXDH_INIT}`,`handshake`,v.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug(`Received DH Init`),E.init(e,1);let n=E.readString();if(E.clear(),n===void 0)return O(this._protocol,`Received malformed KEX*_INIT`,`handshake`,v.KEY_EXCHANGE_FAILED);this._dhData=n;let r=this._protocol._hostKeys[this.negotiated.serverHostKey];Array.isArray(r)&&(r=r[0]),this._hostKey=r,this.finish()}else{if(t!==y.KEXDH_REPLY)return O(this._protocol,`Received packet ${t} instead of ${y.KEXDH_REPLY}`,`handshake`,v.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug(`Received DH Reply`),E.init(e,1);let n,r,i;if((n=E.readString())===void 0||(r=E.readString())===void 0||(i=E.readString())===void 0)return E.clear(),O(this._protocol,`Received malformed KEX*_REPLY`,`handshake`,v.KEY_EXCHANGE_FAILED);E.clear(),E.init(n,0);let a=E.readString(!0);if(E.clear(),a===void 0)return O(this._protocol,`Received malformed host public key`,`handshake`,v.KEY_EXCHANGE_FAILED);if(a!==this.negotiated.serverHostKey)switch(this.negotiated.serverHostKey){case`rsa-sha2-256`:case`rsa-sha2-512`:if(a===`ssh-rsa`)break;default:return O(this._protocol,`Host key does not match negotiated type`,`handshake`,v.KEY_EXCHANGE_FAILED)}this._hostKey=n,this._dhData=r,this._sig=i;let o=!1,s;if(this._protocol._hostVerifier===void 0?(s=!0,this._protocol._debug&&this._protocol._debug(`Host accepted by default (no verification)`)):s=this._protocol._hostVerifier(n,e=>{if(!o){if(o=!0,e===!1)return this._protocol._debug&&this._protocol._debug(`Host denied (verification failed)`),O(this._protocol,`Host denied (verification failed)`,`handshake`,v.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug(`Host accepted (verified)`),this._hostVerified=!0,this._receivedNEWKEYS?this.finish():ee(this)}}),s===void 0){++this._step;return}if(o=!0,s===!1)return this._protocol._debug&&this._protocol._debug(`Host denied (verification failed)`),O(this._protocol,`Host denied (verification failed)`,`handshake`,v.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug(`Host accepted (verified)`),this._hostVerified=!0,ee(this)}++this._step;break;case 2:return t===y.NEWKEYS?(this._protocol._debug&&this._protocol._debug(`Inbound: NEWKEYS`),this._receivedNEWKEYS=!0,this._protocol._strictMode&&(this._protocol._decipher.inSeqno=0),++this._step,this.finish(!this._protocol._server&&!this._hostVerified)):O(this._protocol,`Received packet ${t} instead of ${y.NEWKEYS}`,`handshake`,v.KEY_EXCHANGE_FAILED);default:return O(this._protocol,`Received unexpected packet ${t} after NEWKEYS`,`handshake`,v.KEY_EXCHANGE_FAILED)}}}class l extends t{constructor(e,...t){super(...t),this.type=`25519`,this.hashName=e,this._keys=null}generateKeys(){this._keys||=c(`x25519`)}getPublicKey(){return this.generateKeys(),this._keys.publicKey.export({type:`spki`,format:`der`}).slice(-32)}convertPublicKey(e){let t,n=0,r=e.length;for(;e[n]===0;)++n,--r;return e.length===32||r!==e.length&&(t=Buffer.allocUnsafe(r),e.copy(t,0,n),e=t),e}computeSecret(t){this.generateKeys();try{let n=new u.Writer;return n.startSequence(),n.startSequence(),n.writeOID(`1.3.101.110`),n.endSequence(),n.startSequence(u.BitString),n.writeByte(0),n._ensure(t.length),t.copy(n._buf,n._offset,0,t.length),n._offset+=t.length,n.endSequence(),n.endSequence(),e(s({privateKey:this._keys.privateKey,publicKey:o({key:n.buffer,type:`spki`,format:`der`})}))}catch(e){return e}}}class p extends t{constructor(e,t,...n){super(...n),this.type=`ecdh`,this.curveName=e,this.hashName=t}generateKeys(){this._dh||(this._dh=i(this.curveName),this._public=this._dh.generateKeys())}}class m extends t{constructor(e,...t){super(...t),this.type=`groupex`,this.hashName=e,this._prime=null,this._generator=null,this._minBits=2048,this._prefBits=G(this.negotiated),this._protocol._compatFlags&d.BUG_DHGEX_LARGE&&(this._prefBits=Math.min(this._prefBits,4096)),this._maxBits=8192}start(){if(this._protocol._server)return;this._protocol._debug&&this._protocol._debug(`Outbound: Sending KEXDH_GEX_REQUEST`);let e=this._protocol._packetRW.write.allocStartKEX,t=this._protocol._packetRW.write.alloc(13,!0);t[e]=y.KEXDH_GEX_REQUEST,j(t,this._minBits,++e),j(t,this._prefBits,e+=4),j(t,this._maxBits,e+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(t,!0))}generateKeys(){!this._dh&&this._prime&&this._generator&&(this._dh=n(this._prime,this._generator),this._public=this._dh.generateKeys())}setDHParams(e,t){if(!Buffer.isBuffer(e))throw Error(`Invalid prime value`);if(!Buffer.isBuffer(t))throw Error(`Invalid generator value`);this._prime=e,this._generator=t}getDHParams(){if(this._dh)return{prime:e(this._dh.getPrime()),generator:e(this._dh.getGenerator())}}parse(e){let n=e[0];switch(this._step){case 1:{if(this._protocol._server)return n===y.KEXDH_GEX_REQUEST?O(this._protocol,`Group exchange not implemented for server`,`handshake`,v.KEY_EXCHANGE_FAILED):O(this._protocol,`Received packet ${n} instead of `+y.KEXDH_GEX_REQUEST,`handshake`,v.KEY_EXCHANGE_FAILED);if(n!==y.KEXDH_GEX_GROUP)return O(this._protocol,`Received packet ${n} instead of ${y.KEXDH_GEX_GROUP}`,`handshake`,v.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug(`Received DH GEX Group`),E.init(e,1);let t,r;if((t=E.readString())===void 0||(r=E.readString())===void 0)return E.clear(),O(this._protocol,`Received malformed KEXDH_GEX_GROUP`,`handshake`,v.KEY_EXCHANGE_FAILED);E.clear(),this.setDHParams(t,r),this.generateKeys();let i=this.getPublicKey();this._protocol._debug&&this._protocol._debug(`Outbound: Sending KEXDH_GEX_INIT`);let a=this._protocol._packetRW.write.allocStartKEX,o=this._protocol._packetRW.write.alloc(5+i.length,!0);o[a]=y.KEXDH_GEX_INIT,j(o,i.length,++a),o.set(i,a+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(o,!0)),++this._step;break}case 2:if(this._protocol._server)return n===y.KEXDH_GEX_INIT?(this._protocol._debug&&this._protocol._debug(`Received DH GEX Init`),O(this._protocol,`Group exchange not implemented for server`,`handshake`,v.KEY_EXCHANGE_FAILED)):O(this._protocol,`Received packet ${n} instead of ${y.KEXDH_GEX_INIT}`,`handshake`,v.KEY_EXCHANGE_FAILED);if(n!==y.KEXDH_GEX_REPLY)return O(this._protocol,`Received packet ${n} instead of ${y.KEXDH_GEX_REPLY}`,`handshake`,v.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug(`Received DH GEX Reply`),this._step=1,e[0]=y.KEXDH_REPLY,this.parse=t.prototype.parse,this.parse(e)}}}class h extends t{constructor(e,t,...n){super(...n),this.type=`group`,this.groupName=e,this.hashName=t}start(){if(!this._protocol._server){this._protocol._debug&&this._protocol._debug(`Outbound: Sending KEXDH_INIT`);let e=this.getPublicKey(),t=this._protocol._packetRW.write.allocStartKEX,n=this._protocol._packetRW.write.alloc(5+e.length,!0);n[t]=y.KEXDH_INIT,j(n,e.length,++t),n.set(e,t+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(n,!0))}}generateKeys(){this._dh||(this._dh=r(this.groupName),this._public=this._dh.generateKeys())}getDHParams(){if(this._dh)return{prime:e(this._dh.getPrime()),generator:e(this._dh.getGenerator())}}}return(e,...t)=>{if(typeof e!=`object`||!e)throw Error(`Invalid negotiated argument`);let n=e.kex;if(typeof n==`string`){switch(t=[e,...t],n){case`curve25519-sha256`:case`curve25519-sha256@libssh.org`:if(!f)break;return new l(`sha256`,...t);case`ecdh-sha2-nistp256`:return new p(`prime256v1`,`sha256`,...t);case`ecdh-sha2-nistp384`:return new p(`secp384r1`,`sha384`,...t);case`ecdh-sha2-nistp521`:return new p(`secp521r1`,`sha512`,...t);case`diffie-hellman-group1-sha1`:return new h(`modp2`,`sha1`,...t);case`diffie-hellman-group14-sha1`:return new h(`modp14`,`sha1`,...t);case`diffie-hellman-group14-sha256`:return new h(`modp14`,`sha256`,...t);case`diffie-hellman-group15-sha512`:return new h(`modp15`,`sha512`,...t);case`diffie-hellman-group16-sha512`:return new h(`modp16`,`sha512`,...t);case`diffie-hellman-group17-sha512`:return new h(`modp17`,`sha512`,...t);case`diffie-hellman-group18-sha512`:return new h(`modp18`,`sha512`,...t);case`diffie-hellman-group-exchange-sha1`:return new m(`sha1`,...t);case`diffie-hellman-group-exchange-sha256`:return new m(`sha256`,...t)}throw Error(`Unsupported key exchange algorithm: ${n}`)}throw Error(`Invalid key exchange type: ${n}`)}})(),V=(()=>{let e=[`kex`,`serverHostKey`,[`cs`,`cipher`],[`sc`,`cipher`],[`cs`,`mac`],[`sc`,`mac`],[`cs`,`compress`],[`sc`,`compress`],[`cs`,`lang`],[`sc`,`lang`]];return class{constructor(t){if(typeof t!=`object`||!t)throw TypeError(`Argument must be an object`);let n={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},sc:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},all:void 0},r=0;for(let i of e){let e,a,o,s;if(typeof i==`string`)e=n,a=t[i],o=s=i;else{let r=i[0];e=n[r],s=i[1],a=t[r][s],o=`${r}.${s}`}let c={array:void 0,buffer:void 0};if(Buffer.isBuffer(a))c.array=(``+a).split(`,`),c.buffer=a,r+=4+a.length;else{if(typeof a==`string`&&(a=a.split(`,`)),Array.isArray(a))c.array=a,c.buffer=Buffer.from(a.join(`,`));else throw TypeError(`Invalid \`${o}\` type: ${typeof a}`);r+=4+c.buffer.length}e[s]=c}let i=Buffer.allocUnsafe(r);n.all=i;let a=0;for(let t of e){let e;e=typeof t==`string`?n[t].buffer:n[t[0]][t[1]].buffer,a=j(i,e.length,a),i.set(e,a),a+=e.length}this.totalSize=r,this.lists=n}copyAllTo(e,t){let n=this.lists.all;if(typeof t!=`number`)throw TypeError(`Invalid offset value: ${typeof t}`);if(e.length-t<n.length)throw Error(`Insufficient space to copy list`);return e.set(n,t),n.length}}})(),H=(()=>{let e=Buffer.allocUnsafe(4);return(t,n)=>{j(e,n.length,0),t.update(e),t.update(n)}})();function U(e,t,n,r,i,o){let s;if(e){let c=a(t).update(n).update(r).update(o).update(i).digest();for(;c.length<e;){let e=a(t).update(n).update(r).update(c).digest(),i=Buffer.allocUnsafe(c.length+e.length);i.set(c,0),i.set(e,c.length),c=i}s=c.length===e?c:new k(c.buffer,c.byteOffset,e)}else s=L;return s}function W(e,t){if(t.length===0){this._debug&&this._debug(`Inbound: Skipping empty packet payload`);return}if(this._skipNextInboundPacket){this._skipNextInboundPacket=!1;return}t=this._packetRW.read.read(t);let n=t[0];if(!this._strictMode)switch(n){case y.IGNORE:case y.UNIMPLEMENTED:case y.DEBUG:return I||=lh(),I[n](this,t)}switch(n){case y.DISCONNECT:return I||=lh(),I[n](this,t);case y.KEXINIT:return e.firstPacket?(e.firstPacket=!1,z(this,t)):O(this,`Received extra KEXINIT during handshake`,`handshake`,v.KEY_EXCHANGE_FAILED);default:if(n<20||n>49)return O(this,`Received unexpected packet type ${n}`,`handshake`,v.KEY_EXCHANGE_FAILED)}return this._kex.parse(t)}function G(e){let t=b[e.cs.cipher],n=b[e.sc.cipher],r=Math.max(0,t.sslName===`des-ede3-cbc`?14:t.keyLen,t.blockLen,t.ivLen,n.sslName===`des-ede3-cbc`?14:n.keyLen,n.blockLen,n.ivLen)*8;return r<=112?2048:r<=128?3072:r<=192?7680:8192}function ee(e){if(!e._sentNEWKEYS){e._protocol._debug&&e._protocol._debug(`Outbound: Sending NEWKEYS`);let t=e._protocol._packetRW.write.allocStartKEX,n=e._protocol._packetRW.write.alloc(1,!0);n[t]=y.NEWKEYS,e._protocol._cipher.encrypt(e._protocol._packetRW.write.finalize(n,!0)),e._sentNEWKEYS=!0,e._protocol._strictMode&&(e._protocol._cipher.outSeqno=0)}}t.exports={KexInit:V,kexinit:R,onKEXPayload:W,DEFAULT_KEXINIT_CLIENT:new V({kex:p.concat([`ext-info-c`,`kex-strict-c-v00@openssh.com`]),serverHostKey:m,cs:{cipher:h,mac:g,compress:_,lang:[]},sc:{cipher:h,mac:g,compress:_,lang:[]}}),DEFAULT_KEXINIT_SERVER:new V({kex:p.concat([`kex-strict-s-v00@openssh.com`]),serverHostKey:m,cs:{cipher:h,mac:g,compress:_,lang:[]},sc:{cipher:h,mac:g,compress:_,lang:[]}}),HANDLERS:{[y.KEXINIT]:z}}})),dh=s(((e,t)=>{t.exports={name:`ssh2`,version:`1.16.0`,author:`Brian White <mscdex@mscdex.net>`,description:`SSH2 client and server modules written in pure JavaScript for node.js`,main:`./lib/index.js`,engines:{node:`>=10.16.0`},dependencies:{asn1:`^0.2.6`,"bcrypt-pbkdf":`^1.0.2`},devDependencies:{"@mscdex/eslint-config":`^1.1.0`,eslint:`^7.32.0`},optionalDependencies:{"cpu-features":`~0.0.10`,nan:`^2.20.0`},scripts:{install:`node install.js`,rebuild:`node install.js`,test:`node test/test.js`,lint:`eslint --cache --report-unused-disable-directives --ext=.js .eslintrc.js examples lib test`,"lint:fix":`npm run lint -- --fix`},keywords:[`ssh`,`ssh2`,`sftp`,`secure`,`shell`,`exec`,`remote`,`client`],licenses:[{type:`MIT`,url:`http://github.com/mscdex/ssh2/raw/master/LICENSE`}],repository:{type:`git`,url:`http://github.com/mscdex/ssh2.git`}}})),fh=s(((e,t)=>{let{inspect:n}=require("util"),{bindingAvailable:r,NullCipher:i,NullDecipher:a}=ih(),{COMPAT_CHECKS:o,DISCONNECT_REASON:s,eddsaSupported:c,MESSAGE:l,SIGNALS:u,TERMINAL_MODE:d}=th(),{DEFAULT_KEXINIT_CLIENT:f,DEFAULT_KEXINIT_SERVER:p,KexInit:m,kexinit:h,onKEXPayload:g}=uh(),{parseKey:_}=ah(),v=lh(),{bufferCopy:y,bufferFill:b,bufferSlice:x,convertSignature:S,sendPacket:C,writeUInt32BE:w}=nh(),{PacketReader:T,PacketWriter:E,ZlibPacketReader:D,ZlibPacketWriter:O}=sh(),k=dh().version,A=new Map(Object.values(s).map(e=>[e,1])),j=Buffer.from(`SSH-2.0-ssh2js${k}`),M=Buffer.from(`${j}\r\n`),N=Buffer.from([l.GLOBAL_REQUEST,0,0,0,21,107,101,101,112,97,108,105,118,101,64,111,112,101,110,115,115,104,46,99,111,109,1]),P=Buffer.from([d.TTY_OP_END]);function F(){}var I=class{constructor(e){let t=e.onWrite;if(typeof t!=`function`)throw Error(`Missing onWrite function`);this._onWrite=e=>{t(e)};let a=e.onError;if(typeof a!=`function`)throw Error(`Missing onError function`);this._onError=e=>{a(e)};let o=e.debug;this._debug=typeof o==`function`?e=>{o(e)}:void 0;let s=e.onHeader;this._onHeader=typeof s==`function`?(...e)=>{s(...e)}:F;let c=e.onPacket;this._onPacket=typeof c==`function`?()=>{c()}:F;let l=e.onHandshakeComplete;typeof l!=`function`&&(l=F);let u;this._onHandshakeComplete=(...e)=>{this._debug&&this._debug(`Handshake completed`),u=u===void 0;let t=this._queue;if(t){this._queue=void 0,this._debug&&this._debug(`Draining outbound queue (${t.length}) ...`);for(let e=0;e<t.length;++e){let n=t[e],r=this._packetRW.write.finalize(n);if(r===n){let e=this._cipher.allocPacket(n.length);e.set(n,5),r=e}C(this,r)}this._debug&&this._debug(`... finished draining outbound queue`)}u&&this._server&&this._kex.remoteExtInfoEnabled&&U(this),l(...e)},this._queue=void 0;let d=e.messageHandlers;typeof d==`object`&&d?this._handlers=d:this._handlers={},this._onPayload=B.bind(this),this._server=!!e.server,this._banner=void 0;let h;if(this._server){if(typeof e.hostKeys!=`object`||e.hostKeys===null)throw Error(`Missing server host key(s)`);this._hostKeys=e.hostKeys,typeof e.greeting==`string`&&e.greeting.length&&(h=e.greeting.slice(-2)===`\r
223
+ `?e.greeting:`${e.greeting}\r\n`),typeof e.banner==`string`&&e.banner.length&&(this._banner=e.banner.slice(-2)===`\r
224
+ `?e.banner:`${e.banner}\r\n`)}else this._hostKeys=void 0;let g=e.offer;typeof g!=`object`||!g?g=this._server?p:f:g.constructor!==m&&(this._server?g.kex=g.kex.concat([`kex-strict-s-v00@openssh.com`]):g.kex=g.kex.concat([`ext-info-c`,`kex-strict-c-v00@openssh.com`]),g=new m(g)),this._kex=void 0,this._strictMode=void 0,this._kexinit=void 0,this._offer=g,this._cipher=new i(0,this._onWrite),this._decipher=void 0,this._skipNextInboundPacket=!1,this._packetRW={read:new T,write:new E(this)},this._hostVerifier=!this._server&&typeof e.hostVerifier==`function`?e.hostVerifier:void 0,this._parse=R,this._buffer=void 0,this._authsQueue=[],this._authenticated=!1,this._remoteIdentRaw=void 0;let _;if(typeof e.ident==`string`)this._identRaw=Buffer.from(`SSH-2.0-${e.ident}`),_=Buffer.allocUnsafe(this._identRaw.length+2),_.set(this._identRaw,0),_[_.length-2]=13,_[_.length-1]=10;else if(Buffer.isBuffer(e.ident)){let t=Buffer.allocUnsafe(8+e.ident.length);t.latin1Write(`SSH-2.0-`,0,8),t.set(e.ident,8),this._identRaw=t,_=Buffer.allocUnsafe(t.length+2),_.set(t,0),_[_.length-2]=13,_[_.length-1]=10}else this._identRaw=j,_=M;this._compatFlags=0,this._debug&&(r?this._debug(`Custom crypto binding available`):this._debug(`Custom crypto binding not available`)),this._debug&&this._debug(`Local ident: ${n(this._identRaw.toString())}`),this.start=()=>{this.start=void 0,h&&this._onWrite(h),this._onWrite(_)}}_destruct(e){this._packetRW.read.cleanup(),this._packetRW.write.cleanup(),this._cipher&&this._cipher.free(),this._decipher&&this._decipher.free(),(typeof e!=`string`||e.length===0)&&(e=`fatal error`),this.parse=()=>{throw Error(`Instance unusable after ${e}`)},this._onWrite=()=>{throw Error(`Instance unusable after ${e}`)},this._destruct=void 0}cleanup(){this._destruct&&this._destruct()}parse(e,t,n){for(;t<n;)t=this._parse(e,t,n)}disconnect(e){let t=this._packetRW.write.allocStartKEX,n=this._packetRW.write.alloc(13,!0),r=t+13;A.has(e)||(e=s.PROTOCOL_ERROR),n[t]=l.DISCONNECT,w(n,e,++t),n.fill(0,t+=4,r),this._debug&&this._debug(`Outbound: Sending DISCONNECT (${e})`),C(this,this._packetRW.write.finalize(n,!0),!0)}ping(){let e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(N.length);t.set(N,e),this._debug&&this._debug(`Outbound: Sending ping (GLOBAL_REQUEST: keepalive@openssh.com)`),C(this,this._packetRW.write.finalize(t))}rekey(){this._kexinit===void 0?(this._debug&&this._debug(`Outbound: Initiated explicit rekey`),this._queue=[],h(this)):this._debug&&this._debug(`Outbound: Ignoring rekey during handshake`)}requestSuccess(e){let t=this._packetRW.write.allocStart,n;Buffer.isBuffer(e)?(n=this._packetRW.write.alloc(1+e.length),n[t]=l.REQUEST_SUCCESS,n.set(e,++t)):(n=this._packetRW.write.alloc(1),n[t]=l.REQUEST_SUCCESS),this._debug&&this._debug(`Outbound: Sending REQUEST_SUCCESS`),C(this,this._packetRW.write.finalize(n))}requestFailure(){let e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(1);t[e]=l.REQUEST_FAILURE,this._debug&&this._debug(`Outbound: Sending REQUEST_FAILURE`),C(this,this._packetRW.write.finalize(t))}channelSuccess(e){let t=this._packetRW.write.allocStart,n=this._packetRW.write.alloc(5);n[t]=l.CHANNEL_SUCCESS,w(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_SUCCESS (r:${e})`),C(this,this._packetRW.write.finalize(n))}channelFailure(e){let t=this._packetRW.write.allocStart,n=this._packetRW.write.alloc(5);n[t]=l.CHANNEL_FAILURE,w(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_FAILURE (r:${e})`),C(this,this._packetRW.write.finalize(n))}channelEOF(e){let t=this._packetRW.write.allocStart,n=this._packetRW.write.alloc(5);n[t]=l.CHANNEL_EOF,w(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_EOF (r:${e})`),C(this,this._packetRW.write.finalize(n))}channelClose(e){let t=this._packetRW.write.allocStart,n=this._packetRW.write.alloc(5);n[t]=l.CHANNEL_CLOSE,w(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_CLOSE (r:${e})`),C(this,this._packetRW.write.finalize(n))}channelWindowAdjust(e,t){let n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(9);r[n]=l.CHANNEL_WINDOW_ADJUST,w(r,e,++n),w(r,t,n+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_WINDOW_ADJUST (r:${e}, ${t})`),C(this,this._packetRW.write.finalize(r))}channelData(e,t){let n=Buffer.isBuffer(t),r=n?t.length:Buffer.byteLength(t),i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(9+r);a[i]=l.CHANNEL_DATA,w(a,e,++i),w(a,r,i+=4),n?a.set(t,i+=4):a.utf8Write(t,i+=4,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_DATA (r:${e}, ${r})`),C(this,this._packetRW.write.finalize(a))}channelExtData(e,t,n){let r=Buffer.isBuffer(t),i=r?t.length:Buffer.byteLength(t),a=this._packetRW.write.allocStart,o=this._packetRW.write.alloc(13+i);o[a]=l.CHANNEL_EXTENDED_DATA,w(o,e,++a),w(o,n,a+=4),w(o,i,a+=4),r?o.set(t,a+=4):o.utf8Write(t,a+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_EXTENDED_DATA (r:${e})`),C(this,this._packetRW.write.finalize(o))}channelOpenConfirm(e,t,n,r){let i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(17);a[i]=l.CHANNEL_OPEN_CONFIRMATION,w(a,e,++i),w(a,t,i+=4),w(a,n,i+=4),w(a,r,i+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN_CONFIRMATION (r:${e}, l:${t})`),C(this,this._packetRW.write.finalize(a))}channelOpenFail(e,t,n){typeof n!=`string`&&(n=``);let r=Buffer.byteLength(n),i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(13+r+4);a[i]=l.CHANNEL_OPEN_FAILURE,w(a,e,++i),w(a,t,i+=4),w(a,r,i+=4),i+=4,r&&(a.utf8Write(n,i,r),i+=r),w(a,0,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN_FAILURE (r:${e})`),C(this,this._packetRW.write.finalize(a))}service(e){if(this._server)throw Error(`Client-only method called in server mode`);let t=Buffer.byteLength(e),n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(5+t);r[n]=l.SERVICE_REQUEST,w(r,t,++n),r.utf8Write(e,n+=4,t),this._debug&&this._debug(`Outbound: Sending SERVICE_REQUEST (${e})`),C(this,this._packetRW.write.finalize(r))}authPassword(e,t,n){if(this._server)throw Error(`Client-only method called in server mode`);let r=Buffer.byteLength(e),i=Buffer.byteLength(t),a=n?Buffer.byteLength(n):0,o=this._packetRW.write.allocStart,s=this._packetRW.write.alloc(5+r+4+14+4+8+1+4+i+(n?4+a:0));s[o]=l.USERAUTH_REQUEST,w(s,r,++o),s.utf8Write(e,o+=4,r),w(s,14,o+=r),s.utf8Write(`ssh-connection`,o+=4,14),w(s,8,o+=14),s.utf8Write(`password`,o+=4,8),s[o+=8]=+!!n,w(s,i,++o),Buffer.isBuffer(t)?y(t,s,0,i,o+=4):s.utf8Write(t,o+=4,i),n?(w(s,a,o+=i),Buffer.isBuffer(n)?y(n,s,0,a,o+=4):s.utf8Write(n,o+=4,a),this._debug&&this._debug(`Outbound: Sending USERAUTH_REQUEST (changed password)`)):this._debug&&this._debug(`Outbound: Sending USERAUTH_REQUEST (password)`),this._authsQueue.push(`password`),C(this,this._packetRW.write.finalize(s))}authPK(e,t,n,r){if(this._server)throw Error(`Client-only method called in server mode`);if(t=_(t),t instanceof Error)throw Error(`Invalid key`);let i=t.type;t=t.getPublicSSH(),typeof n==`function`&&(r=n,n=void 0),n||=i;let a=Buffer.byteLength(e),o=Buffer.byteLength(n),s=t.length,c=this._kex.sessionID,u=c.length,d=(r?4+u:0)+1+4+a+4+14+4+9+1+4+o+4+s,f,p;if(r?(f=Buffer.allocUnsafe(d),p=0,w(f,u,p),f.set(c,p+=4),p+=u):(f=this._packetRW.write.alloc(d),p=this._packetRW.write.allocStart),f[p]=l.USERAUTH_REQUEST,w(f,a,++p),f.utf8Write(e,p+=4,a),w(f,14,p+=a),f.utf8Write(`ssh-connection`,p+=4,14),w(f,9,p+=14),f.utf8Write(`publickey`,p+=4,9),f[p+=9]=+!!r,w(f,o,++p),f.utf8Write(n,p+=4,o),w(f,s,p+=o),f.set(t,p+=4),!r){this._authsQueue.push(`publickey`),this._debug&&this._debug(`Outbound: Sending USERAUTH_REQUEST (publickey -- check)`),C(this,this._packetRW.write.finalize(f));return}r(f,r=>{if(r=S(r,i),r===!1)throw Error(`Error while converting handshake signature`);let c=r.length;p=this._packetRW.write.allocStart,f=this._packetRW.write.alloc(5+a+4+14+4+9+1+4+o+4+s+4+4+o+4+c),f[p]=l.USERAUTH_REQUEST,w(f,a,++p),f.utf8Write(e,p+=4,a),w(f,14,p+=a),f.utf8Write(`ssh-connection`,p+=4,14),w(f,9,p+=14),f.utf8Write(`publickey`,p+=4,9),f[p+=9]=1,w(f,o,++p),f.utf8Write(n,p+=4,o),w(f,s,p+=o),f.set(t,p+=4),w(f,4+o+4+c,p+=s),w(f,o,p+=4),f.utf8Write(n,p+=4,o),w(f,c,p+=o),f.set(r,p+=4),this._authsQueue.push(`publickey`),this._debug&&this._debug(`Outbound: Sending USERAUTH_REQUEST (publickey)`),C(this,this._packetRW.write.finalize(f))})}authHostbased(e,t,n,r,i,a){if(this._server)throw Error(`Client-only method called in server mode`);if(t=_(t),t instanceof Error)throw Error(`Invalid key`);let o=t.type;t=t.getPublicSSH(),typeof i==`function`&&(a=i,i=void 0),i||=o;let s=Buffer.byteLength(e),c=Buffer.byteLength(i),u=t.length,d=this._kex.sessionID,f=d.length,p=Buffer.byteLength(n),m=Buffer.byteLength(r),h=Buffer.allocUnsafe(4+f+1+4+s+4+14+4+9+4+c+4+u+4+p+4+m),g=0;w(h,f,g),h.set(d,g+=4),h[g+=f]=l.USERAUTH_REQUEST,w(h,s,++g),h.utf8Write(e,g+=4,s),w(h,14,g+=s),h.utf8Write(`ssh-connection`,g+=4,14),w(h,9,g+=14),h.utf8Write(`hostbased`,g+=4,9),w(h,c,g+=9),h.utf8Write(i,g+=4,c),w(h,u,g+=c),h.set(t,g+=4),w(h,p,g+=u),h.utf8Write(n,g+=4,p),w(h,m,g+=p),h.utf8Write(r,g+=4,m),a(h,e=>{if(e=S(e,o),!e)throw Error(`Error while converting handshake signature`);let t=e.length,n=h.length-f-4;g=this._packetRW.write.allocStart;let r=this._packetRW.write.alloc(n+4+4+c+4+t);y(h,r,4+f,h.length,g),w(r,4+c+4+t,g+=n),w(r,c,g+=4),r.utf8Write(i,g+=4,c),w(r,t,g+=c),r.set(e,g+=4),this._authsQueue.push(`hostbased`),this._debug&&this._debug(`Outbound: Sending USERAUTH_REQUEST (hostbased)`),C(this,this._packetRW.write.finalize(r))})}authKeyboard(e){if(this._server)throw Error(`Client-only method called in server mode`);let t=Buffer.byteLength(e),n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(5+t+4+14+4+20+4+4);r[n]=l.USERAUTH_REQUEST,w(r,t,++n),r.utf8Write(e,n+=4,t),w(r,14,n+=t),r.utf8Write(`ssh-connection`,n+=4,14),w(r,20,n+=14),r.utf8Write(`keyboard-interactive`,n+=4,20),w(r,0,n+=20),w(r,0,n+=4),this._authsQueue.push(`keyboard-interactive`),this._debug&&this._debug(`Outbound: Sending USERAUTH_REQUEST (keyboard-interactive)`),C(this,this._packetRW.write.finalize(r))}authNone(e){if(this._server)throw Error(`Client-only method called in server mode`);let t=Buffer.byteLength(e),n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(5+t+4+14+4+4);r[n]=l.USERAUTH_REQUEST,w(r,t,++n),r.utf8Write(e,n+=4,t),w(r,14,n+=t),r.utf8Write(`ssh-connection`,n+=4,14),w(r,4,n+=14),r.utf8Write(`none`,n+=4,4),this._authsQueue.push(`none`),this._debug&&this._debug(`Outbound: Sending USERAUTH_REQUEST (none)`),C(this,this._packetRW.write.finalize(r))}authInfoRes(e){if(this._server)throw Error(`Client-only method called in server mode`);let t=0,n;if(e){n=Array(e.length);for(let r=0;r<e.length;++r){let i=Buffer.byteLength(e[r]);n[r]=i,t+=4+i}}let r=this._packetRW.write.allocStart,i=this._packetRW.write.alloc(5+t);if(i[r]=l.USERAUTH_INFO_RESPONSE,e){w(i,e.length,++r),r+=4;for(let t=0;t<e.length;++t){let a=n[t];w(i,a,r),r+=4,a&&(i.utf8Write(e[t],r,a),r+=a)}}else w(i,0,++r);this._debug&&this._debug(`Outbound: Sending USERAUTH_INFO_RESPONSE`),C(this,this._packetRW.write.finalize(i))}tcpipForward(e,t,n){if(this._server)throw Error(`Client-only method called in server mode`);let r=Buffer.byteLength(e),i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(23+r+4);a[i]=l.GLOBAL_REQUEST,w(a,13,++i),a.utf8Write(`tcpip-forward`,i+=4,13),a[i+=13]=+(n===void 0||n===!0),w(a,r,++i),a.utf8Write(e,i+=4,r),w(a,t,i+=r),this._debug&&this._debug(`Outbound: Sending GLOBAL_REQUEST (tcpip-forward)`),C(this,this._packetRW.write.finalize(a))}cancelTcpipForward(e,t,n){if(this._server)throw Error(`Client-only method called in server mode`);let r=Buffer.byteLength(e),i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(30+r+4);a[i]=l.GLOBAL_REQUEST,w(a,20,++i),a.utf8Write(`cancel-tcpip-forward`,i+=4,20),a[i+=20]=+(n===void 0||n===!0),w(a,r,++i),a.utf8Write(e,i+=4,r),w(a,t,i+=r),this._debug&&this._debug(`Outbound: Sending GLOBAL_REQUEST (cancel-tcpip-forward)`),C(this,this._packetRW.write.finalize(a))}openssh_streamLocalForward(e,t){if(this._server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=this._packetRW.write.allocStart,i=this._packetRW.write.alloc(41+n);i[r]=l.GLOBAL_REQUEST,w(i,31,++r),i.utf8Write(`streamlocal-forward@openssh.com`,r+=4,31),i[r+=31]=+(t===void 0||t===!0),w(i,n,++r),i.utf8Write(e,r+=4,n),this._debug&&this._debug(`Outbound: Sending GLOBAL_REQUEST (streamlocal-forward@openssh.com)`),C(this,this._packetRW.write.finalize(i))}openssh_cancelStreamLocalForward(e,t){if(this._server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=this._packetRW.write.allocStart,i=this._packetRW.write.alloc(48+n);i[r]=l.GLOBAL_REQUEST,w(i,38,++r),i.utf8Write(`cancel-streamlocal-forward@openssh.com`,r+=4,38),i[r+=38]=+(t===void 0||t===!0),w(i,n,++r),i.utf8Write(e,r+=4,n),this._debug&&this._debug(`Outbound: Sending GLOBAL_REQUEST (cancel-streamlocal-forward@openssh.com)`),C(this,this._packetRW.write.finalize(i))}directTcpip(e,t,n,r){if(this._server)throw Error(`Client-only method called in server mode`);let i=Buffer.byteLength(r.srcIP),a=Buffer.byteLength(r.dstIP),o=this._packetRW.write.allocStart,s=this._packetRW.write.alloc(33+i+4+4+a+4);s[o]=l.CHANNEL_OPEN,w(s,12,++o),s.utf8Write(`direct-tcpip`,o+=4,12),w(s,e,o+=12),w(s,t,o+=4),w(s,n,o+=4),w(s,a,o+=4),s.utf8Write(r.dstIP,o+=4,a),w(s,r.dstPort,o+=a),w(s,i,o+=4),s.utf8Write(r.srcIP,o+=4,i),w(s,r.srcPort,o+=i),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, direct-tcpip)`),C(this,this._packetRW.write.finalize(s))}openssh_directStreamLocal(e,t,n,r){if(this._server)throw Error(`Client-only method called in server mode`);let i=Buffer.byteLength(r.socketPath),a=this._packetRW.write.allocStart,o=this._packetRW.write.alloc(51+i+4+4);o[a]=l.CHANNEL_OPEN,w(o,30,++a),o.utf8Write(`direct-streamlocal@openssh.com`,a+=4,30),w(o,e,a+=30),w(o,t,a+=4),w(o,n,a+=4),w(o,i,a+=4),o.utf8Write(r.socketPath,a+=4,i),b(o,0,a+=i,a+8),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, direct-streamlocal@openssh.com)`),C(this,this._packetRW.write.finalize(o))}openssh_noMoreSessions(e){if(this._server)throw Error(`Client-only method called in server mode`);let t=this._packetRW.write.allocStart,n=this._packetRW.write.alloc(34);n[t]=l.GLOBAL_REQUEST,w(n,28,++t),n.utf8Write(`no-more-sessions@openssh.com`,t+=4,28),n[t+=28]=+(e===void 0||e===!0),this._debug&&this._debug(`Outbound: Sending GLOBAL_REQUEST (no-more-sessions@openssh.com)`),C(this,this._packetRW.write.finalize(n))}session(e,t,n){if(this._server)throw Error(`Client-only method called in server mode`);let r=this._packetRW.write.allocStart,i=this._packetRW.write.alloc(24);i[r]=l.CHANNEL_OPEN,w(i,7,++r),i.utf8Write(`session`,r+=4,7),w(i,e,r+=7),w(i,t,r+=4),w(i,n,r+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, session)`),C(this,this._packetRW.write.finalize(i))}windowChange(e,t,n,r,i){if(this._server)throw Error(`Client-only method called in server mode`);let a=this._packetRW.write.allocStart,o=this._packetRW.write.alloc(39);o[a]=l.CHANNEL_REQUEST,w(o,e,++a),w(o,13,a+=4),o.utf8Write(`window-change`,a+=4,13),o[a+=13]=0,w(o,n,++a),w(o,t,a+=4),w(o,i,a+=4),w(o,r,a+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, window-change)`),C(this,this._packetRW.write.finalize(o))}pty(e,t,n,r,i,a,o,s){if(this._server)throw Error(`Client-only method called in server mode`);(!a||!a.length)&&(a=`vt100`),o&&!Buffer.isBuffer(o)&&!Array.isArray(o)&&typeof o==`object`&&o&&(o=H(o)),(!o||!o.length)&&(o=P);let c=a.length,u=o.length,d=this._packetRW.write.allocStart,f=this._packetRW.write.alloc(21+c+4+4+4+4+4+u);if(f[d]=l.CHANNEL_REQUEST,w(f,e,++d),w(f,7,d+=4),f.utf8Write(`pty-req`,d+=4,7),f[d+=7]=+(s===void 0||s===!0),w(f,c,++d),f.utf8Write(a,d+=4,c),w(f,n,d+=c),w(f,t,d+=4),w(f,i,d+=4),w(f,r,d+=4),w(f,u,d+=4),d+=4,Array.isArray(o))for(let e=0;e<u;++e)f[d++]=o[e];else Buffer.isBuffer(o)&&f.set(o,d);this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, pty-req)`),C(this,this._packetRW.write.finalize(f))}shell(e,t){if(this._server)throw Error(`Client-only method called in server mode`);let n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(15);r[n]=l.CHANNEL_REQUEST,w(r,e,++n),w(r,5,n+=4),r.utf8Write(`shell`,n+=4,5),r[n+=5]=+(t===void 0||t===!0),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, shell)`),C(this,this._packetRW.write.finalize(r))}exec(e,t,n){if(this._server)throw Error(`Client-only method called in server mode`);let r=Buffer.isBuffer(t),i=r?t.length:Buffer.byteLength(t),a=this._packetRW.write.allocStart,o=this._packetRW.write.alloc(18+i);o[a]=l.CHANNEL_REQUEST,w(o,e,++a),w(o,4,a+=4),o.utf8Write(`exec`,a+=4,4),o[a+=4]=+(n===void 0||n===!0),w(o,i,++a),r?o.set(t,a+=4):o.utf8Write(t,a+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exec: ${t})`),C(this,this._packetRW.write.finalize(o))}signal(e,t){if(this._server)throw Error(`Client-only method called in server mode`);let n=t;if(t=t.toUpperCase(),t.slice(0,3)===`SIG`&&(t=t.slice(3)),u[t]!==1)throw Error(`Invalid signal: ${n}`);let r=t.length,i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(20+r);a[i]=l.CHANNEL_REQUEST,w(a,e,++i),w(a,6,i+=4),a.utf8Write(`signal`,i+=4,6),a[i+=6]=0,w(a,r,++i),a.utf8Write(t,i+=4,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, signal: ${t})`),C(this,this._packetRW.write.finalize(a))}env(e,t,n,r){if(this._server)throw Error(`Client-only method called in server mode`);let i=Buffer.byteLength(t),a=Buffer.isBuffer(n),o=a?n.length:Buffer.byteLength(n),s=this._packetRW.write.allocStart,c=this._packetRW.write.alloc(17+i+4+o);c[s]=l.CHANNEL_REQUEST,w(c,e,++s),w(c,3,s+=4),c.utf8Write(`env`,s+=4,3),c[s+=3]=+(r===void 0||r===!0),w(c,i,++s),c.utf8Write(t,s+=4,i),w(c,o,s+=i),a?c.set(n,s+=4):c.utf8Write(n,s+=4,o),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, env: ${t}=${n})`),C(this,this._packetRW.write.finalize(c))}x11Forward(e,t,n){if(this._server)throw Error(`Client-only method called in server mode`);let r=t.protocol,i=t.cookie,a=Buffer.isBuffer(r),o=a?r.length:Buffer.byteLength(r),s=Buffer.isBuffer(i),c=s?i.length:Buffer.byteLength(i),u=this._packetRW.write.allocStart,d=this._packetRW.write.alloc(22+o+4+c+4);d[u]=l.CHANNEL_REQUEST,w(d,e,++u),w(d,7,u+=4),d.utf8Write(`x11-req`,u+=4,7),d[u+=7]=+(n===void 0||n===!0),d[++u]=+!!t.single,w(d,o,++u),a?d.set(r,u+=4):d.utf8Write(r,u+=4,o),w(d,c,u+=o),s?d.set(i,u+=4):d.latin1Write(i,u+=4,c),w(d,t.screen||0,u+=c),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, x11-req)`),C(this,this._packetRW.write.finalize(d))}subsystem(e,t,n){if(this._server)throw Error(`Client-only method called in server mode`);let r=Buffer.byteLength(t),i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(23+r);a[i]=l.CHANNEL_REQUEST,w(a,e,++i),w(a,9,i+=4),a.utf8Write(`subsystem`,i+=4,9),a[i+=9]=+(n===void 0||n===!0),w(a,r,++i),a.utf8Write(t,i+=4,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, subsystem: ${t})`),C(this,this._packetRW.write.finalize(a))}openssh_agentForward(e,t){if(this._server)throw Error(`Client-only method called in server mode`);let n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(36);r[n]=l.CHANNEL_REQUEST,w(r,e,++n),w(r,26,n+=4),r.utf8Write(`auth-agent-req@openssh.com`,n+=4,26),r[n+=26]=+(t===void 0||t===!0),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, auth-agent-req@openssh.com)`),C(this,this._packetRW.write.finalize(r))}openssh_hostKeysProve(e){if(this._server)throw Error(`Client-only method called in server mode`);let t=0,n=[];for(let r of e){let e=r.getPublicSSH();t+=4+e.length,n.push(e)}let r=this._packetRW.write.allocStart,i=this._packetRW.write.alloc(35+t);i[r]=l.GLOBAL_REQUEST,w(i,29,++r),i.utf8Write(`hostkeys-prove-00@openssh.com`,r+=4,29),i[r+=29]=1,++r;for(let e of n)w(i,e.length,r),y(e,i,0,e.length,r+=4),r+=e.length;this._debug&&this._debug(`Outbound: Sending GLOBAL_REQUEST (hostkeys-prove-00@openssh.com)`),C(this,this._packetRW.write.finalize(i))}serviceAccept(e){if(!this._server)throw Error(`Server-only method called in client mode`);let t=Buffer.byteLength(e),n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(5+t);if(r[n]=l.SERVICE_ACCEPT,w(r,t,++n),r.utf8Write(e,n+=4,t),this._debug&&this._debug(`Outbound: Sending SERVICE_ACCEPT (${e})`),C(this,this._packetRW.write.finalize(r)),this._server&&this._banner&&e===`ssh-userauth`){let e=this._banner;this._banner=void 0;let t=Buffer.byteLength(e);n=this._packetRW.write.allocStart;let r=this._packetRW.write.alloc(5+t+4);r[n]=l.USERAUTH_BANNER,w(r,t,++n),r.utf8Write(e,n+=4,t),w(r,0,n+=t),this._debug&&this._debug(`Outbound: Sending USERAUTH_BANNER`),C(this,this._packetRW.write.finalize(r))}}forwardedTcpip(e,t,n,r){if(!this._server)throw Error(`Server-only method called in client mode`);let i=Buffer.byteLength(r.boundAddr),a=Buffer.byteLength(r.remoteAddr),o=this._packetRW.write.allocStart,s=this._packetRW.write.alloc(36+i+4+4+a+4);s[o]=l.CHANNEL_OPEN,w(s,15,++o),s.utf8Write(`forwarded-tcpip`,o+=4,15),w(s,e,o+=15),w(s,t,o+=4),w(s,n,o+=4),w(s,i,o+=4),s.utf8Write(r.boundAddr,o+=4,i),w(s,r.boundPort,o+=i),w(s,a,o+=4),s.utf8Write(r.remoteAddr,o+=4,a),w(s,r.remotePort,o+=a),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, forwarded-tcpip)`),C(this,this._packetRW.write.finalize(s))}x11(e,t,n,r){if(!this._server)throw Error(`Server-only method called in client mode`);let i=Buffer.byteLength(r.originAddr),a=this._packetRW.write.allocStart,o=this._packetRW.write.alloc(24+i+4);o[a]=l.CHANNEL_OPEN,w(o,3,++a),o.utf8Write(`x11`,a+=4,3),w(o,e,a+=3),w(o,t,a+=4),w(o,n,a+=4),w(o,i,a+=4),o.utf8Write(r.originAddr,a+=4,i),w(o,r.originPort,a+=i),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, x11)`),C(this,this._packetRW.write.finalize(o))}openssh_authAgent(e,t,n){if(!this._server)throw Error(`Server-only method called in client mode`);let r=this._packetRW.write.allocStart,i=this._packetRW.write.alloc(39);i[r]=l.CHANNEL_OPEN,w(i,22,++r),i.utf8Write(`auth-agent@openssh.com`,r+=4,22),w(i,e,r+=22),w(i,t,r+=4),w(i,n,r+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, auth-agent@openssh.com)`),C(this,this._packetRW.write.finalize(i))}openssh_forwardedStreamLocal(e,t,n,r){if(!this._server)throw Error(`Server-only method called in client mode`);let i=Buffer.byteLength(r.socketPath),a=this._packetRW.write.allocStart,o=this._packetRW.write.alloc(54+i+4);o[a]=l.CHANNEL_OPEN,w(o,33,++a),o.utf8Write(`forwarded-streamlocal@openssh.com`,a+=4,33),w(o,e,a+=33),w(o,t,a+=4),w(o,n,a+=4),w(o,i,a+=4),o.utf8Write(r.socketPath,a+=4,i),w(o,0,a+=i),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, forwarded-streamlocal@openssh.com)`),C(this,this._packetRW.write.finalize(o))}exitStatus(e,t){if(!this._server)throw Error(`Server-only method called in client mode`);let n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(25);r[n]=l.CHANNEL_REQUEST,w(r,e,++n),w(r,11,n+=4),r.utf8Write(`exit-status`,n+=4,11),r[n+=11]=0,w(r,t,++n),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exit-status: ${t})`),C(this,this._packetRW.write.finalize(r))}exitSignal(e,t,n,r){if(!this._server)throw Error(`Server-only method called in client mode`);let i=t;if(typeof i!=`string`||!i)throw Error(`Invalid signal: ${i}`);let a=t.toUpperCase();if(a.slice(0,3)===`SIG`&&(a=a.slice(3)),u[a]!==1)throw Error(`Invalid signal: ${i}`);let o=Buffer.byteLength(a),s=r?Buffer.byteLength(r):0,c=this._packetRW.write.allocStart,d=this._packetRW.write.alloc(25+o+1+4+s+4);d[c]=l.CHANNEL_REQUEST,w(d,e,++c),w(d,11,c+=4),d.utf8Write(`exit-signal`,c+=4,11),d[c+=11]=0,w(d,o,++c),d.utf8Write(a,c+=4,o),d[c+=o]=+!!n,w(d,s,++c),c+=4,s&&(d.utf8Write(r,c,s),c+=s),w(d,0,c),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exit-signal: ${t})`),C(this,this._packetRW.write.finalize(d))}authFailure(e,t){if(!this._server)throw Error(`Server-only method called in client mode`);if(this._authsQueue.length===0)throw Error(`No auth in progress`);let n;if(typeof e==`boolean`&&(t=e,e=void 0),e){n=[];for(let t=0;t<e.length;++t)e[t].toLowerCase()!==`none`&&n.push(e[t]);n=n.join(`,`)}else n=``;let r=n.length,i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(5+r+1);a[i]=l.USERAUTH_FAILURE,w(a,r,++i),a.utf8Write(n,i+=4,r),a[i+=r]=+(t===!0),this._authsQueue.shift(),this._debug&&this._debug(`Outbound: Sending USERAUTH_FAILURE`),C(this,this._packetRW.write.finalize(a))}authSuccess(){if(!this._server)throw Error(`Server-only method called in client mode`);if(this._authsQueue.length===0)throw Error(`No auth in progress`);let e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(1);t[e]=l.USERAUTH_SUCCESS,this._authsQueue.shift(),this._authenticated=!0,this._debug&&this._debug(`Outbound: Sending USERAUTH_SUCCESS`),C(this,this._packetRW.write.finalize(t)),this._kex.negotiated.cs.compress===`zlib@openssh.com`&&(this._packetRW.read=new D),this._kex.negotiated.sc.compress===`zlib@openssh.com`&&(this._packetRW.write=new O(this))}authPKOK(e,t){if(!this._server)throw Error(`Server-only method called in client mode`);if(this._authsQueue.length===0||this._authsQueue[0]!==`publickey`)throw Error(`"publickey" auth not in progress`);let n=Buffer.byteLength(e),r=t.length,i=this._packetRW.write.allocStart,a=this._packetRW.write.alloc(5+n+4+r);a[i]=l.USERAUTH_PK_OK,w(a,n,++i),a.utf8Write(e,i+=4,n),w(a,r,i+=n),a.set(t,i+=4),this._authsQueue.shift(),this._debug&&this._debug(`Outbound: Sending USERAUTH_PK_OK`),C(this,this._packetRW.write.finalize(a))}authPasswdChg(e){if(!this._server)throw Error(`Server-only method called in client mode`);let t=Buffer.byteLength(e),n=this._packetRW.write.allocStart,r=this._packetRW.write.alloc(5+t+4);r[n]=l.USERAUTH_PASSWD_CHANGEREQ,w(r,t,++n),r.utf8Write(e,n+=4,t),w(r,0,n+=t),this._debug&&this._debug(`Outbound: Sending USERAUTH_PASSWD_CHANGEREQ`),C(this,this._packetRW.write.finalize(r))}authInfoReq(e,t,n){if(!this._server)throw Error(`Server-only method called in client mode`);let r=0,i=e?Buffer.byteLength(e):0,a=t?Buffer.byteLength(t):0;for(let e=0;e<n.length;++e)r+=4+Buffer.byteLength(n[e].prompt)+1;let o=this._packetRW.write.allocStart,s=this._packetRW.write.alloc(5+i+4+a+4+4+r);s[o]=l.USERAUTH_INFO_REQUEST,w(s,i,++o),o+=4,e&&(s.utf8Write(e,o,i),o+=i),w(s,a,o),o+=4,t&&(s.utf8Write(t,o,a),o+=a),w(s,0,o),w(s,n.length,o+=4),o+=4;for(let e=0;e<n.length;++e){let t=n[e],r=Buffer.byteLength(t.prompt);w(s,r,o),o+=4,r&&(s.utf8Write(t.prompt,o,r),o+=r),s[o++]=+!!t.echo}this._debug&&this._debug(`Outbound: Sending USERAUTH_INFO_REQUEST`),C(this,this._packetRW.write.finalize(s))}};let L=/^SSH-(2\.0|1\.99)-([^ ]+)(?: (.*))?$/;function R(e,t,r){let i,o;this._buffer?(i=Buffer.allocUnsafe(this._buffer.length+(r-t)),i.set(this._buffer,0),t===0?i.set(e,this._buffer.length):i.set(new Uint8Array(e.buffer,e.byteOffset+t,r-t),this._buffer.length),o=this._buffer.length,t=0):(i=e,o=0);let s=t,c=t,l=t,u=!1,d=0,f=0;for(;t<i.length;++t){let e=i[t];if(e===13){u=!0;continue}if(e===10){if(l>c&&l-c>4&&i[c]===83&&i[c+1]===83&&i[c+2]===72&&i[c+3]===45){let e=i.latin1Slice(s,l+1),u=c===s?e:e.slice(c-s),d=L.exec(u);if(!d)throw Error(`Invalid identification string`);let f={greeting:c===s?``:e.slice(0,c-s),identRaw:u,versions:{protocol:d[1],software:d[2]},comments:d[3]};return this._remoteIdentRaw=Buffer.from(u),this._debug&&this._debug(`Remote ident: ${n(u)}`),this._compatFlags=V(f),this._buffer=void 0,this._decipher=new a(0,g.bind(this,{firstPacket:!0})),this._parse=z,this._onHeader(f),this._destruct?(h(this),t+1-o):r}if(this._server)throw Error(`Greetings from clients not permitted`);if(++f>1024)throw Error(`Max greeting lines exceeded`);u=!1,c=t+1,d=0}else if(u)throw Error(`Invalid header: expected newline`);else if(++d>=8192)throw Error(`Header line too long`);l=t}return this._buffer||=x(i,s),t-o}function z(e,t,n){return this._decipher.decrypt(e,t,n)}function B(e){if(this._onPacket(),e.length===0){this._debug&&this._debug(`Inbound: Skipping empty packet payload`);return}e=this._packetRW.read.read(e);let t=e[0];t===l.USERAUTH_SUCCESS&&!this._server&&!this._authenticated&&(this._authenticated=!0,this._kex.negotiated.cs.compress===`zlib@openssh.com`&&(this._packetRW.write=new O(this)),this._kex.negotiated.sc.compress===`zlib@openssh.com`&&(this._packetRW.read=new D));let n=v[t];if(n===void 0){this._debug&&this._debug(`Inbound: Unsupported message type: ${t}`);return}return n(this,e)}function V(e){let t=e.versions.software,n=0;for(let e of o)typeof e[0]==`string`?t===e[0]&&(n|=e[1]):e[0].test(t)&&(n|=e[1]);return n}function H(e){let t=Object.keys(e),n=Buffer.allocUnsafe(5*t.length+1),r=0;for(let i=0;i<t.length;++i){let a=t[i];if(a===`TTY_OP_END`)continue;let o=d[a];if(o===void 0)continue;let s=e[a];typeof s==`number`&&isFinite(s)&&(n[r++]=o,n[r++]=s>>>24,n[r++]=s>>>16,n[r++]=s>>>8,n[r++]=s)}return n[r++]=d.TTY_OP_END,r<n.length?x(n,0,r):n}function U(e){let t=`ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss`;c&&(t=`ssh-ed25519,${t}`);let n=Buffer.byteLength(t),r=e._packetRW.write.allocStart,i=e._packetRW.write.alloc(28+n);i[r]=l.EXT_INFO,w(i,1,++r),w(i,15,r+=4),i.utf8Write(`server-sig-algs`,r+=4,15),w(i,n,r+=15),i.utf8Write(t,r+=4,n),e._debug&&e._debug(`Outbound: Sending EXT_INFO`),C(e,e._packetRW.write.finalize(i))}t.exports=I})),ph=s((e=>{let t=require("assert"),{inspect:n}=require("util");function r(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function i(e,n){if(t(typeof n==`string`,"`thing` has to be of type string"),Array.isArray(e)){let r=e.length;return t(r>0,`At least one expected value needs to be specified`),e=e.map(e=>String(e)),r>2?`one of ${n} ${e.slice(0,r-1).join(`, `)}, or `+e[r-1]:r===2?`one of ${n} ${e[0]} or ${e[1]}`:`of ${n} ${e[0]}`}return`of ${n} ${String(e)}`}e.ERR_INTERNAL_ASSERTION=class e extends Error{constructor(t){super(),Error.captureStackTrace(this,e);let n=`This is caused by either a bug in ssh2 or incorrect usage of ssh2 internals.
225
+ Please open an issue with this stack trace at https://github.com/mscdex/ssh2/issues
226
+ `;this.message=t===void 0?n:`${t}\n${n}`}};let a=2**32,o=(()=>{try{return Function(`return 2n ** 32n`)()}catch{}})();e.ERR_OUT_OF_RANGE=class e extends RangeError{constructor(i,s,c,l){super(),Error.captureStackTrace(this,e),t(s,`Missing "range" argument`);let u=l?i:`The value of "${i}" is out of range.`,d;Number.isInteger(c)&&Math.abs(c)>a?d=r(String(c)):typeof c==`bigint`?(d=String(c),(c>o||c<-o)&&(d=r(d)),d+=`n`):d=n(c),u+=` It must be ${s}. Received ${d}`,this.message=u}};var s=class e extends TypeError{constructor(n,r,a){super(),Error.captureStackTrace(this,e),t(typeof n==`string`,`'name' must be a string`);let o;typeof r==`string`&&r.startsWith(`not `)?(o=`must not be`,r=r.replace(/^not /,``)):o=`must be`;let s;s=n.endsWith(` argument`)?`The ${n} ${o} ${i(r,`type`)}`:`The "${n}" ${n.includes(`.`)?`property`:`argument`} ${o} ${i(r,`type`)}`,s+=`. Received type ${typeof a}`,this.message=s}};e.ERR_INVALID_ARG_TYPE=s,e.validateNumber=function(e,t){if(typeof e!=`number`)throw new s(t,`number`,e)}})),mh=s(((e,t)=>{let n=require("events"),r=require("fs"),{constants:i}=r,{Readable:a,Writable:o}=require("stream"),{inherits:s,types:{isDate:c}}=require("util"),l=Buffer[Symbol.species],{bufferCopy:u,bufferSlice:d,makeBufferParser:f,writeUInt32BE:p}=nh(),m={SIZE:1,UIDGID:2,PERMISSIONS:4,ACMODTIME:8,EXTENDED:2147483648},h=Buffer.alloc(28),g={OK:0,EOF:1,NO_SUCH_FILE:2,PERMISSION_DENIED:3,FAILURE:4,BAD_MESSAGE:5,NO_CONNECTION:6,CONNECTION_LOST:7,OP_UNSUPPORTED:8},_=new Map(Object.values(g).map(e=>[e,1])),v={[g.OK]:`No error`,[g.EOF]:`End of file`,[g.NO_SUCH_FILE]:`No such file or directory`,[g.PERMISSION_DENIED]:`Permission denied`,[g.FAILURE]:`Failure`,[g.BAD_MESSAGE]:`Bad message`,[g.NO_CONNECTION]:`No connection`,[g.CONNECTION_LOST]:`Connection lost`,[g.OP_UNSUPPORTED]:`Operation unsupported`},y={INIT:1,OPEN:3,CLOSE:4,READ:5,WRITE:6,LSTAT:7,FSTAT:8,SETSTAT:9,FSETSTAT:10,OPENDIR:11,READDIR:12,REMOVE:13,MKDIR:14,RMDIR:15,REALPATH:16,STAT:17,RENAME:18,READLINK:19,SYMLINK:20,EXTENDED:200},b={VERSION:2,STATUS:101,HANDLE:102,DATA:103,NAME:104,ATTRS:105,EXTENDED:201},x={READ:1,WRITE:2,APPEND:4,CREAT:8,TRUNC:16,EXCL:32},S=2*1024,C=2**32-1,w=Buffer.from([0,0,0,5,y.INIT,0,0,0,3]),T=Buffer.from([0,0,0,5,b.VERSION,0,0,0,3]),E=/^SSH-2.0-(?:OpenSSH|dropbear)/,D=256*1024,O=f(),k={readable:!1,writable:!1,push:e=>{},once:()=>{},on:()=>{},emit:()=>{},end:()=>{}};function A(){}var j=class extends n{constructor(e,t,n){super(),(typeof n!=`object`||!n)&&(n={});let r=e._protocol._remoteIdentRaw;this.server=!!n.server,this._debug=typeof n.debug==`function`?n.debug:void 0,this._isOpenSSH=r&&E.test(r),this._version=-1,this._extensions={},this._biOpt=n.biOpt,this._pktLenBytes=0,this._pktLen=0,this._pktPos=0,this._pktType=0,this._pktData=void 0,this._writeReqid=-1,this._requests={},this._maxInPktLen=D,this._maxOutPktLen=34e3,this._maxReadLen=(this._isOpenSSH?D:34e3)-S,this._maxWriteLen=(this._isOpenSSH?D:34e3)-S,this.maxOpenHandles=void 0,this._client=e,this._protocol=e._protocol,this._callbacks=[],this._hasX11=!1,this._exit={code:void 0,signal:void 0,dump:void 0,desc:void 0},this._waitWindow=!1,this._chunkcb=void 0,this._buffer=[],this.type=t.type,this.subtype=void 0,this.incoming=t.incoming,this.outgoing=t.outgoing,this.stderr=k,this.readable=!0}push(e){if(e===null){if(q(this),!this.readable)return;this.readable=!1,this.emit(`end`);return}let t=0;for(;t<e.length;){if(this._pktLenBytes<4){let n=Math.min(4-this._pktLenBytes,e.length-t);for(this._pktLenBytes+=n;n--;)this._pktLen=(this._pktLen<<8)+e[t++];if(this._pktLenBytes<4)return;if(this._pktLen===0)return K(this,`Invalid packet length`);if(this._pktLen>this._maxInPktLen){let e=this._maxInPktLen;return K(this,`Packet length ${this._pktLen} exceeds max length of ${e}`)}if(t>=e.length)return}if(this._pktPos<this._pktLen){let n=Math.min(this._pktLen-this._pktPos,e.length-t);if(t!==0||n!==e.length?n===this._pktLen?this._pkt=new l(e.buffer,e.byteOffset+t,n):(this._pkt||=Buffer.allocUnsafe(this._pktLen),this._pkt.set(new Uint8Array(e.buffer,e.byteOffset+t,n),this._pktPos)):n===this._pktLen?this._pkt=e:(this._pkt||=Buffer.allocUnsafe(this._pktLen),this._pkt.set(e,this._pktPos)),t+=n,this._pktPos+=n,this._pktPos<this._pktLen)return}let n=this._pkt[0],r=this._pkt;this._pktLen=0,this._pktLenBytes=0,this._pkt=void 0,this._pktPos=0;let i=this.server?re[n]:ne[n];if(!i)return K(this,`Unknown packet type ${n}`);if(this._version===-1){if(this.server){if(n!==y.INIT)return K(this,`Expected INIT packet, got ${n}`)}else if(n!==b.VERSION)return K(this,`Expected VERSION packet, got ${n}`)}if(i(this,r)===!1)return}}end(){this.destroy()}destroy(){(this.outgoing.state===`open`||this.outgoing.state===`eof`)&&(this.outgoing.state=`closing`,this._protocol.channelClose(this.outgoing.id))}_init(){this._init=A,this.server||W(this,w)}createReadStream(e,t){if(this.server)throw Error(`Client-only method called in server mode`);return new ue(this,e,t)}createWriteStream(e,t){if(this.server)throw Error(`Client-only method called in server mode`);return new fe(this,e,t)}open(e,t,n,r){if(this.server)throw Error(`Client-only method called in server mode`);typeof n==`function`&&(r=n,n=void 0);let i=typeof t==`number`?t:V(t);if(i===null)throw Error(`Unknown flags string: ${t}`);let a=0,o=0;(typeof n==`string`||typeof n==`number`)&&(n={mode:n}),typeof n==`object`&&n&&(n=L(n),a=n.flags,o=n.nb);let s=Buffer.byteLength(e),c=9,l=Buffer.allocUnsafe(13+s+4+4+o);p(l,l.length-4,0),l[4]=y.OPEN;let d=this._writeReqid=this._writeReqid+1&C;p(l,d,5),p(l,s,c),l.utf8Write(e,c+=4,s),p(l,i,c+=s),p(l,a,c+=4),o&&(c+=4,o===h.length?l.set(h,c):u(h,l,0,o,c),c+=o),this._requests[d]={cb:r};let f=W(this,l);this._debug&&this._debug(`SFTP: Outbound: ${f?`Buffered`:`Sending`} OPEN`)}close(e,t){if(this.server)throw Error(`Client-only method called in server mode`);if(!Buffer.isBuffer(e))throw Error(`handle is not a Buffer`);let n=e.length,r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.CLOSE;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.set(e,r+=4),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} CLOSE`)}read(e,t,n,r,i,a){if(this.server)throw Error(`Client-only method called in server mode`);if(!Buffer.isBuffer(e))throw Error(`handle is not a Buffer`);if(!Buffer.isBuffer(t))throw Error(`buffer is not a Buffer`);if(n>=t.length)throw Error(`offset is out of bounds`);if(n+r>t.length)throw Error(`length extends beyond buffer`);if(i===null)throw Error(`null position currently unsupported`);N(this,e,t,n,r,i,a)}readData(e,t,n,r,i,a){this.read(e,t,n,r,i,a)}write(e,t,n,r,i,a){if(this.server)throw Error(`Client-only method called in server mode`);if(!Buffer.isBuffer(e))throw Error(`handle is not a Buffer`);if(!Buffer.isBuffer(t))throw Error(`buffer is not a Buffer`);if(n>t.length)throw Error(`offset is out of bounds`);if(n+r>t.length)throw Error(`length extends beyond buffer`);if(i===null)throw Error(`null position currently unsupported`);if(!r){a&&process.nextTick(a,void 0,0);return}let o=this._maxWriteLen,s=Math.max(r-o,0),c=i;s&&(r=o);let l=e.length,d=9,f=Buffer.allocUnsafe(13+l+8+4+r);p(f,f.length-4,0),f[4]=y.WRITE;let m=this._writeReqid=this._writeReqid+1&C;p(f,m,5),p(f,l,d),f.set(e,d+=4),d+=l;for(let e=7;e>=0;--e)f[d+e]=i&255,i/=256;p(f,r,d+=8),u(t,f,n,n+r,d+=4),this._requests[m]={cb:i=>{i?typeof a==`function`&&a(i):s?this.write(e,t,n+r,s,c+r,a):typeof a==`function`&&a(void 0,n+r)}};let h=W(this,f);if(this._debug){let e=h?`Sent`:`Buffered`;this._debug(`SFTP: Outbound: ${e} WRITE (id:${m})`)}}writeData(e,t,n,r,i,a){this.write(e,t,n,r,i,a)}fastGet(e,t,n,i){if(this.server)throw Error(`Client-only method called in server mode`);P(this,r,e,t,n,i)}fastPut(e,t,n,i){if(this.server)throw Error(`Client-only method called in server mode`);P(r,this,e,t,n,i)}readFile(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);let r;if(typeof n==`function`?r=n:typeof t==`function`&&(r=t,t=void 0),typeof t==`string`)t={encoding:t,flag:`r`};else if(!t)t={encoding:null,flag:`r`};else if(typeof t!=`object`)throw TypeError(`Bad arguments`);let i=t.encoding;if(i&&!Buffer.isEncoding(i))throw Error(`Unknown encoding: ${i}`);let a,o,s,c=0,l,u=0,f=t.flag||`r`,p=()=>{a===0?(o=Buffer.allocUnsafe(8192),this.read(l,o,0,8192,u,m)):this.read(l,o,c,a-c,u,m)},m=(e,t)=>{let n;if(e){if(n=e.code===g.EOF,!n)return this.close(l,()=>r&&r(e))}else n=!1;if(n||a===0&&t===0)return h();u+=t,c+=t,a===0?(s.push(d(o,0,t)),p()):c===a?h():p()};m._wantEOFError=!0;let h=()=>{this.close(l,e=>(a===0?o=Buffer.concat(s,c):c<a&&(o=d(o,0,c)),i&&(o=o.toString(i)),r&&r(e,o)))};this.open(e,f,438,(t,n)=>{if(t)return r&&r(t);l=n;let i=(t,n)=>{if(t){this.stat(e,(e,n)=>{if(e)return this.close(l,()=>{r&&r(t)});i(null,n)});return}if(a=n.size||0,a===0)return s=[],p();o=Buffer.allocUnsafe(a),p()};this.fstat(l,i)})}writeFile(e,t,n,r){if(this.server)throw Error(`Client-only method called in server mode`);let i;if(typeof r==`function`?i=r:typeof n==`function`&&(i=n,n=void 0),typeof n==`string`)n={encoding:n,mode:438,flag:`w`};else if(!n)n={encoding:`utf8`,mode:438,flag:`w`};else if(typeof n!=`object`)throw TypeError(`Bad arguments`);if(n.encoding&&!Buffer.isEncoding(n.encoding))throw Error(`Unknown encoding: ${n.encoding}`);let a=n.flag||`w`;this.open(e,a,n.mode,(r,o)=>{if(r)i&&i(r);else{let r=Buffer.isBuffer(t)?t:Buffer.from(``+t,n.encoding||`utf8`),s=/a/.test(a)?null:0;if(s===null){let t=(n,a)=>{if(n){this.stat(e,(e,r)=>{if(e)return this.close(o,()=>{i&&i(n)});t(null,r)});return}F(this,o,r,0,r.length,a.size,i)};this.fstat(o,t);return}F(this,o,r,0,r.length,s,i)}})}appendFile(e,t,n,r){if(this.server)throw Error(`Client-only method called in server mode`);let i;if(typeof r==`function`?i=r:typeof n==`function`&&(i=n,n=void 0),typeof n==`string`)n={encoding:n,mode:438,flag:`a`};else if(!n)n={encoding:`utf8`,mode:438,flag:`a`};else if(typeof n!=`object`)throw TypeError(`Bad arguments`);n.flag||(n=Object.assign({flag:`a`},n)),this.writeFile(e,t,n,i)}exists(e,t){if(this.server)throw Error(`Client-only method called in server mode`);this.stat(e,e=>{t&&t(!e)})}unlink(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.REMOVE;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.utf8Write(e,r+=4,n),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} REMOVE`)}rename(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);let r=Buffer.byteLength(e),i=Buffer.byteLength(t),a=9,o=Buffer.allocUnsafe(13+r+4+i);p(o,o.length-4,0),o[4]=y.RENAME;let s=this._writeReqid=this._writeReqid+1&C;p(o,s,5),p(o,r,a),o.utf8Write(e,a+=4,r),p(o,i,a+=r),o.utf8Write(t,a+=4,i),this._requests[s]={cb:n};let c=W(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?`Buffered`:`Sending`} RENAME`)}mkdir(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);let r=0,i=0;typeof t==`function`&&(n=t,t=void 0),typeof t==`object`&&t&&(t=L(t),r=t.flags,i=t.nb);let a=Buffer.byteLength(e),o=9,s=Buffer.allocUnsafe(13+a+4+i);p(s,s.length-4,0),s[4]=y.MKDIR;let c=this._writeReqid=this._writeReqid+1&C;p(s,c,5),p(s,a,o),s.utf8Write(e,o+=4,a),p(s,r,o+=a),i&&(o+=4,i===h.length?s.set(h,o):u(h,s,0,i,o),o+=i),this._requests[c]={cb:n};let l=W(this,s);this._debug&&this._debug(`SFTP: Outbound: ${l?`Buffered`:`Sending`} MKDIR`)}rmdir(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.RMDIR;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.utf8Write(e,r+=4,n),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} RMDIR`)}readdir(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);typeof t==`function`&&(n=t,t={}),(typeof t!=`object`||!t)&&(t={});let r=!(t&&t.full);if(!Buffer.isBuffer(e)&&typeof e!=`string`)throw Error(`missing directory handle or path`);if(typeof e==`string`){let r=[],i=0,a=(e,o)=>{if(e)return n(e);this.readdir(o,t,(e,t)=>{let s=e&&e.code===g.EOF;if(e&&!s)return this.close(o,()=>n(e));if(s)return this.close(o,e=>{if(e)return n(e);n(void 0,r)});for(let e=0;e<t.length;++e,++i)r[i]=t[e];a(void 0,o)})};return this.opendir(e,a)}let i=e.length,a=9,o=Buffer.allocUnsafe(13+i);p(o,o.length-4,0),o[4]=y.READDIR;let s=this._writeReqid=this._writeReqid+1&C;p(o,s,5),p(o,i,a),o.set(e,a+=4),this._requests[s]={cb:r?(e,t)=>{if(typeof n==`function`){if(e)return n(e);for(let e=t.length-1;e>=0;--e)(t[e].filename===`.`||t[e].filename===`..`)&&t.splice(e,1);n(void 0,t)}}:n};let c=W(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?`Buffered`:`Sending`} READDIR`)}fstat(e,t){if(this.server)throw Error(`Client-only method called in server mode`);if(!Buffer.isBuffer(e))throw Error(`handle is not a Buffer`);let n=e.length,r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.FSTAT;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.set(e,r+=4),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} FSTAT`)}stat(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.STAT;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.utf8Write(e,r+=4,n),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} STAT`)}lstat(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.LSTAT;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.utf8Write(e,r+=4,n),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} LSTAT`)}opendir(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.OPENDIR;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.utf8Write(e,r+=4,n),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} OPENDIR`)}setstat(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);let r=0,i=0;typeof t==`object`&&t?(t=L(t),r=t.flags,i=t.nb):typeof t==`function`&&(n=t);let a=Buffer.byteLength(e),o=9,s=Buffer.allocUnsafe(13+a+4+i);p(s,s.length-4,0),s[4]=y.SETSTAT;let c=this._writeReqid=this._writeReqid+1&C;p(s,c,5),p(s,a,o),s.utf8Write(e,o+=4,a),p(s,r,o+=a),i&&(o+=4,i===h.length?s.set(h,o):u(h,s,0,i,o),o+=i),this._requests[c]={cb:n};let l=W(this,s);this._debug&&this._debug(`SFTP: Outbound: ${l?`Buffered`:`Sending`} SETSTAT`)}fsetstat(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);if(!Buffer.isBuffer(e))throw Error(`handle is not a Buffer`);let r=0,i=0;typeof t==`object`&&t?(t=L(t),r=t.flags,i=t.nb):typeof t==`function`&&(n=t);let a=e.length,o=9,s=Buffer.allocUnsafe(13+a+4+i);p(s,s.length-4,0),s[4]=y.FSETSTAT;let c=this._writeReqid=this._writeReqid+1&C;p(s,c,5),p(s,a,o),s.set(e,o+=4),p(s,r,o+=a),i&&(o+=4,i===h.length?s.set(h,o):u(h,s,0,i,o),o+=i),this._requests[c]={cb:n};let l=W(this,s);this._debug&&this._debug(`SFTP: Outbound: ${l?`Buffered`:`Sending`} FSETSTAT`)}futimes(e,t,n,r){return this.fsetstat(e,{atime:R(t),mtime:R(n)},r)}utimes(e,t,n,r){return this.setstat(e,{atime:R(t),mtime:R(n)},r)}fchown(e,t,n,r){return this.fsetstat(e,{uid:t,gid:n},r)}chown(e,t,n,r){return this.setstat(e,{uid:t,gid:n},r)}fchmod(e,t,n){return this.fsetstat(e,{mode:t},n)}chmod(e,t,n){return this.setstat(e,{mode:t},n)}readlink(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.READLINK;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.utf8Write(e,r+=4,n),this._requests[a]={cb:(e,n)=>{if(typeof t==`function`){if(e)return t(e);if(!n||!n.length)return t(Error(`Response missing link info`));t(void 0,n[0].filename)}}};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} READLINK`)}symlink(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);let r=Buffer.byteLength(t),i=Buffer.byteLength(e),a=9,o=Buffer.allocUnsafe(13+r+4+i);p(o,o.length-4,0),o[4]=y.SYMLINK;let s=this._writeReqid=this._writeReqid+1&C;p(o,s,5),this._isOpenSSH?(p(o,i,a),o.utf8Write(e,a+=4,i),p(o,r,a+=i),o.utf8Write(t,a+=4,r)):(p(o,r,a),o.utf8Write(t,a+=4,r),p(o,i,a+=r),o.utf8Write(e,a+=4,i)),this._requests[s]={cb:n};let c=W(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?`Buffered`:`Sending`} SYMLINK`)}realpath(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=y.REALPATH;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,n,r),i.utf8Write(e,r+=4,n),this._requests[a]={cb:(e,n)=>{if(typeof t==`function`){if(e)return t(e);if(!n||!n.length)return t(Error(`Response missing path info`));t(void 0,n[0].filename)}}};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} REALPATH`)}ext_openssh_rename(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);let r=this._extensions[`posix-rename@openssh.com`];if(!r||r!==`1`)throw Error(`Server does not support this extended request`);let i=Buffer.byteLength(e),a=Buffer.byteLength(t),o=9,s=Buffer.allocUnsafe(41+i+4+a);p(s,s.length-4,0),s[4]=y.EXTENDED;let c=this._writeReqid=this._writeReqid+1&C;p(s,c,5),p(s,24,o),s.utf8Write(`posix-rename@openssh.com`,o+=4,24),p(s,i,o+=24),s.utf8Write(e,o+=4,i),p(s,a,o+=i),s.utf8Write(t,o+=4,a),this._requests[c]={cb:n};let l=W(this,s);if(this._debug){let e=l?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} posix-rename@openssh.com`)}}ext_openssh_statvfs(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=this._extensions[`statvfs@openssh.com`];if(!n||n!==`2`)throw Error(`Server does not support this extended request`);let r=Buffer.byteLength(e),i=9,a=Buffer.allocUnsafe(36+r);p(a,a.length-4,0),a[4]=y.EXTENDED;let o=this._writeReqid=this._writeReqid+1&C;p(a,o,5),p(a,19,i),a.utf8Write(`statvfs@openssh.com`,i+=4,19),p(a,r,i+=19),a.utf8Write(e,i+=4,r),this._requests[o]={extended:`statvfs@openssh.com`,cb:t};let s=W(this,a);if(this._debug){let e=s?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} statvfs@openssh.com`)}}ext_openssh_fstatvfs(e,t){if(this.server)throw Error(`Client-only method called in server mode`);let n=this._extensions[`fstatvfs@openssh.com`];if(!n||n!==`2`)throw Error(`Server does not support this extended request`);if(!Buffer.isBuffer(e))throw Error(`handle is not a Buffer`);let r=e.length,i=9,a=Buffer.allocUnsafe(37+r);p(a,a.length-4,0),a[4]=y.EXTENDED;let o=this._writeReqid=this._writeReqid+1&C;p(a,o,5),p(a,20,i),a.utf8Write(`fstatvfs@openssh.com`,i+=4,20),p(a,r,i+=20),a.set(e,i+=4),this._requests[o]={extended:`fstatvfs@openssh.com`,cb:t};let s=W(this,a);if(this._debug){let e=s?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} fstatvfs@openssh.com`)}}ext_openssh_hardlink(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);if(this._extensions[`hardlink@openssh.com`]!==`1`)throw Error(`Server does not support this extended request`);let r=Buffer.byteLength(e),i=Buffer.byteLength(t),a=9,o=Buffer.allocUnsafe(37+r+4+i);p(o,o.length-4,0),o[4]=y.EXTENDED;let s=this._writeReqid=this._writeReqid+1&C;p(o,s,5),p(o,20,a),o.utf8Write(`hardlink@openssh.com`,a+=4,20),p(o,r,a+=20),o.utf8Write(e,a+=4,r),p(o,i,a+=r),o.utf8Write(t,a+=4,i),this._requests[s]={cb:n};let c=W(this,o);if(this._debug){let e=c?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} hardlink@openssh.com`)}}ext_openssh_fsync(e,t){if(this.server)throw Error(`Client-only method called in server mode`);if(this._extensions[`fsync@openssh.com`]!==`1`)throw Error(`Server does not support this extended request`);if(!Buffer.isBuffer(e))throw Error(`handle is not a Buffer`);let n=e.length,r=9,i=Buffer.allocUnsafe(34+n);p(i,i.length-4,0),i[4]=y.EXTENDED;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,17,r),i.utf8Write(`fsync@openssh.com`,r+=4,17),p(i,n,r+=17),i.set(e,r+=4),this._requests[a]={cb:t};let o=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} fsync@openssh.com`)}ext_openssh_lsetstat(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);if(this._extensions[`lsetstat@openssh.com`]!==`1`)throw Error(`Server does not support this extended request`);let r=0,i=0;typeof t==`object`&&t?(t=L(t),r=t.flags,i=t.nb):typeof t==`function`&&(n=t);let a=Buffer.byteLength(e),o=9,s=Buffer.allocUnsafe(37+a+4+i);p(s,s.length-4,0),s[4]=y.EXTENDED;let c=this._writeReqid=this._writeReqid+1&C;p(s,c,5),p(s,20,o),s.utf8Write(`lsetstat@openssh.com`,o+=4,20),p(s,a,o+=20),s.utf8Write(e,o+=4,a),p(s,r,o+=a),i&&(o+=4,i===h.length?s.set(h,o):u(h,s,0,i,o),o+=i),this._requests[c]={cb:n};let l=W(this,s);if(this._debug){let e=l?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} lsetstat@openssh.com`)}}ext_openssh_expandPath(e,t){if(this.server)throw Error(`Client-only method called in server mode`);if(this._extensions[`expand-path@openssh.com`]!==`1`)throw Error(`Server does not support this extended request`);let n=Buffer.byteLength(e),r=9,i=Buffer.allocUnsafe(40+n);p(i,i.length-4,0),i[4]=y.EXTENDED;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,5),p(i,23,r),i.utf8Write(`expand-path@openssh.com`,r+=4,23),p(i,n,r+=20),i.utf8Write(e,r+=4,n),this._requests[a]={cb:(e,n)=>{if(typeof t==`function`){if(e)return t(e);if(!n||!n.length)return t(Error(`Response missing expanded path`));t(void 0,n[0].filename)}}};let o=W(this,i);if(this._debug){let e=o?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} expand-path@openssh.com`)}}ext_copy_data(e,t,n,r,i,a){if(this.server)throw Error(`Client-only method called in server mode`);if(this._extensions[`copy-data`]!==`1`)throw Error(`Server does not support this extended request`);if(!Buffer.isBuffer(e))throw Error(`Source handle is not a Buffer`);if(!Buffer.isBuffer(r))throw Error(`Destination handle is not a Buffer`);let o=0,s=Buffer.allocUnsafe(26+e.length+8+8+4+r.length+8);p(s,s.length-4,o),o+=4,s[o]=y.EXTENDED,++o;let c=this._writeReqid=this._writeReqid+1&C;p(s,c,o),o+=4,p(s,9,o),o+=4,s.utf8Write(`copy-data`,o,9),o+=9,p(s,e.length,o),o+=4,s.set(e,o),o+=e.length;for(let e=7;e>=0;--e)s[o+e]=t&255,t/=256;o+=8;for(let e=7;e>=0;--e)s[o+e]=n&255,n/=256;o+=8,p(s,r.length,o),o+=4,s.set(r,o),o+=r.length;for(let e=7;e>=0;--e)s[o+e]=i&255,i/=256;this._requests[c]={cb:a};let l=W(this,s);if(this._debug){let e=l?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} copy-data`)}}ext_home_dir(e,t){if(this.server)throw Error(`Client-only method called in server mode`);if(this._extensions[`home-directory`]!==`1`)throw Error(`Server does not support this extended request`);if(typeof e!=`string`)throw TypeError(`username is not a string`);let n=0,r=Buffer.byteLength(e),i=Buffer.allocUnsafe(31+r);p(i,i.length-4,n),n+=4,i[n]=y.EXTENDED,++n;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,n),n+=4,p(i,14,n),n+=4,i.utf8Write(`home-directory`,n,14),n+=14,p(i,r,n),n+=4,i.utf8Write(e,n,r),n+=r,this._requests[a]={cb:(e,n)=>{if(typeof t==`function`){if(e)return t(e);if(!n||!n.length)return t(Error(`Response missing home directory`));t(void 0,n[0].filename)}}};let o=W(this,i);if(this._debug){let e=o?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} home-directory`)}}ext_users_groups(e,t,n){if(this.server)throw Error(`Client-only method called in server mode`);if(this._extensions[`users-groups-by-id@openssh.com`]!==`1`)throw Error(`Server does not support this extended request`);if(!Array.isArray(e))throw TypeError(`uids is not an array`);for(let t of e)if(!Number.isInteger(t)||t<0||t>2**32-1)throw Error(`uid values must all be 32-bit unsigned integers`);if(!Array.isArray(t))throw TypeError(`gids is not an array`);for(let e of t)if(!Number.isInteger(e)||e<0||e>2**32-1)throw Error(`gid values must all be 32-bit unsigned integers`);let r=0,i=Buffer.allocUnsafe(47+4*e.length+4+4*t.length);p(i,i.length-4,r),r+=4,i[r]=y.EXTENDED,++r;let a=this._writeReqid=this._writeReqid+1&C;p(i,a,r),r+=4,p(i,30,r),r+=4,i.utf8Write(`users-groups-by-id@openssh.com`,r,30),r+=30,p(i,4*e.length,r),r+=4;for(let t of e)p(i,t,r),r+=4;p(i,4*t.length,r),r+=4;for(let e of t)p(i,e,r),r+=4;this._requests[a]={extended:`users-groups-by-id@openssh.com`,cb:n};let o=W(this,i);if(this._debug){let e=o?`Buffered`:`Sending`;this._debug(`SFTP: Outbound: ${e} users-groups-by-id@openssh.com`)}}handle(e,t){if(!this.server)throw Error(`Server-only method called in client mode`);if(!Buffer.isBuffer(t))throw Error(`handle is not a Buffer`);let n=t.length;if(n>256)throw Error(`handle too large (> 256 bytes)`);let r=9,i=Buffer.allocUnsafe(13+n);p(i,i.length-4,0),i[4]=b.HANDLE,p(i,e,5),p(i,n,r),n&&i.set(t,r+=4);let a=W(this,i);this._debug&&this._debug(`SFTP: Outbound: ${a?`Buffered`:`Sending`} HANDLE`)}status(e,t,n){if(!this.server)throw Error(`Server-only method called in client mode`);if(!_.has(t))throw Error(`Bad status code: ${t}`);n||=``;let r=Buffer.byteLength(n),i=9,a=Buffer.allocUnsafe(17+r+4);p(a,a.length-4,0),a[4]=b.STATUS,p(a,e,5),p(a,t,i),p(a,r,i+=4),i+=4,r&&(a.utf8Write(n,i,r),i+=r),p(a,0,i);let o=W(this,a);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} STATUS`)}data(e,t,n){if(!this.server)throw Error(`Server-only method called in client mode`);let r=Buffer.isBuffer(t);if(!r&&typeof t!=`string`)throw Error(`data is not a Buffer or string`);let i;!r&&!n&&(n=void 0,i=!0);let a=r?t.length:Buffer.byteLength(t,n),o=9,s=Buffer.allocUnsafe(13+a);p(s,s.length-4,0),s[4]=b.DATA,p(s,e,5),p(s,a,o),a&&(r?s.set(t,o+=4):i?s.utf8Write(t,o+=4,a):s.write(t,o+=4,a,n));let c=W(this,s);this._debug&&this._debug(`SFTP: Outbound: ${c?`Buffered`:`Sending`} DATA`)}name(e,t){if(!this.server)throw Error(`Server-only method called in client mode`);if(!Array.isArray(t)){if(typeof t!=`object`||!t)throw Error(`names is not an object or array`);t=[t]}let n=t.length,r=0,i,a=[];for(let e=0;e<n;++e){let n=t[e],o=!n||!n.filename||typeof n.filename!=`string`?``:n.filename;r+=4+Buffer.byteLength(o);let s=!n||!n.longname||typeof n.longname!=`string`?``:n.longname;if(r+=4+Buffer.byteLength(s),typeof n.attrs==`object`&&n.attrs!==null){if(i=L(n.attrs),r+=4+i.nb,i.nb){let e;i.nb===h.length?e=new Uint8Array(h):(e=new Uint8Array(i.nb),u(h,e,0,i.nb,0)),i.bytes=e}a.push(i)}else r+=4,a.push(null)}let o=9,s=Buffer.allocUnsafe(13+r);p(s,s.length-4,0),s[4]=b.NAME,p(s,e,5),p(s,n,o),o+=4;for(let e=0;e<n;++e){let n=t[e];{let e=!n||!n.filename||typeof n.filename!=`string`?``:n.filename,t=Buffer.byteLength(e);p(s,t,o),o+=4,t&&(s.utf8Write(e,o,t),o+=t)}{let e=!n||!n.longname||typeof n.longname!=`string`?``:n.longname,t=Buffer.byteLength(e);p(s,t,o),o+=4,t&&(s.utf8Write(e,o,t),o+=t)}let r=a[e];r?(p(s,r.flags,o),o+=4,r.flags&&r.bytes&&(s.set(r.bytes,o),o+=r.nb)):(p(s,0,o),o+=4)}let c=W(this,s);this._debug&&this._debug(`SFTP: Outbound: ${c?`Buffered`:`Sending`} NAME`)}attrs(e,t){if(!this.server)throw Error(`Server-only method called in client mode`);if(typeof t!=`object`||!t)throw Error(`attrs is not an object`);t=L(t);let n=t.flags,r=t.nb,i=9,a=Buffer.allocUnsafe(13+r);p(a,a.length-4,0),a[4]=b.ATTRS,p(a,e,5),p(a,n,i),r&&(i+=4,r===h.length?a.set(h,i):u(h,a,0,r,i),i+=r);let o=W(this,a);this._debug&&this._debug(`SFTP: Outbound: ${o?`Buffered`:`Sending`} ATTRS`)}};function M(e){try{return Buffer.allocUnsafe(e)}catch(e){return e}}function N(e,t,n,r,i,a,o,s){let c=e._maxReadLen,l=Math.max(i-c,0);l&&(i=c);let u=t.length,f=9,m=a,h=Buffer.allocUnsafe(13+u+8+4);p(h,h.length-4,0),h[4]=y.READ;let _=e._writeReqid=e._writeReqid+1&C;p(h,_,5),p(h,u,f),h.set(t,f+=4),f+=u;for(let e=7;e>=0;--e)h[f+e]=m&255,m/=256;p(h,i,f+=8),typeof o!=`function`&&(o=A);let v=s||{nb:0,position:a,off:r,origOff:r,len:void 0,overflow:void 0,cb:(r,i,a)=>{let s=v.len,c=v.overflow;if(r){if(o._wantEOFError||r.code!==g.EOF)return o(r)}else if(a>s)return o(Error(`Received more data than requested`));else if(a===s&&c){v.nb+=a,v.position+=a,v.off+=a,N(e,t,n,v.off,c,v.position,o,v);return}a||=0,i=v.origOff===0&&n.length===v.nb?n:d(n,v.origOff,v.origOff+v.nb+a),o(void 0,v.nb+a,i,v.position)},buffer:void 0};v.len=i,v.overflow=l,v.buffer=d(n,r,r+i),e._requests[_]=v;let b=W(e,h);e._debug&&e._debug(`SFTP: Outbound: ${b?`Buffered`:`Sending`} READ`)}function P(e,t,n,i,a,o){let s=64,c=32768,l,u,d;typeof a==`function`?o=a:typeof a==`object`&&a&&(typeof a.concurrency==`number`&&a.concurrency>0&&!isNaN(a.concurrency)&&(s=a.concurrency),typeof a.chunkSize==`number`&&a.chunkSize>0&&!isNaN(a.chunkSize)&&(c=a.chunkSize),typeof a.fileSize==`number`&&a.fileSize>0&&!isNaN(a.fileSize)&&(d=a.fileSize),typeof a.step==`function`&&(l=a.step),(typeof a.mode==`string`||typeof a.mode==`number`)&&(u=z(a.mode)));let f,p=0,m=0,h=!1,g,_,v,y=c*s;function b(n){if(h)return;h=!0;let i=0,a;g||_?(a=()=>{--i===0&&o(n)},g&&(e===r||e.outgoing.state===`open`)&&++i,_&&(t===r||t.outgoing.state===`open`)&&++i,g&&(e===r||e.outgoing.state===`open`)&&e.close(g,a),_&&(t===r||t.outgoing.state===`open`)&&t.close(_,a)):o(n)}e.open(n,`r`,(a,h)=>{if(a)return b(a);g=h,d===void 0?e.fstat(g,x):x(null,{size:d});function x(a,d){if(a){if(e!==r){e.stat(n,(e,t)=>{if(e)return b(a);x(null,t)});return}return b(a)}f=d.size,t.open(i,`w`,(n,r)=>{if(n)return b(n);if(_=r,f<=0)return b();for(;y>f;){if(s===1){y=f;break}y-=c,--s}if(v=M(y),v instanceof Error)return b(v);u===void 0?x():t.fchmod(_,u,function e(n){if(n){t.chmod(i,u,t=>e());return}x()});function a(n,r,i,a,s,u){if(n)return b(n);s||=0,t.write(_,v,s,r,a,d);function d(n){if(n)return b(n);if(m+=r,l&&l(m,r,f),r<u)return h(s,a+r,u-r);if(m===f){t.close(_,t=>{if(_=void 0,t)return b(t);e.close(g,e=>{if(g=void 0,e)return b(e);o()})});return}if(p>=f)return;let i=p+c>f?f-p:c;h(s,p,i),p+=i}}function d(e,t,n){return(r,i,o)=>{a(r,i,o,t,e,n)}}function h(t,n,r){e.read(g,v,t,r,n,d(t,n,r))}function x(){let e=0,t=0;for(;p<f&&e<s;){let n=p+c>f?f-p:c;h(t,p,n),t+=n,p+=n,++e}}})}})}function F(e,t,n,r,i,a,o){let s=typeof o==`function`?o:void 0;e.write(t,n,r,i,a,(o,c)=>{if(o)return e.close(t,()=>{s&&s(o)});c===i?e.close(t,s):(r+=c,i-=c,a+=c,F(e,t,n,r,i,a,s))})}var I=class{constructor(e){this.mode=e&&e.mode,this.uid=e&&e.uid,this.gid=e&&e.gid,this.size=e&&e.size,this.atime=e&&e.atime,this.mtime=e&&e.mtime,this.extended=e&&e.extended}isDirectory(){return(this.mode&i.S_IFMT)===i.S_IFDIR}isFile(){return(this.mode&i.S_IFMT)===i.S_IFREG}isBlockDevice(){return(this.mode&i.S_IFMT)===i.S_IFBLK}isCharacterDevice(){return(this.mode&i.S_IFMT)===i.S_IFCHR}isSymbolicLink(){return(this.mode&i.S_IFMT)===i.S_IFLNK}isFIFO(){return(this.mode&i.S_IFMT)===i.S_IFIFO}isSocket(){return(this.mode&i.S_IFMT)===i.S_IFSOCK}};function L(e){let t=0,n=0;if(typeof e==`object`&&e){if(typeof e.size==`number`){t|=m.SIZE;let r=e.size;h[n++]=r/72057594037927940,h[n++]=r/281474976710656,h[n++]=r/1099511627776,h[n++]=r/4294967296,h[n++]=r/16777216,h[n++]=r/65536,h[n++]=r/256,h[n++]=r}if(typeof e.uid==`number`&&typeof e.gid==`number`){t|=m.UIDGID;let r=e.uid,i=e.gid;h[n++]=r>>>24,h[n++]=r>>>16,h[n++]=r>>>8,h[n++]=r,h[n++]=i>>>24,h[n++]=i>>>16,h[n++]=i>>>8,h[n++]=i}if(typeof e.mode==`number`||typeof e.mode==`string`){let r=z(e.mode);t|=m.PERMISSIONS,h[n++]=r>>>24,h[n++]=r>>>16,h[n++]=r>>>8,h[n++]=r}if((typeof e.atime==`number`||c(e.atime))&&(typeof e.mtime==`number`||c(e.mtime))){let r=R(e.atime),i=R(e.mtime);t|=m.ACMODTIME,h[n++]=r>>>24,h[n++]=r>>>16,h[n++]=r>>>8,h[n++]=r,h[n++]=i>>>24,h[n++]=i>>>16,h[n++]=i>>>8,h[n++]=i}}return{flags:t,nb:n}}function R(e){if(typeof e==`number`&&e===e)return e;if(c(e))return parseInt(e.getTime()/1e3,10);throw Error(`Cannot parse time: ${e}`)}function z(e){if(typeof e==`number`&&e===e)return e;if(typeof e==`string`)return z(parseInt(e,8));throw Error(`Cannot parse mode: ${e}`)}let B={r:x.READ,"r+":x.READ|x.WRITE,w:x.TRUNC|x.CREAT|x.WRITE,wx:x.TRUNC|x.CREAT|x.WRITE|x.EXCL,xw:x.TRUNC|x.CREAT|x.WRITE|x.EXCL,"w+":x.TRUNC|x.CREAT|x.READ|x.WRITE,"wx+":x.TRUNC|x.CREAT|x.READ|x.WRITE|x.EXCL,"xw+":x.TRUNC|x.CREAT|x.READ|x.WRITE|x.EXCL,a:x.APPEND|x.CREAT|x.WRITE,ax:x.APPEND|x.CREAT|x.WRITE|x.EXCL,xa:x.APPEND|x.CREAT|x.WRITE|x.EXCL,"a+":x.APPEND|x.CREAT|x.READ|x.WRITE,"ax+":x.APPEND|x.CREAT|x.READ|x.WRITE|x.EXCL,"xa+":x.APPEND|x.CREAT|x.READ|x.WRITE|x.EXCL};function V(e){let t=B[e];return t===void 0?null:t}let H=(()=>{let e=Object.keys(B);return t=>{for(let n=0;n<e.length;++n){let r=e[n];if(B[r]===t)return r}return null}})();function U(e){let t=O.readUInt32BE();if(t===void 0)return;let n=new I;if(t&m.SIZE){let t=O.readUInt64BE(e);if(t===void 0)return;n.size=t}if(t&m.UIDGID){let e=O.readUInt32BE(),t=O.readUInt32BE();if(t===void 0)return;n.uid=e,n.gid=t}if(t&m.PERMISSIONS){let e=O.readUInt32BE();if(e===void 0)return;n.mode=e}if(t&m.ACMODTIME){let e=O.readUInt32BE(),t=O.readUInt32BE();if(t===void 0)return;n.atime=e,n.mtime=t}if(t&m.EXTENDED){let e=O.readUInt32BE();if(e===void 0)return;let t={};for(let n=0;n<e;++n){let e=O.readString(!0),n=O.readString();if(n===void 0)return;t[e]=n}n.extended=t}return n}function W(e,t){let n=G(e,t);return n===void 0?!0:(e._buffer.push(n),!1)}function G(e,t){let n=e.outgoing;if(n.state!==`open`)return;if(n.window===0)return e._waitWindow=!0,e._chunkcb=ee,t;let r,i=t.length,a=0;for(;i-a>0&&n.window>0;){let r=Math.min(i-a,n.window,n.packetSize);n.window-=r,n.window===0&&(e._waitWindow=!0,e._chunkcb=ee),a===0&&r===i?e._protocol.channelData(e.outgoing.id,t):e._protocol.channelData(e.outgoing.id,d(t,a,a+r)),a+=r}return i-a>0&&(r=a>0?d(t,a,i):t),r}function ee(){this._chunkcb=void 0;let e=this._buffer,t=0;for(;t<e.length;){let n=e[t],r=G(this,n);if(r!==void 0){r!==n&&(e[t]=r),t>0&&(this._buffer=e.slice(t));return}++t}t>0&&(this._buffer=[])}function K(e,t,n){let r=Error(t);return r.level=`sftp-protocol`,!n&&e._debug&&e._debug(`SFTP: Inbound: ${t}`),e.emit(`error`,r),e.destroy(),q(e),!1}function q(e){let t=Object.keys(e._requests);if(t.length===0)return;let n=e._requests;e._requests={};let r=Error(`No response from server`);for(let e=0;e<t.length;++e){let i=n[t[e]];typeof i.cb==`function`&&i.cb(r)}}function te(e,t){let n=9,r=Buffer.allocUnsafe(31);p(r,r.length-4,0),r[4]=y.EXTENDED;let i=e._writeReqid=e._writeReqid+1&C;p(r,i,5),p(r,18,n),r.utf8Write(`limits@openssh.com`,n+=4,18),e._requests[i]={extended:`limits@openssh.com`,cb:t};let a=W(e,r);if(e._debug){let t=a?`Buffered`:`Sending`;e._debug(`SFTP: Outbound: ${t} limits@openssh.com`)}}let ne={[b.VERSION]:(e,t)=>{if(e._version!==-1)return K(e,`Duplicate VERSION packet`);let n={};O.init(t,1);let r=O.readUInt32BE();for(;O.avail();){let e=O.readString(!0),t=O.readString(!0);if(t===void 0){r=void 0;break}n[e]=t}if(O.clear(),r===void 0)return K(e,`Malformed VERSION packet`);if(e._debug){let t=Object.keys(n);t.length?e._debug(`SFTP: Inbound: Received VERSION (v${r}, exts:${t})`):e._debug(`SFTP: Inbound: Received VERSION (v${r})`)}if(e._version=r,e._extensions=n,n[`limits@openssh.com`]===`1`)return te(e,(t,n)=>{t||(n.maxPktLen>0&&(e._maxOutPktLen=n.maxPktLen),n.maxReadLen>0&&(e._maxReadLen=n.maxReadLen),n.maxWriteLen>0&&(e._maxWriteLen=n.maxWriteLen),e.maxOpenHandles=n.maxOpenHandles>0?n.maxOpenHandles:1/0),e.emit(`ready`)});e.emit(`ready`)},[b.STATUS]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readUInt32BE(),i=O.readString(!0);if(O.clear(),e._debug){let t=JSON.stringify(i);e._debug(`SFTP: Inbound: Received STATUS (id:${n}, ${r}, ${t})`)}let a=e._requests[n];if(delete e._requests[n],a&&typeof a.cb==`function`){if(r===g.OK){a.cb();return}let e=Error(i||v[r]||`Unknown status`);e.code=r,a.cb(e)}},[b.HANDLE]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString();if(O.clear(),r===void 0)return n!==void 0&&delete e._requests[n],K(e,`Malformed HANDLE packet`);e._debug&&e._debug(`SFTP: Inbound: Received HANDLE (id:${n})`);let i=e._requests[n];delete e._requests[n],i&&typeof i.cb==`function`&&i.cb(void 0,r)},[b.DATA]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r;if(n!==void 0&&(r=e._requests[n],delete e._requests[n]),r&&typeof r.cb==`function`)if(r.buffer){let t=O.readString(r.buffer);if(O.clear(),t!==void 0){e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t})`),r.cb(void 0,r.buffer,t);return}}else{let t=O.readString();if(O.clear(),t!==void 0){e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t.length})`),r.cb(void 0,t);return}}else{let t=O.skipString();if(O.clear(),t!==void 0){e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t})`);return}}return K(e,`Malformed DATA packet`)},[b.NAME]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r;n!==void 0&&(r=e._requests[n],delete e._requests[n]);let i=O.readUInt32BE();if(i!==void 0){let t=[];for(let n=0;n<i;++n){let n=O.readString(!0),r=O.readString(!0),i=U(e._biOpt);if(i===void 0){t=void 0;break}t.push({filename:n,longname:r,attrs:i})}if(t!==void 0){e._debug&&e._debug(`SFTP: Inbound: Received NAME (id:${n}, ${t.length})`),O.clear(),r&&typeof r.cb==`function`&&r.cb(void 0,t);return}}return O.clear(),K(e,`Malformed NAME packet`)},[b.ATTRS]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r;n!==void 0&&(r=e._requests[n],delete e._requests[n]);let i=U(e._biOpt);if(O.clear(),i!==void 0){e._debug&&e._debug(`SFTP: Inbound: Received ATTRS (id:${n})`),r&&typeof r.cb==`function`&&r.cb(void 0,i);return}return K(e,`Malformed ATTRS packet`)},[b.EXTENDED]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE();if(n!==void 0){let t=e._requests[n];if(t)switch(delete e._requests[n],t.extended){case`statvfs@openssh.com`:case`fstatvfs@openssh.com`:{let r=e._biOpt,i={f_bsize:O.readUInt64BE(r),f_frsize:O.readUInt64BE(r),f_blocks:O.readUInt64BE(r),f_bfree:O.readUInt64BE(r),f_bavail:O.readUInt64BE(r),f_files:O.readUInt64BE(r),f_ffree:O.readUInt64BE(r),f_favail:O.readUInt64BE(r),f_sid:O.readUInt64BE(r),f_flag:O.readUInt64BE(r),f_namemax:O.readUInt64BE(r)};if(i.f_namemax===void 0)break;e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),O.clear(),typeof t.cb==`function`&&t.cb(void 0,i);return}case`limits@openssh.com`:{let r={maxPktLen:O.readUInt64BE(),maxReadLen:O.readUInt64BE(),maxWriteLen:O.readUInt64BE(),maxOpenHandles:O.readUInt64BE()};if(r.maxOpenHandles===void 0)break;e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),O.clear(),typeof t.cb==`function`&&t.cb(void 0,r);return}case`users-groups-by-id@openssh.com`:{let r=O.readUInt32BE();if(r===void 0)break;let i=Array(r);for(let e=0;e<i.length;++e)i[e]=O.readString(!0);let a=O.readUInt32BE();if(a===void 0)break;let o=Array(a);for(let e=0;e<o.length;++e)o[e]=O.readString(!0);if(o.length>0&&o[o.length-1]===void 0)break;e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),O.clear(),typeof t.cb==`function`&&t.cb(void 0,i,o);return}default:e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ???)`),O.clear(),typeof t.cb==`function`&&t.cb();return}else{e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ???)`),O.clear();return}}return O.clear(),K(e,`Malformed EXTENDED_REPLY packet`)}},re={[y.INIT]:(e,t)=>{if(e._version!==-1)return K(e,`Duplicate INIT packet`);let n={};O.init(t,1);let r=O.readUInt32BE();for(;O.avail();){let e=O.readString(!0),t=O.readString(!0);if(t===void 0){r=void 0;break}n[e]=t}if(O.clear(),r===void 0)return K(e,`Malformed INIT packet`);if(e._debug){let t=Object.keys(n);t.length?e._debug(`SFTP: Inbound: Received INIT (v${r}, exts:${t})`):e._debug(`SFTP: Inbound: Received INIT (v${r})`)}W(e,T),e._version=r,e._extensions=n,e.emit(`ready`)},[y.OPEN]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0),i=O.readUInt32BE(),a=U(e._biOpt);if(O.clear(),a===void 0)return K(e,`Malformed OPEN packet`);e._debug&&e._debug(`SFTP: Inbound: Received OPEN (id:${n})`),e.emit(`OPEN`,n,r,i,a)||e.status(n,g.OP_UNSUPPORTED)},[y.CLOSE]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString();if(O.clear(),r===void 0||r.length>256)return K(e,`Malformed CLOSE packet`);e._debug&&e._debug(`SFTP: Inbound: Received CLOSE (id:${n})`),e.emit(`CLOSE`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.READ]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(),i=O.readUInt64BE(e._biOpt),a=O.readUInt32BE();if(O.clear(),a===void 0||r.length>256)return K(e,`Malformed READ packet`);e._debug&&e._debug(`SFTP: Inbound: Received READ (id:${n})`),e.emit(`READ`,n,r,i,a)||e.status(n,g.OP_UNSUPPORTED)},[y.WRITE]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(),i=O.readUInt64BE(e._biOpt),a=O.readString();if(O.clear(),a===void 0||r.length>256)return K(e,`Malformed WRITE packet`);e._debug&&e._debug(`SFTP: Inbound: Received WRITE (id:${n})`),e.emit(`WRITE`,n,r,i,a)||e.status(n,g.OP_UNSUPPORTED)},[y.LSTAT]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(O.clear(),r===void 0)return K(e,`Malformed LSTAT packet`);e._debug&&e._debug(`SFTP: Inbound: Received LSTAT (id:${n})`),e.emit(`LSTAT`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.FSTAT]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString();if(O.clear(),r===void 0||r.length>256)return K(e,`Malformed FSTAT packet`);e._debug&&e._debug(`SFTP: Inbound: Received FSTAT (id:${n})`),e.emit(`FSTAT`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.SETSTAT]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0),i=U(e._biOpt);if(O.clear(),i===void 0)return K(e,`Malformed SETSTAT packet`);e._debug&&e._debug(`SFTP: Inbound: Received SETSTAT (id:${n})`),e.emit(`SETSTAT`,n,r,i)||e.status(n,g.OP_UNSUPPORTED)},[y.FSETSTAT]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(),i=U(e._biOpt);if(O.clear(),i===void 0||r.length>256)return K(e,`Malformed FSETSTAT packet`);e._debug&&e._debug(`SFTP: Inbound: Received FSETSTAT (id:${n})`),e.emit(`FSETSTAT`,n,r,i)||e.status(n,g.OP_UNSUPPORTED)},[y.OPENDIR]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(O.clear(),r===void 0)return K(e,`Malformed OPENDIR packet`);e._debug&&e._debug(`SFTP: Inbound: Received OPENDIR (id:${n})`),e.emit(`OPENDIR`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.READDIR]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString();if(O.clear(),r===void 0||r.length>256)return K(e,`Malformed READDIR packet`);e._debug&&e._debug(`SFTP: Inbound: Received READDIR (id:${n})`),e.emit(`READDIR`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.REMOVE]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(O.clear(),r===void 0)return K(e,`Malformed REMOVE packet`);e._debug&&e._debug(`SFTP: Inbound: Received REMOVE (id:${n})`),e.emit(`REMOVE`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.MKDIR]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0),i=U(e._biOpt);if(O.clear(),i===void 0)return K(e,`Malformed MKDIR packet`);e._debug&&e._debug(`SFTP: Inbound: Received MKDIR (id:${n})`),e.emit(`MKDIR`,n,r,i)||e.status(n,g.OP_UNSUPPORTED)},[y.RMDIR]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(O.clear(),r===void 0)return K(e,`Malformed RMDIR packet`);e._debug&&e._debug(`SFTP: Inbound: Received RMDIR (id:${n})`),e.emit(`RMDIR`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.REALPATH]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(O.clear(),r===void 0)return K(e,`Malformed REALPATH packet`);e._debug&&e._debug(`SFTP: Inbound: Received REALPATH (id:${n})`),e.emit(`REALPATH`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.STAT]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(O.clear(),r===void 0)return K(e,`Malformed STAT packet`);e._debug&&e._debug(`SFTP: Inbound: Received STAT (id:${n})`),e.emit(`STAT`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.RENAME]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0),i=O.readString(!0);if(O.clear(),i===void 0)return K(e,`Malformed RENAME packet`);e._debug&&e._debug(`SFTP: Inbound: Received RENAME (id:${n})`),e.emit(`RENAME`,n,r,i)||e.status(n,g.OP_UNSUPPORTED)},[y.READLINK]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(O.clear(),r===void 0)return K(e,`Malformed READLINK packet`);e._debug&&e._debug(`SFTP: Inbound: Received READLINK (id:${n})`),e.emit(`READLINK`,n,r)||e.status(n,g.OP_UNSUPPORTED)},[y.SYMLINK]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0),i=O.readString(!0);if(O.clear(),i===void 0)return K(e,`Malformed SYMLINK packet`);e._debug&&e._debug(`SFTP: Inbound: Received SYMLINK (id:${n})`);let a;a=e._isOpenSSH?e.emit(`SYMLINK`,n,i,r):e.emit(`SYMLINK`,n,r,i),a||e.status(n,g.OP_UNSUPPORTED)},[y.EXTENDED]:(e,t)=>{O.init(t,1);let n=O.readUInt32BE(),r=O.readString(!0);if(r===void 0)return O.clear(),K(e,`Malformed EXTENDED packet`);let i;O.avail()&&(i=O.readRaw()),O.clear(),e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED (id:${n})`),e.emit(`EXTENDED`,n,r,i)||e.status(n,g.OP_UNSUPPORTED)}},{ERR_INVALID_ARG_TYPE:ie,ERR_OUT_OF_RANGE:ae,validateNumber:J}=ph(),oe,se=[];function ce(e){oe=se.length>0?se.pop():Buffer.allocUnsafe(e),oe.used=0}function Y(e,t){if(!Number.isSafeInteger(e))throw J(e,t),Number.isInteger(e)?new ae(t,`>= 0 and <= 2 ** 53 - 1`,e):new ae(t,`an integer`,e);if(e<0)throw new ae(t,`>= 0 and <= 2 ** 53 - 1`,e)}function le(e){return e+7&-8}function ue(e,t,n){if(n===void 0)n={};else if(typeof n==`string`)n={encoding:n};else if(typeof n!=`object`||!n)throw TypeError(`"options" argument must be a string or an object`);else n=Object.create(n);if(n.highWaterMark===void 0&&(n.highWaterMark=64*1024),n.emitClose=!1,n.autoDestroy=!1,a.call(this,n),this.path=t,this.flags=n.flags===void 0?`r`:n.flags,this.mode=n.mode===void 0?438:n.mode,this.start=n.start,this.end=n.end,this.autoClose=n.autoClose===void 0||n.autoClose,this.pos=0,this.bytesRead=0,this.isClosed=!1,this.handle=n.handle===void 0?null:n.handle,this.sftp=e,this._opening=!1,this.start!==void 0&&(Y(this.start,`start`),this.pos=this.start),this.end===void 0)this.end=1/0;else if(this.end!==1/0&&(Y(this.end,`end`),this.start!==void 0&&this.start>this.end))throw new ae(`start`,`<= "end" (here: ${this.end})`,this.start);this.on(`end`,function(){this.autoClose&&this.destroy()}),Buffer.isBuffer(this.handle)||this.open()}s(ue,a),ue.prototype.open=function(){this._opening||(this._opening=!0,this.sftp.open(this.path,this.flags,this.mode,(e,t)=>{if(this._opening=!1,e){this.emit(`error`,e),this.autoClose&&this.destroy();return}this.handle=t,this.emit(`open`,t),this.emit(`ready`),this.read()}))},ue.prototype._read=function(e){if(!Buffer.isBuffer(this.handle))return this.once(`open`,()=>this._read(e));if(this.destroyed)return;(!oe||oe.length-oe.used<128)&&ce(this.readableHighWaterMark||this._readableState.highWaterMark);let t=oe,n=Math.min(oe.length-oe.used,e),r=oe.used;if(this.end!==void 0&&(n=Math.min(this.end-this.pos+1,n)),n<=0)return this.push(null);this.sftp.read(this.handle,oe,oe.used,n,this.pos,(e,i)=>{if(e){this.emit(`error`,e),this.autoClose&&this.destroy();return}let a=null;if(r+n===t.used&&t===oe)t.used=le(t.used+i-n);else{let e=r+n&-8,a=le(r+i);e-a>=128&&se.push(t.slice(a,e))}i>0&&(this.bytesRead+=i,a=t.slice(r,r+i)),this.pos+=i,this.push(a)}),oe.used=le(oe.used+n)},ue.prototype._destroy=function(e,t){if(this._opening&&!Buffer.isBuffer(this.handle)){this.once(`open`,de.bind(null,this,t,e));return}de(this,t,e),this.handle=null,this._opening=!1};function de(e,t,n){if(!e.handle)return r();e.sftp.close(e.handle,r);function r(r){r||=n,t(r),e.isClosed=!0,r||e.emit(`close`)}}ue.prototype.close=function(e){this.destroy(null,e)},Object.defineProperty(ue.prototype,"pending",{get(){return this.handle===null},configurable:!0});function fe(e,t,n){if(n===void 0)n={};else if(typeof n==`string`)n={encoding:n};else if(typeof n!=`object`||!n)throw TypeError(`"options" argument must be a string or an object`);else n=Object.create(n);n.emitClose=!1,n.autoDestroy=!1,o.call(this,n),this.path=t,this.flags=n.flags===void 0?`w`:n.flags,this.mode=n.mode===void 0?438:n.mode,this.start=n.start,this.autoClose=n.autoClose===void 0||n.autoClose,this.pos=0,this.bytesWritten=0,this.isClosed=!1,this.handle=n.handle===void 0?null:n.handle,this.sftp=e,this._opening=!1,this.start!==void 0&&(Y(this.start,`start`),this.pos=this.start),n.encoding&&this.setDefaultEncoding(n.encoding),this.on(`finish`,function(){this._writableState.finalCalled||this.autoClose&&this.destroy()}),Buffer.isBuffer(this.handle)||this.open()}s(fe,o),fe.prototype._final=function(e){this.autoClose&&this.destroy(),e()},fe.prototype.open=function(){this._opening||(this._opening=!0,this.sftp.open(this.path,this.flags,this.mode,(e,t)=>{if(this._opening=!1,e){this.emit(`error`,e),this.autoClose&&this.destroy();return}this.handle=t;let n=e=>{if(e){this.sftp.chmod(this.path,this.mode,e=>n());return}if(this.flags[0]===`a`){let e=(n,r)=>{if(n){this.sftp.stat(this.path,(t,r)=>{if(t){this.destroy(),this.emit(`error`,n);return}e(null,r)});return}this.pos=r.size,this.emit(`open`,t),this.emit(`ready`)};this.sftp.fstat(t,e);return}this.emit(`open`,t),this.emit(`ready`)};this.sftp.fchmod(t,this.mode,n)}))},fe.prototype._write=function(e,t,n){if(!Buffer.isBuffer(e)){let t=new ie(`data`,`Buffer`,e);return this.emit(`error`,t)}if(!Buffer.isBuffer(this.handle))return this.once(`open`,function(){this._write(e,t,n)});this.sftp.write(this.handle,e,0,e.length,this.pos,(e,t)=>{if(e)return this.autoClose&&this.destroy(),n(e);this.bytesWritten+=t,n()}),this.pos+=e.length},fe.prototype._writev=function(e,t){if(!Buffer.isBuffer(this.handle))return this.once(`open`,function(){this._writev(e,t)});let n=this.sftp,r=this.handle,i=e.length,a=(e,n)=>{if(e)return this.destroy(),t(e);this.bytesWritten+=n,--i===0&&t()};for(let t=0;t<e.length;++t){let i=e[t].chunk;n.write(r,i,0,i.length,this.pos,a),this.pos+=i.length}},typeof o.prototype.destroy!=`function`&&(fe.prototype.destroy=ue.prototype.destroy),fe.prototype._destroy=ue.prototype._destroy,fe.prototype.close=function(e){if(e){if(this.isClosed){process.nextTick(e);return}this.on(`close`,e)}this.autoClose||this.on(`finish`,this.destroy.bind(this)),this.end()},fe.prototype.destroySoon=fe.prototype.end,Object.defineProperty(fe.prototype,"pending",{get(){return this.handle===null},configurable:!0}),t.exports={flagsToString:H,OPEN_MODE:x,SFTP:j,Stats:I,STATUS_CODE:g,stringToFlags:V}})),hh=s(((e,t)=>{let{Duplex:n,Readable:r,Writable:i}=require("stream"),{CHANNEL_EXTENDED_DATATYPE:{STDERR:a}}=th(),{bufferSlice:o}=nh(),s=2*1024*1024,c=s/2;var l=class extends r{constructor(e,t){super(t),this._channel=e}_read(e){this._channel._waitChanDrain&&(this._channel._waitChanDrain=!1,this._channel.incoming.window<=c&&m(this._channel))}},u=class extends i{constructor(e){super({highWaterMark:s}),this._channel=e}_write(e,t,n){let r=this._channel,i=r._client._protocol,s=r.outgoing,c=s.packetSize,l=s.id,u=s.window,d=e.length,f=0;if(s.state===`open`){for(;d-f>0&&u>0;){let t=d-f;t>u&&(t=u),t>c&&(t=c),f===0&&t===d?i.channelExtData(l,e,a):i.channelExtData(l,o(e,f,f+t),a),f+=t,u-=t}if(s.window=u,d-f>0){u===0&&(r._waitWindow=!0),f>0?r._chunkErr=o(e,f,d):r._chunkErr=e,r._chunkcbErr=n;return}n()}}},d=class extends n{constructor(e,t,n){let r={highWaterMark:s,allowHalfOpen:!n||n&&n.allowHalfOpen!==!1,emitClose:!1};super(r),this.allowHalfOpen=r.allowHalfOpen;let i=!!(n&&n.server);this.server=i,this.type=t.type,this.subtype=void 0,this.incoming=t.incoming,this.outgoing=t.outgoing,this._callbacks=[],this._client=e,this._hasX11=!1,this._exit={code:void 0,signal:void 0,dump:void 0,desc:void 0},this.stdin=this.stdout=this,i?this.stderr=new u(this):this.stderr=new l(this,r),this._waitWindow=!1,this._waitChanDrain=!1,this._chunk=void 0,this._chunkcb=void 0,this._chunkErr=void 0,this._chunkcbErr=void 0,this.on(`finish`,f).on(`prefinish`,f),this.on(`end`,p).on(`close`,p)}_read(e){this._waitChanDrain&&(this._waitChanDrain=!1,this.incoming.window<=c&&m(this))}_write(e,t,n){let r=this._client._protocol,i=this.outgoing,a=i.packetSize,s=i.id,c=i.window,l=e.length,u=0;if(i.state===`open`){for(;l-u>0&&c>0;){let t=l-u;t>c&&(t=c),t>a&&(t=a),u===0&&t===l?r.channelData(s,e):r.channelData(s,o(e,u,u+t)),u+=t,c-=t}if(i.window=c,l-u>0){c===0&&(this._waitWindow=!0),u>0?this._chunk=o(e,u,l):this._chunk=e,this._chunkcb=n;return}n()}}eof(){this.outgoing.state===`open`&&(this.outgoing.state=`eof`,this._client._protocol.channelEOF(this.outgoing.id))}close(){(this.outgoing.state===`open`||this.outgoing.state===`eof`)&&(this.outgoing.state=`closing`,this._client._protocol.channelClose(this.outgoing.id))}destroy(){return this.end(),this.close(),this}setWindow(e,t,n,r){if(this.server)throw Error(`Client-only method called in server mode`);this.type===`session`&&(this.subtype===`shell`||this.subtype===`exec`)&&this.writable&&this.outgoing.state===`open`&&this._client._protocol.windowChange(this.outgoing.id,e,t,n,r)}signal(e){if(this.server)throw Error(`Client-only method called in server mode`);this.type===`session`&&this.writable&&this.outgoing.state===`open`&&this._client._protocol.signal(this.outgoing.id,e)}exit(e,t,n){if(!this.server)throw Error(`Server-only method called in client mode`);this.type===`session`&&this.writable&&this.outgoing.state===`open`&&(typeof e==`number`?this._client._protocol.exitStatus(this.outgoing.id,e):this._client._protocol.exitSignal(this.outgoing.id,e,t,n))}};function f(){this.eof(),(this.server||!this.allowHalfOpen)&&this.close(),this.writable=!1}function p(){this.readable=!1}function m(e){if(e.outgoing.state===`closed`)return;let t=s-e.incoming.window;t<=0||(e.incoming.window+=t,e._client._protocol.channelWindowAdjust(e.outgoing.id,t))}t.exports={Channel:d,MAX_WINDOW:s,PACKET_SIZE:32768,windowAdjust:m,WINDOW_THRESHOLD:c}})),gh=s(((e,t)=>{let{SFTP:n}=mh(),r=2**32-1;function i(e,t,n,r){if(e._chanMgr.remove(t),typeof r!=`function`)return;let i;n instanceof Error?i=n:typeof n==`object`&&n?(i=Error(`(SSH) Channel open failure: ${n.description}`),i.reason=n.reason):(i=Error(`(SSH) Channel open failure: server closed channel unexpectedly`),i.reason=``),r(i)}function a(e,t,r,a,o){if(typeof r==`function`){i(e,t,a,r);return}if(typeof r!=`object`||!r||r.incoming&&r.incoming.state===`closed`||(e._chanMgr.remove(t),r.server&&r.constructor.name===`Session`))return;r.incoming.state=`closed`,r.readable&&r.push(null),r.server?r.stderr.writable&&r.stderr.end():r.stderr.readable&&r.stderr.push(null),r.constructor!==n&&(r.outgoing.state===`open`||r.outgoing.state===`eof`)&&!o&&r.close(),r.outgoing.state===`closing`&&(r.outgoing.state=`closed`);let s=r._readableState,c=r._writableState;c&&!c.ending&&!c.finished&&!o&&r.end();let l=r._callbacks;r._callbacks=[];for(let e=0;e<l.length;++e)l[e](!0);if(r.server)!r.readable||r.destroyed||s&&s.endEmitted?r.emit(`close`):r.once(`end`,()=>r.emit(`close`));else{let e;switch(r.type){case`direct-streamlocal@openssh.com`:case`direct-tcpip`:e=()=>r.emit(`close`);break;default:{let t=r._exit;e=()=>{t.code===null?r.emit(`close`,t.code,t.signal,t.dump,t.desc):r.emit(`close`,t.code)}}}!r.readable||r.destroyed||s&&s.endEmitted?e():r.once(`end`,e);let t=r.stderr._readableState;!r.stderr.readable||r.stderr.destroyed||t&&t.endEmitted?r.stderr.emit(`close`):r.stderr.once(`end`,()=>r.stderr.emit(`close`))}}var o=class{constructor(e){this._client=e,this._channels={},this._cur=-1,this._count=0}add(e){let t;if(this._cur<r)t=++this._cur;else if(this._count===0)this._cur=0,t=0;else{let e=this._channels;for(let n=0;n<r;++n)if(e[n]===void 0){t=n;break}}return t===void 0?-1:(this._channels[t]=e||!0,++this._count,t)}update(e,t){if(typeof e!=`number`||e<0||e>=r||!isFinite(e))throw Error(`Invalid channel id: ${e}`);t&&this._channels[e]&&(this._channels[e]=t)}get(e){if(typeof e!=`number`||e<0||e>=r||!isFinite(e))throw Error(`Invalid channel id: ${e}`);return this._channels[e]}remove(e){if(typeof e!=`number`||e<0||e>=r||!isFinite(e))throw Error(`Invalid channel id: ${e}`);this._channels[e]&&(delete this._channels[e],this._count&&--this._count)}cleanup(e){let t=this._channels;this._channels={},this._cur=-1,this._count=0;let n=Object.keys(t),r=this._client;for(let i=0;i<n.length;++i){let o=+n[i],s=t[o];a(r,o,s._channel||s,e,!0)}}};let s=(()=>{let e=Object.prototype.toString;return t=>e.call(t)===`[object RegExp]`})();function c(e,t,n){if(Array.isArray(e)&&e.length>0){for(let t=0;t<e.length;++t)if(n.indexOf(e[t])===-1)throw Error(`Unsupported algorithm: ${e[t]}`);return e}if(typeof e==`object`&&e){let r=Object.keys(e),i=t;for(let a=0;a<r.length;++a){let o=r[a],c=e[o];switch(o){case`append`:if(Array.isArray(c)||(c=[c]),Array.isArray(c))for(let e=0;e<c.length;++e){let r=c[e];if(typeof r==`string`){if(!r||i.indexOf(r)!==-1)continue;if(n.indexOf(r)===-1)throw Error(`Unsupported algorithm: ${r}`);i===t&&(i=i.slice()),i.push(r)}else if(s(r))for(let e=0;e<n.length;++e){let a=n[e];if(r.test(a)){if(i.indexOf(a)!==-1)continue;i===t&&(i=i.slice()),i.push(a)}}}break;case`prepend`:if(Array.isArray(c)||(c=[c]),Array.isArray(c))for(let e=c.length;e>=0;--e){let r=c[e];if(typeof r==`string`){if(!r||i.indexOf(r)!==-1)continue;if(n.indexOf(r)===-1)throw Error(`Unsupported algorithm: ${r}`);i===t&&(i=i.slice()),i.unshift(r)}else if(s(r))for(let e=n.length;e>=0;--e){let a=n[e];if(r.test(a)){if(i.indexOf(a)!==-1)continue;i===t&&(i=i.slice()),i.unshift(a)}}}break;case`remove`:if(Array.isArray(c)||(c=[c]),Array.isArray(c))for(let e=0;e<c.length;++e){let n=c[e];if(typeof n==`string`){if(!n)continue;let e=i.indexOf(n);if(e===-1)continue;i===t&&(i=i.slice()),i.splice(e,1)}else if(s(n))for(let e=0;e<i.length;++e)n.test(i[e])&&(i===t&&(i=i.slice()),i.splice(e,1),--e)}break}}return i}return t}t.exports={ChannelManager:o,generateAlgorithmList:c,onChannelOpenFailure:i,onCHANNEL_CLOSE:a,isWritable:e=>e&&e.writable&&e._readableState&&e._readableState.ended===!1}})),_h=s(((e,t)=>{let{createHash:n,getHashes:r,randomFillSync:i}=require("crypto"),{Socket:a}=require("net"),{lookup:o}=require("dns"),s=require("events"),c=r(),{COMPAT:l,CHANNEL_EXTENDED_DATATYPE:{STDERR:u},CHANNEL_OPEN_FAILURE:d,DEFAULT_CIPHER:f,DEFAULT_COMPRESSION:p,DEFAULT_KEX:m,DEFAULT_MAC:h,DEFAULT_SERVER_HOST_KEY:g,DISCONNECT_REASON:_,DISCONNECT_REASON_BY_VALUE:v,SUPPORTED_CIPHER:y,SUPPORTED_COMPRESSION:b,SUPPORTED_KEX:x,SUPPORTED_MAC:S,SUPPORTED_SERVER_HOST_KEY:C}=th(),{init:w}=ih(),T=fh(),{parseKey:E}=ah(),{SFTP:D}=mh(),{bufferCopy:O,makeBufferParser:k,makeError:A,readUInt32BE:j,sigSSHToASN1:M,writeUInt32BE:N}=nh(),{AgentContext:P,createAgent:F,isAgent:I}=oh(),{Channel:L,MAX_WINDOW:R,PACKET_SIZE:z,windowAdjust:B,WINDOW_THRESHOLD:V}=hh(),{ChannelManager:H,generateAlgorithmList:U,isWritable:W,onChannelOpenFailure:G,onCHANNEL_CLOSE:ee}=gh(),K=k(),q=k(),te=/^OpenSSH_(?:(?![0-4])\d)|(?:\d{2,})/,ne=e=>{};var re=class extends s{constructor(){super(),this.config={host:void 0,port:void 0,localAddress:void 0,localPort:void 0,forceIPv4:void 0,forceIPv6:void 0,keepaliveCountMax:void 0,keepaliveInterval:void 0,readyTimeout:void 0,ident:void 0,username:void 0,password:void 0,privateKey:void 0,tryKeyboard:void 0,agent:void 0,allowAgentFwd:void 0,authHandler:void 0,hostHashAlgo:void 0,hostHashCb:void 0,strictVendor:void 0,debug:void 0},this._agent=void 0,this._readyTimeout=void 0,this._chanMgr=void 0,this._callbacks=void 0,this._forwarding=void 0,this._forwardingUnix=void 0,this._acceptX11=void 0,this._agentFwdEnabled=void 0,this._remoteVer=void 0,this._protocol=void 0,this._sock=void 0,this._resetKA=void 0}connect(e){if(this._sock&&W(this._sock))return this.once(`close`,()=>{this.connect(e)}),this.end(),this;this.config.host=e.hostname||e.host||`localhost`,this.config.port=e.port||22,this.config.localAddress=typeof e.localAddress==`string`?e.localAddress:void 0,this.config.localPort=typeof e.localPort==`string`||typeof e.localPort==`number`?e.localPort:void 0,this.config.forceIPv4=e.forceIPv4||!1,this.config.forceIPv6=e.forceIPv6||!1,this.config.keepaliveCountMax=typeof e.keepaliveCountMax==`number`&&e.keepaliveCountMax>=0?e.keepaliveCountMax:3,this.config.keepaliveInterval=typeof e.keepaliveInterval==`number`&&e.keepaliveInterval>0?e.keepaliveInterval:0,this.config.readyTimeout=typeof e.readyTimeout==`number`&&e.readyTimeout>=0?e.readyTimeout:2e4,this.config.ident=typeof e.ident==`string`||Buffer.isBuffer(e.ident)?e.ident:void 0;let t={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:[]},sc:void 0},r=!0;if(typeof e.algorithms==`object`&&e.algorithms!==null&&(t.kex=U(e.algorithms.kex,m,x),t.kex!==m&&(r=!1),t.serverHostKey=U(e.algorithms.serverHostKey,g,C),t.serverHostKey!==g&&(r=!1),t.cs.cipher=U(e.algorithms.cipher,f,y),t.cs.cipher!==f&&(r=!1),t.cs.mac=U(e.algorithms.hmac,h,S),t.cs.mac!==h&&(r=!1),t.cs.compress=U(e.algorithms.compress,p,b),t.cs.compress!==p&&(r=!1),r||(t.sc=t.cs)),typeof e.username==`string`)this.config.username=e.username;else if(typeof e.user==`string`)this.config.username=e.user;else throw Error(`Invalid username`);this.config.password=typeof e.password==`string`?e.password:void 0,this.config.privateKey=typeof e.privateKey==`string`||Buffer.isBuffer(e.privateKey)?e.privateKey:void 0,this.config.localHostname=typeof e.localHostname==`string`?e.localHostname:void 0,this.config.localUsername=typeof e.localUsername==`string`?e.localUsername:void 0,this.config.tryKeyboard=e.tryKeyboard===!0,typeof e.agent==`string`&&e.agent.length?this.config.agent=F(e.agent):I(e.agent)?this.config.agent=e.agent:this.config.agent=void 0,this.config.allowAgentFwd=e.agentForward===!0&&this.config.agent!==void 0;let i=this.config.authHandler=typeof e.authHandler==`function`||Array.isArray(e.authHandler)?e.authHandler:void 0;this.config.strictVendor=typeof e.strictVendor!=`boolean`||e.strictVendor;let s=this.config.debug=typeof e.debug==`function`?e.debug:void 0;if(e.agentForward===!0&&!this.config.allowAgentFwd)throw Error(`You must set a valid agent path to allow agent forwarding`);let l=this._callbacks=[];this._chanMgr=new H(this),this._forwarding={},this._forwardingUnix={},this._acceptX11=0,this._agentFwdEnabled=!1,this._agent=this.config.agent?this.config.agent:void 0,this._remoteVer=void 0;let d;if(this.config.privateKey){if(d=E(this.config.privateKey,e.passphrase),d instanceof Error)throw Error(`Cannot parse privateKey: ${d.message}`);if(Array.isArray(d)&&(d=d[0]),d.getPrivatePEM()===null)throw Error(`privateKey value does not contain a (valid) private key`)}let O;if(typeof e.hostVerifier==`function`){let t=e.hostVerifier,r;c.indexOf(e.hostHash)!==-1&&(r=e.hostHash),O=(e,i)=>{r&&(e=n(r).update(e).digest(`hex`));let a=t(e,i);a!==void 0&&i(a)}}let k=this._sock=e.sock||new a,j=!1,M=!1;this._protocol&&this._protocol.cleanup();let N=s?(e,t,n)=>{s(`Debug output from server: ${JSON.stringify(n)}`)}:void 0,K,q=this._protocol=new T({ident:this.config.ident,offer:r?void 0:t,onWrite:e=>{W(k)&&k.write(e)},onError:e=>{e.level===`handshake`&&clearTimeout(this._readyTimeout),q._destruct||k.removeAllListeners(`data`),this.emit(`error`,e);try{k.end()}catch{}},onHeader:e=>{M=!0,this._remoteVer=e.versions.software,e.greeting&&this.emit(`greeting`,e.greeting)},onHandshakeComplete:e=>{this.emit(`handshake`,e),j||(j=!0,q.service(`ssh-userauth`))},debug:s,hostVerifier:O,messageHandlers:{DEBUG:N,DISCONNECT:(e,t,n)=>{if(t!==_.BY_APPLICATION){n||(n=v[t],n===void 0&&(n=`Unexpected disconnection reason: ${t}`));let e=Error(n);e.code=t,this.emit(`error`,e)}k.end()},SERVICE_ACCEPT:(e,t)=>{t===`ssh-userauth`&&ye()},EXT_INFO:(e,t)=>{if(K===void 0){for(let e of t)if(e.name===`server-sig-algs`){K=e.algs;return}K=null}},USERAUTH_BANNER:(e,t)=>{this.emit(`banner`,t)},USERAUTH_SUCCESS:e=>{J(),clearTimeout(this._readyTimeout),this.emit(`ready`)},USERAUTH_FAILURE:(e,t,n)=>{if(Y.keyAlgos){let e=Y.keyAlgos[0][0];if(s&&s(`Client: ${Y.type} (${e}) auth failed`),Y.keyAlgos.shift(),Y.keyAlgos.length){let[e,t]=Y.keyAlgos[0];switch(Y.type){case`agent`:q.authPK(Y.username,Y.agentCtx.currentKey(),e);return;case`publickey`:q.authPK(Y.username,Y.key,e);return;case`hostbased`:q.authHostbased(Y.username,Y.key,Y.localHostname,Y.localUsername,e,(e,n)=>{let r=Y.key.sign(e,t);if(r instanceof Error)return r.message=`Error while signing with key: ${r.message}`,r.level=`client-authentication`,this.emit(`error`,r),ye();n(r)});return}}else Y.keyAlgos=void 0}if(Y.type===`agent`){let e=Y.agentCtx.pos();return s&&s(`Client: Agent key #${e+1} failed`),be()}s&&s(`Client: ${Y.type} auth failed`),le=n,de=t,ye()},USERAUTH_PASSWD_CHANGEREQ:(e,t)=>{Y.type===`password`&&this.emit(`change password`,t,e=>{q.authPassword(this.config.username,this.config.password,e)})},USERAUTH_PK_OK:e=>{let t,n;if(Y.keyAlgos&&([t,n]=Y.keyAlgos[0]),Y.type===`agent`){let e=Y.agentCtx.currentKey();q.authPK(Y.username,e,t,(t,r)=>{let i={hash:n};Y.agentCtx.sign(e,t,i,(e,t)=>{if(e)e.level=`agent`,this.emit(`error`,e);else return r(t);be()})})}else Y.type===`publickey`&&q.authPK(Y.username,Y.key,t,(e,t)=>{let r=Y.key.sign(e,n);if(r instanceof Error)return r.message=`Error signing data with key: ${r.message}`,r.level=`client-authentication`,this.emit(`error`,r),ye();t(r)})},USERAUTH_INFO_REQUEST:(e,t,n,r)=>{if(Y.type===`keyboard-interactive`){if((Array.isArray(r)?r.length:0)===0){s&&s(`Client: Sending automatic USERAUTH_INFO_RESPONSE`),q.authInfoRes();return}Y.prompt(t,n,``,r,e=>{q.authInfoRes(e)})}},REQUEST_SUCCESS:(e,t)=>{l.length&&l.shift()(!1,t)},REQUEST_FAILURE:e=>{l.length&&l.shift()(!0)},GLOBAL_REQUEST:(e,t,n,r)=>{switch(t){case`hostkeys-00@openssh.com`:pe(this,r,(e,t)=>{e||this.emit(`hostkeys`,t)}),n&&q.requestSuccess();break;default:n&&q.requestFailure()}},CHANNEL_OPEN:(e,t)=>{ue(this,t)},CHANNEL_OPEN_CONFIRMATION:(e,t)=>{let n=this._chanMgr.get(t.recipient);if(typeof n!=`function`)return;let r=n.type===`sftp`,i={type:r?`session`:n.type,incoming:{id:t.recipient,window:R,packetSize:z,state:`open`},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:`open`}},a=r?new D(this,i,{debug:s}):new L(this,i);this._chanMgr.update(t.recipient,a),n(void 0,a)},CHANNEL_OPEN_FAILURE:(e,t,n,r)=>{let i=this._chanMgr.get(t);if(typeof i!=`function`)return;let a={reason:n,description:r};G(this,t,a,i)},CHANNEL_DATA:(e,t,n)=>{let r=this._chanMgr.get(t);if(!(typeof r!=`object`||!r)&&r.incoming.window!==0){if(r.incoming.window-=n.length,r.push(n)===!1){r._waitChanDrain=!0;return}r.incoming.window<=V&&B(r)}},CHANNEL_EXTENDED_DATA:(e,t,n,r)=>{if(r!==u)return;let i=this._chanMgr.get(t);if(!(typeof i!=`object`||!i)&&i.incoming.window!==0){if(i.incoming.window-=n.length,!i.stderr.push(n)){i._waitChanDrain=!0;return}i.incoming.window<=V&&B(i)}},CHANNEL_WINDOW_ADJUST:(e,t,n)=>{let r=this._chanMgr.get(t);typeof r!=`object`||!r||(r.outgoing.window+=n,r._waitWindow&&(r._waitWindow=!1,r._chunk?r._write(r._chunk,null,r._chunkcb):r._chunkcb?r._chunkcb():r._chunkErr?r.stderr._write(r._chunkErr,null,r._chunkcbErr):r._chunkcbErr&&r._chunkcbErr()))},CHANNEL_SUCCESS:(e,t)=>{let n=this._chanMgr.get(t);typeof n!=`object`||!n||(this._resetKA(),n._callbacks.length&&n._callbacks.shift()(!1))},CHANNEL_FAILURE:(e,t)=>{let n=this._chanMgr.get(t);typeof n!=`object`||!n||(this._resetKA(),n._callbacks.length&&n._callbacks.shift()(!0))},CHANNEL_REQUEST:(e,t,n,r,i)=>{let a=this._chanMgr.get(t);if(typeof a!=`object`||!a)return;let o=a._exit;if(o.code===void 0){switch(n){case`exit-status`:a.emit(`exit`,o.code=i);return;case`exit-signal`:a.emit(`exit`,o.code=null,o.signal=`SIG${i.signal}`,o.dump=i.coreDumped,o.desc=i.errorMessage);return}r&&e.channelFailure(a.outgoing.id)}},CHANNEL_EOF:(e,t)=>{let n=this._chanMgr.get(t);typeof n!=`object`||!n||n.incoming.state===`open`&&(n.incoming.state=`eof`,n.readable&&n.push(null),n.stderr.readable&&n.stderr.push(null))},CHANNEL_CLOSE:(e,t)=>{ee(this,t,this._chanMgr.get(t))}}});k.pause();let te=this.config.keepaliveInterval,ne=this.config.keepaliveCountMax,re=0,ie,ae=()=>{if(++re>ne){if(clearInterval(ie),k.readable){let e=Error(`Keepalive timeout`);e.level=`client-timeout`,this.emit(`error`,e),k.destroy()}return}W(k)?(l.push(J),q.ping()):clearInterval(ie)};function J(){te>0&&(re=0,clearInterval(ie),W(k)&&(ie=setInterval(ae,te)))}this._resetKA=J;let oe=(()=>{let e=!1;return()=>{if(!e&&(e=!0,ce&&!M)){let e=A(`Connection lost before handshake`,`protocol`,!0);this.emit(`error`,e)}}})(),se=(()=>{let e=!1;return()=>{e||(e=!0,ce=!0,s&&s(`Socket connected`),this.emit(`connect`),w.then(()=>{q.start(),k.on(`data`,e=>{try{q.parse(e,0,e.length)}catch(e){this.emit(`error`,e);try{W(k)&&k.end()}catch{}}}),k.stderr&&typeof k.stderr.resume==`function`&&k.stderr.resume(),k.resume()}).catch(e=>{this.emit(`error`,e);try{W(k)&&k.end()}catch{}}))}})(),ce=!1;k.on(`connect`,se).on(`timeout`,()=>{this.emit(`timeout`)}).on(`error`,e=>{s&&s(`Socket error: ${e.message}`),clearTimeout(this._readyTimeout),e.level=`client-socket`,this.emit(`error`,e)}).on(`end`,()=>{s&&s(`Socket ended`),oe(),q.cleanup(),clearTimeout(this._readyTimeout),clearInterval(ie),this.emit(`end`)}).on(`close`,()=>{s&&s(`Socket closed`),oe(),q.cleanup(),clearTimeout(this._readyTimeout),clearInterval(ie),this.emit(`close`);let e=l;l=this._callbacks=[];let t=Error(`No response from server`);for(let n=0;n<e.length;++n)e[n](t);this._chanMgr.cleanup(t)});let Y,le=null,de=null,he=[`none`];this.config.password!==void 0&&he.push(`password`),d!==void 0&&he.push(`publickey`),this._agent!==void 0&&he.push(`agent`),this.config.tryKeyboard&&he.push(`keyboard-interactive`),d!==void 0&&this.config.localHostname!==void 0&&this.config.localUsername!==void 0&&he.push(`hostbased`),Array.isArray(i)?i=fe(i):typeof i!=`function`&&(i=fe(he));let ge=!1,_e=e=>{if(!ge){if(ge=!0,e===!1){let e=Error(`All configured authentication methods failed`);e.level=`client-authentication`,this.emit(`error`,e),this.end();return}if(typeof e==`string`){let t=e;if(he.indexOf(t)===-1)return ve(`Authentication method not allowed: ${t}`);let n=this.config.username;switch(t){case`password`:e={type:t,username:n,password:this.config.password};break;case`publickey`:e={type:t,username:n,key:d};break;case`hostbased`:e={type:t,username:n,key:d,localHostname:this.config.localHostname,localUsername:this.config.localUsername};break;case`agent`:e={type:t,username:n,agentCtx:new P(this._agent)};break;case`keyboard-interactive`:e={type:t,username:n,prompt:(...e)=>this.emit(`keyboard-interactive`,...e)};break;case`none`:e={type:t,username:n};break;default:return ve(`Skipping unsupported authentication method: ${e}`)}}else if(typeof e!=`object`||!e)return ve(`Skipping invalid authentication attempt: ${e}`);else{let t=e.username;if(typeof t!=`string`)return ve(`Skipping invalid authentication attempt: ${e}`);let n=e.type;switch(n){case`password`:{let{password:r}=e;if(typeof r!=`string`&&!Buffer.isBuffer(r))return ve(`Skipping invalid password auth attempt`);e={type:n,username:t,password:r};break}case`publickey`:{let r=E(e.key,e.passphrase);if(r instanceof Error)return ve(`Skipping invalid key auth attempt`);if(!r.isPrivateKey())return ve(`Skipping non-private key`);e={type:n,username:t,key:r};break}case`hostbased`:{let{localHostname:r,localUsername:i}=e,a=E(e.key,e.passphrase);if(a instanceof Error||typeof r!=`string`||typeof i!=`string`)return ve(`Skipping invalid hostbased auth attempt`);if(!a.isPrivateKey())return ve(`Skipping non-private key`);e={type:n,username:t,key:a,localHostname:r,localUsername:i};break}case`agent`:{let r=e.agent;if(typeof r==`string`&&r.length)r=F(r);else if(!I(r))return ve(`Skipping invalid agent: ${e.agent}`);e={type:n,username:t,agentCtx:new P(r)};break}case`keyboard-interactive`:{let{prompt:r}=e;if(typeof r!=`function`)return ve(`Skipping invalid keyboard-interactive auth attempt`);e={type:n,username:t,prompt:r};break}case`none`:e={type:n,username:t};break;default:return ve(`Skipping unsupported authentication method: ${e}`)}}Y=e;try{let e=Y.username;switch(Y.type){case`password`:q.authPassword(e,Y.password);break;case`publickey`:{let t;if(Y.keyAlgos=me(this,Y.key,K),Y.keyAlgos)if(Y.keyAlgos.length)t=Y.keyAlgos[0][0];else return ve(`Skipping key authentication (no mutual hash algorithm)`);q.authPK(e,Y.key,t);break}case`hostbased`:{let t,n;if(Y.keyAlgos=me(this,Y.key,K),Y.keyAlgos)if(Y.keyAlgos.length)[t,n]=Y.keyAlgos[0];else return ve(`Skipping hostbased authentication (no mutual hash algorithm)`);q.authHostbased(e,Y.key,Y.localHostname,Y.localUsername,t,(e,t)=>{let r=Y.key.sign(e,n);if(r instanceof Error)return r.message=`Error while signing with key: ${r.message}`,r.level=`client-authentication`,this.emit(`error`,r),ye();t(r)});break}case`agent`:Y.agentCtx.init(e=>{if(e)return e.level=`agent`,this.emit(`error`,e),ye();be()});break;case`keyboard-interactive`:q.authKeyboard(e);break;case`none`:q.authNone(e);break}}finally{ge=!1}}};function ve(e){s&&s(e),process.nextTick(ye)}function ye(){ge=!1;let e=i(de,le,_e);ge||e===void 0||_e(e)}let be=()=>{if(Y.type===`agent`){let e=Y.agentCtx.nextKey();if(e===!1)s&&s(`Agent: No more keys left to try`),s&&s(`Client: agent auth failed`),ye();else{let t=Y.agentCtx.pos(),n;if(Y.keyAlgos=me(this,e,K),Y.keyAlgos)if(Y.keyAlgos.length)n=Y.keyAlgos[0][0];else{s&&s(`Agent: Skipping key #${t+1} (no mutual hash algorithm)`),be();return}s&&s(`Agent: Trying key #${t+1}`),q.authPK(Y.username,e,n)}}},xe=()=>{this.config.readyTimeout>0&&(this._readyTimeout=setTimeout(()=>{let e=Error(`Timed out while waiting for handshake`);e.level=`client-timeout`,this.emit(`error`,e),k.destroy()},this.config.readyTimeout))};if(e.sock)xe(),typeof k.connecting==`boolean`&&k.connecting||se();else{let t=this.config.host,n=this.config.forceIPv4,r=this.config.forceIPv6;s&&s(`Client: Trying ${t} on port ${this.config.port} ...`);let i=()=>{xe(),k.connect({host:t,port:this.config.port,localAddress:this.config.localAddress,localPort:this.config.localPort}),k.setMaxListeners(0),k.setTimeout(typeof e.timeout==`number`?e.timeout:0)};!n&&!r||n&&r?i():o(t,n?4:6,(e,r,a)=>{if(e){let r=Error(`Error while looking up ${n?`IPv4`:`IPv6`} address for '${t}': ${e}`);clearTimeout(this._readyTimeout),r.level=`client-dns`,this.emit(`error`,r),this.emit(`close`);return}t=r,i()})}return this}end(){return this._sock&&W(this._sock)&&(this._protocol.disconnect(_.BY_APPLICATION),this._sock.end()),this}destroy(){return this._sock&&W(this._sock)&&this._sock.destroy(),this}exec(e,t,n){if(!this._sock||!W(this._sock))throw Error(`Not connected`);typeof t==`function`&&(n=t,t={});let r={allowHalfOpen:t.allowHalfOpen!==!1};return ie(this,`session`,r,(r,i)=>{if(r){n(r);return}let a=[];function o(e){if(e){i.close(),n(e);return}a.length&&a.shift()()}(this.config.allowAgentFwd===!0||t&&t.agentForward===!0&&this._agent!==void 0)&&a.push(()=>oe(i,o)),typeof t==`object`&&t&&(typeof t.env==`object`&&t.env!==null&&Y(i,t.env),(typeof t.pty==`object`&&t.pty!==null||t.pty===!0)&&a.push(()=>J(i,t.pty,o)),(typeof t.x11==`object`&&t.x11!==null||t.x11===`number`||t.x11===!0)&&a.push(()=>ae(i,t.x11,o))),a.push(()=>ce(i,e,t,n)),a.shift()()}),this}shell(e,t,n){if(!this._sock||!W(this._sock))throw Error(`Not connected`);return typeof e==`function`?(n=e,e=t=void 0):typeof t==`function`&&(n=t,t=void 0),e&&(e.x11!==void 0||e.env!==void 0)&&(t=e,e=void 0),ie(this,`session`,(r,i)=>{if(r){n(r);return}let a=[];function o(e){if(e){i.close(),n(e);return}a.length&&a.shift()()}(this.config.allowAgentFwd===!0||t&&t.agentForward===!0&&this._agent!==void 0)&&a.push(()=>oe(i,o)),e!==!1&&a.push(()=>J(i,e,o)),typeof t==`object`&&t&&(typeof t.env==`object`&&t.env!==null&&Y(i,t.env),(typeof t.x11==`object`&&t.x11!==null||t.x11===`number`||t.x11===!0)&&a.push(()=>ae(i,t.x11,o))),a.push(()=>se(i,n)),a.shift()()}),this}subsys(e,t){if(!this._sock||!W(this._sock))throw Error(`Not connected`);return ie(this,`session`,(n,r)=>{if(n){t(n);return}le(r,e,(e,n)=>{if(e){t(e);return}t(void 0,n)})}),this}forwardIn(e,t,n){if(!this._sock||!W(this._sock))throw Error(`Not connected`);let r=typeof n==`function`;return r&&this._callbacks.push((r,i)=>{if(r){n(r===!0?Error(`Unable to bind to ${e}:${t}`):r);return}let a=t;t===0&&i&&i.length>=4&&(a=j(i,0),this._protocol._compatFlags&l.DYN_RPORT_BUG||(t=a)),this._forwarding[`${e}:${t}`]=a,n(void 0,a)}),this._protocol.tcpipForward(e,t,r),this}unforwardIn(e,t,n){if(!this._sock||!W(this._sock))throw Error(`Not connected`);let r=typeof n==`function`;return r&&this._callbacks.push(r=>{if(r){n(r===!0?Error(`Unable to unbind from ${e}:${t}`):r);return}delete this._forwarding[`${e}:${t}`],n()}),this._protocol.cancelTcpipForward(e,t,r),this}forwardOut(e,t,n,r,i){if(!this._sock||!W(this._sock))throw Error(`Not connected`);let a={srcIP:e,srcPort:t,dstIP:n,dstPort:r};return typeof i!=`function`&&(i=ne),ie(this,`direct-tcpip`,a,i),this}openssh_noMoreSessions(e){if(!this._sock||!W(this._sock))throw Error(`Not connected`);let t=typeof e==`function`;return!this.config.strictVendor||this.config.strictVendor&&te.test(this._remoteVer)?(t&&this._callbacks.push(t=>{if(t){e(t===!0?Error(`Unable to disable future sessions`):t);return}e()}),this._protocol.openssh_noMoreSessions(t),this):(t&&process.nextTick(e,Error(`strictVendor enabled and server is not OpenSSH or compatible version`)),this)}openssh_forwardInStreamLocal(e,t){if(!this._sock||!W(this._sock))throw Error(`Not connected`);let n=typeof t==`function`;return!this.config.strictVendor||this.config.strictVendor&&te.test(this._remoteVer)?(n&&this._callbacks.push(n=>{if(n){t(n===!0?Error(`Unable to bind to ${e}`):n);return}this._forwardingUnix[e]=!0,t()}),this._protocol.openssh_streamLocalForward(e,n),this):(n&&process.nextTick(t,Error(`strictVendor enabled and server is not OpenSSH or compatible version`)),this)}openssh_unforwardInStreamLocal(e,t){if(!this._sock||!W(this._sock))throw Error(`Not connected`);let n=typeof t==`function`;return!this.config.strictVendor||this.config.strictVendor&&te.test(this._remoteVer)?(n&&this._callbacks.push(n=>{if(n){t(n===!0?Error(`Unable to unbind from ${e}`):n);return}delete this._forwardingUnix[e],t()}),this._protocol.openssh_cancelStreamLocalForward(e,n),this):(n&&process.nextTick(t,Error(`strictVendor enabled and server is not OpenSSH or compatible version`)),this)}openssh_forwardOutStreamLocal(e,t){if(!this._sock||!W(this._sock))throw Error(`Not connected`);return typeof t!=`function`&&(t=ne),!this.config.strictVendor||this.config.strictVendor&&te.test(this._remoteVer)?(ie(this,`direct-streamlocal@openssh.com`,{socketPath:e},t),this):(process.nextTick(t,Error(`strictVendor enabled and server is not OpenSSH or compatible version`)),this)}sftp(e){if(!this._sock||!W(this._sock))throw Error(`Not connected`);return ie(this,`sftp`,(t,n)=>{if(t){e(t);return}le(n,`sftp`,(t,r)=>{if(t){e(t);return}function i(){n.removeListener(`ready`,a),n.removeListener(`error`,o),n.removeListener(`exit`,s),n.removeListener(`close`,s)}function a(){i(),e(void 0,n)}function o(t){i(),e(t)}function s(t,n){i();let r;r=typeof t==`number`?`Received exit code ${t} while establishing SFTP session`:n===void 0?`Received unexpected SFTP session termination`:`Received signal ${n} while establishing SFTP session`;let a=Error(r);a.code=t,a.signal=n,e(a)}n.on(`ready`,a).on(`error`,o).on(`exit`,s).on(`close`,s),n._init()})}),this}setNoDelay(e){return this._sock&&typeof this._sock.setNoDelay==`function`&&this._sock.setNoDelay(e),this}};function ie(e,t,n,r){let i=R,a=z;typeof n==`function`&&(r=n,n={});let o=(e,t)=>{r(e,t)};o.type=t;let s=e._chanMgr.add(o);if(s===-1){r(Error(`No free channels available`));return}switch(t){case`session`:case`sftp`:e._protocol.session(s,i,a);break;case`direct-tcpip`:e._protocol.directTcpip(s,i,a,n);break;case`direct-streamlocal@openssh.com`:e._protocol.openssh_directStreamLocal(s,i,a,n);break;default:throw Error(`Unsupported channel type: ${t}`)}}function ae(e,t,n){let r={single:!1,protocol:`MIT-MAGIC-COOKIE-1`,cookie:void 0,screen:0};typeof t==`function`?n=t:typeof t==`object`&&t&&(typeof t.single==`boolean`&&(r.single=t.single),typeof t.screen==`number`&&(r.screen=t.screen),typeof t.protocol==`string`&&(r.protocol=t.protocol),typeof t.cookie==`string`?r.cookie=t.cookie:Buffer.isBuffer(t.cookie)&&(r.cookie=t.cookie.hexSlice(0,t.cookie.length))),r.cookie===void 0&&(r.cookie=de());let i=typeof n==`function`;if(e.outgoing.state!==`open`){i&&n(Error(`Channel is not open`));return}i&&e._callbacks.push(t=>{if(t){n(t===!0?Error(`Unable to request X11`):t);return}e._hasX11=!0,++e._client._acceptX11,e.once(`close`,()=>{e._client._acceptX11&&--e._client._acceptX11}),n()}),e._client._protocol.x11Forward(e.outgoing.id,r,i)}function J(e,t,n){let r=24,i=80,a=640,o=480,s=`vt100`,c=null;typeof t==`function`?n=t:typeof t==`object`&&t&&(typeof t.rows==`number`&&(r=t.rows),typeof t.cols==`number`&&(i=t.cols),typeof t.width==`number`&&(a=t.width),typeof t.height==`number`&&(o=t.height),typeof t.term==`string`&&(s=t.term),typeof t.modes==`object`&&(c=t.modes));let l=typeof n==`function`;if(e.outgoing.state!==`open`){l&&n(Error(`Channel is not open`));return}l&&e._callbacks.push(e=>{if(e){n(e===!0?Error(`Unable to request a pseudo-terminal`):e);return}n()}),e._client._protocol.pty(e.outgoing.id,r,i,o,a,s,c,l)}function oe(e,t){let n=typeof t==`function`;if(e.outgoing.state!==`open`){n&&t(Error(`Channel is not open`));return}if(e._client._agentFwdEnabled){n&&t(!1);return}e._client._agentFwdEnabled=!0,e._callbacks.push(r=>{if(r){e._client._agentFwdEnabled=!1,n&&t(r===!0?Error(`Unable to request agent forwarding`):r);return}n&&t()}),e._client._protocol.openssh_agentForward(e.outgoing.id,!0)}function se(e,t){if(e.outgoing.state!==`open`){t(Error(`Channel is not open`));return}e._callbacks.push(n=>{if(n){t(n===!0?Error(`Unable to open shell`):n);return}e.subtype=`shell`,t(void 0,e)}),e._client._protocol.shell(e.outgoing.id,!0)}function ce(e,t,n,r){if(e.outgoing.state!==`open`){r(Error(`Channel is not open`));return}e._callbacks.push(t=>{if(t){r(t===!0?Error(`Unable to exec`):t);return}e.subtype=`exec`,e.allowHalfOpen=n.allowHalfOpen!==!1,r(void 0,e)}),e._client._protocol.exec(e.outgoing.id,t,!0)}function Y(e,t){if(e.outgoing.state!==`open`)return;let n=Object.keys(t||{});for(let r=0;r<n.length;++r){let i=n[r],a=t[i];e._client._protocol.env(e.outgoing.id,i,a,!1)}}function le(e,t,n){if(e.outgoing.state!==`open`){n(Error(`Channel is not open`));return}e._callbacks.push(r=>{if(r){n(r===!0?Error(`Unable to start subsystem: ${t}`):r);return}e.subtype=`subsystem`,n(void 0,e)}),e._client._protocol.subsystem(e.outgoing.id,t,!0)}function ue(e,t){let n=-1,r,i=()=>{let r={type:t.type,incoming:{id:n,window:R,packetSize:z,state:`open`},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:`open`}},i=new L(e,r);return e._chanMgr.update(n,i),e._protocol.channelOpenConfirm(t.sender,n,R,z),i},a=()=>{r===void 0&&(r=n===-1?d.RESOURCE_SHORTAGE:d.CONNECT_FAILED),n!==-1&&e._chanMgr.remove(n),e._protocol.channelOpenFail(t.sender,r,``)},o=()=>(n=e._chanMgr.add(),n===-1&&(r=d.RESOURCE_SHORTAGE,e.config.debug&&e.config.debug(`Client: Automatic rejection of incoming channel open: no channels available`)),n!==-1),s=t.data;switch(t.type){case`forwarded-tcpip`:{let t=e._forwarding[`${s.destIP}:${s.destPort}`];if(t!==void 0&&o()){s.destPort===0&&(s.destPort=t),e.emit(`tcp connection`,s,i,a);return}break}case`forwarded-streamlocal@openssh.com`:if(e._forwardingUnix[s.socketPath]!==void 0&&o()){e.emit(`unix connection`,s,i,a);return}break;case`auth-agent@openssh.com`:if(e._agentFwdEnabled&&typeof e._agent.getStream==`function`&&o()){e._agent.getStream((e,t)=>{if(e)return a();let n=i();n.pipe(t).pipe(n)});return}break;case`x11`:if(e._acceptX11!==0&&o()){e.emit(`x11`,s,i,a);return}break;default:r=d.UNKNOWN_CHANNEL_TYPE,e.config.debug&&e.config.debug(`Client: Automatic rejection of unsupported incoming channel open type: ${t.type}`)}r===void 0&&(r=d.ADMINISTRATIVELY_PROHIBITED,e.config.debug&&e.config.debug(`Client: Automatic rejection of unexpected incoming channel open for: `+t.type)),a()}let de=(()=>{let e=Buffer.allocUnsafe(16);return()=>(i(e,0,16),e.hexSlice(0,16))})();function fe(e){if(!Array.isArray(e))throw Error(`authList must be an array`);let t=0;return(n,r,i)=>t!==e.length&&e[t++]}function pe(e,t,n){if(!e._sock||!W(e._sock))return;if(typeof n!=`function`&&(n=ne),!Array.isArray(t))throw TypeError(`Invalid keys argument type`);let r=[];for(let e of t){let t=E(e);if(t instanceof Error)throw t;r.push(t)}if(!e.config.strictVendor||e.config.strictVendor&&te.test(e._remoteVer)){e._callbacks.push((t,i)=>{if(t){n(t===!0?Error(`Server failed to prove supplied keys`):t);return}let a=[],o=0;for(K.init(i,0);K.avail()&&o!==r.length;){let t=r[o++],n=t.getPublicSSH(),i=K.readString();q.init(i,0);let s=q.readString(!0),c=q.readString(),l;if(s!==t.type)if(t.type===`ssh-rsa`)switch(s){case`rsa-sha2-256`:l=`sha256`;break;case`rsa-sha2-512`:l=`sha512`;break;default:continue}else continue;let u=e._protocol._kex.sessionID,d=Buffer.allocUnsafe(37+u.length+4+n.length),f=0;N(d,29,f),d.utf8Write(`hostkeys-prove-00@openssh.com`,f+=4,29),N(d,u.length,f+=29),O(u,d,0,u.length,f+=4),N(d,n.length,f+=u.length),O(n,d,0,n.length,f+=4),(c=M(c,s))&&t.verify(d,c,l)===!0&&a.push(t)}q.clear(),K.clear(),n(null,a)}),e._protocol.openssh_hostKeysProve(r);return}process.nextTick(n,Error(`strictVendor enabled and server is not OpenSSH or compatible version`))}function me(e,t,n){switch(t.type){case`ssh-rsa`:if(e._protocol._compatFlags&l.IMPLY_RSA_SHA2_SIGALGS&&(n=Array.isArray(n)?[`rsa-sha2-256`,`rsa-sha2-512`,...n]:[`rsa-sha2-256`,`rsa-sha2-512`]),Array.isArray(n)){if(n.indexOf(`rsa-sha2-256`)!==-1)return[[`rsa-sha2-256`,`sha256`]];if(n.indexOf(`rsa-sha2-512`)!==-1)return[[`rsa-sha2-512`,`sha512`]];if(n.indexOf(`ssh-rsa`)===-1)return[]}return[[`ssh-rsa`,`sha1`]]}}t.exports=re})),vh=s((e=>{let{Agent:t}=require("http"),{Agent:n}=require("https"),{connect:r}=require("tls"),i;for(let r of[t,n]){class n extends r{constructor(e,t){super(t),this._connectCfg=e,this._defaultSrcIP=t&&t.srcIP||`localhost`}createConnection(e,t){let n=e&&e.localAddress||this._defaultSrcIP,a=e&&e.localPort||0,s=e.host,c=e.port;i===void 0&&(i=_h());let l=new i,u=!1;l.on(`ready`,()=>{l.forwardOut(n,a,s,c,(n,i)=>{if(u=!0,n)return l.end(),t(n);i.once(`close`,()=>l.end()),t(null,o(i,r,e))})}).on(`error`,t).on(`close`,()=>{u||t(Error(`Unexpected connection close`))}).connect(this._connectCfg)}}e[r===t?`SSHTTPAgent`:`SSHTTPSAgent`]=n}function a(){}function o(e,n,i){if(n===t)return e.setKeepAlive=a,e.setNoDelay=a,e.setTimeout=a,e.ref=a,e.unref=a,e.destroySoon=e.destroy,e;i.socket=e;let o=r(i),s=(()=>{let t=!1;return()=>{t||(t=!0,e.isPaused()&&e.resume())}})();return o.on(`end`,s).on(`close`,s),o}})),yh=s(((e,t)=>{let{Server:n}=require("net"),r=require("events"),{listenerCount:i}=r,{CHANNEL_OPEN_FAILURE:a,DEFAULT_CIPHER:o,DEFAULT_COMPRESSION:s,DEFAULT_KEX:c,DEFAULT_MAC:l,DEFAULT_SERVER_HOST_KEY:u,DISCONNECT_REASON:d,DISCONNECT_REASON_BY_VALUE:f,SUPPORTED_CIPHER:p,SUPPORTED_COMPRESSION:m,SUPPORTED_KEX:h,SUPPORTED_MAC:g,SUPPORTED_SERVER_HOST_KEY:_}=th(),{init:v}=ih(),{KexInit:y}=uh(),{parseKey:b}=ah(),x=fh(),{SFTP:S}=mh(),{writeUInt32BE:C}=nh(),{Channel:w,MAX_WINDOW:T,PACKET_SIZE:E,windowAdjust:D,WINDOW_THRESHOLD:O}=hh(),{ChannelManager:k,generateAlgorithmList:A,isWritable:j,onChannelOpenFailure:M,onCHANNEL_CLOSE:N}=gh();var P=class extends r{constructor(e,t,n,r,i){super(),this.username=this.user=t,this.service=n,this.method=r,this._initialResponse=!1,this._finalResponse=!1,this._multistep=!1,this._cbfinal=(e,t,n)=>{this._finalResponse||(this._finalResponse=!0,i(this,e,t,n))},this._protocol=e}accept(){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!0)}reject(e,t){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!1,e,t)}},F=class extends P{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._multistep=!0,this._cb=void 0,this._onInfoResponse=e=>{let t=this._cb;t&&(this._cb=void 0,t(e))},this.submethods=i,this.on(`abort`,()=>{this._cb&&this._cb(Error(`Authentication request aborted`))})}prompt(e,t,n,r){Array.isArray(e)||(e=[e]),typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`?(r=n,n=void 0):typeof r!=`function`&&(r=void 0);for(let t=0;t<e.length;++t)typeof e[t]==`string`&&(e[t]={prompt:e[t],echo:!0});this._cb=r,this._initialResponse=!0,this._protocol.authInfoReq(t,n,e)}},I=class extends P{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this.key={algo:i.keyAlgo,data:i.key},this.hashAlgo=i.hashAlgo,this.signature=i.signature,this.blob=i.blob}accept(){this.signature?P.prototype.accept.call(this):(this._initialResponse=!0,this._protocol.authPKOK(this.key.algo,this.key.data))}},L=class extends P{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this.key={algo:i.keyAlgo,data:i.key},this.hashAlgo=i.hashAlgo,this.signature=i.signature,this.blob=i.blob,this.localHostname=i.localHostname,this.localUsername=i.localUsername}},R=class extends P{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this.password=i,this._changeCb=void 0}requestChange(e,t){if(this._changeCb)throw Error(`Change request already in progress`);if(typeof e!=`string`)throw Error(`prompt argument must be a string`);if(typeof t!=`function`)throw Error(`Callback argument must be a function`);this._changeCb=t,this._protocol.authPasswdChg(e)}},z=class extends r{constructor(e,t,n){super(),this.type=`session`,this.subtype=void 0,this.server=!0,this._ending=!1,this._channel=void 0,this._chanInfo={type:`session`,incoming:{id:n,window:T,packetSize:E,state:`open`},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:`open`}}}},B=class extends r{constructor(e,t){if(super(),typeof e!=`object`||!e)throw Error(`Missing configuration object`);let r=Object.create(null),i=[],a=e.hostKeys;if(!Array.isArray(a))throw Error(`hostKeys must be an array`);let d=typeof e.algorithms==`object`&&e.algorithms!==null?e.algorithms:{},f=A(d.serverHostKey,u,_);for(let e=0;e<a.length;++e){let t;if(t=Buffer.isBuffer(a[e])||typeof a[e]==`string`?b(a[e]):b(a[e].key,a[e].passphrase),t instanceof Error)throw Error(`Cannot parse privateKey: ${t.message}`);if(Array.isArray(t)&&(t=t[0]),t.getPrivatePEM()===null)throw Error(`privateKey value contains an invalid private key`);if(!i.includes(t.type))if(t.type===`ssh-rsa`){let e=f.indexOf(`ssh-rsa`),n=f.indexOf(`rsa-sha2-256`),a=f.indexOf(`rsa-sha2-512`);e===-1&&(e=1/0),[e,n,a].sort(U).forEach(o=>{if(o===-1)return;let s;switch(o){case e:s=`ssh-rsa`;break;case n:s=`rsa-sha2-256`;break;case a:s=`rsa-sha2-512`;break;default:return}r[s]=t,i.push(s)})}else r[t.type]=t,i.push(t.type)}let v={kex:A(d.kex,c,h).concat([`kex-strict-s-v00@openssh.com`]),serverHostKey:i,cs:{cipher:A(d.cipher,o,p),mac:A(d.hmac,l,g),compress:A(d.compress,s,m),lang:[]},sc:void 0};v.sc=v.cs,typeof t==`function`&&this.on(`connection`,t);let x=typeof e.debug==`function`?e.debug:void 0,S=e.ident?Buffer.from(e.ident):void 0,C=new y(v);this._srv=new n(t=>{if(this._connections>=this.maxConnections){t.destroy();return}++this._connections,t.once(`close`,()=>{--this._connections});let n;if(x){let e=`[${process.hrtime().join(`.`)}] `;n=t=>{x(`${e}${t}`)}}new V(t,r,S,C,n,this,e)}).on(`error`,e=>{this.emit(`error`,e)}).on(`listening`,()=>{this.emit(`listening`)}).on(`close`,()=>{this.emit(`close`)}),this._connections=0,this.maxConnections=1/0}injectSocket(e){this._srv.emit(`connection`,e)}listen(...e){return this._srv.listen(...e),this}address(){return this._srv.address()}getConnections(e){return this._srv.getConnections(e),this}close(e){return this._srv.close(e),this}ref(){return this._srv.ref(),this}unref(){return this._srv.unref(),this}};B.KEEPALIVE_CLIENT_INTERVAL=15e3,B.KEEPALIVE_CLIENT_COUNT_MAX=3;var V=class extends r{constructor(e,t,n,r,o,s,c){super();let l=0,u=!1,p=[],m,h,g,_=[];this._sock=e,this._chanMgr=new k(this),this._debug=o,this.noMoreSessions=!1,this.authenticated=!1;function y(e){}this.on(`error`,y);let b=o?(e,t,n)=>{o(`Debug output from client: ${JSON.stringify(n)}`)}:void 0,A=typeof c.keepaliveInterval==`number`&&isFinite(c.keepaliveInterval)&&c.keepaliveInterval>0?c.keepaliveInterval:typeof B.KEEPALIVE_CLIENT_INTERVAL==`number`&&isFinite(B.KEEPALIVE_CLIENT_INTERVAL)&&B.KEEPALIVE_CLIENT_INTERVAL>0?B.KEEPALIVE_CLIENT_INTERVAL:-1,V=typeof c.keepaliveCountMax==`number`&&isFinite(c.keepaliveCountMax)&&c.keepaliveCountMax>=0?c.keepaliveCountMax:typeof B.KEEPALIVE_CLIENT_COUNT_MAX==`number`&&isFinite(B.KEEPALIVE_CLIENT_COUNT_MAX)&&B.KEEPALIVE_CLIENT_COUNT_MAX>=0?B.KEEPALIVE_CLIENT_COUNT_MAX:-1,H=0;A!==-1&&V!==-1&&(this.once(`ready`,()=>{let e=()=>{clearInterval(h)};this.on(`close`,e).on(`end`,e),h=setInterval(()=>{if(++H>V){clearInterval(h);let e=Error(`Keepalive timeout`);e.level=`client-timeout`,this.emit(`error`,e),this.end()}else U.ping()},A)}),g=()=>{h&&h.refresh(),H=0});let U=this._protocol=new x({server:!0,hostKeys:t,ident:n,offer:r,onPacket:g,greeting:c.greeting,banner:c.banner,onWrite:t=>{j(e)&&e.write(t)},onError:t=>{U._destruct||e.removeAllListeners(`data`),this.emit(`error`,t);try{e.end()}catch{}},onHeader:t=>{this.removeListener(`error`,y);let n={ip:e.remoteAddress,family:e.remoteFamily,port:e.remotePort,header:t};if(!s.emit(`connection`,this,n)){U.disconnect(d.BY_APPLICATION),e.end();return}t.greeting&&this.emit(`greeting`,t.greeting)},onHandshakeComplete:e=>{++l>1&&this.emit(`rekey`),this.emit(`handshake`,e)},debug:o,messageHandlers:{DEBUG:b,DISCONNECT:(t,n,r)=>{if(n!==d.BY_APPLICATION){r||(r=f[n],r===void 0&&(r=`Unexpected disconnection reason: ${n}`));let e=Error(r);e.code=n,this.emit(`error`,e)}e.end()},CHANNEL_OPEN:(e,t)=>{if(t.type===`session`&&this.noMoreSessions||!this.authenticated){let e=a.ADMINISTRATIVELY_PROHIBITED;return U.channelOpenFail(t.sender,e)}let n=-1,r,s=!1,c,l=()=>{s||(s=!0,r===void 0&&(r=n===-1?a.RESOURCE_SHORTAGE:a.CONNECT_FAILED),n!==-1&&this._chanMgr.remove(n),U.channelOpenFail(t.sender,r,``))},u=()=>(n=this._chanMgr.add(),n===-1&&(r=a.RESOURCE_SHORTAGE,o&&o(`Automatic rejection of incoming channel open: no channels available`)),n!==-1),d=t.data;switch(t.type){case`session`:if(i(this,`session`)&&u()){c=()=>{if(s)return;s=!0;let e=new z(this,t,n);return this._chanMgr.update(n,e),U.channelOpenConfirm(t.sender,n,T,E),e},this.emit(`session`,c,l);return}break;case`direct-tcpip`:if(i(this,`tcpip`)&&u()){c=()=>{if(s)return;s=!0;let e={type:void 0,incoming:{id:n,window:T,packetSize:E,state:`open`},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:`open`}},r=new w(this,e,{server:!0});return this._chanMgr.update(n,r),U.channelOpenConfirm(t.sender,n,T,E),r},this.emit(`tcpip`,c,l,d);return}break;case`direct-streamlocal@openssh.com`:if(i(this,`openssh.streamlocal`)&&u()){c=()=>{if(s)return;s=!0;let e={type:void 0,incoming:{id:n,window:T,packetSize:E,state:`open`},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:`open`}},r=new w(this,e,{server:!0});return this._chanMgr.update(n,r),U.channelOpenConfirm(t.sender,n,T,E),r},this.emit(`openssh.streamlocal`,c,l,d);return}break;default:r=a.UNKNOWN_CHANNEL_TYPE,o&&o(`Automatic rejection of unsupported incoming channel open type: ${t.type}`)}r===void 0&&(r=a.ADMINISTRATIVELY_PROHIBITED,o&&o(`Automatic rejection of unexpected incoming channel open for: ${t.type}`)),l()},CHANNEL_OPEN_CONFIRMATION:(e,t)=>{let n=this._chanMgr.get(t.recipient);if(typeof n!=`function`)return;let r={type:n.type,incoming:{id:t.recipient,window:T,packetSize:E,state:`open`},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:`open`}},i=new w(this,r,{server:!0});this._chanMgr.update(t.recipient,i),n(void 0,i)},CHANNEL_OPEN_FAILURE:(e,t,n,r)=>{let i=this._chanMgr.get(t);if(typeof i!=`function`)return;let a={reason:n,description:r};M(this,t,a,i)},CHANNEL_DATA:(e,t,n)=>{let r=this._chanMgr.get(t);if(!(typeof r!=`object`||!r)&&!(r.constructor===z&&(r=r._channel,!r))&&r.incoming.window!==0){if(r.incoming.window-=n.length,r.push(n)===!1){r._waitChanDrain=!0;return}r.incoming.window<=O&&D(r)}},CHANNEL_EXTENDED_DATA:(e,t,n,r)=>{},CHANNEL_WINDOW_ADJUST:(e,t,n)=>{let r=this._chanMgr.get(t);typeof r!=`object`||!r||r.constructor===z&&(r=r._channel,!r)||(r.outgoing.window+=n,r._waitWindow&&(r._waitWindow=!1,r._chunk?r._write(r._chunk,null,r._chunkcb):r._chunkcb?r._chunkcb():r._chunkErr?r.stderr._write(r._chunkErr,null,r._chunkcbErr):r._chunkcbErr&&r._chunkcbErr()))},CHANNEL_SUCCESS:(e,t)=>{let n=this._chanMgr.get(t);typeof n!=`object`||!n||n.constructor===z&&(n=n._channel,!n)||n._callbacks.length&&n._callbacks.shift()(!1)},CHANNEL_FAILURE:(e,t)=>{let n=this._chanMgr.get(t);typeof n!=`object`||!n||n.constructor===z&&(n=n._channel,!n)||n._callbacks.length&&n._callbacks.shift()(!0)},CHANNEL_REQUEST:(e,t,n,r,a)=>{let s=this._chanMgr.get(t);if(typeof s!=`object`||!s)return;let c=!1,l,u;if(s.constructor!==z){r&&U.channelFailure(s.outgoing.id);return}if(r&&(n!==`shell`&&n!==`exec`&&n!==`subsystem`&&(l=()=>{c||s._ending||s._channel||(c=!0,U.channelSuccess(s._chanInfo.outgoing.id))}),u=()=>{c||s._ending||s._channel||(c=!0,U.channelFailure(s._chanInfo.outgoing.id))}),s._ending){u&&u();return}switch(n){case`env`:if(i(s,`env`)){s.emit(`env`,l,u,{key:a.name,val:a.value});return}break;case`pty-req`:if(i(s,`pty`)){s.emit(`pty`,l,u,a);return}break;case`window-change`:i(s,`window-change`)?s.emit(`window-change`,l,u,a):u&&u();break;case`x11-req`:if(i(s,`x11`)){s.emit(`x11`,l,u,a);return}break;case`signal`:if(i(s,`signal`)){s.emit(`signal`,l,u,{name:a});return}break;case`auth-agent-req@openssh.com`:if(i(s,`auth-agent`)){s.emit(`auth-agent`,l,u);return}break;case`shell`:if(i(s,`shell`)){l=()=>{if(c||s._ending||s._channel)return;c=!0,r&&U.channelSuccess(s._chanInfo.outgoing.id);let e=new w(this,s._chanInfo,{server:!0});return e.subtype=s.subtype=n,s._channel=e,e},s.emit(`shell`,l,u);return}break;case`exec`:if(i(s,`exec`)){l=()=>{if(c||s._ending||s._channel)return;c=!0,r&&U.channelSuccess(s._chanInfo.outgoing.id);let e=new w(this,s._chanInfo,{server:!0});return e.subtype=s.subtype=n,s._channel=e,e},s.emit(`exec`,l,u,{command:a});return}break;case`subsystem`:{let e=a===`sftp`;if(l=()=>{if(c||s._ending||s._channel)return;c=!0,r&&U.channelSuccess(s._chanInfo.outgoing.id);let t;return e?t=new S(this,s._chanInfo,{server:!0,debug:o}):(t=new w(this,s._chanInfo,{server:!0}),t.subtype=s.subtype=`${n}:${a}`),s._channel=t,t},a===`sftp`){if(i(s,`sftp`)){s.emit(`sftp`,l,u);return}e=!1}if(i(s,`subsystem`)){s.emit(`subsystem`,l,u,{name:a});return}break}}o&&o(`Automatic rejection of incoming channel request: ${n}`),u&&u()},CHANNEL_EOF:(e,t)=>{let n=this._chanMgr.get(t);typeof n!=`object`||!n||n.constructor===z&&(n._ending||(n._ending=!0,n.emit(`eof`),n.emit(`end`)),n=n._channel,!n)||n.incoming.state===`open`&&(n.incoming.state=`eof`,n.readable&&n.push(null))},CHANNEL_CLOSE:(e,t)=>{let n=this._chanMgr.get(t);typeof n!=`object`||!n||n.constructor===z&&(n._ending=!0,n.emit(`close`),n=n._channel,!n)||N(this,t,n)},SERVICE_REQUEST:(t,n)=>{if(l===0||u||this.authenticated||n!==`ssh-userauth`){U.disconnect(d.SERVICE_NOT_AVAILABLE),e.end();return}u=!0,U.serviceAccept(n)},USERAUTH_REQUEST:(t,n,r,a,o)=>{if(l===0||this.authenticated||m&&(m.username!==n||m.service!==r)||a!==`password`&&a!==`publickey`&&a!==`hostbased`&&a!==`keyboard-interactive`&&a!==`none`||p.length===10){U.disconnect(d.PROTOCOL_ERROR),e.end();return}else if(r!==`ssh-connection`){U.disconnect(d.SERVICE_NOT_AVAILABLE),e.end();return}let s;switch(a){case`keyboard-interactive`:s=new F(U,n,r,a,o,W);break;case`publickey`:s=new I(U,n,r,a,o,W);break;case`hostbased`:s=new L(U,n,r,a,o,W);break;case`password`:if(m&&m instanceof R&&m._changeCb){let e=m._changeCb;m._changeCb=void 0,e(o.newPassword);return}s=new R(U,n,r,a,o,W);break;case`none`:s=new P(U,n,r,a,W);break}if(m)if(m._initialResponse)m._multistep&&!m._finalResponse&&(m._cleanup&&m._cleanup(),m.emit(`abort`));else return p.push(s);m=s,i(this,`authentication`)?this.emit(`authentication`,m):m.reject()},USERAUTH_INFO_RESPONSE:(e,t)=>{m&&m instanceof F&&m._onInfoResponse(t)},GLOBAL_REQUEST:(e,t,n,r)=>{let a={type:null,buf:null};function o(e,t){a.type=e,a.buf=t,G()}if(n&&_.push(a),(t===`tcpip-forward`||t===`cancel-tcpip-forward`||t===`no-more-sessions@openssh.com`||t===`streamlocal-forward@openssh.com`||t===`cancel-streamlocal-forward@openssh.com`)&&i(this,`request`)&&this.authenticated){let e,i;if(n){let n=!1;e=e=>{if(n)return;n=!0;let i;t===`tcpip-forward`&&r.bindPort===0&&typeof e==`number`&&(i=Buffer.allocUnsafe(4),C(i,e,0)),o(`SUCCESS`,i)},i=()=>{n||(n=!0,o(`FAILURE`))}}if(t===`no-more-sessions@openssh.com`){this.noMoreSessions=!0,e&&e();return}this.emit(`request`,e,i,t,r)}else n&&o(`FAILURE`)}}});e.pause(),v.then(()=>{U.start(),e.on(`data`,t=>{try{U.parse(t,0,t.length)}catch(t){this.emit(`error`,t);try{j(e)&&e.end()}catch{}}}),e.resume()}).catch(t=>{this.emit(`error`,t);try{j(e)&&e.end()}catch{}}),e.on(`error`,e=>{e.level=`socket`,this.emit(`error`,e)}).once(`end`,()=>{o&&o(`Socket ended`),U.cleanup(),this.emit(`end`)}).once(`close`,()=>{o&&o(`Socket closed`),U.cleanup(),this.emit(`close`);let e=Error(`No response from server`);this._chanMgr.cleanup(e)});let W=(e,t,n,r)=>{m===e&&!this.authenticated&&(t?(m=void 0,this.authenticated=!0,U.authSuccess(),p=[],this.emit(`ready`)):(U.authFailure(n,r),p.length&&(m=p.pop(),i(this,`authentication`)?this.emit(`authentication`,m):m.reject())))};function G(){for(;_.length>0&&_[0].type;){let e=_.shift();e.type===`SUCCESS`&&U.requestSuccess(e.buf),e.type===`FAILURE`&&U.requestFailure()}}}end(){return this._sock&&j(this._sock)&&(this._protocol.disconnect(d.BY_APPLICATION),this._sock.end()),this}x11(e,t,n){let r={originAddr:e,originPort:t};return H(this,`x11`,r,n),this}forwardOut(e,t,n,r,i){let a={boundAddr:e,boundPort:t,remoteAddr:n,remotePort:r};return H(this,`forwarded-tcpip`,a,i),this}openssh_forwardOutStreamLocal(e,t){let n={socketPath:e};return H(this,`forwarded-streamlocal@openssh.com`,n,t),this}rekey(e){let t;try{this._protocol.rekey()}catch(e){t=e}typeof e==`function`&&(t?process.nextTick(e,t):this.once(`rekey`,e))}setNoDelay(e){return this._sock&&typeof this._sock.setNoDelay==`function`&&this._sock.setNoDelay(e),this}};function H(e,t,n,r){let i=T,a=E;typeof n==`function`&&(r=n,n={});let o=(e,t)=>{r(e,t)};o.type=t;let s=e._chanMgr.add(o);if(s===-1){r(Error(`No free channels available`));return}switch(t){case`forwarded-tcpip`:e._protocol.forwardedTcpip(s,i,a,n);break;case`x11`:e._protocol.x11(s,i,a,n);break;case`forwarded-streamlocal@openssh.com`:e._protocol.openssh_forwardedStreamLocal(s,i,a,n);break;default:throw Error(`Unsupported channel type: ${t}`)}}function U(e,t){return e-t}t.exports=B,t.exports.IncomingClient=V})),bh=s(((e,t)=>{let{createCipheriv:n,generateKeyPair:r,generateKeyPairSync:i,getCurves:a,randomBytes:o}=require("crypto"),{Ber:s}=Qm(),c=eh().pbkdf,{CIPHER_INFO:l}=ih(),u=a(),d=new Map(Object.entries(l));function f(e,t){if(typeof e!=`string`)throw TypeError(`Key type must be a string`);let n={type:`spki`,format:`der`},r={type:`pkcs8`,format:`der`};switch(e.toLowerCase()){case`rsa`:{if(typeof t!=`object`||!t)throw TypeError(`Missing options object for RSA key`);let e=t.bits;if(!Number.isInteger(e))throw TypeError(`RSA bits must be an integer`);if(e<=0||e>16384)throw RangeError(`RSA bits must be non-zero and <= 16384`);return[`rsa`,{modulusLength:e,publicKeyEncoding:n,privateKeyEncoding:r}]}case`ecdsa`:{if(typeof t!=`object`||!t)throw TypeError(`Missing options object for ECDSA key`);if(!Number.isInteger(t.bits))throw TypeError(`ECDSA bits must be an integer`);let e;switch(t.bits){case 256:e=`prime256v1`;break;case 384:e=`secp384r1`;break;case 521:e=`secp521r1`;break;default:throw Error(`ECDSA bits must be 256, 384, or 521`)}if(!u.includes(e))throw Error(`Unsupported ECDSA bits value`);return[`ec`,{namedCurve:e,publicKeyEncoding:n,privateKeyEncoding:r}]}case`ed25519`:return[`ed25519`,{publicKeyEncoding:n,privateKeyEncoding:r}];default:throw Error(`Unsupported key type: ${e}`)}}function p(e,t,n){switch(e){case`rsa`:{let e=new s.Reader(n);if(e.readSequence(),e.readInt()!==0)throw Error(`Unsupported version in RSA private key`);if(e.readSequence(),e.readOID()!==`1.2.840.113549.1.1.1`)throw Error(`Bad RSA private OID`);if(e.readByte()!==s.Null)throw Error(`Malformed RSA private key (expected null)`);if(e.readByte()!==0)throw Error(`Malformed RSA private key (expected zero-length null)`);if(e=new s.Reader(e.readString(s.OctetString,!0)),e.readSequence(),e.readInt()!==0)throw Error(`Unsupported version in RSA private key`);let t=e.readString(s.Integer,!0),r=e.readString(s.Integer,!0),i=e.readString(s.Integer,!0),a=e.readString(s.Integer,!0),o=e.readString(s.Integer,!0);e.readString(s.Integer,!0),e.readString(s.Integer,!0);let c=e.readString(s.Integer,!0),l=Buffer.from(`ssh-rsa`),u=Buffer.allocUnsafe(4+l.length+4+t.length+4+r.length+4+i.length+4+c.length+4+a.length+4+o.length),d=0;u.writeUInt32BE(l.length,d+=0),u.set(l,d+=4),u.writeUInt32BE(t.length,d+=l.length),u.set(t,d+=4),u.writeUInt32BE(r.length,d+=t.length),u.set(r,d+=4),u.writeUInt32BE(i.length,d+=r.length),u.set(i,d+=4),u.writeUInt32BE(c.length,d+=i.length),u.set(c,d+=4),u.writeUInt32BE(a.length,d+=c.length),u.set(a,d+=4),u.writeUInt32BE(o.length,d+=a.length),u.set(o,d+=4);let f=Buffer.allocUnsafe(4+l.length+4+r.length+4+t.length);return d=0,f.writeUInt32BE(l.length,d+=0),f.set(l,d+=4),f.writeUInt32BE(r.length,d+=l.length),f.set(r,d+=4),f.writeUInt32BE(t.length,d+=r.length),f.set(t,d+=4),{sshName:l.toString(),priv:u,pub:f}}case`ec`:{let e=new s.Reader(t);if(e.readSequence(),e.readSequence(),e.readOID()!==`1.2.840.10045.2.1`)throw Error(`Bad ECDSA public OID`);e.readOID();let r=e.readString(s.BitString,!0);{let e=0;for(;e<r.length&&r[e]===0;++e);e>0&&(r=r.slice(e))}if(e=new s.Reader(n),e.readSequence(),e.readInt()!==0)throw Error(`Unsupported version in ECDSA private key`);if(e.readSequence(),e.readOID()!==`1.2.840.10045.2.1`)throw Error(`Bad ECDSA private OID`);let i=e.readOID(),a;switch(i){case`1.2.840.10045.3.1.7`:a=`nistp256`;break;case`1.3.132.0.34`:a=`nistp384`;break;case`1.3.132.0.35`:a=`nistp521`;break;default:throw Error(`Unsupported curve in ECDSA private key`)}if(e=new s.Reader(e.readString(s.OctetString,!0)),e.readSequence(),e.readInt()!==1)throw Error(`Unsupported version in ECDSA private key`);let o=Buffer.concat([Buffer.from([0]),e.readString(s.OctetString,!0)]),c=Buffer.from(`ecdsa-sha2-${a}`);a=Buffer.from(a);let l=Buffer.allocUnsafe(4+c.length+4+a.length+4+r.length+4+o.length),u=0;l.writeUInt32BE(c.length,u+=0),l.set(c,u+=4),l.writeUInt32BE(a.length,u+=c.length),l.set(a,u+=4),l.writeUInt32BE(r.length,u+=a.length),l.set(r,u+=4),l.writeUInt32BE(o.length,u+=r.length),l.set(o,u+=4);let d=Buffer.allocUnsafe(4+c.length+4+a.length+4+r.length);return u=0,d.writeUInt32BE(c.length,u+=0),d.set(c,u+=4),d.writeUInt32BE(a.length,u+=c.length),d.set(a,u+=4),d.writeUInt32BE(r.length,u+=a.length),d.set(r,u+=4),{sshName:c.toString(),priv:l,pub:d}}case`ed25519`:{let e=new s.Reader(t);if(e.readSequence(),e.readSequence(),e.readOID()!==`1.3.101.112`)throw Error(`Bad ED25519 public OID`);let r=e.readString(s.BitString,!0);{let e=0;for(;e<r.length&&r[e]===0;++e);e>0&&(r=r.slice(e))}if(e=new s.Reader(n),e.readSequence(),e.readInt()!==0)throw Error(`Unsupported version in ED25519 private key`);if(e.readSequence(),e.readOID()!==`1.3.101.112`)throw Error(`Bad ED25519 private OID`);e=new s.Reader(e.readString(s.OctetString,!0));let i=e.readString(s.OctetString,!0),a=Buffer.from(`ssh-ed25519`),o=Buffer.allocUnsafe(4+a.length+4+r.length+4+(i.length+r.length)),c=0;o.writeUInt32BE(a.length,c+=0),o.set(a,c+=4),o.writeUInt32BE(r.length,c+=a.length),o.set(r,c+=4),o.writeUInt32BE(i.length+r.length,c+=r.length),o.set(i,c+=4),o.set(r,c+=i.length);let l=Buffer.allocUnsafe(4+a.length+4+r.length);return c=0,l.writeUInt32BE(a.length,c+=0),l.set(a,c+=4),l.writeUInt32BE(r.length,c+=a.length),l.set(r,c+=4),{sshName:a.toString(),priv:o,pub:l}}}}function m(e,t,r,i){let a=`new`,s,l=``;if(typeof i==`object`&&i&&(typeof i.comment==`string`&&i.comment&&(l=i.comment),typeof i.format==`string`&&i.format&&(a=i.format),i.passphrase)){let e;if(typeof i.passphrase==`string`)e=Buffer.from(i.passphrase);else if(Buffer.isBuffer(i.passphrase))e=i.passphrase;else throw Error(`Invalid passphrase`);if(i.cipher===void 0)throw Error(`Missing cipher name`);let t=d.get(i.cipher);if(t===void 0)throw Error(`Invalid cipher name`);if(a===`new`){let n=16;if(i.rounds!==void 0){if(!Number.isInteger(i.rounds))throw TypeError(`rounds must be an integer`);i.rounds>0&&(n=i.rounds)}let r=Buffer.allocUnsafe(t.keyLen+t.ivLen),a=o(16);if(c(e,e.length,a,a.length,r,r.length,n)!==0)return Error(`Failed to generate information to encrypt key`);let l=Buffer.allocUnsafe(4+a.length+4);{let e=0;l.writeUInt32BE(a.length,e+=0),l.set(a,e+=4),l.writeUInt32BE(n,e+=a.length)}s={cipher:t,cipherName:i.cipher,kdfName:`bcrypt`,kdfOptions:l,key:r.slice(0,t.keyLen),iv:r.slice(t.keyLen)}}}switch(a){case`new`:{let i=`-----BEGIN OPENSSH PRIVATE KEY-----
227
+ `,a,c=Buffer.from(s?s.cipherName:`none`),u=Buffer.from(s?s.kdfName:`none`),d=s?s.kdfOptions:Buffer.alloc(0),f=s?s.cipher.blockLen:8,m=p(e,t,r),h=o(4),g=Buffer.from(l),_=8+m.priv.length+4+g.length,v=[];for(let e=1;(_+v.length)%f;++e)v.push(e&255);v=Buffer.from(v);let y=Buffer.allocUnsafe(_+v.length),b;{let e=0;y.set(h,e+=0),y.set(h,e+=4),y.set(m.priv,e+=4),y.writeUInt32BE(g.length,e+=m.priv.length),y.set(g,e+=4),y.set(v,e+=g.length)}if(s){let e={authTagLength:s.cipher.authLen},t=n(s.cipher.sslName,s.key,s.iv,e);t.setAutoPadding(!1),y=Buffer.concat([t.update(y),t.final()]),b=s.cipher.authLen>0?t.getAuthTag():Buffer.alloc(0),s.key.fill(0),s.iv.fill(0)}else b=Buffer.alloc(0);let x=Buffer.from(`openssh-key-v1\0`),S=Buffer.allocUnsafe(x.length+4+c.length+4+u.length+4+d.length+4+4+m.pub.length+4+y.length+b.length);{let e=0;S.set(x,e+=0),S.writeUInt32BE(c.length,e+=x.length),S.set(c,e+=4),S.writeUInt32BE(u.length,e+=c.length),S.set(u,e+=4),S.writeUInt32BE(d.length,e+=u.length),S.set(d,e+=4),S.writeUInt32BE(1,e+=d.length),S.writeUInt32BE(m.pub.length,e+=4),S.set(m.pub,e+=4),S.writeUInt32BE(y.length,e+=m.pub.length),S.set(y,e+=4),S.set(b,e+=y.length)}{let e=S.base64Slice(0,S.length),t=e.replace(/.{64}/g,`$&
228
+ `);e.length&63&&(t+=`
229
+ `),i+=t}{let e=m.pub.base64Slice(0,m.pub.length);a=`${m.sshName} ${e}${l?` ${l}`:``}`}return i+=`-----END OPENSSH PRIVATE KEY-----
230
+ `,{private:i,public:a}}default:throw Error(`Invalid output key format`)}}function h(){}t.exports={generateKeyPair:(e,t,n)=>{typeof t==`function`&&(n=t,t=void 0),typeof n!=`function`&&(n=h);let i=f(e,t);r(...i,(e,r,a)=>{if(e)return n(e);let o;try{o=m(i[0],r,a,t)}catch(e){return n(e)}n(null,o)})},generateKeyPairSync:(e,t)=>{let n=f(e,t),{publicKey:r,privateKey:a}=i(...n);return m(n[0],r,a,t)}}})),xh=s(((e,t)=>{let{AgentProtocol:n,BaseAgent:r,createAgent:i,CygwinAgent:a,OpenSSHAgent:o,PageantAgent:s}=oh(),{SSHTTPAgent:c,SSHTTPSAgent:l}=vh(),{parseKey:u}=ah(),{flagsToString:d,OPEN_MODE:f,STATUS_CODE:p,stringToFlags:m}=mh();t.exports={AgentProtocol:n,BaseAgent:r,createAgent:i,Client:_h(),CygwinAgent:a,HTTPAgent:c,HTTPSAgent:l,OpenSSHAgent:o,PageantAgent:s,Server:yh(),utils:{parseKey:u,...bh(),sftp:{flagsToString:d,OPEN_MODE:f,STATUS_CODE:p,stringToFlags:m}}}})),Sh=s(((e,t)=>{t.exports=require("stream")})),Ch=s(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=l(e,`string`);return typeof t==`symbol`?t:String(t)}function l(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=require("buffer").Buffer,d=require("util").inspect,f=d&&d.custom||`inspect`;function p(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),wh=s(((e,t)=>{function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,e)):process.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?process.nextTick(i,n):(n._writableState.errorEmitted=!0,process.nextTick(r,n,e)):process.nextTick(r,n,e):t?(process.nextTick(i,n),t(e)):process.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),Th=s(((e,t)=>{let n={};function r(e,t,r){r||=Error;function i(e,n,r){return typeof t==`string`?t:t(e,n,r)}class a extends r{constructor(e,t,n){super(i(e,t,n))}}a.prototype.name=r.name,a.prototype.code=e,n[e]=a}function i(e,t){if(Array.isArray(e)){let n=e.length;return e=e.map(e=>String(e)),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function a(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function o(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function s(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}r(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),r(`ERR_INVALID_ARG_TYPE`,function(e,t,n){let r;typeof t==`string`&&a(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let c;return c=o(e,` argument`)?`The ${e} ${r} ${i(t,`type`)}`:`The "${e}" ${s(e,`.`)?`property`:`argument`} ${r} ${i(t,`type`)}`,c+=`. Received type ${typeof n}`,c},TypeError),r(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),r(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),r(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),r(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),r(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),r(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),r(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),r(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),r(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),r(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=n})),Eh=s(((e,t)=>{var n=Th().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16*1024}t.exports={getHighWaterMark:i}})),Dh=s(((e,t)=>{typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),Oh=s(((e,t)=>{try{var n=require("util");if(typeof n.inherits!=`function`)throw``;t.exports=n.inherits}catch{t.exports=Dh()}})),kh=s(((e,t)=>{t.exports=require("util").deprecate})),Ah=s(((e,t)=>{t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){H(t,e)}}var r;T.WritableState=C;var i={deprecate:kh()},a=Sh(),o=require("buffer").Buffer,s=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=wh(),d=Eh().getHighWaterMark,f=Th().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;Oh()(T,a);function S(){}function C(e,t,i){r||=jh(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T&&e&&e._writableState instanceof C}})):w=function(e){return e instanceof this};function T(e){r||=jh();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),process.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),i?(x(e,i),process.nextTick(r,i),!1):!0}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=k(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&I(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return c}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function j(e,t,n,r,i){--t.pendingcb,n?(process.nextTick(i,r),process.nextTick(B,e,t),e._writableState.errorEmitted=!0,x(e,r)):(i(r),e._writableState.errorEmitted=!0,x(e,r),B(e,t))}function M(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function N(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=`function`)throw new h;if(M(n),t)j(e,n,r,t,i);else{var a=L(n)||e.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&I(e,n),r?process.nextTick(P,e,n,a,i):P(e,n,a,i)}}function P(e,t,n,r){n||F(e,t),t.pendingcb--,r(),B(e,t)}function F(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function I(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,A(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}T.prototype._write=function(e,t,n){n(new m(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||V(this,r,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function L(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function R(e,t){e._final(function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit(`prefinish`),B(e,t)})}function z(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(R,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function B(e,t){var n=L(t);if(n&&(z(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function V(e,t,n){t.ending=!0,B(e,t),n&&(t.finished?process.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}function H(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(e,t){t(e)}})),jh=s(((e,t)=>{var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=Lh(),i=Ah();Oh()(c,r);for(var a=n(i.prototype),o=0;o<a.length;o++){var s=a[o];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,l)))}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),Mh=s(((e,t)=>{
231
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
232
+ var n=require("buffer"),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),Nh=s((e=>{var t=Mh().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),Ph=s(((e,t)=>{var n=Th().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),Fh=s(((e,t)=>{var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=Ph(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){process.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),Ih=s(((e,t)=>{function n(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function r(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,c,`next`,e)}function c(e){n(o,i,a,s,c,`throw`,e)}s(void 0)})}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?i(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return t=s(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=c(e,`string`);return typeof t==`symbol`?t:String(t)}function c(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var l=Th().codes.ERR_INVALID_ARG_TYPE;function u(e,t,n){var i;if(t&&typeof t.next==`function`)i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new l(`iterable`,[`Iterable`],t);var o=new e(a({objectMode:!0},n)),s=!1;o._read=function(){s||(s=!0,c())};function c(){return u.apply(this,arguments)}function u(){return u=r(function*(){try{var e=yield i.next(),t=e.value;e.done?o.push(null):o.push(yield t)?c():s=!1}catch(e){o.destroy(e)}}),u.apply(this,arguments)}return o}t.exports=u})),Lh=s(((e,t)=>{t.exports=E;var n;E.ReadableState=T,require("events").EventEmitter;var r=function(e,t){return e.listeners(t).length},i=Sh(),a=require("buffer").Buffer,o=(typeof global<`u`?global:typeof window<`u`?window:typeof self<`u`?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=require("util"),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=Ch(),f=wh(),p=Eh().getHighWaterMark,m=Th().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;Oh()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=jh(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=Nh().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=jh(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,N(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0)if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):I(e,o)):O(e,o,t,!1);else r||(o.reading=!1,I(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&P(e)),I(e,t)}function k(e,t){var n;return!c(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=new h(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){y||=Nh().StringDecoder;var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=``;n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==``&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function j(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?G(this):P(this),null;if(e=M(e,t),e===0&&t.ended)return t.length===0&&G(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,u(`length less than watermark`,r)),t.ended||t.reading?(r=!1,u(`reading or ended`,r)):r&&(u(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(n,t)));var i=e>0?W(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),i!==null&&this.emit(`data`,i),i};function N(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function P(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,process.nextTick(F,e))}function F(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function I(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(u(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}E.prototype._read=function(e){S(this,new _(`_read()`))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u(`pipe count=%d opts=%j`,i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr?s:g;i.endEmitted?process.nextTick(a):n.once(`end`,a),e.on(`unpipe`,o);function o(e,t){u(`onunpipe`),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function s(){u(`onend`),e.end()}var c=R(n);e.on(`drain`,c);var l=!1;function d(){u(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,c),e.removeListener(`error`,p),e.removeListener(`unpipe`,o),n.removeListener(`end`,s),n.removeListener(`end`,g),n.removeListener(`data`,f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}n.on(`data`,f);function f(t){u(`ondata`);var r=e.write(t);u(`dest.write`,r),r===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&K(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function R(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,U(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=K(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?P(this):r.reading||process.nextTick(B,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&process.nextTick(z,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&process.nextTick(z,this),t};function z(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function B(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,V(this,e)),e.paused=!1,this};function V(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(H,e,t))}function H(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),U(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function U(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){u(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(E.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=Fh()),b(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=W,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function W(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function G(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(ee,t,e))}function ee(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=Ih()),x(E,e,t)});function K(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),Rh=s(((e,t)=>{t.exports=l;var n=Th().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=jh();Oh()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function u(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,n){d(e,t,n)}):d(this,null,null)}l.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new r(`_transform()`))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})};function d(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}})),zh=s(((e,t)=>{t.exports=r;var n=Rh();Oh()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),Bh=s(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=Th().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=Ph()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a(`streams`);var i,o=t.map(function(e,n){var a=n<t.length-1;return l(e,a,n>0,function(e){i||=e,e&&o.forEach(u),!a&&(o.forEach(u),r(i))})});return t.reduce(d)}t.exports=p})),Vh=s(((e,t)=>{var n=require("stream");process.env.READABLE_STREAM===`disable`&&n?(t.exports=n.Readable,Object.assign(t.exports,n),t.exports.Stream=n):(e=t.exports=Lh(),e.Stream=n||e,e.Readable=e,e.Writable=Ah(),e.Duplex=jh(),e.Transform=Rh(),e.PassThrough=zh(),e.finished=Ph(),e.pipeline=Bh())})),Hh=s(((e,t)=>{var n=Object.prototype.toString,r=typeof Buffer<`u`&&typeof Buffer.alloc==`function`&&typeof Buffer.allocUnsafe==`function`&&typeof Buffer.from==`function`;function i(e){return n.call(e).slice(8,-1)===`ArrayBuffer`}function a(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw RangeError(`'offset' is out of bounds`);if(n===void 0)n=i;else if(n>>>=0,n>i)throw RangeError(`'length' is out of bounds`);return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function o(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!Buffer.isEncoding(t))throw TypeError(`"encoding" must be a valid string encoding`);return r?Buffer.from(e,t):new Buffer(e,t)}function s(e,t,n){if(typeof e==`number`)throw TypeError(`"value" argument must not be a number`);return i(e)?a(e,t,n):typeof e==`string`?o(e,t):r?Buffer.from(e):new Buffer(e)}t.exports=s})),Uh=s((e=>{var t=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,``)},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return typeof e==`function`},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}(),n=Math.LN2,r=Math.abs,i=Math.floor,a=Math.log,o=Math.min,s=Math.pow,c=Math.round;function l(e){if(d&&u){var t=d(e),n;for(n=0;n<t.length;n+=1)u(e,t[n],{value:e[t[n]],writable:!1,enumerable:!1,configurable:!1})}}var u=Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{}),!0}catch{return!1}})()?Object.defineProperty:function(e,n,r){if(!e===Object(e))throw TypeError(`Object.defineProperty called on non-object`);return t.HasProperty(r,`get`)&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,n,r.get),t.HasProperty(r,`set`)&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,n,r.set),t.HasProperty(r,`value`)&&(e[n]=r.value),e},d=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw TypeError(`Object.getOwnPropertyNames called on non-object`);var n=[],r;for(r in e)t.HasOwnProperty(e,r)&&n.push(r);return n};function f(e){if(!u)return;if(e.length>1e5)throw RangeError(`Array too large for polyfill`);function t(t){u(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}var n;for(n=0;n<e.length;n+=1)t(n)}function p(e,t){var n=32-t;return e<<n>>n}function m(e,t){var n=32-t;return e<<n>>>n}function h(e){return[e&255]}function g(e){return p(e[0],8)}function _(e){return[e&255]}function v(e){return m(e[0],8)}function y(e){return e=c(Number(e)),[e<0?0:e>255?255:e&255]}function b(e){return[e>>8&255,e&255]}function x(e){return p(e[0]<<8|e[1],16)}function S(e){return[e>>8&255,e&255]}function C(e){return m(e[0]<<8|e[1],16)}function w(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function T(e){return p(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function E(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function D(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function O(e,t,c){var l=(1<<t-1)-1,u,d,f,p,m,h,g;function _(e){var t=i(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e===e?e===1/0||e===-1/0?(d=(1<<t)-1,f=0,u=+(e<0)):e===0?(d=0,f=0,u=+(1/e==-1/0)):(u=e<0,e=r(e),e>=s(2,1-l)?(d=o(i(a(e)/n),1023),f=_(e/s(2,d)*s(2,c)),f/s(2,c)>=2&&(d+=1,f=1),d>l?(d=(1<<t)-1,f=0):(d+=l,f-=s(2,c))):(d=0,f=_(e/s(2,1-l-c)))):(d=(1<<t)-1,f=s(2,c-1),u=0),m=[],p=c;p;--p)m.push(f%2?1:0),f=i(f/2);for(p=t;p;--p)m.push(d%2?1:0),d=i(d/2);for(m.push(+!!u),m.reverse(),h=m.join(``),g=[];h.length;)g.push(parseInt(h.substring(0,8),2)),h=h.substring(8);return g}function k(e,t,n){var r=[],i,a,o,c,l,u,d,f;for(i=e.length;i;--i)for(o=e[i-1],a=8;a;--a)r.push(o%2?1:0),o>>=1;return r.reverse(),c=r.join(``),l=(1<<t-1)-1,u=parseInt(c.substring(0,1),2)?-1:1,d=parseInt(c.substring(1,1+t),2),f=parseInt(c.substring(1+t),2),d===(1<<t)-1?f===0?u*(1/0):NaN:d>0?u*s(2,d-l)*(1+f/s(2,n)):f===0?u<0?-0:0:u*s(2,-(l-1))*(f/s(2,n))}function A(e){return k(e,11,52)}function j(e){return O(e,11,52)}function M(e){return k(e,8,23)}function N(e){return O(e,8,23)}(function(){var n=function(e){if(e=t.ToInt32(e),e<0)throw RangeError(`ArrayBuffer size is not a small enough positive integer`);this.byteLength=e,this._bytes=[],this._bytes.length=e;var n;for(n=0;n<this.byteLength;n+=1)this._bytes[n]=0;l(this)};e.ArrayBuffer=e.ArrayBuffer||n;var r=function(){};function i(e,i,a){var o=function(e,r,i){var a,s,c,u;if(!arguments.length||typeof arguments[0]==`number`){if(this.length=t.ToInt32(arguments[0]),i<0)throw RangeError(`ArrayBufferView size is not a small enough positive integer`);this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0}else if(typeof arguments[0]==`object`&&arguments[0].constructor===o)for(a=arguments[0],this.length=a.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)this._setter(c,a._getter(c));else if(typeof arguments[0]==`object`&&!(arguments[0]instanceof n||t.Class(arguments[0])===`ArrayBuffer`))for(s=arguments[0],this.length=t.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new n(this.byteLength),this.byteOffset=0,c=0;c<this.length;c+=1)u=s[c],this._setter(c,Number(u));else if(typeof arguments[0]==`object`&&(arguments[0]instanceof n||t.Class(arguments[0])===`ArrayBuffer`)){if(this.buffer=e,this.byteOffset=t.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(this.byteOffset%this.BYTES_PER_ELEMENT)throw RangeError(`ArrayBuffer length minus the byteOffset is not a multiple of the element size.`);if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw RangeError(`length of buffer minus byteOffset not a multiple of the element size`);this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=t.ToUint32(i),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`)}else throw TypeError(`Unexpected argument type(s)`);this.constructor=o,l(this),f(this)};return o.prototype=new r,o.prototype.BYTES_PER_ELEMENT=e,o.prototype._pack=i,o.prototype._unpack=a,o.BYTES_PER_ELEMENT=e,o.prototype._getter=function(e){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);if(e=t.ToUint32(e),!(e>=this.length)){var n=[],r,i;for(r=0,i=this.byteOffset+e*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,i+=1)n.push(this.buffer._bytes[i]);return this._unpack(n)}},o.prototype.get=o.prototype._getter,o.prototype._setter=function(e,n){if(arguments.length<2)throw SyntaxError(`Not enough arguments`);if(e=t.ToUint32(e),!(e>=this.length)){var r=this._pack(n),i,a;for(i=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;i<this.BYTES_PER_ELEMENT;i+=1,a+=1)this.buffer._bytes[a]=r[i]}},o.prototype.set=function(e,n){if(arguments.length<1)throw SyntaxError(`Not enough arguments`);var r,i,a,o,s,c,l,u,d,f;if(typeof arguments[0]==`object`&&arguments[0].constructor===this.constructor){if(r=arguments[0],a=t.ToUint32(arguments[1]),a+r.length>this.length)throw RangeError(`Offset plus length of array is out of range`);if(u=this.byteOffset+a*this.BYTES_PER_ELEMENT,d=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(f=[],s=0,c=r.byteOffset;s<d;s+=1,c+=1)f[s]=r.buffer._bytes[c];for(s=0,l=u;s<d;s+=1,l+=1)this.buffer._bytes[l]=f[s]}else for(s=0,c=r.byteOffset,l=u;s<d;s+=1,c+=1,l+=1)this.buffer._bytes[l]=r.buffer._bytes[c]}else if(typeof arguments[0]==`object`&&arguments[0].length!==void 0){if(i=arguments[0],o=t.ToUint32(i.length),a=t.ToUint32(arguments[1]),a+o>this.length)throw RangeError(`Offset plus length of array is out of range`);for(s=0;s<o;s+=1)c=i[s],this._setter(a+s,Number(c))}else throw TypeError(`Unexpected argument type(s)`)},o.prototype.subarray=function(e,n){function r(e,t,n){return e<t?t:e>n?n:e}e=t.ToInt32(e),n=t.ToInt32(n),arguments.length<1&&(e=0),arguments.length<2&&(n=this.length),e<0&&(e=this.length+e),n<0&&(n=this.length+n),e=r(e,0,this.length),n=r(n,0,this.length);var i=n-e;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,i)},o}var a=i(1,h,g),o=i(1,_,v),s=i(1,y,v),c=i(2,b,x),u=i(2,S,C),d=i(4,w,T),p=i(4,E,D),m=i(4,N,M),O=i(8,j,A);e.Int8Array=e.Int8Array||a,e.Uint8Array=e.Uint8Array||o,e.Uint8ClampedArray=e.Uint8ClampedArray||s,e.Int16Array=e.Int16Array||c,e.Uint16Array=e.Uint16Array||u,e.Int32Array=e.Int32Array||d,e.Uint32Array=e.Uint32Array||p,e.Float32Array=e.Float32Array||m,e.Float64Array=e.Float64Array||O})(),(function(){function n(e,n){return t.IsCallable(e.get)?e.get(n):e[n]}var r=function(){var t=new e.Uint16Array([4660]);return n(new e.Uint8Array(t.buffer),0)===18}(),i=function(n,r,i){if(arguments.length===0)n=new e.ArrayBuffer(0);else if(!(n instanceof e.ArrayBuffer||t.Class(n)===`ArrayBuffer`))throw TypeError(`TypeError`);if(this.buffer=n||new e.ArrayBuffer(0),this.byteOffset=t.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw RangeError(`byteOffset out of range`);if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=t.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw RangeError(`byteOffset and length reference an area beyond the end of the buffer`);l(this)};function a(i){return function(a,o){if(a=t.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);a+=this.byteOffset;var s=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),c=[],l;for(l=0;l<i.BYTES_PER_ELEMENT;l+=1)c.push(n(s,l));return!!o==!!r&&c.reverse(),n(new i(new e.Uint8Array(c).buffer),0)}}i.prototype.getUint8=a(e.Uint8Array),i.prototype.getInt8=a(e.Int8Array),i.prototype.getUint16=a(e.Uint16Array),i.prototype.getInt16=a(e.Int16Array),i.prototype.getUint32=a(e.Uint32Array),i.prototype.getInt32=a(e.Int32Array),i.prototype.getFloat32=a(e.Float32Array),i.prototype.getFloat64=a(e.Float64Array);function o(i){return function(a,o,s){if(a=t.ToUint32(a),a+i.BYTES_PER_ELEMENT>this.byteLength)throw RangeError(`Array index out of range`);var c=new i([o]),l=new e.Uint8Array(c.buffer),u=[],d,f;for(d=0;d<i.BYTES_PER_ELEMENT;d+=1)u.push(n(l,d));!!s==!!r&&u.reverse(),f=new e.Uint8Array(this.buffer,a,i.BYTES_PER_ELEMENT),f.set(u)}}i.prototype.setUint8=o(e.Uint8Array),i.prototype.setInt8=o(e.Int8Array),i.prototype.setUint16=o(e.Uint16Array),i.prototype.setInt16=o(e.Int16Array),i.prototype.setUint32=o(e.Uint32Array),i.prototype.setInt32=o(e.Int32Array),i.prototype.setFloat32=o(e.Float32Array),i.prototype.setFloat64=o(e.Float64Array),e.DataView=e.DataView||i})()})),Wh=s(((e,t)=>{var n=Vh().Writable,r=Oh(),i=Hh();if(typeof Uint8Array>`u`)var a=Uh().Uint8Array;else var a=Uint8Array;function o(e,t){if(!(this instanceof o))return new o(e,t);typeof e==`function`&&(t=e,e={}),e||={};var r=e.encoding,i=!1;r?(r=String(r).toLowerCase(),(r===`u8`||r===`uint8`)&&(r=`uint8array`)):i=!0,n.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=i,t&&this.on(`finish`,function(){t(this.getBody())}),this.body=[]}t.exports=o,r(o,n),o.prototype._write=function(e,t,n){this.body.push(e),n()},o.prototype.inferEncoding=function(e){var t=e===void 0?this.body[0]:e;return Buffer.isBuffer(t)?`buffer`:typeof Uint8Array<`u`&&t instanceof Uint8Array?`uint8array`:Array.isArray(t)?`array`:typeof t==`string`?`string`:Object.prototype.toString.call(t)===`[object Object]`?`object`:`buffer`},o.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding===`array`?d(this.body):this.encoding===`string`?l(this.body):this.encoding===`buffer`?u(this.body):this.encoding===`uint8array`?f(this.body):this.body)},Array.isArray;function s(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function c(e){return typeof e==`string`||s(e)||e&&typeof e.subarray==`function`}function l(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];typeof r==`string`||Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.isBuffer(e[0])?(t=Buffer.concat(t),t=t.toString(`utf8`)):t=t.join(``),t}function u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Buffer.isBuffer(r)?t.push(r):c(r)?t.push(i(r)):t.push(i(String(r)))}return Buffer.concat(t)}function d(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}function f(e){for(var t=0,n=0;n<e.length;n++)typeof e[n]==`string`&&(e[n]=i(e[n])),t+=e[n].length;for(var r=new a(t),n=0,o=0;n<e.length;n++)for(var s=e[n],c=0;c<s.length;c++)r[o++]=s[c];return r}})),Gh=s(((e,t)=>{function n(e,t){for(let n in t)Object.defineProperty(e,n,{value:t[n],enumerable:!0,configurable:!0});return e}function r(e,t,r){if(!e||typeof e==`string`)throw TypeError(`Please pass an Error to err-code`);r||={},typeof t==`object`&&(r=t,t=void 0),t!=null&&(r.code=t);try{return n(e,r)}catch{r.message=e.message,r.stack=e.stack;let t=function(){};return t.prototype=Object.create(Object.getPrototypeOf(e)),n(new t,r)}}t.exports=r})),Kh=s(((e,t)=>{function n(e,t){typeof t==`boolean`&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error(`RetryOperation timeout occurred`)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift();else return!1;var r=this,i=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n);return this._options.unref&&i.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log(`Using RetryOperation.try() is deprecated`),this.attempt(e)},n.prototype.start=function(e){console.log(`Using RetryOperation.start() is deprecated`),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var i=this._errors[r],a=i.message,o=(e[a]||0)+1;e[a]=o,o>=n&&(t=i,n=o)}return t}})),qh=s((e=>{var t=Kh();e.operation=function(n){return new t(e.timeouts(n),{forever:n&&n.forever,unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error(`minTimeout is greater than maxTimeout`);for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort(function(e,t){return e-t}),r},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*t.minTimeout*t.factor**+e);return r=Math.min(r,t.maxTimeout),r},e.wrap=function(t,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var i in r=[],t)typeof t[i]==`function`&&r.push(i);for(var a=0;a<r.length;a++){var o=r[a],s=t[o];t[o]=function(r){var i=e.operation(n),a=Array.prototype.slice.call(arguments,1),o=a.pop();a.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),o.apply(this,arguments))}),i.attempt(function(){r.apply(t,a)})}.bind(t,s),t[o].options=n}}})),Jh=s(((e,t)=>{t.exports=qh()})),Yh=s(((e,t)=>{var n=Gh(),r=Jh(),i=Object.prototype.hasOwnProperty;function a(e){return e&&e.code===`EPROMISERETRY`&&i.call(e,`retried`)}function o(e,t){var i,o;return typeof e==`object`&&typeof t==`function`&&(i=t,t=e,e=i),o=r.operation(t),new Promise(function(t,r){o.attempt(function(i){Promise.resolve().then(function(){return e(function(e){throw a(e)&&(e=e.retried),n(Error(`Retrying`),`EPROMISERETRY`,{retried:e})},i)}).then(t,function(e){a(e)&&(e=e.retried,o.retry(e||Error()))||r(e)})})})}t.exports=o})),Xh=s(((e,t)=>{t.exports={errorCode:{generic:`ERR_GENERIC_CLIENT`,connect:`ERR_NOT_CONNECTED`,badPath:`ERR_BAD_PATH`,permission:`EACCES`,notexist:`ENOENT`,notdir:`ENOTDIR`,badAuth:`ERR_BAD_AUTH`},targetType:{writeFile:1,readFile:2,writeDir:3,readDir:4,readObj:5,writeObj:6}}})),Zh=s(((e,t)=>{let n=require("fs"),r=require("path"),{errorCode:i}=Xh();function a(e,t,n){return r=>{if(e.endCalled||e.errorHandled){e.debugMsg(`${t} errorListener - ignoring handled error`);return}e.errorHandled=!0;let i=Error(`${t}: ${r.message}`);if(i.code=r.code,n)n(i);else throw i}}function o(e,t){return()=>{e.endCalled||e.errorHandled||e.closeHandled?e.debugMsg(`Global ${t} event: Ignoring expected and handled event`):(e.debugMsg(`Global ${t} event: Handling unexpected event`),e.sftp=void 0)}}function s(e,t,n){return function(){if(e.sftp=void 0,e.endCalled||e.endHandled||e.errorHandled){e.debugMsg(`${t} endListener - ignoring handled error`);return}e.endHandled=!0,e.debugMsg(`${t} Unexpected end event - ignoring`)}}function c(e,t,n){return function(){if(e.sftp=void 0,e.endCalled||e.closeHandled||e.errorHandled||e.endHandled){e.debugMsg(`${t} closeListener - ignoring handled error`);return}e.closeHandled=!0,e.debugMsg(`${t} Unexpected close event raised - ignoring`)}}function l(e,t,n){let r={end:s(e,t,n),close:c(e,t,n),error:a(e,t,n)};return e.on(`end`,r.end),e.on(`close`,r.close),e.on(`error`,r.error),e._resetEventFlags(),r}function u(e,t,n){try{e.removeListener(`end`,t.end),e.removeListener(`close`,t.close),e.removeListener(`error`,t.error)}catch(e){throw Error(`${n}: Error removing temp listeners: ${e.message}`)}}function d(e){let t=n.statSync(e,{throwIfNoEntry:!1});if(!t)return!1;if(t.isDirectory())return`d`;if(t.isFile())return`-`;{let t=Error(`Bad path: ${e}: target must be a file or directory`);throw t.code=i.badPath,t}}function f(e,t=`r`){let r=n.constants.F_OK|t===`w`?n.constants.W_OK:n.constants.R_OK;try{return n.accessSync(e,r),{status:!0,type:d(e),details:`access OK`,code:0}}catch(t){switch(t.errno){case-2:return{status:!1,type:null,details:`not exist`,code:-2};case-13:return{status:!1,type:d(e),details:`permission denied`,code:-13};case-20:return{status:!1,type:null,details:`parent not a directory`};default:return{status:!1,type:null,details:t.message}}}}function p(e){let{status:t,details:n,type:i}=f(e,`w`);if(!t&&n===`permission denied`)return{status:t,details:n,type:i};if(!t){let t=r.dirname(e),n=f(t,`w`);return n.status&&n.type!==`d`?{status:!1,details:`${t}: not a directory`,type:null}:n.status?{status:!0,details:`access OK`,type:null,code:0}:{status:n.status,details:`${t}: ${n.details}`,type:null}}return{status:t,details:n,type:i}}async function m(e,t){try{return t.startsWith(`..`)?`${await e.realPath(`..`)}/${t.slice(3)}`:t.startsWith(`.`)?`${await e.realPath(`.`)}/${t.slice(2)}`:t}catch(e){throw Error(`normalizeRemotePath: ${e.message}`)}}function h(e,t,n){if(!e.sftp){let e=Error(`${t}: No SFTP connection available`);if(e.code=i.connect,n)return n(e),!1;throw e}return!0}function g(e){return new Promise((t,n)=>{try{isNaN(e)||e<0?n(`Argument must be anumber >= 0`):setTimeout(()=>{t(!0)},e)}catch(e){n(e)}})}t.exports={globalListener:o,errorListener:a,endListener:s,closeListener:c,addTempListeners:l,removeTempListeners:u,haveLocalAccess:f,haveLocalCreate:p,normalizeRemotePath:m,localExists:d,haveConnection:h,sleep:g}})),Qh=u(s(((e,t)=>{let{Client:n}=xh(),r=require("fs"),i=Wh(),a=Yh(),{join:o,parse:s}=require("path"),{globalListener:c,addTempListeners:l,removeTempListeners:u,haveConnection:d,normalizeRemotePath:f,localExists:p,haveLocalAccess:m,haveLocalCreate:h}=Zh(),{errorCode:g}=Xh();t.exports=class{constructor(e){this.version=`9.0.4`,this.client=new n,this.sftp=void 0,this.clientName=e||`sftp`,this.endCalled=!1,this.errorHandled=!1,this.closeHandled=!1,this.endHandled=!1,this.remotePlatform=`unix`,this.debug=void 0,this.client.on(`close`,c(this,`close`)),this.client.on(`end`,c(this,`end`)),this.client.on(`error`,c(this,`error`))}debugMsg(e,t){this.debug&&(t?this.debug(`CLIENT[${this.clientName}]: ${e} ${JSON.stringify(t,null,` `)}`):this.debug(`CLIENT[${this.clientName}]: ${e}`))}fmtError(e,t=`sftp`,n,r){let i=``,a=``,o=r?` after ${r} ${r>1?`attempts`:`attempt`}`:``;if(e===void 0)i=`${t}: Undefined error - probably a bug!`,a=g.generic;else if(typeof e==`string`)i=`${t}: ${e}${o}`,a=n||g.generic;else if(e.custom)i=`${t}->${e.message}${o}`,a=e.code;else{switch(e.code){case`ENOTFOUND`:i=`${t}: Address lookup failed for host${o}`;break;case`ECONNREFUSED`:i=`${t}: Remote host refused connection${o}`;break;case`ECONNRESET`:i=`${t}: Remote host has reset the connection: ${e.message}${o}`;break;default:i=`${t}: ${e.message}${o}`}a=e.code?e.code:g.generic}let s=Error(i);return s.code=a,s.custom=!0,this.debugMsg(`${s.message} (${s.code})`),s}on(e,t){this.client.prependListener(e,t)}removeListener(e,t){this.client.removeListener(e,t)}_resetEventFlags(){this.closeHandled=!1,this.endHandled=!1,this.errorHandled=!1}getConnection(e){let t,n;return new Promise((r,i)=>{n=l(this,`getConnection`,i),t=()=>{this.debugMsg(`getConnection ready listener: got connection - promise resolved`),r(!0)},this.on(`ready`,t);try{this.client.connect(e)}catch(e){this.debugMsg(`getConnection: ${e.message}`),i(e)}}).finally(()=>{this.removeListener(`ready`,t),u(this,n,`getConnection`)})}getSftpChannel(){return new Promise((e,t)=>{this.client.sftp((n,r)=>{n?t(this.fmtError(n,`getSftpChannel`,n.code)):(this.sftp=r,e(r))})})}async connect(e){let t;try{if(t=l(this,`connect`),e.debug&&(this.debug=e.debug,this.debugMsg(`connect: Debugging turned on`),this.debugMsg(`ssh2-sftp-client Version: ${this.version} `,process.versions)),this.sftp)throw this.fmtError(`An existing SFTP connection is already defined`,`connect`,g.connect);let n={retries:e.retries??1,factor:e.factor??2,minTimeout:e.retry_minTimeout??25e3};return await a(n,async(t,n)=>{try{this.debugMsg(`connect: Connect attempt ${n}`),await this.getConnection(e)}catch(e){switch(e.code){case`ENOTFOUND`:case`ECONNREFUSED`:case`ERR_SOCKET_BAD_PORT`:throw e;case void 0:if(e.message.endsWith(`All configured authentication methods failed`)||e.message.startsWith(`Cannot parse privateKey`))throw e;t(e);break;default:t(e)}}}),await this.getSftpChannel()}catch(e){throw this.end(),e.custom?e:this.fmtError(e,`connect`)}finally{u(this,t,`connect`)}}realPath(e,t=!0){let n;return new Promise((r,i)=>{t&&(n=l(this,`realPath`,i)),this.debugMsg(`realPath -> ${e}`),this.sftp.realpath(e,(t,n)=>{t&&(t.code===2?(this.debugMsg(`realPath <- ""`),r(``)):(this.debugMsg(`${t.message} ${e}`,`realPath`),i(this.fmtError(`${t.message} ${e}`,`realPath`,t.code)))),this.debugMsg(`realPath <- ${n}`),r(n)})}).finally(()=>{t&&u(this,n,`realPath`)})}cwd(){return this.realPath(`.`)}_xstat(e,t,n=!0){let r;return new Promise((i,a)=>{let o=(e,n)=>{if(e)e.code===2||e.code===4?a(this.fmtError(`No such file: ${t}`,`_xstat`,g.notexist)):a(this.fmtError(`${e.message} ${t}`,`_xstat`,e.code));else{let e={mode:n.mode,uid:n.uid,gid:n.gid,size:n.size,accessTime:n.atime*1e3,modifyTime:n.mtime*1e3,isDirectory:n.isDirectory(),isFile:n.isFile(),isBlockDevice:n.isBlockDevice(),isCharacterDevice:n.isCharacterDevice(),isSymbolicLink:n.isSymbolicLink(),isFIFO:n.isFIFO(),isSocket:n.isSocket()};this.debugMsg(`_xstat: result = `,e),i(e)}};n&&(r=l(this,`_xstat`,a)),e===`stat`?this.sftp.stat(t,o):this.sftp.lstat(t,o)}).finally(()=>{n&&u(this,r,`_xstat`)})}async stat(e){try{return d(this,`stat`),await this._xstat(`stat`,e)}catch(e){throw e.custom?e:this.fmtError(e,`stat`,e.code)}}async lstat(e){try{return d(this,`lstat`),await this._xstat(`lstat`,e)}catch(e){throw e.custom?e:this.fmtError(e,`lstat`,e.code)}}async exists(e){this.debugMsg(`exists: remotePath = ${e}`);try{if(e===`.`)return`d`;let t=await this.lstat(e);return this.debugMsg(`exists: <- `,t),t.isDirectory?`d`:t.isSymbolicLink?`l`:t.isFile?`-`:!1}catch(e){if(e.code===g.notexist)return!1;throw e.custom?e:this.fmtError(e.message,`exists`,e.code)}}list(e,t,n=!0){let r;return new Promise((i,a)=>{n&&(r=l(this,`list`,a)),d(this,`list`,a)&&this.sftp.readdir(e,(n,r)=>{if(n)a(this.fmtError(`${n.message} ${e}`,`list`,n.code));else{let e=/-/gi,n=r.map(t=>({type:t.longname.slice(0,1),name:t.filename,size:t.attrs.size,modifyTime:t.attrs.mtime*1e3,accessTime:t.attrs.atime*1e3,rights:{user:t.longname.slice(1,4).replace(e,``),group:t.longname.slice(4,7).replace(e,``),other:t.longname.slice(7,10).replace(e,``)},owner:t.attrs.uid,group:t.attrs.gid,longname:t.longname}));i(t?n.filter(e=>t(e)):n)}})}).finally(()=>{n&&u(this,r,`list`)})}get(e,t,n,a=!0){let o,s,c;return new Promise((u,f)=>{if(a&&(o=l(this,`get`,f)),d(this,`get`,f)){if(n={readStreamOptions:{...n?.readStreamOptions,autoClose:!0},writeStreamOptions:{...n?.writeStreamOptions,autoClose:!0},pipeOptions:{...n?.pipeOptions,end:!0}},s=this.sftp.createReadStream(e,n.readStreamOptions),s.once(`error`,n=>{t&&typeof t!=`string`&&!t.destroyed&&t.destroy(),f(this.fmtError(`${n.message} ${e}`,`get`,n.code))}),t===void 0)this.debugMsg(`get resolving buffer of data`),c=i(e=>{u(e)});else if(typeof t==`string`){this.debugMsg(`get returning local file`);let e=h(t);if(e.status)c=r.createWriteStream(t,n.writeStreamOptions);else{f(this.fmtError(`Bad path: ${t}: ${e.details}`,`get`,e.code));return}}else this.debugMsg(`get: returning data into supplied stream`),c=t;c.once(`error`,e=>{f(this.fmtError(`${e.message} ${typeof t==`string`?t:`<stream>`}`,`get`,e.code))}),s.once(`end`,()=>{typeof t==`string`?(this.debugMsg(`get: resolving with dst filename`),u(t)):t!==void 0&&(this.debugMsg(`get: resolving with writer stream object`),u(c))}),s.pipe(c,n.pipeOptions)}}).finally(()=>{a&&u(this,o,`get`)})}_fastGet(e,t,n,r=!0){let i;return new Promise((a,o)=>{r&&(i=l(this,`_fastGet`,o)),d(this,`_fastGet`,o)&&this.sftp.fastGet(e,t,n,n=>{n&&o(this.fmtError(`${n.message} Remote: ${e} Local: ${t}`)),a(`${e} was successfully download to ${t}!`)})}).finally(()=>{r&&u(this,i,`_fastGet`)})}async fastGet(e,t,n){try{let r=await this.exists(e);if(r!==`-`){let t=`${r?`Not a regular file`:`No such file `} ${e}`;throw this.fmtError(t,`fastGet`,g.badPath)}let i=h(t);if(!i.status)throw this.fmtError(`Bad path: ${t}: ${i.details}`,`fastGet`,g.badPath);return await this._fastGet(e,t,n)}catch(e){throw this.fmtError(e,`fastGet`)}}_fastPut(e,t,n,r=!0){let i;return new Promise((a,o)=>{r&&(i=l(this,`_fastPut`,o)),d(this,`_fastPut`,o)&&this.sftp.fastPut(e,t,n,n=>{n&&o(this.fmtError(`${n.message} Local: ${e} Remote: ${t}`,`fastPut`,n.code)),a(`${e} was successfully uploaded to ${t}!`)})}).finally(()=>{r&&u(this,i,`_fastPut`)})}async fastPut(e,t,n){try{this.debugMsg(`fastPut -> local ${e} remote ${t}`);let r=m(e);if(!r.status)throw this.fmtError(`Bad path: ${e}: ${r.details}`,`fastPut`,r.code);if(r.status&&p(e)===`d`)throw this.fmtError(`Bad path: ${e} not a regular file`,`fastgPut`,g.badPath);return await this._fastPut(e,t,n)}catch(e){throw e.custom?e:this.fmtError(e.message,`fastPut`,e.code)}}_put(e,t,n,i=!0){let a,o,s;return new Promise((c,u)=>{i&&(a=l(this,`_put`,u)),n={readStreamOptions:{...n?.readStreamOptions,autoClose:!0},writeStreamOptions:{...n?.writeStreamOptions,autoClose:!0},pipeOptions:{...n?.pipeOptions,end:!0}},d(this,`_put`,u)&&(o=this.sftp.createWriteStream(t,n.writeStreamOptions),o.once(`error`,e=>{u(this.fmtError(`Write stream error: ${e.message} ${t}`,`_put`,e.code))}),o.once(`close`,()=>{c(`Uploaded data stream to ${t}`)}),e instanceof Buffer?(this.debugMsg(`put source is a buffer`),o.end(e)):(s=typeof e==`string`?r.createReadStream(e,n.readStreamOptions):e,s.once(`error`,t=>{u(this.fmtError(`Read stream error: ${t.message} ${typeof e==`string`?e:`<stream>`}`,`_put`,t.code))}),s.pipe(o,n.pipeOptions)))}).finally(()=>{i&&u(this,a,`_put`)})}async put(e,t,n){try{if(typeof e==`string`){let t=m(e);if(!t.status)throw this.fmtError(`Bad path: ${e} ${t.details}`,`put`,t.code)}return await this._put(e,t,n)}catch(e){throw e.custom?e:this.fmtError(`Re-thrown: ${e.message}`,`put`,e.code)}}_append(e,t,n,r=!0){let i;return new Promise((a,o)=>{if(r&&(i=l(this,`_append`,o)),d(this,`_append`,o)){this.debugMsg(`append -> remote: ${t} `,n),n.flags=`a`;let r=this.sftp.createWriteStream(t,n);r.on(`error`,e=>{o(this.fmtError(`${e.message} ${t}`,`append`,e.code))}),r.on(`close`,()=>{a(`Appended data to ${t}`)}),e instanceof Buffer?(r.write(e),r.end()):e.pipe(r)}}).finally(()=>{r&&u(this,i,`_append`)})}async append(e,t,n={}){try{if(typeof e==`string`)throw this.fmtError(`Cannot append one file to another`,`append`,g.badPath);let r=await this.exists(t);if(r&&r===`d`)throw this.fmtError(`Bad path: ${t}: cannot append to a directory`,`append`,g.badPath);await this._append(e,t,n)}catch(e){throw e.custom?e:this.fmtError(e.message,`append`,e.code)}}_doMkdir(e,t=!0){let n;return new Promise((r,i)=>{t&&(n=l(this,`_doMkdir`,i)),this.sftp.mkdir(e,t=>{t?t.code===4?i(this.fmtError(`Bad path: ${e} permission denied`,`_doMkdir`,g.badPath)):t.code===2?i(this.fmtError(`Bad path: ${e} parent not a directory or not exist`,`_doMkdir`,g.badPath)):i(this.fmtError(`${t.message} ${e}`,`_doMkdir`,t.code)):r(`${e} directory created`)})}).finally(()=>{t&&u(this,n,`_doMkdir`)})}async _mkdir(e,t){try{let n=await f(this,e),r=await this.exists(n);if(r&&r!==`d`)throw this.fmtError(`Bad path: ${n} already exists as a file`,`_mkdir`,g.badPath);if(r)return`${n} already exists`;if(!t)return await this._doMkdir(n);let i=s(n).dir;if(i){let e=await this.exists(i);if(!e)await this._mkdir(i,!0);else if(e!==`d`)throw this.fmtError(`Bad path: ${i} not a directory`,`_mkdir`,g.badPath)}return await this._doMkdir(n)}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,`_mkdir`,t.code)}}async mkdir(e,t=!1){try{return d(this,`mkdir`),await this._mkdir(e,t)}catch(e){throw this.fmtError(`${e.message}`,`mkdir`,e.code)}}async rmdir(e,t=!1){let n=e=>{let t;return new Promise((n,r)=>{t=l(this,`_rmdir`,r),this.debugMsg(`_rmdir: dir = ${e}`),this.sftp.rmdir(e,t=>{t&&r(this.fmtError(`${t.message} ${e}`,`rmdir`,t.code)),n(`Successfully removed directory`)})}).finally(()=>{u(this,t,`_rmdir`)})},r=(e,t)=>{let n;return new Promise((r,i)=>{n=l(this,`_delFiles`,i),this.debugMsg(`_delFiles: path = ${e} fileList = ${t}`);let a=[];for(let n of t)a.push(this.delete(`${e}/${n.name}`,!0,!1));r(a)}).then(e=>Promise.all(e)).finally(()=>{u(this,n,`_delFiles`)})};try{this.debugMsg(`rmdir: dir = ${e} recursive = ${t}`);let i=await f(this,e),a=await this.exists(i);if(this.debugMsg(`rmdir: ${i} existStatus = ${a}`),!a)throw this.fmtError(`Bad Path: ${e}: No such directory`,`rmdir`,g.badPath);if(a!==`d`)throw this.fmtError(`Bad Path: ${e}: Not a directory`,`rmdir`,g.badPath);if(!t)return this.debugMsg(`rmdir: non-recursive - just try to remove it`),await n(i);let o=await this.list(i);if(this.debugMsg(`rmdir: listing count = ${o.length}`),!o.length)return this.debugMsg(`rmdir: No sub dir or files, just rmdir`),await n(i);let s=o.filter(e=>e.type!==`d`);this.debugMsg(`rmdir: dir content files to remove = ${s.length}`);let c=o.filter(e=>e.type===`d`);this.debugMsg(`rmdir: sub-directories to remove = ${c.length}`),await r(i,s);for(let e of c)await this.rmdir(`${i}/${e.name}`,!0);return await n(i),`Successfully removed directory`}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,`rmdir`,t.code)}}delete(e,t=!1,n=!0){let r;return new Promise((i,a)=>{n&&(r=l(this,`delete`,a)),this.sftp.unlink(e,n=>{n&&(t&&n.code===2?i(`Successfully deleted ${e}`):a(this.fmtError(`${n.message} ${e}`,`delete`,n.code))),i(`Successfully deleted ${e}`)})}).finally(()=>{n&&u(this,r,`delete`)})}rename(e,t,n=!0){let r;return new Promise((i,a)=>{n&&(r=l(this,`rename`,a)),d(this,`rename`,a)&&this.sftp.rename(e,t,n=>{n&&a(this.fmtError(`${n.message} From: ${e} To: ${t}`,`_rename`,n.code)),i(`Successfully renamed ${e} to ${t}`)})}).finally(()=>{n&&u(this,r,`rename`)})}posixRename(e,t,n=!0){let r;return new Promise((i,a)=>{n&&(r=l(this,`posixRename`,a)),d(this,`posixRename`,a)&&this.sftp.ext_openssh_rename(e,t,n=>{n&&a(this.fmtError(`${n.message} From: ${e} To: ${t}`,`_posixRename`,n.code)),i(`Successful POSIX rename ${e} to ${t}`)})}).finally(()=>{u(this,r,`posixRename`)})}chmod(e,t,n=!0){let r;return new Promise((i,a)=>{n&&(r=l(this,`chmod`,a)),d(this,`chmod`,a)&&this.sftp.chmod(e,t,t=>{t&&a(this.fmtError(`${t.message} ${e}`,`_chmod`,t.code)),i(`Successfully change file mode`)})}).finally(()=>{n&&u(this,r,`chmod`)})}async uploadDir(e,t,n){let i=async e=>{let t=await f(this,e),n=await this.exists(t);if(n&&n!==`d`)throw this.fmtError(`Bad path ${t} Not a directory`,`getRemoteStatus`,g.badPath);return{remoteDir:t,remoteStatus:n}},a=e=>{let t=p(e);if(!t)throw this.fmtError(`Bad path: ${e} not exist`,`getLocalStatus`,g.badPath);if(t!==`d`)throw this.fmtError(`Bad path: ${e}: not a directory`,`getLocalStatus`,g.badPath);return t},s=(e,t,n,r)=>{let i;return new Promise((a,s)=>{i=l(this,`uploadFiles`,s);let c=[];for(let i of n){let n=o(e,i.name),a=`${t}/${i.name}`;i.isFile()?(r?c.push(this._fastPut(n,a,null,!1)):c.push(this._put(n,a,null,!1)),this.client.emit(`upload`,{source:n,destination:a})):this.debugMsg(`uploadFiles: File ignored: ${i.name} not a regular file`)}a(Promise.all(c))}).then(e=>Promise.all(e)).finally(()=>{u(this,i,s)})};try{d(this,`uploadDir`),this.debugMsg(`uploadDir: srcDir = ${e} dstDir = ${t} options = ${n}`);let{remoteDir:c,remoteStatus:l}=await i(t);this.debugMsg(`uploadDir: remoteDir = ${c} remoteStatus = ${l}`),a(e),l||await this._mkdir(c,!0);let u=r.readdirSync(e,{encoding:`utf8`,withFileTypes:!0});this.debugMsg(`uploadDir: dirEntries = ${u}`),n?.filter&&(u=u.filter(t=>n.filter(o(e,t.name),t.isDirectory())));let f=u.filter(e=>e.isDirectory()),p=u.filter(e=>!e.isDirectory());this.debugMsg(`uploadDir: dirUploads = ${f}`),this.debugMsg(`uploadDir: fileUploads = ${p}`),await s(e,c,p,n?.useFastput);for(let t of f){let r=o(e,t.name),i=`${c}/${t.name}`;await this.uploadDir(r,i,n)}return`${e} uploaded to ${t}`}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,`uploadDir`,t.code)}}async downloadDir(e,t,n={filter:null,useFastget:!1}){let i=async(e,t)=>{try{let n=await this.list(e);return t?n.filter(n=>t(`${e}/${n.name}`,n.type===`d`)):n}catch(e){throw e.custom?e:this.fmtError(e.message,`_getDownloadList`,e.code)}},a=e=>{try{let n=h(e);if(!n.status&&n.details===`permission denied`)throw this.fmtError(`Bad path: ${e}: ${n.details}`,`prepareDestination`,n.code);if(n.status&&!n.type)r.mkdirSync(e,{recursive:!0});else if(n.status&&n.type!==`d`)throw this.fmtError(`Bad path: ${t}: not a directory`,`_prepareDestination`,g.badPath)}catch(e){throw e.custom?e:this.fmtError(e.message,`_prepareDestination`,e.code)}},s=(e,t,n,r)=>{let i;return new Promise((a,s)=>{i=l(this,`_downloadFIles`,s);let c=[];for(let i of n){let n=`${e}/${i.name}`,a=o(t,i.name);r?c.push(this.fastGet(n,a,!1)):c.push(this.get(n,a,!1)),this.client.emit(`download`,{source:n,destination:a})}return a(Promise.all(c))}).finally(()=>{u(this,i,`_downloadFiles`)})};try{d(this,`downloadDir`);let r=await i(e,n.filter);a(t);let c=r.filter(e=>e.type!==`d`);c.length&&await s(e,t,c,n.useFastget);let l=r.filter(e=>e.type===`d`);for(let n of l){let r=`${e}/${n.name}`,i=o(t,n.name);await this.downloadDir(r,i)}return`${e} downloaded to ${t}`}catch(t){throw t.custom?t:this.fmtError(`${t.message}: ${e}`,`downloadDir`,t.code)}}createReadStream(e,t){let n;try{return n=l(this,`createReadStream`),d(this,`createReadStream`),this.sftp.createReadStream(e,t)}catch(e){throw e.custom?e:this.fmtError(e.message,`createReadStream`,e.code)}finally{u(this,n,`createReadStreame`)}}createWriteStream(e,t){let n;try{return n=l(this,`createWriteStream`),d(this,`createWriteStream`),this.sftp.createWriteStream(e,t)}catch(e){throw e.custom?e:this.fmtError(e.message,`createWriteStream`,e.code)}finally{u(this,n,`createWriteStream`)}}_rcopy(e,t){return new Promise((n,r)=>{let i=this.sftp.createWriteStream(t),a=this.sftp.createReadStream(e);i.on(`error`,e=>{r(this.fmtError(`${e.message} ${t}`,`_rcopy`))}),a.on(`error`,t=>{r(this.fmtError(`${t.message} ${e}`,`_rcopy`))}),i.on(`close`,()=>{n(`${e} copied to ${t}`)}),a.pipe(i)})}async rcopy(e,t){let n;try{n=l(this,`rcopy`),d(this,`rcopy`);let r=await f(this,e),i=await this.exists(r);if(!i)throw this.fmtError(`Source does not exist ${r}`,`rcopy`,g.badPath);if(i!==`-`)throw this.fmtError(`Source not a file ${r}`,`rcopy`,g.badPath);let a=await f(this,t);if(await this.exists(a))throw this.fmtError(`Destination already exists ${a}`,`rcopy`,g.badPath);return this._rcopy(r,a)}catch(e){throw e.custom?e:this.fmtError(e,`rcopy`)}finally{u(this,n,`rcopy`)}}end(){let e,t;return new Promise((n,r)=>{t=l(this,`end`,r),this.endCalled=!0,e=()=>{this.sftp=void 0,this.debugMsg(`end: Connection closed`),n(!0)},this.on(`close`,e),this.sftp?this.client.end():(this.debugMsg(`end: Called when no connection active`),n(!0))}).finally(()=>{u(this,t,`end`),this.removeListener(`close`,e),this.endCalled=!1})}}}))());const $h={username:{label:`Username`,placeholder:`Enter username`,type:`string`,required:!0,comments:`The username for SFTP authentication.`,example:`john.doe`},host:{label:`Host`,placeholder:`Enter host`,type:`string`,required:!0,comments:`The address of the SFTP server. This should be either an IP address or hostname.`,example:`sftp.example.com`,onPremControlled:!0},port:{label:`Port`,placeholder:`Enter port`,default:`22`,required:!0,comments:`The port of the SFTP server.`,type:`string`,example:`2222`,onPremControlled:!0},timeout:{label:`Timeout`,placeholder:`Enter timeout`,required:!1,comments:`How long the client will await a request.`,type:`string`,default:`3000`,example:`4000`},enableUnsecureServerHostKeyAlgorithms:{label:`Enable Unsecure Server Host Key Algorithms`,comments:`When true, unsecure server host key algorithms will be added to the connection.`,required:!1,type:`boolean`},enableUnsecureCiphers:{label:`Enable Unsecure Ciphers`,comments:`When true, CBC ciphers will be added to the connection.`,required:!1,type:`boolean`},customServerHostKeyAlgorithms:{label:`Custom Server Host Key Algorithms`,comments:`A comma-separated list of custom server host key algorithms. Overrides the default server host key algorithms. Algorithm order matters. Advanced setting.`,placeholder:`Enter algorithms`,example:[`ssh-rsa`,`ssh-dss`].join(`, `),required:!1,type:`string`},customCiphers:{label:`Custom Ciphers`,comments:`A comma-separated list of custom ciphers. Overrides the default ciphers. Cipher order matters. Advanced setting.`,placeholder:`Enter ciphers`,example:[`aes128-ctr`,`aes192-ctr`,`aes256-ctr`].join(`, `),required:!1,type:`string`},customKexAlgorithms:{label:`Custom KEX Algorithms`,comments:`A comma-separated list of custom key exchange algorithms. Algorithm order matters. Advanced setting.`,placeholder:`Enter KEX algorithms`,example:[`diffie-hellman-group14-sha1`,`diffie-hellman-group14-sha256`].join(`, `),required:!1,type:`string`}},eg=(0,Pm.onPremConnection)({key:`basic`,display:{label:`Basic Authentication`,description:`Authenticate using username and password`},inputs:{password:{label:`Password`,comments:`The password for SFTP authentication.`,placeholder:`Enter password`,type:`password`,required:!0,example:`p@s$W0Rd`},...$h}}),tg=(0,Pm.onPremConnection)({key:`privateKey`,display:{label:`Private Key`,description:`Authenticate using SSH private key`},inputs:{privateKey:{label:`Private Key`,comments:`The SSH private key for authentication.`,placeholder:`Enter private key`,type:`text`,required:!0,example:`-----BEGIN OPENSSH PRIVATE KEY-----
233
+ abc123...`},passphrase:{label:`Key Passphrase`,comments:`The passphrase for the private key. Leave blank if none.`,placeholder:`Enter passphrase`,type:`password`,required:!1,example:`p@s$PHr@$3`},password:{label:`Password`,comments:`Though uncommon, some SFTP servers that use private keys may also require a password. Leave blank if none.`,placeholder:`Enter password`,type:`password`,required:!1,example:`p@s$W0Rd`},...$h}});var ng=[eg,tg];const rg=[`ssh-ed25519`,`ecdsa-sha2-nistp256`,`ecdsa-sha2-nistp384`,`ecdsa-sha2-nistp521`,`rsa-sha2-512`,`rsa-sha2-256`],ig=[`ssh-rsa`,`ssh-dss`],ag=[`chacha20-poly1305@openssh.com`,`aes128-gcm@openssh.com`,`aes256-gcm@openssh.com`,`aes128-ctr`,`aes192-ctr`,`aes256-ctr`],og=[`aes256-cbc`],sg=e=>{switch(e.key){case eg.key:return{username:Pm.util.types.toString(e.fields.username),password:Pm.util.types.toString(e.fields.password)};case tg.key:return{username:Pm.util.types.toString(e.fields.username),privateKey:Pm.util.types.toString(e.fields.privateKey),passphrase:Pm.util.types.toString(e.fields.passphrase),password:Pm.util.types.toString(e.fields.password)};default:throw new Pm.ConnectionError(e,`Unknown Connection type provided.`)}},cg=async(e,t)=>{let n=new Qh.default;n.on(`keyboard-interactive`,(n,r,i,a,o)=>{t&&console.debug(`This SFTP server requires keyboard-interactive login. Falling back to keyboard-interactive.`),o([e.fields.password])});let{host:r,port:i,timeout:a,enableUnsecureCiphers:o,enableUnsecureServerHostKeyAlgorithms:s,customServerHostKeyAlgorithms:c,customCiphers:l,customKexAlgorithms:u}=e.fields;try{let d=Pm.util.types.toBool(o)?[...ag,...og]:ag,f=Pm.util.types.toBool(s)?[...rg,...ig]:rg,p=Pm.util.types.toString(c);p&&(f=p.replace(/\s+/g,``).split(`,`));let m=Pm.util.types.toString(l);m&&(d=m.replace(/\s+/g,``).split(`,`));let h=Pm.util.types.toString(u),g=h?h.replace(/\s+/g,``).split(`,`):void 0;await n.connect({host:Pm.util.types.toString(r),port:Pm.util.types.toInt(i),readyTimeout:Pm.util.types.toInt(a)||3e3,tryKeyboard:!0,debug:e=>{t&&console.debug(e)},algorithms:{serverHostKey:f,cipher:d,...g?{kex:g}:{}},...sg(e)})}catch(t){throw new Pm.ConnectionError(e,`Unable to connect to SFTP server. ${t}`)}return n},lg={data:`Sample file contents`,contentType:`text/plain`},ug={data:Buffer.from(`Sample file contents`),contentType:`text/plain`},dg={data:`Uploaded data stream to /upload/path/to/file.txt`},fg={data:`Appended data to /upload/path/to/file.txt`},pg={data:null},mg={data:null},hg={data:{mode:33279,uid:1e3,gid:985,size:5,accessTime:1566868566e3,modifyTime:1566868566e3,isDirectory:!1,isFile:!0,isBlockDevice:!1,isCharacterDevice:!1,isSymbolicLink:!1,isFIFO:!1,isSocket:!1}},gg={data:[`folder1/file.txt`,`folder1/subfolder/example.txt`,`root.txt`]},_g={data:`/path/to/new/directory/`};var vg={readFile:(0,Pm.action)({display:{label:`Read File`,description:`Read a file from SFTP`},perform:async(e,{connection:t,inputPath:n,returnBuffer:r})=>{let i=await cg(t,e.debug.enabled);try{return{data:await i.get(n),contentType:r?Nm.types.bin:Nm.lookup((0,f.basename)(n))||Nm.types.bin}}finally{await i.end()}},inputs:{connection:Fm,inputPath:(0,Pm.input)({label:`Path`,placeholder:`Path on SFTP server to read data from`,type:`string`,required:!0,comments:`Path of file on SFTP server to read data from`,example:`/path/to/file.txt`,clean:Pm.util.types.toString}),returnBuffer:Rm},examplePayload:lg}),fastGet:(0,Pm.action)({display:{label:`Fast Get`,description:`Read a file from SFTP`},perform:async(e,{connection:t,inputPath:n})=>{let r=await cg(t,e.debug.enabled);try{let e=(0,f.basename)(n),t=`/tmp/${e}`;return await r.fastGet(n,t),{data:await p.promises.readFile(t),contentType:Rm?Nm.types.bin:Nm.lookup(e)||Nm.types.bin}}finally{await r.end()}},inputs:{connection:Fm,inputPath:(0,Pm.input)({label:`Path`,placeholder:`Path on SFTP server to read data from`,type:`string`,required:!0,comments:`Path of file on SFTP server to read data from`,example:`/path/to/file.txt`,clean:Pm.util.types.toString}),returnBuffer:Rm},examplePayload:ug}),statFile:(0,Pm.action)({display:{label:`Stat File`,description:`Pull statistics about a file`},perform:async(e,{connection:t,inputPath:n})=>{let r=await cg(t,e.debug.enabled);try{return{data:await r.stat(n)}}finally{await r.end()}},inputs:{connection:Fm,inputPath:(0,Pm.input)({label:`Path`,placeholder:`Path on SFTP server to read data from`,type:`string`,required:!0,comments:`Path of file on SFTP server to read data from`,example:`/path/to/file.txt`,clean:Pm.util.types.toString})},examplePayload:hg}),writeFile:(0,Pm.action)({display:{label:`Write File`,description:`Write a file to SFTP`},perform:async(e,{connection:t,data:n,outputPath:r})=>{let i=await cg(t,e.debug.enabled);try{return{data:await i.put(n,r)}}finally{await i.end()}},inputs:{connection:Fm,outputPath:zm,data:Vm},examplePayload:dg}),appendFile:(0,Pm.action)({display:{label:`Append File`,description:`Append data to an existing file on a SFTP server.`},perform:async(e,{connection:t,data:n,outputPath:r})=>{let i=await cg(t,e.debug.enabled);try{return await i.append(n,r),{data:`Appended data to ${r}`}}finally{await i.end()}},inputs:{connection:Fm,outputPath:Bm,data:Hm},examplePayload:fg}),deleteFile:(0,Pm.action)({display:{label:`Delete File`,description:`Delete a file from a SFTP server`},perform:async(e,{connection:t,path:n})=>{let r=await cg(t,e.debug.enabled);try{await r.delete(n)}finally{await r.end()}return null},inputs:{connection:Fm,path:(0,Pm.input)({label:`Path`,placeholder:`Path of file to delete`,type:`string`,required:!0,comments:`Path of file to delete`,example:`/path/to/file.txt`,clean:Pm.util.types.toString})},examplePayload:pg}),moveFile:(0,Pm.action)({display:{label:`Move File`,description:`Move a file on an SFTP server`},perform:async(e,{connection:t,sourcePath:n,destinationPath:r})=>{let i=await cg(t,e.debug.enabled);try{await i.rename(n,r)}finally{await i.end()}return null},inputs:{connection:Fm,sourcePath:(0,Pm.input)({label:`Source Path`,placeholder:`Path of file to move`,type:`string`,required:!0,comments:`Path of file to move`,example:`/my/starting/path.txt`,clean:Pm.util.types.toString}),destinationPath:(0,Pm.input)({label:`Destination Path`,placeholder:`Path to move the file to`,type:`string`,required:!0,comments:`Path of file to move`,example:`/my/destination/path.txt`,clean:Pm.util.types.toString})},examplePayload:mg})};const yg=(0,Pm.action)({display:{label:`Create Directory`,description:`Create a new directory. When Include Subfolders is enabled, recursively creates any missing directories in the path.`},perform:async(e,{connection:t,path:n,recursive:r})=>{let i=await cg(t,e.debug.enabled);try{return{data:await i.mkdir(n,r)}}finally{await i.end()}},inputs:{connection:Fm,path:Im,recursive:Lm},examplePayload:_g});var bg=s(((e,t)=>{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<a&&(a=i,o=l),l=n.indexOf(t,u+1)),u=c<l&&c>=0?c:l;r.length&&(s=[a,o])}return s}})),xg=u(s(((e,t)=>{var n=bg();t.exports=f;var r=`\0SLASH`+Math.random()+`\0`,i=`\0OPEN`+Math.random()+`\0`,a=`\0CLOSE`+Math.random()+`\0`,o=`\0COMMA`+Math.random()+`\0`,s=`\0PERIOD`+Math.random()+`\0`;function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function l(e){return e.split(`\\\\`).join(r).split(`\\{`).join(i).split(`\\}`).join(a).split(`\\,`).join(o).split(`\\.`).join(s)}function u(e){return e.split(r).join(`\\`).split(i).join(`{`).split(a).join(`}`).split(o).join(`,`).split(s).join(`.`)}function d(e){if(!e)return[``];var t=[],r=n(`{`,`}`,e);if(!r)return e.split(`,`);var i=r.pre,a=r.body,o=r.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=d(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function f(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),_(l(e),n,!0).map(u)}function p(e){return`{`+e+`}`}function m(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function g(e,t){return e>=t}function _(e,t,r){var i=[],o=n(`{`,`}`,e);if(!o)return[e];var s=o.pre,l=o.post.length?_(o.post,t,!1):[``];if(/\$$/.test(o.pre))for(var u=0;u<l.length&&u<t;u++){var f=s+`{`+o.body+`}`+l[u];i.push(f)}else{var v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),b=v||y,x=o.body.indexOf(`,`)>=0;if(!b&&!x)return o.post.match(/,(?!,).*\}/)?(e=o.pre+`{`+o.body+a+o.post,_(e,t,!0)):[e];var S;if(b)S=o.body.split(/\.\./);else if(S=d(o.body),S.length===1&&(S=_(S[0],t,!1).map(p),S.length===1))return l.map(function(e){return o.pre+S[0]+e});var C;if(b){var w=c(S[0]),T=c(S[1]),E=Math.max(S[0].length,S[1].length),D=S.length==3?Math.max(Math.abs(c(S[2])),1):1,O=h;T<w&&(D*=-1,O=g);var k=S.some(m);C=[];for(var A=w;O(A,T);A+=D){var j;if(y)j=String.fromCharCode(A),j===`\\`&&(j=``);else if(j=String(A),k){var M=E-j.length;if(M>0){var N=Array(M+1).join(`0`);j=A<0?`-`+N+j.slice(1):N+j}}C.push(j)}}else{C=[];for(var P=0;P<S.length;P++)C.push.apply(C,_(S[P],t,!1))}for(var P=0;P<C.length;P++)for(var u=0;u<l.length&&i.length<t;u++){var f=s+C[P]+l[u];(!r||b||f)&&i.push(f)}}return i}}))(),1);const Sg=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},Cg={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},wg=e=>e.replace(/[[\]\\-]/g,`\\$&`),Tg=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),Eg=e=>e.join(``),Dg=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(Cg))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(wg(d)+`-`+wg(t)):t===d&&r.push(wg(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(wg(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(wg(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l){let e=r[0].length===2?r[0].slice(-1):r[0];return[Tg(e),!1,u-n,!1]}let f=`[`+(l?`^`:``)+Eg(r)+`]`,p=`[`+(l?``:`^`)+Eg(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},Og=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`);var kg;const Ag=new Set([`!`,`?`,`+`,`*`,`@`]),jg=e=>Ag.has(e),Mg=e=>jg(e.type),Ng=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),Pg=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),Fg=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),Ig=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),Lg=`(?!\\.)`,Rg=new Set([`[`,`.`]),zg=new Set([`..`,`.`]),Bg=new Set(`().*{}+?[]^$\\!`),Vg=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),Hg=`[^/]+?`;var Ug=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof kg&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof kg&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new kg(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&jg(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new kg(n,t);u=kg.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new kg(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(jg(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new kg(n,d);d.push(o),u=kg.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new kg(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,Pg)}#m(e,t=Ng){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=Fg){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new kg(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!Ig.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=Ig.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}#x(){if(Mg(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}static fromGlob(e,t={}){let n=new kg(null,void 0,t);return kg.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!Mg(this)){let n=this.isStart()&&this.isEnd(),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?kg.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&zg.has(this.#r[0]))){let n=Rg,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?Lg:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,Og(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,Og(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?Lg:``)+Hg;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?Lg:``)+`[^/]*?)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,Og(i),this.#t=!!this.#t,this.#n]}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(Bg.has(c)?`\\`:``)+c,o=!1;continue}if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,c,l]=Dg(e,s);if(c){i+=n,a||=r,s+=c-1,t||=l,o=!1;continue}}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?Hg:`[^/]*?`,t=!0;continue}else o=!1;if(c===`?`){i+=`[^/]`,t=!0;continue}i+=Vg(c)}return[i,Og(e),!!t,a]}};kg=Ug;const Wg=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),Gg=(e,t,n={})=>(Sg(t),!n.nocomment&&t.charAt(0)===`#`?!1:new y_(t,n).match(e)),Kg=/^\*+([^+@!?\*\[\(]*)$/,qg=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),Jg=e=>t=>t.endsWith(e),Yg=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),Xg=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Zg=/^\*+\.\*+$/,Qg=e=>!e.startsWith(`.`)&&e.includes(`.`),$g=e=>e!==`.`&&e!==`..`&&e.includes(`.`),e_=/^\.\*+$/,t_=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),n_=/^\*+$/,r_=e=>e.length!==0&&!e.startsWith(`.`),i_=e=>e.length!==0&&e!==`.`&&e!==`..`,a_=/^\?+([^+@!?\*\[\(]*)?$/,o_=([e,t=``])=>{let n=u_([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},s_=([e,t=``])=>{let n=d_([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},c_=([e,t=``])=>{let n=d_([e]);return t?e=>n(e)&&e.endsWith(t):n},l_=([e,t=``])=>{let n=u_([e]);return t?e=>n(e)&&e.endsWith(t):n},u_=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},d_=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},f_=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,p_={win32:{sep:`\\`},posix:{sep:`/`}};Gg.sep=f_===`win32`?p_.win32.sep:p_.posix.sep;const m_=Symbol(`globstar **`);Gg.GLOBSTAR=m_,Gg.filter=(e,t={})=>n=>Gg(n,e,t);const h_=(e,t={})=>Object.assign({},e,t);Gg.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return Gg;let t=Gg;return Object.assign((n,r,i={})=>t(n,r,h_(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,h_(e,n))}static defaults(n){return t.defaults(h_(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,h_(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,h_(e,r))}},unescape:(n,r={})=>t.unescape(n,h_(e,r)),escape:(n,r={})=>t.escape(n,h_(e,r)),filter:(n,r={})=>t.filter(n,h_(e,r)),defaults:n=>t.defaults(h_(e,n)),makeRe:(n,r={})=>t.makeRe(n,h_(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,h_(e,r)),match:(n,r,i={})=>t.match(n,r,h_(e,i)),sep:t.sep,GLOBSTAR:m_})};const g_=(e,t={})=>(Sg(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,xg.default)(e));Gg.braceExpand=g_,Gg.makeRe=(e,t={})=>new y_(e,t).makeRe(),Gg.match=(e,t,n={})=>{let r=new y_(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const __=/[?*]|[+@!]\(.*?\)|\[|\]/,v_=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var y_=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Sg(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||f_,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!__.test(e[2]))&&!__.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]===`**`&&(e[t][n]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(m_)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(m_,i),o=t.lastIndexOf(m_),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===m_?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===m_)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return g_(this.pattern,this.options)}parse(e){Sg(e);let t=this.options;if(e===`**`)return m_;if(e===``)return``;let n,r=null;(n=e.match(n_))?r=t.dot?i_:r_:(n=e.match(Kg))?r=(t.nocase?t.dot?Xg:Yg:t.dot?Jg:qg)(n[1]):(n=e.match(a_))?r=(t.nocase?t.dot?s_:o_:t.dot?c_:l_)(n):(n=e.match(Zg))?r=t.dot?$g:Qg:(n=e.match(e_))&&(r=t_);let i=Ug.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,"test",{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?`[^/]*?`:t.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?v_(e):e===m_?m_:e._src});return t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==m_||a===m_||(a===void 0?i!==void 0&&i!==m_?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|`+n+`)?`:i!==m_&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=m_))}),t.filter(e=>e!==m_).join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return!n.flipNegate&&this.negate}static defaults(e){return Gg.defaults(e).Minimatch}};Gg.AST=Ug,Gg.Minimatch=y_,Gg.escape=Wg,Gg.unescape=Og;var b_={createDirectory:yg,listDirectory:(0,Pm.action)({display:{label:`List Directory`,description:`List files and directories in a directory on an SFTP server. Optionally list files in subdirectories.`},perform:async(e,{connection:t,path:n,pattern:r,includeSubdirectories:i,includeDirectories:a})=>{let o=await cg(t,e.debug.enabled);try{let e=async t=>{let n=await o.list(t,e=>!r||Gg(e.name,r)),i=[];for(let r of n){let n=`${t}/${r.name}`.replace(/\/+/g,`/`);if(r.type===`d`){a&&i.push(n);let t=await e(n);i.push(...t)}else i.push(n)}return i.sort()};return{data:i?await e(n):await(async e=>(await o.list(e,e=>!r||Gg(e.name,r))).filter(({type:e})=>a?!0:e!==`d`).map(({name:e})=>e).sort())(n)}}finally{await o.end()}},inputs:{connection:Fm,path:Im,pattern:Um,includeSubdirectories:Wm,includeDirectories:Gm},examplePayload:gg})},x_={...vg,...b_};const S_=async(e,t,n,r,i)=>{let a=await e.list(t);for(let o of a){let a=`${t}/${o.name}`.replace(/\/+/g,`/`);o.type===`d`?r&&await S_(e,a,n,r,i):(!n||Gg(o.name,n))&&(i[a]={size:o.size,modifiedAt:o.modifyTime})}},C_=(e,t)=>{let n=[],r=[];for(let[i,a]of Object.entries(e)){let e=t[i];e?(e.size!==a.size||e.modifiedAt!==a.modifiedAt)&&r.push({path:i,size:a.size,modifiedAt:a.modifiedAt}):n.push({path:i,size:a.size,modifiedAt:a.modifiedAt})}return{newFiles:n,modifiedFiles:r}},w_=e=>{let t=e??{newFiles:[],modifiedFiles:[]};return[...(t.newFiles??[]).map(e=>({changeType:`new`,record:e})),...(t.modifiedFiles??[]).map(e=>({changeType:`modified`,record:e}))]};var T_={newOrModifiedFiles:(0,Pm.pollingTrigger)({display:{label:`New or Modified Files`,description:`Checks for new and modified files in a directory on an SFTP server on a configured schedule.`},inputs:{connection:Fm,path:Im,pattern:Um,includeSubdirectories:Wm},triggerResolverSupport:`valid`,batchConfig:{batchSize:50},triggerResolver:{resolveItems:(e,{payload:t})=>w_(t.body.data)},perform:async(e,t,{connection:n,path:r,pattern:i,includeSubdirectories:a})=>{let o=await cg(n,e.debug.enabled);try{let n={};await S_(o,r,i,a,n);let{newFiles:s,modifiedFiles:c}=C_(n,e.polling.getState()?.fileMap??{});return e.polling.setState({fileMap:n}),{payload:{...t,body:{data:{newFiles:s,modifiedFiles:c}}},polledNoChanges:s.length===0&&c.length===0}}finally{await o.end()}}})},E_=(0,Pm.component)({key:`sftp`,documentationUrl:`https://prismatic.io/docs/components/sftp/`,public:!0,display:{label:`SFTP`,description:`Read, write, move and delete files on an SFTP server`,iconPath:`icon.png`,category:`Data Platforms`},actions:x_,triggers:T_,connections:ng});exports.default=E_;